@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250314.0 → 0.0.0-nightly-20250315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +26 -26
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x4e0383(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2831ff,_0x414a49){super(),this['id']=_0x414a49['id'],this['type']=_0x414a49['type'],this['subType']=_0x414a49['subType']||null,this['author']=_0x414a49['author'],this['creator']=_0x414a49['creator']||_0x414a49['author'],this['isExternal']=Boolean(_0x414a49['attributes']&&_0x414a49['attributes']['@external']),this['data']=null,this['_model']=_0x2831ff,this['_onAccept']=_0x414a49['onAccept'],this['_onDiscard']=_0x414a49['onDiscard'],this['_onAttributesChange']=_0x414a49['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x414a49['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 _0x3956e2=this;for(;_0x3956e2['previous'];)_0x3956e2=_0x3956e2['previous'];return _0x3956e2;}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'](_0x1bd00a){this['_markerNames']['add'](_0x1bd00a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x8f9d4c=>this['_model']['markers']['get'](_0x8f9d4c))['filter'](_0x5863ab=>_0x5863ab);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xc3ed28=>{for(const _0x2c01cc of this['getMarkers']())_0xc3ed28['removeMarker'](_0x2c01cc);}),this['_markerNames']['clear']();}['removeMarker'](_0x29196d){this['_model']['change'](_0x1d98f9=>{_0x1d98f9['removeMarker'](_0x29196d);}),this['_markerNames']['delete'](_0x29196d);}['addRange'](_0x5f1e50){const _0x31e206='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x31e206),this['_model']['change'](_0x5ded44=>{_0x5ded44['addMarker'](_0x31e206,{'range':_0x5f1e50,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x24c807){for(const _0x5b3046 of this['getRanges']())if(_0x5b3046['isIntersecting'](_0x24c807))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2b716e=>_0x2b716e['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1ee113,_0x58be47)=>[..._0x1ee113,..._0x58be47['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x9dc76a=this['getRanges']();if(0x1!=_0x9dc76a['length'])return null;const _0x704d12=_0x9dc76a[0x0],_0x1e23a7=_0x704d12['start']['nodeAfter'],_0x25a0e7=_0x704d12['end']['nodeBefore'];return _0x1e23a7 instanceof _0x56712c?_0x1e23a7!=_0x25a0e7?null:_0x1e23a7: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 _0x313623=[];let _0x21ea7a=this['head'];for(;_0x21ea7a;)_0x313623['push'](_0x21ea7a),_0x21ea7a=_0x21ea7a['next'];return _0x313623;}['setAttribute'](_0x4f1740,_0x2d50dc){const _0x35c7b0=_0x55f414(this['attributes']);_0x27c619(_0x35c7b0,_0x4f1740,_0x2d50dc),_0x345af8(_0x35c7b0,this['attributes'])||(this['attributes']=_0x35c7b0,this['_onAttributesChange'](_0x35c7b0));}['removeAttribute'](_0x3457f3){const _0x40d4eb=_0x55f414(this['attributes']);_0x245efa(_0x40d4eb,_0x3457f3),_0x345af8(_0x40d4eb,this['attributes'])||(this['attributes']=_0x40d4eb,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 _0x4d67a8()['substr'](0x1,0x5);}}function c(_0x12f8d6,_0x720ba3,_0x3a3270){const _0x2fccd0=_0x12f8d6['t'],t=_0x12f8d6['t'];switch(_0x720ba3){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',_0x3a3270);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3a3270);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3a3270);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3a3270);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3a3270);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',_0x3a3270);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3a3270);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',_0x3a3270);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3a3270);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3a3270);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3a3270);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3a3270);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3a3270);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3a3270);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3a3270);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3a3270);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3a3270);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3a3270);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3a3270);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3a3270);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3a3270);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3a3270);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3a3270);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3a3270);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'},_0x3a3270);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3a3270);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3a3270);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3a3270);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3a3270);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3a3270);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'},_0x3a3270);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3a3270);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3a3270);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3a3270);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3a3270);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'},_0x3a3270);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3a3270);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'},_0x3a3270);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'},_0x3a3270);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3a3270);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'},_0x3a3270);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3a3270);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'},_0x3a3270);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3a3270);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3a3270);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'},_0x3a3270);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3a3270);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 _0x2fccd0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3a3270);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2fccd0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3a3270);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3a3270);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'},_0x3a3270);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'},_0x3a3270);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'},_0x3a3270);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x720ba3;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4c310b,_0x166b4d){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4c310b,this['_locale']=_0x166b4d;}['getDescriptions'](_0x2b317b){const _0x9e60dc=[],_0xf7d0df=new Set(),_0x33cd5d=new Set();for(let _0xf2401e=0x0;_0xf2401e<_0x2b317b['length'];_0xf2401e++){const _0x8d999c=_0x2b317b[_0xf2401e];if(!_0x8d999c['isInContent'])continue;const _0x4616dc=this['_handleCustomCallbackDescription'](_0x8d999c);if(_0x4616dc){if(null!=_0x8d999c['subType']){if(_0xf7d0df['has'](_0x8d999c['subType']))continue;_0xf7d0df['add'](_0x8d999c['subType']);}_0x9e60dc['push'](_0x4616dc);}else{if('attribute'!=_0x8d999c['type'])'insertion'!=_0x8d999c['type']&&'deletion'!=_0x8d999c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x9e60dc,_0x8d999c,_0x2b317b[_0xf2401e+0x1]);else{const _0x44268b=_0x8d999c['data']['key'];if(_0x33cd5d['has'](_0x44268b))continue;_0x33cd5d['add'](_0x8d999c['data']['key']),_0x44268b==u?this['_handleRenameSuggestionDescription'](_0x9e60dc,_0x8d999c):this['_handleAttributeSuggestionDescription'](_0x9e60dc,_0x8d999c);}}}return this['_resolveDescriptionItems'](_0x9e60dc);}['registerDescriptionCallback'](_0x759cc2){this['_customCallbacks']['push'](_0x759cc2);}['registerElementLabel'](_0x46f935,_0x51ebc4,_0x31ad3d=_0x3f6e40['normal']){'function'==typeof _0x46f935?_0x2638cc(this['_itemLabelsCallbacks'],{'matchingCallback':_0x46f935,'label':_0x51ebc4,'priority':_0x31ad3d}):this['_itemLabels']['set'](_0x46f935,_0x51ebc4);}['registerAttributeLabel'](_0x37b618,_0x401f24){this['_attributeLabels']['set'](_0x37b618,_0x401f24);}['getItemLabel'](_0x22b24b,_0x20eaa5=0x1){let _0x6dd059;for(const _0x2f8461 of this['_itemLabelsCallbacks'])if(_0x2f8461['matchingCallback'](_0x22b24b)){_0x6dd059=_0x2f8461['label'];break;}return _0x6dd059||(_0x6dd059=this['_itemLabels']['get'](_0x22b24b['name'])),_0x6dd059?_0x6dd059(_0x20eaa5):0x1!==_0x20eaa5?_0x20eaa5+'\x20'+_0x22b24b['name']+'s':''+_0x22b24b['name'];}['_addDescriptionItems'](_0x4980b5,_0xa4f977){const _0x28dc2d=_0xa4f977['getFirstRange']()['getWalker'](),_0x176dc8='insertion'==_0xa4f977['type']?'add':'remove';for(const _0x1ef755 of _0x28dc2d){const _0x2e5de9=_0x1ef755['item'],_0x8a0773=_0x4980b5[_0x4980b5['length']-0x1];if(_0x2e5de9['is']('$textProxy'))_0x8a0773&&_0x8a0773['type']['indexOf']('Container')>-0x1&&_0x4980b5['pop'](),_0x8a0773&&'text'==_0x8a0773['type']?_0x8a0773[_0x176dc8]+=_0x2e5de9['data']:_0x4980b5['push']({'type':'text','add':'add'==_0x176dc8?_0x2e5de9['data']:'','remove':'remove'==_0x176dc8?_0x2e5de9['data']:''});else{if(this['_schema']['isObject'](_0x2e5de9)){const _0x4f12a7=_0x2e5de9;if(_0x8a0773&&_0x8a0773['type']['indexOf']('Container')>-0x1&&_0x4980b5['pop'](),'elementEnd'==_0x1ef755['type'])continue;_0x8a0773&&_0x8a0773['type']==_0x176dc8+'Object'&&_0x8a0773['element']['name']==_0x4f12a7['name']?_0x8a0773['quantity']++:_0x4980b5['push']({'type':_0x176dc8+'Object','element':_0x4f12a7,'quantity':0x1}),_0x28dc2d['skip'](_0x2dc134=>!('elementEnd'==_0x2dc134['type']&&_0x2dc134['item']==_0x2e5de9));}else{if(this['_schema']['checkChild'](_0x2e5de9,'$text')||_0x2e5de9['is']('element','softBreak')){const _0x407d36=_0x2e5de9;if('add'==_0x176dc8&&'elementStart'==_0x1ef755['type']||'remove'==_0x176dc8&&'elementEnd'==_0x1ef755['type'])continue;if(_0x8a0773&&-0x1==_0x8a0773['type']['indexOf']('Container')){'text'==_0x8a0773['type']&&(_0x8a0773[_0x176dc8]+='\x0a');continue;}let _0x5d4091;if(_0x5d4091='add'==_0x176dc8?_0x407d36['nextSibling']&&!this['_schema']['isObject'](_0x407d36['nextSibling'])?_0x407d36['nextSibling']:null:_0x407d36['previousSibling']&&!this['_schema']['isObject'](_0x407d36['previousSibling'])?_0x407d36['previousSibling']:null,_0x407d36['isEmpty']||_0x5d4091&&_0x5d4091['isEmpty']){const _0x4e9747=_0x5d4091&&_0x5d4091['isEmpty']?_0x5d4091:_0x407d36;_0x8a0773&&_0x8a0773['type']==_0x176dc8+'EmptyContainer'&&_0x8a0773['element']['name']==_0x4e9747['name']?_0x8a0773['quantity']++:_0x4980b5['push']({'type':_0x176dc8+'EmptyContainer','element':_0x4e9747,'quantity':0x1});}else _0x4980b5['push']({'type':_0x176dc8+'Container','element':_0x407d36});}}}}}['_resolveDescriptionItems'](_0x18146d){const _0x39badc=this['_locale'],_0x10e83d=[],_0x1bb506=[],_0x1cbdd1=[];for(const _0x313c9f of _0x18146d)switch(_0x313c9f['type']){case'text':if(_0x313c9f['add']=_0x313c9f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x313c9f['remove']=_0x313c9f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x313c9f['add']&&''!=_0x313c9f['remove']){_0x10e83d['push']({'type':'replace','content':c(_0x39badc,'REPLACE_TEXT',['\x22'+_0x313c9f['remove']+'\x22','\x22'+_0x313c9f['add']+'\x22'])});continue;}if(null!=_0x313c9f['add']['match'](/^ +$/)){_0x10e83d['push']({'type':'insertion','content':c(_0x39badc,'*Insert:*\x20%0',c(_0x39badc,'ELEMENT_SPACE',_0x313c9f['add']['length']))});continue;}if(null!=_0x313c9f['remove']['match'](/^ +$/)){_0x10e83d['push']({'type':'deletion','content':c(_0x39badc,'*Remove:*\x20%0',c(_0x39badc,'ELEMENT_SPACE',_0x313c9f['remove']['length']))});continue;}if(''!=_0x313c9f['add']){_0x10e83d['push']({'type':'insertion','content':c(_0x39badc,'*Insert:*\x20%0','\x22'+_0x313c9f['add']+'\x22')});continue;}_0x10e83d['push']({'type':'deletion','content':c(_0x39badc,'*Remove:*\x20%0','\x22'+_0x313c9f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x10e83d['push']({'type':'insertion','content':c(_0x39badc,'*Insert:*\x20%0',this['getItemLabel'](_0x313c9f['element'],_0x313c9f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x10e83d['push']({'type':'deletion','content':c(_0x39badc,'*Remove:*\x20%0',this['getItemLabel'](_0x313c9f['element'],_0x313c9f['quantity']))});continue;case'addContainer':_0x10e83d['push']({'type':'insertion','content':c(_0x39badc,'*Split:*\x20%0',this['getItemLabel'](_0x313c9f['element'],_0x313c9f['quantity']))});continue;case'removeContainer':_0x10e83d['push']({'type':'deletion','content':c(_0x39badc,'*Merge:*\x20%0',this['getItemLabel'](_0x313c9f['element'],_0x313c9f['quantity']))});continue;case'addFormat':_0x1bb506['push'](_0x313c9f['key']);continue;case'removeFormat':_0x1cbdd1['push'](_0x313c9f['key']);continue;default:_0x10e83d['push'](_0x313c9f);}if(_0x1bb506['length']){const _0x565237=_0x1bb506['map'](_0x3f9b24=>this['_attributeLabels']['has'](_0x3f9b24)?this['_attributeLabels']['get'](_0x3f9b24):_0x3f9b24)['join'](',\x20');_0x10e83d['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x565237)});}if(_0x1cbdd1['length']){const _0x2ea814=_0x1cbdd1['map'](_0x38c89c=>this['_attributeLabels']['has'](_0x38c89c)?this['_attributeLabels']['get'](_0x38c89c):_0x38c89c)['join'](',\x20');_0x10e83d['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x2ea814)});}return _0x10e83d;}['_handleCustomCallbackDescription'](_0x449a40){for(const _0x250021 of this['_customCallbacks']){const _0x2d3876=_0x250021(_0x449a40);if(_0x2d3876&&'type'in _0x2d3876)return _0x2d3876;}}['_handleAttributeSuggestionDescription'](_0x25af6e,_0x2c99c6){const _0x36a22a=_0x2c99c6['data'],_0x3515bc=void 0x0===_0x36a22a['newValue']?'removeFormat':'addFormat';_0x25af6e['push']({'type':_0x3515bc,'key':_0x36a22a['key']});}['_handleRenameSuggestionDescription'](_0x520295,_0x44e1e9){_0x520295['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x44e1e9['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x37f8d0,_0x4741cc,_0xd0ac31){if(this['_addDescriptionItems'](_0x37f8d0,_0x4741cc),_0xd0ac31&&_0xd0ac31['getFirstRange']()&&!_0x4741cc['getFirstRange']()['end']['isEqual'](_0xd0ac31['getFirstRange']()['start'])){const _0x2f169f=_0x37f8d0[_0x37f8d0['length']-0x1],_0x31fb89='insertion'==_0x4741cc['type']?'add':'remove';_0x2f169f&&'text'==_0x2f169f['type']&&(_0x2f169f[_0x31fb89]+='\x0a');}}}class U extends _0x5a9880{['afterInit'](){const _0x4c29aa=this['editor'],_0xc231e7=_0x4c29aa['plugins']['get']('TrackChangesEditing');_0x4c29aa['commands']['get']('showAIAssistant')&&_0xc231e7['enableCommand']('showAIAssistant');}}class V extends _0x5a9880{['afterInit'](){const _0x1b2e7a=this['editor'],_0x3deeda=_0x1b2e7a['locale'];if(!_0x1b2e7a['plugins']['has']('AlignmentEditing'))return;const _0x387481=_0x1b2e7a['plugins']['get']('TrackChangesEditing');_0x387481['enableDefaultAttributesIntegration']('alignment'),_0x387481['registerBlockAttribute']('alignment'),_0x387481['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x3deeda,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59f7bf=this['editor'],_0x37a1b6=_0x59f7bf['locale'];_0x59f7bf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbf2bff=>{if('formatBlock'!=_0xbf2bff['type'])return;const {data:_0x3156be}=_0xbf2bff;if(_0x3156be&&'alignment'==_0x3156be['commandName']){const _0x45f471=_0x3156be['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x37a1b6,'*Format:*\x20%0',function(_0x5e7d67){switch(_0x5e7d67){case'left':return c(_0x37a1b6,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x37a1b6,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x37a1b6,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x37a1b6,'FORMAT_JUSTIFY_TEXT');}}(_0x45f471))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x5a9880{['afterInit'](){const _0x37f1b2=this['editor'],_0x2a3fa4=_0x37f1b2['plugins']['get']('TrackChangesEditing'),_0xb4b484=_0x37f1b2['locale'];for(const _0x3ea220 of Yt){if(!_0x37f1b2['plugins']['has'](_0x3ea220))continue;const _0x1178eb=_0x3ea220['slice'](0x0,-0x7)['toLowerCase'](),_0x301777='FORMAT_'+_0x1178eb['toUpperCase']();_0x2a3fa4['enableDefaultAttributesIntegration'](_0x1178eb),_0x2a3fa4['registerInlineAttribute'](_0x1178eb),_0x2a3fa4['descriptionFactory']['registerAttributeLabel'](_0x1178eb,c(_0xb4b484,_0x301777));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11a8c3=this['editor'],_0x54e973=_0x11a8c3['locale'],_0x2e9c5f=_0x11a8c3['plugins']['get']('TrackChangesEditing');function _0x28ad59(_0x7ed6b1,_0x34db80){_0x2e9c5f['descriptionFactory']['registerDescriptionCallback'](_0x43ed62=>{if('formatInline'!=_0x43ed62['type'])return;const {data:_0x1457b0}=_0x43ed62;return _0x1457b0&&_0x1457b0['commandName']===_0x7ed6b1?_0x1457b0['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x54e973,'*Format:*\x20%0',_0x34db80)}:{'type':'format','content':c(_0x54e973,'*Remove\x20format:*\x20%0',_0x34db80)}:void 0x0;});}_0x28ad59('bold',c(_0x54e973,'FORMAT_BOLD')),_0x28ad59('italic',c(_0x54e973,'FORMAT_ITALIC')),_0x28ad59('underline',c(_0x54e973,'FORMAT_UNDERLINE')),_0x28ad59('code',c(_0x54e973,'FORMAT_CODE')),_0x28ad59('strikethrough',c(_0x54e973,'FORMAT_STRIKETHROUGH')),_0x28ad59('subscript',c(_0x54e973,'FORMAT_SUBSCRIPT')),_0x28ad59('superscript',c(_0x54e973,'FORMAT_SUPERSCRIPT'));}}class G extends _0x5a9880{['afterInit'](){const _0xb32fb4=this['editor'],_0x486fe4=_0xb32fb4['locale'];if(!_0xb32fb4['plugins']['has']('BlockQuoteEditing'))return;const _0x4617c1=_0xb32fb4['plugins']['get']('TrackChangesEditing'),_0x9b8691=this['editor']['commands']['get']('blockQuote');_0x4617c1['enableCommand']('blockQuote',(_0x5e49b8,_0x286103={})=>{const _0x4f4bf4=this['editor']['model']['document']['selection'],_0x53552d=_0x286103&&void 0x0!==_0x286103['forceValue']?_0x286103['forceValue']:!_0x9b8691['value'];let _0x501ef5=[];if(_0x53552d){const _0x4a8b1c=Array['from'](_0x4f4bf4['getSelectedBlocks']())['filter'](_0x44bd20=>to(_0x44bd20)||function(_0x36be67,_0x4b02cc){const _0x6a3d84=_0x4b02cc['checkChild'](_0x36be67['parent'],'blockQuote'),_0x16c4d4=_0x4b02cc['checkChild'](['$root','blockQuote'],_0x36be67);return _0x6a3d84&&_0x16c4d4;}(_0x44bd20,this['editor']['model']['schema']));_0x501ef5=Zt(_0x4a8b1c,_0xb32fb4['model']);}else{const _0x522897=Array['from'](_0x4f4bf4['getSelectedBlocks']())['filter'](_0x5d792e=>to(_0x5d792e));_0x501ef5=Zt(_0x522897,_0xb32fb4['model']);}_0xb32fb4['model']['change'](()=>{for(const _0x146581 of _0x501ef5)_0x4617c1['markBlockFormat'](_0x146581,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x53552d}]});});}),_0x4617c1['descriptionFactory']['registerDescriptionCallback'](_0x2ee1fd=>{const {data:_0x4794e0}=_0x2ee1fd;if(_0x4794e0&&'blockQuote'==_0x4794e0['commandName']){const _0x58c41b=c(_0x486fe4,'ELEMENT_BLOCK_QUOTE');return _0x4794e0['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x486fe4,'*Set\x20format:*\x20%0',_0x58c41b)}:{'type':'format','content':c(_0x486fe4,'*Remove\x20format:*\x20%0',_0x58c41b)};}});}}function to(_0x3c1672){return'blockQuote'==_0x3c1672['parent']['name'];}class L extends _0x5a9880{['afterInit'](){const _0x26424d=this['editor'],_0x229610=_0x26424d['locale'],_0x3db608=_0x26424d['plugins']['get']('TrackChangesEditing');_0x26424d['plugins']['has']('BookmarkEditing')&&(_0x3db608['enableCommand']('insertBookmark'),_0x3db608['enableDefaultAttributesIntegration']('updateBookmark'),_0x3db608['registerBlockAttribute']('bookmarkId'),_0x3db608['descriptionFactory']['registerDescriptionCallback'](_0x453531=>{if('insertion'!=_0x453531['type']&&'deletion'!=_0x453531['type']&&'attribute'!=_0x453531['type'])return;const _0x2ba9f4=_0x453531['getContainedElement']();if(null==_0x2ba9f4)return;if(!_0x2ba9f4['is']('element','bookmark'))return;const _0x50bc57=_0x2ba9f4['getAttribute']('bookmarkId');if('insertion'==_0x453531['type'])return{'type':'insertion','content':c(_0x229610,'*Insert:*\x20%0','\x22'+_0x50bc57+'\x22\x20'+c(_0x229610,'ELEMENT_BOOKMARK'))};if('deletion'==_0x453531['type'])return{'type':'deletion','content':c(_0x229610,'*Remove:*\x20%0','\x22'+_0x50bc57+'\x22\x20'+c(_0x229610,'ELEMENT_BOOKMARK'))};const {data:_0x1839a0}=_0x453531;if(!_0x1839a0||'bookmarkId'!=_0x1839a0['key'])return;return{'type':'format','content':c(_0x229610,'*Set\x20bookmark:*\x20%0','\x22'+_0x1839a0['newValue']+'\x22')};}));}}class J extends _0x5a9880{['afterInit'](){const _0x184c60=this['editor'];_0x184c60['plugins']['has']('CaseChange')&&(_0x184c60['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x184c60['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x184c60['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x5a9880{['afterInit'](){const _0x577209=this['editor'];_0x577209['commands']['get']('ckbox')&&_0x577209['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x5a9880{['afterInit'](){const _0x14f087=this['editor'];if(!_0x14f087['plugins']['has']('CodeBlock'))return;const _0x80894e=_0x14f087['plugins']['get']('TrackChangesEditing'),_0x1b1050=_0x14f087['locale'],_0x22995e=_0x14f087['config']['get']('codeBlock')['languages'],_0x5f3237=_0x14f087['commands']['get']('codeBlock');_0x80894e['enableCommand']('indentCodeBlock'),_0x80894e['enableCommand']('outdentCodeBlock'),_0x80894e['enableCommand']('codeBlock',(_0x3aa747,_0x5b522a={})=>{const _0x579bba=_0x14f087['model'],_0x23eb5f=_0x14f087['model']['document']['selection'],_0x37ffa4=_0x5b522a&&void 0x0!==_0x5b522a['forceValue']?_0x5b522a['forceValue']:!_0x5f3237['value'];let _0x2f269d;_0x5b522a['language']||(_0x5b522a['language']=_0x22995e[0x0]['language']),_0x2f269d=_0x37ffa4?Array['from'](_0x23eb5f['getSelectedBlocks']())['filter'](_0x53926b=>oo(_0x53926b)||function(_0x32f824,_0x5da250){if(_0x32f824['is']('rootElement')||_0x5da250['isLimit'](_0x32f824))return!0x1;return _0x5da250['checkChild'](_0x32f824['parent'],'codeBlock');}(_0x53926b,_0x579bba['schema'])):Array['from'](_0x23eb5f['getSelectedBlocks']())['filter'](_0x3f9e49=>oo(_0x3f9e49));const _0x45e201=Zt(_0x2f269d,_0x579bba);_0x579bba['change'](()=>{for(const _0x114352 of _0x45e201)_0x80894e['markBlockFormat'](_0x114352,{'commandName':'codeBlock','commandParams':[{..._0x5b522a,'forceValue':_0x37ffa4}],'formatGroupId':'blockName'});});}),(_0x80894e['descriptionFactory']['registerElementLabel']('codeBlock',_0x12261f=>c(_0x1b1050,'ELEMENT_CODE_BLOCK',_0x12261f)),_0x80894e['descriptionFactory']['registerDescriptionCallback'](_0xca932a=>{if('formatBlock'!=_0xca932a['type'])return;const _0x2178c2=_0x1b1050['t'],{data:_0x5709ad}=_0xca932a;if(!_0x5709ad||'codeBlock'!=_0x5709ad['commandName'])return;const _0x2d5d9a=_0x5709ad['commandParams'][0x0]['language'],_0x5e2708=_0x2178c2(_0x22995e['find'](_0x20f0c4=>_0x20f0c4['language']===_0x2d5d9a)['label'])['toLowerCase']();return _0x5709ad['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1b1050,'*Set\x20format:*\x20%0',c(_0x1b1050,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5e2708+')')}:{'type':'format','content':c(_0x1b1050,'*Remove\x20format:*\x20%0',c(_0x1b1050,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x14d413){return'codeBlock'==_0x14d413['name'];}class q extends _0x5a9880{['afterInit'](){const _0x5851fc=this['editor'];if(!_0x5851fc['plugins']['has']('CommentsEditing'))return;_0x5851fc['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3648e7,_0x29d79b,_0x5b37ab){const _0x4c0489=[];for(const _0x5ce8ff of _0x29d79b['getItems']())_0x5ce8ff['hasAttribute'](_0x3648e7)&&_0x4c0489['push'](_0x5b37ab['createRangeOn'](_0x5ce8ff));return _0x4c0489;}function De(_0x59f4d8,_0x3334f6,{showActiveMarker:_0x5e7ce5=!0x0}={}){const _0x4eda6d=_0x59f4d8['plugins']['get']('TrackChangesEditing');return(_0x198dc6,_0xa691ed,_0x84af11)=>{if(!_0x84af11['consumable']['test'](_0xa691ed['markerRange'],_0x198dc6['name']))return;const _0x511f90=_0xa691ed['markerRange']['getWalker'](),_0x186bd3=_0xa691ed['markerRange']['start'],_0x26502c=_0x59f4d8['model']['schema'];let _0x321082=null,_0x168017=null,_0x19934f=!0x1,_0x2de67d=!0x1;for(const _0x254ccc of _0x511f90){const _0x3acfe0=_0x254ccc['item'];_0x19934f=_0x19934f||_0x26502c['isContent'](_0x3acfe0);const _0x4a7c54=_0x84af11['mapper']['toViewElement'](_0x3acfe0);if(_0x4a7c54&&_0x4a7c54['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x254ccc['type']&&(_0x26502c['isBlock'](_0x3acfe0)&&!_0x26502c['isLimit'](_0x3acfe0)&&(_0x3acfe0['nextSibling']||_0x186bd3['isAtEnd']?_0x321082&&_0x321082['parent']==_0x3acfe0||(_0x321082=_0x3acfe0,_0xa02f9c(_0x254ccc['previousPosition']),_0x2de67d=!0x0):_0x168017=_0x168017||_0x254ccc['previousPosition']));}function _0xa02f9c(_0x4d38b1){const {authorId:_0x10707f}=_0x4eda6d['_splitMarkerName'](_0xa691ed['markerName']),_0x582de=_0x84af11['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3334f6,'data-author-id':_0x10707f}),_0x3c496d=_0x84af11['mapper']['toViewPosition'](_0x4d38b1);_0x5e7ce5&&_0x4eda6d['activeMarkers']['includes'](_0xa691ed['markerName'])&&_0x84af11['writer']['addClass']('ck-suggestion-marker--active',_0x582de),_0x84af11['writer']['insert'](_0x3c496d,_0x582de),_0x84af11['mapper']['bindElementToMarker'](_0x582de,_0xa691ed['markerName']);}_0x19934f||_0x2de67d||!_0x168017||_0xa02f9c(_0x168017);};}class z extends _0x5a9880{static get['requires'](){return[_0x1754c1];}['init'](){const _0x1d83c0=this['editor'],_0x3f4226=_0x1d83c0['plugins']['get']('TrackChangesEditing');_0x3f4226['enableCommand']('delete');const _0x149e65=_0x1d83c0['commands']['get']('deleteForward');_0x3f4226['enableCommand']('deleteForward',(_0x527f06,_0x1f844b={})=>{const _0x382b3c=_0x1d83c0['model']['createSelection'](_0x1d83c0['model']['document']['selection']);_0x382b3c['isCollapsed']&&_0x1d83c0['model']['modifySelection'](_0x382b3c,{'direction':'forward','unit':_0x1f844b['unit']});const _0x5aa266=_0x382b3c['getFirstRange'](),_0x5f5499=_0x1e136d['fromRange'](_0x5aa266);let _0x15beb;_0x527f06(_0x1f844b),_0x15beb='$graveyard'==_0x5f5499['root']['rootName']?_0x1d83c0['model']['createRange'](_0x5aa266['start']):_0x1d83c0['model']['createRange'](_0x5f5499['start'],_0x5f5499['end']),_0x5f5499['detach'](),_0x1d83c0['model']['enqueueChange'](_0x149e65['buffer']['batch'],_0x22e631=>{_0x149e65['buffer']['lock'](),_0x22e631['setSelection'](_0x22e631['createRange'](_0x15beb['end'])),_0x149e65['buffer']['unlock']();});}),_0x1d83c0['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x1d83c0,'merge'),{'priority':'high'}),_0x1d83c0['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2e000b,_0x89f511,_0x741aa4)=>{_0x741aa4['options']['showSuggestionHighlights']&&De(_0x1d83c0,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2e000b,_0x89f511,_0x741aa4);},{'priority':'high'}),_0x1d83c0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1dc6b0,_0x1679d5,_0x58bc8b)=>{const _0x30e3f0=_0x58bc8b['mapper']['markerNameToElements'](_0x1679d5['markerName']);if(_0x30e3f0){for(const _0x45763d of _0x30e3f0)_0x45763d['is']('uiElement')&&(_0x58bc8b['mapper']['unbindElementFromMarkerName'](_0x45763d,_0x1679d5['markerName']),_0x58bc8b['writer']['remove'](_0x45763d));}},{'priority':'high'});}}class W extends _0x5a9880{['afterInit'](){const _0x101616=this['editor'];if(!_0x101616['plugins']['has']('ListEditing'))return;const _0xa4221d=_0x101616['locale'],_0x14458c=_0x101616['plugins']['get']('TrackChangesEditing'),_0x16b3c1=_0x101616['plugins']['has']('TodoListEditing'),_0x200403=!!_0x101616['config']['get']('list.multiBlock');function _0x16c5d3(_0x12734e){return{'type':'format','content':''+c(_0xa4221d,'*Set\x20format:*\x20%0',_0x12734e)};}function _0x48fce7(_0x1b3670){return{'type':'format','content':''+c(_0xa4221d,'*Remove\x20format:*\x20%0',_0x1b3670)};}_0x14458c['enableDefaultAttributesIntegration']('numberedList'),_0x14458c['enableDefaultAttributesIntegration']('bulletedList'),_0x14458c['enableDefaultAttributesIntegration']('customNumberedList'),_0x14458c['enableDefaultAttributesIntegration']('customBulletedList'),_0x14458c['enableDefaultAttributesIntegration']('indentList'),_0x14458c['enableDefaultAttributesIntegration']('outdentList'),_0x14458c['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x14458c['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x14458c['registerBlockAttribute']('listItemId'),_0x14458c['registerBlockAttribute']('listType'),_0x14458c['registerBlockAttribute']('listIndent'),_0x200403&&(_0x14458c['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x14458c['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x16b3c1&&(_0x14458c['enableDefaultAttributesIntegration']('todoList'),_0x14458c['enableDefaultAttributesIntegration']('checkTodoList'),_0x14458c['registerBlockAttribute']('todoListChecked'),_0x14458c['descriptionFactory']['registerDescriptionCallback'](_0x52f31d=>{const {data:_0x50806a}=_0x52f31d;if(_0x50806a&&'todoListChecked'==_0x50806a['key'])return{'type':'format','content':_0x50806a['newValue']?c(_0xa4221d,'*Check\x20item*'):c(_0xa4221d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xe971e8=>{if(_0xe971e8['batch']['isUndo'])return!0x1;let _0x554c80=!0x1;const _0x283e64=_0x14458c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf5ae24=>'todoListChecked'===_0x14458c['_getAttributeKey'](_0xf5ae24));for(const _0x138861 of _0x283e64){'todo'!=_0x138861['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x14458c['_findSuggestions'](_0x138861['getFirstRange'](),'attribute')['find'](_0xa354f6=>'listType'===_0x14458c['_getAttributeKey'](_0xa354f6['suggestion']))||(_0xe971e8['removeMarker'](_0x138861['getFirstMarker']()),_0x554c80=!0x0));}return _0x554c80;})),_0x14458c['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0xa4221d,'FORMAT_INDENT'));const _0x337d76={'type':'format','content':''};_0x14458c['descriptionFactory']['registerDescriptionCallback'](_0x15d038=>{const {data:_0xb3308b}=_0x15d038;if(!_0xb3308b||'listType'!=_0xb3308b['key'])return;let _0x55a6fe=_0x15d038['head'];for(;_0x55a6fe;){if(_0x55a6fe['data']&&(('listStyle'==_0x55a6fe['data']['key']||'listMarkerStyle'==_0x55a6fe['data']['key'])&&(_0x55a6fe['data']['newValue']&&'default'!=_0x55a6fe['data']['newValue']||'default'!=_0x55a6fe['data']['oldValue']&&!_0xb3308b['newValue'])||!_0x200403&&_0x55a6fe['data']['key']==u))return _0x337d76;_0x55a6fe=_0x55a6fe['next'];}if(null==_0xb3308b['newValue'])switch(_0xb3308b['oldValue']){case'bulleted':return _0x48fce7(c(_0xa4221d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x48fce7(c(_0xa4221d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x48fce7(c(_0xa4221d,'ELEMENT_TODO_LIST'));}switch(_0xb3308b['newValue']){case'bulleted':return _0x16c5d3(c(_0xa4221d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x16c5d3(c(_0xa4221d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x16c5d3(c(_0xa4221d,'ELEMENT_TODO_LIST'));}}),_0x14458c['descriptionFactory']['registerDescriptionCallback'](_0x3384a3=>{const {data:_0x525044}=_0x3384a3;if(_0x525044&&'listIndent'==_0x525044['key'])return null==_0x525044['newValue']||null==_0x525044['oldValue']&&0x0==_0x525044['newValue']?_0x337d76:void 0x0;}),_0x14458c['descriptionFactory']['registerDescriptionCallback'](_0x4a11b9=>{if('attribute'!=_0x4a11b9['type'])return;const {data:_0x3e24da}=_0x4a11b9;if(!_0x3e24da||'listItemId'!=_0x3e24da['key'])return;const _0xa10564=Te(_0x4a11b9);return'newValue'==_0xa10564?{'type':'format','content':c(_0xa4221d,'*Merge:*\x20list\x20item')}:'oldValue'==_0xa10564?{'type':'format','content':c(_0xa4221d,'*Split:*\x20list\x20item')}:_0x337d76;}),_0x101616['model']['document']['registerPostFixer'](_0x5c68b5=>this['listItemIdFixer'](_0x5c68b5)),_0x101616['model']['document']['registerPostFixer'](_0x2a0110=>this['noTrackChangesFixer'](_0x2a0110)),_0x101616['model']['document']['on']('change:data',(_0x263b33,_0x2a2df6)=>{if(_0x2a2df6['isUndo']||!_0x2a2df6['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x16366d){if(_0x16366d['batch']['isUndo']||!_0x16366d['batch']['isLocal'])return!0x1;let _0x1d795e=!0x1;const _0x30c744=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xebea16=>_0xebea16['data']&&'listItemId'==_0xebea16['data']['key'])['filter'](_0x3e1507=>_0x3e1507['data']['newValue']&&_0x3e1507['data']['oldValue']);for(const _0x2157d0 of _0x30c744)Te(_0x2157d0)||(_0x16366d['removeMarker'](_0x2157d0['getFirstMarker']()),_0x1d795e=!0x0);return _0x1d795e;}['noTrackChangesFixer'](_0x917338){if(_0x917338['batch']['isUndo']||!_0x917338['batch']['isLocal'])return!0x1;const _0x4564c8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4564c8['trackChangesCommand']['value'])return!0x1;let _0x3ed20b=!0x1;const _0x2a2830=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5342ba=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1b924d=>'attribute'==_0x1b924d['type'])['filter'](_0x2b88a5=>_0x2a2830['includes'](_0x2b88a5['attributeKey']));if(0x0==_0x5342ba['length'])return _0x3ed20b;for(const _0x393f4c of _0x5342ba){const _0x498c51=_0x4564c8['_findSuggestions'](_0x393f4c['range'],'attribute')['filter'](_0x1c61b9=>!_0x1c61b9['meta']['isNextTo'])['map'](_0x28c0af=>_0x28c0af['suggestion'])['filter'](_0x5762cd=>{const _0x593be9=_0x4564c8['_getAttributeKey'](_0x5762cd);return _0x2a2830['includes'](_0x593be9);});if(_0x498c51['length']){for(const _0x5dcfe4 of _0x498c51)_0x917338['removeMarker'](_0x5dcfe4['getFirstMarker']());_0x3ed20b=!0x0;}}return _0x3ed20b;}['assureChains'](){const _0x510938=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55dd1c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4a582d;const _0x11ff68=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x36c127=>{if(_0x36c127['data']['oldRange']||!_0x36c127['data']['newRange'])return null;if(!_0x36c127['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x427d10}=_0x510938['_splitMarkerName'](_0x36c127['name']);if(!_0x510938['hasSuggestion'](_0x427d10))return null;const _0x2ad799=_0x510938['getSuggestion'](_0x427d10);return _0x55dd1c['includes'](_0x2ad799['data']['key']);})['map'](_0x204f1b=>{const {id:_0x17ad39}=_0x510938['_splitMarkerName'](_0x204f1b['name']),_0x364216=_0x510938['getSuggestion'](_0x17ad39);return _0x4a582d=_0x364216['attributes']['groupId'],_0x364216['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x11ff68['size'])return;const _0x376acd=_0x510938['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x35dba3=>'attribute'==_0x35dba3['type']&&_0x35dba3['data']&&_0x55dd1c['includes'](_0x35dba3['data']['key'])&&_0x35dba3['attributes']['groupId']!=_0x4a582d)['map'](_0x42515a=>({'listItem':_0x42515a['getFirstRange']()['start']['nodeAfter'],'groupId':_0x42515a['attributes']['groupId']})),_0x2a1535=new Set();for(const {groupId:_0x5ec404,listItem:_0x32e0b5}of _0x376acd)_0x11ff68['has'](_0x32e0b5)&&_0x2a1535['add'](_0x5ec404);for(const _0x4a050b of _0x510938['getSuggestions']())_0x2a1535['has'](_0x4a050b['attributes']['groupId'])&&_0x4a050b['setAttribute']('groupId',_0x4a582d);}['_supportLegacySuggestions'](){const _0x26c4a2=this['editor'],_0x28f43c=_0x26c4a2['locale'],_0x42a6df=_0x26c4a2['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x42a6df['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2028e5,_0x474487){const _0x31287c=[];for(let _0x5c24a8 of _0x2028e5)_0x5c24a8['start']['nodeAfter']===_0x5c24a8['end']['parent']&&(_0x5c24a8=_0x26c4a2['model']['createRange'](_0x26c4a2['model']['createPositionAt'](_0x5c24a8['start']['nodeAfter'],0x0))),_0x31287c['push'](_0x5c24a8);_0x26c4a2['model']['change'](_0x24d392=>{const _0x3da8ba=_0x26c4a2['model']['document']['selection'],_0x5e02c8=Array['from'](_0x3da8ba['getRanges']())['map'](_0x2aea14=>_0x1e136d['fromRange'](_0x2aea14));_0x24d392['setSelection'](_0x31287c),_0x26c4a2['commands']['get'](_0x474487['commandName'])['refresh'](),_0x474487['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x26c4a2['execute'](_0x474487['commandName'],..._0x474487['commandParams']),_0x24d392['setSelection'](_0x5e02c8);for(const _0xfca670 of _0x5e02c8)_0xfca670['detach']();});}),_0x42a6df['descriptionFactory']['registerElementLabel'](function(_0x455a25){const _0x567dbc=!_0x26c4a2['model']['schema']['isObject'](_0x455a25),_0x375a43=_0x455a25['previousSibling'],_0x36697e=_0x455a25['nextSibling'],_0x575d4=_0x455a25['getAttribute']('listItemId'),_0x59836d=!_0x375a43||_0x375a43['getAttribute']('listItemId')!==_0x575d4,_0xea770a=!_0x36697e||_0x36697e['getAttribute']('listItemId')!==_0x575d4;return _0x567dbc&&Boolean(_0x575d4)&&_0x59836d&&_0xea770a;},_0x288e10=>c(_0x28f43c,'ELEMENT_LIST_ITEM',_0x288e10));}['_registerLegacyDescription'](){const _0x223491=this['editor'],_0x50c925=_0x223491['locale'];function _0x2ea4c5(_0x266fab){const _0x234de7=_0x223491['commands']['get']('bulletedList')['value'],_0x3be2e2=_0x223491['commands']['get']('numberedList')['value'];return'numberedList'===_0x266fab?_0x234de7:_0x3be2e2;}_0x223491['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xfbe0b7){if('formatBlock'!=_0xfbe0b7['type'])return;const {data:_0x56df80}=_0xfbe0b7;if(!_0x56df80)return;let _0x3d4df5,_0x126eb1,_0x11c62b,_0x440321;switch(_0x56df80['commandName']){case'bulletedList':_0x11c62b=_0x56df80['commandParams'][0x0]['forceValue'],_0x440321=_0x2ea4c5(_0x56df80['commandName']),_0x3d4df5=_0x11c62b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x440321&&_0x223491['config']['get']('list.multiBlock')||(_0x3d4df5='*Change\x20to:*\x20%0'),_0x126eb1={'type':'format','content':c(_0x50c925,_0x3d4df5,c(_0x50c925,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x11c62b=_0x56df80['commandParams'][0x0]['forceValue'],_0x440321=_0x2ea4c5(_0x56df80['commandName']),_0x3d4df5=_0x11c62b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x440321&&_0x223491['config']['get']('list.multiBlock')||(_0x3d4df5='*Change\x20to:*\x20%0'),_0x126eb1={'type':'format','content':c(_0x50c925,_0x3d4df5,c(_0x50c925,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3d4df5='*Indent:*\x20%0',_0x126eb1={'type':'format','content':c(_0x50c925,_0x3d4df5,c(_0x50c925,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3d4df5=function(_0x234584){const _0x4691ba=_0x234584['getFirstRange']();let _0x2a50ed=_0x4691ba['start']['nodeAfter'];for(;_0x2a50ed&&_0x4691ba['containsItem'](_0x2a50ed);){if(_0x2a50ed['getAttribute']('listIndent')>0x0)return!0x1;_0x2a50ed=_0x2a50ed['nextSibling'];}return!0x0;}(_0xfbe0b7)?c(_0x50c925,'*Format:*\x20remove\x20from\x20%0',c(_0x50c925,function(_0x5e5eb4){return'ELEMENT_'+_0x5e5eb4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xfbe0b7))):c(_0x50c925,'*Outdent:*\x20%0',c(_0x50c925,'ELEMENT_LIST_ITEM')),_0x126eb1={'type':'format','content':_0x3d4df5};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x56df80['multipleBlocks']&&(_0x3d4df5='*Merge:*\x20%0',_0x126eb1={'type':'deletion','content':c(_0x50c925,_0x3d4df5,c(_0x50c925,'ELEMENT_LIST_ITEM'))});}return _0x126eb1;});}}function Te(_0x305258){let _0x101e49=_0x305258['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x101e49;){const _0x1225e0=_0x101e49['getAttribute']('listItemId');if(!_0x1225e0)return!0x1;if(_0x1225e0==_0x305258['data']['newValue'])return'newValue';if(_0x1225e0==_0x305258['data']['oldValue'])return'oldValue';_0x101e49=_0x101e49['previousSibling'];}return!0x1;}class Se extends _0x5a9880{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3dcb08=this['editor']['config']['get']('list.properties'),_0x3f2a39=this['editor']['plugins']['get']('TrackChangesEditing');_0x3dcb08['styles']&&(_0x3f2a39['enableDefaultAttributesIntegration']('listStyle'),_0x3f2a39['registerBlockAttribute']('listStyle')),_0x3dcb08['reversed']&&(_0x3f2a39['enableDefaultAttributesIntegration']('listReversed'),_0x3f2a39['registerBlockAttribute']('listReversed')),_0x3dcb08['startIndex']&&(_0x3f2a39['enableDefaultAttributesIntegration']('listStart'),_0x3f2a39['registerBlockAttribute']('listStart'));const _0x59a31c={'type':'format','content':''};_0x3f2a39['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3c0899=this['editor']['locale'];_0x3f2a39['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x3c0899,'FORMAT_LIST_REVERSED')),_0x3f2a39['descriptionFactory']['registerDescriptionCallback'](_0x500611=>{const {data:_0xa02dc4}=_0x500611;if(_0xa02dc4&&'listReversed'==_0xa02dc4['key'])return null==_0xa02dc4['newValue']||0x0==_0xa02dc4['newValue']&&null==_0xa02dc4['oldValue']?_0x59a31c:void 0x0;}),_0x3f2a39['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x3c0899,'FORMAT_LIST_START')),_0x3f2a39['descriptionFactory']['registerDescriptionCallback'](_0x1f6180=>{const {data:_0x3f5698}=_0x1f6180;if(_0x3f5698&&'listStart'==_0x3f5698['key'])return null==_0x3f5698['newValue']||0x1==_0x3f5698['newValue']&&null==_0x3f5698['oldValue']?_0x59a31c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4582c8=>{if(_0x4582c8['batch']['isUndo'])return!0x1;let _0x19e3d2=!0x1;const _0x4913aa=_0x3f2a39['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d3f25=>{const _0x3ac52f=_0x3f2a39['_getAttributeKey'](_0x5d3f25);return'listStart'==_0x3ac52f||'listReversed'==_0x3ac52f;});for(const _0xb2a165 of _0x4913aa){const _0x2c598f=_0xb2a165['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2c598f||'customNumbered'==_0x2c598f)continue;_0x3f2a39['_findSuggestions'](_0xb2a165['getFirstRange'](),'attribute')['find'](_0x14704c=>'listType'==_0x3f2a39['_getAttributeKey'](_0x14704c['suggestion']))||(_0x4582c8['removeMarker'](_0xb2a165['getFirstMarker']()),_0x19e3d2=!0x0);}return _0x19e3d2;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x316efd){const _0x100a80=this['editor']['locale'],{data:_0x120d51}=_0x316efd,_0x42e60d={'type':'format','content':''};if(!_0x120d51||'listStyle'!=_0x120d51['key'])return;if(!_0x120d51['oldValue'])return'default'==_0x120d51['newValue']?_0x42e60d:{'type':'format','content':''+c(_0x100a80,'*Set\x20format:*\x20%0',c(_0x100a80,this['_getTranslationKeyForListStyle'](_0x120d51['newValue'])))};if(!_0x120d51['newValue']){if('default'==_0x120d51['oldValue'])return _0x42e60d;let _0x1bd5e7=_0x316efd['head'];for(;_0x1bd5e7;){if(_0x1bd5e7['data']&&'listType'==_0x1bd5e7['data']['key']&&_0x1bd5e7['data']['newValue'])return _0x42e60d;_0x1bd5e7=_0x1bd5e7['next'];}return{'type':'format','content':''+c(_0x100a80,'*Remove\x20format:*\x20%0',c(_0x100a80,this['_getTranslationKeyForListStyle'](_0x120d51['oldValue'])))};}if('default'!=_0x120d51['newValue'])return{'type':'format','content':''+c(_0x100a80,'*Set\x20format:*\x20%0',c(_0x100a80,this['_getTranslationKeyForListStyle'](_0x120d51['newValue'])))};let _0x33b577=_0x316efd['head'];for(;_0x33b577;){if(_0x33b577['data']&&'listType'==_0x33b577['data']['key']&&_0x33b577['data']['newValue']&&_0x33b577['data']['oldValue'])return _0x42e60d;_0x33b577=_0x33b577['next'];}return{'type':'format','content':c(_0x100a80,'*Set\x20format:*\x20%0',c(_0x100a80,'ELEMENT_'+_0x316efd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4006ee=this['editor'],_0xe1796a=_0x4006ee['locale'];_0x4006ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ad4bf=>{if('formatBlock'!=_0x1ad4bf['type'])return;const {data:_0x3b941a}=_0x1ad4bf;if(!_0x3b941a)return;let _0x4e9fda,_0xbe68ac;switch(_0x3b941a['commandName']){case'listStyle':_0x4e9fda='*Change\x20to:*\x20%0',_0xbe68ac={'type':'format','content':c(_0xe1796a,_0x4e9fda,c(_0xe1796a,this['_getTranslationKeyForListStyle'](_0x3b941a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4e9fda=_0x3b941a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xbe68ac={'type':'format','content':c(_0xe1796a,_0x4e9fda)};break;case'listStart':_0x4e9fda='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xbe68ac={'type':'format','content':c(_0xe1796a,_0x4e9fda,_0x3b941a['commandParams'][0x0]['startIndex'])};}return _0xbe68ac;});}['_getTranslationKeyForListStyle'](_0x569eb3){return'ELEMENT_'+function(_0xcb8dfe){if(_e['includes'](_0xcb8dfe))return'bulleted';if(Re['includes'](_0xcb8dfe))return'numbered';return null;}(_0x569eb3)['toUpperCase']()+'_LIST_'+_0x569eb3['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x5a9880{['afterInit'](){const _0x3af74d=this['editor'];_0x3af74d['commands']['get']('emoji')&&_0x3af74d['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x5a9880{static get['requires'](){return[_0x4fd5db];}['init'](){const _0x4a78ef=this['editor'],_0x1dd21c=_0x4a78ef['plugins']['get']('TrackChangesEditing'),_0x5321e8=_0x4a78ef['commands']['get']('enter');_0x1dd21c['enableCommand']('enter',()=>{_0x4a78ef['model']['change'](_0x3fd354=>{const _0xcc0c16=_0x4a78ef['model']['document']['selection'],_0x14c0f1=_0xcc0c16['getFirstPosition'](),_0x547e63=_0x1e136d['fromRange'](_0xcc0c16['getFirstRange']());if(_0x5321e8['enterBlock'](_0x3fd354)){const _0x114bae=_0x4a78ef['model']['createPositionAt'](_0x14c0f1['parent']['nextSibling'],0x0),_0xd7df45=_0x3fd354['createRange'](_0x14c0f1,_0x114bae);_0x1dd21c['markInsertion'](_0xd7df45);}else _0x3fd354['setSelection'](_0x3fd354['createRange'](_0x547e63['end']));_0x547e63['detach'](),_0x5321e8['fire']('afterExecute',{'writer':_0x3fd354});});}),_0x4a78ef['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x4a78ef,'split'),{'priority':'high'}),_0x4a78ef['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5b584a,_0x51f561,_0x2a6adc)=>{const _0x270be4=_0x2a6adc['mapper']['markerNameToElements'](_0x51f561['markerName']);if(_0x270be4){for(const _0x3e4a54 of _0x270be4)_0x3e4a54['hasClass']('ck-suggestion-marker-split')&&(_0x2a6adc['mapper']['unbindElementFromMarkerName'](_0x3e4a54,_0x51f561['markerName']),_0x2a6adc['writer']['remove'](_0x3e4a54));}},{'priority':'high'}),_0x4a78ef['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1aca0a,_0x2f9424,_0x61f14d)=>{_0x61f14d['options']['showSuggestionHighlights']&&De(_0x4a78ef,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1aca0a,_0x2f9424,_0x61f14d);},{'priority':'high'});}}class Z extends _0x5a9880{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x120c1f=this['editor']['plugins']['get']('TrackChangesEditing');_0x120c1f['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x120c1f['enableCommand']('findNext'),_0x120c1f['enableCommand']('findPrevious'),_0x120c1f['enableCommand']('replace'),_0x120c1f['enableCommand']('replaceAll');}['handleFindCommand'](_0x3668b4,_0x5637cb,_0x436ef9={}){const _0x5ce5f2=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3668b4(_0x16632d=>{let _0x5b3de8=('string'==typeof _0x5637cb?_0x5ce5f2['findByTextCallback'](_0x5637cb,_0x436ef9):_0x5637cb)(_0x16632d);Array['isArray'](_0x5b3de8)&&(_0x5b3de8={'results':_0x5b3de8,'searchText':'string'==typeof _0x5637cb?_0x5637cb:''});const _0x2966a8=_0x5b3de8['results']['filter'](_0x548dce=>!0x1===this['_isInDeletionRange'](_0x548dce,_0x16632d['item']));return{..._0x5b3de8,'results':_0x2966a8};},_0x436ef9);}['_isInDeletionRange'](_0x5b439b,_0x138f11){const _0x1430ad=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x138f11,_0x5b439b['start']),this['editor']['model']['createPositionAt'](_0x138f11,_0x5b439b['end']));for(const _0x124e5e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1430ad['getIntersection'](_0x124e5e['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x5a9880{['afterInit'](){const _0xd4dd5=this['editor']['locale'],_0x5d7e10=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x103dfa,commandName:_0x528972}of eo)this['editor']['plugins']['has'](_0x103dfa)&&(_0x5d7e10['enableDefaultAttributesIntegration'](_0x528972),_0x5d7e10['registerInlineAttribute'](_0x528972));_0x5d7e10['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0xd4dd5,'FORMAT_FONT_SIZE')),_0x5d7e10['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0xd4dd5,'FORMAT_FONT_FAMILY')),_0x5d7e10['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0xd4dd5,'FORMAT_FONT_COLOR')),_0x5d7e10['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0xd4dd5,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cc5ca=this['editor'],_0x5d2c97=_0x3cc5ca['locale'];_0x3cc5ca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c0002=>{const _0x3f7fc0=_0x5d2c97['t'];if('formatInline'!=_0x1c0002['type'])return;const {data:_0x2295bf}=_0x1c0002;if(null!=_0x2295bf){if('fontSize'==_0x2295bf['commandName']){const _0x40d542=_0x2295bf['commandParams'][0x0]['value'];if(_0x40d542){const _0x1f4043=_0x3f7fc0(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x48f8be=>_0x48f8be['model']==_0x40d542)['title'])['toLowerCase']();return{'type':'format','content':c(_0x5d2c97,'*Set\x20font\x20size:*\x20%0',_0x1f4043)};}return{'type':'format','content':c(_0x5d2c97,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2295bf['commandName']){const _0x412b2c=_0x2295bf['commandParams'][0x0]['value'];return _0x412b2c?{'type':'format','content':c(_0x5d2c97,'*Set\x20font\x20family:*\x20%0',_0x412b2c)}:{'type':'format','content':c(_0x5d2c97,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2295bf['commandName']){const _0x4186be=_0x2295bf['commandParams'][0x0]['value'];if(_0x4186be){const _0x3aad17=_0x176014(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1e3ea6=>_0x1e3ea6['model']==_0x4186be);let _0x4f60da=_0x4186be,_0x490ea3='';return _0x3aad17&&(_0x4f60da=_0x3aad17['label'],_0x490ea3=_0x3f7fc0(_0x4f60da)['toLowerCase']()),{'type':'format','content':c(_0x5d2c97,'*Set\x20font\x20color:*\x20%0',_0x490ea3)['trim'](),'color':{'value':_0x4186be,'title':_0x490ea3||_0x4f60da}};}return{'type':'format','content':c(_0x5d2c97,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2295bf['commandName']){const _0x5e9bb7=_0x2295bf['commandParams'][0x0]['value'];if(_0x5e9bb7){const _0x2cf3b5=_0x176014(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x55eece=>_0x55eece['model']==_0x5e9bb7);let _0x218f2d=_0x5e9bb7,_0x1fc8dc='';return _0x2cf3b5&&(_0x218f2d=_0x2cf3b5['label'],_0x1fc8dc=_0x3f7fc0(_0x218f2d)['toLowerCase']()),{'type':'format','content':c(_0x5d2c97,'*Set\x20font\x20background\x20color:*\x20%0',_0x1fc8dc)['trim'](),'color':{'value':_0x5e9bb7,'title':_0x1fc8dc||_0x218f2d}};}return{'type':'format','content':c(_0x5d2c97,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x5a9880{['afterInit'](){const _0x30977f=this['editor'],_0x258cb8=_0x30977f['plugins']['get']('TrackChangesEditing'),_0x8e83ff=_0x30977f['commands']['get']('copyFormat'),_0x54f0ef=_0x30977f['commands']['get']('pasteFormat');_0x8e83ff&&_0x54f0ef&&(_0x258cb8['enableDefaultAttributesIntegration']('pasteFormat'),_0x258cb8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x18b652=this['editor'],_0x3bd305=_0x18b652['locale'];_0x18b652['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ab009=>{if('formatBlock'!=_0x2ab009['type']&&'formatInline'!=_0x2ab009['type'])return;const {data:_0x18ae88}=_0x2ab009;if(_0x18ae88&&'pasteFormat'===_0x18ae88['commandName']){const _0x3e1e83=[],_0x46678c=_0x18ae88['commandParams'][0x0];for(const [_0x30960b,_0x56c694]of Object['entries'](_0x46678c))_0x3e1e83['push'](ro(_0x18b652,_0x30960b,_0x56c694));return _0x3e1e83['length']?{'type':'format','content':c(_0x3bd305,'*Set\x20format\x20to:*\x20%0',_0x3e1e83['join'](',\x20'))}:{'type':'format','content':c(_0x3bd305,'*Remove\x20all\x20formatting*')};}});}}function ro(_0xcc1c,_0x21d3e6,_0x4c8f8a){const _0x2eb560=_0xcc1c['locale']['t'],_0x11c5f7=_0x21d3e6['split'](/(?=[A-Z])/)['join']('\x20'),_0x19ef4f=_0x2eb560(_0x11c5f7['charAt'](0x0)['toUpperCase']()+_0x11c5f7['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4c8f8a)return _0x19ef4f;if('fontColor'===_0x21d3e6||'fontBackgroundColor'===_0x21d3e6){const _0x505d20=_0x176014(_0xcc1c['config']['get']('fontColor.colors'))['find'](_0x593b49=>_0x593b49['model']==_0x4c8f8a);return _0x19ef4f+'\x20('+(_0x505d20?_0x2eb560(_0x505d20['label'])['toLowerCase']():_0x4c8f8a)+')';}if('fontSize'===_0x21d3e6&&isNaN(parseFloat(_0x4c8f8a))){const _0x1d09dc=_0xcc1c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xcc1c['config']['get']('fontSize.options'))['find'](_0x4b5237=>_0x4b5237['model']==_0x4c8f8a);return _0x19ef4f+'\x20('+(_0x1d09dc?_0x2eb560(_0x1d09dc['title'])['toLowerCase']():_0x4c8f8a)+')';}return _0x19ef4f+'\x20('+_0x4c8f8a+')';}class nt extends _0x5a9880{['_headingOptions'];['afterInit'](){const _0x447b37=this['editor'];if(!_0x447b37['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x447b37['config']['get']('heading.options');const _0x2d27f2=_0x447b37['locale'],_0x59e616=_0x447b37['plugins']['get']('TrackChangesEditing');_0x59e616['enableDefaultAttributesIntegration']('heading');for(const _0xd901b6 of this['_headingOptions'])'paragraph'!=_0xd901b6['model']&&_0x59e616['descriptionFactory']['registerElementLabel'](_0xd901b6['model'],_0x1d66de=>{const _0x5a2748=this['_getHeadingLevel'](_0xd901b6['model']);return null!==_0x5a2748?_0x6a7e1d(_0x1d66de,_0x5a2748):_0x3f4fa7(_0x1d66de,_0xd901b6['title']);});function _0x6a7e1d(_0x312e2d,_0x11bf43){return c(_0x2d27f2,'ELEMENT_HEADING',[_0x312e2d,_0x11bf43]);}function _0x3f4fa7(_0x3013aa,_0xe3c2d1){return c(_0x2d27f2,'ELEMENT_HEADING_CUSTOM',[_0x3013aa,_0xe3c2d1]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4079ee=this['editor'],_0x268dd7=_0x4079ee['locale'];function _0x146c5d(_0x54b0c3,_0x56001d){return c(_0x268dd7,'ELEMENT_HEADING_CUSTOM',[_0x54b0c3,_0x56001d]);}_0x4079ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46ac5b=>{if('formatBlock'!=_0x46ac5b['type'])return;const {data:_0x2ecafe}=_0x46ac5b;if(_0x2ecafe&&'heading'==_0x2ecafe['commandName']){const _0x46ebca=_0x2ecafe['commandParams'][0x0]['value'],_0x20ab3b=this['_getHeadingLevel'](_0x46ebca);if(null!==_0x20ab3b)return{'type':'format','content':c(_0x268dd7,'*Change\x20to:*\x20%0',(_0x1479d4=0x1,_0x473312=_0x20ab3b,c(_0x268dd7,'ELEMENT_HEADING',[_0x1479d4,_0x473312])))};const _0xef1e96=this['_headingOptions']['find'](_0x2733d3=>_0x2733d3['model']===_0x46ebca)['title'];return{'type':'format','content':c(_0x268dd7,'*Change\x20to:*\x20%0',_0x146c5d(0x1,_0xef1e96))};}var _0x1479d4,_0x473312;});}['_getHeadingLevel'](_0x8fb117){const _0x4491c8=_0x8fb117['match'](/^heading(\d+)/);if(_0x4491c8)return _0x4491c8[0x1];const _0x536516=this['_headingOptions']?.['find'](_0x5e69d4=>_0x5e69d4['model']==_0x8fb117);if(_0x536516&&_0x536516['view']){const _0xde7193=_0x536516['view'],_0xab70f9=(_0xde7193['name']??_0xde7193)['match'](/^h(\d+)/);if(_0xab70f9)return _0xab70f9[0x1];}return null;}}class it extends _0x5a9880{['afterInit'](){const _0x952864=this['editor'];if(!_0x952864['plugins']['has']('HighlightEditing'))return;const _0x5cfa15=_0x952864['plugins']['get']('TrackChangesEditing'),_0x3fec83=_0x952864['locale'];_0x5cfa15['enableDefaultAttributesIntegration']('highlight'),_0x5cfa15['registerInlineAttribute']('highlight'),_0x5cfa15['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x3fec83,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bd079=this['editor'],_0x3f214e=_0x2bd079['locale'];_0x2bd079['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x117d18=>{if('formatInline'!=_0x117d18['type'])return;const {data:_0xac237d}=_0x117d18;if(_0xac237d&&'highlight'==_0xac237d['commandName']){const _0x4ec84f=_0x3f214e['t'],_0x45c0e4=_0xac237d['commandParams'][0x0]['value'];if(_0x45c0e4){const _0x2e5a4a=_0x2bd079['config']['get']('highlight.options')['find'](_0x104b60=>_0x104b60['model']==_0x45c0e4),_0x498aff=_0x4ec84f(_0x2e5a4a['title'])['toLowerCase']();return{'type':'format','content':c(_0x3f214e,'*Set\x20highlight:*\x20%0',_0x498aff),'color':{'value':_0x2e5a4a['color'],'title':_0x2e5a4a['title']}};}return{'type':'format','content':c(_0x3f214e,'*Remove\x20highlight*',c(_0x3f214e,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x5a9880{['afterInit'](){const _0x408891=this['editor'];if(!_0x408891['plugins']['has']('HorizontalLineEditing'))return;_0x408891['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x102864=_0x408891['plugins']['get']('TrackChangesEditing'),_0xd8c364=_0x408891['locale'];_0x102864['descriptionFactory']['registerElementLabel']('horizontalLine',_0x492aed=>c(_0xd8c364,'ELEMENT_HORIZONTAL_LINE',_0x492aed)),_0x408891['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4e34bf,{writer:_0x512820,options:_0x327b64})=>{if(!_0x327b64['showSuggestionHighlights'])return null;const _0x3da703=_0x512820['createContainerElement']('div'),_0x4b022=_0x512820['createEmptyElement']('hr');return _0x512820['addClass']('ck-horizontal-line',_0x3da703),_0x512820['insert'](_0x512820['createPositionAt'](_0x3da703,0x0),_0x4b022),_0x3da703;},'converterPriority':'high'});}}class ot extends _0x5a9880{['afterInit'](){const _0x5a4f44=this['editor'];if(!_0x5a4f44['plugins']['has']('HtmlEmbed'))return;const _0x267e65=_0x5a4f44['plugins']['get']('TrackChangesEditing'),_0xc9d6fc=_0x5a4f44['locale'];_0x267e65['descriptionFactory']['registerElementLabel']('rawHtml',_0x26edff=>c(_0xc9d6fc,'ELEMENT_HTML_EMBED',_0x26edff)),_0x267e65['enableDefaultAttributesIntegration']('htmlEmbed'),_0x267e65['registerBlockAttribute']('value'),_0x267e65['descriptionFactory']['registerDescriptionCallback'](_0x24730d=>{if('attribute'!=_0x24730d['type'])return;const {data:_0x56501f}=_0x24730d;if(_0x56501f&&'value'==_0x56501f['key']&&_0x24730d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x247309=c(_0xc9d6fc,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0xc9d6fc,'*Change\x20%0\x20content*',_0x247309)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x173be0=this['editor'],_0x46bab1=_0x173be0['locale'];_0x173be0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x110508=>{if('formatBlock'!=_0x110508['type'])return;const {data:_0x5ce844}=_0x110508;if(_0x5ce844&&'htmlEmbed'==_0x5ce844['commandName']){const _0x221d42=c(_0x46bab1,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x46bab1,'*Change\x20%0\x20content*',_0x221d42)};}});}}class rt extends _0x5a9880{['afterInit'](){const _0x40172d=this['editor'];if(!_0x40172d['plugins']['has']('ImageEditing'))return;const _0x3c8892=_0x40172d['plugins']['get']('TrackChangesEditing'),_0x47ab67=_0x40172d['plugins']['get']('ImageUtils'),_0x3c1e72=_0x40172d['locale'];_0x3c8892['enableCommand']('insertImage'),_0x3c8892['descriptionFactory']['registerElementLabel']('imageBlock',_0x2f5c62=>c(_0x3c1e72,'ELEMENT_IMAGE',_0x2f5c62)),_0x3c8892['descriptionFactory']['registerElementLabel']('imageInline',_0x1117ba=>c(_0x3c1e72,'ELEMENT_INLINE_IMAGE',_0x1117ba)),_0x3c8892['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x3c1e72,'ELEMENT_CAPTION')),_0x40172d['plugins']['has']('ImageUploadEditing')&&_0x3c8892['enableCommand']('uploadImage'),_0x40172d['plugins']['has']('ImageBlockEditing')&&_0x40172d['plugins']['has']('ImageInlineEditing')&&(_0x3c8892['enableCommand']('imageTypeInline',(_0x42354f,_0x1c500b)=>{const _0x58faac=_0x47ab67['getClosestSelectedImageElement'](_0x40172d['model']['document']['selection']);_0x40172d['model']['change'](()=>{_0x3c8892['markBlockFormat'](_0x58faac,{'commandName':'imageTypeInline','commandParams':[_0x1c500b]},[],'convertBlockImageToInline');});}),_0x3c8892['enableCommand']('imageTypeBlock',(_0x87e515,_0x52d047)=>{_0x40172d['model']['change'](_0x3918c0=>{let _0x1eb5c6=_0x47ab67['getClosestSelectedImageElement'](_0x40172d['model']['document']['selection']),_0x50dff3=_0x3918c0['createRangeOn'](_0x1eb5c6);const _0x8c02e3=_0x16f394['fromPosition'](_0x50dff3['start'],'toPrevious'),_0x539144=_0x16f394['fromPosition'](_0x50dff3['end'],'toNext');_0x3c8892['forceDefaultExecution'](()=>_0x87e515(_0x52d047)),_0x1eb5c6=_0x47ab67['getClosestSelectedImageElement'](_0x40172d['model']['document']['selection']),_0x50dff3=_0x3918c0['createRangeOn'](_0x1eb5c6);const _0x54b2be=_0x3918c0['createRange'](_0x8c02e3,_0x539144);_0x8c02e3['detach'](),_0x539144['detach'](),_0x3c8892['markBlockFormat'](_0x1eb5c6,{'commandName':'imageTypeInline','commandParams':[_0x52d047]},[],'convertInlineImageToBlock'),_0x54b2be['start']['isBefore'](_0x50dff3['start'])&&_0x3c8892['markInsertion'](_0x3918c0['createRange'](_0x54b2be['start'],_0x50dff3['start']),'convertInlineImageToBlock'),_0x50dff3['end']['isBefore'](_0x54b2be['end'])&&_0x3c8892['markInsertion'](_0x3918c0['createRange'](_0x50dff3['end'],_0x54b2be['end']),'convertInlineImageToBlock');});}),_0x3c8892['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3c8892['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3c8892['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3c8892['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3c8892['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3c8892['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2631f2])=>{const _0x1ecb6c=_0x3c8892['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2ce566=_0x2631f2['start'],_0x2d7835=_0x2631f2['end'];const _0x3d0251=_0x40172d['model']['schema']['getNearestSelectionRange'](_0x2ce566,'backward'),_0x4f22f3=_0x40172d['model']['schema']['getNearestSelectionRange'](_0x2d7835,'forward');_0x3d0251['isCollapsed']&&(_0x2ce566=_0x3d0251['start']),_0x4f22f3['isCollapsed']&&(_0x2d7835=_0x4f22f3['end']),_0x1ecb6c([_0x40172d['model']['createRange'](_0x2ce566,_0x2d7835)]);}),_0x3c8892['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1353f6),_0x3c8892['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1353f6)),_0x40172d['plugins']['has']('ImageCaptionEditing')&&(_0x3c8892['enableCommand']('toggleImageCaption',(_0x568a0c,_0x2350e3)=>{const _0x399d6b=_0x40172d['plugins']['get']('ImageCaptionUtils');let _0x494ba6=_0x47ab67['getClosestSelectedImageElement'](_0x40172d['model']['document']['selection']),_0x2a0005=_0x399d6b['getCaptionFromImageModelElement'](_0x494ba6);_0x40172d['model']['change'](()=>{if(_0x2a0005)return void _0x3c8892['markDeletion'](_0x40172d['model']['createRangeOn'](_0x2a0005));const _0x4a3564=_0x47ab67['isBlockImage'](_0x494ba6);_0x568a0c(_0x2350e3),_0x494ba6=_0x47ab67['getClosestSelectedImageElement'](_0x40172d['model']['document']['selection']),_0x2a0005=_0x399d6b['getCaptionFromImageModelElement'](_0x494ba6),_0x3c8892['markInsertion'](_0x40172d['model']['createRangeOn'](_0x2a0005),_0x4a3564?null:'imageCaption');});}),_0x3c8892['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1353f6));const _0x2439c4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4956ba(_0x34f8d9,_0x5d082c){const _0x49f7b=_0x2439c4['findIndex'](({type:_0x1a0268,subType:_0x17c12f})=>_0x34f8d9['type']==_0x1a0268&&_0x34f8d9['subType']==_0x17c12f),_0x412036=_0x2439c4['findIndex'](({type:_0xfd2c9e,subType:_0xdbb995})=>_0x5d082c['type']==_0xfd2c9e&&_0x5d082c['subType']==_0xdbb995);if(_0x49f7b<0x0||_0x412036<0x0)return!0x1;const _0x1f5f03=_0x34f8d9['getFirstRange'](),_0x437882=_0x5d082c['getFirstRange']();if((0x0==_0x49f7b||0x1==_0x49f7b)&&0x2==_0x412036&&_0x1f5f03['isIntersecting'](_0x437882))return!0x0;if(0x2==_0x49f7b&&0x3==_0x412036){const _0x2a7921=_0x3c8892['_findSuggestions'](_0x1f5f03,'insertion')['filter'](({suggestion:_0x5548e0,meta:_0xa8a577})=>_0xa8a577['isOwn']&&'convertInlineImageToBlock'==_0x5548e0['subType']);if(_0x2a7921['length']>0x1&&_0x437882['end']['isEqual'](_0x1f5f03['start']))return!0x0;if(0x1==_0x2a7921['length']&&(_0x1f5f03['start']['isEqual'](_0x437882['end'])||_0x1f5f03['end']['isEqual'](_0x437882['start'])))return!0x0;}if(0x3==_0x49f7b&&0x3==_0x412036&&_0x1f5f03['start']['isBefore'](_0x437882['start'])){const _0x4f0a70=_0x1f5f03['end']['nodeAfter'],_0x2463e1=_0x437882['start']['nodeBefore'];return _0x47ab67['isBlockImage'](_0x4f0a70)&&_0x4f0a70===_0x2463e1;}return!0x1;}function _0x1353f6(_0x1688b6,_0x44a77f){return _0x4956ba(_0x1688b6,_0x44a77f)?[_0x1688b6,_0x44a77f]:_0x4956ba(_0x44a77f,_0x1688b6)?[_0x44a77f,_0x1688b6]:null;}_0x40172d['plugins']['has']('ImageResize')&&(_0x3c8892['enableDefaultAttributesIntegration']('resizeImage'),_0x3c8892['registerBlockAttribute']('resizedWidth'),_0x3c8892['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x3c1e72,'FORMAT_IMAGE_SIZE'))),_0x40172d['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3c8892['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3c8892['registerBlockAttribute']('alt')),_0x40172d['plugins']['has']('PictureEditing')&&(_0x3c8892['registerBlockAttribute']('sources'),_0x3c8892['descriptionFactory']['registerDescriptionCallback'](_0x237aba=>{if('attribute'!=_0x237aba['type'])return;const {data:_0xc1637b}=_0x237aba;return _0xc1637b&&'sources'==_0xc1637b['key']?{'type':'format','content':''}:void 0x0;})),_0x40172d['plugins']['has']('ImageSizeAttributes')&&(_0x3c8892['registerBlockAttribute']('width'),_0x3c8892['registerBlockAttribute']('height'),_0x3c8892['descriptionFactory']['registerDescriptionCallback'](_0x3a680e=>{if('attribute'!=_0x3a680e['type'])return;const {data:_0xf85c45}=_0x3a680e;return!_0xf85c45||'width'!=_0xf85c45['key']&&'height'!=_0xf85c45['key']?void 0x0:{'type':'format','content':''};})),_0x3c8892['descriptionFactory']['registerDescriptionCallback'](_0x312531=>{if(!!_0x2439c4['find'](({type:_0x20d674,subType:_0x3fbf2b})=>_0x312531['type']==_0x20d674&&_0x312531['subType']==_0x3fbf2b))return _0x312531['previous']?{}:void 0x0;}),_0x3c8892['descriptionFactory']['registerDescriptionCallback'](_0x4ae07f=>{if('insertion'==_0x4ae07f['type']||'deletion'==_0x4ae07f['type']){const _0x4eab5e=_0x4ae07f['getContainedElement']();if(_0x4eab5e&&_0x4eab5e['is']('element','caption'))return{'type':'insertion'==_0x4ae07f['type']?'addObject':'removeObject','element':_0x4eab5e,'quantity':0x1};}}),_0x3c8892['descriptionFactory']['registerDescriptionCallback'](_0x5258bf=>'formatBlock'==_0x5258bf['type']&&'convertInlineImageToBlock'==_0x5258bf['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5258bf['type']&&'convertBlockImageToInline'==_0x5258bf['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3c8892['descriptionFactory']['registerDescriptionCallback'](_0x32b19d=>{if('attribute'!=_0x32b19d['type'])return;const {data:_0x17ee94}=_0x32b19d;if(!_0x17ee94||'alt'!=_0x17ee94['key'])return;const _0x548569=_0x17ee94['newValue'];return _0x548569?{'type':'format','content':c(_0x3c1e72,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x548569+'\x22')}:{'type':'format','content':c(_0x3c1e72,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a09c0=this['editor'],_0x201385=_0x3a09c0['locale'];_0x3a09c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x501bc6=>{if('formatBlock'!=_0x501bc6['type']&&'formatInline'!=_0x501bc6['type'])return;const {data:_0x4abfb2}=_0x501bc6;if(_0x4abfb2){if('imageTextAlternative'==_0x4abfb2['commandName']){const _0x35f33d=_0x4abfb2['commandParams'][0x0]['newValue'];return _0x35f33d?{'type':'format','content':c(_0x201385,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x35f33d+'\x22')}:{'type':'format','content':c(_0x201385,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4abfb2['commandName']){const _0x9c711=_0x4abfb2['commandParams'][0x0]['width'];return _0x9c711?{'type':'format','content':c(_0x201385,'*Set\x20image\x20width:*\x20%0',_0x9c711)}:{'type':'format','content':c(_0x201385,'*Reset\x20image\x20width*')};}}});}}class at extends _0x5a9880{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5c1a00=this['editor']['locale'],_0x331611=this['editor']['plugins']['get']('TrackChangesEditing');_0x331611['enableDefaultAttributesIntegration']('replaceImageSource'),_0x331611['registerBlockAttribute']('src'),_0x331611['descriptionFactory']['registerDescriptionCallback'](_0x9ad840=>{if('attribute'!=_0x9ad840['type'])return;const {data:_0x5ab591}=_0x9ad840;return _0x5ab591&&'src'==_0x5ab591['key']?_0x5ab591['newValue']&&_0x5ab591['oldValue']?{'type':'format','content':c(_0x5c1a00,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x364efa=this['editor']['plugins']['get']('TrackChangesEditing');_0x364efa['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x364efa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x364efa['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x364efa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1648a3=this['editor'],_0x36891a=_0x1648a3['locale'];_0x1648a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x157faa=>{if('formatBlock'!=_0x157faa['type']&&'formatInline'!=_0x157faa['type'])return;const {data:_0x3a6ebf}=_0x157faa;if(!_0x3a6ebf||'replaceImageSource'!=_0x3a6ebf['commandName'])return;return{'type':'format','content':c(_0x36891a,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x5a9880{['afterInit'](){const _0x37d06d=this['editor'];if(!_0x37d06d['plugins']['has']('ImageStyleEditing'))return;const _0x21ec75=_0x37d06d['plugins']['get']('TrackChangesEditing'),_0x418406=_0x37d06d['plugins']['get']('ImageUtils'),_0x604b0f={};_0x21ec75['enableCommand']('imageStyle',(_0x3ec820,_0x5caef1)=>{const _0x2bc74a=_0x37d06d['plugins']['get']('Users')['me'],_0x5f152c=_0x37d06d['commands']['get']('imageStyle');let _0x35dd8a=_0x418406['getClosestSelectedImageElement'](_0x37d06d['model']['document']['selection']),_0x5f2873=_0x37d06d['model']['createRangeOn'](_0x35dd8a),_0x59083a=_0x5f152c['value'];if(_0x59083a==_0x5caef1['value'])return;const _0x9f5b2e={'commandName':'imageStyle','commandParams':[_0x5caef1],'formatGroupId':_0x4d67a8()};_0x37d06d['model']['change'](()=>{if(_0x21ec75['getSuggestions']()['filter'](_0x27d004=>_0x27d004['isInContent']&&_0x2bc74a==_0x27d004['author']&&('formatBlock'==_0x27d004['type']||'formatInline'==_0x27d004['type'])&&('imageStylePreApply'==_0x27d004['subType']||'imageStylePostApply'==_0x27d004['subType'])&&_0x27d004['getFirstRange']()['isEqual'](_0x5f2873))['forEach'](_0x117b60=>_0x21ec75['discardSuggestion'](_0x117b60['head'])),_0x35dd8a=_0x418406['getClosestSelectedImageElement'](_0x37d06d['model']['document']['selection']),_0x5f2873=_0x37d06d['model']['createRangeOn'](_0x35dd8a),_0x5f152c['refresh'](),_0x37d06d['commands']['get']('imageTypeInline')['refresh'](),_0x37d06d['commands']['get']('imageTypeBlock')['refresh'](),_0x59083a=_0x5f152c['value'],_0x59083a!=_0x5caef1['value'])return _0x418406['isInlineImage'](_0x35dd8a)&&_0x5f152c['shouldConvertImageType'](_0x5caef1['value'],_0x35dd8a)?(_0x3ec820({..._0x5caef1,'setImageSizes':!0x1}),_0x35dd8a=_0x418406['getClosestSelectedImageElement'](_0x37d06d['model']['document']['selection']),void _0x21ec75['markBlockFormat'](_0x35dd8a,{..._0x9f5b2e,'commandReversedParams':[{'value':_0x59083a||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x418406['isBlockImage'](_0x35dd8a)?_0x21ec75['markBlockFormat'](_0x35dd8a,_0x9f5b2e,[],'imageStylePostApply'):_0x21ec75['markInlineFormat'](_0x5f2873,_0x9f5b2e,'imageStylePostApply'));});});for(const _0xa5a910 of _0x37d06d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x604b0f[_0xa5a910['name']]=_0xa5a910['title']['toLowerCase']();_0x21ec75['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x21ec75['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x21ec75['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x21ec75['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2eb5e5])=>{_0x418406['setImageNaturalSizeAttributes'](_0x2eb5e5['getContainedElement']());}),_0x21ec75['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x36ed02,_0x4638d0)=>{_0x21ec75['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x36ed02,{'commandName':_0x4638d0['commandName'],'commandParams':_0x4638d0['commandReversedParams']});}),_0x21ec75['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x244314,_0x8c5d3e){if(_0x47c3d0(_0x244314,_0x8c5d3e))return[_0x244314,_0x8c5d3e];if(_0x47c3d0(_0x8c5d3e,_0x244314))return[_0x8c5d3e,_0x244314];return null;});const _0xad4886=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x47c3d0(_0x58ec9a,_0x56211c){const _0x4737ba=_0xad4886['findIndex'](({type:_0x4179c0,subType:_0x2db057})=>_0x58ec9a['type']==_0x4179c0&&_0x58ec9a['subType']==_0x2db057),_0x64d0b4=_0xad4886['findIndex'](({type:_0x57f4c3,subType:_0x27d283})=>_0x56211c['type']==_0x57f4c3&&_0x56211c['subType']==_0x27d283);if(_0x4737ba<0x0||_0x64d0b4<0x0)return!0x1;const _0x5496c2=_0x58ec9a['getFirstRange'](),_0x1f54a4=_0x56211c['getFirstRange']();if((0x0==_0x4737ba||0x1==_0x4737ba)&&0x2==_0x64d0b4&&_0x5496c2['isIntersecting'](_0x1f54a4))return!0x0;if(0x2==_0x4737ba&&0x3==_0x64d0b4){const _0x5c4d47=_0x21ec75['_findSuggestions'](_0x5496c2,'insertion')['filter'](({suggestion:_0x41e2c2,meta:_0x467174})=>_0x467174['isOwn']&&'convertInlineImageToBlock'==_0x41e2c2['subType']);if(_0x5c4d47['length']>0x1&&_0x1f54a4['end']['isEqual'](_0x5496c2['start']))return!0x0;if(0x1==_0x5c4d47['length']&&(_0x5496c2['start']['isEqual'](_0x1f54a4['end'])||_0x5496c2['end']['isEqual'](_0x1f54a4['start'])))return!0x0;}if(0x3==_0x4737ba&&0x3==_0x64d0b4&&_0x5496c2['start']['isBefore'](_0x1f54a4['start'])){const _0x34a2e4=_0x5496c2['end']['nodeAfter'],_0x42a5ed=_0x1f54a4['start']['nodeBefore'];return _0x418406['isBlockImage'](_0x34a2e4)&&_0x34a2e4===_0x42a5ed;}return!0x1;}_0x37d06d['model']['document']['registerPostFixer'](()=>{let _0x4acd3f=!0x1;const _0x1913e9=Array['from'](_0x37d06d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x293f6f,data:_0x5b66fc}of _0x1913e9){const {group:_0x2e96bd,type:_0x142bda,subType:_0x261033,id:_0x319189}=_0x21ec75['_splitMarkerName'](_0x293f6f);if('suggestion'==_0x2e96bd&&_0x21ec75['hasSuggestion'](_0x319189)){if('formatBlock'==_0x142bda&&('imageStylePreApply'==_0x261033||'imageStylePostApply'==_0x261033)){const _0x7c70e4=_0x21ec75['getSuggestion'](_0x319189);if(_0x5b66fc['newRange']){const _0x9965e0=_0x7c70e4['getFirstRange']()['getContainedElement']();if(_0x418406['isBlockImage'](_0x9965e0))continue;_0x21ec75['discardSuggestion'](_0x7c70e4),_0x4acd3f=!0x0;}}if('insertion'==_0x142bda&&'imageCaption'==_0x261033&&!_0x5b66fc['newRange']){const _0x562714=_0x21ec75['getSuggestion'](_0x319189);_0x562714['next']&&_0x562714['next']['isInContent']&&(_0x21ec75['discardSuggestion'](_0x562714['next']),_0x4acd3f=!0x0);}}}return _0x4acd3f;}),this['_registerLegacyDescription'](_0x604b0f);}['_registerLegacyDescription'](_0x43744f){const _0x339519=this['editor'],_0x4a164f=_0x339519['locale'];_0x339519['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x305cf7=>{if('formatBlock'!=_0x305cf7['type']&&'formatInline'!=_0x305cf7['type'])return;const {data:_0xebfa36}=_0x305cf7;if(!_0xebfa36||'imageStyle'!=_0xebfa36['commandName'])return;const _0x1c3526=_0xebfa36['commandParams'][0x0]['value'];return _0x453210('side'===_0x1c3526?c(_0x4a164f,'FORMAT_SIDE_IMAGE'):_0x43744f[_0x1c3526]||_0x1c3526);function _0x453210(_0xcce15){return{'type':'format','content':c(_0x4a164f,'*Format:*\x20%0',_0xcce15)};}});}}class ut extends _0x5a9880{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x587097){super(_0x587097),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x637c0=this['editor'],_0x3194e9=_0x637c0['commands']['get']('importWord'),_0x2c510c=_0x637c0['commands']['get']('trackChanges');_0x3194e9&&(_0x3194e9['on']('execute',(_0x12059c,[,_0x5a342f])=>{this['_trackChangesValueDuringImport']=_0x2c510c['value'],_0x5a342f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3194e9,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3194e9,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2c510c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x637c0['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x484bc8,_0x1cad17){const {suggestions:_0x1b6752}=_0x1cad17,_0x48859c=this['editor']['commands']['get']('trackChanges'),_0x3e9b32=_0x48859c['value'];this['_trackChangesValueDuringImport']!==_0x3e9b32&&(_0x48859c['execute'](),this['_trackChangesExecuted']=!0x0),_0x1b6752&&_0x1b6752['forEach'](({id:_0x323a49,type:_0x4433b0,author:_0x4ecb64,created_at:_0x2605a8})=>{const _0x2e7d99={'id':_0x323a49,'type':_0x4433b0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4ecb64,'createdAt':_0x2605a8?new Date(_0x2605a8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2e7d99);});}}class ft extends _0x5a9880{['afterInit'](){const _0x61eb9a=this['editor'],_0x2209c6=_0x61eb9a['plugins']['get']('TrackChangesEditing');if(_0x61eb9a['plugins']['has']('IndentEditing')&&(_0x2209c6['enableCommand']('indent'),_0x2209c6['enableCommand']('outdent')),_0x61eb9a['plugins']['has']('IndentBlock')){for(const _0x1b4b7a of['indentBlock','outdentBlock'])_0x2209c6['enableDefaultAttributesIntegration'](_0x1b4b7a);}const _0xec52dd=_0x61eb9a['locale'];_0x2209c6['registerBlockAttribute']('blockIndent'),_0x2209c6['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0xec52dd,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c6135=this['editor'],_0x5f0499=_0x3c6135['locale'],_0x3b6fe0=_0x3c6135['plugins']['get']('TrackChangesEditing');_0x3b6fe0['descriptionFactory']['registerDescriptionCallback'](_0x667a8a=>{if('formatBlock'!=_0x667a8a['type'])return;const {data:_0x3c5d75}=_0x667a8a;if(!_0x3c5d75)return;if('indentBlock'!=_0x3c5d75['commandName']&&'outdentBlock'!=_0x3c5d75['commandName'])return;const _0x405b9a=_0x667a8a['getItems']()[0x0],_0x504149=_0x3b6fe0['descriptionFactory']['getItemLabel'](_0x405b9a);return'indentBlock'==_0x3c5d75['commandName']?{'type':'format','content':c(_0x5f0499,'*Indent:*\x20%0',_0x504149)}:'outdentBlock'==_0x3c5d75['commandName']?{'type':'format','content':c(_0x5f0499,'*Outdent:*\x20%0',_0x504149)}:void 0x0;});}}class ht extends _0x5a9880{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x5a9880{['afterInit'](){const _0x478256=this['editor'];if(!_0x478256['plugins']['has']('LinkEditing'))return;const _0x1a8b2a=_0x478256['plugins']['get']('TrackChangesEditing'),_0x1278d9=_0x478256['commands']['get']('link');_0x1a8b2a['enableDefaultAttributesIntegration']('link'),_0x1a8b2a['enableDefaultAttributesIntegration']('unlink'),_0x1a8b2a['registerInlineAttribute']('linkHref');for(const _0x56bc8d of _0x1278d9['manualDecorators'])_0x1a8b2a['registerInlineAttribute'](_0x56bc8d['id']),_0x1a8b2a['descriptionFactory']['registerAttributeLabel'](_0x56bc8d['id'],'link\x20('+_0x56bc8d['label']['toLowerCase']()+')');_0x1a8b2a['descriptionFactory']['registerDescriptionCallback'](_0x44c778=>{if('attribute'!=_0x44c778['type'])return;const {data:_0x36fc49}=_0x44c778;if(!_0x36fc49||'linkHref'!=_0x36fc49['key'])return;const _0xba5b51=_0x36fc49['newValue'],_0x38345b=_0x478256['locale'];return{'type':'format','content':null==_0xba5b51?c(_0x38345b,'*Remove\x20link*'):c(_0x38345b,'*Set\x20link:*\x20%0','\x22'+_0xba5b51+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x405362=this['editor'],_0x13a8c1=_0x405362['locale'];_0x405362['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x355c87=>{if('formatInline'!=_0x355c87['type'])return;const {data:_0x1ee2ce}=_0x355c87;if(_0x1ee2ce){if('link'==_0x1ee2ce['commandName']){const _0x408ff9=_0x1ee2ce['commandParams'][0x0];return{'type':'format','content':c(_0x13a8c1,'*Set\x20link:*\x20%0','\x22'+_0x408ff9+'\x22')};}return'unlink'==_0x1ee2ce['commandName']?{'type':'format','content':c(_0x13a8c1,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x5a9880{['afterInit'](){const _0x1dfcf3=this['editor'],_0x4a32a3=_0x1dfcf3['locale'];if(!_0x1dfcf3['plugins']['has']('LegacyListEditing'))return;const _0x25e202=_0x1dfcf3['plugins']['get']('TrackChangesEditing'),_0xce8cea=_0x1dfcf3['plugins']['has']('LegacyTodoListEditing');function _0x39c214(_0x38121f){return()=>{const _0x5f447b=_0x1dfcf3['model']['document']['selection'],_0x1b6b6d=_0x1dfcf3['commands']['get'](_0x38121f);if(_0x1b6b6d['value'])return void _0x1dfcf3['execute']('paragraph',{});const _0x2c489a=_0x38121f['slice'](0x0,-0x4),_0x352930=function(_0x124905,_0x4a0a80,_0x2e7841){let _0x54063e=Array['from'](_0x124905)['filter'](_0x3986a2=>function(_0x302123,_0x577d70){return _0x577d70['checkChild'](_0x302123['parent'],'listItem')&&!_0x577d70['isObject'](_0x302123);}(_0x3986a2,_0x2e7841));_0x54063e=_0x54063e['filter'](_0x388ccd=>!_0x388ccd['is']('element','listItem')||_0x388ccd['getAttribute']('listType')!=_0x4a0a80);const _0x35a347=new Set();for(const _0x3cf707 of _0x54063e)_0x3cf707['is']('element','listItem')?_0x35a347['add'](Le(_0x3cf707)):_0x35a347['add'](_0x3cf707);return Array['from'](_0x35a347);}(_0x5f447b['getSelectedBlocks'](),_0x2c489a,_0x1dfcf3['model']['schema']);_0x1dfcf3['model']['change'](()=>{for(const _0x4a7685 of _0x352930)_0x25e202['markBlockFormat'](_0x4a7685,{'commandName':_0x38121f,'commandParams':[{'forceValue':!_0x1b6b6d['value']}],'formatGroupId':'blockName'},Ee(_0x4a7685));});};}function _0x4aafd7(_0x52f4f2){return()=>{const _0x40203c=function(_0x546030){let _0x4209ad=Array['from'](_0x546030);const _0x634314=_0x4209ad['findIndex'](_0x2a4787=>'listItem'!=_0x2a4787['name']);return _0x634314>-0x1&&(_0x4209ad=_0x4209ad['slice'](0x0,_0x634314)),_0x4209ad;}(_0x1dfcf3['model']['document']['selection']['getSelectedBlocks']()),_0x3e39fb=_0x1dfcf3['model']['createRange'](_0x1dfcf3['model']['createPositionAt'](_0x40203c[0x0],'before'),_0x1dfcf3['model']['createPositionAt'](_0x40203c[_0x40203c['length']-0x1],'end'));_0x1dfcf3['model']['change'](()=>{_0x25e202['markBlockFormat'](_0x3e39fb,{'commandName':_0x52f4f2,'commandParams':[],'formatGroupId':'listIndent'},function(_0x44c133){const _0x521592=new Set();for(const _0x4b1fb6 of _0x44c133){let _0x311ba0=_0x4b1fb6['nextSibling'];for(;_0x311ba0&&_0x311ba0['getAttribute']('listIndent')>_0x4b1fb6['getAttribute']('listIndent');)_0x521592['add'](_0x311ba0),_0x311ba0=_0x311ba0['nextSibling'];}return Array['from'](_0x521592);}(_0x40203c));});};}_0x25e202['enableCommand']('numberedList',_0x39c214('numberedList')),_0x25e202['enableCommand']('bulletedList',_0x39c214('bulletedList')),_0xce8cea&&_0x25e202['enableCommand']('todoList',_0x39c214('todoList')),_0x25e202['enableCommand']('indentList',_0x4aafd7('indentList')),_0x25e202['enableCommand']('outdentList',_0x4aafd7('outdentList')),_0xce8cea&&_0x25e202['enableCommand']('checkTodoList',()=>{const _0xc3ea86=_0x1dfcf3['commands']['get']('checkTodoList'),_0x457345=Array['from'](_0xc3ea86['_selectedElements']);_0x457345['filter'](_0x3ecd47=>_0x3ecd47['getAttribute']('todoListChecked')!=_0xc3ea86['value']),_0x1dfcf3['model']['change'](()=>{for(const _0x483589 of _0x457345)_0x25e202['markBlockFormat'](_0x483589,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xc3ea86['value']}]});});}),_0x25e202['descriptionFactory']['registerElementLabel']('listItem',_0x1f45ad=>c(_0x4a32a3,'ELEMENT_LIST_ITEM',_0x1f45ad)),_0x25e202['descriptionFactory']['registerDescriptionCallback'](_0x1cac92=>{if('formatBlock'!=_0x1cac92['type']&&'formatInline'!=_0x1cac92['type'])return;const {data:_0x4e5532}=_0x1cac92;if(_0x4e5532){if('numberedList'==_0x4e5532['commandName']||'bulletedList'==_0x4e5532['commandName']||'todoList'==_0x4e5532['commandName'])switch(_0x4e5532['commandName']['replace']('List','')){case'bulleted':return _0x48d5af(c(_0x4a32a3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x48d5af(c(_0x4a32a3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x48d5af(c(_0x4a32a3,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4e5532['commandName'])return{'type':'format','content':c(_0x4a32a3,'*Indent:*\x20%0',c(_0x4a32a3,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4e5532['commandName'])return{'type':'format','content':c(_0x4a32a3,'*Outdent:*\x20%0',c(_0x4a32a3,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4e5532['commandName'])return _0x4e5532['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4a32a3,'*Check\x20item*')}:{'type':'format','content':c(_0x4a32a3,'*Uncheck\x20item*')};}function _0x48d5af(_0x4c410e){return{'type':'format','content':c(_0x4a32a3,'*Change\x20to:*\x20%0',_0x4c410e)};}});}}function Le(_0x84bba0){const _0x50a1c1=_0x84bba0['getAttribute']('listIndent');if(0x0==_0x50a1c1)return _0x84bba0;let _0x4ae11f=_0x84bba0;for(;_0x84bba0['previousSibling']&&_0x84bba0['previousSibling']['is']('element','listItem');){const _0x4ac6d4=_0x84bba0['previousSibling']['getAttribute']('listIndent');if(_0x4ac6d4==_0x50a1c1)_0x4ae11f=_0x84bba0['previousSibling'];else{if(_0x4ac6d4<_0x50a1c1)break;}_0x84bba0=_0x84bba0['previousSibling'];}return _0x4ae11f;}function Ee(_0x1cb427){const _0x532ed1=[];if(_0x1cb427['is']('element','listItem')&&_0x1cb427['getAttribute']('listIndent')>0x0){let _0x2579cd=_0x1cb427['nextSibling'];for(;_0x2579cd&&'listItem'==_0x2579cd['name']&&_0x2579cd['getAttribute']('listIndent')==_0x1cb427['getAttribute']('listIndent');)_0x532ed1['push'](_0x2579cd),_0x2579cd=_0x2579cd['nextSibling'];}return _0x532ed1;}class Q extends _0x5a9880{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x416528=this['editor']['config']['get']('list.properties'),_0x20d69a=this['editor']['plugins']['get']('TrackChangesEditing');_0x416528['styles']&&_0x20d69a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x416528['reversed']&&_0x20d69a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x416528['startIndex']&&_0x20d69a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x20d69a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2cf40f,_0x3ea12c={}){const _0x233feb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x6b9ab1=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x233feb['markMultiRangeBlockFormat'](_0x6b9ab1,{'commandName':'listStyle','commandParams':[{'type':_0x3ea12c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5d55fd,_0x4826d8={}){const _0x107faf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40f854=this['_getSuggestionBlocks'](_0x215602=>_0x215602['is']('element','listItem')&&'numbered'===_0x215602['getAttribute']('listType'));if(_0x40f854['length']<0x1)return;const _0x3b0497=_0x40f854['map'](_0x4a6c6c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4a6c6c,'before'),this['editor']['model']['createPositionAt'](_0x4a6c6c,0x0)));this['editor']['model']['change'](()=>{_0x107faf['markMultiRangeBlockFormat'](_0x3b0497,{'commandName':'listReversed','commandParams':[{'reversed':_0x4826d8['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4b30cb,_0x34300e={}){const _0x8c586e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48cc65=this['_getSuggestionBlocks'](_0x7e102e=>_0x7e102e['is']('element','listItem')&&'numbered'===_0x7e102e['getAttribute']('listType'));if(_0x48cc65['length']<0x1)return;const _0x14f218=_0x48cc65['map'](_0x1c83f3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1c83f3,'before'),this['editor']['model']['createPositionAt'](_0x1c83f3,0x0)));this['editor']['model']['change'](()=>{_0x8c586e['markMultiRangeBlockFormat'](_0x14f218,{'commandName':'listStart','commandParams':[{'startIndex':_0x34300e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1cce57){if('formatBlock'!=_0x1cce57['type']&&'formatInline'!=_0x1cce57['type'])return;const _0x2f6b1b=this['editor']['locale'],{data:_0x393545}=_0x1cce57;if(!_0x393545)return;let _0x1f0b29,_0x706cad;switch(_0x393545['commandName']){case'listStyle':_0x1f0b29='*Change\x20to:*\x20%0',_0x706cad={'type':'format','content':c(_0x2f6b1b,_0x1f0b29,c(_0x2f6b1b,this['_getTranslationKeyForListStyle'](_0x393545['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1f0b29=_0x393545['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x706cad={'type':'format','content':c(_0x2f6b1b,_0x1f0b29)};break;case'listStart':_0x1f0b29='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x706cad={'type':'format','content':c(_0x2f6b1b,_0x1f0b29,_0x393545['commandParams'][0x0]['startIndex'])};}return _0x706cad;}['_getSuggestionBlocksForListStyle'](){const _0x2770a8=this['editor']['plugins']['get']('LegacyListUtils');let _0x503b69=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x503b69[0x0]?.['is']('element','listItem')&&_0x503b69['unshift'](..._0x2770a8['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x503b69[_0x503b69['length']-0x1]?.['is']('element','listItem')&&_0x503b69['push'](..._0x2770a8['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x503b69=[...new Set(_0x503b69)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x503b69=_0x503b69['filter'](_0x377909=>_0x377909['is']('element','listItem'))),_0x503b69;}['_getSuggestionBlocks'](_0x44afdb){const _0x527bb2=this['editor']['plugins']['get']('LegacyListUtils');let _0x912836=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x44afdb)['map'](_0x4ba41f=>{const _0x440f73=this['editor']['model']['createPositionAt'](_0x4ba41f,0x0);return[..._0x527bb2['getSiblingNodes'](_0x440f73,'backward'),..._0x527bb2['getSiblingNodes'](_0x440f73,'forward')];})['flat']();return _0x912836=[...new Set(_0x912836)],_0x912836;}['_getTranslationKeyForListStyle'](_0x18803a){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x18803a)||'default')['toUpperCase']()+'_LIST_'+_0x18803a['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x5a9880{['afterInit'](){const _0x588a3d=this['editor'];if(!_0x588a3d['plugins']['has']('MediaEmbedEditing'))return;const _0x4c9757=_0x588a3d['plugins']['get']('TrackChangesEditing'),_0x3aabb9=_0x588a3d['locale'];_0x4c9757['enableCommand']('mediaEmbed'),_0x4c9757['descriptionFactory']['registerElementLabel']('media',_0x7454df=>c(_0x3aabb9,'ELEMENT_MEDIA',_0x7454df)),_0x588a3d['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x53f3be,{writer:_0x3d567b,options:_0x25568e})=>{if(_0x25568e['showSuggestionHighlights'])return _0x3d567b['createEmptyElement']('div');},'converterPriority':'high'}),_0x588a3d['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3c5422,_0x52fc94,_0x33f584)=>{_0x33f584['options']['showSuggestionHighlights']&&_0x3c5422['stop']();},{'priority':'high'});}}class pt extends _0x5a9880{['afterInit'](){const _0x3830cd=this['editor'];_0x3830cd['plugins']['has']('MentionEditing')&&_0x3830cd['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x5a9880{['afterInit'](){const _0x1f1e9c=this['editor'];if(!_0x1f1e9c['plugins']['has']('MergeFieldsEditing'))return;const _0x540963=_0x1f1e9c['plugins']['get']('TrackChangesEditing'),_0x269273=_0x1f1e9c['locale'];_0x540963['enableCommand']('insertMergeField'),_0x540963['enableCommand']('insertMergeFieldBlock'),_0x540963['enableCommand']('insertMergeFieldImage'),_0x540963['descriptionFactory']['registerElementLabel']('mergeField',_0x33124b=>c(_0x269273,'ELEMENT_MERGE_FIELD',_0x33124b)),_0x540963['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x121a50=>c(_0x269273,'ELEMENT_MERGE_FIELD',_0x121a50)),_0x540963['descriptionFactory']['registerDescriptionCallback'](_0x191a85=>{if('insertion'!=_0x191a85['type']&&'deletion'!=_0x191a85['type'])return;const _0x377864=_0x191a85['getContainedElement']();if(null==_0x377864)return;const _0x142a81=_0x1f1e9c['plugins']['get']('MergeFieldsEditing');let _0x2e206d;switch(_0x142a81['getMergeFieldType'](_0x377864)){case null:return;case'image':{const _0x459638=_0x142a81['unwrapAffixes'](_0x377864['getAttribute']('src'));_0x2e206d=_0x142a81['getLabel'](_0x459638)||_0x459638;break;}default:{const _0x4275d7=_0x377864['getAttribute']('id');_0x2e206d=_0x142a81['getLabel'](_0x4275d7)||_0x4275d7;break;}}return'insertion'==_0x191a85['type']?{'type':'insertion','content':c(_0x269273,'*Insert:*\x20%0','\x22'+_0x2e206d+'\x22\x20'+c(_0x269273,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x269273,'*Remove:*\x20%0','\x22'+_0x2e206d+'\x22\x20'+c(_0x269273,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x5a9880{['afterInit'](){const _0x4d4cfe=this['editor'],_0x5736c4=_0x4d4cfe['plugins']['get']('TrackChangesEditing');_0x4d4cfe['plugins']['has']('MultiLevelList')&&(_0x5736c4['enableDefaultAttributesIntegration']('multiLevelList'),_0x5736c4['registerBlockAttribute']('listMarkerStyle'),_0x5736c4['descriptionFactory']['registerDescriptionCallback'](_0x58f00a=>this['handleDescriptions'](_0x58f00a)));}['handleDescriptions'](_0x3622e1){const _0x19cc0c=this['editor']['locale'],{data:_0x494591}=_0x3622e1,_0x19b6b8={'type':'format','content':''};if(_0x494591&&'listMarkerStyle'==_0x494591['key']){if(!_0x494591['oldValue'])return{'type':'format','content':c(_0x19cc0c,'*Set\x20format:*\x20%0',c(_0x19cc0c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x494591['newValue']+')'};if(!_0x494591['newValue']){let _0x1df4cc=_0x3622e1['head'];for(;_0x1df4cc;){if(_0x1df4cc['data']&&'listType'==_0x1df4cc['data']['key']&&_0x1df4cc['data']['newValue'])return _0x19b6b8;_0x1df4cc=_0x1df4cc['next'];}return{'type':'format','content':c(_0x19cc0c,'*Remove\x20format:*\x20%0',c(_0x19cc0c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x494591['oldValue']+')'};}}}}class bt extends _0x5a9880{['afterInit'](){const _0xbfef91=this['editor'];if(!_0xbfef91['plugins']['has']('PageBreakEditing'))return;_0xbfef91['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2ac1dc=_0xbfef91['plugins']['get']('TrackChangesEditing'),_0x1a1cc8=_0xbfef91['locale'];_0x2ac1dc['descriptionFactory']['registerElementLabel']('pageBreak',_0x296dc9=>c(_0x1a1cc8,'ELEMENT_PAGE_BREAK',_0x296dc9));}}class yt extends _0x5a9880{['afterInit'](){const _0x599365=this['editor'];if(!_0x599365['plugins']['has']('Paragraph'))return;const _0x557753=_0x599365['locale'],_0x4fcbf2=_0x599365['plugins']['get']('TrackChangesEditing');_0x4fcbf2['descriptionFactory']['registerElementLabel']('paragraph',_0x46fe9e=>c(_0x557753,'ELEMENT_PARAGRAPH',_0x46fe9e)),_0x4fcbf2['enableDefaultAttributesIntegration']('paragraph'),_0x4fcbf2['enableCommand']('insertParagraph'),_0x599365['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x599365),{'priority':'highest'}),_0x599365['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5a3d0d,_0x2fbc1b,_0x559a11)=>{_0x559a11['options']['showSuggestionHighlights']&&nr(_0x599365,{'showActiveMarker':!0x1})(_0x5a3d0d,_0x2fbc1b,_0x559a11);},{'priority':'highest'});const _0x5012a2=_0x4fcbf2['descriptionFactory'];_0x5012a2['registerDescriptionCallback'](_0x338cbe=>{if('insertion'!==_0x338cbe['type'])return;const {start:_0x528036,end:_0x477b30}=_0x338cbe['getFirstRange']();if(!_0x528036['isTouching'](_0x477b30)||!_0x528036['nodeAfter'])return;const _0xb90160=_0x599365['model']['schema'],_0x20d23f=_0x528036['nodeAfter'];return _0xb90160['isBlock'](_0x20d23f)&&!_0xb90160['isLimit'](_0x20d23f)&&_0xb90160['checkChild'](_0x20d23f,'$text')?{'type':'insertion','content':c(_0x557753,'*Insert:*\x20%0',_0x5012a2['getItemLabel'](_0x20d23f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44060f=this['editor'],_0x22ce8b=_0x44060f['locale'];_0x44060f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5db3d4=>{if('formatBlock'!=_0x5db3d4['type'])return;const {data:_0x1ccc93}=_0x5db3d4;return _0x1ccc93&&'paragraph'==_0x1ccc93['commandName']?{'type':'format','content':c(_0x22ce8b,'*Change\x20to:*\x20%0',c(_0x22ce8b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x59f1a2,{showActiveMarker:_0x159d7f=!0x0}={}){return(_0x4135ff,_0x44fa20,_0x53870f)=>{const _0xa4191a=_0x59f1a2['plugins']['get']('TrackChangesEditing'),_0x45a5bf=_0x44fa20['markerRange']['start'],_0xd18f05=_0x44fa20['markerRange']['end'],_0x17e551=_0x59f1a2['model']['schema'];if(!_0x45a5bf['isTouching'](_0xd18f05)||!_0x45a5bf['nodeAfter'])return;const _0x7b04d1=_0x45a5bf['nodeAfter'];if(_0x17e551['isBlock'](_0x7b04d1)&&!_0x17e551['isLimit'](_0x7b04d1)&&_0x17e551['checkChild'](_0x7b04d1,'$text')){if(!_0x53870f['consumable']['consume'](_0x44fa20['markerRange'],_0x4135ff['name']))return;const {authorId:_0x52f045}=_0xa4191a['_splitMarkerName'](_0x44fa20['markerName']),_0x1f8808=_0x53870f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x52f045}),_0x2e50a3=_0x53870f['mapper']['toViewPosition'](_0xd18f05);_0x159d7f&&_0xa4191a['activeMarkers']['includes'](_0x44fa20['markerName'])&&_0x53870f['writer']['addClass']('ck-suggestion-marker--active',_0x1f8808),_0x53870f['writer']['insert'](_0x2e50a3,_0x1f8808),_0x53870f['mapper']['bindElementToMarker'](_0x1f8808,_0x44fa20['markerName']);}};}class jt extends _0x5a9880{['afterInit'](){const _0x2e686a=this['editor'];_0x2e686a['commands']['get']('replaceSource')&&_0x2e686a['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x5a9880{['afterInit'](){const _0x1211ad=this['editor'];if(!_0x1211ad['plugins']['has']('RemoveFormatEditing'))return;_0x1211ad['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x556e3a=this['editor'];_0x556e3a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9b50c4=>{if('formatBlock'!=_0x9b50c4['type']&&'formatInline'!=_0x9b50c4['type'])return;const {data:_0x5143d0}=_0x9b50c4;return _0x5143d0&&'removeFormat'==_0x5143d0['commandName']?{'type':'format','content':c(_0x556e3a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x5a9880{['afterInit'](){const _0x4ad21b=this['editor'];if(!_0x4ad21b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x9d24fa=_0x4ad21b['plugins']['get']('TrackChangesEditing');_0x9d24fa['enableCommand']('goToPreviousRestrictedEditingException'),_0x9d24fa['enableCommand']('goToNextRestrictedEditingException');const _0x275ea0=_0x4ad21b['plugins']['get']('RestrictedEditingModeEditing');_0x275ea0['enableCommand']('trackChanges'),_0x275ea0['enableCommand']('acceptSuggestion'),_0x275ea0['enableCommand']('discardSuggestion'),_0x275ea0['enableCommand']('acceptAllSuggestions'),_0x275ea0['enableCommand']('discardAllSuggestions'),_0x275ea0['enableCommand']('acceptSelectedSuggestions'),_0x275ea0['enableCommand']('discardSelectedSuggestions');}}class It extends _0x5a9880{static get['requires'](){return[_0x5296a0];}['init'](){const _0xd2d6c3=this['editor'],_0x522ffc=_0xd2d6c3['plugins']['get']('TrackChangesEditing');_0x522ffc['enableCommand']('shiftEnter'),_0xd2d6c3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0xd2d6c3),{'priority':'high'}),_0xd2d6c3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0xd2d6c3),{'priority':'high'}),_0xd2d6c3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4e42ab,_0x26c094,_0x5bf851)=>{_0x5bf851['options']['showSuggestionHighlights']&&je(_0xd2d6c3,{'showActiveMarker':!0x1})(_0x4e42ab,_0x26c094,_0x5bf851);}),_0x522ffc['descriptionFactory']['registerElementLabel']('softBreak',_0x3c6c80=>c(_0xd2d6c3['locale'],'ELEMENT_LINE_BREAK',_0x3c6c80));}}function je(_0x4bcd36,{showActiveMarker:_0x31fbf5=!0x0}={}){return(_0x20a52d,_0x34c0a1,_0x11c782)=>{const _0x51a4a8=_0x4bcd36['plugins']['get']('TrackChangesEditing');if(!_0x11c782['consumable']['test'](_0x34c0a1['markerRange'],_0x20a52d['name']))return;const _0x395263=_0x4bcd36['model'];for(const _0x1884ba of _0x34c0a1['markerRange']['getItems']()){if(!_0x1884ba['is']('element','softBreak'))continue;const _0x5b6965='deletion'==_0x34c0a1['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x41cfad}=_0x51a4a8['_splitMarkerName'](_0x34c0a1['markerName']),_0x5c2643=_0x11c782['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5b6965,'data-author-id':_0x41cfad}),_0x15bf83=_0x11c782['mapper']['toViewPosition'](_0x395263['createPositionBefore'](_0x1884ba));_0x31fbf5&&_0x51a4a8['activeMarkers']['includes'](_0x34c0a1['markerName'])&&_0x11c782['writer']['addClass']('ck-suggestion-marker--active',_0x5c2643),_0x11c782['writer']['insert'](_0x15bf83,_0x5c2643),_0x11c782['mapper']['bindElementToMarker'](_0x5c2643,_0x34c0a1['markerName']);}};}class _t extends _0x5a9880{['afterInit'](){const _0x1d1ee3=this['editor'],_0x29270a=_0x1d1ee3['model'],_0x446267=_0x1d1ee3['locale'];if(!_0x1d1ee3['plugins']['has']('StandardEditingModeEditing'))return;const _0x1e979=_0x1d1ee3['plugins']['get']('TrackChangesEditing'),_0x161c81='restrictedEditingException',_0x4e4bec=_0x1d1ee3['commands']['get'](_0x161c81);_0x1e979['enableCommand'](_0x161c81,(_0x1e7dd9,_0x1bb233={})=>{const _0x3d59dd=_0x29270a['document']['selection'];if(_0x3d59dd['isCollapsed'])return void _0x1e7dd9(_0x1bb233);const _0x471206=void 0x0!==_0x1bb233['forceValue']?_0x1bb233['forceValue']:!_0x4e4bec['value'];_0x29270a['change'](()=>{const _0x90b33c=Array['from'](_0x3d59dd['getRanges']());for(const _0xacec52 of _0x90b33c){const _0x222823=_0x471206?[_0xacec52]:io(_0x161c81,_0xacec52,_0x29270a);for(const _0x1f3a4d of _0x222823)_0x1e979['markInlineFormat'](_0x1f3a4d,{'commandName':_0x161c81,'commandParams':[{'forceValue':_0x471206}]});}});}),_0x1e979['descriptionFactory']['registerDescriptionCallback'](_0x59f8f3=>{if('formatBlock'!=_0x59f8f3['type']&&'formatInline'!=_0x59f8f3['type'])return;const {data:_0x1fef75}=_0x59f8f3;return _0x1fef75&&_0x1fef75['commandName']==_0x161c81?_0x1fef75['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x446267,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x446267,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x5a9880{['afterInit'](){const _0x544a75=this['editor'];if(!_0x544a75['plugins']['has']('Style')||!_0x544a75['plugins']['has']('DataSchema'))return;const _0x432c99=_0x544a75['plugins']['get']('TrackChangesEditing'),_0x398953=_0x544a75['locale'],_0x352092=_0x544a75['config']['get']('style')||{},_0x413638=_0x544a75['plugins']['get']('GeneralHtmlSupport'),_0x184d84=_0x544a75['plugins']['get']('StyleUtils')['normalizeConfig'](_0x544a75['plugins']['get']('DataSchema'),_0x352092['definitions']);_0x432c99['enableDefaultAttributesIntegration']('style');const _0x446a7b=new Set();for(const _0x9dcca4 of _0x184d84['block']){const _0x52feb1=_0x413638['getGhsAttributeNameForElement'](_0x9dcca4['element']);_0x446a7b['add'](_0x52feb1);}const _0x1c887b=new Set();for(const _0x419633 of _0x184d84['inline']){const _0x217c8b=_0x413638['getGhsAttributeNameForElement'](_0x419633['element']);_0x1c887b['add'](_0x217c8b);for(const _0x4261ce of _0x419633['ghsAttributes'])_0x1c887b['add'](_0x4261ce);}for(const _0x429b40 of _0x446a7b)_0x432c99['registerBlockAttribute'](_0x429b40),_0x432c99['descriptionFactory']['registerAttributeLabel'](_0x429b40,c(_0x398953,'FORMAT_STYLE'));for(const _0x2a904c of _0x1c887b)_0x432c99['registerInlineAttribute'](_0x2a904c),_0x432c99['descriptionFactory']['registerAttributeLabel'](_0x2a904c,c(_0x398953,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c0ae0=this['editor'],_0x1c3d32=_0x3c0ae0['locale'];_0x3c0ae0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44b828=>{if('formatBlock'!=_0x44b828['type']&&'formatInline'!=_0x44b828['type'])return;const {data:_0x5681c2}=_0x44b828;return _0x5681c2&&'style'===_0x5681c2['commandName']?_0x5681c2['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1c3d32,'*Set\x20format:*\x20%0',_0x5681c2['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x1c3d32,'*Remove\x20format:*\x20%0',_0x5681c2['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x5a9880{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x254be2){super(_0x254be2),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1ab05e=this['editor'],_0x514911=_0x1ab05e['model']['document']['selection'];if(!_0x1ab05e['plugins']['has']('TableEditing'))return;const _0xad1fa5=_0x1ab05e['locale'],_0x1dfc69=_0x1ab05e['plugins']['get']('TrackChangesEditing'),_0x52fceb=_0x1ab05e['plugins']['get']('TableUtils');_0x1dfc69['descriptionFactory']['registerElementLabel']('table',_0x205577=>c(_0xad1fa5,'ELEMENT_TABLE',_0x205577)),this['_setupColumnsRowsFixing'](),_0x1dfc69['enableCommand']('insertTable'),_0x1dfc69['enableCommand']('selectTableRow'),_0x1dfc69['enableCommand']('selectTableColumn');for(const _0x505cca of['insertTableRowAbove','insertTableRowBelow']){const _0x2e796c=_0x1ab05e['commands']['get'](_0x505cca);_0x1dfc69['enableCommand'](_0x505cca,_0x511e08=>{_0x1ab05e['model']['change'](_0x2512cd=>{_0x511e08();const _0xda5fb5='above'===_0x2e796c['order'],_0x21bcfc=_0x52fceb['getSelectionAffectedTableCells'](_0x514911),_0xa502f3=_0x52fceb['getRowIndexes'](_0x21bcfc),_0x554071=_0xda5fb5?_0xa502f3['first']-0x1:_0xa502f3['last']+0x1,_0x438b1a=_0x21bcfc[0x0]['findAncestor']('table'),_0x4853eb=_0x52fceb['createTableWalker'](_0x438b1a,{'startRow':_0x554071,'endRow':_0x554071}),_0xe97f83=Array['from'](_0x4853eb)['map'](_0x516d2e=>_0x2512cd['createRangeOn'](_0x516d2e['cell']));_0x1dfc69['markMultiRangeInsertion'](_0xe97f83,'tableRow');});});}for(const _0x3200f6 of['insertTableColumnLeft','insertTableColumnRight']){const _0x46d405=_0x1ab05e['commands']['get'](_0x3200f6);_0x1dfc69['enableCommand'](_0x3200f6,_0x3f1bea=>{_0x1ab05e['model']['change'](_0x572647=>{_0x3f1bea();const _0x1c9ffa='left'===_0x46d405['order'],_0x44940e=_0x52fceb['getSelectionAffectedTableCells'](_0x514911),_0x4a43fa=_0x52fceb['getColumnIndexes'](_0x44940e),_0x4d7c93=_0x1c9ffa?_0x4a43fa['first']-0x1:_0x4a43fa['last']+0x1,_0x5e7680=_0x44940e[0x0]['findAncestor']('table'),_0x1b1d5c=_0x52fceb['createTableWalker'](_0x5e7680,{'startRow':0x0,'column':_0x4d7c93,'includeAllSlots':!0x1}),_0x520f07=Array['from'](_0x1b1d5c)['map'](_0x254c8a=>_0x572647['createRangeOn'](_0x254c8a['cell']));_0x1dfc69['markMultiRangeInsertion'](_0x520f07,'tableColumn');});});}for(const _0x3acf89 of['removeTableRow','removeTableColumn']){const _0x8d1c67=_0x3acf89['substr'](0xb),_0x28e1c8=_0x8d1c67['toLowerCase'](),_0x3e1cf1=_0x28e1c8['substr'](0x0,0x3)+'span',_0x4b0b04='table'+_0x8d1c67,_0xda236='min'+_0x8d1c67,_0x3da149='max'+_0x8d1c67;_0x1dfc69['enableCommand'](_0x3acf89,()=>{_0x1ab05e['model']['change'](_0x39f49a=>{const _0x29f78d=_0x52fceb['getSelectionAffectedTableCells'](_0x514911),_0x4f2311=_0x29f78d[0x0]['findAncestor']('table');let _0x1997e5;if('removeTableRow'==_0x3acf89){const _0x5a1362=_0x52fceb['getRowIndexes'](_0x29f78d);_0x1997e5={'startRow':_0x5a1362['first'],'endRow':_0x5a1362['last'],'includeAllSlots':!0x0};}else{const _0x3681ba=_0x52fceb['getColumnIndexes'](_0x29f78d);_0x1997e5={'startColumn':_0x3681ba['first'],'endColumn':_0x3681ba['last'],'includeAllSlots':!0x0};}const _0x209967=_0x52fceb['createTableWalker'](_0x4f2311,_0x1997e5),_0x3c5aad=Array['from'](_0x209967)['map'](({cell:_0x49a2d4})=>_0x49a2d4),_0x47834f=Ne(_0x3c5aad['filter'](_0x256d40=>_0x256d40['hasAttribute'](_0x3e1cf1))),_0x3a6f1f=Ne(_0x3c5aad['filter'](_0x4f025c=>!_0x4f025c['hasAttribute'](_0x3e1cf1)))['map'](_0x5deb15=>_0x39f49a['createRangeOn'](_0x5deb15)),_0x1d54a1=_0x1dfc69['markMultiRangeDeletion'](_0x3a6f1f,_0x4b0b04);if(_0x1d54a1&&('tableRow'==_0x1d54a1['subType']||'tableColumn'==_0x1d54a1['subType'])){const _0x4958d1=this['_getSuggestionCoords'](_0x1d54a1);for(const _0x4fd6ba of _0x47834f){const _0x382429=_0x39f49a['createRangeOn'](_0x4fd6ba),_0x3ec38a=_0x52fceb['getCellLocation'](_0x4fd6ba),_0x46c15a=_0x4fd6ba['getAttribute'](_0x3e1cf1)-0x1,_0x403cd7=_0x4958d1[_0xda236],_0x41ffc8=_0x4958d1[_0x3da149];_0x403cd7<=_0x3ec38a[_0x28e1c8]&&_0x3ec38a[_0x28e1c8]+_0x46c15a<=_0x41ffc8&&_0x1d54a1['addRange'](_0x382429);}}});});}function _0x73df65(_0x1c14a6){const _0xd736fc=Array['from'](_0x514911['getRanges']())['map'](_0x4f99fd=>_0x1e136d['fromRange'](_0x4f99fd));_0x1ab05e['model']['change'](_0x21fed7=>{const _0x52d3cd=_0x21fed7['batch'];_0x1c14a6=_0x1c14a6['filter'](_0x1ff723=>'$graveyard'!=_0x1ff723['root']['rootName']),_0x21fed7['setSelection'](_0x1c14a6),_0x1ab05e['commands']['get']('removeTableRow')['refresh'](),_0x1ab05e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1ab05e['model']['enqueueChange'](()=>{_0x1ab05e['model']['enqueueChange'](_0x52d3cd,_0x4275a2=>{const _0x154341=_0xd736fc['filter'](_0x55c518=>'$graveyard'!=_0x55c518['root']['rootName']);_0x154341['length']>0x0&&_0x4275a2['setSelection'](_0x154341);for(const _0x541031 of _0xd736fc)_0x541031['detach']();});});});}function _0x423e4e(_0x598241){_0x1ab05e['model']['change'](_0x442b2f=>{const _0x1cfc53=Array['from'](_0x514911['getRanges']())['map'](_0x2e35ce=>_0x1e136d['fromRange'](_0x2e35ce)),_0x488fe8=[];for(const _0x44488e of _0x598241)for(const _0x5280c2 of _0x44488e['getItems']({'shallow':!0x0}))_0x488fe8['push'](_0x5280c2);for(const _0x311923 of _0x488fe8)'$graveyard'!=_0x311923['root']['rootName']&&(_0x442b2f['setSelection'](_0x442b2f['createPositionAt'](_0x311923,0x0)),_0x1ab05e['commands']['get']('removeTableColumn')['refresh'](),_0x1ab05e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x43d52a=_0x1cfc53['filter'](_0x3e48b0=>'$graveyard'!=_0x3e48b0['root']['rootName']);_0x43d52a['length']>0x0&&_0x442b2f['setSelection'](_0x43d52a);for(const _0x43a1c8 of _0x1cfc53)_0x43a1c8['detach']();});}function _0x1ed8a3(_0x179513,_0x4d6e8f){return _0x4d6e8f['every'](_0xde3fe2=>_0x179513['some'](_0xffe5c=>_0xffe5c['end']['isEqual'](_0xde3fe2['start'])||_0xde3fe2['end']['isEqual'](_0xffe5c['start'])));}function _0x17bfce(_0x2a16c3,_0x13ceea){return!_0x2a16c3['some'](_0x5a260c=>_0x13ceea['some'](_0x44af1b=>_0x5a260c['isIntersecting'](_0x44af1b)))&&_0x2a16c3['some'](_0x5b21f5=>_0x13ceea['some'](_0xb392a0=>_0x5b21f5['end']['isTouching'](_0xb392a0['start'])));}_0x1ab05e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xa92841,_0x2d5dc5,_0x206b49)=>{if(!_0x206b49['options']['showSuggestionHighlights'])return;const _0x599540=_0x2d5dc5['item'];if(!_0x599540)return;const _0x4feef5=_0x206b49['mapper']['toViewElement'](_0x599540);function _0x31932f(_0x150fb4){return Array['isArray'](_0x150fb4)?_0x150fb4:[_0x150fb4];}_0x4feef5&&'tableCell'===_0x599540['name']&&_0x39cf40(_0x4feef5,_0x206b49['writer'],(_0x296632,_0x4e648e,_0xe181c)=>_0xe181c['addClass'](_0x31932f(_0x4e648e['classes']),_0x296632),(_0x244e9c,_0x4d8c71,_0x4c7875)=>_0x4c7875['removeClass'](_0x31932f(_0x4d8c71['classes']),_0x244e9c));},{'priority':'highest'}),_0x1dfc69['descriptionFactory']['registerDescriptionCallback'](_0x1d6a04=>{if('insertion'!=_0x1d6a04['type']&&'deletion'!=_0x1d6a04['type'])return;const _0x162bdd=_0x1d6a04['getContainedElement']();if(null!=_0x162bdd&&_0x162bdd['is']('element','table')){if('insertion'==_0x1d6a04['type']){const _0x4251f9=_0x1d6a04['getItems']()['filter'](_0x508208=>_0x508208['is']('$textProxy'))['map'](_0x3b4c1f=>_0x3b4c1f['data']);if(_0x4251f9['length'])return{'type':'insertion','content':c(_0xad1fa5,'*Insert:*\x20%0',c(_0xad1fa5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4251f9['join']('\x20')+'\x22'))};}if('deletion'==_0x1d6a04['type']){const _0x1679c2=_0x1d6a04['getItems']()['filter'](_0x5d4976=>_0x5d4976['is']('$textProxy'))['map'](_0x4147c4=>_0x4147c4['data']);if(_0x1679c2['length'])return{'type':'deletion','content':c(_0xad1fa5,'*Remove:*\x20%0',c(_0xad1fa5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1679c2['join']('\x20')+'\x22'))};}}}),_0x1dfc69['descriptionFactory']['registerDescriptionCallback'](_0x2b1adb=>{if('tableRow'==_0x2b1adb['subType']){const _0x57da07=_0x2b1adb['getItems']()['filter'](_0x37c94f=>_0x37c94f['is']('$textProxy'))['map'](_0x1a2864=>_0x1a2864['data']),_0x5ca248=this['_getSuggestionCoords'](_0x2b1adb),_0x86265c=_0x5ca248['maxRow']-_0x5ca248['minRow']+0x1;if('insertion'==_0x2b1adb['type'])return _0x57da07['length']?{'type':'insertion','content':c(_0xad1fa5,'*Insert:*\x20%0',c(_0xad1fa5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x86265c,'\x22'+_0x57da07['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0xad1fa5,'*Insert:*\x20%0',c(_0xad1fa5,'ELEMENT_TABLE_ROW',_0x86265c))};if('deletion'==_0x2b1adb['type'])return _0x57da07['length']?{'type':'deletion','content':c(_0xad1fa5,'*Remove:*\x20%0',c(_0xad1fa5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x86265c,'\x22'+_0x57da07['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0xad1fa5,'*Remove:*\x20%0',c(_0xad1fa5,'ELEMENT_TABLE_ROW',_0x86265c))};}if('tableColumn'==_0x2b1adb['subType']){const _0x5b2354=_0x2b1adb['getItems']()['filter'](_0x3e07d5=>_0x3e07d5['is']('$textProxy'))['map'](_0x4771e4=>_0x4771e4['data']),_0x5d2bfa=this['_getSuggestionCoords'](_0x2b1adb),_0x4546a9=_0x5d2bfa['maxColumn']-_0x5d2bfa['minColumn']+0x1;if('insertion'==_0x2b1adb['type'])return _0x5b2354['length']?{'type':'insertion','content':c(_0xad1fa5,'*Insert:*\x20%0',c(_0xad1fa5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4546a9,'\x22'+_0x5b2354['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0xad1fa5,'*Insert:*\x20%0',c(_0xad1fa5,'ELEMENT_TABLE_COLUMN',_0x4546a9))};if('deletion'==_0x2b1adb['type'])return _0x5b2354['length']?{'type':'deletion','content':c(_0xad1fa5,'*Remove:*\x20%0',c(_0xad1fa5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4546a9,'\x22'+_0x5b2354['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0xad1fa5,'*Remove:*\x20%0',c(_0xad1fa5,'ELEMENT_TABLE_COLUMN',_0x4546a9))};}}),_0x1dfc69['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x73df65),_0x1dfc69['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x73df65),_0x1dfc69['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x423e4e),_0x1dfc69['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x423e4e),_0x1dfc69['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1ed8a3),_0x1dfc69['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1ed8a3),_0x1dfc69['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x17bfce),_0x1dfc69['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x17bfce);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4f6bb1=this['editor'],_0x47d5d2=_0x4f6bb1['model']['document']['selection'];return(_0x511038,_0x5d6263)=>{_0x4f6bb1['model']['change'](_0x51c4b8=>{const {commandName:_0x4429a3,commandParams:_0x12f12a}=_0x5d6263;let _0x4a81b1=_0x511038[0x0]['end']['nodeBefore'];_0x12f12a&&_0x12f12a[0x0]&&!0x1===_0x12f12a[0x0]['forceValue']&&(_0x4a81b1=_0x511038[0x0]['start']['nodeAfter']);const _0x4ea573=_0x51c4b8['createRangeIn'](_0x4a81b1);if('$graveyard'==_0x4ea573['root']['rootName'])return;const _0x2350a8=Array['from'](_0x47d5d2['getRanges']())['map'](_0x1dbfe2=>_0x1e136d['fromRange'](_0x1dbfe2));_0x51c4b8['setSelection'](_0x4ea573),_0x4f6bb1['commands']['get'](_0x4429a3)['refresh'](),_0x12f12a['push']({'forceDefaultExecution':!0x0}),_0x4f6bb1['execute'](_0x4429a3,..._0x12f12a);const _0x4fe849=_0x2350a8['filter'](_0x136d55=>'$graveyard'!=_0x136d55['root']['rootName']);_0x4fe849['length']>0x0&&_0x51c4b8['setSelection'](_0x4fe849);for(const _0x17dbff of _0x2350a8)_0x17dbff['detach']();});};}['_getCoordsForCells'](_0x56ce3f){const _0x3bdeb2=this['editor']['plugins']['get']('TableUtils');let _0x2c14dd=Number['MAX_SAFE_INTEGER'],_0xed389=Number['MIN_SAFE_INTEGER'],_0x241869=Number['MAX_SAFE_INTEGER'],_0x27bae1=Number['MIN_SAFE_INTEGER'];for(const _0x2e4264 of _0x56ce3f){if('$graveyard'==_0x2e4264['root']['rootName'])continue;const {row:_0x203f65,column:_0x1ba990}=_0x3bdeb2['getCellLocation'](_0x2e4264),_0x3c438c=_0x2e4264['hasAttribute']('rowspan')?_0x2e4264['getAttribute']('rowspan')-0x1:0x0,_0x171da1=_0x2e4264['hasAttribute']('colspan')?_0x2e4264['getAttribute']('colspan')-0x1:0x0;_0x2c14dd=_0x203f65<_0x2c14dd?_0x203f65:_0x2c14dd,_0xed389=_0x203f65+_0x3c438c>_0xed389?_0x203f65+_0x3c438c:_0xed389,_0x241869=_0x1ba990<_0x241869?_0x1ba990:_0x241869,_0x27bae1=_0x1ba990+_0x171da1>_0x27bae1?_0x1ba990+_0x171da1:_0x27bae1;}return{'minRow':_0x2c14dd,'maxRow':_0xed389,'minColumn':_0x241869,'maxColumn':_0x27bae1};}['_setupColumnsRowsFixing'](){const _0xf5649d=this['editor'],_0x51f3ac=_0xf5649d['plugins']['get']('TrackChangesEditing'),_0x5ed991=_0xf5649d['plugins']['get']('TableUtils');_0xf5649d['model']['document']['on']('change:data',()=>{const _0x3df524=Array['from'](_0xf5649d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1cdf16,data:_0x5907d8}of _0x3df524){const {group:_0x521f18,id:_0x48173a,subType:_0xa91583}=_0x51f3ac['_splitMarkerName'](_0x1cdf16);if('suggestion'!=_0x521f18)continue;if(null!=_0x5907d8['oldRange'])continue;const _0x6f2743=_0x51f3ac['getSuggestion'](_0x48173a);this['_tablePostFixingSubtypes']['includes'](_0xa91583)&&this['_tableSuggestions']['add'](_0x6f2743);}},{'priority':'low'});const _0x47164c=(_0x43b5d3,_0x3e36f4)=>{let _0x5789a5=!0x1;const _0x152114=_0x3e36f4['createRangeOn'](_0x43b5d3),_0x2c2cd1=_0x43b5d3['findAncestor']('table'),_0x52a45f=_0x5ed991['getCellLocation'](_0x43b5d3);for(const _0x3b685b of this['_tableSuggestions']){const _0x363cf6=_0x3b685b['subType'],_0x4368ad=_0x363cf6['startsWith']('tablePaste'),_0x3cd77b=_0x363cf6['substr'](_0x4368ad?0xa:0x5),_0x1f90c4=_0x3cd77b['toLowerCase'](),_0x5c9e58=_0x1f90c4['substr'](0x0,0x3)+'span',_0x56c9e0='min'+_0x3cd77b,_0x746121='max'+_0x3cd77b;if(!_0x3b685b['isInContent'])continue;if(_0x2c2cd1!=_0x3b685b['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3b685b['isIntersectingWithRange'](_0x152114))continue;const _0x5355f3=_0x43b5d3['hasAttribute'](_0x5c9e58)?_0x43b5d3['getAttribute'](_0x5c9e58)-0x1:0x0,_0x185068=this['_getSuggestionCoords'](_0x3b685b),_0x6364de=_0x185068[_0x56c9e0],_0x224034=_0x185068[_0x746121];_0x6364de<=_0x52a45f[_0x1f90c4]&&_0x52a45f[_0x1f90c4]+_0x5355f3<=_0x224034&&(_0x3b685b['addRange'](_0x152114),_0x5789a5=!0x0);}return _0x5789a5;};_0xf5649d['model']['document']['registerPostFixer'](_0x232a4a=>{let _0x1a7f8b=!0x1;for(const _0x4d818a of _0xf5649d['model']['document']['differ']['getChanges']())if('insert'==_0x4d818a['type']){if('tableRow'==_0x4d818a['name']){for(const _0x351ba9 of _0x4d818a['position']['nodeAfter']['getChildren']())_0x1a7f8b=_0x1a7f8b||_0x47164c(_0x351ba9,_0x232a4a);}else'tableCell'==_0x4d818a['name']&&(_0x1a7f8b=_0x1a7f8b||_0x47164c(_0x4d818a['position']['nodeAfter'],_0x232a4a));}return _0x1a7f8b;});}['_getSuggestionCoords'](_0x15051d){return this['_getCoordsForCells'](_0x15051d['getRanges']()['map'](_0x27ae3b=>_0x27ae3b['start']['nodeAfter']));}}function Ne(_0x313f61){return Array['from'](new Set(_0x313f61)['values']());}class Nt extends _0x5a9880{static get['requires'](){return[Ct];}['afterInit'](){const _0xfed04d=this['editor'],_0x4c818b=_0xfed04d['model']['document']['selection'],_0x54abf1=_0xfed04d['locale'];if(!_0xfed04d['plugins']['has']('TableEditing'))return;const _0x422958=_0xfed04d['plugins']['get']('TrackChangesEditing'),_0x5a034c=_0xfed04d['plugins']['get']('TableUtils'),_0x3b0847=_0xfed04d['plugins']['get'](Ct);_0x3b0847['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x422958['enableCommand']('mergeTableCells',()=>{const _0x45b17d=_0x5a034c['getSelectionAffectedTableCells'](_0xfed04d['model']['document']['selection']);_0xfed04d['model']['change'](()=>{_0x422958['markMultiRangeBlockFormat'](_0x45b17d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xfed04d['commands']['get']('mergeTableCells')['on']('execute',(_0x27e2af,_0x4edd24)=>{_0xfed04d['commands']['get']('trackChanges')['value']&&(_0x4edd24['length']>0x0&&_0x4edd24[_0x4edd24['length']-0x1]&&_0x4edd24[_0x4edd24['length']-0x1]['forceDefaultExecution']||_0x422958['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x27e2af['stop']());},{'priority':'highest'});for(const _0x1a70cd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x510ca0=_0xfed04d['commands']['get'](_0x1a70cd);_0x422958['enableCommand'](_0x1a70cd,()=>{const _0x219cdb=_0xfed04d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5af458=>_0x5af458['is']('element','tableCell')),_0x534a49=_0x510ca0['value'];_0xfed04d['model']['change'](()=>{_0x422958['markMultiRangeBlockFormat']([_0x219cdb,_0x534a49],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x207e13 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4d71b1=_0xfed04d['commands']['get'](_0x207e13);_0x422958['enableCommand'](_0x207e13,()=>{const _0x268c0c=_0x5a034c['getSelectionAffectedTableCells'](_0xfed04d['model']['document']['selection'])[0x0],_0x3730e=_0x268c0c['findAncestor']('table'),{column:_0x1a740c,row:_0x16c46a}=_0x5a034c['getCellLocation'](_0x268c0c);let _0x2c13dd=[];if('horizontally'==_0x4d71b1['direction']){const _0x420bb3=_0x5a034c['createTableWalker'](_0x3730e,{'startRow':_0x16c46a,'endRow':_0x16c46a,'includeAllSlots':!0x0});_0x2c13dd=Array['from'](_0x420bb3)['map'](_0x7f0883=>_0x7f0883['cell']);}else{const _0x32d183=_0x5a034c['createTableWalker'](_0x3730e,{'column':_0x1a740c,'includeAllSlots':!0x0});_0x2c13dd=Array['from'](_0x32d183)['map'](_0x4f7a42=>_0x4f7a42['cell']);}_0xfed04d['model']['change'](_0x36ebcd=>{_0x422958['markBlockFormat'](_0x36ebcd['createRangeOn'](_0x268c0c),{'commandName':_0x207e13,'commandParams':[]},_0x2c13dd,_0x207e13);});});}_0x422958['descriptionFactory']['registerDescriptionCallback'](_0x3b5949=>{if('formatBlock'!=_0x3b5949['type']&&'formatInline'!=_0x3b5949['type'])return;const {data:_0x266fef}=_0x3b5949;return _0x266fef&&'mergeTableCells'==_0x266fef['commandName']?{'type':'format','content':c(_0x54abf1,'*Merge\x20cells*')}:void 0x0;}),_0x422958['descriptionFactory']['registerDescriptionCallback'](_0x5bc758=>{if('formatBlock'!=_0x5bc758['type']&&'formatInline'!=_0x5bc758['type'])return;const {data:_0x58fd5f}=_0x5bc758;return _0x58fd5f?'splitTableCellVertically'==_0x58fd5f['commandName']?{'type':'format','content':c(_0x54abf1,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x58fd5f['commandName']?{'type':'format','content':c(_0x54abf1,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5ecaab=_0x3b0847['_acceptFormatSuggestionCallbackFactory']();for(const _0x30dcfd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x422958['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x30dcfd,'accept',_0x5ecaab);for(const _0x5a6f12 of['splitTableCellVertically','splitTableCellHorizontally'])_0x422958['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5a6f12,'accept',_0x5ecaab);_0x422958['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x369f31=>{_0xfed04d['model']['change'](_0x16d56c=>{const _0xbe70de=Array['from'](_0x4c818b['getRanges']())['map'](_0x5cd16a=>_0x1e136d['fromRange'](_0x5cd16a));_0x16d56c['setSelection'](_0x369f31),_0xfed04d['commands']['get']('mergeTableCells')['refresh'](),_0xfed04d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2f3d9e=_0xbe70de['filter'](_0x214123=>'$graveyard'!=_0x214123['root']['rootName']);_0x2f3d9e['length']>0x0&&_0x16d56c['setSelection'](_0x2f3d9e);for(const _0x12b091 of _0xbe70de)_0x12b091['detach']();});});for(const _0x51c25f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5b4c4c=_0xfed04d['commands']['get'](_0x51c25f);_0x5b4c4c['on']('set:isEnabled',(_0x2dd3a8,_0x51ee6f,_0x324667)=>{if(_0x324667){const _0x39eeb7=_0xfed04d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1f3086=>_0x1f3086['is']('element','tableCell'));this['_areMergableCells'](_0x5b4c4c['value'],_0x39eeb7)||(_0x2dd3a8['return']=!0x1,_0x2dd3a8['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xb043e1=this['editor']['commands']['get']('mergeTableCells'),_0x4219e5=this['editor']['plugins']['get']('TableUtils');if(!_0xb043e1['isEnabled'])return!0x1;const _0x58a6da=_0x4219e5['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5b7cce of _0x58a6da)for(const _0x177262 of _0x58a6da)if(_0x5b7cce!=_0x177262&&!this['_areMergableCells'](_0x5b7cce,_0x177262))return!0x1;return!0x0;}['_areMergableCells'](_0x5c4421,_0x190b58){const _0xdfca02=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f80b5=this['editor']['model']['createRangeOn'](_0x5c4421),_0x4afc9f=this['editor']['model']['createRangeOn'](_0x190b58),_0x52a54b=new Set(),_0x20b22d=new Set();for(const _0x1691ac of _0xdfca02['getSuggestions']())if(('insertion'==_0x1691ac['type']||'deletion'==_0x1691ac['type']||'mergeTableCells'==_0x1691ac['subType'])&&_0x1691ac['isInContent']){for(const _0x59323e of _0x1691ac['getRanges']())_0x59323e['containsRange'](_0x1f80b5,!0x0)&&_0x52a54b['add'](_0x1691ac['type']+':'+_0x1691ac['author']['id']),_0x59323e['containsRange'](_0x4afc9f,!0x0)&&_0x20b22d['add'](_0x1691ac['type']+':'+_0x1691ac['author']['id']);}if(_0x52a54b['size']!=_0x20b22d['size'])return!0x1;for(const _0x2fa4f6 of _0x52a54b)if(!_0x20b22d['has'](_0x2fa4f6))return!0x1;return!0x0;}}class Dt extends _0x5a9880{static get['requires'](){return[Ct];}['afterInit'](){const _0x29b6d5=this['editor'];if(!_0x29b6d5['plugins']['has']('TableEditing'))return;const _0x2950dd=_0x29b6d5['locale'],_0x4738b0=_0x29b6d5['plugins']['get']('TrackChangesEditing');_0x4738b0['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4738b0['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4738b0['registerBlockAttribute']('headingRows'),_0x4738b0['registerBlockAttribute']('headingColumns'),_0x4738b0['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x2950dd,'FORMAT_HEADER_ROW')),_0x4738b0['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x2950dd,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x469ad7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a299e=this['editor']['plugins']['get']('TableUtils'),_0x4f72f6=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x3493e6({showActiveMarker:_0x35b88d=!0x0,setDataAttribute:_0x593cb5=!0x0}={}){return(_0x326479,_0x9e1d36,_0x2de3fc)=>{const {type:_0x2b7e61,id:_0x4bded0}=_0x469ad7['_splitMarkerName'](_0x9e1d36['markerName']),_0x3dbdc9=_0x469ad7['getSuggestion'](_0x4bded0),_0x4f7e7d=_0x3dbdc9['data'];if('formatBlock'!=_0x3dbdc9['type']||!_0x4f7e7d||'setTableColumnHeader'!=_0x4f7e7d['commandName'])return;if(_0x9e1d36['item'])return void _0x326479['stop']();if(!_0x2de3fc['consumable']['consume'](_0x9e1d36['markerRange'],_0x326479['name']))return;const _0x3d357f=_0x9e1d36['markerRange']['start']['nodeAfter'],_0x2465cd=_0x9e1d36['markerRange']['end']['nodeBefore'],_0x2a16fe=_0x3d357f['parent']['parent'],{column:_0x2f1c55}=_0x1a299e['getCellLocation'](_0x3d357f),{column:_0x377385}=_0x1a299e['getCellLocation'](_0x2465cd);for(let _0x3a5f2f=_0x2f1c55;_0x3a5f2f<=_0x377385;_0x3a5f2f++){const _0x3cc8e8=_0x1a299e['createTableWalker'](_0x2a16fe,{'column':_0x3a5f2f,'includeAllSlots':!0x1});for(const _0x81c40d of _0x3cc8e8){const _0x45ccdc=_0x81c40d['cell'],_0x5e8bd9=_0x2de3fc['mapper']['toViewElement'](_0x45ccdc);_0x2de3fc['writer']['addClass']('ck-suggestion-marker-'+_0x2b7e61,_0x5e8bd9),_0x593cb5&&_0x2de3fc['writer']['setAttribute']('data-suggestion',_0x4bded0,_0x5e8bd9),_0x2de3fc['mapper']['bindElementToMarker'](_0x5e8bd9,_0x9e1d36['markerName']),_0x35b88d&&(_0x469ad7['activeMarkers']['includes'](_0x9e1d36['markerName'])?_0x2de3fc['writer']['addClass']('ck-suggestion-marker--active',_0x5e8bd9):_0x2de3fc['writer']['removeClass']('ck-suggestion-marker--active',_0x5e8bd9));}}};}_0x469ad7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4f72f6),_0x469ad7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4f72f6),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3493e6(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xa9a0bc,_0x10b35e,_0x1b48f9)=>{_0x1b48f9['options']['showSuggestionHighlights']&&_0x3493e6({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xa9a0bc,_0x10b35e,_0x1b48f9);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x46baff,_0x382965,_0x556e47)=>{const {type:_0x4a5567,id:_0x5d57de}=_0x469ad7['_splitMarkerName'](_0x382965['markerName']),_0x1951cd=_0x469ad7['getSuggestion'](_0x5d57de),_0x4e5155=_0x1951cd['data'];if('formatBlock'!=_0x1951cd['type']||!_0x4e5155||'setTableColumnHeader'!=_0x4e5155['commandName'])return;const _0x341ff4=_0x556e47['mapper']['markerNameToElements'](_0x382965['markerName']);if(_0x341ff4){for(const _0xb27001 of _0x341ff4)_0x556e47['writer']['removeClass']('ck-suggestion-marker-'+_0x4a5567,_0xb27001),_0x556e47['writer']['removeClass']('ck-suggestion-marker--active',_0xb27001),_0x556e47['writer']['removeAttribute']('data-suggestion',_0xb27001),_0x556e47['mapper']['unbindElementFromMarkerName'](_0xb27001,_0x382965['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c44e7=this['editor'],_0x14143a=_0x2c44e7['locale'];function _0x35af91(_0x2a7a83){return{'type':'format','content':c(_0x14143a,'*Format:*\x20%0',_0x2a7a83)};}_0x2c44e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8cbec4=>{if('formatBlock'!=_0x8cbec4['type'])return;const {data:_0x3de1d4}=_0x8cbec4;if(_0x3de1d4){if('setTableRowHeader'==_0x3de1d4['commandName']){const _0x2206ee=_0x3de1d4['commandParams'][0x0]['forceValue'];return _0x35af91(c(_0x14143a,_0x2206ee?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3de1d4['commandName']){const _0x4d17f1=_0x3de1d4['commandParams'][0x0]['forceValue'];return _0x35af91(c(_0x14143a,_0x4d17f1?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x286d24=>[_0x286d24,null]));class Mt extends _0x5a9880{static get['requires'](){return[Ct];}['afterInit'](){const _0x38989c=this['editor'];if(!_0x38989c['plugins']['has']('TableClipboard'))return;const _0x47c8ab=_0x38989c['plugins']['get']('TrackChangesEditing'),_0x1b6f20=_0x38989c['plugins']['get']('TableUtils'),_0x20e286=_0x38989c['plugins']['get'](Ct),_0x2f6743=_0x38989c['plugins']['get']('TableClipboard');_0x20e286['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x38989c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x38989c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x32f58c=null;_0x38989c['model']['on']('insertContent',(_0x592480,_0x32cf5c)=>{const [_0x3a775f,_0x2a2a14]=_0x32cf5c,_0x3e6860=_0x32cf5c[_0x32cf5c['length']-0x1];_0x3e6860&&_0x3e6860['forceDefaultExecution']||_0x47c8ab['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x39a27c,_0x44431e,_0xf23d8c,_0x1504d0,_0x108ac8){if(_0x44431e&&!_0x44431e['is']('documentSelection'))return!0x1;const _0x2adedd=_0x108ac8['getTableIfOnlyTableInContent'](_0x39a27c,_0xf23d8c);if(!_0x2adedd||!Ue(_0x2adedd,void 0x0,_0x1504d0))return!0x1;const _0x32dd69=_0x1504d0['getSelectionAffectedTableCells'](_0xf23d8c['document']['selection']);if(!_0x32dd69['length'])return!0x1;const _0x5f224f=_0x32dd69[0x0]['findAncestor']('table'),_0x3d5444=_0x1504d0['getRowIndexes'](_0x32dd69),_0x5a394c=_0x1504d0['getColumnIndexes'](_0x32dd69),_0x47e785={'startRow':_0x3d5444['first'],'endRow':_0x3d5444['last'],'startColumn':_0x5a394c['first'],'endColumn':_0x5a394c['last']};return 0x1==_0x32dd69['length']&&(_0x47e785['endRow']+=_0x1504d0['getRows'](_0x2adedd)-0x1,_0x47e785['endColumn']+=_0x1504d0['getColumns'](_0x2adedd)-0x1),Ue(_0x5f224f,_0x47e785,_0x1504d0);}(_0x3a775f,_0x2a2a14,_0x38989c['model'],_0x1b6f20,_0x2f6743)&&(_0x592480['stop'](),_0x32f58c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x38989c['model']['change'](()=>{_0x38989c['model']['insertContent'](_0x32cf5c[0x0],_0x32cf5c[0x1],_0x32cf5c[0x2],{'forceDefaultExecution':!0x0});const _0x226d87=_0x4d67a8(),{rowInsertionRanges:_0x19ed92,columnInsertionRanges:_0x575c28,insertionRanges:_0x20fcbc,deletionRanges:_0x437922,cells:_0xa5b2b6}=_0x32f58c;_0x19ed92['length']&&_0x47c8ab['markMultiRangeInsertion'](_0x19ed92,'tablePasteRow',{'tablePasteChainId':_0x226d87}),_0x575c28['length']&&_0x47c8ab['markMultiRangeInsertion'](_0x575c28,'tablePasteColumn',{'tablePasteChainId':_0x226d87}),_0x20fcbc['length']&&(_0x47c8ab['markMultiRangeInsertion'](_0x20fcbc,'tablePaste',{'tablePasteChainId':_0x226d87,'skipNestingCheck':!0x0}),_0x20fcbc['forEach'](_0x470559=>_0x470559['detach']?.())),_0x437922['length']&&(_0x47c8ab['markMultiRangeDeletion'](_0x437922,'tablePaste',{'tablePasteChainId':_0x226d87,'skipNestingCheck':!0x0}),_0x437922['forEach'](_0x30415f=>_0x30415f['detach']?.()));const _0x13503b=_0x47c8ab['markMultiRangeBlockFormat'](_0xa5b2b6['map'](({element:_0x2fbc05})=>_0x2fbc05),{'formatGroupId':_0x4d67a8()},[],'tablePasteCell',{'tablePasteChainId':_0x226d87});if(_0x13503b){const _0x1320e2=_0x13503b['getMarkers'](),_0x460f1e=[];for(const {element:_0x254351,attributes:_0x3ffbd9}of _0xa5b2b6){if(!_0x3ffbd9)continue;const _0x4d712b=_0x38989c['model']['createRangeOn'](_0x254351),_0x11b9ab=_0x1320e2['find'](_0x33ad16=>_0x33ad16['getRange']()['isEqual'](_0x4d712b));_0x11b9ab&&_0x460f1e['push']([_0x11b9ab['name'],_0x3ffbd9]);}_0x460f1e['length']&&_0x13503b['setAttribute']('markerAttributes',Object['fromEntries'](_0x460f1e));}_0x32f58c=null;}));},{'priority':_0x3f6e40['high']+0xa}),_0x38989c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2bc1de,_0x3d75c3)=>{const [_0x39cf7d,_0x4bb3bf,,_0x168da6]=_0x3d75c3;if(!_0x32f58c)return;_0x2bc1de['stop']();const _0x506af9=_0x39cf7d['cell'],_0x25864a=_0x4bb3bf,_0x3f2f96=Oe(_0x506af9),_0x1e6529=Oe(_0x25864a);_0x2bc1de['return']=_0x506af9;let _0x4a03e9=null,_0x45a712=null;if(_0x1e6529||_0x3f2f96){if(_0x3f2f96&&!_0x1e6529){_0x168da6['remove'](_0x506af9['getChild'](0x0));for(const _0x26c2c5 of Array['from'](_0x25864a['getChildren']()))_0x168da6['insert'](_0x26c2c5,_0x506af9,'end');const _0x4537ac=_0x32f58c['rowInsertionIndexes']['includes'](_0x39cf7d['row']),_0x512523=_0x32f58c['columnInsertionIndexes']['includes'](_0x39cf7d['column']);_0x4537ac||_0x512523||(_0x4a03e9=_0x1e136d['fromRange'](_0x168da6['createRangeIn'](_0x506af9)));}else _0x1e6529&&!_0x3f2f96&&(_0x45a712=_0x168da6['createRangeIn'](_0x506af9));}else{const _0x41e398=_0x168da6['createElement']('tableCellSuggestion'),_0x429323=_0x168da6['createElement']('tableCellSuggestion');_0x168da6['wrap'](_0x168da6['createRangeIn'](_0x506af9),_0x429323),_0x168da6['insert'](_0x41e398,_0x506af9,0x0);for(const _0xd88c29 of Array['from'](_0x25864a['getChildren']()))_0x168da6['insert'](_0xd88c29,_0x41e398,'end');_0x4a03e9=_0x1e136d['fromRange'](_0x168da6['createRangeOn'](_0x41e398)),_0x45a712=_0x1e136d['fromRange'](_0x168da6['createRangeOn'](_0x429323));}const _0x1f9bed=Array['from'](_0x25864a['getAttributes']())['filter'](([_0x30150c])=>Be['includes'](_0x30150c));_0x32f58c['cells']['push']({'element':_0x506af9,'attributes':_0x1f9bed['length']?Object['fromEntries'](_0x1f9bed):null}),_0x4a03e9&&_0x32f58c['insertionRanges']['push'](_0x4a03e9),_0x45a712&&_0x32f58c['deletionRanges']['push'](_0x45a712);},{'priority':'high'}),_0x1b6f20['on']('insertColumns',(_0x484d87,_0x5484a8)=>{const [_0x5491f2,_0x4e578e={}]=_0x5484a8;if(!_0x32f58c)return;const _0x21fe06=_0x4e578e['at']||0x0,_0x1a8d74=_0x4e578e['columns']||0x1;_0x32f58c['columnInsertionIndexes']=new Array(_0x1a8d74)['fill'](_0x21fe06)['map']((_0x3175f0,_0x232419)=>_0x3175f0+_0x232419);for(const {cell:_0x495e0f}of _0x1b6f20['createTableWalker'](_0x5491f2,{'startColumn':_0x21fe06,'endColumn':_0x21fe06+_0x1a8d74-0x1}))_0x32f58c['columnInsertionRanges']['push'](_0x38989c['model']['createRangeOn'](_0x495e0f));},{'priority':'low'}),_0x1b6f20['on']('insertRows',(_0xd22ab9,_0x3dd79d)=>{const [_0x9c5329,_0x45b29b={}]=_0x3dd79d;if(!_0x32f58c)return;const _0x3ba1f7=_0x45b29b['at']||0x0,_0x202fff=_0x45b29b['rows']||0x1;_0x32f58c['rowInsertionIndexes']=new Array(_0x202fff)['fill'](_0x3ba1f7)['map']((_0x3d48ea,_0x18712e)=>_0x3d48ea+_0x18712e);for(const {cell:_0x3b0553}of _0x1b6f20['createTableWalker'](_0x9c5329,{'startRow':_0x3ba1f7,'endRow':_0x3ba1f7+_0x202fff-0x1}))_0x32f58c['rowInsertionRanges']['push'](_0x38989c['model']['createRangeOn'](_0x3b0553));},{'priority':'low'}),_0x47c8ab['descriptionFactory']['registerDescriptionCallback'](_0x3c5e62=>{if(_0x3c5e62['subType']&&_0x3c5e62['subType']['startsWith']('tablePaste'))return _0x3c5e62['previous']?{}:{'type':'insertion','content':c(_0x38989c['locale'],'*Replace\x20table\x20cells*')};});const _0x486b7f=()=>!0x1;for(const _0x43a6a7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x47c8ab['_suggestionFactory']['registerCustomCallback']('insertion',_0x43a6a7,'join',_0x486b7f),_0x47c8ab['_suggestionFactory']['registerCustomCallback']('deletion',_0x43a6a7,'join',_0x486b7f),_0x47c8ab['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x43a6a7,'join',_0x486b7f);_0x47c8ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x486b7f),_0x47c8ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x25bc88,_0x8fb21c,_0x47da8e)=>{const _0x23b4e3=_0x25bc88['map'](_0xb7bb5=>_0xb7bb5['getContainedElement']())['filter'](_0x473c6a=>_0x473c6a),_0x3e3450=new Map(_0x23b4e3['map'](_0x414d5a=>[_0x414d5a,null]));if(_0x32f58c){for(const {element:_0xc85d49,attributes:_0x46edbb}of _0x32f58c['cells'])_0x46edbb&&_0x3e3450['set'](_0xc85d49,_0x46edbb);}else{if(_0x47da8e&&_0x47da8e['markerAttributes'])for(const [_0x58e4da,_0xcef5a2]of Object['entries'](_0x47da8e['markerAttributes'])){const _0x52714e=_0x38989c['model']['markers']['get'](_0x58e4da),_0x158b6a=_0x52714e?_0x52714e['getRange']()['getContainedElement']():null;_0x158b6a&&_0x3e3450['set'](_0x158b6a,_0xcef5a2);}}_0x38989c['model']['change'](_0x5c03e1=>{for(const [_0x181cad,_0xe00d78]of _0x3e3450)_0x5c03e1['setAttributes']({...xe,..._0xe00d78},_0x181cad);});});const _0x54ae6e=(_0x5e20bf,_0xa5e308)=>{_0x47c8ab['_suggestionFactory']['registerCustomCallback'](_0x5e20bf,'tablePaste',_0xa5e308,(_0x28edb2,_0x2b34d1,_0x2e16df)=>{_0x38989c['model']['change'](_0x3593a8=>{const _0x1249cc=[];for(const _0x5afbc5 of _0x28edb2){const _0x324fbd=_0x5afbc5['start']['nodeAfter'];_0x324fbd['is']('element','tableCellSuggestion')&&_0x1249cc['push'](_0x324fbd);}_0x47c8ab['_suggestionFactory']['getSuggestionCallback'](_0x5e20bf,null,_0xa5e308)(_0x28edb2,_0x2b34d1,_0x2e16df);for(const _0x3801fe of _0x1249cc)'$graveyard'!=_0x3801fe['root']['rootName']&&_0x3593a8['unwrap'](_0x3801fe);});});};_0x54ae6e('insertion','accept'),_0x54ae6e('insertion','discard'),_0x54ae6e('deletion','accept'),_0x54ae6e('deletion','discard'),_0x47c8ab['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4d68aa=>{const _0x187ef5=_0x4d68aa['map'](_0x7a558c=>_0x7a558c['getContainedElement']()),_0xc8ed71=_0x187ef5[0x0]['findAncestor']('table'),{minRow:_0x20f32d,maxRow:_0x59c023}=_0x20e286['_getCoordsForCells'](_0x187ef5);_0x1b6f20['removeRows'](_0xc8ed71,{'at':_0x20f32d,'rows':_0x59c023-_0x20f32d+0x1});}),_0x47c8ab['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x353956=>{const _0x4ddabb=_0x353956['map'](_0x255aa6=>_0x255aa6['getContainedElement']()),_0x34bb8c=_0x4ddabb[0x0]['findAncestor']('table'),{minColumn:_0x32a629,maxColumn:_0x5267d6}=_0x20e286['_getCoordsForCells'](_0x4ddabb);_0x1b6f20['removeColumns'](_0x34bb8c,{'at':_0x32a629,'columns':_0x5267d6-_0x32a629+0x1});});const _0x125c8f=(_0x4ab565,_0x282fef)=>{if(!_0x282fef['subType']||!_0x282fef['subType']['startsWith']('tablePaste'))return;const _0x686ffe=_0x282fef['attributes']['tablePasteChainId'],_0x49af9d=_0x47c8ab['getSuggestions']()['filter'](_0x44cf4a=>_0x44cf4a['isInContent']&&_0x44cf4a['attributes']&&_0x44cf4a['attributes']['tablePasteChainId']==_0x686ffe);_0x49af9d['length']&&_0x282fef['getAllAdjacentSuggestions']()['length']!=_0x49af9d['length']&&_0x49af9d['reduce']((_0x2a3e68,_0x488250)=>(_0x2a3e68['next']=_0x488250,_0x488250['previous']=_0x2a3e68,_0x488250));};function _0x134cdf(_0xc6983b,_0x52e32e=!0x0){const {id:_0x448adc,authorId:_0x5a2a51}=_0x47c8ab['_splitMarkerName'](_0xc6983b['markerName']),_0x486d92=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3e3c31=_0x47c8ab['activeMarkers']['includes'](_0xc6983b['markerName']);return _0x3e3c31&&_0x486d92['push']('ck-suggestion-marker--active'),{'classes':_0x486d92,'attributes':{'data-suggestion':_0x448adc,'data-author-id':_0x5a2a51},'priority':_0x3e3c31&&_0x52e32e?0xbc2:0xbb8};}_0x47c8ab['on']('suggestionLoaded',_0x125c8f,{'priority':'high'}),_0x47c8ab['on']('suggestionUnloaded',_0x125c8f,{'priority':'high'}),_0x38989c['model']['document']['registerPostFixer'](()=>{let _0x340473=!0x1;const _0x5a2ce2=Array['from'](_0x38989c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x125dac,data:_0x39787b}of _0x5a2ce2){const {group:_0x1d4d68,type:_0x3b173f,id:_0x5bee20}=_0x47c8ab['_splitMarkerName'](_0x125dac);if('suggestion'!=_0x1d4d68||'deletion'!=_0x3b173f||_0x39787b['oldRange'])continue;if(!_0x47c8ab['hasSuggestion'](_0x5bee20))continue;const _0x115514=_0x47c8ab['getSuggestion'](_0x5bee20)['getRanges'](),_0x35cd6a=_0x38989c['plugins']['get']('Users')['me'];for(const _0x1adcaa of _0x47c8ab['getSuggestions']()){if(!_0x1adcaa['isInContent']||_0x1adcaa['author']!=_0x35cd6a)continue;if('formatBlock'!=_0x1adcaa['type']||'tablePasteCell'!=_0x1adcaa['subType'])continue;if(_0x1adcaa['getRanges']()['every'](_0x1718be=>_0x115514['some'](_0x11e6eb=>_0x11e6eb['containsRange'](_0x1718be,!0x0)))){for(const _0x4d8b4c of _0x1adcaa['getAllAdjacentSuggestions']())_0x4d8b4c['isInContent']&&(_0x4d8b4c['discard'](),_0x340473=!0x0);}}}return _0x340473;}),_0x38989c['model']['document']['registerPostFixer'](_0x38f8d4=>{const _0x50a03c=_0x38989c['commands']['get']('redo');if(!_0x50a03c||!_0x50a03c['_createdBatches']['has'](_0x38f8d4['batch']))return!0x1;let _0x5d448e=!0x1;const _0x1771d5=_0x38989c['plugins']['get']('Users')['me'],_0x1144e0=_0x38989c['model']['document']['differ']['getChanges'](),_0x4db791=Array['from'](_0x38989c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x33a356,data:_0x4e15a8})=>{const {group:_0x1030f5,subType:_0x1d59aa,authorId:_0x55cf5c}=_0x47c8ab['_splitMarkerName'](_0x33a356);return'suggestion'==_0x1030f5&&'tablePaste'==_0x1d59aa&&_0x55cf5c==_0x1771d5['id']&&!_0x4e15a8['oldRange'];});for(const _0x11349b of _0x1144e0){if('insert'!=_0x11349b['type']||'tableCellSuggestion'!=_0x11349b['name']||0x1!=_0x11349b['length'])continue;const _0x1ebcc9=_0x38f8d4['createRange'](_0x11349b['position'],_0x11349b['position']['getShiftedBy'](0x1));if(!_0x4db791['find'](({data:_0x379459})=>_0x379459['newRange']['isEqual'](_0x1ebcc9))){for(const {name:_0x2fa12a,data:_0x4be881}of _0x4db791)if(_0x1ebcc9['containsRange'](_0x4be881['newRange'])){_0x38f8d4['updateMarker'](_0x2fa12a,{'range':_0x1ebcc9}),_0x5d448e=!0x0;break;}}}return _0x5d448e;}),_0x38989c['model']['document']['registerPostFixer'](_0x3887f8=>{let _0x51abea=!0x1;const _0x593b59=_0x38989c['plugins']['get']('Users')['me'],_0x308936=_0x47c8ab['getSuggestions']()['filter'](_0x957ced=>_0x957ced['isInContent']&&_0x957ced['author']==_0x593b59),_0x1f4682=new Set(),_0x16ba10=new Set();for(const _0x19c7b4 of _0x308936)if('tablePaste'==_0x19c7b4['subType'])for(const _0xcf8aa3 of _0x19c7b4['getMarkers']()){const _0x1fa78c=_0xcf8aa3['getRange']()['getContainedElement']();if(_0x1fa78c){if(_0x1fa78c['is']('element','tableCellSuggestion')&&Oe(_0x1fa78c)){_0x19c7b4['removeMarker'](_0xcf8aa3['name']),_0x1f4682['add'](_0x1fa78c),_0x51abea=!0x0;const _0x26ca6c=_0x1fa78c['nextSibling'],_0x8c404c=_0x1fa78c['previousSibling'],_0x4ab0ed=_0x26ca6c&&_0x26ca6c['is']('element','tableCellSuggestion'),_0x979224=_0x8c404c&&_0x8c404c['is']('element','tableCellSuggestion');_0x4ab0ed&&!_0x1f4682['has'](_0x26ca6c)&&_0x16ba10['add'](_0x26ca6c),_0x979224&&!_0x1f4682['has'](_0x8c404c)&&_0x16ba10['add'](_0x8c404c);}else _0x1fa78c['is']('element','paragraph')&&_0x1fa78c['isEmpty']&&(_0x19c7b4['removeMarker'](_0xcf8aa3['name']),_0x51abea=!0x0);}}else{if('tablePasteCell'==_0x19c7b4['subType']){if(!_0x19c7b4['attributes']||!_0x19c7b4['attributes']['tablePasteChainId'])continue;const _0x16700a=_0x19c7b4['attributes']['markerAttributes'];if(_0x16700a&&Object['keys'](_0x16700a)['length'])continue;const _0x564650=_0x19c7b4['attributes']['tablePasteChainId'];let _0x2bb3f6=!0x0,_0x3b177a=!0x0;for(const _0x5ccb89 of _0x308936)if(_0x5ccb89['subType']&&_0x5ccb89['subType']['startsWith']('tablePaste')){if(!_0x5ccb89['attributes']['tablePasteChainId']){_0x3b177a=!0x1;break;}if(_0x5ccb89['id']!=_0x19c7b4['id']&&_0x5ccb89['attributes']['tablePasteChainId']==_0x564650){_0x2bb3f6=!0x1;break;}}_0x3b177a&&_0x2bb3f6&&(_0x19c7b4['removeMarkers'](),_0x51abea=!0x0);}}for(const _0x448e52 of _0x1f4682)_0x3887f8['remove'](_0x448e52);for(const _0x1ed421 of _0x16ba10)_0x3887f8['unwrap'](_0x1ed421);return _0x51abea;}),_0x38989c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x36245d=>_0x134cdf(_0x36245d),'converterPriority':'high'}),_0x38989c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x55930b,_0x5dd054)=>_0x5dd054['options']['showSuggestionHighlights']?_0x134cdf(_0x55930b,!0x1):null,'converterPriority':'high'});const _0x2dade4=_0x38989c['editing']['view'];this['listenTo'](_0x2dade4['document'],'clipboardOutput',(_0x2652c6,_0x25afd2)=>{const _0x3bf812=[];for(const _0x833d6 of _0x2dade4['createRangeIn'](_0x25afd2['content'])['getItems']())_0x833d6['is']('element','suggestion-td')&&_0x3bf812['push'](_0x833d6);_0x2dade4['change'](_0x5c962a=>{for(const _0x1cd37e of _0x3bf812)_0x5c962a['move'](_0x5c962a['createRangeIn'](_0x1cd37e),_0x5c962a['createPositionBefore'](_0x1cd37e)),_0x5c962a['remove'](_0x1cd37e);});});}}function Oe(_0x4c7f9d){if(_0x4c7f9d['isEmpty'])return!0x0;const _0x2bf919=_0x4c7f9d['getChild'](0x0);return _0x2bf919['is']('element','paragraph')&&_0x2bf919['isEmpty'];}function Ue(_0x2e541c,_0x5033c9={},_0x236d2c){for(const {isAnchor:_0x38acb8,cellHeight:_0x408011,cellWidth:_0x282467}of _0x236d2c['createTableWalker'](_0x2e541c,{'includeAllSlots':!0x0,..._0x5033c9}))if(!_0x38acb8||0x1!=_0x408011||0x1!=_0x282467)return!0x1;return!0x0;}class $t extends _0x5a9880{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x27b7a2=this['editor']['plugins']['get']('TrackChangesEditing');_0x27b7a2['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x27b7a2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x27b7a2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x27b7a2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x27b7a2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x27b7a2['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x574670,_0x32334c){const _0x475493=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1178c5=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x44f9e4=_0x32334c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x72da45=_0x1178c5['getColumnGroupElement'](_0x44f9e4);let _0x1a8fcb=_0x72da45?_0x1178c5['getTableColumnsWidths'](_0x72da45):null,_0x59d2df=_0x44f9e4['getAttribute']('tableWidth')||null;const _0x24c2ff=_0x32334c['tableWidth']||_0x59d2df,_0x37546b=_0x32334c['columnWidths']||_0x1a8fcb,_0x1acbb3=this['editor']['plugins']['get']('Users')['me'];for(const _0x568839 of _0x475493['getSuggestions']()){const _0x2fa962=_0x568839['getContainedElement']();if('resizeTable'===_0x568839['subType']&&_0x2fa962===_0x44f9e4){_0x568839['author']!==_0x1acbb3&&_0x568839['discard']();const _0x18d41d=_0x568839['data']['commandParams'];_0x59d2df=_0x18d41d[0x0]['tableWidth'],_0x1a8fcb=_0x18d41d[0x0]['columnWidths'];break;}}_0x574670({'table':_0x44f9e4,'tableWidth':_0x24c2ff,'columnWidths':_0x37546b}),_0x475493['markBlockFormat'](_0x44f9e4,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x59d2df,'columnWidths':_0x1a8fcb}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x41d2b5){if('formatBlock'!=_0x41d2b5['type']&&'formatInline'!=_0x41d2b5['type'])return;const {data:_0x5304d4}=_0x41d2b5;if(_0x5304d4&&'resizeTable'===_0x5304d4['formatGroupId']){const _0x1186d8='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x1186d8)};}}}class Bt extends _0x5a9880{['afterInit'](){const _0x1dba98=this['editor'];_0x1dba98['plugins']['has']('Template')&&_0x1dba98['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x5a9880{['afterInit'](){const _0x4bf3ad=this['editor'];if(!_0x4bf3ad['commands']['get']('insertTableOfContents'))return;_0x4bf3ad['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x48b8f7=_0x4bf3ad['plugins']['get']('TrackChangesEditing'),_0x4747eb=_0x4bf3ad['locale'];_0x48b8f7['descriptionFactory']['registerElementLabel']('tableOfContents',_0x33351e=>c(_0x4747eb,'ELEMENT_TABLE_OF_CONTENTS',_0x33351e));}}class Rt extends _0x5a9880{['afterInit'](){const _0x296b94=this['editor'];if(!_0x296b94['plugins']['has']('Title'))return;const _0x5530fa=_0x296b94['plugins']['get']('TrackChangesEditing');_0x5530fa['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x296b94['locale'],'ELEMENT_TITLE')),_0x296b94['model']['document']['registerPostFixer'](_0x38a21f=>{let _0x4e6dee=!0x1;const _0x415e11=Array['from'](_0x296b94['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x260548,data:_0x3279c7}of _0x415e11){const {group:_0x288bc3}=_0x5530fa['_splitMarkerName'](_0x260548);if('suggestion'!==_0x288bc3||!_0x3279c7['newRange'])continue;const _0x424787=_0x3279c7['newRange'],_0x4e0fbc=_0x424787['end']['nodeBefore'];if(!_0x4e0fbc||!_0x4e0fbc['is']('element','title-content'))continue;if(!_0x424787['start']['isTouching'](_0x424787['end']))continue;const _0x139120=_0x296b94['model']['schema']['getNearestSelectionRange'](_0x424787['end'],'forward');if(_0x139120&&_0x139120['isCollapsed']){const _0x1c65bc=_0x38a21f['createRange'](_0x424787['start'],_0x139120['start']);_0x1c65bc['isEqual'](_0x424787)||(_0x38a21f['updateMarker'](_0x260548,{'range':_0x1c65bc}),_0x4e6dee=!0x0);}_0x4e6dee||(_0x38a21f['removeMarker'](_0x260548),_0x4e6dee=!0x0);}return _0x4e6dee;});}}class xt extends _0x5a9880{['afterInit'](){const _0x1b400b=this['editor'],_0x26371d=_0x1b400b['plugins']['get']('TrackChangesEditing');_0x1b400b['plugins']['has']('Uploadcare')&&(_0x26371d['enableCommand']('uploadcare'),_0x1b400b['plugins']['has']('UploadcareImageEdit')&&(_0x26371d['enableCommand']('uploadcareImageEdit'),_0x26371d['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x26371d['registerBlockAttribute']('uploadcareImageId'),_0x26371d['descriptionFactory']['registerDescriptionCallback'](_0xfdba9b=>{if('attribute'!=_0xfdba9b['type'])return;const {data:_0x22c7e6}=_0xfdba9b;return _0x22c7e6&&'uploadcareImageId'==_0x22c7e6['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x5a9880{['afterInit'](){const _0x36638c=this['editor'],_0x2f2cce=_0x36638c['plugins']['get']('TrackChangesEditing');_0x36638c['plugins']['has']('UndoEditing')&&(_0x2f2cce['enableCommand']('undo'),_0x2f2cce['enableCommand']('redo'));}}class Et extends _0x5a9880{static get['requires'](){return[Ct];}['afterInit'](){const _0x3309e4=this['editor'];if(!_0x3309e4['plugins']['has']('TableCaptionEditing'))return;_0x3309e4['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x5a9880{['tableProperties'];['tableCellProperties'];constructor(_0xdc0cc9){super(_0xdc0cc9),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 _0x1fe66a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5217d7 of this['tableProperties'])_0x1fe66a['enableCommand'](_0x5217d7,(_0x232545,_0x48e5c8)=>{const _0x5a81af=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5217d7,[_0x5a81af],this['tableProperties'],'tableProperties',_0x232545,_0x48e5c8);});_0x1fe66a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1fe66a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1fe66a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2991c1,_0x2bf45d)=>this['handleDiscardAction'](this['tableProperties'],_0x2991c1,_0x2bf45d)),_0x1fe66a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4b09a2 of this['tableCellProperties'])_0x1fe66a['enableCommand'](_0x4b09a2,(_0x204d18,_0x2e7e02)=>{const _0xee6e26=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4b09a2,_0xee6e26,this['tableCellProperties'],'tableCellProperties',_0x204d18,_0x2e7e02);});_0x1fe66a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1fe66a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1fe66a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3d47fd,_0x12f510)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3d47fd,_0x12f510)),_0x1fe66a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1fe66a['descriptionFactory']['registerDescriptionCallback'](_0x56e4be=>this['handleSuggestionDescription'](_0x56e4be));}['_handlePropertyChange'](_0x26d2d0,_0x15d8af,_0xedffab,_0x21528c,_0x122792,_0x3a173f){const _0x5639bc=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3a173f['batch'],()=>{for(const _0x1b62cc of _0x15d8af){if(this['_getSuggestion'](_0x1b62cc,_0x21528c))_0x122792(_0x3a173f);else{const _0x3b55a3={};for(const _0x3e527b of _0xedffab){const _0x320eed=_0x1b62cc['getAttribute'](_0x3e527b);void 0x0!==_0x320eed&&(_0x3b55a3[_0x3e527b]=_0x320eed);}_0x122792(_0x3a173f),_0x5639bc['markBlockFormat'](_0x1b62cc,{'commandParams':[_0x3b55a3]},[],_0x21528c);}}});}['handleDiscardAction'](_0x12fae0,_0x36e7f0,_0x25d415){const _0x239d91=_0x36e7f0[0x0]['start']['nodeAfter'],_0x115384=_0x25d415['commandParams'][0x0];this['editor']['model']['change'](_0x185f05=>{for(const _0x2926d5 of _0x12fae0)void 0x0!==_0x115384[_0x2926d5]?_0x185f05['setAttribute'](_0x2926d5,_0x115384[_0x2926d5],_0x239d91):_0x185f05['removeAttribute'](_0x2926d5,_0x239d91);});}['handleSuggestionDescription'](_0x2e33df){if(_0x2e33df['data'])switch(_0x2e33df['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'](_0x4503ec,_0x2d735a){const _0x3b4d5e=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4cf082 of _0x3b4d5e['getSuggestions']({'skipNotAttached':!0x0})){const _0x464433=_0x4cf082['getContainedElement']();if(_0x4cf082['subType']===_0x2d735a&&_0x464433===_0x4503ec)return _0x4cf082;}return null;}}const u='$elementName';class p extends _0x5a9880{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x275b38,_0x846b30,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa54627){super(_0xa54627),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x270292,_0xbf4101,_0x26f807,_0x1789b5)=>{this['_model']['change'](()=>{for(const _0x2da668 of[..._0x1789b5,..._0x26f807])this['_model']['markers']['has'](_0x2da668)&&_0xa54627['editing']['reconvertMarker'](_0x2da668);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xa54627['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(),_0xa54627['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xa54627['config']['get']('trackChanges.trackFormatChanges'),_0xa54627['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xa54627['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xa54627,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5bbf0c=this['editor'],_0x1e3683=(_0x46cfd4,_0x37707a)=>{if('attribute'!=_0x46cfd4)return'ck-suggestion-marker-'+_0x46cfd4;const _0x50e6b8=_0x37707a['split']('|')[0x0];return this['_isBlockAttribute'](_0x50e6b8)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5bbf0c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x43b516=>{const {id:_0xb7c930,authorId:_0x4fc7ae,type:_0x3e1dc5,subType:_0x5c427b}=this['_splitMarkerName'](_0x43b516['markerName']),_0x4f1a78=['ck-suggestion-marker',_0x1e3683(_0x3e1dc5,_0x5c427b)];let _0x336841=0xbb8;return this['activeMarkers']['includes'](_0x43b516['markerName'])&&(_0x4f1a78['push']('ck-suggestion-marker--active'),_0x336841=0xbc2),'deletion'==_0x3e1dc5&&(_0x336841+=0x5),{'classes':_0x4f1a78,'attributes':{'data-suggestion':_0xb7c930,'data-author-id':_0x4fc7ae},'priority':_0x336841};}}),_0x5bbf0c['conversion']['for']('dataDowncast')['add'](_0x3f86b0=>{_0x3f86b0['on']('addMarker:suggestion',(_0x1b5836,_0x4648f7,_0x111fd5)=>{if(!_0x111fd5['options']['showSuggestionHighlights'])return;const _0x328dab=_0x4648f7['item'];if(!_0x328dab)return;const _0x578121=_0x111fd5['mapper']['toViewElement'](_0x328dab);_0x5bbf0c['model']['schema']['isObject'](_0x328dab)&&_0x578121&&!_0x578121['getCustomProperty']('widget')&&_0x578121['is']('containerElement')&&_0x16a00c(_0x578121,_0x111fd5['writer']);},{'priority':'high'});}),_0x5bbf0c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x25204f,_0x40219c)=>{if(!_0x40219c['options']['showSuggestionHighlights'])return null;const {type:_0x54f108,subType:_0x5bfc8c}=this['_splitMarkerName'](_0x25204f['markerName']);return{'classes':['ck-suggestion-marker',_0x1e3683(_0x54f108,_0x5bfc8c)],'priority':0xbb8};}});const _0x2bce92=({showActiveMarkers:_0x32b42f=!0x0,isAttributeSuggestion:_0x381b5f=!0x1}={})=>(_0x10fb77,_0x19ceac,_0xa6ad73)=>{if(!_0x19ceac['item'])return;const {id:_0x7dbb46,authorId:_0x136113}=this['_splitMarkerName'](_0x19ceac['markerName']);if(_0x381b5f){const _0x28744d=this['_suggestions']['get'](_0x7dbb46),_0x5ec552=this['_getAttributeKey'](_0x28744d);if(!this['_isBlockAttribute'](_0x5ec552))return;}if(_0x19ceac['item']['is']('selection'))return void _0xa6ad73['consumable']['consume'](_0x19ceac['item'],_0x10fb77['name']);const _0x5b4d77=_0xa6ad73['mapper']['toViewElement'](_0x19ceac['item']);if(_0x19ceac['item']['is']('element')&&_0x5bbf0c['model']['schema']['isBlock'](_0x19ceac['item'])&&!_0x5b4d77['getCustomProperty']('addHighlight')){_0xa6ad73['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5b4d77),_0xa6ad73['writer']['setAttribute']('data-suggestion',_0x7dbb46,_0x5b4d77),_0xa6ad73['writer']['setAttribute']('data-author-id',_0x136113,_0x5b4d77),_0xa6ad73['mapper']['bindElementToMarker'](_0x5b4d77,_0x19ceac['markerName']),_0x32b42f&&(this['activeMarkers']['includes'](_0x19ceac['markerName'])?_0xa6ad73['writer']['addClass']('ck-suggestion-marker--active',_0x5b4d77):_0xa6ad73['writer']['removeClass']('ck-suggestion-marker--active',_0x5b4d77));for(const _0x34f4ec of _0x5bbf0c['model']['createRangeIn'](_0x19ceac['item'])['getItems']())_0xa6ad73['consumable']['consume'](_0x34f4ec,_0x10fb77['name']);_0xa6ad73['consumable']['consume'](_0x19ceac['item'],_0x10fb77['name']);}};_0x5bbf0c['conversion']['for']('dataDowncast')['add'](_0x21745c=>{_0x21745c['on']('addMarker:suggestion:formatBlock',(_0x2d5503,_0x3eaefb,_0x3078e4)=>{_0x3078e4['options']['showSuggestionHighlights']&&_0x2bce92({'showActiveMarkers':!0x1})(_0x2d5503,_0x3eaefb,_0x3078e4);},{'priority':'highest'});}),_0x5bbf0c['conversion']['for']('dataDowncast')['add'](_0xf8ad89=>{_0xf8ad89['on']('addMarker:suggestion:attribute',(_0x204d81,_0x4fa6a7,_0x43af87)=>{_0x43af87['options']['showSuggestionHighlights']&&_0x2bce92({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x204d81,_0x4fa6a7,_0x43af87);},{'priority':'highest'});}),_0x5bbf0c['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5abfa7,_0x7a6f95)=>_0x7a6f95['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5abfa7['substr'](0xb)}}),_0x5bbf0c['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1ba520,{writer:_0x482dbc})=>{let _0x53eb98='suggestion:'+_0x1ba520['getAttribute']('suggestion-type')+':'+_0x1ba520['getAttribute']('id');return _0x1ba520['getAttribute']('marker-count')&&(_0x53eb98+=':'+_0x1ba520['getAttribute']('marker-count')),_0x482dbc['createElement']('$marker',{'data-name':_0x53eb98});}}),_0x5bbf0c['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5bbf0c['conversion']['for']('editingDowncast')['add'](_0x3daccc=>{_0x3daccc['on']('addMarker:suggestion:formatBlock',_0x2bce92(),{'priority':'high'});}),_0x5bbf0c['conversion']['for']('editingDowncast')['add'](_0x486ac9=>{_0x486ac9['on']('addMarker:suggestion:attribute',_0x2bce92({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5bbf0c['conversion']['for']('editingDowncast')['add'](_0x28b0c6=>{_0x28b0c6['on']('removeMarker:suggestion:formatBlock',(_0x10158d,_0x498a3d,_0x225069)=>{const _0x1ec47b=_0x225069['mapper']['markerNameToElements'](_0x498a3d['markerName']);if(_0x1ec47b){for(const _0x200f8e of _0x1ec47b)_0x200f8e['getCustomProperty']('addHighlight')||(_0x225069['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x200f8e),_0x225069['writer']['removeAttribute']('data-suggestion',_0x200f8e),_0x225069['writer']['removeAttribute']('data-author-id',_0x200f8e),_0x225069['mapper']['unbindElementFromMarkerName'](_0x200f8e,_0x498a3d['markerName']));}},{'priority':'high'});}),_0x5bbf0c['conversion']['for']('editingDowncast')['add'](_0x5e7ff2=>{_0x5e7ff2['on']('removeMarker:suggestion:attribute',(_0x3002dd,_0x4f87a7,_0x2bd8c0)=>{const _0x1dff01=_0x2bd8c0['mapper']['markerNameToElements'](_0x4f87a7['markerName']);if(!_0x1dff01)return;const {id:_0x71c559}=this['_splitMarkerName'](_0x4f87a7['markerName']),_0x5ea40c=this['_suggestions']['get'](_0x71c559),_0x4a4d04=this['_getAttributeKey'](_0x5ea40c);if(this['_isBlockAttribute'](_0x4a4d04)){for(const _0x522b98 of _0x1dff01)_0x522b98['getCustomProperty']('addHighlight')||(_0x2bd8c0['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x522b98),_0x2bd8c0['writer']['removeAttribute']('data-suggestion',_0x522b98),_0x2bd8c0['writer']['removeAttribute']('data-author-id',_0x522b98),_0x2bd8c0['mapper']['unbindElementFromMarkerName'](_0x522b98,_0x4f87a7['markerName']));}},{'priority':'high'});}),_0x5bbf0c['model']['document']['registerPostFixer'](_0x415228=>{let _0x2c3fcc=!0x1;const _0x214041=Array['from'](_0x5bbf0c['model']['document']['differ']['getChangedMarkers']()),_0x4921c4=new Set();for(const {name:_0x456f02,data:_0x5414b3}of _0x214041){const {group:_0x691f2a,type:_0x584344,subType:_0x4a3988,id:_0x5480e1}=this['_splitMarkerName'](_0x456f02);if('suggestion'!==_0x691f2a)continue;const _0x3f4146=this['_suggestions']['get'](_0x5480e1);if(null!=_0x5414b3['newRange']){'formatInline'==_0x584344&&(_0x2c3fcc=_0x2c3fcc||Lt(_0x5414b3['newRange'],_0x456f02,_0x415228,_0x5bbf0c['model']['schema']));const _0x5e9612='attribute'==_0x584344&&this['_isBlockAttribute'](_0x4a3988['split']('|')[0x0]);if(_0x5414b3['newRange']['isCollapsed']||'$graveyard'==_0x5414b3['newRange']['root']['rootName']||'formatBlock'==_0x584344&&!Kt(_0x5414b3['newRange'])||_0x5e9612&&!Kt(_0x5414b3['newRange'])||'deletion'==_0x584344&&!(!Gt(_0x4a63df=_0x5414b3['newRange'])&&!function(_0x2311d8){return _0x2311d8['start']['parent']==_0x2311d8['end']['nodeBefore']&&_0x2311d8['start']['isAtEnd'];}(_0x4a63df)))_0x415228['removeMarker'](_0x456f02),_0x2c3fcc=!0x0;else{if(!_0x3f4146||!_0x3f4146['isInContent'])continue;if(_0x5414b3['newRange']&&_0x5414b3['oldRange']&&_0x5414b3['newRange']['isEqual'](_0x5414b3['oldRange']))continue;_0x4921c4['add'](_0x3f4146);}}}var _0x4a63df;return _0x4921c4['size']>0x0&&(_0x2c3fcc=!!this['_joinWithAdjacentSuggestions'](_0x4921c4)||_0x2c3fcc),_0x2c3fcc;}),_0x5bbf0c['model']['document']['registerPostFixer'](_0x41ac5f=>{let _0x18c298=!0x1;for(const _0x571fd1 of _0x5bbf0c['model']['document']['differ']['getChanges']())if('insert'==_0x571fd1['type'])for(const _0x12e1bd of this['_suggestions']['values']()){if(_0x12e1bd['isMultiRange']||!_0x12e1bd['isInContent'])continue;const _0x3ea555='formatBlock'==_0x12e1bd['type'],_0x2ed231=this['_getAttributeKey'](_0x12e1bd),_0x14556e=_0x2ed231&&this['_isBlockAttribute'](_0x2ed231);if(!_0x3ea555&&!_0x14556e)continue;const _0x199a35=_0x12e1bd['getFirstRange']();if(_0x199a35['start']['parent']!=_0x199a35['end']['parent']&&!_0x199a35['end']['isAtEnd']){const _0x5b5e2f=_0x5bbf0c['model']['createPositionAt'](_0x199a35['start']['nodeAfter'],'end'),_0x46d15f=_0x5bbf0c['model']['createRange'](_0x199a35['start'],_0x5b5e2f);_0x41ac5f['updateMarker'](_0x12e1bd['getFirstMarker'](),{'range':_0x46d15f}),_0x18c298=!0x0;}}return _0x18c298;}),_0x5bbf0c['model']['document']['registerPostFixer'](_0x1bdd5d=>this['_processAttributeChanges'](_0x1bdd5d)),_0x5bbf0c['model']['document']['registerPostFixer'](_0x354d34=>!_0x354d34['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x354d34)),_0x5bbf0c['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5bbf0c['model']['document']['on']('change:data',(_0x1ef070,_0xf60534)=>{if(!_0xf60534['isLocal']||_0xf60534['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x52ade1=_0x5bbf0c['model']['document']['differ']['getChanges']();if(0x0==_0x52ade1['length'])return;const _0x2613f8=[],_0xd58b30=_0x52ade1['filter'](_0xe70884=>'attribute'==_0xe70884['type']),_0x22808a=_0x52ade1['filter'](_0x4423a5=>'insert'==_0x4423a5['type']&&'$text'!=_0x4423a5['name']);for(const _0x4251c8 of _0xd58b30)this['_isRegisteredAttribute'](_0x4251c8['attributeKey'])&&_0x2613f8['push']({'key':_0x4251c8['attributeKey'],'newValue':_0x4251c8['attributeNewValue'],'oldValue':_0x4251c8['attributeOldValue'],'range':Ht(_0x4251c8['range'],_0x5bbf0c['model'])});for(const _0x1a36f5 of _0x22808a){if('rename'!=_0x1a36f5['action']&&'refresh'!=_0x1a36f5['action'])continue;const _0x5d5050=qt(_0x1a36f5['position']['nodeAfter'],_0x5bbf0c['model']),_0x185065=_0x1a36f5['before'];'rename'==_0x1a36f5['action']&&_0x2613f8['push']({'key':u,'newValue':_0x1a36f5['name'],'oldValue':_0x185065['name'],'range':_0x5d5050});for(const [_0x2e0f7e,_0x559f76]of _0x185065['attributes']){if(!this['_isRegisteredAttribute'](_0x2e0f7e))continue;const _0xbff135=_0x1a36f5['attributes']['get'](_0x2e0f7e);_0x559f76!==_0xbff135&&_0x2613f8['push']({'key':_0x2e0f7e,'newValue':_0xbff135,'oldValue':_0x559f76,'range':_0x5d5050});}for(const [_0x1b597d,_0x22c72a]of _0x1a36f5['attributes'])this['_isRegisteredAttribute'](_0x1b597d)&&(_0x185065['attributes']['has'](_0x1b597d)||_0x2613f8['push']({'key':_0x1b597d,'newValue':_0x22c72a,'oldValue':null,'range':_0x5d5050}));}0x0!=_0x2613f8['length']&&_0x5bbf0c['model']['enqueueChange'](_0xf60534,_0xe484fb=>{const _0x225128=_0x4d67a8();for(const {range:_0x23ee71,key:_0x300629,oldValue:_0x4d710b,newValue:_0x988a09}of _0x2613f8)this['markAttributeChange'](_0x23ee71,_0x300629,_0x4d710b,_0x988a09,{'groupId':_0x225128});this['_reduceExistingSuggestions'](_0xe484fb,_0x2613f8);});},{'priority':'lowest'}),_0x5bbf0c['model']['markers']['on']('update:suggestion',(_0x4e3587,_0x3b2f93,_0x28bc70)=>{if(null==_0x28bc70){const {id:_0x49b2df}=this['_splitMarkerName'](_0x3b2f93['name']),_0x348225=this['_suggestions']['get'](_0x49b2df);_0x348225&&_0x348225['addMarkerName'](_0x3b2f93['name']);}}),_0x5bbf0c['model']['document']['on']('change:data',()=>{const _0x4fbf5d=Array['from'](_0x5bbf0c['model']['document']['differ']['getChangedMarkers']())['filter'](_0x382062=>'suggestion'===this['_splitMarkerName'](_0x382062['name'])['group']);if(0x0===_0x4fbf5d['length'])return;_0x4fbf5d['sort']((_0x56d8fb,_0x27c5c3)=>{const _0x1e2196=_0x56d8fb['data']['oldRange'],_0x717d68=_0x27c5c3['data']['oldRange'];return null===_0x1e2196&&null===_0x717d68?0x0:null===_0x1e2196&&null!==_0x717d68?-0x1:null!==_0x1e2196&&null===_0x717d68?0x1:_0x1e2196['start']['isBefore'](_0x717d68['start'])?-0x1:0x1;});const _0x518228=new Set(),_0x13e072=new Set();for(const {name:_0x2cffba,data:_0x4c9b34}of _0x4fbf5d){const {id:_0x2df629}=this['_splitMarkerName'](_0x2cffba);if(null===_0x4c9b34['oldRange']){const _0x55085f=this['_handleNewSuggestionMarker'](_0x2cffba);_0x13e072['add'](_0x55085f);}else{const _0x15831c=this['_suggestions']['get'](_0x2df629);null!==_0x4c9b34['newRange']||_0x15831c['isInContent']?(_0x518228['add'](_0x15831c['head']),_0x13e072['add'](_0x15831c)):this['_removeSuggestion'](_0x15831c);}}_0x13e072['size']>0x0&&this['_refreshSuggestionsChain'](_0x13e072);for(const _0x70d715 of _0x518228)this['fire']('suggestionChanged',_0x70d715);}),_0x5bbf0c['model']['on']('applyOperation',(_0x42ceb5,_0x224c8f)=>{const _0x12c2d5=_0x224c8f[0x0];if(!this['_suggestions']['size'])return;if(!_0x12c2d5['isDocumentOperation'])return;if(_0x12c2d5['batch']['isUndo']||!_0x12c2d5['batch']['isLocal'])return;let _0x342470,_0x5b2c0a;switch(_0x12c2d5['type']){case'insert':_0x342470=_0x5bbf0c['model']['createPositionAt'](_0x12c2d5['position']),_0x5b2c0a=_0x342470['getShiftedBy'](_0x12c2d5['howMany']);break;case'split':_0x342470=_0x5bbf0c['model']['createPositionAt'](_0x12c2d5['splitPosition']),_0x5b2c0a=_0x5bbf0c['model']['createPositionAt'](_0x12c2d5['moveTargetPosition']);break;case'move':_0x342470=_0x5bbf0c['model']['createPositionAt'](_0x12c2d5['targetPosition']),_0x5b2c0a=_0x342470['getShiftedBy'](_0x12c2d5['howMany']);break;default:return;}const _0x84e4c7=_0x5bbf0c['model']['createRange'](_0x342470,_0x5b2c0a);_0x5bbf0c['model']['change'](()=>{for(const {suggestion:_0x565cb7,meta:_0x4451a8}of this['_findSuggestions'](_0x84e4c7)){if(_0x565cb7['isMultiRange'])continue;if('formatInline'==_0x565cb7['type'])continue;const _0x112310=this['_getAttributeKey'](_0x565cb7);if(_0x112310&&this['_isBlockAttribute'](_0x112310)&&'split'!=_0x12c2d5['type'])continue;const _0x353623=_0x565cb7['data']&&_0x565cb7['data']['multipleBlocks'];('formatBlock'!=_0x565cb7['type']||'split'==_0x12c2d5['type']&&!_0x353623)&&(_0x4451a8['containsRangeInObject']||'insertion'==_0x565cb7['type']&&_0x4451a8['isOwn']||_0x565cb7['getFirstRange']()['containsRange'](_0x84e4c7)&&this['_breakSuggestionMarker'](_0x565cb7,_0x342470,_0x5b2c0a));}});},{'priority':'lowest'}),_0x5bbf0c['model']['on']('deleteContent',(_0x53a2ee,_0x1ae3f3)=>{const _0x5bb860=_0x1ae3f3[0x0],_0x23d660=_0x1ae3f3[0x1];if(_0x23d660&&_0x23d660['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5bb860['isCollapsed'])return;const _0x3eb74f=_0x5bbf0c['model']['schema'],{start:_0x9586eb,end:_0x10bdfc}=_0x5bb860['getFirstRange'](),_0xff68bc=_0x9586eb['nodeAfter']&&_0x3eb74f['isLimit'](_0x9586eb['nodeAfter'])?null:_0x3eb74f['getNearestSelectionRange'](_0x9586eb,'forward'),_0x165810=_0x10bdfc['nodeBefore']&&_0x3eb74f['isLimit'](_0x10bdfc['nodeBefore'])?null:_0x3eb74f['getNearestSelectionRange'](_0x10bdfc,'backward'),_0x12623b=_0x5bbf0c['model']['createRange'](_0xff68bc?_0xff68bc['start']:_0x9586eb,_0x165810?_0x165810['end']:_0x10bdfc);_0x5bbf0c['model']['change'](_0x22ab92=>{this['markDeletion'](_0x12623b);const _0xe33aa3=_0x5bbf0c['model']['schema']['getNearestSelectionRange'](_0x12623b['start']);_0x5bb860['is']('documentSelection')?_0x22ab92['setSelection'](_0xe33aa3):_0x5bb860['setTo'](_0xe33aa3);}),_0x53a2ee['stop']();},{'priority':_0x3f6e40['normal']+0xa}),_0x5bbf0c['model']['on']('insertContent',(_0x2feb21,_0xfb5cf5)=>{const _0x825ff9=_0xfb5cf5[_0xfb5cf5['length']-0x1];_0x825ff9&&_0x825ff9['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5bbf0c['model']['change'](()=>{let _0x4b316e=_0x5bbf0c['model']['insertContent'](_0xfb5cf5[0x0],_0xfb5cf5[0x1],_0xfb5cf5[0x2],{'forceDefaultExecution':!0x0});if(!_0x4b316e)return;_0x2feb21['return']=_0x4b316e['clone']();const _0x4265a3=_0x4b316e['end']['nodeBefore'],_0x386e9d=_0x5bbf0c['model']['schema'];_0x4265a3&&_0x386e9d['isBlock'](_0x4265a3)&&!_0x386e9d['isObject'](_0x4265a3)&&(_0x4b316e=_0x5bbf0c['model']['createRange'](_0x4b316e['start'],_0x5bbf0c['model']['createPositionAt'](_0x4265a3,'end'))),this['markInsertion'](_0x4b316e);}),_0x2feb21['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2baf35=new O(_0x5bbf0c,this['_suggestions']);_0x5bbf0c['commands']['add']('acceptSuggestion',_0x2baf35),this['enableCommand']('acceptSuggestion');const _0x48dcb1=new R(_0x5bbf0c,this['_suggestions']);_0x5bbf0c['commands']['add']('discardSuggestion',_0x48dcb1),this['enableCommand']('discardSuggestion'),_0x5bbf0c['commands']['add']('acceptAllSuggestions',new x(_0x5bbf0c,_0x2baf35,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5bbf0c['commands']['add']('discardAllSuggestions',new x(_0x5bbf0c,_0x48dcb1,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5bbf0c['commands']['add']('acceptSelectedSuggestions',new E(_0x5bbf0c,_0x2baf35,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5bbf0c['commands']['add']('discardSelectedSuggestions',new E(_0x5bbf0c,_0x48dcb1,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1e610e=_0x5bbf0c['plugins']['get']('CommentsRepository');this['listenTo'](_0x1e610e,'addComment',(_0x46fc1a,{threadId:_0x437cd5})=>{const _0x1de0fa=this['_suggestions']['get'](_0x437cd5);_0x1de0fa&&_0x1de0fa['commentThread']&&0x1===_0x1de0fa['commentThread']['length']&&this['_updateSuggestionData'](_0x437cd5,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1e610e,'removeComment',(_0x20295b,{threadId:_0xcb819b})=>{const _0x4dd5b8=this['_suggestions']['get'](_0xcb819b);_0x4dd5b8&&_0x4dd5b8['commentThread']&&!_0x4dd5b8['commentThread']['length']&&this['_updateSuggestionData'](_0xcb819b,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2d0d16){const _0x369ca2=_0x57b212([0x79,0x66,0x42,0x46,0x4f,0x57,0x4c,0x38,0x6b,0x4b,0x33,0x41,0x5a,0x49,0x65,0x64,0x6f,0x54,0x75,0x31,0x56,0x77,0x55,0x37,0x58,0x63,0x69,0x30,0x71,0x61,0x76,0x4d,0x50,0x43,0x74,0x70,0x32,0x53,0x39,0x72,0x48,0x59,0x44,0x78,0x34,0x47,0x6d,0x4a,0x6a,0x35,0x52,0x6e,0x51,0x67,0x62,0x4e,0x73,0x68,0x36,0x6c,0x7a,0x45]),_0x5ba80a=0x78f3b367,_0x202bc8=0x78f4d17f^_0x5ba80a,_0x5f7207=window[_0x57b212([0x44,0x61,0x74,0x65])][_0x57b212([0x6e,0x6f,0x77])](),_0x554e8a=_0x2d0d16[_0x57b212([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5d777c=new window[(_0x57b212([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c536e=>{_0x554e8a[_0x57b212([0x6f,0x6e,0x63,0x65])](_0x57b212([0x72,0x65,0x61,0x64,0x79]),_0x2c536e);}),_0x6d513={[_0x57b212([0x6b,0x74,0x79])]:_0x57b212([0x45,0x43]),[_0x57b212([0x75,0x73,0x65])]:_0x57b212([0x73,0x69,0x67]),[_0x57b212([0x63,0x72,0x76])]:_0x57b212([0x50,0x2d,0x32,0x35,0x36]),[_0x57b212([0x78])]:_0x57b212([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]),[_0x57b212([0x79])]:_0x57b212([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]),[_0x57b212([0x61,0x6c,0x67])]:_0x57b212([0x45,0x53,0x32,0x35,0x36])},_0x2800b8=_0x554e8a[_0x57b212([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x57b212([0x67,0x65,0x74])](_0x57b212([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5eec97(){let _0x11e5c2,_0x5ed651=null,_0x397274=null;try{if(_0x2800b8==_0x57b212([0x47,0x50,0x4c]))return _0x57b212([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x11e5c2=_0x1713f5(),!_0x11e5c2)return _0x57b212([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x11e5c2[_0x57b212([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x397274=_0x19ee9c(_0x11e5c2[_0x57b212([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x11e5c2[_0x57b212([0x6a,0x74,0x69])])),await _0x291b8f()?_0xea13b6()?_0x383931()?_0x57b212([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3f078b()?(_0x11e5c2[_0x57b212([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x57b212([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5ed651=_0x196436(_0x57b212([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x11e5c2[_0x57b212([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x57b212([0x74,0x72,0x69,0x61,0x6c])&&(_0x5ed651=_0x196436(_0x57b212([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x31ce3f()):_0x57b212([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x57b212([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x57b212([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x474c56){return _0x57b212([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x383931(){const _0x2edaf7=[_0x57b212([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x57b212([0x74,0x72,0x69,0x61,0x6c])][_0x57b212([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11e5c2[_0x57b212([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5f7207/0x3e8:0xe10*_0x202bc8;return _0x11e5c2[_0x57b212([0x65,0x78,0x70])]<_0x2edaf7;}function _0xea13b6(){const _0x533c82=_0x11e5c2[_0x57b212([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x533c82)return!0x1;if(_0x533c82[_0x57b212([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57b212([0x2a])))return!0x0;if(_0x533c82[_0x57b212([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57b212([0x54,0x43])))return!0x0;if(_0x533c82[_0x57b212([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57b212([0x52,0x54,0x43]))){if(_0x17be97())return!0x0;if(_0xc2664e()||_0x49c2f0())return!0x0;}return!0x1;}function _0x3f078b(){const _0x2704c0=_0x11e5c2[_0x57b212([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2704c0||0x0==_0x2704c0[_0x57b212([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4e3662}=new URL(window[_0x57b212([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2704c0[_0x57b212([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e3662))return!0x0;const _0x1161c5=_0x4e3662[_0x57b212([0x73,0x70,0x6c,0x69,0x74])](_0x57b212([0x2e]));return _0x2704c0[_0x57b212([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x36ed11=>_0x36ed11[_0x57b212([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57b212([0x2a])))[_0x57b212([0x6d,0x61,0x70])](_0x24d3da=>_0x24d3da[_0x57b212([0x73,0x70,0x6c,0x69,0x74])](_0x57b212([0x2e])))[_0x57b212([0x73,0x6f,0x6d,0x65])](_0x4105ab=>_0x1161c5[_0x57b212([0x65,0x76,0x65,0x72,0x79])]((_0x109056,_0x20f2be)=>_0x4105ab[_0x20f2be]===_0x109056||_0x4105ab[_0x20f2be]===_0x57b212([0x2a])));}function _0x31ce3f(){return _0x5ed651&&_0x397274?new window[(_0x57b212([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2da859,_0x4fddd5)=>{_0x5ed651[_0x57b212([0x74,0x68,0x65,0x6e])](_0x2da859,_0x4fddd5),_0x397274[_0x57b212([0x74,0x68,0x65,0x6e])](_0x5640b4=>{_0x5640b4!=_0x57b212([0x56,0x61,0x6c,0x69,0x64])&&_0x2da859(_0x5640b4);},_0x4fddd5);}):_0x5ed651||_0x397274||_0x57b212([0x56,0x61,0x6c,0x69,0x64]);}}function _0x19ee9c(_0xb200b4,_0x3f4e6a){return new window[(_0x57b212([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b8f8c=>{if(_0x2143d1())return _0x2b8f8c(_0x57b212([0x56,0x61,0x6c,0x69,0x64]));_0xcb6937(),_0x554e8a[_0x57b212([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x57b212([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4766ea=!0x1;const _0x570176=_0x4d67a8();function _0x5682b6(_0x3fd62e){return!!_0x3fd62e&&(typeof _0x3fd62e===_0x57b212([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3fd62e===_0x57b212([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3fd62e[_0x57b212([0x74,0x68,0x65,0x6e])]===_0x57b212([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3fd62e[_0x57b212([0x63,0x61,0x74,0x63,0x68])]===_0x57b212([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2cc7b6(_0x468636){_0x3f0fa5(_0x468636)[_0x57b212([0x74,0x68,0x65,0x6e])](_0x457e06=>{if(!_0x457e06||_0x457e06[_0x57b212([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x57b212([0x6f,0x6b]))return _0x57b212([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4879b8(_0x104fce(_0x570176+_0x3f4e6a))!=_0x457e06[_0x57b212([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x57b212([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x57b212([0x56,0x61,0x6c,0x69,0x64]);})[_0x57b212([0x74,0x68,0x65,0x6e])](_0x4e0002=>(_0x472002(),_0x4e0002),()=>{const _0x5f3ad3=_0x3f9995();return null==_0x5f3ad3?(_0x472002(),_0x57b212([0x56,0x61,0x6c,0x69,0x64])):_0x57b212(_0x5f7207-_0x5f3ad3>(0x5cff3767^_0x5ba80a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x57b212([0x74,0x68,0x65,0x6e])](_0x2b8f8c)[_0x57b212([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2b8f8c(_0x57b212([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x274769=0x78c55de7^_0x5ba80a;function _0x472002(){const _0x2df4d6=_0x57b212([0x6c,0x6c,0x63,0x74,0x2d])+_0x4879b8(_0x104fce(_0xb200b4)),_0x5abf66=_0x5973b2(_0x4879b8(window[_0x57b212([0x4d,0x61,0x74,0x68])][_0x57b212([0x63,0x65,0x69,0x6c])](_0x5f7207/_0x274769)));window[_0x57b212([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57b212([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2df4d6,_0x5abf66);}function _0x3f9995(){const _0x2ca9c5=_0x57b212([0x6c,0x6c,0x63,0x74,0x2d])+_0x4879b8(_0x104fce(_0xb200b4)),_0xddf08=window[_0x57b212([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57b212([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ca9c5);return _0xddf08?window[_0x57b212([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5973b2(_0xddf08),0x10)*_0x274769:null;}function _0x3f0fa5(_0x1aebb5){return new window[(_0x57b212([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c3b71,_0x54dcbb)=>{_0x1aebb5[_0x57b212([0x74,0x68,0x65,0x6e])](_0x5c3b71,_0x54dcbb),window[_0x57b212([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x54dcbb,0x78f267a7^_0x5ba80a);});}}_0x554e8a[_0x57b212([0x6f,0x6e])](_0x57b212([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x56ae55,_0x3f9068)=>{if(_0x3f9068[0x0]!=_0xb200b4)return _0x2b8f8c(_0x57b212([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3f9068[0x1]={..._0x3f9068[0x1],[_0x57b212([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x570176};},{[_0x57b212([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57b212([0x68,0x69,0x67,0x68])}),_0x554e8a[_0x57b212([0x6f,0x6e])](_0x57b212([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x35ec5b=>{_0x5682b6(_0x35ec5b[_0x57b212([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4766ea=!0x0,_0x2cc7b6(_0x35ec5b[_0x57b212([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x57b212([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57b212([0x6c,0x6f,0x77])}),_0x5d777c[_0x57b212([0x74,0x68,0x65,0x6e])](()=>{_0x4766ea||_0x2b8f8c(_0x57b212([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2143d1(){return _0x554e8a[_0x57b212([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57b212([0x76,0x69,0x65,0x77])][_0x57b212([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x57b212([0x61,0x75,0x74,0x6f]);}function _0xcb6937(){_0x554e8a[_0x57b212([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57b212([0x76,0x69,0x65,0x77])][_0x57b212([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x57b212([0x61,0x75,0x74,0x6f]);}}function _0x196436(_0x480559){const _0x465079=[new window[(_0x57b212([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55cd19=>setTimeout(_0x55cd19,0x78fa8dab^_0x5ba80a)),_0x5d777c[_0x57b212([0x74,0x68,0x65,0x6e])](()=>new window[(_0x57b212([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x460e23=>{let _0x2b33e3=0x0;_0x554e8a[_0x57b212([0x6d,0x6f,0x64,0x65,0x6c])][_0x57b212([0x6f,0x6e])](_0x57b212([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4907bb,_0x325423)=>{_0x325423[0x0][_0x57b212([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2b33e3++,_0x2b33e3==(0x78f3b29f^_0x5ba80a)&&(_0x460e23(),_0x4907bb[_0x57b212([0x6f,0x66,0x66])]());});}))];return window[_0x57b212([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x57b212([0x72,0x61,0x63,0x65])](_0x465079)[_0x57b212([0x74,0x68,0x65,0x6e])](()=>_0x480559);}async function _0x1b1615(){await _0x5d777c,_0x554e8a[_0x57b212([0x6d,0x6f,0x64,0x65,0x6c])][_0x57b212([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x583bf0,_0x554e8a[_0x57b212([0x6d,0x6f,0x64,0x65,0x6c])][_0x57b212([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x583bf0,_0x554e8a[_0x57b212([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x57b212([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x17be97(){return _0x59b097(_0x57b212([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x124251(_0x57b212([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x57b212([0x73,0x74,0x61,0x74,0x65])]==_0x57b212([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xc2664e(){return _0x59b097(_0x57b212([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 _0x49c2f0(){return _0x59b097(_0x57b212([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x47fa31(_0x5186c4){const _0x2a749a=_0x33e629();_0x554e8a[_0x2a749a]=_0x57b212([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5186c4,_0x5186c4!=_0x57b212([0x56,0x61,0x6c,0x69,0x64])&&_0x1b1615();}function _0x33e629(){const _0x3521c5=window[_0x57b212([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x57b212([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x57b212([0x6e,0x6f,0x77])]())[_0x57b212([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x57b212([0x2e]),'');let _0x5366bf=_0x57b212([0x79]);for(let _0x2d3349=0x0;_0x2d3349<_0x3521c5[_0x57b212([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d3349+=0x2){let _0x48f57c=window[_0x57b212([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3521c5[_0x57b212([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d3349,_0x2d3349+0x2));_0x48f57c>=_0x369ca2[_0x57b212([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x48f57c-=_0x369ca2[_0x57b212([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5366bf+=_0x369ca2[_0x48f57c];}return _0x5366bf;}function _0x1713f5(){const _0x25201e=_0x2800b8[_0x57b212([0x73,0x70,0x6c,0x69,0x74])](_0x57b212([0x2e]));if(0x3!=_0x25201e[_0x57b212([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3393a0(_0x25201e[0x1]);function _0x3393a0(_0x1de139){const _0x582946=_0x42e0a9(_0x1de139);return _0x582946&&_0x3de39c()?_0x582946:null;function _0x3de39c(){const _0x5f480b=_0x582946[_0x57b212([0x6a,0x74,0x69])],_0x2ed11d=window[_0x57b212([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f480b[_0x57b212([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5f480b[_0x57b212([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x39b0f5={..._0x582946,[_0x57b212([0x6a,0x74,0x69])]:_0x5f480b[_0x57b212([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5f480b[_0x57b212([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x39b0f5[_0x57b212([0x76,0x63])],_0x104fce(_0x39b0f5)==_0x2ed11d;}}}async function _0x291b8f(){let _0x5bb94b=!0x0;try{const _0xc06726=_0x2800b8[_0x57b212([0x73,0x70,0x6c,0x69,0x74])](_0x57b212([0x2e])),[_0x41a54a,_0x3250bb,_0x3644d4]=_0xc06726;return _0x15c9e3(_0x41a54a),await _0x41dd58(_0x41a54a,_0x3250bb,_0x3644d4),_0x5bb94b;}catch(_0x2f1107){return!0x1;}function _0x15c9e3(_0x2a7261){const _0x49573e=_0x42e0a9(_0x2a7261);_0x49573e&&_0x49573e[_0x57b212([0x61,0x6c,0x67])]==_0x57b212([0x45,0x53,0x32,0x35,0x36])||(_0x5bb94b=!0x1);}async function _0x41dd58(_0x461879,_0x1b4308,_0x3eb7a5){const _0x2c407e=window[_0x57b212([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x57b212([0x66,0x72,0x6f,0x6d])](_0x3744c4(_0x3eb7a5),_0x4c1d00=>_0x4c1d00[_0x57b212([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1aa4eb=new window[(_0x57b212([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x57b212([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x461879+_0x57b212([0x2e])+_0x1b4308),_0x218d5b=window[_0x57b212([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x57b212([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x218d5b)return;const _0x35e073=await _0x218d5b[_0x57b212([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x57b212([0x6a,0x77,0x6b]),_0x6d513,{[_0x57b212([0x6e,0x61,0x6d,0x65])]:_0x57b212([0x45,0x43,0x44,0x53,0x41]),[_0x57b212([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x57b212([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x57b212([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x218d5b[_0x57b212([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x57b212([0x6e,0x61,0x6d,0x65])]:_0x57b212([0x45,0x43,0x44,0x53,0x41]),[_0x57b212([0x68,0x61,0x73,0x68])]:{[_0x57b212([0x6e,0x61,0x6d,0x65])]:_0x57b212([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x35e073,_0x2c407e,_0x1aa4eb)||(_0x5bb94b=!0x1);}}function _0x42e0a9(_0x48791d){return _0x48791d[_0x57b212([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x57b212([0x65,0x79]))?JSON[_0x57b212([0x70,0x61,0x72,0x73,0x65])](_0x3744c4(_0x48791d)):null;}function _0x3744c4(_0x57d42b){return window[_0x57b212([0x61,0x74,0x6f,0x62])](_0x57d42b[_0x57b212([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x57b212([0x2b]))[_0x57b212([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x57b212([0x2f])));}function _0x104fce(_0x278868){let _0xf27b01=0x1505;function _0x44c485(_0xd9bae2){for(let _0x244129=0x0;_0x244129<_0xd9bae2[_0x57b212([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x244129++){const _0x544209=_0xd9bae2[_0x57b212([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x244129);_0xf27b01=(_0xf27b01<<0x5)+_0xf27b01+_0x544209,_0xf27b01&=_0xf27b01;}}function _0x3538ab(_0x21e8f5){Array[_0x57b212([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x21e8f5)?_0x21e8f5[_0x57b212([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3538ab):_0x21e8f5&&typeof _0x21e8f5==_0x57b212([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x57b212([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x21e8f5)[_0x57b212([0x73,0x6f,0x72,0x74])]()[_0x57b212([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x44fa01,_0x2f4ad5])=>{_0x44c485(_0x44fa01),_0x3538ab(_0x2f4ad5);}):_0x44c485(window[_0x57b212([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x21e8f5));}return _0x3538ab(_0x278868),_0xf27b01>>>0x0;}function _0x4879b8(_0x355952){return _0x355952[_0x57b212([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x57b212([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x57b212([0x30]));}function _0x5973b2(_0x52cb05){return _0x52cb05[_0x57b212([0x73,0x70,0x6c,0x69,0x74])]('')[_0x57b212([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x57b212([0x6a,0x6f,0x69,0x6e])]('');}function _0x59b097(_0x20c869){return _0x554e8a[_0x57b212([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x57b212([0x68,0x61,0x73])](_0x20c869);}function _0x124251(_0x521c41){return _0x554e8a[_0x57b212([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x57b212([0x67,0x65,0x74])](_0x521c41);}function _0x583bf0(){}function _0x57b212(_0x2dcdad){return _0x2dcdad['map'](_0x2cd20a=>String['fromCharCode'](_0x2cd20a))['join']('');}_0x47fa31(await _0x5eec97());}(this);}set['adapter'](_0x44b045){if(this['_adapter'])throw new _0x3fb279('track-changes-adapter-already-set',this);this['_adapter']=_0x44b045;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x436639=!0x1,toJSON:_0x1186ce=!0x1}={}){const _0x5500be=[];for(const _0x52c502 of this['_suggestions']['values']())_0x436639&&!_0x52c502['isInContent']||_0x5500be['push'](_0x52c502);return _0x1186ce?_0x5500be['map'](_0x337238=>_0x337238['toJSON']()):_0x5500be;}['getSuggestion'](_0x155451){const _0x1a4080=this['_suggestions']['get'](_0x155451);if(!_0x1a4080)throw new _0x3fb279('track-changes-suggestion-not-found',this);return _0x1a4080;}['hasSuggestion'](_0x29a818){return this['_suggestions']['has'](_0x29a818);}['addSuggestionData'](_0x392aa1){const {authorId:_0x277931,id:_0x3ae9f9,attributes:_0xff9f00}=_0x392aa1,[_0x2f28f0,_0x1f0d0a]=_0x392aa1['type']['split'](':'),_0x4ae983=this['_suggestions']['get'](_0x3ae9f9)||this['_createSuggestion'](_0x2f28f0,_0x1f0d0a,_0x3ae9f9,_0x277931,_0xff9f00);if(this['_addThreadToSuggestion'](_0x4ae983),this['_checkSuggestionCorrectness'](_0x4ae983,_0x2f28f0,_0x1f0d0a||null,_0x277931),_0x4ae983['createdAt']=_0x392aa1['createdAt'],_0x4ae983['_isDataLoaded']=!0x0,_0xff9f00&&_0xff9f00['@external']){const _0xf1dd11=_0xff9f00['@external'],_0x3581ec=this['_getExternalAuthor'](_0xf1dd11['authorName']);_0x4ae983['authoredAt']=_0xf1dd11['createdAt'],_0x4ae983['author']=_0x3581ec,_0x4ae983['isExternal']=!0x0;}else _0x4ae983['authoredAt']=_0x392aa1['createdAt'];switch(_0x392aa1['data']&&(_0x4ae983['data']=_0x392aa1['data']),_0x392aa1['attributes']&&(_0x4ae983['attributes']=_0x392aa1['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4ae983['_saved']=!0x0),this['_suggestionState']['get'](_0x4ae983)){case'notReady':this['_suggestionState']['set'](_0x4ae983,'dataReady');break;case'markerReady':_0x4ae983['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4ae983])),this['_refreshSuggestionsChain'](new Set([_0x4ae983])),this['_suggestionState']['set'](_0x4ae983,'ready'),this['fire']('suggestionLoaded',_0x4ae983)):this['_suggestionState']['set'](_0x4ae983,'removed');}return _0x4ae983;}['acceptSuggestion'](_0x5416a2){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x23fd0a of _0x5416a2['getAllAdjacentSuggestions']())_0x23fd0a['accept']();});});}['discardSuggestion'](_0x5d945d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x33969e of _0x5d945d['getAllAdjacentSuggestions']())_0x33969e['discard']();});});}['enableCommand'](_0x381b5b,_0x5b14c2){const _0x21c27b=this['editor']['commands']['get'](_0x381b5b);if(!_0x21c27b)throw new _0x3fb279('track-changes-command-not-found',this,{'commandName':_0x381b5b});if(this['_enabledCommands']['has'](_0x21c27b))throw new _0x3fb279('track-changes-enable-command-twice',this,{'commandName':_0x381b5b});this['_enabledCommands']['add'](_0x21c27b),_0x5b14c2&&_0x21c27b['on']('execute',(_0x13cd38,_0x2b5511)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2b5511['length']>0x0&&_0x2b5511[_0x2b5511['length']-0x1]&&_0x2b5511[_0x2b5511['length']-0x1]['forceDefaultExecution']?_0x2b5511['pop']():(_0x13cd38['return']=_0x5b14c2((..._0x3bcbba)=>_0x21c27b['execute'](..._0x3bcbba,{'forceDefaultExecution':!0x0}),..._0x2b5511),_0x13cd38['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x30e817){let _0x47a97b,_0x50c01b;const _0x3ca752=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x47a97b=_0x30e817();}catch(_0x8ec1f1){_0x50c01b=_0x8ec1f1;}return _0x3ca752||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x50c01b&&_0x3fb279['rethrowUnexpectedError'](_0x50c01b,this),_0x47a97b;}['markInsertion'](_0x2cb9d6,_0x5a3565=null,_0x3586e7={}){if(_0x2cb9d6['isCollapsed'])return null;const _0x34b42c=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2e098b,meta:_0x2f468a}of this['_findSuggestions'](_0x2cb9d6,'insertion'))if(_0x2f468a['isOwn']){if(!_0x2f468a['isNextTo']){if(_0x2f468a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x2e098b,_0x3586e7))continue;return _0x2e098b;}if(Qt(_0x2e098b,_0x3586e7))return _0x2e098b;this['_breakSuggestionMarker'](_0x2e098b,_0x2cb9d6['start'],_0x2cb9d6['end']);break;}if(_0x5a3565==_0x2e098b['subType']&&Qt(_0x2e098b,_0x3586e7)){const _0x3d8f18=_0x2e098b['getFirstRange']();return _0x3d8f18['start']['isEqual'](_0x2cb9d6['end'])?this['_setSuggestionRange'](_0x2e098b,this['_model']['createRange'](_0x2cb9d6['start'],_0x3d8f18['end'])):this['_setSuggestionRange'](_0x2e098b,this['_model']['createRange'](_0x3d8f18['start'],_0x2cb9d6['end'])),_0x2e098b;}}const _0x585ec9=_0x4d67a8(),_0x93a173=_0x34b42c['id'],_0x4514a2=_0x5a3565?'insertion:'+_0x5a3565:'insertion',_0x130f70=this['_setSuggestionData']({'id':_0x585ec9,'type':_0x4514a2,'createdAt':new Date(),'authorId':_0x93a173,'attributes':_0x3586e7});return this['_addSuggestionMarker'](_0x4514a2,_0x585ec9,_0x93a173,_0x2cb9d6),_0x130f70;}['markMultiRangeInsertion'](_0x3bd726,_0x3d37dd='multi',_0x4e36b9={}){const _0x2c8f4d=this['editor']['plugins']['get']('Users')['me'],_0x4cff6f=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3d37dd,'join');for(const _0x313441 of this['getSuggestions']())if(_0x313441['author']['id']==_0x2c8f4d['id']&&'insertion'==_0x313441['type']&&_0x313441['subType']==_0x3d37dd&&Qt(_0x313441,_0x4e36b9)&&(_0x4cff6f(_0x313441['getRanges'](),_0x3bd726)||_0x4cff6f(_0x3bd726,_0x313441['getRanges']()))){for(const _0x206af5 of _0x3bd726)_0x313441['addRange'](_0x206af5);return _0x313441;}for(const {suggestion:_0x527ed0,meta:_0x2ad4cd}of this['_findSuggestions'](_0x3bd726,'insertion')){if(!_0x2ad4cd['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2ad4cd['containsRangeInObject'])continue;if(!Qt(_0x527ed0,_0x4e36b9))continue;let _0x515c79=!0x0;for(const _0x3ba6c8 of _0x527ed0['getRanges']())for(const _0x21710e of _0x3bd726)if(!_0x3ba6c8['containsRange'](_0x21710e)){_0x515c79=!0x1;break;}if(_0x515c79)return _0x527ed0;}const _0x647ec3=_0x4d67a8(),_0x10fa74=_0x2c8f4d['id'],_0x165bee='insertion:'+_0x3d37dd,_0x5d6f60=this['_setSuggestionData']({'id':_0x647ec3,'type':_0x165bee,'createdAt':new Date(),'authorId':_0x10fa74,'attributes':_0x4e36b9});for(const _0x4996ef of _0x3bd726)this['_addSuggestionMarker'](_0x165bee,_0x647ec3,_0x10fa74,_0x4996ef,o['getMultiRangeId']());return _0x5d6f60;}['markInlineFormat'](_0xaf0b0a,_0x233b6b,_0x22e085=null,_0x379958={}){if(_0x22e085=_0x22e085||Jt(_0x233b6b),_0xaf0b0a['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x59e21b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x22e085,'accept');return this['forceDefaultExecution'](()=>_0x59e21b([_0xaf0b0a],_0x233b6b,_0x379958)),null;}const _0x3a097a=this['editor']['plugins']['get']('Users')['me'],_0x319aa5=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4bef2c,meta:_0xa41bc8}of this['_findSuggestions'](_0xaf0b0a,'insertion'))_0xa41bc8['isOwn']&&!_0xa41bc8['isInsideObject']&&_0x319aa5['push'](..._0x4bef2c['getRanges']());}const _0x7065ca=function(_0x55a59c,_0x1b200a){const _0x41466e=[];for(const _0x143c53 of _0x1b200a){const _0x27d98d=_0x55a59c['getIntersection'](_0x143c53);_0x27d98d&&_0x41466e['push'](_0x27d98d);}return _0x41466e;}(_0xaf0b0a,_0x319aa5),_0x2abe9c=function(_0x329efd,_0x18b19e){const _0x35aad5=[_0x329efd];for(const _0x2fa378 of _0x18b19e){let _0x58ef3b=0x0;for(;_0x58ef3b<_0x35aad5['length'];){const _0x16d2af=_0x35aad5[_0x58ef3b]['getDifference'](_0x2fa378);_0x35aad5['splice'](_0x58ef3b,0x1,..._0x16d2af),_0x58ef3b+=_0x16d2af['length'];}}return _0x35aad5;}(_0xaf0b0a,_0x319aa5);_0x7065ca['length']&&this['_model']['change'](()=>{for(const _0x4ada16 of _0x7065ca){const _0x8aab6c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x22e085,'accept');this['forceDefaultExecution'](()=>_0x8aab6c([_0x4ada16],_0x233b6b,_0x379958));}});for(const _0x23ddf6 of _0x2abe9c){let _0x116b48=null,_0x1e1c20=_0x23ddf6['start'],_0xf07a5d=_0x23ddf6['end'];for(const {suggestion:_0x39c4df,meta:_0x2ce45c}of this['_findSuggestions'](_0x23ddf6,'formatInline')){if(!_0x2ce45c['isOwn'])continue;if(_0x39c4df['subType']!=_0x22e085)continue;if(!Qt(_0x39c4df,_0x379958))continue;const _0x34d4ab=_0x39c4df['getFirstRange']();if(_0x34d4ab['containsRange'](_0x23ddf6,!0x0))return null;_0x1e1c20=_0x1e1c20['isBefore'](_0x34d4ab['start'])?_0x1e1c20:_0x34d4ab['start'],_0xf07a5d=_0xf07a5d['isAfter'](_0x34d4ab['end'])?_0xf07a5d:_0x34d4ab['end'],_0x116b48?_0x34d4ab['start']['isBefore'](_0x116b48['getFirstRange']()['start'])?(_0x116b48['removeMarkers'](),_0x116b48=_0x39c4df):_0x39c4df['removeMarkers']():_0x116b48=_0x39c4df;}const _0xa4925d=this['_model']['createRange'](_0x1e1c20,_0xf07a5d);if(_0x116b48)this['_setSuggestionRange'](_0x116b48,_0xa4925d);else{const _0x45118e=_0x4d67a8(),_0x37434a=_0x3a097a['id'];this['_setSuggestionData']({'id':_0x45118e,'type':'formatInline:'+_0x22e085,'data':_0x233b6b,'createdAt':new Date(),'authorId':_0x37434a,'attributes':_0x379958}),this['_addSuggestionMarker']('formatInline:'+_0x22e085,_0x45118e,_0x37434a,_0xa4925d);}}return null;}['markBlockFormat'](_0x115c0d,_0x1b5196,_0x110d34=[],_0x564e21=null,_0x431117={}){_0x1b5196['formatGroupId']||(_0x1b5196['formatGroupId']=_0x1b5196['commandName']),_0x1b5196['multipleBlocks']=_0x115c0d['is']('range'),_0x564e21=_0x564e21||Jt(_0x1b5196);const _0x1e3da5=_0x110d34['map'](_0x26fc15=>qt(_0x26fc15,this['_model'])),_0x15da5f=_0x115c0d['is']('range')?_0x115c0d:qt(_0x115c0d,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2cba35=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x564e21,'accept');return this['forceDefaultExecution'](()=>_0x2cba35([_0x15da5f],_0x1b5196,_0x431117)),null;}_0x1e3da5['push'](_0x15da5f);let _0x294cc7=!0x0;for(const _0x5c4055 of _0x1e3da5)if(!this['_rangeIsInLocalUserInsertion'](_0x5c4055)){_0x294cc7=!0x1;break;}if(_0x294cc7&&'always'!==this['_trackFormatChanges']){const _0x30d16a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x564e21,'accept');return this['forceDefaultExecution'](()=>_0x30d16a([_0x15da5f],_0x1b5196,_0x431117)),null;}let _0x5320c3=null,_0x91d717=_0x15da5f['start'],_0x459a49=_0x15da5f['end'];for(const {suggestion:_0x556eea,meta:_0x39a7d8}of this['_findSuggestions'](_0x15da5f,'formatBlock')){if(!_0x39a7d8['isOwn'])continue;if(_0x39a7d8['isNextTo']||_0x39a7d8['containsRangeInObject']||_0x39a7d8['isInsideObject'])continue;if(_0x556eea['data']['formatGroupId']!=_0x1b5196['formatGroupId'])continue;if(!Qt(_0x556eea,_0x431117))continue;const _0x56ba5b=_0x556eea['getFirstRange']();if(_0x556eea['subType']==_0x564e21){if(_0x56ba5b['containsRange'](_0x15da5f,!0x0))return null;_0x91d717=_0x91d717['isBefore'](_0x56ba5b['start'])?_0x91d717:_0x56ba5b['start'],_0x459a49=_0x459a49['isAfter'](_0x56ba5b['end'])?_0x459a49:_0x56ba5b['end'],_0x5320c3?_0x56ba5b['start']['isBefore'](_0x5320c3['getFirstRange']()['start'])?(_0x5320c3['removeMarkers'](),_0x5320c3=_0x556eea):_0x556eea['removeMarkers']():_0x5320c3=_0x556eea;}else{const _0x5dc19f=_0x15da5f['getIntersection'](_0x56ba5b);this['_cutOutSuggestionMarker'](_0x556eea,_0x5dc19f);}}const _0x5553fc=this['editor']['plugins']['get']('Users')['me'],_0x26369e=_0x4d67a8(),_0x28b1b6=_0x5553fc['id'];if(_0x5320c3)return this['_setSuggestionRange'](_0x5320c3,this['_model']['createRange'](_0x91d717,_0x459a49)),_0x5320c3;{const _0x3f5453=this['_setSuggestionData']({'id':_0x26369e,'type':'formatBlock:'+_0x564e21,'data':_0x1b5196,'createdAt':new Date(),'authorId':_0x28b1b6,'attributes':_0x431117});return this['_addSuggestionMarker']('formatBlock:'+_0x564e21,_0x26369e,_0x28b1b6,this['_model']['createRange'](_0x91d717,_0x459a49)),_0x3f5453;}}['markMultiRangeBlockFormat'](_0x5a0bed,_0x3cf0d5,_0x1454c6=[],_0x17885f=null,_0x1bd399={}){_0x3cf0d5['formatGroupId']||(_0x3cf0d5['formatGroupId']=_0x3cf0d5['commandName']);const _0x16f0a9=_0x5a0bed[0x0];_0x3cf0d5['multipleBlocks']=_0x16f0a9['is']('range'),_0x17885f=_0x17885f||Jt(_0x3cf0d5);const _0x359b1b=_0x1454c6['map'](_0x556767=>qt(_0x556767,this['_model'])),_0xe2c6f0=_0x16f0a9['is']('range')?_0x5a0bed:_0x5a0bed['map'](_0x4b45b4=>qt(_0x4b45b4,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3e5f75=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17885f,'accept');return this['forceDefaultExecution'](()=>_0x3e5f75(_0xe2c6f0,_0x3cf0d5,_0x1bd399)),null;}_0x359b1b['push'](..._0xe2c6f0);let _0x13d875=!0x0;for(const _0xab0e49 of _0x359b1b)if(!this['_rangeIsInLocalUserInsertion'](_0xab0e49)){_0x13d875=!0x1;break;}if(_0x13d875&&'always'!==this['_trackFormatChanges']){const _0x2f9f6e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17885f,'accept');return this['forceDefaultExecution'](()=>_0x2f9f6e(_0xe2c6f0,_0x3cf0d5,_0x1bd399)),null;}const _0x4ee2f0=this['editor']['plugins']['get']('Users')['me'];for(const _0x59a53e of this['getSuggestions']()){if(_0x59a53e['author']['id']!=_0x4ee2f0['id'])continue;if('formatBlock'!=_0x59a53e['type']||_0x59a53e['data']['formatGroupId']!=_0x3cf0d5['formatGroupId'])continue;if(!Qt(_0x59a53e,_0x1bd399))continue;const _0x17f57f=_0x59a53e['subType']==_0x17885f;for(let _0x2cd99c=0x0;_0x2cd99c<_0xe2c6f0['length'];_0x2cd99c++){const _0x392018=_0xe2c6f0[_0x2cd99c];for(const _0x54d7b5 of _0x59a53e['getMarkers']()){const _0x15941f=_0x54d7b5['getRange']();if(_0x392018['isEqual'](_0x15941f)){_0x17f57f?(_0xe2c6f0['splice'](_0x2cd99c,0x1),_0x2cd99c--):_0x59a53e['removeMarker'](_0x54d7b5['name']);break;}}}}if(0x0==_0xe2c6f0['length'])return null;const _0x44e1ce=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17885f,'join');for(const _0xadaa8c of this['getSuggestions']())if(_0xadaa8c['author']['id']==_0x4ee2f0['id']&&'formatBlock'==_0xadaa8c['type']&&_0xadaa8c['data']['formatGroupId']==_0x3cf0d5['formatGroupId']&&_0xadaa8c['subType']==_0x17885f&&Qt(_0xadaa8c,_0x1bd399)&&(_0x44e1ce(_0xadaa8c['getRanges'](),_0xe2c6f0)||_0x44e1ce(_0xe2c6f0,_0xadaa8c['getRanges']()))){for(const _0x556202 of _0xe2c6f0)_0xadaa8c['addRange'](_0x556202);return _0xadaa8c;}const _0xf31083=_0x4d67a8(),_0x120999=_0x4ee2f0['id'],_0x579870='formatBlock:'+_0x17885f,_0x581f83=this['_setSuggestionData']({'id':_0xf31083,'type':_0x579870,'data':_0x3cf0d5,'createdAt':new Date(),'authorId':_0x120999,'attributes':_0x1bd399});for(const _0xc6d891 of _0xe2c6f0)this['_addSuggestionMarker'](_0x579870,_0xf31083,_0x120999,_0xc6d891,o['getMultiRangeId']());return _0x581f83;}['markDeletion'](_0x27813a,_0x5f0bee=null,_0x23d8ba={}){if(_0x27813a['isCollapsed'])return null;const _0x181ad9=this['editor']['plugins']['get']('Users')['me'],_0xc33358=new _0x1e136d(_0x27813a['start'],_0x27813a['end']);for(const {suggestion:_0x431c94,meta:_0x3fd00b}of this['_findSuggestions'](_0xc33358,'insertion'))if(_0x3fd00b['isOwn']&&!_0x3fd00b['isNextTo']){if(_0x431c94['isMultiRange']){const _0x5983ba=_0x431c94['getRanges']()['filter'](_0x3dd412=>'$graveyard'!=_0x3dd412['root']['rootName']);_0x5983ba['every'](_0x5cde81=>_0xc33358['containsRange'](_0x5cde81,!0x0))&&_0x431c94['discard']();if(_0x5983ba['some'](_0x50bab2=>_0x50bab2['containsRange'](_0xc33358,!0x0))){const _0x59837a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5f0bee,'accept');return this['forceDefaultExecution'](()=>_0x59837a([_0xc33358],null,_0x23d8ba)),null;}}else{const _0x5cb740=_0xc33358['getIntersection'](_0x431c94['getFirstRange']());null!==_0x5cb740&&_0x431c94['_onDiscard']([_0x5cb740],null,_0x23d8ba);}}if(_0xc33358['detach'](),_0xc33358['isCollapsed']||'$graveyard'==_0xc33358['root']['rootName'])return null;let _0x4d4ad9=null,_0x1975f3=_0xc33358['start'],_0x14a18a=_0xc33358['end'];const _0x306739=this['_findSuggestions'](_0xc33358,'deletion');for(const {suggestion:_0x23d647,meta:_0x158281}of _0x306739){const _0xde9145=this['_model']['createRange'](_0x1975f3,_0x14a18a);if(_0x158281['isOwn']&&(this['_mergeNestedSuggestions']||!_0x158281['containsRangeInObject']&&!_0x158281['isInsideObject'])){if(_0x23d647['isMultiRange']){if(!Qt(_0x23d647,_0x23d8ba))continue;let _0x425ab4=!0x0;for(const _0x45d955 of _0x23d647['getRanges']()){if(_0x45d955['containsRange'](_0xde9145,!0x0))return _0x23d647;_0xde9145['containsRange'](_0x45d955)||(_0x425ab4=!0x1);}_0x425ab4&&_0x23d647['discard']();}else{const _0x39c58c=_0x23d647['getFirstRange']();if(_0x39c58c['containsRange'](_0xde9145,!0x0))return _0x23d647;if(!Qt(_0x23d647,_0x23d8ba)){_0xde9145['containsRange'](_0x39c58c)?_0x23d647['removeMarkers']():_0x39c58c['containsPosition'](_0x1975f3)?_0x1975f3=_0x39c58c['end']:_0x39c58c['containsPosition'](_0x14a18a)&&(_0x14a18a=_0x39c58c['start']);continue;}_0x1975f3=_0x1975f3['isBefore'](_0x39c58c['start'])?_0x1975f3:_0x39c58c['start'],_0x14a18a=_0x14a18a['isAfter'](_0x39c58c['end'])?_0x14a18a:_0x39c58c['end'],_0x23d8ba=Object['assign']({},_0x23d647['attributes']),_0x4d4ad9?_0x39c58c['start']['isBefore'](_0x4d4ad9['getFirstRange']()['start'])?(_0x4d4ad9['removeMarkers'](),_0x4d4ad9=_0x23d647):_0x23d647['removeMarkers']():_0x4d4ad9=_0x23d647;}}}if(_0x4d4ad9)return this['_setSuggestionRange'](_0x4d4ad9,this['_model']['createRange'](_0x1975f3,_0x14a18a)),_0x4d4ad9;{const _0x3a573d=_0x4d67a8(),_0x2d6c71=this['_model']['createRange'](_0x1975f3,_0x14a18a),_0x5bb0a2=_0x181ad9['id'],_0x11fcae=_0x5f0bee?'deletion:'+_0x5f0bee:'deletion',_0x59f787=this['_setSuggestionData']({'id':_0x3a573d,'type':_0x11fcae,'createdAt':new Date(),'authorId':_0x5bb0a2,'attributes':_0x23d8ba});return this['_addSuggestionMarker'](_0x11fcae,_0x3a573d,_0x5bb0a2,_0x2d6c71),_0x59f787;}}['markMultiRangeDeletion'](_0x1347a7,_0x46fbc0='multi',_0x1d77f7={}){const _0x33660f=this['editor']['plugins']['get']('Users')['me'],_0x50ebc5=_0x1347a7['map'](_0x12627b=>new _0x1e136d(_0x12627b['start'],_0x12627b['end'])),_0x1fc89c=new Set();for(const {suggestion:_0x118a37,meta:_0x4380aa}of this['_findSuggestions'](_0x50ebc5,'insertion'))_0x4380aa['isOwn']&&!_0x4380aa['isNextTo']&&_0x1fc89c['add'](_0x118a37);for(const _0x198a7c of _0x1fc89c)if(_0x198a7c['isMultiRange']){const _0x29ceca=_0x198a7c['getRanges']();(!_0x198a7c['attributes']||!_0x198a7c['attributes']['skipNestingCheck'])&&(_0x29ceca['every'](_0x38c42c=>_0x50ebc5['some'](_0x192bd3=>_0x192bd3['containsRange'](_0x38c42c,!0x0)))&&_0x198a7c['discard']());if(_0x50ebc5['every'](_0x28496e=>_0x29ceca['some'](_0x14dd64=>_0x14dd64['containsRange'](_0x28496e,!0x0)))){const _0x10e090=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46fbc0,'accept');return this['forceDefaultExecution'](()=>_0x10e090(_0x1347a7,null,_0x1d77f7)),null;}}else{const _0x4d2999=_0x198a7c['getFirstRange']();_0x50ebc5['some'](_0x1e7521=>_0x1e7521['containsRange'](_0x4d2999,!0x0))&&_0x198a7c['discard']();if(_0x50ebc5['every'](_0x313772=>_0x4d2999['containsRange'](_0x313772,!0x0))){const _0x4fc1d5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46fbc0,'accept');return this['forceDefaultExecution'](()=>_0x4fc1d5(_0x50ebc5,null,_0x1d77f7)),null;}}const _0xcabfcc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46fbc0,'join');let _0xa443be=null;for(const _0x3909dd of this['getSuggestions']())if(_0x3909dd['author']['id']==_0x33660f['id']&&_0x3909dd['isInContent']&&'deletion'==_0x3909dd['type']&&_0x3909dd['subType']==_0x46fbc0&&Qt(_0x3909dd,_0x1d77f7)&&(_0xcabfcc(_0x3909dd['getRanges'](),_0x50ebc5)||_0xcabfcc(_0x50ebc5,_0x3909dd['getRanges']()))){if(_0xa443be){if(_0x3909dd['commentThread']&&_0x3909dd['commentThread']['length'])continue;for(const _0x4c179b of _0x3909dd['getRanges']())_0xa443be['isIntersectingWithRange'](_0x4c179b)||_0xa443be['addRange'](_0x4c179b);_0x3909dd['removeMarkers']();}else{_0xa443be=_0x3909dd;for(const _0x34d929 of _0x50ebc5)_0x3909dd['isIntersectingWithRange'](_0x34d929)||_0x3909dd['addRange'](_0x34d929);}}if(_0xa443be)return _0xa443be;_0x1fc89c['clear']();for(const {suggestion:_0x3f403c,meta:_0x264bc5}of this['_findSuggestions'](_0x50ebc5,'deletion'))_0x264bc5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x264bc5['containsRangeInObject']&&!_0x264bc5['isInsideObject'])&&Qt(_0x3f403c,_0x1d77f7)&&_0x1fc89c['add'](_0x3f403c);for(const _0x2c0675 of _0x1fc89c){const _0x441bdc=_0x2c0675['getRanges']();if(!_0x1d77f7||!_0x1d77f7['skipNestingCheck']){if(_0x50ebc5['every'](_0x38b984=>_0x441bdc['some'](_0x1ce410=>_0x1ce410['containsRange'](_0x38b984,!0x0))))return _0x2c0675;}(!_0x2c0675['attributes']||!_0x2c0675['attributes']['skipNestingCheck'])&&(_0x441bdc['every'](_0x2a952c=>_0x50ebc5['some'](_0x513f62=>_0x513f62['containsRange'](_0x2a952c,!0x0)))&&_0x2c0675['discard']());}const _0x22fa11=_0x4d67a8(),_0x13bd54=_0x33660f['id'],_0x563077='deletion:'+_0x46fbc0,_0x769058=this['_setSuggestionData']({'id':_0x22fa11,'type':_0x563077,'createdAt':new Date(),'authorId':_0x13bd54,'attributes':_0x1d77f7});for(const _0xf02012 of _0x50ebc5)_0xf02012['detach'](),_0xf02012['isCollapsed']||'$graveyard'==_0xf02012['root']['rootName']||this['_addSuggestionMarker'](_0x563077,_0x22fa11,_0x13bd54,_0xf02012,o['getMultiRangeId']());return _0x769058;}['markAttributeChange'](_0x52ea21,_0x1b11b0,_0x5d742e,_0x2e82ce,_0xee643c){if(_0x52ea21['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2c7e28=this['editor']['plugins']['get']('Users')['me']['id'],_0x10cfe2=Array['from'](this['_suggestions']['values']())['filter'](_0x3d38c9=>'attribute'==_0x3d38c9['type']&&_0x3d38c9['data']['key']==_0x1b11b0&&_0x3d38c9['isIntersectingWithRange'](_0x52ea21));if('default'===this['_trackFormatChanges']){const _0x3f93f8=this['_findSuggestions'](_0x52ea21,'insertion')['filter'](({meta:_0x4a5af2})=>_0x4a5af2['isOwn']&&!_0x4a5af2['isInsideObject']&&!_0x4a5af2['isNextTo'])['map'](({suggestion:_0x49aaf4})=>_0x49aaf4);_0x10cfe2['unshift'](..._0x3f93f8);}const _0x495a23=new Map([[_0x52ea21,_0x5d742e]]);for(const _0x1ae0b7 of _0x10cfe2){const _0x3db0a2='attribute'==_0x1ae0b7['type']?_0x1ae0b7['data']['oldValue']:void 0x0,_0x3a916e=_0x1ae0b7['getFirstRange'](),_0x14c00e=Array['from'](_0x495a23['keys']())['find'](_0x14ccd2=>_0x14ccd2['isIntersecting'](_0x3a916e));if(!_0x14c00e)continue;const _0x55cec8=_0x14c00e['getDifference'](_0x3a916e);this['_isBlockAttribute'](_0x1b11b0)&&'insertion'==_0x1ae0b7['type']&&0x0!=_0x55cec8['length']||(_0x495a23['delete'](_0x14c00e),_0x55cec8['forEach'](_0x214c70=>{_0x495a23['set'](_0x214c70,_0x5d742e);}),'insertion'!=_0x1ae0b7['type']&&_0x3db0a2!=_0x2e82ce&&_0x495a23['set'](_0x14c00e['getIntersection'](_0x3a916e),_0x3db0a2));}const _0x3f7638=[];for(const [_0x512a2b,_0xebda18]of _0x495a23){const _0x155533=_0x4d67a8(),_0x5c58cd={'key':_0x1b11b0,'oldValue':_0xebda18,'newValue':_0x2e82ce};_0x1b11b0['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':_0x1b11b0});const _0x38b718=('attribute:'+(_0x1b11b0+'|'+Jt({'newValue':_0x2e82ce})))['substring'](0x0,0x3c),_0x163451=this['_setSuggestionData']({'id':_0x155533,'type':_0x38b718,'data':_0x5c58cd,'createdAt':new Date(),'authorId':_0x2c7e28,'attributes':_0xee643c});_0x3f7638['push'](_0x163451),this['_addSuggestionMarker'](_0x38b718,_0x155533,_0x2c7e28,_0x512a2b);}return _0x3f7638;}['enableDefaultAttributesIntegration'](_0x4e6e6b){this['enableCommand'](_0x4e6e6b,(_0x1d377e,..._0x36016b)=>{this['_recordAttributeChanges'](()=>{_0x1d377e(..._0x36016b);});});}['registerBlockAttribute'](_0x326074){this['_blockAttributeKeys']['add'](_0x326074);}['registerInlineAttribute'](_0x14c254){this['_inlineAttributeKeys']['add'](_0x14c254);}['_getAttributeKey'](_0x25acbb){return'attribute'==_0x25acbb['type']?_0x25acbb['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x291b29,_0x42091e){const _0x971a69=_0x291b29['getFirstMarker']();this['_model']['change'](_0x1b6254=>{_0x1b6254['updateMarker'](_0x971a69,{'range':_0x42091e});});}['_addThreadToSuggestion'](_0x3a0075){const _0x3928fd=_0x3a0075['id'],_0x1006ba=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3928fd)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1006ba,'threadId':_0x3928fd,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xbd58b7=this['_commentsRepository']['getCommentThread'](_0x3928fd);_0xbd58b7['unbind']('isRemovable'),_0xbd58b7['isRemovable']=!0x1,_0x3a0075['commentThread']=_0xbd58b7;}['_checkSuggestionCorrectness'](_0x1ee3b,_0x212851,_0x2c9c79,_0xcc54e0){if(_0x1ee3b['type']!=_0x212851||_0x1ee3b['subType']!=_0x2c9c79||_0x1ee3b['creator']['id']!=_0xcc54e0)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3fb279('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x223e15,_0xe82214){const _0x1ea58c=_0x223e15['getFirstRange']();if(_0xe82214['isEqual'](_0x1ea58c))_0x223e15['removeMarkers']();else{if(_0x1ea58c['containsRange'](_0xe82214)){const _0x5450ff=this['_model']['createPositionAt'](_0xe82214['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x223e15,this['_model']['createRange'](_0x1ea58c['start'],_0x5450ff));const _0x3b8858=_0x4d67a8(),_0x592b78=_0x223e15['creator']['id'],_0x56b8d9=_0x223e15['type']+':'+_0x223e15['subType'];this['_setSuggestionData']({'id':_0x3b8858,'type':_0x56b8d9,'createdAt':new Date(),'authorId':_0x592b78,'data':_0x223e15['data'],'attributes':_0x223e15['attributes']});const _0x4360a2=this['_model']['createPositionAt'](_0xe82214['end']['parent'],'after'),_0x4d85cc=this['_model']['createRange'](_0x4360a2,_0x1ea58c['end']);this['_addSuggestionMarker'](_0x56b8d9,_0x3b8858,_0x592b78,_0x4d85cc);}else{if(_0x1ea58c['containsPosition'](_0xe82214['start'])){const _0x5d152e=this['_model']['createPositionAt'](_0xe82214['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x223e15,this['_model']['createRange'](_0x1ea58c['start'],_0x5d152e));}else{const _0x32cdef=this['_model']['createPositionAt'](_0xe82214['end']['parent'],'after');this['_setSuggestionRange'](_0x223e15,this['_model']['createRange'](_0x32cdef,_0x1ea58c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x33de63){for(const {suggestion:_0x2e9f30,meta:_0x262115}of this['_findSuggestions'](_0x33de63,'insertion')){if(!_0x262115['isOwn'])continue;const _0x34c18b=_0x2e9f30['getRanges']();for(const _0x2c9b75 of _0x34c18b)if(!_0x33de63['getDifference'](_0x2c9b75)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4ab0f3){const _0x9593ac=this['editor']['plugins']['get']('Users')['getUser'](_0x4ab0f3);if(!_0x9593ac)throw new _0x3fb279('track-changes-user-not-found',this);return _0x9593ac;}['_getExternalAuthor'](_0x30148f){const _0x3de002=this['editor']['plugins']['get']('Users'),_0x2cb40b=_0x139563('external:'+_0x30148f),_0x51cb45=_0x3de002['getUser'](_0x2cb40b);return _0x51cb45||_0x3de002['addUser']({'id':_0x2cb40b,'name':_0x30148f});}['_createSuggestion'](_0x54f1ff,_0x2b5cca,_0x3ef925,_0x1102c0,_0x506650){const _0x523770=this['_getAuthorFromId'](_0x1102c0),_0x327231=this['_suggestionFactory']['buildSuggestion'](_0x54f1ff,_0x2b5cca,_0x3ef925,_0x523770,_0x506650,_0x13f63a=>{this['_updateSuggestionData'](_0x3ef925,{'attributes':_0x13f63a});const _0x5d609c=this['getSuggestion'](_0x3ef925);this['_joinWithAdjacentSuggestions'](new Set([_0x5d609c])),this['_refreshSuggestionsChain'](new Set([_0x5d609c]));});return this['listenTo'](_0x327231,'accept',()=>{this['_updateSuggestionData'](_0x3ef925,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x327231,'discard',()=>{this['_updateSuggestionData'](_0x3ef925,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3ef925,_0x327231),this['_suggestionState']['set'](_0x327231,'notReady'),_0x327231;}['_splitMarkerName'](_0x56d6e4){const _0x4daf22=_0x56d6e4['split'](':');return{'group':_0x4daf22[0x0],'type':_0x4daf22[0x1],'subType':_0x4daf22['length']>=0x5?_0x4daf22[0x2]:null,'id':_0x4daf22['length']<0x5?_0x4daf22[0x2]:_0x4daf22[0x3],'authorId':_0x4daf22['length']<0x5?_0x4daf22[0x3]:_0x4daf22[0x4],'markerCount':0x6==_0x4daf22['length']?_0x4daf22[0x5]:null};}['_breakSuggestionMarker'](_0x3f2773,_0x6c840a,_0x3d8840){const _0x5abb73=_0x3f2773['getFirstRange'](),_0x1613ff=_0x5abb73['start'],_0x107a34=_0x5abb73['end'];this['_setSuggestionRange'](_0x3f2773,this['_model']['createRange'](_0x1613ff,_0x6c840a));const _0x4e92b6=_0x4d67a8(),_0x40c0eb=_0x3f2773['creator']['id'],_0x5ca4f9=_0x3f2773['type']+(_0x3f2773['subType']?':'+_0x3f2773['subType']:'');this['_setSuggestionData']({'id':_0x4e92b6,'type':_0x5ca4f9,'createdAt':new Date(),'authorId':_0x40c0eb,'originalSuggestionId':_0x3f2773['id'],'attributes':_0x3f2773['attributes'],'data':_0x3f2773['data']});const _0x76014b=this['_getAttributeKey'](_0x3f2773);('formatBlock'==_0x3f2773['type']||_0x76014b&&this['_isBlockAttribute'](_0x76014b))&&(_0x3d8840=this['_model']['createPositionBefore'](_0x3d8840['parent'])),this['_addSuggestionMarker'](_0x5ca4f9,_0x4e92b6,_0x40c0eb,this['_model']['createRange'](_0x3d8840,_0x107a34));}['_findSuggestions'](_0x1afa13,_0x5d3c03=null){const _0x2fb80e=[],_0x56fca9=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1afa13)||(_0x1afa13=[_0x1afa13]);for(const _0xadaeb2 of this['getSuggestions']()){if(!_0xadaeb2['isInContent'])continue;if(_0x5d3c03&&_0xadaeb2['type']!=_0x5d3c03)continue;let _0x299681=!0x1;for(const _0x5be566 of _0xadaeb2['getRanges']()){for(const _0x4fdecd of _0x1afa13){const _0x97b030=_0x4fdecd['start']['isEqual'](_0x5be566['end'])||_0x4fdecd['end']['isEqual'](_0x5be566['start']);if(_0x97b030||_0x4fdecd['getIntersection'](_0x5be566)){const _0x11c678=_0x4fdecd['containsRange'](_0x5be566)&&Pt(this['_model']['schema'],_0x5be566['start'],_0x4fdecd),_0x108fdc=_0x5be566['containsRange'](_0x4fdecd)&&Pt(this['_model']['schema'],_0x4fdecd['start'],_0x5be566);_0x2fb80e['push']({'suggestion':_0xadaeb2,'meta':{'isOwn':_0x56fca9==_0xadaeb2['author'],'isNextTo':_0x97b030,'isInsideObject':_0x11c678,'containsRangeInObject':_0x108fdc}}),_0x299681=!0x0;break;}}if(_0x299681)break;}}return _0x2fb80e;}['_addSuggestionMarker'](_0x512c78,_0x1f3a23,_0x527d76,_0x1ccac4,_0x2ffef7){this['_model']['change'](_0x416c9b=>{let _0x1ece3f='suggestion:'+_0x512c78+':'+_0x1f3a23+':'+_0x527d76;_0x2ffef7&&(_0x1ece3f=_0x1ece3f+':'+_0x2ffef7),_0x416c9b['addMarker'](_0x1ece3f,{'range':_0x1ccac4,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x448643){const _0x541f3c=_0x448643['previous'],_0x505d8d=_0x448643['next'];_0x448643['previous']=null,_0x448643['next']=null,null!=_0x541f3c&&_0x541f3c['next']==_0x448643&&(_0x541f3c['next']=_0x505d8d),null!=_0x505d8d&&_0x505d8d['previous']==_0x448643&&(_0x505d8d['previous']=_0x541f3c),'ready'==this['_suggestionState']['get'](_0x448643)&&(this['_suggestionState']['set'](_0x448643,'removed'),this['fire']('suggestionUnloaded',_0x448643,_0x541f3c,_0x505d8d));}['_setSuggestionData'](_0x17bf89){const _0x1a6939=_0x17bf89['id'],_0x123409=this['addSuggestionData'](_0x17bf89);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1a8242=this['editor']['plugins']['get']('PendingActions'),_0x526ef0=_0x123409['hasComments'],_0xa3b15a=_0x123409['subType']?_0x123409['type']+':'+_0x123409['subType']:_0x123409['type'],_0x3e92df=this['editor']['locale'],_0x42d5cf=_0x1a8242['add'](c(_0x3e92df,'PENDING_ACTION_SUGGESTION')),_0xd450b0={'id':_0x1a6939,'type':_0xa3b15a,'hasComments':_0x526ef0,'data':_0x17bf89['data']||null,'originalSuggestionId':_0x17bf89['originalSuggestionId']||null,'attributes':_0x123409['attributes']};this['_adapter']['addSuggestion'](_0xd450b0)['then'](_0x2085d7=>{_0x123409['_saved']=!0x0,_0x1a8242['remove'](_0x42d5cf),_0x2085d7&&_0x2085d7['createdAt']&&(this['_suggestions']['get'](_0x1a6939)['createdAt']=_0x2085d7['createdAt']);})['catch'](_0x1e9f59=>{throw _0xd424b5('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x123409['discard']();}),_0x123409['stopListening'](),this['_suggestions']['delete'](_0x123409['id']),this['_suggestionState']['delete'](_0x123409),_0x1e9f59;});}return _0x123409;}['_isBlockAttribute'](_0x5bd104){return this['_blockAttributeKeys']['has'](_0x5bd104);}['_updateSuggestionData'](_0x17f77f,_0x5bfb07){const _0x439daa=this['editor']['plugins']['get']('PendingActions'),_0x9bb77a=this['getSuggestion'](_0x17f77f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x9bb77a['_saved']){const _0x32d03e=_0x439daa['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x17f77f,_0x5bfb07)['then'](()=>{_0x439daa['remove'](_0x32d03e);});}else _0x9bb77a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x17f77f,_0x5bfb07);});}}['_getSuggestionData'](_0x6a3d1d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3fb279('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x6a3d1d);}['_handleNewSuggestionMarker'](_0x45c37e){const {id:_0x5ad2fc,type:_0xfec764,subType:_0x27dcb4,authorId:_0x3f80ed}=this['_splitMarkerName'](_0x45c37e),_0x188b68=this['_suggestions']['get'](_0x5ad2fc)||this['_createSuggestion'](_0xfec764,_0x27dcb4,_0x5ad2fc,_0x3f80ed,{});switch(this['_checkSuggestionCorrectness'](_0x188b68,_0xfec764,_0x27dcb4,_0x3f80ed),this['_suggestionState']['get'](_0x188b68)){case'notReady':this['_getSuggestionData'](_0x5ad2fc)['then'](_0x1dce85=>{let _0x1d270b=Promise['resolve']();_0x1dce85['hasComments']&&(_0x1d270b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5ad2fc})),_0x1d270b['then'](()=>{this['addSuggestionData'](_0x1dce85)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x188b68,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5ad2fc,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x188b68,'ready'),this['fire']('suggestionLoaded',_0x188b68);break;case'ready':this['fire']('suggestionChanged',_0x188b68);}return _0x188b68['addMarkerName'](_0x45c37e),_0x188b68;}['_refreshSuggestionsChain'](_0x1f2a52){const _0x569dd7=Array['from'](_0x1f2a52),_0x495f5d=_0x569dd7['filter'](_0x285726=>'attribute'==_0x285726['type']);this['_refreshAttributeSuggestionsChain'](_0x495f5d);const _0x82e71f=_0x569dd7['filter'](_0x4f3880=>!_0x4f3880['isMultiRange']&&'attribute'!=_0x4f3880['type']),_0x33e471=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2986a4=>!_0x2986a4['isMultiRange']&&'attribute'!=_0x2986a4['type']),_0x5d9df5=_0x33e471['filter'](_0xbc4172=>!_0x1f2a52['has'](_0xbc4172)),_0x7c1289=new Map(_0x33e471['map'](_0x47663a=>[_0x47663a,this['_suggestionFactory']['getSuggestionCallback'](_0x47663a['type'],_0x47663a['subType'],'chain')])),_0x40a370=new Map(_0x33e471['map'](_0x5970f8=>[_0x5970f8,_0x5970f8['getFirstRange']()])),_0x971cb5=new Set(),_0x207cf4=new Set();for(let _0x1a72fb=0x0;_0x1a72fb<_0x82e71f['length'];_0x1a72fb++)_0x30f228(_0x82e71f[_0x1a72fb],_0x82e71f,_0x1a72fb+0x1);for(let _0x515f6a=0x0;_0x515f6a<_0x82e71f['length'];_0x515f6a++)_0x30f228(_0x82e71f[_0x515f6a],_0x5d9df5,0x0);const _0xcb2f9b=new Set();for(let _0xbdd66c=0x0;_0xbdd66c<_0x82e71f['length'];_0xbdd66c++){const _0x2042b2=_0x82e71f[_0xbdd66c];!_0x207cf4['has'](_0x2042b2)&&_0x2042b2['previous']&&(_0xcb2f9b['add'](_0x2042b2['previous']),_0x2042b2['previous']['next']===_0x2042b2&&(_0x2042b2['previous']['next']=null),_0x2042b2['previous']=null),!_0x971cb5['has'](_0x2042b2)&&_0x2042b2['next']&&(_0xcb2f9b['add'](_0x2042b2['next']),_0x2042b2['next']['previous']===_0x2042b2&&(_0x2042b2['next']['previous']=null),_0x2042b2['next']=null);}function _0x30f228(_0x2e74a4,_0x5624af,_0x2ef896){for(let _0x499d5d=_0x2ef896;_0x499d5d<_0x5624af['length'];_0x499d5d++){const _0x474a71=_0x1c4a2b(_0x2e74a4,_0x5624af[_0x499d5d]);_0x474a71&&(_0x474a71[0x0]['next']=_0x474a71[0x1],_0x474a71[0x1]['previous']=_0x474a71[0x0],_0x971cb5['add'](_0x474a71[0x0]),_0x207cf4['add'](_0x474a71[0x1]));}}function _0x1c4a2b(_0x28b77b,_0x31bc71){if(_0x28b77b['author']['id']!==_0x31bc71['author']['id'])return null;const _0x534d42=_0x7c1289['get'](_0x28b77b)(_0x28b77b,_0x31bc71,_0x40a370['get'](_0x28b77b),_0x40a370['get'](_0x31bc71));if(!_0x534d42)return null;return _0x7c1289['get'](_0x31bc71)(_0x28b77b,_0x31bc71,_0x40a370['get'](_0x28b77b),_0x40a370['get'](_0x31bc71))?_0x534d42[0x1]['commentThread']&&_0x534d42[0x1]['commentThread']['length']?null:_0x534d42:null;}_0xcb2f9b['size']&&this['_refreshSuggestionsChain'](_0xcb2f9b);}['_refreshAttributeSuggestionsChain'](_0x2fd403){if(0x0==_0x2fd403['length'])return;const _0x36d4fd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x122ba2=>'attribute'==_0x122ba2['type']&&_0x122ba2['_isDataLoaded']),_0x2026a1=[],_0x94d3d1=new Map();for(const _0x5ebb77 of _0x36d4fd){const _0x255c2f=_0x139563(_0x5ebb77['attributes']);_0x94d3d1['has'](_0x255c2f)||(_0x94d3d1['set'](_0x255c2f,_0x2026a1['length']),_0x2026a1['push']([]));const _0x35efb2=_0x94d3d1['get'](_0x255c2f);_0x2026a1[_0x35efb2]['push'](_0x5ebb77);}!(function(){_0x2026a1['sort']((_0x1b464f,_0x3021d8)=>{const _0x2fc4d5=_0x1b464f[0x0]['createdAt'],_0x975160=_0x3021d8[0x0]['createdAt'];return _0x2fc4d5==_0x975160?_0x1b464f[0x0]['attributes']['groupId']<_0x3021d8[0x0]['attributes']['groupId']?-0x1:0x1:_0x2fc4d5<_0x975160?-0x1:0x1;});for(const _0x20f495 of _0x2026a1)_0x20f495['sort']((_0x52da66,_0x2bdc82)=>_0x52da66['id']<_0x2bdc82['id']?-0x1:0x1);}());for(let _0x3d2f86=0x0;_0x3d2f86<_0x2026a1['length'];_0x3d2f86++){if(0x0==_0x2026a1[_0x3d2f86]['length'])continue;const _0x5e7908=[];for(let _0xbbe033=_0x3d2f86+0x1;_0xbbe033<_0x2026a1['length'];_0xbbe033++)0x0!=_0x2026a1[_0xbbe033]['length']&&_0x5a5182(_0x2026a1[_0x3d2f86],_0x2026a1[_0xbbe033])&&_0x5e7908['push'](_0xbbe033);for(const _0x20afe9 of _0x5e7908)_0x2026a1[_0x3d2f86]=_0x2026a1[_0x3d2f86]['concat'](_0x2026a1[_0x20afe9]),_0x2026a1[_0x20afe9]=[];}for(const _0x3d6192 of _0x2026a1)for(let _0x258849=0x0;_0x258849<_0x3d6192['length'];_0x258849++){const _0x2b0ea4=_0x3d6192[_0x258849+0x1]||null;_0x3d6192[_0x258849]['next']!==_0x2b0ea4&&(_0x3d6192[_0x258849]['next']=_0x2b0ea4);}for(const _0x573869 of _0x2026a1)for(let _0x4fbf95=0x0;_0x4fbf95<_0x573869['length'];_0x4fbf95++){const _0x3de3d7=_0x573869[_0x4fbf95-0x1]||null;_0x573869[_0x4fbf95]['previous']!==_0x3de3d7&&(_0x573869[_0x4fbf95]['previous']=_0x3de3d7);}function _0x5a5182(_0x5f44db,_0x218241){if(_0x5f44db[0x0]['attributes']['groupId']!==_0x218241[0x0]['attributes']['groupId']&&_0x5f44db[0x0]['author']!==_0x218241[0x0]['author'])return!0x1;if(!function(_0x1a15d8,_0x75ba5f){if(!_0x1a15d8['hasComments']&&!_0x75ba5f['hasComments'])return!0x0;if(_0x1a15d8['hasComments']&&_0x75ba5f['hasComments'])return!0x1;if(_0x1a15d8['hasComments']&&_0x75ba5f['createdAt']<_0x1a15d8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x75ba5f['hasComments']&&_0x1a15d8['createdAt']<_0x75ba5f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5f44db[0x0],_0x218241[0x0]))return!0x1;const _0x3a0bab=Vt(_0x5f44db[0x0]['attributes'],'groupId'),_0x3bd454=Vt(_0x218241[0x0]['attributes'],'groupId');if(!_0x345af8(_0x3a0bab,_0x3bd454))return!0x1;return!!_0x5f44db['every'](_0x7b5cd0=>_0x218241['some'](_0x1c6bfe=>_0x7b5cd0['getFirstRange']()['isEqual'](_0x1c6bfe['getFirstRange']())))&&_0x218241['every'](_0x1f0303=>_0x5f44db['some'](_0x12d10d=>_0x1f0303['getFirstRange']()['isEqual'](_0x12d10d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xe63f68){const _0x44611a=Array['from'](_0xe63f68),_0xd436b2=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4fd8c5=_0xd436b2['filter'](_0x20be56=>!_0xe63f68['has'](_0x20be56)),_0x31248f=new Map(_0x44611a['map'](_0x14ceb9=>[_0x14ceb9,this['_suggestionFactory']['getSuggestionCallback'](_0x14ceb9['type'],_0x14ceb9['subType'],'join')])),_0x29138b=new Map(_0xd436b2['map'](_0x40d1c6=>[_0x40d1c6,_0x40d1c6['getRanges']()]));for(let _0x4523cd=0x0;_0x4523cd<_0x44611a['length'];_0x4523cd++){if(_0x25cfe1(this,_0x44611a[_0x4523cd],_0x44611a,_0x4523cd+0x1))return!0x0;}for(let _0xd8d638=0x0;_0xd8d638<_0x44611a['length'];_0xd8d638++){if(_0x25cfe1(this,_0x44611a[_0xd8d638],_0x4fd8c5,0x0))return!0x0;}return!0x1;function _0x25cfe1(_0x13bd09,_0x11fb83,_0x37839f,_0x219d31){for(let _0x1159f5=_0x219d31;_0x1159f5<_0x37839f['length'];_0x1159f5++){const _0x131e0d=_0x37839f[_0x1159f5];if(_0x131e0d['type']!==_0x11fb83['type']||_0x131e0d['author']['id']!==_0x11fb83['author']['id']||_0x131e0d['subType']!==_0x11fb83['subType'])continue;if(!Wt(_0x11fb83,_0x131e0d))continue;if('attribute'==_0x11fb83['type']&&_0x11fb83['data']['oldValue']!=_0x131e0d['data']['oldValue'])continue;if('attribute'==_0x11fb83['type']&&_0x13bd09['_isBlockAttribute'](_0x11fb83['data']['key']))continue;if('formatBlock'==_0x11fb83['type']){const _0x36ae8b=_0x13bd09['editor']['model'],_0x3d724c=_0x11fb83['getContainedElement']();if(_0x3d724c&&(_0x36ae8b['schema']['isObject'](_0x3d724c)||_0x36ae8b['schema']['isLimit'](_0x3d724c)))continue;}const _0x13f2f9=_0x31248f['get'](_0x11fb83),_0x37e5af=_0x29138b['get'](_0x11fb83),_0x45699f=_0x29138b['get'](_0x131e0d),_0x1001ca=_0x11fb83['commentThread']&&_0x11fb83['commentThread']['length'],_0x17bcc7=_0x131e0d['commentThread']&&_0x131e0d['commentThread']['length'];if(!_0x1001ca&&_0x13f2f9(_0x45699f,_0x37e5af))return _0x13bd09['_joinSuggestions'](_0x131e0d,_0x11fb83),_0x29138b['delete'](_0x11fb83),!0x0;if(!_0x17bcc7&&_0x13f2f9(_0x37e5af,_0x45699f))return _0x13bd09['_joinSuggestions'](_0x11fb83,_0x131e0d),_0x29138b['delete'](_0x131e0d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x483bc3,_0x50cc07){if(_0x483bc3['isMultiRange']){for(const _0x2e6fd6 of _0x50cc07['getRanges']())_0x483bc3['addRange'](_0x2e6fd6);}else{const _0x1618ac=_0x50cc07['getFirstRange']()['end'];this['_setSuggestionRange'](_0x483bc3,this['_model']['createRange'](_0x483bc3['getFirstRange']()['start'],_0x1618ac));}_0x50cc07['removeMarkers']();}['_getMarkerAnnouncementText'](_0x430308,_0x1aafbf,_0x152167){const _0x172e8b=_0x430308['startsWith']('format')||_0x430308['startsWith']('attribute')?'FORMATTING':_0x430308['toUpperCase']();return c(this['editor']['locale'],_0x1aafbf+'_'+_0x172e8b+'_SUGGESTION_ANNOUNCEMENT',_0x152167);}['_initAriaMarkerChangeAnnouncements'](){const _0x4e935d=this['editor'];if(!_0x4e935d['ui'])return;const {ariaLiveAnnouncer:_0x4b8e98}=_0x4e935d['ui'];_0x24c02a(this['_model'],({left:_0x5e3183,entered:_0x1eff8d})=>{for(const _0x424610 of _0x5e3183){const {group:_0x12f8aa,type:_0x17caa9}=this['_splitMarkerName'](_0x424610['name']);if('suggestion'===_0x12f8aa){_0x4b8e98['announce'](this['_getMarkerAnnouncementText'](_0x17caa9,'LEAVE'));break;}}for(const _0x3496c8 of _0x1eff8d){const {group:_0x14b33d,type:_0x1e03e9}=this['_splitMarkerName'](_0x3496c8['name']);if('suggestion'===_0x14b33d){_0x4b8e98['announce'](this['_getMarkerAnnouncementText'](_0x1e03e9,'ENTER',_0x19bb1b(_0x44d6cf)));break;}}});}['_processAttributeChanges'](_0x3ae9e5){if(this['_recordAttributeSuggestions'])return!0x1;const _0x31f768=this['editor'],_0x27ff36=_0x31f768['model']['document']['differ']['getChanges']();if(0x0==_0x27ff36['length'])return!0x1;const _0x176413=[],_0x358587=_0x27ff36['filter'](_0x67dea=>'attribute'==_0x67dea['type']),_0x546951=_0x27ff36['filter'](_0xd85b45=>'insert'==_0xd85b45['type']&&'$text'!=_0xd85b45['name']),_0x2c93c1=_0x27ff36['filter'](_0x37b63b=>'remove'==_0x37b63b['type']&&'$text'!=_0x37b63b['name']);for(const _0x23d123 of _0x358587)_0x176413['push']({'key':_0x23d123['attributeKey'],'newValue':_0x23d123['attributeNewValue'],'oldValue':_0x23d123['attributeOldValue'],'range':Ht(_0x23d123['range'],_0x31f768['model'])});for(const _0x4dacec of _0x546951){const _0x5e10b5=_0x2c93c1['find'](_0x13651d=>_0x13651d['position']['isEqual'](_0x4dacec['position']));_0x5e10b5&&_0x176413['push']({'key':u,'newValue':_0x4dacec['name'],'oldValue':_0x5e10b5['name'],'range':_0x31f768['model']['createRangeOn'](_0x4dacec['position']['nodeAfter'])});}return 0x0!=_0x176413['length']&&this['_reduceExistingSuggestions'](_0x3ae9e5,_0x176413);}['_processAttributeSuggestions'](_0x3e641d){let _0x109901=!0x1;const _0x3c7663=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x11cbb5=>_0x11cbb5['data']['newRange']&&_0x11cbb5['name']['startsWith']('suggestion:attribute:'));for(const _0x5f03cb of _0x3c7663){const {subType:_0x279970,id:_0x2e0979}=this['_splitMarkerName'](_0x5f03cb['name']),_0x164863=_0x279970['split']('|')[0x0];for(const _0x1f580a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1f580a['id']!=_0x2e0979&&'attribute'==_0x1f580a['type']&&_0x1f580a['data']&&_0x1f580a['data']['key']==_0x164863&&_0x1f580a['getFirstRange']()['isIntersecting'](_0x5f03cb['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1f580a,_0x5f03cb['data']['newRange'],_0x3e641d),_0x109901=!0x0);}return _0x109901;}['_recordAttributeChanges'](_0x4f9e30){this['_recordAttributeSuggestions']=!0x0,_0x4f9e30();}['_isRegisteredAttribute'](_0x5c2b79){const _0x56f32=this['_isBlockAttribute'](_0x5c2b79),_0x4f1014=this['_inlineAttributeKeys']['has'](_0x5c2b79);return _0x56f32||_0x4f1014;}['_reduceExistingSuggestions'](_0x3722cd,_0x362ff6){if(0x0==_0x362ff6['length'])return!0x1;let _0x4f9c9e=!0x1;for(const _0x3f096a of _0x362ff6){const _0x676d3a=this['_findSuggestions'](_0x3f096a['range'],'attribute')['filter'](_0x3598b4=>!_0x3598b4['meta']['isNextTo'])['map'](_0x31bbc0=>_0x31bbc0['suggestion']),_0x4fab9e=_0x139563({'newValue':_0x3f096a['newValue']});_0x676d3a['filter'](_0x428dd3=>{const [_0x19d5b3,_0x2503c6]=_0x428dd3['subType']['split']('|');return _0x19d5b3==_0x3f096a['key']&&_0x2503c6!=_0x4fab9e;})['forEach'](_0x238695=>{this['_reduceSuggestionAttributeRange'](_0x238695,_0x3f096a['range'],_0x3722cd),_0x4f9c9e=!0x0;});}return _0x4f9c9e;}['_reduceSuggestionAttributeRange'](_0x27556d,_0x53f9c0,_0xd3265f){const _0x2ed973=_0x27556d['getFirstRange']()['getDifference'](_0x53f9c0);0x0!==_0x2ed973['length']?0x1!==_0x2ed973['length']?this['_breakSuggestionMarker'](_0x27556d,_0x53f9c0['start'],_0x53f9c0['end']):this['_setSuggestionRange'](_0x27556d,_0x2ed973[0x0]):_0xd3265f['removeMarker'](_0x27556d['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2d18e5){this['_editor']=_0x2d18e5,this['_model']=_0x2d18e5['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x34ccb7,_0x1c05e6,_0x2c60f3,_0x346501,_0x3ac37d,_0x51a03a){return new o(this['_model'],{'type':_0x34ccb7,'subType':_0x1c05e6,'id':_0x2c60f3,'author':_0x346501,'creator':_0x346501,'attributes':_0x3ac37d,'onAttributesChange':_0x51a03a,'onAccept':(..._0x24cc60)=>this['getSuggestionCallback'](_0x34ccb7,_0x1c05e6,'accept')(..._0x24cc60),'onDiscard':(..._0x756ed0)=>this['getSuggestionCallback'](_0x34ccb7,_0x1c05e6,'discard')(..._0x756ed0)});}['registerCustomCallback'](_0x16bc72,_0x51b575,_0x48f993,_0x2e1d00){const _0x57abbd=_0x16bc72+':'+_0x51b575+':'+_0x48f993;this['_customCallbacks']['set'](_0x57abbd,_0x2e1d00);}['getSuggestionCallback'](_0x4a6bf0,_0x4f2cac,_0x1b9794){const _0x3dc0d6=_0x4a6bf0+':'+_0x4f2cac+':'+_0x1b9794;return this['_customCallbacks']['get'](_0x3dc0d6)||this['_defaultCallbacks']['get'](_0x4a6bf0+':'+_0x1b9794);}['_registerDefaultCallbacks'](){const _0x355dea=()=>!0x1,_0x7c989b=_0x327b94=>{_0x327b94['sort']((_0x3a6bdc,_0x252e47)=>_0x3a6bdc['start']['isBefore'](_0x252e47['start'])?0x1:-0x1),this['_model']['change'](_0x2baa41=>{for(const _0xd54d74 of _0x327b94){let _0x195004;_0x195004=_0xd54d74['end']['isAtEnd']&&_0xd54d74['end']['parent']==_0xd54d74['start']['nodeAfter']?_0x2baa41['createSelection'](_0xd54d74['start']['nodeAfter'],'on'):_0x2baa41['createSelection'](_0xd54d74),this['_model']['deleteContent'](_0x195004,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x43b4dc=(_0x4917ec,_0x48dcc9)=>{_0x48dcc9&&this['_model']['change'](_0x1d8b39=>{const {commandName:_0x5b6c80,commandParams:_0x1d6253=[]}=_0x48dcc9,_0x5d4052=_0x4917ec['map'](_0x1c8efa=>(Gt(_0x1c8efa)&&(_0x1c8efa=this['_model']['createRange'](_0x1c8efa['end'])),_0x1c8efa))['filter'](_0x2480dc=>'$graveyard'!==_0x2480dc['root']['rootName']);if(_0x5d4052['length']<0x1)return;const _0x3cfacb=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2efcc6=>_0x1e136d['fromRange'](_0x2efcc6));_0x1d8b39['setSelection'](_0x5d4052);for(const _0x22247a of this['_editor']['commands']['commands']())_0x22247a['refresh']();_0x1d6253['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5b6c80,..._0x1d6253);const _0x57a34a=_0x3cfacb['filter'](_0x4cdb2f=>'$graveyard'!=_0x4cdb2f['root']['rootName']);_0x57a34a['length']>0x0&&_0x1d8b39['setSelection'](_0x57a34a);for(const _0x1f4457 of _0x3cfacb)_0x1f4457['detach']();});},_0xacccbc=(_0x457025,_0x5b9721)=>0x1==_0x457025['length']&&0x1==_0x5b9721['length']&&_0x457025[0x0]['end']['isEqual'](_0x5b9721[0x0]['start']),_0x5132a7=(_0x3465d0,_0x2a87cc,_0xc2f532,_0x41e458)=>zt(_0x3465d0,_0x2a87cc,_0xc2f532,_0x41e458)?[_0x3465d0,_0x2a87cc]:zt(_0x2a87cc,_0x3465d0,_0x41e458,_0xc2f532)?[_0x2a87cc,_0x3465d0]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x355dea),this['_defaultCallbacks']['set']('insertion:discard',_0x7c989b),this['_defaultCallbacks']['set']('insertion:join',_0xacccbc),this['_defaultCallbacks']['set']('insertion:chain',_0x5132a7),this['_defaultCallbacks']['set']('deletion:accept',_0x7c989b),this['_defaultCallbacks']['set']('deletion:discard',_0x355dea),this['_defaultCallbacks']['set']('deletion:join',_0xacccbc),this['_defaultCallbacks']['set']('deletion:chain',_0x5132a7),this['_defaultCallbacks']['set']('formatInline:accept',_0x43b4dc),this['_defaultCallbacks']['set']('formatInline:discard',_0x355dea),this['_defaultCallbacks']['set']('formatInline:join',_0xacccbc),this['_defaultCallbacks']['set']('formatInline:chain',_0x355dea),this['_defaultCallbacks']['set']('formatBlock:accept',_0x43b4dc),this['_defaultCallbacks']['set']('formatBlock:discard',_0x355dea),this['_defaultCallbacks']['set']('formatBlock:join',_0xacccbc),this['_defaultCallbacks']['set']('formatBlock:chain',_0x355dea),this['_defaultCallbacks']['set']('attribute:accept',_0x355dea),this['_defaultCallbacks']['set']('attribute:discard',(_0x1e38ad,_0xaa4120)=>{if(!_0xaa4120)return;const _0x246240=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x158088=>{if(_0xaa4120['key']==u)for(const _0x57dc18 of _0x1e38ad){const _0xa6ca36=_0x57dc18['start']['nodeAfter'],_0x5c474c=_0xaa4120['oldValue'];_0x158088['rename'](_0xa6ca36,_0x5c474c);}else{if(_0x246240['_isBlockAttribute'](_0xaa4120['key'])){for(const _0x5372e0 of _0x1e38ad)void 0x0!==_0xaa4120['oldValue']?_0x158088['setAttribute'](_0xaa4120['key'],_0xaa4120['oldValue'],_0x5372e0['start']['nodeAfter']):_0x158088['removeAttribute'](_0xaa4120['key'],_0x5372e0['start']['nodeAfter']);}else{for(const _0x3eb34f of _0x1e38ad)_0xaa4120['oldValue']?_0x158088['setAttribute'](_0xaa4120['key'],_0xaa4120['oldValue'],_0x3eb34f):_0x158088['removeAttribute'](_0xaa4120['key'],_0x3eb34f);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xacccbc);}}function Pt(_0x37b3fc,_0x5ddd8b,_0x359361){for(const _0x414bf6 of _0x5ddd8b['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x414bf6['root']==_0x414bf6)return!0x1;if(!_0x359361['containsItem'](_0x414bf6))return!0x1;if(_0x37b3fc['isObject'](_0x414bf6)||_0x37b3fc['isLimit'](_0x414bf6))return!0x0;}return!0x1;}function Gt(_0x35b470){return _0x35b470['end']['parent']==_0x35b470['start']['nodeAfter']&&_0x35b470['end']['isAtStart'];}function Lt(_0x56e250,_0x502527,_0x362c22,_0x567b6a){const _0x1d7024=_0x28122f=>!_0x28122f['item']['is']('$textProxy')&&!_0x567b6a['isObject'](_0x28122f['item']),_0x58c4eb=_0x56e250['start']['getLastMatchingPosition'](_0x1d7024),_0x43be87=_0x56e250['end']['getLastMatchingPosition'](_0x1d7024,{'direction':'backward'});return(!_0x56e250['start']['isEqual'](_0x58c4eb)||!_0x56e250['end']['isEqual'](_0x43be87))&&(_0x58c4eb['isBefore'](_0x43be87)?_0x362c22['updateMarker'](_0x502527,{'range':_0x362c22['createRange'](_0x58c4eb,_0x43be87)}):_0x362c22['removeMarker'](_0x502527),!0x0);}function Jt(_0x570c91){return _0x139563(_0x570c91);}function Kt(_0x32cc7e){const _0x12990c=_0x32cc7e['start']['nodeAfter'];return _0x12990c&&_0x12990c['is']('element');}function Ht(_0x19a059,_0x2b536e){return null==_0x19a059['end']['nodeBefore']&&_0x19a059['end']['parent']==_0x19a059['start']['nodeAfter']?qt(_0x19a059['start']['nodeAfter'],_0x2b536e):_0x19a059;}function qt(_0x4144e8,_0x7357ad){const _0x332439=_0x7357ad['schema']['isObject'](_0x4144e8)||_0x7357ad['schema']['isSelectable'](_0x4144e8);return _0x7357ad['createRange'](_0x7357ad['createPositionAt'](_0x4144e8,'before'),_0x332439?_0x7357ad['createPositionAfter'](_0x4144e8):_0x7357ad['createPositionAt'](_0x4144e8,'end'));}function zt(_0x253730,_0x406d39,_0x3fc6e0,_0x562ba4){return!!Wt(_0x253730,_0x406d39)&&_0x3fc6e0['end']['isEqual'](_0x562ba4['start']);}function Wt(_0x347227,_0x353fad){if(!_0x347227['_isDataLoaded']||!_0x353fad['_isDataLoaded'])return!0x1;const _0x2faffc=new Set(Object['keys'](_0x347227['attributes'])),_0xeeafd9=new Set(Object['keys'](_0x353fad['attributes']));if(_0x2faffc['delete']('groupId'),_0xeeafd9['delete']('groupId'),0x0==_0x2faffc['size']&&0x0==_0xeeafd9['size'])return!0x0;if(_0x2faffc['size']!=_0xeeafd9['size'])return!0x1;const _0x4f7f82={..._0x347227['attributes']},_0x198dc7={..._0x353fad['attributes']};return delete _0x4f7f82['groupId'],delete _0x198dc7['groupId'],JSON['stringify'](_0x4f7f82)==JSON['stringify'](_0x198dc7);}function Qt(_0x27914d,_0x3470dd){const _0x47b430=Xt(_0x27914d['attributes']),_0x446f80=Xt(_0x3470dd);if(!_0x27914d['_isDataLoaded'])return!0x1;for(const _0x377fc7 of Object['keys'](_0x446f80))if(!_0x345af8(_0x47b430[_0x377fc7],_0x446f80[_0x377fc7]))return!0x1;return!0x0;}function Xt(_0x4170ba){const _0xf1c160=Object['assign']({},_0x4170ba);return delete _0xf1c160['skipNestingCheck'],delete _0xf1c160['tablePasteChainId'],_0xf1c160;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4e0383(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x37f75a,_0x3b2bce,_0x2494e1,_0x129137){super(),this['model']=_0x3b2bce,this['view']=_0x2494e1,this['commentThreadController']=_0x129137,this['_editor']=_0x37f75a,this['_acceptCommand']=_0x37f75a['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x37f75a['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2286fc,_0x3fb4be)=>_0x2286fc||_0x3fb4be),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4a6f27=>_0x4a6f27&&this['_editor']['model']['canEditAt'](_0x3b2bce['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x119a66=>_0x119a66&&this['_editor']['model']['canEditAt'](_0x3b2bce['getRanges']())),this['_pendingAction']=null,_0x2494e1['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2494e1,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2494e1,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2494e1,'change:isDirty',()=>{_0x2494e1['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 _0x2fbcbf=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2fbcbf);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x5ad8ec{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x306438,_0x49192c,_0x3b3a9e,_0x8414ad){super(_0x306438),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x22fb69(_0x306438,c(_0x306438,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x49192c['authoredAt']),this['bind']('authoredAt')['to'](_0x49192c),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',_0x49192c,'authoredAt',this,'descriptionParts',(_0x229703,_0x59d46d,_0x10bd6a)=>{const _0x60761c=_0x10bd6a['map'](_0x18463f=>ls(_0x18463f['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x229703-0x1,_0x49192c['author']['name'],_0x59d46d?_0x8414ad['formatDateTime'](_0x59d46d):'',new DOMParser()['parseFromString'](_0x60761c,'text/html')['body']['textContent']]);}),this['focusables']=new _0x47bd2c(),this['focusTracker']=new _0x4630bd(),this['keystrokes']=new _0x41b68e(),this['focusCycler']=new _0x5bd224({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x119c8c=>_0x119c8c['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x49192c,this['_localUser']=_0x3b3a9e,this['_config']=_0x8414ad,_0x8414ad['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1b6bcf(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5ba5f4}=this['_config'];this['commentsListView']=new _0x5ba5f4(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',_0xc5586e=>_0xc5586e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x36b926,_0x30a023)=>_0x36b926||!!_0x30a023);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1d1220}=this['_config'],_0x5e5baa=new _0x1d1220(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x53a219=_0x5e5baa['commentInputView'];return _0x5e5baa['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x53a219,'value',(_0x25cd0b,_0x1f58da,_0x560cdb)=>!!_0x560cdb||_0x25cd0b&&!_0x1f58da),_0x53a219['on']('submit',(_0x1d1294,_0x563f5a)=>{this['fire']('addComment',_0x563f5a),_0x53a219['editor']['setData']('');}),_0x53a219['on']('cancel',()=>this['focus']()),_0x53a219['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5e5baa;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x1233fb,_0x32712d,_0x5663b4,_0x3adb16){super(_0x1233fb,_0x32712d,_0x5663b4,_0x3adb16),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4a8bf6=>_0x4a8bf6&&_0x4a8bf6[0x0]?_0x4a8bf6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x33cc31,_0x467361)=>{let _0x4cb402='';for(const _0x7406fa of _0x33cc31)_0x4cb402+='<p>'+ls(_0x7406fa['content'],_0x7406fa['color'])+'</p>';return _0x467361?_0x4cb402:ti(_0x4cb402,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3adb16['SuggestionView'](_0x1233fb,_0x32712d,{'formatDateTime':_0x3adb16['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 _0x508217=this['bindTemplate'],_0xdb87b9=[this['suggestionView']];return this['commentsListView']&&_0xdb87b9['push'](this['commentsListView']),this['commentThreadInputView']&&_0xdb87b9['push'](this['commentThreadInputView']),_0xdb87b9['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x508217['if']('isActive','ck-suggestion-wrapper--active'),_0x508217['to']('type',_0x4302ec=>'ck-suggestion-'+_0x4302ec),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':_0x508217['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xdb87b9};}['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 _0x5ad8ec{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xe623fa,_0x12d1fa,_0x241ece){super(_0xe623fa),this['_model']=_0x12d1fa,this['_config']=_0x241ece,this['set']('description',''),this['bind']('authoredAt')['to'](_0x12d1fa),this['acceptButton']=this['_createButton'](c(_0xe623fa,'Accept\x20suggestion'),_0x4e5c38,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0xe623fa,'Discard\x20suggestion'),_0x2a92e6,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x44da15(_0xe623fa,_0x12d1fa['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x47bd2c([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4630bd(),this['keystrokes']=new _0x41b68e(),this['focusCycler']=new _0x5bd224({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3e7ad6=>_0x3e7ad6['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x36655c=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x36655c['innerHTML']=this['description'],this['on']('change:description',(_0x903448,_0x284e15,_0x4fdc74)=>{_0x36655c['innerHTML']=_0x4fdc74;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xc95056=this['bindTemplate'],_0x5add1f=[{'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':_0xc95056['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xc95056['to']('authoredAt',_0x5a1792=>this['_config']['formatDateTime'](_0x5a1792))}]}]},{'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']&&_0x5add1f['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':_0x5add1f}]};}['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'](_0x11322c,_0x3ee4a1,_0x1621d0,_0x3095b,_0x19beb0){const _0x166304=new _0x4abafe(this['locale']);return _0x166304['set']({'label':_0x11322c,'icon':_0x3ee4a1,'tooltip':!0x0,'tooltipPosition':_0x19beb0}),_0x166304['extendTemplate']({'attributes':{'class':_0x1621d0}}),_0x166304['on']('execute',()=>{this['fire'](_0x3095b,this['_model']['id']);}),_0x166304;}['_setupKeyboardNavigation'](){const _0x5ef1fe=this['element'];this['keystrokes']['listenTo'](_0x5ef1fe);for(const _0x387339 of this['focusables'])this['focusTracker']['add'](_0x387339['element']),this['keystrokes']['listenTo'](_0x387339['element']);this['keystrokes']['set']('enter',(_0x374353,_0x52a189)=>{_0x5ef1fe===_0x374353['target']&&(this['focusCycler']['focusFirst'](),_0x52a189());}),this['keystrokes']['set']('esc',(_0x586f5f,_0x5d131d)=>{_0x5ef1fe!==_0x586f5f['target']&&(this['focus'](),_0x5d131d());});}}class d extends _0x5a9880{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x275b38,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x48da84){super(_0x48da84),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x328092=this['editor']['config'];_0x328092['define']('trackChanges.SuggestionThreadView',fe),_0x328092['define']('trackChanges.SuggestionView',we),_0x328092['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x328092['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x52d5eb,_0x3535ff){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x16b6ef,_0x35d25d]of this['_handleControllerBuffer']){const _0x2aca3b=this['_suggestionToController']['has'](_0x16b6ef);_0x2aca3b||_0x35d25d?_0x2aca3b&&_0x35d25d&&this['_destroyController'](_0x16b6ef):this['_initializeController'](_0x16b6ef);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x52d5eb,_0x3535ff);}['init'](){const _0x1cd7c8=this['editor'],_0x1d7d0c=_0x1cd7c8['plugins']['get']('TrackChangesEditing'),_0x1c1304=_0x1cd7c8['plugins']['get']('Annotations'),_0x12b88f=_0x1cd7c8['plugins']['get']('EditorAnnotations'),_0x126387=_0x1cd7c8['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x12b88f['addSourceCollector'](()=>{const _0x54ed46=[];for(const [_0x50f788,_0x26d6dd]of Array['from'](this['_suggestionToController'])){const _0x240ed5=_0x50f788['getAllAdjacentSuggestions'](),_0x3e9128=[];for(const _0x4cf1fd of _0x240ed5){if(!_0x4cf1fd['isInContent'])continue;if(_0x4cf1fd['isMultiRange']){_0x3e9128['push'](..._0x4cf1fd['getRanges']());continue;}const _0x2c9618=_0x4cf1fd['getFirstRange']();if(_0x3e9128['length']>0x0){const _0x297a63=_0x3e9128[0x0]['getJoined'](_0x2c9618);if(_0x297a63){_0x3e9128[0x0]=_0x297a63;continue;}}_0x3e9128['push'](_0x2c9618);}_0x54ed46['push']([_0x26d6dd['view'],_0x3e9128]);}return _0x54ed46;}),this['listenTo'](_0x1d7d0c,'suggestionLoaded',(_0x18298d,_0x21ec2d)=>{this['listenTo'](_0x21ec2d,'change:previous',(_0x3a0628,_0xb56d6f,_0x35b371,_0x137bb2)=>{_0x21ec2d['isInContent']&&(null==_0x35b371?(this['_updateController'](_0x137bb2['head']),this['_handleSuggestionControllerDelayed'](_0x21ec2d,!0x1)):(this['_updateController'](_0x35b371['head']),null==_0x137bb2&&this['_handleSuggestionControllerDelayed'](_0x21ec2d,!0x0)));}),null!==_0x21ec2d['previous']?this['_updateController'](_0x21ec2d['head']):this['_handleSuggestionControllerDelayed'](_0x21ec2d,!0x1);}),this['listenTo'](_0x1d7d0c,'suggestionUnloaded',(_0x1b066a,_0x18b9eb,_0x213814)=>{this['stopListening'](_0x18b9eb,'change:previous'),this['_handleControllerBuffer']['delete'](_0x18b9eb),this['_suggestionToController']['has'](_0x18b9eb)&&this['_destroyController'](_0x18b9eb),_0x213814&&this['_updateController'](_0x213814['head']);}),this['listenTo'](_0x1d7d0c,'suggestionChanged',(_0x27b24d,_0x2de7ff)=>{this['_updateController'](_0x2de7ff);}),this['listenTo'](_0x1c1304,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x126387,'addComment',(_0x57af13,{threadId:_0x50924a,isFromAdapter:_0x27dd11})=>{if(_0x27dd11||!_0x1d7d0c['hasSuggestion'](_0x50924a))return;const _0x40accc=_0x1d7d0c['getSuggestion'](_0x50924a);this['_suggestionToController']['get'](_0x40accc)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x130e1e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1d44f4;for(const _0x49bc4a in _0x130e1e){const _0x333b0d=_0x49bc4a,_0x3ee522=_0x130e1e[_0x333b0d];if('trackChangesLicenseKeyValid'==_0x3ee522||'trackChangesLicenseKeyInvalid'==_0x3ee522||'trackChangesLicenseKeyExpired'==_0x3ee522||'trackChangesLicenseKeyDomainLimit'==_0x3ee522||'trackChangesLicenseKeyNotAllowed'==_0x3ee522||'trackChangesLicenseKeyEvaluationLimit'==_0x3ee522||'trackChangesLicenseKeyTrialLimit'==_0x3ee522||'trackChangesLicenseKeyUsageLimit'==_0x3ee522){delete _0x130e1e[_0x333b0d],_0x1d44f4=_0x3ee522,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1d44f4&&_0x130e1e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1d44f4&&_0x130e1e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1d44f4&&_0x130e1e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1d44f4&&_0x130e1e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1d44f4&&_0x130e1e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1d44f4&&_0x130e1e['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1d44f4&&_0x130e1e['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x25d034=this['editor']['plugins']['get']('Annotations'),_0x5de84e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b303b=Array['from'](_0x25d034['activeAnnotations'],_0x14723e=>_0x14723e['innerView'])['filter'](_0x6dfe28=>this['_viewToController']['has'](_0x6dfe28)),_0x42a5c1=[];for(const _0x312020 of _0x5b303b){const _0x3cf4ff=this['_viewToController']['get'](_0x312020)['model']['getAllAdjacentSuggestions']();_0x42a5c1['push'](..._0x3cf4ff['reduce']((_0x292141,_0x5079ad)=>[..._0x292141,..._0x5079ad['getMarkerNames']()],[]));}_0x5de84e['activeMarkers']=_0x42a5c1;}['_addUIComponentsToFactory'](){const _0x577511=this['editor'],_0x4c20f8=_0x577511['locale'],_0x2638d7=c(_0x4c20f8,'Track\x20changes'),_0x2fa976=new _0x3348ef([{'type':'switchbutton','model':new _0x44865d({'withText':!0x0,'isToggleable':!0x0,'label':_0x2638d7,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x44865d({'withText':!0x0,'label':c(_0x4c20f8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x44865d({'withText':!0x0,'label':c(_0x4c20f8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x44865d({'withText':!0x0,'label':c(_0x4c20f8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x44865d({'withText':!0x0,'label':c(_0x4c20f8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x577511['plugins']['has']('TrackChangesPreview')&&_0x2fa976['addMany']([{'type':'separator'},{'type':'button','model':new _0x44865d({'withText':!0x0,'label':c(_0x4c20f8,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x28f689 of _0x2fa976)if(ke(_0x28f689)){const _0x180515=_0x577511['commands']['get'](_0x28f689['model']['commandName']);_0x28f689['model']['bind']('isOn','isEnabled')['to'](_0x180515,'value','isEnabled');}_0x577511['ui']['componentFactory']['add']('trackChanges',_0x311503=>this['_createToolbarButton'](_0x311503,_0x2fa976,_0x2638d7)),_0x577511['ui']['componentFactory']['add']('menuBar:trackChanges',_0xe3c858=>this['_createMenuBarMenu'](_0xe3c858,_0x2fa976,_0x2638d7));}['_createToolbarButton'](_0x440d9d,_0x56841f,_0x1ebf3c){const _0xeac76c=_0x3c8947(_0x440d9d,_0x354818),_0x22d28e=this['editor']['commands']['get']('trackChanges');_0xeac76c['buttonView']['set']({'tooltip':_0x1ebf3c,'label':_0x1ebf3c,'icon':_0x4e82f4}),_0xeac76c['buttonView']['bind']('isOn')['to'](_0x22d28e,'value'),_0xeac76c['buttonView']['on']('execute',()=>{_0x22d28e['execute'](),this['editor']['editing']['view']['focus']();}),_0x4773fb(_0xeac76c,_0x56841f,{'role':'menu'});const _0x23d9f9=[];for(const _0x15b72f of _0x56841f)ke(_0x15b72f)&&_0x23d9f9['push'](this['editor']['commands']['get'](_0x15b72f['model']['commandName']));const _0x3c7124=_0xeac76c['buttonView'];return _0x3c7124['actionView']['unbind']('isEnabled'),_0x3c7124['arrowView']['unbind']('isEnabled'),_0x3c7124['actionView']['bind']('isEnabled')['to'](_0x22d28e,'isEnabled'),_0x3c7124['arrowView']['bind']('isEnabled')['toMany'](_0x23d9f9,'isEnabled',(..._0x105195)=>_0x105195['some'](_0x47cfc5=>_0x47cfc5)),_0xeac76c['on']('execute',_0x12d293=>{this['editor']['execute'](_0x12d293['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xeac76c;}['_createMenuBarMenu'](_0x2efe22,_0x322467,_0x1ffead){const _0x509b2c=new _0x3a8417(_0x2efe22),_0x1e6d09=this['editor']['commands']['get']('trackChanges');_0x509b2c['buttonView']['set']({'label':_0x1ffead,'icon':_0x4e82f4});const _0xc100f3=new _0x487b94(_0x2efe22);for(const _0x4ac0ec of _0x322467){if('separator'==_0x4ac0ec['type']){_0xc100f3['items']['add'](new _0x3ea23f(_0x2efe22));continue;}const _0x2af563=new _0x1f86c4(_0x2efe22,_0x509b2c),_0x2b71fc=new _0x5229dc(_0x2efe22),_0x5117cc=_0x4ac0ec['model'];_0x2b71fc['bind'](...Object['keys'](_0x5117cc))['to'](_0x5117cc),_0x2b71fc['delegate']('execute')['to'](_0x509b2c),_0x2b71fc['on']('execute',()=>{this['editor']['execute'](_0x5117cc['commandName']),this['editor']['editing']['view']['focus']();}),_0x2af563['children']['add'](_0x2b71fc),_0xc100f3['items']['add'](_0x2af563);}return _0x509b2c['bind']('isEnabled')['to'](_0x1e6d09,'isEnabled'),_0x509b2c['panelView']['children']['add'](_0xc100f3),_0x509b2c;}['_initializeController'](_0x3147ab){const _0x378134=this['editor'],_0x243828=_0x378134['config'],_0x117283=_0x378134['plugins']['get']('Annotations'),_0x4512f6=_0x378134['plugins']['get']('CommentsRepository'),_0x20e607=_0x378134['plugins']['get']('EditorAnnotations'),_0x31c16c=_0x378134['plugins']['get'](_0x275b38)['me'],_0x39ef74=_0x243828['get']('trackChanges')['SuggestionThreadView'],_0x44c02e=_0x243828['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x37aae4,CommentThreadInputView:_0x10de41}=_0x378134['plugins']['get']('CommentsUI');let _0x26c76e,_0x1b21fe,_0x5efb2e;this['_annotationViews']['has'](_0x3147ab['id'])?(_0x1b21fe=this['_annotationViews']['get'](_0x3147ab['id']),_0x26c76e=_0x1b21fe['mainView']):(_0x26c76e=new _0x39ef74(_0x378134['locale'],_0x3147ab,_0x31c16c,{'disableComments':this['_disableComments'],'editorConfig':{..._0x243828['get']('comments.editorConfig'),'licenseKey':_0x243828['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x243828['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x243828['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x243828['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3f12e3(_0x243828['get']('locale')),'CommentView':_0x243828['get']('comments')['CommentView'],'CommentsListView':_0x37aae4,'CommentThreadInputView':_0x10de41,'SuggestionView':_0x44c02e}),_0x26c76e['suggestionView']['acceptButton']['on']('execute',()=>{_0x378134['editing']['view']['focus']();}),_0x26c76e['suggestionView']['discardButton']['on']('execute',()=>{_0x378134['editing']['view']['focus']();}),_0x1b21fe=_0x117283['createAnnotationView'](this['editor']['locale'],_0x26c76e),_0x1b21fe['bind']('isDirty')['to'](_0x26c76e,'isDirty'),_0x1b21fe['bind']('length')['to'](_0x26c76e),_0x1b21fe['bind']('type')['to'](_0x26c76e,'type',_0x1bf5c3=>'suggestion-'+_0x1bf5c3),_0x26c76e['on']('escape',()=>{_0x5efb2e['fire']('escape');}),this['_annotationViews']['set'](_0x3147ab['id'],_0x1b21fe));const _0x3c2d20=_0x4512f6['createCommentThreadController'](_0x3147ab['commentThread'],_0x26c76e),_0x3816df=new pe(_0x378134,_0x3147ab,_0x26c76e,_0x3c2d20),_0x11c0d9=_0x3147ab['getAllAdjacentSuggestions']()['filter'](_0x202221=>_0x202221['isInContent']);_0x26c76e['descriptionParts']=_0x378134['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x11c0d9),this['_suggestionToController']['set'](_0x3147ab,_0x3816df),this['_viewToController']['set'](_0x26c76e,_0x3816df),_0x5efb2e=_0x117283['createAnnotation']({'view':_0x1b21fe,'target':()=>{const _0x1ecab7=[],_0x3308b4=_0x3147ab['getAllAdjacentSuggestions']()['filter'](_0x324618=>_0x324618['isInContent']);for(const _0x3998d3 of _0x3308b4)_0x1ecab7['push'](..._0x3998d3['getMarkers']());return _0x4849c0(_0x378134['editing'],_0x1ecab7);},'type':()=>'suggestion-'+_0x3816df['view']['type']}),_0x4512f6['_bindAnnotationToEditors'](_0x26c76e,_0x5efb2e),_0x117283['add'](_0x5efb2e),_0x20e607['registerAnnotation'](_0x5efb2e);}['_destroyController'](_0x4e4ac6){const _0x2939fe=this['editor']['plugins']['get']('CommentsRepository'),_0x524d2c=this['editor']['plugins']['get']('Annotations'),_0x50a57a=this['_suggestionToController']['get'](_0x4e4ac6),_0x66b9ad=_0x50a57a['view'],_0x1a2b67=_0x524d2c['getByInnerView'](_0x66b9ad);_0x2939fe['_unbindEditors'](_0x66b9ad),_0x1a2b67&&_0x524d2c['remove'](_0x1a2b67),this['_suggestionToController']['delete'](_0x4e4ac6),this['_viewToController']['delete'](_0x66b9ad),_0x50a57a['destroy']();}['_updateController'](_0x466744){if(!_0x466744['isInContent']||!this['_suggestionToController']['has'](_0x466744))return;const _0x518971=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37940d=this['_suggestionToController']['get'](_0x466744),_0xf876eb=_0x466744['getAllAdjacentSuggestions']();_0x37940d['view']['descriptionParts']=_0x518971['descriptionFactory']['getDescriptions'](_0xf876eb);}['destroy'](){for(const _0x17f182 of this['_suggestionToController']['keys']())this['_destroyController'](_0x17f182);for(const _0x50d7d5 of this['_annotationViews']['values']())_0x50d7d5['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x46681f){return'model'in _0x46681f;}class k extends _0x5a9880{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3e6376){this['editor']['plugins']['get'](p)['adapter']=_0x3e6376;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4c3d72){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4c3d72);}['getSuggestions']({skipNotAttached:_0x16e0e2=!0x1,toJSON:_0x29a15c=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x16e0e2,'toJSON':_0x29a15c});}['getSuggestion'](_0x12372e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x12372e);}}const w=['Pagination'];class T extends _0x5a9880{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x53bf27=this['editor'];if(_0x53bf27['config']['define']('trackChangesData.editorCreator',_0x4b0e7c=>{const _0x1b5889=_0x53bf27['model']['document']['getRootNames']()['reduce']((_0x1aa668,_0x1a835c)=>(_0x1aa668[_0x1a835c]='',_0x1aa668),{});return _0x53bf27['constructor']['create'](_0x1b5889,_0x4b0e7c);}),'function'!=typeof _0x53bf27['config']['get']('trackChangesData')['editorCreator'])throw new _0x3fb279('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x223c71){return N(this['editor'],!0x0,_0x223c71);}['getDataWithDiscardedSuggestions'](_0x5506d9){return N(this['editor'],!0x1,_0x5506d9);}}class D extends _0x5a9880{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x8da89){function _0x1420c7(_0x2a3cfc){return _0x2a3cfc['map'](_0x1d8d08=>String['fromCharCode'](_0x1d8d08))['join']('');}super(_0x8da89),this['result']='end',_0x8da89[_0x1420c7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1420c7([0x76,0x69,0x65,0x77])][_0x1420c7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1420c7([0x61,0x75,0x74,0x6f]),_0x8da89[_0x1420c7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1420c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1420c7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1420c7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1420c7([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x1e2571){return void 0x0!==_0x1e2571['getRootsAttributes'];}async function N(_0x37accf,_0xc6771c,_0x33a44f){const _0xea7d3c=_0xec2c21(_0x37accf,w);_0xea7d3c['plugins']['push'](p,D),_0xea7d3c['rootsAttributes']=Fe(_0x37accf)?_0x37accf['getRootsAttributes']():void 0x0;const _0xab6c4d=document['createDocumentFragment'](),_0x38b5e5=_0x37accf['config']['get']('trackChangesData')['editorCreator'],_0x208545=await _0x38b5e5(_0xea7d3c,()=>function(_0x5cfaa2){const _0xf4ec54=document['createElement']('div');return _0x5cfaa2['appendChild'](_0xf4ec54),_0xf4ec54;}(_0xab6c4d));!function(_0x466508,_0x26be87){const _0x8f315f=_0x466508['model']['document']['getRootNames']()['reduce']((_0x5343f8,_0x135aee)=>(_0x5343f8[_0x135aee]=_0x466508['data']['get']({'rootName':_0x135aee}),_0x5343f8),{}),_0x264364=_0x466508['plugins']['get']('Users')['users']['map'](_0x23c744=>({'id':_0x23c744['id'],'name':_0x23c744['name']})),_0x2d33b7=_0x466508['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x373077=_0x466508['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x41b569=_0x26be87['plugins']['get']('Users'),_0x32f99a=_0x26be87['plugins']['get']('TrackChangesEditing'),_0x47035a=_0x26be87['plugins']['get']('CommentsRepository');for(const _0x264c8f of _0x47035a['getCommentThreads']())_0x264c8f['remove']();for(const _0x2acc20 of _0x264364)_0x41b569['getUser'](_0x2acc20['id'])||_0x41b569['addUser'](_0x2acc20);_0x41b569['me']||_0x41b569['useAnonymousUser']();for(const _0x4327a2 of _0x373077)_0x47035a['addCommentThread'](_0x4327a2);for(const _0x5b7286 of _0x2d33b7)_0x32f99a['addSuggestionData'](_0x5b7286);_0x26be87['data']['set'](_0x8f315f);}(_0x37accf,_0x208545),_0x208545['execute'](_0xc6771c?'acceptAllSuggestions':'discardAllSuggestions');const _0x4a6136=Fe(_0x208545)?_0x208545['getFullData'](_0x33a44f):_0x208545['data']['get'](_0x33a44f);return await _0x208545['destroy'](),_0x4a6136;}class Me extends _0x5ad8ec{['options'];constructor(_0x39c3a4,_0x577254){super(_0x39c3a4),this['options']=_0x577254,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'](_0x14a334,_0x25e997){if(!this['element'])return;const _0x169abf=[];for(const [_0x24aefc,_0x704246]of _0x14a334){const _0x2e342c=document['createElement']('div');_0x2e342c['setAttribute']('data-ck-root-name',_0x24aefc),_0x2e342c['className']=_0x704246['classes']+'\x20ck-track-changes-preview__root-container',_0x2e342c['innerHTML']=_0x704246['content'],_0x169abf['push'](_0x2e342c);}_0x25e997(this['element'],_0x169abf),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0xfd3f3c{constructor(_0x58010e){super(_0x58010e),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x48e8e3=this['editor'],_0x731ae8=_0x48e8e3['locale'],_0x32549f=_0x48e8e3['plugins']['get']('Dialog');let _0x2ef2dc;const _0xf5a93c=function(_0x41c8b1){const _0x4ab28b={};if('editables'in _0x41c8b1['ui']['view']){for(const [_0x232b32,_0x5bf9d2]of Object['entries'](_0x41c8b1['ui']['view']['editables']))_0x4ab28b[_0x232b32]=_0x5bf9d2['element'];}else _0x4ab28b[_0x41c8b1['model']['document']['getRootNames']()[0x0]]=_0x41c8b1['ui']['view']['editable']['element'];return _0x4ab28b;}(_0x48e8e3),_0x15a9af=function(_0x30c1f2){let _0x5c16e1=0x0;for(const _0x949479 of Object['values'](_0x30c1f2))_0x5c16e1=Math['max'](_0x5c16e1,_0x949479['getBoundingClientRect']()['width']);let _0x3a2d85=0x0;for(const _0x37ee60 of Object['values'](_0x30c1f2))_0x3a2d85+=_0x37ee60['getBoundingClientRect']()['height'];const _0xdc2baf=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2fa8d5=Math['min'](_0x3a2d85,_0xdc2baf);return{'width':_0x5c16e1,'height':_0x2fa8d5};}(_0xf5a93c);_0x32549f['show']({'id':'finalContentPreview','title':c(_0x731ae8,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x731ae8,{'dialogRects':_0x15a9af}),'onHide':()=>{_0x2ef2dc['detachFromDom']();},'onShow':()=>{_0x48e8e3['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x5b0059=>{const _0x453911=this['_standarizeRootsData'](_0x5b0059,_0x48e8e3,_0xf5a93c);_0x32549f['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x453911,_0x48e8e3['config']['get']('trackChanges.preview.renderFunction'));}),_0x2ef2dc=new _0x44d2b1(_0x731ae8,[_0x32549f['view']]),_0x2ef2dc['attachToDom'](),_0x2ef2dc['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x48e8e3['once']('destroy',()=>{_0x2ef2dc['detachFromDom']();});const _0x232d8a=_0x32549f['view']['headerView']['class'];_0x32549f['view']['headerView']['class']=_0x232d8a?_0x232d8a+'\x20ck-reset_all':'ck-reset_all',_0x32549f['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x32549f['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4e4c19=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4d2407=_0x4e4c19['previewMode'],_0x25cfca={};if('$labels'===_0x4d2407){for(const _0x1b3911 of _0x4e4c19['getMergeFieldsIds']())_0x25cfca[_0x1b3911]=_0x4e4c19['getLabel'](_0x1b3911)||_0x1b3911;}else{const _0x30d1ca='$defaultValues'===_0x4d2407?_0x4e4c19['getDefaultValues']():_0x4e4c19['getDataSetValues'](_0x4d2407,!0x0);for(const _0x22090a of Object['entries'](_0x30d1ca)){const [_0x2788f7,_0xccc86f]=_0x22090a;_0x25cfca[_0x2788f7]=null!==_0xccc86f?_0xccc86f:_0x4e4c19['getLabel'](_0x2788f7)||_0x2788f7;}}return{'mergeFieldsData':_0x25cfca};}['_standarizeRootsData'](_0x2ae291,_0xe3d47a,_0x49e0bb){let _0x2fdfcd;if('string'==typeof _0x2ae291){const _0x54dff5=_0xe3d47a['model']['document']['getRootNames']()[0x0];_0x2fdfcd={[_0x54dff5]:_0x2ae291};}else _0x2fdfcd=_0x2ae291;const _0x4a50fa=this['_fixMediaEmbeds'](_0x2fdfcd,_0xe3d47a),_0x4609d2=function(_0x2a263e,_0x46d963){for(const [_0x964767,_0x47c5cf]of _0x2a263e)_0x47c5cf['classes']=_0x46d963[_0x964767]['classList']['value']['replace']('ck-focused','');return _0x2a263e;}(this['_sortRoots'](_0xe3d47a)['reduce']((_0x101466,_0x11d0de)=>(_0x101466['push']([_0x11d0de,{'content':_0x4a50fa[_0x11d0de],'classes':''}]),_0x101466),[]),_0x49e0bb);return _0x4609d2;}['_fixMediaEmbeds'](_0x2b9f9b,_0x112d19){if(!_0x112d19['plugins']['has']('MediaEmbedEditing'))return _0x2b9f9b;const _0x366a4d=_0x112d19['plugins']['get']('MediaEmbedEditing');for(const [_0x5c6ce8,_0x3b0609]of Object['entries'](_0x2b9f9b)){const _0x2e04ec=document['createElement']('div');_0x2e04ec['innerHTML']=_0x3b0609,(_0x2e04ec['querySelectorAll']('figure.media')['forEach'](_0xb0dbce=>{const _0x621ee7=_0xb0dbce['querySelector']('oembed');if(_0x621ee7){const _0x5d0001=_0x621ee7['getAttribute']('url');if(_0x5d0001){const _0x2eafe1=_0x366a4d['registry']['getMediaViewElement'](new _0x112d0a(_0x112d19['editing']['view']['document']),_0x5d0001,{'elementName':'','renderForEditingView':!0x0}),_0x193283=document['createElement']('div');_0x193283['classList']['add']('ck-media__wrapper'),_0x2eafe1['render'](_0x193283,_0x112d19['editing']['view']['domConverter']),_0x621ee7['replaceWith'](_0x193283);}}}),_0x2b9f9b[_0x5c6ce8]=_0x2e04ec['innerHTML']);}return _0x2b9f9b;}['_sortRoots'](_0x118606){if(!function(_0x104175){return void 0x0!==_0x104175['getRootsAttributes'];}(_0x118606))return _0x118606['model']['document']['getRootNames']();const _0x2f8361=[],_0x49b0d4=new Map();for(const _0x3369e7 of _0x118606['model']['document']['getRootNames']()){const _0x20be2b=_0x118606['editing']['view']['getDomRoot'](_0x3369e7)['getClientRects']()['item'](0x0);_0x2f8361['push'](_0x3369e7),_0x49b0d4['set'](_0x3369e7,_0x20be2b);}return _0x2f8361['sort']((_0x4840aa,_0x236f05)=>{const _0x236167=_0x49b0d4['get'](_0x4840aa),_0xe84ee3=_0x49b0d4['get'](_0x236f05);return _0x236167['y']-_0xe84ee3['y']||_0x236167['x']-_0xe84ee3['x'];}),_0x2f8361;}}class te extends _0x5a9880{static get['requires'](){return[T,_0x35a552];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d3c34){super(_0x1d3c34),_0x1d3c34['commands']['add']('previewFinalContent',new re(this['editor'])),_0x1d3c34['config']['define']('trackChanges.preview.renderFunction',(_0x39d173,_0x20406d)=>{for(const _0x373fd0 of _0x20406d)_0x39d173['appendChild'](_0x373fd0);});}}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 _0xc75cc7,Plugin as _0x32ae11,PendingActions as _0x3043e2}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x20d2d0,ObservableMixin as _0x26a4b6,uid as _0x1b6899,priorities as _0x44647c,insertToPriorityArray as _0xc9a975,logWarning as _0x48babe,getEnvKeystrokeText as _0x25bbef,FocusTracker as _0x5bf86a,KeystrokeHandler as _0x410361,Collection as _0x39d645}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0xa30e5d,IconCancel as _0x5f50fb,IconTrackChanges as _0x3f82ae}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x3b4ca4,View as _0x4557e4,ViewCollection as _0x5b0d43,FocusCycler as _0xeedd1e,ViewModel as _0x459d5c,createDropdown as _0x5c60a8,SplitButtonView as _0x279193,addListToDropdown as _0x3916fd,MenuBarMenuView as _0x2c6665,MenuBarMenuListView as _0x5d645a,ListSeparatorView as _0xfc7a50,MenuBarMenuListItemView as _0x3a2351,MenuBarMenuListItemButtonView as _0x45c64b,BodyCollection as _0x23dbfe,Dialog as _0x434bf9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1140a0,hashObject as _0x2246de,surroundingMarkersDetector as _0x27355f,FOCUS_ANNOTATION_KEYSTROKE as _0x5e2705,AriaDescriptionView as _0x230b3c,setupThreadKeyboardNavigation as _0xe77174,trimHtml as ti,UserView as _0x3def6c,LateFocusButtonView as _0x2890f9,getDateTimeFormatter as _0x40c99f,getAllMarkersDomElementsSorted as _0x1fe4aa,sanitizeEditorConfig as _0x5d9ba8}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5e7052,LiveRange as _0x54bc73,LivePosition as _0x3a8e88,DowncastWriter as _0x41f0f1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x36f102,toWidget as _0x14a02e}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3ee16e,set as _0x2c1bc2,isEqual as _0x1c217d,unset as _0x3bf44c,omit as Vt}from'es-toolkit/compat';import{Delete as _0x19a3a7,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1b4ceb,ShiftEnter as _0x5ecba6}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0xc75cc7{['_enabledCommands'];constructor(_0x4fd03c,_0x1512ee){super(_0x4fd03c),this['_enabledCommands']=_0x1512ee,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 _0x5c1256 of this['editor']['commands']['commands']())_0x5c1256['affectsData']&&!this['_enabledCommands']['has'](_0x5c1256)&&_0x5c1256['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x59c78e of this['editor']['commands']['commands']())_0x59c78e['affectsData']&&!this['_enabledCommands']['has'](_0x59c78e)&&_0x59c78e['clearForceDisabled']('TrackChangesCommand');}}class O extends _0xc75cc7{['_suggestions'];constructor(_0x1b746f,_0x3b892f){super(_0x1b746f),this['_suggestions']=_0x3b892f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x385504){const _0x411948=this['_suggestions']['get'](_0x385504);if(!_0x411948)throw new _0x20d2d0('track-changes-accept-suggestion-not-found',this);const _0x13e989=_0x411948['getRanges']();this['editor']['model']['canEditAt'](_0x13e989)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x411948);}}class R extends _0xc75cc7{['_suggestions'];constructor(_0x2ca9e3,_0x1a872b){super(_0x2ca9e3),this['_suggestions']=_0x1a872b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2cddb1){const _0x42595d=this['_suggestions']['get'](_0x2cddb1);if(!_0x42595d)throw new _0x20d2d0('track-changes-discard-suggestion-not-found',this);const _0x58799a=_0x42595d['getRanges']();this['editor']['model']['canEditAt'](_0x58799a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x42595d);}}function ls(_0x13a1ab,_0x1a11bc){let _0x327f11='';return _0x327f11+=_0x13a1ab['split']('*')['map']((_0x2d9f8d,_0x1a465c)=>_0x1a465c%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x2d9f8d)+'</span>':nn(_0x2d9f8d))['join'](''),_0x1a11bc&&(_0x327f11+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1a11bc['value']+'\x22\x20title=\x22'+_0x1a11bc['title']+'\x22></span>'),_0x327f11;}function nn(_0x1dc109){const _0x3a9027=document['createElement']('span');return _0x3a9027['innerText']=_0x1dc109,_0x3a9027['innerHTML'];}function ts(_0xfb3969){return _0xfb3969['sort']((_0xad6371,_0x52312b)=>'deletion'==_0xad6371['type']&&'deletion'!=_0x52312b['type']?-0x1:'deletion'!=_0xad6371['type']&&'deletion'==_0x52312b['type']?0x1:0x0);}function Zt(_0x397ed0,_0x39b352){let _0x5e9379,_0x3fa3bd=0x0;const _0x1f6da2=[],_0x4d2802=_0x39b352['schema'];for(;_0x3fa3bd<_0x397ed0['length'];){const _0x336fe4=_0x397ed0[_0x3fa3bd],_0x55cda8=_0x397ed0[_0x3fa3bd+0x1];_0x5e9379||(_0x5e9379=_0x39b352['createPositionBefore'](_0x336fe4)),on(_0x39b352,_0x336fe4,_0x55cda8)||(_0x1f6da2['push'](_0x39b352['createRange'](_0x5e9379,_0x4d2802['isObject'](_0x336fe4)?_0x39b352['createPositionAfter'](_0x336fe4):_0x39b352['createPositionAt'](_0x336fe4,'end'))),_0x5e9379=null),_0x3fa3bd++;}return _0x1f6da2;}function on(_0x2496ba,_0x546dc2,_0x3c3f42){if(!_0x3c3f42)return!0x1;const _0x1ea295=_0x2496ba['createPositionAfter'](_0x546dc2),_0x13296d=_0x2496ba['createPositionBefore'](_0x3c3f42);return _0x1ea295['isTouching'](_0x13296d);}function rs(_0x4c7538,_0x1a4f52,_0x1fce4a){for(;_0x1fce4a['length'];){const _0x3c26b2=_0x1fce4a['splice'](0x0,0x64);_0x4c7538['change'](()=>{for(const _0x341c8e of _0x3c26b2)_0x341c8e['isInContent']&&_0x1a4f52['execute'](_0x341c8e['id']);});}}class x extends _0xc75cc7{['_command'];['_suggestions'];constructor(_0x242be2,_0x956fc7,_0x5c90a9){super(_0x242be2),this['_command']=_0x956fc7,this['_suggestions']=_0x5c90a9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x465920=Array['from'](this['_suggestions']['values']())['some'](_0x198c15=>_0x198c15['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x465920;}['execute'](){const _0x44e1cb=ts(Array['from'](this['_suggestions']['values']()));for(const _0x4a9b59 of _0x44e1cb){const _0x36a4bf=_0x4a9b59['getRanges']();if(!this['editor']['model']['canEditAt'](_0x36a4bf))return;}rs(this['editor']['model'],this['_command'],_0x44e1cb);}}class E extends _0xc75cc7{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x275661,_0x2a16a4,_0x16775d){super(_0x275661),this['_command']=_0x2a16a4,this['_suggestions']=_0x16775d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3b5cca=this['editor']['model']['document']['selection'],_0x3eeb6a=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x191f53,_0x5ac73a){const _0x543a7d=Array['from'](_0x191f53['getRanges']()),_0x20d172=new Set();for(const _0x86f0cf of _0x5ac73a)if(_0x86f0cf['isInContent']){for(const _0x5db970 of _0x543a7d)for(const _0x42d578 of _0x86f0cf['getRanges']())(_0x5db970['isIntersecting'](_0x42d578)||_0x191f53['isCollapsed']&&!_0x86f0cf['isMultiRange']&&_0x86f0cf['next']&&_0x42d578['end']['isTouching'](_0x5db970['start']))&&_0x20d172['add'](_0x86f0cf);}return _0x20d172;}(_0x3b5cca,_0x3eeb6a),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3f283a=ts(Array['from'](this['_selectedSuggestions']));for(const _0x294662 of _0x3f283a){const _0x10c739=_0x294662['getRanges']();if(!this['editor']['model']['canEditAt'](_0x10c739))return;}rs(this['editor']['model'],this['_command'],_0x3f283a);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x26a4b6(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x17fb66,_0x5b82dc){super(),this['id']=_0x5b82dc['id'],this['type']=_0x5b82dc['type'],this['subType']=_0x5b82dc['subType']||null,this['author']=_0x5b82dc['author'],this['creator']=_0x5b82dc['creator']||_0x5b82dc['author'],this['isExternal']=Boolean(_0x5b82dc['attributes']&&_0x5b82dc['attributes']['@external']),this['data']=null,this['_model']=_0x17fb66,this['_onAccept']=_0x5b82dc['onAccept'],this['_onDiscard']=_0x5b82dc['onDiscard'],this['_onAttributesChange']=_0x5b82dc['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5b82dc['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 _0x1f2db3=this;for(;_0x1f2db3['previous'];)_0x1f2db3=_0x1f2db3['previous'];return _0x1f2db3;}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'](_0x2a1dab){this['_markerNames']['add'](_0x2a1dab);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x426f44=>this['_model']['markers']['get'](_0x426f44))['filter'](_0x27d9cf=>_0x27d9cf);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5c83c8=>{for(const _0x386ea9 of this['getMarkers']())_0x5c83c8['removeMarker'](_0x386ea9);}),this['_markerNames']['clear']();}['removeMarker'](_0x3746e8){this['_model']['change'](_0x4ece6d=>{_0x4ece6d['removeMarker'](_0x3746e8);}),this['_markerNames']['delete'](_0x3746e8);}['addRange'](_0x2f36dd){const _0x269fa2='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x269fa2),this['_model']['change'](_0x18d940=>{_0x18d940['addMarker'](_0x269fa2,{'range':_0x2f36dd,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5ee0b4){for(const _0x62f1eb of this['getRanges']())if(_0x62f1eb['isIntersecting'](_0x5ee0b4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x6c0588=>_0x6c0588['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x258047,_0x384833)=>[..._0x258047,..._0x384833['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2b9383=this['getRanges']();if(0x1!=_0x2b9383['length'])return null;const _0x3bddfb=_0x2b9383[0x0],_0x2eb7e1=_0x3bddfb['start']['nodeAfter'],_0x3f7292=_0x3bddfb['end']['nodeBefore'];return _0x2eb7e1 instanceof _0x5e7052?_0x2eb7e1!=_0x3f7292?null:_0x2eb7e1: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 _0x445faf=[];let _0x5cd80e=this['head'];for(;_0x5cd80e;)_0x445faf['push'](_0x5cd80e),_0x5cd80e=_0x5cd80e['next'];return _0x445faf;}['setAttribute'](_0x5a62ea,_0x4d0539){const _0x3abd1e=_0x3ee16e(this['attributes']);_0x2c1bc2(_0x3abd1e,_0x5a62ea,_0x4d0539),_0x1c217d(_0x3abd1e,this['attributes'])||(this['attributes']=_0x3abd1e,this['_onAttributesChange'](_0x3abd1e));}['removeAttribute'](_0x586062){const _0x1291df=_0x3ee16e(this['attributes']);_0x3bf44c(_0x1291df,_0x586062),_0x1c217d(_0x1291df,this['attributes'])||(this['attributes']=_0x1291df,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 _0x1b6899()['substr'](0x1,0x5);}}function c(_0x2d654d,_0x212e37,_0x29b1d3){const _0x2f6d0a=_0x2d654d['t'],t=_0x2d654d['t'];switch(_0x212e37){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',_0x29b1d3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x29b1d3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x29b1d3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x29b1d3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x29b1d3);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',_0x29b1d3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x29b1d3);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',_0x29b1d3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x29b1d3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x29b1d3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x29b1d3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x29b1d3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x29b1d3);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x29b1d3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x29b1d3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x29b1d3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x29b1d3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x29b1d3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x29b1d3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x29b1d3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x29b1d3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x29b1d3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x29b1d3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x29b1d3);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'},_0x29b1d3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x29b1d3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x29b1d3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x29b1d3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x29b1d3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x29b1d3);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'},_0x29b1d3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x29b1d3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x29b1d3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x29b1d3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x29b1d3);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'},_0x29b1d3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x29b1d3);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'},_0x29b1d3);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'},_0x29b1d3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x29b1d3);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'},_0x29b1d3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x29b1d3);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'},_0x29b1d3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x29b1d3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x29b1d3);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'},_0x29b1d3);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x29b1d3);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 _0x2f6d0a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x29b1d3);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2f6d0a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x29b1d3);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x29b1d3);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'},_0x29b1d3);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'},_0x29b1d3);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'},_0x29b1d3);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x212e37;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x567439,_0x158268){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x567439,this['_locale']=_0x158268;}['getDescriptions'](_0x4bc4c3){const _0x3d7689=[],_0x12f977=new Set(),_0x1b9d58=new Set();for(let _0x405b8e=0x0;_0x405b8e<_0x4bc4c3['length'];_0x405b8e++){const _0x3bbf9c=_0x4bc4c3[_0x405b8e];if(!_0x3bbf9c['isInContent'])continue;const _0x3b659b=this['_handleCustomCallbackDescription'](_0x3bbf9c);if(_0x3b659b){if(null!=_0x3bbf9c['subType']){if(_0x12f977['has'](_0x3bbf9c['subType']))continue;_0x12f977['add'](_0x3bbf9c['subType']);}_0x3d7689['push'](_0x3b659b);}else{if('attribute'!=_0x3bbf9c['type'])'insertion'!=_0x3bbf9c['type']&&'deletion'!=_0x3bbf9c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3d7689,_0x3bbf9c,_0x4bc4c3[_0x405b8e+0x1]);else{const _0x2bd690=_0x3bbf9c['data']['key'];if(_0x1b9d58['has'](_0x2bd690))continue;_0x1b9d58['add'](_0x3bbf9c['data']['key']),_0x2bd690==u?this['_handleRenameSuggestionDescription'](_0x3d7689,_0x3bbf9c):this['_handleAttributeSuggestionDescription'](_0x3d7689,_0x3bbf9c);}}}return this['_resolveDescriptionItems'](_0x3d7689);}['registerDescriptionCallback'](_0x1b6d64){this['_customCallbacks']['push'](_0x1b6d64);}['registerElementLabel'](_0x4766ea,_0x9b8513,_0x4a3d78=_0x44647c['normal']){'function'==typeof _0x4766ea?_0xc9a975(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4766ea,'label':_0x9b8513,'priority':_0x4a3d78}):this['_itemLabels']['set'](_0x4766ea,_0x9b8513);}['registerAttributeLabel'](_0x179fd3,_0x1d409c){this['_attributeLabels']['set'](_0x179fd3,_0x1d409c);}['getItemLabel'](_0x7ec024,_0x8c5b03=0x1){let _0x348e89;for(const _0x219f3a of this['_itemLabelsCallbacks'])if(_0x219f3a['matchingCallback'](_0x7ec024)){_0x348e89=_0x219f3a['label'];break;}return _0x348e89||(_0x348e89=this['_itemLabels']['get'](_0x7ec024['name'])),_0x348e89?_0x348e89(_0x8c5b03):0x1!==_0x8c5b03?_0x8c5b03+'\x20'+_0x7ec024['name']+'s':''+_0x7ec024['name'];}['_addDescriptionItems'](_0x5cc2b4,_0x338c4e){const _0x4afea3=_0x338c4e['getFirstRange']()['getWalker'](),_0x485943='insertion'==_0x338c4e['type']?'add':'remove';for(const _0x87ed6d of _0x4afea3){const _0x30ee52=_0x87ed6d['item'],_0xb571a2=_0x5cc2b4[_0x5cc2b4['length']-0x1];if(_0x30ee52['is']('$textProxy'))_0xb571a2&&_0xb571a2['type']['indexOf']('Container')>-0x1&&_0x5cc2b4['pop'](),_0xb571a2&&'text'==_0xb571a2['type']?_0xb571a2[_0x485943]+=_0x30ee52['data']:_0x5cc2b4['push']({'type':'text','add':'add'==_0x485943?_0x30ee52['data']:'','remove':'remove'==_0x485943?_0x30ee52['data']:''});else{if(this['_schema']['isObject'](_0x30ee52)){const _0x44f2aa=_0x30ee52;if(_0xb571a2&&_0xb571a2['type']['indexOf']('Container')>-0x1&&_0x5cc2b4['pop'](),'elementEnd'==_0x87ed6d['type'])continue;_0xb571a2&&_0xb571a2['type']==_0x485943+'Object'&&_0xb571a2['element']['name']==_0x44f2aa['name']?_0xb571a2['quantity']++:_0x5cc2b4['push']({'type':_0x485943+'Object','element':_0x44f2aa,'quantity':0x1}),_0x4afea3['skip'](_0x3ad371=>!('elementEnd'==_0x3ad371['type']&&_0x3ad371['item']==_0x30ee52));}else{if(this['_schema']['checkChild'](_0x30ee52,'$text')||_0x30ee52['is']('element','softBreak')){const _0x84f8a6=_0x30ee52;if('add'==_0x485943&&'elementStart'==_0x87ed6d['type']||'remove'==_0x485943&&'elementEnd'==_0x87ed6d['type'])continue;if(_0xb571a2&&-0x1==_0xb571a2['type']['indexOf']('Container')){'text'==_0xb571a2['type']&&(_0xb571a2[_0x485943]+='\x0a');continue;}let _0x3d4ce7;if(_0x3d4ce7='add'==_0x485943?_0x84f8a6['nextSibling']&&!this['_schema']['isObject'](_0x84f8a6['nextSibling'])?_0x84f8a6['nextSibling']:null:_0x84f8a6['previousSibling']&&!this['_schema']['isObject'](_0x84f8a6['previousSibling'])?_0x84f8a6['previousSibling']:null,_0x84f8a6['isEmpty']||_0x3d4ce7&&_0x3d4ce7['isEmpty']){const _0x22e926=_0x3d4ce7&&_0x3d4ce7['isEmpty']?_0x3d4ce7:_0x84f8a6;_0xb571a2&&_0xb571a2['type']==_0x485943+'EmptyContainer'&&_0xb571a2['element']['name']==_0x22e926['name']?_0xb571a2['quantity']++:_0x5cc2b4['push']({'type':_0x485943+'EmptyContainer','element':_0x22e926,'quantity':0x1});}else _0x5cc2b4['push']({'type':_0x485943+'Container','element':_0x84f8a6});}}}}}['_resolveDescriptionItems'](_0x415d6e){const _0x4a196a=this['_locale'],_0x10bef5=[],_0x123c4e=[],_0x5a7313=[];for(const _0x3cdb39 of _0x415d6e)switch(_0x3cdb39['type']){case'text':if(_0x3cdb39['add']=_0x3cdb39['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3cdb39['remove']=_0x3cdb39['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3cdb39['add']&&''!=_0x3cdb39['remove']){_0x10bef5['push']({'type':'replace','content':c(_0x4a196a,'REPLACE_TEXT',['\x22'+_0x3cdb39['remove']+'\x22','\x22'+_0x3cdb39['add']+'\x22'])});continue;}if(null!=_0x3cdb39['add']['match'](/^ +$/)){_0x10bef5['push']({'type':'insertion','content':c(_0x4a196a,'*Insert:*\x20%0',c(_0x4a196a,'ELEMENT_SPACE',_0x3cdb39['add']['length']))});continue;}if(null!=_0x3cdb39['remove']['match'](/^ +$/)){_0x10bef5['push']({'type':'deletion','content':c(_0x4a196a,'*Remove:*\x20%0',c(_0x4a196a,'ELEMENT_SPACE',_0x3cdb39['remove']['length']))});continue;}if(''!=_0x3cdb39['add']){_0x10bef5['push']({'type':'insertion','content':c(_0x4a196a,'*Insert:*\x20%0','\x22'+_0x3cdb39['add']+'\x22')});continue;}_0x10bef5['push']({'type':'deletion','content':c(_0x4a196a,'*Remove:*\x20%0','\x22'+_0x3cdb39['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x10bef5['push']({'type':'insertion','content':c(_0x4a196a,'*Insert:*\x20%0',this['getItemLabel'](_0x3cdb39['element'],_0x3cdb39['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x10bef5['push']({'type':'deletion','content':c(_0x4a196a,'*Remove:*\x20%0',this['getItemLabel'](_0x3cdb39['element'],_0x3cdb39['quantity']))});continue;case'addContainer':_0x10bef5['push']({'type':'insertion','content':c(_0x4a196a,'*Split:*\x20%0',this['getItemLabel'](_0x3cdb39['element'],_0x3cdb39['quantity']))});continue;case'removeContainer':_0x10bef5['push']({'type':'deletion','content':c(_0x4a196a,'*Merge:*\x20%0',this['getItemLabel'](_0x3cdb39['element'],_0x3cdb39['quantity']))});continue;case'addFormat':_0x123c4e['push'](_0x3cdb39['key']);continue;case'removeFormat':_0x5a7313['push'](_0x3cdb39['key']);continue;default:_0x10bef5['push'](_0x3cdb39);}if(_0x123c4e['length']){const _0x54ce78=_0x123c4e['map'](_0x76bf45=>this['_attributeLabels']['has'](_0x76bf45)?this['_attributeLabels']['get'](_0x76bf45):_0x76bf45)['join'](',\x20');_0x10bef5['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x54ce78)});}if(_0x5a7313['length']){const _0x42ac78=_0x5a7313['map'](_0x138f3d=>this['_attributeLabels']['has'](_0x138f3d)?this['_attributeLabels']['get'](_0x138f3d):_0x138f3d)['join'](',\x20');_0x10bef5['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x42ac78)});}return _0x10bef5;}['_handleCustomCallbackDescription'](_0x31798c){for(const _0x175220 of this['_customCallbacks']){const _0x423ed5=_0x175220(_0x31798c);if(_0x423ed5&&'type'in _0x423ed5)return _0x423ed5;}}['_handleAttributeSuggestionDescription'](_0xdf20,_0x3a826e){const _0xda1088=_0x3a826e['data'],_0x4e333e=void 0x0===_0xda1088['newValue']?'removeFormat':'addFormat';_0xdf20['push']({'type':_0x4e333e,'key':_0xda1088['key']});}['_handleRenameSuggestionDescription'](_0x29bbe8,_0x4b6542){_0x29bbe8['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4b6542['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4afb65,_0x3f8b77,_0x4b5217){if(this['_addDescriptionItems'](_0x4afb65,_0x3f8b77),_0x4b5217&&_0x4b5217['getFirstRange']()&&!_0x3f8b77['getFirstRange']()['end']['isEqual'](_0x4b5217['getFirstRange']()['start'])){const _0x2262f3=_0x4afb65[_0x4afb65['length']-0x1],_0x143ce4='insertion'==_0x3f8b77['type']?'add':'remove';_0x2262f3&&'text'==_0x2262f3['type']&&(_0x2262f3[_0x143ce4]+='\x0a');}}}class U extends _0x32ae11{['afterInit'](){const _0x1e1893=this['editor'],_0x8e4575=_0x1e1893['plugins']['get']('TrackChangesEditing');_0x1e1893['commands']['get']('showAIAssistant')&&_0x8e4575['enableCommand']('showAIAssistant');}}class V extends _0x32ae11{['afterInit'](){const _0x325826=this['editor'],_0x1b1265=_0x325826['locale'];if(!_0x325826['plugins']['has']('AlignmentEditing'))return;const _0x583dcc=_0x325826['plugins']['get']('TrackChangesEditing');_0x583dcc['enableDefaultAttributesIntegration']('alignment'),_0x583dcc['registerBlockAttribute']('alignment'),_0x583dcc['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x1b1265,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4af30d=this['editor'],_0x20835b=_0x4af30d['locale'];_0x4af30d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16bfd6=>{if('formatBlock'!=_0x16bfd6['type'])return;const {data:_0x5e2c0b}=_0x16bfd6;if(_0x5e2c0b&&'alignment'==_0x5e2c0b['commandName']){const _0x5d4f45=_0x5e2c0b['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x20835b,'*Format:*\x20%0',function(_0x2d0799){switch(_0x2d0799){case'left':return c(_0x20835b,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x20835b,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x20835b,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x20835b,'FORMAT_JUSTIFY_TEXT');}}(_0x5d4f45))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x32ae11{['afterInit'](){const _0x369f22=this['editor'],_0x31d9b4=_0x369f22['plugins']['get']('TrackChangesEditing'),_0xd51ed9=_0x369f22['locale'];for(const _0x4c3d1f of Yt){if(!_0x369f22['plugins']['has'](_0x4c3d1f))continue;const _0xcc8937=_0x4c3d1f['slice'](0x0,-0x7)['toLowerCase'](),_0x2cb944='FORMAT_'+_0xcc8937['toUpperCase']();_0x31d9b4['enableDefaultAttributesIntegration'](_0xcc8937),_0x31d9b4['registerInlineAttribute'](_0xcc8937),_0x31d9b4['descriptionFactory']['registerAttributeLabel'](_0xcc8937,c(_0xd51ed9,_0x2cb944));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x468fa0=this['editor'],_0x4eadae=_0x468fa0['locale'],_0x1a1b27=_0x468fa0['plugins']['get']('TrackChangesEditing');function _0x2b5844(_0x4f2de6,_0x3c3073){_0x1a1b27['descriptionFactory']['registerDescriptionCallback'](_0x5cfb13=>{if('formatInline'!=_0x5cfb13['type'])return;const {data:_0x24869f}=_0x5cfb13;return _0x24869f&&_0x24869f['commandName']===_0x4f2de6?_0x24869f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4eadae,'*Format:*\x20%0',_0x3c3073)}:{'type':'format','content':c(_0x4eadae,'*Remove\x20format:*\x20%0',_0x3c3073)}:void 0x0;});}_0x2b5844('bold',c(_0x4eadae,'FORMAT_BOLD')),_0x2b5844('italic',c(_0x4eadae,'FORMAT_ITALIC')),_0x2b5844('underline',c(_0x4eadae,'FORMAT_UNDERLINE')),_0x2b5844('code',c(_0x4eadae,'FORMAT_CODE')),_0x2b5844('strikethrough',c(_0x4eadae,'FORMAT_STRIKETHROUGH')),_0x2b5844('subscript',c(_0x4eadae,'FORMAT_SUBSCRIPT')),_0x2b5844('superscript',c(_0x4eadae,'FORMAT_SUPERSCRIPT'));}}class G extends _0x32ae11{['afterInit'](){const _0x54bf39=this['editor'],_0x3e80a6=_0x54bf39['locale'];if(!_0x54bf39['plugins']['has']('BlockQuoteEditing'))return;const _0x145571=_0x54bf39['plugins']['get']('TrackChangesEditing'),_0x2b7376=this['editor']['commands']['get']('blockQuote');_0x145571['enableCommand']('blockQuote',(_0x4d9423,_0x203299={})=>{const _0x31fcd0=this['editor']['model']['document']['selection'],_0x218944=_0x203299&&void 0x0!==_0x203299['forceValue']?_0x203299['forceValue']:!_0x2b7376['value'];let _0x255b8f=[];if(_0x218944){const _0x51bfa7=Array['from'](_0x31fcd0['getSelectedBlocks']())['filter'](_0x3bf8ed=>to(_0x3bf8ed)||function(_0x4eddd3,_0x4e28de){const _0x320800=_0x4e28de['checkChild'](_0x4eddd3['parent'],'blockQuote'),_0x28bbca=_0x4e28de['checkChild'](['$root','blockQuote'],_0x4eddd3);return _0x320800&&_0x28bbca;}(_0x3bf8ed,this['editor']['model']['schema']));_0x255b8f=Zt(_0x51bfa7,_0x54bf39['model']);}else{const _0x2d9b93=Array['from'](_0x31fcd0['getSelectedBlocks']())['filter'](_0x28d972=>to(_0x28d972));_0x255b8f=Zt(_0x2d9b93,_0x54bf39['model']);}_0x54bf39['model']['change'](()=>{for(const _0x14c5e3 of _0x255b8f)_0x145571['markBlockFormat'](_0x14c5e3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x218944}]});});}),_0x145571['descriptionFactory']['registerDescriptionCallback'](_0x2fd59f=>{const {data:_0x389170}=_0x2fd59f;if(_0x389170&&'blockQuote'==_0x389170['commandName']){const _0x506879=c(_0x3e80a6,'ELEMENT_BLOCK_QUOTE');return _0x389170['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3e80a6,'*Set\x20format:*\x20%0',_0x506879)}:{'type':'format','content':c(_0x3e80a6,'*Remove\x20format:*\x20%0',_0x506879)};}});}}function to(_0x13974e){return'blockQuote'==_0x13974e['parent']['name'];}class L extends _0x32ae11{['afterInit'](){const _0x35f5bb=this['editor'],_0xb62726=_0x35f5bb['locale'],_0x426391=_0x35f5bb['plugins']['get']('TrackChangesEditing');_0x35f5bb['plugins']['has']('BookmarkEditing')&&(_0x426391['enableCommand']('insertBookmark'),_0x426391['enableDefaultAttributesIntegration']('updateBookmark'),_0x426391['registerBlockAttribute']('bookmarkId'),_0x426391['descriptionFactory']['registerDescriptionCallback'](_0x1d8259=>{if('insertion'!=_0x1d8259['type']&&'deletion'!=_0x1d8259['type']&&'attribute'!=_0x1d8259['type'])return;const _0x50599f=_0x1d8259['getContainedElement']();if(null==_0x50599f)return;if(!_0x50599f['is']('element','bookmark'))return;const _0x597a78=_0x50599f['getAttribute']('bookmarkId');if('insertion'==_0x1d8259['type'])return{'type':'insertion','content':c(_0xb62726,'*Insert:*\x20%0','\x22'+_0x597a78+'\x22\x20'+c(_0xb62726,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1d8259['type'])return{'type':'deletion','content':c(_0xb62726,'*Remove:*\x20%0','\x22'+_0x597a78+'\x22\x20'+c(_0xb62726,'ELEMENT_BOOKMARK'))};const {data:_0x36e9d3}=_0x1d8259;if(!_0x36e9d3||'bookmarkId'!=_0x36e9d3['key'])return;return{'type':'format','content':c(_0xb62726,'*Set\x20bookmark:*\x20%0','\x22'+_0x36e9d3['newValue']+'\x22')};}));}}class J extends _0x32ae11{['afterInit'](){const _0x3f08c4=this['editor'];_0x3f08c4['plugins']['has']('CaseChange')&&(_0x3f08c4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3f08c4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3f08c4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x32ae11{['afterInit'](){const _0x39b943=this['editor'];_0x39b943['commands']['get']('ckbox')&&_0x39b943['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x32ae11{['afterInit'](){const _0x1f0067=this['editor'];if(!_0x1f0067['plugins']['has']('CodeBlock'))return;const _0x8b2bd6=_0x1f0067['plugins']['get']('TrackChangesEditing'),_0x2fe5f1=_0x1f0067['locale'],_0x26688e=_0x1f0067['config']['get']('codeBlock')['languages'],_0x151277=_0x1f0067['commands']['get']('codeBlock');_0x8b2bd6['enableCommand']('indentCodeBlock'),_0x8b2bd6['enableCommand']('outdentCodeBlock'),_0x8b2bd6['enableCommand']('codeBlock',(_0x31666f,_0x49f8f6={})=>{const _0x477a14=_0x1f0067['model'],_0x3182df=_0x1f0067['model']['document']['selection'],_0xaab6a6=_0x49f8f6&&void 0x0!==_0x49f8f6['forceValue']?_0x49f8f6['forceValue']:!_0x151277['value'];let _0x23c06f;_0x49f8f6['language']||(_0x49f8f6['language']=_0x26688e[0x0]['language']),_0x23c06f=_0xaab6a6?Array['from'](_0x3182df['getSelectedBlocks']())['filter'](_0x480f65=>oo(_0x480f65)||function(_0x13302b,_0x2dd7b3){if(_0x13302b['is']('rootElement')||_0x2dd7b3['isLimit'](_0x13302b))return!0x1;return _0x2dd7b3['checkChild'](_0x13302b['parent'],'codeBlock');}(_0x480f65,_0x477a14['schema'])):Array['from'](_0x3182df['getSelectedBlocks']())['filter'](_0x45864f=>oo(_0x45864f));const _0x1415bf=Zt(_0x23c06f,_0x477a14);_0x477a14['change'](()=>{for(const _0x42cd36 of _0x1415bf)_0x8b2bd6['markBlockFormat'](_0x42cd36,{'commandName':'codeBlock','commandParams':[{..._0x49f8f6,'forceValue':_0xaab6a6}],'formatGroupId':'blockName'});});}),(_0x8b2bd6['descriptionFactory']['registerElementLabel']('codeBlock',_0x3cb519=>c(_0x2fe5f1,'ELEMENT_CODE_BLOCK',_0x3cb519)),_0x8b2bd6['descriptionFactory']['registerDescriptionCallback'](_0x400474=>{if('formatBlock'!=_0x400474['type'])return;const _0x8fd06a=_0x2fe5f1['t'],{data:_0x29d9d8}=_0x400474;if(!_0x29d9d8||'codeBlock'!=_0x29d9d8['commandName'])return;const _0x399378=_0x29d9d8['commandParams'][0x0]['language'],_0x50aa03=_0x8fd06a(_0x26688e['find'](_0x113eaa=>_0x113eaa['language']===_0x399378)['label'])['toLowerCase']();return _0x29d9d8['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2fe5f1,'*Set\x20format:*\x20%0',c(_0x2fe5f1,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x50aa03+')')}:{'type':'format','content':c(_0x2fe5f1,'*Remove\x20format:*\x20%0',c(_0x2fe5f1,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x14887a){return'codeBlock'==_0x14887a['name'];}class q extends _0x32ae11{['afterInit'](){const _0x4f1a56=this['editor'];if(!_0x4f1a56['plugins']['has']('CommentsEditing'))return;_0x4f1a56['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x524489,_0x469308,_0x9c084){const _0xad16e0=[];for(const _0x498858 of _0x469308['getItems']())_0x498858['hasAttribute'](_0x524489)&&_0xad16e0['push'](_0x9c084['createRangeOn'](_0x498858));return _0xad16e0;}function De(_0x1d7cda,_0x50e5b9,{showActiveMarker:_0x374e88=!0x0}={}){const _0x496df8=_0x1d7cda['plugins']['get']('TrackChangesEditing');return(_0x3711bc,_0x445ee4,_0x113388)=>{if(!_0x113388['consumable']['test'](_0x445ee4['markerRange'],_0x3711bc['name']))return;const _0x274478=_0x445ee4['markerRange']['getWalker'](),_0xe00ce2=_0x445ee4['markerRange']['start'],_0x321061=_0x1d7cda['model']['schema'];let _0x2c8e7a=null,_0x584dfb=null,_0x11ff20=!0x1,_0x11f8ef=!0x1;for(const _0x548fd8 of _0x274478){const _0x295bc8=_0x548fd8['item'];_0x11ff20=_0x11ff20||_0x321061['isContent'](_0x295bc8);const _0x2ce7fa=_0x113388['mapper']['toViewElement'](_0x295bc8);if(_0x2ce7fa&&_0x2ce7fa['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x548fd8['type']&&(_0x321061['isBlock'](_0x295bc8)&&!_0x321061['isLimit'](_0x295bc8)&&(_0x295bc8['nextSibling']||_0xe00ce2['isAtEnd']?_0x2c8e7a&&_0x2c8e7a['parent']==_0x295bc8||(_0x2c8e7a=_0x295bc8,_0x150910(_0x548fd8['previousPosition']),_0x11f8ef=!0x0):_0x584dfb=_0x584dfb||_0x548fd8['previousPosition']));}function _0x150910(_0x420daf){const {authorId:_0x2350a2}=_0x496df8['_splitMarkerName'](_0x445ee4['markerName']),_0x88a558=_0x113388['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x50e5b9,'data-author-id':_0x2350a2}),_0x4c8f03=_0x113388['mapper']['toViewPosition'](_0x420daf);_0x374e88&&_0x496df8['activeMarkers']['includes'](_0x445ee4['markerName'])&&_0x113388['writer']['addClass']('ck-suggestion-marker--active',_0x88a558),_0x113388['writer']['insert'](_0x4c8f03,_0x88a558),_0x113388['mapper']['bindElementToMarker'](_0x88a558,_0x445ee4['markerName']);}_0x11ff20||_0x11f8ef||!_0x584dfb||_0x150910(_0x584dfb);};}class z extends _0x32ae11{static get['requires'](){return[_0x19a3a7];}['init'](){const _0x1e136b=this['editor'],_0x8f0474=_0x1e136b['plugins']['get']('TrackChangesEditing');_0x8f0474['enableCommand']('delete');const _0x25cc02=_0x1e136b['commands']['get']('deleteForward');_0x8f0474['enableCommand']('deleteForward',(_0x297345,_0x2b255f={})=>{const _0x47bd81=_0x1e136b['model']['createSelection'](_0x1e136b['model']['document']['selection']);_0x47bd81['isCollapsed']&&_0x1e136b['model']['modifySelection'](_0x47bd81,{'direction':'forward','unit':_0x2b255f['unit']});const _0x5619f6=_0x47bd81['getFirstRange'](),_0x3bf53e=_0x54bc73['fromRange'](_0x5619f6);let _0x1516b6;_0x297345(_0x2b255f),_0x1516b6='$graveyard'==_0x3bf53e['root']['rootName']?_0x1e136b['model']['createRange'](_0x5619f6['start']):_0x1e136b['model']['createRange'](_0x3bf53e['start'],_0x3bf53e['end']),_0x3bf53e['detach'](),_0x1e136b['model']['enqueueChange'](_0x25cc02['buffer']['batch'],_0x1bccd0=>{_0x25cc02['buffer']['lock'](),_0x1bccd0['setSelection'](_0x1bccd0['createRange'](_0x1516b6['end'])),_0x25cc02['buffer']['unlock']();});}),_0x1e136b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x1e136b,'merge'),{'priority':'high'}),_0x1e136b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2119ff,_0x163061,_0xbda3ca)=>{_0xbda3ca['options']['showSuggestionHighlights']&&De(_0x1e136b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2119ff,_0x163061,_0xbda3ca);},{'priority':'high'}),_0x1e136b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x209318,_0x5db102,_0x33b318)=>{const _0x4c10b6=_0x33b318['mapper']['markerNameToElements'](_0x5db102['markerName']);if(_0x4c10b6){for(const _0x33b7e2 of _0x4c10b6)_0x33b7e2['is']('uiElement')&&(_0x33b318['mapper']['unbindElementFromMarkerName'](_0x33b7e2,_0x5db102['markerName']),_0x33b318['writer']['remove'](_0x33b7e2));}},{'priority':'high'});}}class W extends _0x32ae11{['afterInit'](){const _0x40903e=this['editor'];if(!_0x40903e['plugins']['has']('ListEditing'))return;const _0x238109=_0x40903e['locale'],_0x3d574b=_0x40903e['plugins']['get']('TrackChangesEditing'),_0xdf7235=_0x40903e['plugins']['has']('TodoListEditing'),_0x347f83=!!_0x40903e['config']['get']('list.multiBlock');function _0x3b65fc(_0x51c4b8){return{'type':'format','content':''+c(_0x238109,'*Set\x20format:*\x20%0',_0x51c4b8)};}function _0x3b5efd(_0x5c6762){return{'type':'format','content':''+c(_0x238109,'*Remove\x20format:*\x20%0',_0x5c6762)};}_0x3d574b['enableDefaultAttributesIntegration']('numberedList'),_0x3d574b['enableDefaultAttributesIntegration']('bulletedList'),_0x3d574b['enableDefaultAttributesIntegration']('customNumberedList'),_0x3d574b['enableDefaultAttributesIntegration']('customBulletedList'),_0x3d574b['enableDefaultAttributesIntegration']('indentList'),_0x3d574b['enableDefaultAttributesIntegration']('outdentList'),_0x3d574b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3d574b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3d574b['registerBlockAttribute']('listItemId'),_0x3d574b['registerBlockAttribute']('listType'),_0x3d574b['registerBlockAttribute']('listIndent'),_0x347f83&&(_0x3d574b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3d574b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xdf7235&&(_0x3d574b['enableDefaultAttributesIntegration']('todoList'),_0x3d574b['enableDefaultAttributesIntegration']('checkTodoList'),_0x3d574b['registerBlockAttribute']('todoListChecked'),_0x3d574b['descriptionFactory']['registerDescriptionCallback'](_0x260363=>{const {data:_0x4bf54c}=_0x260363;if(_0x4bf54c&&'todoListChecked'==_0x4bf54c['key'])return{'type':'format','content':_0x4bf54c['newValue']?c(_0x238109,'*Check\x20item*'):c(_0x238109,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x58edc7=>{if(_0x58edc7['batch']['isUndo'])return!0x1;let _0x3b45ad=!0x1;const _0x41c172=_0x3d574b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe213fa=>'todoListChecked'===_0x3d574b['_getAttributeKey'](_0xe213fa));for(const _0x1d77cf of _0x41c172){'todo'!=_0x1d77cf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3d574b['_findSuggestions'](_0x1d77cf['getFirstRange'](),'attribute')['find'](_0xa49102=>'listType'===_0x3d574b['_getAttributeKey'](_0xa49102['suggestion']))||(_0x58edc7['removeMarker'](_0x1d77cf['getFirstMarker']()),_0x3b45ad=!0x0));}return _0x3b45ad;})),_0x3d574b['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x238109,'FORMAT_INDENT'));const _0x3ff8b1={'type':'format','content':''};_0x3d574b['descriptionFactory']['registerDescriptionCallback'](_0x5e595c=>{const {data:_0x4adefa}=_0x5e595c;if(!_0x4adefa||'listType'!=_0x4adefa['key'])return;let _0x5cf5ea=_0x5e595c['head'];for(;_0x5cf5ea;){if(_0x5cf5ea['data']&&(('listStyle'==_0x5cf5ea['data']['key']||'listMarkerStyle'==_0x5cf5ea['data']['key'])&&(_0x5cf5ea['data']['newValue']&&'default'!=_0x5cf5ea['data']['newValue']||'default'!=_0x5cf5ea['data']['oldValue']&&!_0x4adefa['newValue'])||!_0x347f83&&_0x5cf5ea['data']['key']==u))return _0x3ff8b1;_0x5cf5ea=_0x5cf5ea['next'];}if(null==_0x4adefa['newValue'])switch(_0x4adefa['oldValue']){case'bulleted':return _0x3b5efd(c(_0x238109,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3b5efd(c(_0x238109,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3b5efd(c(_0x238109,'ELEMENT_TODO_LIST'));}switch(_0x4adefa['newValue']){case'bulleted':return _0x3b65fc(c(_0x238109,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3b65fc(c(_0x238109,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3b65fc(c(_0x238109,'ELEMENT_TODO_LIST'));}}),_0x3d574b['descriptionFactory']['registerDescriptionCallback'](_0x55828c=>{const {data:_0x486b6f}=_0x55828c;if(_0x486b6f&&'listIndent'==_0x486b6f['key'])return null==_0x486b6f['newValue']||null==_0x486b6f['oldValue']&&0x0==_0x486b6f['newValue']?_0x3ff8b1:void 0x0;}),_0x3d574b['descriptionFactory']['registerDescriptionCallback'](_0x21d860=>{if('attribute'!=_0x21d860['type'])return;const {data:_0x4e18d8}=_0x21d860;if(!_0x4e18d8||'listItemId'!=_0x4e18d8['key'])return;const _0x1ab6e4=Te(_0x21d860);return'newValue'==_0x1ab6e4?{'type':'format','content':c(_0x238109,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1ab6e4?{'type':'format','content':c(_0x238109,'*Split:*\x20list\x20item')}:_0x3ff8b1;}),_0x40903e['model']['document']['registerPostFixer'](_0x50c2a0=>this['listItemIdFixer'](_0x50c2a0)),_0x40903e['model']['document']['registerPostFixer'](_0x241e85=>this['noTrackChangesFixer'](_0x241e85)),_0x40903e['model']['document']['on']('change:data',(_0x4170ee,_0x33f748)=>{if(_0x33f748['isUndo']||!_0x33f748['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x56a482){if(_0x56a482['batch']['isUndo']||!_0x56a482['batch']['isLocal'])return!0x1;let _0x10ef1a=!0x1;const _0x31197d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e3044=>_0x3e3044['data']&&'listItemId'==_0x3e3044['data']['key'])['filter'](_0x4978b5=>_0x4978b5['data']['newValue']&&_0x4978b5['data']['oldValue']);for(const _0x138df1 of _0x31197d)Te(_0x138df1)||(_0x56a482['removeMarker'](_0x138df1['getFirstMarker']()),_0x10ef1a=!0x0);return _0x10ef1a;}['noTrackChangesFixer'](_0x5938fa){if(_0x5938fa['batch']['isUndo']||!_0x5938fa['batch']['isLocal'])return!0x1;const _0x350b94=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x350b94['trackChangesCommand']['value'])return!0x1;let _0x4c436a=!0x1;const _0x10a687=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x97747c=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x584fa4=>'attribute'==_0x584fa4['type'])['filter'](_0x3b455a=>_0x10a687['includes'](_0x3b455a['attributeKey']));if(0x0==_0x97747c['length'])return _0x4c436a;for(const _0x22f52f of _0x97747c){const _0x32a5a1=_0x350b94['_findSuggestions'](_0x22f52f['range'],'attribute')['filter'](_0xd89ad0=>!_0xd89ad0['meta']['isNextTo'])['map'](_0x46274a=>_0x46274a['suggestion'])['filter'](_0x16a4d9=>{const _0x121140=_0x350b94['_getAttributeKey'](_0x16a4d9);return _0x10a687['includes'](_0x121140);});if(_0x32a5a1['length']){for(const _0x223d2a of _0x32a5a1)_0x5938fa['removeMarker'](_0x223d2a['getFirstMarker']());_0x4c436a=!0x0;}}return _0x4c436a;}['assureChains'](){const _0x2b999a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5dd41a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x59704a;const _0x2259f2=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x434850=>{if(_0x434850['data']['oldRange']||!_0x434850['data']['newRange'])return null;if(!_0x434850['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2ee248}=_0x2b999a['_splitMarkerName'](_0x434850['name']);if(!_0x2b999a['hasSuggestion'](_0x2ee248))return null;const _0x4251cd=_0x2b999a['getSuggestion'](_0x2ee248);return _0x5dd41a['includes'](_0x4251cd['data']['key']);})['map'](_0x517b99=>{const {id:_0x36aabd}=_0x2b999a['_splitMarkerName'](_0x517b99['name']),_0x5526c1=_0x2b999a['getSuggestion'](_0x36aabd);return _0x59704a=_0x5526c1['attributes']['groupId'],_0x5526c1['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2259f2['size'])return;const _0x5e76ec=_0x2b999a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc2ca71=>'attribute'==_0xc2ca71['type']&&_0xc2ca71['data']&&_0x5dd41a['includes'](_0xc2ca71['data']['key'])&&_0xc2ca71['attributes']['groupId']!=_0x59704a)['map'](_0x27b2fb=>({'listItem':_0x27b2fb['getFirstRange']()['start']['nodeAfter'],'groupId':_0x27b2fb['attributes']['groupId']})),_0x20c423=new Set();for(const {groupId:_0x4a4153,listItem:_0xba1fde}of _0x5e76ec)_0x2259f2['has'](_0xba1fde)&&_0x20c423['add'](_0x4a4153);for(const _0x41a9f8 of _0x2b999a['getSuggestions']())_0x20c423['has'](_0x41a9f8['attributes']['groupId'])&&_0x41a9f8['setAttribute']('groupId',_0x59704a);}['_supportLegacySuggestions'](){const _0x23b0d9=this['editor'],_0x14d953=_0x23b0d9['locale'],_0x1b5db5=_0x23b0d9['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1b5db5['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1aa6b8,_0x39951d){const _0x3f3118=[];for(let _0xc58029 of _0x1aa6b8)_0xc58029['start']['nodeAfter']===_0xc58029['end']['parent']&&(_0xc58029=_0x23b0d9['model']['createRange'](_0x23b0d9['model']['createPositionAt'](_0xc58029['start']['nodeAfter'],0x0))),_0x3f3118['push'](_0xc58029);_0x23b0d9['model']['change'](_0x48e06d=>{const _0x87c478=_0x23b0d9['model']['document']['selection'],_0xc70c75=Array['from'](_0x87c478['getRanges']())['map'](_0x5e6704=>_0x54bc73['fromRange'](_0x5e6704));_0x48e06d['setSelection'](_0x3f3118),_0x23b0d9['commands']['get'](_0x39951d['commandName'])['refresh'](),_0x39951d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x23b0d9['execute'](_0x39951d['commandName'],..._0x39951d['commandParams']),_0x48e06d['setSelection'](_0xc70c75);for(const _0x3b1c83 of _0xc70c75)_0x3b1c83['detach']();});}),_0x1b5db5['descriptionFactory']['registerElementLabel'](function(_0x58b0c9){const _0x24689e=!_0x23b0d9['model']['schema']['isObject'](_0x58b0c9),_0x155828=_0x58b0c9['previousSibling'],_0x25ad26=_0x58b0c9['nextSibling'],_0x3ff515=_0x58b0c9['getAttribute']('listItemId'),_0x58b0d6=!_0x155828||_0x155828['getAttribute']('listItemId')!==_0x3ff515,_0x5b9bd7=!_0x25ad26||_0x25ad26['getAttribute']('listItemId')!==_0x3ff515;return _0x24689e&&Boolean(_0x3ff515)&&_0x58b0d6&&_0x5b9bd7;},_0x1233e7=>c(_0x14d953,'ELEMENT_LIST_ITEM',_0x1233e7));}['_registerLegacyDescription'](){const _0x262263=this['editor'],_0x506f47=_0x262263['locale'];function _0x1dcf32(_0x4063e3){const _0x57e980=_0x262263['commands']['get']('bulletedList')['value'],_0x1560f3=_0x262263['commands']['get']('numberedList')['value'];return'numberedList'===_0x4063e3?_0x57e980:_0x1560f3;}_0x262263['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4bf3e1){if('formatBlock'!=_0x4bf3e1['type'])return;const {data:_0x4aceb1}=_0x4bf3e1;if(!_0x4aceb1)return;let _0x48c75d,_0x554509,_0x4e8be0,_0x3f48e1;switch(_0x4aceb1['commandName']){case'bulletedList':_0x4e8be0=_0x4aceb1['commandParams'][0x0]['forceValue'],_0x3f48e1=_0x1dcf32(_0x4aceb1['commandName']),_0x48c75d=_0x4e8be0?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3f48e1&&_0x262263['config']['get']('list.multiBlock')||(_0x48c75d='*Change\x20to:*\x20%0'),_0x554509={'type':'format','content':c(_0x506f47,_0x48c75d,c(_0x506f47,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4e8be0=_0x4aceb1['commandParams'][0x0]['forceValue'],_0x3f48e1=_0x1dcf32(_0x4aceb1['commandName']),_0x48c75d=_0x4e8be0?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3f48e1&&_0x262263['config']['get']('list.multiBlock')||(_0x48c75d='*Change\x20to:*\x20%0'),_0x554509={'type':'format','content':c(_0x506f47,_0x48c75d,c(_0x506f47,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x48c75d='*Indent:*\x20%0',_0x554509={'type':'format','content':c(_0x506f47,_0x48c75d,c(_0x506f47,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x48c75d=function(_0x3e76d4){const _0x466a55=_0x3e76d4['getFirstRange']();let _0x35b55a=_0x466a55['start']['nodeAfter'];for(;_0x35b55a&&_0x466a55['containsItem'](_0x35b55a);){if(_0x35b55a['getAttribute']('listIndent')>0x0)return!0x1;_0x35b55a=_0x35b55a['nextSibling'];}return!0x0;}(_0x4bf3e1)?c(_0x506f47,'*Format:*\x20remove\x20from\x20%0',c(_0x506f47,function(_0x476af5){return'ELEMENT_'+_0x476af5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4bf3e1))):c(_0x506f47,'*Outdent:*\x20%0',c(_0x506f47,'ELEMENT_LIST_ITEM')),_0x554509={'type':'format','content':_0x48c75d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4aceb1['multipleBlocks']&&(_0x48c75d='*Merge:*\x20%0',_0x554509={'type':'deletion','content':c(_0x506f47,_0x48c75d,c(_0x506f47,'ELEMENT_LIST_ITEM'))});}return _0x554509;});}}function Te(_0x569094){let _0x25f711=_0x569094['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x25f711;){const _0x4c2b8e=_0x25f711['getAttribute']('listItemId');if(!_0x4c2b8e)return!0x1;if(_0x4c2b8e==_0x569094['data']['newValue'])return'newValue';if(_0x4c2b8e==_0x569094['data']['oldValue'])return'oldValue';_0x25f711=_0x25f711['previousSibling'];}return!0x1;}class Se extends _0x32ae11{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x300e3e=this['editor']['config']['get']('list.properties'),_0x60955=this['editor']['plugins']['get']('TrackChangesEditing');_0x300e3e['styles']&&(_0x60955['enableDefaultAttributesIntegration']('listStyle'),_0x60955['registerBlockAttribute']('listStyle')),_0x300e3e['reversed']&&(_0x60955['enableDefaultAttributesIntegration']('listReversed'),_0x60955['registerBlockAttribute']('listReversed')),_0x300e3e['startIndex']&&(_0x60955['enableDefaultAttributesIntegration']('listStart'),_0x60955['registerBlockAttribute']('listStart'));const _0x2bc9c5={'type':'format','content':''};_0x60955['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x102980=this['editor']['locale'];_0x60955['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x102980,'FORMAT_LIST_REVERSED')),_0x60955['descriptionFactory']['registerDescriptionCallback'](_0x4b5a70=>{const {data:_0x224e97}=_0x4b5a70;if(_0x224e97&&'listReversed'==_0x224e97['key'])return null==_0x224e97['newValue']||0x0==_0x224e97['newValue']&&null==_0x224e97['oldValue']?_0x2bc9c5:void 0x0;}),_0x60955['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x102980,'FORMAT_LIST_START')),_0x60955['descriptionFactory']['registerDescriptionCallback'](_0xcf6706=>{const {data:_0xcdcd81}=_0xcf6706;if(_0xcdcd81&&'listStart'==_0xcdcd81['key'])return null==_0xcdcd81['newValue']||0x1==_0xcdcd81['newValue']&&null==_0xcdcd81['oldValue']?_0x2bc9c5:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x421e4f=>{if(_0x421e4f['batch']['isUndo'])return!0x1;let _0x126fae=!0x1;const _0x262420=_0x60955['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1bbc9c=>{const _0x7bf203=_0x60955['_getAttributeKey'](_0x1bbc9c);return'listStart'==_0x7bf203||'listReversed'==_0x7bf203;});for(const _0x2f5463 of _0x262420){const _0x3ca55f=_0x2f5463['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3ca55f||'customNumbered'==_0x3ca55f)continue;_0x60955['_findSuggestions'](_0x2f5463['getFirstRange'](),'attribute')['find'](_0x1e062c=>'listType'==_0x60955['_getAttributeKey'](_0x1e062c['suggestion']))||(_0x421e4f['removeMarker'](_0x2f5463['getFirstMarker']()),_0x126fae=!0x0);}return _0x126fae;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x371fbe){const _0x3ed8c8=this['editor']['locale'],{data:_0x170a33}=_0x371fbe,_0x2ebd0a={'type':'format','content':''};if(!_0x170a33||'listStyle'!=_0x170a33['key'])return;if(!_0x170a33['oldValue'])return'default'==_0x170a33['newValue']?_0x2ebd0a:{'type':'format','content':''+c(_0x3ed8c8,'*Set\x20format:*\x20%0',c(_0x3ed8c8,this['_getTranslationKeyForListStyle'](_0x170a33['newValue'])))};if(!_0x170a33['newValue']){if('default'==_0x170a33['oldValue'])return _0x2ebd0a;let _0x1baf10=_0x371fbe['head'];for(;_0x1baf10;){if(_0x1baf10['data']&&'listType'==_0x1baf10['data']['key']&&_0x1baf10['data']['newValue'])return _0x2ebd0a;_0x1baf10=_0x1baf10['next'];}return{'type':'format','content':''+c(_0x3ed8c8,'*Remove\x20format:*\x20%0',c(_0x3ed8c8,this['_getTranslationKeyForListStyle'](_0x170a33['oldValue'])))};}if('default'!=_0x170a33['newValue'])return{'type':'format','content':''+c(_0x3ed8c8,'*Set\x20format:*\x20%0',c(_0x3ed8c8,this['_getTranslationKeyForListStyle'](_0x170a33['newValue'])))};let _0xe7e733=_0x371fbe['head'];for(;_0xe7e733;){if(_0xe7e733['data']&&'listType'==_0xe7e733['data']['key']&&_0xe7e733['data']['newValue']&&_0xe7e733['data']['oldValue'])return _0x2ebd0a;_0xe7e733=_0xe7e733['next'];}return{'type':'format','content':c(_0x3ed8c8,'*Set\x20format:*\x20%0',c(_0x3ed8c8,'ELEMENT_'+_0x371fbe['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1a77ab=this['editor'],_0x4a70b6=_0x1a77ab['locale'];_0x1a77ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27d2db=>{if('formatBlock'!=_0x27d2db['type'])return;const {data:_0x3df923}=_0x27d2db;if(!_0x3df923)return;let _0x297895,_0x2c9dc4;switch(_0x3df923['commandName']){case'listStyle':_0x297895='*Change\x20to:*\x20%0',_0x2c9dc4={'type':'format','content':c(_0x4a70b6,_0x297895,c(_0x4a70b6,this['_getTranslationKeyForListStyle'](_0x3df923['commandParams'][0x0]['type'])))};break;case'listReversed':_0x297895=_0x3df923['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2c9dc4={'type':'format','content':c(_0x4a70b6,_0x297895)};break;case'listStart':_0x297895='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2c9dc4={'type':'format','content':c(_0x4a70b6,_0x297895,_0x3df923['commandParams'][0x0]['startIndex'])};}return _0x2c9dc4;});}['_getTranslationKeyForListStyle'](_0x45635a){return'ELEMENT_'+function(_0x5bdf5c){if(_e['includes'](_0x5bdf5c))return'bulleted';if(Re['includes'](_0x5bdf5c))return'numbered';return null;}(_0x45635a)['toUpperCase']()+'_LIST_'+_0x45635a['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x32ae11{['afterInit'](){const _0x4984d9=this['editor'];_0x4984d9['commands']['get']('emoji')&&_0x4984d9['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x32ae11{static get['requires'](){return[_0x1b4ceb];}['init'](){const _0x3fae91=this['editor'],_0x43ccad=_0x3fae91['plugins']['get']('TrackChangesEditing'),_0x476d2c=_0x3fae91['commands']['get']('enter');_0x43ccad['enableCommand']('enter',()=>{_0x3fae91['model']['change'](_0x54c53b=>{const _0x2fb76a=_0x3fae91['model']['document']['selection'],_0x503b85=_0x2fb76a['getFirstPosition'](),_0x4b167c=_0x54bc73['fromRange'](_0x2fb76a['getFirstRange']());if(_0x476d2c['enterBlock'](_0x54c53b)){const _0x101c8e=_0x3fae91['model']['createPositionAt'](_0x503b85['parent']['nextSibling'],0x0),_0x59ea95=_0x54c53b['createRange'](_0x503b85,_0x101c8e);_0x43ccad['markInsertion'](_0x59ea95);}else _0x54c53b['setSelection'](_0x54c53b['createRange'](_0x4b167c['end']));_0x4b167c['detach'](),_0x476d2c['fire']('afterExecute',{'writer':_0x54c53b});});}),_0x3fae91['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x3fae91,'split'),{'priority':'high'}),_0x3fae91['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5dd068,_0x262a4f,_0x15fb87)=>{const _0x29aecd=_0x15fb87['mapper']['markerNameToElements'](_0x262a4f['markerName']);if(_0x29aecd){for(const _0x10e72f of _0x29aecd)_0x10e72f['hasClass']('ck-suggestion-marker-split')&&(_0x15fb87['mapper']['unbindElementFromMarkerName'](_0x10e72f,_0x262a4f['markerName']),_0x15fb87['writer']['remove'](_0x10e72f));}},{'priority':'high'}),_0x3fae91['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x183304,_0x50e7e6,_0x28aa97)=>{_0x28aa97['options']['showSuggestionHighlights']&&De(_0x3fae91,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x183304,_0x50e7e6,_0x28aa97);},{'priority':'high'});}}class Z extends _0x32ae11{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x28fffe=this['editor']['plugins']['get']('TrackChangesEditing');_0x28fffe['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x28fffe['enableCommand']('findNext'),_0x28fffe['enableCommand']('findPrevious'),_0x28fffe['enableCommand']('replace'),_0x28fffe['enableCommand']('replaceAll');}['handleFindCommand'](_0xd69fd0,_0x35ffef,_0x389452={}){const _0x43d0a5=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xd69fd0(_0x278696=>{let _0x845325=('string'==typeof _0x35ffef?_0x43d0a5['findByTextCallback'](_0x35ffef,_0x389452):_0x35ffef)(_0x278696);Array['isArray'](_0x845325)&&(_0x845325={'results':_0x845325,'searchText':'string'==typeof _0x35ffef?_0x35ffef:''});const _0x5e35fd=_0x845325['results']['filter'](_0xfa070e=>!0x1===this['_isInDeletionRange'](_0xfa070e,_0x278696['item']));return{..._0x845325,'results':_0x5e35fd};},_0x389452);}['_isInDeletionRange'](_0x47bf43,_0x4f515e){const _0x5dafe1=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f515e,_0x47bf43['start']),this['editor']['model']['createPositionAt'](_0x4f515e,_0x47bf43['end']));for(const _0xd9d214 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5dafe1['getIntersection'](_0xd9d214['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x32ae11{['afterInit'](){const _0x256318=this['editor']['locale'],_0x49a64c=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x787588,commandName:_0x2dd67a}of eo)this['editor']['plugins']['has'](_0x787588)&&(_0x49a64c['enableDefaultAttributesIntegration'](_0x2dd67a),_0x49a64c['registerInlineAttribute'](_0x2dd67a));_0x49a64c['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x256318,'FORMAT_FONT_SIZE')),_0x49a64c['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x256318,'FORMAT_FONT_FAMILY')),_0x49a64c['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x256318,'FORMAT_FONT_COLOR')),_0x49a64c['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x256318,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x273cf8=this['editor'],_0x5d744f=_0x273cf8['locale'];_0x273cf8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x393ebc=>{const _0x3e79e6=_0x5d744f['t'];if('formatInline'!=_0x393ebc['type'])return;const {data:_0x35c425}=_0x393ebc;if(null!=_0x35c425){if('fontSize'==_0x35c425['commandName']){const _0xb9ccb5=_0x35c425['commandParams'][0x0]['value'];if(_0xb9ccb5){const _0x29f05c=_0x3e79e6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4f4c39=>_0x4f4c39['model']==_0xb9ccb5)['title'])['toLowerCase']();return{'type':'format','content':c(_0x5d744f,'*Set\x20font\x20size:*\x20%0',_0x29f05c)};}return{'type':'format','content':c(_0x5d744f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x35c425['commandName']){const _0x4ed957=_0x35c425['commandParams'][0x0]['value'];return _0x4ed957?{'type':'format','content':c(_0x5d744f,'*Set\x20font\x20family:*\x20%0',_0x4ed957)}:{'type':'format','content':c(_0x5d744f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x35c425['commandName']){const _0x3dd776=_0x35c425['commandParams'][0x0]['value'];if(_0x3dd776){const _0x362136=_0x3b4ca4(this['editor']['config']['get']('fontColor.colors'))['find'](_0x8f8014=>_0x8f8014['model']==_0x3dd776);let _0x280eca=_0x3dd776,_0x50aa7e='';return _0x362136&&(_0x280eca=_0x362136['label'],_0x50aa7e=_0x3e79e6(_0x280eca)['toLowerCase']()),{'type':'format','content':c(_0x5d744f,'*Set\x20font\x20color:*\x20%0',_0x50aa7e)['trim'](),'color':{'value':_0x3dd776,'title':_0x50aa7e||_0x280eca}};}return{'type':'format','content':c(_0x5d744f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x35c425['commandName']){const _0x5cbd23=_0x35c425['commandParams'][0x0]['value'];if(_0x5cbd23){const _0x7378f1=_0x3b4ca4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x100b2=>_0x100b2['model']==_0x5cbd23);let _0x34b108=_0x5cbd23,_0x42ad01='';return _0x7378f1&&(_0x34b108=_0x7378f1['label'],_0x42ad01=_0x3e79e6(_0x34b108)['toLowerCase']()),{'type':'format','content':c(_0x5d744f,'*Set\x20font\x20background\x20color:*\x20%0',_0x42ad01)['trim'](),'color':{'value':_0x5cbd23,'title':_0x42ad01||_0x34b108}};}return{'type':'format','content':c(_0x5d744f,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x32ae11{['afterInit'](){const _0x244dd7=this['editor'],_0xd63a53=_0x244dd7['plugins']['get']('TrackChangesEditing'),_0x405d13=_0x244dd7['commands']['get']('copyFormat'),_0x3ecef8=_0x244dd7['commands']['get']('pasteFormat');_0x405d13&&_0x3ecef8&&(_0xd63a53['enableDefaultAttributesIntegration']('pasteFormat'),_0xd63a53['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1dea20=this['editor'],_0x4f5ed7=_0x1dea20['locale'];_0x1dea20['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c46a3=>{if('formatBlock'!=_0x3c46a3['type']&&'formatInline'!=_0x3c46a3['type'])return;const {data:_0x50eafc}=_0x3c46a3;if(_0x50eafc&&'pasteFormat'===_0x50eafc['commandName']){const _0x2e5fc6=[],_0x275b32=_0x50eafc['commandParams'][0x0];for(const [_0x198f14,_0x1ea4be]of Object['entries'](_0x275b32))_0x2e5fc6['push'](ro(_0x1dea20,_0x198f14,_0x1ea4be));return _0x2e5fc6['length']?{'type':'format','content':c(_0x4f5ed7,'*Set\x20format\x20to:*\x20%0',_0x2e5fc6['join'](',\x20'))}:{'type':'format','content':c(_0x4f5ed7,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x47c69f,_0x196d7f,_0x3d7664){const _0x5eee4f=_0x47c69f['locale']['t'],_0x26e8b2=_0x196d7f['split'](/(?=[A-Z])/)['join']('\x20'),_0x530b93=_0x5eee4f(_0x26e8b2['charAt'](0x0)['toUpperCase']()+_0x26e8b2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3d7664)return _0x530b93;if('fontColor'===_0x196d7f||'fontBackgroundColor'===_0x196d7f){const _0x5184d9=_0x3b4ca4(_0x47c69f['config']['get']('fontColor.colors'))['find'](_0x14d7f7=>_0x14d7f7['model']==_0x3d7664);return _0x530b93+'\x20('+(_0x5184d9?_0x5eee4f(_0x5184d9['label'])['toLowerCase']():_0x3d7664)+')';}if('fontSize'===_0x196d7f&&isNaN(parseFloat(_0x3d7664))){const _0x2447eb=_0x47c69f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x47c69f['config']['get']('fontSize.options'))['find'](_0x45485c=>_0x45485c['model']==_0x3d7664);return _0x530b93+'\x20('+(_0x2447eb?_0x5eee4f(_0x2447eb['title'])['toLowerCase']():_0x3d7664)+')';}return _0x530b93+'\x20('+_0x3d7664+')';}class nt extends _0x32ae11{['_headingOptions'];['afterInit'](){const _0x57cd38=this['editor'];if(!_0x57cd38['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x57cd38['config']['get']('heading.options');const _0x4f4c67=_0x57cd38['locale'],_0x374c2e=_0x57cd38['plugins']['get']('TrackChangesEditing');_0x374c2e['enableDefaultAttributesIntegration']('heading');for(const _0x1b0b7c of this['_headingOptions'])'paragraph'!=_0x1b0b7c['model']&&_0x374c2e['descriptionFactory']['registerElementLabel'](_0x1b0b7c['model'],_0x51317f=>{const _0x33a399=this['_getHeadingLevel'](_0x1b0b7c['model']);return null!==_0x33a399?_0x414f28(_0x51317f,_0x33a399):_0x43817d(_0x51317f,_0x1b0b7c['title']);});function _0x414f28(_0x15e2b8,_0x15c13b){return c(_0x4f4c67,'ELEMENT_HEADING',[_0x15e2b8,_0x15c13b]);}function _0x43817d(_0xf14a5f,_0x5f0171){return c(_0x4f4c67,'ELEMENT_HEADING_CUSTOM',[_0xf14a5f,_0x5f0171]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18272b=this['editor'],_0x579e4f=_0x18272b['locale'];function _0x484486(_0x49c635,_0x10324b){return c(_0x579e4f,'ELEMENT_HEADING_CUSTOM',[_0x49c635,_0x10324b]);}_0x18272b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b6032=>{if('formatBlock'!=_0x4b6032['type'])return;const {data:_0x2e684b}=_0x4b6032;if(_0x2e684b&&'heading'==_0x2e684b['commandName']){const _0x609c88=_0x2e684b['commandParams'][0x0]['value'],_0x1166c8=this['_getHeadingLevel'](_0x609c88);if(null!==_0x1166c8)return{'type':'format','content':c(_0x579e4f,'*Change\x20to:*\x20%0',(_0x419042=0x1,_0x31e3cb=_0x1166c8,c(_0x579e4f,'ELEMENT_HEADING',[_0x419042,_0x31e3cb])))};const _0x4e2cb6=this['_headingOptions']['find'](_0x5459a0=>_0x5459a0['model']===_0x609c88)['title'];return{'type':'format','content':c(_0x579e4f,'*Change\x20to:*\x20%0',_0x484486(0x1,_0x4e2cb6))};}var _0x419042,_0x31e3cb;});}['_getHeadingLevel'](_0xf6d0ea){const _0x526c39=_0xf6d0ea['match'](/^heading(\d+)/);if(_0x526c39)return _0x526c39[0x1];const _0x5013c6=this['_headingOptions']?.['find'](_0x15bae0=>_0x15bae0['model']==_0xf6d0ea);if(_0x5013c6&&_0x5013c6['view']){const _0x546612=_0x5013c6['view'],_0x56beec=(_0x546612['name']??_0x546612)['match'](/^h(\d+)/);if(_0x56beec)return _0x56beec[0x1];}return null;}}class it extends _0x32ae11{['afterInit'](){const _0x23ec71=this['editor'];if(!_0x23ec71['plugins']['has']('HighlightEditing'))return;const _0x1cc237=_0x23ec71['plugins']['get']('TrackChangesEditing'),_0x2bd854=_0x23ec71['locale'];_0x1cc237['enableDefaultAttributesIntegration']('highlight'),_0x1cc237['registerInlineAttribute']('highlight'),_0x1cc237['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x2bd854,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55b11c=this['editor'],_0x16f9c4=_0x55b11c['locale'];_0x55b11c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x219b58=>{if('formatInline'!=_0x219b58['type'])return;const {data:_0x126253}=_0x219b58;if(_0x126253&&'highlight'==_0x126253['commandName']){const _0x4dd6fa=_0x16f9c4['t'],_0x50f184=_0x126253['commandParams'][0x0]['value'];if(_0x50f184){const _0x36bad9=_0x55b11c['config']['get']('highlight.options')['find'](_0x4ef6b=>_0x4ef6b['model']==_0x50f184),_0x5511dc=_0x4dd6fa(_0x36bad9['title'])['toLowerCase']();return{'type':'format','content':c(_0x16f9c4,'*Set\x20highlight:*\x20%0',_0x5511dc),'color':{'value':_0x36bad9['color'],'title':_0x36bad9['title']}};}return{'type':'format','content':c(_0x16f9c4,'*Remove\x20highlight*',c(_0x16f9c4,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x32ae11{['afterInit'](){const _0x50ac9c=this['editor'];if(!_0x50ac9c['plugins']['has']('HorizontalLineEditing'))return;_0x50ac9c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x52a9ef=_0x50ac9c['plugins']['get']('TrackChangesEditing'),_0x21010d=_0x50ac9c['locale'];_0x52a9ef['descriptionFactory']['registerElementLabel']('horizontalLine',_0x575269=>c(_0x21010d,'ELEMENT_HORIZONTAL_LINE',_0x575269)),_0x50ac9c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4881e2,{writer:_0x46b9b3,options:_0x6c96b5})=>{if(!_0x6c96b5['showSuggestionHighlights'])return null;const _0x12f75f=_0x46b9b3['createContainerElement']('div'),_0x258dd8=_0x46b9b3['createEmptyElement']('hr');return _0x46b9b3['addClass']('ck-horizontal-line',_0x12f75f),_0x46b9b3['insert'](_0x46b9b3['createPositionAt'](_0x12f75f,0x0),_0x258dd8),_0x12f75f;},'converterPriority':'high'});}}class ot extends _0x32ae11{['afterInit'](){const _0x203175=this['editor'];if(!_0x203175['plugins']['has']('HtmlEmbed'))return;const _0x3eb44a=_0x203175['plugins']['get']('TrackChangesEditing'),_0x1e98ea=_0x203175['locale'];_0x3eb44a['descriptionFactory']['registerElementLabel']('rawHtml',_0x233a73=>c(_0x1e98ea,'ELEMENT_HTML_EMBED',_0x233a73)),_0x3eb44a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3eb44a['registerBlockAttribute']('value'),_0x3eb44a['descriptionFactory']['registerDescriptionCallback'](_0xecf730=>{if('attribute'!=_0xecf730['type'])return;const {data:_0x50f0f5}=_0xecf730;if(_0x50f0f5&&'value'==_0x50f0f5['key']&&_0xecf730['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4654f8=c(_0x1e98ea,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1e98ea,'*Change\x20%0\x20content*',_0x4654f8)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2cba08=this['editor'],_0x35db15=_0x2cba08['locale'];_0x2cba08['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x476379=>{if('formatBlock'!=_0x476379['type'])return;const {data:_0x9bd998}=_0x476379;if(_0x9bd998&&'htmlEmbed'==_0x9bd998['commandName']){const _0x55f68a=c(_0x35db15,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x35db15,'*Change\x20%0\x20content*',_0x55f68a)};}});}}class rt extends _0x32ae11{['afterInit'](){const _0x16469e=this['editor'];if(!_0x16469e['plugins']['has']('ImageEditing'))return;const _0x4011ec=_0x16469e['plugins']['get']('TrackChangesEditing'),_0x1ada32=_0x16469e['plugins']['get']('ImageUtils'),_0x57a1b0=_0x16469e['locale'];_0x4011ec['enableCommand']('insertImage'),_0x4011ec['descriptionFactory']['registerElementLabel']('imageBlock',_0x2460be=>c(_0x57a1b0,'ELEMENT_IMAGE',_0x2460be)),_0x4011ec['descriptionFactory']['registerElementLabel']('imageInline',_0x342e8e=>c(_0x57a1b0,'ELEMENT_INLINE_IMAGE',_0x342e8e)),_0x4011ec['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x57a1b0,'ELEMENT_CAPTION')),_0x16469e['plugins']['has']('ImageUploadEditing')&&_0x4011ec['enableCommand']('uploadImage'),_0x16469e['plugins']['has']('ImageBlockEditing')&&_0x16469e['plugins']['has']('ImageInlineEditing')&&(_0x4011ec['enableCommand']('imageTypeInline',(_0x1820e1,_0x3391d4)=>{const _0x369e1d=_0x1ada32['getClosestSelectedImageElement'](_0x16469e['model']['document']['selection']);_0x16469e['model']['change'](()=>{_0x4011ec['markBlockFormat'](_0x369e1d,{'commandName':'imageTypeInline','commandParams':[_0x3391d4]},[],'convertBlockImageToInline');});}),_0x4011ec['enableCommand']('imageTypeBlock',(_0x2da196,_0x20fda6)=>{_0x16469e['model']['change'](_0x445925=>{let _0x12cedd=_0x1ada32['getClosestSelectedImageElement'](_0x16469e['model']['document']['selection']),_0x1cd756=_0x445925['createRangeOn'](_0x12cedd);const _0x5a924c=_0x3a8e88['fromPosition'](_0x1cd756['start'],'toPrevious'),_0x1f38a0=_0x3a8e88['fromPosition'](_0x1cd756['end'],'toNext');_0x4011ec['forceDefaultExecution'](()=>_0x2da196(_0x20fda6)),_0x12cedd=_0x1ada32['getClosestSelectedImageElement'](_0x16469e['model']['document']['selection']),_0x1cd756=_0x445925['createRangeOn'](_0x12cedd);const _0x1573ef=_0x445925['createRange'](_0x5a924c,_0x1f38a0);_0x5a924c['detach'](),_0x1f38a0['detach'](),_0x4011ec['markBlockFormat'](_0x12cedd,{'commandName':'imageTypeInline','commandParams':[_0x20fda6]},[],'convertInlineImageToBlock'),_0x1573ef['start']['isBefore'](_0x1cd756['start'])&&_0x4011ec['markInsertion'](_0x445925['createRange'](_0x1573ef['start'],_0x1cd756['start']),'convertInlineImageToBlock'),_0x1cd756['end']['isBefore'](_0x1573ef['end'])&&_0x4011ec['markInsertion'](_0x445925['createRange'](_0x1cd756['end'],_0x1573ef['end']),'convertInlineImageToBlock');});}),_0x4011ec['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4011ec['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4011ec['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4011ec['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4011ec['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4011ec['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x133da4])=>{const _0x391cb8=_0x4011ec['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xab5cbd=_0x133da4['start'],_0x50c292=_0x133da4['end'];const _0x2e7a79=_0x16469e['model']['schema']['getNearestSelectionRange'](_0xab5cbd,'backward'),_0x5f0b4e=_0x16469e['model']['schema']['getNearestSelectionRange'](_0x50c292,'forward');_0x2e7a79['isCollapsed']&&(_0xab5cbd=_0x2e7a79['start']),_0x5f0b4e['isCollapsed']&&(_0x50c292=_0x5f0b4e['end']),_0x391cb8([_0x16469e['model']['createRange'](_0xab5cbd,_0x50c292)]);}),_0x4011ec['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x556ed5),_0x4011ec['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x556ed5)),_0x16469e['plugins']['has']('ImageCaptionEditing')&&(_0x4011ec['enableCommand']('toggleImageCaption',(_0xf82da2,_0x53e5f4)=>{const _0x3c54be=_0x16469e['plugins']['get']('ImageCaptionUtils');let _0xc7c0f8=_0x1ada32['getClosestSelectedImageElement'](_0x16469e['model']['document']['selection']),_0x105f35=_0x3c54be['getCaptionFromImageModelElement'](_0xc7c0f8);_0x16469e['model']['change'](()=>{if(_0x105f35)return void _0x4011ec['markDeletion'](_0x16469e['model']['createRangeOn'](_0x105f35));const _0x430a2d=_0x1ada32['isBlockImage'](_0xc7c0f8);_0xf82da2(_0x53e5f4),_0xc7c0f8=_0x1ada32['getClosestSelectedImageElement'](_0x16469e['model']['document']['selection']),_0x105f35=_0x3c54be['getCaptionFromImageModelElement'](_0xc7c0f8),_0x4011ec['markInsertion'](_0x16469e['model']['createRangeOn'](_0x105f35),_0x430a2d?null:'imageCaption');});}),_0x4011ec['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x556ed5));const _0x492631=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x17470d(_0x541ee2,_0x5171cf){const _0xcbd306=_0x492631['findIndex'](({type:_0x8b0246,subType:_0x255c9f})=>_0x541ee2['type']==_0x8b0246&&_0x541ee2['subType']==_0x255c9f),_0x4744cf=_0x492631['findIndex'](({type:_0xe93c8b,subType:_0x471a1e})=>_0x5171cf['type']==_0xe93c8b&&_0x5171cf['subType']==_0x471a1e);if(_0xcbd306<0x0||_0x4744cf<0x0)return!0x1;const _0x53215c=_0x541ee2['getFirstRange'](),_0x2df350=_0x5171cf['getFirstRange']();if((0x0==_0xcbd306||0x1==_0xcbd306)&&0x2==_0x4744cf&&_0x53215c['isIntersecting'](_0x2df350))return!0x0;if(0x2==_0xcbd306&&0x3==_0x4744cf){const _0x568446=_0x4011ec['_findSuggestions'](_0x53215c,'insertion')['filter'](({suggestion:_0x4c7acb,meta:_0x1502fa})=>_0x1502fa['isOwn']&&'convertInlineImageToBlock'==_0x4c7acb['subType']);if(_0x568446['length']>0x1&&_0x2df350['end']['isEqual'](_0x53215c['start']))return!0x0;if(0x1==_0x568446['length']&&(_0x53215c['start']['isEqual'](_0x2df350['end'])||_0x53215c['end']['isEqual'](_0x2df350['start'])))return!0x0;}if(0x3==_0xcbd306&&0x3==_0x4744cf&&_0x53215c['start']['isBefore'](_0x2df350['start'])){const _0x2fa01c=_0x53215c['end']['nodeAfter'],_0x5caec8=_0x2df350['start']['nodeBefore'];return _0x1ada32['isBlockImage'](_0x2fa01c)&&_0x2fa01c===_0x5caec8;}return!0x1;}function _0x556ed5(_0x3753ac,_0x1c2529){return _0x17470d(_0x3753ac,_0x1c2529)?[_0x3753ac,_0x1c2529]:_0x17470d(_0x1c2529,_0x3753ac)?[_0x1c2529,_0x3753ac]:null;}_0x16469e['plugins']['has']('ImageResize')&&(_0x4011ec['enableDefaultAttributesIntegration']('resizeImage'),_0x4011ec['registerBlockAttribute']('resizedWidth'),_0x4011ec['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x57a1b0,'FORMAT_IMAGE_SIZE'))),_0x16469e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4011ec['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4011ec['registerBlockAttribute']('alt')),_0x16469e['plugins']['has']('PictureEditing')&&(_0x4011ec['registerBlockAttribute']('sources'),_0x4011ec['descriptionFactory']['registerDescriptionCallback'](_0x46b541=>{if('attribute'!=_0x46b541['type'])return;const {data:_0x48c910}=_0x46b541;return _0x48c910&&'sources'==_0x48c910['key']?{'type':'format','content':''}:void 0x0;})),_0x16469e['plugins']['has']('ImageSizeAttributes')&&(_0x4011ec['registerBlockAttribute']('width'),_0x4011ec['registerBlockAttribute']('height'),_0x4011ec['descriptionFactory']['registerDescriptionCallback'](_0x25c649=>{if('attribute'!=_0x25c649['type'])return;const {data:_0x1c443a}=_0x25c649;return!_0x1c443a||'width'!=_0x1c443a['key']&&'height'!=_0x1c443a['key']?void 0x0:{'type':'format','content':''};})),_0x4011ec['descriptionFactory']['registerDescriptionCallback'](_0x28eb87=>{if(!!_0x492631['find'](({type:_0x5e9fdd,subType:_0x17f21e})=>_0x28eb87['type']==_0x5e9fdd&&_0x28eb87['subType']==_0x17f21e))return _0x28eb87['previous']?{}:void 0x0;}),_0x4011ec['descriptionFactory']['registerDescriptionCallback'](_0x2f187d=>{if('insertion'==_0x2f187d['type']||'deletion'==_0x2f187d['type']){const _0xb41743=_0x2f187d['getContainedElement']();if(_0xb41743&&_0xb41743['is']('element','caption'))return{'type':'insertion'==_0x2f187d['type']?'addObject':'removeObject','element':_0xb41743,'quantity':0x1};}}),_0x4011ec['descriptionFactory']['registerDescriptionCallback'](_0x57c071=>'formatBlock'==_0x57c071['type']&&'convertInlineImageToBlock'==_0x57c071['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x57c071['type']&&'convertBlockImageToInline'==_0x57c071['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4011ec['descriptionFactory']['registerDescriptionCallback'](_0x1b2177=>{if('attribute'!=_0x1b2177['type'])return;const {data:_0x28c86e}=_0x1b2177;if(!_0x28c86e||'alt'!=_0x28c86e['key'])return;const _0x3beeba=_0x28c86e['newValue'];return _0x3beeba?{'type':'format','content':c(_0x57a1b0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3beeba+'\x22')}:{'type':'format','content':c(_0x57a1b0,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41d9d9=this['editor'],_0x5f4043=_0x41d9d9['locale'];_0x41d9d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58ece1=>{if('formatBlock'!=_0x58ece1['type']&&'formatInline'!=_0x58ece1['type'])return;const {data:_0x3d156d}=_0x58ece1;if(_0x3d156d){if('imageTextAlternative'==_0x3d156d['commandName']){const _0x2c03ac=_0x3d156d['commandParams'][0x0]['newValue'];return _0x2c03ac?{'type':'format','content':c(_0x5f4043,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2c03ac+'\x22')}:{'type':'format','content':c(_0x5f4043,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3d156d['commandName']){const _0x1f2cce=_0x3d156d['commandParams'][0x0]['width'];return _0x1f2cce?{'type':'format','content':c(_0x5f4043,'*Set\x20image\x20width:*\x20%0',_0x1f2cce)}:{'type':'format','content':c(_0x5f4043,'*Reset\x20image\x20width*')};}}});}}class at extends _0x32ae11{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xc64da=this['editor']['locale'],_0x2abb8f=this['editor']['plugins']['get']('TrackChangesEditing');_0x2abb8f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2abb8f['registerBlockAttribute']('src'),_0x2abb8f['descriptionFactory']['registerDescriptionCallback'](_0x44d17b=>{if('attribute'!=_0x44d17b['type'])return;const {data:_0x36da60}=_0x44d17b;return _0x36da60&&'src'==_0x36da60['key']?_0x36da60['newValue']&&_0x36da60['oldValue']?{'type':'format','content':c(_0xc64da,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3069da=this['editor']['plugins']['get']('TrackChangesEditing');_0x3069da['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3069da['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3069da['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3069da['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25adaf=this['editor'],_0x1e3dbb=_0x25adaf['locale'];_0x25adaf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dea94=>{if('formatBlock'!=_0x1dea94['type']&&'formatInline'!=_0x1dea94['type'])return;const {data:_0x52d287}=_0x1dea94;if(!_0x52d287||'replaceImageSource'!=_0x52d287['commandName'])return;return{'type':'format','content':c(_0x1e3dbb,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x32ae11{['afterInit'](){const _0x598821=this['editor'];if(!_0x598821['plugins']['has']('ImageStyleEditing'))return;const _0x2a0515=_0x598821['plugins']['get']('TrackChangesEditing'),_0x3b28a9=_0x598821['plugins']['get']('ImageUtils'),_0x5e0038={};_0x2a0515['enableCommand']('imageStyle',(_0x1b9056,_0x64e72f)=>{const _0xa97bf0=_0x598821['plugins']['get']('Users')['me'],_0x2e6961=_0x598821['commands']['get']('imageStyle');let _0x41df35=_0x3b28a9['getClosestSelectedImageElement'](_0x598821['model']['document']['selection']),_0xc61129=_0x598821['model']['createRangeOn'](_0x41df35),_0x1b6b73=_0x2e6961['value'];if(_0x1b6b73==_0x64e72f['value'])return;const _0x30ace2={'commandName':'imageStyle','commandParams':[_0x64e72f],'formatGroupId':_0x1b6899()};_0x598821['model']['change'](()=>{if(_0x2a0515['getSuggestions']()['filter'](_0x3f470f=>_0x3f470f['isInContent']&&_0xa97bf0==_0x3f470f['author']&&('formatBlock'==_0x3f470f['type']||'formatInline'==_0x3f470f['type'])&&('imageStylePreApply'==_0x3f470f['subType']||'imageStylePostApply'==_0x3f470f['subType'])&&_0x3f470f['getFirstRange']()['isEqual'](_0xc61129))['forEach'](_0x275c7c=>_0x2a0515['discardSuggestion'](_0x275c7c['head'])),_0x41df35=_0x3b28a9['getClosestSelectedImageElement'](_0x598821['model']['document']['selection']),_0xc61129=_0x598821['model']['createRangeOn'](_0x41df35),_0x2e6961['refresh'](),_0x598821['commands']['get']('imageTypeInline')['refresh'](),_0x598821['commands']['get']('imageTypeBlock')['refresh'](),_0x1b6b73=_0x2e6961['value'],_0x1b6b73!=_0x64e72f['value'])return _0x3b28a9['isInlineImage'](_0x41df35)&&_0x2e6961['shouldConvertImageType'](_0x64e72f['value'],_0x41df35)?(_0x1b9056({..._0x64e72f,'setImageSizes':!0x1}),_0x41df35=_0x3b28a9['getClosestSelectedImageElement'](_0x598821['model']['document']['selection']),void _0x2a0515['markBlockFormat'](_0x41df35,{..._0x30ace2,'commandReversedParams':[{'value':_0x1b6b73||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3b28a9['isBlockImage'](_0x41df35)?_0x2a0515['markBlockFormat'](_0x41df35,_0x30ace2,[],'imageStylePostApply'):_0x2a0515['markInlineFormat'](_0xc61129,_0x30ace2,'imageStylePostApply'));});});for(const _0x1a904f of _0x598821['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5e0038[_0x1a904f['name']]=_0x1a904f['title']['toLowerCase']();_0x2a0515['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2a0515['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2a0515['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2a0515['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x409049])=>{_0x3b28a9['setImageNaturalSizeAttributes'](_0x409049['getContainedElement']());}),_0x2a0515['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x178fdc,_0x334bcf)=>{_0x2a0515['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x178fdc,{'commandName':_0x334bcf['commandName'],'commandParams':_0x334bcf['commandReversedParams']});}),_0x2a0515['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x37a5ae,_0x2798df){if(_0x4f5c03(_0x37a5ae,_0x2798df))return[_0x37a5ae,_0x2798df];if(_0x4f5c03(_0x2798df,_0x37a5ae))return[_0x2798df,_0x37a5ae];return null;});const _0x30a0be=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4f5c03(_0x1cceab,_0x32b821){const _0x586007=_0x30a0be['findIndex'](({type:_0x569008,subType:_0x181799})=>_0x1cceab['type']==_0x569008&&_0x1cceab['subType']==_0x181799),_0x2299ff=_0x30a0be['findIndex'](({type:_0x338991,subType:_0x48fef1})=>_0x32b821['type']==_0x338991&&_0x32b821['subType']==_0x48fef1);if(_0x586007<0x0||_0x2299ff<0x0)return!0x1;const _0x19f41e=_0x1cceab['getFirstRange'](),_0x3ee5f7=_0x32b821['getFirstRange']();if((0x0==_0x586007||0x1==_0x586007)&&0x2==_0x2299ff&&_0x19f41e['isIntersecting'](_0x3ee5f7))return!0x0;if(0x2==_0x586007&&0x3==_0x2299ff){const _0x83416b=_0x2a0515['_findSuggestions'](_0x19f41e,'insertion')['filter'](({suggestion:_0x56b4bd,meta:_0x4e80ad})=>_0x4e80ad['isOwn']&&'convertInlineImageToBlock'==_0x56b4bd['subType']);if(_0x83416b['length']>0x1&&_0x3ee5f7['end']['isEqual'](_0x19f41e['start']))return!0x0;if(0x1==_0x83416b['length']&&(_0x19f41e['start']['isEqual'](_0x3ee5f7['end'])||_0x19f41e['end']['isEqual'](_0x3ee5f7['start'])))return!0x0;}if(0x3==_0x586007&&0x3==_0x2299ff&&_0x19f41e['start']['isBefore'](_0x3ee5f7['start'])){const _0x3e572c=_0x19f41e['end']['nodeAfter'],_0x7b296=_0x3ee5f7['start']['nodeBefore'];return _0x3b28a9['isBlockImage'](_0x3e572c)&&_0x3e572c===_0x7b296;}return!0x1;}_0x598821['model']['document']['registerPostFixer'](()=>{let _0x1ab473=!0x1;const _0x6eafa1=Array['from'](_0x598821['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22b057,data:_0x4d28b5}of _0x6eafa1){const {group:_0x1cf2f8,type:_0x394311,subType:_0x5dcf83,id:_0x26d87}=_0x2a0515['_splitMarkerName'](_0x22b057);if('suggestion'==_0x1cf2f8&&_0x2a0515['hasSuggestion'](_0x26d87)){if('formatBlock'==_0x394311&&('imageStylePreApply'==_0x5dcf83||'imageStylePostApply'==_0x5dcf83)){const _0x44e881=_0x2a0515['getSuggestion'](_0x26d87);if(_0x4d28b5['newRange']){const _0x342736=_0x44e881['getFirstRange']()['getContainedElement']();if(_0x3b28a9['isBlockImage'](_0x342736))continue;_0x2a0515['discardSuggestion'](_0x44e881),_0x1ab473=!0x0;}}if('insertion'==_0x394311&&'imageCaption'==_0x5dcf83&&!_0x4d28b5['newRange']){const _0x48f826=_0x2a0515['getSuggestion'](_0x26d87);_0x48f826['next']&&_0x48f826['next']['isInContent']&&(_0x2a0515['discardSuggestion'](_0x48f826['next']),_0x1ab473=!0x0);}}}return _0x1ab473;}),this['_registerLegacyDescription'](_0x5e0038);}['_registerLegacyDescription'](_0x1b1e90){const _0x32c87b=this['editor'],_0x2683de=_0x32c87b['locale'];_0x32c87b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x699f76=>{if('formatBlock'!=_0x699f76['type']&&'formatInline'!=_0x699f76['type'])return;const {data:_0x1582aa}=_0x699f76;if(!_0x1582aa||'imageStyle'!=_0x1582aa['commandName'])return;const _0x4f0ed8=_0x1582aa['commandParams'][0x0]['value'];return _0x36957c('side'===_0x4f0ed8?c(_0x2683de,'FORMAT_SIDE_IMAGE'):_0x1b1e90[_0x4f0ed8]||_0x4f0ed8);function _0x36957c(_0x37362b){return{'type':'format','content':c(_0x2683de,'*Format:*\x20%0',_0x37362b)};}});}}class ut extends _0x32ae11{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x37e939){super(_0x37e939),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xe36f55=this['editor'],_0x1c94f8=_0xe36f55['commands']['get']('importWord'),_0x5d1e0a=_0xe36f55['commands']['get']('trackChanges');_0x1c94f8&&(_0x1c94f8['on']('execute',(_0x41e04f,[,_0x376247])=>{this['_trackChangesValueDuringImport']=_0x5d1e0a['value'],_0x376247['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1c94f8,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1c94f8,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5d1e0a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xe36f55['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x383989,_0x5f0a17){const {suggestions:_0x4f9ca8}=_0x5f0a17,_0x2f6d15=this['editor']['commands']['get']('trackChanges'),_0x58b28a=_0x2f6d15['value'];this['_trackChangesValueDuringImport']!==_0x58b28a&&(_0x2f6d15['execute'](),this['_trackChangesExecuted']=!0x0),_0x4f9ca8&&_0x4f9ca8['forEach'](({id:_0x2603c7,type:_0x333f20,author:_0x5b735b,created_at:_0x3872b5})=>{const _0x3aca56={'id':_0x2603c7,'type':_0x333f20,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5b735b,'createdAt':_0x3872b5?new Date(_0x3872b5):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3aca56);});}}class ft extends _0x32ae11{['afterInit'](){const _0x9aa94d=this['editor'],_0x3c00c1=_0x9aa94d['plugins']['get']('TrackChangesEditing');if(_0x9aa94d['plugins']['has']('IndentEditing')&&(_0x3c00c1['enableCommand']('indent'),_0x3c00c1['enableCommand']('outdent')),_0x9aa94d['plugins']['has']('IndentBlock')){for(const _0x59df8c of['indentBlock','outdentBlock'])_0x3c00c1['enableDefaultAttributesIntegration'](_0x59df8c);}const _0x37246f=_0x9aa94d['locale'];_0x3c00c1['registerBlockAttribute']('blockIndent'),_0x3c00c1['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x37246f,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44fa44=this['editor'],_0x31885c=_0x44fa44['locale'],_0x7ae394=_0x44fa44['plugins']['get']('TrackChangesEditing');_0x7ae394['descriptionFactory']['registerDescriptionCallback'](_0xb14016=>{if('formatBlock'!=_0xb14016['type'])return;const {data:_0x3bd787}=_0xb14016;if(!_0x3bd787)return;if('indentBlock'!=_0x3bd787['commandName']&&'outdentBlock'!=_0x3bd787['commandName'])return;const _0x32da75=_0xb14016['getItems']()[0x0],_0x274c3c=_0x7ae394['descriptionFactory']['getItemLabel'](_0x32da75);return'indentBlock'==_0x3bd787['commandName']?{'type':'format','content':c(_0x31885c,'*Indent:*\x20%0',_0x274c3c)}:'outdentBlock'==_0x3bd787['commandName']?{'type':'format','content':c(_0x31885c,'*Outdent:*\x20%0',_0x274c3c)}:void 0x0;});}}class ht extends _0x32ae11{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x32ae11{['afterInit'](){const _0x1a13a6=this['editor'];if(!_0x1a13a6['plugins']['has']('LinkEditing'))return;const _0x37a6e9=_0x1a13a6['plugins']['get']('TrackChangesEditing'),_0x41727c=_0x1a13a6['commands']['get']('link');_0x37a6e9['enableDefaultAttributesIntegration']('link'),_0x37a6e9['enableDefaultAttributesIntegration']('unlink'),_0x37a6e9['registerInlineAttribute']('linkHref');for(const _0x23e083 of _0x41727c['manualDecorators'])_0x37a6e9['registerInlineAttribute'](_0x23e083['id']),_0x37a6e9['descriptionFactory']['registerAttributeLabel'](_0x23e083['id'],'link\x20('+_0x23e083['label']['toLowerCase']()+')');_0x37a6e9['descriptionFactory']['registerDescriptionCallback'](_0x3371b7=>{if('attribute'!=_0x3371b7['type'])return;const {data:_0x4eabb8}=_0x3371b7;if(!_0x4eabb8||'linkHref'!=_0x4eabb8['key'])return;const _0x388821=_0x4eabb8['newValue'],_0x234906=_0x1a13a6['locale'];return{'type':'format','content':null==_0x388821?c(_0x234906,'*Remove\x20link*'):c(_0x234906,'*Set\x20link:*\x20%0','\x22'+_0x388821+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49ddcf=this['editor'],_0x3ede08=_0x49ddcf['locale'];_0x49ddcf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x162e9c=>{if('formatInline'!=_0x162e9c['type'])return;const {data:_0x4f011f}=_0x162e9c;if(_0x4f011f){if('link'==_0x4f011f['commandName']){const _0x59bc6d=_0x4f011f['commandParams'][0x0];return{'type':'format','content':c(_0x3ede08,'*Set\x20link:*\x20%0','\x22'+_0x59bc6d+'\x22')};}return'unlink'==_0x4f011f['commandName']?{'type':'format','content':c(_0x3ede08,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x32ae11{['afterInit'](){const _0xe1d2f2=this['editor'],_0x21261e=_0xe1d2f2['locale'];if(!_0xe1d2f2['plugins']['has']('LegacyListEditing'))return;const _0x570d81=_0xe1d2f2['plugins']['get']('TrackChangesEditing'),_0x41e1f0=_0xe1d2f2['plugins']['has']('LegacyTodoListEditing');function _0x17ab67(_0x36962e){return()=>{const _0x3d6804=_0xe1d2f2['model']['document']['selection'],_0x558721=_0xe1d2f2['commands']['get'](_0x36962e);if(_0x558721['value'])return void _0xe1d2f2['execute']('paragraph',{});const _0x50f70f=_0x36962e['slice'](0x0,-0x4),_0x313ae4=function(_0x258bb5,_0x33a4ae,_0x3ada64){let _0x5a8986=Array['from'](_0x258bb5)['filter'](_0x5586ea=>function(_0x2c1df1,_0x45ddf0){return _0x45ddf0['checkChild'](_0x2c1df1['parent'],'listItem')&&!_0x45ddf0['isObject'](_0x2c1df1);}(_0x5586ea,_0x3ada64));_0x5a8986=_0x5a8986['filter'](_0x9a44ec=>!_0x9a44ec['is']('element','listItem')||_0x9a44ec['getAttribute']('listType')!=_0x33a4ae);const _0x45cbfb=new Set();for(const _0xa73bd2 of _0x5a8986)_0xa73bd2['is']('element','listItem')?_0x45cbfb['add'](Le(_0xa73bd2)):_0x45cbfb['add'](_0xa73bd2);return Array['from'](_0x45cbfb);}(_0x3d6804['getSelectedBlocks'](),_0x50f70f,_0xe1d2f2['model']['schema']);_0xe1d2f2['model']['change'](()=>{for(const _0x2ba07f of _0x313ae4)_0x570d81['markBlockFormat'](_0x2ba07f,{'commandName':_0x36962e,'commandParams':[{'forceValue':!_0x558721['value']}],'formatGroupId':'blockName'},Ee(_0x2ba07f));});};}function _0x37a38(_0x10c9ad){return()=>{const _0x19b8b6=function(_0x1316e0){let _0x568dcf=Array['from'](_0x1316e0);const _0x304ec5=_0x568dcf['findIndex'](_0x57b869=>'listItem'!=_0x57b869['name']);return _0x304ec5>-0x1&&(_0x568dcf=_0x568dcf['slice'](0x0,_0x304ec5)),_0x568dcf;}(_0xe1d2f2['model']['document']['selection']['getSelectedBlocks']()),_0x18c3c5=_0xe1d2f2['model']['createRange'](_0xe1d2f2['model']['createPositionAt'](_0x19b8b6[0x0],'before'),_0xe1d2f2['model']['createPositionAt'](_0x19b8b6[_0x19b8b6['length']-0x1],'end'));_0xe1d2f2['model']['change'](()=>{_0x570d81['markBlockFormat'](_0x18c3c5,{'commandName':_0x10c9ad,'commandParams':[],'formatGroupId':'listIndent'},function(_0x43acce){const _0x21906d=new Set();for(const _0x497fdc of _0x43acce){let _0x47993e=_0x497fdc['nextSibling'];for(;_0x47993e&&_0x47993e['getAttribute']('listIndent')>_0x497fdc['getAttribute']('listIndent');)_0x21906d['add'](_0x47993e),_0x47993e=_0x47993e['nextSibling'];}return Array['from'](_0x21906d);}(_0x19b8b6));});};}_0x570d81['enableCommand']('numberedList',_0x17ab67('numberedList')),_0x570d81['enableCommand']('bulletedList',_0x17ab67('bulletedList')),_0x41e1f0&&_0x570d81['enableCommand']('todoList',_0x17ab67('todoList')),_0x570d81['enableCommand']('indentList',_0x37a38('indentList')),_0x570d81['enableCommand']('outdentList',_0x37a38('outdentList')),_0x41e1f0&&_0x570d81['enableCommand']('checkTodoList',()=>{const _0x57a91f=_0xe1d2f2['commands']['get']('checkTodoList'),_0x1b3ea5=Array['from'](_0x57a91f['_selectedElements']);_0x1b3ea5['filter'](_0x16060c=>_0x16060c['getAttribute']('todoListChecked')!=_0x57a91f['value']),_0xe1d2f2['model']['change'](()=>{for(const _0x195de9 of _0x1b3ea5)_0x570d81['markBlockFormat'](_0x195de9,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x57a91f['value']}]});});}),_0x570d81['descriptionFactory']['registerElementLabel']('listItem',_0x5ee598=>c(_0x21261e,'ELEMENT_LIST_ITEM',_0x5ee598)),_0x570d81['descriptionFactory']['registerDescriptionCallback'](_0x4e445d=>{if('formatBlock'!=_0x4e445d['type']&&'formatInline'!=_0x4e445d['type'])return;const {data:_0x13b196}=_0x4e445d;if(_0x13b196){if('numberedList'==_0x13b196['commandName']||'bulletedList'==_0x13b196['commandName']||'todoList'==_0x13b196['commandName'])switch(_0x13b196['commandName']['replace']('List','')){case'bulleted':return _0x55f0d6(c(_0x21261e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x55f0d6(c(_0x21261e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x55f0d6(c(_0x21261e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x13b196['commandName'])return{'type':'format','content':c(_0x21261e,'*Indent:*\x20%0',c(_0x21261e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x13b196['commandName'])return{'type':'format','content':c(_0x21261e,'*Outdent:*\x20%0',c(_0x21261e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x13b196['commandName'])return _0x13b196['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x21261e,'*Check\x20item*')}:{'type':'format','content':c(_0x21261e,'*Uncheck\x20item*')};}function _0x55f0d6(_0x4bab2f){return{'type':'format','content':c(_0x21261e,'*Change\x20to:*\x20%0',_0x4bab2f)};}});}}function Le(_0x56007d){const _0x530146=_0x56007d['getAttribute']('listIndent');if(0x0==_0x530146)return _0x56007d;let _0x5f3cc6=_0x56007d;for(;_0x56007d['previousSibling']&&_0x56007d['previousSibling']['is']('element','listItem');){const _0x4c887c=_0x56007d['previousSibling']['getAttribute']('listIndent');if(_0x4c887c==_0x530146)_0x5f3cc6=_0x56007d['previousSibling'];else{if(_0x4c887c<_0x530146)break;}_0x56007d=_0x56007d['previousSibling'];}return _0x5f3cc6;}function Ee(_0x3d2406){const _0x1d7409=[];if(_0x3d2406['is']('element','listItem')&&_0x3d2406['getAttribute']('listIndent')>0x0){let _0x57cee5=_0x3d2406['nextSibling'];for(;_0x57cee5&&'listItem'==_0x57cee5['name']&&_0x57cee5['getAttribute']('listIndent')==_0x3d2406['getAttribute']('listIndent');)_0x1d7409['push'](_0x57cee5),_0x57cee5=_0x57cee5['nextSibling'];}return _0x1d7409;}class Q extends _0x32ae11{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4d98d3=this['editor']['config']['get']('list.properties'),_0x26e41a=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d98d3['styles']&&_0x26e41a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4d98d3['reversed']&&_0x26e41a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4d98d3['startIndex']&&_0x26e41a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x26e41a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x27e4e1,_0x55a9e9={}){const _0x2ab21b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x585a46=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2ab21b['markMultiRangeBlockFormat'](_0x585a46,{'commandName':'listStyle','commandParams':[{'type':_0x55a9e9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x500f0f,_0x476ce1={}){const _0x4666cc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4cd7fe=this['_getSuggestionBlocks'](_0xc97d4e=>_0xc97d4e['is']('element','listItem')&&'numbered'===_0xc97d4e['getAttribute']('listType'));if(_0x4cd7fe['length']<0x1)return;const _0x2bebc0=_0x4cd7fe['map'](_0x52ae71=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x52ae71,'before'),this['editor']['model']['createPositionAt'](_0x52ae71,0x0)));this['editor']['model']['change'](()=>{_0x4666cc['markMultiRangeBlockFormat'](_0x2bebc0,{'commandName':'listReversed','commandParams':[{'reversed':_0x476ce1['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x512a11,_0x4a7d29={}){const _0x5c7fba=this['editor']['plugins']['get']('TrackChangesEditing'),_0x220c8a=this['_getSuggestionBlocks'](_0x476c09=>_0x476c09['is']('element','listItem')&&'numbered'===_0x476c09['getAttribute']('listType'));if(_0x220c8a['length']<0x1)return;const _0x1ed2e7=_0x220c8a['map'](_0xe91c25=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xe91c25,'before'),this['editor']['model']['createPositionAt'](_0xe91c25,0x0)));this['editor']['model']['change'](()=>{_0x5c7fba['markMultiRangeBlockFormat'](_0x1ed2e7,{'commandName':'listStart','commandParams':[{'startIndex':_0x4a7d29['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xd013a){if('formatBlock'!=_0xd013a['type']&&'formatInline'!=_0xd013a['type'])return;const _0x5d254d=this['editor']['locale'],{data:_0x2db314}=_0xd013a;if(!_0x2db314)return;let _0x132b5a,_0x105d52;switch(_0x2db314['commandName']){case'listStyle':_0x132b5a='*Change\x20to:*\x20%0',_0x105d52={'type':'format','content':c(_0x5d254d,_0x132b5a,c(_0x5d254d,this['_getTranslationKeyForListStyle'](_0x2db314['commandParams'][0x0]['type'])))};break;case'listReversed':_0x132b5a=_0x2db314['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x105d52={'type':'format','content':c(_0x5d254d,_0x132b5a)};break;case'listStart':_0x132b5a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x105d52={'type':'format','content':c(_0x5d254d,_0x132b5a,_0x2db314['commandParams'][0x0]['startIndex'])};}return _0x105d52;}['_getSuggestionBlocksForListStyle'](){const _0x4c5675=this['editor']['plugins']['get']('LegacyListUtils');let _0x4a275e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4a275e[0x0]?.['is']('element','listItem')&&_0x4a275e['unshift'](..._0x4c5675['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4a275e[_0x4a275e['length']-0x1]?.['is']('element','listItem')&&_0x4a275e['push'](..._0x4c5675['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4a275e=[...new Set(_0x4a275e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4a275e=_0x4a275e['filter'](_0x4f14e6=>_0x4f14e6['is']('element','listItem'))),_0x4a275e;}['_getSuggestionBlocks'](_0x3fc9c2){const _0x14933a=this['editor']['plugins']['get']('LegacyListUtils');let _0x5aea5b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3fc9c2)['map'](_0x5a77ca=>{const _0x30a589=this['editor']['model']['createPositionAt'](_0x5a77ca,0x0);return[..._0x14933a['getSiblingNodes'](_0x30a589,'backward'),..._0x14933a['getSiblingNodes'](_0x30a589,'forward')];})['flat']();return _0x5aea5b=[...new Set(_0x5aea5b)],_0x5aea5b;}['_getTranslationKeyForListStyle'](_0x4dffe3){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4dffe3)||'default')['toUpperCase']()+'_LIST_'+_0x4dffe3['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x32ae11{['afterInit'](){const _0x35286a=this['editor'];if(!_0x35286a['plugins']['has']('MediaEmbedEditing'))return;const _0x105cab=_0x35286a['plugins']['get']('TrackChangesEditing'),_0x20355a=_0x35286a['locale'];_0x105cab['enableCommand']('mediaEmbed'),_0x105cab['descriptionFactory']['registerElementLabel']('media',_0x202749=>c(_0x20355a,'ELEMENT_MEDIA',_0x202749)),_0x35286a['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5b0755,{writer:_0x513309,options:_0x476970})=>{if(_0x476970['showSuggestionHighlights'])return _0x513309['createEmptyElement']('div');},'converterPriority':'high'}),_0x35286a['data']['downcastDispatcher']['on']('attribute:url:media',(_0xc87c93,_0x43a2e8,_0x4c15b1)=>{_0x4c15b1['options']['showSuggestionHighlights']&&_0xc87c93['stop']();},{'priority':'high'});}}class pt extends _0x32ae11{['afterInit'](){const _0x3d8354=this['editor'];_0x3d8354['plugins']['has']('MentionEditing')&&_0x3d8354['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x32ae11{['afterInit'](){const _0x2110fc=this['editor'];if(!_0x2110fc['plugins']['has']('MergeFieldsEditing'))return;const _0x4109b3=_0x2110fc['plugins']['get']('TrackChangesEditing'),_0x32cc66=_0x2110fc['locale'];_0x4109b3['enableCommand']('insertMergeField'),_0x4109b3['enableCommand']('insertMergeFieldBlock'),_0x4109b3['enableCommand']('insertMergeFieldImage'),_0x4109b3['descriptionFactory']['registerElementLabel']('mergeField',_0x3a590f=>c(_0x32cc66,'ELEMENT_MERGE_FIELD',_0x3a590f)),_0x4109b3['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x22958a=>c(_0x32cc66,'ELEMENT_MERGE_FIELD',_0x22958a)),_0x4109b3['descriptionFactory']['registerDescriptionCallback'](_0x4639fb=>{if('insertion'!=_0x4639fb['type']&&'deletion'!=_0x4639fb['type'])return;const _0x7a3d50=_0x4639fb['getContainedElement']();if(null==_0x7a3d50)return;const _0x584bc8=_0x2110fc['plugins']['get']('MergeFieldsEditing');let _0x2d56dd;switch(_0x584bc8['getMergeFieldType'](_0x7a3d50)){case null:return;case'image':{const _0x2b59fe=_0x584bc8['unwrapAffixes'](_0x7a3d50['getAttribute']('src'));_0x2d56dd=_0x584bc8['getLabel'](_0x2b59fe)||_0x2b59fe;break;}default:{const _0x22cc32=_0x7a3d50['getAttribute']('id');_0x2d56dd=_0x584bc8['getLabel'](_0x22cc32)||_0x22cc32;break;}}return'insertion'==_0x4639fb['type']?{'type':'insertion','content':c(_0x32cc66,'*Insert:*\x20%0','\x22'+_0x2d56dd+'\x22\x20'+c(_0x32cc66,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x32cc66,'*Remove:*\x20%0','\x22'+_0x2d56dd+'\x22\x20'+c(_0x32cc66,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x32ae11{['afterInit'](){const _0x4312d9=this['editor'],_0x17baca=_0x4312d9['plugins']['get']('TrackChangesEditing');_0x4312d9['plugins']['has']('MultiLevelList')&&(_0x17baca['enableDefaultAttributesIntegration']('multiLevelList'),_0x17baca['registerBlockAttribute']('listMarkerStyle'),_0x17baca['descriptionFactory']['registerDescriptionCallback'](_0x31ce14=>this['handleDescriptions'](_0x31ce14)));}['handleDescriptions'](_0x3c9b26){const _0x1449c2=this['editor']['locale'],{data:_0xf46fca}=_0x3c9b26,_0x4ad154={'type':'format','content':''};if(_0xf46fca&&'listMarkerStyle'==_0xf46fca['key']){if(!_0xf46fca['oldValue'])return{'type':'format','content':c(_0x1449c2,'*Set\x20format:*\x20%0',c(_0x1449c2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xf46fca['newValue']+')'};if(!_0xf46fca['newValue']){let _0x52d654=_0x3c9b26['head'];for(;_0x52d654;){if(_0x52d654['data']&&'listType'==_0x52d654['data']['key']&&_0x52d654['data']['newValue'])return _0x4ad154;_0x52d654=_0x52d654['next'];}return{'type':'format','content':c(_0x1449c2,'*Remove\x20format:*\x20%0',c(_0x1449c2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xf46fca['oldValue']+')'};}}}}class bt extends _0x32ae11{['afterInit'](){const _0x11533b=this['editor'];if(!_0x11533b['plugins']['has']('PageBreakEditing'))return;_0x11533b['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x7bada6=_0x11533b['plugins']['get']('TrackChangesEditing'),_0x79cb87=_0x11533b['locale'];_0x7bada6['descriptionFactory']['registerElementLabel']('pageBreak',_0x2a0593=>c(_0x79cb87,'ELEMENT_PAGE_BREAK',_0x2a0593));}}class yt extends _0x32ae11{['afterInit'](){const _0x448da2=this['editor'];if(!_0x448da2['plugins']['has']('Paragraph'))return;const _0x36513e=_0x448da2['locale'],_0xfd88f6=_0x448da2['plugins']['get']('TrackChangesEditing');_0xfd88f6['descriptionFactory']['registerElementLabel']('paragraph',_0x293444=>c(_0x36513e,'ELEMENT_PARAGRAPH',_0x293444)),_0xfd88f6['enableDefaultAttributesIntegration']('paragraph'),_0xfd88f6['enableCommand']('insertParagraph'),_0x448da2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x448da2),{'priority':'highest'}),_0x448da2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x59c682,_0x1088d3,_0x3e0f35)=>{_0x3e0f35['options']['showSuggestionHighlights']&&nr(_0x448da2,{'showActiveMarker':!0x1})(_0x59c682,_0x1088d3,_0x3e0f35);},{'priority':'highest'});const _0x1848f6=_0xfd88f6['descriptionFactory'];_0x1848f6['registerDescriptionCallback'](_0x2a3750=>{if('insertion'!==_0x2a3750['type'])return;const {start:_0x36c83e,end:_0x59ca16}=_0x2a3750['getFirstRange']();if(!_0x36c83e['isTouching'](_0x59ca16)||!_0x36c83e['nodeAfter'])return;const _0x3d5d7b=_0x448da2['model']['schema'],_0x47f280=_0x36c83e['nodeAfter'];return _0x3d5d7b['isBlock'](_0x47f280)&&!_0x3d5d7b['isLimit'](_0x47f280)&&_0x3d5d7b['checkChild'](_0x47f280,'$text')?{'type':'insertion','content':c(_0x36513e,'*Insert:*\x20%0',_0x1848f6['getItemLabel'](_0x47f280,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6e2c2a=this['editor'],_0xc5e5a2=_0x6e2c2a['locale'];_0x6e2c2a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a212c=>{if('formatBlock'!=_0x1a212c['type'])return;const {data:_0x20811e}=_0x1a212c;return _0x20811e&&'paragraph'==_0x20811e['commandName']?{'type':'format','content':c(_0xc5e5a2,'*Change\x20to:*\x20%0',c(_0xc5e5a2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x26280a,{showActiveMarker:_0x1efcb6=!0x0}={}){return(_0x5e92fa,_0x46931f,_0x6b73c1)=>{const _0x31b20c=_0x26280a['plugins']['get']('TrackChangesEditing'),_0x58de50=_0x46931f['markerRange']['start'],_0x436cd3=_0x46931f['markerRange']['end'],_0x4f62ea=_0x26280a['model']['schema'];if(!_0x58de50['isTouching'](_0x436cd3)||!_0x58de50['nodeAfter'])return;const _0x421878=_0x58de50['nodeAfter'];if(_0x4f62ea['isBlock'](_0x421878)&&!_0x4f62ea['isLimit'](_0x421878)&&_0x4f62ea['checkChild'](_0x421878,'$text')){if(!_0x6b73c1['consumable']['consume'](_0x46931f['markerRange'],_0x5e92fa['name']))return;const {authorId:_0x57681e}=_0x31b20c['_splitMarkerName'](_0x46931f['markerName']),_0x57d5f6=_0x6b73c1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x57681e}),_0xc1de47=_0x6b73c1['mapper']['toViewPosition'](_0x436cd3);_0x1efcb6&&_0x31b20c['activeMarkers']['includes'](_0x46931f['markerName'])&&_0x6b73c1['writer']['addClass']('ck-suggestion-marker--active',_0x57d5f6),_0x6b73c1['writer']['insert'](_0xc1de47,_0x57d5f6),_0x6b73c1['mapper']['bindElementToMarker'](_0x57d5f6,_0x46931f['markerName']);}};}class jt extends _0x32ae11{['afterInit'](){const _0x5646b4=this['editor'];_0x5646b4['commands']['get']('replaceSource')&&_0x5646b4['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x32ae11{['afterInit'](){const _0x3a532f=this['editor'];if(!_0x3a532f['plugins']['has']('RemoveFormatEditing'))return;_0x3a532f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13a7b5=this['editor'];_0x13a7b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x478557=>{if('formatBlock'!=_0x478557['type']&&'formatInline'!=_0x478557['type'])return;const {data:_0x36a5e1}=_0x478557;return _0x36a5e1&&'removeFormat'==_0x36a5e1['commandName']?{'type':'format','content':c(_0x13a7b5['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x32ae11{['afterInit'](){const _0x54639b=this['editor'];if(!_0x54639b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x58b3f1=_0x54639b['plugins']['get']('TrackChangesEditing');_0x58b3f1['enableCommand']('goToPreviousRestrictedEditingException'),_0x58b3f1['enableCommand']('goToNextRestrictedEditingException');const _0x4be002=_0x54639b['plugins']['get']('RestrictedEditingModeEditing');_0x4be002['enableCommand']('trackChanges'),_0x4be002['enableCommand']('acceptSuggestion'),_0x4be002['enableCommand']('discardSuggestion'),_0x4be002['enableCommand']('acceptAllSuggestions'),_0x4be002['enableCommand']('discardAllSuggestions'),_0x4be002['enableCommand']('acceptSelectedSuggestions'),_0x4be002['enableCommand']('discardSelectedSuggestions');}}class It extends _0x32ae11{static get['requires'](){return[_0x5ecba6];}['init'](){const _0x11e39f=this['editor'],_0x5f2f6d=_0x11e39f['plugins']['get']('TrackChangesEditing');_0x5f2f6d['enableCommand']('shiftEnter'),_0x11e39f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x11e39f),{'priority':'high'}),_0x11e39f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x11e39f),{'priority':'high'}),_0x11e39f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1f3ef4,_0x20a0c2,_0x4ab042)=>{_0x4ab042['options']['showSuggestionHighlights']&&je(_0x11e39f,{'showActiveMarker':!0x1})(_0x1f3ef4,_0x20a0c2,_0x4ab042);}),_0x5f2f6d['descriptionFactory']['registerElementLabel']('softBreak',_0x529ab4=>c(_0x11e39f['locale'],'ELEMENT_LINE_BREAK',_0x529ab4));}}function je(_0x227d0d,{showActiveMarker:_0x46a9fc=!0x0}={}){return(_0x43751e,_0x4b8302,_0x54228b)=>{const _0x551e60=_0x227d0d['plugins']['get']('TrackChangesEditing');if(!_0x54228b['consumable']['test'](_0x4b8302['markerRange'],_0x43751e['name']))return;const _0x432e10=_0x227d0d['model'];for(const _0x509ce4 of _0x4b8302['markerRange']['getItems']()){if(!_0x509ce4['is']('element','softBreak'))continue;const _0x4a641b='deletion'==_0x4b8302['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x49f0ca}=_0x551e60['_splitMarkerName'](_0x4b8302['markerName']),_0x3ded77=_0x54228b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4a641b,'data-author-id':_0x49f0ca}),_0x482a47=_0x54228b['mapper']['toViewPosition'](_0x432e10['createPositionBefore'](_0x509ce4));_0x46a9fc&&_0x551e60['activeMarkers']['includes'](_0x4b8302['markerName'])&&_0x54228b['writer']['addClass']('ck-suggestion-marker--active',_0x3ded77),_0x54228b['writer']['insert'](_0x482a47,_0x3ded77),_0x54228b['mapper']['bindElementToMarker'](_0x3ded77,_0x4b8302['markerName']);}};}class _t extends _0x32ae11{['afterInit'](){const _0x1f22f0=this['editor'],_0x7196e3=_0x1f22f0['model'],_0x408be9=_0x1f22f0['locale'];if(!_0x1f22f0['plugins']['has']('StandardEditingModeEditing'))return;const _0x4002f7=_0x1f22f0['plugins']['get']('TrackChangesEditing'),_0x2b83c8='restrictedEditingException',_0x6ca215=_0x1f22f0['commands']['get'](_0x2b83c8);_0x4002f7['enableCommand'](_0x2b83c8,(_0x452807,_0x18128f={})=>{const _0xd217d3=_0x7196e3['document']['selection'];if(_0xd217d3['isCollapsed'])return void _0x452807(_0x18128f);const _0x178e5d=void 0x0!==_0x18128f['forceValue']?_0x18128f['forceValue']:!_0x6ca215['value'];_0x7196e3['change'](()=>{const _0x2a1fdf=Array['from'](_0xd217d3['getRanges']());for(const _0x1baa38 of _0x2a1fdf){const _0xafdeaa=_0x178e5d?[_0x1baa38]:io(_0x2b83c8,_0x1baa38,_0x7196e3);for(const _0x2ceb12 of _0xafdeaa)_0x4002f7['markInlineFormat'](_0x2ceb12,{'commandName':_0x2b83c8,'commandParams':[{'forceValue':_0x178e5d}]});}});}),_0x4002f7['descriptionFactory']['registerDescriptionCallback'](_0x215993=>{if('formatBlock'!=_0x215993['type']&&'formatInline'!=_0x215993['type'])return;const {data:_0x1ec0e5}=_0x215993;return _0x1ec0e5&&_0x1ec0e5['commandName']==_0x2b83c8?_0x1ec0e5['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x408be9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x408be9,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x32ae11{['afterInit'](){const _0xc25949=this['editor'];if(!_0xc25949['plugins']['has']('Style')||!_0xc25949['plugins']['has']('DataSchema'))return;const _0x5afdab=_0xc25949['plugins']['get']('TrackChangesEditing'),_0xb3ca66=_0xc25949['locale'],_0x546139=_0xc25949['config']['get']('style')||{},_0x4cc670=_0xc25949['plugins']['get']('GeneralHtmlSupport'),_0xdf5568=_0xc25949['plugins']['get']('StyleUtils')['normalizeConfig'](_0xc25949['plugins']['get']('DataSchema'),_0x546139['definitions']);_0x5afdab['enableDefaultAttributesIntegration']('style');const _0x49a9df=new Set();for(const _0x1dc2b5 of _0xdf5568['block']){const _0x1b8aa2=_0x4cc670['getGhsAttributeNameForElement'](_0x1dc2b5['element']);_0x49a9df['add'](_0x1b8aa2);}const _0x2383f2=new Set();for(const _0x22eba8 of _0xdf5568['inline']){const _0x462f51=_0x4cc670['getGhsAttributeNameForElement'](_0x22eba8['element']);_0x2383f2['add'](_0x462f51);for(const _0x236f60 of _0x22eba8['ghsAttributes'])_0x2383f2['add'](_0x236f60);}for(const _0x38694a of _0x49a9df)_0x5afdab['registerBlockAttribute'](_0x38694a),_0x5afdab['descriptionFactory']['registerAttributeLabel'](_0x38694a,c(_0xb3ca66,'FORMAT_STYLE'));for(const _0xbc66c7 of _0x2383f2)_0x5afdab['registerInlineAttribute'](_0xbc66c7),_0x5afdab['descriptionFactory']['registerAttributeLabel'](_0xbc66c7,c(_0xb3ca66,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5026fe=this['editor'],_0x30f77d=_0x5026fe['locale'];_0x5026fe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47783b=>{if('formatBlock'!=_0x47783b['type']&&'formatInline'!=_0x47783b['type'])return;const {data:_0x19b115}=_0x47783b;return _0x19b115&&'style'===_0x19b115['commandName']?_0x19b115['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x30f77d,'*Set\x20format:*\x20%0',_0x19b115['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x30f77d,'*Remove\x20format:*\x20%0',_0x19b115['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x32ae11{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4e9a83){super(_0x4e9a83),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1b97c1=this['editor'],_0x38cec4=_0x1b97c1['model']['document']['selection'];if(!_0x1b97c1['plugins']['has']('TableEditing'))return;const _0x47b936=_0x1b97c1['locale'],_0x141a2f=_0x1b97c1['plugins']['get']('TrackChangesEditing'),_0x250c4f=_0x1b97c1['plugins']['get']('TableUtils');_0x141a2f['descriptionFactory']['registerElementLabel']('table',_0x45df3b=>c(_0x47b936,'ELEMENT_TABLE',_0x45df3b)),this['_setupColumnsRowsFixing'](),_0x141a2f['enableCommand']('insertTable'),_0x141a2f['enableCommand']('selectTableRow'),_0x141a2f['enableCommand']('selectTableColumn');for(const _0x4a772b of['insertTableRowAbove','insertTableRowBelow']){const _0x3e96ad=_0x1b97c1['commands']['get'](_0x4a772b);_0x141a2f['enableCommand'](_0x4a772b,_0x43766a=>{_0x1b97c1['model']['change'](_0x37ec17=>{_0x43766a();const _0x41b81d='above'===_0x3e96ad['order'],_0x531007=_0x250c4f['getSelectionAffectedTableCells'](_0x38cec4),_0x44ea26=_0x250c4f['getRowIndexes'](_0x531007),_0x8f376=_0x41b81d?_0x44ea26['first']-0x1:_0x44ea26['last']+0x1,_0x3a2560=_0x531007[0x0]['findAncestor']('table'),_0x26910c=_0x250c4f['createTableWalker'](_0x3a2560,{'startRow':_0x8f376,'endRow':_0x8f376}),_0x56865c=Array['from'](_0x26910c)['map'](_0x1d331f=>_0x37ec17['createRangeOn'](_0x1d331f['cell']));_0x141a2f['markMultiRangeInsertion'](_0x56865c,'tableRow');});});}for(const _0x577af0 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5d18d9=_0x1b97c1['commands']['get'](_0x577af0);_0x141a2f['enableCommand'](_0x577af0,_0x3e47ca=>{_0x1b97c1['model']['change'](_0x4197e2=>{_0x3e47ca();const _0x241252='left'===_0x5d18d9['order'],_0x94d56f=_0x250c4f['getSelectionAffectedTableCells'](_0x38cec4),_0x2233b7=_0x250c4f['getColumnIndexes'](_0x94d56f),_0x3c967b=_0x241252?_0x2233b7['first']-0x1:_0x2233b7['last']+0x1,_0x4ec852=_0x94d56f[0x0]['findAncestor']('table'),_0x1aef8e=_0x250c4f['createTableWalker'](_0x4ec852,{'startRow':0x0,'column':_0x3c967b,'includeAllSlots':!0x1}),_0x2d6211=Array['from'](_0x1aef8e)['map'](_0x26ba44=>_0x4197e2['createRangeOn'](_0x26ba44['cell']));_0x141a2f['markMultiRangeInsertion'](_0x2d6211,'tableColumn');});});}for(const _0x2c800b of['removeTableRow','removeTableColumn']){const _0x2243db=_0x2c800b['substr'](0xb),_0x373dda=_0x2243db['toLowerCase'](),_0x4d66d0=_0x373dda['substr'](0x0,0x3)+'span',_0x212d1a='table'+_0x2243db,_0x56fb3f='min'+_0x2243db,_0xe4e58='max'+_0x2243db;_0x141a2f['enableCommand'](_0x2c800b,()=>{_0x1b97c1['model']['change'](_0x27047a=>{const _0xa6c7f9=_0x250c4f['getSelectionAffectedTableCells'](_0x38cec4),_0x43c49e=_0xa6c7f9[0x0]['findAncestor']('table');let _0xe28413;if('removeTableRow'==_0x2c800b){const _0x23ee45=_0x250c4f['getRowIndexes'](_0xa6c7f9);_0xe28413={'startRow':_0x23ee45['first'],'endRow':_0x23ee45['last'],'includeAllSlots':!0x0};}else{const _0x6798f7=_0x250c4f['getColumnIndexes'](_0xa6c7f9);_0xe28413={'startColumn':_0x6798f7['first'],'endColumn':_0x6798f7['last'],'includeAllSlots':!0x0};}const _0xbab738=_0x250c4f['createTableWalker'](_0x43c49e,_0xe28413),_0xa190d7=Array['from'](_0xbab738)['map'](({cell:_0x2e89f7})=>_0x2e89f7),_0x294e0e=Ne(_0xa190d7['filter'](_0x315e0c=>_0x315e0c['hasAttribute'](_0x4d66d0))),_0x2bf41d=Ne(_0xa190d7['filter'](_0x49956f=>!_0x49956f['hasAttribute'](_0x4d66d0)))['map'](_0x33d32c=>_0x27047a['createRangeOn'](_0x33d32c)),_0x26901e=_0x141a2f['markMultiRangeDeletion'](_0x2bf41d,_0x212d1a);if(_0x26901e&&('tableRow'==_0x26901e['subType']||'tableColumn'==_0x26901e['subType'])){const _0x368838=this['_getSuggestionCoords'](_0x26901e);for(const _0x195cb9 of _0x294e0e){const _0x49b208=_0x27047a['createRangeOn'](_0x195cb9),_0x50eb54=_0x250c4f['getCellLocation'](_0x195cb9),_0xcae98d=_0x195cb9['getAttribute'](_0x4d66d0)-0x1,_0x47f64e=_0x368838[_0x56fb3f],_0x19cb26=_0x368838[_0xe4e58];_0x47f64e<=_0x50eb54[_0x373dda]&&_0x50eb54[_0x373dda]+_0xcae98d<=_0x19cb26&&_0x26901e['addRange'](_0x49b208);}}});});}function _0x529cac(_0x3ad591){const _0x3e0ef7=Array['from'](_0x38cec4['getRanges']())['map'](_0x5c0a8=>_0x54bc73['fromRange'](_0x5c0a8));_0x1b97c1['model']['change'](_0x42cfdb=>{const _0x4ad8de=_0x42cfdb['batch'];_0x3ad591=_0x3ad591['filter'](_0x4b9d6b=>'$graveyard'!=_0x4b9d6b['root']['rootName']),_0x42cfdb['setSelection'](_0x3ad591),_0x1b97c1['commands']['get']('removeTableRow')['refresh'](),_0x1b97c1['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1b97c1['model']['enqueueChange'](()=>{_0x1b97c1['model']['enqueueChange'](_0x4ad8de,_0x2a11ae=>{const _0x22de53=_0x3e0ef7['filter'](_0x4e1a5a=>'$graveyard'!=_0x4e1a5a['root']['rootName']);_0x22de53['length']>0x0&&_0x2a11ae['setSelection'](_0x22de53);for(const _0x47e107 of _0x3e0ef7)_0x47e107['detach']();});});});}function _0x3e0a83(_0xc1ff1e){_0x1b97c1['model']['change'](_0x1725bf=>{const _0x1b7f47=Array['from'](_0x38cec4['getRanges']())['map'](_0x13c8ae=>_0x54bc73['fromRange'](_0x13c8ae)),_0x2dc35a=[];for(const _0x5d6f06 of _0xc1ff1e)for(const _0x503f67 of _0x5d6f06['getItems']({'shallow':!0x0}))_0x2dc35a['push'](_0x503f67);for(const _0x22fd25 of _0x2dc35a)'$graveyard'!=_0x22fd25['root']['rootName']&&(_0x1725bf['setSelection'](_0x1725bf['createPositionAt'](_0x22fd25,0x0)),_0x1b97c1['commands']['get']('removeTableColumn')['refresh'](),_0x1b97c1['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xf56815=_0x1b7f47['filter'](_0x375819=>'$graveyard'!=_0x375819['root']['rootName']);_0xf56815['length']>0x0&&_0x1725bf['setSelection'](_0xf56815);for(const _0x2dd83b of _0x1b7f47)_0x2dd83b['detach']();});}function _0x1b7030(_0x36b276,_0x43b82e){return _0x43b82e['every'](_0x22b246=>_0x36b276['some'](_0x523990=>_0x523990['end']['isEqual'](_0x22b246['start'])||_0x22b246['end']['isEqual'](_0x523990['start'])));}function _0x31ba8c(_0x3f78f7,_0x579d18){return!_0x3f78f7['some'](_0x114ea6=>_0x579d18['some'](_0x5ebbcc=>_0x114ea6['isIntersecting'](_0x5ebbcc)))&&_0x3f78f7['some'](_0x1c55cf=>_0x579d18['some'](_0x52e042=>_0x1c55cf['end']['isTouching'](_0x52e042['start'])));}_0x1b97c1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x53e1af,_0x468215,_0x6aad02)=>{if(!_0x6aad02['options']['showSuggestionHighlights'])return;const _0x5d74e4=_0x468215['item'];if(!_0x5d74e4)return;const _0x1717c7=_0x6aad02['mapper']['toViewElement'](_0x5d74e4);function _0x35adb0(_0x151c8e){return Array['isArray'](_0x151c8e)?_0x151c8e:[_0x151c8e];}_0x1717c7&&'tableCell'===_0x5d74e4['name']&&_0x36f102(_0x1717c7,_0x6aad02['writer'],(_0x30127e,_0x160563,_0x547c11)=>_0x547c11['addClass'](_0x35adb0(_0x160563['classes']),_0x30127e),(_0x1235d6,_0x3d87df,_0x148e68)=>_0x148e68['removeClass'](_0x35adb0(_0x3d87df['classes']),_0x1235d6));},{'priority':'highest'}),_0x141a2f['descriptionFactory']['registerDescriptionCallback'](_0x50424c=>{if('insertion'!=_0x50424c['type']&&'deletion'!=_0x50424c['type'])return;const _0x5ecacf=_0x50424c['getContainedElement']();if(null!=_0x5ecacf&&_0x5ecacf['is']('element','table')){if('insertion'==_0x50424c['type']){const _0x19d48b=_0x50424c['getItems']()['filter'](_0x57451a=>_0x57451a['is']('$textProxy'))['map'](_0x25c7ee=>_0x25c7ee['data']);if(_0x19d48b['length'])return{'type':'insertion','content':c(_0x47b936,'*Insert:*\x20%0',c(_0x47b936,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x19d48b['join']('\x20')+'\x22'))};}if('deletion'==_0x50424c['type']){const _0x499aa0=_0x50424c['getItems']()['filter'](_0x3304aa=>_0x3304aa['is']('$textProxy'))['map'](_0x3de5e1=>_0x3de5e1['data']);if(_0x499aa0['length'])return{'type':'deletion','content':c(_0x47b936,'*Remove:*\x20%0',c(_0x47b936,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x499aa0['join']('\x20')+'\x22'))};}}}),_0x141a2f['descriptionFactory']['registerDescriptionCallback'](_0x40ce74=>{if('tableRow'==_0x40ce74['subType']){const _0x34378f=_0x40ce74['getItems']()['filter'](_0x336177=>_0x336177['is']('$textProxy'))['map'](_0xa5d44c=>_0xa5d44c['data']),_0x1fd7a2=this['_getSuggestionCoords'](_0x40ce74),_0x1a697d=_0x1fd7a2['maxRow']-_0x1fd7a2['minRow']+0x1;if('insertion'==_0x40ce74['type'])return _0x34378f['length']?{'type':'insertion','content':c(_0x47b936,'*Insert:*\x20%0',c(_0x47b936,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1a697d,'\x22'+_0x34378f['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x47b936,'*Insert:*\x20%0',c(_0x47b936,'ELEMENT_TABLE_ROW',_0x1a697d))};if('deletion'==_0x40ce74['type'])return _0x34378f['length']?{'type':'deletion','content':c(_0x47b936,'*Remove:*\x20%0',c(_0x47b936,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1a697d,'\x22'+_0x34378f['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x47b936,'*Remove:*\x20%0',c(_0x47b936,'ELEMENT_TABLE_ROW',_0x1a697d))};}if('tableColumn'==_0x40ce74['subType']){const _0x44bfc1=_0x40ce74['getItems']()['filter'](_0x319412=>_0x319412['is']('$textProxy'))['map'](_0x50d655=>_0x50d655['data']),_0x42eb36=this['_getSuggestionCoords'](_0x40ce74),_0x6297e5=_0x42eb36['maxColumn']-_0x42eb36['minColumn']+0x1;if('insertion'==_0x40ce74['type'])return _0x44bfc1['length']?{'type':'insertion','content':c(_0x47b936,'*Insert:*\x20%0',c(_0x47b936,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x6297e5,'\x22'+_0x44bfc1['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x47b936,'*Insert:*\x20%0',c(_0x47b936,'ELEMENT_TABLE_COLUMN',_0x6297e5))};if('deletion'==_0x40ce74['type'])return _0x44bfc1['length']?{'type':'deletion','content':c(_0x47b936,'*Remove:*\x20%0',c(_0x47b936,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x6297e5,'\x22'+_0x44bfc1['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x47b936,'*Remove:*\x20%0',c(_0x47b936,'ELEMENT_TABLE_COLUMN',_0x6297e5))};}}),_0x141a2f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x529cac),_0x141a2f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x529cac),_0x141a2f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3e0a83),_0x141a2f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3e0a83),_0x141a2f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1b7030),_0x141a2f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1b7030),_0x141a2f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x31ba8c),_0x141a2f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x31ba8c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3dfd54=this['editor'],_0x36b611=_0x3dfd54['model']['document']['selection'];return(_0x113d6f,_0x66dd38)=>{_0x3dfd54['model']['change'](_0x878598=>{const {commandName:_0x31b126,commandParams:_0x3fd052}=_0x66dd38;let _0x526692=_0x113d6f[0x0]['end']['nodeBefore'];_0x3fd052&&_0x3fd052[0x0]&&!0x1===_0x3fd052[0x0]['forceValue']&&(_0x526692=_0x113d6f[0x0]['start']['nodeAfter']);const _0x4baa33=_0x878598['createRangeIn'](_0x526692);if('$graveyard'==_0x4baa33['root']['rootName'])return;const _0x52adc9=Array['from'](_0x36b611['getRanges']())['map'](_0x1f3a01=>_0x54bc73['fromRange'](_0x1f3a01));_0x878598['setSelection'](_0x4baa33),_0x3dfd54['commands']['get'](_0x31b126)['refresh'](),_0x3fd052['push']({'forceDefaultExecution':!0x0}),_0x3dfd54['execute'](_0x31b126,..._0x3fd052);const _0x443638=_0x52adc9['filter'](_0x5f3e97=>'$graveyard'!=_0x5f3e97['root']['rootName']);_0x443638['length']>0x0&&_0x878598['setSelection'](_0x443638);for(const _0x226b7a of _0x52adc9)_0x226b7a['detach']();});};}['_getCoordsForCells'](_0x5a6bc3){const _0x10f523=this['editor']['plugins']['get']('TableUtils');let _0x177261=Number['MAX_SAFE_INTEGER'],_0x3bf31b=Number['MIN_SAFE_INTEGER'],_0x325789=Number['MAX_SAFE_INTEGER'],_0x4cb2fa=Number['MIN_SAFE_INTEGER'];for(const _0x39f758 of _0x5a6bc3){if('$graveyard'==_0x39f758['root']['rootName'])continue;const {row:_0x279458,column:_0xf24d26}=_0x10f523['getCellLocation'](_0x39f758),_0x414ed9=_0x39f758['hasAttribute']('rowspan')?_0x39f758['getAttribute']('rowspan')-0x1:0x0,_0x4cc933=_0x39f758['hasAttribute']('colspan')?_0x39f758['getAttribute']('colspan')-0x1:0x0;_0x177261=_0x279458<_0x177261?_0x279458:_0x177261,_0x3bf31b=_0x279458+_0x414ed9>_0x3bf31b?_0x279458+_0x414ed9:_0x3bf31b,_0x325789=_0xf24d26<_0x325789?_0xf24d26:_0x325789,_0x4cb2fa=_0xf24d26+_0x4cc933>_0x4cb2fa?_0xf24d26+_0x4cc933:_0x4cb2fa;}return{'minRow':_0x177261,'maxRow':_0x3bf31b,'minColumn':_0x325789,'maxColumn':_0x4cb2fa};}['_setupColumnsRowsFixing'](){const _0x4aed21=this['editor'],_0xfe6fb4=_0x4aed21['plugins']['get']('TrackChangesEditing'),_0xfc72e1=_0x4aed21['plugins']['get']('TableUtils');_0x4aed21['model']['document']['on']('change:data',()=>{const _0x307ba5=Array['from'](_0x4aed21['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x991aec,data:_0x455cf1}of _0x307ba5){const {group:_0x3af02e,id:_0x5c708e,subType:_0x1813c5}=_0xfe6fb4['_splitMarkerName'](_0x991aec);if('suggestion'!=_0x3af02e)continue;if(null!=_0x455cf1['oldRange'])continue;const _0x7f7cdd=_0xfe6fb4['getSuggestion'](_0x5c708e);this['_tablePostFixingSubtypes']['includes'](_0x1813c5)&&this['_tableSuggestions']['add'](_0x7f7cdd);}},{'priority':'low'});const _0x44e34d=(_0x240213,_0x157bf7)=>{let _0xa3e32c=!0x1;const _0x59bb3b=_0x157bf7['createRangeOn'](_0x240213),_0x2a2414=_0x240213['findAncestor']('table'),_0x1803a9=_0xfc72e1['getCellLocation'](_0x240213);for(const _0x55d5b3 of this['_tableSuggestions']){const _0x45d9cd=_0x55d5b3['subType'],_0x21df55=_0x45d9cd['startsWith']('tablePaste'),_0x1a12bf=_0x45d9cd['substr'](_0x21df55?0xa:0x5),_0x6ee4b1=_0x1a12bf['toLowerCase'](),_0x3eeb03=_0x6ee4b1['substr'](0x0,0x3)+'span',_0x4be72e='min'+_0x1a12bf,_0xb9e1f7='max'+_0x1a12bf;if(!_0x55d5b3['isInContent'])continue;if(_0x2a2414!=_0x55d5b3['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x55d5b3['isIntersectingWithRange'](_0x59bb3b))continue;const _0x3b478c=_0x240213['hasAttribute'](_0x3eeb03)?_0x240213['getAttribute'](_0x3eeb03)-0x1:0x0,_0xbc9340=this['_getSuggestionCoords'](_0x55d5b3),_0x158c3c=_0xbc9340[_0x4be72e],_0x41ae4a=_0xbc9340[_0xb9e1f7];_0x158c3c<=_0x1803a9[_0x6ee4b1]&&_0x1803a9[_0x6ee4b1]+_0x3b478c<=_0x41ae4a&&(_0x55d5b3['addRange'](_0x59bb3b),_0xa3e32c=!0x0);}return _0xa3e32c;};_0x4aed21['model']['document']['registerPostFixer'](_0x220f76=>{let _0x5172b5=!0x1;for(const _0x5edd7b of _0x4aed21['model']['document']['differ']['getChanges']())if('insert'==_0x5edd7b['type']){if('tableRow'==_0x5edd7b['name']){for(const _0x4452ea of _0x5edd7b['position']['nodeAfter']['getChildren']())_0x5172b5=_0x5172b5||_0x44e34d(_0x4452ea,_0x220f76);}else'tableCell'==_0x5edd7b['name']&&(_0x5172b5=_0x5172b5||_0x44e34d(_0x5edd7b['position']['nodeAfter'],_0x220f76));}return _0x5172b5;});}['_getSuggestionCoords'](_0x4d8f82){return this['_getCoordsForCells'](_0x4d8f82['getRanges']()['map'](_0x10e8a0=>_0x10e8a0['start']['nodeAfter']));}}function Ne(_0x2fd304){return Array['from'](new Set(_0x2fd304)['values']());}class Nt extends _0x32ae11{static get['requires'](){return[Ct];}['afterInit'](){const _0x319306=this['editor'],_0x4d68e4=_0x319306['model']['document']['selection'],_0x54b7dd=_0x319306['locale'];if(!_0x319306['plugins']['has']('TableEditing'))return;const _0x5497e8=_0x319306['plugins']['get']('TrackChangesEditing'),_0x506088=_0x319306['plugins']['get']('TableUtils'),_0x468f65=_0x319306['plugins']['get'](Ct);_0x468f65['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5497e8['enableCommand']('mergeTableCells',()=>{const _0x2ca6e9=_0x506088['getSelectionAffectedTableCells'](_0x319306['model']['document']['selection']);_0x319306['model']['change'](()=>{_0x5497e8['markMultiRangeBlockFormat'](_0x2ca6e9,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x319306['commands']['get']('mergeTableCells')['on']('execute',(_0x539d78,_0x170609)=>{_0x319306['commands']['get']('trackChanges')['value']&&(_0x170609['length']>0x0&&_0x170609[_0x170609['length']-0x1]&&_0x170609[_0x170609['length']-0x1]['forceDefaultExecution']||_0x5497e8['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x539d78['stop']());},{'priority':'highest'});for(const _0x537cce of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x581d83=_0x319306['commands']['get'](_0x537cce);_0x5497e8['enableCommand'](_0x537cce,()=>{const _0x17f3d0=_0x319306['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5cad40=>_0x5cad40['is']('element','tableCell')),_0x2f08be=_0x581d83['value'];_0x319306['model']['change'](()=>{_0x5497e8['markMultiRangeBlockFormat']([_0x17f3d0,_0x2f08be],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x765c9d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4ab5b7=_0x319306['commands']['get'](_0x765c9d);_0x5497e8['enableCommand'](_0x765c9d,()=>{const _0x5193aa=_0x506088['getSelectionAffectedTableCells'](_0x319306['model']['document']['selection'])[0x0],_0xf7307c=_0x5193aa['findAncestor']('table'),{column:_0x49a0e3,row:_0xbc1134}=_0x506088['getCellLocation'](_0x5193aa);let _0x48a42b=[];if('horizontally'==_0x4ab5b7['direction']){const _0x25b058=_0x506088['createTableWalker'](_0xf7307c,{'startRow':_0xbc1134,'endRow':_0xbc1134,'includeAllSlots':!0x0});_0x48a42b=Array['from'](_0x25b058)['map'](_0x228e7e=>_0x228e7e['cell']);}else{const _0x3224d3=_0x506088['createTableWalker'](_0xf7307c,{'column':_0x49a0e3,'includeAllSlots':!0x0});_0x48a42b=Array['from'](_0x3224d3)['map'](_0x492214=>_0x492214['cell']);}_0x319306['model']['change'](_0x27d178=>{_0x5497e8['markBlockFormat'](_0x27d178['createRangeOn'](_0x5193aa),{'commandName':_0x765c9d,'commandParams':[]},_0x48a42b,_0x765c9d);});});}_0x5497e8['descriptionFactory']['registerDescriptionCallback'](_0x1d3cd1=>{if('formatBlock'!=_0x1d3cd1['type']&&'formatInline'!=_0x1d3cd1['type'])return;const {data:_0x38434a}=_0x1d3cd1;return _0x38434a&&'mergeTableCells'==_0x38434a['commandName']?{'type':'format','content':c(_0x54b7dd,'*Merge\x20cells*')}:void 0x0;}),_0x5497e8['descriptionFactory']['registerDescriptionCallback'](_0xe3f193=>{if('formatBlock'!=_0xe3f193['type']&&'formatInline'!=_0xe3f193['type'])return;const {data:_0x5447f5}=_0xe3f193;return _0x5447f5?'splitTableCellVertically'==_0x5447f5['commandName']?{'type':'format','content':c(_0x54b7dd,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5447f5['commandName']?{'type':'format','content':c(_0x54b7dd,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x412007=_0x468f65['_acceptFormatSuggestionCallbackFactory']();for(const _0x23c78b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5497e8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x23c78b,'accept',_0x412007);for(const _0x41b617 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5497e8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x41b617,'accept',_0x412007);_0x5497e8['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1344b7=>{_0x319306['model']['change'](_0x295eb5=>{const _0x4c6b80=Array['from'](_0x4d68e4['getRanges']())['map'](_0x44c1f3=>_0x54bc73['fromRange'](_0x44c1f3));_0x295eb5['setSelection'](_0x1344b7),_0x319306['commands']['get']('mergeTableCells')['refresh'](),_0x319306['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x568a9f=_0x4c6b80['filter'](_0x45472b=>'$graveyard'!=_0x45472b['root']['rootName']);_0x568a9f['length']>0x0&&_0x295eb5['setSelection'](_0x568a9f);for(const _0x31579b of _0x4c6b80)_0x31579b['detach']();});});for(const _0x5b1ed4 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x395642=_0x319306['commands']['get'](_0x5b1ed4);_0x395642['on']('set:isEnabled',(_0x134858,_0x2a23e0,_0x4311af)=>{if(_0x4311af){const _0x3e5b16=_0x319306['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2949dd=>_0x2949dd['is']('element','tableCell'));this['_areMergableCells'](_0x395642['value'],_0x3e5b16)||(_0x134858['return']=!0x1,_0x134858['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1770af=this['editor']['commands']['get']('mergeTableCells'),_0x519e99=this['editor']['plugins']['get']('TableUtils');if(!_0x1770af['isEnabled'])return!0x1;const _0x45f8cd=_0x519e99['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x59f093 of _0x45f8cd)for(const _0x1c0bdc of _0x45f8cd)if(_0x59f093!=_0x1c0bdc&&!this['_areMergableCells'](_0x59f093,_0x1c0bdc))return!0x1;return!0x0;}['_areMergableCells'](_0x5d0bec,_0x14031a){const _0x44963c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d185c=this['editor']['model']['createRangeOn'](_0x5d0bec),_0x49402e=this['editor']['model']['createRangeOn'](_0x14031a),_0x3bd090=new Set(),_0x3f6ed4=new Set();for(const _0x4a6356 of _0x44963c['getSuggestions']())if(('insertion'==_0x4a6356['type']||'deletion'==_0x4a6356['type']||'mergeTableCells'==_0x4a6356['subType'])&&_0x4a6356['isInContent']){for(const _0x314309 of _0x4a6356['getRanges']())_0x314309['containsRange'](_0x2d185c,!0x0)&&_0x3bd090['add'](_0x4a6356['type']+':'+_0x4a6356['author']['id']),_0x314309['containsRange'](_0x49402e,!0x0)&&_0x3f6ed4['add'](_0x4a6356['type']+':'+_0x4a6356['author']['id']);}if(_0x3bd090['size']!=_0x3f6ed4['size'])return!0x1;for(const _0x2fefe2 of _0x3bd090)if(!_0x3f6ed4['has'](_0x2fefe2))return!0x1;return!0x0;}}class Dt extends _0x32ae11{static get['requires'](){return[Ct];}['afterInit'](){const _0xc83bdb=this['editor'];if(!_0xc83bdb['plugins']['has']('TableEditing'))return;const _0x2cae40=_0xc83bdb['locale'],_0x395b94=_0xc83bdb['plugins']['get']('TrackChangesEditing');_0x395b94['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x395b94['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x395b94['registerBlockAttribute']('headingRows'),_0x395b94['registerBlockAttribute']('headingColumns'),_0x395b94['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x2cae40,'FORMAT_HEADER_ROW')),_0x395b94['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x2cae40,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x41d91e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x505cc9=this['editor']['plugins']['get']('TableUtils'),_0x36e91c=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x138a46({showActiveMarker:_0x15b97f=!0x0,setDataAttribute:_0x29a0e7=!0x0}={}){return(_0x505a0b,_0x3682a7,_0xdbbf3)=>{const {type:_0xfb192e,id:_0x21ed2f}=_0x41d91e['_splitMarkerName'](_0x3682a7['markerName']),_0x51c003=_0x41d91e['getSuggestion'](_0x21ed2f),_0x414898=_0x51c003['data'];if('formatBlock'!=_0x51c003['type']||!_0x414898||'setTableColumnHeader'!=_0x414898['commandName'])return;if(_0x3682a7['item'])return void _0x505a0b['stop']();if(!_0xdbbf3['consumable']['consume'](_0x3682a7['markerRange'],_0x505a0b['name']))return;const _0x1595f8=_0x3682a7['markerRange']['start']['nodeAfter'],_0x591582=_0x3682a7['markerRange']['end']['nodeBefore'],_0x588362=_0x1595f8['parent']['parent'],{column:_0x4ef216}=_0x505cc9['getCellLocation'](_0x1595f8),{column:_0x2cd8f0}=_0x505cc9['getCellLocation'](_0x591582);for(let _0x35146c=_0x4ef216;_0x35146c<=_0x2cd8f0;_0x35146c++){const _0x18c2d0=_0x505cc9['createTableWalker'](_0x588362,{'column':_0x35146c,'includeAllSlots':!0x1});for(const _0x30e097 of _0x18c2d0){const _0x5b4ddc=_0x30e097['cell'],_0x5cfc25=_0xdbbf3['mapper']['toViewElement'](_0x5b4ddc);_0xdbbf3['writer']['addClass']('ck-suggestion-marker-'+_0xfb192e,_0x5cfc25),_0x29a0e7&&_0xdbbf3['writer']['setAttribute']('data-suggestion',_0x21ed2f,_0x5cfc25),_0xdbbf3['mapper']['bindElementToMarker'](_0x5cfc25,_0x3682a7['markerName']),_0x15b97f&&(_0x41d91e['activeMarkers']['includes'](_0x3682a7['markerName'])?_0xdbbf3['writer']['addClass']('ck-suggestion-marker--active',_0x5cfc25):_0xdbbf3['writer']['removeClass']('ck-suggestion-marker--active',_0x5cfc25));}}};}_0x41d91e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x36e91c),_0x41d91e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x36e91c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x138a46(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5dc4de,_0x1f544d,_0x506314)=>{_0x506314['options']['showSuggestionHighlights']&&_0x138a46({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5dc4de,_0x1f544d,_0x506314);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3acf33,_0x5e0220,_0x39ff83)=>{const {type:_0x81d486,id:_0x462762}=_0x41d91e['_splitMarkerName'](_0x5e0220['markerName']),_0x249bb2=_0x41d91e['getSuggestion'](_0x462762),_0x3690b4=_0x249bb2['data'];if('formatBlock'!=_0x249bb2['type']||!_0x3690b4||'setTableColumnHeader'!=_0x3690b4['commandName'])return;const _0x187948=_0x39ff83['mapper']['markerNameToElements'](_0x5e0220['markerName']);if(_0x187948){for(const _0x477b4d of _0x187948)_0x39ff83['writer']['removeClass']('ck-suggestion-marker-'+_0x81d486,_0x477b4d),_0x39ff83['writer']['removeClass']('ck-suggestion-marker--active',_0x477b4d),_0x39ff83['writer']['removeAttribute']('data-suggestion',_0x477b4d),_0x39ff83['mapper']['unbindElementFromMarkerName'](_0x477b4d,_0x5e0220['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14ee7a=this['editor'],_0x5ab697=_0x14ee7a['locale'];function _0x15bd6d(_0x146af3){return{'type':'format','content':c(_0x5ab697,'*Format:*\x20%0',_0x146af3)};}_0x14ee7a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13faec=>{if('formatBlock'!=_0x13faec['type'])return;const {data:_0xbbf8f0}=_0x13faec;if(_0xbbf8f0){if('setTableRowHeader'==_0xbbf8f0['commandName']){const _0x51b234=_0xbbf8f0['commandParams'][0x0]['forceValue'];return _0x15bd6d(c(_0x5ab697,_0x51b234?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xbbf8f0['commandName']){const _0x119275=_0xbbf8f0['commandParams'][0x0]['forceValue'];return _0x15bd6d(c(_0x5ab697,_0x119275?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x4bfaa1=>[_0x4bfaa1,null]));class Mt extends _0x32ae11{static get['requires'](){return[Ct];}['afterInit'](){const _0x571c4c=this['editor'];if(!_0x571c4c['plugins']['has']('TableClipboard'))return;const _0x43fe14=_0x571c4c['plugins']['get']('TrackChangesEditing'),_0x37ece2=_0x571c4c['plugins']['get']('TableUtils'),_0x20883f=_0x571c4c['plugins']['get'](Ct),_0x303f3a=_0x571c4c['plugins']['get']('TableClipboard');_0x20883f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x571c4c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x571c4c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x347e56=null;_0x571c4c['model']['on']('insertContent',(_0x57e7e6,_0x2b2f8a)=>{const [_0x5f13bd,_0x1c0812]=_0x2b2f8a,_0x1565fa=_0x2b2f8a[_0x2b2f8a['length']-0x1];_0x1565fa&&_0x1565fa['forceDefaultExecution']||_0x43fe14['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3b6be7,_0x3a5007,_0x3c06e3,_0x14775b,_0x3238e7){if(_0x3a5007&&!_0x3a5007['is']('documentSelection'))return!0x1;const _0x52437c=_0x3238e7['getTableIfOnlyTableInContent'](_0x3b6be7,_0x3c06e3);if(!_0x52437c||!Ue(_0x52437c,void 0x0,_0x14775b))return!0x1;const _0x251714=_0x14775b['getSelectionAffectedTableCells'](_0x3c06e3['document']['selection']);if(!_0x251714['length'])return!0x1;const _0x531a7b=_0x251714[0x0]['findAncestor']('table'),_0x333e24=_0x14775b['getRowIndexes'](_0x251714),_0x275d7e=_0x14775b['getColumnIndexes'](_0x251714),_0x5c130d={'startRow':_0x333e24['first'],'endRow':_0x333e24['last'],'startColumn':_0x275d7e['first'],'endColumn':_0x275d7e['last']};return 0x1==_0x251714['length']&&(_0x5c130d['endRow']+=_0x14775b['getRows'](_0x52437c)-0x1,_0x5c130d['endColumn']+=_0x14775b['getColumns'](_0x52437c)-0x1),Ue(_0x531a7b,_0x5c130d,_0x14775b);}(_0x5f13bd,_0x1c0812,_0x571c4c['model'],_0x37ece2,_0x303f3a)&&(_0x57e7e6['stop'](),_0x347e56={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x571c4c['model']['change'](()=>{_0x571c4c['model']['insertContent'](_0x2b2f8a[0x0],_0x2b2f8a[0x1],_0x2b2f8a[0x2],{'forceDefaultExecution':!0x0});const _0x47c143=_0x1b6899(),{rowInsertionRanges:_0x276a73,columnInsertionRanges:_0x372a70,insertionRanges:_0x1d699d,deletionRanges:_0xd4f89c,cells:_0x272e21}=_0x347e56;_0x276a73['length']&&_0x43fe14['markMultiRangeInsertion'](_0x276a73,'tablePasteRow',{'tablePasteChainId':_0x47c143}),_0x372a70['length']&&_0x43fe14['markMultiRangeInsertion'](_0x372a70,'tablePasteColumn',{'tablePasteChainId':_0x47c143}),_0x1d699d['length']&&(_0x43fe14['markMultiRangeInsertion'](_0x1d699d,'tablePaste',{'tablePasteChainId':_0x47c143,'skipNestingCheck':!0x0}),_0x1d699d['forEach'](_0x46aa9b=>_0x46aa9b['detach']?.())),_0xd4f89c['length']&&(_0x43fe14['markMultiRangeDeletion'](_0xd4f89c,'tablePaste',{'tablePasteChainId':_0x47c143,'skipNestingCheck':!0x0}),_0xd4f89c['forEach'](_0x4bf16b=>_0x4bf16b['detach']?.()));const _0x602ec7=_0x43fe14['markMultiRangeBlockFormat'](_0x272e21['map'](({element:_0x540d75})=>_0x540d75),{'formatGroupId':_0x1b6899()},[],'tablePasteCell',{'tablePasteChainId':_0x47c143});if(_0x602ec7){const _0x2398b8=_0x602ec7['getMarkers'](),_0x37738a=[];for(const {element:_0x5f0c44,attributes:_0x2385a2}of _0x272e21){if(!_0x2385a2)continue;const _0x3d4a47=_0x571c4c['model']['createRangeOn'](_0x5f0c44),_0x29a55d=_0x2398b8['find'](_0x488871=>_0x488871['getRange']()['isEqual'](_0x3d4a47));_0x29a55d&&_0x37738a['push']([_0x29a55d['name'],_0x2385a2]);}_0x37738a['length']&&_0x602ec7['setAttribute']('markerAttributes',Object['fromEntries'](_0x37738a));}_0x347e56=null;}));},{'priority':_0x44647c['high']+0xa}),_0x571c4c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x7165ef,_0x1b118b)=>{const [_0x52ee9f,_0x173559,,_0xd9a859]=_0x1b118b;if(!_0x347e56)return;_0x7165ef['stop']();const _0x137f88=_0x52ee9f['cell'],_0x538555=_0x173559,_0x331824=Oe(_0x137f88),_0x308dae=Oe(_0x538555);_0x7165ef['return']=_0x137f88;let _0x5bd4dc=null,_0x34fb27=null;if(_0x308dae||_0x331824){if(_0x331824&&!_0x308dae){_0xd9a859['remove'](_0x137f88['getChild'](0x0));for(const _0xce03d0 of Array['from'](_0x538555['getChildren']()))_0xd9a859['insert'](_0xce03d0,_0x137f88,'end');const _0x1a0824=_0x347e56['rowInsertionIndexes']['includes'](_0x52ee9f['row']),_0xc1edb7=_0x347e56['columnInsertionIndexes']['includes'](_0x52ee9f['column']);_0x1a0824||_0xc1edb7||(_0x5bd4dc=_0x54bc73['fromRange'](_0xd9a859['createRangeIn'](_0x137f88)));}else _0x308dae&&!_0x331824&&(_0x34fb27=_0xd9a859['createRangeIn'](_0x137f88));}else{const _0x129860=_0xd9a859['createElement']('tableCellSuggestion'),_0x392072=_0xd9a859['createElement']('tableCellSuggestion');_0xd9a859['wrap'](_0xd9a859['createRangeIn'](_0x137f88),_0x392072),_0xd9a859['insert'](_0x129860,_0x137f88,0x0);for(const _0x58862a of Array['from'](_0x538555['getChildren']()))_0xd9a859['insert'](_0x58862a,_0x129860,'end');_0x5bd4dc=_0x54bc73['fromRange'](_0xd9a859['createRangeOn'](_0x129860)),_0x34fb27=_0x54bc73['fromRange'](_0xd9a859['createRangeOn'](_0x392072));}const _0x24b713=Array['from'](_0x538555['getAttributes']())['filter'](([_0x5d621b])=>Be['includes'](_0x5d621b));_0x347e56['cells']['push']({'element':_0x137f88,'attributes':_0x24b713['length']?Object['fromEntries'](_0x24b713):null}),_0x5bd4dc&&_0x347e56['insertionRanges']['push'](_0x5bd4dc),_0x34fb27&&_0x347e56['deletionRanges']['push'](_0x34fb27);},{'priority':'high'}),_0x37ece2['on']('insertColumns',(_0x41e815,_0x147d73)=>{const [_0x50cee8,_0x5595cc={}]=_0x147d73;if(!_0x347e56)return;const _0x4e2a94=_0x5595cc['at']||0x0,_0x302ba6=_0x5595cc['columns']||0x1;_0x347e56['columnInsertionIndexes']=new Array(_0x302ba6)['fill'](_0x4e2a94)['map']((_0x5063f2,_0x310b89)=>_0x5063f2+_0x310b89);for(const {cell:_0x59d750}of _0x37ece2['createTableWalker'](_0x50cee8,{'startColumn':_0x4e2a94,'endColumn':_0x4e2a94+_0x302ba6-0x1}))_0x347e56['columnInsertionRanges']['push'](_0x571c4c['model']['createRangeOn'](_0x59d750));},{'priority':'low'}),_0x37ece2['on']('insertRows',(_0x1decfa,_0x398d1d)=>{const [_0x8a91d9,_0xc3f1e3={}]=_0x398d1d;if(!_0x347e56)return;const _0x6f070=_0xc3f1e3['at']||0x0,_0x2eb8f6=_0xc3f1e3['rows']||0x1;_0x347e56['rowInsertionIndexes']=new Array(_0x2eb8f6)['fill'](_0x6f070)['map']((_0x3bf0c6,_0x28b039)=>_0x3bf0c6+_0x28b039);for(const {cell:_0x3b5441}of _0x37ece2['createTableWalker'](_0x8a91d9,{'startRow':_0x6f070,'endRow':_0x6f070+_0x2eb8f6-0x1}))_0x347e56['rowInsertionRanges']['push'](_0x571c4c['model']['createRangeOn'](_0x3b5441));},{'priority':'low'}),_0x43fe14['descriptionFactory']['registerDescriptionCallback'](_0x222ab1=>{if(_0x222ab1['subType']&&_0x222ab1['subType']['startsWith']('tablePaste'))return _0x222ab1['previous']?{}:{'type':'insertion','content':c(_0x571c4c['locale'],'*Replace\x20table\x20cells*')};});const _0x5ddf7a=()=>!0x1;for(const _0x43a0f6 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x43fe14['_suggestionFactory']['registerCustomCallback']('insertion',_0x43a0f6,'join',_0x5ddf7a),_0x43fe14['_suggestionFactory']['registerCustomCallback']('deletion',_0x43a0f6,'join',_0x5ddf7a),_0x43fe14['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x43a0f6,'join',_0x5ddf7a);_0x43fe14['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5ddf7a),_0x43fe14['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xa48c06,_0x5f2e5b,_0x34fed5)=>{const _0x58f440=_0xa48c06['map'](_0x4cc6dc=>_0x4cc6dc['getContainedElement']())['filter'](_0x54ca6d=>_0x54ca6d),_0x6d8c09=new Map(_0x58f440['map'](_0x5d90e5=>[_0x5d90e5,null]));if(_0x347e56){for(const {element:_0x201525,attributes:_0x423fbc}of _0x347e56['cells'])_0x423fbc&&_0x6d8c09['set'](_0x201525,_0x423fbc);}else{if(_0x34fed5&&_0x34fed5['markerAttributes'])for(const [_0x141dd0,_0x37b284]of Object['entries'](_0x34fed5['markerAttributes'])){const _0x3ab75f=_0x571c4c['model']['markers']['get'](_0x141dd0),_0x8949e9=_0x3ab75f?_0x3ab75f['getRange']()['getContainedElement']():null;_0x8949e9&&_0x6d8c09['set'](_0x8949e9,_0x37b284);}}_0x571c4c['model']['change'](_0x5dfc19=>{for(const [_0x54cc94,_0x37ddca]of _0x6d8c09)_0x5dfc19['setAttributes']({...xe,..._0x37ddca},_0x54cc94);});});const _0x4d2faa=(_0x1e0547,_0x561fef)=>{_0x43fe14['_suggestionFactory']['registerCustomCallback'](_0x1e0547,'tablePaste',_0x561fef,(_0x4ec472,_0x88bd2b,_0x455ada)=>{_0x571c4c['model']['change'](_0x26a0e4=>{const _0x1fa6c2=[];for(const _0x202bff of _0x4ec472){const _0x2617d6=_0x202bff['start']['nodeAfter'];_0x2617d6['is']('element','tableCellSuggestion')&&_0x1fa6c2['push'](_0x2617d6);}_0x43fe14['_suggestionFactory']['getSuggestionCallback'](_0x1e0547,null,_0x561fef)(_0x4ec472,_0x88bd2b,_0x455ada);for(const _0x33e16e of _0x1fa6c2)'$graveyard'!=_0x33e16e['root']['rootName']&&_0x26a0e4['unwrap'](_0x33e16e);});});};_0x4d2faa('insertion','accept'),_0x4d2faa('insertion','discard'),_0x4d2faa('deletion','accept'),_0x4d2faa('deletion','discard'),_0x43fe14['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x361b25=>{const _0x28db86=_0x361b25['map'](_0x11efa6=>_0x11efa6['getContainedElement']()),_0x466f36=_0x28db86[0x0]['findAncestor']('table'),{minRow:_0x45d3bd,maxRow:_0x5ccf1c}=_0x20883f['_getCoordsForCells'](_0x28db86);_0x37ece2['removeRows'](_0x466f36,{'at':_0x45d3bd,'rows':_0x5ccf1c-_0x45d3bd+0x1});}),_0x43fe14['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x138823=>{const _0x481dc3=_0x138823['map'](_0x3db3a1=>_0x3db3a1['getContainedElement']()),_0x3c69f=_0x481dc3[0x0]['findAncestor']('table'),{minColumn:_0x222823,maxColumn:_0x37b615}=_0x20883f['_getCoordsForCells'](_0x481dc3);_0x37ece2['removeColumns'](_0x3c69f,{'at':_0x222823,'columns':_0x37b615-_0x222823+0x1});});const _0xd4be9e=(_0x26e755,_0x45ec33)=>{if(!_0x45ec33['subType']||!_0x45ec33['subType']['startsWith']('tablePaste'))return;const _0x411b49=_0x45ec33['attributes']['tablePasteChainId'],_0x19a2a6=_0x43fe14['getSuggestions']()['filter'](_0x473efa=>_0x473efa['isInContent']&&_0x473efa['attributes']&&_0x473efa['attributes']['tablePasteChainId']==_0x411b49);_0x19a2a6['length']&&_0x45ec33['getAllAdjacentSuggestions']()['length']!=_0x19a2a6['length']&&_0x19a2a6['reduce']((_0x25cd2e,_0x2b8b58)=>(_0x25cd2e['next']=_0x2b8b58,_0x2b8b58['previous']=_0x25cd2e,_0x2b8b58));};function _0xb8ac87(_0x1ca17c,_0x268144=!0x0){const {id:_0x3813e6,authorId:_0x3bb373}=_0x43fe14['_splitMarkerName'](_0x1ca17c['markerName']),_0x43eb2b=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x24339b=_0x43fe14['activeMarkers']['includes'](_0x1ca17c['markerName']);return _0x24339b&&_0x43eb2b['push']('ck-suggestion-marker--active'),{'classes':_0x43eb2b,'attributes':{'data-suggestion':_0x3813e6,'data-author-id':_0x3bb373},'priority':_0x24339b&&_0x268144?0xbc2:0xbb8};}_0x43fe14['on']('suggestionLoaded',_0xd4be9e,{'priority':'high'}),_0x43fe14['on']('suggestionUnloaded',_0xd4be9e,{'priority':'high'}),_0x571c4c['model']['document']['registerPostFixer'](()=>{let _0x4b4ae1=!0x1;const _0x14e4dd=Array['from'](_0x571c4c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1d329c,data:_0x21b8ac}of _0x14e4dd){const {group:_0xf1068c,type:_0x43d5fc,id:_0x5ae418}=_0x43fe14['_splitMarkerName'](_0x1d329c);if('suggestion'!=_0xf1068c||'deletion'!=_0x43d5fc||_0x21b8ac['oldRange'])continue;if(!_0x43fe14['hasSuggestion'](_0x5ae418))continue;const _0x8dfe31=_0x43fe14['getSuggestion'](_0x5ae418)['getRanges'](),_0x1958f7=_0x571c4c['plugins']['get']('Users')['me'];for(const _0x5a0507 of _0x43fe14['getSuggestions']()){if(!_0x5a0507['isInContent']||_0x5a0507['author']!=_0x1958f7)continue;if('formatBlock'!=_0x5a0507['type']||'tablePasteCell'!=_0x5a0507['subType'])continue;if(_0x5a0507['getRanges']()['every'](_0x27ed2f=>_0x8dfe31['some'](_0x28569b=>_0x28569b['containsRange'](_0x27ed2f,!0x0)))){for(const _0x970ab2 of _0x5a0507['getAllAdjacentSuggestions']())_0x970ab2['isInContent']&&(_0x970ab2['discard'](),_0x4b4ae1=!0x0);}}}return _0x4b4ae1;}),_0x571c4c['model']['document']['registerPostFixer'](_0x2991a8=>{const _0x3147ca=_0x571c4c['commands']['get']('redo');if(!_0x3147ca||!_0x3147ca['_createdBatches']['has'](_0x2991a8['batch']))return!0x1;let _0x4721d4=!0x1;const _0x670158=_0x571c4c['plugins']['get']('Users')['me'],_0xe6ba6f=_0x571c4c['model']['document']['differ']['getChanges'](),_0xc6fa9e=Array['from'](_0x571c4c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5b4a0f,data:_0x5d5168})=>{const {group:_0x2fc11d,subType:_0x4a8094,authorId:_0x2be45b}=_0x43fe14['_splitMarkerName'](_0x5b4a0f);return'suggestion'==_0x2fc11d&&'tablePaste'==_0x4a8094&&_0x2be45b==_0x670158['id']&&!_0x5d5168['oldRange'];});for(const _0x1974c5 of _0xe6ba6f){if('insert'!=_0x1974c5['type']||'tableCellSuggestion'!=_0x1974c5['name']||0x1!=_0x1974c5['length'])continue;const _0x2d2724=_0x2991a8['createRange'](_0x1974c5['position'],_0x1974c5['position']['getShiftedBy'](0x1));if(!_0xc6fa9e['find'](({data:_0x111440})=>_0x111440['newRange']['isEqual'](_0x2d2724))){for(const {name:_0x5382e4,data:_0x42f2b9}of _0xc6fa9e)if(_0x2d2724['containsRange'](_0x42f2b9['newRange'])){_0x2991a8['updateMarker'](_0x5382e4,{'range':_0x2d2724}),_0x4721d4=!0x0;break;}}}return _0x4721d4;}),_0x571c4c['model']['document']['registerPostFixer'](_0x26237d=>{let _0x1255a3=!0x1;const _0x425bd3=_0x571c4c['plugins']['get']('Users')['me'],_0xa16b18=_0x43fe14['getSuggestions']()['filter'](_0x30271a=>_0x30271a['isInContent']&&_0x30271a['author']==_0x425bd3),_0x2b38ce=new Set(),_0x258ab6=new Set();for(const _0x365fa5 of _0xa16b18)if('tablePaste'==_0x365fa5['subType'])for(const _0x44419f of _0x365fa5['getMarkers']()){const _0x24426c=_0x44419f['getRange']()['getContainedElement']();if(_0x24426c){if(_0x24426c['is']('element','tableCellSuggestion')&&Oe(_0x24426c)){_0x365fa5['removeMarker'](_0x44419f['name']),_0x2b38ce['add'](_0x24426c),_0x1255a3=!0x0;const _0x221c22=_0x24426c['nextSibling'],_0x1000e0=_0x24426c['previousSibling'],_0x4425d3=_0x221c22&&_0x221c22['is']('element','tableCellSuggestion'),_0x2b67fc=_0x1000e0&&_0x1000e0['is']('element','tableCellSuggestion');_0x4425d3&&!_0x2b38ce['has'](_0x221c22)&&_0x258ab6['add'](_0x221c22),_0x2b67fc&&!_0x2b38ce['has'](_0x1000e0)&&_0x258ab6['add'](_0x1000e0);}else _0x24426c['is']('element','paragraph')&&_0x24426c['isEmpty']&&(_0x365fa5['removeMarker'](_0x44419f['name']),_0x1255a3=!0x0);}}else{if('tablePasteCell'==_0x365fa5['subType']){if(!_0x365fa5['attributes']||!_0x365fa5['attributes']['tablePasteChainId'])continue;const _0x3160e0=_0x365fa5['attributes']['markerAttributes'];if(_0x3160e0&&Object['keys'](_0x3160e0)['length'])continue;const _0x1fdfe9=_0x365fa5['attributes']['tablePasteChainId'];let _0x24dfa2=!0x0,_0x577bdf=!0x0;for(const _0x1964e3 of _0xa16b18)if(_0x1964e3['subType']&&_0x1964e3['subType']['startsWith']('tablePaste')){if(!_0x1964e3['attributes']['tablePasteChainId']){_0x577bdf=!0x1;break;}if(_0x1964e3['id']!=_0x365fa5['id']&&_0x1964e3['attributes']['tablePasteChainId']==_0x1fdfe9){_0x24dfa2=!0x1;break;}}_0x577bdf&&_0x24dfa2&&(_0x365fa5['removeMarkers'](),_0x1255a3=!0x0);}}for(const _0x26fd30 of _0x2b38ce)_0x26237d['remove'](_0x26fd30);for(const _0x1375d1 of _0x258ab6)_0x26237d['unwrap'](_0x1375d1);return _0x1255a3;}),_0x571c4c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x464747=>_0xb8ac87(_0x464747),'converterPriority':'high'}),_0x571c4c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x28b5a9,_0x541d55)=>_0x541d55['options']['showSuggestionHighlights']?_0xb8ac87(_0x28b5a9,!0x1):null,'converterPriority':'high'});const _0x34cf9a=_0x571c4c['editing']['view'];this['listenTo'](_0x34cf9a['document'],'clipboardOutput',(_0x377779,_0x50a5f2)=>{const _0x3f18db=[];for(const _0x2ce00d of _0x34cf9a['createRangeIn'](_0x50a5f2['content'])['getItems']())_0x2ce00d['is']('element','suggestion-td')&&_0x3f18db['push'](_0x2ce00d);_0x34cf9a['change'](_0x5e253c=>{for(const _0x571729 of _0x3f18db)_0x5e253c['move'](_0x5e253c['createRangeIn'](_0x571729),_0x5e253c['createPositionBefore'](_0x571729)),_0x5e253c['remove'](_0x571729);});});}}function Oe(_0x53b066){if(_0x53b066['isEmpty'])return!0x0;const _0xbf137=_0x53b066['getChild'](0x0);return _0xbf137['is']('element','paragraph')&&_0xbf137['isEmpty'];}function Ue(_0x182b2b,_0xef68={},_0x431e6f){for(const {isAnchor:_0x422ebf,cellHeight:_0x5e511c,cellWidth:_0x243d60}of _0x431e6f['createTableWalker'](_0x182b2b,{'includeAllSlots':!0x0,..._0xef68}))if(!_0x422ebf||0x1!=_0x5e511c||0x1!=_0x243d60)return!0x1;return!0x0;}class $t extends _0x32ae11{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x24d161=this['editor']['plugins']['get']('TrackChangesEditing');_0x24d161['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x24d161['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x24d161['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x24d161['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x24d161['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x24d161['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2981ca,_0x39017a){const _0x336dd1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1aea04=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x37e9af=_0x39017a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1c6f7a=_0x1aea04['getColumnGroupElement'](_0x37e9af);let _0x7b782e=_0x1c6f7a?_0x1aea04['getTableColumnsWidths'](_0x1c6f7a):null,_0x46241f=_0x37e9af['getAttribute']('tableWidth')||null;const _0x565c64=_0x39017a['tableWidth']||_0x46241f,_0x2a03e2=_0x39017a['columnWidths']||_0x7b782e,_0x301334=this['editor']['plugins']['get']('Users')['me'];for(const _0x5ddcd6 of _0x336dd1['getSuggestions']()){const _0x2b5bf4=_0x5ddcd6['getContainedElement']();if('resizeTable'===_0x5ddcd6['subType']&&_0x2b5bf4===_0x37e9af){_0x5ddcd6['author']!==_0x301334&&_0x5ddcd6['discard']();const _0x48acd6=_0x5ddcd6['data']['commandParams'];_0x46241f=_0x48acd6[0x0]['tableWidth'],_0x7b782e=_0x48acd6[0x0]['columnWidths'];break;}}_0x2981ca({'table':_0x37e9af,'tableWidth':_0x565c64,'columnWidths':_0x2a03e2}),_0x336dd1['markBlockFormat'](_0x37e9af,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x46241f,'columnWidths':_0x7b782e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1bdb06){if('formatBlock'!=_0x1bdb06['type']&&'formatInline'!=_0x1bdb06['type'])return;const {data:_0x17ca8a}=_0x1bdb06;if(_0x17ca8a&&'resizeTable'===_0x17ca8a['formatGroupId']){const _0x434574='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x434574)};}}}class Bt extends _0x32ae11{['afterInit'](){const _0x1e5e0a=this['editor'];_0x1e5e0a['plugins']['has']('Template')&&_0x1e5e0a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x32ae11{['afterInit'](){const _0x501328=this['editor'];if(!_0x501328['commands']['get']('insertTableOfContents'))return;_0x501328['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3b0446=_0x501328['plugins']['get']('TrackChangesEditing'),_0x19a51d=_0x501328['locale'];_0x3b0446['descriptionFactory']['registerElementLabel']('tableOfContents',_0x103187=>c(_0x19a51d,'ELEMENT_TABLE_OF_CONTENTS',_0x103187));}}class Rt extends _0x32ae11{['afterInit'](){const _0xaf281=this['editor'];if(!_0xaf281['plugins']['has']('Title'))return;const _0x49afe0=_0xaf281['plugins']['get']('TrackChangesEditing');_0x49afe0['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0xaf281['locale'],'ELEMENT_TITLE')),_0xaf281['model']['document']['registerPostFixer'](_0x39de81=>{let _0x26b2cc=!0x1;const _0xc9a5ce=Array['from'](_0xaf281['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2f18e6,data:_0x28b2a6}of _0xc9a5ce){const {group:_0x2a8d77}=_0x49afe0['_splitMarkerName'](_0x2f18e6);if('suggestion'!==_0x2a8d77||!_0x28b2a6['newRange'])continue;const _0x4ef5de=_0x28b2a6['newRange'],_0x2e444e=_0x4ef5de['end']['nodeBefore'];if(!_0x2e444e||!_0x2e444e['is']('element','title-content'))continue;if(!_0x4ef5de['start']['isTouching'](_0x4ef5de['end']))continue;const _0x19dab3=_0xaf281['model']['schema']['getNearestSelectionRange'](_0x4ef5de['end'],'forward');if(_0x19dab3&&_0x19dab3['isCollapsed']){const _0x3da163=_0x39de81['createRange'](_0x4ef5de['start'],_0x19dab3['start']);_0x3da163['isEqual'](_0x4ef5de)||(_0x39de81['updateMarker'](_0x2f18e6,{'range':_0x3da163}),_0x26b2cc=!0x0);}_0x26b2cc||(_0x39de81['removeMarker'](_0x2f18e6),_0x26b2cc=!0x0);}return _0x26b2cc;});}}class xt extends _0x32ae11{['afterInit'](){const _0x262625=this['editor'],_0x50c642=_0x262625['plugins']['get']('TrackChangesEditing');_0x262625['plugins']['has']('Uploadcare')&&(_0x50c642['enableCommand']('uploadcare'),_0x262625['plugins']['has']('UploadcareImageEdit')&&(_0x50c642['enableCommand']('uploadcareImageEdit'),_0x50c642['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x50c642['registerBlockAttribute']('uploadcareImageId'),_0x50c642['descriptionFactory']['registerDescriptionCallback'](_0x22714f=>{if('attribute'!=_0x22714f['type'])return;const {data:_0x11b125}=_0x22714f;return _0x11b125&&'uploadcareImageId'==_0x11b125['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x32ae11{['afterInit'](){const _0x28830d=this['editor'],_0x3a51c6=_0x28830d['plugins']['get']('TrackChangesEditing');_0x28830d['plugins']['has']('UndoEditing')&&(_0x3a51c6['enableCommand']('undo'),_0x3a51c6['enableCommand']('redo'));}}class Et extends _0x32ae11{static get['requires'](){return[Ct];}['afterInit'](){const _0x32d8be=this['editor'];if(!_0x32d8be['plugins']['has']('TableCaptionEditing'))return;_0x32d8be['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x32ae11{['tableProperties'];['tableCellProperties'];constructor(_0x123ea5){super(_0x123ea5),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 _0x356206=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4da161 of this['tableProperties'])_0x356206['enableCommand'](_0x4da161,(_0x317d83,_0x266032)=>{const _0x591662=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4da161,[_0x591662],this['tableProperties'],'tableProperties',_0x317d83,_0x266032);});_0x356206['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x356206['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x356206['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2fc3a0,_0x567d96)=>this['handleDiscardAction'](this['tableProperties'],_0x2fc3a0,_0x567d96)),_0x356206['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xe5bcd1 of this['tableCellProperties'])_0x356206['enableCommand'](_0xe5bcd1,(_0x279e48,_0x2fd1e5)=>{const _0x5ec2b9=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xe5bcd1,_0x5ec2b9,this['tableCellProperties'],'tableCellProperties',_0x279e48,_0x2fd1e5);});_0x356206['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x356206['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x356206['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x494da0,_0x20bfeb)=>this['handleDiscardAction'](this['tableCellProperties'],_0x494da0,_0x20bfeb)),_0x356206['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x356206['descriptionFactory']['registerDescriptionCallback'](_0xac1a73=>this['handleSuggestionDescription'](_0xac1a73));}['_handlePropertyChange'](_0x4ce2fa,_0x1d07bf,_0x36bc23,_0x189976,_0x3248ee,_0x1e4f05){const _0x30f5d8=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1e4f05['batch'],()=>{for(const _0xe56ae8 of _0x1d07bf){if(this['_getSuggestion'](_0xe56ae8,_0x189976))_0x3248ee(_0x1e4f05);else{const _0x39ec90={};for(const _0x14f46b of _0x36bc23){const _0x5a18f9=_0xe56ae8['getAttribute'](_0x14f46b);void 0x0!==_0x5a18f9&&(_0x39ec90[_0x14f46b]=_0x5a18f9);}_0x3248ee(_0x1e4f05),_0x30f5d8['markBlockFormat'](_0xe56ae8,{'commandParams':[_0x39ec90]},[],_0x189976);}}});}['handleDiscardAction'](_0x1ba563,_0x1024a5,_0x4d6e5f){const _0x321d0a=_0x1024a5[0x0]['start']['nodeAfter'],_0x55ac27=_0x4d6e5f['commandParams'][0x0];this['editor']['model']['change'](_0x261f30=>{for(const _0x5834b0 of _0x1ba563)void 0x0!==_0x55ac27[_0x5834b0]?_0x261f30['setAttribute'](_0x5834b0,_0x55ac27[_0x5834b0],_0x321d0a):_0x261f30['removeAttribute'](_0x5834b0,_0x321d0a);});}['handleSuggestionDescription'](_0x568267){if(_0x568267['data'])switch(_0x568267['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'](_0x2267f5,_0x54ef3f){const _0x598b20=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xaeb75f of _0x598b20['getSuggestions']({'skipNotAttached':!0x0})){const _0x1725e6=_0xaeb75f['getContainedElement']();if(_0xaeb75f['subType']===_0x54ef3f&&_0x1725e6===_0x2267f5)return _0xaeb75f;}return null;}}const u='$elementName';class p extends _0x32ae11{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1140a0,_0x3043e2,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x53e02d){super(_0x53e02d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x12e32f,_0x16b7db,_0x36855d,_0x5ea2e4)=>{this['_model']['change'](()=>{for(const _0x40e588 of[..._0x5ea2e4,..._0x36855d])this['_model']['markers']['has'](_0x40e588)&&_0x53e02d['editing']['reconvertMarker'](_0x40e588);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x53e02d['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(),_0x53e02d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x53e02d['config']['get']('trackChanges.trackFormatChanges'),_0x53e02d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x53e02d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x53e02d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5a7f41=this['editor'],_0x548d2d=(_0x55a2b8,_0x4b96a0)=>{if('attribute'!=_0x55a2b8)return'ck-suggestion-marker-'+_0x55a2b8;const _0x51ea28=_0x4b96a0['split']('|')[0x0];return this['_isBlockAttribute'](_0x51ea28)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5a7f41['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2a5eb9=>{const {id:_0x1e266f,authorId:_0x369c07,type:_0x5ce9b8,subType:_0x44e8f0}=this['_splitMarkerName'](_0x2a5eb9['markerName']),_0x83033b=['ck-suggestion-marker',_0x548d2d(_0x5ce9b8,_0x44e8f0)];let _0x523691=0xbb8;return this['activeMarkers']['includes'](_0x2a5eb9['markerName'])&&(_0x83033b['push']('ck-suggestion-marker--active'),_0x523691=0xbc2),'deletion'==_0x5ce9b8&&(_0x523691+=0x5),{'classes':_0x83033b,'attributes':{'data-suggestion':_0x1e266f,'data-author-id':_0x369c07},'priority':_0x523691};}}),_0x5a7f41['conversion']['for']('dataDowncast')['add'](_0x574e04=>{_0x574e04['on']('addMarker:suggestion',(_0x41d436,_0x2df25c,_0x2bf1)=>{if(!_0x2bf1['options']['showSuggestionHighlights'])return;const _0x62b5c0=_0x2df25c['item'];if(!_0x62b5c0)return;const _0x457075=_0x2bf1['mapper']['toViewElement'](_0x62b5c0);_0x5a7f41['model']['schema']['isObject'](_0x62b5c0)&&_0x457075&&!_0x457075['getCustomProperty']('widget')&&_0x457075['is']('containerElement')&&_0x14a02e(_0x457075,_0x2bf1['writer']);},{'priority':'high'});}),_0x5a7f41['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4101ac,_0x272354)=>{if(!_0x272354['options']['showSuggestionHighlights'])return null;const {type:_0x1bae33,subType:_0x59de49}=this['_splitMarkerName'](_0x4101ac['markerName']);return{'classes':['ck-suggestion-marker',_0x548d2d(_0x1bae33,_0x59de49)],'priority':0xbb8};}});const _0x30f52a=({showActiveMarkers:_0x3bb639=!0x0,isAttributeSuggestion:_0x1f2150=!0x1}={})=>(_0x1b1ca2,_0x4b1ddc,_0x287d56)=>{if(!_0x4b1ddc['item'])return;const {id:_0x4d4fed,authorId:_0x318d2c}=this['_splitMarkerName'](_0x4b1ddc['markerName']);if(_0x1f2150){const _0x1b8837=this['_suggestions']['get'](_0x4d4fed),_0x3ab085=this['_getAttributeKey'](_0x1b8837);if(!this['_isBlockAttribute'](_0x3ab085))return;}if(_0x4b1ddc['item']['is']('selection'))return void _0x287d56['consumable']['consume'](_0x4b1ddc['item'],_0x1b1ca2['name']);const _0x1b8ab2=_0x287d56['mapper']['toViewElement'](_0x4b1ddc['item']);if(_0x4b1ddc['item']['is']('element')&&_0x5a7f41['model']['schema']['isBlock'](_0x4b1ddc['item'])&&!_0x1b8ab2['getCustomProperty']('addHighlight')){_0x287d56['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1b8ab2),_0x287d56['writer']['setAttribute']('data-suggestion',_0x4d4fed,_0x1b8ab2),_0x287d56['writer']['setAttribute']('data-author-id',_0x318d2c,_0x1b8ab2),_0x287d56['mapper']['bindElementToMarker'](_0x1b8ab2,_0x4b1ddc['markerName']),_0x3bb639&&(this['activeMarkers']['includes'](_0x4b1ddc['markerName'])?_0x287d56['writer']['addClass']('ck-suggestion-marker--active',_0x1b8ab2):_0x287d56['writer']['removeClass']('ck-suggestion-marker--active',_0x1b8ab2));for(const _0x3ab8a3 of _0x5a7f41['model']['createRangeIn'](_0x4b1ddc['item'])['getItems']())_0x287d56['consumable']['consume'](_0x3ab8a3,_0x1b1ca2['name']);_0x287d56['consumable']['consume'](_0x4b1ddc['item'],_0x1b1ca2['name']);}};_0x5a7f41['conversion']['for']('dataDowncast')['add'](_0x20f6bb=>{_0x20f6bb['on']('addMarker:suggestion:formatBlock',(_0x548cef,_0x234999,_0x1a128f)=>{_0x1a128f['options']['showSuggestionHighlights']&&_0x30f52a({'showActiveMarkers':!0x1})(_0x548cef,_0x234999,_0x1a128f);},{'priority':'highest'});}),_0x5a7f41['conversion']['for']('dataDowncast')['add'](_0x6fcd88=>{_0x6fcd88['on']('addMarker:suggestion:attribute',(_0x1f2b99,_0x25ba8b,_0x1d0976)=>{_0x1d0976['options']['showSuggestionHighlights']&&_0x30f52a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1f2b99,_0x25ba8b,_0x1d0976);},{'priority':'highest'});}),_0x5a7f41['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x28cae0,_0x13b528)=>_0x13b528['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x28cae0['substr'](0xb)}}),_0x5a7f41['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xb442f4,{writer:_0x29e7e9})=>{let _0x56af27='suggestion:'+_0xb442f4['getAttribute']('suggestion-type')+':'+_0xb442f4['getAttribute']('id');return _0xb442f4['getAttribute']('marker-count')&&(_0x56af27+=':'+_0xb442f4['getAttribute']('marker-count')),_0x29e7e9['createElement']('$marker',{'data-name':_0x56af27});}}),_0x5a7f41['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5a7f41['conversion']['for']('editingDowncast')['add'](_0xd84d1f=>{_0xd84d1f['on']('addMarker:suggestion:formatBlock',_0x30f52a(),{'priority':'high'});}),_0x5a7f41['conversion']['for']('editingDowncast')['add'](_0x38ffe4=>{_0x38ffe4['on']('addMarker:suggestion:attribute',_0x30f52a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5a7f41['conversion']['for']('editingDowncast')['add'](_0x5e5228=>{_0x5e5228['on']('removeMarker:suggestion:formatBlock',(_0x3c373e,_0x11f8f9,_0x4d17f2)=>{const _0x328f73=_0x4d17f2['mapper']['markerNameToElements'](_0x11f8f9['markerName']);if(_0x328f73){for(const _0x1d905d of _0x328f73)_0x1d905d['getCustomProperty']('addHighlight')||(_0x4d17f2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1d905d),_0x4d17f2['writer']['removeAttribute']('data-suggestion',_0x1d905d),_0x4d17f2['writer']['removeAttribute']('data-author-id',_0x1d905d),_0x4d17f2['mapper']['unbindElementFromMarkerName'](_0x1d905d,_0x11f8f9['markerName']));}},{'priority':'high'});}),_0x5a7f41['conversion']['for']('editingDowncast')['add'](_0x4516c2=>{_0x4516c2['on']('removeMarker:suggestion:attribute',(_0x499f87,_0x400a7c,_0x2756fc)=>{const _0x119d13=_0x2756fc['mapper']['markerNameToElements'](_0x400a7c['markerName']);if(!_0x119d13)return;const {id:_0x59028d}=this['_splitMarkerName'](_0x400a7c['markerName']),_0x4ff9bb=this['_suggestions']['get'](_0x59028d),_0x54a267=this['_getAttributeKey'](_0x4ff9bb);if(this['_isBlockAttribute'](_0x54a267)){for(const _0x526956 of _0x119d13)_0x526956['getCustomProperty']('addHighlight')||(_0x2756fc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x526956),_0x2756fc['writer']['removeAttribute']('data-suggestion',_0x526956),_0x2756fc['writer']['removeAttribute']('data-author-id',_0x526956),_0x2756fc['mapper']['unbindElementFromMarkerName'](_0x526956,_0x400a7c['markerName']));}},{'priority':'high'});}),_0x5a7f41['model']['document']['registerPostFixer'](_0x5c8bd5=>{let _0x4f9e14=!0x1;const _0x3fe37b=Array['from'](_0x5a7f41['model']['document']['differ']['getChangedMarkers']()),_0x3c4d97=new Set();for(const {name:_0x540c30,data:_0x5a0db8}of _0x3fe37b){const {group:_0x134b2f,type:_0x683fd,subType:_0x152edb,id:_0x2d817b}=this['_splitMarkerName'](_0x540c30);if('suggestion'!==_0x134b2f)continue;const _0x50a5d5=this['_suggestions']['get'](_0x2d817b);if(null!=_0x5a0db8['newRange']){'formatInline'==_0x683fd&&(_0x4f9e14=_0x4f9e14||Lt(_0x5a0db8['newRange'],_0x540c30,_0x5c8bd5,_0x5a7f41['model']['schema']));const _0x5d7aca='attribute'==_0x683fd&&this['_isBlockAttribute'](_0x152edb['split']('|')[0x0]);if(_0x5a0db8['newRange']['isCollapsed']||'$graveyard'==_0x5a0db8['newRange']['root']['rootName']||'formatBlock'==_0x683fd&&!Kt(_0x5a0db8['newRange'])||_0x5d7aca&&!Kt(_0x5a0db8['newRange'])||'deletion'==_0x683fd&&!(!Gt(_0x4b9a69=_0x5a0db8['newRange'])&&!function(_0x3b5876){return _0x3b5876['start']['parent']==_0x3b5876['end']['nodeBefore']&&_0x3b5876['start']['isAtEnd'];}(_0x4b9a69)))_0x5c8bd5['removeMarker'](_0x540c30),_0x4f9e14=!0x0;else{if(!_0x50a5d5||!_0x50a5d5['isInContent'])continue;if(_0x5a0db8['newRange']&&_0x5a0db8['oldRange']&&_0x5a0db8['newRange']['isEqual'](_0x5a0db8['oldRange']))continue;_0x3c4d97['add'](_0x50a5d5);}}}var _0x4b9a69;return _0x3c4d97['size']>0x0&&(_0x4f9e14=!!this['_joinWithAdjacentSuggestions'](_0x3c4d97)||_0x4f9e14),_0x4f9e14;}),_0x5a7f41['model']['document']['registerPostFixer'](_0x9431b6=>{let _0x6302c2=!0x1;for(const _0x5b4e1b of _0x5a7f41['model']['document']['differ']['getChanges']())if('insert'==_0x5b4e1b['type'])for(const _0x2646ea of this['_suggestions']['values']()){if(_0x2646ea['isMultiRange']||!_0x2646ea['isInContent'])continue;const _0x2e9d1a='formatBlock'==_0x2646ea['type'],_0x3d4998=this['_getAttributeKey'](_0x2646ea),_0x2b0900=_0x3d4998&&this['_isBlockAttribute'](_0x3d4998);if(!_0x2e9d1a&&!_0x2b0900)continue;const _0x3563cc=_0x2646ea['getFirstRange']();if(_0x3563cc['start']['parent']!=_0x3563cc['end']['parent']&&!_0x3563cc['end']['isAtEnd']){const _0x5451c9=_0x5a7f41['model']['createPositionAt'](_0x3563cc['start']['nodeAfter'],'end'),_0x58bbe8=_0x5a7f41['model']['createRange'](_0x3563cc['start'],_0x5451c9);_0x9431b6['updateMarker'](_0x2646ea['getFirstMarker'](),{'range':_0x58bbe8}),_0x6302c2=!0x0;}}return _0x6302c2;}),_0x5a7f41['model']['document']['registerPostFixer'](_0x335eca=>this['_processAttributeChanges'](_0x335eca)),_0x5a7f41['model']['document']['registerPostFixer'](_0x16cb31=>!_0x16cb31['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x16cb31)),_0x5a7f41['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5a7f41['model']['document']['on']('change:data',(_0xcb5e3d,_0x1228c0)=>{if(!_0x1228c0['isLocal']||_0x1228c0['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1ea998=_0x5a7f41['model']['document']['differ']['getChanges']();if(0x0==_0x1ea998['length'])return;const _0x12cff0=[],_0x455020=_0x1ea998['filter'](_0x3fd787=>'attribute'==_0x3fd787['type']),_0x566ce6=_0x1ea998['filter'](_0x1c2c94=>'insert'==_0x1c2c94['type']&&'$text'!=_0x1c2c94['name']);for(const _0x2c4654 of _0x455020)this['_isRegisteredAttribute'](_0x2c4654['attributeKey'])&&_0x12cff0['push']({'key':_0x2c4654['attributeKey'],'newValue':_0x2c4654['attributeNewValue'],'oldValue':_0x2c4654['attributeOldValue'],'range':Ht(_0x2c4654['range'],_0x5a7f41['model'])});for(const _0x246821 of _0x566ce6){if('rename'!=_0x246821['action']&&'refresh'!=_0x246821['action'])continue;const _0x2c70f3=qt(_0x246821['position']['nodeAfter'],_0x5a7f41['model']),_0x2cc7b4=_0x246821['before'];'rename'==_0x246821['action']&&_0x12cff0['push']({'key':u,'newValue':_0x246821['name'],'oldValue':_0x2cc7b4['name'],'range':_0x2c70f3});for(const [_0x35e868,_0x5a6d5f]of _0x2cc7b4['attributes']){if(!this['_isRegisteredAttribute'](_0x35e868))continue;const _0x2f070b=_0x246821['attributes']['get'](_0x35e868);_0x5a6d5f!==_0x2f070b&&_0x12cff0['push']({'key':_0x35e868,'newValue':_0x2f070b,'oldValue':_0x5a6d5f,'range':_0x2c70f3});}for(const [_0x593d5f,_0x30246f]of _0x246821['attributes'])this['_isRegisteredAttribute'](_0x593d5f)&&(_0x2cc7b4['attributes']['has'](_0x593d5f)||_0x12cff0['push']({'key':_0x593d5f,'newValue':_0x30246f,'oldValue':null,'range':_0x2c70f3}));}0x0!=_0x12cff0['length']&&_0x5a7f41['model']['enqueueChange'](_0x1228c0,_0x503104=>{const _0x3a384c=_0x1b6899();for(const {range:_0x45a78f,key:_0x470daf,oldValue:_0xe0cfbf,newValue:_0x21bd18}of _0x12cff0)this['markAttributeChange'](_0x45a78f,_0x470daf,_0xe0cfbf,_0x21bd18,{'groupId':_0x3a384c});this['_reduceExistingSuggestions'](_0x503104,_0x12cff0);});},{'priority':'lowest'}),_0x5a7f41['model']['markers']['on']('update:suggestion',(_0x3a33a7,_0x3445b3,_0xea453d)=>{if(null==_0xea453d){const {id:_0x8e6df1}=this['_splitMarkerName'](_0x3445b3['name']),_0x57f386=this['_suggestions']['get'](_0x8e6df1);_0x57f386&&_0x57f386['addMarkerName'](_0x3445b3['name']);}}),_0x5a7f41['model']['document']['on']('change:data',()=>{const _0x150a74=Array['from'](_0x5a7f41['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4378d=>'suggestion'===this['_splitMarkerName'](_0x4378d['name'])['group']);if(0x0===_0x150a74['length'])return;_0x150a74['sort']((_0x39587e,_0x54b16b)=>{const _0x339025=_0x39587e['data']['oldRange'],_0x5537b4=_0x54b16b['data']['oldRange'];return null===_0x339025&&null===_0x5537b4?0x0:null===_0x339025&&null!==_0x5537b4?-0x1:null!==_0x339025&&null===_0x5537b4?0x1:_0x339025['start']['isBefore'](_0x5537b4['start'])?-0x1:0x1;});const _0x21fc6e=new Set(),_0xe3f35c=new Set();for(const {name:_0x3fac3c,data:_0x393b15}of _0x150a74){const {id:_0x30ed48}=this['_splitMarkerName'](_0x3fac3c);if(null===_0x393b15['oldRange']){const _0x327485=this['_handleNewSuggestionMarker'](_0x3fac3c);_0xe3f35c['add'](_0x327485);}else{const _0x4d4641=this['_suggestions']['get'](_0x30ed48);null!==_0x393b15['newRange']||_0x4d4641['isInContent']?(_0x21fc6e['add'](_0x4d4641['head']),_0xe3f35c['add'](_0x4d4641)):this['_removeSuggestion'](_0x4d4641);}}_0xe3f35c['size']>0x0&&this['_refreshSuggestionsChain'](_0xe3f35c);for(const _0x2dfedc of _0x21fc6e)this['fire']('suggestionChanged',_0x2dfedc);}),_0x5a7f41['model']['on']('applyOperation',(_0x52b334,_0x5776ab)=>{const _0x34435b=_0x5776ab[0x0];if(!this['_suggestions']['size'])return;if(!_0x34435b['isDocumentOperation'])return;if(_0x34435b['batch']['isUndo']||!_0x34435b['batch']['isLocal'])return;let _0x2343e4,_0x3afef6;switch(_0x34435b['type']){case'insert':_0x2343e4=_0x5a7f41['model']['createPositionAt'](_0x34435b['position']),_0x3afef6=_0x2343e4['getShiftedBy'](_0x34435b['howMany']);break;case'split':_0x2343e4=_0x5a7f41['model']['createPositionAt'](_0x34435b['splitPosition']),_0x3afef6=_0x5a7f41['model']['createPositionAt'](_0x34435b['moveTargetPosition']);break;case'move':_0x2343e4=_0x5a7f41['model']['createPositionAt'](_0x34435b['targetPosition']),_0x3afef6=_0x2343e4['getShiftedBy'](_0x34435b['howMany']);break;default:return;}const _0x2c94f9=_0x5a7f41['model']['createRange'](_0x2343e4,_0x3afef6);_0x5a7f41['model']['change'](()=>{for(const {suggestion:_0x5cce5f,meta:_0xf244ca}of this['_findSuggestions'](_0x2c94f9)){if(_0x5cce5f['isMultiRange'])continue;if('formatInline'==_0x5cce5f['type'])continue;const _0x2106b3=this['_getAttributeKey'](_0x5cce5f);if(_0x2106b3&&this['_isBlockAttribute'](_0x2106b3)&&'split'!=_0x34435b['type'])continue;const _0x286cb6=_0x5cce5f['data']&&_0x5cce5f['data']['multipleBlocks'];('formatBlock'!=_0x5cce5f['type']||'split'==_0x34435b['type']&&!_0x286cb6)&&(_0xf244ca['containsRangeInObject']||'insertion'==_0x5cce5f['type']&&_0xf244ca['isOwn']||_0x5cce5f['getFirstRange']()['containsRange'](_0x2c94f9)&&this['_breakSuggestionMarker'](_0x5cce5f,_0x2343e4,_0x3afef6));}});},{'priority':'lowest'}),_0x5a7f41['model']['on']('deleteContent',(_0x5bc338,_0xa014c6)=>{const _0x414168=_0xa014c6[0x0],_0x268c6e=_0xa014c6[0x1];if(_0x268c6e&&_0x268c6e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x414168['isCollapsed'])return;const _0xa23a52=_0x5a7f41['model']['schema'],{start:_0x1764b8,end:_0x4a32e7}=_0x414168['getFirstRange'](),_0x567e1f=_0x1764b8['nodeAfter']&&_0xa23a52['isLimit'](_0x1764b8['nodeAfter'])?null:_0xa23a52['getNearestSelectionRange'](_0x1764b8,'forward'),_0x2cd70b=_0x4a32e7['nodeBefore']&&_0xa23a52['isLimit'](_0x4a32e7['nodeBefore'])?null:_0xa23a52['getNearestSelectionRange'](_0x4a32e7,'backward'),_0x14d2d2=_0x5a7f41['model']['createRange'](_0x567e1f?_0x567e1f['start']:_0x1764b8,_0x2cd70b?_0x2cd70b['end']:_0x4a32e7);_0x5a7f41['model']['change'](_0x57fb0b=>{this['markDeletion'](_0x14d2d2);const _0x4cd0de=_0x5a7f41['model']['schema']['getNearestSelectionRange'](_0x14d2d2['start']);_0x414168['is']('documentSelection')?_0x57fb0b['setSelection'](_0x4cd0de):_0x414168['setTo'](_0x4cd0de);}),_0x5bc338['stop']();},{'priority':_0x44647c['normal']+0xa}),_0x5a7f41['model']['on']('insertContent',(_0x5d4626,_0x5805cb)=>{const _0x1f0610=_0x5805cb[_0x5805cb['length']-0x1];_0x1f0610&&_0x1f0610['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5a7f41['model']['change'](()=>{let _0x2264ba=_0x5a7f41['model']['insertContent'](_0x5805cb[0x0],_0x5805cb[0x1],_0x5805cb[0x2],{'forceDefaultExecution':!0x0});if(!_0x2264ba)return;_0x5d4626['return']=_0x2264ba['clone']();const _0x3edd6e=_0x2264ba['end']['nodeBefore'],_0xb89b2b=_0x5a7f41['model']['schema'];_0x3edd6e&&_0xb89b2b['isBlock'](_0x3edd6e)&&!_0xb89b2b['isObject'](_0x3edd6e)&&(_0x2264ba=_0x5a7f41['model']['createRange'](_0x2264ba['start'],_0x5a7f41['model']['createPositionAt'](_0x3edd6e,'end'))),this['markInsertion'](_0x2264ba);}),_0x5d4626['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x42d2cc=new O(_0x5a7f41,this['_suggestions']);_0x5a7f41['commands']['add']('acceptSuggestion',_0x42d2cc),this['enableCommand']('acceptSuggestion');const _0x2a2d98=new R(_0x5a7f41,this['_suggestions']);_0x5a7f41['commands']['add']('discardSuggestion',_0x2a2d98),this['enableCommand']('discardSuggestion'),_0x5a7f41['commands']['add']('acceptAllSuggestions',new x(_0x5a7f41,_0x42d2cc,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5a7f41['commands']['add']('discardAllSuggestions',new x(_0x5a7f41,_0x2a2d98,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5a7f41['commands']['add']('acceptSelectedSuggestions',new E(_0x5a7f41,_0x42d2cc,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5a7f41['commands']['add']('discardSelectedSuggestions',new E(_0x5a7f41,_0x2a2d98,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x13e70d=_0x5a7f41['plugins']['get']('CommentsRepository');this['listenTo'](_0x13e70d,'addComment',(_0x1112c1,{threadId:_0x46c9b0})=>{const _0x14d8c6=this['_suggestions']['get'](_0x46c9b0);_0x14d8c6&&_0x14d8c6['commentThread']&&0x1===_0x14d8c6['commentThread']['length']&&this['_updateSuggestionData'](_0x46c9b0,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x13e70d,'removeComment',(_0x415102,{threadId:_0x48cfb7})=>{const _0x12dc0e=this['_suggestions']['get'](_0x48cfb7);_0x12dc0e&&_0x12dc0e['commentThread']&&!_0x12dc0e['commentThread']['length']&&this['_updateSuggestionData'](_0x48cfb7,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x37ce49){const _0x136d84=_0x123c49([0x63,0x68,0x65,0x30,0x54,0x59,0x55,0x70,0x50,0x58,0x52,0x4d,0x5a,0x35,0x39,0x4c,0x6b,0x6a,0x62,0x78,0x57,0x4e,0x44,0x45,0x36,0x33,0x6c,0x77,0x4b,0x42,0x6f,0x51,0x41,0x56,0x4f,0x7a,0x38,0x46,0x37,0x67,0x6e,0x72,0x64,0x79,0x73,0x43,0x31,0x71,0x4a,0x32,0x75,0x66,0x6d,0x48,0x69,0x76,0x53,0x74,0x61,0x34,0x47,0x49]),_0x42a84d=0x7941b799,_0xe478d5=0x7946d5a9^_0x42a84d,_0x2a4517=window[_0x123c49([0x44,0x61,0x74,0x65])][_0x123c49([0x6e,0x6f,0x77])](),_0x24afe8=_0x37ce49[_0x123c49([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x242458=new window[(_0x123c49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x330bc2=>{_0x24afe8[_0x123c49([0x6f,0x6e,0x63,0x65])](_0x123c49([0x72,0x65,0x61,0x64,0x79]),_0x330bc2);}),_0x4996d1={[_0x123c49([0x6b,0x74,0x79])]:_0x123c49([0x45,0x43]),[_0x123c49([0x75,0x73,0x65])]:_0x123c49([0x73,0x69,0x67]),[_0x123c49([0x63,0x72,0x76])]:_0x123c49([0x50,0x2d,0x32,0x35,0x36]),[_0x123c49([0x78])]:_0x123c49([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]),[_0x123c49([0x79])]:_0x123c49([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]),[_0x123c49([0x61,0x6c,0x67])]:_0x123c49([0x45,0x53,0x32,0x35,0x36])},_0x47732a=_0x24afe8[_0x123c49([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x123c49([0x67,0x65,0x74])](_0x123c49([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x161ae5(){let _0x19c635,_0x2fb151=null,_0x5e9d9e=null;try{if(_0x47732a==_0x123c49([0x47,0x50,0x4c]))return _0x123c49([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x19c635=_0x3eda74(),!_0x19c635)return _0x123c49([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x19c635[_0x123c49([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e9d9e=_0x470e1b(_0x19c635[_0x123c49([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x19c635[_0x123c49([0x6a,0x74,0x69])])),await _0x4679d5()?_0x1f01e8()?_0x1e1987()?_0x123c49([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3b550c()?(_0x19c635[_0x123c49([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x123c49([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2fb151=_0x32c033(_0x123c49([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x19c635[_0x123c49([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x123c49([0x74,0x72,0x69,0x61,0x6c])&&(_0x2fb151=_0x32c033(_0x123c49([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x246fe2()):_0x123c49([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x123c49([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x123c49([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x578a90){return _0x123c49([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e1987(){const _0x51e4ba=[_0x123c49([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x123c49([0x74,0x72,0x69,0x61,0x6c])][_0x123c49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19c635[_0x123c49([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2a4517/0x3e8:0xe10*_0xe478d5;return _0x19c635[_0x123c49([0x65,0x78,0x70])]<_0x51e4ba;}function _0x1f01e8(){const _0x2f053d=_0x19c635[_0x123c49([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2f053d)return!0x1;if(_0x2f053d[_0x123c49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x123c49([0x2a])))return!0x0;if(_0x2f053d[_0x123c49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x123c49([0x54,0x43])))return!0x0;if(_0x2f053d[_0x123c49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x123c49([0x52,0x54,0x43]))){if(_0xf9ec99())return!0x0;if(_0x5761ec()||_0x5a8678())return!0x0;}return!0x1;}function _0x3b550c(){const _0x2fcf86=_0x19c635[_0x123c49([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2fcf86||0x0==_0x2fcf86[_0x123c49([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x214478}=new URL(window[_0x123c49([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2fcf86[_0x123c49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x214478))return!0x0;const _0x23d12f=_0x214478[_0x123c49([0x73,0x70,0x6c,0x69,0x74])](_0x123c49([0x2e]));return _0x2fcf86[_0x123c49([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e7b4e=>_0x5e7b4e[_0x123c49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x123c49([0x2a])))[_0x123c49([0x6d,0x61,0x70])](_0x315e55=>_0x315e55[_0x123c49([0x73,0x70,0x6c,0x69,0x74])](_0x123c49([0x2e])))[_0x123c49([0x73,0x6f,0x6d,0x65])](_0x204a56=>_0x23d12f[_0x123c49([0x65,0x76,0x65,0x72,0x79])]((_0x34fbdf,_0x20ca69)=>_0x204a56[_0x20ca69]===_0x34fbdf||_0x204a56[_0x20ca69]===_0x123c49([0x2a])));}function _0x246fe2(){return _0x2fb151&&_0x5e9d9e?new window[(_0x123c49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a7e5f,_0x167861)=>{_0x2fb151[_0x123c49([0x74,0x68,0x65,0x6e])](_0x1a7e5f,_0x167861),_0x5e9d9e[_0x123c49([0x74,0x68,0x65,0x6e])](_0x57c982=>{_0x57c982!=_0x123c49([0x56,0x61,0x6c,0x69,0x64])&&_0x1a7e5f(_0x57c982);},_0x167861);}):_0x2fb151||_0x5e9d9e||_0x123c49([0x56,0x61,0x6c,0x69,0x64]);}}function _0x470e1b(_0xb2b29d,_0x359274){return new window[(_0x123c49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x110b8a=>{if(_0x41178e())return _0x110b8a(_0x123c49([0x56,0x61,0x6c,0x69,0x64]));_0x4ada20(),_0x24afe8[_0x123c49([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x123c49([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xc4d13f=!0x1;const _0x2f1e37=_0x1b6899();function _0x59c25a(_0xd9395b){return!!_0xd9395b&&(typeof _0xd9395b===_0x123c49([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xd9395b===_0x123c49([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xd9395b[_0x123c49([0x74,0x68,0x65,0x6e])]===_0x123c49([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xd9395b[_0x123c49([0x63,0x61,0x74,0x63,0x68])]===_0x123c49([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3795a3(_0x3175ae){_0x3ffcfd(_0x3175ae)[_0x123c49([0x74,0x68,0x65,0x6e])](_0xb08789=>{if(!_0xb08789||_0xb08789[_0x123c49([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x123c49([0x6f,0x6b]))return _0x123c49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2973b5(_0x1d7561(_0x2f1e37+_0x359274))!=_0xb08789[_0x123c49([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x123c49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x123c49([0x56,0x61,0x6c,0x69,0x64]);})[_0x123c49([0x74,0x68,0x65,0x6e])](_0x5b810e=>(_0x4d5924(),_0x5b810e),()=>{const _0x5b17fa=_0x356dc9();return null==_0x5b17fa?(_0x4d5924(),_0x123c49([0x56,0x61,0x6c,0x69,0x64])):_0x123c49(_0x2a4517-_0x5b17fa>(0x5d4d3399^_0x42a84d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x123c49([0x74,0x68,0x65,0x6e])](_0x110b8a)[_0x123c49([0x63,0x61,0x74,0x63,0x68])](()=>{_0x110b8a(_0x123c49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x43667d=0x79775919^_0x42a84d;function _0x4d5924(){const _0x1c1216=_0x123c49([0x6c,0x6c,0x63,0x74,0x2d])+_0x2973b5(_0x1d7561(_0xb2b29d)),_0x4e0d32=_0x4c419a(_0x2973b5(window[_0x123c49([0x4d,0x61,0x74,0x68])][_0x123c49([0x63,0x65,0x69,0x6c])](_0x2a4517/_0x43667d)));window[_0x123c49([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x123c49([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c1216,_0x4e0d32);}function _0x356dc9(){const _0x4c2c97=_0x123c49([0x6c,0x6c,0x63,0x74,0x2d])+_0x2973b5(_0x1d7561(_0xb2b29d)),_0x21fafc=window[_0x123c49([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x123c49([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c2c97);return _0x21fafc?window[_0x123c49([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c419a(_0x21fafc),0x10)*_0x43667d:null;}function _0x3ffcfd(_0x3d2f99){return new window[(_0x123c49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5931b6,_0x17e1fe)=>{_0x3d2f99[_0x123c49([0x74,0x68,0x65,0x6e])](_0x5931b6,_0x17e1fe),window[_0x123c49([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x17e1fe,0x79406359^_0x42a84d);});}}_0x24afe8[_0x123c49([0x6f,0x6e])](_0x123c49([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x182f00,_0x57dfb6)=>{if(_0x57dfb6[0x0]!=_0xb2b29d)return _0x110b8a(_0x123c49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x57dfb6[0x1]={..._0x57dfb6[0x1],[_0x123c49([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f1e37};},{[_0x123c49([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x123c49([0x68,0x69,0x67,0x68])}),_0x24afe8[_0x123c49([0x6f,0x6e])](_0x123c49([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x19dc12=>{_0x59c25a(_0x19dc12[_0x123c49([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xc4d13f=!0x0,_0x3795a3(_0x19dc12[_0x123c49([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x123c49([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x123c49([0x6c,0x6f,0x77])}),_0x242458[_0x123c49([0x74,0x68,0x65,0x6e])](()=>{_0xc4d13f||_0x110b8a(_0x123c49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x41178e(){return _0x24afe8[_0x123c49([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x123c49([0x76,0x69,0x65,0x77])][_0x123c49([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x123c49([0x61,0x75,0x74,0x6f]);}function _0x4ada20(){_0x24afe8[_0x123c49([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x123c49([0x76,0x69,0x65,0x77])][_0x123c49([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x123c49([0x61,0x75,0x74,0x6f]);}}function _0x32c033(_0x2122e0){const _0x366dcb=[new window[(_0x123c49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34ea03=>setTimeout(_0x34ea03,0x79488955^_0x42a84d)),_0x242458[_0x123c49([0x74,0x68,0x65,0x6e])](()=>new window[(_0x123c49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15859d=>{let _0x39f4f1=0x0;_0x24afe8[_0x123c49([0x6d,0x6f,0x64,0x65,0x6c])][_0x123c49([0x6f,0x6e])](_0x123c49([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x139efe,_0x30c81c)=>{_0x30c81c[0x0][_0x123c49([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x39f4f1++,_0x39f4f1==(0x7941b661^_0x42a84d)&&(_0x15859d(),_0x139efe[_0x123c49([0x6f,0x66,0x66])]());});}))];return window[_0x123c49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x123c49([0x72,0x61,0x63,0x65])](_0x366dcb)[_0x123c49([0x74,0x68,0x65,0x6e])](()=>_0x2122e0);}async function _0x31f230(){await _0x242458,_0x24afe8[_0x123c49([0x6d,0x6f,0x64,0x65,0x6c])][_0x123c49([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c5c68,_0x24afe8[_0x123c49([0x6d,0x6f,0x64,0x65,0x6c])][_0x123c49([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c5c68,_0x24afe8[_0x123c49([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x123c49([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xf9ec99(){return _0x118fad(_0x123c49([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x246225(_0x123c49([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x123c49([0x73,0x74,0x61,0x74,0x65])]==_0x123c49([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5761ec(){return _0x118fad(_0x123c49([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 _0x5a8678(){return _0x118fad(_0x123c49([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x28ff20(_0x3bbe37){const _0x55d818=_0x3749bd();_0x24afe8[_0x55d818]=_0x123c49([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3bbe37,_0x3bbe37!=_0x123c49([0x56,0x61,0x6c,0x69,0x64])&&_0x31f230();}function _0x3749bd(){const _0x29d996=window[_0x123c49([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x123c49([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x123c49([0x6e,0x6f,0x77])]())[_0x123c49([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x123c49([0x2e]),'');let _0x219800=_0x123c49([0x63]);for(let _0x35955b=0x0;_0x35955b<_0x29d996[_0x123c49([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35955b+=0x2){let _0x9e113b=window[_0x123c49([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29d996[_0x123c49([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35955b,_0x35955b+0x2));_0x9e113b>=_0x136d84[_0x123c49([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x9e113b-=_0x136d84[_0x123c49([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x219800+=_0x136d84[_0x9e113b];}return _0x219800;}function _0x3eda74(){const _0x36cac7=_0x47732a[_0x123c49([0x73,0x70,0x6c,0x69,0x74])](_0x123c49([0x2e]));if(0x3!=_0x36cac7[_0x123c49([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x28ac97(_0x36cac7[0x1]);function _0x28ac97(_0x23d8e6){const _0x52cc88=_0x4bc1d5(_0x23d8e6);return _0x52cc88&&_0x44467f()?_0x52cc88:null;function _0x44467f(){const _0x1757ed=_0x52cc88[_0x123c49([0x6a,0x74,0x69])],_0x26125a=window[_0x123c49([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1757ed[_0x123c49([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1757ed[_0x123c49([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2b0ed6={..._0x52cc88,[_0x123c49([0x6a,0x74,0x69])]:_0x1757ed[_0x123c49([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1757ed[_0x123c49([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2b0ed6[_0x123c49([0x76,0x63])],_0x1d7561(_0x2b0ed6)==_0x26125a;}}}async function _0x4679d5(){let _0x4eb298=!0x0;try{const _0x524d35=_0x47732a[_0x123c49([0x73,0x70,0x6c,0x69,0x74])](_0x123c49([0x2e])),[_0x53eb96,_0x2deab5,_0x445c9c]=_0x524d35;return _0xc99e9c(_0x53eb96),await _0x5d6fab(_0x53eb96,_0x2deab5,_0x445c9c),_0x4eb298;}catch(_0x34e426){return!0x1;}function _0xc99e9c(_0x9c7a12){const _0x2aacf6=_0x4bc1d5(_0x9c7a12);_0x2aacf6&&_0x2aacf6[_0x123c49([0x61,0x6c,0x67])]==_0x123c49([0x45,0x53,0x32,0x35,0x36])||(_0x4eb298=!0x1);}async function _0x5d6fab(_0x1e926a,_0x181240,_0x34b660){const _0x480dc1=window[_0x123c49([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x123c49([0x66,0x72,0x6f,0x6d])](_0x3b6063(_0x34b660),_0xa79d04=>_0xa79d04[_0x123c49([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xea981e=new window[(_0x123c49([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x123c49([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1e926a+_0x123c49([0x2e])+_0x181240),_0x31e552=window[_0x123c49([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x123c49([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x31e552)return;const _0x366cff=await _0x31e552[_0x123c49([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x123c49([0x6a,0x77,0x6b]),_0x4996d1,{[_0x123c49([0x6e,0x61,0x6d,0x65])]:_0x123c49([0x45,0x43,0x44,0x53,0x41]),[_0x123c49([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x123c49([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x123c49([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x31e552[_0x123c49([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x123c49([0x6e,0x61,0x6d,0x65])]:_0x123c49([0x45,0x43,0x44,0x53,0x41]),[_0x123c49([0x68,0x61,0x73,0x68])]:{[_0x123c49([0x6e,0x61,0x6d,0x65])]:_0x123c49([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x366cff,_0x480dc1,_0xea981e)||(_0x4eb298=!0x1);}}function _0x4bc1d5(_0x36d7ab){return _0x36d7ab[_0x123c49([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x123c49([0x65,0x79]))?JSON[_0x123c49([0x70,0x61,0x72,0x73,0x65])](_0x3b6063(_0x36d7ab)):null;}function _0x3b6063(_0x4bcc33){return window[_0x123c49([0x61,0x74,0x6f,0x62])](_0x4bcc33[_0x123c49([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x123c49([0x2b]))[_0x123c49([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x123c49([0x2f])));}function _0x1d7561(_0x3cc52a){let _0x3486a7=0x1505;function _0x1895d7(_0x3f7fdd){for(let _0x1b2964=0x0;_0x1b2964<_0x3f7fdd[_0x123c49([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b2964++){const _0x20fadb=_0x3f7fdd[_0x123c49([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1b2964);_0x3486a7=(_0x3486a7<<0x5)+_0x3486a7+_0x20fadb,_0x3486a7&=_0x3486a7;}}function _0x4cfdcb(_0x48dfeb){Array[_0x123c49([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x48dfeb)?_0x48dfeb[_0x123c49([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4cfdcb):_0x48dfeb&&typeof _0x48dfeb==_0x123c49([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x123c49([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x48dfeb)[_0x123c49([0x73,0x6f,0x72,0x74])]()[_0x123c49([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x401580,_0x1f0144])=>{_0x1895d7(_0x401580),_0x4cfdcb(_0x1f0144);}):_0x1895d7(window[_0x123c49([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x48dfeb));}return _0x4cfdcb(_0x3cc52a),_0x3486a7>>>0x0;}function _0x2973b5(_0x26972d){return _0x26972d[_0x123c49([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x123c49([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x123c49([0x30]));}function _0x4c419a(_0x3cbb66){return _0x3cbb66[_0x123c49([0x73,0x70,0x6c,0x69,0x74])]('')[_0x123c49([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x123c49([0x6a,0x6f,0x69,0x6e])]('');}function _0x118fad(_0x11e16e){return _0x24afe8[_0x123c49([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x123c49([0x68,0x61,0x73])](_0x11e16e);}function _0x246225(_0x20be7e){return _0x24afe8[_0x123c49([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x123c49([0x67,0x65,0x74])](_0x20be7e);}function _0x3c5c68(){}function _0x123c49(_0x5be499){return _0x5be499['map'](_0x1e2763=>String['fromCharCode'](_0x1e2763))['join']('');}_0x28ff20(await _0x161ae5());}(this);}set['adapter'](_0x49ec3e){if(this['_adapter'])throw new _0x20d2d0('track-changes-adapter-already-set',this);this['_adapter']=_0x49ec3e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x7a1b4=!0x1,toJSON:_0x587fc2=!0x1}={}){const _0x3ff51d=[];for(const _0x2ef3cf of this['_suggestions']['values']())_0x7a1b4&&!_0x2ef3cf['isInContent']||_0x3ff51d['push'](_0x2ef3cf);return _0x587fc2?_0x3ff51d['map'](_0x22713b=>_0x22713b['toJSON']()):_0x3ff51d;}['getSuggestion'](_0x45be50){const _0x3b42c5=this['_suggestions']['get'](_0x45be50);if(!_0x3b42c5)throw new _0x20d2d0('track-changes-suggestion-not-found',this);return _0x3b42c5;}['hasSuggestion'](_0x25a8a9){return this['_suggestions']['has'](_0x25a8a9);}['addSuggestionData'](_0x3104dc){const {authorId:_0x25cbf6,id:_0x45f35d,attributes:_0x1df924}=_0x3104dc,[_0xfa5ff4,_0x20ee6f]=_0x3104dc['type']['split'](':'),_0x5259b3=this['_suggestions']['get'](_0x45f35d)||this['_createSuggestion'](_0xfa5ff4,_0x20ee6f,_0x45f35d,_0x25cbf6,_0x1df924);if(this['_addThreadToSuggestion'](_0x5259b3),this['_checkSuggestionCorrectness'](_0x5259b3,_0xfa5ff4,_0x20ee6f||null,_0x25cbf6),_0x5259b3['createdAt']=_0x3104dc['createdAt'],_0x5259b3['_isDataLoaded']=!0x0,_0x1df924&&_0x1df924['@external']){const _0x18b9ba=_0x1df924['@external'],_0x34e013=this['_getExternalAuthor'](_0x18b9ba['authorName']);_0x5259b3['authoredAt']=_0x18b9ba['createdAt'],_0x5259b3['author']=_0x34e013,_0x5259b3['isExternal']=!0x0;}else _0x5259b3['authoredAt']=_0x3104dc['createdAt'];switch(_0x3104dc['data']&&(_0x5259b3['data']=_0x3104dc['data']),_0x3104dc['attributes']&&(_0x5259b3['attributes']=_0x3104dc['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5259b3['_saved']=!0x0),this['_suggestionState']['get'](_0x5259b3)){case'notReady':this['_suggestionState']['set'](_0x5259b3,'dataReady');break;case'markerReady':_0x5259b3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5259b3])),this['_refreshSuggestionsChain'](new Set([_0x5259b3])),this['_suggestionState']['set'](_0x5259b3,'ready'),this['fire']('suggestionLoaded',_0x5259b3)):this['_suggestionState']['set'](_0x5259b3,'removed');}return _0x5259b3;}['acceptSuggestion'](_0x58fe01){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5b21ef of _0x58fe01['getAllAdjacentSuggestions']())_0x5b21ef['accept']();});});}['discardSuggestion'](_0x5ce843){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5be50f of _0x5ce843['getAllAdjacentSuggestions']())_0x5be50f['discard']();});});}['enableCommand'](_0x2118b4,_0xbfe834){const _0x28dcaf=this['editor']['commands']['get'](_0x2118b4);if(!_0x28dcaf)throw new _0x20d2d0('track-changes-command-not-found',this,{'commandName':_0x2118b4});if(this['_enabledCommands']['has'](_0x28dcaf))throw new _0x20d2d0('track-changes-enable-command-twice',this,{'commandName':_0x2118b4});this['_enabledCommands']['add'](_0x28dcaf),_0xbfe834&&_0x28dcaf['on']('execute',(_0x401cca,_0x5e4122)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5e4122['length']>0x0&&_0x5e4122[_0x5e4122['length']-0x1]&&_0x5e4122[_0x5e4122['length']-0x1]['forceDefaultExecution']?_0x5e4122['pop']():(_0x401cca['return']=_0xbfe834((..._0x5a964e)=>_0x28dcaf['execute'](..._0x5a964e,{'forceDefaultExecution':!0x0}),..._0x5e4122),_0x401cca['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x45c3f2){let _0x46b3da,_0x2e90b9;const _0x347439=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x46b3da=_0x45c3f2();}catch(_0x40123f){_0x2e90b9=_0x40123f;}return _0x347439||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2e90b9&&_0x20d2d0['rethrowUnexpectedError'](_0x2e90b9,this),_0x46b3da;}['markInsertion'](_0x136cbe,_0x2572a1=null,_0x2db453={}){if(_0x136cbe['isCollapsed'])return null;const _0x3b255e=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x58779d,meta:_0x57581f}of this['_findSuggestions'](_0x136cbe,'insertion'))if(_0x57581f['isOwn']){if(!_0x57581f['isNextTo']){if(_0x57581f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x58779d,_0x2db453))continue;return _0x58779d;}if(Qt(_0x58779d,_0x2db453))return _0x58779d;this['_breakSuggestionMarker'](_0x58779d,_0x136cbe['start'],_0x136cbe['end']);break;}if(_0x2572a1==_0x58779d['subType']&&Qt(_0x58779d,_0x2db453)){const _0x19e6cf=_0x58779d['getFirstRange']();return _0x19e6cf['start']['isEqual'](_0x136cbe['end'])?this['_setSuggestionRange'](_0x58779d,this['_model']['createRange'](_0x136cbe['start'],_0x19e6cf['end'])):this['_setSuggestionRange'](_0x58779d,this['_model']['createRange'](_0x19e6cf['start'],_0x136cbe['end'])),_0x58779d;}}const _0x3cfe79=_0x1b6899(),_0x4eca44=_0x3b255e['id'],_0x3ba59c=_0x2572a1?'insertion:'+_0x2572a1:'insertion',_0x307f8f=this['_setSuggestionData']({'id':_0x3cfe79,'type':_0x3ba59c,'createdAt':new Date(),'authorId':_0x4eca44,'attributes':_0x2db453});return this['_addSuggestionMarker'](_0x3ba59c,_0x3cfe79,_0x4eca44,_0x136cbe),_0x307f8f;}['markMultiRangeInsertion'](_0xaee11c,_0x5d761a='multi',_0x119310={}){const _0x58debd=this['editor']['plugins']['get']('Users')['me'],_0x44d2ef=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5d761a,'join');for(const _0x83d0cb of this['getSuggestions']())if(_0x83d0cb['author']['id']==_0x58debd['id']&&'insertion'==_0x83d0cb['type']&&_0x83d0cb['subType']==_0x5d761a&&Qt(_0x83d0cb,_0x119310)&&(_0x44d2ef(_0x83d0cb['getRanges'](),_0xaee11c)||_0x44d2ef(_0xaee11c,_0x83d0cb['getRanges']()))){for(const _0x231ea9 of _0xaee11c)_0x83d0cb['addRange'](_0x231ea9);return _0x83d0cb;}for(const {suggestion:_0x1f1c65,meta:_0x479dd1}of this['_findSuggestions'](_0xaee11c,'insertion')){if(!_0x479dd1['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x479dd1['containsRangeInObject'])continue;if(!Qt(_0x1f1c65,_0x119310))continue;let _0x5ec047=!0x0;for(const _0x17de22 of _0x1f1c65['getRanges']())for(const _0x37cd60 of _0xaee11c)if(!_0x17de22['containsRange'](_0x37cd60)){_0x5ec047=!0x1;break;}if(_0x5ec047)return _0x1f1c65;}const _0x42fb5b=_0x1b6899(),_0x1e1872=_0x58debd['id'],_0x18f27e='insertion:'+_0x5d761a,_0xc61c4d=this['_setSuggestionData']({'id':_0x42fb5b,'type':_0x18f27e,'createdAt':new Date(),'authorId':_0x1e1872,'attributes':_0x119310});for(const _0x412d20 of _0xaee11c)this['_addSuggestionMarker'](_0x18f27e,_0x42fb5b,_0x1e1872,_0x412d20,o['getMultiRangeId']());return _0xc61c4d;}['markInlineFormat'](_0x39db3f,_0x270ffa,_0x4e6855=null,_0x2c30a3={}){if(_0x4e6855=_0x4e6855||Jt(_0x270ffa),_0x39db3f['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2d3f70=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4e6855,'accept');return this['forceDefaultExecution'](()=>_0x2d3f70([_0x39db3f],_0x270ffa,_0x2c30a3)),null;}const _0x462982=this['editor']['plugins']['get']('Users')['me'],_0x575284=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xa297fb,meta:_0x200aba}of this['_findSuggestions'](_0x39db3f,'insertion'))_0x200aba['isOwn']&&!_0x200aba['isInsideObject']&&_0x575284['push'](..._0xa297fb['getRanges']());}const _0x48ab8c=function(_0x36f9b8,_0x3e83e2){const _0x2bc99c=[];for(const _0x2d9d69 of _0x3e83e2){const _0x8838a0=_0x36f9b8['getIntersection'](_0x2d9d69);_0x8838a0&&_0x2bc99c['push'](_0x8838a0);}return _0x2bc99c;}(_0x39db3f,_0x575284),_0x409e02=function(_0x2a4727,_0x11dd54){const _0x220af0=[_0x2a4727];for(const _0x5ad7c6 of _0x11dd54){let _0x32cf07=0x0;for(;_0x32cf07<_0x220af0['length'];){const _0x2aa8a2=_0x220af0[_0x32cf07]['getDifference'](_0x5ad7c6);_0x220af0['splice'](_0x32cf07,0x1,..._0x2aa8a2),_0x32cf07+=_0x2aa8a2['length'];}}return _0x220af0;}(_0x39db3f,_0x575284);_0x48ab8c['length']&&this['_model']['change'](()=>{for(const _0x4b89b8 of _0x48ab8c){const _0x462fbb=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4e6855,'accept');this['forceDefaultExecution'](()=>_0x462fbb([_0x4b89b8],_0x270ffa,_0x2c30a3));}});for(const _0x1e2426 of _0x409e02){let _0x238b73=null,_0x160f2c=_0x1e2426['start'],_0x5c466b=_0x1e2426['end'];for(const {suggestion:_0x2159c1,meta:_0x10c20d}of this['_findSuggestions'](_0x1e2426,'formatInline')){if(!_0x10c20d['isOwn'])continue;if(_0x2159c1['subType']!=_0x4e6855)continue;if(!Qt(_0x2159c1,_0x2c30a3))continue;const _0x1e7c37=_0x2159c1['getFirstRange']();if(_0x1e7c37['containsRange'](_0x1e2426,!0x0))return null;_0x160f2c=_0x160f2c['isBefore'](_0x1e7c37['start'])?_0x160f2c:_0x1e7c37['start'],_0x5c466b=_0x5c466b['isAfter'](_0x1e7c37['end'])?_0x5c466b:_0x1e7c37['end'],_0x238b73?_0x1e7c37['start']['isBefore'](_0x238b73['getFirstRange']()['start'])?(_0x238b73['removeMarkers'](),_0x238b73=_0x2159c1):_0x2159c1['removeMarkers']():_0x238b73=_0x2159c1;}const _0x4221c8=this['_model']['createRange'](_0x160f2c,_0x5c466b);if(_0x238b73)this['_setSuggestionRange'](_0x238b73,_0x4221c8);else{const _0xa69f9b=_0x1b6899(),_0x3cb197=_0x462982['id'];this['_setSuggestionData']({'id':_0xa69f9b,'type':'formatInline:'+_0x4e6855,'data':_0x270ffa,'createdAt':new Date(),'authorId':_0x3cb197,'attributes':_0x2c30a3}),this['_addSuggestionMarker']('formatInline:'+_0x4e6855,_0xa69f9b,_0x3cb197,_0x4221c8);}}return null;}['markBlockFormat'](_0x40cf14,_0x57a389,_0x37fd1c=[],_0x192359=null,_0x2c9f05={}){_0x57a389['formatGroupId']||(_0x57a389['formatGroupId']=_0x57a389['commandName']),_0x57a389['multipleBlocks']=_0x40cf14['is']('range'),_0x192359=_0x192359||Jt(_0x57a389);const _0x4d6fbd=_0x37fd1c['map'](_0x36e6b5=>qt(_0x36e6b5,this['_model'])),_0x2396fd=_0x40cf14['is']('range')?_0x40cf14:qt(_0x40cf14,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3f189e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x192359,'accept');return this['forceDefaultExecution'](()=>_0x3f189e([_0x2396fd],_0x57a389,_0x2c9f05)),null;}_0x4d6fbd['push'](_0x2396fd);let _0x77ba51=!0x0;for(const _0x22d96f of _0x4d6fbd)if(!this['_rangeIsInLocalUserInsertion'](_0x22d96f)){_0x77ba51=!0x1;break;}if(_0x77ba51&&'always'!==this['_trackFormatChanges']){const _0x3f18cb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x192359,'accept');return this['forceDefaultExecution'](()=>_0x3f18cb([_0x2396fd],_0x57a389,_0x2c9f05)),null;}let _0x26bd79=null,_0x248d04=_0x2396fd['start'],_0x2eba0e=_0x2396fd['end'];for(const {suggestion:_0x31dbb4,meta:_0x5b7739}of this['_findSuggestions'](_0x2396fd,'formatBlock')){if(!_0x5b7739['isOwn'])continue;if(_0x5b7739['isNextTo']||_0x5b7739['containsRangeInObject']||_0x5b7739['isInsideObject'])continue;if(_0x31dbb4['data']['formatGroupId']!=_0x57a389['formatGroupId'])continue;if(!Qt(_0x31dbb4,_0x2c9f05))continue;const _0x157892=_0x31dbb4['getFirstRange']();if(_0x31dbb4['subType']==_0x192359){if(_0x157892['containsRange'](_0x2396fd,!0x0))return null;_0x248d04=_0x248d04['isBefore'](_0x157892['start'])?_0x248d04:_0x157892['start'],_0x2eba0e=_0x2eba0e['isAfter'](_0x157892['end'])?_0x2eba0e:_0x157892['end'],_0x26bd79?_0x157892['start']['isBefore'](_0x26bd79['getFirstRange']()['start'])?(_0x26bd79['removeMarkers'](),_0x26bd79=_0x31dbb4):_0x31dbb4['removeMarkers']():_0x26bd79=_0x31dbb4;}else{const _0x27c98a=_0x2396fd['getIntersection'](_0x157892);this['_cutOutSuggestionMarker'](_0x31dbb4,_0x27c98a);}}const _0x4efe4d=this['editor']['plugins']['get']('Users')['me'],_0xffd551=_0x1b6899(),_0x5a4d09=_0x4efe4d['id'];if(_0x26bd79)return this['_setSuggestionRange'](_0x26bd79,this['_model']['createRange'](_0x248d04,_0x2eba0e)),_0x26bd79;{const _0x27e399=this['_setSuggestionData']({'id':_0xffd551,'type':'formatBlock:'+_0x192359,'data':_0x57a389,'createdAt':new Date(),'authorId':_0x5a4d09,'attributes':_0x2c9f05});return this['_addSuggestionMarker']('formatBlock:'+_0x192359,_0xffd551,_0x5a4d09,this['_model']['createRange'](_0x248d04,_0x2eba0e)),_0x27e399;}}['markMultiRangeBlockFormat'](_0x2d5f17,_0x5acc16,_0x3073c1=[],_0x1b19a2=null,_0x168d92={}){_0x5acc16['formatGroupId']||(_0x5acc16['formatGroupId']=_0x5acc16['commandName']);const _0x1beaa5=_0x2d5f17[0x0];_0x5acc16['multipleBlocks']=_0x1beaa5['is']('range'),_0x1b19a2=_0x1b19a2||Jt(_0x5acc16);const _0x19928d=_0x3073c1['map'](_0x5c3003=>qt(_0x5c3003,this['_model'])),_0x420a61=_0x1beaa5['is']('range')?_0x2d5f17:_0x2d5f17['map'](_0x2d69d8=>qt(_0x2d69d8,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2180f8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b19a2,'accept');return this['forceDefaultExecution'](()=>_0x2180f8(_0x420a61,_0x5acc16,_0x168d92)),null;}_0x19928d['push'](..._0x420a61);let _0xb368e2=!0x0;for(const _0x3b0be0 of _0x19928d)if(!this['_rangeIsInLocalUserInsertion'](_0x3b0be0)){_0xb368e2=!0x1;break;}if(_0xb368e2&&'always'!==this['_trackFormatChanges']){const _0x45294a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b19a2,'accept');return this['forceDefaultExecution'](()=>_0x45294a(_0x420a61,_0x5acc16,_0x168d92)),null;}const _0x22e40c=this['editor']['plugins']['get']('Users')['me'];for(const _0xaa6d48 of this['getSuggestions']()){if(_0xaa6d48['author']['id']!=_0x22e40c['id'])continue;if('formatBlock'!=_0xaa6d48['type']||_0xaa6d48['data']['formatGroupId']!=_0x5acc16['formatGroupId'])continue;if(!Qt(_0xaa6d48,_0x168d92))continue;const _0x5ae2dd=_0xaa6d48['subType']==_0x1b19a2;for(let _0x337a59=0x0;_0x337a59<_0x420a61['length'];_0x337a59++){const _0x581ba7=_0x420a61[_0x337a59];for(const _0xc6acd6 of _0xaa6d48['getMarkers']()){const _0x45c725=_0xc6acd6['getRange']();if(_0x581ba7['isEqual'](_0x45c725)){_0x5ae2dd?(_0x420a61['splice'](_0x337a59,0x1),_0x337a59--):_0xaa6d48['removeMarker'](_0xc6acd6['name']);break;}}}}if(0x0==_0x420a61['length'])return null;const _0x5edadc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b19a2,'join');for(const _0x299b1c of this['getSuggestions']())if(_0x299b1c['author']['id']==_0x22e40c['id']&&'formatBlock'==_0x299b1c['type']&&_0x299b1c['data']['formatGroupId']==_0x5acc16['formatGroupId']&&_0x299b1c['subType']==_0x1b19a2&&Qt(_0x299b1c,_0x168d92)&&(_0x5edadc(_0x299b1c['getRanges'](),_0x420a61)||_0x5edadc(_0x420a61,_0x299b1c['getRanges']()))){for(const _0x20ea7b of _0x420a61)_0x299b1c['addRange'](_0x20ea7b);return _0x299b1c;}const _0x35c8f2=_0x1b6899(),_0x2d7b48=_0x22e40c['id'],_0x45898a='formatBlock:'+_0x1b19a2,_0x445543=this['_setSuggestionData']({'id':_0x35c8f2,'type':_0x45898a,'data':_0x5acc16,'createdAt':new Date(),'authorId':_0x2d7b48,'attributes':_0x168d92});for(const _0xe6856c of _0x420a61)this['_addSuggestionMarker'](_0x45898a,_0x35c8f2,_0x2d7b48,_0xe6856c,o['getMultiRangeId']());return _0x445543;}['markDeletion'](_0x9e8062,_0x5ccb80=null,_0x1106af={}){if(_0x9e8062['isCollapsed'])return null;const _0x4b0eb6=this['editor']['plugins']['get']('Users')['me'],_0x48a08a=new _0x54bc73(_0x9e8062['start'],_0x9e8062['end']);for(const {suggestion:_0x5f5603,meta:_0x3d9ac0}of this['_findSuggestions'](_0x48a08a,'insertion'))if(_0x3d9ac0['isOwn']&&!_0x3d9ac0['isNextTo']){if(_0x5f5603['isMultiRange']){const _0x44e97a=_0x5f5603['getRanges']()['filter'](_0x4d98bc=>'$graveyard'!=_0x4d98bc['root']['rootName']);_0x44e97a['every'](_0x5bc4ce=>_0x48a08a['containsRange'](_0x5bc4ce,!0x0))&&_0x5f5603['discard']();if(_0x44e97a['some'](_0x5e004a=>_0x5e004a['containsRange'](_0x48a08a,!0x0))){const _0x27e30e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5ccb80,'accept');return this['forceDefaultExecution'](()=>_0x27e30e([_0x48a08a],null,_0x1106af)),null;}}else{const _0x26ecb7=_0x48a08a['getIntersection'](_0x5f5603['getFirstRange']());null!==_0x26ecb7&&_0x5f5603['_onDiscard']([_0x26ecb7],null,_0x1106af);}}if(_0x48a08a['detach'](),_0x48a08a['isCollapsed']||'$graveyard'==_0x48a08a['root']['rootName'])return null;let _0x557ee0=null,_0x2650f1=_0x48a08a['start'],_0x18ffbe=_0x48a08a['end'];const _0x28f92b=this['_findSuggestions'](_0x48a08a,'deletion');for(const {suggestion:_0x367295,meta:_0x26a267}of _0x28f92b){const _0x8be59=this['_model']['createRange'](_0x2650f1,_0x18ffbe);if(_0x26a267['isOwn']&&(this['_mergeNestedSuggestions']||!_0x26a267['containsRangeInObject']&&!_0x26a267['isInsideObject'])){if(_0x367295['isMultiRange']){if(!Qt(_0x367295,_0x1106af))continue;let _0x23c827=!0x0;for(const _0x3a8071 of _0x367295['getRanges']()){if(_0x3a8071['containsRange'](_0x8be59,!0x0))return _0x367295;_0x8be59['containsRange'](_0x3a8071)||(_0x23c827=!0x1);}_0x23c827&&_0x367295['discard']();}else{const _0x4f4afb=_0x367295['getFirstRange']();if(_0x4f4afb['containsRange'](_0x8be59,!0x0))return _0x367295;if(!Qt(_0x367295,_0x1106af)){_0x8be59['containsRange'](_0x4f4afb)?_0x367295['removeMarkers']():_0x4f4afb['containsPosition'](_0x2650f1)?_0x2650f1=_0x4f4afb['end']:_0x4f4afb['containsPosition'](_0x18ffbe)&&(_0x18ffbe=_0x4f4afb['start']);continue;}_0x2650f1=_0x2650f1['isBefore'](_0x4f4afb['start'])?_0x2650f1:_0x4f4afb['start'],_0x18ffbe=_0x18ffbe['isAfter'](_0x4f4afb['end'])?_0x18ffbe:_0x4f4afb['end'],_0x1106af=Object['assign']({},_0x367295['attributes']),_0x557ee0?_0x4f4afb['start']['isBefore'](_0x557ee0['getFirstRange']()['start'])?(_0x557ee0['removeMarkers'](),_0x557ee0=_0x367295):_0x367295['removeMarkers']():_0x557ee0=_0x367295;}}}if(_0x557ee0)return this['_setSuggestionRange'](_0x557ee0,this['_model']['createRange'](_0x2650f1,_0x18ffbe)),_0x557ee0;{const _0x501472=_0x1b6899(),_0x57fdd5=this['_model']['createRange'](_0x2650f1,_0x18ffbe),_0x23aeff=_0x4b0eb6['id'],_0x3a617f=_0x5ccb80?'deletion:'+_0x5ccb80:'deletion',_0x1ac810=this['_setSuggestionData']({'id':_0x501472,'type':_0x3a617f,'createdAt':new Date(),'authorId':_0x23aeff,'attributes':_0x1106af});return this['_addSuggestionMarker'](_0x3a617f,_0x501472,_0x23aeff,_0x57fdd5),_0x1ac810;}}['markMultiRangeDeletion'](_0x4c8ea2,_0x4a2bf7='multi',_0x336216={}){const _0x25e7fa=this['editor']['plugins']['get']('Users')['me'],_0x443c17=_0x4c8ea2['map'](_0x5e1779=>new _0x54bc73(_0x5e1779['start'],_0x5e1779['end'])),_0xf17679=new Set();for(const {suggestion:_0x3ffc81,meta:_0x23587a}of this['_findSuggestions'](_0x443c17,'insertion'))_0x23587a['isOwn']&&!_0x23587a['isNextTo']&&_0xf17679['add'](_0x3ffc81);for(const _0xe4dfb of _0xf17679)if(_0xe4dfb['isMultiRange']){const _0xd39cae=_0xe4dfb['getRanges']();(!_0xe4dfb['attributes']||!_0xe4dfb['attributes']['skipNestingCheck'])&&(_0xd39cae['every'](_0x4cc93d=>_0x443c17['some'](_0x5a592c=>_0x5a592c['containsRange'](_0x4cc93d,!0x0)))&&_0xe4dfb['discard']());if(_0x443c17['every'](_0xa9cb86=>_0xd39cae['some'](_0x4f007c=>_0x4f007c['containsRange'](_0xa9cb86,!0x0)))){const _0x3db900=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a2bf7,'accept');return this['forceDefaultExecution'](()=>_0x3db900(_0x4c8ea2,null,_0x336216)),null;}}else{const _0x2bd5cb=_0xe4dfb['getFirstRange']();_0x443c17['some'](_0x25f1d0=>_0x25f1d0['containsRange'](_0x2bd5cb,!0x0))&&_0xe4dfb['discard']();if(_0x443c17['every'](_0x341f7e=>_0x2bd5cb['containsRange'](_0x341f7e,!0x0))){const _0x2a21dd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a2bf7,'accept');return this['forceDefaultExecution'](()=>_0x2a21dd(_0x443c17,null,_0x336216)),null;}}const _0x267f6a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a2bf7,'join');let _0x446c5c=null;for(const _0x3e10fb of this['getSuggestions']())if(_0x3e10fb['author']['id']==_0x25e7fa['id']&&_0x3e10fb['isInContent']&&'deletion'==_0x3e10fb['type']&&_0x3e10fb['subType']==_0x4a2bf7&&Qt(_0x3e10fb,_0x336216)&&(_0x267f6a(_0x3e10fb['getRanges'](),_0x443c17)||_0x267f6a(_0x443c17,_0x3e10fb['getRanges']()))){if(_0x446c5c){if(_0x3e10fb['commentThread']&&_0x3e10fb['commentThread']['length'])continue;for(const _0xcf8891 of _0x3e10fb['getRanges']())_0x446c5c['isIntersectingWithRange'](_0xcf8891)||_0x446c5c['addRange'](_0xcf8891);_0x3e10fb['removeMarkers']();}else{_0x446c5c=_0x3e10fb;for(const _0x1e6b84 of _0x443c17)_0x3e10fb['isIntersectingWithRange'](_0x1e6b84)||_0x3e10fb['addRange'](_0x1e6b84);}}if(_0x446c5c)return _0x446c5c;_0xf17679['clear']();for(const {suggestion:_0x193b28,meta:_0x44cada}of this['_findSuggestions'](_0x443c17,'deletion'))_0x44cada['isOwn']&&(this['_mergeNestedSuggestions']||!_0x44cada['containsRangeInObject']&&!_0x44cada['isInsideObject'])&&Qt(_0x193b28,_0x336216)&&_0xf17679['add'](_0x193b28);for(const _0x10eb74 of _0xf17679){const _0x106901=_0x10eb74['getRanges']();if(!_0x336216||!_0x336216['skipNestingCheck']){if(_0x443c17['every'](_0x49bc4a=>_0x106901['some'](_0x102fb3=>_0x102fb3['containsRange'](_0x49bc4a,!0x0))))return _0x10eb74;}(!_0x10eb74['attributes']||!_0x10eb74['attributes']['skipNestingCheck'])&&(_0x106901['every'](_0x3c6c37=>_0x443c17['some'](_0x406e59=>_0x406e59['containsRange'](_0x3c6c37,!0x0)))&&_0x10eb74['discard']());}const _0x3144f1=_0x1b6899(),_0x2f44e2=_0x25e7fa['id'],_0x34ca0e='deletion:'+_0x4a2bf7,_0x34a433=this['_setSuggestionData']({'id':_0x3144f1,'type':_0x34ca0e,'createdAt':new Date(),'authorId':_0x2f44e2,'attributes':_0x336216});for(const _0xa2dc16 of _0x443c17)_0xa2dc16['detach'](),_0xa2dc16['isCollapsed']||'$graveyard'==_0xa2dc16['root']['rootName']||this['_addSuggestionMarker'](_0x34ca0e,_0x3144f1,_0x2f44e2,_0xa2dc16,o['getMultiRangeId']());return _0x34a433;}['markAttributeChange'](_0x2da13b,_0x1a0722,_0x5f3f3e,_0x207e7b,_0xfe2420){if(_0x2da13b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x22dc13=this['editor']['plugins']['get']('Users')['me']['id'],_0x2fa1ac=Array['from'](this['_suggestions']['values']())['filter'](_0x54ec0c=>'attribute'==_0x54ec0c['type']&&_0x54ec0c['data']['key']==_0x1a0722&&_0x54ec0c['isIntersectingWithRange'](_0x2da13b));if('default'===this['_trackFormatChanges']){const _0x144696=this['_findSuggestions'](_0x2da13b,'insertion')['filter'](({meta:_0x3c53c2})=>_0x3c53c2['isOwn']&&!_0x3c53c2['isInsideObject']&&!_0x3c53c2['isNextTo'])['map'](({suggestion:_0x16799b})=>_0x16799b);_0x2fa1ac['unshift'](..._0x144696);}const _0x24b0e6=new Map([[_0x2da13b,_0x5f3f3e]]);for(const _0xe699b8 of _0x2fa1ac){const _0x3aa4c7='attribute'==_0xe699b8['type']?_0xe699b8['data']['oldValue']:void 0x0,_0x4dee43=_0xe699b8['getFirstRange'](),_0x21c731=Array['from'](_0x24b0e6['keys']())['find'](_0x227ee8=>_0x227ee8['isIntersecting'](_0x4dee43));if(!_0x21c731)continue;const _0x492110=_0x21c731['getDifference'](_0x4dee43);this['_isBlockAttribute'](_0x1a0722)&&'insertion'==_0xe699b8['type']&&0x0!=_0x492110['length']||(_0x24b0e6['delete'](_0x21c731),_0x492110['forEach'](_0x5cd327=>{_0x24b0e6['set'](_0x5cd327,_0x5f3f3e);}),'insertion'!=_0xe699b8['type']&&_0x3aa4c7!=_0x207e7b&&_0x24b0e6['set'](_0x21c731['getIntersection'](_0x4dee43),_0x3aa4c7));}const _0x34df3b=[];for(const [_0x48de96,_0x3cf0f7]of _0x24b0e6){const _0x28e14a=_0x1b6899(),_0x291bbf={'key':_0x1a0722,'oldValue':_0x3cf0f7,'newValue':_0x207e7b};_0x1a0722['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':_0x1a0722});const _0xfae818=('attribute:'+(_0x1a0722+'|'+Jt({'newValue':_0x207e7b})))['substring'](0x0,0x3c),_0xfc2ad5=this['_setSuggestionData']({'id':_0x28e14a,'type':_0xfae818,'data':_0x291bbf,'createdAt':new Date(),'authorId':_0x22dc13,'attributes':_0xfe2420});_0x34df3b['push'](_0xfc2ad5),this['_addSuggestionMarker'](_0xfae818,_0x28e14a,_0x22dc13,_0x48de96);}return _0x34df3b;}['enableDefaultAttributesIntegration'](_0x3aa7c8){this['enableCommand'](_0x3aa7c8,(_0x3f82a3,..._0x11b757)=>{this['_recordAttributeChanges'](()=>{_0x3f82a3(..._0x11b757);});});}['registerBlockAttribute'](_0x249257){this['_blockAttributeKeys']['add'](_0x249257);}['registerInlineAttribute'](_0x2c469a){this['_inlineAttributeKeys']['add'](_0x2c469a);}['_getAttributeKey'](_0x418c8c){return'attribute'==_0x418c8c['type']?_0x418c8c['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x985160,_0xe1ef1e){const _0x3e630b=_0x985160['getFirstMarker']();this['_model']['change'](_0x295039=>{_0x295039['updateMarker'](_0x3e630b,{'range':_0xe1ef1e});});}['_addThreadToSuggestion'](_0x3ab279){const _0x1d3f05=_0x3ab279['id'],_0x14b5b2=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1d3f05)||this['_commentsRepository']['addCommentThread']({'channelId':_0x14b5b2,'threadId':_0x1d3f05,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1cb525=this['_commentsRepository']['getCommentThread'](_0x1d3f05);_0x1cb525['unbind']('isRemovable'),_0x1cb525['isRemovable']=!0x1,_0x3ab279['commentThread']=_0x1cb525;}['_checkSuggestionCorrectness'](_0x1657d4,_0x2d9146,_0x25b07d,_0x468dc4){if(_0x1657d4['type']!=_0x2d9146||_0x1657d4['subType']!=_0x25b07d||_0x1657d4['creator']['id']!=_0x468dc4)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x20d2d0('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3921ea,_0x34a498){const _0x350814=_0x3921ea['getFirstRange']();if(_0x34a498['isEqual'](_0x350814))_0x3921ea['removeMarkers']();else{if(_0x350814['containsRange'](_0x34a498)){const _0x3038c6=this['_model']['createPositionAt'](_0x34a498['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3921ea,this['_model']['createRange'](_0x350814['start'],_0x3038c6));const _0x41d95a=_0x1b6899(),_0x1d5655=_0x3921ea['creator']['id'],_0x1292a6=_0x3921ea['type']+':'+_0x3921ea['subType'];this['_setSuggestionData']({'id':_0x41d95a,'type':_0x1292a6,'createdAt':new Date(),'authorId':_0x1d5655,'data':_0x3921ea['data'],'attributes':_0x3921ea['attributes']});const _0x261de7=this['_model']['createPositionAt'](_0x34a498['end']['parent'],'after'),_0x3bb937=this['_model']['createRange'](_0x261de7,_0x350814['end']);this['_addSuggestionMarker'](_0x1292a6,_0x41d95a,_0x1d5655,_0x3bb937);}else{if(_0x350814['containsPosition'](_0x34a498['start'])){const _0x425c57=this['_model']['createPositionAt'](_0x34a498['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3921ea,this['_model']['createRange'](_0x350814['start'],_0x425c57));}else{const _0xcde2d=this['_model']['createPositionAt'](_0x34a498['end']['parent'],'after');this['_setSuggestionRange'](_0x3921ea,this['_model']['createRange'](_0xcde2d,_0x350814['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x260560){for(const {suggestion:_0x4d2325,meta:_0x366c8b}of this['_findSuggestions'](_0x260560,'insertion')){if(!_0x366c8b['isOwn'])continue;const _0x5612e3=_0x4d2325['getRanges']();for(const _0x1ddb4f of _0x5612e3)if(!_0x260560['getDifference'](_0x1ddb4f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x217091){const _0x21cef3=this['editor']['plugins']['get']('Users')['getUser'](_0x217091);if(!_0x21cef3)throw new _0x20d2d0('track-changes-user-not-found',this);return _0x21cef3;}['_getExternalAuthor'](_0x2dd99d){const _0x3f8828=this['editor']['plugins']['get']('Users'),_0x22afd3=_0x2246de('external:'+_0x2dd99d),_0xf38853=_0x3f8828['getUser'](_0x22afd3);return _0xf38853||_0x3f8828['addUser']({'id':_0x22afd3,'name':_0x2dd99d});}['_createSuggestion'](_0x18e404,_0x411023,_0x49b25f,_0x4fa810,_0x5b9ebc){const _0xec4c29=this['_getAuthorFromId'](_0x4fa810),_0x191818=this['_suggestionFactory']['buildSuggestion'](_0x18e404,_0x411023,_0x49b25f,_0xec4c29,_0x5b9ebc,_0x75a712=>{this['_updateSuggestionData'](_0x49b25f,{'attributes':_0x75a712});const _0x22babd=this['getSuggestion'](_0x49b25f);this['_joinWithAdjacentSuggestions'](new Set([_0x22babd])),this['_refreshSuggestionsChain'](new Set([_0x22babd]));});return this['listenTo'](_0x191818,'accept',()=>{this['_updateSuggestionData'](_0x49b25f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x191818,'discard',()=>{this['_updateSuggestionData'](_0x49b25f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x49b25f,_0x191818),this['_suggestionState']['set'](_0x191818,'notReady'),_0x191818;}['_splitMarkerName'](_0x250e07){const _0x2ac2b1=_0x250e07['split'](':');return{'group':_0x2ac2b1[0x0],'type':_0x2ac2b1[0x1],'subType':_0x2ac2b1['length']>=0x5?_0x2ac2b1[0x2]:null,'id':_0x2ac2b1['length']<0x5?_0x2ac2b1[0x2]:_0x2ac2b1[0x3],'authorId':_0x2ac2b1['length']<0x5?_0x2ac2b1[0x3]:_0x2ac2b1[0x4],'markerCount':0x6==_0x2ac2b1['length']?_0x2ac2b1[0x5]:null};}['_breakSuggestionMarker'](_0x5e8015,_0x2d8e3b,_0x467eda){const _0xd2df4d=_0x5e8015['getFirstRange'](),_0x1b334b=_0xd2df4d['start'],_0x16a1ad=_0xd2df4d['end'];this['_setSuggestionRange'](_0x5e8015,this['_model']['createRange'](_0x1b334b,_0x2d8e3b));const _0x142f06=_0x1b6899(),_0x5e9d9f=_0x5e8015['creator']['id'],_0x3b68d8=_0x5e8015['type']+(_0x5e8015['subType']?':'+_0x5e8015['subType']:'');this['_setSuggestionData']({'id':_0x142f06,'type':_0x3b68d8,'createdAt':new Date(),'authorId':_0x5e9d9f,'originalSuggestionId':_0x5e8015['id'],'attributes':_0x5e8015['attributes'],'data':_0x5e8015['data']});const _0x379eca=this['_getAttributeKey'](_0x5e8015);('formatBlock'==_0x5e8015['type']||_0x379eca&&this['_isBlockAttribute'](_0x379eca))&&(_0x467eda=this['_model']['createPositionBefore'](_0x467eda['parent'])),this['_addSuggestionMarker'](_0x3b68d8,_0x142f06,_0x5e9d9f,this['_model']['createRange'](_0x467eda,_0x16a1ad));}['_findSuggestions'](_0x42b7b2,_0x1bc668=null){const _0x579073=[],_0x34c5ba=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x42b7b2)||(_0x42b7b2=[_0x42b7b2]);for(const _0x35ad25 of this['getSuggestions']()){if(!_0x35ad25['isInContent'])continue;if(_0x1bc668&&_0x35ad25['type']!=_0x1bc668)continue;let _0x2ff0e1=!0x1;for(const _0x53f24f of _0x35ad25['getRanges']()){for(const _0x21d0a6 of _0x42b7b2){const _0x591de1=_0x21d0a6['start']['isEqual'](_0x53f24f['end'])||_0x21d0a6['end']['isEqual'](_0x53f24f['start']);if(_0x591de1||_0x21d0a6['getIntersection'](_0x53f24f)){const _0x8a3eb9=_0x21d0a6['containsRange'](_0x53f24f)&&Pt(this['_model']['schema'],_0x53f24f['start'],_0x21d0a6),_0x4411f4=_0x53f24f['containsRange'](_0x21d0a6)&&Pt(this['_model']['schema'],_0x21d0a6['start'],_0x53f24f);_0x579073['push']({'suggestion':_0x35ad25,'meta':{'isOwn':_0x34c5ba==_0x35ad25['author'],'isNextTo':_0x591de1,'isInsideObject':_0x8a3eb9,'containsRangeInObject':_0x4411f4}}),_0x2ff0e1=!0x0;break;}}if(_0x2ff0e1)break;}}return _0x579073;}['_addSuggestionMarker'](_0x2e9b6c,_0x47daa7,_0x392cb7,_0xb1df59,_0x3718df){this['_model']['change'](_0x5b7dcb=>{let _0x1ba0e1='suggestion:'+_0x2e9b6c+':'+_0x47daa7+':'+_0x392cb7;_0x3718df&&(_0x1ba0e1=_0x1ba0e1+':'+_0x3718df),_0x5b7dcb['addMarker'](_0x1ba0e1,{'range':_0xb1df59,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x341289){const _0x379ccf=_0x341289['previous'],_0x5758dc=_0x341289['next'];_0x341289['previous']=null,_0x341289['next']=null,null!=_0x379ccf&&_0x379ccf['next']==_0x341289&&(_0x379ccf['next']=_0x5758dc),null!=_0x5758dc&&_0x5758dc['previous']==_0x341289&&(_0x5758dc['previous']=_0x379ccf),'ready'==this['_suggestionState']['get'](_0x341289)&&(this['_suggestionState']['set'](_0x341289,'removed'),this['fire']('suggestionUnloaded',_0x341289,_0x379ccf,_0x5758dc));}['_setSuggestionData'](_0x5cbd84){const _0x5e309c=_0x5cbd84['id'],_0x8b8e68=this['addSuggestionData'](_0x5cbd84);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x603b50=this['editor']['plugins']['get']('PendingActions'),_0x44d03d=_0x8b8e68['hasComments'],_0x538244=_0x8b8e68['subType']?_0x8b8e68['type']+':'+_0x8b8e68['subType']:_0x8b8e68['type'],_0x175eef=this['editor']['locale'],_0x185bbb=_0x603b50['add'](c(_0x175eef,'PENDING_ACTION_SUGGESTION')),_0x232bcf={'id':_0x5e309c,'type':_0x538244,'hasComments':_0x44d03d,'data':_0x5cbd84['data']||null,'originalSuggestionId':_0x5cbd84['originalSuggestionId']||null,'attributes':_0x8b8e68['attributes']};this['_adapter']['addSuggestion'](_0x232bcf)['then'](_0x1c69b7=>{_0x8b8e68['_saved']=!0x0,_0x603b50['remove'](_0x185bbb),_0x1c69b7&&_0x1c69b7['createdAt']&&(this['_suggestions']['get'](_0x5e309c)['createdAt']=_0x1c69b7['createdAt']);})['catch'](_0x36b654=>{throw _0x48babe('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x8b8e68['discard']();}),_0x8b8e68['stopListening'](),this['_suggestions']['delete'](_0x8b8e68['id']),this['_suggestionState']['delete'](_0x8b8e68),_0x36b654;});}return _0x8b8e68;}['_isBlockAttribute'](_0x46ac49){return this['_blockAttributeKeys']['has'](_0x46ac49);}['_updateSuggestionData'](_0x1bbb62,_0x1f1747){const _0x137a55=this['editor']['plugins']['get']('PendingActions'),_0xaa5394=this['getSuggestion'](_0x1bbb62);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xaa5394['_saved']){const _0x441b0d=_0x137a55['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1bbb62,_0x1f1747)['then'](()=>{_0x137a55['remove'](_0x441b0d);});}else _0xaa5394['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1bbb62,_0x1f1747);});}}['_getSuggestionData'](_0x45c5b4){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x20d2d0('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x45c5b4);}['_handleNewSuggestionMarker'](_0x10ce08){const {id:_0x5d75a2,type:_0x47ff43,subType:_0x461c50,authorId:_0x51c26c}=this['_splitMarkerName'](_0x10ce08),_0x54ad3e=this['_suggestions']['get'](_0x5d75a2)||this['_createSuggestion'](_0x47ff43,_0x461c50,_0x5d75a2,_0x51c26c,{});switch(this['_checkSuggestionCorrectness'](_0x54ad3e,_0x47ff43,_0x461c50,_0x51c26c),this['_suggestionState']['get'](_0x54ad3e)){case'notReady':this['_getSuggestionData'](_0x5d75a2)['then'](_0x4c8b56=>{let _0x55d5a8=Promise['resolve']();_0x4c8b56['hasComments']&&(_0x55d5a8=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5d75a2})),_0x55d5a8['then'](()=>{this['addSuggestionData'](_0x4c8b56)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x54ad3e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5d75a2,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x54ad3e,'ready'),this['fire']('suggestionLoaded',_0x54ad3e);break;case'ready':this['fire']('suggestionChanged',_0x54ad3e);}return _0x54ad3e['addMarkerName'](_0x10ce08),_0x54ad3e;}['_refreshSuggestionsChain'](_0x273f02){const _0x440acf=Array['from'](_0x273f02),_0x59d88a=_0x440acf['filter'](_0x83d02c=>'attribute'==_0x83d02c['type']);this['_refreshAttributeSuggestionsChain'](_0x59d88a);const _0x4e6db3=_0x440acf['filter'](_0x3c3847=>!_0x3c3847['isMultiRange']&&'attribute'!=_0x3c3847['type']),_0x202896=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d69d6=>!_0x2d69d6['isMultiRange']&&'attribute'!=_0x2d69d6['type']),_0x849953=_0x202896['filter'](_0x54b88e=>!_0x273f02['has'](_0x54b88e)),_0x539a42=new Map(_0x202896['map'](_0x16ea41=>[_0x16ea41,this['_suggestionFactory']['getSuggestionCallback'](_0x16ea41['type'],_0x16ea41['subType'],'chain')])),_0x1a0ea1=new Map(_0x202896['map'](_0x3a87cb=>[_0x3a87cb,_0x3a87cb['getFirstRange']()])),_0x1a71d4=new Set(),_0x30e8ee=new Set();for(let _0x52c585=0x0;_0x52c585<_0x4e6db3['length'];_0x52c585++)_0x11853b(_0x4e6db3[_0x52c585],_0x4e6db3,_0x52c585+0x1);for(let _0x58782d=0x0;_0x58782d<_0x4e6db3['length'];_0x58782d++)_0x11853b(_0x4e6db3[_0x58782d],_0x849953,0x0);const _0x39af6d=new Set();for(let _0x47823e=0x0;_0x47823e<_0x4e6db3['length'];_0x47823e++){const _0x571b65=_0x4e6db3[_0x47823e];!_0x30e8ee['has'](_0x571b65)&&_0x571b65['previous']&&(_0x39af6d['add'](_0x571b65['previous']),_0x571b65['previous']['next']===_0x571b65&&(_0x571b65['previous']['next']=null),_0x571b65['previous']=null),!_0x1a71d4['has'](_0x571b65)&&_0x571b65['next']&&(_0x39af6d['add'](_0x571b65['next']),_0x571b65['next']['previous']===_0x571b65&&(_0x571b65['next']['previous']=null),_0x571b65['next']=null);}function _0x11853b(_0x299f11,_0x161fa3,_0x484811){for(let _0x43a07f=_0x484811;_0x43a07f<_0x161fa3['length'];_0x43a07f++){const _0x3c79c5=_0x84ef1c(_0x299f11,_0x161fa3[_0x43a07f]);_0x3c79c5&&(_0x3c79c5[0x0]['next']=_0x3c79c5[0x1],_0x3c79c5[0x1]['previous']=_0x3c79c5[0x0],_0x1a71d4['add'](_0x3c79c5[0x0]),_0x30e8ee['add'](_0x3c79c5[0x1]));}}function _0x84ef1c(_0x4690d6,_0x495bdc){if(_0x4690d6['author']['id']!==_0x495bdc['author']['id'])return null;const _0x3f6e3c=_0x539a42['get'](_0x4690d6)(_0x4690d6,_0x495bdc,_0x1a0ea1['get'](_0x4690d6),_0x1a0ea1['get'](_0x495bdc));if(!_0x3f6e3c)return null;return _0x539a42['get'](_0x495bdc)(_0x4690d6,_0x495bdc,_0x1a0ea1['get'](_0x4690d6),_0x1a0ea1['get'](_0x495bdc))?_0x3f6e3c[0x1]['commentThread']&&_0x3f6e3c[0x1]['commentThread']['length']?null:_0x3f6e3c:null;}_0x39af6d['size']&&this['_refreshSuggestionsChain'](_0x39af6d);}['_refreshAttributeSuggestionsChain'](_0x326a4c){if(0x0==_0x326a4c['length'])return;const _0x50ed9b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x592ec2=>'attribute'==_0x592ec2['type']&&_0x592ec2['_isDataLoaded']),_0x2f2e23=[],_0x1cf552=new Map();for(const _0x16aa74 of _0x50ed9b){const _0xbd8e1d=_0x2246de(_0x16aa74['attributes']);_0x1cf552['has'](_0xbd8e1d)||(_0x1cf552['set'](_0xbd8e1d,_0x2f2e23['length']),_0x2f2e23['push']([]));const _0x40568f=_0x1cf552['get'](_0xbd8e1d);_0x2f2e23[_0x40568f]['push'](_0x16aa74);}!(function(){_0x2f2e23['sort']((_0x4575ae,_0x33c176)=>{const _0x2ad6ba=_0x4575ae[0x0]['createdAt'],_0x5db4f2=_0x33c176[0x0]['createdAt'];return _0x2ad6ba==_0x5db4f2?_0x4575ae[0x0]['attributes']['groupId']<_0x33c176[0x0]['attributes']['groupId']?-0x1:0x1:_0x2ad6ba<_0x5db4f2?-0x1:0x1;});for(const _0x2f0b15 of _0x2f2e23)_0x2f0b15['sort']((_0x4487ff,_0x5d9a00)=>_0x4487ff['id']<_0x5d9a00['id']?-0x1:0x1);}());for(let _0x3307b9=0x0;_0x3307b9<_0x2f2e23['length'];_0x3307b9++){if(0x0==_0x2f2e23[_0x3307b9]['length'])continue;const _0x598554=[];for(let _0x5029ee=_0x3307b9+0x1;_0x5029ee<_0x2f2e23['length'];_0x5029ee++)0x0!=_0x2f2e23[_0x5029ee]['length']&&_0x41f183(_0x2f2e23[_0x3307b9],_0x2f2e23[_0x5029ee])&&_0x598554['push'](_0x5029ee);for(const _0x508dd6 of _0x598554)_0x2f2e23[_0x3307b9]=_0x2f2e23[_0x3307b9]['concat'](_0x2f2e23[_0x508dd6]),_0x2f2e23[_0x508dd6]=[];}for(const _0x23e4a9 of _0x2f2e23)for(let _0x5b501b=0x0;_0x5b501b<_0x23e4a9['length'];_0x5b501b++){const _0x476da5=_0x23e4a9[_0x5b501b+0x1]||null;_0x23e4a9[_0x5b501b]['next']!==_0x476da5&&(_0x23e4a9[_0x5b501b]['next']=_0x476da5);}for(const _0x511948 of _0x2f2e23)for(let _0x251651=0x0;_0x251651<_0x511948['length'];_0x251651++){const _0x1172dc=_0x511948[_0x251651-0x1]||null;_0x511948[_0x251651]['previous']!==_0x1172dc&&(_0x511948[_0x251651]['previous']=_0x1172dc);}function _0x41f183(_0x41a318,_0x465ee9){if(_0x41a318[0x0]['attributes']['groupId']!==_0x465ee9[0x0]['attributes']['groupId']&&_0x41a318[0x0]['author']!==_0x465ee9[0x0]['author'])return!0x1;if(!function(_0x2ed29d,_0x3146d5){if(!_0x2ed29d['hasComments']&&!_0x3146d5['hasComments'])return!0x0;if(_0x2ed29d['hasComments']&&_0x3146d5['hasComments'])return!0x1;if(_0x2ed29d['hasComments']&&_0x3146d5['createdAt']<_0x2ed29d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3146d5['hasComments']&&_0x2ed29d['createdAt']<_0x3146d5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x41a318[0x0],_0x465ee9[0x0]))return!0x1;const _0x42b4f8=Vt(_0x41a318[0x0]['attributes'],'groupId'),_0xcff2e3=Vt(_0x465ee9[0x0]['attributes'],'groupId');if(!_0x1c217d(_0x42b4f8,_0xcff2e3))return!0x1;return!!_0x41a318['every'](_0x5259cf=>_0x465ee9['some'](_0x22e4e4=>_0x5259cf['getFirstRange']()['isEqual'](_0x22e4e4['getFirstRange']())))&&_0x465ee9['every'](_0x2a8cdc=>_0x41a318['some'](_0x43be25=>_0x2a8cdc['getFirstRange']()['isEqual'](_0x43be25['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x812c41){const _0x66cf6b=Array['from'](_0x812c41),_0x24464a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x512c77=_0x24464a['filter'](_0x52ce09=>!_0x812c41['has'](_0x52ce09)),_0x382731=new Map(_0x66cf6b['map'](_0x2da69f=>[_0x2da69f,this['_suggestionFactory']['getSuggestionCallback'](_0x2da69f['type'],_0x2da69f['subType'],'join')])),_0x4bcc78=new Map(_0x24464a['map'](_0x4d3c71=>[_0x4d3c71,_0x4d3c71['getRanges']()]));for(let _0x392944=0x0;_0x392944<_0x66cf6b['length'];_0x392944++){if(_0x1c0fc8(this,_0x66cf6b[_0x392944],_0x66cf6b,_0x392944+0x1))return!0x0;}for(let _0x58dab6=0x0;_0x58dab6<_0x66cf6b['length'];_0x58dab6++){if(_0x1c0fc8(this,_0x66cf6b[_0x58dab6],_0x512c77,0x0))return!0x0;}return!0x1;function _0x1c0fc8(_0x3701e6,_0x4f5b71,_0x5ce50e,_0x5ccbbd){for(let _0x51d225=_0x5ccbbd;_0x51d225<_0x5ce50e['length'];_0x51d225++){const _0x12bde1=_0x5ce50e[_0x51d225];if(_0x12bde1['type']!==_0x4f5b71['type']||_0x12bde1['author']['id']!==_0x4f5b71['author']['id']||_0x12bde1['subType']!==_0x4f5b71['subType'])continue;if(!Wt(_0x4f5b71,_0x12bde1))continue;if('attribute'==_0x4f5b71['type']&&_0x4f5b71['data']['oldValue']!=_0x12bde1['data']['oldValue'])continue;if('attribute'==_0x4f5b71['type']&&_0x3701e6['_isBlockAttribute'](_0x4f5b71['data']['key']))continue;if('formatBlock'==_0x4f5b71['type']){const _0x3cef4f=_0x3701e6['editor']['model'],_0x1c2fa5=_0x4f5b71['getContainedElement']();if(_0x1c2fa5&&(_0x3cef4f['schema']['isObject'](_0x1c2fa5)||_0x3cef4f['schema']['isLimit'](_0x1c2fa5)))continue;}const _0x5462c2=_0x382731['get'](_0x4f5b71),_0x5de273=_0x4bcc78['get'](_0x4f5b71),_0x640353=_0x4bcc78['get'](_0x12bde1),_0x91c01e=_0x4f5b71['commentThread']&&_0x4f5b71['commentThread']['length'],_0x38d5af=_0x12bde1['commentThread']&&_0x12bde1['commentThread']['length'];if(!_0x91c01e&&_0x5462c2(_0x640353,_0x5de273))return _0x3701e6['_joinSuggestions'](_0x12bde1,_0x4f5b71),_0x4bcc78['delete'](_0x4f5b71),!0x0;if(!_0x38d5af&&_0x5462c2(_0x5de273,_0x640353))return _0x3701e6['_joinSuggestions'](_0x4f5b71,_0x12bde1),_0x4bcc78['delete'](_0x12bde1),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5d9c7c,_0x45baf6){if(_0x5d9c7c['isMultiRange']){for(const _0x478be4 of _0x45baf6['getRanges']())_0x5d9c7c['addRange'](_0x478be4);}else{const _0x22ca42=_0x45baf6['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5d9c7c,this['_model']['createRange'](_0x5d9c7c['getFirstRange']()['start'],_0x22ca42));}_0x45baf6['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4c0e29,_0x4ff8f4,_0x285d79){const _0x2b854c=_0x4c0e29['startsWith']('format')||_0x4c0e29['startsWith']('attribute')?'FORMATTING':_0x4c0e29['toUpperCase']();return c(this['editor']['locale'],_0x4ff8f4+'_'+_0x2b854c+'_SUGGESTION_ANNOUNCEMENT',_0x285d79);}['_initAriaMarkerChangeAnnouncements'](){const _0x149a6a=this['editor'];if(!_0x149a6a['ui'])return;const {ariaLiveAnnouncer:_0x10a528}=_0x149a6a['ui'];_0x27355f(this['_model'],({left:_0x3a0b56,entered:_0x3de9c5})=>{for(const _0x14d253 of _0x3a0b56){const {group:_0x3c2765,type:_0x16e114}=this['_splitMarkerName'](_0x14d253['name']);if('suggestion'===_0x3c2765){_0x10a528['announce'](this['_getMarkerAnnouncementText'](_0x16e114,'LEAVE'));break;}}for(const _0x5abcc9 of _0x3de9c5){const {group:_0x20a849,type:_0xa1bd35}=this['_splitMarkerName'](_0x5abcc9['name']);if('suggestion'===_0x20a849){_0x10a528['announce'](this['_getMarkerAnnouncementText'](_0xa1bd35,'ENTER',_0x25bbef(_0x5e2705)));break;}}});}['_processAttributeChanges'](_0xd39707){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2cc7c8=this['editor'],_0x105a78=_0x2cc7c8['model']['document']['differ']['getChanges']();if(0x0==_0x105a78['length'])return!0x1;const _0x393c6d=[],_0x3b4a5e=_0x105a78['filter'](_0x24a9db=>'attribute'==_0x24a9db['type']),_0x32b419=_0x105a78['filter'](_0x41bee9=>'insert'==_0x41bee9['type']&&'$text'!=_0x41bee9['name']),_0x3d0893=_0x105a78['filter'](_0x51856e=>'remove'==_0x51856e['type']&&'$text'!=_0x51856e['name']);for(const _0x626515 of _0x3b4a5e)_0x393c6d['push']({'key':_0x626515['attributeKey'],'newValue':_0x626515['attributeNewValue'],'oldValue':_0x626515['attributeOldValue'],'range':Ht(_0x626515['range'],_0x2cc7c8['model'])});for(const _0x4c6e87 of _0x32b419){const _0x160a1b=_0x3d0893['find'](_0x5e51ea=>_0x5e51ea['position']['isEqual'](_0x4c6e87['position']));_0x160a1b&&_0x393c6d['push']({'key':u,'newValue':_0x4c6e87['name'],'oldValue':_0x160a1b['name'],'range':_0x2cc7c8['model']['createRangeOn'](_0x4c6e87['position']['nodeAfter'])});}return 0x0!=_0x393c6d['length']&&this['_reduceExistingSuggestions'](_0xd39707,_0x393c6d);}['_processAttributeSuggestions'](_0x3f64db){let _0x3dc691=!0x1;const _0x571cb5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x20f17c=>_0x20f17c['data']['newRange']&&_0x20f17c['name']['startsWith']('suggestion:attribute:'));for(const _0x1fbc1b of _0x571cb5){const {subType:_0x109a99,id:_0x42cf40}=this['_splitMarkerName'](_0x1fbc1b['name']),_0x4832e1=_0x109a99['split']('|')[0x0];for(const _0xbc73cf of this['getSuggestions']({'skipNotAttached':!0x0}))_0xbc73cf['id']!=_0x42cf40&&'attribute'==_0xbc73cf['type']&&_0xbc73cf['data']&&_0xbc73cf['data']['key']==_0x4832e1&&_0xbc73cf['getFirstRange']()['isIntersecting'](_0x1fbc1b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xbc73cf,_0x1fbc1b['data']['newRange'],_0x3f64db),_0x3dc691=!0x0);}return _0x3dc691;}['_recordAttributeChanges'](_0x599540){this['_recordAttributeSuggestions']=!0x0,_0x599540();}['_isRegisteredAttribute'](_0x3f6cae){const _0x3545d0=this['_isBlockAttribute'](_0x3f6cae),_0x541f16=this['_inlineAttributeKeys']['has'](_0x3f6cae);return _0x3545d0||_0x541f16;}['_reduceExistingSuggestions'](_0x355d42,_0x3d3994){if(0x0==_0x3d3994['length'])return!0x1;let _0x48576a=!0x1;for(const _0x3405b0 of _0x3d3994){const _0x3f578f=this['_findSuggestions'](_0x3405b0['range'],'attribute')['filter'](_0x2d9bb3=>!_0x2d9bb3['meta']['isNextTo'])['map'](_0x2b05fe=>_0x2b05fe['suggestion']),_0xbd500=_0x2246de({'newValue':_0x3405b0['newValue']});_0x3f578f['filter'](_0x1fbb85=>{const [_0x1aabf1,_0xb8ec17]=_0x1fbb85['subType']['split']('|');return _0x1aabf1==_0x3405b0['key']&&_0xb8ec17!=_0xbd500;})['forEach'](_0x2f1d67=>{this['_reduceSuggestionAttributeRange'](_0x2f1d67,_0x3405b0['range'],_0x355d42),_0x48576a=!0x0;});}return _0x48576a;}['_reduceSuggestionAttributeRange'](_0x11d20d,_0x424b42,_0x1ccdfc){const _0xf6a557=_0x11d20d['getFirstRange']()['getDifference'](_0x424b42);0x0!==_0xf6a557['length']?0x1!==_0xf6a557['length']?this['_breakSuggestionMarker'](_0x11d20d,_0x424b42['start'],_0x424b42['end']):this['_setSuggestionRange'](_0x11d20d,_0xf6a557[0x0]):_0x1ccdfc['removeMarker'](_0x11d20d['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5b386b){this['_editor']=_0x5b386b,this['_model']=_0x5b386b['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x7dce75,_0x3f4d77,_0x3930f2,_0x58e7f6,_0x388cb8,_0x4ea1e0){return new o(this['_model'],{'type':_0x7dce75,'subType':_0x3f4d77,'id':_0x3930f2,'author':_0x58e7f6,'creator':_0x58e7f6,'attributes':_0x388cb8,'onAttributesChange':_0x4ea1e0,'onAccept':(..._0x31944b)=>this['getSuggestionCallback'](_0x7dce75,_0x3f4d77,'accept')(..._0x31944b),'onDiscard':(..._0x3c5cdb)=>this['getSuggestionCallback'](_0x7dce75,_0x3f4d77,'discard')(..._0x3c5cdb)});}['registerCustomCallback'](_0x46a093,_0x5c1fda,_0x3cf858,_0x31e095){const _0x446e85=_0x46a093+':'+_0x5c1fda+':'+_0x3cf858;this['_customCallbacks']['set'](_0x446e85,_0x31e095);}['getSuggestionCallback'](_0x5c9181,_0x3f1e46,_0x45b113){const _0x143fec=_0x5c9181+':'+_0x3f1e46+':'+_0x45b113;return this['_customCallbacks']['get'](_0x143fec)||this['_defaultCallbacks']['get'](_0x5c9181+':'+_0x45b113);}['_registerDefaultCallbacks'](){const _0x1467d0=()=>!0x1,_0x574802=_0x1fa978=>{_0x1fa978['sort']((_0xbff0e2,_0x1b3122)=>_0xbff0e2['start']['isBefore'](_0x1b3122['start'])?0x1:-0x1),this['_model']['change'](_0x386efc=>{for(const _0x4b3b51 of _0x1fa978){let _0x126c1b;_0x126c1b=_0x4b3b51['end']['isAtEnd']&&_0x4b3b51['end']['parent']==_0x4b3b51['start']['nodeAfter']?_0x386efc['createSelection'](_0x4b3b51['start']['nodeAfter'],'on'):_0x386efc['createSelection'](_0x4b3b51),this['_model']['deleteContent'](_0x126c1b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1889d1=(_0x25e352,_0x32f398)=>{_0x32f398&&this['_model']['change'](_0xbe39d9=>{const {commandName:_0x32f7a2,commandParams:_0x418cdf=[]}=_0x32f398,_0x40e57c=_0x25e352['map'](_0x42d12a=>(Gt(_0x42d12a)&&(_0x42d12a=this['_model']['createRange'](_0x42d12a['end'])),_0x42d12a))['filter'](_0x528ab9=>'$graveyard'!==_0x528ab9['root']['rootName']);if(_0x40e57c['length']<0x1)return;const _0x4e919b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4874f3=>_0x54bc73['fromRange'](_0x4874f3));_0xbe39d9['setSelection'](_0x40e57c);for(const _0x1c9ee0 of this['_editor']['commands']['commands']())_0x1c9ee0['refresh']();_0x418cdf['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x32f7a2,..._0x418cdf);const _0x5b6802=_0x4e919b['filter'](_0x48f71b=>'$graveyard'!=_0x48f71b['root']['rootName']);_0x5b6802['length']>0x0&&_0xbe39d9['setSelection'](_0x5b6802);for(const _0x2d20e4 of _0x4e919b)_0x2d20e4['detach']();});},_0x341aae=(_0x2df733,_0x3517ac)=>0x1==_0x2df733['length']&&0x1==_0x3517ac['length']&&_0x2df733[0x0]['end']['isEqual'](_0x3517ac[0x0]['start']),_0x53f30e=(_0x3f7ee4,_0x53b156,_0x40af12,_0x2defcf)=>zt(_0x3f7ee4,_0x53b156,_0x40af12,_0x2defcf)?[_0x3f7ee4,_0x53b156]:zt(_0x53b156,_0x3f7ee4,_0x2defcf,_0x40af12)?[_0x53b156,_0x3f7ee4]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1467d0),this['_defaultCallbacks']['set']('insertion:discard',_0x574802),this['_defaultCallbacks']['set']('insertion:join',_0x341aae),this['_defaultCallbacks']['set']('insertion:chain',_0x53f30e),this['_defaultCallbacks']['set']('deletion:accept',_0x574802),this['_defaultCallbacks']['set']('deletion:discard',_0x1467d0),this['_defaultCallbacks']['set']('deletion:join',_0x341aae),this['_defaultCallbacks']['set']('deletion:chain',_0x53f30e),this['_defaultCallbacks']['set']('formatInline:accept',_0x1889d1),this['_defaultCallbacks']['set']('formatInline:discard',_0x1467d0),this['_defaultCallbacks']['set']('formatInline:join',_0x341aae),this['_defaultCallbacks']['set']('formatInline:chain',_0x1467d0),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1889d1),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1467d0),this['_defaultCallbacks']['set']('formatBlock:join',_0x341aae),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1467d0),this['_defaultCallbacks']['set']('attribute:accept',_0x1467d0),this['_defaultCallbacks']['set']('attribute:discard',(_0x78a3f7,_0x4a8c0)=>{if(!_0x4a8c0)return;const _0xbc13e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2a3dee=>{if(_0x4a8c0['key']==u)for(const _0x2dc144 of _0x78a3f7){const _0xac6beb=_0x2dc144['start']['nodeAfter'],_0x592248=_0x4a8c0['oldValue'];_0x2a3dee['rename'](_0xac6beb,_0x592248);}else{if(_0xbc13e['_isBlockAttribute'](_0x4a8c0['key'])){for(const _0x2da4d3 of _0x78a3f7)void 0x0!==_0x4a8c0['oldValue']?_0x2a3dee['setAttribute'](_0x4a8c0['key'],_0x4a8c0['oldValue'],_0x2da4d3['start']['nodeAfter']):_0x2a3dee['removeAttribute'](_0x4a8c0['key'],_0x2da4d3['start']['nodeAfter']);}else{for(const _0x311b09 of _0x78a3f7)_0x4a8c0['oldValue']?_0x2a3dee['setAttribute'](_0x4a8c0['key'],_0x4a8c0['oldValue'],_0x311b09):_0x2a3dee['removeAttribute'](_0x4a8c0['key'],_0x311b09);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x341aae);}}function Pt(_0x488d57,_0x1f4b79,_0x36a05f){for(const _0x6727f8 of _0x1f4b79['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x6727f8['root']==_0x6727f8)return!0x1;if(!_0x36a05f['containsItem'](_0x6727f8))return!0x1;if(_0x488d57['isObject'](_0x6727f8)||_0x488d57['isLimit'](_0x6727f8))return!0x0;}return!0x1;}function Gt(_0x2c080d){return _0x2c080d['end']['parent']==_0x2c080d['start']['nodeAfter']&&_0x2c080d['end']['isAtStart'];}function Lt(_0x43984a,_0x1454fa,_0x233785,_0x5b9c46){const _0x474d94=_0x57f9c6=>!_0x57f9c6['item']['is']('$textProxy')&&!_0x5b9c46['isObject'](_0x57f9c6['item']),_0x40f4b2=_0x43984a['start']['getLastMatchingPosition'](_0x474d94),_0x116fac=_0x43984a['end']['getLastMatchingPosition'](_0x474d94,{'direction':'backward'});return(!_0x43984a['start']['isEqual'](_0x40f4b2)||!_0x43984a['end']['isEqual'](_0x116fac))&&(_0x40f4b2['isBefore'](_0x116fac)?_0x233785['updateMarker'](_0x1454fa,{'range':_0x233785['createRange'](_0x40f4b2,_0x116fac)}):_0x233785['removeMarker'](_0x1454fa),!0x0);}function Jt(_0x9b65ae){return _0x2246de(_0x9b65ae);}function Kt(_0x1539b1){const _0x3a00cf=_0x1539b1['start']['nodeAfter'];return _0x3a00cf&&_0x3a00cf['is']('element');}function Ht(_0x1f12e3,_0x463066){return null==_0x1f12e3['end']['nodeBefore']&&_0x1f12e3['end']['parent']==_0x1f12e3['start']['nodeAfter']?qt(_0x1f12e3['start']['nodeAfter'],_0x463066):_0x1f12e3;}function qt(_0x3076af,_0x249136){const _0x1ed9f0=_0x249136['schema']['isObject'](_0x3076af)||_0x249136['schema']['isSelectable'](_0x3076af);return _0x249136['createRange'](_0x249136['createPositionAt'](_0x3076af,'before'),_0x1ed9f0?_0x249136['createPositionAfter'](_0x3076af):_0x249136['createPositionAt'](_0x3076af,'end'));}function zt(_0x582a32,_0x618201,_0x16051b,_0x56d43f){return!!Wt(_0x582a32,_0x618201)&&_0x16051b['end']['isEqual'](_0x56d43f['start']);}function Wt(_0x4ff8c9,_0xfe410){if(!_0x4ff8c9['_isDataLoaded']||!_0xfe410['_isDataLoaded'])return!0x1;const _0x34ff16=new Set(Object['keys'](_0x4ff8c9['attributes'])),_0x14edc7=new Set(Object['keys'](_0xfe410['attributes']));if(_0x34ff16['delete']('groupId'),_0x14edc7['delete']('groupId'),0x0==_0x34ff16['size']&&0x0==_0x14edc7['size'])return!0x0;if(_0x34ff16['size']!=_0x14edc7['size'])return!0x1;const _0x38f101={..._0x4ff8c9['attributes']},_0x4397cb={..._0xfe410['attributes']};return delete _0x38f101['groupId'],delete _0x4397cb['groupId'],JSON['stringify'](_0x38f101)==JSON['stringify'](_0x4397cb);}function Qt(_0x5f436c,_0x1291de){const _0x5083f9=Xt(_0x5f436c['attributes']),_0x276a2d=Xt(_0x1291de);if(!_0x5f436c['_isDataLoaded'])return!0x1;for(const _0x10d828 of Object['keys'](_0x276a2d))if(!_0x1c217d(_0x5083f9[_0x10d828],_0x276a2d[_0x10d828]))return!0x1;return!0x0;}function Xt(_0x66b902){const _0x2d71f3=Object['assign']({},_0x66b902);return delete _0x2d71f3['skipNestingCheck'],delete _0x2d71f3['tablePasteChainId'],_0x2d71f3;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x26a4b6(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5e9811,_0x5706a8,_0x350ee6,_0x4c11bf){super(),this['model']=_0x5706a8,this['view']=_0x350ee6,this['commentThreadController']=_0x4c11bf,this['_editor']=_0x5e9811,this['_acceptCommand']=_0x5e9811['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5e9811['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4b1e16,_0x2fdef6)=>_0x4b1e16||_0x2fdef6),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x54b9ec=>_0x54b9ec&&this['_editor']['model']['canEditAt'](_0x5706a8['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4067b3=>_0x4067b3&&this['_editor']['model']['canEditAt'](_0x5706a8['getRanges']())),this['_pendingAction']=null,_0x350ee6['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x350ee6,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x350ee6,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x350ee6,'change:isDirty',()=>{_0x350ee6['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 _0x59507e=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x59507e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x4557e4{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1671a8,_0x251640,_0x1aaecc,_0x104110){super(_0x1671a8),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x230b3c(_0x1671a8,c(_0x1671a8,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x251640['authoredAt']),this['bind']('authoredAt')['to'](_0x251640),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',_0x251640,'authoredAt',this,'descriptionParts',(_0x52754c,_0x9d6d54,_0x4cd33a)=>{const _0x2437b2=_0x4cd33a['map'](_0x160b39=>ls(_0x160b39['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x52754c-0x1,_0x251640['author']['name'],_0x9d6d54?_0x104110['formatDateTime'](_0x9d6d54):'',new DOMParser()['parseFromString'](_0x2437b2,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5b0d43(),this['focusTracker']=new _0x5bf86a(),this['keystrokes']=new _0x410361(),this['focusCycler']=new _0xeedd1e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2ea335=>_0x2ea335['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x251640,this['_localUser']=_0x1aaecc,this['_config']=_0x104110,_0x104110['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xe77174(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2b3a61}=this['_config'];this['commentsListView']=new _0x2b3a61(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',_0x3f6203=>_0x3f6203+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x35df5e,_0x219e00)=>_0x35df5e||!!_0x219e00);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3aedf4}=this['_config'],_0x3a01ec=new _0x3aedf4(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x17b812=_0x3a01ec['commentInputView'];return _0x3a01ec['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x17b812,'value',(_0x5ddbac,_0x50ee08,_0x560afb)=>!!_0x560afb||_0x5ddbac&&!_0x50ee08),_0x17b812['on']('submit',(_0x2b2651,_0x54c87e)=>{this['fire']('addComment',_0x54c87e),_0x17b812['editor']['setData']('');}),_0x17b812['on']('cancel',()=>this['focus']()),_0x17b812['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3a01ec;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x26d4db,_0x271fdb,_0x1b54f3,_0x73c7a3){super(_0x26d4db,_0x271fdb,_0x1b54f3,_0x73c7a3),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4bd774=>_0x4bd774&&_0x4bd774[0x0]?_0x4bd774[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xe4d737,_0x377858)=>{let _0x4824ca='';for(const _0x3944f6 of _0xe4d737)_0x4824ca+='<p>'+ls(_0x3944f6['content'],_0x3944f6['color'])+'</p>';return _0x377858?_0x4824ca:ti(_0x4824ca,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x73c7a3['SuggestionView'](_0x26d4db,_0x271fdb,{'formatDateTime':_0x73c7a3['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 _0x7a6e7=this['bindTemplate'],_0x2f8d5b=[this['suggestionView']];return this['commentsListView']&&_0x2f8d5b['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2f8d5b['push'](this['commentThreadInputView']),_0x2f8d5b['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x7a6e7['if']('isActive','ck-suggestion-wrapper--active'),_0x7a6e7['to']('type',_0x348d99=>'ck-suggestion-'+_0x348d99),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':_0x7a6e7['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2f8d5b};}['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 _0x4557e4{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x13ee5c,_0x55d040,_0x73d43d){super(_0x13ee5c),this['_model']=_0x55d040,this['_config']=_0x73d43d,this['set']('description',''),this['bind']('authoredAt')['to'](_0x55d040),this['acceptButton']=this['_createButton'](c(_0x13ee5c,'Accept\x20suggestion'),_0xa30e5d,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x13ee5c,'Discard\x20suggestion'),_0x5f50fb,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3def6c(_0x13ee5c,_0x55d040['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5b0d43([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5bf86a(),this['keystrokes']=new _0x410361(),this['focusCycler']=new _0xeedd1e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x18ba06=>_0x18ba06['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1f244f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1f244f['innerHTML']=this['description'],this['on']('change:description',(_0x12e3ca,_0x44d210,_0x32f3ae)=>{_0x1f244f['innerHTML']=_0x32f3ae;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x560173=this['bindTemplate'],_0x43f51b=[{'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':_0x560173['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x560173['to']('authoredAt',_0x3fb567=>this['_config']['formatDateTime'](_0x3fb567))}]}]},{'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']&&_0x43f51b['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':_0x43f51b}]};}['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'](_0x5322ec,_0x16dbab,_0x588b00,_0x59b1c6,_0x284228){const _0x4c0b80=new _0x2890f9(this['locale']);return _0x4c0b80['set']({'label':_0x5322ec,'icon':_0x16dbab,'tooltip':!0x0,'tooltipPosition':_0x284228}),_0x4c0b80['extendTemplate']({'attributes':{'class':_0x588b00}}),_0x4c0b80['on']('execute',()=>{this['fire'](_0x59b1c6,this['_model']['id']);}),_0x4c0b80;}['_setupKeyboardNavigation'](){const _0x56d71c=this['element'];this['keystrokes']['listenTo'](_0x56d71c);for(const _0x538f7b of this['focusables'])this['focusTracker']['add'](_0x538f7b['element']),this['keystrokes']['listenTo'](_0x538f7b['element']);this['keystrokes']['set']('enter',(_0x2b1624,_0x5d5e76)=>{_0x56d71c===_0x2b1624['target']&&(this['focusCycler']['focusFirst'](),_0x5d5e76());}),this['keystrokes']['set']('esc',(_0x1fdc2c,_0x4ba31e)=>{_0x56d71c!==_0x1fdc2c['target']&&(this['focus'](),_0x4ba31e());});}}class d extends _0x32ae11{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1140a0,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x752b4a){super(_0x752b4a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2c35ed=this['editor']['config'];_0x2c35ed['define']('trackChanges.SuggestionThreadView',fe),_0x2c35ed['define']('trackChanges.SuggestionView',we),_0x2c35ed['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2c35ed['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x33b2ce,_0x38a4c4){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1f2680,_0x54c7e3]of this['_handleControllerBuffer']){const _0x49e1a8=this['_suggestionToController']['has'](_0x1f2680);_0x49e1a8||_0x54c7e3?_0x49e1a8&&_0x54c7e3&&this['_destroyController'](_0x1f2680):this['_initializeController'](_0x1f2680);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x33b2ce,_0x38a4c4);}['init'](){const _0x411b27=this['editor'],_0xe69098=_0x411b27['plugins']['get']('TrackChangesEditing'),_0x52320e=_0x411b27['plugins']['get']('Annotations'),_0xcef23b=_0x411b27['plugins']['get']('EditorAnnotations'),_0x35a181=_0x411b27['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xcef23b['addSourceCollector'](()=>{const _0x514f9a=[];for(const [_0x4de98c,_0x345bb4]of Array['from'](this['_suggestionToController'])){const _0x2306c4=_0x4de98c['getAllAdjacentSuggestions'](),_0x5ad601=[];for(const _0x239808 of _0x2306c4){if(!_0x239808['isInContent'])continue;if(_0x239808['isMultiRange']){_0x5ad601['push'](..._0x239808['getRanges']());continue;}const _0x428680=_0x239808['getFirstRange']();if(_0x5ad601['length']>0x0){const _0x182bc1=_0x5ad601[0x0]['getJoined'](_0x428680);if(_0x182bc1){_0x5ad601[0x0]=_0x182bc1;continue;}}_0x5ad601['push'](_0x428680);}_0x514f9a['push']([_0x345bb4['view'],_0x5ad601]);}return _0x514f9a;}),this['listenTo'](_0xe69098,'suggestionLoaded',(_0x51d023,_0x588c8e)=>{this['listenTo'](_0x588c8e,'change:previous',(_0x374019,_0x2ced8e,_0x3795a2,_0x3f1437)=>{_0x588c8e['isInContent']&&(null==_0x3795a2?(this['_updateController'](_0x3f1437['head']),this['_handleSuggestionControllerDelayed'](_0x588c8e,!0x1)):(this['_updateController'](_0x3795a2['head']),null==_0x3f1437&&this['_handleSuggestionControllerDelayed'](_0x588c8e,!0x0)));}),null!==_0x588c8e['previous']?this['_updateController'](_0x588c8e['head']):this['_handleSuggestionControllerDelayed'](_0x588c8e,!0x1);}),this['listenTo'](_0xe69098,'suggestionUnloaded',(_0x10ce7c,_0x1acb71,_0x49fb07)=>{this['stopListening'](_0x1acb71,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1acb71),this['_suggestionToController']['has'](_0x1acb71)&&this['_destroyController'](_0x1acb71),_0x49fb07&&this['_updateController'](_0x49fb07['head']);}),this['listenTo'](_0xe69098,'suggestionChanged',(_0x3d37bf,_0x1008c7)=>{this['_updateController'](_0x1008c7);}),this['listenTo'](_0x52320e,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x35a181,'addComment',(_0x52ce49,{threadId:_0x2d4841,isFromAdapter:_0xc65820})=>{if(_0xc65820||!_0xe69098['hasSuggestion'](_0x2d4841))return;const _0x2309b5=_0xe69098['getSuggestion'](_0x2d4841);this['_suggestionToController']['get'](_0x2309b5)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2235e1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x294da5;for(const _0x5e78e3 in _0x2235e1){const _0x1ace49=_0x5e78e3,_0x43af82=_0x2235e1[_0x1ace49];if('trackChangesLicenseKeyValid'==_0x43af82||'trackChangesLicenseKeyInvalid'==_0x43af82||'trackChangesLicenseKeyExpired'==_0x43af82||'trackChangesLicenseKeyDomainLimit'==_0x43af82||'trackChangesLicenseKeyNotAllowed'==_0x43af82||'trackChangesLicenseKeyEvaluationLimit'==_0x43af82||'trackChangesLicenseKeyTrialLimit'==_0x43af82||'trackChangesLicenseKeyUsageLimit'==_0x43af82){delete _0x2235e1[_0x1ace49],_0x294da5=_0x43af82,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x294da5&&_0x2235e1['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x294da5&&_0x2235e1['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x294da5&&_0x2235e1['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x294da5&&_0x2235e1['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x294da5&&_0x2235e1['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x294da5&&_0x2235e1['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x294da5&&_0x2235e1['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x5ada5f=this['editor']['plugins']['get']('Annotations'),_0x16d678=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33c6ee=Array['from'](_0x5ada5f['activeAnnotations'],_0x4be97b=>_0x4be97b['innerView'])['filter'](_0x2c8c9c=>this['_viewToController']['has'](_0x2c8c9c)),_0xb4526e=[];for(const _0x330dc2 of _0x33c6ee){const _0x338457=this['_viewToController']['get'](_0x330dc2)['model']['getAllAdjacentSuggestions']();_0xb4526e['push'](..._0x338457['reduce']((_0x2633ca,_0x371394)=>[..._0x2633ca,..._0x371394['getMarkerNames']()],[]));}_0x16d678['activeMarkers']=_0xb4526e;}['_addUIComponentsToFactory'](){const _0x17d46e=this['editor'],_0x4c9ef1=_0x17d46e['locale'],_0x391b68=c(_0x4c9ef1,'Track\x20changes'),_0x52583f=new _0x39d645([{'type':'switchbutton','model':new _0x459d5c({'withText':!0x0,'isToggleable':!0x0,'label':_0x391b68,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x459d5c({'withText':!0x0,'label':c(_0x4c9ef1,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x459d5c({'withText':!0x0,'label':c(_0x4c9ef1,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x459d5c({'withText':!0x0,'label':c(_0x4c9ef1,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x459d5c({'withText':!0x0,'label':c(_0x4c9ef1,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x17d46e['plugins']['has']('TrackChangesPreview')&&_0x52583f['addMany']([{'type':'separator'},{'type':'button','model':new _0x459d5c({'withText':!0x0,'label':c(_0x4c9ef1,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4c8c01 of _0x52583f)if(ke(_0x4c8c01)){const _0x162142=_0x17d46e['commands']['get'](_0x4c8c01['model']['commandName']);_0x4c8c01['model']['bind']('isOn','isEnabled')['to'](_0x162142,'value','isEnabled');}_0x17d46e['ui']['componentFactory']['add']('trackChanges',_0x17ec0b=>this['_createToolbarButton'](_0x17ec0b,_0x52583f,_0x391b68)),_0x17d46e['ui']['componentFactory']['add']('menuBar:trackChanges',_0x220b56=>this['_createMenuBarMenu'](_0x220b56,_0x52583f,_0x391b68));}['_createToolbarButton'](_0x5cedd1,_0x5a635f,_0x26111a){const _0x697998=_0x5c60a8(_0x5cedd1,_0x279193),_0x5abedc=this['editor']['commands']['get']('trackChanges');_0x697998['buttonView']['set']({'tooltip':_0x26111a,'label':_0x26111a,'icon':_0x3f82ae}),_0x697998['buttonView']['bind']('isOn')['to'](_0x5abedc,'value'),_0x697998['buttonView']['on']('execute',()=>{_0x5abedc['execute'](),this['editor']['editing']['view']['focus']();}),_0x3916fd(_0x697998,_0x5a635f,{'role':'menu'});const _0x14ab53=[];for(const _0x3384e7 of _0x5a635f)ke(_0x3384e7)&&_0x14ab53['push'](this['editor']['commands']['get'](_0x3384e7['model']['commandName']));const _0x1f2b2a=_0x697998['buttonView'];return _0x1f2b2a['actionView']['unbind']('isEnabled'),_0x1f2b2a['arrowView']['unbind']('isEnabled'),_0x1f2b2a['actionView']['bind']('isEnabled')['to'](_0x5abedc,'isEnabled'),_0x1f2b2a['arrowView']['bind']('isEnabled')['toMany'](_0x14ab53,'isEnabled',(..._0x45830f)=>_0x45830f['some'](_0x126290=>_0x126290)),_0x697998['on']('execute',_0x2970a5=>{this['editor']['execute'](_0x2970a5['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x697998;}['_createMenuBarMenu'](_0x4dc203,_0x76dc0e,_0x472432){const _0x57c216=new _0x2c6665(_0x4dc203),_0xe58304=this['editor']['commands']['get']('trackChanges');_0x57c216['buttonView']['set']({'label':_0x472432,'icon':_0x3f82ae});const _0x4b4745=new _0x5d645a(_0x4dc203);for(const _0x5aedb2 of _0x76dc0e){if('separator'==_0x5aedb2['type']){_0x4b4745['items']['add'](new _0xfc7a50(_0x4dc203));continue;}const _0x11d37=new _0x3a2351(_0x4dc203,_0x57c216),_0x44ecdb=new _0x45c64b(_0x4dc203),_0x2e28d=_0x5aedb2['model'];_0x44ecdb['bind'](...Object['keys'](_0x2e28d))['to'](_0x2e28d),_0x44ecdb['delegate']('execute')['to'](_0x57c216),_0x44ecdb['on']('execute',()=>{this['editor']['execute'](_0x2e28d['commandName']),this['editor']['editing']['view']['focus']();}),_0x11d37['children']['add'](_0x44ecdb),_0x4b4745['items']['add'](_0x11d37);}return _0x57c216['bind']('isEnabled')['to'](_0xe58304,'isEnabled'),_0x57c216['panelView']['children']['add'](_0x4b4745),_0x57c216;}['_initializeController'](_0x45848a){const _0x3dceec=this['editor'],_0x2ed708=_0x3dceec['config'],_0x296d45=_0x3dceec['plugins']['get']('Annotations'),_0x2c0349=_0x3dceec['plugins']['get']('CommentsRepository'),_0x542583=_0x3dceec['plugins']['get']('EditorAnnotations'),_0x1d10ce=_0x3dceec['plugins']['get'](_0x1140a0)['me'],_0x4b019c=_0x2ed708['get']('trackChanges')['SuggestionThreadView'],_0x436c66=_0x2ed708['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5db27e,CommentThreadInputView:_0x425324}=_0x3dceec['plugins']['get']('CommentsUI');let _0x15eec2,_0x5a4a73,_0x543000;this['_annotationViews']['has'](_0x45848a['id'])?(_0x5a4a73=this['_annotationViews']['get'](_0x45848a['id']),_0x15eec2=_0x5a4a73['mainView']):(_0x15eec2=new _0x4b019c(_0x3dceec['locale'],_0x45848a,_0x1d10ce,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2ed708['get']('comments.editorConfig'),'licenseKey':_0x2ed708['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2ed708['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2ed708['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2ed708['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x40c99f(_0x2ed708['get']('locale')),'CommentView':_0x2ed708['get']('comments')['CommentView'],'CommentsListView':_0x5db27e,'CommentThreadInputView':_0x425324,'SuggestionView':_0x436c66}),_0x15eec2['suggestionView']['acceptButton']['on']('execute',()=>{_0x3dceec['editing']['view']['focus']();}),_0x15eec2['suggestionView']['discardButton']['on']('execute',()=>{_0x3dceec['editing']['view']['focus']();}),_0x5a4a73=_0x296d45['createAnnotationView'](this['editor']['locale'],_0x15eec2),_0x5a4a73['bind']('isDirty')['to'](_0x15eec2,'isDirty'),_0x5a4a73['bind']('length')['to'](_0x15eec2),_0x5a4a73['bind']('type')['to'](_0x15eec2,'type',_0x498290=>'suggestion-'+_0x498290),_0x15eec2['on']('escape',()=>{_0x543000['fire']('escape');}),this['_annotationViews']['set'](_0x45848a['id'],_0x5a4a73));const _0x5cdb6b=_0x2c0349['createCommentThreadController'](_0x45848a['commentThread'],_0x15eec2),_0x134cbd=new pe(_0x3dceec,_0x45848a,_0x15eec2,_0x5cdb6b),_0x1f1ea3=_0x45848a['getAllAdjacentSuggestions']()['filter'](_0x2f359e=>_0x2f359e['isInContent']);_0x15eec2['descriptionParts']=_0x3dceec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1f1ea3),this['_suggestionToController']['set'](_0x45848a,_0x134cbd),this['_viewToController']['set'](_0x15eec2,_0x134cbd),_0x543000=_0x296d45['createAnnotation']({'view':_0x5a4a73,'target':()=>{const _0x593896=[],_0x44cc73=_0x45848a['getAllAdjacentSuggestions']()['filter'](_0xa77015=>_0xa77015['isInContent']);for(const _0x56e965 of _0x44cc73)_0x593896['push'](..._0x56e965['getMarkers']());return _0x1fe4aa(_0x3dceec['editing'],_0x593896);},'type':()=>'suggestion-'+_0x134cbd['view']['type']}),_0x2c0349['_bindAnnotationToEditors'](_0x15eec2,_0x543000),_0x296d45['add'](_0x543000),_0x542583['registerAnnotation'](_0x543000);}['_destroyController'](_0x5e3a29){const _0x3b1170=this['editor']['plugins']['get']('CommentsRepository'),_0x4398d0=this['editor']['plugins']['get']('Annotations'),_0x3b2483=this['_suggestionToController']['get'](_0x5e3a29),_0x3fe97b=_0x3b2483['view'],_0x57ed61=_0x4398d0['getByInnerView'](_0x3fe97b);_0x3b1170['_unbindEditors'](_0x3fe97b),_0x57ed61&&_0x4398d0['remove'](_0x57ed61),this['_suggestionToController']['delete'](_0x5e3a29),this['_viewToController']['delete'](_0x3fe97b),_0x3b2483['destroy']();}['_updateController'](_0x44416c){if(!_0x44416c['isInContent']||!this['_suggestionToController']['has'](_0x44416c))return;const _0x550473=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26dcad=this['_suggestionToController']['get'](_0x44416c),_0x1e8c8c=_0x44416c['getAllAdjacentSuggestions']();_0x26dcad['view']['descriptionParts']=_0x550473['descriptionFactory']['getDescriptions'](_0x1e8c8c);}['destroy'](){for(const _0x582860 of this['_suggestionToController']['keys']())this['_destroyController'](_0x582860);for(const _0x337a6d of this['_annotationViews']['values']())_0x337a6d['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x38b1e8){return'model'in _0x38b1e8;}class k extends _0x32ae11{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x54e936){this['editor']['plugins']['get'](p)['adapter']=_0x54e936;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3c981b){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3c981b);}['getSuggestions']({skipNotAttached:_0x1dc3a1=!0x1,toJSON:_0x2ad474=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1dc3a1,'toJSON':_0x2ad474});}['getSuggestion'](_0x243122){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x243122);}}const w=['Pagination'];class T extends _0x32ae11{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x257471=this['editor'];if(_0x257471['config']['define']('trackChangesData.editorCreator',_0xd13679=>{const _0x1e0446=_0x257471['model']['document']['getRootNames']()['reduce']((_0x3f00e8,_0x4f4a1a)=>(_0x3f00e8[_0x4f4a1a]='',_0x3f00e8),{});return _0x257471['constructor']['create'](_0x1e0446,_0xd13679);}),'function'!=typeof _0x257471['config']['get']('trackChangesData')['editorCreator'])throw new _0x20d2d0('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x12794a){return N(this['editor'],!0x0,_0x12794a);}['getDataWithDiscardedSuggestions'](_0x40f3a9){return N(this['editor'],!0x1,_0x40f3a9);}}class D extends _0x32ae11{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f74c8){function _0x222448(_0x551d61){return _0x551d61['map'](_0x481a80=>String['fromCharCode'](_0x481a80))['join']('');}super(_0x4f74c8),this['result']='end',_0x4f74c8[_0x222448([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x222448([0x76,0x69,0x65,0x77])][_0x222448([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x222448([0x61,0x75,0x74,0x6f]),_0x4f74c8[_0x222448([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x222448([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x222448([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x222448([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x222448([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x293ad6){return void 0x0!==_0x293ad6['getRootsAttributes'];}async function N(_0x2ff47f,_0x5a72f3,_0x2be56a){const _0x237178=_0x5d9ba8(_0x2ff47f,w);_0x237178['plugins']['push'](p,D),_0x237178['rootsAttributes']=Fe(_0x2ff47f)?_0x2ff47f['getRootsAttributes']():void 0x0;const _0x3625fe=document['createDocumentFragment'](),_0x1b15a=_0x2ff47f['config']['get']('trackChangesData')['editorCreator'],_0x3805e2=await _0x1b15a(_0x237178,()=>function(_0x54235c){const _0x569c8b=document['createElement']('div');return _0x54235c['appendChild'](_0x569c8b),_0x569c8b;}(_0x3625fe));!function(_0x38c953,_0x36903d){const _0x3d10ba=_0x38c953['model']['document']['getRootNames']()['reduce']((_0x34f394,_0x18a4ce)=>(_0x34f394[_0x18a4ce]=_0x38c953['data']['get']({'rootName':_0x18a4ce}),_0x34f394),{}),_0x4661a6=_0x38c953['plugins']['get']('Users')['users']['map'](_0x141a75=>({'id':_0x141a75['id'],'name':_0x141a75['name']})),_0x185d24=_0x38c953['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2e6225=_0x38c953['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x288924=_0x36903d['plugins']['get']('Users'),_0x1bfc80=_0x36903d['plugins']['get']('TrackChangesEditing'),_0xc5cd4a=_0x36903d['plugins']['get']('CommentsRepository');for(const _0x58ca2c of _0xc5cd4a['getCommentThreads']())_0x58ca2c['remove']();for(const _0x2ece98 of _0x4661a6)_0x288924['getUser'](_0x2ece98['id'])||_0x288924['addUser'](_0x2ece98);_0x288924['me']||_0x288924['useAnonymousUser']();for(const _0x4fe389 of _0x2e6225)_0xc5cd4a['addCommentThread'](_0x4fe389);for(const _0x261b78 of _0x185d24)_0x1bfc80['addSuggestionData'](_0x261b78);_0x36903d['data']['set'](_0x3d10ba);}(_0x2ff47f,_0x3805e2),_0x3805e2['execute'](_0x5a72f3?'acceptAllSuggestions':'discardAllSuggestions');const _0x390837=Fe(_0x3805e2)?_0x3805e2['getFullData'](_0x2be56a):_0x3805e2['data']['get'](_0x2be56a);return await _0x3805e2['destroy'](),_0x390837;}class Me extends _0x4557e4{['options'];constructor(_0x1ef2ca,_0x15e921){super(_0x1ef2ca),this['options']=_0x15e921,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'](_0x40937c,_0x4b9a4b){if(!this['element'])return;const _0xe9c7cb=[];for(const [_0x6b18f4,_0xcbc979]of _0x40937c){const _0x32010f=document['createElement']('div');_0x32010f['setAttribute']('data-ck-root-name',_0x6b18f4),_0x32010f['className']=_0xcbc979['classes']+'\x20ck-track-changes-preview__root-container',_0x32010f['innerHTML']=_0xcbc979['content'],_0xe9c7cb['push'](_0x32010f);}_0x4b9a4b(this['element'],_0xe9c7cb),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0xc75cc7{constructor(_0x54fcce){super(_0x54fcce),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x288643=this['editor'],_0xb359a8=_0x288643['locale'],_0xa4d094=_0x288643['plugins']['get']('Dialog');let _0x1aa714;const _0x4375ad=function(_0x4133f2){const _0x581002={};if('editables'in _0x4133f2['ui']['view']){for(const [_0xcead69,_0x5d697a]of Object['entries'](_0x4133f2['ui']['view']['editables']))_0x581002[_0xcead69]=_0x5d697a['element'];}else _0x581002[_0x4133f2['model']['document']['getRootNames']()[0x0]]=_0x4133f2['ui']['view']['editable']['element'];return _0x581002;}(_0x288643),_0x3172c6=function(_0x271295){let _0x2b38f1=0x0;for(const _0xdf39b9 of Object['values'](_0x271295))_0x2b38f1=Math['max'](_0x2b38f1,_0xdf39b9['getBoundingClientRect']()['width']);let _0x2dace3=0x0;for(const _0x3bbff6 of Object['values'](_0x271295))_0x2dace3+=_0x3bbff6['getBoundingClientRect']()['height'];const _0x47bb4c=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3289c4=Math['min'](_0x2dace3,_0x47bb4c);return{'width':_0x2b38f1,'height':_0x3289c4};}(_0x4375ad);_0xa4d094['show']({'id':'finalContentPreview','title':c(_0xb359a8,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xb359a8,{'dialogRects':_0x3172c6}),'onHide':()=>{_0x1aa714['detachFromDom']();},'onShow':()=>{_0x288643['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0xea85ac=>{const _0x363a17=this['_standarizeRootsData'](_0xea85ac,_0x288643,_0x4375ad);_0xa4d094['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x363a17,_0x288643['config']['get']('trackChanges.preview.renderFunction'));}),_0x1aa714=new _0x23dbfe(_0xb359a8,[_0xa4d094['view']]),_0x1aa714['attachToDom'](),_0x1aa714['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x288643['once']('destroy',()=>{_0x1aa714['detachFromDom']();});const _0x5aac22=_0xa4d094['view']['headerView']['class'];_0xa4d094['view']['headerView']['class']=_0x5aac22?_0x5aac22+'\x20ck-reset_all':'ck-reset_all',_0xa4d094['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xa4d094['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1574b2=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x14e0a5=_0x1574b2['previewMode'],_0x5bda3c={};if('$labels'===_0x14e0a5){for(const _0x234b57 of _0x1574b2['getMergeFieldsIds']())_0x5bda3c[_0x234b57]=_0x1574b2['getLabel'](_0x234b57)||_0x234b57;}else{const _0x4ca1c4='$defaultValues'===_0x14e0a5?_0x1574b2['getDefaultValues']():_0x1574b2['getDataSetValues'](_0x14e0a5,!0x0);for(const _0x5f549a of Object['entries'](_0x4ca1c4)){const [_0x25ef27,_0x583ca7]=_0x5f549a;_0x5bda3c[_0x25ef27]=null!==_0x583ca7?_0x583ca7:_0x1574b2['getLabel'](_0x25ef27)||_0x25ef27;}}return{'mergeFieldsData':_0x5bda3c};}['_standarizeRootsData'](_0x3bda95,_0x2f5733,_0x23387a){let _0x1a457a;if('string'==typeof _0x3bda95){const _0x33b534=_0x2f5733['model']['document']['getRootNames']()[0x0];_0x1a457a={[_0x33b534]:_0x3bda95};}else _0x1a457a=_0x3bda95;const _0x56397b=this['_fixMediaEmbeds'](_0x1a457a,_0x2f5733),_0x3d6d50=function(_0x693376,_0xf40db6){for(const [_0x2d6efc,_0x4bf295]of _0x693376)_0x4bf295['classes']=_0xf40db6[_0x2d6efc]['classList']['value']['replace']('ck-focused','');return _0x693376;}(this['_sortRoots'](_0x2f5733)['reduce']((_0x3b96c5,_0x3b560f)=>(_0x3b96c5['push']([_0x3b560f,{'content':_0x56397b[_0x3b560f],'classes':''}]),_0x3b96c5),[]),_0x23387a);return _0x3d6d50;}['_fixMediaEmbeds'](_0x586070,_0x68c3a6){if(!_0x68c3a6['plugins']['has']('MediaEmbedEditing'))return _0x586070;const _0x427fa4=_0x68c3a6['plugins']['get']('MediaEmbedEditing');for(const [_0x27c373,_0x2a80be]of Object['entries'](_0x586070)){const _0x3eee9d=document['createElement']('div');_0x3eee9d['innerHTML']=_0x2a80be,(_0x3eee9d['querySelectorAll']('figure.media')['forEach'](_0x4ea93f=>{const _0x57c378=_0x4ea93f['querySelector']('oembed');if(_0x57c378){const _0x487f3b=_0x57c378['getAttribute']('url');if(_0x487f3b){const _0x683e38=_0x427fa4['registry']['getMediaViewElement'](new _0x41f0f1(_0x68c3a6['editing']['view']['document']),_0x487f3b,{'elementName':'','renderForEditingView':!0x0}),_0x4bb7cd=document['createElement']('div');_0x4bb7cd['classList']['add']('ck-media__wrapper'),_0x683e38['render'](_0x4bb7cd,_0x68c3a6['editing']['view']['domConverter']),_0x57c378['replaceWith'](_0x4bb7cd);}}}),_0x586070[_0x27c373]=_0x3eee9d['innerHTML']);}return _0x586070;}['_sortRoots'](_0x3d09e4){if(!function(_0x4998d7){return void 0x0!==_0x4998d7['getRootsAttributes'];}(_0x3d09e4))return _0x3d09e4['model']['document']['getRootNames']();const _0x157ca0=[],_0x4fa0d7=new Map();for(const _0x51c50c of _0x3d09e4['model']['document']['getRootNames']()){const _0x30be29=_0x3d09e4['editing']['view']['getDomRoot'](_0x51c50c)['getClientRects']()['item'](0x0);_0x157ca0['push'](_0x51c50c),_0x4fa0d7['set'](_0x51c50c,_0x30be29);}return _0x157ca0['sort']((_0x4946f9,_0x381a41)=>{const _0x1035bd=_0x4fa0d7['get'](_0x4946f9),_0x291518=_0x4fa0d7['get'](_0x381a41);return _0x1035bd['y']-_0x291518['y']||_0x1035bd['x']-_0x291518['x'];}),_0x157ca0;}}class te extends _0x32ae11{static get['requires'](){return[T,_0x434bf9];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x872828){super(_0x872828),_0x872828['commands']['add']('previewFinalContent',new re(this['editor'])),_0x872828['config']['define']('trackChanges.preview.renderFunction',(_0x420d1f,_0x2f081c)=>{for(const _0x59e89b of _0x2f081c)_0x420d1f['appendChild'](_0x59e89b);});}}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};
|