@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250208.0 → 0.0.0-nightly-20250210.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 +25 -25
- 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 Qt,Plugin as
|
|
24
|
-
_0x3c6444(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x40dbbc,_0x1243a3){super(),this['id']=_0x1243a3['id'],this['type']=_0x1243a3['type'],this['subType']=_0x1243a3['subType']||null,this['author']=_0x1243a3['author'],this['creator']=_0x1243a3['creator']||_0x1243a3['author'],this['isExternal']=Boolean(_0x1243a3['attributes']&&_0x1243a3['attributes']['@external']),this['data']=null,this['_model']=_0x40dbbc,this['_onAccept']=_0x1243a3['onAccept'],this['_onDiscard']=_0x1243a3['onDiscard'],this['_onAttributesChange']=_0x1243a3['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1243a3['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 _0x50df9b=this;for(;_0x50df9b['previous'];)_0x50df9b=_0x50df9b['previous'];return _0x50df9b;}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'](_0x1de908){this['_markerNames']['add'](_0x1de908);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3fa3f9=>this['_model']['markers']['get'](_0x3fa3f9))['filter'](_0xf399a9=>_0xf399a9);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3547ab=>{for(const _0x2dd8e8 of this['getMarkers']())_0x3547ab['removeMarker'](_0x2dd8e8);}),this['_markerNames']['clear']();}['removeMarker'](_0x518eb1){this['_model']['change'](_0x4f1761=>{_0x4f1761['removeMarker'](_0x518eb1);}),this['_markerNames']['delete'](_0x518eb1);}['addRange'](_0x2d0a1d){const _0x96752e='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x96752e),this['_model']['change'](_0x4d1367=>{_0x4d1367['addMarker'](_0x96752e,{'range':_0x2d0a1d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1360e2){for(const _0x40e1a9 of this['getRanges']())if(_0x40e1a9['isIntersecting'](_0x1360e2))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3505e6=>_0x3505e6['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xd89cfb,_0x99077a)=>[..._0xd89cfb,..._0x99077a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x16f11a=this['getRanges']();if(0x1!=_0x16f11a['length'])return null;const _0x8a939c=_0x16f11a[0x0],_0x45a24e=_0x8a939c['start']['nodeAfter'],_0x348e71=_0x8a939c['end']['nodeBefore'];return _0x45a24e instanceof _0x382a32?_0x45a24e!=_0x348e71?null:_0x45a24e: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 _0x5c7a52=[];let _0x5358af=this['head'];for(;_0x5358af;)_0x5c7a52['push'](_0x5358af),_0x5358af=_0x5358af['next'];return _0x5c7a52;}['setAttribute'](_0x3033dc,_0x1ad446){const _0x4b72e1=_0x1aee9a(this['attributes']);_0x3e5d67(_0x4b72e1,_0x3033dc,_0x1ad446),_0x27c121(_0x4b72e1,this['attributes'])||(this['attributes']=_0x4b72e1,this['_onAttributesChange'](_0x4b72e1));}['removeAttribute'](_0x15f9ba){const _0x1fa159=_0x1aee9a(this['attributes']);_0x1ab7e1(_0x1fa159,_0x15f9ba),_0x27c121(_0x1fa159,this['attributes'])||(this['attributes']=_0x1fa159,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 _0x39ba3e()['substr'](0x1,0x5);}}function o(_0x100f5e,_0x469491,_0x51ace0){const _0xeea534=_0x100f5e['t'],t=_0x100f5e['t'];switch(_0x469491){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',_0x51ace0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x51ace0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x51ace0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x51ace0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x51ace0);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',_0x51ace0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x51ace0);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',_0x51ace0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x51ace0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x51ace0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x51ace0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x51ace0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x51ace0);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x51ace0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x51ace0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x51ace0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x51ace0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x51ace0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x51ace0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x51ace0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x51ace0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x51ace0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x51ace0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x51ace0);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'},_0x51ace0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x51ace0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x51ace0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x51ace0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x51ace0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x51ace0);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'},_0x51ace0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x51ace0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x51ace0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x51ace0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x51ace0);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'},_0x51ace0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x51ace0);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'},_0x51ace0);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'},_0x51ace0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x51ace0);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'},_0x51ace0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x51ace0);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'},_0x51ace0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x51ace0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x51ace0);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'},_0x51ace0);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x51ace0);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 _0xeea534({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x51ace0);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xeea534({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x51ace0);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x51ace0);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'},_0x51ace0);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'},_0x51ace0);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'},_0x51ace0);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x469491;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x45c8bd,_0x403077){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x45c8bd,this['_locale']=_0x403077;}['getDescriptions'](_0x53b19e){const _0x2c8a89=[],_0x2d4f7f=new Set(),_0x17485b=new Set();for(let _0x188b00=0x0;_0x188b00<_0x53b19e['length'];_0x188b00++){const _0xd7d61c=_0x53b19e[_0x188b00];if(!_0xd7d61c['isInContent'])continue;const _0x31af8b=this['_handleCustomCallbackDescription'](_0xd7d61c);if(_0x31af8b){if(null!=_0xd7d61c['subType']){if(_0x2d4f7f['has'](_0xd7d61c['subType']))continue;_0x2d4f7f['add'](_0xd7d61c['subType']);}_0x2c8a89['push'](_0x31af8b);}else{if('attribute'!=_0xd7d61c['type'])'insertion'!=_0xd7d61c['type']&&'deletion'!=_0xd7d61c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2c8a89,_0xd7d61c,_0x53b19e[_0x188b00+0x1]);else{const _0x1243f5=_0xd7d61c['data']['key'];if(_0x17485b['has'](_0x1243f5))continue;_0x17485b['add'](_0xd7d61c['data']['key']),_0x1243f5==m?this['_handleRenameSuggestionDescription'](_0x2c8a89,_0xd7d61c):this['_handleAttributeSuggestionDescription'](_0x2c8a89,_0xd7d61c);}}}return this['_resolveDescriptionItems'](_0x2c8a89);}['registerDescriptionCallback'](_0x20c191){this['_customCallbacks']['push'](_0x20c191);}['registerElementLabel'](_0x7dcf3c,_0x748173,_0x88d03b=_0x144da7['normal']){'function'==typeof _0x7dcf3c?_0x14a0d9(this['_itemLabelsCallbacks'],{'matchingCallback':_0x7dcf3c,'label':_0x748173,'priority':_0x88d03b}):this['_itemLabels']['set'](_0x7dcf3c,_0x748173);}['registerAttributeLabel'](_0xc1fcb1,_0x11329b){this['_attributeLabels']['set'](_0xc1fcb1,_0x11329b);}['getItemLabel'](_0x470c9d,_0x53fabf=0x1){let _0x282f17;for(const _0x5e78a4 of this['_itemLabelsCallbacks'])if(_0x5e78a4['matchingCallback'](_0x470c9d)){_0x282f17=_0x5e78a4['label'];break;}return _0x282f17||(_0x282f17=this['_itemLabels']['get'](_0x470c9d['name'])),_0x282f17?_0x282f17(_0x53fabf):0x1!==_0x53fabf?_0x53fabf+'\x20'+_0x470c9d['name']+'s':''+_0x470c9d['name'];}['_addDescriptionItems'](_0x5749d5,_0x16b7ed){const _0x16312b=_0x16b7ed['getFirstRange']()['getWalker'](),_0x35795d='insertion'==_0x16b7ed['type']?'add':'remove';for(const _0x5b788e of _0x16312b){const _0xd74f22=_0x5b788e['item'],_0x15348e=_0x5749d5[_0x5749d5['length']-0x1];if(_0xd74f22['is']('$textProxy'))_0x15348e&&_0x15348e['type']['indexOf']('Container')>-0x1&&_0x5749d5['pop'](),_0x15348e&&'text'==_0x15348e['type']?_0x15348e[_0x35795d]+=_0xd74f22['data']:_0x5749d5['push']({'type':'text','add':'add'==_0x35795d?_0xd74f22['data']:'','remove':'remove'==_0x35795d?_0xd74f22['data']:''});else{if(this['_schema']['isObject'](_0xd74f22)){const _0x56169e=_0xd74f22;if(_0x15348e&&_0x15348e['type']['indexOf']('Container')>-0x1&&_0x5749d5['pop'](),'elementEnd'==_0x5b788e['type'])continue;_0x15348e&&_0x15348e['type']==_0x35795d+'Object'&&_0x15348e['element']['name']==_0x56169e['name']?_0x15348e['quantity']++:_0x5749d5['push']({'type':_0x35795d+'Object','element':_0x56169e,'quantity':0x1}),_0x16312b['skip'](_0x2a7f4d=>!('elementEnd'==_0x2a7f4d['type']&&_0x2a7f4d['item']==_0xd74f22));}else{if(this['_schema']['checkChild'](_0xd74f22,'$text')||_0xd74f22['is']('element','softBreak')){const _0x42c00c=_0xd74f22;if('add'==_0x35795d&&'elementStart'==_0x5b788e['type']||'remove'==_0x35795d&&'elementEnd'==_0x5b788e['type'])continue;if(_0x15348e&&-0x1==_0x15348e['type']['indexOf']('Container')){'text'==_0x15348e['type']&&(_0x15348e[_0x35795d]+='\x0a');continue;}let _0x350f1f;if(_0x350f1f='add'==_0x35795d?_0x42c00c['nextSibling']&&!this['_schema']['isObject'](_0x42c00c['nextSibling'])?_0x42c00c['nextSibling']:null:_0x42c00c['previousSibling']&&!this['_schema']['isObject'](_0x42c00c['previousSibling'])?_0x42c00c['previousSibling']:null,_0x42c00c['isEmpty']||_0x350f1f&&_0x350f1f['isEmpty']){const _0x45eff4=_0x350f1f&&_0x350f1f['isEmpty']?_0x350f1f:_0x42c00c;_0x15348e&&_0x15348e['type']==_0x35795d+'EmptyContainer'&&_0x15348e['element']['name']==_0x45eff4['name']?_0x15348e['quantity']++:_0x5749d5['push']({'type':_0x35795d+'EmptyContainer','element':_0x45eff4,'quantity':0x1});}else _0x5749d5['push']({'type':_0x35795d+'Container','element':_0x42c00c});}}}}}['_resolveDescriptionItems'](_0x4f4fed){const _0x4b3fad=this['_locale'],_0x4c2ac7=[],_0x339fe8=[],_0x116af7=[];for(const _0x6ef8c of _0x4f4fed)switch(_0x6ef8c['type']){case'text':if(_0x6ef8c['add']=_0x6ef8c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x6ef8c['remove']=_0x6ef8c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x6ef8c['add']&&''!=_0x6ef8c['remove']){_0x4c2ac7['push']({'type':'replace','content':o(_0x4b3fad,'REPLACE_TEXT',['\x22'+_0x6ef8c['remove']+'\x22','\x22'+_0x6ef8c['add']+'\x22'])});continue;}if(null!=_0x6ef8c['add']['match'](/^ +$/)){_0x4c2ac7['push']({'type':'insertion','content':o(_0x4b3fad,'*Insert:*\x20%0',o(_0x4b3fad,'ELEMENT_SPACE',_0x6ef8c['add']['length']))});continue;}if(null!=_0x6ef8c['remove']['match'](/^ +$/)){_0x4c2ac7['push']({'type':'deletion','content':o(_0x4b3fad,'*Remove:*\x20%0',o(_0x4b3fad,'ELEMENT_SPACE',_0x6ef8c['remove']['length']))});continue;}if(''!=_0x6ef8c['add']){_0x4c2ac7['push']({'type':'insertion','content':o(_0x4b3fad,'*Insert:*\x20%0','\x22'+_0x6ef8c['add']+'\x22')});continue;}_0x4c2ac7['push']({'type':'deletion','content':o(_0x4b3fad,'*Remove:*\x20%0','\x22'+_0x6ef8c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4c2ac7['push']({'type':'insertion','content':o(_0x4b3fad,'*Insert:*\x20%0',this['getItemLabel'](_0x6ef8c['element'],_0x6ef8c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4c2ac7['push']({'type':'deletion','content':o(_0x4b3fad,'*Remove:*\x20%0',this['getItemLabel'](_0x6ef8c['element'],_0x6ef8c['quantity']))});continue;case'addContainer':_0x4c2ac7['push']({'type':'insertion','content':o(_0x4b3fad,'*Split:*\x20%0',this['getItemLabel'](_0x6ef8c['element'],_0x6ef8c['quantity']))});continue;case'removeContainer':_0x4c2ac7['push']({'type':'deletion','content':o(_0x4b3fad,'*Merge:*\x20%0',this['getItemLabel'](_0x6ef8c['element'],_0x6ef8c['quantity']))});continue;case'addFormat':_0x339fe8['push'](_0x6ef8c['key']);continue;case'removeFormat':_0x116af7['push'](_0x6ef8c['key']);continue;default:_0x4c2ac7['push'](_0x6ef8c);}if(_0x339fe8['length']){const _0x1beb62=_0x339fe8['map'](_0x302754=>this['_attributeLabels']['has'](_0x302754)?this['_attributeLabels']['get'](_0x302754):_0x302754)['join'](',\x20');_0x4c2ac7['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1beb62)});}if(_0x116af7['length']){const _0x41c20f=_0x116af7['map'](_0x188f89=>this['_attributeLabels']['has'](_0x188f89)?this['_attributeLabels']['get'](_0x188f89):_0x188f89)['join'](',\x20');_0x4c2ac7['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x41c20f)});}return _0x4c2ac7;}['_handleCustomCallbackDescription'](_0x59c25c){for(const _0x6f54ba of this['_customCallbacks']){const _0x2ca432=_0x6f54ba(_0x59c25c);if(_0x2ca432&&'type'in _0x2ca432)return _0x2ca432;}}['_handleAttributeSuggestionDescription'](_0x142cea,_0x1af96e){const _0x162143=_0x1af96e['data'],_0x2d8340=void 0x0===_0x162143['newValue']?'removeFormat':'addFormat';_0x142cea['push']({'type':_0x2d8340,'key':_0x162143['key']});}['_handleRenameSuggestionDescription'](_0x376792,_0x260456){_0x376792['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x260456['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5716fa,_0x42e014,_0x472093){if(this['_addDescriptionItems'](_0x5716fa,_0x42e014),_0x472093&&_0x472093['getFirstRange']()&&!_0x42e014['getFirstRange']()['end']['isEqual'](_0x472093['getFirstRange']()['start'])){const _0x40057d=_0x5716fa[_0x5716fa['length']-0x1],_0x54fad1='insertion'==_0x42e014['type']?'add':'remove';_0x40057d&&'text'==_0x40057d['type']&&(_0x40057d[_0x54fad1]+='\x0a');}}}class U extends _0x5d6d85{['afterInit'](){const _0xc6371=this['editor'],_0x5992cc=_0xc6371['plugins']['get']('TrackChangesEditing');_0xc6371['commands']['get']('showAIAssistant')&&_0x5992cc['enableCommand']('showAIAssistant');}}class V extends _0x5d6d85{['afterInit'](){const _0x745f19=this['editor'],_0x5a1b7a=_0x745f19['locale'];if(!_0x745f19['plugins']['has']('AlignmentEditing'))return;const _0x5964b6=_0x745f19['plugins']['get']('TrackChangesEditing');_0x5964b6['enableDefaultAttributesIntegration']('alignment'),_0x5964b6['registerBlockAttribute']('alignment'),_0x5964b6['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5a1b7a,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2485ab=this['editor'],_0x35036c=_0x2485ab['locale'];_0x2485ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e29a9=>{if('formatBlock'!=_0x3e29a9['type'])return;const {data:_0x51ce24}=_0x3e29a9;if(_0x51ce24&&'alignment'==_0x51ce24['commandName']){const _0x416b99=_0x51ce24['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x35036c,'*Format:*\x20%0',function(_0x43e4fd){switch(_0x43e4fd){case'left':return o(_0x35036c,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x35036c,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x35036c,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x35036c,'FORMAT_JUSTIFY_TEXT');}}(_0x416b99))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x5d6d85{['afterInit'](){const _0x3a9e9e=this['editor'],_0x17b639=_0x3a9e9e['plugins']['get']('TrackChangesEditing'),_0x106942=_0x3a9e9e['locale'];for(const _0x596f7e of ti){if(!_0x3a9e9e['plugins']['has'](_0x596f7e))continue;const _0x35f6bd=_0x596f7e['slice'](0x0,-0x7)['toLowerCase'](),_0x1b145b='FORMAT_'+_0x35f6bd['toUpperCase']();_0x17b639['enableDefaultAttributesIntegration'](_0x35f6bd),_0x17b639['registerInlineAttribute'](_0x35f6bd),_0x17b639['descriptionFactory']['registerAttributeLabel'](_0x35f6bd,o(_0x106942,_0x1b145b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf6d366=this['editor'],_0x1ae170=_0xf6d366['locale'],_0x48404e=_0xf6d366['plugins']['get']('TrackChangesEditing');function _0x29de73(_0x2f4a2f,_0x10efc2){_0x48404e['descriptionFactory']['registerDescriptionCallback'](_0x37f65e=>{if('formatInline'!=_0x37f65e['type'])return;const {data:_0x1861f1}=_0x37f65e;return _0x1861f1&&_0x1861f1['commandName']===_0x2f4a2f?_0x1861f1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1ae170,'*Format:*\x20%0',_0x10efc2)}:{'type':'format','content':o(_0x1ae170,'*Remove\x20format:*\x20%0',_0x10efc2)}:void 0x0;});}_0x29de73('bold',o(_0x1ae170,'FORMAT_BOLD')),_0x29de73('italic',o(_0x1ae170,'FORMAT_ITALIC')),_0x29de73('underline',o(_0x1ae170,'FORMAT_UNDERLINE')),_0x29de73('code',o(_0x1ae170,'FORMAT_CODE')),_0x29de73('strikethrough',o(_0x1ae170,'FORMAT_STRIKETHROUGH')),_0x29de73('subscript',o(_0x1ae170,'FORMAT_SUBSCRIPT')),_0x29de73('superscript',o(_0x1ae170,'FORMAT_SUPERSCRIPT'));}}class F extends _0x5d6d85{['afterInit'](){const _0x5c7fb5=this['editor'],_0xd1aee=_0x5c7fb5['locale'];if(!_0x5c7fb5['plugins']['has']('BlockQuoteEditing'))return;const _0x53a472=_0x5c7fb5['plugins']['get']('TrackChangesEditing'),_0x5f2787=this['editor']['commands']['get']('blockQuote');_0x53a472['enableCommand']('blockQuote',(_0x2bc840,_0x117014={})=>{const _0x2446ab=this['editor']['model']['document']['selection'],_0x5d94e7=_0x117014&&void 0x0!==_0x117014['forceValue']?_0x117014['forceValue']:!_0x5f2787['value'];let _0xa98c5f=[];if(_0x5d94e7){const _0xd2d08e=Array['from'](_0x2446ab['getSelectedBlocks']())['filter'](_0x3fd1a5=>oo(_0x3fd1a5)||function(_0x2ab99f,_0x49040e){const _0x10e68e=_0x49040e['checkChild'](_0x2ab99f['parent'],'blockQuote'),_0x5a0455=_0x49040e['checkChild'](['$root','blockQuote'],_0x2ab99f);return _0x10e68e&&_0x5a0455;}(_0x3fd1a5,this['editor']['model']['schema']));_0xa98c5f=to(_0xd2d08e,_0x5c7fb5['model']);}else{const _0xeae76e=Array['from'](_0x2446ab['getSelectedBlocks']())['filter'](_0x4a7db2=>oo(_0x4a7db2));_0xa98c5f=to(_0xeae76e,_0x5c7fb5['model']);}_0x5c7fb5['model']['change'](()=>{for(const _0x148e92 of _0xa98c5f)_0x53a472['markBlockFormat'](_0x148e92,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5d94e7}]});});}),_0x53a472['descriptionFactory']['registerDescriptionCallback'](_0x126bc3=>{const {data:_0x39a6f6}=_0x126bc3;if(_0x39a6f6&&'blockQuote'==_0x39a6f6['commandName']){const _0x53f605=o(_0xd1aee,'ELEMENT_BLOCK_QUOTE');return _0x39a6f6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xd1aee,'*Set\x20format:*\x20%0',_0x53f605)}:{'type':'format','content':o(_0xd1aee,'*Remove\x20format:*\x20%0',_0x53f605)};}});}}function oo(_0x1257bf){return'blockQuote'==_0x1257bf['parent']['name'];}class L extends _0x5d6d85{['afterInit'](){const _0x91cef9=this['editor'],_0x49e138=_0x91cef9['locale'],_0x3a243d=_0x91cef9['plugins']['get']('TrackChangesEditing');_0x91cef9['plugins']['has']('BookmarkEditing')&&(_0x3a243d['enableCommand']('insertBookmark'),_0x3a243d['enableDefaultAttributesIntegration']('updateBookmark'),_0x3a243d['registerBlockAttribute']('bookmarkId'),_0x3a243d['descriptionFactory']['registerDescriptionCallback'](_0x1b3bb3=>{if('insertion'!=_0x1b3bb3['type']&&'deletion'!=_0x1b3bb3['type']&&'attribute'!=_0x1b3bb3['type'])return;const _0x55689d=_0x1b3bb3['getContainedElement']();if(null==_0x55689d)return;if(!_0x55689d['is']('element','bookmark'))return;const _0xf2c64e=_0x55689d['getAttribute']('bookmarkId');if('insertion'==_0x1b3bb3['type'])return{'type':'insertion','content':o(_0x49e138,'*Insert:*\x20%0','\x22'+_0xf2c64e+'\x22\x20'+o(_0x49e138,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1b3bb3['type'])return{'type':'deletion','content':o(_0x49e138,'*Remove:*\x20%0','\x22'+_0xf2c64e+'\x22\x20'+o(_0x49e138,'ELEMENT_BOOKMARK'))};const {data:_0x529be7}=_0x1b3bb3;if(!_0x529be7||'bookmarkId'!=_0x529be7['key'])return;return{'type':'format','content':o(_0x49e138,'*Set\x20bookmark:*\x20%0','\x22'+_0x529be7['newValue']+'\x22')};}));}}class J extends _0x5d6d85{['afterInit'](){const _0x2346b4=this['editor'];_0x2346b4['plugins']['has']('CaseChange')&&(_0x2346b4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2346b4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2346b4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x5d6d85{['afterInit'](){const _0x1bdc06=this['editor'];_0x1bdc06['commands']['get']('ckbox')&&_0x1bdc06['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x5d6d85{['afterInit'](){const _0x44e924=this['editor'];if(!_0x44e924['plugins']['has']('CodeBlock'))return;const _0x446ae8=_0x44e924['plugins']['get']('TrackChangesEditing'),_0x4eb91e=_0x44e924['locale'],_0x3f100d=_0x44e924['config']['get']('codeBlock')['languages'],_0x5b30bf=_0x44e924['commands']['get']('codeBlock');_0x446ae8['enableCommand']('indentCodeBlock'),_0x446ae8['enableCommand']('outdentCodeBlock'),_0x446ae8['enableCommand']('codeBlock',(_0x582b47,_0x380b98={})=>{const _0x3b55f1=_0x44e924['model'],_0x7976c2=_0x44e924['model']['document']['selection'],_0x493ffa=_0x380b98&&void 0x0!==_0x380b98['forceValue']?_0x380b98['forceValue']:!_0x5b30bf['value'];let _0x1d80ab;_0x380b98['language']||(_0x380b98['language']=_0x3f100d[0x0]['language']),_0x1d80ab=_0x493ffa?Array['from'](_0x7976c2['getSelectedBlocks']())['filter'](_0x12eef5=>eo(_0x12eef5)||function(_0x4c9047,_0xa2fda){if(_0x4c9047['is']('rootElement')||_0xa2fda['isLimit'](_0x4c9047))return!0x1;return _0xa2fda['checkChild'](_0x4c9047['parent'],'codeBlock');}(_0x12eef5,_0x3b55f1['schema'])):Array['from'](_0x7976c2['getSelectedBlocks']())['filter'](_0xc8343e=>eo(_0xc8343e));const _0x3573a4=to(_0x1d80ab,_0x3b55f1);_0x3b55f1['change'](()=>{for(const _0x366fc4 of _0x3573a4)_0x446ae8['markBlockFormat'](_0x366fc4,{'commandName':'codeBlock','commandParams':[{..._0x380b98,'forceValue':_0x493ffa}],'formatGroupId':'blockName'});});}),(_0x446ae8['descriptionFactory']['registerElementLabel']('codeBlock',_0x412eb3=>o(_0x4eb91e,'ELEMENT_CODE_BLOCK',_0x412eb3)),_0x446ae8['descriptionFactory']['registerDescriptionCallback'](_0x2e80c5=>{if('formatBlock'!=_0x2e80c5['type'])return;const _0x50e3d9=_0x4eb91e['t'],{data:_0xe10874}=_0x2e80c5;if(!_0xe10874||'codeBlock'!=_0xe10874['commandName'])return;const _0x3edd3e=_0xe10874['commandParams'][0x0]['language'],_0x29a8ca=_0x50e3d9(_0x3f100d['find'](_0x5a4d3e=>_0x5a4d3e['language']===_0x3edd3e)['label'])['toLowerCase']();return _0xe10874['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4eb91e,'*Set\x20format:*\x20%0',o(_0x4eb91e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x29a8ca+')')}:{'type':'format','content':o(_0x4eb91e,'*Remove\x20format:*\x20%0',o(_0x4eb91e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x241ac7){return'codeBlock'==_0x241ac7['name'];}class z extends _0x5d6d85{['afterInit'](){const _0x32d123=this['editor'];if(!_0x32d123['plugins']['has']('CommentsEditing'))return;_0x32d123['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2dd937,_0x5bc18f,_0x3a45ad){const _0x1222d1=[];for(const _0x4537f0 of _0x5bc18f['getItems']())_0x4537f0['hasAttribute'](_0x2dd937)&&_0x1222d1['push'](_0x3a45ad['createRangeOn'](_0x4537f0));return _0x1222d1;}function De(_0x177c8a,_0x468a30,{showActiveMarker:_0x557959=!0x0}={}){const _0xd6b6ea=_0x177c8a['plugins']['get']('TrackChangesEditing');return(_0x531983,_0xa08dc3,_0x533130)=>{if(!_0x533130['consumable']['test'](_0xa08dc3['markerRange'],_0x531983['name']))return;const _0x4ecede=_0xa08dc3['markerRange']['getWalker'](),_0x281b18=_0xa08dc3['markerRange']['start'],_0x540494=_0x177c8a['model']['schema'];let _0x5b2455=null,_0x52b3c5=null,_0x2b55fc=!0x1,_0x3a9845=!0x1;for(const _0x29286e of _0x4ecede){const _0x285846=_0x29286e['item'];_0x2b55fc=_0x2b55fc||_0x540494['isContent'](_0x285846);const _0x12dc63=_0x533130['mapper']['toViewElement'](_0x285846);if(_0x12dc63&&_0x12dc63['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x29286e['type']&&(_0x540494['isBlock'](_0x285846)&&!_0x540494['isLimit'](_0x285846)&&(_0x285846['nextSibling']||_0x281b18['isAtEnd']?_0x5b2455&&_0x5b2455['parent']==_0x285846||(_0x5b2455=_0x285846,_0xdea3f8(_0x29286e['previousPosition']),_0x3a9845=!0x0):_0x52b3c5=_0x52b3c5||_0x29286e['previousPosition']));}function _0xdea3f8(_0x34ef9b){const {authorId:_0x461bb6}=_0xd6b6ea['_splitMarkerName'](_0xa08dc3['markerName']),_0xde3521=_0x533130['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x468a30,'data-author-id':_0x461bb6}),_0x5c9062=_0x533130['mapper']['toViewPosition'](_0x34ef9b);_0x557959&&_0xd6b6ea['activeMarkers']['includes'](_0xa08dc3['markerName'])&&_0x533130['writer']['addClass']('ck-suggestion-marker--active',_0xde3521),_0x533130['writer']['insert'](_0x5c9062,_0xde3521),_0x533130['mapper']['bindElementToMarker'](_0xde3521,_0xa08dc3['markerName']);}_0x2b55fc||_0x3a9845||!_0x52b3c5||_0xdea3f8(_0x52b3c5);};}class K extends _0x5d6d85{static get['requires'](){return[_0x4f5774];}['init'](){const _0x2e4c9c=this['editor'],_0x36b152=_0x2e4c9c['plugins']['get']('TrackChangesEditing');_0x36b152['enableCommand']('delete');const _0x42e30a=_0x2e4c9c['commands']['get']('deleteForward');_0x36b152['enableCommand']('deleteForward',(_0x5addc2,_0x572a07={})=>{const _0x1249f9=_0x2e4c9c['model']['createSelection'](_0x2e4c9c['model']['document']['selection']);_0x1249f9['isCollapsed']&&_0x2e4c9c['model']['modifySelection'](_0x1249f9,{'direction':'forward','unit':_0x572a07['unit']});const _0x2e64d7=_0x1249f9['getFirstRange'](),_0x3da4a1=_0x1e09a5['fromRange'](_0x2e64d7);let _0x133986;_0x5addc2(_0x572a07),_0x133986='$graveyard'==_0x3da4a1['root']['rootName']?_0x2e4c9c['model']['createRange'](_0x2e64d7['start']):_0x2e4c9c['model']['createRange'](_0x3da4a1['start'],_0x3da4a1['end']),_0x3da4a1['detach'](),_0x2e4c9c['model']['enqueueChange'](_0x42e30a['buffer']['batch'],_0x2ba518=>{_0x42e30a['buffer']['lock'](),_0x2ba518['setSelection'](_0x2ba518['createRange'](_0x133986['end'])),_0x42e30a['buffer']['unlock']();});}),_0x2e4c9c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x2e4c9c,'merge'),{'priority':'high'}),_0x2e4c9c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3e65fb,_0x48623b,_0x330adf)=>{_0x330adf['options']['showSuggestionHighlights']&&De(_0x2e4c9c,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3e65fb,_0x48623b,_0x330adf);},{'priority':'high'}),_0x2e4c9c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xfaf5b1,_0x4215c9,_0x5ab643)=>{const _0x2910ab=_0x5ab643['mapper']['markerNameToElements'](_0x4215c9['markerName']);if(_0x2910ab){for(const _0x12541e of _0x2910ab)_0x12541e['is']('uiElement')&&(_0x5ab643['mapper']['unbindElementFromMarkerName'](_0x12541e,_0x4215c9['markerName']),_0x5ab643['writer']['remove'](_0x12541e));}},{'priority':'high'});}}class W extends _0x5d6d85{['afterInit'](){const _0x408879=this['editor'];if(!_0x408879['plugins']['has']('ListEditing'))return;const _0x3582f3=_0x408879['locale'],_0x17fc91=_0x408879['plugins']['get']('TrackChangesEditing'),_0xe1f588=_0x408879['plugins']['has']('TodoListEditing'),_0x107972=!!_0x408879['config']['get']('list.multiBlock');function _0x9dd77e(_0x4b342c){return{'type':'format','content':''+o(_0x3582f3,'*Set\x20format:*\x20%0',_0x4b342c)};}function _0x5aa4de(_0x2566b0){return{'type':'format','content':''+o(_0x3582f3,'*Remove\x20format:*\x20%0',_0x2566b0)};}_0x17fc91['enableDefaultAttributesIntegration']('numberedList'),_0x17fc91['enableDefaultAttributesIntegration']('bulletedList'),_0x17fc91['enableDefaultAttributesIntegration']('customNumberedList'),_0x17fc91['enableDefaultAttributesIntegration']('customBulletedList'),_0x17fc91['enableDefaultAttributesIntegration']('indentList'),_0x17fc91['enableDefaultAttributesIntegration']('outdentList'),_0x17fc91['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x17fc91['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x17fc91['registerBlockAttribute']('listItemId'),_0x17fc91['registerBlockAttribute']('listType'),_0x17fc91['registerBlockAttribute']('listIndent'),_0x107972&&(_0x17fc91['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x17fc91['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xe1f588&&(_0x17fc91['enableDefaultAttributesIntegration']('todoList'),_0x17fc91['enableDefaultAttributesIntegration']('checkTodoList'),_0x17fc91['registerBlockAttribute']('todoListChecked'),_0x17fc91['descriptionFactory']['registerDescriptionCallback'](_0x35892d=>{const {data:_0x18fe5f}=_0x35892d;if(_0x18fe5f&&'todoListChecked'==_0x18fe5f['key'])return{'type':'format','content':_0x18fe5f['newValue']?o(_0x3582f3,'*Check\x20item*'):o(_0x3582f3,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x275c76=>{if(_0x275c76['batch']['isUndo'])return!0x1;let _0x1f4742=!0x1;const _0x56473e=_0x17fc91['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x10680b=>'todoListChecked'===_0x17fc91['_getAttributeKey'](_0x10680b));for(const _0xbc9a6 of _0x56473e){'todo'!=_0xbc9a6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x17fc91['_findSuggestions'](_0xbc9a6['getFirstRange'](),'attribute')['find'](_0x3fd8b7=>'listType'===_0x17fc91['_getAttributeKey'](_0x3fd8b7['suggestion']))||(_0x275c76['removeMarker'](_0xbc9a6['getFirstMarker']()),_0x1f4742=!0x0));}return _0x1f4742;})),_0x17fc91['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3582f3,'FORMAT_INDENT'));const _0x123a7f={'type':'format','content':''};_0x17fc91['descriptionFactory']['registerDescriptionCallback'](_0x1650bb=>{const {data:_0x1db03c}=_0x1650bb;if(!_0x1db03c||'listType'!=_0x1db03c['key'])return;let _0x37f47b=_0x1650bb['head'];for(;_0x37f47b;){if(_0x37f47b['data']&&(('listStyle'==_0x37f47b['data']['key']||'listMarkerStyle'==_0x37f47b['data']['key'])&&(_0x37f47b['data']['newValue']&&'default'!=_0x37f47b['data']['newValue']||'default'!=_0x37f47b['data']['oldValue']&&!_0x1db03c['newValue'])||!_0x107972&&_0x37f47b['data']['key']==m))return _0x123a7f;_0x37f47b=_0x37f47b['next'];}if(null==_0x1db03c['newValue'])switch(_0x1db03c['oldValue']){case'bulleted':return _0x5aa4de(o(_0x3582f3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5aa4de(o(_0x3582f3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5aa4de(o(_0x3582f3,'ELEMENT_TODO_LIST'));}switch(_0x1db03c['newValue']){case'bulleted':return _0x9dd77e(o(_0x3582f3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x9dd77e(o(_0x3582f3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x9dd77e(o(_0x3582f3,'ELEMENT_TODO_LIST'));}}),_0x17fc91['descriptionFactory']['registerDescriptionCallback'](_0x56ddc0=>{const {data:_0x111cad}=_0x56ddc0;if(_0x111cad&&'listIndent'==_0x111cad['key'])return null==_0x111cad['newValue']||null==_0x111cad['oldValue']&&0x0==_0x111cad['newValue']?_0x123a7f:void 0x0;}),_0x17fc91['descriptionFactory']['registerDescriptionCallback'](_0x3eab52=>{if('attribute'!=_0x3eab52['type'])return;const {data:_0x12a5ca}=_0x3eab52;if(!_0x12a5ca||'listItemId'!=_0x12a5ca['key'])return;const _0x260592=Te(_0x3eab52);return'newValue'==_0x260592?{'type':'format','content':o(_0x3582f3,'*Merge:*\x20list\x20item')}:'oldValue'==_0x260592?{'type':'format','content':o(_0x3582f3,'*Split:*\x20list\x20item')}:_0x123a7f;}),_0x408879['model']['document']['registerPostFixer'](_0x368ca9=>this['listItemIdFixer'](_0x368ca9)),_0x408879['model']['document']['registerPostFixer'](_0x1e6c2a=>this['noTrackChangesFixer'](_0x1e6c2a)),_0x408879['model']['document']['on']('change:data',(_0x41ce19,_0x19ca4c)=>{if(_0x19ca4c['isUndo']||!_0x19ca4c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x10f424){if(_0x10f424['batch']['isUndo']||!_0x10f424['batch']['isLocal'])return!0x1;let _0x3f3d42=!0x1;const _0x34bcaa=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5dc51e=>_0x5dc51e['data']&&'listItemId'==_0x5dc51e['data']['key'])['filter'](_0x5a40d0=>_0x5a40d0['data']['newValue']&&_0x5a40d0['data']['oldValue']);for(const _0x2640b7 of _0x34bcaa)Te(_0x2640b7)||(_0x10f424['removeMarker'](_0x2640b7['getFirstMarker']()),_0x3f3d42=!0x0);return _0x3f3d42;}['noTrackChangesFixer'](_0x4a45fd){if(_0x4a45fd['batch']['isUndo']||!_0x4a45fd['batch']['isLocal'])return!0x1;const _0x2b0a75=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2b0a75['trackChangesCommand']['value'])return!0x1;let _0x3e351e=!0x1;const _0x139482=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2b469b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x30d74f=>'attribute'==_0x30d74f['type'])['filter'](_0x6a246c=>_0x139482['includes'](_0x6a246c['attributeKey']));if(0x0==_0x2b469b['length'])return _0x3e351e;for(const _0x54b4b1 of _0x2b469b){const _0x14957f=_0x2b0a75['_findSuggestions'](_0x54b4b1['range'],'attribute')['filter'](_0x3b7d8e=>!_0x3b7d8e['meta']['isNextTo'])['map'](_0x22e3ea=>_0x22e3ea['suggestion'])['filter'](_0x1e8ce9=>{const _0x407e85=_0x2b0a75['_getAttributeKey'](_0x1e8ce9);return _0x139482['includes'](_0x407e85);});if(_0x14957f['length']){for(const _0x3c6f2c of _0x14957f)_0x4a45fd['removeMarker'](_0x3c6f2c['getFirstMarker']());_0x3e351e=!0x0;}}return _0x3e351e;}['assureChains'](){const _0x28d143=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48aace=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4bff82;const _0x54c320=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4ae31d=>{if(_0x4ae31d['data']['oldRange']||!_0x4ae31d['data']['newRange'])return null;if(!_0x4ae31d['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x28095f}=_0x28d143['_splitMarkerName'](_0x4ae31d['name']);if(!_0x28d143['hasSuggestion'](_0x28095f))return null;const _0x18b98f=_0x28d143['getSuggestion'](_0x28095f);return _0x48aace['includes'](_0x18b98f['data']['key']);})['map'](_0x4165e6=>{const {id:_0x2b4136}=_0x28d143['_splitMarkerName'](_0x4165e6['name']),_0x2a1005=_0x28d143['getSuggestion'](_0x2b4136);return _0x4bff82=_0x2a1005['attributes']['groupId'],_0x2a1005['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x54c320['size'])return;const _0x1f4bfe=_0x28d143['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x395e84=>'attribute'==_0x395e84['type']&&_0x395e84['data']&&_0x48aace['includes'](_0x395e84['data']['key'])&&_0x395e84['attributes']['groupId']!=_0x4bff82)['map'](_0x38a873=>({'listItem':_0x38a873['getFirstRange']()['start']['nodeAfter'],'groupId':_0x38a873['attributes']['groupId']})),_0x1db15c=new Set();for(const {groupId:_0xeb42ce,listItem:_0xbe403}of _0x1f4bfe)_0x54c320['has'](_0xbe403)&&_0x1db15c['add'](_0xeb42ce);for(const _0x3dec56 of _0x28d143['getSuggestions']())_0x1db15c['has'](_0x3dec56['attributes']['groupId'])&&_0x3dec56['setAttribute']('groupId',_0x4bff82);}['_supportLegacySuggestions'](){const _0x2dab8f=this['editor'],_0x5edeef=_0x2dab8f['locale'],_0xf6dc28=_0x2dab8f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xf6dc28['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x433629,_0x1fabb2){const _0x5494b6=[];for(let _0x5d5aa8 of _0x433629)_0x5d5aa8['start']['nodeAfter']===_0x5d5aa8['end']['parent']&&(_0x5d5aa8=_0x2dab8f['model']['createRange'](_0x2dab8f['model']['createPositionAt'](_0x5d5aa8['start']['nodeAfter'],0x0))),_0x5494b6['push'](_0x5d5aa8);_0x2dab8f['model']['change'](_0x3f3169=>{const _0x3f6c80=_0x2dab8f['model']['document']['selection'],_0x43f5b6=Array['from'](_0x3f6c80['getRanges']())['map'](_0x1c5a17=>_0x1e09a5['fromRange'](_0x1c5a17));_0x3f3169['setSelection'](_0x5494b6),_0x2dab8f['commands']['get'](_0x1fabb2['commandName'])['refresh'](),_0x1fabb2['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2dab8f['execute'](_0x1fabb2['commandName'],..._0x1fabb2['commandParams']),_0x3f3169['setSelection'](_0x43f5b6);for(const _0x1bfb71 of _0x43f5b6)_0x1bfb71['detach']();});}),_0xf6dc28['descriptionFactory']['registerElementLabel'](function(_0x5e2f04){const _0xdb7111=!_0x2dab8f['model']['schema']['isObject'](_0x5e2f04),_0x4bf0b4=_0x5e2f04['previousSibling'],_0x1cec24=_0x5e2f04['nextSibling'],_0x18f76e=_0x5e2f04['getAttribute']('listItemId'),_0x15484d=!_0x4bf0b4||_0x4bf0b4['getAttribute']('listItemId')!==_0x18f76e,_0x2b3cba=!_0x1cec24||_0x1cec24['getAttribute']('listItemId')!==_0x18f76e;return _0xdb7111&&Boolean(_0x18f76e)&&_0x15484d&&_0x2b3cba;},_0x5caeef=>o(_0x5edeef,'ELEMENT_LIST_ITEM',_0x5caeef));}['_registerLegacyDescription'](){const _0x40e31d=this['editor'],_0x1d0d96=_0x40e31d['locale'];function _0x44823d(_0x229604){const _0x34a45d=_0x40e31d['commands']['get']('bulletedList')['value'],_0x113605=_0x40e31d['commands']['get']('numberedList')['value'];return'numberedList'===_0x229604?_0x34a45d:_0x113605;}_0x40e31d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4260fa){if('formatBlock'!=_0x4260fa['type'])return;const {data:_0x5cc81e}=_0x4260fa;if(!_0x5cc81e)return;let _0x1c8cbd,_0x1108fd,_0x18a119,_0x450668;switch(_0x5cc81e['commandName']){case'bulletedList':_0x18a119=_0x5cc81e['commandParams'][0x0]['forceValue'],_0x450668=_0x44823d(_0x5cc81e['commandName']),_0x1c8cbd=_0x18a119?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x450668&&_0x40e31d['config']['get']('list.multiBlock')||(_0x1c8cbd='*Change\x20to:*\x20%0'),_0x1108fd={'type':'format','content':o(_0x1d0d96,_0x1c8cbd,o(_0x1d0d96,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x18a119=_0x5cc81e['commandParams'][0x0]['forceValue'],_0x450668=_0x44823d(_0x5cc81e['commandName']),_0x1c8cbd=_0x18a119?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x450668&&_0x40e31d['config']['get']('list.multiBlock')||(_0x1c8cbd='*Change\x20to:*\x20%0'),_0x1108fd={'type':'format','content':o(_0x1d0d96,_0x1c8cbd,o(_0x1d0d96,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1c8cbd='*Indent:*\x20%0',_0x1108fd={'type':'format','content':o(_0x1d0d96,_0x1c8cbd,o(_0x1d0d96,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1c8cbd=function(_0x3b95b8){const _0x57be5b=_0x3b95b8['getFirstRange']();let _0x36cbc2=_0x57be5b['start']['nodeAfter'];for(;_0x36cbc2&&_0x57be5b['containsItem'](_0x36cbc2);){if(_0x36cbc2['getAttribute']('listIndent')>0x0)return!0x1;_0x36cbc2=_0x36cbc2['nextSibling'];}return!0x0;}(_0x4260fa)?o(_0x1d0d96,'*Format:*\x20remove\x20from\x20%0',o(_0x1d0d96,function(_0x5bf528){return'ELEMENT_'+_0x5bf528['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4260fa))):o(_0x1d0d96,'*Outdent:*\x20%0',o(_0x1d0d96,'ELEMENT_LIST_ITEM')),_0x1108fd={'type':'format','content':_0x1c8cbd};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5cc81e['multipleBlocks']&&(_0x1c8cbd='*Merge:*\x20%0',_0x1108fd={'type':'deletion','content':o(_0x1d0d96,_0x1c8cbd,o(_0x1d0d96,'ELEMENT_LIST_ITEM'))});}return _0x1108fd;});}}function Te(_0x10008a){let _0x5a853a=_0x10008a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5a853a;){const _0x212a88=_0x5a853a['getAttribute']('listItemId');if(!_0x212a88)return!0x1;if(_0x212a88==_0x10008a['data']['newValue'])return'newValue';if(_0x212a88==_0x10008a['data']['oldValue'])return'oldValue';_0x5a853a=_0x5a853a['previousSibling'];}return!0x1;}class Se extends _0x5d6d85{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x37dfc6=this['editor']['config']['get']('list.properties'),_0x3e323f=this['editor']['plugins']['get']('TrackChangesEditing');_0x37dfc6['styles']&&(_0x3e323f['enableDefaultAttributesIntegration']('listStyle'),_0x3e323f['registerBlockAttribute']('listStyle')),_0x37dfc6['reversed']&&(_0x3e323f['enableDefaultAttributesIntegration']('listReversed'),_0x3e323f['registerBlockAttribute']('listReversed')),_0x37dfc6['startIndex']&&(_0x3e323f['enableDefaultAttributesIntegration']('listStart'),_0x3e323f['registerBlockAttribute']('listStart'));const _0xf5863a={'type':'format','content':''};_0x3e323f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3dcabb=this['editor']['locale'];_0x3e323f['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3dcabb,'FORMAT_LIST_REVERSED')),_0x3e323f['descriptionFactory']['registerDescriptionCallback'](_0x1f47e3=>{const {data:_0x55b056}=_0x1f47e3;if(_0x55b056&&'listReversed'==_0x55b056['key'])return null==_0x55b056['newValue']||0x0==_0x55b056['newValue']&&null==_0x55b056['oldValue']?_0xf5863a:void 0x0;}),_0x3e323f['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3dcabb,'FORMAT_LIST_START')),_0x3e323f['descriptionFactory']['registerDescriptionCallback'](_0x2ccee9=>{const {data:_0x1459a5}=_0x2ccee9;if(_0x1459a5&&'listStart'==_0x1459a5['key'])return null==_0x1459a5['newValue']||0x1==_0x1459a5['newValue']&&null==_0x1459a5['oldValue']?_0xf5863a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x7ce9a2=>{if(_0x7ce9a2['batch']['isUndo'])return!0x1;let _0xaa75a6=!0x1;const _0xf64ad2=_0x3e323f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55c585=>{const _0x1c7067=_0x3e323f['_getAttributeKey'](_0x55c585);return'listStart'==_0x1c7067||'listReversed'==_0x1c7067;});for(const _0x541948 of _0xf64ad2){const _0xe5ff83=_0x541948['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xe5ff83||'customNumbered'==_0xe5ff83)continue;_0x3e323f['_findSuggestions'](_0x541948['getFirstRange'](),'attribute')['find'](_0x26d68a=>'listType'==_0x3e323f['_getAttributeKey'](_0x26d68a['suggestion']))||(_0x7ce9a2['removeMarker'](_0x541948['getFirstMarker']()),_0xaa75a6=!0x0);}return _0xaa75a6;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xccc9a4){const _0x3378a9=this['editor']['locale'],{data:_0x5c70b5}=_0xccc9a4,_0x29401c={'type':'format','content':''};if(!_0x5c70b5||'listStyle'!=_0x5c70b5['key'])return;if(!_0x5c70b5['oldValue'])return'default'==_0x5c70b5['newValue']?_0x29401c:{'type':'format','content':''+o(_0x3378a9,'*Set\x20format:*\x20%0',o(_0x3378a9,this['_getTranslationKeyForListStyle'](_0x5c70b5['newValue'])))};if(!_0x5c70b5['newValue']){if('default'==_0x5c70b5['oldValue'])return _0x29401c;let _0x4661a8=_0xccc9a4['head'];for(;_0x4661a8;){if(_0x4661a8['data']&&'listType'==_0x4661a8['data']['key']&&_0x4661a8['data']['newValue'])return _0x29401c;_0x4661a8=_0x4661a8['next'];}return{'type':'format','content':''+o(_0x3378a9,'*Remove\x20format:*\x20%0',o(_0x3378a9,this['_getTranslationKeyForListStyle'](_0x5c70b5['oldValue'])))};}if('default'!=_0x5c70b5['newValue'])return{'type':'format','content':''+o(_0x3378a9,'*Set\x20format:*\x20%0',o(_0x3378a9,this['_getTranslationKeyForListStyle'](_0x5c70b5['newValue'])))};let _0x12b2fe=_0xccc9a4['head'];for(;_0x12b2fe;){if(_0x12b2fe['data']&&'listType'==_0x12b2fe['data']['key']&&_0x12b2fe['data']['newValue']&&_0x12b2fe['data']['oldValue'])return _0x29401c;_0x12b2fe=_0x12b2fe['next'];}return{'type':'format','content':o(_0x3378a9,'*Set\x20format:*\x20%0',o(_0x3378a9,'ELEMENT_'+_0xccc9a4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x50aa08=this['editor'],_0x532dc3=_0x50aa08['locale'];_0x50aa08['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa881ac=>{if('formatBlock'!=_0xa881ac['type'])return;const {data:_0x1011c9}=_0xa881ac;if(!_0x1011c9)return;let _0x453583,_0x18045e;switch(_0x1011c9['commandName']){case'listStyle':_0x453583='*Change\x20to:*\x20%0',_0x18045e={'type':'format','content':o(_0x532dc3,_0x453583,o(_0x532dc3,this['_getTranslationKeyForListStyle'](_0x1011c9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x453583=_0x1011c9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x18045e={'type':'format','content':o(_0x532dc3,_0x453583)};break;case'listStart':_0x453583='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x18045e={'type':'format','content':o(_0x532dc3,_0x453583,_0x1011c9['commandParams'][0x0]['startIndex'])};}return _0x18045e;});}['_getTranslationKeyForListStyle'](_0x1a7bcd){return'ELEMENT_'+function(_0x125689){if(_e['includes'](_0x125689))return'bulleted';if(Re['includes'](_0x125689))return'numbered';return null;}(_0x1a7bcd)['toUpperCase']()+'_LIST_'+_0x1a7bcd['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x5d6d85{static get['requires'](){return[_0x5b6bef];}['init'](){const _0x35083d=this['editor'],_0x333fae=_0x35083d['plugins']['get']('TrackChangesEditing'),_0x367a08=_0x35083d['commands']['get']('enter');_0x333fae['enableCommand']('enter',()=>{_0x35083d['model']['change'](_0x5e471a=>{const _0x2825dc=_0x35083d['model']['document']['selection'],_0x2a3227=_0x2825dc['getFirstPosition'](),_0x3704da=_0x1e09a5['fromRange'](_0x2825dc['getFirstRange']());if(_0x367a08['enterBlock'](_0x5e471a)){const _0x2af8dd=_0x35083d['model']['createPositionAt'](_0x2a3227['parent']['nextSibling'],0x0),_0x969424=_0x5e471a['createRange'](_0x2a3227,_0x2af8dd);_0x333fae['markInsertion'](_0x969424);}else _0x5e471a['setSelection'](_0x5e471a['createRange'](_0x3704da['end']));_0x3704da['detach'](),_0x367a08['fire']('afterExecute',{'writer':_0x5e471a});});}),_0x35083d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x35083d,'split'),{'priority':'high'}),_0x35083d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2364d7,_0x370331,_0x158ef3)=>{const _0x3acc1b=_0x158ef3['mapper']['markerNameToElements'](_0x370331['markerName']);if(_0x3acc1b){for(const _0x2fbf8e of _0x3acc1b)_0x2fbf8e['hasClass']('ck-suggestion-marker-split')&&(_0x158ef3['mapper']['unbindElementFromMarkerName'](_0x2fbf8e,_0x370331['markerName']),_0x158ef3['writer']['remove'](_0x2fbf8e));}},{'priority':'high'}),_0x35083d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4455d2,_0x2f3e6b,_0x13d422)=>{_0x13d422['options']['showSuggestionHighlights']&&De(_0x35083d,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4455d2,_0x2f3e6b,_0x13d422);},{'priority':'high'});}}class Y extends _0x5d6d85{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4aedbe=this['editor']['plugins']['get']('TrackChangesEditing');_0x4aedbe['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4aedbe['enableCommand']('findNext'),_0x4aedbe['enableCommand']('findPrevious'),_0x4aedbe['enableCommand']('replace'),_0x4aedbe['enableCommand']('replaceAll');}['handleFindCommand'](_0x1fae21,_0x346216,_0x139497={}){const _0x3ab697=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1fae21(_0x28a2f6=>{let _0x4e0a33=('string'==typeof _0x346216?_0x3ab697['findByTextCallback'](_0x346216,_0x139497):_0x346216)(_0x28a2f6);Array['isArray'](_0x4e0a33)&&(_0x4e0a33={'results':_0x4e0a33,'searchText':'string'==typeof _0x346216?_0x346216:''});const _0x4f0409=_0x4e0a33['results']['filter'](_0x392f62=>!0x1===this['_isInDeletionRange'](_0x392f62,_0x28a2f6['item']));return{..._0x4e0a33,'results':_0x4f0409};},_0x139497);}['_isInDeletionRange'](_0x32ca81,_0x4f1fa6){const _0x25caaa=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f1fa6,_0x32ca81['start']),this['editor']['model']['createPositionAt'](_0x4f1fa6,_0x32ca81['end']));for(const _0x1155b3 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x25caaa['getIntersection'](_0x1155b3['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x5d6d85{['afterInit'](){const _0x13ee77=this['editor']['locale'],_0x411246=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1e461c,commandName:_0x2e8720}of ro)this['editor']['plugins']['has'](_0x1e461c)&&(_0x411246['enableDefaultAttributesIntegration'](_0x2e8720),_0x411246['registerInlineAttribute'](_0x2e8720));_0x411246['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x13ee77,'FORMAT_FONT_SIZE')),_0x411246['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x13ee77,'FORMAT_FONT_FAMILY')),_0x411246['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x13ee77,'FORMAT_FONT_COLOR')),_0x411246['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x13ee77,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xeaf635=this['editor'],_0xbb616=_0xeaf635['locale'];_0xeaf635['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xee8bb1=>{const _0x4a26ff=_0xbb616['t'];if('formatInline'!=_0xee8bb1['type'])return;const {data:_0xd7c3f2}=_0xee8bb1;if(null!=_0xd7c3f2){if('fontSize'==_0xd7c3f2['commandName']){const _0x210de7=_0xd7c3f2['commandParams'][0x0]['value'];if(_0x210de7){const _0xb4933f=_0x4a26ff(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x837f85=>_0x837f85['model']==_0x210de7)['title'])['toLowerCase']();return{'type':'format','content':o(_0xbb616,'*Set\x20font\x20size:*\x20%0',_0xb4933f)};}return{'type':'format','content':o(_0xbb616,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xd7c3f2['commandName']){const _0x17fe67=_0xd7c3f2['commandParams'][0x0]['value'];return _0x17fe67?{'type':'format','content':o(_0xbb616,'*Set\x20font\x20family:*\x20%0',_0x17fe67)}:{'type':'format','content':o(_0xbb616,'*Reset\x20font\x20family*')};}if('fontColor'==_0xd7c3f2['commandName']){const _0x582a2f=_0xd7c3f2['commandParams'][0x0]['value'];if(_0x582a2f){const _0x47d163=_0x4db594(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4ebf19=>_0x4ebf19['model']==_0x582a2f);let _0x2746ca=_0x582a2f,_0x40a333='';return _0x47d163&&(_0x2746ca=_0x47d163['label'],_0x40a333=_0x4a26ff(_0x2746ca)['toLowerCase']()),{'type':'format','content':o(_0xbb616,'*Set\x20font\x20color:*\x20%0',_0x40a333)['trim'](),'color':{'value':_0x582a2f,'title':_0x40a333||_0x2746ca}};}return{'type':'format','content':o(_0xbb616,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xd7c3f2['commandName']){const _0x311496=_0xd7c3f2['commandParams'][0x0]['value'];if(_0x311496){const _0x43041b=_0x4db594(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1bd41a=>_0x1bd41a['model']==_0x311496);let _0x217ec2=_0x311496,_0x4f7fde='';return _0x43041b&&(_0x217ec2=_0x43041b['label'],_0x4f7fde=_0x4a26ff(_0x217ec2)['toLowerCase']()),{'type':'format','content':o(_0xbb616,'*Set\x20font\x20background\x20color:*\x20%0',_0x4f7fde)['trim'](),'color':{'value':_0x311496,'title':_0x4f7fde||_0x217ec2}};}return{'type':'format','content':o(_0xbb616,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x5d6d85{['afterInit'](){const _0x384ee4=this['editor'],_0x11a7cc=_0x384ee4['plugins']['get']('TrackChangesEditing'),_0x292441=_0x384ee4['commands']['get']('copyFormat'),_0xe7a0f8=_0x384ee4['commands']['get']('pasteFormat');_0x292441&&_0xe7a0f8&&(_0x11a7cc['enableDefaultAttributesIntegration']('pasteFormat'),_0x11a7cc['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5f1107=this['editor'],_0x489402=_0x5f1107['locale'];_0x5f1107['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5909d0=>{if('formatBlock'!=_0x5909d0['type']&&'formatInline'!=_0x5909d0['type'])return;const {data:_0x532b6a}=_0x5909d0;if(_0x532b6a&&'pasteFormat'===_0x532b6a['commandName']){const _0x3876d3=[],_0x1266fb=_0x532b6a['commandParams'][0x0];for(const [_0x359db5,_0x13730e]of Object['entries'](_0x1266fb))_0x3876d3['push'](so(_0x5f1107,_0x359db5,_0x13730e));return _0x3876d3['length']?{'type':'format','content':o(_0x489402,'*Set\x20format\x20to:*\x20%0',_0x3876d3['join'](',\x20'))}:{'type':'format','content':o(_0x489402,'*Remove\x20all\x20formatting*')};}});}}function so(_0x23030f,_0x465ac6,_0x12069c){const _0x16c0b5=_0x23030f['locale']['t'],_0x47b1c2=_0x465ac6['split'](/(?=[A-Z])/)['join']('\x20'),_0x3b4333=_0x16c0b5(_0x47b1c2['charAt'](0x0)['toUpperCase']()+_0x47b1c2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x12069c)return _0x3b4333;if('fontColor'===_0x465ac6||'fontBackgroundColor'===_0x465ac6){const _0x58ca76=_0x4db594(_0x23030f['config']['get']('fontColor.colors'))['find'](_0x5483c7=>_0x5483c7['model']==_0x12069c);return _0x3b4333+'\x20('+(_0x58ca76?_0x16c0b5(_0x58ca76['label'])['toLowerCase']():_0x12069c)+')';}if('fontSize'===_0x465ac6&&isNaN(parseFloat(_0x12069c))){const _0x427dc3=_0x23030f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x23030f['config']['get']('fontSize.options'))['find'](_0xc4c0dd=>_0xc4c0dd['model']==_0x12069c);return _0x3b4333+'\x20('+(_0x427dc3?_0x16c0b5(_0x427dc3['title'])['toLowerCase']():_0x12069c)+')';}return _0x3b4333+'\x20('+_0x12069c+')';}class nt extends _0x5d6d85{['_headingOptions'];['afterInit'](){const _0x248a92=this['editor'];if(!_0x248a92['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x248a92['config']['get']('heading.options');const _0x37a952=_0x248a92['locale'],_0x535dbe=_0x248a92['plugins']['get']('TrackChangesEditing');_0x535dbe['enableDefaultAttributesIntegration']('heading');for(const _0x2e022d of this['_headingOptions'])'paragraph'!=_0x2e022d['model']&&_0x535dbe['descriptionFactory']['registerElementLabel'](_0x2e022d['model'],_0x3da538=>{const _0x18111a=this['_getHeadingLevel'](_0x2e022d['model']);return null!==_0x18111a?_0x4a7992(_0x3da538,_0x18111a):_0x1c2c37(_0x3da538,_0x2e022d['title']);});function _0x4a7992(_0x153432,_0x2ec64e){return o(_0x37a952,'ELEMENT_HEADING',[_0x153432,_0x2ec64e]);}function _0x1c2c37(_0x414411,_0x488e0e){return o(_0x37a952,'ELEMENT_HEADING_CUSTOM',[_0x414411,_0x488e0e]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2687fa=this['editor'],_0x141cb9=_0x2687fa['locale'];function _0x4daa09(_0x426d19,_0x6078c){return o(_0x141cb9,'ELEMENT_HEADING_CUSTOM',[_0x426d19,_0x6078c]);}_0x2687fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41c7df=>{if('formatBlock'!=_0x41c7df['type'])return;const {data:_0x3be1a7}=_0x41c7df;if(_0x3be1a7&&'heading'==_0x3be1a7['commandName']){const _0x169070=_0x3be1a7['commandParams'][0x0]['value'],_0x3e1dd0=this['_getHeadingLevel'](_0x169070);if(null!==_0x3e1dd0)return{'type':'format','content':o(_0x141cb9,'*Change\x20to:*\x20%0',(_0x29fa3b=0x1,_0xb9c84c=_0x3e1dd0,o(_0x141cb9,'ELEMENT_HEADING',[_0x29fa3b,_0xb9c84c])))};const _0x268f3b=this['_headingOptions']['find'](_0xdf81fe=>_0xdf81fe['model']===_0x169070)['title'];return{'type':'format','content':o(_0x141cb9,'*Change\x20to:*\x20%0',_0x4daa09(0x1,_0x268f3b))};}var _0x29fa3b,_0xb9c84c;});}['_getHeadingLevel'](_0x51bfbf){const _0x2dd5b2=_0x51bfbf['match'](/^heading(\d+)/);if(_0x2dd5b2)return _0x2dd5b2[0x1];const _0x1e8cbc=this['_headingOptions']?.['find'](_0x1624fc=>_0x1624fc['model']==_0x51bfbf);if(_0x1e8cbc&&_0x1e8cbc['view']){const _0x490b31=_0x1e8cbc['view'],_0x7e8829=(_0x490b31['name']??_0x490b31)['match'](/^h(\d+)/);if(_0x7e8829)return _0x7e8829[0x1];}return null;}}class it extends _0x5d6d85{['afterInit'](){const _0x3418b6=this['editor'];if(!_0x3418b6['plugins']['has']('HighlightEditing'))return;const _0x238eed=_0x3418b6['plugins']['get']('TrackChangesEditing'),_0x3a8fe0=_0x3418b6['locale'];_0x238eed['enableDefaultAttributesIntegration']('highlight'),_0x238eed['registerInlineAttribute']('highlight'),_0x238eed['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3a8fe0,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fa385=this['editor'],_0x86a437=_0x3fa385['locale'];_0x3fa385['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x263430=>{if('formatInline'!=_0x263430['type'])return;const {data:_0x391cfc}=_0x263430;if(_0x391cfc&&'highlight'==_0x391cfc['commandName']){const _0x5b7233=_0x86a437['t'],_0x8da83c=_0x391cfc['commandParams'][0x0]['value'];if(_0x8da83c){const _0x563885=_0x3fa385['config']['get']('highlight.options')['find'](_0x50456d=>_0x50456d['model']==_0x8da83c),_0x29db79=_0x5b7233(_0x563885['title'])['toLowerCase']();return{'type':'format','content':o(_0x86a437,'*Set\x20highlight:*\x20%0',_0x29db79),'color':{'value':_0x563885['color'],'title':_0x563885['title']}};}return{'type':'format','content':o(_0x86a437,'*Remove\x20highlight*',o(_0x86a437,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x5d6d85{['afterInit'](){const _0x11a1fe=this['editor'];if(!_0x11a1fe['plugins']['has']('HorizontalLineEditing'))return;_0x11a1fe['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x55a8e1=_0x11a1fe['plugins']['get']('TrackChangesEditing'),_0x316a46=_0x11a1fe['locale'];_0x55a8e1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x526e7b=>o(_0x316a46,'ELEMENT_HORIZONTAL_LINE',_0x526e7b)),_0x11a1fe['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x21ea6c,{writer:_0x5dfec9,options:_0x45304d})=>{if(!_0x45304d['showSuggestionHighlights'])return null;const _0x1385c2=_0x5dfec9['createContainerElement']('div'),_0x5c7241=_0x5dfec9['createEmptyElement']('hr');return _0x5dfec9['addClass']('ck-horizontal-line',_0x1385c2),_0x5dfec9['insert'](_0x5dfec9['createPositionAt'](_0x1385c2,0x0),_0x5c7241),_0x1385c2;},'converterPriority':'high'});}}class st extends _0x5d6d85{['afterInit'](){const _0x3d108d=this['editor'];if(!_0x3d108d['plugins']['has']('HtmlEmbed'))return;const _0x415a18=_0x3d108d['plugins']['get']('TrackChangesEditing'),_0x5305c9=_0x3d108d['locale'];_0x415a18['descriptionFactory']['registerElementLabel']('rawHtml',_0x5b82dc=>o(_0x5305c9,'ELEMENT_HTML_EMBED',_0x5b82dc)),_0x415a18['enableDefaultAttributesIntegration']('htmlEmbed'),_0x415a18['registerBlockAttribute']('value'),_0x415a18['descriptionFactory']['registerDescriptionCallback'](_0x3068b9=>{if('attribute'!=_0x3068b9['type'])return;const {data:_0x49bb87}=_0x3068b9;if(_0x49bb87&&'value'==_0x49bb87['key']&&_0x3068b9['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x321e7a=o(_0x5305c9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5305c9,'*Change\x20%0\x20content*',_0x321e7a)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2383c9=this['editor'],_0x5cd3f9=_0x2383c9['locale'];_0x2383c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x377f0e=>{if('formatBlock'!=_0x377f0e['type'])return;const {data:_0x21cdc0}=_0x377f0e;if(_0x21cdc0&&'htmlEmbed'==_0x21cdc0['commandName']){const _0x3feb04=o(_0x5cd3f9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5cd3f9,'*Change\x20%0\x20content*',_0x3feb04)};}});}}class ot extends _0x5d6d85{['afterInit'](){const _0x4e053f=this['editor'];if(!_0x4e053f['plugins']['has']('ImageEditing'))return;const _0x2d10d3=_0x4e053f['plugins']['get']('TrackChangesEditing'),_0x2821ee=_0x4e053f['plugins']['get']('ImageUtils'),_0x4101e1=_0x4e053f['locale'];_0x2d10d3['enableCommand']('insertImage'),_0x2d10d3['descriptionFactory']['registerElementLabel']('imageBlock',_0x24fd29=>o(_0x4101e1,'ELEMENT_IMAGE',_0x24fd29)),_0x2d10d3['descriptionFactory']['registerElementLabel']('imageInline',_0x5148bb=>o(_0x4101e1,'ELEMENT_INLINE_IMAGE',_0x5148bb)),_0x2d10d3['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4101e1,'ELEMENT_CAPTION')),_0x4e053f['plugins']['has']('ImageUploadEditing')&&_0x2d10d3['enableCommand']('uploadImage'),_0x4e053f['plugins']['has']('ImageBlockEditing')&&_0x4e053f['plugins']['has']('ImageInlineEditing')&&(_0x2d10d3['enableCommand']('imageTypeInline',(_0x3526b9,_0x38c641)=>{const _0x2a24d1=_0x2821ee['getClosestSelectedImageElement'](_0x4e053f['model']['document']['selection']);_0x4e053f['model']['change'](()=>{_0x2d10d3['markBlockFormat'](_0x2a24d1,{'commandName':'imageTypeInline','commandParams':[_0x38c641]},[],'convertBlockImageToInline');});}),_0x2d10d3['enableCommand']('imageTypeBlock',(_0x3177f3,_0x4e1d8f)=>{_0x4e053f['model']['change'](_0x3bf752=>{let _0x2e77c0=_0x2821ee['getClosestSelectedImageElement'](_0x4e053f['model']['document']['selection']),_0xfc2987=_0x3bf752['createRangeOn'](_0x2e77c0);const _0x115cc9=_0x3d1475['fromPosition'](_0xfc2987['start'],'toPrevious'),_0x2ff129=_0x3d1475['fromPosition'](_0xfc2987['end'],'toNext');_0x2d10d3['forceDefaultExecution'](()=>_0x3177f3(_0x4e1d8f)),_0x2e77c0=_0x2821ee['getClosestSelectedImageElement'](_0x4e053f['model']['document']['selection']),_0xfc2987=_0x3bf752['createRangeOn'](_0x2e77c0);const _0xc72cb3=_0x3bf752['createRange'](_0x115cc9,_0x2ff129);_0x115cc9['detach'](),_0x2ff129['detach'](),_0x2d10d3['markBlockFormat'](_0x2e77c0,{'commandName':'imageTypeInline','commandParams':[_0x4e1d8f]},[],'convertInlineImageToBlock'),_0xc72cb3['start']['isBefore'](_0xfc2987['start'])&&_0x2d10d3['markInsertion'](_0x3bf752['createRange'](_0xc72cb3['start'],_0xfc2987['start']),'convertInlineImageToBlock'),_0xfc2987['end']['isBefore'](_0xc72cb3['end'])&&_0x2d10d3['markInsertion'](_0x3bf752['createRange'](_0xfc2987['end'],_0xc72cb3['end']),'convertInlineImageToBlock');});}),_0x2d10d3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2d10d3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2d10d3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2d10d3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2d10d3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2d10d3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3eae1c])=>{const _0x4166d1=_0x2d10d3['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x516d42=_0x3eae1c['start'],_0x4eb726=_0x3eae1c['end'];const _0xdd5f5c=_0x4e053f['model']['schema']['getNearestSelectionRange'](_0x516d42,'backward'),_0x3213d8=_0x4e053f['model']['schema']['getNearestSelectionRange'](_0x4eb726,'forward');_0xdd5f5c['isCollapsed']&&(_0x516d42=_0xdd5f5c['start']),_0x3213d8['isCollapsed']&&(_0x4eb726=_0x3213d8['end']),_0x4166d1([_0x4e053f['model']['createRange'](_0x516d42,_0x4eb726)]);}),_0x2d10d3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2fb4fe),_0x2d10d3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2fb4fe)),_0x4e053f['plugins']['has']('ImageCaptionEditing')&&(_0x2d10d3['enableCommand']('toggleImageCaption',(_0x536a30,_0x452368)=>{const _0x5d1873=_0x4e053f['plugins']['get']('ImageCaptionUtils');let _0x2bb433=_0x2821ee['getClosestSelectedImageElement'](_0x4e053f['model']['document']['selection']),_0x1d7f83=_0x5d1873['getCaptionFromImageModelElement'](_0x2bb433);_0x4e053f['model']['change'](()=>{if(_0x1d7f83)return void _0x2d10d3['markDeletion'](_0x4e053f['model']['createRangeOn'](_0x1d7f83));const _0xec934c=_0x2821ee['isBlockImage'](_0x2bb433);_0x536a30(_0x452368),_0x2bb433=_0x2821ee['getClosestSelectedImageElement'](_0x4e053f['model']['document']['selection']),_0x1d7f83=_0x5d1873['getCaptionFromImageModelElement'](_0x2bb433),_0x2d10d3['markInsertion'](_0x4e053f['model']['createRangeOn'](_0x1d7f83),_0xec934c?null:'imageCaption');});}),_0x2d10d3['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2fb4fe));const _0x1bb4ed=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1ba751(_0x18ec96,_0x46ecfd){const _0x4653a7=_0x1bb4ed['findIndex'](({type:_0x2dd7fe,subType:_0x4dcbe3})=>_0x18ec96['type']==_0x2dd7fe&&_0x18ec96['subType']==_0x4dcbe3),_0x55623b=_0x1bb4ed['findIndex'](({type:_0x2dab15,subType:_0x22d3df})=>_0x46ecfd['type']==_0x2dab15&&_0x46ecfd['subType']==_0x22d3df);if(_0x4653a7<0x0||_0x55623b<0x0)return!0x1;const _0x5911cf=_0x18ec96['getFirstRange'](),_0x3ca697=_0x46ecfd['getFirstRange']();if((0x0==_0x4653a7||0x1==_0x4653a7)&&0x2==_0x55623b&&_0x5911cf['isIntersecting'](_0x3ca697))return!0x0;if(0x2==_0x4653a7&&0x3==_0x55623b){const _0x15e69f=_0x2d10d3['_findSuggestions'](_0x5911cf,'insertion')['filter'](({suggestion:_0x4f7cac,meta:_0x5bbf6c})=>_0x5bbf6c['isOwn']&&'convertInlineImageToBlock'==_0x4f7cac['subType']);if(_0x15e69f['length']>0x1&&_0x3ca697['end']['isEqual'](_0x5911cf['start']))return!0x0;if(0x1==_0x15e69f['length']&&(_0x5911cf['start']['isEqual'](_0x3ca697['end'])||_0x5911cf['end']['isEqual'](_0x3ca697['start'])))return!0x0;}if(0x3==_0x4653a7&&0x3==_0x55623b&&_0x5911cf['start']['isBefore'](_0x3ca697['start'])){const _0x4032a8=_0x5911cf['end']['nodeAfter'],_0x147e26=_0x3ca697['start']['nodeBefore'];return _0x2821ee['isBlockImage'](_0x4032a8)&&_0x4032a8===_0x147e26;}return!0x1;}function _0x2fb4fe(_0x595daa,_0x5bf195){return _0x1ba751(_0x595daa,_0x5bf195)?[_0x595daa,_0x5bf195]:_0x1ba751(_0x5bf195,_0x595daa)?[_0x5bf195,_0x595daa]:null;}_0x4e053f['plugins']['has']('ImageResize')&&(_0x2d10d3['enableDefaultAttributesIntegration']('resizeImage'),_0x2d10d3['registerBlockAttribute']('resizedWidth'),_0x2d10d3['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4101e1,'FORMAT_IMAGE_SIZE'))),_0x4e053f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2d10d3['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2d10d3['registerBlockAttribute']('alt')),_0x4e053f['plugins']['has']('PictureEditing')&&(_0x2d10d3['registerBlockAttribute']('sources'),_0x2d10d3['descriptionFactory']['registerDescriptionCallback'](_0x38db73=>{if('attribute'!=_0x38db73['type'])return;const {data:_0x33977d}=_0x38db73;return _0x33977d&&'sources'==_0x33977d['key']?{'type':'format','content':''}:void 0x0;})),_0x4e053f['plugins']['has']('ImageSizeAttributes')&&(_0x2d10d3['registerBlockAttribute']('width'),_0x2d10d3['registerBlockAttribute']('height'),_0x2d10d3['descriptionFactory']['registerDescriptionCallback'](_0x3b3de6=>{if('attribute'!=_0x3b3de6['type'])return;const {data:_0x589565}=_0x3b3de6;return!_0x589565||'width'!=_0x589565['key']&&'height'!=_0x589565['key']?void 0x0:{'type':'format','content':''};})),_0x2d10d3['descriptionFactory']['registerDescriptionCallback'](_0x45cc7d=>{if(!!_0x1bb4ed['find'](({type:_0x35fbd3,subType:_0xe0db97})=>_0x45cc7d['type']==_0x35fbd3&&_0x45cc7d['subType']==_0xe0db97))return _0x45cc7d['previous']?{}:void 0x0;}),_0x2d10d3['descriptionFactory']['registerDescriptionCallback'](_0x4d9fbc=>{if('insertion'==_0x4d9fbc['type']||'deletion'==_0x4d9fbc['type']){const _0x52d57c=_0x4d9fbc['getContainedElement']();if(_0x52d57c&&_0x52d57c['is']('element','caption'))return{'type':'insertion'==_0x4d9fbc['type']?'addObject':'removeObject','element':_0x52d57c,'quantity':0x1};}}),_0x2d10d3['descriptionFactory']['registerDescriptionCallback'](_0x173fb8=>'formatBlock'==_0x173fb8['type']&&'convertInlineImageToBlock'==_0x173fb8['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x173fb8['type']&&'convertBlockImageToInline'==_0x173fb8['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2d10d3['descriptionFactory']['registerDescriptionCallback'](_0xe08bec=>{if('attribute'!=_0xe08bec['type'])return;const {data:_0x31ea3b}=_0xe08bec;if(!_0x31ea3b||'alt'!=_0x31ea3b['key'])return;const _0x43d3ee=_0x31ea3b['newValue'];return _0x43d3ee?{'type':'format','content':o(_0x4101e1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x43d3ee+'\x22')}:{'type':'format','content':o(_0x4101e1,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x596e56=this['editor'],_0x31e1c0=_0x596e56['locale'];_0x596e56['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b55e8=>{if('formatBlock'!=_0x1b55e8['type']&&'formatInline'!=_0x1b55e8['type'])return;const {data:_0x497738}=_0x1b55e8;if(_0x497738){if('imageTextAlternative'==_0x497738['commandName']){const _0x4883b0=_0x497738['commandParams'][0x0]['newValue'];return _0x4883b0?{'type':'format','content':o(_0x31e1c0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4883b0+'\x22')}:{'type':'format','content':o(_0x31e1c0,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x497738['commandName']){const _0x25798a=_0x497738['commandParams'][0x0]['width'];return _0x25798a?{'type':'format','content':o(_0x31e1c0,'*Set\x20image\x20width:*\x20%0',_0x25798a)}:{'type':'format','content':o(_0x31e1c0,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x5d6d85{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x9d0c29=this['editor']['locale'],_0x4916bf=this['editor']['plugins']['get']('TrackChangesEditing');_0x4916bf['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4916bf['registerBlockAttribute']('src'),_0x4916bf['descriptionFactory']['registerDescriptionCallback'](_0x128884=>{if('attribute'!=_0x128884['type'])return;const {data:_0x2a9943}=_0x128884;return _0x2a9943&&'src'==_0x2a9943['key']?_0x2a9943['newValue']&&_0x2a9943['oldValue']?{'type':'format','content':o(_0x9d0c29,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x277a69=this['editor']['plugins']['get']('TrackChangesEditing');_0x277a69['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x277a69['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x277a69['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x277a69['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ba820=this['editor'],_0x2cb532=_0x4ba820['locale'];_0x4ba820['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x533145=>{if('formatBlock'!=_0x533145['type']&&'formatInline'!=_0x533145['type'])return;const {data:_0x4eb7e8}=_0x533145;if(!_0x4eb7e8||'replaceImageSource'!=_0x4eb7e8['commandName'])return;return{'type':'format','content':o(_0x2cb532,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x5d6d85{['afterInit'](){const _0x4b0574=this['editor'];if(!_0x4b0574['plugins']['has']('ImageStyleEditing'))return;const _0x47bf6c=_0x4b0574['plugins']['get']('TrackChangesEditing'),_0x4e0785=_0x4b0574['plugins']['get']('ImageUtils'),_0x51031c={};_0x47bf6c['enableCommand']('imageStyle',(_0x1fc9ee,_0x47b5e0)=>{const _0x527252=_0x4b0574['plugins']['get']('Users')['me'],_0x33f4d8=_0x4b0574['commands']['get']('imageStyle');let _0x312260=_0x4e0785['getClosestSelectedImageElement'](_0x4b0574['model']['document']['selection']),_0x3b58e5=_0x4b0574['model']['createRangeOn'](_0x312260),_0x374166=_0x33f4d8['value'];if(_0x374166==_0x47b5e0['value'])return;const _0x2133b7={'commandName':'imageStyle','commandParams':[_0x47b5e0],'formatGroupId':_0x39ba3e()};_0x4b0574['model']['change'](()=>{if(_0x47bf6c['getSuggestions']()['filter'](_0x578233=>_0x578233['isInContent']&&_0x527252==_0x578233['author']&&('formatBlock'==_0x578233['type']||'formatInline'==_0x578233['type'])&&('imageStylePreApply'==_0x578233['subType']||'imageStylePostApply'==_0x578233['subType'])&&_0x578233['getFirstRange']()['isEqual'](_0x3b58e5))['forEach'](_0x45834c=>_0x47bf6c['discardSuggestion'](_0x45834c['head'])),_0x312260=_0x4e0785['getClosestSelectedImageElement'](_0x4b0574['model']['document']['selection']),_0x3b58e5=_0x4b0574['model']['createRangeOn'](_0x312260),_0x33f4d8['refresh'](),_0x4b0574['commands']['get']('imageTypeInline')['refresh'](),_0x4b0574['commands']['get']('imageTypeBlock')['refresh'](),_0x374166=_0x33f4d8['value'],_0x374166!=_0x47b5e0['value'])return _0x4e0785['isInlineImage'](_0x312260)&&_0x33f4d8['shouldConvertImageType'](_0x47b5e0['value'],_0x312260)?(_0x1fc9ee({..._0x47b5e0,'setImageSizes':!0x1}),_0x312260=_0x4e0785['getClosestSelectedImageElement'](_0x4b0574['model']['document']['selection']),void _0x47bf6c['markBlockFormat'](_0x312260,{..._0x2133b7,'commandReversedParams':[{'value':_0x374166||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4e0785['isBlockImage'](_0x312260)?_0x47bf6c['markBlockFormat'](_0x312260,_0x2133b7,[],'imageStylePostApply'):_0x47bf6c['markInlineFormat'](_0x3b58e5,_0x2133b7,'imageStylePostApply'));});});for(const _0x5aa8c8 of _0x4b0574['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x51031c[_0x5aa8c8['name']]=_0x5aa8c8['title']['toLowerCase']();_0x47bf6c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x47bf6c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x47bf6c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x47bf6c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1493e9])=>{_0x4e0785['setImageNaturalSizeAttributes'](_0x1493e9['getContainedElement']());}),_0x47bf6c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x31fc88,_0x325a11)=>{_0x47bf6c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x31fc88,{'commandName':_0x325a11['commandName'],'commandParams':_0x325a11['commandReversedParams']});}),_0x47bf6c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5e4af6,_0x25f3c6){if(_0x5b161b(_0x5e4af6,_0x25f3c6))return[_0x5e4af6,_0x25f3c6];if(_0x5b161b(_0x25f3c6,_0x5e4af6))return[_0x25f3c6,_0x5e4af6];return null;});const _0x16bea1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5b161b(_0x3bdff2,_0x536971){const _0x2efeea=_0x16bea1['findIndex'](({type:_0x1d5da2,subType:_0x39b0f8})=>_0x3bdff2['type']==_0x1d5da2&&_0x3bdff2['subType']==_0x39b0f8),_0x5886fc=_0x16bea1['findIndex'](({type:_0x3a818c,subType:_0x5ce109})=>_0x536971['type']==_0x3a818c&&_0x536971['subType']==_0x5ce109);if(_0x2efeea<0x0||_0x5886fc<0x0)return!0x1;const _0x1356d0=_0x3bdff2['getFirstRange'](),_0x2e449b=_0x536971['getFirstRange']();if((0x0==_0x2efeea||0x1==_0x2efeea)&&0x2==_0x5886fc&&_0x1356d0['isIntersecting'](_0x2e449b))return!0x0;if(0x2==_0x2efeea&&0x3==_0x5886fc){const _0x82a67a=_0x47bf6c['_findSuggestions'](_0x1356d0,'insertion')['filter'](({suggestion:_0x35e6ca,meta:_0x4aecf9})=>_0x4aecf9['isOwn']&&'convertInlineImageToBlock'==_0x35e6ca['subType']);if(_0x82a67a['length']>0x1&&_0x2e449b['end']['isEqual'](_0x1356d0['start']))return!0x0;if(0x1==_0x82a67a['length']&&(_0x1356d0['start']['isEqual'](_0x2e449b['end'])||_0x1356d0['end']['isEqual'](_0x2e449b['start'])))return!0x0;}if(0x3==_0x2efeea&&0x3==_0x5886fc&&_0x1356d0['start']['isBefore'](_0x2e449b['start'])){const _0x55bde9=_0x1356d0['end']['nodeAfter'],_0x479e99=_0x2e449b['start']['nodeBefore'];return _0x4e0785['isBlockImage'](_0x55bde9)&&_0x55bde9===_0x479e99;}return!0x1;}_0x4b0574['model']['document']['registerPostFixer'](()=>{let _0x3fdafe=!0x1;const _0x46edbd=Array['from'](_0x4b0574['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25ab3a,data:_0xf92f9e}of _0x46edbd){const {group:_0x42b413,type:_0x482b76,subType:_0x3ce96c,id:_0x2897b3}=_0x47bf6c['_splitMarkerName'](_0x25ab3a);if('suggestion'==_0x42b413&&_0x47bf6c['hasSuggestion'](_0x2897b3)){if('formatBlock'==_0x482b76&&('imageStylePreApply'==_0x3ce96c||'imageStylePostApply'==_0x3ce96c)){const _0x1bd664=_0x47bf6c['getSuggestion'](_0x2897b3);if(_0xf92f9e['newRange']){const _0x9215c5=_0x1bd664['getFirstRange']()['getContainedElement']();if(_0x4e0785['isBlockImage'](_0x9215c5))continue;_0x47bf6c['discardSuggestion'](_0x1bd664),_0x3fdafe=!0x0;}}if('insertion'==_0x482b76&&'imageCaption'==_0x3ce96c&&!_0xf92f9e['newRange']){const _0xa24bc2=_0x47bf6c['getSuggestion'](_0x2897b3);_0xa24bc2['next']&&_0xa24bc2['next']['isInContent']&&(_0x47bf6c['discardSuggestion'](_0xa24bc2['next']),_0x3fdafe=!0x0);}}}return _0x3fdafe;}),this['_registerLegacyDescription'](_0x51031c);}['_registerLegacyDescription'](_0xf4ed9e){const _0x241d1d=this['editor'],_0x4e7f3c=_0x241d1d['locale'];_0x241d1d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c0de1=>{if('formatBlock'!=_0x1c0de1['type']&&'formatInline'!=_0x1c0de1['type'])return;const {data:_0x54319c}=_0x1c0de1;if(!_0x54319c||'imageStyle'!=_0x54319c['commandName'])return;const _0x2dd079=_0x54319c['commandParams'][0x0]['value'];return _0x5dec49('side'===_0x2dd079?o(_0x4e7f3c,'FORMAT_SIDE_IMAGE'):_0xf4ed9e[_0x2dd079]||_0x2dd079);function _0x5dec49(_0x44a3f7){return{'type':'format','content':o(_0x4e7f3c,'*Format:*\x20%0',_0x44a3f7)};}});}}class ct extends _0x5d6d85{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x151b97){super(_0x151b97),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x315c81=this['editor'],_0x5779c6=_0x315c81['commands']['get']('importWord'),_0x2fd9ac=_0x315c81['commands']['get']('trackChanges');_0x5779c6&&(_0x5779c6['on']('execute',(_0x1f0224,[,_0x37bbc2])=>{this['_trackChangesValueDuringImport']=_0x2fd9ac['value'],_0x37bbc2['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5779c6,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5779c6,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2fd9ac['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x315c81['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3d135e,_0x10baf6){const {suggestions:_0x5f4117}=_0x10baf6,_0x507224=this['editor']['commands']['get']('trackChanges'),_0x516df0=_0x507224['value'];this['_trackChangesValueDuringImport']!==_0x516df0&&(_0x507224['execute'](),this['_trackChangesExecuted']=!0x0),_0x5f4117&&_0x5f4117['forEach'](({id:_0x5c05cd,type:_0xc00ed,author:_0x590a2b,created_at:_0x55f653})=>{const _0x510500={'id':_0x5c05cd,'type':_0xc00ed,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x590a2b,'createdAt':_0x55f653?new Date(_0x55f653):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x510500);});}}class ut extends _0x5d6d85{['afterInit'](){const _0x403c7c=this['editor'],_0x1e2d54=_0x403c7c['plugins']['get']('TrackChangesEditing');if(_0x403c7c['plugins']['has']('IndentEditing')&&(_0x1e2d54['enableCommand']('indent'),_0x1e2d54['enableCommand']('outdent')),_0x403c7c['plugins']['has']('IndentBlock')){for(const _0x446d27 of['indentBlock','outdentBlock'])_0x1e2d54['enableDefaultAttributesIntegration'](_0x446d27);}const _0x3ce195=_0x403c7c['locale'];_0x1e2d54['registerBlockAttribute']('blockIndent'),_0x1e2d54['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3ce195,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f419a=this['editor'],_0x7fee82=_0x1f419a['locale'],_0x27fd41=_0x1f419a['plugins']['get']('TrackChangesEditing');_0x27fd41['descriptionFactory']['registerDescriptionCallback'](_0xf7a3c=>{if('formatBlock'!=_0xf7a3c['type'])return;const {data:_0x16785b}=_0xf7a3c;if(!_0x16785b)return;if('indentBlock'!=_0x16785b['commandName']&&'outdentBlock'!=_0x16785b['commandName'])return;const _0x3434cf=_0xf7a3c['getItems']()[0x0],_0x4524e3=_0x27fd41['descriptionFactory']['getItemLabel'](_0x3434cf);return'indentBlock'==_0x16785b['commandName']?{'type':'format','content':o(_0x7fee82,'*Indent:*\x20%0',_0x4524e3)}:'outdentBlock'==_0x16785b['commandName']?{'type':'format','content':o(_0x7fee82,'*Outdent:*\x20%0',_0x4524e3)}:void 0x0;});}}class ft extends _0x5d6d85{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x5d6d85{['afterInit'](){const _0x56c6ac=this['editor'];if(!_0x56c6ac['plugins']['has']('LinkEditing'))return;const _0x5be110=_0x56c6ac['plugins']['get']('TrackChangesEditing'),_0x3943c7=_0x56c6ac['commands']['get']('link');_0x5be110['enableDefaultAttributesIntegration']('link'),_0x5be110['enableDefaultAttributesIntegration']('unlink'),_0x5be110['registerInlineAttribute']('linkHref');for(const _0x57fe15 of _0x3943c7['manualDecorators'])_0x5be110['registerInlineAttribute'](_0x57fe15['id']),_0x5be110['descriptionFactory']['registerAttributeLabel'](_0x57fe15['id'],'link\x20('+_0x57fe15['label']['toLowerCase']()+')');_0x5be110['descriptionFactory']['registerDescriptionCallback'](_0x34d868=>{if('attribute'!=_0x34d868['type'])return;const {data:_0xb8a49a}=_0x34d868;if(!_0xb8a49a||'linkHref'!=_0xb8a49a['key'])return;const _0x3a534d=_0xb8a49a['newValue'],_0xc58a0b=_0x56c6ac['locale'];return{'type':'format','content':null==_0x3a534d?o(_0xc58a0b,'*Remove\x20link*'):o(_0xc58a0b,'*Set\x20link:*\x20%0','\x22'+_0x3a534d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58f4be=this['editor'],_0x1c11ad=_0x58f4be['locale'];_0x58f4be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cdc02=>{if('formatInline'!=_0x2cdc02['type'])return;const {data:_0x4f0b3f}=_0x2cdc02;if(_0x4f0b3f){if('link'==_0x4f0b3f['commandName']){const _0x540ea7=_0x4f0b3f['commandParams'][0x0];return{'type':'format','content':o(_0x1c11ad,'*Set\x20link:*\x20%0','\x22'+_0x540ea7+'\x22')};}return'unlink'==_0x4f0b3f['commandName']?{'type':'format','content':o(_0x1c11ad,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x5d6d85{['afterInit'](){const _0xae85e1=this['editor'],_0x1be4b5=_0xae85e1['locale'];if(!_0xae85e1['plugins']['has']('LegacyListEditing'))return;const _0x51453b=_0xae85e1['plugins']['get']('TrackChangesEditing'),_0xebbf71=_0xae85e1['plugins']['has']('LegacyTodoListEditing');function _0xe770c9(_0x12c159){return()=>{const _0x581614=_0xae85e1['model']['document']['selection'],_0x28444c=_0xae85e1['commands']['get'](_0x12c159);if(_0x28444c['value'])return void _0xae85e1['execute']('paragraph',{});const _0x2f88b1=_0x12c159['slice'](0x0,-0x4),_0x4b22ae=function(_0x423e99,_0xbec988,_0x2e2b89){let _0x34905e=Array['from'](_0x423e99)['filter'](_0x49a603=>function(_0x29d144,_0x14b6a5){return _0x14b6a5['checkChild'](_0x29d144['parent'],'listItem')&&!_0x14b6a5['isObject'](_0x29d144);}(_0x49a603,_0x2e2b89));_0x34905e=_0x34905e['filter'](_0x29dd1a=>!_0x29dd1a['is']('element','listItem')||_0x29dd1a['getAttribute']('listType')!=_0xbec988);const _0x190369=new Set();for(const _0x1060e7 of _0x34905e)_0x1060e7['is']('element','listItem')?_0x190369['add'](Le(_0x1060e7)):_0x190369['add'](_0x1060e7);return Array['from'](_0x190369);}(_0x581614['getSelectedBlocks'](),_0x2f88b1,_0xae85e1['model']['schema']);_0xae85e1['model']['change'](()=>{for(const _0x4ff25a of _0x4b22ae)_0x51453b['markBlockFormat'](_0x4ff25a,{'commandName':_0x12c159,'commandParams':[{'forceValue':!_0x28444c['value']}],'formatGroupId':'blockName'},Ee(_0x4ff25a));});};}function _0x992571(_0x199f5e){return()=>{const _0x306ae1=function(_0x5be14b){let _0x16284d=Array['from'](_0x5be14b);const _0x4ad2fa=_0x16284d['findIndex'](_0x47b165=>'listItem'!=_0x47b165['name']);return _0x4ad2fa>-0x1&&(_0x16284d=_0x16284d['slice'](0x0,_0x4ad2fa)),_0x16284d;}(_0xae85e1['model']['document']['selection']['getSelectedBlocks']()),_0x13dadc=_0xae85e1['model']['createRange'](_0xae85e1['model']['createPositionAt'](_0x306ae1[0x0],'before'),_0xae85e1['model']['createPositionAt'](_0x306ae1[_0x306ae1['length']-0x1],'end'));_0xae85e1['model']['change'](()=>{_0x51453b['markBlockFormat'](_0x13dadc,{'commandName':_0x199f5e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x275cd4){const _0xa600f7=new Set();for(const _0x3691ba of _0x275cd4){let _0x3823ee=_0x3691ba['nextSibling'];for(;_0x3823ee&&_0x3823ee['getAttribute']('listIndent')>_0x3691ba['getAttribute']('listIndent');)_0xa600f7['add'](_0x3823ee),_0x3823ee=_0x3823ee['nextSibling'];}return Array['from'](_0xa600f7);}(_0x306ae1));});};}_0x51453b['enableCommand']('numberedList',_0xe770c9('numberedList')),_0x51453b['enableCommand']('bulletedList',_0xe770c9('bulletedList')),_0xebbf71&&_0x51453b['enableCommand']('todoList',_0xe770c9('todoList')),_0x51453b['enableCommand']('indentList',_0x992571('indentList')),_0x51453b['enableCommand']('outdentList',_0x992571('outdentList')),_0xebbf71&&_0x51453b['enableCommand']('checkTodoList',()=>{const _0x325f95=_0xae85e1['commands']['get']('checkTodoList'),_0xaf188=Array['from'](_0x325f95['_selectedElements']);_0xaf188['filter'](_0x33933d=>_0x33933d['getAttribute']('todoListChecked')!=_0x325f95['value']),_0xae85e1['model']['change'](()=>{for(const _0x4660aa of _0xaf188)_0x51453b['markBlockFormat'](_0x4660aa,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x325f95['value']}]});});}),_0x51453b['descriptionFactory']['registerElementLabel']('listItem',_0x3b28f9=>o(_0x1be4b5,'ELEMENT_LIST_ITEM',_0x3b28f9)),_0x51453b['descriptionFactory']['registerDescriptionCallback'](_0xe92a8e=>{if('formatBlock'!=_0xe92a8e['type']&&'formatInline'!=_0xe92a8e['type'])return;const {data:_0x2051bd}=_0xe92a8e;if(_0x2051bd){if('numberedList'==_0x2051bd['commandName']||'bulletedList'==_0x2051bd['commandName']||'todoList'==_0x2051bd['commandName'])switch(_0x2051bd['commandName']['replace']('List','')){case'bulleted':return _0x1b526c(o(_0x1be4b5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1b526c(o(_0x1be4b5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1b526c(o(_0x1be4b5,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2051bd['commandName'])return{'type':'format','content':o(_0x1be4b5,'*Indent:*\x20%0',o(_0x1be4b5,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2051bd['commandName'])return{'type':'format','content':o(_0x1be4b5,'*Outdent:*\x20%0',o(_0x1be4b5,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2051bd['commandName'])return _0x2051bd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1be4b5,'*Check\x20item*')}:{'type':'format','content':o(_0x1be4b5,'*Uncheck\x20item*')};}function _0x1b526c(_0x331ede){return{'type':'format','content':o(_0x1be4b5,'*Change\x20to:*\x20%0',_0x331ede)};}});}}function Le(_0x206040){const _0x2a4e1c=_0x206040['getAttribute']('listIndent');if(0x0==_0x2a4e1c)return _0x206040;let _0x409377=_0x206040;for(;_0x206040['previousSibling']&&_0x206040['previousSibling']['is']('element','listItem');){const _0x694818=_0x206040['previousSibling']['getAttribute']('listIndent');if(_0x694818==_0x2a4e1c)_0x409377=_0x206040['previousSibling'];else{if(_0x694818<_0x2a4e1c)break;}_0x206040=_0x206040['previousSibling'];}return _0x409377;}function Ee(_0x54fbdf){const _0x44f2af=[];if(_0x54fbdf['is']('element','listItem')&&_0x54fbdf['getAttribute']('listIndent')>0x0){let _0x1e5ead=_0x54fbdf['nextSibling'];for(;_0x1e5ead&&'listItem'==_0x1e5ead['name']&&_0x1e5ead['getAttribute']('listIndent')==_0x54fbdf['getAttribute']('listIndent');)_0x44f2af['push'](_0x1e5ead),_0x1e5ead=_0x1e5ead['nextSibling'];}return _0x44f2af;}class Q extends _0x5d6d85{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2233ba=this['editor']['config']['get']('list.properties'),_0x57bc47=this['editor']['plugins']['get']('TrackChangesEditing');_0x2233ba['styles']&&_0x57bc47['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2233ba['reversed']&&_0x57bc47['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2233ba['startIndex']&&_0x57bc47['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x57bc47['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4796ce,_0x3e06d9={}){const _0x54871e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c8b1d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x54871e['markMultiRangeBlockFormat'](_0x5c8b1d,{'commandName':'listStyle','commandParams':[{'type':_0x3e06d9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1993fb,_0x254a37={}){const _0x1f1059=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1768a3=this['_getSuggestionBlocks'](_0x35e742=>_0x35e742['is']('element','listItem')&&'numbered'===_0x35e742['getAttribute']('listType'));if(_0x1768a3['length']<0x1)return;const _0x4bd961=_0x1768a3['map'](_0x4103eb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4103eb,'before'),this['editor']['model']['createPositionAt'](_0x4103eb,0x0)));this['editor']['model']['change'](()=>{_0x1f1059['markMultiRangeBlockFormat'](_0x4bd961,{'commandName':'listReversed','commandParams':[{'reversed':_0x254a37['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3b509b,_0x45de52={}){const _0x42da7e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ce361=this['_getSuggestionBlocks'](_0x860224=>_0x860224['is']('element','listItem')&&'numbered'===_0x860224['getAttribute']('listType'));if(_0x4ce361['length']<0x1)return;const _0x38e403=_0x4ce361['map'](_0x12b6a5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x12b6a5,'before'),this['editor']['model']['createPositionAt'](_0x12b6a5,0x0)));this['editor']['model']['change'](()=>{_0x42da7e['markMultiRangeBlockFormat'](_0x38e403,{'commandName':'listStart','commandParams':[{'startIndex':_0x45de52['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x57e4d5){if('formatBlock'!=_0x57e4d5['type']&&'formatInline'!=_0x57e4d5['type'])return;const _0x5ade13=this['editor']['locale'],{data:_0x2200b4}=_0x57e4d5;if(!_0x2200b4)return;let _0x3f3f0c,_0x56485b;switch(_0x2200b4['commandName']){case'listStyle':_0x3f3f0c='*Change\x20to:*\x20%0',_0x56485b={'type':'format','content':o(_0x5ade13,_0x3f3f0c,o(_0x5ade13,this['_getTranslationKeyForListStyle'](_0x2200b4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3f3f0c=_0x2200b4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x56485b={'type':'format','content':o(_0x5ade13,_0x3f3f0c)};break;case'listStart':_0x3f3f0c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x56485b={'type':'format','content':o(_0x5ade13,_0x3f3f0c,_0x2200b4['commandParams'][0x0]['startIndex'])};}return _0x56485b;}['_getSuggestionBlocksForListStyle'](){const _0x105c09=this['editor']['plugins']['get']('LegacyListUtils');let _0x11f8ba=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x11f8ba[0x0]?.['is']('element','listItem')&&_0x11f8ba['unshift'](..._0x105c09['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x11f8ba[_0x11f8ba['length']-0x1]?.['is']('element','listItem')&&_0x11f8ba['push'](..._0x105c09['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x11f8ba=[...new Set(_0x11f8ba)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x11f8ba=_0x11f8ba['filter'](_0x472611=>_0x472611['is']('element','listItem'))),_0x11f8ba;}['_getSuggestionBlocks'](_0x9b918e){const _0x2cf518=this['editor']['plugins']['get']('LegacyListUtils');let _0x4a7aef=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x9b918e)['map'](_0x28947a=>{const _0x358591=this['editor']['model']['createPositionAt'](_0x28947a,0x0);return[..._0x2cf518['getSiblingNodes'](_0x358591,'backward'),..._0x2cf518['getSiblingNodes'](_0x358591,'forward')];})['flat']();return _0x4a7aef=[...new Set(_0x4a7aef)],_0x4a7aef;}['_getTranslationKeyForListStyle'](_0x175ef4){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x175ef4)||'default')['toUpperCase']()+'_LIST_'+_0x175ef4['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x5d6d85{['afterInit'](){const _0x325966=this['editor'];if(!_0x325966['plugins']['has']('MediaEmbedEditing'))return;const _0x47dc00=_0x325966['plugins']['get']('TrackChangesEditing'),_0x1ff776=_0x325966['locale'];_0x47dc00['enableCommand']('mediaEmbed'),_0x47dc00['descriptionFactory']['registerElementLabel']('media',_0x26fa52=>o(_0x1ff776,'ELEMENT_MEDIA',_0x26fa52)),_0x325966['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x9a7a55,{writer:_0x5a61cf,options:_0x6f6173})=>{if(_0x6f6173['showSuggestionHighlights'])return _0x5a61cf['createEmptyElement']('div');},'converterPriority':'high'}),_0x325966['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3ce895,_0x7b6c70,_0x328869)=>{_0x328869['options']['showSuggestionHighlights']&&_0x3ce895['stop']();},{'priority':'high'});}}class mt extends _0x5d6d85{['afterInit'](){const _0x2ff423=this['editor'];_0x2ff423['plugins']['has']('MentionEditing')&&_0x2ff423['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x5d6d85{['afterInit'](){const _0xff2d90=this['editor'];if(!_0xff2d90['plugins']['has']('MergeFieldsEditing'))return;const _0x557b86=_0xff2d90['plugins']['get']('TrackChangesEditing'),_0x51d9a0=_0xff2d90['locale'];_0x557b86['enableCommand']('insertMergeField'),_0x557b86['enableCommand']('insertMergeFieldBlock'),_0x557b86['enableCommand']('insertMergeFieldImage'),_0x557b86['descriptionFactory']['registerElementLabel']('mergeField',_0x3de53c=>o(_0x51d9a0,'ELEMENT_MERGE_FIELD',_0x3de53c)),_0x557b86['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x112ce4=>o(_0x51d9a0,'ELEMENT_MERGE_FIELD',_0x112ce4)),_0x557b86['descriptionFactory']['registerDescriptionCallback'](_0x461d64=>{if('insertion'!=_0x461d64['type']&&'deletion'!=_0x461d64['type'])return;const _0x2075ef=_0x461d64['getContainedElement']();if(null==_0x2075ef)return;const _0x56da57=_0xff2d90['plugins']['get']('MergeFieldsEditing');let _0x34638a;switch(_0x56da57['getMergeFieldType'](_0x2075ef)){case null:return;case'image':{const _0x5a2b4e=_0x56da57['unwrapAffixes'](_0x2075ef['getAttribute']('src'));_0x34638a=_0x56da57['getLabel'](_0x5a2b4e)||_0x5a2b4e;break;}default:{const _0xd44910=_0x2075ef['getAttribute']('id');_0x34638a=_0x56da57['getLabel'](_0xd44910)||_0xd44910;break;}}return'insertion'==_0x461d64['type']?{'type':'insertion','content':o(_0x51d9a0,'*Insert:*\x20%0','\x22'+_0x34638a+'\x22\x20'+o(_0x51d9a0,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x51d9a0,'*Remove:*\x20%0','\x22'+_0x34638a+'\x22\x20'+o(_0x51d9a0,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x5d6d85{['afterInit'](){const _0x27aa10=this['editor'],_0x3f610d=_0x27aa10['plugins']['get']('TrackChangesEditing');_0x27aa10['plugins']['has']('MultiLevelList')&&(_0x3f610d['enableDefaultAttributesIntegration']('multiLevelList'),_0x3f610d['registerBlockAttribute']('listMarkerStyle'),_0x3f610d['descriptionFactory']['registerDescriptionCallback'](_0x5b3530=>this['handleDescriptions'](_0x5b3530)));}['handleDescriptions'](_0x3719f6){const _0x5cc5b5=this['editor']['locale'],{data:_0x9a880f}=_0x3719f6,_0x29966a={'type':'format','content':''};if(_0x9a880f&&'listMarkerStyle'==_0x9a880f['key']){if(!_0x9a880f['oldValue'])return{'type':'format','content':o(_0x5cc5b5,'*Set\x20format:*\x20%0',o(_0x5cc5b5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x9a880f['newValue']+')'};if(!_0x9a880f['newValue']){let _0x493391=_0x3719f6['head'];for(;_0x493391;){if(_0x493391['data']&&'listType'==_0x493391['data']['key']&&_0x493391['data']['newValue'])return _0x29966a;_0x493391=_0x493391['next'];}return{'type':'format','content':o(_0x5cc5b5,'*Remove\x20format:*\x20%0',o(_0x5cc5b5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x9a880f['oldValue']+')'};}}}}class kt extends _0x5d6d85{['afterInit'](){const _0x764afc=this['editor'];if(!_0x764afc['plugins']['has']('PageBreakEditing'))return;_0x764afc['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x47ea08=_0x764afc['plugins']['get']('TrackChangesEditing'),_0x560c6a=_0x764afc['locale'];_0x47ea08['descriptionFactory']['registerElementLabel']('pageBreak',_0x5d64c3=>o(_0x560c6a,'ELEMENT_PAGE_BREAK',_0x5d64c3));}}class bt extends _0x5d6d85{['afterInit'](){const _0x9f1106=this['editor'];if(!_0x9f1106['plugins']['has']('Paragraph'))return;const _0x2a4333=_0x9f1106['locale'],_0x485062=_0x9f1106['plugins']['get']('TrackChangesEditing');_0x485062['descriptionFactory']['registerElementLabel']('paragraph',_0x2bd2db=>o(_0x2a4333,'ELEMENT_PARAGRAPH',_0x2bd2db)),_0x485062['enableDefaultAttributesIntegration']('paragraph'),_0x485062['enableCommand']('insertParagraph'),_0x9f1106['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x9f1106),{'priority':'highest'}),_0x9f1106['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1cc203,_0x151ccf,_0x59ad66)=>{_0x59ad66['options']['showSuggestionHighlights']&&nr(_0x9f1106,{'showActiveMarker':!0x1})(_0x1cc203,_0x151ccf,_0x59ad66);},{'priority':'highest'});const _0x4f78d3=_0x485062['descriptionFactory'];_0x4f78d3['registerDescriptionCallback'](_0x519b84=>{if('insertion'!==_0x519b84['type'])return;const {start:_0xd93446,end:_0x240f40}=_0x519b84['getFirstRange']();if(!_0xd93446['isTouching'](_0x240f40)||!_0xd93446['nodeAfter'])return;const _0x26736d=_0x9f1106['model']['schema'],_0xe85fd5=_0xd93446['nodeAfter'];return _0x26736d['isBlock'](_0xe85fd5)&&!_0x26736d['isLimit'](_0xe85fd5)&&_0x26736d['checkChild'](_0xe85fd5,'$text')?{'type':'insertion','content':o(_0x2a4333,'*Insert:*\x20%0',_0x4f78d3['getItemLabel'](_0xe85fd5,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x274fb3=this['editor'],_0x595aa8=_0x274fb3['locale'];_0x274fb3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fb4e9=>{if('formatBlock'!=_0x4fb4e9['type'])return;const {data:_0x18d90c}=_0x4fb4e9;return _0x18d90c&&'paragraph'==_0x18d90c['commandName']?{'type':'format','content':o(_0x595aa8,'*Change\x20to:*\x20%0',o(_0x595aa8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x48430c,{showActiveMarker:_0x2fb9f0=!0x0}={}){return(_0x24e61d,_0x459a59,_0x34ac25)=>{const _0x169e01=_0x48430c['plugins']['get']('TrackChangesEditing'),_0x28b133=_0x459a59['markerRange']['start'],_0x114709=_0x459a59['markerRange']['end'],_0x5a0fcf=_0x48430c['model']['schema'];if(!_0x28b133['isTouching'](_0x114709)||!_0x28b133['nodeAfter'])return;const _0x33851c=_0x28b133['nodeAfter'];if(_0x5a0fcf['isBlock'](_0x33851c)&&!_0x5a0fcf['isLimit'](_0x33851c)&&_0x5a0fcf['checkChild'](_0x33851c,'$text')){if(!_0x34ac25['consumable']['consume'](_0x459a59['markerRange'],_0x24e61d['name']))return;const {authorId:_0x4128f2}=_0x169e01['_splitMarkerName'](_0x459a59['markerName']),_0x7f8f2=_0x34ac25['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4128f2}),_0x59e28f=_0x34ac25['mapper']['toViewPosition'](_0x114709);_0x2fb9f0&&_0x169e01['activeMarkers']['includes'](_0x459a59['markerName'])&&_0x34ac25['writer']['addClass']('ck-suggestion-marker--active',_0x7f8f2),_0x34ac25['writer']['insert'](_0x59e28f,_0x7f8f2),_0x34ac25['mapper']['bindElementToMarker'](_0x7f8f2,_0x459a59['markerName']);}};}class yt extends _0x5d6d85{['afterInit'](){const _0x114aa8=this['editor'];if(!_0x114aa8['plugins']['has']('RemoveFormatEditing'))return;_0x114aa8['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2121ca=this['editor'];_0x2121ca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4be1bb=>{if('formatBlock'!=_0x4be1bb['type']&&'formatInline'!=_0x4be1bb['type'])return;const {data:_0x30fc41}=_0x4be1bb;return _0x30fc41&&'removeFormat'==_0x30fc41['commandName']?{'type':'format','content':o(_0x2121ca['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x5d6d85{['afterInit'](){const _0x3bf807=this['editor'];if(!_0x3bf807['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x432baf=_0x3bf807['plugins']['get']('TrackChangesEditing');_0x432baf['enableCommand']('goToPreviousRestrictedEditingException'),_0x432baf['enableCommand']('goToNextRestrictedEditingException');const _0x32a3a5=_0x3bf807['plugins']['get']('RestrictedEditingModeEditing');_0x32a3a5['enableCommand']('trackChanges'),_0x32a3a5['enableCommand']('acceptSuggestion'),_0x32a3a5['enableCommand']('discardSuggestion'),_0x32a3a5['enableCommand']('acceptAllSuggestions'),_0x32a3a5['enableCommand']('discardAllSuggestions'),_0x32a3a5['enableCommand']('acceptSelectedSuggestions'),_0x32a3a5['enableCommand']('discardSelectedSuggestions');}}class St extends _0x5d6d85{static get['requires'](){return[_0x5c4d6f];}['init'](){const _0x54b62a=this['editor'],_0x547a20=_0x54b62a['plugins']['get']('TrackChangesEditing');_0x547a20['enableCommand']('shiftEnter'),_0x54b62a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x54b62a),{'priority':'high'}),_0x54b62a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x54b62a),{'priority':'high'}),_0x54b62a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x272519,_0x349175,_0x2bfcf9)=>{_0x2bfcf9['options']['showSuggestionHighlights']&&je(_0x54b62a,{'showActiveMarker':!0x1})(_0x272519,_0x349175,_0x2bfcf9);}),_0x547a20['descriptionFactory']['registerElementLabel']('softBreak',_0x52987d=>o(_0x54b62a['locale'],'ELEMENT_LINE_BREAK',_0x52987d));}}function je(_0xb021ac,{showActiveMarker:_0x3ab429=!0x0}={}){return(_0x1741f9,_0x466ad4,_0x44e82e)=>{const _0x30cb57=_0xb021ac['plugins']['get']('TrackChangesEditing');if(!_0x44e82e['consumable']['test'](_0x466ad4['markerRange'],_0x1741f9['name']))return;const _0x43c718=_0xb021ac['model'];for(const _0x3cf99f of _0x466ad4['markerRange']['getItems']()){if(!_0x3cf99f['is']('element','softBreak'))continue;const _0x16231='deletion'==_0x466ad4['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x27b1a1}=_0x30cb57['_splitMarkerName'](_0x466ad4['markerName']),_0x25da7c=_0x44e82e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x16231,'data-author-id':_0x27b1a1}),_0x2f90b6=_0x44e82e['mapper']['toViewPosition'](_0x43c718['createPositionBefore'](_0x3cf99f));_0x3ab429&&_0x30cb57['activeMarkers']['includes'](_0x466ad4['markerName'])&&_0x44e82e['writer']['addClass']('ck-suggestion-marker--active',_0x25da7c),_0x44e82e['writer']['insert'](_0x2f90b6,_0x25da7c),_0x44e82e['mapper']['bindElementToMarker'](_0x25da7c,_0x466ad4['markerName']);}};}class At extends _0x5d6d85{['afterInit'](){const _0x256bc6=this['editor'],_0x4441c3=_0x256bc6['model'],_0x586d9a=_0x256bc6['locale'];if(!_0x256bc6['plugins']['has']('StandardEditingModeEditing'))return;const _0x34fab2=_0x256bc6['plugins']['get']('TrackChangesEditing'),_0x228ba9='restrictedEditingException',_0x55cf08=_0x256bc6['commands']['get'](_0x228ba9);_0x34fab2['enableCommand'](_0x228ba9,(_0x41da66,_0x316ef8={})=>{const _0x47b571=_0x4441c3['document']['selection'];if(_0x47b571['isCollapsed'])return void _0x41da66(_0x316ef8);const _0x28e631=void 0x0!==_0x316ef8['forceValue']?_0x316ef8['forceValue']:!_0x55cf08['value'];_0x4441c3['change'](()=>{const _0x5115c0=Array['from'](_0x47b571['getRanges']());for(const _0x2f4501 of _0x5115c0){const _0xae48c0=_0x28e631?[_0x2f4501]:io(_0x228ba9,_0x2f4501,_0x4441c3);for(const _0x44de17 of _0xae48c0)_0x34fab2['markInlineFormat'](_0x44de17,{'commandName':_0x228ba9,'commandParams':[{'forceValue':_0x28e631}]});}});}),_0x34fab2['descriptionFactory']['registerDescriptionCallback'](_0x585670=>{if('formatBlock'!=_0x585670['type']&&'formatInline'!=_0x585670['type'])return;const {data:_0x5e46f8}=_0x585670;return _0x5e46f8&&_0x5e46f8['commandName']==_0x228ba9?_0x5e46f8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x586d9a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x586d9a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x5d6d85{['afterInit'](){const _0x2f44c0=this['editor'];if(!_0x2f44c0['plugins']['has']('Style')||!_0x2f44c0['plugins']['has']('DataSchema'))return;const _0x13cfe2=_0x2f44c0['plugins']['get']('TrackChangesEditing'),_0x490e00=_0x2f44c0['locale'],_0x9d61ba=_0x2f44c0['config']['get']('style')||{},_0x1d4238=_0x2f44c0['plugins']['get']('GeneralHtmlSupport'),_0x24dcd5=_0x2f44c0['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2f44c0['plugins']['get']('DataSchema'),_0x9d61ba['definitions']);_0x13cfe2['enableDefaultAttributesIntegration']('style');const _0x222f64=new Set();for(const _0xb1d879 of _0x24dcd5['block']){const _0x316bb9=_0x1d4238['getGhsAttributeNameForElement'](_0xb1d879['element']);_0x222f64['add'](_0x316bb9);}const _0x30e881=new Set();for(const _0x1fe4cf of _0x24dcd5['inline']){const _0x4c69a8=_0x1d4238['getGhsAttributeNameForElement'](_0x1fe4cf['element']);_0x30e881['add'](_0x4c69a8);for(const _0x1d0cd8 of _0x1fe4cf['ghsAttributes'])_0x30e881['add'](_0x1d0cd8);}for(const _0xd7cb3e of _0x222f64)_0x13cfe2['registerBlockAttribute'](_0xd7cb3e),_0x13cfe2['descriptionFactory']['registerAttributeLabel'](_0xd7cb3e,o(_0x490e00,'FORMAT_STYLE'));for(const _0x38ef4b of _0x30e881)_0x13cfe2['registerInlineAttribute'](_0x38ef4b),_0x13cfe2['descriptionFactory']['registerAttributeLabel'](_0x38ef4b,o(_0x490e00,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x533062=this['editor'],_0x1a393d=_0x533062['locale'];_0x533062['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18aa26=>{if('formatBlock'!=_0x18aa26['type']&&'formatInline'!=_0x18aa26['type'])return;const {data:_0x4df500}=_0x18aa26;return _0x4df500&&'style'===_0x4df500['commandName']?_0x4df500['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1a393d,'*Set\x20format:*\x20%0',_0x4df500['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1a393d,'*Remove\x20format:*\x20%0',_0x4df500['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x5d6d85{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x524cb0){super(_0x524cb0),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x54466a=this['editor'],_0x169b79=_0x54466a['model']['document']['selection'];if(!_0x54466a['plugins']['has']('TableEditing'))return;const _0x3512af=_0x54466a['locale'],_0x1c26aa=_0x54466a['plugins']['get']('TrackChangesEditing'),_0x4e8282=_0x54466a['plugins']['get']('TableUtils');_0x1c26aa['descriptionFactory']['registerElementLabel']('table',_0x14fec8=>o(_0x3512af,'ELEMENT_TABLE',_0x14fec8)),this['_setupColumnsRowsFixing'](),_0x1c26aa['enableCommand']('insertTable'),_0x1c26aa['enableCommand']('selectTableRow'),_0x1c26aa['enableCommand']('selectTableColumn');for(const _0x3cffbb of['insertTableRowAbove','insertTableRowBelow']){const _0x2c60cc=_0x54466a['commands']['get'](_0x3cffbb);_0x1c26aa['enableCommand'](_0x3cffbb,_0x328d4d=>{_0x54466a['model']['change'](_0x40ba09=>{_0x328d4d();const _0x263425='above'===_0x2c60cc['order'],_0x35faa9=_0x4e8282['getSelectionAffectedTableCells'](_0x169b79),_0x2d596d=_0x4e8282['getRowIndexes'](_0x35faa9),_0x1f1eff=_0x263425?_0x2d596d['first']-0x1:_0x2d596d['last']+0x1,_0x1089ac=_0x35faa9[0x0]['findAncestor']('table'),_0x4e440c=_0x4e8282['createTableWalker'](_0x1089ac,{'startRow':_0x1f1eff,'endRow':_0x1f1eff}),_0x5be19d=Array['from'](_0x4e440c)['map'](_0xe27e23=>_0x40ba09['createRangeOn'](_0xe27e23['cell']));_0x1c26aa['markMultiRangeInsertion'](_0x5be19d,'tableRow');});});}for(const _0x433950 of['insertTableColumnLeft','insertTableColumnRight']){const _0x565ef4=_0x54466a['commands']['get'](_0x433950);_0x1c26aa['enableCommand'](_0x433950,_0xacc023=>{_0x54466a['model']['change'](_0x22e7ed=>{_0xacc023();const _0x79e403='left'===_0x565ef4['order'],_0x3de67e=_0x4e8282['getSelectionAffectedTableCells'](_0x169b79),_0x36d186=_0x4e8282['getColumnIndexes'](_0x3de67e),_0x137d90=_0x79e403?_0x36d186['first']-0x1:_0x36d186['last']+0x1,_0x13684b=_0x3de67e[0x0]['findAncestor']('table'),_0x17fbb6=_0x4e8282['createTableWalker'](_0x13684b,{'startRow':0x0,'column':_0x137d90,'includeAllSlots':!0x1}),_0x15c28d=Array['from'](_0x17fbb6)['map'](_0x5a3b3f=>_0x22e7ed['createRangeOn'](_0x5a3b3f['cell']));_0x1c26aa['markMultiRangeInsertion'](_0x15c28d,'tableColumn');});});}for(const _0x253a56 of['removeTableRow','removeTableColumn']){const _0x30a667=_0x253a56['substr'](0xb),_0x5ec985=_0x30a667['toLowerCase'](),_0x1d106e=_0x5ec985['substr'](0x0,0x3)+'span',_0x2e4ebc='table'+_0x30a667,_0x24d506='min'+_0x30a667,_0x358da9='max'+_0x30a667;_0x1c26aa['enableCommand'](_0x253a56,()=>{_0x54466a['model']['change'](_0x349ed5=>{const _0x87554e=_0x4e8282['getSelectionAffectedTableCells'](_0x169b79),_0x10e1f6=_0x87554e[0x0]['findAncestor']('table');let _0x5a25aa;if('removeTableRow'==_0x253a56){const _0x5c425c=_0x4e8282['getRowIndexes'](_0x87554e);_0x5a25aa={'startRow':_0x5c425c['first'],'endRow':_0x5c425c['last'],'includeAllSlots':!0x0};}else{const _0x385c86=_0x4e8282['getColumnIndexes'](_0x87554e);_0x5a25aa={'startColumn':_0x385c86['first'],'endColumn':_0x385c86['last'],'includeAllSlots':!0x0};}const _0x4583c3=_0x4e8282['createTableWalker'](_0x10e1f6,_0x5a25aa),_0x23e443=Array['from'](_0x4583c3)['map'](({cell:_0x4f8b7b})=>_0x4f8b7b),_0x13343f=Ne(_0x23e443['filter'](_0x291e27=>_0x291e27['hasAttribute'](_0x1d106e))),_0x4f87db=Ne(_0x23e443['filter'](_0x59c434=>!_0x59c434['hasAttribute'](_0x1d106e)))['map'](_0x448e42=>_0x349ed5['createRangeOn'](_0x448e42)),_0x34dc12=_0x1c26aa['markMultiRangeDeletion'](_0x4f87db,_0x2e4ebc);if(_0x34dc12&&('tableRow'==_0x34dc12['subType']||'tableColumn'==_0x34dc12['subType'])){const _0x13b1c4=this['_getSuggestionCoords'](_0x34dc12);for(const _0x38ce25 of _0x13343f){const _0x296785=_0x349ed5['createRangeOn'](_0x38ce25),_0x16cc5a=_0x4e8282['getCellLocation'](_0x38ce25),_0x210344=_0x38ce25['getAttribute'](_0x1d106e)-0x1,_0x26a42b=_0x13b1c4[_0x24d506],_0x162fd1=_0x13b1c4[_0x358da9];_0x26a42b<=_0x16cc5a[_0x5ec985]&&_0x16cc5a[_0x5ec985]+_0x210344<=_0x162fd1&&_0x34dc12['addRange'](_0x296785);}}});});}function _0x158240(_0x4a18f9){const _0x1ad3be=Array['from'](_0x169b79['getRanges']())['map'](_0x3e64f7=>_0x1e09a5['fromRange'](_0x3e64f7));_0x54466a['model']['change'](_0x42720c=>{const _0x31dbcf=_0x42720c['batch'];_0x4a18f9=_0x4a18f9['filter'](_0x12d380=>'$graveyard'!=_0x12d380['root']['rootName']),_0x42720c['setSelection'](_0x4a18f9),_0x54466a['commands']['get']('removeTableRow')['refresh'](),_0x54466a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x54466a['model']['enqueueChange'](()=>{_0x54466a['model']['enqueueChange'](_0x31dbcf,_0xf6e3fa=>{const _0x2fe32c=_0x1ad3be['filter'](_0x56c8ff=>'$graveyard'!=_0x56c8ff['root']['rootName']);_0x2fe32c['length']>0x0&&_0xf6e3fa['setSelection'](_0x2fe32c);for(const _0x32e77b of _0x1ad3be)_0x32e77b['detach']();});});});}function _0x42079d(_0x652fe){_0x54466a['model']['change'](_0x4966b5=>{const _0x524443=Array['from'](_0x169b79['getRanges']())['map'](_0xe6faae=>_0x1e09a5['fromRange'](_0xe6faae)),_0x3e4b1a=[];for(const _0x88dcc of _0x652fe)for(const _0x79c523 of _0x88dcc['getItems']({'shallow':!0x0}))_0x3e4b1a['push'](_0x79c523);for(const _0x5a662f of _0x3e4b1a)'$graveyard'!=_0x5a662f['root']['rootName']&&(_0x4966b5['setSelection'](_0x4966b5['createPositionAt'](_0x5a662f,0x0)),_0x54466a['commands']['get']('removeTableColumn')['refresh'](),_0x54466a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x309449=_0x524443['filter'](_0x348b7e=>'$graveyard'!=_0x348b7e['root']['rootName']);_0x309449['length']>0x0&&_0x4966b5['setSelection'](_0x309449);for(const _0x70f51a of _0x524443)_0x70f51a['detach']();});}function _0x421e5f(_0x2b71b1,_0x695b4a){return _0x695b4a['every'](_0x4bb9e6=>_0x2b71b1['some'](_0x38833b=>_0x38833b['end']['isEqual'](_0x4bb9e6['start'])||_0x4bb9e6['end']['isEqual'](_0x38833b['start'])));}function _0x24e6a7(_0x5b79c0,_0x1cadef){return!_0x5b79c0['some'](_0x2971ac=>_0x1cadef['some'](_0x274c77=>_0x2971ac['isIntersecting'](_0x274c77)))&&_0x5b79c0['some'](_0x34ce18=>_0x1cadef['some'](_0x142ff4=>_0x34ce18['end']['isTouching'](_0x142ff4['start'])));}_0x54466a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x6397b1,_0x14b767,_0x3a0548)=>{if(!_0x3a0548['options']['showSuggestionHighlights'])return;const _0x4978c7=_0x14b767['item'];if(!_0x4978c7)return;const _0x29fc4d=_0x3a0548['mapper']['toViewElement'](_0x4978c7);function _0xb032ad(_0x480101){return Array['isArray'](_0x480101)?_0x480101:[_0x480101];}_0x29fc4d&&'tableCell'===_0x4978c7['name']&&_0x6cf509(_0x29fc4d,_0x3a0548['writer'],(_0xc3ab7,_0x1023f5,_0x54a1f6)=>_0x54a1f6['addClass'](_0xb032ad(_0x1023f5['classes']),_0xc3ab7),(_0x5cb280,_0x5f21b0,_0x2b2523)=>_0x2b2523['removeClass'](_0xb032ad(_0x5f21b0['classes']),_0x5cb280));},{'priority':'highest'}),_0x1c26aa['descriptionFactory']['registerDescriptionCallback'](_0x423407=>{if('insertion'!=_0x423407['type']&&'deletion'!=_0x423407['type'])return;const _0x12f33c=_0x423407['getContainedElement']();if(null!=_0x12f33c&&_0x12f33c['is']('element','table')){if('insertion'==_0x423407['type']){const _0x36244e=_0x423407['getItems']()['filter'](_0x3f2bd5=>_0x3f2bd5['is']('$textProxy'))['map'](_0x617796=>_0x617796['data']);if(_0x36244e['length'])return{'type':'insertion','content':o(_0x3512af,'*Insert:*\x20%0',o(_0x3512af,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x36244e['join']('\x20')+'\x22'))};}if('deletion'==_0x423407['type']){const _0x4a5d16=_0x423407['getItems']()['filter'](_0x1d0021=>_0x1d0021['is']('$textProxy'))['map'](_0x32368d=>_0x32368d['data']);if(_0x4a5d16['length'])return{'type':'deletion','content':o(_0x3512af,'*Remove:*\x20%0',o(_0x3512af,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4a5d16['join']('\x20')+'\x22'))};}}}),_0x1c26aa['descriptionFactory']['registerDescriptionCallback'](_0x51cb97=>{if('tableRow'==_0x51cb97['subType']){const _0xea0f7a=_0x51cb97['getItems']()['filter'](_0x53907c=>_0x53907c['is']('$textProxy'))['map'](_0x459a33=>_0x459a33['data']),_0x5d4dea=this['_getSuggestionCoords'](_0x51cb97),_0x5cc6ad=_0x5d4dea['maxRow']-_0x5d4dea['minRow']+0x1;if('insertion'==_0x51cb97['type'])return _0xea0f7a['length']?{'type':'insertion','content':o(_0x3512af,'*Insert:*\x20%0',o(_0x3512af,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5cc6ad,'\x22'+_0xea0f7a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3512af,'*Insert:*\x20%0',o(_0x3512af,'ELEMENT_TABLE_ROW',_0x5cc6ad))};if('deletion'==_0x51cb97['type'])return _0xea0f7a['length']?{'type':'deletion','content':o(_0x3512af,'*Remove:*\x20%0',o(_0x3512af,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5cc6ad,'\x22'+_0xea0f7a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3512af,'*Remove:*\x20%0',o(_0x3512af,'ELEMENT_TABLE_ROW',_0x5cc6ad))};}if('tableColumn'==_0x51cb97['subType']){const _0x17ee1b=_0x51cb97['getItems']()['filter'](_0x508a51=>_0x508a51['is']('$textProxy'))['map'](_0x379cab=>_0x379cab['data']),_0x847025=this['_getSuggestionCoords'](_0x51cb97),_0x5569d5=_0x847025['maxColumn']-_0x847025['minColumn']+0x1;if('insertion'==_0x51cb97['type'])return _0x17ee1b['length']?{'type':'insertion','content':o(_0x3512af,'*Insert:*\x20%0',o(_0x3512af,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5569d5,'\x22'+_0x17ee1b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3512af,'*Insert:*\x20%0',o(_0x3512af,'ELEMENT_TABLE_COLUMN',_0x5569d5))};if('deletion'==_0x51cb97['type'])return _0x17ee1b['length']?{'type':'deletion','content':o(_0x3512af,'*Remove:*\x20%0',o(_0x3512af,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5569d5,'\x22'+_0x17ee1b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3512af,'*Remove:*\x20%0',o(_0x3512af,'ELEMENT_TABLE_COLUMN',_0x5569d5))};}}),_0x1c26aa['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x158240),_0x1c26aa['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x158240),_0x1c26aa['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x42079d),_0x1c26aa['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x42079d),_0x1c26aa['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x421e5f),_0x1c26aa['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x421e5f),_0x1c26aa['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x24e6a7),_0x1c26aa['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x24e6a7);}['_acceptFormatSuggestionCallbackFactory'](){const _0x55fb13=this['editor'],_0x502c6c=_0x55fb13['model']['document']['selection'];return(_0x293e5c,_0x4e84fd)=>{_0x55fb13['model']['change'](_0x491412=>{const {commandName:_0x241225,commandParams:_0x4bbdd5}=_0x4e84fd;let _0x24200a=_0x293e5c[0x0]['end']['nodeBefore'];_0x4bbdd5&&_0x4bbdd5[0x0]&&!0x1===_0x4bbdd5[0x0]['forceValue']&&(_0x24200a=_0x293e5c[0x0]['start']['nodeAfter']);const _0x245b1f=_0x491412['createRangeIn'](_0x24200a);if('$graveyard'==_0x245b1f['root']['rootName'])return;const _0x562852=Array['from'](_0x502c6c['getRanges']())['map'](_0x3b2def=>_0x1e09a5['fromRange'](_0x3b2def));_0x491412['setSelection'](_0x245b1f),_0x55fb13['commands']['get'](_0x241225)['refresh'](),_0x4bbdd5['push']({'forceDefaultExecution':!0x0}),_0x55fb13['execute'](_0x241225,..._0x4bbdd5);const _0x580559=_0x562852['filter'](_0x49cce0=>'$graveyard'!=_0x49cce0['root']['rootName']);_0x580559['length']>0x0&&_0x491412['setSelection'](_0x580559);for(const _0x4bbb73 of _0x562852)_0x4bbb73['detach']();});};}['_getCoordsForCells'](_0xb1d6a7){const _0x17b5f3=this['editor']['plugins']['get']('TableUtils');let _0x4de376=Number['MAX_SAFE_INTEGER'],_0x59a8a0=Number['MIN_SAFE_INTEGER'],_0x1af899=Number['MAX_SAFE_INTEGER'],_0x2d5284=Number['MIN_SAFE_INTEGER'];for(const _0x146dcb of _0xb1d6a7){if('$graveyard'==_0x146dcb['root']['rootName'])continue;const {row:_0x2247d7,column:_0x366d56}=_0x17b5f3['getCellLocation'](_0x146dcb),_0xbb41eb=_0x146dcb['hasAttribute']('rowspan')?_0x146dcb['getAttribute']('rowspan')-0x1:0x0,_0x5935d4=_0x146dcb['hasAttribute']('colspan')?_0x146dcb['getAttribute']('colspan')-0x1:0x0;_0x4de376=_0x2247d7<_0x4de376?_0x2247d7:_0x4de376,_0x59a8a0=_0x2247d7+_0xbb41eb>_0x59a8a0?_0x2247d7+_0xbb41eb:_0x59a8a0,_0x1af899=_0x366d56<_0x1af899?_0x366d56:_0x1af899,_0x2d5284=_0x366d56+_0x5935d4>_0x2d5284?_0x366d56+_0x5935d4:_0x2d5284;}return{'minRow':_0x4de376,'maxRow':_0x59a8a0,'minColumn':_0x1af899,'maxColumn':_0x2d5284};}['_setupColumnsRowsFixing'](){const _0x4145c0=this['editor'],_0x253511=_0x4145c0['plugins']['get']('TrackChangesEditing'),_0xbbe4b8=_0x4145c0['plugins']['get']('TableUtils');_0x4145c0['model']['document']['on']('change:data',()=>{const _0x52d414=Array['from'](_0x4145c0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42a82e,data:_0x35c601}of _0x52d414){const {group:_0x615cef,id:_0x42cad4,subType:_0x53b457}=_0x253511['_splitMarkerName'](_0x42a82e);if('suggestion'!=_0x615cef)continue;if(null!=_0x35c601['oldRange'])continue;const _0x2f163b=_0x253511['getSuggestion'](_0x42cad4);this['_tablePostFixingSubtypes']['includes'](_0x53b457)&&this['_tableSuggestions']['add'](_0x2f163b);}},{'priority':'low'});const _0xc0dda8=(_0x2e73e3,_0x5c7ae1)=>{let _0x441914=!0x1;const _0x4eeac0=_0x5c7ae1['createRangeOn'](_0x2e73e3),_0x241f4e=_0x2e73e3['findAncestor']('table'),_0x4687ac=_0xbbe4b8['getCellLocation'](_0x2e73e3);for(const _0x2cdc47 of this['_tableSuggestions']){const _0x77bd4b=_0x2cdc47['subType'],_0x404214=_0x77bd4b['startsWith']('tablePaste'),_0x3d0187=_0x77bd4b['substr'](_0x404214?0xa:0x5),_0x524081=_0x3d0187['toLowerCase'](),_0x56757c=_0x524081['substr'](0x0,0x3)+'span',_0x751a0f='min'+_0x3d0187,_0x3832b4='max'+_0x3d0187;if(!_0x2cdc47['isInContent'])continue;if(_0x241f4e!=_0x2cdc47['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2cdc47['isIntersectingWithRange'](_0x4eeac0))continue;const _0xec07d1=_0x2e73e3['hasAttribute'](_0x56757c)?_0x2e73e3['getAttribute'](_0x56757c)-0x1:0x0,_0x2d857e=this['_getSuggestionCoords'](_0x2cdc47),_0x414a84=_0x2d857e[_0x751a0f],_0x11b8e1=_0x2d857e[_0x3832b4];_0x414a84<=_0x4687ac[_0x524081]&&_0x4687ac[_0x524081]+_0xec07d1<=_0x11b8e1&&(_0x2cdc47['addRange'](_0x4eeac0),_0x441914=!0x0);}return _0x441914;};_0x4145c0['model']['document']['registerPostFixer'](_0x1d28ac=>{let _0x40130f=!0x1;for(const _0x52daca of _0x4145c0['model']['document']['differ']['getChanges']())if('insert'==_0x52daca['type']){if('tableRow'==_0x52daca['name']){for(const _0xc8ec8d of _0x52daca['position']['nodeAfter']['getChildren']())_0x40130f=_0x40130f||_0xc0dda8(_0xc8ec8d,_0x1d28ac);}else'tableCell'==_0x52daca['name']&&(_0x40130f=_0x40130f||_0xc0dda8(_0x52daca['position']['nodeAfter'],_0x1d28ac));}return _0x40130f;});}['_getSuggestionCoords'](_0x4e4b37){return this['_getCoordsForCells'](_0x4e4b37['getRanges']()['map'](_0x508962=>_0x508962['start']['nodeAfter']));}}function Ne(_0x3f4bed){return Array['from'](new Set(_0x3f4bed)['values']());}class _t extends _0x5d6d85{static get['requires'](){return[vt];}['afterInit'](){const _0x4809a3=this['editor'],_0x2d9b7b=_0x4809a3['model']['document']['selection'],_0x47964f=_0x4809a3['locale'];if(!_0x4809a3['plugins']['has']('TableEditing'))return;const _0x263035=_0x4809a3['plugins']['get']('TrackChangesEditing'),_0x5f3bbf=_0x4809a3['plugins']['get']('TableUtils'),_0x579426=_0x4809a3['plugins']['get'](vt);_0x579426['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x263035['enableCommand']('mergeTableCells',()=>{const _0x3484c9=_0x5f3bbf['getSelectionAffectedTableCells'](_0x4809a3['model']['document']['selection']);_0x4809a3['model']['change'](()=>{_0x263035['markMultiRangeBlockFormat'](_0x3484c9,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4809a3['commands']['get']('mergeTableCells')['on']('execute',(_0x53086a,_0x944ab0)=>{_0x4809a3['commands']['get']('trackChanges')['value']&&(_0x944ab0['length']>0x0&&_0x944ab0[_0x944ab0['length']-0x1]&&_0x944ab0[_0x944ab0['length']-0x1]['forceDefaultExecution']||_0x263035['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x53086a['stop']());},{'priority':'highest'});for(const _0x32c66a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x44c0ea=_0x4809a3['commands']['get'](_0x32c66a);_0x263035['enableCommand'](_0x32c66a,()=>{const _0xea16e9=_0x4809a3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x8776a8=>_0x8776a8['is']('element','tableCell')),_0x14022f=_0x44c0ea['value'];_0x4809a3['model']['change'](()=>{_0x263035['markMultiRangeBlockFormat']([_0xea16e9,_0x14022f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x505dd8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1a7721=_0x4809a3['commands']['get'](_0x505dd8);_0x263035['enableCommand'](_0x505dd8,()=>{const _0x7c1918=_0x5f3bbf['getSelectionAffectedTableCells'](_0x4809a3['model']['document']['selection'])[0x0],_0x3f7425=_0x7c1918['findAncestor']('table'),{column:_0x514925,row:_0x54c3b1}=_0x5f3bbf['getCellLocation'](_0x7c1918);let _0x2c6a91=[];if('horizontally'==_0x1a7721['direction']){const _0x46791f=_0x5f3bbf['createTableWalker'](_0x3f7425,{'startRow':_0x54c3b1,'endRow':_0x54c3b1,'includeAllSlots':!0x0});_0x2c6a91=Array['from'](_0x46791f)['map'](_0x5d2254=>_0x5d2254['cell']);}else{const _0xd361da=_0x5f3bbf['createTableWalker'](_0x3f7425,{'column':_0x514925,'includeAllSlots':!0x0});_0x2c6a91=Array['from'](_0xd361da)['map'](_0x43d27b=>_0x43d27b['cell']);}_0x4809a3['model']['change'](_0x3fa125=>{_0x263035['markBlockFormat'](_0x3fa125['createRangeOn'](_0x7c1918),{'commandName':_0x505dd8,'commandParams':[]},_0x2c6a91,_0x505dd8);});});}_0x263035['descriptionFactory']['registerDescriptionCallback'](_0x184077=>{if('formatBlock'!=_0x184077['type']&&'formatInline'!=_0x184077['type'])return;const {data:_0x46b32d}=_0x184077;return _0x46b32d&&'mergeTableCells'==_0x46b32d['commandName']?{'type':'format','content':o(_0x47964f,'*Merge\x20cells*')}:void 0x0;}),_0x263035['descriptionFactory']['registerDescriptionCallback'](_0x3564e3=>{if('formatBlock'!=_0x3564e3['type']&&'formatInline'!=_0x3564e3['type'])return;const {data:_0x41e0a6}=_0x3564e3;return _0x41e0a6?'splitTableCellVertically'==_0x41e0a6['commandName']?{'type':'format','content':o(_0x47964f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x41e0a6['commandName']?{'type':'format','content':o(_0x47964f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3f6bd2=_0x579426['_acceptFormatSuggestionCallbackFactory']();for(const _0x5d8e1f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x263035['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5d8e1f,'accept',_0x3f6bd2);for(const _0x1e3cb5 of['splitTableCellVertically','splitTableCellHorizontally'])_0x263035['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1e3cb5,'accept',_0x3f6bd2);_0x263035['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x374ce0=>{_0x4809a3['model']['change'](_0x2cb3f8=>{const _0x586e49=Array['from'](_0x2d9b7b['getRanges']())['map'](_0x4a97d3=>_0x1e09a5['fromRange'](_0x4a97d3));_0x2cb3f8['setSelection'](_0x374ce0),_0x4809a3['commands']['get']('mergeTableCells')['refresh'](),_0x4809a3['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x58b06f=_0x586e49['filter'](_0x3072c4=>'$graveyard'!=_0x3072c4['root']['rootName']);_0x58b06f['length']>0x0&&_0x2cb3f8['setSelection'](_0x58b06f);for(const _0x5ced1b of _0x586e49)_0x5ced1b['detach']();});});for(const _0x2aa720 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5ce867=_0x4809a3['commands']['get'](_0x2aa720);_0x5ce867['on']('set:isEnabled',(_0x243817,_0x40e47e,_0xb98666)=>{if(_0xb98666){const _0x51c5a5=_0x4809a3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x24f1e2=>_0x24f1e2['is']('element','tableCell'));this['_areMergableCells'](_0x5ce867['value'],_0x51c5a5)||(_0x243817['return']=!0x1,_0x243817['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x16e30f=this['editor']['commands']['get']('mergeTableCells'),_0x394b16=this['editor']['plugins']['get']('TableUtils');if(!_0x16e30f['isEnabled'])return!0x1;const _0x4ab383=_0x394b16['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x53b5e4 of _0x4ab383)for(const _0x2e574c of _0x4ab383)if(_0x53b5e4!=_0x2e574c&&!this['_areMergableCells'](_0x53b5e4,_0x2e574c))return!0x1;return!0x0;}['_areMergableCells'](_0x1b69b8,_0x46c003){const _0x234b96=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2890c2=this['editor']['model']['createRangeOn'](_0x1b69b8),_0x2600b3=this['editor']['model']['createRangeOn'](_0x46c003),_0x1f2917=new Set(),_0x498ec1=new Set();for(const _0x252a75 of _0x234b96['getSuggestions']())if(('insertion'==_0x252a75['type']||'deletion'==_0x252a75['type']||'mergeTableCells'==_0x252a75['subType'])&&_0x252a75['isInContent']){for(const _0x2e958c of _0x252a75['getRanges']())_0x2e958c['containsRange'](_0x2890c2,!0x0)&&_0x1f2917['add'](_0x252a75['type']+':'+_0x252a75['author']['id']),_0x2e958c['containsRange'](_0x2600b3,!0x0)&&_0x498ec1['add'](_0x252a75['type']+':'+_0x252a75['author']['id']);}if(_0x1f2917['size']!=_0x498ec1['size'])return!0x1;for(const _0x3e300d of _0x1f2917)if(!_0x498ec1['has'](_0x3e300d))return!0x1;return!0x0;}}class Ct extends _0x5d6d85{static get['requires'](){return[vt];}['afterInit'](){const _0x2c63b7=this['editor'];if(!_0x2c63b7['plugins']['has']('TableEditing'))return;const _0x7f44f1=_0x2c63b7['locale'],_0x181155=_0x2c63b7['plugins']['get']('TrackChangesEditing');_0x181155['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x181155['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x181155['registerBlockAttribute']('headingRows'),_0x181155['registerBlockAttribute']('headingColumns'),_0x181155['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x7f44f1,'FORMAT_HEADER_ROW')),_0x181155['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x7f44f1,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4752eb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3600db=this['editor']['plugins']['get']('TableUtils'),_0x57b50a=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0xb72006({showActiveMarker:_0x578231=!0x0,setDataAttribute:_0x41ff21=!0x0}={}){return(_0x4c2578,_0x25e7c4,_0x3ae11e)=>{const {type:_0x2408a8,id:_0x12427f}=_0x4752eb['_splitMarkerName'](_0x25e7c4['markerName']),_0x4b32fc=_0x4752eb['getSuggestion'](_0x12427f),_0xf7246d=_0x4b32fc['data'];if('formatBlock'!=_0x4b32fc['type']||!_0xf7246d||'setTableColumnHeader'!=_0xf7246d['commandName'])return;if(_0x25e7c4['item'])return void _0x4c2578['stop']();if(!_0x3ae11e['consumable']['consume'](_0x25e7c4['markerRange'],_0x4c2578['name']))return;const _0xf8b87d=_0x25e7c4['markerRange']['start']['nodeAfter'],_0x5ae3e6=_0x25e7c4['markerRange']['end']['nodeBefore'],_0xdc45b7=_0xf8b87d['parent']['parent'],{column:_0x693a69}=_0x3600db['getCellLocation'](_0xf8b87d),{column:_0x508438}=_0x3600db['getCellLocation'](_0x5ae3e6);for(let _0x15692e=_0x693a69;_0x15692e<=_0x508438;_0x15692e++){const _0x21d512=_0x3600db['createTableWalker'](_0xdc45b7,{'column':_0x15692e,'includeAllSlots':!0x1});for(const _0x1b9f25 of _0x21d512){const _0x2541ab=_0x1b9f25['cell'],_0xb289d7=_0x3ae11e['mapper']['toViewElement'](_0x2541ab);_0x3ae11e['writer']['addClass']('ck-suggestion-marker-'+_0x2408a8,_0xb289d7),_0x41ff21&&_0x3ae11e['writer']['setAttribute']('data-suggestion',_0x12427f,_0xb289d7),_0x3ae11e['mapper']['bindElementToMarker'](_0xb289d7,_0x25e7c4['markerName']),_0x578231&&(_0x4752eb['activeMarkers']['includes'](_0x25e7c4['markerName'])?_0x3ae11e['writer']['addClass']('ck-suggestion-marker--active',_0xb289d7):_0x3ae11e['writer']['removeClass']('ck-suggestion-marker--active',_0xb289d7));}}};}_0x4752eb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x57b50a),_0x4752eb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x57b50a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xb72006(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3b2b83,_0x477e3b,_0x38c334)=>{_0x38c334['options']['showSuggestionHighlights']&&_0xb72006({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3b2b83,_0x477e3b,_0x38c334);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xefb1a4,_0x2cc5ed,_0x343221)=>{const {type:_0x579f65,id:_0x50a128}=_0x4752eb['_splitMarkerName'](_0x2cc5ed['markerName']),_0x3158f5=_0x4752eb['getSuggestion'](_0x50a128),_0x14333a=_0x3158f5['data'];if('formatBlock'!=_0x3158f5['type']||!_0x14333a||'setTableColumnHeader'!=_0x14333a['commandName'])return;const _0x387238=_0x343221['mapper']['markerNameToElements'](_0x2cc5ed['markerName']);if(_0x387238){for(const _0x552713 of _0x387238)_0x343221['writer']['removeClass']('ck-suggestion-marker-'+_0x579f65,_0x552713),_0x343221['writer']['removeClass']('ck-suggestion-marker--active',_0x552713),_0x343221['writer']['removeAttribute']('data-suggestion',_0x552713),_0x343221['mapper']['unbindElementFromMarkerName'](_0x552713,_0x2cc5ed['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe9d048=this['editor'],_0x58b17a=_0xe9d048['locale'];function _0x427cc4(_0xda7625){return{'type':'format','content':o(_0x58b17a,'*Format:*\x20%0',_0xda7625)};}_0xe9d048['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20e44e=>{if('formatBlock'!=_0x20e44e['type'])return;const {data:_0x77d98d}=_0x20e44e;if(_0x77d98d){if('setTableRowHeader'==_0x77d98d['commandName']){const _0x465565=_0x77d98d['commandParams'][0x0]['forceValue'];return _0x427cc4(o(_0x58b17a,_0x465565?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x77d98d['commandName']){const _0xd0a319=_0x77d98d['commandParams'][0x0]['forceValue'];return _0x427cc4(o(_0x58b17a,_0xd0a319?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x3e1d33=>[_0x3e1d33,null]));class Nt extends _0x5d6d85{static get['requires'](){return[vt];}['afterInit'](){const _0x5622e3=this['editor'];if(!_0x5622e3['plugins']['has']('TableClipboard'))return;const _0x2aadd0=_0x5622e3['plugins']['get']('TrackChangesEditing'),_0x5aff5c=_0x5622e3['plugins']['get']('TableUtils'),_0x34f823=_0x5622e3['plugins']['get'](vt),_0x2fdb91=_0x5622e3['plugins']['get']('TableClipboard');_0x34f823['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5622e3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5622e3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4e144f=null;_0x5622e3['model']['on']('insertContent',(_0x1dd59d,_0x4ceec7)=>{const [_0x2760f9,_0x5e3664]=_0x4ceec7,_0x1a34e0=_0x4ceec7[_0x4ceec7['length']-0x1];_0x1a34e0&&_0x1a34e0['forceDefaultExecution']||_0x2aadd0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5750d2,_0x136917,_0x57eea1,_0xa77077,_0x49c8b4){if(_0x136917&&!_0x136917['is']('documentSelection'))return!0x1;const _0x122d22=_0x49c8b4['getTableIfOnlyTableInContent'](_0x5750d2,_0x57eea1);if(!_0x122d22||!Ue(_0x122d22,void 0x0,_0xa77077))return!0x1;const _0x1463f2=_0xa77077['getSelectionAffectedTableCells'](_0x57eea1['document']['selection']);if(!_0x1463f2['length'])return!0x1;const _0x24b0e1=_0x1463f2[0x0]['findAncestor']('table'),_0x987eb=_0xa77077['getRowIndexes'](_0x1463f2),_0x3b0787=_0xa77077['getColumnIndexes'](_0x1463f2),_0x300e1f={'startRow':_0x987eb['first'],'endRow':_0x987eb['last'],'startColumn':_0x3b0787['first'],'endColumn':_0x3b0787['last']};return 0x1==_0x1463f2['length']&&(_0x300e1f['endRow']+=_0xa77077['getRows'](_0x122d22)-0x1,_0x300e1f['endColumn']+=_0xa77077['getColumns'](_0x122d22)-0x1),Ue(_0x24b0e1,_0x300e1f,_0xa77077);}(_0x2760f9,_0x5e3664,_0x5622e3['model'],_0x5aff5c,_0x2fdb91)&&(_0x1dd59d['stop'](),_0x4e144f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5622e3['model']['change'](()=>{_0x5622e3['model']['insertContent'](_0x4ceec7[0x0],_0x4ceec7[0x1],_0x4ceec7[0x2],{'forceDefaultExecution':!0x0});const _0x2ffc96=_0x39ba3e(),{rowInsertionRanges:_0x44423a,columnInsertionRanges:_0x243a57,insertionRanges:_0x4d2c4c,deletionRanges:_0x31cb51,cells:_0x4a8ee8}=_0x4e144f;_0x44423a['length']&&_0x2aadd0['markMultiRangeInsertion'](_0x44423a,'tablePasteRow',{'tablePasteChainId':_0x2ffc96}),_0x243a57['length']&&_0x2aadd0['markMultiRangeInsertion'](_0x243a57,'tablePasteColumn',{'tablePasteChainId':_0x2ffc96}),_0x4d2c4c['length']&&(_0x2aadd0['markMultiRangeInsertion'](_0x4d2c4c,'tablePaste',{'tablePasteChainId':_0x2ffc96,'skipNestingCheck':!0x0}),_0x4d2c4c['forEach'](_0x589c97=>_0x589c97['detach']?.())),_0x31cb51['length']&&(_0x2aadd0['markMultiRangeDeletion'](_0x31cb51,'tablePaste',{'tablePasteChainId':_0x2ffc96,'skipNestingCheck':!0x0}),_0x31cb51['forEach'](_0xc74c52=>_0xc74c52['detach']?.()));const _0x120c03=_0x2aadd0['markMultiRangeBlockFormat'](_0x4a8ee8['map'](({element:_0x55cc82})=>_0x55cc82),{'formatGroupId':_0x39ba3e()},[],'tablePasteCell',{'tablePasteChainId':_0x2ffc96});if(_0x120c03){const _0x22c7b5=_0x120c03['getMarkers'](),_0x370ef7=[];for(const {element:_0xf663ec,attributes:_0x4a1f18}of _0x4a8ee8){if(!_0x4a1f18)continue;const _0x19e47e=_0x5622e3['model']['createRangeOn'](_0xf663ec),_0x2e8045=_0x22c7b5['find'](_0x3be2d4=>_0x3be2d4['getRange']()['isEqual'](_0x19e47e));_0x2e8045&&_0x370ef7['push']([_0x2e8045['name'],_0x4a1f18]);}_0x370ef7['length']&&_0x120c03['setAttribute']('markerAttributes',Object['fromEntries'](_0x370ef7));}_0x4e144f=null;}));},{'priority':_0x144da7['high']+0xa}),_0x5622e3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x543aa6,_0x2c6e3e)=>{const [_0x33fd2f,_0x17ee95,,_0x19026]=_0x2c6e3e;if(!_0x4e144f)return;_0x543aa6['stop']();const _0x1db3f4=_0x33fd2f['cell'],_0x3d85ee=_0x17ee95,_0x3f98af=Oe(_0x1db3f4),_0x4c7674=Oe(_0x3d85ee);_0x543aa6['return']=_0x1db3f4;let _0x511966=null,_0x15cb4b=null;if(_0x4c7674||_0x3f98af){if(_0x3f98af&&!_0x4c7674){_0x19026['remove'](_0x1db3f4['getChild'](0x0));for(const _0x2645e8 of Array['from'](_0x3d85ee['getChildren']()))_0x19026['insert'](_0x2645e8,_0x1db3f4,'end');const _0x3401c5=_0x4e144f['rowInsertionIndexes']['includes'](_0x33fd2f['row']),_0x103c1a=_0x4e144f['columnInsertionIndexes']['includes'](_0x33fd2f['column']);_0x3401c5||_0x103c1a||(_0x511966=_0x1e09a5['fromRange'](_0x19026['createRangeIn'](_0x1db3f4)));}else _0x4c7674&&!_0x3f98af&&(_0x15cb4b=_0x19026['createRangeIn'](_0x1db3f4));}else{const _0x531ce5=_0x19026['createElement']('tableCellSuggestion'),_0x264f05=_0x19026['createElement']('tableCellSuggestion');_0x19026['wrap'](_0x19026['createRangeIn'](_0x1db3f4),_0x264f05),_0x19026['insert'](_0x531ce5,_0x1db3f4,0x0);for(const _0x4ce107 of Array['from'](_0x3d85ee['getChildren']()))_0x19026['insert'](_0x4ce107,_0x531ce5,'end');_0x511966=_0x1e09a5['fromRange'](_0x19026['createRangeOn'](_0x531ce5)),_0x15cb4b=_0x1e09a5['fromRange'](_0x19026['createRangeOn'](_0x264f05));}const _0x273a0c=Array['from'](_0x3d85ee['getAttributes']())['filter'](([_0x167729])=>Be['includes'](_0x167729));_0x4e144f['cells']['push']({'element':_0x1db3f4,'attributes':_0x273a0c['length']?Object['fromEntries'](_0x273a0c):null}),_0x511966&&_0x4e144f['insertionRanges']['push'](_0x511966),_0x15cb4b&&_0x4e144f['deletionRanges']['push'](_0x15cb4b);},{'priority':'high'}),_0x5aff5c['on']('insertColumns',(_0x2c8b41,_0x53c278)=>{const [_0x24807b,_0x53bba4={}]=_0x53c278;if(!_0x4e144f)return;const _0x1cef03=_0x53bba4['at']||0x0,_0x3f5183=_0x53bba4['columns']||0x1;_0x4e144f['columnInsertionIndexes']=new Array(_0x3f5183)['fill'](_0x1cef03)['map']((_0x38b9ad,_0x5b9562)=>_0x38b9ad+_0x5b9562);for(const {cell:_0x3498aa}of _0x5aff5c['createTableWalker'](_0x24807b,{'startColumn':_0x1cef03,'endColumn':_0x1cef03+_0x3f5183-0x1}))_0x4e144f['columnInsertionRanges']['push'](_0x5622e3['model']['createRangeOn'](_0x3498aa));},{'priority':'low'}),_0x5aff5c['on']('insertRows',(_0x4538d7,_0x2da96f)=>{const [_0x21306e,_0x3404da={}]=_0x2da96f;if(!_0x4e144f)return;const _0x571369=_0x3404da['at']||0x0,_0x1a4a94=_0x3404da['rows']||0x1;_0x4e144f['rowInsertionIndexes']=new Array(_0x1a4a94)['fill'](_0x571369)['map']((_0x5e79b7,_0x5c396d)=>_0x5e79b7+_0x5c396d);for(const {cell:_0x448d30}of _0x5aff5c['createTableWalker'](_0x21306e,{'startRow':_0x571369,'endRow':_0x571369+_0x1a4a94-0x1}))_0x4e144f['rowInsertionRanges']['push'](_0x5622e3['model']['createRangeOn'](_0x448d30));},{'priority':'low'}),_0x2aadd0['descriptionFactory']['registerDescriptionCallback'](_0x51a914=>{if(_0x51a914['subType']&&_0x51a914['subType']['startsWith']('tablePaste'))return _0x51a914['previous']?{}:{'type':'insertion','content':o(_0x5622e3['locale'],'*Replace\x20table\x20cells*')};});const _0x2870b6=()=>!0x1;for(const _0x4ca428 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2aadd0['_suggestionFactory']['registerCustomCallback']('insertion',_0x4ca428,'join',_0x2870b6),_0x2aadd0['_suggestionFactory']['registerCustomCallback']('deletion',_0x4ca428,'join',_0x2870b6),_0x2aadd0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4ca428,'join',_0x2870b6);_0x2aadd0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2870b6),_0x2aadd0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xa2d4f9,_0x48385d,_0x246ffd)=>{const _0xd62aeb=_0xa2d4f9['map'](_0x609712=>_0x609712['getContainedElement']())['filter'](_0x3dc378=>_0x3dc378),_0x33e81a=new Map(_0xd62aeb['map'](_0x1c2b1f=>[_0x1c2b1f,null]));if(_0x4e144f){for(const {element:_0x57fc02,attributes:_0x19e1cb}of _0x4e144f['cells'])_0x19e1cb&&_0x33e81a['set'](_0x57fc02,_0x19e1cb);}else{if(_0x246ffd&&_0x246ffd['markerAttributes'])for(const [_0x297439,_0x5b47df]of Object['entries'](_0x246ffd['markerAttributes'])){const _0x3acd95=_0x5622e3['model']['markers']['get'](_0x297439),_0x19117a=_0x3acd95?_0x3acd95['getRange']()['getContainedElement']():null;_0x19117a&&_0x33e81a['set'](_0x19117a,_0x5b47df);}}_0x5622e3['model']['change'](_0x23473b=>{for(const [_0x485e69,_0x2d1b9e]of _0x33e81a)_0x23473b['setAttributes']({...xe,..._0x2d1b9e},_0x485e69);});});const _0x3dbf65=(_0x1460d4,_0xffe2ad)=>{_0x2aadd0['_suggestionFactory']['registerCustomCallback'](_0x1460d4,'tablePaste',_0xffe2ad,(_0x5319ef,_0x26577c,_0x1fd104)=>{_0x5622e3['model']['change'](_0x5916bc=>{const _0x55bbb7=[];for(const _0x7648ac of _0x5319ef){const _0x3912d0=_0x7648ac['start']['nodeAfter'];_0x3912d0['is']('element','tableCellSuggestion')&&_0x55bbb7['push'](_0x3912d0);}_0x2aadd0['_suggestionFactory']['getSuggestionCallback'](_0x1460d4,null,_0xffe2ad)(_0x5319ef,_0x26577c,_0x1fd104);for(const _0x2a940f of _0x55bbb7)'$graveyard'!=_0x2a940f['root']['rootName']&&_0x5916bc['unwrap'](_0x2a940f);});});};_0x3dbf65('insertion','accept'),_0x3dbf65('insertion','discard'),_0x3dbf65('deletion','accept'),_0x3dbf65('deletion','discard'),_0x2aadd0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2a06d9=>{const _0x69d730=_0x2a06d9['map'](_0x4d02f0=>_0x4d02f0['getContainedElement']()),_0x965c47=_0x69d730[0x0]['findAncestor']('table'),{minRow:_0x19d218,maxRow:_0x2d8831}=_0x34f823['_getCoordsForCells'](_0x69d730);_0x5aff5c['removeRows'](_0x965c47,{'at':_0x19d218,'rows':_0x2d8831-_0x19d218+0x1});}),_0x2aadd0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x288946=>{const _0x49f31a=_0x288946['map'](_0x4b6546=>_0x4b6546['getContainedElement']()),_0x395ebd=_0x49f31a[0x0]['findAncestor']('table'),{minColumn:_0x38df76,maxColumn:_0x420a71}=_0x34f823['_getCoordsForCells'](_0x49f31a);_0x5aff5c['removeColumns'](_0x395ebd,{'at':_0x38df76,'columns':_0x420a71-_0x38df76+0x1});});const _0xb61cdc=(_0x48e1bd,_0x5c691a)=>{if(!_0x5c691a['subType']||!_0x5c691a['subType']['startsWith']('tablePaste'))return;const _0x58eb7a=_0x5c691a['attributes']['tablePasteChainId'],_0x16d349=_0x2aadd0['getSuggestions']()['filter'](_0x1f4745=>_0x1f4745['isInContent']&&_0x1f4745['attributes']&&_0x1f4745['attributes']['tablePasteChainId']==_0x58eb7a);_0x16d349['length']&&_0x5c691a['getAllAdjacentSuggestions']()['length']!=_0x16d349['length']&&_0x16d349['reduce']((_0x28eab6,_0x390fce)=>(_0x28eab6['next']=_0x390fce,_0x390fce['previous']=_0x28eab6,_0x390fce));};function _0x511428(_0x586e6e,_0x28f6f5=!0x0){const {id:_0x23a9fe,authorId:_0x46f58f}=_0x2aadd0['_splitMarkerName'](_0x586e6e['markerName']),_0x205570=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x220afd=_0x2aadd0['activeMarkers']['includes'](_0x586e6e['markerName']);return _0x220afd&&_0x205570['push']('ck-suggestion-marker--active'),{'classes':_0x205570,'attributes':{'data-suggestion':_0x23a9fe,'data-author-id':_0x46f58f},'priority':_0x220afd&&_0x28f6f5?0xbc2:0xbb8};}_0x2aadd0['on']('suggestionLoaded',_0xb61cdc,{'priority':'high'}),_0x2aadd0['on']('suggestionUnloaded',_0xb61cdc,{'priority':'high'}),_0x5622e3['model']['document']['registerPostFixer'](()=>{let _0x36d655=!0x1;const _0x25b269=Array['from'](_0x5622e3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3654f1,data:_0x1a38e3}of _0x25b269){const {group:_0xdc8042,type:_0x16ac71,id:_0x295da1}=_0x2aadd0['_splitMarkerName'](_0x3654f1);if('suggestion'!=_0xdc8042||'deletion'!=_0x16ac71||_0x1a38e3['oldRange'])continue;if(!_0x2aadd0['hasSuggestion'](_0x295da1))continue;const _0x4cbe23=_0x2aadd0['getSuggestion'](_0x295da1)['getRanges'](),_0x15a476=_0x5622e3['plugins']['get']('Users')['me'];for(const _0x51280e of _0x2aadd0['getSuggestions']()){if(!_0x51280e['isInContent']||_0x51280e['author']!=_0x15a476)continue;if('formatBlock'!=_0x51280e['type']||'tablePasteCell'!=_0x51280e['subType'])continue;if(_0x51280e['getRanges']()['every'](_0xbeb0eb=>_0x4cbe23['some'](_0xe7553d=>_0xe7553d['containsRange'](_0xbeb0eb,!0x0)))){for(const _0x4a8e2a of _0x51280e['getAllAdjacentSuggestions']())_0x4a8e2a['isInContent']&&(_0x4a8e2a['discard'](),_0x36d655=!0x0);}}}return _0x36d655;}),_0x5622e3['model']['document']['registerPostFixer'](_0xdd2f10=>{const _0x5a589e=_0x5622e3['commands']['get']('redo');if(!_0x5a589e||!_0x5a589e['_createdBatches']['has'](_0xdd2f10['batch']))return!0x1;let _0x33ab94=!0x1;const _0x218d21=_0x5622e3['plugins']['get']('Users')['me'],_0x1b92b5=_0x5622e3['model']['document']['differ']['getChanges'](),_0x203917=Array['from'](_0x5622e3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4715cf,data:_0x44eb30})=>{const {group:_0x54a6bc,subType:_0x4cf5a3,authorId:_0xb998ec}=_0x2aadd0['_splitMarkerName'](_0x4715cf);return'suggestion'==_0x54a6bc&&'tablePaste'==_0x4cf5a3&&_0xb998ec==_0x218d21['id']&&!_0x44eb30['oldRange'];});for(const _0x3eb193 of _0x1b92b5){if('insert'!=_0x3eb193['type']||'tableCellSuggestion'!=_0x3eb193['name']||0x1!=_0x3eb193['length'])continue;const _0x2f4e67=_0xdd2f10['createRange'](_0x3eb193['position'],_0x3eb193['position']['getShiftedBy'](0x1));if(!_0x203917['find'](({data:_0x142ccd})=>_0x142ccd['newRange']['isEqual'](_0x2f4e67))){for(const {name:_0x3787d6,data:_0x5524a2}of _0x203917)if(_0x2f4e67['containsRange'](_0x5524a2['newRange'])){_0xdd2f10['updateMarker'](_0x3787d6,{'range':_0x2f4e67}),_0x33ab94=!0x0;break;}}}return _0x33ab94;}),_0x5622e3['model']['document']['registerPostFixer'](_0x38b7eb=>{let _0x139490=!0x1;const _0x96f620=_0x5622e3['plugins']['get']('Users')['me'],_0x3d281d=_0x2aadd0['getSuggestions']()['filter'](_0x521a72=>_0x521a72['isInContent']&&_0x521a72['author']==_0x96f620),_0x5dc35a=new Set(),_0x40f965=new Set();for(const _0x11b5c8 of _0x3d281d)if('tablePaste'==_0x11b5c8['subType'])for(const _0x25e800 of _0x11b5c8['getMarkers']()){const _0x32c5f6=_0x25e800['getRange']()['getContainedElement']();if(_0x32c5f6){if(_0x32c5f6['is']('element','tableCellSuggestion')&&Oe(_0x32c5f6)){_0x11b5c8['removeMarker'](_0x25e800['name']),_0x5dc35a['add'](_0x32c5f6),_0x139490=!0x0;const _0x948d39=_0x32c5f6['nextSibling'],_0x2bb3be=_0x32c5f6['previousSibling'],_0xc3e4a1=_0x948d39&&_0x948d39['is']('element','tableCellSuggestion'),_0x59a783=_0x2bb3be&&_0x2bb3be['is']('element','tableCellSuggestion');_0xc3e4a1&&!_0x5dc35a['has'](_0x948d39)&&_0x40f965['add'](_0x948d39),_0x59a783&&!_0x5dc35a['has'](_0x2bb3be)&&_0x40f965['add'](_0x2bb3be);}else _0x32c5f6['is']('element','paragraph')&&_0x32c5f6['isEmpty']&&(_0x11b5c8['removeMarker'](_0x25e800['name']),_0x139490=!0x0);}}else{if('tablePasteCell'==_0x11b5c8['subType']){if(!_0x11b5c8['attributes']||!_0x11b5c8['attributes']['tablePasteChainId'])continue;const _0x3288d0=_0x11b5c8['attributes']['markerAttributes'];if(_0x3288d0&&Object['keys'](_0x3288d0)['length'])continue;const _0x35fbb3=_0x11b5c8['attributes']['tablePasteChainId'];let _0x4386fe=!0x0,_0x227f20=!0x0;for(const _0x4f9b2e of _0x3d281d)if(_0x4f9b2e['subType']&&_0x4f9b2e['subType']['startsWith']('tablePaste')){if(!_0x4f9b2e['attributes']['tablePasteChainId']){_0x227f20=!0x1;break;}if(_0x4f9b2e['id']!=_0x11b5c8['id']&&_0x4f9b2e['attributes']['tablePasteChainId']==_0x35fbb3){_0x4386fe=!0x1;break;}}_0x227f20&&_0x4386fe&&(_0x11b5c8['removeMarkers'](),_0x139490=!0x0);}}for(const _0x1645e3 of _0x5dc35a)_0x38b7eb['remove'](_0x1645e3);for(const _0x178829 of _0x40f965)_0x38b7eb['unwrap'](_0x178829);return _0x139490;}),_0x5622e3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x19ae24=>_0x511428(_0x19ae24),'converterPriority':'high'}),_0x5622e3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3b8b93,_0x13b10e)=>_0x13b10e['options']['showSuggestionHighlights']?_0x511428(_0x3b8b93,!0x1):null,'converterPriority':'high'});const _0x92e1ea=_0x5622e3['editing']['view'];this['listenTo'](_0x92e1ea['document'],'clipboardOutput',(_0x110754,_0x5f582b)=>{const _0xf340b6=[];for(const _0x421e24 of _0x92e1ea['createRangeIn'](_0x5f582b['content'])['getItems']())_0x421e24['is']('element','suggestion-td')&&_0xf340b6['push'](_0x421e24);_0x92e1ea['change'](_0x25e527=>{for(const _0x5ad815 of _0xf340b6)_0x25e527['move'](_0x25e527['createRangeIn'](_0x5ad815),_0x25e527['createPositionBefore'](_0x5ad815)),_0x25e527['remove'](_0x5ad815);});});}}function Oe(_0x955892){if(_0x955892['isEmpty'])return!0x0;const _0x35caa5=_0x955892['getChild'](0x0);return _0x35caa5['is']('element','paragraph')&&_0x35caa5['isEmpty'];}function Ue(_0x162df8,_0x1548b4={},_0x466bbb){for(const {isAnchor:_0x328f82,cellHeight:_0x3addee,cellWidth:_0x294dbc}of _0x466bbb['createTableWalker'](_0x162df8,{'includeAllSlots':!0x0,..._0x1548b4}))if(!_0x328f82||0x1!=_0x3addee||0x1!=_0x294dbc)return!0x1;return!0x0;}class Dt extends _0x5d6d85{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x79b54f=this['editor']['plugins']['get']('TrackChangesEditing');_0x79b54f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x79b54f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x79b54f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x79b54f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x79b54f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x79b54f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5b9727,_0x195e6b){const _0x4352a7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35ab06=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4a0c3e=_0x195e6b['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x139664=_0x35ab06['getColumnGroupElement'](_0x4a0c3e);let _0xecd73e=_0x139664?_0x35ab06['getTableColumnsWidths'](_0x139664):null,_0x51339d=_0x4a0c3e['getAttribute']('tableWidth')||null;const _0x1e56e0=_0x195e6b['tableWidth']||_0x51339d,_0x47cf72=_0x195e6b['columnWidths']||_0xecd73e,_0x35e6da=this['editor']['plugins']['get']('Users')['me'];for(const _0x19c9ab of _0x4352a7['getSuggestions']()){const _0x5bf363=_0x19c9ab['getContainedElement']();if('resizeTable'===_0x19c9ab['subType']&&_0x5bf363===_0x4a0c3e){_0x19c9ab['author']!==_0x35e6da&&_0x19c9ab['discard']();const _0x5f265d=_0x19c9ab['data']['commandParams'];_0x51339d=_0x5f265d[0x0]['tableWidth'],_0xecd73e=_0x5f265d[0x0]['columnWidths'];break;}}_0x5b9727({'table':_0x4a0c3e,'tableWidth':_0x1e56e0,'columnWidths':_0x47cf72}),_0x4352a7['markBlockFormat'](_0x4a0c3e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x51339d,'columnWidths':_0xecd73e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x38aa1a){if('formatBlock'!=_0x38aa1a['type']&&'formatInline'!=_0x38aa1a['type'])return;const {data:_0xd8a8d2}=_0x38aa1a;if(_0xd8a8d2&&'resizeTable'===_0xd8a8d2['formatGroupId']){const _0x359816='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x359816)};}}}class Mt extends _0x5d6d85{['afterInit'](){const _0x2cf554=this['editor'];_0x2cf554['plugins']['has']('Template')&&_0x2cf554['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x5d6d85{['afterInit'](){const _0x23310b=this['editor'];if(!_0x23310b['commands']['get']('insertTableOfContents'))return;_0x23310b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x52c3c6=_0x23310b['plugins']['get']('TrackChangesEditing'),_0x4c69d6=_0x23310b['locale'];_0x52c3c6['descriptionFactory']['registerElementLabel']('tableOfContents',_0x586be8=>o(_0x4c69d6,'ELEMENT_TABLE_OF_CONTENTS',_0x586be8));}}class Bt extends _0x5d6d85{['afterInit'](){const _0x15d953=this['editor'];if(!_0x15d953['plugins']['has']('Title'))return;const _0x3f3f96=_0x15d953['plugins']['get']('TrackChangesEditing');_0x3f3f96['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x15d953['locale'],'ELEMENT_TITLE')),_0x15d953['model']['document']['registerPostFixer'](_0x43df81=>{let _0x2f0aa6=!0x1;const _0x5155ea=Array['from'](_0x15d953['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x49caff,data:_0x5ecc57}of _0x5155ea){const {group:_0x4554c9}=_0x3f3f96['_splitMarkerName'](_0x49caff);if('suggestion'!==_0x4554c9||!_0x5ecc57['newRange'])continue;const _0x1c8782=_0x5ecc57['newRange'],_0x20c4df=_0x1c8782['end']['nodeBefore'];if(!_0x20c4df||!_0x20c4df['is']('element','title-content'))continue;if(!_0x1c8782['start']['isTouching'](_0x1c8782['end']))continue;const _0x319f50=_0x15d953['model']['schema']['getNearestSelectionRange'](_0x1c8782['end'],'forward');if(_0x319f50&&_0x319f50['isCollapsed']){const _0x2ee696=_0x43df81['createRange'](_0x1c8782['start'],_0x319f50['start']);_0x2ee696['isEqual'](_0x1c8782)||(_0x43df81['updateMarker'](_0x49caff,{'range':_0x2ee696}),_0x2f0aa6=!0x0);}_0x2f0aa6||(_0x43df81['removeMarker'](_0x49caff),_0x2f0aa6=!0x0);}return _0x2f0aa6;});}}class Ot extends _0x5d6d85{['afterInit'](){const _0x12a806=this['editor'],_0x52d7b2=_0x12a806['plugins']['get']('TrackChangesEditing');_0x12a806['plugins']['has']('Uploadcare')&&(_0x52d7b2['enableCommand']('uploadcare'),_0x12a806['plugins']['has']('UploadcareImageEdit')&&(_0x52d7b2['enableCommand']('uploadcareImageEdit'),_0x52d7b2['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x52d7b2['registerBlockAttribute']('uploadcareImageId'),_0x52d7b2['descriptionFactory']['registerDescriptionCallback'](_0x4cc4b8=>{if('attribute'!=_0x4cc4b8['type'])return;const {data:_0x4567c8}=_0x4cc4b8;return _0x4567c8&&'uploadcareImageId'==_0x4567c8['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x5d6d85{['afterInit'](){const _0x5c80d6=this['editor'],_0x587a41=_0x5c80d6['plugins']['get']('TrackChangesEditing');_0x5c80d6['plugins']['has']('UndoEditing')&&(_0x587a41['enableCommand']('undo'),_0x587a41['enableCommand']('redo'));}}class Tt extends _0x5d6d85{static get['requires'](){return[vt];}['afterInit'](){const _0x1b4205=this['editor'];if(!_0x1b4205['plugins']['has']('TableCaptionEditing'))return;_0x1b4205['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x5d6d85{['tableProperties'];['tableCellProperties'];constructor(_0x5d5043){super(_0x5d5043),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 _0x2bbd03=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x286d46 of this['tableProperties'])_0x2bbd03['enableCommand'](_0x286d46,(_0x5c2d94,_0x158d0b)=>{const _0x428bbf=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x286d46,[_0x428bbf],this['tableProperties'],'tableProperties',_0x5c2d94,_0x158d0b);});_0x2bbd03['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2bbd03['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2bbd03['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x538666,_0x3bb842)=>this['handleDiscardAction'](this['tableProperties'],_0x538666,_0x3bb842)),_0x2bbd03['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xa55cc of this['tableCellProperties'])_0x2bbd03['enableCommand'](_0xa55cc,(_0x35a34e,_0x522a2e)=>{const _0x13fe4f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xa55cc,_0x13fe4f,this['tableCellProperties'],'tableCellProperties',_0x35a34e,_0x522a2e);});_0x2bbd03['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2bbd03['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2bbd03['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x35a81c,_0x13c5e8)=>this['handleDiscardAction'](this['tableCellProperties'],_0x35a81c,_0x13c5e8)),_0x2bbd03['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2bbd03['descriptionFactory']['registerDescriptionCallback'](_0x49c6be=>this['handleSuggestionDescription'](_0x49c6be));}['_handlePropertyChange'](_0x3e440b,_0x28711e,_0x36d351,_0x1bdcdb,_0x38e4ca,_0x1f6ca9){const _0x12ae2d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1f6ca9['batch'],()=>{for(const _0x38ed13 of _0x28711e){if(this['_getSuggestion'](_0x38ed13,_0x1bdcdb))_0x38e4ca(_0x1f6ca9);else{const _0x1fb3aa={};for(const _0x490dc0 of _0x36d351){const _0x596ddf=_0x38ed13['getAttribute'](_0x490dc0);void 0x0!==_0x596ddf&&(_0x1fb3aa[_0x490dc0]=_0x596ddf);}_0x38e4ca(_0x1f6ca9),_0x12ae2d['markBlockFormat'](_0x38ed13,{'commandParams':[_0x1fb3aa]},[],_0x1bdcdb);}}});}['handleDiscardAction'](_0x5a92c1,_0x4cc17b,_0x2c14c5){const _0x2c2359=_0x4cc17b[0x0]['start']['nodeAfter'],_0x202f16=_0x2c14c5['commandParams'][0x0];this['editor']['model']['change'](_0x125670=>{for(const _0x2f7ba1 of _0x5a92c1)void 0x0!==_0x202f16[_0x2f7ba1]?_0x125670['setAttribute'](_0x2f7ba1,_0x202f16[_0x2f7ba1],_0x2c2359):_0x125670['removeAttribute'](_0x2f7ba1,_0x2c2359);});}['handleSuggestionDescription'](_0x5ad4dd){if(_0x5ad4dd['data'])switch(_0x5ad4dd['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x4bc4bb,_0x525222){const _0x188f7b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x184291 of _0x188f7b['getSuggestions']({'skipNotAttached':!0x0})){const _0x51d917=_0x184291['getContainedElement']();if(_0x184291['subType']===_0x525222&&_0x51d917===_0x4bc4bb)return _0x184291;}return null;}}const m='$elementName';class p extends _0x5d6d85{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0xc8e4c,_0x5cc16f,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Tt,Nt,Dt,$t,xt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f77fb){super(_0x1f77fb),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x57f06f,_0x453ee6,_0xf57ca3,_0x54daeb)=>{this['_model']['change'](()=>{for(const _0x4263ed of[..._0x54daeb,..._0xf57ca3])this['_model']['markers']['has'](_0x4263ed)&&_0x1f77fb['editing']['reconvertMarker'](_0x4263ed);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1f77fb['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x1f77fb['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1f77fb['config']['get']('trackChanges.trackFormatChanges'),_0x1f77fb['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1f77fb['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1f77fb,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x169d26=this['editor'],_0x4d7bde=(_0x1e131a,_0x1d702b)=>{if('attribute'!=_0x1e131a)return'ck-suggestion-marker-'+_0x1e131a;const _0xca4721=_0x1d702b['split']('|')[0x0];return this['_isBlockAttribute'](_0xca4721)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x169d26['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x30dc73=>{const {id:_0x49907c,authorId:_0x5f55b3,type:_0x7ecc84,subType:_0xc63db0}=this['_splitMarkerName'](_0x30dc73['markerName']),_0x5bd667=['ck-suggestion-marker',_0x4d7bde(_0x7ecc84,_0xc63db0)];let _0x37370e=0xbb8;return this['activeMarkers']['includes'](_0x30dc73['markerName'])&&(_0x5bd667['push']('ck-suggestion-marker--active'),_0x37370e=0xbc2),'deletion'==_0x7ecc84&&(_0x37370e+=0x5),{'classes':_0x5bd667,'attributes':{'data-suggestion':_0x49907c,'data-author-id':_0x5f55b3},'priority':_0x37370e};}}),_0x169d26['conversion']['for']('dataDowncast')['add'](_0x26775c=>{_0x26775c['on']('addMarker:suggestion',(_0xa7de18,_0x8a5aa0,_0x2ccf55)=>{if(!_0x2ccf55['options']['showSuggestionHighlights'])return;const _0x5916d3=_0x8a5aa0['item'];if(!_0x5916d3)return;const _0x20ba93=_0x2ccf55['mapper']['toViewElement'](_0x5916d3);_0x169d26['model']['schema']['isObject'](_0x5916d3)&&_0x20ba93&&!_0x20ba93['getCustomProperty']('widget')&&_0x20ba93['is']('containerElement')&&_0xf74619(_0x20ba93,_0x2ccf55['writer']);},{'priority':'high'});}),_0x169d26['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2428ef,_0x40c6a6)=>{if(!_0x40c6a6['options']['showSuggestionHighlights'])return null;const {type:_0x40abc2,subType:_0x5253e6}=this['_splitMarkerName'](_0x2428ef['markerName']);return{'classes':['ck-suggestion-marker',_0x4d7bde(_0x40abc2,_0x5253e6)],'priority':0xbb8};}});const _0x525caa=({showActiveMarkers:_0x1a7746=!0x0,isAttributeSuggestion:_0x4b75eb=!0x1}={})=>(_0x1dc742,_0x4243fb,_0x5328ec)=>{if(!_0x4243fb['item'])return;const {id:_0x1d4568,authorId:_0x362014}=this['_splitMarkerName'](_0x4243fb['markerName']);if(_0x4b75eb){const _0x591525=this['_suggestions']['get'](_0x1d4568),_0x43dd9a=this['_getAttributeKey'](_0x591525);if(!this['_isBlockAttribute'](_0x43dd9a))return;}if(_0x4243fb['item']['is']('selection'))return void _0x5328ec['consumable']['consume'](_0x4243fb['item'],_0x1dc742['name']);const _0xb7710e=_0x5328ec['mapper']['toViewElement'](_0x4243fb['item']);if(_0x4243fb['item']['is']('element')&&_0x169d26['model']['schema']['isBlock'](_0x4243fb['item'])&&!_0xb7710e['getCustomProperty']('addHighlight')){_0x5328ec['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xb7710e),_0x5328ec['writer']['setAttribute']('data-suggestion',_0x1d4568,_0xb7710e),_0x5328ec['writer']['setAttribute']('data-author-id',_0x362014,_0xb7710e),_0x5328ec['mapper']['bindElementToMarker'](_0xb7710e,_0x4243fb['markerName']),_0x1a7746&&(this['activeMarkers']['includes'](_0x4243fb['markerName'])?_0x5328ec['writer']['addClass']('ck-suggestion-marker--active',_0xb7710e):_0x5328ec['writer']['removeClass']('ck-suggestion-marker--active',_0xb7710e));for(const _0x2bdadf of _0x169d26['model']['createRangeIn'](_0x4243fb['item'])['getItems']())_0x5328ec['consumable']['consume'](_0x2bdadf,_0x1dc742['name']);_0x5328ec['consumable']['consume'](_0x4243fb['item'],_0x1dc742['name']);}};_0x169d26['conversion']['for']('dataDowncast')['add'](_0x281a48=>{_0x281a48['on']('addMarker:suggestion:formatBlock',(_0x2e8eb2,_0x2fd3df,_0x5a522b)=>{_0x5a522b['options']['showSuggestionHighlights']&&_0x525caa({'showActiveMarkers':!0x1})(_0x2e8eb2,_0x2fd3df,_0x5a522b);},{'priority':'highest'});}),_0x169d26['conversion']['for']('dataDowncast')['add'](_0x3a52a6=>{_0x3a52a6['on']('addMarker:suggestion:attribute',(_0x50471b,_0x33599c,_0x1beefe)=>{_0x1beefe['options']['showSuggestionHighlights']&&_0x525caa({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x50471b,_0x33599c,_0x1beefe);},{'priority':'highest'});}),_0x169d26['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3f60c4,_0x2d782b)=>_0x2d782b['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3f60c4['substr'](0xb)}}),_0x169d26['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5f2409,{writer:_0x42b551})=>{let _0x48520e='suggestion:'+_0x5f2409['getAttribute']('suggestion-type')+':'+_0x5f2409['getAttribute']('id');return _0x5f2409['getAttribute']('marker-count')&&(_0x48520e+=':'+_0x5f2409['getAttribute']('marker-count')),_0x42b551['createElement']('$marker',{'data-name':_0x48520e});}}),_0x169d26['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x169d26['conversion']['for']('editingDowncast')['add'](_0x2a3fb2=>{_0x2a3fb2['on']('addMarker:suggestion:formatBlock',_0x525caa(),{'priority':'high'});}),_0x169d26['conversion']['for']('editingDowncast')['add'](_0x3c5570=>{_0x3c5570['on']('addMarker:suggestion:attribute',_0x525caa({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x169d26['conversion']['for']('editingDowncast')['add'](_0x5a35c0=>{_0x5a35c0['on']('removeMarker:suggestion:formatBlock',(_0x4ebd6a,_0x1d91d6,_0x22dc8b)=>{const _0x5f2586=_0x22dc8b['mapper']['markerNameToElements'](_0x1d91d6['markerName']);if(_0x5f2586){for(const _0x3c92f8 of _0x5f2586)_0x3c92f8['getCustomProperty']('addHighlight')||(_0x22dc8b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3c92f8),_0x22dc8b['writer']['removeAttribute']('data-suggestion',_0x3c92f8),_0x22dc8b['writer']['removeAttribute']('data-author-id',_0x3c92f8),_0x22dc8b['mapper']['unbindElementFromMarkerName'](_0x3c92f8,_0x1d91d6['markerName']));}},{'priority':'high'});}),_0x169d26['conversion']['for']('editingDowncast')['add'](_0x30562a=>{_0x30562a['on']('removeMarker:suggestion:attribute',(_0x5b1e5a,_0x558afd,_0x3baa7f)=>{const _0x34e0a9=_0x3baa7f['mapper']['markerNameToElements'](_0x558afd['markerName']);if(!_0x34e0a9)return;const {id:_0x2ffbfc}=this['_splitMarkerName'](_0x558afd['markerName']),_0x29948f=this['_suggestions']['get'](_0x2ffbfc),_0x3e9645=this['_getAttributeKey'](_0x29948f);if(this['_isBlockAttribute'](_0x3e9645)){for(const _0x3cc85d of _0x34e0a9)_0x3cc85d['getCustomProperty']('addHighlight')||(_0x3baa7f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3cc85d),_0x3baa7f['writer']['removeAttribute']('data-suggestion',_0x3cc85d),_0x3baa7f['writer']['removeAttribute']('data-author-id',_0x3cc85d),_0x3baa7f['mapper']['unbindElementFromMarkerName'](_0x3cc85d,_0x558afd['markerName']));}},{'priority':'high'});}),_0x169d26['model']['document']['registerPostFixer'](_0x364a12=>{let _0x5128cc=!0x1;const _0x516253=Array['from'](_0x169d26['model']['document']['differ']['getChangedMarkers']()),_0x19d5fb=new Set();for(const {name:_0x22b656,data:_0x354bff}of _0x516253){const {group:_0x340593,type:_0x421d25,subType:_0x1a5425,id:_0x41c5c4}=this['_splitMarkerName'](_0x22b656);if('suggestion'!==_0x340593)continue;const _0x1ce08d=this['_suggestions']['get'](_0x41c5c4);if(null!=_0x354bff['newRange']){'formatInline'==_0x421d25&&(_0x5128cc=_0x5128cc||Gt(_0x354bff['newRange'],_0x22b656,_0x364a12,_0x169d26['model']['schema']));const _0xc33fd='attribute'==_0x421d25&&this['_isBlockAttribute'](_0x1a5425['split']('|')[0x0]);if(_0x354bff['newRange']['isCollapsed']||'$graveyard'==_0x354bff['newRange']['root']['rootName']||'formatBlock'==_0x421d25&&!Lt(_0x354bff['newRange'])||_0xc33fd&&!Lt(_0x354bff['newRange'])||'deletion'==_0x421d25&&!(!Pt(_0x4a9f76=_0x354bff['newRange'])&&!function(_0x9c61d2){return _0x9c61d2['start']['parent']==_0x9c61d2['end']['nodeBefore']&&_0x9c61d2['start']['isAtEnd'];}(_0x4a9f76)))_0x364a12['removeMarker'](_0x22b656),_0x5128cc=!0x0;else{if(!_0x1ce08d||!_0x1ce08d['isInContent'])continue;if(_0x354bff['newRange']&&_0x354bff['oldRange']&&_0x354bff['newRange']['isEqual'](_0x354bff['oldRange']))continue;_0x19d5fb['add'](_0x1ce08d);}}}var _0x4a9f76;return _0x19d5fb['size']>0x0&&(_0x5128cc=!!this['_joinWithAdjacentSuggestions'](_0x19d5fb)||_0x5128cc),_0x5128cc;}),_0x169d26['model']['document']['registerPostFixer'](_0x1fc20c=>{let _0x54df96=!0x1;for(const _0x4d2ad7 of _0x169d26['model']['document']['differ']['getChanges']())if('insert'==_0x4d2ad7['type'])for(const _0x2a5715 of this['_suggestions']['values']()){if(_0x2a5715['isMultiRange']||!_0x2a5715['isInContent'])continue;const _0x4dd932='formatBlock'==_0x2a5715['type'],_0x41a3f4=this['_getAttributeKey'](_0x2a5715),_0xdf51d9=_0x41a3f4&&this['_isBlockAttribute'](_0x41a3f4);if(!_0x4dd932&&!_0xdf51d9)continue;const _0xf4ca=_0x2a5715['getFirstRange']();if(_0xf4ca['start']['parent']!=_0xf4ca['end']['parent']&&!_0xf4ca['end']['isAtEnd']){const _0x4d2d1c=_0x169d26['model']['createPositionAt'](_0xf4ca['start']['nodeAfter'],'end'),_0x1fc990=_0x169d26['model']['createRange'](_0xf4ca['start'],_0x4d2d1c);_0x1fc20c['updateMarker'](_0x2a5715['getFirstMarker'](),{'range':_0x1fc990}),_0x54df96=!0x0;}}return _0x54df96;}),_0x169d26['model']['document']['registerPostFixer'](_0x16a0a9=>this['_processAttributeChanges'](_0x16a0a9)),_0x169d26['model']['document']['registerPostFixer'](_0x2a5ed8=>!_0x2a5ed8['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2a5ed8)),_0x169d26['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x169d26['model']['document']['on']('change:data',(_0x56f85e,_0x1f300b)=>{if(!_0x1f300b['isLocal']||_0x1f300b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2e48bc=_0x169d26['model']['document']['differ']['getChanges']();if(0x0==_0x2e48bc['length'])return;const _0x472c1f=[],_0x1f874=_0x2e48bc['filter'](_0x135716=>'attribute'==_0x135716['type']),_0x3596f7=_0x2e48bc['filter'](_0x249fa9=>'insert'==_0x249fa9['type']&&'$text'!=_0x249fa9['name']);for(const _0xbfc11b of _0x1f874)this['_isRegisteredAttribute'](_0xbfc11b['attributeKey'])&&_0x472c1f['push']({'key':_0xbfc11b['attributeKey'],'newValue':_0xbfc11b['attributeNewValue'],'oldValue':_0xbfc11b['attributeOldValue'],'range':Jt(_0xbfc11b['range'],_0x169d26['model'])});for(const _0xc69647 of _0x3596f7){if('rename'!=_0xc69647['action']&&'refresh'!=_0xc69647['action'])continue;const _0x391c80=Ht(_0xc69647['position']['nodeAfter'],_0x169d26['model']),_0x3f3e3e=_0xc69647['before'];'rename'==_0xc69647['action']&&_0x472c1f['push']({'key':m,'newValue':_0xc69647['name'],'oldValue':_0x3f3e3e['name'],'range':_0x391c80});for(const [_0x190f8f,_0x15ba20]of _0x3f3e3e['attributes']){if(!this['_isRegisteredAttribute'](_0x190f8f))continue;const _0x5e9d44=_0xc69647['attributes']['get'](_0x190f8f);_0x15ba20!==_0x5e9d44&&_0x472c1f['push']({'key':_0x190f8f,'newValue':_0x5e9d44,'oldValue':_0x15ba20,'range':_0x391c80});}for(const [_0x171c35,_0x290f1a]of _0xc69647['attributes'])this['_isRegisteredAttribute'](_0x171c35)&&(_0x3f3e3e['attributes']['has'](_0x171c35)||_0x472c1f['push']({'key':_0x171c35,'newValue':_0x290f1a,'oldValue':null,'range':_0x391c80}));}0x0!=_0x472c1f['length']&&_0x169d26['model']['enqueueChange'](_0x1f300b,_0x25c739=>{const _0x136bfe=_0x39ba3e();for(const {range:_0x2da94a,key:_0x43dbcd,oldValue:_0x213e3f,newValue:_0x46e76f}of _0x472c1f)this['markAttributeChange'](_0x2da94a,_0x43dbcd,_0x213e3f,_0x46e76f,{'groupId':_0x136bfe});this['_reduceExistingSuggestions'](_0x25c739,_0x472c1f);});},{'priority':'lowest'}),_0x169d26['model']['markers']['on']('update:suggestion',(_0x441540,_0x42e501,_0x1e80d1)=>{if(null==_0x1e80d1){const {id:_0x6ef999}=this['_splitMarkerName'](_0x42e501['name']),_0x45e82e=this['_suggestions']['get'](_0x6ef999);_0x45e82e&&_0x45e82e['addMarkerName'](_0x42e501['name']);}}),_0x169d26['model']['document']['on']('change:data',()=>{const _0x953531=Array['from'](_0x169d26['model']['document']['differ']['getChangedMarkers']())['filter'](_0x14ceb6=>'suggestion'===this['_splitMarkerName'](_0x14ceb6['name'])['group']);if(0x0===_0x953531['length'])return;_0x953531['sort']((_0x41c127,_0x5468ac)=>{const _0x37a97a=_0x41c127['data']['oldRange'],_0x1c6c19=_0x5468ac['data']['oldRange'];return null===_0x37a97a&&null===_0x1c6c19?0x0:null===_0x37a97a&&null!==_0x1c6c19?-0x1:null!==_0x37a97a&&null===_0x1c6c19?0x1:_0x37a97a['start']['isBefore'](_0x1c6c19['start'])?-0x1:0x1;});const _0xef1e84=new Set(),_0x3df60b=new Set();for(const {name:_0x161ba5,data:_0x55ca0f}of _0x953531){const {id:_0x29f75c}=this['_splitMarkerName'](_0x161ba5);if(null===_0x55ca0f['oldRange']){const _0x5894a7=this['_handleNewSuggestionMarker'](_0x161ba5);_0x3df60b['add'](_0x5894a7);}else{const _0x914ecd=this['_suggestions']['get'](_0x29f75c);null!==_0x55ca0f['newRange']||_0x914ecd['isInContent']?(_0xef1e84['add'](_0x914ecd['head']),_0x3df60b['add'](_0x914ecd)):this['_removeSuggestion'](_0x914ecd);}}_0x3df60b['size']>0x0&&this['_refreshSuggestionsChain'](_0x3df60b);for(const _0x1cc61c of _0xef1e84)this['fire']('suggestionChanged',_0x1cc61c);}),_0x169d26['model']['on']('applyOperation',(_0x2122b9,_0xef7aab)=>{const _0x38863b=_0xef7aab[0x0];if(!this['_suggestions']['size'])return;if(!_0x38863b['isDocumentOperation'])return;if(_0x38863b['batch']['isUndo']||!_0x38863b['batch']['isLocal'])return;let _0x8f2f86,_0x64c247;switch(_0x38863b['type']){case'insert':_0x8f2f86=_0x169d26['model']['createPositionAt'](_0x38863b['position']),_0x64c247=_0x8f2f86['getShiftedBy'](_0x38863b['howMany']);break;case'split':_0x8f2f86=_0x169d26['model']['createPositionAt'](_0x38863b['splitPosition']),_0x64c247=_0x169d26['model']['createPositionAt'](_0x38863b['moveTargetPosition']);break;case'move':_0x8f2f86=_0x169d26['model']['createPositionAt'](_0x38863b['targetPosition']),_0x64c247=_0x8f2f86['getShiftedBy'](_0x38863b['howMany']);break;default:return;}const _0xbfcd00=_0x169d26['model']['createRange'](_0x8f2f86,_0x64c247);_0x169d26['model']['change'](()=>{for(const {suggestion:_0x10e2f3,meta:_0x393d01}of this['_findSuggestions'](_0xbfcd00)){if(_0x10e2f3['isMultiRange'])continue;if('formatInline'==_0x10e2f3['type'])continue;const _0x20f0ab=this['_getAttributeKey'](_0x10e2f3);if(_0x20f0ab&&this['_isBlockAttribute'](_0x20f0ab)&&'split'!=_0x38863b['type'])continue;const _0x1dc58e=_0x10e2f3['data']&&_0x10e2f3['data']['multipleBlocks'];('formatBlock'!=_0x10e2f3['type']||'split'==_0x38863b['type']&&!_0x1dc58e)&&(_0x393d01['containsRangeInObject']||'insertion'==_0x10e2f3['type']&&_0x393d01['isOwn']||_0x10e2f3['getFirstRange']()['containsRange'](_0xbfcd00)&&this['_breakSuggestionMarker'](_0x10e2f3,_0x8f2f86,_0x64c247));}});},{'priority':'lowest'}),_0x169d26['model']['on']('deleteContent',(_0x185652,_0x2b9da8)=>{const _0x48c23b=_0x2b9da8[0x0],_0x1d0bbe=_0x2b9da8[0x1];if(_0x1d0bbe&&_0x1d0bbe['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x48c23b['isCollapsed'])return;const _0x439255=_0x169d26['model']['schema'],{start:_0x269c38,end:_0x115774}=_0x48c23b['getFirstRange'](),_0x1606e3=_0x269c38['nodeAfter']&&_0x439255['isLimit'](_0x269c38['nodeAfter'])?null:_0x439255['getNearestSelectionRange'](_0x269c38,'forward'),_0x2c4963=_0x115774['nodeBefore']&&_0x439255['isLimit'](_0x115774['nodeBefore'])?null:_0x439255['getNearestSelectionRange'](_0x115774,'backward'),_0x4ca362=_0x169d26['model']['createRange'](_0x1606e3?_0x1606e3['start']:_0x269c38,_0x2c4963?_0x2c4963['end']:_0x115774);_0x169d26['model']['change'](_0x343f46=>{this['markDeletion'](_0x4ca362);const _0x5efbee=_0x169d26['model']['schema']['getNearestSelectionRange'](_0x4ca362['start']);_0x48c23b['is']('documentSelection')?_0x343f46['setSelection'](_0x5efbee):_0x48c23b['setTo'](_0x5efbee);}),_0x185652['stop']();},{'priority':_0x144da7['normal']+0xa}),_0x169d26['model']['on']('insertContent',(_0x55b250,_0xd5b77)=>{const _0x510dce=_0xd5b77[_0xd5b77['length']-0x1];_0x510dce&&_0x510dce['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x169d26['model']['change'](()=>{let _0x5755b8=_0x169d26['model']['insertContent'](_0xd5b77[0x0],_0xd5b77[0x1],_0xd5b77[0x2],{'forceDefaultExecution':!0x0});if(!_0x5755b8)return;_0x55b250['return']=_0x5755b8['clone']();const _0x4e9444=_0x5755b8['end']['nodeBefore'],_0x590ca1=_0x169d26['model']['schema'];_0x4e9444&&_0x590ca1['isBlock'](_0x4e9444)&&!_0x590ca1['isObject'](_0x4e9444)&&(_0x5755b8=_0x169d26['model']['createRange'](_0x5755b8['start'],_0x169d26['model']['createPositionAt'](_0x4e9444,'end'))),this['markInsertion'](_0x5755b8);}),_0x55b250['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x23a907=new O(_0x169d26,this['_suggestions']);_0x169d26['commands']['add']('acceptSuggestion',_0x23a907),this['enableCommand']('acceptSuggestion');const _0x524261=new R(_0x169d26,this['_suggestions']);_0x169d26['commands']['add']('discardSuggestion',_0x524261),this['enableCommand']('discardSuggestion'),_0x169d26['commands']['add']('acceptAllSuggestions',new x(_0x169d26,_0x23a907,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x169d26['commands']['add']('discardAllSuggestions',new x(_0x169d26,_0x524261,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x169d26['commands']['add']('acceptSelectedSuggestions',new E(_0x169d26,_0x23a907,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x169d26['commands']['add']('discardSelectedSuggestions',new E(_0x169d26,_0x524261,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2afff5=_0x169d26['plugins']['get']('CommentsRepository');this['listenTo'](_0x2afff5,'addComment',(_0x7d54a9,{threadId:_0x31d354})=>{const _0x220271=this['_suggestions']['get'](_0x31d354);_0x220271&&_0x220271['commentThread']&&0x1===_0x220271['commentThread']['length']&&this['_updateSuggestionData'](_0x31d354,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2afff5,'removeComment',(_0xf663d6,{threadId:_0x24cfa4})=>{const _0x52333a=this['_suggestions']['get'](_0x24cfa4);_0x52333a&&_0x52333a['commentThread']&&!_0x52333a['commentThread']['length']&&this['_updateSuggestionData'](_0x24cfa4,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2dcda9){const _0x5adec2=_0x424dd6([0x58,0x6f,0x48,0x4b,0x79,0x71,0x4a,0x6a,0x66,0x5a,0x54,0x32,0x34,0x64,0x39,0x63,0x30,0x33,0x46,0x67,0x52,0x6c,0x44,0x4d,0x50,0x47,0x73,0x41,0x38,0x55,0x6d,0x7a,0x70,0x51,0x35,0x37,0x6b,0x74,0x62,0x68,0x4e,0x6e,0x43,0x65,0x76,0x45,0x49,0x4f,0x72,0x77,0x53,0x69,0x56,0x59,0x36,0x4c,0x42,0x78,0x61,0x57,0x31,0x75]),_0x2a5335=0x583ce318,_0x245585=0x583bbdf0^_0x2a5335,_0x487d5a=window[_0x424dd6([0x44,0x61,0x74,0x65])][_0x424dd6([0x6e,0x6f,0x77])](),_0x356c35=_0x2dcda9[_0x424dd6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1f8465=new window[(_0x424dd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a060e=>{_0x356c35[_0x424dd6([0x6f,0x6e,0x63,0x65])](_0x424dd6([0x72,0x65,0x61,0x64,0x79]),_0x3a060e);}),_0xae9638={[_0x424dd6([0x6b,0x74,0x79])]:_0x424dd6([0x45,0x43]),[_0x424dd6([0x75,0x73,0x65])]:_0x424dd6([0x73,0x69,0x67]),[_0x424dd6([0x63,0x72,0x76])]:_0x424dd6([0x50,0x2d,0x32,0x35,0x36]),[_0x424dd6([0x78])]:_0x424dd6([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]),[_0x424dd6([0x79])]:_0x424dd6([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]),[_0x424dd6([0x61,0x6c,0x67])]:_0x424dd6([0x45,0x53,0x32,0x35,0x36])},_0x1086c8=_0x356c35[_0x424dd6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x424dd6([0x67,0x65,0x74])](_0x424dd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x426bef(){let _0x2f9dd8,_0x5048d0=null,_0xf459ef=null;try{if(_0x1086c8==_0x424dd6([0x47,0x50,0x4c]))return _0x424dd6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2f9dd8=_0x572c77(),!_0x2f9dd8)return _0x424dd6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2f9dd8[_0x424dd6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf459ef=_0x5b83b1(_0x2f9dd8[_0x424dd6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2f9dd8[_0x424dd6([0x6a,0x74,0x69])])),await _0x3d3945()?_0x28e3c5()?_0x6d79a4()?_0x424dd6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x19b66b()?(_0x2f9dd8[_0x424dd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x424dd6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5048d0=_0x1fd82c(_0x424dd6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2f9dd8[_0x424dd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x424dd6([0x74,0x72,0x69,0x61,0x6c])&&(_0x5048d0=_0x1fd82c(_0x424dd6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x20217c()):_0x424dd6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x424dd6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x424dd6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x34edef){return _0x424dd6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x6d79a4(){const _0x5de9b0=[_0x424dd6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x424dd6([0x74,0x72,0x69,0x61,0x6c])][_0x424dd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f9dd8[_0x424dd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x487d5a/0x3e8:0xe10*_0x245585;return _0x2f9dd8[_0x424dd6([0x65,0x78,0x70])]<_0x5de9b0;}function _0x28e3c5(){const _0x472eae=_0x2f9dd8[_0x424dd6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x472eae)return!0x1;if(_0x472eae[_0x424dd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x424dd6([0x2a])))return!0x0;if(_0x472eae[_0x424dd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x424dd6([0x54,0x43])))return!0x0;if(_0x472eae[_0x424dd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x424dd6([0x52,0x54,0x43]))){if(_0x446449())return!0x0;if(_0x17b943()||_0x1b3b33())return!0x0;}return!0x1;}function _0x19b66b(){const _0x28e0cf=_0x2f9dd8[_0x424dd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x28e0cf||0x0==_0x28e0cf[_0x424dd6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e121a}=new URL(window[_0x424dd6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x28e0cf[_0x424dd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e121a))return!0x0;const _0x325c7a=_0x5e121a[_0x424dd6([0x73,0x70,0x6c,0x69,0x74])](_0x424dd6([0x2e]));return _0x28e0cf[_0x424dd6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b83d8=>_0x3b83d8[_0x424dd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x424dd6([0x2a])))[_0x424dd6([0x6d,0x61,0x70])](_0x77ba18=>_0x77ba18[_0x424dd6([0x73,0x70,0x6c,0x69,0x74])](_0x424dd6([0x2e])))[_0x424dd6([0x73,0x6f,0x6d,0x65])](_0x1e38c9=>_0x325c7a[_0x424dd6([0x65,0x76,0x65,0x72,0x79])]((_0x35a280,_0x5149d5)=>_0x1e38c9[_0x5149d5]===_0x35a280||_0x1e38c9[_0x5149d5]===_0x424dd6([0x2a])));}function _0x20217c(){return _0x5048d0&&_0xf459ef?new window[(_0x424dd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe59e14,_0x437380)=>{_0x5048d0[_0x424dd6([0x74,0x68,0x65,0x6e])](_0xe59e14,_0x437380),_0xf459ef[_0x424dd6([0x74,0x68,0x65,0x6e])](_0x2a8e57=>{_0x2a8e57!=_0x424dd6([0x56,0x61,0x6c,0x69,0x64])&&_0xe59e14(_0x2a8e57);},_0x437380);}):_0x5048d0||_0xf459ef||_0x424dd6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5b83b1(_0x4e46f2,_0x176c26){return new window[(_0x424dd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x145929=>{if(_0x1d0972())return _0x145929(_0x424dd6([0x56,0x61,0x6c,0x69,0x64]));_0x58ff41(),_0x356c35[_0x424dd6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x424dd6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1bf343=!0x1;const _0x152a78=_0x39ba3e();function _0x2a8e84(_0x1f763b){return!!_0x1f763b&&(typeof _0x1f763b===_0x424dd6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1f763b===_0x424dd6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1f763b[_0x424dd6([0x74,0x68,0x65,0x6e])]===_0x424dd6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1f763b[_0x424dd6([0x63,0x61,0x74,0x63,0x68])]===_0x424dd6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x43931c(_0x5b7738){_0x5c86ad(_0x5b7738)[_0x424dd6([0x74,0x68,0x65,0x6e])](_0x15f1a0=>{if(!_0x15f1a0||_0x15f1a0[_0x424dd6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x424dd6([0x6f,0x6b]))return _0x424dd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x52578a(_0x3d3e2c(_0x152a78+_0x176c26))!=_0x15f1a0[_0x424dd6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x424dd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x424dd6([0x56,0x61,0x6c,0x69,0x64]);})[_0x424dd6([0x74,0x68,0x65,0x6e])](_0x21b4b4=>(_0x2e3665(),_0x21b4b4),()=>{const _0x220813=_0x4f373f();return null==_0x220813?(_0x2e3665(),_0x424dd6([0x56,0x61,0x6c,0x69,0x64])):_0x424dd6(_0x487d5a-_0x220813>(0x7c306718^_0x2a5335)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x424dd6([0x74,0x68,0x65,0x6e])](_0x145929)[_0x424dd6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x145929(_0x424dd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3d776b=0x580a0d98^_0x2a5335;function _0x2e3665(){const _0x9fa237=_0x424dd6([0x6c,0x6c,0x63,0x74,0x2d])+_0x52578a(_0x3d3e2c(_0x4e46f2)),_0x3ea922=_0x48a488(_0x52578a(window[_0x424dd6([0x4d,0x61,0x74,0x68])][_0x424dd6([0x63,0x65,0x69,0x6c])](_0x487d5a/_0x3d776b)));window[_0x424dd6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x424dd6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x9fa237,_0x3ea922);}function _0x4f373f(){const _0x1d5788=_0x424dd6([0x6c,0x6c,0x63,0x74,0x2d])+_0x52578a(_0x3d3e2c(_0x4e46f2)),_0x1e97d4=window[_0x424dd6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x424dd6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d5788);return _0x1e97d4?window[_0x424dd6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48a488(_0x1e97d4),0x10)*_0x3d776b:null;}function _0x5c86ad(_0x581a4d){return new window[(_0x424dd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a1ca7,_0xe4b6d7)=>{_0x581a4d[_0x424dd6([0x74,0x68,0x65,0x6e])](_0x4a1ca7,_0xe4b6d7),window[_0x424dd6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe4b6d7,0x583d37d8^_0x2a5335);});}}_0x356c35[_0x424dd6([0x6f,0x6e])](_0x424dd6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x14a660,_0x1d8dd3)=>{if(_0x1d8dd3[0x0]!=_0x4e46f2)return _0x145929(_0x424dd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1d8dd3[0x1]={..._0x1d8dd3[0x1],[_0x424dd6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x152a78};},{[_0x424dd6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x424dd6([0x68,0x69,0x67,0x68])}),_0x356c35[_0x424dd6([0x6f,0x6e])](_0x424dd6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x47fd18=>{_0x2a8e84(_0x47fd18[_0x424dd6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1bf343=!0x0,_0x43931c(_0x47fd18[_0x424dd6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x424dd6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x424dd6([0x6c,0x6f,0x77])}),_0x1f8465[_0x424dd6([0x74,0x68,0x65,0x6e])](()=>{_0x1bf343||_0x145929(_0x424dd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1d0972(){return _0x356c35[_0x424dd6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x424dd6([0x76,0x69,0x65,0x77])][_0x424dd6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x424dd6([0x61,0x75,0x74,0x6f]);}function _0x58ff41(){_0x356c35[_0x424dd6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x424dd6([0x76,0x69,0x65,0x77])][_0x424dd6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x424dd6([0x61,0x75,0x74,0x6f]);}}function _0x1fd82c(_0x4e65ea){const _0x3d24d7=[new window[(_0x424dd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37ac0b=>setTimeout(_0x37ac0b,0x5835ddd4^_0x2a5335)),_0x1f8465[_0x424dd6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x424dd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x341e11=>{let _0x12f9ef=0x0;_0x356c35[_0x424dd6([0x6d,0x6f,0x64,0x65,0x6c])][_0x424dd6([0x6f,0x6e])](_0x424dd6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5212b3,_0x568dc7)=>{_0x568dc7[0x0][_0x424dd6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x12f9ef++,_0x12f9ef==(0x583ce2e0^_0x2a5335)&&(_0x341e11(),_0x5212b3[_0x424dd6([0x6f,0x66,0x66])]());});}))];return window[_0x424dd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x424dd6([0x72,0x61,0x63,0x65])](_0x3d24d7)[_0x424dd6([0x74,0x68,0x65,0x6e])](()=>_0x4e65ea);}async function _0x75ca8(){await _0x1f8465,_0x356c35[_0x424dd6([0x6d,0x6f,0x64,0x65,0x6c])][_0x424dd6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1454f4,_0x356c35[_0x424dd6([0x6d,0x6f,0x64,0x65,0x6c])][_0x424dd6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1454f4,_0x356c35[_0x424dd6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x424dd6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x446449(){return _0x58c0df(_0x424dd6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x47ce3b(_0x424dd6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x424dd6([0x73,0x74,0x61,0x74,0x65])]==_0x424dd6([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x17b943(){return _0x58c0df(_0x424dd6([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 _0x1b3b33(){return _0x58c0df(_0x424dd6([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1e4f04(_0x28442a){const _0x3981ec=_0x59606c();_0x356c35[_0x3981ec]=_0x424dd6([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x28442a,_0x28442a!=_0x424dd6([0x56,0x61,0x6c,0x69,0x64])&&_0x75ca8();}function _0x59606c(){const _0x1fca5c=window[_0x424dd6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x424dd6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x424dd6([0x6e,0x6f,0x77])]())[_0x424dd6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x424dd6([0x2e]),'');let _0x4d547f=_0x424dd6([0x58]);for(let _0x43afd3=0x0;_0x43afd3<_0x1fca5c[_0x424dd6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43afd3+=0x2){let _0x590fd4=window[_0x424dd6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fca5c[_0x424dd6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43afd3,_0x43afd3+0x2));_0x590fd4>=_0x5adec2[_0x424dd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x590fd4-=_0x5adec2[_0x424dd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4d547f+=_0x5adec2[_0x590fd4];}return _0x4d547f;}function _0x572c77(){const _0x1c45d4=_0x1086c8[_0x424dd6([0x73,0x70,0x6c,0x69,0x74])](_0x424dd6([0x2e]));if(0x3!=_0x1c45d4[_0x424dd6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2d8a8c(_0x1c45d4[0x1]);function _0x2d8a8c(_0x12ab21){const _0x499cc0=_0x15a0f8(_0x12ab21);return _0x499cc0&&_0x2e9e0c()?_0x499cc0:null;function _0x2e9e0c(){const _0xc3f39b=_0x499cc0[_0x424dd6([0x6a,0x74,0x69])],_0x48117b=window[_0x424dd6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc3f39b[_0x424dd6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc3f39b[_0x424dd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x263b54={..._0x499cc0,[_0x424dd6([0x6a,0x74,0x69])]:_0xc3f39b[_0x424dd6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xc3f39b[_0x424dd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x263b54[_0x424dd6([0x76,0x63])],_0x3d3e2c(_0x263b54)==_0x48117b;}}}async function _0x3d3945(){let _0x3473bd=!0x0;try{const _0x3851c2=_0x1086c8[_0x424dd6([0x73,0x70,0x6c,0x69,0x74])](_0x424dd6([0x2e])),[_0x1b55a1,_0x3be817,_0x413b29]=_0x3851c2;return _0x2bff45(_0x1b55a1),await _0x2638e2(_0x1b55a1,_0x3be817,_0x413b29),_0x3473bd;}catch(_0x4c68c2){return!0x1;}function _0x2bff45(_0x1f45c2){const _0x1da69e=_0x15a0f8(_0x1f45c2);_0x1da69e&&_0x1da69e[_0x424dd6([0x61,0x6c,0x67])]==_0x424dd6([0x45,0x53,0x32,0x35,0x36])||(_0x3473bd=!0x1);}async function _0x2638e2(_0x395abb,_0x3713c2,_0x4fea07){const _0x52e74c=window[_0x424dd6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x424dd6([0x66,0x72,0x6f,0x6d])](_0x1f52cb(_0x4fea07),_0x59286d=>_0x59286d[_0x424dd6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1c8180=new window[(_0x424dd6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x424dd6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x395abb+_0x424dd6([0x2e])+_0x3713c2),_0x397686=window[_0x424dd6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x424dd6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x397686)return;const _0x2af669=await _0x397686[_0x424dd6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x424dd6([0x6a,0x77,0x6b]),_0xae9638,{[_0x424dd6([0x6e,0x61,0x6d,0x65])]:_0x424dd6([0x45,0x43,0x44,0x53,0x41]),[_0x424dd6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x424dd6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x424dd6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x397686[_0x424dd6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x424dd6([0x6e,0x61,0x6d,0x65])]:_0x424dd6([0x45,0x43,0x44,0x53,0x41]),[_0x424dd6([0x68,0x61,0x73,0x68])]:{[_0x424dd6([0x6e,0x61,0x6d,0x65])]:_0x424dd6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2af669,_0x52e74c,_0x1c8180)||(_0x3473bd=!0x1);}}function _0x15a0f8(_0x15638e){return _0x15638e[_0x424dd6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x424dd6([0x65,0x79]))?JSON[_0x424dd6([0x70,0x61,0x72,0x73,0x65])](_0x1f52cb(_0x15638e)):null;}function _0x1f52cb(_0x23df05){return window[_0x424dd6([0x61,0x74,0x6f,0x62])](_0x23df05[_0x424dd6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x424dd6([0x2b]))[_0x424dd6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x424dd6([0x2f])));}function _0x3d3e2c(_0x5ec454){let _0x15536f=0x1505;function _0x1c6f7a(_0x5874af){for(let _0xce3435=0x0;_0xce3435<_0x5874af[_0x424dd6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xce3435++){const _0x550564=_0x5874af[_0x424dd6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xce3435);_0x15536f=(_0x15536f<<0x5)+_0x15536f+_0x550564,_0x15536f&=_0x15536f;}}function _0xad4c46(_0x2d3099){Array[_0x424dd6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d3099)?_0x2d3099[_0x424dd6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xad4c46):_0x2d3099&&typeof _0x2d3099==_0x424dd6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x424dd6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d3099)[_0x424dd6([0x73,0x6f,0x72,0x74])]()[_0x424dd6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x694849,_0x3d20bd])=>{_0x1c6f7a(_0x694849),_0xad4c46(_0x3d20bd);}):_0x1c6f7a(window[_0x424dd6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d3099));}return _0xad4c46(_0x5ec454),_0x15536f>>>0x0;}function _0x52578a(_0xefb5c8){return _0xefb5c8[_0x424dd6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x424dd6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x424dd6([0x30]));}function _0x48a488(_0x5391c9){return _0x5391c9[_0x424dd6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x424dd6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x424dd6([0x6a,0x6f,0x69,0x6e])]('');}function _0x58c0df(_0x1b346e){return _0x356c35[_0x424dd6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x424dd6([0x68,0x61,0x73])](_0x1b346e);}function _0x47ce3b(_0x2ce5ae){return _0x356c35[_0x424dd6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x424dd6([0x67,0x65,0x74])](_0x2ce5ae);}function _0x1454f4(){}function _0x424dd6(_0x169d99){return _0x169d99['map'](_0x1f4cba=>String['fromCharCode'](_0x1f4cba))['join']('');}_0x1e4f04(await _0x426bef());}(this);}set['adapter'](_0xe87479){if(this['_adapter'])throw new _0x29d5ac('track-changes-adapter-already-set',this);this['_adapter']=_0xe87479;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x32d25b=!0x1,toJSON:_0x29469e=!0x1}={}){const _0x3da750=[];for(const _0x3fca1a of this['_suggestions']['values']())_0x32d25b&&!_0x3fca1a['isInContent']||_0x3da750['push'](_0x3fca1a);return _0x29469e?_0x3da750['map'](_0x488143=>_0x488143['toJSON']()):_0x3da750;}['getSuggestion'](_0x5687a0){const _0x3ca476=this['_suggestions']['get'](_0x5687a0);if(!_0x3ca476)throw new _0x29d5ac('track-changes-suggestion-not-found',this);return _0x3ca476;}['hasSuggestion'](_0x2af7ab){return this['_suggestions']['has'](_0x2af7ab);}['addSuggestionData'](_0x5917de){const {authorId:_0x331f10,id:_0x55f3cc,attributes:_0xe7e66c}=_0x5917de,[_0x26096c,_0x117a38]=_0x5917de['type']['split'](':'),_0x46e548=this['_suggestions']['get'](_0x55f3cc)||this['_createSuggestion'](_0x26096c,_0x117a38,_0x55f3cc,_0x331f10,_0xe7e66c);if(this['_addThreadToSuggestion'](_0x46e548),this['_checkSuggestionCorrectness'](_0x46e548,_0x26096c,_0x117a38||null,_0x331f10),_0x46e548['createdAt']=_0x5917de['createdAt'],_0x46e548['_isDataLoaded']=!0x0,_0xe7e66c&&_0xe7e66c['@external']){const _0xdfba24=_0xe7e66c['@external'],_0x190512=this['_getExternalAuthor'](_0xdfba24['authorName']);_0x46e548['authoredAt']=_0xdfba24['createdAt'],_0x46e548['author']=_0x190512,_0x46e548['isExternal']=!0x0;}else _0x46e548['authoredAt']=_0x5917de['createdAt'];switch(_0x5917de['data']&&(_0x46e548['data']=_0x5917de['data']),_0x5917de['attributes']&&(_0x46e548['attributes']=_0x5917de['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x46e548['_saved']=!0x0),this['_suggestionState']['get'](_0x46e548)){case'notReady':this['_suggestionState']['set'](_0x46e548,'dataReady');break;case'markerReady':_0x46e548['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x46e548])),this['_refreshSuggestionsChain'](new Set([_0x46e548])),this['_suggestionState']['set'](_0x46e548,'ready'),this['fire']('suggestionLoaded',_0x46e548)):this['_suggestionState']['set'](_0x46e548,'removed');}return _0x46e548;}['acceptSuggestion'](_0x4ddf3a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x336d2b of _0x4ddf3a['getAllAdjacentSuggestions']())_0x336d2b['accept']();});});}['discardSuggestion'](_0x4136c9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5c3193 of _0x4136c9['getAllAdjacentSuggestions']())_0x5c3193['discard']();});});}['enableCommand'](_0xe0cac5,_0x101a37){const _0x1d7048=this['editor']['commands']['get'](_0xe0cac5);if(!_0x1d7048)throw new _0x29d5ac('track-changes-command-not-found',this,{'commandName':_0xe0cac5});if(this['_enabledCommands']['has'](_0x1d7048))throw new _0x29d5ac('track-changes-enable-command-twice',this,{'commandName':_0xe0cac5});this['_enabledCommands']['add'](_0x1d7048),_0x101a37&&_0x1d7048['on']('execute',(_0x513848,_0x59181d)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x59181d['length']>0x0&&_0x59181d[_0x59181d['length']-0x1]&&_0x59181d[_0x59181d['length']-0x1]['forceDefaultExecution']?_0x59181d['pop']():(_0x513848['return']=_0x101a37((..._0x55e795)=>_0x1d7048['execute'](..._0x55e795,{'forceDefaultExecution':!0x0}),..._0x59181d),_0x513848['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5730c1){let _0x4cddb9,_0x426f0a;const _0x550e18=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4cddb9=_0x5730c1();}catch(_0x449fd6){_0x426f0a=_0x449fd6;}return _0x550e18||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x426f0a&&_0x29d5ac['rethrowUnexpectedError'](_0x426f0a,this),_0x4cddb9;}['markInsertion'](_0x2af155,_0x2df418=null,_0x5d9470={}){if(_0x2af155['isCollapsed'])return null;const _0x1a335a=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3a2280,meta:_0x39c44f}of this['_findSuggestions'](_0x2af155,'insertion'))if(_0x39c44f['isOwn']){if(!_0x39c44f['isNextTo']){if(_0x39c44f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x3a2280,_0x5d9470))continue;return _0x3a2280;}if(Kt(_0x3a2280,_0x5d9470))return _0x3a2280;this['_breakSuggestionMarker'](_0x3a2280,_0x2af155['start'],_0x2af155['end']);break;}if(_0x2df418==_0x3a2280['subType']&&Kt(_0x3a2280,_0x5d9470)){const _0x559236=_0x3a2280['getFirstRange']();return _0x559236['start']['isEqual'](_0x2af155['end'])?this['_setSuggestionRange'](_0x3a2280,this['_model']['createRange'](_0x2af155['start'],_0x559236['end'])):this['_setSuggestionRange'](_0x3a2280,this['_model']['createRange'](_0x559236['start'],_0x2af155['end'])),_0x3a2280;}}const _0x4bee90=_0x39ba3e(),_0x48479c=_0x1a335a['id'],_0x1a21ee=_0x2df418?'insertion:'+_0x2df418:'insertion',_0x4a9ff7=this['_setSuggestionData']({'id':_0x4bee90,'type':_0x1a21ee,'createdAt':new Date(),'authorId':_0x48479c,'attributes':_0x5d9470});return this['_addSuggestionMarker'](_0x1a21ee,_0x4bee90,_0x48479c,_0x2af155),_0x4a9ff7;}['markMultiRangeInsertion'](_0xd7c27,_0x50fecf='multi',_0x57360d={}){const _0x2b6c22=this['editor']['plugins']['get']('Users')['me'],_0x3ac9fa=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x50fecf,'join');for(const _0x52c0d9 of this['getSuggestions']())if(_0x52c0d9['author']['id']==_0x2b6c22['id']&&'insertion'==_0x52c0d9['type']&&_0x52c0d9['subType']==_0x50fecf&&Kt(_0x52c0d9,_0x57360d)&&(_0x3ac9fa(_0x52c0d9['getRanges'](),_0xd7c27)||_0x3ac9fa(_0xd7c27,_0x52c0d9['getRanges']()))){for(const _0x5819b7 of _0xd7c27)_0x52c0d9['addRange'](_0x5819b7);return _0x52c0d9;}for(const {suggestion:_0x2b2d3c,meta:_0x130a13}of this['_findSuggestions'](_0xd7c27,'insertion')){if(!_0x130a13['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x130a13['containsRangeInObject'])continue;if(!Kt(_0x2b2d3c,_0x57360d))continue;let _0x55c25e=!0x0;for(const _0x48ea33 of _0x2b2d3c['getRanges']())for(const _0x3783d4 of _0xd7c27)if(!_0x48ea33['containsRange'](_0x3783d4)){_0x55c25e=!0x1;break;}if(_0x55c25e)return _0x2b2d3c;}const _0x22d8b5=_0x39ba3e(),_0x3b3d25=_0x2b6c22['id'],_0x55897='insertion:'+_0x50fecf,_0x54ca76=this['_setSuggestionData']({'id':_0x22d8b5,'type':_0x55897,'createdAt':new Date(),'authorId':_0x3b3d25,'attributes':_0x57360d});for(const _0x757086 of _0xd7c27)this['_addSuggestionMarker'](_0x55897,_0x22d8b5,_0x3b3d25,_0x757086,u['getMultiRangeId']());return _0x54ca76;}['markInlineFormat'](_0x470c10,_0x394898,_0x49ca38=null,_0x53f4cf={}){if(_0x49ca38=_0x49ca38||Ft(_0x394898),_0x470c10['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5a23f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x49ca38,'accept');return this['forceDefaultExecution'](()=>_0x5a23f([_0x470c10],_0x394898,_0x53f4cf)),null;}const _0x32670c=this['editor']['plugins']['get']('Users')['me'],_0x5b429e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x35efcc,meta:_0xc333aa}of this['_findSuggestions'](_0x470c10,'insertion'))_0xc333aa['isOwn']&&!_0xc333aa['isInsideObject']&&_0x5b429e['push'](..._0x35efcc['getRanges']());}const _0x32e007=function(_0x127d39,_0x1b269e){const _0x25ccf1=[];for(const _0x370d5d of _0x1b269e){const _0x4f7a9e=_0x127d39['getIntersection'](_0x370d5d);_0x4f7a9e&&_0x25ccf1['push'](_0x4f7a9e);}return _0x25ccf1;}(_0x470c10,_0x5b429e),_0x2b0a15=function(_0x4a5679,_0x314bc6){const _0x1c528d=[_0x4a5679];for(const _0x3d06a4 of _0x314bc6){let _0x4d8f89=0x0;for(;_0x4d8f89<_0x1c528d['length'];){const _0x3aded8=_0x1c528d[_0x4d8f89]['getDifference'](_0x3d06a4);_0x1c528d['splice'](_0x4d8f89,0x1,..._0x3aded8),_0x4d8f89+=_0x3aded8['length'];}}return _0x1c528d;}(_0x470c10,_0x5b429e);_0x32e007['length']&&this['_model']['change'](()=>{for(const _0x115462 of _0x32e007){const _0x190a15=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x49ca38,'accept');this['forceDefaultExecution'](()=>_0x190a15([_0x115462],_0x394898,_0x53f4cf));}});for(const _0x405e99 of _0x2b0a15){let _0x9fa9e8=null,_0x2d174c=_0x405e99['start'],_0x123451=_0x405e99['end'];for(const {suggestion:_0x444256,meta:_0x28a1ed}of this['_findSuggestions'](_0x405e99,'formatInline')){if(!_0x28a1ed['isOwn'])continue;if(_0x444256['subType']!=_0x49ca38)continue;if(!Kt(_0x444256,_0x53f4cf))continue;const _0x2eaa3b=_0x444256['getFirstRange']();if(_0x2eaa3b['containsRange'](_0x405e99,!0x0))return null;_0x2d174c=_0x2d174c['isBefore'](_0x2eaa3b['start'])?_0x2d174c:_0x2eaa3b['start'],_0x123451=_0x123451['isAfter'](_0x2eaa3b['end'])?_0x123451:_0x2eaa3b['end'],_0x9fa9e8?_0x2eaa3b['start']['isBefore'](_0x9fa9e8['getFirstRange']()['start'])?(_0x9fa9e8['removeMarkers'](),_0x9fa9e8=_0x444256):_0x444256['removeMarkers']():_0x9fa9e8=_0x444256;}const _0x3d19e0=this['_model']['createRange'](_0x2d174c,_0x123451);if(_0x9fa9e8)this['_setSuggestionRange'](_0x9fa9e8,_0x3d19e0);else{const _0x5496d5=_0x39ba3e(),_0x16aa16=_0x32670c['id'];this['_setSuggestionData']({'id':_0x5496d5,'type':'formatInline:'+_0x49ca38,'data':_0x394898,'createdAt':new Date(),'authorId':_0x16aa16,'attributes':_0x53f4cf}),this['_addSuggestionMarker']('formatInline:'+_0x49ca38,_0x5496d5,_0x16aa16,_0x3d19e0);}}return null;}['markBlockFormat'](_0x3a4a1a,_0x45e06f,_0x47675a=[],_0x451a66=null,_0x100fdf={}){_0x45e06f['formatGroupId']||(_0x45e06f['formatGroupId']=_0x45e06f['commandName']),_0x45e06f['multipleBlocks']=_0x3a4a1a['is']('range'),_0x451a66=_0x451a66||Ft(_0x45e06f);const _0x1c96a4=_0x47675a['map'](_0x1c63a2=>Ht(_0x1c63a2,this['_model'])),_0x260cc8=_0x3a4a1a['is']('range')?_0x3a4a1a:Ht(_0x3a4a1a,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3f7685=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x451a66,'accept');return this['forceDefaultExecution'](()=>_0x3f7685([_0x260cc8],_0x45e06f,_0x100fdf)),null;}_0x1c96a4['push'](_0x260cc8);let _0x9912f3=!0x0;for(const _0x3f3739 of _0x1c96a4)if(!this['_rangeIsInLocalUserInsertion'](_0x3f3739)){_0x9912f3=!0x1;break;}if(_0x9912f3&&'always'!==this['_trackFormatChanges']){const _0x57ad1a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x451a66,'accept');return this['forceDefaultExecution'](()=>_0x57ad1a([_0x260cc8],_0x45e06f,_0x100fdf)),null;}let _0x3133a4=null,_0x563a07=_0x260cc8['start'],_0x2ce424=_0x260cc8['end'];for(const {suggestion:_0x2038f1,meta:_0x1e3866}of this['_findSuggestions'](_0x260cc8,'formatBlock')){if(!_0x1e3866['isOwn'])continue;if(_0x1e3866['isNextTo']||_0x1e3866['containsRangeInObject']||_0x1e3866['isInsideObject'])continue;if(_0x2038f1['data']['formatGroupId']!=_0x45e06f['formatGroupId'])continue;if(!Kt(_0x2038f1,_0x100fdf))continue;const _0x168d80=_0x2038f1['getFirstRange']();if(_0x2038f1['subType']==_0x451a66){if(_0x168d80['containsRange'](_0x260cc8,!0x0))return null;_0x563a07=_0x563a07['isBefore'](_0x168d80['start'])?_0x563a07:_0x168d80['start'],_0x2ce424=_0x2ce424['isAfter'](_0x168d80['end'])?_0x2ce424:_0x168d80['end'],_0x3133a4?_0x168d80['start']['isBefore'](_0x3133a4['getFirstRange']()['start'])?(_0x3133a4['removeMarkers'](),_0x3133a4=_0x2038f1):_0x2038f1['removeMarkers']():_0x3133a4=_0x2038f1;}else{const _0x508218=_0x260cc8['getIntersection'](_0x168d80);this['_cutOutSuggestionMarker'](_0x2038f1,_0x508218);}}const _0x270512=this['editor']['plugins']['get']('Users')['me'],_0x5d0fb4=_0x39ba3e(),_0x42fb9a=_0x270512['id'];if(_0x3133a4)return this['_setSuggestionRange'](_0x3133a4,this['_model']['createRange'](_0x563a07,_0x2ce424)),_0x3133a4;{const _0x5a0619=this['_setSuggestionData']({'id':_0x5d0fb4,'type':'formatBlock:'+_0x451a66,'data':_0x45e06f,'createdAt':new Date(),'authorId':_0x42fb9a,'attributes':_0x100fdf});return this['_addSuggestionMarker']('formatBlock:'+_0x451a66,_0x5d0fb4,_0x42fb9a,this['_model']['createRange'](_0x563a07,_0x2ce424)),_0x5a0619;}}['markMultiRangeBlockFormat'](_0x2e0a51,_0xd7617e,_0x387b77=[],_0x5b1712=null,_0x243d84={}){_0xd7617e['formatGroupId']||(_0xd7617e['formatGroupId']=_0xd7617e['commandName']);const _0x321ced=_0x2e0a51[0x0];_0xd7617e['multipleBlocks']=_0x321ced['is']('range'),_0x5b1712=_0x5b1712||Ft(_0xd7617e);const _0x35bd65=_0x387b77['map'](_0x5b6413=>Ht(_0x5b6413,this['_model'])),_0x464e37=_0x321ced['is']('range')?_0x2e0a51:_0x2e0a51['map'](_0x2854d0=>Ht(_0x2854d0,this['_model']));if('never'===this['_trackFormatChanges']){const _0x454e28=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5b1712,'accept');return this['forceDefaultExecution'](()=>_0x454e28(_0x464e37,_0xd7617e,_0x243d84)),null;}_0x35bd65['push'](..._0x464e37);let _0x5c3771=!0x0;for(const _0x3a435f of _0x35bd65)if(!this['_rangeIsInLocalUserInsertion'](_0x3a435f)){_0x5c3771=!0x1;break;}if(_0x5c3771&&'always'!==this['_trackFormatChanges']){const _0x4b3d93=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5b1712,'accept');return this['forceDefaultExecution'](()=>_0x4b3d93(_0x464e37,_0xd7617e,_0x243d84)),null;}const _0x24e61=this['editor']['plugins']['get']('Users')['me'];for(const _0x3ca2fe of this['getSuggestions']()){if(_0x3ca2fe['author']['id']!=_0x24e61['id'])continue;if('formatBlock'!=_0x3ca2fe['type']||_0x3ca2fe['data']['formatGroupId']!=_0xd7617e['formatGroupId'])continue;if(!Kt(_0x3ca2fe,_0x243d84))continue;const _0x291edb=_0x3ca2fe['subType']==_0x5b1712;for(let _0x4a417e=0x0;_0x4a417e<_0x464e37['length'];_0x4a417e++){const _0x52c18f=_0x464e37[_0x4a417e];for(const _0x152cb8 of _0x3ca2fe['getMarkers']()){const _0x8779b0=_0x152cb8['getRange']();if(_0x52c18f['isEqual'](_0x8779b0)){_0x291edb?(_0x464e37['splice'](_0x4a417e,0x1),_0x4a417e--):_0x3ca2fe['removeMarker'](_0x152cb8['name']);break;}}}}if(0x0==_0x464e37['length'])return null;const _0x205f9d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5b1712,'join');for(const _0x51755a of this['getSuggestions']())if(_0x51755a['author']['id']==_0x24e61['id']&&'formatBlock'==_0x51755a['type']&&_0x51755a['data']['formatGroupId']==_0xd7617e['formatGroupId']&&_0x51755a['subType']==_0x5b1712&&Kt(_0x51755a,_0x243d84)&&(_0x205f9d(_0x51755a['getRanges'](),_0x464e37)||_0x205f9d(_0x464e37,_0x51755a['getRanges']()))){for(const _0x77e46e of _0x464e37)_0x51755a['addRange'](_0x77e46e);return _0x51755a;}const _0x3cf1de=_0x39ba3e(),_0x495efd=_0x24e61['id'],_0x3b07e7='formatBlock:'+_0x5b1712,_0x4f1cd4=this['_setSuggestionData']({'id':_0x3cf1de,'type':_0x3b07e7,'data':_0xd7617e,'createdAt':new Date(),'authorId':_0x495efd,'attributes':_0x243d84});for(const _0x55a1e4 of _0x464e37)this['_addSuggestionMarker'](_0x3b07e7,_0x3cf1de,_0x495efd,_0x55a1e4,u['getMultiRangeId']());return _0x4f1cd4;}['markDeletion'](_0x312fd0,_0xa80230=null,_0x49111b={}){if(_0x312fd0['isCollapsed'])return null;const _0x4a91b7=this['editor']['plugins']['get']('Users')['me'],_0x578d30=new _0x1e09a5(_0x312fd0['start'],_0x312fd0['end']);for(const {suggestion:_0x2d8913,meta:_0x1f08b9}of this['_findSuggestions'](_0x578d30,'insertion'))if(_0x1f08b9['isOwn']&&!_0x1f08b9['isNextTo']){if(_0x2d8913['isMultiRange']){const _0x1e33c3=_0x2d8913['getRanges']()['filter'](_0x5267df=>'$graveyard'!=_0x5267df['root']['rootName']);_0x1e33c3['every'](_0x1607ca=>_0x578d30['containsRange'](_0x1607ca,!0x0))&&_0x2d8913['discard']();if(_0x1e33c3['some'](_0xc1acdf=>_0xc1acdf['containsRange'](_0x578d30,!0x0))){const _0x49d031=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xa80230,'accept');return this['forceDefaultExecution'](()=>_0x49d031([_0x578d30],null,_0x49111b)),null;}}else{const _0x29739a=_0x578d30['getIntersection'](_0x2d8913['getFirstRange']());null!==_0x29739a&&_0x2d8913['_onDiscard']([_0x29739a],null,_0x49111b);}}if(_0x578d30['detach'](),_0x578d30['isCollapsed']||'$graveyard'==_0x578d30['root']['rootName'])return null;let _0x2e3679=null,_0x23d8b9=_0x578d30['start'],_0x2565df=_0x578d30['end'];const _0xa9ed16=this['_findSuggestions'](_0x578d30,'deletion');for(const {suggestion:_0xc7369c,meta:_0x1ba503}of _0xa9ed16){const _0x53f789=this['_model']['createRange'](_0x23d8b9,_0x2565df);if(_0x1ba503['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1ba503['containsRangeInObject']&&!_0x1ba503['isInsideObject'])){if(_0xc7369c['isMultiRange']){if(!Kt(_0xc7369c,_0x49111b))continue;let _0xd53b2c=!0x0;for(const _0x1ac2e2 of _0xc7369c['getRanges']()){if(_0x1ac2e2['containsRange'](_0x53f789,!0x0))return _0xc7369c;_0x53f789['containsRange'](_0x1ac2e2)||(_0xd53b2c=!0x1);}_0xd53b2c&&_0xc7369c['discard']();}else{const _0x124edd=_0xc7369c['getFirstRange']();if(_0x124edd['containsRange'](_0x53f789,!0x0))return _0xc7369c;if(!Kt(_0xc7369c,_0x49111b)){_0x53f789['containsRange'](_0x124edd)?_0xc7369c['removeMarkers']():_0x124edd['containsPosition'](_0x23d8b9)?_0x23d8b9=_0x124edd['end']:_0x124edd['containsPosition'](_0x2565df)&&(_0x2565df=_0x124edd['start']);continue;}_0x23d8b9=_0x23d8b9['isBefore'](_0x124edd['start'])?_0x23d8b9:_0x124edd['start'],_0x2565df=_0x2565df['isAfter'](_0x124edd['end'])?_0x2565df:_0x124edd['end'],_0x49111b=Object['assign']({},_0xc7369c['attributes']),_0x2e3679?_0x124edd['start']['isBefore'](_0x2e3679['getFirstRange']()['start'])?(_0x2e3679['removeMarkers'](),_0x2e3679=_0xc7369c):_0xc7369c['removeMarkers']():_0x2e3679=_0xc7369c;}}}if(_0x2e3679)return this['_setSuggestionRange'](_0x2e3679,this['_model']['createRange'](_0x23d8b9,_0x2565df)),_0x2e3679;{const _0x5e0f59=_0x39ba3e(),_0x1170dc=this['_model']['createRange'](_0x23d8b9,_0x2565df),_0x598fcc=_0x4a91b7['id'],_0x266a3d=_0xa80230?'deletion:'+_0xa80230:'deletion',_0x40878d=this['_setSuggestionData']({'id':_0x5e0f59,'type':_0x266a3d,'createdAt':new Date(),'authorId':_0x598fcc,'attributes':_0x49111b});return this['_addSuggestionMarker'](_0x266a3d,_0x5e0f59,_0x598fcc,_0x1170dc),_0x40878d;}}['markMultiRangeDeletion'](_0x2f3a0c,_0x4b1962='multi',_0x3d4962={}){const _0x379212=this['editor']['plugins']['get']('Users')['me'],_0x135e2c=_0x2f3a0c['map'](_0x4e3af4=>new _0x1e09a5(_0x4e3af4['start'],_0x4e3af4['end'])),_0x49d556=new Set();for(const {suggestion:_0x77839,meta:_0x4e5c96}of this['_findSuggestions'](_0x135e2c,'insertion'))_0x4e5c96['isOwn']&&!_0x4e5c96['isNextTo']&&_0x49d556['add'](_0x77839);for(const _0x53f938 of _0x49d556)if(_0x53f938['isMultiRange']){const _0x1376ff=_0x53f938['getRanges']();(!_0x53f938['attributes']||!_0x53f938['attributes']['skipNestingCheck'])&&(_0x1376ff['every'](_0x1d0419=>_0x135e2c['some'](_0x4b449b=>_0x4b449b['containsRange'](_0x1d0419,!0x0)))&&_0x53f938['discard']());if(_0x135e2c['every'](_0xac676=>_0x1376ff['some'](_0x4dc44f=>_0x4dc44f['containsRange'](_0xac676,!0x0)))){const _0x39d638=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b1962,'accept');return this['forceDefaultExecution'](()=>_0x39d638(_0x2f3a0c,null,_0x3d4962)),null;}}else{const _0x1621dd=_0x53f938['getFirstRange']();_0x135e2c['some'](_0x24e731=>_0x24e731['containsRange'](_0x1621dd,!0x0))&&_0x53f938['discard']();if(_0x135e2c['every'](_0x2ab8ac=>_0x1621dd['containsRange'](_0x2ab8ac,!0x0))){const _0x4bb9ca=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b1962,'accept');return this['forceDefaultExecution'](()=>_0x4bb9ca(_0x135e2c,null,_0x3d4962)),null;}}const _0x3d176f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b1962,'join');let _0x796ee1=null;for(const _0xc167ca of this['getSuggestions']())if(_0xc167ca['author']['id']==_0x379212['id']&&_0xc167ca['isInContent']&&'deletion'==_0xc167ca['type']&&_0xc167ca['subType']==_0x4b1962&&Kt(_0xc167ca,_0x3d4962)&&(_0x3d176f(_0xc167ca['getRanges'](),_0x135e2c)||_0x3d176f(_0x135e2c,_0xc167ca['getRanges']()))){if(_0x796ee1){if(_0xc167ca['commentThread']&&_0xc167ca['commentThread']['length'])continue;for(const _0x4d8a4a of _0xc167ca['getRanges']())_0x796ee1['isIntersectingWithRange'](_0x4d8a4a)||_0x796ee1['addRange'](_0x4d8a4a);_0xc167ca['removeMarkers']();}else{_0x796ee1=_0xc167ca;for(const _0x20074a of _0x135e2c)_0xc167ca['isIntersectingWithRange'](_0x20074a)||_0xc167ca['addRange'](_0x20074a);}}if(_0x796ee1)return _0x796ee1;_0x49d556['clear']();for(const {suggestion:_0x1dfab9,meta:_0x571efc}of this['_findSuggestions'](_0x135e2c,'deletion'))_0x571efc['isOwn']&&(this['_mergeNestedSuggestions']||!_0x571efc['containsRangeInObject']&&!_0x571efc['isInsideObject'])&&Kt(_0x1dfab9,_0x3d4962)&&_0x49d556['add'](_0x1dfab9);for(const _0x1beb8e of _0x49d556){const _0x254bc2=_0x1beb8e['getRanges']();if(!_0x3d4962||!_0x3d4962['skipNestingCheck']){if(_0x135e2c['every'](_0x2ae9f1=>_0x254bc2['some'](_0x2bd5e9=>_0x2bd5e9['containsRange'](_0x2ae9f1,!0x0))))return _0x1beb8e;}(!_0x1beb8e['attributes']||!_0x1beb8e['attributes']['skipNestingCheck'])&&(_0x254bc2['every'](_0xb5b67b=>_0x135e2c['some'](_0x3f495e=>_0x3f495e['containsRange'](_0xb5b67b,!0x0)))&&_0x1beb8e['discard']());}const _0x4c61d0=_0x39ba3e(),_0x5c2711=_0x379212['id'],_0x2fb5c6='deletion:'+_0x4b1962,_0x40a135=this['_setSuggestionData']({'id':_0x4c61d0,'type':_0x2fb5c6,'createdAt':new Date(),'authorId':_0x5c2711,'attributes':_0x3d4962});for(const _0x244bfa of _0x135e2c)_0x244bfa['detach'](),_0x244bfa['isCollapsed']||'$graveyard'==_0x244bfa['root']['rootName']||this['_addSuggestionMarker'](_0x2fb5c6,_0x4c61d0,_0x5c2711,_0x244bfa,u['getMultiRangeId']());return _0x40a135;}['markAttributeChange'](_0xf26b0c,_0x4bee56,_0x2b592d,_0x5da676,_0x3200d3){if(_0xf26b0c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x59aded=this['editor']['plugins']['get']('Users')['me']['id'],_0x362fa=Array['from'](this['_suggestions']['values']())['filter'](_0x1f12e1=>'attribute'==_0x1f12e1['type']&&_0x1f12e1['data']['key']==_0x4bee56&&_0x1f12e1['isIntersectingWithRange'](_0xf26b0c));if('default'===this['_trackFormatChanges']){const _0x407b05=this['_findSuggestions'](_0xf26b0c,'insertion')['filter'](({meta:_0x51fd44})=>_0x51fd44['isOwn']&&!_0x51fd44['isInsideObject']&&!_0x51fd44['isNextTo'])['map'](({suggestion:_0x309cac})=>_0x309cac);_0x362fa['unshift'](..._0x407b05);}const _0x407357=new Map([[_0xf26b0c,_0x2b592d]]);for(const _0x36d0cd of _0x362fa){const _0x41f9ee='attribute'==_0x36d0cd['type']?_0x36d0cd['data']['oldValue']:void 0x0,_0x1661e6=_0x36d0cd['getFirstRange'](),_0x5ddc84=Array['from'](_0x407357['keys']())['find'](_0x3d30c4=>_0x3d30c4['isIntersecting'](_0x1661e6));if(!_0x5ddc84)continue;const _0x2c3044=_0x5ddc84['getDifference'](_0x1661e6);this['_isBlockAttribute'](_0x4bee56)&&'insertion'==_0x36d0cd['type']&&0x0!=_0x2c3044['length']||(_0x407357['delete'](_0x5ddc84),_0x2c3044['forEach'](_0x356750=>{_0x407357['set'](_0x356750,_0x2b592d);}),'insertion'!=_0x36d0cd['type']&&_0x41f9ee!=_0x5da676&&_0x407357['set'](_0x5ddc84['getIntersection'](_0x1661e6),_0x41f9ee));}const _0x7b4ebf=[];for(const [_0x2aef68,_0xdd3e16]of _0x407357){const _0x514a48=_0x39ba3e(),_0x571fa1={'key':_0x4bee56,'oldValue':_0xdd3e16,'newValue':_0x5da676};_0x4bee56['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':_0x4bee56});const _0x2d1eef=('attribute:'+(_0x4bee56+'|'+Ft({'newValue':_0x5da676})))['substring'](0x0,0x3c),_0xabea8e=this['_setSuggestionData']({'id':_0x514a48,'type':_0x2d1eef,'data':_0x571fa1,'createdAt':new Date(),'authorId':_0x59aded,'attributes':_0x3200d3});_0x7b4ebf['push'](_0xabea8e),this['_addSuggestionMarker'](_0x2d1eef,_0x514a48,_0x59aded,_0x2aef68);}return _0x7b4ebf;}['enableDefaultAttributesIntegration'](_0x4f7f5f){this['enableCommand'](_0x4f7f5f,(_0x3b3650,..._0xf1ddc4)=>{this['_recordAttributeChanges'](()=>{_0x3b3650(..._0xf1ddc4);});});}['registerBlockAttribute'](_0x598545){this['_blockAttributeKeys']['add'](_0x598545);}['registerInlineAttribute'](_0x579fa4){this['_inlineAttributeKeys']['add'](_0x579fa4);}['_getAttributeKey'](_0x404f4f){return'attribute'==_0x404f4f['type']?_0x404f4f['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x587d2b,_0x133839){const _0x40fe51=_0x587d2b['getFirstMarker']();this['_model']['change'](_0x3f0591=>{_0x3f0591['updateMarker'](_0x40fe51,{'range':_0x133839});});}['_addThreadToSuggestion'](_0x404e9){const _0x11e915=_0x404e9['id'],_0x17b3fa=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x11e915)||this['_commentsRepository']['addCommentThread']({'channelId':_0x17b3fa,'threadId':_0x11e915,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x416adf=this['_commentsRepository']['getCommentThread'](_0x11e915);_0x416adf['unbind']('isRemovable'),_0x416adf['isRemovable']=!0x1,_0x404e9['commentThread']=_0x416adf;}['_checkSuggestionCorrectness'](_0x521ea2,_0x2c33bc,_0xf74b82,_0x2926e4){if(_0x521ea2['type']!=_0x2c33bc||_0x521ea2['subType']!=_0xf74b82||_0x521ea2['creator']['id']!=_0x2926e4)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x29d5ac('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1c7493,_0x438e87){const _0x4b13e2=_0x1c7493['getFirstRange']();if(_0x438e87['isEqual'](_0x4b13e2))_0x1c7493['removeMarkers']();else{if(_0x4b13e2['containsRange'](_0x438e87)){const _0x4d65cf=this['_model']['createPositionAt'](_0x438e87['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1c7493,this['_model']['createRange'](_0x4b13e2['start'],_0x4d65cf));const _0x4ee6b7=_0x39ba3e(),_0x253979=_0x1c7493['creator']['id'],_0x424cc6=_0x1c7493['type']+':'+_0x1c7493['subType'];this['_setSuggestionData']({'id':_0x4ee6b7,'type':_0x424cc6,'createdAt':new Date(),'authorId':_0x253979,'data':_0x1c7493['data'],'attributes':_0x1c7493['attributes']});const _0x2dd312=this['_model']['createPositionAt'](_0x438e87['end']['parent'],'after'),_0x460b25=this['_model']['createRange'](_0x2dd312,_0x4b13e2['end']);this['_addSuggestionMarker'](_0x424cc6,_0x4ee6b7,_0x253979,_0x460b25);}else{if(_0x4b13e2['containsPosition'](_0x438e87['start'])){const _0x3e0449=this['_model']['createPositionAt'](_0x438e87['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1c7493,this['_model']['createRange'](_0x4b13e2['start'],_0x3e0449));}else{const _0x3901a3=this['_model']['createPositionAt'](_0x438e87['end']['parent'],'after');this['_setSuggestionRange'](_0x1c7493,this['_model']['createRange'](_0x3901a3,_0x4b13e2['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3b2e4b){for(const {suggestion:_0x10085f,meta:_0x2e2522}of this['_findSuggestions'](_0x3b2e4b,'insertion')){if(!_0x2e2522['isOwn'])continue;const _0x2026ac=_0x10085f['getRanges']();for(const _0x3c7a46 of _0x2026ac)if(!_0x3b2e4b['getDifference'](_0x3c7a46)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x162540){const _0x52cb6d=this['editor']['plugins']['get']('Users')['getUser'](_0x162540);if(!_0x52cb6d)throw new _0x29d5ac('track-changes-user-not-found',this);return _0x52cb6d;}['_getExternalAuthor'](_0x2d49c3){const _0x243440=this['editor']['plugins']['get']('Users'),_0x9405b8=_0x2fabc6('external:'+_0x2d49c3),_0x225417=_0x243440['getUser'](_0x9405b8);return _0x225417||_0x243440['addUser']({'id':_0x9405b8,'name':_0x2d49c3});}['_createSuggestion'](_0x35c21e,_0x157267,_0x4905bb,_0x5380db,_0x87e3bd){const _0x58495e=this['_getAuthorFromId'](_0x5380db),_0x544727=this['_suggestionFactory']['buildSuggestion'](_0x35c21e,_0x157267,_0x4905bb,_0x58495e,_0x87e3bd,_0x34b4a8=>{this['_updateSuggestionData'](_0x4905bb,{'attributes':_0x34b4a8});const _0x4de25b=this['getSuggestion'](_0x4905bb);this['_joinWithAdjacentSuggestions'](new Set([_0x4de25b])),this['_refreshSuggestionsChain'](new Set([_0x4de25b]));});return this['listenTo'](_0x544727,'accept',()=>{this['_updateSuggestionData'](_0x4905bb,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x544727,'discard',()=>{this['_updateSuggestionData'](_0x4905bb,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4905bb,_0x544727),this['_suggestionState']['set'](_0x544727,'notReady'),_0x544727;}['_splitMarkerName'](_0x3cdc13){const _0x3fa734=_0x3cdc13['split'](':');return{'group':_0x3fa734[0x0],'type':_0x3fa734[0x1],'subType':_0x3fa734['length']>=0x5?_0x3fa734[0x2]:null,'id':_0x3fa734['length']<0x5?_0x3fa734[0x2]:_0x3fa734[0x3],'authorId':_0x3fa734['length']<0x5?_0x3fa734[0x3]:_0x3fa734[0x4],'markerCount':0x6==_0x3fa734['length']?_0x3fa734[0x5]:null};}['_breakSuggestionMarker'](_0x5888b7,_0x48a623,_0x16155c){const _0x21a600=_0x5888b7['getFirstRange'](),_0x555186=_0x21a600['start'],_0x23645b=_0x21a600['end'];this['_setSuggestionRange'](_0x5888b7,this['_model']['createRange'](_0x555186,_0x48a623));const _0x9f6c2f=_0x39ba3e(),_0x2d05c8=_0x5888b7['creator']['id'],_0x495f1f=_0x5888b7['type']+(_0x5888b7['subType']?':'+_0x5888b7['subType']:'');this['_setSuggestionData']({'id':_0x9f6c2f,'type':_0x495f1f,'createdAt':new Date(),'authorId':_0x2d05c8,'originalSuggestionId':_0x5888b7['id'],'attributes':_0x5888b7['attributes'],'data':_0x5888b7['data']});const _0x1ed5c3=this['_getAttributeKey'](_0x5888b7);('formatBlock'==_0x5888b7['type']||_0x1ed5c3&&this['_isBlockAttribute'](_0x1ed5c3))&&(_0x16155c=this['_model']['createPositionBefore'](_0x16155c['parent'])),this['_addSuggestionMarker'](_0x495f1f,_0x9f6c2f,_0x2d05c8,this['_model']['createRange'](_0x16155c,_0x23645b));}['_findSuggestions'](_0x10ce0f,_0x236c32=null){const _0x2204c1=[],_0x241ea5=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x10ce0f)||(_0x10ce0f=[_0x10ce0f]);for(const _0x4eef31 of this['getSuggestions']()){if(!_0x4eef31['isInContent'])continue;if(_0x236c32&&_0x4eef31['type']!=_0x236c32)continue;let _0x5d4aca=!0x1;for(const _0x405e09 of _0x4eef31['getRanges']()){for(const _0x215720 of _0x10ce0f){const _0x51afc2=_0x215720['start']['isEqual'](_0x405e09['end'])||_0x215720['end']['isEqual'](_0x405e09['start']);if(_0x51afc2||_0x215720['getIntersection'](_0x405e09)){const _0x3a2b37=_0x215720['containsRange'](_0x405e09)&&Vt(this['_model']['schema'],_0x405e09['start'],_0x215720),_0x478513=_0x405e09['containsRange'](_0x215720)&&Vt(this['_model']['schema'],_0x215720['start'],_0x405e09);_0x2204c1['push']({'suggestion':_0x4eef31,'meta':{'isOwn':_0x241ea5==_0x4eef31['author'],'isNextTo':_0x51afc2,'isInsideObject':_0x3a2b37,'containsRangeInObject':_0x478513}}),_0x5d4aca=!0x0;break;}}if(_0x5d4aca)break;}}return _0x2204c1;}['_addSuggestionMarker'](_0x2d3e3b,_0x6b18f6,_0x1e9f84,_0x1b2d44,_0x4b8369){this['_model']['change'](_0xa1c7a0=>{let _0x59dbfd='suggestion:'+_0x2d3e3b+':'+_0x6b18f6+':'+_0x1e9f84;_0x4b8369&&(_0x59dbfd=_0x59dbfd+':'+_0x4b8369),_0xa1c7a0['addMarker'](_0x59dbfd,{'range':_0x1b2d44,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x13eb2d){const _0x203a18=_0x13eb2d['previous'],_0xccc9ac=_0x13eb2d['next'];_0x13eb2d['previous']=null,_0x13eb2d['next']=null,null!=_0x203a18&&_0x203a18['next']==_0x13eb2d&&(_0x203a18['next']=_0xccc9ac),null!=_0xccc9ac&&_0xccc9ac['previous']==_0x13eb2d&&(_0xccc9ac['previous']=_0x203a18),'ready'==this['_suggestionState']['get'](_0x13eb2d)&&(this['_suggestionState']['set'](_0x13eb2d,'removed'),this['fire']('suggestionUnloaded',_0x13eb2d,_0x203a18,_0xccc9ac));}['_setSuggestionData'](_0x5c996d){const _0x360fa1=_0x5c996d['id'],_0x3aad78=this['addSuggestionData'](_0x5c996d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5eb1be=this['editor']['plugins']['get']('PendingActions'),_0x28111c=_0x3aad78['hasComments'],_0x12a802=_0x3aad78['subType']?_0x3aad78['type']+':'+_0x3aad78['subType']:_0x3aad78['type'],_0x470c94=this['editor']['locale'],_0x3c52f7=_0x5eb1be['add'](o(_0x470c94,'PENDING_ACTION_SUGGESTION')),_0x231e3a={'id':_0x360fa1,'type':_0x12a802,'hasComments':_0x28111c,'data':_0x5c996d['data']||null,'originalSuggestionId':_0x5c996d['originalSuggestionId']||null,'attributes':_0x3aad78['attributes']};this['_adapter']['addSuggestion'](_0x231e3a)['then'](_0x20fce4=>{_0x3aad78['_saved']=!0x0,_0x5eb1be['remove'](_0x3c52f7),_0x20fce4&&_0x20fce4['createdAt']&&(this['_suggestions']['get'](_0x360fa1)['createdAt']=_0x20fce4['createdAt']);})['catch'](_0x454bd4=>{throw _0x2bcb48('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3aad78['discard']();}),_0x3aad78['stopListening'](),this['_suggestions']['delete'](_0x3aad78['id']),this['_suggestionState']['delete'](_0x3aad78),_0x454bd4;});}return _0x3aad78;}['_isBlockAttribute'](_0x41473c){return this['_blockAttributeKeys']['has'](_0x41473c);}['_updateSuggestionData'](_0x39714d,_0x403331){const _0x2dc9ba=this['editor']['plugins']['get']('PendingActions'),_0x5898e2=this['getSuggestion'](_0x39714d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5898e2['_saved']){const _0x2139be=_0x2dc9ba['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x39714d,_0x403331)['then'](()=>{_0x2dc9ba['remove'](_0x2139be);});}else _0x5898e2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x39714d,_0x403331);});}}['_getSuggestionData'](_0x595fde){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x29d5ac('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x595fde);}['_handleNewSuggestionMarker'](_0x1f9c60){const {id:_0x37456b,type:_0x5d0284,subType:_0x2f6047,authorId:_0x2f64df}=this['_splitMarkerName'](_0x1f9c60),_0x38110e=this['_suggestions']['get'](_0x37456b)||this['_createSuggestion'](_0x5d0284,_0x2f6047,_0x37456b,_0x2f64df,{});switch(this['_checkSuggestionCorrectness'](_0x38110e,_0x5d0284,_0x2f6047,_0x2f64df),this['_suggestionState']['get'](_0x38110e)){case'notReady':this['_getSuggestionData'](_0x37456b)['then'](_0x5ed5ee=>{let _0x215b2b=Promise['resolve']();_0x5ed5ee['hasComments']&&(_0x215b2b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x37456b})),_0x215b2b['then'](()=>{this['addSuggestionData'](_0x5ed5ee)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x38110e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x37456b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x38110e,'ready'),this['fire']('suggestionLoaded',_0x38110e);break;case'ready':this['fire']('suggestionChanged',_0x38110e);}return _0x38110e['addMarkerName'](_0x1f9c60),_0x38110e;}['_refreshSuggestionsChain'](_0x276432){const _0x2486f2=Array['from'](_0x276432),_0x534b94=_0x2486f2['filter'](_0x364faf=>'attribute'==_0x364faf['type']);this['_refreshAttributeSuggestionsChain'](_0x534b94);const _0x4bd7ab=_0x2486f2['filter'](_0x45b822=>!_0x45b822['isMultiRange']&&'attribute'!=_0x45b822['type']),_0x39fb8a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19807d=>!_0x19807d['isMultiRange']&&'attribute'!=_0x19807d['type']),_0x4040dc=_0x39fb8a['filter'](_0x175151=>!_0x276432['has'](_0x175151)),_0x1eaa82=new Map(_0x39fb8a['map'](_0x26a2a8=>[_0x26a2a8,this['_suggestionFactory']['getSuggestionCallback'](_0x26a2a8['type'],_0x26a2a8['subType'],'chain')])),_0x2e0825=new Map(_0x39fb8a['map'](_0x272c43=>[_0x272c43,_0x272c43['getFirstRange']()])),_0x5654a0=new Set(),_0x5a8b07=new Set();for(let _0x4ccfdb=0x0;_0x4ccfdb<_0x4bd7ab['length'];_0x4ccfdb++)_0x7ef361(_0x4bd7ab[_0x4ccfdb],_0x4bd7ab,_0x4ccfdb+0x1);for(let _0x42ebdf=0x0;_0x42ebdf<_0x4bd7ab['length'];_0x42ebdf++)_0x7ef361(_0x4bd7ab[_0x42ebdf],_0x4040dc,0x0);const _0x2583c6=new Set();for(let _0x2de823=0x0;_0x2de823<_0x4bd7ab['length'];_0x2de823++){const _0x153f47=_0x4bd7ab[_0x2de823];!_0x5a8b07['has'](_0x153f47)&&_0x153f47['previous']&&(_0x2583c6['add'](_0x153f47['previous']),_0x153f47['previous']['next']===_0x153f47&&(_0x153f47['previous']['next']=null),_0x153f47['previous']=null),!_0x5654a0['has'](_0x153f47)&&_0x153f47['next']&&(_0x2583c6['add'](_0x153f47['next']),_0x153f47['next']['previous']===_0x153f47&&(_0x153f47['next']['previous']=null),_0x153f47['next']=null);}function _0x7ef361(_0x4d7e3d,_0x3dc0fa,_0x4e427e){for(let _0x1056bb=_0x4e427e;_0x1056bb<_0x3dc0fa['length'];_0x1056bb++){const _0x3a65f1=_0x2579d3(_0x4d7e3d,_0x3dc0fa[_0x1056bb]);_0x3a65f1&&(_0x3a65f1[0x0]['next']=_0x3a65f1[0x1],_0x3a65f1[0x1]['previous']=_0x3a65f1[0x0],_0x5654a0['add'](_0x3a65f1[0x0]),_0x5a8b07['add'](_0x3a65f1[0x1]));}}function _0x2579d3(_0x52118e,_0xbd5b0a){if(_0x52118e['author']['id']!==_0xbd5b0a['author']['id'])return null;const _0x5cb60b=_0x1eaa82['get'](_0x52118e)(_0x52118e,_0xbd5b0a,_0x2e0825['get'](_0x52118e),_0x2e0825['get'](_0xbd5b0a));if(!_0x5cb60b)return null;return _0x1eaa82['get'](_0xbd5b0a)(_0x52118e,_0xbd5b0a,_0x2e0825['get'](_0x52118e),_0x2e0825['get'](_0xbd5b0a))?_0x5cb60b[0x1]['commentThread']&&_0x5cb60b[0x1]['commentThread']['length']?null:_0x5cb60b:null;}_0x2583c6['size']&&this['_refreshSuggestionsChain'](_0x2583c6);}['_refreshAttributeSuggestionsChain'](_0x1424ff){if(0x0==_0x1424ff['length'])return;const _0x4ea718=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x561f9a=>'attribute'==_0x561f9a['type']&&_0x561f9a['_isDataLoaded']),_0x30bca4=[],_0xb4bb7c=new Map();for(const _0x5aeb3f of _0x4ea718){const _0x5df03f=_0x2fabc6(_0x5aeb3f['attributes']);_0xb4bb7c['has'](_0x5df03f)||(_0xb4bb7c['set'](_0x5df03f,_0x30bca4['length']),_0x30bca4['push']([]));const _0x42c058=_0xb4bb7c['get'](_0x5df03f);_0x30bca4[_0x42c058]['push'](_0x5aeb3f);}!(function(){_0x30bca4['sort']((_0x8e8756,_0xe3416d)=>{const _0x1a6ef1=_0x8e8756[0x0]['createdAt'],_0x57b28c=_0xe3416d[0x0]['createdAt'];return _0x1a6ef1==_0x57b28c?_0x8e8756[0x0]['attributes']['groupId']<_0xe3416d[0x0]['attributes']['groupId']?-0x1:0x1:_0x1a6ef1<_0x57b28c?-0x1:0x1;});for(const _0x2ef1a9 of _0x30bca4)_0x2ef1a9['sort']((_0x392469,_0x452e6a)=>_0x392469['id']<_0x452e6a['id']?-0x1:0x1);}());for(let _0x1f4aa1=0x0;_0x1f4aa1<_0x30bca4['length'];_0x1f4aa1++){if(0x0==_0x30bca4[_0x1f4aa1]['length'])continue;const _0x435692=[];for(let _0x50e6e6=_0x1f4aa1+0x1;_0x50e6e6<_0x30bca4['length'];_0x50e6e6++)0x0!=_0x30bca4[_0x50e6e6]['length']&&_0x2f0e17(_0x30bca4[_0x1f4aa1],_0x30bca4[_0x50e6e6])&&_0x435692['push'](_0x50e6e6);for(const _0x3d201a of _0x435692)_0x30bca4[_0x1f4aa1]=_0x30bca4[_0x1f4aa1]['concat'](_0x30bca4[_0x3d201a]),_0x30bca4[_0x3d201a]=[];}for(const _0x20f854 of _0x30bca4)for(let _0x780d27=0x0;_0x780d27<_0x20f854['length'];_0x780d27++){const _0x5c9d84=_0x20f854[_0x780d27+0x1]||null;_0x20f854[_0x780d27]['next']!==_0x5c9d84&&(_0x20f854[_0x780d27]['next']=_0x5c9d84);}for(const _0x4e2b39 of _0x30bca4)for(let _0x40c6ab=0x0;_0x40c6ab<_0x4e2b39['length'];_0x40c6ab++){const _0x227bc7=_0x4e2b39[_0x40c6ab-0x1]||null;_0x4e2b39[_0x40c6ab]['previous']!==_0x227bc7&&(_0x4e2b39[_0x40c6ab]['previous']=_0x227bc7);}function _0x2f0e17(_0x58fb89,_0x2baa85){if(_0x58fb89[0x0]['attributes']['groupId']!==_0x2baa85[0x0]['attributes']['groupId']&&_0x58fb89[0x0]['author']!==_0x2baa85[0x0]['author'])return!0x1;if(!function(_0x32a1f4,_0x77d1a3){if(!_0x32a1f4['hasComments']&&!_0x77d1a3['hasComments'])return!0x0;if(_0x32a1f4['hasComments']&&_0x77d1a3['hasComments'])return!0x1;if(_0x32a1f4['hasComments']&&_0x77d1a3['createdAt']<_0x32a1f4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x77d1a3['hasComments']&&_0x32a1f4['createdAt']<_0x77d1a3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x58fb89[0x0],_0x2baa85[0x0]))return!0x1;const _0x2a0d5b=Et(_0x58fb89[0x0]['attributes'],'groupId'),_0x1d56ca=Et(_0x2baa85[0x0]['attributes'],'groupId');if(!_0x27c121(_0x2a0d5b,_0x1d56ca))return!0x1;return!!_0x58fb89['every'](_0x43ba61=>_0x2baa85['some'](_0x515dbe=>_0x43ba61['getFirstRange']()['isEqual'](_0x515dbe['getFirstRange']())))&&_0x2baa85['every'](_0x1f611e=>_0x58fb89['some'](_0x1c1e80=>_0x1f611e['getFirstRange']()['isEqual'](_0x1c1e80['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x43b891){const _0x3f6d6d=Array['from'](_0x43b891),_0x5c5c77=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1d4a6f=_0x5c5c77['filter'](_0x3f4a2f=>!_0x43b891['has'](_0x3f4a2f)),_0x9626e9=new Map(_0x3f6d6d['map'](_0x24c2e8=>[_0x24c2e8,this['_suggestionFactory']['getSuggestionCallback'](_0x24c2e8['type'],_0x24c2e8['subType'],'join')])),_0x5f5498=new Map(_0x5c5c77['map'](_0x377f57=>[_0x377f57,_0x377f57['getRanges']()]));for(let _0x4f30f7=0x0;_0x4f30f7<_0x3f6d6d['length'];_0x4f30f7++){if(_0x29413b(this,_0x3f6d6d[_0x4f30f7],_0x3f6d6d,_0x4f30f7+0x1))return!0x0;}for(let _0x1a47ee=0x0;_0x1a47ee<_0x3f6d6d['length'];_0x1a47ee++){if(_0x29413b(this,_0x3f6d6d[_0x1a47ee],_0x1d4a6f,0x0))return!0x0;}return!0x1;function _0x29413b(_0x3ec165,_0x3eb03a,_0x2c39d6,_0x11f93f){for(let _0x4d55b5=_0x11f93f;_0x4d55b5<_0x2c39d6['length'];_0x4d55b5++){const _0x4b31c7=_0x2c39d6[_0x4d55b5];if(_0x4b31c7['type']!==_0x3eb03a['type']||_0x4b31c7['author']['id']!==_0x3eb03a['author']['id']||_0x4b31c7['subType']!==_0x3eb03a['subType'])continue;if(!zt(_0x3eb03a,_0x4b31c7))continue;if('attribute'==_0x3eb03a['type']&&_0x3eb03a['data']['oldValue']!=_0x4b31c7['data']['oldValue'])continue;if('attribute'==_0x3eb03a['type']&&_0x3ec165['_isBlockAttribute'](_0x3eb03a['data']['key']))continue;if('formatBlock'==_0x3eb03a['type']){const _0xd6d0aa=_0x3ec165['editor']['model'],_0x33b1c1=_0x3eb03a['getContainedElement']();if(_0x33b1c1&&(_0xd6d0aa['schema']['isObject'](_0x33b1c1)||_0xd6d0aa['schema']['isLimit'](_0x33b1c1)))continue;}const _0x1f5654=_0x9626e9['get'](_0x3eb03a),_0x1d68fa=_0x5f5498['get'](_0x3eb03a),_0x91738d=_0x5f5498['get'](_0x4b31c7),_0x2286bc=_0x3eb03a['commentThread']&&_0x3eb03a['commentThread']['length'],_0x39f984=_0x4b31c7['commentThread']&&_0x4b31c7['commentThread']['length'];if(!_0x2286bc&&_0x1f5654(_0x91738d,_0x1d68fa))return _0x3ec165['_joinSuggestions'](_0x4b31c7,_0x3eb03a),_0x5f5498['delete'](_0x3eb03a),!0x0;if(!_0x39f984&&_0x1f5654(_0x1d68fa,_0x91738d))return _0x3ec165['_joinSuggestions'](_0x3eb03a,_0x4b31c7),_0x5f5498['delete'](_0x4b31c7),!0x0;}return!0x1;}}['_joinSuggestions'](_0x55c143,_0x4ad0d7){if(_0x55c143['isMultiRange']){for(const _0x17867b of _0x4ad0d7['getRanges']())_0x55c143['addRange'](_0x17867b);}else{const _0x4c665f=_0x4ad0d7['getFirstRange']()['end'];this['_setSuggestionRange'](_0x55c143,this['_model']['createRange'](_0x55c143['getFirstRange']()['start'],_0x4c665f));}_0x4ad0d7['removeMarkers']();}['_getMarkerAnnouncementText'](_0x352282,_0x18c40d,_0x4b7dc1){const _0x574205=_0x352282['startsWith']('format')||_0x352282['startsWith']('attribute')?'FORMATTING':_0x352282['toUpperCase']();return o(this['editor']['locale'],_0x18c40d+'_'+_0x574205+'_SUGGESTION_ANNOUNCEMENT',_0x4b7dc1);}['_initAriaMarkerChangeAnnouncements'](){const _0x1713b0=this['editor'];if(!_0x1713b0['ui'])return;const {ariaLiveAnnouncer:_0x55ba6c}=_0x1713b0['ui'];_0x10b131(this['_model'],({left:_0xb3b652,entered:_0x3be455})=>{for(const _0x6d8136 of _0xb3b652){const {group:_0x59428c,type:_0x532b81}=this['_splitMarkerName'](_0x6d8136['name']);if('suggestion'===_0x59428c){_0x55ba6c['announce'](this['_getMarkerAnnouncementText'](_0x532b81,'LEAVE'));break;}}for(const _0x2d6be5 of _0x3be455){const {group:_0x5f53c3,type:_0x21b1e1}=this['_splitMarkerName'](_0x2d6be5['name']);if('suggestion'===_0x5f53c3){_0x55ba6c['announce'](this['_getMarkerAnnouncementText'](_0x21b1e1,'ENTER',_0xff9ef1(_0x29a97c)));break;}}});}['_processAttributeChanges'](_0x188322){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2855c2=this['editor'],_0x51e631=_0x2855c2['model']['document']['differ']['getChanges']();if(0x0==_0x51e631['length'])return!0x1;const _0x2e4035=[],_0x27473e=_0x51e631['filter'](_0xd4ba60=>'attribute'==_0xd4ba60['type']),_0x1e0f27=_0x51e631['filter'](_0x2a796e=>'insert'==_0x2a796e['type']&&'$text'!=_0x2a796e['name']),_0x317eaf=_0x51e631['filter'](_0x2be29f=>'remove'==_0x2be29f['type']&&'$text'!=_0x2be29f['name']);for(const _0x3b3088 of _0x27473e)_0x2e4035['push']({'key':_0x3b3088['attributeKey'],'newValue':_0x3b3088['attributeNewValue'],'oldValue':_0x3b3088['attributeOldValue'],'range':Jt(_0x3b3088['range'],_0x2855c2['model'])});for(const _0x14cfe1 of _0x1e0f27){const _0x1d807f=_0x317eaf['find'](_0x368bb=>_0x368bb['position']['isEqual'](_0x14cfe1['position']));_0x1d807f&&_0x2e4035['push']({'key':m,'newValue':_0x14cfe1['name'],'oldValue':_0x1d807f['name'],'range':_0x2855c2['model']['createRangeOn'](_0x14cfe1['position']['nodeAfter'])});}return 0x0!=_0x2e4035['length']&&this['_reduceExistingSuggestions'](_0x188322,_0x2e4035);}['_processAttributeSuggestions'](_0x40c898){let _0x198552=!0x1;const _0x16f3a1=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xff6dd6=>_0xff6dd6['data']['newRange']&&_0xff6dd6['name']['startsWith']('suggestion:attribute:'));for(const _0x1cadaa of _0x16f3a1){const {subType:_0x2772ee,id:_0x1b56c5}=this['_splitMarkerName'](_0x1cadaa['name']),_0xf90203=_0x2772ee['split']('|')[0x0];for(const _0x90d018 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x90d018['id']!=_0x1b56c5&&'attribute'==_0x90d018['type']&&_0x90d018['data']&&_0x90d018['data']['key']==_0xf90203&&_0x90d018['getFirstRange']()['isIntersecting'](_0x1cadaa['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x90d018,_0x1cadaa['data']['newRange'],_0x40c898),_0x198552=!0x0);}return _0x198552;}['_recordAttributeChanges'](_0x6b4b11){this['_recordAttributeSuggestions']=!0x0,_0x6b4b11();}['_isRegisteredAttribute'](_0x1779a2){const _0x188708=this['_isBlockAttribute'](_0x1779a2),_0x99ea1=this['_inlineAttributeKeys']['has'](_0x1779a2);return _0x188708||_0x99ea1;}['_reduceExistingSuggestions'](_0x49e518,_0x5150a3){if(0x0==_0x5150a3['length'])return!0x1;let _0xec3619=!0x1;for(const _0x4bedc1 of _0x5150a3){const _0x1b7012=this['_findSuggestions'](_0x4bedc1['range'],'attribute')['filter'](_0x36ba34=>!_0x36ba34['meta']['isNextTo'])['map'](_0x2b297a=>_0x2b297a['suggestion']),_0x46eea7=_0x2fabc6({'newValue':_0x4bedc1['newValue']});_0x1b7012['filter'](_0x58472c=>{const [_0x3645f2,_0x431cfb]=_0x58472c['subType']['split']('|');return _0x3645f2==_0x4bedc1['key']&&_0x431cfb!=_0x46eea7;})['forEach'](_0x3a5b94=>{this['_reduceSuggestionAttributeRange'](_0x3a5b94,_0x4bedc1['range'],_0x49e518),_0xec3619=!0x0;});}return _0xec3619;}['_reduceSuggestionAttributeRange'](_0x5b3c39,_0x5744e4,_0xbb145f){const _0x38778b=_0x5b3c39['getFirstRange']()['getDifference'](_0x5744e4);0x0!==_0x38778b['length']?0x1!==_0x38778b['length']?this['_breakSuggestionMarker'](_0x5b3c39,_0x5744e4['start'],_0x5744e4['end']):this['_setSuggestionRange'](_0x5b3c39,_0x38778b[0x0]):_0xbb145f['removeMarker'](_0x5b3c39['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2db0ff){this['_editor']=_0x2db0ff,this['_model']=_0x2db0ff['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4a2d3d,_0x3438cf,_0x6a98bf,_0x21e201,_0x260bc1,_0x44dae1){return new u(this['_model'],{'type':_0x4a2d3d,'subType':_0x3438cf,'id':_0x6a98bf,'author':_0x21e201,'creator':_0x21e201,'attributes':_0x260bc1,'onAttributesChange':_0x44dae1,'onAccept':(..._0x1959de)=>this['getSuggestionCallback'](_0x4a2d3d,_0x3438cf,'accept')(..._0x1959de),'onDiscard':(..._0x3effc1)=>this['getSuggestionCallback'](_0x4a2d3d,_0x3438cf,'discard')(..._0x3effc1)});}['registerCustomCallback'](_0x4fccd7,_0x28128a,_0x2efbeb,_0x25113d){const _0xe22b65=_0x4fccd7+':'+_0x28128a+':'+_0x2efbeb;this['_customCallbacks']['set'](_0xe22b65,_0x25113d);}['getSuggestionCallback'](_0x589719,_0x405463,_0x4e33c4){const _0x22802c=_0x589719+':'+_0x405463+':'+_0x4e33c4;return this['_customCallbacks']['get'](_0x22802c)||this['_defaultCallbacks']['get'](_0x589719+':'+_0x4e33c4);}['_registerDefaultCallbacks'](){const _0x2198b6=()=>!0x1,_0x202bc0=_0x54973b=>{_0x54973b['sort']((_0x2d8700,_0x568c44)=>_0x2d8700['start']['isBefore'](_0x568c44['start'])?0x1:-0x1),this['_model']['change'](_0x170db5=>{for(const _0x10ce48 of _0x54973b){let _0x2c620c;_0x2c620c=_0x10ce48['end']['isAtEnd']&&_0x10ce48['end']['parent']==_0x10ce48['start']['nodeAfter']?_0x170db5['createSelection'](_0x10ce48['start']['nodeAfter'],'on'):_0x170db5['createSelection'](_0x10ce48),this['_model']['deleteContent'](_0x2c620c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x106a9e=(_0x25a652,_0x3c0422)=>{_0x3c0422&&this['_model']['change'](_0x3a72e7=>{const {commandName:_0x56124b,commandParams:_0x2d9fb5=[]}=_0x3c0422,_0x2d02c5=_0x25a652['map'](_0x1364c5=>(Pt(_0x1364c5)&&(_0x1364c5=this['_model']['createRange'](_0x1364c5['end'])),_0x1364c5))['filter'](_0x415961=>'$graveyard'!==_0x415961['root']['rootName']);if(_0x2d02c5['length']<0x1)return;const _0x378ac7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x30001c=>_0x1e09a5['fromRange'](_0x30001c));_0x3a72e7['setSelection'](_0x2d02c5);for(const _0x5b6fcf of this['_editor']['commands']['commands']())_0x5b6fcf['refresh']();_0x2d9fb5['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x56124b,..._0x2d9fb5);const _0x3e0071=_0x378ac7['filter'](_0x636a6e=>'$graveyard'!=_0x636a6e['root']['rootName']);_0x3e0071['length']>0x0&&_0x3a72e7['setSelection'](_0x3e0071);for(const _0x4c53d8 of _0x378ac7)_0x4c53d8['detach']();});},_0x91d2a8=(_0x5bf509,_0x4a12d9)=>0x1==_0x5bf509['length']&&0x1==_0x4a12d9['length']&&_0x5bf509[0x0]['end']['isEqual'](_0x4a12d9[0x0]['start']),_0x3b87d7=(_0x1363ac,_0x16c443,_0xb66187,_0x16c939)=>qt(_0x1363ac,_0x16c443,_0xb66187,_0x16c939)?[_0x1363ac,_0x16c443]:qt(_0x16c443,_0x1363ac,_0x16c939,_0xb66187)?[_0x16c443,_0x1363ac]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2198b6),this['_defaultCallbacks']['set']('insertion:discard',_0x202bc0),this['_defaultCallbacks']['set']('insertion:join',_0x91d2a8),this['_defaultCallbacks']['set']('insertion:chain',_0x3b87d7),this['_defaultCallbacks']['set']('deletion:accept',_0x202bc0),this['_defaultCallbacks']['set']('deletion:discard',_0x2198b6),this['_defaultCallbacks']['set']('deletion:join',_0x91d2a8),this['_defaultCallbacks']['set']('deletion:chain',_0x3b87d7),this['_defaultCallbacks']['set']('formatInline:accept',_0x106a9e),this['_defaultCallbacks']['set']('formatInline:discard',_0x2198b6),this['_defaultCallbacks']['set']('formatInline:join',_0x91d2a8),this['_defaultCallbacks']['set']('formatInline:chain',_0x2198b6),this['_defaultCallbacks']['set']('formatBlock:accept',_0x106a9e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2198b6),this['_defaultCallbacks']['set']('formatBlock:join',_0x91d2a8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2198b6),this['_defaultCallbacks']['set']('attribute:accept',_0x2198b6),this['_defaultCallbacks']['set']('attribute:discard',(_0x46bae2,_0x1e3b42)=>{if(!_0x1e3b42)return;const _0x1668b9=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x390b83=>{if(_0x1e3b42['key']==m)for(const _0x1c46da of _0x46bae2){const _0x56d901=_0x1c46da['start']['nodeAfter'],_0x4d9567=_0x1e3b42['oldValue'];_0x390b83['rename'](_0x56d901,_0x4d9567);}else{if(_0x1668b9['_isBlockAttribute'](_0x1e3b42['key'])){for(const _0x5aa4ab of _0x46bae2)void 0x0!==_0x1e3b42['oldValue']?_0x390b83['setAttribute'](_0x1e3b42['key'],_0x1e3b42['oldValue'],_0x5aa4ab['start']['nodeAfter']):_0x390b83['removeAttribute'](_0x1e3b42['key'],_0x5aa4ab['start']['nodeAfter']);}else{for(const _0xf26e51 of _0x46bae2)_0x1e3b42['oldValue']?_0x390b83['setAttribute'](_0x1e3b42['key'],_0x1e3b42['oldValue'],_0xf26e51):_0x390b83['removeAttribute'](_0x1e3b42['key'],_0xf26e51);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x91d2a8);}}function Vt(_0xdc85c7,_0x445660,_0xf24c73){for(const _0x2039b0 of _0x445660['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2039b0['root']==_0x2039b0)return!0x1;if(!_0xf24c73['containsItem'](_0x2039b0))return!0x1;if(_0xdc85c7['isObject'](_0x2039b0)||_0xdc85c7['isLimit'](_0x2039b0))return!0x0;}return!0x1;}function Pt(_0x20cec4){return _0x20cec4['end']['parent']==_0x20cec4['start']['nodeAfter']&&_0x20cec4['end']['isAtStart'];}function Gt(_0x3faa4b,_0x5cdbd9,_0x558f0a,_0x56ba07){const _0x12b3e9=_0x1ec567=>!_0x1ec567['item']['is']('$textProxy')&&!_0x56ba07['isObject'](_0x1ec567['item']),_0x292849=_0x3faa4b['start']['getLastMatchingPosition'](_0x12b3e9),_0x3f3319=_0x3faa4b['end']['getLastMatchingPosition'](_0x12b3e9,{'direction':'backward'});return(!_0x3faa4b['start']['isEqual'](_0x292849)||!_0x3faa4b['end']['isEqual'](_0x3f3319))&&(_0x292849['isBefore'](_0x3f3319)?_0x558f0a['updateMarker'](_0x5cdbd9,{'range':_0x558f0a['createRange'](_0x292849,_0x3f3319)}):_0x558f0a['removeMarker'](_0x5cdbd9),!0x0);}function Ft(_0x543097){return _0x2fabc6(_0x543097);}function Lt(_0x577479){const _0xbc98f4=_0x577479['start']['nodeAfter'];return _0xbc98f4&&_0xbc98f4['is']('element');}function Jt(_0x256c59,_0x43c538){return null==_0x256c59['end']['nodeBefore']&&_0x256c59['end']['parent']==_0x256c59['start']['nodeAfter']?Ht(_0x256c59['start']['nodeAfter'],_0x43c538):_0x256c59;}function Ht(_0xda67f6,_0x25357f){const _0x4817e3=_0x25357f['schema']['isObject'](_0xda67f6)||_0x25357f['schema']['isSelectable'](_0xda67f6);return _0x25357f['createRange'](_0x25357f['createPositionAt'](_0xda67f6,'before'),_0x4817e3?_0x25357f['createPositionAfter'](_0xda67f6):_0x25357f['createPositionAt'](_0xda67f6,'end'));}function qt(_0x57b5e6,_0x27117f,_0x494e1f,_0x35f653){return!!zt(_0x57b5e6,_0x27117f)&&_0x494e1f['end']['isEqual'](_0x35f653['start']);}function zt(_0x1060b8,_0x12c01c){if(!_0x1060b8['_isDataLoaded']||!_0x12c01c['_isDataLoaded'])return!0x1;const _0xa460d3=new Set(Object['keys'](_0x1060b8['attributes'])),_0x545e49=new Set(Object['keys'](_0x12c01c['attributes']));if(_0xa460d3['delete']('groupId'),_0x545e49['delete']('groupId'),0x0==_0xa460d3['size']&&0x0==_0x545e49['size'])return!0x0;if(_0xa460d3['size']!=_0x545e49['size'])return!0x1;const _0x5670bf={..._0x1060b8['attributes']},_0x566c60={..._0x12c01c['attributes']};return delete _0x5670bf['groupId'],delete _0x566c60['groupId'],JSON['stringify'](_0x5670bf)==JSON['stringify'](_0x566c60);}function Kt(_0x54792a,_0x22c360){const _0x52bec6=Wt(_0x54792a['attributes']),_0x1d2de1=Wt(_0x22c360);if(!_0x54792a['_isDataLoaded'])return!0x1;for(const _0x238ec5 of Object['keys'](_0x1d2de1))if(!_0x27c121(_0x52bec6[_0x238ec5],_0x1d2de1[_0x238ec5]))return!0x1;return!0x0;}function Wt(_0x39a9cf){const _0x4816b9=Object['assign']({},_0x39a9cf);return delete _0x4816b9['skipNestingCheck'],delete _0x4816b9['tablePasteChainId'],_0x4816b9;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3c6444(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x247a63,_0x58199c,_0x465903,_0x3554fe){super(),this['model']=_0x58199c,this['view']=_0x465903,this['commentThreadController']=_0x3554fe,this['_editor']=_0x247a63,this['_acceptCommand']=_0x247a63['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x247a63['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x14406d,_0x3abd62)=>_0x14406d||_0x3abd62),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3274f0=>_0x3274f0&&this['_editor']['model']['canEditAt'](_0x58199c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1fa51b=>_0x1fa51b&&this['_editor']['model']['canEditAt'](_0x58199c['getRanges']())),this['_pendingAction']=null,_0x465903['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x465903,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x465903,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x465903,'change:isDirty',()=>{_0x465903['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 _0x280c43=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x280c43);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0xb8f822{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xa8c20f,_0x6f8b97,_0x32a4c3,_0x449042){super(_0xa8c20f),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1bc3ff(_0xa8c20f,o(_0xa8c20f,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x6f8b97['authoredAt']),this['bind']('authoredAt')['to'](_0x6f8b97),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',_0x6f8b97,'authoredAt',this,'descriptionParts',(_0x52ce8b,_0x213390,_0x39ff1d)=>{const _0x58b649=_0x39ff1d['map'](_0x21fdd7=>ns(_0x21fdd7['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x52ce8b-0x1,_0x6f8b97['author']['name'],_0x213390?_0x449042['formatDateTime'](_0x213390):'',new DOMParser()['parseFromString'](_0x58b649,'text/html')['body']['textContent']]);}),this['focusables']=new _0x170438(),this['focusTracker']=new _0x2b4231(),this['keystrokes']=new _0x3254d8(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xc34a15=>_0xc34a15['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x6f8b97,this['_localUser']=_0x32a4c3,this['_config']=_0x449042,_0x449042['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x41d368(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x362524}=this['_config'];this['commentsListView']=new _0x362524(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',_0x592479=>_0x592479+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3b73ab,_0x43447c)=>_0x3b73ab||!!_0x43447c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1e7584}=this['_config'],_0x56f1cb=new _0x1e7584(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4b11bf=_0x56f1cb['commentInputView'];return _0x56f1cb['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4b11bf,'value',(_0x2cbe6b,_0x544665,_0x163f70)=>!!_0x163f70||_0x2cbe6b&&!_0x544665),_0x4b11bf['on']('submit',(_0x31543c,_0x19c4b0)=>{this['fire']('addComment',_0x19c4b0),_0x4b11bf['editor']['setData']('');}),_0x4b11bf['on']('cancel',()=>this['focus']()),_0x4b11bf['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x56f1cb;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0x390a2d,_0x139ad5,_0x1d245f,_0x4c8cf5){super(_0x390a2d,_0x139ad5,_0x1d245f,_0x4c8cf5),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3219c6=>_0x3219c6&&_0x3219c6[0x0]?_0x3219c6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5d9f7c,_0x456b37)=>{let _0x35ddca='';for(const _0x3c4a37 of _0x5d9f7c)_0x35ddca+='<p>'+ns(_0x3c4a37['content'],_0x3c4a37['color'])+'</p>';return _0x456b37?_0x35ddca:_0x3a5076(_0x35ddca,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4c8cf5['SuggestionView'](_0x390a2d,_0x139ad5,{'formatDateTime':_0x4c8cf5['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 _0x35959e=this['bindTemplate'],_0x33b2a8=[this['suggestionView']];return this['commentsListView']&&_0x33b2a8['push'](this['commentsListView']),this['commentThreadInputView']&&_0x33b2a8['push'](this['commentThreadInputView']),_0x33b2a8['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x35959e['if']('isActive','ck-suggestion-wrapper--active'),_0x35959e['to']('type',_0x1ca691=>'ck-suggestion-'+_0x1ca691),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':_0x35959e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x33b2a8};}['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 fe extends _0xb8f822{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x34a24a,_0x5634a4,_0x252efa){super(_0x34a24a),this['_model']=_0x5634a4,this['_config']=_0x252efa,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5634a4),this['acceptButton']=this['_createButton'](o(_0x34a24a,'Accept\x20suggestion'),_0x4c8ee3['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x34a24a,'Discard\x20suggestion'),_0x4c8ee3['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x29e6d6(_0x34a24a,_0x5634a4['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x170438([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2b4231(),this['keystrokes']=new _0x3254d8(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x28e22c=>_0x28e22c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x550b6d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x550b6d['innerHTML']=this['description'],this['on']('change:description',(_0x1036dd,_0x3a4c7e,_0x1d2417)=>{_0x550b6d['innerHTML']=_0x1d2417;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x57ca08=this['bindTemplate'],_0x138bbb=[{'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':_0x57ca08['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x57ca08['to']('authoredAt',_0x152195=>this['_config']['formatDateTime'](_0x152195))}]}]},{'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']&&_0x138bbb['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':_0x138bbb}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3b2589,_0x57d111,_0x29f08b,_0x2a3bdd,_0x1c6acd){const _0x58bb9e=new _0x18f485(this['locale']);return _0x58bb9e['set']({'label':_0x3b2589,'icon':_0x57d111,'tooltip':!0x0,'tooltipPosition':_0x1c6acd}),_0x58bb9e['extendTemplate']({'attributes':{'class':_0x29f08b}}),_0x58bb9e['on']('execute',()=>{this['fire'](_0x2a3bdd,this['_model']['id']);}),_0x58bb9e;}['_setupKeyboardNavigation'](){const _0x439214=this['element'];this['keystrokes']['listenTo'](_0x439214);for(const _0x37c2fd of this['focusables'])this['focusTracker']['add'](_0x37c2fd['element']),this['keystrokes']['listenTo'](_0x37c2fd['element']);this['keystrokes']['set']('enter',(_0x3d3dc5,_0xcbc643)=>{_0x439214===_0x3d3dc5['target']&&(this['focusCycler']['focusFirst'](),_0xcbc643());}),this['keystrokes']['set']('esc',(_0x3b7adf,_0x329a90)=>{_0x439214!==_0x3b7adf['target']&&(this['focus'](),_0x329a90());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x5d6d85{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0xc8e4c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2b6901){super(_0x2b6901),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2db929=this['editor']['config'];_0x2db929['define']('trackChanges.SuggestionThreadView',pe),_0x2db929['define']('trackChanges.SuggestionView',fe),_0x2db929['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2db929['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x178985,_0x2f4d0b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x218f11,_0x1062a8]of this['_handleControllerBuffer']){const _0x4de825=this['_suggestionToController']['has'](_0x218f11);_0x4de825||_0x1062a8?_0x4de825&&_0x1062a8&&this['_destroyController'](_0x218f11):this['_initializeController'](_0x218f11);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x178985,_0x2f4d0b);}['init'](){const _0x17ff9d=this['editor'],_0x457da0=_0x17ff9d['plugins']['get']('TrackChangesEditing'),_0x383323=_0x17ff9d['plugins']['get']('Annotations'),_0x18ef18=_0x17ff9d['plugins']['get']('EditorAnnotations'),_0x557d72=_0x17ff9d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x18ef18['addSourceCollector'](()=>{const _0x4061eb=[];for(const [_0x4de026,_0x48efbd]of Array['from'](this['_suggestionToController'])){const _0x27fc26=_0x4de026['getAllAdjacentSuggestions'](),_0x4dbdef=[];for(const _0x5f5808 of _0x27fc26){if(!_0x5f5808['isInContent'])continue;if(_0x5f5808['isMultiRange']){_0x4dbdef['push'](..._0x5f5808['getRanges']());continue;}const _0x4b4205=_0x5f5808['getFirstRange']();if(_0x4dbdef['length']>0x0){const _0x5aeae2=_0x4dbdef[0x0]['getJoined'](_0x4b4205);if(_0x5aeae2){_0x4dbdef[0x0]=_0x5aeae2;continue;}}_0x4dbdef['push'](_0x4b4205);}_0x4061eb['push']([_0x48efbd['view'],_0x4dbdef]);}return _0x4061eb;}),this['listenTo'](_0x457da0,'suggestionLoaded',(_0x11fc78,_0x27d0d4)=>{this['listenTo'](_0x27d0d4,'change:previous',(_0x1cdcae,_0x3bbd6c,_0x216c43,_0x278c77)=>{_0x27d0d4['isInContent']&&(null==_0x216c43?(this['_updateController'](_0x278c77['head']),this['_handleSuggestionControllerDelayed'](_0x27d0d4,!0x1)):(this['_updateController'](_0x216c43['head']),null==_0x278c77&&this['_handleSuggestionControllerDelayed'](_0x27d0d4,!0x0)));}),null!==_0x27d0d4['previous']?this['_updateController'](_0x27d0d4['head']):this['_handleSuggestionControllerDelayed'](_0x27d0d4,!0x1);}),this['listenTo'](_0x457da0,'suggestionUnloaded',(_0x5033c0,_0x2715eb,_0x15c8bb)=>{this['stopListening'](_0x2715eb,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2715eb),this['_suggestionToController']['has'](_0x2715eb)&&this['_destroyController'](_0x2715eb),_0x15c8bb&&this['_updateController'](_0x15c8bb['head']);}),this['listenTo'](_0x457da0,'suggestionChanged',(_0x33801a,_0x3e3b03)=>{this['_updateController'](_0x3e3b03);}),this['listenTo'](_0x383323,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x557d72,'addComment',(_0x5aa08d,{threadId:_0x464b5d,isFromAdapter:_0x30b657})=>{if(_0x30b657||!_0x457da0['hasSuggestion'](_0x464b5d))return;const _0x3cafd1=_0x457da0['getSuggestion'](_0x464b5d);this['_suggestionToController']['get'](_0x3cafd1)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5e103b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x24b80d;for(const _0xbf4a9a in _0x5e103b){const _0x2f25f5=_0xbf4a9a,_0x1347e8=_0x5e103b[_0x2f25f5];if('trackChangesLicenseKeyValid'==_0x1347e8||'trackChangesLicenseKeyInvalid'==_0x1347e8||'trackChangesLicenseKeyExpired'==_0x1347e8||'trackChangesLicenseKeyDomainLimit'==_0x1347e8||'trackChangesLicenseKeyNotAllowed'==_0x1347e8||'trackChangesLicenseKeyEvaluationLimit'==_0x1347e8||'trackChangesLicenseKeyTrialLimit'==_0x1347e8||'trackChangesLicenseKeyUsageLimit'==_0x1347e8){delete _0x5e103b[_0x2f25f5],_0x24b80d=_0x1347e8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x24b80d&&_0x5e103b['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x24b80d&&_0x5e103b['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x24b80d&&_0x5e103b['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x24b80d&&_0x5e103b['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x24b80d&&_0x5e103b['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x24b80d&&_0x5e103b['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x24b80d&&_0x5e103b['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x3d3634=this['editor']['plugins']['get']('Annotations'),_0x128fd2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31009b=Array['from'](_0x3d3634['activeAnnotations'],_0x2dfd22=>_0x2dfd22['innerView'])['filter'](_0x26159f=>this['_viewToController']['has'](_0x26159f)),_0x151d72=[];for(const _0x403b02 of _0x31009b){const _0x38a6a3=this['_viewToController']['get'](_0x403b02)['model']['getAllAdjacentSuggestions']();_0x151d72['push'](..._0x38a6a3['reduce']((_0x2de9ed,_0x5d7326)=>[..._0x2de9ed,..._0x5d7326['getMarkerNames']()],[]));}_0x128fd2['activeMarkers']=_0x151d72;}['_addUIComponentsToFactory'](){const _0x1c5f38=this['editor'],_0x504115=_0x1c5f38['locale'],_0x2af5d9=o(_0x504115,'Track\x20changes'),_0x1ce21a=new _0x9348b0([{'type':'switchbutton','model':new _0x10cbf3({'withText':!0x0,'isToggleable':!0x0,'label':_0x2af5d9,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x10cbf3({'withText':!0x0,'label':o(_0x504115,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x10cbf3({'withText':!0x0,'label':o(_0x504115,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x10cbf3({'withText':!0x0,'label':o(_0x504115,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x10cbf3({'withText':!0x0,'label':o(_0x504115,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1c5f38['plugins']['has']('TrackChangesPreview')&&_0x1ce21a['addMany']([{'type':'separator'},{'type':'button','model':new _0x10cbf3({'withText':!0x0,'label':o(_0x504115,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1c418d of _0x1ce21a)if(ke(_0x1c418d)){const _0x49c7c0=_0x1c5f38['commands']['get'](_0x1c418d['model']['commandName']);_0x1c418d['model']['bind']('isOn','isEnabled')['to'](_0x49c7c0,'value','isEnabled');}_0x1c5f38['ui']['componentFactory']['add']('trackChanges',_0x2b2c68=>this['_createToolbarButton'](_0x2b2c68,_0x1ce21a,_0x2af5d9)),_0x1c5f38['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3cfad7=>this['_createMenuBarMenu'](_0x3cfad7,_0x1ce21a,_0x2af5d9));}['_createToolbarButton'](_0x1a06fe,_0x114ef3,_0x375326){const _0x53f934=_0x3281b7(_0x1a06fe,_0x11c105),_0x5b09ac=this['editor']['commands']['get']('trackChanges');_0x53f934['buttonView']['set']({'tooltip':_0x375326,'label':_0x375326,'icon':we}),_0x53f934['buttonView']['bind']('isOn')['to'](_0x5b09ac,'value'),_0x53f934['buttonView']['on']('execute',()=>{_0x5b09ac['execute'](),this['editor']['editing']['view']['focus']();}),_0x23fcda(_0x53f934,_0x114ef3,{'role':'menu'});const _0x31b1be=[];for(const _0xfb64d3 of _0x114ef3)ke(_0xfb64d3)&&_0x31b1be['push'](this['editor']['commands']['get'](_0xfb64d3['model']['commandName']));const _0x4ec780=_0x53f934['buttonView'];return _0x4ec780['actionView']['unbind']('isEnabled'),_0x4ec780['arrowView']['unbind']('isEnabled'),_0x4ec780['actionView']['bind']('isEnabled')['to'](_0x5b09ac,'isEnabled'),_0x4ec780['arrowView']['bind']('isEnabled')['toMany'](_0x31b1be,'isEnabled',(..._0xcebfbe)=>_0xcebfbe['some'](_0x21ffa8=>_0x21ffa8)),_0x53f934['on']('execute',_0x17d2db=>{this['editor']['execute'](_0x17d2db['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x53f934;}['_createMenuBarMenu'](_0x5ad088,_0x5f17d6,_0x541c38){const _0x51a5c6=new _0x56b16a(_0x5ad088),_0x45cb36=this['editor']['commands']['get']('trackChanges');_0x51a5c6['buttonView']['set']({'label':_0x541c38,'icon':we});const _0x2a4637=new _0x16ca5a(_0x5ad088);for(const _0x3e4e7a of _0x5f17d6){if('separator'==_0x3e4e7a['type']){_0x2a4637['items']['add'](new _0x1d2b06(_0x5ad088));continue;}const _0x44174e=new _0x522a14(_0x5ad088,_0x51a5c6),_0x3a2cd0=new _0x425554(_0x5ad088),_0x4e2db3=_0x3e4e7a['model'];_0x3a2cd0['bind'](...Object['keys'](_0x4e2db3))['to'](_0x4e2db3),_0x3a2cd0['delegate']('execute')['to'](_0x51a5c6),_0x3a2cd0['on']('execute',()=>{this['editor']['execute'](_0x4e2db3['commandName']),this['editor']['editing']['view']['focus']();}),_0x44174e['children']['add'](_0x3a2cd0),_0x2a4637['items']['add'](_0x44174e);}return _0x51a5c6['bind']('isEnabled')['to'](_0x45cb36,'isEnabled'),_0x51a5c6['panelView']['children']['add'](_0x2a4637),_0x51a5c6;}['_initializeController'](_0x587d86){const _0x346244=this['editor'],_0x291f82=_0x346244['config'],_0x19732f=_0x346244['plugins']['get']('Annotations'),_0x595d9d=_0x346244['plugins']['get']('CommentsRepository'),_0x33b6b2=_0x346244['plugins']['get']('EditorAnnotations'),_0x182b4a=_0x346244['plugins']['get'](_0xc8e4c)['me'],_0x39f599=_0x291f82['get']('trackChanges')['SuggestionThreadView'],_0x2e8220=_0x291f82['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3b3dbd,CommentThreadInputView:_0x11f88a}=_0x346244['plugins']['get']('CommentsUI');let _0x4e862f,_0x439643,_0x59ab59;this['_annotationViews']['has'](_0x587d86['id'])?(_0x439643=this['_annotationViews']['get'](_0x587d86['id']),_0x4e862f=_0x439643['mainView']):(_0x4e862f=new _0x39f599(_0x346244['locale'],_0x587d86,_0x182b4a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x291f82['get']('comments.editorConfig'),'licenseKey':_0x291f82['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x291f82['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x291f82['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x291f82['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5737cc(_0x291f82['get']('locale')),'CommentView':_0x291f82['get']('comments')['CommentView'],'CommentsListView':_0x3b3dbd,'CommentThreadInputView':_0x11f88a,'SuggestionView':_0x2e8220}),_0x4e862f['suggestionView']['acceptButton']['on']('execute',()=>{_0x346244['editing']['view']['focus']();}),_0x4e862f['suggestionView']['discardButton']['on']('execute',()=>{_0x346244['editing']['view']['focus']();}),_0x439643=_0x19732f['createAnnotationView'](this['editor']['locale'],_0x4e862f),_0x439643['bind']('isDirty')['to'](_0x4e862f,'isDirty'),_0x439643['bind']('length')['to'](_0x4e862f),_0x439643['bind']('type')['to'](_0x4e862f,'type',_0x5a054b=>'suggestion-'+_0x5a054b),_0x4e862f['on']('escape',()=>{_0x59ab59['fire']('escape');}),this['_annotationViews']['set'](_0x587d86['id'],_0x439643));const _0xe54c0=_0x595d9d['createCommentThreadController'](_0x587d86['commentThread'],_0x4e862f),_0x559c1a=new Ce(_0x346244,_0x587d86,_0x4e862f,_0xe54c0),_0x30354d=_0x587d86['getAllAdjacentSuggestions']()['filter'](_0x2fb6fe=>_0x2fb6fe['isInContent']);_0x4e862f['descriptionParts']=_0x346244['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x30354d),this['_suggestionToController']['set'](_0x587d86,_0x559c1a),this['_viewToController']['set'](_0x4e862f,_0x559c1a),_0x59ab59=_0x19732f['createAnnotation']({'view':_0x439643,'target':()=>{const _0xf2161b=[],_0x140ece=_0x587d86['getAllAdjacentSuggestions']()['filter'](_0xe00913=>_0xe00913['isInContent']);for(const _0x2eac33 of _0x140ece)_0xf2161b['push'](..._0x2eac33['getMarkers']());return _0x458c25(_0x346244['editing'],_0xf2161b);},'type':()=>'suggestion-'+_0x559c1a['view']['type']}),_0x595d9d['_bindAnnotationToEditors'](_0x4e862f,_0x59ab59),_0x19732f['add'](_0x59ab59),_0x33b6b2['registerAnnotation'](_0x59ab59);}['_destroyController'](_0x36e86b){const _0x441612=this['editor']['plugins']['get']('CommentsRepository'),_0x471078=this['editor']['plugins']['get']('Annotations'),_0x4d171f=this['_suggestionToController']['get'](_0x36e86b),_0x1051a5=_0x4d171f['view'],_0xefce49=_0x471078['getByInnerView'](_0x1051a5);_0x441612['_unbindEditors'](_0x1051a5),_0xefce49&&_0x471078['remove'](_0xefce49),this['_suggestionToController']['delete'](_0x36e86b),this['_viewToController']['delete'](_0x1051a5),_0x4d171f['destroy']();}['_updateController'](_0x34b522){if(!_0x34b522['isInContent']||!this['_suggestionToController']['has'](_0x34b522))return;const _0x3df059=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4cb7fd=this['_suggestionToController']['get'](_0x34b522),_0x403166=_0x34b522['getAllAdjacentSuggestions']();_0x4cb7fd['view']['descriptionParts']=_0x3df059['descriptionFactory']['getDescriptions'](_0x403166);}['destroy'](){for(const _0x2624cc of this['_suggestionToController']['keys']())this['_destroyController'](_0x2624cc);for(const _0x854338 of this['_annotationViews']['values']())_0x854338['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3b676f){return'model'in _0x3b676f;}class k extends _0x5d6d85{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3a7325){this['editor']['plugins']['get'](p)['adapter']=_0x3a7325;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x5a6e30){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x5a6e30);}['getSuggestions']({skipNotAttached:_0x388823=!0x1,toJSON:_0xbb6bd5=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x388823,'toJSON':_0xbb6bd5});}['getSuggestion'](_0x36f219){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x36f219);}}const w=['Pagination'];class T extends _0x5d6d85{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x6dc72c=this['editor'];if(_0x6dc72c['config']['define']('trackChangesData.editorCreator',_0x14c976=>{const _0x5d4fbb=_0x6dc72c['model']['document']['getRootNames']()['reduce']((_0x3de3b1,_0x1cc34d)=>(_0x3de3b1[_0x1cc34d]='',_0x3de3b1),{});return _0x6dc72c['constructor']['create'](_0x5d4fbb,_0x14c976);}),'function'!=typeof _0x6dc72c['config']['get']('trackChangesData')['editorCreator'])throw new _0x29d5ac('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xceb9a5){return N(this['editor'],!0x0,_0xceb9a5);}['getDataWithDiscardedSuggestions'](_0x5ba943){return N(this['editor'],!0x1,_0x5ba943);}}class D extends _0x5d6d85{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x19cb1b){function _0x349503(_0x105462){return _0x105462['map'](_0x3b36ea=>String['fromCharCode'](_0x3b36ea))['join']('');}super(_0x19cb1b),this['result']='end',_0x19cb1b[_0x349503([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x349503([0x76,0x69,0x65,0x77])][_0x349503([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x349503([0x61,0x75,0x74,0x6f]),_0x19cb1b[_0x349503([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x349503([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x349503([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x349503([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x349503([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(_0x36cf20){return void 0x0!==_0x36cf20['getRootsAttributes'];}async function N(_0x48fcfa,_0x207fa3,_0x34c887){const _0x3e25b9=_0x1faa66(_0x48fcfa,w);_0x3e25b9['plugins']['push'](p,D),_0x3e25b9['rootsAttributes']=Fe(_0x48fcfa)?_0x48fcfa['getRootsAttributes']():void 0x0;const _0x56d99d=document['createDocumentFragment'](),_0x1c49de=_0x48fcfa['config']['get']('trackChangesData')['editorCreator'],_0x106452=await _0x1c49de(_0x3e25b9,()=>function(_0x5ad0f1){const _0x5f4264=document['createElement']('div');return _0x5ad0f1['appendChild'](_0x5f4264),_0x5f4264;}(_0x56d99d));!function(_0x527470,_0x453d66){const _0x185a4b=_0x527470['model']['document']['getRootNames']()['reduce']((_0x4df2dd,_0x5d0ab4)=>(_0x4df2dd[_0x5d0ab4]=_0x527470['data']['get']({'rootName':_0x5d0ab4}),_0x4df2dd),{}),_0x1e3662=_0x527470['plugins']['get']('Users')['users']['map'](_0x1669db=>({'id':_0x1669db['id'],'name':_0x1669db['name']})),_0x2aa5b9=_0x527470['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x98e5cb=_0x527470['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x108f06=_0x453d66['plugins']['get']('Users'),_0x373876=_0x453d66['plugins']['get']('TrackChangesEditing'),_0x14e166=_0x453d66['plugins']['get']('CommentsRepository');for(const _0x5ae211 of _0x14e166['getCommentThreads']())_0x5ae211['remove']();for(const _0x1b4598 of _0x1e3662)_0x108f06['getUser'](_0x1b4598['id'])||_0x108f06['addUser'](_0x1b4598);_0x108f06['me']||_0x108f06['useAnonymousUser']();for(const _0xf2ec65 of _0x98e5cb)_0x14e166['addCommentThread'](_0xf2ec65);for(const _0x1b45d8 of _0x2aa5b9)_0x373876['addSuggestionData'](_0x1b45d8);_0x453d66['data']['set'](_0x185a4b);}(_0x48fcfa,_0x106452),_0x106452['execute'](_0x207fa3?'acceptAllSuggestions':'discardAllSuggestions');const _0x4419d8=Fe(_0x106452)?_0x106452['getFullData'](_0x34c887):_0x106452['data']['get'](_0x34c887);return await _0x106452['destroy'](),_0x4419d8;}class Me extends _0xb8f822{['options'];constructor(_0x46ff0a,_0x3d6f00){super(_0x46ff0a),this['options']=_0x3d6f00,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'](_0x467521,_0x1137aa){if(!this['element'])return;const _0x43f400=[];for(const [_0x3bc055,_0x9ac524]of _0x467521){const _0x15b948=document['createElement']('div');_0x15b948['setAttribute']('data-ck-root-name',_0x3bc055),_0x15b948['className']=_0x9ac524['classes']+'\x20ck-track-changes-preview__root-container',_0x15b948['innerHTML']=_0x9ac524['content'],_0x43f400['push'](_0x15b948);}_0x1137aa(this['element'],_0x43f400),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x108780){super(_0x108780),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x436286=this['editor'],_0x474ab4=_0x436286['locale'],_0x372016=_0x436286['plugins']['get']('Dialog');let _0x3e660c;const _0x2c1eda=function(_0x4e2509){const _0x126eaa={};if('editables'in _0x4e2509['ui']['view']){for(const [_0x10409d,_0x13d690]of Object['entries'](_0x4e2509['ui']['view']['editables']))_0x126eaa[_0x10409d]=_0x13d690['element'];}else _0x126eaa[_0x4e2509['model']['document']['getRootNames']()[0x0]]=_0x4e2509['ui']['view']['editable']['element'];return _0x126eaa;}(_0x436286),_0x398b77=function(_0x2a4d58){let _0x65fd8e=0x0;for(const _0x59777e of Object['values'](_0x2a4d58))_0x65fd8e=Math['max'](_0x65fd8e,_0x59777e['getBoundingClientRect']()['width']);let _0x3b27ed=0x0;for(const _0x1d6771 of Object['values'](_0x2a4d58))_0x3b27ed+=_0x1d6771['getBoundingClientRect']()['height'];const _0x1cf4cb=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4c5aa9=Math['min'](_0x3b27ed,_0x1cf4cb);return{'width':_0x65fd8e,'height':_0x4c5aa9};}(_0x2c1eda);_0x372016['show']({'id':'finalContentPreview','title':o(_0x474ab4,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x474ab4,{'dialogRects':_0x398b77}),'onHide':()=>{_0x3e660c['detachFromDom']();},'onShow':()=>{_0x436286['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x295482=>{const _0x43502f=this['_standarizeRootsData'](_0x295482,_0x436286,_0x2c1eda);_0x372016['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x43502f,_0x436286['config']['get']('trackChanges.preview.renderFunction'));}),_0x3e660c=new _0x1ab9e7(_0x474ab4,[_0x372016['view']]),_0x3e660c['attachToDom'](),_0x3e660c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x436286['once']('destroy',()=>{_0x3e660c['detachFromDom']();});const _0x50bf52=_0x372016['view']['headerView']['class'];_0x372016['view']['headerView']['class']=_0x50bf52?_0x50bf52+'\x20ck-reset_all':'ck-reset_all',_0x372016['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x372016['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x447090=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x31892b=_0x447090['previewMode'],_0x289eb1={};if('$labels'===_0x31892b){for(const _0x45c6c6 of _0x447090['getMergeFieldsIds']())_0x289eb1[_0x45c6c6]=_0x447090['getLabel'](_0x45c6c6)||_0x45c6c6;}else{const _0x345054='$defaultValues'===_0x31892b?_0x447090['getDefaultValues']():_0x447090['getDataSetValues'](_0x31892b,!0x0);for(const _0x3711bd of Object['entries'](_0x345054)){const [_0x242356,_0x382904]=_0x3711bd;_0x289eb1[_0x242356]=null!==_0x382904?_0x382904:_0x447090['getLabel'](_0x242356)||_0x242356;}}return{'mergeFieldsData':_0x289eb1};}['_standarizeRootsData'](_0x4ebfe9,_0x29d527,_0x17d824){let _0x11e4a1;if('string'==typeof _0x4ebfe9){const _0x3e33e3=_0x29d527['model']['document']['getRootNames']()[0x0];_0x11e4a1={[_0x3e33e3]:_0x4ebfe9};}else _0x11e4a1=_0x4ebfe9;const _0x2c9fe9=this['_fixMediaEmbeds'](_0x11e4a1,_0x29d527),_0x418d3f=function(_0x508c96,_0x2fd092){for(const [_0x9eb477,_0x34afc8]of _0x508c96)_0x34afc8['classes']=_0x2fd092[_0x9eb477]['classList']['value']['replace']('ck-focused','');return _0x508c96;}(this['_sortRoots'](_0x29d527)['reduce']((_0x43f654,_0x4c8291)=>(_0x43f654['push']([_0x4c8291,{'content':_0x2c9fe9[_0x4c8291],'classes':''}]),_0x43f654),[]),_0x17d824);return _0x418d3f;}['_fixMediaEmbeds'](_0x38cfc2,_0x28cef9){if(!_0x28cef9['plugins']['has']('MediaEmbedEditing'))return _0x38cfc2;const _0x96d6f2=_0x28cef9['plugins']['get']('MediaEmbedEditing');for(const [_0x54aea9,_0x17f34e]of Object['entries'](_0x38cfc2)){const _0x23d532=document['createElement']('div');_0x23d532['innerHTML']=_0x17f34e,(_0x23d532['querySelectorAll']('figure.media')['forEach'](_0x12fffe=>{const _0x75f948=_0x12fffe['querySelector']('oembed');if(_0x75f948){const _0x5a024c=_0x75f948['getAttribute']('url');if(_0x5a024c){const _0x47b482=_0x96d6f2['registry']['getMediaViewElement'](new _0x13342a(_0x28cef9['editing']['view']['document']),_0x5a024c,{'elementName':'','renderForEditingView':!0x0}),_0x45c7af=document['createElement']('div');_0x45c7af['classList']['add']('ck-media__wrapper'),_0x47b482['render'](_0x45c7af,_0x28cef9['editing']['view']['domConverter']),_0x75f948['replaceWith'](_0x45c7af);}}}),_0x38cfc2[_0x54aea9]=_0x23d532['innerHTML']);}return _0x38cfc2;}['_sortRoots'](_0x4c54db){if(!function(_0x1ab107){return void 0x0!==_0x1ab107['getRootsAttributes'];}(_0x4c54db))return _0x4c54db['model']['document']['getRootNames']();const _0x305498=[],_0x445cda=new Map();for(const _0x1fba06 of _0x4c54db['model']['document']['getRootNames']()){const _0x1bad88=_0x4c54db['editing']['view']['getDomRoot'](_0x1fba06)['getClientRects']()['item'](0x0);_0x305498['push'](_0x1fba06),_0x445cda['set'](_0x1fba06,_0x1bad88);}return _0x305498['sort']((_0x29bb77,_0x337d52)=>{const _0x2b7eed=_0x445cda['get'](_0x29bb77),_0x38c344=_0x445cda['get'](_0x337d52);return _0x2b7eed['y']-_0x38c344['y']||_0x2b7eed['x']-_0x38c344['x'];}),_0x305498;}}class te extends _0x5d6d85{static get['requires'](){return[T,_0x4fd160];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x220e22){super(_0x220e22),_0x220e22['commands']['add']('previewFinalContent',new re(this['editor'])),_0x220e22['config']['define']('trackChanges.preview.renderFunction',(_0x22d4f1,_0x2dc5c4)=>{for(const _0xc72b00 of _0x2dc5c4)_0x22d4f1['appendChild'](_0xc72b00);});}}export{as as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as Qt,Plugin as _0x2bd390,PendingActions as _0x5dcbf1,icons as _0x4eafb5}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1b3384,ObservableMixin as _0x44e880,uid as _0x309c8a,priorities as _0x574764,insertToPriorityArray as _0x264422,logWarning as _0xdb8619,getEnvKeystrokeText as _0xe69207,FocusTracker as _0x4681dd,KeystrokeHandler as _0x374edf,Collection as _0x4e342c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x4deacf,View as _0x4f14f8,ViewCollection as _0x4f4771,FocusCycler as ts,ViewModel as _0x333e03,createDropdown as _0x159ffe,SplitButtonView as _0x474fbc,addListToDropdown as _0xe3cad7,MenuBarMenuView as _0x2a6aa0,MenuBarMenuListView as _0x1d6587,ListSeparatorView as _0x292442,MenuBarMenuListItemView as _0x2e8612,MenuBarMenuListItemButtonView as _0x2462b7,BodyCollection as _0x4bfbcc,Dialog as _0x1f395f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x396d67,hashObject as _0x33d343,surroundingMarkersDetector as _0xda66e0,FOCUS_ANNOTATION_KEYSTROKE as _0x2c88fd,AriaDescriptionView as _0x3d14dc,setupThreadKeyboardNavigation as _0x4cec70,trimHtml as _0x517800,UserView as _0x552601,LateFocusButtonView as _0x5f0eaf,getDateTimeFormatter as _0x565ad9,getAllMarkersDomElementsSorted as _0x398747,sanitizeEditorConfig as _0x3f0e77}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2ee9c0,LiveRange as _0xfaa3eb,LivePosition as _0x152006,DowncastWriter as _0x2bfc92}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xe45f10,toWidget as _0x33f2b9}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x7a7cb2,set as _0x5527d,isEqual as _0x5a7cf5,unset as _0x16bf74,omit as Et}from'lodash-es';import{Delete as _0x562238,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x212829,ShiftEnter as _0xf93acd}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0xbd0e57,_0x1c87df){super(_0xbd0e57),this['_enabledCommands']=_0x1c87df,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 _0x3c7f55 of this['editor']['commands']['commands']())_0x3c7f55['affectsData']&&!this['_enabledCommands']['has'](_0x3c7f55)&&_0x3c7f55['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1aa301 of this['editor']['commands']['commands']())_0x1aa301['affectsData']&&!this['_enabledCommands']['has'](_0x1aa301)&&_0x1aa301['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x3114e3,_0x39aa21){super(_0x3114e3),this['_suggestions']=_0x39aa21,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1dbb98){const _0x230c7b=this['_suggestions']['get'](_0x1dbb98);if(!_0x230c7b)throw new _0x1b3384('track-changes-accept-suggestion-not-found',this);const _0x388ece=_0x230c7b['getRanges']();this['editor']['model']['canEditAt'](_0x388ece)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x230c7b);}}class R extends Qt{['_suggestions'];constructor(_0x2912f6,_0x3d0b41){super(_0x2912f6),this['_suggestions']=_0x3d0b41,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3f6d98){const _0x2a5814=this['_suggestions']['get'](_0x3f6d98);if(!_0x2a5814)throw new _0x1b3384('track-changes-discard-suggestion-not-found',this);const _0x4ab470=_0x2a5814['getRanges']();this['editor']['model']['canEditAt'](_0x4ab470)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2a5814);}}function ns(_0x160da9,_0x320d7c){let _0x15d0b2='';return _0x15d0b2+=_0x160da9['split']('*')['map']((_0x339613,_0x59e545)=>_0x59e545%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x339613)+'</span>':nn(_0x339613))['join'](''),_0x320d7c&&(_0x15d0b2+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x320d7c['value']+'\x22\x20title=\x22'+_0x320d7c['title']+'\x22></span>'),_0x15d0b2;}function nn(_0xc9c0a1){const _0xcfaf00=document['createElement']('span');return _0xcfaf00['innerText']=_0xc9c0a1,_0xcfaf00['innerHTML'];}function Xt(_0x419d51){return _0x419d51['sort']((_0x209ebf,_0x17381d)=>'deletion'==_0x209ebf['type']&&'deletion'!=_0x17381d['type']?-0x1:'deletion'!=_0x209ebf['type']&&'deletion'==_0x17381d['type']?0x1:0x0);}function to(_0xcfb123,_0x5ed869){let _0x4ff3cb,_0xf03cbc=0x0;const _0x231d09=[],_0x1c89d6=_0x5ed869['schema'];for(;_0xf03cbc<_0xcfb123['length'];){const _0x196120=_0xcfb123[_0xf03cbc],_0x35f057=_0xcfb123[_0xf03cbc+0x1];_0x4ff3cb||(_0x4ff3cb=_0x5ed869['createPositionBefore'](_0x196120)),on(_0x5ed869,_0x196120,_0x35f057)||(_0x231d09['push'](_0x5ed869['createRange'](_0x4ff3cb,_0x1c89d6['isObject'](_0x196120)?_0x5ed869['createPositionAfter'](_0x196120):_0x5ed869['createPositionAt'](_0x196120,'end'))),_0x4ff3cb=null),_0xf03cbc++;}return _0x231d09;}function on(_0x192ffc,_0x1aed8d,_0x2e56a8){if(!_0x2e56a8)return!0x1;const _0x5674c0=_0x192ffc['createPositionAfter'](_0x1aed8d),_0x4ae9f9=_0x192ffc['createPositionBefore'](_0x2e56a8);return _0x5674c0['isTouching'](_0x4ae9f9);}function Yt(_0x5adc5c,_0x86d76d,_0x4ff48b){for(;_0x4ff48b['length'];){const _0xfd21c5=_0x4ff48b['splice'](0x0,0x64);_0x5adc5c['change'](()=>{for(const _0x137bba of _0xfd21c5)_0x137bba['isInContent']&&_0x86d76d['execute'](_0x137bba['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x138366,_0x7bd26,_0x342446){super(_0x138366),this['_command']=_0x7bd26,this['_suggestions']=_0x342446,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x46cc62=Array['from'](this['_suggestions']['values']())['some'](_0x362169=>_0x362169['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x46cc62;}['execute'](){const _0x35ac13=Xt(Array['from'](this['_suggestions']['values']()));for(const _0x5323ea of _0x35ac13){const _0x181850=_0x5323ea['getRanges']();if(!this['editor']['model']['canEditAt'](_0x181850))return;}Yt(this['editor']['model'],this['_command'],_0x35ac13);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xce31e3,_0x26aa48,_0x40ad1f){super(_0xce31e3),this['_command']=_0x26aa48,this['_suggestions']=_0x40ad1f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x429de8=this['editor']['model']['document']['selection'],_0x1a1a6b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1aaf6a,_0x313563){const _0x5a18b3=Array['from'](_0x1aaf6a['getRanges']()),_0x35e98c=new Set();for(const _0x425fe9 of _0x313563)if(_0x425fe9['isInContent']){for(const _0xc70c23 of _0x5a18b3)for(const _0x7ae7eb of _0x425fe9['getRanges']())(_0xc70c23['isIntersecting'](_0x7ae7eb)||_0x1aaf6a['isCollapsed']&&!_0x425fe9['isMultiRange']&&_0x425fe9['next']&&_0x7ae7eb['end']['isTouching'](_0xc70c23['start']))&&_0x35e98c['add'](_0x425fe9);}return _0x35e98c;}(_0x429de8,_0x1a1a6b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x6a1c1a=Xt(Array['from'](this['_selectedSuggestions']));for(const _0x50f634 of _0x6a1c1a){const _0x1aa946=_0x50f634['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1aa946))return;}Yt(this['editor']['model'],this['_command'],_0x6a1c1a);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x44e880(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x615a8e,_0xb1a36d){super(),this['id']=_0xb1a36d['id'],this['type']=_0xb1a36d['type'],this['subType']=_0xb1a36d['subType']||null,this['author']=_0xb1a36d['author'],this['creator']=_0xb1a36d['creator']||_0xb1a36d['author'],this['isExternal']=Boolean(_0xb1a36d['attributes']&&_0xb1a36d['attributes']['@external']),this['data']=null,this['_model']=_0x615a8e,this['_onAccept']=_0xb1a36d['onAccept'],this['_onDiscard']=_0xb1a36d['onDiscard'],this['_onAttributesChange']=_0xb1a36d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xb1a36d['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 _0x56df9d=this;for(;_0x56df9d['previous'];)_0x56df9d=_0x56df9d['previous'];return _0x56df9d;}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'](_0x26a686){this['_markerNames']['add'](_0x26a686);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2babbd=>this['_model']['markers']['get'](_0x2babbd))['filter'](_0x52d258=>_0x52d258);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x29ac54=>{for(const _0x217586 of this['getMarkers']())_0x29ac54['removeMarker'](_0x217586);}),this['_markerNames']['clear']();}['removeMarker'](_0x48cdf8){this['_model']['change'](_0x26d06e=>{_0x26d06e['removeMarker'](_0x48cdf8);}),this['_markerNames']['delete'](_0x48cdf8);}['addRange'](_0x3fdc0b){const _0x25f6f8='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x25f6f8),this['_model']['change'](_0xa061dc=>{_0xa061dc['addMarker'](_0x25f6f8,{'range':_0x3fdc0b,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xe88f6f){for(const _0xd4df67 of this['getRanges']())if(_0xd4df67['isIntersecting'](_0xe88f6f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x342314=>_0x342314['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x46261a,_0x29068f)=>[..._0x46261a,..._0x29068f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x13719d=this['getRanges']();if(0x1!=_0x13719d['length'])return null;const _0x41c1ab=_0x13719d[0x0],_0x50f592=_0x41c1ab['start']['nodeAfter'],_0x3b2465=_0x41c1ab['end']['nodeBefore'];return _0x50f592 instanceof _0x2ee9c0?_0x50f592!=_0x3b2465?null:_0x50f592: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 _0x28613c=[];let _0x2e6062=this['head'];for(;_0x2e6062;)_0x28613c['push'](_0x2e6062),_0x2e6062=_0x2e6062['next'];return _0x28613c;}['setAttribute'](_0xf6fdb5,_0x212d80){const _0x3bf6b0=_0x7a7cb2(this['attributes']);_0x5527d(_0x3bf6b0,_0xf6fdb5,_0x212d80),_0x5a7cf5(_0x3bf6b0,this['attributes'])||(this['attributes']=_0x3bf6b0,this['_onAttributesChange'](_0x3bf6b0));}['removeAttribute'](_0x21cc1d){const _0x1b30f9=_0x7a7cb2(this['attributes']);_0x16bf74(_0x1b30f9,_0x21cc1d),_0x5a7cf5(_0x1b30f9,this['attributes'])||(this['attributes']=_0x1b30f9,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 _0x309c8a()['substr'](0x1,0x5);}}function o(_0x39b192,_0x13c471,_0x5cee1b){const _0x2e79e1=_0x39b192['t'],t=_0x39b192['t'];switch(_0x13c471){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',_0x5cee1b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5cee1b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5cee1b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5cee1b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5cee1b);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',_0x5cee1b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5cee1b);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',_0x5cee1b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5cee1b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5cee1b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5cee1b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5cee1b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5cee1b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5cee1b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5cee1b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5cee1b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5cee1b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5cee1b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5cee1b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5cee1b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5cee1b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5cee1b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5cee1b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5cee1b);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'},_0x5cee1b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5cee1b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5cee1b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5cee1b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5cee1b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5cee1b);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'},_0x5cee1b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5cee1b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5cee1b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5cee1b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5cee1b);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'},_0x5cee1b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5cee1b);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'},_0x5cee1b);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'},_0x5cee1b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5cee1b);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'},_0x5cee1b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5cee1b);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'},_0x5cee1b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5cee1b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5cee1b);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'},_0x5cee1b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5cee1b);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 _0x2e79e1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5cee1b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2e79e1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5cee1b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5cee1b);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'},_0x5cee1b);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'},_0x5cee1b);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'},_0x5cee1b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x13c471;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x411d04,_0x506bc1){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x411d04,this['_locale']=_0x506bc1;}['getDescriptions'](_0x8bb661){const _0x58f019=[],_0x4597eb=new Set(),_0x81b03d=new Set();for(let _0x15c366=0x0;_0x15c366<_0x8bb661['length'];_0x15c366++){const _0xee5c8=_0x8bb661[_0x15c366];if(!_0xee5c8['isInContent'])continue;const _0x5a5d6f=this['_handleCustomCallbackDescription'](_0xee5c8);if(_0x5a5d6f){if(null!=_0xee5c8['subType']){if(_0x4597eb['has'](_0xee5c8['subType']))continue;_0x4597eb['add'](_0xee5c8['subType']);}_0x58f019['push'](_0x5a5d6f);}else{if('attribute'!=_0xee5c8['type'])'insertion'!=_0xee5c8['type']&&'deletion'!=_0xee5c8['type']||this['_handleInsertRemoveSuggestionDescription'](_0x58f019,_0xee5c8,_0x8bb661[_0x15c366+0x1]);else{const _0xe5f5b9=_0xee5c8['data']['key'];if(_0x81b03d['has'](_0xe5f5b9))continue;_0x81b03d['add'](_0xee5c8['data']['key']),_0xe5f5b9==m?this['_handleRenameSuggestionDescription'](_0x58f019,_0xee5c8):this['_handleAttributeSuggestionDescription'](_0x58f019,_0xee5c8);}}}return this['_resolveDescriptionItems'](_0x58f019);}['registerDescriptionCallback'](_0x4a51dd){this['_customCallbacks']['push'](_0x4a51dd);}['registerElementLabel'](_0x428c5c,_0x1ef60b,_0x37640c=_0x574764['normal']){'function'==typeof _0x428c5c?_0x264422(this['_itemLabelsCallbacks'],{'matchingCallback':_0x428c5c,'label':_0x1ef60b,'priority':_0x37640c}):this['_itemLabels']['set'](_0x428c5c,_0x1ef60b);}['registerAttributeLabel'](_0x44b430,_0x1090b8){this['_attributeLabels']['set'](_0x44b430,_0x1090b8);}['getItemLabel'](_0x5901f8,_0x13bbec=0x1){let _0x6676b2;for(const _0x4f5356 of this['_itemLabelsCallbacks'])if(_0x4f5356['matchingCallback'](_0x5901f8)){_0x6676b2=_0x4f5356['label'];break;}return _0x6676b2||(_0x6676b2=this['_itemLabels']['get'](_0x5901f8['name'])),_0x6676b2?_0x6676b2(_0x13bbec):0x1!==_0x13bbec?_0x13bbec+'\x20'+_0x5901f8['name']+'s':''+_0x5901f8['name'];}['_addDescriptionItems'](_0xddccd2,_0x1c0a13){const _0x5cdf27=_0x1c0a13['getFirstRange']()['getWalker'](),_0xfe6db1='insertion'==_0x1c0a13['type']?'add':'remove';for(const _0xd8d953 of _0x5cdf27){const _0x38de7f=_0xd8d953['item'],_0x338c7c=_0xddccd2[_0xddccd2['length']-0x1];if(_0x38de7f['is']('$textProxy'))_0x338c7c&&_0x338c7c['type']['indexOf']('Container')>-0x1&&_0xddccd2['pop'](),_0x338c7c&&'text'==_0x338c7c['type']?_0x338c7c[_0xfe6db1]+=_0x38de7f['data']:_0xddccd2['push']({'type':'text','add':'add'==_0xfe6db1?_0x38de7f['data']:'','remove':'remove'==_0xfe6db1?_0x38de7f['data']:''});else{if(this['_schema']['isObject'](_0x38de7f)){const _0x17b3df=_0x38de7f;if(_0x338c7c&&_0x338c7c['type']['indexOf']('Container')>-0x1&&_0xddccd2['pop'](),'elementEnd'==_0xd8d953['type'])continue;_0x338c7c&&_0x338c7c['type']==_0xfe6db1+'Object'&&_0x338c7c['element']['name']==_0x17b3df['name']?_0x338c7c['quantity']++:_0xddccd2['push']({'type':_0xfe6db1+'Object','element':_0x17b3df,'quantity':0x1}),_0x5cdf27['skip'](_0x4665d3=>!('elementEnd'==_0x4665d3['type']&&_0x4665d3['item']==_0x38de7f));}else{if(this['_schema']['checkChild'](_0x38de7f,'$text')||_0x38de7f['is']('element','softBreak')){const _0x4a27d3=_0x38de7f;if('add'==_0xfe6db1&&'elementStart'==_0xd8d953['type']||'remove'==_0xfe6db1&&'elementEnd'==_0xd8d953['type'])continue;if(_0x338c7c&&-0x1==_0x338c7c['type']['indexOf']('Container')){'text'==_0x338c7c['type']&&(_0x338c7c[_0xfe6db1]+='\x0a');continue;}let _0x3c445b;if(_0x3c445b='add'==_0xfe6db1?_0x4a27d3['nextSibling']&&!this['_schema']['isObject'](_0x4a27d3['nextSibling'])?_0x4a27d3['nextSibling']:null:_0x4a27d3['previousSibling']&&!this['_schema']['isObject'](_0x4a27d3['previousSibling'])?_0x4a27d3['previousSibling']:null,_0x4a27d3['isEmpty']||_0x3c445b&&_0x3c445b['isEmpty']){const _0x55f7e7=_0x3c445b&&_0x3c445b['isEmpty']?_0x3c445b:_0x4a27d3;_0x338c7c&&_0x338c7c['type']==_0xfe6db1+'EmptyContainer'&&_0x338c7c['element']['name']==_0x55f7e7['name']?_0x338c7c['quantity']++:_0xddccd2['push']({'type':_0xfe6db1+'EmptyContainer','element':_0x55f7e7,'quantity':0x1});}else _0xddccd2['push']({'type':_0xfe6db1+'Container','element':_0x4a27d3});}}}}}['_resolveDescriptionItems'](_0x24a035){const _0x1f5d99=this['_locale'],_0x15f2f7=[],_0x31606a=[],_0x3e5349=[];for(const _0x1b324d of _0x24a035)switch(_0x1b324d['type']){case'text':if(_0x1b324d['add']=_0x1b324d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1b324d['remove']=_0x1b324d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1b324d['add']&&''!=_0x1b324d['remove']){_0x15f2f7['push']({'type':'replace','content':o(_0x1f5d99,'REPLACE_TEXT',['\x22'+_0x1b324d['remove']+'\x22','\x22'+_0x1b324d['add']+'\x22'])});continue;}if(null!=_0x1b324d['add']['match'](/^ +$/)){_0x15f2f7['push']({'type':'insertion','content':o(_0x1f5d99,'*Insert:*\x20%0',o(_0x1f5d99,'ELEMENT_SPACE',_0x1b324d['add']['length']))});continue;}if(null!=_0x1b324d['remove']['match'](/^ +$/)){_0x15f2f7['push']({'type':'deletion','content':o(_0x1f5d99,'*Remove:*\x20%0',o(_0x1f5d99,'ELEMENT_SPACE',_0x1b324d['remove']['length']))});continue;}if(''!=_0x1b324d['add']){_0x15f2f7['push']({'type':'insertion','content':o(_0x1f5d99,'*Insert:*\x20%0','\x22'+_0x1b324d['add']+'\x22')});continue;}_0x15f2f7['push']({'type':'deletion','content':o(_0x1f5d99,'*Remove:*\x20%0','\x22'+_0x1b324d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x15f2f7['push']({'type':'insertion','content':o(_0x1f5d99,'*Insert:*\x20%0',this['getItemLabel'](_0x1b324d['element'],_0x1b324d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x15f2f7['push']({'type':'deletion','content':o(_0x1f5d99,'*Remove:*\x20%0',this['getItemLabel'](_0x1b324d['element'],_0x1b324d['quantity']))});continue;case'addContainer':_0x15f2f7['push']({'type':'insertion','content':o(_0x1f5d99,'*Split:*\x20%0',this['getItemLabel'](_0x1b324d['element'],_0x1b324d['quantity']))});continue;case'removeContainer':_0x15f2f7['push']({'type':'deletion','content':o(_0x1f5d99,'*Merge:*\x20%0',this['getItemLabel'](_0x1b324d['element'],_0x1b324d['quantity']))});continue;case'addFormat':_0x31606a['push'](_0x1b324d['key']);continue;case'removeFormat':_0x3e5349['push'](_0x1b324d['key']);continue;default:_0x15f2f7['push'](_0x1b324d);}if(_0x31606a['length']){const _0x5e4deb=_0x31606a['map'](_0x399516=>this['_attributeLabels']['has'](_0x399516)?this['_attributeLabels']['get'](_0x399516):_0x399516)['join'](',\x20');_0x15f2f7['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5e4deb)});}if(_0x3e5349['length']){const _0x4c0a48=_0x3e5349['map'](_0x47f1d1=>this['_attributeLabels']['has'](_0x47f1d1)?this['_attributeLabels']['get'](_0x47f1d1):_0x47f1d1)['join'](',\x20');_0x15f2f7['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4c0a48)});}return _0x15f2f7;}['_handleCustomCallbackDescription'](_0xe0ffc5){for(const _0x1e50ba of this['_customCallbacks']){const _0x3819a9=_0x1e50ba(_0xe0ffc5);if(_0x3819a9&&'type'in _0x3819a9)return _0x3819a9;}}['_handleAttributeSuggestionDescription'](_0x51e4e7,_0x1ffa63){const _0x2a31bd=_0x1ffa63['data'],_0x37c6bf=void 0x0===_0x2a31bd['newValue']?'removeFormat':'addFormat';_0x51e4e7['push']({'type':_0x37c6bf,'key':_0x2a31bd['key']});}['_handleRenameSuggestionDescription'](_0x2bde52,_0xed98c2){_0x2bde52['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xed98c2['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1717a2,_0x5f23a4,_0x3f06f6){if(this['_addDescriptionItems'](_0x1717a2,_0x5f23a4),_0x3f06f6&&_0x3f06f6['getFirstRange']()&&!_0x5f23a4['getFirstRange']()['end']['isEqual'](_0x3f06f6['getFirstRange']()['start'])){const _0x49879a=_0x1717a2[_0x1717a2['length']-0x1],_0x1f95c8='insertion'==_0x5f23a4['type']?'add':'remove';_0x49879a&&'text'==_0x49879a['type']&&(_0x49879a[_0x1f95c8]+='\x0a');}}}class U extends _0x2bd390{['afterInit'](){const _0x7a4ead=this['editor'],_0x19434b=_0x7a4ead['plugins']['get']('TrackChangesEditing');_0x7a4ead['commands']['get']('showAIAssistant')&&_0x19434b['enableCommand']('showAIAssistant');}}class V extends _0x2bd390{['afterInit'](){const _0x300438=this['editor'],_0x1fbe55=_0x300438['locale'];if(!_0x300438['plugins']['has']('AlignmentEditing'))return;const _0x3f23f5=_0x300438['plugins']['get']('TrackChangesEditing');_0x3f23f5['enableDefaultAttributesIntegration']('alignment'),_0x3f23f5['registerBlockAttribute']('alignment'),_0x3f23f5['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1fbe55,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32f4dc=this['editor'],_0xea28a9=_0x32f4dc['locale'];_0x32f4dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x565e23=>{if('formatBlock'!=_0x565e23['type'])return;const {data:_0x177706}=_0x565e23;if(_0x177706&&'alignment'==_0x177706['commandName']){const _0x390908=_0x177706['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xea28a9,'*Format:*\x20%0',function(_0x1b3375){switch(_0x1b3375){case'left':return o(_0xea28a9,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xea28a9,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xea28a9,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xea28a9,'FORMAT_JUSTIFY_TEXT');}}(_0x390908))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x2bd390{['afterInit'](){const _0x347cd8=this['editor'],_0x5d9586=_0x347cd8['plugins']['get']('TrackChangesEditing'),_0x22c73b=_0x347cd8['locale'];for(const _0x5c164b of ti){if(!_0x347cd8['plugins']['has'](_0x5c164b))continue;const _0x31f768=_0x5c164b['slice'](0x0,-0x7)['toLowerCase'](),_0x24ed3f='FORMAT_'+_0x31f768['toUpperCase']();_0x5d9586['enableDefaultAttributesIntegration'](_0x31f768),_0x5d9586['registerInlineAttribute'](_0x31f768),_0x5d9586['descriptionFactory']['registerAttributeLabel'](_0x31f768,o(_0x22c73b,_0x24ed3f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fda9e=this['editor'],_0x4dfacb=_0x2fda9e['locale'],_0x123475=_0x2fda9e['plugins']['get']('TrackChangesEditing');function _0x12b4e2(_0x2d37a0,_0x52b101){_0x123475['descriptionFactory']['registerDescriptionCallback'](_0x4871dc=>{if('formatInline'!=_0x4871dc['type'])return;const {data:_0x1933a1}=_0x4871dc;return _0x1933a1&&_0x1933a1['commandName']===_0x2d37a0?_0x1933a1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4dfacb,'*Format:*\x20%0',_0x52b101)}:{'type':'format','content':o(_0x4dfacb,'*Remove\x20format:*\x20%0',_0x52b101)}:void 0x0;});}_0x12b4e2('bold',o(_0x4dfacb,'FORMAT_BOLD')),_0x12b4e2('italic',o(_0x4dfacb,'FORMAT_ITALIC')),_0x12b4e2('underline',o(_0x4dfacb,'FORMAT_UNDERLINE')),_0x12b4e2('code',o(_0x4dfacb,'FORMAT_CODE')),_0x12b4e2('strikethrough',o(_0x4dfacb,'FORMAT_STRIKETHROUGH')),_0x12b4e2('subscript',o(_0x4dfacb,'FORMAT_SUBSCRIPT')),_0x12b4e2('superscript',o(_0x4dfacb,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2bd390{['afterInit'](){const _0x39a256=this['editor'],_0x538d0a=_0x39a256['locale'];if(!_0x39a256['plugins']['has']('BlockQuoteEditing'))return;const _0x251b39=_0x39a256['plugins']['get']('TrackChangesEditing'),_0x550e2b=this['editor']['commands']['get']('blockQuote');_0x251b39['enableCommand']('blockQuote',(_0x2f543f,_0x47e2fb={})=>{const _0x2b26fa=this['editor']['model']['document']['selection'],_0x2a392a=_0x47e2fb&&void 0x0!==_0x47e2fb['forceValue']?_0x47e2fb['forceValue']:!_0x550e2b['value'];let _0x5152e0=[];if(_0x2a392a){const _0x1d7913=Array['from'](_0x2b26fa['getSelectedBlocks']())['filter'](_0x3a8435=>oo(_0x3a8435)||function(_0x464ea9,_0x4bd3d1){const _0x5c1bcf=_0x4bd3d1['checkChild'](_0x464ea9['parent'],'blockQuote'),_0x3c4a83=_0x4bd3d1['checkChild'](['$root','blockQuote'],_0x464ea9);return _0x5c1bcf&&_0x3c4a83;}(_0x3a8435,this['editor']['model']['schema']));_0x5152e0=to(_0x1d7913,_0x39a256['model']);}else{const _0x3bc741=Array['from'](_0x2b26fa['getSelectedBlocks']())['filter'](_0x349b6c=>oo(_0x349b6c));_0x5152e0=to(_0x3bc741,_0x39a256['model']);}_0x39a256['model']['change'](()=>{for(const _0x5126b4 of _0x5152e0)_0x251b39['markBlockFormat'](_0x5126b4,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2a392a}]});});}),_0x251b39['descriptionFactory']['registerDescriptionCallback'](_0x4141ce=>{const {data:_0x1f98a3}=_0x4141ce;if(_0x1f98a3&&'blockQuote'==_0x1f98a3['commandName']){const _0x4741e2=o(_0x538d0a,'ELEMENT_BLOCK_QUOTE');return _0x1f98a3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x538d0a,'*Set\x20format:*\x20%0',_0x4741e2)}:{'type':'format','content':o(_0x538d0a,'*Remove\x20format:*\x20%0',_0x4741e2)};}});}}function oo(_0x8a753a){return'blockQuote'==_0x8a753a['parent']['name'];}class L extends _0x2bd390{['afterInit'](){const _0x8b8bfe=this['editor'],_0xd6351e=_0x8b8bfe['locale'],_0x426551=_0x8b8bfe['plugins']['get']('TrackChangesEditing');_0x8b8bfe['plugins']['has']('BookmarkEditing')&&(_0x426551['enableCommand']('insertBookmark'),_0x426551['enableDefaultAttributesIntegration']('updateBookmark'),_0x426551['registerBlockAttribute']('bookmarkId'),_0x426551['descriptionFactory']['registerDescriptionCallback'](_0x1c7f4b=>{if('insertion'!=_0x1c7f4b['type']&&'deletion'!=_0x1c7f4b['type']&&'attribute'!=_0x1c7f4b['type'])return;const _0x4e1fbc=_0x1c7f4b['getContainedElement']();if(null==_0x4e1fbc)return;if(!_0x4e1fbc['is']('element','bookmark'))return;const _0x1d45af=_0x4e1fbc['getAttribute']('bookmarkId');if('insertion'==_0x1c7f4b['type'])return{'type':'insertion','content':o(_0xd6351e,'*Insert:*\x20%0','\x22'+_0x1d45af+'\x22\x20'+o(_0xd6351e,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1c7f4b['type'])return{'type':'deletion','content':o(_0xd6351e,'*Remove:*\x20%0','\x22'+_0x1d45af+'\x22\x20'+o(_0xd6351e,'ELEMENT_BOOKMARK'))};const {data:_0x21cdea}=_0x1c7f4b;if(!_0x21cdea||'bookmarkId'!=_0x21cdea['key'])return;return{'type':'format','content':o(_0xd6351e,'*Set\x20bookmark:*\x20%0','\x22'+_0x21cdea['newValue']+'\x22')};}));}}class J extends _0x2bd390{['afterInit'](){const _0x5255c0=this['editor'];_0x5255c0['plugins']['has']('CaseChange')&&(_0x5255c0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5255c0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5255c0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x2bd390{['afterInit'](){const _0x2d2b5a=this['editor'];_0x2d2b5a['commands']['get']('ckbox')&&_0x2d2b5a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x2bd390{['afterInit'](){const _0x279224=this['editor'];if(!_0x279224['plugins']['has']('CodeBlock'))return;const _0x49f00b=_0x279224['plugins']['get']('TrackChangesEditing'),_0x2e36bc=_0x279224['locale'],_0x1ec889=_0x279224['config']['get']('codeBlock')['languages'],_0x4dc9db=_0x279224['commands']['get']('codeBlock');_0x49f00b['enableCommand']('indentCodeBlock'),_0x49f00b['enableCommand']('outdentCodeBlock'),_0x49f00b['enableCommand']('codeBlock',(_0x5246d4,_0x497bcb={})=>{const _0x20d25d=_0x279224['model'],_0x4dd2d5=_0x279224['model']['document']['selection'],_0x13c14e=_0x497bcb&&void 0x0!==_0x497bcb['forceValue']?_0x497bcb['forceValue']:!_0x4dc9db['value'];let _0x545bae;_0x497bcb['language']||(_0x497bcb['language']=_0x1ec889[0x0]['language']),_0x545bae=_0x13c14e?Array['from'](_0x4dd2d5['getSelectedBlocks']())['filter'](_0x50b509=>eo(_0x50b509)||function(_0x2fc17c,_0x2e8807){if(_0x2fc17c['is']('rootElement')||_0x2e8807['isLimit'](_0x2fc17c))return!0x1;return _0x2e8807['checkChild'](_0x2fc17c['parent'],'codeBlock');}(_0x50b509,_0x20d25d['schema'])):Array['from'](_0x4dd2d5['getSelectedBlocks']())['filter'](_0x2a0c33=>eo(_0x2a0c33));const _0x207a02=to(_0x545bae,_0x20d25d);_0x20d25d['change'](()=>{for(const _0x1b69b1 of _0x207a02)_0x49f00b['markBlockFormat'](_0x1b69b1,{'commandName':'codeBlock','commandParams':[{..._0x497bcb,'forceValue':_0x13c14e}],'formatGroupId':'blockName'});});}),(_0x49f00b['descriptionFactory']['registerElementLabel']('codeBlock',_0x6529ca=>o(_0x2e36bc,'ELEMENT_CODE_BLOCK',_0x6529ca)),_0x49f00b['descriptionFactory']['registerDescriptionCallback'](_0x4834e5=>{if('formatBlock'!=_0x4834e5['type'])return;const _0xc69cfa=_0x2e36bc['t'],{data:_0x16ebe4}=_0x4834e5;if(!_0x16ebe4||'codeBlock'!=_0x16ebe4['commandName'])return;const _0x5b225e=_0x16ebe4['commandParams'][0x0]['language'],_0x40c520=_0xc69cfa(_0x1ec889['find'](_0xe7b53d=>_0xe7b53d['language']===_0x5b225e)['label'])['toLowerCase']();return _0x16ebe4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2e36bc,'*Set\x20format:*\x20%0',o(_0x2e36bc,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x40c520+')')}:{'type':'format','content':o(_0x2e36bc,'*Remove\x20format:*\x20%0',o(_0x2e36bc,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x25569b){return'codeBlock'==_0x25569b['name'];}class z extends _0x2bd390{['afterInit'](){const _0x4a789c=this['editor'];if(!_0x4a789c['plugins']['has']('CommentsEditing'))return;_0x4a789c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x23e815,_0xef1a7f,_0x17686f){const _0x33a1d1=[];for(const _0x234d4b of _0xef1a7f['getItems']())_0x234d4b['hasAttribute'](_0x23e815)&&_0x33a1d1['push'](_0x17686f['createRangeOn'](_0x234d4b));return _0x33a1d1;}function De(_0x29615c,_0x2228a8,{showActiveMarker:_0x6ba690=!0x0}={}){const _0x508c99=_0x29615c['plugins']['get']('TrackChangesEditing');return(_0x44e4ab,_0x125ccc,_0x2a9c84)=>{if(!_0x2a9c84['consumable']['test'](_0x125ccc['markerRange'],_0x44e4ab['name']))return;const _0x3cbfc2=_0x125ccc['markerRange']['getWalker'](),_0x2fab07=_0x125ccc['markerRange']['start'],_0x10f2a5=_0x29615c['model']['schema'];let _0x10c5b0=null,_0x4f9c2a=null,_0x121bd6=!0x1,_0x468193=!0x1;for(const _0xcc6698 of _0x3cbfc2){const _0x1ba6d9=_0xcc6698['item'];_0x121bd6=_0x121bd6||_0x10f2a5['isContent'](_0x1ba6d9);const _0x5a438d=_0x2a9c84['mapper']['toViewElement'](_0x1ba6d9);if(_0x5a438d&&_0x5a438d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xcc6698['type']&&(_0x10f2a5['isBlock'](_0x1ba6d9)&&!_0x10f2a5['isLimit'](_0x1ba6d9)&&(_0x1ba6d9['nextSibling']||_0x2fab07['isAtEnd']?_0x10c5b0&&_0x10c5b0['parent']==_0x1ba6d9||(_0x10c5b0=_0x1ba6d9,_0xb9735d(_0xcc6698['previousPosition']),_0x468193=!0x0):_0x4f9c2a=_0x4f9c2a||_0xcc6698['previousPosition']));}function _0xb9735d(_0x5e8d4b){const {authorId:_0x291068}=_0x508c99['_splitMarkerName'](_0x125ccc['markerName']),_0x36b47e=_0x2a9c84['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2228a8,'data-author-id':_0x291068}),_0x3e19e6=_0x2a9c84['mapper']['toViewPosition'](_0x5e8d4b);_0x6ba690&&_0x508c99['activeMarkers']['includes'](_0x125ccc['markerName'])&&_0x2a9c84['writer']['addClass']('ck-suggestion-marker--active',_0x36b47e),_0x2a9c84['writer']['insert'](_0x3e19e6,_0x36b47e),_0x2a9c84['mapper']['bindElementToMarker'](_0x36b47e,_0x125ccc['markerName']);}_0x121bd6||_0x468193||!_0x4f9c2a||_0xb9735d(_0x4f9c2a);};}class K extends _0x2bd390{static get['requires'](){return[_0x562238];}['init'](){const _0x374dcd=this['editor'],_0x5aee68=_0x374dcd['plugins']['get']('TrackChangesEditing');_0x5aee68['enableCommand']('delete');const _0x2d830b=_0x374dcd['commands']['get']('deleteForward');_0x5aee68['enableCommand']('deleteForward',(_0x4714c4,_0x224e3c={})=>{const _0x2f4b78=_0x374dcd['model']['createSelection'](_0x374dcd['model']['document']['selection']);_0x2f4b78['isCollapsed']&&_0x374dcd['model']['modifySelection'](_0x2f4b78,{'direction':'forward','unit':_0x224e3c['unit']});const _0x333dd2=_0x2f4b78['getFirstRange'](),_0x2d7140=_0xfaa3eb['fromRange'](_0x333dd2);let _0x5a4b78;_0x4714c4(_0x224e3c),_0x5a4b78='$graveyard'==_0x2d7140['root']['rootName']?_0x374dcd['model']['createRange'](_0x333dd2['start']):_0x374dcd['model']['createRange'](_0x2d7140['start'],_0x2d7140['end']),_0x2d7140['detach'](),_0x374dcd['model']['enqueueChange'](_0x2d830b['buffer']['batch'],_0x4a7c7e=>{_0x2d830b['buffer']['lock'](),_0x4a7c7e['setSelection'](_0x4a7c7e['createRange'](_0x5a4b78['end'])),_0x2d830b['buffer']['unlock']();});}),_0x374dcd['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x374dcd,'merge'),{'priority':'high'}),_0x374dcd['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x6886dd,_0x93810f,_0x534c1d)=>{_0x534c1d['options']['showSuggestionHighlights']&&De(_0x374dcd,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x6886dd,_0x93810f,_0x534c1d);},{'priority':'high'}),_0x374dcd['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5ee0e5,_0xaeae03,_0x2441bc)=>{const _0x11be15=_0x2441bc['mapper']['markerNameToElements'](_0xaeae03['markerName']);if(_0x11be15){for(const _0x3f5c7c of _0x11be15)_0x3f5c7c['is']('uiElement')&&(_0x2441bc['mapper']['unbindElementFromMarkerName'](_0x3f5c7c,_0xaeae03['markerName']),_0x2441bc['writer']['remove'](_0x3f5c7c));}},{'priority':'high'});}}class W extends _0x2bd390{['afterInit'](){const _0x30ae1c=this['editor'];if(!_0x30ae1c['plugins']['has']('ListEditing'))return;const _0xa0889a=_0x30ae1c['locale'],_0x3f81a5=_0x30ae1c['plugins']['get']('TrackChangesEditing'),_0x470df8=_0x30ae1c['plugins']['has']('TodoListEditing'),_0x6c2d4b=!!_0x30ae1c['config']['get']('list.multiBlock');function _0x498986(_0x165b7d){return{'type':'format','content':''+o(_0xa0889a,'*Set\x20format:*\x20%0',_0x165b7d)};}function _0x76c614(_0x3b9350){return{'type':'format','content':''+o(_0xa0889a,'*Remove\x20format:*\x20%0',_0x3b9350)};}_0x3f81a5['enableDefaultAttributesIntegration']('numberedList'),_0x3f81a5['enableDefaultAttributesIntegration']('bulletedList'),_0x3f81a5['enableDefaultAttributesIntegration']('customNumberedList'),_0x3f81a5['enableDefaultAttributesIntegration']('customBulletedList'),_0x3f81a5['enableDefaultAttributesIntegration']('indentList'),_0x3f81a5['enableDefaultAttributesIntegration']('outdentList'),_0x3f81a5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3f81a5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3f81a5['registerBlockAttribute']('listItemId'),_0x3f81a5['registerBlockAttribute']('listType'),_0x3f81a5['registerBlockAttribute']('listIndent'),_0x6c2d4b&&(_0x3f81a5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3f81a5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x470df8&&(_0x3f81a5['enableDefaultAttributesIntegration']('todoList'),_0x3f81a5['enableDefaultAttributesIntegration']('checkTodoList'),_0x3f81a5['registerBlockAttribute']('todoListChecked'),_0x3f81a5['descriptionFactory']['registerDescriptionCallback'](_0x3b8d68=>{const {data:_0x38fa24}=_0x3b8d68;if(_0x38fa24&&'todoListChecked'==_0x38fa24['key'])return{'type':'format','content':_0x38fa24['newValue']?o(_0xa0889a,'*Check\x20item*'):o(_0xa0889a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x36a928=>{if(_0x36a928['batch']['isUndo'])return!0x1;let _0x5dfd1e=!0x1;const _0x1fcfd4=_0x3f81a5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x187ad0=>'todoListChecked'===_0x3f81a5['_getAttributeKey'](_0x187ad0));for(const _0x47ab0e of _0x1fcfd4){'todo'!=_0x47ab0e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3f81a5['_findSuggestions'](_0x47ab0e['getFirstRange'](),'attribute')['find'](_0x44d986=>'listType'===_0x3f81a5['_getAttributeKey'](_0x44d986['suggestion']))||(_0x36a928['removeMarker'](_0x47ab0e['getFirstMarker']()),_0x5dfd1e=!0x0));}return _0x5dfd1e;})),_0x3f81a5['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xa0889a,'FORMAT_INDENT'));const _0x2d51d0={'type':'format','content':''};_0x3f81a5['descriptionFactory']['registerDescriptionCallback'](_0x4c0be3=>{const {data:_0x4fbbf1}=_0x4c0be3;if(!_0x4fbbf1||'listType'!=_0x4fbbf1['key'])return;let _0x2d321e=_0x4c0be3['head'];for(;_0x2d321e;){if(_0x2d321e['data']&&(('listStyle'==_0x2d321e['data']['key']||'listMarkerStyle'==_0x2d321e['data']['key'])&&(_0x2d321e['data']['newValue']&&'default'!=_0x2d321e['data']['newValue']||'default'!=_0x2d321e['data']['oldValue']&&!_0x4fbbf1['newValue'])||!_0x6c2d4b&&_0x2d321e['data']['key']==m))return _0x2d51d0;_0x2d321e=_0x2d321e['next'];}if(null==_0x4fbbf1['newValue'])switch(_0x4fbbf1['oldValue']){case'bulleted':return _0x76c614(o(_0xa0889a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x76c614(o(_0xa0889a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x76c614(o(_0xa0889a,'ELEMENT_TODO_LIST'));}switch(_0x4fbbf1['newValue']){case'bulleted':return _0x498986(o(_0xa0889a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x498986(o(_0xa0889a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x498986(o(_0xa0889a,'ELEMENT_TODO_LIST'));}}),_0x3f81a5['descriptionFactory']['registerDescriptionCallback'](_0x342196=>{const {data:_0xa77696}=_0x342196;if(_0xa77696&&'listIndent'==_0xa77696['key'])return null==_0xa77696['newValue']||null==_0xa77696['oldValue']&&0x0==_0xa77696['newValue']?_0x2d51d0:void 0x0;}),_0x3f81a5['descriptionFactory']['registerDescriptionCallback'](_0x7f70c3=>{if('attribute'!=_0x7f70c3['type'])return;const {data:_0xcaa65f}=_0x7f70c3;if(!_0xcaa65f||'listItemId'!=_0xcaa65f['key'])return;const _0xbdb6b2=Te(_0x7f70c3);return'newValue'==_0xbdb6b2?{'type':'format','content':o(_0xa0889a,'*Merge:*\x20list\x20item')}:'oldValue'==_0xbdb6b2?{'type':'format','content':o(_0xa0889a,'*Split:*\x20list\x20item')}:_0x2d51d0;}),_0x30ae1c['model']['document']['registerPostFixer'](_0x4b279e=>this['listItemIdFixer'](_0x4b279e)),_0x30ae1c['model']['document']['registerPostFixer'](_0x17ea27=>this['noTrackChangesFixer'](_0x17ea27)),_0x30ae1c['model']['document']['on']('change:data',(_0x57be43,_0x5c35e9)=>{if(_0x5c35e9['isUndo']||!_0x5c35e9['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x570bbc){if(_0x570bbc['batch']['isUndo']||!_0x570bbc['batch']['isLocal'])return!0x1;let _0x1b1e2b=!0x1;const _0x2a1ceb=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3635aa=>_0x3635aa['data']&&'listItemId'==_0x3635aa['data']['key'])['filter'](_0x26060d=>_0x26060d['data']['newValue']&&_0x26060d['data']['oldValue']);for(const _0xf62136 of _0x2a1ceb)Te(_0xf62136)||(_0x570bbc['removeMarker'](_0xf62136['getFirstMarker']()),_0x1b1e2b=!0x0);return _0x1b1e2b;}['noTrackChangesFixer'](_0x2bcb49){if(_0x2bcb49['batch']['isUndo']||!_0x2bcb49['batch']['isLocal'])return!0x1;const _0x447163=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x447163['trackChangesCommand']['value'])return!0x1;let _0x5c9a95=!0x1;const _0x52bb38=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x478019=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3dbbd3=>'attribute'==_0x3dbbd3['type'])['filter'](_0x55046f=>_0x52bb38['includes'](_0x55046f['attributeKey']));if(0x0==_0x478019['length'])return _0x5c9a95;for(const _0x1b63dc of _0x478019){const _0x3fb001=_0x447163['_findSuggestions'](_0x1b63dc['range'],'attribute')['filter'](_0x13e621=>!_0x13e621['meta']['isNextTo'])['map'](_0x6f91e9=>_0x6f91e9['suggestion'])['filter'](_0x3f6bb7=>{const _0x2c5e67=_0x447163['_getAttributeKey'](_0x3f6bb7);return _0x52bb38['includes'](_0x2c5e67);});if(_0x3fb001['length']){for(const _0x175d3c of _0x3fb001)_0x2bcb49['removeMarker'](_0x175d3c['getFirstMarker']());_0x5c9a95=!0x0;}}return _0x5c9a95;}['assureChains'](){const _0x3d27b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ca702=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4e9657;const _0x4199c6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x13c657=>{if(_0x13c657['data']['oldRange']||!_0x13c657['data']['newRange'])return null;if(!_0x13c657['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x36702e}=_0x3d27b0['_splitMarkerName'](_0x13c657['name']);if(!_0x3d27b0['hasSuggestion'](_0x36702e))return null;const _0x522a47=_0x3d27b0['getSuggestion'](_0x36702e);return _0x2ca702['includes'](_0x522a47['data']['key']);})['map'](_0x3d135a=>{const {id:_0x3ba2e7}=_0x3d27b0['_splitMarkerName'](_0x3d135a['name']),_0x2634cc=_0x3d27b0['getSuggestion'](_0x3ba2e7);return _0x4e9657=_0x2634cc['attributes']['groupId'],_0x2634cc['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4199c6['size'])return;const _0x52979a=_0x3d27b0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xba6eba=>'attribute'==_0xba6eba['type']&&_0xba6eba['data']&&_0x2ca702['includes'](_0xba6eba['data']['key'])&&_0xba6eba['attributes']['groupId']!=_0x4e9657)['map'](_0x23c80d=>({'listItem':_0x23c80d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x23c80d['attributes']['groupId']})),_0x38facc=new Set();for(const {groupId:_0x379d48,listItem:_0x20186a}of _0x52979a)_0x4199c6['has'](_0x20186a)&&_0x38facc['add'](_0x379d48);for(const _0x45aac6 of _0x3d27b0['getSuggestions']())_0x38facc['has'](_0x45aac6['attributes']['groupId'])&&_0x45aac6['setAttribute']('groupId',_0x4e9657);}['_supportLegacySuggestions'](){const _0x204bef=this['editor'],_0x3e3366=_0x204bef['locale'],_0x1a0ea0=_0x204bef['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1a0ea0['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x23fa8f,_0x5cae92){const _0x463642=[];for(let _0x4e776b of _0x23fa8f)_0x4e776b['start']['nodeAfter']===_0x4e776b['end']['parent']&&(_0x4e776b=_0x204bef['model']['createRange'](_0x204bef['model']['createPositionAt'](_0x4e776b['start']['nodeAfter'],0x0))),_0x463642['push'](_0x4e776b);_0x204bef['model']['change'](_0x542a1a=>{const _0x1354ea=_0x204bef['model']['document']['selection'],_0xcb17c3=Array['from'](_0x1354ea['getRanges']())['map'](_0x2ec80a=>_0xfaa3eb['fromRange'](_0x2ec80a));_0x542a1a['setSelection'](_0x463642),_0x204bef['commands']['get'](_0x5cae92['commandName'])['refresh'](),_0x5cae92['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x204bef['execute'](_0x5cae92['commandName'],..._0x5cae92['commandParams']),_0x542a1a['setSelection'](_0xcb17c3);for(const _0x430ba5 of _0xcb17c3)_0x430ba5['detach']();});}),_0x1a0ea0['descriptionFactory']['registerElementLabel'](function(_0x3bf23f){const _0x53358e=!_0x204bef['model']['schema']['isObject'](_0x3bf23f),_0x1b7145=_0x3bf23f['previousSibling'],_0x4e357e=_0x3bf23f['nextSibling'],_0x44d1f8=_0x3bf23f['getAttribute']('listItemId'),_0x138401=!_0x1b7145||_0x1b7145['getAttribute']('listItemId')!==_0x44d1f8,_0x281239=!_0x4e357e||_0x4e357e['getAttribute']('listItemId')!==_0x44d1f8;return _0x53358e&&Boolean(_0x44d1f8)&&_0x138401&&_0x281239;},_0x5b1d75=>o(_0x3e3366,'ELEMENT_LIST_ITEM',_0x5b1d75));}['_registerLegacyDescription'](){const _0x458598=this['editor'],_0xec26e1=_0x458598['locale'];function _0x139bcb(_0x1671d1){const _0x5d9d24=_0x458598['commands']['get']('bulletedList')['value'],_0x23444e=_0x458598['commands']['get']('numberedList')['value'];return'numberedList'===_0x1671d1?_0x5d9d24:_0x23444e;}_0x458598['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1daae6){if('formatBlock'!=_0x1daae6['type'])return;const {data:_0x229218}=_0x1daae6;if(!_0x229218)return;let _0x5d8ced,_0x2cfd22,_0x41ed7b,_0x2dd539;switch(_0x229218['commandName']){case'bulletedList':_0x41ed7b=_0x229218['commandParams'][0x0]['forceValue'],_0x2dd539=_0x139bcb(_0x229218['commandName']),_0x5d8ced=_0x41ed7b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2dd539&&_0x458598['config']['get']('list.multiBlock')||(_0x5d8ced='*Change\x20to:*\x20%0'),_0x2cfd22={'type':'format','content':o(_0xec26e1,_0x5d8ced,o(_0xec26e1,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x41ed7b=_0x229218['commandParams'][0x0]['forceValue'],_0x2dd539=_0x139bcb(_0x229218['commandName']),_0x5d8ced=_0x41ed7b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2dd539&&_0x458598['config']['get']('list.multiBlock')||(_0x5d8ced='*Change\x20to:*\x20%0'),_0x2cfd22={'type':'format','content':o(_0xec26e1,_0x5d8ced,o(_0xec26e1,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5d8ced='*Indent:*\x20%0',_0x2cfd22={'type':'format','content':o(_0xec26e1,_0x5d8ced,o(_0xec26e1,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5d8ced=function(_0x12fa9f){const _0x568373=_0x12fa9f['getFirstRange']();let _0x385fe0=_0x568373['start']['nodeAfter'];for(;_0x385fe0&&_0x568373['containsItem'](_0x385fe0);){if(_0x385fe0['getAttribute']('listIndent')>0x0)return!0x1;_0x385fe0=_0x385fe0['nextSibling'];}return!0x0;}(_0x1daae6)?o(_0xec26e1,'*Format:*\x20remove\x20from\x20%0',o(_0xec26e1,function(_0x438377){return'ELEMENT_'+_0x438377['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1daae6))):o(_0xec26e1,'*Outdent:*\x20%0',o(_0xec26e1,'ELEMENT_LIST_ITEM')),_0x2cfd22={'type':'format','content':_0x5d8ced};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x229218['multipleBlocks']&&(_0x5d8ced='*Merge:*\x20%0',_0x2cfd22={'type':'deletion','content':o(_0xec26e1,_0x5d8ced,o(_0xec26e1,'ELEMENT_LIST_ITEM'))});}return _0x2cfd22;});}}function Te(_0x2cc2ed){let _0xc760fa=_0x2cc2ed['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xc760fa;){const _0x592a13=_0xc760fa['getAttribute']('listItemId');if(!_0x592a13)return!0x1;if(_0x592a13==_0x2cc2ed['data']['newValue'])return'newValue';if(_0x592a13==_0x2cc2ed['data']['oldValue'])return'oldValue';_0xc760fa=_0xc760fa['previousSibling'];}return!0x1;}class Se extends _0x2bd390{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1de4cc=this['editor']['config']['get']('list.properties'),_0x51a7c1=this['editor']['plugins']['get']('TrackChangesEditing');_0x1de4cc['styles']&&(_0x51a7c1['enableDefaultAttributesIntegration']('listStyle'),_0x51a7c1['registerBlockAttribute']('listStyle')),_0x1de4cc['reversed']&&(_0x51a7c1['enableDefaultAttributesIntegration']('listReversed'),_0x51a7c1['registerBlockAttribute']('listReversed')),_0x1de4cc['startIndex']&&(_0x51a7c1['enableDefaultAttributesIntegration']('listStart'),_0x51a7c1['registerBlockAttribute']('listStart'));const _0x447090={'type':'format','content':''};_0x51a7c1['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x326ecf=this['editor']['locale'];_0x51a7c1['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x326ecf,'FORMAT_LIST_REVERSED')),_0x51a7c1['descriptionFactory']['registerDescriptionCallback'](_0x53f44b=>{const {data:_0x165c53}=_0x53f44b;if(_0x165c53&&'listReversed'==_0x165c53['key'])return null==_0x165c53['newValue']||0x0==_0x165c53['newValue']&&null==_0x165c53['oldValue']?_0x447090:void 0x0;}),_0x51a7c1['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x326ecf,'FORMAT_LIST_START')),_0x51a7c1['descriptionFactory']['registerDescriptionCallback'](_0x4a0eef=>{const {data:_0x249e34}=_0x4a0eef;if(_0x249e34&&'listStart'==_0x249e34['key'])return null==_0x249e34['newValue']||0x1==_0x249e34['newValue']&&null==_0x249e34['oldValue']?_0x447090:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x826d84=>{if(_0x826d84['batch']['isUndo'])return!0x1;let _0x3b0643=!0x1;const _0x58ffed=_0x51a7c1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x10d94e=>{const _0x1cbd6e=_0x51a7c1['_getAttributeKey'](_0x10d94e);return'listStart'==_0x1cbd6e||'listReversed'==_0x1cbd6e;});for(const _0x3f4c9f of _0x58ffed){const _0x46b294=_0x3f4c9f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x46b294||'customNumbered'==_0x46b294)continue;_0x51a7c1['_findSuggestions'](_0x3f4c9f['getFirstRange'](),'attribute')['find'](_0x2ac60b=>'listType'==_0x51a7c1['_getAttributeKey'](_0x2ac60b['suggestion']))||(_0x826d84['removeMarker'](_0x3f4c9f['getFirstMarker']()),_0x3b0643=!0x0);}return _0x3b0643;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x42aef0){const _0x322d52=this['editor']['locale'],{data:_0x69543d}=_0x42aef0,_0x23d560={'type':'format','content':''};if(!_0x69543d||'listStyle'!=_0x69543d['key'])return;if(!_0x69543d['oldValue'])return'default'==_0x69543d['newValue']?_0x23d560:{'type':'format','content':''+o(_0x322d52,'*Set\x20format:*\x20%0',o(_0x322d52,this['_getTranslationKeyForListStyle'](_0x69543d['newValue'])))};if(!_0x69543d['newValue']){if('default'==_0x69543d['oldValue'])return _0x23d560;let _0x1fc310=_0x42aef0['head'];for(;_0x1fc310;){if(_0x1fc310['data']&&'listType'==_0x1fc310['data']['key']&&_0x1fc310['data']['newValue'])return _0x23d560;_0x1fc310=_0x1fc310['next'];}return{'type':'format','content':''+o(_0x322d52,'*Remove\x20format:*\x20%0',o(_0x322d52,this['_getTranslationKeyForListStyle'](_0x69543d['oldValue'])))};}if('default'!=_0x69543d['newValue'])return{'type':'format','content':''+o(_0x322d52,'*Set\x20format:*\x20%0',o(_0x322d52,this['_getTranslationKeyForListStyle'](_0x69543d['newValue'])))};let _0x3785ad=_0x42aef0['head'];for(;_0x3785ad;){if(_0x3785ad['data']&&'listType'==_0x3785ad['data']['key']&&_0x3785ad['data']['newValue']&&_0x3785ad['data']['oldValue'])return _0x23d560;_0x3785ad=_0x3785ad['next'];}return{'type':'format','content':o(_0x322d52,'*Set\x20format:*\x20%0',o(_0x322d52,'ELEMENT_'+_0x42aef0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5d6fce=this['editor'],_0x2ae3e1=_0x5d6fce['locale'];_0x5d6fce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a79fb=>{if('formatBlock'!=_0x3a79fb['type'])return;const {data:_0x23c7e1}=_0x3a79fb;if(!_0x23c7e1)return;let _0x14d8fd,_0x3379c0;switch(_0x23c7e1['commandName']){case'listStyle':_0x14d8fd='*Change\x20to:*\x20%0',_0x3379c0={'type':'format','content':o(_0x2ae3e1,_0x14d8fd,o(_0x2ae3e1,this['_getTranslationKeyForListStyle'](_0x23c7e1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x14d8fd=_0x23c7e1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3379c0={'type':'format','content':o(_0x2ae3e1,_0x14d8fd)};break;case'listStart':_0x14d8fd='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3379c0={'type':'format','content':o(_0x2ae3e1,_0x14d8fd,_0x23c7e1['commandParams'][0x0]['startIndex'])};}return _0x3379c0;});}['_getTranslationKeyForListStyle'](_0x35e22b){return'ELEMENT_'+function(_0x38f56e){if(_e['includes'](_0x38f56e))return'bulleted';if(Re['includes'](_0x38f56e))return'numbered';return null;}(_0x35e22b)['toUpperCase']()+'_LIST_'+_0x35e22b['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x2bd390{static get['requires'](){return[_0x212829];}['init'](){const _0x52f8ae=this['editor'],_0x4214ac=_0x52f8ae['plugins']['get']('TrackChangesEditing'),_0x57a00e=_0x52f8ae['commands']['get']('enter');_0x4214ac['enableCommand']('enter',()=>{_0x52f8ae['model']['change'](_0x31aa7e=>{const _0x2473f0=_0x52f8ae['model']['document']['selection'],_0x4a4953=_0x2473f0['getFirstPosition'](),_0xe19bc0=_0xfaa3eb['fromRange'](_0x2473f0['getFirstRange']());if(_0x57a00e['enterBlock'](_0x31aa7e)){const _0x3abf41=_0x52f8ae['model']['createPositionAt'](_0x4a4953['parent']['nextSibling'],0x0),_0x35d5f8=_0x31aa7e['createRange'](_0x4a4953,_0x3abf41);_0x4214ac['markInsertion'](_0x35d5f8);}else _0x31aa7e['setSelection'](_0x31aa7e['createRange'](_0xe19bc0['end']));_0xe19bc0['detach'](),_0x57a00e['fire']('afterExecute',{'writer':_0x31aa7e});});}),_0x52f8ae['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x52f8ae,'split'),{'priority':'high'}),_0x52f8ae['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xe2c2dd,_0x2036e4,_0xaa357f)=>{const _0x1d24bd=_0xaa357f['mapper']['markerNameToElements'](_0x2036e4['markerName']);if(_0x1d24bd){for(const _0x44e4fa of _0x1d24bd)_0x44e4fa['hasClass']('ck-suggestion-marker-split')&&(_0xaa357f['mapper']['unbindElementFromMarkerName'](_0x44e4fa,_0x2036e4['markerName']),_0xaa357f['writer']['remove'](_0x44e4fa));}},{'priority':'high'}),_0x52f8ae['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4c1c6f,_0x15b49d,_0x55f6c9)=>{_0x55f6c9['options']['showSuggestionHighlights']&&De(_0x52f8ae,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4c1c6f,_0x15b49d,_0x55f6c9);},{'priority':'high'});}}class Y extends _0x2bd390{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x58cc83=this['editor']['plugins']['get']('TrackChangesEditing');_0x58cc83['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x58cc83['enableCommand']('findNext'),_0x58cc83['enableCommand']('findPrevious'),_0x58cc83['enableCommand']('replace'),_0x58cc83['enableCommand']('replaceAll');}['handleFindCommand'](_0x43bc2e,_0x51cbea,_0x334b37={}){const _0x12ff8a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x43bc2e(_0x5255ba=>{let _0xcfe00f=('string'==typeof _0x51cbea?_0x12ff8a['findByTextCallback'](_0x51cbea,_0x334b37):_0x51cbea)(_0x5255ba);Array['isArray'](_0xcfe00f)&&(_0xcfe00f={'results':_0xcfe00f,'searchText':'string'==typeof _0x51cbea?_0x51cbea:''});const _0x34c1d=_0xcfe00f['results']['filter'](_0x174dd0=>!0x1===this['_isInDeletionRange'](_0x174dd0,_0x5255ba['item']));return{..._0xcfe00f,'results':_0x34c1d};},_0x334b37);}['_isInDeletionRange'](_0x221719,_0x19f34c){const _0x3000ef=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x19f34c,_0x221719['start']),this['editor']['model']['createPositionAt'](_0x19f34c,_0x221719['end']));for(const _0x1d0a3b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3000ef['getIntersection'](_0x1d0a3b['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x2bd390{['afterInit'](){const _0x2adf11=this['editor']['locale'],_0xc504cb=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1865f1,commandName:_0x44614e}of ro)this['editor']['plugins']['has'](_0x1865f1)&&(_0xc504cb['enableDefaultAttributesIntegration'](_0x44614e),_0xc504cb['registerInlineAttribute'](_0x44614e));_0xc504cb['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2adf11,'FORMAT_FONT_SIZE')),_0xc504cb['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2adf11,'FORMAT_FONT_FAMILY')),_0xc504cb['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2adf11,'FORMAT_FONT_COLOR')),_0xc504cb['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2adf11,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a91ef=this['editor'],_0xb5ec0d=_0x3a91ef['locale'];_0x3a91ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x480895=>{const _0x4ba42b=_0xb5ec0d['t'];if('formatInline'!=_0x480895['type'])return;const {data:_0xd95eae}=_0x480895;if(null!=_0xd95eae){if('fontSize'==_0xd95eae['commandName']){const _0x22fae5=_0xd95eae['commandParams'][0x0]['value'];if(_0x22fae5){const _0x21c0f6=_0x4ba42b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x68ca1=>_0x68ca1['model']==_0x22fae5)['title'])['toLowerCase']();return{'type':'format','content':o(_0xb5ec0d,'*Set\x20font\x20size:*\x20%0',_0x21c0f6)};}return{'type':'format','content':o(_0xb5ec0d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xd95eae['commandName']){const _0x28451d=_0xd95eae['commandParams'][0x0]['value'];return _0x28451d?{'type':'format','content':o(_0xb5ec0d,'*Set\x20font\x20family:*\x20%0',_0x28451d)}:{'type':'format','content':o(_0xb5ec0d,'*Reset\x20font\x20family*')};}if('fontColor'==_0xd95eae['commandName']){const _0x20d4fe=_0xd95eae['commandParams'][0x0]['value'];if(_0x20d4fe){const _0x475131=_0x4deacf(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1e6ba1=>_0x1e6ba1['model']==_0x20d4fe);let _0x5d3590=_0x20d4fe,_0x393382='';return _0x475131&&(_0x5d3590=_0x475131['label'],_0x393382=_0x4ba42b(_0x5d3590)['toLowerCase']()),{'type':'format','content':o(_0xb5ec0d,'*Set\x20font\x20color:*\x20%0',_0x393382)['trim'](),'color':{'value':_0x20d4fe,'title':_0x393382||_0x5d3590}};}return{'type':'format','content':o(_0xb5ec0d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xd95eae['commandName']){const _0xe7978=_0xd95eae['commandParams'][0x0]['value'];if(_0xe7978){const _0x3ba827=_0x4deacf(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1bdb3d=>_0x1bdb3d['model']==_0xe7978);let _0x8175ac=_0xe7978,_0x5f0afe='';return _0x3ba827&&(_0x8175ac=_0x3ba827['label'],_0x5f0afe=_0x4ba42b(_0x8175ac)['toLowerCase']()),{'type':'format','content':o(_0xb5ec0d,'*Set\x20font\x20background\x20color:*\x20%0',_0x5f0afe)['trim'](),'color':{'value':_0xe7978,'title':_0x5f0afe||_0x8175ac}};}return{'type':'format','content':o(_0xb5ec0d,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x2bd390{['afterInit'](){const _0x572d09=this['editor'],_0x180206=_0x572d09['plugins']['get']('TrackChangesEditing'),_0x4094e7=_0x572d09['commands']['get']('copyFormat'),_0xce28a8=_0x572d09['commands']['get']('pasteFormat');_0x4094e7&&_0xce28a8&&(_0x180206['enableDefaultAttributesIntegration']('pasteFormat'),_0x180206['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1134d8=this['editor'],_0x5d80f7=_0x1134d8['locale'];_0x1134d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x152666=>{if('formatBlock'!=_0x152666['type']&&'formatInline'!=_0x152666['type'])return;const {data:_0x5b692f}=_0x152666;if(_0x5b692f&&'pasteFormat'===_0x5b692f['commandName']){const _0x2bd91b=[],_0x4bc76a=_0x5b692f['commandParams'][0x0];for(const [_0x27ce36,_0x46eb31]of Object['entries'](_0x4bc76a))_0x2bd91b['push'](so(_0x1134d8,_0x27ce36,_0x46eb31));return _0x2bd91b['length']?{'type':'format','content':o(_0x5d80f7,'*Set\x20format\x20to:*\x20%0',_0x2bd91b['join'](',\x20'))}:{'type':'format','content':o(_0x5d80f7,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1efb19,_0x15a62e,_0x471f6e){const _0x2a1283=_0x1efb19['locale']['t'],_0x2fe466=_0x15a62e['split'](/(?=[A-Z])/)['join']('\x20'),_0x4d7cbf=_0x2a1283(_0x2fe466['charAt'](0x0)['toUpperCase']()+_0x2fe466['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x471f6e)return _0x4d7cbf;if('fontColor'===_0x15a62e||'fontBackgroundColor'===_0x15a62e){const _0x45666d=_0x4deacf(_0x1efb19['config']['get']('fontColor.colors'))['find'](_0x19a001=>_0x19a001['model']==_0x471f6e);return _0x4d7cbf+'\x20('+(_0x45666d?_0x2a1283(_0x45666d['label'])['toLowerCase']():_0x471f6e)+')';}if('fontSize'===_0x15a62e&&isNaN(parseFloat(_0x471f6e))){const _0x12962e=_0x1efb19['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1efb19['config']['get']('fontSize.options'))['find'](_0x274059=>_0x274059['model']==_0x471f6e);return _0x4d7cbf+'\x20('+(_0x12962e?_0x2a1283(_0x12962e['title'])['toLowerCase']():_0x471f6e)+')';}return _0x4d7cbf+'\x20('+_0x471f6e+')';}class nt extends _0x2bd390{['_headingOptions'];['afterInit'](){const _0x2edf67=this['editor'];if(!_0x2edf67['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2edf67['config']['get']('heading.options');const _0x2e6324=_0x2edf67['locale'],_0x5b1cce=_0x2edf67['plugins']['get']('TrackChangesEditing');_0x5b1cce['enableDefaultAttributesIntegration']('heading');for(const _0xa579d7 of this['_headingOptions'])'paragraph'!=_0xa579d7['model']&&_0x5b1cce['descriptionFactory']['registerElementLabel'](_0xa579d7['model'],_0x2c14c3=>{const _0x2f580d=this['_getHeadingLevel'](_0xa579d7['model']);return null!==_0x2f580d?_0x12ebc6(_0x2c14c3,_0x2f580d):_0x575a7e(_0x2c14c3,_0xa579d7['title']);});function _0x12ebc6(_0x404255,_0x2a5c88){return o(_0x2e6324,'ELEMENT_HEADING',[_0x404255,_0x2a5c88]);}function _0x575a7e(_0x35c06c,_0x50ca02){return o(_0x2e6324,'ELEMENT_HEADING_CUSTOM',[_0x35c06c,_0x50ca02]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d49b4=this['editor'],_0x3599ee=_0x2d49b4['locale'];function _0x286068(_0x223f3c,_0x59548b){return o(_0x3599ee,'ELEMENT_HEADING_CUSTOM',[_0x223f3c,_0x59548b]);}_0x2d49b4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x537440=>{if('formatBlock'!=_0x537440['type'])return;const {data:_0x169c4a}=_0x537440;if(_0x169c4a&&'heading'==_0x169c4a['commandName']){const _0x10d0d5=_0x169c4a['commandParams'][0x0]['value'],_0x343b3b=this['_getHeadingLevel'](_0x10d0d5);if(null!==_0x343b3b)return{'type':'format','content':o(_0x3599ee,'*Change\x20to:*\x20%0',(_0x39b0b3=0x1,_0x1baa9b=_0x343b3b,o(_0x3599ee,'ELEMENT_HEADING',[_0x39b0b3,_0x1baa9b])))};const _0x3d649e=this['_headingOptions']['find'](_0x373f83=>_0x373f83['model']===_0x10d0d5)['title'];return{'type':'format','content':o(_0x3599ee,'*Change\x20to:*\x20%0',_0x286068(0x1,_0x3d649e))};}var _0x39b0b3,_0x1baa9b;});}['_getHeadingLevel'](_0x1b12d3){const _0x3ee467=_0x1b12d3['match'](/^heading(\d+)/);if(_0x3ee467)return _0x3ee467[0x1];const _0x2952db=this['_headingOptions']?.['find'](_0x5bf261=>_0x5bf261['model']==_0x1b12d3);if(_0x2952db&&_0x2952db['view']){const _0x33d37a=_0x2952db['view'],_0x366b41=(_0x33d37a['name']??_0x33d37a)['match'](/^h(\d+)/);if(_0x366b41)return _0x366b41[0x1];}return null;}}class it extends _0x2bd390{['afterInit'](){const _0x15ce58=this['editor'];if(!_0x15ce58['plugins']['has']('HighlightEditing'))return;const _0x2bf205=_0x15ce58['plugins']['get']('TrackChangesEditing'),_0x5f5df7=_0x15ce58['locale'];_0x2bf205['enableDefaultAttributesIntegration']('highlight'),_0x2bf205['registerInlineAttribute']('highlight'),_0x2bf205['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5f5df7,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x544559=this['editor'],_0x4ebe30=_0x544559['locale'];_0x544559['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x257397=>{if('formatInline'!=_0x257397['type'])return;const {data:_0x2a765e}=_0x257397;if(_0x2a765e&&'highlight'==_0x2a765e['commandName']){const _0x490b60=_0x4ebe30['t'],_0x51ea86=_0x2a765e['commandParams'][0x0]['value'];if(_0x51ea86){const _0x25b44c=_0x544559['config']['get']('highlight.options')['find'](_0x30235b=>_0x30235b['model']==_0x51ea86),_0x4be0d0=_0x490b60(_0x25b44c['title'])['toLowerCase']();return{'type':'format','content':o(_0x4ebe30,'*Set\x20highlight:*\x20%0',_0x4be0d0),'color':{'value':_0x25b44c['color'],'title':_0x25b44c['title']}};}return{'type':'format','content':o(_0x4ebe30,'*Remove\x20highlight*',o(_0x4ebe30,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x2bd390{['afterInit'](){const _0x28d622=this['editor'];if(!_0x28d622['plugins']['has']('HorizontalLineEditing'))return;_0x28d622['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x15cb6f=_0x28d622['plugins']['get']('TrackChangesEditing'),_0x285def=_0x28d622['locale'];_0x15cb6f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1537c3=>o(_0x285def,'ELEMENT_HORIZONTAL_LINE',_0x1537c3)),_0x28d622['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4e8bff,{writer:_0x3bc868,options:_0x5dcd1d})=>{if(!_0x5dcd1d['showSuggestionHighlights'])return null;const _0x56b449=_0x3bc868['createContainerElement']('div'),_0x21e74a=_0x3bc868['createEmptyElement']('hr');return _0x3bc868['addClass']('ck-horizontal-line',_0x56b449),_0x3bc868['insert'](_0x3bc868['createPositionAt'](_0x56b449,0x0),_0x21e74a),_0x56b449;},'converterPriority':'high'});}}class st extends _0x2bd390{['afterInit'](){const _0x464ca5=this['editor'];if(!_0x464ca5['plugins']['has']('HtmlEmbed'))return;const _0xfa6c9c=_0x464ca5['plugins']['get']('TrackChangesEditing'),_0xa7ab91=_0x464ca5['locale'];_0xfa6c9c['descriptionFactory']['registerElementLabel']('rawHtml',_0x5c0e95=>o(_0xa7ab91,'ELEMENT_HTML_EMBED',_0x5c0e95)),_0xfa6c9c['enableDefaultAttributesIntegration']('htmlEmbed'),_0xfa6c9c['registerBlockAttribute']('value'),_0xfa6c9c['descriptionFactory']['registerDescriptionCallback'](_0x11ece2=>{if('attribute'!=_0x11ece2['type'])return;const {data:_0x50a178}=_0x11ece2;if(_0x50a178&&'value'==_0x50a178['key']&&_0x11ece2['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x84e6bb=o(_0xa7ab91,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xa7ab91,'*Change\x20%0\x20content*',_0x84e6bb)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40f827=this['editor'],_0x31bd3b=_0x40f827['locale'];_0x40f827['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a0281=>{if('formatBlock'!=_0x1a0281['type'])return;const {data:_0x425521}=_0x1a0281;if(_0x425521&&'htmlEmbed'==_0x425521['commandName']){const _0x1409c9=o(_0x31bd3b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x31bd3b,'*Change\x20%0\x20content*',_0x1409c9)};}});}}class ot extends _0x2bd390{['afterInit'](){const _0x104569=this['editor'];if(!_0x104569['plugins']['has']('ImageEditing'))return;const _0x3ecf41=_0x104569['plugins']['get']('TrackChangesEditing'),_0x9c1a0a=_0x104569['plugins']['get']('ImageUtils'),_0x4fd963=_0x104569['locale'];_0x3ecf41['enableCommand']('insertImage'),_0x3ecf41['descriptionFactory']['registerElementLabel']('imageBlock',_0x1ebb7b=>o(_0x4fd963,'ELEMENT_IMAGE',_0x1ebb7b)),_0x3ecf41['descriptionFactory']['registerElementLabel']('imageInline',_0x2a9f53=>o(_0x4fd963,'ELEMENT_INLINE_IMAGE',_0x2a9f53)),_0x3ecf41['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4fd963,'ELEMENT_CAPTION')),_0x104569['plugins']['has']('ImageUploadEditing')&&_0x3ecf41['enableCommand']('uploadImage'),_0x104569['plugins']['has']('ImageBlockEditing')&&_0x104569['plugins']['has']('ImageInlineEditing')&&(_0x3ecf41['enableCommand']('imageTypeInline',(_0x1deab8,_0x234bfd)=>{const _0x5c9662=_0x9c1a0a['getClosestSelectedImageElement'](_0x104569['model']['document']['selection']);_0x104569['model']['change'](()=>{_0x3ecf41['markBlockFormat'](_0x5c9662,{'commandName':'imageTypeInline','commandParams':[_0x234bfd]},[],'convertBlockImageToInline');});}),_0x3ecf41['enableCommand']('imageTypeBlock',(_0x789b9,_0x275b5f)=>{_0x104569['model']['change'](_0x136ebe=>{let _0x937ba2=_0x9c1a0a['getClosestSelectedImageElement'](_0x104569['model']['document']['selection']),_0x283c0f=_0x136ebe['createRangeOn'](_0x937ba2);const _0xee00a2=_0x152006['fromPosition'](_0x283c0f['start'],'toPrevious'),_0x35ef52=_0x152006['fromPosition'](_0x283c0f['end'],'toNext');_0x3ecf41['forceDefaultExecution'](()=>_0x789b9(_0x275b5f)),_0x937ba2=_0x9c1a0a['getClosestSelectedImageElement'](_0x104569['model']['document']['selection']),_0x283c0f=_0x136ebe['createRangeOn'](_0x937ba2);const _0x52e43f=_0x136ebe['createRange'](_0xee00a2,_0x35ef52);_0xee00a2['detach'](),_0x35ef52['detach'](),_0x3ecf41['markBlockFormat'](_0x937ba2,{'commandName':'imageTypeInline','commandParams':[_0x275b5f]},[],'convertInlineImageToBlock'),_0x52e43f['start']['isBefore'](_0x283c0f['start'])&&_0x3ecf41['markInsertion'](_0x136ebe['createRange'](_0x52e43f['start'],_0x283c0f['start']),'convertInlineImageToBlock'),_0x283c0f['end']['isBefore'](_0x52e43f['end'])&&_0x3ecf41['markInsertion'](_0x136ebe['createRange'](_0x283c0f['end'],_0x52e43f['end']),'convertInlineImageToBlock');});}),_0x3ecf41['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3ecf41['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3ecf41['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3ecf41['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3ecf41['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3ecf41['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4cc335])=>{const _0x23d456=_0x3ecf41['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x546029=_0x4cc335['start'],_0x49ba53=_0x4cc335['end'];const _0x185758=_0x104569['model']['schema']['getNearestSelectionRange'](_0x546029,'backward'),_0x5e25cc=_0x104569['model']['schema']['getNearestSelectionRange'](_0x49ba53,'forward');_0x185758['isCollapsed']&&(_0x546029=_0x185758['start']),_0x5e25cc['isCollapsed']&&(_0x49ba53=_0x5e25cc['end']),_0x23d456([_0x104569['model']['createRange'](_0x546029,_0x49ba53)]);}),_0x3ecf41['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5d8c73),_0x3ecf41['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5d8c73)),_0x104569['plugins']['has']('ImageCaptionEditing')&&(_0x3ecf41['enableCommand']('toggleImageCaption',(_0x58f767,_0x430fa7)=>{const _0x260624=_0x104569['plugins']['get']('ImageCaptionUtils');let _0x7a76d1=_0x9c1a0a['getClosestSelectedImageElement'](_0x104569['model']['document']['selection']),_0x209860=_0x260624['getCaptionFromImageModelElement'](_0x7a76d1);_0x104569['model']['change'](()=>{if(_0x209860)return void _0x3ecf41['markDeletion'](_0x104569['model']['createRangeOn'](_0x209860));const _0x31d732=_0x9c1a0a['isBlockImage'](_0x7a76d1);_0x58f767(_0x430fa7),_0x7a76d1=_0x9c1a0a['getClosestSelectedImageElement'](_0x104569['model']['document']['selection']),_0x209860=_0x260624['getCaptionFromImageModelElement'](_0x7a76d1),_0x3ecf41['markInsertion'](_0x104569['model']['createRangeOn'](_0x209860),_0x31d732?null:'imageCaption');});}),_0x3ecf41['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5d8c73));const _0x29017b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2d88ae(_0x5a353e,_0xf40a83){const _0x41266d=_0x29017b['findIndex'](({type:_0x538900,subType:_0x2d2ef2})=>_0x5a353e['type']==_0x538900&&_0x5a353e['subType']==_0x2d2ef2),_0x41ac51=_0x29017b['findIndex'](({type:_0x450ea1,subType:_0x229262})=>_0xf40a83['type']==_0x450ea1&&_0xf40a83['subType']==_0x229262);if(_0x41266d<0x0||_0x41ac51<0x0)return!0x1;const _0x3ef497=_0x5a353e['getFirstRange'](),_0x309add=_0xf40a83['getFirstRange']();if((0x0==_0x41266d||0x1==_0x41266d)&&0x2==_0x41ac51&&_0x3ef497['isIntersecting'](_0x309add))return!0x0;if(0x2==_0x41266d&&0x3==_0x41ac51){const _0x58467e=_0x3ecf41['_findSuggestions'](_0x3ef497,'insertion')['filter'](({suggestion:_0x36ceef,meta:_0x38d4ec})=>_0x38d4ec['isOwn']&&'convertInlineImageToBlock'==_0x36ceef['subType']);if(_0x58467e['length']>0x1&&_0x309add['end']['isEqual'](_0x3ef497['start']))return!0x0;if(0x1==_0x58467e['length']&&(_0x3ef497['start']['isEqual'](_0x309add['end'])||_0x3ef497['end']['isEqual'](_0x309add['start'])))return!0x0;}if(0x3==_0x41266d&&0x3==_0x41ac51&&_0x3ef497['start']['isBefore'](_0x309add['start'])){const _0x210791=_0x3ef497['end']['nodeAfter'],_0x3feb6a=_0x309add['start']['nodeBefore'];return _0x9c1a0a['isBlockImage'](_0x210791)&&_0x210791===_0x3feb6a;}return!0x1;}function _0x5d8c73(_0x41aa06,_0x4d9718){return _0x2d88ae(_0x41aa06,_0x4d9718)?[_0x41aa06,_0x4d9718]:_0x2d88ae(_0x4d9718,_0x41aa06)?[_0x4d9718,_0x41aa06]:null;}_0x104569['plugins']['has']('ImageResize')&&(_0x3ecf41['enableDefaultAttributesIntegration']('resizeImage'),_0x3ecf41['registerBlockAttribute']('resizedWidth'),_0x3ecf41['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4fd963,'FORMAT_IMAGE_SIZE'))),_0x104569['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3ecf41['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3ecf41['registerBlockAttribute']('alt')),_0x104569['plugins']['has']('PictureEditing')&&(_0x3ecf41['registerBlockAttribute']('sources'),_0x3ecf41['descriptionFactory']['registerDescriptionCallback'](_0x535b9d=>{if('attribute'!=_0x535b9d['type'])return;const {data:_0x2a5466}=_0x535b9d;return _0x2a5466&&'sources'==_0x2a5466['key']?{'type':'format','content':''}:void 0x0;})),_0x104569['plugins']['has']('ImageSizeAttributes')&&(_0x3ecf41['registerBlockAttribute']('width'),_0x3ecf41['registerBlockAttribute']('height'),_0x3ecf41['descriptionFactory']['registerDescriptionCallback'](_0x37cc36=>{if('attribute'!=_0x37cc36['type'])return;const {data:_0x450d16}=_0x37cc36;return!_0x450d16||'width'!=_0x450d16['key']&&'height'!=_0x450d16['key']?void 0x0:{'type':'format','content':''};})),_0x3ecf41['descriptionFactory']['registerDescriptionCallback'](_0x5d768d=>{if(!!_0x29017b['find'](({type:_0xcfb62c,subType:_0x47b717})=>_0x5d768d['type']==_0xcfb62c&&_0x5d768d['subType']==_0x47b717))return _0x5d768d['previous']?{}:void 0x0;}),_0x3ecf41['descriptionFactory']['registerDescriptionCallback'](_0x5ddf4e=>{if('insertion'==_0x5ddf4e['type']||'deletion'==_0x5ddf4e['type']){const _0x223707=_0x5ddf4e['getContainedElement']();if(_0x223707&&_0x223707['is']('element','caption'))return{'type':'insertion'==_0x5ddf4e['type']?'addObject':'removeObject','element':_0x223707,'quantity':0x1};}}),_0x3ecf41['descriptionFactory']['registerDescriptionCallback'](_0x2835c9=>'formatBlock'==_0x2835c9['type']&&'convertInlineImageToBlock'==_0x2835c9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2835c9['type']&&'convertBlockImageToInline'==_0x2835c9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3ecf41['descriptionFactory']['registerDescriptionCallback'](_0x3b7e71=>{if('attribute'!=_0x3b7e71['type'])return;const {data:_0x583e77}=_0x3b7e71;if(!_0x583e77||'alt'!=_0x583e77['key'])return;const _0x2bbe30=_0x583e77['newValue'];return _0x2bbe30?{'type':'format','content':o(_0x4fd963,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2bbe30+'\x22')}:{'type':'format','content':o(_0x4fd963,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42efa3=this['editor'],_0x43f4f7=_0x42efa3['locale'];_0x42efa3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10cd93=>{if('formatBlock'!=_0x10cd93['type']&&'formatInline'!=_0x10cd93['type'])return;const {data:_0xb660e2}=_0x10cd93;if(_0xb660e2){if('imageTextAlternative'==_0xb660e2['commandName']){const _0x16427e=_0xb660e2['commandParams'][0x0]['newValue'];return _0x16427e?{'type':'format','content':o(_0x43f4f7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x16427e+'\x22')}:{'type':'format','content':o(_0x43f4f7,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xb660e2['commandName']){const _0x16704a=_0xb660e2['commandParams'][0x0]['width'];return _0x16704a?{'type':'format','content':o(_0x43f4f7,'*Set\x20image\x20width:*\x20%0',_0x16704a)}:{'type':'format','content':o(_0x43f4f7,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x2bd390{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x96c6f6=this['editor']['locale'],_0x2e1846=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e1846['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2e1846['registerBlockAttribute']('src'),_0x2e1846['descriptionFactory']['registerDescriptionCallback'](_0x2e1099=>{if('attribute'!=_0x2e1099['type'])return;const {data:_0x4719db}=_0x2e1099;return _0x4719db&&'src'==_0x4719db['key']?_0x4719db['newValue']&&_0x4719db['oldValue']?{'type':'format','content':o(_0x96c6f6,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x6c9c03=this['editor']['plugins']['get']('TrackChangesEditing');_0x6c9c03['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x6c9c03['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x6c9c03['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x6c9c03['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27030f=this['editor'],_0x2b2dca=_0x27030f['locale'];_0x27030f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56809b=>{if('formatBlock'!=_0x56809b['type']&&'formatInline'!=_0x56809b['type'])return;const {data:_0x2b6000}=_0x56809b;if(!_0x2b6000||'replaceImageSource'!=_0x2b6000['commandName'])return;return{'type':'format','content':o(_0x2b2dca,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x2bd390{['afterInit'](){const _0x4d3418=this['editor'];if(!_0x4d3418['plugins']['has']('ImageStyleEditing'))return;const _0x524fa3=_0x4d3418['plugins']['get']('TrackChangesEditing'),_0x2fe9f1=_0x4d3418['plugins']['get']('ImageUtils'),_0x9296d4={};_0x524fa3['enableCommand']('imageStyle',(_0x285ade,_0x32ad5b)=>{const _0x2149e2=_0x4d3418['plugins']['get']('Users')['me'],_0xc7f3d4=_0x4d3418['commands']['get']('imageStyle');let _0xcb723f=_0x2fe9f1['getClosestSelectedImageElement'](_0x4d3418['model']['document']['selection']),_0x29f7cd=_0x4d3418['model']['createRangeOn'](_0xcb723f),_0x1d4b25=_0xc7f3d4['value'];if(_0x1d4b25==_0x32ad5b['value'])return;const _0x57f977={'commandName':'imageStyle','commandParams':[_0x32ad5b],'formatGroupId':_0x309c8a()};_0x4d3418['model']['change'](()=>{if(_0x524fa3['getSuggestions']()['filter'](_0x282a2c=>_0x282a2c['isInContent']&&_0x2149e2==_0x282a2c['author']&&('formatBlock'==_0x282a2c['type']||'formatInline'==_0x282a2c['type'])&&('imageStylePreApply'==_0x282a2c['subType']||'imageStylePostApply'==_0x282a2c['subType'])&&_0x282a2c['getFirstRange']()['isEqual'](_0x29f7cd))['forEach'](_0x2892ae=>_0x524fa3['discardSuggestion'](_0x2892ae['head'])),_0xcb723f=_0x2fe9f1['getClosestSelectedImageElement'](_0x4d3418['model']['document']['selection']),_0x29f7cd=_0x4d3418['model']['createRangeOn'](_0xcb723f),_0xc7f3d4['refresh'](),_0x4d3418['commands']['get']('imageTypeInline')['refresh'](),_0x4d3418['commands']['get']('imageTypeBlock')['refresh'](),_0x1d4b25=_0xc7f3d4['value'],_0x1d4b25!=_0x32ad5b['value'])return _0x2fe9f1['isInlineImage'](_0xcb723f)&&_0xc7f3d4['shouldConvertImageType'](_0x32ad5b['value'],_0xcb723f)?(_0x285ade({..._0x32ad5b,'setImageSizes':!0x1}),_0xcb723f=_0x2fe9f1['getClosestSelectedImageElement'](_0x4d3418['model']['document']['selection']),void _0x524fa3['markBlockFormat'](_0xcb723f,{..._0x57f977,'commandReversedParams':[{'value':_0x1d4b25||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2fe9f1['isBlockImage'](_0xcb723f)?_0x524fa3['markBlockFormat'](_0xcb723f,_0x57f977,[],'imageStylePostApply'):_0x524fa3['markInlineFormat'](_0x29f7cd,_0x57f977,'imageStylePostApply'));});});for(const _0x44ac07 of _0x4d3418['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x9296d4[_0x44ac07['name']]=_0x44ac07['title']['toLowerCase']();_0x524fa3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x524fa3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x524fa3['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x524fa3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4c2de5])=>{_0x2fe9f1['setImageNaturalSizeAttributes'](_0x4c2de5['getContainedElement']());}),_0x524fa3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2a2e1d,_0x3259db)=>{_0x524fa3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2a2e1d,{'commandName':_0x3259db['commandName'],'commandParams':_0x3259db['commandReversedParams']});}),_0x524fa3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x9c07a,_0x1c4b40){if(_0x12801d(_0x9c07a,_0x1c4b40))return[_0x9c07a,_0x1c4b40];if(_0x12801d(_0x1c4b40,_0x9c07a))return[_0x1c4b40,_0x9c07a];return null;});const _0x5a8f11=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x12801d(_0x4fec23,_0xd7e394){const _0x36d9ec=_0x5a8f11['findIndex'](({type:_0x47fac6,subType:_0x165d4d})=>_0x4fec23['type']==_0x47fac6&&_0x4fec23['subType']==_0x165d4d),_0x16383c=_0x5a8f11['findIndex'](({type:_0x30a83b,subType:_0x5b27fe})=>_0xd7e394['type']==_0x30a83b&&_0xd7e394['subType']==_0x5b27fe);if(_0x36d9ec<0x0||_0x16383c<0x0)return!0x1;const _0x37f0ff=_0x4fec23['getFirstRange'](),_0x1dd128=_0xd7e394['getFirstRange']();if((0x0==_0x36d9ec||0x1==_0x36d9ec)&&0x2==_0x16383c&&_0x37f0ff['isIntersecting'](_0x1dd128))return!0x0;if(0x2==_0x36d9ec&&0x3==_0x16383c){const _0x4d272f=_0x524fa3['_findSuggestions'](_0x37f0ff,'insertion')['filter'](({suggestion:_0x9a150e,meta:_0x362532})=>_0x362532['isOwn']&&'convertInlineImageToBlock'==_0x9a150e['subType']);if(_0x4d272f['length']>0x1&&_0x1dd128['end']['isEqual'](_0x37f0ff['start']))return!0x0;if(0x1==_0x4d272f['length']&&(_0x37f0ff['start']['isEqual'](_0x1dd128['end'])||_0x37f0ff['end']['isEqual'](_0x1dd128['start'])))return!0x0;}if(0x3==_0x36d9ec&&0x3==_0x16383c&&_0x37f0ff['start']['isBefore'](_0x1dd128['start'])){const _0x1cbb96=_0x37f0ff['end']['nodeAfter'],_0x5683ed=_0x1dd128['start']['nodeBefore'];return _0x2fe9f1['isBlockImage'](_0x1cbb96)&&_0x1cbb96===_0x5683ed;}return!0x1;}_0x4d3418['model']['document']['registerPostFixer'](()=>{let _0x33a0ea=!0x1;const _0x11a10d=Array['from'](_0x4d3418['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x49b54d,data:_0x6f6a45}of _0x11a10d){const {group:_0x27caab,type:_0xbb6cb1,subType:_0x2057d1,id:_0x3bf42b}=_0x524fa3['_splitMarkerName'](_0x49b54d);if('suggestion'==_0x27caab&&_0x524fa3['hasSuggestion'](_0x3bf42b)){if('formatBlock'==_0xbb6cb1&&('imageStylePreApply'==_0x2057d1||'imageStylePostApply'==_0x2057d1)){const _0x3bce12=_0x524fa3['getSuggestion'](_0x3bf42b);if(_0x6f6a45['newRange']){const _0x2b523f=_0x3bce12['getFirstRange']()['getContainedElement']();if(_0x2fe9f1['isBlockImage'](_0x2b523f))continue;_0x524fa3['discardSuggestion'](_0x3bce12),_0x33a0ea=!0x0;}}if('insertion'==_0xbb6cb1&&'imageCaption'==_0x2057d1&&!_0x6f6a45['newRange']){const _0x167eb2=_0x524fa3['getSuggestion'](_0x3bf42b);_0x167eb2['next']&&_0x167eb2['next']['isInContent']&&(_0x524fa3['discardSuggestion'](_0x167eb2['next']),_0x33a0ea=!0x0);}}}return _0x33a0ea;}),this['_registerLegacyDescription'](_0x9296d4);}['_registerLegacyDescription'](_0xe5b9e1){const _0x1a8db3=this['editor'],_0x1202d0=_0x1a8db3['locale'];_0x1a8db3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34b12d=>{if('formatBlock'!=_0x34b12d['type']&&'formatInline'!=_0x34b12d['type'])return;const {data:_0x32157f}=_0x34b12d;if(!_0x32157f||'imageStyle'!=_0x32157f['commandName'])return;const _0xe3741b=_0x32157f['commandParams'][0x0]['value'];return _0x8cfd5f('side'===_0xe3741b?o(_0x1202d0,'FORMAT_SIDE_IMAGE'):_0xe5b9e1[_0xe3741b]||_0xe3741b);function _0x8cfd5f(_0x1b3fa3){return{'type':'format','content':o(_0x1202d0,'*Format:*\x20%0',_0x1b3fa3)};}});}}class ct extends _0x2bd390{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x16b642){super(_0x16b642),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5c2b6b=this['editor'],_0x31a67d=_0x5c2b6b['commands']['get']('importWord'),_0xe12c=_0x5c2b6b['commands']['get']('trackChanges');_0x31a67d&&(_0x31a67d['on']('execute',(_0x4ae3de,[,_0x4e7daf])=>{this['_trackChangesValueDuringImport']=_0xe12c['value'],_0x4e7daf['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x31a67d,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x31a67d,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xe12c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5c2b6b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x17b461,_0x460c99){const {suggestions:_0x46608d}=_0x460c99,_0xfdb788=this['editor']['commands']['get']('trackChanges'),_0x4b5904=_0xfdb788['value'];this['_trackChangesValueDuringImport']!==_0x4b5904&&(_0xfdb788['execute'](),this['_trackChangesExecuted']=!0x0),_0x46608d&&_0x46608d['forEach'](({id:_0x28c7ef,type:_0xae7c1d,author:_0x17e9ad,created_at:_0x1e1f54})=>{const _0x525012={'id':_0x28c7ef,'type':_0xae7c1d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x17e9ad,'createdAt':_0x1e1f54?new Date(_0x1e1f54):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x525012);});}}class ut extends _0x2bd390{['afterInit'](){const _0x2d3a04=this['editor'],_0x7baeb3=_0x2d3a04['plugins']['get']('TrackChangesEditing');if(_0x2d3a04['plugins']['has']('IndentEditing')&&(_0x7baeb3['enableCommand']('indent'),_0x7baeb3['enableCommand']('outdent')),_0x2d3a04['plugins']['has']('IndentBlock')){for(const _0x2cdac9 of['indentBlock','outdentBlock'])_0x7baeb3['enableDefaultAttributesIntegration'](_0x2cdac9);}const _0x2fd960=_0x2d3a04['locale'];_0x7baeb3['registerBlockAttribute']('blockIndent'),_0x7baeb3['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2fd960,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5807a0=this['editor'],_0x583f11=_0x5807a0['locale'],_0x4ae6d6=_0x5807a0['plugins']['get']('TrackChangesEditing');_0x4ae6d6['descriptionFactory']['registerDescriptionCallback'](_0x4ef9f9=>{if('formatBlock'!=_0x4ef9f9['type'])return;const {data:_0x23541b}=_0x4ef9f9;if(!_0x23541b)return;if('indentBlock'!=_0x23541b['commandName']&&'outdentBlock'!=_0x23541b['commandName'])return;const _0x9dff66=_0x4ef9f9['getItems']()[0x0],_0x2a7b35=_0x4ae6d6['descriptionFactory']['getItemLabel'](_0x9dff66);return'indentBlock'==_0x23541b['commandName']?{'type':'format','content':o(_0x583f11,'*Indent:*\x20%0',_0x2a7b35)}:'outdentBlock'==_0x23541b['commandName']?{'type':'format','content':o(_0x583f11,'*Outdent:*\x20%0',_0x2a7b35)}:void 0x0;});}}class ft extends _0x2bd390{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x2bd390{['afterInit'](){const _0x4f61cd=this['editor'];if(!_0x4f61cd['plugins']['has']('LinkEditing'))return;const _0xc6ce23=_0x4f61cd['plugins']['get']('TrackChangesEditing'),_0x1e70af=_0x4f61cd['commands']['get']('link');_0xc6ce23['enableDefaultAttributesIntegration']('link'),_0xc6ce23['enableDefaultAttributesIntegration']('unlink'),_0xc6ce23['registerInlineAttribute']('linkHref');for(const _0x5cd96b of _0x1e70af['manualDecorators'])_0xc6ce23['registerInlineAttribute'](_0x5cd96b['id']),_0xc6ce23['descriptionFactory']['registerAttributeLabel'](_0x5cd96b['id'],'link\x20('+_0x5cd96b['label']['toLowerCase']()+')');_0xc6ce23['descriptionFactory']['registerDescriptionCallback'](_0x1bd8af=>{if('attribute'!=_0x1bd8af['type'])return;const {data:_0x5ccd1c}=_0x1bd8af;if(!_0x5ccd1c||'linkHref'!=_0x5ccd1c['key'])return;const _0x4385b8=_0x5ccd1c['newValue'],_0x1a241a=_0x4f61cd['locale'];return{'type':'format','content':null==_0x4385b8?o(_0x1a241a,'*Remove\x20link*'):o(_0x1a241a,'*Set\x20link:*\x20%0','\x22'+_0x4385b8+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1553ee=this['editor'],_0xbc99bc=_0x1553ee['locale'];_0x1553ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x227790=>{if('formatInline'!=_0x227790['type'])return;const {data:_0x415201}=_0x227790;if(_0x415201){if('link'==_0x415201['commandName']){const _0x31724b=_0x415201['commandParams'][0x0];return{'type':'format','content':o(_0xbc99bc,'*Set\x20link:*\x20%0','\x22'+_0x31724b+'\x22')};}return'unlink'==_0x415201['commandName']?{'type':'format','content':o(_0xbc99bc,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x2bd390{['afterInit'](){const _0x306b36=this['editor'],_0x5ce6c6=_0x306b36['locale'];if(!_0x306b36['plugins']['has']('LegacyListEditing'))return;const _0x54baa8=_0x306b36['plugins']['get']('TrackChangesEditing'),_0x224ebe=_0x306b36['plugins']['has']('LegacyTodoListEditing');function _0x438698(_0x55dd2f){return()=>{const _0x275c46=_0x306b36['model']['document']['selection'],_0x188c4e=_0x306b36['commands']['get'](_0x55dd2f);if(_0x188c4e['value'])return void _0x306b36['execute']('paragraph',{});const _0x5e8e28=_0x55dd2f['slice'](0x0,-0x4),_0x39afdd=function(_0x3e6e0f,_0x4575b5,_0x557956){let _0x552b4a=Array['from'](_0x3e6e0f)['filter'](_0x3d8706=>function(_0x12c3c6,_0x306adc){return _0x306adc['checkChild'](_0x12c3c6['parent'],'listItem')&&!_0x306adc['isObject'](_0x12c3c6);}(_0x3d8706,_0x557956));_0x552b4a=_0x552b4a['filter'](_0x2d2ba7=>!_0x2d2ba7['is']('element','listItem')||_0x2d2ba7['getAttribute']('listType')!=_0x4575b5);const _0x10ac2d=new Set();for(const _0x504f9a of _0x552b4a)_0x504f9a['is']('element','listItem')?_0x10ac2d['add'](Le(_0x504f9a)):_0x10ac2d['add'](_0x504f9a);return Array['from'](_0x10ac2d);}(_0x275c46['getSelectedBlocks'](),_0x5e8e28,_0x306b36['model']['schema']);_0x306b36['model']['change'](()=>{for(const _0x56950f of _0x39afdd)_0x54baa8['markBlockFormat'](_0x56950f,{'commandName':_0x55dd2f,'commandParams':[{'forceValue':!_0x188c4e['value']}],'formatGroupId':'blockName'},Ee(_0x56950f));});};}function _0x3c1064(_0x1cd742){return()=>{const _0x4162c9=function(_0x12aa46){let _0x51430b=Array['from'](_0x12aa46);const _0x30fc5a=_0x51430b['findIndex'](_0x1c8dfd=>'listItem'!=_0x1c8dfd['name']);return _0x30fc5a>-0x1&&(_0x51430b=_0x51430b['slice'](0x0,_0x30fc5a)),_0x51430b;}(_0x306b36['model']['document']['selection']['getSelectedBlocks']()),_0x39cbba=_0x306b36['model']['createRange'](_0x306b36['model']['createPositionAt'](_0x4162c9[0x0],'before'),_0x306b36['model']['createPositionAt'](_0x4162c9[_0x4162c9['length']-0x1],'end'));_0x306b36['model']['change'](()=>{_0x54baa8['markBlockFormat'](_0x39cbba,{'commandName':_0x1cd742,'commandParams':[],'formatGroupId':'listIndent'},function(_0x48a08d){const _0x4b7f2a=new Set();for(const _0x4f82d1 of _0x48a08d){let _0x4f0361=_0x4f82d1['nextSibling'];for(;_0x4f0361&&_0x4f0361['getAttribute']('listIndent')>_0x4f82d1['getAttribute']('listIndent');)_0x4b7f2a['add'](_0x4f0361),_0x4f0361=_0x4f0361['nextSibling'];}return Array['from'](_0x4b7f2a);}(_0x4162c9));});};}_0x54baa8['enableCommand']('numberedList',_0x438698('numberedList')),_0x54baa8['enableCommand']('bulletedList',_0x438698('bulletedList')),_0x224ebe&&_0x54baa8['enableCommand']('todoList',_0x438698('todoList')),_0x54baa8['enableCommand']('indentList',_0x3c1064('indentList')),_0x54baa8['enableCommand']('outdentList',_0x3c1064('outdentList')),_0x224ebe&&_0x54baa8['enableCommand']('checkTodoList',()=>{const _0x241515=_0x306b36['commands']['get']('checkTodoList'),_0x51f556=Array['from'](_0x241515['_selectedElements']);_0x51f556['filter'](_0x1d9894=>_0x1d9894['getAttribute']('todoListChecked')!=_0x241515['value']),_0x306b36['model']['change'](()=>{for(const _0xf0ef6b of _0x51f556)_0x54baa8['markBlockFormat'](_0xf0ef6b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x241515['value']}]});});}),_0x54baa8['descriptionFactory']['registerElementLabel']('listItem',_0x15c558=>o(_0x5ce6c6,'ELEMENT_LIST_ITEM',_0x15c558)),_0x54baa8['descriptionFactory']['registerDescriptionCallback'](_0x2e76d3=>{if('formatBlock'!=_0x2e76d3['type']&&'formatInline'!=_0x2e76d3['type'])return;const {data:_0x47eef8}=_0x2e76d3;if(_0x47eef8){if('numberedList'==_0x47eef8['commandName']||'bulletedList'==_0x47eef8['commandName']||'todoList'==_0x47eef8['commandName'])switch(_0x47eef8['commandName']['replace']('List','')){case'bulleted':return _0x5f2d1c(o(_0x5ce6c6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5f2d1c(o(_0x5ce6c6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5f2d1c(o(_0x5ce6c6,'ELEMENT_TODO_LIST'));}if('indentList'==_0x47eef8['commandName'])return{'type':'format','content':o(_0x5ce6c6,'*Indent:*\x20%0',o(_0x5ce6c6,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x47eef8['commandName'])return{'type':'format','content':o(_0x5ce6c6,'*Outdent:*\x20%0',o(_0x5ce6c6,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x47eef8['commandName'])return _0x47eef8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5ce6c6,'*Check\x20item*')}:{'type':'format','content':o(_0x5ce6c6,'*Uncheck\x20item*')};}function _0x5f2d1c(_0x48294b){return{'type':'format','content':o(_0x5ce6c6,'*Change\x20to:*\x20%0',_0x48294b)};}});}}function Le(_0x1f2052){const _0x587770=_0x1f2052['getAttribute']('listIndent');if(0x0==_0x587770)return _0x1f2052;let _0x60e4a1=_0x1f2052;for(;_0x1f2052['previousSibling']&&_0x1f2052['previousSibling']['is']('element','listItem');){const _0x5f33fd=_0x1f2052['previousSibling']['getAttribute']('listIndent');if(_0x5f33fd==_0x587770)_0x60e4a1=_0x1f2052['previousSibling'];else{if(_0x5f33fd<_0x587770)break;}_0x1f2052=_0x1f2052['previousSibling'];}return _0x60e4a1;}function Ee(_0xae1b82){const _0x6756ac=[];if(_0xae1b82['is']('element','listItem')&&_0xae1b82['getAttribute']('listIndent')>0x0){let _0x408f76=_0xae1b82['nextSibling'];for(;_0x408f76&&'listItem'==_0x408f76['name']&&_0x408f76['getAttribute']('listIndent')==_0xae1b82['getAttribute']('listIndent');)_0x6756ac['push'](_0x408f76),_0x408f76=_0x408f76['nextSibling'];}return _0x6756ac;}class Q extends _0x2bd390{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3e3413=this['editor']['config']['get']('list.properties'),_0x4a8704=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e3413['styles']&&_0x4a8704['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3e3413['reversed']&&_0x4a8704['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3e3413['startIndex']&&_0x4a8704['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4a8704['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3a83db,_0x453103={}){const _0x16948a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x374b66=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x16948a['markMultiRangeBlockFormat'](_0x374b66,{'commandName':'listStyle','commandParams':[{'type':_0x453103['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x455c60,_0x1d9766={}){const _0x2dbedb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x6dd0b5=this['_getSuggestionBlocks'](_0x4e2097=>_0x4e2097['is']('element','listItem')&&'numbered'===_0x4e2097['getAttribute']('listType'));if(_0x6dd0b5['length']<0x1)return;const _0x553205=_0x6dd0b5['map'](_0x4e82bd=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4e82bd,'before'),this['editor']['model']['createPositionAt'](_0x4e82bd,0x0)));this['editor']['model']['change'](()=>{_0x2dbedb['markMultiRangeBlockFormat'](_0x553205,{'commandName':'listReversed','commandParams':[{'reversed':_0x1d9766['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xc19239,_0x147046={}){const _0x21d268=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5cbf11=this['_getSuggestionBlocks'](_0x268954=>_0x268954['is']('element','listItem')&&'numbered'===_0x268954['getAttribute']('listType'));if(_0x5cbf11['length']<0x1)return;const _0x3d4b3d=_0x5cbf11['map'](_0x5b4584=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5b4584,'before'),this['editor']['model']['createPositionAt'](_0x5b4584,0x0)));this['editor']['model']['change'](()=>{_0x21d268['markMultiRangeBlockFormat'](_0x3d4b3d,{'commandName':'listStart','commandParams':[{'startIndex':_0x147046['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x235468){if('formatBlock'!=_0x235468['type']&&'formatInline'!=_0x235468['type'])return;const _0x1e907d=this['editor']['locale'],{data:_0x28863c}=_0x235468;if(!_0x28863c)return;let _0x40da3c,_0x15578e;switch(_0x28863c['commandName']){case'listStyle':_0x40da3c='*Change\x20to:*\x20%0',_0x15578e={'type':'format','content':o(_0x1e907d,_0x40da3c,o(_0x1e907d,this['_getTranslationKeyForListStyle'](_0x28863c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x40da3c=_0x28863c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x15578e={'type':'format','content':o(_0x1e907d,_0x40da3c)};break;case'listStart':_0x40da3c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x15578e={'type':'format','content':o(_0x1e907d,_0x40da3c,_0x28863c['commandParams'][0x0]['startIndex'])};}return _0x15578e;}['_getSuggestionBlocksForListStyle'](){const _0x199a6a=this['editor']['plugins']['get']('LegacyListUtils');let _0x25ae0b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x25ae0b[0x0]?.['is']('element','listItem')&&_0x25ae0b['unshift'](..._0x199a6a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x25ae0b[_0x25ae0b['length']-0x1]?.['is']('element','listItem')&&_0x25ae0b['push'](..._0x199a6a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x25ae0b=[...new Set(_0x25ae0b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x25ae0b=_0x25ae0b['filter'](_0x6052c0=>_0x6052c0['is']('element','listItem'))),_0x25ae0b;}['_getSuggestionBlocks'](_0x393bb1){const _0x19987b=this['editor']['plugins']['get']('LegacyListUtils');let _0x4ee143=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x393bb1)['map'](_0x46a0b4=>{const _0x2b72ca=this['editor']['model']['createPositionAt'](_0x46a0b4,0x0);return[..._0x19987b['getSiblingNodes'](_0x2b72ca,'backward'),..._0x19987b['getSiblingNodes'](_0x2b72ca,'forward')];})['flat']();return _0x4ee143=[...new Set(_0x4ee143)],_0x4ee143;}['_getTranslationKeyForListStyle'](_0x513966){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x513966)||'default')['toUpperCase']()+'_LIST_'+_0x513966['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2bd390{['afterInit'](){const _0x22f5ea=this['editor'];if(!_0x22f5ea['plugins']['has']('MediaEmbedEditing'))return;const _0x154430=_0x22f5ea['plugins']['get']('TrackChangesEditing'),_0x22fc1a=_0x22f5ea['locale'];_0x154430['enableCommand']('mediaEmbed'),_0x154430['descriptionFactory']['registerElementLabel']('media',_0x34b060=>o(_0x22fc1a,'ELEMENT_MEDIA',_0x34b060)),_0x22f5ea['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x389abf,{writer:_0x1ad3a6,options:_0xdb5254})=>{if(_0xdb5254['showSuggestionHighlights'])return _0x1ad3a6['createEmptyElement']('div');},'converterPriority':'high'}),_0x22f5ea['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1c0e16,_0x574e91,_0x20803e)=>{_0x20803e['options']['showSuggestionHighlights']&&_0x1c0e16['stop']();},{'priority':'high'});}}class mt extends _0x2bd390{['afterInit'](){const _0xb459e5=this['editor'];_0xb459e5['plugins']['has']('MentionEditing')&&_0xb459e5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x2bd390{['afterInit'](){const _0x5b3792=this['editor'];if(!_0x5b3792['plugins']['has']('MergeFieldsEditing'))return;const _0x75da9b=_0x5b3792['plugins']['get']('TrackChangesEditing'),_0x1268a8=_0x5b3792['locale'];_0x75da9b['enableCommand']('insertMergeField'),_0x75da9b['enableCommand']('insertMergeFieldBlock'),_0x75da9b['enableCommand']('insertMergeFieldImage'),_0x75da9b['descriptionFactory']['registerElementLabel']('mergeField',_0x2cff02=>o(_0x1268a8,'ELEMENT_MERGE_FIELD',_0x2cff02)),_0x75da9b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x49dc9d=>o(_0x1268a8,'ELEMENT_MERGE_FIELD',_0x49dc9d)),_0x75da9b['descriptionFactory']['registerDescriptionCallback'](_0x2f6853=>{if('insertion'!=_0x2f6853['type']&&'deletion'!=_0x2f6853['type'])return;const _0x336f47=_0x2f6853['getContainedElement']();if(null==_0x336f47)return;const _0xa76569=_0x5b3792['plugins']['get']('MergeFieldsEditing');let _0x392de3;switch(_0xa76569['getMergeFieldType'](_0x336f47)){case null:return;case'image':{const _0x202566=_0xa76569['unwrapAffixes'](_0x336f47['getAttribute']('src'));_0x392de3=_0xa76569['getLabel'](_0x202566)||_0x202566;break;}default:{const _0xac9b2d=_0x336f47['getAttribute']('id');_0x392de3=_0xa76569['getLabel'](_0xac9b2d)||_0xac9b2d;break;}}return'insertion'==_0x2f6853['type']?{'type':'insertion','content':o(_0x1268a8,'*Insert:*\x20%0','\x22'+_0x392de3+'\x22\x20'+o(_0x1268a8,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1268a8,'*Remove:*\x20%0','\x22'+_0x392de3+'\x22\x20'+o(_0x1268a8,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x2bd390{['afterInit'](){const _0x31ae7c=this['editor'],_0x5b6d7b=_0x31ae7c['plugins']['get']('TrackChangesEditing');_0x31ae7c['plugins']['has']('MultiLevelList')&&(_0x5b6d7b['enableDefaultAttributesIntegration']('multiLevelList'),_0x5b6d7b['registerBlockAttribute']('listMarkerStyle'),_0x5b6d7b['descriptionFactory']['registerDescriptionCallback'](_0x3d11ed=>this['handleDescriptions'](_0x3d11ed)));}['handleDescriptions'](_0x20e229){const _0x56d628=this['editor']['locale'],{data:_0x5062d7}=_0x20e229,_0x524765={'type':'format','content':''};if(_0x5062d7&&'listMarkerStyle'==_0x5062d7['key']){if(!_0x5062d7['oldValue'])return{'type':'format','content':o(_0x56d628,'*Set\x20format:*\x20%0',o(_0x56d628,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5062d7['newValue']+')'};if(!_0x5062d7['newValue']){let _0xac1dfd=_0x20e229['head'];for(;_0xac1dfd;){if(_0xac1dfd['data']&&'listType'==_0xac1dfd['data']['key']&&_0xac1dfd['data']['newValue'])return _0x524765;_0xac1dfd=_0xac1dfd['next'];}return{'type':'format','content':o(_0x56d628,'*Remove\x20format:*\x20%0',o(_0x56d628,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5062d7['oldValue']+')'};}}}}class kt extends _0x2bd390{['afterInit'](){const _0x512154=this['editor'];if(!_0x512154['plugins']['has']('PageBreakEditing'))return;_0x512154['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2aff37=_0x512154['plugins']['get']('TrackChangesEditing'),_0x10c562=_0x512154['locale'];_0x2aff37['descriptionFactory']['registerElementLabel']('pageBreak',_0x1d63f8=>o(_0x10c562,'ELEMENT_PAGE_BREAK',_0x1d63f8));}}class bt extends _0x2bd390{['afterInit'](){const _0x59027c=this['editor'];if(!_0x59027c['plugins']['has']('Paragraph'))return;const _0xa5ddf5=_0x59027c['locale'],_0x125b4d=_0x59027c['plugins']['get']('TrackChangesEditing');_0x125b4d['descriptionFactory']['registerElementLabel']('paragraph',_0x4066a7=>o(_0xa5ddf5,'ELEMENT_PARAGRAPH',_0x4066a7)),_0x125b4d['enableDefaultAttributesIntegration']('paragraph'),_0x125b4d['enableCommand']('insertParagraph'),_0x59027c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x59027c),{'priority':'highest'}),_0x59027c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x55338f,_0x3d9460,_0x8fc34b)=>{_0x8fc34b['options']['showSuggestionHighlights']&&nr(_0x59027c,{'showActiveMarker':!0x1})(_0x55338f,_0x3d9460,_0x8fc34b);},{'priority':'highest'});const _0x75a627=_0x125b4d['descriptionFactory'];_0x75a627['registerDescriptionCallback'](_0x579f8d=>{if('insertion'!==_0x579f8d['type'])return;const {start:_0x1f1bdf,end:_0x5c4c38}=_0x579f8d['getFirstRange']();if(!_0x1f1bdf['isTouching'](_0x5c4c38)||!_0x1f1bdf['nodeAfter'])return;const _0x2d6187=_0x59027c['model']['schema'],_0x405347=_0x1f1bdf['nodeAfter'];return _0x2d6187['isBlock'](_0x405347)&&!_0x2d6187['isLimit'](_0x405347)&&_0x2d6187['checkChild'](_0x405347,'$text')?{'type':'insertion','content':o(_0xa5ddf5,'*Insert:*\x20%0',_0x75a627['getItemLabel'](_0x405347,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cf29e=this['editor'],_0x5cbf9e=_0x3cf29e['locale'];_0x3cf29e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x597ac3=>{if('formatBlock'!=_0x597ac3['type'])return;const {data:_0x3a26d6}=_0x597ac3;return _0x3a26d6&&'paragraph'==_0x3a26d6['commandName']?{'type':'format','content':o(_0x5cbf9e,'*Change\x20to:*\x20%0',o(_0x5cbf9e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3d3d66,{showActiveMarker:_0x4f4916=!0x0}={}){return(_0x41ac86,_0x27cdb3,_0xbacbc0)=>{const _0x184d23=_0x3d3d66['plugins']['get']('TrackChangesEditing'),_0x4ce77f=_0x27cdb3['markerRange']['start'],_0x1a1996=_0x27cdb3['markerRange']['end'],_0x2a564a=_0x3d3d66['model']['schema'];if(!_0x4ce77f['isTouching'](_0x1a1996)||!_0x4ce77f['nodeAfter'])return;const _0x3ec8b4=_0x4ce77f['nodeAfter'];if(_0x2a564a['isBlock'](_0x3ec8b4)&&!_0x2a564a['isLimit'](_0x3ec8b4)&&_0x2a564a['checkChild'](_0x3ec8b4,'$text')){if(!_0xbacbc0['consumable']['consume'](_0x27cdb3['markerRange'],_0x41ac86['name']))return;const {authorId:_0x3663e6}=_0x184d23['_splitMarkerName'](_0x27cdb3['markerName']),_0x358409=_0xbacbc0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3663e6}),_0x4100a4=_0xbacbc0['mapper']['toViewPosition'](_0x1a1996);_0x4f4916&&_0x184d23['activeMarkers']['includes'](_0x27cdb3['markerName'])&&_0xbacbc0['writer']['addClass']('ck-suggestion-marker--active',_0x358409),_0xbacbc0['writer']['insert'](_0x4100a4,_0x358409),_0xbacbc0['mapper']['bindElementToMarker'](_0x358409,_0x27cdb3['markerName']);}};}class yt extends _0x2bd390{['afterInit'](){const _0x177f1f=this['editor'];if(!_0x177f1f['plugins']['has']('RemoveFormatEditing'))return;_0x177f1f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d2fc6=this['editor'];_0x2d2fc6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x318008=>{if('formatBlock'!=_0x318008['type']&&'formatInline'!=_0x318008['type'])return;const {data:_0x523b28}=_0x318008;return _0x523b28&&'removeFormat'==_0x523b28['commandName']?{'type':'format','content':o(_0x2d2fc6['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x2bd390{['afterInit'](){const _0xb3be67=this['editor'];if(!_0xb3be67['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2e404c=_0xb3be67['plugins']['get']('TrackChangesEditing');_0x2e404c['enableCommand']('goToPreviousRestrictedEditingException'),_0x2e404c['enableCommand']('goToNextRestrictedEditingException');const _0x90548e=_0xb3be67['plugins']['get']('RestrictedEditingModeEditing');_0x90548e['enableCommand']('trackChanges'),_0x90548e['enableCommand']('acceptSuggestion'),_0x90548e['enableCommand']('discardSuggestion'),_0x90548e['enableCommand']('acceptAllSuggestions'),_0x90548e['enableCommand']('discardAllSuggestions'),_0x90548e['enableCommand']('acceptSelectedSuggestions'),_0x90548e['enableCommand']('discardSelectedSuggestions');}}class St extends _0x2bd390{static get['requires'](){return[_0xf93acd];}['init'](){const _0x4c7f6d=this['editor'],_0x4f6422=_0x4c7f6d['plugins']['get']('TrackChangesEditing');_0x4f6422['enableCommand']('shiftEnter'),_0x4c7f6d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4c7f6d),{'priority':'high'}),_0x4c7f6d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4c7f6d),{'priority':'high'}),_0x4c7f6d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x478525,_0x435509,_0x49b65d)=>{_0x49b65d['options']['showSuggestionHighlights']&&je(_0x4c7f6d,{'showActiveMarker':!0x1})(_0x478525,_0x435509,_0x49b65d);}),_0x4f6422['descriptionFactory']['registerElementLabel']('softBreak',_0x4077a0=>o(_0x4c7f6d['locale'],'ELEMENT_LINE_BREAK',_0x4077a0));}}function je(_0x2b115e,{showActiveMarker:_0x212e77=!0x0}={}){return(_0x5cc0c0,_0x39476f,_0x38ddfd)=>{const _0x28a81e=_0x2b115e['plugins']['get']('TrackChangesEditing');if(!_0x38ddfd['consumable']['test'](_0x39476f['markerRange'],_0x5cc0c0['name']))return;const _0x5a2bb1=_0x2b115e['model'];for(const _0x14b7e1 of _0x39476f['markerRange']['getItems']()){if(!_0x14b7e1['is']('element','softBreak'))continue;const _0x52836e='deletion'==_0x39476f['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x154dd7}=_0x28a81e['_splitMarkerName'](_0x39476f['markerName']),_0x4375de=_0x38ddfd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x52836e,'data-author-id':_0x154dd7}),_0x2970cf=_0x38ddfd['mapper']['toViewPosition'](_0x5a2bb1['createPositionBefore'](_0x14b7e1));_0x212e77&&_0x28a81e['activeMarkers']['includes'](_0x39476f['markerName'])&&_0x38ddfd['writer']['addClass']('ck-suggestion-marker--active',_0x4375de),_0x38ddfd['writer']['insert'](_0x2970cf,_0x4375de),_0x38ddfd['mapper']['bindElementToMarker'](_0x4375de,_0x39476f['markerName']);}};}class At extends _0x2bd390{['afterInit'](){const _0x4e559c=this['editor'],_0x18600b=_0x4e559c['model'],_0x3e00f4=_0x4e559c['locale'];if(!_0x4e559c['plugins']['has']('StandardEditingModeEditing'))return;const _0x54c6f2=_0x4e559c['plugins']['get']('TrackChangesEditing'),_0x26361b='restrictedEditingException',_0x5e94ed=_0x4e559c['commands']['get'](_0x26361b);_0x54c6f2['enableCommand'](_0x26361b,(_0x2e989a,_0x3ac0d8={})=>{const _0x51f146=_0x18600b['document']['selection'];if(_0x51f146['isCollapsed'])return void _0x2e989a(_0x3ac0d8);const _0x18027f=void 0x0!==_0x3ac0d8['forceValue']?_0x3ac0d8['forceValue']:!_0x5e94ed['value'];_0x18600b['change'](()=>{const _0x4d6aef=Array['from'](_0x51f146['getRanges']());for(const _0x1a5cd9 of _0x4d6aef){const _0x4d7fc=_0x18027f?[_0x1a5cd9]:io(_0x26361b,_0x1a5cd9,_0x18600b);for(const _0x4c6c04 of _0x4d7fc)_0x54c6f2['markInlineFormat'](_0x4c6c04,{'commandName':_0x26361b,'commandParams':[{'forceValue':_0x18027f}]});}});}),_0x54c6f2['descriptionFactory']['registerDescriptionCallback'](_0x52be07=>{if('formatBlock'!=_0x52be07['type']&&'formatInline'!=_0x52be07['type'])return;const {data:_0x1a5632}=_0x52be07;return _0x1a5632&&_0x1a5632['commandName']==_0x26361b?_0x1a5632['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e00f4,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3e00f4,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x2bd390{['afterInit'](){const _0x27de2c=this['editor'];if(!_0x27de2c['plugins']['has']('Style')||!_0x27de2c['plugins']['has']('DataSchema'))return;const _0x504b99=_0x27de2c['plugins']['get']('TrackChangesEditing'),_0xf6410d=_0x27de2c['locale'],_0x424866=_0x27de2c['config']['get']('style')||{},_0x38000a=_0x27de2c['plugins']['get']('GeneralHtmlSupport'),_0x780bfa=_0x27de2c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x27de2c['plugins']['get']('DataSchema'),_0x424866['definitions']);_0x504b99['enableDefaultAttributesIntegration']('style');const _0x24e9c4=new Set();for(const _0x4d590b of _0x780bfa['block']){const _0x1fe025=_0x38000a['getGhsAttributeNameForElement'](_0x4d590b['element']);_0x24e9c4['add'](_0x1fe025);}const _0x491e43=new Set();for(const _0x102352 of _0x780bfa['inline']){const _0x411951=_0x38000a['getGhsAttributeNameForElement'](_0x102352['element']);_0x491e43['add'](_0x411951);for(const _0x1b7192 of _0x102352['ghsAttributes'])_0x491e43['add'](_0x1b7192);}for(const _0x2055a9 of _0x24e9c4)_0x504b99['registerBlockAttribute'](_0x2055a9),_0x504b99['descriptionFactory']['registerAttributeLabel'](_0x2055a9,o(_0xf6410d,'FORMAT_STYLE'));for(const _0x5523a8 of _0x491e43)_0x504b99['registerInlineAttribute'](_0x5523a8),_0x504b99['descriptionFactory']['registerAttributeLabel'](_0x5523a8,o(_0xf6410d,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x306497=this['editor'],_0x113347=_0x306497['locale'];_0x306497['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f206f=>{if('formatBlock'!=_0x5f206f['type']&&'formatInline'!=_0x5f206f['type'])return;const {data:_0x1eda38}=_0x5f206f;return _0x1eda38&&'style'===_0x1eda38['commandName']?_0x1eda38['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x113347,'*Set\x20format:*\x20%0',_0x1eda38['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x113347,'*Remove\x20format:*\x20%0',_0x1eda38['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x2bd390{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x26dc2d){super(_0x26dc2d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4db63d=this['editor'],_0x5c75eb=_0x4db63d['model']['document']['selection'];if(!_0x4db63d['plugins']['has']('TableEditing'))return;const _0x387aa2=_0x4db63d['locale'],_0x1a737b=_0x4db63d['plugins']['get']('TrackChangesEditing'),_0xd912ba=_0x4db63d['plugins']['get']('TableUtils');_0x1a737b['descriptionFactory']['registerElementLabel']('table',_0x59b065=>o(_0x387aa2,'ELEMENT_TABLE',_0x59b065)),this['_setupColumnsRowsFixing'](),_0x1a737b['enableCommand']('insertTable'),_0x1a737b['enableCommand']('selectTableRow'),_0x1a737b['enableCommand']('selectTableColumn');for(const _0x453e04 of['insertTableRowAbove','insertTableRowBelow']){const _0x533dd8=_0x4db63d['commands']['get'](_0x453e04);_0x1a737b['enableCommand'](_0x453e04,_0x3c49e5=>{_0x4db63d['model']['change'](_0x23ae79=>{_0x3c49e5();const _0x18e508='above'===_0x533dd8['order'],_0x5c4d6b=_0xd912ba['getSelectionAffectedTableCells'](_0x5c75eb),_0xbe1105=_0xd912ba['getRowIndexes'](_0x5c4d6b),_0x2297fc=_0x18e508?_0xbe1105['first']-0x1:_0xbe1105['last']+0x1,_0x31c1b5=_0x5c4d6b[0x0]['findAncestor']('table'),_0x5f26a3=_0xd912ba['createTableWalker'](_0x31c1b5,{'startRow':_0x2297fc,'endRow':_0x2297fc}),_0x455da5=Array['from'](_0x5f26a3)['map'](_0x4bfcb1=>_0x23ae79['createRangeOn'](_0x4bfcb1['cell']));_0x1a737b['markMultiRangeInsertion'](_0x455da5,'tableRow');});});}for(const _0x1b56a9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x8e6211=_0x4db63d['commands']['get'](_0x1b56a9);_0x1a737b['enableCommand'](_0x1b56a9,_0x3227af=>{_0x4db63d['model']['change'](_0x108b1b=>{_0x3227af();const _0x69a6ab='left'===_0x8e6211['order'],_0x10fb42=_0xd912ba['getSelectionAffectedTableCells'](_0x5c75eb),_0x54e905=_0xd912ba['getColumnIndexes'](_0x10fb42),_0x387a61=_0x69a6ab?_0x54e905['first']-0x1:_0x54e905['last']+0x1,_0x21efa7=_0x10fb42[0x0]['findAncestor']('table'),_0x37392c=_0xd912ba['createTableWalker'](_0x21efa7,{'startRow':0x0,'column':_0x387a61,'includeAllSlots':!0x1}),_0x28ad86=Array['from'](_0x37392c)['map'](_0x2fdb66=>_0x108b1b['createRangeOn'](_0x2fdb66['cell']));_0x1a737b['markMultiRangeInsertion'](_0x28ad86,'tableColumn');});});}for(const _0x3452db of['removeTableRow','removeTableColumn']){const _0x2f78ae=_0x3452db['substr'](0xb),_0x46a0cb=_0x2f78ae['toLowerCase'](),_0xa4b0cb=_0x46a0cb['substr'](0x0,0x3)+'span',_0x1a06c5='table'+_0x2f78ae,_0x5f2071='min'+_0x2f78ae,_0x1029f1='max'+_0x2f78ae;_0x1a737b['enableCommand'](_0x3452db,()=>{_0x4db63d['model']['change'](_0x178a50=>{const _0xebe0ff=_0xd912ba['getSelectionAffectedTableCells'](_0x5c75eb),_0x43b455=_0xebe0ff[0x0]['findAncestor']('table');let _0x5a7513;if('removeTableRow'==_0x3452db){const _0x354639=_0xd912ba['getRowIndexes'](_0xebe0ff);_0x5a7513={'startRow':_0x354639['first'],'endRow':_0x354639['last'],'includeAllSlots':!0x0};}else{const _0x41fe8f=_0xd912ba['getColumnIndexes'](_0xebe0ff);_0x5a7513={'startColumn':_0x41fe8f['first'],'endColumn':_0x41fe8f['last'],'includeAllSlots':!0x0};}const _0x37987e=_0xd912ba['createTableWalker'](_0x43b455,_0x5a7513),_0x33a037=Array['from'](_0x37987e)['map'](({cell:_0x3dbd71})=>_0x3dbd71),_0x13dea6=Ne(_0x33a037['filter'](_0x4320ef=>_0x4320ef['hasAttribute'](_0xa4b0cb))),_0x2ebebd=Ne(_0x33a037['filter'](_0x410d23=>!_0x410d23['hasAttribute'](_0xa4b0cb)))['map'](_0x2380f8=>_0x178a50['createRangeOn'](_0x2380f8)),_0xd80076=_0x1a737b['markMultiRangeDeletion'](_0x2ebebd,_0x1a06c5);if(_0xd80076&&('tableRow'==_0xd80076['subType']||'tableColumn'==_0xd80076['subType'])){const _0x6cd022=this['_getSuggestionCoords'](_0xd80076);for(const _0x77c8d0 of _0x13dea6){const _0x218dc5=_0x178a50['createRangeOn'](_0x77c8d0),_0x3046ce=_0xd912ba['getCellLocation'](_0x77c8d0),_0x249f52=_0x77c8d0['getAttribute'](_0xa4b0cb)-0x1,_0x108a8c=_0x6cd022[_0x5f2071],_0x15d8d9=_0x6cd022[_0x1029f1];_0x108a8c<=_0x3046ce[_0x46a0cb]&&_0x3046ce[_0x46a0cb]+_0x249f52<=_0x15d8d9&&_0xd80076['addRange'](_0x218dc5);}}});});}function _0xe5ee49(_0x1a54cb){const _0x427f4d=Array['from'](_0x5c75eb['getRanges']())['map'](_0x42d0f4=>_0xfaa3eb['fromRange'](_0x42d0f4));_0x4db63d['model']['change'](_0x181735=>{const _0x144fb2=_0x181735['batch'];_0x1a54cb=_0x1a54cb['filter'](_0x5cea33=>'$graveyard'!=_0x5cea33['root']['rootName']),_0x181735['setSelection'](_0x1a54cb),_0x4db63d['commands']['get']('removeTableRow')['refresh'](),_0x4db63d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4db63d['model']['enqueueChange'](()=>{_0x4db63d['model']['enqueueChange'](_0x144fb2,_0x235739=>{const _0x5e95fc=_0x427f4d['filter'](_0x3f5150=>'$graveyard'!=_0x3f5150['root']['rootName']);_0x5e95fc['length']>0x0&&_0x235739['setSelection'](_0x5e95fc);for(const _0x5ed772 of _0x427f4d)_0x5ed772['detach']();});});});}function _0x53a4bc(_0xd2781b){_0x4db63d['model']['change'](_0x5f1e75=>{const _0x2e47c3=Array['from'](_0x5c75eb['getRanges']())['map'](_0x22438c=>_0xfaa3eb['fromRange'](_0x22438c)),_0x1db293=[];for(const _0x19d76e of _0xd2781b)for(const _0x4118f5 of _0x19d76e['getItems']({'shallow':!0x0}))_0x1db293['push'](_0x4118f5);for(const _0x130119 of _0x1db293)'$graveyard'!=_0x130119['root']['rootName']&&(_0x5f1e75['setSelection'](_0x5f1e75['createPositionAt'](_0x130119,0x0)),_0x4db63d['commands']['get']('removeTableColumn')['refresh'](),_0x4db63d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3db673=_0x2e47c3['filter'](_0x4bdb2c=>'$graveyard'!=_0x4bdb2c['root']['rootName']);_0x3db673['length']>0x0&&_0x5f1e75['setSelection'](_0x3db673);for(const _0x25b664 of _0x2e47c3)_0x25b664['detach']();});}function _0x2669f2(_0x28047c,_0xd79f60){return _0xd79f60['every'](_0x1d0714=>_0x28047c['some'](_0x456f3b=>_0x456f3b['end']['isEqual'](_0x1d0714['start'])||_0x1d0714['end']['isEqual'](_0x456f3b['start'])));}function _0x385c8d(_0x20ae73,_0x312aba){return!_0x20ae73['some'](_0x4a7709=>_0x312aba['some'](_0x3173ee=>_0x4a7709['isIntersecting'](_0x3173ee)))&&_0x20ae73['some'](_0x47f28a=>_0x312aba['some'](_0x52e7ce=>_0x47f28a['end']['isTouching'](_0x52e7ce['start'])));}_0x4db63d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1e073e,_0x24969f,_0x351144)=>{if(!_0x351144['options']['showSuggestionHighlights'])return;const _0x24d5da=_0x24969f['item'];if(!_0x24d5da)return;const _0x1bcc94=_0x351144['mapper']['toViewElement'](_0x24d5da);function _0x2c2584(_0x181b71){return Array['isArray'](_0x181b71)?_0x181b71:[_0x181b71];}_0x1bcc94&&'tableCell'===_0x24d5da['name']&&_0xe45f10(_0x1bcc94,_0x351144['writer'],(_0x3c1a28,_0x4a3265,_0x412f5d)=>_0x412f5d['addClass'](_0x2c2584(_0x4a3265['classes']),_0x3c1a28),(_0x1beb75,_0xccb910,_0x27d077)=>_0x27d077['removeClass'](_0x2c2584(_0xccb910['classes']),_0x1beb75));},{'priority':'highest'}),_0x1a737b['descriptionFactory']['registerDescriptionCallback'](_0x563766=>{if('insertion'!=_0x563766['type']&&'deletion'!=_0x563766['type'])return;const _0x33f9fb=_0x563766['getContainedElement']();if(null!=_0x33f9fb&&_0x33f9fb['is']('element','table')){if('insertion'==_0x563766['type']){const _0x54339f=_0x563766['getItems']()['filter'](_0x41b285=>_0x41b285['is']('$textProxy'))['map'](_0x318e4e=>_0x318e4e['data']);if(_0x54339f['length'])return{'type':'insertion','content':o(_0x387aa2,'*Insert:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x54339f['join']('\x20')+'\x22'))};}if('deletion'==_0x563766['type']){const _0x283a1f=_0x563766['getItems']()['filter'](_0x5aabfd=>_0x5aabfd['is']('$textProxy'))['map'](_0x54708a=>_0x54708a['data']);if(_0x283a1f['length'])return{'type':'deletion','content':o(_0x387aa2,'*Remove:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x283a1f['join']('\x20')+'\x22'))};}}}),_0x1a737b['descriptionFactory']['registerDescriptionCallback'](_0xd8b2fe=>{if('tableRow'==_0xd8b2fe['subType']){const _0xdea9b1=_0xd8b2fe['getItems']()['filter'](_0x146e38=>_0x146e38['is']('$textProxy'))['map'](_0x2bf382=>_0x2bf382['data']),_0x43d746=this['_getSuggestionCoords'](_0xd8b2fe),_0x2b8600=_0x43d746['maxRow']-_0x43d746['minRow']+0x1;if('insertion'==_0xd8b2fe['type'])return _0xdea9b1['length']?{'type':'insertion','content':o(_0x387aa2,'*Insert:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2b8600,'\x22'+_0xdea9b1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x387aa2,'*Insert:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_ROW',_0x2b8600))};if('deletion'==_0xd8b2fe['type'])return _0xdea9b1['length']?{'type':'deletion','content':o(_0x387aa2,'*Remove:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2b8600,'\x22'+_0xdea9b1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x387aa2,'*Remove:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_ROW',_0x2b8600))};}if('tableColumn'==_0xd8b2fe['subType']){const _0x3064b5=_0xd8b2fe['getItems']()['filter'](_0x44dd5c=>_0x44dd5c['is']('$textProxy'))['map'](_0x45d2ca=>_0x45d2ca['data']),_0x197858=this['_getSuggestionCoords'](_0xd8b2fe),_0x20ee38=_0x197858['maxColumn']-_0x197858['minColumn']+0x1;if('insertion'==_0xd8b2fe['type'])return _0x3064b5['length']?{'type':'insertion','content':o(_0x387aa2,'*Insert:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x20ee38,'\x22'+_0x3064b5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x387aa2,'*Insert:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_COLUMN',_0x20ee38))};if('deletion'==_0xd8b2fe['type'])return _0x3064b5['length']?{'type':'deletion','content':o(_0x387aa2,'*Remove:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x20ee38,'\x22'+_0x3064b5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x387aa2,'*Remove:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_COLUMN',_0x20ee38))};}}),_0x1a737b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xe5ee49),_0x1a737b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xe5ee49),_0x1a737b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x53a4bc),_0x1a737b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x53a4bc),_0x1a737b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2669f2),_0x1a737b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2669f2),_0x1a737b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x385c8d),_0x1a737b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x385c8d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x28e41c=this['editor'],_0x55c71a=_0x28e41c['model']['document']['selection'];return(_0x425e31,_0x390047)=>{_0x28e41c['model']['change'](_0x555c4c=>{const {commandName:_0x1b62ac,commandParams:_0x1bec45}=_0x390047;let _0x50bbfb=_0x425e31[0x0]['end']['nodeBefore'];_0x1bec45&&_0x1bec45[0x0]&&!0x1===_0x1bec45[0x0]['forceValue']&&(_0x50bbfb=_0x425e31[0x0]['start']['nodeAfter']);const _0x10cf6c=_0x555c4c['createRangeIn'](_0x50bbfb);if('$graveyard'==_0x10cf6c['root']['rootName'])return;const _0x38f09f=Array['from'](_0x55c71a['getRanges']())['map'](_0x231ac2=>_0xfaa3eb['fromRange'](_0x231ac2));_0x555c4c['setSelection'](_0x10cf6c),_0x28e41c['commands']['get'](_0x1b62ac)['refresh'](),_0x1bec45['push']({'forceDefaultExecution':!0x0}),_0x28e41c['execute'](_0x1b62ac,..._0x1bec45);const _0x3dfedf=_0x38f09f['filter'](_0x192db6=>'$graveyard'!=_0x192db6['root']['rootName']);_0x3dfedf['length']>0x0&&_0x555c4c['setSelection'](_0x3dfedf);for(const _0x1d561a of _0x38f09f)_0x1d561a['detach']();});};}['_getCoordsForCells'](_0x152511){const _0x409df8=this['editor']['plugins']['get']('TableUtils');let _0x513627=Number['MAX_SAFE_INTEGER'],_0x3a4e7f=Number['MIN_SAFE_INTEGER'],_0x2c10b4=Number['MAX_SAFE_INTEGER'],_0x36fcd1=Number['MIN_SAFE_INTEGER'];for(const _0x53861e of _0x152511){if('$graveyard'==_0x53861e['root']['rootName'])continue;const {row:_0xedc5b2,column:_0x18c714}=_0x409df8['getCellLocation'](_0x53861e),_0x37b3c4=_0x53861e['hasAttribute']('rowspan')?_0x53861e['getAttribute']('rowspan')-0x1:0x0,_0x5d3b5a=_0x53861e['hasAttribute']('colspan')?_0x53861e['getAttribute']('colspan')-0x1:0x0;_0x513627=_0xedc5b2<_0x513627?_0xedc5b2:_0x513627,_0x3a4e7f=_0xedc5b2+_0x37b3c4>_0x3a4e7f?_0xedc5b2+_0x37b3c4:_0x3a4e7f,_0x2c10b4=_0x18c714<_0x2c10b4?_0x18c714:_0x2c10b4,_0x36fcd1=_0x18c714+_0x5d3b5a>_0x36fcd1?_0x18c714+_0x5d3b5a:_0x36fcd1;}return{'minRow':_0x513627,'maxRow':_0x3a4e7f,'minColumn':_0x2c10b4,'maxColumn':_0x36fcd1};}['_setupColumnsRowsFixing'](){const _0x3b41f5=this['editor'],_0x12c448=_0x3b41f5['plugins']['get']('TrackChangesEditing'),_0x4ed292=_0x3b41f5['plugins']['get']('TableUtils');_0x3b41f5['model']['document']['on']('change:data',()=>{const _0x30d9f3=Array['from'](_0x3b41f5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x563036,data:_0x5870c5}of _0x30d9f3){const {group:_0x35627e,id:_0xa7dfb,subType:_0x74b55e}=_0x12c448['_splitMarkerName'](_0x563036);if('suggestion'!=_0x35627e)continue;if(null!=_0x5870c5['oldRange'])continue;const _0x3ec720=_0x12c448['getSuggestion'](_0xa7dfb);this['_tablePostFixingSubtypes']['includes'](_0x74b55e)&&this['_tableSuggestions']['add'](_0x3ec720);}},{'priority':'low'});const _0x274102=(_0x40ebeb,_0x1f8bf6)=>{let _0x5a2d48=!0x1;const _0x53a76e=_0x1f8bf6['createRangeOn'](_0x40ebeb),_0x578928=_0x40ebeb['findAncestor']('table'),_0x102fce=_0x4ed292['getCellLocation'](_0x40ebeb);for(const _0x7cf864 of this['_tableSuggestions']){const _0x5a3ec1=_0x7cf864['subType'],_0x15aa12=_0x5a3ec1['startsWith']('tablePaste'),_0x202a92=_0x5a3ec1['substr'](_0x15aa12?0xa:0x5),_0x2333f1=_0x202a92['toLowerCase'](),_0xf82fe=_0x2333f1['substr'](0x0,0x3)+'span',_0x8b04ca='min'+_0x202a92,_0x5ad011='max'+_0x202a92;if(!_0x7cf864['isInContent'])continue;if(_0x578928!=_0x7cf864['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x7cf864['isIntersectingWithRange'](_0x53a76e))continue;const _0x56a733=_0x40ebeb['hasAttribute'](_0xf82fe)?_0x40ebeb['getAttribute'](_0xf82fe)-0x1:0x0,_0xa0473e=this['_getSuggestionCoords'](_0x7cf864),_0x120eba=_0xa0473e[_0x8b04ca],_0x3cb895=_0xa0473e[_0x5ad011];_0x120eba<=_0x102fce[_0x2333f1]&&_0x102fce[_0x2333f1]+_0x56a733<=_0x3cb895&&(_0x7cf864['addRange'](_0x53a76e),_0x5a2d48=!0x0);}return _0x5a2d48;};_0x3b41f5['model']['document']['registerPostFixer'](_0x23b9cd=>{let _0x88336d=!0x1;for(const _0x36bef1 of _0x3b41f5['model']['document']['differ']['getChanges']())if('insert'==_0x36bef1['type']){if('tableRow'==_0x36bef1['name']){for(const _0x22ec16 of _0x36bef1['position']['nodeAfter']['getChildren']())_0x88336d=_0x88336d||_0x274102(_0x22ec16,_0x23b9cd);}else'tableCell'==_0x36bef1['name']&&(_0x88336d=_0x88336d||_0x274102(_0x36bef1['position']['nodeAfter'],_0x23b9cd));}return _0x88336d;});}['_getSuggestionCoords'](_0x179677){return this['_getCoordsForCells'](_0x179677['getRanges']()['map'](_0x10ca93=>_0x10ca93['start']['nodeAfter']));}}function Ne(_0x207ee1){return Array['from'](new Set(_0x207ee1)['values']());}class _t extends _0x2bd390{static get['requires'](){return[vt];}['afterInit'](){const _0x175e6e=this['editor'],_0x1b6a46=_0x175e6e['model']['document']['selection'],_0x4ef5fd=_0x175e6e['locale'];if(!_0x175e6e['plugins']['has']('TableEditing'))return;const _0x2502a8=_0x175e6e['plugins']['get']('TrackChangesEditing'),_0x482795=_0x175e6e['plugins']['get']('TableUtils'),_0xaeab7b=_0x175e6e['plugins']['get'](vt);_0xaeab7b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2502a8['enableCommand']('mergeTableCells',()=>{const _0x5dac24=_0x482795['getSelectionAffectedTableCells'](_0x175e6e['model']['document']['selection']);_0x175e6e['model']['change'](()=>{_0x2502a8['markMultiRangeBlockFormat'](_0x5dac24,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x175e6e['commands']['get']('mergeTableCells')['on']('execute',(_0x1810b3,_0x8275ac)=>{_0x175e6e['commands']['get']('trackChanges')['value']&&(_0x8275ac['length']>0x0&&_0x8275ac[_0x8275ac['length']-0x1]&&_0x8275ac[_0x8275ac['length']-0x1]['forceDefaultExecution']||_0x2502a8['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1810b3['stop']());},{'priority':'highest'});for(const _0x461060 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x582073=_0x175e6e['commands']['get'](_0x461060);_0x2502a8['enableCommand'](_0x461060,()=>{const _0x96f249=_0x175e6e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x13c705=>_0x13c705['is']('element','tableCell')),_0xa1f9fe=_0x582073['value'];_0x175e6e['model']['change'](()=>{_0x2502a8['markMultiRangeBlockFormat']([_0x96f249,_0xa1f9fe],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x85ecff of['splitTableCellVertically','splitTableCellHorizontally']){const _0x530861=_0x175e6e['commands']['get'](_0x85ecff);_0x2502a8['enableCommand'](_0x85ecff,()=>{const _0x48ae2f=_0x482795['getSelectionAffectedTableCells'](_0x175e6e['model']['document']['selection'])[0x0],_0x270b74=_0x48ae2f['findAncestor']('table'),{column:_0x4d4f91,row:_0x20d2b0}=_0x482795['getCellLocation'](_0x48ae2f);let _0x5119a0=[];if('horizontally'==_0x530861['direction']){const _0x4b3988=_0x482795['createTableWalker'](_0x270b74,{'startRow':_0x20d2b0,'endRow':_0x20d2b0,'includeAllSlots':!0x0});_0x5119a0=Array['from'](_0x4b3988)['map'](_0x3f3d34=>_0x3f3d34['cell']);}else{const _0x47c9c4=_0x482795['createTableWalker'](_0x270b74,{'column':_0x4d4f91,'includeAllSlots':!0x0});_0x5119a0=Array['from'](_0x47c9c4)['map'](_0x10def4=>_0x10def4['cell']);}_0x175e6e['model']['change'](_0x3e8400=>{_0x2502a8['markBlockFormat'](_0x3e8400['createRangeOn'](_0x48ae2f),{'commandName':_0x85ecff,'commandParams':[]},_0x5119a0,_0x85ecff);});});}_0x2502a8['descriptionFactory']['registerDescriptionCallback'](_0x36eff5=>{if('formatBlock'!=_0x36eff5['type']&&'formatInline'!=_0x36eff5['type'])return;const {data:_0x8b8d04}=_0x36eff5;return _0x8b8d04&&'mergeTableCells'==_0x8b8d04['commandName']?{'type':'format','content':o(_0x4ef5fd,'*Merge\x20cells*')}:void 0x0;}),_0x2502a8['descriptionFactory']['registerDescriptionCallback'](_0xb4f4ce=>{if('formatBlock'!=_0xb4f4ce['type']&&'formatInline'!=_0xb4f4ce['type'])return;const {data:_0xec1bb4}=_0xb4f4ce;return _0xec1bb4?'splitTableCellVertically'==_0xec1bb4['commandName']?{'type':'format','content':o(_0x4ef5fd,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xec1bb4['commandName']?{'type':'format','content':o(_0x4ef5fd,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4f189a=_0xaeab7b['_acceptFormatSuggestionCallbackFactory']();for(const _0x5575ea of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2502a8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5575ea,'accept',_0x4f189a);for(const _0x3c966d of['splitTableCellVertically','splitTableCellHorizontally'])_0x2502a8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3c966d,'accept',_0x4f189a);_0x2502a8['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4aadbf=>{_0x175e6e['model']['change'](_0x1294c1=>{const _0x3cec2e=Array['from'](_0x1b6a46['getRanges']())['map'](_0x325727=>_0xfaa3eb['fromRange'](_0x325727));_0x1294c1['setSelection'](_0x4aadbf),_0x175e6e['commands']['get']('mergeTableCells')['refresh'](),_0x175e6e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x549930=_0x3cec2e['filter'](_0x547ade=>'$graveyard'!=_0x547ade['root']['rootName']);_0x549930['length']>0x0&&_0x1294c1['setSelection'](_0x549930);for(const _0x4ffc95 of _0x3cec2e)_0x4ffc95['detach']();});});for(const _0x238ebb of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4ae6ee=_0x175e6e['commands']['get'](_0x238ebb);_0x4ae6ee['on']('set:isEnabled',(_0x5f58d4,_0x1e6fab,_0x128ae6)=>{if(_0x128ae6){const _0x18e75b=_0x175e6e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4a727d=>_0x4a727d['is']('element','tableCell'));this['_areMergableCells'](_0x4ae6ee['value'],_0x18e75b)||(_0x5f58d4['return']=!0x1,_0x5f58d4['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3498a8=this['editor']['commands']['get']('mergeTableCells'),_0x319e1e=this['editor']['plugins']['get']('TableUtils');if(!_0x3498a8['isEnabled'])return!0x1;const _0x5a30d5=_0x319e1e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x61d3da of _0x5a30d5)for(const _0x25839d of _0x5a30d5)if(_0x61d3da!=_0x25839d&&!this['_areMergableCells'](_0x61d3da,_0x25839d))return!0x1;return!0x0;}['_areMergableCells'](_0x1850fe,_0x211cd3){const _0x4039d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26b5a8=this['editor']['model']['createRangeOn'](_0x1850fe),_0x3aa104=this['editor']['model']['createRangeOn'](_0x211cd3),_0x157186=new Set(),_0xdca85a=new Set();for(const _0x2edbe2 of _0x4039d8['getSuggestions']())if(('insertion'==_0x2edbe2['type']||'deletion'==_0x2edbe2['type']||'mergeTableCells'==_0x2edbe2['subType'])&&_0x2edbe2['isInContent']){for(const _0x219556 of _0x2edbe2['getRanges']())_0x219556['containsRange'](_0x26b5a8,!0x0)&&_0x157186['add'](_0x2edbe2['type']+':'+_0x2edbe2['author']['id']),_0x219556['containsRange'](_0x3aa104,!0x0)&&_0xdca85a['add'](_0x2edbe2['type']+':'+_0x2edbe2['author']['id']);}if(_0x157186['size']!=_0xdca85a['size'])return!0x1;for(const _0x5259d9 of _0x157186)if(!_0xdca85a['has'](_0x5259d9))return!0x1;return!0x0;}}class Ct extends _0x2bd390{static get['requires'](){return[vt];}['afterInit'](){const _0x2ea0a0=this['editor'];if(!_0x2ea0a0['plugins']['has']('TableEditing'))return;const _0x5d10bc=_0x2ea0a0['locale'],_0x1b8e73=_0x2ea0a0['plugins']['get']('TrackChangesEditing');_0x1b8e73['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1b8e73['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1b8e73['registerBlockAttribute']('headingRows'),_0x1b8e73['registerBlockAttribute']('headingColumns'),_0x1b8e73['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5d10bc,'FORMAT_HEADER_ROW')),_0x1b8e73['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5d10bc,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2063d7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x405e28=this['editor']['plugins']['get']('TableUtils'),_0x3256e7=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x488b56({showActiveMarker:_0x563e71=!0x0,setDataAttribute:_0x17f51a=!0x0}={}){return(_0x24eb2f,_0x1b8a5b,_0x48948f)=>{const {type:_0x57997f,id:_0x52bc17}=_0x2063d7['_splitMarkerName'](_0x1b8a5b['markerName']),_0x16b899=_0x2063d7['getSuggestion'](_0x52bc17),_0x2d280f=_0x16b899['data'];if('formatBlock'!=_0x16b899['type']||!_0x2d280f||'setTableColumnHeader'!=_0x2d280f['commandName'])return;if(_0x1b8a5b['item'])return void _0x24eb2f['stop']();if(!_0x48948f['consumable']['consume'](_0x1b8a5b['markerRange'],_0x24eb2f['name']))return;const _0x338dc4=_0x1b8a5b['markerRange']['start']['nodeAfter'],_0x10c18b=_0x1b8a5b['markerRange']['end']['nodeBefore'],_0x5b902d=_0x338dc4['parent']['parent'],{column:_0x31b9cf}=_0x405e28['getCellLocation'](_0x338dc4),{column:_0x2f546a}=_0x405e28['getCellLocation'](_0x10c18b);for(let _0x55ade1=_0x31b9cf;_0x55ade1<=_0x2f546a;_0x55ade1++){const _0x4b971a=_0x405e28['createTableWalker'](_0x5b902d,{'column':_0x55ade1,'includeAllSlots':!0x1});for(const _0x238d72 of _0x4b971a){const _0x58735c=_0x238d72['cell'],_0x1ecc16=_0x48948f['mapper']['toViewElement'](_0x58735c);_0x48948f['writer']['addClass']('ck-suggestion-marker-'+_0x57997f,_0x1ecc16),_0x17f51a&&_0x48948f['writer']['setAttribute']('data-suggestion',_0x52bc17,_0x1ecc16),_0x48948f['mapper']['bindElementToMarker'](_0x1ecc16,_0x1b8a5b['markerName']),_0x563e71&&(_0x2063d7['activeMarkers']['includes'](_0x1b8a5b['markerName'])?_0x48948f['writer']['addClass']('ck-suggestion-marker--active',_0x1ecc16):_0x48948f['writer']['removeClass']('ck-suggestion-marker--active',_0x1ecc16));}}};}_0x2063d7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3256e7),_0x2063d7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3256e7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x488b56(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4e0042,_0x2d1f28,_0x39b707)=>{_0x39b707['options']['showSuggestionHighlights']&&_0x488b56({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4e0042,_0x2d1f28,_0x39b707);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3cd8b1,_0x4a40f3,_0x5b0f06)=>{const {type:_0x55972a,id:_0x28aa2d}=_0x2063d7['_splitMarkerName'](_0x4a40f3['markerName']),_0x2bfe14=_0x2063d7['getSuggestion'](_0x28aa2d),_0x297b50=_0x2bfe14['data'];if('formatBlock'!=_0x2bfe14['type']||!_0x297b50||'setTableColumnHeader'!=_0x297b50['commandName'])return;const _0x59d82b=_0x5b0f06['mapper']['markerNameToElements'](_0x4a40f3['markerName']);if(_0x59d82b){for(const _0xb7a87e of _0x59d82b)_0x5b0f06['writer']['removeClass']('ck-suggestion-marker-'+_0x55972a,_0xb7a87e),_0x5b0f06['writer']['removeClass']('ck-suggestion-marker--active',_0xb7a87e),_0x5b0f06['writer']['removeAttribute']('data-suggestion',_0xb7a87e),_0x5b0f06['mapper']['unbindElementFromMarkerName'](_0xb7a87e,_0x4a40f3['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e4820=this['editor'],_0x59dc58=_0x3e4820['locale'];function _0x14250a(_0x29cd1a){return{'type':'format','content':o(_0x59dc58,'*Format:*\x20%0',_0x29cd1a)};}_0x3e4820['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f5d17=>{if('formatBlock'!=_0x5f5d17['type'])return;const {data:_0xe05fec}=_0x5f5d17;if(_0xe05fec){if('setTableRowHeader'==_0xe05fec['commandName']){const _0x5a0661=_0xe05fec['commandParams'][0x0]['forceValue'];return _0x14250a(o(_0x59dc58,_0x5a0661?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xe05fec['commandName']){const _0x1f9c14=_0xe05fec['commandParams'][0x0]['forceValue'];return _0x14250a(o(_0x59dc58,_0x1f9c14?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x843b90=>[_0x843b90,null]));class Nt extends _0x2bd390{static get['requires'](){return[vt];}['afterInit'](){const _0x58d3cb=this['editor'];if(!_0x58d3cb['plugins']['has']('TableClipboard'))return;const _0x1d1408=_0x58d3cb['plugins']['get']('TrackChangesEditing'),_0x144095=_0x58d3cb['plugins']['get']('TableUtils'),_0x157f33=_0x58d3cb['plugins']['get'](vt),_0x29a5de=_0x58d3cb['plugins']['get']('TableClipboard');_0x157f33['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x58d3cb['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x58d3cb['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2b9fa6=null;_0x58d3cb['model']['on']('insertContent',(_0xb634d4,_0x304ede)=>{const [_0x8cb50b,_0x5dcb0d]=_0x304ede,_0x2a5168=_0x304ede[_0x304ede['length']-0x1];_0x2a5168&&_0x2a5168['forceDefaultExecution']||_0x1d1408['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1eed1b,_0x5be585,_0x4d40c5,_0x4342c0,_0x443065){if(_0x5be585&&!_0x5be585['is']('documentSelection'))return!0x1;const _0x31e6bf=_0x443065['getTableIfOnlyTableInContent'](_0x1eed1b,_0x4d40c5);if(!_0x31e6bf||!Ue(_0x31e6bf,void 0x0,_0x4342c0))return!0x1;const _0x49757f=_0x4342c0['getSelectionAffectedTableCells'](_0x4d40c5['document']['selection']);if(!_0x49757f['length'])return!0x1;const _0x29371e=_0x49757f[0x0]['findAncestor']('table'),_0x36dc08=_0x4342c0['getRowIndexes'](_0x49757f),_0x38f635=_0x4342c0['getColumnIndexes'](_0x49757f),_0x3cb2ce={'startRow':_0x36dc08['first'],'endRow':_0x36dc08['last'],'startColumn':_0x38f635['first'],'endColumn':_0x38f635['last']};return 0x1==_0x49757f['length']&&(_0x3cb2ce['endRow']+=_0x4342c0['getRows'](_0x31e6bf)-0x1,_0x3cb2ce['endColumn']+=_0x4342c0['getColumns'](_0x31e6bf)-0x1),Ue(_0x29371e,_0x3cb2ce,_0x4342c0);}(_0x8cb50b,_0x5dcb0d,_0x58d3cb['model'],_0x144095,_0x29a5de)&&(_0xb634d4['stop'](),_0x2b9fa6={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x58d3cb['model']['change'](()=>{_0x58d3cb['model']['insertContent'](_0x304ede[0x0],_0x304ede[0x1],_0x304ede[0x2],{'forceDefaultExecution':!0x0});const _0x175a7e=_0x309c8a(),{rowInsertionRanges:_0x4a749b,columnInsertionRanges:_0x3922a5,insertionRanges:_0x466611,deletionRanges:_0x4196c5,cells:_0xc5a1a4}=_0x2b9fa6;_0x4a749b['length']&&_0x1d1408['markMultiRangeInsertion'](_0x4a749b,'tablePasteRow',{'tablePasteChainId':_0x175a7e}),_0x3922a5['length']&&_0x1d1408['markMultiRangeInsertion'](_0x3922a5,'tablePasteColumn',{'tablePasteChainId':_0x175a7e}),_0x466611['length']&&(_0x1d1408['markMultiRangeInsertion'](_0x466611,'tablePaste',{'tablePasteChainId':_0x175a7e,'skipNestingCheck':!0x0}),_0x466611['forEach'](_0x4e128d=>_0x4e128d['detach']?.())),_0x4196c5['length']&&(_0x1d1408['markMultiRangeDeletion'](_0x4196c5,'tablePaste',{'tablePasteChainId':_0x175a7e,'skipNestingCheck':!0x0}),_0x4196c5['forEach'](_0x14103a=>_0x14103a['detach']?.()));const _0x171bdd=_0x1d1408['markMultiRangeBlockFormat'](_0xc5a1a4['map'](({element:_0x1f36b7})=>_0x1f36b7),{'formatGroupId':_0x309c8a()},[],'tablePasteCell',{'tablePasteChainId':_0x175a7e});if(_0x171bdd){const _0x25cb92=_0x171bdd['getMarkers'](),_0x74925d=[];for(const {element:_0x87cb79,attributes:_0x3515ea}of _0xc5a1a4){if(!_0x3515ea)continue;const _0x76f025=_0x58d3cb['model']['createRangeOn'](_0x87cb79),_0x1f4960=_0x25cb92['find'](_0x5b3263=>_0x5b3263['getRange']()['isEqual'](_0x76f025));_0x1f4960&&_0x74925d['push']([_0x1f4960['name'],_0x3515ea]);}_0x74925d['length']&&_0x171bdd['setAttribute']('markerAttributes',Object['fromEntries'](_0x74925d));}_0x2b9fa6=null;}));},{'priority':_0x574764['high']+0xa}),_0x58d3cb['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x927eef,_0x5cf563)=>{const [_0x3c7f66,_0x4e5705,,_0x361d20]=_0x5cf563;if(!_0x2b9fa6)return;_0x927eef['stop']();const _0x1912f0=_0x3c7f66['cell'],_0x1e8329=_0x4e5705,_0x427b27=Oe(_0x1912f0),_0x4e7b57=Oe(_0x1e8329);_0x927eef['return']=_0x1912f0;let _0x583b4c=null,_0x12f697=null;if(_0x4e7b57||_0x427b27){if(_0x427b27&&!_0x4e7b57){_0x361d20['remove'](_0x1912f0['getChild'](0x0));for(const _0x5b157c of Array['from'](_0x1e8329['getChildren']()))_0x361d20['insert'](_0x5b157c,_0x1912f0,'end');const _0x5c367c=_0x2b9fa6['rowInsertionIndexes']['includes'](_0x3c7f66['row']),_0xc13c8e=_0x2b9fa6['columnInsertionIndexes']['includes'](_0x3c7f66['column']);_0x5c367c||_0xc13c8e||(_0x583b4c=_0xfaa3eb['fromRange'](_0x361d20['createRangeIn'](_0x1912f0)));}else _0x4e7b57&&!_0x427b27&&(_0x12f697=_0x361d20['createRangeIn'](_0x1912f0));}else{const _0x12547a=_0x361d20['createElement']('tableCellSuggestion'),_0x4a8c38=_0x361d20['createElement']('tableCellSuggestion');_0x361d20['wrap'](_0x361d20['createRangeIn'](_0x1912f0),_0x4a8c38),_0x361d20['insert'](_0x12547a,_0x1912f0,0x0);for(const _0x1fdc3 of Array['from'](_0x1e8329['getChildren']()))_0x361d20['insert'](_0x1fdc3,_0x12547a,'end');_0x583b4c=_0xfaa3eb['fromRange'](_0x361d20['createRangeOn'](_0x12547a)),_0x12f697=_0xfaa3eb['fromRange'](_0x361d20['createRangeOn'](_0x4a8c38));}const _0x2ed57e=Array['from'](_0x1e8329['getAttributes']())['filter'](([_0x2afc75])=>Be['includes'](_0x2afc75));_0x2b9fa6['cells']['push']({'element':_0x1912f0,'attributes':_0x2ed57e['length']?Object['fromEntries'](_0x2ed57e):null}),_0x583b4c&&_0x2b9fa6['insertionRanges']['push'](_0x583b4c),_0x12f697&&_0x2b9fa6['deletionRanges']['push'](_0x12f697);},{'priority':'high'}),_0x144095['on']('insertColumns',(_0x5ca148,_0x1ad145)=>{const [_0x571c5e,_0x125f04={}]=_0x1ad145;if(!_0x2b9fa6)return;const _0x429267=_0x125f04['at']||0x0,_0x4d67d6=_0x125f04['columns']||0x1;_0x2b9fa6['columnInsertionIndexes']=new Array(_0x4d67d6)['fill'](_0x429267)['map']((_0x405659,_0x4ec09f)=>_0x405659+_0x4ec09f);for(const {cell:_0x3b89e1}of _0x144095['createTableWalker'](_0x571c5e,{'startColumn':_0x429267,'endColumn':_0x429267+_0x4d67d6-0x1}))_0x2b9fa6['columnInsertionRanges']['push'](_0x58d3cb['model']['createRangeOn'](_0x3b89e1));},{'priority':'low'}),_0x144095['on']('insertRows',(_0x49692c,_0x36f5c4)=>{const [_0x1df5a7,_0x286bc6={}]=_0x36f5c4;if(!_0x2b9fa6)return;const _0xc02fff=_0x286bc6['at']||0x0,_0x4e3c80=_0x286bc6['rows']||0x1;_0x2b9fa6['rowInsertionIndexes']=new Array(_0x4e3c80)['fill'](_0xc02fff)['map']((_0x3903c0,_0x4e659d)=>_0x3903c0+_0x4e659d);for(const {cell:_0x3e3b56}of _0x144095['createTableWalker'](_0x1df5a7,{'startRow':_0xc02fff,'endRow':_0xc02fff+_0x4e3c80-0x1}))_0x2b9fa6['rowInsertionRanges']['push'](_0x58d3cb['model']['createRangeOn'](_0x3e3b56));},{'priority':'low'}),_0x1d1408['descriptionFactory']['registerDescriptionCallback'](_0x4a92a7=>{if(_0x4a92a7['subType']&&_0x4a92a7['subType']['startsWith']('tablePaste'))return _0x4a92a7['previous']?{}:{'type':'insertion','content':o(_0x58d3cb['locale'],'*Replace\x20table\x20cells*')};});const _0x2c8e10=()=>!0x1;for(const _0x592bbb of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1d1408['_suggestionFactory']['registerCustomCallback']('insertion',_0x592bbb,'join',_0x2c8e10),_0x1d1408['_suggestionFactory']['registerCustomCallback']('deletion',_0x592bbb,'join',_0x2c8e10),_0x1d1408['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x592bbb,'join',_0x2c8e10);_0x1d1408['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2c8e10),_0x1d1408['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x50a311,_0x4dffb1,_0x5a2133)=>{const _0x45a628=_0x50a311['map'](_0x5b7ba1=>_0x5b7ba1['getContainedElement']())['filter'](_0x1671a5=>_0x1671a5),_0x564871=new Map(_0x45a628['map'](_0x1f0f19=>[_0x1f0f19,null]));if(_0x2b9fa6){for(const {element:_0x283e87,attributes:_0x39a77d}of _0x2b9fa6['cells'])_0x39a77d&&_0x564871['set'](_0x283e87,_0x39a77d);}else{if(_0x5a2133&&_0x5a2133['markerAttributes'])for(const [_0x16e49c,_0x1c7787]of Object['entries'](_0x5a2133['markerAttributes'])){const _0x576758=_0x58d3cb['model']['markers']['get'](_0x16e49c),_0x582997=_0x576758?_0x576758['getRange']()['getContainedElement']():null;_0x582997&&_0x564871['set'](_0x582997,_0x1c7787);}}_0x58d3cb['model']['change'](_0x4ea964=>{for(const [_0x526efb,_0x5a31a9]of _0x564871)_0x4ea964['setAttributes']({...xe,..._0x5a31a9},_0x526efb);});});const _0x581c19=(_0x360d4b,_0x4bcfae)=>{_0x1d1408['_suggestionFactory']['registerCustomCallback'](_0x360d4b,'tablePaste',_0x4bcfae,(_0xa1cf84,_0x4450c9,_0xd2396b)=>{_0x58d3cb['model']['change'](_0x5d6189=>{const _0x52bc39=[];for(const _0x37a0ec of _0xa1cf84){const _0x48b348=_0x37a0ec['start']['nodeAfter'];_0x48b348['is']('element','tableCellSuggestion')&&_0x52bc39['push'](_0x48b348);}_0x1d1408['_suggestionFactory']['getSuggestionCallback'](_0x360d4b,null,_0x4bcfae)(_0xa1cf84,_0x4450c9,_0xd2396b);for(const _0x4fb2bd of _0x52bc39)'$graveyard'!=_0x4fb2bd['root']['rootName']&&_0x5d6189['unwrap'](_0x4fb2bd);});});};_0x581c19('insertion','accept'),_0x581c19('insertion','discard'),_0x581c19('deletion','accept'),_0x581c19('deletion','discard'),_0x1d1408['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2377cf=>{const _0x5628b1=_0x2377cf['map'](_0x5cf3fe=>_0x5cf3fe['getContainedElement']()),_0x576590=_0x5628b1[0x0]['findAncestor']('table'),{minRow:_0x30e9ce,maxRow:_0x58e530}=_0x157f33['_getCoordsForCells'](_0x5628b1);_0x144095['removeRows'](_0x576590,{'at':_0x30e9ce,'rows':_0x58e530-_0x30e9ce+0x1});}),_0x1d1408['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x33b9d0=>{const _0x3294e6=_0x33b9d0['map'](_0x426a22=>_0x426a22['getContainedElement']()),_0x2b8f24=_0x3294e6[0x0]['findAncestor']('table'),{minColumn:_0x9a485f,maxColumn:_0x575b0d}=_0x157f33['_getCoordsForCells'](_0x3294e6);_0x144095['removeColumns'](_0x2b8f24,{'at':_0x9a485f,'columns':_0x575b0d-_0x9a485f+0x1});});const _0xdc5c40=(_0x2eac00,_0x255de4)=>{if(!_0x255de4['subType']||!_0x255de4['subType']['startsWith']('tablePaste'))return;const _0x334d51=_0x255de4['attributes']['tablePasteChainId'],_0x2d9bae=_0x1d1408['getSuggestions']()['filter'](_0x16ed43=>_0x16ed43['isInContent']&&_0x16ed43['attributes']&&_0x16ed43['attributes']['tablePasteChainId']==_0x334d51);_0x2d9bae['length']&&_0x255de4['getAllAdjacentSuggestions']()['length']!=_0x2d9bae['length']&&_0x2d9bae['reduce']((_0x1e6d86,_0x4918f0)=>(_0x1e6d86['next']=_0x4918f0,_0x4918f0['previous']=_0x1e6d86,_0x4918f0));};function _0x91341e(_0x17ff7f,_0x440e2e=!0x0){const {id:_0x5c0c8e,authorId:_0x148cb0}=_0x1d1408['_splitMarkerName'](_0x17ff7f['markerName']),_0x3bf1f8=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xc856cf=_0x1d1408['activeMarkers']['includes'](_0x17ff7f['markerName']);return _0xc856cf&&_0x3bf1f8['push']('ck-suggestion-marker--active'),{'classes':_0x3bf1f8,'attributes':{'data-suggestion':_0x5c0c8e,'data-author-id':_0x148cb0},'priority':_0xc856cf&&_0x440e2e?0xbc2:0xbb8};}_0x1d1408['on']('suggestionLoaded',_0xdc5c40,{'priority':'high'}),_0x1d1408['on']('suggestionUnloaded',_0xdc5c40,{'priority':'high'}),_0x58d3cb['model']['document']['registerPostFixer'](()=>{let _0x34ef2f=!0x1;const _0x1c587c=Array['from'](_0x58d3cb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3003ea,data:_0x57871a}of _0x1c587c){const {group:_0x5b1b3e,type:_0x2eaf79,id:_0x4963e0}=_0x1d1408['_splitMarkerName'](_0x3003ea);if('suggestion'!=_0x5b1b3e||'deletion'!=_0x2eaf79||_0x57871a['oldRange'])continue;if(!_0x1d1408['hasSuggestion'](_0x4963e0))continue;const _0x50dbf2=_0x1d1408['getSuggestion'](_0x4963e0)['getRanges'](),_0x42a787=_0x58d3cb['plugins']['get']('Users')['me'];for(const _0x102f7f of _0x1d1408['getSuggestions']()){if(!_0x102f7f['isInContent']||_0x102f7f['author']!=_0x42a787)continue;if('formatBlock'!=_0x102f7f['type']||'tablePasteCell'!=_0x102f7f['subType'])continue;if(_0x102f7f['getRanges']()['every'](_0x22d9af=>_0x50dbf2['some'](_0x483328=>_0x483328['containsRange'](_0x22d9af,!0x0)))){for(const _0x533934 of _0x102f7f['getAllAdjacentSuggestions']())_0x533934['isInContent']&&(_0x533934['discard'](),_0x34ef2f=!0x0);}}}return _0x34ef2f;}),_0x58d3cb['model']['document']['registerPostFixer'](_0x69621b=>{const _0x56a7c3=_0x58d3cb['commands']['get']('redo');if(!_0x56a7c3||!_0x56a7c3['_createdBatches']['has'](_0x69621b['batch']))return!0x1;let _0x321836=!0x1;const _0x30d1b9=_0x58d3cb['plugins']['get']('Users')['me'],_0x260282=_0x58d3cb['model']['document']['differ']['getChanges'](),_0x44999b=Array['from'](_0x58d3cb['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x53b5d3,data:_0x26fbcd})=>{const {group:_0x18479a,subType:_0x2c30a4,authorId:_0x1480d3}=_0x1d1408['_splitMarkerName'](_0x53b5d3);return'suggestion'==_0x18479a&&'tablePaste'==_0x2c30a4&&_0x1480d3==_0x30d1b9['id']&&!_0x26fbcd['oldRange'];});for(const _0x5c82e3 of _0x260282){if('insert'!=_0x5c82e3['type']||'tableCellSuggestion'!=_0x5c82e3['name']||0x1!=_0x5c82e3['length'])continue;const _0x2ea15b=_0x69621b['createRange'](_0x5c82e3['position'],_0x5c82e3['position']['getShiftedBy'](0x1));if(!_0x44999b['find'](({data:_0x21f0de})=>_0x21f0de['newRange']['isEqual'](_0x2ea15b))){for(const {name:_0x5b42ff,data:_0x49b6f6}of _0x44999b)if(_0x2ea15b['containsRange'](_0x49b6f6['newRange'])){_0x69621b['updateMarker'](_0x5b42ff,{'range':_0x2ea15b}),_0x321836=!0x0;break;}}}return _0x321836;}),_0x58d3cb['model']['document']['registerPostFixer'](_0x131765=>{let _0x162528=!0x1;const _0x441ae1=_0x58d3cb['plugins']['get']('Users')['me'],_0x8973d2=_0x1d1408['getSuggestions']()['filter'](_0xa5aa5e=>_0xa5aa5e['isInContent']&&_0xa5aa5e['author']==_0x441ae1),_0x5ef98d=new Set(),_0x256831=new Set();for(const _0x58eed2 of _0x8973d2)if('tablePaste'==_0x58eed2['subType'])for(const _0x34a727 of _0x58eed2['getMarkers']()){const _0x39a734=_0x34a727['getRange']()['getContainedElement']();if(_0x39a734){if(_0x39a734['is']('element','tableCellSuggestion')&&Oe(_0x39a734)){_0x58eed2['removeMarker'](_0x34a727['name']),_0x5ef98d['add'](_0x39a734),_0x162528=!0x0;const _0x5555f1=_0x39a734['nextSibling'],_0x3d4830=_0x39a734['previousSibling'],_0x14a5df=_0x5555f1&&_0x5555f1['is']('element','tableCellSuggestion'),_0x476b9=_0x3d4830&&_0x3d4830['is']('element','tableCellSuggestion');_0x14a5df&&!_0x5ef98d['has'](_0x5555f1)&&_0x256831['add'](_0x5555f1),_0x476b9&&!_0x5ef98d['has'](_0x3d4830)&&_0x256831['add'](_0x3d4830);}else _0x39a734['is']('element','paragraph')&&_0x39a734['isEmpty']&&(_0x58eed2['removeMarker'](_0x34a727['name']),_0x162528=!0x0);}}else{if('tablePasteCell'==_0x58eed2['subType']){if(!_0x58eed2['attributes']||!_0x58eed2['attributes']['tablePasteChainId'])continue;const _0x43ce26=_0x58eed2['attributes']['markerAttributes'];if(_0x43ce26&&Object['keys'](_0x43ce26)['length'])continue;const _0x5b70e9=_0x58eed2['attributes']['tablePasteChainId'];let _0x154452=!0x0,_0x11601c=!0x0;for(const _0x30a4e7 of _0x8973d2)if(_0x30a4e7['subType']&&_0x30a4e7['subType']['startsWith']('tablePaste')){if(!_0x30a4e7['attributes']['tablePasteChainId']){_0x11601c=!0x1;break;}if(_0x30a4e7['id']!=_0x58eed2['id']&&_0x30a4e7['attributes']['tablePasteChainId']==_0x5b70e9){_0x154452=!0x1;break;}}_0x11601c&&_0x154452&&(_0x58eed2['removeMarkers'](),_0x162528=!0x0);}}for(const _0x1caff0 of _0x5ef98d)_0x131765['remove'](_0x1caff0);for(const _0x24a6f6 of _0x256831)_0x131765['unwrap'](_0x24a6f6);return _0x162528;}),_0x58d3cb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x269057=>_0x91341e(_0x269057),'converterPriority':'high'}),_0x58d3cb['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x50444d,_0x4e9355)=>_0x4e9355['options']['showSuggestionHighlights']?_0x91341e(_0x50444d,!0x1):null,'converterPriority':'high'});const _0x5a7e13=_0x58d3cb['editing']['view'];this['listenTo'](_0x5a7e13['document'],'clipboardOutput',(_0x402d5d,_0x2262b2)=>{const _0x106825=[];for(const _0x5083eb of _0x5a7e13['createRangeIn'](_0x2262b2['content'])['getItems']())_0x5083eb['is']('element','suggestion-td')&&_0x106825['push'](_0x5083eb);_0x5a7e13['change'](_0x416bc2=>{for(const _0x1a8fee of _0x106825)_0x416bc2['move'](_0x416bc2['createRangeIn'](_0x1a8fee),_0x416bc2['createPositionBefore'](_0x1a8fee)),_0x416bc2['remove'](_0x1a8fee);});});}}function Oe(_0x299883){if(_0x299883['isEmpty'])return!0x0;const _0x5cdffc=_0x299883['getChild'](0x0);return _0x5cdffc['is']('element','paragraph')&&_0x5cdffc['isEmpty'];}function Ue(_0x407cf6,_0x16dede={},_0x1b36fe){for(const {isAnchor:_0x4dac38,cellHeight:_0x4f8102,cellWidth:_0x3412ec}of _0x1b36fe['createTableWalker'](_0x407cf6,{'includeAllSlots':!0x0,..._0x16dede}))if(!_0x4dac38||0x1!=_0x4f8102||0x1!=_0x3412ec)return!0x1;return!0x0;}class Dt extends _0x2bd390{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2211b1=this['editor']['plugins']['get']('TrackChangesEditing');_0x2211b1['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2211b1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2211b1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2211b1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2211b1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2211b1['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x6a3242,_0x5acfae){const _0x4876fc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x507b9c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2c6db2=_0x5acfae['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x54ba77=_0x507b9c['getColumnGroupElement'](_0x2c6db2);let _0x1a6808=_0x54ba77?_0x507b9c['getTableColumnsWidths'](_0x54ba77):null,_0x3046db=_0x2c6db2['getAttribute']('tableWidth')||null;const _0x4f2dda=_0x5acfae['tableWidth']||_0x3046db,_0xb269b1=_0x5acfae['columnWidths']||_0x1a6808,_0x47edda=this['editor']['plugins']['get']('Users')['me'];for(const _0x320cf2 of _0x4876fc['getSuggestions']()){const _0x31e4d6=_0x320cf2['getContainedElement']();if('resizeTable'===_0x320cf2['subType']&&_0x31e4d6===_0x2c6db2){_0x320cf2['author']!==_0x47edda&&_0x320cf2['discard']();const _0x5a9751=_0x320cf2['data']['commandParams'];_0x3046db=_0x5a9751[0x0]['tableWidth'],_0x1a6808=_0x5a9751[0x0]['columnWidths'];break;}}_0x6a3242({'table':_0x2c6db2,'tableWidth':_0x4f2dda,'columnWidths':_0xb269b1}),_0x4876fc['markBlockFormat'](_0x2c6db2,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3046db,'columnWidths':_0x1a6808}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5e7b9d){if('formatBlock'!=_0x5e7b9d['type']&&'formatInline'!=_0x5e7b9d['type'])return;const {data:_0x518667}=_0x5e7b9d;if(_0x518667&&'resizeTable'===_0x518667['formatGroupId']){const _0x4bdcdf='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4bdcdf)};}}}class Mt extends _0x2bd390{['afterInit'](){const _0x48a2dd=this['editor'];_0x48a2dd['plugins']['has']('Template')&&_0x48a2dd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x2bd390{['afterInit'](){const _0x36bd17=this['editor'];if(!_0x36bd17['commands']['get']('insertTableOfContents'))return;_0x36bd17['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x30a022=_0x36bd17['plugins']['get']('TrackChangesEditing'),_0x2eec7b=_0x36bd17['locale'];_0x30a022['descriptionFactory']['registerElementLabel']('tableOfContents',_0xf53dc5=>o(_0x2eec7b,'ELEMENT_TABLE_OF_CONTENTS',_0xf53dc5));}}class Bt extends _0x2bd390{['afterInit'](){const _0x54bda4=this['editor'];if(!_0x54bda4['plugins']['has']('Title'))return;const _0x501f4d=_0x54bda4['plugins']['get']('TrackChangesEditing');_0x501f4d['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x54bda4['locale'],'ELEMENT_TITLE')),_0x54bda4['model']['document']['registerPostFixer'](_0x46c717=>{let _0x43a288=!0x1;const _0x39baf1=Array['from'](_0x54bda4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x12b18d,data:_0x545984}of _0x39baf1){const {group:_0x3d9ba3}=_0x501f4d['_splitMarkerName'](_0x12b18d);if('suggestion'!==_0x3d9ba3||!_0x545984['newRange'])continue;const _0x8be918=_0x545984['newRange'],_0x136e06=_0x8be918['end']['nodeBefore'];if(!_0x136e06||!_0x136e06['is']('element','title-content'))continue;if(!_0x8be918['start']['isTouching'](_0x8be918['end']))continue;const _0xb395c6=_0x54bda4['model']['schema']['getNearestSelectionRange'](_0x8be918['end'],'forward');if(_0xb395c6&&_0xb395c6['isCollapsed']){const _0x482794=_0x46c717['createRange'](_0x8be918['start'],_0xb395c6['start']);_0x482794['isEqual'](_0x8be918)||(_0x46c717['updateMarker'](_0x12b18d,{'range':_0x482794}),_0x43a288=!0x0);}_0x43a288||(_0x46c717['removeMarker'](_0x12b18d),_0x43a288=!0x0);}return _0x43a288;});}}class Ot extends _0x2bd390{['afterInit'](){const _0x2e9887=this['editor'],_0x14d79b=_0x2e9887['plugins']['get']('TrackChangesEditing');_0x2e9887['plugins']['has']('Uploadcare')&&(_0x14d79b['enableCommand']('uploadcare'),_0x2e9887['plugins']['has']('UploadcareImageEdit')&&(_0x14d79b['enableCommand']('uploadcareImageEdit'),_0x14d79b['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x14d79b['registerBlockAttribute']('uploadcareImageId'),_0x14d79b['descriptionFactory']['registerDescriptionCallback'](_0x2d3a23=>{if('attribute'!=_0x2d3a23['type'])return;const {data:_0x389a03}=_0x2d3a23;return _0x389a03&&'uploadcareImageId'==_0x389a03['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x2bd390{['afterInit'](){const _0x81208=this['editor'],_0x22dd60=_0x81208['plugins']['get']('TrackChangesEditing');_0x81208['plugins']['has']('UndoEditing')&&(_0x22dd60['enableCommand']('undo'),_0x22dd60['enableCommand']('redo'));}}class Tt extends _0x2bd390{static get['requires'](){return[vt];}['afterInit'](){const _0x33bfe9=this['editor'];if(!_0x33bfe9['plugins']['has']('TableCaptionEditing'))return;_0x33bfe9['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x2bd390{['tableProperties'];['tableCellProperties'];constructor(_0x558b39){super(_0x558b39),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 _0xb5c5c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x29ecdf of this['tableProperties'])_0xb5c5c['enableCommand'](_0x29ecdf,(_0x441917,_0x4e1b96)=>{const _0x480035=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x29ecdf,[_0x480035],this['tableProperties'],'tableProperties',_0x441917,_0x4e1b96);});_0xb5c5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xb5c5c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb5c5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5532e5,_0x1a02df)=>this['handleDiscardAction'](this['tableProperties'],_0x5532e5,_0x1a02df)),_0xb5c5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x237471 of this['tableCellProperties'])_0xb5c5c['enableCommand'](_0x237471,(_0x45c7af,_0x310f5c)=>{const _0x9efd03=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x237471,_0x9efd03,this['tableCellProperties'],'tableCellProperties',_0x45c7af,_0x310f5c);});_0xb5c5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xb5c5c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb5c5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x55a736,_0x5324c3)=>this['handleDiscardAction'](this['tableCellProperties'],_0x55a736,_0x5324c3)),_0xb5c5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xb5c5c['descriptionFactory']['registerDescriptionCallback'](_0x3f21fb=>this['handleSuggestionDescription'](_0x3f21fb));}['_handlePropertyChange'](_0x4e4ed6,_0x4fdf40,_0x1d7f5d,_0x4d4ac1,_0xc1ee48,_0x5ab33a){const _0x1583ce=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5ab33a['batch'],()=>{for(const _0x22bbd5 of _0x4fdf40){if(this['_getSuggestion'](_0x22bbd5,_0x4d4ac1))_0xc1ee48(_0x5ab33a);else{const _0x3501f4={};for(const _0x1ac42d of _0x1d7f5d){const _0x5c73c0=_0x22bbd5['getAttribute'](_0x1ac42d);void 0x0!==_0x5c73c0&&(_0x3501f4[_0x1ac42d]=_0x5c73c0);}_0xc1ee48(_0x5ab33a),_0x1583ce['markBlockFormat'](_0x22bbd5,{'commandParams':[_0x3501f4]},[],_0x4d4ac1);}}});}['handleDiscardAction'](_0x5817dc,_0x321a83,_0x5451db){const _0x52c7e3=_0x321a83[0x0]['start']['nodeAfter'],_0x4d1603=_0x5451db['commandParams'][0x0];this['editor']['model']['change'](_0x1e2118=>{for(const _0x5a3aa4 of _0x5817dc)void 0x0!==_0x4d1603[_0x5a3aa4]?_0x1e2118['setAttribute'](_0x5a3aa4,_0x4d1603[_0x5a3aa4],_0x52c7e3):_0x1e2118['removeAttribute'](_0x5a3aa4,_0x52c7e3);});}['handleSuggestionDescription'](_0x4a6c7e){if(_0x4a6c7e['data'])switch(_0x4a6c7e['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x2ea7b8,_0x504eb1){const _0x3bf7cc=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3b5f35 of _0x3bf7cc['getSuggestions']({'skipNotAttached':!0x0})){const _0x3ae8d9=_0x3b5f35['getContainedElement']();if(_0x3b5f35['subType']===_0x504eb1&&_0x3ae8d9===_0x2ea7b8)return _0x3b5f35;}return null;}}const m='$elementName';class p extends _0x2bd390{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x396d67,_0x5dcbf1,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Tt,Nt,Dt,$t,xt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3336a4){super(_0x3336a4),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5c59dc,_0x1fe014,_0x2e32be,_0x4163da)=>{this['_model']['change'](()=>{for(const _0x3f6c52 of[..._0x4163da,..._0x2e32be])this['_model']['markers']['has'](_0x3f6c52)&&_0x3336a4['editing']['reconvertMarker'](_0x3f6c52);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3336a4['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x3336a4['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3336a4['config']['get']('trackChanges.trackFormatChanges'),_0x3336a4['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3336a4['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3336a4,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x198604=this['editor'],_0x23463=(_0x47b361,_0x1ab57f)=>{if('attribute'!=_0x47b361)return'ck-suggestion-marker-'+_0x47b361;const _0x1fd076=_0x1ab57f['split']('|')[0x0];return this['_isBlockAttribute'](_0x1fd076)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x198604['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x39eb44=>{const {id:_0x30ea47,authorId:_0x640a4f,type:_0x59bfb9,subType:_0x1593cf}=this['_splitMarkerName'](_0x39eb44['markerName']),_0x5ce9d2=['ck-suggestion-marker',_0x23463(_0x59bfb9,_0x1593cf)];let _0x56c173=0xbb8;return this['activeMarkers']['includes'](_0x39eb44['markerName'])&&(_0x5ce9d2['push']('ck-suggestion-marker--active'),_0x56c173=0xbc2),'deletion'==_0x59bfb9&&(_0x56c173+=0x5),{'classes':_0x5ce9d2,'attributes':{'data-suggestion':_0x30ea47,'data-author-id':_0x640a4f},'priority':_0x56c173};}}),_0x198604['conversion']['for']('dataDowncast')['add'](_0x1127be=>{_0x1127be['on']('addMarker:suggestion',(_0x587d2e,_0x5725ca,_0x212198)=>{if(!_0x212198['options']['showSuggestionHighlights'])return;const _0x3edf56=_0x5725ca['item'];if(!_0x3edf56)return;const _0x39c2ee=_0x212198['mapper']['toViewElement'](_0x3edf56);_0x198604['model']['schema']['isObject'](_0x3edf56)&&_0x39c2ee&&!_0x39c2ee['getCustomProperty']('widget')&&_0x39c2ee['is']('containerElement')&&_0x33f2b9(_0x39c2ee,_0x212198['writer']);},{'priority':'high'});}),_0x198604['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x576623,_0x4b3222)=>{if(!_0x4b3222['options']['showSuggestionHighlights'])return null;const {type:_0x11cccd,subType:_0x3d0366}=this['_splitMarkerName'](_0x576623['markerName']);return{'classes':['ck-suggestion-marker',_0x23463(_0x11cccd,_0x3d0366)],'priority':0xbb8};}});const _0x37baea=({showActiveMarkers:_0x5df308=!0x0,isAttributeSuggestion:_0x74d22f=!0x1}={})=>(_0xbe5197,_0x1e9c7f,_0x11954d)=>{if(!_0x1e9c7f['item'])return;const {id:_0x2c5dd4,authorId:_0x485e96}=this['_splitMarkerName'](_0x1e9c7f['markerName']);if(_0x74d22f){const _0xf03fc=this['_suggestions']['get'](_0x2c5dd4),_0x3d24ed=this['_getAttributeKey'](_0xf03fc);if(!this['_isBlockAttribute'](_0x3d24ed))return;}if(_0x1e9c7f['item']['is']('selection'))return void _0x11954d['consumable']['consume'](_0x1e9c7f['item'],_0xbe5197['name']);const _0x5cee82=_0x11954d['mapper']['toViewElement'](_0x1e9c7f['item']);if(_0x1e9c7f['item']['is']('element')&&_0x198604['model']['schema']['isBlock'](_0x1e9c7f['item'])&&!_0x5cee82['getCustomProperty']('addHighlight')){_0x11954d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5cee82),_0x11954d['writer']['setAttribute']('data-suggestion',_0x2c5dd4,_0x5cee82),_0x11954d['writer']['setAttribute']('data-author-id',_0x485e96,_0x5cee82),_0x11954d['mapper']['bindElementToMarker'](_0x5cee82,_0x1e9c7f['markerName']),_0x5df308&&(this['activeMarkers']['includes'](_0x1e9c7f['markerName'])?_0x11954d['writer']['addClass']('ck-suggestion-marker--active',_0x5cee82):_0x11954d['writer']['removeClass']('ck-suggestion-marker--active',_0x5cee82));for(const _0x48dd95 of _0x198604['model']['createRangeIn'](_0x1e9c7f['item'])['getItems']())_0x11954d['consumable']['consume'](_0x48dd95,_0xbe5197['name']);_0x11954d['consumable']['consume'](_0x1e9c7f['item'],_0xbe5197['name']);}};_0x198604['conversion']['for']('dataDowncast')['add'](_0x319a15=>{_0x319a15['on']('addMarker:suggestion:formatBlock',(_0x4fdc5b,_0x5abada,_0x511ab4)=>{_0x511ab4['options']['showSuggestionHighlights']&&_0x37baea({'showActiveMarkers':!0x1})(_0x4fdc5b,_0x5abada,_0x511ab4);},{'priority':'highest'});}),_0x198604['conversion']['for']('dataDowncast')['add'](_0x47bedc=>{_0x47bedc['on']('addMarker:suggestion:attribute',(_0x1199b9,_0x22f21d,_0x1acdfc)=>{_0x1acdfc['options']['showSuggestionHighlights']&&_0x37baea({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1199b9,_0x22f21d,_0x1acdfc);},{'priority':'highest'});}),_0x198604['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2699ae,_0x4d463f)=>_0x4d463f['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2699ae['substr'](0xb)}}),_0x198604['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x35380f,{writer:_0x21f8e6})=>{let _0x14391f='suggestion:'+_0x35380f['getAttribute']('suggestion-type')+':'+_0x35380f['getAttribute']('id');return _0x35380f['getAttribute']('marker-count')&&(_0x14391f+=':'+_0x35380f['getAttribute']('marker-count')),_0x21f8e6['createElement']('$marker',{'data-name':_0x14391f});}}),_0x198604['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x198604['conversion']['for']('editingDowncast')['add'](_0x3ea95e=>{_0x3ea95e['on']('addMarker:suggestion:formatBlock',_0x37baea(),{'priority':'high'});}),_0x198604['conversion']['for']('editingDowncast')['add'](_0x1dd763=>{_0x1dd763['on']('addMarker:suggestion:attribute',_0x37baea({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x198604['conversion']['for']('editingDowncast')['add'](_0x214639=>{_0x214639['on']('removeMarker:suggestion:formatBlock',(_0x2ffaaa,_0x994468,_0x1dca3e)=>{const _0x3cf1b9=_0x1dca3e['mapper']['markerNameToElements'](_0x994468['markerName']);if(_0x3cf1b9){for(const _0x1421e1 of _0x3cf1b9)_0x1421e1['getCustomProperty']('addHighlight')||(_0x1dca3e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1421e1),_0x1dca3e['writer']['removeAttribute']('data-suggestion',_0x1421e1),_0x1dca3e['writer']['removeAttribute']('data-author-id',_0x1421e1),_0x1dca3e['mapper']['unbindElementFromMarkerName'](_0x1421e1,_0x994468['markerName']));}},{'priority':'high'});}),_0x198604['conversion']['for']('editingDowncast')['add'](_0x6fcc2e=>{_0x6fcc2e['on']('removeMarker:suggestion:attribute',(_0x2cf2c7,_0x32d78c,_0x48412e)=>{const _0x34155a=_0x48412e['mapper']['markerNameToElements'](_0x32d78c['markerName']);if(!_0x34155a)return;const {id:_0xc2bf22}=this['_splitMarkerName'](_0x32d78c['markerName']),_0x5f0654=this['_suggestions']['get'](_0xc2bf22),_0x351eb1=this['_getAttributeKey'](_0x5f0654);if(this['_isBlockAttribute'](_0x351eb1)){for(const _0x487aeb of _0x34155a)_0x487aeb['getCustomProperty']('addHighlight')||(_0x48412e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x487aeb),_0x48412e['writer']['removeAttribute']('data-suggestion',_0x487aeb),_0x48412e['writer']['removeAttribute']('data-author-id',_0x487aeb),_0x48412e['mapper']['unbindElementFromMarkerName'](_0x487aeb,_0x32d78c['markerName']));}},{'priority':'high'});}),_0x198604['model']['document']['registerPostFixer'](_0xd7ea67=>{let _0x206d32=!0x1;const _0x1bbaa9=Array['from'](_0x198604['model']['document']['differ']['getChangedMarkers']()),_0x19d811=new Set();for(const {name:_0x4fe618,data:_0x4801f6}of _0x1bbaa9){const {group:_0x34ea3a,type:_0xa8ea12,subType:_0x15c22b,id:_0x2d255a}=this['_splitMarkerName'](_0x4fe618);if('suggestion'!==_0x34ea3a)continue;const _0x5ea001=this['_suggestions']['get'](_0x2d255a);if(null!=_0x4801f6['newRange']){'formatInline'==_0xa8ea12&&(_0x206d32=_0x206d32||Gt(_0x4801f6['newRange'],_0x4fe618,_0xd7ea67,_0x198604['model']['schema']));const _0x1c0cfa='attribute'==_0xa8ea12&&this['_isBlockAttribute'](_0x15c22b['split']('|')[0x0]);if(_0x4801f6['newRange']['isCollapsed']||'$graveyard'==_0x4801f6['newRange']['root']['rootName']||'formatBlock'==_0xa8ea12&&!Lt(_0x4801f6['newRange'])||_0x1c0cfa&&!Lt(_0x4801f6['newRange'])||'deletion'==_0xa8ea12&&!(!Pt(_0x476cac=_0x4801f6['newRange'])&&!function(_0x4941e9){return _0x4941e9['start']['parent']==_0x4941e9['end']['nodeBefore']&&_0x4941e9['start']['isAtEnd'];}(_0x476cac)))_0xd7ea67['removeMarker'](_0x4fe618),_0x206d32=!0x0;else{if(!_0x5ea001||!_0x5ea001['isInContent'])continue;if(_0x4801f6['newRange']&&_0x4801f6['oldRange']&&_0x4801f6['newRange']['isEqual'](_0x4801f6['oldRange']))continue;_0x19d811['add'](_0x5ea001);}}}var _0x476cac;return _0x19d811['size']>0x0&&(_0x206d32=!!this['_joinWithAdjacentSuggestions'](_0x19d811)||_0x206d32),_0x206d32;}),_0x198604['model']['document']['registerPostFixer'](_0x5d9fa5=>{let _0x26979c=!0x1;for(const _0x448513 of _0x198604['model']['document']['differ']['getChanges']())if('insert'==_0x448513['type'])for(const _0x342d4d of this['_suggestions']['values']()){if(_0x342d4d['isMultiRange']||!_0x342d4d['isInContent'])continue;const _0x308a17='formatBlock'==_0x342d4d['type'],_0x124bb2=this['_getAttributeKey'](_0x342d4d),_0x209f0f=_0x124bb2&&this['_isBlockAttribute'](_0x124bb2);if(!_0x308a17&&!_0x209f0f)continue;const _0x49a92e=_0x342d4d['getFirstRange']();if(_0x49a92e['start']['parent']!=_0x49a92e['end']['parent']&&!_0x49a92e['end']['isAtEnd']){const _0x15623e=_0x198604['model']['createPositionAt'](_0x49a92e['start']['nodeAfter'],'end'),_0x358bd9=_0x198604['model']['createRange'](_0x49a92e['start'],_0x15623e);_0x5d9fa5['updateMarker'](_0x342d4d['getFirstMarker'](),{'range':_0x358bd9}),_0x26979c=!0x0;}}return _0x26979c;}),_0x198604['model']['document']['registerPostFixer'](_0x3f02c6=>this['_processAttributeChanges'](_0x3f02c6)),_0x198604['model']['document']['registerPostFixer'](_0x36bad9=>!_0x36bad9['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x36bad9)),_0x198604['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x198604['model']['document']['on']('change:data',(_0x419e7c,_0x1bba08)=>{if(!_0x1bba08['isLocal']||_0x1bba08['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xdcdf23=_0x198604['model']['document']['differ']['getChanges']();if(0x0==_0xdcdf23['length'])return;const _0x403650=[],_0x44bc08=_0xdcdf23['filter'](_0x1ce855=>'attribute'==_0x1ce855['type']),_0x5599b8=_0xdcdf23['filter'](_0x1edeaa=>'insert'==_0x1edeaa['type']&&'$text'!=_0x1edeaa['name']);for(const _0x614677 of _0x44bc08)this['_isRegisteredAttribute'](_0x614677['attributeKey'])&&_0x403650['push']({'key':_0x614677['attributeKey'],'newValue':_0x614677['attributeNewValue'],'oldValue':_0x614677['attributeOldValue'],'range':Jt(_0x614677['range'],_0x198604['model'])});for(const _0x4512c0 of _0x5599b8){if('rename'!=_0x4512c0['action']&&'refresh'!=_0x4512c0['action'])continue;const _0x2c6756=Ht(_0x4512c0['position']['nodeAfter'],_0x198604['model']),_0x497904=_0x4512c0['before'];'rename'==_0x4512c0['action']&&_0x403650['push']({'key':m,'newValue':_0x4512c0['name'],'oldValue':_0x497904['name'],'range':_0x2c6756});for(const [_0xe15fed,_0x373b79]of _0x497904['attributes']){if(!this['_isRegisteredAttribute'](_0xe15fed))continue;const _0x5951f1=_0x4512c0['attributes']['get'](_0xe15fed);_0x373b79!==_0x5951f1&&_0x403650['push']({'key':_0xe15fed,'newValue':_0x5951f1,'oldValue':_0x373b79,'range':_0x2c6756});}for(const [_0x306e2a,_0x21ed48]of _0x4512c0['attributes'])this['_isRegisteredAttribute'](_0x306e2a)&&(_0x497904['attributes']['has'](_0x306e2a)||_0x403650['push']({'key':_0x306e2a,'newValue':_0x21ed48,'oldValue':null,'range':_0x2c6756}));}0x0!=_0x403650['length']&&_0x198604['model']['enqueueChange'](_0x1bba08,_0x1cebc2=>{const _0x4e610f=_0x309c8a();for(const {range:_0x20879c,key:_0x481b99,oldValue:_0x1f317d,newValue:_0xc6909}of _0x403650)this['markAttributeChange'](_0x20879c,_0x481b99,_0x1f317d,_0xc6909,{'groupId':_0x4e610f});this['_reduceExistingSuggestions'](_0x1cebc2,_0x403650);});},{'priority':'lowest'}),_0x198604['model']['markers']['on']('update:suggestion',(_0x15b0c2,_0x47cd93,_0x570370)=>{if(null==_0x570370){const {id:_0xd0f501}=this['_splitMarkerName'](_0x47cd93['name']),_0x146779=this['_suggestions']['get'](_0xd0f501);_0x146779&&_0x146779['addMarkerName'](_0x47cd93['name']);}}),_0x198604['model']['document']['on']('change:data',()=>{const _0x44728d=Array['from'](_0x198604['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2f670c=>'suggestion'===this['_splitMarkerName'](_0x2f670c['name'])['group']);if(0x0===_0x44728d['length'])return;_0x44728d['sort']((_0x4594f2,_0x4cc845)=>{const _0x13e81a=_0x4594f2['data']['oldRange'],_0x456ee1=_0x4cc845['data']['oldRange'];return null===_0x13e81a&&null===_0x456ee1?0x0:null===_0x13e81a&&null!==_0x456ee1?-0x1:null!==_0x13e81a&&null===_0x456ee1?0x1:_0x13e81a['start']['isBefore'](_0x456ee1['start'])?-0x1:0x1;});const _0x5d3774=new Set(),_0x4a84ae=new Set();for(const {name:_0x5a6d7e,data:_0xd34d02}of _0x44728d){const {id:_0x61e1ba}=this['_splitMarkerName'](_0x5a6d7e);if(null===_0xd34d02['oldRange']){const _0x4ef0c7=this['_handleNewSuggestionMarker'](_0x5a6d7e);_0x4a84ae['add'](_0x4ef0c7);}else{const _0x400c87=this['_suggestions']['get'](_0x61e1ba);null!==_0xd34d02['newRange']||_0x400c87['isInContent']?(_0x5d3774['add'](_0x400c87['head']),_0x4a84ae['add'](_0x400c87)):this['_removeSuggestion'](_0x400c87);}}_0x4a84ae['size']>0x0&&this['_refreshSuggestionsChain'](_0x4a84ae);for(const _0x12eb00 of _0x5d3774)this['fire']('suggestionChanged',_0x12eb00);}),_0x198604['model']['on']('applyOperation',(_0x4e859a,_0x424a5d)=>{const _0x568250=_0x424a5d[0x0];if(!this['_suggestions']['size'])return;if(!_0x568250['isDocumentOperation'])return;if(_0x568250['batch']['isUndo']||!_0x568250['batch']['isLocal'])return;let _0x4c6cbb,_0x14fa52;switch(_0x568250['type']){case'insert':_0x4c6cbb=_0x198604['model']['createPositionAt'](_0x568250['position']),_0x14fa52=_0x4c6cbb['getShiftedBy'](_0x568250['howMany']);break;case'split':_0x4c6cbb=_0x198604['model']['createPositionAt'](_0x568250['splitPosition']),_0x14fa52=_0x198604['model']['createPositionAt'](_0x568250['moveTargetPosition']);break;case'move':_0x4c6cbb=_0x198604['model']['createPositionAt'](_0x568250['targetPosition']),_0x14fa52=_0x4c6cbb['getShiftedBy'](_0x568250['howMany']);break;default:return;}const _0x41895e=_0x198604['model']['createRange'](_0x4c6cbb,_0x14fa52);_0x198604['model']['change'](()=>{for(const {suggestion:_0x104376,meta:_0x1d8787}of this['_findSuggestions'](_0x41895e)){if(_0x104376['isMultiRange'])continue;if('formatInline'==_0x104376['type'])continue;const _0x192f47=this['_getAttributeKey'](_0x104376);if(_0x192f47&&this['_isBlockAttribute'](_0x192f47)&&'split'!=_0x568250['type'])continue;const _0x34b2cd=_0x104376['data']&&_0x104376['data']['multipleBlocks'];('formatBlock'!=_0x104376['type']||'split'==_0x568250['type']&&!_0x34b2cd)&&(_0x1d8787['containsRangeInObject']||'insertion'==_0x104376['type']&&_0x1d8787['isOwn']||_0x104376['getFirstRange']()['containsRange'](_0x41895e)&&this['_breakSuggestionMarker'](_0x104376,_0x4c6cbb,_0x14fa52));}});},{'priority':'lowest'}),_0x198604['model']['on']('deleteContent',(_0x563d3f,_0x1e97b3)=>{const _0x346a57=_0x1e97b3[0x0],_0x216657=_0x1e97b3[0x1];if(_0x216657&&_0x216657['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x346a57['isCollapsed'])return;const _0x410b3c=_0x198604['model']['schema'],{start:_0x4dfcdc,end:_0x1f18bc}=_0x346a57['getFirstRange'](),_0x4ed4df=_0x4dfcdc['nodeAfter']&&_0x410b3c['isLimit'](_0x4dfcdc['nodeAfter'])?null:_0x410b3c['getNearestSelectionRange'](_0x4dfcdc,'forward'),_0x4b9d9d=_0x1f18bc['nodeBefore']&&_0x410b3c['isLimit'](_0x1f18bc['nodeBefore'])?null:_0x410b3c['getNearestSelectionRange'](_0x1f18bc,'backward'),_0x59a789=_0x198604['model']['createRange'](_0x4ed4df?_0x4ed4df['start']:_0x4dfcdc,_0x4b9d9d?_0x4b9d9d['end']:_0x1f18bc);_0x198604['model']['change'](_0x3bbe61=>{this['markDeletion'](_0x59a789);const _0x3dd200=_0x198604['model']['schema']['getNearestSelectionRange'](_0x59a789['start']);_0x346a57['is']('documentSelection')?_0x3bbe61['setSelection'](_0x3dd200):_0x346a57['setTo'](_0x3dd200);}),_0x563d3f['stop']();},{'priority':_0x574764['normal']+0xa}),_0x198604['model']['on']('insertContent',(_0x5705b5,_0x1bcee9)=>{const _0x563d12=_0x1bcee9[_0x1bcee9['length']-0x1];_0x563d12&&_0x563d12['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x198604['model']['change'](()=>{let _0x4788e1=_0x198604['model']['insertContent'](_0x1bcee9[0x0],_0x1bcee9[0x1],_0x1bcee9[0x2],{'forceDefaultExecution':!0x0});if(!_0x4788e1)return;_0x5705b5['return']=_0x4788e1['clone']();const _0x3657a7=_0x4788e1['end']['nodeBefore'],_0x3d5c18=_0x198604['model']['schema'];_0x3657a7&&_0x3d5c18['isBlock'](_0x3657a7)&&!_0x3d5c18['isObject'](_0x3657a7)&&(_0x4788e1=_0x198604['model']['createRange'](_0x4788e1['start'],_0x198604['model']['createPositionAt'](_0x3657a7,'end'))),this['markInsertion'](_0x4788e1);}),_0x5705b5['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4b723c=new O(_0x198604,this['_suggestions']);_0x198604['commands']['add']('acceptSuggestion',_0x4b723c),this['enableCommand']('acceptSuggestion');const _0x12d994=new R(_0x198604,this['_suggestions']);_0x198604['commands']['add']('discardSuggestion',_0x12d994),this['enableCommand']('discardSuggestion'),_0x198604['commands']['add']('acceptAllSuggestions',new x(_0x198604,_0x4b723c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x198604['commands']['add']('discardAllSuggestions',new x(_0x198604,_0x12d994,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x198604['commands']['add']('acceptSelectedSuggestions',new E(_0x198604,_0x4b723c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x198604['commands']['add']('discardSelectedSuggestions',new E(_0x198604,_0x12d994,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5e0adf=_0x198604['plugins']['get']('CommentsRepository');this['listenTo'](_0x5e0adf,'addComment',(_0x4dae35,{threadId:_0x106bd6})=>{const _0x398141=this['_suggestions']['get'](_0x106bd6);_0x398141&&_0x398141['commentThread']&&0x1===_0x398141['commentThread']['length']&&this['_updateSuggestionData'](_0x106bd6,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5e0adf,'removeComment',(_0x266293,{threadId:_0x265cc8})=>{const _0x414fcc=this['_suggestions']['get'](_0x265cc8);_0x414fcc&&_0x414fcc['commentThread']&&!_0x414fcc['commentThread']['length']&&this['_updateSuggestionData'](_0x265cc8,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xee8796){const _0x1f3184=_0x71e1aa([0x44,0x39,0x54,0x74,0x6a,0x49,0x5a,0x32,0x57,0x6f,0x30,0x52,0x76,0x6d,0x63,0x4f,0x62,0x71,0x58,0x79,0x78,0x6c,0x6b,0x75,0x59,0x46,0x53,0x6e,0x38,0x45,0x73,0x77,0x7a,0x50,0x68,0x35,0x55,0x51,0x4b,0x4a,0x67,0x43,0x33,0x65,0x4e,0x70,0x48,0x47,0x42,0x56,0x34,0x72,0x61,0x36,0x66,0x31,0x4c,0x69,0x4d,0x37,0x64,0x41]),_0x56f697=0x19176726,_0xeef55b=0x1910383e^_0x56f697,_0x5536df=window[_0x71e1aa([0x44,0x61,0x74,0x65])][_0x71e1aa([0x6e,0x6f,0x77])](),_0x5e7f26=_0xee8796[_0x71e1aa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x445a49=new window[(_0x71e1aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b69c2=>{_0x5e7f26[_0x71e1aa([0x6f,0x6e,0x63,0x65])](_0x71e1aa([0x72,0x65,0x61,0x64,0x79]),_0x1b69c2);}),_0x1457d7={[_0x71e1aa([0x6b,0x74,0x79])]:_0x71e1aa([0x45,0x43]),[_0x71e1aa([0x75,0x73,0x65])]:_0x71e1aa([0x73,0x69,0x67]),[_0x71e1aa([0x63,0x72,0x76])]:_0x71e1aa([0x50,0x2d,0x32,0x35,0x36]),[_0x71e1aa([0x78])]:_0x71e1aa([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]),[_0x71e1aa([0x79])]:_0x71e1aa([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]),[_0x71e1aa([0x61,0x6c,0x67])]:_0x71e1aa([0x45,0x53,0x32,0x35,0x36])},_0x24f1dc=_0x5e7f26[_0x71e1aa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x71e1aa([0x67,0x65,0x74])](_0x71e1aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xa8b06d(){let _0x401bf7,_0x478c72=null,_0x5c5e78=null;try{if(_0x24f1dc==_0x71e1aa([0x47,0x50,0x4c]))return _0x71e1aa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x401bf7=_0x1bca48(),!_0x401bf7)return _0x71e1aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x401bf7[_0x71e1aa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5c5e78=_0x4d28be(_0x401bf7[_0x71e1aa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x401bf7[_0x71e1aa([0x6a,0x74,0x69])])),await _0x1b5571()?_0x3d9347()?_0x17b106()?_0x71e1aa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5d0ac6()?(_0x401bf7[_0x71e1aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x71e1aa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x478c72=_0x4c3f42(_0x71e1aa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x401bf7[_0x71e1aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x71e1aa([0x74,0x72,0x69,0x61,0x6c])&&(_0x478c72=_0x4c3f42(_0x71e1aa([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e5203()):_0x71e1aa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x71e1aa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x71e1aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3f9920){return _0x71e1aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x17b106(){const _0x519b16=[_0x71e1aa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x71e1aa([0x74,0x72,0x69,0x61,0x6c])][_0x71e1aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x401bf7[_0x71e1aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5536df/0x3e8:0xe10*_0xeef55b;return _0x401bf7[_0x71e1aa([0x65,0x78,0x70])]<_0x519b16;}function _0x3d9347(){const _0x3cb7d7=_0x401bf7[_0x71e1aa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3cb7d7)return!0x1;if(_0x3cb7d7[_0x71e1aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x71e1aa([0x2a])))return!0x0;if(_0x3cb7d7[_0x71e1aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x71e1aa([0x54,0x43])))return!0x0;if(_0x3cb7d7[_0x71e1aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x71e1aa([0x52,0x54,0x43]))){if(_0x45a773())return!0x0;if(_0x3e409b()||_0x599a08())return!0x0;}return!0x1;}function _0x5d0ac6(){const _0x452d5c=_0x401bf7[_0x71e1aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x452d5c||0x0==_0x452d5c[_0x71e1aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4c0f43}=new URL(window[_0x71e1aa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x452d5c[_0x71e1aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c0f43))return!0x0;const _0x19bb4a=_0x4c0f43[_0x71e1aa([0x73,0x70,0x6c,0x69,0x74])](_0x71e1aa([0x2e]));return _0x452d5c[_0x71e1aa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x209e31=>_0x209e31[_0x71e1aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x71e1aa([0x2a])))[_0x71e1aa([0x6d,0x61,0x70])](_0x356fd8=>_0x356fd8[_0x71e1aa([0x73,0x70,0x6c,0x69,0x74])](_0x71e1aa([0x2e])))[_0x71e1aa([0x73,0x6f,0x6d,0x65])](_0x33ce86=>_0x19bb4a[_0x71e1aa([0x65,0x76,0x65,0x72,0x79])]((_0x10bbd2,_0x46d43f)=>_0x33ce86[_0x46d43f]===_0x10bbd2||_0x33ce86[_0x46d43f]===_0x71e1aa([0x2a])));}function _0x1e5203(){return _0x478c72&&_0x5c5e78?new window[(_0x71e1aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c665d,_0x9f4df4)=>{_0x478c72[_0x71e1aa([0x74,0x68,0x65,0x6e])](_0x5c665d,_0x9f4df4),_0x5c5e78[_0x71e1aa([0x74,0x68,0x65,0x6e])](_0x429e09=>{_0x429e09!=_0x71e1aa([0x56,0x61,0x6c,0x69,0x64])&&_0x5c665d(_0x429e09);},_0x9f4df4);}):_0x478c72||_0x5c5e78||_0x71e1aa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4d28be(_0x126497,_0x3dc315){return new window[(_0x71e1aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x290cd3=>{if(_0x36fcb8())return _0x290cd3(_0x71e1aa([0x56,0x61,0x6c,0x69,0x64]));_0x58abf9(),_0x5e7f26[_0x71e1aa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x71e1aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xb88fe5=!0x1;const _0x4e5611=_0x309c8a();function _0x638e6b(_0x55963c){return!!_0x55963c&&(typeof _0x55963c===_0x71e1aa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x55963c===_0x71e1aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x55963c[_0x71e1aa([0x74,0x68,0x65,0x6e])]===_0x71e1aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x55963c[_0x71e1aa([0x63,0x61,0x74,0x63,0x68])]===_0x71e1aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4b08e4(_0x47846c){_0x2dcdfb(_0x47846c)[_0x71e1aa([0x74,0x68,0x65,0x6e])](_0x4ca32b=>{if(!_0x4ca32b||_0x4ca32b[_0x71e1aa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x71e1aa([0x6f,0x6b]))return _0x71e1aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d12c8(_0x1eed63(_0x4e5611+_0x3dc315))!=_0x4ca32b[_0x71e1aa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x71e1aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x71e1aa([0x56,0x61,0x6c,0x69,0x64]);})[_0x71e1aa([0x74,0x68,0x65,0x6e])](_0x1fcdd0=>(_0x589d38(),_0x1fcdd0),()=>{const _0x151692=_0x4e99ba();return null==_0x151692?(_0x589d38(),_0x71e1aa([0x56,0x61,0x6c,0x69,0x64])):_0x71e1aa(_0x5536df-_0x151692>(0x3d1be326^_0x56f697)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x71e1aa([0x74,0x68,0x65,0x6e])](_0x290cd3)[_0x71e1aa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x290cd3(_0x71e1aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4e8f26=0x192189a6^_0x56f697;function _0x589d38(){const _0x1cc178=_0x71e1aa([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d12c8(_0x1eed63(_0x126497)),_0x5c36ab=_0x58b9ff(_0x3d12c8(window[_0x71e1aa([0x4d,0x61,0x74,0x68])][_0x71e1aa([0x63,0x65,0x69,0x6c])](_0x5536df/_0x4e8f26)));window[_0x71e1aa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x71e1aa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1cc178,_0x5c36ab);}function _0x4e99ba(){const _0x51ea09=_0x71e1aa([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d12c8(_0x1eed63(_0x126497)),_0x1981c5=window[_0x71e1aa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x71e1aa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51ea09);return _0x1981c5?window[_0x71e1aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58b9ff(_0x1981c5),0x10)*_0x4e8f26:null;}function _0x2dcdfb(_0x481883){return new window[(_0x71e1aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x242983,_0x2be2e0)=>{_0x481883[_0x71e1aa([0x74,0x68,0x65,0x6e])](_0x242983,_0x2be2e0),window[_0x71e1aa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2be2e0,0x1916b3e6^_0x56f697);});}}_0x5e7f26[_0x71e1aa([0x6f,0x6e])](_0x71e1aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x551287,_0x13a75e)=>{if(_0x13a75e[0x0]!=_0x126497)return _0x290cd3(_0x71e1aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x13a75e[0x1]={..._0x13a75e[0x1],[_0x71e1aa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4e5611};},{[_0x71e1aa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x71e1aa([0x68,0x69,0x67,0x68])}),_0x5e7f26[_0x71e1aa([0x6f,0x6e])](_0x71e1aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x49d89b=>{_0x638e6b(_0x49d89b[_0x71e1aa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xb88fe5=!0x0,_0x4b08e4(_0x49d89b[_0x71e1aa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x71e1aa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x71e1aa([0x6c,0x6f,0x77])}),_0x445a49[_0x71e1aa([0x74,0x68,0x65,0x6e])](()=>{_0xb88fe5||_0x290cd3(_0x71e1aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x36fcb8(){return _0x5e7f26[_0x71e1aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x71e1aa([0x76,0x69,0x65,0x77])][_0x71e1aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x71e1aa([0x61,0x75,0x74,0x6f]);}function _0x58abf9(){_0x5e7f26[_0x71e1aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x71e1aa([0x76,0x69,0x65,0x77])][_0x71e1aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x71e1aa([0x61,0x75,0x74,0x6f]);}}function _0x4c3f42(_0x287ebd){const _0x34c055=[new window[(_0x71e1aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d1796=>setTimeout(_0x1d1796,0x191e59ea^_0x56f697)),_0x445a49[_0x71e1aa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x71e1aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x376d6e=>{let _0x16dca9=0x0;_0x5e7f26[_0x71e1aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x71e1aa([0x6f,0x6e])](_0x71e1aa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x47336c,_0xb18c95)=>{_0xb18c95[0x0][_0x71e1aa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x16dca9++,_0x16dca9==(0x191766de^_0x56f697)&&(_0x376d6e(),_0x47336c[_0x71e1aa([0x6f,0x66,0x66])]());});}))];return window[_0x71e1aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x71e1aa([0x72,0x61,0x63,0x65])](_0x34c055)[_0x71e1aa([0x74,0x68,0x65,0x6e])](()=>_0x287ebd);}async function _0x40080c(){await _0x445a49,_0x5e7f26[_0x71e1aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x71e1aa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a39fc,_0x5e7f26[_0x71e1aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x71e1aa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a39fc,_0x5e7f26[_0x71e1aa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x71e1aa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x45a773(){return _0x3676e9(_0x71e1aa([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x446bdb(_0x71e1aa([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x71e1aa([0x73,0x74,0x61,0x74,0x65])]==_0x71e1aa([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3e409b(){return _0x3676e9(_0x71e1aa([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 _0x599a08(){return _0x3676e9(_0x71e1aa([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x527b4d(_0x4ec48b){const _0x7c41c3=_0x33af11();_0x5e7f26[_0x7c41c3]=_0x71e1aa([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ec48b,_0x4ec48b!=_0x71e1aa([0x56,0x61,0x6c,0x69,0x64])&&_0x40080c();}function _0x33af11(){const _0x362678=window[_0x71e1aa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x71e1aa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x71e1aa([0x6e,0x6f,0x77])]())[_0x71e1aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x71e1aa([0x2e]),'');let _0x39a740=_0x71e1aa([0x44]);for(let _0x542c64=0x0;_0x542c64<_0x362678[_0x71e1aa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x542c64+=0x2){let _0x567789=window[_0x71e1aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x362678[_0x71e1aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x542c64,_0x542c64+0x2));_0x567789>=_0x1f3184[_0x71e1aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x567789-=_0x1f3184[_0x71e1aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x39a740+=_0x1f3184[_0x567789];}return _0x39a740;}function _0x1bca48(){const _0x416666=_0x24f1dc[_0x71e1aa([0x73,0x70,0x6c,0x69,0x74])](_0x71e1aa([0x2e]));if(0x3!=_0x416666[_0x71e1aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x42d194(_0x416666[0x1]);function _0x42d194(_0x5f54ab){const _0x355e0e=_0x18240e(_0x5f54ab);return _0x355e0e&&_0x19d6f9()?_0x355e0e:null;function _0x19d6f9(){const _0xab69d5=_0x355e0e[_0x71e1aa([0x6a,0x74,0x69])],_0x5ca168=window[_0x71e1aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xab69d5[_0x71e1aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xab69d5[_0x71e1aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3aa02f={..._0x355e0e,[_0x71e1aa([0x6a,0x74,0x69])]:_0xab69d5[_0x71e1aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xab69d5[_0x71e1aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3aa02f[_0x71e1aa([0x76,0x63])],_0x1eed63(_0x3aa02f)==_0x5ca168;}}}async function _0x1b5571(){let _0x462ffc=!0x0;try{const _0x3f7757=_0x24f1dc[_0x71e1aa([0x73,0x70,0x6c,0x69,0x74])](_0x71e1aa([0x2e])),[_0x2940dd,_0xbc1d6d,_0x46962c]=_0x3f7757;return _0x5bc597(_0x2940dd),await _0x4825a7(_0x2940dd,_0xbc1d6d,_0x46962c),_0x462ffc;}catch(_0x435c28){return!0x1;}function _0x5bc597(_0x324af3){const _0x56ffae=_0x18240e(_0x324af3);_0x56ffae&&_0x56ffae[_0x71e1aa([0x61,0x6c,0x67])]==_0x71e1aa([0x45,0x53,0x32,0x35,0x36])||(_0x462ffc=!0x1);}async function _0x4825a7(_0x519492,_0x454464,_0x50d32e){const _0xd61717=window[_0x71e1aa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x71e1aa([0x66,0x72,0x6f,0x6d])](_0x31ca1e(_0x50d32e),_0x4f48da=>_0x4f48da[_0x71e1aa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2d8e04=new window[(_0x71e1aa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x71e1aa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x519492+_0x71e1aa([0x2e])+_0x454464),_0x4865d8=window[_0x71e1aa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x71e1aa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4865d8)return;const _0x4a0940=await _0x4865d8[_0x71e1aa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x71e1aa([0x6a,0x77,0x6b]),_0x1457d7,{[_0x71e1aa([0x6e,0x61,0x6d,0x65])]:_0x71e1aa([0x45,0x43,0x44,0x53,0x41]),[_0x71e1aa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x71e1aa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x71e1aa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4865d8[_0x71e1aa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x71e1aa([0x6e,0x61,0x6d,0x65])]:_0x71e1aa([0x45,0x43,0x44,0x53,0x41]),[_0x71e1aa([0x68,0x61,0x73,0x68])]:{[_0x71e1aa([0x6e,0x61,0x6d,0x65])]:_0x71e1aa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a0940,_0xd61717,_0x2d8e04)||(_0x462ffc=!0x1);}}function _0x18240e(_0x378fcf){return _0x378fcf[_0x71e1aa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x71e1aa([0x65,0x79]))?JSON[_0x71e1aa([0x70,0x61,0x72,0x73,0x65])](_0x31ca1e(_0x378fcf)):null;}function _0x31ca1e(_0x5b4a0d){return window[_0x71e1aa([0x61,0x74,0x6f,0x62])](_0x5b4a0d[_0x71e1aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x71e1aa([0x2b]))[_0x71e1aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x71e1aa([0x2f])));}function _0x1eed63(_0x215054){let _0x39c781=0x1505;function _0x5cd60b(_0x53d9c7){for(let _0x5c6b60=0x0;_0x5c6b60<_0x53d9c7[_0x71e1aa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c6b60++){const _0x54db41=_0x53d9c7[_0x71e1aa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c6b60);_0x39c781=(_0x39c781<<0x5)+_0x39c781+_0x54db41,_0x39c781&=_0x39c781;}}function _0x5ef028(_0x308233){Array[_0x71e1aa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x308233)?_0x308233[_0x71e1aa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5ef028):_0x308233&&typeof _0x308233==_0x71e1aa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x71e1aa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x308233)[_0x71e1aa([0x73,0x6f,0x72,0x74])]()[_0x71e1aa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x279ed2,_0x2f54f2])=>{_0x5cd60b(_0x279ed2),_0x5ef028(_0x2f54f2);}):_0x5cd60b(window[_0x71e1aa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x308233));}return _0x5ef028(_0x215054),_0x39c781>>>0x0;}function _0x3d12c8(_0x1e875e){return _0x1e875e[_0x71e1aa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x71e1aa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x71e1aa([0x30]));}function _0x58b9ff(_0x5f5785){return _0x5f5785[_0x71e1aa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x71e1aa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x71e1aa([0x6a,0x6f,0x69,0x6e])]('');}function _0x3676e9(_0x19d8e1){return _0x5e7f26[_0x71e1aa([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x71e1aa([0x68,0x61,0x73])](_0x19d8e1);}function _0x446bdb(_0x48178c){return _0x5e7f26[_0x71e1aa([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x71e1aa([0x67,0x65,0x74])](_0x48178c);}function _0x2a39fc(){}function _0x71e1aa(_0x5902e9){return _0x5902e9['map'](_0x3d3554=>String['fromCharCode'](_0x3d3554))['join']('');}_0x527b4d(await _0xa8b06d());}(this);}set['adapter'](_0x2a1262){if(this['_adapter'])throw new _0x1b3384('track-changes-adapter-already-set',this);this['_adapter']=_0x2a1262;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x13c19a=!0x1,toJSON:_0x449c35=!0x1}={}){const _0x1859b1=[];for(const _0x328db1 of this['_suggestions']['values']())_0x13c19a&&!_0x328db1['isInContent']||_0x1859b1['push'](_0x328db1);return _0x449c35?_0x1859b1['map'](_0x16166f=>_0x16166f['toJSON']()):_0x1859b1;}['getSuggestion'](_0x1f9ffa){const _0x5036c2=this['_suggestions']['get'](_0x1f9ffa);if(!_0x5036c2)throw new _0x1b3384('track-changes-suggestion-not-found',this);return _0x5036c2;}['hasSuggestion'](_0x4793cf){return this['_suggestions']['has'](_0x4793cf);}['addSuggestionData'](_0x1fa22e){const {authorId:_0x5857f3,id:_0x868b73,attributes:_0x190508}=_0x1fa22e,[_0x4d3c98,_0x21b9ee]=_0x1fa22e['type']['split'](':'),_0x2a5ac7=this['_suggestions']['get'](_0x868b73)||this['_createSuggestion'](_0x4d3c98,_0x21b9ee,_0x868b73,_0x5857f3,_0x190508);if(this['_addThreadToSuggestion'](_0x2a5ac7),this['_checkSuggestionCorrectness'](_0x2a5ac7,_0x4d3c98,_0x21b9ee||null,_0x5857f3),_0x2a5ac7['createdAt']=_0x1fa22e['createdAt'],_0x2a5ac7['_isDataLoaded']=!0x0,_0x190508&&_0x190508['@external']){const _0x2601e7=_0x190508['@external'],_0x181558=this['_getExternalAuthor'](_0x2601e7['authorName']);_0x2a5ac7['authoredAt']=_0x2601e7['createdAt'],_0x2a5ac7['author']=_0x181558,_0x2a5ac7['isExternal']=!0x0;}else _0x2a5ac7['authoredAt']=_0x1fa22e['createdAt'];switch(_0x1fa22e['data']&&(_0x2a5ac7['data']=_0x1fa22e['data']),_0x1fa22e['attributes']&&(_0x2a5ac7['attributes']=_0x1fa22e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2a5ac7['_saved']=!0x0),this['_suggestionState']['get'](_0x2a5ac7)){case'notReady':this['_suggestionState']['set'](_0x2a5ac7,'dataReady');break;case'markerReady':_0x2a5ac7['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2a5ac7])),this['_refreshSuggestionsChain'](new Set([_0x2a5ac7])),this['_suggestionState']['set'](_0x2a5ac7,'ready'),this['fire']('suggestionLoaded',_0x2a5ac7)):this['_suggestionState']['set'](_0x2a5ac7,'removed');}return _0x2a5ac7;}['acceptSuggestion'](_0x50c88c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x465528 of _0x50c88c['getAllAdjacentSuggestions']())_0x465528['accept']();});});}['discardSuggestion'](_0x235a15){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x479ddd of _0x235a15['getAllAdjacentSuggestions']())_0x479ddd['discard']();});});}['enableCommand'](_0x1022d4,_0x597ded){const _0x54046d=this['editor']['commands']['get'](_0x1022d4);if(!_0x54046d)throw new _0x1b3384('track-changes-command-not-found',this,{'commandName':_0x1022d4});if(this['_enabledCommands']['has'](_0x54046d))throw new _0x1b3384('track-changes-enable-command-twice',this,{'commandName':_0x1022d4});this['_enabledCommands']['add'](_0x54046d),_0x597ded&&_0x54046d['on']('execute',(_0x2e49fe,_0x30d527)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x30d527['length']>0x0&&_0x30d527[_0x30d527['length']-0x1]&&_0x30d527[_0x30d527['length']-0x1]['forceDefaultExecution']?_0x30d527['pop']():(_0x2e49fe['return']=_0x597ded((..._0x5533d2)=>_0x54046d['execute'](..._0x5533d2,{'forceDefaultExecution':!0x0}),..._0x30d527),_0x2e49fe['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2115b6){let _0x549745,_0x4740c;const _0x49ad19=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x549745=_0x2115b6();}catch(_0x5f1d5b){_0x4740c=_0x5f1d5b;}return _0x49ad19||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4740c&&_0x1b3384['rethrowUnexpectedError'](_0x4740c,this),_0x549745;}['markInsertion'](_0x5ea347,_0x5ccca1=null,_0x10bae2={}){if(_0x5ea347['isCollapsed'])return null;const _0x4aa463=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x170bea,meta:_0x21d790}of this['_findSuggestions'](_0x5ea347,'insertion'))if(_0x21d790['isOwn']){if(!_0x21d790['isNextTo']){if(_0x21d790['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x170bea,_0x10bae2))continue;return _0x170bea;}if(Kt(_0x170bea,_0x10bae2))return _0x170bea;this['_breakSuggestionMarker'](_0x170bea,_0x5ea347['start'],_0x5ea347['end']);break;}if(_0x5ccca1==_0x170bea['subType']&&Kt(_0x170bea,_0x10bae2)){const _0xfc57ba=_0x170bea['getFirstRange']();return _0xfc57ba['start']['isEqual'](_0x5ea347['end'])?this['_setSuggestionRange'](_0x170bea,this['_model']['createRange'](_0x5ea347['start'],_0xfc57ba['end'])):this['_setSuggestionRange'](_0x170bea,this['_model']['createRange'](_0xfc57ba['start'],_0x5ea347['end'])),_0x170bea;}}const _0xb54786=_0x309c8a(),_0x465722=_0x4aa463['id'],_0xa3ae7a=_0x5ccca1?'insertion:'+_0x5ccca1:'insertion',_0xb6f5bb=this['_setSuggestionData']({'id':_0xb54786,'type':_0xa3ae7a,'createdAt':new Date(),'authorId':_0x465722,'attributes':_0x10bae2});return this['_addSuggestionMarker'](_0xa3ae7a,_0xb54786,_0x465722,_0x5ea347),_0xb6f5bb;}['markMultiRangeInsertion'](_0xcda1b6,_0x5ac69b='multi',_0x499771={}){const _0x37bfbc=this['editor']['plugins']['get']('Users')['me'],_0x5d7dee=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5ac69b,'join');for(const _0x547fcf of this['getSuggestions']())if(_0x547fcf['author']['id']==_0x37bfbc['id']&&'insertion'==_0x547fcf['type']&&_0x547fcf['subType']==_0x5ac69b&&Kt(_0x547fcf,_0x499771)&&(_0x5d7dee(_0x547fcf['getRanges'](),_0xcda1b6)||_0x5d7dee(_0xcda1b6,_0x547fcf['getRanges']()))){for(const _0x330134 of _0xcda1b6)_0x547fcf['addRange'](_0x330134);return _0x547fcf;}for(const {suggestion:_0x4ee05e,meta:_0xd72b83}of this['_findSuggestions'](_0xcda1b6,'insertion')){if(!_0xd72b83['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xd72b83['containsRangeInObject'])continue;if(!Kt(_0x4ee05e,_0x499771))continue;let _0x5522ad=!0x0;for(const _0x3ebe44 of _0x4ee05e['getRanges']())for(const _0x486398 of _0xcda1b6)if(!_0x3ebe44['containsRange'](_0x486398)){_0x5522ad=!0x1;break;}if(_0x5522ad)return _0x4ee05e;}const _0x2efd4e=_0x309c8a(),_0x10942c=_0x37bfbc['id'],_0x43110f='insertion:'+_0x5ac69b,_0x4dae6a=this['_setSuggestionData']({'id':_0x2efd4e,'type':_0x43110f,'createdAt':new Date(),'authorId':_0x10942c,'attributes':_0x499771});for(const _0x498d49 of _0xcda1b6)this['_addSuggestionMarker'](_0x43110f,_0x2efd4e,_0x10942c,_0x498d49,u['getMultiRangeId']());return _0x4dae6a;}['markInlineFormat'](_0x5ba93e,_0x585831,_0x3ce97c=null,_0x5e1f70={}){if(_0x3ce97c=_0x3ce97c||Ft(_0x585831),_0x5ba93e['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x414d44=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3ce97c,'accept');return this['forceDefaultExecution'](()=>_0x414d44([_0x5ba93e],_0x585831,_0x5e1f70)),null;}const _0x620493=this['editor']['plugins']['get']('Users')['me'],_0x12f1b8=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3d70c2,meta:_0x503b68}of this['_findSuggestions'](_0x5ba93e,'insertion'))_0x503b68['isOwn']&&!_0x503b68['isInsideObject']&&_0x12f1b8['push'](..._0x3d70c2['getRanges']());}const _0x449029=function(_0x3e01db,_0x17ee37){const _0x4fb507=[];for(const _0x562925 of _0x17ee37){const _0x2fcba6=_0x3e01db['getIntersection'](_0x562925);_0x2fcba6&&_0x4fb507['push'](_0x2fcba6);}return _0x4fb507;}(_0x5ba93e,_0x12f1b8),_0x1fe062=function(_0x41479d,_0x5a1669){const _0x11b40a=[_0x41479d];for(const _0x434538 of _0x5a1669){let _0x465aab=0x0;for(;_0x465aab<_0x11b40a['length'];){const _0x219776=_0x11b40a[_0x465aab]['getDifference'](_0x434538);_0x11b40a['splice'](_0x465aab,0x1,..._0x219776),_0x465aab+=_0x219776['length'];}}return _0x11b40a;}(_0x5ba93e,_0x12f1b8);_0x449029['length']&&this['_model']['change'](()=>{for(const _0x109d77 of _0x449029){const _0x3f1abd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3ce97c,'accept');this['forceDefaultExecution'](()=>_0x3f1abd([_0x109d77],_0x585831,_0x5e1f70));}});for(const _0x46d7ad of _0x1fe062){let _0x217a06=null,_0x2d0a43=_0x46d7ad['start'],_0x18d3dd=_0x46d7ad['end'];for(const {suggestion:_0x2dd985,meta:_0x3f9222}of this['_findSuggestions'](_0x46d7ad,'formatInline')){if(!_0x3f9222['isOwn'])continue;if(_0x2dd985['subType']!=_0x3ce97c)continue;if(!Kt(_0x2dd985,_0x5e1f70))continue;const _0x42006b=_0x2dd985['getFirstRange']();if(_0x42006b['containsRange'](_0x46d7ad,!0x0))return null;_0x2d0a43=_0x2d0a43['isBefore'](_0x42006b['start'])?_0x2d0a43:_0x42006b['start'],_0x18d3dd=_0x18d3dd['isAfter'](_0x42006b['end'])?_0x18d3dd:_0x42006b['end'],_0x217a06?_0x42006b['start']['isBefore'](_0x217a06['getFirstRange']()['start'])?(_0x217a06['removeMarkers'](),_0x217a06=_0x2dd985):_0x2dd985['removeMarkers']():_0x217a06=_0x2dd985;}const _0x5ba15e=this['_model']['createRange'](_0x2d0a43,_0x18d3dd);if(_0x217a06)this['_setSuggestionRange'](_0x217a06,_0x5ba15e);else{const _0x4f17bd=_0x309c8a(),_0x506330=_0x620493['id'];this['_setSuggestionData']({'id':_0x4f17bd,'type':'formatInline:'+_0x3ce97c,'data':_0x585831,'createdAt':new Date(),'authorId':_0x506330,'attributes':_0x5e1f70}),this['_addSuggestionMarker']('formatInline:'+_0x3ce97c,_0x4f17bd,_0x506330,_0x5ba15e);}}return null;}['markBlockFormat'](_0x12cf55,_0x295ecd,_0x577183=[],_0x2dc6c8=null,_0x5b591a={}){_0x295ecd['formatGroupId']||(_0x295ecd['formatGroupId']=_0x295ecd['commandName']),_0x295ecd['multipleBlocks']=_0x12cf55['is']('range'),_0x2dc6c8=_0x2dc6c8||Ft(_0x295ecd);const _0x5db2ab=_0x577183['map'](_0x40beab=>Ht(_0x40beab,this['_model'])),_0x207e9f=_0x12cf55['is']('range')?_0x12cf55:Ht(_0x12cf55,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3df0e0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2dc6c8,'accept');return this['forceDefaultExecution'](()=>_0x3df0e0([_0x207e9f],_0x295ecd,_0x5b591a)),null;}_0x5db2ab['push'](_0x207e9f);let _0x14c214=!0x0;for(const _0x210803 of _0x5db2ab)if(!this['_rangeIsInLocalUserInsertion'](_0x210803)){_0x14c214=!0x1;break;}if(_0x14c214&&'always'!==this['_trackFormatChanges']){const _0x5d224e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2dc6c8,'accept');return this['forceDefaultExecution'](()=>_0x5d224e([_0x207e9f],_0x295ecd,_0x5b591a)),null;}let _0x46aaf1=null,_0x11796f=_0x207e9f['start'],_0x1f747e=_0x207e9f['end'];for(const {suggestion:_0x2f3622,meta:_0x1d9eef}of this['_findSuggestions'](_0x207e9f,'formatBlock')){if(!_0x1d9eef['isOwn'])continue;if(_0x1d9eef['isNextTo']||_0x1d9eef['containsRangeInObject']||_0x1d9eef['isInsideObject'])continue;if(_0x2f3622['data']['formatGroupId']!=_0x295ecd['formatGroupId'])continue;if(!Kt(_0x2f3622,_0x5b591a))continue;const _0x4dbfe9=_0x2f3622['getFirstRange']();if(_0x2f3622['subType']==_0x2dc6c8){if(_0x4dbfe9['containsRange'](_0x207e9f,!0x0))return null;_0x11796f=_0x11796f['isBefore'](_0x4dbfe9['start'])?_0x11796f:_0x4dbfe9['start'],_0x1f747e=_0x1f747e['isAfter'](_0x4dbfe9['end'])?_0x1f747e:_0x4dbfe9['end'],_0x46aaf1?_0x4dbfe9['start']['isBefore'](_0x46aaf1['getFirstRange']()['start'])?(_0x46aaf1['removeMarkers'](),_0x46aaf1=_0x2f3622):_0x2f3622['removeMarkers']():_0x46aaf1=_0x2f3622;}else{const _0x49f473=_0x207e9f['getIntersection'](_0x4dbfe9);this['_cutOutSuggestionMarker'](_0x2f3622,_0x49f473);}}const _0x51e7bc=this['editor']['plugins']['get']('Users')['me'],_0x55574d=_0x309c8a(),_0x10c753=_0x51e7bc['id'];if(_0x46aaf1)return this['_setSuggestionRange'](_0x46aaf1,this['_model']['createRange'](_0x11796f,_0x1f747e)),_0x46aaf1;{const _0x20b541=this['_setSuggestionData']({'id':_0x55574d,'type':'formatBlock:'+_0x2dc6c8,'data':_0x295ecd,'createdAt':new Date(),'authorId':_0x10c753,'attributes':_0x5b591a});return this['_addSuggestionMarker']('formatBlock:'+_0x2dc6c8,_0x55574d,_0x10c753,this['_model']['createRange'](_0x11796f,_0x1f747e)),_0x20b541;}}['markMultiRangeBlockFormat'](_0x1dd26b,_0x4cbf3,_0x441d3b=[],_0x172099=null,_0x30fed5={}){_0x4cbf3['formatGroupId']||(_0x4cbf3['formatGroupId']=_0x4cbf3['commandName']);const _0x2e6a1e=_0x1dd26b[0x0];_0x4cbf3['multipleBlocks']=_0x2e6a1e['is']('range'),_0x172099=_0x172099||Ft(_0x4cbf3);const _0x2c3fb7=_0x441d3b['map'](_0x5e747a=>Ht(_0x5e747a,this['_model'])),_0x8e0ae2=_0x2e6a1e['is']('range')?_0x1dd26b:_0x1dd26b['map'](_0x536825=>Ht(_0x536825,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2b5073=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x172099,'accept');return this['forceDefaultExecution'](()=>_0x2b5073(_0x8e0ae2,_0x4cbf3,_0x30fed5)),null;}_0x2c3fb7['push'](..._0x8e0ae2);let _0xce1b44=!0x0;for(const _0x3c52ec of _0x2c3fb7)if(!this['_rangeIsInLocalUserInsertion'](_0x3c52ec)){_0xce1b44=!0x1;break;}if(_0xce1b44&&'always'!==this['_trackFormatChanges']){const _0x3b555f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x172099,'accept');return this['forceDefaultExecution'](()=>_0x3b555f(_0x8e0ae2,_0x4cbf3,_0x30fed5)),null;}const _0x28411a=this['editor']['plugins']['get']('Users')['me'];for(const _0x444f96 of this['getSuggestions']()){if(_0x444f96['author']['id']!=_0x28411a['id'])continue;if('formatBlock'!=_0x444f96['type']||_0x444f96['data']['formatGroupId']!=_0x4cbf3['formatGroupId'])continue;if(!Kt(_0x444f96,_0x30fed5))continue;const _0x3512a5=_0x444f96['subType']==_0x172099;for(let _0x1645e7=0x0;_0x1645e7<_0x8e0ae2['length'];_0x1645e7++){const _0x15eebb=_0x8e0ae2[_0x1645e7];for(const _0x1a9fa5 of _0x444f96['getMarkers']()){const _0x7d56b8=_0x1a9fa5['getRange']();if(_0x15eebb['isEqual'](_0x7d56b8)){_0x3512a5?(_0x8e0ae2['splice'](_0x1645e7,0x1),_0x1645e7--):_0x444f96['removeMarker'](_0x1a9fa5['name']);break;}}}}if(0x0==_0x8e0ae2['length'])return null;const _0x24ef4f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x172099,'join');for(const _0x167afa of this['getSuggestions']())if(_0x167afa['author']['id']==_0x28411a['id']&&'formatBlock'==_0x167afa['type']&&_0x167afa['data']['formatGroupId']==_0x4cbf3['formatGroupId']&&_0x167afa['subType']==_0x172099&&Kt(_0x167afa,_0x30fed5)&&(_0x24ef4f(_0x167afa['getRanges'](),_0x8e0ae2)||_0x24ef4f(_0x8e0ae2,_0x167afa['getRanges']()))){for(const _0x31f411 of _0x8e0ae2)_0x167afa['addRange'](_0x31f411);return _0x167afa;}const _0x3e303b=_0x309c8a(),_0x1fcc6f=_0x28411a['id'],_0x17950a='formatBlock:'+_0x172099,_0x1ec0c1=this['_setSuggestionData']({'id':_0x3e303b,'type':_0x17950a,'data':_0x4cbf3,'createdAt':new Date(),'authorId':_0x1fcc6f,'attributes':_0x30fed5});for(const _0xaaf9da of _0x8e0ae2)this['_addSuggestionMarker'](_0x17950a,_0x3e303b,_0x1fcc6f,_0xaaf9da,u['getMultiRangeId']());return _0x1ec0c1;}['markDeletion'](_0x129820,_0x5ef11b=null,_0x520991={}){if(_0x129820['isCollapsed'])return null;const _0x138dcd=this['editor']['plugins']['get']('Users')['me'],_0x4a6b2d=new _0xfaa3eb(_0x129820['start'],_0x129820['end']);for(const {suggestion:_0x218051,meta:_0x413d82}of this['_findSuggestions'](_0x4a6b2d,'insertion'))if(_0x413d82['isOwn']&&!_0x413d82['isNextTo']){if(_0x218051['isMultiRange']){const _0x13a67a=_0x218051['getRanges']()['filter'](_0x201f37=>'$graveyard'!=_0x201f37['root']['rootName']);_0x13a67a['every'](_0x5d6f2c=>_0x4a6b2d['containsRange'](_0x5d6f2c,!0x0))&&_0x218051['discard']();if(_0x13a67a['some'](_0x4c1683=>_0x4c1683['containsRange'](_0x4a6b2d,!0x0))){const _0xfc6433=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5ef11b,'accept');return this['forceDefaultExecution'](()=>_0xfc6433([_0x4a6b2d],null,_0x520991)),null;}}else{const _0x5b8f55=_0x4a6b2d['getIntersection'](_0x218051['getFirstRange']());null!==_0x5b8f55&&_0x218051['_onDiscard']([_0x5b8f55],null,_0x520991);}}if(_0x4a6b2d['detach'](),_0x4a6b2d['isCollapsed']||'$graveyard'==_0x4a6b2d['root']['rootName'])return null;let _0x1494f4=null,_0x4b7335=_0x4a6b2d['start'],_0x368bf2=_0x4a6b2d['end'];const _0x519c49=this['_findSuggestions'](_0x4a6b2d,'deletion');for(const {suggestion:_0x16dd3e,meta:_0x551d20}of _0x519c49){const _0x52160e=this['_model']['createRange'](_0x4b7335,_0x368bf2);if(_0x551d20['isOwn']&&(this['_mergeNestedSuggestions']||!_0x551d20['containsRangeInObject']&&!_0x551d20['isInsideObject'])){if(_0x16dd3e['isMultiRange']){if(!Kt(_0x16dd3e,_0x520991))continue;let _0x565393=!0x0;for(const _0x3b5fc0 of _0x16dd3e['getRanges']()){if(_0x3b5fc0['containsRange'](_0x52160e,!0x0))return _0x16dd3e;_0x52160e['containsRange'](_0x3b5fc0)||(_0x565393=!0x1);}_0x565393&&_0x16dd3e['discard']();}else{const _0x4d09a9=_0x16dd3e['getFirstRange']();if(_0x4d09a9['containsRange'](_0x52160e,!0x0))return _0x16dd3e;if(!Kt(_0x16dd3e,_0x520991)){_0x52160e['containsRange'](_0x4d09a9)?_0x16dd3e['removeMarkers']():_0x4d09a9['containsPosition'](_0x4b7335)?_0x4b7335=_0x4d09a9['end']:_0x4d09a9['containsPosition'](_0x368bf2)&&(_0x368bf2=_0x4d09a9['start']);continue;}_0x4b7335=_0x4b7335['isBefore'](_0x4d09a9['start'])?_0x4b7335:_0x4d09a9['start'],_0x368bf2=_0x368bf2['isAfter'](_0x4d09a9['end'])?_0x368bf2:_0x4d09a9['end'],_0x520991=Object['assign']({},_0x16dd3e['attributes']),_0x1494f4?_0x4d09a9['start']['isBefore'](_0x1494f4['getFirstRange']()['start'])?(_0x1494f4['removeMarkers'](),_0x1494f4=_0x16dd3e):_0x16dd3e['removeMarkers']():_0x1494f4=_0x16dd3e;}}}if(_0x1494f4)return this['_setSuggestionRange'](_0x1494f4,this['_model']['createRange'](_0x4b7335,_0x368bf2)),_0x1494f4;{const _0x376981=_0x309c8a(),_0x6ec689=this['_model']['createRange'](_0x4b7335,_0x368bf2),_0x3a94dd=_0x138dcd['id'],_0x1b238a=_0x5ef11b?'deletion:'+_0x5ef11b:'deletion',_0x17694a=this['_setSuggestionData']({'id':_0x376981,'type':_0x1b238a,'createdAt':new Date(),'authorId':_0x3a94dd,'attributes':_0x520991});return this['_addSuggestionMarker'](_0x1b238a,_0x376981,_0x3a94dd,_0x6ec689),_0x17694a;}}['markMultiRangeDeletion'](_0x16a401,_0x19e26='multi',_0x301003={}){const _0x2b91e5=this['editor']['plugins']['get']('Users')['me'],_0x49d906=_0x16a401['map'](_0x158dce=>new _0xfaa3eb(_0x158dce['start'],_0x158dce['end'])),_0x1c7f48=new Set();for(const {suggestion:_0x3d7a6f,meta:_0x1712af}of this['_findSuggestions'](_0x49d906,'insertion'))_0x1712af['isOwn']&&!_0x1712af['isNextTo']&&_0x1c7f48['add'](_0x3d7a6f);for(const _0x51a466 of _0x1c7f48)if(_0x51a466['isMultiRange']){const _0x5b154e=_0x51a466['getRanges']();(!_0x51a466['attributes']||!_0x51a466['attributes']['skipNestingCheck'])&&(_0x5b154e['every'](_0x4ccb16=>_0x49d906['some'](_0x55f4c4=>_0x55f4c4['containsRange'](_0x4ccb16,!0x0)))&&_0x51a466['discard']());if(_0x49d906['every'](_0x4d4dde=>_0x5b154e['some'](_0x2b8989=>_0x2b8989['containsRange'](_0x4d4dde,!0x0)))){const _0x2ac36c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x19e26,'accept');return this['forceDefaultExecution'](()=>_0x2ac36c(_0x16a401,null,_0x301003)),null;}}else{const _0x3dc1f5=_0x51a466['getFirstRange']();_0x49d906['some'](_0x118363=>_0x118363['containsRange'](_0x3dc1f5,!0x0))&&_0x51a466['discard']();if(_0x49d906['every'](_0x5cdf83=>_0x3dc1f5['containsRange'](_0x5cdf83,!0x0))){const _0x4a0b3b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x19e26,'accept');return this['forceDefaultExecution'](()=>_0x4a0b3b(_0x49d906,null,_0x301003)),null;}}const _0x1abe8d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x19e26,'join');let _0x411207=null;for(const _0x387697 of this['getSuggestions']())if(_0x387697['author']['id']==_0x2b91e5['id']&&_0x387697['isInContent']&&'deletion'==_0x387697['type']&&_0x387697['subType']==_0x19e26&&Kt(_0x387697,_0x301003)&&(_0x1abe8d(_0x387697['getRanges'](),_0x49d906)||_0x1abe8d(_0x49d906,_0x387697['getRanges']()))){if(_0x411207){if(_0x387697['commentThread']&&_0x387697['commentThread']['length'])continue;for(const _0x80d510 of _0x387697['getRanges']())_0x411207['isIntersectingWithRange'](_0x80d510)||_0x411207['addRange'](_0x80d510);_0x387697['removeMarkers']();}else{_0x411207=_0x387697;for(const _0x304e69 of _0x49d906)_0x387697['isIntersectingWithRange'](_0x304e69)||_0x387697['addRange'](_0x304e69);}}if(_0x411207)return _0x411207;_0x1c7f48['clear']();for(const {suggestion:_0x2800e5,meta:_0x3d870f}of this['_findSuggestions'](_0x49d906,'deletion'))_0x3d870f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3d870f['containsRangeInObject']&&!_0x3d870f['isInsideObject'])&&Kt(_0x2800e5,_0x301003)&&_0x1c7f48['add'](_0x2800e5);for(const _0x283ca8 of _0x1c7f48){const _0x4f404a=_0x283ca8['getRanges']();if(!_0x301003||!_0x301003['skipNestingCheck']){if(_0x49d906['every'](_0x2f376c=>_0x4f404a['some'](_0x2ede95=>_0x2ede95['containsRange'](_0x2f376c,!0x0))))return _0x283ca8;}(!_0x283ca8['attributes']||!_0x283ca8['attributes']['skipNestingCheck'])&&(_0x4f404a['every'](_0x3e4763=>_0x49d906['some'](_0x3229b9=>_0x3229b9['containsRange'](_0x3e4763,!0x0)))&&_0x283ca8['discard']());}const _0x332a71=_0x309c8a(),_0x366a2d=_0x2b91e5['id'],_0xf7c49e='deletion:'+_0x19e26,_0x1d123a=this['_setSuggestionData']({'id':_0x332a71,'type':_0xf7c49e,'createdAt':new Date(),'authorId':_0x366a2d,'attributes':_0x301003});for(const _0x472890 of _0x49d906)_0x472890['detach'](),_0x472890['isCollapsed']||'$graveyard'==_0x472890['root']['rootName']||this['_addSuggestionMarker'](_0xf7c49e,_0x332a71,_0x366a2d,_0x472890,u['getMultiRangeId']());return _0x1d123a;}['markAttributeChange'](_0xd8b4d4,_0x29206e,_0xde4bdd,_0x3e77d1,_0x363bf3){if(_0xd8b4d4['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4ecc01=this['editor']['plugins']['get']('Users')['me']['id'],_0x1fa755=Array['from'](this['_suggestions']['values']())['filter'](_0x4c204e=>'attribute'==_0x4c204e['type']&&_0x4c204e['data']['key']==_0x29206e&&_0x4c204e['isIntersectingWithRange'](_0xd8b4d4));if('default'===this['_trackFormatChanges']){const _0x5ce110=this['_findSuggestions'](_0xd8b4d4,'insertion')['filter'](({meta:_0x5b6706})=>_0x5b6706['isOwn']&&!_0x5b6706['isInsideObject']&&!_0x5b6706['isNextTo'])['map'](({suggestion:_0x201e11})=>_0x201e11);_0x1fa755['unshift'](..._0x5ce110);}const _0x3fd54f=new Map([[_0xd8b4d4,_0xde4bdd]]);for(const _0x5dd77d of _0x1fa755){const _0x138e90='attribute'==_0x5dd77d['type']?_0x5dd77d['data']['oldValue']:void 0x0,_0x55061a=_0x5dd77d['getFirstRange'](),_0x430315=Array['from'](_0x3fd54f['keys']())['find'](_0x34a4df=>_0x34a4df['isIntersecting'](_0x55061a));if(!_0x430315)continue;const _0x556e1e=_0x430315['getDifference'](_0x55061a);this['_isBlockAttribute'](_0x29206e)&&'insertion'==_0x5dd77d['type']&&0x0!=_0x556e1e['length']||(_0x3fd54f['delete'](_0x430315),_0x556e1e['forEach'](_0x4b07c4=>{_0x3fd54f['set'](_0x4b07c4,_0xde4bdd);}),'insertion'!=_0x5dd77d['type']&&_0x138e90!=_0x3e77d1&&_0x3fd54f['set'](_0x430315['getIntersection'](_0x55061a),_0x138e90));}const _0x4bcc5a=[];for(const [_0x631d6,_0x59e771]of _0x3fd54f){const _0x4ad030=_0x309c8a(),_0x5c6d7a={'key':_0x29206e,'oldValue':_0x59e771,'newValue':_0x3e77d1};_0x29206e['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':_0x29206e});const _0x536975=('attribute:'+(_0x29206e+'|'+Ft({'newValue':_0x3e77d1})))['substring'](0x0,0x3c),_0x224be5=this['_setSuggestionData']({'id':_0x4ad030,'type':_0x536975,'data':_0x5c6d7a,'createdAt':new Date(),'authorId':_0x4ecc01,'attributes':_0x363bf3});_0x4bcc5a['push'](_0x224be5),this['_addSuggestionMarker'](_0x536975,_0x4ad030,_0x4ecc01,_0x631d6);}return _0x4bcc5a;}['enableDefaultAttributesIntegration'](_0x524d0a){this['enableCommand'](_0x524d0a,(_0x294976,..._0x2e2719)=>{this['_recordAttributeChanges'](()=>{_0x294976(..._0x2e2719);});});}['registerBlockAttribute'](_0x576126){this['_blockAttributeKeys']['add'](_0x576126);}['registerInlineAttribute'](_0xfd7d84){this['_inlineAttributeKeys']['add'](_0xfd7d84);}['_getAttributeKey'](_0x201475){return'attribute'==_0x201475['type']?_0x201475['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2c68fd,_0x2170ec){const _0x19e9b7=_0x2c68fd['getFirstMarker']();this['_model']['change'](_0x13cad3=>{_0x13cad3['updateMarker'](_0x19e9b7,{'range':_0x2170ec});});}['_addThreadToSuggestion'](_0x402797){const _0x16c5fb=_0x402797['id'],_0xa0ef80=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x16c5fb)||this['_commentsRepository']['addCommentThread']({'channelId':_0xa0ef80,'threadId':_0x16c5fb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x20419f=this['_commentsRepository']['getCommentThread'](_0x16c5fb);_0x20419f['unbind']('isRemovable'),_0x20419f['isRemovable']=!0x1,_0x402797['commentThread']=_0x20419f;}['_checkSuggestionCorrectness'](_0x4052ee,_0x28c52f,_0x3c958b,_0x391edd){if(_0x4052ee['type']!=_0x28c52f||_0x4052ee['subType']!=_0x3c958b||_0x4052ee['creator']['id']!=_0x391edd)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1b3384('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3b4116,_0x1f947b){const _0x404e79=_0x3b4116['getFirstRange']();if(_0x1f947b['isEqual'](_0x404e79))_0x3b4116['removeMarkers']();else{if(_0x404e79['containsRange'](_0x1f947b)){const _0x37282d=this['_model']['createPositionAt'](_0x1f947b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3b4116,this['_model']['createRange'](_0x404e79['start'],_0x37282d));const _0x151c54=_0x309c8a(),_0xb43073=_0x3b4116['creator']['id'],_0x3d0f59=_0x3b4116['type']+':'+_0x3b4116['subType'];this['_setSuggestionData']({'id':_0x151c54,'type':_0x3d0f59,'createdAt':new Date(),'authorId':_0xb43073,'data':_0x3b4116['data'],'attributes':_0x3b4116['attributes']});const _0x34f395=this['_model']['createPositionAt'](_0x1f947b['end']['parent'],'after'),_0x2976d0=this['_model']['createRange'](_0x34f395,_0x404e79['end']);this['_addSuggestionMarker'](_0x3d0f59,_0x151c54,_0xb43073,_0x2976d0);}else{if(_0x404e79['containsPosition'](_0x1f947b['start'])){const _0x5bc5a3=this['_model']['createPositionAt'](_0x1f947b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3b4116,this['_model']['createRange'](_0x404e79['start'],_0x5bc5a3));}else{const _0x2aad56=this['_model']['createPositionAt'](_0x1f947b['end']['parent'],'after');this['_setSuggestionRange'](_0x3b4116,this['_model']['createRange'](_0x2aad56,_0x404e79['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x21d424){for(const {suggestion:_0x312175,meta:_0x19a040}of this['_findSuggestions'](_0x21d424,'insertion')){if(!_0x19a040['isOwn'])continue;const _0x516ba3=_0x312175['getRanges']();for(const _0x49625b of _0x516ba3)if(!_0x21d424['getDifference'](_0x49625b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1bdcb3){const _0x34abeb=this['editor']['plugins']['get']('Users')['getUser'](_0x1bdcb3);if(!_0x34abeb)throw new _0x1b3384('track-changes-user-not-found',this);return _0x34abeb;}['_getExternalAuthor'](_0x232f1a){const _0x5e3aee=this['editor']['plugins']['get']('Users'),_0x5ab9ff=_0x33d343('external:'+_0x232f1a),_0x3b4bc7=_0x5e3aee['getUser'](_0x5ab9ff);return _0x3b4bc7||_0x5e3aee['addUser']({'id':_0x5ab9ff,'name':_0x232f1a});}['_createSuggestion'](_0x1e5d05,_0x4bb64a,_0x233889,_0x3f331b,_0x53abf1){const _0xf2017=this['_getAuthorFromId'](_0x3f331b),_0x9b193d=this['_suggestionFactory']['buildSuggestion'](_0x1e5d05,_0x4bb64a,_0x233889,_0xf2017,_0x53abf1,_0x535de0=>{this['_updateSuggestionData'](_0x233889,{'attributes':_0x535de0});const _0x546821=this['getSuggestion'](_0x233889);this['_joinWithAdjacentSuggestions'](new Set([_0x546821])),this['_refreshSuggestionsChain'](new Set([_0x546821]));});return this['listenTo'](_0x9b193d,'accept',()=>{this['_updateSuggestionData'](_0x233889,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x9b193d,'discard',()=>{this['_updateSuggestionData'](_0x233889,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x233889,_0x9b193d),this['_suggestionState']['set'](_0x9b193d,'notReady'),_0x9b193d;}['_splitMarkerName'](_0x479bb7){const _0x119808=_0x479bb7['split'](':');return{'group':_0x119808[0x0],'type':_0x119808[0x1],'subType':_0x119808['length']>=0x5?_0x119808[0x2]:null,'id':_0x119808['length']<0x5?_0x119808[0x2]:_0x119808[0x3],'authorId':_0x119808['length']<0x5?_0x119808[0x3]:_0x119808[0x4],'markerCount':0x6==_0x119808['length']?_0x119808[0x5]:null};}['_breakSuggestionMarker'](_0x3f7a22,_0x1b8b50,_0x2a7bf0){const _0x967f7c=_0x3f7a22['getFirstRange'](),_0x5bf86a=_0x967f7c['start'],_0x2edc02=_0x967f7c['end'];this['_setSuggestionRange'](_0x3f7a22,this['_model']['createRange'](_0x5bf86a,_0x1b8b50));const _0x2ed194=_0x309c8a(),_0xf0bbff=_0x3f7a22['creator']['id'],_0x39c365=_0x3f7a22['type']+(_0x3f7a22['subType']?':'+_0x3f7a22['subType']:'');this['_setSuggestionData']({'id':_0x2ed194,'type':_0x39c365,'createdAt':new Date(),'authorId':_0xf0bbff,'originalSuggestionId':_0x3f7a22['id'],'attributes':_0x3f7a22['attributes'],'data':_0x3f7a22['data']});const _0x239f48=this['_getAttributeKey'](_0x3f7a22);('formatBlock'==_0x3f7a22['type']||_0x239f48&&this['_isBlockAttribute'](_0x239f48))&&(_0x2a7bf0=this['_model']['createPositionBefore'](_0x2a7bf0['parent'])),this['_addSuggestionMarker'](_0x39c365,_0x2ed194,_0xf0bbff,this['_model']['createRange'](_0x2a7bf0,_0x2edc02));}['_findSuggestions'](_0x16836b,_0x522ca6=null){const _0x2d97af=[],_0x50a40d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x16836b)||(_0x16836b=[_0x16836b]);for(const _0x31fb23 of this['getSuggestions']()){if(!_0x31fb23['isInContent'])continue;if(_0x522ca6&&_0x31fb23['type']!=_0x522ca6)continue;let _0x3e16db=!0x1;for(const _0x5d45a2 of _0x31fb23['getRanges']()){for(const _0x9f685d of _0x16836b){const _0x572956=_0x9f685d['start']['isEqual'](_0x5d45a2['end'])||_0x9f685d['end']['isEqual'](_0x5d45a2['start']);if(_0x572956||_0x9f685d['getIntersection'](_0x5d45a2)){const _0x2966a6=_0x9f685d['containsRange'](_0x5d45a2)&&Vt(this['_model']['schema'],_0x5d45a2['start'],_0x9f685d),_0x215df6=_0x5d45a2['containsRange'](_0x9f685d)&&Vt(this['_model']['schema'],_0x9f685d['start'],_0x5d45a2);_0x2d97af['push']({'suggestion':_0x31fb23,'meta':{'isOwn':_0x50a40d==_0x31fb23['author'],'isNextTo':_0x572956,'isInsideObject':_0x2966a6,'containsRangeInObject':_0x215df6}}),_0x3e16db=!0x0;break;}}if(_0x3e16db)break;}}return _0x2d97af;}['_addSuggestionMarker'](_0x5289e7,_0xfe042f,_0x4623b1,_0x1ab7ed,_0x378d52){this['_model']['change'](_0x4575cd=>{let _0x37b814='suggestion:'+_0x5289e7+':'+_0xfe042f+':'+_0x4623b1;_0x378d52&&(_0x37b814=_0x37b814+':'+_0x378d52),_0x4575cd['addMarker'](_0x37b814,{'range':_0x1ab7ed,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x56c944){const _0xacf951=_0x56c944['previous'],_0x4e1d96=_0x56c944['next'];_0x56c944['previous']=null,_0x56c944['next']=null,null!=_0xacf951&&_0xacf951['next']==_0x56c944&&(_0xacf951['next']=_0x4e1d96),null!=_0x4e1d96&&_0x4e1d96['previous']==_0x56c944&&(_0x4e1d96['previous']=_0xacf951),'ready'==this['_suggestionState']['get'](_0x56c944)&&(this['_suggestionState']['set'](_0x56c944,'removed'),this['fire']('suggestionUnloaded',_0x56c944,_0xacf951,_0x4e1d96));}['_setSuggestionData'](_0x28f9cb){const _0xc69f75=_0x28f9cb['id'],_0x2a14fa=this['addSuggestionData'](_0x28f9cb);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x6c7ed6=this['editor']['plugins']['get']('PendingActions'),_0x535100=_0x2a14fa['hasComments'],_0x3d7326=_0x2a14fa['subType']?_0x2a14fa['type']+':'+_0x2a14fa['subType']:_0x2a14fa['type'],_0x37ee6a=this['editor']['locale'],_0x524040=_0x6c7ed6['add'](o(_0x37ee6a,'PENDING_ACTION_SUGGESTION')),_0x272911={'id':_0xc69f75,'type':_0x3d7326,'hasComments':_0x535100,'data':_0x28f9cb['data']||null,'originalSuggestionId':_0x28f9cb['originalSuggestionId']||null,'attributes':_0x2a14fa['attributes']};this['_adapter']['addSuggestion'](_0x272911)['then'](_0x1dffda=>{_0x2a14fa['_saved']=!0x0,_0x6c7ed6['remove'](_0x524040),_0x1dffda&&_0x1dffda['createdAt']&&(this['_suggestions']['get'](_0xc69f75)['createdAt']=_0x1dffda['createdAt']);})['catch'](_0x61bb21=>{throw _0xdb8619('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2a14fa['discard']();}),_0x2a14fa['stopListening'](),this['_suggestions']['delete'](_0x2a14fa['id']),this['_suggestionState']['delete'](_0x2a14fa),_0x61bb21;});}return _0x2a14fa;}['_isBlockAttribute'](_0x25e167){return this['_blockAttributeKeys']['has'](_0x25e167);}['_updateSuggestionData'](_0x24d394,_0x434e92){const _0x4b153a=this['editor']['plugins']['get']('PendingActions'),_0xacd4b2=this['getSuggestion'](_0x24d394);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xacd4b2['_saved']){const _0x5d62f9=_0x4b153a['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x24d394,_0x434e92)['then'](()=>{_0x4b153a['remove'](_0x5d62f9);});}else _0xacd4b2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x24d394,_0x434e92);});}}['_getSuggestionData'](_0x3fdb0e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1b3384('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3fdb0e);}['_handleNewSuggestionMarker'](_0x4d77ff){const {id:_0x49b92d,type:_0x4f75d6,subType:_0x43bc5e,authorId:_0x192b46}=this['_splitMarkerName'](_0x4d77ff),_0x2d6c8e=this['_suggestions']['get'](_0x49b92d)||this['_createSuggestion'](_0x4f75d6,_0x43bc5e,_0x49b92d,_0x192b46,{});switch(this['_checkSuggestionCorrectness'](_0x2d6c8e,_0x4f75d6,_0x43bc5e,_0x192b46),this['_suggestionState']['get'](_0x2d6c8e)){case'notReady':this['_getSuggestionData'](_0x49b92d)['then'](_0x20696a=>{let _0x545e16=Promise['resolve']();_0x20696a['hasComments']&&(_0x545e16=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x49b92d})),_0x545e16['then'](()=>{this['addSuggestionData'](_0x20696a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2d6c8e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x49b92d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2d6c8e,'ready'),this['fire']('suggestionLoaded',_0x2d6c8e);break;case'ready':this['fire']('suggestionChanged',_0x2d6c8e);}return _0x2d6c8e['addMarkerName'](_0x4d77ff),_0x2d6c8e;}['_refreshSuggestionsChain'](_0x379bd9){const _0x3641ca=Array['from'](_0x379bd9),_0x14487e=_0x3641ca['filter'](_0x453a17=>'attribute'==_0x453a17['type']);this['_refreshAttributeSuggestionsChain'](_0x14487e);const _0x1ab379=_0x3641ca['filter'](_0x48e4f5=>!_0x48e4f5['isMultiRange']&&'attribute'!=_0x48e4f5['type']),_0x5ce9af=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2aff88=>!_0x2aff88['isMultiRange']&&'attribute'!=_0x2aff88['type']),_0x42090b=_0x5ce9af['filter'](_0x46ebc=>!_0x379bd9['has'](_0x46ebc)),_0x353fff=new Map(_0x5ce9af['map'](_0x2a7497=>[_0x2a7497,this['_suggestionFactory']['getSuggestionCallback'](_0x2a7497['type'],_0x2a7497['subType'],'chain')])),_0x318c21=new Map(_0x5ce9af['map'](_0x412442=>[_0x412442,_0x412442['getFirstRange']()])),_0x1bea23=new Set(),_0x346aae=new Set();for(let _0x475e61=0x0;_0x475e61<_0x1ab379['length'];_0x475e61++)_0x447d42(_0x1ab379[_0x475e61],_0x1ab379,_0x475e61+0x1);for(let _0x5ba6ad=0x0;_0x5ba6ad<_0x1ab379['length'];_0x5ba6ad++)_0x447d42(_0x1ab379[_0x5ba6ad],_0x42090b,0x0);const _0x3e5cff=new Set();for(let _0x23174e=0x0;_0x23174e<_0x1ab379['length'];_0x23174e++){const _0x5e3ac8=_0x1ab379[_0x23174e];!_0x346aae['has'](_0x5e3ac8)&&_0x5e3ac8['previous']&&(_0x3e5cff['add'](_0x5e3ac8['previous']),_0x5e3ac8['previous']['next']===_0x5e3ac8&&(_0x5e3ac8['previous']['next']=null),_0x5e3ac8['previous']=null),!_0x1bea23['has'](_0x5e3ac8)&&_0x5e3ac8['next']&&(_0x3e5cff['add'](_0x5e3ac8['next']),_0x5e3ac8['next']['previous']===_0x5e3ac8&&(_0x5e3ac8['next']['previous']=null),_0x5e3ac8['next']=null);}function _0x447d42(_0x5a5b08,_0x7082fe,_0x34a56d){for(let _0x4a811b=_0x34a56d;_0x4a811b<_0x7082fe['length'];_0x4a811b++){const _0x5774fc=_0x364b2f(_0x5a5b08,_0x7082fe[_0x4a811b]);_0x5774fc&&(_0x5774fc[0x0]['next']=_0x5774fc[0x1],_0x5774fc[0x1]['previous']=_0x5774fc[0x0],_0x1bea23['add'](_0x5774fc[0x0]),_0x346aae['add'](_0x5774fc[0x1]));}}function _0x364b2f(_0x59f380,_0x101aef){if(_0x59f380['author']['id']!==_0x101aef['author']['id'])return null;const _0x4f106c=_0x353fff['get'](_0x59f380)(_0x59f380,_0x101aef,_0x318c21['get'](_0x59f380),_0x318c21['get'](_0x101aef));if(!_0x4f106c)return null;return _0x353fff['get'](_0x101aef)(_0x59f380,_0x101aef,_0x318c21['get'](_0x59f380),_0x318c21['get'](_0x101aef))?_0x4f106c[0x1]['commentThread']&&_0x4f106c[0x1]['commentThread']['length']?null:_0x4f106c:null;}_0x3e5cff['size']&&this['_refreshSuggestionsChain'](_0x3e5cff);}['_refreshAttributeSuggestionsChain'](_0x1ce4cf){if(0x0==_0x1ce4cf['length'])return;const _0x419d6c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5cad74=>'attribute'==_0x5cad74['type']&&_0x5cad74['_isDataLoaded']),_0x3a676a=[],_0x10fc17=new Map();for(const _0xce8ad4 of _0x419d6c){const _0x13c787=_0x33d343(_0xce8ad4['attributes']);_0x10fc17['has'](_0x13c787)||(_0x10fc17['set'](_0x13c787,_0x3a676a['length']),_0x3a676a['push']([]));const _0x5c2abc=_0x10fc17['get'](_0x13c787);_0x3a676a[_0x5c2abc]['push'](_0xce8ad4);}!(function(){_0x3a676a['sort']((_0x4e707c,_0xcd5609)=>{const _0x2bc1a3=_0x4e707c[0x0]['createdAt'],_0x23eb66=_0xcd5609[0x0]['createdAt'];return _0x2bc1a3==_0x23eb66?_0x4e707c[0x0]['attributes']['groupId']<_0xcd5609[0x0]['attributes']['groupId']?-0x1:0x1:_0x2bc1a3<_0x23eb66?-0x1:0x1;});for(const _0x1e0251 of _0x3a676a)_0x1e0251['sort']((_0x1f6996,_0x152ec4)=>_0x1f6996['id']<_0x152ec4['id']?-0x1:0x1);}());for(let _0x28d741=0x0;_0x28d741<_0x3a676a['length'];_0x28d741++){if(0x0==_0x3a676a[_0x28d741]['length'])continue;const _0x1449d1=[];for(let _0x5e5b1c=_0x28d741+0x1;_0x5e5b1c<_0x3a676a['length'];_0x5e5b1c++)0x0!=_0x3a676a[_0x5e5b1c]['length']&&_0x40646d(_0x3a676a[_0x28d741],_0x3a676a[_0x5e5b1c])&&_0x1449d1['push'](_0x5e5b1c);for(const _0x55f24d of _0x1449d1)_0x3a676a[_0x28d741]=_0x3a676a[_0x28d741]['concat'](_0x3a676a[_0x55f24d]),_0x3a676a[_0x55f24d]=[];}for(const _0xde240c of _0x3a676a)for(let _0x3ebd40=0x0;_0x3ebd40<_0xde240c['length'];_0x3ebd40++){const _0x378f3e=_0xde240c[_0x3ebd40+0x1]||null;_0xde240c[_0x3ebd40]['next']!==_0x378f3e&&(_0xde240c[_0x3ebd40]['next']=_0x378f3e);}for(const _0x3852d6 of _0x3a676a)for(let _0x588b0f=0x0;_0x588b0f<_0x3852d6['length'];_0x588b0f++){const _0x3c1ee7=_0x3852d6[_0x588b0f-0x1]||null;_0x3852d6[_0x588b0f]['previous']!==_0x3c1ee7&&(_0x3852d6[_0x588b0f]['previous']=_0x3c1ee7);}function _0x40646d(_0x5b4ff4,_0x214e0a){if(_0x5b4ff4[0x0]['attributes']['groupId']!==_0x214e0a[0x0]['attributes']['groupId']&&_0x5b4ff4[0x0]['author']!==_0x214e0a[0x0]['author'])return!0x1;if(!function(_0x345094,_0x2113e8){if(!_0x345094['hasComments']&&!_0x2113e8['hasComments'])return!0x0;if(_0x345094['hasComments']&&_0x2113e8['hasComments'])return!0x1;if(_0x345094['hasComments']&&_0x2113e8['createdAt']<_0x345094['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2113e8['hasComments']&&_0x345094['createdAt']<_0x2113e8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5b4ff4[0x0],_0x214e0a[0x0]))return!0x1;const _0x4bfc56=Et(_0x5b4ff4[0x0]['attributes'],'groupId'),_0x4a77c3=Et(_0x214e0a[0x0]['attributes'],'groupId');if(!_0x5a7cf5(_0x4bfc56,_0x4a77c3))return!0x1;return!!_0x5b4ff4['every'](_0x111c63=>_0x214e0a['some'](_0xbcb429=>_0x111c63['getFirstRange']()['isEqual'](_0xbcb429['getFirstRange']())))&&_0x214e0a['every'](_0x41cdaf=>_0x5b4ff4['some'](_0x574247=>_0x41cdaf['getFirstRange']()['isEqual'](_0x574247['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x144e3a){const _0x3b29d6=Array['from'](_0x144e3a),_0x45cc24=this['getSuggestions']({'skipNotAttached':!0x0}),_0x163062=_0x45cc24['filter'](_0x5d09c5=>!_0x144e3a['has'](_0x5d09c5)),_0x177f89=new Map(_0x3b29d6['map'](_0x356e13=>[_0x356e13,this['_suggestionFactory']['getSuggestionCallback'](_0x356e13['type'],_0x356e13['subType'],'join')])),_0x268975=new Map(_0x45cc24['map'](_0x10d92f=>[_0x10d92f,_0x10d92f['getRanges']()]));for(let _0x4c1eed=0x0;_0x4c1eed<_0x3b29d6['length'];_0x4c1eed++){if(_0x5e15ca(this,_0x3b29d6[_0x4c1eed],_0x3b29d6,_0x4c1eed+0x1))return!0x0;}for(let _0x210cde=0x0;_0x210cde<_0x3b29d6['length'];_0x210cde++){if(_0x5e15ca(this,_0x3b29d6[_0x210cde],_0x163062,0x0))return!0x0;}return!0x1;function _0x5e15ca(_0x3297c2,_0x4aed28,_0x4491a0,_0xed5209){for(let _0x26f584=_0xed5209;_0x26f584<_0x4491a0['length'];_0x26f584++){const _0x82b83d=_0x4491a0[_0x26f584];if(_0x82b83d['type']!==_0x4aed28['type']||_0x82b83d['author']['id']!==_0x4aed28['author']['id']||_0x82b83d['subType']!==_0x4aed28['subType'])continue;if(!zt(_0x4aed28,_0x82b83d))continue;if('attribute'==_0x4aed28['type']&&_0x4aed28['data']['oldValue']!=_0x82b83d['data']['oldValue'])continue;if('attribute'==_0x4aed28['type']&&_0x3297c2['_isBlockAttribute'](_0x4aed28['data']['key']))continue;if('formatBlock'==_0x4aed28['type']){const _0x442554=_0x3297c2['editor']['model'],_0x45ca0a=_0x4aed28['getContainedElement']();if(_0x45ca0a&&(_0x442554['schema']['isObject'](_0x45ca0a)||_0x442554['schema']['isLimit'](_0x45ca0a)))continue;}const _0x3152d6=_0x177f89['get'](_0x4aed28),_0x1f18dd=_0x268975['get'](_0x4aed28),_0x3742e4=_0x268975['get'](_0x82b83d),_0x234d8c=_0x4aed28['commentThread']&&_0x4aed28['commentThread']['length'],_0x3369b3=_0x82b83d['commentThread']&&_0x82b83d['commentThread']['length'];if(!_0x234d8c&&_0x3152d6(_0x3742e4,_0x1f18dd))return _0x3297c2['_joinSuggestions'](_0x82b83d,_0x4aed28),_0x268975['delete'](_0x4aed28),!0x0;if(!_0x3369b3&&_0x3152d6(_0x1f18dd,_0x3742e4))return _0x3297c2['_joinSuggestions'](_0x4aed28,_0x82b83d),_0x268975['delete'](_0x82b83d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2097a2,_0x19e092){if(_0x2097a2['isMultiRange']){for(const _0x3c8a8b of _0x19e092['getRanges']())_0x2097a2['addRange'](_0x3c8a8b);}else{const _0x43e8ea=_0x19e092['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2097a2,this['_model']['createRange'](_0x2097a2['getFirstRange']()['start'],_0x43e8ea));}_0x19e092['removeMarkers']();}['_getMarkerAnnouncementText'](_0x9f7def,_0x18b0c7,_0x11aabc){const _0xdcec74=_0x9f7def['startsWith']('format')||_0x9f7def['startsWith']('attribute')?'FORMATTING':_0x9f7def['toUpperCase']();return o(this['editor']['locale'],_0x18b0c7+'_'+_0xdcec74+'_SUGGESTION_ANNOUNCEMENT',_0x11aabc);}['_initAriaMarkerChangeAnnouncements'](){const _0x3ea7a7=this['editor'];if(!_0x3ea7a7['ui'])return;const {ariaLiveAnnouncer:_0x396b2d}=_0x3ea7a7['ui'];_0xda66e0(this['_model'],({left:_0x1c3ba0,entered:_0x2e8556})=>{for(const _0x23aaaf of _0x1c3ba0){const {group:_0x358b07,type:_0x299eea}=this['_splitMarkerName'](_0x23aaaf['name']);if('suggestion'===_0x358b07){_0x396b2d['announce'](this['_getMarkerAnnouncementText'](_0x299eea,'LEAVE'));break;}}for(const _0x5bf3a6 of _0x2e8556){const {group:_0x2e7930,type:_0x110ce3}=this['_splitMarkerName'](_0x5bf3a6['name']);if('suggestion'===_0x2e7930){_0x396b2d['announce'](this['_getMarkerAnnouncementText'](_0x110ce3,'ENTER',_0xe69207(_0x2c88fd)));break;}}});}['_processAttributeChanges'](_0x5511b5){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2e1527=this['editor'],_0x45a4f6=_0x2e1527['model']['document']['differ']['getChanges']();if(0x0==_0x45a4f6['length'])return!0x1;const _0x5b6881=[],_0x55e1d2=_0x45a4f6['filter'](_0x2c2240=>'attribute'==_0x2c2240['type']),_0x575f6e=_0x45a4f6['filter'](_0x16be89=>'insert'==_0x16be89['type']&&'$text'!=_0x16be89['name']),_0x200e00=_0x45a4f6['filter'](_0x207b02=>'remove'==_0x207b02['type']&&'$text'!=_0x207b02['name']);for(const _0x4774e2 of _0x55e1d2)_0x5b6881['push']({'key':_0x4774e2['attributeKey'],'newValue':_0x4774e2['attributeNewValue'],'oldValue':_0x4774e2['attributeOldValue'],'range':Jt(_0x4774e2['range'],_0x2e1527['model'])});for(const _0x503fe0 of _0x575f6e){const _0x51c8c1=_0x200e00['find'](_0x66dd8d=>_0x66dd8d['position']['isEqual'](_0x503fe0['position']));_0x51c8c1&&_0x5b6881['push']({'key':m,'newValue':_0x503fe0['name'],'oldValue':_0x51c8c1['name'],'range':_0x2e1527['model']['createRangeOn'](_0x503fe0['position']['nodeAfter'])});}return 0x0!=_0x5b6881['length']&&this['_reduceExistingSuggestions'](_0x5511b5,_0x5b6881);}['_processAttributeSuggestions'](_0x32f58e){let _0x3d41e7=!0x1;const _0x14fdcc=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1db3db=>_0x1db3db['data']['newRange']&&_0x1db3db['name']['startsWith']('suggestion:attribute:'));for(const _0x142a3b of _0x14fdcc){const {subType:_0x822dcd,id:_0x4301e1}=this['_splitMarkerName'](_0x142a3b['name']),_0x1c022f=_0x822dcd['split']('|')[0x0];for(const _0x172a1a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x172a1a['id']!=_0x4301e1&&'attribute'==_0x172a1a['type']&&_0x172a1a['data']&&_0x172a1a['data']['key']==_0x1c022f&&_0x172a1a['getFirstRange']()['isIntersecting'](_0x142a3b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x172a1a,_0x142a3b['data']['newRange'],_0x32f58e),_0x3d41e7=!0x0);}return _0x3d41e7;}['_recordAttributeChanges'](_0x3c810e){this['_recordAttributeSuggestions']=!0x0,_0x3c810e();}['_isRegisteredAttribute'](_0x3bd0f4){const _0x262558=this['_isBlockAttribute'](_0x3bd0f4),_0x22b8ab=this['_inlineAttributeKeys']['has'](_0x3bd0f4);return _0x262558||_0x22b8ab;}['_reduceExistingSuggestions'](_0x2e6396,_0x2d698c){if(0x0==_0x2d698c['length'])return!0x1;let _0x57d26e=!0x1;for(const _0x56e81b of _0x2d698c){const _0x5aa0f4=this['_findSuggestions'](_0x56e81b['range'],'attribute')['filter'](_0x51ced7=>!_0x51ced7['meta']['isNextTo'])['map'](_0x3d7b9b=>_0x3d7b9b['suggestion']),_0x5906e0=_0x33d343({'newValue':_0x56e81b['newValue']});_0x5aa0f4['filter'](_0xe6f97d=>{const [_0x4094de,_0x3c055c]=_0xe6f97d['subType']['split']('|');return _0x4094de==_0x56e81b['key']&&_0x3c055c!=_0x5906e0;})['forEach'](_0xd0c867=>{this['_reduceSuggestionAttributeRange'](_0xd0c867,_0x56e81b['range'],_0x2e6396),_0x57d26e=!0x0;});}return _0x57d26e;}['_reduceSuggestionAttributeRange'](_0x34baa0,_0xf77544,_0x40bfd6){const _0x5447d1=_0x34baa0['getFirstRange']()['getDifference'](_0xf77544);0x0!==_0x5447d1['length']?0x1!==_0x5447d1['length']?this['_breakSuggestionMarker'](_0x34baa0,_0xf77544['start'],_0xf77544['end']):this['_setSuggestionRange'](_0x34baa0,_0x5447d1[0x0]):_0x40bfd6['removeMarker'](_0x34baa0['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x432c40){this['_editor']=_0x432c40,this['_model']=_0x432c40['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x19f046,_0x3ca1c7,_0x1cddcc,_0x355a43,_0x580713,_0x3898e2){return new u(this['_model'],{'type':_0x19f046,'subType':_0x3ca1c7,'id':_0x1cddcc,'author':_0x355a43,'creator':_0x355a43,'attributes':_0x580713,'onAttributesChange':_0x3898e2,'onAccept':(..._0x20a8b1)=>this['getSuggestionCallback'](_0x19f046,_0x3ca1c7,'accept')(..._0x20a8b1),'onDiscard':(..._0x45b770)=>this['getSuggestionCallback'](_0x19f046,_0x3ca1c7,'discard')(..._0x45b770)});}['registerCustomCallback'](_0x459888,_0xccd16,_0x32baad,_0x54448d){const _0x2932ac=_0x459888+':'+_0xccd16+':'+_0x32baad;this['_customCallbacks']['set'](_0x2932ac,_0x54448d);}['getSuggestionCallback'](_0x4220e6,_0x38e2c4,_0x20b562){const _0x27748c=_0x4220e6+':'+_0x38e2c4+':'+_0x20b562;return this['_customCallbacks']['get'](_0x27748c)||this['_defaultCallbacks']['get'](_0x4220e6+':'+_0x20b562);}['_registerDefaultCallbacks'](){const _0x78acec=()=>!0x1,_0x15cf94=_0x21dcd0=>{_0x21dcd0['sort']((_0x25c23c,_0x51b7b2)=>_0x25c23c['start']['isBefore'](_0x51b7b2['start'])?0x1:-0x1),this['_model']['change'](_0x45e865=>{for(const _0x273a26 of _0x21dcd0){let _0x5d1b16;_0x5d1b16=_0x273a26['end']['isAtEnd']&&_0x273a26['end']['parent']==_0x273a26['start']['nodeAfter']?_0x45e865['createSelection'](_0x273a26['start']['nodeAfter'],'on'):_0x45e865['createSelection'](_0x273a26),this['_model']['deleteContent'](_0x5d1b16,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x219f08=(_0x2f9e78,_0x48c73d)=>{_0x48c73d&&this['_model']['change'](_0xe352a2=>{const {commandName:_0x56a1eb,commandParams:_0x181755=[]}=_0x48c73d,_0x1497c6=_0x2f9e78['map'](_0x2f748a=>(Pt(_0x2f748a)&&(_0x2f748a=this['_model']['createRange'](_0x2f748a['end'])),_0x2f748a))['filter'](_0x1f845e=>'$graveyard'!==_0x1f845e['root']['rootName']);if(_0x1497c6['length']<0x1)return;const _0x55a88c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2177bc=>_0xfaa3eb['fromRange'](_0x2177bc));_0xe352a2['setSelection'](_0x1497c6);for(const _0x238b10 of this['_editor']['commands']['commands']())_0x238b10['refresh']();_0x181755['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x56a1eb,..._0x181755);const _0x9b2907=_0x55a88c['filter'](_0x22e2ae=>'$graveyard'!=_0x22e2ae['root']['rootName']);_0x9b2907['length']>0x0&&_0xe352a2['setSelection'](_0x9b2907);for(const _0x1ce2ae of _0x55a88c)_0x1ce2ae['detach']();});},_0x1dc0a1=(_0x2e6512,_0x59ca2e)=>0x1==_0x2e6512['length']&&0x1==_0x59ca2e['length']&&_0x2e6512[0x0]['end']['isEqual'](_0x59ca2e[0x0]['start']),_0x19a78a=(_0x4eaa55,_0x536f42,_0x3acb8c,_0x3920d4)=>qt(_0x4eaa55,_0x536f42,_0x3acb8c,_0x3920d4)?[_0x4eaa55,_0x536f42]:qt(_0x536f42,_0x4eaa55,_0x3920d4,_0x3acb8c)?[_0x536f42,_0x4eaa55]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x78acec),this['_defaultCallbacks']['set']('insertion:discard',_0x15cf94),this['_defaultCallbacks']['set']('insertion:join',_0x1dc0a1),this['_defaultCallbacks']['set']('insertion:chain',_0x19a78a),this['_defaultCallbacks']['set']('deletion:accept',_0x15cf94),this['_defaultCallbacks']['set']('deletion:discard',_0x78acec),this['_defaultCallbacks']['set']('deletion:join',_0x1dc0a1),this['_defaultCallbacks']['set']('deletion:chain',_0x19a78a),this['_defaultCallbacks']['set']('formatInline:accept',_0x219f08),this['_defaultCallbacks']['set']('formatInline:discard',_0x78acec),this['_defaultCallbacks']['set']('formatInline:join',_0x1dc0a1),this['_defaultCallbacks']['set']('formatInline:chain',_0x78acec),this['_defaultCallbacks']['set']('formatBlock:accept',_0x219f08),this['_defaultCallbacks']['set']('formatBlock:discard',_0x78acec),this['_defaultCallbacks']['set']('formatBlock:join',_0x1dc0a1),this['_defaultCallbacks']['set']('formatBlock:chain',_0x78acec),this['_defaultCallbacks']['set']('attribute:accept',_0x78acec),this['_defaultCallbacks']['set']('attribute:discard',(_0x3d615f,_0x23ef11)=>{if(!_0x23ef11)return;const _0x3ea844=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x124b7c=>{if(_0x23ef11['key']==m)for(const _0x8975c7 of _0x3d615f){const _0x380bd9=_0x8975c7['start']['nodeAfter'],_0x1a643c=_0x23ef11['oldValue'];_0x124b7c['rename'](_0x380bd9,_0x1a643c);}else{if(_0x3ea844['_isBlockAttribute'](_0x23ef11['key'])){for(const _0x424470 of _0x3d615f)void 0x0!==_0x23ef11['oldValue']?_0x124b7c['setAttribute'](_0x23ef11['key'],_0x23ef11['oldValue'],_0x424470['start']['nodeAfter']):_0x124b7c['removeAttribute'](_0x23ef11['key'],_0x424470['start']['nodeAfter']);}else{for(const _0x30def1 of _0x3d615f)_0x23ef11['oldValue']?_0x124b7c['setAttribute'](_0x23ef11['key'],_0x23ef11['oldValue'],_0x30def1):_0x124b7c['removeAttribute'](_0x23ef11['key'],_0x30def1);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1dc0a1);}}function Vt(_0x41f808,_0x48e635,_0x576037){for(const _0xae7df6 of _0x48e635['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xae7df6['root']==_0xae7df6)return!0x1;if(!_0x576037['containsItem'](_0xae7df6))return!0x1;if(_0x41f808['isObject'](_0xae7df6)||_0x41f808['isLimit'](_0xae7df6))return!0x0;}return!0x1;}function Pt(_0x284246){return _0x284246['end']['parent']==_0x284246['start']['nodeAfter']&&_0x284246['end']['isAtStart'];}function Gt(_0x2c533c,_0x291a27,_0x2e8a1d,_0x34740c){const _0x15da5e=_0x36e9fc=>!_0x36e9fc['item']['is']('$textProxy')&&!_0x34740c['isObject'](_0x36e9fc['item']),_0x34ae43=_0x2c533c['start']['getLastMatchingPosition'](_0x15da5e),_0x1d4c1f=_0x2c533c['end']['getLastMatchingPosition'](_0x15da5e,{'direction':'backward'});return(!_0x2c533c['start']['isEqual'](_0x34ae43)||!_0x2c533c['end']['isEqual'](_0x1d4c1f))&&(_0x34ae43['isBefore'](_0x1d4c1f)?_0x2e8a1d['updateMarker'](_0x291a27,{'range':_0x2e8a1d['createRange'](_0x34ae43,_0x1d4c1f)}):_0x2e8a1d['removeMarker'](_0x291a27),!0x0);}function Ft(_0x156c4c){return _0x33d343(_0x156c4c);}function Lt(_0xec28bb){const _0x53f415=_0xec28bb['start']['nodeAfter'];return _0x53f415&&_0x53f415['is']('element');}function Jt(_0x193852,_0x2b5c1e){return null==_0x193852['end']['nodeBefore']&&_0x193852['end']['parent']==_0x193852['start']['nodeAfter']?Ht(_0x193852['start']['nodeAfter'],_0x2b5c1e):_0x193852;}function Ht(_0x282658,_0x33fd00){const _0x3cdaa7=_0x33fd00['schema']['isObject'](_0x282658)||_0x33fd00['schema']['isSelectable'](_0x282658);return _0x33fd00['createRange'](_0x33fd00['createPositionAt'](_0x282658,'before'),_0x3cdaa7?_0x33fd00['createPositionAfter'](_0x282658):_0x33fd00['createPositionAt'](_0x282658,'end'));}function qt(_0x2d6659,_0x5f2f7a,_0x28367b,_0x4d3baa){return!!zt(_0x2d6659,_0x5f2f7a)&&_0x28367b['end']['isEqual'](_0x4d3baa['start']);}function zt(_0x24947b,_0x19abef){if(!_0x24947b['_isDataLoaded']||!_0x19abef['_isDataLoaded'])return!0x1;const _0x4e75f4=new Set(Object['keys'](_0x24947b['attributes'])),_0xed092f=new Set(Object['keys'](_0x19abef['attributes']));if(_0x4e75f4['delete']('groupId'),_0xed092f['delete']('groupId'),0x0==_0x4e75f4['size']&&0x0==_0xed092f['size'])return!0x0;if(_0x4e75f4['size']!=_0xed092f['size'])return!0x1;const _0x36bb33={..._0x24947b['attributes']},_0x25f3a2={..._0x19abef['attributes']};return delete _0x36bb33['groupId'],delete _0x25f3a2['groupId'],JSON['stringify'](_0x36bb33)==JSON['stringify'](_0x25f3a2);}function Kt(_0x3a4964,_0x40e863){const _0x2633b3=Wt(_0x3a4964['attributes']),_0x44e534=Wt(_0x40e863);if(!_0x3a4964['_isDataLoaded'])return!0x1;for(const _0x20a38d of Object['keys'](_0x44e534))if(!_0x5a7cf5(_0x2633b3[_0x20a38d],_0x44e534[_0x20a38d]))return!0x1;return!0x0;}function Wt(_0x285948){const _0x211b42=Object['assign']({},_0x285948);return delete _0x211b42['skipNestingCheck'],delete _0x211b42['tablePasteChainId'],_0x211b42;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x44e880(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1fb9c2,_0x4b4f00,_0x275995,_0x2900a){super(),this['model']=_0x4b4f00,this['view']=_0x275995,this['commentThreadController']=_0x2900a,this['_editor']=_0x1fb9c2,this['_acceptCommand']=_0x1fb9c2['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1fb9c2['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x49e7cf,_0x166089)=>_0x49e7cf||_0x166089),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4bfd2c=>_0x4bfd2c&&this['_editor']['model']['canEditAt'](_0x4b4f00['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4dea4a=>_0x4dea4a&&this['_editor']['model']['canEditAt'](_0x4b4f00['getRanges']())),this['_pendingAction']=null,_0x275995['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x275995,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x275995,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x275995,'change:isDirty',()=>{_0x275995['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 _0x31755e=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x31755e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x4f14f8{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x355d36,_0x4738b1,_0x2d15e8,_0x3f26b6){super(_0x355d36),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3d14dc(_0x355d36,o(_0x355d36,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4738b1['authoredAt']),this['bind']('authoredAt')['to'](_0x4738b1),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',_0x4738b1,'authoredAt',this,'descriptionParts',(_0x48c2a8,_0x4ec61e,_0x39c403)=>{const _0x4441ab=_0x39c403['map'](_0x120c20=>ns(_0x120c20['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x48c2a8-0x1,_0x4738b1['author']['name'],_0x4ec61e?_0x3f26b6['formatDateTime'](_0x4ec61e):'',new DOMParser()['parseFromString'](_0x4441ab,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4f4771(),this['focusTracker']=new _0x4681dd(),this['keystrokes']=new _0x374edf(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5c3d87=>_0x5c3d87['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4738b1,this['_localUser']=_0x2d15e8,this['_config']=_0x3f26b6,_0x3f26b6['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4cec70(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1113f6}=this['_config'];this['commentsListView']=new _0x1113f6(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',_0x4fff2a=>_0x4fff2a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5e5724,_0x354784)=>_0x5e5724||!!_0x354784);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5b9bd2}=this['_config'],_0x32d69e=new _0x5b9bd2(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1389c6=_0x32d69e['commentInputView'];return _0x32d69e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1389c6,'value',(_0x2c986c,_0x1ef471,_0x1aa9ef)=>!!_0x1aa9ef||_0x2c986c&&!_0x1ef471),_0x1389c6['on']('submit',(_0x4ac068,_0x152593)=>{this['fire']('addComment',_0x152593),_0x1389c6['editor']['setData']('');}),_0x1389c6['on']('cancel',()=>this['focus']()),_0x1389c6['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x32d69e;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0xf5e271,_0x2021ce,_0x47e1ab,_0x250d5f){super(_0xf5e271,_0x2021ce,_0x47e1ab,_0x250d5f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x513cc5=>_0x513cc5&&_0x513cc5[0x0]?_0x513cc5[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x575d9f,_0x4de98d)=>{let _0x286adc='';for(const _0x1c9a6f of _0x575d9f)_0x286adc+='<p>'+ns(_0x1c9a6f['content'],_0x1c9a6f['color'])+'</p>';return _0x4de98d?_0x286adc:_0x517800(_0x286adc,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x250d5f['SuggestionView'](_0xf5e271,_0x2021ce,{'formatDateTime':_0x250d5f['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 _0xaca61e=this['bindTemplate'],_0xaed15b=[this['suggestionView']];return this['commentsListView']&&_0xaed15b['push'](this['commentsListView']),this['commentThreadInputView']&&_0xaed15b['push'](this['commentThreadInputView']),_0xaed15b['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xaca61e['if']('isActive','ck-suggestion-wrapper--active'),_0xaca61e['to']('type',_0x11faf7=>'ck-suggestion-'+_0x11faf7),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':_0xaca61e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xaed15b};}['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 fe extends _0x4f14f8{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x23341b,_0x4e89a6,_0x578c87){super(_0x23341b),this['_model']=_0x4e89a6,this['_config']=_0x578c87,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4e89a6),this['acceptButton']=this['_createButton'](o(_0x23341b,'Accept\x20suggestion'),_0x4eafb5['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x23341b,'Discard\x20suggestion'),_0x4eafb5['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x552601(_0x23341b,_0x4e89a6['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4f4771([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4681dd(),this['keystrokes']=new _0x374edf(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x92f959=>_0x92f959['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xe03a1=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xe03a1['innerHTML']=this['description'],this['on']('change:description',(_0x57f7b6,_0x26e32f,_0x40151f)=>{_0xe03a1['innerHTML']=_0x40151f;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x41cef=this['bindTemplate'],_0x1cdd08=[{'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':_0x41cef['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x41cef['to']('authoredAt',_0x556f41=>this['_config']['formatDateTime'](_0x556f41))}]}]},{'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']&&_0x1cdd08['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':_0x1cdd08}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x5db794,_0x20ee13,_0xb2259b,_0x2b809d,_0xea97f1){const _0x16b2e6=new _0x5f0eaf(this['locale']);return _0x16b2e6['set']({'label':_0x5db794,'icon':_0x20ee13,'tooltip':!0x0,'tooltipPosition':_0xea97f1}),_0x16b2e6['extendTemplate']({'attributes':{'class':_0xb2259b}}),_0x16b2e6['on']('execute',()=>{this['fire'](_0x2b809d,this['_model']['id']);}),_0x16b2e6;}['_setupKeyboardNavigation'](){const _0x19147b=this['element'];this['keystrokes']['listenTo'](_0x19147b);for(const _0x4e4e70 of this['focusables'])this['focusTracker']['add'](_0x4e4e70['element']),this['keystrokes']['listenTo'](_0x4e4e70['element']);this['keystrokes']['set']('enter',(_0xca7d95,_0x1ad7e1)=>{_0x19147b===_0xca7d95['target']&&(this['focusCycler']['focusFirst'](),_0x1ad7e1());}),this['keystrokes']['set']('esc',(_0x42f9db,_0x4eda11)=>{_0x19147b!==_0x42f9db['target']&&(this['focus'](),_0x4eda11());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x2bd390{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x396d67,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x284703){super(_0x284703),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4aeecf=this['editor']['config'];_0x4aeecf['define']('trackChanges.SuggestionThreadView',pe),_0x4aeecf['define']('trackChanges.SuggestionView',fe),_0x4aeecf['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4aeecf['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3d71f3,_0x52e980){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x213c8a,_0x1dba33]of this['_handleControllerBuffer']){const _0x13ceb6=this['_suggestionToController']['has'](_0x213c8a);_0x13ceb6||_0x1dba33?_0x13ceb6&&_0x1dba33&&this['_destroyController'](_0x213c8a):this['_initializeController'](_0x213c8a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3d71f3,_0x52e980);}['init'](){const _0xf207c8=this['editor'],_0x149418=_0xf207c8['plugins']['get']('TrackChangesEditing'),_0x3e15a3=_0xf207c8['plugins']['get']('Annotations'),_0x319243=_0xf207c8['plugins']['get']('EditorAnnotations'),_0x2e0f90=_0xf207c8['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x319243['addSourceCollector'](()=>{const _0x46c5c1=[];for(const [_0x253835,_0x102d9d]of Array['from'](this['_suggestionToController'])){const _0x5cd5ac=_0x253835['getAllAdjacentSuggestions'](),_0x213a97=[];for(const _0x19569f of _0x5cd5ac){if(!_0x19569f['isInContent'])continue;if(_0x19569f['isMultiRange']){_0x213a97['push'](..._0x19569f['getRanges']());continue;}const _0x587a7d=_0x19569f['getFirstRange']();if(_0x213a97['length']>0x0){const _0x1250de=_0x213a97[0x0]['getJoined'](_0x587a7d);if(_0x1250de){_0x213a97[0x0]=_0x1250de;continue;}}_0x213a97['push'](_0x587a7d);}_0x46c5c1['push']([_0x102d9d['view'],_0x213a97]);}return _0x46c5c1;}),this['listenTo'](_0x149418,'suggestionLoaded',(_0x484c59,_0x5011f2)=>{this['listenTo'](_0x5011f2,'change:previous',(_0x44b4c1,_0x53f877,_0x2fe2f1,_0x12e0b7)=>{_0x5011f2['isInContent']&&(null==_0x2fe2f1?(this['_updateController'](_0x12e0b7['head']),this['_handleSuggestionControllerDelayed'](_0x5011f2,!0x1)):(this['_updateController'](_0x2fe2f1['head']),null==_0x12e0b7&&this['_handleSuggestionControllerDelayed'](_0x5011f2,!0x0)));}),null!==_0x5011f2['previous']?this['_updateController'](_0x5011f2['head']):this['_handleSuggestionControllerDelayed'](_0x5011f2,!0x1);}),this['listenTo'](_0x149418,'suggestionUnloaded',(_0x559bcf,_0x2c85c1,_0x2a8141)=>{this['stopListening'](_0x2c85c1,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2c85c1),this['_suggestionToController']['has'](_0x2c85c1)&&this['_destroyController'](_0x2c85c1),_0x2a8141&&this['_updateController'](_0x2a8141['head']);}),this['listenTo'](_0x149418,'suggestionChanged',(_0xba6ff6,_0x3b70b4)=>{this['_updateController'](_0x3b70b4);}),this['listenTo'](_0x3e15a3,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2e0f90,'addComment',(_0x1f5f99,{threadId:_0x4e79d7,isFromAdapter:_0x5cf8d6})=>{if(_0x5cf8d6||!_0x149418['hasSuggestion'](_0x4e79d7))return;const _0x149094=_0x149418['getSuggestion'](_0x4e79d7);this['_suggestionToController']['get'](_0x149094)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x28351e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x408b69;for(const _0x392508 in _0x28351e){const _0x21a08c=_0x392508,_0x379124=_0x28351e[_0x21a08c];if('trackChangesLicenseKeyValid'==_0x379124||'trackChangesLicenseKeyInvalid'==_0x379124||'trackChangesLicenseKeyExpired'==_0x379124||'trackChangesLicenseKeyDomainLimit'==_0x379124||'trackChangesLicenseKeyNotAllowed'==_0x379124||'trackChangesLicenseKeyEvaluationLimit'==_0x379124||'trackChangesLicenseKeyTrialLimit'==_0x379124||'trackChangesLicenseKeyUsageLimit'==_0x379124){delete _0x28351e[_0x21a08c],_0x408b69=_0x379124,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x408b69&&_0x28351e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x408b69&&_0x28351e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x408b69&&_0x28351e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x408b69&&_0x28351e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x408b69&&_0x28351e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x408b69&&_0x28351e['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x408b69&&_0x28351e['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x4091bb=this['editor']['plugins']['get']('Annotations'),_0x41aa0b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f2e0c=Array['from'](_0x4091bb['activeAnnotations'],_0x1e041e=>_0x1e041e['innerView'])['filter'](_0x2b0c7a=>this['_viewToController']['has'](_0x2b0c7a)),_0x27afdb=[];for(const _0x6294e5 of _0x5f2e0c){const _0x4f5d2a=this['_viewToController']['get'](_0x6294e5)['model']['getAllAdjacentSuggestions']();_0x27afdb['push'](..._0x4f5d2a['reduce']((_0x4bb921,_0x2e1138)=>[..._0x4bb921,..._0x2e1138['getMarkerNames']()],[]));}_0x41aa0b['activeMarkers']=_0x27afdb;}['_addUIComponentsToFactory'](){const _0x220919=this['editor'],_0x3885a2=_0x220919['locale'],_0x585762=o(_0x3885a2,'Track\x20changes'),_0x5385ae=new _0x4e342c([{'type':'switchbutton','model':new _0x333e03({'withText':!0x0,'isToggleable':!0x0,'label':_0x585762,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x333e03({'withText':!0x0,'label':o(_0x3885a2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x333e03({'withText':!0x0,'label':o(_0x3885a2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x333e03({'withText':!0x0,'label':o(_0x3885a2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x333e03({'withText':!0x0,'label':o(_0x3885a2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x220919['plugins']['has']('TrackChangesPreview')&&_0x5385ae['addMany']([{'type':'separator'},{'type':'button','model':new _0x333e03({'withText':!0x0,'label':o(_0x3885a2,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4b2254 of _0x5385ae)if(ke(_0x4b2254)){const _0x2b1fb1=_0x220919['commands']['get'](_0x4b2254['model']['commandName']);_0x4b2254['model']['bind']('isOn','isEnabled')['to'](_0x2b1fb1,'value','isEnabled');}_0x220919['ui']['componentFactory']['add']('trackChanges',_0x2128d8=>this['_createToolbarButton'](_0x2128d8,_0x5385ae,_0x585762)),_0x220919['ui']['componentFactory']['add']('menuBar:trackChanges',_0xbf44f3=>this['_createMenuBarMenu'](_0xbf44f3,_0x5385ae,_0x585762));}['_createToolbarButton'](_0xd3cb92,_0x3c2dfc,_0x95631b){const _0x85dadb=_0x159ffe(_0xd3cb92,_0x474fbc),_0x13f5c9=this['editor']['commands']['get']('trackChanges');_0x85dadb['buttonView']['set']({'tooltip':_0x95631b,'label':_0x95631b,'icon':we}),_0x85dadb['buttonView']['bind']('isOn')['to'](_0x13f5c9,'value'),_0x85dadb['buttonView']['on']('execute',()=>{_0x13f5c9['execute'](),this['editor']['editing']['view']['focus']();}),_0xe3cad7(_0x85dadb,_0x3c2dfc,{'role':'menu'});const _0xc533da=[];for(const _0x21f2f8 of _0x3c2dfc)ke(_0x21f2f8)&&_0xc533da['push'](this['editor']['commands']['get'](_0x21f2f8['model']['commandName']));const _0x32da69=_0x85dadb['buttonView'];return _0x32da69['actionView']['unbind']('isEnabled'),_0x32da69['arrowView']['unbind']('isEnabled'),_0x32da69['actionView']['bind']('isEnabled')['to'](_0x13f5c9,'isEnabled'),_0x32da69['arrowView']['bind']('isEnabled')['toMany'](_0xc533da,'isEnabled',(..._0x59e672)=>_0x59e672['some'](_0x1f10ac=>_0x1f10ac)),_0x85dadb['on']('execute',_0x593629=>{this['editor']['execute'](_0x593629['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x85dadb;}['_createMenuBarMenu'](_0x1a03ec,_0x2c5372,_0x571c22){const _0xff5c44=new _0x2a6aa0(_0x1a03ec),_0x331754=this['editor']['commands']['get']('trackChanges');_0xff5c44['buttonView']['set']({'label':_0x571c22,'icon':we});const _0x2f6d22=new _0x1d6587(_0x1a03ec);for(const _0x53eb5f of _0x2c5372){if('separator'==_0x53eb5f['type']){_0x2f6d22['items']['add'](new _0x292442(_0x1a03ec));continue;}const _0x15cec4=new _0x2e8612(_0x1a03ec,_0xff5c44),_0x3d3b47=new _0x2462b7(_0x1a03ec),_0x545698=_0x53eb5f['model'];_0x3d3b47['bind'](...Object['keys'](_0x545698))['to'](_0x545698),_0x3d3b47['delegate']('execute')['to'](_0xff5c44),_0x3d3b47['on']('execute',()=>{this['editor']['execute'](_0x545698['commandName']),this['editor']['editing']['view']['focus']();}),_0x15cec4['children']['add'](_0x3d3b47),_0x2f6d22['items']['add'](_0x15cec4);}return _0xff5c44['bind']('isEnabled')['to'](_0x331754,'isEnabled'),_0xff5c44['panelView']['children']['add'](_0x2f6d22),_0xff5c44;}['_initializeController'](_0x5ed15a){const _0x24915e=this['editor'],_0x17267a=_0x24915e['config'],_0xf8339f=_0x24915e['plugins']['get']('Annotations'),_0x5147f1=_0x24915e['plugins']['get']('CommentsRepository'),_0x2112aa=_0x24915e['plugins']['get']('EditorAnnotations'),_0x58a19d=_0x24915e['plugins']['get'](_0x396d67)['me'],_0x2212c3=_0x17267a['get']('trackChanges')['SuggestionThreadView'],_0x1834b0=_0x17267a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2a1b3f,CommentThreadInputView:_0x329351}=_0x24915e['plugins']['get']('CommentsUI');let _0xd46ac5,_0x1fe01a,_0x2e9dba;this['_annotationViews']['has'](_0x5ed15a['id'])?(_0x1fe01a=this['_annotationViews']['get'](_0x5ed15a['id']),_0xd46ac5=_0x1fe01a['mainView']):(_0xd46ac5=new _0x2212c3(_0x24915e['locale'],_0x5ed15a,_0x58a19d,{'disableComments':this['_disableComments'],'editorConfig':{..._0x17267a['get']('comments.editorConfig'),'licenseKey':_0x17267a['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x17267a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x17267a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x17267a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x565ad9(_0x17267a['get']('locale')),'CommentView':_0x17267a['get']('comments')['CommentView'],'CommentsListView':_0x2a1b3f,'CommentThreadInputView':_0x329351,'SuggestionView':_0x1834b0}),_0xd46ac5['suggestionView']['acceptButton']['on']('execute',()=>{_0x24915e['editing']['view']['focus']();}),_0xd46ac5['suggestionView']['discardButton']['on']('execute',()=>{_0x24915e['editing']['view']['focus']();}),_0x1fe01a=_0xf8339f['createAnnotationView'](this['editor']['locale'],_0xd46ac5),_0x1fe01a['bind']('isDirty')['to'](_0xd46ac5,'isDirty'),_0x1fe01a['bind']('length')['to'](_0xd46ac5),_0x1fe01a['bind']('type')['to'](_0xd46ac5,'type',_0xe5b7eb=>'suggestion-'+_0xe5b7eb),_0xd46ac5['on']('escape',()=>{_0x2e9dba['fire']('escape');}),this['_annotationViews']['set'](_0x5ed15a['id'],_0x1fe01a));const _0x49d7f2=_0x5147f1['createCommentThreadController'](_0x5ed15a['commentThread'],_0xd46ac5),_0x37a551=new Ce(_0x24915e,_0x5ed15a,_0xd46ac5,_0x49d7f2),_0x49f57d=_0x5ed15a['getAllAdjacentSuggestions']()['filter'](_0x1c4ed0=>_0x1c4ed0['isInContent']);_0xd46ac5['descriptionParts']=_0x24915e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x49f57d),this['_suggestionToController']['set'](_0x5ed15a,_0x37a551),this['_viewToController']['set'](_0xd46ac5,_0x37a551),_0x2e9dba=_0xf8339f['createAnnotation']({'view':_0x1fe01a,'target':()=>{const _0x2429c9=[],_0x41cf79=_0x5ed15a['getAllAdjacentSuggestions']()['filter'](_0x1d1ce4=>_0x1d1ce4['isInContent']);for(const _0x26b066 of _0x41cf79)_0x2429c9['push'](..._0x26b066['getMarkers']());return _0x398747(_0x24915e['editing'],_0x2429c9);},'type':()=>'suggestion-'+_0x37a551['view']['type']}),_0x5147f1['_bindAnnotationToEditors'](_0xd46ac5,_0x2e9dba),_0xf8339f['add'](_0x2e9dba),_0x2112aa['registerAnnotation'](_0x2e9dba);}['_destroyController'](_0x530911){const _0x19bb7a=this['editor']['plugins']['get']('CommentsRepository'),_0x1c8540=this['editor']['plugins']['get']('Annotations'),_0x22e19d=this['_suggestionToController']['get'](_0x530911),_0x5a532e=_0x22e19d['view'],_0x30aeda=_0x1c8540['getByInnerView'](_0x5a532e);_0x19bb7a['_unbindEditors'](_0x5a532e),_0x30aeda&&_0x1c8540['remove'](_0x30aeda),this['_suggestionToController']['delete'](_0x530911),this['_viewToController']['delete'](_0x5a532e),_0x22e19d['destroy']();}['_updateController'](_0x32d7b9){if(!_0x32d7b9['isInContent']||!this['_suggestionToController']['has'](_0x32d7b9))return;const _0x160d4f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c55b3=this['_suggestionToController']['get'](_0x32d7b9),_0x35f17f=_0x32d7b9['getAllAdjacentSuggestions']();_0x1c55b3['view']['descriptionParts']=_0x160d4f['descriptionFactory']['getDescriptions'](_0x35f17f);}['destroy'](){for(const _0x7b7ed7 of this['_suggestionToController']['keys']())this['_destroyController'](_0x7b7ed7);for(const _0x20a940 of this['_annotationViews']['values']())_0x20a940['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4af292){return'model'in _0x4af292;}class k extends _0x2bd390{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4a1a88){this['editor']['plugins']['get'](p)['adapter']=_0x4a1a88;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1dd4e1){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1dd4e1);}['getSuggestions']({skipNotAttached:_0x196dba=!0x1,toJSON:_0x2495b3=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x196dba,'toJSON':_0x2495b3});}['getSuggestion'](_0xa8b792){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xa8b792);}}const w=['Pagination'];class T extends _0x2bd390{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x533eef=this['editor'];if(_0x533eef['config']['define']('trackChangesData.editorCreator',_0x5df060=>{const _0x4ef854=_0x533eef['model']['document']['getRootNames']()['reduce']((_0x4907e8,_0x1cdb63)=>(_0x4907e8[_0x1cdb63]='',_0x4907e8),{});return _0x533eef['constructor']['create'](_0x4ef854,_0x5df060);}),'function'!=typeof _0x533eef['config']['get']('trackChangesData')['editorCreator'])throw new _0x1b3384('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x47f295){return N(this['editor'],!0x0,_0x47f295);}['getDataWithDiscardedSuggestions'](_0x2a625d){return N(this['editor'],!0x1,_0x2a625d);}}class D extends _0x2bd390{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b8189){function _0x51782c(_0x455f10){return _0x455f10['map'](_0x5e9f62=>String['fromCharCode'](_0x5e9f62))['join']('');}super(_0x5b8189),this['result']='end',_0x5b8189[_0x51782c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51782c([0x76,0x69,0x65,0x77])][_0x51782c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51782c([0x61,0x75,0x74,0x6f]),_0x5b8189[_0x51782c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x51782c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51782c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x51782c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x51782c([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(_0x42afb0){return void 0x0!==_0x42afb0['getRootsAttributes'];}async function N(_0x2944f3,_0x566bfb,_0x59ea93){const _0x33c4e5=_0x3f0e77(_0x2944f3,w);_0x33c4e5['plugins']['push'](p,D),_0x33c4e5['rootsAttributes']=Fe(_0x2944f3)?_0x2944f3['getRootsAttributes']():void 0x0;const _0x44f7bb=document['createDocumentFragment'](),_0x33822a=_0x2944f3['config']['get']('trackChangesData')['editorCreator'],_0x2b66b3=await _0x33822a(_0x33c4e5,()=>function(_0x28a49b){const _0x391a8b=document['createElement']('div');return _0x28a49b['appendChild'](_0x391a8b),_0x391a8b;}(_0x44f7bb));!function(_0xd0925c,_0x17d8ae){const _0x32c03a=_0xd0925c['model']['document']['getRootNames']()['reduce']((_0x2afd48,_0x42fa27)=>(_0x2afd48[_0x42fa27]=_0xd0925c['data']['get']({'rootName':_0x42fa27}),_0x2afd48),{}),_0x25020d=_0xd0925c['plugins']['get']('Users')['users']['map'](_0x1f6c96=>({'id':_0x1f6c96['id'],'name':_0x1f6c96['name']})),_0x4190aa=_0xd0925c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4693b7=_0xd0925c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x363467=_0x17d8ae['plugins']['get']('Users'),_0x2c804d=_0x17d8ae['plugins']['get']('TrackChangesEditing'),_0x7c4e95=_0x17d8ae['plugins']['get']('CommentsRepository');for(const _0x225634 of _0x7c4e95['getCommentThreads']())_0x225634['remove']();for(const _0xfb1351 of _0x25020d)_0x363467['getUser'](_0xfb1351['id'])||_0x363467['addUser'](_0xfb1351);_0x363467['me']||_0x363467['useAnonymousUser']();for(const _0x3fe45a of _0x4693b7)_0x7c4e95['addCommentThread'](_0x3fe45a);for(const _0x3264ad of _0x4190aa)_0x2c804d['addSuggestionData'](_0x3264ad);_0x17d8ae['data']['set'](_0x32c03a);}(_0x2944f3,_0x2b66b3),_0x2b66b3['execute'](_0x566bfb?'acceptAllSuggestions':'discardAllSuggestions');const _0x6e85c8=Fe(_0x2b66b3)?_0x2b66b3['getFullData'](_0x59ea93):_0x2b66b3['data']['get'](_0x59ea93);return await _0x2b66b3['destroy'](),_0x6e85c8;}class Me extends _0x4f14f8{['options'];constructor(_0x35f06d,_0x1a31d9){super(_0x35f06d),this['options']=_0x1a31d9,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'](_0x145f78,_0x4e05dc){if(!this['element'])return;const _0x37f111=[];for(const [_0x28f972,_0x3551a7]of _0x145f78){const _0x5e99fa=document['createElement']('div');_0x5e99fa['setAttribute']('data-ck-root-name',_0x28f972),_0x5e99fa['className']=_0x3551a7['classes']+'\x20ck-track-changes-preview__root-container',_0x5e99fa['innerHTML']=_0x3551a7['content'],_0x37f111['push'](_0x5e99fa);}_0x4e05dc(this['element'],_0x37f111),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x5b9737){super(_0x5b9737),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3118ab=this['editor'],_0x36c0c7=_0x3118ab['locale'],_0x4116e8=_0x3118ab['plugins']['get']('Dialog');let _0x5e8daa;const _0x387248=function(_0x5ceb4a){const _0x1c3fa0={};if('editables'in _0x5ceb4a['ui']['view']){for(const [_0x520d6a,_0x223aab]of Object['entries'](_0x5ceb4a['ui']['view']['editables']))_0x1c3fa0[_0x520d6a]=_0x223aab['element'];}else _0x1c3fa0[_0x5ceb4a['model']['document']['getRootNames']()[0x0]]=_0x5ceb4a['ui']['view']['editable']['element'];return _0x1c3fa0;}(_0x3118ab),_0x4a81da=function(_0x49f73f){let _0x5da089=0x0;for(const _0x19ab53 of Object['values'](_0x49f73f))_0x5da089=Math['max'](_0x5da089,_0x19ab53['getBoundingClientRect']()['width']);let _0x97aa89=0x0;for(const _0x41bd80 of Object['values'](_0x49f73f))_0x97aa89+=_0x41bd80['getBoundingClientRect']()['height'];const _0x7f98f1=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x40e964=Math['min'](_0x97aa89,_0x7f98f1);return{'width':_0x5da089,'height':_0x40e964};}(_0x387248);_0x4116e8['show']({'id':'finalContentPreview','title':o(_0x36c0c7,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x36c0c7,{'dialogRects':_0x4a81da}),'onHide':()=>{_0x5e8daa['detachFromDom']();},'onShow':()=>{_0x3118ab['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x248a67=>{const _0x44bfd1=this['_standarizeRootsData'](_0x248a67,_0x3118ab,_0x387248);_0x4116e8['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x44bfd1,_0x3118ab['config']['get']('trackChanges.preview.renderFunction'));}),_0x5e8daa=new _0x4bfbcc(_0x36c0c7,[_0x4116e8['view']]),_0x5e8daa['attachToDom'](),_0x5e8daa['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3118ab['once']('destroy',()=>{_0x5e8daa['detachFromDom']();});const _0x63ee4b=_0x4116e8['view']['headerView']['class'];_0x4116e8['view']['headerView']['class']=_0x63ee4b?_0x63ee4b+'\x20ck-reset_all':'ck-reset_all',_0x4116e8['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4116e8['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3c6f6a=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x44e15c=_0x3c6f6a['previewMode'],_0x55de1d={};if('$labels'===_0x44e15c){for(const _0x4bc455 of _0x3c6f6a['getMergeFieldsIds']())_0x55de1d[_0x4bc455]=_0x3c6f6a['getLabel'](_0x4bc455)||_0x4bc455;}else{const _0x406d01='$defaultValues'===_0x44e15c?_0x3c6f6a['getDefaultValues']():_0x3c6f6a['getDataSetValues'](_0x44e15c,!0x0);for(const _0x5dd0ed of Object['entries'](_0x406d01)){const [_0x4b1e14,_0x3a91ab]=_0x5dd0ed;_0x55de1d[_0x4b1e14]=null!==_0x3a91ab?_0x3a91ab:_0x3c6f6a['getLabel'](_0x4b1e14)||_0x4b1e14;}}return{'mergeFieldsData':_0x55de1d};}['_standarizeRootsData'](_0x1456bb,_0x541cbd,_0x1cb11c){let _0x18a542;if('string'==typeof _0x1456bb){const _0x30c154=_0x541cbd['model']['document']['getRootNames']()[0x0];_0x18a542={[_0x30c154]:_0x1456bb};}else _0x18a542=_0x1456bb;const _0x3a9da5=this['_fixMediaEmbeds'](_0x18a542,_0x541cbd),_0x3d0044=function(_0x11297a,_0xd72207){for(const [_0x2ab6ed,_0x4bb0ca]of _0x11297a)_0x4bb0ca['classes']=_0xd72207[_0x2ab6ed]['classList']['value']['replace']('ck-focused','');return _0x11297a;}(this['_sortRoots'](_0x541cbd)['reduce']((_0x1c2a56,_0x442b27)=>(_0x1c2a56['push']([_0x442b27,{'content':_0x3a9da5[_0x442b27],'classes':''}]),_0x1c2a56),[]),_0x1cb11c);return _0x3d0044;}['_fixMediaEmbeds'](_0x2245b3,_0x1aab8c){if(!_0x1aab8c['plugins']['has']('MediaEmbedEditing'))return _0x2245b3;const _0x2ede11=_0x1aab8c['plugins']['get']('MediaEmbedEditing');for(const [_0x1ae92f,_0x20dfef]of Object['entries'](_0x2245b3)){const _0xbb83e7=document['createElement']('div');_0xbb83e7['innerHTML']=_0x20dfef,(_0xbb83e7['querySelectorAll']('figure.media')['forEach'](_0x327f4c=>{const _0x5c448d=_0x327f4c['querySelector']('oembed');if(_0x5c448d){const _0x11cc8f=_0x5c448d['getAttribute']('url');if(_0x11cc8f){const _0x17f086=_0x2ede11['registry']['getMediaViewElement'](new _0x2bfc92(_0x1aab8c['editing']['view']['document']),_0x11cc8f,{'elementName':'','renderForEditingView':!0x0}),_0x27a071=document['createElement']('div');_0x27a071['classList']['add']('ck-media__wrapper'),_0x17f086['render'](_0x27a071,_0x1aab8c['editing']['view']['domConverter']),_0x5c448d['replaceWith'](_0x27a071);}}}),_0x2245b3[_0x1ae92f]=_0xbb83e7['innerHTML']);}return _0x2245b3;}['_sortRoots'](_0xeaa8b5){if(!function(_0x367649){return void 0x0!==_0x367649['getRootsAttributes'];}(_0xeaa8b5))return _0xeaa8b5['model']['document']['getRootNames']();const _0x32b29f=[],_0x38b10b=new Map();for(const _0x468d86 of _0xeaa8b5['model']['document']['getRootNames']()){const _0x24c39e=_0xeaa8b5['editing']['view']['getDomRoot'](_0x468d86)['getClientRects']()['item'](0x0);_0x32b29f['push'](_0x468d86),_0x38b10b['set'](_0x468d86,_0x24c39e);}return _0x32b29f['sort']((_0x1a1369,_0x21195b)=>{const _0x6be683=_0x38b10b['get'](_0x1a1369),_0x59c56c=_0x38b10b['get'](_0x21195b);return _0x6be683['y']-_0x59c56c['y']||_0x6be683['x']-_0x59c56c['x'];}),_0x32b29f;}}class te extends _0x2bd390{static get['requires'](){return[T,_0x1f395f];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7501){super(_0x7501),_0x7501['commands']['add']('previewFinalContent',new re(this['editor'])),_0x7501['config']['define']('trackChanges.preview.renderFunction',(_0x33a42a,_0x542372)=>{for(const _0x1e1f52 of _0x542372)_0x33a42a['appendChild'](_0x1e1f52);});}}export{as as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|