@ckeditor/ckeditor5-track-changes 45.2.0-alpha.3 → 45.2.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +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 _0x334ec3,Plugin as _0x5575fe,PendingActions as _0x1e5ef8}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x840840,ObservableMixin as _0xc1a90b,uid as _0x1526c3,priorities as _0x2dda8a,insertToPriorityArray as _0x35266b,toArray as _0x4eacd5,logWarning as _0x7bbe75,getEnvKeystrokeText as _0x2ee9fd,FocusTracker as _0x203964,KeystrokeHandler as _0x24e332,Collection as _0x412f5d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x3b1a58,IconCancel as _0x774a8b,IconTrackChanges as _0x3ccc1d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x288e8f,View as _0x2922bf,ViewCollection as _0x377fd0,FocusCycler as _0x4b9246,ViewModel as _0x14e505,createDropdown as _0x24b707,SplitButtonView as _0x5f2e56,addListToDropdown as _0x2dd363,MenuBarMenuView as _0x45eb33,MenuBarMenuListView as _0x24e4b9,ListSeparatorView as _0x1f7a58,MenuBarMenuListItemView as _0x207990,MenuBarMenuListItemButtonView as _0x502a3d,BodyCollection as _0x36d5ab,Dialog as _0x1b10b8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x39fba1,hashObject as _0x3429f2,surroundingMarkersDetector as _0x5da952,FOCUS_ANNOTATION_KEYSTROKE as _0x2a94e6,AriaDescriptionView as _0x402f1e,setupThreadKeyboardNavigation as _0x39dc9a,trimHtml as ti,UserView as _0x48854b,LateFocusButtonView as _0x2214e7,getDateTimeFormatter as _0x5f5751,getAllMarkersDomElementsSorted as _0x385d59,sanitizeEditorConfig as _0xd65147}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x323e08,LiveRange as _0x34c04c,LivePosition as _0x12b057,DowncastWriter as _0x1b7cf1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x327007,toWidget as _0x32bc39}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3928a0,set as _0x5c561e,isEqual as _0x550687,unset as _0x3d6d6f,omit as Ft}from'es-toolkit/compat';import{Delete as _0x2fb98e,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x182741}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x3243fa}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x334ec3{['_enabledCommands'];constructor(_0x37f4ae,_0x20467e){super(_0x37f4ae),this['_enabledCommands']=_0x20467e,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 _0xd3b14f of this['editor']['commands']['commands']())_0xd3b14f['affectsData']&&!this['_enabledCommands']['has'](_0xd3b14f)&&_0xd3b14f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4f8645 of this['editor']['commands']['commands']())_0x4f8645['affectsData']&&!this['_enabledCommands']['has'](_0x4f8645)&&_0x4f8645['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x334ec3{['_suggestions'];constructor(_0x48df20,_0x1805c0){super(_0x48df20),this['_suggestions']=_0x1805c0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3ed301){const _0xfe53f6=this['_suggestions']['get'](_0x3ed301);if(!_0xfe53f6)throw new _0x840840('track-changes-accept-suggestion-not-found',this);const _0x5438c5=_0xfe53f6['getRanges']();this['editor']['model']['canEditAt'](_0x5438c5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xfe53f6);}}class O extends _0x334ec3{['_suggestions'];constructor(_0xf97d9f,_0x24158f){super(_0xf97d9f),this['_suggestions']=_0x24158f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x261f74){const _0x1a0e6e=this['_suggestions']['get'](_0x261f74);if(!_0x1a0e6e)throw new _0x840840('track-changes-discard-suggestion-not-found',this);const _0x28f15d=_0x1a0e6e['getRanges']();this['editor']['model']['canEditAt'](_0x28f15d)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1a0e6e);}}function ls(_0x54b2ee,_0x43d6e5){let _0x22f33d='';return _0x22f33d+=_0x54b2ee['split']('*')['map']((_0x4289d0,_0x47cb0a)=>_0x47cb0a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4289d0)+'</span>':nn(_0x4289d0))['join'](''),_0x43d6e5&&(_0x22f33d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x43d6e5['value']+'\x22\x20title=\x22'+_0x43d6e5['title']+'\x22></span>'),_0x22f33d;}function nn(_0x4325d3){const _0x4827b9=document['createElement']('span');return _0x4827b9['innerText']=_0x4325d3,_0x4827b9['innerHTML'];}function ts(_0x228705){return _0x228705['sort']((_0x4ca848,_0x571647)=>'deletion'==_0x4ca848['type']&&'deletion'!=_0x571647['type']?-0x1:'deletion'!=_0x4ca848['type']&&'deletion'==_0x571647['type']?0x1:0x0);}function to(_0x192364,_0x4b58a5){let _0x3ee318,_0x1cfb82=0x0;const _0x1e657a=[],_0x59d963=_0x4b58a5['schema'];for(;_0x1cfb82<_0x192364['length'];){const _0x29bbdd=_0x192364[_0x1cfb82],_0x4d0d5e=_0x192364[_0x1cfb82+0x1];_0x3ee318||(_0x3ee318=_0x4b58a5['createPositionBefore'](_0x29bbdd)),on(_0x4b58a5,_0x29bbdd,_0x4d0d5e)||(_0x1e657a['push'](_0x4b58a5['createRange'](_0x3ee318,_0x59d963['isObject'](_0x29bbdd)?_0x4b58a5['createPositionAfter'](_0x29bbdd):_0x4b58a5['createPositionAt'](_0x29bbdd,'end'))),_0x3ee318=null),_0x1cfb82++;}return _0x1e657a;}function on(_0x5d2269,_0x3a3b80,_0x5ac48c){if(!_0x5ac48c)return!0x1;const _0x2b7641=_0x5d2269['createPositionAfter'](_0x3a3b80),_0x51143c=_0x5d2269['createPositionBefore'](_0x5ac48c);return _0x2b7641['isTouching'](_0x51143c);}function rs(_0x79e5b9,_0x20a7eb,_0x3af79d){for(;_0x3af79d['length'];){const _0x2431e6=_0x3af79d['splice'](0x0,0x64);_0x79e5b9['change'](()=>{for(const _0x46ac46 of _0x2431e6)_0x46ac46['isInContent']&&_0x20a7eb['execute'](_0x46ac46['id']);});}}class R extends _0x334ec3{['_command'];['_suggestions'];constructor(_0x3a3dc4,_0x146bf8,_0x1dd859){super(_0x3a3dc4),this['_command']=_0x146bf8,this['_suggestions']=_0x1dd859,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x42d2ee=Array['from'](this['_suggestions']['values']())['some'](_0x47b7db=>_0x47b7db['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x42d2ee;}['execute'](){const _0x165f52=ts(Array['from'](this['_suggestions']['values']()));for(const _0x1eafd2 of _0x165f52){const _0x1a3d7b=_0x1eafd2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1a3d7b))return;}rs(this['editor']['model'],this['_command'],_0x165f52);}}class E extends _0x334ec3{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x111466,_0x444a43,_0x2dcfda){super(_0x111466),this['_command']=_0x444a43,this['_suggestions']=_0x2dcfda,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1991df=this['editor']['model']['document']['selection'],_0x60c34a=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1d43df,_0x29ede1){const _0x588b5d=Array['from'](_0x1d43df['getRanges']()),_0x31c331=new Set();for(const _0x50733b of _0x29ede1)if(_0x50733b['isInContent']){for(const _0x192972 of _0x588b5d)for(const _0x44fc7f of _0x50733b['getRanges']())(_0x192972['isIntersecting'](_0x44fc7f)||_0x1d43df['isCollapsed']&&!_0x50733b['isMultiRange']&&_0x50733b['next']&&_0x44fc7f['end']['isTouching'](_0x192972['start']))&&_0x31c331['add'](_0x50733b);}return _0x31c331;}(_0x1991df,_0x60c34a),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x510fa8=ts(Array['from'](this['_selectedSuggestions']));for(const _0x4e8496 of _0x510fa8){const _0x42b818=_0x4e8496['getRanges']();if(!this['editor']['model']['canEditAt'](_0x42b818))return;}rs(this['editor']['model'],this['_command'],_0x510fa8);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xc1a90b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1df10e,_0x6fdc18){super(),this['id']=_0x6fdc18['id'],this['type']=_0x6fdc18['type'],this['subType']=_0x6fdc18['subType']||null,this['author']=_0x6fdc18['author'],this['creator']=_0x6fdc18['creator']||_0x6fdc18['author'],this['isExternal']=Boolean(_0x6fdc18['attributes']&&_0x6fdc18['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x6fdc18['originalSuggestionId']||null,this['_model']=_0x1df10e,this['_onAccept']=_0x6fdc18['onAccept'],this['_onDiscard']=_0x6fdc18['onDiscard'],this['_onAttributesChange']=_0x6fdc18['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x6fdc18['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 _0x4bd736=this;for(;_0x4bd736['previous'];)_0x4bd736=_0x4bd736['previous'];return _0x4bd736;}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'](_0x9cafa2){this['_markerNames']['add'](_0x9cafa2);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1c4e4d=>this['_model']['markers']['get'](_0x1c4e4d))['filter'](_0x1a0b12=>_0x1a0b12);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4cb516=>{for(const _0x2a39b4 of this['getMarkers']())_0x4cb516['removeMarker'](_0x2a39b4);}),this['_markerNames']['clear']();}['removeMarker'](_0x56c964){this['_model']['change'](_0x416284=>{_0x416284['removeMarker'](_0x56c964);}),this['_markerNames']['delete'](_0x56c964);}['addRange'](_0x232aab){const _0x4f43e4='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x4f43e4),this['_model']['change'](_0x43710d=>{_0x43710d['addMarker'](_0x4f43e4,{'range':_0x232aab,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2978b8){for(const _0x4eb730 of this['getRanges']())if(_0x4eb730['isIntersecting'](_0x2978b8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x430f47=>_0x430f47['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1ca7f4,_0x1b0642)=>[..._0x1ca7f4,..._0x1b0642['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2c217a=this['getRanges']();if(0x1!=_0x2c217a['length'])return null;const _0x5d0969=_0x2c217a[0x0],_0x4f468f=_0x5d0969['start']['nodeAfter'],_0x3ac609=_0x5d0969['end']['nodeBefore'];return _0x4f468f instanceof _0x323e08?_0x4f468f!=_0x3ac609?null:_0x4f468f: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 _0x329d04=[];let _0x1f3758=this['head'];for(;_0x1f3758;)_0x329d04['push'](_0x1f3758),_0x1f3758=_0x1f3758['next'];return _0x329d04;}['setAttribute'](_0x582dfc,_0x4da1f1){const _0x41a5b8=_0x3928a0(this['attributes']);_0x5c561e(_0x41a5b8,_0x582dfc,_0x4da1f1),_0x550687(_0x41a5b8,this['attributes'])||(this['attributes']=_0x41a5b8,this['_onAttributesChange'](_0x41a5b8));}['removeAttribute'](_0x3cb663){const _0x25d8c4=_0x3928a0(this['attributes']);_0x3d6d6f(_0x25d8c4,_0x3cb663),_0x550687(_0x25d8c4,this['attributes'])||(this['attributes']=_0x25d8c4,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 _0x1526c3()['substr'](0x1,0x5);}}function c(_0x2d6fb3,_0x426b56,_0x48d368){const _0xae7ac2=_0x2d6fb3['t'],t=_0x2d6fb3['t'];switch(_0x426b56){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',_0x48d368);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x48d368);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x48d368);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x48d368);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x48d368);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',_0x48d368);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x48d368);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',_0x48d368);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x48d368);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x48d368);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x48d368);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x48d368);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x48d368);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x48d368);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x48d368);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x48d368);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x48d368);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x48d368);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x48d368);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x48d368);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x48d368);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x48d368);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x48d368);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x48d368);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x48d368);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'},_0x48d368);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x48d368);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x48d368);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x48d368);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x48d368);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x48d368);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x48d368);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x48d368);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'},_0x48d368);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x48d368);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x48d368);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x48d368);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x48d368);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'},_0x48d368);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x48d368);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'},_0x48d368);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'},_0x48d368);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x48d368);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'},_0x48d368);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x48d368);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'},_0x48d368);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x48d368);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x48d368);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'},_0x48d368);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x48d368);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 _0xae7ac2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x48d368);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xae7ac2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x48d368);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x48d368);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'},_0x48d368);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'},_0x48d368);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'},_0x48d368);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x426b56;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3bc5fd,_0x4851d2){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3bc5fd,this['_locale']=_0x4851d2;}['getDescriptions'](_0x56e9c3){const _0x602f1e=[],_0x2c8c52=new Set(),_0x5eb433=new Set();for(let _0x4eeb4d=0x0;_0x4eeb4d<_0x56e9c3['length'];_0x4eeb4d++){const _0x19b0ed=_0x56e9c3[_0x4eeb4d];if(!_0x19b0ed['isInContent'])continue;const _0x487d5e=this['_handleCustomCallbackDescription'](_0x19b0ed);if(_0x487d5e){if(null!=_0x19b0ed['subType']){if(_0x2c8c52['has'](_0x19b0ed['subType']))continue;_0x2c8c52['add'](_0x19b0ed['subType']);}_0x602f1e['push'](_0x487d5e);}else{if('attribute'!=_0x19b0ed['type'])'insertion'!=_0x19b0ed['type']&&'deletion'!=_0x19b0ed['type']||this['_handleInsertRemoveSuggestionDescription'](_0x602f1e,_0x19b0ed,_0x56e9c3[_0x4eeb4d+0x1]);else{const _0x5cd5af=_0x19b0ed['data']['key'];if(_0x5eb433['has'](_0x5cd5af))continue;_0x5eb433['add'](_0x19b0ed['data']['key']),_0x5cd5af==u?this['_handleRenameSuggestionDescription'](_0x602f1e,_0x19b0ed):this['_handleAttributeSuggestionDescription'](_0x602f1e,_0x19b0ed);}}}return this['_resolveDescriptionItems'](_0x602f1e);}['registerDescriptionCallback'](_0x16af2b){this['_customCallbacks']['push'](_0x16af2b);}['registerElementLabel'](_0x5cfd9b,_0x1c1c24,_0x5415d8=_0x2dda8a['normal']){'function'==typeof _0x5cfd9b?_0x35266b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5cfd9b,'label':_0x1c1c24,'priority':_0x5415d8}):this['_itemLabels']['set'](_0x5cfd9b,_0x1c1c24);}['registerAttributeLabel'](_0x1c81c6,_0x431ceb){this['_attributeLabels']['set'](_0x1c81c6,_0x431ceb);}['getItemLabel'](_0x55079c,_0x30b934=0x1){let _0x41b29f;for(const _0x400de5 of this['_itemLabelsCallbacks'])if(_0x400de5['matchingCallback'](_0x55079c)){_0x41b29f=_0x400de5['label'];break;}return _0x41b29f||(_0x41b29f=this['_itemLabels']['get'](_0x55079c['name'])),_0x41b29f?_0x41b29f(_0x30b934):0x1!==_0x30b934?_0x30b934+'\x20'+_0x55079c['name']+'s':''+_0x55079c['name'];}['_addDescriptionItems'](_0x5f42e6,_0x18d4e7){const _0x2d6651=_0x18d4e7['getFirstRange']()['getWalker'](),_0x52d336='insertion'==_0x18d4e7['type']?'add':'remove';for(const _0x3bd25e of _0x2d6651){const _0x2b753d=_0x3bd25e['item'],_0x3fae57=_0x5f42e6[_0x5f42e6['length']-0x1];if(_0x2b753d['is']('$textProxy'))_0x3fae57&&_0x3fae57['type']['indexOf']('Container')>-0x1&&_0x5f42e6['pop'](),_0x3fae57&&'text'==_0x3fae57['type']?_0x3fae57[_0x52d336]+=_0x2b753d['data']:_0x5f42e6['push']({'type':'text','add':'add'==_0x52d336?_0x2b753d['data']:'','remove':'remove'==_0x52d336?_0x2b753d['data']:''});else{if(this['_schema']['isObject'](_0x2b753d)){const _0x572163=_0x2b753d;if(_0x3fae57&&_0x3fae57['type']['indexOf']('Container')>-0x1&&_0x5f42e6['pop'](),'elementEnd'==_0x3bd25e['type'])continue;_0x3fae57&&_0x3fae57['type']==_0x52d336+'Object'&&_0x3fae57['element']['name']==_0x572163['name']?_0x3fae57['quantity']++:_0x5f42e6['push']({'type':_0x52d336+'Object','element':_0x572163,'quantity':0x1}),_0x2d6651['skip'](_0x18721d=>!('elementEnd'==_0x18721d['type']&&_0x18721d['item']==_0x2b753d));}else{if(this['_schema']['checkChild'](_0x2b753d,'$text')||_0x2b753d['is']('element','softBreak')){const _0x3a1eec=_0x2b753d;if('add'==_0x52d336&&'elementStart'==_0x3bd25e['type']||'remove'==_0x52d336&&'elementEnd'==_0x3bd25e['type'])continue;if(_0x3fae57&&-0x1==_0x3fae57['type']['indexOf']('Container')){'text'==_0x3fae57['type']&&(_0x3fae57[_0x52d336]+='\x0a');continue;}let _0x3dd992;if(_0x3dd992='add'==_0x52d336?_0x3a1eec['nextSibling']&&!this['_schema']['isObject'](_0x3a1eec['nextSibling'])?_0x3a1eec['nextSibling']:null:_0x3a1eec['previousSibling']&&!this['_schema']['isObject'](_0x3a1eec['previousSibling'])?_0x3a1eec['previousSibling']:null,_0x3a1eec['isEmpty']||_0x3dd992&&_0x3dd992['isEmpty']){const _0x4e6560=_0x3dd992&&_0x3dd992['isEmpty']?_0x3dd992:_0x3a1eec;_0x3fae57&&_0x3fae57['type']==_0x52d336+'EmptyContainer'&&_0x3fae57['element']['name']==_0x4e6560['name']?_0x3fae57['quantity']++:_0x5f42e6['push']({'type':_0x52d336+'EmptyContainer','element':_0x4e6560,'quantity':0x1});}else _0x5f42e6['push']({'type':_0x52d336+'Container','element':_0x3a1eec});}}}}}['_resolveDescriptionItems'](_0x56804b){const _0x48d8a3=this['_locale'],_0x4ff245=[],_0x4b6a05=[],_0x4f2979=[];for(const _0x146f92 of _0x56804b)switch(_0x146f92['type']){case'text':if(_0x146f92['add']=_0x146f92['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x146f92['remove']=_0x146f92['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x146f92['add']&&''!=_0x146f92['remove']){_0x4ff245['push']({'type':'replace','content':c(_0x48d8a3,'REPLACE_TEXT',['\x22'+_0x146f92['remove']+'\x22','\x22'+_0x146f92['add']+'\x22'])});continue;}if(null!=_0x146f92['add']['match'](/^ +$/)){_0x4ff245['push']({'type':'insertion','content':c(_0x48d8a3,'*Insert:*\x20%0',c(_0x48d8a3,'ELEMENT_SPACE',_0x146f92['add']['length']))});continue;}if(null!=_0x146f92['remove']['match'](/^ +$/)){_0x4ff245['push']({'type':'deletion','content':c(_0x48d8a3,'*Remove:*\x20%0',c(_0x48d8a3,'ELEMENT_SPACE',_0x146f92['remove']['length']))});continue;}if(''!=_0x146f92['add']){_0x4ff245['push']({'type':'insertion','content':c(_0x48d8a3,'*Insert:*\x20%0','\x22'+_0x146f92['add']+'\x22')});continue;}_0x4ff245['push']({'type':'deletion','content':c(_0x48d8a3,'*Remove:*\x20%0','\x22'+_0x146f92['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4ff245['push']({'type':'insertion','content':c(_0x48d8a3,'*Insert:*\x20%0',this['getItemLabel'](_0x146f92['element'],_0x146f92['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4ff245['push']({'type':'deletion','content':c(_0x48d8a3,'*Remove:*\x20%0',this['getItemLabel'](_0x146f92['element'],_0x146f92['quantity']))});continue;case'addContainer':_0x4ff245['push']({'type':'insertion','content':c(_0x48d8a3,'*Split:*\x20%0',this['getItemLabel'](_0x146f92['element'],_0x146f92['quantity']))});continue;case'removeContainer':_0x4ff245['push']({'type':'deletion','content':c(_0x48d8a3,'*Merge:*\x20%0',this['getItemLabel'](_0x146f92['element'],_0x146f92['quantity']))});continue;case'addFormat':_0x4b6a05['push'](_0x146f92['key']);continue;case'removeFormat':_0x4f2979['push'](_0x146f92['key']);continue;default:_0x4ff245['push'](_0x146f92);}if(_0x4b6a05['length']){const _0x123637=_0x4b6a05['map'](_0x367783=>this['_attributeLabels']['has'](_0x367783)?this['_attributeLabels']['get'](_0x367783):_0x367783)['join'](',\x20');_0x4ff245['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x123637)});}if(_0x4f2979['length']){const _0x4cff58=_0x4f2979['map'](_0x5c8e84=>this['_attributeLabels']['has'](_0x5c8e84)?this['_attributeLabels']['get'](_0x5c8e84):_0x5c8e84)['join'](',\x20');_0x4ff245['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x4cff58)});}return _0x4ff245;}['_handleCustomCallbackDescription'](_0x4877c6){for(const _0x1a888e of this['_customCallbacks']){const _0x1fb66b=_0x1a888e(_0x4877c6);if(_0x1fb66b&&'type'in _0x1fb66b)return _0x1fb66b;}}['_handleAttributeSuggestionDescription'](_0x422470,_0x199335){const _0x5cc142=_0x199335['data'],_0x32b642=void 0x0===_0x5cc142['newValue']?'removeFormat':'addFormat';_0x422470['push']({'type':_0x32b642,'key':_0x5cc142['key']});}['_handleRenameSuggestionDescription'](_0x3901e1,_0x94f96a){_0x3901e1['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x94f96a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3d8ab4,_0x42d916,_0x3110f9){if(this['_addDescriptionItems'](_0x3d8ab4,_0x42d916),_0x3110f9&&_0x3110f9['getFirstRange']()&&!_0x42d916['getFirstRange']()['end']['isEqual'](_0x3110f9['getFirstRange']()['start'])){const _0x864b54=_0x3d8ab4[_0x3d8ab4['length']-0x1],_0x19ed2b='insertion'==_0x42d916['type']?'add':'remove';_0x864b54&&'text'==_0x864b54['type']&&(_0x864b54[_0x19ed2b]+='\x0a');}}}class U extends _0x5575fe{['afterInit'](){const _0x14e0f8=this['editor'],_0x57bbc6=_0x14e0f8['plugins']['get']('TrackChangesEditing');_0x14e0f8['commands']['get']('showAIAssistant')&&_0x57bbc6['enableCommand']('showAIAssistant');}}class V extends _0x5575fe{['afterInit'](){const _0x103be9=this['editor'],_0x42da73=_0x103be9['locale'];if(!_0x103be9['plugins']['has']('AlignmentEditing'))return;const _0x3572fb=_0x103be9['plugins']['get']('TrackChangesEditing');_0x3572fb['enableDefaultAttributesIntegration']('alignment'),_0x3572fb['registerBlockAttribute']('alignment'),_0x3572fb['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x42da73,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25e80d=this['editor'],_0x35275c=_0x25e80d['locale'];_0x25e80d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x419ffa=>{if('formatBlock'!=_0x419ffa['type'])return;const {data:_0x2e9cc1}=_0x419ffa;if(_0x2e9cc1&&'alignment'==_0x2e9cc1['commandName']){const _0x3ab68b=_0x2e9cc1['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x35275c,'*Format:*\x20%0',function(_0x360343){switch(_0x360343){case'left':return c(_0x35275c,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x35275c,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x35275c,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x35275c,'FORMAT_JUSTIFY_TEXT');}}(_0x3ab68b))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x5575fe{['afterInit'](){const _0x2129af=this['editor'],_0x5cc9ab=_0x2129af['plugins']['get']('TrackChangesEditing'),_0x484e30=_0x2129af['locale'];for(const _0x29c53a of Zt){if(!_0x2129af['plugins']['has'](_0x29c53a))continue;const _0x102965=_0x29c53a['slice'](0x0,-0x7)['toLowerCase'](),_0x590fff='FORMAT_'+_0x102965['toUpperCase']();_0x5cc9ab['enableDefaultAttributesIntegration'](_0x102965),_0x5cc9ab['registerInlineAttribute'](_0x102965),_0x5cc9ab['descriptionFactory']['registerAttributeLabel'](_0x102965,c(_0x484e30,_0x590fff));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24ed95=this['editor'],_0x564ba4=_0x24ed95['locale'],_0x525fc2=_0x24ed95['plugins']['get']('TrackChangesEditing');function _0x46b6a8(_0x5b2fff,_0x1ac41e){_0x525fc2['descriptionFactory']['registerDescriptionCallback'](_0x39d464=>{if('formatInline'!=_0x39d464['type'])return;const {data:_0xb4ea3f}=_0x39d464;return _0xb4ea3f&&_0xb4ea3f['commandName']===_0x5b2fff?_0xb4ea3f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x564ba4,'*Format:*\x20%0',_0x1ac41e)}:{'type':'format','content':c(_0x564ba4,'*Remove\x20format:*\x20%0',_0x1ac41e)}:void 0x0;});}_0x46b6a8('bold',c(_0x564ba4,'FORMAT_BOLD')),_0x46b6a8('italic',c(_0x564ba4,'FORMAT_ITALIC')),_0x46b6a8('underline',c(_0x564ba4,'FORMAT_UNDERLINE')),_0x46b6a8('code',c(_0x564ba4,'FORMAT_CODE')),_0x46b6a8('strikethrough',c(_0x564ba4,'FORMAT_STRIKETHROUGH')),_0x46b6a8('subscript',c(_0x564ba4,'FORMAT_SUBSCRIPT')),_0x46b6a8('superscript',c(_0x564ba4,'FORMAT_SUPERSCRIPT'));}}class G extends _0x5575fe{['afterInit'](){const _0x3a4eea=this['editor'],_0x2e263e=_0x3a4eea['locale'];if(!_0x3a4eea['plugins']['has']('BlockQuoteEditing'))return;const _0x44bab=_0x3a4eea['plugins']['get']('TrackChangesEditing'),_0x18bc20=this['editor']['commands']['get']('blockQuote');_0x44bab['enableCommand']('blockQuote',(_0x7991a4,_0x254a0b={})=>{const _0x1848c7=this['editor']['model']['document']['selection'],_0x5ce5f2=_0x254a0b&&void 0x0!==_0x254a0b['forceValue']?_0x254a0b['forceValue']:!_0x18bc20['value'];let _0x4879d2=[];if(_0x5ce5f2){const _0x410114=Array['from'](_0x1848c7['getSelectedBlocks']())['filter'](_0x28e7a7=>oo(_0x28e7a7)||function(_0x4acd86,_0x2f00e7){const _0x6a5371=_0x2f00e7['checkChild'](_0x4acd86['parent'],'blockQuote'),_0x5dfe78=_0x2f00e7['checkChild'](['$root','blockQuote'],_0x4acd86);return _0x6a5371&&_0x5dfe78;}(_0x28e7a7,this['editor']['model']['schema']));_0x4879d2=to(_0x410114,_0x3a4eea['model']);}else{const _0x2d32c6=Array['from'](_0x1848c7['getSelectedBlocks']())['filter'](_0x43e451=>oo(_0x43e451));_0x4879d2=to(_0x2d32c6,_0x3a4eea['model']);}_0x3a4eea['model']['change'](()=>{for(const _0x4e1b3c of _0x4879d2)_0x44bab['markBlockFormat'](_0x4e1b3c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5ce5f2}]});});}),_0x44bab['descriptionFactory']['registerDescriptionCallback'](_0xb2e6e5=>{const {data:_0x3a6e10}=_0xb2e6e5;if(_0x3a6e10&&'blockQuote'==_0x3a6e10['commandName']){const _0x56b123=c(_0x2e263e,'ELEMENT_BLOCK_QUOTE');return _0x3a6e10['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2e263e,'*Set\x20format:*\x20%0',_0x56b123)}:{'type':'format','content':c(_0x2e263e,'*Remove\x20format:*\x20%0',_0x56b123)};}});}}function oo(_0x2c79f4){return'blockQuote'==_0x2c79f4['parent']['name'];}class L extends _0x5575fe{['afterInit'](){const _0x2c8343=this['editor'],_0x5b2c00=_0x2c8343['locale'],_0x14ad30=_0x2c8343['plugins']['get']('TrackChangesEditing');_0x2c8343['plugins']['has']('BookmarkEditing')&&(_0x14ad30['enableCommand']('insertBookmark'),_0x14ad30['enableDefaultAttributesIntegration']('updateBookmark'),_0x14ad30['registerBlockAttribute']('bookmarkId'),_0x14ad30['descriptionFactory']['registerDescriptionCallback'](_0x143beb=>{if('insertion'!=_0x143beb['type']&&'deletion'!=_0x143beb['type']&&'attribute'!=_0x143beb['type'])return;const _0x36f6a6=_0x143beb['getContainedElement']();if(null==_0x36f6a6)return;if(!_0x36f6a6['is']('element','bookmark'))return;const _0x18eec7=_0x36f6a6['getAttribute']('bookmarkId');if('insertion'==_0x143beb['type'])return{'type':'insertion','content':c(_0x5b2c00,'*Insert:*\x20%0','\x22'+_0x18eec7+'\x22\x20'+c(_0x5b2c00,'ELEMENT_BOOKMARK'))};if('deletion'==_0x143beb['type'])return{'type':'deletion','content':c(_0x5b2c00,'*Remove:*\x20%0','\x22'+_0x18eec7+'\x22\x20'+c(_0x5b2c00,'ELEMENT_BOOKMARK'))};const {data:_0x50934b}=_0x143beb;if(!_0x50934b||'bookmarkId'!=_0x50934b['key'])return;return{'type':'format','content':c(_0x5b2c00,'*Set\x20bookmark:*\x20%0','\x22'+_0x50934b['newValue']+'\x22')};}));}}class J extends _0x5575fe{['afterInit'](){const _0x4b2eeb=this['editor'];_0x4b2eeb['plugins']['has']('CaseChange')&&(_0x4b2eeb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4b2eeb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4b2eeb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x5575fe{['afterInit'](){const _0x53cc25=this['editor'];_0x53cc25['commands']['get']('ckbox')&&_0x53cc25['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x5575fe{['afterInit'](){const _0x8e129e=this['editor'];if(!_0x8e129e['plugins']['has']('CodeBlock'))return;const _0x3a6e38=_0x8e129e['plugins']['get']('TrackChangesEditing'),_0x43739b=_0x8e129e['locale'],_0x459cee=_0x8e129e['config']['get']('codeBlock')['languages'],_0x5a8eba=_0x8e129e['commands']['get']('codeBlock');_0x3a6e38['enableCommand']('indentCodeBlock'),_0x3a6e38['enableCommand']('outdentCodeBlock'),_0x3a6e38['enableCommand']('codeBlock',(_0xfad771,_0x20ced4={})=>{const _0x3adaec=_0x8e129e['model'],_0x1c1312=_0x8e129e['model']['document']['selection'],_0x145927=_0x20ced4&&void 0x0!==_0x20ced4['forceValue']?_0x20ced4['forceValue']:!_0x5a8eba['value'];let _0x12ea17;_0x20ced4['language']||(_0x20ced4['language']=_0x459cee[0x0]['language']),_0x12ea17=_0x145927?Array['from'](_0x1c1312['getSelectedBlocks']())['filter'](_0x3ee369=>eo(_0x3ee369)||function(_0x4f544a,_0x22613d){if(_0x4f544a['is']('rootElement')||_0x22613d['isLimit'](_0x4f544a))return!0x1;return _0x22613d['checkChild'](_0x4f544a['parent'],'codeBlock');}(_0x3ee369,_0x3adaec['schema'])):Array['from'](_0x1c1312['getSelectedBlocks']())['filter'](_0x12468b=>eo(_0x12468b));const _0x5ad3b1=to(_0x12ea17,_0x3adaec);_0x3adaec['change'](()=>{for(const _0x5609e8 of _0x5ad3b1)_0x3a6e38['markBlockFormat'](_0x5609e8,{'commandName':'codeBlock','commandParams':[{..._0x20ced4,'forceValue':_0x145927}],'formatGroupId':'blockName'});});}),(_0x3a6e38['descriptionFactory']['registerElementLabel']('codeBlock',_0xa2b8c1=>c(_0x43739b,'ELEMENT_CODE_BLOCK',_0xa2b8c1)),_0x3a6e38['descriptionFactory']['registerDescriptionCallback'](_0x3923b3=>{if('formatBlock'!=_0x3923b3['type'])return;const _0x492651=_0x43739b['t'],{data:_0x1e8a3a}=_0x3923b3;if(!_0x1e8a3a||'codeBlock'!=_0x1e8a3a['commandName'])return;const _0x4dd3e6=_0x1e8a3a['commandParams'][0x0]['language'],_0x5e87fb=_0x492651(_0x459cee['find'](_0x3fa490=>_0x3fa490['language']===_0x4dd3e6)['label'])['toLowerCase']();return _0x1e8a3a['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x43739b,'*Set\x20format:*\x20%0',c(_0x43739b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5e87fb+')')}:{'type':'format','content':c(_0x43739b,'*Remove\x20format:*\x20%0',c(_0x43739b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4729e1){return'codeBlock'==_0x4729e1['name'];}class q extends _0x5575fe{['afterInit'](){const _0x2c5a92=this['editor'];if(!_0x2c5a92['plugins']['has']('CommentsEditing'))return;_0x2c5a92['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1d69ac,_0x8d3bdc,_0x271af1){const _0x2072e6=[];for(const _0x110904 of _0x8d3bdc['getItems']())_0x110904['hasAttribute'](_0x1d69ac)&&_0x2072e6['push'](_0x271af1['createRangeOn'](_0x110904));return _0x2072e6;}function Fe(_0x940613,_0x2447d4,{showActiveMarker:_0x1c43aa=!0x0}={}){const _0x2d3c47=_0x940613['plugins']['get']('TrackChangesEditing');return(_0x44ec3d,_0x29dd14,_0x3e7833)=>{if(!_0x3e7833['consumable']['test'](_0x29dd14['markerRange'],_0x44ec3d['name']))return;const _0x5481bc=_0x29dd14['markerRange']['getWalker'](),_0x515c37=_0x29dd14['markerRange']['start'],_0x3f4d64=_0x940613['model']['schema'];let _0x441adf=null,_0x2bb934=null,_0x349056=!0x1,_0xe2fd8=!0x1;for(const _0x25f837 of _0x5481bc){const _0x25d747=_0x25f837['item'];_0x349056=_0x349056||_0x3f4d64['isContent'](_0x25d747);const _0x388ad4=_0x3e7833['mapper']['toViewElement'](_0x25d747);if(_0x388ad4&&_0x388ad4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x25f837['type']&&(_0x3f4d64['isBlock'](_0x25d747)&&!_0x3f4d64['isLimit'](_0x25d747)&&(_0x25d747['nextSibling']||_0x515c37['isAtEnd']?_0x441adf&&_0x441adf['parent']==_0x25d747||(_0x441adf=_0x25d747,_0xf05fe3(_0x25f837['previousPosition']),_0xe2fd8=!0x0):_0x2bb934=_0x2bb934||_0x25f837['previousPosition']));}function _0xf05fe3(_0x10a397){const {id:_0x4adc41,authorId:_0x536f3e}=_0x2d3c47['_splitMarkerName'](_0x29dd14['markerName']),_0xbf21ff=_0x3e7833['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2447d4,'data-suggestion':_0x4adc41,'data-author-id':_0x536f3e}),_0x64bb6=_0x3e7833['mapper']['toViewPosition'](_0x10a397);_0x1c43aa&&_0x2d3c47['activeMarkers']['includes'](_0x29dd14['markerName'])&&_0x3e7833['writer']['addClass']('ck-suggestion-marker--active',_0xbf21ff),_0x3e7833['writer']['insert'](_0x64bb6,_0xbf21ff),_0x3e7833['mapper']['bindElementToMarker'](_0xbf21ff,_0x29dd14['markerName']);}_0x349056||_0xe2fd8||!_0x2bb934||_0xf05fe3(_0x2bb934);};}class z extends _0x5575fe{static get['requires'](){return[_0x2fb98e];}['init'](){const _0x413ab8=this['editor'],_0xac7981=_0x413ab8['plugins']['get']('TrackChangesEditing');_0xac7981['enableCommand']('delete');const _0x434e0a=_0x413ab8['commands']['get']('deleteForward');_0xac7981['enableCommand']('deleteForward',(_0x243f4d,_0x25c2db={})=>{const _0x56e26b=_0x413ab8['model']['createSelection'](_0x413ab8['model']['document']['selection']);_0x56e26b['isCollapsed']&&_0x413ab8['model']['modifySelection'](_0x56e26b,{'direction':'forward','unit':_0x25c2db['unit']});const _0x235b48=_0x56e26b['getFirstRange'](),_0x3fbfd7=_0x34c04c['fromRange'](_0x235b48);let _0x3a337f;_0x243f4d(_0x25c2db),_0x3a337f='$graveyard'==_0x3fbfd7['root']['rootName']?_0x413ab8['model']['createRange'](_0x235b48['start']):_0x413ab8['model']['createRange'](_0x3fbfd7['start'],_0x3fbfd7['end']),_0x3fbfd7['detach'](),_0x413ab8['model']['enqueueChange'](_0x434e0a['buffer']['batch'],_0x3b9a04=>{_0x434e0a['buffer']['lock'](),_0x3b9a04['setSelection'](_0x3b9a04['createRange'](_0x3a337f['end'])),_0x434e0a['buffer']['unlock']();});}),_0x413ab8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x413ab8,'merge'),{'priority':'high'}),_0x413ab8['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4507dc,_0x535442,_0x56d29f)=>{_0x56d29f['options']['showSuggestionHighlights']&&Fe(_0x413ab8,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4507dc,_0x535442,_0x56d29f);},{'priority':'high'}),_0x413ab8['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x109f64,_0x2f2124,_0x40955e)=>{const _0x90c951=_0x40955e['mapper']['markerNameToElements'](_0x2f2124['markerName']);if(_0x90c951){for(const _0x32f540 of _0x90c951)_0x32f540['is']('uiElement')&&(_0x40955e['mapper']['unbindElementFromMarkerName'](_0x32f540,_0x2f2124['markerName']),_0x40955e['writer']['remove'](_0x32f540));}},{'priority':'high'});}}class W extends _0x5575fe{['afterInit'](){const _0x3f2b49=this['editor'];if(!_0x3f2b49['plugins']['has']('ListEditing'))return;const _0x3a3277=_0x3f2b49['locale'],_0x5017e1=_0x3f2b49['plugins']['get']('TrackChangesEditing'),_0x522f23=_0x3f2b49['plugins']['has']('TodoListEditing'),_0x3b72f0=!!_0x3f2b49['config']['get']('list.multiBlock');function _0x3df84e(_0xd5fc0d){return{'type':'format','content':''+c(_0x3a3277,'*Set\x20format:*\x20%0',_0xd5fc0d)};}function _0x5aab72(_0xcbdb39){return{'type':'format','content':''+c(_0x3a3277,'*Remove\x20format:*\x20%0',_0xcbdb39)};}_0x5017e1['enableDefaultAttributesIntegration']('numberedList'),_0x5017e1['enableDefaultAttributesIntegration']('bulletedList'),_0x5017e1['enableDefaultAttributesIntegration']('customNumberedList'),_0x5017e1['enableDefaultAttributesIntegration']('customBulletedList'),_0x5017e1['enableDefaultAttributesIntegration']('indentList'),_0x5017e1['enableDefaultAttributesIntegration']('outdentList'),_0x5017e1['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5017e1['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5017e1['registerBlockAttribute']('listItemId'),_0x5017e1['registerBlockAttribute']('listType'),_0x5017e1['registerBlockAttribute']('listIndent'),_0x3b72f0&&(_0x5017e1['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5017e1['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x522f23&&(_0x5017e1['enableDefaultAttributesIntegration']('todoList'),_0x5017e1['enableDefaultAttributesIntegration']('checkTodoList'),_0x5017e1['registerBlockAttribute']('todoListChecked'),_0x5017e1['descriptionFactory']['registerDescriptionCallback'](_0x915b6b=>{const {data:_0x255533}=_0x915b6b;if(_0x255533&&'todoListChecked'==_0x255533['key'])return{'type':'format','content':_0x255533['newValue']?c(_0x3a3277,'*Check\x20item*'):c(_0x3a3277,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3a4944=>{if(_0x3a4944['batch']['isUndo'])return!0x1;let _0xe7e262=!0x1;const _0x28fba5=_0x5017e1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6d9b8e=>'todoListChecked'===_0x5017e1['_getAttributeKey'](_0x6d9b8e));for(const _0xaa796b of _0x28fba5){'todo'!=_0xaa796b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5017e1['_findSuggestions'](_0xaa796b['getFirstRange'](),'attribute')['find'](_0x4447b6=>'listType'===_0x5017e1['_getAttributeKey'](_0x4447b6['suggestion']))||(_0x3a4944['removeMarker'](_0xaa796b['getFirstMarker']()),_0xe7e262=!0x0));}return _0xe7e262;})),_0x5017e1['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x3a3277,'FORMAT_INDENT'));const _0x2244df={'type':'format','content':''};_0x5017e1['descriptionFactory']['registerDescriptionCallback'](_0x190f59=>{const {data:_0x33a5ef}=_0x190f59;if(!_0x33a5ef||'listType'!=_0x33a5ef['key'])return;let _0x1ab189=_0x190f59['head'];for(;_0x1ab189;){if(_0x1ab189['data']&&(('listStyle'==_0x1ab189['data']['key']||'listMarkerStyle'==_0x1ab189['data']['key'])&&(_0x1ab189['data']['newValue']&&'default'!=_0x1ab189['data']['newValue']||'default'!=_0x1ab189['data']['oldValue']&&!_0x33a5ef['newValue'])||!_0x3b72f0&&_0x1ab189['data']['key']==u))return _0x2244df;_0x1ab189=_0x1ab189['next'];}if(null==_0x33a5ef['newValue'])switch(_0x33a5ef['oldValue']){case'bulleted':return _0x5aab72(c(_0x3a3277,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5aab72(c(_0x3a3277,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5aab72(c(_0x3a3277,'ELEMENT_TODO_LIST'));}switch(_0x33a5ef['newValue']){case'bulleted':return _0x3df84e(c(_0x3a3277,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3df84e(c(_0x3a3277,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3df84e(c(_0x3a3277,'ELEMENT_TODO_LIST'));}}),_0x5017e1['descriptionFactory']['registerDescriptionCallback'](_0xa2999=>{const {data:_0x5c1d03}=_0xa2999;if(_0x5c1d03&&'listIndent'==_0x5c1d03['key'])return null==_0x5c1d03['newValue']||null==_0x5c1d03['oldValue']&&0x0==_0x5c1d03['newValue']?_0x2244df:void 0x0;}),_0x5017e1['descriptionFactory']['registerDescriptionCallback'](_0x1ad403=>{if('attribute'!=_0x1ad403['type'])return;const {data:_0x542e93}=_0x1ad403;if(!_0x542e93||'listItemId'!=_0x542e93['key'])return;const _0x1232d1=Te(_0x1ad403);return'newValue'==_0x1232d1?{'type':'format','content':c(_0x3a3277,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1232d1?{'type':'format','content':c(_0x3a3277,'*Split:*\x20list\x20item')}:_0x2244df;}),_0x3f2b49['model']['document']['registerPostFixer'](_0x448fe0=>this['listItemIdFixer'](_0x448fe0)),_0x3f2b49['model']['document']['registerPostFixer'](_0x22d9dc=>this['noTrackChangesFixer'](_0x22d9dc)),_0x3f2b49['model']['document']['on']('change:data',(_0x2843a2,_0x468b22)=>{if(_0x468b22['isUndo']||!_0x468b22['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4ca477){if(_0x4ca477['batch']['isUndo']||!_0x4ca477['batch']['isLocal'])return!0x1;let _0x129b47=!0x1;const _0x278761=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15314e=>_0x15314e['data']&&'listItemId'==_0x15314e['data']['key'])['filter'](_0x3f9258=>_0x3f9258['data']['newValue']&&_0x3f9258['data']['oldValue']);for(const _0x544f9a of _0x278761)Te(_0x544f9a)||(_0x4ca477['removeMarker'](_0x544f9a['getFirstMarker']()),_0x129b47=!0x0);return _0x129b47;}['noTrackChangesFixer'](_0x579cac){if(_0x579cac['batch']['isUndo']||!_0x579cac['batch']['isLocal'])return!0x1;const _0x468188=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x468188['trackChangesCommand']['value'])return!0x1;let _0x570e6a=!0x1;const _0x183841=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xf60125=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x44f5a7=>'attribute'==_0x44f5a7['type'])['filter'](_0x34d833=>_0x183841['includes'](_0x34d833['attributeKey']));if(0x0==_0xf60125['length'])return _0x570e6a;for(const _0x22233d of _0xf60125){const _0xf305fb=_0x468188['_findSuggestions'](_0x22233d['range'],'attribute')['filter'](_0x54ed1b=>!_0x54ed1b['meta']['isNextTo'])['map'](_0x2b5582=>_0x2b5582['suggestion'])['filter'](_0x16b27b=>{const _0x14522e=_0x468188['_getAttributeKey'](_0x16b27b);return _0x183841['includes'](_0x14522e);});if(_0xf305fb['length']){for(const _0x37f176 of _0xf305fb)_0x579cac['removeMarker'](_0x37f176['getFirstMarker']());_0x570e6a=!0x0;}}return _0x570e6a;}['assureChains'](){const _0x4bb0aa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x347f2c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xe0046a;const _0x3f3352=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x43899d=>{if(_0x43899d['data']['oldRange']||!_0x43899d['data']['newRange'])return null;if(!_0x43899d['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1c7dc5}=_0x4bb0aa['_splitMarkerName'](_0x43899d['name']);if(!_0x4bb0aa['hasSuggestion'](_0x1c7dc5))return null;const _0x12545d=_0x4bb0aa['getSuggestion'](_0x1c7dc5);return _0x347f2c['includes'](_0x12545d['data']['key']);})['map'](_0x5f0903=>{const {id:_0x169eee}=_0x4bb0aa['_splitMarkerName'](_0x5f0903['name']),_0x16c69b=_0x4bb0aa['getSuggestion'](_0x169eee);return _0xe0046a=_0x16c69b['attributes']['groupId'],_0x16c69b['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3f3352['size'])return;const _0x3b13c5=_0x4bb0aa['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x51c418=>'attribute'==_0x51c418['type']&&_0x51c418['data']&&_0x347f2c['includes'](_0x51c418['data']['key'])&&_0x51c418['attributes']['groupId']!=_0xe0046a)['map'](_0x190142=>({'listItem':_0x190142['getFirstRange']()['start']['nodeAfter'],'groupId':_0x190142['attributes']['groupId']})),_0x24f353=new Set();for(const {groupId:_0x447e59,listItem:_0xc805fd}of _0x3b13c5)_0x3f3352['has'](_0xc805fd)&&_0x24f353['add'](_0x447e59);for(const _0x1bca98 of _0x4bb0aa['getSuggestions']())_0x24f353['has'](_0x1bca98['attributes']['groupId'])&&_0x1bca98['setAttribute']('groupId',_0xe0046a);}['_supportLegacySuggestions'](){const _0x1d88a1=this['editor'],_0x3a6ec0=_0x1d88a1['locale'],_0x49d0d9=_0x1d88a1['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x49d0d9['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3b0d50,_0x49b187){const _0x3fa845=[];for(let _0x16f168 of _0x3b0d50)_0x16f168['start']['nodeAfter']===_0x16f168['end']['parent']&&(_0x16f168=_0x1d88a1['model']['createRange'](_0x1d88a1['model']['createPositionAt'](_0x16f168['start']['nodeAfter'],0x0))),_0x3fa845['push'](_0x16f168);_0x1d88a1['model']['change'](_0x4e6521=>{const _0x138851=_0x1d88a1['model']['document']['selection'],_0x5836cf=Array['from'](_0x138851['getRanges']())['map'](_0x1a475d=>_0x34c04c['fromRange'](_0x1a475d));_0x4e6521['setSelection'](_0x3fa845),_0x1d88a1['commands']['get'](_0x49b187['commandName'])['refresh'](),_0x49b187['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1d88a1['execute'](_0x49b187['commandName'],..._0x49b187['commandParams']),_0x4e6521['setSelection'](_0x5836cf);for(const _0x44aaf2 of _0x5836cf)_0x44aaf2['detach']();});}),_0x49d0d9['descriptionFactory']['registerElementLabel'](function(_0x527ce0){const _0x2bea1d=!_0x1d88a1['model']['schema']['isObject'](_0x527ce0),_0x28c8d4=_0x527ce0['previousSibling'],_0x15162c=_0x527ce0['nextSibling'],_0x22e436=_0x527ce0['getAttribute']('listItemId'),_0x1120e6=!_0x28c8d4||_0x28c8d4['getAttribute']('listItemId')!==_0x22e436,_0x4fbdb=!_0x15162c||_0x15162c['getAttribute']('listItemId')!==_0x22e436;return _0x2bea1d&&Boolean(_0x22e436)&&_0x1120e6&&_0x4fbdb;},_0x4f6a5c=>c(_0x3a6ec0,'ELEMENT_LIST_ITEM',_0x4f6a5c));}['_registerLegacyDescription'](){const _0x2be4ff=this['editor'],_0x518730=_0x2be4ff['locale'];function _0x1c8b08(_0x309514){const _0x2043d7=_0x2be4ff['commands']['get']('bulletedList')['value'],_0x21e367=_0x2be4ff['commands']['get']('numberedList')['value'];return'numberedList'===_0x309514?_0x2043d7:_0x21e367;}_0x2be4ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5b97fa){if('formatBlock'!=_0x5b97fa['type'])return;const {data:_0x5149d1}=_0x5b97fa;if(!_0x5149d1)return;let _0x168b30,_0x5a7234,_0x4a328d,_0x3b3f88;switch(_0x5149d1['commandName']){case'bulletedList':_0x4a328d=_0x5149d1['commandParams'][0x0]['forceValue'],_0x3b3f88=_0x1c8b08(_0x5149d1['commandName']),_0x168b30=_0x4a328d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3b3f88&&_0x2be4ff['config']['get']('list.multiBlock')||(_0x168b30='*Change\x20to:*\x20%0'),_0x5a7234={'type':'format','content':c(_0x518730,_0x168b30,c(_0x518730,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4a328d=_0x5149d1['commandParams'][0x0]['forceValue'],_0x3b3f88=_0x1c8b08(_0x5149d1['commandName']),_0x168b30=_0x4a328d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3b3f88&&_0x2be4ff['config']['get']('list.multiBlock')||(_0x168b30='*Change\x20to:*\x20%0'),_0x5a7234={'type':'format','content':c(_0x518730,_0x168b30,c(_0x518730,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x168b30='*Indent:*\x20%0',_0x5a7234={'type':'format','content':c(_0x518730,_0x168b30,c(_0x518730,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x168b30=function(_0x56e65d){const _0x8b1396=_0x56e65d['getFirstRange']();let _0x1c4e29=_0x8b1396['start']['nodeAfter'];for(;_0x1c4e29&&_0x8b1396['containsItem'](_0x1c4e29);){if(_0x1c4e29['getAttribute']('listIndent')>0x0)return!0x1;_0x1c4e29=_0x1c4e29['nextSibling'];}return!0x0;}(_0x5b97fa)?c(_0x518730,'*Format:*\x20remove\x20from\x20%0',c(_0x518730,function(_0x4eb1e5){return'ELEMENT_'+_0x4eb1e5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5b97fa))):c(_0x518730,'*Outdent:*\x20%0',c(_0x518730,'ELEMENT_LIST_ITEM')),_0x5a7234={'type':'format','content':_0x168b30};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5149d1['multipleBlocks']&&(_0x168b30='*Merge:*\x20%0',_0x5a7234={'type':'deletion','content':c(_0x518730,_0x168b30,c(_0x518730,'ELEMENT_LIST_ITEM'))});}return _0x5a7234;});}}function Te(_0x32aa8f){let _0x5cfbee=_0x32aa8f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5cfbee;){const _0x183c02=_0x5cfbee['getAttribute']('listItemId');if(!_0x183c02)return!0x1;if(_0x183c02==_0x32aa8f['data']['newValue'])return'newValue';if(_0x183c02==_0x32aa8f['data']['oldValue'])return'oldValue';_0x5cfbee=_0x5cfbee['previousSibling'];}return!0x1;}class Se extends _0x5575fe{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xe2f6ab=this['editor']['config']['get']('list.properties'),_0x5cafd4=this['editor']['plugins']['get']('TrackChangesEditing');_0xe2f6ab['styles']&&(_0x5cafd4['enableDefaultAttributesIntegration']('listStyle'),_0x5cafd4['registerBlockAttribute']('listStyle')),_0xe2f6ab['reversed']&&(_0x5cafd4['enableDefaultAttributesIntegration']('listReversed'),_0x5cafd4['registerBlockAttribute']('listReversed')),_0xe2f6ab['startIndex']&&(_0x5cafd4['enableDefaultAttributesIntegration']('listStart'),_0x5cafd4['registerBlockAttribute']('listStart'));const _0x4b0a82={'type':'format','content':''};_0x5cafd4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5623b9=this['editor']['locale'];_0x5cafd4['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x5623b9,'FORMAT_LIST_REVERSED')),_0x5cafd4['descriptionFactory']['registerDescriptionCallback'](_0x2a7d73=>{const {data:_0x477b66}=_0x2a7d73;if(_0x477b66&&'listReversed'==_0x477b66['key'])return null==_0x477b66['newValue']||0x0==_0x477b66['newValue']&&null==_0x477b66['oldValue']?_0x4b0a82:void 0x0;}),_0x5cafd4['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x5623b9,'FORMAT_LIST_START')),_0x5cafd4['descriptionFactory']['registerDescriptionCallback'](_0x5a63dc=>{const {data:_0x134d49}=_0x5a63dc;if(_0x134d49&&'listStart'==_0x134d49['key'])return null==_0x134d49['newValue']||0x1==_0x134d49['newValue']&&null==_0x134d49['oldValue']?_0x4b0a82:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x25cfed=>{if(_0x25cfed['batch']['isUndo'])return!0x1;let _0x4c4eec=!0x1;const _0x2a437a=_0x5cafd4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x287755=>{const _0x2ae341=_0x5cafd4['_getAttributeKey'](_0x287755);return'listStart'==_0x2ae341||'listReversed'==_0x2ae341;});for(const _0x4ea95f of _0x2a437a){const _0x559cbb=_0x4ea95f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x559cbb||'customNumbered'==_0x559cbb)continue;_0x5cafd4['_findSuggestions'](_0x4ea95f['getFirstRange'](),'attribute')['find'](_0x1356ae=>'listType'==_0x5cafd4['_getAttributeKey'](_0x1356ae['suggestion']))||(_0x25cfed['removeMarker'](_0x4ea95f['getFirstMarker']()),_0x4c4eec=!0x0);}return _0x4c4eec;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x539d5e){const _0x25faec=this['editor']['locale'],{data:_0x4a042e}=_0x539d5e,_0x561a01={'type':'format','content':''};if(!_0x4a042e||'listStyle'!=_0x4a042e['key'])return;if(!_0x4a042e['oldValue'])return'default'==_0x4a042e['newValue']?_0x561a01:{'type':'format','content':''+c(_0x25faec,'*Set\x20format:*\x20%0',c(_0x25faec,this['_getTranslationKeyForListStyle'](_0x4a042e['newValue'])))};if(!_0x4a042e['newValue']){if('default'==_0x4a042e['oldValue'])return _0x561a01;let _0x30640b=_0x539d5e['head'];for(;_0x30640b;){if(_0x30640b['data']&&'listType'==_0x30640b['data']['key']&&_0x30640b['data']['newValue'])return _0x561a01;_0x30640b=_0x30640b['next'];}return{'type':'format','content':''+c(_0x25faec,'*Remove\x20format:*\x20%0',c(_0x25faec,this['_getTranslationKeyForListStyle'](_0x4a042e['oldValue'])))};}if('default'!=_0x4a042e['newValue'])return{'type':'format','content':''+c(_0x25faec,'*Set\x20format:*\x20%0',c(_0x25faec,this['_getTranslationKeyForListStyle'](_0x4a042e['newValue'])))};let _0x4f404c=_0x539d5e['head'];for(;_0x4f404c;){if(_0x4f404c['data']&&'listType'==_0x4f404c['data']['key']&&_0x4f404c['data']['newValue']&&_0x4f404c['data']['oldValue'])return _0x561a01;_0x4f404c=_0x4f404c['next'];}return{'type':'format','content':c(_0x25faec,'*Set\x20format:*\x20%0',c(_0x25faec,'ELEMENT_'+_0x539d5e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x192986=this['editor'],_0x584b44=_0x192986['locale'];_0x192986['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24ad57=>{if('formatBlock'!=_0x24ad57['type'])return;const {data:_0x36008f}=_0x24ad57;if(!_0x36008f)return;let _0x5599fb,_0x27e943;switch(_0x36008f['commandName']){case'listStyle':_0x5599fb='*Change\x20to:*\x20%0',_0x27e943={'type':'format','content':c(_0x584b44,_0x5599fb,c(_0x584b44,this['_getTranslationKeyForListStyle'](_0x36008f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5599fb=_0x36008f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x27e943={'type':'format','content':c(_0x584b44,_0x5599fb)};break;case'listStart':_0x5599fb='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x27e943={'type':'format','content':c(_0x584b44,_0x5599fb,_0x36008f['commandParams'][0x0]['startIndex'])};}return _0x27e943;});}['_getTranslationKeyForListStyle'](_0x482505){return'ELEMENT_'+function(_0x3c74c0){if(_e['includes'](_0x3c74c0))return'bulleted';if(Re['includes'](_0x3c74c0))return'numbered';return null;}(_0x482505)['toUpperCase']()+'_LIST_'+_0x482505['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x5575fe{['afterInit'](){const _0x5abf04=this['editor'];_0x5abf04['commands']['get']('emoji')&&_0x5abf04['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x5575fe{static get['requires'](){return[_0x182741];}['init'](){const _0x336c97=this['editor'],_0x54fa1b=_0x336c97['plugins']['get']('TrackChangesEditing'),_0x5b8832=_0x336c97['commands']['get']('enter');_0x54fa1b['enableCommand']('enter',()=>{_0x336c97['model']['change'](_0x533800=>{const _0x234e6d=_0x336c97['model']['document']['selection'],_0x422189=_0x234e6d['getFirstPosition'](),_0x515bbb=_0x34c04c['fromRange'](_0x234e6d['getFirstRange']());if(_0x5b8832['enterBlock'](_0x533800)){const _0x142706=_0x336c97['model']['createPositionAt'](_0x422189['parent']['nextSibling'],0x0),_0x237281=_0x533800['createRange'](_0x422189,_0x142706);_0x54fa1b['markInsertion'](_0x237281);}else _0x533800['setSelection'](_0x533800['createRange'](_0x515bbb['end']));_0x515bbb['detach'](),_0x5b8832['fire']('afterExecute',{'writer':_0x533800});});}),_0x336c97['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x336c97,'split'),{'priority':'high'}),_0x336c97['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3e4b2b,_0x2ad9a6,_0x2025e1)=>{const _0x3fb4cc=_0x2025e1['mapper']['markerNameToElements'](_0x2ad9a6['markerName']);if(_0x3fb4cc){for(const _0x197a84 of _0x3fb4cc)_0x197a84['hasClass']('ck-suggestion-marker-split')&&(_0x2025e1['mapper']['unbindElementFromMarkerName'](_0x197a84,_0x2ad9a6['markerName']),_0x2025e1['writer']['remove'](_0x197a84));}},{'priority':'high'}),_0x336c97['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4b8b33,_0x5ceea8,_0x490a05)=>{_0x490a05['options']['showSuggestionHighlights']&&Fe(_0x336c97,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4b8b33,_0x5ceea8,_0x490a05);},{'priority':'high'});}}class Z extends _0x5575fe{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x209817=this['editor']['plugins']['get']('TrackChangesEditing');_0x209817['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x209817['enableCommand']('findNext'),_0x209817['enableCommand']('findPrevious'),_0x209817['enableCommand']('replace'),_0x209817['enableCommand']('replaceAll');}['handleFindCommand'](_0x3cb2c9,_0x7ace93,_0x35c7a5={}){const _0x3e99d6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3cb2c9(_0x5f1547=>{let _0x4088a5=('string'==typeof _0x7ace93?_0x3e99d6['findByTextCallback'](_0x7ace93,_0x35c7a5):_0x7ace93)(_0x5f1547);Array['isArray'](_0x4088a5)&&(_0x4088a5={'results':_0x4088a5,'searchText':'string'==typeof _0x7ace93?_0x7ace93:''});const _0x30e9f4=_0x4088a5['results']['filter'](_0x21ceb7=>!0x1===this['_isInDeletionRange'](_0x21ceb7,_0x5f1547['item']));return{..._0x4088a5,'results':_0x30e9f4};},_0x35c7a5);}['_isInDeletionRange'](_0x4f9785,_0x104828){const _0x8c1620=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x104828,_0x4f9785['start']),this['editor']['model']['createPositionAt'](_0x104828,_0x4f9785['end']));for(const _0x391f70 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x8c1620['getIntersection'](_0x391f70['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 _0x5575fe{['afterInit'](){const _0x313cd5=this['editor']['locale'],_0x4170a2=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1b168e,commandName:_0x1d793b}of ro)this['editor']['plugins']['has'](_0x1b168e)&&(_0x4170a2['enableDefaultAttributesIntegration'](_0x1d793b),_0x4170a2['registerInlineAttribute'](_0x1d793b));_0x4170a2['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x313cd5,'FORMAT_FONT_SIZE')),_0x4170a2['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x313cd5,'FORMAT_FONT_FAMILY')),_0x4170a2['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x313cd5,'FORMAT_FONT_COLOR')),_0x4170a2['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x313cd5,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x511a4b=this['editor'],_0x212f53=_0x511a4b['locale'];_0x511a4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f7ae0=>{const _0x361fe6=_0x212f53['t'];if('formatInline'!=_0x4f7ae0['type'])return;const {data:_0x364766}=_0x4f7ae0;if(null!=_0x364766){if('fontSize'==_0x364766['commandName']){const _0x1a0d93=_0x364766['commandParams'][0x0]['value'];if(_0x1a0d93){const _0x29eb44=_0x361fe6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x49301b=>_0x49301b['model']==_0x1a0d93)['title'])['toLowerCase']();return{'type':'format','content':c(_0x212f53,'*Set\x20font\x20size:*\x20%0',_0x29eb44)};}return{'type':'format','content':c(_0x212f53,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x364766['commandName']){const _0x5bf071=_0x364766['commandParams'][0x0]['value'];return _0x5bf071?{'type':'format','content':c(_0x212f53,'*Set\x20font\x20family:*\x20%0',_0x5bf071)}:{'type':'format','content':c(_0x212f53,'*Reset\x20font\x20family*')};}if('fontColor'==_0x364766['commandName']){const _0x166e64=_0x364766['commandParams'][0x0]['value'];if(_0x166e64){const _0x9c3096=_0x288e8f(this['editor']['config']['get']('fontColor.colors'))['find'](_0x40aae0=>_0x40aae0['model']==_0x166e64);let _0x183f68=_0x166e64,_0x16137c='';return _0x9c3096&&(_0x183f68=_0x9c3096['label'],_0x16137c=_0x361fe6(_0x183f68)['toLowerCase']()),{'type':'format','content':c(_0x212f53,'*Set\x20font\x20color:*\x20%0',_0x16137c)['trim'](),'color':{'value':_0x166e64,'title':_0x16137c||_0x183f68}};}return{'type':'format','content':c(_0x212f53,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x364766['commandName']){const _0x29d1c7=_0x364766['commandParams'][0x0]['value'];if(_0x29d1c7){const _0x391519=_0x288e8f(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x519a90=>_0x519a90['model']==_0x29d1c7);let _0x5c15be=_0x29d1c7,_0x228de0='';return _0x391519&&(_0x5c15be=_0x391519['label'],_0x228de0=_0x361fe6(_0x5c15be)['toLowerCase']()),{'type':'format','content':c(_0x212f53,'*Set\x20font\x20background\x20color:*\x20%0',_0x228de0)['trim'](),'color':{'value':_0x29d1c7,'title':_0x228de0||_0x5c15be}};}return{'type':'format','content':c(_0x212f53,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x5575fe{['afterInit'](){const _0x249797=this['editor'],_0x49f7fe=_0x249797['plugins']['get']('TrackChangesEditing'),_0x7ac45e=_0x249797['commands']['get']('copyFormat'),_0x48a77a=_0x249797['commands']['get']('pasteFormat');_0x7ac45e&&_0x48a77a&&(_0x49f7fe['enableDefaultAttributesIntegration']('pasteFormat'),_0x49f7fe['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xc19503=this['editor'],_0x573df0=_0xc19503['locale'];_0xc19503['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36d2b2=>{if('formatBlock'!=_0x36d2b2['type']&&'formatInline'!=_0x36d2b2['type'])return;const {data:_0x64cebe}=_0x36d2b2;if(_0x64cebe&&'pasteFormat'===_0x64cebe['commandName']){const _0x149f03=[],_0x556bca=_0x64cebe['commandParams'][0x0];for(const [_0x87453,_0x3c1e78]of Object['entries'](_0x556bca))_0x149f03['push'](so(_0xc19503,_0x87453,_0x3c1e78));return _0x149f03['length']?{'type':'format','content':c(_0x573df0,'*Set\x20format\x20to:*\x20%0',_0x149f03['join'](',\x20'))}:{'type':'format','content':c(_0x573df0,'*Remove\x20all\x20formatting*')};}});}}function so(_0x547cd3,_0x410e9e,_0xdd75dd){const _0x4af46c=_0x547cd3['locale']['t'],_0x305451=_0x410e9e['split'](/(?=[A-Z])/)['join']('\x20'),_0x2b82ca=_0x4af46c(_0x305451['charAt'](0x0)['toUpperCase']()+_0x305451['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xdd75dd)return _0x2b82ca;if('fontColor'===_0x410e9e||'fontBackgroundColor'===_0x410e9e){const _0x4654dc=_0x288e8f(_0x547cd3['config']['get']('fontColor.colors'))['find'](_0x537a38=>_0x537a38['model']==_0xdd75dd);return _0x2b82ca+'\x20('+(_0x4654dc?_0x4af46c(_0x4654dc['label'])['toLowerCase']():_0xdd75dd)+')';}if('fontSize'===_0x410e9e&&isNaN(parseFloat(_0xdd75dd))){const _0x2460c7=_0x547cd3['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x547cd3['config']['get']('fontSize.options'))['find'](_0x1f9ec8=>_0x1f9ec8['model']==_0xdd75dd);return _0x2b82ca+'\x20('+(_0x2460c7?_0x4af46c(_0x2460c7['title'])['toLowerCase']():_0xdd75dd)+')';}return _0x2b82ca+'\x20('+_0xdd75dd+')';}class et extends _0x5575fe{['_headingOptions'];['afterInit'](){const _0x5e0c9a=this['editor'];if(!_0x5e0c9a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5e0c9a['config']['get']('heading.options');const _0x1c5877=_0x5e0c9a['locale'],_0x1ee8d7=_0x5e0c9a['plugins']['get']('TrackChangesEditing');_0x1ee8d7['enableDefaultAttributesIntegration']('heading');for(const _0x136293 of this['_headingOptions'])'paragraph'!=_0x136293['model']&&_0x1ee8d7['descriptionFactory']['registerElementLabel'](_0x136293['model'],_0x419216=>{const _0x26c56e=this['_getHeadingLevel'](_0x136293['model']);return null!==_0x26c56e?_0x3021d4(_0x419216,_0x26c56e):_0x359d27(_0x419216,_0x136293['title']);});function _0x3021d4(_0xe6007b,_0x202da3){return c(_0x1c5877,'ELEMENT_HEADING',[_0xe6007b,_0x202da3]);}function _0x359d27(_0x5a811f,_0x459a5c){return c(_0x1c5877,'ELEMENT_HEADING_CUSTOM',[_0x5a811f,_0x459a5c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x595470=this['editor'],_0x535bb1=_0x595470['locale'];function _0x4bc3cd(_0x467904,_0x7effc){return c(_0x535bb1,'ELEMENT_HEADING_CUSTOM',[_0x467904,_0x7effc]);}_0x595470['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ff36c=>{if('formatBlock'!=_0x4ff36c['type'])return;const {data:_0x503148}=_0x4ff36c;if(_0x503148&&'heading'==_0x503148['commandName']){const _0x899373=_0x503148['commandParams'][0x0]['value'],_0x1e0a2b=this['_getHeadingLevel'](_0x899373);if(null!==_0x1e0a2b)return{'type':'format','content':c(_0x535bb1,'*Change\x20to:*\x20%0',(_0x4cdc9c=0x1,_0x54660c=_0x1e0a2b,c(_0x535bb1,'ELEMENT_HEADING',[_0x4cdc9c,_0x54660c])))};const _0x363458=this['_headingOptions']['find'](_0x1606cc=>_0x1606cc['model']===_0x899373)['title'];return{'type':'format','content':c(_0x535bb1,'*Change\x20to:*\x20%0',_0x4bc3cd(0x1,_0x363458))};}var _0x4cdc9c,_0x54660c;});}['_getHeadingLevel'](_0x442d32){const _0x33d7e1=_0x442d32['match'](/^heading(\d+)/);if(_0x33d7e1)return _0x33d7e1[0x1];const _0x573698=this['_headingOptions']?.['find'](_0x31e6b7=>_0x31e6b7['model']==_0x442d32);if(_0x573698&&_0x573698['view']){const _0x4bb1f6=_0x573698['view'],_0x5066eb=(_0x4bb1f6['name']??_0x4bb1f6)['match'](/^h(\d+)/);if(_0x5066eb)return _0x5066eb[0x1];}return null;}}class nt extends _0x5575fe{['afterInit'](){const _0x40f72e=this['editor'];if(!_0x40f72e['plugins']['has']('HighlightEditing'))return;const _0x1b2344=_0x40f72e['plugins']['get']('TrackChangesEditing'),_0x4307fa=_0x40f72e['locale'];_0x1b2344['enableDefaultAttributesIntegration']('highlight'),_0x1b2344['registerInlineAttribute']('highlight'),_0x1b2344['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x4307fa,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a937a=this['editor'],_0x5dc1e2=_0x2a937a['locale'];_0x2a937a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x197cb8=>{if('formatInline'!=_0x197cb8['type'])return;const {data:_0x43695f}=_0x197cb8;if(_0x43695f&&'highlight'==_0x43695f['commandName']){const _0x3143b1=_0x5dc1e2['t'],_0x42283b=_0x43695f['commandParams'][0x0]['value'];if(_0x42283b){const _0x413e6a=_0x2a937a['config']['get']('highlight.options')['find'](_0x1f5835=>_0x1f5835['model']==_0x42283b),_0x2812a5=_0x3143b1(_0x413e6a['title'])['toLowerCase']();return{'type':'format','content':c(_0x5dc1e2,'*Set\x20highlight:*\x20%0',_0x2812a5),'color':{'value':_0x413e6a['color'],'title':_0x413e6a['title']}};}return{'type':'format','content':c(_0x5dc1e2,'*Remove\x20highlight*',c(_0x5dc1e2,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x5575fe{['afterInit'](){const _0x5c55d2=this['editor'];if(!_0x5c55d2['plugins']['has']('HorizontalLineEditing'))return;_0x5c55d2['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x425f42=_0x5c55d2['plugins']['get']('TrackChangesEditing'),_0xe06d50=_0x5c55d2['locale'];_0x425f42['descriptionFactory']['registerElementLabel']('horizontalLine',_0x127392=>c(_0xe06d50,'ELEMENT_HORIZONTAL_LINE',_0x127392)),_0x5c55d2['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1b46e9,{writer:_0x1a8d25,options:_0x41aee4})=>{if(!_0x41aee4['showSuggestionHighlights'])return null;const _0x18fdd1=_0x1a8d25['createContainerElement']('div'),_0x11b2c2=_0x1a8d25['createEmptyElement']('hr');return _0x1a8d25['addClass']('ck-horizontal-line',_0x18fdd1),_0x1a8d25['insert'](_0x1a8d25['createPositionAt'](_0x18fdd1,0x0),_0x11b2c2),_0x18fdd1;},'converterPriority':'high'});}}class ot extends _0x5575fe{['afterInit'](){const _0x41022e=this['editor'];if(!_0x41022e['plugins']['has']('HtmlEmbed'))return;const _0x59d1f9=_0x41022e['plugins']['get']('TrackChangesEditing'),_0x365489=_0x41022e['locale'];_0x59d1f9['descriptionFactory']['registerElementLabel']('rawHtml',_0x17d26b=>c(_0x365489,'ELEMENT_HTML_EMBED',_0x17d26b)),_0x59d1f9['enableDefaultAttributesIntegration']('htmlEmbed'),_0x59d1f9['registerBlockAttribute']('value'),_0x59d1f9['descriptionFactory']['registerDescriptionCallback'](_0x4fc090=>{if('attribute'!=_0x4fc090['type'])return;const {data:_0x418caf}=_0x4fc090;if(_0x418caf&&'value'==_0x418caf['key']&&_0x4fc090['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x8292d9=c(_0x365489,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x365489,'*Change\x20%0\x20content*',_0x8292d9)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e4c9b=this['editor'],_0x1258f6=_0x4e4c9b['locale'];_0x4e4c9b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20f9f4=>{if('formatBlock'!=_0x20f9f4['type'])return;const {data:_0x35d144}=_0x20f9f4;if(_0x35d144&&'htmlEmbed'==_0x35d144['commandName']){const _0x11520c=c(_0x1258f6,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1258f6,'*Change\x20%0\x20content*',_0x11520c)};}});}}class rt extends _0x5575fe{['afterInit'](){const _0x363de5=this['editor'];if(!_0x363de5['plugins']['has']('ImageEditing'))return;const _0x412303=_0x363de5['plugins']['get']('TrackChangesEditing'),_0x3d32ea=_0x363de5['plugins']['get']('ImageUtils'),_0x151d27=_0x363de5['locale'];_0x412303['enableCommand']('insertImage'),_0x412303['descriptionFactory']['registerElementLabel']('imageBlock',_0x59b30b=>c(_0x151d27,'ELEMENT_IMAGE',_0x59b30b)),_0x412303['descriptionFactory']['registerElementLabel']('imageInline',_0x155df5=>c(_0x151d27,'ELEMENT_INLINE_IMAGE',_0x155df5)),_0x412303['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x151d27,'ELEMENT_CAPTION')),_0x363de5['plugins']['has']('ImageUploadEditing')&&_0x412303['enableCommand']('uploadImage'),_0x363de5['plugins']['has']('ImageBlockEditing')&&_0x363de5['plugins']['has']('ImageInlineEditing')&&(_0x412303['enableCommand']('imageTypeInline',(_0x487b16,_0x23853f)=>{const _0x2482a9=_0x3d32ea['getClosestSelectedImageElement'](_0x363de5['model']['document']['selection']);_0x363de5['model']['change'](()=>{_0x412303['markBlockFormat'](_0x2482a9,{'commandName':'imageTypeInline','commandParams':[_0x23853f]},[],'convertBlockImageToInline');});}),_0x412303['enableCommand']('imageTypeBlock',(_0x4b9356,_0x3acb12)=>{_0x363de5['model']['change'](_0x26b665=>{let _0x5e964d=_0x3d32ea['getClosestSelectedImageElement'](_0x363de5['model']['document']['selection']),_0x156518=_0x26b665['createRangeOn'](_0x5e964d);const _0x3cd47a=_0x12b057['fromPosition'](_0x156518['start'],'toPrevious'),_0x51f988=_0x12b057['fromPosition'](_0x156518['end'],'toNext');_0x412303['forceDefaultExecution'](()=>_0x4b9356(_0x3acb12)),_0x5e964d=_0x3d32ea['getClosestSelectedImageElement'](_0x363de5['model']['document']['selection']),_0x156518=_0x26b665['createRangeOn'](_0x5e964d);const _0x43c080=_0x26b665['createRange'](_0x3cd47a,_0x51f988);_0x3cd47a['detach'](),_0x51f988['detach'](),_0x412303['markBlockFormat'](_0x5e964d,{'commandName':'imageTypeInline','commandParams':[_0x3acb12]},[],'convertInlineImageToBlock'),_0x43c080['start']['isBefore'](_0x156518['start'])&&_0x412303['markInsertion'](_0x26b665['createRange'](_0x43c080['start'],_0x156518['start']),'convertInlineImageToBlock'),_0x156518['end']['isBefore'](_0x43c080['end'])&&_0x412303['markInsertion'](_0x26b665['createRange'](_0x156518['end'],_0x43c080['end']),'convertInlineImageToBlock');});}),_0x412303['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x412303['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x412303['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x412303['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x412303['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x412303['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xe0fdf5])=>{const _0x20812f=_0x412303['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2e7480=_0xe0fdf5['start'],_0x240523=_0xe0fdf5['end'];const _0x53b808=_0x363de5['model']['schema']['getNearestSelectionRange'](_0x2e7480,'backward'),_0x170a14=_0x363de5['model']['schema']['getNearestSelectionRange'](_0x240523,'forward');_0x53b808['isCollapsed']&&(_0x2e7480=_0x53b808['start']),_0x170a14['isCollapsed']&&(_0x240523=_0x170a14['end']),_0x20812f([_0x363de5['model']['createRange'](_0x2e7480,_0x240523)]);}),_0x412303['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4186d9),_0x412303['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4186d9)),_0x363de5['plugins']['has']('ImageCaptionEditing')&&(_0x412303['enableCommand']('toggleImageCaption',(_0x1a3c72,_0x4270b7)=>{const _0x317a61=_0x363de5['plugins']['get']('ImageCaptionUtils');let _0x2aeca3=_0x3d32ea['getClosestSelectedImageElement'](_0x363de5['model']['document']['selection']),_0x3d6efa=_0x317a61['getCaptionFromImageModelElement'](_0x2aeca3);_0x363de5['model']['change'](()=>{if(_0x3d6efa)return void _0x412303['markDeletion'](_0x363de5['model']['createRangeOn'](_0x3d6efa));const _0x38a687=_0x3d32ea['isBlockImage'](_0x2aeca3);_0x1a3c72(_0x4270b7),_0x2aeca3=_0x3d32ea['getClosestSelectedImageElement'](_0x363de5['model']['document']['selection']),_0x3d6efa=_0x317a61['getCaptionFromImageModelElement'](_0x2aeca3),_0x412303['markInsertion'](_0x363de5['model']['createRangeOn'](_0x3d6efa),_0x38a687?null:'imageCaption');});}),_0x412303['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4186d9));const _0x3a166b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4ca3f5(_0x25c232,_0x39b9a0){const _0x5e1909=_0x3a166b['findIndex'](({type:_0x336170,subType:_0x4ea2f4})=>_0x25c232['type']==_0x336170&&_0x25c232['subType']==_0x4ea2f4),_0x1d89dc=_0x3a166b['findIndex'](({type:_0x2c15a5,subType:_0x4c95cd})=>_0x39b9a0['type']==_0x2c15a5&&_0x39b9a0['subType']==_0x4c95cd);if(_0x5e1909<0x0||_0x1d89dc<0x0)return!0x1;const _0x4c03ac=_0x25c232['getFirstRange'](),_0x3f4187=_0x39b9a0['getFirstRange']();if((0x0==_0x5e1909||0x1==_0x5e1909)&&0x2==_0x1d89dc&&_0x4c03ac['isIntersecting'](_0x3f4187))return!0x0;if(0x2==_0x5e1909&&0x3==_0x1d89dc){const _0x839247=_0x412303['_findSuggestions'](_0x4c03ac,'insertion')['filter'](({suggestion:_0x5f2884,meta:_0xb8f12f})=>_0xb8f12f['isOwn']&&'convertInlineImageToBlock'==_0x5f2884['subType']);if(_0x839247['length']>0x1&&_0x3f4187['end']['isEqual'](_0x4c03ac['start']))return!0x0;if(0x1==_0x839247['length']&&(_0x4c03ac['start']['isEqual'](_0x3f4187['end'])||_0x4c03ac['end']['isEqual'](_0x3f4187['start'])))return!0x0;}if(0x3==_0x5e1909&&0x3==_0x1d89dc&&_0x4c03ac['start']['isBefore'](_0x3f4187['start'])){const _0x527651=_0x4c03ac['end']['nodeAfter'],_0x21c114=_0x3f4187['start']['nodeBefore'];return _0x3d32ea['isBlockImage'](_0x527651)&&_0x527651===_0x21c114;}return!0x1;}function _0x4186d9(_0x144897,_0x167859){return _0x4ca3f5(_0x144897,_0x167859)?[_0x144897,_0x167859]:_0x4ca3f5(_0x167859,_0x144897)?[_0x167859,_0x144897]:null;}_0x363de5['plugins']['has']('ImageResize')&&(_0x412303['enableDefaultAttributesIntegration']('resizeImage'),_0x412303['registerBlockAttribute']('resizedWidth'),_0x412303['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x151d27,'FORMAT_IMAGE_SIZE'))),_0x363de5['plugins']['has']('ImageTextAlternativeEditing')&&(_0x412303['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x412303['registerBlockAttribute']('alt')),_0x363de5['plugins']['has']('PictureEditing')&&(_0x412303['registerBlockAttribute']('sources'),_0x412303['descriptionFactory']['registerDescriptionCallback'](_0x350033=>{if('attribute'!=_0x350033['type'])return;const {data:_0x111eab}=_0x350033;return _0x111eab&&'sources'==_0x111eab['key']?{'type':'format','content':''}:void 0x0;})),_0x363de5['plugins']['has']('ImageSizeAttributes')&&(_0x412303['registerBlockAttribute']('width'),_0x412303['registerBlockAttribute']('height'),_0x412303['descriptionFactory']['registerDescriptionCallback'](_0x3b3ec8=>{if('attribute'!=_0x3b3ec8['type'])return;const {data:_0x41f576}=_0x3b3ec8;return!_0x41f576||'width'!=_0x41f576['key']&&'height'!=_0x41f576['key']?void 0x0:{'type':'format','content':''};})),_0x412303['descriptionFactory']['registerDescriptionCallback'](_0x5e93b5=>{if(!!_0x3a166b['find'](({type:_0x1b8a88,subType:_0x4c59a5})=>_0x5e93b5['type']==_0x1b8a88&&_0x5e93b5['subType']==_0x4c59a5))return _0x5e93b5['previous']?{}:void 0x0;}),_0x412303['descriptionFactory']['registerDescriptionCallback'](_0x53b8b6=>{if('insertion'==_0x53b8b6['type']||'deletion'==_0x53b8b6['type']){const _0x27019b=_0x53b8b6['getContainedElement']();if(_0x27019b&&_0x27019b['is']('element','caption'))return{'type':'insertion'==_0x53b8b6['type']?'addObject':'removeObject','element':_0x27019b,'quantity':0x1};}}),_0x412303['descriptionFactory']['registerDescriptionCallback'](_0xbc6de1=>'formatBlock'==_0xbc6de1['type']&&'convertInlineImageToBlock'==_0xbc6de1['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xbc6de1['type']&&'convertBlockImageToInline'==_0xbc6de1['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x412303['descriptionFactory']['registerDescriptionCallback'](_0x4fb863=>{if('attribute'!=_0x4fb863['type'])return;const {data:_0x47113b}=_0x4fb863;if(!_0x47113b||'alt'!=_0x47113b['key'])return;const _0x18185a=_0x47113b['newValue'];return _0x18185a?{'type':'format','content':c(_0x151d27,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x18185a+'\x22')}:{'type':'format','content':c(_0x151d27,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29fbb9=this['editor'],_0x4e912d=_0x29fbb9['locale'];_0x29fbb9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45705e=>{if('formatBlock'!=_0x45705e['type']&&'formatInline'!=_0x45705e['type'])return;const {data:_0x438ca1}=_0x45705e;if(_0x438ca1){if('imageTextAlternative'==_0x438ca1['commandName']){const _0x4d42cb=_0x438ca1['commandParams'][0x0]['newValue'];return _0x4d42cb?{'type':'format','content':c(_0x4e912d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4d42cb+'\x22')}:{'type':'format','content':c(_0x4e912d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x438ca1['commandName']){const _0x34a65f=_0x438ca1['commandParams'][0x0]['width'];return _0x34a65f?{'type':'format','content':c(_0x4e912d,'*Set\x20image\x20width:*\x20%0',_0x34a65f)}:{'type':'format','content':c(_0x4e912d,'*Reset\x20image\x20width*')};}}});}}class at extends _0x5575fe{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5ceba0=this['editor']['locale'],_0x22326f=this['editor']['plugins']['get']('TrackChangesEditing');_0x22326f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x22326f['registerBlockAttribute']('src'),_0x22326f['descriptionFactory']['registerDescriptionCallback'](_0x47b756=>{if('attribute'!=_0x47b756['type'])return;const {data:_0x66b39e}=_0x47b756;return _0x66b39e&&'src'==_0x66b39e['key']?_0x66b39e['newValue']&&_0x66b39e['oldValue']?{'type':'format','content':c(_0x5ceba0,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x76573e=this['editor']['plugins']['get']('TrackChangesEditing');_0x76573e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x76573e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x76573e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x76573e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10ed00=this['editor'],_0x6b4230=_0x10ed00['locale'];_0x10ed00['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2286bc=>{if('formatBlock'!=_0x2286bc['type']&&'formatInline'!=_0x2286bc['type'])return;const {data:_0x37c901}=_0x2286bc;if(!_0x37c901||'replaceImageSource'!=_0x37c901['commandName'])return;return{'type':'format','content':c(_0x6b4230,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x5575fe{['afterInit'](){const _0x3a58ff=this['editor'];if(!_0x3a58ff['plugins']['has']('ImageStyleEditing'))return;const _0x5a2b82=_0x3a58ff['plugins']['get']('TrackChangesEditing'),_0x5e920f=_0x3a58ff['plugins']['get']('ImageUtils'),_0x1df184={};_0x5a2b82['enableCommand']('imageStyle',(_0x2e05ad,_0x508ddd)=>{const _0x30c33c=_0x3a58ff['plugins']['get']('Users')['me'],_0x4d5314=_0x3a58ff['commands']['get']('imageStyle');let _0x111823=_0x5e920f['getClosestSelectedImageElement'](_0x3a58ff['model']['document']['selection']),_0x31f629=_0x3a58ff['model']['createRangeOn'](_0x111823),_0x38ade6=_0x4d5314['value'];if(_0x38ade6==_0x508ddd['value'])return;const _0x333c10={'commandName':'imageStyle','commandParams':[_0x508ddd],'formatGroupId':_0x1526c3()};_0x3a58ff['model']['change'](()=>{if(_0x5a2b82['getSuggestions']()['filter'](_0x40d169=>_0x40d169['isInContent']&&_0x30c33c==_0x40d169['author']&&('formatBlock'==_0x40d169['type']||'formatInline'==_0x40d169['type'])&&('imageStylePreApply'==_0x40d169['subType']||'imageStylePostApply'==_0x40d169['subType'])&&_0x40d169['getFirstRange']()['isEqual'](_0x31f629))['forEach'](_0x39475b=>_0x5a2b82['discardSuggestion'](_0x39475b['head'])),_0x111823=_0x5e920f['getClosestSelectedImageElement'](_0x3a58ff['model']['document']['selection']),_0x31f629=_0x3a58ff['model']['createRangeOn'](_0x111823),_0x4d5314['refresh'](),_0x3a58ff['commands']['get']('imageTypeInline')['refresh'](),_0x3a58ff['commands']['get']('imageTypeBlock')['refresh'](),_0x38ade6=_0x4d5314['value'],_0x38ade6!=_0x508ddd['value'])return _0x5e920f['isInlineImage'](_0x111823)&&_0x4d5314['shouldConvertImageType'](_0x508ddd['value'],_0x111823)?(_0x2e05ad({..._0x508ddd,'setImageSizes':!0x1}),_0x111823=_0x5e920f['getClosestSelectedImageElement'](_0x3a58ff['model']['document']['selection']),void _0x5a2b82['markBlockFormat'](_0x111823,{..._0x333c10,'commandReversedParams':[{'value':_0x38ade6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5e920f['isBlockImage'](_0x111823)?_0x5a2b82['markBlockFormat'](_0x111823,_0x333c10,[],'imageStylePostApply'):_0x5a2b82['markInlineFormat'](_0x31f629,_0x333c10,'imageStylePostApply'));});});for(const _0x59b6bd of _0x3a58ff['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1df184[_0x59b6bd['name']]=_0x59b6bd['title']['toLowerCase']();_0x5a2b82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5a2b82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5a2b82['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5a2b82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1a915c])=>{_0x5e920f['setImageNaturalSizeAttributes'](_0x1a915c['getContainedElement']());}),_0x5a2b82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4220cb,_0x10d42c)=>{_0x5a2b82['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4220cb,{'commandName':_0x10d42c['commandName'],'commandParams':_0x10d42c['commandReversedParams']});}),_0x5a2b82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5702ce,_0x488f81){if(_0x557989(_0x5702ce,_0x488f81))return[_0x5702ce,_0x488f81];if(_0x557989(_0x488f81,_0x5702ce))return[_0x488f81,_0x5702ce];return null;});const _0x399b7b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x557989(_0x35a183,_0x39ae24){const _0x103290=_0x399b7b['findIndex'](({type:_0x12eb22,subType:_0x4383f9})=>_0x35a183['type']==_0x12eb22&&_0x35a183['subType']==_0x4383f9),_0x8e0f34=_0x399b7b['findIndex'](({type:_0x300294,subType:_0x9c89f})=>_0x39ae24['type']==_0x300294&&_0x39ae24['subType']==_0x9c89f);if(_0x103290<0x0||_0x8e0f34<0x0)return!0x1;const _0x553452=_0x35a183['getFirstRange'](),_0x2acaea=_0x39ae24['getFirstRange']();if((0x0==_0x103290||0x1==_0x103290)&&0x2==_0x8e0f34&&_0x553452['isIntersecting'](_0x2acaea))return!0x0;if(0x2==_0x103290&&0x3==_0x8e0f34){const _0x32480d=_0x5a2b82['_findSuggestions'](_0x553452,'insertion')['filter'](({suggestion:_0x1bc5ee,meta:_0x358f00})=>_0x358f00['isOwn']&&'convertInlineImageToBlock'==_0x1bc5ee['subType']);if(_0x32480d['length']>0x1&&_0x2acaea['end']['isEqual'](_0x553452['start']))return!0x0;if(0x1==_0x32480d['length']&&(_0x553452['start']['isEqual'](_0x2acaea['end'])||_0x553452['end']['isEqual'](_0x2acaea['start'])))return!0x0;}if(0x3==_0x103290&&0x3==_0x8e0f34&&_0x553452['start']['isBefore'](_0x2acaea['start'])){const _0x1f4aa4=_0x553452['end']['nodeAfter'],_0x15ff6b=_0x2acaea['start']['nodeBefore'];return _0x5e920f['isBlockImage'](_0x1f4aa4)&&_0x1f4aa4===_0x15ff6b;}return!0x1;}_0x3a58ff['model']['document']['registerPostFixer'](()=>{let _0x43d135=!0x1;const _0x43403e=Array['from'](_0x3a58ff['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x48fb64,data:_0x402e3b}of _0x43403e){const {group:_0x296a35,type:_0x50ae4f,subType:_0x69617,id:_0x165461}=_0x5a2b82['_splitMarkerName'](_0x48fb64);if('suggestion'==_0x296a35&&_0x5a2b82['hasSuggestion'](_0x165461)){if('formatBlock'==_0x50ae4f&&('imageStylePreApply'==_0x69617||'imageStylePostApply'==_0x69617)){const _0x4f0aa4=_0x5a2b82['getSuggestion'](_0x165461);if(_0x402e3b['newRange']){const _0x55f829=_0x4f0aa4['getFirstRange']()['getContainedElement']();if(_0x5e920f['isBlockImage'](_0x55f829))continue;_0x5a2b82['discardSuggestion'](_0x4f0aa4),_0x43d135=!0x0;}}if('insertion'==_0x50ae4f&&'imageCaption'==_0x69617&&!_0x402e3b['newRange']){const _0x2b2e71=_0x5a2b82['getSuggestion'](_0x165461);_0x2b2e71['next']&&_0x2b2e71['next']['isInContent']&&(_0x5a2b82['discardSuggestion'](_0x2b2e71['next']),_0x43d135=!0x0);}}}return _0x43d135;}),this['_registerLegacyDescription'](_0x1df184);}['_registerLegacyDescription'](_0x1a09c8){const _0x5a42d7=this['editor'],_0xf5400f=_0x5a42d7['locale'];_0x5a42d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38f659=>{if('formatBlock'!=_0x38f659['type']&&'formatInline'!=_0x38f659['type'])return;const {data:_0x572c46}=_0x38f659;if(!_0x572c46||'imageStyle'!=_0x572c46['commandName'])return;const _0x3f9f9e=_0x572c46['commandParams'][0x0]['value'];return _0x35825b('side'===_0x3f9f9e?c(_0xf5400f,'FORMAT_SIDE_IMAGE'):_0x1a09c8[_0x3f9f9e]||_0x3f9f9e);function _0x35825b(_0x120984){return{'type':'format','content':c(_0xf5400f,'*Format:*\x20%0',_0x120984)};}});}}class ut extends _0x5575fe{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x314ebb){super(_0x314ebb),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x15baa3=this['editor'],_0x3c1e3e=_0x15baa3['commands']['get']('importWord'),_0x397934=_0x15baa3['commands']['get']('trackChanges');_0x3c1e3e&&(_0x3c1e3e['on']('execute',(_0x13bd54,[,_0x30765a])=>{this['_trackChangesValueDuringImport']=_0x397934['value'],_0x30765a['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3c1e3e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3c1e3e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x397934['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x15baa3['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x30d54f,_0x181c53){const {suggestions:_0x666112}=_0x181c53,_0x4d512f=this['editor']['commands']['get']('trackChanges'),_0x390cc4=_0x4d512f['value'];this['_trackChangesValueDuringImport']!==_0x390cc4&&(_0x4d512f['execute'](),this['_trackChangesExecuted']=!0x0),_0x666112&&_0x666112['forEach'](({id:_0xf819e7,type:_0x21d734,author:_0x538811,created_at:_0x44b064})=>{const _0x40c0f2={'id':_0xf819e7,'type':_0x21d734,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x538811,'createdAt':_0x44b064?new Date(_0x44b064):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x40c0f2);});}}class ft extends _0x5575fe{['afterInit'](){const _0x3ff23c=this['editor'],_0xf361d3=_0x3ff23c['plugins']['get']('TrackChangesEditing');if(_0x3ff23c['plugins']['has']('IndentEditing')&&(_0xf361d3['enableCommand']('indent'),_0xf361d3['enableCommand']('outdent')),_0x3ff23c['plugins']['has']('IndentBlock')){for(const _0x5e10e2 of['indentBlock','outdentBlock'])_0xf361d3['enableDefaultAttributesIntegration'](_0x5e10e2);}const _0x5d53ed=_0x3ff23c['locale'];_0xf361d3['registerBlockAttribute']('blockIndent'),_0xf361d3['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x5d53ed,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x147cb0=this['editor'],_0xdf3b75=_0x147cb0['locale'],_0x2455a8=_0x147cb0['plugins']['get']('TrackChangesEditing');_0x2455a8['descriptionFactory']['registerDescriptionCallback'](_0x59a28a=>{if('formatBlock'!=_0x59a28a['type'])return;const {data:_0x401b8c}=_0x59a28a;if(!_0x401b8c)return;if('indentBlock'!=_0x401b8c['commandName']&&'outdentBlock'!=_0x401b8c['commandName'])return;const _0x1d9f9f=_0x59a28a['getItems']()[0x0],_0x18d827=_0x2455a8['descriptionFactory']['getItemLabel'](_0x1d9f9f);return'indentBlock'==_0x401b8c['commandName']?{'type':'format','content':c(_0xdf3b75,'*Indent:*\x20%0',_0x18d827)}:'outdentBlock'==_0x401b8c['commandName']?{'type':'format','content':c(_0xdf3b75,'*Outdent:*\x20%0',_0x18d827)}:void 0x0;});}}class ht extends _0x5575fe{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x5575fe{['afterInit'](){const _0x161d45=this['editor'];if(!_0x161d45['plugins']['has']('LinkEditing'))return;const _0xd87849=_0x161d45['plugins']['get']('TrackChangesEditing'),_0x13e408=_0x161d45['commands']['get']('link');_0xd87849['enableDefaultAttributesIntegration']('link'),_0xd87849['enableDefaultAttributesIntegration']('unlink'),_0xd87849['registerInlineAttribute']('linkHref');for(const _0x12d2df of _0x13e408['manualDecorators'])_0xd87849['registerInlineAttribute'](_0x12d2df['id']),_0xd87849['descriptionFactory']['registerAttributeLabel'](_0x12d2df['id'],'link\x20('+_0x12d2df['label']['toLowerCase']()+')');_0xd87849['descriptionFactory']['registerDescriptionCallback'](_0x15acf1=>{if('attribute'!=_0x15acf1['type'])return;const {data:_0x526481}=_0x15acf1;if(!_0x526481||'linkHref'!=_0x526481['key'])return;const _0x2f9c3b=_0x526481['newValue'],_0x5ebc39=_0x161d45['locale'];return{'type':'format','content':null==_0x2f9c3b?c(_0x5ebc39,'*Remove\x20link*'):c(_0x5ebc39,'*Set\x20link:*\x20%0','\x22'+_0x2f9c3b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x159f19=this['editor'],_0x3507bb=_0x159f19['locale'];_0x159f19['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11a8a0=>{if('formatInline'!=_0x11a8a0['type'])return;const {data:_0x147b65}=_0x11a8a0;if(_0x147b65){if('link'==_0x147b65['commandName']){const _0xa6eafd=_0x147b65['commandParams'][0x0];return{'type':'format','content':c(_0x3507bb,'*Set\x20link:*\x20%0','\x22'+_0xa6eafd+'\x22')};}return'unlink'==_0x147b65['commandName']?{'type':'format','content':c(_0x3507bb,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x5575fe{['afterInit'](){const _0x343448=this['editor'],_0x2a0847=_0x343448['locale'];if(!_0x343448['plugins']['has']('LegacyListEditing'))return;const _0x1487b0=_0x343448['plugins']['get']('TrackChangesEditing'),_0xaf07b1=_0x343448['plugins']['has']('LegacyTodoListEditing');function _0x417094(_0x1d3222){return()=>{const _0x2a27ab=_0x343448['model']['document']['selection'],_0x1b99c0=_0x343448['commands']['get'](_0x1d3222);if(_0x1b99c0['value'])return void _0x343448['execute']('paragraph',{});const _0x25acd0=_0x1d3222['slice'](0x0,-0x4),_0xd87376=function(_0x18c08e,_0x36ac9f,_0x1ffdde){let _0x5aa539=Array['from'](_0x18c08e)['filter'](_0x8b1a03=>function(_0x116d68,_0x469808){return _0x469808['checkChild'](_0x116d68['parent'],'listItem')&&!_0x469808['isObject'](_0x116d68);}(_0x8b1a03,_0x1ffdde));_0x5aa539=_0x5aa539['filter'](_0x1d5fe3=>!_0x1d5fe3['is']('element','listItem')||_0x1d5fe3['getAttribute']('listType')!=_0x36ac9f);const _0x596d08=new Set();for(const _0x373796 of _0x5aa539)_0x373796['is']('element','listItem')?_0x596d08['add'](Le(_0x373796)):_0x596d08['add'](_0x373796);return Array['from'](_0x596d08);}(_0x2a27ab['getSelectedBlocks'](),_0x25acd0,_0x343448['model']['schema']);_0x343448['model']['change'](()=>{for(const _0x3c3293 of _0xd87376)_0x1487b0['markBlockFormat'](_0x3c3293,{'commandName':_0x1d3222,'commandParams':[{'forceValue':!_0x1b99c0['value']}],'formatGroupId':'blockName'},Ee(_0x3c3293));});};}function _0x37b00c(_0xd6913d){return()=>{const _0x177fb2=function(_0x5b5845){let _0x119752=Array['from'](_0x5b5845);const _0x5a7ec5=_0x119752['findIndex'](_0x186dc8=>'listItem'!=_0x186dc8['name']);return _0x5a7ec5>-0x1&&(_0x119752=_0x119752['slice'](0x0,_0x5a7ec5)),_0x119752;}(_0x343448['model']['document']['selection']['getSelectedBlocks']()),_0x1ec738=_0x343448['model']['createRange'](_0x343448['model']['createPositionAt'](_0x177fb2[0x0],'before'),_0x343448['model']['createPositionAt'](_0x177fb2[_0x177fb2['length']-0x1],'end'));_0x343448['model']['change'](()=>{_0x1487b0['markBlockFormat'](_0x1ec738,{'commandName':_0xd6913d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1a2f30){const _0x44a09c=new Set();for(const _0x2f1549 of _0x1a2f30){let _0x5e6661=_0x2f1549['nextSibling'];for(;_0x5e6661&&_0x5e6661['getAttribute']('listIndent')>_0x2f1549['getAttribute']('listIndent');)_0x44a09c['add'](_0x5e6661),_0x5e6661=_0x5e6661['nextSibling'];}return Array['from'](_0x44a09c);}(_0x177fb2));});};}_0x1487b0['enableCommand']('numberedList',_0x417094('numberedList')),_0x1487b0['enableCommand']('bulletedList',_0x417094('bulletedList')),_0xaf07b1&&_0x1487b0['enableCommand']('todoList',_0x417094('todoList')),_0x1487b0['enableCommand']('indentList',_0x37b00c('indentList')),_0x1487b0['enableCommand']('outdentList',_0x37b00c('outdentList')),_0xaf07b1&&_0x1487b0['enableCommand']('checkTodoList',()=>{const _0x3ecf69=_0x343448['commands']['get']('checkTodoList'),_0x1dfaba=Array['from'](_0x3ecf69['_selectedElements']);_0x1dfaba['filter'](_0x37cac1=>_0x37cac1['getAttribute']('todoListChecked')!=_0x3ecf69['value']),_0x343448['model']['change'](()=>{for(const _0x2a11ef of _0x1dfaba)_0x1487b0['markBlockFormat'](_0x2a11ef,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3ecf69['value']}]});});}),_0x1487b0['descriptionFactory']['registerElementLabel']('listItem',_0x19dc75=>c(_0x2a0847,'ELEMENT_LIST_ITEM',_0x19dc75)),_0x1487b0['descriptionFactory']['registerDescriptionCallback'](_0x37a8ac=>{if('formatBlock'!=_0x37a8ac['type']&&'formatInline'!=_0x37a8ac['type'])return;const {data:_0xd194a6}=_0x37a8ac;if(_0xd194a6){if('numberedList'==_0xd194a6['commandName']||'bulletedList'==_0xd194a6['commandName']||'todoList'==_0xd194a6['commandName'])switch(_0xd194a6['commandName']['replace']('List','')){case'bulleted':return _0x1b2667(c(_0x2a0847,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1b2667(c(_0x2a0847,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1b2667(c(_0x2a0847,'ELEMENT_TODO_LIST'));}if('indentList'==_0xd194a6['commandName'])return{'type':'format','content':c(_0x2a0847,'*Indent:*\x20%0',c(_0x2a0847,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xd194a6['commandName'])return{'type':'format','content':c(_0x2a0847,'*Outdent:*\x20%0',c(_0x2a0847,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xd194a6['commandName'])return _0xd194a6['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2a0847,'*Check\x20item*')}:{'type':'format','content':c(_0x2a0847,'*Uncheck\x20item*')};}function _0x1b2667(_0x48cdf4){return{'type':'format','content':c(_0x2a0847,'*Change\x20to:*\x20%0',_0x48cdf4)};}});}}function Le(_0x31b53a){const _0x3fc437=_0x31b53a['getAttribute']('listIndent');if(0x0==_0x3fc437)return _0x31b53a;let _0x72bd6a=_0x31b53a;for(;_0x31b53a['previousSibling']&&_0x31b53a['previousSibling']['is']('element','listItem');){const _0x4fe4db=_0x31b53a['previousSibling']['getAttribute']('listIndent');if(_0x4fe4db==_0x3fc437)_0x72bd6a=_0x31b53a['previousSibling'];else{if(_0x4fe4db<_0x3fc437)break;}_0x31b53a=_0x31b53a['previousSibling'];}return _0x72bd6a;}function Ee(_0x2dc732){const _0x5c1e29=[];if(_0x2dc732['is']('element','listItem')&&_0x2dc732['getAttribute']('listIndent')>0x0){let _0x6fcb46=_0x2dc732['nextSibling'];for(;_0x6fcb46&&'listItem'==_0x6fcb46['name']&&_0x6fcb46['getAttribute']('listIndent')==_0x2dc732['getAttribute']('listIndent');)_0x5c1e29['push'](_0x6fcb46),_0x6fcb46=_0x6fcb46['nextSibling'];}return _0x5c1e29;}class Q extends _0x5575fe{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x18a284=this['editor']['config']['get']('list.properties'),_0x524805=this['editor']['plugins']['get']('TrackChangesEditing');_0x18a284['styles']&&_0x524805['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x18a284['reversed']&&_0x524805['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x18a284['startIndex']&&_0x524805['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x524805['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1696b4,_0x39281c={}){const _0xb91ffd=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa6f011=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xb91ffd['markMultiRangeBlockFormat'](_0xa6f011,{'commandName':'listStyle','commandParams':[{'type':_0x39281c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x397619,_0xfd24d1={}){const _0x3cc0ae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4696e5=this['_getSuggestionBlocks'](_0x36962f=>_0x36962f['is']('element','listItem')&&'numbered'===_0x36962f['getAttribute']('listType'));if(_0x4696e5['length']<0x1)return;const _0x2c7f47=_0x4696e5['map'](_0x1d2c28=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1d2c28,'before'),this['editor']['model']['createPositionAt'](_0x1d2c28,0x0)));this['editor']['model']['change'](()=>{_0x3cc0ae['markMultiRangeBlockFormat'](_0x2c7f47,{'commandName':'listReversed','commandParams':[{'reversed':_0xfd24d1['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3f552c,_0x7caa15={}){const _0xbcd029=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49c1a6=this['_getSuggestionBlocks'](_0x54e35f=>_0x54e35f['is']('element','listItem')&&'numbered'===_0x54e35f['getAttribute']('listType'));if(_0x49c1a6['length']<0x1)return;const _0xaf9736=_0x49c1a6['map'](_0x8337c2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x8337c2,'before'),this['editor']['model']['createPositionAt'](_0x8337c2,0x0)));this['editor']['model']['change'](()=>{_0xbcd029['markMultiRangeBlockFormat'](_0xaf9736,{'commandName':'listStart','commandParams':[{'startIndex':_0x7caa15['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x14f67e){if('formatBlock'!=_0x14f67e['type']&&'formatInline'!=_0x14f67e['type'])return;const _0x1e33bc=this['editor']['locale'],{data:_0x32701a}=_0x14f67e;if(!_0x32701a)return;let _0x5846f7,_0x1318fe;switch(_0x32701a['commandName']){case'listStyle':_0x5846f7='*Change\x20to:*\x20%0',_0x1318fe={'type':'format','content':c(_0x1e33bc,_0x5846f7,c(_0x1e33bc,this['_getTranslationKeyForListStyle'](_0x32701a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5846f7=_0x32701a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1318fe={'type':'format','content':c(_0x1e33bc,_0x5846f7)};break;case'listStart':_0x5846f7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1318fe={'type':'format','content':c(_0x1e33bc,_0x5846f7,_0x32701a['commandParams'][0x0]['startIndex'])};}return _0x1318fe;}['_getSuggestionBlocksForListStyle'](){const _0xe1c922=this['editor']['plugins']['get']('LegacyListUtils');let _0x4701e9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4701e9[0x0]?.['is']('element','listItem')&&_0x4701e9['unshift'](..._0xe1c922['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4701e9[_0x4701e9['length']-0x1]?.['is']('element','listItem')&&_0x4701e9['push'](..._0xe1c922['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4701e9=[...new Set(_0x4701e9)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4701e9=_0x4701e9['filter'](_0x429be3=>_0x429be3['is']('element','listItem'))),_0x4701e9;}['_getSuggestionBlocks'](_0x19d9be){const _0x5e8761=this['editor']['plugins']['get']('LegacyListUtils');let _0x5bec5e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x19d9be)['map'](_0x28d598=>{const _0x55e335=this['editor']['model']['createPositionAt'](_0x28d598,0x0);return[..._0x5e8761['getSiblingNodes'](_0x55e335,'backward'),..._0x5e8761['getSiblingNodes'](_0x55e335,'forward')];})['flat']();return _0x5bec5e=[...new Set(_0x5bec5e)],_0x5bec5e;}['_getTranslationKeyForListStyle'](_0x1ed095){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1ed095)||'default')['toUpperCase']()+'_LIST_'+_0x1ed095['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x5575fe{['afterInit'](){const _0x5a501b=this['editor'];if(!_0x5a501b['plugins']['has']('MediaEmbedEditing'))return;const _0x25887a=_0x5a501b['plugins']['get']('TrackChangesEditing'),_0x4d789a=_0x5a501b['locale'];_0x25887a['enableCommand']('mediaEmbed'),_0x25887a['descriptionFactory']['registerElementLabel']('media',_0x947f2f=>c(_0x4d789a,'ELEMENT_MEDIA',_0x947f2f)),_0x5a501b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2e5897,{writer:_0x1127ba,options:_0x8ad2a0})=>{if(_0x8ad2a0['showSuggestionHighlights'])return _0x1127ba['createEmptyElement']('div');},'converterPriority':'high'}),_0x5a501b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4064e8,_0x5d03d9,_0x44c605)=>{_0x44c605['options']['showSuggestionHighlights']&&_0x4064e8['stop']();},{'priority':'high'});}}class pt extends _0x5575fe{['afterInit'](){const _0xb030a9=this['editor'];_0xb030a9['plugins']['has']('MentionEditing')&&_0xb030a9['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x5575fe{['afterInit'](){const _0x6580dc=this['editor'];if(!_0x6580dc['plugins']['has']('MergeFieldsEditing'))return;const _0x554024=_0x6580dc['plugins']['get']('TrackChangesEditing'),_0x3b897e=_0x6580dc['locale'];_0x554024['enableCommand']('insertMergeField'),_0x554024['enableCommand']('insertMergeFieldBlock'),_0x554024['enableCommand']('insertMergeFieldImage'),_0x554024['descriptionFactory']['registerElementLabel']('mergeField',_0x597a16=>c(_0x3b897e,'ELEMENT_MERGE_FIELD',_0x597a16)),_0x554024['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x31be7d=>c(_0x3b897e,'ELEMENT_MERGE_FIELD',_0x31be7d)),_0x554024['descriptionFactory']['registerDescriptionCallback'](_0x28c764=>{if('insertion'!=_0x28c764['type']&&'deletion'!=_0x28c764['type'])return;const _0xab471a=_0x28c764['getContainedElement']();if(null==_0xab471a)return;const _0x42a358=_0x6580dc['plugins']['get']('MergeFieldsEditing');let _0x4d5d4b;switch(_0x42a358['getMergeFieldType'](_0xab471a)){case null:return;case'image':{const _0x25625e=_0x42a358['unwrapAffixes'](_0xab471a['getAttribute']('src'));_0x4d5d4b=_0x42a358['getLabel'](_0x25625e)||_0x25625e;break;}default:{const _0x24c05d=_0xab471a['getAttribute']('id');_0x4d5d4b=_0x42a358['getLabel'](_0x24c05d)||_0x24c05d;break;}}return'insertion'==_0x28c764['type']?{'type':'insertion','content':c(_0x3b897e,'*Insert:*\x20%0','\x22'+_0x4d5d4b+'\x22\x20'+c(_0x3b897e,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x3b897e,'*Remove:*\x20%0','\x22'+_0x4d5d4b+'\x22\x20'+c(_0x3b897e,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x5575fe{['afterInit'](){const _0x23c7b5=this['editor'],_0x3bc026=_0x23c7b5['plugins']['get']('TrackChangesEditing');_0x23c7b5['plugins']['has']('MultiLevelList')&&(_0x3bc026['enableDefaultAttributesIntegration']('multiLevelList'),_0x3bc026['registerBlockAttribute']('listMarkerStyle'),_0x3bc026['descriptionFactory']['registerDescriptionCallback'](_0x16adcd=>this['handleDescriptions'](_0x16adcd)));}['handleDescriptions'](_0x1d0865){const _0x11c60d=this['editor']['locale'],{data:_0x2df04d}=_0x1d0865,_0x3eb945={'type':'format','content':''};if(_0x2df04d&&'listMarkerStyle'==_0x2df04d['key']){if(!_0x2df04d['oldValue'])return{'type':'format','content':c(_0x11c60d,'*Set\x20format:*\x20%0',c(_0x11c60d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2df04d['newValue']+')'};if(!_0x2df04d['newValue']){let _0xf095cb=_0x1d0865['head'];for(;_0xf095cb;){if(_0xf095cb['data']&&'listType'==_0xf095cb['data']['key']&&_0xf095cb['data']['newValue'])return _0x3eb945;_0xf095cb=_0xf095cb['next'];}return{'type':'format','content':c(_0x11c60d,'*Remove\x20format:*\x20%0',c(_0x11c60d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2df04d['oldValue']+')'};}}}}class bt extends _0x5575fe{['afterInit'](){const _0x1ba987=this['editor'];if(!_0x1ba987['plugins']['has']('PageBreakEditing'))return;_0x1ba987['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5a9985=_0x1ba987['plugins']['get']('TrackChangesEditing'),_0x351f5d=_0x1ba987['locale'];_0x5a9985['descriptionFactory']['registerElementLabel']('pageBreak',_0x1f39b7=>c(_0x351f5d,'ELEMENT_PAGE_BREAK',_0x1f39b7));}}class yt extends _0x5575fe{['afterInit'](){const _0x3619f3=this['editor'];if(!_0x3619f3['plugins']['has']('Paragraph'))return;const _0x3a0cd7=_0x3619f3['locale'],_0x4bc70d=_0x3619f3['plugins']['get']('TrackChangesEditing');_0x4bc70d['descriptionFactory']['registerElementLabel']('paragraph',_0x470085=>c(_0x3a0cd7,'ELEMENT_PARAGRAPH',_0x470085)),_0x4bc70d['enableDefaultAttributesIntegration']('paragraph'),_0x4bc70d['enableCommand']('insertParagraph'),_0x3619f3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3619f3),{'priority':'highest'}),_0x3619f3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x12a055,_0x360168,_0x164ea5)=>{_0x164ea5['options']['showSuggestionHighlights']&&nr(_0x3619f3,{'showActiveMarker':!0x1})(_0x12a055,_0x360168,_0x164ea5);},{'priority':'highest'});const _0x322126=_0x4bc70d['descriptionFactory'];_0x322126['registerDescriptionCallback'](_0x56daf4=>{if('insertion'!==_0x56daf4['type'])return;const {start:_0x2826a4,end:_0x57434a}=_0x56daf4['getFirstRange']();if(!_0x2826a4['isTouching'](_0x57434a)||!_0x2826a4['nodeAfter'])return;const _0x3e3870=_0x3619f3['model']['schema'],_0x2a2580=_0x2826a4['nodeAfter'];return _0x3e3870['isBlock'](_0x2a2580)&&!_0x3e3870['isLimit'](_0x2a2580)&&_0x3e3870['checkChild'](_0x2a2580,'$text')?{'type':'insertion','content':c(_0x3a0cd7,'*Insert:*\x20%0',_0x322126['getItemLabel'](_0x2a2580,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe84392=this['editor'],_0x379dba=_0xe84392['locale'];_0xe84392['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25ca22=>{if('formatBlock'!=_0x25ca22['type'])return;const {data:_0x32af30}=_0x25ca22;return _0x32af30&&'paragraph'==_0x32af30['commandName']?{'type':'format','content':c(_0x379dba,'*Change\x20to:*\x20%0',c(_0x379dba,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x310ac7,{showActiveMarker:_0x3a8f8a=!0x0}={}){return(_0x2479d4,_0x270e7b,_0x3af8a9)=>{const _0x289f00=_0x310ac7['plugins']['get']('TrackChangesEditing'),_0x3900b2=_0x270e7b['markerRange']['start'],_0x38d864=_0x270e7b['markerRange']['end'],_0x262872=_0x310ac7['model']['schema'];if(!_0x3900b2['isTouching'](_0x38d864)||!_0x3900b2['nodeAfter'])return;const _0x8ad195=_0x3900b2['nodeAfter'];if(_0x262872['isBlock'](_0x8ad195)&&!_0x262872['isLimit'](_0x8ad195)&&_0x262872['checkChild'](_0x8ad195,'$text')){if(!_0x3af8a9['consumable']['consume'](_0x270e7b['markerRange'],_0x2479d4['name']))return;const {id:_0x59f78d,authorId:_0x3f6752}=_0x289f00['_splitMarkerName'](_0x270e7b['markerName']),_0x1d8e6c=_0x3af8a9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x59f78d,'data-author-id':_0x3f6752}),_0x4a75f1=_0x3af8a9['mapper']['toViewPosition'](_0x38d864);_0x3a8f8a&&_0x289f00['activeMarkers']['includes'](_0x270e7b['markerName'])&&_0x3af8a9['writer']['addClass']('ck-suggestion-marker--active',_0x1d8e6c),_0x3af8a9['writer']['insert'](_0x4a75f1,_0x1d8e6c),_0x3af8a9['mapper']['bindElementToMarker'](_0x1d8e6c,_0x270e7b['markerName']);}};}class St extends _0x5575fe{['afterInit'](){const _0x509363=this['editor'];_0x509363['commands']['get']('replaceSource')&&_0x509363['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x5575fe{['afterInit'](){const _0x25aa0c=this['editor'];if(!_0x25aa0c['plugins']['has']('RemoveFormatEditing'))return;_0x25aa0c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2764bb=this['editor'];_0x2764bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40335d=>{if('formatBlock'!=_0x40335d['type']&&'formatInline'!=_0x40335d['type'])return;const {data:_0x40ccc3}=_0x40335d;return _0x40ccc3&&'removeFormat'==_0x40ccc3['commandName']?{'type':'format','content':c(_0x2764bb['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x5575fe{['afterInit'](){const _0x505102=this['editor'];if(!_0x505102['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3f0717=_0x505102['plugins']['get']('TrackChangesEditing');_0x3f0717['enableCommand']('goToPreviousRestrictedEditingException'),_0x3f0717['enableCommand']('goToNextRestrictedEditingException');const _0x153d1d=_0x505102['plugins']['get']('RestrictedEditingModeEditing');_0x153d1d['enableCommand']('trackChanges'),_0x153d1d['enableCommand']('acceptSuggestion'),_0x153d1d['enableCommand']('discardSuggestion'),_0x153d1d['enableCommand']('acceptAllSuggestions'),_0x153d1d['enableCommand']('discardAllSuggestions'),_0x153d1d['enableCommand']('acceptSelectedSuggestions'),_0x153d1d['enableCommand']('discardSelectedSuggestions');}}class At extends _0x5575fe{['afterInit'](){const _0x49eea1=this['editor'];if(!_0x49eea1['plugins']['has']('ShiftEnter'))return;const _0x4b82a2=_0x49eea1['plugins']['get']('TrackChangesEditing');_0x4b82a2['enableCommand']('shiftEnter'),_0x49eea1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x49eea1),{'priority':'high'}),_0x49eea1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x49eea1),{'priority':'high'}),_0x49eea1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5550ef,_0x4333d5,_0xdde1a4)=>{_0xdde1a4['options']['showSuggestionHighlights']&&je(_0x49eea1,{'showActiveMarker':!0x1})(_0x5550ef,_0x4333d5,_0xdde1a4);}),_0x4b82a2['descriptionFactory']['registerElementLabel']('softBreak',_0xf5b36=>c(_0x49eea1['locale'],'ELEMENT_LINE_BREAK',_0xf5b36));}}function je(_0x18188f,{showActiveMarker:_0x3f403c=!0x0}={}){return(_0x41f9e5,_0x459447,_0x21c048)=>{const _0x58b02b=_0x18188f['plugins']['get']('TrackChangesEditing');if(!_0x21c048['consumable']['test'](_0x459447['markerRange'],_0x41f9e5['name']))return;const _0x14d62f=_0x18188f['model'];for(const _0x112553 of _0x459447['markerRange']['getItems']()){if(!_0x112553['is']('element','softBreak'))continue;const _0x25e8c0='deletion'==_0x459447['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x25a41a,authorId:_0xb02685}=_0x58b02b['_splitMarkerName'](_0x459447['markerName']),_0x31d5da=_0x21c048['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x25e8c0,'data-suggestion':_0x25a41a,'data-author-id':_0xb02685}),_0x244524=_0x21c048['mapper']['toViewPosition'](_0x14d62f['createPositionBefore'](_0x112553));_0x3f403c&&_0x58b02b['activeMarkers']['includes'](_0x459447['markerName'])&&_0x21c048['writer']['addClass']('ck-suggestion-marker--active',_0x31d5da),_0x21c048['writer']['insert'](_0x244524,_0x31d5da),_0x21c048['mapper']['bindElementToMarker'](_0x31d5da,_0x459447['markerName']);}};}class _t extends _0x5575fe{['afterInit'](){const _0x193ea8=this['editor'],_0x52c589=_0x193ea8['model'],_0x47331b=_0x193ea8['locale'];if(!_0x193ea8['plugins']['has']('StandardEditingModeEditing'))return;const _0x10c175=_0x193ea8['plugins']['get']('TrackChangesEditing'),_0xa43a00='restrictedEditingException',_0x4b33f7=_0x193ea8['commands']['get'](_0xa43a00);_0x10c175['enableCommand'](_0xa43a00,(_0x542ecb,_0x4c72dd={})=>{const _0x3da471=_0x52c589['document']['selection'];if(_0x3da471['isCollapsed'])return void _0x542ecb(_0x4c72dd);const _0x459f93=void 0x0!==_0x4c72dd['forceValue']?_0x4c72dd['forceValue']:!_0x4b33f7['value'];_0x52c589['change'](()=>{const _0x5bdd7e=Array['from'](_0x3da471['getRanges']());for(const _0xcebf02 of _0x5bdd7e){const _0x3de6d3=_0x459f93?[_0xcebf02]:io(_0xa43a00,_0xcebf02,_0x52c589);for(const _0x49522b of _0x3de6d3)_0x10c175['markInlineFormat'](_0x49522b,{'commandName':_0xa43a00,'commandParams':[{'forceValue':_0x459f93}]});}});}),_0x10c175['descriptionFactory']['registerDescriptionCallback'](_0x5e7fc0=>{if('formatBlock'!=_0x5e7fc0['type']&&'formatInline'!=_0x5e7fc0['type'])return;const {data:_0x342560}=_0x5e7fc0;return _0x342560&&_0x342560['commandName']==_0xa43a00?_0x342560['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x47331b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x47331b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x5575fe{['afterInit'](){const _0x158815=this['editor'];if(!_0x158815['plugins']['has']('Style')||!_0x158815['plugins']['has']('DataSchema'))return;const _0x3bc837=_0x158815['plugins']['get']('TrackChangesEditing'),_0x38f8be=_0x158815['locale'],_0x18ebcf=_0x158815['config']['get']('style')||{},_0x21ebd7=_0x158815['plugins']['get']('GeneralHtmlSupport'),_0x58dc6d=_0x158815['plugins']['get']('StyleUtils')['normalizeConfig'](_0x158815['plugins']['get']('DataSchema'),_0x18ebcf['definitions']);_0x3bc837['enableDefaultAttributesIntegration']('style');const _0x47050d=new Set();for(const _0x3526c8 of _0x58dc6d['block']){const _0x54c7c4=_0x21ebd7['getGhsAttributeNameForElement'](_0x3526c8['element']);_0x47050d['add'](_0x54c7c4);}const _0x31abac=new Set();for(const _0x1ff06b of _0x58dc6d['inline']){const _0x38e475=_0x21ebd7['getGhsAttributeNameForElement'](_0x1ff06b['element']);_0x31abac['add'](_0x38e475);for(const _0xc0b757 of _0x1ff06b['ghsAttributes'])_0x31abac['add'](_0xc0b757);}for(const _0x1b25dc of _0x47050d)_0x3bc837['registerBlockAttribute'](_0x1b25dc),_0x3bc837['descriptionFactory']['registerAttributeLabel'](_0x1b25dc,c(_0x38f8be,'FORMAT_STYLE'));for(const _0x7243fb of _0x31abac)_0x3bc837['registerInlineAttribute'](_0x7243fb),_0x3bc837['descriptionFactory']['registerAttributeLabel'](_0x7243fb,c(_0x38f8be,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49b029=this['editor'],_0x5e6c6a=_0x49b029['locale'];_0x49b029['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bc93a=>{if('formatBlock'!=_0x4bc93a['type']&&'formatInline'!=_0x4bc93a['type'])return;const {data:_0x4996b3}=_0x4bc93a;return _0x4996b3&&'style'===_0x4996b3['commandName']?_0x4996b3['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5e6c6a,'*Set\x20format:*\x20%0',_0x4996b3['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x5e6c6a,'*Remove\x20format:*\x20%0',_0x4996b3['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x5575fe{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x25fe20){super(_0x25fe20),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4d6c08=this['editor'],_0x2308ab=_0x4d6c08['model']['document']['selection'];if(!_0x4d6c08['plugins']['has']('TableEditing'))return;const _0x28c53d=_0x4d6c08['locale'],_0x842dc3=_0x4d6c08['plugins']['get']('TrackChangesEditing'),_0x43c820=_0x4d6c08['plugins']['get']('TableUtils');_0x842dc3['descriptionFactory']['registerElementLabel']('table',_0x3fef2b=>c(_0x28c53d,'ELEMENT_TABLE',_0x3fef2b)),this['_setupColumnsRowsFixing'](),_0x842dc3['enableCommand']('insertTable'),_0x842dc3['enableCommand']('selectTableRow'),_0x842dc3['enableCommand']('selectTableColumn');for(const _0x4e3025 of['insertTableRowAbove','insertTableRowBelow']){const _0x1d1441=_0x4d6c08['commands']['get'](_0x4e3025);_0x842dc3['enableCommand'](_0x4e3025,_0x167a9f=>{_0x4d6c08['model']['change'](_0x2ed41a=>{_0x167a9f();const _0xcb6bfb='above'===_0x1d1441['order'],_0x1840a5=_0x43c820['getSelectionAffectedTableCells'](_0x2308ab),_0x232fa0=_0x43c820['getRowIndexes'](_0x1840a5),_0x37fc30=_0xcb6bfb?_0x232fa0['first']-0x1:_0x232fa0['last']+0x1,_0x267175=_0x1840a5[0x0]['findAncestor']('table'),_0x1e76d5=_0x43c820['createTableWalker'](_0x267175,{'startRow':_0x37fc30,'endRow':_0x37fc30}),_0x5550c1=Array['from'](_0x1e76d5)['map'](_0x982a17=>_0x2ed41a['createRangeOn'](_0x982a17['cell']));_0x842dc3['markMultiRangeInsertion'](_0x5550c1,'tableRow');});});}for(const _0x2d62e8 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1d1598=_0x4d6c08['commands']['get'](_0x2d62e8);_0x842dc3['enableCommand'](_0x2d62e8,_0x240386=>{_0x4d6c08['model']['change'](_0x450b77=>{_0x240386();const _0x3a95cb='left'===_0x1d1598['order'],_0x36cd58=_0x43c820['getSelectionAffectedTableCells'](_0x2308ab),_0x5a8945=_0x43c820['getColumnIndexes'](_0x36cd58),_0x4df789=_0x3a95cb?_0x5a8945['first']-0x1:_0x5a8945['last']+0x1,_0x17181b=_0x36cd58[0x0]['findAncestor']('table'),_0x3f407e=_0x43c820['createTableWalker'](_0x17181b,{'startRow':0x0,'column':_0x4df789,'includeAllSlots':!0x1}),_0x2c89c2=Array['from'](_0x3f407e)['map'](_0x1cf2f1=>_0x450b77['createRangeOn'](_0x1cf2f1['cell']));_0x842dc3['markMultiRangeInsertion'](_0x2c89c2,'tableColumn');});});}for(const _0x2ff5ef of['removeTableRow','removeTableColumn']){const _0x304739=_0x2ff5ef['substr'](0xb),_0x3fcbd4=_0x304739['toLowerCase'](),_0x3e8a0a=_0x3fcbd4['substr'](0x0,0x3)+'span',_0x5c7211='table'+_0x304739,_0x4726ff='min'+_0x304739,_0x509c4b='max'+_0x304739;_0x842dc3['enableCommand'](_0x2ff5ef,()=>{_0x4d6c08['model']['change'](_0xb36e65=>{const _0x279512=_0x43c820['getSelectionAffectedTableCells'](_0x2308ab),_0x302110=_0x279512[0x0]['findAncestor']('table');let _0x5d7544;if('removeTableRow'==_0x2ff5ef){const _0x24a8b8=_0x43c820['getRowIndexes'](_0x279512);_0x5d7544={'startRow':_0x24a8b8['first'],'endRow':_0x24a8b8['last'],'includeAllSlots':!0x0};}else{const _0x27547d=_0x43c820['getColumnIndexes'](_0x279512);_0x5d7544={'startColumn':_0x27547d['first'],'endColumn':_0x27547d['last'],'includeAllSlots':!0x0};}const _0x16f556=_0x43c820['createTableWalker'](_0x302110,_0x5d7544),_0x15dd71=Array['from'](_0x16f556)['map'](({cell:_0x5146b3})=>_0x5146b3),_0x56d794=xe(_0x15dd71['filter'](_0x1c6939=>_0x1c6939['hasAttribute'](_0x3e8a0a))),_0x41f1da=xe(_0x15dd71['filter'](_0x3125f2=>!_0x3125f2['hasAttribute'](_0x3e8a0a)))['map'](_0x4eaeec=>_0xb36e65['createRangeOn'](_0x4eaeec)),_0x52ec30=_0x842dc3['markMultiRangeDeletion'](_0x41f1da,_0x5c7211);if(_0x52ec30&&('tableRow'==_0x52ec30['subType']||'tableColumn'==_0x52ec30['subType'])){const _0x351fce=this['_getSuggestionCoords'](_0x52ec30);for(const _0x552916 of _0x56d794){const _0x49b325=_0xb36e65['createRangeOn'](_0x552916),_0x300d36=_0x43c820['getCellLocation'](_0x552916),_0x570bc1=_0x552916['getAttribute'](_0x3e8a0a)-0x1,_0x6abcae=_0x351fce[_0x4726ff],_0x3210a7=_0x351fce[_0x509c4b];_0x6abcae<=_0x300d36[_0x3fcbd4]&&_0x300d36[_0x3fcbd4]+_0x570bc1<=_0x3210a7&&_0x52ec30['addRange'](_0x49b325);}}});});}function _0x2b475a(_0x36b097){const _0x1070ac=Array['from'](_0x2308ab['getRanges']())['map'](_0x2fc81d=>_0x34c04c['fromRange'](_0x2fc81d));_0x4d6c08['model']['change'](_0x1b6945=>{const _0x309462=_0x1b6945['batch'];_0x36b097=_0x36b097['filter'](_0x3a71c4=>'$graveyard'!=_0x3a71c4['root']['rootName']),_0x1b6945['setSelection'](_0x36b097),_0x4d6c08['commands']['get']('removeTableRow')['refresh'](),_0x4d6c08['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4d6c08['model']['enqueueChange'](()=>{_0x4d6c08['model']['enqueueChange'](_0x309462,_0x6e4426=>{const _0x35c0df=_0x1070ac['filter'](_0x54c892=>'$graveyard'!=_0x54c892['root']['rootName']);_0x35c0df['length']>0x0&&_0x6e4426['setSelection'](_0x35c0df);for(const _0x1bfd60 of _0x1070ac)_0x1bfd60['detach']();});});});}function _0x5ad008(_0x43f618){_0x4d6c08['model']['change'](_0x18bbde=>{const _0x368eae=Array['from'](_0x2308ab['getRanges']())['map'](_0x143960=>_0x34c04c['fromRange'](_0x143960)),_0x467933=[];for(const _0x37da40 of _0x43f618)for(const _0x24d490 of _0x37da40['getItems']({'shallow':!0x0}))_0x467933['push'](_0x24d490);for(const _0xa15db5 of _0x467933)'$graveyard'!=_0xa15db5['root']['rootName']&&(_0x18bbde['setSelection'](_0x18bbde['createPositionAt'](_0xa15db5,0x0)),_0x4d6c08['commands']['get']('removeTableColumn')['refresh'](),_0x4d6c08['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x9b5483=_0x368eae['filter'](_0xdf4972=>'$graveyard'!=_0xdf4972['root']['rootName']);_0x9b5483['length']>0x0&&_0x18bbde['setSelection'](_0x9b5483);for(const _0x142485 of _0x368eae)_0x142485['detach']();});}function _0xe88f90(_0xea120c,_0xf5b0bd){return _0xf5b0bd['every'](_0x55c98e=>_0xea120c['some'](_0x3ff374=>_0x3ff374['end']['isEqual'](_0x55c98e['start'])||_0x55c98e['end']['isEqual'](_0x3ff374['start'])));}function _0x39444e(_0xbff0b8,_0x52bbb5){return!_0xbff0b8['some'](_0x217597=>_0x52bbb5['some'](_0x30245b=>_0x217597['isIntersecting'](_0x30245b)))&&_0xbff0b8['some'](_0x34855c=>_0x52bbb5['some'](_0x2e3fad=>_0x34855c['end']['isTouching'](_0x2e3fad['start'])));}_0x4d6c08['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x43f642,_0x37acc4,_0x45f858)=>{if(!_0x45f858['options']['showSuggestionHighlights'])return;const _0x40c2d5=_0x37acc4['item'];if(!_0x40c2d5||!_0x40c2d5['is']('element','tableCell'))return;const _0x2b4c33=_0x45f858['mapper']['toViewElement'](_0x40c2d5);if(_0x2b4c33){const {id:_0x251325,authorId:_0x1d0bd9}=_0x842dc3['_splitMarkerName'](_0x37acc4['markerName']);_0x327007(_0x2b4c33,_0x45f858['writer'],(_0x1eb269,_0x3c4af1,_0x4bb04e)=>{_0x4bb04e['addClass'](_0x4eacd5(_0x3c4af1['classes']),_0x1eb269),_0x4bb04e['setAttribute']('data-suggestion-id',_0x251325,_0x1eb269),_0x4bb04e['setAttribute']('data-author-id',_0x1d0bd9,_0x1eb269);},(_0x205917,_0x57f5e2,_0xb48600)=>{_0xb48600['removeClass'](_0x4eacd5(_0x57f5e2['classes']),_0x205917),_0xb48600['removeAttribute']('data-suggestion-id',_0x205917),_0xb48600['removeAttribute']('data-author-id',_0x205917);});}},{'priority':'highest'}),_0x842dc3['descriptionFactory']['registerDescriptionCallback'](_0x40b97c=>{if('insertion'!=_0x40b97c['type']&&'deletion'!=_0x40b97c['type'])return;const _0x273780=_0x40b97c['getContainedElement']();if(null!=_0x273780&&_0x273780['is']('element','table')){if('insertion'==_0x40b97c['type']){const _0x4246bb=_0x40b97c['getItems']()['filter'](_0x11640e=>_0x11640e['is']('$textProxy'))['map'](_0x1ee3a1=>_0x1ee3a1['data']);if(_0x4246bb['length'])return{'type':'insertion','content':c(_0x28c53d,'*Insert:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4246bb['join']('\x20')+'\x22'))};}if('deletion'==_0x40b97c['type']){const _0x22a27f=_0x40b97c['getItems']()['filter'](_0x1b0580=>_0x1b0580['is']('$textProxy'))['map'](_0x496bf0=>_0x496bf0['data']);if(_0x22a27f['length'])return{'type':'deletion','content':c(_0x28c53d,'*Remove:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x22a27f['join']('\x20')+'\x22'))};}}}),_0x842dc3['descriptionFactory']['registerDescriptionCallback'](_0x58a94a=>{if('tableRow'==_0x58a94a['subType']){const _0x4745ed=_0x58a94a['getItems']()['filter'](_0x3d459e=>_0x3d459e['is']('$textProxy'))['map'](_0x31ed97=>_0x31ed97['data']),_0x392c18=this['_getSuggestionCoords'](_0x58a94a),_0x468543=_0x392c18['maxRow']-_0x392c18['minRow']+0x1;if('insertion'==_0x58a94a['type'])return _0x4745ed['length']?{'type':'insertion','content':c(_0x28c53d,'*Insert:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x468543,'\x22'+_0x4745ed['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x28c53d,'*Insert:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_ROW',_0x468543))};if('deletion'==_0x58a94a['type'])return _0x4745ed['length']?{'type':'deletion','content':c(_0x28c53d,'*Remove:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x468543,'\x22'+_0x4745ed['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x28c53d,'*Remove:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_ROW',_0x468543))};}if('tableColumn'==_0x58a94a['subType']){const _0x52cdee=_0x58a94a['getItems']()['filter'](_0x19959d=>_0x19959d['is']('$textProxy'))['map'](_0x2905a3=>_0x2905a3['data']),_0x494a74=this['_getSuggestionCoords'](_0x58a94a),_0x18b110=_0x494a74['maxColumn']-_0x494a74['minColumn']+0x1;if('insertion'==_0x58a94a['type'])return _0x52cdee['length']?{'type':'insertion','content':c(_0x28c53d,'*Insert:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x18b110,'\x22'+_0x52cdee['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x28c53d,'*Insert:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_COLUMN',_0x18b110))};if('deletion'==_0x58a94a['type'])return _0x52cdee['length']?{'type':'deletion','content':c(_0x28c53d,'*Remove:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x18b110,'\x22'+_0x52cdee['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x28c53d,'*Remove:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_COLUMN',_0x18b110))};}}),_0x842dc3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2b475a),_0x842dc3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2b475a),_0x842dc3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5ad008),_0x842dc3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5ad008),_0x842dc3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xe88f90),_0x842dc3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xe88f90),_0x842dc3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x39444e),_0x842dc3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x39444e);}['_acceptFormatSuggestionCallbackFactory'](){const _0xab19c4=this['editor'],_0xc06528=_0xab19c4['model']['document']['selection'];return(_0x218f9c,_0x47ab37)=>{_0xab19c4['model']['change'](_0x483f24=>{const {commandName:_0x41b8ca,commandParams:_0x1a49c3}=_0x47ab37;let _0x2ec68b=_0x218f9c[0x0]['end']['nodeBefore'];_0x1a49c3&&_0x1a49c3[0x0]&&!0x1===_0x1a49c3[0x0]['forceValue']&&(_0x2ec68b=_0x218f9c[0x0]['start']['nodeAfter']);const _0x3491b2=_0x483f24['createRangeIn'](_0x2ec68b);if('$graveyard'==_0x3491b2['root']['rootName'])return;const _0x355fbf=Array['from'](_0xc06528['getRanges']())['map'](_0x5e6221=>_0x34c04c['fromRange'](_0x5e6221));_0x483f24['setSelection'](_0x3491b2),_0xab19c4['commands']['get'](_0x41b8ca)['refresh'](),_0x1a49c3['push']({'forceDefaultExecution':!0x0}),_0xab19c4['execute'](_0x41b8ca,..._0x1a49c3);const _0x41399b=_0x355fbf['filter'](_0x41f0d9=>'$graveyard'!=_0x41f0d9['root']['rootName']);_0x41399b['length']>0x0&&_0x483f24['setSelection'](_0x41399b);for(const _0x52dc6e of _0x355fbf)_0x52dc6e['detach']();});};}['_getCoordsForCells'](_0x1935e7){const _0x58f912=this['editor']['plugins']['get']('TableUtils');let _0x41e51d=Number['MAX_SAFE_INTEGER'],_0x5f031d=Number['MIN_SAFE_INTEGER'],_0x48c3a3=Number['MAX_SAFE_INTEGER'],_0x1ec546=Number['MIN_SAFE_INTEGER'];for(const _0x381ffa of _0x1935e7){if('$graveyard'==_0x381ffa['root']['rootName'])continue;const {row:_0x38e203,column:_0x36af23}=_0x58f912['getCellLocation'](_0x381ffa),_0x471df1=_0x381ffa['hasAttribute']('rowspan')?_0x381ffa['getAttribute']('rowspan')-0x1:0x0,_0x74f143=_0x381ffa['hasAttribute']('colspan')?_0x381ffa['getAttribute']('colspan')-0x1:0x0;_0x41e51d=_0x38e203<_0x41e51d?_0x38e203:_0x41e51d,_0x5f031d=_0x38e203+_0x471df1>_0x5f031d?_0x38e203+_0x471df1:_0x5f031d,_0x48c3a3=_0x36af23<_0x48c3a3?_0x36af23:_0x48c3a3,_0x1ec546=_0x36af23+_0x74f143>_0x1ec546?_0x36af23+_0x74f143:_0x1ec546;}return{'minRow':_0x41e51d,'maxRow':_0x5f031d,'minColumn':_0x48c3a3,'maxColumn':_0x1ec546};}['_setupColumnsRowsFixing'](){const _0x5e12bc=this['editor'],_0x4d03d8=_0x5e12bc['plugins']['get']('TrackChangesEditing'),_0x59f01d=_0x5e12bc['plugins']['get']('TableUtils');_0x5e12bc['model']['document']['on']('change:data',()=>{const _0x478286=Array['from'](_0x5e12bc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x15e764,data:_0x12b0c1}of _0x478286){const {group:_0x29de4a,id:_0x318e76,subType:_0x3f5e18}=_0x4d03d8['_splitMarkerName'](_0x15e764);if('suggestion'!=_0x29de4a)continue;if(null!=_0x12b0c1['oldRange'])continue;const _0x107e72=_0x4d03d8['getSuggestion'](_0x318e76);this['_tablePostFixingSubtypes']['includes'](_0x3f5e18)&&this['_tableSuggestions']['add'](_0x107e72);}},{'priority':'low'});const _0x5ac15c=(_0x5046d0,_0x40be4f)=>{let _0x4e4c58=!0x1;const _0x49256f=_0x40be4f['createRangeOn'](_0x5046d0),_0x5b4815=_0x5046d0['findAncestor']('table'),_0x169b7e=_0x59f01d['getCellLocation'](_0x5046d0);for(const _0x16cce4 of this['_tableSuggestions']){const _0x10abcc=_0x16cce4['subType'],_0x195d38=_0x10abcc['startsWith']('tablePaste'),_0x2324af=_0x10abcc['substr'](_0x195d38?0xa:0x5),_0x22abf7=_0x2324af['toLowerCase'](),_0x338761=_0x22abf7['substr'](0x0,0x3)+'span',_0x381526='min'+_0x2324af,_0x25dead='max'+_0x2324af;if(!_0x16cce4['isInContent'])continue;if(_0x5b4815!=_0x16cce4['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x16cce4['isIntersectingWithRange'](_0x49256f))continue;const _0x28255e=_0x5046d0['hasAttribute'](_0x338761)?_0x5046d0['getAttribute'](_0x338761)-0x1:0x0,_0x52e266=this['_getSuggestionCoords'](_0x16cce4),_0x275e37=_0x52e266[_0x381526],_0x2e4dcc=_0x52e266[_0x25dead];_0x275e37<=_0x169b7e[_0x22abf7]&&_0x169b7e[_0x22abf7]+_0x28255e<=_0x2e4dcc&&(_0x16cce4['addRange'](_0x49256f),_0x4e4c58=!0x0);}return _0x4e4c58;};_0x5e12bc['model']['document']['registerPostFixer'](_0x10c2f0=>{let _0x25c72e=!0x1;for(const _0x3963d8 of _0x5e12bc['model']['document']['differ']['getChanges']())if('insert'==_0x3963d8['type']){if('tableRow'==_0x3963d8['name']){for(const _0x236cc7 of _0x3963d8['position']['nodeAfter']['getChildren']())_0x25c72e=_0x25c72e||_0x5ac15c(_0x236cc7,_0x10c2f0);}else'tableCell'==_0x3963d8['name']&&(_0x25c72e=_0x25c72e||_0x5ac15c(_0x3963d8['position']['nodeAfter'],_0x10c2f0));}return _0x25c72e;});}['_getSuggestionCoords'](_0x19cf82){return this['_getCoordsForCells'](_0x19cf82['getRanges']()['map'](_0x4747af=>_0x4747af['start']['nodeAfter']));}}function xe(_0x5f3a81){return Array['from'](new Set(_0x5f3a81)['values']());}class Nt extends _0x5575fe{static get['requires'](){return[Ct];}['afterInit'](){const _0x3ff2f0=this['editor'],_0xa18365=_0x3ff2f0['model']['document']['selection'],_0x4cb285=_0x3ff2f0['locale'];if(!_0x3ff2f0['plugins']['has']('TableEditing'))return;const _0x379d75=_0x3ff2f0['plugins']['get']('TrackChangesEditing'),_0x470a21=_0x3ff2f0['plugins']['get']('TableUtils'),_0x28df5f=_0x3ff2f0['plugins']['get'](Ct);_0x28df5f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x379d75['enableCommand']('mergeTableCells',()=>{const _0x63dc43=_0x470a21['getSelectionAffectedTableCells'](_0x3ff2f0['model']['document']['selection']);_0x3ff2f0['model']['change'](()=>{_0x379d75['markMultiRangeBlockFormat'](_0x63dc43,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3ff2f0['commands']['get']('mergeTableCells')['on']('execute',(_0x5c89ec,_0x43cf82)=>{_0x3ff2f0['commands']['get']('trackChanges')['value']&&(_0x43cf82['length']>0x0&&_0x43cf82[_0x43cf82['length']-0x1]&&_0x43cf82[_0x43cf82['length']-0x1]['forceDefaultExecution']||_0x379d75['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5c89ec['stop']());},{'priority':'highest'});for(const _0x4751b2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4e20e7=_0x3ff2f0['commands']['get'](_0x4751b2);_0x379d75['enableCommand'](_0x4751b2,()=>{const _0x2bec2d=_0x3ff2f0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3d2c8c=>_0x3d2c8c['is']('element','tableCell')),_0x121ab9=_0x4e20e7['value'];_0x3ff2f0['model']['change'](()=>{_0x379d75['markMultiRangeBlockFormat']([_0x2bec2d,_0x121ab9],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3ed46e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x230f48=_0x3ff2f0['commands']['get'](_0x3ed46e);_0x379d75['enableCommand'](_0x3ed46e,()=>{const _0x1b7feb=_0x470a21['getSelectionAffectedTableCells'](_0x3ff2f0['model']['document']['selection'])[0x0],_0x2cad96=_0x1b7feb['findAncestor']('table'),{column:_0x83c844,row:_0x54ad96}=_0x470a21['getCellLocation'](_0x1b7feb);let _0x56cfcf=[];if('horizontally'==_0x230f48['direction']){const _0x30c8cf=_0x470a21['createTableWalker'](_0x2cad96,{'startRow':_0x54ad96,'endRow':_0x54ad96,'includeAllSlots':!0x0});_0x56cfcf=Array['from'](_0x30c8cf)['map'](_0x5de9bd=>_0x5de9bd['cell']);}else{const _0x3dfe09=_0x470a21['createTableWalker'](_0x2cad96,{'column':_0x83c844,'includeAllSlots':!0x0});_0x56cfcf=Array['from'](_0x3dfe09)['map'](_0x42b707=>_0x42b707['cell']);}_0x3ff2f0['model']['change'](_0x112ba7=>{_0x379d75['markBlockFormat'](_0x112ba7['createRangeOn'](_0x1b7feb),{'commandName':_0x3ed46e,'commandParams':[]},_0x56cfcf,_0x3ed46e);});});}_0x379d75['descriptionFactory']['registerDescriptionCallback'](_0x51c779=>{if('formatBlock'!=_0x51c779['type']&&'formatInline'!=_0x51c779['type'])return;const {data:_0x85c42e}=_0x51c779;return _0x85c42e&&'mergeTableCells'==_0x85c42e['commandName']?{'type':'format','content':c(_0x4cb285,'*Merge\x20cells*')}:void 0x0;}),_0x379d75['descriptionFactory']['registerDescriptionCallback'](_0x427dfd=>{if('formatBlock'!=_0x427dfd['type']&&'formatInline'!=_0x427dfd['type'])return;const {data:_0x34d922}=_0x427dfd;return _0x34d922?'splitTableCellVertically'==_0x34d922['commandName']?{'type':'format','content':c(_0x4cb285,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x34d922['commandName']?{'type':'format','content':c(_0x4cb285,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x38052e=_0x28df5f['_acceptFormatSuggestionCallbackFactory']();for(const _0x3ead21 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x379d75['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3ead21,'accept',_0x38052e);for(const _0x5a93d8 of['splitTableCellVertically','splitTableCellHorizontally'])_0x379d75['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5a93d8,'accept',_0x38052e);_0x379d75['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1107a0=>{_0x3ff2f0['model']['change'](_0x5af44b=>{const _0x16bab3=Array['from'](_0xa18365['getRanges']())['map'](_0x53694a=>_0x34c04c['fromRange'](_0x53694a));_0x5af44b['setSelection'](_0x1107a0),_0x3ff2f0['commands']['get']('mergeTableCells')['refresh'](),_0x3ff2f0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2c6f70=_0x16bab3['filter'](_0x2da3bb=>'$graveyard'!=_0x2da3bb['root']['rootName']);_0x2c6f70['length']>0x0&&_0x5af44b['setSelection'](_0x2c6f70);for(const _0x2daac2 of _0x16bab3)_0x2daac2['detach']();});});for(const _0x3b2a13 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x28ae02=_0x3ff2f0['commands']['get'](_0x3b2a13);_0x28ae02['on']('set:isEnabled',(_0x374656,_0x1f6b7a,_0x2c6ee3)=>{if(_0x2c6ee3){const _0x578127=_0x3ff2f0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x18422e=>_0x18422e['is']('element','tableCell'));this['_areMergableCells'](_0x28ae02['value'],_0x578127)||(_0x374656['return']=!0x1,_0x374656['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x396382=this['editor']['commands']['get']('mergeTableCells'),_0x350797=this['editor']['plugins']['get']('TableUtils');if(!_0x396382['isEnabled'])return!0x1;const _0x32abdc=_0x350797['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x432745 of _0x32abdc)for(const _0x12fce0 of _0x32abdc)if(_0x432745!=_0x12fce0&&!this['_areMergableCells'](_0x432745,_0x12fce0))return!0x1;return!0x0;}['_areMergableCells'](_0x361524,_0x5128ab){const _0x34f96c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44d5e1=this['editor']['model']['createRangeOn'](_0x361524),_0x4a9baa=this['editor']['model']['createRangeOn'](_0x5128ab),_0x51034d=new Set(),_0x37e316=new Set();for(const _0xc66770 of _0x34f96c['getSuggestions']())if(('insertion'==_0xc66770['type']||'deletion'==_0xc66770['type']||'mergeTableCells'==_0xc66770['subType'])&&_0xc66770['isInContent']){for(const _0x3b441d of _0xc66770['getRanges']())_0x3b441d['containsRange'](_0x44d5e1,!0x0)&&_0x51034d['add'](_0xc66770['type']+':'+_0xc66770['author']['id']),_0x3b441d['containsRange'](_0x4a9baa,!0x0)&&_0x37e316['add'](_0xc66770['type']+':'+_0xc66770['author']['id']);}if(_0x51034d['size']!=_0x37e316['size'])return!0x1;for(const _0x43ae0b of _0x51034d)if(!_0x37e316['has'](_0x43ae0b))return!0x1;return!0x0;}}class Dt extends _0x5575fe{static get['requires'](){return[Ct];}['afterInit'](){const _0x1de52d=this['editor'];if(!_0x1de52d['plugins']['has']('TableEditing'))return;const _0x15f982=_0x1de52d['locale'],_0x8bbe00=_0x1de52d['plugins']['get']('TrackChangesEditing');_0x8bbe00['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x8bbe00['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x8bbe00['registerBlockAttribute']('headingRows'),_0x8bbe00['registerBlockAttribute']('headingColumns'),_0x8bbe00['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x15f982,'FORMAT_HEADER_ROW')),_0x8bbe00['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x15f982,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xc76a4a=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb049c1=this['editor']['plugins']['get']('TableUtils'),_0x1a0866=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0xb9ede5({showActiveMarker:_0x3fa273=!0x0,setDataAttribute:_0xd1f99c=!0x0}={}){return(_0x1947ba,_0xcc416b,_0x5c287c)=>{const {type:_0x51bb06,id:_0x389a9b}=_0xc76a4a['_splitMarkerName'](_0xcc416b['markerName']),_0x237744=_0xc76a4a['getSuggestion'](_0x389a9b),_0x34b274=_0x237744['data'];if('formatBlock'!=_0x237744['type']||!_0x34b274||'setTableColumnHeader'!=_0x34b274['commandName'])return;if(_0xcc416b['item'])return void _0x1947ba['stop']();if(!_0x5c287c['consumable']['consume'](_0xcc416b['markerRange'],_0x1947ba['name']))return;const _0x1aa78e=_0xcc416b['markerRange']['start']['nodeAfter'],_0x20dffd=_0xcc416b['markerRange']['end']['nodeBefore'],_0x5d32e8=_0x1aa78e['parent']['parent'],{column:_0x31b877}=_0xb049c1['getCellLocation'](_0x1aa78e),{column:_0x305466}=_0xb049c1['getCellLocation'](_0x20dffd);for(let _0x3c30c3=_0x31b877;_0x3c30c3<=_0x305466;_0x3c30c3++){const _0x529dfb=_0xb049c1['createTableWalker'](_0x5d32e8,{'column':_0x3c30c3,'includeAllSlots':!0x1});for(const _0x1f57f5 of _0x529dfb){const _0x306983=_0x1f57f5['cell'],_0x4c1d3e=_0x5c287c['mapper']['toViewElement'](_0x306983);_0x5c287c['writer']['addClass']('ck-suggestion-marker-'+_0x51bb06,_0x4c1d3e),_0xd1f99c&&_0x5c287c['writer']['setAttribute']('data-suggestion',_0x389a9b,_0x4c1d3e),_0x5c287c['mapper']['bindElementToMarker'](_0x4c1d3e,_0xcc416b['markerName']),_0x3fa273&&(_0xc76a4a['activeMarkers']['includes'](_0xcc416b['markerName'])?_0x5c287c['writer']['addClass']('ck-suggestion-marker--active',_0x4c1d3e):_0x5c287c['writer']['removeClass']('ck-suggestion-marker--active',_0x4c1d3e));}}};}_0xc76a4a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1a0866),_0xc76a4a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1a0866),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xb9ede5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x34e9e8,_0x1dbec4,_0x27cadf)=>{_0x27cadf['options']['showSuggestionHighlights']&&_0xb9ede5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x34e9e8,_0x1dbec4,_0x27cadf);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5a65ee,_0x4e6e63,_0x4c22d3)=>{const {type:_0x297ebd,id:_0x4d87cc}=_0xc76a4a['_splitMarkerName'](_0x4e6e63['markerName']),_0x1154d7=_0xc76a4a['getSuggestion'](_0x4d87cc),_0x48bce0=_0x1154d7['data'];if('formatBlock'!=_0x1154d7['type']||!_0x48bce0||'setTableColumnHeader'!=_0x48bce0['commandName'])return;const _0x38fbae=_0x4c22d3['mapper']['markerNameToElements'](_0x4e6e63['markerName']);if(_0x38fbae){for(const _0x1f025c of _0x38fbae)_0x4c22d3['writer']['removeClass']('ck-suggestion-marker-'+_0x297ebd,_0x1f025c),_0x4c22d3['writer']['removeClass']('ck-suggestion-marker--active',_0x1f025c),_0x4c22d3['writer']['removeAttribute']('data-suggestion',_0x1f025c),_0x4c22d3['mapper']['unbindElementFromMarkerName'](_0x1f025c,_0x4e6e63['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d166d=this['editor'],_0x4846ba=_0x5d166d['locale'];function _0x258f05(_0x20887f){return{'type':'format','content':c(_0x4846ba,'*Format:*\x20%0',_0x20887f)};}_0x5d166d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48f4f8=>{if('formatBlock'!=_0x48f4f8['type'])return;const {data:_0x1c90fb}=_0x48f4f8;if(_0x1c90fb){if('setTableRowHeader'==_0x1c90fb['commandName']){const _0x1cc09d=_0x1c90fb['commandParams'][0x0]['forceValue'];return _0x258f05(c(_0x4846ba,_0x1cc09d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1c90fb['commandName']){const _0x1c7f2a=_0x1c90fb['commandParams'][0x0]['forceValue'];return _0x258f05(c(_0x4846ba,_0x1c7f2a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x5575fe{['afterInit'](){const _0x45bbc0=this['editor'],_0x52aa6d=_0x45bbc0['locale'],_0x15a6df=_0x45bbc0['plugins']['get']('TrackChangesEditing');function _0x2cdc0c(_0x1d4977){return{'type':'format','content':''+c(_0x52aa6d,'*Set\x20table\x20type:*\x20%0',_0x1d4977)};}_0x45bbc0['plugins']['has']('TableLayout')&&(_0x15a6df['enableCommand']('insertTableLayout'),_0x15a6df['enableDefaultAttributesIntegration']('tableType'),_0x15a6df['registerBlockAttribute']('tableType'),_0x15a6df['descriptionFactory']['registerElementLabel'](_0x16624d=>_0x16624d['is']('element','table')&&'layout'===_0x16624d['getAttribute']('tableType'),_0x4532a7=>c(_0x52aa6d,'ELEMENT_LAYOUT_TABLE',_0x4532a7)),_0x15a6df['descriptionFactory']['registerDescriptionCallback'](_0x2a1387=>{const {data:_0x3e3ba1}=_0x2a1387;if(_0x3e3ba1&&'tableType'==_0x3e3ba1['key'])switch(_0x3e3ba1['newValue']){case'layout':return _0x2cdc0c(c(_0x52aa6d,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2cdc0c(c(_0x52aa6d,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0xa7cc47=>[_0xa7cc47,null]));class $t extends _0x5575fe{static get['requires'](){return[Ct];}['afterInit'](){const _0x166766=this['editor'];if(!_0x166766['plugins']['has']('TableClipboard'))return;const _0x55b53d=_0x166766['plugins']['get']('TrackChangesEditing'),_0x262ffc=_0x166766['plugins']['get']('TableUtils'),_0x4f5fc0=_0x166766['plugins']['get'](Ct),_0x1b141a=_0x166766['plugins']['get']('TableClipboard'),_0xdcb16b=_0x166766['plugins']['get']('TableSelection'),_0x59e247=_0x166766['plugins']['get'](_0x3243fa);_0x4f5fc0['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x166766['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x166766['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1b065e=null,_0x5e1145=!0x1;_0x59e247['on']('contentInsertion',(_0xf948fe,_0x1a7fda)=>{_0x5e1145='paste'===_0x1a7fda['method'];}),_0x166766['model']['on']('insertContent',(_0x60e9ab,_0x5b62ca)=>{if(!_0x5e1145&&null===_0xdcb16b['getSelectedTableCells']())return;const [_0x55d146,_0x12af87]=_0x5b62ca,_0xf056ae=_0x5b62ca[_0x5b62ca['length']-0x1];_0xf056ae&&_0xf056ae['forceDefaultExecution']||_0x55b53d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1e6236,_0x1c2864,_0x36431a,_0x5473bb,_0x4ec53a){if(_0x1c2864&&!_0x1c2864['is']('documentSelection'))return!0x1;const _0x457bc8=_0x4ec53a['getTableIfOnlyTableInContent'](_0x1e6236,_0x36431a);if(!_0x457bc8||!He(_0x457bc8,void 0x0,_0x5473bb))return!0x1;const _0x5e84f2=_0x5473bb['getSelectionAffectedTableCells'](_0x36431a['document']['selection']);if(!_0x5e84f2['length'])return!0x1;const _0x57be27=_0x5e84f2[0x0]['findAncestor']('table'),_0x536c8e=_0x5473bb['getRowIndexes'](_0x5e84f2),_0x2d890a=_0x5473bb['getColumnIndexes'](_0x5e84f2),_0x120028={'startRow':_0x536c8e['first'],'endRow':_0x536c8e['last'],'startColumn':_0x2d890a['first'],'endColumn':_0x2d890a['last']};return 0x1==_0x5e84f2['length']&&(_0x120028['endRow']+=_0x5473bb['getRows'](_0x457bc8)-0x1,_0x120028['endColumn']+=_0x5473bb['getColumns'](_0x457bc8)-0x1),He(_0x57be27,_0x120028,_0x5473bb);}(_0x55d146,_0x12af87,_0x166766['model'],_0x262ffc,_0x1b141a)&&(_0x60e9ab['stop'](),_0x1b065e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x166766['model']['change'](()=>{_0x166766['model']['insertContent'](_0x5b62ca[0x0],_0x5b62ca[0x1],_0x5b62ca[0x2],{'forceDefaultExecution':!0x0});const _0x309842=_0x1526c3(),{rowInsertionRanges:_0x18b361,columnInsertionRanges:_0x1ed870,insertionRanges:_0x7bdfda,deletionRanges:_0x47695c,cells:_0x21b7ad}=_0x1b065e;_0x18b361['length']&&_0x55b53d['markMultiRangeInsertion'](_0x18b361,'tablePasteRow',{'tablePasteChainId':_0x309842}),_0x1ed870['length']&&_0x55b53d['markMultiRangeInsertion'](_0x1ed870,'tablePasteColumn',{'tablePasteChainId':_0x309842}),_0x7bdfda['length']&&(_0x55b53d['markMultiRangeInsertion'](_0x7bdfda,'tablePaste',{'tablePasteChainId':_0x309842,'skipNestingCheck':!0x0}),_0x7bdfda['forEach'](_0x52d44c=>_0x52d44c['detach']?.())),_0x47695c['length']&&(_0x55b53d['markMultiRangeDeletion'](_0x47695c,'tablePaste',{'tablePasteChainId':_0x309842,'skipNestingCheck':!0x0}),_0x47695c['forEach'](_0x4a644f=>_0x4a644f['detach']?.()));const _0x4332de=_0x55b53d['markMultiRangeBlockFormat'](_0x21b7ad['map'](({element:_0x5cc752})=>_0x5cc752),{'formatGroupId':_0x1526c3()},[],'tablePasteCell',{'tablePasteChainId':_0x309842});if(_0x4332de){const _0x4afa78=_0x4332de['getMarkers'](),_0x567789=[];for(const {element:_0x1a5a4e,attributes:_0x30fa37}of _0x21b7ad){if(!_0x30fa37)continue;const _0x183cc3=_0x166766['model']['createRangeOn'](_0x1a5a4e),_0x7c1c60=_0x4afa78['find'](_0x523187=>_0x523187['getRange']()['isEqual'](_0x183cc3));_0x7c1c60&&_0x567789['push']([_0x7c1c60['name'],_0x30fa37]);}_0x567789['length']&&_0x4332de['setAttribute']('markerAttributes',Object['fromEntries'](_0x567789));}_0x1b065e=null;}));},{'priority':_0x2dda8a['high']+0xa}),_0x59e247['on']('contentInsertion',()=>{_0x5e1145=!0x1;},{'priority':'lowest'}),_0x166766['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x19d8af,_0x28b634)=>{const [_0x54e86a,_0x25d7be,,_0x1f359d]=_0x28b634;if(!_0x1b065e)return;_0x19d8af['stop']();const _0x850b91=_0x54e86a['cell'],_0x24901d=_0x25d7be,_0x4fd871=De(_0x850b91),_0x3d8c0f=De(_0x24901d);_0x19d8af['return']=_0x850b91;let _0x21c3b7=null,_0x42b4b8=null;if(_0x3d8c0f||_0x4fd871){if(_0x4fd871&&!_0x3d8c0f){_0x1f359d['remove'](_0x850b91['getChild'](0x0));for(const _0x3b0acb of Array['from'](_0x24901d['getChildren']()))_0x1f359d['insert'](_0x3b0acb,_0x850b91,'end');const _0x5a2164=_0x1b065e['rowInsertionIndexes']['includes'](_0x54e86a['row']),_0x455137=_0x1b065e['columnInsertionIndexes']['includes'](_0x54e86a['column']);_0x5a2164||_0x455137||(_0x21c3b7=_0x34c04c['fromRange'](_0x1f359d['createRangeIn'](_0x850b91)));}else _0x3d8c0f&&!_0x4fd871&&(_0x42b4b8=_0x1f359d['createRangeIn'](_0x850b91));}else{const _0x2d5d5b=_0x1f359d['createElement']('tableCellSuggestion'),_0x3f3d15=_0x1f359d['createElement']('tableCellSuggestion');_0x1f359d['wrap'](_0x1f359d['createRangeIn'](_0x850b91),_0x3f3d15),_0x1f359d['insert'](_0x2d5d5b,_0x850b91,0x0);for(const _0x239b5e of Array['from'](_0x24901d['getChildren']()))_0x1f359d['insert'](_0x239b5e,_0x2d5d5b,'end');_0x21c3b7=_0x34c04c['fromRange'](_0x1f359d['createRangeOn'](_0x2d5d5b)),_0x42b4b8=_0x34c04c['fromRange'](_0x1f359d['createRangeOn'](_0x3f3d15));}const _0x2e607e=Array['from'](_0x24901d['getAttributes']())['filter'](([_0x557ca4])=>Oe['includes'](_0x557ca4));_0x1b065e['cells']['push']({'element':_0x850b91,'attributes':_0x2e607e['length']?Object['fromEntries'](_0x2e607e):null}),_0x21c3b7&&_0x1b065e['insertionRanges']['push'](_0x21c3b7),_0x42b4b8&&_0x1b065e['deletionRanges']['push'](_0x42b4b8);},{'priority':'high'}),_0x262ffc['on']('insertColumns',(_0x50cd20,_0x15bb68)=>{const [_0x449e8d,_0x385011={}]=_0x15bb68;if(!_0x1b065e)return;const _0x1dbcc5=_0x385011['at']||0x0,_0x482160=_0x385011['columns']||0x1;_0x1b065e['columnInsertionIndexes']=new Array(_0x482160)['fill'](_0x1dbcc5)['map']((_0x4d5512,_0x2a63e6)=>_0x4d5512+_0x2a63e6);for(const {cell:_0x4cecfc}of _0x262ffc['createTableWalker'](_0x449e8d,{'startColumn':_0x1dbcc5,'endColumn':_0x1dbcc5+_0x482160-0x1}))_0x1b065e['columnInsertionRanges']['push'](_0x166766['model']['createRangeOn'](_0x4cecfc));},{'priority':'low'}),_0x262ffc['on']('insertRows',(_0x472e47,_0x1ca9a6)=>{const [_0x224bf0,_0x16af0b={}]=_0x1ca9a6;if(!_0x1b065e)return;const _0x234b03=_0x16af0b['at']||0x0,_0x41b0c3=_0x16af0b['rows']||0x1;_0x1b065e['rowInsertionIndexes']=new Array(_0x41b0c3)['fill'](_0x234b03)['map']((_0x57afbc,_0x2c5933)=>_0x57afbc+_0x2c5933);for(const {cell:_0x168e89}of _0x262ffc['createTableWalker'](_0x224bf0,{'startRow':_0x234b03,'endRow':_0x234b03+_0x41b0c3-0x1}))_0x1b065e['rowInsertionRanges']['push'](_0x166766['model']['createRangeOn'](_0x168e89));},{'priority':'low'}),_0x55b53d['descriptionFactory']['registerDescriptionCallback'](_0x482919=>{if(_0x482919['subType']&&_0x482919['subType']['startsWith']('tablePaste'))return _0x482919['previous']?{}:{'type':'insertion','content':c(_0x166766['locale'],'*Replace\x20table\x20cells*')};});const _0x51e950=()=>!0x1;for(const _0xe9e880 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x55b53d['_suggestionFactory']['registerCustomCallback']('insertion',_0xe9e880,'join',_0x51e950),_0x55b53d['_suggestionFactory']['registerCustomCallback']('deletion',_0xe9e880,'join',_0x51e950),_0x55b53d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xe9e880,'join',_0x51e950);_0x55b53d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x51e950),_0x55b53d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xa1ecae,_0x5596fd,_0x5d56a1)=>{const _0x4c057d=_0xa1ecae['map'](_0x2afba7=>_0x2afba7['getContainedElement']())['filter'](_0x1bfc4c=>_0x1bfc4c),_0x3fd59e=new Map(_0x4c057d['map'](_0xf5f043=>[_0xf5f043,null]));if(_0x1b065e){for(const {element:_0x4fc942,attributes:_0x25f4dd}of _0x1b065e['cells'])_0x25f4dd&&_0x3fd59e['set'](_0x4fc942,_0x25f4dd);}else{if(_0x5d56a1&&_0x5d56a1['markerAttributes'])for(const [_0x3cfba8,_0x12365e]of Object['entries'](_0x5d56a1['markerAttributes'])){const _0x21c29b=_0x166766['model']['markers']['get'](_0x3cfba8),_0x8b0a03=_0x21c29b?_0x21c29b['getRange']()['getContainedElement']():null;_0x8b0a03&&_0x3fd59e['set'](_0x8b0a03,_0x12365e);}}_0x166766['model']['change'](_0x3fa579=>{for(const [_0x3b6f05,_0x34f2c5]of _0x3fd59e)_0x3fa579['setAttributes']({...Ue,..._0x34f2c5},_0x3b6f05);});});const _0x130920=(_0x388d72,_0x4a1e93)=>{_0x55b53d['_suggestionFactory']['registerCustomCallback'](_0x388d72,'tablePaste',_0x4a1e93,(_0x1d5664,_0x46d005,_0x51917f)=>{_0x166766['model']['change'](_0xef3054=>{const _0x530470=[];for(const _0x37e5ab of _0x1d5664){const _0x31650e=_0x37e5ab['start']['nodeAfter'];_0x31650e['is']('element','tableCellSuggestion')&&_0x530470['push'](_0x31650e);}_0x55b53d['_suggestionFactory']['getSuggestionCallback'](_0x388d72,null,_0x4a1e93)(_0x1d5664,_0x46d005,_0x51917f);for(const _0x36b73b of _0x530470)'$graveyard'!=_0x36b73b['root']['rootName']&&_0xef3054['unwrap'](_0x36b73b);});});};_0x130920('insertion','accept'),_0x130920('insertion','discard'),_0x130920('deletion','accept'),_0x130920('deletion','discard'),_0x55b53d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x278f07=>{const _0x5183c9=_0x278f07['map'](_0x53405a=>_0x53405a['getContainedElement']()),_0x520731=_0x5183c9[0x0]['findAncestor']('table'),{minRow:_0xe22c91,maxRow:_0x322f91}=_0x4f5fc0['_getCoordsForCells'](_0x5183c9);_0x262ffc['removeRows'](_0x520731,{'at':_0xe22c91,'rows':_0x322f91-_0xe22c91+0x1});}),_0x55b53d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x275a9c=>{const _0x51627e=_0x275a9c['map'](_0x3d16fd=>_0x3d16fd['getContainedElement']()),_0x610b61=_0x51627e[0x0]['findAncestor']('table'),{minColumn:_0x3314fb,maxColumn:_0x3f742d}=_0x4f5fc0['_getCoordsForCells'](_0x51627e);_0x262ffc['removeColumns'](_0x610b61,{'at':_0x3314fb,'columns':_0x3f742d-_0x3314fb+0x1});});const _0x53b5f6=(_0x13cd22,_0x4d94cd)=>{if(!_0x4d94cd['subType']||!_0x4d94cd['subType']['startsWith']('tablePaste'))return;const _0x2fb251=_0x4d94cd['attributes']['tablePasteChainId'],_0x275ec1=_0x55b53d['getSuggestions']()['filter'](_0x34ae05=>_0x34ae05['isInContent']&&_0x34ae05['attributes']&&_0x34ae05['attributes']['tablePasteChainId']==_0x2fb251);_0x275ec1['length']&&_0x4d94cd['getAllAdjacentSuggestions']()['length']!=_0x275ec1['length']&&_0x275ec1['reduce']((_0x55f64c,_0x17e1b8)=>(_0x55f64c['next']=_0x17e1b8,_0x17e1b8['previous']=_0x55f64c,_0x17e1b8));};function _0x376b39(_0x2477e6,_0x236493=!0x0){const {id:_0x439943,authorId:_0x4ee001}=_0x55b53d['_splitMarkerName'](_0x2477e6['markerName']),_0x533fbc=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1b1eaa=_0x55b53d['activeMarkers']['includes'](_0x2477e6['markerName']);return _0x1b1eaa&&_0x533fbc['push']('ck-suggestion-marker--active'),{'classes':_0x533fbc,'attributes':{'data-suggestion':_0x439943,'data-author-id':_0x4ee001},'priority':_0x1b1eaa&&_0x236493?0xbc2:0xbb8};}_0x55b53d['on']('suggestionLoaded',_0x53b5f6,{'priority':'high'}),_0x55b53d['on']('suggestionUnloaded',_0x53b5f6,{'priority':'high'}),_0x166766['model']['document']['registerPostFixer'](()=>{let _0x347736=!0x1;const _0x13ad23=Array['from'](_0x166766['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4227b2,data:_0x17e842}of _0x13ad23){const {group:_0x3b40b3,type:_0x586a17,id:_0x143798}=_0x55b53d['_splitMarkerName'](_0x4227b2);if('suggestion'!=_0x3b40b3||'deletion'!=_0x586a17||_0x17e842['oldRange'])continue;if(!_0x55b53d['hasSuggestion'](_0x143798))continue;const _0xbecd4a=_0x55b53d['getSuggestion'](_0x143798)['getRanges'](),_0x1edb19=_0x166766['plugins']['get']('Users')['me'];for(const _0x1e66b5 of _0x55b53d['getSuggestions']()){if(!_0x1e66b5['isInContent']||_0x1e66b5['author']!=_0x1edb19)continue;if('formatBlock'!=_0x1e66b5['type']||'tablePasteCell'!=_0x1e66b5['subType'])continue;if(_0x1e66b5['getRanges']()['every'](_0xcdba6b=>_0xbecd4a['some'](_0x467a2f=>_0x467a2f['containsRange'](_0xcdba6b,!0x0)))){for(const _0x5410b7 of _0x1e66b5['getAllAdjacentSuggestions']())_0x5410b7['isInContent']&&(_0x5410b7['discard'](),_0x347736=!0x0);}}}return _0x347736;}),_0x166766['model']['document']['registerPostFixer'](_0x501a80=>{const _0xe94221=_0x166766['commands']['get']('redo');if(!_0xe94221||!_0xe94221['_createdBatches']['has'](_0x501a80['batch']))return!0x1;let _0x624ae0=!0x1;const _0x494ee4=_0x166766['plugins']['get']('Users')['me'],_0x5b5487=_0x166766['model']['document']['differ']['getChanges'](),_0x121ec7=Array['from'](_0x166766['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x54624f,data:_0x293242})=>{const {group:_0x896303,subType:_0x446db4,authorId:_0x4b7281}=_0x55b53d['_splitMarkerName'](_0x54624f);return'suggestion'==_0x896303&&'tablePaste'==_0x446db4&&_0x4b7281==_0x494ee4['id']&&!_0x293242['oldRange'];});for(const _0x33e4ce of _0x5b5487){if('insert'!=_0x33e4ce['type']||'tableCellSuggestion'!=_0x33e4ce['name']||0x1!=_0x33e4ce['length'])continue;const _0x3388fe=_0x501a80['createRange'](_0x33e4ce['position'],_0x33e4ce['position']['getShiftedBy'](0x1));if(!_0x121ec7['find'](({data:_0x5d8ad6})=>_0x5d8ad6['newRange']['isEqual'](_0x3388fe))){for(const {name:_0x409b6f,data:_0x4d90bc}of _0x121ec7)if(_0x3388fe['containsRange'](_0x4d90bc['newRange'])){_0x501a80['updateMarker'](_0x409b6f,{'range':_0x3388fe}),_0x624ae0=!0x0;break;}}}return _0x624ae0;}),_0x166766['model']['document']['registerPostFixer'](_0xef5386=>{let _0x359c5d=!0x1;const _0x1ed13a=_0x166766['plugins']['get']('Users')['me'],_0x223287=_0x55b53d['getSuggestions']()['filter'](_0x5a6bd6=>_0x5a6bd6['isInContent']&&_0x5a6bd6['author']==_0x1ed13a),_0x386d1c=new Set(),_0x4253e8=new Set();for(const _0x52948b of _0x223287)if('tablePaste'==_0x52948b['subType'])for(const _0x400e30 of _0x52948b['getMarkers']()){const _0x5b855a=_0x400e30['getRange']()['getContainedElement']();if(_0x5b855a){if(_0x5b855a['is']('element','tableCellSuggestion')&&De(_0x5b855a)){_0x52948b['removeMarker'](_0x400e30['name']),_0x386d1c['add'](_0x5b855a),_0x359c5d=!0x0;const _0x2c9225=_0x5b855a['nextSibling'],_0x5d9d41=_0x5b855a['previousSibling'],_0x3790bf=_0x2c9225&&_0x2c9225['is']('element','tableCellSuggestion'),_0x26d52c=_0x5d9d41&&_0x5d9d41['is']('element','tableCellSuggestion');_0x3790bf&&!_0x386d1c['has'](_0x2c9225)&&_0x4253e8['add'](_0x2c9225),_0x26d52c&&!_0x386d1c['has'](_0x5d9d41)&&_0x4253e8['add'](_0x5d9d41);}else _0x5b855a['is']('element','paragraph')&&_0x5b855a['isEmpty']&&(_0x52948b['removeMarker'](_0x400e30['name']),_0x359c5d=!0x0);}}else{if('tablePasteCell'==_0x52948b['subType']){if(!_0x52948b['attributes']||!_0x52948b['attributes']['tablePasteChainId'])continue;const _0x2f747f=_0x52948b['attributes']['markerAttributes'];if(_0x2f747f&&Object['keys'](_0x2f747f)['length'])continue;const _0x367be5=_0x52948b['attributes']['tablePasteChainId'];let _0x329035=!0x0,_0x264618=!0x0;for(const _0x2e810d of _0x223287)if(_0x2e810d['subType']&&_0x2e810d['subType']['startsWith']('tablePaste')){if(!_0x2e810d['attributes']['tablePasteChainId']){_0x264618=!0x1;break;}if(_0x2e810d['id']!=_0x52948b['id']&&_0x2e810d['attributes']['tablePasteChainId']==_0x367be5){_0x329035=!0x1;break;}}_0x264618&&_0x329035&&(_0x52948b['removeMarkers'](),_0x359c5d=!0x0);}}for(const _0x24d2c5 of _0x386d1c)_0xef5386['remove'](_0x24d2c5);for(const _0x5781a4 of _0x4253e8)_0xef5386['unwrap'](_0x5781a4);return _0x359c5d;}),_0x166766['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4b8a6a=>_0x376b39(_0x4b8a6a),'converterPriority':'high'}),_0x166766['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xfc91ec,_0x7944de)=>_0x7944de['options']['showSuggestionHighlights']?_0x376b39(_0xfc91ec,!0x1):null,'converterPriority':'high'});const _0x50fb60=_0x166766['editing']['view'];this['listenTo'](_0x50fb60['document'],'clipboardOutput',(_0x1ce2ad,_0x5d321b)=>{const _0x78923b=[];for(const _0x57ac63 of _0x50fb60['createRangeIn'](_0x5d321b['content'])['getItems']())_0x57ac63['is']('element','suggestion-td')&&_0x78923b['push'](_0x57ac63);_0x50fb60['change'](_0x113083=>{for(const _0x455576 of _0x78923b)_0x113083['move'](_0x113083['createRangeIn'](_0x455576),_0x113083['createPositionBefore'](_0x455576)),_0x113083['remove'](_0x455576);});});}}function De(_0x2d12b6){if(_0x2d12b6['isEmpty'])return!0x0;const _0x24cbff=_0x2d12b6['getChild'](0x0);return _0x24cbff['is']('element','paragraph')&&_0x24cbff['isEmpty'];}function He(_0x38125c,_0x1dc519={},_0x5c3d05){for(const {isAnchor:_0x1998a5,cellHeight:_0xf0c18d,cellWidth:_0x3499b0}of _0x5c3d05['createTableWalker'](_0x38125c,{'includeAllSlots':!0x0,..._0x1dc519}))if(!_0x1998a5||0x1!=_0xf0c18d||0x1!=_0x3499b0)return!0x1;return!0x0;}class Bt extends _0x5575fe{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x110fc5=this['editor']['plugins']['get']('TrackChangesEditing');_0x110fc5['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x110fc5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x110fc5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x110fc5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x110fc5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x110fc5['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3a7d5a,_0x2d7fcb){const _0x46c53d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1dafdc=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1229da=_0x2d7fcb['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x361b6a=_0x1dafdc['getColumnGroupElement'](_0x1229da);let _0x17dfa4=_0x361b6a?_0x1dafdc['getTableColumnsWidths'](_0x361b6a):null,_0x1f954e=_0x1229da['getAttribute']('tableWidth')||null;const _0x116b51=_0x2d7fcb['tableWidth']||_0x1f954e,_0x105057=_0x2d7fcb['columnWidths']||_0x17dfa4,_0x2238e0=this['editor']['plugins']['get']('Users')['me'];for(const _0x4cd945 of _0x46c53d['getSuggestions']()){const _0x1ecef5=_0x4cd945['getContainedElement']();if('resizeTable'===_0x4cd945['subType']&&_0x1ecef5===_0x1229da){_0x4cd945['author']!==_0x2238e0&&_0x4cd945['discard']();const _0x133b76=_0x4cd945['data']['commandParams'];_0x1f954e=_0x133b76[0x0]['tableWidth'],_0x17dfa4=_0x133b76[0x0]['columnWidths'];break;}}_0x3a7d5a({'table':_0x1229da,'tableWidth':_0x116b51,'columnWidths':_0x105057}),_0x46c53d['markBlockFormat'](_0x1229da,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1f954e,'columnWidths':_0x17dfa4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4b159c){if('formatBlock'!=_0x4b159c['type']&&'formatInline'!=_0x4b159c['type'])return;const {data:_0x3295d5}=_0x4b159c;if(_0x3295d5&&'resizeTable'===_0x3295d5['formatGroupId']){const _0x3e38a1='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x3e38a1)};}}}class xt extends _0x5575fe{['afterInit'](){const _0x46d033=this['editor'];_0x46d033['plugins']['has']('Template')&&_0x46d033['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x5575fe{['afterInit'](){const _0x508924=this['editor'];if(!_0x508924['commands']['get']('insertTableOfContents'))return;_0x508924['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3005e1=_0x508924['plugins']['get']('TrackChangesEditing'),_0x21ce66=_0x508924['locale'];_0x3005e1['descriptionFactory']['registerElementLabel']('tableOfContents',_0x245b80=>c(_0x21ce66,'ELEMENT_TABLE_OF_CONTENTS',_0x245b80));}}class Rt extends _0x5575fe{['afterInit'](){const _0x231677=this['editor'];if(!_0x231677['plugins']['has']('Title'))return;const _0x5f59c2=_0x231677['plugins']['get']('TrackChangesEditing');_0x5f59c2['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x231677['locale'],'ELEMENT_TITLE')),_0x231677['model']['document']['registerPostFixer'](_0x5cad2e=>{let _0x3fcc16=!0x1;const _0x1bc5ca=Array['from'](_0x231677['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x34ede3,data:_0x1396f4}of _0x1bc5ca){const {group:_0x75bbe2}=_0x5f59c2['_splitMarkerName'](_0x34ede3);if('suggestion'!==_0x75bbe2||!_0x1396f4['newRange'])continue;const _0x3edae4=_0x1396f4['newRange'],_0x5d1313=_0x3edae4['end']['nodeBefore'];if(!_0x5d1313||!_0x5d1313['is']('element','title-content'))continue;if(!_0x3edae4['start']['isTouching'](_0x3edae4['end']))continue;const _0x3c35a5=_0x231677['model']['schema']['getNearestSelectionRange'](_0x3edae4['end'],'forward');if(_0x3c35a5&&_0x3c35a5['isCollapsed']){const _0x323226=_0x5cad2e['createRange'](_0x3edae4['start'],_0x3c35a5['start']);_0x323226['isEqual'](_0x3edae4)||(_0x5cad2e['updateMarker'](_0x34ede3,{'range':_0x323226}),_0x3fcc16=!0x0);}_0x3fcc16||(_0x5cad2e['removeMarker'](_0x34ede3),_0x3fcc16=!0x0);}return _0x3fcc16;});}}class Tt extends _0x5575fe{['afterInit'](){const _0x1713dd=this['editor'],_0x4a8694=_0x1713dd['plugins']['get']('TrackChangesEditing');_0x1713dd['plugins']['has']('Uploadcare')&&(_0x4a8694['enableCommand']('uploadcare'),_0x1713dd['plugins']['has']('UploadcareImageEdit')&&(_0x4a8694['enableCommand']('uploadcareImageEdit'),_0x4a8694['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4a8694['registerBlockAttribute']('uploadcareImageId'),_0x4a8694['descriptionFactory']['registerDescriptionCallback'](_0x4c20f6=>{if('attribute'!=_0x4c20f6['type'])return;const {data:_0x5eafca}=_0x4c20f6;return _0x5eafca&&'uploadcareImageId'==_0x5eafca['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x5575fe{['afterInit'](){const _0x24bd9c=this['editor'],_0x272a8b=_0x24bd9c['plugins']['get']('TrackChangesEditing');_0x24bd9c['plugins']['has']('UndoEditing')&&(_0x272a8b['enableCommand']('undo'),_0x272a8b['enableCommand']('redo'));}}class Ut extends _0x5575fe{static get['requires'](){return[Ct];}['afterInit'](){const _0x1b96b5=this['editor'];if(!_0x1b96b5['plugins']['has']('TableCaptionEditing'))return;_0x1b96b5['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x5575fe{['tableProperties'];['tableCellProperties'];constructor(_0x4e8186){super(_0x4e8186),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 _0x3fc366=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3e240b of this['tableProperties'])_0x3fc366['enableCommand'](_0x3e240b,(_0x54ee71,_0x3ae1f7)=>{const _0x5e076f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3e240b,[_0x5e076f],this['tableProperties'],'tableProperties',_0x54ee71,_0x3ae1f7);});_0x3fc366['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3fc366['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3fc366['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5792dd,_0xf9db0a)=>this['handleDiscardAction'](this['tableProperties'],_0x5792dd,_0xf9db0a)),_0x3fc366['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x497850 of this['tableCellProperties'])_0x3fc366['enableCommand'](_0x497850,(_0x52a1c6,_0x36e621)=>{const _0x47f4e0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x497850,_0x47f4e0,this['tableCellProperties'],'tableCellProperties',_0x52a1c6,_0x36e621);});_0x3fc366['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3fc366['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3fc366['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x326fca,_0x52c1c9)=>this['handleDiscardAction'](this['tableCellProperties'],_0x326fca,_0x52c1c9)),_0x3fc366['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3fc366['descriptionFactory']['registerDescriptionCallback'](_0x57fdf1=>this['handleSuggestionDescription'](_0x57fdf1));}['_handlePropertyChange'](_0x1253ea,_0x1d14e3,_0x54fa5f,_0x5c6ed0,_0x17be81,_0xb37b63){const _0x1062dd=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xb37b63['batch'],()=>{for(const _0x3e0da7 of _0x1d14e3){if(this['_getSuggestion'](_0x3e0da7,_0x5c6ed0))_0x17be81(_0xb37b63);else{const _0x2ed4b1={};for(const _0x264d41 of _0x54fa5f){const _0x3a0dd8=_0x3e0da7['getAttribute'](_0x264d41);void 0x0!==_0x3a0dd8&&(_0x2ed4b1[_0x264d41]=_0x3a0dd8);}_0x17be81(_0xb37b63),_0x1062dd['markBlockFormat'](_0x3e0da7,{'commandParams':[_0x2ed4b1]},[],_0x5c6ed0);}}});}['handleDiscardAction'](_0x36ebe3,_0x41f62a,_0x35ec6e){const _0x3ecc0a=_0x41f62a[0x0]['start']['nodeAfter'],_0x1b0d88=_0x35ec6e['commandParams'][0x0];this['editor']['model']['change'](_0x285186=>{for(const _0x1eb8f0 of _0x36ebe3)void 0x0!==_0x1b0d88[_0x1eb8f0]?_0x285186['setAttribute'](_0x1eb8f0,_0x1b0d88[_0x1eb8f0],_0x3ecc0a):_0x285186['removeAttribute'](_0x1eb8f0,_0x3ecc0a);});}['handleSuggestionDescription'](_0x21664a){if(_0x21664a['data'])switch(_0x21664a['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'](_0x2bfa81,_0x57d675){const _0x307f94=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5da03f of _0x307f94['getSuggestions']({'skipNotAttached':!0x0})){const _0x901db3=_0x5da03f['getContainedElement']();if(_0x5da03f['subType']===_0x57d675&&_0x901db3===_0x2bfa81)return _0x5da03f;}return null;}}const u='$elementName';class p extends _0x5575fe{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x39fba1,_0x1e5ef8,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(_0x2cb934){super(_0x2cb934),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x453638,_0x287bc5,_0x544bef,_0xb370b5)=>{this['_model']['change'](()=>{for(const _0x193978 of[..._0xb370b5,..._0x544bef])this['_model']['markers']['has'](_0x193978)&&_0x2cb934['editing']['reconvertMarker'](_0x193978);});}),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']=_0x2cb934['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(),_0x2cb934['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2cb934['config']['get']('trackChanges.trackFormatChanges'),_0x2cb934['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2cb934['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2cb934,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1c38de=this['editor'],_0x3f3492=(_0x3d8091,_0x2671b9)=>{if('attribute'!=_0x3d8091)return'ck-suggestion-marker-'+_0x3d8091;const _0x31b37f=_0x2671b9['split']('|')[0x0];return this['_isBlockAttribute'](_0x31b37f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1c38de['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4aaeb3=>{const {id:_0x5729f6,authorId:_0x55380e,type:_0xaffb94,subType:_0x3dc68e}=this['_splitMarkerName'](_0x4aaeb3['markerName']),_0x32ce3a=['ck-suggestion-marker',_0x3f3492(_0xaffb94,_0x3dc68e)];let _0x2cdf15=0xbb8;return this['activeMarkers']['includes'](_0x4aaeb3['markerName'])&&(_0x32ce3a['push']('ck-suggestion-marker--active'),_0x2cdf15=0xbc2),'deletion'==_0xaffb94&&(_0x2cdf15+=0x5),{'classes':_0x32ce3a,'attributes':{'data-suggestion':_0x5729f6,'data-author-id':_0x55380e},'priority':_0x2cdf15};}}),_0x1c38de['conversion']['for']('dataDowncast')['add'](_0x55eb5c=>{_0x55eb5c['on']('addMarker:suggestion',(_0x43e38a,_0x144625,_0x2a6a84)=>{if(!_0x2a6a84['options']['showSuggestionHighlights'])return;const _0x11ee27=_0x144625['item'];if(!_0x11ee27)return;const _0x2c5ab8=_0x2a6a84['mapper']['toViewElement'](_0x11ee27);_0x1c38de['model']['schema']['isObject'](_0x11ee27)&&_0x2c5ab8&&!_0x2c5ab8['getCustomProperty']('widget')&&_0x2c5ab8['is']('containerElement')&&_0x32bc39(_0x2c5ab8,_0x2a6a84['writer']);},{'priority':'high'});}),_0x1c38de['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x525d7a,_0x1b5f66)=>{if(!_0x1b5f66['options']['showSuggestionHighlights'])return null;const {id:_0x35cfc8,authorId:_0x50f985,type:_0x21e625,subType:_0x5f5be7}=this['_splitMarkerName'](_0x525d7a['markerName']);return{'classes':['ck-suggestion-marker',_0x3f3492(_0x21e625,_0x5f5be7)],'priority':0xbb8,'attributes':{'data-suggestion':_0x35cfc8,'data-author-id':_0x50f985}};}});const _0x459360=({showActiveMarkers:_0x1a7775=!0x0,isAttributeSuggestion:_0x31b40c=!0x1}={})=>(_0x591021,_0x53c7f6,_0x43ea08)=>{if(!_0x53c7f6['item'])return;const {id:_0x1df3a4,authorId:_0x10575f}=this['_splitMarkerName'](_0x53c7f6['markerName']);if(_0x31b40c){const _0x46b974=this['_suggestions']['get'](_0x1df3a4),_0x2528cc=this['_getAttributeKey'](_0x46b974);if(!this['_isBlockAttribute'](_0x2528cc))return;}if(_0x53c7f6['item']['is']('selection'))return void _0x43ea08['consumable']['consume'](_0x53c7f6['item'],_0x591021['name']);const _0x4b7299=_0x43ea08['mapper']['toViewElement'](_0x53c7f6['item']);if(_0x53c7f6['item']['is']('element')&&_0x1c38de['model']['schema']['isBlock'](_0x53c7f6['item'])&&!_0x4b7299['getCustomProperty']('addHighlight')){_0x43ea08['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4b7299),_0x43ea08['writer']['setAttribute']('data-suggestion',_0x1df3a4,_0x4b7299),_0x43ea08['writer']['setAttribute']('data-author-id',_0x10575f,_0x4b7299),_0x43ea08['mapper']['bindElementToMarker'](_0x4b7299,_0x53c7f6['markerName']),_0x1a7775&&(this['activeMarkers']['includes'](_0x53c7f6['markerName'])?_0x43ea08['writer']['addClass']('ck-suggestion-marker--active',_0x4b7299):_0x43ea08['writer']['removeClass']('ck-suggestion-marker--active',_0x4b7299));for(const _0x845ed0 of _0x1c38de['model']['createRangeIn'](_0x53c7f6['item'])['getItems']())_0x43ea08['consumable']['consume'](_0x845ed0,_0x591021['name']);_0x43ea08['consumable']['consume'](_0x53c7f6['item'],_0x591021['name']);}};_0x1c38de['conversion']['for']('dataDowncast')['add'](_0x3a52e6=>{_0x3a52e6['on']('addMarker:suggestion:formatBlock',(_0x3c9da3,_0x176f3f,_0x3d3141)=>{_0x3d3141['options']['showSuggestionHighlights']&&_0x459360({'showActiveMarkers':!0x1})(_0x3c9da3,_0x176f3f,_0x3d3141);},{'priority':'highest'});}),_0x1c38de['conversion']['for']('dataDowncast')['add'](_0x113486=>{_0x113486['on']('addMarker:suggestion:attribute',(_0x3bf38c,_0x1bc621,_0x56caf8)=>{_0x56caf8['options']['showSuggestionHighlights']&&_0x459360({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3bf38c,_0x1bc621,_0x56caf8);},{'priority':'highest'});}),_0x1c38de['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xb474c9,_0x51cd13)=>{if(_0x51cd13['options']['showSuggestionHighlights']){const {id:_0x39cbd5,authorId:_0x4d2c4b}=this['_splitMarkerName'](_0xb474c9);return _0xb474c9['includes'](':split')||_0xb474c9['includes'](':merge')?{'group':'suggestion','name':_0xb474c9['substr'](0xb),'attributes':{'data-suggestion':_0x39cbd5,'data-author-id':_0x4d2c4b}}:null;}return{'group':'suggestion','name':_0xb474c9['substr'](0xb)};}}),_0x1c38de['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x250ced,{writer:_0x3ade51})=>{let _0x1e1e66='suggestion:'+_0x250ced['getAttribute']('suggestion-type')+':'+_0x250ced['getAttribute']('id');return _0x250ced['getAttribute']('marker-count')&&(_0x1e1e66+=':'+_0x250ced['getAttribute']('marker-count')),_0x3ade51['createElement']('$marker',{'data-name':_0x1e1e66});}}),_0x1c38de['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1c38de['conversion']['for']('editingDowncast')['add'](_0x35fd5d=>{_0x35fd5d['on']('addMarker:suggestion:formatBlock',_0x459360(),{'priority':'high'});}),_0x1c38de['conversion']['for']('editingDowncast')['add'](_0x1047ce=>{_0x1047ce['on']('addMarker:suggestion:attribute',_0x459360({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1c38de['conversion']['for']('editingDowncast')['add'](_0x19fa14=>{_0x19fa14['on']('removeMarker:suggestion:formatBlock',(_0x3a0a87,_0x55bdf8,_0x52235c)=>{const _0x599fba=_0x52235c['mapper']['markerNameToElements'](_0x55bdf8['markerName']);if(_0x599fba){for(const _0x214244 of _0x599fba)_0x214244['getCustomProperty']('addHighlight')||(_0x52235c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x214244),_0x52235c['writer']['removeAttribute']('data-suggestion',_0x214244),_0x52235c['writer']['removeAttribute']('data-author-id',_0x214244),_0x52235c['mapper']['unbindElementFromMarkerName'](_0x214244,_0x55bdf8['markerName']));}},{'priority':'high'});}),_0x1c38de['conversion']['for']('editingDowncast')['add'](_0x174394=>{_0x174394['on']('removeMarker:suggestion:attribute',(_0x5e8361,_0x8e1992,_0x2f93f1)=>{const _0x4d6c6b=_0x2f93f1['mapper']['markerNameToElements'](_0x8e1992['markerName']);if(!_0x4d6c6b)return;const {id:_0x343a57}=this['_splitMarkerName'](_0x8e1992['markerName']),_0x1b3f88=this['_suggestions']['get'](_0x343a57),_0xb89e32=this['_getAttributeKey'](_0x1b3f88);if(this['_isBlockAttribute'](_0xb89e32)){for(const _0x1605bc of _0x4d6c6b)_0x1605bc['getCustomProperty']('addHighlight')||(_0x2f93f1['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1605bc),_0x2f93f1['writer']['removeAttribute']('data-suggestion',_0x1605bc),_0x2f93f1['writer']['removeAttribute']('data-author-id',_0x1605bc),_0x2f93f1['mapper']['unbindElementFromMarkerName'](_0x1605bc,_0x8e1992['markerName']));}},{'priority':'high'});}),_0x1c38de['model']['document']['registerPostFixer'](_0x2344cb=>{let _0x34280d=!0x1;const _0x5c75f7=Array['from'](_0x1c38de['model']['document']['differ']['getChangedMarkers']()),_0x4d395a=new Set();for(const {name:_0x1be0f9,data:_0x870138}of _0x5c75f7){const {group:_0x43597e,type:_0x4f3242,subType:_0x183573,id:_0x2f8aef}=this['_splitMarkerName'](_0x1be0f9);if('suggestion'!==_0x43597e)continue;const _0x30d152=this['_suggestions']['get'](_0x2f8aef);if(null!=_0x870138['newRange']){'formatInline'==_0x4f3242&&(_0x34280d=_0x34280d||Jt(_0x870138['newRange'],_0x1be0f9,_0x2344cb,_0x1c38de['model']['schema']));const _0x288321='attribute'==_0x4f3242&&this['_isBlockAttribute'](_0x183573['split']('|')[0x0]);if(_0x870138['newRange']['isCollapsed']||'$graveyard'==_0x870138['newRange']['root']['rootName']||'formatBlock'==_0x4f3242&&!Ht(_0x870138['newRange'])||_0x288321&&!Ht(_0x870138['newRange'])||'deletion'==_0x4f3242&&!(!Lt(_0x592980=_0x870138['newRange'])&&!function(_0x298297){return _0x298297['start']['parent']==_0x298297['end']['nodeBefore']&&_0x298297['start']['isAtEnd'];}(_0x592980)))_0x2344cb['removeMarker'](_0x1be0f9),_0x34280d=!0x0;else{if(!_0x30d152||!_0x30d152['isInContent'])continue;if(_0x870138['newRange']&&_0x870138['oldRange']&&_0x870138['newRange']['isEqual'](_0x870138['oldRange']))continue;_0x4d395a['add'](_0x30d152);}}}var _0x592980;return _0x4d395a['size']>0x0&&(_0x34280d=!!this['_joinWithAdjacentSuggestions'](_0x4d395a)||_0x34280d),_0x34280d;}),_0x1c38de['model']['document']['registerPostFixer'](_0x5bcee0=>{let _0x18a164=!0x1;for(const _0x81b154 of _0x1c38de['model']['document']['differ']['getChanges']())if('insert'==_0x81b154['type'])for(const _0x2f49b5 of this['_suggestions']['values']()){if(_0x2f49b5['isMultiRange']||!_0x2f49b5['isInContent'])continue;const _0x2b5a72='formatBlock'==_0x2f49b5['type'],_0x1640c3=this['_getAttributeKey'](_0x2f49b5),_0x21466f=_0x1640c3&&this['_isBlockAttribute'](_0x1640c3);if(!_0x2b5a72&&!_0x21466f)continue;const _0x507047=_0x2f49b5['getFirstRange']();if(_0x507047['start']['parent']!=_0x507047['end']['parent']&&!_0x507047['end']['isAtEnd']){const _0xe4f6a6=_0x1c38de['model']['createPositionAt'](_0x507047['start']['nodeAfter'],'end'),_0x378ba8=_0x1c38de['model']['createRange'](_0x507047['start'],_0xe4f6a6);_0x5bcee0['updateMarker'](_0x2f49b5['getFirstMarker'](),{'range':_0x378ba8}),_0x18a164=!0x0;}}return _0x18a164;}),_0x1c38de['model']['document']['registerPostFixer'](_0x3815dd=>this['_processAttributeChanges'](_0x3815dd)),_0x1c38de['model']['document']['registerPostFixer'](_0x54d462=>!_0x54d462['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x54d462)),_0x1c38de['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1c38de['model']['document']['on']('change:data',(_0x54e65c,_0x1ce905)=>{if(!_0x1ce905['isLocal']||_0x1ce905['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x336cb0=_0x1c38de['model']['document']['differ']['getChanges']();if(0x0==_0x336cb0['length'])return;const _0x43e5f2=[],_0xc7cca9=_0x336cb0['filter'](_0x2482c5=>'attribute'==_0x2482c5['type']),_0x271eea=_0x336cb0['filter'](_0x11be4b=>'insert'==_0x11be4b['type']&&'$text'!=_0x11be4b['name']);for(const _0x533547 of _0xc7cca9)this['_isRegisteredAttribute'](_0x533547['attributeKey'])&&_0x43e5f2['push']({'key':_0x533547['attributeKey'],'newValue':_0x533547['attributeNewValue'],'oldValue':_0x533547['attributeOldValue'],'range':qt(_0x533547['range'],_0x1c38de['model'])});for(const _0x539b74 of _0x271eea){if('rename'!=_0x539b74['action']&&'refresh'!=_0x539b74['action'])continue;const _0x43881c=zt(_0x539b74['position']['nodeAfter'],_0x1c38de['model']),_0x41847f=_0x539b74['before'];'rename'==_0x539b74['action']&&_0x43e5f2['push']({'key':u,'newValue':_0x539b74['name'],'oldValue':_0x41847f['name'],'range':_0x43881c});for(const [_0x1c4bf5,_0x4f6927]of _0x41847f['attributes']){if(!this['_isRegisteredAttribute'](_0x1c4bf5))continue;const _0x1bced6=_0x539b74['attributes']['get'](_0x1c4bf5);_0x4f6927!==_0x1bced6&&_0x43e5f2['push']({'key':_0x1c4bf5,'newValue':_0x1bced6,'oldValue':_0x4f6927,'range':_0x43881c});}for(const [_0x17bdb3,_0x2f6b08]of _0x539b74['attributes'])this['_isRegisteredAttribute'](_0x17bdb3)&&(_0x41847f['attributes']['has'](_0x17bdb3)||_0x43e5f2['push']({'key':_0x17bdb3,'newValue':_0x2f6b08,'oldValue':null,'range':_0x43881c}));}0x0!=_0x43e5f2['length']&&_0x1c38de['model']['enqueueChange'](_0x1ce905,_0xbce79b=>{const _0x87c8ae=_0x1526c3();for(const {range:_0x434ec7,key:_0x196a1c,oldValue:_0x56d902,newValue:_0x32b7a2}of _0x43e5f2)this['markAttributeChange'](_0x434ec7,_0x196a1c,_0x56d902,_0x32b7a2,{'groupId':_0x87c8ae});this['_reduceExistingSuggestions'](_0xbce79b,_0x43e5f2);});},{'priority':'lowest'}),_0x1c38de['model']['markers']['on']('update:suggestion',(_0x34510e,_0x1b9a0b,_0x1a02c7)=>{if(null==_0x1a02c7){const {id:_0x5a7c87}=this['_splitMarkerName'](_0x1b9a0b['name']),_0x3a4783=this['_suggestions']['get'](_0x5a7c87);_0x3a4783&&_0x3a4783['addMarkerName'](_0x1b9a0b['name']);}}),_0x1c38de['model']['document']['on']('change:data',()=>{const _0x778cea=Array['from'](_0x1c38de['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1a6f4d=>'suggestion'===this['_splitMarkerName'](_0x1a6f4d['name'])['group']);if(0x0===_0x778cea['length'])return;_0x778cea['sort']((_0x259456,_0x4f4338)=>{const _0x352658=_0x259456['data']['oldRange'],_0xeaa8e1=_0x4f4338['data']['oldRange'];return null===_0x352658&&null===_0xeaa8e1?0x0:null===_0x352658&&null!==_0xeaa8e1?-0x1:null!==_0x352658&&null===_0xeaa8e1?0x1:_0x352658['start']['isBefore'](_0xeaa8e1['start'])?-0x1:0x1;});const _0x5c6ed4=new Set(),_0x52fed4=new Set();for(const {name:_0x4a91be,data:_0x4f4986}of _0x778cea){const {id:_0x2ea65b}=this['_splitMarkerName'](_0x4a91be);if(null===_0x4f4986['oldRange']){const _0x3e860f=this['_handleNewSuggestionMarker'](_0x4a91be);_0x52fed4['add'](_0x3e860f);}else{const _0x4037f0=this['_suggestions']['get'](_0x2ea65b);null!==_0x4f4986['newRange']||_0x4037f0['isInContent']?(_0x5c6ed4['add'](_0x4037f0['head']),_0x52fed4['add'](_0x4037f0)):this['_removeSuggestion'](_0x4037f0);}}_0x52fed4['size']>0x0&&this['_refreshSuggestionsChain'](_0x52fed4);for(const _0x39846e of _0x5c6ed4)this['fire']('suggestionChanged',_0x39846e);}),_0x1c38de['model']['on']('applyOperation',(_0x9ae535,_0x5d216c)=>{const _0x5ce879=_0x5d216c[0x0];if(!this['_suggestions']['size'])return;if(!_0x5ce879['isDocumentOperation'])return;if(_0x5ce879['batch']['isUndo']||!_0x5ce879['batch']['isLocal'])return;let _0x5b03c6,_0x3d12f1;switch(_0x5ce879['type']){case'insert':_0x5b03c6=_0x1c38de['model']['createPositionAt'](_0x5ce879['position']),_0x3d12f1=_0x5b03c6['getShiftedBy'](_0x5ce879['howMany']);break;case'split':_0x5b03c6=_0x1c38de['model']['createPositionAt'](_0x5ce879['splitPosition']),_0x3d12f1=_0x1c38de['model']['createPositionAt'](_0x5ce879['moveTargetPosition']);break;case'move':_0x5b03c6=_0x1c38de['model']['createPositionAt'](_0x5ce879['targetPosition']),_0x3d12f1=_0x5b03c6['getShiftedBy'](_0x5ce879['howMany']);break;default:return;}const _0xdf2259=_0x1c38de['model']['createRange'](_0x5b03c6,_0x3d12f1);_0x1c38de['model']['change'](()=>{for(const {suggestion:_0x114f3d,meta:_0x549599}of this['_findSuggestions'](_0xdf2259)){if(_0x114f3d['isMultiRange'])continue;if('formatInline'==_0x114f3d['type'])continue;const _0x3f7fb4=this['_getAttributeKey'](_0x114f3d);if(_0x3f7fb4&&this['_isBlockAttribute'](_0x3f7fb4)&&'split'!=_0x5ce879['type'])continue;const _0x36c36a=_0x114f3d['data']&&_0x114f3d['data']['multipleBlocks'];('formatBlock'!=_0x114f3d['type']||'split'==_0x5ce879['type']&&!_0x36c36a)&&(_0x549599['containsRangeInObject']||'insertion'==_0x114f3d['type']&&_0x549599['isOwn']||_0x114f3d['getFirstRange']()['containsRange'](_0xdf2259)&&this['_breakSuggestionMarker'](_0x114f3d,_0x5b03c6,_0x3d12f1));}});},{'priority':'lowest'}),_0x1c38de['model']['on']('deleteContent',(_0x17d3b9,_0x20fec3)=>{const _0x2d26b2=_0x20fec3[0x0],_0x358b21=_0x20fec3[0x1];if(_0x358b21&&_0x358b21['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2d26b2['isCollapsed'])return;const _0x450447=_0x1c38de['model']['schema'],{start:_0x52010a,end:_0x1c5e66}=_0x2d26b2['getFirstRange'](),_0x16ea5b=_0x52010a['nodeAfter']&&_0x450447['isLimit'](_0x52010a['nodeAfter'])?null:_0x450447['getNearestSelectionRange'](_0x52010a,'forward'),_0xff77f6=_0x1c5e66['nodeBefore']&&_0x450447['isLimit'](_0x1c5e66['nodeBefore'])?null:_0x450447['getNearestSelectionRange'](_0x1c5e66,'backward'),_0x348ed3=_0x1c38de['model']['createRange'](_0x16ea5b?_0x16ea5b['start']:_0x52010a,_0xff77f6?_0xff77f6['end']:_0x1c5e66);_0x1c38de['model']['change'](_0x159e6b=>{this['markDeletion'](_0x348ed3);const _0x4d8b68=_0x1c38de['model']['schema']['getNearestSelectionRange'](_0x348ed3['start']);_0x2d26b2['is']('documentSelection')?_0x159e6b['setSelection'](_0x4d8b68):_0x2d26b2['setTo'](_0x4d8b68);}),_0x17d3b9['stop']();},{'priority':_0x2dda8a['normal']+0xa}),_0x1c38de['model']['on']('insertContent',(_0x272c77,_0x26165e)=>{const _0x2c8f6f=_0x26165e[_0x26165e['length']-0x1];_0x2c8f6f&&_0x2c8f6f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1c38de['model']['change'](()=>{let _0x1768d2=_0x1c38de['model']['insertContent'](_0x26165e[0x0],_0x26165e[0x1],_0x26165e[0x2],{'forceDefaultExecution':!0x0});if(!_0x1768d2)return;_0x272c77['return']=_0x1768d2['clone']();const _0x49ff4c=_0x1768d2['end']['nodeBefore'],_0x388810=_0x1c38de['model']['schema'];_0x49ff4c&&_0x388810['isBlock'](_0x49ff4c)&&!_0x388810['isObject'](_0x49ff4c)&&(_0x1768d2=_0x1c38de['model']['createRange'](_0x1768d2['start'],_0x1c38de['model']['createPositionAt'](_0x49ff4c,'end'))),this['markInsertion'](_0x1768d2);}),_0x272c77['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5ccc21=new x(_0x1c38de,this['_suggestions']);_0x1c38de['commands']['add']('acceptSuggestion',_0x5ccc21),this['enableCommand']('acceptSuggestion');const _0x4525eb=new O(_0x1c38de,this['_suggestions']);_0x1c38de['commands']['add']('discardSuggestion',_0x4525eb),this['enableCommand']('discardSuggestion'),_0x1c38de['commands']['add']('acceptAllSuggestions',new R(_0x1c38de,_0x5ccc21,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1c38de['commands']['add']('discardAllSuggestions',new R(_0x1c38de,_0x4525eb,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1c38de['commands']['add']('acceptSelectedSuggestions',new E(_0x1c38de,_0x5ccc21,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1c38de['commands']['add']('discardSelectedSuggestions',new E(_0x1c38de,_0x4525eb,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x23e776=_0x1c38de['plugins']['get']('CommentsRepository');this['listenTo'](_0x23e776,'addComment',(_0x1681e1,{threadId:_0x5f0e90})=>{const _0x414e6a=this['_suggestions']['get'](_0x5f0e90);_0x414e6a&&_0x414e6a['commentThread']&&0x1===_0x414e6a['commentThread']['length']&&this['_updateSuggestionData'](_0x5f0e90,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x23e776,'removeComment',(_0x51279d,{threadId:_0x1d3d34})=>{const _0x44eeee=this['_suggestions']['get'](_0x1d3d34);_0x44eeee&&_0x44eeee['commentThread']&&!_0x44eeee['commentThread']['length']&&this['_updateSuggestionData'](_0x1d3d34,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3c4ce5){const _0x9c4cb6=_0x42ceec([0x49,0x58,0x51,0x69,0x45,0x33,0x73,0x44,0x6d,0x5a,0x4c,0x74,0x35,0x68,0x39,0x4a,0x4e,0x76,0x47,0x56,0x71,0x79,0x42,0x61,0x78,0x48,0x31,0x65,0x59,0x7a,0x4b,0x52,0x67,0x43,0x38,0x46,0x75,0x77,0x30,0x62,0x72,0x6a,0x70,0x6c,0x54,0x6b,0x41,0x63,0x64,0x6e,0x66,0x34,0x4f,0x57,0x50,0x6f,0x37,0x32,0x36,0x4d,0x55,0x53]),_0x11c329=0x689215ba,_0x7d0cc5=0x68957c3a^_0x11c329,_0x2309f7=window[_0x42ceec([0x44,0x61,0x74,0x65])][_0x42ceec([0x6e,0x6f,0x77])](),_0x586245=_0x3c4ce5[_0x42ceec([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x120145=new window[(_0x42ceec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x521e22=>{_0x586245[_0x42ceec([0x6f,0x6e,0x63,0x65])](_0x42ceec([0x72,0x65,0x61,0x64,0x79]),_0x521e22);}),_0x390183={[_0x42ceec([0x6b,0x74,0x79])]:_0x42ceec([0x45,0x43]),[_0x42ceec([0x75,0x73,0x65])]:_0x42ceec([0x73,0x69,0x67]),[_0x42ceec([0x63,0x72,0x76])]:_0x42ceec([0x50,0x2d,0x32,0x35,0x36]),[_0x42ceec([0x78])]:_0x42ceec([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]),[_0x42ceec([0x79])]:_0x42ceec([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]),[_0x42ceec([0x61,0x6c,0x67])]:_0x42ceec([0x45,0x53,0x32,0x35,0x36])},_0x3fd898=_0x586245[_0x42ceec([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x42ceec([0x67,0x65,0x74])](_0x42ceec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x40169d(){let _0x178e13,_0x1efd1f=null,_0x454e3a=null;try{if(_0x3fd898==_0x42ceec([0x47,0x50,0x4c]))return _0x42ceec([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x178e13=_0x454fa4(),!_0x178e13)return _0x42ceec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x178e13[_0x42ceec([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x454e3a=_0x5763fa(_0x178e13[_0x42ceec([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x178e13[_0x42ceec([0x6a,0x74,0x69])])),await _0x1b6216()?_0x31212a()?_0x10377e()?_0x42ceec([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4b0588()?(_0x178e13[_0x42ceec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42ceec([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1efd1f=_0x359daf(_0x42ceec([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x178e13[_0x42ceec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42ceec([0x74,0x72,0x69,0x61,0x6c])&&(_0x1efd1f=_0x359daf(_0x42ceec([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22754d()):_0x42ceec([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x42ceec([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x42ceec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x42ceec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x10377e(){const _0x433f9a=[_0x42ceec([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x42ceec([0x74,0x72,0x69,0x61,0x6c])][_0x42ceec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x178e13[_0x42ceec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2309f7/0x3e8:0xe10*_0x7d0cc5;return _0x178e13[_0x42ceec([0x65,0x78,0x70])]<_0x433f9a;}function _0x31212a(){const _0x48d3c2=_0x178e13[_0x42ceec([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x48d3c2)return!0x1;if(_0x48d3c2[_0x42ceec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42ceec([0x2a])))return!0x0;if(_0x48d3c2[_0x42ceec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42ceec([0x54,0x43])))return!0x0;if(_0x48d3c2[_0x42ceec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42ceec([0x52,0x54,0x43]))){if(_0x129a2e())return!0x0;if(_0x2f429c()||_0xb9373())return!0x0;}return!0x1;}function _0x4b0588(){const _0x329e32=_0x178e13[_0x42ceec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x329e32||0x0==_0x329e32[_0x42ceec([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3fc003}=new URL(window[_0x42ceec([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x329e32[_0x42ceec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fc003))return!0x0;const _0x4410fd=_0x3fc003[_0x42ceec([0x73,0x70,0x6c,0x69,0x74])](_0x42ceec([0x2e]));return _0x329e32[_0x42ceec([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43cda9=>_0x43cda9[_0x42ceec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42ceec([0x2a])))[_0x42ceec([0x6d,0x61,0x70])](_0xd383cc=>_0xd383cc[_0x42ceec([0x73,0x70,0x6c,0x69,0x74])](_0x42ceec([0x2e])))[_0x42ceec([0x73,0x6f,0x6d,0x65])](_0x56c4e2=>_0x4410fd[_0x42ceec([0x65,0x76,0x65,0x72,0x79])]((_0x1cb095,_0x174f46)=>_0x56c4e2[_0x174f46]===_0x1cb095||_0x56c4e2[_0x174f46]===_0x42ceec([0x2a])));}function _0x22754d(){return _0x1efd1f&&_0x454e3a?new window[(_0x42ceec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3bce31,_0x2fb972)=>{_0x1efd1f[_0x42ceec([0x74,0x68,0x65,0x6e])](_0x3bce31,_0x2fb972),_0x454e3a[_0x42ceec([0x74,0x68,0x65,0x6e])](_0x5bd541=>{_0x5bd541!=_0x42ceec([0x56,0x61,0x6c,0x69,0x64])&&_0x3bce31(_0x5bd541);},_0x2fb972);}):_0x1efd1f||_0x454e3a||_0x42ceec([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5763fa(_0x165ddf,_0x4cc7a1){return new window[(_0x42ceec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x308498=>{if(_0x440266())return _0x308498(_0x42ceec([0x56,0x61,0x6c,0x69,0x64]));_0x5558be(),_0x586245[_0x42ceec([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x42ceec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2527eb=!0x1;const _0x657add=_0x1526c3();function _0x4eee01(_0x1f3a50){return!!_0x1f3a50&&(typeof _0x1f3a50===_0x42ceec([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1f3a50===_0x42ceec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1f3a50[_0x42ceec([0x74,0x68,0x65,0x6e])]===_0x42ceec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1f3a50[_0x42ceec([0x63,0x61,0x74,0x63,0x68])]===_0x42ceec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2c9632(_0x467c7d){_0x4d63e2(_0x467c7d)[_0x42ceec([0x74,0x68,0x65,0x6e])](_0x5a1426=>{if(!_0x5a1426||_0x5a1426[_0x42ceec([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x42ceec([0x6f,0x6b]))return _0x42ceec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xe92941(_0x3a14f7(_0x657add+_0x4cc7a1))!=_0x5a1426[_0x42ceec([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x42ceec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x42ceec([0x56,0x61,0x6c,0x69,0x64]);})[_0x42ceec([0x74,0x68,0x65,0x6e])](_0x4a94b9=>(_0x11e2e0(),_0x4a94b9),()=>{const _0xb93ee5=_0x4acc10();return null==_0xb93ee5?(_0x11e2e0(),_0x42ceec([0x56,0x61,0x6c,0x69,0x64])):_0x42ceec(_0x2309f7-_0xb93ee5>(0x4c9e91ba^_0x11c329)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x42ceec([0x74,0x68,0x65,0x6e])](_0x308498)[_0x42ceec([0x63,0x61,0x74,0x63,0x68])](()=>{_0x308498(_0x42ceec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x405dc8=0x68a4fb3a^_0x11c329;function _0x11e2e0(){const _0x483b6a=_0x42ceec([0x6c,0x6c,0x63,0x74,0x2d])+_0xe92941(_0x3a14f7(_0x165ddf)),_0x53c90e=_0x5ce67a(_0xe92941(window[_0x42ceec([0x4d,0x61,0x74,0x68])][_0x42ceec([0x63,0x65,0x69,0x6c])](_0x2309f7/_0x405dc8)));window[_0x42ceec([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42ceec([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x483b6a,_0x53c90e);}function _0x4acc10(){const _0x6c8a71=_0x42ceec([0x6c,0x6c,0x63,0x74,0x2d])+_0xe92941(_0x3a14f7(_0x165ddf)),_0x465dad=window[_0x42ceec([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42ceec([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6c8a71);return _0x465dad?window[_0x42ceec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ce67a(_0x465dad),0x10)*_0x405dc8:null;}function _0x4d63e2(_0x35da3e){return new window[(_0x42ceec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x49b733,_0x197b2f)=>{_0x35da3e[_0x42ceec([0x74,0x68,0x65,0x6e])](_0x49b733,_0x197b2f),window[_0x42ceec([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x197b2f,0x6893c17a^_0x11c329);});}}_0x586245[_0x42ceec([0x6f,0x6e])](_0x42ceec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x201004,_0x551453)=>{if(_0x551453[0x0]!=_0x165ddf)return _0x308498(_0x42ceec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x551453[0x1]={..._0x551453[0x1],[_0x42ceec([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x657add};},{[_0x42ceec([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42ceec([0x68,0x69,0x67,0x68])}),_0x586245[_0x42ceec([0x6f,0x6e])](_0x42ceec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x108537=>{_0x4eee01(_0x108537[_0x42ceec([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2527eb=!0x0,_0x2c9632(_0x108537[_0x42ceec([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x42ceec([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42ceec([0x6c,0x6f,0x77])}),_0x120145[_0x42ceec([0x74,0x68,0x65,0x6e])](()=>{_0x2527eb||_0x308498(_0x42ceec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x440266(){return _0x586245[_0x42ceec([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42ceec([0x76,0x69,0x65,0x77])][_0x42ceec([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x42ceec([0x61,0x75,0x74,0x6f]);}function _0x5558be(){_0x586245[_0x42ceec([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42ceec([0x76,0x69,0x65,0x77])][_0x42ceec([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42ceec([0x61,0x75,0x74,0x6f]);}}function _0x359daf(_0x69bcc8){const _0x2e0a50=[new window[(_0x42ceec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fb830=>setTimeout(_0x3fb830,0x689b2b76^_0x11c329)),_0x120145[_0x42ceec([0x74,0x68,0x65,0x6e])](()=>new window[(_0x42ceec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3445d1=>{let _0x4c1e04=0x0;_0x586245[_0x42ceec([0x6d,0x6f,0x64,0x65,0x6c])][_0x42ceec([0x6f,0x6e])](_0x42ceec([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x691fea,_0x579091)=>{_0x579091[0x0][_0x42ceec([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4c1e04++,_0x4c1e04==(0x68921442^_0x11c329)&&(_0x3445d1(),_0x691fea[_0x42ceec([0x6f,0x66,0x66])]());});}))];return window[_0x42ceec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42ceec([0x72,0x61,0x63,0x65])](_0x2e0a50)[_0x42ceec([0x74,0x68,0x65,0x6e])](()=>_0x69bcc8);}async function _0x5479a2(){await _0x120145,_0x586245[_0x42ceec([0x6d,0x6f,0x64,0x65,0x6c])][_0x42ceec([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d7225,_0x586245[_0x42ceec([0x6d,0x6f,0x64,0x65,0x6c])][_0x42ceec([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d7225,_0x586245[_0x42ceec([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x42ceec([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x129a2e(){return _0x3d947a(_0x42ceec([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4e4dec(_0x42ceec([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x42ceec([0x73,0x74,0x61,0x74,0x65])]==_0x42ceec([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2f429c(){return _0x3d947a(_0x42ceec([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 _0xb9373(){return _0x3d947a(_0x42ceec([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x54fadf(_0x4ed0df){const _0x48b43a=_0xc25a();_0x586245[_0x48b43a]=_0x42ceec([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ed0df,_0x4ed0df!=_0x42ceec([0x56,0x61,0x6c,0x69,0x64])&&_0x5479a2();}function _0xc25a(){const _0x1933e7=window[_0x42ceec([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x42ceec([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x42ceec([0x6e,0x6f,0x77])]())[_0x42ceec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x42ceec([0x2e]),'');let _0x3ce2e3=_0x42ceec([0x49]);for(let _0x2b403e=0x0;_0x2b403e<_0x1933e7[_0x42ceec([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b403e+=0x2){let _0xc266ce=window[_0x42ceec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1933e7[_0x42ceec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b403e,_0x2b403e+0x2));_0xc266ce>=_0x9c4cb6[_0x42ceec([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xc266ce-=_0x9c4cb6[_0x42ceec([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ce2e3+=_0x9c4cb6[_0xc266ce];}return _0x3ce2e3;}function _0x454fa4(){const _0x390ed2=_0x3fd898[_0x42ceec([0x73,0x70,0x6c,0x69,0x74])](_0x42ceec([0x2e]));if(0x3!=_0x390ed2[_0x42ceec([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2403b0(_0x390ed2[0x1]);function _0x2403b0(_0x3aa93f){const _0x42e24a=_0x16c556(_0x3aa93f);return _0x42e24a&&_0x274cb1()?_0x42e24a:null;function _0x274cb1(){const _0x3992e3=_0x42e24a[_0x42ceec([0x6a,0x74,0x69])],_0x56f455=window[_0x42ceec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3992e3[_0x42ceec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3992e3[_0x42ceec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x170f21={..._0x42e24a,[_0x42ceec([0x6a,0x74,0x69])]:_0x3992e3[_0x42ceec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3992e3[_0x42ceec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x170f21[_0x42ceec([0x76,0x63])],_0x3a14f7(_0x170f21)==_0x56f455;}}}async function _0x1b6216(){let _0x3704d2=!0x0;try{const _0x4dd036=_0x3fd898[_0x42ceec([0x73,0x70,0x6c,0x69,0x74])](_0x42ceec([0x2e])),[_0x2e73f1,_0x3c3473,_0xf4d7bb]=_0x4dd036;return _0x512e99(_0x2e73f1),await _0x131c0c(_0x2e73f1,_0x3c3473,_0xf4d7bb),_0x3704d2;}catch{return!0x1;}function _0x512e99(_0x290f44){const _0x506333=_0x16c556(_0x290f44);_0x506333&&_0x506333[_0x42ceec([0x61,0x6c,0x67])]==_0x42ceec([0x45,0x53,0x32,0x35,0x36])||(_0x3704d2=!0x1);}async function _0x131c0c(_0x59918f,_0xb261e8,_0x45f42d){const _0xaa23e8=window[_0x42ceec([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x42ceec([0x66,0x72,0x6f,0x6d])](_0x1daca9(_0x45f42d),_0x2fc713=>_0x2fc713[_0x42ceec([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3e8a43=new window[(_0x42ceec([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x42ceec([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x59918f+_0x42ceec([0x2e])+_0xb261e8),_0x7cef94=window[_0x42ceec([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x42ceec([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x7cef94)return;const _0x4cdbe9=await _0x7cef94[_0x42ceec([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x42ceec([0x6a,0x77,0x6b]),_0x390183,{[_0x42ceec([0x6e,0x61,0x6d,0x65])]:_0x42ceec([0x45,0x43,0x44,0x53,0x41]),[_0x42ceec([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x42ceec([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x42ceec([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x7cef94[_0x42ceec([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x42ceec([0x6e,0x61,0x6d,0x65])]:_0x42ceec([0x45,0x43,0x44,0x53,0x41]),[_0x42ceec([0x68,0x61,0x73,0x68])]:{[_0x42ceec([0x6e,0x61,0x6d,0x65])]:_0x42ceec([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4cdbe9,_0xaa23e8,_0x3e8a43)||(_0x3704d2=!0x1);}}function _0x16c556(_0x5eaac1){return _0x5eaac1[_0x42ceec([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x42ceec([0x65,0x79]))?JSON[_0x42ceec([0x70,0x61,0x72,0x73,0x65])](_0x1daca9(_0x5eaac1)):null;}function _0x1daca9(_0x3670c9){return window[_0x42ceec([0x61,0x74,0x6f,0x62])](_0x3670c9[_0x42ceec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x42ceec([0x2b]))[_0x42ceec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x42ceec([0x2f])));}function _0x3a14f7(_0x3f55d4){let _0x86ebb7=0x1505;function _0x4b3119(_0x22db2b){for(let _0x283500=0x0;_0x283500<_0x22db2b[_0x42ceec([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x283500++){const _0x357578=_0x22db2b[_0x42ceec([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x283500);_0x86ebb7=(_0x86ebb7<<0x5)+_0x86ebb7+_0x357578,_0x86ebb7&=_0x86ebb7;}}function _0x2dfd63(_0x58183a){Array[_0x42ceec([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x58183a)?_0x58183a[_0x42ceec([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2dfd63):_0x58183a&&typeof _0x58183a==_0x42ceec([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x42ceec([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x58183a)[_0x42ceec([0x73,0x6f,0x72,0x74])]()[_0x42ceec([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x232b9b,_0x55da90])=>{_0x4b3119(_0x232b9b),_0x2dfd63(_0x55da90);}):_0x4b3119(window[_0x42ceec([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x58183a));}return _0x2dfd63(_0x3f55d4),_0x86ebb7>>>0x0;}function _0xe92941(_0x1a79ce){return _0x1a79ce[_0x42ceec([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x42ceec([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x42ceec([0x30]));}function _0x5ce67a(_0x11ec50){return _0x11ec50[_0x42ceec([0x73,0x70,0x6c,0x69,0x74])]('')[_0x42ceec([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x42ceec([0x6a,0x6f,0x69,0x6e])]('');}function _0x3d947a(_0x26bb06){return _0x586245[_0x42ceec([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x42ceec([0x68,0x61,0x73])](_0x26bb06);}function _0x4e4dec(_0xc34ebe){return _0x586245[_0x42ceec([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x42ceec([0x67,0x65,0x74])](_0xc34ebe);}function _0x5d7225(){}function _0x42ceec(_0xd01e46){return _0xd01e46['map'](_0x16dc7b=>String['fromCharCode'](_0x16dc7b))['join']('');}_0x54fadf(await _0x40169d());}(this);}set['adapter'](_0x26b562){if(this['_adapter'])throw new _0x840840('track-changes-adapter-already-set',this);this['_adapter']=_0x26b562;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3cc5eb=!0x1,toJSON:_0x44e0bb=!0x1}={}){const _0x2251fa=[];for(const _0x4d9631 of this['_suggestions']['values']())_0x3cc5eb&&!_0x4d9631['isInContent']||_0x2251fa['push'](_0x4d9631);return _0x44e0bb?_0x2251fa['map'](_0x346e81=>_0x346e81['toJSON']()):_0x2251fa;}['getSuggestion'](_0xdb1645){const _0x2fc52f=this['_suggestions']['get'](_0xdb1645);if(!_0x2fc52f)throw new _0x840840('track-changes-suggestion-not-found',this);return _0x2fc52f;}['hasSuggestion'](_0x1040de){return this['_suggestions']['has'](_0x1040de);}['addSuggestionData'](_0x422bf0){const {authorId:_0x5b1639,id:_0x482d04,originalSuggestionId:_0xe3fd45,attributes:_0x3aa408}=_0x422bf0,[_0x3674c7,_0x5266f8]=_0x422bf0['type']['split'](':'),_0x5fe1e3=this['_suggestions']['get'](_0x482d04)||this['_createSuggestion'](_0x3674c7,_0x5266f8,_0x482d04,_0x5b1639,_0x3aa408,_0xe3fd45);if(this['_addThreadToSuggestion'](_0x5fe1e3),this['_checkSuggestionCorrectness'](_0x5fe1e3,_0x3674c7,_0x5266f8||null,_0x5b1639),_0x5fe1e3['createdAt']=_0x422bf0['createdAt'],_0x5fe1e3['_isDataLoaded']=!0x0,_0x3aa408&&_0x3aa408['@external']){const _0x26372b=_0x3aa408['@external'],_0x5d2365=this['_getExternalAuthor'](_0x26372b['authorName']);_0x5fe1e3['authoredAt']=_0x26372b['createdAt'],_0x5fe1e3['author']=_0x5d2365,_0x5fe1e3['isExternal']=!0x0;}else _0x5fe1e3['authoredAt']=_0x422bf0['createdAt'];switch(_0x422bf0['data']&&(_0x5fe1e3['data']=_0x422bf0['data']),_0x422bf0['attributes']&&(_0x5fe1e3['attributes']=_0x422bf0['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5fe1e3['_saved']=!0x0),this['_suggestionState']['get'](_0x5fe1e3)){case'notReady':this['_suggestionState']['set'](_0x5fe1e3,'dataReady');break;case'markerReady':_0x5fe1e3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5fe1e3])),this['_refreshSuggestionsChain'](new Set([_0x5fe1e3])),this['_suggestionState']['set'](_0x5fe1e3,'ready'),this['fire']('suggestionLoaded',_0x5fe1e3)):this['_suggestionState']['set'](_0x5fe1e3,'removed');}return _0x5fe1e3;}['acceptSuggestion'](_0x2c2951){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5b148a of _0x2c2951['getAllAdjacentSuggestions']())_0x5b148a['accept']();});});}['discardSuggestion'](_0x23835d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x30d6b9 of _0x23835d['getAllAdjacentSuggestions']())_0x30d6b9['discard']();});});}['enableCommand'](_0x58a8de,_0x73c6){const _0x4ccbc7=this['editor']['commands']['get'](_0x58a8de);if(!_0x4ccbc7)throw new _0x840840('track-changes-command-not-found',this,{'commandName':_0x58a8de});if(this['_enabledCommands']['has'](_0x4ccbc7))throw new _0x840840('track-changes-enable-command-twice',this,{'commandName':_0x58a8de});this['_enabledCommands']['add'](_0x4ccbc7),_0x73c6&&_0x4ccbc7['on']('execute',(_0xb0dce8,_0x46a38e)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x46a38e['length']>0x0&&_0x46a38e[_0x46a38e['length']-0x1]&&_0x46a38e[_0x46a38e['length']-0x1]['forceDefaultExecution']?_0x46a38e['pop']():(_0xb0dce8['return']=_0x73c6((..._0xdb9cdf)=>_0x4ccbc7['execute'](..._0xdb9cdf,{'forceDefaultExecution':!0x0}),..._0x46a38e),_0xb0dce8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3869fd){let _0x474a93,_0x251546;const _0x175109=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x474a93=_0x3869fd();}catch(_0x49bf94){_0x251546=_0x49bf94;}return _0x175109||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x251546&&_0x840840['rethrowUnexpectedError'](_0x251546,this),_0x474a93;}['markInsertion'](_0x5b8b6a,_0xe25219=null,_0x533314={}){if(_0x5b8b6a['isCollapsed'])return null;const _0x3b910b=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x533314['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x12da31,meta:_0x1a46f2}of this['_findSuggestions'](_0x5b8b6a,'insertion'))if(_0x1a46f2['isOwn']){if(!_0x1a46f2['isNextTo']){if(_0x1a46f2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x12da31,_0x533314))continue;return _0x12da31;}if(Xt(_0x12da31,_0x533314))return _0x12da31;this['_breakSuggestionMarker'](_0x12da31,_0x5b8b6a['start'],_0x5b8b6a['end']);break;}if(_0xe25219==_0x12da31['subType']&&Xt(_0x12da31,_0x533314)){const _0x58cb06=_0x12da31['getFirstRange']();return _0x58cb06['start']['isEqual'](_0x5b8b6a['end'])?this['_setSuggestionRange'](_0x12da31,this['_model']['createRange'](_0x5b8b6a['start'],_0x58cb06['end'])):this['_setSuggestionRange'](_0x12da31,this['_model']['createRange'](_0x58cb06['start'],_0x5b8b6a['end'])),_0x12da31;}}const _0x3669d5=_0x1526c3(),_0x3ceaee=_0x3b910b['id'],_0x449813=_0xe25219?'insertion:'+_0xe25219:'insertion',_0x20dd02=this['_setSuggestionData']({'id':_0x3669d5,'type':_0x449813,'createdAt':new Date(),'authorId':_0x3ceaee,'attributes':_0x533314});return this['_addSuggestionMarker'](_0x449813,_0x3669d5,_0x3ceaee,_0x5b8b6a),_0x20dd02;}['markMultiRangeInsertion'](_0x4c9cbe,_0x44d428='multi',_0x5f2848={}){const _0x422823=this['editor']['plugins']['get']('Users')['me'],_0x5241b5=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x44d428,'join');this['_trackingSessionId']&&(_0x5f2848['trackingSessionId']=this['_trackingSessionId']);for(const _0x5f1d19 of this['getSuggestions']())if(_0x5f1d19['author']['id']==_0x422823['id']&&'insertion'==_0x5f1d19['type']&&_0x5f1d19['subType']==_0x44d428&&Xt(_0x5f1d19,_0x5f2848)&&(_0x5241b5(_0x5f1d19['getRanges'](),_0x4c9cbe)||_0x5241b5(_0x4c9cbe,_0x5f1d19['getRanges']()))){for(const _0x2c74f1 of _0x4c9cbe)_0x5f1d19['addRange'](_0x2c74f1);return _0x5f1d19;}for(const {suggestion:_0x24c977,meta:_0x16dadb}of this['_findSuggestions'](_0x4c9cbe,'insertion')){if(!_0x16dadb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x16dadb['containsRangeInObject'])continue;if(!Xt(_0x24c977,_0x5f2848))continue;let _0x37a8ee=!0x0;for(const _0x53ef5e of _0x24c977['getRanges']())for(const _0xfd2c9f of _0x4c9cbe)if(!_0x53ef5e['containsRange'](_0xfd2c9f)){_0x37a8ee=!0x1;break;}if(_0x37a8ee)return _0x24c977;}const _0x2d380f=_0x1526c3(),_0x483978=_0x422823['id'],_0xc9e078='insertion:'+_0x44d428,_0x372af7=this['_setSuggestionData']({'id':_0x2d380f,'type':_0xc9e078,'createdAt':new Date(),'authorId':_0x483978,'attributes':_0x5f2848});for(const _0x261596 of _0x4c9cbe)this['_addSuggestionMarker'](_0xc9e078,_0x2d380f,_0x483978,_0x261596,o['getMultiRangeId']());return _0x372af7;}['markInlineFormat'](_0x447434,_0xa843fd,_0x29e97b=null,_0x169bb8={}){if(_0x29e97b=_0x29e97b||Kt(_0xa843fd),_0x447434['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x169bb8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5d80a2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x29e97b,'accept');return this['forceDefaultExecution'](()=>_0x5d80a2([_0x447434],_0xa843fd,_0x169bb8)),null;}const _0x459eb4=this['editor']['plugins']['get']('Users')['me'],_0xc795ea=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1fe680,meta:_0x2be6fd}of this['_findSuggestions'](_0x447434,'insertion'))_0x2be6fd['isOwn']&&!_0x2be6fd['isInsideObject']&&_0xc795ea['push'](..._0x1fe680['getRanges']());}const _0x319c9d=function(_0x503af6,_0x279eb7){const _0x474b9b=[];for(const _0x5d8930 of _0x279eb7){const _0x215d72=_0x503af6['getIntersection'](_0x5d8930);_0x215d72&&_0x474b9b['push'](_0x215d72);}return _0x474b9b;}(_0x447434,_0xc795ea),_0x50fbfb=function(_0x34bed2,_0x4030ee){const _0x522537=[_0x34bed2];for(const _0x38b7b1 of _0x4030ee){let _0x10ab5d=0x0;for(;_0x10ab5d<_0x522537['length'];){const _0x1df3b0=_0x522537[_0x10ab5d]['getDifference'](_0x38b7b1);_0x522537['splice'](_0x10ab5d,0x1,..._0x1df3b0),_0x10ab5d+=_0x1df3b0['length'];}}return _0x522537;}(_0x447434,_0xc795ea);_0x319c9d['length']&&this['_model']['change'](()=>{for(const _0x5c9907 of _0x319c9d){const _0x3042f0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x29e97b,'accept');this['forceDefaultExecution'](()=>_0x3042f0([_0x5c9907],_0xa843fd,_0x169bb8));}});for(const _0x4def8d of _0x50fbfb){let _0x103a94=null,_0x3603d2=_0x4def8d['start'],_0x5e97de=_0x4def8d['end'];for(const {suggestion:_0x53e37b,meta:_0xc4e7bd}of this['_findSuggestions'](_0x4def8d,'formatInline')){if(!_0xc4e7bd['isOwn'])continue;if(_0x53e37b['subType']!=_0x29e97b)continue;if(!Xt(_0x53e37b,_0x169bb8))continue;const _0x3eac12=_0x53e37b['getFirstRange']();if(_0x3eac12['containsRange'](_0x4def8d,!0x0))return null;_0x3603d2=_0x3603d2['isBefore'](_0x3eac12['start'])?_0x3603d2:_0x3eac12['start'],_0x5e97de=_0x5e97de['isAfter'](_0x3eac12['end'])?_0x5e97de:_0x3eac12['end'],_0x103a94?_0x3eac12['start']['isBefore'](_0x103a94['getFirstRange']()['start'])?(_0x103a94['removeMarkers'](),_0x103a94=_0x53e37b):_0x53e37b['removeMarkers']():_0x103a94=_0x53e37b;}const _0x3eb5e8=this['_model']['createRange'](_0x3603d2,_0x5e97de);if(_0x103a94)this['_setSuggestionRange'](_0x103a94,_0x3eb5e8);else{const _0x360c47=_0x1526c3(),_0x900fac=_0x459eb4['id'];this['_setSuggestionData']({'id':_0x360c47,'type':'formatInline:'+_0x29e97b,'data':_0xa843fd,'createdAt':new Date(),'authorId':_0x900fac,'attributes':_0x169bb8}),this['_addSuggestionMarker']('formatInline:'+_0x29e97b,_0x360c47,_0x900fac,_0x3eb5e8);}}return null;}['markBlockFormat'](_0x2de10c,_0x434f31,_0x507914=[],_0x1d66e3=null,_0x1f7b66={}){_0x434f31['formatGroupId']||(_0x434f31['formatGroupId']=_0x434f31['commandName']),_0x434f31['multipleBlocks']=_0x2de10c['is']('range'),_0x1d66e3=_0x1d66e3||Kt(_0x434f31);const _0x137751=_0x507914['map'](_0x1d7954=>zt(_0x1d7954,this['_model'])),_0x20f788=_0x2de10c['is']('range')?_0x2de10c:zt(_0x2de10c,this['_model']);if(this['_trackingSessionId']&&(_0x1f7b66['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x245973=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d66e3,'accept');return this['forceDefaultExecution'](()=>_0x245973([_0x20f788],_0x434f31,_0x1f7b66)),null;}_0x137751['push'](_0x20f788);let _0x3b7ecf=!0x0;for(const _0x2b502b of _0x137751)if(!this['_rangeIsInLocalUserInsertion'](_0x2b502b)){_0x3b7ecf=!0x1;break;}if(_0x3b7ecf&&'always'!==this['_trackFormatChanges']){const _0x2feaf6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d66e3,'accept');return this['forceDefaultExecution'](()=>_0x2feaf6([_0x20f788],_0x434f31,_0x1f7b66)),null;}let _0x1e88cf=null,_0x2f9822=_0x20f788['start'],_0x3f99b6=_0x20f788['end'];for(const {suggestion:_0x1d4e68,meta:_0x2fbbba}of this['_findSuggestions'](_0x20f788,'formatBlock')){if(!_0x2fbbba['isOwn'])continue;if(_0x2fbbba['isNextTo']||_0x2fbbba['containsRangeInObject']||_0x2fbbba['isInsideObject'])continue;if(_0x1d4e68['data']['formatGroupId']!=_0x434f31['formatGroupId'])continue;if(!Xt(_0x1d4e68,_0x1f7b66))continue;const _0x1647e1=_0x1d4e68['getFirstRange']();if(_0x1d4e68['subType']==_0x1d66e3){if(_0x1647e1['containsRange'](_0x20f788,!0x0))return null;_0x2f9822=_0x2f9822['isBefore'](_0x1647e1['start'])?_0x2f9822:_0x1647e1['start'],_0x3f99b6=_0x3f99b6['isAfter'](_0x1647e1['end'])?_0x3f99b6:_0x1647e1['end'],_0x1e88cf?_0x1647e1['start']['isBefore'](_0x1e88cf['getFirstRange']()['start'])?(_0x1e88cf['removeMarkers'](),_0x1e88cf=_0x1d4e68):_0x1d4e68['removeMarkers']():_0x1e88cf=_0x1d4e68;}else{const _0x10d66b=_0x20f788['getIntersection'](_0x1647e1);this['_cutOutSuggestionMarker'](_0x1d4e68,_0x10d66b);}}const _0x4cb935=this['editor']['plugins']['get']('Users')['me'],_0x27ef64=_0x1526c3(),_0xe5bb92=_0x4cb935['id'];if(_0x1e88cf)return this['_setSuggestionRange'](_0x1e88cf,this['_model']['createRange'](_0x2f9822,_0x3f99b6)),_0x1e88cf;{const _0x172e07=this['_setSuggestionData']({'id':_0x27ef64,'type':'formatBlock:'+_0x1d66e3,'data':_0x434f31,'createdAt':new Date(),'authorId':_0xe5bb92,'attributes':_0x1f7b66});return this['_addSuggestionMarker']('formatBlock:'+_0x1d66e3,_0x27ef64,_0xe5bb92,this['_model']['createRange'](_0x2f9822,_0x3f99b6)),_0x172e07;}}['markMultiRangeBlockFormat'](_0x9dbb01,_0x2bd024,_0x4c8982=[],_0x521cf5=null,_0x3817db={}){_0x2bd024['formatGroupId']||(_0x2bd024['formatGroupId']=_0x2bd024['commandName']);const _0x185de1=_0x9dbb01[0x0];_0x2bd024['multipleBlocks']=_0x185de1['is']('range'),_0x521cf5=_0x521cf5||Kt(_0x2bd024);const _0x39d277=_0x4c8982['map'](_0x451da2=>zt(_0x451da2,this['_model'])),_0xc49b59=_0x185de1['is']('range')?_0x9dbb01:_0x9dbb01['map'](_0x4fcf61=>zt(_0x4fcf61,this['_model']));if(this['_trackingSessionId']&&(_0x3817db['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1b8ce5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x521cf5,'accept');return this['forceDefaultExecution'](()=>_0x1b8ce5(_0xc49b59,_0x2bd024,_0x3817db)),null;}_0x39d277['push'](..._0xc49b59);let _0x58349c=!0x0;for(const _0x217364 of _0x39d277)if(!this['_rangeIsInLocalUserInsertion'](_0x217364)){_0x58349c=!0x1;break;}if(_0x58349c&&'always'!==this['_trackFormatChanges']){const _0x2f81f7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x521cf5,'accept');return this['forceDefaultExecution'](()=>_0x2f81f7(_0xc49b59,_0x2bd024,_0x3817db)),null;}const _0x23edfa=this['editor']['plugins']['get']('Users')['me'];for(const _0x7f10b3 of this['getSuggestions']()){if(_0x7f10b3['author']['id']!=_0x23edfa['id'])continue;if('formatBlock'!=_0x7f10b3['type']||_0x7f10b3['data']['formatGroupId']!=_0x2bd024['formatGroupId'])continue;if(!Xt(_0x7f10b3,_0x3817db))continue;const _0xd2e32a=_0x7f10b3['subType']==_0x521cf5;for(let _0x252810=0x0;_0x252810<_0xc49b59['length'];_0x252810++){const _0x1c3e98=_0xc49b59[_0x252810];for(const _0x4096a7 of _0x7f10b3['getMarkers']()){const _0x198d95=_0x4096a7['getRange']();if(_0x1c3e98['isEqual'](_0x198d95)){_0xd2e32a?(_0xc49b59['splice'](_0x252810,0x1),_0x252810--):_0x7f10b3['removeMarker'](_0x4096a7['name']);break;}}}}if(0x0==_0xc49b59['length'])return null;const _0x3186ec=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x521cf5,'join');for(const _0x11f557 of this['getSuggestions']())if(_0x11f557['author']['id']==_0x23edfa['id']&&'formatBlock'==_0x11f557['type']&&_0x11f557['data']['formatGroupId']==_0x2bd024['formatGroupId']&&_0x11f557['subType']==_0x521cf5&&Xt(_0x11f557,_0x3817db)&&(_0x3186ec(_0x11f557['getRanges'](),_0xc49b59)||_0x3186ec(_0xc49b59,_0x11f557['getRanges']()))){for(const _0x386839 of _0xc49b59)_0x11f557['addRange'](_0x386839);return _0x11f557;}const _0x433de9=_0x1526c3(),_0x1e3b52=_0x23edfa['id'],_0xbe0226='formatBlock:'+_0x521cf5,_0x2b4d2b=this['_setSuggestionData']({'id':_0x433de9,'type':_0xbe0226,'data':_0x2bd024,'createdAt':new Date(),'authorId':_0x1e3b52,'attributes':_0x3817db});for(const _0x27698d of _0xc49b59)this['_addSuggestionMarker'](_0xbe0226,_0x433de9,_0x1e3b52,_0x27698d,o['getMultiRangeId']());return _0x2b4d2b;}['markDeletion'](_0x565518,_0x12a037=null,_0x31a007={}){if(_0x565518['isCollapsed'])return null;const _0x1de17f=this['editor']['plugins']['get']('Users')['me'],_0x34526c=new _0x34c04c(_0x565518['start'],_0x565518['end']);this['_trackingSessionId']&&(_0x31a007['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x438a5e,meta:_0x5eea78}of this['_findSuggestions'](_0x34526c,'insertion'))if(_0x5eea78['isOwn']&&!_0x5eea78['isNextTo']){if(_0x438a5e['isMultiRange']){const _0x14816c=_0x438a5e['getRanges']()['filter'](_0x13875b=>'$graveyard'!=_0x13875b['root']['rootName']);_0x14816c['every'](_0x42eded=>_0x34526c['containsRange'](_0x42eded,!0x0))&&_0x438a5e['discard']();if(_0x14816c['some'](_0x54d803=>_0x54d803['containsRange'](_0x34526c,!0x0))){const _0x1a4723=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x12a037,'accept');return this['forceDefaultExecution'](()=>_0x1a4723([_0x34526c],null,_0x31a007)),null;}}else{const _0x53ff94=_0x34526c['getIntersection'](_0x438a5e['getFirstRange']());null!==_0x53ff94&&_0x438a5e['_onDiscard']([_0x53ff94],null,_0x31a007);}}if(_0x34526c['detach'](),_0x34526c['isCollapsed']||'$graveyard'==_0x34526c['root']['rootName'])return null;let _0x28e8a2=null,_0x509e5a=_0x34526c['start'],_0x4f0e79=_0x34526c['end'];const _0x5211d2=this['_findSuggestions'](_0x34526c,'deletion');for(const {suggestion:_0x10803c,meta:_0x1859ca}of _0x5211d2){const _0xae0d5c=this['_model']['createRange'](_0x509e5a,_0x4f0e79);if(_0x1859ca['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1859ca['containsRangeInObject']&&!_0x1859ca['isInsideObject'])){if(_0x10803c['isMultiRange']){if(!Xt(_0x10803c,_0x31a007))continue;let _0x19307b=!0x0;for(const _0x3730df of _0x10803c['getRanges']()){if(_0x3730df['containsRange'](_0xae0d5c,!0x0))return _0x10803c;_0xae0d5c['containsRange'](_0x3730df)||(_0x19307b=!0x1);}_0x19307b&&_0x10803c['discard']();}else{const _0x1b534b=_0x10803c['getFirstRange']();if(_0x1b534b['containsRange'](_0xae0d5c,!0x0))return _0x10803c;if(!Xt(_0x10803c,_0x31a007)){_0xae0d5c['containsRange'](_0x1b534b)?_0x10803c['removeMarkers']():_0x1b534b['containsPosition'](_0x509e5a)?_0x509e5a=_0x1b534b['end']:_0x1b534b['containsPosition'](_0x4f0e79)&&(_0x4f0e79=_0x1b534b['start']);continue;}_0x509e5a=_0x509e5a['isBefore'](_0x1b534b['start'])?_0x509e5a:_0x1b534b['start'],_0x4f0e79=_0x4f0e79['isAfter'](_0x1b534b['end'])?_0x4f0e79:_0x1b534b['end'],_0x31a007=Object['assign']({},_0x10803c['attributes']),_0x28e8a2?_0x1b534b['start']['isBefore'](_0x28e8a2['getFirstRange']()['start'])?(_0x28e8a2['removeMarkers'](),_0x28e8a2=_0x10803c):_0x10803c['removeMarkers']():_0x28e8a2=_0x10803c;}}}if(_0x28e8a2)return this['_setSuggestionRange'](_0x28e8a2,this['_model']['createRange'](_0x509e5a,_0x4f0e79)),_0x28e8a2;{const _0x5a45b2=_0x1526c3(),_0x471ecd=this['_model']['createRange'](_0x509e5a,_0x4f0e79),_0x5a4f96=_0x1de17f['id'],_0x4c3a39=_0x12a037?'deletion:'+_0x12a037:'deletion',_0x535f24=this['_setSuggestionData']({'id':_0x5a45b2,'type':_0x4c3a39,'createdAt':new Date(),'authorId':_0x5a4f96,'attributes':_0x31a007});return this['_addSuggestionMarker'](_0x4c3a39,_0x5a45b2,_0x5a4f96,_0x471ecd),_0x535f24;}}['markMultiRangeDeletion'](_0x29f5da,_0xc4f966='multi',_0x2c2aac={}){const _0x6c39ba=this['editor']['plugins']['get']('Users')['me'],_0x2d498f=_0x29f5da['map'](_0x27c290=>new _0x34c04c(_0x27c290['start'],_0x27c290['end'])),_0x508f41=new Set();this['_trackingSessionId']&&(_0x2c2aac['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x290570,meta:_0x1ab9c7}of this['_findSuggestions'](_0x2d498f,'insertion'))_0x1ab9c7['isOwn']&&!_0x1ab9c7['isNextTo']&&_0x508f41['add'](_0x290570);for(const _0x4897d2 of _0x508f41)if(_0x4897d2['isMultiRange']){const _0x2a3824=_0x4897d2['getRanges']();(!_0x4897d2['attributes']||!_0x4897d2['attributes']['skipNestingCheck'])&&(_0x2a3824['every'](_0x27c6cf=>_0x2d498f['some'](_0x4f334a=>_0x4f334a['containsRange'](_0x27c6cf,!0x0)))&&_0x4897d2['discard']());if(_0x2d498f['every'](_0x5517ad=>_0x2a3824['some'](_0x540225=>_0x540225['containsRange'](_0x5517ad,!0x0)))){const _0x1c8298=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc4f966,'accept');return this['forceDefaultExecution'](()=>_0x1c8298(_0x29f5da,null,_0x2c2aac)),null;}}else{const _0x19956e=_0x4897d2['getFirstRange']();_0x2d498f['some'](_0x3c019e=>_0x3c019e['containsRange'](_0x19956e,!0x0))&&_0x4897d2['discard']();if(_0x2d498f['every'](_0x356cd9=>_0x19956e['containsRange'](_0x356cd9,!0x0))){const _0x1e981d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc4f966,'accept');return this['forceDefaultExecution'](()=>_0x1e981d(_0x2d498f,null,_0x2c2aac)),null;}}const _0x59ae1f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc4f966,'join');let _0x1fe9a8=null;for(const _0x170b03 of this['getSuggestions']())if(_0x170b03['author']['id']==_0x6c39ba['id']&&_0x170b03['isInContent']&&'deletion'==_0x170b03['type']&&_0x170b03['subType']==_0xc4f966&&Xt(_0x170b03,_0x2c2aac)&&(_0x59ae1f(_0x170b03['getRanges'](),_0x2d498f)||_0x59ae1f(_0x2d498f,_0x170b03['getRanges']()))){if(_0x1fe9a8){if(_0x170b03['commentThread']&&_0x170b03['commentThread']['length'])continue;for(const _0x586b63 of _0x170b03['getRanges']())_0x1fe9a8['isIntersectingWithRange'](_0x586b63)||_0x1fe9a8['addRange'](_0x586b63);_0x170b03['removeMarkers']();}else{_0x1fe9a8=_0x170b03;for(const _0x349d04 of _0x2d498f)_0x170b03['isIntersectingWithRange'](_0x349d04)||_0x170b03['addRange'](_0x349d04);}}if(_0x1fe9a8)return _0x1fe9a8;_0x508f41['clear']();for(const {suggestion:_0x12aa1e,meta:_0x34534c}of this['_findSuggestions'](_0x2d498f,'deletion'))_0x34534c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x34534c['containsRangeInObject']&&!_0x34534c['isInsideObject'])&&Xt(_0x12aa1e,_0x2c2aac)&&_0x508f41['add'](_0x12aa1e);for(const _0x300506 of _0x508f41){const _0x470d62=_0x300506['getRanges']();if(!_0x2c2aac||!_0x2c2aac['skipNestingCheck']){if(_0x2d498f['every'](_0x523a78=>_0x470d62['some'](_0x4f1caf=>_0x4f1caf['containsRange'](_0x523a78,!0x0))))return _0x300506;}(!_0x300506['attributes']||!_0x300506['attributes']['skipNestingCheck'])&&(_0x470d62['every'](_0x55aa55=>_0x2d498f['some'](_0x484a4f=>_0x484a4f['containsRange'](_0x55aa55,!0x0)))&&_0x300506['discard']());}const _0x1a95aa=_0x1526c3(),_0x37dc8e=_0x6c39ba['id'],_0x437f21='deletion:'+_0xc4f966,_0x307c38=this['_setSuggestionData']({'id':_0x1a95aa,'type':_0x437f21,'createdAt':new Date(),'authorId':_0x37dc8e,'attributes':_0x2c2aac});for(const _0x39e738 of _0x2d498f)_0x39e738['detach'](),_0x39e738['isCollapsed']||'$graveyard'==_0x39e738['root']['rootName']||this['_addSuggestionMarker'](_0x437f21,_0x1a95aa,_0x37dc8e,_0x39e738,o['getMultiRangeId']());return _0x307c38;}['markAttributeChange'](_0x1e7b81,_0x40b2fd,_0x3b6047,_0x111f04,_0x19fe48){if(_0x1e7b81['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x566dd5=this['editor']['plugins']['get']('Users')['me']['id'],_0x5ce86f=Array['from'](this['_suggestions']['values']())['filter'](_0x2f4f6a=>'attribute'==_0x2f4f6a['type']&&_0x2f4f6a['data']['key']==_0x40b2fd&&_0x2f4f6a['isIntersectingWithRange'](_0x1e7b81));if(this['_trackingSessionId']&&(_0x19fe48['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x51b2e1=this['_findSuggestions'](_0x1e7b81,'insertion')['filter'](({meta:_0x4b1a91})=>_0x4b1a91['isOwn']&&!_0x4b1a91['isInsideObject']&&!_0x4b1a91['isNextTo'])['map'](({suggestion:_0x288b96})=>_0x288b96);_0x5ce86f['unshift'](..._0x51b2e1);}const _0x5c4156=new Map([[_0x1e7b81,_0x3b6047]]);for(const _0x1c546e of _0x5ce86f){const _0xf00b2d='attribute'==_0x1c546e['type']?_0x1c546e['data']['oldValue']:void 0x0,_0x5ccaa7=_0x1c546e['getFirstRange'](),_0x4a07c2=Array['from'](_0x5c4156['keys']())['find'](_0x53b13b=>_0x53b13b['isIntersecting'](_0x5ccaa7));if(!_0x4a07c2)continue;const _0x3991e6=_0x4a07c2['getDifference'](_0x5ccaa7);this['_isBlockAttribute'](_0x40b2fd)&&'insertion'==_0x1c546e['type']&&0x0!=_0x3991e6['length']||(_0x5c4156['delete'](_0x4a07c2),_0x3991e6['forEach'](_0x2a7b95=>{_0x5c4156['set'](_0x2a7b95,_0x3b6047);}),'insertion'!=_0x1c546e['type']&&_0xf00b2d!=_0x111f04&&_0x5c4156['set'](_0x4a07c2['getIntersection'](_0x5ccaa7),_0xf00b2d));}const _0x46a355=[];for(const [_0x3e0938,_0x58508d]of _0x5c4156){const _0x544b25=_0x1526c3(),_0x1f165b={'key':_0x40b2fd,'oldValue':_0x58508d,'newValue':_0x111f04};_0x40b2fd['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':_0x40b2fd});const _0x385df6=('attribute:'+(_0x40b2fd+'|'+Kt({'newValue':_0x111f04})))['substring'](0x0,0x3c),_0x433c79=this['_setSuggestionData']({'id':_0x544b25,'type':_0x385df6,'data':_0x1f165b,'createdAt':new Date(),'authorId':_0x566dd5,'attributes':_0x19fe48});_0x46a355['push'](_0x433c79),this['_addSuggestionMarker'](_0x385df6,_0x544b25,_0x566dd5,_0x3e0938);}return _0x46a355;}['enableDefaultAttributesIntegration'](_0x49fa09){this['enableCommand'](_0x49fa09,(_0x19d03b,..._0x16b803)=>{this['_recordAttributeChanges'](()=>{_0x19d03b(..._0x16b803);});});}['registerBlockAttribute'](_0x239b37){this['_blockAttributeKeys']['add'](_0x239b37);}['registerInlineAttribute'](_0xe0a7c2){this['_inlineAttributeKeys']['add'](_0xe0a7c2);}['startTrackingSession'](_0x1b2351){return this['_trackingSessionId']=void 0x0!==_0x1b2351?_0x1b2351:_0x1526c3(),this['_trackingSessionId'];}['_getAttributeKey'](_0x27ea96){return'attribute'==_0x27ea96['type']?_0x27ea96['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1b8530,_0x1053f6){const _0x43ffba=_0x1b8530['getFirstMarker']();this['_model']['change'](_0x3a49fa=>{_0x3a49fa['updateMarker'](_0x43ffba,{'range':_0x1053f6});});}['_addThreadToSuggestion'](_0x123f24){const _0xa4ae6a=_0x123f24['id'],_0x150616=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xa4ae6a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x150616,'threadId':_0xa4ae6a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x547bfa=this['_commentsRepository']['getCommentThread'](_0xa4ae6a);_0x547bfa['unbind']('isRemovable'),_0x547bfa['isRemovable']=!0x1,_0x123f24['commentThread']=_0x547bfa;}['_checkSuggestionCorrectness'](_0xbb5aed,_0x5bc7c8,_0x3c6ebb,_0xaf380a){if(_0xbb5aed['type']!=_0x5bc7c8||_0xbb5aed['subType']!=_0x3c6ebb||_0xbb5aed['creator']['id']!=_0xaf380a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x840840('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x524c6b,_0x4f79d5){const _0x14192e=_0x524c6b['getFirstRange']();if(_0x4f79d5['isEqual'](_0x14192e))_0x524c6b['removeMarkers']();else{if(_0x14192e['containsRange'](_0x4f79d5)){const _0x3514c1=this['_model']['createPositionAt'](_0x4f79d5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x524c6b,this['_model']['createRange'](_0x14192e['start'],_0x3514c1));const _0x1597d9=_0x1526c3(),_0x52722a=_0x524c6b['creator']['id'],_0x341bed=_0x524c6b['type']+':'+_0x524c6b['subType'];this['_setSuggestionData']({'id':_0x1597d9,'type':_0x341bed,'createdAt':new Date(),'authorId':_0x52722a,'data':_0x524c6b['data'],'attributes':_0x524c6b['attributes']});const _0x42ef02=this['_model']['createPositionAt'](_0x4f79d5['end']['parent'],'after'),_0x5a51d7=this['_model']['createRange'](_0x42ef02,_0x14192e['end']);this['_addSuggestionMarker'](_0x341bed,_0x1597d9,_0x52722a,_0x5a51d7);}else{if(_0x14192e['containsPosition'](_0x4f79d5['start'])){const _0x3da54c=this['_model']['createPositionAt'](_0x4f79d5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x524c6b,this['_model']['createRange'](_0x14192e['start'],_0x3da54c));}else{const _0x4c72ff=this['_model']['createPositionAt'](_0x4f79d5['end']['parent'],'after');this['_setSuggestionRange'](_0x524c6b,this['_model']['createRange'](_0x4c72ff,_0x14192e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x346ea2){for(const {suggestion:_0x4aa38a,meta:_0x39eaf4}of this['_findSuggestions'](_0x346ea2,'insertion')){if(!_0x39eaf4['isOwn'])continue;const _0x4f1130=_0x4aa38a['getRanges']();for(const _0x1caf12 of _0x4f1130)if(!_0x346ea2['getDifference'](_0x1caf12)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x55de52){const _0x486f7c=this['editor']['plugins']['get']('Users')['getUser'](_0x55de52);if(!_0x486f7c)throw new _0x840840('track-changes-user-not-found',this);return _0x486f7c;}['_getExternalAuthor'](_0x383b65){const _0x56b4de=this['editor']['plugins']['get']('Users'),_0x33cff3=_0x3429f2('external:'+_0x383b65),_0x7cd74=_0x56b4de['getUser'](_0x33cff3);return _0x7cd74||_0x56b4de['addUser']({'id':_0x33cff3,'name':_0x383b65});}['_createSuggestion'](_0x4f207b,_0x405a28,_0x13d9c8,_0x4847e7,_0x4c3e33,_0x186cec){const _0x2ed397=this['_getAuthorFromId'](_0x4847e7),_0x45e4a8=this['_suggestionFactory']['buildSuggestion'](_0x4f207b,_0x405a28,_0x13d9c8,_0x2ed397,_0x4c3e33,_0x3883ab=>{this['_updateSuggestionData'](_0x13d9c8,{'attributes':_0x3883ab});const _0x59a4b0=this['getSuggestion'](_0x13d9c8);this['_joinWithAdjacentSuggestions'](new Set([_0x59a4b0])),this['_refreshSuggestionsChain'](new Set([_0x59a4b0]));},_0x186cec);return this['listenTo'](_0x45e4a8,'accept',()=>{this['_updateSuggestionData'](_0x13d9c8,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x45e4a8,'discard',()=>{this['_updateSuggestionData'](_0x13d9c8,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x13d9c8,_0x45e4a8),this['_suggestionState']['set'](_0x45e4a8,'notReady'),_0x45e4a8;}['_splitMarkerName'](_0x5137c0){const _0x4eae54=_0x5137c0['split'](':');return{'group':_0x4eae54[0x0],'type':_0x4eae54[0x1],'subType':_0x4eae54['length']>=0x5?_0x4eae54[0x2]:null,'id':_0x4eae54['length']<0x5?_0x4eae54[0x2]:_0x4eae54[0x3],'authorId':_0x4eae54['length']<0x5?_0x4eae54[0x3]:_0x4eae54[0x4],'markerCount':0x6==_0x4eae54['length']?_0x4eae54[0x5]:null};}['_breakSuggestionMarker'](_0x5308c8,_0x2c3cb2,_0xaf4aec){const _0x4170b4=_0x5308c8['getFirstRange'](),_0x3234cc=_0x4170b4['start'],_0x449872=_0x4170b4['end'];this['_setSuggestionRange'](_0x5308c8,this['_model']['createRange'](_0x3234cc,_0x2c3cb2));const _0xaf7269=_0x1526c3(),_0xa27ab8=_0x5308c8['creator']['id'],_0x54e8ed=_0x5308c8['type']+(_0x5308c8['subType']?':'+_0x5308c8['subType']:'');this['_setSuggestionData']({'id':_0xaf7269,'type':_0x54e8ed,'createdAt':new Date(),'authorId':_0xa27ab8,'originalSuggestionId':_0x5308c8['_originalSuggestionId']||_0x5308c8['id'],'attributes':_0x5308c8['attributes'],'data':_0x5308c8['data']});const _0x3d603d=this['_getAttributeKey'](_0x5308c8);('formatBlock'==_0x5308c8['type']||_0x3d603d&&this['_isBlockAttribute'](_0x3d603d))&&(_0xaf4aec=this['_model']['createPositionBefore'](_0xaf4aec['parent'])),this['_addSuggestionMarker'](_0x54e8ed,_0xaf7269,_0xa27ab8,this['_model']['createRange'](_0xaf4aec,_0x449872));}['_findSuggestions'](_0x3712e7,_0x324e13=null){const _0x431c02=[],_0x413df4=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3712e7)||(_0x3712e7=[_0x3712e7]);for(const _0x1c0078 of this['getSuggestions']()){if(!_0x1c0078['isInContent'])continue;if(_0x324e13&&_0x1c0078['type']!=_0x324e13)continue;let _0x422a88=!0x1;for(const _0x57383c of _0x1c0078['getRanges']()){for(const _0x3bf4e1 of _0x3712e7){const _0x30d32a=_0x3bf4e1['start']['isEqual'](_0x57383c['end'])||_0x3bf4e1['end']['isEqual'](_0x57383c['start']);if(_0x30d32a||_0x3bf4e1['getIntersection'](_0x57383c)){const _0x25d045=_0x3bf4e1['containsRange'](_0x57383c)&&Gt(this['_model']['schema'],_0x57383c['start'],_0x3bf4e1),_0x581792=_0x57383c['containsRange'](_0x3bf4e1)&&Gt(this['_model']['schema'],_0x3bf4e1['start'],_0x57383c);_0x431c02['push']({'suggestion':_0x1c0078,'meta':{'isOwn':_0x413df4==_0x1c0078['author'],'isNextTo':_0x30d32a,'isInsideObject':_0x25d045,'containsRangeInObject':_0x581792}}),_0x422a88=!0x0;break;}}if(_0x422a88)break;}}return _0x431c02;}['_addSuggestionMarker'](_0x40fe3f,_0x5157fe,_0x16b9c6,_0xe07ce7,_0xc3cb91){this['_model']['change'](_0x1a06d5=>{let _0x2092e8='suggestion:'+_0x40fe3f+':'+_0x5157fe+':'+_0x16b9c6;_0xc3cb91&&(_0x2092e8=_0x2092e8+':'+_0xc3cb91),_0x1a06d5['addMarker'](_0x2092e8,{'range':_0xe07ce7,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xd95503){const _0x411d29=_0xd95503['previous'],_0x2b410b=_0xd95503['next'];_0xd95503['previous']=null,_0xd95503['next']=null,null!=_0x411d29&&_0x411d29['next']==_0xd95503&&(_0x411d29['next']=_0x2b410b),null!=_0x2b410b&&_0x2b410b['previous']==_0xd95503&&(_0x2b410b['previous']=_0x411d29),'ready'==this['_suggestionState']['get'](_0xd95503)&&(this['_suggestionState']['set'](_0xd95503,'removed'),this['fire']('suggestionUnloaded',_0xd95503,_0x411d29,_0x2b410b));}['_setSuggestionData'](_0x1fb463){const _0x1cd43d=_0x1fb463['id'],_0xc5fd9b=this['addSuggestionData'](_0x1fb463);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x248a5e=this['editor']['plugins']['get']('PendingActions'),_0x3f6fcb=_0xc5fd9b['hasComments'],_0x4bcdf9=_0xc5fd9b['subType']?_0xc5fd9b['type']+':'+_0xc5fd9b['subType']:_0xc5fd9b['type'],_0x1c2c03=this['editor']['locale'],_0x4d2b50=_0x248a5e['add'](c(_0x1c2c03,'PENDING_ACTION_SUGGESTION')),_0x2ba95f={'id':_0x1cd43d,'type':_0x4bcdf9,'hasComments':_0x3f6fcb,'data':_0x1fb463['data']||null,'originalSuggestionId':_0x1fb463['originalSuggestionId']||null,'attributes':_0xc5fd9b['attributes']};this['_adapter']['addSuggestion'](_0x2ba95f)['then'](_0x24a07f=>{_0xc5fd9b['_saved']=!0x0,_0x248a5e['remove'](_0x4d2b50),_0x24a07f&&_0x24a07f['createdAt']&&(this['_suggestions']['get'](_0x1cd43d)['createdAt']=_0x24a07f['createdAt']);})['catch'](_0x352cce=>{throw _0x7bbe75('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xc5fd9b['discard']();}),_0xc5fd9b['stopListening'](),this['_suggestions']['delete'](_0xc5fd9b['id']),this['_suggestionState']['delete'](_0xc5fd9b),_0x352cce;});}return _0xc5fd9b;}['_isBlockAttribute'](_0x3190c3){return this['_blockAttributeKeys']['has'](_0x3190c3);}['_updateSuggestionData'](_0x2ffc43,_0x39d80d){const _0x17423b=this['editor']['plugins']['get']('PendingActions'),_0x1249c3=this['getSuggestion'](_0x2ffc43);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1249c3['_saved']){const _0x264e6b=_0x17423b['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2ffc43,_0x39d80d)['then'](()=>{_0x17423b['remove'](_0x264e6b);});}else _0x1249c3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2ffc43,_0x39d80d);});}}['_getSuggestionData'](_0x3a6707){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x840840('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3a6707);}['_handleNewSuggestionMarker'](_0x1c73c8){const {id:_0x5525c6,type:_0x13667b,subType:_0x21acad,authorId:_0x5c1c78}=this['_splitMarkerName'](_0x1c73c8),_0x3f0761=this['_suggestions']['get'](_0x5525c6)||this['_createSuggestion'](_0x13667b,_0x21acad,_0x5525c6,_0x5c1c78,{});switch(this['_checkSuggestionCorrectness'](_0x3f0761,_0x13667b,_0x21acad,_0x5c1c78),this['_suggestionState']['get'](_0x3f0761)){case'notReady':this['_getSuggestionData'](_0x5525c6)['then'](_0x239775=>{let _0x4b0d67=Promise['resolve']();_0x239775['hasComments']&&(_0x4b0d67=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5525c6})),_0x4b0d67['then'](()=>{this['addSuggestionData'](_0x239775)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3f0761,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5525c6,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3f0761,'ready'),this['fire']('suggestionLoaded',_0x3f0761);break;case'ready':this['fire']('suggestionChanged',_0x3f0761);}return _0x3f0761['addMarkerName'](_0x1c73c8),_0x3f0761;}['_refreshSuggestionsChain'](_0xc2d73b){const _0x4f9a05=Array['from'](_0xc2d73b),_0x464b0e=_0x4f9a05['filter'](_0x516a21=>'attribute'==_0x516a21['type']);this['_refreshAttributeSuggestionsChain'](_0x464b0e);const _0x1efc6b=_0x4f9a05['filter'](_0x25c30a=>!_0x25c30a['isMultiRange']&&'attribute'!=_0x25c30a['type']),_0x3da19b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49e836=>!_0x49e836['isMultiRange']&&'attribute'!=_0x49e836['type']),_0x517ec8=_0x3da19b['filter'](_0xc55539=>!_0xc2d73b['has'](_0xc55539)),_0x2d06f1=new Map(_0x3da19b['map'](_0x4717c5=>[_0x4717c5,this['_suggestionFactory']['getSuggestionCallback'](_0x4717c5['type'],_0x4717c5['subType'],'chain')])),_0x27dc30=new Map(_0x3da19b['map'](_0x170e9b=>[_0x170e9b,_0x170e9b['getFirstRange']()])),_0x5ca8eb=new Set(),_0x53147e=new Set();for(let _0x180b92=0x0;_0x180b92<_0x1efc6b['length'];_0x180b92++)_0xdde84d(_0x1efc6b[_0x180b92],_0x1efc6b,_0x180b92+0x1);for(let _0x461854=0x0;_0x461854<_0x1efc6b['length'];_0x461854++)_0xdde84d(_0x1efc6b[_0x461854],_0x517ec8,0x0);const _0x488b53=new Set();for(let _0x3c4a32=0x0;_0x3c4a32<_0x1efc6b['length'];_0x3c4a32++){const _0x2812bf=_0x1efc6b[_0x3c4a32];!_0x53147e['has'](_0x2812bf)&&_0x2812bf['previous']&&(_0x488b53['add'](_0x2812bf['previous']),_0x2812bf['previous']['next']===_0x2812bf&&(_0x2812bf['previous']['next']=null),_0x2812bf['previous']=null),!_0x5ca8eb['has'](_0x2812bf)&&_0x2812bf['next']&&(_0x488b53['add'](_0x2812bf['next']),_0x2812bf['next']['previous']===_0x2812bf&&(_0x2812bf['next']['previous']=null),_0x2812bf['next']=null);}function _0xdde84d(_0x53b936,_0x8aa61e,_0x316757){for(let _0x51e15c=_0x316757;_0x51e15c<_0x8aa61e['length'];_0x51e15c++){const _0x3866b5=_0x16f6ed(_0x53b936,_0x8aa61e[_0x51e15c]);_0x3866b5&&(_0x3866b5[0x0]['next']=_0x3866b5[0x1],_0x3866b5[0x1]['previous']=_0x3866b5[0x0],_0x5ca8eb['add'](_0x3866b5[0x0]),_0x53147e['add'](_0x3866b5[0x1]));}}function _0x16f6ed(_0x1b6469,_0x4fc3d2){if(_0x1b6469['author']['id']!==_0x4fc3d2['author']['id'])return null;const _0x3eb7b8=_0x2d06f1['get'](_0x1b6469)(_0x1b6469,_0x4fc3d2,_0x27dc30['get'](_0x1b6469),_0x27dc30['get'](_0x4fc3d2));if(!_0x3eb7b8)return null;return _0x2d06f1['get'](_0x4fc3d2)(_0x1b6469,_0x4fc3d2,_0x27dc30['get'](_0x1b6469),_0x27dc30['get'](_0x4fc3d2))?_0x3eb7b8[0x1]['commentThread']&&_0x3eb7b8[0x1]['commentThread']['length']?null:_0x3eb7b8:null;}_0x488b53['size']&&this['_refreshSuggestionsChain'](_0x488b53);}['_refreshAttributeSuggestionsChain'](_0x6fb0dd){if(0x0==_0x6fb0dd['length'])return;const _0x27de76=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x306975=>'attribute'==_0x306975['type']&&_0x306975['_isDataLoaded']),_0x23432f=[],_0x414f3a=new Map();for(const _0x57b342 of _0x27de76){const _0x1acf9b=_0x3429f2(_0x57b342['attributes']);_0x414f3a['has'](_0x1acf9b)||(_0x414f3a['set'](_0x1acf9b,_0x23432f['length']),_0x23432f['push']([]));const _0x19ce06=_0x414f3a['get'](_0x1acf9b);_0x23432f[_0x19ce06]['push'](_0x57b342);}!(function(){_0x23432f['sort']((_0x2aeec6,_0x57670e)=>{const _0x5ce381=_0x2aeec6[0x0]['createdAt'],_0x40a48a=_0x57670e[0x0]['createdAt'];return _0x5ce381==_0x40a48a?_0x2aeec6[0x0]['attributes']['groupId']<_0x57670e[0x0]['attributes']['groupId']?-0x1:0x1:_0x5ce381<_0x40a48a?-0x1:0x1;});for(const _0x455919 of _0x23432f)_0x455919['sort']((_0x57e488,_0x2154a6)=>_0x57e488['id']<_0x2154a6['id']?-0x1:0x1);}());for(let _0x58fa42=0x0;_0x58fa42<_0x23432f['length'];_0x58fa42++){if(0x0==_0x23432f[_0x58fa42]['length'])continue;const _0xb9ece1=[];for(let _0x4907b3=_0x58fa42+0x1;_0x4907b3<_0x23432f['length'];_0x4907b3++)0x0!=_0x23432f[_0x4907b3]['length']&&_0x358630(_0x23432f[_0x58fa42],_0x23432f[_0x4907b3])&&_0xb9ece1['push'](_0x4907b3);for(const _0x5d8efa of _0xb9ece1)_0x23432f[_0x58fa42]=_0x23432f[_0x58fa42]['concat'](_0x23432f[_0x5d8efa]),_0x23432f[_0x5d8efa]=[];}for(const _0x4c5302 of _0x23432f)for(let _0x10bfa6=0x0;_0x10bfa6<_0x4c5302['length'];_0x10bfa6++){const _0x3be1b0=_0x4c5302[_0x10bfa6+0x1]||null;_0x4c5302[_0x10bfa6]['next']!==_0x3be1b0&&(_0x4c5302[_0x10bfa6]['next']=_0x3be1b0);}for(const _0x2d442f of _0x23432f)for(let _0x34e0e6=0x0;_0x34e0e6<_0x2d442f['length'];_0x34e0e6++){const _0x5816c9=_0x2d442f[_0x34e0e6-0x1]||null;_0x2d442f[_0x34e0e6]['previous']!==_0x5816c9&&(_0x2d442f[_0x34e0e6]['previous']=_0x5816c9);}function _0x358630(_0x549647,_0x3809ce){if(_0x549647[0x0]['attributes']['groupId']!==_0x3809ce[0x0]['attributes']['groupId']&&_0x549647[0x0]['author']!==_0x3809ce[0x0]['author'])return!0x1;if(!function(_0x2fe011,_0x2a36ee){if(!_0x2fe011['hasComments']&&!_0x2a36ee['hasComments'])return!0x0;if(_0x2fe011['hasComments']&&_0x2a36ee['hasComments'])return!0x1;if(_0x2fe011['hasComments']&&_0x2a36ee['createdAt']<_0x2fe011['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2a36ee['hasComments']&&_0x2fe011['createdAt']<_0x2a36ee['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x549647[0x0],_0x3809ce[0x0]))return!0x1;const _0x1ed499=Ft(_0x549647[0x0]['attributes'],['groupId','trackingSessionId']),_0x5f1a9b=Ft(_0x3809ce[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x550687(_0x1ed499,_0x5f1a9b))return!0x1;if(_0x549647[0x0]['attributes']['groupId']==_0x3809ce[0x0]['attributes']['groupId'])return!0x0;if(_0x549647[0x0]['attributes']['trackingSessionId']!==_0x3809ce[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x549647['every'](_0x5ea6db=>_0x3809ce['some'](_0x3b8d46=>_0x5ea6db['getFirstRange']()['isEqual'](_0x3b8d46['getFirstRange']())))&&_0x3809ce['every'](_0x1a2fd3=>_0x549647['some'](_0x2c84b8=>_0x1a2fd3['getFirstRange']()['isEqual'](_0x2c84b8['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x46ecf4){const _0x5661c5=Array['from'](_0x46ecf4),_0x120c5c=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4697aa=_0x120c5c['filter'](_0x2fed1c=>!_0x46ecf4['has'](_0x2fed1c)),_0x1ca1ca=new Map(_0x5661c5['map'](_0x2d4aae=>[_0x2d4aae,this['_suggestionFactory']['getSuggestionCallback'](_0x2d4aae['type'],_0x2d4aae['subType'],'join')])),_0xb12ed6=new Map(_0x120c5c['map'](_0x2a69a2=>[_0x2a69a2,_0x2a69a2['getRanges']()]));for(let _0x33f8ef=0x0;_0x33f8ef<_0x5661c5['length'];_0x33f8ef++){if(_0x4670d8(this,_0x5661c5[_0x33f8ef],_0x5661c5,_0x33f8ef+0x1))return!0x0;}for(let _0x5a84fa=0x0;_0x5a84fa<_0x5661c5['length'];_0x5a84fa++){if(_0x4670d8(this,_0x5661c5[_0x5a84fa],_0x4697aa,0x0))return!0x0;}return!0x1;function _0x4670d8(_0x21edd2,_0x4bd2b3,_0x4d9fb5,_0x574802){for(let _0x86dcc6=_0x574802;_0x86dcc6<_0x4d9fb5['length'];_0x86dcc6++){const _0x56437f=_0x4d9fb5[_0x86dcc6];if(_0x56437f['type']!==_0x4bd2b3['type']||_0x56437f['author']['id']!==_0x4bd2b3['author']['id']||_0x56437f['subType']!==_0x4bd2b3['subType'])continue;if(!Qt(_0x4bd2b3,_0x56437f))continue;if('attribute'==_0x4bd2b3['type']&&_0x4bd2b3['data']['oldValue']!=_0x56437f['data']['oldValue'])continue;if('attribute'==_0x4bd2b3['type']&&_0x21edd2['_isBlockAttribute'](_0x4bd2b3['data']['key']))continue;if('formatBlock'==_0x4bd2b3['type']){const _0x55c9d3=_0x21edd2['editor']['model'],_0x29ad66=_0x4bd2b3['getContainedElement']();if(_0x29ad66&&(_0x55c9d3['schema']['isObject'](_0x29ad66)||_0x55c9d3['schema']['isLimit'](_0x29ad66)))continue;}const _0x365848=_0x1ca1ca['get'](_0x4bd2b3),_0x40e41b=_0xb12ed6['get'](_0x4bd2b3),_0x233839=_0xb12ed6['get'](_0x56437f),_0x514b42=_0x4bd2b3['commentThread']&&_0x4bd2b3['commentThread']['length'],_0x4f951f=_0x56437f['commentThread']&&_0x56437f['commentThread']['length'];if(!_0x514b42&&_0x365848(_0x233839,_0x40e41b))return _0x21edd2['_joinSuggestions'](_0x56437f,_0x4bd2b3),_0xb12ed6['delete'](_0x4bd2b3),!0x0;if(!_0x4f951f&&_0x365848(_0x40e41b,_0x233839))return _0x21edd2['_joinSuggestions'](_0x4bd2b3,_0x56437f),_0xb12ed6['delete'](_0x56437f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x495832,_0x359ee9){if(_0x495832['isMultiRange']){for(const _0x387516 of _0x359ee9['getRanges']())_0x495832['addRange'](_0x387516);}else{const _0x1e36be=_0x359ee9['getFirstRange']()['end'];this['_setSuggestionRange'](_0x495832,this['_model']['createRange'](_0x495832['getFirstRange']()['start'],_0x1e36be));}_0x359ee9['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4103ce,_0x52b13c,_0x39043a){const _0x489342=_0x4103ce['startsWith']('format')||_0x4103ce['startsWith']('attribute')?'FORMATTING':_0x4103ce['toUpperCase']();return c(this['editor']['locale'],_0x52b13c+'_'+_0x489342+'_SUGGESTION_ANNOUNCEMENT',_0x39043a);}['_initAriaMarkerChangeAnnouncements'](){const _0x2402b3=this['editor'];if(!_0x2402b3['ui'])return;const {ariaLiveAnnouncer:_0x23e306}=_0x2402b3['ui'];_0x5da952(this['_model'],({left:_0x5b9d7f,entered:_0x1e87c8})=>{for(const _0x206e93 of _0x5b9d7f){const {group:_0x475553,type:_0x4d4d21}=this['_splitMarkerName'](_0x206e93['name']);if('suggestion'===_0x475553){_0x23e306['announce'](this['_getMarkerAnnouncementText'](_0x4d4d21,'LEAVE'));break;}}for(const _0x1d61dc of _0x1e87c8){const {group:_0x32a647,type:_0x3879a3}=this['_splitMarkerName'](_0x1d61dc['name']);if('suggestion'===_0x32a647){_0x23e306['announce'](this['_getMarkerAnnouncementText'](_0x3879a3,'ENTER',_0x2ee9fd(_0x2a94e6)));break;}}});}['_processAttributeChanges'](_0x1d34fb){if(this['_recordAttributeSuggestions'])return!0x1;const _0x124143=this['editor'],_0x381542=_0x124143['model']['document']['differ']['getChanges']();if(0x0==_0x381542['length'])return!0x1;const _0x3ad134=[],_0x2bdfe6=_0x381542['filter'](_0x535a72=>'attribute'==_0x535a72['type']),_0x3a4181=_0x381542['filter'](_0x2d624a=>'insert'==_0x2d624a['type']&&'$text'!=_0x2d624a['name']),_0x1b1508=_0x381542['filter'](_0x37f2d5=>'remove'==_0x37f2d5['type']&&'$text'!=_0x37f2d5['name']);for(const _0x4c5045 of _0x2bdfe6)_0x3ad134['push']({'key':_0x4c5045['attributeKey'],'newValue':_0x4c5045['attributeNewValue'],'oldValue':_0x4c5045['attributeOldValue'],'range':qt(_0x4c5045['range'],_0x124143['model'])});for(const _0x3734a3 of _0x3a4181){const _0x320435=_0x1b1508['find'](_0x1fb655=>_0x1fb655['position']['isEqual'](_0x3734a3['position']));_0x320435&&_0x3ad134['push']({'key':u,'newValue':_0x3734a3['name'],'oldValue':_0x320435['name'],'range':_0x124143['model']['createRangeOn'](_0x3734a3['position']['nodeAfter'])});}return 0x0!=_0x3ad134['length']&&this['_reduceExistingSuggestions'](_0x1d34fb,_0x3ad134);}['_processAttributeSuggestions'](_0x1841fa){let _0x31a719=!0x1;const _0x27b5f4=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x55d215=>_0x55d215['data']['newRange']&&_0x55d215['name']['startsWith']('suggestion:attribute:'));for(const _0x3c31e5 of _0x27b5f4){const {subType:_0x24b1ec,id:_0x165cdb}=this['_splitMarkerName'](_0x3c31e5['name']),_0x21461d=_0x24b1ec['split']('|')[0x0];for(const _0x175506 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x175506['id']!=_0x165cdb&&'attribute'==_0x175506['type']&&_0x175506['data']&&_0x175506['data']['key']==_0x21461d&&_0x175506['getFirstRange']()['isIntersecting'](_0x3c31e5['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x175506,_0x3c31e5['data']['newRange'],_0x1841fa),_0x31a719=!0x0);}return _0x31a719;}['_recordAttributeChanges'](_0x3eafec){this['_recordAttributeSuggestions']=!0x0,_0x3eafec();}['_isRegisteredAttribute'](_0xf7384b){const _0x3a2752=this['_isBlockAttribute'](_0xf7384b),_0x40b709=this['_inlineAttributeKeys']['has'](_0xf7384b);return _0x3a2752||_0x40b709;}['_reduceExistingSuggestions'](_0x2f5f91,_0xd231fd){if(0x0==_0xd231fd['length'])return!0x1;let _0x5135d5=!0x1;for(const _0x5975ca of _0xd231fd){const _0x1cfb0a=this['_findSuggestions'](_0x5975ca['range'],'attribute')['filter'](_0x169d5b=>!_0x169d5b['meta']['isNextTo'])['map'](_0x58f33f=>_0x58f33f['suggestion']),_0x1e0b30=_0x3429f2({'newValue':_0x5975ca['newValue']});_0x1cfb0a['filter'](_0x437c09=>{const [_0x3878b9,_0x2f323f]=_0x437c09['subType']['split']('|');return _0x3878b9==_0x5975ca['key']&&_0x2f323f!=_0x1e0b30;})['forEach'](_0x356287=>{this['_reduceSuggestionAttributeRange'](_0x356287,_0x5975ca['range'],_0x2f5f91),_0x5135d5=!0x0;});}return _0x5135d5;}['_reduceSuggestionAttributeRange'](_0x2a9b74,_0x3191eb,_0x3ddac6){const _0x204570=_0x2a9b74['getFirstRange']()['getDifference'](_0x3191eb);0x0!==_0x204570['length']?0x1!==_0x204570['length']?this['_breakSuggestionMarker'](_0x2a9b74,_0x3191eb['start'],_0x3191eb['end']):this['_setSuggestionRange'](_0x2a9b74,_0x204570[0x0]):_0x3ddac6['removeMarker'](_0x2a9b74['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x353855){this['_editor']=_0x353855,this['_model']=_0x353855['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x46968e,_0x274373,_0x192a22,_0x49dec1,_0x49f10e,_0x49383c,_0x1bcea7){return new o(this['_model'],{'type':_0x46968e,'subType':_0x274373,'id':_0x192a22,'originalSuggestionId':_0x1bcea7,'author':_0x49dec1,'creator':_0x49dec1,'attributes':_0x49f10e,'onAttributesChange':_0x49383c,'onAccept':(..._0xe80dd4)=>this['getSuggestionCallback'](_0x46968e,_0x274373,'accept')(..._0xe80dd4),'onDiscard':(..._0x5191a0)=>this['getSuggestionCallback'](_0x46968e,_0x274373,'discard')(..._0x5191a0)});}['registerCustomCallback'](_0x5a9324,_0x588ff5,_0x5c509a,_0x8ba503){const _0x308b63=_0x5a9324+':'+_0x588ff5+':'+_0x5c509a;this['_customCallbacks']['set'](_0x308b63,_0x8ba503);}['getSuggestionCallback'](_0x13dda5,_0x46423d,_0x1ee3ce){const _0x3e07cc=_0x13dda5+':'+_0x46423d+':'+_0x1ee3ce;return this['_customCallbacks']['get'](_0x3e07cc)||this['_defaultCallbacks']['get'](_0x13dda5+':'+_0x1ee3ce);}['_registerDefaultCallbacks'](){const _0x5a1fa5=()=>!0x1,_0xa68c19=_0x46088e=>{_0x46088e['sort']((_0x5b56c7,_0xffc8bf)=>_0x5b56c7['start']['isBefore'](_0xffc8bf['start'])?0x1:-0x1),this['_model']['change'](_0x30f763=>{for(const _0x4fd32f of _0x46088e){let _0x557927;_0x557927=_0x4fd32f['end']['isAtEnd']&&_0x4fd32f['end']['parent']==_0x4fd32f['start']['nodeAfter']?_0x30f763['createSelection'](_0x4fd32f['start']['nodeAfter'],'on'):_0x30f763['createSelection'](_0x4fd32f),this['_model']['deleteContent'](_0x557927,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4fa5ae=(_0x5bad93,_0x8a68e2)=>{_0x8a68e2&&this['_model']['change'](_0x246894=>{const {commandName:_0x1cef90,commandParams:_0x49d168=[]}=_0x8a68e2,_0x243def=_0x5bad93['map'](_0x53b33f=>(Lt(_0x53b33f)&&(_0x53b33f=this['_model']['createRange'](_0x53b33f['end'])),_0x53b33f))['filter'](_0x4e943b=>'$graveyard'!==_0x4e943b['root']['rootName']);if(_0x243def['length']<0x1)return;const _0x4a3820=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4b4684=>_0x34c04c['fromRange'](_0x4b4684));_0x246894['setSelection'](_0x243def);for(const _0x70ec77 of this['_editor']['commands']['commands']())_0x70ec77['refresh']();_0x49d168['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1cef90,..._0x49d168);const _0x26ca77=_0x4a3820['filter'](_0x288cd7=>'$graveyard'!=_0x288cd7['root']['rootName']);_0x26ca77['length']>0x0&&_0x246894['setSelection'](_0x26ca77);for(const _0x1cde13 of _0x4a3820)_0x1cde13['detach']();});},_0x1b3a7f=(_0x31bc8a,_0x3478e8)=>0x1==_0x31bc8a['length']&&0x1==_0x3478e8['length']&&_0x31bc8a[0x0]['end']['isEqual'](_0x3478e8[0x0]['start']),_0x5dadab=(_0x4872c2,_0x4d5335,_0x4bbd74,_0x46d0be)=>Wt(_0x4872c2,_0x4d5335,_0x4bbd74,_0x46d0be)?[_0x4872c2,_0x4d5335]:Wt(_0x4d5335,_0x4872c2,_0x46d0be,_0x4bbd74)?[_0x4d5335,_0x4872c2]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5a1fa5),this['_defaultCallbacks']['set']('insertion:discard',_0xa68c19),this['_defaultCallbacks']['set']('insertion:join',_0x1b3a7f),this['_defaultCallbacks']['set']('insertion:chain',_0x5dadab),this['_defaultCallbacks']['set']('deletion:accept',_0xa68c19),this['_defaultCallbacks']['set']('deletion:discard',_0x5a1fa5),this['_defaultCallbacks']['set']('deletion:join',_0x1b3a7f),this['_defaultCallbacks']['set']('deletion:chain',_0x5dadab),this['_defaultCallbacks']['set']('formatInline:accept',_0x4fa5ae),this['_defaultCallbacks']['set']('formatInline:discard',_0x5a1fa5),this['_defaultCallbacks']['set']('formatInline:join',_0x1b3a7f),this['_defaultCallbacks']['set']('formatInline:chain',_0x5a1fa5),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4fa5ae),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5a1fa5),this['_defaultCallbacks']['set']('formatBlock:join',_0x1b3a7f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5a1fa5),this['_defaultCallbacks']['set']('attribute:accept',_0x5a1fa5),this['_defaultCallbacks']['set']('attribute:discard',(_0x44dfb8,_0x57f851)=>{if(!_0x57f851)return;const _0x487dcc=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3c9cab=>{if(_0x57f851['key']==u)for(const _0x466330 of _0x44dfb8){const _0x4be675=_0x466330['start']['nodeAfter'],_0xa7fd6d=_0x57f851['oldValue'];_0x3c9cab['rename'](_0x4be675,_0xa7fd6d);}else{if(_0x487dcc['_isBlockAttribute'](_0x57f851['key'])){for(const _0x39cf1f of _0x44dfb8)void 0x0!==_0x57f851['oldValue']?_0x3c9cab['setAttribute'](_0x57f851['key'],_0x57f851['oldValue'],_0x39cf1f['start']['nodeAfter']):_0x3c9cab['removeAttribute'](_0x57f851['key'],_0x39cf1f['start']['nodeAfter']);}else{for(const _0x52f30e of _0x44dfb8)_0x57f851['oldValue']?_0x3c9cab['setAttribute'](_0x57f851['key'],_0x57f851['oldValue'],_0x52f30e):_0x3c9cab['removeAttribute'](_0x57f851['key'],_0x52f30e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1b3a7f);}}function Gt(_0x581743,_0x22db0c,_0x1bbfcc){for(const _0x548c9b of _0x22db0c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x548c9b['root']==_0x548c9b)return!0x1;if(!_0x1bbfcc['containsItem'](_0x548c9b))return!0x1;if(_0x581743['isObject'](_0x548c9b)||_0x581743['isLimit'](_0x548c9b))return!0x0;}return!0x1;}function Lt(_0x566bcc){return _0x566bcc['end']['parent']==_0x566bcc['start']['nodeAfter']&&_0x566bcc['end']['isAtStart'];}function Jt(_0x2bc2ce,_0x3013c8,_0x32daf9,_0x1651bd){const _0x3cbf1c=_0x48d192=>!_0x48d192['item']['is']('$textProxy')&&!_0x1651bd['isObject'](_0x48d192['item']),_0x549403=_0x2bc2ce['start']['getLastMatchingPosition'](_0x3cbf1c),_0x4ac72e=_0x2bc2ce['end']['getLastMatchingPosition'](_0x3cbf1c,{'direction':'backward'});return(!_0x2bc2ce['start']['isEqual'](_0x549403)||!_0x2bc2ce['end']['isEqual'](_0x4ac72e))&&(_0x549403['isBefore'](_0x4ac72e)?_0x32daf9['updateMarker'](_0x3013c8,{'range':_0x32daf9['createRange'](_0x549403,_0x4ac72e)}):_0x32daf9['removeMarker'](_0x3013c8),!0x0);}function Kt(_0x2b021f){return _0x3429f2(_0x2b021f);}function Ht(_0x825bba){const _0x514c94=_0x825bba['start']['nodeAfter'];return _0x514c94&&_0x514c94['is']('element');}function qt(_0x4bcfd6,_0x18029d){return null==_0x4bcfd6['end']['nodeBefore']&&_0x4bcfd6['end']['parent']==_0x4bcfd6['start']['nodeAfter']?zt(_0x4bcfd6['start']['nodeAfter'],_0x18029d):_0x4bcfd6;}function zt(_0x3458af,_0x4f0ca4){const _0x539e34=_0x4f0ca4['schema']['isObject'](_0x3458af)||_0x4f0ca4['schema']['isSelectable'](_0x3458af);return _0x4f0ca4['createRange'](_0x4f0ca4['createPositionAt'](_0x3458af,'before'),_0x539e34?_0x4f0ca4['createPositionAfter'](_0x3458af):_0x4f0ca4['createPositionAt'](_0x3458af,'end'));}function Wt(_0x2c7069,_0x49c1a1,_0x912003,_0x57e249){return!!Qt(_0x2c7069,_0x49c1a1)&&_0x912003['end']['isEqual'](_0x57e249['start']);}function Qt(_0x3d163b,_0x285b4d){if(!_0x3d163b['_isDataLoaded']||!_0x285b4d['_isDataLoaded'])return!0x1;const _0x2cb15f=new Set(Object['keys'](_0x3d163b['attributes'])),_0x32fe1d=new Set(Object['keys'](_0x285b4d['attributes']));if(_0x2cb15f['delete']('groupId'),_0x32fe1d['delete']('groupId'),0x0==_0x2cb15f['size']&&0x0==_0x32fe1d['size'])return!0x0;if(_0x2cb15f['size']!=_0x32fe1d['size'])return!0x1;const _0x16227e={..._0x3d163b['attributes']},_0xf9af2f={..._0x285b4d['attributes']};return delete _0x16227e['groupId'],delete _0xf9af2f['groupId'],JSON['stringify'](_0x16227e)==JSON['stringify'](_0xf9af2f);}function Xt(_0xcd32b7,_0x2900c2){const _0x3b1c2b=Yt(_0xcd32b7['attributes']),_0x24404c=Yt(_0x2900c2);if(!_0xcd32b7['_isDataLoaded'])return!0x1;for(const _0x1d222d of Object['keys'](_0x24404c))if(!_0x550687(_0x3b1c2b[_0x1d222d],_0x24404c[_0x1d222d]))return!0x1;return!0x0;}function Yt(_0x3b0d07){const _0x4c9cb2=Object['assign']({},_0x3b0d07);return delete _0x4c9cb2['skipNestingCheck'],delete _0x4c9cb2['tablePasteChainId'],_0x4c9cb2;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xc1a90b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5423ad,_0x4199f2,_0x3cb89d,_0x1a8a93){super(),this['model']=_0x4199f2,this['view']=_0x3cb89d,this['commentThreadController']=_0x1a8a93,this['_editor']=_0x5423ad,this['_acceptCommand']=_0x5423ad['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5423ad['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x56f09d,_0x40a879)=>_0x56f09d||_0x40a879),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x465b5c=>_0x465b5c&&this['_editor']['model']['canEditAt'](_0x4199f2['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x300491=>_0x300491&&this['_editor']['model']['canEditAt'](_0x4199f2['getRanges']())),this['_pendingAction']=null,_0x3cb89d['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3cb89d,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3cb89d,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3cb89d,'change:isDirty',()=>{_0x3cb89d['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 _0x5dd51f=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5dd51f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x2922bf{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1f6bad,_0x74741a,_0x2bd84a,_0x5ed239){super(_0x1f6bad),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x402f1e(_0x1f6bad,c(_0x1f6bad,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x74741a['authoredAt']),this['bind']('authoredAt')['to'](_0x74741a),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',_0x74741a,'authoredAt',this,'descriptionParts',(_0x1ec989,_0xa4a29c,_0xf1d38)=>{const _0x783f70=_0xf1d38['map'](_0xe8928c=>ls(_0xe8928c['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1ec989-0x1,_0x74741a['author']['name'],_0xa4a29c?_0x5ed239['formatDateTime'](_0xa4a29c):'',new DOMParser()['parseFromString'](_0x783f70,'text/html')['body']['textContent']]);}),this['focusables']=new _0x377fd0(),this['focusTracker']=new _0x203964(),this['keystrokes']=new _0x24e332(),this['focusCycler']=new _0x4b9246({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xb5bd4d=>_0xb5bd4d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x74741a,this['_localUser']=_0x2bd84a,this['_config']=_0x5ed239,_0x5ed239['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x39dc9a(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xdf69ec}=this['_config'];this['commentsListView']=new _0xdf69ec(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',_0xe4d3a2=>_0xe4d3a2+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x47ab48,_0x306e24)=>_0x47ab48||!!_0x306e24);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x218262}=this['_config'],_0x4c2295=new _0x218262(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5cb7a2=_0x4c2295['commentInputView'];return _0x4c2295['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5cb7a2,'value',(_0x3abeb1,_0x458893,_0xa776af)=>!!_0xa776af||_0x3abeb1&&!_0x458893),_0x5cb7a2['on']('submit',(_0x2552d1,_0x354b33)=>{this['fire']('addComment',_0x354b33),_0x5cb7a2['editor']['setData']('');}),_0x5cb7a2['on']('cancel',()=>this['focus']()),_0x5cb7a2['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4c2295;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0xc1f79a,_0x15a5e6,_0x1feb82,_0x418a4e){super(_0xc1f79a,_0x15a5e6,_0x1feb82,_0x418a4e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x41645a=>_0x41645a&&_0x41645a[0x0]?_0x41645a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x593cbd,_0x584d3a)=>{let _0x95b3a5='';for(const _0x52f2a0 of _0x593cbd)_0x95b3a5+='<p>'+ls(_0x52f2a0['content'],_0x52f2a0['color'])+'</p>';return _0x584d3a?_0x95b3a5:ti(_0x95b3a5,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x418a4e['SuggestionView'](_0xc1f79a,_0x15a5e6,{'formatDateTime':_0x418a4e['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 _0x4d6591=this['bindTemplate'],_0x3a2e46=[this['suggestionView']];return this['commentsListView']&&_0x3a2e46['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3a2e46['push'](this['commentThreadInputView']),_0x3a2e46['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4d6591['if']('isActive','ck-suggestion-wrapper--active'),_0x4d6591['to']('type',_0x17ac6b=>'ck-suggestion-'+_0x17ac6b),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':_0x4d6591['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3a2e46};}['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 _0x2922bf{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x40cafd,_0x451023,_0x40e870){super(_0x40cafd),this['_model']=_0x451023,this['_config']=_0x40e870,this['set']('description',''),this['bind']('authoredAt')['to'](_0x451023),this['acceptButton']=this['_createButton'](c(_0x40cafd,'Accept\x20suggestion'),_0x3b1a58,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x40cafd,'Discard\x20suggestion'),_0x774a8b,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x48854b(_0x40cafd,_0x451023['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x377fd0([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x203964(),this['keystrokes']=new _0x24e332(),this['focusCycler']=new _0x4b9246({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x15d3f1=>_0x15d3f1['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1d7a9a=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1d7a9a['innerHTML']=this['description'],this['on']('change:description',(_0x5c2fbc,_0x31cd1c,_0x509190)=>{_0x1d7a9a['innerHTML']=_0x509190;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x21ef24=this['bindTemplate'],_0x4f2f4e=[{'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':_0x21ef24['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x21ef24['to']('authoredAt',_0x33dce2=>this['_config']['formatDateTime'](_0x33dce2))}]}]},{'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']&&_0x4f2f4e['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':_0x4f2f4e}]};}['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'](_0x27c61c,_0x42ecd6,_0x110680,_0x2a4b20,_0x46a0f2){const _0x1df8ad=new _0x2214e7(this['locale']);return _0x1df8ad['set']({'label':_0x27c61c,'icon':_0x42ecd6,'tooltip':!0x0,'tooltipPosition':_0x46a0f2}),_0x1df8ad['extendTemplate']({'attributes':{'class':_0x110680}}),_0x1df8ad['on']('execute',()=>{this['fire'](_0x2a4b20,this['_model']['id']);}),_0x1df8ad;}['_setupKeyboardNavigation'](){const _0x8726f6=this['element'];this['keystrokes']['listenTo'](_0x8726f6);for(const _0x31633f of this['focusables'])this['focusTracker']['add'](_0x31633f['element']),this['keystrokes']['listenTo'](_0x31633f['element']);this['keystrokes']['set']('enter',(_0x11393d,_0x4e65ec)=>{_0x8726f6===_0x11393d['target']&&(this['focusCycler']['focusFirst'](),_0x4e65ec());}),this['keystrokes']['set']('esc',(_0x3a19fd,_0x211c1b)=>{_0x8726f6!==_0x3a19fd['target']&&(this['focus'](),_0x211c1b());});}}class d extends _0x5575fe{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x39fba1,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59fab5){super(_0x59fab5),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x48a357=this['editor']['config'];_0x48a357['define']('trackChanges.SuggestionThreadView',fe),_0x48a357['define']('trackChanges.SuggestionView',we),_0x48a357['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x48a357['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5736ad,_0x13d9ba){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x233a0c,_0x249834]of this['_handleControllerBuffer']){const _0x2526d1=this['_suggestionToController']['has'](_0x233a0c);_0x2526d1||_0x249834?_0x2526d1&&_0x249834&&this['_destroyController'](_0x233a0c):this['_initializeController'](_0x233a0c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5736ad,_0x13d9ba);}['init'](){const _0x2a1c75=this['editor'],_0x2856e1=_0x2a1c75['plugins']['get']('TrackChangesEditing'),_0x27c757=_0x2a1c75['plugins']['get']('Annotations'),_0x162f1a=_0x2a1c75['plugins']['get']('EditorAnnotations'),_0x58226a=_0x2a1c75['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x162f1a['addSourceCollector'](()=>{const _0x1dd2cb=[];for(const [_0x17fedf,_0x5ecb3d]of Array['from'](this['_suggestionToController'])){const _0x5b64de=_0x17fedf['getAllAdjacentSuggestions'](),_0x2e366a=[];for(const _0x5571c5 of _0x5b64de){if(!_0x5571c5['isInContent'])continue;if(_0x5571c5['isMultiRange']){_0x2e366a['push'](..._0x5571c5['getRanges']());continue;}const _0xb780fc=_0x5571c5['getFirstRange']();if(_0x2e366a['length']>0x0){const _0xee56e3=_0x2e366a[0x0]['getJoined'](_0xb780fc);if(_0xee56e3){_0x2e366a[0x0]=_0xee56e3;continue;}}_0x2e366a['push'](_0xb780fc);}_0x1dd2cb['push']([_0x5ecb3d['view'],_0x2e366a]);}return _0x1dd2cb;}),this['listenTo'](_0x2856e1,'suggestionLoaded',(_0x436faa,_0x5b7cba)=>{this['listenTo'](_0x5b7cba,'change:previous',(_0x39b2a4,_0x549d94,_0x4748aa,_0x22af0c)=>{_0x5b7cba['isInContent']&&(null==_0x4748aa?(this['_updateController'](_0x22af0c['head']),this['_handleSuggestionControllerDelayed'](_0x5b7cba,!0x1)):(this['_updateController'](_0x4748aa['head']),null==_0x22af0c&&this['_handleSuggestionControllerDelayed'](_0x5b7cba,!0x0)));}),null!==_0x5b7cba['previous']?this['_updateController'](_0x5b7cba['head']):this['_handleSuggestionControllerDelayed'](_0x5b7cba,!0x1);}),this['listenTo'](_0x2856e1,'suggestionUnloaded',(_0x2ba042,_0x19f064,_0x166987)=>{this['stopListening'](_0x19f064,'change:previous'),this['_handleControllerBuffer']['delete'](_0x19f064),this['_suggestionToController']['has'](_0x19f064)&&this['_destroyController'](_0x19f064),_0x166987&&this['_updateController'](_0x166987['head']);}),this['listenTo'](_0x2856e1,'suggestionChanged',(_0x4c0d05,_0xd90d8b)=>{this['_updateController'](_0xd90d8b);}),this['listenTo'](_0x27c757,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x58226a,'addComment',(_0x2ee01c,{threadId:_0x21c091,isFromAdapter:_0x1bfb96})=>{if(_0x1bfb96||!_0x2856e1['hasSuggestion'](_0x21c091))return;const _0x15e3ca=_0x2856e1['getSuggestion'](_0x21c091);this['_suggestionToController']['get'](_0x15e3ca)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4ebdb9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1b3ed4;for(const _0x2bfb06 in _0x4ebdb9){const _0xa2b3e1=_0x2bfb06,_0x515812=_0x4ebdb9[_0xa2b3e1];if('trackChangesLicenseKeyValid'==_0x515812||'trackChangesLicenseKeyInvalid'==_0x515812||'trackChangesLicenseKeyExpired'==_0x515812||'trackChangesLicenseKeyDomainLimit'==_0x515812||'trackChangesLicenseKeyNotAllowed'==_0x515812||'trackChangesLicenseKeyEvaluationLimit'==_0x515812||'trackChangesLicenseKeyTrialLimit'==_0x515812||'trackChangesLicenseKeyUsageLimit'==_0x515812){delete _0x4ebdb9[_0xa2b3e1],_0x1b3ed4=_0x515812,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1b3ed4&&_0x4ebdb9['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1b3ed4&&_0x4ebdb9['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1b3ed4&&_0x4ebdb9['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1b3ed4&&_0x4ebdb9['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1b3ed4&&_0x4ebdb9['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1b3ed4&&_0x4ebdb9['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1b3ed4&&_0x4ebdb9['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0xc7897a=this['editor']['plugins']['get']('Annotations'),_0x28540f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55c712=Array['from'](_0xc7897a['activeAnnotations'],_0x350a4f=>_0x350a4f['innerView'])['filter'](_0x496f07=>this['_viewToController']['has'](_0x496f07)),_0x142de0=[];for(const _0x2f3a2c of _0x55c712){const _0x43c9b6=this['_viewToController']['get'](_0x2f3a2c)['model']['getAllAdjacentSuggestions']();_0x142de0['push'](..._0x43c9b6['reduce']((_0x433837,_0x5e40fb)=>[..._0x433837,..._0x5e40fb['getMarkerNames']()],[]));}_0x28540f['activeMarkers']=_0x142de0;}['_addUIComponentsToFactory'](){const _0x42b189=this['editor'],_0xc8c936=_0x42b189['locale'],_0x473d11=c(_0xc8c936,'Track\x20changes'),_0x139173=new _0x412f5d([{'type':'switchbutton','model':new _0x14e505({'withText':!0x0,'isToggleable':!0x0,'label':_0x473d11,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x14e505({'withText':!0x0,'label':c(_0xc8c936,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x14e505({'withText':!0x0,'label':c(_0xc8c936,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x14e505({'withText':!0x0,'label':c(_0xc8c936,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x14e505({'withText':!0x0,'label':c(_0xc8c936,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x42b189['plugins']['has']('TrackChangesPreview')&&_0x139173['addMany']([{'type':'separator'},{'type':'button','model':new _0x14e505({'withText':!0x0,'label':c(_0xc8c936,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x397ac2 of _0x139173)if(ke(_0x397ac2)){const _0x2ef312=_0x42b189['commands']['get'](_0x397ac2['model']['commandName']);_0x397ac2['model']['bind']('isOn','isEnabled')['to'](_0x2ef312,'value','isEnabled');}_0x42b189['ui']['componentFactory']['add']('trackChanges',_0x4e34b7=>this['_createToolbarButton'](_0x4e34b7,_0x139173,_0x473d11)),_0x42b189['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2c0772=>this['_createMenuBarMenu'](_0x2c0772,_0x139173,_0x473d11));}['_createToolbarButton'](_0x27d0fc,_0x9638f8,_0x12ae91){const _0x539b01=_0x24b707(_0x27d0fc,_0x5f2e56),_0x18926d=this['editor']['commands']['get']('trackChanges');_0x539b01['buttonView']['set']({'tooltip':_0x12ae91,'label':_0x12ae91,'icon':_0x3ccc1d}),_0x539b01['buttonView']['bind']('isOn')['to'](_0x18926d,'value'),_0x539b01['buttonView']['on']('execute',()=>{_0x18926d['execute'](),this['editor']['editing']['view']['focus']();}),_0x2dd363(_0x539b01,_0x9638f8,{'role':'menu'});const _0x39200e=[];for(const _0x267c9a of _0x9638f8)ke(_0x267c9a)&&_0x39200e['push'](this['editor']['commands']['get'](_0x267c9a['model']['commandName']));const _0x74da21=_0x539b01['buttonView'];return _0x74da21['actionView']['unbind']('isEnabled'),_0x74da21['arrowView']['unbind']('isEnabled'),_0x74da21['actionView']['bind']('isEnabled')['to'](_0x18926d,'isEnabled'),_0x74da21['arrowView']['bind']('isEnabled')['toMany'](_0x39200e,'isEnabled',(..._0x15f633)=>_0x15f633['some'](_0x4762c2=>_0x4762c2)),_0x539b01['on']('execute',_0x24d372=>{this['editor']['execute'](_0x24d372['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x539b01;}['_createMenuBarMenu'](_0x4d90a5,_0x10ad03,_0x1b3be3){const _0x41417e=new _0x45eb33(_0x4d90a5),_0x1fe91d=this['editor']['commands']['get']('trackChanges');_0x41417e['buttonView']['set']({'label':_0x1b3be3,'icon':_0x3ccc1d});const _0x51165c=new _0x24e4b9(_0x4d90a5);for(const _0x3219c2 of _0x10ad03){if('separator'==_0x3219c2['type']){_0x51165c['items']['add'](new _0x1f7a58(_0x4d90a5));continue;}const _0x4ea4e0=new _0x207990(_0x4d90a5,_0x41417e),_0x53187=new _0x502a3d(_0x4d90a5),_0x5ca434=_0x3219c2['model'];_0x53187['bind'](...Object['keys'](_0x5ca434))['to'](_0x5ca434),_0x53187['delegate']('execute')['to'](_0x41417e),_0x53187['on']('execute',()=>{this['editor']['execute'](_0x5ca434['commandName']),this['editor']['editing']['view']['focus']();}),_0x4ea4e0['children']['add'](_0x53187),_0x51165c['items']['add'](_0x4ea4e0);}return _0x41417e['bind']('isEnabled')['to'](_0x1fe91d,'isEnabled'),_0x41417e['panelView']['children']['add'](_0x51165c),_0x41417e;}['_initializeController'](_0x7fb344){const _0x3ea762=this['editor'],_0x12de5a=_0x3ea762['config'],_0x507305=_0x3ea762['plugins']['get']('Annotations'),_0x2d0eb4=_0x3ea762['plugins']['get']('CommentsRepository'),_0x4ae2a0=_0x3ea762['plugins']['get']('EditorAnnotations'),_0x180c3e=_0x3ea762['plugins']['get'](_0x39fba1)['me'],_0x26a543=_0x12de5a['get']('trackChanges')['SuggestionThreadView'],_0x14d413=_0x12de5a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5773b4,CommentThreadInputView:_0x3aca65}=_0x3ea762['plugins']['get']('CommentsUI');let _0x1f0e86,_0x48ac57,_0x5d461e;this['_annotationViews']['has'](_0x7fb344['id'])?(_0x48ac57=this['_annotationViews']['get'](_0x7fb344['id']),_0x1f0e86=_0x48ac57['mainView']):(_0x1f0e86=new _0x26a543(_0x3ea762['locale'],_0x7fb344,_0x180c3e,{'disableComments':this['_disableComments'],'editorConfig':{..._0x12de5a['get']('comments.editorConfig'),'licenseKey':_0x12de5a['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x12de5a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x12de5a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x12de5a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5f5751(_0x12de5a['get']('locale'),_0x3ea762['locale']),'CommentView':_0x12de5a['get']('comments')['CommentView'],'CommentsListView':_0x5773b4,'CommentThreadInputView':_0x3aca65,'SuggestionView':_0x14d413}),_0x1f0e86['suggestionView']['acceptButton']['on']('execute',()=>{_0x3ea762['editing']['view']['focus']();}),_0x1f0e86['suggestionView']['discardButton']['on']('execute',()=>{_0x3ea762['editing']['view']['focus']();}),_0x48ac57=_0x507305['createAnnotationView'](this['editor']['locale'],_0x1f0e86),_0x48ac57['bind']('isDirty')['to'](_0x1f0e86,'isDirty'),_0x48ac57['bind']('length')['to'](_0x1f0e86),_0x48ac57['bind']('type')['to'](_0x1f0e86,'type',_0x14411e=>'suggestion-'+_0x14411e),_0x1f0e86['on']('escape',()=>{_0x5d461e['fire']('escape');}),this['_annotationViews']['set'](_0x7fb344['id'],_0x48ac57));const _0x5f1e9c=_0x2d0eb4['createCommentThreadController'](_0x7fb344['commentThread'],_0x1f0e86),_0x39c1ed=new pe(_0x3ea762,_0x7fb344,_0x1f0e86,_0x5f1e9c),_0x5c2fee=_0x7fb344['getAllAdjacentSuggestions']()['filter'](_0x282eb3=>_0x282eb3['isInContent']);_0x1f0e86['descriptionParts']=_0x3ea762['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5c2fee),this['_suggestionToController']['set'](_0x7fb344,_0x39c1ed),this['_viewToController']['set'](_0x1f0e86,_0x39c1ed),_0x5d461e=_0x507305['createAnnotation']({'view':_0x48ac57,'target':()=>{const _0x1d22e4=[],_0x38fee4=_0x7fb344['getAllAdjacentSuggestions']()['filter'](_0x196ef1=>_0x196ef1['isInContent']);for(const _0x56bfc2 of _0x38fee4)_0x1d22e4['push'](..._0x56bfc2['getMarkers']());return _0x385d59(_0x3ea762['editing'],_0x1d22e4);},'type':()=>'suggestion-'+_0x39c1ed['view']['type']}),_0x2d0eb4['_bindAnnotationToEditors'](_0x1f0e86,_0x5d461e),_0x507305['add'](_0x5d461e),_0x4ae2a0['registerAnnotation'](_0x5d461e);}['_destroyController'](_0x29d3fd){const _0x15e7b0=this['editor']['plugins']['get']('CommentsRepository'),_0x40ece1=this['editor']['plugins']['get']('Annotations'),_0x3bb165=this['_suggestionToController']['get'](_0x29d3fd),_0x40c375=_0x3bb165['view'],_0x4237a7=_0x40ece1['getByInnerView'](_0x40c375);_0x15e7b0['_unbindEditors'](_0x40c375),_0x4237a7&&_0x40ece1['remove'](_0x4237a7),this['_suggestionToController']['delete'](_0x29d3fd),this['_viewToController']['delete'](_0x40c375),_0x3bb165['destroy']();}['_updateController'](_0x2449a9){if(!_0x2449a9['isInContent']||!this['_suggestionToController']['has'](_0x2449a9))return;const _0x152fab=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fe1be=this['_suggestionToController']['get'](_0x2449a9),_0xa6af54=_0x2449a9['getAllAdjacentSuggestions']();_0x1fe1be['view']['descriptionParts']=_0x152fab['descriptionFactory']['getDescriptions'](_0xa6af54);}['destroy'](){for(const _0x328670 of this['_suggestionToController']['keys']())this['_destroyController'](_0x328670);for(const _0x1309aa of this['_annotationViews']['values']())_0x1309aa['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x242190){return'model'in _0x242190;}class k extends _0x5575fe{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x27a852){this['editor']['plugins']['get'](p)['adapter']=_0x27a852;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x121dd7){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x121dd7);}['getSuggestions']({skipNotAttached:_0x1c5c5d=!0x1,toJSON:_0x15a700=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1c5c5d,'toJSON':_0x15a700});}['getSuggestion'](_0x141341){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x141341);}}const w=['Pagination'];class T extends _0x5575fe{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4fb323=this['editor'];if(_0x4fb323['config']['define']('trackChangesData.editorCreator',_0x1aec88=>{const _0x4f823f=_0x4fb323['model']['document']['getRootNames']()['reduce']((_0x4116e4,_0x2ec2bf)=>(_0x4116e4[_0x2ec2bf]='',_0x4116e4),{});return _0x4fb323['constructor']['create'](_0x4f823f,_0x1aec88);}),'function'!=typeof _0x4fb323['config']['get']('trackChangesData')['editorCreator'])throw new _0x840840('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x10a9f5){return N(this['editor'],!0x0,_0x10a9f5);}['getDataWithDiscardedSuggestions'](_0x1d87d6){return N(this['editor'],!0x1,_0x1d87d6);}}class D extends _0x5575fe{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e71ae){function _0x3d023c(_0x1bb31f){return _0x1bb31f['map'](_0x4514df=>String['fromCharCode'](_0x4514df))['join']('');}super(_0x3e71ae),this['result']='end',_0x3e71ae[_0x3d023c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d023c([0x76,0x69,0x65,0x77])][_0x3d023c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d023c([0x61,0x75,0x74,0x6f]),_0x3e71ae[_0x3d023c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3d023c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d023c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3d023c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3d023c([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(_0x5cc8bc){return void 0x0!==_0x5cc8bc['getRootsAttributes'];}async function N(_0x443091,_0x5058a4,_0x3b4f01){const _0x548c25=_0xd65147(_0x443091,w);_0x548c25['plugins']['push'](p,D),_0x548c25['rootsAttributes']=Ge(_0x443091)?_0x443091['getRootsAttributes']():void 0x0;const _0x311768=document['createDocumentFragment'](),_0x3a8d6a=_0x443091['config']['get']('trackChangesData')['editorCreator'],_0x2fda6f=await _0x3a8d6a(_0x548c25,()=>function(_0x45368c){const _0x116123=document['createElement']('div');return _0x45368c['appendChild'](_0x116123),_0x116123;}(_0x311768));!function(_0x53dfdd,_0xb770ff){const _0x591f86=_0x53dfdd['model']['document']['getRootNames']()['reduce']((_0x405425,_0x2305c8)=>(_0x405425[_0x2305c8]=_0x53dfdd['data']['get']({'rootName':_0x2305c8}),_0x405425),{}),_0x46ef8f=_0x53dfdd['plugins']['get']('Users')['users']['map'](_0x56a97c=>({'id':_0x56a97c['id'],'name':_0x56a97c['name']})),_0x294f6e=_0x53dfdd['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2d6874=_0x53dfdd['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x638bf9=_0xb770ff['plugins']['get']('Users'),_0x39116b=_0xb770ff['plugins']['get']('TrackChangesEditing'),_0x3346aa=_0xb770ff['plugins']['get']('CommentsRepository');for(const _0x36ba0c of _0x3346aa['getCommentThreads']())_0x36ba0c['remove']();for(const _0x46a429 of _0x46ef8f)_0x638bf9['getUser'](_0x46a429['id'])||_0x638bf9['addUser'](_0x46a429);_0x638bf9['me']||_0x638bf9['useAnonymousUser']();for(const _0x91b6f7 of _0x2d6874)_0x3346aa['addCommentThread'](_0x91b6f7);for(const _0x4d663d of _0x294f6e)_0x39116b['addSuggestionData'](_0x4d663d);_0xb770ff['data']['set'](_0x591f86);}(_0x443091,_0x2fda6f),_0x2fda6f['execute'](_0x5058a4?'acceptAllSuggestions':'discardAllSuggestions');const _0x16208c=Ge(_0x2fda6f)?_0x2fda6f['getFullData'](_0x3b4f01):_0x2fda6f['data']['get'](_0x3b4f01);return await _0x2fda6f['destroy'](),_0x16208c;}class Me extends _0x2922bf{['options'];constructor(_0x2854c0,_0x442623){super(_0x2854c0),this['options']=_0x442623,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'](_0x34dbef,_0xf12e15){if(!this['element'])return;const _0xfa18b7=[];for(const [_0x226408,_0x13099c]of _0x34dbef){const _0xffc73e=document['createElement']('div');_0xffc73e['setAttribute']('data-ck-root-name',_0x226408),_0xffc73e['className']=_0x13099c['classes']+'\x20ck-track-changes-preview__root-container',_0xffc73e['innerHTML']=_0x13099c['content'],_0xfa18b7['push'](_0xffc73e);}_0xf12e15(this['element'],_0xfa18b7),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x334ec3{constructor(_0x1af7df){super(_0x1af7df),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3908f9=this['editor'],_0x1c3062=_0x3908f9['locale'],_0x37a6ab=_0x3908f9['plugins']['get']('Dialog');let _0x4ce191;const _0x490c1e=function(_0x5ab233){const _0x251d2e={};if('editables'in _0x5ab233['ui']['view']){for(const [_0x51bcd3,_0xa9a42b]of Object['entries'](_0x5ab233['ui']['view']['editables']))_0x251d2e[_0x51bcd3]=_0xa9a42b['element'];}else _0x251d2e[_0x5ab233['model']['document']['getRootNames']()[0x0]]=_0x5ab233['ui']['view']['editable']['element'];return _0x251d2e;}(_0x3908f9),_0x80f954=function(_0x202e23){let _0x4cc586=0x0;for(const _0x1e6a2b of Object['values'](_0x202e23))_0x4cc586=Math['max'](_0x4cc586,_0x1e6a2b['getBoundingClientRect']()['width']);let _0x4f1d1f=0x0;for(const _0x6aed66 of Object['values'](_0x202e23))_0x4f1d1f+=_0x6aed66['getBoundingClientRect']()['height'];const _0x407d4e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x229353=Math['min'](_0x4f1d1f,_0x407d4e);return{'width':_0x4cc586,'height':_0x229353};}(_0x490c1e);_0x37a6ab['show']({'id':'finalContentPreview','title':c(_0x1c3062,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1c3062,{'dialogRects':_0x80f954}),'onHide':()=>{_0x4ce191['detachFromDom']();},'onShow':()=>{_0x3908f9['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0xce9393=>{const _0x3cfad2=this['_standarizeRootsData'](_0xce9393,_0x3908f9,_0x490c1e);_0x37a6ab['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3cfad2,_0x3908f9['config']['get']('trackChanges.preview.renderFunction'));}),_0x4ce191=new _0x36d5ab(_0x1c3062,[_0x37a6ab['view']]),_0x4ce191['attachToDom'](),_0x4ce191['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3908f9['once']('destroy',()=>{_0x4ce191['detachFromDom']();});const _0xfda2bd=_0x37a6ab['view']['headerView']['class'];_0x37a6ab['view']['headerView']['class']=_0xfda2bd?_0xfda2bd+'\x20ck-reset_all':'ck-reset_all',_0x37a6ab['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x37a6ab['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x568fac=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x8a3f19=_0x568fac['previewMode'],_0x302cf7={};if('$labels'===_0x8a3f19){for(const _0x2882b6 of _0x568fac['getMergeFieldsIds']())_0x302cf7[_0x2882b6]=_0x568fac['getLabel'](_0x2882b6)||_0x2882b6;}else{const _0x1ddc46='$defaultValues'===_0x8a3f19?_0x568fac['getDefaultValues']():_0x568fac['getDataSetValues'](_0x8a3f19,!0x0);for(const _0x6143b6 of Object['entries'](_0x1ddc46)){const [_0x50da03,_0x5ab34]=_0x6143b6;_0x302cf7[_0x50da03]=null!==_0x5ab34?_0x5ab34:_0x568fac['getLabel'](_0x50da03)||_0x50da03;}}return{'mergeFieldsData':_0x302cf7};}['_standarizeRootsData'](_0x2ed9da,_0x2cc1a8,_0x4b4280){let _0x5bb9eb;if('string'==typeof _0x2ed9da){const _0x674af4=_0x2cc1a8['model']['document']['getRootNames']()[0x0];_0x5bb9eb={[_0x674af4]:_0x2ed9da};}else _0x5bb9eb=_0x2ed9da;const _0x38e6eb=this['_fixMediaEmbeds'](_0x5bb9eb,_0x2cc1a8),_0x14cfc0=function(_0x2fad5e,_0x4d1509){for(const [_0x2be0f1,_0x278c42]of _0x2fad5e)_0x278c42['classes']=_0x4d1509[_0x2be0f1]['classList']['value']['replace']('ck-focused','');return _0x2fad5e;}(this['_sortRoots'](_0x2cc1a8)['reduce']((_0x12901f,_0x4e348b)=>(_0x12901f['push']([_0x4e348b,{'content':_0x38e6eb[_0x4e348b],'classes':''}]),_0x12901f),[]),_0x4b4280);return _0x14cfc0;}['_fixMediaEmbeds'](_0x453878,_0x183deb){if(!_0x183deb['plugins']['has']('MediaEmbedEditing'))return _0x453878;const _0x5955a4=_0x183deb['plugins']['get']('MediaEmbedEditing');for(const [_0x35196c,_0x469a88]of Object['entries'](_0x453878)){const _0x116b34=document['createElement']('div');_0x116b34['innerHTML']=_0x469a88,(_0x116b34['querySelectorAll']('figure.media')['forEach'](_0x3d5c7e=>{const _0xf1eef2=_0x3d5c7e['querySelector']('oembed');if(_0xf1eef2){const _0x5323df=_0xf1eef2['getAttribute']('url');if(_0x5323df){const _0x1056f2=_0x5955a4['registry']['getMediaViewElement'](new _0x1b7cf1(_0x183deb['editing']['view']['document']),_0x5323df,{'elementName':'','renderForEditingView':!0x0}),_0x55c78a=document['createElement']('div');_0x55c78a['classList']['add']('ck-media__wrapper'),_0x1056f2['render'](_0x55c78a,_0x183deb['editing']['view']['domConverter']),_0xf1eef2['replaceWith'](_0x55c78a);}}}),_0x453878[_0x35196c]=_0x116b34['innerHTML']);}return _0x453878;}['_sortRoots'](_0x45ee57){if(!function(_0x377cbb){return void 0x0!==_0x377cbb['getRootsAttributes'];}(_0x45ee57))return _0x45ee57['model']['document']['getRootNames']();const _0x557bf9=[],_0x562688=new Map();for(const _0xe01e23 of _0x45ee57['model']['document']['getRootNames']()){const _0x388abe=_0x45ee57['editing']['view']['getDomRoot'](_0xe01e23)['getClientRects']()['item'](0x0);_0x557bf9['push'](_0xe01e23),_0x562688['set'](_0xe01e23,_0x388abe);}return _0x557bf9['sort']((_0x1a2f72,_0x277ff2)=>{const _0x11613a=_0x562688['get'](_0x1a2f72),_0x5ad148=_0x562688['get'](_0x277ff2);return _0x11613a['y']-_0x5ad148['y']||_0x11613a['x']-_0x5ad148['x'];}),_0x557bf9;}}class te extends _0x5575fe{static get['requires'](){return[T,_0x1b10b8];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x40b45d){super(_0x40b45d),_0x40b45d['commands']['add']('previewFinalContent',new re(this['editor'])),_0x40b45d['config']['define']('trackChanges.preview.renderFunction',(_0x588b48,_0x38bd2f)=>{for(const _0x20902a of _0x38bd2f)_0x588b48['appendChild'](_0x20902a);});}}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};
|