@ckeditor/ckeditor5-track-changes 42.0.0-alpha.1 → 42.0.0-alpha.3
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
|
-
_0x232700(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4c90c1,_0xafa779){super(),this['id']=_0xafa779['id'],this['type']=_0xafa779['type'],this['subType']=_0xafa779['subType']||null,this['author']=_0xafa779['author'],this['creator']=_0xafa779['creator']||_0xafa779['author'],this['isExternal']=Boolean(_0xafa779['attributes']&&_0xafa779['attributes']['@external']),this['data']=null,this['_model']=_0x4c90c1,this['_onAccept']=_0xafa779['onAccept'],this['_onDiscard']=_0xafa779['onDiscard'],this['_onAttributesChange']=_0xafa779['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xafa779['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 _0xc9e27a=this;for(;_0xc9e27a['previous'];)_0xc9e27a=_0xc9e27a['previous'];return _0xc9e27a;}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'](_0xfec9e0){this['_markerNames']['add'](_0xfec9e0);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4b4a3f=>this['_model']['markers']['get'](_0x4b4a3f))['filter'](_0x12e785=>_0x12e785);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x178934=>{for(const _0x5b01d4 of this['getMarkers']())_0x178934['removeMarker'](_0x5b01d4);}),this['_markerNames']['clear']();}['removeMarker'](_0x8d11f9){this['_model']['change'](_0x316760=>{_0x316760['removeMarker'](_0x8d11f9);}),this['_markerNames']['delete'](_0x8d11f9);}['addRange'](_0x49ab5d){const _0x4b2684='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4b2684),this['_model']['change'](_0x259bfc=>{_0x259bfc['addMarker'](_0x4b2684,{'range':_0x49ab5d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x22ed75){for(const _0x31677d of this['getRanges']())if(_0x31677d['isIntersecting'](_0x22ed75))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5271ea=>_0x5271ea['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2a9aa3,_0x3529cb)=>[..._0x2a9aa3,..._0x3529cb['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5b5f5e=this['getRanges']();if(0x1!=_0x5b5f5e['length'])return null;const _0x3b2e7d=_0x5b5f5e[0x0],_0x7e52ff=_0x3b2e7d['start']['nodeAfter'],_0x1dc28e=_0x3b2e7d['end']['nodeBefore'];return _0x7e52ff instanceof _0x58d95c?_0x7e52ff!=_0x1dc28e?null:_0x7e52ff: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 _0x584d0e=[];let _0x4c1567=this['head'];for(;_0x4c1567;)_0x584d0e['push'](_0x4c1567),_0x4c1567=_0x4c1567['next'];return _0x584d0e;}['setAttribute'](_0x3fa960,_0x165b34){const _0x1e3687=_0x395dfa(this['attributes']);_0x535f19(_0x1e3687,_0x3fa960,_0x165b34),_0x2cc470(_0x1e3687,this['attributes'])||(this['attributes']=_0x1e3687,this['_onAttributesChange'](_0x1e3687));}['removeAttribute'](_0x21dec2){const _0x5c02ab=_0x395dfa(this['attributes']);_0x249c9b(_0x5c02ab,_0x21dec2),_0x2cc470(_0x5c02ab,this['attributes'])||(this['attributes']=_0x5c02ab,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 _0x7a56b4()['substr'](0x1,0x5);}}function o(_0x321a33,_0x1dda2a,_0x1197b8){const t=_0x321a33['t'];switch(_0x1dda2a){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',_0x1197b8);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1197b8);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1197b8);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1197b8);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1197b8);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',_0x1197b8);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1197b8);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',_0x1197b8);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1197b8);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1197b8);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1197b8);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1197b8);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1197b8);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1197b8);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1197b8);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1197b8);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1197b8);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1197b8);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1197b8);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1197b8);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1197b8);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1197b8);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1197b8);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'},_0x1197b8);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1197b8);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1197b8);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1197b8);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1197b8);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1197b8);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'},_0x1197b8);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1197b8);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1197b8);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1197b8);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1197b8);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'},_0x1197b8);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1197b8);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'},_0x1197b8);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'},_0x1197b8);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1197b8);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'},_0x1197b8);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1197b8);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'},_0x1197b8);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1197b8);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1197b8);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'},_0x1197b8);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'},_0x1197b8);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 _0x1dda2a;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5ec28f,_0x27a7ab){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5ec28f,this['_locale']=_0x27a7ab;}['getDescriptions'](_0x39b3aa){const _0x514100=[],_0x182f08=new Set(),_0x5da580=new Set();for(let _0x1303ed=0x0;_0x1303ed<_0x39b3aa['length'];_0x1303ed++){const _0x1f7139=_0x39b3aa[_0x1303ed];if(!_0x1f7139['isInContent'])continue;const _0xb31ae2=this['_handleCustomCallbackDescription'](_0x1f7139);if(_0xb31ae2){if(null!=_0x1f7139['subType']){if(_0x182f08['has'](_0x1f7139['subType']))continue;_0x182f08['add'](_0x1f7139['subType']);}_0x514100['push'](_0xb31ae2);}else{if('attribute'!=_0x1f7139['type'])'insertion'!=_0x1f7139['type']&&'deletion'!=_0x1f7139['type']||this['_handleInsertRemoveSuggestionDescription'](_0x514100,_0x1f7139,_0x39b3aa[_0x1303ed+0x1]);else{const _0x4b6e40=_0x1f7139['data']['key'];if(_0x5da580['has'](_0x4b6e40))continue;_0x5da580['add'](_0x1f7139['data']['key']),_0x4b6e40==m?this['_handleRenameSuggestionDescription'](_0x514100,_0x1f7139):this['_handleAttributeSuggestionDescription'](_0x514100,_0x1f7139);}}}return this['_resolveDescriptionItems'](_0x514100);}['registerDescriptionCallback'](_0x525fa8){this['_customCallbacks']['push'](_0x525fa8);}['registerElementLabel'](_0x43be88,_0x160a11,_0x4352fd=_0x487cda['normal']){'function'==typeof _0x43be88?_0x397cfa(this['_itemLabelsCallbacks'],{'matchingCallback':_0x43be88,'label':_0x160a11,'priority':_0x4352fd}):this['_itemLabels']['set'](_0x43be88,_0x160a11);}['registerAttributeLabel'](_0x316884,_0x3619de){this['_attributeLabels']['set'](_0x316884,_0x3619de);}['getItemLabel'](_0x3ad64f,_0x32b07c=0x1){let _0x451b6a;for(const _0x52345a of this['_itemLabelsCallbacks'])if(_0x52345a['matchingCallback'](_0x3ad64f)){_0x451b6a=_0x52345a['label'];break;}return _0x451b6a||(_0x451b6a=this['_itemLabels']['get'](_0x3ad64f['name'])),_0x451b6a?_0x451b6a(_0x32b07c):0x1!==_0x32b07c?_0x32b07c+'\x20'+_0x3ad64f['name']+'s':''+_0x3ad64f['name'];}['_addDescriptionItems'](_0x1411cb,_0x371dd7){const _0x4754b5=_0x371dd7['getFirstRange']()['getWalker'](),_0x40a874='insertion'==_0x371dd7['type']?'add':'remove';for(const _0x2524fd of _0x4754b5){const _0x15f672=_0x2524fd['item'],_0x180e27=_0x1411cb[_0x1411cb['length']-0x1];if(_0x15f672['is']('$textProxy'))_0x180e27&&_0x180e27['type']['indexOf']('Container')>-0x1&&_0x1411cb['pop'](),_0x180e27&&'text'==_0x180e27['type']?_0x180e27[_0x40a874]+=_0x15f672['data']:_0x1411cb['push']({'type':'text','add':'add'==_0x40a874?_0x15f672['data']:'','remove':'remove'==_0x40a874?_0x15f672['data']:''});else{if(this['_schema']['isObject'](_0x15f672)){const _0x4be964=_0x15f672;if(_0x180e27&&_0x180e27['type']['indexOf']('Container')>-0x1&&_0x1411cb['pop'](),'elementEnd'==_0x2524fd['type'])continue;_0x180e27&&_0x180e27['type']==_0x40a874+'Object'&&_0x180e27['element']['name']==_0x4be964['name']?_0x180e27['quantity']++:_0x1411cb['push']({'type':_0x40a874+'Object','element':_0x4be964,'quantity':0x1}),_0x4754b5['skip'](_0xc62db3=>!('elementEnd'==_0xc62db3['type']&&_0xc62db3['item']==_0x15f672));}else{if(this['_schema']['checkChild'](_0x15f672,'$text')||_0x15f672['is']('element','softBreak')){const _0x259188=_0x15f672;if('add'==_0x40a874&&'elementStart'==_0x2524fd['type']||'remove'==_0x40a874&&'elementEnd'==_0x2524fd['type'])continue;if(_0x180e27&&-0x1==_0x180e27['type']['indexOf']('Container')){'text'==_0x180e27['type']&&(_0x180e27[_0x40a874]+='\x0a');continue;}let _0x595156;if(_0x595156='add'==_0x40a874?_0x259188['nextSibling']&&!this['_schema']['isObject'](_0x259188['nextSibling'])?_0x259188['nextSibling']:null:_0x259188['previousSibling']&&!this['_schema']['isObject'](_0x259188['previousSibling'])?_0x259188['previousSibling']:null,_0x259188['isEmpty']||_0x595156&&_0x595156['isEmpty']){const _0x4895a5=_0x595156&&_0x595156['isEmpty']?_0x595156:_0x259188;_0x180e27&&_0x180e27['type']==_0x40a874+'EmptyContainer'&&_0x180e27['element']['name']==_0x4895a5['name']?_0x180e27['quantity']++:_0x1411cb['push']({'type':_0x40a874+'EmptyContainer','element':_0x4895a5,'quantity':0x1});}else _0x1411cb['push']({'type':_0x40a874+'Container','element':_0x259188});}}}}}['_resolveDescriptionItems'](_0x1916da){const _0x408dc6=this['_locale'],_0x4f30d4=[],_0x163cc5=[],_0x4b75d6=[];for(const _0x2ddb40 of _0x1916da)switch(_0x2ddb40['type']){case'text':if(_0x2ddb40['add']=_0x2ddb40['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2ddb40['remove']=_0x2ddb40['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2ddb40['add']&&''!=_0x2ddb40['remove']){_0x4f30d4['push']({'type':'replace','content':o(_0x408dc6,'REPLACE_TEXT',['\x22'+_0x2ddb40['remove']+'\x22','\x22'+_0x2ddb40['add']+'\x22'])});continue;}if(null!=_0x2ddb40['add']['match'](/^ +$/)){_0x4f30d4['push']({'type':'insertion','content':o(_0x408dc6,'*Insert:*\x20%0',o(_0x408dc6,'ELEMENT_SPACE',_0x2ddb40['add']['length']))});continue;}if(null!=_0x2ddb40['remove']['match'](/^ +$/)){_0x4f30d4['push']({'type':'deletion','content':o(_0x408dc6,'*Remove:*\x20%0',o(_0x408dc6,'ELEMENT_SPACE',_0x2ddb40['remove']['length']))});continue;}if(''!=_0x2ddb40['add']){_0x4f30d4['push']({'type':'insertion','content':o(_0x408dc6,'*Insert:*\x20%0','\x22'+_0x2ddb40['add']+'\x22')});continue;}_0x4f30d4['push']({'type':'deletion','content':o(_0x408dc6,'*Remove:*\x20%0','\x22'+_0x2ddb40['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4f30d4['push']({'type':'insertion','content':o(_0x408dc6,'*Insert:*\x20%0',this['getItemLabel'](_0x2ddb40['element'],_0x2ddb40['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4f30d4['push']({'type':'deletion','content':o(_0x408dc6,'*Remove:*\x20%0',this['getItemLabel'](_0x2ddb40['element'],_0x2ddb40['quantity']))});continue;case'addContainer':_0x4f30d4['push']({'type':'insertion','content':o(_0x408dc6,'*Split:*\x20%0',this['getItemLabel'](_0x2ddb40['element'],_0x2ddb40['quantity']))});continue;case'removeContainer':_0x4f30d4['push']({'type':'deletion','content':o(_0x408dc6,'*Merge:*\x20%0',this['getItemLabel'](_0x2ddb40['element'],_0x2ddb40['quantity']))});continue;case'addFormat':_0x163cc5['push'](_0x2ddb40['key']);continue;case'removeFormat':_0x4b75d6['push'](_0x2ddb40['key']);continue;default:_0x4f30d4['push'](_0x2ddb40);}if(_0x163cc5['length']){const _0x48e4e8=_0x163cc5['map'](_0x5defc6=>this['_attributeLabels']['has'](_0x5defc6)?this['_attributeLabels']['get'](_0x5defc6):_0x5defc6)['join'](',\x20');_0x4f30d4['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x48e4e8)});}if(_0x4b75d6['length']){const _0x209397=_0x4b75d6['map'](_0x2ed825=>this['_attributeLabels']['has'](_0x2ed825)?this['_attributeLabels']['get'](_0x2ed825):_0x2ed825)['join'](',\x20');_0x4f30d4['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x209397)});}return _0x4f30d4;}['_handleCustomCallbackDescription'](_0x322be6){for(const _0x33a774 of this['_customCallbacks']){const _0x529eb6=_0x33a774(_0x322be6);if(_0x529eb6&&'type'in _0x529eb6)return _0x529eb6;}}['_handleAttributeSuggestionDescription'](_0x163635,_0x4c0c55){const _0x64e31d=_0x4c0c55['data'],_0x4a832a=void 0x0===_0x64e31d['newValue']?'removeFormat':'addFormat';_0x163635['push']({'type':_0x4a832a,'key':_0x64e31d['key']});}['_handleRenameSuggestionDescription'](_0x4f756a,_0x5271a3){_0x4f756a['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5271a3['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x39b9c4,_0x4482aa,_0x2339d1){if(this['_addDescriptionItems'](_0x39b9c4,_0x4482aa),_0x2339d1&&_0x2339d1['getFirstRange']()&&!_0x4482aa['getFirstRange']()['end']['isEqual'](_0x2339d1['getFirstRange']()['start'])){const _0x2535f5=_0x39b9c4[_0x39b9c4['length']-0x1],_0x486182='insertion'==_0x4482aa['type']?'add':'remove';_0x2535f5&&'text'==_0x2535f5['type']&&(_0x2535f5[_0x486182]+='\x0a');}}}class E extends _0x19addd{['afterInit'](){const _0x41a105=this['editor'],_0x1e1394=_0x41a105['plugins']['get']('TrackChangesEditing');_0x41a105['commands']['get']('showAIAssistant')&&_0x1e1394['enableCommand']('showAIAssistant');}}class V extends _0x19addd{['afterInit'](){const _0x3347d3=this['editor'],_0x51a577=_0x3347d3['locale'];if(!_0x3347d3['plugins']['has']('AlignmentEditing'))return;const _0x494754=_0x3347d3['plugins']['get']('TrackChangesEditing');_0x494754['enableDefaultAttributesIntegration']('alignment'),_0x494754['registerBlockAttribute']('alignment'),_0x494754['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x51a577,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x110533=this['editor'],_0x56c718=_0x110533['locale'];_0x110533['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4316cb=>{if('formatBlock'!=_0x4316cb['type'])return;const {data:_0x212b3e}=_0x4316cb;if(_0x212b3e&&'alignment'==_0x212b3e['commandName']){const _0x438cfa=_0x212b3e['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x56c718,'*Format:*\x20%0',function(_0x843345){switch(_0x843345){case'left':return o(_0x56c718,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x56c718,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x56c718,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x56c718,'FORMAT_JUSTIFY_TEXT');}}(_0x438cfa))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x19addd{['afterInit'](){const _0x1f188c=this['editor'],_0x2d8056=_0x1f188c['plugins']['get']('TrackChangesEditing'),_0x2785b2=_0x1f188c['locale'];for(const _0x4a8cb1 of ti){if(!_0x1f188c['plugins']['has'](_0x4a8cb1))continue;const _0x237670=_0x4a8cb1['slice'](0x0,-0x7)['toLowerCase'](),_0x14729e='FORMAT_'+_0x237670['toUpperCase']();_0x2d8056['enableDefaultAttributesIntegration'](_0x237670),_0x2d8056['registerInlineAttribute'](_0x237670),_0x2d8056['descriptionFactory']['registerAttributeLabel'](_0x237670,o(_0x2785b2,_0x14729e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cc645=this['editor'],_0x5bbe34=_0x3cc645['locale'],_0x59c23f=_0x3cc645['plugins']['get']('TrackChangesEditing');function _0x2bbb54(_0x16cea1,_0x254450){_0x59c23f['descriptionFactory']['registerDescriptionCallback'](_0x28e463=>{if('formatInline'!=_0x28e463['type'])return;const {data:_0xb65f27}=_0x28e463;return _0xb65f27&&_0xb65f27['commandName']===_0x16cea1?_0xb65f27['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5bbe34,'*Format:*\x20%0',_0x254450)}:{'type':'format','content':o(_0x5bbe34,'*Remove\x20format:*\x20%0',_0x254450)}:void 0x0;});}_0x2bbb54('bold',o(_0x5bbe34,'FORMAT_BOLD')),_0x2bbb54('italic',o(_0x5bbe34,'FORMAT_ITALIC')),_0x2bbb54('underline',o(_0x5bbe34,'FORMAT_UNDERLINE')),_0x2bbb54('code',o(_0x5bbe34,'FORMAT_CODE')),_0x2bbb54('strikethrough',o(_0x5bbe34,'FORMAT_STRIKETHROUGH')),_0x2bbb54('subscript',o(_0x5bbe34,'FORMAT_SUBSCRIPT')),_0x2bbb54('superscript',o(_0x5bbe34,'FORMAT_SUPERSCRIPT'));}}class O extends _0x19addd{['afterInit'](){const _0x4d3812=this['editor'],_0x3eb837=_0x4d3812['locale'];if(!_0x4d3812['plugins']['has']('BlockQuoteEditing'))return;const _0x55626d=_0x4d3812['plugins']['get']('TrackChangesEditing'),_0x81f1f1=this['editor']['commands']['get']('blockQuote');_0x55626d['enableCommand']('blockQuote',(_0x2cd85a,_0x1e5f9d={})=>{const _0x2b5071=this['editor']['model']['document']['selection'],_0x3bcaa6=_0x1e5f9d&&void 0x0!==_0x1e5f9d['forceValue']?_0x1e5f9d['forceValue']:!_0x81f1f1['value'];let _0x405b39=[];if(_0x3bcaa6){const _0x190a14=Array['from'](_0x2b5071['getSelectedBlocks']())['filter'](_0xf07e3=>oo(_0xf07e3)||function(_0x2af9fa,_0x1b3ad9){const _0x90b0d5=_0x1b3ad9['checkChild'](_0x2af9fa['parent'],'blockQuote'),_0x4edf3d=_0x1b3ad9['checkChild'](['$root','blockQuote'],_0x2af9fa);return _0x90b0d5&&_0x4edf3d;}(_0xf07e3,this['editor']['model']['schema']));_0x405b39=to(_0x190a14,_0x4d3812['model']);}else{const _0x42c54b=Array['from'](_0x2b5071['getSelectedBlocks']())['filter'](_0x49994a=>oo(_0x49994a));_0x405b39=to(_0x42c54b,_0x4d3812['model']);}_0x4d3812['model']['change'](()=>{for(const _0x59f17e of _0x405b39)_0x55626d['markBlockFormat'](_0x59f17e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3bcaa6}]});});}),_0x55626d['descriptionFactory']['registerDescriptionCallback'](_0x8883ec=>{const {data:_0x5c190e}=_0x8883ec;if(_0x5c190e&&'blockQuote'==_0x5c190e['commandName']){const _0x44c925=o(_0x3eb837,'ELEMENT_BLOCK_QUOTE');return _0x5c190e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3eb837,'*Set\x20format:*\x20%0',_0x44c925)}:{'type':'format','content':o(_0x3eb837,'*Remove\x20format:*\x20%0',_0x44c925)};}});}}function oo(_0x5ca0f3){return'blockQuote'==_0x5ca0f3['parent']['name'];}class G extends _0x19addd{['afterInit'](){const _0xbef482=this['editor'];_0xbef482['plugins']['has']('CaseChange')&&(_0xbef482['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xbef482['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xbef482['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x19addd{['afterInit'](){const _0x4f1327=this['editor'];_0x4f1327['commands']['get']('ckbox')&&_0x4f1327['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x19addd{['afterInit'](){const _0x413763=this['editor'];if(!_0x413763['plugins']['has']('CodeBlock'))return;const _0x3a3988=_0x413763['plugins']['get']('TrackChangesEditing'),_0x5effca=_0x413763['locale'],_0x29350f=_0x413763['config']['get']('codeBlock')['languages'],_0x1e8085=_0x413763['commands']['get']('codeBlock');_0x3a3988['enableCommand']('indentCodeBlock'),_0x3a3988['enableCommand']('outdentCodeBlock'),_0x3a3988['enableCommand']('codeBlock',(_0x51e0ef,_0x59b753={})=>{const _0x29b03c=_0x413763['model'],_0x227279=_0x413763['model']['document']['selection'],_0x44feaa=_0x59b753&&void 0x0!==_0x59b753['forceValue']?_0x59b753['forceValue']:!_0x1e8085['value'];let _0x32699b;_0x59b753['language']||(_0x59b753['language']=_0x29350f[0x0]['language']),_0x32699b=_0x44feaa?Array['from'](_0x227279['getSelectedBlocks']())['filter'](_0x93be34=>eo(_0x93be34)||function(_0x5a317a,_0x4d617e){if(_0x5a317a['is']('rootElement')||_0x4d617e['isLimit'](_0x5a317a))return!0x1;return _0x4d617e['checkChild'](_0x5a317a['parent'],'codeBlock');}(_0x93be34,_0x29b03c['schema'])):Array['from'](_0x227279['getSelectedBlocks']())['filter'](_0x12fe1e=>eo(_0x12fe1e));const _0x292095=to(_0x32699b,_0x29b03c);_0x29b03c['change'](()=>{for(const _0x3b03f7 of _0x292095)_0x3a3988['markBlockFormat'](_0x3b03f7,{'commandName':'codeBlock','commandParams':[{..._0x59b753,'forceValue':_0x44feaa}],'formatGroupId':'blockName'});});}),(_0x3a3988['descriptionFactory']['registerElementLabel']('codeBlock',_0x435760=>o(_0x5effca,'ELEMENT_CODE_BLOCK',_0x435760)),_0x3a3988['descriptionFactory']['registerDescriptionCallback'](_0x5e5c8c=>{if('formatBlock'!=_0x5e5c8c['type'])return;const _0x218edb=_0x5effca['t'],{data:_0x4f77d0}=_0x5e5c8c;if(!_0x4f77d0||'codeBlock'!=_0x4f77d0['commandName'])return;const _0x10d936=_0x4f77d0['commandParams'][0x0]['language'],_0x37cf88=_0x218edb(_0x29350f['find'](_0x1d21f1=>_0x1d21f1['language']===_0x10d936)['label'])['toLowerCase']();return _0x4f77d0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5effca,'*Set\x20format:*\x20%0',o(_0x5effca,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x37cf88+')')}:{'type':'format','content':o(_0x5effca,'*Remove\x20format:*\x20%0',o(_0x5effca,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x150e4e){return'codeBlock'==_0x150e4e['name'];}class H extends _0x19addd{['afterInit'](){const _0x222218=this['editor'];if(!_0x222218['plugins']['has']('CommentsEditing'))return;_0x222218['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x16e9dd,_0x36ebcc,_0x2af4a0){const _0x18b28c=[];for(const _0x12511a of _0x36ebcc['getItems']())_0x12511a['hasAttribute'](_0x16e9dd)&&_0x18b28c['push'](_0x2af4a0['createRangeOn'](_0x12511a));return _0x18b28c;}function _e(_0x19c3a8,_0x94a146,{showActiveMarker:_0x27d3b9=!0x0}={}){const _0x18d2e0=_0x19c3a8['plugins']['get']('TrackChangesEditing');return(_0x377cbb,_0x524242,_0x4ba5ac)=>{if(!_0x4ba5ac['consumable']['test'](_0x524242['markerRange'],_0x377cbb['name']))return;const _0x4264de=_0x524242['markerRange']['getWalker'](),_0x441f8a=_0x524242['markerRange']['start'],_0x540091=_0x19c3a8['model']['schema'];let _0x3770c6=null,_0x48623b=null,_0x475478=!0x1,_0x5c18e8=!0x1;for(const _0x40ac46 of _0x4264de){const _0x4a4cc2=_0x40ac46['item'];_0x475478=_0x475478||_0x540091['isContent'](_0x4a4cc2);const _0x11fb7b=_0x4ba5ac['mapper']['toViewElement'](_0x4a4cc2);if(_0x11fb7b&&_0x11fb7b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x40ac46['type']&&(_0x540091['isBlock'](_0x4a4cc2)&&!_0x540091['isLimit'](_0x4a4cc2)&&(_0x4a4cc2['nextSibling']||_0x441f8a['isAtEnd']?_0x3770c6&&_0x3770c6['parent']==_0x4a4cc2||(_0x3770c6=_0x4a4cc2,_0x635634(_0x40ac46['previousPosition']),_0x5c18e8=!0x0):_0x48623b=_0x48623b||_0x40ac46['previousPosition']));}function _0x635634(_0x454700){const _0x53b03a=_0x4ba5ac['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x94a146}),_0x253b16=_0x4ba5ac['mapper']['toViewPosition'](_0x454700);_0x27d3b9&&_0x18d2e0['activeMarkers']['includes'](_0x524242['markerName'])&&_0x4ba5ac['writer']['addClass']('ck-suggestion-marker--active',_0x53b03a),_0x4ba5ac['writer']['insert'](_0x253b16,_0x53b03a),_0x4ba5ac['mapper']['bindElementToMarker'](_0x53b03a,_0x524242['markerName']);}_0x475478||_0x5c18e8||!_0x48623b||_0x635634(_0x48623b);};}class q extends _0x19addd{static get['requires'](){return[_0x1ecc26];}['init'](){const _0x1aea59=this['editor'],_0x27ea50=_0x1aea59['plugins']['get']('TrackChangesEditing');_0x27ea50['enableCommand']('delete');const _0x32fe10=_0x1aea59['commands']['get']('deleteForward');_0x27ea50['enableCommand']('deleteForward',(_0x2bd419,_0x30d28e={})=>{const _0x5bd9ce=_0x1aea59['model']['createSelection'](_0x1aea59['model']['document']['selection']);_0x5bd9ce['isCollapsed']&&_0x1aea59['model']['modifySelection'](_0x5bd9ce,{'direction':'forward','unit':_0x30d28e['unit']});const _0x151f94=_0x5bd9ce['getFirstRange'](),_0x21c63b=_0x1e1f20['fromRange'](_0x151f94);let _0x4416bb;_0x2bd419(_0x30d28e),_0x4416bb='$graveyard'==_0x21c63b['root']['rootName']?_0x1aea59['model']['createRange'](_0x151f94['start']):_0x1aea59['model']['createRange'](_0x21c63b['start'],_0x21c63b['end']),_0x21c63b['detach'](),_0x1aea59['model']['enqueueChange'](_0x32fe10['buffer']['batch'],_0x3a8010=>{_0x32fe10['buffer']['lock'](),_0x3a8010['setSelection'](_0x3a8010['createRange'](_0x4416bb['end'])),_0x32fe10['buffer']['unlock']();});}),_0x1aea59['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x1aea59,'merge'),{'priority':'high'}),_0x1aea59['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4aae2,_0x11376b,_0x11c15b)=>{_0x11c15b['options']['showSuggestionHighlights']&&_e(_0x1aea59,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4aae2,_0x11376b,_0x11c15b);},{'priority':'high'}),_0x1aea59['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3d30a6,_0x181060,_0x21d0e1)=>{const _0x463a20=_0x21d0e1['mapper']['markerNameToElements'](_0x181060['markerName']);if(_0x463a20){for(const _0x4e523b of _0x463a20)_0x4e523b['is']('uiElement')&&(_0x21d0e1['mapper']['unbindElementFromMarkerName'](_0x4e523b,_0x181060['markerName']),_0x21d0e1['writer']['remove'](_0x4e523b));}},{'priority':'high'});}}class z extends _0x19addd{['afterInit'](){const _0x17eb83=this['editor'];if(!_0x17eb83['plugins']['has']('ListEditing'))return;const _0x43e6f4=_0x17eb83['locale'],_0x2fb8f4=_0x17eb83['plugins']['get']('TrackChangesEditing'),_0x2e3abd=_0x17eb83['plugins']['has']('TodoListEditing'),_0x2ef784=!!_0x17eb83['config']['get']('list.multiBlock');function _0x397217(_0x16515e){return{'type':'format','content':''+o(_0x43e6f4,'*Set\x20format:*\x20%0',_0x16515e)};}function _0x437e8c(_0x5e8ec7){return{'type':'format','content':''+o(_0x43e6f4,'*Remove\x20format:*\x20%0',_0x5e8ec7)};}_0x2fb8f4['enableDefaultAttributesIntegration']('numberedList'),_0x2fb8f4['enableDefaultAttributesIntegration']('bulletedList'),_0x2fb8f4['enableDefaultAttributesIntegration']('customNumberedList'),_0x2fb8f4['enableDefaultAttributesIntegration']('customBulletedList'),_0x2fb8f4['enableDefaultAttributesIntegration']('indentList'),_0x2fb8f4['enableDefaultAttributesIntegration']('outdentList'),_0x2fb8f4['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2fb8f4['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2fb8f4['registerBlockAttribute']('listItemId'),_0x2fb8f4['registerBlockAttribute']('listType'),_0x2fb8f4['registerBlockAttribute']('listIndent'),_0x2ef784&&(_0x2fb8f4['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2fb8f4['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2e3abd&&(_0x2fb8f4['enableDefaultAttributesIntegration']('todoList'),_0x2fb8f4['enableDefaultAttributesIntegration']('checkTodoList'),_0x2fb8f4['registerBlockAttribute']('todoListChecked'),_0x2fb8f4['descriptionFactory']['registerDescriptionCallback'](_0x175298=>{const {data:_0x2ba6e4}=_0x175298;if(_0x2ba6e4&&'todoListChecked'==_0x2ba6e4['key'])return{'type':'format','content':_0x2ba6e4['newValue']?o(_0x43e6f4,'*Check\x20item*'):o(_0x43e6f4,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x34a65e=>{if(_0x34a65e['batch']['isUndo'])return!0x1;let _0x329254=!0x1;const _0x6fe6a8=_0x2fb8f4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x14809d=>'todoListChecked'===_0x2fb8f4['_getAttributeKey'](_0x14809d));for(const _0x21d6f0 of _0x6fe6a8){'todo'!=_0x21d6f0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2fb8f4['_findSuggestions'](_0x21d6f0['getFirstRange'](),'attribute')['find'](_0xc49ef2=>'listType'===_0x2fb8f4['_getAttributeKey'](_0xc49ef2['suggestion']))||(_0x34a65e['removeMarker'](_0x21d6f0['getFirstMarker']()),_0x329254=!0x0));}return _0x329254;})),_0x2fb8f4['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x43e6f4,'FORMAT_INDENT'));const _0x599946={'type':'format','content':''};_0x2fb8f4['descriptionFactory']['registerDescriptionCallback'](_0x231d76=>{const {data:_0x4d54b9}=_0x231d76;if(!_0x4d54b9||'listType'!=_0x4d54b9['key'])return;let _0x210a6f=_0x231d76['head'];for(;_0x210a6f;){if(_0x210a6f['data']&&(('listStyle'==_0x210a6f['data']['key']||'listMarkerStyle'==_0x210a6f['data']['key'])&&(_0x210a6f['data']['newValue']&&'default'!=_0x210a6f['data']['newValue']||'default'!=_0x210a6f['data']['oldValue']&&!_0x4d54b9['newValue'])||!_0x2ef784&&_0x210a6f['data']['key']==m))return _0x599946;_0x210a6f=_0x210a6f['next'];}if(null==_0x4d54b9['newValue'])switch(_0x4d54b9['oldValue']){case'bulleted':return _0x437e8c(o(_0x43e6f4,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x437e8c(o(_0x43e6f4,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x437e8c(o(_0x43e6f4,'ELEMENT_TODO_LIST'));}switch(_0x4d54b9['newValue']){case'bulleted':return _0x397217(o(_0x43e6f4,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x397217(o(_0x43e6f4,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x397217(o(_0x43e6f4,'ELEMENT_TODO_LIST'));}}),_0x2fb8f4['descriptionFactory']['registerDescriptionCallback'](_0x1dd90b=>{const {data:_0x2177f3}=_0x1dd90b;if(_0x2177f3&&'listIndent'==_0x2177f3['key'])return null==_0x2177f3['newValue']||null==_0x2177f3['oldValue']&&0x0==_0x2177f3['newValue']?_0x599946:void 0x0;}),_0x2fb8f4['descriptionFactory']['registerDescriptionCallback'](_0x3fefe1=>{if('attribute'!=_0x3fefe1['type'])return;const {data:_0x3cf9c4}=_0x3fefe1;if(!_0x3cf9c4||'listItemId'!=_0x3cf9c4['key'])return;const _0x163b64=le(_0x3fefe1);return'newValue'==_0x163b64?{'type':'format','content':o(_0x43e6f4,'*Merge:*\x20list\x20item')}:'oldValue'==_0x163b64?{'type':'format','content':o(_0x43e6f4,'*Split:*\x20list\x20item')}:_0x599946;}),_0x17eb83['model']['document']['registerPostFixer'](_0x5b924f=>this['listItemIdFixer'](_0x5b924f)),_0x17eb83['model']['document']['registerPostFixer'](_0xa91fe6=>this['noTrackChangesFixer'](_0xa91fe6)),_0x17eb83['model']['document']['registerPostFixer'](_0x54fac9=>this['assureChains'](_0x54fac9)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xca9a39){if(_0xca9a39['batch']['isUndo']||!_0xca9a39['batch']['isLocal'])return!0x1;let _0x453bb1=!0x1;const _0x350eba=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a3f86=>_0x4a3f86['data']&&'listItemId'==_0x4a3f86['data']['key'])['filter'](_0x40a718=>_0x40a718['data']['newValue']&&_0x40a718['data']['oldValue']);for(const _0x5284c7 of _0x350eba)le(_0x5284c7)||(_0xca9a39['removeMarker'](_0x5284c7['getFirstMarker']()),_0x453bb1=!0x0);return _0x453bb1;}['noTrackChangesFixer'](_0x177fb2){if(_0x177fb2['batch']['isUndo']||!_0x177fb2['batch']['isLocal'])return!0x1;const _0x18ccf7=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x18ccf7['trackChangesCommand']['value'])return!0x1;let _0x452791=!0x1;const _0x1fd73f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3f4ec8=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x141f81=>'attribute'==_0x141f81['type'])['filter'](_0x2c8a55=>_0x1fd73f['includes'](_0x2c8a55['attributeKey']));if(0x0==_0x3f4ec8['length'])return _0x452791;for(const _0x3de7e2 of _0x3f4ec8){const _0x3bd40b=_0x18ccf7['_findSuggestions'](_0x3de7e2['range'],'attribute')['filter'](_0x341082=>!_0x341082['meta']['isNextTo'])['map'](_0x331247=>_0x331247['suggestion'])['filter'](_0x457ca7=>{const _0x4dea32=_0x18ccf7['_getAttributeKey'](_0x457ca7);return _0x1fd73f['includes'](_0x4dea32);});if(_0x3bd40b['length']){for(const _0x21140e of _0x3bd40b)_0x177fb2['removeMarker'](_0x21140e['getFirstMarker']());_0x452791=!0x0;}}return _0x452791;}['assureChains'](_0x4c9c53){if(_0x4c9c53['batch']['isUndo']||!_0x4c9c53['batch']['isLocal'])return!0x1;const _0x233b9e=this['editor']['plugins']['get']('TrackChangesEditing');let _0x17a8dd=!0x1;const _0x44876c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x57444f of _0x233b9e['getSuggestions']({'skipNotAttached':!0x0})){const _0x4c2a87=_0x233b9e['_findSuggestions'](_0x57444f['getFirstRange'](),'attribute')['map'](_0xf0c2b5=>_0xf0c2b5['suggestion'])['filter'](_0x2d2ae3=>_0x2d2ae3['data']&&_0x44876c['includes'](_0x2d2ae3['data']['key']));if(!_0x4c2a87['length'])continue;const _0x507ee3=_0x4c2a87[0x0]['head']['attributes']['groupId'];if(!_0x4c2a87['every'](_0x672e8d=>_0x672e8d['attributes']['groupId']===_0x507ee3)){for(const _0x156e25 of _0x4c2a87)_0x4b9069(_0x156e25,_0x507ee3)&&(_0x17a8dd=!0x0);}}return _0x17a8dd;function _0x473b08(_0x11ceda,_0x481475){for(const _0x35f490 of _0x233b9e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4bb6d9=>'attribute'==_0x4bb6d9['type']&&_0x4bb6d9['attributes']['groupId']==_0x11ceda))_0x35f490['setAttribute']('groupId',_0x481475);}function _0x4b9069(_0x121c86,_0x40e43e){let _0x1647a9=_0x121c86['head'],_0x1cfdec=!0x1;for(;_0x1647a9;)_0x1647a9['attributes']['groupId']!=_0x40e43e&&(_0x473b08(_0x1647a9['attributes']['groupId'],_0x40e43e),_0x1647a9['setAttribute']('groupId',_0x40e43e),_0x1cfdec=!0x0),_0x1647a9=_0x1647a9['next'];return _0x1cfdec;}}['_supportLegacySuggestions'](){const _0xa547db=this['editor'],_0x289f90=_0xa547db['locale'],_0x5a6c57=_0xa547db['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5a6c57['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x461a13,_0x5d9faa){const _0x4480f9=[];for(let _0x54a859 of _0x461a13)_0x54a859['start']['nodeAfter']===_0x54a859['end']['parent']&&(_0x54a859=_0xa547db['model']['createRange'](_0xa547db['model']['createPositionAt'](_0x54a859['start']['nodeAfter'],0x0))),_0x4480f9['push'](_0x54a859);_0xa547db['model']['change'](_0x3f173d=>{const _0x20e887=_0xa547db['model']['document']['selection'],_0x380ae1=Array['from'](_0x20e887['getRanges']())['map'](_0x72d0d2=>_0x1e1f20['fromRange'](_0x72d0d2));_0x3f173d['setSelection'](_0x4480f9),_0xa547db['commands']['get'](_0x5d9faa['commandName'])['refresh'](),_0x5d9faa['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xa547db['execute'](_0x5d9faa['commandName'],..._0x5d9faa['commandParams']),_0x3f173d['setSelection'](_0x380ae1);for(const _0x499033 of _0x380ae1)_0x499033['detach']();});}),_0x5a6c57['descriptionFactory']['registerElementLabel'](function(_0x407c24){const _0x415617=!_0xa547db['model']['schema']['isObject'](_0x407c24),_0x3be799=_0x407c24['previousSibling'],_0x52e2d8=_0x407c24['nextSibling'],_0x3caf99=_0x407c24['getAttribute']('listItemId'),_0x40d29a=!_0x3be799||_0x3be799['getAttribute']('listItemId')!==_0x3caf99,_0x174a28=!_0x52e2d8||_0x52e2d8['getAttribute']('listItemId')!==_0x3caf99;return _0x415617&&Boolean(_0x3caf99)&&_0x40d29a&&_0x174a28;},_0x26cb31=>o(_0x289f90,'ELEMENT_LIST_ITEM',_0x26cb31));}['_registerLegacyDescription'](){const _0x571a39=this['editor'],_0x1510f1=_0x571a39['locale'];function _0x58177a(_0xdfeb8f){const _0x4248a7=_0x571a39['commands']['get']('bulletedList')['value'],_0x2dbd9a=_0x571a39['commands']['get']('numberedList')['value'];return'numberedList'===_0xdfeb8f?_0x4248a7:_0x2dbd9a;}_0x571a39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x32673d){if('formatBlock'!=_0x32673d['type'])return;const {data:_0x41bd39}=_0x32673d;if(!_0x41bd39)return;let _0x482f15,_0x2728ed,_0x1a22d,_0x444936;switch(_0x41bd39['commandName']){case'bulletedList':_0x1a22d=_0x41bd39['commandParams'][0x0]['forceValue'],_0x444936=_0x58177a(_0x41bd39['commandName']),_0x482f15=_0x1a22d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x444936&&_0x571a39['config']['get']('list.multiBlock')||(_0x482f15='*Change\x20to:*\x20%0'),_0x2728ed={'type':'format','content':o(_0x1510f1,_0x482f15,o(_0x1510f1,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1a22d=_0x41bd39['commandParams'][0x0]['forceValue'],_0x444936=_0x58177a(_0x41bd39['commandName']),_0x482f15=_0x1a22d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x444936&&_0x571a39['config']['get']('list.multiBlock')||(_0x482f15='*Change\x20to:*\x20%0'),_0x2728ed={'type':'format','content':o(_0x1510f1,_0x482f15,o(_0x1510f1,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x482f15='*Indent:*\x20%0',_0x2728ed={'type':'format','content':o(_0x1510f1,_0x482f15,o(_0x1510f1,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x482f15=function(_0x14a453){const _0x55de3a=_0x14a453['getFirstRange']();let _0x16f56f=_0x55de3a['start']['nodeAfter'];for(;_0x16f56f&&_0x55de3a['containsItem'](_0x16f56f);){if(_0x16f56f['getAttribute']('listIndent')>0x0)return!0x1;_0x16f56f=_0x16f56f['nextSibling'];}return!0x0;}(_0x32673d)?o(_0x1510f1,'*Format:*\x20remove\x20from\x20%0',o(_0x1510f1,function(_0x2076af){return'ELEMENT_'+_0x2076af['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x32673d))):o(_0x1510f1,'*Outdent:*\x20%0',o(_0x1510f1,'ELEMENT_LIST_ITEM')),_0x2728ed={'type':'format','content':_0x482f15};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x41bd39['multipleBlocks']&&(_0x482f15='*Merge:*\x20%0',_0x2728ed={'type':'deletion','content':o(_0x1510f1,_0x482f15,o(_0x1510f1,'ELEMENT_LIST_ITEM'))});}return _0x2728ed;});}}function le(_0x5afd52){let _0x32aeee=_0x5afd52['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x32aeee;){const _0x2331a2=_0x32aeee['getAttribute']('listItemId');if(!_0x2331a2)return!0x1;if(_0x2331a2==_0x5afd52['data']['newValue'])return'newValue';if(_0x2331a2==_0x5afd52['data']['oldValue'])return'oldValue';_0x32aeee=_0x32aeee['previousSibling'];}return!0x1;}class ue extends _0x19addd{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1427fe=this['editor']['config']['get']('list.properties'),_0x348b21=this['editor']['plugins']['get']('TrackChangesEditing');_0x1427fe['styles']&&(_0x348b21['enableDefaultAttributesIntegration']('listStyle'),_0x348b21['registerBlockAttribute']('listStyle')),_0x1427fe['reversed']&&(_0x348b21['enableDefaultAttributesIntegration']('listReversed'),_0x348b21['registerBlockAttribute']('listReversed')),_0x1427fe['startIndex']&&(_0x348b21['enableDefaultAttributesIntegration']('listStart'),_0x348b21['registerBlockAttribute']('listStart'));const _0x280a02={'type':'format','content':''};_0x348b21['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x10e776=this['editor']['locale'];_0x348b21['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x10e776,'FORMAT_LIST_REVERSED')),_0x348b21['descriptionFactory']['registerDescriptionCallback'](_0x310b3b=>{const {data:_0xea054}=_0x310b3b;if(_0xea054&&'listReversed'==_0xea054['key'])return null==_0xea054['newValue']||0x0==_0xea054['newValue']&&null==_0xea054['oldValue']?_0x280a02:void 0x0;}),_0x348b21['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x10e776,'FORMAT_LIST_START')),_0x348b21['descriptionFactory']['registerDescriptionCallback'](_0x20169f=>{const {data:_0x20084b}=_0x20169f;if(_0x20084b&&'listStart'==_0x20084b['key'])return null==_0x20084b['newValue']||0x1==_0x20084b['newValue']&&null==_0x20084b['oldValue']?_0x280a02:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1e0150=>{if(_0x1e0150['batch']['isUndo'])return!0x1;let _0x792f97=!0x1;const _0x1ecbce=_0x348b21['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x31d09c=>{const _0x39c769=_0x348b21['_getAttributeKey'](_0x31d09c);return'listStart'==_0x39c769||'listReversed'==_0x39c769;});for(const _0x2edf42 of _0x1ecbce){const _0x585ef4=_0x2edf42['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x585ef4||'customNumbered'==_0x585ef4)continue;_0x348b21['_findSuggestions'](_0x2edf42['getFirstRange'](),'attribute')['find'](_0x4f126e=>'listType'==_0x348b21['_getAttributeKey'](_0x4f126e['suggestion']))||(_0x1e0150['removeMarker'](_0x2edf42['getFirstMarker']()),_0x792f97=!0x0);}return _0x792f97;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4563fc){const _0x5b8b01=this['editor']['locale'],{data:_0x3267f7}=_0x4563fc,_0x2ae15e={'type':'format','content':''};if(!_0x3267f7||'listStyle'!=_0x3267f7['key'])return;if(!_0x3267f7['oldValue'])return'default'==_0x3267f7['newValue']?_0x2ae15e:{'type':'format','content':''+o(_0x5b8b01,'*Set\x20format:*\x20%0',o(_0x5b8b01,this['_getTranslationKeyForListStyle'](_0x3267f7['newValue'])))};if(!_0x3267f7['newValue']){if('default'==_0x3267f7['oldValue'])return _0x2ae15e;let _0x1d611f=_0x4563fc['head'];for(;_0x1d611f;){if(_0x1d611f['data']&&'listType'==_0x1d611f['data']['key']&&_0x1d611f['data']['newValue'])return _0x2ae15e;_0x1d611f=_0x1d611f['next'];}return{'type':'format','content':''+o(_0x5b8b01,'*Remove\x20format:*\x20%0',o(_0x5b8b01,this['_getTranslationKeyForListStyle'](_0x3267f7['oldValue'])))};}if('default'!=_0x3267f7['newValue'])return{'type':'format','content':''+o(_0x5b8b01,'*Set\x20format:*\x20%0',o(_0x5b8b01,this['_getTranslationKeyForListStyle'](_0x3267f7['newValue'])))};let _0x7e0a1c=_0x4563fc['head'];for(;_0x7e0a1c;){if(_0x7e0a1c['data']&&'listType'==_0x7e0a1c['data']['key']&&_0x7e0a1c['data']['newValue']&&_0x7e0a1c['data']['oldValue'])return _0x2ae15e;_0x7e0a1c=_0x7e0a1c['next'];}return{'type':'format','content':o(_0x5b8b01,'*Set\x20format:*\x20%0',o(_0x5b8b01,'ELEMENT_'+_0x4563fc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1ba095=this['editor'],_0x173649=_0x1ba095['locale'];_0x1ba095['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x277651=>{if('formatBlock'!=_0x277651['type'])return;const {data:_0x7df5c7}=_0x277651;if(!_0x7df5c7)return;let _0x75221f,_0x5ad702;switch(_0x7df5c7['commandName']){case'listStyle':_0x75221f='*Change\x20to:*\x20%0',_0x5ad702={'type':'format','content':o(_0x173649,_0x75221f,o(_0x173649,this['_getTranslationKeyForListStyle'](_0x7df5c7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x75221f=_0x7df5c7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5ad702={'type':'format','content':o(_0x173649,_0x75221f)};break;case'listStart':_0x75221f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5ad702={'type':'format','content':o(_0x173649,_0x75221f,_0x7df5c7['commandParams'][0x0]['startIndex'])};}return _0x5ad702;});}['_getTranslationKeyForListStyle'](_0x2f163a){return'ELEMENT_'+function(_0x3155c8){if(pe['includes'](_0x3155c8))return'bulleted';if(ye['includes'](_0x3155c8))return'numbered';return null;}(_0x2f163a)['toUpperCase']()+'_LIST_'+_0x2f163a['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x19addd{static get['requires'](){return[_0x5f3171];}['init'](){const _0xd237a0=this['editor'],_0x402696=_0xd237a0['plugins']['get']('TrackChangesEditing'),_0x5a65c5=_0xd237a0['commands']['get']('enter');_0x402696['enableCommand']('enter',()=>{_0xd237a0['model']['change'](_0x3ea34c=>{const _0x53b8e6=_0xd237a0['model']['document']['selection'],_0x482595=_0x53b8e6['getFirstPosition'](),_0x384883=_0x1e1f20['fromRange'](_0x53b8e6['getFirstRange']());if(_0x5a65c5['enterBlock'](_0x3ea34c)){const _0x4bd9cb=_0xd237a0['model']['createPositionAt'](_0x482595['parent']['nextSibling'],0x0),_0xf69424=_0x3ea34c['createRange'](_0x482595,_0x4bd9cb);_0x402696['markInsertion'](_0xf69424);}else _0x3ea34c['setSelection'](_0x3ea34c['createRange'](_0x384883['end']));_0x384883['detach'](),_0x5a65c5['fire']('afterExecute',{'writer':_0x3ea34c});});}),_0xd237a0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0xd237a0,'split'),{'priority':'high'}),_0xd237a0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x75ca9f,_0x2d4d8a,_0x58144f)=>{const _0x47d725=_0x58144f['mapper']['markerNameToElements'](_0x2d4d8a['markerName']);if(_0x47d725){for(const _0x16fc92 of _0x47d725)_0x16fc92['hasClass']('ck-suggestion-marker-split')&&(_0x58144f['mapper']['unbindElementFromMarkerName'](_0x16fc92,_0x2d4d8a['markerName']),_0x58144f['writer']['remove'](_0x16fc92));}},{'priority':'high'}),_0xd237a0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x16f69e,_0x57b45e,_0x4de172)=>{_0x4de172['options']['showSuggestionHighlights']&&_e(_0xd237a0,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x16f69e,_0x57b45e,_0x4de172);},{'priority':'high'});}}class J extends _0x19addd{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x15a0e2=this['editor']['plugins']['get']('TrackChangesEditing');_0x15a0e2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x15a0e2['enableCommand']('findNext'),_0x15a0e2['enableCommand']('findPrevious'),_0x15a0e2['enableCommand']('replace'),_0x15a0e2['enableCommand']('replaceAll');}['handleFindCommand'](_0x13a4f9,_0x5f3033,_0x2f5d5b={}){const _0x54f56c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x13a4f9(_0x14fd72=>('string'==typeof _0x5f3033?_0x54f56c['findByTextCallback'](_0x5f3033,_0x2f5d5b):_0x5f3033)(_0x14fd72)['filter'](_0x14986f=>!0x1===this['_isInDeletionRange'](_0x14986f,_0x14fd72['item'])),_0x2f5d5b);}['_isInDeletionRange'](_0x4aa6d4,_0x57aa00){const _0x28f3dd=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x57aa00,_0x4aa6d4['start']),this['editor']['model']['createPositionAt'](_0x57aa00,_0x4aa6d4['end']));for(const _0x3a7dbd of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x28f3dd['getIntersection'](_0x3a7dbd['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 _0x19addd{['afterInit'](){const _0x48a1f7=this['editor']['locale'],_0x18c651=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x58b53c,commandName:_0x48af42}of ro)this['editor']['plugins']['has'](_0x58b53c)&&(_0x18c651['enableDefaultAttributesIntegration'](_0x48af42),_0x18c651['registerInlineAttribute'](_0x48af42));_0x48a1f7['t'],_0x18c651['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x48a1f7,'FORMAT_FONT_SIZE')),_0x18c651['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x48a1f7,'FORMAT_FONT_FAMILY')),_0x18c651['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x48a1f7,'FORMAT_FONT_COLOR')),_0x18c651['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x48a1f7,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bd776=this['editor'],_0x477751=_0x4bd776['locale'];_0x4bd776['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1224e1=>{const _0x2fffbe=_0x477751['t'];if('formatInline'!=_0x1224e1['type'])return;const {data:_0xec55d2}=_0x1224e1;if(null!=_0xec55d2){if('fontSize'==_0xec55d2['commandName']){const _0x33c1b3=_0xec55d2['commandParams'][0x0]['value'];if(_0x33c1b3){const _0x1a548f=_0x2fffbe(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x22f59f=>_0x22f59f['model']==_0x33c1b3)['title'])['toLowerCase']();return{'type':'format','content':o(_0x477751,'*Set\x20font\x20size:*\x20%0',_0x1a548f)};}return{'type':'format','content':o(_0x477751,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xec55d2['commandName']){const _0x1198f4=_0xec55d2['commandParams'][0x0]['value'];return _0x1198f4?{'type':'format','content':o(_0x477751,'*Set\x20font\x20family:*\x20%0',_0x1198f4)}:{'type':'format','content':o(_0x477751,'*Reset\x20font\x20family*')};}if('fontColor'==_0xec55d2['commandName']){const _0x290eeb=_0xec55d2['commandParams'][0x0]['value'];if(_0x290eeb){const _0x2c7095=_0xd66374(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2e4460=>_0x2e4460['model']==_0x290eeb);let _0x23e929=_0x290eeb,_0x32d000='';return _0x2c7095&&(_0x23e929=_0x2c7095['label'],_0x32d000=_0x2fffbe(_0x23e929)['toLowerCase']()),{'type':'format','content':o(_0x477751,'*Set\x20font\x20color:*\x20%0',_0x32d000)['trim'](),'color':{'value':_0x290eeb,'title':_0x32d000||_0x23e929}};}return{'type':'format','content':o(_0x477751,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xec55d2['commandName']){const _0x223e88=_0xec55d2['commandParams'][0x0]['value'];if(_0x223e88){const _0x3bf88f=_0xd66374(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4d21a1=>_0x4d21a1['model']==_0x223e88);let _0x26b2bc=_0x223e88,_0x55adfa='';return _0x3bf88f&&(_0x26b2bc=_0x3bf88f['label'],_0x55adfa=_0x2fffbe(_0x26b2bc)['toLowerCase']()),{'type':'format','content':o(_0x477751,'*Set\x20font\x20background\x20color:*\x20%0',_0x55adfa)['trim'](),'color':{'value':_0x223e88,'title':_0x55adfa||_0x26b2bc}};}return{'type':'format','content':o(_0x477751,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x19addd{['afterInit'](){const _0x52b18f=this['editor'],_0x3fa1fb=_0x52b18f['plugins']['get']('TrackChangesEditing'),_0xc24f89=_0x52b18f['commands']['get']('copyFormat'),_0x3ccfbb=_0x52b18f['commands']['get']('pasteFormat');_0xc24f89&&_0x3ccfbb&&(_0x3fa1fb['enableDefaultAttributesIntegration']('pasteFormat'),_0x3fa1fb['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x403159=this['editor'],_0x2c957b=_0x403159['locale'];_0x403159['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x359446=>{if('formatBlock'!=_0x359446['type']&&'formatInline'!=_0x359446['type'])return;const {data:_0x3e52af}=_0x359446;if(_0x3e52af&&'pasteFormat'===_0x3e52af['commandName']){const _0x38b15c=[],_0x57f94c=_0x3e52af['commandParams'][0x0];for(const [_0x582666,_0x2c0770]of Object['entries'](_0x57f94c))_0x38b15c['push'](so(_0x403159,_0x582666,_0x2c0770));return _0x38b15c['length']?{'type':'format','content':o(_0x2c957b,'*Set\x20format\x20to:*\x20%0',_0x38b15c['join'](',\x20'))}:{'type':'format','content':o(_0x2c957b,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4af8fd,_0x421556,_0x215d47){const _0x1449bd=_0x4af8fd['locale']['t'],_0x544d15=_0x421556['split'](/(?=[A-Z])/)['join']('\x20'),_0x4777cc=_0x1449bd(_0x544d15['charAt'](0x0)['toUpperCase']()+_0x544d15['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x215d47)return _0x4777cc;if('fontColor'===_0x421556||'fontBackgroundColor'===_0x421556){const _0x11dcb5=_0xd66374(_0x4af8fd['config']['get']('fontColor.colors'))['find'](_0x926ec9=>_0x926ec9['model']==_0x215d47);return _0x4777cc+'\x20('+(_0x11dcb5?_0x1449bd(_0x11dcb5['label'])['toLowerCase']():_0x215d47)+')';}if('fontSize'===_0x421556&&isNaN(parseFloat(_0x215d47))){const _0x3d351a=_0x4af8fd['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4af8fd['config']['get']('fontSize.options'))['find'](_0x123ba7=>_0x123ba7['model']==_0x215d47);return _0x4777cc+'\x20('+(_0x3d351a?_0x1449bd(_0x3d351a['title'])['toLowerCase']():_0x215d47)+')';}return _0x4777cc+'\x20('+_0x215d47+')';}class Y extends _0x19addd{['_headingOptions'];['afterInit'](){const _0x318f69=this['editor'];if(!_0x318f69['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x318f69['config']['get']('heading.options');const _0x9867b0=_0x318f69['locale'],_0x457898=_0x318f69['plugins']['get']('TrackChangesEditing');_0x457898['enableDefaultAttributesIntegration']('heading');for(const _0x5b7e5d of this['_headingOptions'])'paragraph'!=_0x5b7e5d['model']&&_0x457898['descriptionFactory']['registerElementLabel'](_0x5b7e5d['model'],_0x79c3a2=>{const _0x129ac9=this['_getHeadingLevel'](_0x5b7e5d['model']);return null!==_0x129ac9?_0x15d3fc(_0x79c3a2,_0x129ac9):_0x4e6fba(_0x79c3a2,_0x5b7e5d['title']);});function _0x15d3fc(_0x3589d9,_0x3c43e3){return o(_0x9867b0,'ELEMENT_HEADING',[_0x3589d9,_0x3c43e3]);}function _0x4e6fba(_0x10e9cb,_0x434153){return o(_0x9867b0,'ELEMENT_HEADING_CUSTOM',[_0x10e9cb,_0x434153]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23502b=this['editor'],_0x3ab49f=_0x23502b['locale'];function _0xf43740(_0x1815b3,_0xf8a37d){return o(_0x3ab49f,'ELEMENT_HEADING_CUSTOM',[_0x1815b3,_0xf8a37d]);}_0x23502b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43cdd9=>{if('formatBlock'!=_0x43cdd9['type'])return;const {data:_0x885309}=_0x43cdd9;if(_0x885309&&'heading'==_0x885309['commandName']){const _0x552a97=_0x885309['commandParams'][0x0]['value'],_0x2f19cf=this['_getHeadingLevel'](_0x552a97);if(null!==_0x2f19cf)return{'type':'format','content':o(_0x3ab49f,'*Change\x20to:*\x20%0',(_0x595ebf=0x1,_0x1636db=_0x2f19cf,o(_0x3ab49f,'ELEMENT_HEADING',[_0x595ebf,_0x1636db])))};const _0x54b737=this['_headingOptions']['find'](_0x3ac5d1=>_0x3ac5d1['model']===_0x552a97)['title'];return{'type':'format','content':o(_0x3ab49f,'*Change\x20to:*\x20%0',_0xf43740(0x1,_0x54b737))};}var _0x595ebf,_0x1636db;});}['_getHeadingLevel'](_0x2f3e53){const _0x556cbf=_0x2f3e53['match'](/^heading(\d+)/);if(_0x556cbf)return _0x556cbf[0x1];const _0x208277=this['_headingOptions']?.['find'](_0x212142=>_0x212142['model']==_0x2f3e53);if(_0x208277&&_0x208277['view']){const _0x4feac0=_0x208277['view'],_0x58ad93=(_0x4feac0['name']??_0x4feac0)['match'](/^h(\d+)/);if(_0x58ad93)return _0x58ad93[0x1];}return null;}}class Z extends _0x19addd{['afterInit'](){const _0x4b66bc=this['editor'];if(!_0x4b66bc['plugins']['has']('HighlightEditing'))return;const _0x4b7752=_0x4b66bc['plugins']['get']('TrackChangesEditing'),_0x30abbc=_0x4b66bc['locale'];_0x4b7752['enableDefaultAttributesIntegration']('highlight'),_0x4b7752['registerInlineAttribute']('highlight'),_0x4b7752['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x30abbc,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x149cb4=this['editor'],_0x399ce7=_0x149cb4['locale'];_0x149cb4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x208128=>{if('formatInline'!=_0x208128['type'])return;const {data:_0x2898fa}=_0x208128;if(_0x2898fa&&'highlight'==_0x2898fa['commandName']){const _0x3b9356=_0x399ce7['t'],_0x36948f=_0x2898fa['commandParams'][0x0]['value'];if(_0x36948f){const _0x1871dc=_0x149cb4['config']['get']('highlight.options')['find'](_0x2246e4=>_0x2246e4['model']==_0x36948f),_0x31b960=_0x3b9356(_0x1871dc['title'])['toLowerCase']();return{'type':'format','content':o(_0x399ce7,'*Set\x20highlight:*\x20%0',_0x31b960),'color':{'value':_0x1871dc['color'],'title':_0x1871dc['title']}};}return{'type':'format','content':o(_0x399ce7,'*Remove\x20highlight*',o(_0x399ce7,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x19addd{['afterInit'](){const _0x1135ff=this['editor'];if(!_0x1135ff['plugins']['has']('HorizontalLineEditing'))return;_0x1135ff['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1b0dd5=_0x1135ff['plugins']['get']('TrackChangesEditing'),_0x30f9dd=_0x1135ff['locale'];_0x1b0dd5['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4b8194=>o(_0x30f9dd,'ELEMENT_HORIZONTAL_LINE',_0x4b8194)),_0x1135ff['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x580ac0,{writer:_0x3ce915,options:_0x4ab842})=>{if(!_0x4ab842['showSuggestionHighlights'])return null;const _0x45a07e=_0x3ce915['createContainerElement']('div'),_0x166598=_0x3ce915['createEmptyElement']('hr');return _0x3ce915['addClass']('ck-horizontal-line',_0x45a07e),_0x3ce915['insert'](_0x3ce915['createPositionAt'](_0x45a07e,0x0),_0x166598),_0x45a07e;},'converterPriority':'high'});}}class et extends _0x19addd{['afterInit'](){const _0x4c5f02=this['editor'];if(!_0x4c5f02['plugins']['has']('HtmlEmbed'))return;const _0x267e0b=_0x4c5f02['plugins']['get']('TrackChangesEditing'),_0x2e1632=_0x4c5f02['locale'];_0x267e0b['descriptionFactory']['registerElementLabel']('rawHtml',_0x4a0363=>o(_0x2e1632,'ELEMENT_HTML_EMBED',_0x4a0363)),_0x267e0b['enableDefaultAttributesIntegration']('htmlEmbed'),_0x267e0b['registerBlockAttribute']('value'),_0x267e0b['descriptionFactory']['registerDescriptionCallback'](_0x32e0a8=>{if('attribute'!=_0x32e0a8['type'])return;const {data:_0x1b446b}=_0x32e0a8;if(_0x1b446b&&'value'==_0x1b446b['key']&&_0x32e0a8['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x456668=o(_0x2e1632,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2e1632,'*Change\x20%0\x20content*',_0x456668)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1441c6=this['editor'],_0x4dcee9=_0x1441c6['locale'];_0x1441c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4db6d2=>{if('formatBlock'!=_0x4db6d2['type'])return;const {data:_0x13e401}=_0x4db6d2;if(_0x13e401&&'htmlEmbed'==_0x13e401['commandName']){const _0x54a50d=o(_0x4dcee9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4dcee9,'*Change\x20%0\x20content*',_0x54a50d)};}});}}class it extends _0x19addd{['afterInit'](){const _0x5a059c=this['editor'];if(!_0x5a059c['plugins']['has']('ImageEditing'))return;const _0x5e2e03=_0x5a059c['plugins']['get']('TrackChangesEditing'),_0x5c275e=_0x5a059c['plugins']['get']('ImageUtils'),_0x56fd4e=_0x5a059c['locale'];_0x5e2e03['enableCommand']('insertImage'),_0x5e2e03['descriptionFactory']['registerElementLabel']('imageBlock',_0x364a9d=>o(_0x56fd4e,'ELEMENT_IMAGE',_0x364a9d)),_0x5e2e03['descriptionFactory']['registerElementLabel']('imageInline',_0x23098b=>o(_0x56fd4e,'ELEMENT_INLINE_IMAGE',_0x23098b)),_0x5e2e03['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x56fd4e,'ELEMENT_CAPTION')),_0x5a059c['plugins']['has']('ImageUploadEditing')&&_0x5e2e03['enableCommand']('uploadImage'),_0x5a059c['plugins']['has']('ImageBlockEditing')&&_0x5a059c['plugins']['has']('ImageInlineEditing')&&(_0x5e2e03['enableCommand']('imageTypeInline',(_0x12c6ec,_0x541d37)=>{const _0x148b9c=_0x5c275e['getClosestSelectedImageElement'](_0x5a059c['model']['document']['selection']);_0x5a059c['model']['change'](()=>{_0x5e2e03['markBlockFormat'](_0x148b9c,{'commandName':'imageTypeInline','commandParams':[_0x541d37]},[],'convertBlockImageToInline');});}),_0x5e2e03['enableCommand']('imageTypeBlock',(_0x467a98,_0x5e7a28)=>{_0x5a059c['model']['change'](_0x28fb39=>{let _0x1e2c94=_0x5c275e['getClosestSelectedImageElement'](_0x5a059c['model']['document']['selection']),_0x33d212=_0x28fb39['createRangeOn'](_0x1e2c94);const _0x1ea3a9=_0x14b8f5['fromPosition'](_0x33d212['start'],'toPrevious'),_0x50abe9=_0x14b8f5['fromPosition'](_0x33d212['end'],'toNext');_0x5e2e03['forceDefaultExecution'](()=>_0x467a98(_0x5e7a28)),_0x1e2c94=_0x5c275e['getClosestSelectedImageElement'](_0x5a059c['model']['document']['selection']),_0x33d212=_0x28fb39['createRangeOn'](_0x1e2c94);const _0x250d97=_0x28fb39['createRange'](_0x1ea3a9,_0x50abe9);_0x1ea3a9['detach'](),_0x50abe9['detach'](),_0x5e2e03['markBlockFormat'](_0x1e2c94,{'commandName':'imageTypeInline','commandParams':[_0x5e7a28]},[],'convertInlineImageToBlock'),_0x250d97['start']['isBefore'](_0x33d212['start'])&&_0x5e2e03['markInsertion'](_0x28fb39['createRange'](_0x250d97['start'],_0x33d212['start']),'convertInlineImageToBlock'),_0x33d212['end']['isBefore'](_0x250d97['end'])&&_0x5e2e03['markInsertion'](_0x28fb39['createRange'](_0x33d212['end'],_0x250d97['end']),'convertInlineImageToBlock');});}),_0x5e2e03['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5e2e03['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5e2e03['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5e2e03['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5e2e03['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5e2e03['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xa2d31e])=>{const _0x18dae9=_0x5e2e03['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x396d4b=_0xa2d31e['start'],_0x2f9668=_0xa2d31e['end'];const _0xc267ae=_0x5a059c['model']['schema']['getNearestSelectionRange'](_0x396d4b,'backward'),_0x583e05=_0x5a059c['model']['schema']['getNearestSelectionRange'](_0x2f9668,'forward');_0xc267ae['isCollapsed']&&(_0x396d4b=_0xc267ae['start']),_0x583e05['isCollapsed']&&(_0x2f9668=_0x583e05['end']),_0x18dae9([_0x5a059c['model']['createRange'](_0x396d4b,_0x2f9668)]);}),_0x5e2e03['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4597c2),_0x5e2e03['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4597c2)),_0x5a059c['plugins']['has']('ImageCaptionEditing')&&(_0x5e2e03['enableCommand']('toggleImageCaption',(_0x54947d,_0x3cdf13)=>{const _0x1fd267=_0x5a059c['plugins']['get']('ImageCaptionUtils');let _0x3636cc=_0x5c275e['getClosestSelectedImageElement'](_0x5a059c['model']['document']['selection']),_0x2d3e88=_0x1fd267['getCaptionFromImageModelElement'](_0x3636cc);_0x5a059c['model']['change'](()=>{if(_0x2d3e88)return void _0x5e2e03['markDeletion'](_0x5a059c['model']['createRangeOn'](_0x2d3e88));const _0x4877f0=_0x5c275e['isBlockImage'](_0x3636cc);_0x54947d(_0x3cdf13),_0x3636cc=_0x5c275e['getClosestSelectedImageElement'](_0x5a059c['model']['document']['selection']),_0x2d3e88=_0x1fd267['getCaptionFromImageModelElement'](_0x3636cc),_0x5e2e03['markInsertion'](_0x5a059c['model']['createRangeOn'](_0x2d3e88),_0x4877f0?null:'imageCaption');});}),_0x5e2e03['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4597c2));const _0xdc00d1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x507d5b(_0x4c0c1a,_0x43bb54){const _0x320afb=_0xdc00d1['findIndex'](({type:_0x319259,subType:_0x44b7cf})=>_0x4c0c1a['type']==_0x319259&&_0x4c0c1a['subType']==_0x44b7cf),_0x10aa21=_0xdc00d1['findIndex'](({type:_0x282eee,subType:_0x5e4a4c})=>_0x43bb54['type']==_0x282eee&&_0x43bb54['subType']==_0x5e4a4c);if(_0x320afb<0x0||_0x10aa21<0x0)return!0x1;const _0x274f23=_0x4c0c1a['getFirstRange'](),_0x4604fd=_0x43bb54['getFirstRange']();if((0x0==_0x320afb||0x1==_0x320afb)&&0x2==_0x10aa21&&_0x274f23['isIntersecting'](_0x4604fd))return!0x0;if(0x2==_0x320afb&&0x3==_0x10aa21){const _0x26ce66=_0x5e2e03['_findSuggestions'](_0x274f23,'insertion')['filter'](({suggestion:_0x205e9b,meta:_0x18a47c})=>_0x18a47c['isOwn']&&'convertInlineImageToBlock'==_0x205e9b['subType']);if(_0x26ce66['length']>0x1&&_0x4604fd['end']['isEqual'](_0x274f23['start']))return!0x0;if(0x1==_0x26ce66['length']&&(_0x274f23['start']['isEqual'](_0x4604fd['end'])||_0x274f23['end']['isEqual'](_0x4604fd['start'])))return!0x0;}if(0x3==_0x320afb&&0x3==_0x10aa21&&_0x274f23['start']['isBefore'](_0x4604fd['start'])){const _0x446ae8=_0x274f23['end']['nodeAfter'],_0xc57e34=_0x4604fd['start']['nodeBefore'];return _0x5c275e['isBlockImage'](_0x446ae8)&&_0x446ae8===_0xc57e34;}return!0x1;}function _0x4597c2(_0x4a281b,_0x50f3c9){return _0x507d5b(_0x4a281b,_0x50f3c9)?[_0x4a281b,_0x50f3c9]:_0x507d5b(_0x50f3c9,_0x4a281b)?[_0x50f3c9,_0x4a281b]:null;}_0x5a059c['plugins']['has']('ImageResize')&&(_0x5e2e03['enableDefaultAttributesIntegration']('resizeImage'),_0x5e2e03['registerBlockAttribute']('resizedWidth'),_0x5e2e03['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x56fd4e,'FORMAT_IMAGE_SIZE'))),_0x5a059c['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5e2e03['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5e2e03['registerBlockAttribute']('alt')),_0x5e2e03['descriptionFactory']['registerDescriptionCallback'](_0x1b1537=>{if(!!_0xdc00d1['find'](({type:_0x53f737,subType:_0xfdee67})=>_0x1b1537['type']==_0x53f737&&_0x1b1537['subType']==_0xfdee67))return _0x1b1537['previous']?{}:void 0x0;}),_0x5e2e03['descriptionFactory']['registerDescriptionCallback'](_0x51951c=>{if('insertion'==_0x51951c['type']||'deletion'==_0x51951c['type']){const _0x1e6130=_0x51951c['getContainedElement']();if(_0x1e6130&&_0x1e6130['is']('element','caption'))return{'type':'insertion'==_0x51951c['type']?'addObject':'removeObject','element':_0x1e6130,'quantity':0x1};}}),_0x5e2e03['descriptionFactory']['registerDescriptionCallback'](_0x4b5d29=>'formatBlock'==_0x4b5d29['type']&&'convertInlineImageToBlock'==_0x4b5d29['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4b5d29['type']&&'convertBlockImageToInline'==_0x4b5d29['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5e2e03['descriptionFactory']['registerDescriptionCallback'](_0xf125ff=>{if('attribute'!=_0xf125ff['type'])return;const {data:_0x39ca46}=_0xf125ff;if(!_0x39ca46||'alt'!=_0x39ca46['key'])return;const _0xcc70f7=_0x39ca46['newValue'];return _0xcc70f7?{'type':'format','content':o(_0x56fd4e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xcc70f7+'\x22')}:{'type':'format','content':o(_0x56fd4e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x239c70=this['editor'],_0x20f2de=_0x239c70['locale'];_0x239c70['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa06181=>{if('formatBlock'!=_0xa06181['type']&&'formatInline'!=_0xa06181['type'])return;const {data:_0x410b63}=_0xa06181;if(_0x410b63){if('imageTextAlternative'==_0x410b63['commandName']){const _0x41a466=_0x410b63['commandParams'][0x0]['newValue'];return _0x41a466?{'type':'format','content':o(_0x20f2de,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x41a466+'\x22')}:{'type':'format','content':o(_0x20f2de,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x410b63['commandName']){const _0x4936c1=_0x410b63['commandParams'][0x0]['width'];return _0x4936c1?{'type':'format','content':o(_0x20f2de,'*Set\x20image\x20width:*\x20%0',_0x4936c1)}:{'type':'format','content':o(_0x20f2de,'*Reset\x20image\x20width*')};}}});}}class st extends _0x19addd{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x110c48=this['editor']['locale'],_0x354a67=this['editor']['plugins']['get']('TrackChangesEditing');_0x354a67['enableDefaultAttributesIntegration']('replaceImageSource'),_0x354a67['registerBlockAttribute']('src'),_0x354a67['descriptionFactory']['registerDescriptionCallback'](_0x59ee23=>{if('attribute'!=_0x59ee23['type'])return;const {data:_0x5978a2}=_0x59ee23;return _0x5978a2&&'src'==_0x5978a2['key']?_0x5978a2['newValue']&&_0x5978a2['oldValue']?{'type':'format','content':o(_0x110c48,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4c13f5=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c13f5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4c13f5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c13f5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4c13f5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ebe05=this['editor'],_0x4d74b5=_0x3ebe05['locale'];_0x3ebe05['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x428e3e=>{if('formatBlock'!=_0x428e3e['type']&&'formatInline'!=_0x428e3e['type'])return;const {data:_0x6d6b1b}=_0x428e3e;if(!_0x6d6b1b||'replaceImageSource'!=_0x6d6b1b['commandName'])return;return{'type':'format','content':o(_0x4d74b5,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x19addd{['afterInit'](){const _0x9eb3b0=this['editor'];if(!_0x9eb3b0['plugins']['has']('ImageStyleEditing'))return;const _0x2afd8a=_0x9eb3b0['plugins']['get']('TrackChangesEditing'),_0x3da428=_0x9eb3b0['plugins']['get']('ImageUtils'),_0x2135eb={};_0x2afd8a['enableCommand']('imageStyle',(_0x2c92df,_0x1b5cbe)=>{const _0x5d4c5c=_0x9eb3b0['plugins']['get']('Users')['me'],_0x48db1b=_0x9eb3b0['commands']['get']('imageStyle');let _0x4e7876=_0x3da428['getClosestSelectedImageElement'](_0x9eb3b0['model']['document']['selection']),_0x1a3766=_0x9eb3b0['model']['createRangeOn'](_0x4e7876),_0x16d86a=_0x48db1b['value'];if(_0x16d86a==_0x1b5cbe['value'])return;const _0x363e54={'commandName':'imageStyle','commandParams':[_0x1b5cbe],'formatGroupId':_0x7a56b4()};_0x9eb3b0['model']['change'](()=>{if(_0x2afd8a['getSuggestions']()['filter'](_0x4c0f4c=>_0x4c0f4c['isInContent']&&_0x5d4c5c==_0x4c0f4c['author']&&('formatBlock'==_0x4c0f4c['type']||'formatInline'==_0x4c0f4c['type'])&&('imageStylePreApply'==_0x4c0f4c['subType']||'imageStylePostApply'==_0x4c0f4c['subType'])&&_0x4c0f4c['getFirstRange']()['isEqual'](_0x1a3766))['forEach'](_0x353bce=>_0x2afd8a['discardSuggestion'](_0x353bce['head'])),_0x4e7876=_0x3da428['getClosestSelectedImageElement'](_0x9eb3b0['model']['document']['selection']),_0x1a3766=_0x9eb3b0['model']['createRangeOn'](_0x4e7876),_0x48db1b['refresh'](),_0x9eb3b0['commands']['get']('imageTypeInline')['refresh'](),_0x9eb3b0['commands']['get']('imageTypeBlock')['refresh'](),_0x16d86a=_0x48db1b['value'],_0x16d86a!=_0x1b5cbe['value'])return _0x3da428['isInlineImage'](_0x4e7876)&&_0x48db1b['shouldConvertImageType'](_0x1b5cbe['value'],_0x4e7876)?(_0x2c92df({..._0x1b5cbe,'setImageSizes':!0x1}),_0x4e7876=_0x3da428['getClosestSelectedImageElement'](_0x9eb3b0['model']['document']['selection']),void _0x2afd8a['markBlockFormat'](_0x4e7876,{..._0x363e54,'commandReversedParams':[{'value':_0x16d86a||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3da428['isBlockImage'](_0x4e7876)?_0x2afd8a['markBlockFormat'](_0x4e7876,_0x363e54,[],'imageStylePostApply'):_0x2afd8a['markInlineFormat'](_0x1a3766,_0x363e54,'imageStylePostApply'));});});for(const _0x1663dc of _0x9eb3b0['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2135eb[_0x1663dc['name']]=_0x1663dc['title']['toLowerCase']();_0x2afd8a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2afd8a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2afd8a['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2afd8a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x18dbea])=>{_0x3da428['setImageNaturalSizeAttributes'](_0x18dbea['getContainedElement']());}),_0x2afd8a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5378db,_0x191b04)=>{_0x2afd8a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5378db,{'commandName':_0x191b04['commandName'],'commandParams':_0x191b04['commandReversedParams']});}),_0x2afd8a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x442790,_0x1ef5a2){if(_0x586726(_0x442790,_0x1ef5a2))return[_0x442790,_0x1ef5a2];if(_0x586726(_0x1ef5a2,_0x442790))return[_0x1ef5a2,_0x442790];return null;});const _0x544001=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x586726(_0x47b18c,_0x112ccb){const _0x222484=_0x544001['findIndex'](({type:_0x275b74,subType:_0x36ecfa})=>_0x47b18c['type']==_0x275b74&&_0x47b18c['subType']==_0x36ecfa),_0x2009de=_0x544001['findIndex'](({type:_0x7068ad,subType:_0x229033})=>_0x112ccb['type']==_0x7068ad&&_0x112ccb['subType']==_0x229033);if(_0x222484<0x0||_0x2009de<0x0)return!0x1;const _0x4e6381=_0x47b18c['getFirstRange'](),_0x442127=_0x112ccb['getFirstRange']();if((0x0==_0x222484||0x1==_0x222484)&&0x2==_0x2009de&&_0x4e6381['isIntersecting'](_0x442127))return!0x0;if(0x2==_0x222484&&0x3==_0x2009de){const _0x3a38cb=_0x2afd8a['_findSuggestions'](_0x4e6381,'insertion')['filter'](({suggestion:_0x62b19e,meta:_0x383420})=>_0x383420['isOwn']&&'convertInlineImageToBlock'==_0x62b19e['subType']);if(_0x3a38cb['length']>0x1&&_0x442127['end']['isEqual'](_0x4e6381['start']))return!0x0;if(0x1==_0x3a38cb['length']&&(_0x4e6381['start']['isEqual'](_0x442127['end'])||_0x4e6381['end']['isEqual'](_0x442127['start'])))return!0x0;}if(0x3==_0x222484&&0x3==_0x2009de&&_0x4e6381['start']['isBefore'](_0x442127['start'])){const _0xfaadee=_0x4e6381['end']['nodeAfter'],_0xa82b6b=_0x442127['start']['nodeBefore'];return _0x3da428['isBlockImage'](_0xfaadee)&&_0xfaadee===_0xa82b6b;}return!0x1;}_0x9eb3b0['model']['document']['registerPostFixer'](()=>{let _0x3a76eb=!0x1;const _0x5e745e=Array['from'](_0x9eb3b0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x11f65e,data:_0x551720}of _0x5e745e){const {group:_0x356fb4,type:_0x206883,subType:_0x14711d,id:_0x51eb92}=_0x2afd8a['_splitMarkerName'](_0x11f65e);if('suggestion'==_0x356fb4&&_0x2afd8a['hasSuggestion'](_0x51eb92)){if('formatBlock'==_0x206883&&('imageStylePreApply'==_0x14711d||'imageStylePostApply'==_0x14711d)){const _0xb4dbba=_0x2afd8a['getSuggestion'](_0x51eb92);if(_0x551720['newRange']){const _0x534574=_0xb4dbba['getFirstRange']()['getContainedElement']();if(_0x3da428['isBlockImage'](_0x534574))continue;_0x2afd8a['discardSuggestion'](_0xb4dbba),_0x3a76eb=!0x0;}}if('insertion'==_0x206883&&'imageCaption'==_0x14711d&&!_0x551720['newRange']){const _0x18b4cb=_0x2afd8a['getSuggestion'](_0x51eb92);_0x18b4cb['next']&&_0x18b4cb['next']['isInContent']&&(_0x2afd8a['discardSuggestion'](_0x18b4cb['next']),_0x3a76eb=!0x0);}}}return _0x3a76eb;}),this['_registerLegacyDescription'](_0x2135eb);}['_registerLegacyDescription'](_0x9cca32){const _0x42bd16=this['editor'],_0x3b7f95=_0x42bd16['locale'];_0x42bd16['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54333b=>{if('formatBlock'!=_0x54333b['type']&&'formatInline'!=_0x54333b['type'])return;const {data:_0x505f8a}=_0x54333b;if(!_0x505f8a||'imageStyle'!=_0x505f8a['commandName'])return;const _0x101026=_0x505f8a['commandParams'][0x0]['value'];return _0x28265b('side'===_0x101026?o(_0x3b7f95,'FORMAT_SIDE_IMAGE'):_0x9cca32[_0x101026]||_0x101026);function _0x28265b(_0x51d004){return{'type':'format','content':o(_0x3b7f95,'*Format:*\x20%0',_0x51d004)};}});}}class ot extends _0x19addd{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xdef91){super(_0xdef91),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3891b0=this['editor'],_0x4e0d2a=_0x3891b0['commands']['get']('importWord'),_0x8d0701=_0x3891b0['commands']['get']('trackChanges');_0x4e0d2a&&(_0x4e0d2a['on']('execute',(_0x33e7c7,[,_0x367fd7])=>{this['_trackChangesValueDuringImport']=_0x8d0701['value'],_0x367fd7['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4e0d2a,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4e0d2a,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x8d0701['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3891b0['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1319fe,_0x4d72d2){const {suggestions:_0x5416d7}=_0x4d72d2,_0x32f4fc=this['editor']['commands']['get']('trackChanges'),_0x428286=_0x32f4fc['value'];this['_trackChangesValueDuringImport']!==_0x428286&&(_0x32f4fc['execute'](),this['_trackChangesExecuted']=!0x0),_0x5416d7&&_0x5416d7['forEach'](({id:_0x7844de,type:_0x5e555f,author:_0x9579b6,created_at:_0x22515c})=>{const _0x4f081c={'id':_0x7844de,'type':_0x5e555f,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x9579b6,'createdAt':_0x22515c?new Date(_0x22515c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4f081c);});}}class rt extends _0x19addd{['afterInit'](){const _0x5af200=this['editor'],_0x1e91ac=_0x5af200['plugins']['get']('TrackChangesEditing');if(_0x5af200['plugins']['has']('IndentEditing')&&(_0x1e91ac['enableCommand']('indent'),_0x1e91ac['enableCommand']('outdent')),_0x5af200['plugins']['has']('IndentBlock')){for(const _0x5b3771 of['indentBlock','outdentBlock'])_0x1e91ac['enableDefaultAttributesIntegration'](_0x5b3771);}const _0x27992e=_0x5af200['locale'];_0x1e91ac['registerBlockAttribute']('blockIndent'),_0x1e91ac['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x27992e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x250e14=this['editor'],_0x2f92ba=_0x250e14['locale'],_0x438d8d=_0x250e14['plugins']['get']('TrackChangesEditing');_0x438d8d['descriptionFactory']['registerDescriptionCallback'](_0x223ec0=>{if('formatBlock'!=_0x223ec0['type'])return;const {data:_0x26bb71}=_0x223ec0;if(!_0x26bb71)return;if('indentBlock'!=_0x26bb71['commandName']&&'outdentBlock'!=_0x26bb71['commandName'])return;const _0x1da25d=_0x223ec0['getItems']()[0x0],_0x2d9bb9=_0x438d8d['descriptionFactory']['getItemLabel'](_0x1da25d);return'indentBlock'==_0x26bb71['commandName']?{'type':'format','content':o(_0x2f92ba,'*Indent:*\x20%0',_0x2d9bb9)}:'outdentBlock'==_0x26bb71['commandName']?{'type':'format','content':o(_0x2f92ba,'*Outdent:*\x20%0',_0x2d9bb9)}:void 0x0;});}}class at extends _0x19addd{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x19addd{['afterInit'](){const _0x375780=this['editor'];if(!_0x375780['plugins']['has']('LinkEditing'))return;const _0x2782a7=_0x375780['plugins']['get']('TrackChangesEditing'),_0x36e7ec=_0x375780['commands']['get']('link');_0x2782a7['enableDefaultAttributesIntegration']('link'),_0x2782a7['enableDefaultAttributesIntegration']('unlink'),_0x2782a7['registerInlineAttribute']('linkHref');for(const _0x406682 of _0x36e7ec['manualDecorators'])_0x2782a7['registerInlineAttribute'](_0x406682['id']),_0x2782a7['descriptionFactory']['registerAttributeLabel'](_0x406682['id'],'link\x20('+_0x406682['label']['toLowerCase']()+')');_0x2782a7['descriptionFactory']['registerDescriptionCallback'](_0x4b6c5c=>{if('attribute'!=_0x4b6c5c['type'])return;const {data:_0x171dc2}=_0x4b6c5c;if(!_0x171dc2||'linkHref'!=_0x171dc2['key'])return;const _0x1bca54=_0x171dc2['newValue'],_0x5aa594=_0x375780['locale'];return{'type':'format','content':null==_0x1bca54?o(_0x5aa594,'*Remove\x20link*'):o(_0x5aa594,'*Set\x20link:*\x20%0','\x22'+_0x1bca54+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f75e3=this['editor'],_0x2dda53=_0x4f75e3['locale'];_0x4f75e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e8640=>{if('formatInline'!=_0x4e8640['type'])return;const {data:_0x269abf}=_0x4e8640;if(_0x269abf){if('link'==_0x269abf['commandName']){const _0x15d092=_0x269abf['commandParams'][0x0];return{'type':'format','content':o(_0x2dda53,'*Set\x20link:*\x20%0','\x22'+_0x15d092+'\x22')};}return'unlink'==_0x269abf['commandName']?{'type':'format','content':o(_0x2dda53,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x19addd{['afterInit'](){const _0x472448=this['editor'],_0x10b88a=_0x472448['locale'];if(!_0x472448['plugins']['has']('LegacyListEditing'))return;const _0x1e0276=_0x472448['plugins']['get']('TrackChangesEditing'),_0x423866=_0x472448['plugins']['has']('LegacyTodoListEditing');function _0x198eae(_0x1414f4){return()=>{const _0x4af0c3=_0x472448['model']['document']['selection'],_0x184c5f=_0x472448['commands']['get'](_0x1414f4);if(_0x184c5f['value'])return void _0x472448['execute']('paragraph',{});const _0x27e5ce=_0x1414f4['slice'](0x0,-0x4),_0x52451f=function(_0x1d35a8,_0x452e93,_0x280298){let _0x146b88=Array['from'](_0x1d35a8)['filter'](_0x17ce4d=>function(_0x29fcdf,_0x12eb5a){return _0x12eb5a['checkChild'](_0x29fcdf['parent'],'listItem')&&!_0x12eb5a['isObject'](_0x29fcdf);}(_0x17ce4d,_0x280298));_0x146b88=_0x146b88['filter'](_0x248956=>!_0x248956['is']('element','listItem')||_0x248956['getAttribute']('listType')!=_0x452e93);const _0x4d74f9=new Set();for(const _0xa7cc43 of _0x146b88)_0xa7cc43['is']('element','listItem')?_0x4d74f9['add'](me(_0xa7cc43)):_0x4d74f9['add'](_0xa7cc43);return Array['from'](_0x4d74f9);}(_0x4af0c3['getSelectedBlocks'](),_0x27e5ce,_0x472448['model']['schema']);_0x472448['model']['change'](()=>{for(const _0x4fbb8a of _0x52451f)_0x1e0276['markBlockFormat'](_0x4fbb8a,{'commandName':_0x1414f4,'commandParams':[{'forceValue':!_0x184c5f['value']}],'formatGroupId':'blockName'},fe(_0x4fbb8a));});};}function _0xdaa856(_0xb55aff){return()=>{const _0x5a4f19=function(_0x1b52ce){let _0x3fec5b=Array['from'](_0x1b52ce);const _0x4c1b5a=_0x3fec5b['findIndex'](_0x50e565=>'listItem'!=_0x50e565['name']);return _0x4c1b5a>-0x1&&(_0x3fec5b=_0x3fec5b['slice'](0x0,_0x4c1b5a)),_0x3fec5b;}(_0x472448['model']['document']['selection']['getSelectedBlocks']()),_0x3ca848=_0x472448['model']['createRange'](_0x472448['model']['createPositionAt'](_0x5a4f19[0x0],'before'),_0x472448['model']['createPositionAt'](_0x5a4f19[_0x5a4f19['length']-0x1],'end'));_0x472448['model']['change'](()=>{_0x1e0276['markBlockFormat'](_0x3ca848,{'commandName':_0xb55aff,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4c4e0e){const _0x44aa96=new Set();for(const _0x271e3e of _0x4c4e0e){let _0x4fabdb=_0x271e3e['nextSibling'];for(;_0x4fabdb&&_0x4fabdb['getAttribute']('listIndent')>_0x271e3e['getAttribute']('listIndent');)_0x44aa96['add'](_0x4fabdb),_0x4fabdb=_0x4fabdb['nextSibling'];}return Array['from'](_0x44aa96);}(_0x5a4f19));});};}_0x1e0276['enableCommand']('numberedList',_0x198eae('numberedList')),_0x1e0276['enableCommand']('bulletedList',_0x198eae('bulletedList')),_0x423866&&_0x1e0276['enableCommand']('todoList',_0x198eae('todoList')),_0x1e0276['enableCommand']('indentList',_0xdaa856('indentList')),_0x1e0276['enableCommand']('outdentList',_0xdaa856('outdentList')),_0x423866&&_0x1e0276['enableCommand']('checkTodoList',()=>{const _0x3a4b97=_0x472448['commands']['get']('checkTodoList'),_0x6cd49c=Array['from'](_0x3a4b97['_selectedElements']);_0x6cd49c['filter'](_0x5bafeb=>_0x5bafeb['getAttribute']('todoListChecked')!=_0x3a4b97['value']),_0x472448['model']['change'](()=>{for(const _0x36b751 of _0x6cd49c)_0x1e0276['markBlockFormat'](_0x36b751,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3a4b97['value']}]});});}),_0x1e0276['descriptionFactory']['registerElementLabel']('listItem',_0x36222c=>o(_0x10b88a,'ELEMENT_LIST_ITEM',_0x36222c)),_0x1e0276['descriptionFactory']['registerDescriptionCallback'](_0x43a758=>{if('formatBlock'!=_0x43a758['type']&&'formatInline'!=_0x43a758['type'])return;const {data:_0x2a1016}=_0x43a758;if(_0x2a1016){if('numberedList'==_0x2a1016['commandName']||'bulletedList'==_0x2a1016['commandName']||'todoList'==_0x2a1016['commandName'])switch(_0x2a1016['commandName']['replace']('List','')){case'bulleted':return _0x38308d(o(_0x10b88a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x38308d(o(_0x10b88a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x38308d(o(_0x10b88a,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2a1016['commandName'])return{'type':'format','content':o(_0x10b88a,'*Indent:*\x20%0',o(_0x10b88a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2a1016['commandName'])return{'type':'format','content':o(_0x10b88a,'*Outdent:*\x20%0',o(_0x10b88a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2a1016['commandName'])return _0x2a1016['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x10b88a,'*Check\x20item*')}:{'type':'format','content':o(_0x10b88a,'*Uncheck\x20item*')};}function _0x38308d(_0x9c58ea){return{'type':'format','content':o(_0x10b88a,'*Change\x20to:*\x20%0',_0x9c58ea)};}});}}function me(_0x27a4a8){const _0x4b2aad=_0x27a4a8['getAttribute']('listIndent');if(0x0==_0x4b2aad)return _0x27a4a8;let _0x29f2b3=_0x27a4a8;for(;_0x27a4a8['previousSibling']&&_0x27a4a8['previousSibling']['is']('element','listItem');){const _0x8f60d3=_0x27a4a8['previousSibling']['getAttribute']('listIndent');if(_0x8f60d3==_0x4b2aad)_0x29f2b3=_0x27a4a8['previousSibling'];else{if(_0x8f60d3<_0x4b2aad)break;}_0x27a4a8=_0x27a4a8['previousSibling'];}return _0x29f2b3;}function fe(_0x4a4a96){const _0x12d09b=[];if(_0x4a4a96['is']('element','listItem')&&_0x4a4a96['getAttribute']('listIndent')>0x0){let _0x488c4a=_0x4a4a96['nextSibling'];for(;_0x488c4a&&'listItem'==_0x488c4a['name']&&_0x488c4a['getAttribute']('listIndent')==_0x4a4a96['getAttribute']('listIndent');)_0x12d09b['push'](_0x488c4a),_0x488c4a=_0x488c4a['nextSibling'];}return _0x12d09b;}class K extends _0x19addd{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x14106f=this['editor']['config']['get']('list.properties'),_0x106fb3=this['editor']['plugins']['get']('TrackChangesEditing');_0x14106f['styles']&&_0x106fb3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x14106f['reversed']&&_0x106fb3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x14106f['startIndex']&&_0x106fb3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x106fb3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2aac23,_0x3b6a10={}){const _0x2345bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x555f93=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2345bb['markMultiRangeBlockFormat'](_0x555f93,{'commandName':'listStyle','commandParams':[{'type':_0x3b6a10['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5381b1,_0x31f164={}){const _0x54727a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x225a0e=this['_getSuggestionBlocks'](_0xf0b44b=>_0xf0b44b['is']('element','listItem')&&'numbered'===_0xf0b44b['getAttribute']('listType'));if(_0x225a0e['length']<0x1)return;const _0x3be592=_0x225a0e['map'](_0x109cec=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x109cec,'before'),this['editor']['model']['createPositionAt'](_0x109cec,0x0)));this['editor']['model']['change'](()=>{_0x54727a['markMultiRangeBlockFormat'](_0x3be592,{'commandName':'listReversed','commandParams':[{'reversed':_0x31f164['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x33c712,_0x282452={}){const _0x4e3606=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fdf8a=this['_getSuggestionBlocks'](_0x3a9cf1=>_0x3a9cf1['is']('element','listItem')&&'numbered'===_0x3a9cf1['getAttribute']('listType'));if(_0x3fdf8a['length']<0x1)return;const _0x5ba36f=_0x3fdf8a['map'](_0x28c2ba=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x28c2ba,'before'),this['editor']['model']['createPositionAt'](_0x28c2ba,0x0)));this['editor']['model']['change'](()=>{_0x4e3606['markMultiRangeBlockFormat'](_0x5ba36f,{'commandName':'listStart','commandParams':[{'startIndex':_0x282452['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x41f7cd){if('formatBlock'!=_0x41f7cd['type']&&'formatInline'!=_0x41f7cd['type'])return;const _0x12858b=this['editor']['locale'],{data:_0x1f4468}=_0x41f7cd;if(!_0x1f4468)return;let _0x41ab7a,_0x1f17db;switch(_0x1f4468['commandName']){case'listStyle':_0x41ab7a='*Change\x20to:*\x20%0',_0x1f17db={'type':'format','content':o(_0x12858b,_0x41ab7a,o(_0x12858b,this['_getTranslationKeyForListStyle'](_0x1f4468['commandParams'][0x0]['type'])))};break;case'listReversed':_0x41ab7a=_0x1f4468['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1f17db={'type':'format','content':o(_0x12858b,_0x41ab7a)};break;case'listStart':_0x41ab7a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1f17db={'type':'format','content':o(_0x12858b,_0x41ab7a,_0x1f4468['commandParams'][0x0]['startIndex'])};}return _0x1f17db;}['_getSuggestionBlocksForListStyle'](){const _0x46b278=this['editor']['plugins']['get']('LegacyListUtils');let _0x1dafb6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1dafb6[0x0]?.['is']('element','listItem')&&_0x1dafb6['unshift'](..._0x46b278['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1dafb6[_0x1dafb6['length']-0x1]?.['is']('element','listItem')&&_0x1dafb6['push'](..._0x46b278['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1dafb6=[...new Set(_0x1dafb6)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1dafb6=_0x1dafb6['filter'](_0x119962=>_0x119962['is']('element','listItem'))),_0x1dafb6;}['_getSuggestionBlocks'](_0xe1f96d){const _0x297f35=this['editor']['plugins']['get']('LegacyListUtils');let _0x1113a5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xe1f96d)['map'](_0x55bbfb=>{const _0x42b440=this['editor']['model']['createPositionAt'](_0x55bbfb,0x0);return[..._0x297f35['getSiblingNodes'](_0x42b440,'backward'),..._0x297f35['getSiblingNodes'](_0x42b440,'forward')];})['flat']();return _0x1113a5=[...new Set(_0x1113a5)],_0x1113a5;}['_getTranslationKeyForListStyle'](_0x5b82ce){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5b82ce)||'default')['toUpperCase']()+'_LIST_'+_0x5b82ce['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x19addd{['afterInit'](){const _0x475a22=this['editor'];if(!_0x475a22['plugins']['has']('MediaEmbedEditing'))return;const _0x1cbe9d=_0x475a22['plugins']['get']('TrackChangesEditing'),_0x2eca1e=_0x475a22['locale'];_0x1cbe9d['enableCommand']('mediaEmbed'),_0x1cbe9d['descriptionFactory']['registerElementLabel']('media',_0xcf6858=>o(_0x2eca1e,'ELEMENT_MEDIA',_0xcf6858)),_0x475a22['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xf85442,{writer:_0x39f8d5,options:_0x1fe334})=>{if(_0x1fe334['showSuggestionHighlights'])return _0x39f8d5['createEmptyElement']('div');},'converterPriority':'high'}),_0x475a22['data']['downcastDispatcher']['on']('attribute:url:media',(_0x338d60,_0x40c99d,_0x46dc47)=>{_0x46dc47['options']['showSuggestionHighlights']&&_0x338d60['stop']();},{'priority':'high'});}}class gt extends _0x19addd{['afterInit'](){const _0x21d5ee=this['editor'];_0x21d5ee['plugins']['has']('MentionEditing')&&_0x21d5ee['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x19addd{['afterInit'](){const _0x5e9220=this['editor'],_0x4f423f=_0x5e9220['plugins']['get']('TrackChangesEditing');_0x5e9220['plugins']['has']('MultiLevelList')&&(_0x4f423f['enableDefaultAttributesIntegration']('multiLevelList'),_0x4f423f['registerBlockAttribute']('listMarkerStyle'),_0x4f423f['descriptionFactory']['registerDescriptionCallback'](_0x5816ca=>this['handleDescriptions'](_0x5816ca)));}['handleDescriptions'](_0xc178d9){const _0xbc56a8=this['editor']['locale'],{data:_0x58e0d6}=_0xc178d9,_0x5c800f={'type':'format','content':''};if(_0x58e0d6&&'listMarkerStyle'==_0x58e0d6['key']){if(!_0x58e0d6['oldValue'])return{'type':'format','content':o(_0xbc56a8,'*Set\x20format:*\x20%0',o(_0xbc56a8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x58e0d6['newValue']+')'};if(!_0x58e0d6['newValue']){let _0x306ded=_0xc178d9['head'];for(;_0x306ded;){if(_0x306ded['data']&&'listType'==_0x306ded['data']['key']&&_0x306ded['data']['newValue'])return _0x5c800f;_0x306ded=_0x306ded['next'];}return{'type':'format','content':o(_0xbc56a8,'*Remove\x20format:*\x20%0',o(_0xbc56a8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x58e0d6['oldValue']+')'};}}}}class mt extends _0x19addd{['afterInit'](){const _0x31d274=this['editor'];if(!_0x31d274['plugins']['has']('PageBreakEditing'))return;_0x31d274['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x397dcc=_0x31d274['plugins']['get']('TrackChangesEditing'),_0x5d8a19=_0x31d274['locale'];_0x397dcc['descriptionFactory']['registerElementLabel']('pageBreak',_0x4b0ede=>o(_0x5d8a19,'ELEMENT_PAGE_BREAK',_0x4b0ede));}}class dt extends _0x19addd{['afterInit'](){const _0x18b541=this['editor'];if(!_0x18b541['plugins']['has']('Paragraph'))return;const _0x3e9748=_0x18b541['locale'],_0x1a4ced=_0x18b541['plugins']['get']('TrackChangesEditing');_0x1a4ced['descriptionFactory']['registerElementLabel']('paragraph',_0x3967c3=>o(_0x3e9748,'ELEMENT_PARAGRAPH',_0x3967c3)),_0x1a4ced['enableDefaultAttributesIntegration']('paragraph'),_0x1a4ced['enableCommand']('insertParagraph'),_0x18b541['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x18b541),{'priority':'highest'}),_0x18b541['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1df946,_0x4d2a68,_0x5b29fe)=>{_0x5b29fe['options']['showSuggestionHighlights']&&nr(_0x18b541,{'showActiveMarker':!0x1})(_0x1df946,_0x4d2a68,_0x5b29fe);},{'priority':'highest'});const _0x36426e=_0x1a4ced['descriptionFactory'];_0x36426e['registerDescriptionCallback'](_0x44c007=>{if('insertion'!==_0x44c007['type'])return;const {start:_0x455205,end:_0x572e2f}=_0x44c007['getFirstRange']();if(!_0x455205['isTouching'](_0x572e2f)||!_0x455205['nodeAfter'])return;const _0x1e93e6=_0x18b541['model']['schema'],_0x745a6a=_0x455205['nodeAfter'];return _0x1e93e6['isBlock'](_0x745a6a)&&!_0x1e93e6['isLimit'](_0x745a6a)&&_0x1e93e6['checkChild'](_0x745a6a,'$text')?{'type':'insertion','content':o(_0x3e9748,'*Insert:*\x20%0',_0x36426e['getItemLabel'](_0x745a6a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5edd0c=this['editor'],_0x375576=_0x5edd0c['locale'];_0x5edd0c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34e3db=>{if('formatBlock'!=_0x34e3db['type'])return;const {data:_0x24f9a7}=_0x34e3db;return _0x24f9a7&&'paragraph'==_0x24f9a7['commandName']?{'type':'format','content':o(_0x375576,'*Change\x20to:*\x20%0',o(_0x375576,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2517f2,{showActiveMarker:_0x1c3be5=!0x0}={}){return(_0x4f00c3,_0x36eaa5,_0x51875a)=>{const _0x28c945=_0x2517f2['plugins']['get']('TrackChangesEditing'),_0x2f6a97=_0x36eaa5['markerRange']['start'],_0x2c46b3=_0x36eaa5['markerRange']['end'],_0x4dde60=_0x2517f2['model']['schema'];if(!_0x2f6a97['isTouching'](_0x2c46b3)||!_0x2f6a97['nodeAfter'])return;const _0x8e0b4e=_0x2f6a97['nodeAfter'];if(_0x4dde60['isBlock'](_0x8e0b4e)&&!_0x4dde60['isLimit'](_0x8e0b4e)&&_0x4dde60['checkChild'](_0x8e0b4e,'$text')){if(!_0x51875a['consumable']['consume'](_0x36eaa5['markerRange'],_0x4f00c3['name']))return;const _0x8d8b9f=_0x51875a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0xeaa06a=_0x51875a['mapper']['toViewPosition'](_0x2c46b3);_0x1c3be5&&_0x28c945['activeMarkers']['includes'](_0x36eaa5['markerName'])&&_0x51875a['writer']['addClass']('ck-suggestion-marker--active',_0x8d8b9f),_0x51875a['writer']['insert'](_0xeaa06a,_0x8d8b9f),_0x51875a['mapper']['bindElementToMarker'](_0x8d8b9f,_0x36eaa5['markerName']);}};}class pt extends _0x19addd{['afterInit'](){const _0x17f3fa=this['editor'];if(!_0x17f3fa['plugins']['has']('RemoveFormatEditing'))return;_0x17f3fa['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a5e65=this['editor'];_0x2a5e65['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49a485=>{if('formatBlock'!=_0x49a485['type']&&'formatInline'!=_0x49a485['type'])return;const {data:_0x3ae28a}=_0x49a485;return _0x3ae28a&&'removeFormat'==_0x3ae28a['commandName']?{'type':'format','content':o(_0x2a5e65['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x19addd{['afterInit'](){const _0x166a80=this['editor'];if(!_0x166a80['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xcf1366=_0x166a80['plugins']['get']('TrackChangesEditing');_0xcf1366['enableCommand']('goToPreviousRestrictedEditingException'),_0xcf1366['enableCommand']('goToNextRestrictedEditingException');const _0x2c33d2=_0x166a80['plugins']['get']('RestrictedEditingModeEditing');_0x2c33d2['enableCommand']('trackChanges'),_0x2c33d2['enableCommand']('acceptSuggestion'),_0x2c33d2['enableCommand']('discardSuggestion'),_0x2c33d2['enableCommand']('acceptAllSuggestions'),_0x2c33d2['enableCommand']('discardAllSuggestions'),_0x2c33d2['enableCommand']('acceptSelectedSuggestions'),_0x2c33d2['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x19addd{static get['requires'](){return[_0x1c71b0];}['init'](){const _0x330256=this['editor'],_0x169178=_0x330256['plugins']['get']('TrackChangesEditing');_0x169178['enableCommand']('shiftEnter'),_0x330256['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x330256),{'priority':'high'}),_0x330256['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x330256),{'priority':'high'}),_0x330256['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3552f7,_0x71bb40,_0x3c06ed)=>{_0x3c06ed['options']['showSuggestionHighlights']&&de(_0x330256,{'showActiveMarker':!0x1})(_0x3552f7,_0x71bb40,_0x3c06ed);}),_0x169178['descriptionFactory']['registerElementLabel']('softBreak',_0x22d87b=>o(_0x330256['locale'],'ELEMENT_LINE_BREAK',_0x22d87b));}}function de(_0x103834,{showActiveMarker:_0x140bad=!0x0}={}){return(_0x25e26e,_0x244128,_0x4e4c1d)=>{const _0x565de5=_0x103834['plugins']['get']('TrackChangesEditing');if(!_0x4e4c1d['consumable']['test'](_0x244128['markerRange'],_0x25e26e['name']))return;const _0x4ca22d=_0x103834['model'];for(const _0x19f3ac of _0x244128['markerRange']['getItems']()){if(!_0x19f3ac['is']('element','softBreak'))continue;const _0x25d700='deletion'==_0x244128['markerName']['split'](':')[0x1]?'merge':'split',_0x4eab0c=_0x4e4c1d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x25d700}),_0x44833d=_0x4e4c1d['mapper']['toViewPosition'](_0x4ca22d['createPositionBefore'](_0x19f3ac));_0x140bad&&_0x565de5['activeMarkers']['includes'](_0x244128['markerName'])&&_0x4e4c1d['writer']['addClass']('ck-suggestion-marker--active',_0x4eab0c),_0x4e4c1d['writer']['insert'](_0x44833d,_0x4eab0c),_0x4e4c1d['mapper']['bindElementToMarker'](_0x4eab0c,_0x244128['markerName']);}};}class wt extends _0x19addd{['afterInit'](){const _0xcaf41d=this['editor'],_0x5f65cd=_0xcaf41d['model'],_0x28dcc9=_0xcaf41d['locale'];if(!_0xcaf41d['plugins']['has']('StandardEditingModeEditing'))return;const _0x2b7ef5=_0xcaf41d['plugins']['get']('TrackChangesEditing'),_0x528c2b='restrictedEditingException',_0x5a54ad=_0xcaf41d['commands']['get'](_0x528c2b);_0x2b7ef5['enableCommand'](_0x528c2b,(_0x394bf8,_0x1d92ff={})=>{const _0x2f14ab=_0x5f65cd['document']['selection'];if(_0x2f14ab['isCollapsed'])return void _0x394bf8(_0x1d92ff);const _0x3803d0=void 0x0!==_0x1d92ff['forceValue']?_0x1d92ff['forceValue']:!_0x5a54ad['value'];_0x5f65cd['change'](()=>{const _0x526c6d=Array['from'](_0x2f14ab['getRanges']());for(const _0x503e2d of _0x526c6d){const _0x41e99c=_0x3803d0?[_0x503e2d]:io(_0x528c2b,_0x503e2d,_0x5f65cd);for(const _0x11924c of _0x41e99c)_0x2b7ef5['markInlineFormat'](_0x11924c,{'commandName':_0x528c2b,'commandParams':[{'forceValue':_0x3803d0}]});}});}),_0x2b7ef5['descriptionFactory']['registerDescriptionCallback'](_0x15bbf6=>{if('formatBlock'!=_0x15bbf6['type']&&'formatInline'!=_0x15bbf6['type'])return;const {data:_0x586271}=_0x15bbf6;return _0x586271&&_0x586271['commandName']==_0x528c2b?_0x586271['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x28dcc9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x28dcc9,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x19addd{['afterInit'](){const _0x14e5b2=this['editor'];if(!_0x14e5b2['plugins']['has']('Style')||!_0x14e5b2['plugins']['has']('DataSchema'))return;const _0x457b24=_0x14e5b2['plugins']['get']('TrackChangesEditing'),_0x3ddb9b=_0x14e5b2['locale'],_0x1ab172=_0x14e5b2['config']['get']('style')||{},_0x5338e6=_0x14e5b2['plugins']['get']('GeneralHtmlSupport'),_0x26562b=_0x14e5b2['plugins']['get']('StyleUtils')['normalizeConfig'](_0x14e5b2['plugins']['get']('DataSchema'),_0x1ab172['definitions']);_0x457b24['enableDefaultAttributesIntegration']('style');const _0x59c51c=new Set();for(const _0x22edcc of _0x26562b['block']){const _0x47239c=_0x5338e6['getGhsAttributeNameForElement'](_0x22edcc['element']);_0x59c51c['add'](_0x47239c);}const _0xc97b36=new Set();for(const _0xd60b6d of _0x26562b['inline']){const _0x211753=_0x5338e6['getGhsAttributeNameForElement'](_0xd60b6d['element']);_0xc97b36['add'](_0x211753);for(const _0x1b3ef3 of _0xd60b6d['ghsAttributes'])_0xc97b36['add'](_0x1b3ef3);}for(const _0x1b3e84 of _0x59c51c)_0x457b24['registerBlockAttribute'](_0x1b3e84),_0x457b24['descriptionFactory']['registerAttributeLabel'](_0x1b3e84,o(_0x3ddb9b,'FORMAT_STYLE'));for(const _0x3a6d8b of _0xc97b36)_0x457b24['registerInlineAttribute'](_0x3a6d8b),_0x457b24['descriptionFactory']['registerAttributeLabel'](_0x3a6d8b,o(_0x3ddb9b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32c461=this['editor'],_0x5f2d56=_0x32c461['locale'];_0x32c461['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11917f=>{if('formatBlock'!=_0x11917f['type']&&'formatInline'!=_0x11917f['type'])return;const {data:_0xfaf3f6}=_0x11917f;return _0xfaf3f6&&'style'===_0xfaf3f6['commandName']?_0xfaf3f6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5f2d56,'*Set\x20format:*\x20%0',_0xfaf3f6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5f2d56,'*Remove\x20format:*\x20%0',_0xfaf3f6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x19addd{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x173060){super(_0x173060),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5487a8=this['editor'],_0x2f860e=_0x5487a8['model']['document']['selection'];if(!_0x5487a8['plugins']['has']('TableEditing'))return;const _0x524b11=_0x5487a8['locale'],_0x40f252=_0x5487a8['plugins']['get']('TrackChangesEditing'),_0x225eee=_0x5487a8['plugins']['get']('TableUtils');_0x40f252['descriptionFactory']['registerElementLabel']('table',_0x20fe16=>o(_0x524b11,'ELEMENT_TABLE',_0x20fe16)),this['_setupColumnsRowsFixing'](),_0x40f252['enableCommand']('insertTable'),_0x40f252['enableCommand']('selectTableRow'),_0x40f252['enableCommand']('selectTableColumn');for(const _0x1dbffc of['insertTableRowAbove','insertTableRowBelow']){const _0x22baca=_0x5487a8['commands']['get'](_0x1dbffc);_0x40f252['enableCommand'](_0x1dbffc,_0x9b7018=>{_0x5487a8['model']['change'](_0x19adcc=>{_0x9b7018();const _0x42a5ff='above'===_0x22baca['order'],_0x5ffb06=_0x225eee['getSelectionAffectedTableCells'](_0x2f860e),_0x27f319=_0x225eee['getRowIndexes'](_0x5ffb06),_0x58de04=_0x42a5ff?_0x27f319['first']-0x1:_0x27f319['last']+0x1,_0x188da7=_0x5ffb06[0x0]['findAncestor']('table'),_0x58293c=_0x225eee['createTableWalker'](_0x188da7,{'startRow':_0x58de04,'endRow':_0x58de04}),_0x419dea=Array['from'](_0x58293c)['map'](_0x4587be=>_0x19adcc['createRangeOn'](_0x4587be['cell']));_0x40f252['markMultiRangeInsertion'](_0x419dea,'tableRow');});});}for(const _0x202975 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1e3a82=_0x5487a8['commands']['get'](_0x202975);_0x40f252['enableCommand'](_0x202975,_0x57883e=>{_0x5487a8['model']['change'](_0x2eac0c=>{_0x57883e();const _0x2844d0='left'===_0x1e3a82['order'],_0x594ad4=_0x225eee['getSelectionAffectedTableCells'](_0x2f860e),_0x300459=_0x225eee['getColumnIndexes'](_0x594ad4),_0x2e7d86=_0x2844d0?_0x300459['first']-0x1:_0x300459['last']+0x1,_0xd98c52=_0x594ad4[0x0]['findAncestor']('table'),_0x32bd44=_0x225eee['createTableWalker'](_0xd98c52,{'startRow':0x0,'column':_0x2e7d86,'includeAllSlots':!0x1}),_0x261d66=Array['from'](_0x32bd44)['map'](_0x3b3ca2=>_0x2eac0c['createRangeOn'](_0x3b3ca2['cell']));_0x40f252['markMultiRangeInsertion'](_0x261d66,'tableColumn');});});}for(const _0x16f48b of['removeTableRow','removeTableColumn']){const _0x1dd7e5=_0x16f48b['substr'](0xb),_0x2e319a=_0x1dd7e5['toLowerCase'](),_0x568a08=_0x2e319a['substr'](0x0,0x3)+'span',_0x4b5f51='table'+_0x1dd7e5,_0x3cddcf='min'+_0x1dd7e5,_0x31f001='max'+_0x1dd7e5;_0x40f252['enableCommand'](_0x16f48b,()=>{_0x5487a8['model']['change'](_0x3e3e28=>{const _0x24fd2b=_0x225eee['getSelectionAffectedTableCells'](_0x2f860e),_0x20d5a9=_0x24fd2b[0x0]['findAncestor']('table');let _0x3d990b;if('removeTableRow'==_0x16f48b){const _0x457a96=_0x225eee['getRowIndexes'](_0x24fd2b);_0x3d990b={'startRow':_0x457a96['first'],'endRow':_0x457a96['last'],'includeAllSlots':!0x0};}else{const _0x313c13=_0x225eee['getColumnIndexes'](_0x24fd2b);_0x3d990b={'startColumn':_0x313c13['first'],'endColumn':_0x313c13['last'],'includeAllSlots':!0x0};}const _0x3e5a58=_0x225eee['createTableWalker'](_0x20d5a9,_0x3d990b),_0x53e323=Array['from'](_0x3e5a58)['map'](({cell:_0xf220a4})=>_0xf220a4),_0x5c5e78=Ee(_0x53e323['filter'](_0x22e0c9=>_0x22e0c9['hasAttribute'](_0x568a08))),_0x225186=Ee(_0x53e323['filter'](_0x2ccc7f=>!_0x2ccc7f['hasAttribute'](_0x568a08)))['map'](_0x2714df=>_0x3e3e28['createRangeOn'](_0x2714df)),_0x137584=_0x40f252['markMultiRangeDeletion'](_0x225186,_0x4b5f51);if(_0x137584&&('tableRow'==_0x137584['subType']||'tableColumn'==_0x137584['subType'])){const _0x125f49=this['_getSuggestionCoords'](_0x137584);for(const _0x58bcd0 of _0x5c5e78){const _0x397806=_0x3e3e28['createRangeOn'](_0x58bcd0),_0x49c045=_0x225eee['getCellLocation'](_0x58bcd0),_0x3aa0c2=_0x58bcd0['getAttribute'](_0x568a08)-0x1,_0x50c40f=_0x125f49[_0x3cddcf],_0x225975=_0x125f49[_0x31f001];_0x50c40f<=_0x49c045[_0x2e319a]&&_0x49c045[_0x2e319a]+_0x3aa0c2<=_0x225975&&_0x137584['addRange'](_0x397806);}}});});}function _0x229c13(_0x51f20e){const _0x17f7e6=Array['from'](_0x2f860e['getRanges']())['map'](_0x598d96=>_0x1e1f20['fromRange'](_0x598d96));_0x5487a8['model']['change'](_0x44ed69=>{const _0x2d834c=_0x44ed69['batch'];_0x51f20e=_0x51f20e['filter'](_0x2f2fd7=>'$graveyard'!=_0x2f2fd7['root']['rootName']),_0x44ed69['setSelection'](_0x51f20e),_0x5487a8['commands']['get']('removeTableRow')['refresh'](),_0x5487a8['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5487a8['model']['enqueueChange'](()=>{_0x5487a8['model']['enqueueChange'](_0x2d834c,_0x381fd2=>{const _0x425d45=_0x17f7e6['filter'](_0x3f562e=>'$graveyard'!=_0x3f562e['root']['rootName']);_0x425d45['length']>0x0&&_0x381fd2['setSelection'](_0x425d45);for(const _0x3d5cb5 of _0x17f7e6)_0x3d5cb5['detach']();});});});}function _0xea91a6(_0x24b592){_0x5487a8['model']['change'](_0x3e7be2=>{const _0x7235ff=Array['from'](_0x2f860e['getRanges']())['map'](_0x4235c5=>_0x1e1f20['fromRange'](_0x4235c5)),_0x1b7430=[];for(const _0x5811c7 of _0x24b592)for(const _0x50fd3e of _0x5811c7['getItems']({'shallow':!0x0}))_0x1b7430['push'](_0x50fd3e);for(const _0x432439 of _0x1b7430)'$graveyard'!=_0x432439['root']['rootName']&&(_0x3e7be2['setSelection'](_0x3e7be2['createPositionAt'](_0x432439,0x0)),_0x5487a8['commands']['get']('removeTableColumn')['refresh'](),_0x5487a8['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5ab922=_0x7235ff['filter'](_0x348203=>'$graveyard'!=_0x348203['root']['rootName']);_0x5ab922['length']>0x0&&_0x3e7be2['setSelection'](_0x5ab922);for(const _0x179e38 of _0x7235ff)_0x179e38['detach']();});}function _0x50799b(_0x59eac6,_0x2e221c){return _0x2e221c['every'](_0x4df085=>_0x59eac6['some'](_0x148afb=>_0x148afb['end']['isEqual'](_0x4df085['start'])||_0x4df085['end']['isEqual'](_0x148afb['start'])));}function _0x792773(_0x164d04,_0x43dc87){return!_0x164d04['some'](_0x5c68b6=>_0x43dc87['some'](_0x501b91=>_0x5c68b6['isIntersecting'](_0x501b91)))&&_0x164d04['some'](_0x1562cb=>_0x43dc87['some'](_0x14c000=>_0x1562cb['end']['isTouching'](_0x14c000['start'])));}_0x5487a8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x32f322,_0x4e3cb8,_0x2df97c)=>{if(!_0x2df97c['options']['showSuggestionHighlights'])return;const _0x25ff2f=_0x4e3cb8['item'];if(!_0x25ff2f)return;const _0x246d06=_0x2df97c['mapper']['toViewElement'](_0x25ff2f);function _0x500b21(_0x24c746){return Array['isArray'](_0x24c746)?_0x24c746:[_0x24c746];}_0x246d06&&'tableCell'===_0x25ff2f['name']&&_0x3aa217(_0x246d06,_0x2df97c['writer'],(_0x1b7091,_0x6f45cb,_0x547e1e)=>_0x547e1e['addClass'](_0x500b21(_0x6f45cb['classes']),_0x1b7091),(_0x20105b,_0x29c256,_0x43bca9)=>_0x43bca9['removeClass'](_0x500b21(_0x29c256['classes']),_0x20105b));},{'priority':'highest'}),_0x40f252['descriptionFactory']['registerDescriptionCallback'](_0xf304d=>{if('insertion'!=_0xf304d['type']&&'deletion'!=_0xf304d['type'])return;const _0x553c14=_0xf304d['getContainedElement']();if(null!=_0x553c14&&_0x553c14['is']('element','table')){if('insertion'==_0xf304d['type']){const _0x3a3851=_0xf304d['getItems']()['filter'](_0x54029f=>_0x54029f['is']('$textProxy'))['map'](_0x4b1b36=>_0x4b1b36['data']);if(_0x3a3851['length'])return{'type':'insertion','content':o(_0x524b11,'*Insert:*\x20%0',o(_0x524b11,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3a3851['join']('\x20')+'\x22'))};}if('deletion'==_0xf304d['type']){const _0xeaa339=_0xf304d['getItems']()['filter'](_0x131b3c=>_0x131b3c['is']('$textProxy'))['map'](_0x44fccf=>_0x44fccf['data']);if(_0xeaa339['length'])return{'type':'deletion','content':o(_0x524b11,'*Remove:*\x20%0',o(_0x524b11,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xeaa339['join']('\x20')+'\x22'))};}}}),_0x40f252['descriptionFactory']['registerDescriptionCallback'](_0xb36cbc=>{if('tableRow'==_0xb36cbc['subType']){const _0x49ef3c=_0xb36cbc['getItems']()['filter'](_0x5ce498=>_0x5ce498['is']('$textProxy'))['map'](_0xf95186=>_0xf95186['data']),_0x2a4474=this['_getSuggestionCoords'](_0xb36cbc),_0xd0cb=_0x2a4474['maxRow']-_0x2a4474['minRow']+0x1;if('insertion'==_0xb36cbc['type'])return _0x49ef3c['length']?{'type':'insertion','content':o(_0x524b11,'*Insert:*\x20%0',o(_0x524b11,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xd0cb,'\x22'+_0x49ef3c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x524b11,'*Insert:*\x20%0',o(_0x524b11,'ELEMENT_TABLE_ROW',_0xd0cb))};if('deletion'==_0xb36cbc['type'])return _0x49ef3c['length']?{'type':'deletion','content':o(_0x524b11,'*Remove:*\x20%0',o(_0x524b11,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xd0cb,'\x22'+_0x49ef3c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x524b11,'*Remove:*\x20%0',o(_0x524b11,'ELEMENT_TABLE_ROW',_0xd0cb))};}if('tableColumn'==_0xb36cbc['subType']){const _0x5e69b9=_0xb36cbc['getItems']()['filter'](_0x336669=>_0x336669['is']('$textProxy'))['map'](_0x3d732a=>_0x3d732a['data']),_0x38d0b4=this['_getSuggestionCoords'](_0xb36cbc),_0x3e1093=_0x38d0b4['maxColumn']-_0x38d0b4['minColumn']+0x1;if('insertion'==_0xb36cbc['type'])return _0x5e69b9['length']?{'type':'insertion','content':o(_0x524b11,'*Insert:*\x20%0',o(_0x524b11,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3e1093,'\x22'+_0x5e69b9['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x524b11,'*Insert:*\x20%0',o(_0x524b11,'ELEMENT_TABLE_COLUMN',_0x3e1093))};if('deletion'==_0xb36cbc['type'])return _0x5e69b9['length']?{'type':'deletion','content':o(_0x524b11,'*Remove:*\x20%0',o(_0x524b11,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3e1093,'\x22'+_0x5e69b9['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x524b11,'*Remove:*\x20%0',o(_0x524b11,'ELEMENT_TABLE_COLUMN',_0x3e1093))};}}),_0x40f252['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x229c13),_0x40f252['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x229c13),_0x40f252['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xea91a6),_0x40f252['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xea91a6),_0x40f252['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x50799b),_0x40f252['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x50799b),_0x40f252['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x792773),_0x40f252['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x792773);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4178c0=this['editor'],_0x1021e1=_0x4178c0['model']['document']['selection'];return(_0x21a247,_0xb2b1a3)=>{_0x4178c0['model']['change'](_0x219d28=>{const {commandName:_0x55cd25,commandParams:_0x398d59}=_0xb2b1a3;let _0x356ce7=_0x21a247[0x0]['end']['nodeBefore'];_0x398d59&&_0x398d59[0x0]&&!0x1===_0x398d59[0x0]['forceValue']&&(_0x356ce7=_0x21a247[0x0]['start']['nodeAfter']);const _0x51050c=_0x219d28['createRangeIn'](_0x356ce7);if('$graveyard'==_0x51050c['root']['rootName'])return;const _0x3663a1=Array['from'](_0x1021e1['getRanges']())['map'](_0x12f022=>_0x1e1f20['fromRange'](_0x12f022));_0x219d28['setSelection'](_0x51050c),_0x4178c0['commands']['get'](_0x55cd25)['refresh'](),_0x398d59['push']({'forceDefaultExecution':!0x0}),_0x4178c0['execute'](_0x55cd25,..._0x398d59);const _0x587645=_0x3663a1['filter'](_0x5984a8=>'$graveyard'!=_0x5984a8['root']['rootName']);_0x587645['length']>0x0&&_0x219d28['setSelection'](_0x587645);for(const _0x34bc5e of _0x3663a1)_0x34bc5e['detach']();});};}['_getCoordsForCells'](_0x3d1344){const _0x23ed8c=this['editor']['plugins']['get']('TableUtils');let _0x414b1d=Number['MAX_SAFE_INTEGER'],_0x4f79ea=Number['MIN_SAFE_INTEGER'],_0x4be7fd=Number['MAX_SAFE_INTEGER'],_0x194b23=Number['MIN_SAFE_INTEGER'];for(const _0x345343 of _0x3d1344){if('$graveyard'==_0x345343['root']['rootName'])continue;const {row:_0x36c6d9,column:_0x1b5047}=_0x23ed8c['getCellLocation'](_0x345343),_0x270e53=_0x345343['hasAttribute']('rowspan')?_0x345343['getAttribute']('rowspan')-0x1:0x0,_0x3a14d9=_0x345343['hasAttribute']('colspan')?_0x345343['getAttribute']('colspan')-0x1:0x0;_0x414b1d=_0x36c6d9<_0x414b1d?_0x36c6d9:_0x414b1d,_0x4f79ea=_0x36c6d9+_0x270e53>_0x4f79ea?_0x36c6d9+_0x270e53:_0x4f79ea,_0x4be7fd=_0x1b5047<_0x4be7fd?_0x1b5047:_0x4be7fd,_0x194b23=_0x1b5047+_0x3a14d9>_0x194b23?_0x1b5047+_0x3a14d9:_0x194b23;}return{'minRow':_0x414b1d,'maxRow':_0x4f79ea,'minColumn':_0x4be7fd,'maxColumn':_0x194b23};}['_setupColumnsRowsFixing'](){const _0x2a3b92=this['editor'],_0x2f5821=_0x2a3b92['plugins']['get']('TrackChangesEditing'),_0x1c3a34=_0x2a3b92['plugins']['get']('TableUtils');_0x2a3b92['model']['document']['on']('change:data',()=>{const _0x4db234=Array['from'](_0x2a3b92['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3027d2,data:_0x4e6192}of _0x4db234){const {group:_0x2ae672,id:_0x3c3056,subType:_0x140c77}=_0x2f5821['_splitMarkerName'](_0x3027d2);if('suggestion'!=_0x2ae672)continue;if(null!=_0x4e6192['oldRange'])continue;const _0x551f88=_0x2f5821['getSuggestion'](_0x3c3056);this['_tablePostFixingSubtypes']['includes'](_0x140c77)&&this['_tableSuggestions']['add'](_0x551f88);}},{'priority':'low'});const _0x424f70=(_0x517ffe,_0x24fd29)=>{let _0x19bb98=!0x1;const _0x3f8b92=_0x24fd29['createRangeOn'](_0x517ffe),_0x1720cc=_0x517ffe['findAncestor']('table'),_0x5183d6=_0x1c3a34['getCellLocation'](_0x517ffe);for(const _0xc5dfdc of this['_tableSuggestions']){const _0x95ed95=_0xc5dfdc['subType'],_0x5c948b=_0x95ed95['startsWith']('tablePaste'),_0x78bb2a=_0x95ed95['substr'](_0x5c948b?0xa:0x5),_0x468f93=_0x78bb2a['toLowerCase'](),_0x2ae10d=_0x468f93['substr'](0x0,0x3)+'span',_0x6019d7='min'+_0x78bb2a,_0x334cbc='max'+_0x78bb2a;if(!_0xc5dfdc['isInContent'])continue;if(_0x1720cc!=_0xc5dfdc['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xc5dfdc['isIntersectingWithRange'](_0x3f8b92))continue;const _0x3c01d9=_0x517ffe['hasAttribute'](_0x2ae10d)?_0x517ffe['getAttribute'](_0x2ae10d)-0x1:0x0,_0xa1f70d=this['_getSuggestionCoords'](_0xc5dfdc),_0x2cc9b1=_0xa1f70d[_0x6019d7],_0x1621dc=_0xa1f70d[_0x334cbc];_0x2cc9b1<=_0x5183d6[_0x468f93]&&_0x5183d6[_0x468f93]+_0x3c01d9<=_0x1621dc&&(_0xc5dfdc['addRange'](_0x3f8b92),_0x19bb98=!0x0);}return _0x19bb98;};_0x2a3b92['model']['document']['registerPostFixer'](_0x3f8ccc=>{let _0x1bb3c6=!0x1;for(const _0x3e0c60 of _0x2a3b92['model']['document']['differ']['getChanges']())if('insert'==_0x3e0c60['type']){if('tableRow'==_0x3e0c60['name']){for(const _0x2bf767 of _0x3e0c60['position']['nodeAfter']['getChildren']())_0x1bb3c6=_0x1bb3c6||_0x424f70(_0x2bf767,_0x3f8ccc);}else'tableCell'==_0x3e0c60['name']&&(_0x1bb3c6=_0x1bb3c6||_0x424f70(_0x3e0c60['position']['nodeAfter'],_0x3f8ccc));}return _0x1bb3c6;});}['_getSuggestionCoords'](_0x54dae7){return this['_getCoordsForCells'](_0x54dae7['getRanges']()['map'](_0x55ac14=>_0x55ac14['start']['nodeAfter']));}}function Ee(_0x28cbd0){return Array['from'](new Set(_0x28cbd0)['values']());}class St extends _0x19addd{static get['requires'](){return[jt];}['afterInit'](){const _0x2a58ca=this['editor'],_0x5cff54=_0x2a58ca['model']['document']['selection'],_0x1532e7=_0x2a58ca['locale'];if(!_0x2a58ca['plugins']['has']('TableEditing'))return;const _0x39f586=_0x2a58ca['plugins']['get']('TrackChangesEditing'),_0xddb1d0=_0x2a58ca['plugins']['get']('TableUtils'),_0xca5526=_0x2a58ca['plugins']['get'](jt);_0xca5526['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x39f586['enableCommand']('mergeTableCells',()=>{const _0x366b31=_0xddb1d0['getSelectionAffectedTableCells'](_0x2a58ca['model']['document']['selection']);_0x2a58ca['model']['change'](()=>{_0x39f586['markMultiRangeBlockFormat'](_0x366b31,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2a58ca['commands']['get']('mergeTableCells')['on']('execute',(_0x22c770,_0x197ce6)=>{_0x2a58ca['commands']['get']('trackChanges')['value']&&(_0x197ce6['length']>0x0&&_0x197ce6[_0x197ce6['length']-0x1]&&_0x197ce6[_0x197ce6['length']-0x1]['forceDefaultExecution']||_0x39f586['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x22c770['stop']());},{'priority':'highest'});for(const _0xb0a5b6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3006bb=_0x2a58ca['commands']['get'](_0xb0a5b6);_0x39f586['enableCommand'](_0xb0a5b6,()=>{const _0x443c5c=_0x2a58ca['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xc14aaa=>_0xc14aaa['is']('element','tableCell')),_0x4e4dfd=_0x3006bb['value'];_0x2a58ca['model']['change'](()=>{_0x39f586['markMultiRangeBlockFormat']([_0x443c5c,_0x4e4dfd],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5d8d7f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x101ac6=_0x2a58ca['commands']['get'](_0x5d8d7f);_0x39f586['enableCommand'](_0x5d8d7f,()=>{const _0x207039=_0xddb1d0['getSelectionAffectedTableCells'](_0x2a58ca['model']['document']['selection'])[0x0],_0x29a13f=_0x207039['findAncestor']('table'),{column:_0x142a81,row:_0x52840d}=_0xddb1d0['getCellLocation'](_0x207039);let _0x5dd80f=[];if('horizontally'==_0x101ac6['direction']){const _0x5d7ca6=_0xddb1d0['createTableWalker'](_0x29a13f,{'startRow':_0x52840d,'endRow':_0x52840d,'includeAllSlots':!0x0});_0x5dd80f=Array['from'](_0x5d7ca6)['map'](_0x25f0ee=>_0x25f0ee['cell']);}else{const _0xe3c6b6=_0xddb1d0['createTableWalker'](_0x29a13f,{'column':_0x142a81,'includeAllSlots':!0x0});_0x5dd80f=Array['from'](_0xe3c6b6)['map'](_0x429cbf=>_0x429cbf['cell']);}_0x2a58ca['model']['change'](_0x3ac332=>{_0x39f586['markBlockFormat'](_0x3ac332['createRangeOn'](_0x207039),{'commandName':_0x5d8d7f,'commandParams':[]},_0x5dd80f,_0x5d8d7f);});});}_0x39f586['descriptionFactory']['registerDescriptionCallback'](_0x3f06bd=>{if('formatBlock'!=_0x3f06bd['type']&&'formatInline'!=_0x3f06bd['type'])return;const {data:_0x338772}=_0x3f06bd;return _0x338772&&'mergeTableCells'==_0x338772['commandName']?{'type':'format','content':o(_0x1532e7,'*Merge\x20cells*')}:void 0x0;}),_0x39f586['descriptionFactory']['registerDescriptionCallback'](_0x49a9b4=>{if('formatBlock'!=_0x49a9b4['type']&&'formatInline'!=_0x49a9b4['type'])return;const {data:_0x50e7a5}=_0x49a9b4;return _0x50e7a5?'splitTableCellVertically'==_0x50e7a5['commandName']?{'type':'format','content':o(_0x1532e7,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x50e7a5['commandName']?{'type':'format','content':o(_0x1532e7,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3b9c7d=_0xca5526['_acceptFormatSuggestionCallbackFactory']();for(const _0x530105 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x39f586['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x530105,'accept',_0x3b9c7d);for(const _0x5ac269 of['splitTableCellVertically','splitTableCellHorizontally'])_0x39f586['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ac269,'accept',_0x3b9c7d);_0x39f586['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3b11f0=>{_0x2a58ca['model']['change'](_0xa589b7=>{const _0x6fde2e=Array['from'](_0x5cff54['getRanges']())['map'](_0x1acd63=>_0x1e1f20['fromRange'](_0x1acd63));_0xa589b7['setSelection'](_0x3b11f0),_0x2a58ca['commands']['get']('mergeTableCells')['refresh'](),_0x2a58ca['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x467bfa=_0x6fde2e['filter'](_0x26300c=>'$graveyard'!=_0x26300c['root']['rootName']);_0x467bfa['length']>0x0&&_0xa589b7['setSelection'](_0x467bfa);for(const _0xdbab0d of _0x6fde2e)_0xdbab0d['detach']();});});for(const _0x3995f2 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1364bb=_0x2a58ca['commands']['get'](_0x3995f2);_0x1364bb['on']('set:isEnabled',(_0x57f7e9,_0x585728,_0x55cd29)=>{if(_0x55cd29){const _0x131098=_0x2a58ca['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x6df8c3=>_0x6df8c3['is']('element','tableCell'));this['_areMergableCells'](_0x1364bb['value'],_0x131098)||(_0x57f7e9['return']=!0x1,_0x57f7e9['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3aadcf=this['editor']['commands']['get']('mergeTableCells'),_0x1aae0b=this['editor']['plugins']['get']('TableUtils');if(!_0x3aadcf['isEnabled'])return!0x1;const _0xdc038b=_0x1aae0b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0xf9cf87 of _0xdc038b)for(const _0x5f1a12 of _0xdc038b)if(_0xf9cf87!=_0x5f1a12&&!this['_areMergableCells'](_0xf9cf87,_0x5f1a12))return!0x1;return!0x0;}['_areMergableCells'](_0x48b5bd,_0x182701){const _0x43026d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56a62d=this['editor']['model']['createRangeOn'](_0x48b5bd),_0x483bb9=this['editor']['model']['createRangeOn'](_0x182701),_0x3f00fe=new Set(),_0x5532b5=new Set();for(const _0x2b7a78 of _0x43026d['getSuggestions']())if(('insertion'==_0x2b7a78['type']||'deletion'==_0x2b7a78['type']||'mergeTableCells'==_0x2b7a78['subType'])&&_0x2b7a78['isInContent']){for(const _0x3a3522 of _0x2b7a78['getRanges']())_0x3a3522['containsRange'](_0x56a62d,!0x0)&&_0x3f00fe['add'](_0x2b7a78['type']+':'+_0x2b7a78['author']['id']),_0x3a3522['containsRange'](_0x483bb9,!0x0)&&_0x5532b5['add'](_0x2b7a78['type']+':'+_0x2b7a78['author']['id']);}if(_0x3f00fe['size']!=_0x5532b5['size'])return!0x1;for(const _0x4abb90 of _0x3f00fe)if(!_0x5532b5['has'](_0x4abb90))return!0x1;return!0x0;}}class At extends _0x19addd{static get['requires'](){return[jt];}['afterInit'](){const _0x3f91b3=this['editor'];if(!_0x3f91b3['plugins']['has']('TableEditing'))return;const _0x2a0382=_0x3f91b3['locale'],_0x51dd62=_0x3f91b3['plugins']['get']('TrackChangesEditing');_0x51dd62['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x51dd62['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x51dd62['registerBlockAttribute']('headingRows'),_0x51dd62['registerBlockAttribute']('headingColumns'),_0x51dd62['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2a0382,'FORMAT_HEADER_ROW')),_0x51dd62['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2a0382,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x110455=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ff939=this['editor']['plugins']['get']('TableUtils'),_0x4ef558=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x5c8cdc({showActiveMarker:_0x4daacd=!0x0,setDataAttribute:_0x59aa02=!0x0}={}){return(_0x1c7833,_0x13484a,_0x2b125c)=>{const {type:_0x3acae3,id:_0x4d16ee}=_0x110455['_splitMarkerName'](_0x13484a['markerName']),_0x3858c3=_0x110455['getSuggestion'](_0x4d16ee),_0x2d4488=_0x3858c3['data'];if('formatBlock'!=_0x3858c3['type']||!_0x2d4488||'setTableColumnHeader'!=_0x2d4488['commandName'])return;if(_0x13484a['item'])return void _0x1c7833['stop']();if(!_0x2b125c['consumable']['consume'](_0x13484a['markerRange'],_0x1c7833['name']))return;const _0x4ce358=_0x13484a['markerRange']['start']['nodeAfter'],_0x270569=_0x13484a['markerRange']['end']['nodeBefore'],_0x4ccb60=_0x4ce358['parent']['parent'],{column:_0x1313f8}=_0x1ff939['getCellLocation'](_0x4ce358),{column:_0x103be6}=_0x1ff939['getCellLocation'](_0x270569);for(let _0x358c72=_0x1313f8;_0x358c72<=_0x103be6;_0x358c72++){const _0x403ec0=_0x1ff939['createTableWalker'](_0x4ccb60,{'column':_0x358c72,'includeAllSlots':!0x1});for(const _0x27906b of _0x403ec0){const _0xe2422e=_0x27906b['cell'],_0x54216d=_0x2b125c['mapper']['toViewElement'](_0xe2422e);_0x2b125c['writer']['addClass']('ck-suggestion-marker-'+_0x3acae3,_0x54216d),_0x59aa02&&_0x2b125c['writer']['setAttribute']('data-suggestion',_0x4d16ee,_0x54216d),_0x2b125c['mapper']['bindElementToMarker'](_0x54216d,_0x13484a['markerName']),_0x4daacd&&(_0x110455['activeMarkers']['includes'](_0x13484a['markerName'])?_0x2b125c['writer']['addClass']('ck-suggestion-marker--active',_0x54216d):_0x2b125c['writer']['removeClass']('ck-suggestion-marker--active',_0x54216d));}}};}_0x110455['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4ef558),_0x110455['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4ef558),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5c8cdc(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x29a17e,_0x5471ed,_0x2e99eb)=>{_0x2e99eb['options']['showSuggestionHighlights']&&_0x5c8cdc({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x29a17e,_0x5471ed,_0x2e99eb);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x55513e,_0x3acb5c,_0x489674)=>{const {type:_0x305ee0,id:_0x389c89}=_0x110455['_splitMarkerName'](_0x3acb5c['markerName']),_0x492ef0=_0x110455['getSuggestion'](_0x389c89),_0x382ef7=_0x492ef0['data'];if('formatBlock'!=_0x492ef0['type']||!_0x382ef7||'setTableColumnHeader'!=_0x382ef7['commandName'])return;const _0x110190=_0x489674['mapper']['markerNameToElements'](_0x3acb5c['markerName']);if(_0x110190){for(const _0x27390f of _0x110190)_0x489674['writer']['removeClass']('ck-suggestion-marker-'+_0x305ee0,_0x27390f),_0x489674['writer']['removeClass']('ck-suggestion-marker--active',_0x27390f),_0x489674['writer']['removeAttribute']('data-suggestion',_0x27390f),_0x489674['mapper']['unbindElementFromMarkerName'](_0x27390f,_0x3acb5c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3abd67=this['editor'],_0x2c755e=_0x3abd67['locale'];function _0x513d7a(_0x3c19eb){return{'type':'format','content':o(_0x2c755e,'*Format:*\x20%0',_0x3c19eb)};}_0x3abd67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x547d06=>{if('formatBlock'!=_0x547d06['type'])return;const {data:_0x1eb335}=_0x547d06;if(_0x1eb335){if('setTableRowHeader'==_0x1eb335['commandName']){const _0x1f489e=_0x1eb335['commandParams'][0x0]['forceValue'];return _0x513d7a(o(_0x2c755e,_0x1f489e?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1eb335['commandName']){const _0x372440=_0x1eb335['commandParams'][0x0]['forceValue'];return _0x513d7a(o(_0x2c755e,_0x372440?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x2ae41d=>[_0x2ae41d,null]));class It extends _0x19addd{static get['requires'](){return[jt];}['afterInit'](){const _0x3cc083=this['editor'];if(!_0x3cc083['plugins']['has']('TableClipboard'))return;const _0x1e6ab8=_0x3cc083['plugins']['get']('TrackChangesEditing'),_0x2560ba=_0x3cc083['plugins']['get']('TableUtils'),_0x4efac4=_0x3cc083['plugins']['get'](jt),_0x3a8550=_0x3cc083['plugins']['get']('TableClipboard');_0x4efac4['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3cc083['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3cc083['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x386db5=null;_0x3cc083['model']['on']('insertContent',(_0x2f18f4,_0x142527)=>{const [_0x4b54f9,_0x2f5939]=_0x142527,_0x59faf6=_0x142527[_0x142527['length']-0x1];_0x59faf6&&_0x59faf6['forceDefaultExecution']||_0x1e6ab8['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x563620,_0x332dd2,_0x396810,_0x2902f4,_0x9be78c){if(_0x332dd2&&!_0x332dd2['is']('documentSelection'))return!0x1;const _0x1803e2=_0x9be78c['getTableIfOnlyTableInContent'](_0x563620,_0x396810);if(!_0x1803e2||!he(_0x1803e2,void 0x0,_0x2902f4))return!0x1;const _0x5a5d73=_0x2902f4['getSelectionAffectedTableCells'](_0x396810['document']['selection']);if(!_0x5a5d73['length'])return!0x1;const _0x1414a7=_0x5a5d73[0x0]['findAncestor']('table'),_0x10d079=_0x2902f4['getRowIndexes'](_0x5a5d73),_0x3415ec=_0x2902f4['getColumnIndexes'](_0x5a5d73),_0x4e51f4={'startRow':_0x10d079['first'],'endRow':_0x10d079['last'],'startColumn':_0x3415ec['first'],'endColumn':_0x3415ec['last']};return 0x1==_0x5a5d73['length']&&(_0x4e51f4['endRow']+=_0x2902f4['getRows'](_0x1803e2)-0x1,_0x4e51f4['endColumn']+=_0x2902f4['getColumns'](_0x1803e2)-0x1),he(_0x1414a7,_0x4e51f4,_0x2902f4);}(_0x4b54f9,_0x2f5939,_0x3cc083['model'],_0x2560ba,_0x3a8550)&&(_0x2f18f4['stop'](),_0x386db5={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3cc083['model']['change'](()=>{_0x3cc083['model']['insertContent'](_0x142527[0x0],_0x142527[0x1],_0x142527[0x2],{'forceDefaultExecution':!0x0});const _0x3067ed=_0x7a56b4(),{rowInsertionRanges:_0x426256,columnInsertionRanges:_0x56ce33,insertionRanges:_0x5d4033,deletionRanges:_0x3bd3b8,cells:_0x591e08}=_0x386db5;_0x426256['length']&&_0x1e6ab8['markMultiRangeInsertion'](_0x426256,'tablePasteRow',{'tablePasteChainId':_0x3067ed}),_0x56ce33['length']&&_0x1e6ab8['markMultiRangeInsertion'](_0x56ce33,'tablePasteColumn',{'tablePasteChainId':_0x3067ed}),_0x5d4033['length']&&(_0x1e6ab8['markMultiRangeInsertion'](_0x5d4033,'tablePaste',{'tablePasteChainId':_0x3067ed,'skipNestingCheck':!0x0}),_0x5d4033['forEach'](_0x3385ee=>_0x3385ee['detach']?.())),_0x3bd3b8['length']&&(_0x1e6ab8['markMultiRangeDeletion'](_0x3bd3b8,'tablePaste',{'tablePasteChainId':_0x3067ed,'skipNestingCheck':!0x0}),_0x3bd3b8['forEach'](_0x587c2a=>_0x587c2a['detach']?.()));const _0x4a2847=_0x1e6ab8['markMultiRangeBlockFormat'](_0x591e08['map'](({element:_0x53852b})=>_0x53852b),{'formatGroupId':_0x7a56b4()},[],'tablePasteCell',{'tablePasteChainId':_0x3067ed});if(_0x4a2847){const _0x5d8687=_0x4a2847['getMarkers'](),_0x195090=[];for(const {element:_0x483956,attributes:_0x4ba98c}of _0x591e08){if(!_0x4ba98c)continue;const _0x59bc10=_0x3cc083['model']['createRangeOn'](_0x483956),_0x2342c1=_0x5d8687['find'](_0x59b1fe=>_0x59b1fe['getRange']()['isEqual'](_0x59bc10));_0x2342c1&&_0x195090['push']([_0x2342c1['name'],_0x4ba98c]);}_0x195090['length']&&_0x4a2847['setAttribute']('markerAttributes',Object['fromEntries'](_0x195090));}_0x386db5=null;}));},{'priority':_0x487cda['high']+0xa}),_0x3cc083['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3c4fa1,_0x5ddc86)=>{const [_0x4e6537,_0x931144,,_0x58c21d]=_0x5ddc86;if(!_0x386db5)return;_0x3c4fa1['stop']();const _0x22083c=_0x4e6537['cell'],_0x360c97=_0x931144,_0xae26b9=Pe(_0x22083c),_0x133fd0=Pe(_0x360c97);_0x3c4fa1['return']=_0x22083c;let _0x415397=null,_0x498924=null;if(_0x133fd0||_0xae26b9){if(_0xae26b9&&!_0x133fd0){_0x58c21d['remove'](_0x22083c['getChild'](0x0));for(const _0x427694 of Array['from'](_0x360c97['getChildren']()))_0x58c21d['insert'](_0x427694,_0x22083c,'end');const _0x4b3ffb=_0x386db5['rowInsertionIndexes']['includes'](_0x4e6537['row']),_0x3efc34=_0x386db5['columnInsertionIndexes']['includes'](_0x4e6537['column']);_0x4b3ffb||_0x3efc34||(_0x415397=_0x1e1f20['fromRange'](_0x58c21d['createRangeIn'](_0x22083c)));}else _0x133fd0&&!_0xae26b9&&(_0x498924=_0x58c21d['createRangeIn'](_0x22083c));}else{const _0x5d843d=_0x58c21d['createElement']('tableCellSuggestion'),_0x4ae185=_0x58c21d['createElement']('tableCellSuggestion');_0x58c21d['wrap'](_0x58c21d['createRangeIn'](_0x22083c),_0x4ae185),_0x58c21d['insert'](_0x5d843d,_0x22083c,0x0);for(const _0x393cfb of Array['from'](_0x360c97['getChildren']()))_0x58c21d['insert'](_0x393cfb,_0x5d843d,'end');_0x415397=_0x1e1f20['fromRange'](_0x58c21d['createRangeOn'](_0x5d843d)),_0x498924=_0x1e1f20['fromRange'](_0x58c21d['createRangeOn'](_0x4ae185));}const _0x53e2e3=Array['from'](_0x360c97['getAttributes']())['filter'](([_0x40d70d])=>ge['includes'](_0x40d70d));_0x386db5['cells']['push']({'element':_0x22083c,'attributes':_0x53e2e3['length']?Object['fromEntries'](_0x53e2e3):null}),_0x415397&&_0x386db5['insertionRanges']['push'](_0x415397),_0x498924&&_0x386db5['deletionRanges']['push'](_0x498924);},{'priority':'high'}),_0x2560ba['on']('insertColumns',(_0x1499f1,_0x4c8a05)=>{const [_0x3babcb,_0x27b8b3={}]=_0x4c8a05;if(!_0x386db5)return;const _0x163877=_0x27b8b3['at']||0x0,_0xb1df30=_0x27b8b3['columns']||0x1;_0x386db5['columnInsertionIndexes']=new Array(_0xb1df30)['fill'](_0x163877)['map']((_0x388603,_0x18e631)=>_0x388603+_0x18e631);for(const {cell:_0x39bc49}of _0x2560ba['createTableWalker'](_0x3babcb,{'startColumn':_0x163877,'endColumn':_0x163877+_0xb1df30-0x1}))_0x386db5['columnInsertionRanges']['push'](_0x3cc083['model']['createRangeOn'](_0x39bc49));},{'priority':'low'}),_0x2560ba['on']('insertRows',(_0x4fe0b9,_0x5f15f0)=>{const [_0x177c06,_0x89f3bf={}]=_0x5f15f0;if(!_0x386db5)return;const _0x1cd14e=_0x89f3bf['at']||0x0,_0x33bcd1=_0x89f3bf['rows']||0x1;_0x386db5['rowInsertionIndexes']=new Array(_0x33bcd1)['fill'](_0x1cd14e)['map']((_0x3283a3,_0x501458)=>_0x3283a3+_0x501458);for(const {cell:_0x53d102}of _0x2560ba['createTableWalker'](_0x177c06,{'startRow':_0x1cd14e,'endRow':_0x1cd14e+_0x33bcd1-0x1}))_0x386db5['rowInsertionRanges']['push'](_0x3cc083['model']['createRangeOn'](_0x53d102));},{'priority':'low'}),_0x1e6ab8['descriptionFactory']['registerDescriptionCallback'](_0x2c11f5=>{if(_0x2c11f5['subType']&&_0x2c11f5['subType']['startsWith']('tablePaste'))return _0x2c11f5['previous']?{}:{'type':'insertion','content':o(_0x3cc083['locale'],'*Replace\x20table\x20cells*')};});const _0x2e30f2=()=>!0x1;for(const _0x1bb493 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1e6ab8['_suggestionFactory']['registerCustomCallback']('insertion',_0x1bb493,'join',_0x2e30f2),_0x1e6ab8['_suggestionFactory']['registerCustomCallback']('deletion',_0x1bb493,'join',_0x2e30f2),_0x1e6ab8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1bb493,'join',_0x2e30f2);_0x1e6ab8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2e30f2),_0x1e6ab8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x9e2171,_0x55b649,_0x508a23)=>{const _0xa2e8d6=_0x9e2171['map'](_0x278759=>_0x278759['getContainedElement']())['filter'](_0x3ab6ca=>_0x3ab6ca),_0x53dd4b=new Map(_0xa2e8d6['map'](_0x4d48ca=>[_0x4d48ca,null]));if(_0x386db5){for(const {element:_0x5a0bcf,attributes:_0x30f296}of _0x386db5['cells'])_0x30f296&&_0x53dd4b['set'](_0x5a0bcf,_0x30f296);}else{if(_0x508a23&&_0x508a23['markerAttributes'])for(const [_0x25cc31,_0x35bbf8]of Object['entries'](_0x508a23['markerAttributes'])){const _0x2b3125=_0x3cc083['model']['markers']['get'](_0x25cc31),_0x3f8c2c=_0x2b3125?_0x2b3125['getRange']()['getContainedElement']():null;_0x3f8c2c&&_0x53dd4b['set'](_0x3f8c2c,_0x35bbf8);}}_0x3cc083['model']['change'](_0x1ea557=>{for(const [_0x25479b,_0x9a543b]of _0x53dd4b)_0x1ea557['setAttributes']({...Ce,..._0x9a543b},_0x25479b);});});const _0x300b4b=(_0x3636b7,_0x18b9c5)=>{_0x1e6ab8['_suggestionFactory']['registerCustomCallback'](_0x3636b7,'tablePaste',_0x18b9c5,(_0x46dfa,_0x4c7cd4,_0x22c6dc)=>{_0x3cc083['model']['change'](_0x3e5ca7=>{const _0x326dda=[];for(const _0x1d7ce3 of _0x46dfa){const _0x1c50be=_0x1d7ce3['start']['nodeAfter'];_0x1c50be['is']('element','tableCellSuggestion')&&_0x326dda['push'](_0x1c50be);}_0x1e6ab8['_suggestionFactory']['getSuggestionCallback'](_0x3636b7,null,_0x18b9c5)(_0x46dfa,_0x4c7cd4,_0x22c6dc);for(const _0xdc11fe of _0x326dda)'$graveyard'!=_0xdc11fe['root']['rootName']&&_0x3e5ca7['unwrap'](_0xdc11fe);});});};_0x300b4b('insertion','accept'),_0x300b4b('insertion','discard'),_0x300b4b('deletion','accept'),_0x300b4b('deletion','discard'),_0x1e6ab8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2e0821=>{const _0x777c=_0x2e0821['map'](_0x22d2b5=>_0x22d2b5['getContainedElement']()),_0x9def85=_0x777c[0x0]['findAncestor']('table'),{minRow:_0x345247,maxRow:_0x2796b3}=_0x4efac4['_getCoordsForCells'](_0x777c);_0x2560ba['removeRows'](_0x9def85,{'at':_0x345247,'rows':_0x2796b3-_0x345247+0x1});}),_0x1e6ab8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5096f4=>{const _0x5880bc=_0x5096f4['map'](_0x2c37a6=>_0x2c37a6['getContainedElement']()),_0xb567ed=_0x5880bc[0x0]['findAncestor']('table'),{minColumn:_0x1bb468,maxColumn:_0x20811d}=_0x4efac4['_getCoordsForCells'](_0x5880bc);_0x2560ba['removeColumns'](_0xb567ed,{'at':_0x1bb468,'columns':_0x20811d-_0x1bb468+0x1});});const _0x26a40f=(_0x2906fc,_0x5e4c49)=>{if(!_0x5e4c49['subType']||!_0x5e4c49['subType']['startsWith']('tablePaste'))return;const _0x3d93b6=_0x5e4c49['attributes']['tablePasteChainId'],_0xdb784e=_0x1e6ab8['getSuggestions']()['filter'](_0xd49e48=>_0xd49e48['isInContent']&&_0xd49e48['attributes']&&_0xd49e48['attributes']['tablePasteChainId']==_0x3d93b6);_0xdb784e['length']&&_0x5e4c49['getAllAdjacentSuggestions']()['length']!=_0xdb784e['length']&&_0xdb784e['reduce']((_0x2055d6,_0x415d86)=>(_0x2055d6['next']=_0x415d86,_0x415d86['previous']=_0x2055d6,_0x415d86));};function _0x3a5952(_0x8c6594,_0x5234e6=!0x0){const {id:_0x34c447}=_0x1e6ab8['_splitMarkerName'](_0x8c6594['markerName']),_0x244990=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x39b595=_0x1e6ab8['activeMarkers']['includes'](_0x8c6594['markerName']);return _0x39b595&&_0x244990['push']('ck-suggestion-marker--active'),{'classes':_0x244990,'attributes':{'data-suggestion':_0x34c447},'priority':_0x39b595&&_0x5234e6?0xbc2:0xbb8};}_0x1e6ab8['on']('suggestionLoaded',_0x26a40f,{'priority':'high'}),_0x1e6ab8['on']('suggestionUnloaded',_0x26a40f,{'priority':'high'}),_0x3cc083['model']['document']['registerPostFixer'](()=>{let _0x105a06=!0x1;const _0x77ddbc=Array['from'](_0x3cc083['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x41b478,data:_0x34188}of _0x77ddbc){const {group:_0x5dcdff,type:_0x391020,id:_0x597b94}=_0x1e6ab8['_splitMarkerName'](_0x41b478);if('suggestion'!=_0x5dcdff||'deletion'!=_0x391020||_0x34188['oldRange'])continue;if(!_0x1e6ab8['hasSuggestion'](_0x597b94))continue;const _0x4f9e4d=_0x1e6ab8['getSuggestion'](_0x597b94)['getRanges'](),_0x41dcf7=_0x3cc083['plugins']['get']('Users')['me'];for(const _0x17129c of _0x1e6ab8['getSuggestions']()){if(!_0x17129c['isInContent']||_0x17129c['author']!=_0x41dcf7)continue;if('formatBlock'!=_0x17129c['type']||'tablePasteCell'!=_0x17129c['subType'])continue;if(_0x17129c['getRanges']()['every'](_0xc50fb=>_0x4f9e4d['some'](_0x47fdd2=>_0x47fdd2['containsRange'](_0xc50fb,!0x0)))){for(const _0x512453 of _0x17129c['getAllAdjacentSuggestions']())_0x512453['isInContent']&&(_0x512453['discard'](),_0x105a06=!0x0);}}}return _0x105a06;}),_0x3cc083['model']['document']['registerPostFixer'](_0x11da74=>{const _0x30da00=_0x3cc083['commands']['get']('redo');if(!_0x30da00||!_0x30da00['_createdBatches']['has'](_0x11da74['batch']))return!0x1;let _0x2fb5d4=!0x1;const _0x42fbaa=_0x3cc083['plugins']['get']('Users')['me'],_0x4c15bf=_0x3cc083['model']['document']['differ']['getChanges'](),_0x1907b4=Array['from'](_0x3cc083['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x41c12f,data:_0x50d461})=>{const {group:_0x5433e9,subType:_0x36a2f0,authorId:_0x356ecf}=_0x1e6ab8['_splitMarkerName'](_0x41c12f);return'suggestion'==_0x5433e9&&'tablePaste'==_0x36a2f0&&_0x356ecf==_0x42fbaa['id']&&!_0x50d461['oldRange'];});for(const _0x261f53 of _0x4c15bf){if('insert'!=_0x261f53['type']||'tableCellSuggestion'!=_0x261f53['name']||0x1!=_0x261f53['length'])continue;const _0xf50dfa=_0x11da74['createRange'](_0x261f53['position'],_0x261f53['position']['getShiftedBy'](0x1));if(!_0x1907b4['find'](({data:_0xfecde2})=>_0xfecde2['newRange']['isEqual'](_0xf50dfa))){for(const {name:_0x25a5c7,data:_0x238449}of _0x1907b4)if(_0xf50dfa['containsRange'](_0x238449['newRange'])){_0x11da74['updateMarker'](_0x25a5c7,{'range':_0xf50dfa}),_0x2fb5d4=!0x0;break;}}}return _0x2fb5d4;}),_0x3cc083['model']['document']['registerPostFixer'](_0x407e71=>{let _0x472f63=!0x1;const _0x1fad71=_0x3cc083['plugins']['get']('Users')['me'],_0x83e97c=_0x1e6ab8['getSuggestions']()['filter'](_0xa63596=>_0xa63596['isInContent']&&_0xa63596['author']==_0x1fad71),_0x5573c4=new Set(),_0x44932a=new Set();for(const _0x93536 of _0x83e97c)if('tablePaste'==_0x93536['subType'])for(const _0x496bfc of _0x93536['getMarkers']()){const _0x557a54=_0x496bfc['getRange']()['getContainedElement']();if(_0x557a54){if(_0x557a54['is']('element','tableCellSuggestion')&&Pe(_0x557a54)){_0x93536['removeMarker'](_0x496bfc['name']),_0x5573c4['add'](_0x557a54),_0x472f63=!0x0;const _0x2ec42d=_0x557a54['nextSibling'],_0x101506=_0x557a54['previousSibling'],_0x408ff4=_0x2ec42d&&_0x2ec42d['is']('element','tableCellSuggestion'),_0x466236=_0x101506&&_0x101506['is']('element','tableCellSuggestion');_0x408ff4&&!_0x5573c4['has'](_0x2ec42d)&&_0x44932a['add'](_0x2ec42d),_0x466236&&!_0x5573c4['has'](_0x101506)&&_0x44932a['add'](_0x101506);}else _0x557a54['is']('element','paragraph')&&_0x557a54['isEmpty']&&(_0x93536['removeMarker'](_0x496bfc['name']),_0x472f63=!0x0);}}else{if('tablePasteCell'==_0x93536['subType']){if(!_0x93536['attributes']||!_0x93536['attributes']['tablePasteChainId'])continue;const _0x412e79=_0x93536['attributes']['markerAttributes'];if(_0x412e79&&Object['keys'](_0x412e79)['length'])continue;const _0x5b1e5d=_0x93536['attributes']['tablePasteChainId'];let _0x484653=!0x0,_0x152459=!0x0;for(const _0x14a58e of _0x83e97c)if(_0x14a58e['subType']&&_0x14a58e['subType']['startsWith']('tablePaste')){if(!_0x14a58e['attributes']['tablePasteChainId']){_0x152459=!0x1;break;}if(_0x14a58e['id']!=_0x93536['id']&&_0x14a58e['attributes']['tablePasteChainId']==_0x5b1e5d){_0x484653=!0x1;break;}}_0x152459&&_0x484653&&(_0x93536['removeMarkers'](),_0x472f63=!0x0);}}for(const _0x30b30b of _0x5573c4)_0x407e71['remove'](_0x30b30b);for(const _0x293337 of _0x44932a)_0x407e71['unwrap'](_0x293337);return _0x472f63;}),_0x3cc083['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x304c58,_0x535c92)=>_0x3a5952(_0x304c58),'converterPriority':'high'}),_0x3cc083['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x332a90,_0x7c35b0)=>_0x7c35b0['options']['showSuggestionHighlights']?_0x3a5952(_0x332a90,!0x1):null,'converterPriority':'high'});const _0x2064db=_0x3cc083['editing']['view'];this['listenTo'](_0x2064db['document'],'clipboardOutput',(_0x155b08,_0x4c2016)=>{const _0x292884=[];for(const _0x3c14b3 of _0x2064db['createRangeIn'](_0x4c2016['content'])['getItems']())_0x3c14b3['is']('element','suggestion-td')&&_0x292884['push'](_0x3c14b3);_0x2064db['change'](_0x58e3b6=>{for(const _0x12cad3 of _0x292884)_0x58e3b6['move'](_0x58e3b6['createRangeIn'](_0x12cad3),_0x58e3b6['createPositionBefore'](_0x12cad3)),_0x58e3b6['remove'](_0x12cad3);});});}}function Pe(_0x3ed50e){if(_0x3ed50e['isEmpty'])return!0x0;const _0x7f72a8=_0x3ed50e['getChild'](0x0);return _0x7f72a8['is']('element','paragraph')&&_0x7f72a8['isEmpty'];}function he(_0x3e8914,_0xb2ff7a={},_0x26e698){for(const {isAnchor:_0x407885,cellHeight:_0x23048b,cellWidth:_0xeb3b08}of _0x26e698['createTableWalker'](_0x3e8914,{'includeAllSlots':!0x0,..._0xb2ff7a}))if(!_0x407885||0x1!=_0x23048b||0x1!=_0xeb3b08)return!0x1;return!0x0;}class vt extends _0x19addd{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x202401=this['editor']['plugins']['get']('TrackChangesEditing');_0x202401['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x202401['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x202401['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x202401['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x202401['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x202401['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x490220,_0x3adf30){const _0x286a85=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e160d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x10d53d=_0x3adf30['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3d1549=_0x5e160d['getColumnGroupElement'](_0x10d53d);let _0x33851a=_0x3d1549?_0x5e160d['getTableColumnsWidths'](_0x3d1549):null,_0x15b518=_0x10d53d['getAttribute']('tableWidth')||null;const _0x42fedc=_0x3adf30['tableWidth']||_0x15b518,_0x21e52c=_0x3adf30['columnWidths']||_0x33851a,_0x201f55=this['editor']['plugins']['get']('Users')['me'];for(const _0x59d70f of _0x286a85['getSuggestions']()){const _0x3aed2f=_0x59d70f['getContainedElement']();if('resizeTable'===_0x59d70f['subType']&&_0x3aed2f===_0x10d53d){_0x59d70f['author']!==_0x201f55&&_0x59d70f['discard']();const _0x17ff34=_0x59d70f['data']['commandParams'];_0x15b518=_0x17ff34[0x0]['tableWidth'],_0x33851a=_0x17ff34[0x0]['columnWidths'];break;}}_0x490220({'table':_0x10d53d,'tableWidth':_0x42fedc,'columnWidths':_0x21e52c}),_0x286a85['markBlockFormat'](_0x10d53d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x15b518,'columnWidths':_0x33851a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5d77e0){if('formatBlock'!=_0x5d77e0['type']&&'formatInline'!=_0x5d77e0['type'])return;const {data:_0x69b911}=_0x5d77e0;if(_0x69b911&&'resizeTable'===_0x69b911['formatGroupId']){const _0x2c8124='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2c8124)};}}}class Ct extends _0x19addd{['afterInit'](){const _0x5f4253=this['editor'];_0x5f4253['plugins']['has']('Template')&&_0x5f4253['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x19addd{['afterInit'](){const _0x5a42d3=this['editor'];if(!_0x5a42d3['commands']['get']('insertTableOfContents'))return;_0x5a42d3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x30f870=_0x5a42d3['plugins']['get']('TrackChangesEditing'),_0x348336=_0x5a42d3['locale'];_0x30f870['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5d3cc4=>o(_0x348336,'ELEMENT_TABLE_OF_CONTENTS',_0x5d3cc4));}}class Dt extends _0x19addd{['afterInit'](){const _0xa98fb2=this['editor'];if(!_0xa98fb2['plugins']['has']('Title'))return;const _0x42d228=_0xa98fb2['plugins']['get']('TrackChangesEditing');_0x42d228['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xa98fb2['locale'],'ELEMENT_TITLE')),_0xa98fb2['model']['document']['registerPostFixer'](_0x1b0edd=>{let _0x270837=!0x1;const _0x50d108=Array['from'](_0xa98fb2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xaa555d,data:_0x31dca9}of _0x50d108){const {group:_0x3d9b37}=_0x42d228['_splitMarkerName'](_0xaa555d);if('suggestion'!==_0x3d9b37||!_0x31dca9['newRange'])continue;const _0x2717f0=_0x31dca9['newRange'],_0x3de2b3=_0x2717f0['end']['nodeBefore'];if(!_0x3de2b3||!_0x3de2b3['is']('element','title-content'))continue;if(!_0x2717f0['start']['isTouching'](_0x2717f0['end']))continue;const _0x2330ff=_0xa98fb2['model']['schema']['getNearestSelectionRange'](_0x2717f0['end'],'forward');if(_0x2330ff&&_0x2330ff['isCollapsed']){const _0xd290d0=_0x1b0edd['createRange'](_0x2717f0['start'],_0x2330ff['start']);_0xd290d0['isEqual'](_0x2717f0)||(_0x1b0edd['updateMarker'](_0xaa555d,{'range':_0xd290d0}),_0x270837=!0x0);}_0x270837||(_0x1b0edd['removeMarker'](_0xaa555d),_0x270837=!0x0);}return _0x270837;});}}class Nt extends _0x19addd{['afterInit'](){const _0x54c180=this['editor'],_0x377e48=_0x54c180['plugins']['get']('TrackChangesEditing');_0x54c180['plugins']['has']('UndoEditing')&&(_0x377e48['enableCommand']('undo'),_0x377e48['enableCommand']('redo'));}}class Mt extends _0x19addd{static get['requires'](){return[jt];}['afterInit'](){const _0x517d73=this['editor'];if(!_0x517d73['plugins']['has']('TableCaptionEditing'))return;_0x517d73['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x19addd{['tableProperties'];['tableCellProperties'];constructor(_0x2f75f7){super(_0x2f75f7),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 _0x17a828=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x188466 of this['tableProperties'])_0x17a828['enableCommand'](_0x188466,(_0x306b19,_0x91c462)=>{const _0x31690=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x188466,[_0x31690],this['tableProperties'],'tableProperties',_0x306b19,_0x91c462);});_0x17a828['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x17a828['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x17a828['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3d9be0,_0x78ca58)=>this['handleDiscardAction'](this['tableProperties'],_0x3d9be0,_0x78ca58)),_0x17a828['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x26fbe6 of this['tableCellProperties'])_0x17a828['enableCommand'](_0x26fbe6,(_0x5dd6c3,_0x23a278)=>{const _0x2e2a59=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x26fbe6,_0x2e2a59,this['tableCellProperties'],'tableCellProperties',_0x5dd6c3,_0x23a278);});_0x17a828['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x17a828['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x17a828['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x581d47,_0x1c5189)=>this['handleDiscardAction'](this['tableCellProperties'],_0x581d47,_0x1c5189)),_0x17a828['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x17a828['descriptionFactory']['registerDescriptionCallback'](_0x33c897=>this['handleSuggestionDescription'](_0x33c897));}['_handlePropertyChange'](_0x3f53e4,_0x179a8b,_0xc095f4,_0x54a7cb,_0x2d41f5,_0x2e03b2){const _0x5af776=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2e03b2['batch'],()=>{for(const _0x4eba48 of _0x179a8b){if(this['_getSuggestion'](_0x4eba48,_0x54a7cb))_0x2d41f5(_0x2e03b2);else{const _0x2631cb={};for(const _0x35c0e8 of _0xc095f4){const _0x51c977=_0x4eba48['getAttribute'](_0x35c0e8);void 0x0!==_0x51c977&&(_0x2631cb[_0x35c0e8]=_0x51c977);}_0x2d41f5(_0x2e03b2),_0x5af776['markBlockFormat'](_0x4eba48,{'commandParams':[_0x2631cb]},[],_0x54a7cb);}}});}['handleDiscardAction'](_0x850157,_0x29dace,_0x48ea2f){const _0x57d274=_0x29dace[0x0]['start']['nodeAfter'],_0x44fe55=_0x48ea2f['commandParams'][0x0];this['editor']['model']['change'](_0x601639=>{for(const _0x31a7f8 of _0x850157)void 0x0!==_0x44fe55[_0x31a7f8]?_0x601639['setAttribute'](_0x31a7f8,_0x44fe55[_0x31a7f8],_0x57d274):_0x601639['removeAttribute'](_0x31a7f8,_0x57d274);});}['handleSuggestionDescription'](_0x360de8){if(_0x360de8['data'])switch(_0x360de8['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'](_0x529250,_0x20fe03){const _0x13d1ce=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x356200 of _0x13d1ce['getSuggestions']({'skipNotAttached':!0x0})){const _0x4a7ecb=_0x356200['getContainedElement']();if(_0x356200['subType']===_0x20fe03&&_0x4a7ecb===_0x529250)return _0x356200;}return null;}}const m='$elementName';class p extends _0x19addd{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x38b0e5,_0x7b4ca,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(_0x215e55){function _0x339f26(_0x53afd2){return _0x53afd2['map'](_0x42828a=>String['fromCharCode'](_0x42828a))['join']('');}super(_0x215e55),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4837ee,_0x5d3f36,_0x5a6c6d,_0x1c210c)=>{this['_model']['change'](()=>{for(const _0x584f73 of[..._0x1c210c,..._0x5a6c6d])this['_model']['markers']['has'](_0x584f73)&&_0x215e55['editing']['reconvertMarker'](_0x584f73);});}),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']=_0x215e55['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(),_0x215e55['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x215e55['config']['get']('trackChanges.trackFormatChanges'),_0x215e55['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x215e55['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x215e55,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x339f26([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x339f26([0x34,0x30,0x34,0x38,0x31,0x32,0x31,0x32]);}['init'](){const _0x29bb5a=this['editor'],_0x3e416b=(_0x3c08ed,_0x14a46e)=>{if('attribute'!=_0x3c08ed)return'ck-suggestion-marker-'+_0x3c08ed;const _0x1d5521=_0x14a46e['split']('|')[0x0];return this['_isBlockAttribute'](_0x1d5521)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x29bb5a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5f11bb=>{const {id:_0x2bc03f,type:_0x437a47,subType:_0x3fc426}=this['_splitMarkerName'](_0x5f11bb['markerName']),_0x73902d=['ck-suggestion-marker',_0x3e416b(_0x437a47,_0x3fc426)];let _0x1708bc=0xbb8;return this['activeMarkers']['includes'](_0x5f11bb['markerName'])&&(_0x73902d['push']('ck-suggestion-marker--active'),_0x1708bc=0xbc2),'deletion'==_0x437a47&&(_0x1708bc+=0x5),{'classes':_0x73902d,'attributes':{'data-suggestion':_0x2bc03f},'priority':_0x1708bc};}}),_0x29bb5a['conversion']['for']('dataDowncast')['add'](_0x5870e6=>{_0x5870e6['on']('addMarker:suggestion',(_0x4a51a3,_0x5b7618,_0x49f86b)=>{if(!_0x49f86b['options']['showSuggestionHighlights'])return;const _0x1e4f68=_0x5b7618['item'];if(!_0x1e4f68)return;const _0x2efa8d=_0x49f86b['mapper']['toViewElement'](_0x1e4f68);_0x29bb5a['model']['schema']['isObject'](_0x1e4f68)&&_0x2efa8d&&!_0x2efa8d['getCustomProperty']('widget')&&_0x2efa8d['is']('containerElement')&&_0x394935(_0x2efa8d,_0x49f86b['writer']);},{'priority':'high'});}),_0x29bb5a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1a7cb9,_0x1b7fe6)=>{if(!_0x1b7fe6['options']['showSuggestionHighlights'])return null;const {type:_0x345046,subType:_0x462f99}=this['_splitMarkerName'](_0x1a7cb9['markerName']);return{'classes':['ck-suggestion-marker',_0x3e416b(_0x345046,_0x462f99)],'priority':0xbb8};}});const _0x3b3546=({showActiveMarkers:_0x629f5b=!0x0,isAttributeSuggestion:_0x36ac16=!0x1}={})=>(_0xa39c7a,_0x76927a,_0x9ec7f9)=>{if(!_0x76927a['item'])return;const {id:_0x171614}=this['_splitMarkerName'](_0x76927a['markerName']);if(_0x36ac16){const _0x5755fa=this['_suggestions']['get'](_0x171614),_0x115fb5=this['_getAttributeKey'](_0x5755fa);if(!this['_isBlockAttribute'](_0x115fb5))return;}if(_0x76927a['item']['is']('selection'))return void _0x9ec7f9['consumable']['consume'](_0x76927a['item'],_0xa39c7a['name']);const _0x4ad214=_0x9ec7f9['mapper']['toViewElement'](_0x76927a['item']);if(_0x76927a['item']['is']('element')&&_0x29bb5a['model']['schema']['isBlock'](_0x76927a['item'])&&!_0x4ad214['getCustomProperty']('addHighlight')){_0x9ec7f9['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4ad214),_0x9ec7f9['writer']['setAttribute']('data-suggestion',_0x171614,_0x4ad214),_0x9ec7f9['mapper']['bindElementToMarker'](_0x4ad214,_0x76927a['markerName']),_0x629f5b&&(this['activeMarkers']['includes'](_0x76927a['markerName'])?_0x9ec7f9['writer']['addClass']('ck-suggestion-marker--active',_0x4ad214):_0x9ec7f9['writer']['removeClass']('ck-suggestion-marker--active',_0x4ad214));for(const _0x4e551a of _0x29bb5a['model']['createRangeIn'](_0x76927a['item'])['getItems']())_0x9ec7f9['consumable']['consume'](_0x4e551a,_0xa39c7a['name']);_0x9ec7f9['consumable']['consume'](_0x76927a['item'],_0xa39c7a['name']);}};_0x29bb5a['conversion']['for']('dataDowncast')['add'](_0x4f5345=>{_0x4f5345['on']('addMarker:suggestion:formatBlock',(_0x10f1d0,_0x1b2f42,_0x5ed00e)=>{_0x5ed00e['options']['showSuggestionHighlights']&&_0x3b3546({'showActiveMarkers':!0x1})(_0x10f1d0,_0x1b2f42,_0x5ed00e);},{'priority':'highest'});}),_0x29bb5a['conversion']['for']('dataDowncast')['add'](_0x20a1d2=>{_0x20a1d2['on']('addMarker:suggestion:attribute',(_0x36a86c,_0x323232,_0x48b7ea)=>{_0x48b7ea['options']['showSuggestionHighlights']&&_0x3b3546({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x36a86c,_0x323232,_0x48b7ea);},{'priority':'highest'});}),_0x29bb5a['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x9d243,_0x57f549)=>_0x57f549['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x9d243['substr'](0xb)}}),_0x29bb5a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5df581,{writer:_0x36573d})=>{let _0x1ef8b5='suggestion:'+_0x5df581['getAttribute']('suggestion-type')+':'+_0x5df581['getAttribute']('id');return _0x5df581['getAttribute']('marker-count')&&(_0x1ef8b5+=':'+_0x5df581['getAttribute']('marker-count')),_0x36573d['createElement']('$marker',{'data-name':_0x1ef8b5});}}),_0x29bb5a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x29bb5a['conversion']['for']('editingDowncast')['add'](_0x11be17=>{_0x11be17['on']('addMarker:suggestion:formatBlock',_0x3b3546(),{'priority':'high'});}),_0x29bb5a['conversion']['for']('editingDowncast')['add'](_0x3330fa=>{_0x3330fa['on']('addMarker:suggestion:attribute',_0x3b3546({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x29bb5a['conversion']['for']('editingDowncast')['add'](_0x569d9a=>{_0x569d9a['on']('removeMarker:suggestion:formatBlock',(_0x4f0af6,_0x29ed82,_0x1af54f)=>{const _0x3a7a15=_0x1af54f['mapper']['markerNameToElements'](_0x29ed82['markerName']);if(_0x3a7a15){for(const _0x459330 of _0x3a7a15)_0x459330['getCustomProperty']('addHighlight')||(_0x1af54f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x459330),_0x1af54f['writer']['removeAttribute']('data-suggestion',_0x459330),_0x1af54f['mapper']['unbindElementFromMarkerName'](_0x459330,_0x29ed82['markerName']));}},{'priority':'high'});}),_0x29bb5a['conversion']['for']('editingDowncast')['add'](_0x42bb45=>{_0x42bb45['on']('removeMarker:suggestion:attribute',(_0x3d167a,_0x5e99b4,_0x5e951d)=>{const _0x1e75f7=_0x5e951d['mapper']['markerNameToElements'](_0x5e99b4['markerName']);if(!_0x1e75f7)return;const {id:_0x80e333}=this['_splitMarkerName'](_0x5e99b4['markerName']),_0x58fac8=this['_suggestions']['get'](_0x80e333),_0x286db8=this['_getAttributeKey'](_0x58fac8);if(this['_isBlockAttribute'](_0x286db8)){for(const _0x2b8887 of _0x1e75f7)_0x2b8887['getCustomProperty']('addHighlight')||(_0x5e951d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2b8887),_0x5e951d['writer']['removeAttribute']('data-suggestion',_0x2b8887),_0x5e951d['mapper']['unbindElementFromMarkerName'](_0x2b8887,_0x5e99b4['markerName']));}},{'priority':'high'});}),_0x29bb5a['model']['document']['registerPostFixer'](_0x52f702=>{let _0x1d5a94=!0x1;const _0x15c7cb=Array['from'](_0x29bb5a['model']['document']['differ']['getChangedMarkers']()),_0x234f36=new Set();for(const {name:_0x3009cc,data:_0x17d2f8}of _0x15c7cb){const {group:_0x1fb67e,type:_0x29b014,subType:_0x9aa418,id:_0x5ce796}=this['_splitMarkerName'](_0x3009cc);if('suggestion'!==_0x1fb67e)continue;const _0x1796eb=this['_suggestions']['get'](_0x5ce796);if(null!=_0x17d2f8['newRange']){'formatInline'==_0x29b014&&(_0x1d5a94=_0x1d5a94||Et(_0x17d2f8['newRange'],_0x3009cc,_0x52f702,_0x29bb5a['model']['schema']));const _0x511b1d='attribute'==_0x29b014&&this['_isBlockAttribute'](_0x9aa418['split']('|')[0x0]);if(_0x17d2f8['newRange']['isCollapsed']||'$graveyard'==_0x17d2f8['newRange']['root']['rootName']||'formatBlock'==_0x29b014&&!Ut(_0x17d2f8['newRange'])||_0x511b1d&&!Ut(_0x17d2f8['newRange'])||'deletion'==_0x29b014&&!(!Tt(_0xa491cd=_0x17d2f8['newRange'])&&!function(_0x328b86){return _0x328b86['start']['parent']==_0x328b86['end']['nodeBefore']&&_0x328b86['start']['isAtEnd'];}(_0xa491cd)))_0x52f702['removeMarker'](_0x3009cc),_0x1d5a94=!0x0;else{if(!_0x1796eb||!_0x1796eb['isInContent'])continue;_0x234f36['add'](_0x1796eb);}}}var _0xa491cd;return _0x234f36['size']>0x0&&(_0x1d5a94=!!this['_joinWithAdjacentSuggestions'](_0x234f36)||_0x1d5a94),_0x1d5a94;}),_0x29bb5a['model']['document']['registerPostFixer'](_0x7ed00e=>{let _0x1327c7=!0x1;for(const _0x1ee9a5 of _0x29bb5a['model']['document']['differ']['getChanges']())if('insert'==_0x1ee9a5['type'])for(const _0xfc961b of this['_suggestions']['values']()){if(_0xfc961b['isMultiRange']||!_0xfc961b['isInContent'])continue;const _0x41e3c5='formatBlock'==_0xfc961b['type'],_0x126ea8=this['_getAttributeKey'](_0xfc961b),_0x185aea=_0x126ea8&&this['_isBlockAttribute'](_0x126ea8);if(!_0x41e3c5&&!_0x185aea)continue;const _0x1eb39f=_0xfc961b['getFirstRange']();if(_0x1eb39f['start']['parent']!=_0x1eb39f['end']['parent']&&!_0x1eb39f['end']['isAtEnd']){const _0x5e245a=_0x29bb5a['model']['createPositionAt'](_0x1eb39f['start']['nodeAfter'],'end'),_0x2bd7a2=_0x29bb5a['model']['createRange'](_0x1eb39f['start'],_0x5e245a);_0x7ed00e['updateMarker'](_0xfc961b['getFirstMarker'](),{'range':_0x2bd7a2}),_0x1327c7=!0x0;}}return _0x1327c7;}),_0x29bb5a['model']['document']['registerPostFixer'](_0x30e8db=>this['_processAttributeChanges'](_0x30e8db)),_0x29bb5a['model']['document']['registerPostFixer'](_0x3b3f56=>!_0x3b3f56['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3b3f56)),_0x29bb5a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x29bb5a['model']['document']['on']('change:data',(_0xea7834,_0x2e320e)=>{if(!_0x2e320e['isLocal']||_0x2e320e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1de825=_0x29bb5a['model']['document']['differ']['getChanges']();if(0x0==_0x1de825['length'])return;const _0x461c5b=[],_0x170a8e=_0x1de825['filter'](_0x4a6ed3=>'attribute'==_0x4a6ed3['type']),_0x3351f7=_0x1de825['filter'](_0x5cb06b=>'insert'==_0x5cb06b['type']&&'$text'!=_0x5cb06b['name']);for(const _0x3bd1fa of _0x170a8e)this['_isRegisteredAttribute'](_0x3bd1fa['attributeKey'])&&_0x461c5b['push']({'key':_0x3bd1fa['attributeKey'],'newValue':_0x3bd1fa['attributeNewValue'],'oldValue':_0x3bd1fa['attributeOldValue'],'range':Ot(_0x3bd1fa['range'],_0x29bb5a['model'])});for(const _0x120a04 of _0x3351f7){if('rename'!=_0x120a04['action']&&'refresh'!=_0x120a04['action'])continue;const _0x3e0ac7=Gt(_0x120a04['position']['nodeAfter'],_0x29bb5a['model']),_0x24e75d=_0x120a04['before'];'rename'==_0x120a04['action']&&_0x461c5b['push']({'key':m,'newValue':_0x120a04['name'],'oldValue':_0x24e75d['name'],'range':_0x3e0ac7});for(const [_0x1175e5,_0x29cd7b]of _0x24e75d['attributes']){if(!this['_isRegisteredAttribute'](_0x1175e5))continue;const _0x19e1e7=_0x120a04['attributes']['get'](_0x1175e5);_0x29cd7b!==_0x19e1e7&&_0x461c5b['push']({'key':_0x1175e5,'newValue':_0x19e1e7,'oldValue':_0x29cd7b,'range':_0x3e0ac7});}for(const [_0x3d10f9,_0x17a23d]of _0x120a04['attributes'])this['_isRegisteredAttribute'](_0x3d10f9)&&(_0x24e75d['attributes']['has'](_0x3d10f9)||_0x461c5b['push']({'key':_0x3d10f9,'newValue':_0x17a23d,'oldValue':null,'range':_0x3e0ac7}));}0x0!=_0x461c5b['length']&&_0x29bb5a['model']['enqueueChange'](_0x2e320e,_0x213bde=>{const _0x422488=_0x7a56b4();for(const {range:_0x24eb10,key:_0x471f6b,oldValue:_0x119d16,newValue:_0x151608}of _0x461c5b)this['markAttributeChange'](_0x24eb10,_0x471f6b,_0x119d16,_0x151608,{'groupId':_0x422488});this['_reduceExistingSuggestions'](_0x213bde,_0x461c5b);});},{'priority':'lowest'}),_0x29bb5a['model']['markers']['on']('update:suggestion',(_0x4df8c3,_0x4a05fc,_0x39e5c5)=>{if(null==_0x39e5c5){const {id:_0x406329}=this['_splitMarkerName'](_0x4a05fc['name']),_0x179c75=this['_suggestions']['get'](_0x406329);_0x179c75&&_0x179c75['addMarkerName'](_0x4a05fc['name']);}}),_0x29bb5a['model']['document']['on']('change:data',()=>{const _0x125964=Array['from'](_0x29bb5a['model']['document']['differ']['getChangedMarkers']())['filter'](_0xea45cf=>'suggestion'===this['_splitMarkerName'](_0xea45cf['name'])['group']);if(0x0===_0x125964['length'])return;_0x125964['sort']((_0x2237b7,_0x469073)=>{const _0x3e19ef=_0x2237b7['data']['oldRange'],_0x2d952d=_0x469073['data']['oldRange'];return null===_0x3e19ef&&null===_0x2d952d?0x0:null===_0x3e19ef&&null!==_0x2d952d?-0x1:null!==_0x3e19ef&&null===_0x2d952d?0x1:_0x3e19ef['start']['isBefore'](_0x2d952d['start'])?-0x1:0x1;});const _0xc3de1d=new Set(),_0x2ce916=new Set();for(const {name:_0x985428,data:_0x5cddc1}of _0x125964){const {id:_0x11bbb5}=this['_splitMarkerName'](_0x985428);if(null===_0x5cddc1['oldRange']){const _0x20acb2=this['_handleNewSuggestionMarker'](_0x985428);_0x2ce916['add'](_0x20acb2);}else{const _0x3403f6=this['_suggestions']['get'](_0x11bbb5);null!==_0x5cddc1['newRange']||_0x3403f6['isInContent']?(_0xc3de1d['add'](_0x3403f6['head']),_0x2ce916['add'](_0x3403f6)):this['_removeSuggestion'](_0x3403f6);}}_0x2ce916['size']>0x0&&this['_refreshSuggestionsChain'](_0x2ce916);for(const _0x3204e2 of _0xc3de1d)this['fire']('suggestionChanged',_0x3204e2);}),_0x29bb5a['model']['on']('applyOperation',(_0x5dcac4,_0x531d3d)=>{const _0x4ea4df=_0x531d3d[0x0];if(!this['_suggestions']['size'])return;if(!_0x4ea4df['isDocumentOperation'])return;if(_0x4ea4df['batch']['isUndo']||!_0x4ea4df['batch']['isLocal'])return;let _0xa37a86,_0x3a9948;switch(_0x4ea4df['type']){case'insert':_0xa37a86=_0x29bb5a['model']['createPositionAt'](_0x4ea4df['position']),_0x3a9948=_0xa37a86['getShiftedBy'](_0x4ea4df['howMany']);break;case'split':_0xa37a86=_0x29bb5a['model']['createPositionAt'](_0x4ea4df['splitPosition']),_0x3a9948=_0x29bb5a['model']['createPositionAt'](_0x4ea4df['moveTargetPosition']);break;case'move':_0xa37a86=_0x29bb5a['model']['createPositionAt'](_0x4ea4df['targetPosition']),_0x3a9948=_0xa37a86['getShiftedBy'](_0x4ea4df['howMany']);break;default:return;}const _0x28756e=_0x29bb5a['model']['createRange'](_0xa37a86,_0x3a9948);_0x29bb5a['model']['change'](()=>{for(const {suggestion:_0x5e4953,meta:_0x2cd458}of this['_findSuggestions'](_0x28756e)){if(_0x5e4953['isMultiRange'])continue;if('formatInline'==_0x5e4953['type'])continue;const _0x211c2e=this['_getAttributeKey'](_0x5e4953);if(_0x211c2e&&this['_isBlockAttribute'](_0x211c2e)&&'split'!=_0x4ea4df['type'])continue;const _0xb65510=_0x5e4953['data']&&_0x5e4953['data']['multipleBlocks'];('formatBlock'!=_0x5e4953['type']||'split'==_0x4ea4df['type']&&!_0xb65510)&&(_0x2cd458['containsRangeInObject']||'insertion'==_0x5e4953['type']&&_0x2cd458['isOwn']||_0x5e4953['getFirstRange']()['containsRange'](_0x28756e)&&this['_breakSuggestionMarker'](_0x5e4953,_0xa37a86,_0x3a9948));}});},{'priority':'lowest'}),_0x29bb5a['model']['on']('deleteContent',(_0x57dd8e,_0x1e3d80)=>{const _0x17acef=_0x1e3d80[0x0],_0x4db7b0=_0x1e3d80[0x1];if(_0x4db7b0&&_0x4db7b0['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x17acef['isCollapsed'])return;const _0x4fee27=_0x29bb5a['model']['schema'],{start:_0x559349,end:_0x3481e0}=_0x17acef['getFirstRange'](),_0x5ed678=_0x559349['nodeAfter']&&_0x4fee27['isLimit'](_0x559349['nodeAfter'])?null:_0x4fee27['getNearestSelectionRange'](_0x559349,'forward'),_0x3e70fc=_0x3481e0['nodeBefore']&&_0x4fee27['isLimit'](_0x3481e0['nodeBefore'])?null:_0x4fee27['getNearestSelectionRange'](_0x3481e0,'backward'),_0x5eab0d=_0x29bb5a['model']['createRange'](_0x5ed678?_0x5ed678['start']:_0x559349,_0x3e70fc?_0x3e70fc['end']:_0x3481e0);_0x29bb5a['model']['change'](_0x42ff39=>{this['markDeletion'](_0x5eab0d);const _0x4d9cdb=_0x29bb5a['model']['schema']['getNearestSelectionRange'](_0x5eab0d['start']);_0x17acef['is']('documentSelection')?_0x42ff39['setSelection'](_0x4d9cdb):_0x17acef['setTo'](_0x4d9cdb);}),_0x57dd8e['stop']();},{'priority':_0x487cda['normal']+0xa}),_0x29bb5a['model']['on']('insertContent',(_0x1d7018,_0x13ff66)=>{const _0x301450=_0x13ff66[_0x13ff66['length']-0x1];_0x301450&&_0x301450['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x29bb5a['model']['change'](()=>{let _0x3b428c=_0x29bb5a['model']['insertContent'](_0x13ff66[0x0],_0x13ff66[0x1],_0x13ff66[0x2],{'forceDefaultExecution':!0x0});if(!_0x3b428c)return;_0x1d7018['return']=_0x3b428c['clone']();const _0x37a9cd=_0x3b428c['end']['nodeBefore'],_0x399c1e=_0x29bb5a['model']['schema'];_0x37a9cd&&_0x399c1e['isBlock'](_0x37a9cd)&&!_0x399c1e['isObject'](_0x37a9cd)&&(_0x3b428c=_0x29bb5a['model']['createRange'](_0x3b428c['start'],_0x29bb5a['model']['createPositionAt'](_0x37a9cd,'end'))),this['markInsertion'](_0x3b428c);}),_0x1d7018['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2eecdb=new $(_0x29bb5a,this['_suggestions']);_0x29bb5a['commands']['add']('acceptSuggestion',_0x2eecdb),this['enableCommand']('acceptSuggestion');const _0x1c1131=new B(_0x29bb5a,this['_suggestions']);_0x29bb5a['commands']['add']('discardSuggestion',_0x1c1131),this['enableCommand']('discardSuggestion'),_0x29bb5a['commands']['add']('acceptAllSuggestions',new x(_0x29bb5a,_0x2eecdb,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x29bb5a['commands']['add']('discardAllSuggestions',new x(_0x29bb5a,_0x1c1131,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x29bb5a['commands']['add']('acceptSelectedSuggestions',new R(_0x29bb5a,_0x2eecdb,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x29bb5a['commands']['add']('discardSelectedSuggestions',new R(_0x29bb5a,_0x1c1131,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x7a867b=_0x29bb5a['plugins']['get']('CommentsRepository');this['listenTo'](_0x7a867b,'addComment',(_0x33cd79,{threadId:_0x1be24e})=>{const _0x559e26=this['_suggestions']['get'](_0x1be24e);_0x559e26&&_0x559e26['commentThread']&&0x1===_0x559e26['commentThread']['length']&&this['_updateSuggestionData'](_0x1be24e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x7a867b,'removeComment',(_0x1ad534,{threadId:_0x9eef94})=>{const _0x2d033d=this['_suggestions']['get'](_0x9eef94);_0x2d033d&&_0x2d033d['commentThread']&&!_0x2d033d['commentThread']['length']&&this['_updateSuggestionData'](_0x9eef94,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x24892e){if(this['_adapter'])throw new _0x586883('track-changes-adapter-already-set',this);this['_adapter']=_0x24892e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3073c3=!0x1,toJSON:_0x5888a6=!0x1}={}){const _0x4a8f9d=[];for(const _0x4f9633 of this['_suggestions']['values']())_0x3073c3&&!_0x4f9633['isInContent']||_0x4a8f9d['push'](_0x4f9633);return _0x5888a6?_0x4a8f9d['map'](_0x511d16=>_0x511d16['toJSON']()):_0x4a8f9d;}['getSuggestion'](_0xf5f798){const _0x28c16e=this['_suggestions']['get'](_0xf5f798);if(!_0x28c16e)throw new _0x586883('track-changes-suggestion-not-found',this);return _0x28c16e;}['hasSuggestion'](_0x43a402){return this['_suggestions']['has'](_0x43a402);}['addSuggestionData'](_0x270163){const {authorId:_0x5528c5,id:_0x2d47b4,attributes:_0x1c01ef}=_0x270163,[_0x39850c,_0x466a9e]=_0x270163['type']['split'](':'),_0x389283=this['_suggestions']['get'](_0x2d47b4)||this['_createSuggestion'](_0x39850c,_0x466a9e,_0x2d47b4,_0x5528c5,_0x1c01ef);if(this['_addThreadToSuggestion'](_0x389283),this['_checkSuggestionCorrectness'](_0x389283,_0x39850c,_0x466a9e||null,_0x5528c5),_0x389283['createdAt']=_0x270163['createdAt'],_0x389283['_isDataLoaded']=!0x0,_0x1c01ef&&_0x1c01ef['@external']){const _0x24b80b=_0x1c01ef['@external'],_0x19ca01=this['_getExternalAuthor'](_0x24b80b['authorName']);_0x389283['authoredAt']=_0x24b80b['createdAt'],_0x389283['author']=_0x19ca01,_0x389283['isExternal']=!0x0;}else _0x389283['authoredAt']=_0x270163['createdAt'];switch(_0x270163['data']&&(_0x389283['data']=_0x270163['data']),_0x270163['attributes']&&(_0x389283['attributes']=_0x270163['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x389283['_saved']=!0x0),this['_suggestionState']['get'](_0x389283)){case'notReady':this['_suggestionState']['set'](_0x389283,'dataReady');break;case'markerReady':_0x389283['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x389283])),this['_refreshSuggestionsChain'](new Set([_0x389283])),this['_suggestionState']['set'](_0x389283,'ready'),this['fire']('suggestionLoaded',_0x389283)):this['_suggestionState']['set'](_0x389283,'removed');}return _0x389283;}['acceptSuggestion'](_0x143969){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x135046 of _0x143969['getAllAdjacentSuggestions']())_0x135046['accept']();});});}['discardSuggestion'](_0x232ce6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4bd946 of _0x232ce6['getAllAdjacentSuggestions']())_0x4bd946['discard']();});});}['enableCommand'](_0x56fd2a,_0x377dcf){const _0x196bc1=this['editor']['commands']['get'](_0x56fd2a);if(!_0x196bc1)throw new _0x586883('track-changes-command-not-found',this,{'commandName':_0x56fd2a});if(this['_enabledCommands']['has'](_0x196bc1))throw new _0x586883('track-changes-enable-command-twice',this,{'commandName':_0x56fd2a});this['_enabledCommands']['add'](_0x196bc1),_0x377dcf&&_0x196bc1['on']('execute',(_0x114451,_0x3556ca)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3556ca['length']>0x0&&_0x3556ca[_0x3556ca['length']-0x1]&&_0x3556ca[_0x3556ca['length']-0x1]['forceDefaultExecution']?_0x3556ca['pop']():(_0x114451['return']=_0x377dcf((..._0x345a88)=>_0x196bc1['execute'](..._0x345a88,{'forceDefaultExecution':!0x0}),..._0x3556ca),_0x114451['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5b3469){let _0x58e71e,_0x522e32;const _0x44ce48=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x58e71e=_0x5b3469();}catch(_0x282d0b){_0x522e32=_0x282d0b;}return _0x44ce48||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x522e32&&_0x586883['rethrowUnexpectedError'](_0x522e32,this),_0x58e71e;}['markInsertion'](_0x519553,_0x156ca5=null,_0x8d35e7={}){if(_0x519553['isCollapsed'])return null;const _0x433fef=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2b13b5,meta:_0x115b7d}of this['_findSuggestions'](_0x519553,'insertion'))if(_0x115b7d['isOwn']){if(!_0x115b7d['isNextTo']){if(_0x115b7d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x2b13b5,_0x8d35e7))continue;return _0x2b13b5;}if(Lt(_0x2b13b5,_0x8d35e7))return _0x2b13b5;this['_breakSuggestionMarker'](_0x2b13b5,_0x519553['start'],_0x519553['end']);break;}if(_0x156ca5==_0x2b13b5['subType']&&Lt(_0x2b13b5,_0x8d35e7)){const _0x239f87=_0x2b13b5['getFirstRange']();return _0x239f87['start']['isEqual'](_0x519553['end'])?this['_setSuggestionRange'](_0x2b13b5,this['_model']['createRange'](_0x519553['start'],_0x239f87['end'])):this['_setSuggestionRange'](_0x2b13b5,this['_model']['createRange'](_0x239f87['start'],_0x519553['end'])),_0x2b13b5;}}const _0x4df7a0=_0x7a56b4(),_0x1a80c5=_0x433fef['id'],_0x3188a=_0x156ca5?'insertion:'+_0x156ca5:'insertion',_0x41b97e=this['_setSuggestionData']({'id':_0x4df7a0,'type':_0x3188a,'createdAt':new Date(),'authorId':_0x1a80c5,'attributes':_0x8d35e7});return this['_addSuggestionMarker'](_0x3188a,_0x4df7a0,_0x1a80c5,_0x519553),_0x41b97e;}['markMultiRangeInsertion'](_0x207fae,_0x5c3788='multi',_0x90d3c={}){const _0x5759d2=this['editor']['plugins']['get']('Users')['me'],_0xc7d976=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5c3788,'join');for(const _0x243447 of this['getSuggestions']())if(_0x243447['author']['id']==_0x5759d2['id']&&'insertion'==_0x243447['type']&&_0x243447['subType']==_0x5c3788&&Lt(_0x243447,_0x90d3c)&&(_0xc7d976(_0x243447['getRanges'](),_0x207fae)||_0xc7d976(_0x207fae,_0x243447['getRanges']()))){for(const _0x275271 of _0x207fae)_0x243447['addRange'](_0x275271);return _0x243447;}for(const {suggestion:_0x45ca10,meta:_0x21d593}of this['_findSuggestions'](_0x207fae,'insertion')){if(!_0x21d593['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x21d593['containsRangeInObject'])continue;if(!Lt(_0x45ca10,_0x90d3c))continue;let _0x4badec=!0x0;for(const _0x5a8c00 of _0x45ca10['getRanges']())for(const _0x411dd2 of _0x207fae)if(!_0x5a8c00['containsRange'](_0x411dd2)){_0x4badec=!0x1;break;}if(_0x4badec)return _0x45ca10;}const _0x4539b6=_0x7a56b4(),_0xc12c78=_0x5759d2['id'],_0x1a8690='insertion:'+_0x5c3788,_0x467344=this['_setSuggestionData']({'id':_0x4539b6,'type':_0x1a8690,'createdAt':new Date(),'authorId':_0xc12c78,'attributes':_0x90d3c});for(const _0x200e57 of _0x207fae)this['_addSuggestionMarker'](_0x1a8690,_0x4539b6,_0xc12c78,_0x200e57,u['getMultiRangeId']());return _0x467344;}['markInlineFormat'](_0x1e517e,_0x66549,_0x53d7fe=null,_0x24127a={}){if(_0x53d7fe=_0x53d7fe||Vt(_0x66549),_0x1e517e['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x419572=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x53d7fe,'accept');return this['forceDefaultExecution'](()=>_0x419572([_0x1e517e],_0x66549,_0x24127a)),null;}const _0x27a66d=this['editor']['plugins']['get']('Users')['me'],_0x274073=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x12c11b,meta:_0x33ae7a}of this['_findSuggestions'](_0x1e517e,'insertion'))_0x33ae7a['isOwn']&&!_0x33ae7a['isInsideObject']&&_0x274073['push'](..._0x12c11b['getRanges']());}const _0x108e4c=function(_0x5b818f,_0x44985a){const _0x5a69fb=[];for(const _0x5bb723 of _0x44985a){const _0x3fbb59=_0x5b818f['getIntersection'](_0x5bb723);_0x3fbb59&&_0x5a69fb['push'](_0x3fbb59);}return _0x5a69fb;}(_0x1e517e,_0x274073),_0x371181=function(_0x1d5b7c,_0x1864e5){const _0x522724=[_0x1d5b7c];for(const _0x1cc3aa of _0x1864e5){let _0x3ad959=0x0;for(;_0x3ad959<_0x522724['length'];){const _0x305ba4=_0x522724[_0x3ad959]['getDifference'](_0x1cc3aa);_0x522724['splice'](_0x3ad959,0x1,..._0x305ba4),_0x3ad959+=_0x305ba4['length'];}}return _0x522724;}(_0x1e517e,_0x274073);_0x108e4c['length']&&this['_model']['change'](()=>{for(const _0x18227b of _0x108e4c){const _0x189a97=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x53d7fe,'accept');this['forceDefaultExecution'](()=>_0x189a97([_0x18227b],_0x66549,_0x24127a));}});for(const _0x270177 of _0x371181){let _0x84bbf=null,_0x574448=_0x270177['start'],_0x267653=_0x270177['end'];for(const {suggestion:_0xecbdb8,meta:_0x391f59}of this['_findSuggestions'](_0x270177,'formatInline')){if(!_0x391f59['isOwn'])continue;if(_0xecbdb8['subType']!=_0x53d7fe)continue;if(!Lt(_0xecbdb8,_0x24127a))continue;const _0x32256b=_0xecbdb8['getFirstRange']();if(_0x32256b['containsRange'](_0x270177,!0x0))return null;_0x574448=_0x574448['isBefore'](_0x32256b['start'])?_0x574448:_0x32256b['start'],_0x267653=_0x267653['isAfter'](_0x32256b['end'])?_0x267653:_0x32256b['end'],_0x84bbf?_0x32256b['start']['isBefore'](_0x84bbf['getFirstRange']()['start'])?(_0x84bbf['removeMarkers'](),_0x84bbf=_0xecbdb8):_0xecbdb8['removeMarkers']():_0x84bbf=_0xecbdb8;}const _0xd1430d=this['_model']['createRange'](_0x574448,_0x267653);if(_0x84bbf)this['_setSuggestionRange'](_0x84bbf,_0xd1430d);else{const _0x419413=_0x7a56b4(),_0x180a22=_0x27a66d['id'];this['_setSuggestionData']({'id':_0x419413,'type':'formatInline:'+_0x53d7fe,'data':_0x66549,'createdAt':new Date(),'authorId':_0x180a22,'attributes':_0x24127a}),this['_addSuggestionMarker']('formatInline:'+_0x53d7fe,_0x419413,_0x180a22,_0xd1430d);}}return null;}['markBlockFormat'](_0x2601fe,_0x596780,_0x228e74=[],_0x52374d=null,_0x27e6c0={}){_0x596780['formatGroupId']||(_0x596780['formatGroupId']=_0x596780['commandName']),_0x596780['multipleBlocks']=_0x2601fe['is']('range'),_0x52374d=_0x52374d||Vt(_0x596780);const _0x3a8002=_0x228e74['map'](_0x4d57de=>Gt(_0x4d57de,this['_model'])),_0x5d5ac4=_0x2601fe['is']('range')?_0x2601fe:Gt(_0x2601fe,this['_model']);if('never'===this['_trackFormatChanges']){const _0xa9f367=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x52374d,'accept');return this['forceDefaultExecution'](()=>_0xa9f367([_0x5d5ac4],_0x596780,_0x27e6c0)),null;}_0x3a8002['push'](_0x5d5ac4);let _0x4291ce=!0x0;for(const _0x15688a of _0x3a8002)if(!this['_rangeIsInLocalUserInsertion'](_0x15688a)){_0x4291ce=!0x1;break;}if(_0x4291ce&&'always'!==this['_trackFormatChanges']){const _0x267b28=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x52374d,'accept');return this['forceDefaultExecution'](()=>_0x267b28([_0x5d5ac4],_0x596780,_0x27e6c0)),null;}let _0xe002ab=null,_0x5085b9=_0x5d5ac4['start'],_0x1705cf=_0x5d5ac4['end'];for(const {suggestion:_0x430455,meta:_0x53b338}of this['_findSuggestions'](_0x5d5ac4,'formatBlock')){if(!_0x53b338['isOwn'])continue;if(_0x53b338['isNextTo']||_0x53b338['containsRangeInObject']||_0x53b338['isInsideObject'])continue;if(_0x430455['data']['formatGroupId']!=_0x596780['formatGroupId'])continue;if(!Lt(_0x430455,_0x27e6c0))continue;const _0x5c7158=_0x430455['getFirstRange']();if(_0x430455['subType']==_0x52374d){if(_0x5c7158['containsRange'](_0x5d5ac4,!0x0))return null;_0x5085b9=_0x5085b9['isBefore'](_0x5c7158['start'])?_0x5085b9:_0x5c7158['start'],_0x1705cf=_0x1705cf['isAfter'](_0x5c7158['end'])?_0x1705cf:_0x5c7158['end'],_0xe002ab?_0x5c7158['start']['isBefore'](_0xe002ab['getFirstRange']()['start'])?(_0xe002ab['removeMarkers'](),_0xe002ab=_0x430455):_0x430455['removeMarkers']():_0xe002ab=_0x430455;}else{const _0x1d7b68=_0x5d5ac4['getIntersection'](_0x5c7158);this['_cutOutSuggestionMarker'](_0x430455,_0x1d7b68);}}const _0x37a7b4=this['editor']['plugins']['get']('Users')['me'],_0x43436b=_0x7a56b4(),_0x3c3691=_0x37a7b4['id'];if(_0xe002ab)return this['_setSuggestionRange'](_0xe002ab,this['_model']['createRange'](_0x5085b9,_0x1705cf)),_0xe002ab;{const _0x4efe4b=this['_setSuggestionData']({'id':_0x43436b,'type':'formatBlock:'+_0x52374d,'data':_0x596780,'createdAt':new Date(),'authorId':_0x3c3691,'attributes':_0x27e6c0});return this['_addSuggestionMarker']('formatBlock:'+_0x52374d,_0x43436b,_0x3c3691,this['_model']['createRange'](_0x5085b9,_0x1705cf)),_0x4efe4b;}}['markMultiRangeBlockFormat'](_0x4b52be,_0x50b54f,_0x5bcd6f=[],_0x2deee1=null,_0x5a1476={}){_0x50b54f['formatGroupId']||(_0x50b54f['formatGroupId']=_0x50b54f['commandName']);const _0x20a3b6=_0x4b52be[0x0];_0x50b54f['multipleBlocks']=_0x20a3b6['is']('range'),_0x2deee1=_0x2deee1||Vt(_0x50b54f);const _0x8db29e=_0x5bcd6f['map'](_0xd1958c=>Gt(_0xd1958c,this['_model'])),_0x48ca57=_0x20a3b6['is']('range')?_0x4b52be:_0x4b52be['map'](_0x4a2b7d=>Gt(_0x4a2b7d,this['_model']));if('never'===this['_trackFormatChanges']){const _0x39d502=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2deee1,'accept');return this['forceDefaultExecution'](()=>_0x39d502(_0x48ca57,_0x50b54f,_0x5a1476)),null;}_0x8db29e['push'](..._0x48ca57);let _0x5e2253=!0x0;for(const _0x435d38 of _0x8db29e)if(!this['_rangeIsInLocalUserInsertion'](_0x435d38)){_0x5e2253=!0x1;break;}if(_0x5e2253&&'always'!==this['_trackFormatChanges']){const _0x14c5ce=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2deee1,'accept');return this['forceDefaultExecution'](()=>_0x14c5ce(_0x48ca57,_0x50b54f,_0x5a1476)),null;}const _0x3634c5=this['editor']['plugins']['get']('Users')['me'];for(const _0x3bf4e2 of this['getSuggestions']()){if(_0x3bf4e2['author']['id']!=_0x3634c5['id'])continue;if('formatBlock'!=_0x3bf4e2['type']||_0x3bf4e2['data']['formatGroupId']!=_0x50b54f['formatGroupId'])continue;if(!Lt(_0x3bf4e2,_0x5a1476))continue;const _0x16b5cd=_0x3bf4e2['subType']==_0x2deee1;for(let _0x56dc78=0x0;_0x56dc78<_0x48ca57['length'];_0x56dc78++){const _0x2f0ff1=_0x48ca57[_0x56dc78];for(const _0x28ff07 of _0x3bf4e2['getMarkers']()){const _0x44ba6a=_0x28ff07['getRange']();if(_0x2f0ff1['isEqual'](_0x44ba6a)){_0x16b5cd?(_0x48ca57['splice'](_0x56dc78,0x1),_0x56dc78--):_0x3bf4e2['removeMarker'](_0x28ff07['name']);break;}}}}if(0x0==_0x48ca57['length'])return null;const _0x13f4f8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2deee1,'join');for(const _0xb3cdde of this['getSuggestions']())if(_0xb3cdde['author']['id']==_0x3634c5['id']&&'formatBlock'==_0xb3cdde['type']&&_0xb3cdde['data']['formatGroupId']==_0x50b54f['formatGroupId']&&_0xb3cdde['subType']==_0x2deee1&&Lt(_0xb3cdde,_0x5a1476)&&(_0x13f4f8(_0xb3cdde['getRanges'](),_0x48ca57)||_0x13f4f8(_0x48ca57,_0xb3cdde['getRanges']()))){for(const _0x30e4b4 of _0x48ca57)_0xb3cdde['addRange'](_0x30e4b4);return _0xb3cdde;}const _0x56e2be=_0x7a56b4(),_0x10d4ee=_0x3634c5['id'],_0x66cff2='formatBlock:'+_0x2deee1,_0x8b731c=this['_setSuggestionData']({'id':_0x56e2be,'type':_0x66cff2,'data':_0x50b54f,'createdAt':new Date(),'authorId':_0x10d4ee,'attributes':_0x5a1476});for(const _0x225823 of _0x48ca57)this['_addSuggestionMarker'](_0x66cff2,_0x56e2be,_0x10d4ee,_0x225823,u['getMultiRangeId']());return _0x8b731c;}['markDeletion'](_0x154977,_0x4812d5=null,_0x23c9fa={}){if(_0x154977['isCollapsed'])return null;const _0x1885fc=this['editor']['plugins']['get']('Users')['me'],_0x28eac3=new _0x1e1f20(_0x154977['start'],_0x154977['end']);for(const {suggestion:_0x4f667f,meta:_0x4852e5}of this['_findSuggestions'](_0x28eac3,'insertion'))if(_0x4852e5['isOwn']&&!_0x4852e5['isNextTo']){if(_0x4f667f['isMultiRange']){const _0x22231e=_0x4f667f['getRanges']()['filter'](_0x527471=>'$graveyard'!=_0x527471['root']['rootName']);_0x22231e['every'](_0x4614cb=>_0x28eac3['containsRange'](_0x4614cb,!0x0))&&_0x4f667f['discard']();if(_0x22231e['some'](_0x5c771b=>_0x5c771b['containsRange'](_0x28eac3,!0x0))){const _0x3ba28c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4812d5,'accept');return this['forceDefaultExecution'](()=>_0x3ba28c([_0x28eac3],null,_0x23c9fa)),null;}}else{const _0x3b21f0=_0x28eac3['getIntersection'](_0x4f667f['getFirstRange']());null!==_0x3b21f0&&_0x4f667f['_onDiscard']([_0x3b21f0],null,_0x23c9fa);}}if(_0x28eac3['detach'](),_0x28eac3['isCollapsed']||'$graveyard'==_0x28eac3['root']['rootName'])return null;let _0x29ddae=null,_0x2cd966=_0x28eac3['start'],_0x4d31ff=_0x28eac3['end'];const _0x370cc6=this['_findSuggestions'](_0x28eac3,'deletion');for(const {suggestion:_0x3b2f00,meta:_0x4a9217}of _0x370cc6){const _0x4e7d56=this['_model']['createRange'](_0x2cd966,_0x4d31ff);if(_0x4a9217['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4a9217['containsRangeInObject']&&!_0x4a9217['isInsideObject'])){if(_0x3b2f00['isMultiRange']){if(!Lt(_0x3b2f00,_0x23c9fa))continue;let _0x1b8158=!0x0;for(const _0x2d6d6a of _0x3b2f00['getRanges']()){if(_0x2d6d6a['containsRange'](_0x4e7d56,!0x0))return _0x3b2f00;_0x4e7d56['containsRange'](_0x2d6d6a)||(_0x1b8158=!0x1);}_0x1b8158&&_0x3b2f00['discard']();}else{const _0x4ef412=_0x3b2f00['getFirstRange']();if(_0x4ef412['containsRange'](_0x4e7d56,!0x0))return _0x3b2f00;if(!Lt(_0x3b2f00,_0x23c9fa)){_0x4e7d56['containsRange'](_0x4ef412)?_0x3b2f00['removeMarkers']():_0x4ef412['containsPosition'](_0x2cd966)?_0x2cd966=_0x4ef412['end']:_0x4ef412['containsPosition'](_0x4d31ff)&&(_0x4d31ff=_0x4ef412['start']);continue;}_0x2cd966=_0x2cd966['isBefore'](_0x4ef412['start'])?_0x2cd966:_0x4ef412['start'],_0x4d31ff=_0x4d31ff['isAfter'](_0x4ef412['end'])?_0x4d31ff:_0x4ef412['end'],_0x23c9fa=Object['assign']({},_0x3b2f00['attributes']),_0x29ddae?_0x4ef412['start']['isBefore'](_0x29ddae['getFirstRange']()['start'])?(_0x29ddae['removeMarkers'](),_0x29ddae=_0x3b2f00):_0x3b2f00['removeMarkers']():_0x29ddae=_0x3b2f00;}}}if(_0x29ddae)return this['_setSuggestionRange'](_0x29ddae,this['_model']['createRange'](_0x2cd966,_0x4d31ff)),_0x29ddae;{const _0x1d3033=_0x7a56b4(),_0x428be6=this['_model']['createRange'](_0x2cd966,_0x4d31ff),_0x43a61f=_0x1885fc['id'],_0x1a2ab8=_0x4812d5?'deletion:'+_0x4812d5:'deletion',_0x49ffad=this['_setSuggestionData']({'id':_0x1d3033,'type':_0x1a2ab8,'createdAt':new Date(),'authorId':_0x43a61f,'attributes':_0x23c9fa});return this['_addSuggestionMarker'](_0x1a2ab8,_0x1d3033,_0x43a61f,_0x428be6),_0x49ffad;}}['markMultiRangeDeletion'](_0x346493,_0x51e11b='multi',_0x21d9c5={}){const _0x2ea6ba=this['editor']['plugins']['get']('Users')['me'],_0x77e7d4=_0x346493['map'](_0x49f7e1=>new _0x1e1f20(_0x49f7e1['start'],_0x49f7e1['end'])),_0x4b1033=new Set();for(const {suggestion:_0x174376,meta:_0x2e1a53}of this['_findSuggestions'](_0x77e7d4,'insertion'))_0x2e1a53['isOwn']&&!_0x2e1a53['isNextTo']&&_0x4b1033['add'](_0x174376);for(const _0x2b07ab of _0x4b1033)if(_0x2b07ab['isMultiRange']){const _0x350e0c=_0x2b07ab['getRanges']();(!_0x2b07ab['attributes']||!_0x2b07ab['attributes']['skipNestingCheck'])&&(_0x350e0c['every'](_0x5a7929=>_0x77e7d4['some'](_0x594cd0=>_0x594cd0['containsRange'](_0x5a7929,!0x0)))&&_0x2b07ab['discard']());if(_0x77e7d4['every'](_0x116333=>_0x350e0c['some'](_0x37575a=>_0x37575a['containsRange'](_0x116333,!0x0)))){const _0x6eb4a1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x51e11b,'accept');return this['forceDefaultExecution'](()=>_0x6eb4a1(_0x346493,null,_0x21d9c5)),null;}}else{const _0x471d98=_0x2b07ab['getFirstRange']();_0x77e7d4['some'](_0x5a9d82=>_0x5a9d82['containsRange'](_0x471d98,!0x0))&&_0x2b07ab['discard']();if(_0x77e7d4['every'](_0x1e205f=>_0x471d98['containsRange'](_0x1e205f,!0x0))){const _0x49fb31=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x51e11b,'accept');return this['forceDefaultExecution'](()=>_0x49fb31(_0x77e7d4,null,_0x21d9c5)),null;}}const _0x40f44f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x51e11b,'join');let _0x50f7eb=null;for(const _0x47a99c of this['getSuggestions']())if(_0x47a99c['author']['id']==_0x2ea6ba['id']&&_0x47a99c['isInContent']&&'deletion'==_0x47a99c['type']&&_0x47a99c['subType']==_0x51e11b&&Lt(_0x47a99c,_0x21d9c5)&&(_0x40f44f(_0x47a99c['getRanges'](),_0x77e7d4)||_0x40f44f(_0x77e7d4,_0x47a99c['getRanges']()))){if(_0x50f7eb){if(_0x47a99c['commentThread']&&_0x47a99c['commentThread']['length'])continue;for(const _0x1c4634 of _0x47a99c['getRanges']())_0x50f7eb['isIntersectingWithRange'](_0x1c4634)||_0x50f7eb['addRange'](_0x1c4634);_0x47a99c['removeMarkers']();}else{_0x50f7eb=_0x47a99c;for(const _0x3a43a7 of _0x77e7d4)_0x47a99c['isIntersectingWithRange'](_0x3a43a7)||_0x47a99c['addRange'](_0x3a43a7);}}if(_0x50f7eb)return _0x50f7eb;_0x4b1033['clear']();for(const {suggestion:_0x2515d2,meta:_0x9a2da}of this['_findSuggestions'](_0x77e7d4,'deletion'))_0x9a2da['isOwn']&&(this['_mergeNestedSuggestions']||!_0x9a2da['containsRangeInObject']&&!_0x9a2da['isInsideObject'])&&Lt(_0x2515d2,_0x21d9c5)&&_0x4b1033['add'](_0x2515d2);for(const _0x5c5801 of _0x4b1033){const _0x330533=_0x5c5801['getRanges']();if(!_0x21d9c5||!_0x21d9c5['skipNestingCheck']){if(_0x77e7d4['every'](_0x5334fb=>_0x330533['some'](_0x2ef579=>_0x2ef579['containsRange'](_0x5334fb,!0x0))))return _0x5c5801;}(!_0x5c5801['attributes']||!_0x5c5801['attributes']['skipNestingCheck'])&&(_0x330533['every'](_0x514837=>_0x77e7d4['some'](_0x3e7e9c=>_0x3e7e9c['containsRange'](_0x514837,!0x0)))&&_0x5c5801['discard']());}const _0x2e1e20=_0x7a56b4(),_0x3bd529=_0x2ea6ba['id'],_0x337992='deletion:'+_0x51e11b,_0x1bc8ad=this['_setSuggestionData']({'id':_0x2e1e20,'type':_0x337992,'createdAt':new Date(),'authorId':_0x3bd529,'attributes':_0x21d9c5});for(const _0x12d748 of _0x77e7d4)_0x12d748['detach'](),_0x12d748['isCollapsed']||'$graveyard'==_0x12d748['root']['rootName']||this['_addSuggestionMarker'](_0x337992,_0x2e1e20,_0x3bd529,_0x12d748,u['getMultiRangeId']());return _0x1bc8ad;}['markAttributeChange'](_0x10a6a4,_0x11b862,_0x58a0b1,_0x1211ff,_0x47658a){if(_0x10a6a4['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x44b342=this['editor']['plugins']['get']('Users')['me']['id'],_0x4c8a9b=Array['from'](this['_suggestions']['values']())['filter'](_0x33afa4=>'attribute'==_0x33afa4['type']&&_0x33afa4['data']['key']==_0x11b862&&_0x33afa4['isIntersectingWithRange'](_0x10a6a4));if('default'===this['_trackFormatChanges']){const _0x5bb944=this['_findSuggestions'](_0x10a6a4,'insertion')['filter'](({meta:_0x4e8d29})=>_0x4e8d29['isOwn']&&!_0x4e8d29['isInsideObject']&&!_0x4e8d29['isNextTo'])['map'](({suggestion:_0x3a997d})=>_0x3a997d);_0x4c8a9b['unshift'](..._0x5bb944);}const _0xc81f64=new Map([[_0x10a6a4,_0x58a0b1]]);for(const _0x1617dd of _0x4c8a9b){const _0x480900='attribute'==_0x1617dd['type']?_0x1617dd['data']['oldValue']:void 0x0,_0x2ad761=_0x1617dd['getFirstRange'](),_0x455484=Array['from'](_0xc81f64['keys']())['find'](_0x9ff101=>_0x9ff101['isIntersecting'](_0x2ad761));if(!_0x455484)continue;const _0x4e623c=_0x455484['getDifference'](_0x2ad761);this['_isBlockAttribute'](_0x11b862)&&'insertion'==_0x1617dd['type']&&0x0!=_0x4e623c['length']||(_0xc81f64['delete'](_0x455484),_0x4e623c['forEach'](_0x42f26a=>{_0xc81f64['set'](_0x42f26a,_0x58a0b1);}),'insertion'!=_0x1617dd['type']&&_0x480900!=_0x1211ff&&_0xc81f64['set'](_0x455484['getIntersection'](_0x2ad761),_0x480900));}const _0x3cb3c3=[];for(const [_0x4a0dee,_0x16b9cb]of _0xc81f64){const _0x297ec6=_0x7a56b4(),_0x112a28={'key':_0x11b862,'oldValue':_0x16b9cb,'newValue':_0x1211ff};_0x11b862['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':_0x11b862});const _0x5c6261=('attribute:'+(_0x11b862+'|'+Vt({'newValue':_0x1211ff})))['substring'](0x0,0x3c),_0xe93297=this['_setSuggestionData']({'id':_0x297ec6,'type':_0x5c6261,'data':_0x112a28,'createdAt':new Date(),'authorId':_0x44b342,'attributes':_0x47658a});_0x3cb3c3['push'](_0xe93297),this['_addSuggestionMarker'](_0x5c6261,_0x297ec6,_0x44b342,_0x4a0dee);}return _0x3cb3c3;}['enableDefaultAttributesIntegration'](_0x40ad9b){this['enableCommand'](_0x40ad9b,(_0x13d5d5,..._0x376e70)=>{this['_recordAttributeChanges'](()=>{_0x13d5d5(..._0x376e70);});});}['registerBlockAttribute'](_0x37b75e){this['_blockAttributeKeys']['add'](_0x37b75e);}['registerInlineAttribute'](_0x4be053){this['_inlineAttributeKeys']['add'](_0x4be053);}['_getAttributeKey'](_0x330bdc){return'attribute'==_0x330bdc['type']?_0x330bdc['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x41af38,_0x4a447d){const _0x23cd9d=_0x41af38['getFirstMarker']();this['_model']['change'](_0x11340a=>{_0x11340a['updateMarker'](_0x23cd9d,{'range':_0x4a447d});});}['_addThreadToSuggestion'](_0x5ca2f1){const _0x30a7be=_0x5ca2f1['id'],_0x3bf217=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x30a7be)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3bf217,'threadId':_0x30a7be,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3f5b9f=this['_commentsRepository']['getCommentThread'](_0x30a7be);_0x3f5b9f['unbind']('isRemovable'),_0x3f5b9f['isRemovable']=!0x1,_0x5ca2f1['commentThread']=_0x3f5b9f;}['_checkSuggestionCorrectness'](_0x458b1d,_0x3419c4,_0x42531c,_0x58c926){if(_0x458b1d['type']!=_0x3419c4||_0x458b1d['subType']!=_0x42531c||_0x458b1d['creator']['id']!=_0x58c926)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x586883('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x33a49a,_0x50671e){const _0x39b92f=_0x33a49a['getFirstRange']();if(_0x50671e['isEqual'](_0x39b92f))_0x33a49a['removeMarkers']();else{if(_0x39b92f['containsRange'](_0x50671e)){const _0x29ffb6=this['_model']['createPositionAt'](_0x50671e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x33a49a,this['_model']['createRange'](_0x39b92f['start'],_0x29ffb6));const _0x3ae69d=_0x7a56b4(),_0x15769a=_0x33a49a['creator']['id'],_0x14415e=_0x33a49a['type']+':'+_0x33a49a['subType'];this['_setSuggestionData']({'id':_0x3ae69d,'type':_0x14415e,'createdAt':new Date(),'authorId':_0x15769a,'data':_0x33a49a['data'],'attributes':_0x33a49a['attributes']});const _0x10a1d3=this['_model']['createPositionAt'](_0x50671e['end']['parent'],'after'),_0x24ec61=this['_model']['createRange'](_0x10a1d3,_0x39b92f['end']);this['_addSuggestionMarker'](_0x14415e,_0x3ae69d,_0x15769a,_0x24ec61);}else{if(_0x39b92f['containsPosition'](_0x50671e['start'])){const _0x2e4100=this['_model']['createPositionAt'](_0x50671e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x33a49a,this['_model']['createRange'](_0x39b92f['start'],_0x2e4100));}else{const _0xd4cc78=this['_model']['createPositionAt'](_0x50671e['end']['parent'],'after');this['_setSuggestionRange'](_0x33a49a,this['_model']['createRange'](_0xd4cc78,_0x39b92f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1564e3){for(const {suggestion:_0x45aefa,meta:_0x3ed28f}of this['_findSuggestions'](_0x1564e3,'insertion')){if(!_0x3ed28f['isOwn'])continue;const _0x130d1e=_0x45aefa['getRanges']();for(const _0x652114 of _0x130d1e)if(!_0x1564e3['getDifference'](_0x652114)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5043dc){const _0xa59f3c=this['editor']['plugins']['get']('Users')['getUser'](_0x5043dc);if(!_0xa59f3c)throw new _0x586883('track-changes-user-not-found',this);return _0xa59f3c;}['_getExternalAuthor'](_0x2ef743){const _0x11440b=this['editor']['plugins']['get']('Users'),_0x148b39=_0xcd6702('external:'+_0x2ef743),_0x146aa2=_0x11440b['getUser'](_0x148b39);return _0x146aa2||_0x11440b['addUser']({'id':_0x148b39,'name':_0x2ef743});}['_createSuggestion'](_0x24a19c,_0x5a0a4c,_0x103c0a,_0x1c4ea1,_0x3bc708){const _0x3d192c=this['_getAuthorFromId'](_0x1c4ea1),_0x420471=this['_suggestionFactory']['buildSuggestion'](_0x24a19c,_0x5a0a4c,_0x103c0a,_0x3d192c,_0x3bc708,_0x477045=>{this['_updateSuggestionData'](_0x103c0a,{'attributes':_0x477045});const _0x4d9ce8=this['getSuggestion'](_0x103c0a);this['_joinWithAdjacentSuggestions'](new Set([_0x4d9ce8])),this['_refreshSuggestionsChain'](new Set([_0x4d9ce8]));});return this['listenTo'](_0x420471,'accept',()=>{this['_updateSuggestionData'](_0x103c0a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x420471,'discard',()=>{this['_updateSuggestionData'](_0x103c0a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x103c0a,_0x420471),this['_suggestionState']['set'](_0x420471,'notReady'),_0x420471;}['_splitMarkerName'](_0x1005c0){const _0x2dfe8b=_0x1005c0['split'](':');return{'group':_0x2dfe8b[0x0],'type':_0x2dfe8b[0x1],'subType':_0x2dfe8b['length']>=0x5?_0x2dfe8b[0x2]:null,'id':_0x2dfe8b['length']<0x5?_0x2dfe8b[0x2]:_0x2dfe8b[0x3],'authorId':_0x2dfe8b['length']<0x5?_0x2dfe8b[0x3]:_0x2dfe8b[0x4],'markerCount':0x6==_0x2dfe8b['length']?_0x2dfe8b[0x5]:null};}['_breakSuggestionMarker'](_0x36fdfb,_0xefe5d3,_0x20724c){const _0x12475c=_0x36fdfb['getFirstRange'](),_0x378de3=_0x12475c['start'],_0x28138e=_0x12475c['end'];this['_setSuggestionRange'](_0x36fdfb,this['_model']['createRange'](_0x378de3,_0xefe5d3));const _0x129126=_0x7a56b4(),_0x20d7f8=_0x36fdfb['creator']['id'],_0xc2e0d4=_0x36fdfb['type']+(_0x36fdfb['subType']?':'+_0x36fdfb['subType']:'');this['_setSuggestionData']({'id':_0x129126,'type':_0xc2e0d4,'createdAt':new Date(),'authorId':_0x20d7f8,'originalSuggestionId':_0x36fdfb['id'],'attributes':_0x36fdfb['attributes'],'data':_0x36fdfb['data']});const _0xfca407=this['_getAttributeKey'](_0x36fdfb);('formatBlock'==_0x36fdfb['type']||_0xfca407&&this['_isBlockAttribute'](_0xfca407))&&(_0x20724c=this['_model']['createPositionBefore'](_0x20724c['parent'])),this['_addSuggestionMarker'](_0xc2e0d4,_0x129126,_0x20d7f8,this['_model']['createRange'](_0x20724c,_0x28138e));}['_findSuggestions'](_0x77c457,_0x3d88db=null){const _0x58b5c5=[],_0x3aa814=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x77c457)||(_0x77c457=[_0x77c457]);for(const _0x584351 of this['getSuggestions']()){if(!_0x584351['isInContent'])continue;if(_0x3d88db&&_0x584351['type']!=_0x3d88db)continue;let _0x2eed39=!0x1;for(const _0x45f47f of _0x584351['getRanges']()){for(const _0x1708b3 of _0x77c457){const _0x5e7b1c=_0x1708b3['start']['isEqual'](_0x45f47f['end'])||_0x1708b3['end']['isEqual'](_0x45f47f['start']);if(_0x5e7b1c||_0x1708b3['getIntersection'](_0x45f47f)){const _0x413fe5=_0x1708b3['containsRange'](_0x45f47f)&&Rt(this['_model']['schema'],_0x45f47f['start'],_0x1708b3),_0x38a7d4=_0x45f47f['containsRange'](_0x1708b3)&&Rt(this['_model']['schema'],_0x1708b3['start'],_0x45f47f);_0x58b5c5['push']({'suggestion':_0x584351,'meta':{'isOwn':_0x3aa814==_0x584351['author'],'isNextTo':_0x5e7b1c,'isInsideObject':_0x413fe5,'containsRangeInObject':_0x38a7d4}}),_0x2eed39=!0x0;break;}}if(_0x2eed39)break;}}return _0x58b5c5;}['_addSuggestionMarker'](_0x1f16a7,_0x411b92,_0x1e8b0d,_0x3b00e2,_0x4b0517){this['_model']['change'](_0x362832=>{let _0x45a2f1='suggestion:'+_0x1f16a7+':'+_0x411b92+':'+_0x1e8b0d;_0x4b0517&&(_0x45a2f1=_0x45a2f1+':'+_0x4b0517),_0x362832['addMarker'](_0x45a2f1,{'range':_0x3b00e2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3bf42a){const _0x485971=_0x3bf42a['previous'],_0x51a959=_0x3bf42a['next'];_0x3bf42a['previous']=null,_0x3bf42a['next']=null,null!=_0x485971&&_0x485971['next']==_0x3bf42a&&(_0x485971['next']=_0x51a959),null!=_0x51a959&&_0x51a959['previous']==_0x3bf42a&&(_0x51a959['previous']=_0x485971),'ready'==this['_suggestionState']['get'](_0x3bf42a)&&(this['_suggestionState']['set'](_0x3bf42a,'removed'),this['fire']('suggestionUnloaded',_0x3bf42a,_0x485971,_0x51a959));}['_setSuggestionData'](_0x4c040b){const _0x5c888d=_0x4c040b['id'],_0xd24854=this['addSuggestionData'](_0x4c040b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xb86b6f=this['editor']['plugins']['get']('PendingActions'),_0x4c3c51=_0xd24854['hasComments'],_0x50844d=_0xd24854['subType']?_0xd24854['type']+':'+_0xd24854['subType']:_0xd24854['type'],_0x215a44=this['editor']['locale'],_0x5739b2=_0xb86b6f['add'](o(_0x215a44,'PENDING_ACTION_SUGGESTION')),_0x2fc13a={'id':_0x5c888d,'type':_0x50844d,'hasComments':_0x4c3c51,'data':_0x4c040b['data']||null,'originalSuggestionId':_0x4c040b['originalSuggestionId']||null,'attributes':_0xd24854['attributes']};this['_adapter']['addSuggestion'](_0x2fc13a)['then'](_0x512f3a=>{_0xd24854['_saved']=!0x0,_0xb86b6f['remove'](_0x5739b2),_0x512f3a&&_0x512f3a['createdAt']&&(this['_suggestions']['get'](_0x5c888d)['createdAt']=_0x512f3a['createdAt']);})['catch'](_0x2bb477=>{throw _0x3cc691('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xd24854['discard']();}),_0xd24854['stopListening'](),this['_suggestions']['delete'](_0xd24854['id']),this['_suggestionState']['delete'](_0xd24854),_0x2bb477;});}return _0xd24854;}['_isBlockAttribute'](_0x45497b){return this['_blockAttributeKeys']['has'](_0x45497b);}['_updateSuggestionData'](_0xde2fb3,_0x414260){const _0x3b1f40=this['editor']['plugins']['get']('PendingActions'),_0x52ff50=this['getSuggestion'](_0xde2fb3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x52ff50['_saved']){const _0x446cdc=_0x3b1f40['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xde2fb3,_0x414260)['then'](()=>{_0x3b1f40['remove'](_0x446cdc);});}else _0x52ff50['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xde2fb3,_0x414260);});}}['_getSuggestionData'](_0x11e111){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x586883('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x11e111);}['_handleNewSuggestionMarker'](_0x5bc946){const {id:_0x1af031,type:_0x566cbe,subType:_0x11a628,authorId:_0x1ffd80}=this['_splitMarkerName'](_0x5bc946),_0xb18bad=this['_suggestions']['get'](_0x1af031)||this['_createSuggestion'](_0x566cbe,_0x11a628,_0x1af031,_0x1ffd80,{});switch(this['_checkSuggestionCorrectness'](_0xb18bad,_0x566cbe,_0x11a628,_0x1ffd80),this['_suggestionState']['get'](_0xb18bad)){case'notReady':this['_getSuggestionData'](_0x1af031)['then'](_0x3d07d1=>{let _0x3083d4=Promise['resolve']();_0x3d07d1['hasComments']&&(_0x3083d4=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1af031})),_0x3083d4['then'](()=>{this['addSuggestionData'](_0x3d07d1)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xb18bad,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1af031,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xb18bad,'ready'),this['fire']('suggestionLoaded',_0xb18bad);break;case'ready':this['fire']('suggestionChanged',_0xb18bad);}return _0xb18bad['addMarkerName'](_0x5bc946),_0xb18bad;}['_refreshSuggestionsChain'](_0x39a07a){const _0x703861=Array['from'](_0x39a07a),_0x459fe3=_0x703861['filter'](_0x20c8ec=>'attribute'==_0x20c8ec['type']);this['_refreshAttributeSuggestionsChain'](_0x459fe3);const _0x2ff5a8=_0x703861['filter'](_0x24336c=>!_0x24336c['isMultiRange']&&'attribute'!=_0x24336c['type']),_0x5cce4d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x158739=>!_0x158739['isMultiRange']&&'attribute'!=_0x158739['type']),_0x5167de=_0x5cce4d['filter'](_0x476aad=>!_0x39a07a['has'](_0x476aad)),_0x4b551c=new Map(_0x5cce4d['map'](_0x475c58=>[_0x475c58,this['_suggestionFactory']['getSuggestionCallback'](_0x475c58['type'],_0x475c58['subType'],'chain')])),_0x2e8d42=new Map(_0x5cce4d['map'](_0x4c428d=>[_0x4c428d,_0x4c428d['getFirstRange']()])),_0x149021=new Set(),_0x14e4be=new Set();for(let _0x2861d9=0x0;_0x2861d9<_0x2ff5a8['length'];_0x2861d9++)_0x139565(_0x2ff5a8[_0x2861d9],_0x2ff5a8,_0x2861d9+0x1);for(let _0x9f20b2=0x0;_0x9f20b2<_0x2ff5a8['length'];_0x9f20b2++)_0x139565(_0x2ff5a8[_0x9f20b2],_0x5167de,0x0);const _0x33722e=new Set();for(let _0x291dae=0x0;_0x291dae<_0x2ff5a8['length'];_0x291dae++){const _0x50bac7=_0x2ff5a8[_0x291dae];!_0x14e4be['has'](_0x50bac7)&&_0x50bac7['previous']&&(_0x33722e['add'](_0x50bac7['previous']),_0x50bac7['previous']['next']===_0x50bac7&&(_0x50bac7['previous']['next']=null),_0x50bac7['previous']=null),!_0x149021['has'](_0x50bac7)&&_0x50bac7['next']&&(_0x33722e['add'](_0x50bac7['next']),_0x50bac7['next']['previous']===_0x50bac7&&(_0x50bac7['next']['previous']=null),_0x50bac7['next']=null);}function _0x139565(_0x54f3a7,_0x509d7f,_0x3872e6){for(let _0x294ec6=_0x3872e6;_0x294ec6<_0x509d7f['length'];_0x294ec6++){const _0x314968=_0x498a55(_0x54f3a7,_0x509d7f[_0x294ec6]);_0x314968&&(_0x314968[0x0]['next']=_0x314968[0x1],_0x314968[0x1]['previous']=_0x314968[0x0],_0x149021['add'](_0x314968[0x0]),_0x14e4be['add'](_0x314968[0x1]));}}function _0x498a55(_0x2c0b1c,_0x37d134){if(_0x2c0b1c['author']['id']!==_0x37d134['author']['id'])return null;const _0x61e7a5=_0x4b551c['get'](_0x2c0b1c)(_0x2c0b1c,_0x37d134,_0x2e8d42['get'](_0x2c0b1c),_0x2e8d42['get'](_0x37d134));if(!_0x61e7a5)return null;return _0x4b551c['get'](_0x37d134)(_0x2c0b1c,_0x37d134,_0x2e8d42['get'](_0x2c0b1c),_0x2e8d42['get'](_0x37d134))?_0x61e7a5[0x1]['commentThread']&&_0x61e7a5[0x1]['commentThread']['length']?null:_0x61e7a5:null;}_0x33722e['size']&&this['_refreshSuggestionsChain'](_0x33722e);}['_refreshAttributeSuggestionsChain'](_0x5ac624){if(0x0==_0x5ac624['length'])return;const _0x482457=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5955c9=>'attribute'==_0x5955c9['type']&&_0x5955c9['_isDataLoaded']),_0x4d4581=[],_0x4c7977=new Map();for(const _0x3f03c6 of _0x482457){const _0x27492e=_0xcd6702(_0x3f03c6['attributes']);_0x4c7977['has'](_0x27492e)||(_0x4c7977['set'](_0x27492e,_0x4d4581['length']),_0x4d4581['push']([]));const _0x1a50ed=_0x4c7977['get'](_0x27492e);_0x4d4581[_0x1a50ed]['push'](_0x3f03c6);}!(function(){_0x4d4581['sort']((_0x261a83,_0x24575f)=>{const _0x32d2a4=_0x261a83[0x0]['createdAt'],_0x18108d=_0x24575f[0x0]['createdAt'];return _0x32d2a4==_0x18108d?_0x261a83[0x0]['attributes']['groupId']<_0x24575f[0x0]['attributes']['groupId']?-0x1:0x1:_0x32d2a4<_0x18108d?-0x1:0x1;});for(const _0x204da5 of _0x4d4581)_0x204da5['sort']((_0x2e76e2,_0x4ab8e5)=>_0x2e76e2['id']<_0x4ab8e5['id']?-0x1:0x1);}());for(let _0x805d22=0x0;_0x805d22<_0x4d4581['length'];_0x805d22++){if(0x0==_0x4d4581[_0x805d22]['length'])continue;const _0x256de7=[];for(let _0x38979c=_0x805d22+0x1;_0x38979c<_0x4d4581['length'];_0x38979c++)0x0!=_0x4d4581[_0x38979c]['length']&&_0x1dcce2(_0x4d4581[_0x805d22],_0x4d4581[_0x38979c])&&_0x256de7['push'](_0x38979c);for(const _0x2a4e33 of _0x256de7)_0x4d4581[_0x805d22]=_0x4d4581[_0x805d22]['concat'](_0x4d4581[_0x2a4e33]),_0x4d4581[_0x2a4e33]=[];}for(const _0x31c8bd of _0x4d4581)for(let _0x59dc63=0x0;_0x59dc63<_0x31c8bd['length'];_0x59dc63++)_0x31c8bd[_0x59dc63]['next']=_0x31c8bd[_0x59dc63+0x1]||null;for(const _0x13e588 of _0x4d4581)for(let _0x192ab9=0x0;_0x192ab9<_0x13e588['length'];_0x192ab9++)_0x13e588[_0x192ab9]['previous']=_0x13e588[_0x192ab9-0x1]||null;function _0x1dcce2(_0x2d3873,_0x17589d){if(_0x2d3873[0x0]['attributes']['groupId']!==_0x17589d[0x0]['attributes']['groupId']&&_0x2d3873[0x0]['author']!==_0x17589d[0x0]['author'])return!0x1;if(!function(_0x3ec85f,_0x282774){if(!_0x3ec85f['hasComments']&&!_0x282774['hasComments'])return!0x0;if(_0x3ec85f['hasComments']&&_0x282774['hasComments'])return!0x1;if(_0x3ec85f['hasComments']&&_0x282774['createdAt']<_0x3ec85f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x282774['hasComments']&&_0x3ec85f['createdAt']<_0x282774['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2d3873[0x0],_0x17589d[0x0]))return!0x1;const _0x5f08b0=Bt(_0x2d3873[0x0]['attributes'],'groupId'),_0x276981=Bt(_0x17589d[0x0]['attributes'],'groupId');if(!_0x2cc470(_0x5f08b0,_0x276981))return!0x1;return!!_0x2d3873['every'](_0x49b240=>_0x17589d['some'](_0x1034e2=>_0x49b240['getFirstRange']()['isEqual'](_0x1034e2['getFirstRange']())))&&_0x17589d['every'](_0x39f870=>_0x2d3873['some'](_0x26e43c=>_0x39f870['getFirstRange']()['isEqual'](_0x26e43c['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x528e0a){const _0x3c02cf=Array['from'](_0x528e0a),_0x1c9f6a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4301f2=_0x1c9f6a['filter'](_0xbdc28d=>!_0x528e0a['has'](_0xbdc28d)),_0x21aecf=new Map(_0x3c02cf['map'](_0x57ae4e=>[_0x57ae4e,this['_suggestionFactory']['getSuggestionCallback'](_0x57ae4e['type'],_0x57ae4e['subType'],'join')])),_0x233428=new Map(_0x1c9f6a['map'](_0x3c64dd=>[_0x3c64dd,_0x3c64dd['getRanges']()]));for(let _0x21222a=0x0;_0x21222a<_0x3c02cf['length'];_0x21222a++){if(_0x12d7d6(this,_0x3c02cf[_0x21222a],_0x3c02cf,_0x21222a+0x1))return!0x0;}for(let _0x4a7da2=0x0;_0x4a7da2<_0x3c02cf['length'];_0x4a7da2++){if(_0x12d7d6(this,_0x3c02cf[_0x4a7da2],_0x4301f2,0x0))return!0x0;}return!0x1;function _0x12d7d6(_0x49247b,_0x1ee36e,_0x53e725,_0xb63834){for(let _0x2067ee=_0xb63834;_0x2067ee<_0x53e725['length'];_0x2067ee++){const _0x875c47=_0x53e725[_0x2067ee];if(_0x875c47['type']!==_0x1ee36e['type']||_0x875c47['author']['id']!==_0x1ee36e['author']['id']||_0x875c47['subType']!==_0x1ee36e['subType'])continue;if(!Pt(_0x1ee36e,_0x875c47,['groupId']))continue;if('attribute'==_0x1ee36e['type']&&_0x1ee36e['data']['oldValue']!=_0x875c47['data']['oldValue'])continue;if('attribute'==_0x1ee36e['type']&&_0x49247b['_isBlockAttribute'](_0x1ee36e['data']['key']))continue;if('formatBlock'==_0x1ee36e['type']){const _0x5eaf79=_0x49247b['editor']['model'],_0x4cac01=_0x1ee36e['getContainedElement']();if(_0x4cac01&&(_0x5eaf79['schema']['isObject'](_0x4cac01)||_0x5eaf79['schema']['isLimit'](_0x4cac01)))continue;}const _0x2f6764=_0x21aecf['get'](_0x1ee36e),_0x348760=_0x233428['get'](_0x1ee36e),_0x2f6303=_0x233428['get'](_0x875c47),_0x1039ed=_0x1ee36e['commentThread']&&_0x1ee36e['commentThread']['length'],_0x5196ec=_0x875c47['commentThread']&&_0x875c47['commentThread']['length'];if(!_0x1039ed&&_0x2f6764(_0x2f6303,_0x348760))return _0x49247b['_joinSuggestions'](_0x875c47,_0x1ee36e),_0x233428['delete'](_0x1ee36e),!0x0;if(!_0x5196ec&&_0x2f6764(_0x348760,_0x2f6303))return _0x49247b['_joinSuggestions'](_0x1ee36e,_0x875c47),_0x233428['delete'](_0x875c47),!0x0;}return!0x1;}}['_joinSuggestions'](_0x26b24a,_0x4dc6d9){if(_0x26b24a['isMultiRange']){for(const _0x1f92ba of _0x4dc6d9['getRanges']())_0x26b24a['addRange'](_0x1f92ba);}else{const _0x226cc4=_0x4dc6d9['getFirstRange']()['end'];this['_setSuggestionRange'](_0x26b24a,this['_model']['createRange'](_0x26b24a['getFirstRange']()['start'],_0x226cc4));}_0x4dc6d9['removeMarkers']();}['_getMarkerAnnouncementText'](_0xaaacb8,_0x9a7cbd){const _0x350722=_0xaaacb8['startsWith']('format')||_0xaaacb8['startsWith']('attribute')?'FORMATTING':_0xaaacb8['toUpperCase']();return o(this['editor']['locale'],_0x9a7cbd+'_'+_0x350722+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x383f91=this['editor'];if(!_0x383f91['ui'])return;const {ariaLiveAnnouncer:_0x1d9a9b}=_0x383f91['ui'];_0x38884a(this['_model'],({left:_0xb9e7c3,entered:_0x48fbf7})=>{for(const _0x56b477 of _0xb9e7c3){const {group:_0x4d44ed,type:_0x10d6f6}=this['_splitMarkerName'](_0x56b477['name']);if('suggestion'===_0x4d44ed){_0x1d9a9b['announce'](this['_getMarkerAnnouncementText'](_0x10d6f6,'LEAVE'));break;}}for(const _0x347680 of _0x48fbf7){const {group:_0x2c3c53,type:_0x404189}=this['_splitMarkerName'](_0x347680['name']);if('suggestion'===_0x2c3c53){_0x1d9a9b['announce'](this['_getMarkerAnnouncementText'](_0x404189,'ENTER'));break;}}});}['_processAttributeChanges'](_0x41373b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x50d377=this['editor'],_0x5a7b6e=_0x50d377['model']['document']['differ']['getChanges']();if(0x0==_0x5a7b6e['length'])return!0x1;const _0xe67113=[],_0x2f2cc9=_0x5a7b6e['filter'](_0x5ce040=>'attribute'==_0x5ce040['type']),_0x50d1b2=_0x5a7b6e['filter'](_0x20a56d=>'insert'==_0x20a56d['type']&&'$text'!=_0x20a56d['name']),_0x375db0=_0x5a7b6e['filter'](_0x23c19b=>'remove'==_0x23c19b['type']&&'$text'!=_0x23c19b['name']);for(const _0x2a0da0 of _0x2f2cc9)_0xe67113['push']({'key':_0x2a0da0['attributeKey'],'newValue':_0x2a0da0['attributeNewValue'],'oldValue':_0x2a0da0['attributeOldValue'],'range':Ot(_0x2a0da0['range'],_0x50d377['model'])});for(const _0x3b2bef of _0x50d1b2){const _0x4c62f8=_0x375db0['find'](_0x2c1941=>_0x2c1941['position']['isEqual'](_0x3b2bef['position']));_0x4c62f8&&_0xe67113['push']({'key':m,'newValue':_0x3b2bef['name'],'oldValue':_0x4c62f8['name'],'range':_0x50d377['model']['createRangeOn'](_0x3b2bef['position']['nodeAfter'])});}return 0x0!=_0xe67113['length']&&this['_reduceExistingSuggestions'](_0x41373b,_0xe67113);}['_processAttributeSuggestions'](_0x521b56){let _0x2ccd14=!0x1;const _0x2d48c7=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2bbf89=>_0x2bbf89['data']['newRange']&&_0x2bbf89['name']['startsWith']('suggestion:attribute:'));for(const _0x5ac9d8 of _0x2d48c7){const {subType:_0x146924,id:_0xc2d04}=this['_splitMarkerName'](_0x5ac9d8['name']),_0x218129=_0x146924['split']('|')[0x0];for(const _0x35d0b3 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x35d0b3['id']!=_0xc2d04&&'attribute'==_0x35d0b3['type']&&_0x35d0b3['data']&&_0x35d0b3['data']['key']==_0x218129&&_0x35d0b3['getFirstRange']()['isIntersecting'](_0x5ac9d8['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x35d0b3,_0x5ac9d8['data']['newRange'],_0x521b56),_0x2ccd14=!0x0);}return _0x2ccd14;}['_recordAttributeChanges'](_0x3b4e37){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x3b4e37();}['_isRegisteredAttribute'](_0x39c757){const _0xae60da=this['_isBlockAttribute'](_0x39c757),_0x44495e=this['_inlineAttributeKeys']['has'](_0x39c757);return _0xae60da||_0x44495e;}['_reduceExistingSuggestions'](_0x172c49,_0xe5c00b){if(0x0==_0xe5c00b['length'])return!0x1;let _0x4c88e6=!0x1;for(const _0x54102c of _0xe5c00b){const _0x325990=this['_findSuggestions'](_0x54102c['range'],'attribute')['filter'](_0x3186d0=>!_0x3186d0['meta']['isNextTo'])['map'](_0x526883=>_0x526883['suggestion']),_0x3bd7b3=_0xcd6702({'newValue':_0x54102c['newValue']});_0x325990['filter'](_0x26293e=>{const [_0xcb3162,_0x2b9e65]=_0x26293e['subType']['split']('|');return _0xcb3162==_0x54102c['key']&&_0x2b9e65!=_0x3bd7b3;})['forEach'](_0x3706ce=>{this['_reduceSuggestionAttributeRange'](_0x3706ce,_0x54102c['range'],_0x172c49),_0x4c88e6=!0x0;});}return _0x4c88e6;}['_reduceSuggestionAttributeRange'](_0x3e22b5,_0x451b7f,_0x2d4505){const _0xa14136=_0x3e22b5['getFirstRange']()['getDifference'](_0x451b7f);0x0!==_0xa14136['length']?0x1!==_0xa14136['length']?this['_breakSuggestionMarker'](_0x3e22b5,_0x451b7f['start'],_0x451b7f['end']):this['_setSuggestionRange'](_0x3e22b5,_0xa14136[0x0]):_0x2d4505['removeMarker'](_0x3e22b5['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x42f7cf){this['_editor']=_0x42f7cf,this['_model']=_0x42f7cf['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3cf1c2,_0x478e59,_0x4188fd,_0x5dd262,_0x212069,_0x433ee5){return new u(this['_model'],{'type':_0x3cf1c2,'subType':_0x478e59,'id':_0x4188fd,'author':_0x5dd262,'creator':_0x5dd262,'attributes':_0x212069,'onAttributesChange':_0x433ee5,'onAccept':(..._0x8431ba)=>this['getSuggestionCallback'](_0x3cf1c2,_0x478e59,'accept')(..._0x8431ba),'onDiscard':(..._0x4605f4)=>this['getSuggestionCallback'](_0x3cf1c2,_0x478e59,'discard')(..._0x4605f4)});}['registerCustomCallback'](_0x251320,_0x32b0c6,_0x23af09,_0x568790){const _0x531f00=_0x251320+':'+_0x32b0c6+':'+_0x23af09;this['_customCallbacks']['set'](_0x531f00,_0x568790);}['getSuggestionCallback'](_0x699228,_0x2f848e,_0x2701b3){const _0x6751e9=_0x699228+':'+_0x2f848e+':'+_0x2701b3;return this['_customCallbacks']['get'](_0x6751e9)||this['_defaultCallbacks']['get'](_0x699228+':'+_0x2701b3);}['_registerDefaultCallbacks'](){const _0x2a9c4f=()=>!0x1,_0x4d0bdb=_0x43396f=>{_0x43396f['sort']((_0x438b66,_0x5620ef)=>_0x438b66['start']['isBefore'](_0x5620ef['start'])?0x1:-0x1),this['_model']['change'](_0x44cd39=>{for(const _0x16c11d of _0x43396f){let _0x11b762;_0x11b762=_0x16c11d['end']['isAtEnd']&&_0x16c11d['end']['parent']==_0x16c11d['start']['nodeAfter']?_0x44cd39['createSelection'](_0x16c11d['start']['nodeAfter'],'on'):_0x44cd39['createSelection'](_0x16c11d),this['_model']['deleteContent'](_0x11b762,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x53d561=(_0x3c457a,_0x3a6c7f)=>{_0x3a6c7f&&this['_model']['change'](_0x3c4cf3=>{const {commandName:_0x5efdad,commandParams:_0x119e12=[]}=_0x3a6c7f,_0x8e35c9=_0x3c457a['map'](_0x1977d0=>(Tt(_0x1977d0)&&(_0x1977d0=this['_model']['createRange'](_0x1977d0['end'])),_0x1977d0))['filter'](_0x5a0130=>'$graveyard'!==_0x5a0130['root']['rootName']);if(_0x8e35c9['length']<0x1)return;const _0x4dec97=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x42f8bd=>_0x1e1f20['fromRange'](_0x42f8bd));_0x3c4cf3['setSelection'](_0x8e35c9);for(const _0x2d75fa of this['_editor']['commands']['commands']())_0x2d75fa['refresh']();_0x119e12['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5efdad,..._0x119e12);const _0x1fed99=_0x4dec97['filter'](_0x18daa5=>'$graveyard'!=_0x18daa5['root']['rootName']);_0x1fed99['length']>0x0&&_0x3c4cf3['setSelection'](_0x1fed99);for(const _0x4eb2b4 of _0x4dec97)_0x4eb2b4['detach']();});},_0x807008=(_0x3ea12a,_0x58a1dd)=>0x1==_0x3ea12a['length']&&0x1==_0x58a1dd['length']&&_0x3ea12a[0x0]['end']['isEqual'](_0x58a1dd[0x0]['start']),_0x530667=(_0x57feaf,_0x12c672,_0x29f3b8,_0x29744d)=>Ft(_0x57feaf,_0x12c672,_0x29f3b8,_0x29744d,this['_model'])?[_0x57feaf,_0x12c672]:Ft(_0x12c672,_0x57feaf,_0x29744d,_0x29f3b8,this['_model'])?[_0x12c672,_0x57feaf]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2a9c4f),this['_defaultCallbacks']['set']('insertion:discard',_0x4d0bdb),this['_defaultCallbacks']['set']('insertion:join',_0x807008),this['_defaultCallbacks']['set']('insertion:chain',_0x530667),this['_defaultCallbacks']['set']('deletion:accept',_0x4d0bdb),this['_defaultCallbacks']['set']('deletion:discard',_0x2a9c4f),this['_defaultCallbacks']['set']('deletion:join',_0x807008),this['_defaultCallbacks']['set']('deletion:chain',_0x530667),this['_defaultCallbacks']['set']('formatInline:accept',_0x53d561),this['_defaultCallbacks']['set']('formatInline:discard',_0x2a9c4f),this['_defaultCallbacks']['set']('formatInline:join',_0x807008),this['_defaultCallbacks']['set']('formatInline:chain',_0x2a9c4f),this['_defaultCallbacks']['set']('formatBlock:accept',_0x53d561),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2a9c4f),this['_defaultCallbacks']['set']('formatBlock:join',_0x807008),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2a9c4f),this['_defaultCallbacks']['set']('attribute:accept',_0x2a9c4f),this['_defaultCallbacks']['set']('attribute:discard',(_0x544928,_0x5990eb)=>{if(!_0x5990eb)return;const _0x2e7fdd=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x31f3f8=>{if(_0x5990eb['key']==m)for(const _0x5dc9e3 of _0x544928){const _0x42458b=_0x5dc9e3['start']['nodeAfter'],_0xb8941c=_0x5990eb['oldValue'];_0x31f3f8['rename'](_0x42458b,_0xb8941c);}else{if(_0x2e7fdd['_isBlockAttribute'](_0x5990eb['key'])){for(const _0x299eda of _0x544928)void 0x0!==_0x5990eb['oldValue']?_0x31f3f8['setAttribute'](_0x5990eb['key'],_0x5990eb['oldValue'],_0x299eda['start']['nodeAfter']):_0x31f3f8['removeAttribute'](_0x5990eb['key'],_0x299eda['start']['nodeAfter']);}else{for(const _0x39db72 of _0x544928)_0x5990eb['oldValue']?_0x31f3f8['setAttribute'](_0x5990eb['key'],_0x5990eb['oldValue'],_0x39db72):_0x31f3f8['removeAttribute'](_0x5990eb['key'],_0x39db72);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x807008);}}function Rt(_0x5c4069,_0x2b0c32,_0x9524f2){for(const _0x3520bb of _0x2b0c32['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3520bb['root']==_0x3520bb)return!0x1;if(!_0x9524f2['containsItem'](_0x3520bb))return!0x1;if(_0x5c4069['isObject'](_0x3520bb)||_0x5c4069['isLimit'](_0x3520bb))return!0x0;}return!0x1;}function Tt(_0x252ed4){return _0x252ed4['end']['parent']==_0x252ed4['start']['nodeAfter']&&_0x252ed4['end']['isAtStart'];}function Et(_0x25c41d,_0x331ab2,_0x3d78e4,_0x53dd3a){const _0x3c4274=_0x35f5db=>!_0x35f5db['item']['is']('$textProxy')&&!_0x53dd3a['isObject'](_0x35f5db['item']),_0x16bf5e=_0x25c41d['start']['getLastMatchingPosition'](_0x3c4274),_0x4a7c1e=_0x25c41d['end']['getLastMatchingPosition'](_0x3c4274,{'direction':'backward'});return(!_0x25c41d['start']['isEqual'](_0x16bf5e)||!_0x25c41d['end']['isEqual'](_0x4a7c1e))&&(_0x16bf5e['isBefore'](_0x4a7c1e)?_0x3d78e4['updateMarker'](_0x331ab2,{'range':_0x3d78e4['createRange'](_0x16bf5e,_0x4a7c1e)}):_0x3d78e4['removeMarker'](_0x331ab2),!0x0);}function Vt(_0x3f4676){return _0xcd6702(_0x3f4676);}function Ut(_0x5cb9b4){const _0x33a9bd=_0x5cb9b4['start']['nodeAfter'];return _0x33a9bd&&_0x33a9bd['is']('element');}function Ot(_0x1f8fdf,_0x27430e){return null==_0x1f8fdf['end']['nodeBefore']&&_0x1f8fdf['end']['parent']==_0x1f8fdf['start']['nodeAfter']?Gt(_0x1f8fdf['start']['nodeAfter'],_0x27430e):_0x1f8fdf;}function Gt(_0x31a0e3,_0x18438b){const _0x41a74e=_0x18438b['schema']['isObject'](_0x31a0e3)||_0x18438b['schema']['isSelectable'](_0x31a0e3);return _0x18438b['createRange'](_0x18438b['createPositionAt'](_0x31a0e3,'before'),_0x41a74e?_0x18438b['createPositionAfter'](_0x31a0e3):_0x18438b['createPositionAt'](_0x31a0e3,'end'));}function Ft(_0x4ff109,_0x194cb5,_0x1c52e6,_0x46d286,_0x247781){if(!Pt(_0x4ff109,_0x194cb5))return!0x1;if(_0x1c52e6['end']['isEqual'](_0x46d286['start']))return!0x0;if(_0x4ff109['type']!=_0x194cb5['type'])return!0x1;if(!_0x1c52e6['end']['isTouching'](_0x46d286['start']))return!0x1;const _0x5efb12=_0x247781['createRange'](_0x1c52e6['end'],_0x46d286['start'])['getWalker']();for(const _0x541a47 of _0x5efb12)if(['elementStart','elementEnd']['includes'](_0x541a47['type'])&&_0x247781['schema']['isLimit'](_0x541a47['item']))return!0x1;return!0x0;}function Pt(_0x305d6c,_0x2ad5db,_0x3fd381=[]){return!(!_0x305d6c['_isDataLoaded']||!_0x2ad5db['_isDataLoaded'])&&_0x2cc470(Bt(_0x305d6c['attributes'],_0x3fd381),Bt(_0x2ad5db['attributes'],_0x3fd381));}function Lt(_0x57a0ee,_0x5e9035){const _0xabba84=Ht(_0x57a0ee['attributes']),_0x3dfd0f=Ht(_0x5e9035);if(!_0x57a0ee['_isDataLoaded'])return!0x1;for(const _0x40a3da of Object['keys'](_0x3dfd0f))if(!_0x2cc470(_0xabba84[_0x40a3da],_0x3dfd0f[_0x40a3da]))return!0x1;return!0x0;}function Ht(_0x1115a6){const _0x44f625=Object['assign']({},_0x1115a6);return delete _0x44f625['skipNestingCheck'],delete _0x44f625['tablePasteChainId'],_0x44f625;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x232700(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x27ece8,_0x518bae,_0x4861bc,_0x3c0cac){super(),this['model']=_0x518bae,this['view']=_0x4861bc,this['commentThreadController']=_0x3c0cac,this['_editor']=_0x27ece8,this['_acceptCommand']=_0x27ece8['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x27ece8['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3f38a6,_0xad6799)=>_0x3f38a6||_0xad6799),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1adb42=>_0x1adb42&&this['_editor']['model']['canEditAt'](_0x518bae['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x411cd7=>_0x411cd7&&this['_editor']['model']['canEditAt'](_0x518bae['getRanges']())),this['_pendingAction']=null,_0x4861bc['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4861bc,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4861bc,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4861bc,'change:isDirty',()=>{_0x4861bc['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 _0x39304c=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x39304c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x1553f1{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x201f58,_0x4ba5ee,_0x3f37f5,_0x2bac87){super(_0x201f58),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x4ba5ee['authoredAt']),this['bind']('authoredAt')['to'](_0x4ba5ee),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x4ba5ee,this['_localUser']=_0x3f37f5,this['_config']=_0x2bac87,_0x2bac87['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:_0x56c960}=this['_config'];this['commentsListView']=new _0x56c960(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',_0x53d644=>_0x53d644+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2ed71d,_0xbd43d6)=>_0x2ed71d||!!_0xbd43d6);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1b7bc0}=this['_config'],_0x5a70c6=new _0x1b7bc0(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xb0d9c7=_0x5a70c6['commentInputView'];return _0x5a70c6['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xb0d9c7,'value',(_0x16f48a,_0x283e52,_0x20197d)=>!!_0x20197d||_0x16f48a&&!_0x283e52),_0xb0d9c7['on']('submit',(_0x4cea1c,_0x1d33da)=>{this['fire']('addComment',_0x1d33da),_0xb0d9c7['editor']['setData']('');}),_0xb0d9c7['on']('cancel',()=>this['focus']()),_0xb0d9c7['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5a70c6;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x49d831,_0x1041d7,_0x2fe15b,_0x5dc88b){super(_0x49d831,_0x1041d7,_0x2fe15b,_0x5dc88b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x30b321=>_0x30b321&&_0x30b321[0x0]?_0x30b321[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x46d702,_0x504ef4)=>{let _0x18f8ff='';for(const _0x155722 of _0x46d702)_0x18f8ff+='<p>'+ds(_0x155722['content'],_0x155722['color'])+'</p>';return _0x504ef4?_0x18f8ff:_0x1b631c(_0x18f8ff,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x49d831,'Accept\x20suggestion'),_0x30f98f['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x49d831,'Discard\x20suggestion'),_0x30f98f['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x48742f(_0x49d831,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2029a1=this['bindTemplate'],_0x851a24=[{'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':_0x2029a1['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2029a1['to']('authoredAt',_0x1e0b56=>this['_config']['formatDateTime'](_0x1e0b56))}]}]},{'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']&&_0x851a24['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x39a61d={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x2029a1['if']('isActive','ck-suggestion-wrapper--active'),_0x2029a1['to']('type',_0x72c41a=>'ck-suggestion-'+_0x72c41a),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':_0x851a24}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x39a61d['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)),_0x39a61d;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x28af7e,_0x3a9dbd,_0xe41169)=>{this['_descriptionElement']['innerHTML']=_0xe41169;});}['_createButton'](_0x5952cd,_0xa3f81a,_0x119cf0,_0x39c198,_0x57d42c){const _0x3f5d55=new _0x225ac1(this['locale']);return _0x3f5d55['set']({'label':_0x5952cd,'icon':_0xa3f81a,'tooltip':!0x0,'tooltipPosition':_0x57d42c}),_0x3f5d55['extendTemplate']({'attributes':{'class':_0x119cf0}}),_0x3f5d55['on']('execute',()=>{this['fire'](_0x39c198,this['_model']['id']);}),_0x3f5d55;}['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(_0x52112a,_0x22abe5){let _0x29cad3='';return _0x29cad3+=_0x52112a['split']('*')['map']((_0x57345e,_0x4ac02e)=>_0x4ac02e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x57345e)+'</span>':us(_0x57345e))['join'](''),_0x22abe5&&(_0x29cad3+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x22abe5['value']+'\x22\x20title=\x22'+_0x22abe5['title']+'\x22></span>'),_0x29cad3;}function us(_0x3d5d36){const _0x3167b9=document['createElement']('span');return _0x3167b9['innerText']=_0x3d5d36,_0x3167b9['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 _0x19addd{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x38b0e5,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x50f3e4){super(_0x50f3e4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x966771=this['editor']['config'];_0x966771['define']('trackChanges.SuggestionThreadView',ne),_0x966771['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x966771['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2926c0,_0x405650){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3af2e5,_0x27b677]of this['_handleControllerBuffer']){const _0x3f557e=this['_suggestionToController']['has'](_0x3af2e5);_0x3f557e||_0x27b677?_0x3f557e&&_0x27b677&&this['_destroyController'](_0x3af2e5):this['_initializeController'](_0x3af2e5);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2926c0,_0x405650);}['init'](){const _0x4351fe=this['editor'],_0x50e159=_0x4351fe['plugins']['get']('TrackChangesEditing'),_0xd4769a=_0x4351fe['plugins']['get']('Annotations'),_0x2f99b2=_0x4351fe['plugins']['get']('EditorAnnotations'),_0x2f4f91=_0x4351fe['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2f99b2['addSourceCollector'](()=>{const _0x3ece7c=[];for(const [_0x4db560,_0x3869ec]of Array['from'](this['_suggestionToController'])){const _0x1ff380=_0x4db560['getAllAdjacentSuggestions'](),_0x4d51bd=[];for(const _0x5a7af1 of _0x1ff380){if(!_0x5a7af1['isInContent'])continue;if(_0x5a7af1['isMultiRange']){_0x4d51bd['push'](..._0x5a7af1['getRanges']());continue;}const _0x5d85b3=_0x5a7af1['getFirstRange']();if(_0x4d51bd['length']>0x0){const _0xe4aad7=_0x4d51bd[0x0]['getJoined'](_0x5d85b3);if(_0xe4aad7){_0x4d51bd[0x0]=_0xe4aad7;continue;}}_0x4d51bd['push'](_0x5d85b3);}_0x3ece7c['push']([_0x3869ec['view'],_0x4d51bd]);}return _0x3ece7c;}),this['listenTo'](_0x50e159,'suggestionLoaded',(_0x63b137,_0x5d4bd8)=>{this['listenTo'](_0x5d4bd8,'change:previous',(_0xf58fe0,_0x3a04d3,_0x347181,_0xcb6e9e)=>{_0x5d4bd8['isInContent']&&(null==_0x347181?(this['_updateController'](_0xcb6e9e['head']),this['_handleSuggestionControllerDelayed'](_0x5d4bd8,!0x1)):(this['_updateController'](_0x347181['head']),null==_0xcb6e9e&&this['_handleSuggestionControllerDelayed'](_0x5d4bd8,!0x0)));}),null!==_0x5d4bd8['previous']?this['_updateController'](_0x5d4bd8['head']):this['_handleSuggestionControllerDelayed'](_0x5d4bd8,!0x1);}),this['listenTo'](_0x50e159,'suggestionUnloaded',(_0x91f4d,_0x4a6751,_0x49d5f7)=>{this['stopListening'](_0x4a6751,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4a6751),this['_suggestionToController']['has'](_0x4a6751)&&this['_destroyController'](_0x4a6751),_0x49d5f7&&this['_updateController'](_0x49d5f7['head']);}),this['listenTo'](_0x50e159,'suggestionChanged',(_0x1831c8,_0xdb465f)=>{this['_updateController'](_0xdb465f);}),this['listenTo'](_0xd4769a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2f4f91,'addComment',(_0x428ff9,{threadId:_0x336fe5,isFromAdapter:_0x45f159})=>{if(_0x45f159||!_0x50e159['hasSuggestion'](_0x336fe5))return;const _0x21ca18=_0x50e159['getSuggestion'](_0x336fe5);this['_suggestionToController']['get'](_0x21ca18)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x464375=this['editor']['plugins']['get']('Annotations'),_0x12cfc9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ff822=Array['from'](_0x464375['activeAnnotations'],_0x13a903=>_0x13a903['innerView'])['filter'](_0x231c0c=>this['_viewToController']['has'](_0x231c0c)),_0x245691=[];for(const _0x443b24 of _0x2ff822){const _0x37af58=this['_viewToController']['get'](_0x443b24)['model']['getAllAdjacentSuggestions']();_0x245691['push'](..._0x37af58['reduce']((_0x682728,_0x1b1b0e)=>[..._0x682728,..._0x1b1b0e['getMarkerNames']()],[]));}_0x12cfc9['activeMarkers']=_0x245691;}['_addUIComponentsToFactory'](){const _0x16c647=this['editor'],_0x3087cb=_0x16c647['locale'],_0x5c8360=o(_0x3087cb,'Track\x20changes'),_0x3a6886=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x5c8360,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x3087cb,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x3087cb,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x3087cb,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x3087cb,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x31e018 of _0x3a6886)if(ae(_0x31e018)){const _0x30afc5=_0x16c647['commands']['get'](_0x31e018['model']['commandName']);_0x31e018['model']['bind']('isOn','isEnabled')['to'](_0x30afc5,'value','isEnabled');}_0x16c647['ui']['componentFactory']['add']('trackChanges',_0x5da6c0=>this['_createToolbarButton'](_0x5da6c0,_0x3a6886,_0x5c8360)),_0x16c647['ui']['componentFactory']['add']('menuBar:trackChanges',_0x423283=>this['_createMenuBarMenu'](_0x423283,_0x3a6886,_0x5c8360));}['_createToolbarButton'](_0x420c6f,_0x59fa22,_0x4bfdc2){const _0xa9e8f2=zt(_0x420c6f,Zt),_0x189793=this['editor']['commands']['get']('trackChanges');_0xa9e8f2['buttonView']['set']({'tooltip':_0x4bfdc2,'label':_0x4bfdc2,'icon':ie}),_0xa9e8f2['buttonView']['bind']('isOn')['to'](_0x189793,'value'),_0xa9e8f2['buttonView']['on']('execute',()=>{_0x189793['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0xa9e8f2,_0x59fa22,{'role':'menu'});const _0x165b2b=[];for(const _0x452320 of _0x59fa22)ae(_0x452320)&&_0x165b2b['push'](this['editor']['commands']['get'](_0x452320['model']['commandName']));const _0x19378c=_0xa9e8f2['buttonView'];return _0x19378c['actionView']['unbind']('isEnabled'),_0x19378c['arrowView']['unbind']('isEnabled'),_0x19378c['actionView']['bind']('isEnabled')['to'](_0x189793,'isEnabled'),_0x19378c['arrowView']['bind']('isEnabled')['toMany'](_0x165b2b,'isEnabled',(..._0x50a2d4)=>_0x50a2d4['some'](_0x131ea4=>_0x131ea4)),_0xa9e8f2['on']('execute',_0x220801=>{this['editor']['execute'](_0x220801['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xa9e8f2;}['_createMenuBarMenu'](_0xbe1d66,_0xcaf7dd,_0x6fe401){const _0x10e676=new Kt(_0xbe1d66),_0xa88cd3=this['editor']['commands']['get']('trackChanges');_0x10e676['buttonView']['set']({'label':_0x6fe401,'icon':ie});const _0x3024b6=new Qt(_0xbe1d66);for(const _0x45ef55 of _0xcaf7dd){if('separator'==_0x45ef55['type']){_0x3024b6['items']['add'](new Jt(_0xbe1d66));continue;}const _0x3ee72e=new Xt(_0xbe1d66,_0x10e676),_0x55b9e8=new Yt(_0xbe1d66),_0x14e9cd=_0x45ef55['model'];_0x55b9e8['bind'](...Object['keys'](_0x14e9cd))['to'](_0x14e9cd),_0x55b9e8['delegate']('execute')['to'](_0x10e676),_0x55b9e8['on']('execute',()=>{this['editor']['execute'](_0x14e9cd['commandName']),this['editor']['editing']['view']['focus']();}),_0x3ee72e['children']['add'](_0x55b9e8),_0x3024b6['items']['add'](_0x3ee72e);}return _0x10e676['bind']('isEnabled')['to'](_0xa88cd3,'isEnabled'),_0x10e676['panelView']['children']['add'](_0x3024b6),_0x10e676;}['_initializeController'](_0x39e994){const _0x33ac9d=this['editor'],_0x217bb6=_0x33ac9d['config'],_0x59bc42=_0x33ac9d['plugins']['get']('Annotations'),_0x238f01=_0x33ac9d['plugins']['get']('CommentsRepository'),_0x1307ca=_0x33ac9d['plugins']['get']('EditorAnnotations'),_0xabc255=_0x33ac9d['plugins']['get'](_0x38b0e5)['me'],_0x570670=_0x217bb6['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x402510,CommentThreadInputView:_0x13249c}=_0x33ac9d['plugins']['get']('CommentsUI');let _0x5236c2,_0x392793;this['_annotationViews']['has'](_0x39e994['id'])?(_0x392793=this['_annotationViews']['get'](_0x39e994['id']),_0x5236c2=_0x392793['mainView']):(_0x5236c2=new _0x570670(_0x33ac9d['locale'],_0x39e994,_0xabc255,{'disableComments':this['_disableComments'],'editorConfig':_0x217bb6['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x217bb6['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x217bb6['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x217bb6['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x58b2e2(_0x217bb6['get']('locale')),'CommentView':_0x217bb6['get']('comments')['CommentView'],'CommentsListView':_0x402510,'CommentThreadInputView':_0x13249c}),_0x5236c2['acceptButton']['on']('execute',()=>{_0x33ac9d['editing']['view']['focus']();}),_0x5236c2['discardButton']['on']('execute',()=>{_0x33ac9d['editing']['view']['focus']();}),_0x392793=_0x59bc42['createAnnotationView'](this['editor']['locale'],_0x5236c2),_0x392793['bind']('isDirty')['to'](_0x5236c2,'isDirty'),_0x392793['bind']('length')['to'](_0x5236c2),_0x392793['bind']('type')['to'](_0x5236c2,'type',_0x13981f=>'suggestion-'+_0x13981f),this['_annotationViews']['set'](_0x39e994['id'],_0x392793));const _0x215680=_0x238f01['createCommentThreadController'](_0x39e994['commentThread'],_0x5236c2),_0x49a355=new oe(_0x33ac9d,_0x39e994,_0x5236c2,_0x215680),_0x3d934d=_0x39e994['getAllAdjacentSuggestions']()['filter'](_0x1b0e59=>_0x1b0e59['isInContent']);_0x5236c2['descriptionParts']=_0x33ac9d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3d934d),this['_suggestionToController']['set'](_0x39e994,_0x49a355),this['_viewToController']['set'](_0x5236c2,_0x49a355);const _0x2a6f69=_0x59bc42['createAnnotation']({'view':_0x392793,'target':()=>{const _0x1f3d1d=[],_0x418a45=_0x39e994['getAllAdjacentSuggestions']()['filter'](_0x29ccb5=>_0x29ccb5['isInContent']);for(const _0x4a07ec of _0x418a45)_0x1f3d1d['push'](..._0x4a07ec['getMarkers']());return _0x4359a6(_0x33ac9d['editing'],_0x1f3d1d);},'type':()=>'suggestion-'+_0x49a355['view']['type']});_0x238f01['_bindAnnotationToEditors'](_0x5236c2,_0x2a6f69),_0x59bc42['add'](_0x2a6f69),_0x1307ca['registerAnnotation'](_0x2a6f69);}['_destroyController'](_0x37df6e){const _0xe00db5=this['editor']['plugins']['get']('CommentsRepository'),_0x4ba39e=this['editor']['plugins']['get']('Annotations'),_0x326506=this['_suggestionToController']['get'](_0x37df6e),_0x186c06=_0x326506['view'],_0x536fa1=_0x4ba39e['getByInnerView'](_0x186c06);_0xe00db5['_unbindEditors'](_0x186c06),_0x536fa1&&_0x4ba39e['remove'](_0x536fa1),this['_suggestionToController']['delete'](_0x37df6e),this['_viewToController']['delete'](_0x186c06),_0x326506['destroy']();}['_updateController'](_0x46db35){if(!_0x46db35['isInContent']||!this['_suggestionToController']['has'](_0x46db35))return;const _0x2eadf2=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd8dcbc=this['_suggestionToController']['get'](_0x46db35),_0x438d85=_0x46db35['getAllAdjacentSuggestions']();_0xd8dcbc['view']['descriptionParts']=_0x2eadf2['descriptionFactory']['getDescriptions'](_0x438d85);}['destroy'](){for(const _0x2139a4 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2139a4);for(const _0x2f6f9c of this['_annotationViews']['values']())_0x2f6f9c['mainView']['destroy']();super['destroy']();}}function ae(_0x428616){return'model'in _0x428616;}class k extends _0x19addd{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x4cce73){this['editor']['plugins']['get'](p)['adapter']=_0x4cce73;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x52d9e7){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x52d9e7);}['getSuggestions']({skipNotAttached:_0x177a14=!0x1,toJSON:_0x20da37=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x177a14,'toJSON':_0x20da37});}['getSuggestion'](_0x2bf9f4){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2bf9f4);}}const T=['Pagination'];class P extends _0x19addd{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x121b10=this['editor'];if(_0x121b10['config']['define']('trackChangesData.editorCreator',_0x226b40=>{const _0xfd1027=_0x121b10['model']['document']['getRootNames']()['reduce']((_0x3854d8,_0x162aba)=>(_0x3854d8[_0x162aba]='',_0x3854d8),{});return _0x121b10['constructor']['create'](_0xfd1027,_0x226b40);}),'function'!=typeof _0x121b10['config']['get']('trackChangesData')['editorCreator'])throw new _0x586883('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x27ab29){return N(this['editor'],!0x0,_0x27ab29);}['getDataWithDiscardedSuggestions'](_0xd40144){return N(this['editor'],!0x1,_0xd40144);}}class D extends _0x19addd{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x466efa){super(_0x466efa),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(_0x42d8e5){return void 0x0!==_0x42d8e5['getRootsAttributes'];}async function N(_0x3b521c,_0x296ca9,_0x3d555a){const _0x5e22fd=_0x33dd22(_0x3b521c,T);_0x5e22fd['plugins']['push'](p,D),_0x5e22fd['rootsAttributes']=v(_0x3b521c)?_0x3b521c['getRootsAttributes']():void 0x0;const _0x2bb7fc=document['createDocumentFragment'](),_0x32b084=_0x3b521c['config']['get']('trackChangesData')['editorCreator'],_0x73b246=await _0x32b084(_0x5e22fd,()=>function(_0x36aeb4){const _0x9ad112=document['createElement']('div');return _0x36aeb4['appendChild'](_0x9ad112),_0x9ad112;}(_0x2bb7fc));!function(_0x473938,_0x4b8d74){const _0x3bcf02=_0x473938['model']['document']['getRootNames']()['reduce']((_0x3e48f4,_0x40e8d9)=>(_0x3e48f4[_0x40e8d9]=_0x473938['data']['get']({'rootName':_0x40e8d9}),_0x3e48f4),{}),_0x4e91b8=_0x473938['plugins']['get']('Users')['users']['map'](_0x19f0ea=>({'id':_0x19f0ea['id'],'name':_0x19f0ea['name']})),_0x5669fe=_0x473938['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x10d875=_0x473938['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x34e6b3=_0x4b8d74['plugins']['get']('Users'),_0x31cf79=_0x4b8d74['plugins']['get']('TrackChangesEditing'),_0x327ab4=_0x4b8d74['plugins']['get']('CommentsRepository');for(const _0x194124 of _0x4e91b8)_0x34e6b3['getUser'](_0x194124['id'])||_0x34e6b3['addUser'](_0x194124);_0x34e6b3['me']||_0x34e6b3['useAnonymousUser']();for(const _0x31ae29 of _0x10d875)_0x327ab4['addCommentThread'](_0x31ae29);for(const _0x43a265 of _0x5669fe)_0x31cf79['addSuggestionData'](_0x43a265);_0x4b8d74['data']['set'](_0x3bcf02);}(_0x3b521c,_0x73b246),_0x73b246['execute'](_0x296ca9?'acceptAllSuggestions':'discardAllSuggestions');const _0x296ce7=v(_0x73b246)?_0x73b246['getFullData'](_0x3d555a):_0x73b246['data']['get'](_0x3d555a);return await _0x73b246['destroy'](),_0x296ce7;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x49b0aa,PendingActions as _0x17b952,icons as _0x4e20e6}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5c48d6,ObservableMixin as _0x3c943f,uid as _0x1b9482,insertToPriorityArray as _0x2b741e,priorities as _0x244536,logWarning as _0x1bbbe2,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x5e09a2,View as _0x12c095,ButtonView as _0x188b51,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 _0x23d4f0,hashObject as _0x2e0f7b,surroundingMarkersDetector as _0x349032,trimHtml as _0x3bb110,UserView as _0x5bb807,getDateTimeFormatter as _0xbd63ee,getAllMarkersDomElementsSorted as _0x206f57,sanitizeEditorConfig as _0x4b3541}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1c7813,LiveRange as _0x2e3ae0,LivePosition as _0x21320a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x54c85e,toWidget as _0x2aed14}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1e1c83,set as _0xec70b7,isEqual as _0x17198d,unset as _0x5596d0,omit as Bt}from'lodash-es';import{Delete as _0x44fcee,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x39639a,ShiftEnter as _0x1fde7c}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x1ae83b,_0x561697){super(_0x1ae83b),this['_enabledCommands']=_0x561697,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 _0x4cbc29 of this['editor']['commands']['commands']())_0x4cbc29['affectsData']&&!this['_enabledCommands']['has'](_0x4cbc29)&&_0x4cbc29['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3a3250 of this['editor']['commands']['commands']())_0x3a3250['affectsData']&&!this['_enabledCommands']['has'](_0x3a3250)&&_0x3a3250['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x3e654c,_0x1b5640){super(_0x3e654c),this['_suggestions']=_0x1b5640,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x48ab24){const _0xa7eb00=this['_suggestions']['get'](_0x48ab24);if(!_0xa7eb00)throw new _0x5c48d6('track-changes-accept-suggestion-not-found',this);const _0x123249=_0xa7eb00['getRanges']();this['editor']['model']['canEditAt'](_0x123249)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xa7eb00);}}class B extends ts{['_suggestions'];constructor(_0x2cb616,_0x2c7184){super(_0x2cb616),this['_suggestions']=_0x2c7184,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x29d74f){const _0x45e3c5=this['_suggestions']['get'](_0x29d74f);if(!_0x45e3c5)throw new _0x5c48d6('track-changes-discard-suggestion-not-found',this);const _0x402f5e=_0x45e3c5['getRanges']();this['editor']['model']['canEditAt'](_0x402f5e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x45e3c5);}}function ss(_0x4b2d4d){return _0x4b2d4d['sort']((_0x15e7b2,_0x3613b5)=>'deletion'==_0x15e7b2['type']&&'deletion'!=_0x3613b5['type']?-0x1:'deletion'!=_0x15e7b2['type']&&'deletion'==_0x3613b5['type']?0x1:0x0);}function to(_0xe5b1e7,_0x17afca){let _0x4550c2,_0x31c3a0=0x0;const _0x2397ed=[],_0x2fcbb9=_0x17afca['schema'];for(;_0x31c3a0<_0xe5b1e7['length'];){const _0x43d011=_0xe5b1e7[_0x31c3a0],_0x583ce3=_0xe5b1e7[_0x31c3a0+0x1];_0x4550c2||(_0x4550c2=_0x17afca['createPositionBefore'](_0x43d011)),co(_0x17afca,_0x43d011,_0x583ce3)||(_0x2397ed['push'](_0x17afca['createRange'](_0x4550c2,_0x2fcbb9['isObject'](_0x43d011)?_0x17afca['createPositionAfter'](_0x43d011):_0x17afca['createPositionAt'](_0x43d011,'end'))),_0x4550c2=null),_0x31c3a0++;}return _0x2397ed;}function co(_0x2ff54c,_0x315066,_0x2f93b8){if(!_0x2f93b8)return!0x1;const _0x567d93=_0x2ff54c['createPositionAfter'](_0x315066),_0x436b7f=_0x2ff54c['createPositionBefore'](_0x2f93b8);return _0x567d93['isTouching'](_0x436b7f);}function rs(_0x2981a2,_0x601259,_0x1b9c7a){for(;_0x1b9c7a['length'];){const _0x34d038=_0x1b9c7a['splice'](0x0,0x64);_0x2981a2['change'](()=>{for(const _0x2daa7e of _0x34d038)_0x2daa7e['isInContent']&&_0x601259['execute'](_0x2daa7e['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x408bfc,_0x321a42,_0x993b97){super(_0x408bfc),this['_command']=_0x321a42,this['_suggestions']=_0x993b97,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x81733c=Array['from'](this['_suggestions']['values']())['some'](_0x19c571=>_0x19c571['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x81733c;}['execute'](){const _0x286db0=ss(Array['from'](this['_suggestions']['values']()));for(const _0x9f25f8 of _0x286db0){const _0x3c419f=_0x9f25f8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3c419f))return;}rs(this['editor']['model'],this['_command'],_0x286db0);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5ba1f4,_0x3c7150,_0x42ef8a){super(_0x5ba1f4),this['_command']=_0x3c7150,this['_suggestions']=_0x42ef8a,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x45624c=this['editor']['model']['document']['selection'],_0x42ff0a=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4f73c4,_0xc0e231){const _0x456590=Array['from'](_0x4f73c4['getRanges']()),_0x181aaa=new Set();for(const _0x5e308b of _0xc0e231)if(_0x5e308b['isInContent']){for(const _0x4b734b of _0x456590)for(const _0x1d3819 of _0x5e308b['getRanges']())(_0x4b734b['isIntersecting'](_0x1d3819)||_0x4f73c4['isCollapsed']&&!_0x5e308b['isMultiRange']&&_0x5e308b['next']&&_0x1d3819['end']['isTouching'](_0x4b734b['start']))&&_0x181aaa['add'](_0x5e308b);}return _0x181aaa;}(_0x45624c,_0x42ff0a),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3fce56=ss(Array['from'](this['_selectedSuggestions']));for(const _0x3daf31 of _0x3fce56){const _0x34a0fa=_0x3daf31['getRanges']();if(!this['editor']['model']['canEditAt'](_0x34a0fa))return;}rs(this['editor']['model'],this['_command'],_0x3fce56);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3c943f(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4a5e28,_0x362809){super(),this['id']=_0x362809['id'],this['type']=_0x362809['type'],this['subType']=_0x362809['subType']||null,this['author']=_0x362809['author'],this['creator']=_0x362809['creator']||_0x362809['author'],this['isExternal']=Boolean(_0x362809['attributes']&&_0x362809['attributes']['@external']),this['data']=null,this['_model']=_0x4a5e28,this['_onAccept']=_0x362809['onAccept'],this['_onDiscard']=_0x362809['onDiscard'],this['_onAttributesChange']=_0x362809['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x362809['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 _0x459753=this;for(;_0x459753['previous'];)_0x459753=_0x459753['previous'];return _0x459753;}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'](_0x106a99){this['_markerNames']['add'](_0x106a99);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x46e8e9=>this['_model']['markers']['get'](_0x46e8e9))['filter'](_0x484143=>_0x484143);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2c7dd3=>{for(const _0x41e490 of this['getMarkers']())_0x2c7dd3['removeMarker'](_0x41e490);}),this['_markerNames']['clear']();}['removeMarker'](_0x3d530a){this['_model']['change'](_0x94238c=>{_0x94238c['removeMarker'](_0x3d530a);}),this['_markerNames']['delete'](_0x3d530a);}['addRange'](_0x56e1e8){const _0x7d2cab='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x7d2cab),this['_model']['change'](_0x597934=>{_0x597934['addMarker'](_0x7d2cab,{'range':_0x56e1e8,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xcea514){for(const _0x2f99e5 of this['getRanges']())if(_0x2f99e5['isIntersecting'](_0xcea514))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2ad50b=>_0x2ad50b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x22843e,_0x5c741c)=>[..._0x22843e,..._0x5c741c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x154de5=this['getRanges']();if(0x1!=_0x154de5['length'])return null;const _0x4de557=_0x154de5[0x0],_0x23846f=_0x4de557['start']['nodeAfter'],_0x24763e=_0x4de557['end']['nodeBefore'];return _0x23846f instanceof _0x1c7813?_0x23846f!=_0x24763e?null:_0x23846f: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 _0x3a3b0a=[];let _0x33ec84=this['head'];for(;_0x33ec84;)_0x3a3b0a['push'](_0x33ec84),_0x33ec84=_0x33ec84['next'];return _0x3a3b0a;}['setAttribute'](_0x4e87ad,_0x1a24f){const _0x159225=_0x1e1c83(this['attributes']);_0xec70b7(_0x159225,_0x4e87ad,_0x1a24f),_0x17198d(_0x159225,this['attributes'])||(this['attributes']=_0x159225,this['_onAttributesChange'](_0x159225));}['removeAttribute'](_0x270d11){const _0xbd486f=_0x1e1c83(this['attributes']);_0x5596d0(_0xbd486f,_0x270d11),_0x17198d(_0xbd486f,this['attributes'])||(this['attributes']=_0xbd486f,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 _0x1b9482()['substr'](0x1,0x5);}}function o(_0x5c16a5,_0x156c3f,_0x3f633c){const t=_0x5c16a5['t'];switch(_0x156c3f){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',_0x3f633c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3f633c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3f633c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3f633c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3f633c);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',_0x3f633c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3f633c);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',_0x3f633c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3f633c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3f633c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3f633c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3f633c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3f633c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3f633c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3f633c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3f633c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3f633c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3f633c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3f633c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3f633c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3f633c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3f633c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3f633c);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'},_0x3f633c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3f633c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3f633c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3f633c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3f633c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3f633c);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'},_0x3f633c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3f633c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3f633c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3f633c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3f633c);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'},_0x3f633c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3f633c);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'},_0x3f633c);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'},_0x3f633c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3f633c);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'},_0x3f633c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3f633c);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'},_0x3f633c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3f633c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3f633c);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'},_0x3f633c);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'},_0x3f633c);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 _0x156c3f;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xa3f053,_0x185a18){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xa3f053,this['_locale']=_0x185a18;}['getDescriptions'](_0x576335){const _0x1b6eef=[],_0x24a563=new Set(),_0x21e419=new Set();for(let _0x15768f=0x0;_0x15768f<_0x576335['length'];_0x15768f++){const _0x8b3ee4=_0x576335[_0x15768f];if(!_0x8b3ee4['isInContent'])continue;const _0x23397e=this['_handleCustomCallbackDescription'](_0x8b3ee4);if(_0x23397e){if(null!=_0x8b3ee4['subType']){if(_0x24a563['has'](_0x8b3ee4['subType']))continue;_0x24a563['add'](_0x8b3ee4['subType']);}_0x1b6eef['push'](_0x23397e);}else{if('attribute'!=_0x8b3ee4['type'])'insertion'!=_0x8b3ee4['type']&&'deletion'!=_0x8b3ee4['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1b6eef,_0x8b3ee4,_0x576335[_0x15768f+0x1]);else{const _0x4d09a3=_0x8b3ee4['data']['key'];if(_0x21e419['has'](_0x4d09a3))continue;_0x21e419['add'](_0x8b3ee4['data']['key']),_0x4d09a3==m?this['_handleRenameSuggestionDescription'](_0x1b6eef,_0x8b3ee4):this['_handleAttributeSuggestionDescription'](_0x1b6eef,_0x8b3ee4);}}}return this['_resolveDescriptionItems'](_0x1b6eef);}['registerDescriptionCallback'](_0x45c064){this['_customCallbacks']['push'](_0x45c064);}['registerElementLabel'](_0x5ea5dd,_0x2de0c9,_0x5cc151=_0x244536['normal']){'function'==typeof _0x5ea5dd?_0x2b741e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5ea5dd,'label':_0x2de0c9,'priority':_0x5cc151}):this['_itemLabels']['set'](_0x5ea5dd,_0x2de0c9);}['registerAttributeLabel'](_0x591fd2,_0x311a10){this['_attributeLabels']['set'](_0x591fd2,_0x311a10);}['getItemLabel'](_0x12f409,_0x319ad0=0x1){let _0x40b602;for(const _0x23b9e5 of this['_itemLabelsCallbacks'])if(_0x23b9e5['matchingCallback'](_0x12f409)){_0x40b602=_0x23b9e5['label'];break;}return _0x40b602||(_0x40b602=this['_itemLabels']['get'](_0x12f409['name'])),_0x40b602?_0x40b602(_0x319ad0):0x1!==_0x319ad0?_0x319ad0+'\x20'+_0x12f409['name']+'s':''+_0x12f409['name'];}['_addDescriptionItems'](_0x2bda8f,_0x200c07){const _0x2ef644=_0x200c07['getFirstRange']()['getWalker'](),_0x886d09='insertion'==_0x200c07['type']?'add':'remove';for(const _0x5e618d of _0x2ef644){const _0x1942db=_0x5e618d['item'],_0x1d99c=_0x2bda8f[_0x2bda8f['length']-0x1];if(_0x1942db['is']('$textProxy'))_0x1d99c&&_0x1d99c['type']['indexOf']('Container')>-0x1&&_0x2bda8f['pop'](),_0x1d99c&&'text'==_0x1d99c['type']?_0x1d99c[_0x886d09]+=_0x1942db['data']:_0x2bda8f['push']({'type':'text','add':'add'==_0x886d09?_0x1942db['data']:'','remove':'remove'==_0x886d09?_0x1942db['data']:''});else{if(this['_schema']['isObject'](_0x1942db)){const _0x47ed32=_0x1942db;if(_0x1d99c&&_0x1d99c['type']['indexOf']('Container')>-0x1&&_0x2bda8f['pop'](),'elementEnd'==_0x5e618d['type'])continue;_0x1d99c&&_0x1d99c['type']==_0x886d09+'Object'&&_0x1d99c['element']['name']==_0x47ed32['name']?_0x1d99c['quantity']++:_0x2bda8f['push']({'type':_0x886d09+'Object','element':_0x47ed32,'quantity':0x1}),_0x2ef644['skip'](_0x534dd6=>!('elementEnd'==_0x534dd6['type']&&_0x534dd6['item']==_0x1942db));}else{if(this['_schema']['checkChild'](_0x1942db,'$text')||_0x1942db['is']('element','softBreak')){const _0x122206=_0x1942db;if('add'==_0x886d09&&'elementStart'==_0x5e618d['type']||'remove'==_0x886d09&&'elementEnd'==_0x5e618d['type'])continue;if(_0x1d99c&&-0x1==_0x1d99c['type']['indexOf']('Container')){'text'==_0x1d99c['type']&&(_0x1d99c[_0x886d09]+='\x0a');continue;}let _0x39f1f5;if(_0x39f1f5='add'==_0x886d09?_0x122206['nextSibling']&&!this['_schema']['isObject'](_0x122206['nextSibling'])?_0x122206['nextSibling']:null:_0x122206['previousSibling']&&!this['_schema']['isObject'](_0x122206['previousSibling'])?_0x122206['previousSibling']:null,_0x122206['isEmpty']||_0x39f1f5&&_0x39f1f5['isEmpty']){const _0x5e35b4=_0x39f1f5&&_0x39f1f5['isEmpty']?_0x39f1f5:_0x122206;_0x1d99c&&_0x1d99c['type']==_0x886d09+'EmptyContainer'&&_0x1d99c['element']['name']==_0x5e35b4['name']?_0x1d99c['quantity']++:_0x2bda8f['push']({'type':_0x886d09+'EmptyContainer','element':_0x5e35b4,'quantity':0x1});}else _0x2bda8f['push']({'type':_0x886d09+'Container','element':_0x122206});}}}}}['_resolveDescriptionItems'](_0x42d74b){const _0x1b451b=this['_locale'],_0x2321f2=[],_0x2a6863=[],_0x106f78=[];for(const _0x30fc6a of _0x42d74b)switch(_0x30fc6a['type']){case'text':if(_0x30fc6a['add']=_0x30fc6a['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x30fc6a['remove']=_0x30fc6a['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x30fc6a['add']&&''!=_0x30fc6a['remove']){_0x2321f2['push']({'type':'replace','content':o(_0x1b451b,'REPLACE_TEXT',['\x22'+_0x30fc6a['remove']+'\x22','\x22'+_0x30fc6a['add']+'\x22'])});continue;}if(null!=_0x30fc6a['add']['match'](/^ +$/)){_0x2321f2['push']({'type':'insertion','content':o(_0x1b451b,'*Insert:*\x20%0',o(_0x1b451b,'ELEMENT_SPACE',_0x30fc6a['add']['length']))});continue;}if(null!=_0x30fc6a['remove']['match'](/^ +$/)){_0x2321f2['push']({'type':'deletion','content':o(_0x1b451b,'*Remove:*\x20%0',o(_0x1b451b,'ELEMENT_SPACE',_0x30fc6a['remove']['length']))});continue;}if(''!=_0x30fc6a['add']){_0x2321f2['push']({'type':'insertion','content':o(_0x1b451b,'*Insert:*\x20%0','\x22'+_0x30fc6a['add']+'\x22')});continue;}_0x2321f2['push']({'type':'deletion','content':o(_0x1b451b,'*Remove:*\x20%0','\x22'+_0x30fc6a['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2321f2['push']({'type':'insertion','content':o(_0x1b451b,'*Insert:*\x20%0',this['getItemLabel'](_0x30fc6a['element'],_0x30fc6a['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2321f2['push']({'type':'deletion','content':o(_0x1b451b,'*Remove:*\x20%0',this['getItemLabel'](_0x30fc6a['element'],_0x30fc6a['quantity']))});continue;case'addContainer':_0x2321f2['push']({'type':'insertion','content':o(_0x1b451b,'*Split:*\x20%0',this['getItemLabel'](_0x30fc6a['element'],_0x30fc6a['quantity']))});continue;case'removeContainer':_0x2321f2['push']({'type':'deletion','content':o(_0x1b451b,'*Merge:*\x20%0',this['getItemLabel'](_0x30fc6a['element'],_0x30fc6a['quantity']))});continue;case'addFormat':_0x2a6863['push'](_0x30fc6a['key']);continue;case'removeFormat':_0x106f78['push'](_0x30fc6a['key']);continue;default:_0x2321f2['push'](_0x30fc6a);}if(_0x2a6863['length']){const _0x2b5d35=_0x2a6863['map'](_0x25e652=>this['_attributeLabels']['has'](_0x25e652)?this['_attributeLabels']['get'](_0x25e652):_0x25e652)['join'](',\x20');_0x2321f2['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2b5d35)});}if(_0x106f78['length']){const _0xc7145c=_0x106f78['map'](_0x455cf1=>this['_attributeLabels']['has'](_0x455cf1)?this['_attributeLabels']['get'](_0x455cf1):_0x455cf1)['join'](',\x20');_0x2321f2['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xc7145c)});}return _0x2321f2;}['_handleCustomCallbackDescription'](_0x17a450){for(const _0x18828f of this['_customCallbacks']){const _0x4c6eb4=_0x18828f(_0x17a450);if(_0x4c6eb4&&'type'in _0x4c6eb4)return _0x4c6eb4;}}['_handleAttributeSuggestionDescription'](_0x396ce6,_0x138809){const _0x5c1756=_0x138809['data'],_0x5b1379=void 0x0===_0x5c1756['newValue']?'removeFormat':'addFormat';_0x396ce6['push']({'type':_0x5b1379,'key':_0x5c1756['key']});}['_handleRenameSuggestionDescription'](_0x274e3d,_0x2ea910){_0x274e3d['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2ea910['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2c0011,_0x2ebeb2,_0x2ff71d){if(this['_addDescriptionItems'](_0x2c0011,_0x2ebeb2),_0x2ff71d&&_0x2ff71d['getFirstRange']()&&!_0x2ebeb2['getFirstRange']()['end']['isEqual'](_0x2ff71d['getFirstRange']()['start'])){const _0x354c66=_0x2c0011[_0x2c0011['length']-0x1],_0xb64d3c='insertion'==_0x2ebeb2['type']?'add':'remove';_0x354c66&&'text'==_0x354c66['type']&&(_0x354c66[_0xb64d3c]+='\x0a');}}}class E extends _0x49b0aa{['afterInit'](){const _0x1d4c21=this['editor'],_0x26c1c8=_0x1d4c21['plugins']['get']('TrackChangesEditing');_0x1d4c21['commands']['get']('showAIAssistant')&&_0x26c1c8['enableCommand']('showAIAssistant');}}class V extends _0x49b0aa{['afterInit'](){const _0x4bb8a1=this['editor'],_0x49d160=_0x4bb8a1['locale'];if(!_0x4bb8a1['plugins']['has']('AlignmentEditing'))return;const _0x117c5f=_0x4bb8a1['plugins']['get']('TrackChangesEditing');_0x117c5f['enableDefaultAttributesIntegration']('alignment'),_0x117c5f['registerBlockAttribute']('alignment'),_0x117c5f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x49d160,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x430d07=this['editor'],_0x1a3aea=_0x430d07['locale'];_0x430d07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x84d3af=>{if('formatBlock'!=_0x84d3af['type'])return;const {data:_0x1b598f}=_0x84d3af;if(_0x1b598f&&'alignment'==_0x1b598f['commandName']){const _0x1581f7=_0x1b598f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1a3aea,'*Format:*\x20%0',function(_0x32adf3){switch(_0x32adf3){case'left':return o(_0x1a3aea,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1a3aea,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1a3aea,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1a3aea,'FORMAT_JUSTIFY_TEXT');}}(_0x1581f7))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x49b0aa{['afterInit'](){const _0x14405d=this['editor'],_0x1139bd=_0x14405d['plugins']['get']('TrackChangesEditing'),_0xdf7b1=_0x14405d['locale'];for(const _0x30f29d of ti){if(!_0x14405d['plugins']['has'](_0x30f29d))continue;const _0x20aefd=_0x30f29d['slice'](0x0,-0x7)['toLowerCase'](),_0x4b4f51='FORMAT_'+_0x20aefd['toUpperCase']();_0x1139bd['enableDefaultAttributesIntegration'](_0x20aefd),_0x1139bd['registerInlineAttribute'](_0x20aefd),_0x1139bd['descriptionFactory']['registerAttributeLabel'](_0x20aefd,o(_0xdf7b1,_0x4b4f51));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b77a6=this['editor'],_0x273845=_0x2b77a6['locale'],_0x3bfbb0=_0x2b77a6['plugins']['get']('TrackChangesEditing');function _0x43fe87(_0x3726e2,_0x61d27e){_0x3bfbb0['descriptionFactory']['registerDescriptionCallback'](_0x520627=>{if('formatInline'!=_0x520627['type'])return;const {data:_0x2a0d2b}=_0x520627;return _0x2a0d2b&&_0x2a0d2b['commandName']===_0x3726e2?_0x2a0d2b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x273845,'*Format:*\x20%0',_0x61d27e)}:{'type':'format','content':o(_0x273845,'*Remove\x20format:*\x20%0',_0x61d27e)}:void 0x0;});}_0x43fe87('bold',o(_0x273845,'FORMAT_BOLD')),_0x43fe87('italic',o(_0x273845,'FORMAT_ITALIC')),_0x43fe87('underline',o(_0x273845,'FORMAT_UNDERLINE')),_0x43fe87('code',o(_0x273845,'FORMAT_CODE')),_0x43fe87('strikethrough',o(_0x273845,'FORMAT_STRIKETHROUGH')),_0x43fe87('subscript',o(_0x273845,'FORMAT_SUBSCRIPT')),_0x43fe87('superscript',o(_0x273845,'FORMAT_SUPERSCRIPT'));}}class O extends _0x49b0aa{['afterInit'](){const _0x3ae79b=this['editor'],_0x4daf52=_0x3ae79b['locale'];if(!_0x3ae79b['plugins']['has']('BlockQuoteEditing'))return;const _0x5004de=_0x3ae79b['plugins']['get']('TrackChangesEditing'),_0x1d23ab=this['editor']['commands']['get']('blockQuote');_0x5004de['enableCommand']('blockQuote',(_0x21adfe,_0x6fb472={})=>{const _0x4c6845=this['editor']['model']['document']['selection'],_0xf40df6=_0x6fb472&&void 0x0!==_0x6fb472['forceValue']?_0x6fb472['forceValue']:!_0x1d23ab['value'];let _0x2fd101=[];if(_0xf40df6){const _0x59f264=Array['from'](_0x4c6845['getSelectedBlocks']())['filter'](_0x3e773c=>oo(_0x3e773c)||function(_0x4bf565,_0x6b65a3){const _0x29280f=_0x6b65a3['checkChild'](_0x4bf565['parent'],'blockQuote'),_0x31e3be=_0x6b65a3['checkChild'](['$root','blockQuote'],_0x4bf565);return _0x29280f&&_0x31e3be;}(_0x3e773c,this['editor']['model']['schema']));_0x2fd101=to(_0x59f264,_0x3ae79b['model']);}else{const _0x2193d6=Array['from'](_0x4c6845['getSelectedBlocks']())['filter'](_0xc55a70=>oo(_0xc55a70));_0x2fd101=to(_0x2193d6,_0x3ae79b['model']);}_0x3ae79b['model']['change'](()=>{for(const _0x3df405 of _0x2fd101)_0x5004de['markBlockFormat'](_0x3df405,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xf40df6}]});});}),_0x5004de['descriptionFactory']['registerDescriptionCallback'](_0x3c21d0=>{const {data:_0x3bcfe3}=_0x3c21d0;if(_0x3bcfe3&&'blockQuote'==_0x3bcfe3['commandName']){const _0x3e7444=o(_0x4daf52,'ELEMENT_BLOCK_QUOTE');return _0x3bcfe3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4daf52,'*Set\x20format:*\x20%0',_0x3e7444)}:{'type':'format','content':o(_0x4daf52,'*Remove\x20format:*\x20%0',_0x3e7444)};}});}}function oo(_0x581f8f){return'blockQuote'==_0x581f8f['parent']['name'];}class G extends _0x49b0aa{['afterInit'](){const _0x9409a0=this['editor'];_0x9409a0['plugins']['has']('CaseChange')&&(_0x9409a0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x9409a0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x9409a0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x49b0aa{['afterInit'](){const _0x1946dc=this['editor'];_0x1946dc['commands']['get']('ckbox')&&_0x1946dc['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x49b0aa{['afterInit'](){const _0x5c7fa3=this['editor'];if(!_0x5c7fa3['plugins']['has']('CodeBlock'))return;const _0x3d41ed=_0x5c7fa3['plugins']['get']('TrackChangesEditing'),_0x2167ba=_0x5c7fa3['locale'],_0x46f833=_0x5c7fa3['config']['get']('codeBlock')['languages'],_0x210498=_0x5c7fa3['commands']['get']('codeBlock');_0x3d41ed['enableCommand']('indentCodeBlock'),_0x3d41ed['enableCommand']('outdentCodeBlock'),_0x3d41ed['enableCommand']('codeBlock',(_0x287ac1,_0xab47e2={})=>{const _0x33e5a5=_0x5c7fa3['model'],_0xf65409=_0x5c7fa3['model']['document']['selection'],_0x301995=_0xab47e2&&void 0x0!==_0xab47e2['forceValue']?_0xab47e2['forceValue']:!_0x210498['value'];let _0x3ba328;_0xab47e2['language']||(_0xab47e2['language']=_0x46f833[0x0]['language']),_0x3ba328=_0x301995?Array['from'](_0xf65409['getSelectedBlocks']())['filter'](_0x4db3e7=>eo(_0x4db3e7)||function(_0x64d1a4,_0x479d44){if(_0x64d1a4['is']('rootElement')||_0x479d44['isLimit'](_0x64d1a4))return!0x1;return _0x479d44['checkChild'](_0x64d1a4['parent'],'codeBlock');}(_0x4db3e7,_0x33e5a5['schema'])):Array['from'](_0xf65409['getSelectedBlocks']())['filter'](_0x2a855e=>eo(_0x2a855e));const _0x289fb2=to(_0x3ba328,_0x33e5a5);_0x33e5a5['change'](()=>{for(const _0x5d11a6 of _0x289fb2)_0x3d41ed['markBlockFormat'](_0x5d11a6,{'commandName':'codeBlock','commandParams':[{..._0xab47e2,'forceValue':_0x301995}],'formatGroupId':'blockName'});});}),(_0x3d41ed['descriptionFactory']['registerElementLabel']('codeBlock',_0x17fccb=>o(_0x2167ba,'ELEMENT_CODE_BLOCK',_0x17fccb)),_0x3d41ed['descriptionFactory']['registerDescriptionCallback'](_0x48af7c=>{if('formatBlock'!=_0x48af7c['type'])return;const _0x203a5b=_0x2167ba['t'],{data:_0x458467}=_0x48af7c;if(!_0x458467||'codeBlock'!=_0x458467['commandName'])return;const _0xcaaff0=_0x458467['commandParams'][0x0]['language'],_0x1e9776=_0x203a5b(_0x46f833['find'](_0x7d7af8=>_0x7d7af8['language']===_0xcaaff0)['label'])['toLowerCase']();return _0x458467['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2167ba,'*Set\x20format:*\x20%0',o(_0x2167ba,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1e9776+')')}:{'type':'format','content':o(_0x2167ba,'*Remove\x20format:*\x20%0',o(_0x2167ba,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x33fe56){return'codeBlock'==_0x33fe56['name'];}class H extends _0x49b0aa{['afterInit'](){const _0x506007=this['editor'];if(!_0x506007['plugins']['has']('CommentsEditing'))return;_0x506007['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x43f098,_0x243951,_0x50e748){const _0x2c29e5=[];for(const _0x2a91cd of _0x243951['getItems']())_0x2a91cd['hasAttribute'](_0x43f098)&&_0x2c29e5['push'](_0x50e748['createRangeOn'](_0x2a91cd));return _0x2c29e5;}function _e(_0x1754cf,_0x2899f5,{showActiveMarker:_0x223c43=!0x0}={}){const _0x3c1d64=_0x1754cf['plugins']['get']('TrackChangesEditing');return(_0x3a18b0,_0x57424d,_0xf88db7)=>{if(!_0xf88db7['consumable']['test'](_0x57424d['markerRange'],_0x3a18b0['name']))return;const _0x4d970a=_0x57424d['markerRange']['getWalker'](),_0x594c96=_0x57424d['markerRange']['start'],_0xc2aa85=_0x1754cf['model']['schema'];let _0x587525=null,_0x15a8fd=null,_0xf74dea=!0x1,_0x33d075=!0x1;for(const _0x249228 of _0x4d970a){const _0x557750=_0x249228['item'];_0xf74dea=_0xf74dea||_0xc2aa85['isContent'](_0x557750);const _0xa0e6e=_0xf88db7['mapper']['toViewElement'](_0x557750);if(_0xa0e6e&&_0xa0e6e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x249228['type']&&(_0xc2aa85['isBlock'](_0x557750)&&!_0xc2aa85['isLimit'](_0x557750)&&(_0x557750['nextSibling']||_0x594c96['isAtEnd']?_0x587525&&_0x587525['parent']==_0x557750||(_0x587525=_0x557750,_0x4ed6e6(_0x249228['previousPosition']),_0x33d075=!0x0):_0x15a8fd=_0x15a8fd||_0x249228['previousPosition']));}function _0x4ed6e6(_0x51c05e){const _0x2da16e=_0xf88db7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2899f5}),_0xe5d1ca=_0xf88db7['mapper']['toViewPosition'](_0x51c05e);_0x223c43&&_0x3c1d64['activeMarkers']['includes'](_0x57424d['markerName'])&&_0xf88db7['writer']['addClass']('ck-suggestion-marker--active',_0x2da16e),_0xf88db7['writer']['insert'](_0xe5d1ca,_0x2da16e),_0xf88db7['mapper']['bindElementToMarker'](_0x2da16e,_0x57424d['markerName']);}_0xf74dea||_0x33d075||!_0x15a8fd||_0x4ed6e6(_0x15a8fd);};}class q extends _0x49b0aa{static get['requires'](){return[_0x44fcee];}['init'](){const _0x73cdf=this['editor'],_0x7f30db=_0x73cdf['plugins']['get']('TrackChangesEditing');_0x7f30db['enableCommand']('delete');const _0x1a545e=_0x73cdf['commands']['get']('deleteForward');_0x7f30db['enableCommand']('deleteForward',(_0x5db8e1,_0x317720={})=>{const _0xabf01=_0x73cdf['model']['createSelection'](_0x73cdf['model']['document']['selection']);_0xabf01['isCollapsed']&&_0x73cdf['model']['modifySelection'](_0xabf01,{'direction':'forward','unit':_0x317720['unit']});const _0x5ae938=_0xabf01['getFirstRange'](),_0x28c339=_0x2e3ae0['fromRange'](_0x5ae938);let _0x238404;_0x5db8e1(_0x317720),_0x238404='$graveyard'==_0x28c339['root']['rootName']?_0x73cdf['model']['createRange'](_0x5ae938['start']):_0x73cdf['model']['createRange'](_0x28c339['start'],_0x28c339['end']),_0x28c339['detach'](),_0x73cdf['model']['enqueueChange'](_0x1a545e['buffer']['batch'],_0x16042e=>{_0x1a545e['buffer']['lock'](),_0x16042e['setSelection'](_0x16042e['createRange'](_0x238404['end'])),_0x1a545e['buffer']['unlock']();});}),_0x73cdf['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x73cdf,'merge'),{'priority':'high'}),_0x73cdf['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2d4474,_0x262866,_0x12f73c)=>{_0x12f73c['options']['showSuggestionHighlights']&&_e(_0x73cdf,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2d4474,_0x262866,_0x12f73c);},{'priority':'high'}),_0x73cdf['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4f5617,_0x4cf88e,_0x4b9533)=>{const _0xf859e9=_0x4b9533['mapper']['markerNameToElements'](_0x4cf88e['markerName']);if(_0xf859e9){for(const _0x287950 of _0xf859e9)_0x287950['is']('uiElement')&&(_0x4b9533['mapper']['unbindElementFromMarkerName'](_0x287950,_0x4cf88e['markerName']),_0x4b9533['writer']['remove'](_0x287950));}},{'priority':'high'});}}class z extends _0x49b0aa{['afterInit'](){const _0x2aa9a0=this['editor'];if(!_0x2aa9a0['plugins']['has']('ListEditing'))return;const _0x21f106=_0x2aa9a0['locale'],_0x4d10fc=_0x2aa9a0['plugins']['get']('TrackChangesEditing'),_0x31523d=_0x2aa9a0['plugins']['has']('TodoListEditing'),_0xe19625=!!_0x2aa9a0['config']['get']('list.multiBlock');function _0x1467ae(_0x4f7edf){return{'type':'format','content':''+o(_0x21f106,'*Set\x20format:*\x20%0',_0x4f7edf)};}function _0x24fd1f(_0x60aa5b){return{'type':'format','content':''+o(_0x21f106,'*Remove\x20format:*\x20%0',_0x60aa5b)};}_0x4d10fc['enableDefaultAttributesIntegration']('numberedList'),_0x4d10fc['enableDefaultAttributesIntegration']('bulletedList'),_0x4d10fc['enableDefaultAttributesIntegration']('customNumberedList'),_0x4d10fc['enableDefaultAttributesIntegration']('customBulletedList'),_0x4d10fc['enableDefaultAttributesIntegration']('indentList'),_0x4d10fc['enableDefaultAttributesIntegration']('outdentList'),_0x4d10fc['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4d10fc['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4d10fc['registerBlockAttribute']('listItemId'),_0x4d10fc['registerBlockAttribute']('listType'),_0x4d10fc['registerBlockAttribute']('listIndent'),_0xe19625&&(_0x4d10fc['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4d10fc['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x31523d&&(_0x4d10fc['enableDefaultAttributesIntegration']('todoList'),_0x4d10fc['enableDefaultAttributesIntegration']('checkTodoList'),_0x4d10fc['registerBlockAttribute']('todoListChecked'),_0x4d10fc['descriptionFactory']['registerDescriptionCallback'](_0x11eb75=>{const {data:_0x480466}=_0x11eb75;if(_0x480466&&'todoListChecked'==_0x480466['key'])return{'type':'format','content':_0x480466['newValue']?o(_0x21f106,'*Check\x20item*'):o(_0x21f106,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4d5bb3=>{if(_0x4d5bb3['batch']['isUndo'])return!0x1;let _0x62408b=!0x1;const _0x3a5cb2=_0x4d10fc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c7581=>'todoListChecked'===_0x4d10fc['_getAttributeKey'](_0x4c7581));for(const _0x284c9e of _0x3a5cb2){'todo'!=_0x284c9e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4d10fc['_findSuggestions'](_0x284c9e['getFirstRange'](),'attribute')['find'](_0x812f6b=>'listType'===_0x4d10fc['_getAttributeKey'](_0x812f6b['suggestion']))||(_0x4d5bb3['removeMarker'](_0x284c9e['getFirstMarker']()),_0x62408b=!0x0));}return _0x62408b;})),_0x4d10fc['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x21f106,'FORMAT_INDENT'));const _0x909430={'type':'format','content':''};_0x4d10fc['descriptionFactory']['registerDescriptionCallback'](_0x582e86=>{const {data:_0x5a366a}=_0x582e86;if(!_0x5a366a||'listType'!=_0x5a366a['key'])return;let _0x4a67e9=_0x582e86['head'];for(;_0x4a67e9;){if(_0x4a67e9['data']&&(('listStyle'==_0x4a67e9['data']['key']||'listMarkerStyle'==_0x4a67e9['data']['key'])&&(_0x4a67e9['data']['newValue']&&'default'!=_0x4a67e9['data']['newValue']||'default'!=_0x4a67e9['data']['oldValue']&&!_0x5a366a['newValue'])||!_0xe19625&&_0x4a67e9['data']['key']==m))return _0x909430;_0x4a67e9=_0x4a67e9['next'];}if(null==_0x5a366a['newValue'])switch(_0x5a366a['oldValue']){case'bulleted':return _0x24fd1f(o(_0x21f106,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x24fd1f(o(_0x21f106,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x24fd1f(o(_0x21f106,'ELEMENT_TODO_LIST'));}switch(_0x5a366a['newValue']){case'bulleted':return _0x1467ae(o(_0x21f106,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1467ae(o(_0x21f106,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1467ae(o(_0x21f106,'ELEMENT_TODO_LIST'));}}),_0x4d10fc['descriptionFactory']['registerDescriptionCallback'](_0x603af7=>{const {data:_0x1a8794}=_0x603af7;if(_0x1a8794&&'listIndent'==_0x1a8794['key'])return null==_0x1a8794['newValue']||null==_0x1a8794['oldValue']&&0x0==_0x1a8794['newValue']?_0x909430:void 0x0;}),_0x4d10fc['descriptionFactory']['registerDescriptionCallback'](_0x2f8ffe=>{if('attribute'!=_0x2f8ffe['type'])return;const {data:_0x3af9c1}=_0x2f8ffe;if(!_0x3af9c1||'listItemId'!=_0x3af9c1['key'])return;const _0x1d0e73=le(_0x2f8ffe);return'newValue'==_0x1d0e73?{'type':'format','content':o(_0x21f106,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1d0e73?{'type':'format','content':o(_0x21f106,'*Split:*\x20list\x20item')}:_0x909430;}),_0x2aa9a0['model']['document']['registerPostFixer'](_0x10f3f0=>this['listItemIdFixer'](_0x10f3f0)),_0x2aa9a0['model']['document']['registerPostFixer'](_0x5d21b7=>this['noTrackChangesFixer'](_0x5d21b7)),_0x2aa9a0['model']['document']['registerPostFixer'](_0x5339e5=>this['assureChains'](_0x5339e5)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4d9210){if(_0x4d9210['batch']['isUndo']||!_0x4d9210['batch']['isLocal'])return!0x1;let _0x2a7412=!0x1;const _0xe1a10c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ade18=>_0x3ade18['data']&&'listItemId'==_0x3ade18['data']['key'])['filter'](_0x297c43=>_0x297c43['data']['newValue']&&_0x297c43['data']['oldValue']);for(const _0x4995cd of _0xe1a10c)le(_0x4995cd)||(_0x4d9210['removeMarker'](_0x4995cd['getFirstMarker']()),_0x2a7412=!0x0);return _0x2a7412;}['noTrackChangesFixer'](_0x3bdda6){if(_0x3bdda6['batch']['isUndo']||!_0x3bdda6['batch']['isLocal'])return!0x1;const _0x3571e0=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3571e0['trackChangesCommand']['value'])return!0x1;let _0x76b30e=!0x1;const _0x59dffb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1bfc93=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3c089a=>'attribute'==_0x3c089a['type'])['filter'](_0x1fd3a0=>_0x59dffb['includes'](_0x1fd3a0['attributeKey']));if(0x0==_0x1bfc93['length'])return _0x76b30e;for(const _0x4eaf87 of _0x1bfc93){const _0x140d80=_0x3571e0['_findSuggestions'](_0x4eaf87['range'],'attribute')['filter'](_0x29078e=>!_0x29078e['meta']['isNextTo'])['map'](_0xd63c6d=>_0xd63c6d['suggestion'])['filter'](_0x1ead16=>{const _0x563a67=_0x3571e0['_getAttributeKey'](_0x1ead16);return _0x59dffb['includes'](_0x563a67);});if(_0x140d80['length']){for(const _0x202ac2 of _0x140d80)_0x3bdda6['removeMarker'](_0x202ac2['getFirstMarker']());_0x76b30e=!0x0;}}return _0x76b30e;}['assureChains'](_0x3dd0d6){if(_0x3dd0d6['batch']['isUndo']||!_0x3dd0d6['batch']['isLocal'])return!0x1;const _0x354b1a=this['editor']['plugins']['get']('TrackChangesEditing');let _0x16a498=!0x1;const _0x1890f5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0xa026fb of _0x354b1a['getSuggestions']({'skipNotAttached':!0x0})){const _0x425e38=_0x354b1a['_findSuggestions'](_0xa026fb['getFirstRange'](),'attribute')['map'](_0x5727c4=>_0x5727c4['suggestion'])['filter'](_0x415fc2=>_0x415fc2['data']&&_0x1890f5['includes'](_0x415fc2['data']['key']));if(!_0x425e38['length'])continue;const _0x173c21=_0x425e38[0x0]['head']['attributes']['groupId'];if(!_0x425e38['every'](_0x3804fc=>_0x3804fc['attributes']['groupId']===_0x173c21)){for(const _0x180173 of _0x425e38)_0x17e761(_0x180173,_0x173c21)&&(_0x16a498=!0x0);}}return _0x16a498;function _0x266a85(_0x528805,_0x784ed6){for(const _0x55a927 of _0x354b1a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x29f697=>'attribute'==_0x29f697['type']&&_0x29f697['attributes']['groupId']==_0x528805))_0x55a927['setAttribute']('groupId',_0x784ed6);}function _0x17e761(_0x508fd7,_0x47d16b){let _0x2affae=_0x508fd7['head'],_0x37ef46=!0x1;for(;_0x2affae;)_0x2affae['attributes']['groupId']!=_0x47d16b&&(_0x266a85(_0x2affae['attributes']['groupId'],_0x47d16b),_0x2affae['setAttribute']('groupId',_0x47d16b),_0x37ef46=!0x0),_0x2affae=_0x2affae['next'];return _0x37ef46;}}['_supportLegacySuggestions'](){const _0x3c7c0c=this['editor'],_0x3d2e16=_0x3c7c0c['locale'],_0x4dcd38=_0x3c7c0c['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4dcd38['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x80d29e,_0x276c3c){const _0x142423=[];for(let _0x4ef89e of _0x80d29e)_0x4ef89e['start']['nodeAfter']===_0x4ef89e['end']['parent']&&(_0x4ef89e=_0x3c7c0c['model']['createRange'](_0x3c7c0c['model']['createPositionAt'](_0x4ef89e['start']['nodeAfter'],0x0))),_0x142423['push'](_0x4ef89e);_0x3c7c0c['model']['change'](_0x5b8559=>{const _0xebd41b=_0x3c7c0c['model']['document']['selection'],_0xee318=Array['from'](_0xebd41b['getRanges']())['map'](_0x2d8433=>_0x2e3ae0['fromRange'](_0x2d8433));_0x5b8559['setSelection'](_0x142423),_0x3c7c0c['commands']['get'](_0x276c3c['commandName'])['refresh'](),_0x276c3c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3c7c0c['execute'](_0x276c3c['commandName'],..._0x276c3c['commandParams']),_0x5b8559['setSelection'](_0xee318);for(const _0x131442 of _0xee318)_0x131442['detach']();});}),_0x4dcd38['descriptionFactory']['registerElementLabel'](function(_0x14cae0){const _0x37d5a3=!_0x3c7c0c['model']['schema']['isObject'](_0x14cae0),_0x3551fd=_0x14cae0['previousSibling'],_0x26d3e6=_0x14cae0['nextSibling'],_0x25ff02=_0x14cae0['getAttribute']('listItemId'),_0xfb5dbc=!_0x3551fd||_0x3551fd['getAttribute']('listItemId')!==_0x25ff02,_0x358f4e=!_0x26d3e6||_0x26d3e6['getAttribute']('listItemId')!==_0x25ff02;return _0x37d5a3&&Boolean(_0x25ff02)&&_0xfb5dbc&&_0x358f4e;},_0x242020=>o(_0x3d2e16,'ELEMENT_LIST_ITEM',_0x242020));}['_registerLegacyDescription'](){const _0x42de39=this['editor'],_0xecfbc5=_0x42de39['locale'];function _0x156a20(_0x4154ca){const _0x1d81f6=_0x42de39['commands']['get']('bulletedList')['value'],_0x38c3bb=_0x42de39['commands']['get']('numberedList')['value'];return'numberedList'===_0x4154ca?_0x1d81f6:_0x38c3bb;}_0x42de39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x64d564){if('formatBlock'!=_0x64d564['type'])return;const {data:_0x3d7a73}=_0x64d564;if(!_0x3d7a73)return;let _0x569ea8,_0x241496,_0x4fb009,_0x380283;switch(_0x3d7a73['commandName']){case'bulletedList':_0x4fb009=_0x3d7a73['commandParams'][0x0]['forceValue'],_0x380283=_0x156a20(_0x3d7a73['commandName']),_0x569ea8=_0x4fb009?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x380283&&_0x42de39['config']['get']('list.multiBlock')||(_0x569ea8='*Change\x20to:*\x20%0'),_0x241496={'type':'format','content':o(_0xecfbc5,_0x569ea8,o(_0xecfbc5,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4fb009=_0x3d7a73['commandParams'][0x0]['forceValue'],_0x380283=_0x156a20(_0x3d7a73['commandName']),_0x569ea8=_0x4fb009?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x380283&&_0x42de39['config']['get']('list.multiBlock')||(_0x569ea8='*Change\x20to:*\x20%0'),_0x241496={'type':'format','content':o(_0xecfbc5,_0x569ea8,o(_0xecfbc5,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x569ea8='*Indent:*\x20%0',_0x241496={'type':'format','content':o(_0xecfbc5,_0x569ea8,o(_0xecfbc5,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x569ea8=function(_0x366a0a){const _0x478576=_0x366a0a['getFirstRange']();let _0x4f1593=_0x478576['start']['nodeAfter'];for(;_0x4f1593&&_0x478576['containsItem'](_0x4f1593);){if(_0x4f1593['getAttribute']('listIndent')>0x0)return!0x1;_0x4f1593=_0x4f1593['nextSibling'];}return!0x0;}(_0x64d564)?o(_0xecfbc5,'*Format:*\x20remove\x20from\x20%0',o(_0xecfbc5,function(_0x516a2d){return'ELEMENT_'+_0x516a2d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x64d564))):o(_0xecfbc5,'*Outdent:*\x20%0',o(_0xecfbc5,'ELEMENT_LIST_ITEM')),_0x241496={'type':'format','content':_0x569ea8};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3d7a73['multipleBlocks']&&(_0x569ea8='*Merge:*\x20%0',_0x241496={'type':'deletion','content':o(_0xecfbc5,_0x569ea8,o(_0xecfbc5,'ELEMENT_LIST_ITEM'))});}return _0x241496;});}}function le(_0x141078){let _0x3fe818=_0x141078['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3fe818;){const _0x34c222=_0x3fe818['getAttribute']('listItemId');if(!_0x34c222)return!0x1;if(_0x34c222==_0x141078['data']['newValue'])return'newValue';if(_0x34c222==_0x141078['data']['oldValue'])return'oldValue';_0x3fe818=_0x3fe818['previousSibling'];}return!0x1;}class ue extends _0x49b0aa{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x198d30=this['editor']['config']['get']('list.properties'),_0xe71cb1=this['editor']['plugins']['get']('TrackChangesEditing');_0x198d30['styles']&&(_0xe71cb1['enableDefaultAttributesIntegration']('listStyle'),_0xe71cb1['registerBlockAttribute']('listStyle')),_0x198d30['reversed']&&(_0xe71cb1['enableDefaultAttributesIntegration']('listReversed'),_0xe71cb1['registerBlockAttribute']('listReversed')),_0x198d30['startIndex']&&(_0xe71cb1['enableDefaultAttributesIntegration']('listStart'),_0xe71cb1['registerBlockAttribute']('listStart'));const _0x416f50={'type':'format','content':''};_0xe71cb1['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3a64e2=this['editor']['locale'];_0xe71cb1['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3a64e2,'FORMAT_LIST_REVERSED')),_0xe71cb1['descriptionFactory']['registerDescriptionCallback'](_0x50b997=>{const {data:_0x15104d}=_0x50b997;if(_0x15104d&&'listReversed'==_0x15104d['key'])return null==_0x15104d['newValue']||0x0==_0x15104d['newValue']&&null==_0x15104d['oldValue']?_0x416f50:void 0x0;}),_0xe71cb1['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3a64e2,'FORMAT_LIST_START')),_0xe71cb1['descriptionFactory']['registerDescriptionCallback'](_0x51462c=>{const {data:_0x981ff3}=_0x51462c;if(_0x981ff3&&'listStart'==_0x981ff3['key'])return null==_0x981ff3['newValue']||0x1==_0x981ff3['newValue']&&null==_0x981ff3['oldValue']?_0x416f50:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x195178=>{if(_0x195178['batch']['isUndo'])return!0x1;let _0x300439=!0x1;const _0x42d8b6=_0xe71cb1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4440d1=>{const _0x4a4af8=_0xe71cb1['_getAttributeKey'](_0x4440d1);return'listStart'==_0x4a4af8||'listReversed'==_0x4a4af8;});for(const _0x37c023 of _0x42d8b6){const _0x4e63e4=_0x37c023['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4e63e4||'customNumbered'==_0x4e63e4)continue;_0xe71cb1['_findSuggestions'](_0x37c023['getFirstRange'](),'attribute')['find'](_0xb70491=>'listType'==_0xe71cb1['_getAttributeKey'](_0xb70491['suggestion']))||(_0x195178['removeMarker'](_0x37c023['getFirstMarker']()),_0x300439=!0x0);}return _0x300439;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x54188c){const _0x4d78c8=this['editor']['locale'],{data:_0x1d5957}=_0x54188c,_0x56e722={'type':'format','content':''};if(!_0x1d5957||'listStyle'!=_0x1d5957['key'])return;if(!_0x1d5957['oldValue'])return'default'==_0x1d5957['newValue']?_0x56e722:{'type':'format','content':''+o(_0x4d78c8,'*Set\x20format:*\x20%0',o(_0x4d78c8,this['_getTranslationKeyForListStyle'](_0x1d5957['newValue'])))};if(!_0x1d5957['newValue']){if('default'==_0x1d5957['oldValue'])return _0x56e722;let _0x360331=_0x54188c['head'];for(;_0x360331;){if(_0x360331['data']&&'listType'==_0x360331['data']['key']&&_0x360331['data']['newValue'])return _0x56e722;_0x360331=_0x360331['next'];}return{'type':'format','content':''+o(_0x4d78c8,'*Remove\x20format:*\x20%0',o(_0x4d78c8,this['_getTranslationKeyForListStyle'](_0x1d5957['oldValue'])))};}if('default'!=_0x1d5957['newValue'])return{'type':'format','content':''+o(_0x4d78c8,'*Set\x20format:*\x20%0',o(_0x4d78c8,this['_getTranslationKeyForListStyle'](_0x1d5957['newValue'])))};let _0x4a0fc0=_0x54188c['head'];for(;_0x4a0fc0;){if(_0x4a0fc0['data']&&'listType'==_0x4a0fc0['data']['key']&&_0x4a0fc0['data']['newValue']&&_0x4a0fc0['data']['oldValue'])return _0x56e722;_0x4a0fc0=_0x4a0fc0['next'];}return{'type':'format','content':o(_0x4d78c8,'*Set\x20format:*\x20%0',o(_0x4d78c8,'ELEMENT_'+_0x54188c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5a99dd=this['editor'],_0x275961=_0x5a99dd['locale'];_0x5a99dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d0e63=>{if('formatBlock'!=_0x5d0e63['type'])return;const {data:_0x2f1a28}=_0x5d0e63;if(!_0x2f1a28)return;let _0x35250a,_0x1b25c2;switch(_0x2f1a28['commandName']){case'listStyle':_0x35250a='*Change\x20to:*\x20%0',_0x1b25c2={'type':'format','content':o(_0x275961,_0x35250a,o(_0x275961,this['_getTranslationKeyForListStyle'](_0x2f1a28['commandParams'][0x0]['type'])))};break;case'listReversed':_0x35250a=_0x2f1a28['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1b25c2={'type':'format','content':o(_0x275961,_0x35250a)};break;case'listStart':_0x35250a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1b25c2={'type':'format','content':o(_0x275961,_0x35250a,_0x2f1a28['commandParams'][0x0]['startIndex'])};}return _0x1b25c2;});}['_getTranslationKeyForListStyle'](_0x5f5a08){return'ELEMENT_'+function(_0x8b2c39){if(pe['includes'](_0x8b2c39))return'bulleted';if(ye['includes'](_0x8b2c39))return'numbered';return null;}(_0x5f5a08)['toUpperCase']()+'_LIST_'+_0x5f5a08['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x49b0aa{static get['requires'](){return[_0x39639a];}['init'](){const _0x31d2ec=this['editor'],_0x41e1e6=_0x31d2ec['plugins']['get']('TrackChangesEditing'),_0x137afe=_0x31d2ec['commands']['get']('enter');_0x41e1e6['enableCommand']('enter',()=>{_0x31d2ec['model']['change'](_0x478516=>{const _0x43ff44=_0x31d2ec['model']['document']['selection'],_0x3d4499=_0x43ff44['getFirstPosition'](),_0x501f3d=_0x2e3ae0['fromRange'](_0x43ff44['getFirstRange']());if(_0x137afe['enterBlock'](_0x478516)){const _0x3d7708=_0x31d2ec['model']['createPositionAt'](_0x3d4499['parent']['nextSibling'],0x0),_0x13ff79=_0x478516['createRange'](_0x3d4499,_0x3d7708);_0x41e1e6['markInsertion'](_0x13ff79);}else _0x478516['setSelection'](_0x478516['createRange'](_0x501f3d['end']));_0x501f3d['detach'](),_0x137afe['fire']('afterExecute',{'writer':_0x478516});});}),_0x31d2ec['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x31d2ec,'split'),{'priority':'high'}),_0x31d2ec['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x242348,_0x462cc8,_0x1b7742)=>{const _0x415019=_0x1b7742['mapper']['markerNameToElements'](_0x462cc8['markerName']);if(_0x415019){for(const _0x145d18 of _0x415019)_0x145d18['hasClass']('ck-suggestion-marker-split')&&(_0x1b7742['mapper']['unbindElementFromMarkerName'](_0x145d18,_0x462cc8['markerName']),_0x1b7742['writer']['remove'](_0x145d18));}},{'priority':'high'}),_0x31d2ec['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x13c312,_0x5753ee,_0x55402d)=>{_0x55402d['options']['showSuggestionHighlights']&&_e(_0x31d2ec,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x13c312,_0x5753ee,_0x55402d);},{'priority':'high'});}}class J extends _0x49b0aa{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2218fc=this['editor']['plugins']['get']('TrackChangesEditing');_0x2218fc['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2218fc['enableCommand']('findNext'),_0x2218fc['enableCommand']('findPrevious'),_0x2218fc['enableCommand']('replace'),_0x2218fc['enableCommand']('replaceAll');}['handleFindCommand'](_0x3fff2b,_0x156474,_0x4927cb={}){const _0xd1385=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3fff2b(_0x21398b=>('string'==typeof _0x156474?_0xd1385['findByTextCallback'](_0x156474,_0x4927cb):_0x156474)(_0x21398b)['filter'](_0x57e057=>!0x1===this['_isInDeletionRange'](_0x57e057,_0x21398b['item'])),_0x4927cb);}['_isInDeletionRange'](_0x76020f,_0x2bf345){const _0x2a863a=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2bf345,_0x76020f['start']),this['editor']['model']['createPositionAt'](_0x2bf345,_0x76020f['end']));for(const _0x1f650c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2a863a['getIntersection'](_0x1f650c['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 _0x49b0aa{['afterInit'](){const _0xdcf879=this['editor']['locale'],_0x2a66e9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x858749,commandName:_0x124909}of ro)this['editor']['plugins']['has'](_0x858749)&&(_0x2a66e9['enableDefaultAttributesIntegration'](_0x124909),_0x2a66e9['registerInlineAttribute'](_0x124909));_0xdcf879['t'],_0x2a66e9['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xdcf879,'FORMAT_FONT_SIZE')),_0x2a66e9['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xdcf879,'FORMAT_FONT_FAMILY')),_0x2a66e9['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xdcf879,'FORMAT_FONT_COLOR')),_0x2a66e9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xdcf879,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x135ec7=this['editor'],_0x26a106=_0x135ec7['locale'];_0x135ec7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cf445=>{const _0x477f2e=_0x26a106['t'];if('formatInline'!=_0x1cf445['type'])return;const {data:_0x39e910}=_0x1cf445;if(null!=_0x39e910){if('fontSize'==_0x39e910['commandName']){const _0x2d4b4b=_0x39e910['commandParams'][0x0]['value'];if(_0x2d4b4b){const _0x592a3b=_0x477f2e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1d4193=>_0x1d4193['model']==_0x2d4b4b)['title'])['toLowerCase']();return{'type':'format','content':o(_0x26a106,'*Set\x20font\x20size:*\x20%0',_0x592a3b)};}return{'type':'format','content':o(_0x26a106,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x39e910['commandName']){const _0x343955=_0x39e910['commandParams'][0x0]['value'];return _0x343955?{'type':'format','content':o(_0x26a106,'*Set\x20font\x20family:*\x20%0',_0x343955)}:{'type':'format','content':o(_0x26a106,'*Reset\x20font\x20family*')};}if('fontColor'==_0x39e910['commandName']){const _0x148d06=_0x39e910['commandParams'][0x0]['value'];if(_0x148d06){const _0x59109a=_0x5e09a2(this['editor']['config']['get']('fontColor.colors'))['find'](_0x20ba24=>_0x20ba24['model']==_0x148d06);let _0x1fc6cd=_0x148d06,_0x3a49d4='';return _0x59109a&&(_0x1fc6cd=_0x59109a['label'],_0x3a49d4=_0x477f2e(_0x1fc6cd)['toLowerCase']()),{'type':'format','content':o(_0x26a106,'*Set\x20font\x20color:*\x20%0',_0x3a49d4)['trim'](),'color':{'value':_0x148d06,'title':_0x3a49d4||_0x1fc6cd}};}return{'type':'format','content':o(_0x26a106,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x39e910['commandName']){const _0x1f22dc=_0x39e910['commandParams'][0x0]['value'];if(_0x1f22dc){const _0x4ea5fd=_0x5e09a2(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x118434=>_0x118434['model']==_0x1f22dc);let _0x5aea11=_0x1f22dc,_0x577ef2='';return _0x4ea5fd&&(_0x5aea11=_0x4ea5fd['label'],_0x577ef2=_0x477f2e(_0x5aea11)['toLowerCase']()),{'type':'format','content':o(_0x26a106,'*Set\x20font\x20background\x20color:*\x20%0',_0x577ef2)['trim'](),'color':{'value':_0x1f22dc,'title':_0x577ef2||_0x5aea11}};}return{'type':'format','content':o(_0x26a106,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x49b0aa{['afterInit'](){const _0x6cd9ff=this['editor'],_0x5361ae=_0x6cd9ff['plugins']['get']('TrackChangesEditing'),_0x267527=_0x6cd9ff['commands']['get']('copyFormat'),_0x3fe81b=_0x6cd9ff['commands']['get']('pasteFormat');_0x267527&&_0x3fe81b&&(_0x5361ae['enableDefaultAttributesIntegration']('pasteFormat'),_0x5361ae['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x47cf4c=this['editor'],_0x32ceae=_0x47cf4c['locale'];_0x47cf4c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30dd3d=>{if('formatBlock'!=_0x30dd3d['type']&&'formatInline'!=_0x30dd3d['type'])return;const {data:_0x2fce19}=_0x30dd3d;if(_0x2fce19&&'pasteFormat'===_0x2fce19['commandName']){const _0x37f1d5=[],_0x100618=_0x2fce19['commandParams'][0x0];for(const [_0x17887e,_0x4b0ef2]of Object['entries'](_0x100618))_0x37f1d5['push'](so(_0x47cf4c,_0x17887e,_0x4b0ef2));return _0x37f1d5['length']?{'type':'format','content':o(_0x32ceae,'*Set\x20format\x20to:*\x20%0',_0x37f1d5['join'](',\x20'))}:{'type':'format','content':o(_0x32ceae,'*Remove\x20all\x20formatting*')};}});}}function so(_0x46af63,_0x3ed557,_0x5c8321){const _0x4f27af=_0x46af63['locale']['t'],_0x9120a6=_0x3ed557['split'](/(?=[A-Z])/)['join']('\x20'),_0x4d26f6=_0x4f27af(_0x9120a6['charAt'](0x0)['toUpperCase']()+_0x9120a6['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5c8321)return _0x4d26f6;if('fontColor'===_0x3ed557||'fontBackgroundColor'===_0x3ed557){const _0x4cf729=_0x5e09a2(_0x46af63['config']['get']('fontColor.colors'))['find'](_0x484623=>_0x484623['model']==_0x5c8321);return _0x4d26f6+'\x20('+(_0x4cf729?_0x4f27af(_0x4cf729['label'])['toLowerCase']():_0x5c8321)+')';}if('fontSize'===_0x3ed557&&isNaN(parseFloat(_0x5c8321))){const _0x44d771=_0x46af63['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x46af63['config']['get']('fontSize.options'))['find'](_0x60f84e=>_0x60f84e['model']==_0x5c8321);return _0x4d26f6+'\x20('+(_0x44d771?_0x4f27af(_0x44d771['title'])['toLowerCase']():_0x5c8321)+')';}return _0x4d26f6+'\x20('+_0x5c8321+')';}class Y extends _0x49b0aa{['_headingOptions'];['afterInit'](){const _0x33c042=this['editor'];if(!_0x33c042['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x33c042['config']['get']('heading.options');const _0x42b24b=_0x33c042['locale'],_0x5bdeb9=_0x33c042['plugins']['get']('TrackChangesEditing');_0x5bdeb9['enableDefaultAttributesIntegration']('heading');for(const _0x2b84ab of this['_headingOptions'])'paragraph'!=_0x2b84ab['model']&&_0x5bdeb9['descriptionFactory']['registerElementLabel'](_0x2b84ab['model'],_0x1be17b=>{const _0x66becb=this['_getHeadingLevel'](_0x2b84ab['model']);return null!==_0x66becb?_0x5f5b8a(_0x1be17b,_0x66becb):_0x58529f(_0x1be17b,_0x2b84ab['title']);});function _0x5f5b8a(_0x2c5029,_0x2d09e9){return o(_0x42b24b,'ELEMENT_HEADING',[_0x2c5029,_0x2d09e9]);}function _0x58529f(_0x27a734,_0x50c69a){return o(_0x42b24b,'ELEMENT_HEADING_CUSTOM',[_0x27a734,_0x50c69a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x491d16=this['editor'],_0x266444=_0x491d16['locale'];function _0x37c3b5(_0x1b60ee,_0x5288cb){return o(_0x266444,'ELEMENT_HEADING_CUSTOM',[_0x1b60ee,_0x5288cb]);}_0x491d16['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46fb99=>{if('formatBlock'!=_0x46fb99['type'])return;const {data:_0x1093c8}=_0x46fb99;if(_0x1093c8&&'heading'==_0x1093c8['commandName']){const _0x2fa6a5=_0x1093c8['commandParams'][0x0]['value'],_0x471eea=this['_getHeadingLevel'](_0x2fa6a5);if(null!==_0x471eea)return{'type':'format','content':o(_0x266444,'*Change\x20to:*\x20%0',(_0xb8cdd2=0x1,_0x15372d=_0x471eea,o(_0x266444,'ELEMENT_HEADING',[_0xb8cdd2,_0x15372d])))};const _0x178242=this['_headingOptions']['find'](_0x2ad074=>_0x2ad074['model']===_0x2fa6a5)['title'];return{'type':'format','content':o(_0x266444,'*Change\x20to:*\x20%0',_0x37c3b5(0x1,_0x178242))};}var _0xb8cdd2,_0x15372d;});}['_getHeadingLevel'](_0x1d966f){const _0x327f7c=_0x1d966f['match'](/^heading(\d+)/);if(_0x327f7c)return _0x327f7c[0x1];const _0x273002=this['_headingOptions']?.['find'](_0xe77121=>_0xe77121['model']==_0x1d966f);if(_0x273002&&_0x273002['view']){const _0x358c2d=_0x273002['view'],_0x31a396=(_0x358c2d['name']??_0x358c2d)['match'](/^h(\d+)/);if(_0x31a396)return _0x31a396[0x1];}return null;}}class Z extends _0x49b0aa{['afterInit'](){const _0x4d9a20=this['editor'];if(!_0x4d9a20['plugins']['has']('HighlightEditing'))return;const _0x490750=_0x4d9a20['plugins']['get']('TrackChangesEditing'),_0x533ec6=_0x4d9a20['locale'];_0x490750['enableDefaultAttributesIntegration']('highlight'),_0x490750['registerInlineAttribute']('highlight'),_0x490750['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x533ec6,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xceaa68=this['editor'],_0x3a41a3=_0xceaa68['locale'];_0xceaa68['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd2fdb6=>{if('formatInline'!=_0xd2fdb6['type'])return;const {data:_0x55a331}=_0xd2fdb6;if(_0x55a331&&'highlight'==_0x55a331['commandName']){const _0xdcf39f=_0x3a41a3['t'],_0x3e68b7=_0x55a331['commandParams'][0x0]['value'];if(_0x3e68b7){const _0x3d1a68=_0xceaa68['config']['get']('highlight.options')['find'](_0x426281=>_0x426281['model']==_0x3e68b7),_0x477314=_0xdcf39f(_0x3d1a68['title'])['toLowerCase']();return{'type':'format','content':o(_0x3a41a3,'*Set\x20highlight:*\x20%0',_0x477314),'color':{'value':_0x3d1a68['color'],'title':_0x3d1a68['title']}};}return{'type':'format','content':o(_0x3a41a3,'*Remove\x20highlight*',o(_0x3a41a3,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x49b0aa{['afterInit'](){const _0x1c5038=this['editor'];if(!_0x1c5038['plugins']['has']('HorizontalLineEditing'))return;_0x1c5038['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4cc994=_0x1c5038['plugins']['get']('TrackChangesEditing'),_0x3bfeb5=_0x1c5038['locale'];_0x4cc994['descriptionFactory']['registerElementLabel']('horizontalLine',_0x305a32=>o(_0x3bfeb5,'ELEMENT_HORIZONTAL_LINE',_0x305a32)),_0x1c5038['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x35a921,{writer:_0x18652d,options:_0x380bdc})=>{if(!_0x380bdc['showSuggestionHighlights'])return null;const _0x3efd84=_0x18652d['createContainerElement']('div'),_0x493555=_0x18652d['createEmptyElement']('hr');return _0x18652d['addClass']('ck-horizontal-line',_0x3efd84),_0x18652d['insert'](_0x18652d['createPositionAt'](_0x3efd84,0x0),_0x493555),_0x3efd84;},'converterPriority':'high'});}}class et extends _0x49b0aa{['afterInit'](){const _0xd584e7=this['editor'];if(!_0xd584e7['plugins']['has']('HtmlEmbed'))return;const _0x4e8ed5=_0xd584e7['plugins']['get']('TrackChangesEditing'),_0xf89e5d=_0xd584e7['locale'];_0x4e8ed5['descriptionFactory']['registerElementLabel']('rawHtml',_0x528d49=>o(_0xf89e5d,'ELEMENT_HTML_EMBED',_0x528d49)),_0x4e8ed5['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4e8ed5['registerBlockAttribute']('value'),_0x4e8ed5['descriptionFactory']['registerDescriptionCallback'](_0x2dd620=>{if('attribute'!=_0x2dd620['type'])return;const {data:_0x289c4d}=_0x2dd620;if(_0x289c4d&&'value'==_0x289c4d['key']&&_0x2dd620['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1a9c2f=o(_0xf89e5d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xf89e5d,'*Change\x20%0\x20content*',_0x1a9c2f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29ff72=this['editor'],_0x4226c6=_0x29ff72['locale'];_0x29ff72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14d358=>{if('formatBlock'!=_0x14d358['type'])return;const {data:_0x3f3819}=_0x14d358;if(_0x3f3819&&'htmlEmbed'==_0x3f3819['commandName']){const _0x450e3e=o(_0x4226c6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4226c6,'*Change\x20%0\x20content*',_0x450e3e)};}});}}class it extends _0x49b0aa{['afterInit'](){const _0x14824c=this['editor'];if(!_0x14824c['plugins']['has']('ImageEditing'))return;const _0x88b8e8=_0x14824c['plugins']['get']('TrackChangesEditing'),_0x2cbe17=_0x14824c['plugins']['get']('ImageUtils'),_0x21af85=_0x14824c['locale'];_0x88b8e8['enableCommand']('insertImage'),_0x88b8e8['descriptionFactory']['registerElementLabel']('imageBlock',_0x50400a=>o(_0x21af85,'ELEMENT_IMAGE',_0x50400a)),_0x88b8e8['descriptionFactory']['registerElementLabel']('imageInline',_0x54dfd8=>o(_0x21af85,'ELEMENT_INLINE_IMAGE',_0x54dfd8)),_0x88b8e8['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x21af85,'ELEMENT_CAPTION')),_0x14824c['plugins']['has']('ImageUploadEditing')&&_0x88b8e8['enableCommand']('uploadImage'),_0x14824c['plugins']['has']('ImageBlockEditing')&&_0x14824c['plugins']['has']('ImageInlineEditing')&&(_0x88b8e8['enableCommand']('imageTypeInline',(_0x1afa82,_0x3a9250)=>{const _0x4b707c=_0x2cbe17['getClosestSelectedImageElement'](_0x14824c['model']['document']['selection']);_0x14824c['model']['change'](()=>{_0x88b8e8['markBlockFormat'](_0x4b707c,{'commandName':'imageTypeInline','commandParams':[_0x3a9250]},[],'convertBlockImageToInline');});}),_0x88b8e8['enableCommand']('imageTypeBlock',(_0x18bb6d,_0x2e206e)=>{_0x14824c['model']['change'](_0x5a72f6=>{let _0x58020e=_0x2cbe17['getClosestSelectedImageElement'](_0x14824c['model']['document']['selection']),_0x2fc208=_0x5a72f6['createRangeOn'](_0x58020e);const _0x631e6b=_0x21320a['fromPosition'](_0x2fc208['start'],'toPrevious'),_0x3cbd6f=_0x21320a['fromPosition'](_0x2fc208['end'],'toNext');_0x88b8e8['forceDefaultExecution'](()=>_0x18bb6d(_0x2e206e)),_0x58020e=_0x2cbe17['getClosestSelectedImageElement'](_0x14824c['model']['document']['selection']),_0x2fc208=_0x5a72f6['createRangeOn'](_0x58020e);const _0x335571=_0x5a72f6['createRange'](_0x631e6b,_0x3cbd6f);_0x631e6b['detach'](),_0x3cbd6f['detach'](),_0x88b8e8['markBlockFormat'](_0x58020e,{'commandName':'imageTypeInline','commandParams':[_0x2e206e]},[],'convertInlineImageToBlock'),_0x335571['start']['isBefore'](_0x2fc208['start'])&&_0x88b8e8['markInsertion'](_0x5a72f6['createRange'](_0x335571['start'],_0x2fc208['start']),'convertInlineImageToBlock'),_0x2fc208['end']['isBefore'](_0x335571['end'])&&_0x88b8e8['markInsertion'](_0x5a72f6['createRange'](_0x2fc208['end'],_0x335571['end']),'convertInlineImageToBlock');});}),_0x88b8e8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x88b8e8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x88b8e8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x88b8e8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x88b8e8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x88b8e8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x157d50])=>{const _0x2910ba=_0x88b8e8['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x28a773=_0x157d50['start'],_0x59b298=_0x157d50['end'];const _0x39ba45=_0x14824c['model']['schema']['getNearestSelectionRange'](_0x28a773,'backward'),_0x445a4e=_0x14824c['model']['schema']['getNearestSelectionRange'](_0x59b298,'forward');_0x39ba45['isCollapsed']&&(_0x28a773=_0x39ba45['start']),_0x445a4e['isCollapsed']&&(_0x59b298=_0x445a4e['end']),_0x2910ba([_0x14824c['model']['createRange'](_0x28a773,_0x59b298)]);}),_0x88b8e8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x21a35f),_0x88b8e8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x21a35f)),_0x14824c['plugins']['has']('ImageCaptionEditing')&&(_0x88b8e8['enableCommand']('toggleImageCaption',(_0x5e7ff6,_0x573ecf)=>{const _0x45e0d5=_0x14824c['plugins']['get']('ImageCaptionUtils');let _0x500533=_0x2cbe17['getClosestSelectedImageElement'](_0x14824c['model']['document']['selection']),_0x447422=_0x45e0d5['getCaptionFromImageModelElement'](_0x500533);_0x14824c['model']['change'](()=>{if(_0x447422)return void _0x88b8e8['markDeletion'](_0x14824c['model']['createRangeOn'](_0x447422));const _0x1c1180=_0x2cbe17['isBlockImage'](_0x500533);_0x5e7ff6(_0x573ecf),_0x500533=_0x2cbe17['getClosestSelectedImageElement'](_0x14824c['model']['document']['selection']),_0x447422=_0x45e0d5['getCaptionFromImageModelElement'](_0x500533),_0x88b8e8['markInsertion'](_0x14824c['model']['createRangeOn'](_0x447422),_0x1c1180?null:'imageCaption');});}),_0x88b8e8['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x21a35f));const _0x48ff02=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4a5762(_0x43b633,_0x3a883e){const _0x4dedda=_0x48ff02['findIndex'](({type:_0xc25664,subType:_0x5b6912})=>_0x43b633['type']==_0xc25664&&_0x43b633['subType']==_0x5b6912),_0x3215ac=_0x48ff02['findIndex'](({type:_0x3ba084,subType:_0x29c643})=>_0x3a883e['type']==_0x3ba084&&_0x3a883e['subType']==_0x29c643);if(_0x4dedda<0x0||_0x3215ac<0x0)return!0x1;const _0x518a2d=_0x43b633['getFirstRange'](),_0x4efdf9=_0x3a883e['getFirstRange']();if((0x0==_0x4dedda||0x1==_0x4dedda)&&0x2==_0x3215ac&&_0x518a2d['isIntersecting'](_0x4efdf9))return!0x0;if(0x2==_0x4dedda&&0x3==_0x3215ac){const _0x5e0b24=_0x88b8e8['_findSuggestions'](_0x518a2d,'insertion')['filter'](({suggestion:_0x28ab05,meta:_0x1e9af8})=>_0x1e9af8['isOwn']&&'convertInlineImageToBlock'==_0x28ab05['subType']);if(_0x5e0b24['length']>0x1&&_0x4efdf9['end']['isEqual'](_0x518a2d['start']))return!0x0;if(0x1==_0x5e0b24['length']&&(_0x518a2d['start']['isEqual'](_0x4efdf9['end'])||_0x518a2d['end']['isEqual'](_0x4efdf9['start'])))return!0x0;}if(0x3==_0x4dedda&&0x3==_0x3215ac&&_0x518a2d['start']['isBefore'](_0x4efdf9['start'])){const _0x195d2d=_0x518a2d['end']['nodeAfter'],_0xca7674=_0x4efdf9['start']['nodeBefore'];return _0x2cbe17['isBlockImage'](_0x195d2d)&&_0x195d2d===_0xca7674;}return!0x1;}function _0x21a35f(_0x178e5a,_0x358c84){return _0x4a5762(_0x178e5a,_0x358c84)?[_0x178e5a,_0x358c84]:_0x4a5762(_0x358c84,_0x178e5a)?[_0x358c84,_0x178e5a]:null;}_0x14824c['plugins']['has']('ImageResize')&&(_0x88b8e8['enableDefaultAttributesIntegration']('resizeImage'),_0x88b8e8['registerBlockAttribute']('resizedWidth'),_0x88b8e8['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x21af85,'FORMAT_IMAGE_SIZE'))),_0x14824c['plugins']['has']('ImageTextAlternativeEditing')&&(_0x88b8e8['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x88b8e8['registerBlockAttribute']('alt')),_0x88b8e8['descriptionFactory']['registerDescriptionCallback'](_0x4e8754=>{if(!!_0x48ff02['find'](({type:_0x47e477,subType:_0x4c0053})=>_0x4e8754['type']==_0x47e477&&_0x4e8754['subType']==_0x4c0053))return _0x4e8754['previous']?{}:void 0x0;}),_0x88b8e8['descriptionFactory']['registerDescriptionCallback'](_0x5e280e=>{if('insertion'==_0x5e280e['type']||'deletion'==_0x5e280e['type']){const _0x36d209=_0x5e280e['getContainedElement']();if(_0x36d209&&_0x36d209['is']('element','caption'))return{'type':'insertion'==_0x5e280e['type']?'addObject':'removeObject','element':_0x36d209,'quantity':0x1};}}),_0x88b8e8['descriptionFactory']['registerDescriptionCallback'](_0x2bb62f=>'formatBlock'==_0x2bb62f['type']&&'convertInlineImageToBlock'==_0x2bb62f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2bb62f['type']&&'convertBlockImageToInline'==_0x2bb62f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x88b8e8['descriptionFactory']['registerDescriptionCallback'](_0xaab399=>{if('attribute'!=_0xaab399['type'])return;const {data:_0x5bcc8e}=_0xaab399;if(!_0x5bcc8e||'alt'!=_0x5bcc8e['key'])return;const _0x2ef336=_0x5bcc8e['newValue'];return _0x2ef336?{'type':'format','content':o(_0x21af85,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2ef336+'\x22')}:{'type':'format','content':o(_0x21af85,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x95b1d9=this['editor'],_0x47bb2d=_0x95b1d9['locale'];_0x95b1d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x349377=>{if('formatBlock'!=_0x349377['type']&&'formatInline'!=_0x349377['type'])return;const {data:_0x479224}=_0x349377;if(_0x479224){if('imageTextAlternative'==_0x479224['commandName']){const _0xd5b04c=_0x479224['commandParams'][0x0]['newValue'];return _0xd5b04c?{'type':'format','content':o(_0x47bb2d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xd5b04c+'\x22')}:{'type':'format','content':o(_0x47bb2d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x479224['commandName']){const _0x1ef573=_0x479224['commandParams'][0x0]['width'];return _0x1ef573?{'type':'format','content':o(_0x47bb2d,'*Set\x20image\x20width:*\x20%0',_0x1ef573)}:{'type':'format','content':o(_0x47bb2d,'*Reset\x20image\x20width*')};}}});}}class st extends _0x49b0aa{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3614b8=this['editor']['locale'],_0x3fb150=this['editor']['plugins']['get']('TrackChangesEditing');_0x3fb150['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3fb150['registerBlockAttribute']('src'),_0x3fb150['descriptionFactory']['registerDescriptionCallback'](_0x1ff4cb=>{if('attribute'!=_0x1ff4cb['type'])return;const {data:_0x1ff7bf}=_0x1ff4cb;return _0x1ff7bf&&'src'==_0x1ff7bf['key']?_0x1ff7bf['newValue']&&_0x1ff7bf['oldValue']?{'type':'format','content':o(_0x3614b8,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2b34b0=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b34b0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2b34b0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2b34b0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2b34b0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ab928=this['editor'],_0x1807ce=_0x4ab928['locale'];_0x4ab928['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41288a=>{if('formatBlock'!=_0x41288a['type']&&'formatInline'!=_0x41288a['type'])return;const {data:_0x378f68}=_0x41288a;if(!_0x378f68||'replaceImageSource'!=_0x378f68['commandName'])return;return{'type':'format','content':o(_0x1807ce,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x49b0aa{['afterInit'](){const _0x3b0907=this['editor'];if(!_0x3b0907['plugins']['has']('ImageStyleEditing'))return;const _0x38362c=_0x3b0907['plugins']['get']('TrackChangesEditing'),_0x4676f4=_0x3b0907['plugins']['get']('ImageUtils'),_0x1aa292={};_0x38362c['enableCommand']('imageStyle',(_0x3c0254,_0x34ed04)=>{const _0x1eabab=_0x3b0907['plugins']['get']('Users')['me'],_0x54af71=_0x3b0907['commands']['get']('imageStyle');let _0x4e16ac=_0x4676f4['getClosestSelectedImageElement'](_0x3b0907['model']['document']['selection']),_0x5ba32e=_0x3b0907['model']['createRangeOn'](_0x4e16ac),_0x5591cd=_0x54af71['value'];if(_0x5591cd==_0x34ed04['value'])return;const _0x2f01e3={'commandName':'imageStyle','commandParams':[_0x34ed04],'formatGroupId':_0x1b9482()};_0x3b0907['model']['change'](()=>{if(_0x38362c['getSuggestions']()['filter'](_0x104c7e=>_0x104c7e['isInContent']&&_0x1eabab==_0x104c7e['author']&&('formatBlock'==_0x104c7e['type']||'formatInline'==_0x104c7e['type'])&&('imageStylePreApply'==_0x104c7e['subType']||'imageStylePostApply'==_0x104c7e['subType'])&&_0x104c7e['getFirstRange']()['isEqual'](_0x5ba32e))['forEach'](_0x4e9738=>_0x38362c['discardSuggestion'](_0x4e9738['head'])),_0x4e16ac=_0x4676f4['getClosestSelectedImageElement'](_0x3b0907['model']['document']['selection']),_0x5ba32e=_0x3b0907['model']['createRangeOn'](_0x4e16ac),_0x54af71['refresh'](),_0x3b0907['commands']['get']('imageTypeInline')['refresh'](),_0x3b0907['commands']['get']('imageTypeBlock')['refresh'](),_0x5591cd=_0x54af71['value'],_0x5591cd!=_0x34ed04['value'])return _0x4676f4['isInlineImage'](_0x4e16ac)&&_0x54af71['shouldConvertImageType'](_0x34ed04['value'],_0x4e16ac)?(_0x3c0254({..._0x34ed04,'setImageSizes':!0x1}),_0x4e16ac=_0x4676f4['getClosestSelectedImageElement'](_0x3b0907['model']['document']['selection']),void _0x38362c['markBlockFormat'](_0x4e16ac,{..._0x2f01e3,'commandReversedParams':[{'value':_0x5591cd||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4676f4['isBlockImage'](_0x4e16ac)?_0x38362c['markBlockFormat'](_0x4e16ac,_0x2f01e3,[],'imageStylePostApply'):_0x38362c['markInlineFormat'](_0x5ba32e,_0x2f01e3,'imageStylePostApply'));});});for(const _0x3e8b05 of _0x3b0907['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1aa292[_0x3e8b05['name']]=_0x3e8b05['title']['toLowerCase']();_0x38362c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x38362c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x38362c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x38362c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x35d132])=>{_0x4676f4['setImageNaturalSizeAttributes'](_0x35d132['getContainedElement']());}),_0x38362c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x38a4a9,_0x7ee3d1)=>{_0x38362c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x38a4a9,{'commandName':_0x7ee3d1['commandName'],'commandParams':_0x7ee3d1['commandReversedParams']});}),_0x38362c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x31fb7b,_0x3896de){if(_0x46ae76(_0x31fb7b,_0x3896de))return[_0x31fb7b,_0x3896de];if(_0x46ae76(_0x3896de,_0x31fb7b))return[_0x3896de,_0x31fb7b];return null;});const _0x4b0089=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x46ae76(_0xd44768,_0xfbd482){const _0x135f3c=_0x4b0089['findIndex'](({type:_0x505791,subType:_0x35fde7})=>_0xd44768['type']==_0x505791&&_0xd44768['subType']==_0x35fde7),_0xd68045=_0x4b0089['findIndex'](({type:_0xa836ae,subType:_0x14bb32})=>_0xfbd482['type']==_0xa836ae&&_0xfbd482['subType']==_0x14bb32);if(_0x135f3c<0x0||_0xd68045<0x0)return!0x1;const _0x45003f=_0xd44768['getFirstRange'](),_0x4e29d2=_0xfbd482['getFirstRange']();if((0x0==_0x135f3c||0x1==_0x135f3c)&&0x2==_0xd68045&&_0x45003f['isIntersecting'](_0x4e29d2))return!0x0;if(0x2==_0x135f3c&&0x3==_0xd68045){const _0x36b14d=_0x38362c['_findSuggestions'](_0x45003f,'insertion')['filter'](({suggestion:_0x1a313f,meta:_0x406386})=>_0x406386['isOwn']&&'convertInlineImageToBlock'==_0x1a313f['subType']);if(_0x36b14d['length']>0x1&&_0x4e29d2['end']['isEqual'](_0x45003f['start']))return!0x0;if(0x1==_0x36b14d['length']&&(_0x45003f['start']['isEqual'](_0x4e29d2['end'])||_0x45003f['end']['isEqual'](_0x4e29d2['start'])))return!0x0;}if(0x3==_0x135f3c&&0x3==_0xd68045&&_0x45003f['start']['isBefore'](_0x4e29d2['start'])){const _0x282c87=_0x45003f['end']['nodeAfter'],_0x1c5aa3=_0x4e29d2['start']['nodeBefore'];return _0x4676f4['isBlockImage'](_0x282c87)&&_0x282c87===_0x1c5aa3;}return!0x1;}_0x3b0907['model']['document']['registerPostFixer'](()=>{let _0x42c027=!0x1;const _0x4b2f70=Array['from'](_0x3b0907['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x40c702,data:_0x1a7117}of _0x4b2f70){const {group:_0x17e6e8,type:_0x31cb95,subType:_0x1ad36e,id:_0x5488e2}=_0x38362c['_splitMarkerName'](_0x40c702);if('suggestion'==_0x17e6e8&&_0x38362c['hasSuggestion'](_0x5488e2)){if('formatBlock'==_0x31cb95&&('imageStylePreApply'==_0x1ad36e||'imageStylePostApply'==_0x1ad36e)){const _0x20e843=_0x38362c['getSuggestion'](_0x5488e2);if(_0x1a7117['newRange']){const _0x12968f=_0x20e843['getFirstRange']()['getContainedElement']();if(_0x4676f4['isBlockImage'](_0x12968f))continue;_0x38362c['discardSuggestion'](_0x20e843),_0x42c027=!0x0;}}if('insertion'==_0x31cb95&&'imageCaption'==_0x1ad36e&&!_0x1a7117['newRange']){const _0xe3b973=_0x38362c['getSuggestion'](_0x5488e2);_0xe3b973['next']&&_0xe3b973['next']['isInContent']&&(_0x38362c['discardSuggestion'](_0xe3b973['next']),_0x42c027=!0x0);}}}return _0x42c027;}),this['_registerLegacyDescription'](_0x1aa292);}['_registerLegacyDescription'](_0x24800d){const _0x38aee2=this['editor'],_0x42146f=_0x38aee2['locale'];_0x38aee2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31bc05=>{if('formatBlock'!=_0x31bc05['type']&&'formatInline'!=_0x31bc05['type'])return;const {data:_0x4e5968}=_0x31bc05;if(!_0x4e5968||'imageStyle'!=_0x4e5968['commandName'])return;const _0x27f5e4=_0x4e5968['commandParams'][0x0]['value'];return _0x5a2275('side'===_0x27f5e4?o(_0x42146f,'FORMAT_SIDE_IMAGE'):_0x24800d[_0x27f5e4]||_0x27f5e4);function _0x5a2275(_0x51fc2f){return{'type':'format','content':o(_0x42146f,'*Format:*\x20%0',_0x51fc2f)};}});}}class ot extends _0x49b0aa{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xd6bf7a){super(_0xd6bf7a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x529615=this['editor'],_0x3c84c9=_0x529615['commands']['get']('importWord'),_0x1b45e1=_0x529615['commands']['get']('trackChanges');_0x3c84c9&&(_0x3c84c9['on']('execute',(_0x1aaab9,[,_0x5ae7b8])=>{this['_trackChangesValueDuringImport']=_0x1b45e1['value'],_0x5ae7b8['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3c84c9,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3c84c9,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1b45e1['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x529615['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x182f3b,_0xa48223){const {suggestions:_0x1a2c58}=_0xa48223,_0x22ef65=this['editor']['commands']['get']('trackChanges'),_0x3ab462=_0x22ef65['value'];this['_trackChangesValueDuringImport']!==_0x3ab462&&(_0x22ef65['execute'](),this['_trackChangesExecuted']=!0x0),_0x1a2c58&&_0x1a2c58['forEach'](({id:_0x19a09b,type:_0x2d2e53,author:_0x2db583,created_at:_0x1557d0})=>{const _0x2c5552={'id':_0x19a09b,'type':_0x2d2e53,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2db583,'createdAt':_0x1557d0?new Date(_0x1557d0):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2c5552);});}}class rt extends _0x49b0aa{['afterInit'](){const _0x32aa76=this['editor'],_0x1525d6=_0x32aa76['plugins']['get']('TrackChangesEditing');if(_0x32aa76['plugins']['has']('IndentEditing')&&(_0x1525d6['enableCommand']('indent'),_0x1525d6['enableCommand']('outdent')),_0x32aa76['plugins']['has']('IndentBlock')){for(const _0x71dc0f of['indentBlock','outdentBlock'])_0x1525d6['enableDefaultAttributesIntegration'](_0x71dc0f);}const _0x171a8b=_0x32aa76['locale'];_0x1525d6['registerBlockAttribute']('blockIndent'),_0x1525d6['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x171a8b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f5dea=this['editor'],_0x2c545f=_0x4f5dea['locale'],_0x42330b=_0x4f5dea['plugins']['get']('TrackChangesEditing');_0x42330b['descriptionFactory']['registerDescriptionCallback'](_0x30e265=>{if('formatBlock'!=_0x30e265['type'])return;const {data:_0x25b257}=_0x30e265;if(!_0x25b257)return;if('indentBlock'!=_0x25b257['commandName']&&'outdentBlock'!=_0x25b257['commandName'])return;const _0x488f5f=_0x30e265['getItems']()[0x0],_0x3135ed=_0x42330b['descriptionFactory']['getItemLabel'](_0x488f5f);return'indentBlock'==_0x25b257['commandName']?{'type':'format','content':o(_0x2c545f,'*Indent:*\x20%0',_0x3135ed)}:'outdentBlock'==_0x25b257['commandName']?{'type':'format','content':o(_0x2c545f,'*Outdent:*\x20%0',_0x3135ed)}:void 0x0;});}}class at extends _0x49b0aa{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x49b0aa{['afterInit'](){const _0x1efdc0=this['editor'];if(!_0x1efdc0['plugins']['has']('LinkEditing'))return;const _0x5c5a53=_0x1efdc0['plugins']['get']('TrackChangesEditing'),_0x59c112=_0x1efdc0['commands']['get']('link');_0x5c5a53['enableDefaultAttributesIntegration']('link'),_0x5c5a53['enableDefaultAttributesIntegration']('unlink'),_0x5c5a53['registerInlineAttribute']('linkHref');for(const _0x208ac3 of _0x59c112['manualDecorators'])_0x5c5a53['registerInlineAttribute'](_0x208ac3['id']),_0x5c5a53['descriptionFactory']['registerAttributeLabel'](_0x208ac3['id'],'link\x20('+_0x208ac3['label']['toLowerCase']()+')');_0x5c5a53['descriptionFactory']['registerDescriptionCallback'](_0x52a676=>{if('attribute'!=_0x52a676['type'])return;const {data:_0x3f8990}=_0x52a676;if(!_0x3f8990||'linkHref'!=_0x3f8990['key'])return;const _0x4c227c=_0x3f8990['newValue'],_0x46a220=_0x1efdc0['locale'];return{'type':'format','content':null==_0x4c227c?o(_0x46a220,'*Remove\x20link*'):o(_0x46a220,'*Set\x20link:*\x20%0','\x22'+_0x4c227c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a1cd7=this['editor'],_0x48e102=_0x5a1cd7['locale'];_0x5a1cd7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x159b69=>{if('formatInline'!=_0x159b69['type'])return;const {data:_0x397707}=_0x159b69;if(_0x397707){if('link'==_0x397707['commandName']){const _0x5864ee=_0x397707['commandParams'][0x0];return{'type':'format','content':o(_0x48e102,'*Set\x20link:*\x20%0','\x22'+_0x5864ee+'\x22')};}return'unlink'==_0x397707['commandName']?{'type':'format','content':o(_0x48e102,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x49b0aa{['afterInit'](){const _0x4547fe=this['editor'],_0x3b31c8=_0x4547fe['locale'];if(!_0x4547fe['plugins']['has']('LegacyListEditing'))return;const _0xe99703=_0x4547fe['plugins']['get']('TrackChangesEditing'),_0xe285ba=_0x4547fe['plugins']['has']('LegacyTodoListEditing');function _0x3c9370(_0x1a67ae){return()=>{const _0x138192=_0x4547fe['model']['document']['selection'],_0x11280f=_0x4547fe['commands']['get'](_0x1a67ae);if(_0x11280f['value'])return void _0x4547fe['execute']('paragraph',{});const _0x43c4d6=_0x1a67ae['slice'](0x0,-0x4),_0x5b6286=function(_0x30961d,_0xaf00f2,_0x3bf6b3){let _0x52173f=Array['from'](_0x30961d)['filter'](_0x585ae3=>function(_0x324243,_0x33e18e){return _0x33e18e['checkChild'](_0x324243['parent'],'listItem')&&!_0x33e18e['isObject'](_0x324243);}(_0x585ae3,_0x3bf6b3));_0x52173f=_0x52173f['filter'](_0x1e07d1=>!_0x1e07d1['is']('element','listItem')||_0x1e07d1['getAttribute']('listType')!=_0xaf00f2);const _0x51e80f=new Set();for(const _0x3a3265 of _0x52173f)_0x3a3265['is']('element','listItem')?_0x51e80f['add'](me(_0x3a3265)):_0x51e80f['add'](_0x3a3265);return Array['from'](_0x51e80f);}(_0x138192['getSelectedBlocks'](),_0x43c4d6,_0x4547fe['model']['schema']);_0x4547fe['model']['change'](()=>{for(const _0x324c9f of _0x5b6286)_0xe99703['markBlockFormat'](_0x324c9f,{'commandName':_0x1a67ae,'commandParams':[{'forceValue':!_0x11280f['value']}],'formatGroupId':'blockName'},fe(_0x324c9f));});};}function _0x45086d(_0x60f557){return()=>{const _0x35be75=function(_0x4b2f3a){let _0xf2170b=Array['from'](_0x4b2f3a);const _0x4c87a9=_0xf2170b['findIndex'](_0x391e89=>'listItem'!=_0x391e89['name']);return _0x4c87a9>-0x1&&(_0xf2170b=_0xf2170b['slice'](0x0,_0x4c87a9)),_0xf2170b;}(_0x4547fe['model']['document']['selection']['getSelectedBlocks']()),_0x322df0=_0x4547fe['model']['createRange'](_0x4547fe['model']['createPositionAt'](_0x35be75[0x0],'before'),_0x4547fe['model']['createPositionAt'](_0x35be75[_0x35be75['length']-0x1],'end'));_0x4547fe['model']['change'](()=>{_0xe99703['markBlockFormat'](_0x322df0,{'commandName':_0x60f557,'commandParams':[],'formatGroupId':'listIndent'},function(_0xab1ac5){const _0x5e9122=new Set();for(const _0x42757c of _0xab1ac5){let _0x51d853=_0x42757c['nextSibling'];for(;_0x51d853&&_0x51d853['getAttribute']('listIndent')>_0x42757c['getAttribute']('listIndent');)_0x5e9122['add'](_0x51d853),_0x51d853=_0x51d853['nextSibling'];}return Array['from'](_0x5e9122);}(_0x35be75));});};}_0xe99703['enableCommand']('numberedList',_0x3c9370('numberedList')),_0xe99703['enableCommand']('bulletedList',_0x3c9370('bulletedList')),_0xe285ba&&_0xe99703['enableCommand']('todoList',_0x3c9370('todoList')),_0xe99703['enableCommand']('indentList',_0x45086d('indentList')),_0xe99703['enableCommand']('outdentList',_0x45086d('outdentList')),_0xe285ba&&_0xe99703['enableCommand']('checkTodoList',()=>{const _0xd17b1d=_0x4547fe['commands']['get']('checkTodoList'),_0x2e4110=Array['from'](_0xd17b1d['_selectedElements']);_0x2e4110['filter'](_0x36dfd3=>_0x36dfd3['getAttribute']('todoListChecked')!=_0xd17b1d['value']),_0x4547fe['model']['change'](()=>{for(const _0x87f4a0 of _0x2e4110)_0xe99703['markBlockFormat'](_0x87f4a0,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xd17b1d['value']}]});});}),_0xe99703['descriptionFactory']['registerElementLabel']('listItem',_0x125c08=>o(_0x3b31c8,'ELEMENT_LIST_ITEM',_0x125c08)),_0xe99703['descriptionFactory']['registerDescriptionCallback'](_0x266c8e=>{if('formatBlock'!=_0x266c8e['type']&&'formatInline'!=_0x266c8e['type'])return;const {data:_0x21e5ea}=_0x266c8e;if(_0x21e5ea){if('numberedList'==_0x21e5ea['commandName']||'bulletedList'==_0x21e5ea['commandName']||'todoList'==_0x21e5ea['commandName'])switch(_0x21e5ea['commandName']['replace']('List','')){case'bulleted':return _0x2525c2(o(_0x3b31c8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2525c2(o(_0x3b31c8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2525c2(o(_0x3b31c8,'ELEMENT_TODO_LIST'));}if('indentList'==_0x21e5ea['commandName'])return{'type':'format','content':o(_0x3b31c8,'*Indent:*\x20%0',o(_0x3b31c8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x21e5ea['commandName'])return{'type':'format','content':o(_0x3b31c8,'*Outdent:*\x20%0',o(_0x3b31c8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x21e5ea['commandName'])return _0x21e5ea['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3b31c8,'*Check\x20item*')}:{'type':'format','content':o(_0x3b31c8,'*Uncheck\x20item*')};}function _0x2525c2(_0x488a42){return{'type':'format','content':o(_0x3b31c8,'*Change\x20to:*\x20%0',_0x488a42)};}});}}function me(_0x502d28){const _0x226457=_0x502d28['getAttribute']('listIndent');if(0x0==_0x226457)return _0x502d28;let _0x4ffb3c=_0x502d28;for(;_0x502d28['previousSibling']&&_0x502d28['previousSibling']['is']('element','listItem');){const _0x23333e=_0x502d28['previousSibling']['getAttribute']('listIndent');if(_0x23333e==_0x226457)_0x4ffb3c=_0x502d28['previousSibling'];else{if(_0x23333e<_0x226457)break;}_0x502d28=_0x502d28['previousSibling'];}return _0x4ffb3c;}function fe(_0x4b4561){const _0x445d=[];if(_0x4b4561['is']('element','listItem')&&_0x4b4561['getAttribute']('listIndent')>0x0){let _0x5aa929=_0x4b4561['nextSibling'];for(;_0x5aa929&&'listItem'==_0x5aa929['name']&&_0x5aa929['getAttribute']('listIndent')==_0x4b4561['getAttribute']('listIndent');)_0x445d['push'](_0x5aa929),_0x5aa929=_0x5aa929['nextSibling'];}return _0x445d;}class K extends _0x49b0aa{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x31f160=this['editor']['config']['get']('list.properties'),_0x38323c=this['editor']['plugins']['get']('TrackChangesEditing');_0x31f160['styles']&&_0x38323c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x31f160['reversed']&&_0x38323c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x31f160['startIndex']&&_0x38323c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x38323c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3baadb,_0x21b946={}){const _0x5dd360=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59c4c3=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5dd360['markMultiRangeBlockFormat'](_0x59c4c3,{'commandName':'listStyle','commandParams':[{'type':_0x21b946['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1761a1,_0x46e8ce={}){const _0x47e147=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7b6f40=this['_getSuggestionBlocks'](_0x541e1e=>_0x541e1e['is']('element','listItem')&&'numbered'===_0x541e1e['getAttribute']('listType'));if(_0x7b6f40['length']<0x1)return;const _0x4d6262=_0x7b6f40['map'](_0x4bced3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4bced3,'before'),this['editor']['model']['createPositionAt'](_0x4bced3,0x0)));this['editor']['model']['change'](()=>{_0x47e147['markMultiRangeBlockFormat'](_0x4d6262,{'commandName':'listReversed','commandParams':[{'reversed':_0x46e8ce['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4db85c,_0x2acc74={}){const _0x1cf6dd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46d18c=this['_getSuggestionBlocks'](_0x467839=>_0x467839['is']('element','listItem')&&'numbered'===_0x467839['getAttribute']('listType'));if(_0x46d18c['length']<0x1)return;const _0x46a0d=_0x46d18c['map'](_0x5d9ee4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5d9ee4,'before'),this['editor']['model']['createPositionAt'](_0x5d9ee4,0x0)));this['editor']['model']['change'](()=>{_0x1cf6dd['markMultiRangeBlockFormat'](_0x46a0d,{'commandName':'listStart','commandParams':[{'startIndex':_0x2acc74['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x372d09){if('formatBlock'!=_0x372d09['type']&&'formatInline'!=_0x372d09['type'])return;const _0x2d5e9d=this['editor']['locale'],{data:_0x1d5169}=_0x372d09;if(!_0x1d5169)return;let _0x3c4d32,_0x37c49c;switch(_0x1d5169['commandName']){case'listStyle':_0x3c4d32='*Change\x20to:*\x20%0',_0x37c49c={'type':'format','content':o(_0x2d5e9d,_0x3c4d32,o(_0x2d5e9d,this['_getTranslationKeyForListStyle'](_0x1d5169['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3c4d32=_0x1d5169['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x37c49c={'type':'format','content':o(_0x2d5e9d,_0x3c4d32)};break;case'listStart':_0x3c4d32='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x37c49c={'type':'format','content':o(_0x2d5e9d,_0x3c4d32,_0x1d5169['commandParams'][0x0]['startIndex'])};}return _0x37c49c;}['_getSuggestionBlocksForListStyle'](){const _0x50b151=this['editor']['plugins']['get']('LegacyListUtils');let _0x403cb7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x403cb7[0x0]?.['is']('element','listItem')&&_0x403cb7['unshift'](..._0x50b151['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x403cb7[_0x403cb7['length']-0x1]?.['is']('element','listItem')&&_0x403cb7['push'](..._0x50b151['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x403cb7=[...new Set(_0x403cb7)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x403cb7=_0x403cb7['filter'](_0x154c2d=>_0x154c2d['is']('element','listItem'))),_0x403cb7;}['_getSuggestionBlocks'](_0x498006){const _0x7fea8a=this['editor']['plugins']['get']('LegacyListUtils');let _0x2aac1a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x498006)['map'](_0x4a7111=>{const _0x1f3870=this['editor']['model']['createPositionAt'](_0x4a7111,0x0);return[..._0x7fea8a['getSiblingNodes'](_0x1f3870,'backward'),..._0x7fea8a['getSiblingNodes'](_0x1f3870,'forward')];})['flat']();return _0x2aac1a=[...new Set(_0x2aac1a)],_0x2aac1a;}['_getTranslationKeyForListStyle'](_0x4f82ec){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4f82ec)||'default')['toUpperCase']()+'_LIST_'+_0x4f82ec['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x49b0aa{['afterInit'](){const _0x21268a=this['editor'];if(!_0x21268a['plugins']['has']('MediaEmbedEditing'))return;const _0xbb6173=_0x21268a['plugins']['get']('TrackChangesEditing'),_0xa0d231=_0x21268a['locale'];_0xbb6173['enableCommand']('mediaEmbed'),_0xbb6173['descriptionFactory']['registerElementLabel']('media',_0x3ef0bb=>o(_0xa0d231,'ELEMENT_MEDIA',_0x3ef0bb)),_0x21268a['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x378043,{writer:_0x2c7c5a,options:_0x2a51e6})=>{if(_0x2a51e6['showSuggestionHighlights'])return _0x2c7c5a['createEmptyElement']('div');},'converterPriority':'high'}),_0x21268a['data']['downcastDispatcher']['on']('attribute:url:media',(_0xc4d026,_0x25ca9c,_0x38262f)=>{_0x38262f['options']['showSuggestionHighlights']&&_0xc4d026['stop']();},{'priority':'high'});}}class gt extends _0x49b0aa{['afterInit'](){const _0x3026a3=this['editor'];_0x3026a3['plugins']['has']('MentionEditing')&&_0x3026a3['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x49b0aa{['afterInit'](){const _0x373a11=this['editor'],_0xdbffec=_0x373a11['plugins']['get']('TrackChangesEditing');_0x373a11['plugins']['has']('MultiLevelList')&&(_0xdbffec['enableDefaultAttributesIntegration']('multiLevelList'),_0xdbffec['registerBlockAttribute']('listMarkerStyle'),_0xdbffec['descriptionFactory']['registerDescriptionCallback'](_0x26e23e=>this['handleDescriptions'](_0x26e23e)));}['handleDescriptions'](_0x9dd6db){const _0x393bf1=this['editor']['locale'],{data:_0x31d3b1}=_0x9dd6db,_0x139c3f={'type':'format','content':''};if(_0x31d3b1&&'listMarkerStyle'==_0x31d3b1['key']){if(!_0x31d3b1['oldValue'])return{'type':'format','content':o(_0x393bf1,'*Set\x20format:*\x20%0',o(_0x393bf1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x31d3b1['newValue']+')'};if(!_0x31d3b1['newValue']){let _0x6eec4a=_0x9dd6db['head'];for(;_0x6eec4a;){if(_0x6eec4a['data']&&'listType'==_0x6eec4a['data']['key']&&_0x6eec4a['data']['newValue'])return _0x139c3f;_0x6eec4a=_0x6eec4a['next'];}return{'type':'format','content':o(_0x393bf1,'*Remove\x20format:*\x20%0',o(_0x393bf1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x31d3b1['oldValue']+')'};}}}}class mt extends _0x49b0aa{['afterInit'](){const _0x209ff4=this['editor'];if(!_0x209ff4['plugins']['has']('PageBreakEditing'))return;_0x209ff4['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1fcad8=_0x209ff4['plugins']['get']('TrackChangesEditing'),_0x429737=_0x209ff4['locale'];_0x1fcad8['descriptionFactory']['registerElementLabel']('pageBreak',_0x469ea4=>o(_0x429737,'ELEMENT_PAGE_BREAK',_0x469ea4));}}class dt extends _0x49b0aa{['afterInit'](){const _0x1f6233=this['editor'];if(!_0x1f6233['plugins']['has']('Paragraph'))return;const _0x581d98=_0x1f6233['locale'],_0x354de3=_0x1f6233['plugins']['get']('TrackChangesEditing');_0x354de3['descriptionFactory']['registerElementLabel']('paragraph',_0x2dfd88=>o(_0x581d98,'ELEMENT_PARAGRAPH',_0x2dfd88)),_0x354de3['enableDefaultAttributesIntegration']('paragraph'),_0x354de3['enableCommand']('insertParagraph'),_0x1f6233['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1f6233),{'priority':'highest'}),_0x1f6233['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3941c4,_0x478e00,_0x568704)=>{_0x568704['options']['showSuggestionHighlights']&&nr(_0x1f6233,{'showActiveMarker':!0x1})(_0x3941c4,_0x478e00,_0x568704);},{'priority':'highest'});const _0x4ca36b=_0x354de3['descriptionFactory'];_0x4ca36b['registerDescriptionCallback'](_0x1c984d=>{if('insertion'!==_0x1c984d['type'])return;const {start:_0x373bba,end:_0xdc7b7}=_0x1c984d['getFirstRange']();if(!_0x373bba['isTouching'](_0xdc7b7)||!_0x373bba['nodeAfter'])return;const _0x52f980=_0x1f6233['model']['schema'],_0x2ba68d=_0x373bba['nodeAfter'];return _0x52f980['isBlock'](_0x2ba68d)&&!_0x52f980['isLimit'](_0x2ba68d)&&_0x52f980['checkChild'](_0x2ba68d,'$text')?{'type':'insertion','content':o(_0x581d98,'*Insert:*\x20%0',_0x4ca36b['getItemLabel'](_0x2ba68d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x549e5b=this['editor'],_0x3c892e=_0x549e5b['locale'];_0x549e5b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5423ce=>{if('formatBlock'!=_0x5423ce['type'])return;const {data:_0x239f0c}=_0x5423ce;return _0x239f0c&&'paragraph'==_0x239f0c['commandName']?{'type':'format','content':o(_0x3c892e,'*Change\x20to:*\x20%0',o(_0x3c892e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x53ee85,{showActiveMarker:_0x3b47c0=!0x0}={}){return(_0x44d79c,_0x27c5c5,_0x43c798)=>{const _0x397768=_0x53ee85['plugins']['get']('TrackChangesEditing'),_0x2bbcf0=_0x27c5c5['markerRange']['start'],_0x5bf113=_0x27c5c5['markerRange']['end'],_0x4b4d40=_0x53ee85['model']['schema'];if(!_0x2bbcf0['isTouching'](_0x5bf113)||!_0x2bbcf0['nodeAfter'])return;const _0x45141c=_0x2bbcf0['nodeAfter'];if(_0x4b4d40['isBlock'](_0x45141c)&&!_0x4b4d40['isLimit'](_0x45141c)&&_0x4b4d40['checkChild'](_0x45141c,'$text')){if(!_0x43c798['consumable']['consume'](_0x27c5c5['markerRange'],_0x44d79c['name']))return;const _0x48ab01=_0x43c798['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x36e24b=_0x43c798['mapper']['toViewPosition'](_0x5bf113);_0x3b47c0&&_0x397768['activeMarkers']['includes'](_0x27c5c5['markerName'])&&_0x43c798['writer']['addClass']('ck-suggestion-marker--active',_0x48ab01),_0x43c798['writer']['insert'](_0x36e24b,_0x48ab01),_0x43c798['mapper']['bindElementToMarker'](_0x48ab01,_0x27c5c5['markerName']);}};}class pt extends _0x49b0aa{['afterInit'](){const _0x23ce3d=this['editor'];if(!_0x23ce3d['plugins']['has']('RemoveFormatEditing'))return;_0x23ce3d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16327c=this['editor'];_0x16327c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46780c=>{if('formatBlock'!=_0x46780c['type']&&'formatInline'!=_0x46780c['type'])return;const {data:_0x1418c4}=_0x46780c;return _0x1418c4&&'removeFormat'==_0x1418c4['commandName']?{'type':'format','content':o(_0x16327c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x49b0aa{['afterInit'](){const _0x61bf7a=this['editor'];if(!_0x61bf7a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x12eba1=_0x61bf7a['plugins']['get']('TrackChangesEditing');_0x12eba1['enableCommand']('goToPreviousRestrictedEditingException'),_0x12eba1['enableCommand']('goToNextRestrictedEditingException');const _0x3e1864=_0x61bf7a['plugins']['get']('RestrictedEditingModeEditing');_0x3e1864['enableCommand']('trackChanges'),_0x3e1864['enableCommand']('acceptSuggestion'),_0x3e1864['enableCommand']('discardSuggestion'),_0x3e1864['enableCommand']('acceptAllSuggestions'),_0x3e1864['enableCommand']('discardAllSuggestions'),_0x3e1864['enableCommand']('acceptSelectedSuggestions'),_0x3e1864['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x49b0aa{static get['requires'](){return[_0x1fde7c];}['init'](){const _0x371c15=this['editor'],_0xfe2203=_0x371c15['plugins']['get']('TrackChangesEditing');_0xfe2203['enableCommand']('shiftEnter'),_0x371c15['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x371c15),{'priority':'high'}),_0x371c15['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x371c15),{'priority':'high'}),_0x371c15['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2eaaa2,_0x4f4a01,_0x242272)=>{_0x242272['options']['showSuggestionHighlights']&&de(_0x371c15,{'showActiveMarker':!0x1})(_0x2eaaa2,_0x4f4a01,_0x242272);}),_0xfe2203['descriptionFactory']['registerElementLabel']('softBreak',_0x2d7924=>o(_0x371c15['locale'],'ELEMENT_LINE_BREAK',_0x2d7924));}}function de(_0x3b2ff4,{showActiveMarker:_0x2cf0bf=!0x0}={}){return(_0x12b272,_0x1be443,_0x3c9944)=>{const _0x23add7=_0x3b2ff4['plugins']['get']('TrackChangesEditing');if(!_0x3c9944['consumable']['test'](_0x1be443['markerRange'],_0x12b272['name']))return;const _0x4887cf=_0x3b2ff4['model'];for(const _0x579614 of _0x1be443['markerRange']['getItems']()){if(!_0x579614['is']('element','softBreak'))continue;const _0x1beaa3='deletion'==_0x1be443['markerName']['split'](':')[0x1]?'merge':'split',_0x26c138=_0x3c9944['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1beaa3}),_0x14b971=_0x3c9944['mapper']['toViewPosition'](_0x4887cf['createPositionBefore'](_0x579614));_0x2cf0bf&&_0x23add7['activeMarkers']['includes'](_0x1be443['markerName'])&&_0x3c9944['writer']['addClass']('ck-suggestion-marker--active',_0x26c138),_0x3c9944['writer']['insert'](_0x14b971,_0x26c138),_0x3c9944['mapper']['bindElementToMarker'](_0x26c138,_0x1be443['markerName']);}};}class wt extends _0x49b0aa{['afterInit'](){const _0x386639=this['editor'],_0x6dbae=_0x386639['model'],_0x1a9dea=_0x386639['locale'];if(!_0x386639['plugins']['has']('StandardEditingModeEditing'))return;const _0x5dff17=_0x386639['plugins']['get']('TrackChangesEditing'),_0x17ed9c='restrictedEditingException',_0x17de94=_0x386639['commands']['get'](_0x17ed9c);_0x5dff17['enableCommand'](_0x17ed9c,(_0xf364ba,_0x1e705f={})=>{const _0xde225=_0x6dbae['document']['selection'];if(_0xde225['isCollapsed'])return void _0xf364ba(_0x1e705f);const _0x332d57=void 0x0!==_0x1e705f['forceValue']?_0x1e705f['forceValue']:!_0x17de94['value'];_0x6dbae['change'](()=>{const _0x1274fc=Array['from'](_0xde225['getRanges']());for(const _0x285d71 of _0x1274fc){const _0x15fd80=_0x332d57?[_0x285d71]:io(_0x17ed9c,_0x285d71,_0x6dbae);for(const _0x656a53 of _0x15fd80)_0x5dff17['markInlineFormat'](_0x656a53,{'commandName':_0x17ed9c,'commandParams':[{'forceValue':_0x332d57}]});}});}),_0x5dff17['descriptionFactory']['registerDescriptionCallback'](_0x31ea5a=>{if('formatBlock'!=_0x31ea5a['type']&&'formatInline'!=_0x31ea5a['type'])return;const {data:_0x3790ad}=_0x31ea5a;return _0x3790ad&&_0x3790ad['commandName']==_0x17ed9c?_0x3790ad['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1a9dea,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1a9dea,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x49b0aa{['afterInit'](){const _0x3f21e4=this['editor'];if(!_0x3f21e4['plugins']['has']('Style')||!_0x3f21e4['plugins']['has']('DataSchema'))return;const _0x30f715=_0x3f21e4['plugins']['get']('TrackChangesEditing'),_0x5823d3=_0x3f21e4['locale'],_0x19cfc8=_0x3f21e4['config']['get']('style')||{},_0x59878c=_0x3f21e4['plugins']['get']('GeneralHtmlSupport'),_0x40b4cd=_0x3f21e4['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3f21e4['plugins']['get']('DataSchema'),_0x19cfc8['definitions']);_0x30f715['enableDefaultAttributesIntegration']('style');const _0x9dd705=new Set();for(const _0x1d1506 of _0x40b4cd['block']){const _0x1ccbc1=_0x59878c['getGhsAttributeNameForElement'](_0x1d1506['element']);_0x9dd705['add'](_0x1ccbc1);}const _0x300247=new Set();for(const _0x24f966 of _0x40b4cd['inline']){const _0x45510e=_0x59878c['getGhsAttributeNameForElement'](_0x24f966['element']);_0x300247['add'](_0x45510e);for(const _0x22fc48 of _0x24f966['ghsAttributes'])_0x300247['add'](_0x22fc48);}for(const _0x51cf81 of _0x9dd705)_0x30f715['registerBlockAttribute'](_0x51cf81),_0x30f715['descriptionFactory']['registerAttributeLabel'](_0x51cf81,o(_0x5823d3,'FORMAT_STYLE'));for(const _0x598439 of _0x300247)_0x30f715['registerInlineAttribute'](_0x598439),_0x30f715['descriptionFactory']['registerAttributeLabel'](_0x598439,o(_0x5823d3,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c9760=this['editor'],_0x128136=_0x5c9760['locale'];_0x5c9760['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35145a=>{if('formatBlock'!=_0x35145a['type']&&'formatInline'!=_0x35145a['type'])return;const {data:_0x3fcc19}=_0x35145a;return _0x3fcc19&&'style'===_0x3fcc19['commandName']?_0x3fcc19['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x128136,'*Set\x20format:*\x20%0',_0x3fcc19['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x128136,'*Remove\x20format:*\x20%0',_0x3fcc19['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x49b0aa{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2f6190){super(_0x2f6190),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x22f663=this['editor'],_0x187ad4=_0x22f663['model']['document']['selection'];if(!_0x22f663['plugins']['has']('TableEditing'))return;const _0x55bb5a=_0x22f663['locale'],_0x13535e=_0x22f663['plugins']['get']('TrackChangesEditing'),_0x248637=_0x22f663['plugins']['get']('TableUtils');_0x13535e['descriptionFactory']['registerElementLabel']('table',_0x5676bb=>o(_0x55bb5a,'ELEMENT_TABLE',_0x5676bb)),this['_setupColumnsRowsFixing'](),_0x13535e['enableCommand']('insertTable'),_0x13535e['enableCommand']('selectTableRow'),_0x13535e['enableCommand']('selectTableColumn');for(const _0x3d4616 of['insertTableRowAbove','insertTableRowBelow']){const _0x4dc6b4=_0x22f663['commands']['get'](_0x3d4616);_0x13535e['enableCommand'](_0x3d4616,_0x25a58c=>{_0x22f663['model']['change'](_0xbbe6d4=>{_0x25a58c();const _0xff1307='above'===_0x4dc6b4['order'],_0x386b9b=_0x248637['getSelectionAffectedTableCells'](_0x187ad4),_0x4d2d3b=_0x248637['getRowIndexes'](_0x386b9b),_0x40344d=_0xff1307?_0x4d2d3b['first']-0x1:_0x4d2d3b['last']+0x1,_0x4ed694=_0x386b9b[0x0]['findAncestor']('table'),_0x29bc86=_0x248637['createTableWalker'](_0x4ed694,{'startRow':_0x40344d,'endRow':_0x40344d}),_0x4e742a=Array['from'](_0x29bc86)['map'](_0x57c08f=>_0xbbe6d4['createRangeOn'](_0x57c08f['cell']));_0x13535e['markMultiRangeInsertion'](_0x4e742a,'tableRow');});});}for(const _0x25e682 of['insertTableColumnLeft','insertTableColumnRight']){const _0x13dff7=_0x22f663['commands']['get'](_0x25e682);_0x13535e['enableCommand'](_0x25e682,_0x1b841c=>{_0x22f663['model']['change'](_0x3b48b7=>{_0x1b841c();const _0x24a9d3='left'===_0x13dff7['order'],_0x148d54=_0x248637['getSelectionAffectedTableCells'](_0x187ad4),_0x595e94=_0x248637['getColumnIndexes'](_0x148d54),_0x3b9330=_0x24a9d3?_0x595e94['first']-0x1:_0x595e94['last']+0x1,_0x570d3e=_0x148d54[0x0]['findAncestor']('table'),_0x16008c=_0x248637['createTableWalker'](_0x570d3e,{'startRow':0x0,'column':_0x3b9330,'includeAllSlots':!0x1}),_0x2676cd=Array['from'](_0x16008c)['map'](_0x825d1f=>_0x3b48b7['createRangeOn'](_0x825d1f['cell']));_0x13535e['markMultiRangeInsertion'](_0x2676cd,'tableColumn');});});}for(const _0x3f445a of['removeTableRow','removeTableColumn']){const _0xc64782=_0x3f445a['substr'](0xb),_0x2849ed=_0xc64782['toLowerCase'](),_0x214da4=_0x2849ed['substr'](0x0,0x3)+'span',_0x3857f9='table'+_0xc64782,_0x199c8c='min'+_0xc64782,_0x530840='max'+_0xc64782;_0x13535e['enableCommand'](_0x3f445a,()=>{_0x22f663['model']['change'](_0x3dcc57=>{const _0x5e47b4=_0x248637['getSelectionAffectedTableCells'](_0x187ad4),_0x2b6497=_0x5e47b4[0x0]['findAncestor']('table');let _0x43e859;if('removeTableRow'==_0x3f445a){const _0x24df1d=_0x248637['getRowIndexes'](_0x5e47b4);_0x43e859={'startRow':_0x24df1d['first'],'endRow':_0x24df1d['last'],'includeAllSlots':!0x0};}else{const _0x263d87=_0x248637['getColumnIndexes'](_0x5e47b4);_0x43e859={'startColumn':_0x263d87['first'],'endColumn':_0x263d87['last'],'includeAllSlots':!0x0};}const _0x2c9fcd=_0x248637['createTableWalker'](_0x2b6497,_0x43e859),_0x32f49d=Array['from'](_0x2c9fcd)['map'](({cell:_0x2fcde5})=>_0x2fcde5),_0x21d7c5=Ee(_0x32f49d['filter'](_0x38dda9=>_0x38dda9['hasAttribute'](_0x214da4))),_0x3b994d=Ee(_0x32f49d['filter'](_0x192927=>!_0x192927['hasAttribute'](_0x214da4)))['map'](_0x460b27=>_0x3dcc57['createRangeOn'](_0x460b27)),_0x3da028=_0x13535e['markMultiRangeDeletion'](_0x3b994d,_0x3857f9);if(_0x3da028&&('tableRow'==_0x3da028['subType']||'tableColumn'==_0x3da028['subType'])){const _0x36793f=this['_getSuggestionCoords'](_0x3da028);for(const _0x49d8b8 of _0x21d7c5){const _0x106fda=_0x3dcc57['createRangeOn'](_0x49d8b8),_0x5bde6a=_0x248637['getCellLocation'](_0x49d8b8),_0x5654fe=_0x49d8b8['getAttribute'](_0x214da4)-0x1,_0x1b32b4=_0x36793f[_0x199c8c],_0x556869=_0x36793f[_0x530840];_0x1b32b4<=_0x5bde6a[_0x2849ed]&&_0x5bde6a[_0x2849ed]+_0x5654fe<=_0x556869&&_0x3da028['addRange'](_0x106fda);}}});});}function _0x2d22a8(_0x3b638a){const _0x40e1fd=Array['from'](_0x187ad4['getRanges']())['map'](_0x1f0009=>_0x2e3ae0['fromRange'](_0x1f0009));_0x22f663['model']['change'](_0x2e1723=>{const _0x5bd7f1=_0x2e1723['batch'];_0x3b638a=_0x3b638a['filter'](_0x2d7413=>'$graveyard'!=_0x2d7413['root']['rootName']),_0x2e1723['setSelection'](_0x3b638a),_0x22f663['commands']['get']('removeTableRow')['refresh'](),_0x22f663['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x22f663['model']['enqueueChange'](()=>{_0x22f663['model']['enqueueChange'](_0x5bd7f1,_0x7c64bf=>{const _0x133b51=_0x40e1fd['filter'](_0x46bf05=>'$graveyard'!=_0x46bf05['root']['rootName']);_0x133b51['length']>0x0&&_0x7c64bf['setSelection'](_0x133b51);for(const _0x594394 of _0x40e1fd)_0x594394['detach']();});});});}function _0xf46085(_0x541a8f){_0x22f663['model']['change'](_0xabad2a=>{const _0x16ec2d=Array['from'](_0x187ad4['getRanges']())['map'](_0x57d5c4=>_0x2e3ae0['fromRange'](_0x57d5c4)),_0x28520c=[];for(const _0x3f6426 of _0x541a8f)for(const _0x1ad179 of _0x3f6426['getItems']({'shallow':!0x0}))_0x28520c['push'](_0x1ad179);for(const _0x5647ec of _0x28520c)'$graveyard'!=_0x5647ec['root']['rootName']&&(_0xabad2a['setSelection'](_0xabad2a['createPositionAt'](_0x5647ec,0x0)),_0x22f663['commands']['get']('removeTableColumn')['refresh'](),_0x22f663['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5aa012=_0x16ec2d['filter'](_0x5f2ab3=>'$graveyard'!=_0x5f2ab3['root']['rootName']);_0x5aa012['length']>0x0&&_0xabad2a['setSelection'](_0x5aa012);for(const _0x407fa7 of _0x16ec2d)_0x407fa7['detach']();});}function _0x263904(_0x5e4c0e,_0x1b3974){return _0x1b3974['every'](_0x5b4ca8=>_0x5e4c0e['some'](_0x1af11a=>_0x1af11a['end']['isEqual'](_0x5b4ca8['start'])||_0x5b4ca8['end']['isEqual'](_0x1af11a['start'])));}function _0xca36b1(_0xd0cc68,_0x22c178){return!_0xd0cc68['some'](_0x240ad9=>_0x22c178['some'](_0x5aaafb=>_0x240ad9['isIntersecting'](_0x5aaafb)))&&_0xd0cc68['some'](_0x23508f=>_0x22c178['some'](_0x44f401=>_0x23508f['end']['isTouching'](_0x44f401['start'])));}_0x22f663['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1f2fd4,_0x5269d5,_0xd08f79)=>{if(!_0xd08f79['options']['showSuggestionHighlights'])return;const _0x416ab1=_0x5269d5['item'];if(!_0x416ab1)return;const _0x56235a=_0xd08f79['mapper']['toViewElement'](_0x416ab1);function _0x4fdcd2(_0x568b82){return Array['isArray'](_0x568b82)?_0x568b82:[_0x568b82];}_0x56235a&&'tableCell'===_0x416ab1['name']&&_0x54c85e(_0x56235a,_0xd08f79['writer'],(_0x50a6d8,_0x4bc610,_0x39df57)=>_0x39df57['addClass'](_0x4fdcd2(_0x4bc610['classes']),_0x50a6d8),(_0x3cd85a,_0x1d9175,_0x11051b)=>_0x11051b['removeClass'](_0x4fdcd2(_0x1d9175['classes']),_0x3cd85a));},{'priority':'highest'}),_0x13535e['descriptionFactory']['registerDescriptionCallback'](_0x2e20fe=>{if('insertion'!=_0x2e20fe['type']&&'deletion'!=_0x2e20fe['type'])return;const _0x154028=_0x2e20fe['getContainedElement']();if(null!=_0x154028&&_0x154028['is']('element','table')){if('insertion'==_0x2e20fe['type']){const _0x55d1a3=_0x2e20fe['getItems']()['filter'](_0x3e6fe8=>_0x3e6fe8['is']('$textProxy'))['map'](_0x4adc7d=>_0x4adc7d['data']);if(_0x55d1a3['length'])return{'type':'insertion','content':o(_0x55bb5a,'*Insert:*\x20%0',o(_0x55bb5a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x55d1a3['join']('\x20')+'\x22'))};}if('deletion'==_0x2e20fe['type']){const _0x8e75ac=_0x2e20fe['getItems']()['filter'](_0x4316cc=>_0x4316cc['is']('$textProxy'))['map'](_0x22b9e3=>_0x22b9e3['data']);if(_0x8e75ac['length'])return{'type':'deletion','content':o(_0x55bb5a,'*Remove:*\x20%0',o(_0x55bb5a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x8e75ac['join']('\x20')+'\x22'))};}}}),_0x13535e['descriptionFactory']['registerDescriptionCallback'](_0x3af159=>{if('tableRow'==_0x3af159['subType']){const _0x57492c=_0x3af159['getItems']()['filter'](_0xf9f2d0=>_0xf9f2d0['is']('$textProxy'))['map'](_0xc6aeb5=>_0xc6aeb5['data']),_0x2214be=this['_getSuggestionCoords'](_0x3af159),_0x48236d=_0x2214be['maxRow']-_0x2214be['minRow']+0x1;if('insertion'==_0x3af159['type'])return _0x57492c['length']?{'type':'insertion','content':o(_0x55bb5a,'*Insert:*\x20%0',o(_0x55bb5a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x48236d,'\x22'+_0x57492c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x55bb5a,'*Insert:*\x20%0',o(_0x55bb5a,'ELEMENT_TABLE_ROW',_0x48236d))};if('deletion'==_0x3af159['type'])return _0x57492c['length']?{'type':'deletion','content':o(_0x55bb5a,'*Remove:*\x20%0',o(_0x55bb5a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x48236d,'\x22'+_0x57492c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x55bb5a,'*Remove:*\x20%0',o(_0x55bb5a,'ELEMENT_TABLE_ROW',_0x48236d))};}if('tableColumn'==_0x3af159['subType']){const _0x31429a=_0x3af159['getItems']()['filter'](_0x5237a3=>_0x5237a3['is']('$textProxy'))['map'](_0x5a315e=>_0x5a315e['data']),_0x1e2da8=this['_getSuggestionCoords'](_0x3af159),_0x191aee=_0x1e2da8['maxColumn']-_0x1e2da8['minColumn']+0x1;if('insertion'==_0x3af159['type'])return _0x31429a['length']?{'type':'insertion','content':o(_0x55bb5a,'*Insert:*\x20%0',o(_0x55bb5a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x191aee,'\x22'+_0x31429a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x55bb5a,'*Insert:*\x20%0',o(_0x55bb5a,'ELEMENT_TABLE_COLUMN',_0x191aee))};if('deletion'==_0x3af159['type'])return _0x31429a['length']?{'type':'deletion','content':o(_0x55bb5a,'*Remove:*\x20%0',o(_0x55bb5a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x191aee,'\x22'+_0x31429a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x55bb5a,'*Remove:*\x20%0',o(_0x55bb5a,'ELEMENT_TABLE_COLUMN',_0x191aee))};}}),_0x13535e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2d22a8),_0x13535e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2d22a8),_0x13535e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xf46085),_0x13535e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xf46085),_0x13535e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x263904),_0x13535e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x263904),_0x13535e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xca36b1),_0x13535e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xca36b1);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3230e5=this['editor'],_0x2aad77=_0x3230e5['model']['document']['selection'];return(_0x36e0a7,_0x545d84)=>{_0x3230e5['model']['change'](_0x5ce97d=>{const {commandName:_0x2b61a8,commandParams:_0x4fc592}=_0x545d84;let _0x1de375=_0x36e0a7[0x0]['end']['nodeBefore'];_0x4fc592&&_0x4fc592[0x0]&&!0x1===_0x4fc592[0x0]['forceValue']&&(_0x1de375=_0x36e0a7[0x0]['start']['nodeAfter']);const _0x1cc3b4=_0x5ce97d['createRangeIn'](_0x1de375);if('$graveyard'==_0x1cc3b4['root']['rootName'])return;const _0x33dbfe=Array['from'](_0x2aad77['getRanges']())['map'](_0x416b97=>_0x2e3ae0['fromRange'](_0x416b97));_0x5ce97d['setSelection'](_0x1cc3b4),_0x3230e5['commands']['get'](_0x2b61a8)['refresh'](),_0x4fc592['push']({'forceDefaultExecution':!0x0}),_0x3230e5['execute'](_0x2b61a8,..._0x4fc592);const _0x2f84ce=_0x33dbfe['filter'](_0x6cbda3=>'$graveyard'!=_0x6cbda3['root']['rootName']);_0x2f84ce['length']>0x0&&_0x5ce97d['setSelection'](_0x2f84ce);for(const _0x1b4d47 of _0x33dbfe)_0x1b4d47['detach']();});};}['_getCoordsForCells'](_0x32a73f){const _0x234144=this['editor']['plugins']['get']('TableUtils');let _0x18d498=Number['MAX_SAFE_INTEGER'],_0x3b7674=Number['MIN_SAFE_INTEGER'],_0x531631=Number['MAX_SAFE_INTEGER'],_0x1029e7=Number['MIN_SAFE_INTEGER'];for(const _0x399ec6 of _0x32a73f){if('$graveyard'==_0x399ec6['root']['rootName'])continue;const {row:_0x4c7249,column:_0x382e95}=_0x234144['getCellLocation'](_0x399ec6),_0x7c52f=_0x399ec6['hasAttribute']('rowspan')?_0x399ec6['getAttribute']('rowspan')-0x1:0x0,_0xd73e21=_0x399ec6['hasAttribute']('colspan')?_0x399ec6['getAttribute']('colspan')-0x1:0x0;_0x18d498=_0x4c7249<_0x18d498?_0x4c7249:_0x18d498,_0x3b7674=_0x4c7249+_0x7c52f>_0x3b7674?_0x4c7249+_0x7c52f:_0x3b7674,_0x531631=_0x382e95<_0x531631?_0x382e95:_0x531631,_0x1029e7=_0x382e95+_0xd73e21>_0x1029e7?_0x382e95+_0xd73e21:_0x1029e7;}return{'minRow':_0x18d498,'maxRow':_0x3b7674,'minColumn':_0x531631,'maxColumn':_0x1029e7};}['_setupColumnsRowsFixing'](){const _0x1c52b6=this['editor'],_0x345f3b=_0x1c52b6['plugins']['get']('TrackChangesEditing'),_0x37f45d=_0x1c52b6['plugins']['get']('TableUtils');_0x1c52b6['model']['document']['on']('change:data',()=>{const _0x51284=Array['from'](_0x1c52b6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xf81cc,data:_0x42a2a6}of _0x51284){const {group:_0x33a31f,id:_0x1ef4b6,subType:_0x4300fa}=_0x345f3b['_splitMarkerName'](_0xf81cc);if('suggestion'!=_0x33a31f)continue;if(null!=_0x42a2a6['oldRange'])continue;const _0x59217=_0x345f3b['getSuggestion'](_0x1ef4b6);this['_tablePostFixingSubtypes']['includes'](_0x4300fa)&&this['_tableSuggestions']['add'](_0x59217);}},{'priority':'low'});const _0x54f60c=(_0xb7d924,_0xe10dd5)=>{let _0x3d3f46=!0x1;const _0x1450d1=_0xe10dd5['createRangeOn'](_0xb7d924),_0x3f0836=_0xb7d924['findAncestor']('table'),_0x277a99=_0x37f45d['getCellLocation'](_0xb7d924);for(const _0x49eee1 of this['_tableSuggestions']){const _0x422b76=_0x49eee1['subType'],_0x4558a2=_0x422b76['startsWith']('tablePaste'),_0x5417a0=_0x422b76['substr'](_0x4558a2?0xa:0x5),_0x51e80d=_0x5417a0['toLowerCase'](),_0x560ef7=_0x51e80d['substr'](0x0,0x3)+'span',_0x859db4='min'+_0x5417a0,_0x2ca909='max'+_0x5417a0;if(!_0x49eee1['isInContent'])continue;if(_0x3f0836!=_0x49eee1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x49eee1['isIntersectingWithRange'](_0x1450d1))continue;const _0x3d12df=_0xb7d924['hasAttribute'](_0x560ef7)?_0xb7d924['getAttribute'](_0x560ef7)-0x1:0x0,_0x1f93c6=this['_getSuggestionCoords'](_0x49eee1),_0x1beb49=_0x1f93c6[_0x859db4],_0x42f9d2=_0x1f93c6[_0x2ca909];_0x1beb49<=_0x277a99[_0x51e80d]&&_0x277a99[_0x51e80d]+_0x3d12df<=_0x42f9d2&&(_0x49eee1['addRange'](_0x1450d1),_0x3d3f46=!0x0);}return _0x3d3f46;};_0x1c52b6['model']['document']['registerPostFixer'](_0x348af8=>{let _0x202c76=!0x1;for(const _0xe80c07 of _0x1c52b6['model']['document']['differ']['getChanges']())if('insert'==_0xe80c07['type']){if('tableRow'==_0xe80c07['name']){for(const _0x4801ed of _0xe80c07['position']['nodeAfter']['getChildren']())_0x202c76=_0x202c76||_0x54f60c(_0x4801ed,_0x348af8);}else'tableCell'==_0xe80c07['name']&&(_0x202c76=_0x202c76||_0x54f60c(_0xe80c07['position']['nodeAfter'],_0x348af8));}return _0x202c76;});}['_getSuggestionCoords'](_0x4bcfdc){return this['_getCoordsForCells'](_0x4bcfdc['getRanges']()['map'](_0x1c1efd=>_0x1c1efd['start']['nodeAfter']));}}function Ee(_0x3194cc){return Array['from'](new Set(_0x3194cc)['values']());}class St extends _0x49b0aa{static get['requires'](){return[jt];}['afterInit'](){const _0x40ca3d=this['editor'],_0xb7bdae=_0x40ca3d['model']['document']['selection'],_0x327e5b=_0x40ca3d['locale'];if(!_0x40ca3d['plugins']['has']('TableEditing'))return;const _0x45dffc=_0x40ca3d['plugins']['get']('TrackChangesEditing'),_0x15d01f=_0x40ca3d['plugins']['get']('TableUtils'),_0x3533fa=_0x40ca3d['plugins']['get'](jt);_0x3533fa['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x45dffc['enableCommand']('mergeTableCells',()=>{const _0x501b82=_0x15d01f['getSelectionAffectedTableCells'](_0x40ca3d['model']['document']['selection']);_0x40ca3d['model']['change'](()=>{_0x45dffc['markMultiRangeBlockFormat'](_0x501b82,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x40ca3d['commands']['get']('mergeTableCells')['on']('execute',(_0x32e16d,_0x133a0d)=>{_0x40ca3d['commands']['get']('trackChanges')['value']&&(_0x133a0d['length']>0x0&&_0x133a0d[_0x133a0d['length']-0x1]&&_0x133a0d[_0x133a0d['length']-0x1]['forceDefaultExecution']||_0x45dffc['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x32e16d['stop']());},{'priority':'highest'});for(const _0x333cd5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3afe13=_0x40ca3d['commands']['get'](_0x333cd5);_0x45dffc['enableCommand'](_0x333cd5,()=>{const _0x2397c6=_0x40ca3d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x102fdb=>_0x102fdb['is']('element','tableCell')),_0x417c1d=_0x3afe13['value'];_0x40ca3d['model']['change'](()=>{_0x45dffc['markMultiRangeBlockFormat']([_0x2397c6,_0x417c1d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x37acc7 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x112661=_0x40ca3d['commands']['get'](_0x37acc7);_0x45dffc['enableCommand'](_0x37acc7,()=>{const _0x2db390=_0x15d01f['getSelectionAffectedTableCells'](_0x40ca3d['model']['document']['selection'])[0x0],_0x5bbdfa=_0x2db390['findAncestor']('table'),{column:_0x2a2ff3,row:_0x1ca3b8}=_0x15d01f['getCellLocation'](_0x2db390);let _0x488f49=[];if('horizontally'==_0x112661['direction']){const _0x455e79=_0x15d01f['createTableWalker'](_0x5bbdfa,{'startRow':_0x1ca3b8,'endRow':_0x1ca3b8,'includeAllSlots':!0x0});_0x488f49=Array['from'](_0x455e79)['map'](_0x151c65=>_0x151c65['cell']);}else{const _0x341ab2=_0x15d01f['createTableWalker'](_0x5bbdfa,{'column':_0x2a2ff3,'includeAllSlots':!0x0});_0x488f49=Array['from'](_0x341ab2)['map'](_0x40af02=>_0x40af02['cell']);}_0x40ca3d['model']['change'](_0x2e1757=>{_0x45dffc['markBlockFormat'](_0x2e1757['createRangeOn'](_0x2db390),{'commandName':_0x37acc7,'commandParams':[]},_0x488f49,_0x37acc7);});});}_0x45dffc['descriptionFactory']['registerDescriptionCallback'](_0x192fc9=>{if('formatBlock'!=_0x192fc9['type']&&'formatInline'!=_0x192fc9['type'])return;const {data:_0xc46e59}=_0x192fc9;return _0xc46e59&&'mergeTableCells'==_0xc46e59['commandName']?{'type':'format','content':o(_0x327e5b,'*Merge\x20cells*')}:void 0x0;}),_0x45dffc['descriptionFactory']['registerDescriptionCallback'](_0x186e6c=>{if('formatBlock'!=_0x186e6c['type']&&'formatInline'!=_0x186e6c['type'])return;const {data:_0x3ed6f9}=_0x186e6c;return _0x3ed6f9?'splitTableCellVertically'==_0x3ed6f9['commandName']?{'type':'format','content':o(_0x327e5b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3ed6f9['commandName']?{'type':'format','content':o(_0x327e5b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x81b282=_0x3533fa['_acceptFormatSuggestionCallbackFactory']();for(const _0x9bf4d5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x45dffc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x9bf4d5,'accept',_0x81b282);for(const _0x17bd6d of['splitTableCellVertically','splitTableCellHorizontally'])_0x45dffc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x17bd6d,'accept',_0x81b282);_0x45dffc['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x15038e=>{_0x40ca3d['model']['change'](_0x54cd37=>{const _0x502a06=Array['from'](_0xb7bdae['getRanges']())['map'](_0x5994ba=>_0x2e3ae0['fromRange'](_0x5994ba));_0x54cd37['setSelection'](_0x15038e),_0x40ca3d['commands']['get']('mergeTableCells')['refresh'](),_0x40ca3d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x45ade1=_0x502a06['filter'](_0x776815=>'$graveyard'!=_0x776815['root']['rootName']);_0x45ade1['length']>0x0&&_0x54cd37['setSelection'](_0x45ade1);for(const _0x42dddc of _0x502a06)_0x42dddc['detach']();});});for(const _0x5d4987 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2a5faa=_0x40ca3d['commands']['get'](_0x5d4987);_0x2a5faa['on']('set:isEnabled',(_0x53b9f4,_0xc2783e,_0x1ac494)=>{if(_0x1ac494){const _0x558db3=_0x40ca3d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x54856e=>_0x54856e['is']('element','tableCell'));this['_areMergableCells'](_0x2a5faa['value'],_0x558db3)||(_0x53b9f4['return']=!0x1,_0x53b9f4['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1dec00=this['editor']['commands']['get']('mergeTableCells'),_0x54cb05=this['editor']['plugins']['get']('TableUtils');if(!_0x1dec00['isEnabled'])return!0x1;const _0x3fd8c4=_0x54cb05['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0xfd499d of _0x3fd8c4)for(const _0x4e1c45 of _0x3fd8c4)if(_0xfd499d!=_0x4e1c45&&!this['_areMergableCells'](_0xfd499d,_0x4e1c45))return!0x1;return!0x0;}['_areMergableCells'](_0x318f86,_0x498b61){const _0x287a51=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b3d9c=this['editor']['model']['createRangeOn'](_0x318f86),_0x15eff9=this['editor']['model']['createRangeOn'](_0x498b61),_0x39f0ed=new Set(),_0x2419a9=new Set();for(const _0x241c18 of _0x287a51['getSuggestions']())if(('insertion'==_0x241c18['type']||'deletion'==_0x241c18['type']||'mergeTableCells'==_0x241c18['subType'])&&_0x241c18['isInContent']){for(const _0x122ea1 of _0x241c18['getRanges']())_0x122ea1['containsRange'](_0x5b3d9c,!0x0)&&_0x39f0ed['add'](_0x241c18['type']+':'+_0x241c18['author']['id']),_0x122ea1['containsRange'](_0x15eff9,!0x0)&&_0x2419a9['add'](_0x241c18['type']+':'+_0x241c18['author']['id']);}if(_0x39f0ed['size']!=_0x2419a9['size'])return!0x1;for(const _0x36a3a2 of _0x39f0ed)if(!_0x2419a9['has'](_0x36a3a2))return!0x1;return!0x0;}}class At extends _0x49b0aa{static get['requires'](){return[jt];}['afterInit'](){const _0x5d2218=this['editor'];if(!_0x5d2218['plugins']['has']('TableEditing'))return;const _0x376765=_0x5d2218['locale'],_0x4d3931=_0x5d2218['plugins']['get']('TrackChangesEditing');_0x4d3931['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4d3931['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4d3931['registerBlockAttribute']('headingRows'),_0x4d3931['registerBlockAttribute']('headingColumns'),_0x4d3931['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x376765,'FORMAT_HEADER_ROW')),_0x4d3931['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x376765,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1ba056=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45ec1a=this['editor']['plugins']['get']('TableUtils'),_0xbcaef3=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x2c47ed({showActiveMarker:_0x3e980c=!0x0,setDataAttribute:_0x56ecf4=!0x0}={}){return(_0x3556b5,_0x2df955,_0x4390f9)=>{const {type:_0x4c9fd2,id:_0x4b637a}=_0x1ba056['_splitMarkerName'](_0x2df955['markerName']),_0x32c4ea=_0x1ba056['getSuggestion'](_0x4b637a),_0x3f152d=_0x32c4ea['data'];if('formatBlock'!=_0x32c4ea['type']||!_0x3f152d||'setTableColumnHeader'!=_0x3f152d['commandName'])return;if(_0x2df955['item'])return void _0x3556b5['stop']();if(!_0x4390f9['consumable']['consume'](_0x2df955['markerRange'],_0x3556b5['name']))return;const _0x37e55e=_0x2df955['markerRange']['start']['nodeAfter'],_0x5a8a13=_0x2df955['markerRange']['end']['nodeBefore'],_0x5e29da=_0x37e55e['parent']['parent'],{column:_0x31c7e4}=_0x45ec1a['getCellLocation'](_0x37e55e),{column:_0x258309}=_0x45ec1a['getCellLocation'](_0x5a8a13);for(let _0x1896c1=_0x31c7e4;_0x1896c1<=_0x258309;_0x1896c1++){const _0x3f83c7=_0x45ec1a['createTableWalker'](_0x5e29da,{'column':_0x1896c1,'includeAllSlots':!0x1});for(const _0x4e250b of _0x3f83c7){const _0x518cae=_0x4e250b['cell'],_0x23e792=_0x4390f9['mapper']['toViewElement'](_0x518cae);_0x4390f9['writer']['addClass']('ck-suggestion-marker-'+_0x4c9fd2,_0x23e792),_0x56ecf4&&_0x4390f9['writer']['setAttribute']('data-suggestion',_0x4b637a,_0x23e792),_0x4390f9['mapper']['bindElementToMarker'](_0x23e792,_0x2df955['markerName']),_0x3e980c&&(_0x1ba056['activeMarkers']['includes'](_0x2df955['markerName'])?_0x4390f9['writer']['addClass']('ck-suggestion-marker--active',_0x23e792):_0x4390f9['writer']['removeClass']('ck-suggestion-marker--active',_0x23e792));}}};}_0x1ba056['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xbcaef3),_0x1ba056['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xbcaef3),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2c47ed(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2bb87c,_0x439df7,_0x2a48df)=>{_0x2a48df['options']['showSuggestionHighlights']&&_0x2c47ed({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2bb87c,_0x439df7,_0x2a48df);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1ad99c,_0x41188c,_0x45f266)=>{const {type:_0x233fa9,id:_0x59d2fe}=_0x1ba056['_splitMarkerName'](_0x41188c['markerName']),_0x3194a8=_0x1ba056['getSuggestion'](_0x59d2fe),_0x532d5d=_0x3194a8['data'];if('formatBlock'!=_0x3194a8['type']||!_0x532d5d||'setTableColumnHeader'!=_0x532d5d['commandName'])return;const _0x42bd0d=_0x45f266['mapper']['markerNameToElements'](_0x41188c['markerName']);if(_0x42bd0d){for(const _0x5d4349 of _0x42bd0d)_0x45f266['writer']['removeClass']('ck-suggestion-marker-'+_0x233fa9,_0x5d4349),_0x45f266['writer']['removeClass']('ck-suggestion-marker--active',_0x5d4349),_0x45f266['writer']['removeAttribute']('data-suggestion',_0x5d4349),_0x45f266['mapper']['unbindElementFromMarkerName'](_0x5d4349,_0x41188c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e34fe=this['editor'],_0x296c61=_0x1e34fe['locale'];function _0x305c1f(_0xa9cb01){return{'type':'format','content':o(_0x296c61,'*Format:*\x20%0',_0xa9cb01)};}_0x1e34fe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33ff8d=>{if('formatBlock'!=_0x33ff8d['type'])return;const {data:_0x565ab0}=_0x33ff8d;if(_0x565ab0){if('setTableRowHeader'==_0x565ab0['commandName']){const _0x394817=_0x565ab0['commandParams'][0x0]['forceValue'];return _0x305c1f(o(_0x296c61,_0x394817?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x565ab0['commandName']){const _0xe9997c=_0x565ab0['commandParams'][0x0]['forceValue'];return _0x305c1f(o(_0x296c61,_0xe9997c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x546d97=>[_0x546d97,null]));class It extends _0x49b0aa{static get['requires'](){return[jt];}['afterInit'](){const _0x20d8ba=this['editor'];if(!_0x20d8ba['plugins']['has']('TableClipboard'))return;const _0x17d128=_0x20d8ba['plugins']['get']('TrackChangesEditing'),_0x8c0aef=_0x20d8ba['plugins']['get']('TableUtils'),_0x46d4fb=_0x20d8ba['plugins']['get'](jt),_0x55716a=_0x20d8ba['plugins']['get']('TableClipboard');_0x46d4fb['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x20d8ba['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x20d8ba['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2a307f=null;_0x20d8ba['model']['on']('insertContent',(_0x15fd7f,_0x202528)=>{const [_0x14b4e1,_0x22ab6d]=_0x202528,_0xfdd53b=_0x202528[_0x202528['length']-0x1];_0xfdd53b&&_0xfdd53b['forceDefaultExecution']||_0x17d128['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x168173,_0x39123b,_0x1ef0a1,_0xfb9f6,_0x34b720){if(_0x39123b&&!_0x39123b['is']('documentSelection'))return!0x1;const _0x353873=_0x34b720['getTableIfOnlyTableInContent'](_0x168173,_0x1ef0a1);if(!_0x353873||!he(_0x353873,void 0x0,_0xfb9f6))return!0x1;const _0x1cb12f=_0xfb9f6['getSelectionAffectedTableCells'](_0x1ef0a1['document']['selection']);if(!_0x1cb12f['length'])return!0x1;const _0x3bdf96=_0x1cb12f[0x0]['findAncestor']('table'),_0x474ecc=_0xfb9f6['getRowIndexes'](_0x1cb12f),_0x24565d=_0xfb9f6['getColumnIndexes'](_0x1cb12f),_0x124956={'startRow':_0x474ecc['first'],'endRow':_0x474ecc['last'],'startColumn':_0x24565d['first'],'endColumn':_0x24565d['last']};return 0x1==_0x1cb12f['length']&&(_0x124956['endRow']+=_0xfb9f6['getRows'](_0x353873)-0x1,_0x124956['endColumn']+=_0xfb9f6['getColumns'](_0x353873)-0x1),he(_0x3bdf96,_0x124956,_0xfb9f6);}(_0x14b4e1,_0x22ab6d,_0x20d8ba['model'],_0x8c0aef,_0x55716a)&&(_0x15fd7f['stop'](),_0x2a307f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x20d8ba['model']['change'](()=>{_0x20d8ba['model']['insertContent'](_0x202528[0x0],_0x202528[0x1],_0x202528[0x2],{'forceDefaultExecution':!0x0});const _0x55efec=_0x1b9482(),{rowInsertionRanges:_0x22e62a,columnInsertionRanges:_0x2c71d2,insertionRanges:_0x532c6f,deletionRanges:_0x1a4eac,cells:_0x5596d7}=_0x2a307f;_0x22e62a['length']&&_0x17d128['markMultiRangeInsertion'](_0x22e62a,'tablePasteRow',{'tablePasteChainId':_0x55efec}),_0x2c71d2['length']&&_0x17d128['markMultiRangeInsertion'](_0x2c71d2,'tablePasteColumn',{'tablePasteChainId':_0x55efec}),_0x532c6f['length']&&(_0x17d128['markMultiRangeInsertion'](_0x532c6f,'tablePaste',{'tablePasteChainId':_0x55efec,'skipNestingCheck':!0x0}),_0x532c6f['forEach'](_0x13e59b=>_0x13e59b['detach']?.())),_0x1a4eac['length']&&(_0x17d128['markMultiRangeDeletion'](_0x1a4eac,'tablePaste',{'tablePasteChainId':_0x55efec,'skipNestingCheck':!0x0}),_0x1a4eac['forEach'](_0x1ce4e2=>_0x1ce4e2['detach']?.()));const _0x199942=_0x17d128['markMultiRangeBlockFormat'](_0x5596d7['map'](({element:_0x4df47c})=>_0x4df47c),{'formatGroupId':_0x1b9482()},[],'tablePasteCell',{'tablePasteChainId':_0x55efec});if(_0x199942){const _0x163906=_0x199942['getMarkers'](),_0x594684=[];for(const {element:_0x4247f4,attributes:_0x5c9e36}of _0x5596d7){if(!_0x5c9e36)continue;const _0x26f07e=_0x20d8ba['model']['createRangeOn'](_0x4247f4),_0x3a4f7d=_0x163906['find'](_0x1b73fa=>_0x1b73fa['getRange']()['isEqual'](_0x26f07e));_0x3a4f7d&&_0x594684['push']([_0x3a4f7d['name'],_0x5c9e36]);}_0x594684['length']&&_0x199942['setAttribute']('markerAttributes',Object['fromEntries'](_0x594684));}_0x2a307f=null;}));},{'priority':_0x244536['high']+0xa}),_0x20d8ba['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2cf8a9,_0x52e11a)=>{const [_0x3025f8,_0x1ac367,,_0x4e706a]=_0x52e11a;if(!_0x2a307f)return;_0x2cf8a9['stop']();const _0xc91b4b=_0x3025f8['cell'],_0xf0f1a5=_0x1ac367,_0x1755af=Pe(_0xc91b4b),_0x278eec=Pe(_0xf0f1a5);_0x2cf8a9['return']=_0xc91b4b;let _0x5dc6cb=null,_0x4f5339=null;if(_0x278eec||_0x1755af){if(_0x1755af&&!_0x278eec){_0x4e706a['remove'](_0xc91b4b['getChild'](0x0));for(const _0x3e96bd of Array['from'](_0xf0f1a5['getChildren']()))_0x4e706a['insert'](_0x3e96bd,_0xc91b4b,'end');const _0x1451bd=_0x2a307f['rowInsertionIndexes']['includes'](_0x3025f8['row']),_0x2a6d90=_0x2a307f['columnInsertionIndexes']['includes'](_0x3025f8['column']);_0x1451bd||_0x2a6d90||(_0x5dc6cb=_0x2e3ae0['fromRange'](_0x4e706a['createRangeIn'](_0xc91b4b)));}else _0x278eec&&!_0x1755af&&(_0x4f5339=_0x4e706a['createRangeIn'](_0xc91b4b));}else{const _0xa475fc=_0x4e706a['createElement']('tableCellSuggestion'),_0x195fa5=_0x4e706a['createElement']('tableCellSuggestion');_0x4e706a['wrap'](_0x4e706a['createRangeIn'](_0xc91b4b),_0x195fa5),_0x4e706a['insert'](_0xa475fc,_0xc91b4b,0x0);for(const _0x235eb3 of Array['from'](_0xf0f1a5['getChildren']()))_0x4e706a['insert'](_0x235eb3,_0xa475fc,'end');_0x5dc6cb=_0x2e3ae0['fromRange'](_0x4e706a['createRangeOn'](_0xa475fc)),_0x4f5339=_0x2e3ae0['fromRange'](_0x4e706a['createRangeOn'](_0x195fa5));}const _0x26ab83=Array['from'](_0xf0f1a5['getAttributes']())['filter'](([_0x1c153f])=>ge['includes'](_0x1c153f));_0x2a307f['cells']['push']({'element':_0xc91b4b,'attributes':_0x26ab83['length']?Object['fromEntries'](_0x26ab83):null}),_0x5dc6cb&&_0x2a307f['insertionRanges']['push'](_0x5dc6cb),_0x4f5339&&_0x2a307f['deletionRanges']['push'](_0x4f5339);},{'priority':'high'}),_0x8c0aef['on']('insertColumns',(_0x4861f0,_0x4055b2)=>{const [_0x379d3c,_0x242ee1={}]=_0x4055b2;if(!_0x2a307f)return;const _0x5a2f3e=_0x242ee1['at']||0x0,_0x1c4d15=_0x242ee1['columns']||0x1;_0x2a307f['columnInsertionIndexes']=new Array(_0x1c4d15)['fill'](_0x5a2f3e)['map']((_0x5c4fdb,_0x57acdb)=>_0x5c4fdb+_0x57acdb);for(const {cell:_0x36e8c6}of _0x8c0aef['createTableWalker'](_0x379d3c,{'startColumn':_0x5a2f3e,'endColumn':_0x5a2f3e+_0x1c4d15-0x1}))_0x2a307f['columnInsertionRanges']['push'](_0x20d8ba['model']['createRangeOn'](_0x36e8c6));},{'priority':'low'}),_0x8c0aef['on']('insertRows',(_0x1f00ee,_0x2cd2b1)=>{const [_0x520df2,_0x299e80={}]=_0x2cd2b1;if(!_0x2a307f)return;const _0x398876=_0x299e80['at']||0x0,_0x148e6b=_0x299e80['rows']||0x1;_0x2a307f['rowInsertionIndexes']=new Array(_0x148e6b)['fill'](_0x398876)['map']((_0x21cd3d,_0x1014d4)=>_0x21cd3d+_0x1014d4);for(const {cell:_0x1141a2}of _0x8c0aef['createTableWalker'](_0x520df2,{'startRow':_0x398876,'endRow':_0x398876+_0x148e6b-0x1}))_0x2a307f['rowInsertionRanges']['push'](_0x20d8ba['model']['createRangeOn'](_0x1141a2));},{'priority':'low'}),_0x17d128['descriptionFactory']['registerDescriptionCallback'](_0x87458a=>{if(_0x87458a['subType']&&_0x87458a['subType']['startsWith']('tablePaste'))return _0x87458a['previous']?{}:{'type':'insertion','content':o(_0x20d8ba['locale'],'*Replace\x20table\x20cells*')};});const _0x4e7f69=()=>!0x1;for(const _0x191c6a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x17d128['_suggestionFactory']['registerCustomCallback']('insertion',_0x191c6a,'join',_0x4e7f69),_0x17d128['_suggestionFactory']['registerCustomCallback']('deletion',_0x191c6a,'join',_0x4e7f69),_0x17d128['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x191c6a,'join',_0x4e7f69);_0x17d128['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4e7f69),_0x17d128['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x345ace,_0x47e633,_0x3c2fb2)=>{const _0x1be2d5=_0x345ace['map'](_0x4789c0=>_0x4789c0['getContainedElement']())['filter'](_0x1aa0c2=>_0x1aa0c2),_0x46e53d=new Map(_0x1be2d5['map'](_0xe5464b=>[_0xe5464b,null]));if(_0x2a307f){for(const {element:_0x81523c,attributes:_0x3a693e}of _0x2a307f['cells'])_0x3a693e&&_0x46e53d['set'](_0x81523c,_0x3a693e);}else{if(_0x3c2fb2&&_0x3c2fb2['markerAttributes'])for(const [_0x26a1be,_0x520ccf]of Object['entries'](_0x3c2fb2['markerAttributes'])){const _0x24010b=_0x20d8ba['model']['markers']['get'](_0x26a1be),_0x56b2c7=_0x24010b?_0x24010b['getRange']()['getContainedElement']():null;_0x56b2c7&&_0x46e53d['set'](_0x56b2c7,_0x520ccf);}}_0x20d8ba['model']['change'](_0x219b8a=>{for(const [_0x5bd0ba,_0x4216e9]of _0x46e53d)_0x219b8a['setAttributes']({...Ce,..._0x4216e9},_0x5bd0ba);});});const _0x43ef31=(_0x2b2e11,_0x33a99c)=>{_0x17d128['_suggestionFactory']['registerCustomCallback'](_0x2b2e11,'tablePaste',_0x33a99c,(_0xa8647b,_0x182151,_0xbd37b3)=>{_0x20d8ba['model']['change'](_0x42f53f=>{const _0x2f32f1=[];for(const _0x5aaf1c of _0xa8647b){const _0xf6dff8=_0x5aaf1c['start']['nodeAfter'];_0xf6dff8['is']('element','tableCellSuggestion')&&_0x2f32f1['push'](_0xf6dff8);}_0x17d128['_suggestionFactory']['getSuggestionCallback'](_0x2b2e11,null,_0x33a99c)(_0xa8647b,_0x182151,_0xbd37b3);for(const _0x2e7640 of _0x2f32f1)'$graveyard'!=_0x2e7640['root']['rootName']&&_0x42f53f['unwrap'](_0x2e7640);});});};_0x43ef31('insertion','accept'),_0x43ef31('insertion','discard'),_0x43ef31('deletion','accept'),_0x43ef31('deletion','discard'),_0x17d128['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4dd2fe=>{const _0x43919b=_0x4dd2fe['map'](_0x4c3b97=>_0x4c3b97['getContainedElement']()),_0xe7eb03=_0x43919b[0x0]['findAncestor']('table'),{minRow:_0x1a8135,maxRow:_0x310d71}=_0x46d4fb['_getCoordsForCells'](_0x43919b);_0x8c0aef['removeRows'](_0xe7eb03,{'at':_0x1a8135,'rows':_0x310d71-_0x1a8135+0x1});}),_0x17d128['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x11d2a6=>{const _0x228c21=_0x11d2a6['map'](_0x43a1b2=>_0x43a1b2['getContainedElement']()),_0x592df9=_0x228c21[0x0]['findAncestor']('table'),{minColumn:_0x12dc86,maxColumn:_0x82a511}=_0x46d4fb['_getCoordsForCells'](_0x228c21);_0x8c0aef['removeColumns'](_0x592df9,{'at':_0x12dc86,'columns':_0x82a511-_0x12dc86+0x1});});const _0x2fdb35=(_0x282e84,_0x29c89a)=>{if(!_0x29c89a['subType']||!_0x29c89a['subType']['startsWith']('tablePaste'))return;const _0x1b598c=_0x29c89a['attributes']['tablePasteChainId'],_0x380a34=_0x17d128['getSuggestions']()['filter'](_0x21e93b=>_0x21e93b['isInContent']&&_0x21e93b['attributes']&&_0x21e93b['attributes']['tablePasteChainId']==_0x1b598c);_0x380a34['length']&&_0x29c89a['getAllAdjacentSuggestions']()['length']!=_0x380a34['length']&&_0x380a34['reduce']((_0x1f0a94,_0x2d91ec)=>(_0x1f0a94['next']=_0x2d91ec,_0x2d91ec['previous']=_0x1f0a94,_0x2d91ec));};function _0x227d71(_0x5b8e62,_0x4437b0=!0x0){const {id:_0x45462f}=_0x17d128['_splitMarkerName'](_0x5b8e62['markerName']),_0x528614=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1a38be=_0x17d128['activeMarkers']['includes'](_0x5b8e62['markerName']);return _0x1a38be&&_0x528614['push']('ck-suggestion-marker--active'),{'classes':_0x528614,'attributes':{'data-suggestion':_0x45462f},'priority':_0x1a38be&&_0x4437b0?0xbc2:0xbb8};}_0x17d128['on']('suggestionLoaded',_0x2fdb35,{'priority':'high'}),_0x17d128['on']('suggestionUnloaded',_0x2fdb35,{'priority':'high'}),_0x20d8ba['model']['document']['registerPostFixer'](()=>{let _0x3b9a7c=!0x1;const _0x362683=Array['from'](_0x20d8ba['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x47bc10,data:_0x2db0aa}of _0x362683){const {group:_0x134a0c,type:_0x390d71,id:_0x4224e1}=_0x17d128['_splitMarkerName'](_0x47bc10);if('suggestion'!=_0x134a0c||'deletion'!=_0x390d71||_0x2db0aa['oldRange'])continue;if(!_0x17d128['hasSuggestion'](_0x4224e1))continue;const _0x45a330=_0x17d128['getSuggestion'](_0x4224e1)['getRanges'](),_0x5b5c46=_0x20d8ba['plugins']['get']('Users')['me'];for(const _0xed924d of _0x17d128['getSuggestions']()){if(!_0xed924d['isInContent']||_0xed924d['author']!=_0x5b5c46)continue;if('formatBlock'!=_0xed924d['type']||'tablePasteCell'!=_0xed924d['subType'])continue;if(_0xed924d['getRanges']()['every'](_0xb1e200=>_0x45a330['some'](_0x4a0f74=>_0x4a0f74['containsRange'](_0xb1e200,!0x0)))){for(const _0x144750 of _0xed924d['getAllAdjacentSuggestions']())_0x144750['isInContent']&&(_0x144750['discard'](),_0x3b9a7c=!0x0);}}}return _0x3b9a7c;}),_0x20d8ba['model']['document']['registerPostFixer'](_0xec7987=>{const _0x5c4054=_0x20d8ba['commands']['get']('redo');if(!_0x5c4054||!_0x5c4054['_createdBatches']['has'](_0xec7987['batch']))return!0x1;let _0x578206=!0x1;const _0x52cd2c=_0x20d8ba['plugins']['get']('Users')['me'],_0x8b4548=_0x20d8ba['model']['document']['differ']['getChanges'](),_0x41e519=Array['from'](_0x20d8ba['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5ddc5d,data:_0x3eb4ad})=>{const {group:_0x3da586,subType:_0x7c22b4,authorId:_0x489227}=_0x17d128['_splitMarkerName'](_0x5ddc5d);return'suggestion'==_0x3da586&&'tablePaste'==_0x7c22b4&&_0x489227==_0x52cd2c['id']&&!_0x3eb4ad['oldRange'];});for(const _0x7b4681 of _0x8b4548){if('insert'!=_0x7b4681['type']||'tableCellSuggestion'!=_0x7b4681['name']||0x1!=_0x7b4681['length'])continue;const _0x42b390=_0xec7987['createRange'](_0x7b4681['position'],_0x7b4681['position']['getShiftedBy'](0x1));if(!_0x41e519['find'](({data:_0x21003d})=>_0x21003d['newRange']['isEqual'](_0x42b390))){for(const {name:_0x283f00,data:_0x5aeaeb}of _0x41e519)if(_0x42b390['containsRange'](_0x5aeaeb['newRange'])){_0xec7987['updateMarker'](_0x283f00,{'range':_0x42b390}),_0x578206=!0x0;break;}}}return _0x578206;}),_0x20d8ba['model']['document']['registerPostFixer'](_0x270924=>{let _0x4be8f9=!0x1;const _0x43757a=_0x20d8ba['plugins']['get']('Users')['me'],_0x3f0721=_0x17d128['getSuggestions']()['filter'](_0x40ad7d=>_0x40ad7d['isInContent']&&_0x40ad7d['author']==_0x43757a),_0x2f8942=new Set(),_0x13f9c8=new Set();for(const _0x1dc612 of _0x3f0721)if('tablePaste'==_0x1dc612['subType'])for(const _0x194ae9 of _0x1dc612['getMarkers']()){const _0x5ad613=_0x194ae9['getRange']()['getContainedElement']();if(_0x5ad613){if(_0x5ad613['is']('element','tableCellSuggestion')&&Pe(_0x5ad613)){_0x1dc612['removeMarker'](_0x194ae9['name']),_0x2f8942['add'](_0x5ad613),_0x4be8f9=!0x0;const _0x54c525=_0x5ad613['nextSibling'],_0x392f9a=_0x5ad613['previousSibling'],_0x31acce=_0x54c525&&_0x54c525['is']('element','tableCellSuggestion'),_0x10af57=_0x392f9a&&_0x392f9a['is']('element','tableCellSuggestion');_0x31acce&&!_0x2f8942['has'](_0x54c525)&&_0x13f9c8['add'](_0x54c525),_0x10af57&&!_0x2f8942['has'](_0x392f9a)&&_0x13f9c8['add'](_0x392f9a);}else _0x5ad613['is']('element','paragraph')&&_0x5ad613['isEmpty']&&(_0x1dc612['removeMarker'](_0x194ae9['name']),_0x4be8f9=!0x0);}}else{if('tablePasteCell'==_0x1dc612['subType']){if(!_0x1dc612['attributes']||!_0x1dc612['attributes']['tablePasteChainId'])continue;const _0x72ae88=_0x1dc612['attributes']['markerAttributes'];if(_0x72ae88&&Object['keys'](_0x72ae88)['length'])continue;const _0x16b0ef=_0x1dc612['attributes']['tablePasteChainId'];let _0x22e764=!0x0,_0x1aee0f=!0x0;for(const _0x379ead of _0x3f0721)if(_0x379ead['subType']&&_0x379ead['subType']['startsWith']('tablePaste')){if(!_0x379ead['attributes']['tablePasteChainId']){_0x1aee0f=!0x1;break;}if(_0x379ead['id']!=_0x1dc612['id']&&_0x379ead['attributes']['tablePasteChainId']==_0x16b0ef){_0x22e764=!0x1;break;}}_0x1aee0f&&_0x22e764&&(_0x1dc612['removeMarkers'](),_0x4be8f9=!0x0);}}for(const _0x37ed6d of _0x2f8942)_0x270924['remove'](_0x37ed6d);for(const _0x27117b of _0x13f9c8)_0x270924['unwrap'](_0x27117b);return _0x4be8f9;}),_0x20d8ba['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5271cc,_0x2e3f29)=>_0x227d71(_0x5271cc),'converterPriority':'high'}),_0x20d8ba['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5c5a62,_0x42e264)=>_0x42e264['options']['showSuggestionHighlights']?_0x227d71(_0x5c5a62,!0x1):null,'converterPriority':'high'});const _0x4af39a=_0x20d8ba['editing']['view'];this['listenTo'](_0x4af39a['document'],'clipboardOutput',(_0x37294c,_0x2bfda8)=>{const _0x5337b0=[];for(const _0x2a7167 of _0x4af39a['createRangeIn'](_0x2bfda8['content'])['getItems']())_0x2a7167['is']('element','suggestion-td')&&_0x5337b0['push'](_0x2a7167);_0x4af39a['change'](_0x298d1a=>{for(const _0x33a6c7 of _0x5337b0)_0x298d1a['move'](_0x298d1a['createRangeIn'](_0x33a6c7),_0x298d1a['createPositionBefore'](_0x33a6c7)),_0x298d1a['remove'](_0x33a6c7);});});}}function Pe(_0x547387){if(_0x547387['isEmpty'])return!0x0;const _0x10e6c4=_0x547387['getChild'](0x0);return _0x10e6c4['is']('element','paragraph')&&_0x10e6c4['isEmpty'];}function he(_0x57b58a,_0x16fbd2={},_0x3577b7){for(const {isAnchor:_0x52e9f5,cellHeight:_0x2f98f5,cellWidth:_0x4f3260}of _0x3577b7['createTableWalker'](_0x57b58a,{'includeAllSlots':!0x0,..._0x16fbd2}))if(!_0x52e9f5||0x1!=_0x2f98f5||0x1!=_0x4f3260)return!0x1;return!0x0;}class vt extends _0x49b0aa{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xbd453=this['editor']['plugins']['get']('TrackChangesEditing');_0xbd453['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xbd453['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xbd453['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xbd453['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xbd453['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xbd453['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x13b3fd,_0x45ce84){const _0x2817ee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42c795=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x458504=_0x45ce84['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xa2794b=_0x42c795['getColumnGroupElement'](_0x458504);let _0x235c87=_0xa2794b?_0x42c795['getTableColumnsWidths'](_0xa2794b):null,_0x5dca8e=_0x458504['getAttribute']('tableWidth')||null;const _0x5a93c2=_0x45ce84['tableWidth']||_0x5dca8e,_0xe9a940=_0x45ce84['columnWidths']||_0x235c87,_0x48c3fd=this['editor']['plugins']['get']('Users')['me'];for(const _0x171195 of _0x2817ee['getSuggestions']()){const _0xa3ae72=_0x171195['getContainedElement']();if('resizeTable'===_0x171195['subType']&&_0xa3ae72===_0x458504){_0x171195['author']!==_0x48c3fd&&_0x171195['discard']();const _0x61c518=_0x171195['data']['commandParams'];_0x5dca8e=_0x61c518[0x0]['tableWidth'],_0x235c87=_0x61c518[0x0]['columnWidths'];break;}}_0x13b3fd({'table':_0x458504,'tableWidth':_0x5a93c2,'columnWidths':_0xe9a940}),_0x2817ee['markBlockFormat'](_0x458504,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5dca8e,'columnWidths':_0x235c87}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4463e2){if('formatBlock'!=_0x4463e2['type']&&'formatInline'!=_0x4463e2['type'])return;const {data:_0x502405}=_0x4463e2;if(_0x502405&&'resizeTable'===_0x502405['formatGroupId']){const _0x4c4483='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4c4483)};}}}class Ct extends _0x49b0aa{['afterInit'](){const _0x5025c3=this['editor'];_0x5025c3['plugins']['has']('Template')&&_0x5025c3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x49b0aa{['afterInit'](){const _0x31392d=this['editor'];if(!_0x31392d['commands']['get']('insertTableOfContents'))return;_0x31392d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1b8bce=_0x31392d['plugins']['get']('TrackChangesEditing'),_0x5280ed=_0x31392d['locale'];_0x1b8bce['descriptionFactory']['registerElementLabel']('tableOfContents',_0xa623d0=>o(_0x5280ed,'ELEMENT_TABLE_OF_CONTENTS',_0xa623d0));}}class Dt extends _0x49b0aa{['afterInit'](){const _0x52c22f=this['editor'];if(!_0x52c22f['plugins']['has']('Title'))return;const _0x26fe0f=_0x52c22f['plugins']['get']('TrackChangesEditing');_0x26fe0f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x52c22f['locale'],'ELEMENT_TITLE')),_0x52c22f['model']['document']['registerPostFixer'](_0xc28e95=>{let _0x36786a=!0x1;const _0x50544b=Array['from'](_0x52c22f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4455f7,data:_0x153163}of _0x50544b){const {group:_0x8c5cf6}=_0x26fe0f['_splitMarkerName'](_0x4455f7);if('suggestion'!==_0x8c5cf6||!_0x153163['newRange'])continue;const _0x5e56d3=_0x153163['newRange'],_0x1ebcef=_0x5e56d3['end']['nodeBefore'];if(!_0x1ebcef||!_0x1ebcef['is']('element','title-content'))continue;if(!_0x5e56d3['start']['isTouching'](_0x5e56d3['end']))continue;const _0x653cf6=_0x52c22f['model']['schema']['getNearestSelectionRange'](_0x5e56d3['end'],'forward');if(_0x653cf6&&_0x653cf6['isCollapsed']){const _0x579729=_0xc28e95['createRange'](_0x5e56d3['start'],_0x653cf6['start']);_0x579729['isEqual'](_0x5e56d3)||(_0xc28e95['updateMarker'](_0x4455f7,{'range':_0x579729}),_0x36786a=!0x0);}_0x36786a||(_0xc28e95['removeMarker'](_0x4455f7),_0x36786a=!0x0);}return _0x36786a;});}}class Nt extends _0x49b0aa{['afterInit'](){const _0x4299e4=this['editor'],_0x469af1=_0x4299e4['plugins']['get']('TrackChangesEditing');_0x4299e4['plugins']['has']('UndoEditing')&&(_0x469af1['enableCommand']('undo'),_0x469af1['enableCommand']('redo'));}}class Mt extends _0x49b0aa{static get['requires'](){return[jt];}['afterInit'](){const _0x197898=this['editor'];if(!_0x197898['plugins']['has']('TableCaptionEditing'))return;_0x197898['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x49b0aa{['tableProperties'];['tableCellProperties'];constructor(_0x1429e8){super(_0x1429e8),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 _0x1633e0=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x436d2e of this['tableProperties'])_0x1633e0['enableCommand'](_0x436d2e,(_0xb296e4,_0x4cc227)=>{const _0x561a7a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x436d2e,[_0x561a7a],this['tableProperties'],'tableProperties',_0xb296e4,_0x4cc227);});_0x1633e0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1633e0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1633e0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3bfbb2,_0x3b6223)=>this['handleDiscardAction'](this['tableProperties'],_0x3bfbb2,_0x3b6223)),_0x1633e0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4f1e70 of this['tableCellProperties'])_0x1633e0['enableCommand'](_0x4f1e70,(_0x2dceab,_0x43fce7)=>{const _0x1aab90=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4f1e70,_0x1aab90,this['tableCellProperties'],'tableCellProperties',_0x2dceab,_0x43fce7);});_0x1633e0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1633e0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1633e0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x11cf31,_0xf14e9c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x11cf31,_0xf14e9c)),_0x1633e0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1633e0['descriptionFactory']['registerDescriptionCallback'](_0x3f0253=>this['handleSuggestionDescription'](_0x3f0253));}['_handlePropertyChange'](_0x490192,_0x219d66,_0x1f0a98,_0x2c860c,_0x11376a,_0x4155b1){const _0x2c4669=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4155b1['batch'],()=>{for(const _0x3fdc73 of _0x219d66){if(this['_getSuggestion'](_0x3fdc73,_0x2c860c))_0x11376a(_0x4155b1);else{const _0x126826={};for(const _0xffbd9d of _0x1f0a98){const _0x543ebd=_0x3fdc73['getAttribute'](_0xffbd9d);void 0x0!==_0x543ebd&&(_0x126826[_0xffbd9d]=_0x543ebd);}_0x11376a(_0x4155b1),_0x2c4669['markBlockFormat'](_0x3fdc73,{'commandParams':[_0x126826]},[],_0x2c860c);}}});}['handleDiscardAction'](_0x59e3a7,_0x59427a,_0x37c90a){const _0xd733e0=_0x59427a[0x0]['start']['nodeAfter'],_0x11cd32=_0x37c90a['commandParams'][0x0];this['editor']['model']['change'](_0x53818a=>{for(const _0x339d77 of _0x59e3a7)void 0x0!==_0x11cd32[_0x339d77]?_0x53818a['setAttribute'](_0x339d77,_0x11cd32[_0x339d77],_0xd733e0):_0x53818a['removeAttribute'](_0x339d77,_0xd733e0);});}['handleSuggestionDescription'](_0x5a8837){if(_0x5a8837['data'])switch(_0x5a8837['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'](_0x184895,_0x5bce10){const _0x4cccbc=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4ffa18 of _0x4cccbc['getSuggestions']({'skipNotAttached':!0x0})){const _0x18211a=_0x4ffa18['getContainedElement']();if(_0x4ffa18['subType']===_0x5bce10&&_0x18211a===_0x184895)return _0x4ffa18;}return null;}}const m='$elementName';class p extends _0x49b0aa{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x23d4f0,_0x17b952,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(_0x583c3e){function _0x39b8f5(_0x33f32e){return _0x33f32e['map'](_0xe7bb1a=>String['fromCharCode'](_0xe7bb1a))['join']('');}super(_0x583c3e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x28bed4,_0x43b015,_0x17bd3d,_0x5d96dd)=>{this['_model']['change'](()=>{for(const _0x5f45cf of[..._0x5d96dd,..._0x17bd3d])this['_model']['markers']['has'](_0x5f45cf)&&_0x583c3e['editing']['reconvertMarker'](_0x5f45cf);});}),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']=_0x583c3e['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(),_0x583c3e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x583c3e['config']['get']('trackChanges.trackFormatChanges'),_0x583c3e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x583c3e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x583c3e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x39b8f5([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x39b8f5([0x34,0x30,0x34,0x38,0x31,0x32,0x31,0x36]);}['init'](){const _0x38f96e=this['editor'],_0x10c069=(_0x100c31,_0x25e403)=>{if('attribute'!=_0x100c31)return'ck-suggestion-marker-'+_0x100c31;const _0x3c70eb=_0x25e403['split']('|')[0x0];return this['_isBlockAttribute'](_0x3c70eb)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x38f96e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x55fe8e=>{const {id:_0x571c90,type:_0x21f5c3,subType:_0x319dac}=this['_splitMarkerName'](_0x55fe8e['markerName']),_0x4b3a51=['ck-suggestion-marker',_0x10c069(_0x21f5c3,_0x319dac)];let _0x108807=0xbb8;return this['activeMarkers']['includes'](_0x55fe8e['markerName'])&&(_0x4b3a51['push']('ck-suggestion-marker--active'),_0x108807=0xbc2),'deletion'==_0x21f5c3&&(_0x108807+=0x5),{'classes':_0x4b3a51,'attributes':{'data-suggestion':_0x571c90},'priority':_0x108807};}}),_0x38f96e['conversion']['for']('dataDowncast')['add'](_0xf26b84=>{_0xf26b84['on']('addMarker:suggestion',(_0x47af37,_0x4eac98,_0x33bc4b)=>{if(!_0x33bc4b['options']['showSuggestionHighlights'])return;const _0x5ae690=_0x4eac98['item'];if(!_0x5ae690)return;const _0xed5a15=_0x33bc4b['mapper']['toViewElement'](_0x5ae690);_0x38f96e['model']['schema']['isObject'](_0x5ae690)&&_0xed5a15&&!_0xed5a15['getCustomProperty']('widget')&&_0xed5a15['is']('containerElement')&&_0x2aed14(_0xed5a15,_0x33bc4b['writer']);},{'priority':'high'});}),_0x38f96e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2d276f,_0x4f496f)=>{if(!_0x4f496f['options']['showSuggestionHighlights'])return null;const {type:_0x5ed091,subType:_0x47062b}=this['_splitMarkerName'](_0x2d276f['markerName']);return{'classes':['ck-suggestion-marker',_0x10c069(_0x5ed091,_0x47062b)],'priority':0xbb8};}});const _0x331e0b=({showActiveMarkers:_0x20977a=!0x0,isAttributeSuggestion:_0x39e083=!0x1}={})=>(_0x137af4,_0x2c5fc7,_0x5b73ca)=>{if(!_0x2c5fc7['item'])return;const {id:_0x4557dc}=this['_splitMarkerName'](_0x2c5fc7['markerName']);if(_0x39e083){const _0x1390fb=this['_suggestions']['get'](_0x4557dc),_0x4c3c2d=this['_getAttributeKey'](_0x1390fb);if(!this['_isBlockAttribute'](_0x4c3c2d))return;}if(_0x2c5fc7['item']['is']('selection'))return void _0x5b73ca['consumable']['consume'](_0x2c5fc7['item'],_0x137af4['name']);const _0x4b3d86=_0x5b73ca['mapper']['toViewElement'](_0x2c5fc7['item']);if(_0x2c5fc7['item']['is']('element')&&_0x38f96e['model']['schema']['isBlock'](_0x2c5fc7['item'])&&!_0x4b3d86['getCustomProperty']('addHighlight')){_0x5b73ca['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4b3d86),_0x5b73ca['writer']['setAttribute']('data-suggestion',_0x4557dc,_0x4b3d86),_0x5b73ca['mapper']['bindElementToMarker'](_0x4b3d86,_0x2c5fc7['markerName']),_0x20977a&&(this['activeMarkers']['includes'](_0x2c5fc7['markerName'])?_0x5b73ca['writer']['addClass']('ck-suggestion-marker--active',_0x4b3d86):_0x5b73ca['writer']['removeClass']('ck-suggestion-marker--active',_0x4b3d86));for(const _0xf76dc1 of _0x38f96e['model']['createRangeIn'](_0x2c5fc7['item'])['getItems']())_0x5b73ca['consumable']['consume'](_0xf76dc1,_0x137af4['name']);_0x5b73ca['consumable']['consume'](_0x2c5fc7['item'],_0x137af4['name']);}};_0x38f96e['conversion']['for']('dataDowncast')['add'](_0x57db89=>{_0x57db89['on']('addMarker:suggestion:formatBlock',(_0x4f8db0,_0x51d89e,_0x98db2e)=>{_0x98db2e['options']['showSuggestionHighlights']&&_0x331e0b({'showActiveMarkers':!0x1})(_0x4f8db0,_0x51d89e,_0x98db2e);},{'priority':'highest'});}),_0x38f96e['conversion']['for']('dataDowncast')['add'](_0x30cc22=>{_0x30cc22['on']('addMarker:suggestion:attribute',(_0x10cbfc,_0x5d40f0,_0x3fa84f)=>{_0x3fa84f['options']['showSuggestionHighlights']&&_0x331e0b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x10cbfc,_0x5d40f0,_0x3fa84f);},{'priority':'highest'});}),_0x38f96e['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1af6c2,_0x475e5c)=>_0x475e5c['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1af6c2['substr'](0xb)}}),_0x38f96e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1748a2,{writer:_0x11161c})=>{let _0xf1b4f7='suggestion:'+_0x1748a2['getAttribute']('suggestion-type')+':'+_0x1748a2['getAttribute']('id');return _0x1748a2['getAttribute']('marker-count')&&(_0xf1b4f7+=':'+_0x1748a2['getAttribute']('marker-count')),_0x11161c['createElement']('$marker',{'data-name':_0xf1b4f7});}}),_0x38f96e['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x38f96e['conversion']['for']('editingDowncast')['add'](_0x73ce39=>{_0x73ce39['on']('addMarker:suggestion:formatBlock',_0x331e0b(),{'priority':'high'});}),_0x38f96e['conversion']['for']('editingDowncast')['add'](_0x2fa885=>{_0x2fa885['on']('addMarker:suggestion:attribute',_0x331e0b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x38f96e['conversion']['for']('editingDowncast')['add'](_0x26222f=>{_0x26222f['on']('removeMarker:suggestion:formatBlock',(_0x202306,_0x456559,_0x48de6b)=>{const _0x2f547f=_0x48de6b['mapper']['markerNameToElements'](_0x456559['markerName']);if(_0x2f547f){for(const _0x23d80e of _0x2f547f)_0x23d80e['getCustomProperty']('addHighlight')||(_0x48de6b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x23d80e),_0x48de6b['writer']['removeAttribute']('data-suggestion',_0x23d80e),_0x48de6b['mapper']['unbindElementFromMarkerName'](_0x23d80e,_0x456559['markerName']));}},{'priority':'high'});}),_0x38f96e['conversion']['for']('editingDowncast')['add'](_0x169012=>{_0x169012['on']('removeMarker:suggestion:attribute',(_0x33c47a,_0x58a3a0,_0x537347)=>{const _0x81ebe4=_0x537347['mapper']['markerNameToElements'](_0x58a3a0['markerName']);if(!_0x81ebe4)return;const {id:_0x2b7b92}=this['_splitMarkerName'](_0x58a3a0['markerName']),_0x361e04=this['_suggestions']['get'](_0x2b7b92),_0x918a82=this['_getAttributeKey'](_0x361e04);if(this['_isBlockAttribute'](_0x918a82)){for(const _0x343ab4 of _0x81ebe4)_0x343ab4['getCustomProperty']('addHighlight')||(_0x537347['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x343ab4),_0x537347['writer']['removeAttribute']('data-suggestion',_0x343ab4),_0x537347['mapper']['unbindElementFromMarkerName'](_0x343ab4,_0x58a3a0['markerName']));}},{'priority':'high'});}),_0x38f96e['model']['document']['registerPostFixer'](_0x37c954=>{let _0x5611f9=!0x1;const _0x30ddb3=Array['from'](_0x38f96e['model']['document']['differ']['getChangedMarkers']()),_0x2027b1=new Set();for(const {name:_0x296bc3,data:_0x409ef8}of _0x30ddb3){const {group:_0x33d733,type:_0x1943c7,subType:_0x1ae212,id:_0x326d07}=this['_splitMarkerName'](_0x296bc3);if('suggestion'!==_0x33d733)continue;const _0x4cf12a=this['_suggestions']['get'](_0x326d07);if(null!=_0x409ef8['newRange']){'formatInline'==_0x1943c7&&(_0x5611f9=_0x5611f9||Et(_0x409ef8['newRange'],_0x296bc3,_0x37c954,_0x38f96e['model']['schema']));const _0x2f6ed7='attribute'==_0x1943c7&&this['_isBlockAttribute'](_0x1ae212['split']('|')[0x0]);if(_0x409ef8['newRange']['isCollapsed']||'$graveyard'==_0x409ef8['newRange']['root']['rootName']||'formatBlock'==_0x1943c7&&!Ut(_0x409ef8['newRange'])||_0x2f6ed7&&!Ut(_0x409ef8['newRange'])||'deletion'==_0x1943c7&&!(!Tt(_0x431e66=_0x409ef8['newRange'])&&!function(_0x480564){return _0x480564['start']['parent']==_0x480564['end']['nodeBefore']&&_0x480564['start']['isAtEnd'];}(_0x431e66)))_0x37c954['removeMarker'](_0x296bc3),_0x5611f9=!0x0;else{if(!_0x4cf12a||!_0x4cf12a['isInContent'])continue;_0x2027b1['add'](_0x4cf12a);}}}var _0x431e66;return _0x2027b1['size']>0x0&&(_0x5611f9=!!this['_joinWithAdjacentSuggestions'](_0x2027b1)||_0x5611f9),_0x5611f9;}),_0x38f96e['model']['document']['registerPostFixer'](_0x449bd4=>{let _0x21a3fe=!0x1;for(const _0x2f5473 of _0x38f96e['model']['document']['differ']['getChanges']())if('insert'==_0x2f5473['type'])for(const _0x1a422c of this['_suggestions']['values']()){if(_0x1a422c['isMultiRange']||!_0x1a422c['isInContent'])continue;const _0x211ba1='formatBlock'==_0x1a422c['type'],_0x4a440d=this['_getAttributeKey'](_0x1a422c),_0x420931=_0x4a440d&&this['_isBlockAttribute'](_0x4a440d);if(!_0x211ba1&&!_0x420931)continue;const _0x37fadd=_0x1a422c['getFirstRange']();if(_0x37fadd['start']['parent']!=_0x37fadd['end']['parent']&&!_0x37fadd['end']['isAtEnd']){const _0x1d9e31=_0x38f96e['model']['createPositionAt'](_0x37fadd['start']['nodeAfter'],'end'),_0x482d5b=_0x38f96e['model']['createRange'](_0x37fadd['start'],_0x1d9e31);_0x449bd4['updateMarker'](_0x1a422c['getFirstMarker'](),{'range':_0x482d5b}),_0x21a3fe=!0x0;}}return _0x21a3fe;}),_0x38f96e['model']['document']['registerPostFixer'](_0xf30189=>this['_processAttributeChanges'](_0xf30189)),_0x38f96e['model']['document']['registerPostFixer'](_0x5f1468=>!_0x5f1468['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5f1468)),_0x38f96e['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x38f96e['model']['document']['on']('change:data',(_0x570d12,_0x2924dd)=>{if(!_0x2924dd['isLocal']||_0x2924dd['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4affcc=_0x38f96e['model']['document']['differ']['getChanges']();if(0x0==_0x4affcc['length'])return;const _0x257107=[],_0x82dd59=_0x4affcc['filter'](_0x62a362=>'attribute'==_0x62a362['type']),_0xfaf96d=_0x4affcc['filter'](_0x3631eb=>'insert'==_0x3631eb['type']&&'$text'!=_0x3631eb['name']);for(const _0x183ce0 of _0x82dd59)this['_isRegisteredAttribute'](_0x183ce0['attributeKey'])&&_0x257107['push']({'key':_0x183ce0['attributeKey'],'newValue':_0x183ce0['attributeNewValue'],'oldValue':_0x183ce0['attributeOldValue'],'range':Ot(_0x183ce0['range'],_0x38f96e['model'])});for(const _0x3a3fbb of _0xfaf96d){if('rename'!=_0x3a3fbb['action']&&'refresh'!=_0x3a3fbb['action'])continue;const _0x568909=Gt(_0x3a3fbb['position']['nodeAfter'],_0x38f96e['model']),_0x140e6d=_0x3a3fbb['before'];'rename'==_0x3a3fbb['action']&&_0x257107['push']({'key':m,'newValue':_0x3a3fbb['name'],'oldValue':_0x140e6d['name'],'range':_0x568909});for(const [_0x46eece,_0x1c4953]of _0x140e6d['attributes']){if(!this['_isRegisteredAttribute'](_0x46eece))continue;const _0x4a8ab7=_0x3a3fbb['attributes']['get'](_0x46eece);_0x1c4953!==_0x4a8ab7&&_0x257107['push']({'key':_0x46eece,'newValue':_0x4a8ab7,'oldValue':_0x1c4953,'range':_0x568909});}for(const [_0x10c8b4,_0x5930e0]of _0x3a3fbb['attributes'])this['_isRegisteredAttribute'](_0x10c8b4)&&(_0x140e6d['attributes']['has'](_0x10c8b4)||_0x257107['push']({'key':_0x10c8b4,'newValue':_0x5930e0,'oldValue':null,'range':_0x568909}));}0x0!=_0x257107['length']&&_0x38f96e['model']['enqueueChange'](_0x2924dd,_0x3ef9ef=>{const _0x5004ae=_0x1b9482();for(const {range:_0x57b302,key:_0x519ef2,oldValue:_0x368e6a,newValue:_0x3fcad8}of _0x257107)this['markAttributeChange'](_0x57b302,_0x519ef2,_0x368e6a,_0x3fcad8,{'groupId':_0x5004ae});this['_reduceExistingSuggestions'](_0x3ef9ef,_0x257107);});},{'priority':'lowest'}),_0x38f96e['model']['markers']['on']('update:suggestion',(_0x1f73e6,_0x309de4,_0x4334b0)=>{if(null==_0x4334b0){const {id:_0x39461f}=this['_splitMarkerName'](_0x309de4['name']),_0xe531ac=this['_suggestions']['get'](_0x39461f);_0xe531ac&&_0xe531ac['addMarkerName'](_0x309de4['name']);}}),_0x38f96e['model']['document']['on']('change:data',()=>{const _0x29ec18=Array['from'](_0x38f96e['model']['document']['differ']['getChangedMarkers']())['filter'](_0xd476e3=>'suggestion'===this['_splitMarkerName'](_0xd476e3['name'])['group']);if(0x0===_0x29ec18['length'])return;_0x29ec18['sort']((_0x309572,_0x227ae1)=>{const _0x5707e7=_0x309572['data']['oldRange'],_0x1464cd=_0x227ae1['data']['oldRange'];return null===_0x5707e7&&null===_0x1464cd?0x0:null===_0x5707e7&&null!==_0x1464cd?-0x1:null!==_0x5707e7&&null===_0x1464cd?0x1:_0x5707e7['start']['isBefore'](_0x1464cd['start'])?-0x1:0x1;});const _0x1bb245=new Set(),_0x588d39=new Set();for(const {name:_0x2c67c5,data:_0x4b8bd8}of _0x29ec18){const {id:_0xfd5a1a}=this['_splitMarkerName'](_0x2c67c5);if(null===_0x4b8bd8['oldRange']){const _0x598acb=this['_handleNewSuggestionMarker'](_0x2c67c5);_0x588d39['add'](_0x598acb);}else{const _0x1765f0=this['_suggestions']['get'](_0xfd5a1a);null!==_0x4b8bd8['newRange']||_0x1765f0['isInContent']?(_0x1bb245['add'](_0x1765f0['head']),_0x588d39['add'](_0x1765f0)):this['_removeSuggestion'](_0x1765f0);}}_0x588d39['size']>0x0&&this['_refreshSuggestionsChain'](_0x588d39);for(const _0x1f22fc of _0x1bb245)this['fire']('suggestionChanged',_0x1f22fc);}),_0x38f96e['model']['on']('applyOperation',(_0x4f0a89,_0x397d62)=>{const _0x292813=_0x397d62[0x0];if(!this['_suggestions']['size'])return;if(!_0x292813['isDocumentOperation'])return;if(_0x292813['batch']['isUndo']||!_0x292813['batch']['isLocal'])return;let _0x482140,_0x353137;switch(_0x292813['type']){case'insert':_0x482140=_0x38f96e['model']['createPositionAt'](_0x292813['position']),_0x353137=_0x482140['getShiftedBy'](_0x292813['howMany']);break;case'split':_0x482140=_0x38f96e['model']['createPositionAt'](_0x292813['splitPosition']),_0x353137=_0x38f96e['model']['createPositionAt'](_0x292813['moveTargetPosition']);break;case'move':_0x482140=_0x38f96e['model']['createPositionAt'](_0x292813['targetPosition']),_0x353137=_0x482140['getShiftedBy'](_0x292813['howMany']);break;default:return;}const _0x2c4494=_0x38f96e['model']['createRange'](_0x482140,_0x353137);_0x38f96e['model']['change'](()=>{for(const {suggestion:_0x2424d0,meta:_0x2e41f4}of this['_findSuggestions'](_0x2c4494)){if(_0x2424d0['isMultiRange'])continue;if('formatInline'==_0x2424d0['type'])continue;const _0x394735=this['_getAttributeKey'](_0x2424d0);if(_0x394735&&this['_isBlockAttribute'](_0x394735)&&'split'!=_0x292813['type'])continue;const _0x1eb829=_0x2424d0['data']&&_0x2424d0['data']['multipleBlocks'];('formatBlock'!=_0x2424d0['type']||'split'==_0x292813['type']&&!_0x1eb829)&&(_0x2e41f4['containsRangeInObject']||'insertion'==_0x2424d0['type']&&_0x2e41f4['isOwn']||_0x2424d0['getFirstRange']()['containsRange'](_0x2c4494)&&this['_breakSuggestionMarker'](_0x2424d0,_0x482140,_0x353137));}});},{'priority':'lowest'}),_0x38f96e['model']['on']('deleteContent',(_0x5d868f,_0xb9d07b)=>{const _0x1b1d99=_0xb9d07b[0x0],_0x4d9c70=_0xb9d07b[0x1];if(_0x4d9c70&&_0x4d9c70['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1b1d99['isCollapsed'])return;const _0x4049d7=_0x38f96e['model']['schema'],{start:_0x331a7f,end:_0x5c90db}=_0x1b1d99['getFirstRange'](),_0x7d61f9=_0x331a7f['nodeAfter']&&_0x4049d7['isLimit'](_0x331a7f['nodeAfter'])?null:_0x4049d7['getNearestSelectionRange'](_0x331a7f,'forward'),_0x3e67be=_0x5c90db['nodeBefore']&&_0x4049d7['isLimit'](_0x5c90db['nodeBefore'])?null:_0x4049d7['getNearestSelectionRange'](_0x5c90db,'backward'),_0x34a2c7=_0x38f96e['model']['createRange'](_0x7d61f9?_0x7d61f9['start']:_0x331a7f,_0x3e67be?_0x3e67be['end']:_0x5c90db);_0x38f96e['model']['change'](_0x3d5900=>{this['markDeletion'](_0x34a2c7);const _0xbc8bee=_0x38f96e['model']['schema']['getNearestSelectionRange'](_0x34a2c7['start']);_0x1b1d99['is']('documentSelection')?_0x3d5900['setSelection'](_0xbc8bee):_0x1b1d99['setTo'](_0xbc8bee);}),_0x5d868f['stop']();},{'priority':_0x244536['normal']+0xa}),_0x38f96e['model']['on']('insertContent',(_0x8d77a8,_0x5d8375)=>{const _0x138c9c=_0x5d8375[_0x5d8375['length']-0x1];_0x138c9c&&_0x138c9c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x38f96e['model']['change'](()=>{let _0x18d176=_0x38f96e['model']['insertContent'](_0x5d8375[0x0],_0x5d8375[0x1],_0x5d8375[0x2],{'forceDefaultExecution':!0x0});if(!_0x18d176)return;_0x8d77a8['return']=_0x18d176['clone']();const _0x5ec704=_0x18d176['end']['nodeBefore'],_0x346df1=_0x38f96e['model']['schema'];_0x5ec704&&_0x346df1['isBlock'](_0x5ec704)&&!_0x346df1['isObject'](_0x5ec704)&&(_0x18d176=_0x38f96e['model']['createRange'](_0x18d176['start'],_0x38f96e['model']['createPositionAt'](_0x5ec704,'end'))),this['markInsertion'](_0x18d176);}),_0x8d77a8['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x44e5bc=new $(_0x38f96e,this['_suggestions']);_0x38f96e['commands']['add']('acceptSuggestion',_0x44e5bc),this['enableCommand']('acceptSuggestion');const _0x1003a7=new B(_0x38f96e,this['_suggestions']);_0x38f96e['commands']['add']('discardSuggestion',_0x1003a7),this['enableCommand']('discardSuggestion'),_0x38f96e['commands']['add']('acceptAllSuggestions',new x(_0x38f96e,_0x44e5bc,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x38f96e['commands']['add']('discardAllSuggestions',new x(_0x38f96e,_0x1003a7,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x38f96e['commands']['add']('acceptSelectedSuggestions',new R(_0x38f96e,_0x44e5bc,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x38f96e['commands']['add']('discardSelectedSuggestions',new R(_0x38f96e,_0x1003a7,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xe1ef57=_0x38f96e['plugins']['get']('CommentsRepository');this['listenTo'](_0xe1ef57,'addComment',(_0x59ecc1,{threadId:_0x316783})=>{const _0x503d25=this['_suggestions']['get'](_0x316783);_0x503d25&&_0x503d25['commentThread']&&0x1===_0x503d25['commentThread']['length']&&this['_updateSuggestionData'](_0x316783,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xe1ef57,'removeComment',(_0xcd7838,{threadId:_0x4157d0})=>{const _0x265707=this['_suggestions']['get'](_0x4157d0);_0x265707&&_0x265707['commentThread']&&!_0x265707['commentThread']['length']&&this['_updateSuggestionData'](_0x4157d0,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x3ea7df){if(this['_adapter'])throw new _0x5c48d6('track-changes-adapter-already-set',this);this['_adapter']=_0x3ea7df;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x20533f=!0x1,toJSON:_0x4c5190=!0x1}={}){const _0xabe3ce=[];for(const _0x494c23 of this['_suggestions']['values']())_0x20533f&&!_0x494c23['isInContent']||_0xabe3ce['push'](_0x494c23);return _0x4c5190?_0xabe3ce['map'](_0x5bf51a=>_0x5bf51a['toJSON']()):_0xabe3ce;}['getSuggestion'](_0x43595e){const _0x387610=this['_suggestions']['get'](_0x43595e);if(!_0x387610)throw new _0x5c48d6('track-changes-suggestion-not-found',this);return _0x387610;}['hasSuggestion'](_0x4616b6){return this['_suggestions']['has'](_0x4616b6);}['addSuggestionData'](_0x2be9fa){const {authorId:_0xfbc708,id:_0x483283,attributes:_0x19dd40}=_0x2be9fa,[_0x55d559,_0xd9c666]=_0x2be9fa['type']['split'](':'),_0xd8ea93=this['_suggestions']['get'](_0x483283)||this['_createSuggestion'](_0x55d559,_0xd9c666,_0x483283,_0xfbc708,_0x19dd40);if(this['_addThreadToSuggestion'](_0xd8ea93),this['_checkSuggestionCorrectness'](_0xd8ea93,_0x55d559,_0xd9c666||null,_0xfbc708),_0xd8ea93['createdAt']=_0x2be9fa['createdAt'],_0xd8ea93['_isDataLoaded']=!0x0,_0x19dd40&&_0x19dd40['@external']){const _0x213b38=_0x19dd40['@external'],_0x1e5af0=this['_getExternalAuthor'](_0x213b38['authorName']);_0xd8ea93['authoredAt']=_0x213b38['createdAt'],_0xd8ea93['author']=_0x1e5af0,_0xd8ea93['isExternal']=!0x0;}else _0xd8ea93['authoredAt']=_0x2be9fa['createdAt'];switch(_0x2be9fa['data']&&(_0xd8ea93['data']=_0x2be9fa['data']),_0x2be9fa['attributes']&&(_0xd8ea93['attributes']=_0x2be9fa['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xd8ea93['_saved']=!0x0),this['_suggestionState']['get'](_0xd8ea93)){case'notReady':this['_suggestionState']['set'](_0xd8ea93,'dataReady');break;case'markerReady':_0xd8ea93['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xd8ea93])),this['_refreshSuggestionsChain'](new Set([_0xd8ea93])),this['_suggestionState']['set'](_0xd8ea93,'ready'),this['fire']('suggestionLoaded',_0xd8ea93)):this['_suggestionState']['set'](_0xd8ea93,'removed');}return _0xd8ea93;}['acceptSuggestion'](_0x8f1689){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xf0aa1f of _0x8f1689['getAllAdjacentSuggestions']())_0xf0aa1f['accept']();});});}['discardSuggestion'](_0x5f56d6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x39a05b of _0x5f56d6['getAllAdjacentSuggestions']())_0x39a05b['discard']();});});}['enableCommand'](_0x128a97,_0x1f2879){const _0x5ad19b=this['editor']['commands']['get'](_0x128a97);if(!_0x5ad19b)throw new _0x5c48d6('track-changes-command-not-found',this,{'commandName':_0x128a97});if(this['_enabledCommands']['has'](_0x5ad19b))throw new _0x5c48d6('track-changes-enable-command-twice',this,{'commandName':_0x128a97});this['_enabledCommands']['add'](_0x5ad19b),_0x1f2879&&_0x5ad19b['on']('execute',(_0x2ed8ae,_0x2be688)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2be688['length']>0x0&&_0x2be688[_0x2be688['length']-0x1]&&_0x2be688[_0x2be688['length']-0x1]['forceDefaultExecution']?_0x2be688['pop']():(_0x2ed8ae['return']=_0x1f2879((..._0xf2c0c0)=>_0x5ad19b['execute'](..._0xf2c0c0,{'forceDefaultExecution':!0x0}),..._0x2be688),_0x2ed8ae['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x243cfd){let _0x545a43,_0x57a582;const _0x4ddc3f=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x545a43=_0x243cfd();}catch(_0x486205){_0x57a582=_0x486205;}return _0x4ddc3f||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x57a582&&_0x5c48d6['rethrowUnexpectedError'](_0x57a582,this),_0x545a43;}['markInsertion'](_0x2512ae,_0x4b13e7=null,_0x526b7f={}){if(_0x2512ae['isCollapsed'])return null;const _0xcf4899=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4cee8a,meta:_0x4f142f}of this['_findSuggestions'](_0x2512ae,'insertion'))if(_0x4f142f['isOwn']){if(!_0x4f142f['isNextTo']){if(_0x4f142f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x4cee8a,_0x526b7f))continue;return _0x4cee8a;}if(Lt(_0x4cee8a,_0x526b7f))return _0x4cee8a;this['_breakSuggestionMarker'](_0x4cee8a,_0x2512ae['start'],_0x2512ae['end']);break;}if(_0x4b13e7==_0x4cee8a['subType']&&Lt(_0x4cee8a,_0x526b7f)){const _0x1d88dd=_0x4cee8a['getFirstRange']();return _0x1d88dd['start']['isEqual'](_0x2512ae['end'])?this['_setSuggestionRange'](_0x4cee8a,this['_model']['createRange'](_0x2512ae['start'],_0x1d88dd['end'])):this['_setSuggestionRange'](_0x4cee8a,this['_model']['createRange'](_0x1d88dd['start'],_0x2512ae['end'])),_0x4cee8a;}}const _0x17423b=_0x1b9482(),_0x54b6fb=_0xcf4899['id'],_0xf6e13a=_0x4b13e7?'insertion:'+_0x4b13e7:'insertion',_0x48d1a4=this['_setSuggestionData']({'id':_0x17423b,'type':_0xf6e13a,'createdAt':new Date(),'authorId':_0x54b6fb,'attributes':_0x526b7f});return this['_addSuggestionMarker'](_0xf6e13a,_0x17423b,_0x54b6fb,_0x2512ae),_0x48d1a4;}['markMultiRangeInsertion'](_0x5ee946,_0x25f2dd='multi',_0x216806={}){const _0x177eb0=this['editor']['plugins']['get']('Users')['me'],_0x3cd25b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x25f2dd,'join');for(const _0xcda16e of this['getSuggestions']())if(_0xcda16e['author']['id']==_0x177eb0['id']&&'insertion'==_0xcda16e['type']&&_0xcda16e['subType']==_0x25f2dd&&Lt(_0xcda16e,_0x216806)&&(_0x3cd25b(_0xcda16e['getRanges'](),_0x5ee946)||_0x3cd25b(_0x5ee946,_0xcda16e['getRanges']()))){for(const _0x99ab83 of _0x5ee946)_0xcda16e['addRange'](_0x99ab83);return _0xcda16e;}for(const {suggestion:_0x4f93ad,meta:_0x3d3554}of this['_findSuggestions'](_0x5ee946,'insertion')){if(!_0x3d3554['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3d3554['containsRangeInObject'])continue;if(!Lt(_0x4f93ad,_0x216806))continue;let _0x5163c1=!0x0;for(const _0x19e3fb of _0x4f93ad['getRanges']())for(const _0x4c8117 of _0x5ee946)if(!_0x19e3fb['containsRange'](_0x4c8117)){_0x5163c1=!0x1;break;}if(_0x5163c1)return _0x4f93ad;}const _0x5837e1=_0x1b9482(),_0x23f9b3=_0x177eb0['id'],_0x4fb8f9='insertion:'+_0x25f2dd,_0x845db1=this['_setSuggestionData']({'id':_0x5837e1,'type':_0x4fb8f9,'createdAt':new Date(),'authorId':_0x23f9b3,'attributes':_0x216806});for(const _0x20c88a of _0x5ee946)this['_addSuggestionMarker'](_0x4fb8f9,_0x5837e1,_0x23f9b3,_0x20c88a,u['getMultiRangeId']());return _0x845db1;}['markInlineFormat'](_0x5b3dc8,_0x881062,_0x5b2717=null,_0x29728b={}){if(_0x5b2717=_0x5b2717||Vt(_0x881062),_0x5b3dc8['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5331e6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5b2717,'accept');return this['forceDefaultExecution'](()=>_0x5331e6([_0x5b3dc8],_0x881062,_0x29728b)),null;}const _0x369746=this['editor']['plugins']['get']('Users')['me'],_0x741c98=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4a755b,meta:_0x7bd544}of this['_findSuggestions'](_0x5b3dc8,'insertion'))_0x7bd544['isOwn']&&!_0x7bd544['isInsideObject']&&_0x741c98['push'](..._0x4a755b['getRanges']());}const _0x475db6=function(_0x2e6997,_0x24d4fd){const _0x1b2569=[];for(const _0x482359 of _0x24d4fd){const _0x3d4666=_0x2e6997['getIntersection'](_0x482359);_0x3d4666&&_0x1b2569['push'](_0x3d4666);}return _0x1b2569;}(_0x5b3dc8,_0x741c98),_0x5f17fb=function(_0x12d0eb,_0x5084cb){const _0x3c564d=[_0x12d0eb];for(const _0x16a2d2 of _0x5084cb){let _0x3756cd=0x0;for(;_0x3756cd<_0x3c564d['length'];){const _0x445826=_0x3c564d[_0x3756cd]['getDifference'](_0x16a2d2);_0x3c564d['splice'](_0x3756cd,0x1,..._0x445826),_0x3756cd+=_0x445826['length'];}}return _0x3c564d;}(_0x5b3dc8,_0x741c98);_0x475db6['length']&&this['_model']['change'](()=>{for(const _0x1d4eef of _0x475db6){const _0x5153d1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5b2717,'accept');this['forceDefaultExecution'](()=>_0x5153d1([_0x1d4eef],_0x881062,_0x29728b));}});for(const _0x1ae5a4 of _0x5f17fb){let _0x463c1a=null,_0x22a7dd=_0x1ae5a4['start'],_0x1124af=_0x1ae5a4['end'];for(const {suggestion:_0x17938b,meta:_0x233f5e}of this['_findSuggestions'](_0x1ae5a4,'formatInline')){if(!_0x233f5e['isOwn'])continue;if(_0x17938b['subType']!=_0x5b2717)continue;if(!Lt(_0x17938b,_0x29728b))continue;const _0x33a48c=_0x17938b['getFirstRange']();if(_0x33a48c['containsRange'](_0x1ae5a4,!0x0))return null;_0x22a7dd=_0x22a7dd['isBefore'](_0x33a48c['start'])?_0x22a7dd:_0x33a48c['start'],_0x1124af=_0x1124af['isAfter'](_0x33a48c['end'])?_0x1124af:_0x33a48c['end'],_0x463c1a?_0x33a48c['start']['isBefore'](_0x463c1a['getFirstRange']()['start'])?(_0x463c1a['removeMarkers'](),_0x463c1a=_0x17938b):_0x17938b['removeMarkers']():_0x463c1a=_0x17938b;}const _0x1c9f78=this['_model']['createRange'](_0x22a7dd,_0x1124af);if(_0x463c1a)this['_setSuggestionRange'](_0x463c1a,_0x1c9f78);else{const _0x1df436=_0x1b9482(),_0x140916=_0x369746['id'];this['_setSuggestionData']({'id':_0x1df436,'type':'formatInline:'+_0x5b2717,'data':_0x881062,'createdAt':new Date(),'authorId':_0x140916,'attributes':_0x29728b}),this['_addSuggestionMarker']('formatInline:'+_0x5b2717,_0x1df436,_0x140916,_0x1c9f78);}}return null;}['markBlockFormat'](_0x221977,_0x54e9fc,_0x1873e0=[],_0x521726=null,_0x7d9337={}){_0x54e9fc['formatGroupId']||(_0x54e9fc['formatGroupId']=_0x54e9fc['commandName']),_0x54e9fc['multipleBlocks']=_0x221977['is']('range'),_0x521726=_0x521726||Vt(_0x54e9fc);const _0x1dc6a8=_0x1873e0['map'](_0x19626d=>Gt(_0x19626d,this['_model'])),_0x510bd0=_0x221977['is']('range')?_0x221977:Gt(_0x221977,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3269ea=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x521726,'accept');return this['forceDefaultExecution'](()=>_0x3269ea([_0x510bd0],_0x54e9fc,_0x7d9337)),null;}_0x1dc6a8['push'](_0x510bd0);let _0x4e6c2c=!0x0;for(const _0x21b57d of _0x1dc6a8)if(!this['_rangeIsInLocalUserInsertion'](_0x21b57d)){_0x4e6c2c=!0x1;break;}if(_0x4e6c2c&&'always'!==this['_trackFormatChanges']){const _0x442055=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x521726,'accept');return this['forceDefaultExecution'](()=>_0x442055([_0x510bd0],_0x54e9fc,_0x7d9337)),null;}let _0xd17116=null,_0x12c804=_0x510bd0['start'],_0xd269c=_0x510bd0['end'];for(const {suggestion:_0x4b7a78,meta:_0x34bd54}of this['_findSuggestions'](_0x510bd0,'formatBlock')){if(!_0x34bd54['isOwn'])continue;if(_0x34bd54['isNextTo']||_0x34bd54['containsRangeInObject']||_0x34bd54['isInsideObject'])continue;if(_0x4b7a78['data']['formatGroupId']!=_0x54e9fc['formatGroupId'])continue;if(!Lt(_0x4b7a78,_0x7d9337))continue;const _0x54fcb6=_0x4b7a78['getFirstRange']();if(_0x4b7a78['subType']==_0x521726){if(_0x54fcb6['containsRange'](_0x510bd0,!0x0))return null;_0x12c804=_0x12c804['isBefore'](_0x54fcb6['start'])?_0x12c804:_0x54fcb6['start'],_0xd269c=_0xd269c['isAfter'](_0x54fcb6['end'])?_0xd269c:_0x54fcb6['end'],_0xd17116?_0x54fcb6['start']['isBefore'](_0xd17116['getFirstRange']()['start'])?(_0xd17116['removeMarkers'](),_0xd17116=_0x4b7a78):_0x4b7a78['removeMarkers']():_0xd17116=_0x4b7a78;}else{const _0x45b3f0=_0x510bd0['getIntersection'](_0x54fcb6);this['_cutOutSuggestionMarker'](_0x4b7a78,_0x45b3f0);}}const _0x4a1cf9=this['editor']['plugins']['get']('Users')['me'],_0x1d9c1b=_0x1b9482(),_0x41e000=_0x4a1cf9['id'];if(_0xd17116)return this['_setSuggestionRange'](_0xd17116,this['_model']['createRange'](_0x12c804,_0xd269c)),_0xd17116;{const _0x170c90=this['_setSuggestionData']({'id':_0x1d9c1b,'type':'formatBlock:'+_0x521726,'data':_0x54e9fc,'createdAt':new Date(),'authorId':_0x41e000,'attributes':_0x7d9337});return this['_addSuggestionMarker']('formatBlock:'+_0x521726,_0x1d9c1b,_0x41e000,this['_model']['createRange'](_0x12c804,_0xd269c)),_0x170c90;}}['markMultiRangeBlockFormat'](_0x12c116,_0x125791,_0x4fbfcf=[],_0x5e93b8=null,_0x5c8218={}){_0x125791['formatGroupId']||(_0x125791['formatGroupId']=_0x125791['commandName']);const _0x2b170f=_0x12c116[0x0];_0x125791['multipleBlocks']=_0x2b170f['is']('range'),_0x5e93b8=_0x5e93b8||Vt(_0x125791);const _0x2e9799=_0x4fbfcf['map'](_0x4597a3=>Gt(_0x4597a3,this['_model'])),_0x3df60d=_0x2b170f['is']('range')?_0x12c116:_0x12c116['map'](_0x3c1f1a=>Gt(_0x3c1f1a,this['_model']));if('never'===this['_trackFormatChanges']){const _0xb9711b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e93b8,'accept');return this['forceDefaultExecution'](()=>_0xb9711b(_0x3df60d,_0x125791,_0x5c8218)),null;}_0x2e9799['push'](..._0x3df60d);let _0x37122c=!0x0;for(const _0x554f25 of _0x2e9799)if(!this['_rangeIsInLocalUserInsertion'](_0x554f25)){_0x37122c=!0x1;break;}if(_0x37122c&&'always'!==this['_trackFormatChanges']){const _0x5b00ad=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e93b8,'accept');return this['forceDefaultExecution'](()=>_0x5b00ad(_0x3df60d,_0x125791,_0x5c8218)),null;}const _0xbe79fc=this['editor']['plugins']['get']('Users')['me'];for(const _0x2a449f of this['getSuggestions']()){if(_0x2a449f['author']['id']!=_0xbe79fc['id'])continue;if('formatBlock'!=_0x2a449f['type']||_0x2a449f['data']['formatGroupId']!=_0x125791['formatGroupId'])continue;if(!Lt(_0x2a449f,_0x5c8218))continue;const _0x2d99f4=_0x2a449f['subType']==_0x5e93b8;for(let _0x58a2d4=0x0;_0x58a2d4<_0x3df60d['length'];_0x58a2d4++){const _0x53dbb8=_0x3df60d[_0x58a2d4];for(const _0x4236c8 of _0x2a449f['getMarkers']()){const _0x5f2244=_0x4236c8['getRange']();if(_0x53dbb8['isEqual'](_0x5f2244)){_0x2d99f4?(_0x3df60d['splice'](_0x58a2d4,0x1),_0x58a2d4--):_0x2a449f['removeMarker'](_0x4236c8['name']);break;}}}}if(0x0==_0x3df60d['length'])return null;const _0x31656f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e93b8,'join');for(const _0x13bec8 of this['getSuggestions']())if(_0x13bec8['author']['id']==_0xbe79fc['id']&&'formatBlock'==_0x13bec8['type']&&_0x13bec8['data']['formatGroupId']==_0x125791['formatGroupId']&&_0x13bec8['subType']==_0x5e93b8&&Lt(_0x13bec8,_0x5c8218)&&(_0x31656f(_0x13bec8['getRanges'](),_0x3df60d)||_0x31656f(_0x3df60d,_0x13bec8['getRanges']()))){for(const _0x5e3507 of _0x3df60d)_0x13bec8['addRange'](_0x5e3507);return _0x13bec8;}const _0x46c71a=_0x1b9482(),_0x40240a=_0xbe79fc['id'],_0x529020='formatBlock:'+_0x5e93b8,_0x2edf15=this['_setSuggestionData']({'id':_0x46c71a,'type':_0x529020,'data':_0x125791,'createdAt':new Date(),'authorId':_0x40240a,'attributes':_0x5c8218});for(const _0x46002c of _0x3df60d)this['_addSuggestionMarker'](_0x529020,_0x46c71a,_0x40240a,_0x46002c,u['getMultiRangeId']());return _0x2edf15;}['markDeletion'](_0x2c3566,_0x8e1c46=null,_0x5b99ae={}){if(_0x2c3566['isCollapsed'])return null;const _0x26a42f=this['editor']['plugins']['get']('Users')['me'],_0x107124=new _0x2e3ae0(_0x2c3566['start'],_0x2c3566['end']);for(const {suggestion:_0x36f294,meta:_0xb92129}of this['_findSuggestions'](_0x107124,'insertion'))if(_0xb92129['isOwn']&&!_0xb92129['isNextTo']){if(_0x36f294['isMultiRange']){const _0x42e62f=_0x36f294['getRanges']()['filter'](_0x387bd9=>'$graveyard'!=_0x387bd9['root']['rootName']);_0x42e62f['every'](_0x3cb807=>_0x107124['containsRange'](_0x3cb807,!0x0))&&_0x36f294['discard']();if(_0x42e62f['some'](_0x59f5eb=>_0x59f5eb['containsRange'](_0x107124,!0x0))){const _0x436606=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x8e1c46,'accept');return this['forceDefaultExecution'](()=>_0x436606([_0x107124],null,_0x5b99ae)),null;}}else{const _0x290f61=_0x107124['getIntersection'](_0x36f294['getFirstRange']());null!==_0x290f61&&_0x36f294['_onDiscard']([_0x290f61],null,_0x5b99ae);}}if(_0x107124['detach'](),_0x107124['isCollapsed']||'$graveyard'==_0x107124['root']['rootName'])return null;let _0x4f8621=null,_0x447ca3=_0x107124['start'],_0x327178=_0x107124['end'];const _0x5eaa73=this['_findSuggestions'](_0x107124,'deletion');for(const {suggestion:_0x3495b5,meta:_0x468ca4}of _0x5eaa73){const _0x34c745=this['_model']['createRange'](_0x447ca3,_0x327178);if(_0x468ca4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x468ca4['containsRangeInObject']&&!_0x468ca4['isInsideObject'])){if(_0x3495b5['isMultiRange']){if(!Lt(_0x3495b5,_0x5b99ae))continue;let _0x457c30=!0x0;for(const _0x1c73bd of _0x3495b5['getRanges']()){if(_0x1c73bd['containsRange'](_0x34c745,!0x0))return _0x3495b5;_0x34c745['containsRange'](_0x1c73bd)||(_0x457c30=!0x1);}_0x457c30&&_0x3495b5['discard']();}else{const _0x4a744c=_0x3495b5['getFirstRange']();if(_0x4a744c['containsRange'](_0x34c745,!0x0))return _0x3495b5;if(!Lt(_0x3495b5,_0x5b99ae)){_0x34c745['containsRange'](_0x4a744c)?_0x3495b5['removeMarkers']():_0x4a744c['containsPosition'](_0x447ca3)?_0x447ca3=_0x4a744c['end']:_0x4a744c['containsPosition'](_0x327178)&&(_0x327178=_0x4a744c['start']);continue;}_0x447ca3=_0x447ca3['isBefore'](_0x4a744c['start'])?_0x447ca3:_0x4a744c['start'],_0x327178=_0x327178['isAfter'](_0x4a744c['end'])?_0x327178:_0x4a744c['end'],_0x5b99ae=Object['assign']({},_0x3495b5['attributes']),_0x4f8621?_0x4a744c['start']['isBefore'](_0x4f8621['getFirstRange']()['start'])?(_0x4f8621['removeMarkers'](),_0x4f8621=_0x3495b5):_0x3495b5['removeMarkers']():_0x4f8621=_0x3495b5;}}}if(_0x4f8621)return this['_setSuggestionRange'](_0x4f8621,this['_model']['createRange'](_0x447ca3,_0x327178)),_0x4f8621;{const _0x16fb40=_0x1b9482(),_0x452b19=this['_model']['createRange'](_0x447ca3,_0x327178),_0x113e14=_0x26a42f['id'],_0x4c0b95=_0x8e1c46?'deletion:'+_0x8e1c46:'deletion',_0x4c2fb3=this['_setSuggestionData']({'id':_0x16fb40,'type':_0x4c0b95,'createdAt':new Date(),'authorId':_0x113e14,'attributes':_0x5b99ae});return this['_addSuggestionMarker'](_0x4c0b95,_0x16fb40,_0x113e14,_0x452b19),_0x4c2fb3;}}['markMultiRangeDeletion'](_0x1bde23,_0x5c54b6='multi',_0x8d5074={}){const _0xb05f91=this['editor']['plugins']['get']('Users')['me'],_0x849677=_0x1bde23['map'](_0x7e76f3=>new _0x2e3ae0(_0x7e76f3['start'],_0x7e76f3['end'])),_0x1e48b2=new Set();for(const {suggestion:_0x3886b4,meta:_0x2699c5}of this['_findSuggestions'](_0x849677,'insertion'))_0x2699c5['isOwn']&&!_0x2699c5['isNextTo']&&_0x1e48b2['add'](_0x3886b4);for(const _0x32265a of _0x1e48b2)if(_0x32265a['isMultiRange']){const _0x505394=_0x32265a['getRanges']();(!_0x32265a['attributes']||!_0x32265a['attributes']['skipNestingCheck'])&&(_0x505394['every'](_0x5ed1c4=>_0x849677['some'](_0x11996b=>_0x11996b['containsRange'](_0x5ed1c4,!0x0)))&&_0x32265a['discard']());if(_0x849677['every'](_0x2c5630=>_0x505394['some'](_0x495011=>_0x495011['containsRange'](_0x2c5630,!0x0)))){const _0x28a803=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c54b6,'accept');return this['forceDefaultExecution'](()=>_0x28a803(_0x1bde23,null,_0x8d5074)),null;}}else{const _0x59af75=_0x32265a['getFirstRange']();_0x849677['some'](_0x175eb0=>_0x175eb0['containsRange'](_0x59af75,!0x0))&&_0x32265a['discard']();if(_0x849677['every'](_0x31d8e0=>_0x59af75['containsRange'](_0x31d8e0,!0x0))){const _0xa0a614=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c54b6,'accept');return this['forceDefaultExecution'](()=>_0xa0a614(_0x849677,null,_0x8d5074)),null;}}const _0x4e439c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c54b6,'join');let _0x3e0c0a=null;for(const _0x44dce7 of this['getSuggestions']())if(_0x44dce7['author']['id']==_0xb05f91['id']&&_0x44dce7['isInContent']&&'deletion'==_0x44dce7['type']&&_0x44dce7['subType']==_0x5c54b6&&Lt(_0x44dce7,_0x8d5074)&&(_0x4e439c(_0x44dce7['getRanges'](),_0x849677)||_0x4e439c(_0x849677,_0x44dce7['getRanges']()))){if(_0x3e0c0a){if(_0x44dce7['commentThread']&&_0x44dce7['commentThread']['length'])continue;for(const _0x24cf1e of _0x44dce7['getRanges']())_0x3e0c0a['isIntersectingWithRange'](_0x24cf1e)||_0x3e0c0a['addRange'](_0x24cf1e);_0x44dce7['removeMarkers']();}else{_0x3e0c0a=_0x44dce7;for(const _0x466228 of _0x849677)_0x44dce7['isIntersectingWithRange'](_0x466228)||_0x44dce7['addRange'](_0x466228);}}if(_0x3e0c0a)return _0x3e0c0a;_0x1e48b2['clear']();for(const {suggestion:_0x173a45,meta:_0x5d41e3}of this['_findSuggestions'](_0x849677,'deletion'))_0x5d41e3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5d41e3['containsRangeInObject']&&!_0x5d41e3['isInsideObject'])&&Lt(_0x173a45,_0x8d5074)&&_0x1e48b2['add'](_0x173a45);for(const _0x6ca32a of _0x1e48b2){const _0x5673d5=_0x6ca32a['getRanges']();if(!_0x8d5074||!_0x8d5074['skipNestingCheck']){if(_0x849677['every'](_0x56483a=>_0x5673d5['some'](_0x31af91=>_0x31af91['containsRange'](_0x56483a,!0x0))))return _0x6ca32a;}(!_0x6ca32a['attributes']||!_0x6ca32a['attributes']['skipNestingCheck'])&&(_0x5673d5['every'](_0x32f874=>_0x849677['some'](_0x16972b=>_0x16972b['containsRange'](_0x32f874,!0x0)))&&_0x6ca32a['discard']());}const _0x5ccba4=_0x1b9482(),_0x26cd62=_0xb05f91['id'],_0xb0c4d0='deletion:'+_0x5c54b6,_0x292857=this['_setSuggestionData']({'id':_0x5ccba4,'type':_0xb0c4d0,'createdAt':new Date(),'authorId':_0x26cd62,'attributes':_0x8d5074});for(const _0x3d0079 of _0x849677)_0x3d0079['detach'](),_0x3d0079['isCollapsed']||'$graveyard'==_0x3d0079['root']['rootName']||this['_addSuggestionMarker'](_0xb0c4d0,_0x5ccba4,_0x26cd62,_0x3d0079,u['getMultiRangeId']());return _0x292857;}['markAttributeChange'](_0x360933,_0x3ba873,_0x2f215b,_0x3784a7,_0x11dd7){if(_0x360933['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x40a2b0=this['editor']['plugins']['get']('Users')['me']['id'],_0x131ae3=Array['from'](this['_suggestions']['values']())['filter'](_0x417579=>'attribute'==_0x417579['type']&&_0x417579['data']['key']==_0x3ba873&&_0x417579['isIntersectingWithRange'](_0x360933));if('default'===this['_trackFormatChanges']){const _0x45989a=this['_findSuggestions'](_0x360933,'insertion')['filter'](({meta:_0x5c15f3})=>_0x5c15f3['isOwn']&&!_0x5c15f3['isInsideObject']&&!_0x5c15f3['isNextTo'])['map'](({suggestion:_0x31f2fc})=>_0x31f2fc);_0x131ae3['unshift'](..._0x45989a);}const _0x2e609f=new Map([[_0x360933,_0x2f215b]]);for(const _0x1f34cd of _0x131ae3){const _0xe4fc03='attribute'==_0x1f34cd['type']?_0x1f34cd['data']['oldValue']:void 0x0,_0x19e451=_0x1f34cd['getFirstRange'](),_0x42703e=Array['from'](_0x2e609f['keys']())['find'](_0x5ce62f=>_0x5ce62f['isIntersecting'](_0x19e451));if(!_0x42703e)continue;const _0x4f35ca=_0x42703e['getDifference'](_0x19e451);this['_isBlockAttribute'](_0x3ba873)&&'insertion'==_0x1f34cd['type']&&0x0!=_0x4f35ca['length']||(_0x2e609f['delete'](_0x42703e),_0x4f35ca['forEach'](_0x3008fd=>{_0x2e609f['set'](_0x3008fd,_0x2f215b);}),'insertion'!=_0x1f34cd['type']&&_0xe4fc03!=_0x3784a7&&_0x2e609f['set'](_0x42703e['getIntersection'](_0x19e451),_0xe4fc03));}const _0x5ed49e=[];for(const [_0x336abc,_0x2fd3a4]of _0x2e609f){const _0x42d0d4=_0x1b9482(),_0x269c0f={'key':_0x3ba873,'oldValue':_0x2fd3a4,'newValue':_0x3784a7};_0x3ba873['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':_0x3ba873});const _0x24baaf=('attribute:'+(_0x3ba873+'|'+Vt({'newValue':_0x3784a7})))['substring'](0x0,0x3c),_0x3e8235=this['_setSuggestionData']({'id':_0x42d0d4,'type':_0x24baaf,'data':_0x269c0f,'createdAt':new Date(),'authorId':_0x40a2b0,'attributes':_0x11dd7});_0x5ed49e['push'](_0x3e8235),this['_addSuggestionMarker'](_0x24baaf,_0x42d0d4,_0x40a2b0,_0x336abc);}return _0x5ed49e;}['enableDefaultAttributesIntegration'](_0x310b62){this['enableCommand'](_0x310b62,(_0x312593,..._0x228260)=>{this['_recordAttributeChanges'](()=>{_0x312593(..._0x228260);});});}['registerBlockAttribute'](_0x364f03){this['_blockAttributeKeys']['add'](_0x364f03);}['registerInlineAttribute'](_0x1272cd){this['_inlineAttributeKeys']['add'](_0x1272cd);}['_getAttributeKey'](_0x1d6e4c){return'attribute'==_0x1d6e4c['type']?_0x1d6e4c['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x31c1d4,_0x16c82d){const _0x322a72=_0x31c1d4['getFirstMarker']();this['_model']['change'](_0x97a9b3=>{_0x97a9b3['updateMarker'](_0x322a72,{'range':_0x16c82d});});}['_addThreadToSuggestion'](_0x39c0b0){const _0x1904e0=_0x39c0b0['id'],_0x1ee6f8=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1904e0)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1ee6f8,'threadId':_0x1904e0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xec857=this['_commentsRepository']['getCommentThread'](_0x1904e0);_0xec857['unbind']('isRemovable'),_0xec857['isRemovable']=!0x1,_0x39c0b0['commentThread']=_0xec857;}['_checkSuggestionCorrectness'](_0x38bc90,_0x4e2736,_0x22f900,_0x4f89f6){if(_0x38bc90['type']!=_0x4e2736||_0x38bc90['subType']!=_0x22f900||_0x38bc90['creator']['id']!=_0x4f89f6)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5c48d6('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x206a4e,_0x2a5e6c){const _0x17cb87=_0x206a4e['getFirstRange']();if(_0x2a5e6c['isEqual'](_0x17cb87))_0x206a4e['removeMarkers']();else{if(_0x17cb87['containsRange'](_0x2a5e6c)){const _0x4200ef=this['_model']['createPositionAt'](_0x2a5e6c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x206a4e,this['_model']['createRange'](_0x17cb87['start'],_0x4200ef));const _0xebdf6=_0x1b9482(),_0x519672=_0x206a4e['creator']['id'],_0x424f4d=_0x206a4e['type']+':'+_0x206a4e['subType'];this['_setSuggestionData']({'id':_0xebdf6,'type':_0x424f4d,'createdAt':new Date(),'authorId':_0x519672,'data':_0x206a4e['data'],'attributes':_0x206a4e['attributes']});const _0x299f5a=this['_model']['createPositionAt'](_0x2a5e6c['end']['parent'],'after'),_0x4a8ef7=this['_model']['createRange'](_0x299f5a,_0x17cb87['end']);this['_addSuggestionMarker'](_0x424f4d,_0xebdf6,_0x519672,_0x4a8ef7);}else{if(_0x17cb87['containsPosition'](_0x2a5e6c['start'])){const _0x329561=this['_model']['createPositionAt'](_0x2a5e6c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x206a4e,this['_model']['createRange'](_0x17cb87['start'],_0x329561));}else{const _0x34d4d2=this['_model']['createPositionAt'](_0x2a5e6c['end']['parent'],'after');this['_setSuggestionRange'](_0x206a4e,this['_model']['createRange'](_0x34d4d2,_0x17cb87['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x112801){for(const {suggestion:_0x44bd12,meta:_0x27618c}of this['_findSuggestions'](_0x112801,'insertion')){if(!_0x27618c['isOwn'])continue;const _0x3f6ddf=_0x44bd12['getRanges']();for(const _0x5288de of _0x3f6ddf)if(!_0x112801['getDifference'](_0x5288de)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x8be426){const _0x18baac=this['editor']['plugins']['get']('Users')['getUser'](_0x8be426);if(!_0x18baac)throw new _0x5c48d6('track-changes-user-not-found',this);return _0x18baac;}['_getExternalAuthor'](_0x375f1d){const _0x398b97=this['editor']['plugins']['get']('Users'),_0x238ab5=_0x2e0f7b('external:'+_0x375f1d),_0x27bec4=_0x398b97['getUser'](_0x238ab5);return _0x27bec4||_0x398b97['addUser']({'id':_0x238ab5,'name':_0x375f1d});}['_createSuggestion'](_0x1aa600,_0x16c43b,_0x37289f,_0x56166f,_0xf7b11d){const _0xf9c112=this['_getAuthorFromId'](_0x56166f),_0xcb734e=this['_suggestionFactory']['buildSuggestion'](_0x1aa600,_0x16c43b,_0x37289f,_0xf9c112,_0xf7b11d,_0x14f153=>{this['_updateSuggestionData'](_0x37289f,{'attributes':_0x14f153});const _0x3bef0f=this['getSuggestion'](_0x37289f);this['_joinWithAdjacentSuggestions'](new Set([_0x3bef0f])),this['_refreshSuggestionsChain'](new Set([_0x3bef0f]));});return this['listenTo'](_0xcb734e,'accept',()=>{this['_updateSuggestionData'](_0x37289f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xcb734e,'discard',()=>{this['_updateSuggestionData'](_0x37289f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x37289f,_0xcb734e),this['_suggestionState']['set'](_0xcb734e,'notReady'),_0xcb734e;}['_splitMarkerName'](_0x18a2c0){const _0x5ec086=_0x18a2c0['split'](':');return{'group':_0x5ec086[0x0],'type':_0x5ec086[0x1],'subType':_0x5ec086['length']>=0x5?_0x5ec086[0x2]:null,'id':_0x5ec086['length']<0x5?_0x5ec086[0x2]:_0x5ec086[0x3],'authorId':_0x5ec086['length']<0x5?_0x5ec086[0x3]:_0x5ec086[0x4],'markerCount':0x6==_0x5ec086['length']?_0x5ec086[0x5]:null};}['_breakSuggestionMarker'](_0x30445b,_0x2624e4,_0x29c569){const _0x4cb369=_0x30445b['getFirstRange'](),_0xb2d559=_0x4cb369['start'],_0x4c4fd2=_0x4cb369['end'];this['_setSuggestionRange'](_0x30445b,this['_model']['createRange'](_0xb2d559,_0x2624e4));const _0x50ff08=_0x1b9482(),_0x11c454=_0x30445b['creator']['id'],_0x35d236=_0x30445b['type']+(_0x30445b['subType']?':'+_0x30445b['subType']:'');this['_setSuggestionData']({'id':_0x50ff08,'type':_0x35d236,'createdAt':new Date(),'authorId':_0x11c454,'originalSuggestionId':_0x30445b['id'],'attributes':_0x30445b['attributes'],'data':_0x30445b['data']});const _0x3a82cc=this['_getAttributeKey'](_0x30445b);('formatBlock'==_0x30445b['type']||_0x3a82cc&&this['_isBlockAttribute'](_0x3a82cc))&&(_0x29c569=this['_model']['createPositionBefore'](_0x29c569['parent'])),this['_addSuggestionMarker'](_0x35d236,_0x50ff08,_0x11c454,this['_model']['createRange'](_0x29c569,_0x4c4fd2));}['_findSuggestions'](_0x51e452,_0xc39f5b=null){const _0x34ca14=[],_0x4e5f1a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x51e452)||(_0x51e452=[_0x51e452]);for(const _0x44c982 of this['getSuggestions']()){if(!_0x44c982['isInContent'])continue;if(_0xc39f5b&&_0x44c982['type']!=_0xc39f5b)continue;let _0x2e2765=!0x1;for(const _0x43aa7c of _0x44c982['getRanges']()){for(const _0x3c5807 of _0x51e452){const _0x4dd64e=_0x3c5807['start']['isEqual'](_0x43aa7c['end'])||_0x3c5807['end']['isEqual'](_0x43aa7c['start']);if(_0x4dd64e||_0x3c5807['getIntersection'](_0x43aa7c)){const _0x319849=_0x3c5807['containsRange'](_0x43aa7c)&&Rt(this['_model']['schema'],_0x43aa7c['start'],_0x3c5807),_0x32983e=_0x43aa7c['containsRange'](_0x3c5807)&&Rt(this['_model']['schema'],_0x3c5807['start'],_0x43aa7c);_0x34ca14['push']({'suggestion':_0x44c982,'meta':{'isOwn':_0x4e5f1a==_0x44c982['author'],'isNextTo':_0x4dd64e,'isInsideObject':_0x319849,'containsRangeInObject':_0x32983e}}),_0x2e2765=!0x0;break;}}if(_0x2e2765)break;}}return _0x34ca14;}['_addSuggestionMarker'](_0x3ff04f,_0x50e063,_0x45e624,_0x361dcf,_0x2cb3ea){this['_model']['change'](_0x366818=>{let _0x4675ee='suggestion:'+_0x3ff04f+':'+_0x50e063+':'+_0x45e624;_0x2cb3ea&&(_0x4675ee=_0x4675ee+':'+_0x2cb3ea),_0x366818['addMarker'](_0x4675ee,{'range':_0x361dcf,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1079c9){const _0x9c51a1=_0x1079c9['previous'],_0x2775e5=_0x1079c9['next'];_0x1079c9['previous']=null,_0x1079c9['next']=null,null!=_0x9c51a1&&_0x9c51a1['next']==_0x1079c9&&(_0x9c51a1['next']=_0x2775e5),null!=_0x2775e5&&_0x2775e5['previous']==_0x1079c9&&(_0x2775e5['previous']=_0x9c51a1),'ready'==this['_suggestionState']['get'](_0x1079c9)&&(this['_suggestionState']['set'](_0x1079c9,'removed'),this['fire']('suggestionUnloaded',_0x1079c9,_0x9c51a1,_0x2775e5));}['_setSuggestionData'](_0x5bbdd9){const _0x5de6bf=_0x5bbdd9['id'],_0x427493=this['addSuggestionData'](_0x5bbdd9);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4c5e82=this['editor']['plugins']['get']('PendingActions'),_0x379e5d=_0x427493['hasComments'],_0x542969=_0x427493['subType']?_0x427493['type']+':'+_0x427493['subType']:_0x427493['type'],_0x19e69c=this['editor']['locale'],_0x5c35db=_0x4c5e82['add'](o(_0x19e69c,'PENDING_ACTION_SUGGESTION')),_0x44f63a={'id':_0x5de6bf,'type':_0x542969,'hasComments':_0x379e5d,'data':_0x5bbdd9['data']||null,'originalSuggestionId':_0x5bbdd9['originalSuggestionId']||null,'attributes':_0x427493['attributes']};this['_adapter']['addSuggestion'](_0x44f63a)['then'](_0x4a1633=>{_0x427493['_saved']=!0x0,_0x4c5e82['remove'](_0x5c35db),_0x4a1633&&_0x4a1633['createdAt']&&(this['_suggestions']['get'](_0x5de6bf)['createdAt']=_0x4a1633['createdAt']);})['catch'](_0x25ab38=>{throw _0x1bbbe2('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x427493['discard']();}),_0x427493['stopListening'](),this['_suggestions']['delete'](_0x427493['id']),this['_suggestionState']['delete'](_0x427493),_0x25ab38;});}return _0x427493;}['_isBlockAttribute'](_0x34f01c){return this['_blockAttributeKeys']['has'](_0x34f01c);}['_updateSuggestionData'](_0x584eb5,_0x465a7e){const _0x29d733=this['editor']['plugins']['get']('PendingActions'),_0x36aa12=this['getSuggestion'](_0x584eb5);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x36aa12['_saved']){const _0x2c9faa=_0x29d733['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x584eb5,_0x465a7e)['then'](()=>{_0x29d733['remove'](_0x2c9faa);});}else _0x36aa12['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x584eb5,_0x465a7e);});}}['_getSuggestionData'](_0x1c4193){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5c48d6('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1c4193);}['_handleNewSuggestionMarker'](_0x312083){const {id:_0x5055d4,type:_0xf0d470,subType:_0x20a295,authorId:_0x143e30}=this['_splitMarkerName'](_0x312083),_0x5bd6d7=this['_suggestions']['get'](_0x5055d4)||this['_createSuggestion'](_0xf0d470,_0x20a295,_0x5055d4,_0x143e30,{});switch(this['_checkSuggestionCorrectness'](_0x5bd6d7,_0xf0d470,_0x20a295,_0x143e30),this['_suggestionState']['get'](_0x5bd6d7)){case'notReady':this['_getSuggestionData'](_0x5055d4)['then'](_0x47d116=>{let _0x58d674=Promise['resolve']();_0x47d116['hasComments']&&(_0x58d674=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5055d4})),_0x58d674['then'](()=>{this['addSuggestionData'](_0x47d116)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5bd6d7,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5055d4,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5bd6d7,'ready'),this['fire']('suggestionLoaded',_0x5bd6d7);break;case'ready':this['fire']('suggestionChanged',_0x5bd6d7);}return _0x5bd6d7['addMarkerName'](_0x312083),_0x5bd6d7;}['_refreshSuggestionsChain'](_0x26c7bd){const _0x17db26=Array['from'](_0x26c7bd),_0x1885f1=_0x17db26['filter'](_0x48b350=>'attribute'==_0x48b350['type']);this['_refreshAttributeSuggestionsChain'](_0x1885f1);const _0x551be6=_0x17db26['filter'](_0x2d9954=>!_0x2d9954['isMultiRange']&&'attribute'!=_0x2d9954['type']),_0x35f628=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1dba85=>!_0x1dba85['isMultiRange']&&'attribute'!=_0x1dba85['type']),_0x389f4e=_0x35f628['filter'](_0x335df2=>!_0x26c7bd['has'](_0x335df2)),_0x1227d9=new Map(_0x35f628['map'](_0x384ff7=>[_0x384ff7,this['_suggestionFactory']['getSuggestionCallback'](_0x384ff7['type'],_0x384ff7['subType'],'chain')])),_0x576918=new Map(_0x35f628['map'](_0xff6d13=>[_0xff6d13,_0xff6d13['getFirstRange']()])),_0x254a8d=new Set(),_0x422262=new Set();for(let _0x11a04e=0x0;_0x11a04e<_0x551be6['length'];_0x11a04e++)_0x48928e(_0x551be6[_0x11a04e],_0x551be6,_0x11a04e+0x1);for(let _0x4a2839=0x0;_0x4a2839<_0x551be6['length'];_0x4a2839++)_0x48928e(_0x551be6[_0x4a2839],_0x389f4e,0x0);const _0x3ad18a=new Set();for(let _0xaab62=0x0;_0xaab62<_0x551be6['length'];_0xaab62++){const _0x4f185d=_0x551be6[_0xaab62];!_0x422262['has'](_0x4f185d)&&_0x4f185d['previous']&&(_0x3ad18a['add'](_0x4f185d['previous']),_0x4f185d['previous']['next']===_0x4f185d&&(_0x4f185d['previous']['next']=null),_0x4f185d['previous']=null),!_0x254a8d['has'](_0x4f185d)&&_0x4f185d['next']&&(_0x3ad18a['add'](_0x4f185d['next']),_0x4f185d['next']['previous']===_0x4f185d&&(_0x4f185d['next']['previous']=null),_0x4f185d['next']=null);}function _0x48928e(_0x4cd452,_0xf2541c,_0x2fc777){for(let _0x2685a2=_0x2fc777;_0x2685a2<_0xf2541c['length'];_0x2685a2++){const _0x142fd6=_0x5b950b(_0x4cd452,_0xf2541c[_0x2685a2]);_0x142fd6&&(_0x142fd6[0x0]['next']=_0x142fd6[0x1],_0x142fd6[0x1]['previous']=_0x142fd6[0x0],_0x254a8d['add'](_0x142fd6[0x0]),_0x422262['add'](_0x142fd6[0x1]));}}function _0x5b950b(_0x282f8b,_0x28857e){if(_0x282f8b['author']['id']!==_0x28857e['author']['id'])return null;const _0x150d04=_0x1227d9['get'](_0x282f8b)(_0x282f8b,_0x28857e,_0x576918['get'](_0x282f8b),_0x576918['get'](_0x28857e));if(!_0x150d04)return null;return _0x1227d9['get'](_0x28857e)(_0x282f8b,_0x28857e,_0x576918['get'](_0x282f8b),_0x576918['get'](_0x28857e))?_0x150d04[0x1]['commentThread']&&_0x150d04[0x1]['commentThread']['length']?null:_0x150d04:null;}_0x3ad18a['size']&&this['_refreshSuggestionsChain'](_0x3ad18a);}['_refreshAttributeSuggestionsChain'](_0x25adcf){if(0x0==_0x25adcf['length'])return;const _0x5add9f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4b770e=>'attribute'==_0x4b770e['type']&&_0x4b770e['_isDataLoaded']),_0x8d3361=[],_0x2a453e=new Map();for(const _0xb14d41 of _0x5add9f){const _0x28348e=_0x2e0f7b(_0xb14d41['attributes']);_0x2a453e['has'](_0x28348e)||(_0x2a453e['set'](_0x28348e,_0x8d3361['length']),_0x8d3361['push']([]));const _0x3ed6ae=_0x2a453e['get'](_0x28348e);_0x8d3361[_0x3ed6ae]['push'](_0xb14d41);}!(function(){_0x8d3361['sort']((_0x101da4,_0x514c10)=>{const _0x48d849=_0x101da4[0x0]['createdAt'],_0xcec1ef=_0x514c10[0x0]['createdAt'];return _0x48d849==_0xcec1ef?_0x101da4[0x0]['attributes']['groupId']<_0x514c10[0x0]['attributes']['groupId']?-0x1:0x1:_0x48d849<_0xcec1ef?-0x1:0x1;});for(const _0x430935 of _0x8d3361)_0x430935['sort']((_0x724cbd,_0x8ce15f)=>_0x724cbd['id']<_0x8ce15f['id']?-0x1:0x1);}());for(let _0x58d21d=0x0;_0x58d21d<_0x8d3361['length'];_0x58d21d++){if(0x0==_0x8d3361[_0x58d21d]['length'])continue;const _0x56974a=[];for(let _0x1a6733=_0x58d21d+0x1;_0x1a6733<_0x8d3361['length'];_0x1a6733++)0x0!=_0x8d3361[_0x1a6733]['length']&&_0x53f625(_0x8d3361[_0x58d21d],_0x8d3361[_0x1a6733])&&_0x56974a['push'](_0x1a6733);for(const _0x3b9d1e of _0x56974a)_0x8d3361[_0x58d21d]=_0x8d3361[_0x58d21d]['concat'](_0x8d3361[_0x3b9d1e]),_0x8d3361[_0x3b9d1e]=[];}for(const _0x2cca91 of _0x8d3361)for(let _0x46bdfb=0x0;_0x46bdfb<_0x2cca91['length'];_0x46bdfb++)_0x2cca91[_0x46bdfb]['next']=_0x2cca91[_0x46bdfb+0x1]||null;for(const _0x58f066 of _0x8d3361)for(let _0x426040=0x0;_0x426040<_0x58f066['length'];_0x426040++)_0x58f066[_0x426040]['previous']=_0x58f066[_0x426040-0x1]||null;function _0x53f625(_0x35569b,_0x38fc63){if(_0x35569b[0x0]['attributes']['groupId']!==_0x38fc63[0x0]['attributes']['groupId']&&_0x35569b[0x0]['author']!==_0x38fc63[0x0]['author'])return!0x1;if(!function(_0x208f05,_0x13f7e4){if(!_0x208f05['hasComments']&&!_0x13f7e4['hasComments'])return!0x0;if(_0x208f05['hasComments']&&_0x13f7e4['hasComments'])return!0x1;if(_0x208f05['hasComments']&&_0x13f7e4['createdAt']<_0x208f05['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x13f7e4['hasComments']&&_0x208f05['createdAt']<_0x13f7e4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x35569b[0x0],_0x38fc63[0x0]))return!0x1;const _0x6954e=Bt(_0x35569b[0x0]['attributes'],'groupId'),_0x738e3c=Bt(_0x38fc63[0x0]['attributes'],'groupId');if(!_0x17198d(_0x6954e,_0x738e3c))return!0x1;return!!_0x35569b['every'](_0x52bcb6=>_0x38fc63['some'](_0x26be26=>_0x52bcb6['getFirstRange']()['isEqual'](_0x26be26['getFirstRange']())))&&_0x38fc63['every'](_0x1c0db5=>_0x35569b['some'](_0x96feec=>_0x1c0db5['getFirstRange']()['isEqual'](_0x96feec['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2b1770){const _0x52389b=Array['from'](_0x2b1770),_0x25662d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5916d4=_0x25662d['filter'](_0x51c2bb=>!_0x2b1770['has'](_0x51c2bb)),_0x10ff2b=new Map(_0x52389b['map'](_0x14fab8=>[_0x14fab8,this['_suggestionFactory']['getSuggestionCallback'](_0x14fab8['type'],_0x14fab8['subType'],'join')])),_0x399f9c=new Map(_0x25662d['map'](_0x11791a=>[_0x11791a,_0x11791a['getRanges']()]));for(let _0x8b8a47=0x0;_0x8b8a47<_0x52389b['length'];_0x8b8a47++){if(_0x1d6acd(this,_0x52389b[_0x8b8a47],_0x52389b,_0x8b8a47+0x1))return!0x0;}for(let _0x558d46=0x0;_0x558d46<_0x52389b['length'];_0x558d46++){if(_0x1d6acd(this,_0x52389b[_0x558d46],_0x5916d4,0x0))return!0x0;}return!0x1;function _0x1d6acd(_0x4439dc,_0x3dfd0b,_0x241272,_0x4ef290){for(let _0x43e5f7=_0x4ef290;_0x43e5f7<_0x241272['length'];_0x43e5f7++){const _0x2accb2=_0x241272[_0x43e5f7];if(_0x2accb2['type']!==_0x3dfd0b['type']||_0x2accb2['author']['id']!==_0x3dfd0b['author']['id']||_0x2accb2['subType']!==_0x3dfd0b['subType'])continue;if(!Pt(_0x3dfd0b,_0x2accb2,['groupId']))continue;if('attribute'==_0x3dfd0b['type']&&_0x3dfd0b['data']['oldValue']!=_0x2accb2['data']['oldValue'])continue;if('attribute'==_0x3dfd0b['type']&&_0x4439dc['_isBlockAttribute'](_0x3dfd0b['data']['key']))continue;if('formatBlock'==_0x3dfd0b['type']){const _0x84f04f=_0x4439dc['editor']['model'],_0x37b0ba=_0x3dfd0b['getContainedElement']();if(_0x37b0ba&&(_0x84f04f['schema']['isObject'](_0x37b0ba)||_0x84f04f['schema']['isLimit'](_0x37b0ba)))continue;}const _0x1f2113=_0x10ff2b['get'](_0x3dfd0b),_0x22d951=_0x399f9c['get'](_0x3dfd0b),_0x80a343=_0x399f9c['get'](_0x2accb2),_0x5ddcb5=_0x3dfd0b['commentThread']&&_0x3dfd0b['commentThread']['length'],_0x599d2a=_0x2accb2['commentThread']&&_0x2accb2['commentThread']['length'];if(!_0x5ddcb5&&_0x1f2113(_0x80a343,_0x22d951))return _0x4439dc['_joinSuggestions'](_0x2accb2,_0x3dfd0b),_0x399f9c['delete'](_0x3dfd0b),!0x0;if(!_0x599d2a&&_0x1f2113(_0x22d951,_0x80a343))return _0x4439dc['_joinSuggestions'](_0x3dfd0b,_0x2accb2),_0x399f9c['delete'](_0x2accb2),!0x0;}return!0x1;}}['_joinSuggestions'](_0x355498,_0x19364){if(_0x355498['isMultiRange']){for(const _0x30c083 of _0x19364['getRanges']())_0x355498['addRange'](_0x30c083);}else{const _0x4894de=_0x19364['getFirstRange']()['end'];this['_setSuggestionRange'](_0x355498,this['_model']['createRange'](_0x355498['getFirstRange']()['start'],_0x4894de));}_0x19364['removeMarkers']();}['_getMarkerAnnouncementText'](_0x30270d,_0x5022b8){const _0x3f9a7f=_0x30270d['startsWith']('format')||_0x30270d['startsWith']('attribute')?'FORMATTING':_0x30270d['toUpperCase']();return o(this['editor']['locale'],_0x5022b8+'_'+_0x3f9a7f+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x2b0bef=this['editor'];if(!_0x2b0bef['ui'])return;const {ariaLiveAnnouncer:_0x36cd4b}=_0x2b0bef['ui'];_0x349032(this['_model'],({left:_0x21b7e0,entered:_0x49d6d0})=>{for(const _0x4a7a58 of _0x21b7e0){const {group:_0x25dd43,type:_0x9093f6}=this['_splitMarkerName'](_0x4a7a58['name']);if('suggestion'===_0x25dd43){_0x36cd4b['announce'](this['_getMarkerAnnouncementText'](_0x9093f6,'LEAVE'));break;}}for(const _0xfa11b8 of _0x49d6d0){const {group:_0x2a07da,type:_0x26d268}=this['_splitMarkerName'](_0xfa11b8['name']);if('suggestion'===_0x2a07da){_0x36cd4b['announce'](this['_getMarkerAnnouncementText'](_0x26d268,'ENTER'));break;}}});}['_processAttributeChanges'](_0x5a9088){if(this['_recordAttributeSuggestions'])return!0x1;const _0x22ee5e=this['editor'],_0xcfdef=_0x22ee5e['model']['document']['differ']['getChanges']();if(0x0==_0xcfdef['length'])return!0x1;const _0x178b23=[],_0x48b924=_0xcfdef['filter'](_0x3e6e67=>'attribute'==_0x3e6e67['type']),_0x1c249e=_0xcfdef['filter'](_0x3f24a3=>'insert'==_0x3f24a3['type']&&'$text'!=_0x3f24a3['name']),_0x343d24=_0xcfdef['filter'](_0x74e479=>'remove'==_0x74e479['type']&&'$text'!=_0x74e479['name']);for(const _0x4a5460 of _0x48b924)_0x178b23['push']({'key':_0x4a5460['attributeKey'],'newValue':_0x4a5460['attributeNewValue'],'oldValue':_0x4a5460['attributeOldValue'],'range':Ot(_0x4a5460['range'],_0x22ee5e['model'])});for(const _0x3db154 of _0x1c249e){const _0x1ba76b=_0x343d24['find'](_0x178251=>_0x178251['position']['isEqual'](_0x3db154['position']));_0x1ba76b&&_0x178b23['push']({'key':m,'newValue':_0x3db154['name'],'oldValue':_0x1ba76b['name'],'range':_0x22ee5e['model']['createRangeOn'](_0x3db154['position']['nodeAfter'])});}return 0x0!=_0x178b23['length']&&this['_reduceExistingSuggestions'](_0x5a9088,_0x178b23);}['_processAttributeSuggestions'](_0x128d68){let _0xba2657=!0x1;const _0x221d31=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2147dd=>_0x2147dd['data']['newRange']&&_0x2147dd['name']['startsWith']('suggestion:attribute:'));for(const _0x1441c9 of _0x221d31){const {subType:_0x470db6,id:_0x228784}=this['_splitMarkerName'](_0x1441c9['name']),_0xf8b745=_0x470db6['split']('|')[0x0];for(const _0x326765 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x326765['id']!=_0x228784&&'attribute'==_0x326765['type']&&_0x326765['data']&&_0x326765['data']['key']==_0xf8b745&&_0x326765['getFirstRange']()['isIntersecting'](_0x1441c9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x326765,_0x1441c9['data']['newRange'],_0x128d68),_0xba2657=!0x0);}return _0xba2657;}['_recordAttributeChanges'](_0x3aa8f9){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x3aa8f9();}['_isRegisteredAttribute'](_0xdaa6ea){const _0x21d308=this['_isBlockAttribute'](_0xdaa6ea),_0x2f5bfd=this['_inlineAttributeKeys']['has'](_0xdaa6ea);return _0x21d308||_0x2f5bfd;}['_reduceExistingSuggestions'](_0x1bfc1c,_0x56123b){if(0x0==_0x56123b['length'])return!0x1;let _0x3edd62=!0x1;for(const _0x5c2f5b of _0x56123b){const _0x127004=this['_findSuggestions'](_0x5c2f5b['range'],'attribute')['filter'](_0x57b75a=>!_0x57b75a['meta']['isNextTo'])['map'](_0x130d21=>_0x130d21['suggestion']),_0x4fb5d1=_0x2e0f7b({'newValue':_0x5c2f5b['newValue']});_0x127004['filter'](_0x13bb79=>{const [_0xced4ea,_0x420229]=_0x13bb79['subType']['split']('|');return _0xced4ea==_0x5c2f5b['key']&&_0x420229!=_0x4fb5d1;})['forEach'](_0x1eda73=>{this['_reduceSuggestionAttributeRange'](_0x1eda73,_0x5c2f5b['range'],_0x1bfc1c),_0x3edd62=!0x0;});}return _0x3edd62;}['_reduceSuggestionAttributeRange'](_0x1910ac,_0x1b5d8a,_0x3c92d4){const _0x16da5e=_0x1910ac['getFirstRange']()['getDifference'](_0x1b5d8a);0x0!==_0x16da5e['length']?0x1!==_0x16da5e['length']?this['_breakSuggestionMarker'](_0x1910ac,_0x1b5d8a['start'],_0x1b5d8a['end']):this['_setSuggestionRange'](_0x1910ac,_0x16da5e[0x0]):_0x3c92d4['removeMarker'](_0x1910ac['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x523bc7){this['_editor']=_0x523bc7,this['_model']=_0x523bc7['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4d19e0,_0x313279,_0x2a26a3,_0x1a83fa,_0x56ccd8,_0x3666b3){return new u(this['_model'],{'type':_0x4d19e0,'subType':_0x313279,'id':_0x2a26a3,'author':_0x1a83fa,'creator':_0x1a83fa,'attributes':_0x56ccd8,'onAttributesChange':_0x3666b3,'onAccept':(..._0x68d573)=>this['getSuggestionCallback'](_0x4d19e0,_0x313279,'accept')(..._0x68d573),'onDiscard':(..._0x426d6f)=>this['getSuggestionCallback'](_0x4d19e0,_0x313279,'discard')(..._0x426d6f)});}['registerCustomCallback'](_0x112447,_0x34cc00,_0x16493c,_0x475e7f){const _0x53d3a2=_0x112447+':'+_0x34cc00+':'+_0x16493c;this['_customCallbacks']['set'](_0x53d3a2,_0x475e7f);}['getSuggestionCallback'](_0x3be4d8,_0x4a6b87,_0x3f3bfd){const _0x5860ac=_0x3be4d8+':'+_0x4a6b87+':'+_0x3f3bfd;return this['_customCallbacks']['get'](_0x5860ac)||this['_defaultCallbacks']['get'](_0x3be4d8+':'+_0x3f3bfd);}['_registerDefaultCallbacks'](){const _0x563506=()=>!0x1,_0x151ed4=_0x231f68=>{_0x231f68['sort']((_0x3a59e6,_0x2c4bfa)=>_0x3a59e6['start']['isBefore'](_0x2c4bfa['start'])?0x1:-0x1),this['_model']['change'](_0x64ab89=>{for(const _0x2228cd of _0x231f68){let _0x1167e8;_0x1167e8=_0x2228cd['end']['isAtEnd']&&_0x2228cd['end']['parent']==_0x2228cd['start']['nodeAfter']?_0x64ab89['createSelection'](_0x2228cd['start']['nodeAfter'],'on'):_0x64ab89['createSelection'](_0x2228cd),this['_model']['deleteContent'](_0x1167e8,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x27504d=(_0x322f5c,_0x35d93c)=>{_0x35d93c&&this['_model']['change'](_0x3e2517=>{const {commandName:_0x3f41af,commandParams:_0x33777e=[]}=_0x35d93c,_0x30a152=_0x322f5c['map'](_0x1c734e=>(Tt(_0x1c734e)&&(_0x1c734e=this['_model']['createRange'](_0x1c734e['end'])),_0x1c734e))['filter'](_0x1dab3f=>'$graveyard'!==_0x1dab3f['root']['rootName']);if(_0x30a152['length']<0x1)return;const _0x1d5d20=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x40c5b9=>_0x2e3ae0['fromRange'](_0x40c5b9));_0x3e2517['setSelection'](_0x30a152);for(const _0xcb1b06 of this['_editor']['commands']['commands']())_0xcb1b06['refresh']();_0x33777e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3f41af,..._0x33777e);const _0x77d853=_0x1d5d20['filter'](_0x119b92=>'$graveyard'!=_0x119b92['root']['rootName']);_0x77d853['length']>0x0&&_0x3e2517['setSelection'](_0x77d853);for(const _0x2c7370 of _0x1d5d20)_0x2c7370['detach']();});},_0x152735=(_0x1bce29,_0x394bfc)=>0x1==_0x1bce29['length']&&0x1==_0x394bfc['length']&&_0x1bce29[0x0]['end']['isEqual'](_0x394bfc[0x0]['start']),_0x52ab4c=(_0x137e2b,_0x1251ca,_0x3e77e7,_0x4f2981)=>Ft(_0x137e2b,_0x1251ca,_0x3e77e7,_0x4f2981,this['_model'])?[_0x137e2b,_0x1251ca]:Ft(_0x1251ca,_0x137e2b,_0x4f2981,_0x3e77e7,this['_model'])?[_0x1251ca,_0x137e2b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x563506),this['_defaultCallbacks']['set']('insertion:discard',_0x151ed4),this['_defaultCallbacks']['set']('insertion:join',_0x152735),this['_defaultCallbacks']['set']('insertion:chain',_0x52ab4c),this['_defaultCallbacks']['set']('deletion:accept',_0x151ed4),this['_defaultCallbacks']['set']('deletion:discard',_0x563506),this['_defaultCallbacks']['set']('deletion:join',_0x152735),this['_defaultCallbacks']['set']('deletion:chain',_0x52ab4c),this['_defaultCallbacks']['set']('formatInline:accept',_0x27504d),this['_defaultCallbacks']['set']('formatInline:discard',_0x563506),this['_defaultCallbacks']['set']('formatInline:join',_0x152735),this['_defaultCallbacks']['set']('formatInline:chain',_0x563506),this['_defaultCallbacks']['set']('formatBlock:accept',_0x27504d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x563506),this['_defaultCallbacks']['set']('formatBlock:join',_0x152735),this['_defaultCallbacks']['set']('formatBlock:chain',_0x563506),this['_defaultCallbacks']['set']('attribute:accept',_0x563506),this['_defaultCallbacks']['set']('attribute:discard',(_0x226e5f,_0xc16722)=>{if(!_0xc16722)return;const _0x252cbf=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x42b5ee=>{if(_0xc16722['key']==m)for(const _0x496a4d of _0x226e5f){const _0x2e2c82=_0x496a4d['start']['nodeAfter'],_0x5d3769=_0xc16722['oldValue'];_0x42b5ee['rename'](_0x2e2c82,_0x5d3769);}else{if(_0x252cbf['_isBlockAttribute'](_0xc16722['key'])){for(const _0x582705 of _0x226e5f)void 0x0!==_0xc16722['oldValue']?_0x42b5ee['setAttribute'](_0xc16722['key'],_0xc16722['oldValue'],_0x582705['start']['nodeAfter']):_0x42b5ee['removeAttribute'](_0xc16722['key'],_0x582705['start']['nodeAfter']);}else{for(const _0xdabf5c of _0x226e5f)_0xc16722['oldValue']?_0x42b5ee['setAttribute'](_0xc16722['key'],_0xc16722['oldValue'],_0xdabf5c):_0x42b5ee['removeAttribute'](_0xc16722['key'],_0xdabf5c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x152735);}}function Rt(_0x761d84,_0xfdf6d7,_0x1c2c23){for(const _0xdfe40f of _0xfdf6d7['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xdfe40f['root']==_0xdfe40f)return!0x1;if(!_0x1c2c23['containsItem'](_0xdfe40f))return!0x1;if(_0x761d84['isObject'](_0xdfe40f)||_0x761d84['isLimit'](_0xdfe40f))return!0x0;}return!0x1;}function Tt(_0x5f2658){return _0x5f2658['end']['parent']==_0x5f2658['start']['nodeAfter']&&_0x5f2658['end']['isAtStart'];}function Et(_0x11f69a,_0x49013a,_0x294221,_0x251fc5){const _0x2121ba=_0x212d3c=>!_0x212d3c['item']['is']('$textProxy')&&!_0x251fc5['isObject'](_0x212d3c['item']),_0x3fce1a=_0x11f69a['start']['getLastMatchingPosition'](_0x2121ba),_0x361320=_0x11f69a['end']['getLastMatchingPosition'](_0x2121ba,{'direction':'backward'});return(!_0x11f69a['start']['isEqual'](_0x3fce1a)||!_0x11f69a['end']['isEqual'](_0x361320))&&(_0x3fce1a['isBefore'](_0x361320)?_0x294221['updateMarker'](_0x49013a,{'range':_0x294221['createRange'](_0x3fce1a,_0x361320)}):_0x294221['removeMarker'](_0x49013a),!0x0);}function Vt(_0x3155a3){return _0x2e0f7b(_0x3155a3);}function Ut(_0x1fec25){const _0x34d4fb=_0x1fec25['start']['nodeAfter'];return _0x34d4fb&&_0x34d4fb['is']('element');}function Ot(_0x2ec34f,_0x5434fd){return null==_0x2ec34f['end']['nodeBefore']&&_0x2ec34f['end']['parent']==_0x2ec34f['start']['nodeAfter']?Gt(_0x2ec34f['start']['nodeAfter'],_0x5434fd):_0x2ec34f;}function Gt(_0x1cc778,_0x1279f3){const _0x48df36=_0x1279f3['schema']['isObject'](_0x1cc778)||_0x1279f3['schema']['isSelectable'](_0x1cc778);return _0x1279f3['createRange'](_0x1279f3['createPositionAt'](_0x1cc778,'before'),_0x48df36?_0x1279f3['createPositionAfter'](_0x1cc778):_0x1279f3['createPositionAt'](_0x1cc778,'end'));}function Ft(_0x48b821,_0x1cf049,_0x32a327,_0x3d6bb5,_0x23eeab){if(!Pt(_0x48b821,_0x1cf049))return!0x1;if(_0x32a327['end']['isEqual'](_0x3d6bb5['start']))return!0x0;if(_0x48b821['type']!=_0x1cf049['type'])return!0x1;if(!_0x32a327['end']['isTouching'](_0x3d6bb5['start']))return!0x1;const _0x36f5e1=_0x23eeab['createRange'](_0x32a327['end'],_0x3d6bb5['start'])['getWalker']();for(const _0x353b72 of _0x36f5e1)if(['elementStart','elementEnd']['includes'](_0x353b72['type'])&&_0x23eeab['schema']['isLimit'](_0x353b72['item']))return!0x1;return!0x0;}function Pt(_0x3607fb,_0x4ed565,_0x36abb8=[]){return!(!_0x3607fb['_isDataLoaded']||!_0x4ed565['_isDataLoaded'])&&_0x17198d(Bt(_0x3607fb['attributes'],_0x36abb8),Bt(_0x4ed565['attributes'],_0x36abb8));}function Lt(_0x4700e7,_0x2fdde9){const _0x33720f=Ht(_0x4700e7['attributes']),_0x2c738b=Ht(_0x2fdde9);if(!_0x4700e7['_isDataLoaded'])return!0x1;for(const _0x2565f6 of Object['keys'](_0x2c738b))if(!_0x17198d(_0x33720f[_0x2565f6],_0x2c738b[_0x2565f6]))return!0x1;return!0x0;}function Ht(_0x5d0f7e){const _0xc5de9a=Object['assign']({},_0x5d0f7e);return delete _0xc5de9a['skipNestingCheck'],delete _0xc5de9a['tablePasteChainId'],_0xc5de9a;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3c943f(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x24785c,_0x153602,_0x29fc00,_0x8d9b53){super(),this['model']=_0x153602,this['view']=_0x29fc00,this['commentThreadController']=_0x8d9b53,this['_editor']=_0x24785c,this['_acceptCommand']=_0x24785c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x24785c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x81f55b,_0x1acf44)=>_0x81f55b||_0x1acf44),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1f120c=>_0x1f120c&&this['_editor']['model']['canEditAt'](_0x153602['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x364b44=>_0x364b44&&this['_editor']['model']['canEditAt'](_0x153602['getRanges']())),this['_pendingAction']=null,_0x29fc00['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x29fc00,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x29fc00,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x29fc00,'change:isDirty',()=>{_0x29fc00['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 _0x1fc270=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1fc270);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x12c095{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0xa85780,_0x1c8707,_0x247bf9,_0x3fd28b){super(_0xa85780),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x1c8707['authoredAt']),this['bind']('authoredAt')['to'](_0x1c8707),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x1c8707,this['_localUser']=_0x247bf9,this['_config']=_0x3fd28b,_0x3fd28b['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:_0x417f6f}=this['_config'];this['commentsListView']=new _0x417f6f(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',_0x4edd76=>_0x4edd76+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4c2a25,_0x530266)=>_0x4c2a25||!!_0x530266);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5d177e}=this['_config'],_0x50f8f9=new _0x5d177e(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5ab2f8=_0x50f8f9['commentInputView'];return _0x50f8f9['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5ab2f8,'value',(_0x2519c6,_0x31246c,_0x2a0ea4)=>!!_0x2a0ea4||_0x2519c6&&!_0x31246c),_0x5ab2f8['on']('submit',(_0x617245,_0x46f499)=>{this['fire']('addComment',_0x46f499),_0x5ab2f8['editor']['setData']('');}),_0x5ab2f8['on']('cancel',()=>this['focus']()),_0x5ab2f8['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x50f8f9;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x409b68,_0x366e0f,_0x2e2660,_0x3fb600){super(_0x409b68,_0x366e0f,_0x2e2660,_0x3fb600),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x54cc2f=>_0x54cc2f&&_0x54cc2f[0x0]?_0x54cc2f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x37b49a,_0x12c501)=>{let _0x286945='';for(const _0xbecc53 of _0x37b49a)_0x286945+='<p>'+ds(_0xbecc53['content'],_0xbecc53['color'])+'</p>';return _0x12c501?_0x286945:_0x3bb110(_0x286945,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x409b68,'Accept\x20suggestion'),_0x4e20e6['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x409b68,'Discard\x20suggestion'),_0x4e20e6['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x5bb807(_0x409b68,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4b7efd=this['bindTemplate'],_0x474f73=[{'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':_0x4b7efd['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4b7efd['to']('authoredAt',_0x51e337=>this['_config']['formatDateTime'](_0x51e337))}]}]},{'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']&&_0x474f73['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x150f59={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x4b7efd['if']('isActive','ck-suggestion-wrapper--active'),_0x4b7efd['to']('type',_0x537e61=>'ck-suggestion-'+_0x537e61),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':_0x474f73}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x150f59['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)),_0x150f59;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0xdf6729,_0x4ad834,_0x142595)=>{this['_descriptionElement']['innerHTML']=_0x142595;});}['_createButton'](_0x1fd8e0,_0x5dfef3,_0x37e38c,_0x5dd9b7,_0x2b63df){const _0x2ab08f=new _0x188b51(this['locale']);return _0x2ab08f['set']({'label':_0x1fd8e0,'icon':_0x5dfef3,'tooltip':!0x0,'tooltipPosition':_0x2b63df}),_0x2ab08f['extendTemplate']({'attributes':{'class':_0x37e38c}}),_0x2ab08f['on']('execute',()=>{this['fire'](_0x5dd9b7,this['_model']['id']);}),_0x2ab08f;}['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(_0x57edff,_0x23c129){let _0x2b29da='';return _0x2b29da+=_0x57edff['split']('*')['map']((_0x3f3d8b,_0x5c205a)=>_0x5c205a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x3f3d8b)+'</span>':us(_0x3f3d8b))['join'](''),_0x23c129&&(_0x2b29da+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x23c129['value']+'\x22\x20title=\x22'+_0x23c129['title']+'\x22></span>'),_0x2b29da;}function us(_0x4b6743){const _0x32e0c7=document['createElement']('span');return _0x32e0c7['innerText']=_0x4b6743,_0x32e0c7['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 _0x49b0aa{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x23d4f0,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x5215d4){super(_0x5215d4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1ed13f=this['editor']['config'];_0x1ed13f['define']('trackChanges.SuggestionThreadView',ne),_0x1ed13f['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1ed13f['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2336d0,_0x5c239b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x12b666,_0x2d5015]of this['_handleControllerBuffer']){const _0x58ff22=this['_suggestionToController']['has'](_0x12b666);_0x58ff22||_0x2d5015?_0x58ff22&&_0x2d5015&&this['_destroyController'](_0x12b666):this['_initializeController'](_0x12b666);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2336d0,_0x5c239b);}['init'](){const _0x214cb4=this['editor'],_0x1d6b15=_0x214cb4['plugins']['get']('TrackChangesEditing'),_0x337b7a=_0x214cb4['plugins']['get']('Annotations'),_0x4a2d77=_0x214cb4['plugins']['get']('EditorAnnotations'),_0x1fb6ff=_0x214cb4['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4a2d77['addSourceCollector'](()=>{const _0x908ba1=[];for(const [_0x1e2cd7,_0x4b56b4]of Array['from'](this['_suggestionToController'])){const _0x58e550=_0x1e2cd7['getAllAdjacentSuggestions'](),_0xbfaba8=[];for(const _0x4df107 of _0x58e550){if(!_0x4df107['isInContent'])continue;if(_0x4df107['isMultiRange']){_0xbfaba8['push'](..._0x4df107['getRanges']());continue;}const _0x3bdb09=_0x4df107['getFirstRange']();if(_0xbfaba8['length']>0x0){const _0x451a9b=_0xbfaba8[0x0]['getJoined'](_0x3bdb09);if(_0x451a9b){_0xbfaba8[0x0]=_0x451a9b;continue;}}_0xbfaba8['push'](_0x3bdb09);}_0x908ba1['push']([_0x4b56b4['view'],_0xbfaba8]);}return _0x908ba1;}),this['listenTo'](_0x1d6b15,'suggestionLoaded',(_0xe4b7cb,_0x1b63ec)=>{this['listenTo'](_0x1b63ec,'change:previous',(_0x4820ce,_0x52fc73,_0x4cb8e3,_0x5a1047)=>{_0x1b63ec['isInContent']&&(null==_0x4cb8e3?(this['_updateController'](_0x5a1047['head']),this['_handleSuggestionControllerDelayed'](_0x1b63ec,!0x1)):(this['_updateController'](_0x4cb8e3['head']),null==_0x5a1047&&this['_handleSuggestionControllerDelayed'](_0x1b63ec,!0x0)));}),null!==_0x1b63ec['previous']?this['_updateController'](_0x1b63ec['head']):this['_handleSuggestionControllerDelayed'](_0x1b63ec,!0x1);}),this['listenTo'](_0x1d6b15,'suggestionUnloaded',(_0xe1d64a,_0x54ca12,_0x24e34a)=>{this['stopListening'](_0x54ca12,'change:previous'),this['_handleControllerBuffer']['delete'](_0x54ca12),this['_suggestionToController']['has'](_0x54ca12)&&this['_destroyController'](_0x54ca12),_0x24e34a&&this['_updateController'](_0x24e34a['head']);}),this['listenTo'](_0x1d6b15,'suggestionChanged',(_0x139ae5,_0x54e14f)=>{this['_updateController'](_0x54e14f);}),this['listenTo'](_0x337b7a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1fb6ff,'addComment',(_0x2e34cb,{threadId:_0xd28915,isFromAdapter:_0x152201})=>{if(_0x152201||!_0x1d6b15['hasSuggestion'](_0xd28915))return;const _0x54c1c6=_0x1d6b15['getSuggestion'](_0xd28915);this['_suggestionToController']['get'](_0x54c1c6)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x13e0e7=this['editor']['plugins']['get']('Annotations'),_0x47e5fb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52b897=Array['from'](_0x13e0e7['activeAnnotations'],_0x218d64=>_0x218d64['innerView'])['filter'](_0x480763=>this['_viewToController']['has'](_0x480763)),_0x485037=[];for(const _0x221a64 of _0x52b897){const _0x5d07cc=this['_viewToController']['get'](_0x221a64)['model']['getAllAdjacentSuggestions']();_0x485037['push'](..._0x5d07cc['reduce']((_0x439fa9,_0x784ed1)=>[..._0x439fa9,..._0x784ed1['getMarkerNames']()],[]));}_0x47e5fb['activeMarkers']=_0x485037;}['_addUIComponentsToFactory'](){const _0x41f5a6=this['editor'],_0x504ce1=_0x41f5a6['locale'],_0x2ffa63=o(_0x504ce1,'Track\x20changes'),_0xb0b955=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x2ffa63,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x504ce1,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x504ce1,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x504ce1,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x504ce1,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x5d3942 of _0xb0b955)if(ae(_0x5d3942)){const _0x2646fd=_0x41f5a6['commands']['get'](_0x5d3942['model']['commandName']);_0x5d3942['model']['bind']('isOn','isEnabled')['to'](_0x2646fd,'value','isEnabled');}_0x41f5a6['ui']['componentFactory']['add']('trackChanges',_0x49cf17=>this['_createToolbarButton'](_0x49cf17,_0xb0b955,_0x2ffa63)),_0x41f5a6['ui']['componentFactory']['add']('menuBar:trackChanges',_0x767e55=>this['_createMenuBarMenu'](_0x767e55,_0xb0b955,_0x2ffa63));}['_createToolbarButton'](_0x433c24,_0x5b100e,_0x46a9a7){const _0x5e8cda=zt(_0x433c24,Zt),_0x3751a1=this['editor']['commands']['get']('trackChanges');_0x5e8cda['buttonView']['set']({'tooltip':_0x46a9a7,'label':_0x46a9a7,'icon':ie}),_0x5e8cda['buttonView']['bind']('isOn')['to'](_0x3751a1,'value'),_0x5e8cda['buttonView']['on']('execute',()=>{_0x3751a1['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x5e8cda,_0x5b100e,{'role':'menu'});const _0x37f48b=[];for(const _0x4ab2ec of _0x5b100e)ae(_0x4ab2ec)&&_0x37f48b['push'](this['editor']['commands']['get'](_0x4ab2ec['model']['commandName']));const _0x31a793=_0x5e8cda['buttonView'];return _0x31a793['actionView']['unbind']('isEnabled'),_0x31a793['arrowView']['unbind']('isEnabled'),_0x31a793['actionView']['bind']('isEnabled')['to'](_0x3751a1,'isEnabled'),_0x31a793['arrowView']['bind']('isEnabled')['toMany'](_0x37f48b,'isEnabled',(..._0x2a06c7)=>_0x2a06c7['some'](_0x578de9=>_0x578de9)),_0x5e8cda['on']('execute',_0x28f208=>{this['editor']['execute'](_0x28f208['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5e8cda;}['_createMenuBarMenu'](_0x1626a4,_0x4dc9d0,_0x16df73){const _0x594ba5=new Kt(_0x1626a4),_0x52b30b=this['editor']['commands']['get']('trackChanges');_0x594ba5['buttonView']['set']({'label':_0x16df73,'icon':ie});const _0x42963d=new Qt(_0x1626a4);for(const _0x3d4886 of _0x4dc9d0){if('separator'==_0x3d4886['type']){_0x42963d['items']['add'](new Jt(_0x1626a4));continue;}const _0x4f8a35=new Xt(_0x1626a4,_0x594ba5),_0x19ba84=new Yt(_0x1626a4),_0x2665c5=_0x3d4886['model'];_0x19ba84['bind'](...Object['keys'](_0x2665c5))['to'](_0x2665c5),_0x19ba84['delegate']('execute')['to'](_0x594ba5),_0x19ba84['on']('execute',()=>{this['editor']['execute'](_0x2665c5['commandName']),this['editor']['editing']['view']['focus']();}),_0x4f8a35['children']['add'](_0x19ba84),_0x42963d['items']['add'](_0x4f8a35);}return _0x594ba5['bind']('isEnabled')['to'](_0x52b30b,'isEnabled'),_0x594ba5['panelView']['children']['add'](_0x42963d),_0x594ba5;}['_initializeController'](_0x42d3d0){const _0x41832e=this['editor'],_0x55639b=_0x41832e['config'],_0x1ed59f=_0x41832e['plugins']['get']('Annotations'),_0x1c413b=_0x41832e['plugins']['get']('CommentsRepository'),_0x1f09bc=_0x41832e['plugins']['get']('EditorAnnotations'),_0x1ef205=_0x41832e['plugins']['get'](_0x23d4f0)['me'],_0x281395=_0x55639b['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x17d8c6,CommentThreadInputView:_0x574eed}=_0x41832e['plugins']['get']('CommentsUI');let _0x58be71,_0x230ce2;this['_annotationViews']['has'](_0x42d3d0['id'])?(_0x230ce2=this['_annotationViews']['get'](_0x42d3d0['id']),_0x58be71=_0x230ce2['mainView']):(_0x58be71=new _0x281395(_0x41832e['locale'],_0x42d3d0,_0x1ef205,{'disableComments':this['_disableComments'],'editorConfig':_0x55639b['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x55639b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x55639b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x55639b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xbd63ee(_0x55639b['get']('locale')),'CommentView':_0x55639b['get']('comments')['CommentView'],'CommentsListView':_0x17d8c6,'CommentThreadInputView':_0x574eed}),_0x58be71['acceptButton']['on']('execute',()=>{_0x41832e['editing']['view']['focus']();}),_0x58be71['discardButton']['on']('execute',()=>{_0x41832e['editing']['view']['focus']();}),_0x230ce2=_0x1ed59f['createAnnotationView'](this['editor']['locale'],_0x58be71),_0x230ce2['bind']('isDirty')['to'](_0x58be71,'isDirty'),_0x230ce2['bind']('length')['to'](_0x58be71),_0x230ce2['bind']('type')['to'](_0x58be71,'type',_0x47b8fe=>'suggestion-'+_0x47b8fe),this['_annotationViews']['set'](_0x42d3d0['id'],_0x230ce2));const _0x4d701d=_0x1c413b['createCommentThreadController'](_0x42d3d0['commentThread'],_0x58be71),_0xa48a10=new oe(_0x41832e,_0x42d3d0,_0x58be71,_0x4d701d),_0x2cd3e4=_0x42d3d0['getAllAdjacentSuggestions']()['filter'](_0x3dbcdf=>_0x3dbcdf['isInContent']);_0x58be71['descriptionParts']=_0x41832e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2cd3e4),this['_suggestionToController']['set'](_0x42d3d0,_0xa48a10),this['_viewToController']['set'](_0x58be71,_0xa48a10);const _0x55dfae=_0x1ed59f['createAnnotation']({'view':_0x230ce2,'target':()=>{const _0x4b676a=[],_0x538d65=_0x42d3d0['getAllAdjacentSuggestions']()['filter'](_0x34636b=>_0x34636b['isInContent']);for(const _0x3a78ac of _0x538d65)_0x4b676a['push'](..._0x3a78ac['getMarkers']());return _0x206f57(_0x41832e['editing'],_0x4b676a);},'type':()=>'suggestion-'+_0xa48a10['view']['type']});_0x1c413b['_bindAnnotationToEditors'](_0x58be71,_0x55dfae),_0x1ed59f['add'](_0x55dfae),_0x1f09bc['registerAnnotation'](_0x55dfae);}['_destroyController'](_0x4f5625){const _0x28fb53=this['editor']['plugins']['get']('CommentsRepository'),_0x1c9c19=this['editor']['plugins']['get']('Annotations'),_0x4c2382=this['_suggestionToController']['get'](_0x4f5625),_0x8ff5cc=_0x4c2382['view'],_0x246fa6=_0x1c9c19['getByInnerView'](_0x8ff5cc);_0x28fb53['_unbindEditors'](_0x8ff5cc),_0x246fa6&&_0x1c9c19['remove'](_0x246fa6),this['_suggestionToController']['delete'](_0x4f5625),this['_viewToController']['delete'](_0x8ff5cc),_0x4c2382['destroy']();}['_updateController'](_0x3e2ceb){if(!_0x3e2ceb['isInContent']||!this['_suggestionToController']['has'](_0x3e2ceb))return;const _0x52a6ef=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4446ed=this['_suggestionToController']['get'](_0x3e2ceb),_0x199deb=_0x3e2ceb['getAllAdjacentSuggestions']();_0x4446ed['view']['descriptionParts']=_0x52a6ef['descriptionFactory']['getDescriptions'](_0x199deb);}['destroy'](){for(const _0x3586b7 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3586b7);for(const _0x1eaeeb of this['_annotationViews']['values']())_0x1eaeeb['mainView']['destroy']();super['destroy']();}}function ae(_0x40ae0f){return'model'in _0x40ae0f;}class k extends _0x49b0aa{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x23b01b){this['editor']['plugins']['get'](p)['adapter']=_0x23b01b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x237f21){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x237f21);}['getSuggestions']({skipNotAttached:_0x42753c=!0x1,toJSON:_0x4a3bff=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x42753c,'toJSON':_0x4a3bff});}['getSuggestion'](_0x522b87){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x522b87);}}const T=['Pagination'];class P extends _0x49b0aa{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4ab1aa=this['editor'];if(_0x4ab1aa['config']['define']('trackChangesData.editorCreator',_0x147ed0=>{const _0x1ccaff=_0x4ab1aa['model']['document']['getRootNames']()['reduce']((_0x4eeba6,_0x5233bf)=>(_0x4eeba6[_0x5233bf]='',_0x4eeba6),{});return _0x4ab1aa['constructor']['create'](_0x1ccaff,_0x147ed0);}),'function'!=typeof _0x4ab1aa['config']['get']('trackChangesData')['editorCreator'])throw new _0x5c48d6('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x469071){return N(this['editor'],!0x0,_0x469071);}['getDataWithDiscardedSuggestions'](_0x4c96a4){return N(this['editor'],!0x1,_0x4c96a4);}}class D extends _0x49b0aa{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x4007f3){super(_0x4007f3),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(_0x44574c){return void 0x0!==_0x44574c['getRootsAttributes'];}async function N(_0x216048,_0x5de337,_0x4610ff){const _0xefbff7=_0x4b3541(_0x216048,T);_0xefbff7['plugins']['push'](p,D),_0xefbff7['rootsAttributes']=v(_0x216048)?_0x216048['getRootsAttributes']():void 0x0;const _0x1cab09=document['createDocumentFragment'](),_0x222da4=_0x216048['config']['get']('trackChangesData')['editorCreator'],_0x260dbf=await _0x222da4(_0xefbff7,()=>function(_0x294c98){const _0x3eea1e=document['createElement']('div');return _0x294c98['appendChild'](_0x3eea1e),_0x3eea1e;}(_0x1cab09));!function(_0x48d19c,_0x369887){const _0xbd7add=_0x48d19c['model']['document']['getRootNames']()['reduce']((_0x4d0e57,_0x387e16)=>(_0x4d0e57[_0x387e16]=_0x48d19c['data']['get']({'rootName':_0x387e16}),_0x4d0e57),{}),_0x5aedba=_0x48d19c['plugins']['get']('Users')['users']['map'](_0x4fcc33=>({'id':_0x4fcc33['id'],'name':_0x4fcc33['name']})),_0x3840f6=_0x48d19c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1af384=_0x48d19c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4e90e7=_0x369887['plugins']['get']('Users'),_0x40dd16=_0x369887['plugins']['get']('TrackChangesEditing'),_0x4f3267=_0x369887['plugins']['get']('CommentsRepository');for(const _0x4a5068 of _0x5aedba)_0x4e90e7['getUser'](_0x4a5068['id'])||_0x4e90e7['addUser'](_0x4a5068);_0x4e90e7['me']||_0x4e90e7['useAnonymousUser']();for(const _0x4e7e51 of _0x1af384)_0x4f3267['addCommentThread'](_0x4e7e51);for(const _0x550c25 of _0x3840f6)_0x40dd16['addSuggestionData'](_0x550c25);_0x369887['data']['set'](_0xbd7add);}(_0x216048,_0x260dbf),_0x260dbf['execute'](_0x5de337?'acceptAllSuggestions':'discardAllSuggestions');const _0x447873=v(_0x260dbf)?_0x260dbf['getFullData'](_0x4610ff):_0x260dbf['data']['get'](_0x4610ff);return await _0x260dbf['destroy'](),_0x447873;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|