@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240615.0 → 0.0.0-nightly-20240617.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 +3 -3
- 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 ts,Plugin as
|
|
24
|
-
_0x24d01d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2139bd,_0x4ffeca){super(),this['id']=_0x4ffeca['id'],this['type']=_0x4ffeca['type'],this['subType']=_0x4ffeca['subType']||null,this['author']=_0x4ffeca['author'],this['creator']=_0x4ffeca['creator']||_0x4ffeca['author'],this['isExternal']=Boolean(_0x4ffeca['attributes']&&_0x4ffeca['attributes']['@external']),this['data']=null,this['_model']=_0x2139bd,this['_onAccept']=_0x4ffeca['onAccept'],this['_onDiscard']=_0x4ffeca['onDiscard'],this['_onAttributesChange']=_0x4ffeca['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4ffeca['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 _0x25f1dc=this;for(;_0x25f1dc['previous'];)_0x25f1dc=_0x25f1dc['previous'];return _0x25f1dc;}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'](_0x38d3b7){this['_markerNames']['add'](_0x38d3b7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5616d2=>this['_model']['markers']['get'](_0x5616d2))['filter'](_0x2ad578=>_0x2ad578);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4e2263=>{for(const _0x598c57 of this['getMarkers']())_0x4e2263['removeMarker'](_0x598c57);}),this['_markerNames']['clear']();}['removeMarker'](_0x1a34a7){this['_model']['change'](_0x329ed3=>{_0x329ed3['removeMarker'](_0x1a34a7);}),this['_markerNames']['delete'](_0x1a34a7);}['addRange'](_0x1e6601){const _0x329a24='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x329a24),this['_model']['change'](_0x56387f=>{_0x56387f['addMarker'](_0x329a24,{'range':_0x1e6601,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1dddc4){for(const _0x2cedf7 of this['getRanges']())if(_0x2cedf7['isIntersecting'](_0x1dddc4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4549fd=>_0x4549fd['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2c8efe,_0x27f24e)=>[..._0x2c8efe,..._0x27f24e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x506db8=this['getRanges']();if(0x1!=_0x506db8['length'])return null;const _0x5c39d0=_0x506db8[0x0],_0x2a624a=_0x5c39d0['start']['nodeAfter'],_0x40e42b=_0x5c39d0['end']['nodeBefore'];return _0x2a624a instanceof _0x14b105?_0x2a624a!=_0x40e42b?null:_0x2a624a: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 _0x42cbc9=[];let _0xfb8bbc=this['head'];for(;_0xfb8bbc;)_0x42cbc9['push'](_0xfb8bbc),_0xfb8bbc=_0xfb8bbc['next'];return _0x42cbc9;}['setAttribute'](_0x3eb1ab,_0x44fca0){const _0xbd476d=_0x131c94(this['attributes']);_0x47a1a3(_0xbd476d,_0x3eb1ab,_0x44fca0),_0x15c9fb(_0xbd476d,this['attributes'])||(this['attributes']=_0xbd476d,this['_onAttributesChange'](_0xbd476d));}['removeAttribute'](_0x168e2c){const _0x2c8ed2=_0x131c94(this['attributes']);_0x1bfbbd(_0x2c8ed2,_0x168e2c),_0x15c9fb(_0x2c8ed2,this['attributes'])||(this['attributes']=_0x2c8ed2,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 _0x7b6b31()['substr'](0x1,0x5);}}function o(_0x389df0,_0xd5e5c7,_0x11d3e0){const t=_0x389df0['t'];switch(_0xd5e5c7){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'*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',_0x11d3e0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x11d3e0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x11d3e0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x11d3e0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x11d3e0);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',_0x11d3e0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x11d3e0);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x11d3e0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x11d3e0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x11d3e0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x11d3e0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x11d3e0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x11d3e0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x11d3e0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x11d3e0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x11d3e0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x11d3e0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x11d3e0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x11d3e0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x11d3e0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x11d3e0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x11d3e0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x11d3e0);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'},_0x11d3e0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x11d3e0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x11d3e0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x11d3e0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x11d3e0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x11d3e0);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'},_0x11d3e0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x11d3e0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x11d3e0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x11d3e0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x11d3e0);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'},_0x11d3e0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x11d3e0);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'},_0x11d3e0);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'},_0x11d3e0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x11d3e0);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'},_0x11d3e0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x11d3e0);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'},_0x11d3e0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x11d3e0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x11d3e0);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});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 t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x11d3e0);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x11d3e0);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0xd5e5c7;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x330ad0,_0x4612dd){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x330ad0,this['_locale']=_0x4612dd;}['getDescriptions'](_0x238301){const _0x48df78=[],_0x392e15=new Set(),_0x36a431=new Set();for(let _0x2db98e=0x0;_0x2db98e<_0x238301['length'];_0x2db98e++){const _0x14918c=_0x238301[_0x2db98e];if(!_0x14918c['isInContent'])continue;const _0x259290=this['_handleCustomCallbackDescription'](_0x14918c);if(_0x259290){if(null!=_0x14918c['subType']){if(_0x392e15['has'](_0x14918c['subType']))continue;_0x392e15['add'](_0x14918c['subType']);}_0x48df78['push'](_0x259290);}else{if('attribute'!=_0x14918c['type'])'insertion'!=_0x14918c['type']&&'deletion'!=_0x14918c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x48df78,_0x14918c,_0x238301[_0x2db98e+0x1]);else{const _0x4c77a2=_0x14918c['data']['key'];if(_0x36a431['has'](_0x4c77a2))continue;_0x36a431['add'](_0x14918c['data']['key']),_0x4c77a2==m?this['_handleRenameSuggestionDescription'](_0x48df78,_0x14918c):this['_handleAttributeSuggestionDescription'](_0x48df78,_0x14918c);}}}return this['_resolveDescriptionItems'](_0x48df78);}['registerDescriptionCallback'](_0x1cdb86){this['_customCallbacks']['push'](_0x1cdb86);}['registerElementLabel'](_0x59c5d5,_0x4e4399,_0x11d83b=_0x2c04bb['normal']){'function'==typeof _0x59c5d5?_0x478f66(this['_itemLabelsCallbacks'],{'matchingCallback':_0x59c5d5,'label':_0x4e4399,'priority':_0x11d83b}):this['_itemLabels']['set'](_0x59c5d5,_0x4e4399);}['registerAttributeLabel'](_0xb76433,_0x3c5f44){this['_attributeLabels']['set'](_0xb76433,_0x3c5f44);}['getItemLabel'](_0x131ae1,_0x5a9414=0x1){let _0x48ed44;for(const _0x116cef of this['_itemLabelsCallbacks'])if(_0x116cef['matchingCallback'](_0x131ae1)){_0x48ed44=_0x116cef['label'];break;}return _0x48ed44||(_0x48ed44=this['_itemLabels']['get'](_0x131ae1['name'])),_0x48ed44?_0x48ed44(_0x5a9414):0x1!==_0x5a9414?_0x5a9414+'\x20'+_0x131ae1['name']+'s':''+_0x131ae1['name'];}['_addDescriptionItems'](_0x1e6b1a,_0x2197e1){const _0x57b677=_0x2197e1['getFirstRange']()['getWalker'](),_0x51ca84='insertion'==_0x2197e1['type']?'add':'remove';for(const _0xb82ac of _0x57b677){const _0x2a36af=_0xb82ac['item'],_0x33f0f0=_0x1e6b1a[_0x1e6b1a['length']-0x1];if(_0x2a36af['is']('$textProxy'))_0x33f0f0&&_0x33f0f0['type']['indexOf']('Container')>-0x1&&_0x1e6b1a['pop'](),_0x33f0f0&&'text'==_0x33f0f0['type']?_0x33f0f0[_0x51ca84]+=_0x2a36af['data']:_0x1e6b1a['push']({'type':'text','add':'add'==_0x51ca84?_0x2a36af['data']:'','remove':'remove'==_0x51ca84?_0x2a36af['data']:''});else{if(this['_schema']['isObject'](_0x2a36af)){const _0x1a8ff5=_0x2a36af;if(_0x33f0f0&&_0x33f0f0['type']['indexOf']('Container')>-0x1&&_0x1e6b1a['pop'](),'elementEnd'==_0xb82ac['type'])continue;_0x33f0f0&&_0x33f0f0['type']==_0x51ca84+'Object'&&_0x33f0f0['element']['name']==_0x1a8ff5['name']?_0x33f0f0['quantity']++:_0x1e6b1a['push']({'type':_0x51ca84+'Object','element':_0x1a8ff5,'quantity':0x1}),_0x57b677['skip'](_0x44b6cd=>!('elementEnd'==_0x44b6cd['type']&&_0x44b6cd['item']==_0x2a36af));}else{if(this['_schema']['checkChild'](_0x2a36af,'$text')||_0x2a36af['is']('element','softBreak')){const _0xa607ee=_0x2a36af;if('add'==_0x51ca84&&'elementStart'==_0xb82ac['type']||'remove'==_0x51ca84&&'elementEnd'==_0xb82ac['type'])continue;if(_0x33f0f0&&-0x1==_0x33f0f0['type']['indexOf']('Container')){'text'==_0x33f0f0['type']&&(_0x33f0f0[_0x51ca84]+='\x0a');continue;}let _0x2959b4;if(_0x2959b4='add'==_0x51ca84?_0xa607ee['nextSibling']&&!this['_schema']['isObject'](_0xa607ee['nextSibling'])?_0xa607ee['nextSibling']:null:_0xa607ee['previousSibling']&&!this['_schema']['isObject'](_0xa607ee['previousSibling'])?_0xa607ee['previousSibling']:null,_0xa607ee['isEmpty']||_0x2959b4&&_0x2959b4['isEmpty']){const _0x20d189=_0x2959b4&&_0x2959b4['isEmpty']?_0x2959b4:_0xa607ee;_0x33f0f0&&_0x33f0f0['type']==_0x51ca84+'EmptyContainer'&&_0x33f0f0['element']['name']==_0x20d189['name']?_0x33f0f0['quantity']++:_0x1e6b1a['push']({'type':_0x51ca84+'EmptyContainer','element':_0x20d189,'quantity':0x1});}else _0x1e6b1a['push']({'type':_0x51ca84+'Container','element':_0xa607ee});}}}}}['_resolveDescriptionItems'](_0x2f361f){const _0x505953=this['_locale'],_0x224eb9=[],_0x4344e9=[],_0x18a1a8=[];for(const _0x57455 of _0x2f361f)switch(_0x57455['type']){case'text':if(_0x57455['add']=_0x57455['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x57455['remove']=_0x57455['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x57455['add']&&''!=_0x57455['remove']){_0x224eb9['push']({'type':'replace','content':o(_0x505953,'REPLACE_TEXT',['\x22'+_0x57455['remove']+'\x22','\x22'+_0x57455['add']+'\x22'])});continue;}if(null!=_0x57455['add']['match'](/^ +$/)){_0x224eb9['push']({'type':'insertion','content':o(_0x505953,'*Insert:*\x20%0',o(_0x505953,'ELEMENT_SPACE',_0x57455['add']['length']))});continue;}if(null!=_0x57455['remove']['match'](/^ +$/)){_0x224eb9['push']({'type':'deletion','content':o(_0x505953,'*Remove:*\x20%0',o(_0x505953,'ELEMENT_SPACE',_0x57455['remove']['length']))});continue;}if(''!=_0x57455['add']){_0x224eb9['push']({'type':'insertion','content':o(_0x505953,'*Insert:*\x20%0','\x22'+_0x57455['add']+'\x22')});continue;}_0x224eb9['push']({'type':'deletion','content':o(_0x505953,'*Remove:*\x20%0','\x22'+_0x57455['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x224eb9['push']({'type':'insertion','content':o(_0x505953,'*Insert:*\x20%0',this['getItemLabel'](_0x57455['element'],_0x57455['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x224eb9['push']({'type':'deletion','content':o(_0x505953,'*Remove:*\x20%0',this['getItemLabel'](_0x57455['element'],_0x57455['quantity']))});continue;case'addContainer':_0x224eb9['push']({'type':'insertion','content':o(_0x505953,'*Split:*\x20%0',this['getItemLabel'](_0x57455['element'],_0x57455['quantity']))});continue;case'removeContainer':_0x224eb9['push']({'type':'deletion','content':o(_0x505953,'*Merge:*\x20%0',this['getItemLabel'](_0x57455['element'],_0x57455['quantity']))});continue;case'addFormat':_0x4344e9['push'](_0x57455['key']);continue;case'removeFormat':_0x18a1a8['push'](_0x57455['key']);continue;default:_0x224eb9['push'](_0x57455);}if(_0x4344e9['length']){const _0x526ed4=_0x4344e9['map'](_0x5767e9=>this['_attributeLabels']['has'](_0x5767e9)?this['_attributeLabels']['get'](_0x5767e9):_0x5767e9)['join'](',\x20');_0x224eb9['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x526ed4)});}if(_0x18a1a8['length']){const _0x25a062=_0x18a1a8['map'](_0x5b9253=>this['_attributeLabels']['has'](_0x5b9253)?this['_attributeLabels']['get'](_0x5b9253):_0x5b9253)['join'](',\x20');_0x224eb9['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x25a062)});}return _0x224eb9;}['_handleCustomCallbackDescription'](_0x247cc9){for(const _0x1262b1 of this['_customCallbacks']){const _0x1b36e7=_0x1262b1(_0x247cc9);if(_0x1b36e7&&'type'in _0x1b36e7)return _0x1b36e7;}}['_handleAttributeSuggestionDescription'](_0x3334b1,_0x3d2c43){const _0x14a5b3=_0x3d2c43['data'],_0x57164c=void 0x0===_0x14a5b3['newValue']?'removeFormat':'addFormat';_0x3334b1['push']({'type':_0x57164c,'key':_0x14a5b3['key']});}['_handleRenameSuggestionDescription'](_0x422211,_0x5cb052){_0x422211['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5cb052['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5014ac,_0xf9567c,_0x37acfc){if(this['_addDescriptionItems'](_0x5014ac,_0xf9567c),_0x37acfc&&_0x37acfc['getFirstRange']()&&!_0xf9567c['getFirstRange']()['end']['isEqual'](_0x37acfc['getFirstRange']()['start'])){const _0x508cfb=_0x5014ac[_0x5014ac['length']-0x1],_0x4e9c99='insertion'==_0xf9567c['type']?'add':'remove';_0x508cfb&&'text'==_0x508cfb['type']&&(_0x508cfb[_0x4e9c99]+='\x0a');}}}class E extends _0x1c9f3d{['afterInit'](){const _0x168491=this['editor'],_0x4bcbbf=_0x168491['plugins']['get']('TrackChangesEditing');_0x168491['commands']['get']('showAIAssistant')&&_0x4bcbbf['enableCommand']('showAIAssistant');}}class V extends _0x1c9f3d{['afterInit'](){const _0x56220d=this['editor'],_0x4a6823=_0x56220d['locale'];if(!_0x56220d['plugins']['has']('AlignmentEditing'))return;const _0x430726=_0x56220d['plugins']['get']('TrackChangesEditing');_0x430726['enableDefaultAttributesIntegration']('alignment'),_0x430726['registerBlockAttribute']('alignment'),_0x430726['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4a6823,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ab3da=this['editor'],_0xeb5ec7=_0x3ab3da['locale'];_0x3ab3da['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x590b45=>{if('formatBlock'!=_0x590b45['type'])return;const {data:_0x3c0312}=_0x590b45;if(_0x3c0312&&'alignment'==_0x3c0312['commandName']){const _0x3e861d=_0x3c0312['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xeb5ec7,'*Format:*\x20%0',function(_0x351dc3){switch(_0x351dc3){case'left':return o(_0xeb5ec7,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xeb5ec7,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xeb5ec7,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xeb5ec7,'FORMAT_JUSTIFY_TEXT');}}(_0x3e861d))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x1c9f3d{['afterInit'](){const _0x1bc636=this['editor'],_0xf7fe7d=_0x1bc636['plugins']['get']('TrackChangesEditing'),_0x3d6d4a=_0x1bc636['locale'];for(const _0xe193fd of ti){if(!_0x1bc636['plugins']['has'](_0xe193fd))continue;const _0x28c96a=_0xe193fd['slice'](0x0,-0x7)['toLowerCase'](),_0x1fa72b='FORMAT_'+_0x28c96a['toUpperCase']();_0xf7fe7d['enableDefaultAttributesIntegration'](_0x28c96a),_0xf7fe7d['registerInlineAttribute'](_0x28c96a),_0xf7fe7d['descriptionFactory']['registerAttributeLabel'](_0x28c96a,o(_0x3d6d4a,_0x1fa72b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32a3aa=this['editor'],_0x196835=_0x32a3aa['locale'],_0x24b4e3=_0x32a3aa['plugins']['get']('TrackChangesEditing');function _0x4820b5(_0x57f5c9,_0x4c79fe){_0x24b4e3['descriptionFactory']['registerDescriptionCallback'](_0x479b3b=>{if('formatInline'!=_0x479b3b['type'])return;const {data:_0x213523}=_0x479b3b;return _0x213523&&_0x213523['commandName']===_0x57f5c9?_0x213523['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x196835,'*Format:*\x20%0',_0x4c79fe)}:{'type':'format','content':o(_0x196835,'*Remove\x20format:*\x20%0',_0x4c79fe)}:void 0x0;});}_0x4820b5('bold',o(_0x196835,'FORMAT_BOLD')),_0x4820b5('italic',o(_0x196835,'FORMAT_ITALIC')),_0x4820b5('underline',o(_0x196835,'FORMAT_UNDERLINE')),_0x4820b5('code',o(_0x196835,'FORMAT_CODE')),_0x4820b5('strikethrough',o(_0x196835,'FORMAT_STRIKETHROUGH')),_0x4820b5('subscript',o(_0x196835,'FORMAT_SUBSCRIPT')),_0x4820b5('superscript',o(_0x196835,'FORMAT_SUPERSCRIPT'));}}class O extends _0x1c9f3d{['afterInit'](){const _0x371964=this['editor'],_0xe9fcac=_0x371964['locale'];if(!_0x371964['plugins']['has']('BlockQuoteEditing'))return;const _0x5f456d=_0x371964['plugins']['get']('TrackChangesEditing'),_0x5ab447=this['editor']['commands']['get']('blockQuote');_0x5f456d['enableCommand']('blockQuote',(_0x5a9c07,_0xed7d08={})=>{const _0x5b2018=this['editor']['model']['document']['selection'],_0x577342=_0xed7d08&&void 0x0!==_0xed7d08['forceValue']?_0xed7d08['forceValue']:!_0x5ab447['value'];let _0x25fa93=[];if(_0x577342){const _0x43191a=Array['from'](_0x5b2018['getSelectedBlocks']())['filter'](_0x3be20d=>oo(_0x3be20d)||function(_0x3b6aa0,_0x349d03){const _0x4216c5=_0x349d03['checkChild'](_0x3b6aa0['parent'],'blockQuote'),_0x54bcc8=_0x349d03['checkChild'](['$root','blockQuote'],_0x3b6aa0);return _0x4216c5&&_0x54bcc8;}(_0x3be20d,this['editor']['model']['schema']));_0x25fa93=to(_0x43191a,_0x371964['model']);}else{const _0x5d3c40=Array['from'](_0x5b2018['getSelectedBlocks']())['filter'](_0x25836f=>oo(_0x25836f));_0x25fa93=to(_0x5d3c40,_0x371964['model']);}_0x371964['model']['change'](()=>{for(const _0x5c0491 of _0x25fa93)_0x5f456d['markBlockFormat'](_0x5c0491,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x577342}]});});}),_0x5f456d['descriptionFactory']['registerDescriptionCallback'](_0x1f967d=>{const {data:_0x4deeeb}=_0x1f967d;if(_0x4deeeb&&'blockQuote'==_0x4deeeb['commandName']){const _0xffabf0=o(_0xe9fcac,'ELEMENT_BLOCK_QUOTE');return _0x4deeeb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xe9fcac,'*Set\x20format:*\x20%0',_0xffabf0)}:{'type':'format','content':o(_0xe9fcac,'*Remove\x20format:*\x20%0',_0xffabf0)};}});}}function oo(_0x41f356){return'blockQuote'==_0x41f356['parent']['name'];}class G extends _0x1c9f3d{['afterInit'](){const _0x3f74f7=this['editor'];_0x3f74f7['plugins']['has']('CaseChange')&&(_0x3f74f7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3f74f7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3f74f7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x1c9f3d{['afterInit'](){const _0x4cc273=this['editor'];_0x4cc273['commands']['get']('ckbox')&&_0x4cc273['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x1c9f3d{['afterInit'](){const _0x54183a=this['editor'];if(!_0x54183a['plugins']['has']('CodeBlock'))return;const _0x540bd8=_0x54183a['plugins']['get']('TrackChangesEditing'),_0x40257b=_0x54183a['locale'],_0x1ff370=_0x54183a['config']['get']('codeBlock')['languages'],_0xe39153=_0x54183a['commands']['get']('codeBlock');_0x540bd8['enableCommand']('indentCodeBlock'),_0x540bd8['enableCommand']('outdentCodeBlock'),_0x540bd8['enableCommand']('codeBlock',(_0x1af20a,_0x237a65={})=>{const _0x5eaa96=_0x54183a['model'],_0x17d93f=_0x54183a['model']['document']['selection'],_0x882fcf=_0x237a65&&void 0x0!==_0x237a65['forceValue']?_0x237a65['forceValue']:!_0xe39153['value'];let _0x1b10c3;_0x237a65['language']||(_0x237a65['language']=_0x1ff370[0x0]['language']),_0x1b10c3=_0x882fcf?Array['from'](_0x17d93f['getSelectedBlocks']())['filter'](_0x49527d=>eo(_0x49527d)||function(_0x2c896b,_0x13970d){if(_0x2c896b['is']('rootElement')||_0x13970d['isLimit'](_0x2c896b))return!0x1;return _0x13970d['checkChild'](_0x2c896b['parent'],'codeBlock');}(_0x49527d,_0x5eaa96['schema'])):Array['from'](_0x17d93f['getSelectedBlocks']())['filter'](_0x1f7e82=>eo(_0x1f7e82));const _0x3b7649=to(_0x1b10c3,_0x5eaa96);_0x5eaa96['change'](()=>{for(const _0x13b578 of _0x3b7649)_0x540bd8['markBlockFormat'](_0x13b578,{'commandName':'codeBlock','commandParams':[{..._0x237a65,'forceValue':_0x882fcf}],'formatGroupId':'blockName'});});}),(_0x540bd8['descriptionFactory']['registerElementLabel']('codeBlock',_0x177499=>o(_0x40257b,'ELEMENT_CODE_BLOCK',_0x177499)),_0x540bd8['descriptionFactory']['registerDescriptionCallback'](_0x2f3213=>{if('formatBlock'!=_0x2f3213['type'])return;const _0x7a87a3=_0x40257b['t'],{data:_0xe57003}=_0x2f3213;if(!_0xe57003||'codeBlock'!=_0xe57003['commandName'])return;const _0x48400a=_0xe57003['commandParams'][0x0]['language'],_0x2bf884=_0x7a87a3(_0x1ff370['find'](_0x22ffa0=>_0x22ffa0['language']===_0x48400a)['label'])['toLowerCase']();return _0xe57003['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x40257b,'*Set\x20format:*\x20%0',o(_0x40257b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2bf884+')')}:{'type':'format','content':o(_0x40257b,'*Remove\x20format:*\x20%0',o(_0x40257b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3b020f){return'codeBlock'==_0x3b020f['name'];}class H extends _0x1c9f3d{['afterInit'](){const _0x2f76c1=this['editor'];if(!_0x2f76c1['plugins']['has']('CommentsEditing'))return;_0x2f76c1['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x31a8ca,_0x3c76bb,_0x133c82){const _0x625338=[];for(const _0x560967 of _0x3c76bb['getItems']())_0x560967['hasAttribute'](_0x31a8ca)&&_0x625338['push'](_0x133c82['createRangeOn'](_0x560967));return _0x625338;}function _e(_0x571b77,_0x183f95,{showActiveMarker:_0x191a87=!0x0}={}){const _0x23ec79=_0x571b77['plugins']['get']('TrackChangesEditing');return(_0x408213,_0x14267a,_0x206875)=>{if(!_0x206875['consumable']['test'](_0x14267a['markerRange'],_0x408213['name']))return;const _0x1ff3c8=_0x14267a['markerRange']['getWalker'](),_0x30b50b=_0x14267a['markerRange']['start'],_0x3edd60=_0x571b77['model']['schema'];let _0x1ba448=null,_0x52aa38=null,_0x217f7f=!0x1,_0x1e6d6b=!0x1;for(const _0x1db67d of _0x1ff3c8){const _0xf10735=_0x1db67d['item'];_0x217f7f=_0x217f7f||_0x3edd60['isContent'](_0xf10735);const _0x1f810c=_0x206875['mapper']['toViewElement'](_0xf10735);if(_0x1f810c&&_0x1f810c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1db67d['type']&&(_0x3edd60['isBlock'](_0xf10735)&&!_0x3edd60['isLimit'](_0xf10735)&&(_0xf10735['nextSibling']||_0x30b50b['isAtEnd']?_0x1ba448&&_0x1ba448['parent']==_0xf10735||(_0x1ba448=_0xf10735,_0x1bb0b9(_0x1db67d['previousPosition']),_0x1e6d6b=!0x0):_0x52aa38=_0x52aa38||_0x1db67d['previousPosition']));}function _0x1bb0b9(_0x188d1a){const _0x26d3b5=_0x206875['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x183f95}),_0x4dd97f=_0x206875['mapper']['toViewPosition'](_0x188d1a);_0x191a87&&_0x23ec79['activeMarkers']['includes'](_0x14267a['markerName'])&&_0x206875['writer']['addClass']('ck-suggestion-marker--active',_0x26d3b5),_0x206875['writer']['insert'](_0x4dd97f,_0x26d3b5),_0x206875['mapper']['bindElementToMarker'](_0x26d3b5,_0x14267a['markerName']);}_0x217f7f||_0x1e6d6b||!_0x52aa38||_0x1bb0b9(_0x52aa38);};}class q extends _0x1c9f3d{static get['requires'](){return[_0x143485];}['init'](){const _0x2b87d2=this['editor'],_0x3965d7=_0x2b87d2['plugins']['get']('TrackChangesEditing');_0x3965d7['enableCommand']('delete');const _0x2f8191=_0x2b87d2['commands']['get']('deleteForward');_0x3965d7['enableCommand']('deleteForward',(_0x3703b8,_0xd8ca6a={})=>{const _0x253169=_0x2b87d2['model']['createSelection'](_0x2b87d2['model']['document']['selection']);_0x253169['isCollapsed']&&_0x2b87d2['model']['modifySelection'](_0x253169,{'direction':'forward','unit':_0xd8ca6a['unit']});const _0x55a711=_0x253169['getFirstRange'](),_0x264b33=_0x45d820['fromRange'](_0x55a711);let _0x51ab37;_0x3703b8(_0xd8ca6a),_0x51ab37='$graveyard'==_0x264b33['root']['rootName']?_0x2b87d2['model']['createRange'](_0x55a711['start']):_0x2b87d2['model']['createRange'](_0x264b33['start'],_0x264b33['end']),_0x264b33['detach'](),_0x2b87d2['model']['enqueueChange'](_0x2f8191['buffer']['batch'],_0x2bee26=>{_0x2f8191['buffer']['lock'](),_0x2bee26['setSelection'](_0x2bee26['createRange'](_0x51ab37['end'])),_0x2f8191['buffer']['unlock']();});}),_0x2b87d2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x2b87d2,'merge'),{'priority':'high'}),_0x2b87d2['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x15f6c7,_0x45c331,_0x260b71)=>{_0x260b71['options']['showSuggestionHighlights']&&_e(_0x2b87d2,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x15f6c7,_0x45c331,_0x260b71);},{'priority':'high'}),_0x2b87d2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x195a41,_0x1a00ab,_0x3c424c)=>{const _0x461f05=_0x3c424c['mapper']['markerNameToElements'](_0x1a00ab['markerName']);if(_0x461f05){for(const _0x4105ca of _0x461f05)_0x4105ca['is']('uiElement')&&(_0x3c424c['mapper']['unbindElementFromMarkerName'](_0x4105ca,_0x1a00ab['markerName']),_0x3c424c['writer']['remove'](_0x4105ca));}},{'priority':'high'});}}class z extends _0x1c9f3d{['afterInit'](){const _0x5e5b54=this['editor'];if(!_0x5e5b54['plugins']['has']('ListEditing'))return;const _0x4b1f0d=_0x5e5b54['locale'],_0x3a8016=_0x5e5b54['plugins']['get']('TrackChangesEditing'),_0x2238a6=_0x5e5b54['plugins']['has']('TodoListEditing'),_0x56cf9b=!!_0x5e5b54['config']['get']('list.multiBlock');function _0x3e8cdb(_0x1b6859){return{'type':'format','content':''+o(_0x4b1f0d,'*Set\x20format:*\x20%0',_0x1b6859)};}function _0x53e824(_0x119e17){return{'type':'format','content':''+o(_0x4b1f0d,'*Remove\x20format:*\x20%0',_0x119e17)};}_0x3a8016['enableDefaultAttributesIntegration']('numberedList'),_0x3a8016['enableDefaultAttributesIntegration']('bulletedList'),_0x3a8016['enableDefaultAttributesIntegration']('customNumberedList'),_0x3a8016['enableDefaultAttributesIntegration']('customBulletedList'),_0x3a8016['enableDefaultAttributesIntegration']('indentList'),_0x3a8016['enableDefaultAttributesIntegration']('outdentList'),_0x3a8016['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3a8016['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3a8016['registerBlockAttribute']('listItemId'),_0x3a8016['registerBlockAttribute']('listType'),_0x3a8016['registerBlockAttribute']('listIndent'),_0x56cf9b&&(_0x3a8016['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3a8016['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2238a6&&(_0x3a8016['enableDefaultAttributesIntegration']('todoList'),_0x3a8016['enableDefaultAttributesIntegration']('checkTodoList'),_0x3a8016['registerBlockAttribute']('todoListChecked'),_0x3a8016['descriptionFactory']['registerDescriptionCallback'](_0x3151a0=>{const {data:_0x577d0b}=_0x3151a0;if(_0x577d0b&&'todoListChecked'==_0x577d0b['key'])return{'type':'format','content':_0x577d0b['newValue']?o(_0x4b1f0d,'*Check\x20item*'):o(_0x4b1f0d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4a5c63=>{if(_0x4a5c63['batch']['isUndo'])return!0x1;let _0x5f2494=!0x1;const _0xa72511=_0x3a8016['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e6adb=>'todoListChecked'===_0x3a8016['_getAttributeKey'](_0x5e6adb));for(const _0x3907cd of _0xa72511){'todo'!=_0x3907cd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3a8016['_findSuggestions'](_0x3907cd['getFirstRange'](),'attribute')['find'](_0x44e0ef=>'listType'===_0x3a8016['_getAttributeKey'](_0x44e0ef['suggestion']))||(_0x4a5c63['removeMarker'](_0x3907cd['getFirstMarker']()),_0x5f2494=!0x0));}return _0x5f2494;})),_0x3a8016['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4b1f0d,'FORMAT_INDENT'));const _0x36f710={'type':'format','content':''};_0x3a8016['descriptionFactory']['registerDescriptionCallback'](_0x270514=>{const {data:_0x4aa8b4}=_0x270514;if(!_0x4aa8b4||'listType'!=_0x4aa8b4['key'])return;let _0xcf7fa9=_0x270514['head'];for(;_0xcf7fa9;){if(_0xcf7fa9['data']&&(('listStyle'==_0xcf7fa9['data']['key']||'listMarkerStyle'==_0xcf7fa9['data']['key'])&&(_0xcf7fa9['data']['newValue']&&'default'!=_0xcf7fa9['data']['newValue']||'default'!=_0xcf7fa9['data']['oldValue']&&!_0x4aa8b4['newValue'])||!_0x56cf9b&&_0xcf7fa9['data']['key']==m))return _0x36f710;_0xcf7fa9=_0xcf7fa9['next'];}if(null==_0x4aa8b4['newValue'])switch(_0x4aa8b4['oldValue']){case'bulleted':return _0x53e824(o(_0x4b1f0d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x53e824(o(_0x4b1f0d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x53e824(o(_0x4b1f0d,'ELEMENT_TODO_LIST'));}switch(_0x4aa8b4['newValue']){case'bulleted':return _0x3e8cdb(o(_0x4b1f0d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3e8cdb(o(_0x4b1f0d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3e8cdb(o(_0x4b1f0d,'ELEMENT_TODO_LIST'));}}),_0x3a8016['descriptionFactory']['registerDescriptionCallback'](_0x4c4fd0=>{const {data:_0x159ba1}=_0x4c4fd0;if(_0x159ba1&&'listIndent'==_0x159ba1['key'])return null==_0x159ba1['newValue']||null==_0x159ba1['oldValue']&&0x0==_0x159ba1['newValue']?_0x36f710:void 0x0;}),_0x3a8016['descriptionFactory']['registerDescriptionCallback'](_0x119682=>{if('attribute'!=_0x119682['type'])return;const {data:_0x2d59e4}=_0x119682;if(!_0x2d59e4||'listItemId'!=_0x2d59e4['key'])return;const _0x53081b=le(_0x119682);return'newValue'==_0x53081b?{'type':'format','content':o(_0x4b1f0d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x53081b?{'type':'format','content':o(_0x4b1f0d,'*Split:*\x20list\x20item')}:_0x36f710;}),_0x5e5b54['model']['document']['registerPostFixer'](_0x4ff25=>this['listItemIdFixer'](_0x4ff25)),_0x5e5b54['model']['document']['registerPostFixer'](_0x11bb2c=>this['noTrackChangesFixer'](_0x11bb2c)),_0x5e5b54['model']['document']['registerPostFixer'](_0x253608=>this['assureChains'](_0x253608)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x83c5af){if(_0x83c5af['batch']['isUndo']||!_0x83c5af['batch']['isLocal'])return!0x1;let _0x64fab1=!0x1;const _0x24cd62=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1fd408=>_0x1fd408['data']&&'listItemId'==_0x1fd408['data']['key'])['filter'](_0xeca669=>_0xeca669['data']['newValue']&&_0xeca669['data']['oldValue']);for(const _0x5d4162 of _0x24cd62)le(_0x5d4162)||(_0x83c5af['removeMarker'](_0x5d4162['getFirstMarker']()),_0x64fab1=!0x0);return _0x64fab1;}['noTrackChangesFixer'](_0x4fd8e9){if(_0x4fd8e9['batch']['isUndo']||!_0x4fd8e9['batch']['isLocal'])return!0x1;const _0x6b8905=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x6b8905['trackChangesCommand']['value'])return!0x1;let _0x83c225=!0x1;const _0x29dcaa=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x48ddcf=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x468031=>'attribute'==_0x468031['type'])['filter'](_0x23f1a8=>_0x29dcaa['includes'](_0x23f1a8['attributeKey']));if(0x0==_0x48ddcf['length'])return _0x83c225;for(const _0x13cd36 of _0x48ddcf){const _0x145d70=_0x6b8905['_findSuggestions'](_0x13cd36['range'],'attribute')['filter'](_0x58f2a1=>!_0x58f2a1['meta']['isNextTo'])['map'](_0x45d5a1=>_0x45d5a1['suggestion'])['filter'](_0x2c0ea2=>{const _0x396615=_0x6b8905['_getAttributeKey'](_0x2c0ea2);return _0x29dcaa['includes'](_0x396615);});if(_0x145d70['length']){for(const _0x2e1416 of _0x145d70)_0x4fd8e9['removeMarker'](_0x2e1416['getFirstMarker']());_0x83c225=!0x0;}}return _0x83c225;}['assureChains'](_0x40019b){if(_0x40019b['batch']['isUndo']||!_0x40019b['batch']['isLocal'])return!0x1;const _0x47f4eb=this['editor']['plugins']['get']('TrackChangesEditing');let _0xbd4741=!0x1;const _0x3c7f50=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x33bfa9 of _0x47f4eb['getSuggestions']({'skipNotAttached':!0x0})){const _0x2c1290=_0x47f4eb['_findSuggestions'](_0x33bfa9['getFirstRange'](),'attribute')['map'](_0x138dc2=>_0x138dc2['suggestion'])['filter'](_0x3c1331=>_0x3c1331['data']&&_0x3c7f50['includes'](_0x3c1331['data']['key']));if(!_0x2c1290['length'])continue;const _0x28ff55=_0x2c1290[0x0]['head']['attributes']['groupId'];if(!_0x2c1290['every'](_0xab2b70=>_0xab2b70['attributes']['groupId']===_0x28ff55)){for(const _0x23920a of _0x2c1290)_0x37e43e(_0x23920a,_0x28ff55)&&(_0xbd4741=!0x0);}}return _0xbd4741;function _0x28706e(_0x4703bd,_0x1f88b5){for(const _0x25fd15 of _0x47f4eb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x14a471=>'attribute'==_0x14a471['type']&&_0x14a471['attributes']['groupId']==_0x4703bd))_0x25fd15['setAttribute']('groupId',_0x1f88b5);}function _0x37e43e(_0x322fde,_0x8d6889){let _0x1594d7=_0x322fde['head'],_0x199825=!0x1;for(;_0x1594d7;)_0x1594d7['attributes']['groupId']!=_0x8d6889&&(_0x28706e(_0x1594d7['attributes']['groupId'],_0x8d6889),_0x1594d7['setAttribute']('groupId',_0x8d6889),_0x199825=!0x0),_0x1594d7=_0x1594d7['next'];return _0x199825;}}['_supportLegacySuggestions'](){const _0x2374fe=this['editor'],_0x5518a2=_0x2374fe['locale'],_0x5aecad=_0x2374fe['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5aecad['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x361ec3,_0xa3fa09){const _0xe333db=[];for(let _0x9dd3d2 of _0x361ec3)_0x9dd3d2['start']['nodeAfter']===_0x9dd3d2['end']['parent']&&(_0x9dd3d2=_0x2374fe['model']['createRange'](_0x2374fe['model']['createPositionAt'](_0x9dd3d2['start']['nodeAfter'],0x0))),_0xe333db['push'](_0x9dd3d2);_0x2374fe['model']['change'](_0x4dddc6=>{const _0x102a15=_0x2374fe['model']['document']['selection'],_0x4682e1=Array['from'](_0x102a15['getRanges']())['map'](_0x5d6954=>_0x45d820['fromRange'](_0x5d6954));_0x4dddc6['setSelection'](_0xe333db),_0x2374fe['commands']['get'](_0xa3fa09['commandName'])['refresh'](),_0xa3fa09['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2374fe['execute'](_0xa3fa09['commandName'],..._0xa3fa09['commandParams']),_0x4dddc6['setSelection'](_0x4682e1);for(const _0x412b2d of _0x4682e1)_0x412b2d['detach']();});}),_0x5aecad['descriptionFactory']['registerElementLabel'](function(_0x31ccf7){const _0xa96d6e=!_0x2374fe['model']['schema']['isObject'](_0x31ccf7),_0x489d76=_0x31ccf7['previousSibling'],_0x142291=_0x31ccf7['nextSibling'],_0x1c48c3=_0x31ccf7['getAttribute']('listItemId'),_0x16b20d=!_0x489d76||_0x489d76['getAttribute']('listItemId')!==_0x1c48c3,_0xe6f498=!_0x142291||_0x142291['getAttribute']('listItemId')!==_0x1c48c3;return _0xa96d6e&&Boolean(_0x1c48c3)&&_0x16b20d&&_0xe6f498;},_0x21fc55=>o(_0x5518a2,'ELEMENT_LIST_ITEM',_0x21fc55));}['_registerLegacyDescription'](){const _0x38e588=this['editor'],_0x52a2d3=_0x38e588['locale'];function _0x3423d3(_0x525dfd){const _0xd692e2=_0x38e588['commands']['get']('bulletedList')['value'],_0x366fcf=_0x38e588['commands']['get']('numberedList')['value'];return'numberedList'===_0x525dfd?_0xd692e2:_0x366fcf;}_0x38e588['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1be32b){if('formatBlock'!=_0x1be32b['type'])return;const {data:_0x50d174}=_0x1be32b;if(!_0x50d174)return;let _0x210a89,_0x11aaf5,_0x5a84a8,_0x448a87;switch(_0x50d174['commandName']){case'bulletedList':_0x5a84a8=_0x50d174['commandParams'][0x0]['forceValue'],_0x448a87=_0x3423d3(_0x50d174['commandName']),_0x210a89=_0x5a84a8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x448a87&&_0x38e588['config']['get']('list.multiBlock')||(_0x210a89='*Change\x20to:*\x20%0'),_0x11aaf5={'type':'format','content':o(_0x52a2d3,_0x210a89,o(_0x52a2d3,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5a84a8=_0x50d174['commandParams'][0x0]['forceValue'],_0x448a87=_0x3423d3(_0x50d174['commandName']),_0x210a89=_0x5a84a8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x448a87&&_0x38e588['config']['get']('list.multiBlock')||(_0x210a89='*Change\x20to:*\x20%0'),_0x11aaf5={'type':'format','content':o(_0x52a2d3,_0x210a89,o(_0x52a2d3,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x210a89='*Indent:*\x20%0',_0x11aaf5={'type':'format','content':o(_0x52a2d3,_0x210a89,o(_0x52a2d3,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x210a89=function(_0x4e0afc){const _0x5c4cea=_0x4e0afc['getFirstRange']();let _0xb144f=_0x5c4cea['start']['nodeAfter'];for(;_0xb144f&&_0x5c4cea['containsItem'](_0xb144f);){if(_0xb144f['getAttribute']('listIndent')>0x0)return!0x1;_0xb144f=_0xb144f['nextSibling'];}return!0x0;}(_0x1be32b)?o(_0x52a2d3,'*Format:*\x20remove\x20from\x20%0',o(_0x52a2d3,function(_0x4a2498){return'ELEMENT_'+_0x4a2498['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1be32b))):o(_0x52a2d3,'*Outdent:*\x20%0',o(_0x52a2d3,'ELEMENT_LIST_ITEM')),_0x11aaf5={'type':'format','content':_0x210a89};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x50d174['multipleBlocks']&&(_0x210a89='*Merge:*\x20%0',_0x11aaf5={'type':'deletion','content':o(_0x52a2d3,_0x210a89,o(_0x52a2d3,'ELEMENT_LIST_ITEM'))});}return _0x11aaf5;});}}function le(_0x20c9f9){let _0x4259cf=_0x20c9f9['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4259cf;){const _0x26719c=_0x4259cf['getAttribute']('listItemId');if(!_0x26719c)return!0x1;if(_0x26719c==_0x20c9f9['data']['newValue'])return'newValue';if(_0x26719c==_0x20c9f9['data']['oldValue'])return'oldValue';_0x4259cf=_0x4259cf['previousSibling'];}return!0x1;}class ue extends _0x1c9f3d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x242d57=this['editor']['config']['get']('list.properties'),_0x3e4f10=this['editor']['plugins']['get']('TrackChangesEditing');_0x242d57['styles']&&(_0x3e4f10['enableDefaultAttributesIntegration']('listStyle'),_0x3e4f10['registerBlockAttribute']('listStyle')),_0x242d57['reversed']&&(_0x3e4f10['enableDefaultAttributesIntegration']('listReversed'),_0x3e4f10['registerBlockAttribute']('listReversed')),_0x242d57['startIndex']&&(_0x3e4f10['enableDefaultAttributesIntegration']('listStart'),_0x3e4f10['registerBlockAttribute']('listStart'));const _0x366b88={'type':'format','content':''};_0x3e4f10['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xab83b5=this['editor']['locale'];_0x3e4f10['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xab83b5,'FORMAT_LIST_REVERSED')),_0x3e4f10['descriptionFactory']['registerDescriptionCallback'](_0x270b0=>{const {data:_0x12cfd2}=_0x270b0;if(_0x12cfd2&&'listReversed'==_0x12cfd2['key'])return null==_0x12cfd2['newValue']||0x0==_0x12cfd2['newValue']&&null==_0x12cfd2['oldValue']?_0x366b88:void 0x0;}),_0x3e4f10['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xab83b5,'FORMAT_LIST_START')),_0x3e4f10['descriptionFactory']['registerDescriptionCallback'](_0x323af8=>{const {data:_0x418455}=_0x323af8;if(_0x418455&&'listStart'==_0x418455['key'])return null==_0x418455['newValue']||0x1==_0x418455['newValue']&&null==_0x418455['oldValue']?_0x366b88:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5a7460=>{if(_0x5a7460['batch']['isUndo'])return!0x1;let _0xe0d31e=!0x1;const _0x11e19a=_0x3e4f10['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe50866=>{const _0x51b65e=_0x3e4f10['_getAttributeKey'](_0xe50866);return'listStart'==_0x51b65e||'listReversed'==_0x51b65e;});for(const _0x208a2f of _0x11e19a){const _0x63d881=_0x208a2f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x63d881||'customNumbered'==_0x63d881)continue;_0x3e4f10['_findSuggestions'](_0x208a2f['getFirstRange'](),'attribute')['find'](_0xf677a0=>'listType'==_0x3e4f10['_getAttributeKey'](_0xf677a0['suggestion']))||(_0x5a7460['removeMarker'](_0x208a2f['getFirstMarker']()),_0xe0d31e=!0x0);}return _0xe0d31e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5cd5a7){const _0x5bb89c=this['editor']['locale'],{data:_0x3fa74d}=_0x5cd5a7,_0x295d5a={'type':'format','content':''};if(!_0x3fa74d||'listStyle'!=_0x3fa74d['key'])return;if(!_0x3fa74d['oldValue'])return'default'==_0x3fa74d['newValue']?_0x295d5a:{'type':'format','content':''+o(_0x5bb89c,'*Set\x20format:*\x20%0',o(_0x5bb89c,this['_getTranslationKeyForListStyle'](_0x3fa74d['newValue'])))};if(!_0x3fa74d['newValue']){if('default'==_0x3fa74d['oldValue'])return _0x295d5a;let _0x56b35f=_0x5cd5a7['head'];for(;_0x56b35f;){if(_0x56b35f['data']&&'listType'==_0x56b35f['data']['key']&&_0x56b35f['data']['newValue'])return _0x295d5a;_0x56b35f=_0x56b35f['next'];}return{'type':'format','content':''+o(_0x5bb89c,'*Remove\x20format:*\x20%0',o(_0x5bb89c,this['_getTranslationKeyForListStyle'](_0x3fa74d['oldValue'])))};}if('default'!=_0x3fa74d['newValue'])return{'type':'format','content':''+o(_0x5bb89c,'*Set\x20format:*\x20%0',o(_0x5bb89c,this['_getTranslationKeyForListStyle'](_0x3fa74d['newValue'])))};let _0x42f21f=_0x5cd5a7['head'];for(;_0x42f21f;){if(_0x42f21f['data']&&'listType'==_0x42f21f['data']['key']&&_0x42f21f['data']['newValue']&&_0x42f21f['data']['oldValue'])return _0x295d5a;_0x42f21f=_0x42f21f['next'];}return{'type':'format','content':o(_0x5bb89c,'*Set\x20format:*\x20%0',o(_0x5bb89c,'ELEMENT_'+_0x5cd5a7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x21774e=this['editor'],_0xe49ff3=_0x21774e['locale'];_0x21774e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e716c=>{if('formatBlock'!=_0x2e716c['type'])return;const {data:_0x107988}=_0x2e716c;if(!_0x107988)return;let _0x36a7d3,_0xe433b8;switch(_0x107988['commandName']){case'listStyle':_0x36a7d3='*Change\x20to:*\x20%0',_0xe433b8={'type':'format','content':o(_0xe49ff3,_0x36a7d3,o(_0xe49ff3,this['_getTranslationKeyForListStyle'](_0x107988['commandParams'][0x0]['type'])))};break;case'listReversed':_0x36a7d3=_0x107988['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xe433b8={'type':'format','content':o(_0xe49ff3,_0x36a7d3)};break;case'listStart':_0x36a7d3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xe433b8={'type':'format','content':o(_0xe49ff3,_0x36a7d3,_0x107988['commandParams'][0x0]['startIndex'])};}return _0xe433b8;});}['_getTranslationKeyForListStyle'](_0x4a6720){return'ELEMENT_'+function(_0x1872bb){if(pe['includes'](_0x1872bb))return'bulleted';if(ye['includes'](_0x1872bb))return'numbered';return null;}(_0x4a6720)['toUpperCase']()+'_LIST_'+_0x4a6720['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x1c9f3d{static get['requires'](){return[_0x4d004a];}['init'](){const _0xe7b48c=this['editor'],_0x195e98=_0xe7b48c['plugins']['get']('TrackChangesEditing'),_0x4cc4f2=_0xe7b48c['commands']['get']('enter');_0x195e98['enableCommand']('enter',()=>{_0xe7b48c['model']['change'](_0x3cddab=>{const _0x1d6039=_0xe7b48c['model']['document']['selection'],_0x4d9538=_0x1d6039['getFirstPosition'](),_0x310ca4=_0x45d820['fromRange'](_0x1d6039['getFirstRange']());if(_0x4cc4f2['enterBlock'](_0x3cddab)){const _0x1b6de0=_0xe7b48c['model']['createPositionAt'](_0x4d9538['parent']['nextSibling'],0x0),_0xdf5d18=_0x3cddab['createRange'](_0x4d9538,_0x1b6de0);_0x195e98['markInsertion'](_0xdf5d18);}else _0x3cddab['setSelection'](_0x3cddab['createRange'](_0x310ca4['end']));_0x310ca4['detach'](),_0x4cc4f2['fire']('afterExecute',{'writer':_0x3cddab});});}),_0xe7b48c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0xe7b48c,'split'),{'priority':'high'}),_0xe7b48c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x27399f,_0x2264fa,_0x27b2dd)=>{const _0x54749f=_0x27b2dd['mapper']['markerNameToElements'](_0x2264fa['markerName']);if(_0x54749f){for(const _0x3717bf of _0x54749f)_0x3717bf['hasClass']('ck-suggestion-marker-split')&&(_0x27b2dd['mapper']['unbindElementFromMarkerName'](_0x3717bf,_0x2264fa['markerName']),_0x27b2dd['writer']['remove'](_0x3717bf));}},{'priority':'high'}),_0xe7b48c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x305e78,_0x175d1f,_0x1e7608)=>{_0x1e7608['options']['showSuggestionHighlights']&&_e(_0xe7b48c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x305e78,_0x175d1f,_0x1e7608);},{'priority':'high'});}}class J extends _0x1c9f3d{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x10abc9=this['editor']['plugins']['get']('TrackChangesEditing');_0x10abc9['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x10abc9['enableCommand']('findNext'),_0x10abc9['enableCommand']('findPrevious'),_0x10abc9['enableCommand']('replace'),_0x10abc9['enableCommand']('replaceAll');}['handleFindCommand'](_0x32b1a0,_0x16ab96,_0x650b1a={}){const _0x92af58=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x32b1a0(_0x213baa=>('string'==typeof _0x16ab96?_0x92af58['findByTextCallback'](_0x16ab96,_0x650b1a):_0x16ab96)(_0x213baa)['filter'](_0xf146df=>!0x1===this['_isInDeletionRange'](_0xf146df,_0x213baa['item'])),_0x650b1a);}['_isInDeletionRange'](_0x4a8463,_0x446129){const _0x55c2b2=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x446129,_0x4a8463['start']),this['editor']['model']['createPositionAt'](_0x446129,_0x4a8463['end']));for(const _0x5e3259 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x55c2b2['getIntersection'](_0x5e3259['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x1c9f3d{['afterInit'](){const _0x28fcd=this['editor']['locale'],_0x3f8672=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3e3706,commandName:_0x479123}of ro)this['editor']['plugins']['has'](_0x3e3706)&&(_0x3f8672['enableDefaultAttributesIntegration'](_0x479123),_0x3f8672['registerInlineAttribute'](_0x479123));_0x28fcd['t'],_0x3f8672['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x28fcd,'FORMAT_FONT_SIZE')),_0x3f8672['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x28fcd,'FORMAT_FONT_FAMILY')),_0x3f8672['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x28fcd,'FORMAT_FONT_COLOR')),_0x3f8672['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x28fcd,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c2bca=this['editor'],_0x4b4579=_0x4c2bca['locale'];_0x4c2bca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c6b84=>{const _0x554807=_0x4b4579['t'];if('formatInline'!=_0x1c6b84['type'])return;const {data:_0x3dedb2}=_0x1c6b84;if(null!=_0x3dedb2){if('fontSize'==_0x3dedb2['commandName']){const _0x45c16f=_0x3dedb2['commandParams'][0x0]['value'];if(_0x45c16f){const _0x3760bc=_0x554807(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4cbc09=>_0x4cbc09['model']==_0x45c16f)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4b4579,'*Set\x20font\x20size:*\x20%0',_0x3760bc)};}return{'type':'format','content':o(_0x4b4579,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3dedb2['commandName']){const _0x15e7d5=_0x3dedb2['commandParams'][0x0]['value'];return _0x15e7d5?{'type':'format','content':o(_0x4b4579,'*Set\x20font\x20family:*\x20%0',_0x15e7d5)}:{'type':'format','content':o(_0x4b4579,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3dedb2['commandName']){const _0x4e6dbe=_0x3dedb2['commandParams'][0x0]['value'];if(_0x4e6dbe){const _0x46a631=_0x22d4d7(this['editor']['config']['get']('fontColor.colors'))['find'](_0x257ca2=>_0x257ca2['model']==_0x4e6dbe);let _0x5d152f=_0x4e6dbe,_0x247fb9='';return _0x46a631&&(_0x5d152f=_0x46a631['label'],_0x247fb9=_0x554807(_0x5d152f)['toLowerCase']()),{'type':'format','content':o(_0x4b4579,'*Set\x20font\x20color:*\x20%0',_0x247fb9)['trim'](),'color':{'value':_0x4e6dbe,'title':_0x247fb9||_0x5d152f}};}return{'type':'format','content':o(_0x4b4579,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3dedb2['commandName']){const _0x3e4047=_0x3dedb2['commandParams'][0x0]['value'];if(_0x3e4047){const _0x56d6ab=_0x22d4d7(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x446fe7=>_0x446fe7['model']==_0x3e4047);let _0x35e7ae=_0x3e4047,_0x3452e1='';return _0x56d6ab&&(_0x35e7ae=_0x56d6ab['label'],_0x3452e1=_0x554807(_0x35e7ae)['toLowerCase']()),{'type':'format','content':o(_0x4b4579,'*Set\x20font\x20background\x20color:*\x20%0',_0x3452e1)['trim'](),'color':{'value':_0x3e4047,'title':_0x3452e1||_0x35e7ae}};}return{'type':'format','content':o(_0x4b4579,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x1c9f3d{['afterInit'](){const _0x4a4a09=this['editor'],_0x31326e=_0x4a4a09['plugins']['get']('TrackChangesEditing'),_0xe79680=_0x4a4a09['commands']['get']('copyFormat'),_0xab5cad=_0x4a4a09['commands']['get']('pasteFormat');_0xe79680&&_0xab5cad&&(_0x31326e['enableDefaultAttributesIntegration']('pasteFormat'),_0x31326e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2704c8=this['editor'],_0x240f08=_0x2704c8['locale'];_0x2704c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x439aad=>{if('formatBlock'!=_0x439aad['type']&&'formatInline'!=_0x439aad['type'])return;const {data:_0x2badd8}=_0x439aad;if(_0x2badd8&&'pasteFormat'===_0x2badd8['commandName']){const _0x18a6e3=[],_0x4cb96f=_0x2badd8['commandParams'][0x0];for(const [_0x45617d,_0x492825]of Object['entries'](_0x4cb96f))_0x18a6e3['push'](so(_0x2704c8,_0x45617d,_0x492825));return _0x18a6e3['length']?{'type':'format','content':o(_0x240f08,'*Set\x20format\x20to:*\x20%0',_0x18a6e3['join'](',\x20'))}:{'type':'format','content':o(_0x240f08,'*Remove\x20all\x20formatting*')};}});}}function so(_0x52cdf5,_0x7cab2d,_0x572745){const _0x23ef46=_0x52cdf5['locale']['t'],_0x4a368a=_0x7cab2d['split'](/(?=[A-Z])/)['join']('\x20'),_0x359065=_0x23ef46(_0x4a368a['charAt'](0x0)['toUpperCase']()+_0x4a368a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x572745)return _0x359065;if('fontColor'===_0x7cab2d||'fontBackgroundColor'===_0x7cab2d){const _0x5c3802=_0x22d4d7(_0x52cdf5['config']['get']('fontColor.colors'))['find'](_0x23f9c8=>_0x23f9c8['model']==_0x572745);return _0x359065+'\x20('+(_0x5c3802?_0x23ef46(_0x5c3802['label'])['toLowerCase']():_0x572745)+')';}if('fontSize'===_0x7cab2d&&isNaN(parseFloat(_0x572745))){const _0x2de2f7=_0x52cdf5['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x52cdf5['config']['get']('fontSize.options'))['find'](_0x3bf5d4=>_0x3bf5d4['model']==_0x572745);return _0x359065+'\x20('+(_0x2de2f7?_0x23ef46(_0x2de2f7['title'])['toLowerCase']():_0x572745)+')';}return _0x359065+'\x20('+_0x572745+')';}class Y extends _0x1c9f3d{['_headingOptions'];['afterInit'](){const _0x105c76=this['editor'];if(!_0x105c76['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x105c76['config']['get']('heading.options');const _0x5886fc=_0x105c76['locale'],_0x221c79=_0x105c76['plugins']['get']('TrackChangesEditing');_0x221c79['enableDefaultAttributesIntegration']('heading');for(const _0x1818c5 of this['_headingOptions'])'paragraph'!=_0x1818c5['model']&&_0x221c79['descriptionFactory']['registerElementLabel'](_0x1818c5['model'],_0x8b05e2=>{const _0x112689=this['_getHeadingLevel'](_0x1818c5['model']);return null!==_0x112689?_0x175e08(_0x8b05e2,_0x112689):_0xb5738a(_0x8b05e2,_0x1818c5['title']);});function _0x175e08(_0x20d0bf,_0xbd3d9){return o(_0x5886fc,'ELEMENT_HEADING',[_0x20d0bf,_0xbd3d9]);}function _0xb5738a(_0x12de07,_0x5ab19c){return o(_0x5886fc,'ELEMENT_HEADING_CUSTOM',[_0x12de07,_0x5ab19c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x97f16c=this['editor'],_0x25035f=_0x97f16c['locale'];function _0x401ae9(_0x2f55cf,_0x2c65c6){return o(_0x25035f,'ELEMENT_HEADING_CUSTOM',[_0x2f55cf,_0x2c65c6]);}_0x97f16c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x323507=>{if('formatBlock'!=_0x323507['type'])return;const {data:_0x50792d}=_0x323507;if(_0x50792d&&'heading'==_0x50792d['commandName']){const _0x221963=_0x50792d['commandParams'][0x0]['value'],_0x1f5add=this['_getHeadingLevel'](_0x221963);if(null!==_0x1f5add)return{'type':'format','content':o(_0x25035f,'*Change\x20to:*\x20%0',(_0x48434a=0x1,_0x4f905e=_0x1f5add,o(_0x25035f,'ELEMENT_HEADING',[_0x48434a,_0x4f905e])))};const _0x55c363=this['_headingOptions']['find'](_0x2a87cb=>_0x2a87cb['model']===_0x221963)['title'];return{'type':'format','content':o(_0x25035f,'*Change\x20to:*\x20%0',_0x401ae9(0x1,_0x55c363))};}var _0x48434a,_0x4f905e;});}['_getHeadingLevel'](_0x403f49){const _0x1a7d69=_0x403f49['match'](/^heading(\d+)/);if(_0x1a7d69)return _0x1a7d69[0x1];const _0x5a017d=this['_headingOptions']?.['find'](_0x4c78e6=>_0x4c78e6['model']==_0x403f49);if(_0x5a017d&&_0x5a017d['view']){const _0x3e4c38=_0x5a017d['view'],_0x40ed7b=(_0x3e4c38['name']??_0x3e4c38)['match'](/^h(\d+)/);if(_0x40ed7b)return _0x40ed7b[0x1];}return null;}}class Z extends _0x1c9f3d{['afterInit'](){const _0x80a88e=this['editor'];if(!_0x80a88e['plugins']['has']('HighlightEditing'))return;const _0x365178=_0x80a88e['plugins']['get']('TrackChangesEditing'),_0xb7e029=_0x80a88e['locale'];_0x365178['enableDefaultAttributesIntegration']('highlight'),_0x365178['registerInlineAttribute']('highlight'),_0x365178['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xb7e029,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7b2ff8=this['editor'],_0x49eb35=_0x7b2ff8['locale'];_0x7b2ff8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50b347=>{if('formatInline'!=_0x50b347['type'])return;const {data:_0x172e8b}=_0x50b347;if(_0x172e8b&&'highlight'==_0x172e8b['commandName']){const _0x12f1ab=_0x49eb35['t'],_0x318a0f=_0x172e8b['commandParams'][0x0]['value'];if(_0x318a0f){const _0x3796b3=_0x7b2ff8['config']['get']('highlight.options')['find'](_0x45e893=>_0x45e893['model']==_0x318a0f),_0x530a38=_0x12f1ab(_0x3796b3['title'])['toLowerCase']();return{'type':'format','content':o(_0x49eb35,'*Set\x20highlight:*\x20%0',_0x530a38),'color':{'value':_0x3796b3['color'],'title':_0x3796b3['title']}};}return{'type':'format','content':o(_0x49eb35,'*Remove\x20highlight*',o(_0x49eb35,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x1c9f3d{['afterInit'](){const _0x2314b8=this['editor'];if(!_0x2314b8['plugins']['has']('HorizontalLineEditing'))return;_0x2314b8['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xd80198=_0x2314b8['plugins']['get']('TrackChangesEditing'),_0x4e0908=_0x2314b8['locale'];_0xd80198['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3d3934=>o(_0x4e0908,'ELEMENT_HORIZONTAL_LINE',_0x3d3934)),_0x2314b8['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xd42b8,{writer:_0x59ba81,options:_0x225b8e})=>{if(!_0x225b8e['showSuggestionHighlights'])return null;const _0x5494f9=_0x59ba81['createContainerElement']('div'),_0x1b9238=_0x59ba81['createEmptyElement']('hr');return _0x59ba81['addClass']('ck-horizontal-line',_0x5494f9),_0x59ba81['insert'](_0x59ba81['createPositionAt'](_0x5494f9,0x0),_0x1b9238),_0x5494f9;},'converterPriority':'high'});}}class et extends _0x1c9f3d{['afterInit'](){const _0x4294d9=this['editor'];if(!_0x4294d9['plugins']['has']('HtmlEmbed'))return;const _0x474290=_0x4294d9['plugins']['get']('TrackChangesEditing'),_0x4090fd=_0x4294d9['locale'];_0x474290['descriptionFactory']['registerElementLabel']('rawHtml',_0x4bc05b=>o(_0x4090fd,'ELEMENT_HTML_EMBED',_0x4bc05b)),_0x474290['enableDefaultAttributesIntegration']('htmlEmbed'),_0x474290['registerBlockAttribute']('value'),_0x474290['descriptionFactory']['registerDescriptionCallback'](_0x56cb4f=>{if('attribute'!=_0x56cb4f['type'])return;const {data:_0x4f362d}=_0x56cb4f;if(_0x4f362d&&'value'==_0x4f362d['key']&&_0x56cb4f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1f6f9f=o(_0x4090fd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4090fd,'*Change\x20%0\x20content*',_0x1f6f9f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2690a5=this['editor'],_0x27a4d8=_0x2690a5['locale'];_0x2690a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfa988f=>{if('formatBlock'!=_0xfa988f['type'])return;const {data:_0x1c9b5a}=_0xfa988f;if(_0x1c9b5a&&'htmlEmbed'==_0x1c9b5a['commandName']){const _0x4dad5a=o(_0x27a4d8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x27a4d8,'*Change\x20%0\x20content*',_0x4dad5a)};}});}}class it extends _0x1c9f3d{['afterInit'](){const _0x2117e4=this['editor'];if(!_0x2117e4['plugins']['has']('ImageEditing'))return;const _0x4a0bde=_0x2117e4['plugins']['get']('TrackChangesEditing'),_0x5e16e9=_0x2117e4['plugins']['get']('ImageUtils'),_0x4ff554=_0x2117e4['locale'];_0x4a0bde['enableCommand']('insertImage'),_0x4a0bde['descriptionFactory']['registerElementLabel']('imageBlock',_0x4a0025=>o(_0x4ff554,'ELEMENT_IMAGE',_0x4a0025)),_0x4a0bde['descriptionFactory']['registerElementLabel']('imageInline',_0x2d71d1=>o(_0x4ff554,'ELEMENT_INLINE_IMAGE',_0x2d71d1)),_0x4a0bde['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4ff554,'ELEMENT_CAPTION')),_0x2117e4['plugins']['has']('ImageUploadEditing')&&_0x4a0bde['enableCommand']('uploadImage'),_0x2117e4['plugins']['has']('ImageBlockEditing')&&_0x2117e4['plugins']['has']('ImageInlineEditing')&&(_0x4a0bde['enableCommand']('imageTypeInline',(_0x5a3ede,_0x47d767)=>{const _0x29e47c=_0x5e16e9['getClosestSelectedImageElement'](_0x2117e4['model']['document']['selection']);_0x2117e4['model']['change'](()=>{_0x4a0bde['markBlockFormat'](_0x29e47c,{'commandName':'imageTypeInline','commandParams':[_0x47d767]},[],'convertBlockImageToInline');});}),_0x4a0bde['enableCommand']('imageTypeBlock',(_0x832e40,_0x278ab1)=>{_0x2117e4['model']['change'](_0x3c9f52=>{let _0x13626c=_0x5e16e9['getClosestSelectedImageElement'](_0x2117e4['model']['document']['selection']),_0x4011ae=_0x3c9f52['createRangeOn'](_0x13626c);const _0x468ee0=_0x45caaa['fromPosition'](_0x4011ae['start'],'toPrevious'),_0x2fbd97=_0x45caaa['fromPosition'](_0x4011ae['end'],'toNext');_0x4a0bde['forceDefaultExecution'](()=>_0x832e40(_0x278ab1)),_0x13626c=_0x5e16e9['getClosestSelectedImageElement'](_0x2117e4['model']['document']['selection']),_0x4011ae=_0x3c9f52['createRangeOn'](_0x13626c);const _0x5eeb50=_0x3c9f52['createRange'](_0x468ee0,_0x2fbd97);_0x468ee0['detach'](),_0x2fbd97['detach'](),_0x4a0bde['markBlockFormat'](_0x13626c,{'commandName':'imageTypeInline','commandParams':[_0x278ab1]},[],'convertInlineImageToBlock'),_0x5eeb50['start']['isBefore'](_0x4011ae['start'])&&_0x4a0bde['markInsertion'](_0x3c9f52['createRange'](_0x5eeb50['start'],_0x4011ae['start']),'convertInlineImageToBlock'),_0x4011ae['end']['isBefore'](_0x5eeb50['end'])&&_0x4a0bde['markInsertion'](_0x3c9f52['createRange'](_0x4011ae['end'],_0x5eeb50['end']),'convertInlineImageToBlock');});}),_0x4a0bde['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4a0bde['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4a0bde['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4a0bde['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4a0bde['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4a0bde['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x56a9e2])=>{const _0x16e240=_0x4a0bde['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x272bbc=_0x56a9e2['start'],_0x3477f7=_0x56a9e2['end'];const _0x19dfe=_0x2117e4['model']['schema']['getNearestSelectionRange'](_0x272bbc,'backward'),_0x23a5f4=_0x2117e4['model']['schema']['getNearestSelectionRange'](_0x3477f7,'forward');_0x19dfe['isCollapsed']&&(_0x272bbc=_0x19dfe['start']),_0x23a5f4['isCollapsed']&&(_0x3477f7=_0x23a5f4['end']),_0x16e240([_0x2117e4['model']['createRange'](_0x272bbc,_0x3477f7)]);}),_0x4a0bde['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xb0a6c2),_0x4a0bde['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xb0a6c2)),_0x2117e4['plugins']['has']('ImageCaptionEditing')&&(_0x4a0bde['enableCommand']('toggleImageCaption',(_0x5e2443,_0x547f97)=>{const _0x4ae270=_0x2117e4['plugins']['get']('ImageCaptionUtils');let _0xd66f0d=_0x5e16e9['getClosestSelectedImageElement'](_0x2117e4['model']['document']['selection']),_0x3b36dc=_0x4ae270['getCaptionFromImageModelElement'](_0xd66f0d);_0x2117e4['model']['change'](()=>{if(_0x3b36dc)return void _0x4a0bde['markDeletion'](_0x2117e4['model']['createRangeOn'](_0x3b36dc));const _0x902e19=_0x5e16e9['isBlockImage'](_0xd66f0d);_0x5e2443(_0x547f97),_0xd66f0d=_0x5e16e9['getClosestSelectedImageElement'](_0x2117e4['model']['document']['selection']),_0x3b36dc=_0x4ae270['getCaptionFromImageModelElement'](_0xd66f0d),_0x4a0bde['markInsertion'](_0x2117e4['model']['createRangeOn'](_0x3b36dc),_0x902e19?null:'imageCaption');});}),_0x4a0bde['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xb0a6c2));const _0x47e824=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x46bcf1(_0x54f5cd,_0x41711f){const _0x4c165b=_0x47e824['findIndex'](({type:_0x4179cf,subType:_0x45eee6})=>_0x54f5cd['type']==_0x4179cf&&_0x54f5cd['subType']==_0x45eee6),_0x4aa3bd=_0x47e824['findIndex'](({type:_0x56cd1b,subType:_0x1e1556})=>_0x41711f['type']==_0x56cd1b&&_0x41711f['subType']==_0x1e1556);if(_0x4c165b<0x0||_0x4aa3bd<0x0)return!0x1;const _0x3ffa33=_0x54f5cd['getFirstRange'](),_0x173c77=_0x41711f['getFirstRange']();if((0x0==_0x4c165b||0x1==_0x4c165b)&&0x2==_0x4aa3bd&&_0x3ffa33['isIntersecting'](_0x173c77))return!0x0;if(0x2==_0x4c165b&&0x3==_0x4aa3bd){const _0x5ec192=_0x4a0bde['_findSuggestions'](_0x3ffa33,'insertion')['filter'](({suggestion:_0x942c7a,meta:_0x1705eb})=>_0x1705eb['isOwn']&&'convertInlineImageToBlock'==_0x942c7a['subType']);if(_0x5ec192['length']>0x1&&_0x173c77['end']['isEqual'](_0x3ffa33['start']))return!0x0;if(0x1==_0x5ec192['length']&&(_0x3ffa33['start']['isEqual'](_0x173c77['end'])||_0x3ffa33['end']['isEqual'](_0x173c77['start'])))return!0x0;}if(0x3==_0x4c165b&&0x3==_0x4aa3bd&&_0x3ffa33['start']['isBefore'](_0x173c77['start'])){const _0x390000=_0x3ffa33['end']['nodeAfter'],_0x52649b=_0x173c77['start']['nodeBefore'];return _0x5e16e9['isBlockImage'](_0x390000)&&_0x390000===_0x52649b;}return!0x1;}function _0xb0a6c2(_0x59a0f5,_0x2d809f){return _0x46bcf1(_0x59a0f5,_0x2d809f)?[_0x59a0f5,_0x2d809f]:_0x46bcf1(_0x2d809f,_0x59a0f5)?[_0x2d809f,_0x59a0f5]:null;}_0x2117e4['plugins']['has']('ImageResize')&&(_0x4a0bde['enableDefaultAttributesIntegration']('resizeImage'),_0x4a0bde['registerBlockAttribute']('resizedWidth'),_0x4a0bde['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4ff554,'FORMAT_IMAGE_SIZE'))),_0x2117e4['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4a0bde['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4a0bde['registerBlockAttribute']('alt')),_0x4a0bde['descriptionFactory']['registerDescriptionCallback'](_0x442870=>{if(!!_0x47e824['find'](({type:_0x4e881c,subType:_0x1d00b8})=>_0x442870['type']==_0x4e881c&&_0x442870['subType']==_0x1d00b8))return _0x442870['previous']?{}:void 0x0;}),_0x4a0bde['descriptionFactory']['registerDescriptionCallback'](_0x195886=>{if('insertion'==_0x195886['type']||'deletion'==_0x195886['type']){const _0x2574cb=_0x195886['getContainedElement']();if(_0x2574cb&&_0x2574cb['is']('element','caption'))return{'type':'insertion'==_0x195886['type']?'addObject':'removeObject','element':_0x2574cb,'quantity':0x1};}}),_0x4a0bde['descriptionFactory']['registerDescriptionCallback'](_0x2e62b9=>'formatBlock'==_0x2e62b9['type']&&'convertInlineImageToBlock'==_0x2e62b9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2e62b9['type']&&'convertBlockImageToInline'==_0x2e62b9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4a0bde['descriptionFactory']['registerDescriptionCallback'](_0x38b7f6=>{if('attribute'!=_0x38b7f6['type'])return;const {data:_0x32df10}=_0x38b7f6;if(!_0x32df10||'alt'!=_0x32df10['key'])return;const _0x2bb987=_0x32df10['newValue'];return _0x2bb987?{'type':'format','content':o(_0x4ff554,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2bb987+'\x22')}:{'type':'format','content':o(_0x4ff554,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x499503=this['editor'],_0x5d1a3a=_0x499503['locale'];_0x499503['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27e597=>{if('formatBlock'!=_0x27e597['type']&&'formatInline'!=_0x27e597['type'])return;const {data:_0x51aed6}=_0x27e597;if(_0x51aed6){if('imageTextAlternative'==_0x51aed6['commandName']){const _0x2a67f2=_0x51aed6['commandParams'][0x0]['newValue'];return _0x2a67f2?{'type':'format','content':o(_0x5d1a3a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2a67f2+'\x22')}:{'type':'format','content':o(_0x5d1a3a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x51aed6['commandName']){const _0x247534=_0x51aed6['commandParams'][0x0]['width'];return _0x247534?{'type':'format','content':o(_0x5d1a3a,'*Set\x20image\x20width:*\x20%0',_0x247534)}:{'type':'format','content':o(_0x5d1a3a,'*Reset\x20image\x20width*')};}}});}}class st extends _0x1c9f3d{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x16978e=this['editor']['locale'],_0x20bea7=this['editor']['plugins']['get']('TrackChangesEditing');_0x20bea7['enableDefaultAttributesIntegration']('replaceImageSource'),_0x20bea7['registerBlockAttribute']('src'),_0x20bea7['descriptionFactory']['registerDescriptionCallback'](_0x1c895b=>{if('attribute'!=_0x1c895b['type'])return;const {data:_0x2a36d7}=_0x1c895b;return _0x2a36d7&&'src'==_0x2a36d7['key']?_0x2a36d7['newValue']&&_0x2a36d7['oldValue']?{'type':'format','content':o(_0x16978e,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5a211b=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a211b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5a211b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5a211b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5a211b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x505604=this['editor'],_0x432502=_0x505604['locale'];_0x505604['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32b37a=>{if('formatBlock'!=_0x32b37a['type']&&'formatInline'!=_0x32b37a['type'])return;const {data:_0xb14f74}=_0x32b37a;if(!_0xb14f74||'replaceImageSource'!=_0xb14f74['commandName'])return;return{'type':'format','content':o(_0x432502,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x1c9f3d{['afterInit'](){const _0x42b948=this['editor'];if(!_0x42b948['plugins']['has']('ImageStyleEditing'))return;const _0x44b9dd=_0x42b948['plugins']['get']('TrackChangesEditing'),_0xa260e=_0x42b948['plugins']['get']('ImageUtils'),_0x1fb023={};_0x44b9dd['enableCommand']('imageStyle',(_0x379d8b,_0x2cc31c)=>{const _0x29fa04=_0x42b948['plugins']['get']('Users')['me'],_0x5c8a54=_0x42b948['commands']['get']('imageStyle');let _0x2abf7a=_0xa260e['getClosestSelectedImageElement'](_0x42b948['model']['document']['selection']),_0x4cd32a=_0x42b948['model']['createRangeOn'](_0x2abf7a),_0x36c408=_0x5c8a54['value'];if(_0x36c408==_0x2cc31c['value'])return;const _0x84814a={'commandName':'imageStyle','commandParams':[_0x2cc31c],'formatGroupId':_0x7b6b31()};_0x42b948['model']['change'](()=>{if(_0x44b9dd['getSuggestions']()['filter'](_0x54a395=>_0x54a395['isInContent']&&_0x29fa04==_0x54a395['author']&&('formatBlock'==_0x54a395['type']||'formatInline'==_0x54a395['type'])&&('imageStylePreApply'==_0x54a395['subType']||'imageStylePostApply'==_0x54a395['subType'])&&_0x54a395['getFirstRange']()['isEqual'](_0x4cd32a))['forEach'](_0x48490c=>_0x44b9dd['discardSuggestion'](_0x48490c['head'])),_0x2abf7a=_0xa260e['getClosestSelectedImageElement'](_0x42b948['model']['document']['selection']),_0x4cd32a=_0x42b948['model']['createRangeOn'](_0x2abf7a),_0x5c8a54['refresh'](),_0x42b948['commands']['get']('imageTypeInline')['refresh'](),_0x42b948['commands']['get']('imageTypeBlock')['refresh'](),_0x36c408=_0x5c8a54['value'],_0x36c408!=_0x2cc31c['value'])return _0xa260e['isInlineImage'](_0x2abf7a)&&_0x5c8a54['shouldConvertImageType'](_0x2cc31c['value'],_0x2abf7a)?(_0x379d8b({..._0x2cc31c,'setImageSizes':!0x1}),_0x2abf7a=_0xa260e['getClosestSelectedImageElement'](_0x42b948['model']['document']['selection']),void _0x44b9dd['markBlockFormat'](_0x2abf7a,{..._0x84814a,'commandReversedParams':[{'value':_0x36c408||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xa260e['isBlockImage'](_0x2abf7a)?_0x44b9dd['markBlockFormat'](_0x2abf7a,_0x84814a,[],'imageStylePostApply'):_0x44b9dd['markInlineFormat'](_0x4cd32a,_0x84814a,'imageStylePostApply'));});});for(const _0x10c72d of _0x42b948['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1fb023[_0x10c72d['name']]=_0x10c72d['title']['toLowerCase']();_0x44b9dd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x44b9dd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x44b9dd['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x44b9dd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x24dbc6])=>{_0xa260e['setImageNaturalSizeAttributes'](_0x24dbc6['getContainedElement']());}),_0x44b9dd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2262bf,_0x1c23cd)=>{_0x44b9dd['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2262bf,{'commandName':_0x1c23cd['commandName'],'commandParams':_0x1c23cd['commandReversedParams']});}),_0x44b9dd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3e6dbb,_0x4f25d8){if(_0x2b3045(_0x3e6dbb,_0x4f25d8))return[_0x3e6dbb,_0x4f25d8];if(_0x2b3045(_0x4f25d8,_0x3e6dbb))return[_0x4f25d8,_0x3e6dbb];return null;});const _0x56e27c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2b3045(_0xa2702c,_0x5d4cf1){const _0x5993a3=_0x56e27c['findIndex'](({type:_0x57366e,subType:_0x4bcbaf})=>_0xa2702c['type']==_0x57366e&&_0xa2702c['subType']==_0x4bcbaf),_0x44d5e3=_0x56e27c['findIndex'](({type:_0x519a33,subType:_0x5531bf})=>_0x5d4cf1['type']==_0x519a33&&_0x5d4cf1['subType']==_0x5531bf);if(_0x5993a3<0x0||_0x44d5e3<0x0)return!0x1;const _0x5af980=_0xa2702c['getFirstRange'](),_0x176c80=_0x5d4cf1['getFirstRange']();if((0x0==_0x5993a3||0x1==_0x5993a3)&&0x2==_0x44d5e3&&_0x5af980['isIntersecting'](_0x176c80))return!0x0;if(0x2==_0x5993a3&&0x3==_0x44d5e3){const _0x359bd6=_0x44b9dd['_findSuggestions'](_0x5af980,'insertion')['filter'](({suggestion:_0x9199a3,meta:_0x13d619})=>_0x13d619['isOwn']&&'convertInlineImageToBlock'==_0x9199a3['subType']);if(_0x359bd6['length']>0x1&&_0x176c80['end']['isEqual'](_0x5af980['start']))return!0x0;if(0x1==_0x359bd6['length']&&(_0x5af980['start']['isEqual'](_0x176c80['end'])||_0x5af980['end']['isEqual'](_0x176c80['start'])))return!0x0;}if(0x3==_0x5993a3&&0x3==_0x44d5e3&&_0x5af980['start']['isBefore'](_0x176c80['start'])){const _0x41dff8=_0x5af980['end']['nodeAfter'],_0x3d418f=_0x176c80['start']['nodeBefore'];return _0xa260e['isBlockImage'](_0x41dff8)&&_0x41dff8===_0x3d418f;}return!0x1;}_0x42b948['model']['document']['registerPostFixer'](()=>{let _0x3b4281=!0x1;const _0x4a9470=Array['from'](_0x42b948['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x12bcb6,data:_0x209999}of _0x4a9470){const {group:_0x2c8206,type:_0x5840fb,subType:_0x1351fe,id:_0x576a38}=_0x44b9dd['_splitMarkerName'](_0x12bcb6);if('suggestion'==_0x2c8206&&_0x44b9dd['hasSuggestion'](_0x576a38)){if('formatBlock'==_0x5840fb&&('imageStylePreApply'==_0x1351fe||'imageStylePostApply'==_0x1351fe)){const _0x4407d7=_0x44b9dd['getSuggestion'](_0x576a38);if(_0x209999['newRange']){const _0x5b9b96=_0x4407d7['getFirstRange']()['getContainedElement']();if(_0xa260e['isBlockImage'](_0x5b9b96))continue;_0x44b9dd['discardSuggestion'](_0x4407d7),_0x3b4281=!0x0;}}if('insertion'==_0x5840fb&&'imageCaption'==_0x1351fe&&!_0x209999['newRange']){const _0x304130=_0x44b9dd['getSuggestion'](_0x576a38);_0x304130['next']&&_0x304130['next']['isInContent']&&(_0x44b9dd['discardSuggestion'](_0x304130['next']),_0x3b4281=!0x0);}}}return _0x3b4281;}),this['_registerLegacyDescription'](_0x1fb023);}['_registerLegacyDescription'](_0x4f0767){const _0x290d05=this['editor'],_0x5b6495=_0x290d05['locale'];_0x290d05['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e0195=>{if('formatBlock'!=_0x5e0195['type']&&'formatInline'!=_0x5e0195['type'])return;const {data:_0x1782c0}=_0x5e0195;if(!_0x1782c0||'imageStyle'!=_0x1782c0['commandName'])return;const _0x40e5ab=_0x1782c0['commandParams'][0x0]['value'];return _0xfc7d7d('side'===_0x40e5ab?o(_0x5b6495,'FORMAT_SIDE_IMAGE'):_0x4f0767[_0x40e5ab]||_0x40e5ab);function _0xfc7d7d(_0x405952){return{'type':'format','content':o(_0x5b6495,'*Format:*\x20%0',_0x405952)};}});}}class ot extends _0x1c9f3d{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x292b8c){super(_0x292b8c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x26c808=this['editor'],_0x2c4811=_0x26c808['commands']['get']('importWord'),_0x3adb06=_0x26c808['commands']['get']('trackChanges');_0x2c4811&&(_0x2c4811['on']('execute',(_0x51b5ff,[,_0x232589])=>{this['_trackChangesValueDuringImport']=_0x3adb06['value'],_0x232589['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2c4811,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2c4811,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3adb06['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x26c808['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xd11990,_0x4684a1){const {suggestions:_0x52a85d}=_0x4684a1,_0x57c1a1=this['editor']['commands']['get']('trackChanges'),_0x503fd2=_0x57c1a1['value'];this['_trackChangesValueDuringImport']!==_0x503fd2&&(_0x57c1a1['execute'](),this['_trackChangesExecuted']=!0x0),_0x52a85d&&_0x52a85d['forEach'](({id:_0x5c72b0,type:_0x1ca477,author:_0x44fc33,created_at:_0x2aa413})=>{const _0xb75275={'id':_0x5c72b0,'type':_0x1ca477,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x44fc33,'createdAt':_0x2aa413?new Date(_0x2aa413):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xb75275);});}}class rt extends _0x1c9f3d{['afterInit'](){const _0x547f0c=this['editor'],_0x20e369=_0x547f0c['plugins']['get']('TrackChangesEditing');if(_0x547f0c['plugins']['has']('IndentEditing')&&(_0x20e369['enableCommand']('indent'),_0x20e369['enableCommand']('outdent')),_0x547f0c['plugins']['has']('IndentBlock')){for(const _0x14906c of['indentBlock','outdentBlock'])_0x20e369['enableDefaultAttributesIntegration'](_0x14906c);}const _0x277d9b=_0x547f0c['locale'];_0x20e369['registerBlockAttribute']('blockIndent'),_0x20e369['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x277d9b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x521377=this['editor'],_0xc3c9d1=_0x521377['locale'],_0x5c9203=_0x521377['plugins']['get']('TrackChangesEditing');_0x5c9203['descriptionFactory']['registerDescriptionCallback'](_0x6dca53=>{if('formatBlock'!=_0x6dca53['type'])return;const {data:_0x5eb29a}=_0x6dca53;if(!_0x5eb29a)return;if('indentBlock'!=_0x5eb29a['commandName']&&'outdentBlock'!=_0x5eb29a['commandName'])return;const _0x55fa15=_0x6dca53['getItems']()[0x0],_0x49b4f8=_0x5c9203['descriptionFactory']['getItemLabel'](_0x55fa15);return'indentBlock'==_0x5eb29a['commandName']?{'type':'format','content':o(_0xc3c9d1,'*Indent:*\x20%0',_0x49b4f8)}:'outdentBlock'==_0x5eb29a['commandName']?{'type':'format','content':o(_0xc3c9d1,'*Outdent:*\x20%0',_0x49b4f8)}:void 0x0;});}}class at extends _0x1c9f3d{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x1c9f3d{['afterInit'](){const _0xf514e=this['editor'];if(!_0xf514e['plugins']['has']('LinkEditing'))return;const _0xae01cb=_0xf514e['plugins']['get']('TrackChangesEditing'),_0x5d2134=_0xf514e['commands']['get']('link');_0xae01cb['enableDefaultAttributesIntegration']('link'),_0xae01cb['enableDefaultAttributesIntegration']('unlink'),_0xae01cb['registerInlineAttribute']('linkHref');for(const _0x362bcc of _0x5d2134['manualDecorators'])_0xae01cb['registerInlineAttribute'](_0x362bcc['id']),_0xae01cb['descriptionFactory']['registerAttributeLabel'](_0x362bcc['id'],'link\x20('+_0x362bcc['label']['toLowerCase']()+')');_0xae01cb['descriptionFactory']['registerDescriptionCallback'](_0xb8894b=>{if('attribute'!=_0xb8894b['type'])return;const {data:_0x45957c}=_0xb8894b;if(!_0x45957c||'linkHref'!=_0x45957c['key'])return;const _0x29dcaf=_0x45957c['newValue'],_0x558500=_0xf514e['locale'];return{'type':'format','content':null==_0x29dcaf?o(_0x558500,'*Remove\x20link*'):o(_0x558500,'*Set\x20link:*\x20%0','\x22'+_0x29dcaf+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc64b01=this['editor'],_0x4dd2d0=_0xc64b01['locale'];_0xc64b01['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xafe58d=>{if('formatInline'!=_0xafe58d['type'])return;const {data:_0x18f34d}=_0xafe58d;if(_0x18f34d){if('link'==_0x18f34d['commandName']){const _0x1247ee=_0x18f34d['commandParams'][0x0];return{'type':'format','content':o(_0x4dd2d0,'*Set\x20link:*\x20%0','\x22'+_0x1247ee+'\x22')};}return'unlink'==_0x18f34d['commandName']?{'type':'format','content':o(_0x4dd2d0,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x1c9f3d{['afterInit'](){const _0x319167=this['editor'],_0x1e6c3=_0x319167['locale'];if(!_0x319167['plugins']['has']('LegacyListEditing'))return;const _0x46d545=_0x319167['plugins']['get']('TrackChangesEditing'),_0x3f8fbc=_0x319167['plugins']['has']('LegacyTodoListEditing');function _0x5b47b7(_0x258280){return()=>{const _0xa7e95a=_0x319167['model']['document']['selection'],_0x12c737=_0x319167['commands']['get'](_0x258280);if(_0x12c737['value'])return void _0x319167['execute']('paragraph',{});const _0xf2cbc7=_0x258280['slice'](0x0,-0x4),_0xd42465=function(_0xf6657f,_0x317298,_0x32aed6){let _0x1f94f6=Array['from'](_0xf6657f)['filter'](_0x4eeec5=>function(_0x152f66,_0x4120a7){return _0x4120a7['checkChild'](_0x152f66['parent'],'listItem')&&!_0x4120a7['isObject'](_0x152f66);}(_0x4eeec5,_0x32aed6));_0x1f94f6=_0x1f94f6['filter'](_0x569368=>!_0x569368['is']('element','listItem')||_0x569368['getAttribute']('listType')!=_0x317298);const _0xd3ba77=new Set();for(const _0x39c7f4 of _0x1f94f6)_0x39c7f4['is']('element','listItem')?_0xd3ba77['add'](me(_0x39c7f4)):_0xd3ba77['add'](_0x39c7f4);return Array['from'](_0xd3ba77);}(_0xa7e95a['getSelectedBlocks'](),_0xf2cbc7,_0x319167['model']['schema']);_0x319167['model']['change'](()=>{for(const _0x5e935 of _0xd42465)_0x46d545['markBlockFormat'](_0x5e935,{'commandName':_0x258280,'commandParams':[{'forceValue':!_0x12c737['value']}],'formatGroupId':'blockName'},fe(_0x5e935));});};}function _0x58d98f(_0x4b4bcb){return()=>{const _0x1dd815=function(_0x48d608){let _0x3696a7=Array['from'](_0x48d608);const _0x484dff=_0x3696a7['findIndex'](_0x523045=>'listItem'!=_0x523045['name']);return _0x484dff>-0x1&&(_0x3696a7=_0x3696a7['slice'](0x0,_0x484dff)),_0x3696a7;}(_0x319167['model']['document']['selection']['getSelectedBlocks']()),_0xab4667=_0x319167['model']['createRange'](_0x319167['model']['createPositionAt'](_0x1dd815[0x0],'before'),_0x319167['model']['createPositionAt'](_0x1dd815[_0x1dd815['length']-0x1],'end'));_0x319167['model']['change'](()=>{_0x46d545['markBlockFormat'](_0xab4667,{'commandName':_0x4b4bcb,'commandParams':[],'formatGroupId':'listIndent'},function(_0x13f352){const _0x2209e5=new Set();for(const _0x53dd6f of _0x13f352){let _0x10eea5=_0x53dd6f['nextSibling'];for(;_0x10eea5&&_0x10eea5['getAttribute']('listIndent')>_0x53dd6f['getAttribute']('listIndent');)_0x2209e5['add'](_0x10eea5),_0x10eea5=_0x10eea5['nextSibling'];}return Array['from'](_0x2209e5);}(_0x1dd815));});};}_0x46d545['enableCommand']('numberedList',_0x5b47b7('numberedList')),_0x46d545['enableCommand']('bulletedList',_0x5b47b7('bulletedList')),_0x3f8fbc&&_0x46d545['enableCommand']('todoList',_0x5b47b7('todoList')),_0x46d545['enableCommand']('indentList',_0x58d98f('indentList')),_0x46d545['enableCommand']('outdentList',_0x58d98f('outdentList')),_0x3f8fbc&&_0x46d545['enableCommand']('checkTodoList',()=>{const _0x2a323e=_0x319167['commands']['get']('checkTodoList'),_0x1b5e8b=Array['from'](_0x2a323e['_selectedElements']);_0x1b5e8b['filter'](_0x1ac87a=>_0x1ac87a['getAttribute']('todoListChecked')!=_0x2a323e['value']),_0x319167['model']['change'](()=>{for(const _0x5c2ba2 of _0x1b5e8b)_0x46d545['markBlockFormat'](_0x5c2ba2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2a323e['value']}]});});}),_0x46d545['descriptionFactory']['registerElementLabel']('listItem',_0x469f11=>o(_0x1e6c3,'ELEMENT_LIST_ITEM',_0x469f11)),_0x46d545['descriptionFactory']['registerDescriptionCallback'](_0x48ebd7=>{if('formatBlock'!=_0x48ebd7['type']&&'formatInline'!=_0x48ebd7['type'])return;const {data:_0x2bbb56}=_0x48ebd7;if(_0x2bbb56){if('numberedList'==_0x2bbb56['commandName']||'bulletedList'==_0x2bbb56['commandName']||'todoList'==_0x2bbb56['commandName'])switch(_0x2bbb56['commandName']['replace']('List','')){case'bulleted':return _0x1766f7(o(_0x1e6c3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1766f7(o(_0x1e6c3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1766f7(o(_0x1e6c3,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2bbb56['commandName'])return{'type':'format','content':o(_0x1e6c3,'*Indent:*\x20%0',o(_0x1e6c3,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2bbb56['commandName'])return{'type':'format','content':o(_0x1e6c3,'*Outdent:*\x20%0',o(_0x1e6c3,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2bbb56['commandName'])return _0x2bbb56['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1e6c3,'*Check\x20item*')}:{'type':'format','content':o(_0x1e6c3,'*Uncheck\x20item*')};}function _0x1766f7(_0xd6a2ff){return{'type':'format','content':o(_0x1e6c3,'*Change\x20to:*\x20%0',_0xd6a2ff)};}});}}function me(_0x592bf1){const _0x2e9903=_0x592bf1['getAttribute']('listIndent');if(0x0==_0x2e9903)return _0x592bf1;let _0x2b0808=_0x592bf1;for(;_0x592bf1['previousSibling']&&_0x592bf1['previousSibling']['is']('element','listItem');){const _0x3d7bd6=_0x592bf1['previousSibling']['getAttribute']('listIndent');if(_0x3d7bd6==_0x2e9903)_0x2b0808=_0x592bf1['previousSibling'];else{if(_0x3d7bd6<_0x2e9903)break;}_0x592bf1=_0x592bf1['previousSibling'];}return _0x2b0808;}function fe(_0xb52087){const _0x2326a5=[];if(_0xb52087['is']('element','listItem')&&_0xb52087['getAttribute']('listIndent')>0x0){let _0x2fbe81=_0xb52087['nextSibling'];for(;_0x2fbe81&&'listItem'==_0x2fbe81['name']&&_0x2fbe81['getAttribute']('listIndent')==_0xb52087['getAttribute']('listIndent');)_0x2326a5['push'](_0x2fbe81),_0x2fbe81=_0x2fbe81['nextSibling'];}return _0x2326a5;}class K extends _0x1c9f3d{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5a21fe=this['editor']['config']['get']('list.properties'),_0x22dbbe=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a21fe['styles']&&_0x22dbbe['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5a21fe['reversed']&&_0x22dbbe['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5a21fe['startIndex']&&_0x22dbbe['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x22dbbe['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x76ff07,_0x171aad={}){const _0x1ef8dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x484754=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1ef8dc['markMultiRangeBlockFormat'](_0x484754,{'commandName':'listStyle','commandParams':[{'type':_0x171aad['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x20f9f9,_0x4b777d={}){const _0x504421=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1bab96=this['_getSuggestionBlocks'](_0x4b8ff6=>_0x4b8ff6['is']('element','listItem')&&'numbered'===_0x4b8ff6['getAttribute']('listType'));if(_0x1bab96['length']<0x1)return;const _0x1e4517=_0x1bab96['map'](_0x544b0c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x544b0c,'before'),this['editor']['model']['createPositionAt'](_0x544b0c,0x0)));this['editor']['model']['change'](()=>{_0x504421['markMultiRangeBlockFormat'](_0x1e4517,{'commandName':'listReversed','commandParams':[{'reversed':_0x4b777d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x535642,_0x503a68={}){const _0x4d7b0e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7dcac=this['_getSuggestionBlocks'](_0x5b8360=>_0x5b8360['is']('element','listItem')&&'numbered'===_0x5b8360['getAttribute']('listType'));if(_0x7dcac['length']<0x1)return;const _0x989126=_0x7dcac['map'](_0x2429da=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2429da,'before'),this['editor']['model']['createPositionAt'](_0x2429da,0x0)));this['editor']['model']['change'](()=>{_0x4d7b0e['markMultiRangeBlockFormat'](_0x989126,{'commandName':'listStart','commandParams':[{'startIndex':_0x503a68['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5909bf){if('formatBlock'!=_0x5909bf['type']&&'formatInline'!=_0x5909bf['type'])return;const _0x4bb853=this['editor']['locale'],{data:_0x2d539c}=_0x5909bf;if(!_0x2d539c)return;let _0xe5ba02,_0x3fb8ae;switch(_0x2d539c['commandName']){case'listStyle':_0xe5ba02='*Change\x20to:*\x20%0',_0x3fb8ae={'type':'format','content':o(_0x4bb853,_0xe5ba02,o(_0x4bb853,this['_getTranslationKeyForListStyle'](_0x2d539c['commandParams'][0x0]['type'])))};break;case'listReversed':_0xe5ba02=_0x2d539c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3fb8ae={'type':'format','content':o(_0x4bb853,_0xe5ba02)};break;case'listStart':_0xe5ba02='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3fb8ae={'type':'format','content':o(_0x4bb853,_0xe5ba02,_0x2d539c['commandParams'][0x0]['startIndex'])};}return _0x3fb8ae;}['_getSuggestionBlocksForListStyle'](){const _0x35fc7b=this['editor']['plugins']['get']('LegacyListUtils');let _0xd3478a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xd3478a[0x0]?.['is']('element','listItem')&&_0xd3478a['unshift'](..._0x35fc7b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xd3478a[_0xd3478a['length']-0x1]?.['is']('element','listItem')&&_0xd3478a['push'](..._0x35fc7b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xd3478a=[...new Set(_0xd3478a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xd3478a=_0xd3478a['filter'](_0xfa0990=>_0xfa0990['is']('element','listItem'))),_0xd3478a;}['_getSuggestionBlocks'](_0x466692){const _0x302cf5=this['editor']['plugins']['get']('LegacyListUtils');let _0x3c3b0b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x466692)['map'](_0x222b83=>{const _0x3a8c32=this['editor']['model']['createPositionAt'](_0x222b83,0x0);return[..._0x302cf5['getSiblingNodes'](_0x3a8c32,'backward'),..._0x302cf5['getSiblingNodes'](_0x3a8c32,'forward')];})['flat']();return _0x3c3b0b=[...new Set(_0x3c3b0b)],_0x3c3b0b;}['_getTranslationKeyForListStyle'](_0x2bb702){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2bb702)||'default')['toUpperCase']()+'_LIST_'+_0x2bb702['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x1c9f3d{['afterInit'](){const _0x4fbe51=this['editor'];if(!_0x4fbe51['plugins']['has']('MediaEmbedEditing'))return;const _0x28f9b5=_0x4fbe51['plugins']['get']('TrackChangesEditing'),_0x1dbb9f=_0x4fbe51['locale'];_0x28f9b5['enableCommand']('mediaEmbed'),_0x28f9b5['descriptionFactory']['registerElementLabel']('media',_0x413663=>o(_0x1dbb9f,'ELEMENT_MEDIA',_0x413663)),_0x4fbe51['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4fde32,{writer:_0x25f9ac,options:_0x20fa86})=>{if(_0x20fa86['showSuggestionHighlights'])return _0x25f9ac['createEmptyElement']('div');},'converterPriority':'high'}),_0x4fbe51['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3b2822,_0x1bd9cf,_0x11d0e9)=>{_0x11d0e9['options']['showSuggestionHighlights']&&_0x3b2822['stop']();},{'priority':'high'});}}class gt extends _0x1c9f3d{['afterInit'](){const _0x41e878=this['editor'];_0x41e878['plugins']['has']('MentionEditing')&&_0x41e878['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x1c9f3d{['afterInit'](){const _0x1d868e=this['editor'],_0x8a00aa=_0x1d868e['plugins']['get']('TrackChangesEditing');_0x1d868e['plugins']['has']('MultiLevelList')&&(_0x8a00aa['enableDefaultAttributesIntegration']('multiLevelList'),_0x8a00aa['registerBlockAttribute']('listMarkerStyle'),_0x8a00aa['descriptionFactory']['registerDescriptionCallback'](_0x2bfb15=>this['handleDescriptions'](_0x2bfb15)));}['handleDescriptions'](_0x1b6dfe){const _0x170f00=this['editor']['locale'],{data:_0x5f315c}=_0x1b6dfe,_0xf79b29={'type':'format','content':''};if(_0x5f315c&&'listMarkerStyle'==_0x5f315c['key']){if(!_0x5f315c['oldValue'])return{'type':'format','content':o(_0x170f00,'*Set\x20format:*\x20%0',o(_0x170f00,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5f315c['newValue']+')'};if(!_0x5f315c['newValue']){let _0x36d7b2=_0x1b6dfe['head'];for(;_0x36d7b2;){if(_0x36d7b2['data']&&'listType'==_0x36d7b2['data']['key']&&_0x36d7b2['data']['newValue'])return _0xf79b29;_0x36d7b2=_0x36d7b2['next'];}return{'type':'format','content':o(_0x170f00,'*Remove\x20format:*\x20%0',o(_0x170f00,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5f315c['oldValue']+')'};}}}}class mt extends _0x1c9f3d{['afterInit'](){const _0x22b72f=this['editor'];if(!_0x22b72f['plugins']['has']('PageBreakEditing'))return;_0x22b72f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x51185f=_0x22b72f['plugins']['get']('TrackChangesEditing'),_0x3b23b3=_0x22b72f['locale'];_0x51185f['descriptionFactory']['registerElementLabel']('pageBreak',_0x3a1857=>o(_0x3b23b3,'ELEMENT_PAGE_BREAK',_0x3a1857));}}class dt extends _0x1c9f3d{['afterInit'](){const _0x9478d7=this['editor'];if(!_0x9478d7['plugins']['has']('Paragraph'))return;const _0x4c39c3=_0x9478d7['locale'],_0x136c9f=_0x9478d7['plugins']['get']('TrackChangesEditing');_0x136c9f['descriptionFactory']['registerElementLabel']('paragraph',_0x46edb3=>o(_0x4c39c3,'ELEMENT_PARAGRAPH',_0x46edb3)),_0x136c9f['enableDefaultAttributesIntegration']('paragraph'),_0x136c9f['enableCommand']('insertParagraph'),_0x9478d7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x9478d7),{'priority':'highest'}),_0x9478d7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x24277c,_0x35cfd3,_0x4b5cd0)=>{_0x4b5cd0['options']['showSuggestionHighlights']&&nr(_0x9478d7,{'showActiveMarker':!0x1})(_0x24277c,_0x35cfd3,_0x4b5cd0);},{'priority':'highest'});const _0x15a3fe=_0x136c9f['descriptionFactory'];_0x15a3fe['registerDescriptionCallback'](_0x2d5521=>{if('insertion'!==_0x2d5521['type'])return;const {start:_0x56f933,end:_0x12a7c7}=_0x2d5521['getFirstRange']();if(!_0x56f933['isTouching'](_0x12a7c7)||!_0x56f933['nodeAfter'])return;const _0x166f39=_0x9478d7['model']['schema'],_0x465b4d=_0x56f933['nodeAfter'];return _0x166f39['isBlock'](_0x465b4d)&&!_0x166f39['isLimit'](_0x465b4d)&&_0x166f39['checkChild'](_0x465b4d,'$text')?{'type':'insertion','content':o(_0x4c39c3,'*Insert:*\x20%0',_0x15a3fe['getItemLabel'](_0x465b4d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1267ba=this['editor'],_0x3bb4a2=_0x1267ba['locale'];_0x1267ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ffb41=>{if('formatBlock'!=_0x4ffb41['type'])return;const {data:_0x55d21a}=_0x4ffb41;return _0x55d21a&&'paragraph'==_0x55d21a['commandName']?{'type':'format','content':o(_0x3bb4a2,'*Change\x20to:*\x20%0',o(_0x3bb4a2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x42dafd,{showActiveMarker:_0x4a289b=!0x0}={}){return(_0x50130d,_0x59e0d1,_0x26fce1)=>{const _0x40170a=_0x42dafd['plugins']['get']('TrackChangesEditing'),_0x4298f0=_0x59e0d1['markerRange']['start'],_0x51acfa=_0x59e0d1['markerRange']['end'],_0x15cd2b=_0x42dafd['model']['schema'];if(!_0x4298f0['isTouching'](_0x51acfa)||!_0x4298f0['nodeAfter'])return;const _0x39f77d=_0x4298f0['nodeAfter'];if(_0x15cd2b['isBlock'](_0x39f77d)&&!_0x15cd2b['isLimit'](_0x39f77d)&&_0x15cd2b['checkChild'](_0x39f77d,'$text')){if(!_0x26fce1['consumable']['consume'](_0x59e0d1['markerRange'],_0x50130d['name']))return;const _0x3a85cf=_0x26fce1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x33d2af=_0x26fce1['mapper']['toViewPosition'](_0x51acfa);_0x4a289b&&_0x40170a['activeMarkers']['includes'](_0x59e0d1['markerName'])&&_0x26fce1['writer']['addClass']('ck-suggestion-marker--active',_0x3a85cf),_0x26fce1['writer']['insert'](_0x33d2af,_0x3a85cf),_0x26fce1['mapper']['bindElementToMarker'](_0x3a85cf,_0x59e0d1['markerName']);}};}class pt extends _0x1c9f3d{['afterInit'](){const _0x4f9475=this['editor'];if(!_0x4f9475['plugins']['has']('RemoveFormatEditing'))return;_0x4f9475['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c9375=this['editor'];_0x4c9375['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x414569=>{if('formatBlock'!=_0x414569['type']&&'formatInline'!=_0x414569['type'])return;const {data:_0x4de4b8}=_0x414569;return _0x4de4b8&&'removeFormat'==_0x4de4b8['commandName']?{'type':'format','content':o(_0x4c9375['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x1c9f3d{['afterInit'](){const _0x32ab15=this['editor'];if(!_0x32ab15['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4c6bda=_0x32ab15['plugins']['get']('TrackChangesEditing');_0x4c6bda['enableCommand']('goToPreviousRestrictedEditingException'),_0x4c6bda['enableCommand']('goToNextRestrictedEditingException');const _0x389172=_0x32ab15['plugins']['get']('RestrictedEditingModeEditing');_0x389172['enableCommand']('trackChanges'),_0x389172['enableCommand']('acceptSuggestion'),_0x389172['enableCommand']('discardSuggestion'),_0x389172['enableCommand']('acceptAllSuggestions'),_0x389172['enableCommand']('discardAllSuggestions'),_0x389172['enableCommand']('acceptSelectedSuggestions'),_0x389172['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x1c9f3d{static get['requires'](){return[_0x25ed4a];}['init'](){const _0xede088=this['editor'],_0x4747cb=_0xede088['plugins']['get']('TrackChangesEditing');_0x4747cb['enableCommand']('shiftEnter'),_0xede088['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0xede088),{'priority':'high'}),_0xede088['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0xede088),{'priority':'high'}),_0xede088['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1cb42f,_0x2e5675,_0x355e05)=>{_0x355e05['options']['showSuggestionHighlights']&&de(_0xede088,{'showActiveMarker':!0x1})(_0x1cb42f,_0x2e5675,_0x355e05);}),_0x4747cb['descriptionFactory']['registerElementLabel']('softBreak',_0x5779c8=>o(_0xede088['locale'],'ELEMENT_LINE_BREAK',_0x5779c8));}}function de(_0x559c39,{showActiveMarker:_0x5d62a7=!0x0}={}){return(_0x142168,_0xb06e62,_0x3b9b63)=>{const _0x27ee5a=_0x559c39['plugins']['get']('TrackChangesEditing');if(!_0x3b9b63['consumable']['test'](_0xb06e62['markerRange'],_0x142168['name']))return;const _0x1f755f=_0x559c39['model'];for(const _0x46e90d of _0xb06e62['markerRange']['getItems']()){if(!_0x46e90d['is']('element','softBreak'))continue;const _0x26bcc9='deletion'==_0xb06e62['markerName']['split'](':')[0x1]?'merge':'split',_0x386452=_0x3b9b63['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x26bcc9}),_0x43cde6=_0x3b9b63['mapper']['toViewPosition'](_0x1f755f['createPositionBefore'](_0x46e90d));_0x5d62a7&&_0x27ee5a['activeMarkers']['includes'](_0xb06e62['markerName'])&&_0x3b9b63['writer']['addClass']('ck-suggestion-marker--active',_0x386452),_0x3b9b63['writer']['insert'](_0x43cde6,_0x386452),_0x3b9b63['mapper']['bindElementToMarker'](_0x386452,_0xb06e62['markerName']);}};}class wt extends _0x1c9f3d{['afterInit'](){const _0x52ca1c=this['editor'],_0x6f0ca0=_0x52ca1c['model'],_0xb28d9b=_0x52ca1c['locale'];if(!_0x52ca1c['plugins']['has']('StandardEditingModeEditing'))return;const _0x2a6ad8=_0x52ca1c['plugins']['get']('TrackChangesEditing'),_0x4fcb5f='restrictedEditingException',_0x4b5ef1=_0x52ca1c['commands']['get'](_0x4fcb5f);_0x2a6ad8['enableCommand'](_0x4fcb5f,(_0x5b40e5,_0x53601d={})=>{const _0x188cf8=_0x6f0ca0['document']['selection'];if(_0x188cf8['isCollapsed'])return void _0x5b40e5(_0x53601d);const _0x2efa59=void 0x0!==_0x53601d['forceValue']?_0x53601d['forceValue']:!_0x4b5ef1['value'];_0x6f0ca0['change'](()=>{const _0x5e608e=Array['from'](_0x188cf8['getRanges']());for(const _0x205031 of _0x5e608e){const _0x3d7e7c=_0x2efa59?[_0x205031]:io(_0x4fcb5f,_0x205031,_0x6f0ca0);for(const _0x3a1b24 of _0x3d7e7c)_0x2a6ad8['markInlineFormat'](_0x3a1b24,{'commandName':_0x4fcb5f,'commandParams':[{'forceValue':_0x2efa59}]});}});}),_0x2a6ad8['descriptionFactory']['registerDescriptionCallback'](_0xc3fc7b=>{if('formatBlock'!=_0xc3fc7b['type']&&'formatInline'!=_0xc3fc7b['type'])return;const {data:_0x563b25}=_0xc3fc7b;return _0x563b25&&_0x563b25['commandName']==_0x4fcb5f?_0x563b25['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb28d9b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xb28d9b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x1c9f3d{['afterInit'](){const _0x520111=this['editor'];if(!_0x520111['plugins']['has']('Style')||!_0x520111['plugins']['has']('DataSchema'))return;const _0x1e2432=_0x520111['plugins']['get']('TrackChangesEditing'),_0xb1b0ea=_0x520111['locale'],_0x3eba39=_0x520111['config']['get']('style')||{},_0x38a5b2=_0x520111['plugins']['get']('GeneralHtmlSupport'),_0x5b7f8b=_0x520111['plugins']['get']('StyleUtils')['normalizeConfig'](_0x520111['plugins']['get']('DataSchema'),_0x3eba39['definitions']);_0x1e2432['enableDefaultAttributesIntegration']('style');const _0xe3aa74=new Set();for(const _0x2e28e5 of _0x5b7f8b['block']){const _0x96972=_0x38a5b2['getGhsAttributeNameForElement'](_0x2e28e5['element']);_0xe3aa74['add'](_0x96972);}const _0x23d8bd=new Set();for(const _0x286e16 of _0x5b7f8b['inline']){const _0x18df53=_0x38a5b2['getGhsAttributeNameForElement'](_0x286e16['element']);_0x23d8bd['add'](_0x18df53);for(const _0x2b6b07 of _0x286e16['ghsAttributes'])_0x23d8bd['add'](_0x2b6b07);}for(const _0x75950 of _0xe3aa74)_0x1e2432['registerBlockAttribute'](_0x75950),_0x1e2432['descriptionFactory']['registerAttributeLabel'](_0x75950,o(_0xb1b0ea,'FORMAT_STYLE'));for(const _0x54c973 of _0x23d8bd)_0x1e2432['registerInlineAttribute'](_0x54c973),_0x1e2432['descriptionFactory']['registerAttributeLabel'](_0x54c973,o(_0xb1b0ea,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e8f7e=this['editor'],_0x4ae8a2=_0x2e8f7e['locale'];_0x2e8f7e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb8e59b=>{if('formatBlock'!=_0xb8e59b['type']&&'formatInline'!=_0xb8e59b['type'])return;const {data:_0x42abe1}=_0xb8e59b;return _0x42abe1&&'style'===_0x42abe1['commandName']?_0x42abe1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4ae8a2,'*Set\x20format:*\x20%0',_0x42abe1['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4ae8a2,'*Remove\x20format:*\x20%0',_0x42abe1['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x1c9f3d{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x149f44){super(_0x149f44),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4e34e5=this['editor'],_0x153b64=_0x4e34e5['model']['document']['selection'];if(!_0x4e34e5['plugins']['has']('TableEditing'))return;const _0x37fb60=_0x4e34e5['locale'],_0x4c29ac=_0x4e34e5['plugins']['get']('TrackChangesEditing'),_0x38c421=_0x4e34e5['plugins']['get']('TableUtils');_0x4c29ac['descriptionFactory']['registerElementLabel']('table',_0x26aecc=>o(_0x37fb60,'ELEMENT_TABLE',_0x26aecc)),this['_setupColumnsRowsFixing'](),_0x4c29ac['enableCommand']('insertTable'),_0x4c29ac['enableCommand']('selectTableRow'),_0x4c29ac['enableCommand']('selectTableColumn');for(const _0x75f415 of['insertTableRowAbove','insertTableRowBelow']){const _0x34a9c9=_0x4e34e5['commands']['get'](_0x75f415);_0x4c29ac['enableCommand'](_0x75f415,_0x9c6826=>{_0x4e34e5['model']['change'](_0x2621d1=>{_0x9c6826();const _0x34e28c='above'===_0x34a9c9['order'],_0x16e59a=_0x38c421['getSelectionAffectedTableCells'](_0x153b64),_0x41a756=_0x38c421['getRowIndexes'](_0x16e59a),_0x31bd6d=_0x34e28c?_0x41a756['first']-0x1:_0x41a756['last']+0x1,_0x3673c7=_0x16e59a[0x0]['findAncestor']('table'),_0x15aa87=_0x38c421['createTableWalker'](_0x3673c7,{'startRow':_0x31bd6d,'endRow':_0x31bd6d}),_0x332831=Array['from'](_0x15aa87)['map'](_0x2a5526=>_0x2621d1['createRangeOn'](_0x2a5526['cell']));_0x4c29ac['markMultiRangeInsertion'](_0x332831,'tableRow');});});}for(const _0x35a5bd of['insertTableColumnLeft','insertTableColumnRight']){const _0x5b6da9=_0x4e34e5['commands']['get'](_0x35a5bd);_0x4c29ac['enableCommand'](_0x35a5bd,_0x4dfd49=>{_0x4e34e5['model']['change'](_0x26b2b0=>{_0x4dfd49();const _0x419209='left'===_0x5b6da9['order'],_0x309381=_0x38c421['getSelectionAffectedTableCells'](_0x153b64),_0x5b2ac5=_0x38c421['getColumnIndexes'](_0x309381),_0x59ec8d=_0x419209?_0x5b2ac5['first']-0x1:_0x5b2ac5['last']+0x1,_0x40660b=_0x309381[0x0]['findAncestor']('table'),_0xda96f2=_0x38c421['createTableWalker'](_0x40660b,{'startRow':0x0,'column':_0x59ec8d,'includeAllSlots':!0x1}),_0x423ccf=Array['from'](_0xda96f2)['map'](_0x333dc0=>_0x26b2b0['createRangeOn'](_0x333dc0['cell']));_0x4c29ac['markMultiRangeInsertion'](_0x423ccf,'tableColumn');});});}for(const _0x4bef33 of['removeTableRow','removeTableColumn']){const _0x5f433e=_0x4bef33['substr'](0xb),_0x1fd303=_0x5f433e['toLowerCase'](),_0x14b47e=_0x1fd303['substr'](0x0,0x3)+'span',_0x2f255a='table'+_0x5f433e,_0xf7b9d0='min'+_0x5f433e,_0x2fc857='max'+_0x5f433e;_0x4c29ac['enableCommand'](_0x4bef33,()=>{_0x4e34e5['model']['change'](_0x103b24=>{const _0x2b7394=_0x38c421['getSelectionAffectedTableCells'](_0x153b64),_0x34ecb2=_0x2b7394[0x0]['findAncestor']('table');let _0x483b5b;if('removeTableRow'==_0x4bef33){const _0x3b9eba=_0x38c421['getRowIndexes'](_0x2b7394);_0x483b5b={'startRow':_0x3b9eba['first'],'endRow':_0x3b9eba['last'],'includeAllSlots':!0x0};}else{const _0x287fd4=_0x38c421['getColumnIndexes'](_0x2b7394);_0x483b5b={'startColumn':_0x287fd4['first'],'endColumn':_0x287fd4['last'],'includeAllSlots':!0x0};}const _0x1d7b31=_0x38c421['createTableWalker'](_0x34ecb2,_0x483b5b),_0x209205=Array['from'](_0x1d7b31)['map'](({cell:_0xbe23ad})=>_0xbe23ad),_0x3b302f=Ee(_0x209205['filter'](_0x5d7b60=>_0x5d7b60['hasAttribute'](_0x14b47e))),_0x51d997=Ee(_0x209205['filter'](_0x2dafd9=>!_0x2dafd9['hasAttribute'](_0x14b47e)))['map'](_0x38b41a=>_0x103b24['createRangeOn'](_0x38b41a)),_0xc6518f=_0x4c29ac['markMultiRangeDeletion'](_0x51d997,_0x2f255a);if(_0xc6518f&&('tableRow'==_0xc6518f['subType']||'tableColumn'==_0xc6518f['subType'])){const _0x34789d=this['_getSuggestionCoords'](_0xc6518f);for(const _0x29ccdb of _0x3b302f){const _0x2096de=_0x103b24['createRangeOn'](_0x29ccdb),_0x12ee6b=_0x38c421['getCellLocation'](_0x29ccdb),_0x17cf4a=_0x29ccdb['getAttribute'](_0x14b47e)-0x1,_0x101d67=_0x34789d[_0xf7b9d0],_0x226d51=_0x34789d[_0x2fc857];_0x101d67<=_0x12ee6b[_0x1fd303]&&_0x12ee6b[_0x1fd303]+_0x17cf4a<=_0x226d51&&_0xc6518f['addRange'](_0x2096de);}}});});}function _0x2ad378(_0x5eb9c0){const _0x194b8d=Array['from'](_0x153b64['getRanges']())['map'](_0x56c152=>_0x45d820['fromRange'](_0x56c152));_0x4e34e5['model']['change'](_0xef2dbc=>{const _0x319dec=_0xef2dbc['batch'];_0x5eb9c0=_0x5eb9c0['filter'](_0x2c3266=>'$graveyard'!=_0x2c3266['root']['rootName']),_0xef2dbc['setSelection'](_0x5eb9c0),_0x4e34e5['commands']['get']('removeTableRow')['refresh'](),_0x4e34e5['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4e34e5['model']['enqueueChange'](()=>{_0x4e34e5['model']['enqueueChange'](_0x319dec,_0x4fdcff=>{const _0x1766c3=_0x194b8d['filter'](_0x59c3f3=>'$graveyard'!=_0x59c3f3['root']['rootName']);_0x1766c3['length']>0x0&&_0x4fdcff['setSelection'](_0x1766c3);for(const _0x6ad06b of _0x194b8d)_0x6ad06b['detach']();});});});}function _0x514d47(_0x30b76d){_0x4e34e5['model']['change'](_0x58d9a5=>{const _0x4d598a=Array['from'](_0x153b64['getRanges']())['map'](_0x2cb933=>_0x45d820['fromRange'](_0x2cb933)),_0x6ec208=[];for(const _0x93173e of _0x30b76d)for(const _0x2b5e44 of _0x93173e['getItems']({'shallow':!0x0}))_0x6ec208['push'](_0x2b5e44);for(const _0x1ed6bf of _0x6ec208)'$graveyard'!=_0x1ed6bf['root']['rootName']&&(_0x58d9a5['setSelection'](_0x58d9a5['createPositionAt'](_0x1ed6bf,0x0)),_0x4e34e5['commands']['get']('removeTableColumn')['refresh'](),_0x4e34e5['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1903f6=_0x4d598a['filter'](_0x5a8b09=>'$graveyard'!=_0x5a8b09['root']['rootName']);_0x1903f6['length']>0x0&&_0x58d9a5['setSelection'](_0x1903f6);for(const _0x5225d0 of _0x4d598a)_0x5225d0['detach']();});}function _0xe26880(_0x5c09bb,_0x24398b){return _0x24398b['every'](_0x23cbff=>_0x5c09bb['some'](_0x42871c=>_0x42871c['end']['isEqual'](_0x23cbff['start'])||_0x23cbff['end']['isEqual'](_0x42871c['start'])));}function _0x25e8dd(_0x125976,_0x4944ec){return!_0x125976['some'](_0x38a483=>_0x4944ec['some'](_0x5b54c3=>_0x38a483['isIntersecting'](_0x5b54c3)))&&_0x125976['some'](_0x1f3d48=>_0x4944ec['some'](_0x4c7dab=>_0x1f3d48['end']['isTouching'](_0x4c7dab['start'])));}_0x4e34e5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x109e80,_0x3879fd,_0x56cf90)=>{if(!_0x56cf90['options']['showSuggestionHighlights'])return;const _0x3ddd04=_0x3879fd['item'];if(!_0x3ddd04)return;const _0x48f262=_0x56cf90['mapper']['toViewElement'](_0x3ddd04);function _0x372100(_0xb9318d){return Array['isArray'](_0xb9318d)?_0xb9318d:[_0xb9318d];}_0x48f262&&'tableCell'===_0x3ddd04['name']&&_0x4a7bb1(_0x48f262,_0x56cf90['writer'],(_0x4a8922,_0x118e0a,_0x4f0ac0)=>_0x4f0ac0['addClass'](_0x372100(_0x118e0a['classes']),_0x4a8922),(_0x1be49b,_0x593451,_0x173178)=>_0x173178['removeClass'](_0x372100(_0x593451['classes']),_0x1be49b));},{'priority':'highest'}),_0x4c29ac['descriptionFactory']['registerDescriptionCallback'](_0x6ae4b9=>{if('insertion'!=_0x6ae4b9['type']&&'deletion'!=_0x6ae4b9['type'])return;const _0x2c497c=_0x6ae4b9['getContainedElement']();if(null!=_0x2c497c&&_0x2c497c['is']('element','table')){if('insertion'==_0x6ae4b9['type']){const _0x135db2=_0x6ae4b9['getItems']()['filter'](_0x15b60a=>_0x15b60a['is']('$textProxy'))['map'](_0x5a9d51=>_0x5a9d51['data']);if(_0x135db2['length'])return{'type':'insertion','content':o(_0x37fb60,'*Insert:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x135db2['join']('\x20')+'\x22'))};}if('deletion'==_0x6ae4b9['type']){const _0x58766f=_0x6ae4b9['getItems']()['filter'](_0x55e751=>_0x55e751['is']('$textProxy'))['map'](_0x24b79e=>_0x24b79e['data']);if(_0x58766f['length'])return{'type':'deletion','content':o(_0x37fb60,'*Remove:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x58766f['join']('\x20')+'\x22'))};}}}),_0x4c29ac['descriptionFactory']['registerDescriptionCallback'](_0x2b20f4=>{if('tableRow'==_0x2b20f4['subType']){const _0x4b2ef8=_0x2b20f4['getItems']()['filter'](_0x68a17b=>_0x68a17b['is']('$textProxy'))['map'](_0x318c22=>_0x318c22['data']),_0x391d3e=this['_getSuggestionCoords'](_0x2b20f4),_0xd29400=_0x391d3e['maxRow']-_0x391d3e['minRow']+0x1;if('insertion'==_0x2b20f4['type'])return _0x4b2ef8['length']?{'type':'insertion','content':o(_0x37fb60,'*Insert:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xd29400,'\x22'+_0x4b2ef8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x37fb60,'*Insert:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_ROW',_0xd29400))};if('deletion'==_0x2b20f4['type'])return _0x4b2ef8['length']?{'type':'deletion','content':o(_0x37fb60,'*Remove:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xd29400,'\x22'+_0x4b2ef8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x37fb60,'*Remove:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_ROW',_0xd29400))};}if('tableColumn'==_0x2b20f4['subType']){const _0x644867=_0x2b20f4['getItems']()['filter'](_0x14a4f9=>_0x14a4f9['is']('$textProxy'))['map'](_0x2d040d=>_0x2d040d['data']),_0x5bf5dd=this['_getSuggestionCoords'](_0x2b20f4),_0x5e8cac=_0x5bf5dd['maxColumn']-_0x5bf5dd['minColumn']+0x1;if('insertion'==_0x2b20f4['type'])return _0x644867['length']?{'type':'insertion','content':o(_0x37fb60,'*Insert:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5e8cac,'\x22'+_0x644867['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x37fb60,'*Insert:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_COLUMN',_0x5e8cac))};if('deletion'==_0x2b20f4['type'])return _0x644867['length']?{'type':'deletion','content':o(_0x37fb60,'*Remove:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5e8cac,'\x22'+_0x644867['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x37fb60,'*Remove:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_COLUMN',_0x5e8cac))};}}),_0x4c29ac['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2ad378),_0x4c29ac['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2ad378),_0x4c29ac['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x514d47),_0x4c29ac['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x514d47),_0x4c29ac['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xe26880),_0x4c29ac['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xe26880),_0x4c29ac['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x25e8dd),_0x4c29ac['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x25e8dd);}['_acceptFormatSuggestionCallbackFactory'](){const _0x575c5f=this['editor'],_0x55f71a=_0x575c5f['model']['document']['selection'];return(_0x397421,_0x581d44)=>{_0x575c5f['model']['change'](_0x3a9209=>{const {commandName:_0x4e8520,commandParams:_0x58d821}=_0x581d44;let _0xa29ee1=_0x397421[0x0]['end']['nodeBefore'];_0x58d821&&_0x58d821[0x0]&&!0x1===_0x58d821[0x0]['forceValue']&&(_0xa29ee1=_0x397421[0x0]['start']['nodeAfter']);const _0x5cf889=_0x3a9209['createRangeIn'](_0xa29ee1);if('$graveyard'==_0x5cf889['root']['rootName'])return;const _0x2bd49d=Array['from'](_0x55f71a['getRanges']())['map'](_0x5e7a51=>_0x45d820['fromRange'](_0x5e7a51));_0x3a9209['setSelection'](_0x5cf889),_0x575c5f['commands']['get'](_0x4e8520)['refresh'](),_0x58d821['push']({'forceDefaultExecution':!0x0}),_0x575c5f['execute'](_0x4e8520,..._0x58d821);const _0x28da02=_0x2bd49d['filter'](_0xd2484c=>'$graveyard'!=_0xd2484c['root']['rootName']);_0x28da02['length']>0x0&&_0x3a9209['setSelection'](_0x28da02);for(const _0x4b9209 of _0x2bd49d)_0x4b9209['detach']();});};}['_getCoordsForCells'](_0xb230c6){const _0x275acd=this['editor']['plugins']['get']('TableUtils');let _0x1c28ac=Number['MAX_SAFE_INTEGER'],_0x1b1cb6=Number['MIN_SAFE_INTEGER'],_0x375ca6=Number['MAX_SAFE_INTEGER'],_0x4424ce=Number['MIN_SAFE_INTEGER'];for(const _0x41968c of _0xb230c6){if('$graveyard'==_0x41968c['root']['rootName'])continue;const {row:_0xd92af3,column:_0x5d78fb}=_0x275acd['getCellLocation'](_0x41968c),_0x2d8e67=_0x41968c['hasAttribute']('rowspan')?_0x41968c['getAttribute']('rowspan')-0x1:0x0,_0x164a19=_0x41968c['hasAttribute']('colspan')?_0x41968c['getAttribute']('colspan')-0x1:0x0;_0x1c28ac=_0xd92af3<_0x1c28ac?_0xd92af3:_0x1c28ac,_0x1b1cb6=_0xd92af3+_0x2d8e67>_0x1b1cb6?_0xd92af3+_0x2d8e67:_0x1b1cb6,_0x375ca6=_0x5d78fb<_0x375ca6?_0x5d78fb:_0x375ca6,_0x4424ce=_0x5d78fb+_0x164a19>_0x4424ce?_0x5d78fb+_0x164a19:_0x4424ce;}return{'minRow':_0x1c28ac,'maxRow':_0x1b1cb6,'minColumn':_0x375ca6,'maxColumn':_0x4424ce};}['_setupColumnsRowsFixing'](){const _0x49a7d3=this['editor'],_0x4f26d1=_0x49a7d3['plugins']['get']('TrackChangesEditing'),_0x1fdb0b=_0x49a7d3['plugins']['get']('TableUtils');_0x49a7d3['model']['document']['on']('change:data',()=>{const _0x26e6ad=Array['from'](_0x49a7d3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x252d5b,data:_0x37aa63}of _0x26e6ad){const {group:_0x46fd02,id:_0x1df74c,subType:_0x4cd431}=_0x4f26d1['_splitMarkerName'](_0x252d5b);if('suggestion'!=_0x46fd02)continue;if(null!=_0x37aa63['oldRange'])continue;const _0x3a2906=_0x4f26d1['getSuggestion'](_0x1df74c);this['_tablePostFixingSubtypes']['includes'](_0x4cd431)&&this['_tableSuggestions']['add'](_0x3a2906);}},{'priority':'low'});const _0x20caa9=(_0x29637b,_0x44ddaa)=>{let _0x597663=!0x1;const _0x1e8560=_0x44ddaa['createRangeOn'](_0x29637b),_0x35a3b0=_0x29637b['findAncestor']('table'),_0x5fb4a2=_0x1fdb0b['getCellLocation'](_0x29637b);for(const _0x50ae70 of this['_tableSuggestions']){const _0x23b900=_0x50ae70['subType'],_0xd73b8b=_0x23b900['startsWith']('tablePaste'),_0x5b8c05=_0x23b900['substr'](_0xd73b8b?0xa:0x5),_0x1baecd=_0x5b8c05['toLowerCase'](),_0x11f97e=_0x1baecd['substr'](0x0,0x3)+'span',_0x2a14c3='min'+_0x5b8c05,_0x54d7c2='max'+_0x5b8c05;if(!_0x50ae70['isInContent'])continue;if(_0x35a3b0!=_0x50ae70['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x50ae70['isIntersectingWithRange'](_0x1e8560))continue;const _0x54a199=_0x29637b['hasAttribute'](_0x11f97e)?_0x29637b['getAttribute'](_0x11f97e)-0x1:0x0,_0x4ed748=this['_getSuggestionCoords'](_0x50ae70),_0xe953d4=_0x4ed748[_0x2a14c3],_0x15de5b=_0x4ed748[_0x54d7c2];_0xe953d4<=_0x5fb4a2[_0x1baecd]&&_0x5fb4a2[_0x1baecd]+_0x54a199<=_0x15de5b&&(_0x50ae70['addRange'](_0x1e8560),_0x597663=!0x0);}return _0x597663;};_0x49a7d3['model']['document']['registerPostFixer'](_0x5ae364=>{let _0x66975c=!0x1;for(const _0x4514e2 of _0x49a7d3['model']['document']['differ']['getChanges']())if('insert'==_0x4514e2['type']){if('tableRow'==_0x4514e2['name']){for(const _0x11c96d of _0x4514e2['position']['nodeAfter']['getChildren']())_0x66975c=_0x66975c||_0x20caa9(_0x11c96d,_0x5ae364);}else'tableCell'==_0x4514e2['name']&&(_0x66975c=_0x66975c||_0x20caa9(_0x4514e2['position']['nodeAfter'],_0x5ae364));}return _0x66975c;});}['_getSuggestionCoords'](_0x1ed09c){return this['_getCoordsForCells'](_0x1ed09c['getRanges']()['map'](_0x395b14=>_0x395b14['start']['nodeAfter']));}}function Ee(_0x452ed9){return Array['from'](new Set(_0x452ed9)['values']());}class St extends _0x1c9f3d{static get['requires'](){return[jt];}['afterInit'](){const _0xc0a1ad=this['editor'],_0x5ac065=_0xc0a1ad['model']['document']['selection'],_0x4c3414=_0xc0a1ad['locale'];if(!_0xc0a1ad['plugins']['has']('TableEditing'))return;const _0x502e6a=_0xc0a1ad['plugins']['get']('TrackChangesEditing'),_0x341726=_0xc0a1ad['plugins']['get']('TableUtils'),_0xc4cd32=_0xc0a1ad['plugins']['get'](jt);_0xc4cd32['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x502e6a['enableCommand']('mergeTableCells',()=>{const _0x147d22=_0x341726['getSelectionAffectedTableCells'](_0xc0a1ad['model']['document']['selection']);_0xc0a1ad['model']['change'](()=>{_0x502e6a['markMultiRangeBlockFormat'](_0x147d22,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xc0a1ad['commands']['get']('mergeTableCells')['on']('execute',(_0x4f3332,_0x489670)=>{_0xc0a1ad['commands']['get']('trackChanges')['value']&&(_0x489670['length']>0x0&&_0x489670[_0x489670['length']-0x1]&&_0x489670[_0x489670['length']-0x1]['forceDefaultExecution']||_0x502e6a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4f3332['stop']());},{'priority':'highest'});for(const _0x23ce57 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x25b5a2=_0xc0a1ad['commands']['get'](_0x23ce57);_0x502e6a['enableCommand'](_0x23ce57,()=>{const _0x1e7912=_0xc0a1ad['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x15b233=>_0x15b233['is']('element','tableCell')),_0x5a4557=_0x25b5a2['value'];_0xc0a1ad['model']['change'](()=>{_0x502e6a['markMultiRangeBlockFormat']([_0x1e7912,_0x5a4557],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x14419d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x118c06=_0xc0a1ad['commands']['get'](_0x14419d);_0x502e6a['enableCommand'](_0x14419d,()=>{const _0x202bab=_0x341726['getSelectionAffectedTableCells'](_0xc0a1ad['model']['document']['selection'])[0x0],_0x3b28dd=_0x202bab['findAncestor']('table'),{column:_0x5f2717,row:_0x40f091}=_0x341726['getCellLocation'](_0x202bab);let _0x34832c=[];if('horizontally'==_0x118c06['direction']){const _0x50cf54=_0x341726['createTableWalker'](_0x3b28dd,{'startRow':_0x40f091,'endRow':_0x40f091,'includeAllSlots':!0x0});_0x34832c=Array['from'](_0x50cf54)['map'](_0x3ddd0e=>_0x3ddd0e['cell']);}else{const _0x9f39dd=_0x341726['createTableWalker'](_0x3b28dd,{'column':_0x5f2717,'includeAllSlots':!0x0});_0x34832c=Array['from'](_0x9f39dd)['map'](_0x3dc2fe=>_0x3dc2fe['cell']);}_0xc0a1ad['model']['change'](_0x2d4a72=>{_0x502e6a['markBlockFormat'](_0x2d4a72['createRangeOn'](_0x202bab),{'commandName':_0x14419d,'commandParams':[]},_0x34832c,_0x14419d);});});}_0x502e6a['descriptionFactory']['registerDescriptionCallback'](_0x476f3=>{if('formatBlock'!=_0x476f3['type']&&'formatInline'!=_0x476f3['type'])return;const {data:_0x59eb13}=_0x476f3;return _0x59eb13&&'mergeTableCells'==_0x59eb13['commandName']?{'type':'format','content':o(_0x4c3414,'*Merge\x20cells*')}:void 0x0;}),_0x502e6a['descriptionFactory']['registerDescriptionCallback'](_0x45ab6a=>{if('formatBlock'!=_0x45ab6a['type']&&'formatInline'!=_0x45ab6a['type'])return;const {data:_0x2e28cd}=_0x45ab6a;return _0x2e28cd?'splitTableCellVertically'==_0x2e28cd['commandName']?{'type':'format','content':o(_0x4c3414,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2e28cd['commandName']?{'type':'format','content':o(_0x4c3414,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x577b2e=_0xc4cd32['_acceptFormatSuggestionCallbackFactory']();for(const _0x44cafe of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x502e6a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x44cafe,'accept',_0x577b2e);for(const _0x52fdb9 of['splitTableCellVertically','splitTableCellHorizontally'])_0x502e6a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x52fdb9,'accept',_0x577b2e);_0x502e6a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2d8027=>{_0xc0a1ad['model']['change'](_0x55e668=>{const _0x342ac4=Array['from'](_0x5ac065['getRanges']())['map'](_0x1d0a70=>_0x45d820['fromRange'](_0x1d0a70));_0x55e668['setSelection'](_0x2d8027),_0xc0a1ad['commands']['get']('mergeTableCells')['refresh'](),_0xc0a1ad['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x320b67=_0x342ac4['filter'](_0x43149b=>'$graveyard'!=_0x43149b['root']['rootName']);_0x320b67['length']>0x0&&_0x55e668['setSelection'](_0x320b67);for(const _0x14c1da of _0x342ac4)_0x14c1da['detach']();});});for(const _0x1424c1 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x37fbcb=_0xc0a1ad['commands']['get'](_0x1424c1);_0x37fbcb['on']('set:isEnabled',(_0x36d3e6,_0x2cff7f,_0xb9ffe2)=>{if(_0xb9ffe2){const _0xcf87cd=_0xc0a1ad['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xd97741=>_0xd97741['is']('element','tableCell'));this['_areMergableCells'](_0x37fbcb['value'],_0xcf87cd)||(_0x36d3e6['return']=!0x1,_0x36d3e6['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1ce062=this['editor']['commands']['get']('mergeTableCells'),_0x84cc4b=this['editor']['plugins']['get']('TableUtils');if(!_0x1ce062['isEnabled'])return!0x1;const _0x240452=_0x84cc4b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1361ec of _0x240452)for(const _0x1391f8 of _0x240452)if(_0x1361ec!=_0x1391f8&&!this['_areMergableCells'](_0x1361ec,_0x1391f8))return!0x1;return!0x0;}['_areMergableCells'](_0x1ec160,_0x47f120){const _0x533f4f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44878a=this['editor']['model']['createRangeOn'](_0x1ec160),_0x2edd91=this['editor']['model']['createRangeOn'](_0x47f120),_0x2ee2cd=new Set(),_0x1cabaa=new Set();for(const _0x4f0d48 of _0x533f4f['getSuggestions']())if(('insertion'==_0x4f0d48['type']||'deletion'==_0x4f0d48['type']||'mergeTableCells'==_0x4f0d48['subType'])&&_0x4f0d48['isInContent']){for(const _0x91d1a6 of _0x4f0d48['getRanges']())_0x91d1a6['containsRange'](_0x44878a,!0x0)&&_0x2ee2cd['add'](_0x4f0d48['type']+':'+_0x4f0d48['author']['id']),_0x91d1a6['containsRange'](_0x2edd91,!0x0)&&_0x1cabaa['add'](_0x4f0d48['type']+':'+_0x4f0d48['author']['id']);}if(_0x2ee2cd['size']!=_0x1cabaa['size'])return!0x1;for(const _0x5dc6f2 of _0x2ee2cd)if(!_0x1cabaa['has'](_0x5dc6f2))return!0x1;return!0x0;}}class At extends _0x1c9f3d{static get['requires'](){return[jt];}['afterInit'](){const _0x42d59c=this['editor'];if(!_0x42d59c['plugins']['has']('TableEditing'))return;const _0x532fc2=_0x42d59c['locale'],_0x3d4a72=_0x42d59c['plugins']['get']('TrackChangesEditing');_0x3d4a72['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3d4a72['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3d4a72['registerBlockAttribute']('headingRows'),_0x3d4a72['registerBlockAttribute']('headingColumns'),_0x3d4a72['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x532fc2,'FORMAT_HEADER_ROW')),_0x3d4a72['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x532fc2,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x19c1a1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x525e4a=this['editor']['plugins']['get']('TableUtils'),_0x2ac8a9=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x17fbe7({showActiveMarker:_0x4fc6ff=!0x0,setDataAttribute:_0x2b3fe4=!0x0}={}){return(_0x2eb042,_0x397f3e,_0x578a9b)=>{const {type:_0x154496,id:_0x37661a}=_0x19c1a1['_splitMarkerName'](_0x397f3e['markerName']),_0x3f7171=_0x19c1a1['getSuggestion'](_0x37661a),_0x401c27=_0x3f7171['data'];if('formatBlock'!=_0x3f7171['type']||!_0x401c27||'setTableColumnHeader'!=_0x401c27['commandName'])return;if(_0x397f3e['item'])return void _0x2eb042['stop']();if(!_0x578a9b['consumable']['consume'](_0x397f3e['markerRange'],_0x2eb042['name']))return;const _0x413a1f=_0x397f3e['markerRange']['start']['nodeAfter'],_0x30a22c=_0x397f3e['markerRange']['end']['nodeBefore'],_0x447f0c=_0x413a1f['parent']['parent'],{column:_0x5c93b4}=_0x525e4a['getCellLocation'](_0x413a1f),{column:_0x55023a}=_0x525e4a['getCellLocation'](_0x30a22c);for(let _0x2dc5cd=_0x5c93b4;_0x2dc5cd<=_0x55023a;_0x2dc5cd++){const _0x3cf153=_0x525e4a['createTableWalker'](_0x447f0c,{'column':_0x2dc5cd,'includeAllSlots':!0x1});for(const _0x3e48e4 of _0x3cf153){const _0x4d807b=_0x3e48e4['cell'],_0x287754=_0x578a9b['mapper']['toViewElement'](_0x4d807b);_0x578a9b['writer']['addClass']('ck-suggestion-marker-'+_0x154496,_0x287754),_0x2b3fe4&&_0x578a9b['writer']['setAttribute']('data-suggestion',_0x37661a,_0x287754),_0x578a9b['mapper']['bindElementToMarker'](_0x287754,_0x397f3e['markerName']),_0x4fc6ff&&(_0x19c1a1['activeMarkers']['includes'](_0x397f3e['markerName'])?_0x578a9b['writer']['addClass']('ck-suggestion-marker--active',_0x287754):_0x578a9b['writer']['removeClass']('ck-suggestion-marker--active',_0x287754));}}};}_0x19c1a1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2ac8a9),_0x19c1a1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2ac8a9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x17fbe7(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5dc507,_0x10b59d,_0x5ac255)=>{_0x5ac255['options']['showSuggestionHighlights']&&_0x17fbe7({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5dc507,_0x10b59d,_0x5ac255);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xde292,_0x273601,_0x481363)=>{const {type:_0xa2b95,id:_0x112574}=_0x19c1a1['_splitMarkerName'](_0x273601['markerName']),_0x2e7adb=_0x19c1a1['getSuggestion'](_0x112574),_0x5c7b37=_0x2e7adb['data'];if('formatBlock'!=_0x2e7adb['type']||!_0x5c7b37||'setTableColumnHeader'!=_0x5c7b37['commandName'])return;const _0x5006b3=_0x481363['mapper']['markerNameToElements'](_0x273601['markerName']);if(_0x5006b3){for(const _0x49019b of _0x5006b3)_0x481363['writer']['removeClass']('ck-suggestion-marker-'+_0xa2b95,_0x49019b),_0x481363['writer']['removeClass']('ck-suggestion-marker--active',_0x49019b),_0x481363['writer']['removeAttribute']('data-suggestion',_0x49019b),_0x481363['mapper']['unbindElementFromMarkerName'](_0x49019b,_0x273601['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x466c40=this['editor'],_0xd00306=_0x466c40['locale'];function _0x132111(_0x3d25df){return{'type':'format','content':o(_0xd00306,'*Format:*\x20%0',_0x3d25df)};}_0x466c40['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44ecf2=>{if('formatBlock'!=_0x44ecf2['type'])return;const {data:_0x36708f}=_0x44ecf2;if(_0x36708f){if('setTableRowHeader'==_0x36708f['commandName']){const _0x3d063c=_0x36708f['commandParams'][0x0]['forceValue'];return _0x132111(o(_0xd00306,_0x3d063c?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x36708f['commandName']){const _0x32c27f=_0x36708f['commandParams'][0x0]['forceValue'];return _0x132111(o(_0xd00306,_0x32c27f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x2f8bf3=>[_0x2f8bf3,null]));class It extends _0x1c9f3d{static get['requires'](){return[jt];}['afterInit'](){const _0x11676e=this['editor'];if(!_0x11676e['plugins']['has']('TableClipboard'))return;const _0x4e8fc0=_0x11676e['plugins']['get']('TrackChangesEditing'),_0x2d402b=_0x11676e['plugins']['get']('TableUtils'),_0x53351a=_0x11676e['plugins']['get'](jt),_0x189259=_0x11676e['plugins']['get']('TableClipboard');_0x53351a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x11676e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x11676e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2b8a8c=null;_0x11676e['model']['on']('insertContent',(_0x332a8f,_0x4267c7)=>{const [_0x455b49,_0xd143be]=_0x4267c7,_0x31d33b=_0x4267c7[_0x4267c7['length']-0x1];_0x31d33b&&_0x31d33b['forceDefaultExecution']||_0x4e8fc0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x34108a,_0x55f27a,_0xac81ef,_0x443b42,_0x37e7ed){if(_0x55f27a&&!_0x55f27a['is']('documentSelection'))return!0x1;const _0x4b04ed=_0x37e7ed['getTableIfOnlyTableInContent'](_0x34108a,_0xac81ef);if(!_0x4b04ed||!he(_0x4b04ed,void 0x0,_0x443b42))return!0x1;const _0x18dab5=_0x443b42['getSelectionAffectedTableCells'](_0xac81ef['document']['selection']);if(!_0x18dab5['length'])return!0x1;const _0x27d245=_0x18dab5[0x0]['findAncestor']('table'),_0x5e02e8=_0x443b42['getRowIndexes'](_0x18dab5),_0x5910fd=_0x443b42['getColumnIndexes'](_0x18dab5),_0x392288={'startRow':_0x5e02e8['first'],'endRow':_0x5e02e8['last'],'startColumn':_0x5910fd['first'],'endColumn':_0x5910fd['last']};return 0x1==_0x18dab5['length']&&(_0x392288['endRow']+=_0x443b42['getRows'](_0x4b04ed)-0x1,_0x392288['endColumn']+=_0x443b42['getColumns'](_0x4b04ed)-0x1),he(_0x27d245,_0x392288,_0x443b42);}(_0x455b49,_0xd143be,_0x11676e['model'],_0x2d402b,_0x189259)&&(_0x332a8f['stop'](),_0x2b8a8c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x11676e['model']['change'](()=>{_0x11676e['model']['insertContent'](_0x4267c7[0x0],_0x4267c7[0x1],_0x4267c7[0x2],{'forceDefaultExecution':!0x0});const _0x548401=_0x7b6b31(),{rowInsertionRanges:_0x54ae,columnInsertionRanges:_0x1a311c,insertionRanges:_0x25e081,deletionRanges:_0x38de13,cells:_0x401c99}=_0x2b8a8c;_0x54ae['length']&&_0x4e8fc0['markMultiRangeInsertion'](_0x54ae,'tablePasteRow',{'tablePasteChainId':_0x548401}),_0x1a311c['length']&&_0x4e8fc0['markMultiRangeInsertion'](_0x1a311c,'tablePasteColumn',{'tablePasteChainId':_0x548401}),_0x25e081['length']&&(_0x4e8fc0['markMultiRangeInsertion'](_0x25e081,'tablePaste',{'tablePasteChainId':_0x548401,'skipNestingCheck':!0x0}),_0x25e081['forEach'](_0x29039a=>_0x29039a['detach']?.())),_0x38de13['length']&&(_0x4e8fc0['markMultiRangeDeletion'](_0x38de13,'tablePaste',{'tablePasteChainId':_0x548401,'skipNestingCheck':!0x0}),_0x38de13['forEach'](_0x2be507=>_0x2be507['detach']?.()));const _0x2b508d=_0x4e8fc0['markMultiRangeBlockFormat'](_0x401c99['map'](({element:_0x4331fb})=>_0x4331fb),{'formatGroupId':_0x7b6b31()},[],'tablePasteCell',{'tablePasteChainId':_0x548401});if(_0x2b508d){const _0x55619c=_0x2b508d['getMarkers'](),_0x852aa4=[];for(const {element:_0x3dc938,attributes:_0x1dfcf8}of _0x401c99){if(!_0x1dfcf8)continue;const _0x2eb5ba=_0x11676e['model']['createRangeOn'](_0x3dc938),_0x4fd0d8=_0x55619c['find'](_0x5e7136=>_0x5e7136['getRange']()['isEqual'](_0x2eb5ba));_0x4fd0d8&&_0x852aa4['push']([_0x4fd0d8['name'],_0x1dfcf8]);}_0x852aa4['length']&&_0x2b508d['setAttribute']('markerAttributes',Object['fromEntries'](_0x852aa4));}_0x2b8a8c=null;}));},{'priority':_0x2c04bb['high']+0xa}),_0x11676e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xdce503,_0x5b3295)=>{const [_0x3d360c,_0x16257a,,_0x3bf666]=_0x5b3295;if(!_0x2b8a8c)return;_0xdce503['stop']();const _0x39d451=_0x3d360c['cell'],_0x5e8d86=_0x16257a,_0x334b4d=Pe(_0x39d451),_0x46e7fa=Pe(_0x5e8d86);_0xdce503['return']=_0x39d451;let _0x24d365=null,_0xf82b86=null;if(_0x46e7fa||_0x334b4d){if(_0x334b4d&&!_0x46e7fa){_0x3bf666['remove'](_0x39d451['getChild'](0x0));for(const _0x432e16 of Array['from'](_0x5e8d86['getChildren']()))_0x3bf666['insert'](_0x432e16,_0x39d451,'end');const _0x554f9d=_0x2b8a8c['rowInsertionIndexes']['includes'](_0x3d360c['row']),_0x519b9a=_0x2b8a8c['columnInsertionIndexes']['includes'](_0x3d360c['column']);_0x554f9d||_0x519b9a||(_0x24d365=_0x45d820['fromRange'](_0x3bf666['createRangeIn'](_0x39d451)));}else _0x46e7fa&&!_0x334b4d&&(_0xf82b86=_0x3bf666['createRangeIn'](_0x39d451));}else{const _0x1d7fcf=_0x3bf666['createElement']('tableCellSuggestion'),_0xe5c7d7=_0x3bf666['createElement']('tableCellSuggestion');_0x3bf666['wrap'](_0x3bf666['createRangeIn'](_0x39d451),_0xe5c7d7),_0x3bf666['insert'](_0x1d7fcf,_0x39d451,0x0);for(const _0x5f134e of Array['from'](_0x5e8d86['getChildren']()))_0x3bf666['insert'](_0x5f134e,_0x1d7fcf,'end');_0x24d365=_0x45d820['fromRange'](_0x3bf666['createRangeOn'](_0x1d7fcf)),_0xf82b86=_0x45d820['fromRange'](_0x3bf666['createRangeOn'](_0xe5c7d7));}const _0x48719b=Array['from'](_0x5e8d86['getAttributes']())['filter'](([_0x58241f])=>ge['includes'](_0x58241f));_0x2b8a8c['cells']['push']({'element':_0x39d451,'attributes':_0x48719b['length']?Object['fromEntries'](_0x48719b):null}),_0x24d365&&_0x2b8a8c['insertionRanges']['push'](_0x24d365),_0xf82b86&&_0x2b8a8c['deletionRanges']['push'](_0xf82b86);},{'priority':'high'}),_0x2d402b['on']('insertColumns',(_0x37e0bc,_0x3fe6d4)=>{const [_0xeb8c49,_0x17395d={}]=_0x3fe6d4;if(!_0x2b8a8c)return;const _0x34ede5=_0x17395d['at']||0x0,_0x1e0e0a=_0x17395d['columns']||0x1;_0x2b8a8c['columnInsertionIndexes']=new Array(_0x1e0e0a)['fill'](_0x34ede5)['map']((_0x3914a6,_0x1ed92f)=>_0x3914a6+_0x1ed92f);for(const {cell:_0x905ba4}of _0x2d402b['createTableWalker'](_0xeb8c49,{'startColumn':_0x34ede5,'endColumn':_0x34ede5+_0x1e0e0a-0x1}))_0x2b8a8c['columnInsertionRanges']['push'](_0x11676e['model']['createRangeOn'](_0x905ba4));},{'priority':'low'}),_0x2d402b['on']('insertRows',(_0x4e0887,_0x586e6e)=>{const [_0x4debd1,_0x51e36a={}]=_0x586e6e;if(!_0x2b8a8c)return;const _0x45ccee=_0x51e36a['at']||0x0,_0x53ef53=_0x51e36a['rows']||0x1;_0x2b8a8c['rowInsertionIndexes']=new Array(_0x53ef53)['fill'](_0x45ccee)['map']((_0x345521,_0x4fbb7e)=>_0x345521+_0x4fbb7e);for(const {cell:_0x1bed04}of _0x2d402b['createTableWalker'](_0x4debd1,{'startRow':_0x45ccee,'endRow':_0x45ccee+_0x53ef53-0x1}))_0x2b8a8c['rowInsertionRanges']['push'](_0x11676e['model']['createRangeOn'](_0x1bed04));},{'priority':'low'}),_0x4e8fc0['descriptionFactory']['registerDescriptionCallback'](_0x61c413=>{if(_0x61c413['subType']&&_0x61c413['subType']['startsWith']('tablePaste'))return _0x61c413['previous']?{}:{'type':'insertion','content':o(_0x11676e['locale'],'*Replace\x20table\x20cells*')};});const _0x5ca457=()=>!0x1;for(const _0xceec43 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4e8fc0['_suggestionFactory']['registerCustomCallback']('insertion',_0xceec43,'join',_0x5ca457),_0x4e8fc0['_suggestionFactory']['registerCustomCallback']('deletion',_0xceec43,'join',_0x5ca457),_0x4e8fc0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xceec43,'join',_0x5ca457);_0x4e8fc0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5ca457),_0x4e8fc0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x12a257,_0x21114b,_0x527022)=>{const _0x555994=_0x12a257['map'](_0x284aae=>_0x284aae['getContainedElement']())['filter'](_0x1d9030=>_0x1d9030),_0x4956e1=new Map(_0x555994['map'](_0x22395f=>[_0x22395f,null]));if(_0x2b8a8c){for(const {element:_0x379fa8,attributes:_0x5668d0}of _0x2b8a8c['cells'])_0x5668d0&&_0x4956e1['set'](_0x379fa8,_0x5668d0);}else{if(_0x527022&&_0x527022['markerAttributes'])for(const [_0x52921f,_0x355d07]of Object['entries'](_0x527022['markerAttributes'])){const _0x173b54=_0x11676e['model']['markers']['get'](_0x52921f),_0x17420f=_0x173b54?_0x173b54['getRange']()['getContainedElement']():null;_0x17420f&&_0x4956e1['set'](_0x17420f,_0x355d07);}}_0x11676e['model']['change'](_0x298b8b=>{for(const [_0x4b673f,_0x4980b4]of _0x4956e1)_0x298b8b['setAttributes']({...Ce,..._0x4980b4},_0x4b673f);});});const _0x159b0b=(_0xcce6a3,_0x357b68)=>{_0x4e8fc0['_suggestionFactory']['registerCustomCallback'](_0xcce6a3,'tablePaste',_0x357b68,(_0x39afaa,_0x29182b,_0x4c4069)=>{_0x11676e['model']['change'](_0x5475d9=>{const _0x36d14c=[];for(const _0x169282 of _0x39afaa){const _0x2e6f5a=_0x169282['start']['nodeAfter'];_0x2e6f5a['is']('element','tableCellSuggestion')&&_0x36d14c['push'](_0x2e6f5a);}_0x4e8fc0['_suggestionFactory']['getSuggestionCallback'](_0xcce6a3,null,_0x357b68)(_0x39afaa,_0x29182b,_0x4c4069);for(const _0x3384fc of _0x36d14c)'$graveyard'!=_0x3384fc['root']['rootName']&&_0x5475d9['unwrap'](_0x3384fc);});});};_0x159b0b('insertion','accept'),_0x159b0b('insertion','discard'),_0x159b0b('deletion','accept'),_0x159b0b('deletion','discard'),_0x4e8fc0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3604dc=>{const _0xa33e0c=_0x3604dc['map'](_0x33a8b6=>_0x33a8b6['getContainedElement']()),_0x3039a5=_0xa33e0c[0x0]['findAncestor']('table'),{minRow:_0x4c9e12,maxRow:_0x22e0ac}=_0x53351a['_getCoordsForCells'](_0xa33e0c);_0x2d402b['removeRows'](_0x3039a5,{'at':_0x4c9e12,'rows':_0x22e0ac-_0x4c9e12+0x1});}),_0x4e8fc0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1c576a=>{const _0x22ffae=_0x1c576a['map'](_0x50f979=>_0x50f979['getContainedElement']()),_0x5b70e9=_0x22ffae[0x0]['findAncestor']('table'),{minColumn:_0x2b8332,maxColumn:_0x490674}=_0x53351a['_getCoordsForCells'](_0x22ffae);_0x2d402b['removeColumns'](_0x5b70e9,{'at':_0x2b8332,'columns':_0x490674-_0x2b8332+0x1});});const _0xf34dcd=(_0x271479,_0x28fb65)=>{if(!_0x28fb65['subType']||!_0x28fb65['subType']['startsWith']('tablePaste'))return;const _0x5e0b4f=_0x28fb65['attributes']['tablePasteChainId'],_0x5df761=_0x4e8fc0['getSuggestions']()['filter'](_0x35352f=>_0x35352f['isInContent']&&_0x35352f['attributes']&&_0x35352f['attributes']['tablePasteChainId']==_0x5e0b4f);_0x5df761['length']&&_0x28fb65['getAllAdjacentSuggestions']()['length']!=_0x5df761['length']&&_0x5df761['reduce']((_0x86f92c,_0x16332d)=>(_0x86f92c['next']=_0x16332d,_0x16332d['previous']=_0x86f92c,_0x16332d));};function _0x467373(_0x42c70d,_0x5618ca=!0x0){const {id:_0x3a8b6d}=_0x4e8fc0['_splitMarkerName'](_0x42c70d['markerName']),_0x21cfee=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1c58fd=_0x4e8fc0['activeMarkers']['includes'](_0x42c70d['markerName']);return _0x1c58fd&&_0x21cfee['push']('ck-suggestion-marker--active'),{'classes':_0x21cfee,'attributes':{'data-suggestion':_0x3a8b6d},'priority':_0x1c58fd&&_0x5618ca?0xbc2:0xbb8};}_0x4e8fc0['on']('suggestionLoaded',_0xf34dcd,{'priority':'high'}),_0x4e8fc0['on']('suggestionUnloaded',_0xf34dcd,{'priority':'high'}),_0x11676e['model']['document']['registerPostFixer'](()=>{let _0x42a808=!0x1;const _0x1f38b3=Array['from'](_0x11676e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1319b3,data:_0x3127f5}of _0x1f38b3){const {group:_0x43433c,type:_0x42c00c,id:_0x4dbf91}=_0x4e8fc0['_splitMarkerName'](_0x1319b3);if('suggestion'!=_0x43433c||'deletion'!=_0x42c00c||_0x3127f5['oldRange'])continue;if(!_0x4e8fc0['hasSuggestion'](_0x4dbf91))continue;const _0x16c037=_0x4e8fc0['getSuggestion'](_0x4dbf91)['getRanges'](),_0xdd8a02=_0x11676e['plugins']['get']('Users')['me'];for(const _0x30b9fc of _0x4e8fc0['getSuggestions']()){if(!_0x30b9fc['isInContent']||_0x30b9fc['author']!=_0xdd8a02)continue;if('formatBlock'!=_0x30b9fc['type']||'tablePasteCell'!=_0x30b9fc['subType'])continue;if(_0x30b9fc['getRanges']()['every'](_0xdc8b5=>_0x16c037['some'](_0x1416a9=>_0x1416a9['containsRange'](_0xdc8b5,!0x0)))){for(const _0x137965 of _0x30b9fc['getAllAdjacentSuggestions']())_0x137965['isInContent']&&(_0x137965['discard'](),_0x42a808=!0x0);}}}return _0x42a808;}),_0x11676e['model']['document']['registerPostFixer'](_0x107ad9=>{const _0x3687bf=_0x11676e['commands']['get']('redo');if(!_0x3687bf||!_0x3687bf['_createdBatches']['has'](_0x107ad9['batch']))return!0x1;let _0xd15d58=!0x1;const _0x53897c=_0x11676e['plugins']['get']('Users')['me'],_0x36088b=_0x11676e['model']['document']['differ']['getChanges'](),_0x49e718=Array['from'](_0x11676e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xc4fb02,data:_0x270751})=>{const {group:_0x4dadcf,subType:_0x533092,authorId:_0x1f90f1}=_0x4e8fc0['_splitMarkerName'](_0xc4fb02);return'suggestion'==_0x4dadcf&&'tablePaste'==_0x533092&&_0x1f90f1==_0x53897c['id']&&!_0x270751['oldRange'];});for(const _0x3073cf of _0x36088b){if('insert'!=_0x3073cf['type']||'tableCellSuggestion'!=_0x3073cf['name']||0x1!=_0x3073cf['length'])continue;const _0x555e61=_0x107ad9['createRange'](_0x3073cf['position'],_0x3073cf['position']['getShiftedBy'](0x1));if(!_0x49e718['find'](({data:_0x44ef24})=>_0x44ef24['newRange']['isEqual'](_0x555e61))){for(const {name:_0x31d690,data:_0x1bb115}of _0x49e718)if(_0x555e61['containsRange'](_0x1bb115['newRange'])){_0x107ad9['updateMarker'](_0x31d690,{'range':_0x555e61}),_0xd15d58=!0x0;break;}}}return _0xd15d58;}),_0x11676e['model']['document']['registerPostFixer'](_0x2e48e3=>{let _0x5cbce9=!0x1;const _0x7c23f5=_0x11676e['plugins']['get']('Users')['me'],_0x32ac6a=_0x4e8fc0['getSuggestions']()['filter'](_0x3ab53b=>_0x3ab53b['isInContent']&&_0x3ab53b['author']==_0x7c23f5),_0x17ddc9=new Set(),_0x2ac4cd=new Set();for(const _0x2f80a0 of _0x32ac6a)if('tablePaste'==_0x2f80a0['subType'])for(const _0x476434 of _0x2f80a0['getMarkers']()){const _0x23c2c9=_0x476434['getRange']()['getContainedElement']();if(_0x23c2c9){if(_0x23c2c9['is']('element','tableCellSuggestion')&&Pe(_0x23c2c9)){_0x2f80a0['removeMarker'](_0x476434['name']),_0x17ddc9['add'](_0x23c2c9),_0x5cbce9=!0x0;const _0x454563=_0x23c2c9['nextSibling'],_0x4c2141=_0x23c2c9['previousSibling'],_0x46d9ce=_0x454563&&_0x454563['is']('element','tableCellSuggestion'),_0x143e51=_0x4c2141&&_0x4c2141['is']('element','tableCellSuggestion');_0x46d9ce&&!_0x17ddc9['has'](_0x454563)&&_0x2ac4cd['add'](_0x454563),_0x143e51&&!_0x17ddc9['has'](_0x4c2141)&&_0x2ac4cd['add'](_0x4c2141);}else _0x23c2c9['is']('element','paragraph')&&_0x23c2c9['isEmpty']&&(_0x2f80a0['removeMarker'](_0x476434['name']),_0x5cbce9=!0x0);}}else{if('tablePasteCell'==_0x2f80a0['subType']){if(!_0x2f80a0['attributes']||!_0x2f80a0['attributes']['tablePasteChainId'])continue;const _0xe81ee5=_0x2f80a0['attributes']['markerAttributes'];if(_0xe81ee5&&Object['keys'](_0xe81ee5)['length'])continue;const _0x1cc20d=_0x2f80a0['attributes']['tablePasteChainId'];let _0x5ca3c4=!0x0,_0x4bb6b0=!0x0;for(const _0x3e659e of _0x32ac6a)if(_0x3e659e['subType']&&_0x3e659e['subType']['startsWith']('tablePaste')){if(!_0x3e659e['attributes']['tablePasteChainId']){_0x4bb6b0=!0x1;break;}if(_0x3e659e['id']!=_0x2f80a0['id']&&_0x3e659e['attributes']['tablePasteChainId']==_0x1cc20d){_0x5ca3c4=!0x1;break;}}_0x4bb6b0&&_0x5ca3c4&&(_0x2f80a0['removeMarkers'](),_0x5cbce9=!0x0);}}for(const _0x3acd70 of _0x17ddc9)_0x2e48e3['remove'](_0x3acd70);for(const _0x75695c of _0x2ac4cd)_0x2e48e3['unwrap'](_0x75695c);return _0x5cbce9;}),_0x11676e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x55a6ea,_0x5de53b)=>_0x467373(_0x55a6ea),'converterPriority':'high'}),_0x11676e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x35ac41,_0x1411d3)=>_0x1411d3['options']['showSuggestionHighlights']?_0x467373(_0x35ac41,!0x1):null,'converterPriority':'high'});const _0x1b3be2=_0x11676e['editing']['view'];this['listenTo'](_0x1b3be2['document'],'clipboardOutput',(_0x15cc16,_0x38fa57)=>{const _0x421757=[];for(const _0x39a1c3 of _0x1b3be2['createRangeIn'](_0x38fa57['content'])['getItems']())_0x39a1c3['is']('element','suggestion-td')&&_0x421757['push'](_0x39a1c3);_0x1b3be2['change'](_0x61c72c=>{for(const _0x4bbaa6 of _0x421757)_0x61c72c['move'](_0x61c72c['createRangeIn'](_0x4bbaa6),_0x61c72c['createPositionBefore'](_0x4bbaa6)),_0x61c72c['remove'](_0x4bbaa6);});});}}function Pe(_0x3cae71){if(_0x3cae71['isEmpty'])return!0x0;const _0x18c6c1=_0x3cae71['getChild'](0x0);return _0x18c6c1['is']('element','paragraph')&&_0x18c6c1['isEmpty'];}function he(_0x3f6e01,_0x38fd7f={},_0x8e6da1){for(const {isAnchor:_0x450d50,cellHeight:_0x34cfbe,cellWidth:_0x157afe}of _0x8e6da1['createTableWalker'](_0x3f6e01,{'includeAllSlots':!0x0,..._0x38fd7f}))if(!_0x450d50||0x1!=_0x34cfbe||0x1!=_0x157afe)return!0x1;return!0x0;}class vt extends _0x1c9f3d{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x10d10b=this['editor']['plugins']['get']('TrackChangesEditing');_0x10d10b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x10d10b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x10d10b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x10d10b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x10d10b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x10d10b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x7dbe58,_0x3b4aed){const _0x5cea50=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11952b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5927ad=_0x3b4aed['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3d9299=_0x11952b['getColumnGroupElement'](_0x5927ad);let _0x42836b=_0x3d9299?_0x11952b['getTableColumnsWidths'](_0x3d9299):null,_0x2a9637=_0x5927ad['getAttribute']('tableWidth')||null;const _0x556bb0=_0x3b4aed['tableWidth']||_0x2a9637,_0x2c723d=_0x3b4aed['columnWidths']||_0x42836b,_0x41dd2d=this['editor']['plugins']['get']('Users')['me'];for(const _0x35b52f of _0x5cea50['getSuggestions']()){const _0x57c7f4=_0x35b52f['getContainedElement']();if('resizeTable'===_0x35b52f['subType']&&_0x57c7f4===_0x5927ad){_0x35b52f['author']!==_0x41dd2d&&_0x35b52f['discard']();const _0x138056=_0x35b52f['data']['commandParams'];_0x2a9637=_0x138056[0x0]['tableWidth'],_0x42836b=_0x138056[0x0]['columnWidths'];break;}}_0x7dbe58({'table':_0x5927ad,'tableWidth':_0x556bb0,'columnWidths':_0x2c723d}),_0x5cea50['markBlockFormat'](_0x5927ad,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2a9637,'columnWidths':_0x42836b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xa98a0d){if('formatBlock'!=_0xa98a0d['type']&&'formatInline'!=_0xa98a0d['type'])return;const {data:_0xa6b1f9}=_0xa98a0d;if(_0xa6b1f9&&'resizeTable'===_0xa6b1f9['formatGroupId']){const _0x1b2012='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1b2012)};}}}class Ct extends _0x1c9f3d{['afterInit'](){const _0x489bee=this['editor'];_0x489bee['plugins']['has']('Template')&&_0x489bee['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x1c9f3d{['afterInit'](){const _0x3a019e=this['editor'];if(!_0x3a019e['commands']['get']('insertTableOfContents'))return;_0x3a019e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x23e247=_0x3a019e['plugins']['get']('TrackChangesEditing'),_0x32c9b7=_0x3a019e['locale'];_0x23e247['descriptionFactory']['registerElementLabel']('tableOfContents',_0x23488a=>o(_0x32c9b7,'ELEMENT_TABLE_OF_CONTENTS',_0x23488a));}}class Dt extends _0x1c9f3d{['afterInit'](){const _0x4cd553=this['editor'];if(!_0x4cd553['plugins']['has']('Title'))return;const _0x3d7e8e=_0x4cd553['plugins']['get']('TrackChangesEditing');_0x3d7e8e['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4cd553['locale'],'ELEMENT_TITLE')),_0x4cd553['model']['document']['registerPostFixer'](_0x3be372=>{let _0x3cadba=!0x1;const _0x4a8535=Array['from'](_0x4cd553['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xeb45b0,data:_0x13799b}of _0x4a8535){const {group:_0x56eeba}=_0x3d7e8e['_splitMarkerName'](_0xeb45b0);if('suggestion'!==_0x56eeba||!_0x13799b['newRange'])continue;const _0x4e8f90=_0x13799b['newRange'],_0x508dcd=_0x4e8f90['end']['nodeBefore'];if(!_0x508dcd||!_0x508dcd['is']('element','title-content'))continue;if(!_0x4e8f90['start']['isTouching'](_0x4e8f90['end']))continue;const _0x49b03a=_0x4cd553['model']['schema']['getNearestSelectionRange'](_0x4e8f90['end'],'forward');if(_0x49b03a&&_0x49b03a['isCollapsed']){const _0x5c6c39=_0x3be372['createRange'](_0x4e8f90['start'],_0x49b03a['start']);_0x5c6c39['isEqual'](_0x4e8f90)||(_0x3be372['updateMarker'](_0xeb45b0,{'range':_0x5c6c39}),_0x3cadba=!0x0);}_0x3cadba||(_0x3be372['removeMarker'](_0xeb45b0),_0x3cadba=!0x0);}return _0x3cadba;});}}class Nt extends _0x1c9f3d{['afterInit'](){const _0x1d6099=this['editor'],_0x55c207=_0x1d6099['plugins']['get']('TrackChangesEditing');_0x1d6099['plugins']['has']('UndoEditing')&&(_0x55c207['enableCommand']('undo'),_0x55c207['enableCommand']('redo'));}}class Mt extends _0x1c9f3d{static get['requires'](){return[jt];}['afterInit'](){const _0x47f80a=this['editor'];if(!_0x47f80a['plugins']['has']('TableCaptionEditing'))return;_0x47f80a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x1c9f3d{['tableProperties'];['tableCellProperties'];constructor(_0x3bf8db){super(_0x3bf8db),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';}['afterInit'](){const _0x152d27=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4df879 of this['tableProperties'])_0x152d27['enableCommand'](_0x4df879,(_0x10446e,_0x4590a5)=>{const _0x3b932c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4df879,[_0x3b932c],this['tableProperties'],'tableProperties',_0x10446e,_0x4590a5);});_0x152d27['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x152d27['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x152d27['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5dedff,_0x27de23)=>this['handleDiscardAction'](this['tableProperties'],_0x5dedff,_0x27de23)),_0x152d27['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x46af42 of this['tableCellProperties'])_0x152d27['enableCommand'](_0x46af42,(_0x3c98f4,_0x211606)=>{const _0x16e7f8=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x46af42,_0x16e7f8,this['tableCellProperties'],'tableCellProperties',_0x3c98f4,_0x211606);});_0x152d27['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x152d27['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x152d27['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x29b6c2,_0x22ba54)=>this['handleDiscardAction'](this['tableCellProperties'],_0x29b6c2,_0x22ba54)),_0x152d27['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x152d27['descriptionFactory']['registerDescriptionCallback'](_0x8d3045=>this['handleSuggestionDescription'](_0x8d3045));}['_handlePropertyChange'](_0x3c80d1,_0x24ddcd,_0x3b5a67,_0xb2eb1d,_0x40f409,_0x5b2ff7){const _0x28d2a5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5b2ff7['batch'],()=>{for(const _0x550f16 of _0x24ddcd){if(this['_getSuggestion'](_0x550f16,_0xb2eb1d))_0x40f409(_0x5b2ff7);else{const _0x41fd89={};for(const _0x49eae7 of _0x3b5a67){const _0xfe5fb9=_0x550f16['getAttribute'](_0x49eae7);void 0x0!==_0xfe5fb9&&(_0x41fd89[_0x49eae7]=_0xfe5fb9);}_0x40f409(_0x5b2ff7),_0x28d2a5['markBlockFormat'](_0x550f16,{'commandParams':[_0x41fd89]},[],_0xb2eb1d);}}});}['handleDiscardAction'](_0x4fc2e0,_0x4a6f44,_0x1f8b60){const _0x13cc21=_0x4a6f44[0x0]['start']['nodeAfter'],_0x318c6d=_0x1f8b60['commandParams'][0x0];this['editor']['model']['change'](_0x4224df=>{for(const _0x3f7692 of _0x4fc2e0)void 0x0!==_0x318c6d[_0x3f7692]?_0x4224df['setAttribute'](_0x3f7692,_0x318c6d[_0x3f7692],_0x13cc21):_0x4224df['removeAttribute'](_0x3f7692,_0x13cc21);});}['handleSuggestionDescription'](_0x8366ad){if(_0x8366ad['data'])switch(_0x8366ad['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'](_0x5bafd2,_0xe2ce33){const _0x590937=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x43a9e5 of _0x590937['getSuggestions']({'skipNotAttached':!0x0})){const _0x366ac0=_0x43a9e5['getContainedElement']();if(_0x43a9e5['subType']===_0xe2ce33&&_0x366ac0===_0x5bafd2)return _0x43a9e5;}return null;}}const m='$elementName';class p extends _0x1c9f3d{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x505203,_0x5194b1,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x335d2f){function _0x40c2f6(_0x3c196b){return _0x3c196b['map'](_0x513f8b=>String['fromCharCode'](_0x513f8b))['join']('');}super(_0x335d2f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3bb5e6,_0x47676c,_0x32406d,_0xc673d8)=>{this['_model']['change'](()=>{for(const _0xa4a9db of[..._0xc673d8,..._0x32406d])this['_model']['markers']['has'](_0xa4a9db)&&_0x335d2f['editing']['reconvertMarker'](_0xa4a9db);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x335d2f['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(),_0x335d2f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x335d2f['config']['get']('trackChanges.trackFormatChanges'),_0x335d2f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x335d2f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x335d2f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x40c2f6([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x40c2f6([0x34,0x30,0x34,0x38,0x31,0x32,0x33,0x30]);}['init'](){const _0xdb6fd9=this['editor'],_0x3c83b5=(_0x3a6450,_0x301c0b)=>{if('attribute'!=_0x3a6450)return'ck-suggestion-marker-'+_0x3a6450;const _0x3b05fb=_0x301c0b['split']('|')[0x0];return this['_isBlockAttribute'](_0x3b05fb)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xdb6fd9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xe94063=>{const {id:_0x339d26,type:_0x540fe9,subType:_0x1e3d78}=this['_splitMarkerName'](_0xe94063['markerName']),_0x4a2549=['ck-suggestion-marker',_0x3c83b5(_0x540fe9,_0x1e3d78)];let _0x5364b3=0xbb8;return this['activeMarkers']['includes'](_0xe94063['markerName'])&&(_0x4a2549['push']('ck-suggestion-marker--active'),_0x5364b3=0xbc2),'deletion'==_0x540fe9&&(_0x5364b3+=0x5),{'classes':_0x4a2549,'attributes':{'data-suggestion':_0x339d26},'priority':_0x5364b3};}}),_0xdb6fd9['conversion']['for']('dataDowncast')['add'](_0x5e41fd=>{_0x5e41fd['on']('addMarker:suggestion',(_0x30010f,_0x448063,_0x52ab31)=>{if(!_0x52ab31['options']['showSuggestionHighlights'])return;const _0x3337b8=_0x448063['item'];if(!_0x3337b8)return;const _0x1c3b75=_0x52ab31['mapper']['toViewElement'](_0x3337b8);_0xdb6fd9['model']['schema']['isObject'](_0x3337b8)&&_0x1c3b75&&!_0x1c3b75['getCustomProperty']('widget')&&_0x1c3b75['is']('containerElement')&&_0x13eccc(_0x1c3b75,_0x52ab31['writer']);},{'priority':'high'});}),_0xdb6fd9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3117f2,_0x27846e)=>{if(!_0x27846e['options']['showSuggestionHighlights'])return null;const {type:_0x526cff,subType:_0xbab6f5}=this['_splitMarkerName'](_0x3117f2['markerName']);return{'classes':['ck-suggestion-marker',_0x3c83b5(_0x526cff,_0xbab6f5)],'priority':0xbb8};}});const _0x410ed6=({showActiveMarkers:_0x51a354=!0x0,isAttributeSuggestion:_0x397aad=!0x1}={})=>(_0xaae091,_0x24033c,_0x3e20d1)=>{if(!_0x24033c['item'])return;const {id:_0x2fbf6f}=this['_splitMarkerName'](_0x24033c['markerName']);if(_0x397aad){const _0x1eb3b4=this['_suggestions']['get'](_0x2fbf6f),_0x31ea54=this['_getAttributeKey'](_0x1eb3b4);if(!this['_isBlockAttribute'](_0x31ea54))return;}if(_0x24033c['item']['is']('selection'))return void _0x3e20d1['consumable']['consume'](_0x24033c['item'],_0xaae091['name']);const _0x1340eb=_0x3e20d1['mapper']['toViewElement'](_0x24033c['item']);if(_0x24033c['item']['is']('element')&&_0xdb6fd9['model']['schema']['isBlock'](_0x24033c['item'])&&!_0x1340eb['getCustomProperty']('addHighlight')){_0x3e20d1['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1340eb),_0x3e20d1['writer']['setAttribute']('data-suggestion',_0x2fbf6f,_0x1340eb),_0x3e20d1['mapper']['bindElementToMarker'](_0x1340eb,_0x24033c['markerName']),_0x51a354&&(this['activeMarkers']['includes'](_0x24033c['markerName'])?_0x3e20d1['writer']['addClass']('ck-suggestion-marker--active',_0x1340eb):_0x3e20d1['writer']['removeClass']('ck-suggestion-marker--active',_0x1340eb));for(const _0x7bea93 of _0xdb6fd9['model']['createRangeIn'](_0x24033c['item'])['getItems']())_0x3e20d1['consumable']['consume'](_0x7bea93,_0xaae091['name']);_0x3e20d1['consumable']['consume'](_0x24033c['item'],_0xaae091['name']);}};_0xdb6fd9['conversion']['for']('dataDowncast')['add'](_0x56f2e3=>{_0x56f2e3['on']('addMarker:suggestion:formatBlock',(_0x2c32dd,_0x2dd864,_0x1dce63)=>{_0x1dce63['options']['showSuggestionHighlights']&&_0x410ed6({'showActiveMarkers':!0x1})(_0x2c32dd,_0x2dd864,_0x1dce63);},{'priority':'highest'});}),_0xdb6fd9['conversion']['for']('dataDowncast')['add'](_0x33ac4a=>{_0x33ac4a['on']('addMarker:suggestion:attribute',(_0x395b86,_0x4af27c,_0x8ac765)=>{_0x8ac765['options']['showSuggestionHighlights']&&_0x410ed6({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x395b86,_0x4af27c,_0x8ac765);},{'priority':'highest'});}),_0xdb6fd9['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xe90438,_0x9c80e9)=>_0x9c80e9['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xe90438['substr'](0xb)}}),_0xdb6fd9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2add16,{writer:_0x9615dc})=>{let _0x3ce07d='suggestion:'+_0x2add16['getAttribute']('suggestion-type')+':'+_0x2add16['getAttribute']('id');return _0x2add16['getAttribute']('marker-count')&&(_0x3ce07d+=':'+_0x2add16['getAttribute']('marker-count')),_0x9615dc['createElement']('$marker',{'data-name':_0x3ce07d});}}),_0xdb6fd9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xdb6fd9['conversion']['for']('editingDowncast')['add'](_0x4104ad=>{_0x4104ad['on']('addMarker:suggestion:formatBlock',_0x410ed6(),{'priority':'high'});}),_0xdb6fd9['conversion']['for']('editingDowncast')['add'](_0x555133=>{_0x555133['on']('addMarker:suggestion:attribute',_0x410ed6({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xdb6fd9['conversion']['for']('editingDowncast')['add'](_0x414779=>{_0x414779['on']('removeMarker:suggestion:formatBlock',(_0x3e6d61,_0x40d426,_0x5a0c55)=>{const _0x559d98=_0x5a0c55['mapper']['markerNameToElements'](_0x40d426['markerName']);if(_0x559d98){for(const _0x5d0f63 of _0x559d98)_0x5d0f63['getCustomProperty']('addHighlight')||(_0x5a0c55['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5d0f63),_0x5a0c55['writer']['removeAttribute']('data-suggestion',_0x5d0f63),_0x5a0c55['mapper']['unbindElementFromMarkerName'](_0x5d0f63,_0x40d426['markerName']));}},{'priority':'high'});}),_0xdb6fd9['conversion']['for']('editingDowncast')['add'](_0x528a71=>{_0x528a71['on']('removeMarker:suggestion:attribute',(_0x192adb,_0x2e9e3d,_0x54f81d)=>{const _0x168b31=_0x54f81d['mapper']['markerNameToElements'](_0x2e9e3d['markerName']);if(!_0x168b31)return;const {id:_0x2bd88b}=this['_splitMarkerName'](_0x2e9e3d['markerName']),_0x5855cc=this['_suggestions']['get'](_0x2bd88b),_0x354049=this['_getAttributeKey'](_0x5855cc);if(this['_isBlockAttribute'](_0x354049)){for(const _0x35b6c5 of _0x168b31)_0x35b6c5['getCustomProperty']('addHighlight')||(_0x54f81d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x35b6c5),_0x54f81d['writer']['removeAttribute']('data-suggestion',_0x35b6c5),_0x54f81d['mapper']['unbindElementFromMarkerName'](_0x35b6c5,_0x2e9e3d['markerName']));}},{'priority':'high'});}),_0xdb6fd9['model']['document']['registerPostFixer'](_0xd9f5de=>{let _0x476b3d=!0x1;const _0x4ea963=Array['from'](_0xdb6fd9['model']['document']['differ']['getChangedMarkers']()),_0x3ac348=new Set();for(const {name:_0x5f5bdf,data:_0xe40085}of _0x4ea963){const {group:_0x5147ea,type:_0x57573c,subType:_0x49d04f,id:_0x5349ec}=this['_splitMarkerName'](_0x5f5bdf);if('suggestion'!==_0x5147ea)continue;const _0xd17830=this['_suggestions']['get'](_0x5349ec);if(null!=_0xe40085['newRange']){'formatInline'==_0x57573c&&(_0x476b3d=_0x476b3d||Et(_0xe40085['newRange'],_0x5f5bdf,_0xd9f5de,_0xdb6fd9['model']['schema']));const _0x25e13c='attribute'==_0x57573c&&this['_isBlockAttribute'](_0x49d04f['split']('|')[0x0]);if(_0xe40085['newRange']['isCollapsed']||'$graveyard'==_0xe40085['newRange']['root']['rootName']||'formatBlock'==_0x57573c&&!Ut(_0xe40085['newRange'])||_0x25e13c&&!Ut(_0xe40085['newRange'])||'deletion'==_0x57573c&&!(!Tt(_0x1e7a27=_0xe40085['newRange'])&&!function(_0x25bda8){return _0x25bda8['start']['parent']==_0x25bda8['end']['nodeBefore']&&_0x25bda8['start']['isAtEnd'];}(_0x1e7a27)))_0xd9f5de['removeMarker'](_0x5f5bdf),_0x476b3d=!0x0;else{if(!_0xd17830||!_0xd17830['isInContent'])continue;_0x3ac348['add'](_0xd17830);}}}var _0x1e7a27;return _0x3ac348['size']>0x0&&(_0x476b3d=!!this['_joinWithAdjacentSuggestions'](_0x3ac348)||_0x476b3d),_0x476b3d;}),_0xdb6fd9['model']['document']['registerPostFixer'](_0x573328=>{let _0x3ba207=!0x1;for(const _0x32e75f of _0xdb6fd9['model']['document']['differ']['getChanges']())if('insert'==_0x32e75f['type'])for(const _0x19071a of this['_suggestions']['values']()){if(_0x19071a['isMultiRange']||!_0x19071a['isInContent'])continue;const _0x9ece0a='formatBlock'==_0x19071a['type'],_0x209118=this['_getAttributeKey'](_0x19071a),_0x29e6a8=_0x209118&&this['_isBlockAttribute'](_0x209118);if(!_0x9ece0a&&!_0x29e6a8)continue;const _0x1aa758=_0x19071a['getFirstRange']();if(_0x1aa758['start']['parent']!=_0x1aa758['end']['parent']&&!_0x1aa758['end']['isAtEnd']){const _0x142d45=_0xdb6fd9['model']['createPositionAt'](_0x1aa758['start']['nodeAfter'],'end'),_0x3dd385=_0xdb6fd9['model']['createRange'](_0x1aa758['start'],_0x142d45);_0x573328['updateMarker'](_0x19071a['getFirstMarker'](),{'range':_0x3dd385}),_0x3ba207=!0x0;}}return _0x3ba207;}),_0xdb6fd9['model']['document']['registerPostFixer'](_0x2bc24f=>this['_processAttributeChanges'](_0x2bc24f)),_0xdb6fd9['model']['document']['registerPostFixer'](_0xd80696=>!_0xd80696['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xd80696)),_0xdb6fd9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xdb6fd9['model']['document']['on']('change:data',(_0x3497c0,_0xa18e8c)=>{if(!_0xa18e8c['isLocal']||_0xa18e8c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x543d27=_0xdb6fd9['model']['document']['differ']['getChanges']();if(0x0==_0x543d27['length'])return;const _0x4415bc=[],_0x1edd39=_0x543d27['filter'](_0x34f93e=>'attribute'==_0x34f93e['type']),_0x44c15b=_0x543d27['filter'](_0x1f35fa=>'insert'==_0x1f35fa['type']&&'$text'!=_0x1f35fa['name']);for(const _0x354503 of _0x1edd39)this['_isRegisteredAttribute'](_0x354503['attributeKey'])&&_0x4415bc['push']({'key':_0x354503['attributeKey'],'newValue':_0x354503['attributeNewValue'],'oldValue':_0x354503['attributeOldValue'],'range':Ot(_0x354503['range'],_0xdb6fd9['model'])});for(const _0x1334ea of _0x44c15b){if('rename'!=_0x1334ea['action']&&'refresh'!=_0x1334ea['action'])continue;const _0x5333cb=Gt(_0x1334ea['position']['nodeAfter'],_0xdb6fd9['model']),_0x1de215=_0x1334ea['before'];'rename'==_0x1334ea['action']&&_0x4415bc['push']({'key':m,'newValue':_0x1334ea['name'],'oldValue':_0x1de215['name'],'range':_0x5333cb});for(const [_0x54a0b2,_0x3cd31d]of _0x1de215['attributes']){if(!this['_isRegisteredAttribute'](_0x54a0b2))continue;const _0x1f9779=_0x1334ea['attributes']['get'](_0x54a0b2);_0x3cd31d!==_0x1f9779&&_0x4415bc['push']({'key':_0x54a0b2,'newValue':_0x1f9779,'oldValue':_0x3cd31d,'range':_0x5333cb});}for(const [_0x51266f,_0x361d82]of _0x1334ea['attributes'])this['_isRegisteredAttribute'](_0x51266f)&&(_0x1de215['attributes']['has'](_0x51266f)||_0x4415bc['push']({'key':_0x51266f,'newValue':_0x361d82,'oldValue':null,'range':_0x5333cb}));}0x0!=_0x4415bc['length']&&_0xdb6fd9['model']['enqueueChange'](_0xa18e8c,_0x3fbee6=>{const _0x4e8906=_0x7b6b31();for(const {range:_0xc73a27,key:_0x3a1639,oldValue:_0x446873,newValue:_0x303450}of _0x4415bc)this['markAttributeChange'](_0xc73a27,_0x3a1639,_0x446873,_0x303450,{'groupId':_0x4e8906});this['_reduceExistingSuggestions'](_0x3fbee6,_0x4415bc);});},{'priority':'lowest'}),_0xdb6fd9['model']['markers']['on']('update:suggestion',(_0x2b53b1,_0x131297,_0x2ab77a)=>{if(null==_0x2ab77a){const {id:_0x44f76b}=this['_splitMarkerName'](_0x131297['name']),_0x49afcd=this['_suggestions']['get'](_0x44f76b);_0x49afcd&&_0x49afcd['addMarkerName'](_0x131297['name']);}}),_0xdb6fd9['model']['document']['on']('change:data',()=>{const _0x53ccc2=Array['from'](_0xdb6fd9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2600ca=>'suggestion'===this['_splitMarkerName'](_0x2600ca['name'])['group']);if(0x0===_0x53ccc2['length'])return;_0x53ccc2['sort']((_0x52066f,_0x391254)=>{const _0x180e75=_0x52066f['data']['oldRange'],_0x5c01f8=_0x391254['data']['oldRange'];return null===_0x180e75&&null===_0x5c01f8?0x0:null===_0x180e75&&null!==_0x5c01f8?-0x1:null!==_0x180e75&&null===_0x5c01f8?0x1:_0x180e75['start']['isBefore'](_0x5c01f8['start'])?-0x1:0x1;});const _0x28e867=new Set(),_0x17146c=new Set();for(const {name:_0x5b5329,data:_0x3f3596}of _0x53ccc2){const {id:_0x389d64}=this['_splitMarkerName'](_0x5b5329);if(null===_0x3f3596['oldRange']){const _0xc30002=this['_handleNewSuggestionMarker'](_0x5b5329);_0x17146c['add'](_0xc30002);}else{const _0x169707=this['_suggestions']['get'](_0x389d64);null!==_0x3f3596['newRange']||_0x169707['isInContent']?(_0x28e867['add'](_0x169707['head']),_0x17146c['add'](_0x169707)):this['_removeSuggestion'](_0x169707);}}_0x17146c['size']>0x0&&this['_refreshSuggestionsChain'](_0x17146c);for(const _0xa36208 of _0x28e867)this['fire']('suggestionChanged',_0xa36208);}),_0xdb6fd9['model']['on']('applyOperation',(_0x346ef5,_0x5a3451)=>{const _0x34666f=_0x5a3451[0x0];if(!this['_suggestions']['size'])return;if(!_0x34666f['isDocumentOperation'])return;if(_0x34666f['batch']['isUndo']||!_0x34666f['batch']['isLocal'])return;let _0xf8592d,_0x26ab69;switch(_0x34666f['type']){case'insert':_0xf8592d=_0xdb6fd9['model']['createPositionAt'](_0x34666f['position']),_0x26ab69=_0xf8592d['getShiftedBy'](_0x34666f['howMany']);break;case'split':_0xf8592d=_0xdb6fd9['model']['createPositionAt'](_0x34666f['splitPosition']),_0x26ab69=_0xdb6fd9['model']['createPositionAt'](_0x34666f['moveTargetPosition']);break;case'move':_0xf8592d=_0xdb6fd9['model']['createPositionAt'](_0x34666f['targetPosition']),_0x26ab69=_0xf8592d['getShiftedBy'](_0x34666f['howMany']);break;default:return;}const _0x47551b=_0xdb6fd9['model']['createRange'](_0xf8592d,_0x26ab69);_0xdb6fd9['model']['change'](()=>{for(const {suggestion:_0x4301f2,meta:_0x34c26d}of this['_findSuggestions'](_0x47551b)){if(_0x4301f2['isMultiRange'])continue;if('formatInline'==_0x4301f2['type'])continue;const _0x243878=this['_getAttributeKey'](_0x4301f2);if(_0x243878&&this['_isBlockAttribute'](_0x243878)&&'split'!=_0x34666f['type'])continue;const _0x12caf6=_0x4301f2['data']&&_0x4301f2['data']['multipleBlocks'];('formatBlock'!=_0x4301f2['type']||'split'==_0x34666f['type']&&!_0x12caf6)&&(_0x34c26d['containsRangeInObject']||'insertion'==_0x4301f2['type']&&_0x34c26d['isOwn']||_0x4301f2['getFirstRange']()['containsRange'](_0x47551b)&&this['_breakSuggestionMarker'](_0x4301f2,_0xf8592d,_0x26ab69));}});},{'priority':'lowest'}),_0xdb6fd9['model']['on']('deleteContent',(_0x1bc072,_0x23013d)=>{const _0x2968d6=_0x23013d[0x0],_0x75be87=_0x23013d[0x1];if(_0x75be87&&_0x75be87['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2968d6['isCollapsed'])return;const _0x562e3d=_0xdb6fd9['model']['schema'],{start:_0x4736b9,end:_0x2b1919}=_0x2968d6['getFirstRange'](),_0x24f5c1=_0x4736b9['nodeAfter']&&_0x562e3d['isLimit'](_0x4736b9['nodeAfter'])?null:_0x562e3d['getNearestSelectionRange'](_0x4736b9,'forward'),_0x10cda9=_0x2b1919['nodeBefore']&&_0x562e3d['isLimit'](_0x2b1919['nodeBefore'])?null:_0x562e3d['getNearestSelectionRange'](_0x2b1919,'backward'),_0x28d8e2=_0xdb6fd9['model']['createRange'](_0x24f5c1?_0x24f5c1['start']:_0x4736b9,_0x10cda9?_0x10cda9['end']:_0x2b1919);_0xdb6fd9['model']['change'](_0x577c66=>{this['markDeletion'](_0x28d8e2);const _0x361e69=_0xdb6fd9['model']['schema']['getNearestSelectionRange'](_0x28d8e2['start']);_0x2968d6['is']('documentSelection')?_0x577c66['setSelection'](_0x361e69):_0x2968d6['setTo'](_0x361e69);}),_0x1bc072['stop']();},{'priority':_0x2c04bb['normal']+0xa}),_0xdb6fd9['model']['on']('insertContent',(_0x53ff60,_0x114c10)=>{const _0x39b1b=_0x114c10[_0x114c10['length']-0x1];_0x39b1b&&_0x39b1b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xdb6fd9['model']['change'](()=>{let _0x12c384=_0xdb6fd9['model']['insertContent'](_0x114c10[0x0],_0x114c10[0x1],_0x114c10[0x2],{'forceDefaultExecution':!0x0});if(!_0x12c384)return;_0x53ff60['return']=_0x12c384['clone']();const _0x4d9565=_0x12c384['end']['nodeBefore'],_0x4df755=_0xdb6fd9['model']['schema'];_0x4d9565&&_0x4df755['isBlock'](_0x4d9565)&&!_0x4df755['isObject'](_0x4d9565)&&(_0x12c384=_0xdb6fd9['model']['createRange'](_0x12c384['start'],_0xdb6fd9['model']['createPositionAt'](_0x4d9565,'end'))),this['markInsertion'](_0x12c384);}),_0x53ff60['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x11d8e9=new $(_0xdb6fd9,this['_suggestions']);_0xdb6fd9['commands']['add']('acceptSuggestion',_0x11d8e9),this['enableCommand']('acceptSuggestion');const _0x416615=new B(_0xdb6fd9,this['_suggestions']);_0xdb6fd9['commands']['add']('discardSuggestion',_0x416615),this['enableCommand']('discardSuggestion'),_0xdb6fd9['commands']['add']('acceptAllSuggestions',new x(_0xdb6fd9,_0x11d8e9,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xdb6fd9['commands']['add']('discardAllSuggestions',new x(_0xdb6fd9,_0x416615,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xdb6fd9['commands']['add']('acceptSelectedSuggestions',new R(_0xdb6fd9,_0x11d8e9,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xdb6fd9['commands']['add']('discardSelectedSuggestions',new R(_0xdb6fd9,_0x416615,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xfbb4b6=_0xdb6fd9['plugins']['get']('CommentsRepository');this['listenTo'](_0xfbb4b6,'addComment',(_0x59ff2f,{threadId:_0x100639})=>{const _0x3a743c=this['_suggestions']['get'](_0x100639);_0x3a743c&&_0x3a743c['commentThread']&&0x1===_0x3a743c['commentThread']['length']&&this['_updateSuggestionData'](_0x100639,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xfbb4b6,'removeComment',(_0x148cba,{threadId:_0x38c0bd})=>{const _0x163265=this['_suggestions']['get'](_0x38c0bd);_0x163265&&_0x163265['commentThread']&&!_0x163265['commentThread']['length']&&this['_updateSuggestionData'](_0x38c0bd,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x184730){if(this['_adapter'])throw new _0x109ba3('track-changes-adapter-already-set',this);this['_adapter']=_0x184730;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3f292d=!0x1,toJSON:_0x19ba00=!0x1}={}){const _0xb32565=[];for(const _0x3edb3d of this['_suggestions']['values']())_0x3f292d&&!_0x3edb3d['isInContent']||_0xb32565['push'](_0x3edb3d);return _0x19ba00?_0xb32565['map'](_0x285599=>_0x285599['toJSON']()):_0xb32565;}['getSuggestion'](_0x5eeafa){const _0x48fa69=this['_suggestions']['get'](_0x5eeafa);if(!_0x48fa69)throw new _0x109ba3('track-changes-suggestion-not-found',this);return _0x48fa69;}['hasSuggestion'](_0xa447a1){return this['_suggestions']['has'](_0xa447a1);}['addSuggestionData'](_0x5de009){const {authorId:_0x3cebba,id:_0x2f2ff2,attributes:_0x2efccf}=_0x5de009,[_0x3b4224,_0x1db248]=_0x5de009['type']['split'](':'),_0x33a8e2=this['_suggestions']['get'](_0x2f2ff2)||this['_createSuggestion'](_0x3b4224,_0x1db248,_0x2f2ff2,_0x3cebba,_0x2efccf);if(this['_addThreadToSuggestion'](_0x33a8e2),this['_checkSuggestionCorrectness'](_0x33a8e2,_0x3b4224,_0x1db248||null,_0x3cebba),_0x33a8e2['createdAt']=_0x5de009['createdAt'],_0x33a8e2['_isDataLoaded']=!0x0,_0x2efccf&&_0x2efccf['@external']){const _0xe36777=_0x2efccf['@external'],_0x24fdb4=this['_getExternalAuthor'](_0xe36777['authorName']);_0x33a8e2['authoredAt']=_0xe36777['createdAt'],_0x33a8e2['author']=_0x24fdb4,_0x33a8e2['isExternal']=!0x0;}else _0x33a8e2['authoredAt']=_0x5de009['createdAt'];switch(_0x5de009['data']&&(_0x33a8e2['data']=_0x5de009['data']),_0x5de009['attributes']&&(_0x33a8e2['attributes']=_0x5de009['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x33a8e2['_saved']=!0x0),this['_suggestionState']['get'](_0x33a8e2)){case'notReady':this['_suggestionState']['set'](_0x33a8e2,'dataReady');break;case'markerReady':_0x33a8e2['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x33a8e2])),this['_refreshSuggestionsChain'](new Set([_0x33a8e2])),this['_suggestionState']['set'](_0x33a8e2,'ready'),this['fire']('suggestionLoaded',_0x33a8e2)):this['_suggestionState']['set'](_0x33a8e2,'removed');}return _0x33a8e2;}['acceptSuggestion'](_0x45d2e0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x54c9fa of _0x45d2e0['getAllAdjacentSuggestions']())_0x54c9fa['accept']();});});}['discardSuggestion'](_0xaf2555){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3d1f20 of _0xaf2555['getAllAdjacentSuggestions']())_0x3d1f20['discard']();});});}['enableCommand'](_0x3dde4e,_0x10e7d2){const _0x17c91c=this['editor']['commands']['get'](_0x3dde4e);if(!_0x17c91c)throw new _0x109ba3('track-changes-command-not-found',this,{'commandName':_0x3dde4e});if(this['_enabledCommands']['has'](_0x17c91c))throw new _0x109ba3('track-changes-enable-command-twice',this,{'commandName':_0x3dde4e});this['_enabledCommands']['add'](_0x17c91c),_0x10e7d2&&_0x17c91c['on']('execute',(_0x485acb,_0x3baceb)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3baceb['length']>0x0&&_0x3baceb[_0x3baceb['length']-0x1]&&_0x3baceb[_0x3baceb['length']-0x1]['forceDefaultExecution']?_0x3baceb['pop']():(_0x485acb['return']=_0x10e7d2((..._0x480da2)=>_0x17c91c['execute'](..._0x480da2,{'forceDefaultExecution':!0x0}),..._0x3baceb),_0x485acb['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x8c1c25){let _0x4d609a,_0x37eb87;const _0x2f5be1=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4d609a=_0x8c1c25();}catch(_0x16418e){_0x37eb87=_0x16418e;}return _0x2f5be1||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x37eb87&&_0x109ba3['rethrowUnexpectedError'](_0x37eb87,this),_0x4d609a;}['markInsertion'](_0x56907e,_0x1eb000=null,_0x2e8e7d={}){if(_0x56907e['isCollapsed'])return null;const _0x181776=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x481d26,meta:_0x580924}of this['_findSuggestions'](_0x56907e,'insertion'))if(_0x580924['isOwn']){if(!_0x580924['isNextTo']){if(_0x580924['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x481d26,_0x2e8e7d))continue;return _0x481d26;}if(Lt(_0x481d26,_0x2e8e7d))return _0x481d26;this['_breakSuggestionMarker'](_0x481d26,_0x56907e['start'],_0x56907e['end']);break;}if(_0x1eb000==_0x481d26['subType']&&Lt(_0x481d26,_0x2e8e7d)){const _0x4835e3=_0x481d26['getFirstRange']();return _0x4835e3['start']['isEqual'](_0x56907e['end'])?this['_setSuggestionRange'](_0x481d26,this['_model']['createRange'](_0x56907e['start'],_0x4835e3['end'])):this['_setSuggestionRange'](_0x481d26,this['_model']['createRange'](_0x4835e3['start'],_0x56907e['end'])),_0x481d26;}}const _0x11c629=_0x7b6b31(),_0x526a34=_0x181776['id'],_0x49e2e9=_0x1eb000?'insertion:'+_0x1eb000:'insertion',_0xdd8a9f=this['_setSuggestionData']({'id':_0x11c629,'type':_0x49e2e9,'createdAt':new Date(),'authorId':_0x526a34,'attributes':_0x2e8e7d});return this['_addSuggestionMarker'](_0x49e2e9,_0x11c629,_0x526a34,_0x56907e),_0xdd8a9f;}['markMultiRangeInsertion'](_0x491ed8,_0x2dfadb='multi',_0x24f0de={}){const _0xe819a=this['editor']['plugins']['get']('Users')['me'],_0x4d3786=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2dfadb,'join');for(const _0x2369f4 of this['getSuggestions']())if(_0x2369f4['author']['id']==_0xe819a['id']&&'insertion'==_0x2369f4['type']&&_0x2369f4['subType']==_0x2dfadb&&Lt(_0x2369f4,_0x24f0de)&&(_0x4d3786(_0x2369f4['getRanges'](),_0x491ed8)||_0x4d3786(_0x491ed8,_0x2369f4['getRanges']()))){for(const _0x2b7f59 of _0x491ed8)_0x2369f4['addRange'](_0x2b7f59);return _0x2369f4;}for(const {suggestion:_0x4ab558,meta:_0x1164a3}of this['_findSuggestions'](_0x491ed8,'insertion')){if(!_0x1164a3['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1164a3['containsRangeInObject'])continue;if(!Lt(_0x4ab558,_0x24f0de))continue;let _0x3d46b7=!0x0;for(const _0x391908 of _0x4ab558['getRanges']())for(const _0x111108 of _0x491ed8)if(!_0x391908['containsRange'](_0x111108)){_0x3d46b7=!0x1;break;}if(_0x3d46b7)return _0x4ab558;}const _0x4654ba=_0x7b6b31(),_0x31fecf=_0xe819a['id'],_0x423be4='insertion:'+_0x2dfadb,_0x539948=this['_setSuggestionData']({'id':_0x4654ba,'type':_0x423be4,'createdAt':new Date(),'authorId':_0x31fecf,'attributes':_0x24f0de});for(const _0x1cb24d of _0x491ed8)this['_addSuggestionMarker'](_0x423be4,_0x4654ba,_0x31fecf,_0x1cb24d,u['getMultiRangeId']());return _0x539948;}['markInlineFormat'](_0x443ff4,_0x4a8152,_0x4b182a=null,_0x3e3dec={}){if(_0x4b182a=_0x4b182a||Vt(_0x4a8152),_0x443ff4['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2a7736=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b182a,'accept');return this['forceDefaultExecution'](()=>_0x2a7736([_0x443ff4],_0x4a8152,_0x3e3dec)),null;}const _0x5ee8fb=this['editor']['plugins']['get']('Users')['me'],_0x1850a8=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x58633a,meta:_0x5c3074}of this['_findSuggestions'](_0x443ff4,'insertion'))_0x5c3074['isOwn']&&!_0x5c3074['isInsideObject']&&_0x1850a8['push'](..._0x58633a['getRanges']());}const _0x425690=function(_0x1ada3c,_0x32316d){const _0x7cab51=[];for(const _0x39f8dd of _0x32316d){const _0x3d47ae=_0x1ada3c['getIntersection'](_0x39f8dd);_0x3d47ae&&_0x7cab51['push'](_0x3d47ae);}return _0x7cab51;}(_0x443ff4,_0x1850a8),_0x40f213=function(_0x4808c0,_0x1147f5){const _0xa69896=[_0x4808c0];for(const _0x4de841 of _0x1147f5){let _0x583574=0x0;for(;_0x583574<_0xa69896['length'];){const _0x2752d2=_0xa69896[_0x583574]['getDifference'](_0x4de841);_0xa69896['splice'](_0x583574,0x1,..._0x2752d2),_0x583574+=_0x2752d2['length'];}}return _0xa69896;}(_0x443ff4,_0x1850a8);_0x425690['length']&&this['_model']['change'](()=>{for(const _0x2fa5bd of _0x425690){const _0x4c00d6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b182a,'accept');this['forceDefaultExecution'](()=>_0x4c00d6([_0x2fa5bd],_0x4a8152,_0x3e3dec));}});for(const _0xa71aeb of _0x40f213){let _0x3ff58a=null,_0x4f50fb=_0xa71aeb['start'],_0x23689b=_0xa71aeb['end'];for(const {suggestion:_0x35d678,meta:_0x48000f}of this['_findSuggestions'](_0xa71aeb,'formatInline')){if(!_0x48000f['isOwn'])continue;if(_0x35d678['subType']!=_0x4b182a)continue;if(!Lt(_0x35d678,_0x3e3dec))continue;const _0x5a3ac7=_0x35d678['getFirstRange']();if(_0x5a3ac7['containsRange'](_0xa71aeb,!0x0))return null;_0x4f50fb=_0x4f50fb['isBefore'](_0x5a3ac7['start'])?_0x4f50fb:_0x5a3ac7['start'],_0x23689b=_0x23689b['isAfter'](_0x5a3ac7['end'])?_0x23689b:_0x5a3ac7['end'],_0x3ff58a?_0x5a3ac7['start']['isBefore'](_0x3ff58a['getFirstRange']()['start'])?(_0x3ff58a['removeMarkers'](),_0x3ff58a=_0x35d678):_0x35d678['removeMarkers']():_0x3ff58a=_0x35d678;}const _0x4979d5=this['_model']['createRange'](_0x4f50fb,_0x23689b);if(_0x3ff58a)this['_setSuggestionRange'](_0x3ff58a,_0x4979d5);else{const _0x291a08=_0x7b6b31(),_0x5e7166=_0x5ee8fb['id'];this['_setSuggestionData']({'id':_0x291a08,'type':'formatInline:'+_0x4b182a,'data':_0x4a8152,'createdAt':new Date(),'authorId':_0x5e7166,'attributes':_0x3e3dec}),this['_addSuggestionMarker']('formatInline:'+_0x4b182a,_0x291a08,_0x5e7166,_0x4979d5);}}return null;}['markBlockFormat'](_0x4b4c87,_0x12963f,_0x26d6ed=[],_0x1ffa67=null,_0x23bd80={}){_0x12963f['formatGroupId']||(_0x12963f['formatGroupId']=_0x12963f['commandName']),_0x12963f['multipleBlocks']=_0x4b4c87['is']('range'),_0x1ffa67=_0x1ffa67||Vt(_0x12963f);const _0x2f3719=_0x26d6ed['map'](_0x32f104=>Gt(_0x32f104,this['_model'])),_0x75aac9=_0x4b4c87['is']('range')?_0x4b4c87:Gt(_0x4b4c87,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5d8c86=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ffa67,'accept');return this['forceDefaultExecution'](()=>_0x5d8c86([_0x75aac9],_0x12963f,_0x23bd80)),null;}_0x2f3719['push'](_0x75aac9);let _0x57a8a3=!0x0;for(const _0x2aaa50 of _0x2f3719)if(!this['_rangeIsInLocalUserInsertion'](_0x2aaa50)){_0x57a8a3=!0x1;break;}if(_0x57a8a3&&'always'!==this['_trackFormatChanges']){const _0xf61a97=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ffa67,'accept');return this['forceDefaultExecution'](()=>_0xf61a97([_0x75aac9],_0x12963f,_0x23bd80)),null;}let _0x155e8b=null,_0xbb3b32=_0x75aac9['start'],_0x56660c=_0x75aac9['end'];for(const {suggestion:_0x5bda40,meta:_0x473d9d}of this['_findSuggestions'](_0x75aac9,'formatBlock')){if(!_0x473d9d['isOwn'])continue;if(_0x473d9d['isNextTo']||_0x473d9d['containsRangeInObject']||_0x473d9d['isInsideObject'])continue;if(_0x5bda40['data']['formatGroupId']!=_0x12963f['formatGroupId'])continue;if(!Lt(_0x5bda40,_0x23bd80))continue;const _0x50b854=_0x5bda40['getFirstRange']();if(_0x5bda40['subType']==_0x1ffa67){if(_0x50b854['containsRange'](_0x75aac9,!0x0))return null;_0xbb3b32=_0xbb3b32['isBefore'](_0x50b854['start'])?_0xbb3b32:_0x50b854['start'],_0x56660c=_0x56660c['isAfter'](_0x50b854['end'])?_0x56660c:_0x50b854['end'],_0x155e8b?_0x50b854['start']['isBefore'](_0x155e8b['getFirstRange']()['start'])?(_0x155e8b['removeMarkers'](),_0x155e8b=_0x5bda40):_0x5bda40['removeMarkers']():_0x155e8b=_0x5bda40;}else{const _0x3fb384=_0x75aac9['getIntersection'](_0x50b854);this['_cutOutSuggestionMarker'](_0x5bda40,_0x3fb384);}}const _0x18f21d=this['editor']['plugins']['get']('Users')['me'],_0xa25b2f=_0x7b6b31(),_0x4d5848=_0x18f21d['id'];if(_0x155e8b)return this['_setSuggestionRange'](_0x155e8b,this['_model']['createRange'](_0xbb3b32,_0x56660c)),_0x155e8b;{const _0x22a374=this['_setSuggestionData']({'id':_0xa25b2f,'type':'formatBlock:'+_0x1ffa67,'data':_0x12963f,'createdAt':new Date(),'authorId':_0x4d5848,'attributes':_0x23bd80});return this['_addSuggestionMarker']('formatBlock:'+_0x1ffa67,_0xa25b2f,_0x4d5848,this['_model']['createRange'](_0xbb3b32,_0x56660c)),_0x22a374;}}['markMultiRangeBlockFormat'](_0x4c581b,_0x19049f,_0xb88abb=[],_0x2ae6e2=null,_0x28964f={}){_0x19049f['formatGroupId']||(_0x19049f['formatGroupId']=_0x19049f['commandName']);const _0x115cfb=_0x4c581b[0x0];_0x19049f['multipleBlocks']=_0x115cfb['is']('range'),_0x2ae6e2=_0x2ae6e2||Vt(_0x19049f);const _0x1e90d0=_0xb88abb['map'](_0x4fa629=>Gt(_0x4fa629,this['_model'])),_0x17097e=_0x115cfb['is']('range')?_0x4c581b:_0x4c581b['map'](_0x540255=>Gt(_0x540255,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2cf90a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ae6e2,'accept');return this['forceDefaultExecution'](()=>_0x2cf90a(_0x17097e,_0x19049f,_0x28964f)),null;}_0x1e90d0['push'](..._0x17097e);let _0x4ad991=!0x0;for(const _0xaf3c6 of _0x1e90d0)if(!this['_rangeIsInLocalUserInsertion'](_0xaf3c6)){_0x4ad991=!0x1;break;}if(_0x4ad991&&'always'!==this['_trackFormatChanges']){const _0x49e931=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ae6e2,'accept');return this['forceDefaultExecution'](()=>_0x49e931(_0x17097e,_0x19049f,_0x28964f)),null;}const _0x599139=this['editor']['plugins']['get']('Users')['me'];for(const _0x3bc103 of this['getSuggestions']()){if(_0x3bc103['author']['id']!=_0x599139['id'])continue;if('formatBlock'!=_0x3bc103['type']||_0x3bc103['data']['formatGroupId']!=_0x19049f['formatGroupId'])continue;if(!Lt(_0x3bc103,_0x28964f))continue;const _0x27d7a7=_0x3bc103['subType']==_0x2ae6e2;for(let _0x1100a7=0x0;_0x1100a7<_0x17097e['length'];_0x1100a7++){const _0x1e6467=_0x17097e[_0x1100a7];for(const _0x1249d8 of _0x3bc103['getMarkers']()){const _0x3793e1=_0x1249d8['getRange']();if(_0x1e6467['isEqual'](_0x3793e1)){_0x27d7a7?(_0x17097e['splice'](_0x1100a7,0x1),_0x1100a7--):_0x3bc103['removeMarker'](_0x1249d8['name']);break;}}}}if(0x0==_0x17097e['length'])return null;const _0x4a2162=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ae6e2,'join');for(const _0x17d1af of this['getSuggestions']())if(_0x17d1af['author']['id']==_0x599139['id']&&'formatBlock'==_0x17d1af['type']&&_0x17d1af['data']['formatGroupId']==_0x19049f['formatGroupId']&&_0x17d1af['subType']==_0x2ae6e2&&Lt(_0x17d1af,_0x28964f)&&(_0x4a2162(_0x17d1af['getRanges'](),_0x17097e)||_0x4a2162(_0x17097e,_0x17d1af['getRanges']()))){for(const _0x2ee811 of _0x17097e)_0x17d1af['addRange'](_0x2ee811);return _0x17d1af;}const _0x3b1e7b=_0x7b6b31(),_0x59c10c=_0x599139['id'],_0x10abc3='formatBlock:'+_0x2ae6e2,_0x2aa576=this['_setSuggestionData']({'id':_0x3b1e7b,'type':_0x10abc3,'data':_0x19049f,'createdAt':new Date(),'authorId':_0x59c10c,'attributes':_0x28964f});for(const _0x110abf of _0x17097e)this['_addSuggestionMarker'](_0x10abc3,_0x3b1e7b,_0x59c10c,_0x110abf,u['getMultiRangeId']());return _0x2aa576;}['markDeletion'](_0x284b0b,_0x3be26e=null,_0x115837={}){if(_0x284b0b['isCollapsed'])return null;const _0x1f27c4=this['editor']['plugins']['get']('Users')['me'],_0x3e807a=new _0x45d820(_0x284b0b['start'],_0x284b0b['end']);for(const {suggestion:_0x4bc06d,meta:_0x208a89}of this['_findSuggestions'](_0x3e807a,'insertion'))if(_0x208a89['isOwn']&&!_0x208a89['isNextTo']){if(_0x4bc06d['isMultiRange']){const _0x396e12=_0x4bc06d['getRanges']()['filter'](_0x5392d2=>'$graveyard'!=_0x5392d2['root']['rootName']);_0x396e12['every'](_0x967395=>_0x3e807a['containsRange'](_0x967395,!0x0))&&_0x4bc06d['discard']();if(_0x396e12['some'](_0xda9ba8=>_0xda9ba8['containsRange'](_0x3e807a,!0x0))){const _0x225b81=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3be26e,'accept');return this['forceDefaultExecution'](()=>_0x225b81([_0x3e807a],null,_0x115837)),null;}}else{const _0xf87d15=_0x3e807a['getIntersection'](_0x4bc06d['getFirstRange']());null!==_0xf87d15&&_0x4bc06d['_onDiscard']([_0xf87d15],null,_0x115837);}}if(_0x3e807a['detach'](),_0x3e807a['isCollapsed']||'$graveyard'==_0x3e807a['root']['rootName'])return null;let _0x2c89d6=null,_0x3e731f=_0x3e807a['start'],_0x3c3dd8=_0x3e807a['end'];const _0xd73db3=this['_findSuggestions'](_0x3e807a,'deletion');for(const {suggestion:_0x269925,meta:_0x14d2df}of _0xd73db3){const _0x1b565a=this['_model']['createRange'](_0x3e731f,_0x3c3dd8);if(_0x14d2df['isOwn']&&(this['_mergeNestedSuggestions']||!_0x14d2df['containsRangeInObject']&&!_0x14d2df['isInsideObject'])){if(_0x269925['isMultiRange']){if(!Lt(_0x269925,_0x115837))continue;let _0x565068=!0x0;for(const _0x4d2580 of _0x269925['getRanges']()){if(_0x4d2580['containsRange'](_0x1b565a,!0x0))return _0x269925;_0x1b565a['containsRange'](_0x4d2580)||(_0x565068=!0x1);}_0x565068&&_0x269925['discard']();}else{const _0x1198fc=_0x269925['getFirstRange']();if(_0x1198fc['containsRange'](_0x1b565a,!0x0))return _0x269925;if(!Lt(_0x269925,_0x115837)){_0x1b565a['containsRange'](_0x1198fc)?_0x269925['removeMarkers']():_0x1198fc['containsPosition'](_0x3e731f)?_0x3e731f=_0x1198fc['end']:_0x1198fc['containsPosition'](_0x3c3dd8)&&(_0x3c3dd8=_0x1198fc['start']);continue;}_0x3e731f=_0x3e731f['isBefore'](_0x1198fc['start'])?_0x3e731f:_0x1198fc['start'],_0x3c3dd8=_0x3c3dd8['isAfter'](_0x1198fc['end'])?_0x3c3dd8:_0x1198fc['end'],_0x115837=Object['assign']({},_0x269925['attributes']),_0x2c89d6?_0x1198fc['start']['isBefore'](_0x2c89d6['getFirstRange']()['start'])?(_0x2c89d6['removeMarkers'](),_0x2c89d6=_0x269925):_0x269925['removeMarkers']():_0x2c89d6=_0x269925;}}}if(_0x2c89d6)return this['_setSuggestionRange'](_0x2c89d6,this['_model']['createRange'](_0x3e731f,_0x3c3dd8)),_0x2c89d6;{const _0x12e011=_0x7b6b31(),_0x2f4c52=this['_model']['createRange'](_0x3e731f,_0x3c3dd8),_0x11db26=_0x1f27c4['id'],_0x5a227f=_0x3be26e?'deletion:'+_0x3be26e:'deletion',_0x3f5d35=this['_setSuggestionData']({'id':_0x12e011,'type':_0x5a227f,'createdAt':new Date(),'authorId':_0x11db26,'attributes':_0x115837});return this['_addSuggestionMarker'](_0x5a227f,_0x12e011,_0x11db26,_0x2f4c52),_0x3f5d35;}}['markMultiRangeDeletion'](_0x40dbc2,_0x249e1d='multi',_0x25fa67={}){const _0x3049f1=this['editor']['plugins']['get']('Users')['me'],_0x450ad1=_0x40dbc2['map'](_0x4c582b=>new _0x45d820(_0x4c582b['start'],_0x4c582b['end'])),_0x541000=new Set();for(const {suggestion:_0x22b179,meta:_0xb9f209}of this['_findSuggestions'](_0x450ad1,'insertion'))_0xb9f209['isOwn']&&!_0xb9f209['isNextTo']&&_0x541000['add'](_0x22b179);for(const _0x103ad8 of _0x541000)if(_0x103ad8['isMultiRange']){const _0x1df1f8=_0x103ad8['getRanges']();(!_0x103ad8['attributes']||!_0x103ad8['attributes']['skipNestingCheck'])&&(_0x1df1f8['every'](_0x23ffd7=>_0x450ad1['some'](_0x238647=>_0x238647['containsRange'](_0x23ffd7,!0x0)))&&_0x103ad8['discard']());if(_0x450ad1['every'](_0x5ddfb4=>_0x1df1f8['some'](_0x2ba7e7=>_0x2ba7e7['containsRange'](_0x5ddfb4,!0x0)))){const _0x1fee55=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x249e1d,'accept');return this['forceDefaultExecution'](()=>_0x1fee55(_0x40dbc2,null,_0x25fa67)),null;}}else{const _0x108c02=_0x103ad8['getFirstRange']();_0x450ad1['some'](_0x5d8a0b=>_0x5d8a0b['containsRange'](_0x108c02,!0x0))&&_0x103ad8['discard']();if(_0x450ad1['every'](_0x40cc1c=>_0x108c02['containsRange'](_0x40cc1c,!0x0))){const _0x36c0c0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x249e1d,'accept');return this['forceDefaultExecution'](()=>_0x36c0c0(_0x450ad1,null,_0x25fa67)),null;}}const _0x52a61e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x249e1d,'join');let _0x2b21ae=null;for(const _0x213a6d of this['getSuggestions']())if(_0x213a6d['author']['id']==_0x3049f1['id']&&_0x213a6d['isInContent']&&'deletion'==_0x213a6d['type']&&_0x213a6d['subType']==_0x249e1d&&Lt(_0x213a6d,_0x25fa67)&&(_0x52a61e(_0x213a6d['getRanges'](),_0x450ad1)||_0x52a61e(_0x450ad1,_0x213a6d['getRanges']()))){if(_0x2b21ae){if(_0x213a6d['commentThread']&&_0x213a6d['commentThread']['length'])continue;for(const _0x454d19 of _0x213a6d['getRanges']())_0x2b21ae['isIntersectingWithRange'](_0x454d19)||_0x2b21ae['addRange'](_0x454d19);_0x213a6d['removeMarkers']();}else{_0x2b21ae=_0x213a6d;for(const _0x47c572 of _0x450ad1)_0x213a6d['isIntersectingWithRange'](_0x47c572)||_0x213a6d['addRange'](_0x47c572);}}if(_0x2b21ae)return _0x2b21ae;_0x541000['clear']();for(const {suggestion:_0x20c0e5,meta:_0x49965b}of this['_findSuggestions'](_0x450ad1,'deletion'))_0x49965b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x49965b['containsRangeInObject']&&!_0x49965b['isInsideObject'])&&Lt(_0x20c0e5,_0x25fa67)&&_0x541000['add'](_0x20c0e5);for(const _0x18123b of _0x541000){const _0x19e1bb=_0x18123b['getRanges']();if(!_0x25fa67||!_0x25fa67['skipNestingCheck']){if(_0x450ad1['every'](_0x29e609=>_0x19e1bb['some'](_0x1adefa=>_0x1adefa['containsRange'](_0x29e609,!0x0))))return _0x18123b;}(!_0x18123b['attributes']||!_0x18123b['attributes']['skipNestingCheck'])&&(_0x19e1bb['every'](_0x2d693c=>_0x450ad1['some'](_0x427242=>_0x427242['containsRange'](_0x2d693c,!0x0)))&&_0x18123b['discard']());}const _0x1e909a=_0x7b6b31(),_0x571263=_0x3049f1['id'],_0xe579be='deletion:'+_0x249e1d,_0xd31c54=this['_setSuggestionData']({'id':_0x1e909a,'type':_0xe579be,'createdAt':new Date(),'authorId':_0x571263,'attributes':_0x25fa67});for(const _0x21aeb6 of _0x450ad1)_0x21aeb6['detach'](),_0x21aeb6['isCollapsed']||'$graveyard'==_0x21aeb6['root']['rootName']||this['_addSuggestionMarker'](_0xe579be,_0x1e909a,_0x571263,_0x21aeb6,u['getMultiRangeId']());return _0xd31c54;}['markAttributeChange'](_0x48ccd4,_0x48dc93,_0x1d2e0b,_0x25b2cb,_0x39bef4){if(_0x48ccd4['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x445f37=this['editor']['plugins']['get']('Users')['me']['id'],_0x175c5c=Array['from'](this['_suggestions']['values']())['filter'](_0x4d95fe=>'attribute'==_0x4d95fe['type']&&_0x4d95fe['data']['key']==_0x48dc93&&_0x4d95fe['isIntersectingWithRange'](_0x48ccd4));if('default'===this['_trackFormatChanges']){const _0x25a99a=this['_findSuggestions'](_0x48ccd4,'insertion')['filter'](({meta:_0x5d8395})=>_0x5d8395['isOwn']&&!_0x5d8395['isInsideObject']&&!_0x5d8395['isNextTo'])['map'](({suggestion:_0x5c1c50})=>_0x5c1c50);_0x175c5c['unshift'](..._0x25a99a);}const _0x25624f=new Map([[_0x48ccd4,_0x1d2e0b]]);for(const _0x1a90a9 of _0x175c5c){const _0x13178e='attribute'==_0x1a90a9['type']?_0x1a90a9['data']['oldValue']:void 0x0,_0x2b9807=_0x1a90a9['getFirstRange'](),_0x226fb7=Array['from'](_0x25624f['keys']())['find'](_0x2b02cf=>_0x2b02cf['isIntersecting'](_0x2b9807));if(!_0x226fb7)continue;const _0x14f066=_0x226fb7['getDifference'](_0x2b9807);this['_isBlockAttribute'](_0x48dc93)&&'insertion'==_0x1a90a9['type']&&0x0!=_0x14f066['length']||(_0x25624f['delete'](_0x226fb7),_0x14f066['forEach'](_0x13fc4b=>{_0x25624f['set'](_0x13fc4b,_0x1d2e0b);}),'insertion'!=_0x1a90a9['type']&&_0x13178e!=_0x25b2cb&&_0x25624f['set'](_0x226fb7['getIntersection'](_0x2b9807),_0x13178e));}const _0x56bddb=[];for(const [_0x4a56b0,_0x4d94b0]of _0x25624f){const _0x36ad64=_0x7b6b31(),_0x4fb32d={'key':_0x48dc93,'oldValue':_0x4d94b0,'newValue':_0x25b2cb};_0x48dc93['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':_0x48dc93});const _0x5a2522=('attribute:'+(_0x48dc93+'|'+Vt({'newValue':_0x25b2cb})))['substring'](0x0,0x3c),_0x4babfe=this['_setSuggestionData']({'id':_0x36ad64,'type':_0x5a2522,'data':_0x4fb32d,'createdAt':new Date(),'authorId':_0x445f37,'attributes':_0x39bef4});_0x56bddb['push'](_0x4babfe),this['_addSuggestionMarker'](_0x5a2522,_0x36ad64,_0x445f37,_0x4a56b0);}return _0x56bddb;}['enableDefaultAttributesIntegration'](_0x10ec62){this['enableCommand'](_0x10ec62,(_0x1fa0c7,..._0x1f4a29)=>{this['_recordAttributeChanges'](()=>{_0x1fa0c7(..._0x1f4a29);});});}['registerBlockAttribute'](_0x456f45){this['_blockAttributeKeys']['add'](_0x456f45);}['registerInlineAttribute'](_0x171fbd){this['_inlineAttributeKeys']['add'](_0x171fbd);}['_getAttributeKey'](_0xf7eb0d){return'attribute'==_0xf7eb0d['type']?_0xf7eb0d['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5b7a12,_0x1b0692){const _0x26ae7e=_0x5b7a12['getFirstMarker']();this['_model']['change'](_0x122f25=>{_0x122f25['updateMarker'](_0x26ae7e,{'range':_0x1b0692});});}['_addThreadToSuggestion'](_0x2f3d2e){const _0x2026f6=_0x2f3d2e['id'],_0x302b5e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2026f6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x302b5e,'threadId':_0x2026f6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x8b3d09=this['_commentsRepository']['getCommentThread'](_0x2026f6);_0x8b3d09['unbind']('isRemovable'),_0x8b3d09['isRemovable']=!0x1,_0x2f3d2e['commentThread']=_0x8b3d09;}['_checkSuggestionCorrectness'](_0x5955d8,_0x21d013,_0x45b86f,_0xe4bfa6){if(_0x5955d8['type']!=_0x21d013||_0x5955d8['subType']!=_0x45b86f||_0x5955d8['creator']['id']!=_0xe4bfa6)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x109ba3('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x45f542,_0x3398f1){const _0x5f56e9=_0x45f542['getFirstRange']();if(_0x3398f1['isEqual'](_0x5f56e9))_0x45f542['removeMarkers']();else{if(_0x5f56e9['containsRange'](_0x3398f1)){const _0x3f5f12=this['_model']['createPositionAt'](_0x3398f1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x45f542,this['_model']['createRange'](_0x5f56e9['start'],_0x3f5f12));const _0x40d37f=_0x7b6b31(),_0x46106e=_0x45f542['creator']['id'],_0x4dd77a=_0x45f542['type']+':'+_0x45f542['subType'];this['_setSuggestionData']({'id':_0x40d37f,'type':_0x4dd77a,'createdAt':new Date(),'authorId':_0x46106e,'data':_0x45f542['data'],'attributes':_0x45f542['attributes']});const _0x3fb6aa=this['_model']['createPositionAt'](_0x3398f1['end']['parent'],'after'),_0x2c3d64=this['_model']['createRange'](_0x3fb6aa,_0x5f56e9['end']);this['_addSuggestionMarker'](_0x4dd77a,_0x40d37f,_0x46106e,_0x2c3d64);}else{if(_0x5f56e9['containsPosition'](_0x3398f1['start'])){const _0x3901e9=this['_model']['createPositionAt'](_0x3398f1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x45f542,this['_model']['createRange'](_0x5f56e9['start'],_0x3901e9));}else{const _0x47d773=this['_model']['createPositionAt'](_0x3398f1['end']['parent'],'after');this['_setSuggestionRange'](_0x45f542,this['_model']['createRange'](_0x47d773,_0x5f56e9['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xe9d2f8){for(const {suggestion:_0xbd0c3d,meta:_0x36927c}of this['_findSuggestions'](_0xe9d2f8,'insertion')){if(!_0x36927c['isOwn'])continue;const _0x205451=_0xbd0c3d['getRanges']();for(const _0x6ea690 of _0x205451)if(!_0xe9d2f8['getDifference'](_0x6ea690)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x535b67){const _0x2b89c6=this['editor']['plugins']['get']('Users')['getUser'](_0x535b67);if(!_0x2b89c6)throw new _0x109ba3('track-changes-user-not-found',this);return _0x2b89c6;}['_getExternalAuthor'](_0x96c408){const _0x3500fe=this['editor']['plugins']['get']('Users'),_0x26f44d=_0x42152e('external:'+_0x96c408),_0x1431a7=_0x3500fe['getUser'](_0x26f44d);return _0x1431a7||_0x3500fe['addUser']({'id':_0x26f44d,'name':_0x96c408});}['_createSuggestion'](_0x15e7e9,_0x28593f,_0x50eb31,_0x161a28,_0x16fc07){const _0x52adcb=this['_getAuthorFromId'](_0x161a28),_0x3808bc=this['_suggestionFactory']['buildSuggestion'](_0x15e7e9,_0x28593f,_0x50eb31,_0x52adcb,_0x16fc07,_0x2d87ee=>{this['_updateSuggestionData'](_0x50eb31,{'attributes':_0x2d87ee});const _0x4feaff=this['getSuggestion'](_0x50eb31);this['_joinWithAdjacentSuggestions'](new Set([_0x4feaff])),this['_refreshSuggestionsChain'](new Set([_0x4feaff]));});return this['listenTo'](_0x3808bc,'accept',()=>{this['_updateSuggestionData'](_0x50eb31,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3808bc,'discard',()=>{this['_updateSuggestionData'](_0x50eb31,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x50eb31,_0x3808bc),this['_suggestionState']['set'](_0x3808bc,'notReady'),_0x3808bc;}['_splitMarkerName'](_0x9c4eee){const _0x14c54a=_0x9c4eee['split'](':');return{'group':_0x14c54a[0x0],'type':_0x14c54a[0x1],'subType':_0x14c54a['length']>=0x5?_0x14c54a[0x2]:null,'id':_0x14c54a['length']<0x5?_0x14c54a[0x2]:_0x14c54a[0x3],'authorId':_0x14c54a['length']<0x5?_0x14c54a[0x3]:_0x14c54a[0x4],'markerCount':0x6==_0x14c54a['length']?_0x14c54a[0x5]:null};}['_breakSuggestionMarker'](_0x2584a3,_0x2eaafb,_0x58d2f1){const _0x183f5f=_0x2584a3['getFirstRange'](),_0x4adc7d=_0x183f5f['start'],_0x1c0cd1=_0x183f5f['end'];this['_setSuggestionRange'](_0x2584a3,this['_model']['createRange'](_0x4adc7d,_0x2eaafb));const _0x308e97=_0x7b6b31(),_0x1f4def=_0x2584a3['creator']['id'],_0x424b18=_0x2584a3['type']+(_0x2584a3['subType']?':'+_0x2584a3['subType']:'');this['_setSuggestionData']({'id':_0x308e97,'type':_0x424b18,'createdAt':new Date(),'authorId':_0x1f4def,'originalSuggestionId':_0x2584a3['id'],'attributes':_0x2584a3['attributes'],'data':_0x2584a3['data']});const _0x313370=this['_getAttributeKey'](_0x2584a3);('formatBlock'==_0x2584a3['type']||_0x313370&&this['_isBlockAttribute'](_0x313370))&&(_0x58d2f1=this['_model']['createPositionBefore'](_0x58d2f1['parent'])),this['_addSuggestionMarker'](_0x424b18,_0x308e97,_0x1f4def,this['_model']['createRange'](_0x58d2f1,_0x1c0cd1));}['_findSuggestions'](_0xd6c4cd,_0xc94ec1=null){const _0x352e3e=[],_0x50a069=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xd6c4cd)||(_0xd6c4cd=[_0xd6c4cd]);for(const _0x3a0ed4 of this['getSuggestions']()){if(!_0x3a0ed4['isInContent'])continue;if(_0xc94ec1&&_0x3a0ed4['type']!=_0xc94ec1)continue;let _0x11ee97=!0x1;for(const _0x1007fe of _0x3a0ed4['getRanges']()){for(const _0x3da497 of _0xd6c4cd){const _0x2e40d1=_0x3da497['start']['isEqual'](_0x1007fe['end'])||_0x3da497['end']['isEqual'](_0x1007fe['start']);if(_0x2e40d1||_0x3da497['getIntersection'](_0x1007fe)){const _0x13898a=_0x3da497['containsRange'](_0x1007fe)&&Rt(this['_model']['schema'],_0x1007fe['start'],_0x3da497),_0x2b245a=_0x1007fe['containsRange'](_0x3da497)&&Rt(this['_model']['schema'],_0x3da497['start'],_0x1007fe);_0x352e3e['push']({'suggestion':_0x3a0ed4,'meta':{'isOwn':_0x50a069==_0x3a0ed4['author'],'isNextTo':_0x2e40d1,'isInsideObject':_0x13898a,'containsRangeInObject':_0x2b245a}}),_0x11ee97=!0x0;break;}}if(_0x11ee97)break;}}return _0x352e3e;}['_addSuggestionMarker'](_0x2bf264,_0x16f7a1,_0x2d9aef,_0x19c095,_0x8dbb91){this['_model']['change'](_0x163a16=>{let _0x4419c3='suggestion:'+_0x2bf264+':'+_0x16f7a1+':'+_0x2d9aef;_0x8dbb91&&(_0x4419c3=_0x4419c3+':'+_0x8dbb91),_0x163a16['addMarker'](_0x4419c3,{'range':_0x19c095,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1a33ce){const _0x3cdaa3=_0x1a33ce['previous'],_0x14f61e=_0x1a33ce['next'];_0x1a33ce['previous']=null,_0x1a33ce['next']=null,null!=_0x3cdaa3&&_0x3cdaa3['next']==_0x1a33ce&&(_0x3cdaa3['next']=_0x14f61e),null!=_0x14f61e&&_0x14f61e['previous']==_0x1a33ce&&(_0x14f61e['previous']=_0x3cdaa3),'ready'==this['_suggestionState']['get'](_0x1a33ce)&&(this['_suggestionState']['set'](_0x1a33ce,'removed'),this['fire']('suggestionUnloaded',_0x1a33ce,_0x3cdaa3,_0x14f61e));}['_setSuggestionData'](_0x336df8){const _0x5d1496=_0x336df8['id'],_0x33b37e=this['addSuggestionData'](_0x336df8);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x54b68e=this['editor']['plugins']['get']('PendingActions'),_0x31e1aa=_0x33b37e['hasComments'],_0x3d63ed=_0x33b37e['subType']?_0x33b37e['type']+':'+_0x33b37e['subType']:_0x33b37e['type'],_0x1081e7=this['editor']['locale'],_0x36e65d=_0x54b68e['add'](o(_0x1081e7,'PENDING_ACTION_SUGGESTION')),_0x111e03={'id':_0x5d1496,'type':_0x3d63ed,'hasComments':_0x31e1aa,'data':_0x336df8['data']||null,'originalSuggestionId':_0x336df8['originalSuggestionId']||null,'attributes':_0x33b37e['attributes']};this['_adapter']['addSuggestion'](_0x111e03)['then'](_0x1c3f7c=>{_0x33b37e['_saved']=!0x0,_0x54b68e['remove'](_0x36e65d),_0x1c3f7c&&_0x1c3f7c['createdAt']&&(this['_suggestions']['get'](_0x5d1496)['createdAt']=_0x1c3f7c['createdAt']);})['catch'](_0x10b1d6=>{throw _0x2b4af0('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x33b37e['discard']();}),_0x33b37e['stopListening'](),this['_suggestions']['delete'](_0x33b37e['id']),this['_suggestionState']['delete'](_0x33b37e),_0x10b1d6;});}return _0x33b37e;}['_isBlockAttribute'](_0x3d0e43){return this['_blockAttributeKeys']['has'](_0x3d0e43);}['_updateSuggestionData'](_0x2ea951,_0x3c10b1){const _0x19e310=this['editor']['plugins']['get']('PendingActions'),_0x5bca3c=this['getSuggestion'](_0x2ea951);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5bca3c['_saved']){const _0x347dfc=_0x19e310['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2ea951,_0x3c10b1)['then'](()=>{_0x19e310['remove'](_0x347dfc);});}else _0x5bca3c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2ea951,_0x3c10b1);});}}['_getSuggestionData'](_0x462910){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x109ba3('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x462910);}['_handleNewSuggestionMarker'](_0x546645){const {id:_0x3ef1aa,type:_0x3ce80c,subType:_0x8be8c2,authorId:_0x118803}=this['_splitMarkerName'](_0x546645),_0x21328e=this['_suggestions']['get'](_0x3ef1aa)||this['_createSuggestion'](_0x3ce80c,_0x8be8c2,_0x3ef1aa,_0x118803,{});switch(this['_checkSuggestionCorrectness'](_0x21328e,_0x3ce80c,_0x8be8c2,_0x118803),this['_suggestionState']['get'](_0x21328e)){case'notReady':this['_getSuggestionData'](_0x3ef1aa)['then'](_0x53e6ac=>{let _0x1b00cc=Promise['resolve']();_0x53e6ac['hasComments']&&(_0x1b00cc=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3ef1aa})),_0x1b00cc['then'](()=>{this['addSuggestionData'](_0x53e6ac)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x21328e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3ef1aa,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x21328e,'ready'),this['fire']('suggestionLoaded',_0x21328e);break;case'ready':this['fire']('suggestionChanged',_0x21328e);}return _0x21328e['addMarkerName'](_0x546645),_0x21328e;}['_refreshSuggestionsChain'](_0x513612){const _0x4159d4=Array['from'](_0x513612),_0x32de7e=_0x4159d4['filter'](_0x1f30ca=>'attribute'==_0x1f30ca['type']);this['_refreshAttributeSuggestionsChain'](_0x32de7e);const _0x3f2bbf=_0x4159d4['filter'](_0x40fe30=>!_0x40fe30['isMultiRange']&&'attribute'!=_0x40fe30['type']),_0x2d2489=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17b7d6=>!_0x17b7d6['isMultiRange']&&'attribute'!=_0x17b7d6['type']),_0x2c05a2=_0x2d2489['filter'](_0x35d5cf=>!_0x513612['has'](_0x35d5cf)),_0x1819ed=new Map(_0x2d2489['map'](_0x32c295=>[_0x32c295,this['_suggestionFactory']['getSuggestionCallback'](_0x32c295['type'],_0x32c295['subType'],'chain')])),_0x255b74=new Map(_0x2d2489['map'](_0x567582=>[_0x567582,_0x567582['getFirstRange']()])),_0x5da189=new Set(),_0x5d5d5e=new Set();for(let _0x2c7ea5=0x0;_0x2c7ea5<_0x3f2bbf['length'];_0x2c7ea5++)_0xc1d67b(_0x3f2bbf[_0x2c7ea5],_0x3f2bbf,_0x2c7ea5+0x1);for(let _0x42fadd=0x0;_0x42fadd<_0x3f2bbf['length'];_0x42fadd++)_0xc1d67b(_0x3f2bbf[_0x42fadd],_0x2c05a2,0x0);const _0x4ffef1=new Set();for(let _0xbc0321=0x0;_0xbc0321<_0x3f2bbf['length'];_0xbc0321++){const _0x51fe95=_0x3f2bbf[_0xbc0321];!_0x5d5d5e['has'](_0x51fe95)&&_0x51fe95['previous']&&(_0x4ffef1['add'](_0x51fe95['previous']),_0x51fe95['previous']['next']===_0x51fe95&&(_0x51fe95['previous']['next']=null),_0x51fe95['previous']=null),!_0x5da189['has'](_0x51fe95)&&_0x51fe95['next']&&(_0x4ffef1['add'](_0x51fe95['next']),_0x51fe95['next']['previous']===_0x51fe95&&(_0x51fe95['next']['previous']=null),_0x51fe95['next']=null);}function _0xc1d67b(_0x391cc8,_0x5d8073,_0x4b2b6c){for(let _0x5c05dd=_0x4b2b6c;_0x5c05dd<_0x5d8073['length'];_0x5c05dd++){const _0x1414d0=_0x36e92(_0x391cc8,_0x5d8073[_0x5c05dd]);_0x1414d0&&(_0x1414d0[0x0]['next']=_0x1414d0[0x1],_0x1414d0[0x1]['previous']=_0x1414d0[0x0],_0x5da189['add'](_0x1414d0[0x0]),_0x5d5d5e['add'](_0x1414d0[0x1]));}}function _0x36e92(_0x1ef1df,_0x3c4ca7){if(_0x1ef1df['author']['id']!==_0x3c4ca7['author']['id'])return null;const _0x2bf395=_0x1819ed['get'](_0x1ef1df)(_0x1ef1df,_0x3c4ca7,_0x255b74['get'](_0x1ef1df),_0x255b74['get'](_0x3c4ca7));if(!_0x2bf395)return null;return _0x1819ed['get'](_0x3c4ca7)(_0x1ef1df,_0x3c4ca7,_0x255b74['get'](_0x1ef1df),_0x255b74['get'](_0x3c4ca7))?_0x2bf395[0x1]['commentThread']&&_0x2bf395[0x1]['commentThread']['length']?null:_0x2bf395:null;}_0x4ffef1['size']&&this['_refreshSuggestionsChain'](_0x4ffef1);}['_refreshAttributeSuggestionsChain'](_0x112ced){if(0x0==_0x112ced['length'])return;const _0x462dde=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x213d42=>'attribute'==_0x213d42['type']&&_0x213d42['_isDataLoaded']),_0x415653=[],_0x23cda2=new Map();for(const _0x1409e5 of _0x462dde){const _0x473f2f=_0x42152e(_0x1409e5['attributes']);_0x23cda2['has'](_0x473f2f)||(_0x23cda2['set'](_0x473f2f,_0x415653['length']),_0x415653['push']([]));const _0x2fa380=_0x23cda2['get'](_0x473f2f);_0x415653[_0x2fa380]['push'](_0x1409e5);}!(function(){_0x415653['sort']((_0x4c6e57,_0x422c16)=>{const _0x185883=_0x4c6e57[0x0]['createdAt'],_0x280cbe=_0x422c16[0x0]['createdAt'];return _0x185883==_0x280cbe?_0x4c6e57[0x0]['attributes']['groupId']<_0x422c16[0x0]['attributes']['groupId']?-0x1:0x1:_0x185883<_0x280cbe?-0x1:0x1;});for(const _0x5692b7 of _0x415653)_0x5692b7['sort']((_0x4bbb38,_0x5c6e3c)=>_0x4bbb38['id']<_0x5c6e3c['id']?-0x1:0x1);}());for(let _0x5bb496=0x0;_0x5bb496<_0x415653['length'];_0x5bb496++){if(0x0==_0x415653[_0x5bb496]['length'])continue;const _0x5a6ad4=[];for(let _0x479338=_0x5bb496+0x1;_0x479338<_0x415653['length'];_0x479338++)0x0!=_0x415653[_0x479338]['length']&&_0x235b7a(_0x415653[_0x5bb496],_0x415653[_0x479338])&&_0x5a6ad4['push'](_0x479338);for(const _0xfccf53 of _0x5a6ad4)_0x415653[_0x5bb496]=_0x415653[_0x5bb496]['concat'](_0x415653[_0xfccf53]),_0x415653[_0xfccf53]=[];}for(const _0x4d1854 of _0x415653)for(let _0x14380e=0x0;_0x14380e<_0x4d1854['length'];_0x14380e++)_0x4d1854[_0x14380e]['next']=_0x4d1854[_0x14380e+0x1]||null;for(const _0x2356a2 of _0x415653)for(let _0x547c6d=0x0;_0x547c6d<_0x2356a2['length'];_0x547c6d++)_0x2356a2[_0x547c6d]['previous']=_0x2356a2[_0x547c6d-0x1]||null;function _0x235b7a(_0x37786a,_0x2569cd){if(_0x37786a[0x0]['attributes']['groupId']!==_0x2569cd[0x0]['attributes']['groupId']&&_0x37786a[0x0]['author']!==_0x2569cd[0x0]['author'])return!0x1;if(!function(_0x2c3a62,_0x22bbf3){if(!_0x2c3a62['hasComments']&&!_0x22bbf3['hasComments'])return!0x0;if(_0x2c3a62['hasComments']&&_0x22bbf3['hasComments'])return!0x1;if(_0x2c3a62['hasComments']&&_0x22bbf3['createdAt']<_0x2c3a62['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x22bbf3['hasComments']&&_0x2c3a62['createdAt']<_0x22bbf3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x37786a[0x0],_0x2569cd[0x0]))return!0x1;const _0x276282=Bt(_0x37786a[0x0]['attributes'],'groupId'),_0x23f09f=Bt(_0x2569cd[0x0]['attributes'],'groupId');if(!_0x15c9fb(_0x276282,_0x23f09f))return!0x1;return!!_0x37786a['every'](_0x3f9c36=>_0x2569cd['some'](_0x4b240c=>_0x3f9c36['getFirstRange']()['isEqual'](_0x4b240c['getFirstRange']())))&&_0x2569cd['every'](_0x40cf86=>_0x37786a['some'](_0x23e9e7=>_0x40cf86['getFirstRange']()['isEqual'](_0x23e9e7['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4ecfc1){const _0x45aa4e=Array['from'](_0x4ecfc1),_0x1edc83=this['getSuggestions']({'skipNotAttached':!0x0}),_0x492223=_0x1edc83['filter'](_0x4549c3=>!_0x4ecfc1['has'](_0x4549c3)),_0x468062=new Map(_0x45aa4e['map'](_0x2ca076=>[_0x2ca076,this['_suggestionFactory']['getSuggestionCallback'](_0x2ca076['type'],_0x2ca076['subType'],'join')])),_0x37cd76=new Map(_0x1edc83['map'](_0x135f67=>[_0x135f67,_0x135f67['getRanges']()]));for(let _0x32ca55=0x0;_0x32ca55<_0x45aa4e['length'];_0x32ca55++){if(_0x331b4d(this,_0x45aa4e[_0x32ca55],_0x45aa4e,_0x32ca55+0x1))return!0x0;}for(let _0x141aeb=0x0;_0x141aeb<_0x45aa4e['length'];_0x141aeb++){if(_0x331b4d(this,_0x45aa4e[_0x141aeb],_0x492223,0x0))return!0x0;}return!0x1;function _0x331b4d(_0x5d4517,_0x5c1789,_0x32ca0b,_0x43e277){for(let _0x16b6e9=_0x43e277;_0x16b6e9<_0x32ca0b['length'];_0x16b6e9++){const _0x9a2807=_0x32ca0b[_0x16b6e9];if(_0x9a2807['type']!==_0x5c1789['type']||_0x9a2807['author']['id']!==_0x5c1789['author']['id']||_0x9a2807['subType']!==_0x5c1789['subType'])continue;if(!Pt(_0x5c1789,_0x9a2807,['groupId']))continue;if('attribute'==_0x5c1789['type']&&_0x5c1789['data']['oldValue']!=_0x9a2807['data']['oldValue'])continue;if('attribute'==_0x5c1789['type']&&_0x5d4517['_isBlockAttribute'](_0x5c1789['data']['key']))continue;if('formatBlock'==_0x5c1789['type']){const _0x4112ea=_0x5d4517['editor']['model'],_0x1da573=_0x5c1789['getContainedElement']();if(_0x1da573&&(_0x4112ea['schema']['isObject'](_0x1da573)||_0x4112ea['schema']['isLimit'](_0x1da573)))continue;}const _0x3c4978=_0x468062['get'](_0x5c1789),_0xb9716a=_0x37cd76['get'](_0x5c1789),_0x4bf487=_0x37cd76['get'](_0x9a2807),_0x22708f=_0x5c1789['commentThread']&&_0x5c1789['commentThread']['length'],_0x550323=_0x9a2807['commentThread']&&_0x9a2807['commentThread']['length'];if(!_0x22708f&&_0x3c4978(_0x4bf487,_0xb9716a))return _0x5d4517['_joinSuggestions'](_0x9a2807,_0x5c1789),_0x37cd76['delete'](_0x5c1789),!0x0;if(!_0x550323&&_0x3c4978(_0xb9716a,_0x4bf487))return _0x5d4517['_joinSuggestions'](_0x5c1789,_0x9a2807),_0x37cd76['delete'](_0x9a2807),!0x0;}return!0x1;}}['_joinSuggestions'](_0xbe3793,_0x4b03aa){if(_0xbe3793['isMultiRange']){for(const _0x5f0c0b of _0x4b03aa['getRanges']())_0xbe3793['addRange'](_0x5f0c0b);}else{const _0x68af23=_0x4b03aa['getFirstRange']()['end'];this['_setSuggestionRange'](_0xbe3793,this['_model']['createRange'](_0xbe3793['getFirstRange']()['start'],_0x68af23));}_0x4b03aa['removeMarkers']();}['_getMarkerAnnouncementText'](_0x25639e,_0x525f47){const _0x11e011=_0x25639e['startsWith']('format')||_0x25639e['startsWith']('attribute')?'FORMATTING':_0x25639e['toUpperCase']();return o(this['editor']['locale'],_0x525f47+'_'+_0x11e011+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x3667e3=this['editor'];if(!_0x3667e3['ui'])return;const {ariaLiveAnnouncer:_0xe05dfd}=_0x3667e3['ui'];_0x23dbc7(this['_model'],({left:_0x2c5398,entered:_0x2cbd5c})=>{for(const _0x2d2963 of _0x2c5398){const {group:_0x1de342,type:_0x4ccc7d}=this['_splitMarkerName'](_0x2d2963['name']);if('suggestion'===_0x1de342){_0xe05dfd['announce'](this['_getMarkerAnnouncementText'](_0x4ccc7d,'LEAVE'));break;}}for(const _0x3756ac of _0x2cbd5c){const {group:_0x330c5d,type:_0x45600e}=this['_splitMarkerName'](_0x3756ac['name']);if('suggestion'===_0x330c5d){_0xe05dfd['announce'](this['_getMarkerAnnouncementText'](_0x45600e,'ENTER'));break;}}});}['_processAttributeChanges'](_0x4d43da){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3be712=this['editor'],_0x50b131=_0x3be712['model']['document']['differ']['getChanges']();if(0x0==_0x50b131['length'])return!0x1;const _0x2fd848=[],_0x3b178e=_0x50b131['filter'](_0x4bba23=>'attribute'==_0x4bba23['type']),_0x3685d0=_0x50b131['filter'](_0x10674d=>'insert'==_0x10674d['type']&&'$text'!=_0x10674d['name']),_0x23af44=_0x50b131['filter'](_0x49b8db=>'remove'==_0x49b8db['type']&&'$text'!=_0x49b8db['name']);for(const _0x21f9d1 of _0x3b178e)_0x2fd848['push']({'key':_0x21f9d1['attributeKey'],'newValue':_0x21f9d1['attributeNewValue'],'oldValue':_0x21f9d1['attributeOldValue'],'range':Ot(_0x21f9d1['range'],_0x3be712['model'])});for(const _0x116546 of _0x3685d0){const _0x59befc=_0x23af44['find'](_0x339403=>_0x339403['position']['isEqual'](_0x116546['position']));_0x59befc&&_0x2fd848['push']({'key':m,'newValue':_0x116546['name'],'oldValue':_0x59befc['name'],'range':_0x3be712['model']['createRangeOn'](_0x116546['position']['nodeAfter'])});}return 0x0!=_0x2fd848['length']&&this['_reduceExistingSuggestions'](_0x4d43da,_0x2fd848);}['_processAttributeSuggestions'](_0x11ad81){let _0x14e0de=!0x1;const _0xecdb1a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x34fc81=>_0x34fc81['data']['newRange']&&_0x34fc81['name']['startsWith']('suggestion:attribute:'));for(const _0x4ecc7d of _0xecdb1a){const {subType:_0x2631c2,id:_0x5f2069}=this['_splitMarkerName'](_0x4ecc7d['name']),_0x1d735b=_0x2631c2['split']('|')[0x0];for(const _0x24833e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x24833e['id']!=_0x5f2069&&'attribute'==_0x24833e['type']&&_0x24833e['data']&&_0x24833e['data']['key']==_0x1d735b&&_0x24833e['getFirstRange']()['isIntersecting'](_0x4ecc7d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x24833e,_0x4ecc7d['data']['newRange'],_0x11ad81),_0x14e0de=!0x0);}return _0x14e0de;}['_recordAttributeChanges'](_0x1af864){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x1af864();}['_isRegisteredAttribute'](_0x483e6e){const _0x1fe993=this['_isBlockAttribute'](_0x483e6e),_0x34d3d5=this['_inlineAttributeKeys']['has'](_0x483e6e);return _0x1fe993||_0x34d3d5;}['_reduceExistingSuggestions'](_0x3a7272,_0x3a9ecf){if(0x0==_0x3a9ecf['length'])return!0x1;let _0x240f7c=!0x1;for(const _0x16950f of _0x3a9ecf){const _0x5c8357=this['_findSuggestions'](_0x16950f['range'],'attribute')['filter'](_0x116b79=>!_0x116b79['meta']['isNextTo'])['map'](_0x56a7d0=>_0x56a7d0['suggestion']),_0x229cbc=_0x42152e({'newValue':_0x16950f['newValue']});_0x5c8357['filter'](_0x38a525=>{const [_0x39d65c,_0x49a29d]=_0x38a525['subType']['split']('|');return _0x39d65c==_0x16950f['key']&&_0x49a29d!=_0x229cbc;})['forEach'](_0x315bac=>{this['_reduceSuggestionAttributeRange'](_0x315bac,_0x16950f['range'],_0x3a7272),_0x240f7c=!0x0;});}return _0x240f7c;}['_reduceSuggestionAttributeRange'](_0x499156,_0x3e20a4,_0x433eca){const _0x1750f8=_0x499156['getFirstRange']()['getDifference'](_0x3e20a4);0x0!==_0x1750f8['length']?0x1!==_0x1750f8['length']?this['_breakSuggestionMarker'](_0x499156,_0x3e20a4['start'],_0x3e20a4['end']):this['_setSuggestionRange'](_0x499156,_0x1750f8[0x0]):_0x433eca['removeMarker'](_0x499156['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x20090c){this['_editor']=_0x20090c,this['_model']=_0x20090c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3f6125,_0x43d019,_0x19d3de,_0x3318ee,_0x3b0922,_0x4d60a4){return new u(this['_model'],{'type':_0x3f6125,'subType':_0x43d019,'id':_0x19d3de,'author':_0x3318ee,'creator':_0x3318ee,'attributes':_0x3b0922,'onAttributesChange':_0x4d60a4,'onAccept':(..._0x338f84)=>this['getSuggestionCallback'](_0x3f6125,_0x43d019,'accept')(..._0x338f84),'onDiscard':(..._0x41d2dd)=>this['getSuggestionCallback'](_0x3f6125,_0x43d019,'discard')(..._0x41d2dd)});}['registerCustomCallback'](_0x5ee542,_0x35f0d8,_0x52596c,_0x360744){const _0x573e38=_0x5ee542+':'+_0x35f0d8+':'+_0x52596c;this['_customCallbacks']['set'](_0x573e38,_0x360744);}['getSuggestionCallback'](_0x1131d9,_0x1102b7,_0x202641){const _0x5caf8f=_0x1131d9+':'+_0x1102b7+':'+_0x202641;return this['_customCallbacks']['get'](_0x5caf8f)||this['_defaultCallbacks']['get'](_0x1131d9+':'+_0x202641);}['_registerDefaultCallbacks'](){const _0x35ca95=()=>!0x1,_0x4050f9=_0x5f1bb2=>{_0x5f1bb2['sort']((_0x215b8e,_0x50f01f)=>_0x215b8e['start']['isBefore'](_0x50f01f['start'])?0x1:-0x1),this['_model']['change'](_0x183032=>{for(const _0x3f5eb1 of _0x5f1bb2){let _0x15516a;_0x15516a=_0x3f5eb1['end']['isAtEnd']&&_0x3f5eb1['end']['parent']==_0x3f5eb1['start']['nodeAfter']?_0x183032['createSelection'](_0x3f5eb1['start']['nodeAfter'],'on'):_0x183032['createSelection'](_0x3f5eb1),this['_model']['deleteContent'](_0x15516a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5c07ea=(_0x53906c,_0x2b7ef2)=>{_0x2b7ef2&&this['_model']['change'](_0x3976df=>{const {commandName:_0x50cde2,commandParams:_0x4f33ed=[]}=_0x2b7ef2,_0x2b789b=_0x53906c['map'](_0xc67fc3=>(Tt(_0xc67fc3)&&(_0xc67fc3=this['_model']['createRange'](_0xc67fc3['end'])),_0xc67fc3))['filter'](_0x44e812=>'$graveyard'!==_0x44e812['root']['rootName']);if(_0x2b789b['length']<0x1)return;const _0x135c24=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x125263=>_0x45d820['fromRange'](_0x125263));_0x3976df['setSelection'](_0x2b789b);for(const _0x4c9dde of this['_editor']['commands']['commands']())_0x4c9dde['refresh']();_0x4f33ed['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x50cde2,..._0x4f33ed);const _0x5ace0d=_0x135c24['filter'](_0x296c46=>'$graveyard'!=_0x296c46['root']['rootName']);_0x5ace0d['length']>0x0&&_0x3976df['setSelection'](_0x5ace0d);for(const _0x2c6c2f of _0x135c24)_0x2c6c2f['detach']();});},_0xf618bb=(_0x7b9d0f,_0x55f78e)=>0x1==_0x7b9d0f['length']&&0x1==_0x55f78e['length']&&_0x7b9d0f[0x0]['end']['isEqual'](_0x55f78e[0x0]['start']),_0x46ce95=(_0xdeb511,_0x5eca38,_0x3d2b74,_0x3f7d8b)=>Ft(_0xdeb511,_0x5eca38,_0x3d2b74,_0x3f7d8b,this['_model'])?[_0xdeb511,_0x5eca38]:Ft(_0x5eca38,_0xdeb511,_0x3f7d8b,_0x3d2b74,this['_model'])?[_0x5eca38,_0xdeb511]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x35ca95),this['_defaultCallbacks']['set']('insertion:discard',_0x4050f9),this['_defaultCallbacks']['set']('insertion:join',_0xf618bb),this['_defaultCallbacks']['set']('insertion:chain',_0x46ce95),this['_defaultCallbacks']['set']('deletion:accept',_0x4050f9),this['_defaultCallbacks']['set']('deletion:discard',_0x35ca95),this['_defaultCallbacks']['set']('deletion:join',_0xf618bb),this['_defaultCallbacks']['set']('deletion:chain',_0x46ce95),this['_defaultCallbacks']['set']('formatInline:accept',_0x5c07ea),this['_defaultCallbacks']['set']('formatInline:discard',_0x35ca95),this['_defaultCallbacks']['set']('formatInline:join',_0xf618bb),this['_defaultCallbacks']['set']('formatInline:chain',_0x35ca95),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5c07ea),this['_defaultCallbacks']['set']('formatBlock:discard',_0x35ca95),this['_defaultCallbacks']['set']('formatBlock:join',_0xf618bb),this['_defaultCallbacks']['set']('formatBlock:chain',_0x35ca95),this['_defaultCallbacks']['set']('attribute:accept',_0x35ca95),this['_defaultCallbacks']['set']('attribute:discard',(_0xd83a84,_0x5a226b)=>{if(!_0x5a226b)return;const _0x152485=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2ecb9e=>{if(_0x5a226b['key']==m)for(const _0x384bba of _0xd83a84){const _0x373834=_0x384bba['start']['nodeAfter'],_0x4d51e6=_0x5a226b['oldValue'];_0x2ecb9e['rename'](_0x373834,_0x4d51e6);}else{if(_0x152485['_isBlockAttribute'](_0x5a226b['key'])){for(const _0x43f3ab of _0xd83a84)void 0x0!==_0x5a226b['oldValue']?_0x2ecb9e['setAttribute'](_0x5a226b['key'],_0x5a226b['oldValue'],_0x43f3ab['start']['nodeAfter']):_0x2ecb9e['removeAttribute'](_0x5a226b['key'],_0x43f3ab['start']['nodeAfter']);}else{for(const _0x4ff007 of _0xd83a84)_0x5a226b['oldValue']?_0x2ecb9e['setAttribute'](_0x5a226b['key'],_0x5a226b['oldValue'],_0x4ff007):_0x2ecb9e['removeAttribute'](_0x5a226b['key'],_0x4ff007);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xf618bb);}}function Rt(_0x4edd3c,_0x41d354,_0x31b028){for(const _0x3928fd of _0x41d354['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3928fd['root']==_0x3928fd)return!0x1;if(!_0x31b028['containsItem'](_0x3928fd))return!0x1;if(_0x4edd3c['isObject'](_0x3928fd)||_0x4edd3c['isLimit'](_0x3928fd))return!0x0;}return!0x1;}function Tt(_0x1d1cbd){return _0x1d1cbd['end']['parent']==_0x1d1cbd['start']['nodeAfter']&&_0x1d1cbd['end']['isAtStart'];}function Et(_0x4d057f,_0x5dd0c6,_0x3a8a5d,_0x47d0a7){const _0x44063b=_0x2d74dd=>!_0x2d74dd['item']['is']('$textProxy')&&!_0x47d0a7['isObject'](_0x2d74dd['item']),_0x4afa1a=_0x4d057f['start']['getLastMatchingPosition'](_0x44063b),_0x414a40=_0x4d057f['end']['getLastMatchingPosition'](_0x44063b,{'direction':'backward'});return(!_0x4d057f['start']['isEqual'](_0x4afa1a)||!_0x4d057f['end']['isEqual'](_0x414a40))&&(_0x4afa1a['isBefore'](_0x414a40)?_0x3a8a5d['updateMarker'](_0x5dd0c6,{'range':_0x3a8a5d['createRange'](_0x4afa1a,_0x414a40)}):_0x3a8a5d['removeMarker'](_0x5dd0c6),!0x0);}function Vt(_0x27fed1){return _0x42152e(_0x27fed1);}function Ut(_0x339234){const _0x94df7b=_0x339234['start']['nodeAfter'];return _0x94df7b&&_0x94df7b['is']('element');}function Ot(_0x5d9366,_0x119b52){return null==_0x5d9366['end']['nodeBefore']&&_0x5d9366['end']['parent']==_0x5d9366['start']['nodeAfter']?Gt(_0x5d9366['start']['nodeAfter'],_0x119b52):_0x5d9366;}function Gt(_0x3c0949,_0x3a5227){const _0x4ff5c9=_0x3a5227['schema']['isObject'](_0x3c0949)||_0x3a5227['schema']['isSelectable'](_0x3c0949);return _0x3a5227['createRange'](_0x3a5227['createPositionAt'](_0x3c0949,'before'),_0x4ff5c9?_0x3a5227['createPositionAfter'](_0x3c0949):_0x3a5227['createPositionAt'](_0x3c0949,'end'));}function Ft(_0x457679,_0x5f5b66,_0x4c6a8f,_0x9c2651,_0x53c7db){if(!Pt(_0x457679,_0x5f5b66))return!0x1;if(_0x4c6a8f['end']['isEqual'](_0x9c2651['start']))return!0x0;if(_0x457679['type']!=_0x5f5b66['type'])return!0x1;if(!_0x4c6a8f['end']['isTouching'](_0x9c2651['start']))return!0x1;const _0x4afa7d=_0x53c7db['createRange'](_0x4c6a8f['end'],_0x9c2651['start'])['getWalker']();for(const _0x12fa20 of _0x4afa7d)if(['elementStart','elementEnd']['includes'](_0x12fa20['type'])&&_0x53c7db['schema']['isLimit'](_0x12fa20['item']))return!0x1;return!0x0;}function Pt(_0x3a53f9,_0x52eaf0,_0x110449=[]){return!(!_0x3a53f9['_isDataLoaded']||!_0x52eaf0['_isDataLoaded'])&&_0x15c9fb(Bt(_0x3a53f9['attributes'],_0x110449),Bt(_0x52eaf0['attributes'],_0x110449));}function Lt(_0x517706,_0x12ec1f){const _0x33e733=Ht(_0x517706['attributes']),_0x97e684=Ht(_0x12ec1f);if(!_0x517706['_isDataLoaded'])return!0x1;for(const _0x311e8a of Object['keys'](_0x97e684))if(!_0x15c9fb(_0x33e733[_0x311e8a],_0x97e684[_0x311e8a]))return!0x1;return!0x0;}function Ht(_0x34a03a){const _0x2779db=Object['assign']({},_0x34a03a);return delete _0x2779db['skipNestingCheck'],delete _0x2779db['tablePasteChainId'],_0x2779db;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x24d01d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5369a9,_0x3f0b00,_0x1f0cc4,_0x340584){super(),this['model']=_0x3f0b00,this['view']=_0x1f0cc4,this['commentThreadController']=_0x340584,this['_editor']=_0x5369a9,this['_acceptCommand']=_0x5369a9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5369a9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1aebe2,_0x1aee83)=>_0x1aebe2||_0x1aee83),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x136fdb=>_0x136fdb&&this['_editor']['model']['canEditAt'](_0x3f0b00['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x399f0b=>_0x399f0b&&this['_editor']['model']['canEditAt'](_0x3f0b00['getRanges']())),this['_pendingAction']=null,_0x1f0cc4['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1f0cc4,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1f0cc4,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1f0cc4,'change:isDirty',()=>{_0x1f0cc4['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 _0x44d55b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x44d55b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x5662df{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x3f2436,_0x4c3b7c,_0x38c372,_0x496cc9){super(_0x3f2436),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x4c3b7c['authoredAt']),this['bind']('authoredAt')['to'](_0x4c3b7c),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x4c3b7c,this['_localUser']=_0x38c372,this['_config']=_0x496cc9,_0x496cc9['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1f60c2}=this['_config'];this['commentsListView']=new _0x1f60c2(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',_0x99f55=>_0x99f55+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x376035,_0x100f04)=>_0x376035||!!_0x100f04);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x23a7fe}=this['_config'],_0x5a6209=new _0x23a7fe(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x6726f7=_0x5a6209['commentInputView'];return _0x5a6209['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x6726f7,'value',(_0x1b8089,_0x53785e,_0x4e1116)=>!!_0x4e1116||_0x1b8089&&!_0x53785e),_0x6726f7['on']('submit',(_0x563105,_0xc1482a)=>{this['fire']('addComment',_0xc1482a),_0x6726f7['editor']['setData']('');}),_0x6726f7['on']('cancel',()=>this['focus']()),_0x6726f7['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5a6209;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x5acef5,_0x7f61d7,_0xc4b00f,_0x418072){super(_0x5acef5,_0x7f61d7,_0xc4b00f,_0x418072),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x9deba3=>_0x9deba3&&_0x9deba3[0x0]?_0x9deba3[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x8996d1,_0x3b8ab8)=>{let _0x2fc0ee='';for(const _0x437c63 of _0x8996d1)_0x2fc0ee+='<p>'+ds(_0x437c63['content'],_0x437c63['color'])+'</p>';return _0x3b8ab8?_0x2fc0ee:_0x1ec19c(_0x2fc0ee,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x5acef5,'Accept\x20suggestion'),_0x1e3b05['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x5acef5,'Discard\x20suggestion'),_0x1e3b05['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x3b1e71(_0x5acef5,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x19d6da=this['bindTemplate'],_0x509cf4=[{'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']}},{'tag':'time','attributes':{'datetime':_0x19d6da['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x19d6da['to']('authoredAt',_0xda1c66=>this['_config']['formatDateTime'](_0xda1c66))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x509cf4['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x59ae15={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x19d6da['if']('isActive','ck-suggestion-wrapper--active'),_0x19d6da['to']('type',_0x4f3eec=>'ck-suggestion-'+_0x4f3eec),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x509cf4}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x59ae15['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x59ae15;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x11f10c,_0x3f984a,_0x35e3ec)=>{this['_descriptionElement']['innerHTML']=_0x35e3ec;});}['_createButton'](_0x3ca9f2,_0x4876b6,_0x54b519,_0x79d98d,_0x2b5ea3){const _0x5ea058=new _0x18c11e(this['locale']);return _0x5ea058['set']({'label':_0x3ca9f2,'icon':_0x4876b6,'tooltip':!0x0,'tooltipPosition':_0x2b5ea3}),_0x5ea058['extendTemplate']({'attributes':{'class':_0x54b519}}),_0x5ea058['on']('execute',()=>{this['fire'](_0x79d98d,this['_model']['id']);}),_0x5ea058;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['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;}}function ds(_0x2963e9,_0x4cb28a){let _0x4e0540='';return _0x4e0540+=_0x2963e9['split']('*')['map']((_0x5217d4,_0x3ffc45)=>_0x3ffc45%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x5217d4)+'</span>':us(_0x5217d4))['join'](''),_0x4cb28a&&(_0x4e0540+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4cb28a['value']+'\x22\x20title=\x22'+_0x4cb28a['title']+'\x22></span>'),_0x4e0540;}function us(_0x4dfc3e){const _0x43866e=document['createElement']('span');return _0x43866e['innerText']=_0x4dfc3e,_0x43866e['innerHTML'];}var ie='<!--\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-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x1c9f3d{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x505203,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x11b1ce){super(_0x11b1ce),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x38ec03=this['editor']['config'];_0x38ec03['define']('trackChanges.SuggestionThreadView',ne),_0x38ec03['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x38ec03['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x296f4c,_0x5ec4dc){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x47282e,_0x4b58d2]of this['_handleControllerBuffer']){const _0x34d545=this['_suggestionToController']['has'](_0x47282e);_0x34d545||_0x4b58d2?_0x34d545&&_0x4b58d2&&this['_destroyController'](_0x47282e):this['_initializeController'](_0x47282e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x296f4c,_0x5ec4dc);}['init'](){const _0x3495f4=this['editor'],_0x346c47=_0x3495f4['plugins']['get']('TrackChangesEditing'),_0x57e15f=_0x3495f4['plugins']['get']('Annotations'),_0x323a24=_0x3495f4['plugins']['get']('EditorAnnotations'),_0x56580c=_0x3495f4['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x323a24['addSourceCollector'](()=>{const _0x2b5d96=[];for(const [_0x48b7ab,_0x802a77]of Array['from'](this['_suggestionToController'])){const _0x1abed7=_0x48b7ab['getAllAdjacentSuggestions'](),_0x277cb1=[];for(const _0xf6356 of _0x1abed7){if(!_0xf6356['isInContent'])continue;if(_0xf6356['isMultiRange']){_0x277cb1['push'](..._0xf6356['getRanges']());continue;}const _0x377ff3=_0xf6356['getFirstRange']();if(_0x277cb1['length']>0x0){const _0xf2c65c=_0x277cb1[0x0]['getJoined'](_0x377ff3);if(_0xf2c65c){_0x277cb1[0x0]=_0xf2c65c;continue;}}_0x277cb1['push'](_0x377ff3);}_0x2b5d96['push']([_0x802a77['view'],_0x277cb1]);}return _0x2b5d96;}),this['listenTo'](_0x346c47,'suggestionLoaded',(_0x3976bf,_0xbc5c67)=>{this['listenTo'](_0xbc5c67,'change:previous',(_0x45632c,_0x5b1d09,_0x5585e2,_0x291422)=>{_0xbc5c67['isInContent']&&(null==_0x5585e2?(this['_updateController'](_0x291422['head']),this['_handleSuggestionControllerDelayed'](_0xbc5c67,!0x1)):(this['_updateController'](_0x5585e2['head']),null==_0x291422&&this['_handleSuggestionControllerDelayed'](_0xbc5c67,!0x0)));}),null!==_0xbc5c67['previous']?this['_updateController'](_0xbc5c67['head']):this['_handleSuggestionControllerDelayed'](_0xbc5c67,!0x1);}),this['listenTo'](_0x346c47,'suggestionUnloaded',(_0x5a36b3,_0x56d463,_0x224997)=>{this['stopListening'](_0x56d463,'change:previous'),this['_handleControllerBuffer']['delete'](_0x56d463),this['_suggestionToController']['has'](_0x56d463)&&this['_destroyController'](_0x56d463),_0x224997&&this['_updateController'](_0x224997['head']);}),this['listenTo'](_0x346c47,'suggestionChanged',(_0xf53612,_0x2f9c3c)=>{this['_updateController'](_0x2f9c3c);}),this['listenTo'](_0x57e15f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x56580c,'addComment',(_0x5db038,{threadId:_0x5e3628,isFromAdapter:_0x1899bd})=>{if(_0x1899bd||!_0x346c47['hasSuggestion'](_0x5e3628))return;const _0x1c5e9d=_0x346c47['getSuggestion'](_0x5e3628);this['_suggestionToController']['get'](_0x1c5e9d)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x42f4ae=this['editor']['plugins']['get']('Annotations'),_0x7e9bb9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18b988=Array['from'](_0x42f4ae['activeAnnotations'],_0x277119=>_0x277119['innerView'])['filter'](_0x233414=>this['_viewToController']['has'](_0x233414)),_0x4e7ffb=[];for(const _0x58b34f of _0x18b988){const _0x39c110=this['_viewToController']['get'](_0x58b34f)['model']['getAllAdjacentSuggestions']();_0x4e7ffb['push'](..._0x39c110['reduce']((_0x545af2,_0x2937be)=>[..._0x545af2,..._0x2937be['getMarkerNames']()],[]));}_0x7e9bb9['activeMarkers']=_0x4e7ffb;}['_addUIComponentsToFactory'](){const _0x4d73a5=this['editor'],_0x59fe39=_0x4d73a5['locale'],_0xa53df0=o(_0x59fe39,'Track\x20changes'),_0x5af2c4=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0xa53df0,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x59fe39,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x59fe39,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x59fe39,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x59fe39,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1cc313 of _0x5af2c4)if(ae(_0x1cc313)){const _0x5eee01=_0x4d73a5['commands']['get'](_0x1cc313['model']['commandName']);_0x1cc313['model']['bind']('isOn','isEnabled')['to'](_0x5eee01,'value','isEnabled');}_0x4d73a5['ui']['componentFactory']['add']('trackChanges',_0x53a477=>this['_createToolbarButton'](_0x53a477,_0x5af2c4,_0xa53df0)),_0x4d73a5['ui']['componentFactory']['add']('menuBar:trackChanges',_0x550107=>this['_createMenuBarMenu'](_0x550107,_0x5af2c4,_0xa53df0));}['_createToolbarButton'](_0x446a87,_0x3cbc45,_0x5536b5){const _0x3eef1f=zt(_0x446a87,Zt),_0x4b32f2=this['editor']['commands']['get']('trackChanges');_0x3eef1f['buttonView']['set']({'tooltip':_0x5536b5,'label':_0x5536b5,'icon':ie}),_0x3eef1f['buttonView']['bind']('isOn')['to'](_0x4b32f2,'value'),_0x3eef1f['buttonView']['on']('execute',()=>{_0x4b32f2['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x3eef1f,_0x3cbc45,{'role':'menu'});const _0xef49ea=[];for(const _0x56f9f1 of _0x3cbc45)ae(_0x56f9f1)&&_0xef49ea['push'](this['editor']['commands']['get'](_0x56f9f1['model']['commandName']));const _0x29d80b=_0x3eef1f['buttonView'];return _0x29d80b['actionView']['unbind']('isEnabled'),_0x29d80b['arrowView']['unbind']('isEnabled'),_0x29d80b['actionView']['bind']('isEnabled')['to'](_0x4b32f2,'isEnabled'),_0x29d80b['arrowView']['bind']('isEnabled')['toMany'](_0xef49ea,'isEnabled',(..._0x3c96b8)=>_0x3c96b8['some'](_0x1629b4=>_0x1629b4)),_0x3eef1f['on']('execute',_0x43a187=>{this['editor']['execute'](_0x43a187['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3eef1f;}['_createMenuBarMenu'](_0x676718,_0x542ea3,_0x28925c){const _0x368a6e=new Kt(_0x676718),_0xdc293=this['editor']['commands']['get']('trackChanges');_0x368a6e['buttonView']['set']({'label':_0x28925c,'icon':ie});const _0x4742ae=new Qt(_0x676718);for(const _0x312be0 of _0x542ea3){if('separator'==_0x312be0['type']){_0x4742ae['items']['add'](new Jt(_0x676718));continue;}const _0x316122=new Xt(_0x676718,_0x368a6e),_0x119b04=new Yt(_0x676718),_0x5192e1=_0x312be0['model'];_0x119b04['bind'](...Object['keys'](_0x5192e1))['to'](_0x5192e1),_0x119b04['delegate']('execute')['to'](_0x368a6e),_0x119b04['on']('execute',()=>{this['editor']['execute'](_0x5192e1['commandName']),this['editor']['editing']['view']['focus']();}),_0x316122['children']['add'](_0x119b04),_0x4742ae['items']['add'](_0x316122);}return _0x368a6e['bind']('isEnabled')['to'](_0xdc293,'isEnabled'),_0x368a6e['panelView']['children']['add'](_0x4742ae),_0x368a6e;}['_initializeController'](_0x5d45fe){const _0x33d44f=this['editor'],_0xec89aa=_0x33d44f['config'],_0x3844cf=_0x33d44f['plugins']['get']('Annotations'),_0x46d7ba=_0x33d44f['plugins']['get']('CommentsRepository'),_0x22b960=_0x33d44f['plugins']['get']('EditorAnnotations'),_0x140784=_0x33d44f['plugins']['get'](_0x505203)['me'],_0x3a0a08=_0xec89aa['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x42eb78,CommentThreadInputView:_0x1c1fc4}=_0x33d44f['plugins']['get']('CommentsUI');let _0x25d251,_0x1b964e;this['_annotationViews']['has'](_0x5d45fe['id'])?(_0x1b964e=this['_annotationViews']['get'](_0x5d45fe['id']),_0x25d251=_0x1b964e['mainView']):(_0x25d251=new _0x3a0a08(_0x33d44f['locale'],_0x5d45fe,_0x140784,{'disableComments':this['_disableComments'],'editorConfig':_0xec89aa['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0xec89aa['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xec89aa['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xec89aa['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1b3aba(_0xec89aa['get']('locale')),'CommentView':_0xec89aa['get']('comments')['CommentView'],'CommentsListView':_0x42eb78,'CommentThreadInputView':_0x1c1fc4}),_0x25d251['acceptButton']['on']('execute',()=>{_0x33d44f['editing']['view']['focus']();}),_0x25d251['discardButton']['on']('execute',()=>{_0x33d44f['editing']['view']['focus']();}),_0x1b964e=_0x3844cf['createAnnotationView'](this['editor']['locale'],_0x25d251),_0x1b964e['bind']('isDirty')['to'](_0x25d251,'isDirty'),_0x1b964e['bind']('length')['to'](_0x25d251),_0x1b964e['bind']('type')['to'](_0x25d251,'type',_0x3e2dc4=>'suggestion-'+_0x3e2dc4),this['_annotationViews']['set'](_0x5d45fe['id'],_0x1b964e));const _0x51b129=_0x46d7ba['createCommentThreadController'](_0x5d45fe['commentThread'],_0x25d251),_0x18566e=new oe(_0x33d44f,_0x5d45fe,_0x25d251,_0x51b129),_0x232889=_0x5d45fe['getAllAdjacentSuggestions']()['filter'](_0x44e86c=>_0x44e86c['isInContent']);_0x25d251['descriptionParts']=_0x33d44f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x232889),this['_suggestionToController']['set'](_0x5d45fe,_0x18566e),this['_viewToController']['set'](_0x25d251,_0x18566e);const _0x23ecc6=_0x3844cf['createAnnotation']({'view':_0x1b964e,'target':()=>{const _0x27dcaa=[],_0xe53a9a=_0x5d45fe['getAllAdjacentSuggestions']()['filter'](_0x26ce1b=>_0x26ce1b['isInContent']);for(const _0x1d470f of _0xe53a9a)_0x27dcaa['push'](..._0x1d470f['getMarkers']());return _0x141286(_0x33d44f['editing'],_0x27dcaa);},'type':()=>'suggestion-'+_0x18566e['view']['type']});_0x46d7ba['_bindAnnotationToEditors'](_0x25d251,_0x23ecc6),_0x3844cf['add'](_0x23ecc6),_0x22b960['registerAnnotation'](_0x23ecc6);}['_destroyController'](_0x38badc){const _0x410d87=this['editor']['plugins']['get']('CommentsRepository'),_0x4d93ec=this['editor']['plugins']['get']('Annotations'),_0x31c2ca=this['_suggestionToController']['get'](_0x38badc),_0x3b877e=_0x31c2ca['view'],_0x30535c=_0x4d93ec['getByInnerView'](_0x3b877e);_0x410d87['_unbindEditors'](_0x3b877e),_0x30535c&&_0x4d93ec['remove'](_0x30535c),this['_suggestionToController']['delete'](_0x38badc),this['_viewToController']['delete'](_0x3b877e),_0x31c2ca['destroy']();}['_updateController'](_0x523108){if(!_0x523108['isInContent']||!this['_suggestionToController']['has'](_0x523108))return;const _0x5bc628=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa6bb5c=this['_suggestionToController']['get'](_0x523108),_0x1dcb5a=_0x523108['getAllAdjacentSuggestions']();_0xa6bb5c['view']['descriptionParts']=_0x5bc628['descriptionFactory']['getDescriptions'](_0x1dcb5a);}['destroy'](){for(const _0x5c6387 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5c6387);for(const _0x2c1a38 of this['_annotationViews']['values']())_0x2c1a38['mainView']['destroy']();super['destroy']();}}function ae(_0x5b3bd9){return'model'in _0x5b3bd9;}class k extends _0x1c9f3d{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x417982){this['editor']['plugins']['get'](p)['adapter']=_0x417982;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4412ec){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4412ec);}['getSuggestions']({skipNotAttached:_0x39baf6=!0x1,toJSON:_0x394145=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x39baf6,'toJSON':_0x394145});}['getSuggestion'](_0x30a0ef){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x30a0ef);}}const T=['Pagination'];class P extends _0x1c9f3d{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4d7b1a=this['editor'];if(_0x4d7b1a['config']['define']('trackChangesData.editorCreator',_0x5d2f09=>{const _0x1a424a=_0x4d7b1a['model']['document']['getRootNames']()['reduce']((_0x59bebd,_0x1c448a)=>(_0x59bebd[_0x1c448a]='',_0x59bebd),{});return _0x4d7b1a['constructor']['create'](_0x1a424a,_0x5d2f09);}),'function'!=typeof _0x4d7b1a['config']['get']('trackChangesData')['editorCreator'])throw new _0x109ba3('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4a92dd){return N(this['editor'],!0x0,_0x4a92dd);}['getDataWithDiscardedSuggestions'](_0xbe918a){return N(this['editor'],!0x1,_0xbe918a);}}class D extends _0x1c9f3d{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x10be31){super(_0x10be31),this['result']='end';}['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 v(_0x2c1d60){return void 0x0!==_0x2c1d60['getRootsAttributes'];}async function N(_0x3933ad,_0x3ab0be,_0x1dca90){const _0x522155=_0xf72f50(_0x3933ad,T);_0x522155['plugins']['push'](p,D),_0x522155['rootsAttributes']=v(_0x3933ad)?_0x3933ad['getRootsAttributes']():void 0x0;const _0x5d52a2=document['createDocumentFragment'](),_0x57ca1e=_0x3933ad['config']['get']('trackChangesData')['editorCreator'],_0x2eeee2=await _0x57ca1e(_0x522155,()=>function(_0x230ebb){const _0x23046f=document['createElement']('div');return _0x230ebb['appendChild'](_0x23046f),_0x23046f;}(_0x5d52a2));!function(_0x3520ca,_0x5e1b3a){const _0x1b00ac=_0x3520ca['model']['document']['getRootNames']()['reduce']((_0x5797bc,_0x28264a)=>(_0x5797bc[_0x28264a]=_0x3520ca['data']['get']({'rootName':_0x28264a}),_0x5797bc),{}),_0xacc52f=_0x3520ca['plugins']['get']('Users')['users']['map'](_0x29015a=>({'id':_0x29015a['id'],'name':_0x29015a['name']})),_0x19827f=_0x3520ca['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x241088=_0x3520ca['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x245377=_0x5e1b3a['plugins']['get']('Users'),_0x4f4823=_0x5e1b3a['plugins']['get']('TrackChangesEditing'),_0x4f7fc4=_0x5e1b3a['plugins']['get']('CommentsRepository');for(const _0x295977 of _0xacc52f)_0x245377['getUser'](_0x295977['id'])||_0x245377['addUser'](_0x295977);_0x245377['me']||_0x245377['useAnonymousUser']();for(const _0xcc5fad of _0x241088)_0x4f7fc4['addCommentThread'](_0xcc5fad);for(const _0x583ab7 of _0x19827f)_0x4f4823['addSuggestionData'](_0x583ab7);_0x5e1b3a['data']['set'](_0x1b00ac);}(_0x3933ad,_0x2eeee2),_0x2eeee2['execute'](_0x3ab0be?'acceptAllSuggestions':'discardAllSuggestions');const _0x242124=v(_0x2eeee2)?_0x2eeee2['getFullData'](_0x1dca90):_0x2eeee2['data']['get'](_0x1dca90);return await _0x2eeee2['destroy'](),_0x242124;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x54db38,PendingActions as _0x59e33d,icons as _0x1089ce}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x50d316,ObservableMixin as _0x25d463,uid as _0xa3dac7,insertToPriorityArray as _0x2d87a0,priorities as _0x275526,logWarning as _0x2b9abd,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x2a332b,View as _0x3759d1,ButtonView as _0x266fe3,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1d3df5,hashObject as _0x1e437b,surroundingMarkersDetector as _0x3cad82,trimHtml as _0x8d55fb,UserView as _0x307e07,getDateTimeFormatter as _0x212d68,getAllMarkersDomElementsSorted as _0x4b736c,sanitizeEditorConfig as _0x581139}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x270d03,LiveRange as _0x216747,LivePosition as _0xf4223e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3ad1c3,toWidget as _0x22e04a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2e2f54,set as _0xcde711,isEqual as _0x1f7f6a,unset as _0x2c6995,omit as Bt}from'lodash-es';import{Delete as _0x277a9,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5234e5,ShiftEnter as _0x36d1dc}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x18789e,_0x27095f){super(_0x18789e),this['_enabledCommands']=_0x27095f,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 _0x2b6d41 of this['editor']['commands']['commands']())_0x2b6d41['affectsData']&&!this['_enabledCommands']['has'](_0x2b6d41)&&_0x2b6d41['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3f3126 of this['editor']['commands']['commands']())_0x3f3126['affectsData']&&!this['_enabledCommands']['has'](_0x3f3126)&&_0x3f3126['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x470eb4,_0x4d75f0){super(_0x470eb4),this['_suggestions']=_0x4d75f0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4f6385){const _0x299bd5=this['_suggestions']['get'](_0x4f6385);if(!_0x299bd5)throw new _0x50d316('track-changes-accept-suggestion-not-found',this);const _0x391481=_0x299bd5['getRanges']();this['editor']['model']['canEditAt'](_0x391481)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x299bd5);}}class B extends ts{['_suggestions'];constructor(_0x34278f,_0x447b06){super(_0x34278f),this['_suggestions']=_0x447b06,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1575c0){const _0x29427e=this['_suggestions']['get'](_0x1575c0);if(!_0x29427e)throw new _0x50d316('track-changes-discard-suggestion-not-found',this);const _0x434a8e=_0x29427e['getRanges']();this['editor']['model']['canEditAt'](_0x434a8e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x29427e);}}function ss(_0x4a1268){return _0x4a1268['sort']((_0x58463a,_0x55d541)=>'deletion'==_0x58463a['type']&&'deletion'!=_0x55d541['type']?-0x1:'deletion'!=_0x58463a['type']&&'deletion'==_0x55d541['type']?0x1:0x0);}function to(_0x4c18ac,_0x295dac){let _0xbda0a6,_0x12560c=0x0;const _0x4bdb24=[],_0x46bb71=_0x295dac['schema'];for(;_0x12560c<_0x4c18ac['length'];){const _0xbafb5f=_0x4c18ac[_0x12560c],_0x148e15=_0x4c18ac[_0x12560c+0x1];_0xbda0a6||(_0xbda0a6=_0x295dac['createPositionBefore'](_0xbafb5f)),co(_0x295dac,_0xbafb5f,_0x148e15)||(_0x4bdb24['push'](_0x295dac['createRange'](_0xbda0a6,_0x46bb71['isObject'](_0xbafb5f)?_0x295dac['createPositionAfter'](_0xbafb5f):_0x295dac['createPositionAt'](_0xbafb5f,'end'))),_0xbda0a6=null),_0x12560c++;}return _0x4bdb24;}function co(_0x3dfbc3,_0x133a7c,_0xda755e){if(!_0xda755e)return!0x1;const _0x1d1760=_0x3dfbc3['createPositionAfter'](_0x133a7c),_0x198a19=_0x3dfbc3['createPositionBefore'](_0xda755e);return _0x1d1760['isTouching'](_0x198a19);}function rs(_0x19fbd4,_0x145692,_0x43afd4){for(;_0x43afd4['length'];){const _0x2e9e60=_0x43afd4['splice'](0x0,0x64);_0x19fbd4['change'](()=>{for(const _0x2cb0e5 of _0x2e9e60)_0x2cb0e5['isInContent']&&_0x145692['execute'](_0x2cb0e5['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x4c4d43,_0x9f63b2,_0x45c053){super(_0x4c4d43),this['_command']=_0x9f63b2,this['_suggestions']=_0x45c053,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x216b48=Array['from'](this['_suggestions']['values']())['some'](_0x8cf135=>_0x8cf135['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x216b48;}['execute'](){const _0x167129=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3ee799 of _0x167129){const _0x53dee7=_0x3ee799['getRanges']();if(!this['editor']['model']['canEditAt'](_0x53dee7))return;}rs(this['editor']['model'],this['_command'],_0x167129);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x213b87,_0x387e50,_0x2a1b1b){super(_0x213b87),this['_command']=_0x387e50,this['_suggestions']=_0x2a1b1b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2513e5=this['editor']['model']['document']['selection'],_0xef7efc=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5a45a7,_0x39d89d){const _0xafc423=Array['from'](_0x5a45a7['getRanges']()),_0x9c5963=new Set();for(const _0x35d65c of _0x39d89d)if(_0x35d65c['isInContent']){for(const _0x414566 of _0xafc423)for(const _0x1ad9bd of _0x35d65c['getRanges']())(_0x414566['isIntersecting'](_0x1ad9bd)||_0x5a45a7['isCollapsed']&&!_0x35d65c['isMultiRange']&&_0x35d65c['next']&&_0x1ad9bd['end']['isTouching'](_0x414566['start']))&&_0x9c5963['add'](_0x35d65c);}return _0x9c5963;}(_0x2513e5,_0xef7efc),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x57423c=ss(Array['from'](this['_selectedSuggestions']));for(const _0x5919eb of _0x57423c){const _0x3522a3=_0x5919eb['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3522a3))return;}rs(this['editor']['model'],this['_command'],_0x57423c);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x25d463(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xad67b0,_0xb9034a){super(),this['id']=_0xb9034a['id'],this['type']=_0xb9034a['type'],this['subType']=_0xb9034a['subType']||null,this['author']=_0xb9034a['author'],this['creator']=_0xb9034a['creator']||_0xb9034a['author'],this['isExternal']=Boolean(_0xb9034a['attributes']&&_0xb9034a['attributes']['@external']),this['data']=null,this['_model']=_0xad67b0,this['_onAccept']=_0xb9034a['onAccept'],this['_onDiscard']=_0xb9034a['onDiscard'],this['_onAttributesChange']=_0xb9034a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xb9034a['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 _0x19caf4=this;for(;_0x19caf4['previous'];)_0x19caf4=_0x19caf4['previous'];return _0x19caf4;}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'](_0x16b490){this['_markerNames']['add'](_0x16b490);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x38c497=>this['_model']['markers']['get'](_0x38c497))['filter'](_0x30831d=>_0x30831d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x583f72=>{for(const _0x1d40b1 of this['getMarkers']())_0x583f72['removeMarker'](_0x1d40b1);}),this['_markerNames']['clear']();}['removeMarker'](_0x5c2c5b){this['_model']['change'](_0x3f6daa=>{_0x3f6daa['removeMarker'](_0x5c2c5b);}),this['_markerNames']['delete'](_0x5c2c5b);}['addRange'](_0x5eaa42){const _0x41f426='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x41f426),this['_model']['change'](_0x24ad66=>{_0x24ad66['addMarker'](_0x41f426,{'range':_0x5eaa42,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x38ad7f){for(const _0x37849f of this['getRanges']())if(_0x37849f['isIntersecting'](_0x38ad7f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4d9f19=>_0x4d9f19['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xfbc08a,_0x510d9c)=>[..._0xfbc08a,..._0x510d9c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1971e8=this['getRanges']();if(0x1!=_0x1971e8['length'])return null;const _0x133a18=_0x1971e8[0x0],_0x208d06=_0x133a18['start']['nodeAfter'],_0x385284=_0x133a18['end']['nodeBefore'];return _0x208d06 instanceof _0x270d03?_0x208d06!=_0x385284?null:_0x208d06: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 _0xbd50eb=[];let _0xe9088b=this['head'];for(;_0xe9088b;)_0xbd50eb['push'](_0xe9088b),_0xe9088b=_0xe9088b['next'];return _0xbd50eb;}['setAttribute'](_0x215193,_0x8432c){const _0x435104=_0x2e2f54(this['attributes']);_0xcde711(_0x435104,_0x215193,_0x8432c),_0x1f7f6a(_0x435104,this['attributes'])||(this['attributes']=_0x435104,this['_onAttributesChange'](_0x435104));}['removeAttribute'](_0x10466a){const _0x4ec008=_0x2e2f54(this['attributes']);_0x2c6995(_0x4ec008,_0x10466a),_0x1f7f6a(_0x4ec008,this['attributes'])||(this['attributes']=_0x4ec008,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 _0xa3dac7()['substr'](0x1,0x5);}}function o(_0x2c4bc3,_0x2b0338,_0x2e6ee9){const t=_0x2c4bc3['t'];switch(_0x2b0338){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'*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',_0x2e6ee9);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2e6ee9);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2e6ee9);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2e6ee9);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2e6ee9);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',_0x2e6ee9);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2e6ee9);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x2e6ee9);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2e6ee9);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2e6ee9);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2e6ee9);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2e6ee9);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2e6ee9);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2e6ee9);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2e6ee9);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2e6ee9);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2e6ee9);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2e6ee9);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2e6ee9);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2e6ee9);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2e6ee9);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2e6ee9);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2e6ee9);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'},_0x2e6ee9);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2e6ee9);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2e6ee9);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2e6ee9);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2e6ee9);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2e6ee9);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'},_0x2e6ee9);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2e6ee9);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2e6ee9);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2e6ee9);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2e6ee9);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'},_0x2e6ee9);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2e6ee9);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'},_0x2e6ee9);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'},_0x2e6ee9);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2e6ee9);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'},_0x2e6ee9);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2e6ee9);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'},_0x2e6ee9);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2e6ee9);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2e6ee9);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});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 t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2e6ee9);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2e6ee9);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x2b0338;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x11479d,_0x3dedb2){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x11479d,this['_locale']=_0x3dedb2;}['getDescriptions'](_0x27b3a6){const _0x2c320d=[],_0x354680=new Set(),_0x4a0ccb=new Set();for(let _0x81185=0x0;_0x81185<_0x27b3a6['length'];_0x81185++){const _0x1fcc6c=_0x27b3a6[_0x81185];if(!_0x1fcc6c['isInContent'])continue;const _0x4ee904=this['_handleCustomCallbackDescription'](_0x1fcc6c);if(_0x4ee904){if(null!=_0x1fcc6c['subType']){if(_0x354680['has'](_0x1fcc6c['subType']))continue;_0x354680['add'](_0x1fcc6c['subType']);}_0x2c320d['push'](_0x4ee904);}else{if('attribute'!=_0x1fcc6c['type'])'insertion'!=_0x1fcc6c['type']&&'deletion'!=_0x1fcc6c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2c320d,_0x1fcc6c,_0x27b3a6[_0x81185+0x1]);else{const _0x16f3ee=_0x1fcc6c['data']['key'];if(_0x4a0ccb['has'](_0x16f3ee))continue;_0x4a0ccb['add'](_0x1fcc6c['data']['key']),_0x16f3ee==m?this['_handleRenameSuggestionDescription'](_0x2c320d,_0x1fcc6c):this['_handleAttributeSuggestionDescription'](_0x2c320d,_0x1fcc6c);}}}return this['_resolveDescriptionItems'](_0x2c320d);}['registerDescriptionCallback'](_0x302c6c){this['_customCallbacks']['push'](_0x302c6c);}['registerElementLabel'](_0x47c903,_0x284328,_0x4556c8=_0x275526['normal']){'function'==typeof _0x47c903?_0x2d87a0(this['_itemLabelsCallbacks'],{'matchingCallback':_0x47c903,'label':_0x284328,'priority':_0x4556c8}):this['_itemLabels']['set'](_0x47c903,_0x284328);}['registerAttributeLabel'](_0x2a5c9c,_0x6b6459){this['_attributeLabels']['set'](_0x2a5c9c,_0x6b6459);}['getItemLabel'](_0x51a79c,_0x31efbc=0x1){let _0x3a84e6;for(const _0x2f5b3c of this['_itemLabelsCallbacks'])if(_0x2f5b3c['matchingCallback'](_0x51a79c)){_0x3a84e6=_0x2f5b3c['label'];break;}return _0x3a84e6||(_0x3a84e6=this['_itemLabels']['get'](_0x51a79c['name'])),_0x3a84e6?_0x3a84e6(_0x31efbc):0x1!==_0x31efbc?_0x31efbc+'\x20'+_0x51a79c['name']+'s':''+_0x51a79c['name'];}['_addDescriptionItems'](_0x2308e1,_0x7d8231){const _0x3ff877=_0x7d8231['getFirstRange']()['getWalker'](),_0x1d2c60='insertion'==_0x7d8231['type']?'add':'remove';for(const _0x1d56cd of _0x3ff877){const _0x46799c=_0x1d56cd['item'],_0x351f7f=_0x2308e1[_0x2308e1['length']-0x1];if(_0x46799c['is']('$textProxy'))_0x351f7f&&_0x351f7f['type']['indexOf']('Container')>-0x1&&_0x2308e1['pop'](),_0x351f7f&&'text'==_0x351f7f['type']?_0x351f7f[_0x1d2c60]+=_0x46799c['data']:_0x2308e1['push']({'type':'text','add':'add'==_0x1d2c60?_0x46799c['data']:'','remove':'remove'==_0x1d2c60?_0x46799c['data']:''});else{if(this['_schema']['isObject'](_0x46799c)){const _0x7d1b15=_0x46799c;if(_0x351f7f&&_0x351f7f['type']['indexOf']('Container')>-0x1&&_0x2308e1['pop'](),'elementEnd'==_0x1d56cd['type'])continue;_0x351f7f&&_0x351f7f['type']==_0x1d2c60+'Object'&&_0x351f7f['element']['name']==_0x7d1b15['name']?_0x351f7f['quantity']++:_0x2308e1['push']({'type':_0x1d2c60+'Object','element':_0x7d1b15,'quantity':0x1}),_0x3ff877['skip'](_0x5de0c8=>!('elementEnd'==_0x5de0c8['type']&&_0x5de0c8['item']==_0x46799c));}else{if(this['_schema']['checkChild'](_0x46799c,'$text')||_0x46799c['is']('element','softBreak')){const _0x4449e1=_0x46799c;if('add'==_0x1d2c60&&'elementStart'==_0x1d56cd['type']||'remove'==_0x1d2c60&&'elementEnd'==_0x1d56cd['type'])continue;if(_0x351f7f&&-0x1==_0x351f7f['type']['indexOf']('Container')){'text'==_0x351f7f['type']&&(_0x351f7f[_0x1d2c60]+='\x0a');continue;}let _0x4622df;if(_0x4622df='add'==_0x1d2c60?_0x4449e1['nextSibling']&&!this['_schema']['isObject'](_0x4449e1['nextSibling'])?_0x4449e1['nextSibling']:null:_0x4449e1['previousSibling']&&!this['_schema']['isObject'](_0x4449e1['previousSibling'])?_0x4449e1['previousSibling']:null,_0x4449e1['isEmpty']||_0x4622df&&_0x4622df['isEmpty']){const _0x3966bd=_0x4622df&&_0x4622df['isEmpty']?_0x4622df:_0x4449e1;_0x351f7f&&_0x351f7f['type']==_0x1d2c60+'EmptyContainer'&&_0x351f7f['element']['name']==_0x3966bd['name']?_0x351f7f['quantity']++:_0x2308e1['push']({'type':_0x1d2c60+'EmptyContainer','element':_0x3966bd,'quantity':0x1});}else _0x2308e1['push']({'type':_0x1d2c60+'Container','element':_0x4449e1});}}}}}['_resolveDescriptionItems'](_0x24c954){const _0xab49b4=this['_locale'],_0x51d87f=[],_0x1e12ba=[],_0x4cb2da=[];for(const _0x494d7d of _0x24c954)switch(_0x494d7d['type']){case'text':if(_0x494d7d['add']=_0x494d7d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x494d7d['remove']=_0x494d7d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x494d7d['add']&&''!=_0x494d7d['remove']){_0x51d87f['push']({'type':'replace','content':o(_0xab49b4,'REPLACE_TEXT',['\x22'+_0x494d7d['remove']+'\x22','\x22'+_0x494d7d['add']+'\x22'])});continue;}if(null!=_0x494d7d['add']['match'](/^ +$/)){_0x51d87f['push']({'type':'insertion','content':o(_0xab49b4,'*Insert:*\x20%0',o(_0xab49b4,'ELEMENT_SPACE',_0x494d7d['add']['length']))});continue;}if(null!=_0x494d7d['remove']['match'](/^ +$/)){_0x51d87f['push']({'type':'deletion','content':o(_0xab49b4,'*Remove:*\x20%0',o(_0xab49b4,'ELEMENT_SPACE',_0x494d7d['remove']['length']))});continue;}if(''!=_0x494d7d['add']){_0x51d87f['push']({'type':'insertion','content':o(_0xab49b4,'*Insert:*\x20%0','\x22'+_0x494d7d['add']+'\x22')});continue;}_0x51d87f['push']({'type':'deletion','content':o(_0xab49b4,'*Remove:*\x20%0','\x22'+_0x494d7d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x51d87f['push']({'type':'insertion','content':o(_0xab49b4,'*Insert:*\x20%0',this['getItemLabel'](_0x494d7d['element'],_0x494d7d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x51d87f['push']({'type':'deletion','content':o(_0xab49b4,'*Remove:*\x20%0',this['getItemLabel'](_0x494d7d['element'],_0x494d7d['quantity']))});continue;case'addContainer':_0x51d87f['push']({'type':'insertion','content':o(_0xab49b4,'*Split:*\x20%0',this['getItemLabel'](_0x494d7d['element'],_0x494d7d['quantity']))});continue;case'removeContainer':_0x51d87f['push']({'type':'deletion','content':o(_0xab49b4,'*Merge:*\x20%0',this['getItemLabel'](_0x494d7d['element'],_0x494d7d['quantity']))});continue;case'addFormat':_0x1e12ba['push'](_0x494d7d['key']);continue;case'removeFormat':_0x4cb2da['push'](_0x494d7d['key']);continue;default:_0x51d87f['push'](_0x494d7d);}if(_0x1e12ba['length']){const _0x4d9c16=_0x1e12ba['map'](_0x1e6134=>this['_attributeLabels']['has'](_0x1e6134)?this['_attributeLabels']['get'](_0x1e6134):_0x1e6134)['join'](',\x20');_0x51d87f['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4d9c16)});}if(_0x4cb2da['length']){const _0xb523bb=_0x4cb2da['map'](_0x5ea597=>this['_attributeLabels']['has'](_0x5ea597)?this['_attributeLabels']['get'](_0x5ea597):_0x5ea597)['join'](',\x20');_0x51d87f['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xb523bb)});}return _0x51d87f;}['_handleCustomCallbackDescription'](_0x57221f){for(const _0x1c7cae of this['_customCallbacks']){const _0x69ff3a=_0x1c7cae(_0x57221f);if(_0x69ff3a&&'type'in _0x69ff3a)return _0x69ff3a;}}['_handleAttributeSuggestionDescription'](_0x31e4a3,_0x4dac85){const _0x1dda9b=_0x4dac85['data'],_0xc318a1=void 0x0===_0x1dda9b['newValue']?'removeFormat':'addFormat';_0x31e4a3['push']({'type':_0xc318a1,'key':_0x1dda9b['key']});}['_handleRenameSuggestionDescription'](_0x4c6aef,_0x19951b){_0x4c6aef['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x19951b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x48a6af,_0x261c63,_0x5b95d1){if(this['_addDescriptionItems'](_0x48a6af,_0x261c63),_0x5b95d1&&_0x5b95d1['getFirstRange']()&&!_0x261c63['getFirstRange']()['end']['isEqual'](_0x5b95d1['getFirstRange']()['start'])){const _0x48db61=_0x48a6af[_0x48a6af['length']-0x1],_0x4e860c='insertion'==_0x261c63['type']?'add':'remove';_0x48db61&&'text'==_0x48db61['type']&&(_0x48db61[_0x4e860c]+='\x0a');}}}class E extends _0x54db38{['afterInit'](){const _0x5ec9f9=this['editor'],_0x3bab8b=_0x5ec9f9['plugins']['get']('TrackChangesEditing');_0x5ec9f9['commands']['get']('showAIAssistant')&&_0x3bab8b['enableCommand']('showAIAssistant');}}class V extends _0x54db38{['afterInit'](){const _0x41556c=this['editor'],_0x10825a=_0x41556c['locale'];if(!_0x41556c['plugins']['has']('AlignmentEditing'))return;const _0x2aa3e7=_0x41556c['plugins']['get']('TrackChangesEditing');_0x2aa3e7['enableDefaultAttributesIntegration']('alignment'),_0x2aa3e7['registerBlockAttribute']('alignment'),_0x2aa3e7['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x10825a,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x548002=this['editor'],_0x540169=_0x548002['locale'];_0x548002['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55029a=>{if('formatBlock'!=_0x55029a['type'])return;const {data:_0x33bc5a}=_0x55029a;if(_0x33bc5a&&'alignment'==_0x33bc5a['commandName']){const _0x1246ed=_0x33bc5a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x540169,'*Format:*\x20%0',function(_0x236a62){switch(_0x236a62){case'left':return o(_0x540169,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x540169,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x540169,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x540169,'FORMAT_JUSTIFY_TEXT');}}(_0x1246ed))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x54db38{['afterInit'](){const _0x5c226e=this['editor'],_0x2c84ff=_0x5c226e['plugins']['get']('TrackChangesEditing'),_0x3c232c=_0x5c226e['locale'];for(const _0x362f19 of ti){if(!_0x5c226e['plugins']['has'](_0x362f19))continue;const _0x87e0db=_0x362f19['slice'](0x0,-0x7)['toLowerCase'](),_0x14c9dd='FORMAT_'+_0x87e0db['toUpperCase']();_0x2c84ff['enableDefaultAttributesIntegration'](_0x87e0db),_0x2c84ff['registerInlineAttribute'](_0x87e0db),_0x2c84ff['descriptionFactory']['registerAttributeLabel'](_0x87e0db,o(_0x3c232c,_0x14c9dd));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x62899c=this['editor'],_0x2e705f=_0x62899c['locale'],_0x3d7721=_0x62899c['plugins']['get']('TrackChangesEditing');function _0x2fe3a8(_0x512e7a,_0x559e39){_0x3d7721['descriptionFactory']['registerDescriptionCallback'](_0x1bef46=>{if('formatInline'!=_0x1bef46['type'])return;const {data:_0x5dcd5f}=_0x1bef46;return _0x5dcd5f&&_0x5dcd5f['commandName']===_0x512e7a?_0x5dcd5f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2e705f,'*Format:*\x20%0',_0x559e39)}:{'type':'format','content':o(_0x2e705f,'*Remove\x20format:*\x20%0',_0x559e39)}:void 0x0;});}_0x2fe3a8('bold',o(_0x2e705f,'FORMAT_BOLD')),_0x2fe3a8('italic',o(_0x2e705f,'FORMAT_ITALIC')),_0x2fe3a8('underline',o(_0x2e705f,'FORMAT_UNDERLINE')),_0x2fe3a8('code',o(_0x2e705f,'FORMAT_CODE')),_0x2fe3a8('strikethrough',o(_0x2e705f,'FORMAT_STRIKETHROUGH')),_0x2fe3a8('subscript',o(_0x2e705f,'FORMAT_SUBSCRIPT')),_0x2fe3a8('superscript',o(_0x2e705f,'FORMAT_SUPERSCRIPT'));}}class O extends _0x54db38{['afterInit'](){const _0xa262ab=this['editor'],_0x57a8d4=_0xa262ab['locale'];if(!_0xa262ab['plugins']['has']('BlockQuoteEditing'))return;const _0x4912e0=_0xa262ab['plugins']['get']('TrackChangesEditing'),_0x2e69fc=this['editor']['commands']['get']('blockQuote');_0x4912e0['enableCommand']('blockQuote',(_0x58a798,_0xb4b396={})=>{const _0x52aebb=this['editor']['model']['document']['selection'],_0x57aa01=_0xb4b396&&void 0x0!==_0xb4b396['forceValue']?_0xb4b396['forceValue']:!_0x2e69fc['value'];let _0x4422f3=[];if(_0x57aa01){const _0x539b45=Array['from'](_0x52aebb['getSelectedBlocks']())['filter'](_0x1e0943=>oo(_0x1e0943)||function(_0x2dccb7,_0x2afd19){const _0x4e1b0f=_0x2afd19['checkChild'](_0x2dccb7['parent'],'blockQuote'),_0x50ca55=_0x2afd19['checkChild'](['$root','blockQuote'],_0x2dccb7);return _0x4e1b0f&&_0x50ca55;}(_0x1e0943,this['editor']['model']['schema']));_0x4422f3=to(_0x539b45,_0xa262ab['model']);}else{const _0x2568c6=Array['from'](_0x52aebb['getSelectedBlocks']())['filter'](_0x9bc330=>oo(_0x9bc330));_0x4422f3=to(_0x2568c6,_0xa262ab['model']);}_0xa262ab['model']['change'](()=>{for(const _0x3395e0 of _0x4422f3)_0x4912e0['markBlockFormat'](_0x3395e0,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x57aa01}]});});}),_0x4912e0['descriptionFactory']['registerDescriptionCallback'](_0x472529=>{const {data:_0x12ed0e}=_0x472529;if(_0x12ed0e&&'blockQuote'==_0x12ed0e['commandName']){const _0x312717=o(_0x57a8d4,'ELEMENT_BLOCK_QUOTE');return _0x12ed0e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x57a8d4,'*Set\x20format:*\x20%0',_0x312717)}:{'type':'format','content':o(_0x57a8d4,'*Remove\x20format:*\x20%0',_0x312717)};}});}}function oo(_0x1d9b15){return'blockQuote'==_0x1d9b15['parent']['name'];}class G extends _0x54db38{['afterInit'](){const _0x1f0a27=this['editor'];_0x1f0a27['plugins']['has']('CaseChange')&&(_0x1f0a27['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1f0a27['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1f0a27['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x54db38{['afterInit'](){const _0x306e49=this['editor'];_0x306e49['commands']['get']('ckbox')&&_0x306e49['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x54db38{['afterInit'](){const _0x205eb2=this['editor'];if(!_0x205eb2['plugins']['has']('CodeBlock'))return;const _0x43ce5a=_0x205eb2['plugins']['get']('TrackChangesEditing'),_0x1f3a19=_0x205eb2['locale'],_0x785345=_0x205eb2['config']['get']('codeBlock')['languages'],_0x5e9ab5=_0x205eb2['commands']['get']('codeBlock');_0x43ce5a['enableCommand']('indentCodeBlock'),_0x43ce5a['enableCommand']('outdentCodeBlock'),_0x43ce5a['enableCommand']('codeBlock',(_0x51dee9,_0xcf2d48={})=>{const _0x24169d=_0x205eb2['model'],_0x45959d=_0x205eb2['model']['document']['selection'],_0x31b6a9=_0xcf2d48&&void 0x0!==_0xcf2d48['forceValue']?_0xcf2d48['forceValue']:!_0x5e9ab5['value'];let _0x24da77;_0xcf2d48['language']||(_0xcf2d48['language']=_0x785345[0x0]['language']),_0x24da77=_0x31b6a9?Array['from'](_0x45959d['getSelectedBlocks']())['filter'](_0x5c3db4=>eo(_0x5c3db4)||function(_0x516641,_0x501595){if(_0x516641['is']('rootElement')||_0x501595['isLimit'](_0x516641))return!0x1;return _0x501595['checkChild'](_0x516641['parent'],'codeBlock');}(_0x5c3db4,_0x24169d['schema'])):Array['from'](_0x45959d['getSelectedBlocks']())['filter'](_0x2faeea=>eo(_0x2faeea));const _0x4c060b=to(_0x24da77,_0x24169d);_0x24169d['change'](()=>{for(const _0xf9ce6b of _0x4c060b)_0x43ce5a['markBlockFormat'](_0xf9ce6b,{'commandName':'codeBlock','commandParams':[{..._0xcf2d48,'forceValue':_0x31b6a9}],'formatGroupId':'blockName'});});}),(_0x43ce5a['descriptionFactory']['registerElementLabel']('codeBlock',_0x303f7e=>o(_0x1f3a19,'ELEMENT_CODE_BLOCK',_0x303f7e)),_0x43ce5a['descriptionFactory']['registerDescriptionCallback'](_0x3c1358=>{if('formatBlock'!=_0x3c1358['type'])return;const _0x364e34=_0x1f3a19['t'],{data:_0x44352a}=_0x3c1358;if(!_0x44352a||'codeBlock'!=_0x44352a['commandName'])return;const _0x1768e0=_0x44352a['commandParams'][0x0]['language'],_0x41472b=_0x364e34(_0x785345['find'](_0x30a912=>_0x30a912['language']===_0x1768e0)['label'])['toLowerCase']();return _0x44352a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1f3a19,'*Set\x20format:*\x20%0',o(_0x1f3a19,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x41472b+')')}:{'type':'format','content':o(_0x1f3a19,'*Remove\x20format:*\x20%0',o(_0x1f3a19,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2e0a03){return'codeBlock'==_0x2e0a03['name'];}class H extends _0x54db38{['afterInit'](){const _0x4d539a=this['editor'];if(!_0x4d539a['plugins']['has']('CommentsEditing'))return;_0x4d539a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x35d01d,_0x18ff7a,_0xb927ef){const _0x7f4586=[];for(const _0xe92ef5 of _0x18ff7a['getItems']())_0xe92ef5['hasAttribute'](_0x35d01d)&&_0x7f4586['push'](_0xb927ef['createRangeOn'](_0xe92ef5));return _0x7f4586;}function _e(_0x5e39e5,_0x34fb2c,{showActiveMarker:_0x2caa39=!0x0}={}){const _0x3c6525=_0x5e39e5['plugins']['get']('TrackChangesEditing');return(_0x2fef41,_0x2eb511,_0x2353ae)=>{if(!_0x2353ae['consumable']['test'](_0x2eb511['markerRange'],_0x2fef41['name']))return;const _0x28f1bd=_0x2eb511['markerRange']['getWalker'](),_0x28ea1d=_0x2eb511['markerRange']['start'],_0x4f1d33=_0x5e39e5['model']['schema'];let _0x3456d6=null,_0x1f7beb=null,_0x178091=!0x1,_0x43ee24=!0x1;for(const _0x3bbabf of _0x28f1bd){const _0x375623=_0x3bbabf['item'];_0x178091=_0x178091||_0x4f1d33['isContent'](_0x375623);const _0x429c32=_0x2353ae['mapper']['toViewElement'](_0x375623);if(_0x429c32&&_0x429c32['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3bbabf['type']&&(_0x4f1d33['isBlock'](_0x375623)&&!_0x4f1d33['isLimit'](_0x375623)&&(_0x375623['nextSibling']||_0x28ea1d['isAtEnd']?_0x3456d6&&_0x3456d6['parent']==_0x375623||(_0x3456d6=_0x375623,_0x1cf803(_0x3bbabf['previousPosition']),_0x43ee24=!0x0):_0x1f7beb=_0x1f7beb||_0x3bbabf['previousPosition']));}function _0x1cf803(_0x51b460){const _0x5e5cc7=_0x2353ae['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x34fb2c}),_0xf7cfb9=_0x2353ae['mapper']['toViewPosition'](_0x51b460);_0x2caa39&&_0x3c6525['activeMarkers']['includes'](_0x2eb511['markerName'])&&_0x2353ae['writer']['addClass']('ck-suggestion-marker--active',_0x5e5cc7),_0x2353ae['writer']['insert'](_0xf7cfb9,_0x5e5cc7),_0x2353ae['mapper']['bindElementToMarker'](_0x5e5cc7,_0x2eb511['markerName']);}_0x178091||_0x43ee24||!_0x1f7beb||_0x1cf803(_0x1f7beb);};}class q extends _0x54db38{static get['requires'](){return[_0x277a9];}['init'](){const _0x3a7427=this['editor'],_0x7dc146=_0x3a7427['plugins']['get']('TrackChangesEditing');_0x7dc146['enableCommand']('delete');const _0x404556=_0x3a7427['commands']['get']('deleteForward');_0x7dc146['enableCommand']('deleteForward',(_0x5a6779,_0x582fa7={})=>{const _0x5a150c=_0x3a7427['model']['createSelection'](_0x3a7427['model']['document']['selection']);_0x5a150c['isCollapsed']&&_0x3a7427['model']['modifySelection'](_0x5a150c,{'direction':'forward','unit':_0x582fa7['unit']});const _0x2dca35=_0x5a150c['getFirstRange'](),_0x159b20=_0x216747['fromRange'](_0x2dca35);let _0x44aa1e;_0x5a6779(_0x582fa7),_0x44aa1e='$graveyard'==_0x159b20['root']['rootName']?_0x3a7427['model']['createRange'](_0x2dca35['start']):_0x3a7427['model']['createRange'](_0x159b20['start'],_0x159b20['end']),_0x159b20['detach'](),_0x3a7427['model']['enqueueChange'](_0x404556['buffer']['batch'],_0xbc0f3b=>{_0x404556['buffer']['lock'](),_0xbc0f3b['setSelection'](_0xbc0f3b['createRange'](_0x44aa1e['end'])),_0x404556['buffer']['unlock']();});}),_0x3a7427['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x3a7427,'merge'),{'priority':'high'}),_0x3a7427['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3b2d69,_0x301de2,_0x518036)=>{_0x518036['options']['showSuggestionHighlights']&&_e(_0x3a7427,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3b2d69,_0x301de2,_0x518036);},{'priority':'high'}),_0x3a7427['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x210d34,_0x2f0ae3,_0x43c834)=>{const _0x136187=_0x43c834['mapper']['markerNameToElements'](_0x2f0ae3['markerName']);if(_0x136187){for(const _0x3e7526 of _0x136187)_0x3e7526['is']('uiElement')&&(_0x43c834['mapper']['unbindElementFromMarkerName'](_0x3e7526,_0x2f0ae3['markerName']),_0x43c834['writer']['remove'](_0x3e7526));}},{'priority':'high'});}}class z extends _0x54db38{['afterInit'](){const _0x157663=this['editor'];if(!_0x157663['plugins']['has']('ListEditing'))return;const _0x5ce131=_0x157663['locale'],_0x39dec9=_0x157663['plugins']['get']('TrackChangesEditing'),_0x1fdf5c=_0x157663['plugins']['has']('TodoListEditing'),_0x879aaa=!!_0x157663['config']['get']('list.multiBlock');function _0x452833(_0x5647d9){return{'type':'format','content':''+o(_0x5ce131,'*Set\x20format:*\x20%0',_0x5647d9)};}function _0x5012ec(_0x149fb5){return{'type':'format','content':''+o(_0x5ce131,'*Remove\x20format:*\x20%0',_0x149fb5)};}_0x39dec9['enableDefaultAttributesIntegration']('numberedList'),_0x39dec9['enableDefaultAttributesIntegration']('bulletedList'),_0x39dec9['enableDefaultAttributesIntegration']('customNumberedList'),_0x39dec9['enableDefaultAttributesIntegration']('customBulletedList'),_0x39dec9['enableDefaultAttributesIntegration']('indentList'),_0x39dec9['enableDefaultAttributesIntegration']('outdentList'),_0x39dec9['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x39dec9['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x39dec9['registerBlockAttribute']('listItemId'),_0x39dec9['registerBlockAttribute']('listType'),_0x39dec9['registerBlockAttribute']('listIndent'),_0x879aaa&&(_0x39dec9['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x39dec9['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1fdf5c&&(_0x39dec9['enableDefaultAttributesIntegration']('todoList'),_0x39dec9['enableDefaultAttributesIntegration']('checkTodoList'),_0x39dec9['registerBlockAttribute']('todoListChecked'),_0x39dec9['descriptionFactory']['registerDescriptionCallback'](_0x1601e5=>{const {data:_0x3049bc}=_0x1601e5;if(_0x3049bc&&'todoListChecked'==_0x3049bc['key'])return{'type':'format','content':_0x3049bc['newValue']?o(_0x5ce131,'*Check\x20item*'):o(_0x5ce131,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2d1a4f=>{if(_0x2d1a4f['batch']['isUndo'])return!0x1;let _0x5d9281=!0x1;const _0x1ae95b=_0x39dec9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2436a9=>'todoListChecked'===_0x39dec9['_getAttributeKey'](_0x2436a9));for(const _0x48245b of _0x1ae95b){'todo'!=_0x48245b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x39dec9['_findSuggestions'](_0x48245b['getFirstRange'](),'attribute')['find'](_0x52c70b=>'listType'===_0x39dec9['_getAttributeKey'](_0x52c70b['suggestion']))||(_0x2d1a4f['removeMarker'](_0x48245b['getFirstMarker']()),_0x5d9281=!0x0));}return _0x5d9281;})),_0x39dec9['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5ce131,'FORMAT_INDENT'));const _0x2726a7={'type':'format','content':''};_0x39dec9['descriptionFactory']['registerDescriptionCallback'](_0x35abb1=>{const {data:_0x42efd5}=_0x35abb1;if(!_0x42efd5||'listType'!=_0x42efd5['key'])return;let _0x398fa6=_0x35abb1['head'];for(;_0x398fa6;){if(_0x398fa6['data']&&(('listStyle'==_0x398fa6['data']['key']||'listMarkerStyle'==_0x398fa6['data']['key'])&&(_0x398fa6['data']['newValue']&&'default'!=_0x398fa6['data']['newValue']||'default'!=_0x398fa6['data']['oldValue']&&!_0x42efd5['newValue'])||!_0x879aaa&&_0x398fa6['data']['key']==m))return _0x2726a7;_0x398fa6=_0x398fa6['next'];}if(null==_0x42efd5['newValue'])switch(_0x42efd5['oldValue']){case'bulleted':return _0x5012ec(o(_0x5ce131,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5012ec(o(_0x5ce131,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5012ec(o(_0x5ce131,'ELEMENT_TODO_LIST'));}switch(_0x42efd5['newValue']){case'bulleted':return _0x452833(o(_0x5ce131,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x452833(o(_0x5ce131,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x452833(o(_0x5ce131,'ELEMENT_TODO_LIST'));}}),_0x39dec9['descriptionFactory']['registerDescriptionCallback'](_0x30eb37=>{const {data:_0x403cd5}=_0x30eb37;if(_0x403cd5&&'listIndent'==_0x403cd5['key'])return null==_0x403cd5['newValue']||null==_0x403cd5['oldValue']&&0x0==_0x403cd5['newValue']?_0x2726a7:void 0x0;}),_0x39dec9['descriptionFactory']['registerDescriptionCallback'](_0x3046fd=>{if('attribute'!=_0x3046fd['type'])return;const {data:_0x55bebf}=_0x3046fd;if(!_0x55bebf||'listItemId'!=_0x55bebf['key'])return;const _0x169e96=le(_0x3046fd);return'newValue'==_0x169e96?{'type':'format','content':o(_0x5ce131,'*Merge:*\x20list\x20item')}:'oldValue'==_0x169e96?{'type':'format','content':o(_0x5ce131,'*Split:*\x20list\x20item')}:_0x2726a7;}),_0x157663['model']['document']['registerPostFixer'](_0x49d825=>this['listItemIdFixer'](_0x49d825)),_0x157663['model']['document']['registerPostFixer'](_0x62adce=>this['noTrackChangesFixer'](_0x62adce)),_0x157663['model']['document']['registerPostFixer'](_0x4944d3=>this['assureChains'](_0x4944d3)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x6850dc){if(_0x6850dc['batch']['isUndo']||!_0x6850dc['batch']['isLocal'])return!0x1;let _0x133f00=!0x1;const _0x4867a4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e5270=>_0x5e5270['data']&&'listItemId'==_0x5e5270['data']['key'])['filter'](_0x18817e=>_0x18817e['data']['newValue']&&_0x18817e['data']['oldValue']);for(const _0x53757f of _0x4867a4)le(_0x53757f)||(_0x6850dc['removeMarker'](_0x53757f['getFirstMarker']()),_0x133f00=!0x0);return _0x133f00;}['noTrackChangesFixer'](_0x3803ec){if(_0x3803ec['batch']['isUndo']||!_0x3803ec['batch']['isLocal'])return!0x1;const _0x5d1de1=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5d1de1['trackChangesCommand']['value'])return!0x1;let _0x498572=!0x1;const _0x5b9732=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1f7498=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4a6ec1=>'attribute'==_0x4a6ec1['type'])['filter'](_0x37c630=>_0x5b9732['includes'](_0x37c630['attributeKey']));if(0x0==_0x1f7498['length'])return _0x498572;for(const _0x4741ab of _0x1f7498){const _0x233171=_0x5d1de1['_findSuggestions'](_0x4741ab['range'],'attribute')['filter'](_0x4bc520=>!_0x4bc520['meta']['isNextTo'])['map'](_0xb102c5=>_0xb102c5['suggestion'])['filter'](_0x36b2a2=>{const _0x271444=_0x5d1de1['_getAttributeKey'](_0x36b2a2);return _0x5b9732['includes'](_0x271444);});if(_0x233171['length']){for(const _0x440deb of _0x233171)_0x3803ec['removeMarker'](_0x440deb['getFirstMarker']());_0x498572=!0x0;}}return _0x498572;}['assureChains'](_0x4b8750){if(_0x4b8750['batch']['isUndo']||!_0x4b8750['batch']['isLocal'])return!0x1;const _0x2ff222=this['editor']['plugins']['get']('TrackChangesEditing');let _0x3596ea=!0x1;const _0x566718=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x44fed0 of _0x2ff222['getSuggestions']({'skipNotAttached':!0x0})){const _0x56b981=_0x2ff222['_findSuggestions'](_0x44fed0['getFirstRange'](),'attribute')['map'](_0x977215=>_0x977215['suggestion'])['filter'](_0x47f717=>_0x47f717['data']&&_0x566718['includes'](_0x47f717['data']['key']));if(!_0x56b981['length'])continue;const _0x38ac14=_0x56b981[0x0]['head']['attributes']['groupId'];if(!_0x56b981['every'](_0x19281c=>_0x19281c['attributes']['groupId']===_0x38ac14)){for(const _0x21d182 of _0x56b981)_0x10f92e(_0x21d182,_0x38ac14)&&(_0x3596ea=!0x0);}}return _0x3596ea;function _0x4cb44c(_0x154359,_0x59c949){for(const _0x2d6198 of _0x2ff222['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1104fa=>'attribute'==_0x1104fa['type']&&_0x1104fa['attributes']['groupId']==_0x154359))_0x2d6198['setAttribute']('groupId',_0x59c949);}function _0x10f92e(_0x413fce,_0x36e303){let _0x2e21aa=_0x413fce['head'],_0x4f7aa8=!0x1;for(;_0x2e21aa;)_0x2e21aa['attributes']['groupId']!=_0x36e303&&(_0x4cb44c(_0x2e21aa['attributes']['groupId'],_0x36e303),_0x2e21aa['setAttribute']('groupId',_0x36e303),_0x4f7aa8=!0x0),_0x2e21aa=_0x2e21aa['next'];return _0x4f7aa8;}}['_supportLegacySuggestions'](){const _0x50138d=this['editor'],_0x2f6cbb=_0x50138d['locale'],_0x18efbf=_0x50138d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x18efbf['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x457b2e,_0x2c7896){const _0x15d603=[];for(let _0x48796e of _0x457b2e)_0x48796e['start']['nodeAfter']===_0x48796e['end']['parent']&&(_0x48796e=_0x50138d['model']['createRange'](_0x50138d['model']['createPositionAt'](_0x48796e['start']['nodeAfter'],0x0))),_0x15d603['push'](_0x48796e);_0x50138d['model']['change'](_0x1925fc=>{const _0x17cba0=_0x50138d['model']['document']['selection'],_0x25e055=Array['from'](_0x17cba0['getRanges']())['map'](_0x4abfa3=>_0x216747['fromRange'](_0x4abfa3));_0x1925fc['setSelection'](_0x15d603),_0x50138d['commands']['get'](_0x2c7896['commandName'])['refresh'](),_0x2c7896['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x50138d['execute'](_0x2c7896['commandName'],..._0x2c7896['commandParams']),_0x1925fc['setSelection'](_0x25e055);for(const _0x303713 of _0x25e055)_0x303713['detach']();});}),_0x18efbf['descriptionFactory']['registerElementLabel'](function(_0xb62e){const _0x555bfc=!_0x50138d['model']['schema']['isObject'](_0xb62e),_0x35629b=_0xb62e['previousSibling'],_0x5d7758=_0xb62e['nextSibling'],_0x4e5cbc=_0xb62e['getAttribute']('listItemId'),_0x34e970=!_0x35629b||_0x35629b['getAttribute']('listItemId')!==_0x4e5cbc,_0x435bca=!_0x5d7758||_0x5d7758['getAttribute']('listItemId')!==_0x4e5cbc;return _0x555bfc&&Boolean(_0x4e5cbc)&&_0x34e970&&_0x435bca;},_0x35f455=>o(_0x2f6cbb,'ELEMENT_LIST_ITEM',_0x35f455));}['_registerLegacyDescription'](){const _0x209d29=this['editor'],_0x251d3d=_0x209d29['locale'];function _0x2f866a(_0x3c2284){const _0x586a98=_0x209d29['commands']['get']('bulletedList')['value'],_0x5c793b=_0x209d29['commands']['get']('numberedList')['value'];return'numberedList'===_0x3c2284?_0x586a98:_0x5c793b;}_0x209d29['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x476dd0){if('formatBlock'!=_0x476dd0['type'])return;const {data:_0x7ba49}=_0x476dd0;if(!_0x7ba49)return;let _0x355796,_0x59383e,_0x22a53c,_0x1ba419;switch(_0x7ba49['commandName']){case'bulletedList':_0x22a53c=_0x7ba49['commandParams'][0x0]['forceValue'],_0x1ba419=_0x2f866a(_0x7ba49['commandName']),_0x355796=_0x22a53c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1ba419&&_0x209d29['config']['get']('list.multiBlock')||(_0x355796='*Change\x20to:*\x20%0'),_0x59383e={'type':'format','content':o(_0x251d3d,_0x355796,o(_0x251d3d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x22a53c=_0x7ba49['commandParams'][0x0]['forceValue'],_0x1ba419=_0x2f866a(_0x7ba49['commandName']),_0x355796=_0x22a53c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1ba419&&_0x209d29['config']['get']('list.multiBlock')||(_0x355796='*Change\x20to:*\x20%0'),_0x59383e={'type':'format','content':o(_0x251d3d,_0x355796,o(_0x251d3d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x355796='*Indent:*\x20%0',_0x59383e={'type':'format','content':o(_0x251d3d,_0x355796,o(_0x251d3d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x355796=function(_0x34bb87){const _0x3dd882=_0x34bb87['getFirstRange']();let _0x17d2a2=_0x3dd882['start']['nodeAfter'];for(;_0x17d2a2&&_0x3dd882['containsItem'](_0x17d2a2);){if(_0x17d2a2['getAttribute']('listIndent')>0x0)return!0x1;_0x17d2a2=_0x17d2a2['nextSibling'];}return!0x0;}(_0x476dd0)?o(_0x251d3d,'*Format:*\x20remove\x20from\x20%0',o(_0x251d3d,function(_0x2d49c7){return'ELEMENT_'+_0x2d49c7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x476dd0))):o(_0x251d3d,'*Outdent:*\x20%0',o(_0x251d3d,'ELEMENT_LIST_ITEM')),_0x59383e={'type':'format','content':_0x355796};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x7ba49['multipleBlocks']&&(_0x355796='*Merge:*\x20%0',_0x59383e={'type':'deletion','content':o(_0x251d3d,_0x355796,o(_0x251d3d,'ELEMENT_LIST_ITEM'))});}return _0x59383e;});}}function le(_0x3be6c0){let _0x394a15=_0x3be6c0['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x394a15;){const _0x569f28=_0x394a15['getAttribute']('listItemId');if(!_0x569f28)return!0x1;if(_0x569f28==_0x3be6c0['data']['newValue'])return'newValue';if(_0x569f28==_0x3be6c0['data']['oldValue'])return'oldValue';_0x394a15=_0x394a15['previousSibling'];}return!0x1;}class ue extends _0x54db38{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x55bb87=this['editor']['config']['get']('list.properties'),_0x34d552=this['editor']['plugins']['get']('TrackChangesEditing');_0x55bb87['styles']&&(_0x34d552['enableDefaultAttributesIntegration']('listStyle'),_0x34d552['registerBlockAttribute']('listStyle')),_0x55bb87['reversed']&&(_0x34d552['enableDefaultAttributesIntegration']('listReversed'),_0x34d552['registerBlockAttribute']('listReversed')),_0x55bb87['startIndex']&&(_0x34d552['enableDefaultAttributesIntegration']('listStart'),_0x34d552['registerBlockAttribute']('listStart'));const _0x1b765e={'type':'format','content':''};_0x34d552['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5c0471=this['editor']['locale'];_0x34d552['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5c0471,'FORMAT_LIST_REVERSED')),_0x34d552['descriptionFactory']['registerDescriptionCallback'](_0x234966=>{const {data:_0x2676e3}=_0x234966;if(_0x2676e3&&'listReversed'==_0x2676e3['key'])return null==_0x2676e3['newValue']||0x0==_0x2676e3['newValue']&&null==_0x2676e3['oldValue']?_0x1b765e:void 0x0;}),_0x34d552['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5c0471,'FORMAT_LIST_START')),_0x34d552['descriptionFactory']['registerDescriptionCallback'](_0x1c7fa5=>{const {data:_0x411c3a}=_0x1c7fa5;if(_0x411c3a&&'listStart'==_0x411c3a['key'])return null==_0x411c3a['newValue']||0x1==_0x411c3a['newValue']&&null==_0x411c3a['oldValue']?_0x1b765e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x43a264=>{if(_0x43a264['batch']['isUndo'])return!0x1;let _0x12e1d9=!0x1;const _0x4481a7=_0x34d552['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c622b=>{const _0x36e15e=_0x34d552['_getAttributeKey'](_0x1c622b);return'listStart'==_0x36e15e||'listReversed'==_0x36e15e;});for(const _0x1185ab of _0x4481a7){const _0x157039=_0x1185ab['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x157039||'customNumbered'==_0x157039)continue;_0x34d552['_findSuggestions'](_0x1185ab['getFirstRange'](),'attribute')['find'](_0x253bed=>'listType'==_0x34d552['_getAttributeKey'](_0x253bed['suggestion']))||(_0x43a264['removeMarker'](_0x1185ab['getFirstMarker']()),_0x12e1d9=!0x0);}return _0x12e1d9;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x25ef72){const _0x387fc3=this['editor']['locale'],{data:_0x523321}=_0x25ef72,_0x273f13={'type':'format','content':''};if(!_0x523321||'listStyle'!=_0x523321['key'])return;if(!_0x523321['oldValue'])return'default'==_0x523321['newValue']?_0x273f13:{'type':'format','content':''+o(_0x387fc3,'*Set\x20format:*\x20%0',o(_0x387fc3,this['_getTranslationKeyForListStyle'](_0x523321['newValue'])))};if(!_0x523321['newValue']){if('default'==_0x523321['oldValue'])return _0x273f13;let _0xebda05=_0x25ef72['head'];for(;_0xebda05;){if(_0xebda05['data']&&'listType'==_0xebda05['data']['key']&&_0xebda05['data']['newValue'])return _0x273f13;_0xebda05=_0xebda05['next'];}return{'type':'format','content':''+o(_0x387fc3,'*Remove\x20format:*\x20%0',o(_0x387fc3,this['_getTranslationKeyForListStyle'](_0x523321['oldValue'])))};}if('default'!=_0x523321['newValue'])return{'type':'format','content':''+o(_0x387fc3,'*Set\x20format:*\x20%0',o(_0x387fc3,this['_getTranslationKeyForListStyle'](_0x523321['newValue'])))};let _0x3cc6d=_0x25ef72['head'];for(;_0x3cc6d;){if(_0x3cc6d['data']&&'listType'==_0x3cc6d['data']['key']&&_0x3cc6d['data']['newValue']&&_0x3cc6d['data']['oldValue'])return _0x273f13;_0x3cc6d=_0x3cc6d['next'];}return{'type':'format','content':o(_0x387fc3,'*Set\x20format:*\x20%0',o(_0x387fc3,'ELEMENT_'+_0x25ef72['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2e2d26=this['editor'],_0x4c5aed=_0x2e2d26['locale'];_0x2e2d26['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f5078=>{if('formatBlock'!=_0x1f5078['type'])return;const {data:_0x2de1b8}=_0x1f5078;if(!_0x2de1b8)return;let _0x251095,_0x51702b;switch(_0x2de1b8['commandName']){case'listStyle':_0x251095='*Change\x20to:*\x20%0',_0x51702b={'type':'format','content':o(_0x4c5aed,_0x251095,o(_0x4c5aed,this['_getTranslationKeyForListStyle'](_0x2de1b8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x251095=_0x2de1b8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x51702b={'type':'format','content':o(_0x4c5aed,_0x251095)};break;case'listStart':_0x251095='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x51702b={'type':'format','content':o(_0x4c5aed,_0x251095,_0x2de1b8['commandParams'][0x0]['startIndex'])};}return _0x51702b;});}['_getTranslationKeyForListStyle'](_0xe56b47){return'ELEMENT_'+function(_0x1bb0ee){if(pe['includes'](_0x1bb0ee))return'bulleted';if(ye['includes'](_0x1bb0ee))return'numbered';return null;}(_0xe56b47)['toUpperCase']()+'_LIST_'+_0xe56b47['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x54db38{static get['requires'](){return[_0x5234e5];}['init'](){const _0x3435f9=this['editor'],_0x5ddc6b=_0x3435f9['plugins']['get']('TrackChangesEditing'),_0x3dcb20=_0x3435f9['commands']['get']('enter');_0x5ddc6b['enableCommand']('enter',()=>{_0x3435f9['model']['change'](_0x355504=>{const _0x400d60=_0x3435f9['model']['document']['selection'],_0x69194c=_0x400d60['getFirstPosition'](),_0x2ad428=_0x216747['fromRange'](_0x400d60['getFirstRange']());if(_0x3dcb20['enterBlock'](_0x355504)){const _0x42c956=_0x3435f9['model']['createPositionAt'](_0x69194c['parent']['nextSibling'],0x0),_0x5cb5b9=_0x355504['createRange'](_0x69194c,_0x42c956);_0x5ddc6b['markInsertion'](_0x5cb5b9);}else _0x355504['setSelection'](_0x355504['createRange'](_0x2ad428['end']));_0x2ad428['detach'](),_0x3dcb20['fire']('afterExecute',{'writer':_0x355504});});}),_0x3435f9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x3435f9,'split'),{'priority':'high'}),_0x3435f9['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x159661,_0x22ddf1,_0x5babb6)=>{const _0x30e864=_0x5babb6['mapper']['markerNameToElements'](_0x22ddf1['markerName']);if(_0x30e864){for(const _0x54e213 of _0x30e864)_0x54e213['hasClass']('ck-suggestion-marker-split')&&(_0x5babb6['mapper']['unbindElementFromMarkerName'](_0x54e213,_0x22ddf1['markerName']),_0x5babb6['writer']['remove'](_0x54e213));}},{'priority':'high'}),_0x3435f9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x570e29,_0x2a2efc,_0xcddf4d)=>{_0xcddf4d['options']['showSuggestionHighlights']&&_e(_0x3435f9,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x570e29,_0x2a2efc,_0xcddf4d);},{'priority':'high'});}}class J extends _0x54db38{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x57344a=this['editor']['plugins']['get']('TrackChangesEditing');_0x57344a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x57344a['enableCommand']('findNext'),_0x57344a['enableCommand']('findPrevious'),_0x57344a['enableCommand']('replace'),_0x57344a['enableCommand']('replaceAll');}['handleFindCommand'](_0x292336,_0x462136,_0x36485f={}){const _0x168828=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x292336(_0x2399bd=>('string'==typeof _0x462136?_0x168828['findByTextCallback'](_0x462136,_0x36485f):_0x462136)(_0x2399bd)['filter'](_0xa57a14=>!0x1===this['_isInDeletionRange'](_0xa57a14,_0x2399bd['item'])),_0x36485f);}['_isInDeletionRange'](_0x358ee9,_0x5f56fd){const _0x3f50b0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5f56fd,_0x358ee9['start']),this['editor']['model']['createPositionAt'](_0x5f56fd,_0x358ee9['end']));for(const _0x3d5ac7 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3f50b0['getIntersection'](_0x3d5ac7['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x54db38{['afterInit'](){const _0xbdf3c0=this['editor']['locale'],_0x3d3726=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xb92426,commandName:_0x45f346}of ro)this['editor']['plugins']['has'](_0xb92426)&&(_0x3d3726['enableDefaultAttributesIntegration'](_0x45f346),_0x3d3726['registerInlineAttribute'](_0x45f346));_0xbdf3c0['t'],_0x3d3726['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xbdf3c0,'FORMAT_FONT_SIZE')),_0x3d3726['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xbdf3c0,'FORMAT_FONT_FAMILY')),_0x3d3726['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xbdf3c0,'FORMAT_FONT_COLOR')),_0x3d3726['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xbdf3c0,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d7349=this['editor'],_0x25fd47=_0x4d7349['locale'];_0x4d7349['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e64b4=>{const _0x354bbc=_0x25fd47['t'];if('formatInline'!=_0x5e64b4['type'])return;const {data:_0x4a5c91}=_0x5e64b4;if(null!=_0x4a5c91){if('fontSize'==_0x4a5c91['commandName']){const _0x6f6ddb=_0x4a5c91['commandParams'][0x0]['value'];if(_0x6f6ddb){const _0x1bef2b=_0x354bbc(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x33ef3f=>_0x33ef3f['model']==_0x6f6ddb)['title'])['toLowerCase']();return{'type':'format','content':o(_0x25fd47,'*Set\x20font\x20size:*\x20%0',_0x1bef2b)};}return{'type':'format','content':o(_0x25fd47,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4a5c91['commandName']){const _0x27a867=_0x4a5c91['commandParams'][0x0]['value'];return _0x27a867?{'type':'format','content':o(_0x25fd47,'*Set\x20font\x20family:*\x20%0',_0x27a867)}:{'type':'format','content':o(_0x25fd47,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4a5c91['commandName']){const _0x20bc15=_0x4a5c91['commandParams'][0x0]['value'];if(_0x20bc15){const _0x5c0fbe=_0x2a332b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x54d2c3=>_0x54d2c3['model']==_0x20bc15);let _0x289ac5=_0x20bc15,_0x4b4ae8='';return _0x5c0fbe&&(_0x289ac5=_0x5c0fbe['label'],_0x4b4ae8=_0x354bbc(_0x289ac5)['toLowerCase']()),{'type':'format','content':o(_0x25fd47,'*Set\x20font\x20color:*\x20%0',_0x4b4ae8)['trim'](),'color':{'value':_0x20bc15,'title':_0x4b4ae8||_0x289ac5}};}return{'type':'format','content':o(_0x25fd47,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4a5c91['commandName']){const _0x7eb573=_0x4a5c91['commandParams'][0x0]['value'];if(_0x7eb573){const _0x44da35=_0x2a332b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x11ab8c=>_0x11ab8c['model']==_0x7eb573);let _0x2d524f=_0x7eb573,_0xb2a974='';return _0x44da35&&(_0x2d524f=_0x44da35['label'],_0xb2a974=_0x354bbc(_0x2d524f)['toLowerCase']()),{'type':'format','content':o(_0x25fd47,'*Set\x20font\x20background\x20color:*\x20%0',_0xb2a974)['trim'](),'color':{'value':_0x7eb573,'title':_0xb2a974||_0x2d524f}};}return{'type':'format','content':o(_0x25fd47,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x54db38{['afterInit'](){const _0x5d2f9e=this['editor'],_0x1c6ff9=_0x5d2f9e['plugins']['get']('TrackChangesEditing'),_0x509f0a=_0x5d2f9e['commands']['get']('copyFormat'),_0x1fbd3e=_0x5d2f9e['commands']['get']('pasteFormat');_0x509f0a&&_0x1fbd3e&&(_0x1c6ff9['enableDefaultAttributesIntegration']('pasteFormat'),_0x1c6ff9['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2dc328=this['editor'],_0x3ccc6f=_0x2dc328['locale'];_0x2dc328['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1230ee=>{if('formatBlock'!=_0x1230ee['type']&&'formatInline'!=_0x1230ee['type'])return;const {data:_0x5aa231}=_0x1230ee;if(_0x5aa231&&'pasteFormat'===_0x5aa231['commandName']){const _0x38ac9a=[],_0x5d469c=_0x5aa231['commandParams'][0x0];for(const [_0x32d536,_0x460265]of Object['entries'](_0x5d469c))_0x38ac9a['push'](so(_0x2dc328,_0x32d536,_0x460265));return _0x38ac9a['length']?{'type':'format','content':o(_0x3ccc6f,'*Set\x20format\x20to:*\x20%0',_0x38ac9a['join'](',\x20'))}:{'type':'format','content':o(_0x3ccc6f,'*Remove\x20all\x20formatting*')};}});}}function so(_0x26ff10,_0x26c00a,_0x58bedd){const _0x29416e=_0x26ff10['locale']['t'],_0x36cdc3=_0x26c00a['split'](/(?=[A-Z])/)['join']('\x20'),_0x4bfd16=_0x29416e(_0x36cdc3['charAt'](0x0)['toUpperCase']()+_0x36cdc3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x58bedd)return _0x4bfd16;if('fontColor'===_0x26c00a||'fontBackgroundColor'===_0x26c00a){const _0x40e81b=_0x2a332b(_0x26ff10['config']['get']('fontColor.colors'))['find'](_0x59870b=>_0x59870b['model']==_0x58bedd);return _0x4bfd16+'\x20('+(_0x40e81b?_0x29416e(_0x40e81b['label'])['toLowerCase']():_0x58bedd)+')';}if('fontSize'===_0x26c00a&&isNaN(parseFloat(_0x58bedd))){const _0x553adc=_0x26ff10['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x26ff10['config']['get']('fontSize.options'))['find'](_0x11bb73=>_0x11bb73['model']==_0x58bedd);return _0x4bfd16+'\x20('+(_0x553adc?_0x29416e(_0x553adc['title'])['toLowerCase']():_0x58bedd)+')';}return _0x4bfd16+'\x20('+_0x58bedd+')';}class Y extends _0x54db38{['_headingOptions'];['afterInit'](){const _0x10114d=this['editor'];if(!_0x10114d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x10114d['config']['get']('heading.options');const _0x266769=_0x10114d['locale'],_0xdc616d=_0x10114d['plugins']['get']('TrackChangesEditing');_0xdc616d['enableDefaultAttributesIntegration']('heading');for(const _0xb3876c of this['_headingOptions'])'paragraph'!=_0xb3876c['model']&&_0xdc616d['descriptionFactory']['registerElementLabel'](_0xb3876c['model'],_0x26e1de=>{const _0x18e7b0=this['_getHeadingLevel'](_0xb3876c['model']);return null!==_0x18e7b0?_0x3b23d0(_0x26e1de,_0x18e7b0):_0x59a123(_0x26e1de,_0xb3876c['title']);});function _0x3b23d0(_0x202390,_0x2977dd){return o(_0x266769,'ELEMENT_HEADING',[_0x202390,_0x2977dd]);}function _0x59a123(_0x29ea46,_0x566b9f){return o(_0x266769,'ELEMENT_HEADING_CUSTOM',[_0x29ea46,_0x566b9f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e40f5=this['editor'],_0x5b8696=_0x5e40f5['locale'];function _0x448611(_0x6fb9eb,_0x3a0fe6){return o(_0x5b8696,'ELEMENT_HEADING_CUSTOM',[_0x6fb9eb,_0x3a0fe6]);}_0x5e40f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x436c17=>{if('formatBlock'!=_0x436c17['type'])return;const {data:_0x44ff95}=_0x436c17;if(_0x44ff95&&'heading'==_0x44ff95['commandName']){const _0x4640c8=_0x44ff95['commandParams'][0x0]['value'],_0x30277f=this['_getHeadingLevel'](_0x4640c8);if(null!==_0x30277f)return{'type':'format','content':o(_0x5b8696,'*Change\x20to:*\x20%0',(_0x10cd69=0x1,_0x2dc8bb=_0x30277f,o(_0x5b8696,'ELEMENT_HEADING',[_0x10cd69,_0x2dc8bb])))};const _0x3da972=this['_headingOptions']['find'](_0x2218e4=>_0x2218e4['model']===_0x4640c8)['title'];return{'type':'format','content':o(_0x5b8696,'*Change\x20to:*\x20%0',_0x448611(0x1,_0x3da972))};}var _0x10cd69,_0x2dc8bb;});}['_getHeadingLevel'](_0x176fbb){const _0x124cfc=_0x176fbb['match'](/^heading(\d+)/);if(_0x124cfc)return _0x124cfc[0x1];const _0x2bd4e2=this['_headingOptions']?.['find'](_0x2e1fd6=>_0x2e1fd6['model']==_0x176fbb);if(_0x2bd4e2&&_0x2bd4e2['view']){const _0x26adf3=_0x2bd4e2['view'],_0x4570a6=(_0x26adf3['name']??_0x26adf3)['match'](/^h(\d+)/);if(_0x4570a6)return _0x4570a6[0x1];}return null;}}class Z extends _0x54db38{['afterInit'](){const _0x2c0d66=this['editor'];if(!_0x2c0d66['plugins']['has']('HighlightEditing'))return;const _0x5e8e1c=_0x2c0d66['plugins']['get']('TrackChangesEditing'),_0x1ab9f4=_0x2c0d66['locale'];_0x5e8e1c['enableDefaultAttributesIntegration']('highlight'),_0x5e8e1c['registerInlineAttribute']('highlight'),_0x5e8e1c['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1ab9f4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43137e=this['editor'],_0x657209=_0x43137e['locale'];_0x43137e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24db7d=>{if('formatInline'!=_0x24db7d['type'])return;const {data:_0x3d475a}=_0x24db7d;if(_0x3d475a&&'highlight'==_0x3d475a['commandName']){const _0x3f6852=_0x657209['t'],_0x5291f4=_0x3d475a['commandParams'][0x0]['value'];if(_0x5291f4){const _0x14bcb1=_0x43137e['config']['get']('highlight.options')['find'](_0x4f112c=>_0x4f112c['model']==_0x5291f4),_0x39072f=_0x3f6852(_0x14bcb1['title'])['toLowerCase']();return{'type':'format','content':o(_0x657209,'*Set\x20highlight:*\x20%0',_0x39072f),'color':{'value':_0x14bcb1['color'],'title':_0x14bcb1['title']}};}return{'type':'format','content':o(_0x657209,'*Remove\x20highlight*',o(_0x657209,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x54db38{['afterInit'](){const _0x3966bb=this['editor'];if(!_0x3966bb['plugins']['has']('HorizontalLineEditing'))return;_0x3966bb['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1f5c48=_0x3966bb['plugins']['get']('TrackChangesEditing'),_0x3db204=_0x3966bb['locale'];_0x1f5c48['descriptionFactory']['registerElementLabel']('horizontalLine',_0x238637=>o(_0x3db204,'ELEMENT_HORIZONTAL_LINE',_0x238637)),_0x3966bb['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xb7b4a9,{writer:_0x1cb90e,options:_0x18bfad})=>{if(!_0x18bfad['showSuggestionHighlights'])return null;const _0x4012c6=_0x1cb90e['createContainerElement']('div'),_0x559dc5=_0x1cb90e['createEmptyElement']('hr');return _0x1cb90e['addClass']('ck-horizontal-line',_0x4012c6),_0x1cb90e['insert'](_0x1cb90e['createPositionAt'](_0x4012c6,0x0),_0x559dc5),_0x4012c6;},'converterPriority':'high'});}}class et extends _0x54db38{['afterInit'](){const _0x25fcf4=this['editor'];if(!_0x25fcf4['plugins']['has']('HtmlEmbed'))return;const _0x2600c9=_0x25fcf4['plugins']['get']('TrackChangesEditing'),_0x228df7=_0x25fcf4['locale'];_0x2600c9['descriptionFactory']['registerElementLabel']('rawHtml',_0x5dac90=>o(_0x228df7,'ELEMENT_HTML_EMBED',_0x5dac90)),_0x2600c9['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2600c9['registerBlockAttribute']('value'),_0x2600c9['descriptionFactory']['registerDescriptionCallback'](_0x211b49=>{if('attribute'!=_0x211b49['type'])return;const {data:_0x3862e6}=_0x211b49;if(_0x3862e6&&'value'==_0x3862e6['key']&&_0x211b49['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x519295=o(_0x228df7,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x228df7,'*Change\x20%0\x20content*',_0x519295)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12234a=this['editor'],_0x41c4d2=_0x12234a['locale'];_0x12234a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfe85ae=>{if('formatBlock'!=_0xfe85ae['type'])return;const {data:_0x59d97b}=_0xfe85ae;if(_0x59d97b&&'htmlEmbed'==_0x59d97b['commandName']){const _0x5e14f6=o(_0x41c4d2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x41c4d2,'*Change\x20%0\x20content*',_0x5e14f6)};}});}}class it extends _0x54db38{['afterInit'](){const _0x16994f=this['editor'];if(!_0x16994f['plugins']['has']('ImageEditing'))return;const _0x25e66b=_0x16994f['plugins']['get']('TrackChangesEditing'),_0x5a2eec=_0x16994f['plugins']['get']('ImageUtils'),_0x44346a=_0x16994f['locale'];_0x25e66b['enableCommand']('insertImage'),_0x25e66b['descriptionFactory']['registerElementLabel']('imageBlock',_0xd20c0d=>o(_0x44346a,'ELEMENT_IMAGE',_0xd20c0d)),_0x25e66b['descriptionFactory']['registerElementLabel']('imageInline',_0x479933=>o(_0x44346a,'ELEMENT_INLINE_IMAGE',_0x479933)),_0x25e66b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x44346a,'ELEMENT_CAPTION')),_0x16994f['plugins']['has']('ImageUploadEditing')&&_0x25e66b['enableCommand']('uploadImage'),_0x16994f['plugins']['has']('ImageBlockEditing')&&_0x16994f['plugins']['has']('ImageInlineEditing')&&(_0x25e66b['enableCommand']('imageTypeInline',(_0x5c26e6,_0x550078)=>{const _0x534b0a=_0x5a2eec['getClosestSelectedImageElement'](_0x16994f['model']['document']['selection']);_0x16994f['model']['change'](()=>{_0x25e66b['markBlockFormat'](_0x534b0a,{'commandName':'imageTypeInline','commandParams':[_0x550078]},[],'convertBlockImageToInline');});}),_0x25e66b['enableCommand']('imageTypeBlock',(_0x128544,_0x1007f0)=>{_0x16994f['model']['change'](_0x5a4c22=>{let _0x4877cb=_0x5a2eec['getClosestSelectedImageElement'](_0x16994f['model']['document']['selection']),_0x235b07=_0x5a4c22['createRangeOn'](_0x4877cb);const _0xc2c3c2=_0xf4223e['fromPosition'](_0x235b07['start'],'toPrevious'),_0x3dbe6b=_0xf4223e['fromPosition'](_0x235b07['end'],'toNext');_0x25e66b['forceDefaultExecution'](()=>_0x128544(_0x1007f0)),_0x4877cb=_0x5a2eec['getClosestSelectedImageElement'](_0x16994f['model']['document']['selection']),_0x235b07=_0x5a4c22['createRangeOn'](_0x4877cb);const _0x4cea80=_0x5a4c22['createRange'](_0xc2c3c2,_0x3dbe6b);_0xc2c3c2['detach'](),_0x3dbe6b['detach'](),_0x25e66b['markBlockFormat'](_0x4877cb,{'commandName':'imageTypeInline','commandParams':[_0x1007f0]},[],'convertInlineImageToBlock'),_0x4cea80['start']['isBefore'](_0x235b07['start'])&&_0x25e66b['markInsertion'](_0x5a4c22['createRange'](_0x4cea80['start'],_0x235b07['start']),'convertInlineImageToBlock'),_0x235b07['end']['isBefore'](_0x4cea80['end'])&&_0x25e66b['markInsertion'](_0x5a4c22['createRange'](_0x235b07['end'],_0x4cea80['end']),'convertInlineImageToBlock');});}),_0x25e66b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x25e66b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x25e66b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x25e66b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x25e66b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x25e66b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x24f942])=>{const _0x4155d6=_0x25e66b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x39778d=_0x24f942['start'],_0x478e0d=_0x24f942['end'];const _0xab2c75=_0x16994f['model']['schema']['getNearestSelectionRange'](_0x39778d,'backward'),_0x2c1b91=_0x16994f['model']['schema']['getNearestSelectionRange'](_0x478e0d,'forward');_0xab2c75['isCollapsed']&&(_0x39778d=_0xab2c75['start']),_0x2c1b91['isCollapsed']&&(_0x478e0d=_0x2c1b91['end']),_0x4155d6([_0x16994f['model']['createRange'](_0x39778d,_0x478e0d)]);}),_0x25e66b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3dab2e),_0x25e66b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3dab2e)),_0x16994f['plugins']['has']('ImageCaptionEditing')&&(_0x25e66b['enableCommand']('toggleImageCaption',(_0x15cdd2,_0x437f0f)=>{const _0x2ec1c6=_0x16994f['plugins']['get']('ImageCaptionUtils');let _0x3f26ae=_0x5a2eec['getClosestSelectedImageElement'](_0x16994f['model']['document']['selection']),_0x347e52=_0x2ec1c6['getCaptionFromImageModelElement'](_0x3f26ae);_0x16994f['model']['change'](()=>{if(_0x347e52)return void _0x25e66b['markDeletion'](_0x16994f['model']['createRangeOn'](_0x347e52));const _0x15aeec=_0x5a2eec['isBlockImage'](_0x3f26ae);_0x15cdd2(_0x437f0f),_0x3f26ae=_0x5a2eec['getClosestSelectedImageElement'](_0x16994f['model']['document']['selection']),_0x347e52=_0x2ec1c6['getCaptionFromImageModelElement'](_0x3f26ae),_0x25e66b['markInsertion'](_0x16994f['model']['createRangeOn'](_0x347e52),_0x15aeec?null:'imageCaption');});}),_0x25e66b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3dab2e));const _0x19dc0e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x12dac5(_0x52648f,_0x36bbb3){const _0x410d03=_0x19dc0e['findIndex'](({type:_0x54df1c,subType:_0x30c8da})=>_0x52648f['type']==_0x54df1c&&_0x52648f['subType']==_0x30c8da),_0x47b899=_0x19dc0e['findIndex'](({type:_0x447f8a,subType:_0x3cabd1})=>_0x36bbb3['type']==_0x447f8a&&_0x36bbb3['subType']==_0x3cabd1);if(_0x410d03<0x0||_0x47b899<0x0)return!0x1;const _0x2adb33=_0x52648f['getFirstRange'](),_0x2ef45d=_0x36bbb3['getFirstRange']();if((0x0==_0x410d03||0x1==_0x410d03)&&0x2==_0x47b899&&_0x2adb33['isIntersecting'](_0x2ef45d))return!0x0;if(0x2==_0x410d03&&0x3==_0x47b899){const _0x52fcec=_0x25e66b['_findSuggestions'](_0x2adb33,'insertion')['filter'](({suggestion:_0xb00f2b,meta:_0x4c884b})=>_0x4c884b['isOwn']&&'convertInlineImageToBlock'==_0xb00f2b['subType']);if(_0x52fcec['length']>0x1&&_0x2ef45d['end']['isEqual'](_0x2adb33['start']))return!0x0;if(0x1==_0x52fcec['length']&&(_0x2adb33['start']['isEqual'](_0x2ef45d['end'])||_0x2adb33['end']['isEqual'](_0x2ef45d['start'])))return!0x0;}if(0x3==_0x410d03&&0x3==_0x47b899&&_0x2adb33['start']['isBefore'](_0x2ef45d['start'])){const _0x2a39f9=_0x2adb33['end']['nodeAfter'],_0x3e94f4=_0x2ef45d['start']['nodeBefore'];return _0x5a2eec['isBlockImage'](_0x2a39f9)&&_0x2a39f9===_0x3e94f4;}return!0x1;}function _0x3dab2e(_0x402749,_0x5ca8db){return _0x12dac5(_0x402749,_0x5ca8db)?[_0x402749,_0x5ca8db]:_0x12dac5(_0x5ca8db,_0x402749)?[_0x5ca8db,_0x402749]:null;}_0x16994f['plugins']['has']('ImageResize')&&(_0x25e66b['enableDefaultAttributesIntegration']('resizeImage'),_0x25e66b['registerBlockAttribute']('resizedWidth'),_0x25e66b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x44346a,'FORMAT_IMAGE_SIZE'))),_0x16994f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x25e66b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x25e66b['registerBlockAttribute']('alt')),_0x25e66b['descriptionFactory']['registerDescriptionCallback'](_0x2cc010=>{if(!!_0x19dc0e['find'](({type:_0x59a83e,subType:_0x290bd1})=>_0x2cc010['type']==_0x59a83e&&_0x2cc010['subType']==_0x290bd1))return _0x2cc010['previous']?{}:void 0x0;}),_0x25e66b['descriptionFactory']['registerDescriptionCallback'](_0x23b6a3=>{if('insertion'==_0x23b6a3['type']||'deletion'==_0x23b6a3['type']){const _0x4d653a=_0x23b6a3['getContainedElement']();if(_0x4d653a&&_0x4d653a['is']('element','caption'))return{'type':'insertion'==_0x23b6a3['type']?'addObject':'removeObject','element':_0x4d653a,'quantity':0x1};}}),_0x25e66b['descriptionFactory']['registerDescriptionCallback'](_0x57b781=>'formatBlock'==_0x57b781['type']&&'convertInlineImageToBlock'==_0x57b781['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x57b781['type']&&'convertBlockImageToInline'==_0x57b781['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x25e66b['descriptionFactory']['registerDescriptionCallback'](_0x553148=>{if('attribute'!=_0x553148['type'])return;const {data:_0x4a5319}=_0x553148;if(!_0x4a5319||'alt'!=_0x4a5319['key'])return;const _0x336fbf=_0x4a5319['newValue'];return _0x336fbf?{'type':'format','content':o(_0x44346a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x336fbf+'\x22')}:{'type':'format','content':o(_0x44346a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59182b=this['editor'],_0x21536b=_0x59182b['locale'];_0x59182b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xffd54a=>{if('formatBlock'!=_0xffd54a['type']&&'formatInline'!=_0xffd54a['type'])return;const {data:_0x577b04}=_0xffd54a;if(_0x577b04){if('imageTextAlternative'==_0x577b04['commandName']){const _0x242d9e=_0x577b04['commandParams'][0x0]['newValue'];return _0x242d9e?{'type':'format','content':o(_0x21536b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x242d9e+'\x22')}:{'type':'format','content':o(_0x21536b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x577b04['commandName']){const _0x353981=_0x577b04['commandParams'][0x0]['width'];return _0x353981?{'type':'format','content':o(_0x21536b,'*Set\x20image\x20width:*\x20%0',_0x353981)}:{'type':'format','content':o(_0x21536b,'*Reset\x20image\x20width*')};}}});}}class st extends _0x54db38{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x37dd30=this['editor']['locale'],_0x1347ee=this['editor']['plugins']['get']('TrackChangesEditing');_0x1347ee['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1347ee['registerBlockAttribute']('src'),_0x1347ee['descriptionFactory']['registerDescriptionCallback'](_0x3eb033=>{if('attribute'!=_0x3eb033['type'])return;const {data:_0x56bef3}=_0x3eb033;return _0x56bef3&&'src'==_0x56bef3['key']?_0x56bef3['newValue']&&_0x56bef3['oldValue']?{'type':'format','content':o(_0x37dd30,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x28f068=this['editor']['plugins']['get']('TrackChangesEditing');_0x28f068['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x28f068['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x28f068['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x28f068['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2386df=this['editor'],_0x81fe47=_0x2386df['locale'];_0x2386df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11c8b8=>{if('formatBlock'!=_0x11c8b8['type']&&'formatInline'!=_0x11c8b8['type'])return;const {data:_0x303598}=_0x11c8b8;if(!_0x303598||'replaceImageSource'!=_0x303598['commandName'])return;return{'type':'format','content':o(_0x81fe47,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x54db38{['afterInit'](){const _0x35569e=this['editor'];if(!_0x35569e['plugins']['has']('ImageStyleEditing'))return;const _0x3359d8=_0x35569e['plugins']['get']('TrackChangesEditing'),_0x358c0c=_0x35569e['plugins']['get']('ImageUtils'),_0x1955dd={};_0x3359d8['enableCommand']('imageStyle',(_0x3433e3,_0x512846)=>{const _0xc4a46e=_0x35569e['plugins']['get']('Users')['me'],_0x4c52f1=_0x35569e['commands']['get']('imageStyle');let _0x3c8118=_0x358c0c['getClosestSelectedImageElement'](_0x35569e['model']['document']['selection']),_0x1eaeec=_0x35569e['model']['createRangeOn'](_0x3c8118),_0x305e2c=_0x4c52f1['value'];if(_0x305e2c==_0x512846['value'])return;const _0x2875e3={'commandName':'imageStyle','commandParams':[_0x512846],'formatGroupId':_0xa3dac7()};_0x35569e['model']['change'](()=>{if(_0x3359d8['getSuggestions']()['filter'](_0x5a2f0a=>_0x5a2f0a['isInContent']&&_0xc4a46e==_0x5a2f0a['author']&&('formatBlock'==_0x5a2f0a['type']||'formatInline'==_0x5a2f0a['type'])&&('imageStylePreApply'==_0x5a2f0a['subType']||'imageStylePostApply'==_0x5a2f0a['subType'])&&_0x5a2f0a['getFirstRange']()['isEqual'](_0x1eaeec))['forEach'](_0x532223=>_0x3359d8['discardSuggestion'](_0x532223['head'])),_0x3c8118=_0x358c0c['getClosestSelectedImageElement'](_0x35569e['model']['document']['selection']),_0x1eaeec=_0x35569e['model']['createRangeOn'](_0x3c8118),_0x4c52f1['refresh'](),_0x35569e['commands']['get']('imageTypeInline')['refresh'](),_0x35569e['commands']['get']('imageTypeBlock')['refresh'](),_0x305e2c=_0x4c52f1['value'],_0x305e2c!=_0x512846['value'])return _0x358c0c['isInlineImage'](_0x3c8118)&&_0x4c52f1['shouldConvertImageType'](_0x512846['value'],_0x3c8118)?(_0x3433e3({..._0x512846,'setImageSizes':!0x1}),_0x3c8118=_0x358c0c['getClosestSelectedImageElement'](_0x35569e['model']['document']['selection']),void _0x3359d8['markBlockFormat'](_0x3c8118,{..._0x2875e3,'commandReversedParams':[{'value':_0x305e2c||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x358c0c['isBlockImage'](_0x3c8118)?_0x3359d8['markBlockFormat'](_0x3c8118,_0x2875e3,[],'imageStylePostApply'):_0x3359d8['markInlineFormat'](_0x1eaeec,_0x2875e3,'imageStylePostApply'));});});for(const _0x526f8f of _0x35569e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1955dd[_0x526f8f['name']]=_0x526f8f['title']['toLowerCase']();_0x3359d8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3359d8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3359d8['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3359d8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x11de40])=>{_0x358c0c['setImageNaturalSizeAttributes'](_0x11de40['getContainedElement']());}),_0x3359d8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x153a51,_0x2d07ea)=>{_0x3359d8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x153a51,{'commandName':_0x2d07ea['commandName'],'commandParams':_0x2d07ea['commandReversedParams']});}),_0x3359d8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1dc571,_0x5a8fc3){if(_0x179f5e(_0x1dc571,_0x5a8fc3))return[_0x1dc571,_0x5a8fc3];if(_0x179f5e(_0x5a8fc3,_0x1dc571))return[_0x5a8fc3,_0x1dc571];return null;});const _0x104462=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x179f5e(_0x5e4e85,_0x58e731){const _0x242517=_0x104462['findIndex'](({type:_0x353e6a,subType:_0x284a2e})=>_0x5e4e85['type']==_0x353e6a&&_0x5e4e85['subType']==_0x284a2e),_0xd54263=_0x104462['findIndex'](({type:_0x56af43,subType:_0x1cbc10})=>_0x58e731['type']==_0x56af43&&_0x58e731['subType']==_0x1cbc10);if(_0x242517<0x0||_0xd54263<0x0)return!0x1;const _0x18296a=_0x5e4e85['getFirstRange'](),_0x594e65=_0x58e731['getFirstRange']();if((0x0==_0x242517||0x1==_0x242517)&&0x2==_0xd54263&&_0x18296a['isIntersecting'](_0x594e65))return!0x0;if(0x2==_0x242517&&0x3==_0xd54263){const _0x55e9a7=_0x3359d8['_findSuggestions'](_0x18296a,'insertion')['filter'](({suggestion:_0x4d66bb,meta:_0x490085})=>_0x490085['isOwn']&&'convertInlineImageToBlock'==_0x4d66bb['subType']);if(_0x55e9a7['length']>0x1&&_0x594e65['end']['isEqual'](_0x18296a['start']))return!0x0;if(0x1==_0x55e9a7['length']&&(_0x18296a['start']['isEqual'](_0x594e65['end'])||_0x18296a['end']['isEqual'](_0x594e65['start'])))return!0x0;}if(0x3==_0x242517&&0x3==_0xd54263&&_0x18296a['start']['isBefore'](_0x594e65['start'])){const _0xabbe5b=_0x18296a['end']['nodeAfter'],_0x257367=_0x594e65['start']['nodeBefore'];return _0x358c0c['isBlockImage'](_0xabbe5b)&&_0xabbe5b===_0x257367;}return!0x1;}_0x35569e['model']['document']['registerPostFixer'](()=>{let _0x421dbf=!0x1;const _0x515c7e=Array['from'](_0x35569e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1920ca,data:_0x5be8a8}of _0x515c7e){const {group:_0x2af384,type:_0x58a808,subType:_0x216a94,id:_0x9c632f}=_0x3359d8['_splitMarkerName'](_0x1920ca);if('suggestion'==_0x2af384&&_0x3359d8['hasSuggestion'](_0x9c632f)){if('formatBlock'==_0x58a808&&('imageStylePreApply'==_0x216a94||'imageStylePostApply'==_0x216a94)){const _0x1c60b3=_0x3359d8['getSuggestion'](_0x9c632f);if(_0x5be8a8['newRange']){const _0x46c12b=_0x1c60b3['getFirstRange']()['getContainedElement']();if(_0x358c0c['isBlockImage'](_0x46c12b))continue;_0x3359d8['discardSuggestion'](_0x1c60b3),_0x421dbf=!0x0;}}if('insertion'==_0x58a808&&'imageCaption'==_0x216a94&&!_0x5be8a8['newRange']){const _0x291f85=_0x3359d8['getSuggestion'](_0x9c632f);_0x291f85['next']&&_0x291f85['next']['isInContent']&&(_0x3359d8['discardSuggestion'](_0x291f85['next']),_0x421dbf=!0x0);}}}return _0x421dbf;}),this['_registerLegacyDescription'](_0x1955dd);}['_registerLegacyDescription'](_0x133e11){const _0x21ce22=this['editor'],_0x1b1244=_0x21ce22['locale'];_0x21ce22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48283b=>{if('formatBlock'!=_0x48283b['type']&&'formatInline'!=_0x48283b['type'])return;const {data:_0x2d53ad}=_0x48283b;if(!_0x2d53ad||'imageStyle'!=_0x2d53ad['commandName'])return;const _0x283b1f=_0x2d53ad['commandParams'][0x0]['value'];return _0x339722('side'===_0x283b1f?o(_0x1b1244,'FORMAT_SIDE_IMAGE'):_0x133e11[_0x283b1f]||_0x283b1f);function _0x339722(_0x3bfa6a){return{'type':'format','content':o(_0x1b1244,'*Format:*\x20%0',_0x3bfa6a)};}});}}class ot extends _0x54db38{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x152d51){super(_0x152d51),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x55d831=this['editor'],_0x4c9009=_0x55d831['commands']['get']('importWord'),_0x2ac9fc=_0x55d831['commands']['get']('trackChanges');_0x4c9009&&(_0x4c9009['on']('execute',(_0x13e3f2,[,_0x5543f7])=>{this['_trackChangesValueDuringImport']=_0x2ac9fc['value'],_0x5543f7['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4c9009,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4c9009,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2ac9fc['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x55d831['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x350e18,_0x23a6b6){const {suggestions:_0x4b86d6}=_0x23a6b6,_0x52f264=this['editor']['commands']['get']('trackChanges'),_0xbfa534=_0x52f264['value'];this['_trackChangesValueDuringImport']!==_0xbfa534&&(_0x52f264['execute'](),this['_trackChangesExecuted']=!0x0),_0x4b86d6&&_0x4b86d6['forEach'](({id:_0x2fbbeb,type:_0x2d021e,author:_0xaff130,created_at:_0x46651b})=>{const _0x4caeaf={'id':_0x2fbbeb,'type':_0x2d021e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xaff130,'createdAt':_0x46651b?new Date(_0x46651b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4caeaf);});}}class rt extends _0x54db38{['afterInit'](){const _0x72f02f=this['editor'],_0x2b915d=_0x72f02f['plugins']['get']('TrackChangesEditing');if(_0x72f02f['plugins']['has']('IndentEditing')&&(_0x2b915d['enableCommand']('indent'),_0x2b915d['enableCommand']('outdent')),_0x72f02f['plugins']['has']('IndentBlock')){for(const _0x3e2e76 of['indentBlock','outdentBlock'])_0x2b915d['enableDefaultAttributesIntegration'](_0x3e2e76);}const _0xe0d0d4=_0x72f02f['locale'];_0x2b915d['registerBlockAttribute']('blockIndent'),_0x2b915d['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xe0d0d4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ff778=this['editor'],_0x3efc68=_0x4ff778['locale'],_0x19fe9c=_0x4ff778['plugins']['get']('TrackChangesEditing');_0x19fe9c['descriptionFactory']['registerDescriptionCallback'](_0x32bc2f=>{if('formatBlock'!=_0x32bc2f['type'])return;const {data:_0x506795}=_0x32bc2f;if(!_0x506795)return;if('indentBlock'!=_0x506795['commandName']&&'outdentBlock'!=_0x506795['commandName'])return;const _0x419459=_0x32bc2f['getItems']()[0x0],_0xb185e5=_0x19fe9c['descriptionFactory']['getItemLabel'](_0x419459);return'indentBlock'==_0x506795['commandName']?{'type':'format','content':o(_0x3efc68,'*Indent:*\x20%0',_0xb185e5)}:'outdentBlock'==_0x506795['commandName']?{'type':'format','content':o(_0x3efc68,'*Outdent:*\x20%0',_0xb185e5)}:void 0x0;});}}class at extends _0x54db38{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x54db38{['afterInit'](){const _0x2aa433=this['editor'];if(!_0x2aa433['plugins']['has']('LinkEditing'))return;const _0x5b307a=_0x2aa433['plugins']['get']('TrackChangesEditing'),_0x2222b2=_0x2aa433['commands']['get']('link');_0x5b307a['enableDefaultAttributesIntegration']('link'),_0x5b307a['enableDefaultAttributesIntegration']('unlink'),_0x5b307a['registerInlineAttribute']('linkHref');for(const _0x20e5bf of _0x2222b2['manualDecorators'])_0x5b307a['registerInlineAttribute'](_0x20e5bf['id']),_0x5b307a['descriptionFactory']['registerAttributeLabel'](_0x20e5bf['id'],'link\x20('+_0x20e5bf['label']['toLowerCase']()+')');_0x5b307a['descriptionFactory']['registerDescriptionCallback'](_0x5bd3f8=>{if('attribute'!=_0x5bd3f8['type'])return;const {data:_0x37fe9e}=_0x5bd3f8;if(!_0x37fe9e||'linkHref'!=_0x37fe9e['key'])return;const _0xc82f02=_0x37fe9e['newValue'],_0x511635=_0x2aa433['locale'];return{'type':'format','content':null==_0xc82f02?o(_0x511635,'*Remove\x20link*'):o(_0x511635,'*Set\x20link:*\x20%0','\x22'+_0xc82f02+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x409ef1=this['editor'],_0x3267a9=_0x409ef1['locale'];_0x409ef1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14822a=>{if('formatInline'!=_0x14822a['type'])return;const {data:_0x1d6f1d}=_0x14822a;if(_0x1d6f1d){if('link'==_0x1d6f1d['commandName']){const _0x1c477e=_0x1d6f1d['commandParams'][0x0];return{'type':'format','content':o(_0x3267a9,'*Set\x20link:*\x20%0','\x22'+_0x1c477e+'\x22')};}return'unlink'==_0x1d6f1d['commandName']?{'type':'format','content':o(_0x3267a9,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x54db38{['afterInit'](){const _0x2f5410=this['editor'],_0xbff8d2=_0x2f5410['locale'];if(!_0x2f5410['plugins']['has']('LegacyListEditing'))return;const _0x25ca23=_0x2f5410['plugins']['get']('TrackChangesEditing'),_0x50f124=_0x2f5410['plugins']['has']('LegacyTodoListEditing');function _0x30fe95(_0x11e125){return()=>{const _0x424c56=_0x2f5410['model']['document']['selection'],_0xc49bad=_0x2f5410['commands']['get'](_0x11e125);if(_0xc49bad['value'])return void _0x2f5410['execute']('paragraph',{});const _0x3d1058=_0x11e125['slice'](0x0,-0x4),_0x8ae22c=function(_0x4566e6,_0x3491c6,_0x864b3d){let _0x31390e=Array['from'](_0x4566e6)['filter'](_0x32e63b=>function(_0x1435b8,_0x11cfa0){return _0x11cfa0['checkChild'](_0x1435b8['parent'],'listItem')&&!_0x11cfa0['isObject'](_0x1435b8);}(_0x32e63b,_0x864b3d));_0x31390e=_0x31390e['filter'](_0x28b5f5=>!_0x28b5f5['is']('element','listItem')||_0x28b5f5['getAttribute']('listType')!=_0x3491c6);const _0xb9f14f=new Set();for(const _0x206ea1 of _0x31390e)_0x206ea1['is']('element','listItem')?_0xb9f14f['add'](me(_0x206ea1)):_0xb9f14f['add'](_0x206ea1);return Array['from'](_0xb9f14f);}(_0x424c56['getSelectedBlocks'](),_0x3d1058,_0x2f5410['model']['schema']);_0x2f5410['model']['change'](()=>{for(const _0x467a3d of _0x8ae22c)_0x25ca23['markBlockFormat'](_0x467a3d,{'commandName':_0x11e125,'commandParams':[{'forceValue':!_0xc49bad['value']}],'formatGroupId':'blockName'},fe(_0x467a3d));});};}function _0x139cbd(_0x41d104){return()=>{const _0x4a4f31=function(_0x2cd81c){let _0x1785a3=Array['from'](_0x2cd81c);const _0x537c8c=_0x1785a3['findIndex'](_0x7e4731=>'listItem'!=_0x7e4731['name']);return _0x537c8c>-0x1&&(_0x1785a3=_0x1785a3['slice'](0x0,_0x537c8c)),_0x1785a3;}(_0x2f5410['model']['document']['selection']['getSelectedBlocks']()),_0x5ac16e=_0x2f5410['model']['createRange'](_0x2f5410['model']['createPositionAt'](_0x4a4f31[0x0],'before'),_0x2f5410['model']['createPositionAt'](_0x4a4f31[_0x4a4f31['length']-0x1],'end'));_0x2f5410['model']['change'](()=>{_0x25ca23['markBlockFormat'](_0x5ac16e,{'commandName':_0x41d104,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2fa054){const _0x2d7360=new Set();for(const _0x1eca66 of _0x2fa054){let _0x145860=_0x1eca66['nextSibling'];for(;_0x145860&&_0x145860['getAttribute']('listIndent')>_0x1eca66['getAttribute']('listIndent');)_0x2d7360['add'](_0x145860),_0x145860=_0x145860['nextSibling'];}return Array['from'](_0x2d7360);}(_0x4a4f31));});};}_0x25ca23['enableCommand']('numberedList',_0x30fe95('numberedList')),_0x25ca23['enableCommand']('bulletedList',_0x30fe95('bulletedList')),_0x50f124&&_0x25ca23['enableCommand']('todoList',_0x30fe95('todoList')),_0x25ca23['enableCommand']('indentList',_0x139cbd('indentList')),_0x25ca23['enableCommand']('outdentList',_0x139cbd('outdentList')),_0x50f124&&_0x25ca23['enableCommand']('checkTodoList',()=>{const _0x485ee6=_0x2f5410['commands']['get']('checkTodoList'),_0x129eba=Array['from'](_0x485ee6['_selectedElements']);_0x129eba['filter'](_0x207b09=>_0x207b09['getAttribute']('todoListChecked')!=_0x485ee6['value']),_0x2f5410['model']['change'](()=>{for(const _0x53d1d4 of _0x129eba)_0x25ca23['markBlockFormat'](_0x53d1d4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x485ee6['value']}]});});}),_0x25ca23['descriptionFactory']['registerElementLabel']('listItem',_0x40392f=>o(_0xbff8d2,'ELEMENT_LIST_ITEM',_0x40392f)),_0x25ca23['descriptionFactory']['registerDescriptionCallback'](_0x4c3b47=>{if('formatBlock'!=_0x4c3b47['type']&&'formatInline'!=_0x4c3b47['type'])return;const {data:_0x23689e}=_0x4c3b47;if(_0x23689e){if('numberedList'==_0x23689e['commandName']||'bulletedList'==_0x23689e['commandName']||'todoList'==_0x23689e['commandName'])switch(_0x23689e['commandName']['replace']('List','')){case'bulleted':return _0x443f06(o(_0xbff8d2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x443f06(o(_0xbff8d2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x443f06(o(_0xbff8d2,'ELEMENT_TODO_LIST'));}if('indentList'==_0x23689e['commandName'])return{'type':'format','content':o(_0xbff8d2,'*Indent:*\x20%0',o(_0xbff8d2,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x23689e['commandName'])return{'type':'format','content':o(_0xbff8d2,'*Outdent:*\x20%0',o(_0xbff8d2,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x23689e['commandName'])return _0x23689e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xbff8d2,'*Check\x20item*')}:{'type':'format','content':o(_0xbff8d2,'*Uncheck\x20item*')};}function _0x443f06(_0xe5a8b7){return{'type':'format','content':o(_0xbff8d2,'*Change\x20to:*\x20%0',_0xe5a8b7)};}});}}function me(_0x3b2d00){const _0x57239a=_0x3b2d00['getAttribute']('listIndent');if(0x0==_0x57239a)return _0x3b2d00;let _0x264fbc=_0x3b2d00;for(;_0x3b2d00['previousSibling']&&_0x3b2d00['previousSibling']['is']('element','listItem');){const _0x501870=_0x3b2d00['previousSibling']['getAttribute']('listIndent');if(_0x501870==_0x57239a)_0x264fbc=_0x3b2d00['previousSibling'];else{if(_0x501870<_0x57239a)break;}_0x3b2d00=_0x3b2d00['previousSibling'];}return _0x264fbc;}function fe(_0x5e6fc9){const _0x381e0c=[];if(_0x5e6fc9['is']('element','listItem')&&_0x5e6fc9['getAttribute']('listIndent')>0x0){let _0x48094a=_0x5e6fc9['nextSibling'];for(;_0x48094a&&'listItem'==_0x48094a['name']&&_0x48094a['getAttribute']('listIndent')==_0x5e6fc9['getAttribute']('listIndent');)_0x381e0c['push'](_0x48094a),_0x48094a=_0x48094a['nextSibling'];}return _0x381e0c;}class K extends _0x54db38{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xf3ba1=this['editor']['config']['get']('list.properties'),_0x26f4d0=this['editor']['plugins']['get']('TrackChangesEditing');_0xf3ba1['styles']&&_0x26f4d0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xf3ba1['reversed']&&_0x26f4d0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xf3ba1['startIndex']&&_0x26f4d0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x26f4d0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x203dd5,_0x1adca9={}){const _0xbcd1a9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47f0d1=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xbcd1a9['markMultiRangeBlockFormat'](_0x47f0d1,{'commandName':'listStyle','commandParams':[{'type':_0x1adca9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x29cfce,_0x2cf330={}){const _0x54e59e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3bbc9e=this['_getSuggestionBlocks'](_0x1c3507=>_0x1c3507['is']('element','listItem')&&'numbered'===_0x1c3507['getAttribute']('listType'));if(_0x3bbc9e['length']<0x1)return;const _0x172495=_0x3bbc9e['map'](_0x4349b1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4349b1,'before'),this['editor']['model']['createPositionAt'](_0x4349b1,0x0)));this['editor']['model']['change'](()=>{_0x54e59e['markMultiRangeBlockFormat'](_0x172495,{'commandName':'listReversed','commandParams':[{'reversed':_0x2cf330['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x31788b,_0x3c8698={}){const _0x1ca34d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7b245f=this['_getSuggestionBlocks'](_0x5a7693=>_0x5a7693['is']('element','listItem')&&'numbered'===_0x5a7693['getAttribute']('listType'));if(_0x7b245f['length']<0x1)return;const _0x6069ca=_0x7b245f['map'](_0x54c1d3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x54c1d3,'before'),this['editor']['model']['createPositionAt'](_0x54c1d3,0x0)));this['editor']['model']['change'](()=>{_0x1ca34d['markMultiRangeBlockFormat'](_0x6069ca,{'commandName':'listStart','commandParams':[{'startIndex':_0x3c8698['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x28d8c6){if('formatBlock'!=_0x28d8c6['type']&&'formatInline'!=_0x28d8c6['type'])return;const _0x44d770=this['editor']['locale'],{data:_0xd43836}=_0x28d8c6;if(!_0xd43836)return;let _0x56027e,_0x4aa2ce;switch(_0xd43836['commandName']){case'listStyle':_0x56027e='*Change\x20to:*\x20%0',_0x4aa2ce={'type':'format','content':o(_0x44d770,_0x56027e,o(_0x44d770,this['_getTranslationKeyForListStyle'](_0xd43836['commandParams'][0x0]['type'])))};break;case'listReversed':_0x56027e=_0xd43836['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4aa2ce={'type':'format','content':o(_0x44d770,_0x56027e)};break;case'listStart':_0x56027e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4aa2ce={'type':'format','content':o(_0x44d770,_0x56027e,_0xd43836['commandParams'][0x0]['startIndex'])};}return _0x4aa2ce;}['_getSuggestionBlocksForListStyle'](){const _0x3d9c4a=this['editor']['plugins']['get']('LegacyListUtils');let _0x53bb77=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x53bb77[0x0]?.['is']('element','listItem')&&_0x53bb77['unshift'](..._0x3d9c4a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x53bb77[_0x53bb77['length']-0x1]?.['is']('element','listItem')&&_0x53bb77['push'](..._0x3d9c4a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x53bb77=[...new Set(_0x53bb77)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x53bb77=_0x53bb77['filter'](_0x6b40d7=>_0x6b40d7['is']('element','listItem'))),_0x53bb77;}['_getSuggestionBlocks'](_0xe0b8b0){const _0x5cc211=this['editor']['plugins']['get']('LegacyListUtils');let _0x4734b4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xe0b8b0)['map'](_0x492bff=>{const _0xceb8d7=this['editor']['model']['createPositionAt'](_0x492bff,0x0);return[..._0x5cc211['getSiblingNodes'](_0xceb8d7,'backward'),..._0x5cc211['getSiblingNodes'](_0xceb8d7,'forward')];})['flat']();return _0x4734b4=[...new Set(_0x4734b4)],_0x4734b4;}['_getTranslationKeyForListStyle'](_0x5afd86){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5afd86)||'default')['toUpperCase']()+'_LIST_'+_0x5afd86['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x54db38{['afterInit'](){const _0x3daccc=this['editor'];if(!_0x3daccc['plugins']['has']('MediaEmbedEditing'))return;const _0x49dd3a=_0x3daccc['plugins']['get']('TrackChangesEditing'),_0x37b234=_0x3daccc['locale'];_0x49dd3a['enableCommand']('mediaEmbed'),_0x49dd3a['descriptionFactory']['registerElementLabel']('media',_0x5b540e=>o(_0x37b234,'ELEMENT_MEDIA',_0x5b540e)),_0x3daccc['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2d83cc,{writer:_0x424e63,options:_0x922a2e})=>{if(_0x922a2e['showSuggestionHighlights'])return _0x424e63['createEmptyElement']('div');},'converterPriority':'high'}),_0x3daccc['data']['downcastDispatcher']['on']('attribute:url:media',(_0x51adf5,_0x276e59,_0x9035b4)=>{_0x9035b4['options']['showSuggestionHighlights']&&_0x51adf5['stop']();},{'priority':'high'});}}class gt extends _0x54db38{['afterInit'](){const _0x21f12c=this['editor'];_0x21f12c['plugins']['has']('MentionEditing')&&_0x21f12c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x54db38{['afterInit'](){const _0x468adc=this['editor'],_0x199c6e=_0x468adc['plugins']['get']('TrackChangesEditing');_0x468adc['plugins']['has']('MultiLevelList')&&(_0x199c6e['enableDefaultAttributesIntegration']('multiLevelList'),_0x199c6e['registerBlockAttribute']('listMarkerStyle'),_0x199c6e['descriptionFactory']['registerDescriptionCallback'](_0x1b44d9=>this['handleDescriptions'](_0x1b44d9)));}['handleDescriptions'](_0x3a53e0){const _0x1487ff=this['editor']['locale'],{data:_0x4fc4f9}=_0x3a53e0,_0x2b8a05={'type':'format','content':''};if(_0x4fc4f9&&'listMarkerStyle'==_0x4fc4f9['key']){if(!_0x4fc4f9['oldValue'])return{'type':'format','content':o(_0x1487ff,'*Set\x20format:*\x20%0',o(_0x1487ff,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4fc4f9['newValue']+')'};if(!_0x4fc4f9['newValue']){let _0x124a55=_0x3a53e0['head'];for(;_0x124a55;){if(_0x124a55['data']&&'listType'==_0x124a55['data']['key']&&_0x124a55['data']['newValue'])return _0x2b8a05;_0x124a55=_0x124a55['next'];}return{'type':'format','content':o(_0x1487ff,'*Remove\x20format:*\x20%0',o(_0x1487ff,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4fc4f9['oldValue']+')'};}}}}class mt extends _0x54db38{['afterInit'](){const _0x1e7d9e=this['editor'];if(!_0x1e7d9e['plugins']['has']('PageBreakEditing'))return;_0x1e7d9e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3d2107=_0x1e7d9e['plugins']['get']('TrackChangesEditing'),_0x26d2c1=_0x1e7d9e['locale'];_0x3d2107['descriptionFactory']['registerElementLabel']('pageBreak',_0x855422=>o(_0x26d2c1,'ELEMENT_PAGE_BREAK',_0x855422));}}class dt extends _0x54db38{['afterInit'](){const _0x4abdc0=this['editor'];if(!_0x4abdc0['plugins']['has']('Paragraph'))return;const _0x2b8f86=_0x4abdc0['locale'],_0x1e1558=_0x4abdc0['plugins']['get']('TrackChangesEditing');_0x1e1558['descriptionFactory']['registerElementLabel']('paragraph',_0x293fea=>o(_0x2b8f86,'ELEMENT_PARAGRAPH',_0x293fea)),_0x1e1558['enableDefaultAttributesIntegration']('paragraph'),_0x1e1558['enableCommand']('insertParagraph'),_0x4abdc0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4abdc0),{'priority':'highest'}),_0x4abdc0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x21e923,_0x13bd84,_0x1dd454)=>{_0x1dd454['options']['showSuggestionHighlights']&&nr(_0x4abdc0,{'showActiveMarker':!0x1})(_0x21e923,_0x13bd84,_0x1dd454);},{'priority':'highest'});const _0x44ac73=_0x1e1558['descriptionFactory'];_0x44ac73['registerDescriptionCallback'](_0x2d0b16=>{if('insertion'!==_0x2d0b16['type'])return;const {start:_0x1b5a4c,end:_0x224c7b}=_0x2d0b16['getFirstRange']();if(!_0x1b5a4c['isTouching'](_0x224c7b)||!_0x1b5a4c['nodeAfter'])return;const _0x3e827c=_0x4abdc0['model']['schema'],_0x3a9489=_0x1b5a4c['nodeAfter'];return _0x3e827c['isBlock'](_0x3a9489)&&!_0x3e827c['isLimit'](_0x3a9489)&&_0x3e827c['checkChild'](_0x3a9489,'$text')?{'type':'insertion','content':o(_0x2b8f86,'*Insert:*\x20%0',_0x44ac73['getItemLabel'](_0x3a9489,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d1755=this['editor'],_0x21527=_0x3d1755['locale'];_0x3d1755['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x407b5d=>{if('formatBlock'!=_0x407b5d['type'])return;const {data:_0x2774e1}=_0x407b5d;return _0x2774e1&&'paragraph'==_0x2774e1['commandName']?{'type':'format','content':o(_0x21527,'*Change\x20to:*\x20%0',o(_0x21527,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x374a08,{showActiveMarker:_0x1dffd9=!0x0}={}){return(_0x36dd98,_0x3b6d9b,_0x3d75d2)=>{const _0x5381da=_0x374a08['plugins']['get']('TrackChangesEditing'),_0x6e12d2=_0x3b6d9b['markerRange']['start'],_0x552fa7=_0x3b6d9b['markerRange']['end'],_0xd0087d=_0x374a08['model']['schema'];if(!_0x6e12d2['isTouching'](_0x552fa7)||!_0x6e12d2['nodeAfter'])return;const _0x327930=_0x6e12d2['nodeAfter'];if(_0xd0087d['isBlock'](_0x327930)&&!_0xd0087d['isLimit'](_0x327930)&&_0xd0087d['checkChild'](_0x327930,'$text')){if(!_0x3d75d2['consumable']['consume'](_0x3b6d9b['markerRange'],_0x36dd98['name']))return;const _0x428fa3=_0x3d75d2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x46ef80=_0x3d75d2['mapper']['toViewPosition'](_0x552fa7);_0x1dffd9&&_0x5381da['activeMarkers']['includes'](_0x3b6d9b['markerName'])&&_0x3d75d2['writer']['addClass']('ck-suggestion-marker--active',_0x428fa3),_0x3d75d2['writer']['insert'](_0x46ef80,_0x428fa3),_0x3d75d2['mapper']['bindElementToMarker'](_0x428fa3,_0x3b6d9b['markerName']);}};}class pt extends _0x54db38{['afterInit'](){const _0x582e1c=this['editor'];if(!_0x582e1c['plugins']['has']('RemoveFormatEditing'))return;_0x582e1c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58ba74=this['editor'];_0x58ba74['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40361a=>{if('formatBlock'!=_0x40361a['type']&&'formatInline'!=_0x40361a['type'])return;const {data:_0x269a64}=_0x40361a;return _0x269a64&&'removeFormat'==_0x269a64['commandName']?{'type':'format','content':o(_0x58ba74['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x54db38{['afterInit'](){const _0x2d52a6=this['editor'];if(!_0x2d52a6['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x44e24a=_0x2d52a6['plugins']['get']('TrackChangesEditing');_0x44e24a['enableCommand']('goToPreviousRestrictedEditingException'),_0x44e24a['enableCommand']('goToNextRestrictedEditingException');const _0x2f0883=_0x2d52a6['plugins']['get']('RestrictedEditingModeEditing');_0x2f0883['enableCommand']('trackChanges'),_0x2f0883['enableCommand']('acceptSuggestion'),_0x2f0883['enableCommand']('discardSuggestion'),_0x2f0883['enableCommand']('acceptAllSuggestions'),_0x2f0883['enableCommand']('discardAllSuggestions'),_0x2f0883['enableCommand']('acceptSelectedSuggestions'),_0x2f0883['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x54db38{static get['requires'](){return[_0x36d1dc];}['init'](){const _0x423a48=this['editor'],_0x13a0c0=_0x423a48['plugins']['get']('TrackChangesEditing');_0x13a0c0['enableCommand']('shiftEnter'),_0x423a48['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x423a48),{'priority':'high'}),_0x423a48['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x423a48),{'priority':'high'}),_0x423a48['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3d5327,_0x4ebb16,_0x2a8bed)=>{_0x2a8bed['options']['showSuggestionHighlights']&&de(_0x423a48,{'showActiveMarker':!0x1})(_0x3d5327,_0x4ebb16,_0x2a8bed);}),_0x13a0c0['descriptionFactory']['registerElementLabel']('softBreak',_0x21ba26=>o(_0x423a48['locale'],'ELEMENT_LINE_BREAK',_0x21ba26));}}function de(_0x1923b7,{showActiveMarker:_0x16491f=!0x0}={}){return(_0x18ba61,_0xe97d16,_0x21561c)=>{const _0x444dbb=_0x1923b7['plugins']['get']('TrackChangesEditing');if(!_0x21561c['consumable']['test'](_0xe97d16['markerRange'],_0x18ba61['name']))return;const _0x36fe0b=_0x1923b7['model'];for(const _0x5a55d7 of _0xe97d16['markerRange']['getItems']()){if(!_0x5a55d7['is']('element','softBreak'))continue;const _0x42d70a='deletion'==_0xe97d16['markerName']['split'](':')[0x1]?'merge':'split',_0xd31c28=_0x21561c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x42d70a}),_0x25329f=_0x21561c['mapper']['toViewPosition'](_0x36fe0b['createPositionBefore'](_0x5a55d7));_0x16491f&&_0x444dbb['activeMarkers']['includes'](_0xe97d16['markerName'])&&_0x21561c['writer']['addClass']('ck-suggestion-marker--active',_0xd31c28),_0x21561c['writer']['insert'](_0x25329f,_0xd31c28),_0x21561c['mapper']['bindElementToMarker'](_0xd31c28,_0xe97d16['markerName']);}};}class wt extends _0x54db38{['afterInit'](){const _0x42879e=this['editor'],_0xeaf356=_0x42879e['model'],_0x4fc9bc=_0x42879e['locale'];if(!_0x42879e['plugins']['has']('StandardEditingModeEditing'))return;const _0x7099a9=_0x42879e['plugins']['get']('TrackChangesEditing'),_0x3d7923='restrictedEditingException',_0x244ced=_0x42879e['commands']['get'](_0x3d7923);_0x7099a9['enableCommand'](_0x3d7923,(_0x3f35f8,_0x566c35={})=>{const _0x24cf35=_0xeaf356['document']['selection'];if(_0x24cf35['isCollapsed'])return void _0x3f35f8(_0x566c35);const _0x45edd0=void 0x0!==_0x566c35['forceValue']?_0x566c35['forceValue']:!_0x244ced['value'];_0xeaf356['change'](()=>{const _0x235e60=Array['from'](_0x24cf35['getRanges']());for(const _0x4ece50 of _0x235e60){const _0x1c5047=_0x45edd0?[_0x4ece50]:io(_0x3d7923,_0x4ece50,_0xeaf356);for(const _0x14e829 of _0x1c5047)_0x7099a9['markInlineFormat'](_0x14e829,{'commandName':_0x3d7923,'commandParams':[{'forceValue':_0x45edd0}]});}});}),_0x7099a9['descriptionFactory']['registerDescriptionCallback'](_0x4ef09e=>{if('formatBlock'!=_0x4ef09e['type']&&'formatInline'!=_0x4ef09e['type'])return;const {data:_0x1187f2}=_0x4ef09e;return _0x1187f2&&_0x1187f2['commandName']==_0x3d7923?_0x1187f2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4fc9bc,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4fc9bc,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x54db38{['afterInit'](){const _0x319e6b=this['editor'];if(!_0x319e6b['plugins']['has']('Style')||!_0x319e6b['plugins']['has']('DataSchema'))return;const _0x1a3bd2=_0x319e6b['plugins']['get']('TrackChangesEditing'),_0x2d20a3=_0x319e6b['locale'],_0x5b3a39=_0x319e6b['config']['get']('style')||{},_0x2e9c89=_0x319e6b['plugins']['get']('GeneralHtmlSupport'),_0x3cc9b4=_0x319e6b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x319e6b['plugins']['get']('DataSchema'),_0x5b3a39['definitions']);_0x1a3bd2['enableDefaultAttributesIntegration']('style');const _0x524f9f=new Set();for(const _0x14c932 of _0x3cc9b4['block']){const _0x520f1f=_0x2e9c89['getGhsAttributeNameForElement'](_0x14c932['element']);_0x524f9f['add'](_0x520f1f);}const _0xb13314=new Set();for(const _0x10df45 of _0x3cc9b4['inline']){const _0x394117=_0x2e9c89['getGhsAttributeNameForElement'](_0x10df45['element']);_0xb13314['add'](_0x394117);for(const _0x28bb92 of _0x10df45['ghsAttributes'])_0xb13314['add'](_0x28bb92);}for(const _0x1bc7cd of _0x524f9f)_0x1a3bd2['registerBlockAttribute'](_0x1bc7cd),_0x1a3bd2['descriptionFactory']['registerAttributeLabel'](_0x1bc7cd,o(_0x2d20a3,'FORMAT_STYLE'));for(const _0x6266c4 of _0xb13314)_0x1a3bd2['registerInlineAttribute'](_0x6266c4),_0x1a3bd2['descriptionFactory']['registerAttributeLabel'](_0x6266c4,o(_0x2d20a3,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8f30ef=this['editor'],_0x2fc184=_0x8f30ef['locale'];_0x8f30ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d14b9=>{if('formatBlock'!=_0x1d14b9['type']&&'formatInline'!=_0x1d14b9['type'])return;const {data:_0x4d5f5b}=_0x1d14b9;return _0x4d5f5b&&'style'===_0x4d5f5b['commandName']?_0x4d5f5b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2fc184,'*Set\x20format:*\x20%0',_0x4d5f5b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2fc184,'*Remove\x20format:*\x20%0',_0x4d5f5b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x54db38{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xb9881e){super(_0xb9881e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3ff1c2=this['editor'],_0x5cb41b=_0x3ff1c2['model']['document']['selection'];if(!_0x3ff1c2['plugins']['has']('TableEditing'))return;const _0x1254ad=_0x3ff1c2['locale'],_0xa5b67b=_0x3ff1c2['plugins']['get']('TrackChangesEditing'),_0x7f9444=_0x3ff1c2['plugins']['get']('TableUtils');_0xa5b67b['descriptionFactory']['registerElementLabel']('table',_0x57aec9=>o(_0x1254ad,'ELEMENT_TABLE',_0x57aec9)),this['_setupColumnsRowsFixing'](),_0xa5b67b['enableCommand']('insertTable'),_0xa5b67b['enableCommand']('selectTableRow'),_0xa5b67b['enableCommand']('selectTableColumn');for(const _0x4d5dc1 of['insertTableRowAbove','insertTableRowBelow']){const _0x5901d7=_0x3ff1c2['commands']['get'](_0x4d5dc1);_0xa5b67b['enableCommand'](_0x4d5dc1,_0x3380fc=>{_0x3ff1c2['model']['change'](_0x40fd73=>{_0x3380fc();const _0x165c9c='above'===_0x5901d7['order'],_0x724001=_0x7f9444['getSelectionAffectedTableCells'](_0x5cb41b),_0x373d07=_0x7f9444['getRowIndexes'](_0x724001),_0x53be55=_0x165c9c?_0x373d07['first']-0x1:_0x373d07['last']+0x1,_0x3088eb=_0x724001[0x0]['findAncestor']('table'),_0x534e09=_0x7f9444['createTableWalker'](_0x3088eb,{'startRow':_0x53be55,'endRow':_0x53be55}),_0x1a4312=Array['from'](_0x534e09)['map'](_0x3d0698=>_0x40fd73['createRangeOn'](_0x3d0698['cell']));_0xa5b67b['markMultiRangeInsertion'](_0x1a4312,'tableRow');});});}for(const _0x5b5d43 of['insertTableColumnLeft','insertTableColumnRight']){const _0x37c7ea=_0x3ff1c2['commands']['get'](_0x5b5d43);_0xa5b67b['enableCommand'](_0x5b5d43,_0xabe585=>{_0x3ff1c2['model']['change'](_0x1bde2f=>{_0xabe585();const _0x3d9b12='left'===_0x37c7ea['order'],_0x5cb50b=_0x7f9444['getSelectionAffectedTableCells'](_0x5cb41b),_0x3e60b8=_0x7f9444['getColumnIndexes'](_0x5cb50b),_0x3d3dd9=_0x3d9b12?_0x3e60b8['first']-0x1:_0x3e60b8['last']+0x1,_0x209196=_0x5cb50b[0x0]['findAncestor']('table'),_0x271a7c=_0x7f9444['createTableWalker'](_0x209196,{'startRow':0x0,'column':_0x3d3dd9,'includeAllSlots':!0x1}),_0x5e3220=Array['from'](_0x271a7c)['map'](_0x1f6ef4=>_0x1bde2f['createRangeOn'](_0x1f6ef4['cell']));_0xa5b67b['markMultiRangeInsertion'](_0x5e3220,'tableColumn');});});}for(const _0x359ff5 of['removeTableRow','removeTableColumn']){const _0x30ce9f=_0x359ff5['substr'](0xb),_0x30db6b=_0x30ce9f['toLowerCase'](),_0x59ca46=_0x30db6b['substr'](0x0,0x3)+'span',_0x483b53='table'+_0x30ce9f,_0x2bbe84='min'+_0x30ce9f,_0x4cf2dd='max'+_0x30ce9f;_0xa5b67b['enableCommand'](_0x359ff5,()=>{_0x3ff1c2['model']['change'](_0x250792=>{const _0x5bc2e2=_0x7f9444['getSelectionAffectedTableCells'](_0x5cb41b),_0x375beb=_0x5bc2e2[0x0]['findAncestor']('table');let _0x3d1b15;if('removeTableRow'==_0x359ff5){const _0x23eb4e=_0x7f9444['getRowIndexes'](_0x5bc2e2);_0x3d1b15={'startRow':_0x23eb4e['first'],'endRow':_0x23eb4e['last'],'includeAllSlots':!0x0};}else{const _0x1b55e3=_0x7f9444['getColumnIndexes'](_0x5bc2e2);_0x3d1b15={'startColumn':_0x1b55e3['first'],'endColumn':_0x1b55e3['last'],'includeAllSlots':!0x0};}const _0x46cee2=_0x7f9444['createTableWalker'](_0x375beb,_0x3d1b15),_0x21c413=Array['from'](_0x46cee2)['map'](({cell:_0x3704c8})=>_0x3704c8),_0x583f0d=Ee(_0x21c413['filter'](_0x244cea=>_0x244cea['hasAttribute'](_0x59ca46))),_0x5895b8=Ee(_0x21c413['filter'](_0xa768b4=>!_0xa768b4['hasAttribute'](_0x59ca46)))['map'](_0x14d34f=>_0x250792['createRangeOn'](_0x14d34f)),_0x291ee4=_0xa5b67b['markMultiRangeDeletion'](_0x5895b8,_0x483b53);if(_0x291ee4&&('tableRow'==_0x291ee4['subType']||'tableColumn'==_0x291ee4['subType'])){const _0xc349eb=this['_getSuggestionCoords'](_0x291ee4);for(const _0x2a2d2c of _0x583f0d){const _0x385633=_0x250792['createRangeOn'](_0x2a2d2c),_0x3c9fb1=_0x7f9444['getCellLocation'](_0x2a2d2c),_0xb87fac=_0x2a2d2c['getAttribute'](_0x59ca46)-0x1,_0x123946=_0xc349eb[_0x2bbe84],_0x1d8c65=_0xc349eb[_0x4cf2dd];_0x123946<=_0x3c9fb1[_0x30db6b]&&_0x3c9fb1[_0x30db6b]+_0xb87fac<=_0x1d8c65&&_0x291ee4['addRange'](_0x385633);}}});});}function _0xcf10fa(_0x467e33){const _0x286328=Array['from'](_0x5cb41b['getRanges']())['map'](_0x56869a=>_0x216747['fromRange'](_0x56869a));_0x3ff1c2['model']['change'](_0x3a2889=>{const _0x3b8c0f=_0x3a2889['batch'];_0x467e33=_0x467e33['filter'](_0x111a97=>'$graveyard'!=_0x111a97['root']['rootName']),_0x3a2889['setSelection'](_0x467e33),_0x3ff1c2['commands']['get']('removeTableRow')['refresh'](),_0x3ff1c2['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3ff1c2['model']['enqueueChange'](()=>{_0x3ff1c2['model']['enqueueChange'](_0x3b8c0f,_0x2287d5=>{const _0xbdef0=_0x286328['filter'](_0x207766=>'$graveyard'!=_0x207766['root']['rootName']);_0xbdef0['length']>0x0&&_0x2287d5['setSelection'](_0xbdef0);for(const _0x312b3a of _0x286328)_0x312b3a['detach']();});});});}function _0x4c31aa(_0x3b95b1){_0x3ff1c2['model']['change'](_0x56a208=>{const _0x5c364f=Array['from'](_0x5cb41b['getRanges']())['map'](_0x5cf3be=>_0x216747['fromRange'](_0x5cf3be)),_0x520f55=[];for(const _0x285fa9 of _0x3b95b1)for(const _0x28977c of _0x285fa9['getItems']({'shallow':!0x0}))_0x520f55['push'](_0x28977c);for(const _0x18e326 of _0x520f55)'$graveyard'!=_0x18e326['root']['rootName']&&(_0x56a208['setSelection'](_0x56a208['createPositionAt'](_0x18e326,0x0)),_0x3ff1c2['commands']['get']('removeTableColumn')['refresh'](),_0x3ff1c2['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3fba62=_0x5c364f['filter'](_0x20d904=>'$graveyard'!=_0x20d904['root']['rootName']);_0x3fba62['length']>0x0&&_0x56a208['setSelection'](_0x3fba62);for(const _0x3fc0af of _0x5c364f)_0x3fc0af['detach']();});}function _0x58389f(_0x3a1c5d,_0xb1857d){return _0xb1857d['every'](_0x262c8a=>_0x3a1c5d['some'](_0x16224f=>_0x16224f['end']['isEqual'](_0x262c8a['start'])||_0x262c8a['end']['isEqual'](_0x16224f['start'])));}function _0x36dc75(_0x10571b,_0x97bd6d){return!_0x10571b['some'](_0x501121=>_0x97bd6d['some'](_0x3dec71=>_0x501121['isIntersecting'](_0x3dec71)))&&_0x10571b['some'](_0x42346c=>_0x97bd6d['some'](_0x5cec7c=>_0x42346c['end']['isTouching'](_0x5cec7c['start'])));}_0x3ff1c2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4a3ed6,_0x2f444a,_0x2021eb)=>{if(!_0x2021eb['options']['showSuggestionHighlights'])return;const _0x9d6edc=_0x2f444a['item'];if(!_0x9d6edc)return;const _0x56abaf=_0x2021eb['mapper']['toViewElement'](_0x9d6edc);function _0x1a125b(_0x551489){return Array['isArray'](_0x551489)?_0x551489:[_0x551489];}_0x56abaf&&'tableCell'===_0x9d6edc['name']&&_0x3ad1c3(_0x56abaf,_0x2021eb['writer'],(_0x7dad2f,_0x26475b,_0x453e75)=>_0x453e75['addClass'](_0x1a125b(_0x26475b['classes']),_0x7dad2f),(_0x5b4505,_0x712401,_0x5313ea)=>_0x5313ea['removeClass'](_0x1a125b(_0x712401['classes']),_0x5b4505));},{'priority':'highest'}),_0xa5b67b['descriptionFactory']['registerDescriptionCallback'](_0x2de5a1=>{if('insertion'!=_0x2de5a1['type']&&'deletion'!=_0x2de5a1['type'])return;const _0xe7afc2=_0x2de5a1['getContainedElement']();if(null!=_0xe7afc2&&_0xe7afc2['is']('element','table')){if('insertion'==_0x2de5a1['type']){const _0x4b0064=_0x2de5a1['getItems']()['filter'](_0x45a72c=>_0x45a72c['is']('$textProxy'))['map'](_0x589a85=>_0x589a85['data']);if(_0x4b0064['length'])return{'type':'insertion','content':o(_0x1254ad,'*Insert:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4b0064['join']('\x20')+'\x22'))};}if('deletion'==_0x2de5a1['type']){const _0x5c0bd8=_0x2de5a1['getItems']()['filter'](_0x1434f0=>_0x1434f0['is']('$textProxy'))['map'](_0x80ca73=>_0x80ca73['data']);if(_0x5c0bd8['length'])return{'type':'deletion','content':o(_0x1254ad,'*Remove:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5c0bd8['join']('\x20')+'\x22'))};}}}),_0xa5b67b['descriptionFactory']['registerDescriptionCallback'](_0x5796c2=>{if('tableRow'==_0x5796c2['subType']){const _0x4cc259=_0x5796c2['getItems']()['filter'](_0x2e7357=>_0x2e7357['is']('$textProxy'))['map'](_0x4028c3=>_0x4028c3['data']),_0x4afb77=this['_getSuggestionCoords'](_0x5796c2),_0x4ba398=_0x4afb77['maxRow']-_0x4afb77['minRow']+0x1;if('insertion'==_0x5796c2['type'])return _0x4cc259['length']?{'type':'insertion','content':o(_0x1254ad,'*Insert:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4ba398,'\x22'+_0x4cc259['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1254ad,'*Insert:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_ROW',_0x4ba398))};if('deletion'==_0x5796c2['type'])return _0x4cc259['length']?{'type':'deletion','content':o(_0x1254ad,'*Remove:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4ba398,'\x22'+_0x4cc259['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1254ad,'*Remove:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_ROW',_0x4ba398))};}if('tableColumn'==_0x5796c2['subType']){const _0x5dde6d=_0x5796c2['getItems']()['filter'](_0x2ec8b6=>_0x2ec8b6['is']('$textProxy'))['map'](_0x4687fa=>_0x4687fa['data']),_0x3d7947=this['_getSuggestionCoords'](_0x5796c2),_0x7f8f7f=_0x3d7947['maxColumn']-_0x3d7947['minColumn']+0x1;if('insertion'==_0x5796c2['type'])return _0x5dde6d['length']?{'type':'insertion','content':o(_0x1254ad,'*Insert:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x7f8f7f,'\x22'+_0x5dde6d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1254ad,'*Insert:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_COLUMN',_0x7f8f7f))};if('deletion'==_0x5796c2['type'])return _0x5dde6d['length']?{'type':'deletion','content':o(_0x1254ad,'*Remove:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x7f8f7f,'\x22'+_0x5dde6d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1254ad,'*Remove:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_COLUMN',_0x7f8f7f))};}}),_0xa5b67b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xcf10fa),_0xa5b67b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xcf10fa),_0xa5b67b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4c31aa),_0xa5b67b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4c31aa),_0xa5b67b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x58389f),_0xa5b67b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x58389f),_0xa5b67b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x36dc75),_0xa5b67b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x36dc75);}['_acceptFormatSuggestionCallbackFactory'](){const _0x320f58=this['editor'],_0x484cd1=_0x320f58['model']['document']['selection'];return(_0x280149,_0x56fdd4)=>{_0x320f58['model']['change'](_0x552251=>{const {commandName:_0x595887,commandParams:_0x16f9b1}=_0x56fdd4;let _0x562644=_0x280149[0x0]['end']['nodeBefore'];_0x16f9b1&&_0x16f9b1[0x0]&&!0x1===_0x16f9b1[0x0]['forceValue']&&(_0x562644=_0x280149[0x0]['start']['nodeAfter']);const _0x2f8f49=_0x552251['createRangeIn'](_0x562644);if('$graveyard'==_0x2f8f49['root']['rootName'])return;const _0x37f669=Array['from'](_0x484cd1['getRanges']())['map'](_0x1088bb=>_0x216747['fromRange'](_0x1088bb));_0x552251['setSelection'](_0x2f8f49),_0x320f58['commands']['get'](_0x595887)['refresh'](),_0x16f9b1['push']({'forceDefaultExecution':!0x0}),_0x320f58['execute'](_0x595887,..._0x16f9b1);const _0x56412f=_0x37f669['filter'](_0x2962df=>'$graveyard'!=_0x2962df['root']['rootName']);_0x56412f['length']>0x0&&_0x552251['setSelection'](_0x56412f);for(const _0xbdb983 of _0x37f669)_0xbdb983['detach']();});};}['_getCoordsForCells'](_0x1a3804){const _0x5bfb33=this['editor']['plugins']['get']('TableUtils');let _0x3e3dca=Number['MAX_SAFE_INTEGER'],_0x4e3085=Number['MIN_SAFE_INTEGER'],_0x30aa70=Number['MAX_SAFE_INTEGER'],_0xc96fdd=Number['MIN_SAFE_INTEGER'];for(const _0x427011 of _0x1a3804){if('$graveyard'==_0x427011['root']['rootName'])continue;const {row:_0x4b2e6e,column:_0x572703}=_0x5bfb33['getCellLocation'](_0x427011),_0xf65d75=_0x427011['hasAttribute']('rowspan')?_0x427011['getAttribute']('rowspan')-0x1:0x0,_0x211be6=_0x427011['hasAttribute']('colspan')?_0x427011['getAttribute']('colspan')-0x1:0x0;_0x3e3dca=_0x4b2e6e<_0x3e3dca?_0x4b2e6e:_0x3e3dca,_0x4e3085=_0x4b2e6e+_0xf65d75>_0x4e3085?_0x4b2e6e+_0xf65d75:_0x4e3085,_0x30aa70=_0x572703<_0x30aa70?_0x572703:_0x30aa70,_0xc96fdd=_0x572703+_0x211be6>_0xc96fdd?_0x572703+_0x211be6:_0xc96fdd;}return{'minRow':_0x3e3dca,'maxRow':_0x4e3085,'minColumn':_0x30aa70,'maxColumn':_0xc96fdd};}['_setupColumnsRowsFixing'](){const _0x1d9c43=this['editor'],_0x422329=_0x1d9c43['plugins']['get']('TrackChangesEditing'),_0x1ec8dd=_0x1d9c43['plugins']['get']('TableUtils');_0x1d9c43['model']['document']['on']('change:data',()=>{const _0x48c6e6=Array['from'](_0x1d9c43['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x23dc25,data:_0x2f36af}of _0x48c6e6){const {group:_0x4b5f08,id:_0x55159f,subType:_0x471253}=_0x422329['_splitMarkerName'](_0x23dc25);if('suggestion'!=_0x4b5f08)continue;if(null!=_0x2f36af['oldRange'])continue;const _0x3c2b77=_0x422329['getSuggestion'](_0x55159f);this['_tablePostFixingSubtypes']['includes'](_0x471253)&&this['_tableSuggestions']['add'](_0x3c2b77);}},{'priority':'low'});const _0x550464=(_0x205df7,_0x4441d8)=>{let _0x827141=!0x1;const _0x233887=_0x4441d8['createRangeOn'](_0x205df7),_0x2e77aa=_0x205df7['findAncestor']('table'),_0x91d1c5=_0x1ec8dd['getCellLocation'](_0x205df7);for(const _0x4705c1 of this['_tableSuggestions']){const _0x120b90=_0x4705c1['subType'],_0x1e5d65=_0x120b90['startsWith']('tablePaste'),_0x1bd15d=_0x120b90['substr'](_0x1e5d65?0xa:0x5),_0x5ccc82=_0x1bd15d['toLowerCase'](),_0x51fb3d=_0x5ccc82['substr'](0x0,0x3)+'span',_0x2c632d='min'+_0x1bd15d,_0x269311='max'+_0x1bd15d;if(!_0x4705c1['isInContent'])continue;if(_0x2e77aa!=_0x4705c1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4705c1['isIntersectingWithRange'](_0x233887))continue;const _0x278356=_0x205df7['hasAttribute'](_0x51fb3d)?_0x205df7['getAttribute'](_0x51fb3d)-0x1:0x0,_0x53c460=this['_getSuggestionCoords'](_0x4705c1),_0x9756c6=_0x53c460[_0x2c632d],_0x5c032d=_0x53c460[_0x269311];_0x9756c6<=_0x91d1c5[_0x5ccc82]&&_0x91d1c5[_0x5ccc82]+_0x278356<=_0x5c032d&&(_0x4705c1['addRange'](_0x233887),_0x827141=!0x0);}return _0x827141;};_0x1d9c43['model']['document']['registerPostFixer'](_0x5ed429=>{let _0x6f522f=!0x1;for(const _0x1ef015 of _0x1d9c43['model']['document']['differ']['getChanges']())if('insert'==_0x1ef015['type']){if('tableRow'==_0x1ef015['name']){for(const _0x5ca99b of _0x1ef015['position']['nodeAfter']['getChildren']())_0x6f522f=_0x6f522f||_0x550464(_0x5ca99b,_0x5ed429);}else'tableCell'==_0x1ef015['name']&&(_0x6f522f=_0x6f522f||_0x550464(_0x1ef015['position']['nodeAfter'],_0x5ed429));}return _0x6f522f;});}['_getSuggestionCoords'](_0x4dd8f7){return this['_getCoordsForCells'](_0x4dd8f7['getRanges']()['map'](_0x552ca7=>_0x552ca7['start']['nodeAfter']));}}function Ee(_0x43b4e9){return Array['from'](new Set(_0x43b4e9)['values']());}class St extends _0x54db38{static get['requires'](){return[jt];}['afterInit'](){const _0x217a3c=this['editor'],_0x59cacb=_0x217a3c['model']['document']['selection'],_0x31fba5=_0x217a3c['locale'];if(!_0x217a3c['plugins']['has']('TableEditing'))return;const _0x51cff0=_0x217a3c['plugins']['get']('TrackChangesEditing'),_0x3e2d21=_0x217a3c['plugins']['get']('TableUtils'),_0x26f315=_0x217a3c['plugins']['get'](jt);_0x26f315['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x51cff0['enableCommand']('mergeTableCells',()=>{const _0x3ed389=_0x3e2d21['getSelectionAffectedTableCells'](_0x217a3c['model']['document']['selection']);_0x217a3c['model']['change'](()=>{_0x51cff0['markMultiRangeBlockFormat'](_0x3ed389,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x217a3c['commands']['get']('mergeTableCells')['on']('execute',(_0xee4b6e,_0x443036)=>{_0x217a3c['commands']['get']('trackChanges')['value']&&(_0x443036['length']>0x0&&_0x443036[_0x443036['length']-0x1]&&_0x443036[_0x443036['length']-0x1]['forceDefaultExecution']||_0x51cff0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xee4b6e['stop']());},{'priority':'highest'});for(const _0x5a200a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1c886d=_0x217a3c['commands']['get'](_0x5a200a);_0x51cff0['enableCommand'](_0x5a200a,()=>{const _0x5217b8=_0x217a3c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x51c849=>_0x51c849['is']('element','tableCell')),_0x22f161=_0x1c886d['value'];_0x217a3c['model']['change'](()=>{_0x51cff0['markMultiRangeBlockFormat']([_0x5217b8,_0x22f161],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x571a39 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x36a30d=_0x217a3c['commands']['get'](_0x571a39);_0x51cff0['enableCommand'](_0x571a39,()=>{const _0x2481fe=_0x3e2d21['getSelectionAffectedTableCells'](_0x217a3c['model']['document']['selection'])[0x0],_0x2d7c60=_0x2481fe['findAncestor']('table'),{column:_0x3e5c75,row:_0x2d58bf}=_0x3e2d21['getCellLocation'](_0x2481fe);let _0x52959f=[];if('horizontally'==_0x36a30d['direction']){const _0x4f6ade=_0x3e2d21['createTableWalker'](_0x2d7c60,{'startRow':_0x2d58bf,'endRow':_0x2d58bf,'includeAllSlots':!0x0});_0x52959f=Array['from'](_0x4f6ade)['map'](_0x5adcee=>_0x5adcee['cell']);}else{const _0x318ce1=_0x3e2d21['createTableWalker'](_0x2d7c60,{'column':_0x3e5c75,'includeAllSlots':!0x0});_0x52959f=Array['from'](_0x318ce1)['map'](_0x11438f=>_0x11438f['cell']);}_0x217a3c['model']['change'](_0xf385e2=>{_0x51cff0['markBlockFormat'](_0xf385e2['createRangeOn'](_0x2481fe),{'commandName':_0x571a39,'commandParams':[]},_0x52959f,_0x571a39);});});}_0x51cff0['descriptionFactory']['registerDescriptionCallback'](_0x4d2d91=>{if('formatBlock'!=_0x4d2d91['type']&&'formatInline'!=_0x4d2d91['type'])return;const {data:_0xe9f38b}=_0x4d2d91;return _0xe9f38b&&'mergeTableCells'==_0xe9f38b['commandName']?{'type':'format','content':o(_0x31fba5,'*Merge\x20cells*')}:void 0x0;}),_0x51cff0['descriptionFactory']['registerDescriptionCallback'](_0x533523=>{if('formatBlock'!=_0x533523['type']&&'formatInline'!=_0x533523['type'])return;const {data:_0x52d697}=_0x533523;return _0x52d697?'splitTableCellVertically'==_0x52d697['commandName']?{'type':'format','content':o(_0x31fba5,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x52d697['commandName']?{'type':'format','content':o(_0x31fba5,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x271f03=_0x26f315['_acceptFormatSuggestionCallbackFactory']();for(const _0x208fe1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x51cff0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x208fe1,'accept',_0x271f03);for(const _0x45804b of['splitTableCellVertically','splitTableCellHorizontally'])_0x51cff0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x45804b,'accept',_0x271f03);_0x51cff0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2cb56e=>{_0x217a3c['model']['change'](_0x23735c=>{const _0x4de479=Array['from'](_0x59cacb['getRanges']())['map'](_0x24bd49=>_0x216747['fromRange'](_0x24bd49));_0x23735c['setSelection'](_0x2cb56e),_0x217a3c['commands']['get']('mergeTableCells')['refresh'](),_0x217a3c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x51f28d=_0x4de479['filter'](_0x20dcfc=>'$graveyard'!=_0x20dcfc['root']['rootName']);_0x51f28d['length']>0x0&&_0x23735c['setSelection'](_0x51f28d);for(const _0x16a144 of _0x4de479)_0x16a144['detach']();});});for(const _0x4334be of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xb5c95b=_0x217a3c['commands']['get'](_0x4334be);_0xb5c95b['on']('set:isEnabled',(_0x5465c3,_0x333ed1,_0x472b46)=>{if(_0x472b46){const _0x101b09=_0x217a3c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xe86730=>_0xe86730['is']('element','tableCell'));this['_areMergableCells'](_0xb5c95b['value'],_0x101b09)||(_0x5465c3['return']=!0x1,_0x5465c3['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x22cf39=this['editor']['commands']['get']('mergeTableCells'),_0x9e5f82=this['editor']['plugins']['get']('TableUtils');if(!_0x22cf39['isEnabled'])return!0x1;const _0x426324=_0x9e5f82['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5a9874 of _0x426324)for(const _0x1c6202 of _0x426324)if(_0x5a9874!=_0x1c6202&&!this['_areMergableCells'](_0x5a9874,_0x1c6202))return!0x1;return!0x0;}['_areMergableCells'](_0x2146b1,_0x51f393){const _0x38457d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x695e4c=this['editor']['model']['createRangeOn'](_0x2146b1),_0x35dcdf=this['editor']['model']['createRangeOn'](_0x51f393),_0x2d1ffd=new Set(),_0x431de1=new Set();for(const _0x5b9528 of _0x38457d['getSuggestions']())if(('insertion'==_0x5b9528['type']||'deletion'==_0x5b9528['type']||'mergeTableCells'==_0x5b9528['subType'])&&_0x5b9528['isInContent']){for(const _0x11489b of _0x5b9528['getRanges']())_0x11489b['containsRange'](_0x695e4c,!0x0)&&_0x2d1ffd['add'](_0x5b9528['type']+':'+_0x5b9528['author']['id']),_0x11489b['containsRange'](_0x35dcdf,!0x0)&&_0x431de1['add'](_0x5b9528['type']+':'+_0x5b9528['author']['id']);}if(_0x2d1ffd['size']!=_0x431de1['size'])return!0x1;for(const _0x54d0b2 of _0x2d1ffd)if(!_0x431de1['has'](_0x54d0b2))return!0x1;return!0x0;}}class At extends _0x54db38{static get['requires'](){return[jt];}['afterInit'](){const _0xc00cb1=this['editor'];if(!_0xc00cb1['plugins']['has']('TableEditing'))return;const _0x42043d=_0xc00cb1['locale'],_0x4864ad=_0xc00cb1['plugins']['get']('TrackChangesEditing');_0x4864ad['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4864ad['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4864ad['registerBlockAttribute']('headingRows'),_0x4864ad['registerBlockAttribute']('headingColumns'),_0x4864ad['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x42043d,'FORMAT_HEADER_ROW')),_0x4864ad['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x42043d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x8dc761=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfe926e=this['editor']['plugins']['get']('TableUtils'),_0xb5fc4d=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x13c905({showActiveMarker:_0x4cb047=!0x0,setDataAttribute:_0x146c61=!0x0}={}){return(_0x415aba,_0x2d5aca,_0x5de747)=>{const {type:_0xfafb9a,id:_0x452d93}=_0x8dc761['_splitMarkerName'](_0x2d5aca['markerName']),_0x3f157e=_0x8dc761['getSuggestion'](_0x452d93),_0x104abb=_0x3f157e['data'];if('formatBlock'!=_0x3f157e['type']||!_0x104abb||'setTableColumnHeader'!=_0x104abb['commandName'])return;if(_0x2d5aca['item'])return void _0x415aba['stop']();if(!_0x5de747['consumable']['consume'](_0x2d5aca['markerRange'],_0x415aba['name']))return;const _0x4b657c=_0x2d5aca['markerRange']['start']['nodeAfter'],_0x4a4056=_0x2d5aca['markerRange']['end']['nodeBefore'],_0x3eda8b=_0x4b657c['parent']['parent'],{column:_0x376afa}=_0xfe926e['getCellLocation'](_0x4b657c),{column:_0x28e6dc}=_0xfe926e['getCellLocation'](_0x4a4056);for(let _0xcf3ab5=_0x376afa;_0xcf3ab5<=_0x28e6dc;_0xcf3ab5++){const _0x5db4e6=_0xfe926e['createTableWalker'](_0x3eda8b,{'column':_0xcf3ab5,'includeAllSlots':!0x1});for(const _0x20b0cc of _0x5db4e6){const _0x541e5e=_0x20b0cc['cell'],_0x834321=_0x5de747['mapper']['toViewElement'](_0x541e5e);_0x5de747['writer']['addClass']('ck-suggestion-marker-'+_0xfafb9a,_0x834321),_0x146c61&&_0x5de747['writer']['setAttribute']('data-suggestion',_0x452d93,_0x834321),_0x5de747['mapper']['bindElementToMarker'](_0x834321,_0x2d5aca['markerName']),_0x4cb047&&(_0x8dc761['activeMarkers']['includes'](_0x2d5aca['markerName'])?_0x5de747['writer']['addClass']('ck-suggestion-marker--active',_0x834321):_0x5de747['writer']['removeClass']('ck-suggestion-marker--active',_0x834321));}}};}_0x8dc761['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xb5fc4d),_0x8dc761['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xb5fc4d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x13c905(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5d1f2f,_0x1fb4c1,_0x250fa4)=>{_0x250fa4['options']['showSuggestionHighlights']&&_0x13c905({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5d1f2f,_0x1fb4c1,_0x250fa4);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x206803,_0x56f6ea,_0x1c546f)=>{const {type:_0xeb7fd3,id:_0x26b262}=_0x8dc761['_splitMarkerName'](_0x56f6ea['markerName']),_0x5e9018=_0x8dc761['getSuggestion'](_0x26b262),_0x2a60ef=_0x5e9018['data'];if('formatBlock'!=_0x5e9018['type']||!_0x2a60ef||'setTableColumnHeader'!=_0x2a60ef['commandName'])return;const _0x1397b8=_0x1c546f['mapper']['markerNameToElements'](_0x56f6ea['markerName']);if(_0x1397b8){for(const _0x3cb0b3 of _0x1397b8)_0x1c546f['writer']['removeClass']('ck-suggestion-marker-'+_0xeb7fd3,_0x3cb0b3),_0x1c546f['writer']['removeClass']('ck-suggestion-marker--active',_0x3cb0b3),_0x1c546f['writer']['removeAttribute']('data-suggestion',_0x3cb0b3),_0x1c546f['mapper']['unbindElementFromMarkerName'](_0x3cb0b3,_0x56f6ea['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf499d0=this['editor'],_0x2b81b1=_0xf499d0['locale'];function _0x47fcbe(_0x538a66){return{'type':'format','content':o(_0x2b81b1,'*Format:*\x20%0',_0x538a66)};}_0xf499d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ea4c4=>{if('formatBlock'!=_0x5ea4c4['type'])return;const {data:_0x5ae83c}=_0x5ea4c4;if(_0x5ae83c){if('setTableRowHeader'==_0x5ae83c['commandName']){const _0x497369=_0x5ae83c['commandParams'][0x0]['forceValue'];return _0x47fcbe(o(_0x2b81b1,_0x497369?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5ae83c['commandName']){const _0x34f9c5=_0x5ae83c['commandParams'][0x0]['forceValue'];return _0x47fcbe(o(_0x2b81b1,_0x34f9c5?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x330e64=>[_0x330e64,null]));class It extends _0x54db38{static get['requires'](){return[jt];}['afterInit'](){const _0x50c080=this['editor'];if(!_0x50c080['plugins']['has']('TableClipboard'))return;const _0xc21638=_0x50c080['plugins']['get']('TrackChangesEditing'),_0x593905=_0x50c080['plugins']['get']('TableUtils'),_0x39328e=_0x50c080['plugins']['get'](jt),_0x512f06=_0x50c080['plugins']['get']('TableClipboard');_0x39328e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x50c080['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x50c080['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2fcfb5=null;_0x50c080['model']['on']('insertContent',(_0x2f32a7,_0x4d7e80)=>{const [_0x5f0198,_0x29b10a]=_0x4d7e80,_0x1fe568=_0x4d7e80[_0x4d7e80['length']-0x1];_0x1fe568&&_0x1fe568['forceDefaultExecution']||_0xc21638['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3b9f3b,_0x403184,_0x5952af,_0x4dc1ff,_0x2972fc){if(_0x403184&&!_0x403184['is']('documentSelection'))return!0x1;const _0x2fb604=_0x2972fc['getTableIfOnlyTableInContent'](_0x3b9f3b,_0x5952af);if(!_0x2fb604||!he(_0x2fb604,void 0x0,_0x4dc1ff))return!0x1;const _0x24e6d4=_0x4dc1ff['getSelectionAffectedTableCells'](_0x5952af['document']['selection']);if(!_0x24e6d4['length'])return!0x1;const _0x51f075=_0x24e6d4[0x0]['findAncestor']('table'),_0x3ca500=_0x4dc1ff['getRowIndexes'](_0x24e6d4),_0x1ca930=_0x4dc1ff['getColumnIndexes'](_0x24e6d4),_0x167817={'startRow':_0x3ca500['first'],'endRow':_0x3ca500['last'],'startColumn':_0x1ca930['first'],'endColumn':_0x1ca930['last']};return 0x1==_0x24e6d4['length']&&(_0x167817['endRow']+=_0x4dc1ff['getRows'](_0x2fb604)-0x1,_0x167817['endColumn']+=_0x4dc1ff['getColumns'](_0x2fb604)-0x1),he(_0x51f075,_0x167817,_0x4dc1ff);}(_0x5f0198,_0x29b10a,_0x50c080['model'],_0x593905,_0x512f06)&&(_0x2f32a7['stop'](),_0x2fcfb5={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x50c080['model']['change'](()=>{_0x50c080['model']['insertContent'](_0x4d7e80[0x0],_0x4d7e80[0x1],_0x4d7e80[0x2],{'forceDefaultExecution':!0x0});const _0xaee6dd=_0xa3dac7(),{rowInsertionRanges:_0x288ce6,columnInsertionRanges:_0x27c601,insertionRanges:_0x54aaa5,deletionRanges:_0x30c7c9,cells:_0x276fe9}=_0x2fcfb5;_0x288ce6['length']&&_0xc21638['markMultiRangeInsertion'](_0x288ce6,'tablePasteRow',{'tablePasteChainId':_0xaee6dd}),_0x27c601['length']&&_0xc21638['markMultiRangeInsertion'](_0x27c601,'tablePasteColumn',{'tablePasteChainId':_0xaee6dd}),_0x54aaa5['length']&&(_0xc21638['markMultiRangeInsertion'](_0x54aaa5,'tablePaste',{'tablePasteChainId':_0xaee6dd,'skipNestingCheck':!0x0}),_0x54aaa5['forEach'](_0xd4dd37=>_0xd4dd37['detach']?.())),_0x30c7c9['length']&&(_0xc21638['markMultiRangeDeletion'](_0x30c7c9,'tablePaste',{'tablePasteChainId':_0xaee6dd,'skipNestingCheck':!0x0}),_0x30c7c9['forEach'](_0x4d4d12=>_0x4d4d12['detach']?.()));const _0x4badad=_0xc21638['markMultiRangeBlockFormat'](_0x276fe9['map'](({element:_0x528e0b})=>_0x528e0b),{'formatGroupId':_0xa3dac7()},[],'tablePasteCell',{'tablePasteChainId':_0xaee6dd});if(_0x4badad){const _0x12a032=_0x4badad['getMarkers'](),_0x4fd41c=[];for(const {element:_0x4cbd58,attributes:_0x46758a}of _0x276fe9){if(!_0x46758a)continue;const _0xa5220a=_0x50c080['model']['createRangeOn'](_0x4cbd58),_0x3ff2c4=_0x12a032['find'](_0xc97ed7=>_0xc97ed7['getRange']()['isEqual'](_0xa5220a));_0x3ff2c4&&_0x4fd41c['push']([_0x3ff2c4['name'],_0x46758a]);}_0x4fd41c['length']&&_0x4badad['setAttribute']('markerAttributes',Object['fromEntries'](_0x4fd41c));}_0x2fcfb5=null;}));},{'priority':_0x275526['high']+0xa}),_0x50c080['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5047dd,_0x5e72da)=>{const [_0x412af1,_0x50e921,,_0x1f2836]=_0x5e72da;if(!_0x2fcfb5)return;_0x5047dd['stop']();const _0x1b08b7=_0x412af1['cell'],_0x3e4d9a=_0x50e921,_0x2b3fdc=Pe(_0x1b08b7),_0x11ef4c=Pe(_0x3e4d9a);_0x5047dd['return']=_0x1b08b7;let _0x4fb922=null,_0x37a7ae=null;if(_0x11ef4c||_0x2b3fdc){if(_0x2b3fdc&&!_0x11ef4c){_0x1f2836['remove'](_0x1b08b7['getChild'](0x0));for(const _0x318971 of Array['from'](_0x3e4d9a['getChildren']()))_0x1f2836['insert'](_0x318971,_0x1b08b7,'end');const _0x48899=_0x2fcfb5['rowInsertionIndexes']['includes'](_0x412af1['row']),_0x1d261d=_0x2fcfb5['columnInsertionIndexes']['includes'](_0x412af1['column']);_0x48899||_0x1d261d||(_0x4fb922=_0x216747['fromRange'](_0x1f2836['createRangeIn'](_0x1b08b7)));}else _0x11ef4c&&!_0x2b3fdc&&(_0x37a7ae=_0x1f2836['createRangeIn'](_0x1b08b7));}else{const _0x15f6cf=_0x1f2836['createElement']('tableCellSuggestion'),_0x3fefc2=_0x1f2836['createElement']('tableCellSuggestion');_0x1f2836['wrap'](_0x1f2836['createRangeIn'](_0x1b08b7),_0x3fefc2),_0x1f2836['insert'](_0x15f6cf,_0x1b08b7,0x0);for(const _0xbe0f8d of Array['from'](_0x3e4d9a['getChildren']()))_0x1f2836['insert'](_0xbe0f8d,_0x15f6cf,'end');_0x4fb922=_0x216747['fromRange'](_0x1f2836['createRangeOn'](_0x15f6cf)),_0x37a7ae=_0x216747['fromRange'](_0x1f2836['createRangeOn'](_0x3fefc2));}const _0x734c05=Array['from'](_0x3e4d9a['getAttributes']())['filter'](([_0x180a0b])=>ge['includes'](_0x180a0b));_0x2fcfb5['cells']['push']({'element':_0x1b08b7,'attributes':_0x734c05['length']?Object['fromEntries'](_0x734c05):null}),_0x4fb922&&_0x2fcfb5['insertionRanges']['push'](_0x4fb922),_0x37a7ae&&_0x2fcfb5['deletionRanges']['push'](_0x37a7ae);},{'priority':'high'}),_0x593905['on']('insertColumns',(_0x1cc9ae,_0x26f981)=>{const [_0x23aece,_0x56b56d={}]=_0x26f981;if(!_0x2fcfb5)return;const _0x55955f=_0x56b56d['at']||0x0,_0x471918=_0x56b56d['columns']||0x1;_0x2fcfb5['columnInsertionIndexes']=new Array(_0x471918)['fill'](_0x55955f)['map']((_0x5954f0,_0x2c64a5)=>_0x5954f0+_0x2c64a5);for(const {cell:_0x3e426c}of _0x593905['createTableWalker'](_0x23aece,{'startColumn':_0x55955f,'endColumn':_0x55955f+_0x471918-0x1}))_0x2fcfb5['columnInsertionRanges']['push'](_0x50c080['model']['createRangeOn'](_0x3e426c));},{'priority':'low'}),_0x593905['on']('insertRows',(_0x192017,_0x190011)=>{const [_0x207670,_0x3fc105={}]=_0x190011;if(!_0x2fcfb5)return;const _0x42bd0e=_0x3fc105['at']||0x0,_0x4bd9b5=_0x3fc105['rows']||0x1;_0x2fcfb5['rowInsertionIndexes']=new Array(_0x4bd9b5)['fill'](_0x42bd0e)['map']((_0x4f4541,_0x4e346d)=>_0x4f4541+_0x4e346d);for(const {cell:_0x529bd0}of _0x593905['createTableWalker'](_0x207670,{'startRow':_0x42bd0e,'endRow':_0x42bd0e+_0x4bd9b5-0x1}))_0x2fcfb5['rowInsertionRanges']['push'](_0x50c080['model']['createRangeOn'](_0x529bd0));},{'priority':'low'}),_0xc21638['descriptionFactory']['registerDescriptionCallback'](_0x2a5630=>{if(_0x2a5630['subType']&&_0x2a5630['subType']['startsWith']('tablePaste'))return _0x2a5630['previous']?{}:{'type':'insertion','content':o(_0x50c080['locale'],'*Replace\x20table\x20cells*')};});const _0x1be976=()=>!0x1;for(const _0x5b4c21 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xc21638['_suggestionFactory']['registerCustomCallback']('insertion',_0x5b4c21,'join',_0x1be976),_0xc21638['_suggestionFactory']['registerCustomCallback']('deletion',_0x5b4c21,'join',_0x1be976),_0xc21638['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5b4c21,'join',_0x1be976);_0xc21638['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1be976),_0xc21638['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x13071a,_0xa0473f,_0x3c4afe)=>{const _0xb7b308=_0x13071a['map'](_0x3ea58d=>_0x3ea58d['getContainedElement']())['filter'](_0x14f591=>_0x14f591),_0x43e7b3=new Map(_0xb7b308['map'](_0xfe4e7d=>[_0xfe4e7d,null]));if(_0x2fcfb5){for(const {element:_0x43d246,attributes:_0x2f6b0f}of _0x2fcfb5['cells'])_0x2f6b0f&&_0x43e7b3['set'](_0x43d246,_0x2f6b0f);}else{if(_0x3c4afe&&_0x3c4afe['markerAttributes'])for(const [_0x14bf75,_0x1b7fdf]of Object['entries'](_0x3c4afe['markerAttributes'])){const _0x13f345=_0x50c080['model']['markers']['get'](_0x14bf75),_0x21bea=_0x13f345?_0x13f345['getRange']()['getContainedElement']():null;_0x21bea&&_0x43e7b3['set'](_0x21bea,_0x1b7fdf);}}_0x50c080['model']['change'](_0xecb013=>{for(const [_0x4e2b0b,_0x6f9716]of _0x43e7b3)_0xecb013['setAttributes']({...Ce,..._0x6f9716},_0x4e2b0b);});});const _0x1da2b7=(_0x571345,_0x24eec5)=>{_0xc21638['_suggestionFactory']['registerCustomCallback'](_0x571345,'tablePaste',_0x24eec5,(_0x2c0a8c,_0x11c732,_0x155f18)=>{_0x50c080['model']['change'](_0x1b366d=>{const _0x3dd667=[];for(const _0x1985c5 of _0x2c0a8c){const _0x59d7e3=_0x1985c5['start']['nodeAfter'];_0x59d7e3['is']('element','tableCellSuggestion')&&_0x3dd667['push'](_0x59d7e3);}_0xc21638['_suggestionFactory']['getSuggestionCallback'](_0x571345,null,_0x24eec5)(_0x2c0a8c,_0x11c732,_0x155f18);for(const _0x44b272 of _0x3dd667)'$graveyard'!=_0x44b272['root']['rootName']&&_0x1b366d['unwrap'](_0x44b272);});});};_0x1da2b7('insertion','accept'),_0x1da2b7('insertion','discard'),_0x1da2b7('deletion','accept'),_0x1da2b7('deletion','discard'),_0xc21638['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x21ea9b=>{const _0x36e963=_0x21ea9b['map'](_0x5b07d3=>_0x5b07d3['getContainedElement']()),_0x26014e=_0x36e963[0x0]['findAncestor']('table'),{minRow:_0x49cbf9,maxRow:_0x3885e2}=_0x39328e['_getCoordsForCells'](_0x36e963);_0x593905['removeRows'](_0x26014e,{'at':_0x49cbf9,'rows':_0x3885e2-_0x49cbf9+0x1});}),_0xc21638['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x31e230=>{const _0x4f6205=_0x31e230['map'](_0x57cb58=>_0x57cb58['getContainedElement']()),_0x98f49=_0x4f6205[0x0]['findAncestor']('table'),{minColumn:_0x36c534,maxColumn:_0x147dba}=_0x39328e['_getCoordsForCells'](_0x4f6205);_0x593905['removeColumns'](_0x98f49,{'at':_0x36c534,'columns':_0x147dba-_0x36c534+0x1});});const _0x1bf492=(_0x1cdc57,_0xbbd656)=>{if(!_0xbbd656['subType']||!_0xbbd656['subType']['startsWith']('tablePaste'))return;const _0x271fb3=_0xbbd656['attributes']['tablePasteChainId'],_0xe944f7=_0xc21638['getSuggestions']()['filter'](_0x4ac973=>_0x4ac973['isInContent']&&_0x4ac973['attributes']&&_0x4ac973['attributes']['tablePasteChainId']==_0x271fb3);_0xe944f7['length']&&_0xbbd656['getAllAdjacentSuggestions']()['length']!=_0xe944f7['length']&&_0xe944f7['reduce']((_0x4e4615,_0x42c944)=>(_0x4e4615['next']=_0x42c944,_0x42c944['previous']=_0x4e4615,_0x42c944));};function _0x427e34(_0x38a575,_0x554966=!0x0){const {id:_0x18479e}=_0xc21638['_splitMarkerName'](_0x38a575['markerName']),_0x2a3a7f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x22060b=_0xc21638['activeMarkers']['includes'](_0x38a575['markerName']);return _0x22060b&&_0x2a3a7f['push']('ck-suggestion-marker--active'),{'classes':_0x2a3a7f,'attributes':{'data-suggestion':_0x18479e},'priority':_0x22060b&&_0x554966?0xbc2:0xbb8};}_0xc21638['on']('suggestionLoaded',_0x1bf492,{'priority':'high'}),_0xc21638['on']('suggestionUnloaded',_0x1bf492,{'priority':'high'}),_0x50c080['model']['document']['registerPostFixer'](()=>{let _0x5d5735=!0x1;const _0x239994=Array['from'](_0x50c080['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xc08053,data:_0x20bda6}of _0x239994){const {group:_0x23642d,type:_0x43f18d,id:_0x5ba590}=_0xc21638['_splitMarkerName'](_0xc08053);if('suggestion'!=_0x23642d||'deletion'!=_0x43f18d||_0x20bda6['oldRange'])continue;if(!_0xc21638['hasSuggestion'](_0x5ba590))continue;const _0x2bb1e6=_0xc21638['getSuggestion'](_0x5ba590)['getRanges'](),_0x55695f=_0x50c080['plugins']['get']('Users')['me'];for(const _0x507437 of _0xc21638['getSuggestions']()){if(!_0x507437['isInContent']||_0x507437['author']!=_0x55695f)continue;if('formatBlock'!=_0x507437['type']||'tablePasteCell'!=_0x507437['subType'])continue;if(_0x507437['getRanges']()['every'](_0x76e2ef=>_0x2bb1e6['some'](_0x34a335=>_0x34a335['containsRange'](_0x76e2ef,!0x0)))){for(const _0xe5f207 of _0x507437['getAllAdjacentSuggestions']())_0xe5f207['isInContent']&&(_0xe5f207['discard'](),_0x5d5735=!0x0);}}}return _0x5d5735;}),_0x50c080['model']['document']['registerPostFixer'](_0x1a5660=>{const _0x5a30fd=_0x50c080['commands']['get']('redo');if(!_0x5a30fd||!_0x5a30fd['_createdBatches']['has'](_0x1a5660['batch']))return!0x1;let _0xfc97c0=!0x1;const _0x5cb99c=_0x50c080['plugins']['get']('Users')['me'],_0x1112a2=_0x50c080['model']['document']['differ']['getChanges'](),_0x1191c1=Array['from'](_0x50c080['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1ab6e4,data:_0xf40ad0})=>{const {group:_0x50d3d3,subType:_0x3fd904,authorId:_0x5a6995}=_0xc21638['_splitMarkerName'](_0x1ab6e4);return'suggestion'==_0x50d3d3&&'tablePaste'==_0x3fd904&&_0x5a6995==_0x5cb99c['id']&&!_0xf40ad0['oldRange'];});for(const _0x2fe049 of _0x1112a2){if('insert'!=_0x2fe049['type']||'tableCellSuggestion'!=_0x2fe049['name']||0x1!=_0x2fe049['length'])continue;const _0x567304=_0x1a5660['createRange'](_0x2fe049['position'],_0x2fe049['position']['getShiftedBy'](0x1));if(!_0x1191c1['find'](({data:_0x23ce27})=>_0x23ce27['newRange']['isEqual'](_0x567304))){for(const {name:_0x2a9ef0,data:_0x568370}of _0x1191c1)if(_0x567304['containsRange'](_0x568370['newRange'])){_0x1a5660['updateMarker'](_0x2a9ef0,{'range':_0x567304}),_0xfc97c0=!0x0;break;}}}return _0xfc97c0;}),_0x50c080['model']['document']['registerPostFixer'](_0x37d9d6=>{let _0x382593=!0x1;const _0x1935b3=_0x50c080['plugins']['get']('Users')['me'],_0x53fa43=_0xc21638['getSuggestions']()['filter'](_0x12737a=>_0x12737a['isInContent']&&_0x12737a['author']==_0x1935b3),_0x32b73c=new Set(),_0x4a07cb=new Set();for(const _0x4f9650 of _0x53fa43)if('tablePaste'==_0x4f9650['subType'])for(const _0x4cb320 of _0x4f9650['getMarkers']()){const _0x287648=_0x4cb320['getRange']()['getContainedElement']();if(_0x287648){if(_0x287648['is']('element','tableCellSuggestion')&&Pe(_0x287648)){_0x4f9650['removeMarker'](_0x4cb320['name']),_0x32b73c['add'](_0x287648),_0x382593=!0x0;const _0x2238bb=_0x287648['nextSibling'],_0x1004d7=_0x287648['previousSibling'],_0xdad224=_0x2238bb&&_0x2238bb['is']('element','tableCellSuggestion'),_0x1cd629=_0x1004d7&&_0x1004d7['is']('element','tableCellSuggestion');_0xdad224&&!_0x32b73c['has'](_0x2238bb)&&_0x4a07cb['add'](_0x2238bb),_0x1cd629&&!_0x32b73c['has'](_0x1004d7)&&_0x4a07cb['add'](_0x1004d7);}else _0x287648['is']('element','paragraph')&&_0x287648['isEmpty']&&(_0x4f9650['removeMarker'](_0x4cb320['name']),_0x382593=!0x0);}}else{if('tablePasteCell'==_0x4f9650['subType']){if(!_0x4f9650['attributes']||!_0x4f9650['attributes']['tablePasteChainId'])continue;const _0x320072=_0x4f9650['attributes']['markerAttributes'];if(_0x320072&&Object['keys'](_0x320072)['length'])continue;const _0x3e2011=_0x4f9650['attributes']['tablePasteChainId'];let _0xfc7ea2=!0x0,_0x1af069=!0x0;for(const _0x3e20e6 of _0x53fa43)if(_0x3e20e6['subType']&&_0x3e20e6['subType']['startsWith']('tablePaste')){if(!_0x3e20e6['attributes']['tablePasteChainId']){_0x1af069=!0x1;break;}if(_0x3e20e6['id']!=_0x4f9650['id']&&_0x3e20e6['attributes']['tablePasteChainId']==_0x3e2011){_0xfc7ea2=!0x1;break;}}_0x1af069&&_0xfc7ea2&&(_0x4f9650['removeMarkers'](),_0x382593=!0x0);}}for(const _0x2b9416 of _0x32b73c)_0x37d9d6['remove'](_0x2b9416);for(const _0xb03e75 of _0x4a07cb)_0x37d9d6['unwrap'](_0xb03e75);return _0x382593;}),_0x50c080['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x203cb1,_0x21eedb)=>_0x427e34(_0x203cb1),'converterPriority':'high'}),_0x50c080['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x22488c,_0x379782)=>_0x379782['options']['showSuggestionHighlights']?_0x427e34(_0x22488c,!0x1):null,'converterPriority':'high'});const _0x18bab7=_0x50c080['editing']['view'];this['listenTo'](_0x18bab7['document'],'clipboardOutput',(_0x1516d8,_0x4a4810)=>{const _0x35a157=[];for(const _0x3d024e of _0x18bab7['createRangeIn'](_0x4a4810['content'])['getItems']())_0x3d024e['is']('element','suggestion-td')&&_0x35a157['push'](_0x3d024e);_0x18bab7['change'](_0x251a83=>{for(const _0x3fe846 of _0x35a157)_0x251a83['move'](_0x251a83['createRangeIn'](_0x3fe846),_0x251a83['createPositionBefore'](_0x3fe846)),_0x251a83['remove'](_0x3fe846);});});}}function Pe(_0x11ac4d){if(_0x11ac4d['isEmpty'])return!0x0;const _0x497804=_0x11ac4d['getChild'](0x0);return _0x497804['is']('element','paragraph')&&_0x497804['isEmpty'];}function he(_0x535f2e,_0x18cb14={},_0x46dcee){for(const {isAnchor:_0x2327ff,cellHeight:_0x303c5e,cellWidth:_0xaf6da8}of _0x46dcee['createTableWalker'](_0x535f2e,{'includeAllSlots':!0x0,..._0x18cb14}))if(!_0x2327ff||0x1!=_0x303c5e||0x1!=_0xaf6da8)return!0x1;return!0x0;}class vt extends _0x54db38{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x473832=this['editor']['plugins']['get']('TrackChangesEditing');_0x473832['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x473832['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x473832['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x473832['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x473832['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x473832['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2f6233,_0x5b8859){const _0x19e42e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1cedfe=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4dbe01=_0x5b8859['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xeee6dc=_0x1cedfe['getColumnGroupElement'](_0x4dbe01);let _0x3256f5=_0xeee6dc?_0x1cedfe['getTableColumnsWidths'](_0xeee6dc):null,_0x5ebe77=_0x4dbe01['getAttribute']('tableWidth')||null;const _0x1f0760=_0x5b8859['tableWidth']||_0x5ebe77,_0x4bd3d4=_0x5b8859['columnWidths']||_0x3256f5,_0x1aa469=this['editor']['plugins']['get']('Users')['me'];for(const _0x3cc61e of _0x19e42e['getSuggestions']()){const _0xdd5aed=_0x3cc61e['getContainedElement']();if('resizeTable'===_0x3cc61e['subType']&&_0xdd5aed===_0x4dbe01){_0x3cc61e['author']!==_0x1aa469&&_0x3cc61e['discard']();const _0x224713=_0x3cc61e['data']['commandParams'];_0x5ebe77=_0x224713[0x0]['tableWidth'],_0x3256f5=_0x224713[0x0]['columnWidths'];break;}}_0x2f6233({'table':_0x4dbe01,'tableWidth':_0x1f0760,'columnWidths':_0x4bd3d4}),_0x19e42e['markBlockFormat'](_0x4dbe01,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5ebe77,'columnWidths':_0x3256f5}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x572e5d){if('formatBlock'!=_0x572e5d['type']&&'formatInline'!=_0x572e5d['type'])return;const {data:_0x5f18b4}=_0x572e5d;if(_0x5f18b4&&'resizeTable'===_0x5f18b4['formatGroupId']){const _0x18bb46='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x18bb46)};}}}class Ct extends _0x54db38{['afterInit'](){const _0xa26451=this['editor'];_0xa26451['plugins']['has']('Template')&&_0xa26451['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x54db38{['afterInit'](){const _0x4e5005=this['editor'];if(!_0x4e5005['commands']['get']('insertTableOfContents'))return;_0x4e5005['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4e32f7=_0x4e5005['plugins']['get']('TrackChangesEditing'),_0x10bde8=_0x4e5005['locale'];_0x4e32f7['descriptionFactory']['registerElementLabel']('tableOfContents',_0xa42242=>o(_0x10bde8,'ELEMENT_TABLE_OF_CONTENTS',_0xa42242));}}class Dt extends _0x54db38{['afterInit'](){const _0xbe2d8e=this['editor'];if(!_0xbe2d8e['plugins']['has']('Title'))return;const _0x3928da=_0xbe2d8e['plugins']['get']('TrackChangesEditing');_0x3928da['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xbe2d8e['locale'],'ELEMENT_TITLE')),_0xbe2d8e['model']['document']['registerPostFixer'](_0x20110b=>{let _0x2539cc=!0x1;const _0x59f8f1=Array['from'](_0xbe2d8e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x58cc7e,data:_0x5e80d8}of _0x59f8f1){const {group:_0x1554e2}=_0x3928da['_splitMarkerName'](_0x58cc7e);if('suggestion'!==_0x1554e2||!_0x5e80d8['newRange'])continue;const _0x52c9f9=_0x5e80d8['newRange'],_0x2bcff5=_0x52c9f9['end']['nodeBefore'];if(!_0x2bcff5||!_0x2bcff5['is']('element','title-content'))continue;if(!_0x52c9f9['start']['isTouching'](_0x52c9f9['end']))continue;const _0x1f564f=_0xbe2d8e['model']['schema']['getNearestSelectionRange'](_0x52c9f9['end'],'forward');if(_0x1f564f&&_0x1f564f['isCollapsed']){const _0x39e124=_0x20110b['createRange'](_0x52c9f9['start'],_0x1f564f['start']);_0x39e124['isEqual'](_0x52c9f9)||(_0x20110b['updateMarker'](_0x58cc7e,{'range':_0x39e124}),_0x2539cc=!0x0);}_0x2539cc||(_0x20110b['removeMarker'](_0x58cc7e),_0x2539cc=!0x0);}return _0x2539cc;});}}class Nt extends _0x54db38{['afterInit'](){const _0x2bb460=this['editor'],_0x1c7ff1=_0x2bb460['plugins']['get']('TrackChangesEditing');_0x2bb460['plugins']['has']('UndoEditing')&&(_0x1c7ff1['enableCommand']('undo'),_0x1c7ff1['enableCommand']('redo'));}}class Mt extends _0x54db38{static get['requires'](){return[jt];}['afterInit'](){const _0x50c3ae=this['editor'];if(!_0x50c3ae['plugins']['has']('TableCaptionEditing'))return;_0x50c3ae['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x54db38{['tableProperties'];['tableCellProperties'];constructor(_0x161013){super(_0x161013),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';}['afterInit'](){const _0x3ad012=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2bae25 of this['tableProperties'])_0x3ad012['enableCommand'](_0x2bae25,(_0x12a2dd,_0x126590)=>{const _0x67a83e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2bae25,[_0x67a83e],this['tableProperties'],'tableProperties',_0x12a2dd,_0x126590);});_0x3ad012['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3ad012['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ad012['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2cd8c6,_0x410eff)=>this['handleDiscardAction'](this['tableProperties'],_0x2cd8c6,_0x410eff)),_0x3ad012['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x30cad9 of this['tableCellProperties'])_0x3ad012['enableCommand'](_0x30cad9,(_0xf42f9b,_0x4d887c)=>{const _0x34a327=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x30cad9,_0x34a327,this['tableCellProperties'],'tableCellProperties',_0xf42f9b,_0x4d887c);});_0x3ad012['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3ad012['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ad012['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x343dfd,_0x49f288)=>this['handleDiscardAction'](this['tableCellProperties'],_0x343dfd,_0x49f288)),_0x3ad012['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3ad012['descriptionFactory']['registerDescriptionCallback'](_0x406636=>this['handleSuggestionDescription'](_0x406636));}['_handlePropertyChange'](_0x82009b,_0x5448cd,_0x3da487,_0x695113,_0x17b006,_0x5a154d){const _0x140874=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5a154d['batch'],()=>{for(const _0x1b655b of _0x5448cd){if(this['_getSuggestion'](_0x1b655b,_0x695113))_0x17b006(_0x5a154d);else{const _0x2ff7c9={};for(const _0x5990b9 of _0x3da487){const _0x6b6a1=_0x1b655b['getAttribute'](_0x5990b9);void 0x0!==_0x6b6a1&&(_0x2ff7c9[_0x5990b9]=_0x6b6a1);}_0x17b006(_0x5a154d),_0x140874['markBlockFormat'](_0x1b655b,{'commandParams':[_0x2ff7c9]},[],_0x695113);}}});}['handleDiscardAction'](_0x4ca5d2,_0xd94295,_0x400fc7){const _0x3c460f=_0xd94295[0x0]['start']['nodeAfter'],_0x4967fb=_0x400fc7['commandParams'][0x0];this['editor']['model']['change'](_0x475980=>{for(const _0x4cb976 of _0x4ca5d2)void 0x0!==_0x4967fb[_0x4cb976]?_0x475980['setAttribute'](_0x4cb976,_0x4967fb[_0x4cb976],_0x3c460f):_0x475980['removeAttribute'](_0x4cb976,_0x3c460f);});}['handleSuggestionDescription'](_0x2628f3){if(_0x2628f3['data'])switch(_0x2628f3['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'](_0x49478e,_0x2ba886){const _0xf4045a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x27b30f of _0xf4045a['getSuggestions']({'skipNotAttached':!0x0})){const _0x5291ee=_0x27b30f['getContainedElement']();if(_0x27b30f['subType']===_0x2ba886&&_0x5291ee===_0x49478e)return _0x27b30f;}return null;}}const m='$elementName';class p extends _0x54db38{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1d3df5,_0x59e33d,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x5d7d88){function _0x3a9167(_0x401373){return _0x401373['map'](_0x5467d7=>String['fromCharCode'](_0x5467d7))['join']('');}super(_0x5d7d88),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x24290c,_0x3a7e4c,_0x33b720,_0x13bb49)=>{this['_model']['change'](()=>{for(const _0x243fd5 of[..._0x13bb49,..._0x33b720])this['_model']['markers']['has'](_0x243fd5)&&_0x5d7d88['editing']['reconvertMarker'](_0x243fd5);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5d7d88['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(),_0x5d7d88['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5d7d88['config']['get']('trackChanges.trackFormatChanges'),_0x5d7d88['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5d7d88['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x5d7d88,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3a9167([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3a9167([0x34,0x30,0x34,0x38,0x31,0x32,0x33,0x34]);}['init'](){const _0x16dcaa=this['editor'],_0x578a4b=(_0x18d27f,_0x268a7e)=>{if('attribute'!=_0x18d27f)return'ck-suggestion-marker-'+_0x18d27f;const _0x1273d3=_0x268a7e['split']('|')[0x0];return this['_isBlockAttribute'](_0x1273d3)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x16dcaa['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1fc531=>{const {id:_0x13b3ba,type:_0x4c029,subType:_0x348627}=this['_splitMarkerName'](_0x1fc531['markerName']),_0xaa1690=['ck-suggestion-marker',_0x578a4b(_0x4c029,_0x348627)];let _0x4fb19d=0xbb8;return this['activeMarkers']['includes'](_0x1fc531['markerName'])&&(_0xaa1690['push']('ck-suggestion-marker--active'),_0x4fb19d=0xbc2),'deletion'==_0x4c029&&(_0x4fb19d+=0x5),{'classes':_0xaa1690,'attributes':{'data-suggestion':_0x13b3ba},'priority':_0x4fb19d};}}),_0x16dcaa['conversion']['for']('dataDowncast')['add'](_0xcc03c9=>{_0xcc03c9['on']('addMarker:suggestion',(_0x49c833,_0x423d2b,_0x3ae9d1)=>{if(!_0x3ae9d1['options']['showSuggestionHighlights'])return;const _0x483ce5=_0x423d2b['item'];if(!_0x483ce5)return;const _0x2dac74=_0x3ae9d1['mapper']['toViewElement'](_0x483ce5);_0x16dcaa['model']['schema']['isObject'](_0x483ce5)&&_0x2dac74&&!_0x2dac74['getCustomProperty']('widget')&&_0x2dac74['is']('containerElement')&&_0x22e04a(_0x2dac74,_0x3ae9d1['writer']);},{'priority':'high'});}),_0x16dcaa['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4fe5c2,_0xe0f719)=>{if(!_0xe0f719['options']['showSuggestionHighlights'])return null;const {type:_0x23bdda,subType:_0x439b28}=this['_splitMarkerName'](_0x4fe5c2['markerName']);return{'classes':['ck-suggestion-marker',_0x578a4b(_0x23bdda,_0x439b28)],'priority':0xbb8};}});const _0x430e7a=({showActiveMarkers:_0x23ee8d=!0x0,isAttributeSuggestion:_0x32a2e1=!0x1}={})=>(_0xb5ed38,_0x1cc913,_0x12dc07)=>{if(!_0x1cc913['item'])return;const {id:_0x51d86e}=this['_splitMarkerName'](_0x1cc913['markerName']);if(_0x32a2e1){const _0x1f3091=this['_suggestions']['get'](_0x51d86e),_0xd94b88=this['_getAttributeKey'](_0x1f3091);if(!this['_isBlockAttribute'](_0xd94b88))return;}if(_0x1cc913['item']['is']('selection'))return void _0x12dc07['consumable']['consume'](_0x1cc913['item'],_0xb5ed38['name']);const _0x546024=_0x12dc07['mapper']['toViewElement'](_0x1cc913['item']);if(_0x1cc913['item']['is']('element')&&_0x16dcaa['model']['schema']['isBlock'](_0x1cc913['item'])&&!_0x546024['getCustomProperty']('addHighlight')){_0x12dc07['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x546024),_0x12dc07['writer']['setAttribute']('data-suggestion',_0x51d86e,_0x546024),_0x12dc07['mapper']['bindElementToMarker'](_0x546024,_0x1cc913['markerName']),_0x23ee8d&&(this['activeMarkers']['includes'](_0x1cc913['markerName'])?_0x12dc07['writer']['addClass']('ck-suggestion-marker--active',_0x546024):_0x12dc07['writer']['removeClass']('ck-suggestion-marker--active',_0x546024));for(const _0x5e33b4 of _0x16dcaa['model']['createRangeIn'](_0x1cc913['item'])['getItems']())_0x12dc07['consumable']['consume'](_0x5e33b4,_0xb5ed38['name']);_0x12dc07['consumable']['consume'](_0x1cc913['item'],_0xb5ed38['name']);}};_0x16dcaa['conversion']['for']('dataDowncast')['add'](_0x4d208f=>{_0x4d208f['on']('addMarker:suggestion:formatBlock',(_0x3f55a5,_0x1fd324,_0x98fca)=>{_0x98fca['options']['showSuggestionHighlights']&&_0x430e7a({'showActiveMarkers':!0x1})(_0x3f55a5,_0x1fd324,_0x98fca);},{'priority':'highest'});}),_0x16dcaa['conversion']['for']('dataDowncast')['add'](_0x16a072=>{_0x16a072['on']('addMarker:suggestion:attribute',(_0x534daf,_0x402333,_0x158c4d)=>{_0x158c4d['options']['showSuggestionHighlights']&&_0x430e7a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x534daf,_0x402333,_0x158c4d);},{'priority':'highest'});}),_0x16dcaa['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3fa008,_0x1e6e05)=>_0x1e6e05['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3fa008['substr'](0xb)}}),_0x16dcaa['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x428b6b,{writer:_0xc746da})=>{let _0x441f7d='suggestion:'+_0x428b6b['getAttribute']('suggestion-type')+':'+_0x428b6b['getAttribute']('id');return _0x428b6b['getAttribute']('marker-count')&&(_0x441f7d+=':'+_0x428b6b['getAttribute']('marker-count')),_0xc746da['createElement']('$marker',{'data-name':_0x441f7d});}}),_0x16dcaa['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x16dcaa['conversion']['for']('editingDowncast')['add'](_0x48c182=>{_0x48c182['on']('addMarker:suggestion:formatBlock',_0x430e7a(),{'priority':'high'});}),_0x16dcaa['conversion']['for']('editingDowncast')['add'](_0x1ac44f=>{_0x1ac44f['on']('addMarker:suggestion:attribute',_0x430e7a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x16dcaa['conversion']['for']('editingDowncast')['add'](_0x1b67ca=>{_0x1b67ca['on']('removeMarker:suggestion:formatBlock',(_0x3f86b5,_0x4f4e2b,_0x26a29c)=>{const _0x419c4c=_0x26a29c['mapper']['markerNameToElements'](_0x4f4e2b['markerName']);if(_0x419c4c){for(const _0x1c01bb of _0x419c4c)_0x1c01bb['getCustomProperty']('addHighlight')||(_0x26a29c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1c01bb),_0x26a29c['writer']['removeAttribute']('data-suggestion',_0x1c01bb),_0x26a29c['mapper']['unbindElementFromMarkerName'](_0x1c01bb,_0x4f4e2b['markerName']));}},{'priority':'high'});}),_0x16dcaa['conversion']['for']('editingDowncast')['add'](_0x138ed0=>{_0x138ed0['on']('removeMarker:suggestion:attribute',(_0x22788d,_0x1f452b,_0x227cc3)=>{const _0x50ee13=_0x227cc3['mapper']['markerNameToElements'](_0x1f452b['markerName']);if(!_0x50ee13)return;const {id:_0xdefb49}=this['_splitMarkerName'](_0x1f452b['markerName']),_0x20d65e=this['_suggestions']['get'](_0xdefb49),_0x60fb82=this['_getAttributeKey'](_0x20d65e);if(this['_isBlockAttribute'](_0x60fb82)){for(const _0x515b4b of _0x50ee13)_0x515b4b['getCustomProperty']('addHighlight')||(_0x227cc3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x515b4b),_0x227cc3['writer']['removeAttribute']('data-suggestion',_0x515b4b),_0x227cc3['mapper']['unbindElementFromMarkerName'](_0x515b4b,_0x1f452b['markerName']));}},{'priority':'high'});}),_0x16dcaa['model']['document']['registerPostFixer'](_0x5cab22=>{let _0x7128eb=!0x1;const _0x3423c8=Array['from'](_0x16dcaa['model']['document']['differ']['getChangedMarkers']()),_0x4ee06a=new Set();for(const {name:_0x5d4b14,data:_0x273853}of _0x3423c8){const {group:_0x2dcab7,type:_0x4aedb6,subType:_0x1a1c20,id:_0x244de6}=this['_splitMarkerName'](_0x5d4b14);if('suggestion'!==_0x2dcab7)continue;const _0x5350fa=this['_suggestions']['get'](_0x244de6);if(null!=_0x273853['newRange']){'formatInline'==_0x4aedb6&&(_0x7128eb=_0x7128eb||Et(_0x273853['newRange'],_0x5d4b14,_0x5cab22,_0x16dcaa['model']['schema']));const _0x505ce9='attribute'==_0x4aedb6&&this['_isBlockAttribute'](_0x1a1c20['split']('|')[0x0]);if(_0x273853['newRange']['isCollapsed']||'$graveyard'==_0x273853['newRange']['root']['rootName']||'formatBlock'==_0x4aedb6&&!Ut(_0x273853['newRange'])||_0x505ce9&&!Ut(_0x273853['newRange'])||'deletion'==_0x4aedb6&&!(!Tt(_0xf49bff=_0x273853['newRange'])&&!function(_0xff007c){return _0xff007c['start']['parent']==_0xff007c['end']['nodeBefore']&&_0xff007c['start']['isAtEnd'];}(_0xf49bff)))_0x5cab22['removeMarker'](_0x5d4b14),_0x7128eb=!0x0;else{if(!_0x5350fa||!_0x5350fa['isInContent'])continue;_0x4ee06a['add'](_0x5350fa);}}}var _0xf49bff;return _0x4ee06a['size']>0x0&&(_0x7128eb=!!this['_joinWithAdjacentSuggestions'](_0x4ee06a)||_0x7128eb),_0x7128eb;}),_0x16dcaa['model']['document']['registerPostFixer'](_0xa6ea8a=>{let _0x4af792=!0x1;for(const _0x1c54e2 of _0x16dcaa['model']['document']['differ']['getChanges']())if('insert'==_0x1c54e2['type'])for(const _0x3b737f of this['_suggestions']['values']()){if(_0x3b737f['isMultiRange']||!_0x3b737f['isInContent'])continue;const _0x31a315='formatBlock'==_0x3b737f['type'],_0x4f42e6=this['_getAttributeKey'](_0x3b737f),_0xe8f30e=_0x4f42e6&&this['_isBlockAttribute'](_0x4f42e6);if(!_0x31a315&&!_0xe8f30e)continue;const _0x5b60f2=_0x3b737f['getFirstRange']();if(_0x5b60f2['start']['parent']!=_0x5b60f2['end']['parent']&&!_0x5b60f2['end']['isAtEnd']){const _0x35189e=_0x16dcaa['model']['createPositionAt'](_0x5b60f2['start']['nodeAfter'],'end'),_0x1b27a2=_0x16dcaa['model']['createRange'](_0x5b60f2['start'],_0x35189e);_0xa6ea8a['updateMarker'](_0x3b737f['getFirstMarker'](),{'range':_0x1b27a2}),_0x4af792=!0x0;}}return _0x4af792;}),_0x16dcaa['model']['document']['registerPostFixer'](_0x2f402d=>this['_processAttributeChanges'](_0x2f402d)),_0x16dcaa['model']['document']['registerPostFixer'](_0x66cd96=>!_0x66cd96['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x66cd96)),_0x16dcaa['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x16dcaa['model']['document']['on']('change:data',(_0x545245,_0x59e3e4)=>{if(!_0x59e3e4['isLocal']||_0x59e3e4['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x255e47=_0x16dcaa['model']['document']['differ']['getChanges']();if(0x0==_0x255e47['length'])return;const _0x338a04=[],_0x42fafc=_0x255e47['filter'](_0x588e38=>'attribute'==_0x588e38['type']),_0x1d2e6f=_0x255e47['filter'](_0x522188=>'insert'==_0x522188['type']&&'$text'!=_0x522188['name']);for(const _0x5a499c of _0x42fafc)this['_isRegisteredAttribute'](_0x5a499c['attributeKey'])&&_0x338a04['push']({'key':_0x5a499c['attributeKey'],'newValue':_0x5a499c['attributeNewValue'],'oldValue':_0x5a499c['attributeOldValue'],'range':Ot(_0x5a499c['range'],_0x16dcaa['model'])});for(const _0x283926 of _0x1d2e6f){if('rename'!=_0x283926['action']&&'refresh'!=_0x283926['action'])continue;const _0x8cc9fd=Gt(_0x283926['position']['nodeAfter'],_0x16dcaa['model']),_0x172248=_0x283926['before'];'rename'==_0x283926['action']&&_0x338a04['push']({'key':m,'newValue':_0x283926['name'],'oldValue':_0x172248['name'],'range':_0x8cc9fd});for(const [_0x827c84,_0x59270d]of _0x172248['attributes']){if(!this['_isRegisteredAttribute'](_0x827c84))continue;const _0x2fdf4d=_0x283926['attributes']['get'](_0x827c84);_0x59270d!==_0x2fdf4d&&_0x338a04['push']({'key':_0x827c84,'newValue':_0x2fdf4d,'oldValue':_0x59270d,'range':_0x8cc9fd});}for(const [_0x2ac16a,_0x4c9a71]of _0x283926['attributes'])this['_isRegisteredAttribute'](_0x2ac16a)&&(_0x172248['attributes']['has'](_0x2ac16a)||_0x338a04['push']({'key':_0x2ac16a,'newValue':_0x4c9a71,'oldValue':null,'range':_0x8cc9fd}));}0x0!=_0x338a04['length']&&_0x16dcaa['model']['enqueueChange'](_0x59e3e4,_0xf31350=>{const _0x17a78d=_0xa3dac7();for(const {range:_0x3c8b1e,key:_0x213213,oldValue:_0x4fc133,newValue:_0x24633d}of _0x338a04)this['markAttributeChange'](_0x3c8b1e,_0x213213,_0x4fc133,_0x24633d,{'groupId':_0x17a78d});this['_reduceExistingSuggestions'](_0xf31350,_0x338a04);});},{'priority':'lowest'}),_0x16dcaa['model']['markers']['on']('update:suggestion',(_0x1aab9d,_0x2a000a,_0x4b34a5)=>{if(null==_0x4b34a5){const {id:_0x37932a}=this['_splitMarkerName'](_0x2a000a['name']),_0x5178e1=this['_suggestions']['get'](_0x37932a);_0x5178e1&&_0x5178e1['addMarkerName'](_0x2a000a['name']);}}),_0x16dcaa['model']['document']['on']('change:data',()=>{const _0x1e5056=Array['from'](_0x16dcaa['model']['document']['differ']['getChangedMarkers']())['filter'](_0xafe70a=>'suggestion'===this['_splitMarkerName'](_0xafe70a['name'])['group']);if(0x0===_0x1e5056['length'])return;_0x1e5056['sort']((_0x588033,_0x1c59aa)=>{const _0x289e93=_0x588033['data']['oldRange'],_0x537966=_0x1c59aa['data']['oldRange'];return null===_0x289e93&&null===_0x537966?0x0:null===_0x289e93&&null!==_0x537966?-0x1:null!==_0x289e93&&null===_0x537966?0x1:_0x289e93['start']['isBefore'](_0x537966['start'])?-0x1:0x1;});const _0x289765=new Set(),_0x226b82=new Set();for(const {name:_0x5918bf,data:_0x40503e}of _0x1e5056){const {id:_0x2943a5}=this['_splitMarkerName'](_0x5918bf);if(null===_0x40503e['oldRange']){const _0x112a4d=this['_handleNewSuggestionMarker'](_0x5918bf);_0x226b82['add'](_0x112a4d);}else{const _0x56125b=this['_suggestions']['get'](_0x2943a5);null!==_0x40503e['newRange']||_0x56125b['isInContent']?(_0x289765['add'](_0x56125b['head']),_0x226b82['add'](_0x56125b)):this['_removeSuggestion'](_0x56125b);}}_0x226b82['size']>0x0&&this['_refreshSuggestionsChain'](_0x226b82);for(const _0xb07d38 of _0x289765)this['fire']('suggestionChanged',_0xb07d38);}),_0x16dcaa['model']['on']('applyOperation',(_0x2b43bc,_0x1cc6dd)=>{const _0x5c83b6=_0x1cc6dd[0x0];if(!this['_suggestions']['size'])return;if(!_0x5c83b6['isDocumentOperation'])return;if(_0x5c83b6['batch']['isUndo']||!_0x5c83b6['batch']['isLocal'])return;let _0x5a0459,_0x4de467;switch(_0x5c83b6['type']){case'insert':_0x5a0459=_0x16dcaa['model']['createPositionAt'](_0x5c83b6['position']),_0x4de467=_0x5a0459['getShiftedBy'](_0x5c83b6['howMany']);break;case'split':_0x5a0459=_0x16dcaa['model']['createPositionAt'](_0x5c83b6['splitPosition']),_0x4de467=_0x16dcaa['model']['createPositionAt'](_0x5c83b6['moveTargetPosition']);break;case'move':_0x5a0459=_0x16dcaa['model']['createPositionAt'](_0x5c83b6['targetPosition']),_0x4de467=_0x5a0459['getShiftedBy'](_0x5c83b6['howMany']);break;default:return;}const _0x5144de=_0x16dcaa['model']['createRange'](_0x5a0459,_0x4de467);_0x16dcaa['model']['change'](()=>{for(const {suggestion:_0x2a372e,meta:_0x3836f3}of this['_findSuggestions'](_0x5144de)){if(_0x2a372e['isMultiRange'])continue;if('formatInline'==_0x2a372e['type'])continue;const _0x468d9e=this['_getAttributeKey'](_0x2a372e);if(_0x468d9e&&this['_isBlockAttribute'](_0x468d9e)&&'split'!=_0x5c83b6['type'])continue;const _0x42cf6c=_0x2a372e['data']&&_0x2a372e['data']['multipleBlocks'];('formatBlock'!=_0x2a372e['type']||'split'==_0x5c83b6['type']&&!_0x42cf6c)&&(_0x3836f3['containsRangeInObject']||'insertion'==_0x2a372e['type']&&_0x3836f3['isOwn']||_0x2a372e['getFirstRange']()['containsRange'](_0x5144de)&&this['_breakSuggestionMarker'](_0x2a372e,_0x5a0459,_0x4de467));}});},{'priority':'lowest'}),_0x16dcaa['model']['on']('deleteContent',(_0x5b72b6,_0x56ed2d)=>{const _0x1a3397=_0x56ed2d[0x0],_0x18cc04=_0x56ed2d[0x1];if(_0x18cc04&&_0x18cc04['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1a3397['isCollapsed'])return;const _0x5d9d21=_0x16dcaa['model']['schema'],{start:_0x414242,end:_0x2264d1}=_0x1a3397['getFirstRange'](),_0x5a77de=_0x414242['nodeAfter']&&_0x5d9d21['isLimit'](_0x414242['nodeAfter'])?null:_0x5d9d21['getNearestSelectionRange'](_0x414242,'forward'),_0x19e979=_0x2264d1['nodeBefore']&&_0x5d9d21['isLimit'](_0x2264d1['nodeBefore'])?null:_0x5d9d21['getNearestSelectionRange'](_0x2264d1,'backward'),_0x51d8f6=_0x16dcaa['model']['createRange'](_0x5a77de?_0x5a77de['start']:_0x414242,_0x19e979?_0x19e979['end']:_0x2264d1);_0x16dcaa['model']['change'](_0x5c08da=>{this['markDeletion'](_0x51d8f6);const _0x507cd3=_0x16dcaa['model']['schema']['getNearestSelectionRange'](_0x51d8f6['start']);_0x1a3397['is']('documentSelection')?_0x5c08da['setSelection'](_0x507cd3):_0x1a3397['setTo'](_0x507cd3);}),_0x5b72b6['stop']();},{'priority':_0x275526['normal']+0xa}),_0x16dcaa['model']['on']('insertContent',(_0x56811b,_0x36f3a9)=>{const _0x1615ef=_0x36f3a9[_0x36f3a9['length']-0x1];_0x1615ef&&_0x1615ef['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x16dcaa['model']['change'](()=>{let _0x3a7653=_0x16dcaa['model']['insertContent'](_0x36f3a9[0x0],_0x36f3a9[0x1],_0x36f3a9[0x2],{'forceDefaultExecution':!0x0});if(!_0x3a7653)return;_0x56811b['return']=_0x3a7653['clone']();const _0x44e451=_0x3a7653['end']['nodeBefore'],_0x433275=_0x16dcaa['model']['schema'];_0x44e451&&_0x433275['isBlock'](_0x44e451)&&!_0x433275['isObject'](_0x44e451)&&(_0x3a7653=_0x16dcaa['model']['createRange'](_0x3a7653['start'],_0x16dcaa['model']['createPositionAt'](_0x44e451,'end'))),this['markInsertion'](_0x3a7653);}),_0x56811b['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2681de=new $(_0x16dcaa,this['_suggestions']);_0x16dcaa['commands']['add']('acceptSuggestion',_0x2681de),this['enableCommand']('acceptSuggestion');const _0x4f284e=new B(_0x16dcaa,this['_suggestions']);_0x16dcaa['commands']['add']('discardSuggestion',_0x4f284e),this['enableCommand']('discardSuggestion'),_0x16dcaa['commands']['add']('acceptAllSuggestions',new x(_0x16dcaa,_0x2681de,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x16dcaa['commands']['add']('discardAllSuggestions',new x(_0x16dcaa,_0x4f284e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x16dcaa['commands']['add']('acceptSelectedSuggestions',new R(_0x16dcaa,_0x2681de,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x16dcaa['commands']['add']('discardSelectedSuggestions',new R(_0x16dcaa,_0x4f284e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x144a4e=_0x16dcaa['plugins']['get']('CommentsRepository');this['listenTo'](_0x144a4e,'addComment',(_0x5d2099,{threadId:_0x3f8228})=>{const _0x26f6fb=this['_suggestions']['get'](_0x3f8228);_0x26f6fb&&_0x26f6fb['commentThread']&&0x1===_0x26f6fb['commentThread']['length']&&this['_updateSuggestionData'](_0x3f8228,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x144a4e,'removeComment',(_0x52efbd,{threadId:_0x241619})=>{const _0x2db76c=this['_suggestions']['get'](_0x241619);_0x2db76c&&_0x2db76c['commentThread']&&!_0x2db76c['commentThread']['length']&&this['_updateSuggestionData'](_0x241619,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0xf65b85){if(this['_adapter'])throw new _0x50d316('track-changes-adapter-already-set',this);this['_adapter']=_0xf65b85;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x516400=!0x1,toJSON:_0x2d56c0=!0x1}={}){const _0x58d0d3=[];for(const _0x16357a of this['_suggestions']['values']())_0x516400&&!_0x16357a['isInContent']||_0x58d0d3['push'](_0x16357a);return _0x2d56c0?_0x58d0d3['map'](_0x3bf6fd=>_0x3bf6fd['toJSON']()):_0x58d0d3;}['getSuggestion'](_0x33ad35){const _0x4aaebb=this['_suggestions']['get'](_0x33ad35);if(!_0x4aaebb)throw new _0x50d316('track-changes-suggestion-not-found',this);return _0x4aaebb;}['hasSuggestion'](_0x19676b){return this['_suggestions']['has'](_0x19676b);}['addSuggestionData'](_0x1cd0f9){const {authorId:_0x50303c,id:_0x218bc2,attributes:_0x54fc18}=_0x1cd0f9,[_0x1a42d5,_0x426ce0]=_0x1cd0f9['type']['split'](':'),_0x5dc66d=this['_suggestions']['get'](_0x218bc2)||this['_createSuggestion'](_0x1a42d5,_0x426ce0,_0x218bc2,_0x50303c,_0x54fc18);if(this['_addThreadToSuggestion'](_0x5dc66d),this['_checkSuggestionCorrectness'](_0x5dc66d,_0x1a42d5,_0x426ce0||null,_0x50303c),_0x5dc66d['createdAt']=_0x1cd0f9['createdAt'],_0x5dc66d['_isDataLoaded']=!0x0,_0x54fc18&&_0x54fc18['@external']){const _0x503b87=_0x54fc18['@external'],_0xc18296=this['_getExternalAuthor'](_0x503b87['authorName']);_0x5dc66d['authoredAt']=_0x503b87['createdAt'],_0x5dc66d['author']=_0xc18296,_0x5dc66d['isExternal']=!0x0;}else _0x5dc66d['authoredAt']=_0x1cd0f9['createdAt'];switch(_0x1cd0f9['data']&&(_0x5dc66d['data']=_0x1cd0f9['data']),_0x1cd0f9['attributes']&&(_0x5dc66d['attributes']=_0x1cd0f9['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5dc66d['_saved']=!0x0),this['_suggestionState']['get'](_0x5dc66d)){case'notReady':this['_suggestionState']['set'](_0x5dc66d,'dataReady');break;case'markerReady':_0x5dc66d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5dc66d])),this['_refreshSuggestionsChain'](new Set([_0x5dc66d])),this['_suggestionState']['set'](_0x5dc66d,'ready'),this['fire']('suggestionLoaded',_0x5dc66d)):this['_suggestionState']['set'](_0x5dc66d,'removed');}return _0x5dc66d;}['acceptSuggestion'](_0x4df9cb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x482856 of _0x4df9cb['getAllAdjacentSuggestions']())_0x482856['accept']();});});}['discardSuggestion'](_0x59b3ec){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x16dd49 of _0x59b3ec['getAllAdjacentSuggestions']())_0x16dd49['discard']();});});}['enableCommand'](_0x5a0168,_0x3b9af7){const _0x172f44=this['editor']['commands']['get'](_0x5a0168);if(!_0x172f44)throw new _0x50d316('track-changes-command-not-found',this,{'commandName':_0x5a0168});if(this['_enabledCommands']['has'](_0x172f44))throw new _0x50d316('track-changes-enable-command-twice',this,{'commandName':_0x5a0168});this['_enabledCommands']['add'](_0x172f44),_0x3b9af7&&_0x172f44['on']('execute',(_0x3496f1,_0x4e689a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4e689a['length']>0x0&&_0x4e689a[_0x4e689a['length']-0x1]&&_0x4e689a[_0x4e689a['length']-0x1]['forceDefaultExecution']?_0x4e689a['pop']():(_0x3496f1['return']=_0x3b9af7((..._0x1d7f89)=>_0x172f44['execute'](..._0x1d7f89,{'forceDefaultExecution':!0x0}),..._0x4e689a),_0x3496f1['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xaa3a60){let _0x4c512e,_0x2119a3;const _0x1d3e15=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4c512e=_0xaa3a60();}catch(_0x552603){_0x2119a3=_0x552603;}return _0x1d3e15||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2119a3&&_0x50d316['rethrowUnexpectedError'](_0x2119a3,this),_0x4c512e;}['markInsertion'](_0x185203,_0x38f2e2=null,_0xa51c86={}){if(_0x185203['isCollapsed'])return null;const _0x31836b=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3e7f94,meta:_0x5bb23c}of this['_findSuggestions'](_0x185203,'insertion'))if(_0x5bb23c['isOwn']){if(!_0x5bb23c['isNextTo']){if(_0x5bb23c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x3e7f94,_0xa51c86))continue;return _0x3e7f94;}if(Lt(_0x3e7f94,_0xa51c86))return _0x3e7f94;this['_breakSuggestionMarker'](_0x3e7f94,_0x185203['start'],_0x185203['end']);break;}if(_0x38f2e2==_0x3e7f94['subType']&&Lt(_0x3e7f94,_0xa51c86)){const _0x22d4c0=_0x3e7f94['getFirstRange']();return _0x22d4c0['start']['isEqual'](_0x185203['end'])?this['_setSuggestionRange'](_0x3e7f94,this['_model']['createRange'](_0x185203['start'],_0x22d4c0['end'])):this['_setSuggestionRange'](_0x3e7f94,this['_model']['createRange'](_0x22d4c0['start'],_0x185203['end'])),_0x3e7f94;}}const _0x58ed2f=_0xa3dac7(),_0x17a029=_0x31836b['id'],_0x23fbab=_0x38f2e2?'insertion:'+_0x38f2e2:'insertion',_0x19acab=this['_setSuggestionData']({'id':_0x58ed2f,'type':_0x23fbab,'createdAt':new Date(),'authorId':_0x17a029,'attributes':_0xa51c86});return this['_addSuggestionMarker'](_0x23fbab,_0x58ed2f,_0x17a029,_0x185203),_0x19acab;}['markMultiRangeInsertion'](_0xa9ddb4,_0x7b06a2='multi',_0x3fe5c5={}){const _0x1da26c=this['editor']['plugins']['get']('Users')['me'],_0x398c35=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x7b06a2,'join');for(const _0x33f9f6 of this['getSuggestions']())if(_0x33f9f6['author']['id']==_0x1da26c['id']&&'insertion'==_0x33f9f6['type']&&_0x33f9f6['subType']==_0x7b06a2&&Lt(_0x33f9f6,_0x3fe5c5)&&(_0x398c35(_0x33f9f6['getRanges'](),_0xa9ddb4)||_0x398c35(_0xa9ddb4,_0x33f9f6['getRanges']()))){for(const _0x5cadcf of _0xa9ddb4)_0x33f9f6['addRange'](_0x5cadcf);return _0x33f9f6;}for(const {suggestion:_0x7b25d3,meta:_0x3eb096}of this['_findSuggestions'](_0xa9ddb4,'insertion')){if(!_0x3eb096['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3eb096['containsRangeInObject'])continue;if(!Lt(_0x7b25d3,_0x3fe5c5))continue;let _0x1d1753=!0x0;for(const _0x18c3dd of _0x7b25d3['getRanges']())for(const _0x36f1e0 of _0xa9ddb4)if(!_0x18c3dd['containsRange'](_0x36f1e0)){_0x1d1753=!0x1;break;}if(_0x1d1753)return _0x7b25d3;}const _0x59d4ae=_0xa3dac7(),_0x43737f=_0x1da26c['id'],_0x305af4='insertion:'+_0x7b06a2,_0x555fc1=this['_setSuggestionData']({'id':_0x59d4ae,'type':_0x305af4,'createdAt':new Date(),'authorId':_0x43737f,'attributes':_0x3fe5c5});for(const _0x3fd5f9 of _0xa9ddb4)this['_addSuggestionMarker'](_0x305af4,_0x59d4ae,_0x43737f,_0x3fd5f9,u['getMultiRangeId']());return _0x555fc1;}['markInlineFormat'](_0x4dc9e4,_0x5b8fb7,_0x88e49c=null,_0x406fd0={}){if(_0x88e49c=_0x88e49c||Vt(_0x5b8fb7),_0x4dc9e4['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x733f21=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x88e49c,'accept');return this['forceDefaultExecution'](()=>_0x733f21([_0x4dc9e4],_0x5b8fb7,_0x406fd0)),null;}const _0x3e5459=this['editor']['plugins']['get']('Users')['me'],_0xc4448e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4c12f1,meta:_0x1334a8}of this['_findSuggestions'](_0x4dc9e4,'insertion'))_0x1334a8['isOwn']&&!_0x1334a8['isInsideObject']&&_0xc4448e['push'](..._0x4c12f1['getRanges']());}const _0x21ec2e=function(_0x25cdbc,_0x92fa60){const _0x2c4477=[];for(const _0x232073 of _0x92fa60){const _0x18ae99=_0x25cdbc['getIntersection'](_0x232073);_0x18ae99&&_0x2c4477['push'](_0x18ae99);}return _0x2c4477;}(_0x4dc9e4,_0xc4448e),_0x228d2c=function(_0x51e7fc,_0x430d7b){const _0x2f7a12=[_0x51e7fc];for(const _0x5587be of _0x430d7b){let _0x184045=0x0;for(;_0x184045<_0x2f7a12['length'];){const _0x3f2126=_0x2f7a12[_0x184045]['getDifference'](_0x5587be);_0x2f7a12['splice'](_0x184045,0x1,..._0x3f2126),_0x184045+=_0x3f2126['length'];}}return _0x2f7a12;}(_0x4dc9e4,_0xc4448e);_0x21ec2e['length']&&this['_model']['change'](()=>{for(const _0x416365 of _0x21ec2e){const _0x3f2ed2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x88e49c,'accept');this['forceDefaultExecution'](()=>_0x3f2ed2([_0x416365],_0x5b8fb7,_0x406fd0));}});for(const _0x3c4615 of _0x228d2c){let _0x26a25a=null,_0x2dc45d=_0x3c4615['start'],_0x24e510=_0x3c4615['end'];for(const {suggestion:_0x39387d,meta:_0x77f3e4}of this['_findSuggestions'](_0x3c4615,'formatInline')){if(!_0x77f3e4['isOwn'])continue;if(_0x39387d['subType']!=_0x88e49c)continue;if(!Lt(_0x39387d,_0x406fd0))continue;const _0x30eed1=_0x39387d['getFirstRange']();if(_0x30eed1['containsRange'](_0x3c4615,!0x0))return null;_0x2dc45d=_0x2dc45d['isBefore'](_0x30eed1['start'])?_0x2dc45d:_0x30eed1['start'],_0x24e510=_0x24e510['isAfter'](_0x30eed1['end'])?_0x24e510:_0x30eed1['end'],_0x26a25a?_0x30eed1['start']['isBefore'](_0x26a25a['getFirstRange']()['start'])?(_0x26a25a['removeMarkers'](),_0x26a25a=_0x39387d):_0x39387d['removeMarkers']():_0x26a25a=_0x39387d;}const _0x2a2a24=this['_model']['createRange'](_0x2dc45d,_0x24e510);if(_0x26a25a)this['_setSuggestionRange'](_0x26a25a,_0x2a2a24);else{const _0x10f0df=_0xa3dac7(),_0x3300db=_0x3e5459['id'];this['_setSuggestionData']({'id':_0x10f0df,'type':'formatInline:'+_0x88e49c,'data':_0x5b8fb7,'createdAt':new Date(),'authorId':_0x3300db,'attributes':_0x406fd0}),this['_addSuggestionMarker']('formatInline:'+_0x88e49c,_0x10f0df,_0x3300db,_0x2a2a24);}}return null;}['markBlockFormat'](_0x1d035a,_0x4f23f9,_0x57073e=[],_0x2870fc=null,_0x5983c7={}){_0x4f23f9['formatGroupId']||(_0x4f23f9['formatGroupId']=_0x4f23f9['commandName']),_0x4f23f9['multipleBlocks']=_0x1d035a['is']('range'),_0x2870fc=_0x2870fc||Vt(_0x4f23f9);const _0x3bdc3f=_0x57073e['map'](_0x3d1d09=>Gt(_0x3d1d09,this['_model'])),_0x16e2b9=_0x1d035a['is']('range')?_0x1d035a:Gt(_0x1d035a,this['_model']);if('never'===this['_trackFormatChanges']){const _0xe82e05=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2870fc,'accept');return this['forceDefaultExecution'](()=>_0xe82e05([_0x16e2b9],_0x4f23f9,_0x5983c7)),null;}_0x3bdc3f['push'](_0x16e2b9);let _0x4e062b=!0x0;for(const _0xb3001 of _0x3bdc3f)if(!this['_rangeIsInLocalUserInsertion'](_0xb3001)){_0x4e062b=!0x1;break;}if(_0x4e062b&&'always'!==this['_trackFormatChanges']){const _0x336002=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2870fc,'accept');return this['forceDefaultExecution'](()=>_0x336002([_0x16e2b9],_0x4f23f9,_0x5983c7)),null;}let _0x57482d=null,_0x3937ea=_0x16e2b9['start'],_0x2849fa=_0x16e2b9['end'];for(const {suggestion:_0x2841db,meta:_0x5f4bd7}of this['_findSuggestions'](_0x16e2b9,'formatBlock')){if(!_0x5f4bd7['isOwn'])continue;if(_0x5f4bd7['isNextTo']||_0x5f4bd7['containsRangeInObject']||_0x5f4bd7['isInsideObject'])continue;if(_0x2841db['data']['formatGroupId']!=_0x4f23f9['formatGroupId'])continue;if(!Lt(_0x2841db,_0x5983c7))continue;const _0x1ea91c=_0x2841db['getFirstRange']();if(_0x2841db['subType']==_0x2870fc){if(_0x1ea91c['containsRange'](_0x16e2b9,!0x0))return null;_0x3937ea=_0x3937ea['isBefore'](_0x1ea91c['start'])?_0x3937ea:_0x1ea91c['start'],_0x2849fa=_0x2849fa['isAfter'](_0x1ea91c['end'])?_0x2849fa:_0x1ea91c['end'],_0x57482d?_0x1ea91c['start']['isBefore'](_0x57482d['getFirstRange']()['start'])?(_0x57482d['removeMarkers'](),_0x57482d=_0x2841db):_0x2841db['removeMarkers']():_0x57482d=_0x2841db;}else{const _0x27b94c=_0x16e2b9['getIntersection'](_0x1ea91c);this['_cutOutSuggestionMarker'](_0x2841db,_0x27b94c);}}const _0x45a7c5=this['editor']['plugins']['get']('Users')['me'],_0x34a6d4=_0xa3dac7(),_0x35832f=_0x45a7c5['id'];if(_0x57482d)return this['_setSuggestionRange'](_0x57482d,this['_model']['createRange'](_0x3937ea,_0x2849fa)),_0x57482d;{const _0x2764cb=this['_setSuggestionData']({'id':_0x34a6d4,'type':'formatBlock:'+_0x2870fc,'data':_0x4f23f9,'createdAt':new Date(),'authorId':_0x35832f,'attributes':_0x5983c7});return this['_addSuggestionMarker']('formatBlock:'+_0x2870fc,_0x34a6d4,_0x35832f,this['_model']['createRange'](_0x3937ea,_0x2849fa)),_0x2764cb;}}['markMultiRangeBlockFormat'](_0x433f67,_0x15f831,_0x21ab59=[],_0x1fd5e7=null,_0x5c380d={}){_0x15f831['formatGroupId']||(_0x15f831['formatGroupId']=_0x15f831['commandName']);const _0x232a1d=_0x433f67[0x0];_0x15f831['multipleBlocks']=_0x232a1d['is']('range'),_0x1fd5e7=_0x1fd5e7||Vt(_0x15f831);const _0x4a11de=_0x21ab59['map'](_0x4b6d4b=>Gt(_0x4b6d4b,this['_model'])),_0x12624f=_0x232a1d['is']('range')?_0x433f67:_0x433f67['map'](_0x3cb47a=>Gt(_0x3cb47a,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4961ff=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fd5e7,'accept');return this['forceDefaultExecution'](()=>_0x4961ff(_0x12624f,_0x15f831,_0x5c380d)),null;}_0x4a11de['push'](..._0x12624f);let _0x3d3f99=!0x0;for(const _0x610674 of _0x4a11de)if(!this['_rangeIsInLocalUserInsertion'](_0x610674)){_0x3d3f99=!0x1;break;}if(_0x3d3f99&&'always'!==this['_trackFormatChanges']){const _0x50d082=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fd5e7,'accept');return this['forceDefaultExecution'](()=>_0x50d082(_0x12624f,_0x15f831,_0x5c380d)),null;}const _0x1284da=this['editor']['plugins']['get']('Users')['me'];for(const _0x3d3445 of this['getSuggestions']()){if(_0x3d3445['author']['id']!=_0x1284da['id'])continue;if('formatBlock'!=_0x3d3445['type']||_0x3d3445['data']['formatGroupId']!=_0x15f831['formatGroupId'])continue;if(!Lt(_0x3d3445,_0x5c380d))continue;const _0x2c82d3=_0x3d3445['subType']==_0x1fd5e7;for(let _0x5e4291=0x0;_0x5e4291<_0x12624f['length'];_0x5e4291++){const _0xf23f4a=_0x12624f[_0x5e4291];for(const _0xedfa85 of _0x3d3445['getMarkers']()){const _0x4fb81a=_0xedfa85['getRange']();if(_0xf23f4a['isEqual'](_0x4fb81a)){_0x2c82d3?(_0x12624f['splice'](_0x5e4291,0x1),_0x5e4291--):_0x3d3445['removeMarker'](_0xedfa85['name']);break;}}}}if(0x0==_0x12624f['length'])return null;const _0x4fa6e6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fd5e7,'join');for(const _0x534d2a of this['getSuggestions']())if(_0x534d2a['author']['id']==_0x1284da['id']&&'formatBlock'==_0x534d2a['type']&&_0x534d2a['data']['formatGroupId']==_0x15f831['formatGroupId']&&_0x534d2a['subType']==_0x1fd5e7&&Lt(_0x534d2a,_0x5c380d)&&(_0x4fa6e6(_0x534d2a['getRanges'](),_0x12624f)||_0x4fa6e6(_0x12624f,_0x534d2a['getRanges']()))){for(const _0x296289 of _0x12624f)_0x534d2a['addRange'](_0x296289);return _0x534d2a;}const _0x14aba4=_0xa3dac7(),_0xdc5e72=_0x1284da['id'],_0x11c790='formatBlock:'+_0x1fd5e7,_0x30c9fd=this['_setSuggestionData']({'id':_0x14aba4,'type':_0x11c790,'data':_0x15f831,'createdAt':new Date(),'authorId':_0xdc5e72,'attributes':_0x5c380d});for(const _0x4c5092 of _0x12624f)this['_addSuggestionMarker'](_0x11c790,_0x14aba4,_0xdc5e72,_0x4c5092,u['getMultiRangeId']());return _0x30c9fd;}['markDeletion'](_0x18f980,_0x4cccfb=null,_0x3d6d81={}){if(_0x18f980['isCollapsed'])return null;const _0xce9b81=this['editor']['plugins']['get']('Users')['me'],_0x13cd6b=new _0x216747(_0x18f980['start'],_0x18f980['end']);for(const {suggestion:_0x3d6d19,meta:_0x5afb13}of this['_findSuggestions'](_0x13cd6b,'insertion'))if(_0x5afb13['isOwn']&&!_0x5afb13['isNextTo']){if(_0x3d6d19['isMultiRange']){const _0x875dec=_0x3d6d19['getRanges']()['filter'](_0x255382=>'$graveyard'!=_0x255382['root']['rootName']);_0x875dec['every'](_0x325b6c=>_0x13cd6b['containsRange'](_0x325b6c,!0x0))&&_0x3d6d19['discard']();if(_0x875dec['some'](_0x244e82=>_0x244e82['containsRange'](_0x13cd6b,!0x0))){const _0x4c8bdc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4cccfb,'accept');return this['forceDefaultExecution'](()=>_0x4c8bdc([_0x13cd6b],null,_0x3d6d81)),null;}}else{const _0x2fa07=_0x13cd6b['getIntersection'](_0x3d6d19['getFirstRange']());null!==_0x2fa07&&_0x3d6d19['_onDiscard']([_0x2fa07],null,_0x3d6d81);}}if(_0x13cd6b['detach'](),_0x13cd6b['isCollapsed']||'$graveyard'==_0x13cd6b['root']['rootName'])return null;let _0xa09519=null,_0x3810ba=_0x13cd6b['start'],_0x11b9ff=_0x13cd6b['end'];const _0x4bcc51=this['_findSuggestions'](_0x13cd6b,'deletion');for(const {suggestion:_0x5693e5,meta:_0x41d150}of _0x4bcc51){const _0x48b5f7=this['_model']['createRange'](_0x3810ba,_0x11b9ff);if(_0x41d150['isOwn']&&(this['_mergeNestedSuggestions']||!_0x41d150['containsRangeInObject']&&!_0x41d150['isInsideObject'])){if(_0x5693e5['isMultiRange']){if(!Lt(_0x5693e5,_0x3d6d81))continue;let _0x2751c2=!0x0;for(const _0x515215 of _0x5693e5['getRanges']()){if(_0x515215['containsRange'](_0x48b5f7,!0x0))return _0x5693e5;_0x48b5f7['containsRange'](_0x515215)||(_0x2751c2=!0x1);}_0x2751c2&&_0x5693e5['discard']();}else{const _0x1bfbd7=_0x5693e5['getFirstRange']();if(_0x1bfbd7['containsRange'](_0x48b5f7,!0x0))return _0x5693e5;if(!Lt(_0x5693e5,_0x3d6d81)){_0x48b5f7['containsRange'](_0x1bfbd7)?_0x5693e5['removeMarkers']():_0x1bfbd7['containsPosition'](_0x3810ba)?_0x3810ba=_0x1bfbd7['end']:_0x1bfbd7['containsPosition'](_0x11b9ff)&&(_0x11b9ff=_0x1bfbd7['start']);continue;}_0x3810ba=_0x3810ba['isBefore'](_0x1bfbd7['start'])?_0x3810ba:_0x1bfbd7['start'],_0x11b9ff=_0x11b9ff['isAfter'](_0x1bfbd7['end'])?_0x11b9ff:_0x1bfbd7['end'],_0x3d6d81=Object['assign']({},_0x5693e5['attributes']),_0xa09519?_0x1bfbd7['start']['isBefore'](_0xa09519['getFirstRange']()['start'])?(_0xa09519['removeMarkers'](),_0xa09519=_0x5693e5):_0x5693e5['removeMarkers']():_0xa09519=_0x5693e5;}}}if(_0xa09519)return this['_setSuggestionRange'](_0xa09519,this['_model']['createRange'](_0x3810ba,_0x11b9ff)),_0xa09519;{const _0x34d8e2=_0xa3dac7(),_0x4ee0d5=this['_model']['createRange'](_0x3810ba,_0x11b9ff),_0x4f0703=_0xce9b81['id'],_0x4831d4=_0x4cccfb?'deletion:'+_0x4cccfb:'deletion',_0x5337b2=this['_setSuggestionData']({'id':_0x34d8e2,'type':_0x4831d4,'createdAt':new Date(),'authorId':_0x4f0703,'attributes':_0x3d6d81});return this['_addSuggestionMarker'](_0x4831d4,_0x34d8e2,_0x4f0703,_0x4ee0d5),_0x5337b2;}}['markMultiRangeDeletion'](_0x168ab3,_0x173933='multi',_0x4dbfda={}){const _0x56b341=this['editor']['plugins']['get']('Users')['me'],_0x363b1=_0x168ab3['map'](_0xce979e=>new _0x216747(_0xce979e['start'],_0xce979e['end'])),_0x4720ca=new Set();for(const {suggestion:_0x3c2a33,meta:_0x5d4377}of this['_findSuggestions'](_0x363b1,'insertion'))_0x5d4377['isOwn']&&!_0x5d4377['isNextTo']&&_0x4720ca['add'](_0x3c2a33);for(const _0x1f61c4 of _0x4720ca)if(_0x1f61c4['isMultiRange']){const _0x28ea5e=_0x1f61c4['getRanges']();(!_0x1f61c4['attributes']||!_0x1f61c4['attributes']['skipNestingCheck'])&&(_0x28ea5e['every'](_0x1f8ddf=>_0x363b1['some'](_0x5147de=>_0x5147de['containsRange'](_0x1f8ddf,!0x0)))&&_0x1f61c4['discard']());if(_0x363b1['every'](_0x3dd6c0=>_0x28ea5e['some'](_0x5efa36=>_0x5efa36['containsRange'](_0x3dd6c0,!0x0)))){const _0xe49272=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x173933,'accept');return this['forceDefaultExecution'](()=>_0xe49272(_0x168ab3,null,_0x4dbfda)),null;}}else{const _0x202b11=_0x1f61c4['getFirstRange']();_0x363b1['some'](_0x3a5e0f=>_0x3a5e0f['containsRange'](_0x202b11,!0x0))&&_0x1f61c4['discard']();if(_0x363b1['every'](_0x36608a=>_0x202b11['containsRange'](_0x36608a,!0x0))){const _0x7bbf23=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x173933,'accept');return this['forceDefaultExecution'](()=>_0x7bbf23(_0x363b1,null,_0x4dbfda)),null;}}const _0x304013=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x173933,'join');let _0x4dcc6a=null;for(const _0x5a71bb of this['getSuggestions']())if(_0x5a71bb['author']['id']==_0x56b341['id']&&_0x5a71bb['isInContent']&&'deletion'==_0x5a71bb['type']&&_0x5a71bb['subType']==_0x173933&&Lt(_0x5a71bb,_0x4dbfda)&&(_0x304013(_0x5a71bb['getRanges'](),_0x363b1)||_0x304013(_0x363b1,_0x5a71bb['getRanges']()))){if(_0x4dcc6a){if(_0x5a71bb['commentThread']&&_0x5a71bb['commentThread']['length'])continue;for(const _0x109a00 of _0x5a71bb['getRanges']())_0x4dcc6a['isIntersectingWithRange'](_0x109a00)||_0x4dcc6a['addRange'](_0x109a00);_0x5a71bb['removeMarkers']();}else{_0x4dcc6a=_0x5a71bb;for(const _0x19e199 of _0x363b1)_0x5a71bb['isIntersectingWithRange'](_0x19e199)||_0x5a71bb['addRange'](_0x19e199);}}if(_0x4dcc6a)return _0x4dcc6a;_0x4720ca['clear']();for(const {suggestion:_0x440311,meta:_0x3714a9}of this['_findSuggestions'](_0x363b1,'deletion'))_0x3714a9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3714a9['containsRangeInObject']&&!_0x3714a9['isInsideObject'])&&Lt(_0x440311,_0x4dbfda)&&_0x4720ca['add'](_0x440311);for(const _0x1db57f of _0x4720ca){const _0x5ccec4=_0x1db57f['getRanges']();if(!_0x4dbfda||!_0x4dbfda['skipNestingCheck']){if(_0x363b1['every'](_0x586d6a=>_0x5ccec4['some'](_0x142c81=>_0x142c81['containsRange'](_0x586d6a,!0x0))))return _0x1db57f;}(!_0x1db57f['attributes']||!_0x1db57f['attributes']['skipNestingCheck'])&&(_0x5ccec4['every'](_0x34574a=>_0x363b1['some'](_0x4136d0=>_0x4136d0['containsRange'](_0x34574a,!0x0)))&&_0x1db57f['discard']());}const _0x1d90fe=_0xa3dac7(),_0x9d5f88=_0x56b341['id'],_0x21f00c='deletion:'+_0x173933,_0x4962d0=this['_setSuggestionData']({'id':_0x1d90fe,'type':_0x21f00c,'createdAt':new Date(),'authorId':_0x9d5f88,'attributes':_0x4dbfda});for(const _0x356316 of _0x363b1)_0x356316['detach'](),_0x356316['isCollapsed']||'$graveyard'==_0x356316['root']['rootName']||this['_addSuggestionMarker'](_0x21f00c,_0x1d90fe,_0x9d5f88,_0x356316,u['getMultiRangeId']());return _0x4962d0;}['markAttributeChange'](_0xa35dac,_0x134f98,_0xa7792d,_0x50f58e,_0x8ef4dc){if(_0xa35dac['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x253276=this['editor']['plugins']['get']('Users')['me']['id'],_0x145368=Array['from'](this['_suggestions']['values']())['filter'](_0x5d9392=>'attribute'==_0x5d9392['type']&&_0x5d9392['data']['key']==_0x134f98&&_0x5d9392['isIntersectingWithRange'](_0xa35dac));if('default'===this['_trackFormatChanges']){const _0x14ecc7=this['_findSuggestions'](_0xa35dac,'insertion')['filter'](({meta:_0xcd137a})=>_0xcd137a['isOwn']&&!_0xcd137a['isInsideObject']&&!_0xcd137a['isNextTo'])['map'](({suggestion:_0x3fa238})=>_0x3fa238);_0x145368['unshift'](..._0x14ecc7);}const _0xced14b=new Map([[_0xa35dac,_0xa7792d]]);for(const _0xc9d0cd of _0x145368){const _0x81a23='attribute'==_0xc9d0cd['type']?_0xc9d0cd['data']['oldValue']:void 0x0,_0x3b8414=_0xc9d0cd['getFirstRange'](),_0xd8f4a0=Array['from'](_0xced14b['keys']())['find'](_0x5e4893=>_0x5e4893['isIntersecting'](_0x3b8414));if(!_0xd8f4a0)continue;const _0x51ffd0=_0xd8f4a0['getDifference'](_0x3b8414);this['_isBlockAttribute'](_0x134f98)&&'insertion'==_0xc9d0cd['type']&&0x0!=_0x51ffd0['length']||(_0xced14b['delete'](_0xd8f4a0),_0x51ffd0['forEach'](_0x50a950=>{_0xced14b['set'](_0x50a950,_0xa7792d);}),'insertion'!=_0xc9d0cd['type']&&_0x81a23!=_0x50f58e&&_0xced14b['set'](_0xd8f4a0['getIntersection'](_0x3b8414),_0x81a23));}const _0x37a0a0=[];for(const [_0x512e5b,_0xaba624]of _0xced14b){const _0x32ab8e=_0xa3dac7(),_0x2e0dba={'key':_0x134f98,'oldValue':_0xaba624,'newValue':_0x50f58e};_0x134f98['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':_0x134f98});const _0x25f7ba=('attribute:'+(_0x134f98+'|'+Vt({'newValue':_0x50f58e})))['substring'](0x0,0x3c),_0x3d21ac=this['_setSuggestionData']({'id':_0x32ab8e,'type':_0x25f7ba,'data':_0x2e0dba,'createdAt':new Date(),'authorId':_0x253276,'attributes':_0x8ef4dc});_0x37a0a0['push'](_0x3d21ac),this['_addSuggestionMarker'](_0x25f7ba,_0x32ab8e,_0x253276,_0x512e5b);}return _0x37a0a0;}['enableDefaultAttributesIntegration'](_0x2f60b1){this['enableCommand'](_0x2f60b1,(_0x154f8f,..._0x21a5e8)=>{this['_recordAttributeChanges'](()=>{_0x154f8f(..._0x21a5e8);});});}['registerBlockAttribute'](_0x52783f){this['_blockAttributeKeys']['add'](_0x52783f);}['registerInlineAttribute'](_0x395d7a){this['_inlineAttributeKeys']['add'](_0x395d7a);}['_getAttributeKey'](_0x554699){return'attribute'==_0x554699['type']?_0x554699['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4f28ad,_0x2ce820){const _0x68d96c=_0x4f28ad['getFirstMarker']();this['_model']['change'](_0x4899cc=>{_0x4899cc['updateMarker'](_0x68d96c,{'range':_0x2ce820});});}['_addThreadToSuggestion'](_0x17a136){const _0x606310=_0x17a136['id'],_0x21bba7=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x606310)||this['_commentsRepository']['addCommentThread']({'channelId':_0x21bba7,'threadId':_0x606310,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3b6428=this['_commentsRepository']['getCommentThread'](_0x606310);_0x3b6428['unbind']('isRemovable'),_0x3b6428['isRemovable']=!0x1,_0x17a136['commentThread']=_0x3b6428;}['_checkSuggestionCorrectness'](_0x4b6395,_0x3e07c7,_0xede255,_0x13850c){if(_0x4b6395['type']!=_0x3e07c7||_0x4b6395['subType']!=_0xede255||_0x4b6395['creator']['id']!=_0x13850c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x50d316('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2dce58,_0x553464){const _0x359594=_0x2dce58['getFirstRange']();if(_0x553464['isEqual'](_0x359594))_0x2dce58['removeMarkers']();else{if(_0x359594['containsRange'](_0x553464)){const _0x30a8bb=this['_model']['createPositionAt'](_0x553464['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2dce58,this['_model']['createRange'](_0x359594['start'],_0x30a8bb));const _0x4e97d1=_0xa3dac7(),_0x7a2e35=_0x2dce58['creator']['id'],_0x11926b=_0x2dce58['type']+':'+_0x2dce58['subType'];this['_setSuggestionData']({'id':_0x4e97d1,'type':_0x11926b,'createdAt':new Date(),'authorId':_0x7a2e35,'data':_0x2dce58['data'],'attributes':_0x2dce58['attributes']});const _0x1cac8a=this['_model']['createPositionAt'](_0x553464['end']['parent'],'after'),_0x20579f=this['_model']['createRange'](_0x1cac8a,_0x359594['end']);this['_addSuggestionMarker'](_0x11926b,_0x4e97d1,_0x7a2e35,_0x20579f);}else{if(_0x359594['containsPosition'](_0x553464['start'])){const _0x4cdcba=this['_model']['createPositionAt'](_0x553464['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2dce58,this['_model']['createRange'](_0x359594['start'],_0x4cdcba));}else{const _0x364f43=this['_model']['createPositionAt'](_0x553464['end']['parent'],'after');this['_setSuggestionRange'](_0x2dce58,this['_model']['createRange'](_0x364f43,_0x359594['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x28aef2){for(const {suggestion:_0x57d5fe,meta:_0x4ff145}of this['_findSuggestions'](_0x28aef2,'insertion')){if(!_0x4ff145['isOwn'])continue;const _0x86a27e=_0x57d5fe['getRanges']();for(const _0x6143ba of _0x86a27e)if(!_0x28aef2['getDifference'](_0x6143ba)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x257660){const _0x76d479=this['editor']['plugins']['get']('Users')['getUser'](_0x257660);if(!_0x76d479)throw new _0x50d316('track-changes-user-not-found',this);return _0x76d479;}['_getExternalAuthor'](_0x117201){const _0x1331a2=this['editor']['plugins']['get']('Users'),_0x174731=_0x1e437b('external:'+_0x117201),_0x1c754f=_0x1331a2['getUser'](_0x174731);return _0x1c754f||_0x1331a2['addUser']({'id':_0x174731,'name':_0x117201});}['_createSuggestion'](_0x1cb0d3,_0x515e0e,_0xc8842,_0x4cc50a,_0x11aa77){const _0x19d10d=this['_getAuthorFromId'](_0x4cc50a),_0x386eed=this['_suggestionFactory']['buildSuggestion'](_0x1cb0d3,_0x515e0e,_0xc8842,_0x19d10d,_0x11aa77,_0x48f616=>{this['_updateSuggestionData'](_0xc8842,{'attributes':_0x48f616});const _0x3347fb=this['getSuggestion'](_0xc8842);this['_joinWithAdjacentSuggestions'](new Set([_0x3347fb])),this['_refreshSuggestionsChain'](new Set([_0x3347fb]));});return this['listenTo'](_0x386eed,'accept',()=>{this['_updateSuggestionData'](_0xc8842,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x386eed,'discard',()=>{this['_updateSuggestionData'](_0xc8842,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xc8842,_0x386eed),this['_suggestionState']['set'](_0x386eed,'notReady'),_0x386eed;}['_splitMarkerName'](_0x5be535){const _0x2946d7=_0x5be535['split'](':');return{'group':_0x2946d7[0x0],'type':_0x2946d7[0x1],'subType':_0x2946d7['length']>=0x5?_0x2946d7[0x2]:null,'id':_0x2946d7['length']<0x5?_0x2946d7[0x2]:_0x2946d7[0x3],'authorId':_0x2946d7['length']<0x5?_0x2946d7[0x3]:_0x2946d7[0x4],'markerCount':0x6==_0x2946d7['length']?_0x2946d7[0x5]:null};}['_breakSuggestionMarker'](_0x2c0043,_0x4a5d4b,_0x555382){const _0xeae53=_0x2c0043['getFirstRange'](),_0x46b26f=_0xeae53['start'],_0x2f11e0=_0xeae53['end'];this['_setSuggestionRange'](_0x2c0043,this['_model']['createRange'](_0x46b26f,_0x4a5d4b));const _0x5b4da4=_0xa3dac7(),_0xbbef2b=_0x2c0043['creator']['id'],_0x5a4de5=_0x2c0043['type']+(_0x2c0043['subType']?':'+_0x2c0043['subType']:'');this['_setSuggestionData']({'id':_0x5b4da4,'type':_0x5a4de5,'createdAt':new Date(),'authorId':_0xbbef2b,'originalSuggestionId':_0x2c0043['id'],'attributes':_0x2c0043['attributes'],'data':_0x2c0043['data']});const _0x254c1c=this['_getAttributeKey'](_0x2c0043);('formatBlock'==_0x2c0043['type']||_0x254c1c&&this['_isBlockAttribute'](_0x254c1c))&&(_0x555382=this['_model']['createPositionBefore'](_0x555382['parent'])),this['_addSuggestionMarker'](_0x5a4de5,_0x5b4da4,_0xbbef2b,this['_model']['createRange'](_0x555382,_0x2f11e0));}['_findSuggestions'](_0x2f5af2,_0x5780ec=null){const _0x374354=[],_0x212510=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2f5af2)||(_0x2f5af2=[_0x2f5af2]);for(const _0x427f64 of this['getSuggestions']()){if(!_0x427f64['isInContent'])continue;if(_0x5780ec&&_0x427f64['type']!=_0x5780ec)continue;let _0x483395=!0x1;for(const _0xad3b20 of _0x427f64['getRanges']()){for(const _0x34b7b6 of _0x2f5af2){const _0x38b309=_0x34b7b6['start']['isEqual'](_0xad3b20['end'])||_0x34b7b6['end']['isEqual'](_0xad3b20['start']);if(_0x38b309||_0x34b7b6['getIntersection'](_0xad3b20)){const _0x251b4f=_0x34b7b6['containsRange'](_0xad3b20)&&Rt(this['_model']['schema'],_0xad3b20['start'],_0x34b7b6),_0x4b60fe=_0xad3b20['containsRange'](_0x34b7b6)&&Rt(this['_model']['schema'],_0x34b7b6['start'],_0xad3b20);_0x374354['push']({'suggestion':_0x427f64,'meta':{'isOwn':_0x212510==_0x427f64['author'],'isNextTo':_0x38b309,'isInsideObject':_0x251b4f,'containsRangeInObject':_0x4b60fe}}),_0x483395=!0x0;break;}}if(_0x483395)break;}}return _0x374354;}['_addSuggestionMarker'](_0x484f55,_0x41f8b7,_0x258eb1,_0x4e1cf6,_0x294569){this['_model']['change'](_0x185c9a=>{let _0x3086a1='suggestion:'+_0x484f55+':'+_0x41f8b7+':'+_0x258eb1;_0x294569&&(_0x3086a1=_0x3086a1+':'+_0x294569),_0x185c9a['addMarker'](_0x3086a1,{'range':_0x4e1cf6,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4f5cfb){const _0x40fb2e=_0x4f5cfb['previous'],_0x15ba39=_0x4f5cfb['next'];_0x4f5cfb['previous']=null,_0x4f5cfb['next']=null,null!=_0x40fb2e&&_0x40fb2e['next']==_0x4f5cfb&&(_0x40fb2e['next']=_0x15ba39),null!=_0x15ba39&&_0x15ba39['previous']==_0x4f5cfb&&(_0x15ba39['previous']=_0x40fb2e),'ready'==this['_suggestionState']['get'](_0x4f5cfb)&&(this['_suggestionState']['set'](_0x4f5cfb,'removed'),this['fire']('suggestionUnloaded',_0x4f5cfb,_0x40fb2e,_0x15ba39));}['_setSuggestionData'](_0x41a3f0){const _0x3b62ea=_0x41a3f0['id'],_0x5a7aa4=this['addSuggestionData'](_0x41a3f0);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4c1ca5=this['editor']['plugins']['get']('PendingActions'),_0x533f31=_0x5a7aa4['hasComments'],_0x20673b=_0x5a7aa4['subType']?_0x5a7aa4['type']+':'+_0x5a7aa4['subType']:_0x5a7aa4['type'],_0x1f7d24=this['editor']['locale'],_0x430f46=_0x4c1ca5['add'](o(_0x1f7d24,'PENDING_ACTION_SUGGESTION')),_0x286561={'id':_0x3b62ea,'type':_0x20673b,'hasComments':_0x533f31,'data':_0x41a3f0['data']||null,'originalSuggestionId':_0x41a3f0['originalSuggestionId']||null,'attributes':_0x5a7aa4['attributes']};this['_adapter']['addSuggestion'](_0x286561)['then'](_0x46fdbe=>{_0x5a7aa4['_saved']=!0x0,_0x4c1ca5['remove'](_0x430f46),_0x46fdbe&&_0x46fdbe['createdAt']&&(this['_suggestions']['get'](_0x3b62ea)['createdAt']=_0x46fdbe['createdAt']);})['catch'](_0x15858e=>{throw _0x2b9abd('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5a7aa4['discard']();}),_0x5a7aa4['stopListening'](),this['_suggestions']['delete'](_0x5a7aa4['id']),this['_suggestionState']['delete'](_0x5a7aa4),_0x15858e;});}return _0x5a7aa4;}['_isBlockAttribute'](_0x4ef8c5){return this['_blockAttributeKeys']['has'](_0x4ef8c5);}['_updateSuggestionData'](_0x4001a7,_0x375c32){const _0xb49cbb=this['editor']['plugins']['get']('PendingActions'),_0xa18fe4=this['getSuggestion'](_0x4001a7);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xa18fe4['_saved']){const _0x1e28de=_0xb49cbb['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4001a7,_0x375c32)['then'](()=>{_0xb49cbb['remove'](_0x1e28de);});}else _0xa18fe4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4001a7,_0x375c32);});}}['_getSuggestionData'](_0x2d6e01){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x50d316('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2d6e01);}['_handleNewSuggestionMarker'](_0x19de7a){const {id:_0x35cd25,type:_0x1837f2,subType:_0x254645,authorId:_0x3d6360}=this['_splitMarkerName'](_0x19de7a),_0x451ccb=this['_suggestions']['get'](_0x35cd25)||this['_createSuggestion'](_0x1837f2,_0x254645,_0x35cd25,_0x3d6360,{});switch(this['_checkSuggestionCorrectness'](_0x451ccb,_0x1837f2,_0x254645,_0x3d6360),this['_suggestionState']['get'](_0x451ccb)){case'notReady':this['_getSuggestionData'](_0x35cd25)['then'](_0x3d4a34=>{let _0x9e2dec=Promise['resolve']();_0x3d4a34['hasComments']&&(_0x9e2dec=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x35cd25})),_0x9e2dec['then'](()=>{this['addSuggestionData'](_0x3d4a34)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x451ccb,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x35cd25,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x451ccb,'ready'),this['fire']('suggestionLoaded',_0x451ccb);break;case'ready':this['fire']('suggestionChanged',_0x451ccb);}return _0x451ccb['addMarkerName'](_0x19de7a),_0x451ccb;}['_refreshSuggestionsChain'](_0x38a80a){const _0x25a46c=Array['from'](_0x38a80a),_0x585fc0=_0x25a46c['filter'](_0xe22a2b=>'attribute'==_0xe22a2b['type']);this['_refreshAttributeSuggestionsChain'](_0x585fc0);const _0x20cc81=_0x25a46c['filter'](_0x30b42c=>!_0x30b42c['isMultiRange']&&'attribute'!=_0x30b42c['type']),_0x2889fa=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x352cbb=>!_0x352cbb['isMultiRange']&&'attribute'!=_0x352cbb['type']),_0x2c9a1c=_0x2889fa['filter'](_0x2f799e=>!_0x38a80a['has'](_0x2f799e)),_0x5651bc=new Map(_0x2889fa['map'](_0x4acdf5=>[_0x4acdf5,this['_suggestionFactory']['getSuggestionCallback'](_0x4acdf5['type'],_0x4acdf5['subType'],'chain')])),_0x1ef37a=new Map(_0x2889fa['map'](_0x20a5dc=>[_0x20a5dc,_0x20a5dc['getFirstRange']()])),_0x12bd52=new Set(),_0x3b5c4e=new Set();for(let _0x4f945e=0x0;_0x4f945e<_0x20cc81['length'];_0x4f945e++)_0x1a219b(_0x20cc81[_0x4f945e],_0x20cc81,_0x4f945e+0x1);for(let _0x22d867=0x0;_0x22d867<_0x20cc81['length'];_0x22d867++)_0x1a219b(_0x20cc81[_0x22d867],_0x2c9a1c,0x0);const _0x3b7291=new Set();for(let _0x2c2ba9=0x0;_0x2c2ba9<_0x20cc81['length'];_0x2c2ba9++){const _0x157a51=_0x20cc81[_0x2c2ba9];!_0x3b5c4e['has'](_0x157a51)&&_0x157a51['previous']&&(_0x3b7291['add'](_0x157a51['previous']),_0x157a51['previous']['next']===_0x157a51&&(_0x157a51['previous']['next']=null),_0x157a51['previous']=null),!_0x12bd52['has'](_0x157a51)&&_0x157a51['next']&&(_0x3b7291['add'](_0x157a51['next']),_0x157a51['next']['previous']===_0x157a51&&(_0x157a51['next']['previous']=null),_0x157a51['next']=null);}function _0x1a219b(_0x109214,_0x11dd68,_0x40ff17){for(let _0x3cba03=_0x40ff17;_0x3cba03<_0x11dd68['length'];_0x3cba03++){const _0x4358f4=_0x314ebd(_0x109214,_0x11dd68[_0x3cba03]);_0x4358f4&&(_0x4358f4[0x0]['next']=_0x4358f4[0x1],_0x4358f4[0x1]['previous']=_0x4358f4[0x0],_0x12bd52['add'](_0x4358f4[0x0]),_0x3b5c4e['add'](_0x4358f4[0x1]));}}function _0x314ebd(_0x209237,_0x11dbba){if(_0x209237['author']['id']!==_0x11dbba['author']['id'])return null;const _0x176ab9=_0x5651bc['get'](_0x209237)(_0x209237,_0x11dbba,_0x1ef37a['get'](_0x209237),_0x1ef37a['get'](_0x11dbba));if(!_0x176ab9)return null;return _0x5651bc['get'](_0x11dbba)(_0x209237,_0x11dbba,_0x1ef37a['get'](_0x209237),_0x1ef37a['get'](_0x11dbba))?_0x176ab9[0x1]['commentThread']&&_0x176ab9[0x1]['commentThread']['length']?null:_0x176ab9:null;}_0x3b7291['size']&&this['_refreshSuggestionsChain'](_0x3b7291);}['_refreshAttributeSuggestionsChain'](_0x3a9ba3){if(0x0==_0x3a9ba3['length'])return;const _0x26c933=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34013e=>'attribute'==_0x34013e['type']&&_0x34013e['_isDataLoaded']),_0xbf41f5=[],_0x5d2f17=new Map();for(const _0x346ba5 of _0x26c933){const _0xccb19=_0x1e437b(_0x346ba5['attributes']);_0x5d2f17['has'](_0xccb19)||(_0x5d2f17['set'](_0xccb19,_0xbf41f5['length']),_0xbf41f5['push']([]));const _0x482f59=_0x5d2f17['get'](_0xccb19);_0xbf41f5[_0x482f59]['push'](_0x346ba5);}!(function(){_0xbf41f5['sort']((_0x41b4c5,_0x53cf51)=>{const _0x27c26c=_0x41b4c5[0x0]['createdAt'],_0x6c3e77=_0x53cf51[0x0]['createdAt'];return _0x27c26c==_0x6c3e77?_0x41b4c5[0x0]['attributes']['groupId']<_0x53cf51[0x0]['attributes']['groupId']?-0x1:0x1:_0x27c26c<_0x6c3e77?-0x1:0x1;});for(const _0x45020b of _0xbf41f5)_0x45020b['sort']((_0x4b7855,_0x5a7a27)=>_0x4b7855['id']<_0x5a7a27['id']?-0x1:0x1);}());for(let _0x325e78=0x0;_0x325e78<_0xbf41f5['length'];_0x325e78++){if(0x0==_0xbf41f5[_0x325e78]['length'])continue;const _0x1759dd=[];for(let _0x1f2ac7=_0x325e78+0x1;_0x1f2ac7<_0xbf41f5['length'];_0x1f2ac7++)0x0!=_0xbf41f5[_0x1f2ac7]['length']&&_0xcc4041(_0xbf41f5[_0x325e78],_0xbf41f5[_0x1f2ac7])&&_0x1759dd['push'](_0x1f2ac7);for(const _0x114d51 of _0x1759dd)_0xbf41f5[_0x325e78]=_0xbf41f5[_0x325e78]['concat'](_0xbf41f5[_0x114d51]),_0xbf41f5[_0x114d51]=[];}for(const _0x3220f7 of _0xbf41f5)for(let _0x16a340=0x0;_0x16a340<_0x3220f7['length'];_0x16a340++)_0x3220f7[_0x16a340]['next']=_0x3220f7[_0x16a340+0x1]||null;for(const _0x33d863 of _0xbf41f5)for(let _0x35e0bb=0x0;_0x35e0bb<_0x33d863['length'];_0x35e0bb++)_0x33d863[_0x35e0bb]['previous']=_0x33d863[_0x35e0bb-0x1]||null;function _0xcc4041(_0x37921e,_0x352f87){if(_0x37921e[0x0]['attributes']['groupId']!==_0x352f87[0x0]['attributes']['groupId']&&_0x37921e[0x0]['author']!==_0x352f87[0x0]['author'])return!0x1;if(!function(_0x13a227,_0x56b213){if(!_0x13a227['hasComments']&&!_0x56b213['hasComments'])return!0x0;if(_0x13a227['hasComments']&&_0x56b213['hasComments'])return!0x1;if(_0x13a227['hasComments']&&_0x56b213['createdAt']<_0x13a227['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x56b213['hasComments']&&_0x13a227['createdAt']<_0x56b213['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x37921e[0x0],_0x352f87[0x0]))return!0x1;const _0x1c2a39=Bt(_0x37921e[0x0]['attributes'],'groupId'),_0x544ce9=Bt(_0x352f87[0x0]['attributes'],'groupId');if(!_0x1f7f6a(_0x1c2a39,_0x544ce9))return!0x1;return!!_0x37921e['every'](_0x1b1a6e=>_0x352f87['some'](_0x121ce7=>_0x1b1a6e['getFirstRange']()['isEqual'](_0x121ce7['getFirstRange']())))&&_0x352f87['every'](_0x38e836=>_0x37921e['some'](_0x12b665=>_0x38e836['getFirstRange']()['isEqual'](_0x12b665['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x349ec1){const _0x1f8ae6=Array['from'](_0x349ec1),_0x92583e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3a8c8d=_0x92583e['filter'](_0x2afd00=>!_0x349ec1['has'](_0x2afd00)),_0x920c2e=new Map(_0x1f8ae6['map'](_0x230555=>[_0x230555,this['_suggestionFactory']['getSuggestionCallback'](_0x230555['type'],_0x230555['subType'],'join')])),_0x38c7cb=new Map(_0x92583e['map'](_0x37e9b9=>[_0x37e9b9,_0x37e9b9['getRanges']()]));for(let _0xff9421=0x0;_0xff9421<_0x1f8ae6['length'];_0xff9421++){if(_0xccced5(this,_0x1f8ae6[_0xff9421],_0x1f8ae6,_0xff9421+0x1))return!0x0;}for(let _0x55c8cb=0x0;_0x55c8cb<_0x1f8ae6['length'];_0x55c8cb++){if(_0xccced5(this,_0x1f8ae6[_0x55c8cb],_0x3a8c8d,0x0))return!0x0;}return!0x1;function _0xccced5(_0x493d4e,_0x37b933,_0x34c6d5,_0x2d305c){for(let _0x3e2daa=_0x2d305c;_0x3e2daa<_0x34c6d5['length'];_0x3e2daa++){const _0x132967=_0x34c6d5[_0x3e2daa];if(_0x132967['type']!==_0x37b933['type']||_0x132967['author']['id']!==_0x37b933['author']['id']||_0x132967['subType']!==_0x37b933['subType'])continue;if(!Pt(_0x37b933,_0x132967,['groupId']))continue;if('attribute'==_0x37b933['type']&&_0x37b933['data']['oldValue']!=_0x132967['data']['oldValue'])continue;if('attribute'==_0x37b933['type']&&_0x493d4e['_isBlockAttribute'](_0x37b933['data']['key']))continue;if('formatBlock'==_0x37b933['type']){const _0xda8d19=_0x493d4e['editor']['model'],_0x37fe49=_0x37b933['getContainedElement']();if(_0x37fe49&&(_0xda8d19['schema']['isObject'](_0x37fe49)||_0xda8d19['schema']['isLimit'](_0x37fe49)))continue;}const _0x6adf8c=_0x920c2e['get'](_0x37b933),_0x3e43c0=_0x38c7cb['get'](_0x37b933),_0x241af2=_0x38c7cb['get'](_0x132967),_0x58f151=_0x37b933['commentThread']&&_0x37b933['commentThread']['length'],_0x22502b=_0x132967['commentThread']&&_0x132967['commentThread']['length'];if(!_0x58f151&&_0x6adf8c(_0x241af2,_0x3e43c0))return _0x493d4e['_joinSuggestions'](_0x132967,_0x37b933),_0x38c7cb['delete'](_0x37b933),!0x0;if(!_0x22502b&&_0x6adf8c(_0x3e43c0,_0x241af2))return _0x493d4e['_joinSuggestions'](_0x37b933,_0x132967),_0x38c7cb['delete'](_0x132967),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3e8d16,_0x306bc3){if(_0x3e8d16['isMultiRange']){for(const _0x31a079 of _0x306bc3['getRanges']())_0x3e8d16['addRange'](_0x31a079);}else{const _0x3b90d2=_0x306bc3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3e8d16,this['_model']['createRange'](_0x3e8d16['getFirstRange']()['start'],_0x3b90d2));}_0x306bc3['removeMarkers']();}['_getMarkerAnnouncementText'](_0x531eae,_0x57846d){const _0x421f58=_0x531eae['startsWith']('format')||_0x531eae['startsWith']('attribute')?'FORMATTING':_0x531eae['toUpperCase']();return o(this['editor']['locale'],_0x57846d+'_'+_0x421f58+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x3a049=this['editor'];if(!_0x3a049['ui'])return;const {ariaLiveAnnouncer:_0x34c57}=_0x3a049['ui'];_0x3cad82(this['_model'],({left:_0x218c4f,entered:_0xef9ee4})=>{for(const _0x48d1db of _0x218c4f){const {group:_0x3eee6d,type:_0x3e494d}=this['_splitMarkerName'](_0x48d1db['name']);if('suggestion'===_0x3eee6d){_0x34c57['announce'](this['_getMarkerAnnouncementText'](_0x3e494d,'LEAVE'));break;}}for(const _0x4a3519 of _0xef9ee4){const {group:_0x36b20c,type:_0x5fa3ed}=this['_splitMarkerName'](_0x4a3519['name']);if('suggestion'===_0x36b20c){_0x34c57['announce'](this['_getMarkerAnnouncementText'](_0x5fa3ed,'ENTER'));break;}}});}['_processAttributeChanges'](_0x39ad37){if(this['_recordAttributeSuggestions'])return!0x1;const _0x330c2f=this['editor'],_0x52d83d=_0x330c2f['model']['document']['differ']['getChanges']();if(0x0==_0x52d83d['length'])return!0x1;const _0x36c79a=[],_0x572fac=_0x52d83d['filter'](_0x407acf=>'attribute'==_0x407acf['type']),_0x51ef66=_0x52d83d['filter'](_0xa80dc0=>'insert'==_0xa80dc0['type']&&'$text'!=_0xa80dc0['name']),_0x28303b=_0x52d83d['filter'](_0x6d796b=>'remove'==_0x6d796b['type']&&'$text'!=_0x6d796b['name']);for(const _0x4f0413 of _0x572fac)_0x36c79a['push']({'key':_0x4f0413['attributeKey'],'newValue':_0x4f0413['attributeNewValue'],'oldValue':_0x4f0413['attributeOldValue'],'range':Ot(_0x4f0413['range'],_0x330c2f['model'])});for(const _0x4f7eef of _0x51ef66){const _0x311f4b=_0x28303b['find'](_0x32bd04=>_0x32bd04['position']['isEqual'](_0x4f7eef['position']));_0x311f4b&&_0x36c79a['push']({'key':m,'newValue':_0x4f7eef['name'],'oldValue':_0x311f4b['name'],'range':_0x330c2f['model']['createRangeOn'](_0x4f7eef['position']['nodeAfter'])});}return 0x0!=_0x36c79a['length']&&this['_reduceExistingSuggestions'](_0x39ad37,_0x36c79a);}['_processAttributeSuggestions'](_0x25098f){let _0x589940=!0x1;const _0x76683d=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x128bfd=>_0x128bfd['data']['newRange']&&_0x128bfd['name']['startsWith']('suggestion:attribute:'));for(const _0xa9b84b of _0x76683d){const {subType:_0xf43bb3,id:_0x46a2bb}=this['_splitMarkerName'](_0xa9b84b['name']),_0x3fb299=_0xf43bb3['split']('|')[0x0];for(const _0x1f05e6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1f05e6['id']!=_0x46a2bb&&'attribute'==_0x1f05e6['type']&&_0x1f05e6['data']&&_0x1f05e6['data']['key']==_0x3fb299&&_0x1f05e6['getFirstRange']()['isIntersecting'](_0xa9b84b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1f05e6,_0xa9b84b['data']['newRange'],_0x25098f),_0x589940=!0x0);}return _0x589940;}['_recordAttributeChanges'](_0x4c1985){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x4c1985();}['_isRegisteredAttribute'](_0x20c93c){const _0x37328b=this['_isBlockAttribute'](_0x20c93c),_0x4a0795=this['_inlineAttributeKeys']['has'](_0x20c93c);return _0x37328b||_0x4a0795;}['_reduceExistingSuggestions'](_0x5da769,_0x505a28){if(0x0==_0x505a28['length'])return!0x1;let _0x55bc14=!0x1;for(const _0x39788a of _0x505a28){const _0x573596=this['_findSuggestions'](_0x39788a['range'],'attribute')['filter'](_0x16a0bd=>!_0x16a0bd['meta']['isNextTo'])['map'](_0x1fd27b=>_0x1fd27b['suggestion']),_0x2e8d3d=_0x1e437b({'newValue':_0x39788a['newValue']});_0x573596['filter'](_0x3fd1fc=>{const [_0x139f2d,_0x5dc71d]=_0x3fd1fc['subType']['split']('|');return _0x139f2d==_0x39788a['key']&&_0x5dc71d!=_0x2e8d3d;})['forEach'](_0x35c6b7=>{this['_reduceSuggestionAttributeRange'](_0x35c6b7,_0x39788a['range'],_0x5da769),_0x55bc14=!0x0;});}return _0x55bc14;}['_reduceSuggestionAttributeRange'](_0x23532f,_0xebfa2e,_0x3bc8b9){const _0x526463=_0x23532f['getFirstRange']()['getDifference'](_0xebfa2e);0x0!==_0x526463['length']?0x1!==_0x526463['length']?this['_breakSuggestionMarker'](_0x23532f,_0xebfa2e['start'],_0xebfa2e['end']):this['_setSuggestionRange'](_0x23532f,_0x526463[0x0]):_0x3bc8b9['removeMarker'](_0x23532f['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1bbca8){this['_editor']=_0x1bbca8,this['_model']=_0x1bbca8['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x164b59,_0x583d38,_0x4276a6,_0x323906,_0x54b55a,_0x55d077){return new u(this['_model'],{'type':_0x164b59,'subType':_0x583d38,'id':_0x4276a6,'author':_0x323906,'creator':_0x323906,'attributes':_0x54b55a,'onAttributesChange':_0x55d077,'onAccept':(..._0x2b46dd)=>this['getSuggestionCallback'](_0x164b59,_0x583d38,'accept')(..._0x2b46dd),'onDiscard':(..._0x1f86a8)=>this['getSuggestionCallback'](_0x164b59,_0x583d38,'discard')(..._0x1f86a8)});}['registerCustomCallback'](_0x57fd08,_0x45e52b,_0x2c1de0,_0x334177){const _0x3384d5=_0x57fd08+':'+_0x45e52b+':'+_0x2c1de0;this['_customCallbacks']['set'](_0x3384d5,_0x334177);}['getSuggestionCallback'](_0x368e75,_0x468db5,_0x33fd7b){const _0x316ed3=_0x368e75+':'+_0x468db5+':'+_0x33fd7b;return this['_customCallbacks']['get'](_0x316ed3)||this['_defaultCallbacks']['get'](_0x368e75+':'+_0x33fd7b);}['_registerDefaultCallbacks'](){const _0x4d691c=()=>!0x1,_0x21e164=_0x3a0b54=>{_0x3a0b54['sort']((_0xcd964,_0x31a0ea)=>_0xcd964['start']['isBefore'](_0x31a0ea['start'])?0x1:-0x1),this['_model']['change'](_0x31bc06=>{for(const _0x527567 of _0x3a0b54){let _0x223d65;_0x223d65=_0x527567['end']['isAtEnd']&&_0x527567['end']['parent']==_0x527567['start']['nodeAfter']?_0x31bc06['createSelection'](_0x527567['start']['nodeAfter'],'on'):_0x31bc06['createSelection'](_0x527567),this['_model']['deleteContent'](_0x223d65,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2f0992=(_0x72fbaa,_0xc58fb2)=>{_0xc58fb2&&this['_model']['change'](_0x1de6ce=>{const {commandName:_0x246b5d,commandParams:_0x4e5a0b=[]}=_0xc58fb2,_0x2b8ada=_0x72fbaa['map'](_0x33d87c=>(Tt(_0x33d87c)&&(_0x33d87c=this['_model']['createRange'](_0x33d87c['end'])),_0x33d87c))['filter'](_0x30cf31=>'$graveyard'!==_0x30cf31['root']['rootName']);if(_0x2b8ada['length']<0x1)return;const _0x130928=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x455a7b=>_0x216747['fromRange'](_0x455a7b));_0x1de6ce['setSelection'](_0x2b8ada);for(const _0x245071 of this['_editor']['commands']['commands']())_0x245071['refresh']();_0x4e5a0b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x246b5d,..._0x4e5a0b);const _0x8aafe=_0x130928['filter'](_0x4c0c72=>'$graveyard'!=_0x4c0c72['root']['rootName']);_0x8aafe['length']>0x0&&_0x1de6ce['setSelection'](_0x8aafe);for(const _0x50e821 of _0x130928)_0x50e821['detach']();});},_0x2e60c0=(_0x1206ce,_0x331b7c)=>0x1==_0x1206ce['length']&&0x1==_0x331b7c['length']&&_0x1206ce[0x0]['end']['isEqual'](_0x331b7c[0x0]['start']),_0x25ea72=(_0x4a44ff,_0x3ed27c,_0x1c4d64,_0x5015ce)=>Ft(_0x4a44ff,_0x3ed27c,_0x1c4d64,_0x5015ce,this['_model'])?[_0x4a44ff,_0x3ed27c]:Ft(_0x3ed27c,_0x4a44ff,_0x5015ce,_0x1c4d64,this['_model'])?[_0x3ed27c,_0x4a44ff]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4d691c),this['_defaultCallbacks']['set']('insertion:discard',_0x21e164),this['_defaultCallbacks']['set']('insertion:join',_0x2e60c0),this['_defaultCallbacks']['set']('insertion:chain',_0x25ea72),this['_defaultCallbacks']['set']('deletion:accept',_0x21e164),this['_defaultCallbacks']['set']('deletion:discard',_0x4d691c),this['_defaultCallbacks']['set']('deletion:join',_0x2e60c0),this['_defaultCallbacks']['set']('deletion:chain',_0x25ea72),this['_defaultCallbacks']['set']('formatInline:accept',_0x2f0992),this['_defaultCallbacks']['set']('formatInline:discard',_0x4d691c),this['_defaultCallbacks']['set']('formatInline:join',_0x2e60c0),this['_defaultCallbacks']['set']('formatInline:chain',_0x4d691c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2f0992),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4d691c),this['_defaultCallbacks']['set']('formatBlock:join',_0x2e60c0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4d691c),this['_defaultCallbacks']['set']('attribute:accept',_0x4d691c),this['_defaultCallbacks']['set']('attribute:discard',(_0x5d0c52,_0x5625d5)=>{if(!_0x5625d5)return;const _0x480a11=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x41e8a2=>{if(_0x5625d5['key']==m)for(const _0x37c8b3 of _0x5d0c52){const _0x3ab14c=_0x37c8b3['start']['nodeAfter'],_0x5d1209=_0x5625d5['oldValue'];_0x41e8a2['rename'](_0x3ab14c,_0x5d1209);}else{if(_0x480a11['_isBlockAttribute'](_0x5625d5['key'])){for(const _0x114c44 of _0x5d0c52)void 0x0!==_0x5625d5['oldValue']?_0x41e8a2['setAttribute'](_0x5625d5['key'],_0x5625d5['oldValue'],_0x114c44['start']['nodeAfter']):_0x41e8a2['removeAttribute'](_0x5625d5['key'],_0x114c44['start']['nodeAfter']);}else{for(const _0x3d3cec of _0x5d0c52)_0x5625d5['oldValue']?_0x41e8a2['setAttribute'](_0x5625d5['key'],_0x5625d5['oldValue'],_0x3d3cec):_0x41e8a2['removeAttribute'](_0x5625d5['key'],_0x3d3cec);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2e60c0);}}function Rt(_0x263fbe,_0x3cdab8,_0x1520bd){for(const _0x592561 of _0x3cdab8['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x592561['root']==_0x592561)return!0x1;if(!_0x1520bd['containsItem'](_0x592561))return!0x1;if(_0x263fbe['isObject'](_0x592561)||_0x263fbe['isLimit'](_0x592561))return!0x0;}return!0x1;}function Tt(_0x241b0b){return _0x241b0b['end']['parent']==_0x241b0b['start']['nodeAfter']&&_0x241b0b['end']['isAtStart'];}function Et(_0x178d44,_0x401bd4,_0x5831b6,_0x5aad07){const _0x576f71=_0x453f34=>!_0x453f34['item']['is']('$textProxy')&&!_0x5aad07['isObject'](_0x453f34['item']),_0x5ea19b=_0x178d44['start']['getLastMatchingPosition'](_0x576f71),_0x4126ab=_0x178d44['end']['getLastMatchingPosition'](_0x576f71,{'direction':'backward'});return(!_0x178d44['start']['isEqual'](_0x5ea19b)||!_0x178d44['end']['isEqual'](_0x4126ab))&&(_0x5ea19b['isBefore'](_0x4126ab)?_0x5831b6['updateMarker'](_0x401bd4,{'range':_0x5831b6['createRange'](_0x5ea19b,_0x4126ab)}):_0x5831b6['removeMarker'](_0x401bd4),!0x0);}function Vt(_0x104871){return _0x1e437b(_0x104871);}function Ut(_0x57afec){const _0xe17a7f=_0x57afec['start']['nodeAfter'];return _0xe17a7f&&_0xe17a7f['is']('element');}function Ot(_0x261560,_0x3ceceb){return null==_0x261560['end']['nodeBefore']&&_0x261560['end']['parent']==_0x261560['start']['nodeAfter']?Gt(_0x261560['start']['nodeAfter'],_0x3ceceb):_0x261560;}function Gt(_0x54a2c6,_0xab0a4f){const _0xccd304=_0xab0a4f['schema']['isObject'](_0x54a2c6)||_0xab0a4f['schema']['isSelectable'](_0x54a2c6);return _0xab0a4f['createRange'](_0xab0a4f['createPositionAt'](_0x54a2c6,'before'),_0xccd304?_0xab0a4f['createPositionAfter'](_0x54a2c6):_0xab0a4f['createPositionAt'](_0x54a2c6,'end'));}function Ft(_0xd483e1,_0x54054c,_0x4e52e2,_0x4d5229,_0x4ccfff){if(!Pt(_0xd483e1,_0x54054c))return!0x1;if(_0x4e52e2['end']['isEqual'](_0x4d5229['start']))return!0x0;if(_0xd483e1['type']!=_0x54054c['type'])return!0x1;if(!_0x4e52e2['end']['isTouching'](_0x4d5229['start']))return!0x1;const _0x2ba1c3=_0x4ccfff['createRange'](_0x4e52e2['end'],_0x4d5229['start'])['getWalker']();for(const _0x56929f of _0x2ba1c3)if(['elementStart','elementEnd']['includes'](_0x56929f['type'])&&_0x4ccfff['schema']['isLimit'](_0x56929f['item']))return!0x1;return!0x0;}function Pt(_0x4b2c54,_0xf49168,_0x10bae7=[]){return!(!_0x4b2c54['_isDataLoaded']||!_0xf49168['_isDataLoaded'])&&_0x1f7f6a(Bt(_0x4b2c54['attributes'],_0x10bae7),Bt(_0xf49168['attributes'],_0x10bae7));}function Lt(_0x25adfc,_0x5db6e7){const _0x1fb30c=Ht(_0x25adfc['attributes']),_0x4eb874=Ht(_0x5db6e7);if(!_0x25adfc['_isDataLoaded'])return!0x1;for(const _0xa6ff38 of Object['keys'](_0x4eb874))if(!_0x1f7f6a(_0x1fb30c[_0xa6ff38],_0x4eb874[_0xa6ff38]))return!0x1;return!0x0;}function Ht(_0x28f446){const _0x1c9994=Object['assign']({},_0x28f446);return delete _0x1c9994['skipNestingCheck'],delete _0x1c9994['tablePasteChainId'],_0x1c9994;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x25d463(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x17c31,_0xde5904,_0x4ee6a7,_0x36cdb9){super(),this['model']=_0xde5904,this['view']=_0x4ee6a7,this['commentThreadController']=_0x36cdb9,this['_editor']=_0x17c31,this['_acceptCommand']=_0x17c31['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x17c31['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5c351c,_0x1a93d6)=>_0x5c351c||_0x1a93d6),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x109d45=>_0x109d45&&this['_editor']['model']['canEditAt'](_0xde5904['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x519121=>_0x519121&&this['_editor']['model']['canEditAt'](_0xde5904['getRanges']())),this['_pendingAction']=null,_0x4ee6a7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4ee6a7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4ee6a7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4ee6a7,'change:isDirty',()=>{_0x4ee6a7['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 _0x3dba59=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3dba59);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x3759d1{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x194cf5,_0x59566a,_0x506935,_0xee7b49){super(_0x194cf5),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x59566a['authoredAt']),this['bind']('authoredAt')['to'](_0x59566a),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x59566a,this['_localUser']=_0x506935,this['_config']=_0xee7b49,_0xee7b49['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x31625d}=this['_config'];this['commentsListView']=new _0x31625d(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',_0x145ce2=>_0x145ce2+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x17da75,_0x2e613e)=>_0x17da75||!!_0x2e613e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3a6f72}=this['_config'],_0x4fcdc4=new _0x3a6f72(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3263f9=_0x4fcdc4['commentInputView'];return _0x4fcdc4['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3263f9,'value',(_0x1c6189,_0x2da91b,_0xe8e632)=>!!_0xe8e632||_0x1c6189&&!_0x2da91b),_0x3263f9['on']('submit',(_0x2e4ac8,_0x2638cd)=>{this['fire']('addComment',_0x2638cd),_0x3263f9['editor']['setData']('');}),_0x3263f9['on']('cancel',()=>this['focus']()),_0x3263f9['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4fcdc4;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x2ddc9a,_0x5b1f47,_0x2e9da0,_0x4df9a4){super(_0x2ddc9a,_0x5b1f47,_0x2e9da0,_0x4df9a4),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5ddd40=>_0x5ddd40&&_0x5ddd40[0x0]?_0x5ddd40[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x291ff1,_0x2a7357)=>{let _0x305bc8='';for(const _0xd6f90 of _0x291ff1)_0x305bc8+='<p>'+ds(_0xd6f90['content'],_0xd6f90['color'])+'</p>';return _0x2a7357?_0x305bc8:_0x8d55fb(_0x305bc8,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x2ddc9a,'Accept\x20suggestion'),_0x1089ce['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x2ddc9a,'Discard\x20suggestion'),_0x1089ce['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x307e07(_0x2ddc9a,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2d6b21=this['bindTemplate'],_0x2d5b6e=[{'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']}},{'tag':'time','attributes':{'datetime':_0x2d6b21['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2d6b21['to']('authoredAt',_0xc0414f=>this['_config']['formatDateTime'](_0xc0414f))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x2d5b6e['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x5bef38={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x2d6b21['if']('isActive','ck-suggestion-wrapper--active'),_0x2d6b21['to']('type',_0x4b3e8c=>'ck-suggestion-'+_0x4b3e8c),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x2d5b6e}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x5bef38['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x5bef38;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0xdfaa31,_0x3ad73b,_0x29c42d)=>{this['_descriptionElement']['innerHTML']=_0x29c42d;});}['_createButton'](_0x195d9a,_0x7b3710,_0x3efe15,_0x9a7bc2,_0x56dba8){const _0x415c16=new _0x266fe3(this['locale']);return _0x415c16['set']({'label':_0x195d9a,'icon':_0x7b3710,'tooltip':!0x0,'tooltipPosition':_0x56dba8}),_0x415c16['extendTemplate']({'attributes':{'class':_0x3efe15}}),_0x415c16['on']('execute',()=>{this['fire'](_0x9a7bc2,this['_model']['id']);}),_0x415c16;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['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;}}function ds(_0x18a9ec,_0x25a79){let _0x599393='';return _0x599393+=_0x18a9ec['split']('*')['map']((_0x5db915,_0x15e303)=>_0x15e303%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x5db915)+'</span>':us(_0x5db915))['join'](''),_0x25a79&&(_0x599393+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x25a79['value']+'\x22\x20title=\x22'+_0x25a79['title']+'\x22></span>'),_0x599393;}function us(_0x431c2c){const _0x28bb60=document['createElement']('span');return _0x28bb60['innerText']=_0x431c2c,_0x28bb60['innerHTML'];}var ie='<!--\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-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x54db38{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1d3df5,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x16553e){super(_0x16553e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x58cee0=this['editor']['config'];_0x58cee0['define']('trackChanges.SuggestionThreadView',ne),_0x58cee0['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x58cee0['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x30faa3,_0x46588a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5b6919,_0x24475b]of this['_handleControllerBuffer']){const _0x3367b7=this['_suggestionToController']['has'](_0x5b6919);_0x3367b7||_0x24475b?_0x3367b7&&_0x24475b&&this['_destroyController'](_0x5b6919):this['_initializeController'](_0x5b6919);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x30faa3,_0x46588a);}['init'](){const _0xaf4cb2=this['editor'],_0x29260f=_0xaf4cb2['plugins']['get']('TrackChangesEditing'),_0x5cd03f=_0xaf4cb2['plugins']['get']('Annotations'),_0x38fb6b=_0xaf4cb2['plugins']['get']('EditorAnnotations'),_0x1fb410=_0xaf4cb2['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x38fb6b['addSourceCollector'](()=>{const _0xa55f07=[];for(const [_0x226157,_0x4c4e1e]of Array['from'](this['_suggestionToController'])){const _0xbcab2f=_0x226157['getAllAdjacentSuggestions'](),_0x33cb3c=[];for(const _0x5b6747 of _0xbcab2f){if(!_0x5b6747['isInContent'])continue;if(_0x5b6747['isMultiRange']){_0x33cb3c['push'](..._0x5b6747['getRanges']());continue;}const _0x1892dc=_0x5b6747['getFirstRange']();if(_0x33cb3c['length']>0x0){const _0x18096c=_0x33cb3c[0x0]['getJoined'](_0x1892dc);if(_0x18096c){_0x33cb3c[0x0]=_0x18096c;continue;}}_0x33cb3c['push'](_0x1892dc);}_0xa55f07['push']([_0x4c4e1e['view'],_0x33cb3c]);}return _0xa55f07;}),this['listenTo'](_0x29260f,'suggestionLoaded',(_0x532e35,_0x57bbc1)=>{this['listenTo'](_0x57bbc1,'change:previous',(_0x320102,_0x5e783f,_0x148eaf,_0x1a0cb8)=>{_0x57bbc1['isInContent']&&(null==_0x148eaf?(this['_updateController'](_0x1a0cb8['head']),this['_handleSuggestionControllerDelayed'](_0x57bbc1,!0x1)):(this['_updateController'](_0x148eaf['head']),null==_0x1a0cb8&&this['_handleSuggestionControllerDelayed'](_0x57bbc1,!0x0)));}),null!==_0x57bbc1['previous']?this['_updateController'](_0x57bbc1['head']):this['_handleSuggestionControllerDelayed'](_0x57bbc1,!0x1);}),this['listenTo'](_0x29260f,'suggestionUnloaded',(_0x1d8bbe,_0x5eeeea,_0x4644d8)=>{this['stopListening'](_0x5eeeea,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5eeeea),this['_suggestionToController']['has'](_0x5eeeea)&&this['_destroyController'](_0x5eeeea),_0x4644d8&&this['_updateController'](_0x4644d8['head']);}),this['listenTo'](_0x29260f,'suggestionChanged',(_0xcd7097,_0x1ca8c1)=>{this['_updateController'](_0x1ca8c1);}),this['listenTo'](_0x5cd03f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1fb410,'addComment',(_0x214533,{threadId:_0x31bcfa,isFromAdapter:_0x4e92c1})=>{if(_0x4e92c1||!_0x29260f['hasSuggestion'](_0x31bcfa))return;const _0x40c9b0=_0x29260f['getSuggestion'](_0x31bcfa);this['_suggestionToController']['get'](_0x40c9b0)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x212f18=this['editor']['plugins']['get']('Annotations'),_0x1a2528=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43bc3e=Array['from'](_0x212f18['activeAnnotations'],_0x5e64fc=>_0x5e64fc['innerView'])['filter'](_0x2b8a5=>this['_viewToController']['has'](_0x2b8a5)),_0x4fa237=[];for(const _0x20f5b0 of _0x43bc3e){const _0x206836=this['_viewToController']['get'](_0x20f5b0)['model']['getAllAdjacentSuggestions']();_0x4fa237['push'](..._0x206836['reduce']((_0x180acd,_0x2c4dde)=>[..._0x180acd,..._0x2c4dde['getMarkerNames']()],[]));}_0x1a2528['activeMarkers']=_0x4fa237;}['_addUIComponentsToFactory'](){const _0x1eb7be=this['editor'],_0x4f5908=_0x1eb7be['locale'],_0x1eb167=o(_0x4f5908,'Track\x20changes'),_0x9ac67b=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x1eb167,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4f5908,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4f5908,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4f5908,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4f5908,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0xe9ecf6 of _0x9ac67b)if(ae(_0xe9ecf6)){const _0x2cd342=_0x1eb7be['commands']['get'](_0xe9ecf6['model']['commandName']);_0xe9ecf6['model']['bind']('isOn','isEnabled')['to'](_0x2cd342,'value','isEnabled');}_0x1eb7be['ui']['componentFactory']['add']('trackChanges',_0x3c4843=>this['_createToolbarButton'](_0x3c4843,_0x9ac67b,_0x1eb167)),_0x1eb7be['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2729eb=>this['_createMenuBarMenu'](_0x2729eb,_0x9ac67b,_0x1eb167));}['_createToolbarButton'](_0x19fe6f,_0xb23453,_0x5917cd){const _0x250074=zt(_0x19fe6f,Zt),_0x5b8109=this['editor']['commands']['get']('trackChanges');_0x250074['buttonView']['set']({'tooltip':_0x5917cd,'label':_0x5917cd,'icon':ie}),_0x250074['buttonView']['bind']('isOn')['to'](_0x5b8109,'value'),_0x250074['buttonView']['on']('execute',()=>{_0x5b8109['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x250074,_0xb23453,{'role':'menu'});const _0x19310c=[];for(const _0x514e4e of _0xb23453)ae(_0x514e4e)&&_0x19310c['push'](this['editor']['commands']['get'](_0x514e4e['model']['commandName']));const _0x5b1a50=_0x250074['buttonView'];return _0x5b1a50['actionView']['unbind']('isEnabled'),_0x5b1a50['arrowView']['unbind']('isEnabled'),_0x5b1a50['actionView']['bind']('isEnabled')['to'](_0x5b8109,'isEnabled'),_0x5b1a50['arrowView']['bind']('isEnabled')['toMany'](_0x19310c,'isEnabled',(..._0x1fdbd9)=>_0x1fdbd9['some'](_0x112a57=>_0x112a57)),_0x250074['on']('execute',_0x2b31f9=>{this['editor']['execute'](_0x2b31f9['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x250074;}['_createMenuBarMenu'](_0x4a1ebf,_0x3718c3,_0x2b7405){const _0x17dea0=new Kt(_0x4a1ebf),_0x2cb6e6=this['editor']['commands']['get']('trackChanges');_0x17dea0['buttonView']['set']({'label':_0x2b7405,'icon':ie});const _0x4206bd=new Qt(_0x4a1ebf);for(const _0xc47440 of _0x3718c3){if('separator'==_0xc47440['type']){_0x4206bd['items']['add'](new Jt(_0x4a1ebf));continue;}const _0x21bcec=new Xt(_0x4a1ebf,_0x17dea0),_0x2ae583=new Yt(_0x4a1ebf),_0x1535c1=_0xc47440['model'];_0x2ae583['bind'](...Object['keys'](_0x1535c1))['to'](_0x1535c1),_0x2ae583['delegate']('execute')['to'](_0x17dea0),_0x2ae583['on']('execute',()=>{this['editor']['execute'](_0x1535c1['commandName']),this['editor']['editing']['view']['focus']();}),_0x21bcec['children']['add'](_0x2ae583),_0x4206bd['items']['add'](_0x21bcec);}return _0x17dea0['bind']('isEnabled')['to'](_0x2cb6e6,'isEnabled'),_0x17dea0['panelView']['children']['add'](_0x4206bd),_0x17dea0;}['_initializeController'](_0x21e9e0){const _0x68d5e7=this['editor'],_0x36dcc1=_0x68d5e7['config'],_0x23afb7=_0x68d5e7['plugins']['get']('Annotations'),_0x1af4d8=_0x68d5e7['plugins']['get']('CommentsRepository'),_0x5f2ef1=_0x68d5e7['plugins']['get']('EditorAnnotations'),_0x40d3c3=_0x68d5e7['plugins']['get'](_0x1d3df5)['me'],_0x3525e8=_0x36dcc1['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x3b9e97,CommentThreadInputView:_0x21c4d8}=_0x68d5e7['plugins']['get']('CommentsUI');let _0x28e680,_0x3d30fc;this['_annotationViews']['has'](_0x21e9e0['id'])?(_0x3d30fc=this['_annotationViews']['get'](_0x21e9e0['id']),_0x28e680=_0x3d30fc['mainView']):(_0x28e680=new _0x3525e8(_0x68d5e7['locale'],_0x21e9e0,_0x40d3c3,{'disableComments':this['_disableComments'],'editorConfig':_0x36dcc1['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x36dcc1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x36dcc1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x36dcc1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x212d68(_0x36dcc1['get']('locale')),'CommentView':_0x36dcc1['get']('comments')['CommentView'],'CommentsListView':_0x3b9e97,'CommentThreadInputView':_0x21c4d8}),_0x28e680['acceptButton']['on']('execute',()=>{_0x68d5e7['editing']['view']['focus']();}),_0x28e680['discardButton']['on']('execute',()=>{_0x68d5e7['editing']['view']['focus']();}),_0x3d30fc=_0x23afb7['createAnnotationView'](this['editor']['locale'],_0x28e680),_0x3d30fc['bind']('isDirty')['to'](_0x28e680,'isDirty'),_0x3d30fc['bind']('length')['to'](_0x28e680),_0x3d30fc['bind']('type')['to'](_0x28e680,'type',_0x2bb080=>'suggestion-'+_0x2bb080),this['_annotationViews']['set'](_0x21e9e0['id'],_0x3d30fc));const _0x3f7b5d=_0x1af4d8['createCommentThreadController'](_0x21e9e0['commentThread'],_0x28e680),_0x592cf2=new oe(_0x68d5e7,_0x21e9e0,_0x28e680,_0x3f7b5d),_0x6a0cd3=_0x21e9e0['getAllAdjacentSuggestions']()['filter'](_0x48a7d5=>_0x48a7d5['isInContent']);_0x28e680['descriptionParts']=_0x68d5e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x6a0cd3),this['_suggestionToController']['set'](_0x21e9e0,_0x592cf2),this['_viewToController']['set'](_0x28e680,_0x592cf2);const _0x1bfe6b=_0x23afb7['createAnnotation']({'view':_0x3d30fc,'target':()=>{const _0x314172=[],_0x10d979=_0x21e9e0['getAllAdjacentSuggestions']()['filter'](_0x41814b=>_0x41814b['isInContent']);for(const _0x511bfd of _0x10d979)_0x314172['push'](..._0x511bfd['getMarkers']());return _0x4b736c(_0x68d5e7['editing'],_0x314172);},'type':()=>'suggestion-'+_0x592cf2['view']['type']});_0x1af4d8['_bindAnnotationToEditors'](_0x28e680,_0x1bfe6b),_0x23afb7['add'](_0x1bfe6b),_0x5f2ef1['registerAnnotation'](_0x1bfe6b);}['_destroyController'](_0x2f1c99){const _0xfec670=this['editor']['plugins']['get']('CommentsRepository'),_0x413130=this['editor']['plugins']['get']('Annotations'),_0x69cab0=this['_suggestionToController']['get'](_0x2f1c99),_0x2f5769=_0x69cab0['view'],_0x328026=_0x413130['getByInnerView'](_0x2f5769);_0xfec670['_unbindEditors'](_0x2f5769),_0x328026&&_0x413130['remove'](_0x328026),this['_suggestionToController']['delete'](_0x2f1c99),this['_viewToController']['delete'](_0x2f5769),_0x69cab0['destroy']();}['_updateController'](_0x3f28e2){if(!_0x3f28e2['isInContent']||!this['_suggestionToController']['has'](_0x3f28e2))return;const _0xbf4cd7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x550735=this['_suggestionToController']['get'](_0x3f28e2),_0x2a5730=_0x3f28e2['getAllAdjacentSuggestions']();_0x550735['view']['descriptionParts']=_0xbf4cd7['descriptionFactory']['getDescriptions'](_0x2a5730);}['destroy'](){for(const _0x3fe5d4 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3fe5d4);for(const _0x27cdde of this['_annotationViews']['values']())_0x27cdde['mainView']['destroy']();super['destroy']();}}function ae(_0x20b291){return'model'in _0x20b291;}class k extends _0x54db38{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0xc2fa8c){this['editor']['plugins']['get'](p)['adapter']=_0xc2fa8c;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x791030){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x791030);}['getSuggestions']({skipNotAttached:_0x5175f8=!0x1,toJSON:_0x1cd885=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5175f8,'toJSON':_0x1cd885});}['getSuggestion'](_0x47752e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x47752e);}}const T=['Pagination'];class P extends _0x54db38{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x1bb80e=this['editor'];if(_0x1bb80e['config']['define']('trackChangesData.editorCreator',_0x1e4ec9=>{const _0x1b0492=_0x1bb80e['model']['document']['getRootNames']()['reduce']((_0x4cafd9,_0x3cd1f1)=>(_0x4cafd9[_0x3cd1f1]='',_0x4cafd9),{});return _0x1bb80e['constructor']['create'](_0x1b0492,_0x1e4ec9);}),'function'!=typeof _0x1bb80e['config']['get']('trackChangesData')['editorCreator'])throw new _0x50d316('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4659e6){return N(this['editor'],!0x0,_0x4659e6);}['getDataWithDiscardedSuggestions'](_0x99ba1c){return N(this['editor'],!0x1,_0x99ba1c);}}class D extends _0x54db38{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x3560e4){super(_0x3560e4),this['result']='end';}['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 v(_0x3b0187){return void 0x0!==_0x3b0187['getRootsAttributes'];}async function N(_0x3c2a56,_0x1d44e5,_0x325eb5){const _0x341e1b=_0x581139(_0x3c2a56,T);_0x341e1b['plugins']['push'](p,D),_0x341e1b['rootsAttributes']=v(_0x3c2a56)?_0x3c2a56['getRootsAttributes']():void 0x0;const _0x28109f=document['createDocumentFragment'](),_0x3a65ba=_0x3c2a56['config']['get']('trackChangesData')['editorCreator'],_0x190269=await _0x3a65ba(_0x341e1b,()=>function(_0x2e4b20){const _0x5b18be=document['createElement']('div');return _0x2e4b20['appendChild'](_0x5b18be),_0x5b18be;}(_0x28109f));!function(_0x5b1f15,_0x28e5d5){const _0x841bab=_0x5b1f15['model']['document']['getRootNames']()['reduce']((_0x297755,_0x108bb8)=>(_0x297755[_0x108bb8]=_0x5b1f15['data']['get']({'rootName':_0x108bb8}),_0x297755),{}),_0x33494c=_0x5b1f15['plugins']['get']('Users')['users']['map'](_0x107bd8=>({'id':_0x107bd8['id'],'name':_0x107bd8['name']})),_0x171539=_0x5b1f15['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x6b7ef6=_0x5b1f15['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x26a123=_0x28e5d5['plugins']['get']('Users'),_0x190cbc=_0x28e5d5['plugins']['get']('TrackChangesEditing'),_0x58dc89=_0x28e5d5['plugins']['get']('CommentsRepository');for(const _0x3a6808 of _0x33494c)_0x26a123['getUser'](_0x3a6808['id'])||_0x26a123['addUser'](_0x3a6808);_0x26a123['me']||_0x26a123['useAnonymousUser']();for(const _0x21faa6 of _0x6b7ef6)_0x58dc89['addCommentThread'](_0x21faa6);for(const _0x656a45 of _0x171539)_0x190cbc['addSuggestionData'](_0x656a45);_0x28e5d5['data']['set'](_0x841bab);}(_0x3c2a56,_0x190269),_0x190269['execute'](_0x1d44e5?'acceptAllSuggestions':'discardAllSuggestions');const _0x51ffff=v(_0x190269)?_0x190269['getFullData'](_0x325eb5):_0x190269['data']['get'](_0x325eb5);return await _0x190269['destroy'](),_0x51ffff;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|