@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240618.0 → 0.0.0-nightly-20240619.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +3 -3
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as
|
|
24
|
-
_0x55c595(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1117db,_0x116908){super(),this['id']=_0x116908['id'],this['type']=_0x116908['type'],this['subType']=_0x116908['subType']||null,this['author']=_0x116908['author'],this['creator']=_0x116908['creator']||_0x116908['author'],this['isExternal']=Boolean(_0x116908['attributes']&&_0x116908['attributes']['@external']),this['data']=null,this['_model']=_0x1117db,this['_onAccept']=_0x116908['onAccept'],this['_onDiscard']=_0x116908['onDiscard'],this['_onAttributesChange']=_0x116908['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x116908['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 _0x22dd88=this;for(;_0x22dd88['previous'];)_0x22dd88=_0x22dd88['previous'];return _0x22dd88;}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'](_0xeb070e){this['_markerNames']['add'](_0xeb070e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x56db00=>this['_model']['markers']['get'](_0x56db00))['filter'](_0x19cd76=>_0x19cd76);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x6d92ed=>{for(const _0x429402 of this['getMarkers']())_0x6d92ed['removeMarker'](_0x429402);}),this['_markerNames']['clear']();}['removeMarker'](_0x4f4bba){this['_model']['change'](_0xa78f12=>{_0xa78f12['removeMarker'](_0x4f4bba);}),this['_markerNames']['delete'](_0x4f4bba);}['addRange'](_0x3f61ac){const _0x546439='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x546439),this['_model']['change'](_0x5beeff=>{_0x5beeff['addMarker'](_0x546439,{'range':_0x3f61ac,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xce9cb0){for(const _0x2d59fe of this['getRanges']())if(_0x2d59fe['isIntersecting'](_0xce9cb0))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4c15e8=>_0x4c15e8['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x282a37,_0xe0dbb9)=>[..._0x282a37,..._0xe0dbb9['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2a0f7d=this['getRanges']();if(0x1!=_0x2a0f7d['length'])return null;const _0x4baea1=_0x2a0f7d[0x0],_0x3a9471=_0x4baea1['start']['nodeAfter'],_0x2516d8=_0x4baea1['end']['nodeBefore'];return _0x3a9471 instanceof _0x354e14?_0x3a9471!=_0x2516d8?null:_0x3a9471: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 _0x2c2595=[];let _0x30c32f=this['head'];for(;_0x30c32f;)_0x2c2595['push'](_0x30c32f),_0x30c32f=_0x30c32f['next'];return _0x2c2595;}['setAttribute'](_0x42c78d,_0x2e1ed2){const _0x2dba0b=_0x2e89cc(this['attributes']);_0x215068(_0x2dba0b,_0x42c78d,_0x2e1ed2),_0x3d3015(_0x2dba0b,this['attributes'])||(this['attributes']=_0x2dba0b,this['_onAttributesChange'](_0x2dba0b));}['removeAttribute'](_0xaf4fad){const _0x5b4fbb=_0x2e89cc(this['attributes']);_0x2be26a(_0x5b4fbb,_0xaf4fad),_0x3d3015(_0x5b4fbb,this['attributes'])||(this['attributes']=_0x5b4fbb,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 _0xeabe53()['substr'](0x1,0x5);}}function o(_0x225ba2,_0x5ba249,_0x20dd7c){const t=_0x225ba2['t'];switch(_0x5ba249){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',_0x20dd7c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x20dd7c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x20dd7c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x20dd7c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x20dd7c);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',_0x20dd7c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x20dd7c);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',_0x20dd7c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x20dd7c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x20dd7c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x20dd7c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x20dd7c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x20dd7c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x20dd7c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x20dd7c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x20dd7c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x20dd7c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x20dd7c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x20dd7c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x20dd7c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x20dd7c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x20dd7c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x20dd7c);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'},_0x20dd7c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x20dd7c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x20dd7c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x20dd7c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x20dd7c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x20dd7c);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'},_0x20dd7c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x20dd7c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x20dd7c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x20dd7c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x20dd7c);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'},_0x20dd7c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x20dd7c);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'},_0x20dd7c);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'},_0x20dd7c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x20dd7c);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'},_0x20dd7c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x20dd7c);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'},_0x20dd7c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x20dd7c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x20dd7c);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'},_0x20dd7c);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'},_0x20dd7c);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 _0x5ba249;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3a6ac0,_0x3a3dae){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3a6ac0,this['_locale']=_0x3a3dae;}['getDescriptions'](_0x1f618b){const _0x508686=[],_0x319730=new Set(),_0x525ad0=new Set();for(let _0x107356=0x0;_0x107356<_0x1f618b['length'];_0x107356++){const _0x4d77e6=_0x1f618b[_0x107356];if(!_0x4d77e6['isInContent'])continue;const _0x5f1922=this['_handleCustomCallbackDescription'](_0x4d77e6);if(_0x5f1922){if(null!=_0x4d77e6['subType']){if(_0x319730['has'](_0x4d77e6['subType']))continue;_0x319730['add'](_0x4d77e6['subType']);}_0x508686['push'](_0x5f1922);}else{if('attribute'!=_0x4d77e6['type'])'insertion'!=_0x4d77e6['type']&&'deletion'!=_0x4d77e6['type']||this['_handleInsertRemoveSuggestionDescription'](_0x508686,_0x4d77e6,_0x1f618b[_0x107356+0x1]);else{const _0x73b942=_0x4d77e6['data']['key'];if(_0x525ad0['has'](_0x73b942))continue;_0x525ad0['add'](_0x4d77e6['data']['key']),_0x73b942==m?this['_handleRenameSuggestionDescription'](_0x508686,_0x4d77e6):this['_handleAttributeSuggestionDescription'](_0x508686,_0x4d77e6);}}}return this['_resolveDescriptionItems'](_0x508686);}['registerDescriptionCallback'](_0x2f46a5){this['_customCallbacks']['push'](_0x2f46a5);}['registerElementLabel'](_0x301878,_0x5447d8,_0x5dbd21=_0xbf3aa1['normal']){'function'==typeof _0x301878?_0x522383(this['_itemLabelsCallbacks'],{'matchingCallback':_0x301878,'label':_0x5447d8,'priority':_0x5dbd21}):this['_itemLabels']['set'](_0x301878,_0x5447d8);}['registerAttributeLabel'](_0x3f4dbb,_0x3b1958){this['_attributeLabels']['set'](_0x3f4dbb,_0x3b1958);}['getItemLabel'](_0x8ee056,_0x491658=0x1){let _0x92e843;for(const _0x3e7b0e of this['_itemLabelsCallbacks'])if(_0x3e7b0e['matchingCallback'](_0x8ee056)){_0x92e843=_0x3e7b0e['label'];break;}return _0x92e843||(_0x92e843=this['_itemLabels']['get'](_0x8ee056['name'])),_0x92e843?_0x92e843(_0x491658):0x1!==_0x491658?_0x491658+'\x20'+_0x8ee056['name']+'s':''+_0x8ee056['name'];}['_addDescriptionItems'](_0x238603,_0x5b9cfd){const _0x5ba673=_0x5b9cfd['getFirstRange']()['getWalker'](),_0x4e33e2='insertion'==_0x5b9cfd['type']?'add':'remove';for(const _0x45c9f1 of _0x5ba673){const _0x461e14=_0x45c9f1['item'],_0x37876a=_0x238603[_0x238603['length']-0x1];if(_0x461e14['is']('$textProxy'))_0x37876a&&_0x37876a['type']['indexOf']('Container')>-0x1&&_0x238603['pop'](),_0x37876a&&'text'==_0x37876a['type']?_0x37876a[_0x4e33e2]+=_0x461e14['data']:_0x238603['push']({'type':'text','add':'add'==_0x4e33e2?_0x461e14['data']:'','remove':'remove'==_0x4e33e2?_0x461e14['data']:''});else{if(this['_schema']['isObject'](_0x461e14)){const _0x550d71=_0x461e14;if(_0x37876a&&_0x37876a['type']['indexOf']('Container')>-0x1&&_0x238603['pop'](),'elementEnd'==_0x45c9f1['type'])continue;_0x37876a&&_0x37876a['type']==_0x4e33e2+'Object'&&_0x37876a['element']['name']==_0x550d71['name']?_0x37876a['quantity']++:_0x238603['push']({'type':_0x4e33e2+'Object','element':_0x550d71,'quantity':0x1}),_0x5ba673['skip'](_0x35c1fd=>!('elementEnd'==_0x35c1fd['type']&&_0x35c1fd['item']==_0x461e14));}else{if(this['_schema']['checkChild'](_0x461e14,'$text')||_0x461e14['is']('element','softBreak')){const _0x2db70a=_0x461e14;if('add'==_0x4e33e2&&'elementStart'==_0x45c9f1['type']||'remove'==_0x4e33e2&&'elementEnd'==_0x45c9f1['type'])continue;if(_0x37876a&&-0x1==_0x37876a['type']['indexOf']('Container')){'text'==_0x37876a['type']&&(_0x37876a[_0x4e33e2]+='\x0a');continue;}let _0x2adeb0;if(_0x2adeb0='add'==_0x4e33e2?_0x2db70a['nextSibling']&&!this['_schema']['isObject'](_0x2db70a['nextSibling'])?_0x2db70a['nextSibling']:null:_0x2db70a['previousSibling']&&!this['_schema']['isObject'](_0x2db70a['previousSibling'])?_0x2db70a['previousSibling']:null,_0x2db70a['isEmpty']||_0x2adeb0&&_0x2adeb0['isEmpty']){const _0x5e92c1=_0x2adeb0&&_0x2adeb0['isEmpty']?_0x2adeb0:_0x2db70a;_0x37876a&&_0x37876a['type']==_0x4e33e2+'EmptyContainer'&&_0x37876a['element']['name']==_0x5e92c1['name']?_0x37876a['quantity']++:_0x238603['push']({'type':_0x4e33e2+'EmptyContainer','element':_0x5e92c1,'quantity':0x1});}else _0x238603['push']({'type':_0x4e33e2+'Container','element':_0x2db70a});}}}}}['_resolveDescriptionItems'](_0x125bb0){const _0x1f70ce=this['_locale'],_0x2291b4=[],_0x1c013a=[],_0x280e5d=[];for(const _0x39df4f of _0x125bb0)switch(_0x39df4f['type']){case'text':if(_0x39df4f['add']=_0x39df4f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x39df4f['remove']=_0x39df4f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x39df4f['add']&&''!=_0x39df4f['remove']){_0x2291b4['push']({'type':'replace','content':o(_0x1f70ce,'REPLACE_TEXT',['\x22'+_0x39df4f['remove']+'\x22','\x22'+_0x39df4f['add']+'\x22'])});continue;}if(null!=_0x39df4f['add']['match'](/^ +$/)){_0x2291b4['push']({'type':'insertion','content':o(_0x1f70ce,'*Insert:*\x20%0',o(_0x1f70ce,'ELEMENT_SPACE',_0x39df4f['add']['length']))});continue;}if(null!=_0x39df4f['remove']['match'](/^ +$/)){_0x2291b4['push']({'type':'deletion','content':o(_0x1f70ce,'*Remove:*\x20%0',o(_0x1f70ce,'ELEMENT_SPACE',_0x39df4f['remove']['length']))});continue;}if(''!=_0x39df4f['add']){_0x2291b4['push']({'type':'insertion','content':o(_0x1f70ce,'*Insert:*\x20%0','\x22'+_0x39df4f['add']+'\x22')});continue;}_0x2291b4['push']({'type':'deletion','content':o(_0x1f70ce,'*Remove:*\x20%0','\x22'+_0x39df4f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2291b4['push']({'type':'insertion','content':o(_0x1f70ce,'*Insert:*\x20%0',this['getItemLabel'](_0x39df4f['element'],_0x39df4f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2291b4['push']({'type':'deletion','content':o(_0x1f70ce,'*Remove:*\x20%0',this['getItemLabel'](_0x39df4f['element'],_0x39df4f['quantity']))});continue;case'addContainer':_0x2291b4['push']({'type':'insertion','content':o(_0x1f70ce,'*Split:*\x20%0',this['getItemLabel'](_0x39df4f['element'],_0x39df4f['quantity']))});continue;case'removeContainer':_0x2291b4['push']({'type':'deletion','content':o(_0x1f70ce,'*Merge:*\x20%0',this['getItemLabel'](_0x39df4f['element'],_0x39df4f['quantity']))});continue;case'addFormat':_0x1c013a['push'](_0x39df4f['key']);continue;case'removeFormat':_0x280e5d['push'](_0x39df4f['key']);continue;default:_0x2291b4['push'](_0x39df4f);}if(_0x1c013a['length']){const _0x280868=_0x1c013a['map'](_0x55a681=>this['_attributeLabels']['has'](_0x55a681)?this['_attributeLabels']['get'](_0x55a681):_0x55a681)['join'](',\x20');_0x2291b4['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x280868)});}if(_0x280e5d['length']){const _0x4a989c=_0x280e5d['map'](_0x19e1fb=>this['_attributeLabels']['has'](_0x19e1fb)?this['_attributeLabels']['get'](_0x19e1fb):_0x19e1fb)['join'](',\x20');_0x2291b4['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4a989c)});}return _0x2291b4;}['_handleCustomCallbackDescription'](_0x3c0e5f){for(const _0x9dc65f of this['_customCallbacks']){const _0x28332c=_0x9dc65f(_0x3c0e5f);if(_0x28332c&&'type'in _0x28332c)return _0x28332c;}}['_handleAttributeSuggestionDescription'](_0x15d8db,_0x2dfb69){const _0x33395a=_0x2dfb69['data'],_0x4d9dc7=void 0x0===_0x33395a['newValue']?'removeFormat':'addFormat';_0x15d8db['push']({'type':_0x4d9dc7,'key':_0x33395a['key']});}['_handleRenameSuggestionDescription'](_0x45846a,_0x3bebe2){_0x45846a['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3bebe2['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x204a2c,_0x2cc282,_0x37d066){if(this['_addDescriptionItems'](_0x204a2c,_0x2cc282),_0x37d066&&_0x37d066['getFirstRange']()&&!_0x2cc282['getFirstRange']()['end']['isEqual'](_0x37d066['getFirstRange']()['start'])){const _0x1a060d=_0x204a2c[_0x204a2c['length']-0x1],_0x4c8341='insertion'==_0x2cc282['type']?'add':'remove';_0x1a060d&&'text'==_0x1a060d['type']&&(_0x1a060d[_0x4c8341]+='\x0a');}}}class E extends _0x462782{['afterInit'](){const _0x43f799=this['editor'],_0xa06d5f=_0x43f799['plugins']['get']('TrackChangesEditing');_0x43f799['commands']['get']('showAIAssistant')&&_0xa06d5f['enableCommand']('showAIAssistant');}}class V extends _0x462782{['afterInit'](){const _0x4cb229=this['editor'],_0x3c8c98=_0x4cb229['locale'];if(!_0x4cb229['plugins']['has']('AlignmentEditing'))return;const _0x3a798e=_0x4cb229['plugins']['get']('TrackChangesEditing');_0x3a798e['enableDefaultAttributesIntegration']('alignment'),_0x3a798e['registerBlockAttribute']('alignment'),_0x3a798e['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3c8c98,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ae6fc=this['editor'],_0x56fc35=_0x3ae6fc['locale'];_0x3ae6fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f3145=>{if('formatBlock'!=_0x5f3145['type'])return;const {data:_0x3cd387}=_0x5f3145;if(_0x3cd387&&'alignment'==_0x3cd387['commandName']){const _0x362f14=_0x3cd387['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x56fc35,'*Format:*\x20%0',function(_0xd0fb06){switch(_0xd0fb06){case'left':return o(_0x56fc35,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x56fc35,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x56fc35,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x56fc35,'FORMAT_JUSTIFY_TEXT');}}(_0x362f14))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x462782{['afterInit'](){const _0x1a513f=this['editor'],_0x18e295=_0x1a513f['plugins']['get']('TrackChangesEditing'),_0x53ac08=_0x1a513f['locale'];for(const _0x2c1cc7 of ti){if(!_0x1a513f['plugins']['has'](_0x2c1cc7))continue;const _0x46cd22=_0x2c1cc7['slice'](0x0,-0x7)['toLowerCase'](),_0x2017fd='FORMAT_'+_0x46cd22['toUpperCase']();_0x18e295['enableDefaultAttributesIntegration'](_0x46cd22),_0x18e295['registerInlineAttribute'](_0x46cd22),_0x18e295['descriptionFactory']['registerAttributeLabel'](_0x46cd22,o(_0x53ac08,_0x2017fd));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b7dba=this['editor'],_0x2f2694=_0x2b7dba['locale'],_0x12c61e=_0x2b7dba['plugins']['get']('TrackChangesEditing');function _0x4367a6(_0x33234f,_0x50c788){_0x12c61e['descriptionFactory']['registerDescriptionCallback'](_0x157b14=>{if('formatInline'!=_0x157b14['type'])return;const {data:_0x4c5c7c}=_0x157b14;return _0x4c5c7c&&_0x4c5c7c['commandName']===_0x33234f?_0x4c5c7c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2f2694,'*Format:*\x20%0',_0x50c788)}:{'type':'format','content':o(_0x2f2694,'*Remove\x20format:*\x20%0',_0x50c788)}:void 0x0;});}_0x4367a6('bold',o(_0x2f2694,'FORMAT_BOLD')),_0x4367a6('italic',o(_0x2f2694,'FORMAT_ITALIC')),_0x4367a6('underline',o(_0x2f2694,'FORMAT_UNDERLINE')),_0x4367a6('code',o(_0x2f2694,'FORMAT_CODE')),_0x4367a6('strikethrough',o(_0x2f2694,'FORMAT_STRIKETHROUGH')),_0x4367a6('subscript',o(_0x2f2694,'FORMAT_SUBSCRIPT')),_0x4367a6('superscript',o(_0x2f2694,'FORMAT_SUPERSCRIPT'));}}class O extends _0x462782{['afterInit'](){const _0x5a1e96=this['editor'],_0x5dd2ec=_0x5a1e96['locale'];if(!_0x5a1e96['plugins']['has']('BlockQuoteEditing'))return;const _0x4fea80=_0x5a1e96['plugins']['get']('TrackChangesEditing'),_0xaa39c5=this['editor']['commands']['get']('blockQuote');_0x4fea80['enableCommand']('blockQuote',(_0x504a6b,_0x57f183={})=>{const _0xacd769=this['editor']['model']['document']['selection'],_0x3b87b7=_0x57f183&&void 0x0!==_0x57f183['forceValue']?_0x57f183['forceValue']:!_0xaa39c5['value'];let _0x1a5aad=[];if(_0x3b87b7){const _0x4207e9=Array['from'](_0xacd769['getSelectedBlocks']())['filter'](_0x262c44=>oo(_0x262c44)||function(_0x41d0ce,_0x44c9e3){const _0x533063=_0x44c9e3['checkChild'](_0x41d0ce['parent'],'blockQuote'),_0x360bfb=_0x44c9e3['checkChild'](['$root','blockQuote'],_0x41d0ce);return _0x533063&&_0x360bfb;}(_0x262c44,this['editor']['model']['schema']));_0x1a5aad=to(_0x4207e9,_0x5a1e96['model']);}else{const _0x5c5fa3=Array['from'](_0xacd769['getSelectedBlocks']())['filter'](_0x2cfe4a=>oo(_0x2cfe4a));_0x1a5aad=to(_0x5c5fa3,_0x5a1e96['model']);}_0x5a1e96['model']['change'](()=>{for(const _0x227011 of _0x1a5aad)_0x4fea80['markBlockFormat'](_0x227011,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3b87b7}]});});}),_0x4fea80['descriptionFactory']['registerDescriptionCallback'](_0x30f4fb=>{const {data:_0xef6d04}=_0x30f4fb;if(_0xef6d04&&'blockQuote'==_0xef6d04['commandName']){const _0x5ae7ef=o(_0x5dd2ec,'ELEMENT_BLOCK_QUOTE');return _0xef6d04['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5dd2ec,'*Set\x20format:*\x20%0',_0x5ae7ef)}:{'type':'format','content':o(_0x5dd2ec,'*Remove\x20format:*\x20%0',_0x5ae7ef)};}});}}function oo(_0x26b45e){return'blockQuote'==_0x26b45e['parent']['name'];}class G extends _0x462782{['afterInit'](){const _0x16218c=this['editor'];_0x16218c['plugins']['has']('CaseChange')&&(_0x16218c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x16218c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x16218c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x462782{['afterInit'](){const _0x5e5ef9=this['editor'];_0x5e5ef9['commands']['get']('ckbox')&&_0x5e5ef9['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x462782{['afterInit'](){const _0x100aa8=this['editor'];if(!_0x100aa8['plugins']['has']('CodeBlock'))return;const _0x1012dc=_0x100aa8['plugins']['get']('TrackChangesEditing'),_0x5d4543=_0x100aa8['locale'],_0x47c352=_0x100aa8['config']['get']('codeBlock')['languages'],_0x141ffc=_0x100aa8['commands']['get']('codeBlock');_0x1012dc['enableCommand']('indentCodeBlock'),_0x1012dc['enableCommand']('outdentCodeBlock'),_0x1012dc['enableCommand']('codeBlock',(_0x55b58d,_0x2dd884={})=>{const _0x2f30ad=_0x100aa8['model'],_0x3ec13b=_0x100aa8['model']['document']['selection'],_0x210101=_0x2dd884&&void 0x0!==_0x2dd884['forceValue']?_0x2dd884['forceValue']:!_0x141ffc['value'];let _0x1340d7;_0x2dd884['language']||(_0x2dd884['language']=_0x47c352[0x0]['language']),_0x1340d7=_0x210101?Array['from'](_0x3ec13b['getSelectedBlocks']())['filter'](_0x2eb0bf=>eo(_0x2eb0bf)||function(_0x5751ba,_0xaa0944){if(_0x5751ba['is']('rootElement')||_0xaa0944['isLimit'](_0x5751ba))return!0x1;return _0xaa0944['checkChild'](_0x5751ba['parent'],'codeBlock');}(_0x2eb0bf,_0x2f30ad['schema'])):Array['from'](_0x3ec13b['getSelectedBlocks']())['filter'](_0x58dc6c=>eo(_0x58dc6c));const _0x4cd6ed=to(_0x1340d7,_0x2f30ad);_0x2f30ad['change'](()=>{for(const _0xc4bb65 of _0x4cd6ed)_0x1012dc['markBlockFormat'](_0xc4bb65,{'commandName':'codeBlock','commandParams':[{..._0x2dd884,'forceValue':_0x210101}],'formatGroupId':'blockName'});});}),(_0x1012dc['descriptionFactory']['registerElementLabel']('codeBlock',_0x3a08fa=>o(_0x5d4543,'ELEMENT_CODE_BLOCK',_0x3a08fa)),_0x1012dc['descriptionFactory']['registerDescriptionCallback'](_0x4266eb=>{if('formatBlock'!=_0x4266eb['type'])return;const _0x16cf5f=_0x5d4543['t'],{data:_0xae74b7}=_0x4266eb;if(!_0xae74b7||'codeBlock'!=_0xae74b7['commandName'])return;const _0x3d1ca1=_0xae74b7['commandParams'][0x0]['language'],_0x264932=_0x16cf5f(_0x47c352['find'](_0x357ff2=>_0x357ff2['language']===_0x3d1ca1)['label'])['toLowerCase']();return _0xae74b7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d4543,'*Set\x20format:*\x20%0',o(_0x5d4543,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x264932+')')}:{'type':'format','content':o(_0x5d4543,'*Remove\x20format:*\x20%0',o(_0x5d4543,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x188a64){return'codeBlock'==_0x188a64['name'];}class H extends _0x462782{['afterInit'](){const _0x560d91=this['editor'];if(!_0x560d91['plugins']['has']('CommentsEditing'))return;_0x560d91['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x18489f,_0x575010,_0x3d6b4a){const _0x11aec1=[];for(const _0x3dc0f3 of _0x575010['getItems']())_0x3dc0f3['hasAttribute'](_0x18489f)&&_0x11aec1['push'](_0x3d6b4a['createRangeOn'](_0x3dc0f3));return _0x11aec1;}function _e(_0x4f0cc6,_0x23087d,{showActiveMarker:_0x2088e0=!0x0}={}){const _0x3f07b3=_0x4f0cc6['plugins']['get']('TrackChangesEditing');return(_0x52a86c,_0x165392,_0x41b5a2)=>{if(!_0x41b5a2['consumable']['test'](_0x165392['markerRange'],_0x52a86c['name']))return;const _0x1b1de7=_0x165392['markerRange']['getWalker'](),_0x50d56e=_0x165392['markerRange']['start'],_0xe1d70e=_0x4f0cc6['model']['schema'];let _0x4ea279=null,_0x223034=null,_0x1004e8=!0x1,_0x19eb16=!0x1;for(const _0x407dc2 of _0x1b1de7){const _0x15c79b=_0x407dc2['item'];_0x1004e8=_0x1004e8||_0xe1d70e['isContent'](_0x15c79b);const _0x190133=_0x41b5a2['mapper']['toViewElement'](_0x15c79b);if(_0x190133&&_0x190133['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x407dc2['type']&&(_0xe1d70e['isBlock'](_0x15c79b)&&!_0xe1d70e['isLimit'](_0x15c79b)&&(_0x15c79b['nextSibling']||_0x50d56e['isAtEnd']?_0x4ea279&&_0x4ea279['parent']==_0x15c79b||(_0x4ea279=_0x15c79b,_0x2e0af7(_0x407dc2['previousPosition']),_0x19eb16=!0x0):_0x223034=_0x223034||_0x407dc2['previousPosition']));}function _0x2e0af7(_0x4628f4){const _0x3f9c7d=_0x41b5a2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x23087d}),_0xf05809=_0x41b5a2['mapper']['toViewPosition'](_0x4628f4);_0x2088e0&&_0x3f07b3['activeMarkers']['includes'](_0x165392['markerName'])&&_0x41b5a2['writer']['addClass']('ck-suggestion-marker--active',_0x3f9c7d),_0x41b5a2['writer']['insert'](_0xf05809,_0x3f9c7d),_0x41b5a2['mapper']['bindElementToMarker'](_0x3f9c7d,_0x165392['markerName']);}_0x1004e8||_0x19eb16||!_0x223034||_0x2e0af7(_0x223034);};}class q extends _0x462782{static get['requires'](){return[_0x28bf79];}['init'](){const _0x5f31c4=this['editor'],_0x3d5583=_0x5f31c4['plugins']['get']('TrackChangesEditing');_0x3d5583['enableCommand']('delete');const _0x3439af=_0x5f31c4['commands']['get']('deleteForward');_0x3d5583['enableCommand']('deleteForward',(_0x316b8a,_0x37a908={})=>{const _0x3bb044=_0x5f31c4['model']['createSelection'](_0x5f31c4['model']['document']['selection']);_0x3bb044['isCollapsed']&&_0x5f31c4['model']['modifySelection'](_0x3bb044,{'direction':'forward','unit':_0x37a908['unit']});const _0x2cde90=_0x3bb044['getFirstRange'](),_0x10a76d=_0x3a5b18['fromRange'](_0x2cde90);let _0xd497d0;_0x316b8a(_0x37a908),_0xd497d0='$graveyard'==_0x10a76d['root']['rootName']?_0x5f31c4['model']['createRange'](_0x2cde90['start']):_0x5f31c4['model']['createRange'](_0x10a76d['start'],_0x10a76d['end']),_0x10a76d['detach'](),_0x5f31c4['model']['enqueueChange'](_0x3439af['buffer']['batch'],_0x729984=>{_0x3439af['buffer']['lock'](),_0x729984['setSelection'](_0x729984['createRange'](_0xd497d0['end'])),_0x3439af['buffer']['unlock']();});}),_0x5f31c4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5f31c4,'merge'),{'priority':'high'}),_0x5f31c4['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x33051a,_0x4d793b,_0x4e7109)=>{_0x4e7109['options']['showSuggestionHighlights']&&_e(_0x5f31c4,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x33051a,_0x4d793b,_0x4e7109);},{'priority':'high'}),_0x5f31c4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x253236,_0x5f5927,_0x5a679d)=>{const _0x416b7a=_0x5a679d['mapper']['markerNameToElements'](_0x5f5927['markerName']);if(_0x416b7a){for(const _0x1f3d22 of _0x416b7a)_0x1f3d22['is']('uiElement')&&(_0x5a679d['mapper']['unbindElementFromMarkerName'](_0x1f3d22,_0x5f5927['markerName']),_0x5a679d['writer']['remove'](_0x1f3d22));}},{'priority':'high'});}}class z extends _0x462782{['afterInit'](){const _0x4739dc=this['editor'];if(!_0x4739dc['plugins']['has']('ListEditing'))return;const _0x5b408c=_0x4739dc['locale'],_0x356623=_0x4739dc['plugins']['get']('TrackChangesEditing'),_0x1deb53=_0x4739dc['plugins']['has']('TodoListEditing'),_0x222fcf=!!_0x4739dc['config']['get']('list.multiBlock');function _0x3df825(_0x4c2458){return{'type':'format','content':''+o(_0x5b408c,'*Set\x20format:*\x20%0',_0x4c2458)};}function _0x158197(_0x28109c){return{'type':'format','content':''+o(_0x5b408c,'*Remove\x20format:*\x20%0',_0x28109c)};}_0x356623['enableDefaultAttributesIntegration']('numberedList'),_0x356623['enableDefaultAttributesIntegration']('bulletedList'),_0x356623['enableDefaultAttributesIntegration']('customNumberedList'),_0x356623['enableDefaultAttributesIntegration']('customBulletedList'),_0x356623['enableDefaultAttributesIntegration']('indentList'),_0x356623['enableDefaultAttributesIntegration']('outdentList'),_0x356623['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x356623['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x356623['registerBlockAttribute']('listItemId'),_0x356623['registerBlockAttribute']('listType'),_0x356623['registerBlockAttribute']('listIndent'),_0x222fcf&&(_0x356623['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x356623['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1deb53&&(_0x356623['enableDefaultAttributesIntegration']('todoList'),_0x356623['enableDefaultAttributesIntegration']('checkTodoList'),_0x356623['registerBlockAttribute']('todoListChecked'),_0x356623['descriptionFactory']['registerDescriptionCallback'](_0x5a0326=>{const {data:_0xdb4d1c}=_0x5a0326;if(_0xdb4d1c&&'todoListChecked'==_0xdb4d1c['key'])return{'type':'format','content':_0xdb4d1c['newValue']?o(_0x5b408c,'*Check\x20item*'):o(_0x5b408c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x504f3c=>{if(_0x504f3c['batch']['isUndo'])return!0x1;let _0x2fe4ca=!0x1;const _0x495392=_0x356623['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b487d=>'todoListChecked'===_0x356623['_getAttributeKey'](_0x3b487d));for(const _0x1c5562 of _0x495392){'todo'!=_0x1c5562['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x356623['_findSuggestions'](_0x1c5562['getFirstRange'](),'attribute')['find'](_0xdf3325=>'listType'===_0x356623['_getAttributeKey'](_0xdf3325['suggestion']))||(_0x504f3c['removeMarker'](_0x1c5562['getFirstMarker']()),_0x2fe4ca=!0x0));}return _0x2fe4ca;})),_0x356623['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5b408c,'FORMAT_INDENT'));const _0x2b88ea={'type':'format','content':''};_0x356623['descriptionFactory']['registerDescriptionCallback'](_0x53245c=>{const {data:_0x421839}=_0x53245c;if(!_0x421839||'listType'!=_0x421839['key'])return;let _0x4ea5cb=_0x53245c['head'];for(;_0x4ea5cb;){if(_0x4ea5cb['data']&&(('listStyle'==_0x4ea5cb['data']['key']||'listMarkerStyle'==_0x4ea5cb['data']['key'])&&(_0x4ea5cb['data']['newValue']&&'default'!=_0x4ea5cb['data']['newValue']||'default'!=_0x4ea5cb['data']['oldValue']&&!_0x421839['newValue'])||!_0x222fcf&&_0x4ea5cb['data']['key']==m))return _0x2b88ea;_0x4ea5cb=_0x4ea5cb['next'];}if(null==_0x421839['newValue'])switch(_0x421839['oldValue']){case'bulleted':return _0x158197(o(_0x5b408c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x158197(o(_0x5b408c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x158197(o(_0x5b408c,'ELEMENT_TODO_LIST'));}switch(_0x421839['newValue']){case'bulleted':return _0x3df825(o(_0x5b408c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3df825(o(_0x5b408c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3df825(o(_0x5b408c,'ELEMENT_TODO_LIST'));}}),_0x356623['descriptionFactory']['registerDescriptionCallback'](_0x4219b8=>{const {data:_0xa86094}=_0x4219b8;if(_0xa86094&&'listIndent'==_0xa86094['key'])return null==_0xa86094['newValue']||null==_0xa86094['oldValue']&&0x0==_0xa86094['newValue']?_0x2b88ea:void 0x0;}),_0x356623['descriptionFactory']['registerDescriptionCallback'](_0x3d3dcf=>{if('attribute'!=_0x3d3dcf['type'])return;const {data:_0x11e2b9}=_0x3d3dcf;if(!_0x11e2b9||'listItemId'!=_0x11e2b9['key'])return;const _0xcc457e=le(_0x3d3dcf);return'newValue'==_0xcc457e?{'type':'format','content':o(_0x5b408c,'*Merge:*\x20list\x20item')}:'oldValue'==_0xcc457e?{'type':'format','content':o(_0x5b408c,'*Split:*\x20list\x20item')}:_0x2b88ea;}),_0x4739dc['model']['document']['registerPostFixer'](_0x32c903=>this['listItemIdFixer'](_0x32c903)),_0x4739dc['model']['document']['registerPostFixer'](_0x37652a=>this['noTrackChangesFixer'](_0x37652a)),_0x4739dc['model']['document']['registerPostFixer'](_0x13c018=>this['assureChains'](_0x13c018)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x555cd3){if(_0x555cd3['batch']['isUndo']||!_0x555cd3['batch']['isLocal'])return!0x1;let _0x43af58=!0x1;const _0x443f94=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13fc6f=>_0x13fc6f['data']&&'listItemId'==_0x13fc6f['data']['key'])['filter'](_0x5783f0=>_0x5783f0['data']['newValue']&&_0x5783f0['data']['oldValue']);for(const _0x2e9bd8 of _0x443f94)le(_0x2e9bd8)||(_0x555cd3['removeMarker'](_0x2e9bd8['getFirstMarker']()),_0x43af58=!0x0);return _0x43af58;}['noTrackChangesFixer'](_0x54ff43){if(_0x54ff43['batch']['isUndo']||!_0x54ff43['batch']['isLocal'])return!0x1;const _0x33afcc=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x33afcc['trackChangesCommand']['value'])return!0x1;let _0x2d6270=!0x1;const _0x4b8bf2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x11ff0b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x518bea=>'attribute'==_0x518bea['type'])['filter'](_0x4b6587=>_0x4b8bf2['includes'](_0x4b6587['attributeKey']));if(0x0==_0x11ff0b['length'])return _0x2d6270;for(const _0x5703a9 of _0x11ff0b){const _0x1cb8c1=_0x33afcc['_findSuggestions'](_0x5703a9['range'],'attribute')['filter'](_0x1e97d6=>!_0x1e97d6['meta']['isNextTo'])['map'](_0x562974=>_0x562974['suggestion'])['filter'](_0x5065eb=>{const _0x452446=_0x33afcc['_getAttributeKey'](_0x5065eb);return _0x4b8bf2['includes'](_0x452446);});if(_0x1cb8c1['length']){for(const _0x50149e of _0x1cb8c1)_0x54ff43['removeMarker'](_0x50149e['getFirstMarker']());_0x2d6270=!0x0;}}return _0x2d6270;}['assureChains'](_0xb02fd5){if(_0xb02fd5['batch']['isUndo']||!_0xb02fd5['batch']['isLocal'])return!0x1;const _0x40754c=this['editor']['plugins']['get']('TrackChangesEditing');let _0x36d3cd=!0x1;const _0x3a1878=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x5d7e16 of _0x40754c['getSuggestions']({'skipNotAttached':!0x0})){const _0x18570d=_0x40754c['_findSuggestions'](_0x5d7e16['getFirstRange'](),'attribute')['map'](_0xe4d53a=>_0xe4d53a['suggestion'])['filter'](_0x532a49=>_0x532a49['data']&&_0x3a1878['includes'](_0x532a49['data']['key']));if(!_0x18570d['length'])continue;const _0x3d351e=_0x18570d[0x0]['head']['attributes']['groupId'];if(!_0x18570d['every'](_0x3cbb2b=>_0x3cbb2b['attributes']['groupId']===_0x3d351e)){for(const _0x138ed1 of _0x18570d)_0x4cd29c(_0x138ed1,_0x3d351e)&&(_0x36d3cd=!0x0);}}return _0x36d3cd;function _0xfa4a74(_0xec7140,_0x1cbabf){for(const _0x1ea42a of _0x40754c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x31b5b1=>'attribute'==_0x31b5b1['type']&&_0x31b5b1['attributes']['groupId']==_0xec7140))_0x1ea42a['setAttribute']('groupId',_0x1cbabf);}function _0x4cd29c(_0x4bba06,_0x37d32b){let _0x920fd5=_0x4bba06['head'],_0x2669c0=!0x1;for(;_0x920fd5;)_0x920fd5['attributes']['groupId']!=_0x37d32b&&(_0xfa4a74(_0x920fd5['attributes']['groupId'],_0x37d32b),_0x920fd5['setAttribute']('groupId',_0x37d32b),_0x2669c0=!0x0),_0x920fd5=_0x920fd5['next'];return _0x2669c0;}}['_supportLegacySuggestions'](){const _0x5679fa=this['editor'],_0x52be28=_0x5679fa['locale'],_0x37f768=_0x5679fa['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x37f768['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x71090b,_0x8ab26b){const _0x201945=[];for(let _0x4d3c40 of _0x71090b)_0x4d3c40['start']['nodeAfter']===_0x4d3c40['end']['parent']&&(_0x4d3c40=_0x5679fa['model']['createRange'](_0x5679fa['model']['createPositionAt'](_0x4d3c40['start']['nodeAfter'],0x0))),_0x201945['push'](_0x4d3c40);_0x5679fa['model']['change'](_0x74fae6=>{const _0x48c422=_0x5679fa['model']['document']['selection'],_0x4ca8ce=Array['from'](_0x48c422['getRanges']())['map'](_0x1ffbe6=>_0x3a5b18['fromRange'](_0x1ffbe6));_0x74fae6['setSelection'](_0x201945),_0x5679fa['commands']['get'](_0x8ab26b['commandName'])['refresh'](),_0x8ab26b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5679fa['execute'](_0x8ab26b['commandName'],..._0x8ab26b['commandParams']),_0x74fae6['setSelection'](_0x4ca8ce);for(const _0x42e76e of _0x4ca8ce)_0x42e76e['detach']();});}),_0x37f768['descriptionFactory']['registerElementLabel'](function(_0x8feb9a){const _0x3f2a86=!_0x5679fa['model']['schema']['isObject'](_0x8feb9a),_0x2f5be0=_0x8feb9a['previousSibling'],_0x103101=_0x8feb9a['nextSibling'],_0x387769=_0x8feb9a['getAttribute']('listItemId'),_0x31886c=!_0x2f5be0||_0x2f5be0['getAttribute']('listItemId')!==_0x387769,_0x5df91e=!_0x103101||_0x103101['getAttribute']('listItemId')!==_0x387769;return _0x3f2a86&&Boolean(_0x387769)&&_0x31886c&&_0x5df91e;},_0x3619ca=>o(_0x52be28,'ELEMENT_LIST_ITEM',_0x3619ca));}['_registerLegacyDescription'](){const _0x41f783=this['editor'],_0xd2d087=_0x41f783['locale'];function _0x1f34fa(_0x3f49b4){const _0x3bc2fa=_0x41f783['commands']['get']('bulletedList')['value'],_0x5bdd05=_0x41f783['commands']['get']('numberedList')['value'];return'numberedList'===_0x3f49b4?_0x3bc2fa:_0x5bdd05;}_0x41f783['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x180154){if('formatBlock'!=_0x180154['type'])return;const {data:_0xdab211}=_0x180154;if(!_0xdab211)return;let _0x1dc8ff,_0x551bb7,_0x24b05a,_0x3a0986;switch(_0xdab211['commandName']){case'bulletedList':_0x24b05a=_0xdab211['commandParams'][0x0]['forceValue'],_0x3a0986=_0x1f34fa(_0xdab211['commandName']),_0x1dc8ff=_0x24b05a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3a0986&&_0x41f783['config']['get']('list.multiBlock')||(_0x1dc8ff='*Change\x20to:*\x20%0'),_0x551bb7={'type':'format','content':o(_0xd2d087,_0x1dc8ff,o(_0xd2d087,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x24b05a=_0xdab211['commandParams'][0x0]['forceValue'],_0x3a0986=_0x1f34fa(_0xdab211['commandName']),_0x1dc8ff=_0x24b05a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3a0986&&_0x41f783['config']['get']('list.multiBlock')||(_0x1dc8ff='*Change\x20to:*\x20%0'),_0x551bb7={'type':'format','content':o(_0xd2d087,_0x1dc8ff,o(_0xd2d087,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1dc8ff='*Indent:*\x20%0',_0x551bb7={'type':'format','content':o(_0xd2d087,_0x1dc8ff,o(_0xd2d087,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1dc8ff=function(_0x224d61){const _0x47edda=_0x224d61['getFirstRange']();let _0x5318c5=_0x47edda['start']['nodeAfter'];for(;_0x5318c5&&_0x47edda['containsItem'](_0x5318c5);){if(_0x5318c5['getAttribute']('listIndent')>0x0)return!0x1;_0x5318c5=_0x5318c5['nextSibling'];}return!0x0;}(_0x180154)?o(_0xd2d087,'*Format:*\x20remove\x20from\x20%0',o(_0xd2d087,function(_0x13713b){return'ELEMENT_'+_0x13713b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x180154))):o(_0xd2d087,'*Outdent:*\x20%0',o(_0xd2d087,'ELEMENT_LIST_ITEM')),_0x551bb7={'type':'format','content':_0x1dc8ff};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xdab211['multipleBlocks']&&(_0x1dc8ff='*Merge:*\x20%0',_0x551bb7={'type':'deletion','content':o(_0xd2d087,_0x1dc8ff,o(_0xd2d087,'ELEMENT_LIST_ITEM'))});}return _0x551bb7;});}}function le(_0x254d3d){let _0x34eb55=_0x254d3d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x34eb55;){const _0x59b717=_0x34eb55['getAttribute']('listItemId');if(!_0x59b717)return!0x1;if(_0x59b717==_0x254d3d['data']['newValue'])return'newValue';if(_0x59b717==_0x254d3d['data']['oldValue'])return'oldValue';_0x34eb55=_0x34eb55['previousSibling'];}return!0x1;}class ue extends _0x462782{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2a3496=this['editor']['config']['get']('list.properties'),_0x4ffc45=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a3496['styles']&&(_0x4ffc45['enableDefaultAttributesIntegration']('listStyle'),_0x4ffc45['registerBlockAttribute']('listStyle')),_0x2a3496['reversed']&&(_0x4ffc45['enableDefaultAttributesIntegration']('listReversed'),_0x4ffc45['registerBlockAttribute']('listReversed')),_0x2a3496['startIndex']&&(_0x4ffc45['enableDefaultAttributesIntegration']('listStart'),_0x4ffc45['registerBlockAttribute']('listStart'));const _0x13b27d={'type':'format','content':''};_0x4ffc45['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x437b46=this['editor']['locale'];_0x4ffc45['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x437b46,'FORMAT_LIST_REVERSED')),_0x4ffc45['descriptionFactory']['registerDescriptionCallback'](_0x164b94=>{const {data:_0x32dd83}=_0x164b94;if(_0x32dd83&&'listReversed'==_0x32dd83['key'])return null==_0x32dd83['newValue']||0x0==_0x32dd83['newValue']&&null==_0x32dd83['oldValue']?_0x13b27d:void 0x0;}),_0x4ffc45['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x437b46,'FORMAT_LIST_START')),_0x4ffc45['descriptionFactory']['registerDescriptionCallback'](_0x42bc84=>{const {data:_0x4de240}=_0x42bc84;if(_0x4de240&&'listStart'==_0x4de240['key'])return null==_0x4de240['newValue']||0x1==_0x4de240['newValue']&&null==_0x4de240['oldValue']?_0x13b27d:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4aafbc=>{if(_0x4aafbc['batch']['isUndo'])return!0x1;let _0x104307=!0x1;const _0x4fa2f4=_0x4ffc45['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb8196a=>{const _0x21a6ba=_0x4ffc45['_getAttributeKey'](_0xb8196a);return'listStart'==_0x21a6ba||'listReversed'==_0x21a6ba;});for(const _0x296acc of _0x4fa2f4){const _0x3d1166=_0x296acc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3d1166||'customNumbered'==_0x3d1166)continue;_0x4ffc45['_findSuggestions'](_0x296acc['getFirstRange'](),'attribute')['find'](_0x2db454=>'listType'==_0x4ffc45['_getAttributeKey'](_0x2db454['suggestion']))||(_0x4aafbc['removeMarker'](_0x296acc['getFirstMarker']()),_0x104307=!0x0);}return _0x104307;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xea00d4){const _0x5ee26a=this['editor']['locale'],{data:_0xa77229}=_0xea00d4,_0x4d5249={'type':'format','content':''};if(!_0xa77229||'listStyle'!=_0xa77229['key'])return;if(!_0xa77229['oldValue'])return'default'==_0xa77229['newValue']?_0x4d5249:{'type':'format','content':''+o(_0x5ee26a,'*Set\x20format:*\x20%0',o(_0x5ee26a,this['_getTranslationKeyForListStyle'](_0xa77229['newValue'])))};if(!_0xa77229['newValue']){if('default'==_0xa77229['oldValue'])return _0x4d5249;let _0x34d305=_0xea00d4['head'];for(;_0x34d305;){if(_0x34d305['data']&&'listType'==_0x34d305['data']['key']&&_0x34d305['data']['newValue'])return _0x4d5249;_0x34d305=_0x34d305['next'];}return{'type':'format','content':''+o(_0x5ee26a,'*Remove\x20format:*\x20%0',o(_0x5ee26a,this['_getTranslationKeyForListStyle'](_0xa77229['oldValue'])))};}if('default'!=_0xa77229['newValue'])return{'type':'format','content':''+o(_0x5ee26a,'*Set\x20format:*\x20%0',o(_0x5ee26a,this['_getTranslationKeyForListStyle'](_0xa77229['newValue'])))};let _0x838933=_0xea00d4['head'];for(;_0x838933;){if(_0x838933['data']&&'listType'==_0x838933['data']['key']&&_0x838933['data']['newValue']&&_0x838933['data']['oldValue'])return _0x4d5249;_0x838933=_0x838933['next'];}return{'type':'format','content':o(_0x5ee26a,'*Set\x20format:*\x20%0',o(_0x5ee26a,'ELEMENT_'+_0xea00d4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3d7c6b=this['editor'],_0x24572c=_0x3d7c6b['locale'];_0x3d7c6b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10ede5=>{if('formatBlock'!=_0x10ede5['type'])return;const {data:_0x530100}=_0x10ede5;if(!_0x530100)return;let _0x5137a2,_0x1acb28;switch(_0x530100['commandName']){case'listStyle':_0x5137a2='*Change\x20to:*\x20%0',_0x1acb28={'type':'format','content':o(_0x24572c,_0x5137a2,o(_0x24572c,this['_getTranslationKeyForListStyle'](_0x530100['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5137a2=_0x530100['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1acb28={'type':'format','content':o(_0x24572c,_0x5137a2)};break;case'listStart':_0x5137a2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1acb28={'type':'format','content':o(_0x24572c,_0x5137a2,_0x530100['commandParams'][0x0]['startIndex'])};}return _0x1acb28;});}['_getTranslationKeyForListStyle'](_0x295680){return'ELEMENT_'+function(_0x2f9d09){if(pe['includes'](_0x2f9d09))return'bulleted';if(ye['includes'](_0x2f9d09))return'numbered';return null;}(_0x295680)['toUpperCase']()+'_LIST_'+_0x295680['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x462782{static get['requires'](){return[_0x1e7b8b];}['init'](){const _0x2e5ba2=this['editor'],_0xfab857=_0x2e5ba2['plugins']['get']('TrackChangesEditing'),_0x2470ad=_0x2e5ba2['commands']['get']('enter');_0xfab857['enableCommand']('enter',()=>{_0x2e5ba2['model']['change'](_0x86d572=>{const _0x19fefd=_0x2e5ba2['model']['document']['selection'],_0x309ff0=_0x19fefd['getFirstPosition'](),_0x376126=_0x3a5b18['fromRange'](_0x19fefd['getFirstRange']());if(_0x2470ad['enterBlock'](_0x86d572)){const _0x2275c4=_0x2e5ba2['model']['createPositionAt'](_0x309ff0['parent']['nextSibling'],0x0),_0x1b21f1=_0x86d572['createRange'](_0x309ff0,_0x2275c4);_0xfab857['markInsertion'](_0x1b21f1);}else _0x86d572['setSelection'](_0x86d572['createRange'](_0x376126['end']));_0x376126['detach'](),_0x2470ad['fire']('afterExecute',{'writer':_0x86d572});});}),_0x2e5ba2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x2e5ba2,'split'),{'priority':'high'}),_0x2e5ba2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x43ed88,_0x54c748,_0x6912d6)=>{const _0x144720=_0x6912d6['mapper']['markerNameToElements'](_0x54c748['markerName']);if(_0x144720){for(const _0x1b9bba of _0x144720)_0x1b9bba['hasClass']('ck-suggestion-marker-split')&&(_0x6912d6['mapper']['unbindElementFromMarkerName'](_0x1b9bba,_0x54c748['markerName']),_0x6912d6['writer']['remove'](_0x1b9bba));}},{'priority':'high'}),_0x2e5ba2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x28b0e0,_0x478185,_0x3198b4)=>{_0x3198b4['options']['showSuggestionHighlights']&&_e(_0x2e5ba2,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x28b0e0,_0x478185,_0x3198b4);},{'priority':'high'});}}class J extends _0x462782{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x250984=this['editor']['plugins']['get']('TrackChangesEditing');_0x250984['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x250984['enableCommand']('findNext'),_0x250984['enableCommand']('findPrevious'),_0x250984['enableCommand']('replace'),_0x250984['enableCommand']('replaceAll');}['handleFindCommand'](_0xa17ae7,_0x18f8e2,_0x546bee={}){const _0x2c130d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xa17ae7(_0x5333a1=>('string'==typeof _0x18f8e2?_0x2c130d['findByTextCallback'](_0x18f8e2,_0x546bee):_0x18f8e2)(_0x5333a1)['filter'](_0x16af18=>!0x1===this['_isInDeletionRange'](_0x16af18,_0x5333a1['item'])),_0x546bee);}['_isInDeletionRange'](_0x4ca194,_0x301daf){const _0xcd4168=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x301daf,_0x4ca194['start']),this['editor']['model']['createPositionAt'](_0x301daf,_0x4ca194['end']));for(const _0x5c2e90 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xcd4168['getIntersection'](_0x5c2e90['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 _0x462782{['afterInit'](){const _0x557b6c=this['editor']['locale'],_0x442b68=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xf4b0fc,commandName:_0x5befc2}of ro)this['editor']['plugins']['has'](_0xf4b0fc)&&(_0x442b68['enableDefaultAttributesIntegration'](_0x5befc2),_0x442b68['registerInlineAttribute'](_0x5befc2));_0x557b6c['t'],_0x442b68['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x557b6c,'FORMAT_FONT_SIZE')),_0x442b68['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x557b6c,'FORMAT_FONT_FAMILY')),_0x442b68['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x557b6c,'FORMAT_FONT_COLOR')),_0x442b68['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x557b6c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31efdb=this['editor'],_0x5b30ee=_0x31efdb['locale'];_0x31efdb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c5b47=>{const _0x5f3ef6=_0x5b30ee['t'];if('formatInline'!=_0x3c5b47['type'])return;const {data:_0x392e01}=_0x3c5b47;if(null!=_0x392e01){if('fontSize'==_0x392e01['commandName']){const _0x1bebf0=_0x392e01['commandParams'][0x0]['value'];if(_0x1bebf0){const _0x510121=_0x5f3ef6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x35418a=>_0x35418a['model']==_0x1bebf0)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5b30ee,'*Set\x20font\x20size:*\x20%0',_0x510121)};}return{'type':'format','content':o(_0x5b30ee,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x392e01['commandName']){const _0x415917=_0x392e01['commandParams'][0x0]['value'];return _0x415917?{'type':'format','content':o(_0x5b30ee,'*Set\x20font\x20family:*\x20%0',_0x415917)}:{'type':'format','content':o(_0x5b30ee,'*Reset\x20font\x20family*')};}if('fontColor'==_0x392e01['commandName']){const _0x8dfe21=_0x392e01['commandParams'][0x0]['value'];if(_0x8dfe21){const _0x592ce1=_0x3ba08d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x11a8eb=>_0x11a8eb['model']==_0x8dfe21);let _0x888d7b=_0x8dfe21,_0x30dfe1='';return _0x592ce1&&(_0x888d7b=_0x592ce1['label'],_0x30dfe1=_0x5f3ef6(_0x888d7b)['toLowerCase']()),{'type':'format','content':o(_0x5b30ee,'*Set\x20font\x20color:*\x20%0',_0x30dfe1)['trim'](),'color':{'value':_0x8dfe21,'title':_0x30dfe1||_0x888d7b}};}return{'type':'format','content':o(_0x5b30ee,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x392e01['commandName']){const _0x2e3d70=_0x392e01['commandParams'][0x0]['value'];if(_0x2e3d70){const _0x5130cf=_0x3ba08d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x200ee1=>_0x200ee1['model']==_0x2e3d70);let _0x2e8226=_0x2e3d70,_0x455f76='';return _0x5130cf&&(_0x2e8226=_0x5130cf['label'],_0x455f76=_0x5f3ef6(_0x2e8226)['toLowerCase']()),{'type':'format','content':o(_0x5b30ee,'*Set\x20font\x20background\x20color:*\x20%0',_0x455f76)['trim'](),'color':{'value':_0x2e3d70,'title':_0x455f76||_0x2e8226}};}return{'type':'format','content':o(_0x5b30ee,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x462782{['afterInit'](){const _0x5447cf=this['editor'],_0x139843=_0x5447cf['plugins']['get']('TrackChangesEditing'),_0x5ac04f=_0x5447cf['commands']['get']('copyFormat'),_0x10d0c3=_0x5447cf['commands']['get']('pasteFormat');_0x5ac04f&&_0x10d0c3&&(_0x139843['enableDefaultAttributesIntegration']('pasteFormat'),_0x139843['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x15848f=this['editor'],_0x5b084e=_0x15848f['locale'];_0x15848f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x179cd4=>{if('formatBlock'!=_0x179cd4['type']&&'formatInline'!=_0x179cd4['type'])return;const {data:_0xb0eaa7}=_0x179cd4;if(_0xb0eaa7&&'pasteFormat'===_0xb0eaa7['commandName']){const _0xc79b89=[],_0x3d592b=_0xb0eaa7['commandParams'][0x0];for(const [_0x40a403,_0xacc939]of Object['entries'](_0x3d592b))_0xc79b89['push'](so(_0x15848f,_0x40a403,_0xacc939));return _0xc79b89['length']?{'type':'format','content':o(_0x5b084e,'*Set\x20format\x20to:*\x20%0',_0xc79b89['join'](',\x20'))}:{'type':'format','content':o(_0x5b084e,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5ae65c,_0x7a4be4,_0x559fb2){const _0x5b0643=_0x5ae65c['locale']['t'],_0x45a093=_0x7a4be4['split'](/(?=[A-Z])/)['join']('\x20'),_0x565456=_0x5b0643(_0x45a093['charAt'](0x0)['toUpperCase']()+_0x45a093['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x559fb2)return _0x565456;if('fontColor'===_0x7a4be4||'fontBackgroundColor'===_0x7a4be4){const _0x11b833=_0x3ba08d(_0x5ae65c['config']['get']('fontColor.colors'))['find'](_0x356ff1=>_0x356ff1['model']==_0x559fb2);return _0x565456+'\x20('+(_0x11b833?_0x5b0643(_0x11b833['label'])['toLowerCase']():_0x559fb2)+')';}if('fontSize'===_0x7a4be4&&isNaN(parseFloat(_0x559fb2))){const _0x5d551e=_0x5ae65c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5ae65c['config']['get']('fontSize.options'))['find'](_0x1e9b2f=>_0x1e9b2f['model']==_0x559fb2);return _0x565456+'\x20('+(_0x5d551e?_0x5b0643(_0x5d551e['title'])['toLowerCase']():_0x559fb2)+')';}return _0x565456+'\x20('+_0x559fb2+')';}class Y extends _0x462782{['_headingOptions'];['afterInit'](){const _0x2f6219=this['editor'];if(!_0x2f6219['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2f6219['config']['get']('heading.options');const _0x5c861c=_0x2f6219['locale'],_0x134004=_0x2f6219['plugins']['get']('TrackChangesEditing');_0x134004['enableDefaultAttributesIntegration']('heading');for(const _0x552204 of this['_headingOptions'])'paragraph'!=_0x552204['model']&&_0x134004['descriptionFactory']['registerElementLabel'](_0x552204['model'],_0x213cd6=>{const _0x527838=this['_getHeadingLevel'](_0x552204['model']);return null!==_0x527838?_0x31960f(_0x213cd6,_0x527838):_0x5280d8(_0x213cd6,_0x552204['title']);});function _0x31960f(_0x2c1ac3,_0x5dcad5){return o(_0x5c861c,'ELEMENT_HEADING',[_0x2c1ac3,_0x5dcad5]);}function _0x5280d8(_0x90be,_0x313bcc){return o(_0x5c861c,'ELEMENT_HEADING_CUSTOM',[_0x90be,_0x313bcc]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37e81c=this['editor'],_0x471a24=_0x37e81c['locale'];function _0x16fb65(_0x16e68f,_0x22b6d8){return o(_0x471a24,'ELEMENT_HEADING_CUSTOM',[_0x16e68f,_0x22b6d8]);}_0x37e81c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33f581=>{if('formatBlock'!=_0x33f581['type'])return;const {data:_0x5247c7}=_0x33f581;if(_0x5247c7&&'heading'==_0x5247c7['commandName']){const _0x5d2732=_0x5247c7['commandParams'][0x0]['value'],_0x2a49d9=this['_getHeadingLevel'](_0x5d2732);if(null!==_0x2a49d9)return{'type':'format','content':o(_0x471a24,'*Change\x20to:*\x20%0',(_0x35412c=0x1,_0xe23528=_0x2a49d9,o(_0x471a24,'ELEMENT_HEADING',[_0x35412c,_0xe23528])))};const _0x1a9620=this['_headingOptions']['find'](_0x255617=>_0x255617['model']===_0x5d2732)['title'];return{'type':'format','content':o(_0x471a24,'*Change\x20to:*\x20%0',_0x16fb65(0x1,_0x1a9620))};}var _0x35412c,_0xe23528;});}['_getHeadingLevel'](_0x1d3621){const _0xbc832d=_0x1d3621['match'](/^heading(\d+)/);if(_0xbc832d)return _0xbc832d[0x1];const _0x111690=this['_headingOptions']?.['find'](_0x2bcccd=>_0x2bcccd['model']==_0x1d3621);if(_0x111690&&_0x111690['view']){const _0x4ea820=_0x111690['view'],_0x366615=(_0x4ea820['name']??_0x4ea820)['match'](/^h(\d+)/);if(_0x366615)return _0x366615[0x1];}return null;}}class Z extends _0x462782{['afterInit'](){const _0x4197a0=this['editor'];if(!_0x4197a0['plugins']['has']('HighlightEditing'))return;const _0x50cd75=_0x4197a0['plugins']['get']('TrackChangesEditing'),_0x26e8db=_0x4197a0['locale'];_0x50cd75['enableDefaultAttributesIntegration']('highlight'),_0x50cd75['registerInlineAttribute']('highlight'),_0x50cd75['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x26e8db,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x129825=this['editor'],_0x42dfd2=_0x129825['locale'];_0x129825['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12b4bb=>{if('formatInline'!=_0x12b4bb['type'])return;const {data:_0x443472}=_0x12b4bb;if(_0x443472&&'highlight'==_0x443472['commandName']){const _0x5b386d=_0x42dfd2['t'],_0x1494f7=_0x443472['commandParams'][0x0]['value'];if(_0x1494f7){const _0x211e35=_0x129825['config']['get']('highlight.options')['find'](_0x42ec66=>_0x42ec66['model']==_0x1494f7),_0x2483b9=_0x5b386d(_0x211e35['title'])['toLowerCase']();return{'type':'format','content':o(_0x42dfd2,'*Set\x20highlight:*\x20%0',_0x2483b9),'color':{'value':_0x211e35['color'],'title':_0x211e35['title']}};}return{'type':'format','content':o(_0x42dfd2,'*Remove\x20highlight*',o(_0x42dfd2,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x462782{['afterInit'](){const _0x4a7f63=this['editor'];if(!_0x4a7f63['plugins']['has']('HorizontalLineEditing'))return;_0x4a7f63['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4c0cb4=_0x4a7f63['plugins']['get']('TrackChangesEditing'),_0x354a95=_0x4a7f63['locale'];_0x4c0cb4['descriptionFactory']['registerElementLabel']('horizontalLine',_0x6bedd7=>o(_0x354a95,'ELEMENT_HORIZONTAL_LINE',_0x6bedd7)),_0x4a7f63['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1ca84d,{writer:_0x32a5f6,options:_0xcd3c4d})=>{if(!_0xcd3c4d['showSuggestionHighlights'])return null;const _0x46a9aa=_0x32a5f6['createContainerElement']('div'),_0x4eb6ac=_0x32a5f6['createEmptyElement']('hr');return _0x32a5f6['addClass']('ck-horizontal-line',_0x46a9aa),_0x32a5f6['insert'](_0x32a5f6['createPositionAt'](_0x46a9aa,0x0),_0x4eb6ac),_0x46a9aa;},'converterPriority':'high'});}}class et extends _0x462782{['afterInit'](){const _0x3674b3=this['editor'];if(!_0x3674b3['plugins']['has']('HtmlEmbed'))return;const _0x12e5fd=_0x3674b3['plugins']['get']('TrackChangesEditing'),_0x1fda09=_0x3674b3['locale'];_0x12e5fd['descriptionFactory']['registerElementLabel']('rawHtml',_0x5d3d17=>o(_0x1fda09,'ELEMENT_HTML_EMBED',_0x5d3d17)),_0x12e5fd['enableDefaultAttributesIntegration']('htmlEmbed'),_0x12e5fd['registerBlockAttribute']('value'),_0x12e5fd['descriptionFactory']['registerDescriptionCallback'](_0x4a02ac=>{if('attribute'!=_0x4a02ac['type'])return;const {data:_0xa4a05c}=_0x4a02ac;if(_0xa4a05c&&'value'==_0xa4a05c['key']&&_0x4a02ac['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x28f271=o(_0x1fda09,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1fda09,'*Change\x20%0\x20content*',_0x28f271)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9e70db=this['editor'],_0x3d1d8d=_0x9e70db['locale'];_0x9e70db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x581026=>{if('formatBlock'!=_0x581026['type'])return;const {data:_0x2d536f}=_0x581026;if(_0x2d536f&&'htmlEmbed'==_0x2d536f['commandName']){const _0x4f86eb=o(_0x3d1d8d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3d1d8d,'*Change\x20%0\x20content*',_0x4f86eb)};}});}}class it extends _0x462782{['afterInit'](){const _0x48eb28=this['editor'];if(!_0x48eb28['plugins']['has']('ImageEditing'))return;const _0x57a2f7=_0x48eb28['plugins']['get']('TrackChangesEditing'),_0x55db69=_0x48eb28['plugins']['get']('ImageUtils'),_0x364191=_0x48eb28['locale'];_0x57a2f7['enableCommand']('insertImage'),_0x57a2f7['descriptionFactory']['registerElementLabel']('imageBlock',_0x138571=>o(_0x364191,'ELEMENT_IMAGE',_0x138571)),_0x57a2f7['descriptionFactory']['registerElementLabel']('imageInline',_0x30ddb8=>o(_0x364191,'ELEMENT_INLINE_IMAGE',_0x30ddb8)),_0x57a2f7['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x364191,'ELEMENT_CAPTION')),_0x48eb28['plugins']['has']('ImageUploadEditing')&&_0x57a2f7['enableCommand']('uploadImage'),_0x48eb28['plugins']['has']('ImageBlockEditing')&&_0x48eb28['plugins']['has']('ImageInlineEditing')&&(_0x57a2f7['enableCommand']('imageTypeInline',(_0x2dbbee,_0x15e8b7)=>{const _0x303fd9=_0x55db69['getClosestSelectedImageElement'](_0x48eb28['model']['document']['selection']);_0x48eb28['model']['change'](()=>{_0x57a2f7['markBlockFormat'](_0x303fd9,{'commandName':'imageTypeInline','commandParams':[_0x15e8b7]},[],'convertBlockImageToInline');});}),_0x57a2f7['enableCommand']('imageTypeBlock',(_0x406314,_0xc286a2)=>{_0x48eb28['model']['change'](_0x457070=>{let _0x280833=_0x55db69['getClosestSelectedImageElement'](_0x48eb28['model']['document']['selection']),_0x1eba8c=_0x457070['createRangeOn'](_0x280833);const _0x1e1a93=_0xc2eba5['fromPosition'](_0x1eba8c['start'],'toPrevious'),_0x3e4163=_0xc2eba5['fromPosition'](_0x1eba8c['end'],'toNext');_0x57a2f7['forceDefaultExecution'](()=>_0x406314(_0xc286a2)),_0x280833=_0x55db69['getClosestSelectedImageElement'](_0x48eb28['model']['document']['selection']),_0x1eba8c=_0x457070['createRangeOn'](_0x280833);const _0x52cc10=_0x457070['createRange'](_0x1e1a93,_0x3e4163);_0x1e1a93['detach'](),_0x3e4163['detach'](),_0x57a2f7['markBlockFormat'](_0x280833,{'commandName':'imageTypeInline','commandParams':[_0xc286a2]},[],'convertInlineImageToBlock'),_0x52cc10['start']['isBefore'](_0x1eba8c['start'])&&_0x57a2f7['markInsertion'](_0x457070['createRange'](_0x52cc10['start'],_0x1eba8c['start']),'convertInlineImageToBlock'),_0x1eba8c['end']['isBefore'](_0x52cc10['end'])&&_0x57a2f7['markInsertion'](_0x457070['createRange'](_0x1eba8c['end'],_0x52cc10['end']),'convertInlineImageToBlock');});}),_0x57a2f7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x57a2f7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x57a2f7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x57a2f7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x57a2f7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x57a2f7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4223e2])=>{const _0xbcfb49=_0x57a2f7['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3bc32a=_0x4223e2['start'],_0x206f6a=_0x4223e2['end'];const _0x27b68e=_0x48eb28['model']['schema']['getNearestSelectionRange'](_0x3bc32a,'backward'),_0x132666=_0x48eb28['model']['schema']['getNearestSelectionRange'](_0x206f6a,'forward');_0x27b68e['isCollapsed']&&(_0x3bc32a=_0x27b68e['start']),_0x132666['isCollapsed']&&(_0x206f6a=_0x132666['end']),_0xbcfb49([_0x48eb28['model']['createRange'](_0x3bc32a,_0x206f6a)]);}),_0x57a2f7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x185512),_0x57a2f7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x185512)),_0x48eb28['plugins']['has']('ImageCaptionEditing')&&(_0x57a2f7['enableCommand']('toggleImageCaption',(_0x39a1c6,_0x51a3ae)=>{const _0x480827=_0x48eb28['plugins']['get']('ImageCaptionUtils');let _0x51c7b4=_0x55db69['getClosestSelectedImageElement'](_0x48eb28['model']['document']['selection']),_0x208abc=_0x480827['getCaptionFromImageModelElement'](_0x51c7b4);_0x48eb28['model']['change'](()=>{if(_0x208abc)return void _0x57a2f7['markDeletion'](_0x48eb28['model']['createRangeOn'](_0x208abc));const _0x588b26=_0x55db69['isBlockImage'](_0x51c7b4);_0x39a1c6(_0x51a3ae),_0x51c7b4=_0x55db69['getClosestSelectedImageElement'](_0x48eb28['model']['document']['selection']),_0x208abc=_0x480827['getCaptionFromImageModelElement'](_0x51c7b4),_0x57a2f7['markInsertion'](_0x48eb28['model']['createRangeOn'](_0x208abc),_0x588b26?null:'imageCaption');});}),_0x57a2f7['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x185512));const _0x506f68=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x477923(_0x459382,_0x22bf7b){const _0x9d523b=_0x506f68['findIndex'](({type:_0x392666,subType:_0x41bf24})=>_0x459382['type']==_0x392666&&_0x459382['subType']==_0x41bf24),_0x10878c=_0x506f68['findIndex'](({type:_0xcf339b,subType:_0x51c85c})=>_0x22bf7b['type']==_0xcf339b&&_0x22bf7b['subType']==_0x51c85c);if(_0x9d523b<0x0||_0x10878c<0x0)return!0x1;const _0x200e25=_0x459382['getFirstRange'](),_0xf9688e=_0x22bf7b['getFirstRange']();if((0x0==_0x9d523b||0x1==_0x9d523b)&&0x2==_0x10878c&&_0x200e25['isIntersecting'](_0xf9688e))return!0x0;if(0x2==_0x9d523b&&0x3==_0x10878c){const _0x36d50d=_0x57a2f7['_findSuggestions'](_0x200e25,'insertion')['filter'](({suggestion:_0x4cbfc7,meta:_0x1ddb41})=>_0x1ddb41['isOwn']&&'convertInlineImageToBlock'==_0x4cbfc7['subType']);if(_0x36d50d['length']>0x1&&_0xf9688e['end']['isEqual'](_0x200e25['start']))return!0x0;if(0x1==_0x36d50d['length']&&(_0x200e25['start']['isEqual'](_0xf9688e['end'])||_0x200e25['end']['isEqual'](_0xf9688e['start'])))return!0x0;}if(0x3==_0x9d523b&&0x3==_0x10878c&&_0x200e25['start']['isBefore'](_0xf9688e['start'])){const _0x1cd082=_0x200e25['end']['nodeAfter'],_0x2bfc7b=_0xf9688e['start']['nodeBefore'];return _0x55db69['isBlockImage'](_0x1cd082)&&_0x1cd082===_0x2bfc7b;}return!0x1;}function _0x185512(_0x46c1af,_0x3f42b9){return _0x477923(_0x46c1af,_0x3f42b9)?[_0x46c1af,_0x3f42b9]:_0x477923(_0x3f42b9,_0x46c1af)?[_0x3f42b9,_0x46c1af]:null;}_0x48eb28['plugins']['has']('ImageResize')&&(_0x57a2f7['enableDefaultAttributesIntegration']('resizeImage'),_0x57a2f7['registerBlockAttribute']('resizedWidth'),_0x57a2f7['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x364191,'FORMAT_IMAGE_SIZE'))),_0x48eb28['plugins']['has']('ImageTextAlternativeEditing')&&(_0x57a2f7['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x57a2f7['registerBlockAttribute']('alt')),_0x57a2f7['descriptionFactory']['registerDescriptionCallback'](_0x4b3494=>{if(!!_0x506f68['find'](({type:_0x191f13,subType:_0x13228d})=>_0x4b3494['type']==_0x191f13&&_0x4b3494['subType']==_0x13228d))return _0x4b3494['previous']?{}:void 0x0;}),_0x57a2f7['descriptionFactory']['registerDescriptionCallback'](_0x3a1774=>{if('insertion'==_0x3a1774['type']||'deletion'==_0x3a1774['type']){const _0x5e8e8a=_0x3a1774['getContainedElement']();if(_0x5e8e8a&&_0x5e8e8a['is']('element','caption'))return{'type':'insertion'==_0x3a1774['type']?'addObject':'removeObject','element':_0x5e8e8a,'quantity':0x1};}}),_0x57a2f7['descriptionFactory']['registerDescriptionCallback'](_0x49dc6d=>'formatBlock'==_0x49dc6d['type']&&'convertInlineImageToBlock'==_0x49dc6d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x49dc6d['type']&&'convertBlockImageToInline'==_0x49dc6d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x57a2f7['descriptionFactory']['registerDescriptionCallback'](_0x5619c2=>{if('attribute'!=_0x5619c2['type'])return;const {data:_0x40910f}=_0x5619c2;if(!_0x40910f||'alt'!=_0x40910f['key'])return;const _0x1f2e1e=_0x40910f['newValue'];return _0x1f2e1e?{'type':'format','content':o(_0x364191,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1f2e1e+'\x22')}:{'type':'format','content':o(_0x364191,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x202212=this['editor'],_0x442816=_0x202212['locale'];_0x202212['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17027e=>{if('formatBlock'!=_0x17027e['type']&&'formatInline'!=_0x17027e['type'])return;const {data:_0x38eeb8}=_0x17027e;if(_0x38eeb8){if('imageTextAlternative'==_0x38eeb8['commandName']){const _0x40dec4=_0x38eeb8['commandParams'][0x0]['newValue'];return _0x40dec4?{'type':'format','content':o(_0x442816,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x40dec4+'\x22')}:{'type':'format','content':o(_0x442816,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x38eeb8['commandName']){const _0x46de45=_0x38eeb8['commandParams'][0x0]['width'];return _0x46de45?{'type':'format','content':o(_0x442816,'*Set\x20image\x20width:*\x20%0',_0x46de45)}:{'type':'format','content':o(_0x442816,'*Reset\x20image\x20width*')};}}});}}class st extends _0x462782{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2bb98a=this['editor']['locale'],_0x4137b7=this['editor']['plugins']['get']('TrackChangesEditing');_0x4137b7['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4137b7['registerBlockAttribute']('src'),_0x4137b7['descriptionFactory']['registerDescriptionCallback'](_0x553a3d=>{if('attribute'!=_0x553a3d['type'])return;const {data:_0x23177a}=_0x553a3d;return _0x23177a&&'src'==_0x23177a['key']?_0x23177a['newValue']&&_0x23177a['oldValue']?{'type':'format','content':o(_0x2bb98a,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4eabdc=this['editor']['plugins']['get']('TrackChangesEditing');_0x4eabdc['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4eabdc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4eabdc['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4eabdc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55dda8=this['editor'],_0x255771=_0x55dda8['locale'];_0x55dda8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b979c=>{if('formatBlock'!=_0x4b979c['type']&&'formatInline'!=_0x4b979c['type'])return;const {data:_0x506cbc}=_0x4b979c;if(!_0x506cbc||'replaceImageSource'!=_0x506cbc['commandName'])return;return{'type':'format','content':o(_0x255771,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x462782{['afterInit'](){const _0x228436=this['editor'];if(!_0x228436['plugins']['has']('ImageStyleEditing'))return;const _0x12d68e=_0x228436['plugins']['get']('TrackChangesEditing'),_0x9cfed3=_0x228436['plugins']['get']('ImageUtils'),_0x48220d={};_0x12d68e['enableCommand']('imageStyle',(_0x51c754,_0x58995e)=>{const _0x3a6d8c=_0x228436['plugins']['get']('Users')['me'],_0x2bf634=_0x228436['commands']['get']('imageStyle');let _0x1f6ab8=_0x9cfed3['getClosestSelectedImageElement'](_0x228436['model']['document']['selection']),_0x3c35b2=_0x228436['model']['createRangeOn'](_0x1f6ab8),_0x495883=_0x2bf634['value'];if(_0x495883==_0x58995e['value'])return;const _0x5734e2={'commandName':'imageStyle','commandParams':[_0x58995e],'formatGroupId':_0xeabe53()};_0x228436['model']['change'](()=>{if(_0x12d68e['getSuggestions']()['filter'](_0x53d583=>_0x53d583['isInContent']&&_0x3a6d8c==_0x53d583['author']&&('formatBlock'==_0x53d583['type']||'formatInline'==_0x53d583['type'])&&('imageStylePreApply'==_0x53d583['subType']||'imageStylePostApply'==_0x53d583['subType'])&&_0x53d583['getFirstRange']()['isEqual'](_0x3c35b2))['forEach'](_0x3f353c=>_0x12d68e['discardSuggestion'](_0x3f353c['head'])),_0x1f6ab8=_0x9cfed3['getClosestSelectedImageElement'](_0x228436['model']['document']['selection']),_0x3c35b2=_0x228436['model']['createRangeOn'](_0x1f6ab8),_0x2bf634['refresh'](),_0x228436['commands']['get']('imageTypeInline')['refresh'](),_0x228436['commands']['get']('imageTypeBlock')['refresh'](),_0x495883=_0x2bf634['value'],_0x495883!=_0x58995e['value'])return _0x9cfed3['isInlineImage'](_0x1f6ab8)&&_0x2bf634['shouldConvertImageType'](_0x58995e['value'],_0x1f6ab8)?(_0x51c754({..._0x58995e,'setImageSizes':!0x1}),_0x1f6ab8=_0x9cfed3['getClosestSelectedImageElement'](_0x228436['model']['document']['selection']),void _0x12d68e['markBlockFormat'](_0x1f6ab8,{..._0x5734e2,'commandReversedParams':[{'value':_0x495883||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x9cfed3['isBlockImage'](_0x1f6ab8)?_0x12d68e['markBlockFormat'](_0x1f6ab8,_0x5734e2,[],'imageStylePostApply'):_0x12d68e['markInlineFormat'](_0x3c35b2,_0x5734e2,'imageStylePostApply'));});});for(const _0x15cd86 of _0x228436['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x48220d[_0x15cd86['name']]=_0x15cd86['title']['toLowerCase']();_0x12d68e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x12d68e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x12d68e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x12d68e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xcee9f7])=>{_0x9cfed3['setImageNaturalSizeAttributes'](_0xcee9f7['getContainedElement']());}),_0x12d68e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2b4847,_0x44475a)=>{_0x12d68e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2b4847,{'commandName':_0x44475a['commandName'],'commandParams':_0x44475a['commandReversedParams']});}),_0x12d68e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x33d468,_0x526c18){if(_0x1a31cb(_0x33d468,_0x526c18))return[_0x33d468,_0x526c18];if(_0x1a31cb(_0x526c18,_0x33d468))return[_0x526c18,_0x33d468];return null;});const _0x4acbf8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1a31cb(_0x1da94d,_0xb4c4fb){const _0x2235c0=_0x4acbf8['findIndex'](({type:_0x515508,subType:_0x34f341})=>_0x1da94d['type']==_0x515508&&_0x1da94d['subType']==_0x34f341),_0x1af5a1=_0x4acbf8['findIndex'](({type:_0x5d599c,subType:_0x4e1961})=>_0xb4c4fb['type']==_0x5d599c&&_0xb4c4fb['subType']==_0x4e1961);if(_0x2235c0<0x0||_0x1af5a1<0x0)return!0x1;const _0x4cfc74=_0x1da94d['getFirstRange'](),_0x4d024c=_0xb4c4fb['getFirstRange']();if((0x0==_0x2235c0||0x1==_0x2235c0)&&0x2==_0x1af5a1&&_0x4cfc74['isIntersecting'](_0x4d024c))return!0x0;if(0x2==_0x2235c0&&0x3==_0x1af5a1){const _0x5edfce=_0x12d68e['_findSuggestions'](_0x4cfc74,'insertion')['filter'](({suggestion:_0x49ee46,meta:_0x5ce47b})=>_0x5ce47b['isOwn']&&'convertInlineImageToBlock'==_0x49ee46['subType']);if(_0x5edfce['length']>0x1&&_0x4d024c['end']['isEqual'](_0x4cfc74['start']))return!0x0;if(0x1==_0x5edfce['length']&&(_0x4cfc74['start']['isEqual'](_0x4d024c['end'])||_0x4cfc74['end']['isEqual'](_0x4d024c['start'])))return!0x0;}if(0x3==_0x2235c0&&0x3==_0x1af5a1&&_0x4cfc74['start']['isBefore'](_0x4d024c['start'])){const _0xeb0d4a=_0x4cfc74['end']['nodeAfter'],_0x4ffe71=_0x4d024c['start']['nodeBefore'];return _0x9cfed3['isBlockImage'](_0xeb0d4a)&&_0xeb0d4a===_0x4ffe71;}return!0x1;}_0x228436['model']['document']['registerPostFixer'](()=>{let _0x3c8e07=!0x1;const _0x17a60b=Array['from'](_0x228436['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4a4086,data:_0x30d1af}of _0x17a60b){const {group:_0x54cfd9,type:_0x36eb16,subType:_0xa7029a,id:_0x2933df}=_0x12d68e['_splitMarkerName'](_0x4a4086);if('suggestion'==_0x54cfd9&&_0x12d68e['hasSuggestion'](_0x2933df)){if('formatBlock'==_0x36eb16&&('imageStylePreApply'==_0xa7029a||'imageStylePostApply'==_0xa7029a)){const _0x3f9426=_0x12d68e['getSuggestion'](_0x2933df);if(_0x30d1af['newRange']){const _0x1ea6db=_0x3f9426['getFirstRange']()['getContainedElement']();if(_0x9cfed3['isBlockImage'](_0x1ea6db))continue;_0x12d68e['discardSuggestion'](_0x3f9426),_0x3c8e07=!0x0;}}if('insertion'==_0x36eb16&&'imageCaption'==_0xa7029a&&!_0x30d1af['newRange']){const _0xcc689e=_0x12d68e['getSuggestion'](_0x2933df);_0xcc689e['next']&&_0xcc689e['next']['isInContent']&&(_0x12d68e['discardSuggestion'](_0xcc689e['next']),_0x3c8e07=!0x0);}}}return _0x3c8e07;}),this['_registerLegacyDescription'](_0x48220d);}['_registerLegacyDescription'](_0x58f689){const _0x39f90c=this['editor'],_0x5d409e=_0x39f90c['locale'];_0x39f90c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a8ef4=>{if('formatBlock'!=_0x2a8ef4['type']&&'formatInline'!=_0x2a8ef4['type'])return;const {data:_0x16ea10}=_0x2a8ef4;if(!_0x16ea10||'imageStyle'!=_0x16ea10['commandName'])return;const _0x5326f4=_0x16ea10['commandParams'][0x0]['value'];return _0x3bd882('side'===_0x5326f4?o(_0x5d409e,'FORMAT_SIDE_IMAGE'):_0x58f689[_0x5326f4]||_0x5326f4);function _0x3bd882(_0x39ca09){return{'type':'format','content':o(_0x5d409e,'*Format:*\x20%0',_0x39ca09)};}});}}class ot extends _0x462782{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3be51a){super(_0x3be51a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4c380e=this['editor'],_0xe3ac02=_0x4c380e['commands']['get']('importWord'),_0x373eb6=_0x4c380e['commands']['get']('trackChanges');_0xe3ac02&&(_0xe3ac02['on']('execute',(_0x2c5ed4,[,_0x4f8641])=>{this['_trackChangesValueDuringImport']=_0x373eb6['value'],_0x4f8641['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xe3ac02,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xe3ac02,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x373eb6['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4c380e['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x25b494,_0x2a2c4b){const {suggestions:_0x3a6e73}=_0x2a2c4b,_0x3d5627=this['editor']['commands']['get']('trackChanges'),_0x530e38=_0x3d5627['value'];this['_trackChangesValueDuringImport']!==_0x530e38&&(_0x3d5627['execute'](),this['_trackChangesExecuted']=!0x0),_0x3a6e73&&_0x3a6e73['forEach'](({id:_0x351c6b,type:_0x1cc60a,author:_0x31d346,created_at:_0x514b6b})=>{const _0x4c4849={'id':_0x351c6b,'type':_0x1cc60a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x31d346,'createdAt':_0x514b6b?new Date(_0x514b6b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4c4849);});}}class rt extends _0x462782{['afterInit'](){const _0xfe5ffa=this['editor'],_0x3de698=_0xfe5ffa['plugins']['get']('TrackChangesEditing');if(_0xfe5ffa['plugins']['has']('IndentEditing')&&(_0x3de698['enableCommand']('indent'),_0x3de698['enableCommand']('outdent')),_0xfe5ffa['plugins']['has']('IndentBlock')){for(const _0x5f0499 of['indentBlock','outdentBlock'])_0x3de698['enableDefaultAttributesIntegration'](_0x5f0499);}const _0x39618a=_0xfe5ffa['locale'];_0x3de698['registerBlockAttribute']('blockIndent'),_0x3de698['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x39618a,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x61e847=this['editor'],_0x5a0259=_0x61e847['locale'],_0x2fc5f5=_0x61e847['plugins']['get']('TrackChangesEditing');_0x2fc5f5['descriptionFactory']['registerDescriptionCallback'](_0x5ec848=>{if('formatBlock'!=_0x5ec848['type'])return;const {data:_0x1525ab}=_0x5ec848;if(!_0x1525ab)return;if('indentBlock'!=_0x1525ab['commandName']&&'outdentBlock'!=_0x1525ab['commandName'])return;const _0x26dd10=_0x5ec848['getItems']()[0x0],_0x24e5fd=_0x2fc5f5['descriptionFactory']['getItemLabel'](_0x26dd10);return'indentBlock'==_0x1525ab['commandName']?{'type':'format','content':o(_0x5a0259,'*Indent:*\x20%0',_0x24e5fd)}:'outdentBlock'==_0x1525ab['commandName']?{'type':'format','content':o(_0x5a0259,'*Outdent:*\x20%0',_0x24e5fd)}:void 0x0;});}}class at extends _0x462782{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x462782{['afterInit'](){const _0x117b4c=this['editor'];if(!_0x117b4c['plugins']['has']('LinkEditing'))return;const _0x57d8b8=_0x117b4c['plugins']['get']('TrackChangesEditing'),_0x17819a=_0x117b4c['commands']['get']('link');_0x57d8b8['enableDefaultAttributesIntegration']('link'),_0x57d8b8['enableDefaultAttributesIntegration']('unlink'),_0x57d8b8['registerInlineAttribute']('linkHref');for(const _0x16b76d of _0x17819a['manualDecorators'])_0x57d8b8['registerInlineAttribute'](_0x16b76d['id']),_0x57d8b8['descriptionFactory']['registerAttributeLabel'](_0x16b76d['id'],'link\x20('+_0x16b76d['label']['toLowerCase']()+')');_0x57d8b8['descriptionFactory']['registerDescriptionCallback'](_0x163069=>{if('attribute'!=_0x163069['type'])return;const {data:_0x709d68}=_0x163069;if(!_0x709d68||'linkHref'!=_0x709d68['key'])return;const _0x14159=_0x709d68['newValue'],_0x1241f4=_0x117b4c['locale'];return{'type':'format','content':null==_0x14159?o(_0x1241f4,'*Remove\x20link*'):o(_0x1241f4,'*Set\x20link:*\x20%0','\x22'+_0x14159+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24041a=this['editor'],_0x14270d=_0x24041a['locale'];_0x24041a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d30e9=>{if('formatInline'!=_0x5d30e9['type'])return;const {data:_0x1ca9cc}=_0x5d30e9;if(_0x1ca9cc){if('link'==_0x1ca9cc['commandName']){const _0x15b23b=_0x1ca9cc['commandParams'][0x0];return{'type':'format','content':o(_0x14270d,'*Set\x20link:*\x20%0','\x22'+_0x15b23b+'\x22')};}return'unlink'==_0x1ca9cc['commandName']?{'type':'format','content':o(_0x14270d,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x462782{['afterInit'](){const _0x575808=this['editor'],_0x547774=_0x575808['locale'];if(!_0x575808['plugins']['has']('LegacyListEditing'))return;const _0x5420a7=_0x575808['plugins']['get']('TrackChangesEditing'),_0x7ed3b2=_0x575808['plugins']['has']('LegacyTodoListEditing');function _0x4556e0(_0x30457e){return()=>{const _0x4b87a8=_0x575808['model']['document']['selection'],_0x242853=_0x575808['commands']['get'](_0x30457e);if(_0x242853['value'])return void _0x575808['execute']('paragraph',{});const _0x28cb99=_0x30457e['slice'](0x0,-0x4),_0x36e4f9=function(_0x537864,_0x169a4a,_0x201c3e){let _0x41e446=Array['from'](_0x537864)['filter'](_0x58ac80=>function(_0x5a0e90,_0x103e85){return _0x103e85['checkChild'](_0x5a0e90['parent'],'listItem')&&!_0x103e85['isObject'](_0x5a0e90);}(_0x58ac80,_0x201c3e));_0x41e446=_0x41e446['filter'](_0x5f267c=>!_0x5f267c['is']('element','listItem')||_0x5f267c['getAttribute']('listType')!=_0x169a4a);const _0x3262e6=new Set();for(const _0x1c9500 of _0x41e446)_0x1c9500['is']('element','listItem')?_0x3262e6['add'](me(_0x1c9500)):_0x3262e6['add'](_0x1c9500);return Array['from'](_0x3262e6);}(_0x4b87a8['getSelectedBlocks'](),_0x28cb99,_0x575808['model']['schema']);_0x575808['model']['change'](()=>{for(const _0x39a619 of _0x36e4f9)_0x5420a7['markBlockFormat'](_0x39a619,{'commandName':_0x30457e,'commandParams':[{'forceValue':!_0x242853['value']}],'formatGroupId':'blockName'},fe(_0x39a619));});};}function _0x2c8247(_0xa2c6cf){return()=>{const _0x50c031=function(_0x46226a){let _0x39f3c9=Array['from'](_0x46226a);const _0x1b25a9=_0x39f3c9['findIndex'](_0x48e66f=>'listItem'!=_0x48e66f['name']);return _0x1b25a9>-0x1&&(_0x39f3c9=_0x39f3c9['slice'](0x0,_0x1b25a9)),_0x39f3c9;}(_0x575808['model']['document']['selection']['getSelectedBlocks']()),_0x2b6a90=_0x575808['model']['createRange'](_0x575808['model']['createPositionAt'](_0x50c031[0x0],'before'),_0x575808['model']['createPositionAt'](_0x50c031[_0x50c031['length']-0x1],'end'));_0x575808['model']['change'](()=>{_0x5420a7['markBlockFormat'](_0x2b6a90,{'commandName':_0xa2c6cf,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4e6f22){const _0xc57fa9=new Set();for(const _0x33d290 of _0x4e6f22){let _0x4dc210=_0x33d290['nextSibling'];for(;_0x4dc210&&_0x4dc210['getAttribute']('listIndent')>_0x33d290['getAttribute']('listIndent');)_0xc57fa9['add'](_0x4dc210),_0x4dc210=_0x4dc210['nextSibling'];}return Array['from'](_0xc57fa9);}(_0x50c031));});};}_0x5420a7['enableCommand']('numberedList',_0x4556e0('numberedList')),_0x5420a7['enableCommand']('bulletedList',_0x4556e0('bulletedList')),_0x7ed3b2&&_0x5420a7['enableCommand']('todoList',_0x4556e0('todoList')),_0x5420a7['enableCommand']('indentList',_0x2c8247('indentList')),_0x5420a7['enableCommand']('outdentList',_0x2c8247('outdentList')),_0x7ed3b2&&_0x5420a7['enableCommand']('checkTodoList',()=>{const _0x290966=_0x575808['commands']['get']('checkTodoList'),_0x4fdd3d=Array['from'](_0x290966['_selectedElements']);_0x4fdd3d['filter'](_0x132906=>_0x132906['getAttribute']('todoListChecked')!=_0x290966['value']),_0x575808['model']['change'](()=>{for(const _0x1c39b7 of _0x4fdd3d)_0x5420a7['markBlockFormat'](_0x1c39b7,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x290966['value']}]});});}),_0x5420a7['descriptionFactory']['registerElementLabel']('listItem',_0x5cafd1=>o(_0x547774,'ELEMENT_LIST_ITEM',_0x5cafd1)),_0x5420a7['descriptionFactory']['registerDescriptionCallback'](_0x4c569a=>{if('formatBlock'!=_0x4c569a['type']&&'formatInline'!=_0x4c569a['type'])return;const {data:_0x330307}=_0x4c569a;if(_0x330307){if('numberedList'==_0x330307['commandName']||'bulletedList'==_0x330307['commandName']||'todoList'==_0x330307['commandName'])switch(_0x330307['commandName']['replace']('List','')){case'bulleted':return _0x3a1645(o(_0x547774,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3a1645(o(_0x547774,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3a1645(o(_0x547774,'ELEMENT_TODO_LIST'));}if('indentList'==_0x330307['commandName'])return{'type':'format','content':o(_0x547774,'*Indent:*\x20%0',o(_0x547774,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x330307['commandName'])return{'type':'format','content':o(_0x547774,'*Outdent:*\x20%0',o(_0x547774,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x330307['commandName'])return _0x330307['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x547774,'*Check\x20item*')}:{'type':'format','content':o(_0x547774,'*Uncheck\x20item*')};}function _0x3a1645(_0x5bb1a7){return{'type':'format','content':o(_0x547774,'*Change\x20to:*\x20%0',_0x5bb1a7)};}});}}function me(_0x330ff2){const _0x158b8a=_0x330ff2['getAttribute']('listIndent');if(0x0==_0x158b8a)return _0x330ff2;let _0x4ef2ec=_0x330ff2;for(;_0x330ff2['previousSibling']&&_0x330ff2['previousSibling']['is']('element','listItem');){const _0x50fecd=_0x330ff2['previousSibling']['getAttribute']('listIndent');if(_0x50fecd==_0x158b8a)_0x4ef2ec=_0x330ff2['previousSibling'];else{if(_0x50fecd<_0x158b8a)break;}_0x330ff2=_0x330ff2['previousSibling'];}return _0x4ef2ec;}function fe(_0x1ab64c){const _0x3586f6=[];if(_0x1ab64c['is']('element','listItem')&&_0x1ab64c['getAttribute']('listIndent')>0x0){let _0x4d66b4=_0x1ab64c['nextSibling'];for(;_0x4d66b4&&'listItem'==_0x4d66b4['name']&&_0x4d66b4['getAttribute']('listIndent')==_0x1ab64c['getAttribute']('listIndent');)_0x3586f6['push'](_0x4d66b4),_0x4d66b4=_0x4d66b4['nextSibling'];}return _0x3586f6;}class K extends _0x462782{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x207fe2=this['editor']['config']['get']('list.properties'),_0x3a1f5e=this['editor']['plugins']['get']('TrackChangesEditing');_0x207fe2['styles']&&_0x3a1f5e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x207fe2['reversed']&&_0x3a1f5e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x207fe2['startIndex']&&_0x3a1f5e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3a1f5e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x55259e,_0xa1fdba={}){const _0x5c5d6a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a186e=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5c5d6a['markMultiRangeBlockFormat'](_0x3a186e,{'commandName':'listStyle','commandParams':[{'type':_0xa1fdba['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xbeaaea,_0x427349={}){const _0xf969c4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ce2c8=this['_getSuggestionBlocks'](_0x929162=>_0x929162['is']('element','listItem')&&'numbered'===_0x929162['getAttribute']('listType'));if(_0x1ce2c8['length']<0x1)return;const _0x1a9230=_0x1ce2c8['map'](_0xbe6154=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xbe6154,'before'),this['editor']['model']['createPositionAt'](_0xbe6154,0x0)));this['editor']['model']['change'](()=>{_0xf969c4['markMultiRangeBlockFormat'](_0x1a9230,{'commandName':'listReversed','commandParams':[{'reversed':_0x427349['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1b9c89,_0x150c16={}){const _0xea11b6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9e4fb7=this['_getSuggestionBlocks'](_0x1f3781=>_0x1f3781['is']('element','listItem')&&'numbered'===_0x1f3781['getAttribute']('listType'));if(_0x9e4fb7['length']<0x1)return;const _0x43958a=_0x9e4fb7['map'](_0x536b4b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x536b4b,'before'),this['editor']['model']['createPositionAt'](_0x536b4b,0x0)));this['editor']['model']['change'](()=>{_0xea11b6['markMultiRangeBlockFormat'](_0x43958a,{'commandName':'listStart','commandParams':[{'startIndex':_0x150c16['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x39ba63){if('formatBlock'!=_0x39ba63['type']&&'formatInline'!=_0x39ba63['type'])return;const _0x5a6fb1=this['editor']['locale'],{data:_0x27361b}=_0x39ba63;if(!_0x27361b)return;let _0x586782,_0x1a61c;switch(_0x27361b['commandName']){case'listStyle':_0x586782='*Change\x20to:*\x20%0',_0x1a61c={'type':'format','content':o(_0x5a6fb1,_0x586782,o(_0x5a6fb1,this['_getTranslationKeyForListStyle'](_0x27361b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x586782=_0x27361b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1a61c={'type':'format','content':o(_0x5a6fb1,_0x586782)};break;case'listStart':_0x586782='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1a61c={'type':'format','content':o(_0x5a6fb1,_0x586782,_0x27361b['commandParams'][0x0]['startIndex'])};}return _0x1a61c;}['_getSuggestionBlocksForListStyle'](){const _0x266718=this['editor']['plugins']['get']('LegacyListUtils');let _0x59f379=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x59f379[0x0]?.['is']('element','listItem')&&_0x59f379['unshift'](..._0x266718['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x59f379[_0x59f379['length']-0x1]?.['is']('element','listItem')&&_0x59f379['push'](..._0x266718['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x59f379=[...new Set(_0x59f379)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x59f379=_0x59f379['filter'](_0x213262=>_0x213262['is']('element','listItem'))),_0x59f379;}['_getSuggestionBlocks'](_0x41be4e){const _0x2fe307=this['editor']['plugins']['get']('LegacyListUtils');let _0x1f3e74=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x41be4e)['map'](_0x457f32=>{const _0x38d778=this['editor']['model']['createPositionAt'](_0x457f32,0x0);return[..._0x2fe307['getSiblingNodes'](_0x38d778,'backward'),..._0x2fe307['getSiblingNodes'](_0x38d778,'forward')];})['flat']();return _0x1f3e74=[...new Set(_0x1f3e74)],_0x1f3e74;}['_getTranslationKeyForListStyle'](_0x1fe2a8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1fe2a8)||'default')['toUpperCase']()+'_LIST_'+_0x1fe2a8['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x462782{['afterInit'](){const _0x13b33c=this['editor'];if(!_0x13b33c['plugins']['has']('MediaEmbedEditing'))return;const _0x12b986=_0x13b33c['plugins']['get']('TrackChangesEditing'),_0x561f85=_0x13b33c['locale'];_0x12b986['enableCommand']('mediaEmbed'),_0x12b986['descriptionFactory']['registerElementLabel']('media',_0x259888=>o(_0x561f85,'ELEMENT_MEDIA',_0x259888)),_0x13b33c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x275819,{writer:_0x2b4e07,options:_0x359b81})=>{if(_0x359b81['showSuggestionHighlights'])return _0x2b4e07['createEmptyElement']('div');},'converterPriority':'high'}),_0x13b33c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x36f90d,_0x189959,_0x1d542f)=>{_0x1d542f['options']['showSuggestionHighlights']&&_0x36f90d['stop']();},{'priority':'high'});}}class gt extends _0x462782{['afterInit'](){const _0xc1b37c=this['editor'];_0xc1b37c['plugins']['has']('MentionEditing')&&_0xc1b37c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x462782{['afterInit'](){const _0x28eba8=this['editor'],_0x1d2a8e=_0x28eba8['plugins']['get']('TrackChangesEditing');_0x28eba8['plugins']['has']('MultiLevelList')&&(_0x1d2a8e['enableDefaultAttributesIntegration']('multiLevelList'),_0x1d2a8e['registerBlockAttribute']('listMarkerStyle'),_0x1d2a8e['descriptionFactory']['registerDescriptionCallback'](_0x485f46=>this['handleDescriptions'](_0x485f46)));}['handleDescriptions'](_0x5c7921){const _0x5b81d2=this['editor']['locale'],{data:_0x23532a}=_0x5c7921,_0x11e3fc={'type':'format','content':''};if(_0x23532a&&'listMarkerStyle'==_0x23532a['key']){if(!_0x23532a['oldValue'])return{'type':'format','content':o(_0x5b81d2,'*Set\x20format:*\x20%0',o(_0x5b81d2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x23532a['newValue']+')'};if(!_0x23532a['newValue']){let _0xc65104=_0x5c7921['head'];for(;_0xc65104;){if(_0xc65104['data']&&'listType'==_0xc65104['data']['key']&&_0xc65104['data']['newValue'])return _0x11e3fc;_0xc65104=_0xc65104['next'];}return{'type':'format','content':o(_0x5b81d2,'*Remove\x20format:*\x20%0',o(_0x5b81d2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x23532a['oldValue']+')'};}}}}class mt extends _0x462782{['afterInit'](){const _0x1b4d60=this['editor'];if(!_0x1b4d60['plugins']['has']('PageBreakEditing'))return;_0x1b4d60['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2ec579=_0x1b4d60['plugins']['get']('TrackChangesEditing'),_0x4370b4=_0x1b4d60['locale'];_0x2ec579['descriptionFactory']['registerElementLabel']('pageBreak',_0x5a747a=>o(_0x4370b4,'ELEMENT_PAGE_BREAK',_0x5a747a));}}class dt extends _0x462782{['afterInit'](){const _0x3e0070=this['editor'];if(!_0x3e0070['plugins']['has']('Paragraph'))return;const _0x3f7216=_0x3e0070['locale'],_0x585690=_0x3e0070['plugins']['get']('TrackChangesEditing');_0x585690['descriptionFactory']['registerElementLabel']('paragraph',_0x537077=>o(_0x3f7216,'ELEMENT_PARAGRAPH',_0x537077)),_0x585690['enableDefaultAttributesIntegration']('paragraph'),_0x585690['enableCommand']('insertParagraph'),_0x3e0070['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3e0070),{'priority':'highest'}),_0x3e0070['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xa8b8dd,_0x217dad,_0x2eac84)=>{_0x2eac84['options']['showSuggestionHighlights']&&nr(_0x3e0070,{'showActiveMarker':!0x1})(_0xa8b8dd,_0x217dad,_0x2eac84);},{'priority':'highest'});const _0x2160ec=_0x585690['descriptionFactory'];_0x2160ec['registerDescriptionCallback'](_0x388291=>{if('insertion'!==_0x388291['type'])return;const {start:_0x2fa901,end:_0x538a13}=_0x388291['getFirstRange']();if(!_0x2fa901['isTouching'](_0x538a13)||!_0x2fa901['nodeAfter'])return;const _0x3bf50f=_0x3e0070['model']['schema'],_0xe28e06=_0x2fa901['nodeAfter'];return _0x3bf50f['isBlock'](_0xe28e06)&&!_0x3bf50f['isLimit'](_0xe28e06)&&_0x3bf50f['checkChild'](_0xe28e06,'$text')?{'type':'insertion','content':o(_0x3f7216,'*Insert:*\x20%0',_0x2160ec['getItemLabel'](_0xe28e06,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x98a92a=this['editor'],_0x3a51a2=_0x98a92a['locale'];_0x98a92a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd420a3=>{if('formatBlock'!=_0xd420a3['type'])return;const {data:_0x4a8f7f}=_0xd420a3;return _0x4a8f7f&&'paragraph'==_0x4a8f7f['commandName']?{'type':'format','content':o(_0x3a51a2,'*Change\x20to:*\x20%0',o(_0x3a51a2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4520d4,{showActiveMarker:_0x1ba91a=!0x0}={}){return(_0x5ee204,_0x11b697,_0x3ebba8)=>{const _0x52ab96=_0x4520d4['plugins']['get']('TrackChangesEditing'),_0x1acc33=_0x11b697['markerRange']['start'],_0x54c645=_0x11b697['markerRange']['end'],_0x37bcf5=_0x4520d4['model']['schema'];if(!_0x1acc33['isTouching'](_0x54c645)||!_0x1acc33['nodeAfter'])return;const _0x2c60fa=_0x1acc33['nodeAfter'];if(_0x37bcf5['isBlock'](_0x2c60fa)&&!_0x37bcf5['isLimit'](_0x2c60fa)&&_0x37bcf5['checkChild'](_0x2c60fa,'$text')){if(!_0x3ebba8['consumable']['consume'](_0x11b697['markerRange'],_0x5ee204['name']))return;const _0x52d8a1=_0x3ebba8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x3ea908=_0x3ebba8['mapper']['toViewPosition'](_0x54c645);_0x1ba91a&&_0x52ab96['activeMarkers']['includes'](_0x11b697['markerName'])&&_0x3ebba8['writer']['addClass']('ck-suggestion-marker--active',_0x52d8a1),_0x3ebba8['writer']['insert'](_0x3ea908,_0x52d8a1),_0x3ebba8['mapper']['bindElementToMarker'](_0x52d8a1,_0x11b697['markerName']);}};}class pt extends _0x462782{['afterInit'](){const _0x2d5085=this['editor'];if(!_0x2d5085['plugins']['has']('RemoveFormatEditing'))return;_0x2d5085['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57ad0b=this['editor'];_0x57ad0b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25f1e3=>{if('formatBlock'!=_0x25f1e3['type']&&'formatInline'!=_0x25f1e3['type'])return;const {data:_0x6d73c2}=_0x25f1e3;return _0x6d73c2&&'removeFormat'==_0x6d73c2['commandName']?{'type':'format','content':o(_0x57ad0b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x462782{['afterInit'](){const _0x3c8110=this['editor'];if(!_0x3c8110['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4eb605=_0x3c8110['plugins']['get']('TrackChangesEditing');_0x4eb605['enableCommand']('goToPreviousRestrictedEditingException'),_0x4eb605['enableCommand']('goToNextRestrictedEditingException');const _0x16dcdd=_0x3c8110['plugins']['get']('RestrictedEditingModeEditing');_0x16dcdd['enableCommand']('trackChanges'),_0x16dcdd['enableCommand']('acceptSuggestion'),_0x16dcdd['enableCommand']('discardSuggestion'),_0x16dcdd['enableCommand']('acceptAllSuggestions'),_0x16dcdd['enableCommand']('discardAllSuggestions'),_0x16dcdd['enableCommand']('acceptSelectedSuggestions'),_0x16dcdd['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x462782{static get['requires'](){return[_0x2477d3];}['init'](){const _0x5a324d=this['editor'],_0x27a2cc=_0x5a324d['plugins']['get']('TrackChangesEditing');_0x27a2cc['enableCommand']('shiftEnter'),_0x5a324d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x5a324d),{'priority':'high'}),_0x5a324d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x5a324d),{'priority':'high'}),_0x5a324d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x59afbd,_0x1828ff,_0x3a6da4)=>{_0x3a6da4['options']['showSuggestionHighlights']&&de(_0x5a324d,{'showActiveMarker':!0x1})(_0x59afbd,_0x1828ff,_0x3a6da4);}),_0x27a2cc['descriptionFactory']['registerElementLabel']('softBreak',_0x99f752=>o(_0x5a324d['locale'],'ELEMENT_LINE_BREAK',_0x99f752));}}function de(_0x47cff1,{showActiveMarker:_0x1a424a=!0x0}={}){return(_0x3cba15,_0x3b12cc,_0xd4c3ef)=>{const _0x230210=_0x47cff1['plugins']['get']('TrackChangesEditing');if(!_0xd4c3ef['consumable']['test'](_0x3b12cc['markerRange'],_0x3cba15['name']))return;const _0x13989d=_0x47cff1['model'];for(const _0x887e6c of _0x3b12cc['markerRange']['getItems']()){if(!_0x887e6c['is']('element','softBreak'))continue;const _0x732df1='deletion'==_0x3b12cc['markerName']['split'](':')[0x1]?'merge':'split',_0x25e3ec=_0xd4c3ef['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x732df1}),_0xadbdc3=_0xd4c3ef['mapper']['toViewPosition'](_0x13989d['createPositionBefore'](_0x887e6c));_0x1a424a&&_0x230210['activeMarkers']['includes'](_0x3b12cc['markerName'])&&_0xd4c3ef['writer']['addClass']('ck-suggestion-marker--active',_0x25e3ec),_0xd4c3ef['writer']['insert'](_0xadbdc3,_0x25e3ec),_0xd4c3ef['mapper']['bindElementToMarker'](_0x25e3ec,_0x3b12cc['markerName']);}};}class wt extends _0x462782{['afterInit'](){const _0x435b47=this['editor'],_0x4a152b=_0x435b47['model'],_0x33ae7f=_0x435b47['locale'];if(!_0x435b47['plugins']['has']('StandardEditingModeEditing'))return;const _0x3a7760=_0x435b47['plugins']['get']('TrackChangesEditing'),_0x3a077d='restrictedEditingException',_0x23e263=_0x435b47['commands']['get'](_0x3a077d);_0x3a7760['enableCommand'](_0x3a077d,(_0x4b2aa4,_0x2463d5={})=>{const _0x9363f8=_0x4a152b['document']['selection'];if(_0x9363f8['isCollapsed'])return void _0x4b2aa4(_0x2463d5);const _0x18100d=void 0x0!==_0x2463d5['forceValue']?_0x2463d5['forceValue']:!_0x23e263['value'];_0x4a152b['change'](()=>{const _0x706243=Array['from'](_0x9363f8['getRanges']());for(const _0x389da7 of _0x706243){const _0x179051=_0x18100d?[_0x389da7]:io(_0x3a077d,_0x389da7,_0x4a152b);for(const _0x1a210b of _0x179051)_0x3a7760['markInlineFormat'](_0x1a210b,{'commandName':_0x3a077d,'commandParams':[{'forceValue':_0x18100d}]});}});}),_0x3a7760['descriptionFactory']['registerDescriptionCallback'](_0x15637d=>{if('formatBlock'!=_0x15637d['type']&&'formatInline'!=_0x15637d['type'])return;const {data:_0x435c81}=_0x15637d;return _0x435c81&&_0x435c81['commandName']==_0x3a077d?_0x435c81['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33ae7f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x33ae7f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x462782{['afterInit'](){const _0x2fd738=this['editor'];if(!_0x2fd738['plugins']['has']('Style')||!_0x2fd738['plugins']['has']('DataSchema'))return;const _0x3a97c0=_0x2fd738['plugins']['get']('TrackChangesEditing'),_0x45117b=_0x2fd738['locale'],_0x5c06ab=_0x2fd738['config']['get']('style')||{},_0x36b768=_0x2fd738['plugins']['get']('GeneralHtmlSupport'),_0x72b9db=_0x2fd738['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2fd738['plugins']['get']('DataSchema'),_0x5c06ab['definitions']);_0x3a97c0['enableDefaultAttributesIntegration']('style');const _0x3b3547=new Set();for(const _0x184ce9 of _0x72b9db['block']){const _0x2a8ab8=_0x36b768['getGhsAttributeNameForElement'](_0x184ce9['element']);_0x3b3547['add'](_0x2a8ab8);}const _0x1ef35d=new Set();for(const _0x285bbb of _0x72b9db['inline']){const _0x31f17c=_0x36b768['getGhsAttributeNameForElement'](_0x285bbb['element']);_0x1ef35d['add'](_0x31f17c);for(const _0x2e32f3 of _0x285bbb['ghsAttributes'])_0x1ef35d['add'](_0x2e32f3);}for(const _0x573f64 of _0x3b3547)_0x3a97c0['registerBlockAttribute'](_0x573f64),_0x3a97c0['descriptionFactory']['registerAttributeLabel'](_0x573f64,o(_0x45117b,'FORMAT_STYLE'));for(const _0xaae2aa of _0x1ef35d)_0x3a97c0['registerInlineAttribute'](_0xaae2aa),_0x3a97c0['descriptionFactory']['registerAttributeLabel'](_0xaae2aa,o(_0x45117b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb52c0c=this['editor'],_0x1e6d50=_0xb52c0c['locale'];_0xb52c0c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29668f=>{if('formatBlock'!=_0x29668f['type']&&'formatInline'!=_0x29668f['type'])return;const {data:_0x1bbf0f}=_0x29668f;return _0x1bbf0f&&'style'===_0x1bbf0f['commandName']?_0x1bbf0f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1e6d50,'*Set\x20format:*\x20%0',_0x1bbf0f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1e6d50,'*Remove\x20format:*\x20%0',_0x1bbf0f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x462782{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3fda74){super(_0x3fda74),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2a7aba=this['editor'],_0x32da0c=_0x2a7aba['model']['document']['selection'];if(!_0x2a7aba['plugins']['has']('TableEditing'))return;const _0x4f4dc7=_0x2a7aba['locale'],_0x1568bf=_0x2a7aba['plugins']['get']('TrackChangesEditing'),_0x256646=_0x2a7aba['plugins']['get']('TableUtils');_0x1568bf['descriptionFactory']['registerElementLabel']('table',_0x361727=>o(_0x4f4dc7,'ELEMENT_TABLE',_0x361727)),this['_setupColumnsRowsFixing'](),_0x1568bf['enableCommand']('insertTable'),_0x1568bf['enableCommand']('selectTableRow'),_0x1568bf['enableCommand']('selectTableColumn');for(const _0x2d3b3f of['insertTableRowAbove','insertTableRowBelow']){const _0x4c8e8a=_0x2a7aba['commands']['get'](_0x2d3b3f);_0x1568bf['enableCommand'](_0x2d3b3f,_0x545004=>{_0x2a7aba['model']['change'](_0xd7aa6a=>{_0x545004();const _0x313069='above'===_0x4c8e8a['order'],_0x144554=_0x256646['getSelectionAffectedTableCells'](_0x32da0c),_0x5827a0=_0x256646['getRowIndexes'](_0x144554),_0x1f806f=_0x313069?_0x5827a0['first']-0x1:_0x5827a0['last']+0x1,_0x4044c9=_0x144554[0x0]['findAncestor']('table'),_0x41e989=_0x256646['createTableWalker'](_0x4044c9,{'startRow':_0x1f806f,'endRow':_0x1f806f}),_0x16c793=Array['from'](_0x41e989)['map'](_0x32bb08=>_0xd7aa6a['createRangeOn'](_0x32bb08['cell']));_0x1568bf['markMultiRangeInsertion'](_0x16c793,'tableRow');});});}for(const _0x5c5ff8 of['insertTableColumnLeft','insertTableColumnRight']){const _0x176100=_0x2a7aba['commands']['get'](_0x5c5ff8);_0x1568bf['enableCommand'](_0x5c5ff8,_0x22a93b=>{_0x2a7aba['model']['change'](_0x3de2f8=>{_0x22a93b();const _0x4f4577='left'===_0x176100['order'],_0x1eccbf=_0x256646['getSelectionAffectedTableCells'](_0x32da0c),_0x1fbd97=_0x256646['getColumnIndexes'](_0x1eccbf),_0x15021f=_0x4f4577?_0x1fbd97['first']-0x1:_0x1fbd97['last']+0x1,_0x5068dd=_0x1eccbf[0x0]['findAncestor']('table'),_0x4ad5ea=_0x256646['createTableWalker'](_0x5068dd,{'startRow':0x0,'column':_0x15021f,'includeAllSlots':!0x1}),_0x22316c=Array['from'](_0x4ad5ea)['map'](_0x54f3bd=>_0x3de2f8['createRangeOn'](_0x54f3bd['cell']));_0x1568bf['markMultiRangeInsertion'](_0x22316c,'tableColumn');});});}for(const _0x1911d3 of['removeTableRow','removeTableColumn']){const _0x2dd54d=_0x1911d3['substr'](0xb),_0x28f454=_0x2dd54d['toLowerCase'](),_0x4ce8b4=_0x28f454['substr'](0x0,0x3)+'span',_0x38d90c='table'+_0x2dd54d,_0x1c56bb='min'+_0x2dd54d,_0x56c83d='max'+_0x2dd54d;_0x1568bf['enableCommand'](_0x1911d3,()=>{_0x2a7aba['model']['change'](_0x59ece4=>{const _0xa034bc=_0x256646['getSelectionAffectedTableCells'](_0x32da0c),_0x47a2ba=_0xa034bc[0x0]['findAncestor']('table');let _0x5989dc;if('removeTableRow'==_0x1911d3){const _0x121739=_0x256646['getRowIndexes'](_0xa034bc);_0x5989dc={'startRow':_0x121739['first'],'endRow':_0x121739['last'],'includeAllSlots':!0x0};}else{const _0x4b9346=_0x256646['getColumnIndexes'](_0xa034bc);_0x5989dc={'startColumn':_0x4b9346['first'],'endColumn':_0x4b9346['last'],'includeAllSlots':!0x0};}const _0x13c640=_0x256646['createTableWalker'](_0x47a2ba,_0x5989dc),_0x54fac4=Array['from'](_0x13c640)['map'](({cell:_0x41f14a})=>_0x41f14a),_0xe973a5=Ee(_0x54fac4['filter'](_0x15744d=>_0x15744d['hasAttribute'](_0x4ce8b4))),_0x4f003d=Ee(_0x54fac4['filter'](_0x9c73e4=>!_0x9c73e4['hasAttribute'](_0x4ce8b4)))['map'](_0x2183a1=>_0x59ece4['createRangeOn'](_0x2183a1)),_0x4809ca=_0x1568bf['markMultiRangeDeletion'](_0x4f003d,_0x38d90c);if(_0x4809ca&&('tableRow'==_0x4809ca['subType']||'tableColumn'==_0x4809ca['subType'])){const _0x139c82=this['_getSuggestionCoords'](_0x4809ca);for(const _0x14e7c7 of _0xe973a5){const _0x696479=_0x59ece4['createRangeOn'](_0x14e7c7),_0x42c108=_0x256646['getCellLocation'](_0x14e7c7),_0x58078e=_0x14e7c7['getAttribute'](_0x4ce8b4)-0x1,_0x23190d=_0x139c82[_0x1c56bb],_0x40be07=_0x139c82[_0x56c83d];_0x23190d<=_0x42c108[_0x28f454]&&_0x42c108[_0x28f454]+_0x58078e<=_0x40be07&&_0x4809ca['addRange'](_0x696479);}}});});}function _0x1f7209(_0x358519){const _0x2090f5=Array['from'](_0x32da0c['getRanges']())['map'](_0xdf48e7=>_0x3a5b18['fromRange'](_0xdf48e7));_0x2a7aba['model']['change'](_0x12590e=>{const _0x2e783e=_0x12590e['batch'];_0x358519=_0x358519['filter'](_0x91f292=>'$graveyard'!=_0x91f292['root']['rootName']),_0x12590e['setSelection'](_0x358519),_0x2a7aba['commands']['get']('removeTableRow')['refresh'](),_0x2a7aba['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2a7aba['model']['enqueueChange'](()=>{_0x2a7aba['model']['enqueueChange'](_0x2e783e,_0x35c575=>{const _0x4e24cb=_0x2090f5['filter'](_0x56ee76=>'$graveyard'!=_0x56ee76['root']['rootName']);_0x4e24cb['length']>0x0&&_0x35c575['setSelection'](_0x4e24cb);for(const _0x288b8f of _0x2090f5)_0x288b8f['detach']();});});});}function _0x1fbc60(_0x48f1d8){_0x2a7aba['model']['change'](_0x58c83b=>{const _0xfd4bd3=Array['from'](_0x32da0c['getRanges']())['map'](_0x2d396b=>_0x3a5b18['fromRange'](_0x2d396b)),_0x6c0520=[];for(const _0xb1e68b of _0x48f1d8)for(const _0x4ea8aa of _0xb1e68b['getItems']({'shallow':!0x0}))_0x6c0520['push'](_0x4ea8aa);for(const _0x3fef41 of _0x6c0520)'$graveyard'!=_0x3fef41['root']['rootName']&&(_0x58c83b['setSelection'](_0x58c83b['createPositionAt'](_0x3fef41,0x0)),_0x2a7aba['commands']['get']('removeTableColumn')['refresh'](),_0x2a7aba['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x19d155=_0xfd4bd3['filter'](_0x82a72f=>'$graveyard'!=_0x82a72f['root']['rootName']);_0x19d155['length']>0x0&&_0x58c83b['setSelection'](_0x19d155);for(const _0xbfc7a7 of _0xfd4bd3)_0xbfc7a7['detach']();});}function _0x1ec1ed(_0x49c0e5,_0x172f45){return _0x172f45['every'](_0x15c07a=>_0x49c0e5['some'](_0x403d33=>_0x403d33['end']['isEqual'](_0x15c07a['start'])||_0x15c07a['end']['isEqual'](_0x403d33['start'])));}function _0x1a3c07(_0x8ac917,_0x54a690){return!_0x8ac917['some'](_0x53c91d=>_0x54a690['some'](_0x492d6a=>_0x53c91d['isIntersecting'](_0x492d6a)))&&_0x8ac917['some'](_0x334e21=>_0x54a690['some'](_0x1a940a=>_0x334e21['end']['isTouching'](_0x1a940a['start'])));}_0x2a7aba['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x487178,_0x2b55bf,_0x3847fb)=>{if(!_0x3847fb['options']['showSuggestionHighlights'])return;const _0x22cc05=_0x2b55bf['item'];if(!_0x22cc05)return;const _0x1019ca=_0x3847fb['mapper']['toViewElement'](_0x22cc05);function _0x61116b(_0x5937ef){return Array['isArray'](_0x5937ef)?_0x5937ef:[_0x5937ef];}_0x1019ca&&'tableCell'===_0x22cc05['name']&&_0xfd2bd8(_0x1019ca,_0x3847fb['writer'],(_0x144764,_0x5aacce,_0x47d604)=>_0x47d604['addClass'](_0x61116b(_0x5aacce['classes']),_0x144764),(_0x89a6,_0x4d6a99,_0x3139a2)=>_0x3139a2['removeClass'](_0x61116b(_0x4d6a99['classes']),_0x89a6));},{'priority':'highest'}),_0x1568bf['descriptionFactory']['registerDescriptionCallback'](_0xd15f3c=>{if('insertion'!=_0xd15f3c['type']&&'deletion'!=_0xd15f3c['type'])return;const _0x10f8c2=_0xd15f3c['getContainedElement']();if(null!=_0x10f8c2&&_0x10f8c2['is']('element','table')){if('insertion'==_0xd15f3c['type']){const _0xc12682=_0xd15f3c['getItems']()['filter'](_0x32f79c=>_0x32f79c['is']('$textProxy'))['map'](_0x4a2262=>_0x4a2262['data']);if(_0xc12682['length'])return{'type':'insertion','content':o(_0x4f4dc7,'*Insert:*\x20%0',o(_0x4f4dc7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xc12682['join']('\x20')+'\x22'))};}if('deletion'==_0xd15f3c['type']){const _0x57a931=_0xd15f3c['getItems']()['filter'](_0x300c48=>_0x300c48['is']('$textProxy'))['map'](_0x459dc9=>_0x459dc9['data']);if(_0x57a931['length'])return{'type':'deletion','content':o(_0x4f4dc7,'*Remove:*\x20%0',o(_0x4f4dc7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x57a931['join']('\x20')+'\x22'))};}}}),_0x1568bf['descriptionFactory']['registerDescriptionCallback'](_0x1f19d7=>{if('tableRow'==_0x1f19d7['subType']){const _0x2d4643=_0x1f19d7['getItems']()['filter'](_0x1dcd25=>_0x1dcd25['is']('$textProxy'))['map'](_0x480dba=>_0x480dba['data']),_0x6ce927=this['_getSuggestionCoords'](_0x1f19d7),_0x581fc7=_0x6ce927['maxRow']-_0x6ce927['minRow']+0x1;if('insertion'==_0x1f19d7['type'])return _0x2d4643['length']?{'type':'insertion','content':o(_0x4f4dc7,'*Insert:*\x20%0',o(_0x4f4dc7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x581fc7,'\x22'+_0x2d4643['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4f4dc7,'*Insert:*\x20%0',o(_0x4f4dc7,'ELEMENT_TABLE_ROW',_0x581fc7))};if('deletion'==_0x1f19d7['type'])return _0x2d4643['length']?{'type':'deletion','content':o(_0x4f4dc7,'*Remove:*\x20%0',o(_0x4f4dc7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x581fc7,'\x22'+_0x2d4643['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4f4dc7,'*Remove:*\x20%0',o(_0x4f4dc7,'ELEMENT_TABLE_ROW',_0x581fc7))};}if('tableColumn'==_0x1f19d7['subType']){const _0x147760=_0x1f19d7['getItems']()['filter'](_0x56bbb9=>_0x56bbb9['is']('$textProxy'))['map'](_0x20b025=>_0x20b025['data']),_0xac8f2e=this['_getSuggestionCoords'](_0x1f19d7),_0x551120=_0xac8f2e['maxColumn']-_0xac8f2e['minColumn']+0x1;if('insertion'==_0x1f19d7['type'])return _0x147760['length']?{'type':'insertion','content':o(_0x4f4dc7,'*Insert:*\x20%0',o(_0x4f4dc7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x551120,'\x22'+_0x147760['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4f4dc7,'*Insert:*\x20%0',o(_0x4f4dc7,'ELEMENT_TABLE_COLUMN',_0x551120))};if('deletion'==_0x1f19d7['type'])return _0x147760['length']?{'type':'deletion','content':o(_0x4f4dc7,'*Remove:*\x20%0',o(_0x4f4dc7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x551120,'\x22'+_0x147760['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4f4dc7,'*Remove:*\x20%0',o(_0x4f4dc7,'ELEMENT_TABLE_COLUMN',_0x551120))};}}),_0x1568bf['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1f7209),_0x1568bf['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1f7209),_0x1568bf['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1fbc60),_0x1568bf['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1fbc60),_0x1568bf['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1ec1ed),_0x1568bf['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1ec1ed),_0x1568bf['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1a3c07),_0x1568bf['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1a3c07);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2fb21f=this['editor'],_0x24af50=_0x2fb21f['model']['document']['selection'];return(_0x57485a,_0x5a23d6)=>{_0x2fb21f['model']['change'](_0x3a4e9a=>{const {commandName:_0x15b916,commandParams:_0x3403ae}=_0x5a23d6;let _0x41f4c5=_0x57485a[0x0]['end']['nodeBefore'];_0x3403ae&&_0x3403ae[0x0]&&!0x1===_0x3403ae[0x0]['forceValue']&&(_0x41f4c5=_0x57485a[0x0]['start']['nodeAfter']);const _0x4f2810=_0x3a4e9a['createRangeIn'](_0x41f4c5);if('$graveyard'==_0x4f2810['root']['rootName'])return;const _0x10b9d0=Array['from'](_0x24af50['getRanges']())['map'](_0x100fa3=>_0x3a5b18['fromRange'](_0x100fa3));_0x3a4e9a['setSelection'](_0x4f2810),_0x2fb21f['commands']['get'](_0x15b916)['refresh'](),_0x3403ae['push']({'forceDefaultExecution':!0x0}),_0x2fb21f['execute'](_0x15b916,..._0x3403ae);const _0x8fd30b=_0x10b9d0['filter'](_0x54a909=>'$graveyard'!=_0x54a909['root']['rootName']);_0x8fd30b['length']>0x0&&_0x3a4e9a['setSelection'](_0x8fd30b);for(const _0x12ca1e of _0x10b9d0)_0x12ca1e['detach']();});};}['_getCoordsForCells'](_0x1b605a){const _0x1a10f0=this['editor']['plugins']['get']('TableUtils');let _0xce8116=Number['MAX_SAFE_INTEGER'],_0x1997b3=Number['MIN_SAFE_INTEGER'],_0x443b11=Number['MAX_SAFE_INTEGER'],_0x5b2db0=Number['MIN_SAFE_INTEGER'];for(const _0x40a135 of _0x1b605a){if('$graveyard'==_0x40a135['root']['rootName'])continue;const {row:_0x5dab82,column:_0x117a17}=_0x1a10f0['getCellLocation'](_0x40a135),_0x2cae3f=_0x40a135['hasAttribute']('rowspan')?_0x40a135['getAttribute']('rowspan')-0x1:0x0,_0x26ecc6=_0x40a135['hasAttribute']('colspan')?_0x40a135['getAttribute']('colspan')-0x1:0x0;_0xce8116=_0x5dab82<_0xce8116?_0x5dab82:_0xce8116,_0x1997b3=_0x5dab82+_0x2cae3f>_0x1997b3?_0x5dab82+_0x2cae3f:_0x1997b3,_0x443b11=_0x117a17<_0x443b11?_0x117a17:_0x443b11,_0x5b2db0=_0x117a17+_0x26ecc6>_0x5b2db0?_0x117a17+_0x26ecc6:_0x5b2db0;}return{'minRow':_0xce8116,'maxRow':_0x1997b3,'minColumn':_0x443b11,'maxColumn':_0x5b2db0};}['_setupColumnsRowsFixing'](){const _0x29a2a1=this['editor'],_0x47b478=_0x29a2a1['plugins']['get']('TrackChangesEditing'),_0x264eb4=_0x29a2a1['plugins']['get']('TableUtils');_0x29a2a1['model']['document']['on']('change:data',()=>{const _0x10160d=Array['from'](_0x29a2a1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1fbb2a,data:_0x54fa0a}of _0x10160d){const {group:_0x585c70,id:_0x3752de,subType:_0x5a5f10}=_0x47b478['_splitMarkerName'](_0x1fbb2a);if('suggestion'!=_0x585c70)continue;if(null!=_0x54fa0a['oldRange'])continue;const _0x12d2e1=_0x47b478['getSuggestion'](_0x3752de);this['_tablePostFixingSubtypes']['includes'](_0x5a5f10)&&this['_tableSuggestions']['add'](_0x12d2e1);}},{'priority':'low'});const _0x3c4ef8=(_0xdc8ca1,_0x5f2b78)=>{let _0x42e655=!0x1;const _0x2a5a2e=_0x5f2b78['createRangeOn'](_0xdc8ca1),_0x18c369=_0xdc8ca1['findAncestor']('table'),_0xd19662=_0x264eb4['getCellLocation'](_0xdc8ca1);for(const _0x3a4ebe of this['_tableSuggestions']){const _0x1de18c=_0x3a4ebe['subType'],_0x42653f=_0x1de18c['startsWith']('tablePaste'),_0xf0ee09=_0x1de18c['substr'](_0x42653f?0xa:0x5),_0x529890=_0xf0ee09['toLowerCase'](),_0x34049a=_0x529890['substr'](0x0,0x3)+'span',_0x33cfad='min'+_0xf0ee09,_0x3379a2='max'+_0xf0ee09;if(!_0x3a4ebe['isInContent'])continue;if(_0x18c369!=_0x3a4ebe['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3a4ebe['isIntersectingWithRange'](_0x2a5a2e))continue;const _0x168b4f=_0xdc8ca1['hasAttribute'](_0x34049a)?_0xdc8ca1['getAttribute'](_0x34049a)-0x1:0x0,_0x22c855=this['_getSuggestionCoords'](_0x3a4ebe),_0x4a6386=_0x22c855[_0x33cfad],_0x4e817c=_0x22c855[_0x3379a2];_0x4a6386<=_0xd19662[_0x529890]&&_0xd19662[_0x529890]+_0x168b4f<=_0x4e817c&&(_0x3a4ebe['addRange'](_0x2a5a2e),_0x42e655=!0x0);}return _0x42e655;};_0x29a2a1['model']['document']['registerPostFixer'](_0x481170=>{let _0x117325=!0x1;for(const _0x223962 of _0x29a2a1['model']['document']['differ']['getChanges']())if('insert'==_0x223962['type']){if('tableRow'==_0x223962['name']){for(const _0x4b9d8c of _0x223962['position']['nodeAfter']['getChildren']())_0x117325=_0x117325||_0x3c4ef8(_0x4b9d8c,_0x481170);}else'tableCell'==_0x223962['name']&&(_0x117325=_0x117325||_0x3c4ef8(_0x223962['position']['nodeAfter'],_0x481170));}return _0x117325;});}['_getSuggestionCoords'](_0x903f80){return this['_getCoordsForCells'](_0x903f80['getRanges']()['map'](_0x40bef7=>_0x40bef7['start']['nodeAfter']));}}function Ee(_0x246cf1){return Array['from'](new Set(_0x246cf1)['values']());}class St extends _0x462782{static get['requires'](){return[jt];}['afterInit'](){const _0x55c058=this['editor'],_0x142602=_0x55c058['model']['document']['selection'],_0x59256a=_0x55c058['locale'];if(!_0x55c058['plugins']['has']('TableEditing'))return;const _0x1ec98d=_0x55c058['plugins']['get']('TrackChangesEditing'),_0x16f2ac=_0x55c058['plugins']['get']('TableUtils'),_0xda680d=_0x55c058['plugins']['get'](jt);_0xda680d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1ec98d['enableCommand']('mergeTableCells',()=>{const _0x4f2200=_0x16f2ac['getSelectionAffectedTableCells'](_0x55c058['model']['document']['selection']);_0x55c058['model']['change'](()=>{_0x1ec98d['markMultiRangeBlockFormat'](_0x4f2200,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x55c058['commands']['get']('mergeTableCells')['on']('execute',(_0x1e284c,_0x2ea752)=>{_0x55c058['commands']['get']('trackChanges')['value']&&(_0x2ea752['length']>0x0&&_0x2ea752[_0x2ea752['length']-0x1]&&_0x2ea752[_0x2ea752['length']-0x1]['forceDefaultExecution']||_0x1ec98d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1e284c['stop']());},{'priority':'highest'});for(const _0x3b1ea0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1af951=_0x55c058['commands']['get'](_0x3b1ea0);_0x1ec98d['enableCommand'](_0x3b1ea0,()=>{const _0x10392d=_0x55c058['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x318b00=>_0x318b00['is']('element','tableCell')),_0x16dc5e=_0x1af951['value'];_0x55c058['model']['change'](()=>{_0x1ec98d['markMultiRangeBlockFormat']([_0x10392d,_0x16dc5e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x19674a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x10932a=_0x55c058['commands']['get'](_0x19674a);_0x1ec98d['enableCommand'](_0x19674a,()=>{const _0x5f4201=_0x16f2ac['getSelectionAffectedTableCells'](_0x55c058['model']['document']['selection'])[0x0],_0x230d68=_0x5f4201['findAncestor']('table'),{column:_0x11f885,row:_0x1cd55f}=_0x16f2ac['getCellLocation'](_0x5f4201);let _0x343134=[];if('horizontally'==_0x10932a['direction']){const _0x7002db=_0x16f2ac['createTableWalker'](_0x230d68,{'startRow':_0x1cd55f,'endRow':_0x1cd55f,'includeAllSlots':!0x0});_0x343134=Array['from'](_0x7002db)['map'](_0x12ad09=>_0x12ad09['cell']);}else{const _0x5e6249=_0x16f2ac['createTableWalker'](_0x230d68,{'column':_0x11f885,'includeAllSlots':!0x0});_0x343134=Array['from'](_0x5e6249)['map'](_0x28a6ff=>_0x28a6ff['cell']);}_0x55c058['model']['change'](_0x3724c4=>{_0x1ec98d['markBlockFormat'](_0x3724c4['createRangeOn'](_0x5f4201),{'commandName':_0x19674a,'commandParams':[]},_0x343134,_0x19674a);});});}_0x1ec98d['descriptionFactory']['registerDescriptionCallback'](_0x12b1bf=>{if('formatBlock'!=_0x12b1bf['type']&&'formatInline'!=_0x12b1bf['type'])return;const {data:_0x448754}=_0x12b1bf;return _0x448754&&'mergeTableCells'==_0x448754['commandName']?{'type':'format','content':o(_0x59256a,'*Merge\x20cells*')}:void 0x0;}),_0x1ec98d['descriptionFactory']['registerDescriptionCallback'](_0x526452=>{if('formatBlock'!=_0x526452['type']&&'formatInline'!=_0x526452['type'])return;const {data:_0x3f3c7a}=_0x526452;return _0x3f3c7a?'splitTableCellVertically'==_0x3f3c7a['commandName']?{'type':'format','content':o(_0x59256a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3f3c7a['commandName']?{'type':'format','content':o(_0x59256a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x10614d=_0xda680d['_acceptFormatSuggestionCallbackFactory']();for(const _0xeeb43b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1ec98d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xeeb43b,'accept',_0x10614d);for(const _0x22346d of['splitTableCellVertically','splitTableCellHorizontally'])_0x1ec98d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x22346d,'accept',_0x10614d);_0x1ec98d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x16a77a=>{_0x55c058['model']['change'](_0x1f8daf=>{const _0x2f1b9e=Array['from'](_0x142602['getRanges']())['map'](_0x2dcb9b=>_0x3a5b18['fromRange'](_0x2dcb9b));_0x1f8daf['setSelection'](_0x16a77a),_0x55c058['commands']['get']('mergeTableCells')['refresh'](),_0x55c058['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2e974a=_0x2f1b9e['filter'](_0x442e2b=>'$graveyard'!=_0x442e2b['root']['rootName']);_0x2e974a['length']>0x0&&_0x1f8daf['setSelection'](_0x2e974a);for(const _0x43cab1 of _0x2f1b9e)_0x43cab1['detach']();});});for(const _0x47d116 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1b8edb=_0x55c058['commands']['get'](_0x47d116);_0x1b8edb['on']('set:isEnabled',(_0xd4edae,_0x163f97,_0x157fc1)=>{if(_0x157fc1){const _0x389123=_0x55c058['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1c61f6=>_0x1c61f6['is']('element','tableCell'));this['_areMergableCells'](_0x1b8edb['value'],_0x389123)||(_0xd4edae['return']=!0x1,_0xd4edae['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4e0da6=this['editor']['commands']['get']('mergeTableCells'),_0x7b5ab9=this['editor']['plugins']['get']('TableUtils');if(!_0x4e0da6['isEnabled'])return!0x1;const _0x5f2d26=_0x7b5ab9['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2d8416 of _0x5f2d26)for(const _0x1de3fa of _0x5f2d26)if(_0x2d8416!=_0x1de3fa&&!this['_areMergableCells'](_0x2d8416,_0x1de3fa))return!0x1;return!0x0;}['_areMergableCells'](_0x2cc474,_0x4f2b60){const _0x4023da=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21873c=this['editor']['model']['createRangeOn'](_0x2cc474),_0x174a28=this['editor']['model']['createRangeOn'](_0x4f2b60),_0x4c2ac1=new Set(),_0x50b270=new Set();for(const _0x18b943 of _0x4023da['getSuggestions']())if(('insertion'==_0x18b943['type']||'deletion'==_0x18b943['type']||'mergeTableCells'==_0x18b943['subType'])&&_0x18b943['isInContent']){for(const _0x3c319a of _0x18b943['getRanges']())_0x3c319a['containsRange'](_0x21873c,!0x0)&&_0x4c2ac1['add'](_0x18b943['type']+':'+_0x18b943['author']['id']),_0x3c319a['containsRange'](_0x174a28,!0x0)&&_0x50b270['add'](_0x18b943['type']+':'+_0x18b943['author']['id']);}if(_0x4c2ac1['size']!=_0x50b270['size'])return!0x1;for(const _0x176ea4 of _0x4c2ac1)if(!_0x50b270['has'](_0x176ea4))return!0x1;return!0x0;}}class At extends _0x462782{static get['requires'](){return[jt];}['afterInit'](){const _0x55f7ac=this['editor'];if(!_0x55f7ac['plugins']['has']('TableEditing'))return;const _0x2296f8=_0x55f7ac['locale'],_0x15a9ed=_0x55f7ac['plugins']['get']('TrackChangesEditing');_0x15a9ed['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x15a9ed['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x15a9ed['registerBlockAttribute']('headingRows'),_0x15a9ed['registerBlockAttribute']('headingColumns'),_0x15a9ed['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2296f8,'FORMAT_HEADER_ROW')),_0x15a9ed['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2296f8,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4fb5a1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x521387=this['editor']['plugins']['get']('TableUtils'),_0x4b253a=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x60db0f({showActiveMarker:_0x2fc5ca=!0x0,setDataAttribute:_0x4f7c1f=!0x0}={}){return(_0x1e6196,_0x110e28,_0x42dd60)=>{const {type:_0x2d488e,id:_0x57dd80}=_0x4fb5a1['_splitMarkerName'](_0x110e28['markerName']),_0x2b2b94=_0x4fb5a1['getSuggestion'](_0x57dd80),_0x47d539=_0x2b2b94['data'];if('formatBlock'!=_0x2b2b94['type']||!_0x47d539||'setTableColumnHeader'!=_0x47d539['commandName'])return;if(_0x110e28['item'])return void _0x1e6196['stop']();if(!_0x42dd60['consumable']['consume'](_0x110e28['markerRange'],_0x1e6196['name']))return;const _0x1a898a=_0x110e28['markerRange']['start']['nodeAfter'],_0x53ab3d=_0x110e28['markerRange']['end']['nodeBefore'],_0x470037=_0x1a898a['parent']['parent'],{column:_0x59cfda}=_0x521387['getCellLocation'](_0x1a898a),{column:_0x487770}=_0x521387['getCellLocation'](_0x53ab3d);for(let _0xede376=_0x59cfda;_0xede376<=_0x487770;_0xede376++){const _0x4e59e1=_0x521387['createTableWalker'](_0x470037,{'column':_0xede376,'includeAllSlots':!0x1});for(const _0x2dbe6c of _0x4e59e1){const _0x59b005=_0x2dbe6c['cell'],_0x2bf2c3=_0x42dd60['mapper']['toViewElement'](_0x59b005);_0x42dd60['writer']['addClass']('ck-suggestion-marker-'+_0x2d488e,_0x2bf2c3),_0x4f7c1f&&_0x42dd60['writer']['setAttribute']('data-suggestion',_0x57dd80,_0x2bf2c3),_0x42dd60['mapper']['bindElementToMarker'](_0x2bf2c3,_0x110e28['markerName']),_0x2fc5ca&&(_0x4fb5a1['activeMarkers']['includes'](_0x110e28['markerName'])?_0x42dd60['writer']['addClass']('ck-suggestion-marker--active',_0x2bf2c3):_0x42dd60['writer']['removeClass']('ck-suggestion-marker--active',_0x2bf2c3));}}};}_0x4fb5a1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4b253a),_0x4fb5a1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4b253a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x60db0f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x545ec3,_0xee8db0,_0x3e3828)=>{_0x3e3828['options']['showSuggestionHighlights']&&_0x60db0f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x545ec3,_0xee8db0,_0x3e3828);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x51cb4b,_0x48d87c,_0x54de86)=>{const {type:_0xbccb17,id:_0x4fa72c}=_0x4fb5a1['_splitMarkerName'](_0x48d87c['markerName']),_0x379a96=_0x4fb5a1['getSuggestion'](_0x4fa72c),_0x2325b0=_0x379a96['data'];if('formatBlock'!=_0x379a96['type']||!_0x2325b0||'setTableColumnHeader'!=_0x2325b0['commandName'])return;const _0x4890a2=_0x54de86['mapper']['markerNameToElements'](_0x48d87c['markerName']);if(_0x4890a2){for(const _0x31a438 of _0x4890a2)_0x54de86['writer']['removeClass']('ck-suggestion-marker-'+_0xbccb17,_0x31a438),_0x54de86['writer']['removeClass']('ck-suggestion-marker--active',_0x31a438),_0x54de86['writer']['removeAttribute']('data-suggestion',_0x31a438),_0x54de86['mapper']['unbindElementFromMarkerName'](_0x31a438,_0x48d87c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x424c1e=this['editor'],_0x12c4d5=_0x424c1e['locale'];function _0x5d3284(_0xbfea96){return{'type':'format','content':o(_0x12c4d5,'*Format:*\x20%0',_0xbfea96)};}_0x424c1e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2573cf=>{if('formatBlock'!=_0x2573cf['type'])return;const {data:_0xba090b}=_0x2573cf;if(_0xba090b){if('setTableRowHeader'==_0xba090b['commandName']){const _0x1d80e2=_0xba090b['commandParams'][0x0]['forceValue'];return _0x5d3284(o(_0x12c4d5,_0x1d80e2?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xba090b['commandName']){const _0x508fb0=_0xba090b['commandParams'][0x0]['forceValue'];return _0x5d3284(o(_0x12c4d5,_0x508fb0?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x293278=>[_0x293278,null]));class It extends _0x462782{static get['requires'](){return[jt];}['afterInit'](){const _0xd41d8=this['editor'];if(!_0xd41d8['plugins']['has']('TableClipboard'))return;const _0x2306ec=_0xd41d8['plugins']['get']('TrackChangesEditing'),_0x308485=_0xd41d8['plugins']['get']('TableUtils'),_0xd20093=_0xd41d8['plugins']['get'](jt),_0x3b7ff2=_0xd41d8['plugins']['get']('TableClipboard');_0xd20093['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xd41d8['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xd41d8['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x138a93=null;_0xd41d8['model']['on']('insertContent',(_0x4b02f0,_0x35b5b8)=>{const [_0x57ab95,_0x4158b1]=_0x35b5b8,_0x363d20=_0x35b5b8[_0x35b5b8['length']-0x1];_0x363d20&&_0x363d20['forceDefaultExecution']||_0x2306ec['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x49c407,_0x3e4aeb,_0x4ca870,_0x1f575f,_0x5e10cc){if(_0x3e4aeb&&!_0x3e4aeb['is']('documentSelection'))return!0x1;const _0x552a7e=_0x5e10cc['getTableIfOnlyTableInContent'](_0x49c407,_0x4ca870);if(!_0x552a7e||!he(_0x552a7e,void 0x0,_0x1f575f))return!0x1;const _0x5453f5=_0x1f575f['getSelectionAffectedTableCells'](_0x4ca870['document']['selection']);if(!_0x5453f5['length'])return!0x1;const _0x4f141c=_0x5453f5[0x0]['findAncestor']('table'),_0x279897=_0x1f575f['getRowIndexes'](_0x5453f5),_0x25556c=_0x1f575f['getColumnIndexes'](_0x5453f5),_0x521f10={'startRow':_0x279897['first'],'endRow':_0x279897['last'],'startColumn':_0x25556c['first'],'endColumn':_0x25556c['last']};return 0x1==_0x5453f5['length']&&(_0x521f10['endRow']+=_0x1f575f['getRows'](_0x552a7e)-0x1,_0x521f10['endColumn']+=_0x1f575f['getColumns'](_0x552a7e)-0x1),he(_0x4f141c,_0x521f10,_0x1f575f);}(_0x57ab95,_0x4158b1,_0xd41d8['model'],_0x308485,_0x3b7ff2)&&(_0x4b02f0['stop'](),_0x138a93={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xd41d8['model']['change'](()=>{_0xd41d8['model']['insertContent'](_0x35b5b8[0x0],_0x35b5b8[0x1],_0x35b5b8[0x2],{'forceDefaultExecution':!0x0});const _0x1a1b6f=_0xeabe53(),{rowInsertionRanges:_0x17eb7a,columnInsertionRanges:_0x562397,insertionRanges:_0x46fce7,deletionRanges:_0x6f9023,cells:_0x5c0047}=_0x138a93;_0x17eb7a['length']&&_0x2306ec['markMultiRangeInsertion'](_0x17eb7a,'tablePasteRow',{'tablePasteChainId':_0x1a1b6f}),_0x562397['length']&&_0x2306ec['markMultiRangeInsertion'](_0x562397,'tablePasteColumn',{'tablePasteChainId':_0x1a1b6f}),_0x46fce7['length']&&(_0x2306ec['markMultiRangeInsertion'](_0x46fce7,'tablePaste',{'tablePasteChainId':_0x1a1b6f,'skipNestingCheck':!0x0}),_0x46fce7['forEach'](_0x48b3b0=>_0x48b3b0['detach']?.())),_0x6f9023['length']&&(_0x2306ec['markMultiRangeDeletion'](_0x6f9023,'tablePaste',{'tablePasteChainId':_0x1a1b6f,'skipNestingCheck':!0x0}),_0x6f9023['forEach'](_0x20c35e=>_0x20c35e['detach']?.()));const _0x3380ad=_0x2306ec['markMultiRangeBlockFormat'](_0x5c0047['map'](({element:_0x20708f})=>_0x20708f),{'formatGroupId':_0xeabe53()},[],'tablePasteCell',{'tablePasteChainId':_0x1a1b6f});if(_0x3380ad){const _0x2893eb=_0x3380ad['getMarkers'](),_0x240409=[];for(const {element:_0x4eaaea,attributes:_0x519471}of _0x5c0047){if(!_0x519471)continue;const _0x7a42eb=_0xd41d8['model']['createRangeOn'](_0x4eaaea),_0x23c09c=_0x2893eb['find'](_0x53a1bc=>_0x53a1bc['getRange']()['isEqual'](_0x7a42eb));_0x23c09c&&_0x240409['push']([_0x23c09c['name'],_0x519471]);}_0x240409['length']&&_0x3380ad['setAttribute']('markerAttributes',Object['fromEntries'](_0x240409));}_0x138a93=null;}));},{'priority':_0xbf3aa1['high']+0xa}),_0xd41d8['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x36b3c4,_0x56180c)=>{const [_0x427cf9,_0x195b78,,_0x2cbb6e]=_0x56180c;if(!_0x138a93)return;_0x36b3c4['stop']();const _0x2b8a78=_0x427cf9['cell'],_0x3e5dfd=_0x195b78,_0x3fc9a6=Pe(_0x2b8a78),_0x1da555=Pe(_0x3e5dfd);_0x36b3c4['return']=_0x2b8a78;let _0x3c7e1f=null,_0x202f2f=null;if(_0x1da555||_0x3fc9a6){if(_0x3fc9a6&&!_0x1da555){_0x2cbb6e['remove'](_0x2b8a78['getChild'](0x0));for(const _0x3a3019 of Array['from'](_0x3e5dfd['getChildren']()))_0x2cbb6e['insert'](_0x3a3019,_0x2b8a78,'end');const _0x331b61=_0x138a93['rowInsertionIndexes']['includes'](_0x427cf9['row']),_0x21bbe3=_0x138a93['columnInsertionIndexes']['includes'](_0x427cf9['column']);_0x331b61||_0x21bbe3||(_0x3c7e1f=_0x3a5b18['fromRange'](_0x2cbb6e['createRangeIn'](_0x2b8a78)));}else _0x1da555&&!_0x3fc9a6&&(_0x202f2f=_0x2cbb6e['createRangeIn'](_0x2b8a78));}else{const _0x2a983d=_0x2cbb6e['createElement']('tableCellSuggestion'),_0x207229=_0x2cbb6e['createElement']('tableCellSuggestion');_0x2cbb6e['wrap'](_0x2cbb6e['createRangeIn'](_0x2b8a78),_0x207229),_0x2cbb6e['insert'](_0x2a983d,_0x2b8a78,0x0);for(const _0x558357 of Array['from'](_0x3e5dfd['getChildren']()))_0x2cbb6e['insert'](_0x558357,_0x2a983d,'end');_0x3c7e1f=_0x3a5b18['fromRange'](_0x2cbb6e['createRangeOn'](_0x2a983d)),_0x202f2f=_0x3a5b18['fromRange'](_0x2cbb6e['createRangeOn'](_0x207229));}const _0x17cafd=Array['from'](_0x3e5dfd['getAttributes']())['filter'](([_0x312b3b])=>ge['includes'](_0x312b3b));_0x138a93['cells']['push']({'element':_0x2b8a78,'attributes':_0x17cafd['length']?Object['fromEntries'](_0x17cafd):null}),_0x3c7e1f&&_0x138a93['insertionRanges']['push'](_0x3c7e1f),_0x202f2f&&_0x138a93['deletionRanges']['push'](_0x202f2f);},{'priority':'high'}),_0x308485['on']('insertColumns',(_0x41313d,_0x2e6e98)=>{const [_0x39e418,_0x3fbe9a={}]=_0x2e6e98;if(!_0x138a93)return;const _0x1f358d=_0x3fbe9a['at']||0x0,_0x337924=_0x3fbe9a['columns']||0x1;_0x138a93['columnInsertionIndexes']=new Array(_0x337924)['fill'](_0x1f358d)['map']((_0x3d86fe,_0x1ae6fa)=>_0x3d86fe+_0x1ae6fa);for(const {cell:_0x23a343}of _0x308485['createTableWalker'](_0x39e418,{'startColumn':_0x1f358d,'endColumn':_0x1f358d+_0x337924-0x1}))_0x138a93['columnInsertionRanges']['push'](_0xd41d8['model']['createRangeOn'](_0x23a343));},{'priority':'low'}),_0x308485['on']('insertRows',(_0x31e5b2,_0x52e318)=>{const [_0x3f0ce3,_0x38e201={}]=_0x52e318;if(!_0x138a93)return;const _0x143c52=_0x38e201['at']||0x0,_0x33c3da=_0x38e201['rows']||0x1;_0x138a93['rowInsertionIndexes']=new Array(_0x33c3da)['fill'](_0x143c52)['map']((_0x3286bc,_0x2486bd)=>_0x3286bc+_0x2486bd);for(const {cell:_0x40cdad}of _0x308485['createTableWalker'](_0x3f0ce3,{'startRow':_0x143c52,'endRow':_0x143c52+_0x33c3da-0x1}))_0x138a93['rowInsertionRanges']['push'](_0xd41d8['model']['createRangeOn'](_0x40cdad));},{'priority':'low'}),_0x2306ec['descriptionFactory']['registerDescriptionCallback'](_0x572d19=>{if(_0x572d19['subType']&&_0x572d19['subType']['startsWith']('tablePaste'))return _0x572d19['previous']?{}:{'type':'insertion','content':o(_0xd41d8['locale'],'*Replace\x20table\x20cells*')};});const _0x3179cc=()=>!0x1;for(const _0xf0408c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2306ec['_suggestionFactory']['registerCustomCallback']('insertion',_0xf0408c,'join',_0x3179cc),_0x2306ec['_suggestionFactory']['registerCustomCallback']('deletion',_0xf0408c,'join',_0x3179cc),_0x2306ec['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xf0408c,'join',_0x3179cc);_0x2306ec['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3179cc),_0x2306ec['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3ea340,_0x11f675,_0x1697cc)=>{const _0x40163e=_0x3ea340['map'](_0x3db130=>_0x3db130['getContainedElement']())['filter'](_0x21fcf1=>_0x21fcf1),_0x1d800d=new Map(_0x40163e['map'](_0x18fc11=>[_0x18fc11,null]));if(_0x138a93){for(const {element:_0xc3ce3d,attributes:_0x33404e}of _0x138a93['cells'])_0x33404e&&_0x1d800d['set'](_0xc3ce3d,_0x33404e);}else{if(_0x1697cc&&_0x1697cc['markerAttributes'])for(const [_0x4af057,_0x17247a]of Object['entries'](_0x1697cc['markerAttributes'])){const _0x3da85d=_0xd41d8['model']['markers']['get'](_0x4af057),_0x3dabfc=_0x3da85d?_0x3da85d['getRange']()['getContainedElement']():null;_0x3dabfc&&_0x1d800d['set'](_0x3dabfc,_0x17247a);}}_0xd41d8['model']['change'](_0x2ddf97=>{for(const [_0x120a8a,_0x539758]of _0x1d800d)_0x2ddf97['setAttributes']({...Ce,..._0x539758},_0x120a8a);});});const _0x22f2b0=(_0x52dfb2,_0x53b4a8)=>{_0x2306ec['_suggestionFactory']['registerCustomCallback'](_0x52dfb2,'tablePaste',_0x53b4a8,(_0xc227f4,_0x442c35,_0x478e7b)=>{_0xd41d8['model']['change'](_0x3d9bde=>{const _0xdd276=[];for(const _0xba1ab7 of _0xc227f4){const _0x1969ee=_0xba1ab7['start']['nodeAfter'];_0x1969ee['is']('element','tableCellSuggestion')&&_0xdd276['push'](_0x1969ee);}_0x2306ec['_suggestionFactory']['getSuggestionCallback'](_0x52dfb2,null,_0x53b4a8)(_0xc227f4,_0x442c35,_0x478e7b);for(const _0x1eee3a of _0xdd276)'$graveyard'!=_0x1eee3a['root']['rootName']&&_0x3d9bde['unwrap'](_0x1eee3a);});});};_0x22f2b0('insertion','accept'),_0x22f2b0('insertion','discard'),_0x22f2b0('deletion','accept'),_0x22f2b0('deletion','discard'),_0x2306ec['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3264ef=>{const _0xf8e4b5=_0x3264ef['map'](_0x23673f=>_0x23673f['getContainedElement']()),_0xa46462=_0xf8e4b5[0x0]['findAncestor']('table'),{minRow:_0xb6bf81,maxRow:_0x8a5fd0}=_0xd20093['_getCoordsForCells'](_0xf8e4b5);_0x308485['removeRows'](_0xa46462,{'at':_0xb6bf81,'rows':_0x8a5fd0-_0xb6bf81+0x1});}),_0x2306ec['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4a11bb=>{const _0x5124a9=_0x4a11bb['map'](_0x15d2c8=>_0x15d2c8['getContainedElement']()),_0x2d4b4a=_0x5124a9[0x0]['findAncestor']('table'),{minColumn:_0x255570,maxColumn:_0x150212}=_0xd20093['_getCoordsForCells'](_0x5124a9);_0x308485['removeColumns'](_0x2d4b4a,{'at':_0x255570,'columns':_0x150212-_0x255570+0x1});});const _0x104dbe=(_0x534e8d,_0x16461a)=>{if(!_0x16461a['subType']||!_0x16461a['subType']['startsWith']('tablePaste'))return;const _0x514613=_0x16461a['attributes']['tablePasteChainId'],_0x11e00a=_0x2306ec['getSuggestions']()['filter'](_0x5947a8=>_0x5947a8['isInContent']&&_0x5947a8['attributes']&&_0x5947a8['attributes']['tablePasteChainId']==_0x514613);_0x11e00a['length']&&_0x16461a['getAllAdjacentSuggestions']()['length']!=_0x11e00a['length']&&_0x11e00a['reduce']((_0x212d08,_0x4d2439)=>(_0x212d08['next']=_0x4d2439,_0x4d2439['previous']=_0x212d08,_0x4d2439));};function _0x8ea563(_0x4ffff1,_0x34a66b=!0x0){const {id:_0x30f615}=_0x2306ec['_splitMarkerName'](_0x4ffff1['markerName']),_0x2a900f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xa31ea2=_0x2306ec['activeMarkers']['includes'](_0x4ffff1['markerName']);return _0xa31ea2&&_0x2a900f['push']('ck-suggestion-marker--active'),{'classes':_0x2a900f,'attributes':{'data-suggestion':_0x30f615},'priority':_0xa31ea2&&_0x34a66b?0xbc2:0xbb8};}_0x2306ec['on']('suggestionLoaded',_0x104dbe,{'priority':'high'}),_0x2306ec['on']('suggestionUnloaded',_0x104dbe,{'priority':'high'}),_0xd41d8['model']['document']['registerPostFixer'](()=>{let _0xd28ba6=!0x1;const _0x66bc2a=Array['from'](_0xd41d8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x28e75c,data:_0x8f85f3}of _0x66bc2a){const {group:_0xb8a044,type:_0x68ed05,id:_0x1f0e25}=_0x2306ec['_splitMarkerName'](_0x28e75c);if('suggestion'!=_0xb8a044||'deletion'!=_0x68ed05||_0x8f85f3['oldRange'])continue;if(!_0x2306ec['hasSuggestion'](_0x1f0e25))continue;const _0x5e8485=_0x2306ec['getSuggestion'](_0x1f0e25)['getRanges'](),_0x2c76ab=_0xd41d8['plugins']['get']('Users')['me'];for(const _0x3c6a38 of _0x2306ec['getSuggestions']()){if(!_0x3c6a38['isInContent']||_0x3c6a38['author']!=_0x2c76ab)continue;if('formatBlock'!=_0x3c6a38['type']||'tablePasteCell'!=_0x3c6a38['subType'])continue;if(_0x3c6a38['getRanges']()['every'](_0x3c0155=>_0x5e8485['some'](_0x3a8603=>_0x3a8603['containsRange'](_0x3c0155,!0x0)))){for(const _0x28c438 of _0x3c6a38['getAllAdjacentSuggestions']())_0x28c438['isInContent']&&(_0x28c438['discard'](),_0xd28ba6=!0x0);}}}return _0xd28ba6;}),_0xd41d8['model']['document']['registerPostFixer'](_0xe11b66=>{const _0x1d60e8=_0xd41d8['commands']['get']('redo');if(!_0x1d60e8||!_0x1d60e8['_createdBatches']['has'](_0xe11b66['batch']))return!0x1;let _0x47a885=!0x1;const _0xdde61b=_0xd41d8['plugins']['get']('Users')['me'],_0x7a85e2=_0xd41d8['model']['document']['differ']['getChanges'](),_0x2d50e7=Array['from'](_0xd41d8['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5d7bfc,data:_0x2a7768})=>{const {group:_0x2ad976,subType:_0x1fed9e,authorId:_0x38cde9}=_0x2306ec['_splitMarkerName'](_0x5d7bfc);return'suggestion'==_0x2ad976&&'tablePaste'==_0x1fed9e&&_0x38cde9==_0xdde61b['id']&&!_0x2a7768['oldRange'];});for(const _0x2ff2a1 of _0x7a85e2){if('insert'!=_0x2ff2a1['type']||'tableCellSuggestion'!=_0x2ff2a1['name']||0x1!=_0x2ff2a1['length'])continue;const _0x6be56=_0xe11b66['createRange'](_0x2ff2a1['position'],_0x2ff2a1['position']['getShiftedBy'](0x1));if(!_0x2d50e7['find'](({data:_0x6cd52})=>_0x6cd52['newRange']['isEqual'](_0x6be56))){for(const {name:_0x9755f7,data:_0x4b159f}of _0x2d50e7)if(_0x6be56['containsRange'](_0x4b159f['newRange'])){_0xe11b66['updateMarker'](_0x9755f7,{'range':_0x6be56}),_0x47a885=!0x0;break;}}}return _0x47a885;}),_0xd41d8['model']['document']['registerPostFixer'](_0x5aa382=>{let _0x14ed79=!0x1;const _0xf9c8db=_0xd41d8['plugins']['get']('Users')['me'],_0x5d02d6=_0x2306ec['getSuggestions']()['filter'](_0x1ffa85=>_0x1ffa85['isInContent']&&_0x1ffa85['author']==_0xf9c8db),_0x4d2a01=new Set(),_0x56e82a=new Set();for(const _0xe0ef9c of _0x5d02d6)if('tablePaste'==_0xe0ef9c['subType'])for(const _0x4750f4 of _0xe0ef9c['getMarkers']()){const _0xdceb85=_0x4750f4['getRange']()['getContainedElement']();if(_0xdceb85){if(_0xdceb85['is']('element','tableCellSuggestion')&&Pe(_0xdceb85)){_0xe0ef9c['removeMarker'](_0x4750f4['name']),_0x4d2a01['add'](_0xdceb85),_0x14ed79=!0x0;const _0x3cb490=_0xdceb85['nextSibling'],_0x51b559=_0xdceb85['previousSibling'],_0x258260=_0x3cb490&&_0x3cb490['is']('element','tableCellSuggestion'),_0x272caf=_0x51b559&&_0x51b559['is']('element','tableCellSuggestion');_0x258260&&!_0x4d2a01['has'](_0x3cb490)&&_0x56e82a['add'](_0x3cb490),_0x272caf&&!_0x4d2a01['has'](_0x51b559)&&_0x56e82a['add'](_0x51b559);}else _0xdceb85['is']('element','paragraph')&&_0xdceb85['isEmpty']&&(_0xe0ef9c['removeMarker'](_0x4750f4['name']),_0x14ed79=!0x0);}}else{if('tablePasteCell'==_0xe0ef9c['subType']){if(!_0xe0ef9c['attributes']||!_0xe0ef9c['attributes']['tablePasteChainId'])continue;const _0x431850=_0xe0ef9c['attributes']['markerAttributes'];if(_0x431850&&Object['keys'](_0x431850)['length'])continue;const _0xb56bdd=_0xe0ef9c['attributes']['tablePasteChainId'];let _0x1ecc00=!0x0,_0x5968e7=!0x0;for(const _0x30c608 of _0x5d02d6)if(_0x30c608['subType']&&_0x30c608['subType']['startsWith']('tablePaste')){if(!_0x30c608['attributes']['tablePasteChainId']){_0x5968e7=!0x1;break;}if(_0x30c608['id']!=_0xe0ef9c['id']&&_0x30c608['attributes']['tablePasteChainId']==_0xb56bdd){_0x1ecc00=!0x1;break;}}_0x5968e7&&_0x1ecc00&&(_0xe0ef9c['removeMarkers'](),_0x14ed79=!0x0);}}for(const _0x1ee9d1 of _0x4d2a01)_0x5aa382['remove'](_0x1ee9d1);for(const _0x1f6e34 of _0x56e82a)_0x5aa382['unwrap'](_0x1f6e34);return _0x14ed79;}),_0xd41d8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x549bcc,_0x51b30b)=>_0x8ea563(_0x549bcc),'converterPriority':'high'}),_0xd41d8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x430761,_0x413635)=>_0x413635['options']['showSuggestionHighlights']?_0x8ea563(_0x430761,!0x1):null,'converterPriority':'high'});const _0x3aa5df=_0xd41d8['editing']['view'];this['listenTo'](_0x3aa5df['document'],'clipboardOutput',(_0x40b0d2,_0x2be559)=>{const _0x3901b2=[];for(const _0x5b8a23 of _0x3aa5df['createRangeIn'](_0x2be559['content'])['getItems']())_0x5b8a23['is']('element','suggestion-td')&&_0x3901b2['push'](_0x5b8a23);_0x3aa5df['change'](_0x5cb55a=>{for(const _0x135fca of _0x3901b2)_0x5cb55a['move'](_0x5cb55a['createRangeIn'](_0x135fca),_0x5cb55a['createPositionBefore'](_0x135fca)),_0x5cb55a['remove'](_0x135fca);});});}}function Pe(_0xa61913){if(_0xa61913['isEmpty'])return!0x0;const _0x26b912=_0xa61913['getChild'](0x0);return _0x26b912['is']('element','paragraph')&&_0x26b912['isEmpty'];}function he(_0x345618,_0x38c230={},_0x47fbc4){for(const {isAnchor:_0x1504a6,cellHeight:_0x4f9949,cellWidth:_0x368fcd}of _0x47fbc4['createTableWalker'](_0x345618,{'includeAllSlots':!0x0,..._0x38c230}))if(!_0x1504a6||0x1!=_0x4f9949||0x1!=_0x368fcd)return!0x1;return!0x0;}class vt extends _0x462782{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x47c11a=this['editor']['plugins']['get']('TrackChangesEditing');_0x47c11a['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x47c11a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x47c11a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x47c11a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x47c11a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x47c11a['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x189d14,_0x3cbacf){const _0x2984de=this['editor']['plugins']['get']('TrackChangesEditing'),_0x494882=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3a7f30=_0x3cbacf['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x58c43a=_0x494882['getColumnGroupElement'](_0x3a7f30);let _0x2dafad=_0x58c43a?_0x494882['getTableColumnsWidths'](_0x58c43a):null,_0x20969c=_0x3a7f30['getAttribute']('tableWidth')||null;const _0x225d26=_0x3cbacf['tableWidth']||_0x20969c,_0x48e30a=_0x3cbacf['columnWidths']||_0x2dafad,_0x2c1e31=this['editor']['plugins']['get']('Users')['me'];for(const _0x3635fe of _0x2984de['getSuggestions']()){const _0x56e383=_0x3635fe['getContainedElement']();if('resizeTable'===_0x3635fe['subType']&&_0x56e383===_0x3a7f30){_0x3635fe['author']!==_0x2c1e31&&_0x3635fe['discard']();const _0x2528b0=_0x3635fe['data']['commandParams'];_0x20969c=_0x2528b0[0x0]['tableWidth'],_0x2dafad=_0x2528b0[0x0]['columnWidths'];break;}}_0x189d14({'table':_0x3a7f30,'tableWidth':_0x225d26,'columnWidths':_0x48e30a}),_0x2984de['markBlockFormat'](_0x3a7f30,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x20969c,'columnWidths':_0x2dafad}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2345ab){if('formatBlock'!=_0x2345ab['type']&&'formatInline'!=_0x2345ab['type'])return;const {data:_0x34685b}=_0x2345ab;if(_0x34685b&&'resizeTable'===_0x34685b['formatGroupId']){const _0x46748a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x46748a)};}}}class Ct extends _0x462782{['afterInit'](){const _0x19e48e=this['editor'];_0x19e48e['plugins']['has']('Template')&&_0x19e48e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x462782{['afterInit'](){const _0x595928=this['editor'];if(!_0x595928['commands']['get']('insertTableOfContents'))return;_0x595928['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x506588=_0x595928['plugins']['get']('TrackChangesEditing'),_0x4c7ac8=_0x595928['locale'];_0x506588['descriptionFactory']['registerElementLabel']('tableOfContents',_0x453568=>o(_0x4c7ac8,'ELEMENT_TABLE_OF_CONTENTS',_0x453568));}}class Dt extends _0x462782{['afterInit'](){const _0xa69d5a=this['editor'];if(!_0xa69d5a['plugins']['has']('Title'))return;const _0x52a074=_0xa69d5a['plugins']['get']('TrackChangesEditing');_0x52a074['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xa69d5a['locale'],'ELEMENT_TITLE')),_0xa69d5a['model']['document']['registerPostFixer'](_0x270edf=>{let _0x3daf35=!0x1;const _0x423050=Array['from'](_0xa69d5a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2f16c7,data:_0x323d21}of _0x423050){const {group:_0x216b15}=_0x52a074['_splitMarkerName'](_0x2f16c7);if('suggestion'!==_0x216b15||!_0x323d21['newRange'])continue;const _0x35a924=_0x323d21['newRange'],_0x1ab88a=_0x35a924['end']['nodeBefore'];if(!_0x1ab88a||!_0x1ab88a['is']('element','title-content'))continue;if(!_0x35a924['start']['isTouching'](_0x35a924['end']))continue;const _0x581bd0=_0xa69d5a['model']['schema']['getNearestSelectionRange'](_0x35a924['end'],'forward');if(_0x581bd0&&_0x581bd0['isCollapsed']){const _0x125bdb=_0x270edf['createRange'](_0x35a924['start'],_0x581bd0['start']);_0x125bdb['isEqual'](_0x35a924)||(_0x270edf['updateMarker'](_0x2f16c7,{'range':_0x125bdb}),_0x3daf35=!0x0);}_0x3daf35||(_0x270edf['removeMarker'](_0x2f16c7),_0x3daf35=!0x0);}return _0x3daf35;});}}class Nt extends _0x462782{['afterInit'](){const _0x5eae64=this['editor'],_0x424a6a=_0x5eae64['plugins']['get']('TrackChangesEditing');_0x5eae64['plugins']['has']('UndoEditing')&&(_0x424a6a['enableCommand']('undo'),_0x424a6a['enableCommand']('redo'));}}class Mt extends _0x462782{static get['requires'](){return[jt];}['afterInit'](){const _0x24dd5c=this['editor'];if(!_0x24dd5c['plugins']['has']('TableCaptionEditing'))return;_0x24dd5c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x462782{['tableProperties'];['tableCellProperties'];constructor(_0x4f4b69){super(_0x4f4b69),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 _0x5d8489=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xc50be2 of this['tableProperties'])_0x5d8489['enableCommand'](_0xc50be2,(_0x282a48,_0x5c2a8c)=>{const _0x3b1c2f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xc50be2,[_0x3b1c2f],this['tableProperties'],'tableProperties',_0x282a48,_0x5c2a8c);});_0x5d8489['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5d8489['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5d8489['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4d38b9,_0x128247)=>this['handleDiscardAction'](this['tableProperties'],_0x4d38b9,_0x128247)),_0x5d8489['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4317c1 of this['tableCellProperties'])_0x5d8489['enableCommand'](_0x4317c1,(_0x3aa9f3,_0x199210)=>{const _0x1e4375=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4317c1,_0x1e4375,this['tableCellProperties'],'tableCellProperties',_0x3aa9f3,_0x199210);});_0x5d8489['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5d8489['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5d8489['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x191e82,_0x3be0e4)=>this['handleDiscardAction'](this['tableCellProperties'],_0x191e82,_0x3be0e4)),_0x5d8489['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5d8489['descriptionFactory']['registerDescriptionCallback'](_0x97b968=>this['handleSuggestionDescription'](_0x97b968));}['_handlePropertyChange'](_0x1b77d4,_0x4f5ffa,_0xd0c46d,_0x144bb0,_0x342be5,_0x409f54){const _0x36750b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x409f54['batch'],()=>{for(const _0x492696 of _0x4f5ffa){if(this['_getSuggestion'](_0x492696,_0x144bb0))_0x342be5(_0x409f54);else{const _0xb7a20e={};for(const _0x4ddc80 of _0xd0c46d){const _0x158e7b=_0x492696['getAttribute'](_0x4ddc80);void 0x0!==_0x158e7b&&(_0xb7a20e[_0x4ddc80]=_0x158e7b);}_0x342be5(_0x409f54),_0x36750b['markBlockFormat'](_0x492696,{'commandParams':[_0xb7a20e]},[],_0x144bb0);}}});}['handleDiscardAction'](_0x1c6cda,_0x298f9c,_0x1750f4){const _0x1798cd=_0x298f9c[0x0]['start']['nodeAfter'],_0x183298=_0x1750f4['commandParams'][0x0];this['editor']['model']['change'](_0x443579=>{for(const _0x39aee5 of _0x1c6cda)void 0x0!==_0x183298[_0x39aee5]?_0x443579['setAttribute'](_0x39aee5,_0x183298[_0x39aee5],_0x1798cd):_0x443579['removeAttribute'](_0x39aee5,_0x1798cd);});}['handleSuggestionDescription'](_0x1bdbcd){if(_0x1bdbcd['data'])switch(_0x1bdbcd['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'](_0x231ab2,_0x4e0be3){const _0x3a9d6d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x465d95 of _0x3a9d6d['getSuggestions']({'skipNotAttached':!0x0})){const _0x147350=_0x465d95['getContainedElement']();if(_0x465d95['subType']===_0x4e0be3&&_0x147350===_0x231ab2)return _0x465d95;}return null;}}const m='$elementName';class p extends _0x462782{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x537a23,_0xd5ee65,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(_0x812aab){function _0x231a23(_0x30c04b){return _0x30c04b['map'](_0x588f6c=>String['fromCharCode'](_0x588f6c))['join']('');}super(_0x812aab),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1cba74,_0x5b21ab,_0x211ee4,_0xa048ca)=>{this['_model']['change'](()=>{for(const _0x332968 of[..._0xa048ca,..._0x211ee4])this['_model']['markers']['has'](_0x332968)&&_0x812aab['editing']['reconvertMarker'](_0x332968);});}),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']=_0x812aab['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(),_0x812aab['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x812aab['config']['get']('trackChanges.trackFormatChanges'),_0x812aab['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x812aab['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x812aab,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x231a23([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x231a23([0x34,0x30,0x34,0x38,0x31,0x32,0x33,0x36]);}['init'](){const _0x2ff22c=this['editor'],_0x5765aa=(_0x6d200f,_0x2c7145)=>{if('attribute'!=_0x6d200f)return'ck-suggestion-marker-'+_0x6d200f;const _0xd19eb8=_0x2c7145['split']('|')[0x0];return this['_isBlockAttribute'](_0xd19eb8)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2ff22c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x569f11=>{const {id:_0x3138aa,type:_0x7cde9a,subType:_0x5194f6}=this['_splitMarkerName'](_0x569f11['markerName']),_0x10feb7=['ck-suggestion-marker',_0x5765aa(_0x7cde9a,_0x5194f6)];let _0x1689fc=0xbb8;return this['activeMarkers']['includes'](_0x569f11['markerName'])&&(_0x10feb7['push']('ck-suggestion-marker--active'),_0x1689fc=0xbc2),'deletion'==_0x7cde9a&&(_0x1689fc+=0x5),{'classes':_0x10feb7,'attributes':{'data-suggestion':_0x3138aa},'priority':_0x1689fc};}}),_0x2ff22c['conversion']['for']('dataDowncast')['add'](_0x4634ab=>{_0x4634ab['on']('addMarker:suggestion',(_0x5c81d2,_0x462464,_0x1c70d8)=>{if(!_0x1c70d8['options']['showSuggestionHighlights'])return;const _0x454106=_0x462464['item'];if(!_0x454106)return;const _0x4a6598=_0x1c70d8['mapper']['toViewElement'](_0x454106);_0x2ff22c['model']['schema']['isObject'](_0x454106)&&_0x4a6598&&!_0x4a6598['getCustomProperty']('widget')&&_0x4a6598['is']('containerElement')&&_0x18a5d4(_0x4a6598,_0x1c70d8['writer']);},{'priority':'high'});}),_0x2ff22c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x365cc3,_0x2dc3a8)=>{if(!_0x2dc3a8['options']['showSuggestionHighlights'])return null;const {type:_0x5d9f16,subType:_0x129bed}=this['_splitMarkerName'](_0x365cc3['markerName']);return{'classes':['ck-suggestion-marker',_0x5765aa(_0x5d9f16,_0x129bed)],'priority':0xbb8};}});const _0x2c916e=({showActiveMarkers:_0x4db700=!0x0,isAttributeSuggestion:_0x4eb5e8=!0x1}={})=>(_0x34b2fc,_0x506710,_0x4aba55)=>{if(!_0x506710['item'])return;const {id:_0x69537}=this['_splitMarkerName'](_0x506710['markerName']);if(_0x4eb5e8){const _0x1bd50b=this['_suggestions']['get'](_0x69537),_0x168c56=this['_getAttributeKey'](_0x1bd50b);if(!this['_isBlockAttribute'](_0x168c56))return;}if(_0x506710['item']['is']('selection'))return void _0x4aba55['consumable']['consume'](_0x506710['item'],_0x34b2fc['name']);const _0x11ea1a=_0x4aba55['mapper']['toViewElement'](_0x506710['item']);if(_0x506710['item']['is']('element')&&_0x2ff22c['model']['schema']['isBlock'](_0x506710['item'])&&!_0x11ea1a['getCustomProperty']('addHighlight')){_0x4aba55['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x11ea1a),_0x4aba55['writer']['setAttribute']('data-suggestion',_0x69537,_0x11ea1a),_0x4aba55['mapper']['bindElementToMarker'](_0x11ea1a,_0x506710['markerName']),_0x4db700&&(this['activeMarkers']['includes'](_0x506710['markerName'])?_0x4aba55['writer']['addClass']('ck-suggestion-marker--active',_0x11ea1a):_0x4aba55['writer']['removeClass']('ck-suggestion-marker--active',_0x11ea1a));for(const _0x54010d of _0x2ff22c['model']['createRangeIn'](_0x506710['item'])['getItems']())_0x4aba55['consumable']['consume'](_0x54010d,_0x34b2fc['name']);_0x4aba55['consumable']['consume'](_0x506710['item'],_0x34b2fc['name']);}};_0x2ff22c['conversion']['for']('dataDowncast')['add'](_0x2b24d0=>{_0x2b24d0['on']('addMarker:suggestion:formatBlock',(_0x4466c1,_0x562a00,_0x37995d)=>{_0x37995d['options']['showSuggestionHighlights']&&_0x2c916e({'showActiveMarkers':!0x1})(_0x4466c1,_0x562a00,_0x37995d);},{'priority':'highest'});}),_0x2ff22c['conversion']['for']('dataDowncast')['add'](_0x499f90=>{_0x499f90['on']('addMarker:suggestion:attribute',(_0xd436c6,_0x2c5a1b,_0xb0b58e)=>{_0xb0b58e['options']['showSuggestionHighlights']&&_0x2c916e({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xd436c6,_0x2c5a1b,_0xb0b58e);},{'priority':'highest'});}),_0x2ff22c['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2698a8,_0x3cf994)=>_0x3cf994['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2698a8['substr'](0xb)}}),_0x2ff22c['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4c9a98,{writer:_0x5a68d9})=>{let _0x46e607='suggestion:'+_0x4c9a98['getAttribute']('suggestion-type')+':'+_0x4c9a98['getAttribute']('id');return _0x4c9a98['getAttribute']('marker-count')&&(_0x46e607+=':'+_0x4c9a98['getAttribute']('marker-count')),_0x5a68d9['createElement']('$marker',{'data-name':_0x46e607});}}),_0x2ff22c['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2ff22c['conversion']['for']('editingDowncast')['add'](_0x4e9fe3=>{_0x4e9fe3['on']('addMarker:suggestion:formatBlock',_0x2c916e(),{'priority':'high'});}),_0x2ff22c['conversion']['for']('editingDowncast')['add'](_0x2466ae=>{_0x2466ae['on']('addMarker:suggestion:attribute',_0x2c916e({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2ff22c['conversion']['for']('editingDowncast')['add'](_0x3f609b=>{_0x3f609b['on']('removeMarker:suggestion:formatBlock',(_0x2b429b,_0x5998c0,_0x33010c)=>{const _0x358897=_0x33010c['mapper']['markerNameToElements'](_0x5998c0['markerName']);if(_0x358897){for(const _0x2fae4a of _0x358897)_0x2fae4a['getCustomProperty']('addHighlight')||(_0x33010c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2fae4a),_0x33010c['writer']['removeAttribute']('data-suggestion',_0x2fae4a),_0x33010c['mapper']['unbindElementFromMarkerName'](_0x2fae4a,_0x5998c0['markerName']));}},{'priority':'high'});}),_0x2ff22c['conversion']['for']('editingDowncast')['add'](_0x4ef17a=>{_0x4ef17a['on']('removeMarker:suggestion:attribute',(_0x2ce9c8,_0x59e626,_0x26f202)=>{const _0x1815b1=_0x26f202['mapper']['markerNameToElements'](_0x59e626['markerName']);if(!_0x1815b1)return;const {id:_0x5a3a7f}=this['_splitMarkerName'](_0x59e626['markerName']),_0x51ebaa=this['_suggestions']['get'](_0x5a3a7f),_0x1c43fa=this['_getAttributeKey'](_0x51ebaa);if(this['_isBlockAttribute'](_0x1c43fa)){for(const _0xfb78a2 of _0x1815b1)_0xfb78a2['getCustomProperty']('addHighlight')||(_0x26f202['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xfb78a2),_0x26f202['writer']['removeAttribute']('data-suggestion',_0xfb78a2),_0x26f202['mapper']['unbindElementFromMarkerName'](_0xfb78a2,_0x59e626['markerName']));}},{'priority':'high'});}),_0x2ff22c['model']['document']['registerPostFixer'](_0x1819a7=>{let _0x2e74d4=!0x1;const _0x31de96=Array['from'](_0x2ff22c['model']['document']['differ']['getChangedMarkers']()),_0x3a46bb=new Set();for(const {name:_0x26fb28,data:_0xacff4f}of _0x31de96){const {group:_0x168cd7,type:_0x36ae70,subType:_0x1d5442,id:_0x4da950}=this['_splitMarkerName'](_0x26fb28);if('suggestion'!==_0x168cd7)continue;const _0x33b986=this['_suggestions']['get'](_0x4da950);if(null!=_0xacff4f['newRange']){'formatInline'==_0x36ae70&&(_0x2e74d4=_0x2e74d4||Et(_0xacff4f['newRange'],_0x26fb28,_0x1819a7,_0x2ff22c['model']['schema']));const _0x3d32c6='attribute'==_0x36ae70&&this['_isBlockAttribute'](_0x1d5442['split']('|')[0x0]);if(_0xacff4f['newRange']['isCollapsed']||'$graveyard'==_0xacff4f['newRange']['root']['rootName']||'formatBlock'==_0x36ae70&&!Ut(_0xacff4f['newRange'])||_0x3d32c6&&!Ut(_0xacff4f['newRange'])||'deletion'==_0x36ae70&&!(!Tt(_0x2989e1=_0xacff4f['newRange'])&&!function(_0x3e0b22){return _0x3e0b22['start']['parent']==_0x3e0b22['end']['nodeBefore']&&_0x3e0b22['start']['isAtEnd'];}(_0x2989e1)))_0x1819a7['removeMarker'](_0x26fb28),_0x2e74d4=!0x0;else{if(!_0x33b986||!_0x33b986['isInContent'])continue;_0x3a46bb['add'](_0x33b986);}}}var _0x2989e1;return _0x3a46bb['size']>0x0&&(_0x2e74d4=!!this['_joinWithAdjacentSuggestions'](_0x3a46bb)||_0x2e74d4),_0x2e74d4;}),_0x2ff22c['model']['document']['registerPostFixer'](_0x85f5a6=>{let _0x5472ae=!0x1;for(const _0x25a272 of _0x2ff22c['model']['document']['differ']['getChanges']())if('insert'==_0x25a272['type'])for(const _0x5a6074 of this['_suggestions']['values']()){if(_0x5a6074['isMultiRange']||!_0x5a6074['isInContent'])continue;const _0x827fb7='formatBlock'==_0x5a6074['type'],_0x25f06a=this['_getAttributeKey'](_0x5a6074),_0x32a951=_0x25f06a&&this['_isBlockAttribute'](_0x25f06a);if(!_0x827fb7&&!_0x32a951)continue;const _0x33c03c=_0x5a6074['getFirstRange']();if(_0x33c03c['start']['parent']!=_0x33c03c['end']['parent']&&!_0x33c03c['end']['isAtEnd']){const _0x5c2a8f=_0x2ff22c['model']['createPositionAt'](_0x33c03c['start']['nodeAfter'],'end'),_0x51f982=_0x2ff22c['model']['createRange'](_0x33c03c['start'],_0x5c2a8f);_0x85f5a6['updateMarker'](_0x5a6074['getFirstMarker'](),{'range':_0x51f982}),_0x5472ae=!0x0;}}return _0x5472ae;}),_0x2ff22c['model']['document']['registerPostFixer'](_0x427ab1=>this['_processAttributeChanges'](_0x427ab1)),_0x2ff22c['model']['document']['registerPostFixer'](_0x12b71f=>!_0x12b71f['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x12b71f)),_0x2ff22c['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2ff22c['model']['document']['on']('change:data',(_0x18ff06,_0x302500)=>{if(!_0x302500['isLocal']||_0x302500['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x22f3ad=_0x2ff22c['model']['document']['differ']['getChanges']();if(0x0==_0x22f3ad['length'])return;const _0x435813=[],_0x1554fa=_0x22f3ad['filter'](_0x41c581=>'attribute'==_0x41c581['type']),_0x42b696=_0x22f3ad['filter'](_0x85c41=>'insert'==_0x85c41['type']&&'$text'!=_0x85c41['name']);for(const _0x18afbb of _0x1554fa)this['_isRegisteredAttribute'](_0x18afbb['attributeKey'])&&_0x435813['push']({'key':_0x18afbb['attributeKey'],'newValue':_0x18afbb['attributeNewValue'],'oldValue':_0x18afbb['attributeOldValue'],'range':Ot(_0x18afbb['range'],_0x2ff22c['model'])});for(const _0xd26ce0 of _0x42b696){if('rename'!=_0xd26ce0['action']&&'refresh'!=_0xd26ce0['action'])continue;const _0x1ace30=Gt(_0xd26ce0['position']['nodeAfter'],_0x2ff22c['model']),_0x45df0c=_0xd26ce0['before'];'rename'==_0xd26ce0['action']&&_0x435813['push']({'key':m,'newValue':_0xd26ce0['name'],'oldValue':_0x45df0c['name'],'range':_0x1ace30});for(const [_0x5125c8,_0x51dae5]of _0x45df0c['attributes']){if(!this['_isRegisteredAttribute'](_0x5125c8))continue;const _0x7f4e91=_0xd26ce0['attributes']['get'](_0x5125c8);_0x51dae5!==_0x7f4e91&&_0x435813['push']({'key':_0x5125c8,'newValue':_0x7f4e91,'oldValue':_0x51dae5,'range':_0x1ace30});}for(const [_0x4ec64e,_0x43fedf]of _0xd26ce0['attributes'])this['_isRegisteredAttribute'](_0x4ec64e)&&(_0x45df0c['attributes']['has'](_0x4ec64e)||_0x435813['push']({'key':_0x4ec64e,'newValue':_0x43fedf,'oldValue':null,'range':_0x1ace30}));}0x0!=_0x435813['length']&&_0x2ff22c['model']['enqueueChange'](_0x302500,_0x3fc4e1=>{const _0x241fcc=_0xeabe53();for(const {range:_0x27ba95,key:_0x1d5b73,oldValue:_0xd75a1e,newValue:_0x4ab200}of _0x435813)this['markAttributeChange'](_0x27ba95,_0x1d5b73,_0xd75a1e,_0x4ab200,{'groupId':_0x241fcc});this['_reduceExistingSuggestions'](_0x3fc4e1,_0x435813);});},{'priority':'lowest'}),_0x2ff22c['model']['markers']['on']('update:suggestion',(_0x1cb082,_0x36d618,_0xd49af5)=>{if(null==_0xd49af5){const {id:_0x4ee561}=this['_splitMarkerName'](_0x36d618['name']),_0xe592bb=this['_suggestions']['get'](_0x4ee561);_0xe592bb&&_0xe592bb['addMarkerName'](_0x36d618['name']);}}),_0x2ff22c['model']['document']['on']('change:data',()=>{const _0x706929=Array['from'](_0x2ff22c['model']['document']['differ']['getChangedMarkers']())['filter'](_0x20e844=>'suggestion'===this['_splitMarkerName'](_0x20e844['name'])['group']);if(0x0===_0x706929['length'])return;_0x706929['sort']((_0x5af569,_0x12981f)=>{const _0x5e8c05=_0x5af569['data']['oldRange'],_0x1757db=_0x12981f['data']['oldRange'];return null===_0x5e8c05&&null===_0x1757db?0x0:null===_0x5e8c05&&null!==_0x1757db?-0x1:null!==_0x5e8c05&&null===_0x1757db?0x1:_0x5e8c05['start']['isBefore'](_0x1757db['start'])?-0x1:0x1;});const _0x2e0ee4=new Set(),_0x328d92=new Set();for(const {name:_0x1045f7,data:_0x3b6c0f}of _0x706929){const {id:_0x9c29d3}=this['_splitMarkerName'](_0x1045f7);if(null===_0x3b6c0f['oldRange']){const _0x3f1203=this['_handleNewSuggestionMarker'](_0x1045f7);_0x328d92['add'](_0x3f1203);}else{const _0x3147c3=this['_suggestions']['get'](_0x9c29d3);null!==_0x3b6c0f['newRange']||_0x3147c3['isInContent']?(_0x2e0ee4['add'](_0x3147c3['head']),_0x328d92['add'](_0x3147c3)):this['_removeSuggestion'](_0x3147c3);}}_0x328d92['size']>0x0&&this['_refreshSuggestionsChain'](_0x328d92);for(const _0x5cb180 of _0x2e0ee4)this['fire']('suggestionChanged',_0x5cb180);}),_0x2ff22c['model']['on']('applyOperation',(_0x4e61b3,_0x19ab6c)=>{const _0x206197=_0x19ab6c[0x0];if(!this['_suggestions']['size'])return;if(!_0x206197['isDocumentOperation'])return;if(_0x206197['batch']['isUndo']||!_0x206197['batch']['isLocal'])return;let _0x57a78d,_0x27822f;switch(_0x206197['type']){case'insert':_0x57a78d=_0x2ff22c['model']['createPositionAt'](_0x206197['position']),_0x27822f=_0x57a78d['getShiftedBy'](_0x206197['howMany']);break;case'split':_0x57a78d=_0x2ff22c['model']['createPositionAt'](_0x206197['splitPosition']),_0x27822f=_0x2ff22c['model']['createPositionAt'](_0x206197['moveTargetPosition']);break;case'move':_0x57a78d=_0x2ff22c['model']['createPositionAt'](_0x206197['targetPosition']),_0x27822f=_0x57a78d['getShiftedBy'](_0x206197['howMany']);break;default:return;}const _0x567b83=_0x2ff22c['model']['createRange'](_0x57a78d,_0x27822f);_0x2ff22c['model']['change'](()=>{for(const {suggestion:_0x579686,meta:_0x438426}of this['_findSuggestions'](_0x567b83)){if(_0x579686['isMultiRange'])continue;if('formatInline'==_0x579686['type'])continue;const _0x3e98aa=this['_getAttributeKey'](_0x579686);if(_0x3e98aa&&this['_isBlockAttribute'](_0x3e98aa)&&'split'!=_0x206197['type'])continue;const _0x1952a0=_0x579686['data']&&_0x579686['data']['multipleBlocks'];('formatBlock'!=_0x579686['type']||'split'==_0x206197['type']&&!_0x1952a0)&&(_0x438426['containsRangeInObject']||'insertion'==_0x579686['type']&&_0x438426['isOwn']||_0x579686['getFirstRange']()['containsRange'](_0x567b83)&&this['_breakSuggestionMarker'](_0x579686,_0x57a78d,_0x27822f));}});},{'priority':'lowest'}),_0x2ff22c['model']['on']('deleteContent',(_0x456c6e,_0x556fd7)=>{const _0x565b66=_0x556fd7[0x0],_0x2dc5e1=_0x556fd7[0x1];if(_0x2dc5e1&&_0x2dc5e1['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x565b66['isCollapsed'])return;const _0x25b6ed=_0x2ff22c['model']['schema'],{start:_0x189855,end:_0x5d98fe}=_0x565b66['getFirstRange'](),_0x4d11d4=_0x189855['nodeAfter']&&_0x25b6ed['isLimit'](_0x189855['nodeAfter'])?null:_0x25b6ed['getNearestSelectionRange'](_0x189855,'forward'),_0xa5bb4c=_0x5d98fe['nodeBefore']&&_0x25b6ed['isLimit'](_0x5d98fe['nodeBefore'])?null:_0x25b6ed['getNearestSelectionRange'](_0x5d98fe,'backward'),_0x44c87a=_0x2ff22c['model']['createRange'](_0x4d11d4?_0x4d11d4['start']:_0x189855,_0xa5bb4c?_0xa5bb4c['end']:_0x5d98fe);_0x2ff22c['model']['change'](_0x1b9987=>{this['markDeletion'](_0x44c87a);const _0x5f433c=_0x2ff22c['model']['schema']['getNearestSelectionRange'](_0x44c87a['start']);_0x565b66['is']('documentSelection')?_0x1b9987['setSelection'](_0x5f433c):_0x565b66['setTo'](_0x5f433c);}),_0x456c6e['stop']();},{'priority':_0xbf3aa1['normal']+0xa}),_0x2ff22c['model']['on']('insertContent',(_0x11c176,_0x38447a)=>{const _0x4bc8da=_0x38447a[_0x38447a['length']-0x1];_0x4bc8da&&_0x4bc8da['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2ff22c['model']['change'](()=>{let _0x5e5bdc=_0x2ff22c['model']['insertContent'](_0x38447a[0x0],_0x38447a[0x1],_0x38447a[0x2],{'forceDefaultExecution':!0x0});if(!_0x5e5bdc)return;_0x11c176['return']=_0x5e5bdc['clone']();const _0x1a8241=_0x5e5bdc['end']['nodeBefore'],_0xb6bd43=_0x2ff22c['model']['schema'];_0x1a8241&&_0xb6bd43['isBlock'](_0x1a8241)&&!_0xb6bd43['isObject'](_0x1a8241)&&(_0x5e5bdc=_0x2ff22c['model']['createRange'](_0x5e5bdc['start'],_0x2ff22c['model']['createPositionAt'](_0x1a8241,'end'))),this['markInsertion'](_0x5e5bdc);}),_0x11c176['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4cda28=new $(_0x2ff22c,this['_suggestions']);_0x2ff22c['commands']['add']('acceptSuggestion',_0x4cda28),this['enableCommand']('acceptSuggestion');const _0x5c8668=new B(_0x2ff22c,this['_suggestions']);_0x2ff22c['commands']['add']('discardSuggestion',_0x5c8668),this['enableCommand']('discardSuggestion'),_0x2ff22c['commands']['add']('acceptAllSuggestions',new x(_0x2ff22c,_0x4cda28,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2ff22c['commands']['add']('discardAllSuggestions',new x(_0x2ff22c,_0x5c8668,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2ff22c['commands']['add']('acceptSelectedSuggestions',new R(_0x2ff22c,_0x4cda28,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2ff22c['commands']['add']('discardSelectedSuggestions',new R(_0x2ff22c,_0x5c8668,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x24f463=_0x2ff22c['plugins']['get']('CommentsRepository');this['listenTo'](_0x24f463,'addComment',(_0x312037,{threadId:_0x5bc5c9})=>{const _0x5427f8=this['_suggestions']['get'](_0x5bc5c9);_0x5427f8&&_0x5427f8['commentThread']&&0x1===_0x5427f8['commentThread']['length']&&this['_updateSuggestionData'](_0x5bc5c9,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x24f463,'removeComment',(_0x278f7e,{threadId:_0x1329c3})=>{const _0x411f1c=this['_suggestions']['get'](_0x1329c3);_0x411f1c&&_0x411f1c['commentThread']&&!_0x411f1c['commentThread']['length']&&this['_updateSuggestionData'](_0x1329c3,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x20f1db){if(this['_adapter'])throw new _0x418606('track-changes-adapter-already-set',this);this['_adapter']=_0x20f1db;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4d67bb=!0x1,toJSON:_0x13227d=!0x1}={}){const _0x19e02b=[];for(const _0x14ccce of this['_suggestions']['values']())_0x4d67bb&&!_0x14ccce['isInContent']||_0x19e02b['push'](_0x14ccce);return _0x13227d?_0x19e02b['map'](_0x4f58d0=>_0x4f58d0['toJSON']()):_0x19e02b;}['getSuggestion'](_0x52cc55){const _0x3fe13b=this['_suggestions']['get'](_0x52cc55);if(!_0x3fe13b)throw new _0x418606('track-changes-suggestion-not-found',this);return _0x3fe13b;}['hasSuggestion'](_0x3c7bbe){return this['_suggestions']['has'](_0x3c7bbe);}['addSuggestionData'](_0x464032){const {authorId:_0x3244e4,id:_0x5888d3,attributes:_0x131a79}=_0x464032,[_0x3bb10a,_0x2c6e4b]=_0x464032['type']['split'](':'),_0x2c98e9=this['_suggestions']['get'](_0x5888d3)||this['_createSuggestion'](_0x3bb10a,_0x2c6e4b,_0x5888d3,_0x3244e4,_0x131a79);if(this['_addThreadToSuggestion'](_0x2c98e9),this['_checkSuggestionCorrectness'](_0x2c98e9,_0x3bb10a,_0x2c6e4b||null,_0x3244e4),_0x2c98e9['createdAt']=_0x464032['createdAt'],_0x2c98e9['_isDataLoaded']=!0x0,_0x131a79&&_0x131a79['@external']){const _0x4cc0bf=_0x131a79['@external'],_0x1f8188=this['_getExternalAuthor'](_0x4cc0bf['authorName']);_0x2c98e9['authoredAt']=_0x4cc0bf['createdAt'],_0x2c98e9['author']=_0x1f8188,_0x2c98e9['isExternal']=!0x0;}else _0x2c98e9['authoredAt']=_0x464032['createdAt'];switch(_0x464032['data']&&(_0x2c98e9['data']=_0x464032['data']),_0x464032['attributes']&&(_0x2c98e9['attributes']=_0x464032['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2c98e9['_saved']=!0x0),this['_suggestionState']['get'](_0x2c98e9)){case'notReady':this['_suggestionState']['set'](_0x2c98e9,'dataReady');break;case'markerReady':_0x2c98e9['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2c98e9])),this['_refreshSuggestionsChain'](new Set([_0x2c98e9])),this['_suggestionState']['set'](_0x2c98e9,'ready'),this['fire']('suggestionLoaded',_0x2c98e9)):this['_suggestionState']['set'](_0x2c98e9,'removed');}return _0x2c98e9;}['acceptSuggestion'](_0x3a5a70){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xa1f5c1 of _0x3a5a70['getAllAdjacentSuggestions']())_0xa1f5c1['accept']();});});}['discardSuggestion'](_0x53ded5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5c3275 of _0x53ded5['getAllAdjacentSuggestions']())_0x5c3275['discard']();});});}['enableCommand'](_0x433a19,_0xb72c88){const _0x6ffd92=this['editor']['commands']['get'](_0x433a19);if(!_0x6ffd92)throw new _0x418606('track-changes-command-not-found',this,{'commandName':_0x433a19});if(this['_enabledCommands']['has'](_0x6ffd92))throw new _0x418606('track-changes-enable-command-twice',this,{'commandName':_0x433a19});this['_enabledCommands']['add'](_0x6ffd92),_0xb72c88&&_0x6ffd92['on']('execute',(_0x34f64e,_0x1abdee)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1abdee['length']>0x0&&_0x1abdee[_0x1abdee['length']-0x1]&&_0x1abdee[_0x1abdee['length']-0x1]['forceDefaultExecution']?_0x1abdee['pop']():(_0x34f64e['return']=_0xb72c88((..._0xb090a3)=>_0x6ffd92['execute'](..._0xb090a3,{'forceDefaultExecution':!0x0}),..._0x1abdee),_0x34f64e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x246043){let _0x55afaa,_0x4eadfb;const _0xe4b732=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x55afaa=_0x246043();}catch(_0x1878cc){_0x4eadfb=_0x1878cc;}return _0xe4b732||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4eadfb&&_0x418606['rethrowUnexpectedError'](_0x4eadfb,this),_0x55afaa;}['markInsertion'](_0x196513,_0x41c555=null,_0xaba900={}){if(_0x196513['isCollapsed'])return null;const _0x151644=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x116c4b,meta:_0x3df55d}of this['_findSuggestions'](_0x196513,'insertion'))if(_0x3df55d['isOwn']){if(!_0x3df55d['isNextTo']){if(_0x3df55d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x116c4b,_0xaba900))continue;return _0x116c4b;}if(Lt(_0x116c4b,_0xaba900))return _0x116c4b;this['_breakSuggestionMarker'](_0x116c4b,_0x196513['start'],_0x196513['end']);break;}if(_0x41c555==_0x116c4b['subType']&&Lt(_0x116c4b,_0xaba900)){const _0x32b601=_0x116c4b['getFirstRange']();return _0x32b601['start']['isEqual'](_0x196513['end'])?this['_setSuggestionRange'](_0x116c4b,this['_model']['createRange'](_0x196513['start'],_0x32b601['end'])):this['_setSuggestionRange'](_0x116c4b,this['_model']['createRange'](_0x32b601['start'],_0x196513['end'])),_0x116c4b;}}const _0xe38603=_0xeabe53(),_0x2abe33=_0x151644['id'],_0x4893c3=_0x41c555?'insertion:'+_0x41c555:'insertion',_0x2db696=this['_setSuggestionData']({'id':_0xe38603,'type':_0x4893c3,'createdAt':new Date(),'authorId':_0x2abe33,'attributes':_0xaba900});return this['_addSuggestionMarker'](_0x4893c3,_0xe38603,_0x2abe33,_0x196513),_0x2db696;}['markMultiRangeInsertion'](_0x5c6518,_0x55ef3b='multi',_0x37713f={}){const _0x271fd8=this['editor']['plugins']['get']('Users')['me'],_0x1c8cce=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x55ef3b,'join');for(const _0x34f710 of this['getSuggestions']())if(_0x34f710['author']['id']==_0x271fd8['id']&&'insertion'==_0x34f710['type']&&_0x34f710['subType']==_0x55ef3b&&Lt(_0x34f710,_0x37713f)&&(_0x1c8cce(_0x34f710['getRanges'](),_0x5c6518)||_0x1c8cce(_0x5c6518,_0x34f710['getRanges']()))){for(const _0x43cc71 of _0x5c6518)_0x34f710['addRange'](_0x43cc71);return _0x34f710;}for(const {suggestion:_0x55b329,meta:_0x176cc1}of this['_findSuggestions'](_0x5c6518,'insertion')){if(!_0x176cc1['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x176cc1['containsRangeInObject'])continue;if(!Lt(_0x55b329,_0x37713f))continue;let _0x5b30b2=!0x0;for(const _0x485ae2 of _0x55b329['getRanges']())for(const _0x16e325 of _0x5c6518)if(!_0x485ae2['containsRange'](_0x16e325)){_0x5b30b2=!0x1;break;}if(_0x5b30b2)return _0x55b329;}const _0x5d19e0=_0xeabe53(),_0x1fcede=_0x271fd8['id'],_0xd0d70='insertion:'+_0x55ef3b,_0x9c1c8c=this['_setSuggestionData']({'id':_0x5d19e0,'type':_0xd0d70,'createdAt':new Date(),'authorId':_0x1fcede,'attributes':_0x37713f});for(const _0x4e1ece of _0x5c6518)this['_addSuggestionMarker'](_0xd0d70,_0x5d19e0,_0x1fcede,_0x4e1ece,u['getMultiRangeId']());return _0x9c1c8c;}['markInlineFormat'](_0x3e2ff6,_0x36aba2,_0x3c674d=null,_0x353264={}){if(_0x3c674d=_0x3c674d||Vt(_0x36aba2),_0x3e2ff6['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xd3a0e7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3c674d,'accept');return this['forceDefaultExecution'](()=>_0xd3a0e7([_0x3e2ff6],_0x36aba2,_0x353264)),null;}const _0x21bbb0=this['editor']['plugins']['get']('Users')['me'],_0x3f78c7=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5abe1e,meta:_0x47dd70}of this['_findSuggestions'](_0x3e2ff6,'insertion'))_0x47dd70['isOwn']&&!_0x47dd70['isInsideObject']&&_0x3f78c7['push'](..._0x5abe1e['getRanges']());}const _0x4b17ad=function(_0x2c7767,_0x3813a0){const _0x1e15e7=[];for(const _0x1357fe of _0x3813a0){const _0x584042=_0x2c7767['getIntersection'](_0x1357fe);_0x584042&&_0x1e15e7['push'](_0x584042);}return _0x1e15e7;}(_0x3e2ff6,_0x3f78c7),_0xf23c84=function(_0x2fe96c,_0x549df4){const _0x1f8c55=[_0x2fe96c];for(const _0xcf4ca5 of _0x549df4){let _0x4d9a70=0x0;for(;_0x4d9a70<_0x1f8c55['length'];){const _0x32cd69=_0x1f8c55[_0x4d9a70]['getDifference'](_0xcf4ca5);_0x1f8c55['splice'](_0x4d9a70,0x1,..._0x32cd69),_0x4d9a70+=_0x32cd69['length'];}}return _0x1f8c55;}(_0x3e2ff6,_0x3f78c7);_0x4b17ad['length']&&this['_model']['change'](()=>{for(const _0x2a9993 of _0x4b17ad){const _0x4a28f1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3c674d,'accept');this['forceDefaultExecution'](()=>_0x4a28f1([_0x2a9993],_0x36aba2,_0x353264));}});for(const _0xe8490d of _0xf23c84){let _0x24d45a=null,_0x1d3d04=_0xe8490d['start'],_0x1ff32b=_0xe8490d['end'];for(const {suggestion:_0x18c20f,meta:_0x5939b4}of this['_findSuggestions'](_0xe8490d,'formatInline')){if(!_0x5939b4['isOwn'])continue;if(_0x18c20f['subType']!=_0x3c674d)continue;if(!Lt(_0x18c20f,_0x353264))continue;const _0x85e59a=_0x18c20f['getFirstRange']();if(_0x85e59a['containsRange'](_0xe8490d,!0x0))return null;_0x1d3d04=_0x1d3d04['isBefore'](_0x85e59a['start'])?_0x1d3d04:_0x85e59a['start'],_0x1ff32b=_0x1ff32b['isAfter'](_0x85e59a['end'])?_0x1ff32b:_0x85e59a['end'],_0x24d45a?_0x85e59a['start']['isBefore'](_0x24d45a['getFirstRange']()['start'])?(_0x24d45a['removeMarkers'](),_0x24d45a=_0x18c20f):_0x18c20f['removeMarkers']():_0x24d45a=_0x18c20f;}const _0x139907=this['_model']['createRange'](_0x1d3d04,_0x1ff32b);if(_0x24d45a)this['_setSuggestionRange'](_0x24d45a,_0x139907);else{const _0x1ae86e=_0xeabe53(),_0x352495=_0x21bbb0['id'];this['_setSuggestionData']({'id':_0x1ae86e,'type':'formatInline:'+_0x3c674d,'data':_0x36aba2,'createdAt':new Date(),'authorId':_0x352495,'attributes':_0x353264}),this['_addSuggestionMarker']('formatInline:'+_0x3c674d,_0x1ae86e,_0x352495,_0x139907);}}return null;}['markBlockFormat'](_0x10967b,_0x20ee8d,_0x286039=[],_0x48bc05=null,_0x3364e9={}){_0x20ee8d['formatGroupId']||(_0x20ee8d['formatGroupId']=_0x20ee8d['commandName']),_0x20ee8d['multipleBlocks']=_0x10967b['is']('range'),_0x48bc05=_0x48bc05||Vt(_0x20ee8d);const _0x1cd302=_0x286039['map'](_0xd8e9a0=>Gt(_0xd8e9a0,this['_model'])),_0x3adea4=_0x10967b['is']('range')?_0x10967b:Gt(_0x10967b,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3fe0c4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48bc05,'accept');return this['forceDefaultExecution'](()=>_0x3fe0c4([_0x3adea4],_0x20ee8d,_0x3364e9)),null;}_0x1cd302['push'](_0x3adea4);let _0x5be21e=!0x0;for(const _0xa71c94 of _0x1cd302)if(!this['_rangeIsInLocalUserInsertion'](_0xa71c94)){_0x5be21e=!0x1;break;}if(_0x5be21e&&'always'!==this['_trackFormatChanges']){const _0x4a9d4d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48bc05,'accept');return this['forceDefaultExecution'](()=>_0x4a9d4d([_0x3adea4],_0x20ee8d,_0x3364e9)),null;}let _0xd7c180=null,_0x198484=_0x3adea4['start'],_0x2f8da4=_0x3adea4['end'];for(const {suggestion:_0x3ebd89,meta:_0x4e2292}of this['_findSuggestions'](_0x3adea4,'formatBlock')){if(!_0x4e2292['isOwn'])continue;if(_0x4e2292['isNextTo']||_0x4e2292['containsRangeInObject']||_0x4e2292['isInsideObject'])continue;if(_0x3ebd89['data']['formatGroupId']!=_0x20ee8d['formatGroupId'])continue;if(!Lt(_0x3ebd89,_0x3364e9))continue;const _0xc308b0=_0x3ebd89['getFirstRange']();if(_0x3ebd89['subType']==_0x48bc05){if(_0xc308b0['containsRange'](_0x3adea4,!0x0))return null;_0x198484=_0x198484['isBefore'](_0xc308b0['start'])?_0x198484:_0xc308b0['start'],_0x2f8da4=_0x2f8da4['isAfter'](_0xc308b0['end'])?_0x2f8da4:_0xc308b0['end'],_0xd7c180?_0xc308b0['start']['isBefore'](_0xd7c180['getFirstRange']()['start'])?(_0xd7c180['removeMarkers'](),_0xd7c180=_0x3ebd89):_0x3ebd89['removeMarkers']():_0xd7c180=_0x3ebd89;}else{const _0x4a4dbf=_0x3adea4['getIntersection'](_0xc308b0);this['_cutOutSuggestionMarker'](_0x3ebd89,_0x4a4dbf);}}const _0x36aad1=this['editor']['plugins']['get']('Users')['me'],_0x26742c=_0xeabe53(),_0x506ac3=_0x36aad1['id'];if(_0xd7c180)return this['_setSuggestionRange'](_0xd7c180,this['_model']['createRange'](_0x198484,_0x2f8da4)),_0xd7c180;{const _0x5ca28d=this['_setSuggestionData']({'id':_0x26742c,'type':'formatBlock:'+_0x48bc05,'data':_0x20ee8d,'createdAt':new Date(),'authorId':_0x506ac3,'attributes':_0x3364e9});return this['_addSuggestionMarker']('formatBlock:'+_0x48bc05,_0x26742c,_0x506ac3,this['_model']['createRange'](_0x198484,_0x2f8da4)),_0x5ca28d;}}['markMultiRangeBlockFormat'](_0x1c6287,_0x3f2f55,_0x3b89c4=[],_0x5bf051=null,_0x20b869={}){_0x3f2f55['formatGroupId']||(_0x3f2f55['formatGroupId']=_0x3f2f55['commandName']);const _0x39017f=_0x1c6287[0x0];_0x3f2f55['multipleBlocks']=_0x39017f['is']('range'),_0x5bf051=_0x5bf051||Vt(_0x3f2f55);const _0x23ecaf=_0x3b89c4['map'](_0x243657=>Gt(_0x243657,this['_model'])),_0x22a1fa=_0x39017f['is']('range')?_0x1c6287:_0x1c6287['map'](_0x490233=>Gt(_0x490233,this['_model']));if('never'===this['_trackFormatChanges']){const _0xac61e3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bf051,'accept');return this['forceDefaultExecution'](()=>_0xac61e3(_0x22a1fa,_0x3f2f55,_0x20b869)),null;}_0x23ecaf['push'](..._0x22a1fa);let _0x51ae4b=!0x0;for(const _0x169e88 of _0x23ecaf)if(!this['_rangeIsInLocalUserInsertion'](_0x169e88)){_0x51ae4b=!0x1;break;}if(_0x51ae4b&&'always'!==this['_trackFormatChanges']){const _0x8ae847=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bf051,'accept');return this['forceDefaultExecution'](()=>_0x8ae847(_0x22a1fa,_0x3f2f55,_0x20b869)),null;}const _0x40e482=this['editor']['plugins']['get']('Users')['me'];for(const _0x11ada7 of this['getSuggestions']()){if(_0x11ada7['author']['id']!=_0x40e482['id'])continue;if('formatBlock'!=_0x11ada7['type']||_0x11ada7['data']['formatGroupId']!=_0x3f2f55['formatGroupId'])continue;if(!Lt(_0x11ada7,_0x20b869))continue;const _0x669e86=_0x11ada7['subType']==_0x5bf051;for(let _0x4ac27d=0x0;_0x4ac27d<_0x22a1fa['length'];_0x4ac27d++){const _0x21c1f0=_0x22a1fa[_0x4ac27d];for(const _0x42807c of _0x11ada7['getMarkers']()){const _0x367ddf=_0x42807c['getRange']();if(_0x21c1f0['isEqual'](_0x367ddf)){_0x669e86?(_0x22a1fa['splice'](_0x4ac27d,0x1),_0x4ac27d--):_0x11ada7['removeMarker'](_0x42807c['name']);break;}}}}if(0x0==_0x22a1fa['length'])return null;const _0x8ff736=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bf051,'join');for(const _0x381816 of this['getSuggestions']())if(_0x381816['author']['id']==_0x40e482['id']&&'formatBlock'==_0x381816['type']&&_0x381816['data']['formatGroupId']==_0x3f2f55['formatGroupId']&&_0x381816['subType']==_0x5bf051&&Lt(_0x381816,_0x20b869)&&(_0x8ff736(_0x381816['getRanges'](),_0x22a1fa)||_0x8ff736(_0x22a1fa,_0x381816['getRanges']()))){for(const _0x43f6d3 of _0x22a1fa)_0x381816['addRange'](_0x43f6d3);return _0x381816;}const _0x4c91a6=_0xeabe53(),_0x24f187=_0x40e482['id'],_0x582c01='formatBlock:'+_0x5bf051,_0x1c5257=this['_setSuggestionData']({'id':_0x4c91a6,'type':_0x582c01,'data':_0x3f2f55,'createdAt':new Date(),'authorId':_0x24f187,'attributes':_0x20b869});for(const _0x3fe39f of _0x22a1fa)this['_addSuggestionMarker'](_0x582c01,_0x4c91a6,_0x24f187,_0x3fe39f,u['getMultiRangeId']());return _0x1c5257;}['markDeletion'](_0xff5520,_0x5694ec=null,_0x2fa391={}){if(_0xff5520['isCollapsed'])return null;const _0x158255=this['editor']['plugins']['get']('Users')['me'],_0x1f956f=new _0x3a5b18(_0xff5520['start'],_0xff5520['end']);for(const {suggestion:_0x16bd86,meta:_0xc04634}of this['_findSuggestions'](_0x1f956f,'insertion'))if(_0xc04634['isOwn']&&!_0xc04634['isNextTo']){if(_0x16bd86['isMultiRange']){const _0x157a50=_0x16bd86['getRanges']()['filter'](_0x550306=>'$graveyard'!=_0x550306['root']['rootName']);_0x157a50['every'](_0x2daa70=>_0x1f956f['containsRange'](_0x2daa70,!0x0))&&_0x16bd86['discard']();if(_0x157a50['some'](_0x4cb4cd=>_0x4cb4cd['containsRange'](_0x1f956f,!0x0))){const _0x10d54e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5694ec,'accept');return this['forceDefaultExecution'](()=>_0x10d54e([_0x1f956f],null,_0x2fa391)),null;}}else{const _0x3a6087=_0x1f956f['getIntersection'](_0x16bd86['getFirstRange']());null!==_0x3a6087&&_0x16bd86['_onDiscard']([_0x3a6087],null,_0x2fa391);}}if(_0x1f956f['detach'](),_0x1f956f['isCollapsed']||'$graveyard'==_0x1f956f['root']['rootName'])return null;let _0x176110=null,_0x4d2514=_0x1f956f['start'],_0x14d715=_0x1f956f['end'];const _0x33139a=this['_findSuggestions'](_0x1f956f,'deletion');for(const {suggestion:_0x25560b,meta:_0x48d283}of _0x33139a){const _0x28b346=this['_model']['createRange'](_0x4d2514,_0x14d715);if(_0x48d283['isOwn']&&(this['_mergeNestedSuggestions']||!_0x48d283['containsRangeInObject']&&!_0x48d283['isInsideObject'])){if(_0x25560b['isMultiRange']){if(!Lt(_0x25560b,_0x2fa391))continue;let _0x332fbc=!0x0;for(const _0xff31e of _0x25560b['getRanges']()){if(_0xff31e['containsRange'](_0x28b346,!0x0))return _0x25560b;_0x28b346['containsRange'](_0xff31e)||(_0x332fbc=!0x1);}_0x332fbc&&_0x25560b['discard']();}else{const _0x1742f1=_0x25560b['getFirstRange']();if(_0x1742f1['containsRange'](_0x28b346,!0x0))return _0x25560b;if(!Lt(_0x25560b,_0x2fa391)){_0x28b346['containsRange'](_0x1742f1)?_0x25560b['removeMarkers']():_0x1742f1['containsPosition'](_0x4d2514)?_0x4d2514=_0x1742f1['end']:_0x1742f1['containsPosition'](_0x14d715)&&(_0x14d715=_0x1742f1['start']);continue;}_0x4d2514=_0x4d2514['isBefore'](_0x1742f1['start'])?_0x4d2514:_0x1742f1['start'],_0x14d715=_0x14d715['isAfter'](_0x1742f1['end'])?_0x14d715:_0x1742f1['end'],_0x2fa391=Object['assign']({},_0x25560b['attributes']),_0x176110?_0x1742f1['start']['isBefore'](_0x176110['getFirstRange']()['start'])?(_0x176110['removeMarkers'](),_0x176110=_0x25560b):_0x25560b['removeMarkers']():_0x176110=_0x25560b;}}}if(_0x176110)return this['_setSuggestionRange'](_0x176110,this['_model']['createRange'](_0x4d2514,_0x14d715)),_0x176110;{const _0x17518f=_0xeabe53(),_0x25f30b=this['_model']['createRange'](_0x4d2514,_0x14d715),_0x23ff50=_0x158255['id'],_0x17a77c=_0x5694ec?'deletion:'+_0x5694ec:'deletion',_0xc4222c=this['_setSuggestionData']({'id':_0x17518f,'type':_0x17a77c,'createdAt':new Date(),'authorId':_0x23ff50,'attributes':_0x2fa391});return this['_addSuggestionMarker'](_0x17a77c,_0x17518f,_0x23ff50,_0x25f30b),_0xc4222c;}}['markMultiRangeDeletion'](_0x17ae8e,_0x41c91f='multi',_0x39b2b2={}){const _0x215213=this['editor']['plugins']['get']('Users')['me'],_0x39d25f=_0x17ae8e['map'](_0x4583dd=>new _0x3a5b18(_0x4583dd['start'],_0x4583dd['end'])),_0x11f684=new Set();for(const {suggestion:_0x16a8e5,meta:_0x5a2fa3}of this['_findSuggestions'](_0x39d25f,'insertion'))_0x5a2fa3['isOwn']&&!_0x5a2fa3['isNextTo']&&_0x11f684['add'](_0x16a8e5);for(const _0xb6d9f8 of _0x11f684)if(_0xb6d9f8['isMultiRange']){const _0x47b819=_0xb6d9f8['getRanges']();(!_0xb6d9f8['attributes']||!_0xb6d9f8['attributes']['skipNestingCheck'])&&(_0x47b819['every'](_0x1e989b=>_0x39d25f['some'](_0x435f06=>_0x435f06['containsRange'](_0x1e989b,!0x0)))&&_0xb6d9f8['discard']());if(_0x39d25f['every'](_0x53a962=>_0x47b819['some'](_0x223539=>_0x223539['containsRange'](_0x53a962,!0x0)))){const _0x4c6f4c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41c91f,'accept');return this['forceDefaultExecution'](()=>_0x4c6f4c(_0x17ae8e,null,_0x39b2b2)),null;}}else{const _0x3ee7fa=_0xb6d9f8['getFirstRange']();_0x39d25f['some'](_0x154d6b=>_0x154d6b['containsRange'](_0x3ee7fa,!0x0))&&_0xb6d9f8['discard']();if(_0x39d25f['every'](_0x3c2cfa=>_0x3ee7fa['containsRange'](_0x3c2cfa,!0x0))){const _0x4f3ab2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41c91f,'accept');return this['forceDefaultExecution'](()=>_0x4f3ab2(_0x39d25f,null,_0x39b2b2)),null;}}const _0x31e8bf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41c91f,'join');let _0x103d02=null;for(const _0xcdf7ac of this['getSuggestions']())if(_0xcdf7ac['author']['id']==_0x215213['id']&&_0xcdf7ac['isInContent']&&'deletion'==_0xcdf7ac['type']&&_0xcdf7ac['subType']==_0x41c91f&&Lt(_0xcdf7ac,_0x39b2b2)&&(_0x31e8bf(_0xcdf7ac['getRanges'](),_0x39d25f)||_0x31e8bf(_0x39d25f,_0xcdf7ac['getRanges']()))){if(_0x103d02){if(_0xcdf7ac['commentThread']&&_0xcdf7ac['commentThread']['length'])continue;for(const _0x3ef26c of _0xcdf7ac['getRanges']())_0x103d02['isIntersectingWithRange'](_0x3ef26c)||_0x103d02['addRange'](_0x3ef26c);_0xcdf7ac['removeMarkers']();}else{_0x103d02=_0xcdf7ac;for(const _0x37cbcf of _0x39d25f)_0xcdf7ac['isIntersectingWithRange'](_0x37cbcf)||_0xcdf7ac['addRange'](_0x37cbcf);}}if(_0x103d02)return _0x103d02;_0x11f684['clear']();for(const {suggestion:_0x1f6cc4,meta:_0x5e529d}of this['_findSuggestions'](_0x39d25f,'deletion'))_0x5e529d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5e529d['containsRangeInObject']&&!_0x5e529d['isInsideObject'])&&Lt(_0x1f6cc4,_0x39b2b2)&&_0x11f684['add'](_0x1f6cc4);for(const _0x224007 of _0x11f684){const _0x7df739=_0x224007['getRanges']();if(!_0x39b2b2||!_0x39b2b2['skipNestingCheck']){if(_0x39d25f['every'](_0x25b28c=>_0x7df739['some'](_0x22b385=>_0x22b385['containsRange'](_0x25b28c,!0x0))))return _0x224007;}(!_0x224007['attributes']||!_0x224007['attributes']['skipNestingCheck'])&&(_0x7df739['every'](_0x523b42=>_0x39d25f['some'](_0x575a74=>_0x575a74['containsRange'](_0x523b42,!0x0)))&&_0x224007['discard']());}const _0x3626d8=_0xeabe53(),_0x3febc6=_0x215213['id'],_0x41b7f8='deletion:'+_0x41c91f,_0x4ed7b4=this['_setSuggestionData']({'id':_0x3626d8,'type':_0x41b7f8,'createdAt':new Date(),'authorId':_0x3febc6,'attributes':_0x39b2b2});for(const _0x4ecd2b of _0x39d25f)_0x4ecd2b['detach'](),_0x4ecd2b['isCollapsed']||'$graveyard'==_0x4ecd2b['root']['rootName']||this['_addSuggestionMarker'](_0x41b7f8,_0x3626d8,_0x3febc6,_0x4ecd2b,u['getMultiRangeId']());return _0x4ed7b4;}['markAttributeChange'](_0x308ff7,_0x2df279,_0x2d72ca,_0x1ca5b8,_0x35e5cd){if(_0x308ff7['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5249a0=this['editor']['plugins']['get']('Users')['me']['id'],_0x5cb0e0=Array['from'](this['_suggestions']['values']())['filter'](_0x37abcc=>'attribute'==_0x37abcc['type']&&_0x37abcc['data']['key']==_0x2df279&&_0x37abcc['isIntersectingWithRange'](_0x308ff7));if('default'===this['_trackFormatChanges']){const _0xf3a455=this['_findSuggestions'](_0x308ff7,'insertion')['filter'](({meta:_0x298247})=>_0x298247['isOwn']&&!_0x298247['isInsideObject']&&!_0x298247['isNextTo'])['map'](({suggestion:_0x456842})=>_0x456842);_0x5cb0e0['unshift'](..._0xf3a455);}const _0x1ddaef=new Map([[_0x308ff7,_0x2d72ca]]);for(const _0x4b8798 of _0x5cb0e0){const _0x56ce06='attribute'==_0x4b8798['type']?_0x4b8798['data']['oldValue']:void 0x0,_0x6d0417=_0x4b8798['getFirstRange'](),_0x3fa4c1=Array['from'](_0x1ddaef['keys']())['find'](_0x3d30ed=>_0x3d30ed['isIntersecting'](_0x6d0417));if(!_0x3fa4c1)continue;const _0x130837=_0x3fa4c1['getDifference'](_0x6d0417);this['_isBlockAttribute'](_0x2df279)&&'insertion'==_0x4b8798['type']&&0x0!=_0x130837['length']||(_0x1ddaef['delete'](_0x3fa4c1),_0x130837['forEach'](_0xb894bf=>{_0x1ddaef['set'](_0xb894bf,_0x2d72ca);}),'insertion'!=_0x4b8798['type']&&_0x56ce06!=_0x1ca5b8&&_0x1ddaef['set'](_0x3fa4c1['getIntersection'](_0x6d0417),_0x56ce06));}const _0x20ddfd=[];for(const [_0x47b2df,_0x337d18]of _0x1ddaef){const _0x20cffe=_0xeabe53(),_0x52674f={'key':_0x2df279,'oldValue':_0x337d18,'newValue':_0x1ca5b8};_0x2df279['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':_0x2df279});const _0x20762d=('attribute:'+(_0x2df279+'|'+Vt({'newValue':_0x1ca5b8})))['substring'](0x0,0x3c),_0xaa4b8a=this['_setSuggestionData']({'id':_0x20cffe,'type':_0x20762d,'data':_0x52674f,'createdAt':new Date(),'authorId':_0x5249a0,'attributes':_0x35e5cd});_0x20ddfd['push'](_0xaa4b8a),this['_addSuggestionMarker'](_0x20762d,_0x20cffe,_0x5249a0,_0x47b2df);}return _0x20ddfd;}['enableDefaultAttributesIntegration'](_0x31e218){this['enableCommand'](_0x31e218,(_0x55fcea,..._0x90b3c4)=>{this['_recordAttributeChanges'](()=>{_0x55fcea(..._0x90b3c4);});});}['registerBlockAttribute'](_0x2b04b2){this['_blockAttributeKeys']['add'](_0x2b04b2);}['registerInlineAttribute'](_0x3d3fad){this['_inlineAttributeKeys']['add'](_0x3d3fad);}['_getAttributeKey'](_0x516b72){return'attribute'==_0x516b72['type']?_0x516b72['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4d243a,_0x4bdbb0){const _0x3a3a7d=_0x4d243a['getFirstMarker']();this['_model']['change'](_0x277675=>{_0x277675['updateMarker'](_0x3a3a7d,{'range':_0x4bdbb0});});}['_addThreadToSuggestion'](_0x2989ac){const _0x5df1c8=_0x2989ac['id'],_0x3cfec1=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5df1c8)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3cfec1,'threadId':_0x5df1c8,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x12b187=this['_commentsRepository']['getCommentThread'](_0x5df1c8);_0x12b187['unbind']('isRemovable'),_0x12b187['isRemovable']=!0x1,_0x2989ac['commentThread']=_0x12b187;}['_checkSuggestionCorrectness'](_0x3dfa62,_0x260b4f,_0x3529d4,_0x34dcd9){if(_0x3dfa62['type']!=_0x260b4f||_0x3dfa62['subType']!=_0x3529d4||_0x3dfa62['creator']['id']!=_0x34dcd9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x418606('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3fc5a3,_0x31ed55){const _0x23f915=_0x3fc5a3['getFirstRange']();if(_0x31ed55['isEqual'](_0x23f915))_0x3fc5a3['removeMarkers']();else{if(_0x23f915['containsRange'](_0x31ed55)){const _0x51383b=this['_model']['createPositionAt'](_0x31ed55['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3fc5a3,this['_model']['createRange'](_0x23f915['start'],_0x51383b));const _0x2eae86=_0xeabe53(),_0x32352f=_0x3fc5a3['creator']['id'],_0x6ab185=_0x3fc5a3['type']+':'+_0x3fc5a3['subType'];this['_setSuggestionData']({'id':_0x2eae86,'type':_0x6ab185,'createdAt':new Date(),'authorId':_0x32352f,'data':_0x3fc5a3['data'],'attributes':_0x3fc5a3['attributes']});const _0x5cf712=this['_model']['createPositionAt'](_0x31ed55['end']['parent'],'after'),_0x166870=this['_model']['createRange'](_0x5cf712,_0x23f915['end']);this['_addSuggestionMarker'](_0x6ab185,_0x2eae86,_0x32352f,_0x166870);}else{if(_0x23f915['containsPosition'](_0x31ed55['start'])){const _0x541c06=this['_model']['createPositionAt'](_0x31ed55['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3fc5a3,this['_model']['createRange'](_0x23f915['start'],_0x541c06));}else{const _0x5a54a7=this['_model']['createPositionAt'](_0x31ed55['end']['parent'],'after');this['_setSuggestionRange'](_0x3fc5a3,this['_model']['createRange'](_0x5a54a7,_0x23f915['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x47486e){for(const {suggestion:_0x482c2d,meta:_0x797507}of this['_findSuggestions'](_0x47486e,'insertion')){if(!_0x797507['isOwn'])continue;const _0x11fd91=_0x482c2d['getRanges']();for(const _0x2be95a of _0x11fd91)if(!_0x47486e['getDifference'](_0x2be95a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x42daf5){const _0x5de471=this['editor']['plugins']['get']('Users')['getUser'](_0x42daf5);if(!_0x5de471)throw new _0x418606('track-changes-user-not-found',this);return _0x5de471;}['_getExternalAuthor'](_0x75e3df){const _0x523970=this['editor']['plugins']['get']('Users'),_0x58f248=_0x1aadbe('external:'+_0x75e3df),_0x1e5f61=_0x523970['getUser'](_0x58f248);return _0x1e5f61||_0x523970['addUser']({'id':_0x58f248,'name':_0x75e3df});}['_createSuggestion'](_0x89e5ca,_0x306c9a,_0x28fdc6,_0x4d812e,_0x4f598a){const _0x25bd28=this['_getAuthorFromId'](_0x4d812e),_0x1b2812=this['_suggestionFactory']['buildSuggestion'](_0x89e5ca,_0x306c9a,_0x28fdc6,_0x25bd28,_0x4f598a,_0x44577e=>{this['_updateSuggestionData'](_0x28fdc6,{'attributes':_0x44577e});const _0x534174=this['getSuggestion'](_0x28fdc6);this['_joinWithAdjacentSuggestions'](new Set([_0x534174])),this['_refreshSuggestionsChain'](new Set([_0x534174]));});return this['listenTo'](_0x1b2812,'accept',()=>{this['_updateSuggestionData'](_0x28fdc6,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1b2812,'discard',()=>{this['_updateSuggestionData'](_0x28fdc6,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x28fdc6,_0x1b2812),this['_suggestionState']['set'](_0x1b2812,'notReady'),_0x1b2812;}['_splitMarkerName'](_0x4f9b6d){const _0x41adaf=_0x4f9b6d['split'](':');return{'group':_0x41adaf[0x0],'type':_0x41adaf[0x1],'subType':_0x41adaf['length']>=0x5?_0x41adaf[0x2]:null,'id':_0x41adaf['length']<0x5?_0x41adaf[0x2]:_0x41adaf[0x3],'authorId':_0x41adaf['length']<0x5?_0x41adaf[0x3]:_0x41adaf[0x4],'markerCount':0x6==_0x41adaf['length']?_0x41adaf[0x5]:null};}['_breakSuggestionMarker'](_0x319bf4,_0xd2cee9,_0x5282c0){const _0x2e5224=_0x319bf4['getFirstRange'](),_0x16c9cb=_0x2e5224['start'],_0xb6fb72=_0x2e5224['end'];this['_setSuggestionRange'](_0x319bf4,this['_model']['createRange'](_0x16c9cb,_0xd2cee9));const _0x1b8ea1=_0xeabe53(),_0x5ecc01=_0x319bf4['creator']['id'],_0x5f2103=_0x319bf4['type']+(_0x319bf4['subType']?':'+_0x319bf4['subType']:'');this['_setSuggestionData']({'id':_0x1b8ea1,'type':_0x5f2103,'createdAt':new Date(),'authorId':_0x5ecc01,'originalSuggestionId':_0x319bf4['id'],'attributes':_0x319bf4['attributes'],'data':_0x319bf4['data']});const _0x3563f1=this['_getAttributeKey'](_0x319bf4);('formatBlock'==_0x319bf4['type']||_0x3563f1&&this['_isBlockAttribute'](_0x3563f1))&&(_0x5282c0=this['_model']['createPositionBefore'](_0x5282c0['parent'])),this['_addSuggestionMarker'](_0x5f2103,_0x1b8ea1,_0x5ecc01,this['_model']['createRange'](_0x5282c0,_0xb6fb72));}['_findSuggestions'](_0x2ea705,_0x41198d=null){const _0x3625de=[],_0x895d6d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2ea705)||(_0x2ea705=[_0x2ea705]);for(const _0x252cbc of this['getSuggestions']()){if(!_0x252cbc['isInContent'])continue;if(_0x41198d&&_0x252cbc['type']!=_0x41198d)continue;let _0x24bde4=!0x1;for(const _0x584c6e of _0x252cbc['getRanges']()){for(const _0x4aa904 of _0x2ea705){const _0x4ea04e=_0x4aa904['start']['isEqual'](_0x584c6e['end'])||_0x4aa904['end']['isEqual'](_0x584c6e['start']);if(_0x4ea04e||_0x4aa904['getIntersection'](_0x584c6e)){const _0x28d541=_0x4aa904['containsRange'](_0x584c6e)&&Rt(this['_model']['schema'],_0x584c6e['start'],_0x4aa904),_0x851102=_0x584c6e['containsRange'](_0x4aa904)&&Rt(this['_model']['schema'],_0x4aa904['start'],_0x584c6e);_0x3625de['push']({'suggestion':_0x252cbc,'meta':{'isOwn':_0x895d6d==_0x252cbc['author'],'isNextTo':_0x4ea04e,'isInsideObject':_0x28d541,'containsRangeInObject':_0x851102}}),_0x24bde4=!0x0;break;}}if(_0x24bde4)break;}}return _0x3625de;}['_addSuggestionMarker'](_0x3e638d,_0x1dce91,_0x3edde4,_0x510f12,_0x290a46){this['_model']['change'](_0x203903=>{let _0x987921='suggestion:'+_0x3e638d+':'+_0x1dce91+':'+_0x3edde4;_0x290a46&&(_0x987921=_0x987921+':'+_0x290a46),_0x203903['addMarker'](_0x987921,{'range':_0x510f12,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5bae62){const _0x46c57c=_0x5bae62['previous'],_0xc496ad=_0x5bae62['next'];_0x5bae62['previous']=null,_0x5bae62['next']=null,null!=_0x46c57c&&_0x46c57c['next']==_0x5bae62&&(_0x46c57c['next']=_0xc496ad),null!=_0xc496ad&&_0xc496ad['previous']==_0x5bae62&&(_0xc496ad['previous']=_0x46c57c),'ready'==this['_suggestionState']['get'](_0x5bae62)&&(this['_suggestionState']['set'](_0x5bae62,'removed'),this['fire']('suggestionUnloaded',_0x5bae62,_0x46c57c,_0xc496ad));}['_setSuggestionData'](_0xd7fc2e){const _0x966598=_0xd7fc2e['id'],_0x3a4572=this['addSuggestionData'](_0xd7fc2e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x233682=this['editor']['plugins']['get']('PendingActions'),_0x294d80=_0x3a4572['hasComments'],_0x4eee8a=_0x3a4572['subType']?_0x3a4572['type']+':'+_0x3a4572['subType']:_0x3a4572['type'],_0xb0535e=this['editor']['locale'],_0x1c4002=_0x233682['add'](o(_0xb0535e,'PENDING_ACTION_SUGGESTION')),_0x11c872={'id':_0x966598,'type':_0x4eee8a,'hasComments':_0x294d80,'data':_0xd7fc2e['data']||null,'originalSuggestionId':_0xd7fc2e['originalSuggestionId']||null,'attributes':_0x3a4572['attributes']};this['_adapter']['addSuggestion'](_0x11c872)['then'](_0x52b031=>{_0x3a4572['_saved']=!0x0,_0x233682['remove'](_0x1c4002),_0x52b031&&_0x52b031['createdAt']&&(this['_suggestions']['get'](_0x966598)['createdAt']=_0x52b031['createdAt']);})['catch'](_0x4ac3f6=>{throw _0x4f8950('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3a4572['discard']();}),_0x3a4572['stopListening'](),this['_suggestions']['delete'](_0x3a4572['id']),this['_suggestionState']['delete'](_0x3a4572),_0x4ac3f6;});}return _0x3a4572;}['_isBlockAttribute'](_0x3691af){return this['_blockAttributeKeys']['has'](_0x3691af);}['_updateSuggestionData'](_0x15e35b,_0x2bc38f){const _0x5cf49c=this['editor']['plugins']['get']('PendingActions'),_0x454dea=this['getSuggestion'](_0x15e35b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x454dea['_saved']){const _0x200b02=_0x5cf49c['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x15e35b,_0x2bc38f)['then'](()=>{_0x5cf49c['remove'](_0x200b02);});}else _0x454dea['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x15e35b,_0x2bc38f);});}}['_getSuggestionData'](_0x37e13c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x418606('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x37e13c);}['_handleNewSuggestionMarker'](_0x1bb357){const {id:_0x1d7232,type:_0x5cc85b,subType:_0x3205fc,authorId:_0x5652b8}=this['_splitMarkerName'](_0x1bb357),_0x7e87fa=this['_suggestions']['get'](_0x1d7232)||this['_createSuggestion'](_0x5cc85b,_0x3205fc,_0x1d7232,_0x5652b8,{});switch(this['_checkSuggestionCorrectness'](_0x7e87fa,_0x5cc85b,_0x3205fc,_0x5652b8),this['_suggestionState']['get'](_0x7e87fa)){case'notReady':this['_getSuggestionData'](_0x1d7232)['then'](_0x5d27c0=>{let _0x2e838a=Promise['resolve']();_0x5d27c0['hasComments']&&(_0x2e838a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1d7232})),_0x2e838a['then'](()=>{this['addSuggestionData'](_0x5d27c0)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x7e87fa,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1d7232,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x7e87fa,'ready'),this['fire']('suggestionLoaded',_0x7e87fa);break;case'ready':this['fire']('suggestionChanged',_0x7e87fa);}return _0x7e87fa['addMarkerName'](_0x1bb357),_0x7e87fa;}['_refreshSuggestionsChain'](_0x3571d8){const _0x3dd6ce=Array['from'](_0x3571d8),_0x655379=_0x3dd6ce['filter'](_0xd403c1=>'attribute'==_0xd403c1['type']);this['_refreshAttributeSuggestionsChain'](_0x655379);const _0x31cdb3=_0x3dd6ce['filter'](_0x4101e3=>!_0x4101e3['isMultiRange']&&'attribute'!=_0x4101e3['type']),_0x50e16b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x25d105=>!_0x25d105['isMultiRange']&&'attribute'!=_0x25d105['type']),_0x59352e=_0x50e16b['filter'](_0x143cde=>!_0x3571d8['has'](_0x143cde)),_0x2835b2=new Map(_0x50e16b['map'](_0x389c71=>[_0x389c71,this['_suggestionFactory']['getSuggestionCallback'](_0x389c71['type'],_0x389c71['subType'],'chain')])),_0x248bc8=new Map(_0x50e16b['map'](_0x33145a=>[_0x33145a,_0x33145a['getFirstRange']()])),_0x57bc5d=new Set(),_0x3a2309=new Set();for(let _0xbd40dd=0x0;_0xbd40dd<_0x31cdb3['length'];_0xbd40dd++)_0x2eaac2(_0x31cdb3[_0xbd40dd],_0x31cdb3,_0xbd40dd+0x1);for(let _0x30a2ee=0x0;_0x30a2ee<_0x31cdb3['length'];_0x30a2ee++)_0x2eaac2(_0x31cdb3[_0x30a2ee],_0x59352e,0x0);const _0x2294c9=new Set();for(let _0x40dd0c=0x0;_0x40dd0c<_0x31cdb3['length'];_0x40dd0c++){const _0x4dc3ec=_0x31cdb3[_0x40dd0c];!_0x3a2309['has'](_0x4dc3ec)&&_0x4dc3ec['previous']&&(_0x2294c9['add'](_0x4dc3ec['previous']),_0x4dc3ec['previous']['next']===_0x4dc3ec&&(_0x4dc3ec['previous']['next']=null),_0x4dc3ec['previous']=null),!_0x57bc5d['has'](_0x4dc3ec)&&_0x4dc3ec['next']&&(_0x2294c9['add'](_0x4dc3ec['next']),_0x4dc3ec['next']['previous']===_0x4dc3ec&&(_0x4dc3ec['next']['previous']=null),_0x4dc3ec['next']=null);}function _0x2eaac2(_0x2b3167,_0xb73c90,_0x97266){for(let _0x540c0b=_0x97266;_0x540c0b<_0xb73c90['length'];_0x540c0b++){const _0x39566b=_0x1ce8df(_0x2b3167,_0xb73c90[_0x540c0b]);_0x39566b&&(_0x39566b[0x0]['next']=_0x39566b[0x1],_0x39566b[0x1]['previous']=_0x39566b[0x0],_0x57bc5d['add'](_0x39566b[0x0]),_0x3a2309['add'](_0x39566b[0x1]));}}function _0x1ce8df(_0x5b6d76,_0x5c7ff6){if(_0x5b6d76['author']['id']!==_0x5c7ff6['author']['id'])return null;const _0x384367=_0x2835b2['get'](_0x5b6d76)(_0x5b6d76,_0x5c7ff6,_0x248bc8['get'](_0x5b6d76),_0x248bc8['get'](_0x5c7ff6));if(!_0x384367)return null;return _0x2835b2['get'](_0x5c7ff6)(_0x5b6d76,_0x5c7ff6,_0x248bc8['get'](_0x5b6d76),_0x248bc8['get'](_0x5c7ff6))?_0x384367[0x1]['commentThread']&&_0x384367[0x1]['commentThread']['length']?null:_0x384367:null;}_0x2294c9['size']&&this['_refreshSuggestionsChain'](_0x2294c9);}['_refreshAttributeSuggestionsChain'](_0x418632){if(0x0==_0x418632['length'])return;const _0x21a2c2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c99d5=>'attribute'==_0x4c99d5['type']&&_0x4c99d5['_isDataLoaded']),_0x18a53c=[],_0x3b561a=new Map();for(const _0x2cb040 of _0x21a2c2){const _0x257a14=_0x1aadbe(_0x2cb040['attributes']);_0x3b561a['has'](_0x257a14)||(_0x3b561a['set'](_0x257a14,_0x18a53c['length']),_0x18a53c['push']([]));const _0x523bf7=_0x3b561a['get'](_0x257a14);_0x18a53c[_0x523bf7]['push'](_0x2cb040);}!(function(){_0x18a53c['sort']((_0x43510c,_0x2b2a8c)=>{const _0x6daa20=_0x43510c[0x0]['createdAt'],_0x4d30b8=_0x2b2a8c[0x0]['createdAt'];return _0x6daa20==_0x4d30b8?_0x43510c[0x0]['attributes']['groupId']<_0x2b2a8c[0x0]['attributes']['groupId']?-0x1:0x1:_0x6daa20<_0x4d30b8?-0x1:0x1;});for(const _0x513507 of _0x18a53c)_0x513507['sort']((_0x29aa1f,_0x2eb3e1)=>_0x29aa1f['id']<_0x2eb3e1['id']?-0x1:0x1);}());for(let _0x3d9fe3=0x0;_0x3d9fe3<_0x18a53c['length'];_0x3d9fe3++){if(0x0==_0x18a53c[_0x3d9fe3]['length'])continue;const _0x396b80=[];for(let _0x471dba=_0x3d9fe3+0x1;_0x471dba<_0x18a53c['length'];_0x471dba++)0x0!=_0x18a53c[_0x471dba]['length']&&_0x397a6c(_0x18a53c[_0x3d9fe3],_0x18a53c[_0x471dba])&&_0x396b80['push'](_0x471dba);for(const _0x43941b of _0x396b80)_0x18a53c[_0x3d9fe3]=_0x18a53c[_0x3d9fe3]['concat'](_0x18a53c[_0x43941b]),_0x18a53c[_0x43941b]=[];}for(const _0x1f7274 of _0x18a53c)for(let _0x764793=0x0;_0x764793<_0x1f7274['length'];_0x764793++)_0x1f7274[_0x764793]['next']=_0x1f7274[_0x764793+0x1]||null;for(const _0x4f50cc of _0x18a53c)for(let _0x17200c=0x0;_0x17200c<_0x4f50cc['length'];_0x17200c++)_0x4f50cc[_0x17200c]['previous']=_0x4f50cc[_0x17200c-0x1]||null;function _0x397a6c(_0x32ffd9,_0xa7554e){if(_0x32ffd9[0x0]['attributes']['groupId']!==_0xa7554e[0x0]['attributes']['groupId']&&_0x32ffd9[0x0]['author']!==_0xa7554e[0x0]['author'])return!0x1;if(!function(_0x1d3b80,_0x116ef5){if(!_0x1d3b80['hasComments']&&!_0x116ef5['hasComments'])return!0x0;if(_0x1d3b80['hasComments']&&_0x116ef5['hasComments'])return!0x1;if(_0x1d3b80['hasComments']&&_0x116ef5['createdAt']<_0x1d3b80['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x116ef5['hasComments']&&_0x1d3b80['createdAt']<_0x116ef5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x32ffd9[0x0],_0xa7554e[0x0]))return!0x1;const _0x34922d=Bt(_0x32ffd9[0x0]['attributes'],'groupId'),_0x463450=Bt(_0xa7554e[0x0]['attributes'],'groupId');if(!_0x3d3015(_0x34922d,_0x463450))return!0x1;return!!_0x32ffd9['every'](_0x5834f1=>_0xa7554e['some'](_0x1c1eaf=>_0x5834f1['getFirstRange']()['isEqual'](_0x1c1eaf['getFirstRange']())))&&_0xa7554e['every'](_0x1fcf96=>_0x32ffd9['some'](_0x58ccf1=>_0x1fcf96['getFirstRange']()['isEqual'](_0x58ccf1['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2c7720){const _0x518500=Array['from'](_0x2c7720),_0x31d0ff=this['getSuggestions']({'skipNotAttached':!0x0}),_0x302d15=_0x31d0ff['filter'](_0x28d284=>!_0x2c7720['has'](_0x28d284)),_0x2af5d3=new Map(_0x518500['map'](_0x48b20c=>[_0x48b20c,this['_suggestionFactory']['getSuggestionCallback'](_0x48b20c['type'],_0x48b20c['subType'],'join')])),_0x26bad=new Map(_0x31d0ff['map'](_0x33b3c6=>[_0x33b3c6,_0x33b3c6['getRanges']()]));for(let _0x18cc09=0x0;_0x18cc09<_0x518500['length'];_0x18cc09++){if(_0x24c52f(this,_0x518500[_0x18cc09],_0x518500,_0x18cc09+0x1))return!0x0;}for(let _0x4a791b=0x0;_0x4a791b<_0x518500['length'];_0x4a791b++){if(_0x24c52f(this,_0x518500[_0x4a791b],_0x302d15,0x0))return!0x0;}return!0x1;function _0x24c52f(_0xcaac05,_0x4fc692,_0x2a47cc,_0x47d47b){for(let _0x1513a0=_0x47d47b;_0x1513a0<_0x2a47cc['length'];_0x1513a0++){const _0x35fffa=_0x2a47cc[_0x1513a0];if(_0x35fffa['type']!==_0x4fc692['type']||_0x35fffa['author']['id']!==_0x4fc692['author']['id']||_0x35fffa['subType']!==_0x4fc692['subType'])continue;if(!Pt(_0x4fc692,_0x35fffa,['groupId']))continue;if('attribute'==_0x4fc692['type']&&_0x4fc692['data']['oldValue']!=_0x35fffa['data']['oldValue'])continue;if('attribute'==_0x4fc692['type']&&_0xcaac05['_isBlockAttribute'](_0x4fc692['data']['key']))continue;if('formatBlock'==_0x4fc692['type']){const _0x3fdecc=_0xcaac05['editor']['model'],_0x525c8e=_0x4fc692['getContainedElement']();if(_0x525c8e&&(_0x3fdecc['schema']['isObject'](_0x525c8e)||_0x3fdecc['schema']['isLimit'](_0x525c8e)))continue;}const _0x3f35af=_0x2af5d3['get'](_0x4fc692),_0x3a71f6=_0x26bad['get'](_0x4fc692),_0x439b8d=_0x26bad['get'](_0x35fffa),_0x564b08=_0x4fc692['commentThread']&&_0x4fc692['commentThread']['length'],_0x52765a=_0x35fffa['commentThread']&&_0x35fffa['commentThread']['length'];if(!_0x564b08&&_0x3f35af(_0x439b8d,_0x3a71f6))return _0xcaac05['_joinSuggestions'](_0x35fffa,_0x4fc692),_0x26bad['delete'](_0x4fc692),!0x0;if(!_0x52765a&&_0x3f35af(_0x3a71f6,_0x439b8d))return _0xcaac05['_joinSuggestions'](_0x4fc692,_0x35fffa),_0x26bad['delete'](_0x35fffa),!0x0;}return!0x1;}}['_joinSuggestions'](_0x254f78,_0x5915ad){if(_0x254f78['isMultiRange']){for(const _0x44d30d of _0x5915ad['getRanges']())_0x254f78['addRange'](_0x44d30d);}else{const _0x55c8b8=_0x5915ad['getFirstRange']()['end'];this['_setSuggestionRange'](_0x254f78,this['_model']['createRange'](_0x254f78['getFirstRange']()['start'],_0x55c8b8));}_0x5915ad['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3b3dea,_0x462cfe){const _0xe2f96b=_0x3b3dea['startsWith']('format')||_0x3b3dea['startsWith']('attribute')?'FORMATTING':_0x3b3dea['toUpperCase']();return o(this['editor']['locale'],_0x462cfe+'_'+_0xe2f96b+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x22a0ea=this['editor'];if(!_0x22a0ea['ui'])return;const {ariaLiveAnnouncer:_0xece0c6}=_0x22a0ea['ui'];_0x244eaa(this['_model'],({left:_0x101f5a,entered:_0x3e8a65})=>{for(const _0x49b64a of _0x101f5a){const {group:_0xf41ec0,type:_0x334ac5}=this['_splitMarkerName'](_0x49b64a['name']);if('suggestion'===_0xf41ec0){_0xece0c6['announce'](this['_getMarkerAnnouncementText'](_0x334ac5,'LEAVE'));break;}}for(const _0x12a94e of _0x3e8a65){const {group:_0x287922,type:_0x1a12b2}=this['_splitMarkerName'](_0x12a94e['name']);if('suggestion'===_0x287922){_0xece0c6['announce'](this['_getMarkerAnnouncementText'](_0x1a12b2,'ENTER'));break;}}});}['_processAttributeChanges'](_0x522f05){if(this['_recordAttributeSuggestions'])return!0x1;const _0x581022=this['editor'],_0x94bdbe=_0x581022['model']['document']['differ']['getChanges']();if(0x0==_0x94bdbe['length'])return!0x1;const _0x249e19=[],_0x331004=_0x94bdbe['filter'](_0x191e17=>'attribute'==_0x191e17['type']),_0x4904a8=_0x94bdbe['filter'](_0x27c694=>'insert'==_0x27c694['type']&&'$text'!=_0x27c694['name']),_0x30d8be=_0x94bdbe['filter'](_0x40f2d9=>'remove'==_0x40f2d9['type']&&'$text'!=_0x40f2d9['name']);for(const _0x3ab13a of _0x331004)_0x249e19['push']({'key':_0x3ab13a['attributeKey'],'newValue':_0x3ab13a['attributeNewValue'],'oldValue':_0x3ab13a['attributeOldValue'],'range':Ot(_0x3ab13a['range'],_0x581022['model'])});for(const _0x316804 of _0x4904a8){const _0x410590=_0x30d8be['find'](_0x1383b1=>_0x1383b1['position']['isEqual'](_0x316804['position']));_0x410590&&_0x249e19['push']({'key':m,'newValue':_0x316804['name'],'oldValue':_0x410590['name'],'range':_0x581022['model']['createRangeOn'](_0x316804['position']['nodeAfter'])});}return 0x0!=_0x249e19['length']&&this['_reduceExistingSuggestions'](_0x522f05,_0x249e19);}['_processAttributeSuggestions'](_0x18f9c4){let _0x171ac5=!0x1;const _0x225364=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x8d9c1c=>_0x8d9c1c['data']['newRange']&&_0x8d9c1c['name']['startsWith']('suggestion:attribute:'));for(const _0x1a34dc of _0x225364){const {subType:_0x1613ca,id:_0x353b8c}=this['_splitMarkerName'](_0x1a34dc['name']),_0x4f6c6b=_0x1613ca['split']('|')[0x0];for(const _0x51de4b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x51de4b['id']!=_0x353b8c&&'attribute'==_0x51de4b['type']&&_0x51de4b['data']&&_0x51de4b['data']['key']==_0x4f6c6b&&_0x51de4b['getFirstRange']()['isIntersecting'](_0x1a34dc['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x51de4b,_0x1a34dc['data']['newRange'],_0x18f9c4),_0x171ac5=!0x0);}return _0x171ac5;}['_recordAttributeChanges'](_0x1d1d6d){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x1d1d6d();}['_isRegisteredAttribute'](_0x4b0367){const _0x47ef38=this['_isBlockAttribute'](_0x4b0367),_0x3642cd=this['_inlineAttributeKeys']['has'](_0x4b0367);return _0x47ef38||_0x3642cd;}['_reduceExistingSuggestions'](_0x38f223,_0x1213ea){if(0x0==_0x1213ea['length'])return!0x1;let _0x515768=!0x1;for(const _0x58f82d of _0x1213ea){const _0x12846d=this['_findSuggestions'](_0x58f82d['range'],'attribute')['filter'](_0x271ac7=>!_0x271ac7['meta']['isNextTo'])['map'](_0x25651=>_0x25651['suggestion']),_0x328c08=_0x1aadbe({'newValue':_0x58f82d['newValue']});_0x12846d['filter'](_0x2efd69=>{const [_0x14bfbc,_0xa1007a]=_0x2efd69['subType']['split']('|');return _0x14bfbc==_0x58f82d['key']&&_0xa1007a!=_0x328c08;})['forEach'](_0x450f4d=>{this['_reduceSuggestionAttributeRange'](_0x450f4d,_0x58f82d['range'],_0x38f223),_0x515768=!0x0;});}return _0x515768;}['_reduceSuggestionAttributeRange'](_0x5e292e,_0x209618,_0x391458){const _0x175551=_0x5e292e['getFirstRange']()['getDifference'](_0x209618);0x0!==_0x175551['length']?0x1!==_0x175551['length']?this['_breakSuggestionMarker'](_0x5e292e,_0x209618['start'],_0x209618['end']):this['_setSuggestionRange'](_0x5e292e,_0x175551[0x0]):_0x391458['removeMarker'](_0x5e292e['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3449f3){this['_editor']=_0x3449f3,this['_model']=_0x3449f3['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x6b8d10,_0x32e7b9,_0x573aa6,_0x53e6be,_0x821ded,_0x4fa80a){return new u(this['_model'],{'type':_0x6b8d10,'subType':_0x32e7b9,'id':_0x573aa6,'author':_0x53e6be,'creator':_0x53e6be,'attributes':_0x821ded,'onAttributesChange':_0x4fa80a,'onAccept':(..._0x3870a7)=>this['getSuggestionCallback'](_0x6b8d10,_0x32e7b9,'accept')(..._0x3870a7),'onDiscard':(..._0x195ee2)=>this['getSuggestionCallback'](_0x6b8d10,_0x32e7b9,'discard')(..._0x195ee2)});}['registerCustomCallback'](_0x5d532c,_0x57dd3b,_0x5f5966,_0xe8cf9){const _0x5a5dc5=_0x5d532c+':'+_0x57dd3b+':'+_0x5f5966;this['_customCallbacks']['set'](_0x5a5dc5,_0xe8cf9);}['getSuggestionCallback'](_0x5121ee,_0x14a8ea,_0x3567c8){const _0x248525=_0x5121ee+':'+_0x14a8ea+':'+_0x3567c8;return this['_customCallbacks']['get'](_0x248525)||this['_defaultCallbacks']['get'](_0x5121ee+':'+_0x3567c8);}['_registerDefaultCallbacks'](){const _0x269b08=()=>!0x1,_0x5650fc=_0x2cb0c7=>{_0x2cb0c7['sort']((_0x27b9b5,_0x1ff640)=>_0x27b9b5['start']['isBefore'](_0x1ff640['start'])?0x1:-0x1),this['_model']['change'](_0x4740b4=>{for(const _0x31fcc7 of _0x2cb0c7){let _0x1e0beb;_0x1e0beb=_0x31fcc7['end']['isAtEnd']&&_0x31fcc7['end']['parent']==_0x31fcc7['start']['nodeAfter']?_0x4740b4['createSelection'](_0x31fcc7['start']['nodeAfter'],'on'):_0x4740b4['createSelection'](_0x31fcc7),this['_model']['deleteContent'](_0x1e0beb,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1c307a=(_0x142a7b,_0x4e4300)=>{_0x4e4300&&this['_model']['change'](_0x456954=>{const {commandName:_0x51e9a4,commandParams:_0x45552c=[]}=_0x4e4300,_0x359559=_0x142a7b['map'](_0x7534f2=>(Tt(_0x7534f2)&&(_0x7534f2=this['_model']['createRange'](_0x7534f2['end'])),_0x7534f2))['filter'](_0x2c385c=>'$graveyard'!==_0x2c385c['root']['rootName']);if(_0x359559['length']<0x1)return;const _0x29199c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5e15f9=>_0x3a5b18['fromRange'](_0x5e15f9));_0x456954['setSelection'](_0x359559);for(const _0x5b28ab of this['_editor']['commands']['commands']())_0x5b28ab['refresh']();_0x45552c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x51e9a4,..._0x45552c);const _0x5371fe=_0x29199c['filter'](_0x4dc28b=>'$graveyard'!=_0x4dc28b['root']['rootName']);_0x5371fe['length']>0x0&&_0x456954['setSelection'](_0x5371fe);for(const _0x3a4abf of _0x29199c)_0x3a4abf['detach']();});},_0x366a05=(_0x370f7f,_0x5df057)=>0x1==_0x370f7f['length']&&0x1==_0x5df057['length']&&_0x370f7f[0x0]['end']['isEqual'](_0x5df057[0x0]['start']),_0x2cb00c=(_0x20e161,_0x37e153,_0x510711,_0x3d8717)=>Ft(_0x20e161,_0x37e153,_0x510711,_0x3d8717,this['_model'])?[_0x20e161,_0x37e153]:Ft(_0x37e153,_0x20e161,_0x3d8717,_0x510711,this['_model'])?[_0x37e153,_0x20e161]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x269b08),this['_defaultCallbacks']['set']('insertion:discard',_0x5650fc),this['_defaultCallbacks']['set']('insertion:join',_0x366a05),this['_defaultCallbacks']['set']('insertion:chain',_0x2cb00c),this['_defaultCallbacks']['set']('deletion:accept',_0x5650fc),this['_defaultCallbacks']['set']('deletion:discard',_0x269b08),this['_defaultCallbacks']['set']('deletion:join',_0x366a05),this['_defaultCallbacks']['set']('deletion:chain',_0x2cb00c),this['_defaultCallbacks']['set']('formatInline:accept',_0x1c307a),this['_defaultCallbacks']['set']('formatInline:discard',_0x269b08),this['_defaultCallbacks']['set']('formatInline:join',_0x366a05),this['_defaultCallbacks']['set']('formatInline:chain',_0x269b08),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1c307a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x269b08),this['_defaultCallbacks']['set']('formatBlock:join',_0x366a05),this['_defaultCallbacks']['set']('formatBlock:chain',_0x269b08),this['_defaultCallbacks']['set']('attribute:accept',_0x269b08),this['_defaultCallbacks']['set']('attribute:discard',(_0xda2a24,_0x4a66e0)=>{if(!_0x4a66e0)return;const _0x5308e7=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3ede3d=>{if(_0x4a66e0['key']==m)for(const _0x55592f of _0xda2a24){const _0x3da69e=_0x55592f['start']['nodeAfter'],_0x7aa61a=_0x4a66e0['oldValue'];_0x3ede3d['rename'](_0x3da69e,_0x7aa61a);}else{if(_0x5308e7['_isBlockAttribute'](_0x4a66e0['key'])){for(const _0x3515ad of _0xda2a24)void 0x0!==_0x4a66e0['oldValue']?_0x3ede3d['setAttribute'](_0x4a66e0['key'],_0x4a66e0['oldValue'],_0x3515ad['start']['nodeAfter']):_0x3ede3d['removeAttribute'](_0x4a66e0['key'],_0x3515ad['start']['nodeAfter']);}else{for(const _0x380f40 of _0xda2a24)_0x4a66e0['oldValue']?_0x3ede3d['setAttribute'](_0x4a66e0['key'],_0x4a66e0['oldValue'],_0x380f40):_0x3ede3d['removeAttribute'](_0x4a66e0['key'],_0x380f40);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x366a05);}}function Rt(_0x517a72,_0x598fd5,_0x2249fa){for(const _0x5dd7d2 of _0x598fd5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5dd7d2['root']==_0x5dd7d2)return!0x1;if(!_0x2249fa['containsItem'](_0x5dd7d2))return!0x1;if(_0x517a72['isObject'](_0x5dd7d2)||_0x517a72['isLimit'](_0x5dd7d2))return!0x0;}return!0x1;}function Tt(_0x20428a){return _0x20428a['end']['parent']==_0x20428a['start']['nodeAfter']&&_0x20428a['end']['isAtStart'];}function Et(_0x3909cb,_0x54fc3d,_0x5d5b86,_0x53172b){const _0x1abd5d=_0x563ee5=>!_0x563ee5['item']['is']('$textProxy')&&!_0x53172b['isObject'](_0x563ee5['item']),_0x44f02d=_0x3909cb['start']['getLastMatchingPosition'](_0x1abd5d),_0x27db9a=_0x3909cb['end']['getLastMatchingPosition'](_0x1abd5d,{'direction':'backward'});return(!_0x3909cb['start']['isEqual'](_0x44f02d)||!_0x3909cb['end']['isEqual'](_0x27db9a))&&(_0x44f02d['isBefore'](_0x27db9a)?_0x5d5b86['updateMarker'](_0x54fc3d,{'range':_0x5d5b86['createRange'](_0x44f02d,_0x27db9a)}):_0x5d5b86['removeMarker'](_0x54fc3d),!0x0);}function Vt(_0x1d150d){return _0x1aadbe(_0x1d150d);}function Ut(_0x5bd622){const _0x265859=_0x5bd622['start']['nodeAfter'];return _0x265859&&_0x265859['is']('element');}function Ot(_0x11f975,_0x1a128a){return null==_0x11f975['end']['nodeBefore']&&_0x11f975['end']['parent']==_0x11f975['start']['nodeAfter']?Gt(_0x11f975['start']['nodeAfter'],_0x1a128a):_0x11f975;}function Gt(_0x5d2ec7,_0x1c6c69){const _0x25a5d1=_0x1c6c69['schema']['isObject'](_0x5d2ec7)||_0x1c6c69['schema']['isSelectable'](_0x5d2ec7);return _0x1c6c69['createRange'](_0x1c6c69['createPositionAt'](_0x5d2ec7,'before'),_0x25a5d1?_0x1c6c69['createPositionAfter'](_0x5d2ec7):_0x1c6c69['createPositionAt'](_0x5d2ec7,'end'));}function Ft(_0x28c6ce,_0x2b71ef,_0xaa2b0e,_0x5a007a,_0x13a823){if(!Pt(_0x28c6ce,_0x2b71ef))return!0x1;if(_0xaa2b0e['end']['isEqual'](_0x5a007a['start']))return!0x0;if(_0x28c6ce['type']!=_0x2b71ef['type'])return!0x1;if(!_0xaa2b0e['end']['isTouching'](_0x5a007a['start']))return!0x1;const _0x4a1a28=_0x13a823['createRange'](_0xaa2b0e['end'],_0x5a007a['start'])['getWalker']();for(const _0x30f326 of _0x4a1a28)if(['elementStart','elementEnd']['includes'](_0x30f326['type'])&&_0x13a823['schema']['isLimit'](_0x30f326['item']))return!0x1;return!0x0;}function Pt(_0x35627c,_0x3bb0c4,_0x16e705=[]){return!(!_0x35627c['_isDataLoaded']||!_0x3bb0c4['_isDataLoaded'])&&_0x3d3015(Bt(_0x35627c['attributes'],_0x16e705),Bt(_0x3bb0c4['attributes'],_0x16e705));}function Lt(_0x142936,_0x48c42a){const _0x2bdc88=Ht(_0x142936['attributes']),_0x312ae6=Ht(_0x48c42a);if(!_0x142936['_isDataLoaded'])return!0x1;for(const _0x2ca8b8 of Object['keys'](_0x312ae6))if(!_0x3d3015(_0x2bdc88[_0x2ca8b8],_0x312ae6[_0x2ca8b8]))return!0x1;return!0x0;}function Ht(_0x2837fd){const _0x30bf1f=Object['assign']({},_0x2837fd);return delete _0x30bf1f['skipNestingCheck'],delete _0x30bf1f['tablePasteChainId'],_0x30bf1f;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x55c595(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x95b489,_0x5ef709,_0x517211,_0x4a58fd){super(),this['model']=_0x5ef709,this['view']=_0x517211,this['commentThreadController']=_0x4a58fd,this['_editor']=_0x95b489,this['_acceptCommand']=_0x95b489['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x95b489['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x75575,_0x626c51)=>_0x75575||_0x626c51),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x28a82b=>_0x28a82b&&this['_editor']['model']['canEditAt'](_0x5ef709['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x486ac0=>_0x486ac0&&this['_editor']['model']['canEditAt'](_0x5ef709['getRanges']())),this['_pendingAction']=null,_0x517211['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x517211,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x517211,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x517211,'change:isDirty',()=>{_0x517211['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 _0x245485=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x245485);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x4d6504{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x5ebf7a,_0x3a4e88,_0xd8be1c,_0x45817f){super(_0x5ebf7a),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x3a4e88['authoredAt']),this['bind']('authoredAt')['to'](_0x3a4e88),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x3a4e88,this['_localUser']=_0xd8be1c,this['_config']=_0x45817f,_0x45817f['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:_0x4c09f5}=this['_config'];this['commentsListView']=new _0x4c09f5(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',_0x1da044=>_0x1da044+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x47f37c,_0x414a70)=>_0x47f37c||!!_0x414a70);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x20a50a}=this['_config'],_0x369bbd=new _0x20a50a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3de0ec=_0x369bbd['commentInputView'];return _0x369bbd['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3de0ec,'value',(_0xf7e361,_0x388a0e,_0x3928e9)=>!!_0x3928e9||_0xf7e361&&!_0x388a0e),_0x3de0ec['on']('submit',(_0x56172c,_0x20a7a5)=>{this['fire']('addComment',_0x20a7a5),_0x3de0ec['editor']['setData']('');}),_0x3de0ec['on']('cancel',()=>this['focus']()),_0x3de0ec['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x369bbd;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x18a590,_0x159cfa,_0x1a7a4d,_0x48146f){super(_0x18a590,_0x159cfa,_0x1a7a4d,_0x48146f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x377eaf=>_0x377eaf&&_0x377eaf[0x0]?_0x377eaf[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5a4778,_0xe94bd0)=>{let _0x24e1f8='';for(const _0x499557 of _0x5a4778)_0x24e1f8+='<p>'+ds(_0x499557['content'],_0x499557['color'])+'</p>';return _0xe94bd0?_0x24e1f8:_0x1d2bcd(_0x24e1f8,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x18a590,'Accept\x20suggestion'),_0x68a7a3['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x18a590,'Discard\x20suggestion'),_0x68a7a3['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x457804(_0x18a590,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x3fbd9b=this['bindTemplate'],_0x355295=[{'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':_0x3fbd9b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3fbd9b['to']('authoredAt',_0xfbcef2=>this['_config']['formatDateTime'](_0xfbcef2))}]}]},{'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']&&_0x355295['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x567ea2={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x3fbd9b['if']('isActive','ck-suggestion-wrapper--active'),_0x3fbd9b['to']('type',_0x2543d9=>'ck-suggestion-'+_0x2543d9),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':_0x355295}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x567ea2['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)),_0x567ea2;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x4d23c1,_0x44092b,_0x4116a6)=>{this['_descriptionElement']['innerHTML']=_0x4116a6;});}['_createButton'](_0x27a2e9,_0x440d71,_0x3c7822,_0x55b180,_0x5044be){const _0x1a9882=new _0x360e0f(this['locale']);return _0x1a9882['set']({'label':_0x27a2e9,'icon':_0x440d71,'tooltip':!0x0,'tooltipPosition':_0x5044be}),_0x1a9882['extendTemplate']({'attributes':{'class':_0x3c7822}}),_0x1a9882['on']('execute',()=>{this['fire'](_0x55b180,this['_model']['id']);}),_0x1a9882;}['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(_0x2af3f4,_0x2449ee){let _0x3a7b4b='';return _0x3a7b4b+=_0x2af3f4['split']('*')['map']((_0x51409b,_0x16507d)=>_0x16507d%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x51409b)+'</span>':us(_0x51409b))['join'](''),_0x2449ee&&(_0x3a7b4b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2449ee['value']+'\x22\x20title=\x22'+_0x2449ee['title']+'\x22></span>'),_0x3a7b4b;}function us(_0x1ab542){const _0x584a5e=document['createElement']('span');return _0x584a5e['innerText']=_0x1ab542,_0x584a5e['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 _0x462782{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x537a23,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x4a7bef){super(_0x4a7bef),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x400f38=this['editor']['config'];_0x400f38['define']('trackChanges.SuggestionThreadView',ne),_0x400f38['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x400f38['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x156a5b,_0x58d7bb){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x355ceb,_0x35616e]of this['_handleControllerBuffer']){const _0x2c4f0a=this['_suggestionToController']['has'](_0x355ceb);_0x2c4f0a||_0x35616e?_0x2c4f0a&&_0x35616e&&this['_destroyController'](_0x355ceb):this['_initializeController'](_0x355ceb);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x156a5b,_0x58d7bb);}['init'](){const _0x12e4c4=this['editor'],_0x25d8c5=_0x12e4c4['plugins']['get']('TrackChangesEditing'),_0x391a44=_0x12e4c4['plugins']['get']('Annotations'),_0x3367c3=_0x12e4c4['plugins']['get']('EditorAnnotations'),_0x263b0b=_0x12e4c4['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3367c3['addSourceCollector'](()=>{const _0x7561f2=[];for(const [_0x3b1978,_0x4e42eb]of Array['from'](this['_suggestionToController'])){const _0xf0456a=_0x3b1978['getAllAdjacentSuggestions'](),_0xca4f37=[];for(const _0x126496 of _0xf0456a){if(!_0x126496['isInContent'])continue;if(_0x126496['isMultiRange']){_0xca4f37['push'](..._0x126496['getRanges']());continue;}const _0x52a7fa=_0x126496['getFirstRange']();if(_0xca4f37['length']>0x0){const _0x2bf4b8=_0xca4f37[0x0]['getJoined'](_0x52a7fa);if(_0x2bf4b8){_0xca4f37[0x0]=_0x2bf4b8;continue;}}_0xca4f37['push'](_0x52a7fa);}_0x7561f2['push']([_0x4e42eb['view'],_0xca4f37]);}return _0x7561f2;}),this['listenTo'](_0x25d8c5,'suggestionLoaded',(_0x1fbcfb,_0x58fa35)=>{this['listenTo'](_0x58fa35,'change:previous',(_0x20cf7b,_0x3a6a94,_0x16a3cf,_0x23c2e7)=>{_0x58fa35['isInContent']&&(null==_0x16a3cf?(this['_updateController'](_0x23c2e7['head']),this['_handleSuggestionControllerDelayed'](_0x58fa35,!0x1)):(this['_updateController'](_0x16a3cf['head']),null==_0x23c2e7&&this['_handleSuggestionControllerDelayed'](_0x58fa35,!0x0)));}),null!==_0x58fa35['previous']?this['_updateController'](_0x58fa35['head']):this['_handleSuggestionControllerDelayed'](_0x58fa35,!0x1);}),this['listenTo'](_0x25d8c5,'suggestionUnloaded',(_0x300f14,_0xe6da0a,_0x1a1073)=>{this['stopListening'](_0xe6da0a,'change:previous'),this['_handleControllerBuffer']['delete'](_0xe6da0a),this['_suggestionToController']['has'](_0xe6da0a)&&this['_destroyController'](_0xe6da0a),_0x1a1073&&this['_updateController'](_0x1a1073['head']);}),this['listenTo'](_0x25d8c5,'suggestionChanged',(_0x259b6e,_0x65397a)=>{this['_updateController'](_0x65397a);}),this['listenTo'](_0x391a44,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x263b0b,'addComment',(_0x1d6514,{threadId:_0x296b5a,isFromAdapter:_0xad1297})=>{if(_0xad1297||!_0x25d8c5['hasSuggestion'](_0x296b5a))return;const _0x1ca8a0=_0x25d8c5['getSuggestion'](_0x296b5a);this['_suggestionToController']['get'](_0x1ca8a0)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x3e59c1=this['editor']['plugins']['get']('Annotations'),_0x318295=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32f863=Array['from'](_0x3e59c1['activeAnnotations'],_0x20ab39=>_0x20ab39['innerView'])['filter'](_0xf7b1d7=>this['_viewToController']['has'](_0xf7b1d7)),_0xf6c701=[];for(const _0x55a543 of _0x32f863){const _0x17e9ca=this['_viewToController']['get'](_0x55a543)['model']['getAllAdjacentSuggestions']();_0xf6c701['push'](..._0x17e9ca['reduce']((_0x4f95b2,_0x41d373)=>[..._0x4f95b2,..._0x41d373['getMarkerNames']()],[]));}_0x318295['activeMarkers']=_0xf6c701;}['_addUIComponentsToFactory'](){const _0x6a0d48=this['editor'],_0x2cbd34=_0x6a0d48['locale'],_0x27efa0=o(_0x2cbd34,'Track\x20changes'),_0x56224e=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x27efa0,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2cbd34,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2cbd34,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2cbd34,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2cbd34,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3a04a2 of _0x56224e)if(ae(_0x3a04a2)){const _0x531199=_0x6a0d48['commands']['get'](_0x3a04a2['model']['commandName']);_0x3a04a2['model']['bind']('isOn','isEnabled')['to'](_0x531199,'value','isEnabled');}_0x6a0d48['ui']['componentFactory']['add']('trackChanges',_0x22aa6a=>this['_createToolbarButton'](_0x22aa6a,_0x56224e,_0x27efa0)),_0x6a0d48['ui']['componentFactory']['add']('menuBar:trackChanges',_0x46aedf=>this['_createMenuBarMenu'](_0x46aedf,_0x56224e,_0x27efa0));}['_createToolbarButton'](_0x4f8022,_0xf4ad69,_0x2e8c9f){const _0x735a52=zt(_0x4f8022,Zt),_0x376dd8=this['editor']['commands']['get']('trackChanges');_0x735a52['buttonView']['set']({'tooltip':_0x2e8c9f,'label':_0x2e8c9f,'icon':ie}),_0x735a52['buttonView']['bind']('isOn')['to'](_0x376dd8,'value'),_0x735a52['buttonView']['on']('execute',()=>{_0x376dd8['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x735a52,_0xf4ad69,{'role':'menu'});const _0x6a6f7a=[];for(const _0x285a0e of _0xf4ad69)ae(_0x285a0e)&&_0x6a6f7a['push'](this['editor']['commands']['get'](_0x285a0e['model']['commandName']));const _0x1f1d0e=_0x735a52['buttonView'];return _0x1f1d0e['actionView']['unbind']('isEnabled'),_0x1f1d0e['arrowView']['unbind']('isEnabled'),_0x1f1d0e['actionView']['bind']('isEnabled')['to'](_0x376dd8,'isEnabled'),_0x1f1d0e['arrowView']['bind']('isEnabled')['toMany'](_0x6a6f7a,'isEnabled',(..._0x52a9ba)=>_0x52a9ba['some'](_0x12757a=>_0x12757a)),_0x735a52['on']('execute',_0x518065=>{this['editor']['execute'](_0x518065['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x735a52;}['_createMenuBarMenu'](_0x359bba,_0x4f9163,_0x2203b5){const _0x53278f=new Kt(_0x359bba),_0x8ea8c0=this['editor']['commands']['get']('trackChanges');_0x53278f['buttonView']['set']({'label':_0x2203b5,'icon':ie});const _0x52dbb3=new Qt(_0x359bba);for(const _0x3bccb3 of _0x4f9163){if('separator'==_0x3bccb3['type']){_0x52dbb3['items']['add'](new Jt(_0x359bba));continue;}const _0x16aaa6=new Xt(_0x359bba,_0x53278f),_0x8d73ca=new Yt(_0x359bba),_0x44ab94=_0x3bccb3['model'];_0x8d73ca['bind'](...Object['keys'](_0x44ab94))['to'](_0x44ab94),_0x8d73ca['delegate']('execute')['to'](_0x53278f),_0x8d73ca['on']('execute',()=>{this['editor']['execute'](_0x44ab94['commandName']),this['editor']['editing']['view']['focus']();}),_0x16aaa6['children']['add'](_0x8d73ca),_0x52dbb3['items']['add'](_0x16aaa6);}return _0x53278f['bind']('isEnabled')['to'](_0x8ea8c0,'isEnabled'),_0x53278f['panelView']['children']['add'](_0x52dbb3),_0x53278f;}['_initializeController'](_0x5dd427){const _0x9f11ee=this['editor'],_0x2ac568=_0x9f11ee['config'],_0x30da32=_0x9f11ee['plugins']['get']('Annotations'),_0x12e1fe=_0x9f11ee['plugins']['get']('CommentsRepository'),_0x1e00d1=_0x9f11ee['plugins']['get']('EditorAnnotations'),_0x299711=_0x9f11ee['plugins']['get'](_0x537a23)['me'],_0x313dfc=_0x2ac568['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x3d4a70,CommentThreadInputView:_0x3d296b}=_0x9f11ee['plugins']['get']('CommentsUI');let _0x37c791,_0x51203f;this['_annotationViews']['has'](_0x5dd427['id'])?(_0x51203f=this['_annotationViews']['get'](_0x5dd427['id']),_0x37c791=_0x51203f['mainView']):(_0x37c791=new _0x313dfc(_0x9f11ee['locale'],_0x5dd427,_0x299711,{'disableComments':this['_disableComments'],'editorConfig':_0x2ac568['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2ac568['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2ac568['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2ac568['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5f0809(_0x2ac568['get']('locale')),'CommentView':_0x2ac568['get']('comments')['CommentView'],'CommentsListView':_0x3d4a70,'CommentThreadInputView':_0x3d296b}),_0x37c791['acceptButton']['on']('execute',()=>{_0x9f11ee['editing']['view']['focus']();}),_0x37c791['discardButton']['on']('execute',()=>{_0x9f11ee['editing']['view']['focus']();}),_0x51203f=_0x30da32['createAnnotationView'](this['editor']['locale'],_0x37c791),_0x51203f['bind']('isDirty')['to'](_0x37c791,'isDirty'),_0x51203f['bind']('length')['to'](_0x37c791),_0x51203f['bind']('type')['to'](_0x37c791,'type',_0x2dfc09=>'suggestion-'+_0x2dfc09),this['_annotationViews']['set'](_0x5dd427['id'],_0x51203f));const _0x541309=_0x12e1fe['createCommentThreadController'](_0x5dd427['commentThread'],_0x37c791),_0x1ef5dd=new oe(_0x9f11ee,_0x5dd427,_0x37c791,_0x541309),_0x3f043d=_0x5dd427['getAllAdjacentSuggestions']()['filter'](_0x2e932f=>_0x2e932f['isInContent']);_0x37c791['descriptionParts']=_0x9f11ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3f043d),this['_suggestionToController']['set'](_0x5dd427,_0x1ef5dd),this['_viewToController']['set'](_0x37c791,_0x1ef5dd);const _0x27a50a=_0x30da32['createAnnotation']({'view':_0x51203f,'target':()=>{const _0x4eedd0=[],_0x541c7b=_0x5dd427['getAllAdjacentSuggestions']()['filter'](_0x5f29dd=>_0x5f29dd['isInContent']);for(const _0x52e4bd of _0x541c7b)_0x4eedd0['push'](..._0x52e4bd['getMarkers']());return _0x4d7bd0(_0x9f11ee['editing'],_0x4eedd0);},'type':()=>'suggestion-'+_0x1ef5dd['view']['type']});_0x12e1fe['_bindAnnotationToEditors'](_0x37c791,_0x27a50a),_0x30da32['add'](_0x27a50a),_0x1e00d1['registerAnnotation'](_0x27a50a);}['_destroyController'](_0x1b7f78){const _0x22cfa7=this['editor']['plugins']['get']('CommentsRepository'),_0x5c3031=this['editor']['plugins']['get']('Annotations'),_0x206f1a=this['_suggestionToController']['get'](_0x1b7f78),_0x217ce7=_0x206f1a['view'],_0x320ce3=_0x5c3031['getByInnerView'](_0x217ce7);_0x22cfa7['_unbindEditors'](_0x217ce7),_0x320ce3&&_0x5c3031['remove'](_0x320ce3),this['_suggestionToController']['delete'](_0x1b7f78),this['_viewToController']['delete'](_0x217ce7),_0x206f1a['destroy']();}['_updateController'](_0x2de7cf){if(!_0x2de7cf['isInContent']||!this['_suggestionToController']['has'](_0x2de7cf))return;const _0x54f132=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fcb62=this['_suggestionToController']['get'](_0x2de7cf),_0x6fd950=_0x2de7cf['getAllAdjacentSuggestions']();_0x2fcb62['view']['descriptionParts']=_0x54f132['descriptionFactory']['getDescriptions'](_0x6fd950);}['destroy'](){for(const _0x52fcf9 of this['_suggestionToController']['keys']())this['_destroyController'](_0x52fcf9);for(const _0x44c929 of this['_annotationViews']['values']())_0x44c929['mainView']['destroy']();super['destroy']();}}function ae(_0x155c8d){return'model'in _0x155c8d;}class k extends _0x462782{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x4821fc){this['editor']['plugins']['get'](p)['adapter']=_0x4821fc;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x58de72){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x58de72);}['getSuggestions']({skipNotAttached:_0xeaa1e8=!0x1,toJSON:_0x39295b=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xeaa1e8,'toJSON':_0x39295b});}['getSuggestion'](_0xabb6f4){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xabb6f4);}}const T=['Pagination'];class P extends _0x462782{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x2c35c9=this['editor'];if(_0x2c35c9['config']['define']('trackChangesData.editorCreator',_0xe28dd0=>{const _0x541a3b=_0x2c35c9['model']['document']['getRootNames']()['reduce']((_0x20f65e,_0x5470f8)=>(_0x20f65e[_0x5470f8]='',_0x20f65e),{});return _0x2c35c9['constructor']['create'](_0x541a3b,_0xe28dd0);}),'function'!=typeof _0x2c35c9['config']['get']('trackChangesData')['editorCreator'])throw new _0x418606('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4114b5){return N(this['editor'],!0x0,_0x4114b5);}['getDataWithDiscardedSuggestions'](_0xb87868){return N(this['editor'],!0x1,_0xb87868);}}class D extends _0x462782{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x3cc826){super(_0x3cc826),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(_0x3a32d2){return void 0x0!==_0x3a32d2['getRootsAttributes'];}async function N(_0x4d31f7,_0x396a8a,_0x248627){const _0x34a713=_0x4346ae(_0x4d31f7,T);_0x34a713['plugins']['push'](p,D),_0x34a713['rootsAttributes']=v(_0x4d31f7)?_0x4d31f7['getRootsAttributes']():void 0x0;const _0x8dceb1=document['createDocumentFragment'](),_0x509967=_0x4d31f7['config']['get']('trackChangesData')['editorCreator'],_0x34882b=await _0x509967(_0x34a713,()=>function(_0x6f7ee3){const _0x3cc777=document['createElement']('div');return _0x6f7ee3['appendChild'](_0x3cc777),_0x3cc777;}(_0x8dceb1));!function(_0xe287c1,_0x114908){const _0x4e987a=_0xe287c1['model']['document']['getRootNames']()['reduce']((_0x5cd494,_0x39627f)=>(_0x5cd494[_0x39627f]=_0xe287c1['data']['get']({'rootName':_0x39627f}),_0x5cd494),{}),_0x575e12=_0xe287c1['plugins']['get']('Users')['users']['map'](_0x285914=>({'id':_0x285914['id'],'name':_0x285914['name']})),_0x90ed65=_0xe287c1['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x45392a=_0xe287c1['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xfc6dd6=_0x114908['plugins']['get']('Users'),_0x52b9ce=_0x114908['plugins']['get']('TrackChangesEditing'),_0x4632cd=_0x114908['plugins']['get']('CommentsRepository');for(const _0x5e9d3c of _0x575e12)_0xfc6dd6['getUser'](_0x5e9d3c['id'])||_0xfc6dd6['addUser'](_0x5e9d3c);_0xfc6dd6['me']||_0xfc6dd6['useAnonymousUser']();for(const _0x44f522 of _0x45392a)_0x4632cd['addCommentThread'](_0x44f522);for(const _0x5bc546 of _0x90ed65)_0x52b9ce['addSuggestionData'](_0x5bc546);_0x114908['data']['set'](_0x4e987a);}(_0x4d31f7,_0x34882b),_0x34882b['execute'](_0x396a8a?'acceptAllSuggestions':'discardAllSuggestions');const _0x3e8904=v(_0x34882b)?_0x34882b['getFullData'](_0x248627):_0x34882b['data']['get'](_0x248627);return await _0x34882b['destroy'](),_0x3e8904;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x407128,PendingActions as _0x5b015e,icons as _0x132554}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x444d46,ObservableMixin as _0x17c5a0,uid as _0x1fa7bb,insertToPriorityArray as _0x5bd1e8,priorities as _0x746603,logWarning as _0x4dd5e5,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x254f2d,View as _0x9a4195,ButtonView as _0x57b55d,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 _0xa640a6,hashObject as _0x35e0d0,surroundingMarkersDetector as _0x17ab94,trimHtml as _0x501b97,UserView as _0x246f78,getDateTimeFormatter as _0x7213da,getAllMarkersDomElementsSorted as _0x1358ac,sanitizeEditorConfig as _0x29c7a4}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x540b31,LiveRange as _0x268b03,LivePosition as _0x53da37}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x19fe05,toWidget as _0x41c9c5}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x31c74a,set as _0x8081c5,isEqual as _0x480a18,unset as _0x13d7d7,omit as Bt}from'lodash-es';import{Delete as _0x279d9f,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5aaae8,ShiftEnter as _0x460b8b}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x336109,_0x462a46){super(_0x336109),this['_enabledCommands']=_0x462a46,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 _0x4c98c3 of this['editor']['commands']['commands']())_0x4c98c3['affectsData']&&!this['_enabledCommands']['has'](_0x4c98c3)&&_0x4c98c3['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4374b6 of this['editor']['commands']['commands']())_0x4374b6['affectsData']&&!this['_enabledCommands']['has'](_0x4374b6)&&_0x4374b6['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x3207c8,_0x408dbd){super(_0x3207c8),this['_suggestions']=_0x408dbd,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x15164b){const _0x18be34=this['_suggestions']['get'](_0x15164b);if(!_0x18be34)throw new _0x444d46('track-changes-accept-suggestion-not-found',this);const _0x599068=_0x18be34['getRanges']();this['editor']['model']['canEditAt'](_0x599068)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x18be34);}}class B extends ts{['_suggestions'];constructor(_0x266c42,_0x477e42){super(_0x266c42),this['_suggestions']=_0x477e42,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x18d853){const _0x425f2d=this['_suggestions']['get'](_0x18d853);if(!_0x425f2d)throw new _0x444d46('track-changes-discard-suggestion-not-found',this);const _0x354ee8=_0x425f2d['getRanges']();this['editor']['model']['canEditAt'](_0x354ee8)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x425f2d);}}function ss(_0x28f7ff){return _0x28f7ff['sort']((_0x2a1e05,_0x2eb96b)=>'deletion'==_0x2a1e05['type']&&'deletion'!=_0x2eb96b['type']?-0x1:'deletion'!=_0x2a1e05['type']&&'deletion'==_0x2eb96b['type']?0x1:0x0);}function to(_0x4e58b1,_0x513214){let _0x4ca539,_0x3edcb9=0x0;const _0x5e677c=[],_0x159aa1=_0x513214['schema'];for(;_0x3edcb9<_0x4e58b1['length'];){const _0x544880=_0x4e58b1[_0x3edcb9],_0xdb2a70=_0x4e58b1[_0x3edcb9+0x1];_0x4ca539||(_0x4ca539=_0x513214['createPositionBefore'](_0x544880)),co(_0x513214,_0x544880,_0xdb2a70)||(_0x5e677c['push'](_0x513214['createRange'](_0x4ca539,_0x159aa1['isObject'](_0x544880)?_0x513214['createPositionAfter'](_0x544880):_0x513214['createPositionAt'](_0x544880,'end'))),_0x4ca539=null),_0x3edcb9++;}return _0x5e677c;}function co(_0x41363b,_0x529421,_0x274153){if(!_0x274153)return!0x1;const _0x4eb013=_0x41363b['createPositionAfter'](_0x529421),_0x5beeb3=_0x41363b['createPositionBefore'](_0x274153);return _0x4eb013['isTouching'](_0x5beeb3);}function rs(_0x2395b7,_0x49ae0b,_0x3b22fd){for(;_0x3b22fd['length'];){const _0xf2487c=_0x3b22fd['splice'](0x0,0x64);_0x2395b7['change'](()=>{for(const _0x5ddbce of _0xf2487c)_0x5ddbce['isInContent']&&_0x49ae0b['execute'](_0x5ddbce['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x3a30ad,_0x44ee8f,_0xae9d88){super(_0x3a30ad),this['_command']=_0x44ee8f,this['_suggestions']=_0xae9d88,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x57d92d=Array['from'](this['_suggestions']['values']())['some'](_0x4f8d31=>_0x4f8d31['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x57d92d;}['execute'](){const _0x26a475=ss(Array['from'](this['_suggestions']['values']()));for(const _0x2c5952 of _0x26a475){const _0x5c3d66=_0x2c5952['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5c3d66))return;}rs(this['editor']['model'],this['_command'],_0x26a475);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3aafa4,_0x3286f6,_0x456c1f){super(_0x3aafa4),this['_command']=_0x3286f6,this['_suggestions']=_0x456c1f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2ae069=this['editor']['model']['document']['selection'],_0x1b768f=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x57a3f2,_0x3c13c7){const _0x1e60d9=Array['from'](_0x57a3f2['getRanges']()),_0x2d904a=new Set();for(const _0x5886ac of _0x3c13c7)if(_0x5886ac['isInContent']){for(const _0x5b0fa7 of _0x1e60d9)for(const _0x5aa226 of _0x5886ac['getRanges']())(_0x5b0fa7['isIntersecting'](_0x5aa226)||_0x57a3f2['isCollapsed']&&!_0x5886ac['isMultiRange']&&_0x5886ac['next']&&_0x5aa226['end']['isTouching'](_0x5b0fa7['start']))&&_0x2d904a['add'](_0x5886ac);}return _0x2d904a;}(_0x2ae069,_0x1b768f),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5db532=ss(Array['from'](this['_selectedSuggestions']));for(const _0x27dcc6 of _0x5db532){const _0x3f40d0=_0x27dcc6['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3f40d0))return;}rs(this['editor']['model'],this['_command'],_0x5db532);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x17c5a0(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x15e0a0,_0x543872){super(),this['id']=_0x543872['id'],this['type']=_0x543872['type'],this['subType']=_0x543872['subType']||null,this['author']=_0x543872['author'],this['creator']=_0x543872['creator']||_0x543872['author'],this['isExternal']=Boolean(_0x543872['attributes']&&_0x543872['attributes']['@external']),this['data']=null,this['_model']=_0x15e0a0,this['_onAccept']=_0x543872['onAccept'],this['_onDiscard']=_0x543872['onDiscard'],this['_onAttributesChange']=_0x543872['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x543872['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 _0x6bb36c=this;for(;_0x6bb36c['previous'];)_0x6bb36c=_0x6bb36c['previous'];return _0x6bb36c;}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'](_0x2a6416){this['_markerNames']['add'](_0x2a6416);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2e48c4=>this['_model']['markers']['get'](_0x2e48c4))['filter'](_0xea5075=>_0xea5075);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x29fa8c=>{for(const _0xfd5185 of this['getMarkers']())_0x29fa8c['removeMarker'](_0xfd5185);}),this['_markerNames']['clear']();}['removeMarker'](_0x3eb232){this['_model']['change'](_0x297112=>{_0x297112['removeMarker'](_0x3eb232);}),this['_markerNames']['delete'](_0x3eb232);}['addRange'](_0xc2c8d2){const _0x507d25='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x507d25),this['_model']['change'](_0x58736c=>{_0x58736c['addMarker'](_0x507d25,{'range':_0xc2c8d2,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x23ac67){for(const _0x5e1a09 of this['getRanges']())if(_0x5e1a09['isIntersecting'](_0x23ac67))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x43a724=>_0x43a724['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x55e40d,_0x3986ec)=>[..._0x55e40d,..._0x3986ec['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3eca9a=this['getRanges']();if(0x1!=_0x3eca9a['length'])return null;const _0x446364=_0x3eca9a[0x0],_0x14bff7=_0x446364['start']['nodeAfter'],_0x44f5ea=_0x446364['end']['nodeBefore'];return _0x14bff7 instanceof _0x540b31?_0x14bff7!=_0x44f5ea?null:_0x14bff7: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 _0x2e7057=[];let _0x303989=this['head'];for(;_0x303989;)_0x2e7057['push'](_0x303989),_0x303989=_0x303989['next'];return _0x2e7057;}['setAttribute'](_0x1f11e0,_0x1e8bca){const _0xfeb226=_0x31c74a(this['attributes']);_0x8081c5(_0xfeb226,_0x1f11e0,_0x1e8bca),_0x480a18(_0xfeb226,this['attributes'])||(this['attributes']=_0xfeb226,this['_onAttributesChange'](_0xfeb226));}['removeAttribute'](_0x204431){const _0x4f2e60=_0x31c74a(this['attributes']);_0x13d7d7(_0x4f2e60,_0x204431),_0x480a18(_0x4f2e60,this['attributes'])||(this['attributes']=_0x4f2e60,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 _0x1fa7bb()['substr'](0x1,0x5);}}function o(_0x4fa22a,_0x15b5c3,_0x278492){const t=_0x4fa22a['t'];switch(_0x15b5c3){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',_0x278492);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x278492);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x278492);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x278492);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x278492);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',_0x278492);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x278492);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',_0x278492);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x278492);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x278492);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x278492);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x278492);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x278492);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x278492);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x278492);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x278492);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x278492);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x278492);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x278492);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x278492);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x278492);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x278492);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x278492);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'},_0x278492);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x278492);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x278492);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x278492);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x278492);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x278492);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'},_0x278492);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x278492);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x278492);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x278492);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x278492);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'},_0x278492);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x278492);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'},_0x278492);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'},_0x278492);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x278492);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'},_0x278492);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x278492);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'},_0x278492);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x278492);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x278492);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'},_0x278492);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'},_0x278492);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 _0x15b5c3;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xcf18f4,_0x57132c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xcf18f4,this['_locale']=_0x57132c;}['getDescriptions'](_0xdc10bc){const _0x5a56bc=[],_0x46bd56=new Set(),_0x55cf33=new Set();for(let _0xcd54a1=0x0;_0xcd54a1<_0xdc10bc['length'];_0xcd54a1++){const _0x118256=_0xdc10bc[_0xcd54a1];if(!_0x118256['isInContent'])continue;const _0x1281e1=this['_handleCustomCallbackDescription'](_0x118256);if(_0x1281e1){if(null!=_0x118256['subType']){if(_0x46bd56['has'](_0x118256['subType']))continue;_0x46bd56['add'](_0x118256['subType']);}_0x5a56bc['push'](_0x1281e1);}else{if('attribute'!=_0x118256['type'])'insertion'!=_0x118256['type']&&'deletion'!=_0x118256['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5a56bc,_0x118256,_0xdc10bc[_0xcd54a1+0x1]);else{const _0x1d9865=_0x118256['data']['key'];if(_0x55cf33['has'](_0x1d9865))continue;_0x55cf33['add'](_0x118256['data']['key']),_0x1d9865==m?this['_handleRenameSuggestionDescription'](_0x5a56bc,_0x118256):this['_handleAttributeSuggestionDescription'](_0x5a56bc,_0x118256);}}}return this['_resolveDescriptionItems'](_0x5a56bc);}['registerDescriptionCallback'](_0x5928f7){this['_customCallbacks']['push'](_0x5928f7);}['registerElementLabel'](_0x233b27,_0x5c7df6,_0x2f0c56=_0x746603['normal']){'function'==typeof _0x233b27?_0x5bd1e8(this['_itemLabelsCallbacks'],{'matchingCallback':_0x233b27,'label':_0x5c7df6,'priority':_0x2f0c56}):this['_itemLabels']['set'](_0x233b27,_0x5c7df6);}['registerAttributeLabel'](_0x52565b,_0x31fd39){this['_attributeLabels']['set'](_0x52565b,_0x31fd39);}['getItemLabel'](_0x111f21,_0x2900a6=0x1){let _0x795bd9;for(const _0x3051af of this['_itemLabelsCallbacks'])if(_0x3051af['matchingCallback'](_0x111f21)){_0x795bd9=_0x3051af['label'];break;}return _0x795bd9||(_0x795bd9=this['_itemLabels']['get'](_0x111f21['name'])),_0x795bd9?_0x795bd9(_0x2900a6):0x1!==_0x2900a6?_0x2900a6+'\x20'+_0x111f21['name']+'s':''+_0x111f21['name'];}['_addDescriptionItems'](_0xbf8529,_0x910a37){const _0x2177d0=_0x910a37['getFirstRange']()['getWalker'](),_0xafd56a='insertion'==_0x910a37['type']?'add':'remove';for(const _0x37806e of _0x2177d0){const _0x36c54a=_0x37806e['item'],_0x55b19f=_0xbf8529[_0xbf8529['length']-0x1];if(_0x36c54a['is']('$textProxy'))_0x55b19f&&_0x55b19f['type']['indexOf']('Container')>-0x1&&_0xbf8529['pop'](),_0x55b19f&&'text'==_0x55b19f['type']?_0x55b19f[_0xafd56a]+=_0x36c54a['data']:_0xbf8529['push']({'type':'text','add':'add'==_0xafd56a?_0x36c54a['data']:'','remove':'remove'==_0xafd56a?_0x36c54a['data']:''});else{if(this['_schema']['isObject'](_0x36c54a)){const _0x4ac3dc=_0x36c54a;if(_0x55b19f&&_0x55b19f['type']['indexOf']('Container')>-0x1&&_0xbf8529['pop'](),'elementEnd'==_0x37806e['type'])continue;_0x55b19f&&_0x55b19f['type']==_0xafd56a+'Object'&&_0x55b19f['element']['name']==_0x4ac3dc['name']?_0x55b19f['quantity']++:_0xbf8529['push']({'type':_0xafd56a+'Object','element':_0x4ac3dc,'quantity':0x1}),_0x2177d0['skip'](_0x1efc82=>!('elementEnd'==_0x1efc82['type']&&_0x1efc82['item']==_0x36c54a));}else{if(this['_schema']['checkChild'](_0x36c54a,'$text')||_0x36c54a['is']('element','softBreak')){const _0x4ca3e3=_0x36c54a;if('add'==_0xafd56a&&'elementStart'==_0x37806e['type']||'remove'==_0xafd56a&&'elementEnd'==_0x37806e['type'])continue;if(_0x55b19f&&-0x1==_0x55b19f['type']['indexOf']('Container')){'text'==_0x55b19f['type']&&(_0x55b19f[_0xafd56a]+='\x0a');continue;}let _0x1d45f4;if(_0x1d45f4='add'==_0xafd56a?_0x4ca3e3['nextSibling']&&!this['_schema']['isObject'](_0x4ca3e3['nextSibling'])?_0x4ca3e3['nextSibling']:null:_0x4ca3e3['previousSibling']&&!this['_schema']['isObject'](_0x4ca3e3['previousSibling'])?_0x4ca3e3['previousSibling']:null,_0x4ca3e3['isEmpty']||_0x1d45f4&&_0x1d45f4['isEmpty']){const _0x4927bd=_0x1d45f4&&_0x1d45f4['isEmpty']?_0x1d45f4:_0x4ca3e3;_0x55b19f&&_0x55b19f['type']==_0xafd56a+'EmptyContainer'&&_0x55b19f['element']['name']==_0x4927bd['name']?_0x55b19f['quantity']++:_0xbf8529['push']({'type':_0xafd56a+'EmptyContainer','element':_0x4927bd,'quantity':0x1});}else _0xbf8529['push']({'type':_0xafd56a+'Container','element':_0x4ca3e3});}}}}}['_resolveDescriptionItems'](_0x8d11f3){const _0x4a76e1=this['_locale'],_0x3d8761=[],_0xbacb7a=[],_0x5289f5=[];for(const _0x443f1d of _0x8d11f3)switch(_0x443f1d['type']){case'text':if(_0x443f1d['add']=_0x443f1d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x443f1d['remove']=_0x443f1d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x443f1d['add']&&''!=_0x443f1d['remove']){_0x3d8761['push']({'type':'replace','content':o(_0x4a76e1,'REPLACE_TEXT',['\x22'+_0x443f1d['remove']+'\x22','\x22'+_0x443f1d['add']+'\x22'])});continue;}if(null!=_0x443f1d['add']['match'](/^ +$/)){_0x3d8761['push']({'type':'insertion','content':o(_0x4a76e1,'*Insert:*\x20%0',o(_0x4a76e1,'ELEMENT_SPACE',_0x443f1d['add']['length']))});continue;}if(null!=_0x443f1d['remove']['match'](/^ +$/)){_0x3d8761['push']({'type':'deletion','content':o(_0x4a76e1,'*Remove:*\x20%0',o(_0x4a76e1,'ELEMENT_SPACE',_0x443f1d['remove']['length']))});continue;}if(''!=_0x443f1d['add']){_0x3d8761['push']({'type':'insertion','content':o(_0x4a76e1,'*Insert:*\x20%0','\x22'+_0x443f1d['add']+'\x22')});continue;}_0x3d8761['push']({'type':'deletion','content':o(_0x4a76e1,'*Remove:*\x20%0','\x22'+_0x443f1d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3d8761['push']({'type':'insertion','content':o(_0x4a76e1,'*Insert:*\x20%0',this['getItemLabel'](_0x443f1d['element'],_0x443f1d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3d8761['push']({'type':'deletion','content':o(_0x4a76e1,'*Remove:*\x20%0',this['getItemLabel'](_0x443f1d['element'],_0x443f1d['quantity']))});continue;case'addContainer':_0x3d8761['push']({'type':'insertion','content':o(_0x4a76e1,'*Split:*\x20%0',this['getItemLabel'](_0x443f1d['element'],_0x443f1d['quantity']))});continue;case'removeContainer':_0x3d8761['push']({'type':'deletion','content':o(_0x4a76e1,'*Merge:*\x20%0',this['getItemLabel'](_0x443f1d['element'],_0x443f1d['quantity']))});continue;case'addFormat':_0xbacb7a['push'](_0x443f1d['key']);continue;case'removeFormat':_0x5289f5['push'](_0x443f1d['key']);continue;default:_0x3d8761['push'](_0x443f1d);}if(_0xbacb7a['length']){const _0x22fd90=_0xbacb7a['map'](_0x537e58=>this['_attributeLabels']['has'](_0x537e58)?this['_attributeLabels']['get'](_0x537e58):_0x537e58)['join'](',\x20');_0x3d8761['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x22fd90)});}if(_0x5289f5['length']){const _0x446b30=_0x5289f5['map'](_0x2740a6=>this['_attributeLabels']['has'](_0x2740a6)?this['_attributeLabels']['get'](_0x2740a6):_0x2740a6)['join'](',\x20');_0x3d8761['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x446b30)});}return _0x3d8761;}['_handleCustomCallbackDescription'](_0x10fa04){for(const _0x4c30d5 of this['_customCallbacks']){const _0x51a77e=_0x4c30d5(_0x10fa04);if(_0x51a77e&&'type'in _0x51a77e)return _0x51a77e;}}['_handleAttributeSuggestionDescription'](_0x26d9e5,_0x22c676){const _0x585e4e=_0x22c676['data'],_0x49dd8f=void 0x0===_0x585e4e['newValue']?'removeFormat':'addFormat';_0x26d9e5['push']({'type':_0x49dd8f,'key':_0x585e4e['key']});}['_handleRenameSuggestionDescription'](_0x117934,_0x1ffa29){_0x117934['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1ffa29['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3cb8ca,_0xe8d79b,_0x20d70e){if(this['_addDescriptionItems'](_0x3cb8ca,_0xe8d79b),_0x20d70e&&_0x20d70e['getFirstRange']()&&!_0xe8d79b['getFirstRange']()['end']['isEqual'](_0x20d70e['getFirstRange']()['start'])){const _0x4714fa=_0x3cb8ca[_0x3cb8ca['length']-0x1],_0x2dcf2a='insertion'==_0xe8d79b['type']?'add':'remove';_0x4714fa&&'text'==_0x4714fa['type']&&(_0x4714fa[_0x2dcf2a]+='\x0a');}}}class E extends _0x407128{['afterInit'](){const _0x36e908=this['editor'],_0x573676=_0x36e908['plugins']['get']('TrackChangesEditing');_0x36e908['commands']['get']('showAIAssistant')&&_0x573676['enableCommand']('showAIAssistant');}}class V extends _0x407128{['afterInit'](){const _0x53b508=this['editor'],_0xbb7aa3=_0x53b508['locale'];if(!_0x53b508['plugins']['has']('AlignmentEditing'))return;const _0x24ac29=_0x53b508['plugins']['get']('TrackChangesEditing');_0x24ac29['enableDefaultAttributesIntegration']('alignment'),_0x24ac29['registerBlockAttribute']('alignment'),_0x24ac29['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xbb7aa3,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b7b7a=this['editor'],_0x2680df=_0x3b7b7a['locale'];_0x3b7b7a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x156fe1=>{if('formatBlock'!=_0x156fe1['type'])return;const {data:_0x1810b5}=_0x156fe1;if(_0x1810b5&&'alignment'==_0x1810b5['commandName']){const _0x2a7160=_0x1810b5['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2680df,'*Format:*\x20%0',function(_0x5a0147){switch(_0x5a0147){case'left':return o(_0x2680df,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2680df,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2680df,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2680df,'FORMAT_JUSTIFY_TEXT');}}(_0x2a7160))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x407128{['afterInit'](){const _0x30118e=this['editor'],_0x1a319c=_0x30118e['plugins']['get']('TrackChangesEditing'),_0x2c2790=_0x30118e['locale'];for(const _0x3fb5bd of ti){if(!_0x30118e['plugins']['has'](_0x3fb5bd))continue;const _0x585a02=_0x3fb5bd['slice'](0x0,-0x7)['toLowerCase'](),_0x2cc802='FORMAT_'+_0x585a02['toUpperCase']();_0x1a319c['enableDefaultAttributesIntegration'](_0x585a02),_0x1a319c['registerInlineAttribute'](_0x585a02),_0x1a319c['descriptionFactory']['registerAttributeLabel'](_0x585a02,o(_0x2c2790,_0x2cc802));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16b661=this['editor'],_0x5e3212=_0x16b661['locale'],_0x142bae=_0x16b661['plugins']['get']('TrackChangesEditing');function _0x47d762(_0x3e85b1,_0xa6638b){_0x142bae['descriptionFactory']['registerDescriptionCallback'](_0x1f9ae6=>{if('formatInline'!=_0x1f9ae6['type'])return;const {data:_0x25eebd}=_0x1f9ae6;return _0x25eebd&&_0x25eebd['commandName']===_0x3e85b1?_0x25eebd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5e3212,'*Format:*\x20%0',_0xa6638b)}:{'type':'format','content':o(_0x5e3212,'*Remove\x20format:*\x20%0',_0xa6638b)}:void 0x0;});}_0x47d762('bold',o(_0x5e3212,'FORMAT_BOLD')),_0x47d762('italic',o(_0x5e3212,'FORMAT_ITALIC')),_0x47d762('underline',o(_0x5e3212,'FORMAT_UNDERLINE')),_0x47d762('code',o(_0x5e3212,'FORMAT_CODE')),_0x47d762('strikethrough',o(_0x5e3212,'FORMAT_STRIKETHROUGH')),_0x47d762('subscript',o(_0x5e3212,'FORMAT_SUBSCRIPT')),_0x47d762('superscript',o(_0x5e3212,'FORMAT_SUPERSCRIPT'));}}class O extends _0x407128{['afterInit'](){const _0x131d3f=this['editor'],_0x4268ac=_0x131d3f['locale'];if(!_0x131d3f['plugins']['has']('BlockQuoteEditing'))return;const _0x5bf73c=_0x131d3f['plugins']['get']('TrackChangesEditing'),_0x4462ab=this['editor']['commands']['get']('blockQuote');_0x5bf73c['enableCommand']('blockQuote',(_0x4e3550,_0x4743fe={})=>{const _0x41045d=this['editor']['model']['document']['selection'],_0x1f8084=_0x4743fe&&void 0x0!==_0x4743fe['forceValue']?_0x4743fe['forceValue']:!_0x4462ab['value'];let _0x2c729e=[];if(_0x1f8084){const _0x2db538=Array['from'](_0x41045d['getSelectedBlocks']())['filter'](_0x4f4f1d=>oo(_0x4f4f1d)||function(_0x30df9b,_0x18a996){const _0x5b64b6=_0x18a996['checkChild'](_0x30df9b['parent'],'blockQuote'),_0x302de5=_0x18a996['checkChild'](['$root','blockQuote'],_0x30df9b);return _0x5b64b6&&_0x302de5;}(_0x4f4f1d,this['editor']['model']['schema']));_0x2c729e=to(_0x2db538,_0x131d3f['model']);}else{const _0x32cc06=Array['from'](_0x41045d['getSelectedBlocks']())['filter'](_0x425dfe=>oo(_0x425dfe));_0x2c729e=to(_0x32cc06,_0x131d3f['model']);}_0x131d3f['model']['change'](()=>{for(const _0x2be1cd of _0x2c729e)_0x5bf73c['markBlockFormat'](_0x2be1cd,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1f8084}]});});}),_0x5bf73c['descriptionFactory']['registerDescriptionCallback'](_0x7d5b67=>{const {data:_0x4b7990}=_0x7d5b67;if(_0x4b7990&&'blockQuote'==_0x4b7990['commandName']){const _0x2e138f=o(_0x4268ac,'ELEMENT_BLOCK_QUOTE');return _0x4b7990['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4268ac,'*Set\x20format:*\x20%0',_0x2e138f)}:{'type':'format','content':o(_0x4268ac,'*Remove\x20format:*\x20%0',_0x2e138f)};}});}}function oo(_0x2edb16){return'blockQuote'==_0x2edb16['parent']['name'];}class G extends _0x407128{['afterInit'](){const _0x12db10=this['editor'];_0x12db10['plugins']['has']('CaseChange')&&(_0x12db10['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x12db10['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x12db10['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x407128{['afterInit'](){const _0x517b1e=this['editor'];_0x517b1e['commands']['get']('ckbox')&&_0x517b1e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x407128{['afterInit'](){const _0x758d9d=this['editor'];if(!_0x758d9d['plugins']['has']('CodeBlock'))return;const _0x4ddd71=_0x758d9d['plugins']['get']('TrackChangesEditing'),_0x308ed1=_0x758d9d['locale'],_0x1e6785=_0x758d9d['config']['get']('codeBlock')['languages'],_0x5d3bcd=_0x758d9d['commands']['get']('codeBlock');_0x4ddd71['enableCommand']('indentCodeBlock'),_0x4ddd71['enableCommand']('outdentCodeBlock'),_0x4ddd71['enableCommand']('codeBlock',(_0x30dfa8,_0x4e4b89={})=>{const _0x4eed27=_0x758d9d['model'],_0x242ab3=_0x758d9d['model']['document']['selection'],_0x1da8a7=_0x4e4b89&&void 0x0!==_0x4e4b89['forceValue']?_0x4e4b89['forceValue']:!_0x5d3bcd['value'];let _0xcccec5;_0x4e4b89['language']||(_0x4e4b89['language']=_0x1e6785[0x0]['language']),_0xcccec5=_0x1da8a7?Array['from'](_0x242ab3['getSelectedBlocks']())['filter'](_0x75f7a4=>eo(_0x75f7a4)||function(_0x19ab1e,_0x513b52){if(_0x19ab1e['is']('rootElement')||_0x513b52['isLimit'](_0x19ab1e))return!0x1;return _0x513b52['checkChild'](_0x19ab1e['parent'],'codeBlock');}(_0x75f7a4,_0x4eed27['schema'])):Array['from'](_0x242ab3['getSelectedBlocks']())['filter'](_0x1e8239=>eo(_0x1e8239));const _0x10e46d=to(_0xcccec5,_0x4eed27);_0x4eed27['change'](()=>{for(const _0x2f0f04 of _0x10e46d)_0x4ddd71['markBlockFormat'](_0x2f0f04,{'commandName':'codeBlock','commandParams':[{..._0x4e4b89,'forceValue':_0x1da8a7}],'formatGroupId':'blockName'});});}),(_0x4ddd71['descriptionFactory']['registerElementLabel']('codeBlock',_0x111bbd=>o(_0x308ed1,'ELEMENT_CODE_BLOCK',_0x111bbd)),_0x4ddd71['descriptionFactory']['registerDescriptionCallback'](_0x1569ee=>{if('formatBlock'!=_0x1569ee['type'])return;const _0x143c5b=_0x308ed1['t'],{data:_0x16be5b}=_0x1569ee;if(!_0x16be5b||'codeBlock'!=_0x16be5b['commandName'])return;const _0x5720f2=_0x16be5b['commandParams'][0x0]['language'],_0x465fcc=_0x143c5b(_0x1e6785['find'](_0xd9ed37=>_0xd9ed37['language']===_0x5720f2)['label'])['toLowerCase']();return _0x16be5b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x308ed1,'*Set\x20format:*\x20%0',o(_0x308ed1,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x465fcc+')')}:{'type':'format','content':o(_0x308ed1,'*Remove\x20format:*\x20%0',o(_0x308ed1,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x15f042){return'codeBlock'==_0x15f042['name'];}class H extends _0x407128{['afterInit'](){const _0x4b500e=this['editor'];if(!_0x4b500e['plugins']['has']('CommentsEditing'))return;_0x4b500e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xac0356,_0x507e2e,_0x4e08b6){const _0x4dc10c=[];for(const _0x99ecd7 of _0x507e2e['getItems']())_0x99ecd7['hasAttribute'](_0xac0356)&&_0x4dc10c['push'](_0x4e08b6['createRangeOn'](_0x99ecd7));return _0x4dc10c;}function _e(_0x405fe3,_0x56f3bf,{showActiveMarker:_0x4e0127=!0x0}={}){const _0x48b14d=_0x405fe3['plugins']['get']('TrackChangesEditing');return(_0x2dd41f,_0x1859c2,_0x371f5d)=>{if(!_0x371f5d['consumable']['test'](_0x1859c2['markerRange'],_0x2dd41f['name']))return;const _0x532c4b=_0x1859c2['markerRange']['getWalker'](),_0x29ec1e=_0x1859c2['markerRange']['start'],_0x3b0320=_0x405fe3['model']['schema'];let _0x1b6841=null,_0x50a88b=null,_0x3ec23d=!0x1,_0x483405=!0x1;for(const _0x1af64d of _0x532c4b){const _0x17cd33=_0x1af64d['item'];_0x3ec23d=_0x3ec23d||_0x3b0320['isContent'](_0x17cd33);const _0x5e515f=_0x371f5d['mapper']['toViewElement'](_0x17cd33);if(_0x5e515f&&_0x5e515f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1af64d['type']&&(_0x3b0320['isBlock'](_0x17cd33)&&!_0x3b0320['isLimit'](_0x17cd33)&&(_0x17cd33['nextSibling']||_0x29ec1e['isAtEnd']?_0x1b6841&&_0x1b6841['parent']==_0x17cd33||(_0x1b6841=_0x17cd33,_0x5cd303(_0x1af64d['previousPosition']),_0x483405=!0x0):_0x50a88b=_0x50a88b||_0x1af64d['previousPosition']));}function _0x5cd303(_0x5749c9){const _0x14e000=_0x371f5d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x56f3bf}),_0x541c63=_0x371f5d['mapper']['toViewPosition'](_0x5749c9);_0x4e0127&&_0x48b14d['activeMarkers']['includes'](_0x1859c2['markerName'])&&_0x371f5d['writer']['addClass']('ck-suggestion-marker--active',_0x14e000),_0x371f5d['writer']['insert'](_0x541c63,_0x14e000),_0x371f5d['mapper']['bindElementToMarker'](_0x14e000,_0x1859c2['markerName']);}_0x3ec23d||_0x483405||!_0x50a88b||_0x5cd303(_0x50a88b);};}class q extends _0x407128{static get['requires'](){return[_0x279d9f];}['init'](){const _0x181ee0=this['editor'],_0x1f069c=_0x181ee0['plugins']['get']('TrackChangesEditing');_0x1f069c['enableCommand']('delete');const _0x4bcc66=_0x181ee0['commands']['get']('deleteForward');_0x1f069c['enableCommand']('deleteForward',(_0x4aa812,_0x2b616b={})=>{const _0x49bb43=_0x181ee0['model']['createSelection'](_0x181ee0['model']['document']['selection']);_0x49bb43['isCollapsed']&&_0x181ee0['model']['modifySelection'](_0x49bb43,{'direction':'forward','unit':_0x2b616b['unit']});const _0x1abce2=_0x49bb43['getFirstRange'](),_0x39e339=_0x268b03['fromRange'](_0x1abce2);let _0x340561;_0x4aa812(_0x2b616b),_0x340561='$graveyard'==_0x39e339['root']['rootName']?_0x181ee0['model']['createRange'](_0x1abce2['start']):_0x181ee0['model']['createRange'](_0x39e339['start'],_0x39e339['end']),_0x39e339['detach'](),_0x181ee0['model']['enqueueChange'](_0x4bcc66['buffer']['batch'],_0x1ebb09=>{_0x4bcc66['buffer']['lock'](),_0x1ebb09['setSelection'](_0x1ebb09['createRange'](_0x340561['end'])),_0x4bcc66['buffer']['unlock']();});}),_0x181ee0['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x181ee0,'merge'),{'priority':'high'}),_0x181ee0['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x47740e,_0x1b51eb,_0x3bcc01)=>{_0x3bcc01['options']['showSuggestionHighlights']&&_e(_0x181ee0,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x47740e,_0x1b51eb,_0x3bcc01);},{'priority':'high'}),_0x181ee0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4d6c29,_0x5e01df,_0x4592c1)=>{const _0x4640a5=_0x4592c1['mapper']['markerNameToElements'](_0x5e01df['markerName']);if(_0x4640a5){for(const _0xbcd821 of _0x4640a5)_0xbcd821['is']('uiElement')&&(_0x4592c1['mapper']['unbindElementFromMarkerName'](_0xbcd821,_0x5e01df['markerName']),_0x4592c1['writer']['remove'](_0xbcd821));}},{'priority':'high'});}}class z extends _0x407128{['afterInit'](){const _0x3d9f0a=this['editor'];if(!_0x3d9f0a['plugins']['has']('ListEditing'))return;const _0x11c668=_0x3d9f0a['locale'],_0x1dddb7=_0x3d9f0a['plugins']['get']('TrackChangesEditing'),_0x353a74=_0x3d9f0a['plugins']['has']('TodoListEditing'),_0x197e6f=!!_0x3d9f0a['config']['get']('list.multiBlock');function _0x33bbb2(_0x38f72f){return{'type':'format','content':''+o(_0x11c668,'*Set\x20format:*\x20%0',_0x38f72f)};}function _0x181838(_0x31be56){return{'type':'format','content':''+o(_0x11c668,'*Remove\x20format:*\x20%0',_0x31be56)};}_0x1dddb7['enableDefaultAttributesIntegration']('numberedList'),_0x1dddb7['enableDefaultAttributesIntegration']('bulletedList'),_0x1dddb7['enableDefaultAttributesIntegration']('customNumberedList'),_0x1dddb7['enableDefaultAttributesIntegration']('customBulletedList'),_0x1dddb7['enableDefaultAttributesIntegration']('indentList'),_0x1dddb7['enableDefaultAttributesIntegration']('outdentList'),_0x1dddb7['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1dddb7['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1dddb7['registerBlockAttribute']('listItemId'),_0x1dddb7['registerBlockAttribute']('listType'),_0x1dddb7['registerBlockAttribute']('listIndent'),_0x197e6f&&(_0x1dddb7['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1dddb7['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x353a74&&(_0x1dddb7['enableDefaultAttributesIntegration']('todoList'),_0x1dddb7['enableDefaultAttributesIntegration']('checkTodoList'),_0x1dddb7['registerBlockAttribute']('todoListChecked'),_0x1dddb7['descriptionFactory']['registerDescriptionCallback'](_0x2645ac=>{const {data:_0x2500da}=_0x2645ac;if(_0x2500da&&'todoListChecked'==_0x2500da['key'])return{'type':'format','content':_0x2500da['newValue']?o(_0x11c668,'*Check\x20item*'):o(_0x11c668,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x481751=>{if(_0x481751['batch']['isUndo'])return!0x1;let _0x2cca7c=!0x1;const _0x329808=_0x1dddb7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13636b=>'todoListChecked'===_0x1dddb7['_getAttributeKey'](_0x13636b));for(const _0x4458aa of _0x329808){'todo'!=_0x4458aa['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1dddb7['_findSuggestions'](_0x4458aa['getFirstRange'](),'attribute')['find'](_0x6fcebf=>'listType'===_0x1dddb7['_getAttributeKey'](_0x6fcebf['suggestion']))||(_0x481751['removeMarker'](_0x4458aa['getFirstMarker']()),_0x2cca7c=!0x0));}return _0x2cca7c;})),_0x1dddb7['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x11c668,'FORMAT_INDENT'));const _0x4975ec={'type':'format','content':''};_0x1dddb7['descriptionFactory']['registerDescriptionCallback'](_0x4839a0=>{const {data:_0x32d1e6}=_0x4839a0;if(!_0x32d1e6||'listType'!=_0x32d1e6['key'])return;let _0x52afa0=_0x4839a0['head'];for(;_0x52afa0;){if(_0x52afa0['data']&&(('listStyle'==_0x52afa0['data']['key']||'listMarkerStyle'==_0x52afa0['data']['key'])&&(_0x52afa0['data']['newValue']&&'default'!=_0x52afa0['data']['newValue']||'default'!=_0x52afa0['data']['oldValue']&&!_0x32d1e6['newValue'])||!_0x197e6f&&_0x52afa0['data']['key']==m))return _0x4975ec;_0x52afa0=_0x52afa0['next'];}if(null==_0x32d1e6['newValue'])switch(_0x32d1e6['oldValue']){case'bulleted':return _0x181838(o(_0x11c668,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x181838(o(_0x11c668,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x181838(o(_0x11c668,'ELEMENT_TODO_LIST'));}switch(_0x32d1e6['newValue']){case'bulleted':return _0x33bbb2(o(_0x11c668,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x33bbb2(o(_0x11c668,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x33bbb2(o(_0x11c668,'ELEMENT_TODO_LIST'));}}),_0x1dddb7['descriptionFactory']['registerDescriptionCallback'](_0x218488=>{const {data:_0x358759}=_0x218488;if(_0x358759&&'listIndent'==_0x358759['key'])return null==_0x358759['newValue']||null==_0x358759['oldValue']&&0x0==_0x358759['newValue']?_0x4975ec:void 0x0;}),_0x1dddb7['descriptionFactory']['registerDescriptionCallback'](_0x3f8dfc=>{if('attribute'!=_0x3f8dfc['type'])return;const {data:_0x1deeb1}=_0x3f8dfc;if(!_0x1deeb1||'listItemId'!=_0x1deeb1['key'])return;const _0x26fef1=le(_0x3f8dfc);return'newValue'==_0x26fef1?{'type':'format','content':o(_0x11c668,'*Merge:*\x20list\x20item')}:'oldValue'==_0x26fef1?{'type':'format','content':o(_0x11c668,'*Split:*\x20list\x20item')}:_0x4975ec;}),_0x3d9f0a['model']['document']['registerPostFixer'](_0x3d6535=>this['listItemIdFixer'](_0x3d6535)),_0x3d9f0a['model']['document']['registerPostFixer'](_0x4da880=>this['noTrackChangesFixer'](_0x4da880)),_0x3d9f0a['model']['document']['registerPostFixer'](_0x1032ca=>this['assureChains'](_0x1032ca)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2b4c30){if(_0x2b4c30['batch']['isUndo']||!_0x2b4c30['batch']['isLocal'])return!0x1;let _0x247ed2=!0x1;const _0x16d976=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x57c566=>_0x57c566['data']&&'listItemId'==_0x57c566['data']['key'])['filter'](_0x2ae1d8=>_0x2ae1d8['data']['newValue']&&_0x2ae1d8['data']['oldValue']);for(const _0x15face of _0x16d976)le(_0x15face)||(_0x2b4c30['removeMarker'](_0x15face['getFirstMarker']()),_0x247ed2=!0x0);return _0x247ed2;}['noTrackChangesFixer'](_0x463af7){if(_0x463af7['batch']['isUndo']||!_0x463af7['batch']['isLocal'])return!0x1;const _0x38542b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x38542b['trackChangesCommand']['value'])return!0x1;let _0x39c27a=!0x1;const _0x47ec34=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x356f2d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x358195=>'attribute'==_0x358195['type'])['filter'](_0x23f1fc=>_0x47ec34['includes'](_0x23f1fc['attributeKey']));if(0x0==_0x356f2d['length'])return _0x39c27a;for(const _0x407a9a of _0x356f2d){const _0x298b2e=_0x38542b['_findSuggestions'](_0x407a9a['range'],'attribute')['filter'](_0x3b4926=>!_0x3b4926['meta']['isNextTo'])['map'](_0x29bcec=>_0x29bcec['suggestion'])['filter'](_0x470d7c=>{const _0x4f3e61=_0x38542b['_getAttributeKey'](_0x470d7c);return _0x47ec34['includes'](_0x4f3e61);});if(_0x298b2e['length']){for(const _0x2f81d4 of _0x298b2e)_0x463af7['removeMarker'](_0x2f81d4['getFirstMarker']());_0x39c27a=!0x0;}}return _0x39c27a;}['assureChains'](_0x275a32){if(_0x275a32['batch']['isUndo']||!_0x275a32['batch']['isLocal'])return!0x1;const _0x526a17=this['editor']['plugins']['get']('TrackChangesEditing');let _0x26bb52=!0x1;const _0x5dd739=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x22af5b of _0x526a17['getSuggestions']({'skipNotAttached':!0x0})){const _0xb5f21b=_0x526a17['_findSuggestions'](_0x22af5b['getFirstRange'](),'attribute')['map'](_0x5c075d=>_0x5c075d['suggestion'])['filter'](_0xfd344e=>_0xfd344e['data']&&_0x5dd739['includes'](_0xfd344e['data']['key']));if(!_0xb5f21b['length'])continue;const _0x4017e0=_0xb5f21b[0x0]['head']['attributes']['groupId'];if(!_0xb5f21b['every'](_0x95b4df=>_0x95b4df['attributes']['groupId']===_0x4017e0)){for(const _0x5edbf0 of _0xb5f21b)_0x373589(_0x5edbf0,_0x4017e0)&&(_0x26bb52=!0x0);}}return _0x26bb52;function _0x3e57d8(_0x5b7b60,_0xe60141){for(const _0x1162b7 of _0x526a17['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1ef7d0=>'attribute'==_0x1ef7d0['type']&&_0x1ef7d0['attributes']['groupId']==_0x5b7b60))_0x1162b7['setAttribute']('groupId',_0xe60141);}function _0x373589(_0x19aa49,_0x4dd21d){let _0x14b168=_0x19aa49['head'],_0x199950=!0x1;for(;_0x14b168;)_0x14b168['attributes']['groupId']!=_0x4dd21d&&(_0x3e57d8(_0x14b168['attributes']['groupId'],_0x4dd21d),_0x14b168['setAttribute']('groupId',_0x4dd21d),_0x199950=!0x0),_0x14b168=_0x14b168['next'];return _0x199950;}}['_supportLegacySuggestions'](){const _0x5ea71b=this['editor'],_0x3b2e46=_0x5ea71b['locale'],_0x473cab=_0x5ea71b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x473cab['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x32a78a,_0x5d3060){const _0x5883a5=[];for(let _0x3bab83 of _0x32a78a)_0x3bab83['start']['nodeAfter']===_0x3bab83['end']['parent']&&(_0x3bab83=_0x5ea71b['model']['createRange'](_0x5ea71b['model']['createPositionAt'](_0x3bab83['start']['nodeAfter'],0x0))),_0x5883a5['push'](_0x3bab83);_0x5ea71b['model']['change'](_0x59ae88=>{const _0x100ca4=_0x5ea71b['model']['document']['selection'],_0x1ad2e0=Array['from'](_0x100ca4['getRanges']())['map'](_0x5b02d7=>_0x268b03['fromRange'](_0x5b02d7));_0x59ae88['setSelection'](_0x5883a5),_0x5ea71b['commands']['get'](_0x5d3060['commandName'])['refresh'](),_0x5d3060['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5ea71b['execute'](_0x5d3060['commandName'],..._0x5d3060['commandParams']),_0x59ae88['setSelection'](_0x1ad2e0);for(const _0x1d13ca of _0x1ad2e0)_0x1d13ca['detach']();});}),_0x473cab['descriptionFactory']['registerElementLabel'](function(_0x15efa8){const _0x4f4ec2=!_0x5ea71b['model']['schema']['isObject'](_0x15efa8),_0x466f67=_0x15efa8['previousSibling'],_0x127ce6=_0x15efa8['nextSibling'],_0x5b3927=_0x15efa8['getAttribute']('listItemId'),_0x31c020=!_0x466f67||_0x466f67['getAttribute']('listItemId')!==_0x5b3927,_0x36db30=!_0x127ce6||_0x127ce6['getAttribute']('listItemId')!==_0x5b3927;return _0x4f4ec2&&Boolean(_0x5b3927)&&_0x31c020&&_0x36db30;},_0xf8eb03=>o(_0x3b2e46,'ELEMENT_LIST_ITEM',_0xf8eb03));}['_registerLegacyDescription'](){const _0x3bbdd6=this['editor'],_0x126967=_0x3bbdd6['locale'];function _0x2d6b98(_0x21b084){const _0x49de34=_0x3bbdd6['commands']['get']('bulletedList')['value'],_0x566d7c=_0x3bbdd6['commands']['get']('numberedList')['value'];return'numberedList'===_0x21b084?_0x49de34:_0x566d7c;}_0x3bbdd6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x40c644){if('formatBlock'!=_0x40c644['type'])return;const {data:_0x1732ef}=_0x40c644;if(!_0x1732ef)return;let _0x27ba25,_0x5debef,_0x6eec90,_0x487cb3;switch(_0x1732ef['commandName']){case'bulletedList':_0x6eec90=_0x1732ef['commandParams'][0x0]['forceValue'],_0x487cb3=_0x2d6b98(_0x1732ef['commandName']),_0x27ba25=_0x6eec90?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x487cb3&&_0x3bbdd6['config']['get']('list.multiBlock')||(_0x27ba25='*Change\x20to:*\x20%0'),_0x5debef={'type':'format','content':o(_0x126967,_0x27ba25,o(_0x126967,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x6eec90=_0x1732ef['commandParams'][0x0]['forceValue'],_0x487cb3=_0x2d6b98(_0x1732ef['commandName']),_0x27ba25=_0x6eec90?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x487cb3&&_0x3bbdd6['config']['get']('list.multiBlock')||(_0x27ba25='*Change\x20to:*\x20%0'),_0x5debef={'type':'format','content':o(_0x126967,_0x27ba25,o(_0x126967,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x27ba25='*Indent:*\x20%0',_0x5debef={'type':'format','content':o(_0x126967,_0x27ba25,o(_0x126967,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x27ba25=function(_0x58e733){const _0x516ad9=_0x58e733['getFirstRange']();let _0x55a200=_0x516ad9['start']['nodeAfter'];for(;_0x55a200&&_0x516ad9['containsItem'](_0x55a200);){if(_0x55a200['getAttribute']('listIndent')>0x0)return!0x1;_0x55a200=_0x55a200['nextSibling'];}return!0x0;}(_0x40c644)?o(_0x126967,'*Format:*\x20remove\x20from\x20%0',o(_0x126967,function(_0x2a696d){return'ELEMENT_'+_0x2a696d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x40c644))):o(_0x126967,'*Outdent:*\x20%0',o(_0x126967,'ELEMENT_LIST_ITEM')),_0x5debef={'type':'format','content':_0x27ba25};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1732ef['multipleBlocks']&&(_0x27ba25='*Merge:*\x20%0',_0x5debef={'type':'deletion','content':o(_0x126967,_0x27ba25,o(_0x126967,'ELEMENT_LIST_ITEM'))});}return _0x5debef;});}}function le(_0x3d1000){let _0xe654c2=_0x3d1000['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xe654c2;){const _0x1882dc=_0xe654c2['getAttribute']('listItemId');if(!_0x1882dc)return!0x1;if(_0x1882dc==_0x3d1000['data']['newValue'])return'newValue';if(_0x1882dc==_0x3d1000['data']['oldValue'])return'oldValue';_0xe654c2=_0xe654c2['previousSibling'];}return!0x1;}class ue extends _0x407128{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2fa87c=this['editor']['config']['get']('list.properties'),_0x2cd507=this['editor']['plugins']['get']('TrackChangesEditing');_0x2fa87c['styles']&&(_0x2cd507['enableDefaultAttributesIntegration']('listStyle'),_0x2cd507['registerBlockAttribute']('listStyle')),_0x2fa87c['reversed']&&(_0x2cd507['enableDefaultAttributesIntegration']('listReversed'),_0x2cd507['registerBlockAttribute']('listReversed')),_0x2fa87c['startIndex']&&(_0x2cd507['enableDefaultAttributesIntegration']('listStart'),_0x2cd507['registerBlockAttribute']('listStart'));const _0x5125ea={'type':'format','content':''};_0x2cd507['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x96f9bf=this['editor']['locale'];_0x2cd507['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x96f9bf,'FORMAT_LIST_REVERSED')),_0x2cd507['descriptionFactory']['registerDescriptionCallback'](_0x5c1f3e=>{const {data:_0x4828a8}=_0x5c1f3e;if(_0x4828a8&&'listReversed'==_0x4828a8['key'])return null==_0x4828a8['newValue']||0x0==_0x4828a8['newValue']&&null==_0x4828a8['oldValue']?_0x5125ea:void 0x0;}),_0x2cd507['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x96f9bf,'FORMAT_LIST_START')),_0x2cd507['descriptionFactory']['registerDescriptionCallback'](_0x3167b1=>{const {data:_0x231816}=_0x3167b1;if(_0x231816&&'listStart'==_0x231816['key'])return null==_0x231816['newValue']||0x1==_0x231816['newValue']&&null==_0x231816['oldValue']?_0x5125ea:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1f634a=>{if(_0x1f634a['batch']['isUndo'])return!0x1;let _0x55b7c1=!0x1;const _0x9394e2=_0x2cd507['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3114ef=>{const _0xbed7df=_0x2cd507['_getAttributeKey'](_0x3114ef);return'listStart'==_0xbed7df||'listReversed'==_0xbed7df;});for(const _0x13311c of _0x9394e2){const _0x55e253=_0x13311c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x55e253||'customNumbered'==_0x55e253)continue;_0x2cd507['_findSuggestions'](_0x13311c['getFirstRange'](),'attribute')['find'](_0x2f392f=>'listType'==_0x2cd507['_getAttributeKey'](_0x2f392f['suggestion']))||(_0x1f634a['removeMarker'](_0x13311c['getFirstMarker']()),_0x55b7c1=!0x0);}return _0x55b7c1;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x574d61){const _0x3bfa55=this['editor']['locale'],{data:_0x86cf6e}=_0x574d61,_0x95c52b={'type':'format','content':''};if(!_0x86cf6e||'listStyle'!=_0x86cf6e['key'])return;if(!_0x86cf6e['oldValue'])return'default'==_0x86cf6e['newValue']?_0x95c52b:{'type':'format','content':''+o(_0x3bfa55,'*Set\x20format:*\x20%0',o(_0x3bfa55,this['_getTranslationKeyForListStyle'](_0x86cf6e['newValue'])))};if(!_0x86cf6e['newValue']){if('default'==_0x86cf6e['oldValue'])return _0x95c52b;let _0x15f7e3=_0x574d61['head'];for(;_0x15f7e3;){if(_0x15f7e3['data']&&'listType'==_0x15f7e3['data']['key']&&_0x15f7e3['data']['newValue'])return _0x95c52b;_0x15f7e3=_0x15f7e3['next'];}return{'type':'format','content':''+o(_0x3bfa55,'*Remove\x20format:*\x20%0',o(_0x3bfa55,this['_getTranslationKeyForListStyle'](_0x86cf6e['oldValue'])))};}if('default'!=_0x86cf6e['newValue'])return{'type':'format','content':''+o(_0x3bfa55,'*Set\x20format:*\x20%0',o(_0x3bfa55,this['_getTranslationKeyForListStyle'](_0x86cf6e['newValue'])))};let _0x1072fe=_0x574d61['head'];for(;_0x1072fe;){if(_0x1072fe['data']&&'listType'==_0x1072fe['data']['key']&&_0x1072fe['data']['newValue']&&_0x1072fe['data']['oldValue'])return _0x95c52b;_0x1072fe=_0x1072fe['next'];}return{'type':'format','content':o(_0x3bfa55,'*Set\x20format:*\x20%0',o(_0x3bfa55,'ELEMENT_'+_0x574d61['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4219b4=this['editor'],_0x225ea8=_0x4219b4['locale'];_0x4219b4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fd7ce=>{if('formatBlock'!=_0x1fd7ce['type'])return;const {data:_0x208eed}=_0x1fd7ce;if(!_0x208eed)return;let _0x3bab86,_0x32ae37;switch(_0x208eed['commandName']){case'listStyle':_0x3bab86='*Change\x20to:*\x20%0',_0x32ae37={'type':'format','content':o(_0x225ea8,_0x3bab86,o(_0x225ea8,this['_getTranslationKeyForListStyle'](_0x208eed['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3bab86=_0x208eed['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x32ae37={'type':'format','content':o(_0x225ea8,_0x3bab86)};break;case'listStart':_0x3bab86='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x32ae37={'type':'format','content':o(_0x225ea8,_0x3bab86,_0x208eed['commandParams'][0x0]['startIndex'])};}return _0x32ae37;});}['_getTranslationKeyForListStyle'](_0xfb594e){return'ELEMENT_'+function(_0xd417c1){if(pe['includes'](_0xd417c1))return'bulleted';if(ye['includes'](_0xd417c1))return'numbered';return null;}(_0xfb594e)['toUpperCase']()+'_LIST_'+_0xfb594e['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x407128{static get['requires'](){return[_0x5aaae8];}['init'](){const _0x3ebcb9=this['editor'],_0x209d9c=_0x3ebcb9['plugins']['get']('TrackChangesEditing'),_0x40704b=_0x3ebcb9['commands']['get']('enter');_0x209d9c['enableCommand']('enter',()=>{_0x3ebcb9['model']['change'](_0x6f8e92=>{const _0x3c4aad=_0x3ebcb9['model']['document']['selection'],_0x59343b=_0x3c4aad['getFirstPosition'](),_0x1c4c06=_0x268b03['fromRange'](_0x3c4aad['getFirstRange']());if(_0x40704b['enterBlock'](_0x6f8e92)){const _0x25c492=_0x3ebcb9['model']['createPositionAt'](_0x59343b['parent']['nextSibling'],0x0),_0x43e8a1=_0x6f8e92['createRange'](_0x59343b,_0x25c492);_0x209d9c['markInsertion'](_0x43e8a1);}else _0x6f8e92['setSelection'](_0x6f8e92['createRange'](_0x1c4c06['end']));_0x1c4c06['detach'](),_0x40704b['fire']('afterExecute',{'writer':_0x6f8e92});});}),_0x3ebcb9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x3ebcb9,'split'),{'priority':'high'}),_0x3ebcb9['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2938fe,_0x1ec9fc,_0x13a133)=>{const _0x488635=_0x13a133['mapper']['markerNameToElements'](_0x1ec9fc['markerName']);if(_0x488635){for(const _0x22a42b of _0x488635)_0x22a42b['hasClass']('ck-suggestion-marker-split')&&(_0x13a133['mapper']['unbindElementFromMarkerName'](_0x22a42b,_0x1ec9fc['markerName']),_0x13a133['writer']['remove'](_0x22a42b));}},{'priority':'high'}),_0x3ebcb9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4ce2c0,_0x2c7241,_0x159950)=>{_0x159950['options']['showSuggestionHighlights']&&_e(_0x3ebcb9,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4ce2c0,_0x2c7241,_0x159950);},{'priority':'high'});}}class J extends _0x407128{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3ea046=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ea046['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3ea046['enableCommand']('findNext'),_0x3ea046['enableCommand']('findPrevious'),_0x3ea046['enableCommand']('replace'),_0x3ea046['enableCommand']('replaceAll');}['handleFindCommand'](_0x4ad796,_0x366d37,_0x504c92={}){const _0x537341=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4ad796(_0x1883ce=>('string'==typeof _0x366d37?_0x537341['findByTextCallback'](_0x366d37,_0x504c92):_0x366d37)(_0x1883ce)['filter'](_0x2384fc=>!0x1===this['_isInDeletionRange'](_0x2384fc,_0x1883ce['item'])),_0x504c92);}['_isInDeletionRange'](_0x3e09c4,_0x3592e9){const _0x32826e=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3592e9,_0x3e09c4['start']),this['editor']['model']['createPositionAt'](_0x3592e9,_0x3e09c4['end']));for(const _0x5f4528 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x32826e['getIntersection'](_0x5f4528['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 _0x407128{['afterInit'](){const _0x448eca=this['editor']['locale'],_0x393bc8=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x56cbc5,commandName:_0x436193}of ro)this['editor']['plugins']['has'](_0x56cbc5)&&(_0x393bc8['enableDefaultAttributesIntegration'](_0x436193),_0x393bc8['registerInlineAttribute'](_0x436193));_0x448eca['t'],_0x393bc8['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x448eca,'FORMAT_FONT_SIZE')),_0x393bc8['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x448eca,'FORMAT_FONT_FAMILY')),_0x393bc8['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x448eca,'FORMAT_FONT_COLOR')),_0x393bc8['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x448eca,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d700e=this['editor'],_0x4a062b=_0x5d700e['locale'];_0x5d700e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9be46c=>{const _0x34c3d2=_0x4a062b['t'];if('formatInline'!=_0x9be46c['type'])return;const {data:_0x1c918d}=_0x9be46c;if(null!=_0x1c918d){if('fontSize'==_0x1c918d['commandName']){const _0x196788=_0x1c918d['commandParams'][0x0]['value'];if(_0x196788){const _0x361d30=_0x34c3d2(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x537e21=>_0x537e21['model']==_0x196788)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4a062b,'*Set\x20font\x20size:*\x20%0',_0x361d30)};}return{'type':'format','content':o(_0x4a062b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1c918d['commandName']){const _0x214c3b=_0x1c918d['commandParams'][0x0]['value'];return _0x214c3b?{'type':'format','content':o(_0x4a062b,'*Set\x20font\x20family:*\x20%0',_0x214c3b)}:{'type':'format','content':o(_0x4a062b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1c918d['commandName']){const _0x25f569=_0x1c918d['commandParams'][0x0]['value'];if(_0x25f569){const _0x3476a6=_0x254f2d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x24bf0c=>_0x24bf0c['model']==_0x25f569);let _0x3d85c4=_0x25f569,_0x2ad588='';return _0x3476a6&&(_0x3d85c4=_0x3476a6['label'],_0x2ad588=_0x34c3d2(_0x3d85c4)['toLowerCase']()),{'type':'format','content':o(_0x4a062b,'*Set\x20font\x20color:*\x20%0',_0x2ad588)['trim'](),'color':{'value':_0x25f569,'title':_0x2ad588||_0x3d85c4}};}return{'type':'format','content':o(_0x4a062b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1c918d['commandName']){const _0x2a8b40=_0x1c918d['commandParams'][0x0]['value'];if(_0x2a8b40){const _0x46339c=_0x254f2d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5c838a=>_0x5c838a['model']==_0x2a8b40);let _0x33ab2d=_0x2a8b40,_0x30a04a='';return _0x46339c&&(_0x33ab2d=_0x46339c['label'],_0x30a04a=_0x34c3d2(_0x33ab2d)['toLowerCase']()),{'type':'format','content':o(_0x4a062b,'*Set\x20font\x20background\x20color:*\x20%0',_0x30a04a)['trim'](),'color':{'value':_0x2a8b40,'title':_0x30a04a||_0x33ab2d}};}return{'type':'format','content':o(_0x4a062b,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x407128{['afterInit'](){const _0xd82351=this['editor'],_0x2c29fd=_0xd82351['plugins']['get']('TrackChangesEditing'),_0x4ab0be=_0xd82351['commands']['get']('copyFormat'),_0xeb9f74=_0xd82351['commands']['get']('pasteFormat');_0x4ab0be&&_0xeb9f74&&(_0x2c29fd['enableDefaultAttributesIntegration']('pasteFormat'),_0x2c29fd['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x6f59c8=this['editor'],_0xc9e757=_0x6f59c8['locale'];_0x6f59c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23af8d=>{if('formatBlock'!=_0x23af8d['type']&&'formatInline'!=_0x23af8d['type'])return;const {data:_0x5246a4}=_0x23af8d;if(_0x5246a4&&'pasteFormat'===_0x5246a4['commandName']){const _0x5176c0=[],_0x2ef8f0=_0x5246a4['commandParams'][0x0];for(const [_0x24397b,_0x362dc8]of Object['entries'](_0x2ef8f0))_0x5176c0['push'](so(_0x6f59c8,_0x24397b,_0x362dc8));return _0x5176c0['length']?{'type':'format','content':o(_0xc9e757,'*Set\x20format\x20to:*\x20%0',_0x5176c0['join'](',\x20'))}:{'type':'format','content':o(_0xc9e757,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1e86c0,_0x2878bd,_0x2631f2){const _0x5d9063=_0x1e86c0['locale']['t'],_0x4177c2=_0x2878bd['split'](/(?=[A-Z])/)['join']('\x20'),_0x3b2c7d=_0x5d9063(_0x4177c2['charAt'](0x0)['toUpperCase']()+_0x4177c2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2631f2)return _0x3b2c7d;if('fontColor'===_0x2878bd||'fontBackgroundColor'===_0x2878bd){const _0x92bc36=_0x254f2d(_0x1e86c0['config']['get']('fontColor.colors'))['find'](_0x1e39f5=>_0x1e39f5['model']==_0x2631f2);return _0x3b2c7d+'\x20('+(_0x92bc36?_0x5d9063(_0x92bc36['label'])['toLowerCase']():_0x2631f2)+')';}if('fontSize'===_0x2878bd&&isNaN(parseFloat(_0x2631f2))){const _0x5a2ae4=_0x1e86c0['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1e86c0['config']['get']('fontSize.options'))['find'](_0x6aa117=>_0x6aa117['model']==_0x2631f2);return _0x3b2c7d+'\x20('+(_0x5a2ae4?_0x5d9063(_0x5a2ae4['title'])['toLowerCase']():_0x2631f2)+')';}return _0x3b2c7d+'\x20('+_0x2631f2+')';}class Y extends _0x407128{['_headingOptions'];['afterInit'](){const _0x155cc0=this['editor'];if(!_0x155cc0['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x155cc0['config']['get']('heading.options');const _0x2f5889=_0x155cc0['locale'],_0x5dab63=_0x155cc0['plugins']['get']('TrackChangesEditing');_0x5dab63['enableDefaultAttributesIntegration']('heading');for(const _0x108fde of this['_headingOptions'])'paragraph'!=_0x108fde['model']&&_0x5dab63['descriptionFactory']['registerElementLabel'](_0x108fde['model'],_0x5cac4a=>{const _0x19dd67=this['_getHeadingLevel'](_0x108fde['model']);return null!==_0x19dd67?_0x56b2fc(_0x5cac4a,_0x19dd67):_0x2826ce(_0x5cac4a,_0x108fde['title']);});function _0x56b2fc(_0x545a02,_0x35425a){return o(_0x2f5889,'ELEMENT_HEADING',[_0x545a02,_0x35425a]);}function _0x2826ce(_0xa64ec,_0x1de40b){return o(_0x2f5889,'ELEMENT_HEADING_CUSTOM',[_0xa64ec,_0x1de40b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d4cee=this['editor'],_0x28af41=_0x4d4cee['locale'];function _0x5c99b5(_0x31451e,_0x36ad09){return o(_0x28af41,'ELEMENT_HEADING_CUSTOM',[_0x31451e,_0x36ad09]);}_0x4d4cee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41e957=>{if('formatBlock'!=_0x41e957['type'])return;const {data:_0x16ba5f}=_0x41e957;if(_0x16ba5f&&'heading'==_0x16ba5f['commandName']){const _0x496e22=_0x16ba5f['commandParams'][0x0]['value'],_0x236aa8=this['_getHeadingLevel'](_0x496e22);if(null!==_0x236aa8)return{'type':'format','content':o(_0x28af41,'*Change\x20to:*\x20%0',(_0x5b9cd5=0x1,_0x54fa72=_0x236aa8,o(_0x28af41,'ELEMENT_HEADING',[_0x5b9cd5,_0x54fa72])))};const _0x52cd68=this['_headingOptions']['find'](_0x5cbd2b=>_0x5cbd2b['model']===_0x496e22)['title'];return{'type':'format','content':o(_0x28af41,'*Change\x20to:*\x20%0',_0x5c99b5(0x1,_0x52cd68))};}var _0x5b9cd5,_0x54fa72;});}['_getHeadingLevel'](_0x223c72){const _0x356f8b=_0x223c72['match'](/^heading(\d+)/);if(_0x356f8b)return _0x356f8b[0x1];const _0x355a66=this['_headingOptions']?.['find'](_0x3e09c9=>_0x3e09c9['model']==_0x223c72);if(_0x355a66&&_0x355a66['view']){const _0x2f15b9=_0x355a66['view'],_0x17e5bc=(_0x2f15b9['name']??_0x2f15b9)['match'](/^h(\d+)/);if(_0x17e5bc)return _0x17e5bc[0x1];}return null;}}class Z extends _0x407128{['afterInit'](){const _0x12ea4b=this['editor'];if(!_0x12ea4b['plugins']['has']('HighlightEditing'))return;const _0x282789=_0x12ea4b['plugins']['get']('TrackChangesEditing'),_0x6ae85a=_0x12ea4b['locale'];_0x282789['enableDefaultAttributesIntegration']('highlight'),_0x282789['registerInlineAttribute']('highlight'),_0x282789['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x6ae85a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ee734=this['editor'],_0x1cfcf7=_0x3ee734['locale'];_0x3ee734['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5af018=>{if('formatInline'!=_0x5af018['type'])return;const {data:_0x4a6a4c}=_0x5af018;if(_0x4a6a4c&&'highlight'==_0x4a6a4c['commandName']){const _0x1a6d19=_0x1cfcf7['t'],_0x112ae8=_0x4a6a4c['commandParams'][0x0]['value'];if(_0x112ae8){const _0x2977c1=_0x3ee734['config']['get']('highlight.options')['find'](_0x36bbfc=>_0x36bbfc['model']==_0x112ae8),_0x3756b9=_0x1a6d19(_0x2977c1['title'])['toLowerCase']();return{'type':'format','content':o(_0x1cfcf7,'*Set\x20highlight:*\x20%0',_0x3756b9),'color':{'value':_0x2977c1['color'],'title':_0x2977c1['title']}};}return{'type':'format','content':o(_0x1cfcf7,'*Remove\x20highlight*',o(_0x1cfcf7,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x407128{['afterInit'](){const _0x58ee3b=this['editor'];if(!_0x58ee3b['plugins']['has']('HorizontalLineEditing'))return;_0x58ee3b['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x573eeb=_0x58ee3b['plugins']['get']('TrackChangesEditing'),_0x2ab332=_0x58ee3b['locale'];_0x573eeb['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3b89fe=>o(_0x2ab332,'ELEMENT_HORIZONTAL_LINE',_0x3b89fe)),_0x58ee3b['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3f098c,{writer:_0x161611,options:_0x210cdd})=>{if(!_0x210cdd['showSuggestionHighlights'])return null;const _0x24fe95=_0x161611['createContainerElement']('div'),_0x3f597f=_0x161611['createEmptyElement']('hr');return _0x161611['addClass']('ck-horizontal-line',_0x24fe95),_0x161611['insert'](_0x161611['createPositionAt'](_0x24fe95,0x0),_0x3f597f),_0x24fe95;},'converterPriority':'high'});}}class et extends _0x407128{['afterInit'](){const _0x52c894=this['editor'];if(!_0x52c894['plugins']['has']('HtmlEmbed'))return;const _0x47e526=_0x52c894['plugins']['get']('TrackChangesEditing'),_0x544b76=_0x52c894['locale'];_0x47e526['descriptionFactory']['registerElementLabel']('rawHtml',_0x3a77a4=>o(_0x544b76,'ELEMENT_HTML_EMBED',_0x3a77a4)),_0x47e526['enableDefaultAttributesIntegration']('htmlEmbed'),_0x47e526['registerBlockAttribute']('value'),_0x47e526['descriptionFactory']['registerDescriptionCallback'](_0xe959a8=>{if('attribute'!=_0xe959a8['type'])return;const {data:_0x38a78d}=_0xe959a8;if(_0x38a78d&&'value'==_0x38a78d['key']&&_0xe959a8['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x11b972=o(_0x544b76,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x544b76,'*Change\x20%0\x20content*',_0x11b972)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30828e=this['editor'],_0x321852=_0x30828e['locale'];_0x30828e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c3473=>{if('formatBlock'!=_0x3c3473['type'])return;const {data:_0x428ac1}=_0x3c3473;if(_0x428ac1&&'htmlEmbed'==_0x428ac1['commandName']){const _0x22f7b2=o(_0x321852,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x321852,'*Change\x20%0\x20content*',_0x22f7b2)};}});}}class it extends _0x407128{['afterInit'](){const _0x54c03a=this['editor'];if(!_0x54c03a['plugins']['has']('ImageEditing'))return;const _0x5de5f9=_0x54c03a['plugins']['get']('TrackChangesEditing'),_0x4ed9e1=_0x54c03a['plugins']['get']('ImageUtils'),_0x33496f=_0x54c03a['locale'];_0x5de5f9['enableCommand']('insertImage'),_0x5de5f9['descriptionFactory']['registerElementLabel']('imageBlock',_0x59ad7a=>o(_0x33496f,'ELEMENT_IMAGE',_0x59ad7a)),_0x5de5f9['descriptionFactory']['registerElementLabel']('imageInline',_0x367fdf=>o(_0x33496f,'ELEMENT_INLINE_IMAGE',_0x367fdf)),_0x5de5f9['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x33496f,'ELEMENT_CAPTION')),_0x54c03a['plugins']['has']('ImageUploadEditing')&&_0x5de5f9['enableCommand']('uploadImage'),_0x54c03a['plugins']['has']('ImageBlockEditing')&&_0x54c03a['plugins']['has']('ImageInlineEditing')&&(_0x5de5f9['enableCommand']('imageTypeInline',(_0x1bc004,_0x440aba)=>{const _0x640334=_0x4ed9e1['getClosestSelectedImageElement'](_0x54c03a['model']['document']['selection']);_0x54c03a['model']['change'](()=>{_0x5de5f9['markBlockFormat'](_0x640334,{'commandName':'imageTypeInline','commandParams':[_0x440aba]},[],'convertBlockImageToInline');});}),_0x5de5f9['enableCommand']('imageTypeBlock',(_0x1b0d11,_0x4016ea)=>{_0x54c03a['model']['change'](_0x48d84f=>{let _0x1e284d=_0x4ed9e1['getClosestSelectedImageElement'](_0x54c03a['model']['document']['selection']),_0xb6b7dd=_0x48d84f['createRangeOn'](_0x1e284d);const _0x551e2a=_0x53da37['fromPosition'](_0xb6b7dd['start'],'toPrevious'),_0x5bc645=_0x53da37['fromPosition'](_0xb6b7dd['end'],'toNext');_0x5de5f9['forceDefaultExecution'](()=>_0x1b0d11(_0x4016ea)),_0x1e284d=_0x4ed9e1['getClosestSelectedImageElement'](_0x54c03a['model']['document']['selection']),_0xb6b7dd=_0x48d84f['createRangeOn'](_0x1e284d);const _0x224f41=_0x48d84f['createRange'](_0x551e2a,_0x5bc645);_0x551e2a['detach'](),_0x5bc645['detach'](),_0x5de5f9['markBlockFormat'](_0x1e284d,{'commandName':'imageTypeInline','commandParams':[_0x4016ea]},[],'convertInlineImageToBlock'),_0x224f41['start']['isBefore'](_0xb6b7dd['start'])&&_0x5de5f9['markInsertion'](_0x48d84f['createRange'](_0x224f41['start'],_0xb6b7dd['start']),'convertInlineImageToBlock'),_0xb6b7dd['end']['isBefore'](_0x224f41['end'])&&_0x5de5f9['markInsertion'](_0x48d84f['createRange'](_0xb6b7dd['end'],_0x224f41['end']),'convertInlineImageToBlock');});}),_0x5de5f9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5de5f9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5de5f9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5de5f9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5de5f9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5de5f9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x941f9])=>{const _0x22d082=_0x5de5f9['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5da3a2=_0x941f9['start'],_0x1527a9=_0x941f9['end'];const _0x170dd3=_0x54c03a['model']['schema']['getNearestSelectionRange'](_0x5da3a2,'backward'),_0x2bbef=_0x54c03a['model']['schema']['getNearestSelectionRange'](_0x1527a9,'forward');_0x170dd3['isCollapsed']&&(_0x5da3a2=_0x170dd3['start']),_0x2bbef['isCollapsed']&&(_0x1527a9=_0x2bbef['end']),_0x22d082([_0x54c03a['model']['createRange'](_0x5da3a2,_0x1527a9)]);}),_0x5de5f9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xc3a508),_0x5de5f9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xc3a508)),_0x54c03a['plugins']['has']('ImageCaptionEditing')&&(_0x5de5f9['enableCommand']('toggleImageCaption',(_0x3a01f6,_0x364e75)=>{const _0x3c7bfb=_0x54c03a['plugins']['get']('ImageCaptionUtils');let _0x35fafa=_0x4ed9e1['getClosestSelectedImageElement'](_0x54c03a['model']['document']['selection']),_0x13f8f8=_0x3c7bfb['getCaptionFromImageModelElement'](_0x35fafa);_0x54c03a['model']['change'](()=>{if(_0x13f8f8)return void _0x5de5f9['markDeletion'](_0x54c03a['model']['createRangeOn'](_0x13f8f8));const _0x389451=_0x4ed9e1['isBlockImage'](_0x35fafa);_0x3a01f6(_0x364e75),_0x35fafa=_0x4ed9e1['getClosestSelectedImageElement'](_0x54c03a['model']['document']['selection']),_0x13f8f8=_0x3c7bfb['getCaptionFromImageModelElement'](_0x35fafa),_0x5de5f9['markInsertion'](_0x54c03a['model']['createRangeOn'](_0x13f8f8),_0x389451?null:'imageCaption');});}),_0x5de5f9['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xc3a508));const _0x3afa51=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x34ef1e(_0xd18018,_0x27ad4e){const _0xc5720d=_0x3afa51['findIndex'](({type:_0x21fe7d,subType:_0x36a46a})=>_0xd18018['type']==_0x21fe7d&&_0xd18018['subType']==_0x36a46a),_0x36af40=_0x3afa51['findIndex'](({type:_0x34de7d,subType:_0xafb7ff})=>_0x27ad4e['type']==_0x34de7d&&_0x27ad4e['subType']==_0xafb7ff);if(_0xc5720d<0x0||_0x36af40<0x0)return!0x1;const _0x201b95=_0xd18018['getFirstRange'](),_0x3f691b=_0x27ad4e['getFirstRange']();if((0x0==_0xc5720d||0x1==_0xc5720d)&&0x2==_0x36af40&&_0x201b95['isIntersecting'](_0x3f691b))return!0x0;if(0x2==_0xc5720d&&0x3==_0x36af40){const _0xbbe934=_0x5de5f9['_findSuggestions'](_0x201b95,'insertion')['filter'](({suggestion:_0x2cb477,meta:_0x5e2eb4})=>_0x5e2eb4['isOwn']&&'convertInlineImageToBlock'==_0x2cb477['subType']);if(_0xbbe934['length']>0x1&&_0x3f691b['end']['isEqual'](_0x201b95['start']))return!0x0;if(0x1==_0xbbe934['length']&&(_0x201b95['start']['isEqual'](_0x3f691b['end'])||_0x201b95['end']['isEqual'](_0x3f691b['start'])))return!0x0;}if(0x3==_0xc5720d&&0x3==_0x36af40&&_0x201b95['start']['isBefore'](_0x3f691b['start'])){const _0x371ce5=_0x201b95['end']['nodeAfter'],_0x1267ae=_0x3f691b['start']['nodeBefore'];return _0x4ed9e1['isBlockImage'](_0x371ce5)&&_0x371ce5===_0x1267ae;}return!0x1;}function _0xc3a508(_0x364553,_0x3a57ee){return _0x34ef1e(_0x364553,_0x3a57ee)?[_0x364553,_0x3a57ee]:_0x34ef1e(_0x3a57ee,_0x364553)?[_0x3a57ee,_0x364553]:null;}_0x54c03a['plugins']['has']('ImageResize')&&(_0x5de5f9['enableDefaultAttributesIntegration']('resizeImage'),_0x5de5f9['registerBlockAttribute']('resizedWidth'),_0x5de5f9['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x33496f,'FORMAT_IMAGE_SIZE'))),_0x54c03a['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5de5f9['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5de5f9['registerBlockAttribute']('alt')),_0x5de5f9['descriptionFactory']['registerDescriptionCallback'](_0xefe559=>{if(!!_0x3afa51['find'](({type:_0x39e685,subType:_0x359168})=>_0xefe559['type']==_0x39e685&&_0xefe559['subType']==_0x359168))return _0xefe559['previous']?{}:void 0x0;}),_0x5de5f9['descriptionFactory']['registerDescriptionCallback'](_0x3b243f=>{if('insertion'==_0x3b243f['type']||'deletion'==_0x3b243f['type']){const _0x3c1242=_0x3b243f['getContainedElement']();if(_0x3c1242&&_0x3c1242['is']('element','caption'))return{'type':'insertion'==_0x3b243f['type']?'addObject':'removeObject','element':_0x3c1242,'quantity':0x1};}}),_0x5de5f9['descriptionFactory']['registerDescriptionCallback'](_0x1566ed=>'formatBlock'==_0x1566ed['type']&&'convertInlineImageToBlock'==_0x1566ed['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1566ed['type']&&'convertBlockImageToInline'==_0x1566ed['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5de5f9['descriptionFactory']['registerDescriptionCallback'](_0x9eca4e=>{if('attribute'!=_0x9eca4e['type'])return;const {data:_0x43c366}=_0x9eca4e;if(!_0x43c366||'alt'!=_0x43c366['key'])return;const _0x39c6ce=_0x43c366['newValue'];return _0x39c6ce?{'type':'format','content':o(_0x33496f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x39c6ce+'\x22')}:{'type':'format','content':o(_0x33496f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x155a88=this['editor'],_0x7ad5bd=_0x155a88['locale'];_0x155a88['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b885d=>{if('formatBlock'!=_0x1b885d['type']&&'formatInline'!=_0x1b885d['type'])return;const {data:_0x272058}=_0x1b885d;if(_0x272058){if('imageTextAlternative'==_0x272058['commandName']){const _0x3f6677=_0x272058['commandParams'][0x0]['newValue'];return _0x3f6677?{'type':'format','content':o(_0x7ad5bd,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3f6677+'\x22')}:{'type':'format','content':o(_0x7ad5bd,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x272058['commandName']){const _0x1e14a3=_0x272058['commandParams'][0x0]['width'];return _0x1e14a3?{'type':'format','content':o(_0x7ad5bd,'*Set\x20image\x20width:*\x20%0',_0x1e14a3)}:{'type':'format','content':o(_0x7ad5bd,'*Reset\x20image\x20width*')};}}});}}class st extends _0x407128{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x12fcac=this['editor']['locale'],_0x3404ba=this['editor']['plugins']['get']('TrackChangesEditing');_0x3404ba['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3404ba['registerBlockAttribute']('src'),_0x3404ba['descriptionFactory']['registerDescriptionCallback'](_0x22ecb8=>{if('attribute'!=_0x22ecb8['type'])return;const {data:_0x22c315}=_0x22ecb8;return _0x22c315&&'src'==_0x22c315['key']?_0x22c315['newValue']&&_0x22c315['oldValue']?{'type':'format','content':o(_0x12fcac,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x51124c=this['editor']['plugins']['get']('TrackChangesEditing');_0x51124c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x51124c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x51124c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x51124c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35fbf9=this['editor'],_0x1a22ea=_0x35fbf9['locale'];_0x35fbf9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36dfb6=>{if('formatBlock'!=_0x36dfb6['type']&&'formatInline'!=_0x36dfb6['type'])return;const {data:_0x57688f}=_0x36dfb6;if(!_0x57688f||'replaceImageSource'!=_0x57688f['commandName'])return;return{'type':'format','content':o(_0x1a22ea,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x407128{['afterInit'](){const _0xbb0dcb=this['editor'];if(!_0xbb0dcb['plugins']['has']('ImageStyleEditing'))return;const _0x49ee8d=_0xbb0dcb['plugins']['get']('TrackChangesEditing'),_0x138cf6=_0xbb0dcb['plugins']['get']('ImageUtils'),_0x27affe={};_0x49ee8d['enableCommand']('imageStyle',(_0x29bf51,_0x16ed0f)=>{const _0x4a4735=_0xbb0dcb['plugins']['get']('Users')['me'],_0x50de04=_0xbb0dcb['commands']['get']('imageStyle');let _0x51b8e1=_0x138cf6['getClosestSelectedImageElement'](_0xbb0dcb['model']['document']['selection']),_0x2e7052=_0xbb0dcb['model']['createRangeOn'](_0x51b8e1),_0x523cac=_0x50de04['value'];if(_0x523cac==_0x16ed0f['value'])return;const _0x4bfcd5={'commandName':'imageStyle','commandParams':[_0x16ed0f],'formatGroupId':_0x1fa7bb()};_0xbb0dcb['model']['change'](()=>{if(_0x49ee8d['getSuggestions']()['filter'](_0x3e5fc3=>_0x3e5fc3['isInContent']&&_0x4a4735==_0x3e5fc3['author']&&('formatBlock'==_0x3e5fc3['type']||'formatInline'==_0x3e5fc3['type'])&&('imageStylePreApply'==_0x3e5fc3['subType']||'imageStylePostApply'==_0x3e5fc3['subType'])&&_0x3e5fc3['getFirstRange']()['isEqual'](_0x2e7052))['forEach'](_0xab4f73=>_0x49ee8d['discardSuggestion'](_0xab4f73['head'])),_0x51b8e1=_0x138cf6['getClosestSelectedImageElement'](_0xbb0dcb['model']['document']['selection']),_0x2e7052=_0xbb0dcb['model']['createRangeOn'](_0x51b8e1),_0x50de04['refresh'](),_0xbb0dcb['commands']['get']('imageTypeInline')['refresh'](),_0xbb0dcb['commands']['get']('imageTypeBlock')['refresh'](),_0x523cac=_0x50de04['value'],_0x523cac!=_0x16ed0f['value'])return _0x138cf6['isInlineImage'](_0x51b8e1)&&_0x50de04['shouldConvertImageType'](_0x16ed0f['value'],_0x51b8e1)?(_0x29bf51({..._0x16ed0f,'setImageSizes':!0x1}),_0x51b8e1=_0x138cf6['getClosestSelectedImageElement'](_0xbb0dcb['model']['document']['selection']),void _0x49ee8d['markBlockFormat'](_0x51b8e1,{..._0x4bfcd5,'commandReversedParams':[{'value':_0x523cac||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x138cf6['isBlockImage'](_0x51b8e1)?_0x49ee8d['markBlockFormat'](_0x51b8e1,_0x4bfcd5,[],'imageStylePostApply'):_0x49ee8d['markInlineFormat'](_0x2e7052,_0x4bfcd5,'imageStylePostApply'));});});for(const _0x427bc4 of _0xbb0dcb['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x27affe[_0x427bc4['name']]=_0x427bc4['title']['toLowerCase']();_0x49ee8d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x49ee8d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x49ee8d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x49ee8d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x62b899])=>{_0x138cf6['setImageNaturalSizeAttributes'](_0x62b899['getContainedElement']());}),_0x49ee8d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x163045,_0x2c3598)=>{_0x49ee8d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x163045,{'commandName':_0x2c3598['commandName'],'commandParams':_0x2c3598['commandReversedParams']});}),_0x49ee8d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x10b893,_0xf915b6){if(_0x38d095(_0x10b893,_0xf915b6))return[_0x10b893,_0xf915b6];if(_0x38d095(_0xf915b6,_0x10b893))return[_0xf915b6,_0x10b893];return null;});const _0x4a12b2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x38d095(_0x3bb2d5,_0x473351){const _0x4d6c39=_0x4a12b2['findIndex'](({type:_0x14d652,subType:_0x177abf})=>_0x3bb2d5['type']==_0x14d652&&_0x3bb2d5['subType']==_0x177abf),_0x489cea=_0x4a12b2['findIndex'](({type:_0x1f4a56,subType:_0x5f1b47})=>_0x473351['type']==_0x1f4a56&&_0x473351['subType']==_0x5f1b47);if(_0x4d6c39<0x0||_0x489cea<0x0)return!0x1;const _0x2d7a1b=_0x3bb2d5['getFirstRange'](),_0x33c2da=_0x473351['getFirstRange']();if((0x0==_0x4d6c39||0x1==_0x4d6c39)&&0x2==_0x489cea&&_0x2d7a1b['isIntersecting'](_0x33c2da))return!0x0;if(0x2==_0x4d6c39&&0x3==_0x489cea){const _0x3fcf6a=_0x49ee8d['_findSuggestions'](_0x2d7a1b,'insertion')['filter'](({suggestion:_0x3565d9,meta:_0x2dc8f})=>_0x2dc8f['isOwn']&&'convertInlineImageToBlock'==_0x3565d9['subType']);if(_0x3fcf6a['length']>0x1&&_0x33c2da['end']['isEqual'](_0x2d7a1b['start']))return!0x0;if(0x1==_0x3fcf6a['length']&&(_0x2d7a1b['start']['isEqual'](_0x33c2da['end'])||_0x2d7a1b['end']['isEqual'](_0x33c2da['start'])))return!0x0;}if(0x3==_0x4d6c39&&0x3==_0x489cea&&_0x2d7a1b['start']['isBefore'](_0x33c2da['start'])){const _0xae0dd3=_0x2d7a1b['end']['nodeAfter'],_0x332e54=_0x33c2da['start']['nodeBefore'];return _0x138cf6['isBlockImage'](_0xae0dd3)&&_0xae0dd3===_0x332e54;}return!0x1;}_0xbb0dcb['model']['document']['registerPostFixer'](()=>{let _0x52a402=!0x1;const _0x35d369=Array['from'](_0xbb0dcb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4b98f2,data:_0x467540}of _0x35d369){const {group:_0x364761,type:_0x5508ee,subType:_0x47c639,id:_0x5e68c5}=_0x49ee8d['_splitMarkerName'](_0x4b98f2);if('suggestion'==_0x364761&&_0x49ee8d['hasSuggestion'](_0x5e68c5)){if('formatBlock'==_0x5508ee&&('imageStylePreApply'==_0x47c639||'imageStylePostApply'==_0x47c639)){const _0x80d47e=_0x49ee8d['getSuggestion'](_0x5e68c5);if(_0x467540['newRange']){const _0x4e6b2c=_0x80d47e['getFirstRange']()['getContainedElement']();if(_0x138cf6['isBlockImage'](_0x4e6b2c))continue;_0x49ee8d['discardSuggestion'](_0x80d47e),_0x52a402=!0x0;}}if('insertion'==_0x5508ee&&'imageCaption'==_0x47c639&&!_0x467540['newRange']){const _0x4c6e0a=_0x49ee8d['getSuggestion'](_0x5e68c5);_0x4c6e0a['next']&&_0x4c6e0a['next']['isInContent']&&(_0x49ee8d['discardSuggestion'](_0x4c6e0a['next']),_0x52a402=!0x0);}}}return _0x52a402;}),this['_registerLegacyDescription'](_0x27affe);}['_registerLegacyDescription'](_0x2a186c){const _0x3870a4=this['editor'],_0x3d985d=_0x3870a4['locale'];_0x3870a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20d0d3=>{if('formatBlock'!=_0x20d0d3['type']&&'formatInline'!=_0x20d0d3['type'])return;const {data:_0x4c6b8a}=_0x20d0d3;if(!_0x4c6b8a||'imageStyle'!=_0x4c6b8a['commandName'])return;const _0x2d34c9=_0x4c6b8a['commandParams'][0x0]['value'];return _0x24f467('side'===_0x2d34c9?o(_0x3d985d,'FORMAT_SIDE_IMAGE'):_0x2a186c[_0x2d34c9]||_0x2d34c9);function _0x24f467(_0xbe9d4f){return{'type':'format','content':o(_0x3d985d,'*Format:*\x20%0',_0xbe9d4f)};}});}}class ot extends _0x407128{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1ac551){super(_0x1ac551),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x351f43=this['editor'],_0x1eef76=_0x351f43['commands']['get']('importWord'),_0x15e5c9=_0x351f43['commands']['get']('trackChanges');_0x1eef76&&(_0x1eef76['on']('execute',(_0xca8a9a,[,_0x1cc3b7])=>{this['_trackChangesValueDuringImport']=_0x15e5c9['value'],_0x1cc3b7['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1eef76,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1eef76,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x15e5c9['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x351f43['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x419be7,_0x24e054){const {suggestions:_0x50a7e9}=_0x24e054,_0x22ddfa=this['editor']['commands']['get']('trackChanges'),_0x183ce8=_0x22ddfa['value'];this['_trackChangesValueDuringImport']!==_0x183ce8&&(_0x22ddfa['execute'](),this['_trackChangesExecuted']=!0x0),_0x50a7e9&&_0x50a7e9['forEach'](({id:_0x13e049,type:_0x4c2a19,author:_0x2863a3,created_at:_0x173b28})=>{const _0x44a1d5={'id':_0x13e049,'type':_0x4c2a19,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2863a3,'createdAt':_0x173b28?new Date(_0x173b28):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x44a1d5);});}}class rt extends _0x407128{['afterInit'](){const _0x48f756=this['editor'],_0x227abd=_0x48f756['plugins']['get']('TrackChangesEditing');if(_0x48f756['plugins']['has']('IndentEditing')&&(_0x227abd['enableCommand']('indent'),_0x227abd['enableCommand']('outdent')),_0x48f756['plugins']['has']('IndentBlock')){for(const _0x594424 of['indentBlock','outdentBlock'])_0x227abd['enableDefaultAttributesIntegration'](_0x594424);}const _0x5557d5=_0x48f756['locale'];_0x227abd['registerBlockAttribute']('blockIndent'),_0x227abd['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5557d5,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f794e=this['editor'],_0x39e09f=_0x2f794e['locale'],_0x15f396=_0x2f794e['plugins']['get']('TrackChangesEditing');_0x15f396['descriptionFactory']['registerDescriptionCallback'](_0x3d0c55=>{if('formatBlock'!=_0x3d0c55['type'])return;const {data:_0x195d26}=_0x3d0c55;if(!_0x195d26)return;if('indentBlock'!=_0x195d26['commandName']&&'outdentBlock'!=_0x195d26['commandName'])return;const _0x5e53e6=_0x3d0c55['getItems']()[0x0],_0x29fe3a=_0x15f396['descriptionFactory']['getItemLabel'](_0x5e53e6);return'indentBlock'==_0x195d26['commandName']?{'type':'format','content':o(_0x39e09f,'*Indent:*\x20%0',_0x29fe3a)}:'outdentBlock'==_0x195d26['commandName']?{'type':'format','content':o(_0x39e09f,'*Outdent:*\x20%0',_0x29fe3a)}:void 0x0;});}}class at extends _0x407128{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x407128{['afterInit'](){const _0x20d233=this['editor'];if(!_0x20d233['plugins']['has']('LinkEditing'))return;const _0x4efaf2=_0x20d233['plugins']['get']('TrackChangesEditing'),_0x25ecea=_0x20d233['commands']['get']('link');_0x4efaf2['enableDefaultAttributesIntegration']('link'),_0x4efaf2['enableDefaultAttributesIntegration']('unlink'),_0x4efaf2['registerInlineAttribute']('linkHref');for(const _0x276e0a of _0x25ecea['manualDecorators'])_0x4efaf2['registerInlineAttribute'](_0x276e0a['id']),_0x4efaf2['descriptionFactory']['registerAttributeLabel'](_0x276e0a['id'],'link\x20('+_0x276e0a['label']['toLowerCase']()+')');_0x4efaf2['descriptionFactory']['registerDescriptionCallback'](_0x32d8f4=>{if('attribute'!=_0x32d8f4['type'])return;const {data:_0x19fd0b}=_0x32d8f4;if(!_0x19fd0b||'linkHref'!=_0x19fd0b['key'])return;const _0x2fedd8=_0x19fd0b['newValue'],_0x3ddd04=_0x20d233['locale'];return{'type':'format','content':null==_0x2fedd8?o(_0x3ddd04,'*Remove\x20link*'):o(_0x3ddd04,'*Set\x20link:*\x20%0','\x22'+_0x2fedd8+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4456e2=this['editor'],_0x1f6012=_0x4456e2['locale'];_0x4456e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x119a60=>{if('formatInline'!=_0x119a60['type'])return;const {data:_0x43e194}=_0x119a60;if(_0x43e194){if('link'==_0x43e194['commandName']){const _0x25bea2=_0x43e194['commandParams'][0x0];return{'type':'format','content':o(_0x1f6012,'*Set\x20link:*\x20%0','\x22'+_0x25bea2+'\x22')};}return'unlink'==_0x43e194['commandName']?{'type':'format','content':o(_0x1f6012,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x407128{['afterInit'](){const _0x18f34a=this['editor'],_0x1093a3=_0x18f34a['locale'];if(!_0x18f34a['plugins']['has']('LegacyListEditing'))return;const _0x2ccad4=_0x18f34a['plugins']['get']('TrackChangesEditing'),_0x4d0142=_0x18f34a['plugins']['has']('LegacyTodoListEditing');function _0xcb2709(_0x2eb662){return()=>{const _0x217d6b=_0x18f34a['model']['document']['selection'],_0x4eda7a=_0x18f34a['commands']['get'](_0x2eb662);if(_0x4eda7a['value'])return void _0x18f34a['execute']('paragraph',{});const _0x2dd2ae=_0x2eb662['slice'](0x0,-0x4),_0x54e8da=function(_0x5541ec,_0x44ad15,_0x3152ba){let _0x1c968f=Array['from'](_0x5541ec)['filter'](_0x2902d4=>function(_0x37e2d0,_0x55c84c){return _0x55c84c['checkChild'](_0x37e2d0['parent'],'listItem')&&!_0x55c84c['isObject'](_0x37e2d0);}(_0x2902d4,_0x3152ba));_0x1c968f=_0x1c968f['filter'](_0x332c69=>!_0x332c69['is']('element','listItem')||_0x332c69['getAttribute']('listType')!=_0x44ad15);const _0x5bc021=new Set();for(const _0x3f3ce3 of _0x1c968f)_0x3f3ce3['is']('element','listItem')?_0x5bc021['add'](me(_0x3f3ce3)):_0x5bc021['add'](_0x3f3ce3);return Array['from'](_0x5bc021);}(_0x217d6b['getSelectedBlocks'](),_0x2dd2ae,_0x18f34a['model']['schema']);_0x18f34a['model']['change'](()=>{for(const _0x4ab25f of _0x54e8da)_0x2ccad4['markBlockFormat'](_0x4ab25f,{'commandName':_0x2eb662,'commandParams':[{'forceValue':!_0x4eda7a['value']}],'formatGroupId':'blockName'},fe(_0x4ab25f));});};}function _0x31be71(_0x1b4663){return()=>{const _0x1b52aa=function(_0x1186be){let _0x5b7f85=Array['from'](_0x1186be);const _0x334d87=_0x5b7f85['findIndex'](_0x49a777=>'listItem'!=_0x49a777['name']);return _0x334d87>-0x1&&(_0x5b7f85=_0x5b7f85['slice'](0x0,_0x334d87)),_0x5b7f85;}(_0x18f34a['model']['document']['selection']['getSelectedBlocks']()),_0x2fc654=_0x18f34a['model']['createRange'](_0x18f34a['model']['createPositionAt'](_0x1b52aa[0x0],'before'),_0x18f34a['model']['createPositionAt'](_0x1b52aa[_0x1b52aa['length']-0x1],'end'));_0x18f34a['model']['change'](()=>{_0x2ccad4['markBlockFormat'](_0x2fc654,{'commandName':_0x1b4663,'commandParams':[],'formatGroupId':'listIndent'},function(_0xf9569d){const _0x2409df=new Set();for(const _0x338dde of _0xf9569d){let _0x17bcd3=_0x338dde['nextSibling'];for(;_0x17bcd3&&_0x17bcd3['getAttribute']('listIndent')>_0x338dde['getAttribute']('listIndent');)_0x2409df['add'](_0x17bcd3),_0x17bcd3=_0x17bcd3['nextSibling'];}return Array['from'](_0x2409df);}(_0x1b52aa));});};}_0x2ccad4['enableCommand']('numberedList',_0xcb2709('numberedList')),_0x2ccad4['enableCommand']('bulletedList',_0xcb2709('bulletedList')),_0x4d0142&&_0x2ccad4['enableCommand']('todoList',_0xcb2709('todoList')),_0x2ccad4['enableCommand']('indentList',_0x31be71('indentList')),_0x2ccad4['enableCommand']('outdentList',_0x31be71('outdentList')),_0x4d0142&&_0x2ccad4['enableCommand']('checkTodoList',()=>{const _0x2445d4=_0x18f34a['commands']['get']('checkTodoList'),_0x343797=Array['from'](_0x2445d4['_selectedElements']);_0x343797['filter'](_0x2bd168=>_0x2bd168['getAttribute']('todoListChecked')!=_0x2445d4['value']),_0x18f34a['model']['change'](()=>{for(const _0x37554e of _0x343797)_0x2ccad4['markBlockFormat'](_0x37554e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2445d4['value']}]});});}),_0x2ccad4['descriptionFactory']['registerElementLabel']('listItem',_0x2361d6=>o(_0x1093a3,'ELEMENT_LIST_ITEM',_0x2361d6)),_0x2ccad4['descriptionFactory']['registerDescriptionCallback'](_0x50c8bf=>{if('formatBlock'!=_0x50c8bf['type']&&'formatInline'!=_0x50c8bf['type'])return;const {data:_0xf5220e}=_0x50c8bf;if(_0xf5220e){if('numberedList'==_0xf5220e['commandName']||'bulletedList'==_0xf5220e['commandName']||'todoList'==_0xf5220e['commandName'])switch(_0xf5220e['commandName']['replace']('List','')){case'bulleted':return _0x5b2d0f(o(_0x1093a3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5b2d0f(o(_0x1093a3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5b2d0f(o(_0x1093a3,'ELEMENT_TODO_LIST'));}if('indentList'==_0xf5220e['commandName'])return{'type':'format','content':o(_0x1093a3,'*Indent:*\x20%0',o(_0x1093a3,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xf5220e['commandName'])return{'type':'format','content':o(_0x1093a3,'*Outdent:*\x20%0',o(_0x1093a3,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xf5220e['commandName'])return _0xf5220e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1093a3,'*Check\x20item*')}:{'type':'format','content':o(_0x1093a3,'*Uncheck\x20item*')};}function _0x5b2d0f(_0x5aaf9e){return{'type':'format','content':o(_0x1093a3,'*Change\x20to:*\x20%0',_0x5aaf9e)};}});}}function me(_0x3363ef){const _0x55d890=_0x3363ef['getAttribute']('listIndent');if(0x0==_0x55d890)return _0x3363ef;let _0x2a9dd6=_0x3363ef;for(;_0x3363ef['previousSibling']&&_0x3363ef['previousSibling']['is']('element','listItem');){const _0x4c7f3c=_0x3363ef['previousSibling']['getAttribute']('listIndent');if(_0x4c7f3c==_0x55d890)_0x2a9dd6=_0x3363ef['previousSibling'];else{if(_0x4c7f3c<_0x55d890)break;}_0x3363ef=_0x3363ef['previousSibling'];}return _0x2a9dd6;}function fe(_0x56480e){const _0xf74406=[];if(_0x56480e['is']('element','listItem')&&_0x56480e['getAttribute']('listIndent')>0x0){let _0x1a06de=_0x56480e['nextSibling'];for(;_0x1a06de&&'listItem'==_0x1a06de['name']&&_0x1a06de['getAttribute']('listIndent')==_0x56480e['getAttribute']('listIndent');)_0xf74406['push'](_0x1a06de),_0x1a06de=_0x1a06de['nextSibling'];}return _0xf74406;}class K extends _0x407128{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4e3eac=this['editor']['config']['get']('list.properties'),_0x2b9fed=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e3eac['styles']&&_0x2b9fed['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4e3eac['reversed']&&_0x2b9fed['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4e3eac['startIndex']&&_0x2b9fed['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2b9fed['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5ab485,_0x133fc4={}){const _0x21e8d7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2409e5=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x21e8d7['markMultiRangeBlockFormat'](_0x2409e5,{'commandName':'listStyle','commandParams':[{'type':_0x133fc4['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x334d30,_0xba1eeb={}){const _0x4cc9ee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x376fb0=this['_getSuggestionBlocks'](_0xdece78=>_0xdece78['is']('element','listItem')&&'numbered'===_0xdece78['getAttribute']('listType'));if(_0x376fb0['length']<0x1)return;const _0x59114d=_0x376fb0['map'](_0x321473=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x321473,'before'),this['editor']['model']['createPositionAt'](_0x321473,0x0)));this['editor']['model']['change'](()=>{_0x4cc9ee['markMultiRangeBlockFormat'](_0x59114d,{'commandName':'listReversed','commandParams':[{'reversed':_0xba1eeb['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2371e1,_0x2eb611={}){const _0x596b7e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3765a5=this['_getSuggestionBlocks'](_0x2de99a=>_0x2de99a['is']('element','listItem')&&'numbered'===_0x2de99a['getAttribute']('listType'));if(_0x3765a5['length']<0x1)return;const _0x2e0695=_0x3765a5['map'](_0x28d7c1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x28d7c1,'before'),this['editor']['model']['createPositionAt'](_0x28d7c1,0x0)));this['editor']['model']['change'](()=>{_0x596b7e['markMultiRangeBlockFormat'](_0x2e0695,{'commandName':'listStart','commandParams':[{'startIndex':_0x2eb611['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5c843b){if('formatBlock'!=_0x5c843b['type']&&'formatInline'!=_0x5c843b['type'])return;const _0x538255=this['editor']['locale'],{data:_0x1ec376}=_0x5c843b;if(!_0x1ec376)return;let _0x14a502,_0x5c2441;switch(_0x1ec376['commandName']){case'listStyle':_0x14a502='*Change\x20to:*\x20%0',_0x5c2441={'type':'format','content':o(_0x538255,_0x14a502,o(_0x538255,this['_getTranslationKeyForListStyle'](_0x1ec376['commandParams'][0x0]['type'])))};break;case'listReversed':_0x14a502=_0x1ec376['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5c2441={'type':'format','content':o(_0x538255,_0x14a502)};break;case'listStart':_0x14a502='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5c2441={'type':'format','content':o(_0x538255,_0x14a502,_0x1ec376['commandParams'][0x0]['startIndex'])};}return _0x5c2441;}['_getSuggestionBlocksForListStyle'](){const _0x497e56=this['editor']['plugins']['get']('LegacyListUtils');let _0x580f1e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x580f1e[0x0]?.['is']('element','listItem')&&_0x580f1e['unshift'](..._0x497e56['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x580f1e[_0x580f1e['length']-0x1]?.['is']('element','listItem')&&_0x580f1e['push'](..._0x497e56['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x580f1e=[...new Set(_0x580f1e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x580f1e=_0x580f1e['filter'](_0x4c0824=>_0x4c0824['is']('element','listItem'))),_0x580f1e;}['_getSuggestionBlocks'](_0x518c7f){const _0x1c24bc=this['editor']['plugins']['get']('LegacyListUtils');let _0x2a8f4c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x518c7f)['map'](_0x1a642f=>{const _0x304e2a=this['editor']['model']['createPositionAt'](_0x1a642f,0x0);return[..._0x1c24bc['getSiblingNodes'](_0x304e2a,'backward'),..._0x1c24bc['getSiblingNodes'](_0x304e2a,'forward')];})['flat']();return _0x2a8f4c=[...new Set(_0x2a8f4c)],_0x2a8f4c;}['_getTranslationKeyForListStyle'](_0x2da168){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2da168)||'default')['toUpperCase']()+'_LIST_'+_0x2da168['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x407128{['afterInit'](){const _0x454530=this['editor'];if(!_0x454530['plugins']['has']('MediaEmbedEditing'))return;const _0x128e06=_0x454530['plugins']['get']('TrackChangesEditing'),_0x46b6d9=_0x454530['locale'];_0x128e06['enableCommand']('mediaEmbed'),_0x128e06['descriptionFactory']['registerElementLabel']('media',_0x24b18c=>o(_0x46b6d9,'ELEMENT_MEDIA',_0x24b18c)),_0x454530['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x20076d,{writer:_0x3a1b5f,options:_0xa803dd})=>{if(_0xa803dd['showSuggestionHighlights'])return _0x3a1b5f['createEmptyElement']('div');},'converterPriority':'high'}),_0x454530['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1c5ebe,_0x37920e,_0x183249)=>{_0x183249['options']['showSuggestionHighlights']&&_0x1c5ebe['stop']();},{'priority':'high'});}}class gt extends _0x407128{['afterInit'](){const _0x173016=this['editor'];_0x173016['plugins']['has']('MentionEditing')&&_0x173016['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x407128{['afterInit'](){const _0x13cc4e=this['editor'],_0x361803=_0x13cc4e['plugins']['get']('TrackChangesEditing');_0x13cc4e['plugins']['has']('MultiLevelList')&&(_0x361803['enableDefaultAttributesIntegration']('multiLevelList'),_0x361803['registerBlockAttribute']('listMarkerStyle'),_0x361803['descriptionFactory']['registerDescriptionCallback'](_0x516d61=>this['handleDescriptions'](_0x516d61)));}['handleDescriptions'](_0x28cf3c){const _0x2c9d44=this['editor']['locale'],{data:_0x33d98f}=_0x28cf3c,_0x3cd115={'type':'format','content':''};if(_0x33d98f&&'listMarkerStyle'==_0x33d98f['key']){if(!_0x33d98f['oldValue'])return{'type':'format','content':o(_0x2c9d44,'*Set\x20format:*\x20%0',o(_0x2c9d44,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x33d98f['newValue']+')'};if(!_0x33d98f['newValue']){let _0x5b86f4=_0x28cf3c['head'];for(;_0x5b86f4;){if(_0x5b86f4['data']&&'listType'==_0x5b86f4['data']['key']&&_0x5b86f4['data']['newValue'])return _0x3cd115;_0x5b86f4=_0x5b86f4['next'];}return{'type':'format','content':o(_0x2c9d44,'*Remove\x20format:*\x20%0',o(_0x2c9d44,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x33d98f['oldValue']+')'};}}}}class mt extends _0x407128{['afterInit'](){const _0x1ae04d=this['editor'];if(!_0x1ae04d['plugins']['has']('PageBreakEditing'))return;_0x1ae04d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x22a9a7=_0x1ae04d['plugins']['get']('TrackChangesEditing'),_0x4d9298=_0x1ae04d['locale'];_0x22a9a7['descriptionFactory']['registerElementLabel']('pageBreak',_0xbd1209=>o(_0x4d9298,'ELEMENT_PAGE_BREAK',_0xbd1209));}}class dt extends _0x407128{['afterInit'](){const _0x7b87b3=this['editor'];if(!_0x7b87b3['plugins']['has']('Paragraph'))return;const _0x3a7b84=_0x7b87b3['locale'],_0x278623=_0x7b87b3['plugins']['get']('TrackChangesEditing');_0x278623['descriptionFactory']['registerElementLabel']('paragraph',_0x1149ba=>o(_0x3a7b84,'ELEMENT_PARAGRAPH',_0x1149ba)),_0x278623['enableDefaultAttributesIntegration']('paragraph'),_0x278623['enableCommand']('insertParagraph'),_0x7b87b3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x7b87b3),{'priority':'highest'}),_0x7b87b3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x27cdd9,_0x147844,_0x1e72b0)=>{_0x1e72b0['options']['showSuggestionHighlights']&&nr(_0x7b87b3,{'showActiveMarker':!0x1})(_0x27cdd9,_0x147844,_0x1e72b0);},{'priority':'highest'});const _0x279f86=_0x278623['descriptionFactory'];_0x279f86['registerDescriptionCallback'](_0x5668cd=>{if('insertion'!==_0x5668cd['type'])return;const {start:_0x4a1b12,end:_0x4418e8}=_0x5668cd['getFirstRange']();if(!_0x4a1b12['isTouching'](_0x4418e8)||!_0x4a1b12['nodeAfter'])return;const _0x2b98a1=_0x7b87b3['model']['schema'],_0x45a0e6=_0x4a1b12['nodeAfter'];return _0x2b98a1['isBlock'](_0x45a0e6)&&!_0x2b98a1['isLimit'](_0x45a0e6)&&_0x2b98a1['checkChild'](_0x45a0e6,'$text')?{'type':'insertion','content':o(_0x3a7b84,'*Insert:*\x20%0',_0x279f86['getItemLabel'](_0x45a0e6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4652b4=this['editor'],_0x1bdde1=_0x4652b4['locale'];_0x4652b4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fe529=>{if('formatBlock'!=_0x2fe529['type'])return;const {data:_0x3e762f}=_0x2fe529;return _0x3e762f&&'paragraph'==_0x3e762f['commandName']?{'type':'format','content':o(_0x1bdde1,'*Change\x20to:*\x20%0',o(_0x1bdde1,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x58e416,{showActiveMarker:_0x3d086b=!0x0}={}){return(_0x1d20a3,_0x1f6636,_0x228026)=>{const _0x3ba829=_0x58e416['plugins']['get']('TrackChangesEditing'),_0x14869d=_0x1f6636['markerRange']['start'],_0x486cb7=_0x1f6636['markerRange']['end'],_0x355ab7=_0x58e416['model']['schema'];if(!_0x14869d['isTouching'](_0x486cb7)||!_0x14869d['nodeAfter'])return;const _0x5e830e=_0x14869d['nodeAfter'];if(_0x355ab7['isBlock'](_0x5e830e)&&!_0x355ab7['isLimit'](_0x5e830e)&&_0x355ab7['checkChild'](_0x5e830e,'$text')){if(!_0x228026['consumable']['consume'](_0x1f6636['markerRange'],_0x1d20a3['name']))return;const _0x223e48=_0x228026['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x1b5587=_0x228026['mapper']['toViewPosition'](_0x486cb7);_0x3d086b&&_0x3ba829['activeMarkers']['includes'](_0x1f6636['markerName'])&&_0x228026['writer']['addClass']('ck-suggestion-marker--active',_0x223e48),_0x228026['writer']['insert'](_0x1b5587,_0x223e48),_0x228026['mapper']['bindElementToMarker'](_0x223e48,_0x1f6636['markerName']);}};}class pt extends _0x407128{['afterInit'](){const _0x599c04=this['editor'];if(!_0x599c04['plugins']['has']('RemoveFormatEditing'))return;_0x599c04['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30d192=this['editor'];_0x30d192['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52e13a=>{if('formatBlock'!=_0x52e13a['type']&&'formatInline'!=_0x52e13a['type'])return;const {data:_0x1f5fe0}=_0x52e13a;return _0x1f5fe0&&'removeFormat'==_0x1f5fe0['commandName']?{'type':'format','content':o(_0x30d192['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x407128{['afterInit'](){const _0x22f9f2=this['editor'];if(!_0x22f9f2['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x54a173=_0x22f9f2['plugins']['get']('TrackChangesEditing');_0x54a173['enableCommand']('goToPreviousRestrictedEditingException'),_0x54a173['enableCommand']('goToNextRestrictedEditingException');const _0x353a15=_0x22f9f2['plugins']['get']('RestrictedEditingModeEditing');_0x353a15['enableCommand']('trackChanges'),_0x353a15['enableCommand']('acceptSuggestion'),_0x353a15['enableCommand']('discardSuggestion'),_0x353a15['enableCommand']('acceptAllSuggestions'),_0x353a15['enableCommand']('discardAllSuggestions'),_0x353a15['enableCommand']('acceptSelectedSuggestions'),_0x353a15['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x407128{static get['requires'](){return[_0x460b8b];}['init'](){const _0xf1b7f2=this['editor'],_0x563b14=_0xf1b7f2['plugins']['get']('TrackChangesEditing');_0x563b14['enableCommand']('shiftEnter'),_0xf1b7f2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0xf1b7f2),{'priority':'high'}),_0xf1b7f2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0xf1b7f2),{'priority':'high'}),_0xf1b7f2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x245a05,_0x4c6d10,_0x57a4ef)=>{_0x57a4ef['options']['showSuggestionHighlights']&&de(_0xf1b7f2,{'showActiveMarker':!0x1})(_0x245a05,_0x4c6d10,_0x57a4ef);}),_0x563b14['descriptionFactory']['registerElementLabel']('softBreak',_0x3bfc73=>o(_0xf1b7f2['locale'],'ELEMENT_LINE_BREAK',_0x3bfc73));}}function de(_0x246670,{showActiveMarker:_0x501139=!0x0}={}){return(_0x9fd5e4,_0x116196,_0x16c258)=>{const _0x28d192=_0x246670['plugins']['get']('TrackChangesEditing');if(!_0x16c258['consumable']['test'](_0x116196['markerRange'],_0x9fd5e4['name']))return;const _0x2c6fc9=_0x246670['model'];for(const _0x422deb of _0x116196['markerRange']['getItems']()){if(!_0x422deb['is']('element','softBreak'))continue;const _0x218ec9='deletion'==_0x116196['markerName']['split'](':')[0x1]?'merge':'split',_0x318530=_0x16c258['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x218ec9}),_0x410575=_0x16c258['mapper']['toViewPosition'](_0x2c6fc9['createPositionBefore'](_0x422deb));_0x501139&&_0x28d192['activeMarkers']['includes'](_0x116196['markerName'])&&_0x16c258['writer']['addClass']('ck-suggestion-marker--active',_0x318530),_0x16c258['writer']['insert'](_0x410575,_0x318530),_0x16c258['mapper']['bindElementToMarker'](_0x318530,_0x116196['markerName']);}};}class wt extends _0x407128{['afterInit'](){const _0x120001=this['editor'],_0x1d9c9a=_0x120001['model'],_0x5ebb44=_0x120001['locale'];if(!_0x120001['plugins']['has']('StandardEditingModeEditing'))return;const _0x2e9c23=_0x120001['plugins']['get']('TrackChangesEditing'),_0x415755='restrictedEditingException',_0x316472=_0x120001['commands']['get'](_0x415755);_0x2e9c23['enableCommand'](_0x415755,(_0x1ba5ff,_0x535e97={})=>{const _0x194656=_0x1d9c9a['document']['selection'];if(_0x194656['isCollapsed'])return void _0x1ba5ff(_0x535e97);const _0x53562e=void 0x0!==_0x535e97['forceValue']?_0x535e97['forceValue']:!_0x316472['value'];_0x1d9c9a['change'](()=>{const _0x39d737=Array['from'](_0x194656['getRanges']());for(const _0x4be1df of _0x39d737){const _0x91a25d=_0x53562e?[_0x4be1df]:io(_0x415755,_0x4be1df,_0x1d9c9a);for(const _0x4b90a3 of _0x91a25d)_0x2e9c23['markInlineFormat'](_0x4b90a3,{'commandName':_0x415755,'commandParams':[{'forceValue':_0x53562e}]});}});}),_0x2e9c23['descriptionFactory']['registerDescriptionCallback'](_0x4a71ea=>{if('formatBlock'!=_0x4a71ea['type']&&'formatInline'!=_0x4a71ea['type'])return;const {data:_0x5afd2f}=_0x4a71ea;return _0x5afd2f&&_0x5afd2f['commandName']==_0x415755?_0x5afd2f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5ebb44,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5ebb44,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x407128{['afterInit'](){const _0x421c52=this['editor'];if(!_0x421c52['plugins']['has']('Style')||!_0x421c52['plugins']['has']('DataSchema'))return;const _0x3eada4=_0x421c52['plugins']['get']('TrackChangesEditing'),_0x376096=_0x421c52['locale'],_0x299152=_0x421c52['config']['get']('style')||{},_0xa7ac10=_0x421c52['plugins']['get']('GeneralHtmlSupport'),_0x3c0223=_0x421c52['plugins']['get']('StyleUtils')['normalizeConfig'](_0x421c52['plugins']['get']('DataSchema'),_0x299152['definitions']);_0x3eada4['enableDefaultAttributesIntegration']('style');const _0x4a186b=new Set();for(const _0x55e871 of _0x3c0223['block']){const _0x3968c2=_0xa7ac10['getGhsAttributeNameForElement'](_0x55e871['element']);_0x4a186b['add'](_0x3968c2);}const _0x6e26b9=new Set();for(const _0x1f7d8d of _0x3c0223['inline']){const _0x305f86=_0xa7ac10['getGhsAttributeNameForElement'](_0x1f7d8d['element']);_0x6e26b9['add'](_0x305f86);for(const _0x3a40cc of _0x1f7d8d['ghsAttributes'])_0x6e26b9['add'](_0x3a40cc);}for(const _0x23e6e0 of _0x4a186b)_0x3eada4['registerBlockAttribute'](_0x23e6e0),_0x3eada4['descriptionFactory']['registerAttributeLabel'](_0x23e6e0,o(_0x376096,'FORMAT_STYLE'));for(const _0x136565 of _0x6e26b9)_0x3eada4['registerInlineAttribute'](_0x136565),_0x3eada4['descriptionFactory']['registerAttributeLabel'](_0x136565,o(_0x376096,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5eb105=this['editor'],_0x1a8aff=_0x5eb105['locale'];_0x5eb105['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ddc68=>{if('formatBlock'!=_0x1ddc68['type']&&'formatInline'!=_0x1ddc68['type'])return;const {data:_0xb69958}=_0x1ddc68;return _0xb69958&&'style'===_0xb69958['commandName']?_0xb69958['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1a8aff,'*Set\x20format:*\x20%0',_0xb69958['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1a8aff,'*Remove\x20format:*\x20%0',_0xb69958['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x407128{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x213583){super(_0x213583),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x543151=this['editor'],_0xf24013=_0x543151['model']['document']['selection'];if(!_0x543151['plugins']['has']('TableEditing'))return;const _0x516ffb=_0x543151['locale'],_0x18b18f=_0x543151['plugins']['get']('TrackChangesEditing'),_0xee801e=_0x543151['plugins']['get']('TableUtils');_0x18b18f['descriptionFactory']['registerElementLabel']('table',_0x231be8=>o(_0x516ffb,'ELEMENT_TABLE',_0x231be8)),this['_setupColumnsRowsFixing'](),_0x18b18f['enableCommand']('insertTable'),_0x18b18f['enableCommand']('selectTableRow'),_0x18b18f['enableCommand']('selectTableColumn');for(const _0x48b597 of['insertTableRowAbove','insertTableRowBelow']){const _0x2b4660=_0x543151['commands']['get'](_0x48b597);_0x18b18f['enableCommand'](_0x48b597,_0x1ed74f=>{_0x543151['model']['change'](_0x4649b4=>{_0x1ed74f();const _0x4d962c='above'===_0x2b4660['order'],_0x535805=_0xee801e['getSelectionAffectedTableCells'](_0xf24013),_0x23a43b=_0xee801e['getRowIndexes'](_0x535805),_0x5a0465=_0x4d962c?_0x23a43b['first']-0x1:_0x23a43b['last']+0x1,_0x10a1c6=_0x535805[0x0]['findAncestor']('table'),_0x257a59=_0xee801e['createTableWalker'](_0x10a1c6,{'startRow':_0x5a0465,'endRow':_0x5a0465}),_0x548c7d=Array['from'](_0x257a59)['map'](_0x7a13cc=>_0x4649b4['createRangeOn'](_0x7a13cc['cell']));_0x18b18f['markMultiRangeInsertion'](_0x548c7d,'tableRow');});});}for(const _0x1e7f72 of['insertTableColumnLeft','insertTableColumnRight']){const _0x113b71=_0x543151['commands']['get'](_0x1e7f72);_0x18b18f['enableCommand'](_0x1e7f72,_0x3e1b23=>{_0x543151['model']['change'](_0x3df253=>{_0x3e1b23();const _0x4044ea='left'===_0x113b71['order'],_0xd57e08=_0xee801e['getSelectionAffectedTableCells'](_0xf24013),_0x112ce4=_0xee801e['getColumnIndexes'](_0xd57e08),_0x40ec4b=_0x4044ea?_0x112ce4['first']-0x1:_0x112ce4['last']+0x1,_0x205d6e=_0xd57e08[0x0]['findAncestor']('table'),_0xc03c78=_0xee801e['createTableWalker'](_0x205d6e,{'startRow':0x0,'column':_0x40ec4b,'includeAllSlots':!0x1}),_0x41aede=Array['from'](_0xc03c78)['map'](_0x121e6f=>_0x3df253['createRangeOn'](_0x121e6f['cell']));_0x18b18f['markMultiRangeInsertion'](_0x41aede,'tableColumn');});});}for(const _0x57bbd7 of['removeTableRow','removeTableColumn']){const _0x27d7a2=_0x57bbd7['substr'](0xb),_0x613327=_0x27d7a2['toLowerCase'](),_0x37dc4a=_0x613327['substr'](0x0,0x3)+'span',_0x269ac8='table'+_0x27d7a2,_0x2fa103='min'+_0x27d7a2,_0x1ea425='max'+_0x27d7a2;_0x18b18f['enableCommand'](_0x57bbd7,()=>{_0x543151['model']['change'](_0x10a531=>{const _0x34c68b=_0xee801e['getSelectionAffectedTableCells'](_0xf24013),_0x3a02f3=_0x34c68b[0x0]['findAncestor']('table');let _0x281c92;if('removeTableRow'==_0x57bbd7){const _0x4c8b68=_0xee801e['getRowIndexes'](_0x34c68b);_0x281c92={'startRow':_0x4c8b68['first'],'endRow':_0x4c8b68['last'],'includeAllSlots':!0x0};}else{const _0xd75b8d=_0xee801e['getColumnIndexes'](_0x34c68b);_0x281c92={'startColumn':_0xd75b8d['first'],'endColumn':_0xd75b8d['last'],'includeAllSlots':!0x0};}const _0x577308=_0xee801e['createTableWalker'](_0x3a02f3,_0x281c92),_0x241103=Array['from'](_0x577308)['map'](({cell:_0x29ceb9})=>_0x29ceb9),_0x1795c9=Ee(_0x241103['filter'](_0xb1beb6=>_0xb1beb6['hasAttribute'](_0x37dc4a))),_0x365657=Ee(_0x241103['filter'](_0x22ebe8=>!_0x22ebe8['hasAttribute'](_0x37dc4a)))['map'](_0x1b6b10=>_0x10a531['createRangeOn'](_0x1b6b10)),_0x3982e1=_0x18b18f['markMultiRangeDeletion'](_0x365657,_0x269ac8);if(_0x3982e1&&('tableRow'==_0x3982e1['subType']||'tableColumn'==_0x3982e1['subType'])){const _0x4c0d3b=this['_getSuggestionCoords'](_0x3982e1);for(const _0x546b94 of _0x1795c9){const _0x6f2e40=_0x10a531['createRangeOn'](_0x546b94),_0x39cbef=_0xee801e['getCellLocation'](_0x546b94),_0x48afb8=_0x546b94['getAttribute'](_0x37dc4a)-0x1,_0xe5bb51=_0x4c0d3b[_0x2fa103],_0x703962=_0x4c0d3b[_0x1ea425];_0xe5bb51<=_0x39cbef[_0x613327]&&_0x39cbef[_0x613327]+_0x48afb8<=_0x703962&&_0x3982e1['addRange'](_0x6f2e40);}}});});}function _0x134c84(_0x493af8){const _0x499a2f=Array['from'](_0xf24013['getRanges']())['map'](_0x1669cf=>_0x268b03['fromRange'](_0x1669cf));_0x543151['model']['change'](_0x4a38e7=>{const _0x24791b=_0x4a38e7['batch'];_0x493af8=_0x493af8['filter'](_0x3267da=>'$graveyard'!=_0x3267da['root']['rootName']),_0x4a38e7['setSelection'](_0x493af8),_0x543151['commands']['get']('removeTableRow')['refresh'](),_0x543151['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x543151['model']['enqueueChange'](()=>{_0x543151['model']['enqueueChange'](_0x24791b,_0x2d760e=>{const _0xc887d=_0x499a2f['filter'](_0xed530f=>'$graveyard'!=_0xed530f['root']['rootName']);_0xc887d['length']>0x0&&_0x2d760e['setSelection'](_0xc887d);for(const _0x1696d1 of _0x499a2f)_0x1696d1['detach']();});});});}function _0x1f2a20(_0x48327f){_0x543151['model']['change'](_0x133020=>{const _0x4db78d=Array['from'](_0xf24013['getRanges']())['map'](_0x3647da=>_0x268b03['fromRange'](_0x3647da)),_0x1f1ebd=[];for(const _0x17aa30 of _0x48327f)for(const _0x3cedc2 of _0x17aa30['getItems']({'shallow':!0x0}))_0x1f1ebd['push'](_0x3cedc2);for(const _0x5e1904 of _0x1f1ebd)'$graveyard'!=_0x5e1904['root']['rootName']&&(_0x133020['setSelection'](_0x133020['createPositionAt'](_0x5e1904,0x0)),_0x543151['commands']['get']('removeTableColumn')['refresh'](),_0x543151['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5a6c3a=_0x4db78d['filter'](_0x2dfe92=>'$graveyard'!=_0x2dfe92['root']['rootName']);_0x5a6c3a['length']>0x0&&_0x133020['setSelection'](_0x5a6c3a);for(const _0x34be66 of _0x4db78d)_0x34be66['detach']();});}function _0x22617f(_0x4bcc50,_0x3f816f){return _0x3f816f['every'](_0x5a8fae=>_0x4bcc50['some'](_0x27163d=>_0x27163d['end']['isEqual'](_0x5a8fae['start'])||_0x5a8fae['end']['isEqual'](_0x27163d['start'])));}function _0x4cfda1(_0x44a8be,_0xb9ddf9){return!_0x44a8be['some'](_0x3acc28=>_0xb9ddf9['some'](_0x6daf50=>_0x3acc28['isIntersecting'](_0x6daf50)))&&_0x44a8be['some'](_0x3dc5cd=>_0xb9ddf9['some'](_0x1c1465=>_0x3dc5cd['end']['isTouching'](_0x1c1465['start'])));}_0x543151['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3241d9,_0x339e32,_0x23ce95)=>{if(!_0x23ce95['options']['showSuggestionHighlights'])return;const _0x4eaa2f=_0x339e32['item'];if(!_0x4eaa2f)return;const _0x4c4403=_0x23ce95['mapper']['toViewElement'](_0x4eaa2f);function _0x21104c(_0x4725ee){return Array['isArray'](_0x4725ee)?_0x4725ee:[_0x4725ee];}_0x4c4403&&'tableCell'===_0x4eaa2f['name']&&_0x19fe05(_0x4c4403,_0x23ce95['writer'],(_0x1c0e74,_0xdccc7,_0x12fb29)=>_0x12fb29['addClass'](_0x21104c(_0xdccc7['classes']),_0x1c0e74),(_0x19f46d,_0x26f199,_0x2508fc)=>_0x2508fc['removeClass'](_0x21104c(_0x26f199['classes']),_0x19f46d));},{'priority':'highest'}),_0x18b18f['descriptionFactory']['registerDescriptionCallback'](_0x54dc9d=>{if('insertion'!=_0x54dc9d['type']&&'deletion'!=_0x54dc9d['type'])return;const _0x2753b7=_0x54dc9d['getContainedElement']();if(null!=_0x2753b7&&_0x2753b7['is']('element','table')){if('insertion'==_0x54dc9d['type']){const _0x21e1d0=_0x54dc9d['getItems']()['filter'](_0x40816a=>_0x40816a['is']('$textProxy'))['map'](_0x78d789=>_0x78d789['data']);if(_0x21e1d0['length'])return{'type':'insertion','content':o(_0x516ffb,'*Insert:*\x20%0',o(_0x516ffb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x21e1d0['join']('\x20')+'\x22'))};}if('deletion'==_0x54dc9d['type']){const _0x3dbdad=_0x54dc9d['getItems']()['filter'](_0x4ed927=>_0x4ed927['is']('$textProxy'))['map'](_0x1c969d=>_0x1c969d['data']);if(_0x3dbdad['length'])return{'type':'deletion','content':o(_0x516ffb,'*Remove:*\x20%0',o(_0x516ffb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3dbdad['join']('\x20')+'\x22'))};}}}),_0x18b18f['descriptionFactory']['registerDescriptionCallback'](_0x391d56=>{if('tableRow'==_0x391d56['subType']){const _0x33b27d=_0x391d56['getItems']()['filter'](_0x36372a=>_0x36372a['is']('$textProxy'))['map'](_0xe9637c=>_0xe9637c['data']),_0xfc85eb=this['_getSuggestionCoords'](_0x391d56),_0x3d92f1=_0xfc85eb['maxRow']-_0xfc85eb['minRow']+0x1;if('insertion'==_0x391d56['type'])return _0x33b27d['length']?{'type':'insertion','content':o(_0x516ffb,'*Insert:*\x20%0',o(_0x516ffb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3d92f1,'\x22'+_0x33b27d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x516ffb,'*Insert:*\x20%0',o(_0x516ffb,'ELEMENT_TABLE_ROW',_0x3d92f1))};if('deletion'==_0x391d56['type'])return _0x33b27d['length']?{'type':'deletion','content':o(_0x516ffb,'*Remove:*\x20%0',o(_0x516ffb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3d92f1,'\x22'+_0x33b27d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x516ffb,'*Remove:*\x20%0',o(_0x516ffb,'ELEMENT_TABLE_ROW',_0x3d92f1))};}if('tableColumn'==_0x391d56['subType']){const _0x1e99eb=_0x391d56['getItems']()['filter'](_0x3487bd=>_0x3487bd['is']('$textProxy'))['map'](_0x4257a1=>_0x4257a1['data']),_0x43d9cc=this['_getSuggestionCoords'](_0x391d56),_0x31b217=_0x43d9cc['maxColumn']-_0x43d9cc['minColumn']+0x1;if('insertion'==_0x391d56['type'])return _0x1e99eb['length']?{'type':'insertion','content':o(_0x516ffb,'*Insert:*\x20%0',o(_0x516ffb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x31b217,'\x22'+_0x1e99eb['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x516ffb,'*Insert:*\x20%0',o(_0x516ffb,'ELEMENT_TABLE_COLUMN',_0x31b217))};if('deletion'==_0x391d56['type'])return _0x1e99eb['length']?{'type':'deletion','content':o(_0x516ffb,'*Remove:*\x20%0',o(_0x516ffb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x31b217,'\x22'+_0x1e99eb['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x516ffb,'*Remove:*\x20%0',o(_0x516ffb,'ELEMENT_TABLE_COLUMN',_0x31b217))};}}),_0x18b18f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x134c84),_0x18b18f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x134c84),_0x18b18f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1f2a20),_0x18b18f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1f2a20),_0x18b18f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x22617f),_0x18b18f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x22617f),_0x18b18f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4cfda1),_0x18b18f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4cfda1);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1a2e6b=this['editor'],_0x28dfef=_0x1a2e6b['model']['document']['selection'];return(_0x12c02f,_0x5bbe10)=>{_0x1a2e6b['model']['change'](_0x485bb7=>{const {commandName:_0x5b4c31,commandParams:_0x2d854e}=_0x5bbe10;let _0x506626=_0x12c02f[0x0]['end']['nodeBefore'];_0x2d854e&&_0x2d854e[0x0]&&!0x1===_0x2d854e[0x0]['forceValue']&&(_0x506626=_0x12c02f[0x0]['start']['nodeAfter']);const _0x265c0a=_0x485bb7['createRangeIn'](_0x506626);if('$graveyard'==_0x265c0a['root']['rootName'])return;const _0x2321b4=Array['from'](_0x28dfef['getRanges']())['map'](_0x265951=>_0x268b03['fromRange'](_0x265951));_0x485bb7['setSelection'](_0x265c0a),_0x1a2e6b['commands']['get'](_0x5b4c31)['refresh'](),_0x2d854e['push']({'forceDefaultExecution':!0x0}),_0x1a2e6b['execute'](_0x5b4c31,..._0x2d854e);const _0x315a99=_0x2321b4['filter'](_0x15077a=>'$graveyard'!=_0x15077a['root']['rootName']);_0x315a99['length']>0x0&&_0x485bb7['setSelection'](_0x315a99);for(const _0x460340 of _0x2321b4)_0x460340['detach']();});};}['_getCoordsForCells'](_0x460595){const _0x351b66=this['editor']['plugins']['get']('TableUtils');let _0x45faa7=Number['MAX_SAFE_INTEGER'],_0x450bc9=Number['MIN_SAFE_INTEGER'],_0x1e39f3=Number['MAX_SAFE_INTEGER'],_0x3dfb73=Number['MIN_SAFE_INTEGER'];for(const _0x447646 of _0x460595){if('$graveyard'==_0x447646['root']['rootName'])continue;const {row:_0x39c953,column:_0x122fbb}=_0x351b66['getCellLocation'](_0x447646),_0x1cc016=_0x447646['hasAttribute']('rowspan')?_0x447646['getAttribute']('rowspan')-0x1:0x0,_0x84ba19=_0x447646['hasAttribute']('colspan')?_0x447646['getAttribute']('colspan')-0x1:0x0;_0x45faa7=_0x39c953<_0x45faa7?_0x39c953:_0x45faa7,_0x450bc9=_0x39c953+_0x1cc016>_0x450bc9?_0x39c953+_0x1cc016:_0x450bc9,_0x1e39f3=_0x122fbb<_0x1e39f3?_0x122fbb:_0x1e39f3,_0x3dfb73=_0x122fbb+_0x84ba19>_0x3dfb73?_0x122fbb+_0x84ba19:_0x3dfb73;}return{'minRow':_0x45faa7,'maxRow':_0x450bc9,'minColumn':_0x1e39f3,'maxColumn':_0x3dfb73};}['_setupColumnsRowsFixing'](){const _0x117cd3=this['editor'],_0x1bcff6=_0x117cd3['plugins']['get']('TrackChangesEditing'),_0x423367=_0x117cd3['plugins']['get']('TableUtils');_0x117cd3['model']['document']['on']('change:data',()=>{const _0x1c864a=Array['from'](_0x117cd3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x51c6e4,data:_0x4ae458}of _0x1c864a){const {group:_0x349a89,id:_0x1393c6,subType:_0x1d8ca4}=_0x1bcff6['_splitMarkerName'](_0x51c6e4);if('suggestion'!=_0x349a89)continue;if(null!=_0x4ae458['oldRange'])continue;const _0x44e1f9=_0x1bcff6['getSuggestion'](_0x1393c6);this['_tablePostFixingSubtypes']['includes'](_0x1d8ca4)&&this['_tableSuggestions']['add'](_0x44e1f9);}},{'priority':'low'});const _0x83accf=(_0x2fa18e,_0xcc1033)=>{let _0x36b7f3=!0x1;const _0x5a2b03=_0xcc1033['createRangeOn'](_0x2fa18e),_0x15c88d=_0x2fa18e['findAncestor']('table'),_0x4ea947=_0x423367['getCellLocation'](_0x2fa18e);for(const _0x249bfd of this['_tableSuggestions']){const _0x56b3a4=_0x249bfd['subType'],_0x397828=_0x56b3a4['startsWith']('tablePaste'),_0x2791f3=_0x56b3a4['substr'](_0x397828?0xa:0x5),_0x5371a5=_0x2791f3['toLowerCase'](),_0x52b31b=_0x5371a5['substr'](0x0,0x3)+'span',_0x1950c5='min'+_0x2791f3,_0x3d228f='max'+_0x2791f3;if(!_0x249bfd['isInContent'])continue;if(_0x15c88d!=_0x249bfd['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x249bfd['isIntersectingWithRange'](_0x5a2b03))continue;const _0x87bc31=_0x2fa18e['hasAttribute'](_0x52b31b)?_0x2fa18e['getAttribute'](_0x52b31b)-0x1:0x0,_0x53b341=this['_getSuggestionCoords'](_0x249bfd),_0x3ea865=_0x53b341[_0x1950c5],_0xcc97d0=_0x53b341[_0x3d228f];_0x3ea865<=_0x4ea947[_0x5371a5]&&_0x4ea947[_0x5371a5]+_0x87bc31<=_0xcc97d0&&(_0x249bfd['addRange'](_0x5a2b03),_0x36b7f3=!0x0);}return _0x36b7f3;};_0x117cd3['model']['document']['registerPostFixer'](_0xe08af3=>{let _0x82504b=!0x1;for(const _0xf3df8a of _0x117cd3['model']['document']['differ']['getChanges']())if('insert'==_0xf3df8a['type']){if('tableRow'==_0xf3df8a['name']){for(const _0x58991d of _0xf3df8a['position']['nodeAfter']['getChildren']())_0x82504b=_0x82504b||_0x83accf(_0x58991d,_0xe08af3);}else'tableCell'==_0xf3df8a['name']&&(_0x82504b=_0x82504b||_0x83accf(_0xf3df8a['position']['nodeAfter'],_0xe08af3));}return _0x82504b;});}['_getSuggestionCoords'](_0x34e0c6){return this['_getCoordsForCells'](_0x34e0c6['getRanges']()['map'](_0x189260=>_0x189260['start']['nodeAfter']));}}function Ee(_0x3aaebc){return Array['from'](new Set(_0x3aaebc)['values']());}class St extends _0x407128{static get['requires'](){return[jt];}['afterInit'](){const _0xae08ea=this['editor'],_0xfaf320=_0xae08ea['model']['document']['selection'],_0xbe580b=_0xae08ea['locale'];if(!_0xae08ea['plugins']['has']('TableEditing'))return;const _0x2c6a2a=_0xae08ea['plugins']['get']('TrackChangesEditing'),_0x27e182=_0xae08ea['plugins']['get']('TableUtils'),_0x4c0c58=_0xae08ea['plugins']['get'](jt);_0x4c0c58['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2c6a2a['enableCommand']('mergeTableCells',()=>{const _0x44e692=_0x27e182['getSelectionAffectedTableCells'](_0xae08ea['model']['document']['selection']);_0xae08ea['model']['change'](()=>{_0x2c6a2a['markMultiRangeBlockFormat'](_0x44e692,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xae08ea['commands']['get']('mergeTableCells')['on']('execute',(_0x5b31be,_0xd631eb)=>{_0xae08ea['commands']['get']('trackChanges')['value']&&(_0xd631eb['length']>0x0&&_0xd631eb[_0xd631eb['length']-0x1]&&_0xd631eb[_0xd631eb['length']-0x1]['forceDefaultExecution']||_0x2c6a2a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5b31be['stop']());},{'priority':'highest'});for(const _0x23a63a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x424780=_0xae08ea['commands']['get'](_0x23a63a);_0x2c6a2a['enableCommand'](_0x23a63a,()=>{const _0x2671a3=_0xae08ea['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x124914=>_0x124914['is']('element','tableCell')),_0x4fff6b=_0x424780['value'];_0xae08ea['model']['change'](()=>{_0x2c6a2a['markMultiRangeBlockFormat']([_0x2671a3,_0x4fff6b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2d4c25 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2ecf4b=_0xae08ea['commands']['get'](_0x2d4c25);_0x2c6a2a['enableCommand'](_0x2d4c25,()=>{const _0x534455=_0x27e182['getSelectionAffectedTableCells'](_0xae08ea['model']['document']['selection'])[0x0],_0x47940f=_0x534455['findAncestor']('table'),{column:_0x4f71cf,row:_0x393f1d}=_0x27e182['getCellLocation'](_0x534455);let _0x23d751=[];if('horizontally'==_0x2ecf4b['direction']){const _0x55d610=_0x27e182['createTableWalker'](_0x47940f,{'startRow':_0x393f1d,'endRow':_0x393f1d,'includeAllSlots':!0x0});_0x23d751=Array['from'](_0x55d610)['map'](_0x2e8020=>_0x2e8020['cell']);}else{const _0x178613=_0x27e182['createTableWalker'](_0x47940f,{'column':_0x4f71cf,'includeAllSlots':!0x0});_0x23d751=Array['from'](_0x178613)['map'](_0x180d94=>_0x180d94['cell']);}_0xae08ea['model']['change'](_0x13af3a=>{_0x2c6a2a['markBlockFormat'](_0x13af3a['createRangeOn'](_0x534455),{'commandName':_0x2d4c25,'commandParams':[]},_0x23d751,_0x2d4c25);});});}_0x2c6a2a['descriptionFactory']['registerDescriptionCallback'](_0x4fa933=>{if('formatBlock'!=_0x4fa933['type']&&'formatInline'!=_0x4fa933['type'])return;const {data:_0x3f3f9d}=_0x4fa933;return _0x3f3f9d&&'mergeTableCells'==_0x3f3f9d['commandName']?{'type':'format','content':o(_0xbe580b,'*Merge\x20cells*')}:void 0x0;}),_0x2c6a2a['descriptionFactory']['registerDescriptionCallback'](_0x39147d=>{if('formatBlock'!=_0x39147d['type']&&'formatInline'!=_0x39147d['type'])return;const {data:_0x4d75b7}=_0x39147d;return _0x4d75b7?'splitTableCellVertically'==_0x4d75b7['commandName']?{'type':'format','content':o(_0xbe580b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4d75b7['commandName']?{'type':'format','content':o(_0xbe580b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5d4f08=_0x4c0c58['_acceptFormatSuggestionCallbackFactory']();for(const _0x166ade of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2c6a2a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x166ade,'accept',_0x5d4f08);for(const _0x2afb0d of['splitTableCellVertically','splitTableCellHorizontally'])_0x2c6a2a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2afb0d,'accept',_0x5d4f08);_0x2c6a2a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3643d1=>{_0xae08ea['model']['change'](_0x2edc6a=>{const _0x990d99=Array['from'](_0xfaf320['getRanges']())['map'](_0x1771bb=>_0x268b03['fromRange'](_0x1771bb));_0x2edc6a['setSelection'](_0x3643d1),_0xae08ea['commands']['get']('mergeTableCells')['refresh'](),_0xae08ea['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1cc5c7=_0x990d99['filter'](_0x2209be=>'$graveyard'!=_0x2209be['root']['rootName']);_0x1cc5c7['length']>0x0&&_0x2edc6a['setSelection'](_0x1cc5c7);for(const _0x347a17 of _0x990d99)_0x347a17['detach']();});});for(const _0x4fc397 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1d80af=_0xae08ea['commands']['get'](_0x4fc397);_0x1d80af['on']('set:isEnabled',(_0xdc51f,_0x310e2a,_0x19a53b)=>{if(_0x19a53b){const _0x5040f2=_0xae08ea['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x25833c=>_0x25833c['is']('element','tableCell'));this['_areMergableCells'](_0x1d80af['value'],_0x5040f2)||(_0xdc51f['return']=!0x1,_0xdc51f['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3b6e27=this['editor']['commands']['get']('mergeTableCells'),_0x542d6d=this['editor']['plugins']['get']('TableUtils');if(!_0x3b6e27['isEnabled'])return!0x1;const _0x27d3e0=_0x542d6d['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x52f9d4 of _0x27d3e0)for(const _0x2adb08 of _0x27d3e0)if(_0x52f9d4!=_0x2adb08&&!this['_areMergableCells'](_0x52f9d4,_0x2adb08))return!0x1;return!0x0;}['_areMergableCells'](_0x4fb2e5,_0x393615){const _0x24eee1=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc8d5ab=this['editor']['model']['createRangeOn'](_0x4fb2e5),_0x21bcde=this['editor']['model']['createRangeOn'](_0x393615),_0x41f564=new Set(),_0x33ef50=new Set();for(const _0x1b85ec of _0x24eee1['getSuggestions']())if(('insertion'==_0x1b85ec['type']||'deletion'==_0x1b85ec['type']||'mergeTableCells'==_0x1b85ec['subType'])&&_0x1b85ec['isInContent']){for(const _0x1961b9 of _0x1b85ec['getRanges']())_0x1961b9['containsRange'](_0xc8d5ab,!0x0)&&_0x41f564['add'](_0x1b85ec['type']+':'+_0x1b85ec['author']['id']),_0x1961b9['containsRange'](_0x21bcde,!0x0)&&_0x33ef50['add'](_0x1b85ec['type']+':'+_0x1b85ec['author']['id']);}if(_0x41f564['size']!=_0x33ef50['size'])return!0x1;for(const _0x379ed1 of _0x41f564)if(!_0x33ef50['has'](_0x379ed1))return!0x1;return!0x0;}}class At extends _0x407128{static get['requires'](){return[jt];}['afterInit'](){const _0xc52f3a=this['editor'];if(!_0xc52f3a['plugins']['has']('TableEditing'))return;const _0x2501ba=_0xc52f3a['locale'],_0x100963=_0xc52f3a['plugins']['get']('TrackChangesEditing');_0x100963['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x100963['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x100963['registerBlockAttribute']('headingRows'),_0x100963['registerBlockAttribute']('headingColumns'),_0x100963['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2501ba,'FORMAT_HEADER_ROW')),_0x100963['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2501ba,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1d7d6d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x434422=this['editor']['plugins']['get']('TableUtils'),_0x20a3e1=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x137322({showActiveMarker:_0x3bd7db=!0x0,setDataAttribute:_0x3252bc=!0x0}={}){return(_0x2b7da1,_0x172ef3,_0x29fbfb)=>{const {type:_0x37032b,id:_0x23ff24}=_0x1d7d6d['_splitMarkerName'](_0x172ef3['markerName']),_0x34b100=_0x1d7d6d['getSuggestion'](_0x23ff24),_0x16b10c=_0x34b100['data'];if('formatBlock'!=_0x34b100['type']||!_0x16b10c||'setTableColumnHeader'!=_0x16b10c['commandName'])return;if(_0x172ef3['item'])return void _0x2b7da1['stop']();if(!_0x29fbfb['consumable']['consume'](_0x172ef3['markerRange'],_0x2b7da1['name']))return;const _0x1c2ea6=_0x172ef3['markerRange']['start']['nodeAfter'],_0x277540=_0x172ef3['markerRange']['end']['nodeBefore'],_0xfb0cf3=_0x1c2ea6['parent']['parent'],{column:_0x5e5fcd}=_0x434422['getCellLocation'](_0x1c2ea6),{column:_0x2f73e0}=_0x434422['getCellLocation'](_0x277540);for(let _0x354d2e=_0x5e5fcd;_0x354d2e<=_0x2f73e0;_0x354d2e++){const _0x5c0624=_0x434422['createTableWalker'](_0xfb0cf3,{'column':_0x354d2e,'includeAllSlots':!0x1});for(const _0xfb2f31 of _0x5c0624){const _0x58c49a=_0xfb2f31['cell'],_0x2cd4df=_0x29fbfb['mapper']['toViewElement'](_0x58c49a);_0x29fbfb['writer']['addClass']('ck-suggestion-marker-'+_0x37032b,_0x2cd4df),_0x3252bc&&_0x29fbfb['writer']['setAttribute']('data-suggestion',_0x23ff24,_0x2cd4df),_0x29fbfb['mapper']['bindElementToMarker'](_0x2cd4df,_0x172ef3['markerName']),_0x3bd7db&&(_0x1d7d6d['activeMarkers']['includes'](_0x172ef3['markerName'])?_0x29fbfb['writer']['addClass']('ck-suggestion-marker--active',_0x2cd4df):_0x29fbfb['writer']['removeClass']('ck-suggestion-marker--active',_0x2cd4df));}}};}_0x1d7d6d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x20a3e1),_0x1d7d6d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x20a3e1),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x137322(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xeebe8e,_0x447305,_0x48c848)=>{_0x48c848['options']['showSuggestionHighlights']&&_0x137322({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xeebe8e,_0x447305,_0x48c848);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x21bc09,_0x174be1,_0x2b587e)=>{const {type:_0x533487,id:_0xc734c3}=_0x1d7d6d['_splitMarkerName'](_0x174be1['markerName']),_0x3ed877=_0x1d7d6d['getSuggestion'](_0xc734c3),_0x39d4a9=_0x3ed877['data'];if('formatBlock'!=_0x3ed877['type']||!_0x39d4a9||'setTableColumnHeader'!=_0x39d4a9['commandName'])return;const _0x11badc=_0x2b587e['mapper']['markerNameToElements'](_0x174be1['markerName']);if(_0x11badc){for(const _0xd683c2 of _0x11badc)_0x2b587e['writer']['removeClass']('ck-suggestion-marker-'+_0x533487,_0xd683c2),_0x2b587e['writer']['removeClass']('ck-suggestion-marker--active',_0xd683c2),_0x2b587e['writer']['removeAttribute']('data-suggestion',_0xd683c2),_0x2b587e['mapper']['unbindElementFromMarkerName'](_0xd683c2,_0x174be1['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x225443=this['editor'],_0x3dac5e=_0x225443['locale'];function _0x5c066c(_0x4aa04f){return{'type':'format','content':o(_0x3dac5e,'*Format:*\x20%0',_0x4aa04f)};}_0x225443['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37b6f6=>{if('formatBlock'!=_0x37b6f6['type'])return;const {data:_0x44a850}=_0x37b6f6;if(_0x44a850){if('setTableRowHeader'==_0x44a850['commandName']){const _0x573a29=_0x44a850['commandParams'][0x0]['forceValue'];return _0x5c066c(o(_0x3dac5e,_0x573a29?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x44a850['commandName']){const _0x4e7d4c=_0x44a850['commandParams'][0x0]['forceValue'];return _0x5c066c(o(_0x3dac5e,_0x4e7d4c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x5e4c8f=>[_0x5e4c8f,null]));class It extends _0x407128{static get['requires'](){return[jt];}['afterInit'](){const _0x47cdb6=this['editor'];if(!_0x47cdb6['plugins']['has']('TableClipboard'))return;const _0x31869c=_0x47cdb6['plugins']['get']('TrackChangesEditing'),_0x435dfe=_0x47cdb6['plugins']['get']('TableUtils'),_0x271530=_0x47cdb6['plugins']['get'](jt),_0x1c1f7c=_0x47cdb6['plugins']['get']('TableClipboard');_0x271530['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x47cdb6['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x47cdb6['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3f89c5=null;_0x47cdb6['model']['on']('insertContent',(_0x9e7052,_0x1f4c7c)=>{const [_0x41d011,_0x5ef029]=_0x1f4c7c,_0x503250=_0x1f4c7c[_0x1f4c7c['length']-0x1];_0x503250&&_0x503250['forceDefaultExecution']||_0x31869c['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x43710d,_0x50db10,_0x5b6490,_0x5024ab,_0x53e10b){if(_0x50db10&&!_0x50db10['is']('documentSelection'))return!0x1;const _0xe24aec=_0x53e10b['getTableIfOnlyTableInContent'](_0x43710d,_0x5b6490);if(!_0xe24aec||!he(_0xe24aec,void 0x0,_0x5024ab))return!0x1;const _0x3d6270=_0x5024ab['getSelectionAffectedTableCells'](_0x5b6490['document']['selection']);if(!_0x3d6270['length'])return!0x1;const _0x5c3458=_0x3d6270[0x0]['findAncestor']('table'),_0x338a4d=_0x5024ab['getRowIndexes'](_0x3d6270),_0x1528d2=_0x5024ab['getColumnIndexes'](_0x3d6270),_0x4f6ab0={'startRow':_0x338a4d['first'],'endRow':_0x338a4d['last'],'startColumn':_0x1528d2['first'],'endColumn':_0x1528d2['last']};return 0x1==_0x3d6270['length']&&(_0x4f6ab0['endRow']+=_0x5024ab['getRows'](_0xe24aec)-0x1,_0x4f6ab0['endColumn']+=_0x5024ab['getColumns'](_0xe24aec)-0x1),he(_0x5c3458,_0x4f6ab0,_0x5024ab);}(_0x41d011,_0x5ef029,_0x47cdb6['model'],_0x435dfe,_0x1c1f7c)&&(_0x9e7052['stop'](),_0x3f89c5={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x47cdb6['model']['change'](()=>{_0x47cdb6['model']['insertContent'](_0x1f4c7c[0x0],_0x1f4c7c[0x1],_0x1f4c7c[0x2],{'forceDefaultExecution':!0x0});const _0x3bab8b=_0x1fa7bb(),{rowInsertionRanges:_0x2f4b1b,columnInsertionRanges:_0x2e59a9,insertionRanges:_0x22cecc,deletionRanges:_0x3862aa,cells:_0xa75737}=_0x3f89c5;_0x2f4b1b['length']&&_0x31869c['markMultiRangeInsertion'](_0x2f4b1b,'tablePasteRow',{'tablePasteChainId':_0x3bab8b}),_0x2e59a9['length']&&_0x31869c['markMultiRangeInsertion'](_0x2e59a9,'tablePasteColumn',{'tablePasteChainId':_0x3bab8b}),_0x22cecc['length']&&(_0x31869c['markMultiRangeInsertion'](_0x22cecc,'tablePaste',{'tablePasteChainId':_0x3bab8b,'skipNestingCheck':!0x0}),_0x22cecc['forEach'](_0x2841dd=>_0x2841dd['detach']?.())),_0x3862aa['length']&&(_0x31869c['markMultiRangeDeletion'](_0x3862aa,'tablePaste',{'tablePasteChainId':_0x3bab8b,'skipNestingCheck':!0x0}),_0x3862aa['forEach'](_0x3bff95=>_0x3bff95['detach']?.()));const _0x158775=_0x31869c['markMultiRangeBlockFormat'](_0xa75737['map'](({element:_0xba3ec5})=>_0xba3ec5),{'formatGroupId':_0x1fa7bb()},[],'tablePasteCell',{'tablePasteChainId':_0x3bab8b});if(_0x158775){const _0x33a2c4=_0x158775['getMarkers'](),_0x595ebb=[];for(const {element:_0x46594f,attributes:_0x40b987}of _0xa75737){if(!_0x40b987)continue;const _0x1da5d9=_0x47cdb6['model']['createRangeOn'](_0x46594f),_0x52a599=_0x33a2c4['find'](_0x28766a=>_0x28766a['getRange']()['isEqual'](_0x1da5d9));_0x52a599&&_0x595ebb['push']([_0x52a599['name'],_0x40b987]);}_0x595ebb['length']&&_0x158775['setAttribute']('markerAttributes',Object['fromEntries'](_0x595ebb));}_0x3f89c5=null;}));},{'priority':_0x746603['high']+0xa}),_0x47cdb6['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2cf79d,_0x470967)=>{const [_0x2132c5,_0x29f3c4,,_0x35fa10]=_0x470967;if(!_0x3f89c5)return;_0x2cf79d['stop']();const _0x1245d3=_0x2132c5['cell'],_0x108814=_0x29f3c4,_0x54ce65=Pe(_0x1245d3),_0x319b98=Pe(_0x108814);_0x2cf79d['return']=_0x1245d3;let _0x530ce8=null,_0x299837=null;if(_0x319b98||_0x54ce65){if(_0x54ce65&&!_0x319b98){_0x35fa10['remove'](_0x1245d3['getChild'](0x0));for(const _0x3bb745 of Array['from'](_0x108814['getChildren']()))_0x35fa10['insert'](_0x3bb745,_0x1245d3,'end');const _0x53a7da=_0x3f89c5['rowInsertionIndexes']['includes'](_0x2132c5['row']),_0x339dcf=_0x3f89c5['columnInsertionIndexes']['includes'](_0x2132c5['column']);_0x53a7da||_0x339dcf||(_0x530ce8=_0x268b03['fromRange'](_0x35fa10['createRangeIn'](_0x1245d3)));}else _0x319b98&&!_0x54ce65&&(_0x299837=_0x35fa10['createRangeIn'](_0x1245d3));}else{const _0x15c4cc=_0x35fa10['createElement']('tableCellSuggestion'),_0x211aa0=_0x35fa10['createElement']('tableCellSuggestion');_0x35fa10['wrap'](_0x35fa10['createRangeIn'](_0x1245d3),_0x211aa0),_0x35fa10['insert'](_0x15c4cc,_0x1245d3,0x0);for(const _0x35401d of Array['from'](_0x108814['getChildren']()))_0x35fa10['insert'](_0x35401d,_0x15c4cc,'end');_0x530ce8=_0x268b03['fromRange'](_0x35fa10['createRangeOn'](_0x15c4cc)),_0x299837=_0x268b03['fromRange'](_0x35fa10['createRangeOn'](_0x211aa0));}const _0x2853f8=Array['from'](_0x108814['getAttributes']())['filter'](([_0x43fa2e])=>ge['includes'](_0x43fa2e));_0x3f89c5['cells']['push']({'element':_0x1245d3,'attributes':_0x2853f8['length']?Object['fromEntries'](_0x2853f8):null}),_0x530ce8&&_0x3f89c5['insertionRanges']['push'](_0x530ce8),_0x299837&&_0x3f89c5['deletionRanges']['push'](_0x299837);},{'priority':'high'}),_0x435dfe['on']('insertColumns',(_0x298d30,_0x2ad8a0)=>{const [_0x280b3e,_0x3f8bea={}]=_0x2ad8a0;if(!_0x3f89c5)return;const _0x270608=_0x3f8bea['at']||0x0,_0x4f3c82=_0x3f8bea['columns']||0x1;_0x3f89c5['columnInsertionIndexes']=new Array(_0x4f3c82)['fill'](_0x270608)['map']((_0x5ab01a,_0x4224d2)=>_0x5ab01a+_0x4224d2);for(const {cell:_0x48ff5f}of _0x435dfe['createTableWalker'](_0x280b3e,{'startColumn':_0x270608,'endColumn':_0x270608+_0x4f3c82-0x1}))_0x3f89c5['columnInsertionRanges']['push'](_0x47cdb6['model']['createRangeOn'](_0x48ff5f));},{'priority':'low'}),_0x435dfe['on']('insertRows',(_0x1c64ef,_0x325108)=>{const [_0x3f312d,_0x549e4c={}]=_0x325108;if(!_0x3f89c5)return;const _0x399d9b=_0x549e4c['at']||0x0,_0x15b04d=_0x549e4c['rows']||0x1;_0x3f89c5['rowInsertionIndexes']=new Array(_0x15b04d)['fill'](_0x399d9b)['map']((_0x23a163,_0xbd5f70)=>_0x23a163+_0xbd5f70);for(const {cell:_0x2c817b}of _0x435dfe['createTableWalker'](_0x3f312d,{'startRow':_0x399d9b,'endRow':_0x399d9b+_0x15b04d-0x1}))_0x3f89c5['rowInsertionRanges']['push'](_0x47cdb6['model']['createRangeOn'](_0x2c817b));},{'priority':'low'}),_0x31869c['descriptionFactory']['registerDescriptionCallback'](_0x3633f5=>{if(_0x3633f5['subType']&&_0x3633f5['subType']['startsWith']('tablePaste'))return _0x3633f5['previous']?{}:{'type':'insertion','content':o(_0x47cdb6['locale'],'*Replace\x20table\x20cells*')};});const _0x25072b=()=>!0x1;for(const _0x4079f7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x31869c['_suggestionFactory']['registerCustomCallback']('insertion',_0x4079f7,'join',_0x25072b),_0x31869c['_suggestionFactory']['registerCustomCallback']('deletion',_0x4079f7,'join',_0x25072b),_0x31869c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4079f7,'join',_0x25072b);_0x31869c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x25072b),_0x31869c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x56324f,_0x1c0d91,_0x27bfde)=>{const _0x2bea57=_0x56324f['map'](_0x3a43b6=>_0x3a43b6['getContainedElement']())['filter'](_0x4fcc29=>_0x4fcc29),_0x168418=new Map(_0x2bea57['map'](_0x6bc84a=>[_0x6bc84a,null]));if(_0x3f89c5){for(const {element:_0x11bee7,attributes:_0x10060c}of _0x3f89c5['cells'])_0x10060c&&_0x168418['set'](_0x11bee7,_0x10060c);}else{if(_0x27bfde&&_0x27bfde['markerAttributes'])for(const [_0x1743e0,_0x26d51b]of Object['entries'](_0x27bfde['markerAttributes'])){const _0x7c68ed=_0x47cdb6['model']['markers']['get'](_0x1743e0),_0x13cc8f=_0x7c68ed?_0x7c68ed['getRange']()['getContainedElement']():null;_0x13cc8f&&_0x168418['set'](_0x13cc8f,_0x26d51b);}}_0x47cdb6['model']['change'](_0x48e0be=>{for(const [_0x4aeef7,_0x32b71d]of _0x168418)_0x48e0be['setAttributes']({...Ce,..._0x32b71d},_0x4aeef7);});});const _0x1569fa=(_0x423658,_0x5ca4ce)=>{_0x31869c['_suggestionFactory']['registerCustomCallback'](_0x423658,'tablePaste',_0x5ca4ce,(_0x1f8561,_0x32a651,_0x1c87a8)=>{_0x47cdb6['model']['change'](_0x5bc263=>{const _0x5f02ef=[];for(const _0x59fc60 of _0x1f8561){const _0x590fac=_0x59fc60['start']['nodeAfter'];_0x590fac['is']('element','tableCellSuggestion')&&_0x5f02ef['push'](_0x590fac);}_0x31869c['_suggestionFactory']['getSuggestionCallback'](_0x423658,null,_0x5ca4ce)(_0x1f8561,_0x32a651,_0x1c87a8);for(const _0xed5520 of _0x5f02ef)'$graveyard'!=_0xed5520['root']['rootName']&&_0x5bc263['unwrap'](_0xed5520);});});};_0x1569fa('insertion','accept'),_0x1569fa('insertion','discard'),_0x1569fa('deletion','accept'),_0x1569fa('deletion','discard'),_0x31869c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x47d39=>{const _0x47ae85=_0x47d39['map'](_0x13c148=>_0x13c148['getContainedElement']()),_0x57af9f=_0x47ae85[0x0]['findAncestor']('table'),{minRow:_0x5621ab,maxRow:_0x5c1f37}=_0x271530['_getCoordsForCells'](_0x47ae85);_0x435dfe['removeRows'](_0x57af9f,{'at':_0x5621ab,'rows':_0x5c1f37-_0x5621ab+0x1});}),_0x31869c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xb1b2e9=>{const _0x2fffdb=_0xb1b2e9['map'](_0x180db0=>_0x180db0['getContainedElement']()),_0x372978=_0x2fffdb[0x0]['findAncestor']('table'),{minColumn:_0x55df22,maxColumn:_0x47745a}=_0x271530['_getCoordsForCells'](_0x2fffdb);_0x435dfe['removeColumns'](_0x372978,{'at':_0x55df22,'columns':_0x47745a-_0x55df22+0x1});});const _0x133d4a=(_0x3aaf97,_0x447f62)=>{if(!_0x447f62['subType']||!_0x447f62['subType']['startsWith']('tablePaste'))return;const _0x12bc23=_0x447f62['attributes']['tablePasteChainId'],_0x243f7c=_0x31869c['getSuggestions']()['filter'](_0x853266=>_0x853266['isInContent']&&_0x853266['attributes']&&_0x853266['attributes']['tablePasteChainId']==_0x12bc23);_0x243f7c['length']&&_0x447f62['getAllAdjacentSuggestions']()['length']!=_0x243f7c['length']&&_0x243f7c['reduce']((_0x2cd1e3,_0x3b8790)=>(_0x2cd1e3['next']=_0x3b8790,_0x3b8790['previous']=_0x2cd1e3,_0x3b8790));};function _0xd5d5cf(_0x2e8b35,_0x52cfd6=!0x0){const {id:_0x530f12}=_0x31869c['_splitMarkerName'](_0x2e8b35['markerName']),_0x536d97=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5edd74=_0x31869c['activeMarkers']['includes'](_0x2e8b35['markerName']);return _0x5edd74&&_0x536d97['push']('ck-suggestion-marker--active'),{'classes':_0x536d97,'attributes':{'data-suggestion':_0x530f12},'priority':_0x5edd74&&_0x52cfd6?0xbc2:0xbb8};}_0x31869c['on']('suggestionLoaded',_0x133d4a,{'priority':'high'}),_0x31869c['on']('suggestionUnloaded',_0x133d4a,{'priority':'high'}),_0x47cdb6['model']['document']['registerPostFixer'](()=>{let _0x524f47=!0x1;const _0x5348c2=Array['from'](_0x47cdb6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x50c797,data:_0x1febcb}of _0x5348c2){const {group:_0x2e155c,type:_0x2ca741,id:_0x3a6fa6}=_0x31869c['_splitMarkerName'](_0x50c797);if('suggestion'!=_0x2e155c||'deletion'!=_0x2ca741||_0x1febcb['oldRange'])continue;if(!_0x31869c['hasSuggestion'](_0x3a6fa6))continue;const _0x17967c=_0x31869c['getSuggestion'](_0x3a6fa6)['getRanges'](),_0x618c83=_0x47cdb6['plugins']['get']('Users')['me'];for(const _0xa4f712 of _0x31869c['getSuggestions']()){if(!_0xa4f712['isInContent']||_0xa4f712['author']!=_0x618c83)continue;if('formatBlock'!=_0xa4f712['type']||'tablePasteCell'!=_0xa4f712['subType'])continue;if(_0xa4f712['getRanges']()['every'](_0x192e9b=>_0x17967c['some'](_0x4cd66b=>_0x4cd66b['containsRange'](_0x192e9b,!0x0)))){for(const _0x4c1567 of _0xa4f712['getAllAdjacentSuggestions']())_0x4c1567['isInContent']&&(_0x4c1567['discard'](),_0x524f47=!0x0);}}}return _0x524f47;}),_0x47cdb6['model']['document']['registerPostFixer'](_0x2cefa0=>{const _0x574a9d=_0x47cdb6['commands']['get']('redo');if(!_0x574a9d||!_0x574a9d['_createdBatches']['has'](_0x2cefa0['batch']))return!0x1;let _0x219590=!0x1;const _0x88f074=_0x47cdb6['plugins']['get']('Users')['me'],_0x4dbb82=_0x47cdb6['model']['document']['differ']['getChanges'](),_0x239b68=Array['from'](_0x47cdb6['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5dc059,data:_0x4ea85b})=>{const {group:_0x51a86a,subType:_0xf377f2,authorId:_0x5be9ba}=_0x31869c['_splitMarkerName'](_0x5dc059);return'suggestion'==_0x51a86a&&'tablePaste'==_0xf377f2&&_0x5be9ba==_0x88f074['id']&&!_0x4ea85b['oldRange'];});for(const _0x5ba186 of _0x4dbb82){if('insert'!=_0x5ba186['type']||'tableCellSuggestion'!=_0x5ba186['name']||0x1!=_0x5ba186['length'])continue;const _0x1b790c=_0x2cefa0['createRange'](_0x5ba186['position'],_0x5ba186['position']['getShiftedBy'](0x1));if(!_0x239b68['find'](({data:_0x407824})=>_0x407824['newRange']['isEqual'](_0x1b790c))){for(const {name:_0x1a0aea,data:_0x1e11ee}of _0x239b68)if(_0x1b790c['containsRange'](_0x1e11ee['newRange'])){_0x2cefa0['updateMarker'](_0x1a0aea,{'range':_0x1b790c}),_0x219590=!0x0;break;}}}return _0x219590;}),_0x47cdb6['model']['document']['registerPostFixer'](_0x4300e9=>{let _0x1043a2=!0x1;const _0x2f842d=_0x47cdb6['plugins']['get']('Users')['me'],_0x5b43df=_0x31869c['getSuggestions']()['filter'](_0x39caa6=>_0x39caa6['isInContent']&&_0x39caa6['author']==_0x2f842d),_0x246fc8=new Set(),_0x44b985=new Set();for(const _0x441931 of _0x5b43df)if('tablePaste'==_0x441931['subType'])for(const _0x3a3dab of _0x441931['getMarkers']()){const _0x102a55=_0x3a3dab['getRange']()['getContainedElement']();if(_0x102a55){if(_0x102a55['is']('element','tableCellSuggestion')&&Pe(_0x102a55)){_0x441931['removeMarker'](_0x3a3dab['name']),_0x246fc8['add'](_0x102a55),_0x1043a2=!0x0;const _0x18d9c0=_0x102a55['nextSibling'],_0x46c0cb=_0x102a55['previousSibling'],_0x2256c1=_0x18d9c0&&_0x18d9c0['is']('element','tableCellSuggestion'),_0x33f8f5=_0x46c0cb&&_0x46c0cb['is']('element','tableCellSuggestion');_0x2256c1&&!_0x246fc8['has'](_0x18d9c0)&&_0x44b985['add'](_0x18d9c0),_0x33f8f5&&!_0x246fc8['has'](_0x46c0cb)&&_0x44b985['add'](_0x46c0cb);}else _0x102a55['is']('element','paragraph')&&_0x102a55['isEmpty']&&(_0x441931['removeMarker'](_0x3a3dab['name']),_0x1043a2=!0x0);}}else{if('tablePasteCell'==_0x441931['subType']){if(!_0x441931['attributes']||!_0x441931['attributes']['tablePasteChainId'])continue;const _0x3beccb=_0x441931['attributes']['markerAttributes'];if(_0x3beccb&&Object['keys'](_0x3beccb)['length'])continue;const _0x4fef92=_0x441931['attributes']['tablePasteChainId'];let _0x58d7d1=!0x0,_0x178bdc=!0x0;for(const _0x3435dd of _0x5b43df)if(_0x3435dd['subType']&&_0x3435dd['subType']['startsWith']('tablePaste')){if(!_0x3435dd['attributes']['tablePasteChainId']){_0x178bdc=!0x1;break;}if(_0x3435dd['id']!=_0x441931['id']&&_0x3435dd['attributes']['tablePasteChainId']==_0x4fef92){_0x58d7d1=!0x1;break;}}_0x178bdc&&_0x58d7d1&&(_0x441931['removeMarkers'](),_0x1043a2=!0x0);}}for(const _0x2f096b of _0x246fc8)_0x4300e9['remove'](_0x2f096b);for(const _0x127b21 of _0x44b985)_0x4300e9['unwrap'](_0x127b21);return _0x1043a2;}),_0x47cdb6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x40cc9a,_0x414e86)=>_0xd5d5cf(_0x40cc9a),'converterPriority':'high'}),_0x47cdb6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x49bfda,_0xdab636)=>_0xdab636['options']['showSuggestionHighlights']?_0xd5d5cf(_0x49bfda,!0x1):null,'converterPriority':'high'});const _0x1b55f3=_0x47cdb6['editing']['view'];this['listenTo'](_0x1b55f3['document'],'clipboardOutput',(_0x1963e8,_0x28b1e6)=>{const _0x462aca=[];for(const _0x24bc70 of _0x1b55f3['createRangeIn'](_0x28b1e6['content'])['getItems']())_0x24bc70['is']('element','suggestion-td')&&_0x462aca['push'](_0x24bc70);_0x1b55f3['change'](_0x495402=>{for(const _0x3dea48 of _0x462aca)_0x495402['move'](_0x495402['createRangeIn'](_0x3dea48),_0x495402['createPositionBefore'](_0x3dea48)),_0x495402['remove'](_0x3dea48);});});}}function Pe(_0x4b7643){if(_0x4b7643['isEmpty'])return!0x0;const _0x4361a8=_0x4b7643['getChild'](0x0);return _0x4361a8['is']('element','paragraph')&&_0x4361a8['isEmpty'];}function he(_0x5e766a,_0x27e10a={},_0x5454d2){for(const {isAnchor:_0x36b1b4,cellHeight:_0x4a034f,cellWidth:_0x378f53}of _0x5454d2['createTableWalker'](_0x5e766a,{'includeAllSlots':!0x0,..._0x27e10a}))if(!_0x36b1b4||0x1!=_0x4a034f||0x1!=_0x378f53)return!0x1;return!0x0;}class vt extends _0x407128{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x38f5fd=this['editor']['plugins']['get']('TrackChangesEditing');_0x38f5fd['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x38f5fd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x38f5fd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x38f5fd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x38f5fd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x38f5fd['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xb5691c,_0x47fb1d){const _0x528e20=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a583a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x37b1c5=_0x47fb1d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1c5584=_0x3a583a['getColumnGroupElement'](_0x37b1c5);let _0x256693=_0x1c5584?_0x3a583a['getTableColumnsWidths'](_0x1c5584):null,_0x1e95b3=_0x37b1c5['getAttribute']('tableWidth')||null;const _0xff6aec=_0x47fb1d['tableWidth']||_0x1e95b3,_0x30ab01=_0x47fb1d['columnWidths']||_0x256693,_0x12f6a9=this['editor']['plugins']['get']('Users')['me'];for(const _0xafefb8 of _0x528e20['getSuggestions']()){const _0x575bbd=_0xafefb8['getContainedElement']();if('resizeTable'===_0xafefb8['subType']&&_0x575bbd===_0x37b1c5){_0xafefb8['author']!==_0x12f6a9&&_0xafefb8['discard']();const _0x19990b=_0xafefb8['data']['commandParams'];_0x1e95b3=_0x19990b[0x0]['tableWidth'],_0x256693=_0x19990b[0x0]['columnWidths'];break;}}_0xb5691c({'table':_0x37b1c5,'tableWidth':_0xff6aec,'columnWidths':_0x30ab01}),_0x528e20['markBlockFormat'](_0x37b1c5,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1e95b3,'columnWidths':_0x256693}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3d1af6){if('formatBlock'!=_0x3d1af6['type']&&'formatInline'!=_0x3d1af6['type'])return;const {data:_0x458e92}=_0x3d1af6;if(_0x458e92&&'resizeTable'===_0x458e92['formatGroupId']){const _0x1cf3b4='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1cf3b4)};}}}class Ct extends _0x407128{['afterInit'](){const _0x54c9d2=this['editor'];_0x54c9d2['plugins']['has']('Template')&&_0x54c9d2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x407128{['afterInit'](){const _0x1899e0=this['editor'];if(!_0x1899e0['commands']['get']('insertTableOfContents'))return;_0x1899e0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4b2de4=_0x1899e0['plugins']['get']('TrackChangesEditing'),_0x277b8d=_0x1899e0['locale'];_0x4b2de4['descriptionFactory']['registerElementLabel']('tableOfContents',_0x16f6c4=>o(_0x277b8d,'ELEMENT_TABLE_OF_CONTENTS',_0x16f6c4));}}class Dt extends _0x407128{['afterInit'](){const _0x3ca245=this['editor'];if(!_0x3ca245['plugins']['has']('Title'))return;const _0x42a791=_0x3ca245['plugins']['get']('TrackChangesEditing');_0x42a791['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3ca245['locale'],'ELEMENT_TITLE')),_0x3ca245['model']['document']['registerPostFixer'](_0x39875c=>{let _0x48875c=!0x1;const _0x571dde=Array['from'](_0x3ca245['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4a4b71,data:_0x42aad3}of _0x571dde){const {group:_0x7f1f4c}=_0x42a791['_splitMarkerName'](_0x4a4b71);if('suggestion'!==_0x7f1f4c||!_0x42aad3['newRange'])continue;const _0x599ff1=_0x42aad3['newRange'],_0x4aae1e=_0x599ff1['end']['nodeBefore'];if(!_0x4aae1e||!_0x4aae1e['is']('element','title-content'))continue;if(!_0x599ff1['start']['isTouching'](_0x599ff1['end']))continue;const _0xba57b3=_0x3ca245['model']['schema']['getNearestSelectionRange'](_0x599ff1['end'],'forward');if(_0xba57b3&&_0xba57b3['isCollapsed']){const _0xe5853=_0x39875c['createRange'](_0x599ff1['start'],_0xba57b3['start']);_0xe5853['isEqual'](_0x599ff1)||(_0x39875c['updateMarker'](_0x4a4b71,{'range':_0xe5853}),_0x48875c=!0x0);}_0x48875c||(_0x39875c['removeMarker'](_0x4a4b71),_0x48875c=!0x0);}return _0x48875c;});}}class Nt extends _0x407128{['afterInit'](){const _0xb5ad22=this['editor'],_0x1986cf=_0xb5ad22['plugins']['get']('TrackChangesEditing');_0xb5ad22['plugins']['has']('UndoEditing')&&(_0x1986cf['enableCommand']('undo'),_0x1986cf['enableCommand']('redo'));}}class Mt extends _0x407128{static get['requires'](){return[jt];}['afterInit'](){const _0x36691a=this['editor'];if(!_0x36691a['plugins']['has']('TableCaptionEditing'))return;_0x36691a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x407128{['tableProperties'];['tableCellProperties'];constructor(_0x3c5e59){super(_0x3c5e59),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 _0x4c9635=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x56fa56 of this['tableProperties'])_0x4c9635['enableCommand'](_0x56fa56,(_0x47069a,_0x1b8dbe)=>{const _0x4f55cf=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x56fa56,[_0x4f55cf],this['tableProperties'],'tableProperties',_0x47069a,_0x1b8dbe);});_0x4c9635['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4c9635['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c9635['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x9d8319,_0x21e7d6)=>this['handleDiscardAction'](this['tableProperties'],_0x9d8319,_0x21e7d6)),_0x4c9635['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4f443c of this['tableCellProperties'])_0x4c9635['enableCommand'](_0x4f443c,(_0x438c58,_0x2451b2)=>{const _0x9676ae=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4f443c,_0x9676ae,this['tableCellProperties'],'tableCellProperties',_0x438c58,_0x2451b2);});_0x4c9635['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4c9635['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c9635['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x13954c,_0x2feaf4)=>this['handleDiscardAction'](this['tableCellProperties'],_0x13954c,_0x2feaf4)),_0x4c9635['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4c9635['descriptionFactory']['registerDescriptionCallback'](_0x8f5a21=>this['handleSuggestionDescription'](_0x8f5a21));}['_handlePropertyChange'](_0x2edfd3,_0x3592a6,_0x256c31,_0xb6b54b,_0x26023c,_0xc6ea1b){const _0x5807b5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xc6ea1b['batch'],()=>{for(const _0x5c496e of _0x3592a6){if(this['_getSuggestion'](_0x5c496e,_0xb6b54b))_0x26023c(_0xc6ea1b);else{const _0x1d99e2={};for(const _0xc35e76 of _0x256c31){const _0x2265b0=_0x5c496e['getAttribute'](_0xc35e76);void 0x0!==_0x2265b0&&(_0x1d99e2[_0xc35e76]=_0x2265b0);}_0x26023c(_0xc6ea1b),_0x5807b5['markBlockFormat'](_0x5c496e,{'commandParams':[_0x1d99e2]},[],_0xb6b54b);}}});}['handleDiscardAction'](_0x37f734,_0x3892c1,_0x116cb8){const _0x1d3b67=_0x3892c1[0x0]['start']['nodeAfter'],_0x22207e=_0x116cb8['commandParams'][0x0];this['editor']['model']['change'](_0x4d237a=>{for(const _0x43710e of _0x37f734)void 0x0!==_0x22207e[_0x43710e]?_0x4d237a['setAttribute'](_0x43710e,_0x22207e[_0x43710e],_0x1d3b67):_0x4d237a['removeAttribute'](_0x43710e,_0x1d3b67);});}['handleSuggestionDescription'](_0x26743e){if(_0x26743e['data'])switch(_0x26743e['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'](_0x49ae6b,_0x2f40af){const _0x49a394=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4668c0 of _0x49a394['getSuggestions']({'skipNotAttached':!0x0})){const _0x2f6a7a=_0x4668c0['getContainedElement']();if(_0x4668c0['subType']===_0x2f40af&&_0x2f6a7a===_0x49ae6b)return _0x4668c0;}return null;}}const m='$elementName';class p extends _0x407128{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0xa640a6,_0x5b015e,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(_0x32984c){function _0x1d0f38(_0x2da20f){return _0x2da20f['map'](_0x38b0e1=>String['fromCharCode'](_0x38b0e1))['join']('');}super(_0x32984c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x22d7cc,_0x5a3ad3,_0x30ad81,_0x1c9375)=>{this['_model']['change'](()=>{for(const _0x99e73d of[..._0x1c9375,..._0x30ad81])this['_model']['markers']['has'](_0x99e73d)&&_0x32984c['editing']['reconvertMarker'](_0x99e73d);});}),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']=_0x32984c['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(),_0x32984c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x32984c['config']['get']('trackChanges.trackFormatChanges'),_0x32984c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x32984c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x32984c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1d0f38([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1d0f38([0x34,0x30,0x34,0x38,0x31,0x32,0x33,0x38]);}['init'](){const _0xc769e0=this['editor'],_0x408621=(_0x2c447b,_0x5d1f13)=>{if('attribute'!=_0x2c447b)return'ck-suggestion-marker-'+_0x2c447b;const _0x523495=_0x5d1f13['split']('|')[0x0];return this['_isBlockAttribute'](_0x523495)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xc769e0['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1a043f=>{const {id:_0x1d5f8e,type:_0x59fe1f,subType:_0x2bb0f9}=this['_splitMarkerName'](_0x1a043f['markerName']),_0x2e23d9=['ck-suggestion-marker',_0x408621(_0x59fe1f,_0x2bb0f9)];let _0x5eb796=0xbb8;return this['activeMarkers']['includes'](_0x1a043f['markerName'])&&(_0x2e23d9['push']('ck-suggestion-marker--active'),_0x5eb796=0xbc2),'deletion'==_0x59fe1f&&(_0x5eb796+=0x5),{'classes':_0x2e23d9,'attributes':{'data-suggestion':_0x1d5f8e},'priority':_0x5eb796};}}),_0xc769e0['conversion']['for']('dataDowncast')['add'](_0x12dece=>{_0x12dece['on']('addMarker:suggestion',(_0x4394f5,_0x56ac1a,_0x443494)=>{if(!_0x443494['options']['showSuggestionHighlights'])return;const _0x5d8db7=_0x56ac1a['item'];if(!_0x5d8db7)return;const _0x90cada=_0x443494['mapper']['toViewElement'](_0x5d8db7);_0xc769e0['model']['schema']['isObject'](_0x5d8db7)&&_0x90cada&&!_0x90cada['getCustomProperty']('widget')&&_0x90cada['is']('containerElement')&&_0x41c9c5(_0x90cada,_0x443494['writer']);},{'priority':'high'});}),_0xc769e0['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x29aab6,_0x406c5f)=>{if(!_0x406c5f['options']['showSuggestionHighlights'])return null;const {type:_0x317711,subType:_0x1fee81}=this['_splitMarkerName'](_0x29aab6['markerName']);return{'classes':['ck-suggestion-marker',_0x408621(_0x317711,_0x1fee81)],'priority':0xbb8};}});const _0x3d0f98=({showActiveMarkers:_0x10781e=!0x0,isAttributeSuggestion:_0x4228b1=!0x1}={})=>(_0x4e4fb9,_0x593510,_0x3ac26b)=>{if(!_0x593510['item'])return;const {id:_0x3cb6d4}=this['_splitMarkerName'](_0x593510['markerName']);if(_0x4228b1){const _0x9c9d0d=this['_suggestions']['get'](_0x3cb6d4),_0x4a6627=this['_getAttributeKey'](_0x9c9d0d);if(!this['_isBlockAttribute'](_0x4a6627))return;}if(_0x593510['item']['is']('selection'))return void _0x3ac26b['consumable']['consume'](_0x593510['item'],_0x4e4fb9['name']);const _0x1d9c23=_0x3ac26b['mapper']['toViewElement'](_0x593510['item']);if(_0x593510['item']['is']('element')&&_0xc769e0['model']['schema']['isBlock'](_0x593510['item'])&&!_0x1d9c23['getCustomProperty']('addHighlight')){_0x3ac26b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1d9c23),_0x3ac26b['writer']['setAttribute']('data-suggestion',_0x3cb6d4,_0x1d9c23),_0x3ac26b['mapper']['bindElementToMarker'](_0x1d9c23,_0x593510['markerName']),_0x10781e&&(this['activeMarkers']['includes'](_0x593510['markerName'])?_0x3ac26b['writer']['addClass']('ck-suggestion-marker--active',_0x1d9c23):_0x3ac26b['writer']['removeClass']('ck-suggestion-marker--active',_0x1d9c23));for(const _0x18dd92 of _0xc769e0['model']['createRangeIn'](_0x593510['item'])['getItems']())_0x3ac26b['consumable']['consume'](_0x18dd92,_0x4e4fb9['name']);_0x3ac26b['consumable']['consume'](_0x593510['item'],_0x4e4fb9['name']);}};_0xc769e0['conversion']['for']('dataDowncast')['add'](_0x1fc53e=>{_0x1fc53e['on']('addMarker:suggestion:formatBlock',(_0x44f7fb,_0x3cdf8a,_0x1bfd5a)=>{_0x1bfd5a['options']['showSuggestionHighlights']&&_0x3d0f98({'showActiveMarkers':!0x1})(_0x44f7fb,_0x3cdf8a,_0x1bfd5a);},{'priority':'highest'});}),_0xc769e0['conversion']['for']('dataDowncast')['add'](_0x292891=>{_0x292891['on']('addMarker:suggestion:attribute',(_0x275e0e,_0x22be30,_0x4b3079)=>{_0x4b3079['options']['showSuggestionHighlights']&&_0x3d0f98({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x275e0e,_0x22be30,_0x4b3079);},{'priority':'highest'});}),_0xc769e0['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1a6208,_0xd46215)=>_0xd46215['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1a6208['substr'](0xb)}}),_0xc769e0['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3c7950,{writer:_0x4aacf5})=>{let _0x4136ef='suggestion:'+_0x3c7950['getAttribute']('suggestion-type')+':'+_0x3c7950['getAttribute']('id');return _0x3c7950['getAttribute']('marker-count')&&(_0x4136ef+=':'+_0x3c7950['getAttribute']('marker-count')),_0x4aacf5['createElement']('$marker',{'data-name':_0x4136ef});}}),_0xc769e0['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xc769e0['conversion']['for']('editingDowncast')['add'](_0x1ee741=>{_0x1ee741['on']('addMarker:suggestion:formatBlock',_0x3d0f98(),{'priority':'high'});}),_0xc769e0['conversion']['for']('editingDowncast')['add'](_0x4b39ff=>{_0x4b39ff['on']('addMarker:suggestion:attribute',_0x3d0f98({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xc769e0['conversion']['for']('editingDowncast')['add'](_0x2e674c=>{_0x2e674c['on']('removeMarker:suggestion:formatBlock',(_0x54adc4,_0x56d686,_0x3ab0ea)=>{const _0x459e94=_0x3ab0ea['mapper']['markerNameToElements'](_0x56d686['markerName']);if(_0x459e94){for(const _0x4b8775 of _0x459e94)_0x4b8775['getCustomProperty']('addHighlight')||(_0x3ab0ea['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4b8775),_0x3ab0ea['writer']['removeAttribute']('data-suggestion',_0x4b8775),_0x3ab0ea['mapper']['unbindElementFromMarkerName'](_0x4b8775,_0x56d686['markerName']));}},{'priority':'high'});}),_0xc769e0['conversion']['for']('editingDowncast')['add'](_0x2afe04=>{_0x2afe04['on']('removeMarker:suggestion:attribute',(_0x32d1e5,_0x5f4e96,_0x408e8e)=>{const _0x410524=_0x408e8e['mapper']['markerNameToElements'](_0x5f4e96['markerName']);if(!_0x410524)return;const {id:_0x4db657}=this['_splitMarkerName'](_0x5f4e96['markerName']),_0x1af7f5=this['_suggestions']['get'](_0x4db657),_0x46aa87=this['_getAttributeKey'](_0x1af7f5);if(this['_isBlockAttribute'](_0x46aa87)){for(const _0x510709 of _0x410524)_0x510709['getCustomProperty']('addHighlight')||(_0x408e8e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x510709),_0x408e8e['writer']['removeAttribute']('data-suggestion',_0x510709),_0x408e8e['mapper']['unbindElementFromMarkerName'](_0x510709,_0x5f4e96['markerName']));}},{'priority':'high'});}),_0xc769e0['model']['document']['registerPostFixer'](_0xaa7b9c=>{let _0x5cf4c2=!0x1;const _0x18537a=Array['from'](_0xc769e0['model']['document']['differ']['getChangedMarkers']()),_0x452326=new Set();for(const {name:_0x313c09,data:_0x4e2281}of _0x18537a){const {group:_0x5b2cd3,type:_0x268c90,subType:_0x55dfe8,id:_0x5983d8}=this['_splitMarkerName'](_0x313c09);if('suggestion'!==_0x5b2cd3)continue;const _0x525cec=this['_suggestions']['get'](_0x5983d8);if(null!=_0x4e2281['newRange']){'formatInline'==_0x268c90&&(_0x5cf4c2=_0x5cf4c2||Et(_0x4e2281['newRange'],_0x313c09,_0xaa7b9c,_0xc769e0['model']['schema']));const _0x1c3e54='attribute'==_0x268c90&&this['_isBlockAttribute'](_0x55dfe8['split']('|')[0x0]);if(_0x4e2281['newRange']['isCollapsed']||'$graveyard'==_0x4e2281['newRange']['root']['rootName']||'formatBlock'==_0x268c90&&!Ut(_0x4e2281['newRange'])||_0x1c3e54&&!Ut(_0x4e2281['newRange'])||'deletion'==_0x268c90&&!(!Tt(_0x4323e6=_0x4e2281['newRange'])&&!function(_0xebde57){return _0xebde57['start']['parent']==_0xebde57['end']['nodeBefore']&&_0xebde57['start']['isAtEnd'];}(_0x4323e6)))_0xaa7b9c['removeMarker'](_0x313c09),_0x5cf4c2=!0x0;else{if(!_0x525cec||!_0x525cec['isInContent'])continue;_0x452326['add'](_0x525cec);}}}var _0x4323e6;return _0x452326['size']>0x0&&(_0x5cf4c2=!!this['_joinWithAdjacentSuggestions'](_0x452326)||_0x5cf4c2),_0x5cf4c2;}),_0xc769e0['model']['document']['registerPostFixer'](_0x7e65df=>{let _0x34f0dd=!0x1;for(const _0x43f833 of _0xc769e0['model']['document']['differ']['getChanges']())if('insert'==_0x43f833['type'])for(const _0x5a15b1 of this['_suggestions']['values']()){if(_0x5a15b1['isMultiRange']||!_0x5a15b1['isInContent'])continue;const _0x465780='formatBlock'==_0x5a15b1['type'],_0x59d609=this['_getAttributeKey'](_0x5a15b1),_0x752b02=_0x59d609&&this['_isBlockAttribute'](_0x59d609);if(!_0x465780&&!_0x752b02)continue;const _0x1c7147=_0x5a15b1['getFirstRange']();if(_0x1c7147['start']['parent']!=_0x1c7147['end']['parent']&&!_0x1c7147['end']['isAtEnd']){const _0x3ba77b=_0xc769e0['model']['createPositionAt'](_0x1c7147['start']['nodeAfter'],'end'),_0x29848f=_0xc769e0['model']['createRange'](_0x1c7147['start'],_0x3ba77b);_0x7e65df['updateMarker'](_0x5a15b1['getFirstMarker'](),{'range':_0x29848f}),_0x34f0dd=!0x0;}}return _0x34f0dd;}),_0xc769e0['model']['document']['registerPostFixer'](_0x2b8530=>this['_processAttributeChanges'](_0x2b8530)),_0xc769e0['model']['document']['registerPostFixer'](_0x9bb653=>!_0x9bb653['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x9bb653)),_0xc769e0['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xc769e0['model']['document']['on']('change:data',(_0x17df2b,_0x5600a7)=>{if(!_0x5600a7['isLocal']||_0x5600a7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xb9bda6=_0xc769e0['model']['document']['differ']['getChanges']();if(0x0==_0xb9bda6['length'])return;const _0x30be45=[],_0x2286c3=_0xb9bda6['filter'](_0x1afe73=>'attribute'==_0x1afe73['type']),_0x10eb30=_0xb9bda6['filter'](_0x2de8bc=>'insert'==_0x2de8bc['type']&&'$text'!=_0x2de8bc['name']);for(const _0x4ef514 of _0x2286c3)this['_isRegisteredAttribute'](_0x4ef514['attributeKey'])&&_0x30be45['push']({'key':_0x4ef514['attributeKey'],'newValue':_0x4ef514['attributeNewValue'],'oldValue':_0x4ef514['attributeOldValue'],'range':Ot(_0x4ef514['range'],_0xc769e0['model'])});for(const _0x483dc2 of _0x10eb30){if('rename'!=_0x483dc2['action']&&'refresh'!=_0x483dc2['action'])continue;const _0xc992ce=Gt(_0x483dc2['position']['nodeAfter'],_0xc769e0['model']),_0x28aff5=_0x483dc2['before'];'rename'==_0x483dc2['action']&&_0x30be45['push']({'key':m,'newValue':_0x483dc2['name'],'oldValue':_0x28aff5['name'],'range':_0xc992ce});for(const [_0x319534,_0x455a1a]of _0x28aff5['attributes']){if(!this['_isRegisteredAttribute'](_0x319534))continue;const _0x18303f=_0x483dc2['attributes']['get'](_0x319534);_0x455a1a!==_0x18303f&&_0x30be45['push']({'key':_0x319534,'newValue':_0x18303f,'oldValue':_0x455a1a,'range':_0xc992ce});}for(const [_0x539b51,_0x12b76d]of _0x483dc2['attributes'])this['_isRegisteredAttribute'](_0x539b51)&&(_0x28aff5['attributes']['has'](_0x539b51)||_0x30be45['push']({'key':_0x539b51,'newValue':_0x12b76d,'oldValue':null,'range':_0xc992ce}));}0x0!=_0x30be45['length']&&_0xc769e0['model']['enqueueChange'](_0x5600a7,_0x5dd2b7=>{const _0x1a220e=_0x1fa7bb();for(const {range:_0xc244ec,key:_0x32c398,oldValue:_0x2d8303,newValue:_0x435ba1}of _0x30be45)this['markAttributeChange'](_0xc244ec,_0x32c398,_0x2d8303,_0x435ba1,{'groupId':_0x1a220e});this['_reduceExistingSuggestions'](_0x5dd2b7,_0x30be45);});},{'priority':'lowest'}),_0xc769e0['model']['markers']['on']('update:suggestion',(_0x6ab1c2,_0xa5a42d,_0x4f187b)=>{if(null==_0x4f187b){const {id:_0xcdd21d}=this['_splitMarkerName'](_0xa5a42d['name']),_0x5653f8=this['_suggestions']['get'](_0xcdd21d);_0x5653f8&&_0x5653f8['addMarkerName'](_0xa5a42d['name']);}}),_0xc769e0['model']['document']['on']('change:data',()=>{const _0x341ff9=Array['from'](_0xc769e0['model']['document']['differ']['getChangedMarkers']())['filter'](_0x18681f=>'suggestion'===this['_splitMarkerName'](_0x18681f['name'])['group']);if(0x0===_0x341ff9['length'])return;_0x341ff9['sort']((_0x4430a2,_0x416941)=>{const _0x48ffc4=_0x4430a2['data']['oldRange'],_0x30b66c=_0x416941['data']['oldRange'];return null===_0x48ffc4&&null===_0x30b66c?0x0:null===_0x48ffc4&&null!==_0x30b66c?-0x1:null!==_0x48ffc4&&null===_0x30b66c?0x1:_0x48ffc4['start']['isBefore'](_0x30b66c['start'])?-0x1:0x1;});const _0x254468=new Set(),_0x5174d2=new Set();for(const {name:_0x28eec4,data:_0x2f7f49}of _0x341ff9){const {id:_0xf3b7bb}=this['_splitMarkerName'](_0x28eec4);if(null===_0x2f7f49['oldRange']){const _0x1715a9=this['_handleNewSuggestionMarker'](_0x28eec4);_0x5174d2['add'](_0x1715a9);}else{const _0x49e16f=this['_suggestions']['get'](_0xf3b7bb);null!==_0x2f7f49['newRange']||_0x49e16f['isInContent']?(_0x254468['add'](_0x49e16f['head']),_0x5174d2['add'](_0x49e16f)):this['_removeSuggestion'](_0x49e16f);}}_0x5174d2['size']>0x0&&this['_refreshSuggestionsChain'](_0x5174d2);for(const _0x488246 of _0x254468)this['fire']('suggestionChanged',_0x488246);}),_0xc769e0['model']['on']('applyOperation',(_0x4eb2a1,_0x5a327e)=>{const _0x415ede=_0x5a327e[0x0];if(!this['_suggestions']['size'])return;if(!_0x415ede['isDocumentOperation'])return;if(_0x415ede['batch']['isUndo']||!_0x415ede['batch']['isLocal'])return;let _0x18b825,_0x144757;switch(_0x415ede['type']){case'insert':_0x18b825=_0xc769e0['model']['createPositionAt'](_0x415ede['position']),_0x144757=_0x18b825['getShiftedBy'](_0x415ede['howMany']);break;case'split':_0x18b825=_0xc769e0['model']['createPositionAt'](_0x415ede['splitPosition']),_0x144757=_0xc769e0['model']['createPositionAt'](_0x415ede['moveTargetPosition']);break;case'move':_0x18b825=_0xc769e0['model']['createPositionAt'](_0x415ede['targetPosition']),_0x144757=_0x18b825['getShiftedBy'](_0x415ede['howMany']);break;default:return;}const _0x3cec1c=_0xc769e0['model']['createRange'](_0x18b825,_0x144757);_0xc769e0['model']['change'](()=>{for(const {suggestion:_0x543c2e,meta:_0x1fcb97}of this['_findSuggestions'](_0x3cec1c)){if(_0x543c2e['isMultiRange'])continue;if('formatInline'==_0x543c2e['type'])continue;const _0x38dc45=this['_getAttributeKey'](_0x543c2e);if(_0x38dc45&&this['_isBlockAttribute'](_0x38dc45)&&'split'!=_0x415ede['type'])continue;const _0x7c9613=_0x543c2e['data']&&_0x543c2e['data']['multipleBlocks'];('formatBlock'!=_0x543c2e['type']||'split'==_0x415ede['type']&&!_0x7c9613)&&(_0x1fcb97['containsRangeInObject']||'insertion'==_0x543c2e['type']&&_0x1fcb97['isOwn']||_0x543c2e['getFirstRange']()['containsRange'](_0x3cec1c)&&this['_breakSuggestionMarker'](_0x543c2e,_0x18b825,_0x144757));}});},{'priority':'lowest'}),_0xc769e0['model']['on']('deleteContent',(_0x2636be,_0x48ffe3)=>{const _0x5df287=_0x48ffe3[0x0],_0xfbbe88=_0x48ffe3[0x1];if(_0xfbbe88&&_0xfbbe88['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5df287['isCollapsed'])return;const _0x3394b4=_0xc769e0['model']['schema'],{start:_0x2a71f2,end:_0x458080}=_0x5df287['getFirstRange'](),_0x11abd2=_0x2a71f2['nodeAfter']&&_0x3394b4['isLimit'](_0x2a71f2['nodeAfter'])?null:_0x3394b4['getNearestSelectionRange'](_0x2a71f2,'forward'),_0x35377b=_0x458080['nodeBefore']&&_0x3394b4['isLimit'](_0x458080['nodeBefore'])?null:_0x3394b4['getNearestSelectionRange'](_0x458080,'backward'),_0x5ac92f=_0xc769e0['model']['createRange'](_0x11abd2?_0x11abd2['start']:_0x2a71f2,_0x35377b?_0x35377b['end']:_0x458080);_0xc769e0['model']['change'](_0x42db18=>{this['markDeletion'](_0x5ac92f);const _0x470a05=_0xc769e0['model']['schema']['getNearestSelectionRange'](_0x5ac92f['start']);_0x5df287['is']('documentSelection')?_0x42db18['setSelection'](_0x470a05):_0x5df287['setTo'](_0x470a05);}),_0x2636be['stop']();},{'priority':_0x746603['normal']+0xa}),_0xc769e0['model']['on']('insertContent',(_0x13b9f8,_0x1c2f19)=>{const _0x2881f4=_0x1c2f19[_0x1c2f19['length']-0x1];_0x2881f4&&_0x2881f4['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xc769e0['model']['change'](()=>{let _0x35a643=_0xc769e0['model']['insertContent'](_0x1c2f19[0x0],_0x1c2f19[0x1],_0x1c2f19[0x2],{'forceDefaultExecution':!0x0});if(!_0x35a643)return;_0x13b9f8['return']=_0x35a643['clone']();const _0x3c4d24=_0x35a643['end']['nodeBefore'],_0x5c0ee1=_0xc769e0['model']['schema'];_0x3c4d24&&_0x5c0ee1['isBlock'](_0x3c4d24)&&!_0x5c0ee1['isObject'](_0x3c4d24)&&(_0x35a643=_0xc769e0['model']['createRange'](_0x35a643['start'],_0xc769e0['model']['createPositionAt'](_0x3c4d24,'end'))),this['markInsertion'](_0x35a643);}),_0x13b9f8['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x356199=new $(_0xc769e0,this['_suggestions']);_0xc769e0['commands']['add']('acceptSuggestion',_0x356199),this['enableCommand']('acceptSuggestion');const _0x7b9e0d=new B(_0xc769e0,this['_suggestions']);_0xc769e0['commands']['add']('discardSuggestion',_0x7b9e0d),this['enableCommand']('discardSuggestion'),_0xc769e0['commands']['add']('acceptAllSuggestions',new x(_0xc769e0,_0x356199,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xc769e0['commands']['add']('discardAllSuggestions',new x(_0xc769e0,_0x7b9e0d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xc769e0['commands']['add']('acceptSelectedSuggestions',new R(_0xc769e0,_0x356199,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xc769e0['commands']['add']('discardSelectedSuggestions',new R(_0xc769e0,_0x7b9e0d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x339dc9=_0xc769e0['plugins']['get']('CommentsRepository');this['listenTo'](_0x339dc9,'addComment',(_0x238c09,{threadId:_0x13c320})=>{const _0x31e298=this['_suggestions']['get'](_0x13c320);_0x31e298&&_0x31e298['commentThread']&&0x1===_0x31e298['commentThread']['length']&&this['_updateSuggestionData'](_0x13c320,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x339dc9,'removeComment',(_0x14ab37,{threadId:_0x46ff44})=>{const _0x508f15=this['_suggestions']['get'](_0x46ff44);_0x508f15&&_0x508f15['commentThread']&&!_0x508f15['commentThread']['length']&&this['_updateSuggestionData'](_0x46ff44,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x287f4e){if(this['_adapter'])throw new _0x444d46('track-changes-adapter-already-set',this);this['_adapter']=_0x287f4e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x332e58=!0x1,toJSON:_0x54c10c=!0x1}={}){const _0x57ee38=[];for(const _0x5bc448 of this['_suggestions']['values']())_0x332e58&&!_0x5bc448['isInContent']||_0x57ee38['push'](_0x5bc448);return _0x54c10c?_0x57ee38['map'](_0x48d3d2=>_0x48d3d2['toJSON']()):_0x57ee38;}['getSuggestion'](_0x29acef){const _0x5cbbb2=this['_suggestions']['get'](_0x29acef);if(!_0x5cbbb2)throw new _0x444d46('track-changes-suggestion-not-found',this);return _0x5cbbb2;}['hasSuggestion'](_0x4d12e3){return this['_suggestions']['has'](_0x4d12e3);}['addSuggestionData'](_0x88e440){const {authorId:_0x3612df,id:_0x3c47e7,attributes:_0x49c64a}=_0x88e440,[_0x1f58f4,_0x4d94eb]=_0x88e440['type']['split'](':'),_0x1fca13=this['_suggestions']['get'](_0x3c47e7)||this['_createSuggestion'](_0x1f58f4,_0x4d94eb,_0x3c47e7,_0x3612df,_0x49c64a);if(this['_addThreadToSuggestion'](_0x1fca13),this['_checkSuggestionCorrectness'](_0x1fca13,_0x1f58f4,_0x4d94eb||null,_0x3612df),_0x1fca13['createdAt']=_0x88e440['createdAt'],_0x1fca13['_isDataLoaded']=!0x0,_0x49c64a&&_0x49c64a['@external']){const _0x545db9=_0x49c64a['@external'],_0x369b66=this['_getExternalAuthor'](_0x545db9['authorName']);_0x1fca13['authoredAt']=_0x545db9['createdAt'],_0x1fca13['author']=_0x369b66,_0x1fca13['isExternal']=!0x0;}else _0x1fca13['authoredAt']=_0x88e440['createdAt'];switch(_0x88e440['data']&&(_0x1fca13['data']=_0x88e440['data']),_0x88e440['attributes']&&(_0x1fca13['attributes']=_0x88e440['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1fca13['_saved']=!0x0),this['_suggestionState']['get'](_0x1fca13)){case'notReady':this['_suggestionState']['set'](_0x1fca13,'dataReady');break;case'markerReady':_0x1fca13['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1fca13])),this['_refreshSuggestionsChain'](new Set([_0x1fca13])),this['_suggestionState']['set'](_0x1fca13,'ready'),this['fire']('suggestionLoaded',_0x1fca13)):this['_suggestionState']['set'](_0x1fca13,'removed');}return _0x1fca13;}['acceptSuggestion'](_0x5c551c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x311835 of _0x5c551c['getAllAdjacentSuggestions']())_0x311835['accept']();});});}['discardSuggestion'](_0x5b7be3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5860f5 of _0x5b7be3['getAllAdjacentSuggestions']())_0x5860f5['discard']();});});}['enableCommand'](_0x81a644,_0x1c41f6){const _0x333a0d=this['editor']['commands']['get'](_0x81a644);if(!_0x333a0d)throw new _0x444d46('track-changes-command-not-found',this,{'commandName':_0x81a644});if(this['_enabledCommands']['has'](_0x333a0d))throw new _0x444d46('track-changes-enable-command-twice',this,{'commandName':_0x81a644});this['_enabledCommands']['add'](_0x333a0d),_0x1c41f6&&_0x333a0d['on']('execute',(_0x9038da,_0x5827e1)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5827e1['length']>0x0&&_0x5827e1[_0x5827e1['length']-0x1]&&_0x5827e1[_0x5827e1['length']-0x1]['forceDefaultExecution']?_0x5827e1['pop']():(_0x9038da['return']=_0x1c41f6((..._0x79afb3)=>_0x333a0d['execute'](..._0x79afb3,{'forceDefaultExecution':!0x0}),..._0x5827e1),_0x9038da['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3691cc){let _0x6d65a6,_0x55034b;const _0x339e3b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x6d65a6=_0x3691cc();}catch(_0x41a4a3){_0x55034b=_0x41a4a3;}return _0x339e3b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x55034b&&_0x444d46['rethrowUnexpectedError'](_0x55034b,this),_0x6d65a6;}['markInsertion'](_0x28de2b,_0xdc2480=null,_0x38de07={}){if(_0x28de2b['isCollapsed'])return null;const _0x17d547=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2969e9,meta:_0x167d68}of this['_findSuggestions'](_0x28de2b,'insertion'))if(_0x167d68['isOwn']){if(!_0x167d68['isNextTo']){if(_0x167d68['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x2969e9,_0x38de07))continue;return _0x2969e9;}if(Lt(_0x2969e9,_0x38de07))return _0x2969e9;this['_breakSuggestionMarker'](_0x2969e9,_0x28de2b['start'],_0x28de2b['end']);break;}if(_0xdc2480==_0x2969e9['subType']&&Lt(_0x2969e9,_0x38de07)){const _0x9e09bc=_0x2969e9['getFirstRange']();return _0x9e09bc['start']['isEqual'](_0x28de2b['end'])?this['_setSuggestionRange'](_0x2969e9,this['_model']['createRange'](_0x28de2b['start'],_0x9e09bc['end'])):this['_setSuggestionRange'](_0x2969e9,this['_model']['createRange'](_0x9e09bc['start'],_0x28de2b['end'])),_0x2969e9;}}const _0x4453e4=_0x1fa7bb(),_0x387960=_0x17d547['id'],_0x2b5a0f=_0xdc2480?'insertion:'+_0xdc2480:'insertion',_0x595465=this['_setSuggestionData']({'id':_0x4453e4,'type':_0x2b5a0f,'createdAt':new Date(),'authorId':_0x387960,'attributes':_0x38de07});return this['_addSuggestionMarker'](_0x2b5a0f,_0x4453e4,_0x387960,_0x28de2b),_0x595465;}['markMultiRangeInsertion'](_0x313a2b,_0x3b606b='multi',_0x111665={}){const _0xeca257=this['editor']['plugins']['get']('Users')['me'],_0x5b4dce=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3b606b,'join');for(const _0x33996b of this['getSuggestions']())if(_0x33996b['author']['id']==_0xeca257['id']&&'insertion'==_0x33996b['type']&&_0x33996b['subType']==_0x3b606b&&Lt(_0x33996b,_0x111665)&&(_0x5b4dce(_0x33996b['getRanges'](),_0x313a2b)||_0x5b4dce(_0x313a2b,_0x33996b['getRanges']()))){for(const _0x3e6a19 of _0x313a2b)_0x33996b['addRange'](_0x3e6a19);return _0x33996b;}for(const {suggestion:_0xd11dee,meta:_0x4a800b}of this['_findSuggestions'](_0x313a2b,'insertion')){if(!_0x4a800b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4a800b['containsRangeInObject'])continue;if(!Lt(_0xd11dee,_0x111665))continue;let _0x464086=!0x0;for(const _0x4a020c of _0xd11dee['getRanges']())for(const _0x2af674 of _0x313a2b)if(!_0x4a020c['containsRange'](_0x2af674)){_0x464086=!0x1;break;}if(_0x464086)return _0xd11dee;}const _0x30fe4b=_0x1fa7bb(),_0x523496=_0xeca257['id'],_0x141721='insertion:'+_0x3b606b,_0x579dae=this['_setSuggestionData']({'id':_0x30fe4b,'type':_0x141721,'createdAt':new Date(),'authorId':_0x523496,'attributes':_0x111665});for(const _0x4853be of _0x313a2b)this['_addSuggestionMarker'](_0x141721,_0x30fe4b,_0x523496,_0x4853be,u['getMultiRangeId']());return _0x579dae;}['markInlineFormat'](_0x564558,_0x48db64,_0x2ed884=null,_0x115ff9={}){if(_0x2ed884=_0x2ed884||Vt(_0x48db64),_0x564558['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x524111=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2ed884,'accept');return this['forceDefaultExecution'](()=>_0x524111([_0x564558],_0x48db64,_0x115ff9)),null;}const _0x3dd2a1=this['editor']['plugins']['get']('Users')['me'],_0x2beba2=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x116f1a,meta:_0x4c00e9}of this['_findSuggestions'](_0x564558,'insertion'))_0x4c00e9['isOwn']&&!_0x4c00e9['isInsideObject']&&_0x2beba2['push'](..._0x116f1a['getRanges']());}const _0x46abdf=function(_0xd985b3,_0x115b8d){const _0x35f151=[];for(const _0x84eeb8 of _0x115b8d){const _0x580b08=_0xd985b3['getIntersection'](_0x84eeb8);_0x580b08&&_0x35f151['push'](_0x580b08);}return _0x35f151;}(_0x564558,_0x2beba2),_0x5b27b5=function(_0x144e54,_0x19f5be){const _0x345baf=[_0x144e54];for(const _0x32803c of _0x19f5be){let _0x229d82=0x0;for(;_0x229d82<_0x345baf['length'];){const _0x18683a=_0x345baf[_0x229d82]['getDifference'](_0x32803c);_0x345baf['splice'](_0x229d82,0x1,..._0x18683a),_0x229d82+=_0x18683a['length'];}}return _0x345baf;}(_0x564558,_0x2beba2);_0x46abdf['length']&&this['_model']['change'](()=>{for(const _0x2ae119 of _0x46abdf){const _0x382396=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2ed884,'accept');this['forceDefaultExecution'](()=>_0x382396([_0x2ae119],_0x48db64,_0x115ff9));}});for(const _0x1c986f of _0x5b27b5){let _0xe43906=null,_0x5590d3=_0x1c986f['start'],_0xaf761d=_0x1c986f['end'];for(const {suggestion:_0x237097,meta:_0x3bf8a3}of this['_findSuggestions'](_0x1c986f,'formatInline')){if(!_0x3bf8a3['isOwn'])continue;if(_0x237097['subType']!=_0x2ed884)continue;if(!Lt(_0x237097,_0x115ff9))continue;const _0x469a20=_0x237097['getFirstRange']();if(_0x469a20['containsRange'](_0x1c986f,!0x0))return null;_0x5590d3=_0x5590d3['isBefore'](_0x469a20['start'])?_0x5590d3:_0x469a20['start'],_0xaf761d=_0xaf761d['isAfter'](_0x469a20['end'])?_0xaf761d:_0x469a20['end'],_0xe43906?_0x469a20['start']['isBefore'](_0xe43906['getFirstRange']()['start'])?(_0xe43906['removeMarkers'](),_0xe43906=_0x237097):_0x237097['removeMarkers']():_0xe43906=_0x237097;}const _0x160a96=this['_model']['createRange'](_0x5590d3,_0xaf761d);if(_0xe43906)this['_setSuggestionRange'](_0xe43906,_0x160a96);else{const _0x1cd36f=_0x1fa7bb(),_0x534589=_0x3dd2a1['id'];this['_setSuggestionData']({'id':_0x1cd36f,'type':'formatInline:'+_0x2ed884,'data':_0x48db64,'createdAt':new Date(),'authorId':_0x534589,'attributes':_0x115ff9}),this['_addSuggestionMarker']('formatInline:'+_0x2ed884,_0x1cd36f,_0x534589,_0x160a96);}}return null;}['markBlockFormat'](_0x4a5af6,_0x5a65bd,_0x547457=[],_0x428fbf=null,_0x15093d={}){_0x5a65bd['formatGroupId']||(_0x5a65bd['formatGroupId']=_0x5a65bd['commandName']),_0x5a65bd['multipleBlocks']=_0x4a5af6['is']('range'),_0x428fbf=_0x428fbf||Vt(_0x5a65bd);const _0x335ab2=_0x547457['map'](_0x2f78d5=>Gt(_0x2f78d5,this['_model'])),_0x1690f5=_0x4a5af6['is']('range')?_0x4a5af6:Gt(_0x4a5af6,this['_model']);if('never'===this['_trackFormatChanges']){const _0x24cd32=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x428fbf,'accept');return this['forceDefaultExecution'](()=>_0x24cd32([_0x1690f5],_0x5a65bd,_0x15093d)),null;}_0x335ab2['push'](_0x1690f5);let _0x4dcc90=!0x0;for(const _0x5336f1 of _0x335ab2)if(!this['_rangeIsInLocalUserInsertion'](_0x5336f1)){_0x4dcc90=!0x1;break;}if(_0x4dcc90&&'always'!==this['_trackFormatChanges']){const _0x43738d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x428fbf,'accept');return this['forceDefaultExecution'](()=>_0x43738d([_0x1690f5],_0x5a65bd,_0x15093d)),null;}let _0xf712b3=null,_0x3aed1d=_0x1690f5['start'],_0xe016c0=_0x1690f5['end'];for(const {suggestion:_0x4cddd3,meta:_0x1770a8}of this['_findSuggestions'](_0x1690f5,'formatBlock')){if(!_0x1770a8['isOwn'])continue;if(_0x1770a8['isNextTo']||_0x1770a8['containsRangeInObject']||_0x1770a8['isInsideObject'])continue;if(_0x4cddd3['data']['formatGroupId']!=_0x5a65bd['formatGroupId'])continue;if(!Lt(_0x4cddd3,_0x15093d))continue;const _0x43405e=_0x4cddd3['getFirstRange']();if(_0x4cddd3['subType']==_0x428fbf){if(_0x43405e['containsRange'](_0x1690f5,!0x0))return null;_0x3aed1d=_0x3aed1d['isBefore'](_0x43405e['start'])?_0x3aed1d:_0x43405e['start'],_0xe016c0=_0xe016c0['isAfter'](_0x43405e['end'])?_0xe016c0:_0x43405e['end'],_0xf712b3?_0x43405e['start']['isBefore'](_0xf712b3['getFirstRange']()['start'])?(_0xf712b3['removeMarkers'](),_0xf712b3=_0x4cddd3):_0x4cddd3['removeMarkers']():_0xf712b3=_0x4cddd3;}else{const _0x498e3c=_0x1690f5['getIntersection'](_0x43405e);this['_cutOutSuggestionMarker'](_0x4cddd3,_0x498e3c);}}const _0x2c1a28=this['editor']['plugins']['get']('Users')['me'],_0x2cb9ee=_0x1fa7bb(),_0x337d3d=_0x2c1a28['id'];if(_0xf712b3)return this['_setSuggestionRange'](_0xf712b3,this['_model']['createRange'](_0x3aed1d,_0xe016c0)),_0xf712b3;{const _0x4e0ebd=this['_setSuggestionData']({'id':_0x2cb9ee,'type':'formatBlock:'+_0x428fbf,'data':_0x5a65bd,'createdAt':new Date(),'authorId':_0x337d3d,'attributes':_0x15093d});return this['_addSuggestionMarker']('formatBlock:'+_0x428fbf,_0x2cb9ee,_0x337d3d,this['_model']['createRange'](_0x3aed1d,_0xe016c0)),_0x4e0ebd;}}['markMultiRangeBlockFormat'](_0x4bf0ad,_0x55065c,_0x52ebaa=[],_0x31306d=null,_0x5eb8f2={}){_0x55065c['formatGroupId']||(_0x55065c['formatGroupId']=_0x55065c['commandName']);const _0x127a70=_0x4bf0ad[0x0];_0x55065c['multipleBlocks']=_0x127a70['is']('range'),_0x31306d=_0x31306d||Vt(_0x55065c);const _0xf5daad=_0x52ebaa['map'](_0x3b8382=>Gt(_0x3b8382,this['_model'])),_0x2a2ae5=_0x127a70['is']('range')?_0x4bf0ad:_0x4bf0ad['map'](_0x2b4109=>Gt(_0x2b4109,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3a0fd2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x31306d,'accept');return this['forceDefaultExecution'](()=>_0x3a0fd2(_0x2a2ae5,_0x55065c,_0x5eb8f2)),null;}_0xf5daad['push'](..._0x2a2ae5);let _0x5012ff=!0x0;for(const _0x51d840 of _0xf5daad)if(!this['_rangeIsInLocalUserInsertion'](_0x51d840)){_0x5012ff=!0x1;break;}if(_0x5012ff&&'always'!==this['_trackFormatChanges']){const _0x2f5121=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x31306d,'accept');return this['forceDefaultExecution'](()=>_0x2f5121(_0x2a2ae5,_0x55065c,_0x5eb8f2)),null;}const _0x131504=this['editor']['plugins']['get']('Users')['me'];for(const _0x22a252 of this['getSuggestions']()){if(_0x22a252['author']['id']!=_0x131504['id'])continue;if('formatBlock'!=_0x22a252['type']||_0x22a252['data']['formatGroupId']!=_0x55065c['formatGroupId'])continue;if(!Lt(_0x22a252,_0x5eb8f2))continue;const _0x2cfb68=_0x22a252['subType']==_0x31306d;for(let _0x3badee=0x0;_0x3badee<_0x2a2ae5['length'];_0x3badee++){const _0x52eb48=_0x2a2ae5[_0x3badee];for(const _0x4ada79 of _0x22a252['getMarkers']()){const _0x42b8e2=_0x4ada79['getRange']();if(_0x52eb48['isEqual'](_0x42b8e2)){_0x2cfb68?(_0x2a2ae5['splice'](_0x3badee,0x1),_0x3badee--):_0x22a252['removeMarker'](_0x4ada79['name']);break;}}}}if(0x0==_0x2a2ae5['length'])return null;const _0x15ccd1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x31306d,'join');for(const _0x4bfe38 of this['getSuggestions']())if(_0x4bfe38['author']['id']==_0x131504['id']&&'formatBlock'==_0x4bfe38['type']&&_0x4bfe38['data']['formatGroupId']==_0x55065c['formatGroupId']&&_0x4bfe38['subType']==_0x31306d&&Lt(_0x4bfe38,_0x5eb8f2)&&(_0x15ccd1(_0x4bfe38['getRanges'](),_0x2a2ae5)||_0x15ccd1(_0x2a2ae5,_0x4bfe38['getRanges']()))){for(const _0xcf7f3d of _0x2a2ae5)_0x4bfe38['addRange'](_0xcf7f3d);return _0x4bfe38;}const _0x4f1776=_0x1fa7bb(),_0x27d126=_0x131504['id'],_0x12ada2='formatBlock:'+_0x31306d,_0xe817cd=this['_setSuggestionData']({'id':_0x4f1776,'type':_0x12ada2,'data':_0x55065c,'createdAt':new Date(),'authorId':_0x27d126,'attributes':_0x5eb8f2});for(const _0x39721a of _0x2a2ae5)this['_addSuggestionMarker'](_0x12ada2,_0x4f1776,_0x27d126,_0x39721a,u['getMultiRangeId']());return _0xe817cd;}['markDeletion'](_0x160f10,_0x35a82a=null,_0xe2a489={}){if(_0x160f10['isCollapsed'])return null;const _0x7d6ec3=this['editor']['plugins']['get']('Users')['me'],_0x28ee8c=new _0x268b03(_0x160f10['start'],_0x160f10['end']);for(const {suggestion:_0x238e33,meta:_0x39daee}of this['_findSuggestions'](_0x28ee8c,'insertion'))if(_0x39daee['isOwn']&&!_0x39daee['isNextTo']){if(_0x238e33['isMultiRange']){const _0x4fc88a=_0x238e33['getRanges']()['filter'](_0x39cabe=>'$graveyard'!=_0x39cabe['root']['rootName']);_0x4fc88a['every'](_0x376b2d=>_0x28ee8c['containsRange'](_0x376b2d,!0x0))&&_0x238e33['discard']();if(_0x4fc88a['some'](_0x2725d4=>_0x2725d4['containsRange'](_0x28ee8c,!0x0))){const _0x4b02e4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x35a82a,'accept');return this['forceDefaultExecution'](()=>_0x4b02e4([_0x28ee8c],null,_0xe2a489)),null;}}else{const _0x4a9408=_0x28ee8c['getIntersection'](_0x238e33['getFirstRange']());null!==_0x4a9408&&_0x238e33['_onDiscard']([_0x4a9408],null,_0xe2a489);}}if(_0x28ee8c['detach'](),_0x28ee8c['isCollapsed']||'$graveyard'==_0x28ee8c['root']['rootName'])return null;let _0x60d922=null,_0x438d95=_0x28ee8c['start'],_0x40b3ae=_0x28ee8c['end'];const _0x54d06f=this['_findSuggestions'](_0x28ee8c,'deletion');for(const {suggestion:_0x2363a0,meta:_0x5bd931}of _0x54d06f){const _0x2a86af=this['_model']['createRange'](_0x438d95,_0x40b3ae);if(_0x5bd931['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5bd931['containsRangeInObject']&&!_0x5bd931['isInsideObject'])){if(_0x2363a0['isMultiRange']){if(!Lt(_0x2363a0,_0xe2a489))continue;let _0x15619a=!0x0;for(const _0x2f5495 of _0x2363a0['getRanges']()){if(_0x2f5495['containsRange'](_0x2a86af,!0x0))return _0x2363a0;_0x2a86af['containsRange'](_0x2f5495)||(_0x15619a=!0x1);}_0x15619a&&_0x2363a0['discard']();}else{const _0xb8d686=_0x2363a0['getFirstRange']();if(_0xb8d686['containsRange'](_0x2a86af,!0x0))return _0x2363a0;if(!Lt(_0x2363a0,_0xe2a489)){_0x2a86af['containsRange'](_0xb8d686)?_0x2363a0['removeMarkers']():_0xb8d686['containsPosition'](_0x438d95)?_0x438d95=_0xb8d686['end']:_0xb8d686['containsPosition'](_0x40b3ae)&&(_0x40b3ae=_0xb8d686['start']);continue;}_0x438d95=_0x438d95['isBefore'](_0xb8d686['start'])?_0x438d95:_0xb8d686['start'],_0x40b3ae=_0x40b3ae['isAfter'](_0xb8d686['end'])?_0x40b3ae:_0xb8d686['end'],_0xe2a489=Object['assign']({},_0x2363a0['attributes']),_0x60d922?_0xb8d686['start']['isBefore'](_0x60d922['getFirstRange']()['start'])?(_0x60d922['removeMarkers'](),_0x60d922=_0x2363a0):_0x2363a0['removeMarkers']():_0x60d922=_0x2363a0;}}}if(_0x60d922)return this['_setSuggestionRange'](_0x60d922,this['_model']['createRange'](_0x438d95,_0x40b3ae)),_0x60d922;{const _0x520106=_0x1fa7bb(),_0x235d9b=this['_model']['createRange'](_0x438d95,_0x40b3ae),_0x33e11d=_0x7d6ec3['id'],_0x31329b=_0x35a82a?'deletion:'+_0x35a82a:'deletion',_0x253859=this['_setSuggestionData']({'id':_0x520106,'type':_0x31329b,'createdAt':new Date(),'authorId':_0x33e11d,'attributes':_0xe2a489});return this['_addSuggestionMarker'](_0x31329b,_0x520106,_0x33e11d,_0x235d9b),_0x253859;}}['markMultiRangeDeletion'](_0xac05b4,_0x9c1713='multi',_0x315753={}){const _0x257c63=this['editor']['plugins']['get']('Users')['me'],_0x4877f2=_0xac05b4['map'](_0x38108d=>new _0x268b03(_0x38108d['start'],_0x38108d['end'])),_0x39d376=new Set();for(const {suggestion:_0x4c71dc,meta:_0x53f253}of this['_findSuggestions'](_0x4877f2,'insertion'))_0x53f253['isOwn']&&!_0x53f253['isNextTo']&&_0x39d376['add'](_0x4c71dc);for(const _0x3d5b61 of _0x39d376)if(_0x3d5b61['isMultiRange']){const _0x2c9b82=_0x3d5b61['getRanges']();(!_0x3d5b61['attributes']||!_0x3d5b61['attributes']['skipNestingCheck'])&&(_0x2c9b82['every'](_0x37d7b8=>_0x4877f2['some'](_0x1b461d=>_0x1b461d['containsRange'](_0x37d7b8,!0x0)))&&_0x3d5b61['discard']());if(_0x4877f2['every'](_0x148a23=>_0x2c9b82['some'](_0x252828=>_0x252828['containsRange'](_0x148a23,!0x0)))){const _0xd66ba6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x9c1713,'accept');return this['forceDefaultExecution'](()=>_0xd66ba6(_0xac05b4,null,_0x315753)),null;}}else{const _0x112982=_0x3d5b61['getFirstRange']();_0x4877f2['some'](_0x34eac5=>_0x34eac5['containsRange'](_0x112982,!0x0))&&_0x3d5b61['discard']();if(_0x4877f2['every'](_0x3103a8=>_0x112982['containsRange'](_0x3103a8,!0x0))){const _0x3811d0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x9c1713,'accept');return this['forceDefaultExecution'](()=>_0x3811d0(_0x4877f2,null,_0x315753)),null;}}const _0x34a5aa=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x9c1713,'join');let _0x5dcd24=null;for(const _0x4ebc9d of this['getSuggestions']())if(_0x4ebc9d['author']['id']==_0x257c63['id']&&_0x4ebc9d['isInContent']&&'deletion'==_0x4ebc9d['type']&&_0x4ebc9d['subType']==_0x9c1713&&Lt(_0x4ebc9d,_0x315753)&&(_0x34a5aa(_0x4ebc9d['getRanges'](),_0x4877f2)||_0x34a5aa(_0x4877f2,_0x4ebc9d['getRanges']()))){if(_0x5dcd24){if(_0x4ebc9d['commentThread']&&_0x4ebc9d['commentThread']['length'])continue;for(const _0x193be5 of _0x4ebc9d['getRanges']())_0x5dcd24['isIntersectingWithRange'](_0x193be5)||_0x5dcd24['addRange'](_0x193be5);_0x4ebc9d['removeMarkers']();}else{_0x5dcd24=_0x4ebc9d;for(const _0x48edb0 of _0x4877f2)_0x4ebc9d['isIntersectingWithRange'](_0x48edb0)||_0x4ebc9d['addRange'](_0x48edb0);}}if(_0x5dcd24)return _0x5dcd24;_0x39d376['clear']();for(const {suggestion:_0x1bf576,meta:_0x57f218}of this['_findSuggestions'](_0x4877f2,'deletion'))_0x57f218['isOwn']&&(this['_mergeNestedSuggestions']||!_0x57f218['containsRangeInObject']&&!_0x57f218['isInsideObject'])&&Lt(_0x1bf576,_0x315753)&&_0x39d376['add'](_0x1bf576);for(const _0x3fbdcd of _0x39d376){const _0x4e7c85=_0x3fbdcd['getRanges']();if(!_0x315753||!_0x315753['skipNestingCheck']){if(_0x4877f2['every'](_0x536353=>_0x4e7c85['some'](_0x36fa40=>_0x36fa40['containsRange'](_0x536353,!0x0))))return _0x3fbdcd;}(!_0x3fbdcd['attributes']||!_0x3fbdcd['attributes']['skipNestingCheck'])&&(_0x4e7c85['every'](_0x2bdeab=>_0x4877f2['some'](_0xd68953=>_0xd68953['containsRange'](_0x2bdeab,!0x0)))&&_0x3fbdcd['discard']());}const _0x23a6a0=_0x1fa7bb(),_0x347a61=_0x257c63['id'],_0x513fa8='deletion:'+_0x9c1713,_0x2633ca=this['_setSuggestionData']({'id':_0x23a6a0,'type':_0x513fa8,'createdAt':new Date(),'authorId':_0x347a61,'attributes':_0x315753});for(const _0x227183 of _0x4877f2)_0x227183['detach'](),_0x227183['isCollapsed']||'$graveyard'==_0x227183['root']['rootName']||this['_addSuggestionMarker'](_0x513fa8,_0x23a6a0,_0x347a61,_0x227183,u['getMultiRangeId']());return _0x2633ca;}['markAttributeChange'](_0x5b3c33,_0x4d9858,_0x8146e8,_0x29d6e4,_0x3126b5){if(_0x5b3c33['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1c81f2=this['editor']['plugins']['get']('Users')['me']['id'],_0x434933=Array['from'](this['_suggestions']['values']())['filter'](_0x1f6079=>'attribute'==_0x1f6079['type']&&_0x1f6079['data']['key']==_0x4d9858&&_0x1f6079['isIntersectingWithRange'](_0x5b3c33));if('default'===this['_trackFormatChanges']){const _0x50e833=this['_findSuggestions'](_0x5b3c33,'insertion')['filter'](({meta:_0x833519})=>_0x833519['isOwn']&&!_0x833519['isInsideObject']&&!_0x833519['isNextTo'])['map'](({suggestion:_0x3f70c4})=>_0x3f70c4);_0x434933['unshift'](..._0x50e833);}const _0xf6f9dd=new Map([[_0x5b3c33,_0x8146e8]]);for(const _0x2e4777 of _0x434933){const _0x600a0='attribute'==_0x2e4777['type']?_0x2e4777['data']['oldValue']:void 0x0,_0x30d226=_0x2e4777['getFirstRange'](),_0x589aaa=Array['from'](_0xf6f9dd['keys']())['find'](_0x14754e=>_0x14754e['isIntersecting'](_0x30d226));if(!_0x589aaa)continue;const _0x36c7c4=_0x589aaa['getDifference'](_0x30d226);this['_isBlockAttribute'](_0x4d9858)&&'insertion'==_0x2e4777['type']&&0x0!=_0x36c7c4['length']||(_0xf6f9dd['delete'](_0x589aaa),_0x36c7c4['forEach'](_0x6d211a=>{_0xf6f9dd['set'](_0x6d211a,_0x8146e8);}),'insertion'!=_0x2e4777['type']&&_0x600a0!=_0x29d6e4&&_0xf6f9dd['set'](_0x589aaa['getIntersection'](_0x30d226),_0x600a0));}const _0x471f0c=[];for(const [_0x426587,_0x382d74]of _0xf6f9dd){const _0x476840=_0x1fa7bb(),_0xadc9e1={'key':_0x4d9858,'oldValue':_0x382d74,'newValue':_0x29d6e4};_0x4d9858['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':_0x4d9858});const _0x5d1de0=('attribute:'+(_0x4d9858+'|'+Vt({'newValue':_0x29d6e4})))['substring'](0x0,0x3c),_0x329453=this['_setSuggestionData']({'id':_0x476840,'type':_0x5d1de0,'data':_0xadc9e1,'createdAt':new Date(),'authorId':_0x1c81f2,'attributes':_0x3126b5});_0x471f0c['push'](_0x329453),this['_addSuggestionMarker'](_0x5d1de0,_0x476840,_0x1c81f2,_0x426587);}return _0x471f0c;}['enableDefaultAttributesIntegration'](_0x3cec0b){this['enableCommand'](_0x3cec0b,(_0x5ce0cf,..._0x32a33b)=>{this['_recordAttributeChanges'](()=>{_0x5ce0cf(..._0x32a33b);});});}['registerBlockAttribute'](_0x414d36){this['_blockAttributeKeys']['add'](_0x414d36);}['registerInlineAttribute'](_0x39cd94){this['_inlineAttributeKeys']['add'](_0x39cd94);}['_getAttributeKey'](_0x19d136){return'attribute'==_0x19d136['type']?_0x19d136['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x481446,_0x3256a8){const _0x393af4=_0x481446['getFirstMarker']();this['_model']['change'](_0x397504=>{_0x397504['updateMarker'](_0x393af4,{'range':_0x3256a8});});}['_addThreadToSuggestion'](_0x32feb2){const _0x1dcb89=_0x32feb2['id'],_0x5f49e3=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1dcb89)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5f49e3,'threadId':_0x1dcb89,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x503e69=this['_commentsRepository']['getCommentThread'](_0x1dcb89);_0x503e69['unbind']('isRemovable'),_0x503e69['isRemovable']=!0x1,_0x32feb2['commentThread']=_0x503e69;}['_checkSuggestionCorrectness'](_0x126dd8,_0x3b5f1e,_0x5921fe,_0x5a19f2){if(_0x126dd8['type']!=_0x3b5f1e||_0x126dd8['subType']!=_0x5921fe||_0x126dd8['creator']['id']!=_0x5a19f2)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x444d46('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5a2814,_0x11643a){const _0x3b1d92=_0x5a2814['getFirstRange']();if(_0x11643a['isEqual'](_0x3b1d92))_0x5a2814['removeMarkers']();else{if(_0x3b1d92['containsRange'](_0x11643a)){const _0x29dc21=this['_model']['createPositionAt'](_0x11643a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5a2814,this['_model']['createRange'](_0x3b1d92['start'],_0x29dc21));const _0x11b5b4=_0x1fa7bb(),_0x29d2ca=_0x5a2814['creator']['id'],_0x8c02ae=_0x5a2814['type']+':'+_0x5a2814['subType'];this['_setSuggestionData']({'id':_0x11b5b4,'type':_0x8c02ae,'createdAt':new Date(),'authorId':_0x29d2ca,'data':_0x5a2814['data'],'attributes':_0x5a2814['attributes']});const _0x53aa0f=this['_model']['createPositionAt'](_0x11643a['end']['parent'],'after'),_0x39d017=this['_model']['createRange'](_0x53aa0f,_0x3b1d92['end']);this['_addSuggestionMarker'](_0x8c02ae,_0x11b5b4,_0x29d2ca,_0x39d017);}else{if(_0x3b1d92['containsPosition'](_0x11643a['start'])){const _0x288ed2=this['_model']['createPositionAt'](_0x11643a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5a2814,this['_model']['createRange'](_0x3b1d92['start'],_0x288ed2));}else{const _0x5706bb=this['_model']['createPositionAt'](_0x11643a['end']['parent'],'after');this['_setSuggestionRange'](_0x5a2814,this['_model']['createRange'](_0x5706bb,_0x3b1d92['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x527353){for(const {suggestion:_0xf423df,meta:_0x268eb9}of this['_findSuggestions'](_0x527353,'insertion')){if(!_0x268eb9['isOwn'])continue;const _0x20c8ab=_0xf423df['getRanges']();for(const _0x162dab of _0x20c8ab)if(!_0x527353['getDifference'](_0x162dab)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5c4593){const _0x54ea7b=this['editor']['plugins']['get']('Users')['getUser'](_0x5c4593);if(!_0x54ea7b)throw new _0x444d46('track-changes-user-not-found',this);return _0x54ea7b;}['_getExternalAuthor'](_0x3ed5c7){const _0x210f8b=this['editor']['plugins']['get']('Users'),_0x427b0e=_0x35e0d0('external:'+_0x3ed5c7),_0x3919b7=_0x210f8b['getUser'](_0x427b0e);return _0x3919b7||_0x210f8b['addUser']({'id':_0x427b0e,'name':_0x3ed5c7});}['_createSuggestion'](_0x426fb5,_0x4eb08c,_0x34de55,_0x499667,_0x5eb049){const _0x370b00=this['_getAuthorFromId'](_0x499667),_0x2a1802=this['_suggestionFactory']['buildSuggestion'](_0x426fb5,_0x4eb08c,_0x34de55,_0x370b00,_0x5eb049,_0x4e62e1=>{this['_updateSuggestionData'](_0x34de55,{'attributes':_0x4e62e1});const _0x17df28=this['getSuggestion'](_0x34de55);this['_joinWithAdjacentSuggestions'](new Set([_0x17df28])),this['_refreshSuggestionsChain'](new Set([_0x17df28]));});return this['listenTo'](_0x2a1802,'accept',()=>{this['_updateSuggestionData'](_0x34de55,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2a1802,'discard',()=>{this['_updateSuggestionData'](_0x34de55,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x34de55,_0x2a1802),this['_suggestionState']['set'](_0x2a1802,'notReady'),_0x2a1802;}['_splitMarkerName'](_0x362c8c){const _0x1a222f=_0x362c8c['split'](':');return{'group':_0x1a222f[0x0],'type':_0x1a222f[0x1],'subType':_0x1a222f['length']>=0x5?_0x1a222f[0x2]:null,'id':_0x1a222f['length']<0x5?_0x1a222f[0x2]:_0x1a222f[0x3],'authorId':_0x1a222f['length']<0x5?_0x1a222f[0x3]:_0x1a222f[0x4],'markerCount':0x6==_0x1a222f['length']?_0x1a222f[0x5]:null};}['_breakSuggestionMarker'](_0x56c429,_0x5921e5,_0x399258){const _0x1493a9=_0x56c429['getFirstRange'](),_0x16a267=_0x1493a9['start'],_0x2b37cf=_0x1493a9['end'];this['_setSuggestionRange'](_0x56c429,this['_model']['createRange'](_0x16a267,_0x5921e5));const _0xeb6f5e=_0x1fa7bb(),_0x474a68=_0x56c429['creator']['id'],_0x4161e4=_0x56c429['type']+(_0x56c429['subType']?':'+_0x56c429['subType']:'');this['_setSuggestionData']({'id':_0xeb6f5e,'type':_0x4161e4,'createdAt':new Date(),'authorId':_0x474a68,'originalSuggestionId':_0x56c429['id'],'attributes':_0x56c429['attributes'],'data':_0x56c429['data']});const _0x19be19=this['_getAttributeKey'](_0x56c429);('formatBlock'==_0x56c429['type']||_0x19be19&&this['_isBlockAttribute'](_0x19be19))&&(_0x399258=this['_model']['createPositionBefore'](_0x399258['parent'])),this['_addSuggestionMarker'](_0x4161e4,_0xeb6f5e,_0x474a68,this['_model']['createRange'](_0x399258,_0x2b37cf));}['_findSuggestions'](_0x4574c4,_0x3683ee=null){const _0x537252=[],_0x5b1a67=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4574c4)||(_0x4574c4=[_0x4574c4]);for(const _0x4ffd01 of this['getSuggestions']()){if(!_0x4ffd01['isInContent'])continue;if(_0x3683ee&&_0x4ffd01['type']!=_0x3683ee)continue;let _0x1deb80=!0x1;for(const _0x259bf5 of _0x4ffd01['getRanges']()){for(const _0x4dd395 of _0x4574c4){const _0x4526bd=_0x4dd395['start']['isEqual'](_0x259bf5['end'])||_0x4dd395['end']['isEqual'](_0x259bf5['start']);if(_0x4526bd||_0x4dd395['getIntersection'](_0x259bf5)){const _0x2dce48=_0x4dd395['containsRange'](_0x259bf5)&&Rt(this['_model']['schema'],_0x259bf5['start'],_0x4dd395),_0x4e8d41=_0x259bf5['containsRange'](_0x4dd395)&&Rt(this['_model']['schema'],_0x4dd395['start'],_0x259bf5);_0x537252['push']({'suggestion':_0x4ffd01,'meta':{'isOwn':_0x5b1a67==_0x4ffd01['author'],'isNextTo':_0x4526bd,'isInsideObject':_0x2dce48,'containsRangeInObject':_0x4e8d41}}),_0x1deb80=!0x0;break;}}if(_0x1deb80)break;}}return _0x537252;}['_addSuggestionMarker'](_0x9372fa,_0x4d5c4f,_0x2bf4de,_0x2481e7,_0x2bc664){this['_model']['change'](_0x5ba3fc=>{let _0x42c196='suggestion:'+_0x9372fa+':'+_0x4d5c4f+':'+_0x2bf4de;_0x2bc664&&(_0x42c196=_0x42c196+':'+_0x2bc664),_0x5ba3fc['addMarker'](_0x42c196,{'range':_0x2481e7,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x554d86){const _0x1734fb=_0x554d86['previous'],_0x45eed8=_0x554d86['next'];_0x554d86['previous']=null,_0x554d86['next']=null,null!=_0x1734fb&&_0x1734fb['next']==_0x554d86&&(_0x1734fb['next']=_0x45eed8),null!=_0x45eed8&&_0x45eed8['previous']==_0x554d86&&(_0x45eed8['previous']=_0x1734fb),'ready'==this['_suggestionState']['get'](_0x554d86)&&(this['_suggestionState']['set'](_0x554d86,'removed'),this['fire']('suggestionUnloaded',_0x554d86,_0x1734fb,_0x45eed8));}['_setSuggestionData'](_0x36a560){const _0x54af8b=_0x36a560['id'],_0x636387=this['addSuggestionData'](_0x36a560);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xdb15c3=this['editor']['plugins']['get']('PendingActions'),_0x3a7dba=_0x636387['hasComments'],_0x1f0497=_0x636387['subType']?_0x636387['type']+':'+_0x636387['subType']:_0x636387['type'],_0x1c4e49=this['editor']['locale'],_0x1159cc=_0xdb15c3['add'](o(_0x1c4e49,'PENDING_ACTION_SUGGESTION')),_0x36477a={'id':_0x54af8b,'type':_0x1f0497,'hasComments':_0x3a7dba,'data':_0x36a560['data']||null,'originalSuggestionId':_0x36a560['originalSuggestionId']||null,'attributes':_0x636387['attributes']};this['_adapter']['addSuggestion'](_0x36477a)['then'](_0x329a12=>{_0x636387['_saved']=!0x0,_0xdb15c3['remove'](_0x1159cc),_0x329a12&&_0x329a12['createdAt']&&(this['_suggestions']['get'](_0x54af8b)['createdAt']=_0x329a12['createdAt']);})['catch'](_0xd88551=>{throw _0x4dd5e5('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x636387['discard']();}),_0x636387['stopListening'](),this['_suggestions']['delete'](_0x636387['id']),this['_suggestionState']['delete'](_0x636387),_0xd88551;});}return _0x636387;}['_isBlockAttribute'](_0x11deb6){return this['_blockAttributeKeys']['has'](_0x11deb6);}['_updateSuggestionData'](_0x208be7,_0x5cf89d){const _0x427ebe=this['editor']['plugins']['get']('PendingActions'),_0x1d28eb=this['getSuggestion'](_0x208be7);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1d28eb['_saved']){const _0x400403=_0x427ebe['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x208be7,_0x5cf89d)['then'](()=>{_0x427ebe['remove'](_0x400403);});}else _0x1d28eb['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x208be7,_0x5cf89d);});}}['_getSuggestionData'](_0x338d4c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x444d46('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x338d4c);}['_handleNewSuggestionMarker'](_0x3b0a93){const {id:_0x5d349a,type:_0x57a9ec,subType:_0x559368,authorId:_0x59d15b}=this['_splitMarkerName'](_0x3b0a93),_0x5ae0c9=this['_suggestions']['get'](_0x5d349a)||this['_createSuggestion'](_0x57a9ec,_0x559368,_0x5d349a,_0x59d15b,{});switch(this['_checkSuggestionCorrectness'](_0x5ae0c9,_0x57a9ec,_0x559368,_0x59d15b),this['_suggestionState']['get'](_0x5ae0c9)){case'notReady':this['_getSuggestionData'](_0x5d349a)['then'](_0x2dd289=>{let _0x47f528=Promise['resolve']();_0x2dd289['hasComments']&&(_0x47f528=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5d349a})),_0x47f528['then'](()=>{this['addSuggestionData'](_0x2dd289)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5ae0c9,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5d349a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5ae0c9,'ready'),this['fire']('suggestionLoaded',_0x5ae0c9);break;case'ready':this['fire']('suggestionChanged',_0x5ae0c9);}return _0x5ae0c9['addMarkerName'](_0x3b0a93),_0x5ae0c9;}['_refreshSuggestionsChain'](_0x90f8f9){const _0x1fdd73=Array['from'](_0x90f8f9),_0x371c53=_0x1fdd73['filter'](_0x38881d=>'attribute'==_0x38881d['type']);this['_refreshAttributeSuggestionsChain'](_0x371c53);const _0xacedcb=_0x1fdd73['filter'](_0x164c11=>!_0x164c11['isMultiRange']&&'attribute'!=_0x164c11['type']),_0x16aa6e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1beb8b=>!_0x1beb8b['isMultiRange']&&'attribute'!=_0x1beb8b['type']),_0x52e757=_0x16aa6e['filter'](_0x491e7b=>!_0x90f8f9['has'](_0x491e7b)),_0xa2a53d=new Map(_0x16aa6e['map'](_0x5b5d84=>[_0x5b5d84,this['_suggestionFactory']['getSuggestionCallback'](_0x5b5d84['type'],_0x5b5d84['subType'],'chain')])),_0x273e81=new Map(_0x16aa6e['map'](_0x3d982f=>[_0x3d982f,_0x3d982f['getFirstRange']()])),_0x570aa4=new Set(),_0x225c89=new Set();for(let _0x556714=0x0;_0x556714<_0xacedcb['length'];_0x556714++)_0x1f4db4(_0xacedcb[_0x556714],_0xacedcb,_0x556714+0x1);for(let _0x5298f7=0x0;_0x5298f7<_0xacedcb['length'];_0x5298f7++)_0x1f4db4(_0xacedcb[_0x5298f7],_0x52e757,0x0);const _0x919f02=new Set();for(let _0x3ef42f=0x0;_0x3ef42f<_0xacedcb['length'];_0x3ef42f++){const _0x3150fa=_0xacedcb[_0x3ef42f];!_0x225c89['has'](_0x3150fa)&&_0x3150fa['previous']&&(_0x919f02['add'](_0x3150fa['previous']),_0x3150fa['previous']['next']===_0x3150fa&&(_0x3150fa['previous']['next']=null),_0x3150fa['previous']=null),!_0x570aa4['has'](_0x3150fa)&&_0x3150fa['next']&&(_0x919f02['add'](_0x3150fa['next']),_0x3150fa['next']['previous']===_0x3150fa&&(_0x3150fa['next']['previous']=null),_0x3150fa['next']=null);}function _0x1f4db4(_0x422380,_0x3797ba,_0x2e7173){for(let _0x1a7da1=_0x2e7173;_0x1a7da1<_0x3797ba['length'];_0x1a7da1++){const _0x5ec0c3=_0x57f1ee(_0x422380,_0x3797ba[_0x1a7da1]);_0x5ec0c3&&(_0x5ec0c3[0x0]['next']=_0x5ec0c3[0x1],_0x5ec0c3[0x1]['previous']=_0x5ec0c3[0x0],_0x570aa4['add'](_0x5ec0c3[0x0]),_0x225c89['add'](_0x5ec0c3[0x1]));}}function _0x57f1ee(_0x5185ad,_0x568353){if(_0x5185ad['author']['id']!==_0x568353['author']['id'])return null;const _0x142571=_0xa2a53d['get'](_0x5185ad)(_0x5185ad,_0x568353,_0x273e81['get'](_0x5185ad),_0x273e81['get'](_0x568353));if(!_0x142571)return null;return _0xa2a53d['get'](_0x568353)(_0x5185ad,_0x568353,_0x273e81['get'](_0x5185ad),_0x273e81['get'](_0x568353))?_0x142571[0x1]['commentThread']&&_0x142571[0x1]['commentThread']['length']?null:_0x142571:null;}_0x919f02['size']&&this['_refreshSuggestionsChain'](_0x919f02);}['_refreshAttributeSuggestionsChain'](_0x4aebd7){if(0x0==_0x4aebd7['length'])return;const _0x192d8b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22c2e7=>'attribute'==_0x22c2e7['type']&&_0x22c2e7['_isDataLoaded']),_0x5effab=[],_0x34625f=new Map();for(const _0x32fc09 of _0x192d8b){const _0x65b63e=_0x35e0d0(_0x32fc09['attributes']);_0x34625f['has'](_0x65b63e)||(_0x34625f['set'](_0x65b63e,_0x5effab['length']),_0x5effab['push']([]));const _0x38b546=_0x34625f['get'](_0x65b63e);_0x5effab[_0x38b546]['push'](_0x32fc09);}!(function(){_0x5effab['sort']((_0x282e62,_0x398e77)=>{const _0x2707dc=_0x282e62[0x0]['createdAt'],_0x4d75bd=_0x398e77[0x0]['createdAt'];return _0x2707dc==_0x4d75bd?_0x282e62[0x0]['attributes']['groupId']<_0x398e77[0x0]['attributes']['groupId']?-0x1:0x1:_0x2707dc<_0x4d75bd?-0x1:0x1;});for(const _0x483c3a of _0x5effab)_0x483c3a['sort']((_0x12fc68,_0xbd3d93)=>_0x12fc68['id']<_0xbd3d93['id']?-0x1:0x1);}());for(let _0x382f36=0x0;_0x382f36<_0x5effab['length'];_0x382f36++){if(0x0==_0x5effab[_0x382f36]['length'])continue;const _0x38f319=[];for(let _0x1e6255=_0x382f36+0x1;_0x1e6255<_0x5effab['length'];_0x1e6255++)0x0!=_0x5effab[_0x1e6255]['length']&&_0x575831(_0x5effab[_0x382f36],_0x5effab[_0x1e6255])&&_0x38f319['push'](_0x1e6255);for(const _0x385a9a of _0x38f319)_0x5effab[_0x382f36]=_0x5effab[_0x382f36]['concat'](_0x5effab[_0x385a9a]),_0x5effab[_0x385a9a]=[];}for(const _0x51eeb0 of _0x5effab)for(let _0x4f8ec0=0x0;_0x4f8ec0<_0x51eeb0['length'];_0x4f8ec0++)_0x51eeb0[_0x4f8ec0]['next']=_0x51eeb0[_0x4f8ec0+0x1]||null;for(const _0x221d8d of _0x5effab)for(let _0x409027=0x0;_0x409027<_0x221d8d['length'];_0x409027++)_0x221d8d[_0x409027]['previous']=_0x221d8d[_0x409027-0x1]||null;function _0x575831(_0x16c746,_0x3acc7c){if(_0x16c746[0x0]['attributes']['groupId']!==_0x3acc7c[0x0]['attributes']['groupId']&&_0x16c746[0x0]['author']!==_0x3acc7c[0x0]['author'])return!0x1;if(!function(_0x13161e,_0x5a2788){if(!_0x13161e['hasComments']&&!_0x5a2788['hasComments'])return!0x0;if(_0x13161e['hasComments']&&_0x5a2788['hasComments'])return!0x1;if(_0x13161e['hasComments']&&_0x5a2788['createdAt']<_0x13161e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5a2788['hasComments']&&_0x13161e['createdAt']<_0x5a2788['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x16c746[0x0],_0x3acc7c[0x0]))return!0x1;const _0xcb5477=Bt(_0x16c746[0x0]['attributes'],'groupId'),_0xdf4c2f=Bt(_0x3acc7c[0x0]['attributes'],'groupId');if(!_0x480a18(_0xcb5477,_0xdf4c2f))return!0x1;return!!_0x16c746['every'](_0x2391bb=>_0x3acc7c['some'](_0x1e6088=>_0x2391bb['getFirstRange']()['isEqual'](_0x1e6088['getFirstRange']())))&&_0x3acc7c['every'](_0x33f161=>_0x16c746['some'](_0x5876d7=>_0x33f161['getFirstRange']()['isEqual'](_0x5876d7['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3a898e){const _0x14daf0=Array['from'](_0x3a898e),_0xcd2ae=this['getSuggestions']({'skipNotAttached':!0x0}),_0x12bd00=_0xcd2ae['filter'](_0x1827b6=>!_0x3a898e['has'](_0x1827b6)),_0x311424=new Map(_0x14daf0['map'](_0x1db121=>[_0x1db121,this['_suggestionFactory']['getSuggestionCallback'](_0x1db121['type'],_0x1db121['subType'],'join')])),_0x329fe6=new Map(_0xcd2ae['map'](_0x493c4f=>[_0x493c4f,_0x493c4f['getRanges']()]));for(let _0x29d602=0x0;_0x29d602<_0x14daf0['length'];_0x29d602++){if(_0x465e37(this,_0x14daf0[_0x29d602],_0x14daf0,_0x29d602+0x1))return!0x0;}for(let _0x519b3c=0x0;_0x519b3c<_0x14daf0['length'];_0x519b3c++){if(_0x465e37(this,_0x14daf0[_0x519b3c],_0x12bd00,0x0))return!0x0;}return!0x1;function _0x465e37(_0x46b9ba,_0x4c6886,_0x4ce76d,_0x5f0c98){for(let _0x5f00b4=_0x5f0c98;_0x5f00b4<_0x4ce76d['length'];_0x5f00b4++){const _0x181b8a=_0x4ce76d[_0x5f00b4];if(_0x181b8a['type']!==_0x4c6886['type']||_0x181b8a['author']['id']!==_0x4c6886['author']['id']||_0x181b8a['subType']!==_0x4c6886['subType'])continue;if(!Pt(_0x4c6886,_0x181b8a,['groupId']))continue;if('attribute'==_0x4c6886['type']&&_0x4c6886['data']['oldValue']!=_0x181b8a['data']['oldValue'])continue;if('attribute'==_0x4c6886['type']&&_0x46b9ba['_isBlockAttribute'](_0x4c6886['data']['key']))continue;if('formatBlock'==_0x4c6886['type']){const _0xe9c089=_0x46b9ba['editor']['model'],_0x129f94=_0x4c6886['getContainedElement']();if(_0x129f94&&(_0xe9c089['schema']['isObject'](_0x129f94)||_0xe9c089['schema']['isLimit'](_0x129f94)))continue;}const _0x3518d9=_0x311424['get'](_0x4c6886),_0x17ac15=_0x329fe6['get'](_0x4c6886),_0xf5c012=_0x329fe6['get'](_0x181b8a),_0x524843=_0x4c6886['commentThread']&&_0x4c6886['commentThread']['length'],_0x187c14=_0x181b8a['commentThread']&&_0x181b8a['commentThread']['length'];if(!_0x524843&&_0x3518d9(_0xf5c012,_0x17ac15))return _0x46b9ba['_joinSuggestions'](_0x181b8a,_0x4c6886),_0x329fe6['delete'](_0x4c6886),!0x0;if(!_0x187c14&&_0x3518d9(_0x17ac15,_0xf5c012))return _0x46b9ba['_joinSuggestions'](_0x4c6886,_0x181b8a),_0x329fe6['delete'](_0x181b8a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5703a0,_0x29e795){if(_0x5703a0['isMultiRange']){for(const _0x12f73b of _0x29e795['getRanges']())_0x5703a0['addRange'](_0x12f73b);}else{const _0x15da94=_0x29e795['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5703a0,this['_model']['createRange'](_0x5703a0['getFirstRange']()['start'],_0x15da94));}_0x29e795['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2fdb8e,_0x30211d){const _0x10c86c=_0x2fdb8e['startsWith']('format')||_0x2fdb8e['startsWith']('attribute')?'FORMATTING':_0x2fdb8e['toUpperCase']();return o(this['editor']['locale'],_0x30211d+'_'+_0x10c86c+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x122291=this['editor'];if(!_0x122291['ui'])return;const {ariaLiveAnnouncer:_0xbcffb8}=_0x122291['ui'];_0x17ab94(this['_model'],({left:_0x5f5c0f,entered:_0x401ae4})=>{for(const _0x442fc4 of _0x5f5c0f){const {group:_0x5c1f47,type:_0x4340f9}=this['_splitMarkerName'](_0x442fc4['name']);if('suggestion'===_0x5c1f47){_0xbcffb8['announce'](this['_getMarkerAnnouncementText'](_0x4340f9,'LEAVE'));break;}}for(const _0x2d0baf of _0x401ae4){const {group:_0x5c0c70,type:_0x49cf89}=this['_splitMarkerName'](_0x2d0baf['name']);if('suggestion'===_0x5c0c70){_0xbcffb8['announce'](this['_getMarkerAnnouncementText'](_0x49cf89,'ENTER'));break;}}});}['_processAttributeChanges'](_0x39686a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x39515a=this['editor'],_0x5a2593=_0x39515a['model']['document']['differ']['getChanges']();if(0x0==_0x5a2593['length'])return!0x1;const _0x2fd954=[],_0x51593d=_0x5a2593['filter'](_0x4c698a=>'attribute'==_0x4c698a['type']),_0x3206e3=_0x5a2593['filter'](_0xed5edb=>'insert'==_0xed5edb['type']&&'$text'!=_0xed5edb['name']),_0x29c9b8=_0x5a2593['filter'](_0x586d66=>'remove'==_0x586d66['type']&&'$text'!=_0x586d66['name']);for(const _0x22439f of _0x51593d)_0x2fd954['push']({'key':_0x22439f['attributeKey'],'newValue':_0x22439f['attributeNewValue'],'oldValue':_0x22439f['attributeOldValue'],'range':Ot(_0x22439f['range'],_0x39515a['model'])});for(const _0xe89f0a of _0x3206e3){const _0x5f634e=_0x29c9b8['find'](_0x36c951=>_0x36c951['position']['isEqual'](_0xe89f0a['position']));_0x5f634e&&_0x2fd954['push']({'key':m,'newValue':_0xe89f0a['name'],'oldValue':_0x5f634e['name'],'range':_0x39515a['model']['createRangeOn'](_0xe89f0a['position']['nodeAfter'])});}return 0x0!=_0x2fd954['length']&&this['_reduceExistingSuggestions'](_0x39686a,_0x2fd954);}['_processAttributeSuggestions'](_0x2dd62f){let _0x34ad8c=!0x1;const _0x47bf3b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x279b3e=>_0x279b3e['data']['newRange']&&_0x279b3e['name']['startsWith']('suggestion:attribute:'));for(const _0x568517 of _0x47bf3b){const {subType:_0x3dc256,id:_0x1d001a}=this['_splitMarkerName'](_0x568517['name']),_0x3eb8d5=_0x3dc256['split']('|')[0x0];for(const _0x835dfa of this['getSuggestions']({'skipNotAttached':!0x0}))_0x835dfa['id']!=_0x1d001a&&'attribute'==_0x835dfa['type']&&_0x835dfa['data']&&_0x835dfa['data']['key']==_0x3eb8d5&&_0x835dfa['getFirstRange']()['isIntersecting'](_0x568517['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x835dfa,_0x568517['data']['newRange'],_0x2dd62f),_0x34ad8c=!0x0);}return _0x34ad8c;}['_recordAttributeChanges'](_0xdb0d13){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0xdb0d13();}['_isRegisteredAttribute'](_0x11d00b){const _0x43a3af=this['_isBlockAttribute'](_0x11d00b),_0x3a4c40=this['_inlineAttributeKeys']['has'](_0x11d00b);return _0x43a3af||_0x3a4c40;}['_reduceExistingSuggestions'](_0x43b309,_0x182572){if(0x0==_0x182572['length'])return!0x1;let _0x6d9850=!0x1;for(const _0x4b9922 of _0x182572){const _0x20a28c=this['_findSuggestions'](_0x4b9922['range'],'attribute')['filter'](_0x93d67d=>!_0x93d67d['meta']['isNextTo'])['map'](_0x5e56e0=>_0x5e56e0['suggestion']),_0x1e5ee4=_0x35e0d0({'newValue':_0x4b9922['newValue']});_0x20a28c['filter'](_0x94a379=>{const [_0x4fea4c,_0x6cd457]=_0x94a379['subType']['split']('|');return _0x4fea4c==_0x4b9922['key']&&_0x6cd457!=_0x1e5ee4;})['forEach'](_0x30114b=>{this['_reduceSuggestionAttributeRange'](_0x30114b,_0x4b9922['range'],_0x43b309),_0x6d9850=!0x0;});}return _0x6d9850;}['_reduceSuggestionAttributeRange'](_0x50150f,_0x508b21,_0x4e99fa){const _0x545730=_0x50150f['getFirstRange']()['getDifference'](_0x508b21);0x0!==_0x545730['length']?0x1!==_0x545730['length']?this['_breakSuggestionMarker'](_0x50150f,_0x508b21['start'],_0x508b21['end']):this['_setSuggestionRange'](_0x50150f,_0x545730[0x0]):_0x4e99fa['removeMarker'](_0x50150f['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x385b7c){this['_editor']=_0x385b7c,this['_model']=_0x385b7c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x313f80,_0x28aa62,_0x1f5992,_0x5d2b3f,_0x6e5dfc,_0x2c7fb5){return new u(this['_model'],{'type':_0x313f80,'subType':_0x28aa62,'id':_0x1f5992,'author':_0x5d2b3f,'creator':_0x5d2b3f,'attributes':_0x6e5dfc,'onAttributesChange':_0x2c7fb5,'onAccept':(..._0x44b6a6)=>this['getSuggestionCallback'](_0x313f80,_0x28aa62,'accept')(..._0x44b6a6),'onDiscard':(..._0x65f2ea)=>this['getSuggestionCallback'](_0x313f80,_0x28aa62,'discard')(..._0x65f2ea)});}['registerCustomCallback'](_0x2b6c37,_0x414918,_0x1ab76c,_0x13c3ca){const _0x631567=_0x2b6c37+':'+_0x414918+':'+_0x1ab76c;this['_customCallbacks']['set'](_0x631567,_0x13c3ca);}['getSuggestionCallback'](_0x102a3f,_0x599658,_0x3e9311){const _0x33b23e=_0x102a3f+':'+_0x599658+':'+_0x3e9311;return this['_customCallbacks']['get'](_0x33b23e)||this['_defaultCallbacks']['get'](_0x102a3f+':'+_0x3e9311);}['_registerDefaultCallbacks'](){const _0x5f213c=()=>!0x1,_0x3d2e08=_0x162798=>{_0x162798['sort']((_0x519005,_0x5117a7)=>_0x519005['start']['isBefore'](_0x5117a7['start'])?0x1:-0x1),this['_model']['change'](_0x3d47fd=>{for(const _0x4482df of _0x162798){let _0x1b10b4;_0x1b10b4=_0x4482df['end']['isAtEnd']&&_0x4482df['end']['parent']==_0x4482df['start']['nodeAfter']?_0x3d47fd['createSelection'](_0x4482df['start']['nodeAfter'],'on'):_0x3d47fd['createSelection'](_0x4482df),this['_model']['deleteContent'](_0x1b10b4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3d321f=(_0xe2b602,_0x514deb)=>{_0x514deb&&this['_model']['change'](_0x4f1859=>{const {commandName:_0x351728,commandParams:_0x5db9f7=[]}=_0x514deb,_0x2ebf28=_0xe2b602['map'](_0x3aeaa7=>(Tt(_0x3aeaa7)&&(_0x3aeaa7=this['_model']['createRange'](_0x3aeaa7['end'])),_0x3aeaa7))['filter'](_0x3e9ac1=>'$graveyard'!==_0x3e9ac1['root']['rootName']);if(_0x2ebf28['length']<0x1)return;const _0x5f2559=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1a9d6c=>_0x268b03['fromRange'](_0x1a9d6c));_0x4f1859['setSelection'](_0x2ebf28);for(const _0x13afa2 of this['_editor']['commands']['commands']())_0x13afa2['refresh']();_0x5db9f7['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x351728,..._0x5db9f7);const _0xabb8f0=_0x5f2559['filter'](_0x287902=>'$graveyard'!=_0x287902['root']['rootName']);_0xabb8f0['length']>0x0&&_0x4f1859['setSelection'](_0xabb8f0);for(const _0x35ba00 of _0x5f2559)_0x35ba00['detach']();});},_0x367a7b=(_0x43a0c7,_0x478163)=>0x1==_0x43a0c7['length']&&0x1==_0x478163['length']&&_0x43a0c7[0x0]['end']['isEqual'](_0x478163[0x0]['start']),_0x133b1e=(_0xafc5b1,_0x455086,_0x48f9e6,_0x2cf286)=>Ft(_0xafc5b1,_0x455086,_0x48f9e6,_0x2cf286,this['_model'])?[_0xafc5b1,_0x455086]:Ft(_0x455086,_0xafc5b1,_0x2cf286,_0x48f9e6,this['_model'])?[_0x455086,_0xafc5b1]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5f213c),this['_defaultCallbacks']['set']('insertion:discard',_0x3d2e08),this['_defaultCallbacks']['set']('insertion:join',_0x367a7b),this['_defaultCallbacks']['set']('insertion:chain',_0x133b1e),this['_defaultCallbacks']['set']('deletion:accept',_0x3d2e08),this['_defaultCallbacks']['set']('deletion:discard',_0x5f213c),this['_defaultCallbacks']['set']('deletion:join',_0x367a7b),this['_defaultCallbacks']['set']('deletion:chain',_0x133b1e),this['_defaultCallbacks']['set']('formatInline:accept',_0x3d321f),this['_defaultCallbacks']['set']('formatInline:discard',_0x5f213c),this['_defaultCallbacks']['set']('formatInline:join',_0x367a7b),this['_defaultCallbacks']['set']('formatInline:chain',_0x5f213c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3d321f),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5f213c),this['_defaultCallbacks']['set']('formatBlock:join',_0x367a7b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5f213c),this['_defaultCallbacks']['set']('attribute:accept',_0x5f213c),this['_defaultCallbacks']['set']('attribute:discard',(_0x5a2175,_0x16500e)=>{if(!_0x16500e)return;const _0x40b5bb=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xcaa100=>{if(_0x16500e['key']==m)for(const _0x342f91 of _0x5a2175){const _0x336986=_0x342f91['start']['nodeAfter'],_0x1327a3=_0x16500e['oldValue'];_0xcaa100['rename'](_0x336986,_0x1327a3);}else{if(_0x40b5bb['_isBlockAttribute'](_0x16500e['key'])){for(const _0x224845 of _0x5a2175)void 0x0!==_0x16500e['oldValue']?_0xcaa100['setAttribute'](_0x16500e['key'],_0x16500e['oldValue'],_0x224845['start']['nodeAfter']):_0xcaa100['removeAttribute'](_0x16500e['key'],_0x224845['start']['nodeAfter']);}else{for(const _0x206ca3 of _0x5a2175)_0x16500e['oldValue']?_0xcaa100['setAttribute'](_0x16500e['key'],_0x16500e['oldValue'],_0x206ca3):_0xcaa100['removeAttribute'](_0x16500e['key'],_0x206ca3);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x367a7b);}}function Rt(_0x1529be,_0x49c1c9,_0x1cf903){for(const _0x532788 of _0x49c1c9['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x532788['root']==_0x532788)return!0x1;if(!_0x1cf903['containsItem'](_0x532788))return!0x1;if(_0x1529be['isObject'](_0x532788)||_0x1529be['isLimit'](_0x532788))return!0x0;}return!0x1;}function Tt(_0x5c1ba9){return _0x5c1ba9['end']['parent']==_0x5c1ba9['start']['nodeAfter']&&_0x5c1ba9['end']['isAtStart'];}function Et(_0x45d316,_0x58ae7f,_0x4c9dea,_0x453a25){const _0x330192=_0x462d81=>!_0x462d81['item']['is']('$textProxy')&&!_0x453a25['isObject'](_0x462d81['item']),_0x36e698=_0x45d316['start']['getLastMatchingPosition'](_0x330192),_0x5acc69=_0x45d316['end']['getLastMatchingPosition'](_0x330192,{'direction':'backward'});return(!_0x45d316['start']['isEqual'](_0x36e698)||!_0x45d316['end']['isEqual'](_0x5acc69))&&(_0x36e698['isBefore'](_0x5acc69)?_0x4c9dea['updateMarker'](_0x58ae7f,{'range':_0x4c9dea['createRange'](_0x36e698,_0x5acc69)}):_0x4c9dea['removeMarker'](_0x58ae7f),!0x0);}function Vt(_0x21bbd0){return _0x35e0d0(_0x21bbd0);}function Ut(_0x575906){const _0x56a1f4=_0x575906['start']['nodeAfter'];return _0x56a1f4&&_0x56a1f4['is']('element');}function Ot(_0x259eaf,_0x2d7456){return null==_0x259eaf['end']['nodeBefore']&&_0x259eaf['end']['parent']==_0x259eaf['start']['nodeAfter']?Gt(_0x259eaf['start']['nodeAfter'],_0x2d7456):_0x259eaf;}function Gt(_0x172812,_0x58b3b0){const _0x40260d=_0x58b3b0['schema']['isObject'](_0x172812)||_0x58b3b0['schema']['isSelectable'](_0x172812);return _0x58b3b0['createRange'](_0x58b3b0['createPositionAt'](_0x172812,'before'),_0x40260d?_0x58b3b0['createPositionAfter'](_0x172812):_0x58b3b0['createPositionAt'](_0x172812,'end'));}function Ft(_0x4d01d9,_0x2854ad,_0x20f4cf,_0x3feb4d,_0x4d9e4b){if(!Pt(_0x4d01d9,_0x2854ad))return!0x1;if(_0x20f4cf['end']['isEqual'](_0x3feb4d['start']))return!0x0;if(_0x4d01d9['type']!=_0x2854ad['type'])return!0x1;if(!_0x20f4cf['end']['isTouching'](_0x3feb4d['start']))return!0x1;const _0x5829f9=_0x4d9e4b['createRange'](_0x20f4cf['end'],_0x3feb4d['start'])['getWalker']();for(const _0x2eef89 of _0x5829f9)if(['elementStart','elementEnd']['includes'](_0x2eef89['type'])&&_0x4d9e4b['schema']['isLimit'](_0x2eef89['item']))return!0x1;return!0x0;}function Pt(_0x1d6453,_0x206377,_0x3d5f57=[]){return!(!_0x1d6453['_isDataLoaded']||!_0x206377['_isDataLoaded'])&&_0x480a18(Bt(_0x1d6453['attributes'],_0x3d5f57),Bt(_0x206377['attributes'],_0x3d5f57));}function Lt(_0x34c6cd,_0x32fc32){const _0x2fe316=Ht(_0x34c6cd['attributes']),_0x26105e=Ht(_0x32fc32);if(!_0x34c6cd['_isDataLoaded'])return!0x1;for(const _0x5dbaa5 of Object['keys'](_0x26105e))if(!_0x480a18(_0x2fe316[_0x5dbaa5],_0x26105e[_0x5dbaa5]))return!0x1;return!0x0;}function Ht(_0x4756f3){const _0x3b88a4=Object['assign']({},_0x4756f3);return delete _0x3b88a4['skipNestingCheck'],delete _0x3b88a4['tablePasteChainId'],_0x3b88a4;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x17c5a0(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1ae04c,_0x2fc689,_0x394d5c,_0x301f97){super(),this['model']=_0x2fc689,this['view']=_0x394d5c,this['commentThreadController']=_0x301f97,this['_editor']=_0x1ae04c,this['_acceptCommand']=_0x1ae04c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1ae04c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xc06333,_0x24e0a2)=>_0xc06333||_0x24e0a2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3b79eb=>_0x3b79eb&&this['_editor']['model']['canEditAt'](_0x2fc689['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x542552=>_0x542552&&this['_editor']['model']['canEditAt'](_0x2fc689['getRanges']())),this['_pendingAction']=null,_0x394d5c['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x394d5c,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x394d5c,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x394d5c,'change:isDirty',()=>{_0x394d5c['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 _0x17b76f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x17b76f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x9a4195{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x32a150,_0x1d111e,_0x40241e,_0x431093){super(_0x32a150),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x1d111e['authoredAt']),this['bind']('authoredAt')['to'](_0x1d111e),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x1d111e,this['_localUser']=_0x40241e,this['_config']=_0x431093,_0x431093['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:_0x1f5a41}=this['_config'];this['commentsListView']=new _0x1f5a41(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',_0x2c309c=>_0x2c309c+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3b36a8,_0x5bb66e)=>_0x3b36a8||!!_0x5bb66e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1ce18f}=this['_config'],_0x4c9ab3=new _0x1ce18f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2b8000=_0x4c9ab3['commentInputView'];return _0x4c9ab3['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2b8000,'value',(_0x3198ed,_0x3daa09,_0x246a4d)=>!!_0x246a4d||_0x3198ed&&!_0x3daa09),_0x2b8000['on']('submit',(_0x465ce1,_0x56b26f)=>{this['fire']('addComment',_0x56b26f),_0x2b8000['editor']['setData']('');}),_0x2b8000['on']('cancel',()=>this['focus']()),_0x2b8000['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4c9ab3;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x2e1318,_0x263a15,_0x277e0d,_0x4a074e){super(_0x2e1318,_0x263a15,_0x277e0d,_0x4a074e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2f9dd5=>_0x2f9dd5&&_0x2f9dd5[0x0]?_0x2f9dd5[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xcbc4ec,_0x5545a2)=>{let _0x962179='';for(const _0x27b80c of _0xcbc4ec)_0x962179+='<p>'+ds(_0x27b80c['content'],_0x27b80c['color'])+'</p>';return _0x5545a2?_0x962179:_0x501b97(_0x962179,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x2e1318,'Accept\x20suggestion'),_0x132554['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x2e1318,'Discard\x20suggestion'),_0x132554['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x246f78(_0x2e1318,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0xf28f4f=this['bindTemplate'],_0x42629c=[{'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':_0xf28f4f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xf28f4f['to']('authoredAt',_0x36610e=>this['_config']['formatDateTime'](_0x36610e))}]}]},{'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']&&_0x42629c['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x1f7183={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0xf28f4f['if']('isActive','ck-suggestion-wrapper--active'),_0xf28f4f['to']('type',_0x177693=>'ck-suggestion-'+_0x177693),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':_0x42629c}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x1f7183['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)),_0x1f7183;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x3ab98d,_0x36c72b,_0x5de2a0)=>{this['_descriptionElement']['innerHTML']=_0x5de2a0;});}['_createButton'](_0x450e78,_0x28f35a,_0x366664,_0x28c069,_0x1df50b){const _0x151595=new _0x57b55d(this['locale']);return _0x151595['set']({'label':_0x450e78,'icon':_0x28f35a,'tooltip':!0x0,'tooltipPosition':_0x1df50b}),_0x151595['extendTemplate']({'attributes':{'class':_0x366664}}),_0x151595['on']('execute',()=>{this['fire'](_0x28c069,this['_model']['id']);}),_0x151595;}['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(_0x1eed67,_0x69d624){let _0x2ca6ed='';return _0x2ca6ed+=_0x1eed67['split']('*')['map']((_0x2c3121,_0xb7c02)=>_0xb7c02%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x2c3121)+'</span>':us(_0x2c3121))['join'](''),_0x69d624&&(_0x2ca6ed+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x69d624['value']+'\x22\x20title=\x22'+_0x69d624['title']+'\x22></span>'),_0x2ca6ed;}function us(_0x1cc2f0){const _0x36f070=document['createElement']('span');return _0x36f070['innerText']=_0x1cc2f0,_0x36f070['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 _0x407128{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0xa640a6,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x34df86){super(_0x34df86),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x511646=this['editor']['config'];_0x511646['define']('trackChanges.SuggestionThreadView',ne),_0x511646['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x511646['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2743f2,_0x2123ef){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5b95b7,_0x4d4e51]of this['_handleControllerBuffer']){const _0x4f1490=this['_suggestionToController']['has'](_0x5b95b7);_0x4f1490||_0x4d4e51?_0x4f1490&&_0x4d4e51&&this['_destroyController'](_0x5b95b7):this['_initializeController'](_0x5b95b7);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2743f2,_0x2123ef);}['init'](){const _0x8e3c6c=this['editor'],_0x28f59c=_0x8e3c6c['plugins']['get']('TrackChangesEditing'),_0x5ed52a=_0x8e3c6c['plugins']['get']('Annotations'),_0x28551e=_0x8e3c6c['plugins']['get']('EditorAnnotations'),_0x50e63b=_0x8e3c6c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x28551e['addSourceCollector'](()=>{const _0xabdbb=[];for(const [_0x4672ef,_0x2e9a99]of Array['from'](this['_suggestionToController'])){const _0x41e46c=_0x4672ef['getAllAdjacentSuggestions'](),_0x2564e4=[];for(const _0x4b25a7 of _0x41e46c){if(!_0x4b25a7['isInContent'])continue;if(_0x4b25a7['isMultiRange']){_0x2564e4['push'](..._0x4b25a7['getRanges']());continue;}const _0x3296ef=_0x4b25a7['getFirstRange']();if(_0x2564e4['length']>0x0){const _0x13584f=_0x2564e4[0x0]['getJoined'](_0x3296ef);if(_0x13584f){_0x2564e4[0x0]=_0x13584f;continue;}}_0x2564e4['push'](_0x3296ef);}_0xabdbb['push']([_0x2e9a99['view'],_0x2564e4]);}return _0xabdbb;}),this['listenTo'](_0x28f59c,'suggestionLoaded',(_0x14672a,_0x3c3d8a)=>{this['listenTo'](_0x3c3d8a,'change:previous',(_0x4ce12b,_0x1fa5e4,_0xbd561d,_0x5e7681)=>{_0x3c3d8a['isInContent']&&(null==_0xbd561d?(this['_updateController'](_0x5e7681['head']),this['_handleSuggestionControllerDelayed'](_0x3c3d8a,!0x1)):(this['_updateController'](_0xbd561d['head']),null==_0x5e7681&&this['_handleSuggestionControllerDelayed'](_0x3c3d8a,!0x0)));}),null!==_0x3c3d8a['previous']?this['_updateController'](_0x3c3d8a['head']):this['_handleSuggestionControllerDelayed'](_0x3c3d8a,!0x1);}),this['listenTo'](_0x28f59c,'suggestionUnloaded',(_0x5f5273,_0x504044,_0x3559d7)=>{this['stopListening'](_0x504044,'change:previous'),this['_handleControllerBuffer']['delete'](_0x504044),this['_suggestionToController']['has'](_0x504044)&&this['_destroyController'](_0x504044),_0x3559d7&&this['_updateController'](_0x3559d7['head']);}),this['listenTo'](_0x28f59c,'suggestionChanged',(_0x20fc24,_0xbadedf)=>{this['_updateController'](_0xbadedf);}),this['listenTo'](_0x5ed52a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x50e63b,'addComment',(_0x5945c9,{threadId:_0x3ec133,isFromAdapter:_0x1f78b9})=>{if(_0x1f78b9||!_0x28f59c['hasSuggestion'](_0x3ec133))return;const _0x4823c2=_0x28f59c['getSuggestion'](_0x3ec133);this['_suggestionToController']['get'](_0x4823c2)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x5d7780=this['editor']['plugins']['get']('Annotations'),_0x4b73e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc7bb31=Array['from'](_0x5d7780['activeAnnotations'],_0x47e6b7=>_0x47e6b7['innerView'])['filter'](_0x4eb80b=>this['_viewToController']['has'](_0x4eb80b)),_0x26be2d=[];for(const _0x3e2618 of _0xc7bb31){const _0x2d585e=this['_viewToController']['get'](_0x3e2618)['model']['getAllAdjacentSuggestions']();_0x26be2d['push'](..._0x2d585e['reduce']((_0x2ce56b,_0x735f67)=>[..._0x2ce56b,..._0x735f67['getMarkerNames']()],[]));}_0x4b73e1['activeMarkers']=_0x26be2d;}['_addUIComponentsToFactory'](){const _0x7fc38c=this['editor'],_0x4c5d6b=_0x7fc38c['locale'],_0x251318=o(_0x4c5d6b,'Track\x20changes'),_0x52aa06=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x251318,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4c5d6b,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4c5d6b,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4c5d6b,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4c5d6b,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x30bf98 of _0x52aa06)if(ae(_0x30bf98)){const _0x52d908=_0x7fc38c['commands']['get'](_0x30bf98['model']['commandName']);_0x30bf98['model']['bind']('isOn','isEnabled')['to'](_0x52d908,'value','isEnabled');}_0x7fc38c['ui']['componentFactory']['add']('trackChanges',_0x565adc=>this['_createToolbarButton'](_0x565adc,_0x52aa06,_0x251318)),_0x7fc38c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x111fe1=>this['_createMenuBarMenu'](_0x111fe1,_0x52aa06,_0x251318));}['_createToolbarButton'](_0x1e27b4,_0x329a4d,_0x4a4d7c){const _0x227b37=zt(_0x1e27b4,Zt),_0x23757b=this['editor']['commands']['get']('trackChanges');_0x227b37['buttonView']['set']({'tooltip':_0x4a4d7c,'label':_0x4a4d7c,'icon':ie}),_0x227b37['buttonView']['bind']('isOn')['to'](_0x23757b,'value'),_0x227b37['buttonView']['on']('execute',()=>{_0x23757b['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x227b37,_0x329a4d,{'role':'menu'});const _0x268db2=[];for(const _0xeb14b3 of _0x329a4d)ae(_0xeb14b3)&&_0x268db2['push'](this['editor']['commands']['get'](_0xeb14b3['model']['commandName']));const _0x3bb2ed=_0x227b37['buttonView'];return _0x3bb2ed['actionView']['unbind']('isEnabled'),_0x3bb2ed['arrowView']['unbind']('isEnabled'),_0x3bb2ed['actionView']['bind']('isEnabled')['to'](_0x23757b,'isEnabled'),_0x3bb2ed['arrowView']['bind']('isEnabled')['toMany'](_0x268db2,'isEnabled',(..._0x454aaa)=>_0x454aaa['some'](_0x365f76=>_0x365f76)),_0x227b37['on']('execute',_0x156174=>{this['editor']['execute'](_0x156174['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x227b37;}['_createMenuBarMenu'](_0x40da4a,_0x46789e,_0x1f1a2c){const _0x5368fb=new Kt(_0x40da4a),_0x1cb169=this['editor']['commands']['get']('trackChanges');_0x5368fb['buttonView']['set']({'label':_0x1f1a2c,'icon':ie});const _0x3f552e=new Qt(_0x40da4a);for(const _0x609033 of _0x46789e){if('separator'==_0x609033['type']){_0x3f552e['items']['add'](new Jt(_0x40da4a));continue;}const _0xcc71d2=new Xt(_0x40da4a,_0x5368fb),_0x38785c=new Yt(_0x40da4a),_0x18f0aa=_0x609033['model'];_0x38785c['bind'](...Object['keys'](_0x18f0aa))['to'](_0x18f0aa),_0x38785c['delegate']('execute')['to'](_0x5368fb),_0x38785c['on']('execute',()=>{this['editor']['execute'](_0x18f0aa['commandName']),this['editor']['editing']['view']['focus']();}),_0xcc71d2['children']['add'](_0x38785c),_0x3f552e['items']['add'](_0xcc71d2);}return _0x5368fb['bind']('isEnabled')['to'](_0x1cb169,'isEnabled'),_0x5368fb['panelView']['children']['add'](_0x3f552e),_0x5368fb;}['_initializeController'](_0x26d84e){const _0x545f91=this['editor'],_0x56c1ad=_0x545f91['config'],_0x42973d=_0x545f91['plugins']['get']('Annotations'),_0x48cda5=_0x545f91['plugins']['get']('CommentsRepository'),_0x3533e9=_0x545f91['plugins']['get']('EditorAnnotations'),_0x4b43c9=_0x545f91['plugins']['get'](_0xa640a6)['me'],_0x3a0e17=_0x56c1ad['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x3af73c,CommentThreadInputView:_0x406100}=_0x545f91['plugins']['get']('CommentsUI');let _0x2bdab4,_0x353f3d;this['_annotationViews']['has'](_0x26d84e['id'])?(_0x353f3d=this['_annotationViews']['get'](_0x26d84e['id']),_0x2bdab4=_0x353f3d['mainView']):(_0x2bdab4=new _0x3a0e17(_0x545f91['locale'],_0x26d84e,_0x4b43c9,{'disableComments':this['_disableComments'],'editorConfig':_0x56c1ad['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x56c1ad['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x56c1ad['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x56c1ad['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x7213da(_0x56c1ad['get']('locale')),'CommentView':_0x56c1ad['get']('comments')['CommentView'],'CommentsListView':_0x3af73c,'CommentThreadInputView':_0x406100}),_0x2bdab4['acceptButton']['on']('execute',()=>{_0x545f91['editing']['view']['focus']();}),_0x2bdab4['discardButton']['on']('execute',()=>{_0x545f91['editing']['view']['focus']();}),_0x353f3d=_0x42973d['createAnnotationView'](this['editor']['locale'],_0x2bdab4),_0x353f3d['bind']('isDirty')['to'](_0x2bdab4,'isDirty'),_0x353f3d['bind']('length')['to'](_0x2bdab4),_0x353f3d['bind']('type')['to'](_0x2bdab4,'type',_0x274d70=>'suggestion-'+_0x274d70),this['_annotationViews']['set'](_0x26d84e['id'],_0x353f3d));const _0x3ea62c=_0x48cda5['createCommentThreadController'](_0x26d84e['commentThread'],_0x2bdab4),_0xf07de9=new oe(_0x545f91,_0x26d84e,_0x2bdab4,_0x3ea62c),_0x5cb5da=_0x26d84e['getAllAdjacentSuggestions']()['filter'](_0x4b5efc=>_0x4b5efc['isInContent']);_0x2bdab4['descriptionParts']=_0x545f91['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5cb5da),this['_suggestionToController']['set'](_0x26d84e,_0xf07de9),this['_viewToController']['set'](_0x2bdab4,_0xf07de9);const _0x55ca83=_0x42973d['createAnnotation']({'view':_0x353f3d,'target':()=>{const _0x46a364=[],_0x3e5691=_0x26d84e['getAllAdjacentSuggestions']()['filter'](_0x181096=>_0x181096['isInContent']);for(const _0x35fb30 of _0x3e5691)_0x46a364['push'](..._0x35fb30['getMarkers']());return _0x1358ac(_0x545f91['editing'],_0x46a364);},'type':()=>'suggestion-'+_0xf07de9['view']['type']});_0x48cda5['_bindAnnotationToEditors'](_0x2bdab4,_0x55ca83),_0x42973d['add'](_0x55ca83),_0x3533e9['registerAnnotation'](_0x55ca83);}['_destroyController'](_0x81da97){const _0xe8f7b6=this['editor']['plugins']['get']('CommentsRepository'),_0x5c4d12=this['editor']['plugins']['get']('Annotations'),_0x2e1830=this['_suggestionToController']['get'](_0x81da97),_0x562a88=_0x2e1830['view'],_0x561bde=_0x5c4d12['getByInnerView'](_0x562a88);_0xe8f7b6['_unbindEditors'](_0x562a88),_0x561bde&&_0x5c4d12['remove'](_0x561bde),this['_suggestionToController']['delete'](_0x81da97),this['_viewToController']['delete'](_0x562a88),_0x2e1830['destroy']();}['_updateController'](_0x2d57b2){if(!_0x2d57b2['isInContent']||!this['_suggestionToController']['has'](_0x2d57b2))return;const _0x2c5be7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d3566=this['_suggestionToController']['get'](_0x2d57b2),_0x3f7161=_0x2d57b2['getAllAdjacentSuggestions']();_0x1d3566['view']['descriptionParts']=_0x2c5be7['descriptionFactory']['getDescriptions'](_0x3f7161);}['destroy'](){for(const _0x42d9f9 of this['_suggestionToController']['keys']())this['_destroyController'](_0x42d9f9);for(const _0x3ea5ad of this['_annotationViews']['values']())_0x3ea5ad['mainView']['destroy']();super['destroy']();}}function ae(_0x1b3315){return'model'in _0x1b3315;}class k extends _0x407128{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x5a28dc){this['editor']['plugins']['get'](p)['adapter']=_0x5a28dc;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xe986ab){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xe986ab);}['getSuggestions']({skipNotAttached:_0x397451=!0x1,toJSON:_0x449baa=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x397451,'toJSON':_0x449baa});}['getSuggestion'](_0x44ca90){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x44ca90);}}const T=['Pagination'];class P extends _0x407128{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x2752af=this['editor'];if(_0x2752af['config']['define']('trackChangesData.editorCreator',_0x38d64d=>{const _0x6d65c=_0x2752af['model']['document']['getRootNames']()['reduce']((_0x4f2b8d,_0x5636bf)=>(_0x4f2b8d[_0x5636bf]='',_0x4f2b8d),{});return _0x2752af['constructor']['create'](_0x6d65c,_0x38d64d);}),'function'!=typeof _0x2752af['config']['get']('trackChangesData')['editorCreator'])throw new _0x444d46('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3a58d5){return N(this['editor'],!0x0,_0x3a58d5);}['getDataWithDiscardedSuggestions'](_0x5aaf25){return N(this['editor'],!0x1,_0x5aaf25);}}class D extends _0x407128{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x54cdaa){super(_0x54cdaa),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(_0x3c35f5){return void 0x0!==_0x3c35f5['getRootsAttributes'];}async function N(_0x4f490a,_0x45e113,_0x381ac7){const _0x30ff17=_0x29c7a4(_0x4f490a,T);_0x30ff17['plugins']['push'](p,D),_0x30ff17['rootsAttributes']=v(_0x4f490a)?_0x4f490a['getRootsAttributes']():void 0x0;const _0x33219c=document['createDocumentFragment'](),_0x18067e=_0x4f490a['config']['get']('trackChangesData')['editorCreator'],_0x365582=await _0x18067e(_0x30ff17,()=>function(_0x161c56){const _0x22c7ba=document['createElement']('div');return _0x161c56['appendChild'](_0x22c7ba),_0x22c7ba;}(_0x33219c));!function(_0x255e06,_0xfadb91){const _0xb6ec93=_0x255e06['model']['document']['getRootNames']()['reduce']((_0x5c753e,_0x3f14bb)=>(_0x5c753e[_0x3f14bb]=_0x255e06['data']['get']({'rootName':_0x3f14bb}),_0x5c753e),{}),_0x277e21=_0x255e06['plugins']['get']('Users')['users']['map'](_0x23099d=>({'id':_0x23099d['id'],'name':_0x23099d['name']})),_0x6cf85d=_0x255e06['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x548872=_0x255e06['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2a3514=_0xfadb91['plugins']['get']('Users'),_0x568b83=_0xfadb91['plugins']['get']('TrackChangesEditing'),_0x4b1e9a=_0xfadb91['plugins']['get']('CommentsRepository');for(const _0x56eafc of _0x277e21)_0x2a3514['getUser'](_0x56eafc['id'])||_0x2a3514['addUser'](_0x56eafc);_0x2a3514['me']||_0x2a3514['useAnonymousUser']();for(const _0x2e1ed5 of _0x548872)_0x4b1e9a['addCommentThread'](_0x2e1ed5);for(const _0x287463 of _0x6cf85d)_0x568b83['addSuggestionData'](_0x287463);_0xfadb91['data']['set'](_0xb6ec93);}(_0x4f490a,_0x365582),_0x365582['execute'](_0x45e113?'acceptAllSuggestions':'discardAllSuggestions');const _0x374737=v(_0x365582)?_0x365582['getFullData'](_0x381ac7):_0x365582['data']['get'](_0x381ac7);return await _0x365582['destroy'](),_0x374737;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|