@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240617.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
|
-
_0x25d463(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xad67b0,_0xb9034a){super(),this['id']=_0xb9034a['id'],this['type']=_0xb9034a['type'],this['subType']=_0xb9034a['subType']||null,this['author']=_0xb9034a['author'],this['creator']=_0xb9034a['creator']||_0xb9034a['author'],this['isExternal']=Boolean(_0xb9034a['attributes']&&_0xb9034a['attributes']['@external']),this['data']=null,this['_model']=_0xad67b0,this['_onAccept']=_0xb9034a['onAccept'],this['_onDiscard']=_0xb9034a['onDiscard'],this['_onAttributesChange']=_0xb9034a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xb9034a['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x19caf4=this;for(;_0x19caf4['previous'];)_0x19caf4=_0x19caf4['previous'];return _0x19caf4;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x16b490){this['_markerNames']['add'](_0x16b490);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x38c497=>this['_model']['markers']['get'](_0x38c497))['filter'](_0x30831d=>_0x30831d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x583f72=>{for(const _0x1d40b1 of this['getMarkers']())_0x583f72['removeMarker'](_0x1d40b1);}),this['_markerNames']['clear']();}['removeMarker'](_0x5c2c5b){this['_model']['change'](_0x3f6daa=>{_0x3f6daa['removeMarker'](_0x5c2c5b);}),this['_markerNames']['delete'](_0x5c2c5b);}['addRange'](_0x5eaa42){const _0x41f426='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x41f426),this['_model']['change'](_0x24ad66=>{_0x24ad66['addMarker'](_0x41f426,{'range':_0x5eaa42,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x38ad7f){for(const _0x37849f of this['getRanges']())if(_0x37849f['isIntersecting'](_0x38ad7f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4d9f19=>_0x4d9f19['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xfbc08a,_0x510d9c)=>[..._0xfbc08a,..._0x510d9c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1971e8=this['getRanges']();if(0x1!=_0x1971e8['length'])return null;const _0x133a18=_0x1971e8[0x0],_0x208d06=_0x133a18['start']['nodeAfter'],_0x385284=_0x133a18['end']['nodeBefore'];return _0x208d06 instanceof _0x270d03?_0x208d06!=_0x385284?null:_0x208d06:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0xbd50eb=[];let _0xe9088b=this['head'];for(;_0xe9088b;)_0xbd50eb['push'](_0xe9088b),_0xe9088b=_0xe9088b['next'];return _0xbd50eb;}['setAttribute'](_0x215193,_0x8432c){const _0x435104=_0x2e2f54(this['attributes']);_0xcde711(_0x435104,_0x215193,_0x8432c),_0x1f7f6a(_0x435104,this['attributes'])||(this['attributes']=_0x435104,this['_onAttributesChange'](_0x435104));}['removeAttribute'](_0x10466a){const _0x4ec008=_0x2e2f54(this['attributes']);_0x2c6995(_0x4ec008,_0x10466a),_0x1f7f6a(_0x4ec008,this['attributes'])||(this['attributes']=_0x4ec008,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0xa3dac7()['substr'](0x1,0x5);}}function o(_0x2c4bc3,_0x2b0338,_0x2e6ee9){const t=_0x2c4bc3['t'];switch(_0x2b0338){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x2e6ee9);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2e6ee9);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2e6ee9);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2e6ee9);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2e6ee9);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x2e6ee9);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2e6ee9);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2e6ee9);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2e6ee9);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2e6ee9);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2e6ee9);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2e6ee9);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2e6ee9);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2e6ee9);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2e6ee9);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2e6ee9);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2e6ee9);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2e6ee9);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2e6ee9);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2e6ee9);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2e6ee9);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2e6ee9);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2e6ee9);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x2e6ee9);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2e6ee9);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2e6ee9);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2e6ee9);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2e6ee9);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2e6ee9);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x2e6ee9);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2e6ee9);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2e6ee9);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2e6ee9);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2e6ee9);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x2e6ee9);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2e6ee9);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x2e6ee9);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x2e6ee9);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2e6ee9);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x2e6ee9);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2e6ee9);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x2e6ee9);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2e6ee9);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2e6ee9);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2e6ee9);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2e6ee9);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x2b0338;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x11479d,_0x3dedb2){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x11479d,this['_locale']=_0x3dedb2;}['getDescriptions'](_0x27b3a6){const _0x2c320d=[],_0x354680=new Set(),_0x4a0ccb=new Set();for(let _0x81185=0x0;_0x81185<_0x27b3a6['length'];_0x81185++){const _0x1fcc6c=_0x27b3a6[_0x81185];if(!_0x1fcc6c['isInContent'])continue;const _0x4ee904=this['_handleCustomCallbackDescription'](_0x1fcc6c);if(_0x4ee904){if(null!=_0x1fcc6c['subType']){if(_0x354680['has'](_0x1fcc6c['subType']))continue;_0x354680['add'](_0x1fcc6c['subType']);}_0x2c320d['push'](_0x4ee904);}else{if('attribute'!=_0x1fcc6c['type'])'insertion'!=_0x1fcc6c['type']&&'deletion'!=_0x1fcc6c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2c320d,_0x1fcc6c,_0x27b3a6[_0x81185+0x1]);else{const _0x16f3ee=_0x1fcc6c['data']['key'];if(_0x4a0ccb['has'](_0x16f3ee))continue;_0x4a0ccb['add'](_0x1fcc6c['data']['key']),_0x16f3ee==m?this['_handleRenameSuggestionDescription'](_0x2c320d,_0x1fcc6c):this['_handleAttributeSuggestionDescription'](_0x2c320d,_0x1fcc6c);}}}return this['_resolveDescriptionItems'](_0x2c320d);}['registerDescriptionCallback'](_0x302c6c){this['_customCallbacks']['push'](_0x302c6c);}['registerElementLabel'](_0x47c903,_0x284328,_0x4556c8=_0x275526['normal']){'function'==typeof _0x47c903?_0x2d87a0(this['_itemLabelsCallbacks'],{'matchingCallback':_0x47c903,'label':_0x284328,'priority':_0x4556c8}):this['_itemLabels']['set'](_0x47c903,_0x284328);}['registerAttributeLabel'](_0x2a5c9c,_0x6b6459){this['_attributeLabels']['set'](_0x2a5c9c,_0x6b6459);}['getItemLabel'](_0x51a79c,_0x31efbc=0x1){let _0x3a84e6;for(const _0x2f5b3c of this['_itemLabelsCallbacks'])if(_0x2f5b3c['matchingCallback'](_0x51a79c)){_0x3a84e6=_0x2f5b3c['label'];break;}return _0x3a84e6||(_0x3a84e6=this['_itemLabels']['get'](_0x51a79c['name'])),_0x3a84e6?_0x3a84e6(_0x31efbc):0x1!==_0x31efbc?_0x31efbc+'\x20'+_0x51a79c['name']+'s':''+_0x51a79c['name'];}['_addDescriptionItems'](_0x2308e1,_0x7d8231){const _0x3ff877=_0x7d8231['getFirstRange']()['getWalker'](),_0x1d2c60='insertion'==_0x7d8231['type']?'add':'remove';for(const _0x1d56cd of _0x3ff877){const _0x46799c=_0x1d56cd['item'],_0x351f7f=_0x2308e1[_0x2308e1['length']-0x1];if(_0x46799c['is']('$textProxy'))_0x351f7f&&_0x351f7f['type']['indexOf']('Container')>-0x1&&_0x2308e1['pop'](),_0x351f7f&&'text'==_0x351f7f['type']?_0x351f7f[_0x1d2c60]+=_0x46799c['data']:_0x2308e1['push']({'type':'text','add':'add'==_0x1d2c60?_0x46799c['data']:'','remove':'remove'==_0x1d2c60?_0x46799c['data']:''});else{if(this['_schema']['isObject'](_0x46799c)){const _0x7d1b15=_0x46799c;if(_0x351f7f&&_0x351f7f['type']['indexOf']('Container')>-0x1&&_0x2308e1['pop'](),'elementEnd'==_0x1d56cd['type'])continue;_0x351f7f&&_0x351f7f['type']==_0x1d2c60+'Object'&&_0x351f7f['element']['name']==_0x7d1b15['name']?_0x351f7f['quantity']++:_0x2308e1['push']({'type':_0x1d2c60+'Object','element':_0x7d1b15,'quantity':0x1}),_0x3ff877['skip'](_0x5de0c8=>!('elementEnd'==_0x5de0c8['type']&&_0x5de0c8['item']==_0x46799c));}else{if(this['_schema']['checkChild'](_0x46799c,'$text')||_0x46799c['is']('element','softBreak')){const _0x4449e1=_0x46799c;if('add'==_0x1d2c60&&'elementStart'==_0x1d56cd['type']||'remove'==_0x1d2c60&&'elementEnd'==_0x1d56cd['type'])continue;if(_0x351f7f&&-0x1==_0x351f7f['type']['indexOf']('Container')){'text'==_0x351f7f['type']&&(_0x351f7f[_0x1d2c60]+='\x0a');continue;}let _0x4622df;if(_0x4622df='add'==_0x1d2c60?_0x4449e1['nextSibling']&&!this['_schema']['isObject'](_0x4449e1['nextSibling'])?_0x4449e1['nextSibling']:null:_0x4449e1['previousSibling']&&!this['_schema']['isObject'](_0x4449e1['previousSibling'])?_0x4449e1['previousSibling']:null,_0x4449e1['isEmpty']||_0x4622df&&_0x4622df['isEmpty']){const _0x3966bd=_0x4622df&&_0x4622df['isEmpty']?_0x4622df:_0x4449e1;_0x351f7f&&_0x351f7f['type']==_0x1d2c60+'EmptyContainer'&&_0x351f7f['element']['name']==_0x3966bd['name']?_0x351f7f['quantity']++:_0x2308e1['push']({'type':_0x1d2c60+'EmptyContainer','element':_0x3966bd,'quantity':0x1});}else _0x2308e1['push']({'type':_0x1d2c60+'Container','element':_0x4449e1});}}}}}['_resolveDescriptionItems'](_0x24c954){const _0xab49b4=this['_locale'],_0x51d87f=[],_0x1e12ba=[],_0x4cb2da=[];for(const _0x494d7d of _0x24c954)switch(_0x494d7d['type']){case'text':if(_0x494d7d['add']=_0x494d7d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x494d7d['remove']=_0x494d7d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x494d7d['add']&&''!=_0x494d7d['remove']){_0x51d87f['push']({'type':'replace','content':o(_0xab49b4,'REPLACE_TEXT',['\x22'+_0x494d7d['remove']+'\x22','\x22'+_0x494d7d['add']+'\x22'])});continue;}if(null!=_0x494d7d['add']['match'](/^ +$/)){_0x51d87f['push']({'type':'insertion','content':o(_0xab49b4,'*Insert:*\x20%0',o(_0xab49b4,'ELEMENT_SPACE',_0x494d7d['add']['length']))});continue;}if(null!=_0x494d7d['remove']['match'](/^ +$/)){_0x51d87f['push']({'type':'deletion','content':o(_0xab49b4,'*Remove:*\x20%0',o(_0xab49b4,'ELEMENT_SPACE',_0x494d7d['remove']['length']))});continue;}if(''!=_0x494d7d['add']){_0x51d87f['push']({'type':'insertion','content':o(_0xab49b4,'*Insert:*\x20%0','\x22'+_0x494d7d['add']+'\x22')});continue;}_0x51d87f['push']({'type':'deletion','content':o(_0xab49b4,'*Remove:*\x20%0','\x22'+_0x494d7d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x51d87f['push']({'type':'insertion','content':o(_0xab49b4,'*Insert:*\x20%0',this['getItemLabel'](_0x494d7d['element'],_0x494d7d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x51d87f['push']({'type':'deletion','content':o(_0xab49b4,'*Remove:*\x20%0',this['getItemLabel'](_0x494d7d['element'],_0x494d7d['quantity']))});continue;case'addContainer':_0x51d87f['push']({'type':'insertion','content':o(_0xab49b4,'*Split:*\x20%0',this['getItemLabel'](_0x494d7d['element'],_0x494d7d['quantity']))});continue;case'removeContainer':_0x51d87f['push']({'type':'deletion','content':o(_0xab49b4,'*Merge:*\x20%0',this['getItemLabel'](_0x494d7d['element'],_0x494d7d['quantity']))});continue;case'addFormat':_0x1e12ba['push'](_0x494d7d['key']);continue;case'removeFormat':_0x4cb2da['push'](_0x494d7d['key']);continue;default:_0x51d87f['push'](_0x494d7d);}if(_0x1e12ba['length']){const _0x4d9c16=_0x1e12ba['map'](_0x1e6134=>this['_attributeLabels']['has'](_0x1e6134)?this['_attributeLabels']['get'](_0x1e6134):_0x1e6134)['join'](',\x20');_0x51d87f['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4d9c16)});}if(_0x4cb2da['length']){const _0xb523bb=_0x4cb2da['map'](_0x5ea597=>this['_attributeLabels']['has'](_0x5ea597)?this['_attributeLabels']['get'](_0x5ea597):_0x5ea597)['join'](',\x20');_0x51d87f['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xb523bb)});}return _0x51d87f;}['_handleCustomCallbackDescription'](_0x57221f){for(const _0x1c7cae of this['_customCallbacks']){const _0x69ff3a=_0x1c7cae(_0x57221f);if(_0x69ff3a&&'type'in _0x69ff3a)return _0x69ff3a;}}['_handleAttributeSuggestionDescription'](_0x31e4a3,_0x4dac85){const _0x1dda9b=_0x4dac85['data'],_0xc318a1=void 0x0===_0x1dda9b['newValue']?'removeFormat':'addFormat';_0x31e4a3['push']({'type':_0xc318a1,'key':_0x1dda9b['key']});}['_handleRenameSuggestionDescription'](_0x4c6aef,_0x19951b){_0x4c6aef['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x19951b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x48a6af,_0x261c63,_0x5b95d1){if(this['_addDescriptionItems'](_0x48a6af,_0x261c63),_0x5b95d1&&_0x5b95d1['getFirstRange']()&&!_0x261c63['getFirstRange']()['end']['isEqual'](_0x5b95d1['getFirstRange']()['start'])){const _0x48db61=_0x48a6af[_0x48a6af['length']-0x1],_0x4e860c='insertion'==_0x261c63['type']?'add':'remove';_0x48db61&&'text'==_0x48db61['type']&&(_0x48db61[_0x4e860c]+='\x0a');}}}class E extends _0x54db38{['afterInit'](){const _0x5ec9f9=this['editor'],_0x3bab8b=_0x5ec9f9['plugins']['get']('TrackChangesEditing');_0x5ec9f9['commands']['get']('showAIAssistant')&&_0x3bab8b['enableCommand']('showAIAssistant');}}class V extends _0x54db38{['afterInit'](){const _0x41556c=this['editor'],_0x10825a=_0x41556c['locale'];if(!_0x41556c['plugins']['has']('AlignmentEditing'))return;const _0x2aa3e7=_0x41556c['plugins']['get']('TrackChangesEditing');_0x2aa3e7['enableDefaultAttributesIntegration']('alignment'),_0x2aa3e7['registerBlockAttribute']('alignment'),_0x2aa3e7['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x10825a,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x548002=this['editor'],_0x540169=_0x548002['locale'];_0x548002['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55029a=>{if('formatBlock'!=_0x55029a['type'])return;const {data:_0x33bc5a}=_0x55029a;if(_0x33bc5a&&'alignment'==_0x33bc5a['commandName']){const _0x1246ed=_0x33bc5a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x540169,'*Format:*\x20%0',function(_0x236a62){switch(_0x236a62){case'left':return o(_0x540169,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x540169,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x540169,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x540169,'FORMAT_JUSTIFY_TEXT');}}(_0x1246ed))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x54db38{['afterInit'](){const _0x5c226e=this['editor'],_0x2c84ff=_0x5c226e['plugins']['get']('TrackChangesEditing'),_0x3c232c=_0x5c226e['locale'];for(const _0x362f19 of ti){if(!_0x5c226e['plugins']['has'](_0x362f19))continue;const _0x87e0db=_0x362f19['slice'](0x0,-0x7)['toLowerCase'](),_0x14c9dd='FORMAT_'+_0x87e0db['toUpperCase']();_0x2c84ff['enableDefaultAttributesIntegration'](_0x87e0db),_0x2c84ff['registerInlineAttribute'](_0x87e0db),_0x2c84ff['descriptionFactory']['registerAttributeLabel'](_0x87e0db,o(_0x3c232c,_0x14c9dd));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x62899c=this['editor'],_0x2e705f=_0x62899c['locale'],_0x3d7721=_0x62899c['plugins']['get']('TrackChangesEditing');function _0x2fe3a8(_0x512e7a,_0x559e39){_0x3d7721['descriptionFactory']['registerDescriptionCallback'](_0x1bef46=>{if('formatInline'!=_0x1bef46['type'])return;const {data:_0x5dcd5f}=_0x1bef46;return _0x5dcd5f&&_0x5dcd5f['commandName']===_0x512e7a?_0x5dcd5f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2e705f,'*Format:*\x20%0',_0x559e39)}:{'type':'format','content':o(_0x2e705f,'*Remove\x20format:*\x20%0',_0x559e39)}:void 0x0;});}_0x2fe3a8('bold',o(_0x2e705f,'FORMAT_BOLD')),_0x2fe3a8('italic',o(_0x2e705f,'FORMAT_ITALIC')),_0x2fe3a8('underline',o(_0x2e705f,'FORMAT_UNDERLINE')),_0x2fe3a8('code',o(_0x2e705f,'FORMAT_CODE')),_0x2fe3a8('strikethrough',o(_0x2e705f,'FORMAT_STRIKETHROUGH')),_0x2fe3a8('subscript',o(_0x2e705f,'FORMAT_SUBSCRIPT')),_0x2fe3a8('superscript',o(_0x2e705f,'FORMAT_SUPERSCRIPT'));}}class O extends _0x54db38{['afterInit'](){const _0xa262ab=this['editor'],_0x57a8d4=_0xa262ab['locale'];if(!_0xa262ab['plugins']['has']('BlockQuoteEditing'))return;const _0x4912e0=_0xa262ab['plugins']['get']('TrackChangesEditing'),_0x2e69fc=this['editor']['commands']['get']('blockQuote');_0x4912e0['enableCommand']('blockQuote',(_0x58a798,_0xb4b396={})=>{const _0x52aebb=this['editor']['model']['document']['selection'],_0x57aa01=_0xb4b396&&void 0x0!==_0xb4b396['forceValue']?_0xb4b396['forceValue']:!_0x2e69fc['value'];let _0x4422f3=[];if(_0x57aa01){const _0x539b45=Array['from'](_0x52aebb['getSelectedBlocks']())['filter'](_0x1e0943=>oo(_0x1e0943)||function(_0x2dccb7,_0x2afd19){const _0x4e1b0f=_0x2afd19['checkChild'](_0x2dccb7['parent'],'blockQuote'),_0x50ca55=_0x2afd19['checkChild'](['$root','blockQuote'],_0x2dccb7);return _0x4e1b0f&&_0x50ca55;}(_0x1e0943,this['editor']['model']['schema']));_0x4422f3=to(_0x539b45,_0xa262ab['model']);}else{const _0x2568c6=Array['from'](_0x52aebb['getSelectedBlocks']())['filter'](_0x9bc330=>oo(_0x9bc330));_0x4422f3=to(_0x2568c6,_0xa262ab['model']);}_0xa262ab['model']['change'](()=>{for(const _0x3395e0 of _0x4422f3)_0x4912e0['markBlockFormat'](_0x3395e0,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x57aa01}]});});}),_0x4912e0['descriptionFactory']['registerDescriptionCallback'](_0x472529=>{const {data:_0x12ed0e}=_0x472529;if(_0x12ed0e&&'blockQuote'==_0x12ed0e['commandName']){const _0x312717=o(_0x57a8d4,'ELEMENT_BLOCK_QUOTE');return _0x12ed0e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x57a8d4,'*Set\x20format:*\x20%0',_0x312717)}:{'type':'format','content':o(_0x57a8d4,'*Remove\x20format:*\x20%0',_0x312717)};}});}}function oo(_0x1d9b15){return'blockQuote'==_0x1d9b15['parent']['name'];}class G extends _0x54db38{['afterInit'](){const _0x1f0a27=this['editor'];_0x1f0a27['plugins']['has']('CaseChange')&&(_0x1f0a27['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1f0a27['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1f0a27['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x54db38{['afterInit'](){const _0x306e49=this['editor'];_0x306e49['commands']['get']('ckbox')&&_0x306e49['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x54db38{['afterInit'](){const _0x205eb2=this['editor'];if(!_0x205eb2['plugins']['has']('CodeBlock'))return;const _0x43ce5a=_0x205eb2['plugins']['get']('TrackChangesEditing'),_0x1f3a19=_0x205eb2['locale'],_0x785345=_0x205eb2['config']['get']('codeBlock')['languages'],_0x5e9ab5=_0x205eb2['commands']['get']('codeBlock');_0x43ce5a['enableCommand']('indentCodeBlock'),_0x43ce5a['enableCommand']('outdentCodeBlock'),_0x43ce5a['enableCommand']('codeBlock',(_0x51dee9,_0xcf2d48={})=>{const _0x24169d=_0x205eb2['model'],_0x45959d=_0x205eb2['model']['document']['selection'],_0x31b6a9=_0xcf2d48&&void 0x0!==_0xcf2d48['forceValue']?_0xcf2d48['forceValue']:!_0x5e9ab5['value'];let _0x24da77;_0xcf2d48['language']||(_0xcf2d48['language']=_0x785345[0x0]['language']),_0x24da77=_0x31b6a9?Array['from'](_0x45959d['getSelectedBlocks']())['filter'](_0x5c3db4=>eo(_0x5c3db4)||function(_0x516641,_0x501595){if(_0x516641['is']('rootElement')||_0x501595['isLimit'](_0x516641))return!0x1;return _0x501595['checkChild'](_0x516641['parent'],'codeBlock');}(_0x5c3db4,_0x24169d['schema'])):Array['from'](_0x45959d['getSelectedBlocks']())['filter'](_0x2faeea=>eo(_0x2faeea));const _0x4c060b=to(_0x24da77,_0x24169d);_0x24169d['change'](()=>{for(const _0xf9ce6b of _0x4c060b)_0x43ce5a['markBlockFormat'](_0xf9ce6b,{'commandName':'codeBlock','commandParams':[{..._0xcf2d48,'forceValue':_0x31b6a9}],'formatGroupId':'blockName'});});}),(_0x43ce5a['descriptionFactory']['registerElementLabel']('codeBlock',_0x303f7e=>o(_0x1f3a19,'ELEMENT_CODE_BLOCK',_0x303f7e)),_0x43ce5a['descriptionFactory']['registerDescriptionCallback'](_0x3c1358=>{if('formatBlock'!=_0x3c1358['type'])return;const _0x364e34=_0x1f3a19['t'],{data:_0x44352a}=_0x3c1358;if(!_0x44352a||'codeBlock'!=_0x44352a['commandName'])return;const _0x1768e0=_0x44352a['commandParams'][0x0]['language'],_0x41472b=_0x364e34(_0x785345['find'](_0x30a912=>_0x30a912['language']===_0x1768e0)['label'])['toLowerCase']();return _0x44352a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1f3a19,'*Set\x20format:*\x20%0',o(_0x1f3a19,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x41472b+')')}:{'type':'format','content':o(_0x1f3a19,'*Remove\x20format:*\x20%0',o(_0x1f3a19,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2e0a03){return'codeBlock'==_0x2e0a03['name'];}class H extends _0x54db38{['afterInit'](){const _0x4d539a=this['editor'];if(!_0x4d539a['plugins']['has']('CommentsEditing'))return;_0x4d539a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x35d01d,_0x18ff7a,_0xb927ef){const _0x7f4586=[];for(const _0xe92ef5 of _0x18ff7a['getItems']())_0xe92ef5['hasAttribute'](_0x35d01d)&&_0x7f4586['push'](_0xb927ef['createRangeOn'](_0xe92ef5));return _0x7f4586;}function _e(_0x5e39e5,_0x34fb2c,{showActiveMarker:_0x2caa39=!0x0}={}){const _0x3c6525=_0x5e39e5['plugins']['get']('TrackChangesEditing');return(_0x2fef41,_0x2eb511,_0x2353ae)=>{if(!_0x2353ae['consumable']['test'](_0x2eb511['markerRange'],_0x2fef41['name']))return;const _0x28f1bd=_0x2eb511['markerRange']['getWalker'](),_0x28ea1d=_0x2eb511['markerRange']['start'],_0x4f1d33=_0x5e39e5['model']['schema'];let _0x3456d6=null,_0x1f7beb=null,_0x178091=!0x1,_0x43ee24=!0x1;for(const _0x3bbabf of _0x28f1bd){const _0x375623=_0x3bbabf['item'];_0x178091=_0x178091||_0x4f1d33['isContent'](_0x375623);const _0x429c32=_0x2353ae['mapper']['toViewElement'](_0x375623);if(_0x429c32&&_0x429c32['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3bbabf['type']&&(_0x4f1d33['isBlock'](_0x375623)&&!_0x4f1d33['isLimit'](_0x375623)&&(_0x375623['nextSibling']||_0x28ea1d['isAtEnd']?_0x3456d6&&_0x3456d6['parent']==_0x375623||(_0x3456d6=_0x375623,_0x1cf803(_0x3bbabf['previousPosition']),_0x43ee24=!0x0):_0x1f7beb=_0x1f7beb||_0x3bbabf['previousPosition']));}function _0x1cf803(_0x51b460){const _0x5e5cc7=_0x2353ae['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x34fb2c}),_0xf7cfb9=_0x2353ae['mapper']['toViewPosition'](_0x51b460);_0x2caa39&&_0x3c6525['activeMarkers']['includes'](_0x2eb511['markerName'])&&_0x2353ae['writer']['addClass']('ck-suggestion-marker--active',_0x5e5cc7),_0x2353ae['writer']['insert'](_0xf7cfb9,_0x5e5cc7),_0x2353ae['mapper']['bindElementToMarker'](_0x5e5cc7,_0x2eb511['markerName']);}_0x178091||_0x43ee24||!_0x1f7beb||_0x1cf803(_0x1f7beb);};}class q extends _0x54db38{static get['requires'](){return[_0x277a9];}['init'](){const _0x3a7427=this['editor'],_0x7dc146=_0x3a7427['plugins']['get']('TrackChangesEditing');_0x7dc146['enableCommand']('delete');const _0x404556=_0x3a7427['commands']['get']('deleteForward');_0x7dc146['enableCommand']('deleteForward',(_0x5a6779,_0x582fa7={})=>{const _0x5a150c=_0x3a7427['model']['createSelection'](_0x3a7427['model']['document']['selection']);_0x5a150c['isCollapsed']&&_0x3a7427['model']['modifySelection'](_0x5a150c,{'direction':'forward','unit':_0x582fa7['unit']});const _0x2dca35=_0x5a150c['getFirstRange'](),_0x159b20=_0x216747['fromRange'](_0x2dca35);let _0x44aa1e;_0x5a6779(_0x582fa7),_0x44aa1e='$graveyard'==_0x159b20['root']['rootName']?_0x3a7427['model']['createRange'](_0x2dca35['start']):_0x3a7427['model']['createRange'](_0x159b20['start'],_0x159b20['end']),_0x159b20['detach'](),_0x3a7427['model']['enqueueChange'](_0x404556['buffer']['batch'],_0xbc0f3b=>{_0x404556['buffer']['lock'](),_0xbc0f3b['setSelection'](_0xbc0f3b['createRange'](_0x44aa1e['end'])),_0x404556['buffer']['unlock']();});}),_0x3a7427['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x3a7427,'merge'),{'priority':'high'}),_0x3a7427['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3b2d69,_0x301de2,_0x518036)=>{_0x518036['options']['showSuggestionHighlights']&&_e(_0x3a7427,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3b2d69,_0x301de2,_0x518036);},{'priority':'high'}),_0x3a7427['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x210d34,_0x2f0ae3,_0x43c834)=>{const _0x136187=_0x43c834['mapper']['markerNameToElements'](_0x2f0ae3['markerName']);if(_0x136187){for(const _0x3e7526 of _0x136187)_0x3e7526['is']('uiElement')&&(_0x43c834['mapper']['unbindElementFromMarkerName'](_0x3e7526,_0x2f0ae3['markerName']),_0x43c834['writer']['remove'](_0x3e7526));}},{'priority':'high'});}}class z extends _0x54db38{['afterInit'](){const _0x157663=this['editor'];if(!_0x157663['plugins']['has']('ListEditing'))return;const _0x5ce131=_0x157663['locale'],_0x39dec9=_0x157663['plugins']['get']('TrackChangesEditing'),_0x1fdf5c=_0x157663['plugins']['has']('TodoListEditing'),_0x879aaa=!!_0x157663['config']['get']('list.multiBlock');function _0x452833(_0x5647d9){return{'type':'format','content':''+o(_0x5ce131,'*Set\x20format:*\x20%0',_0x5647d9)};}function _0x5012ec(_0x149fb5){return{'type':'format','content':''+o(_0x5ce131,'*Remove\x20format:*\x20%0',_0x149fb5)};}_0x39dec9['enableDefaultAttributesIntegration']('numberedList'),_0x39dec9['enableDefaultAttributesIntegration']('bulletedList'),_0x39dec9['enableDefaultAttributesIntegration']('customNumberedList'),_0x39dec9['enableDefaultAttributesIntegration']('customBulletedList'),_0x39dec9['enableDefaultAttributesIntegration']('indentList'),_0x39dec9['enableDefaultAttributesIntegration']('outdentList'),_0x39dec9['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x39dec9['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x39dec9['registerBlockAttribute']('listItemId'),_0x39dec9['registerBlockAttribute']('listType'),_0x39dec9['registerBlockAttribute']('listIndent'),_0x879aaa&&(_0x39dec9['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x39dec9['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1fdf5c&&(_0x39dec9['enableDefaultAttributesIntegration']('todoList'),_0x39dec9['enableDefaultAttributesIntegration']('checkTodoList'),_0x39dec9['registerBlockAttribute']('todoListChecked'),_0x39dec9['descriptionFactory']['registerDescriptionCallback'](_0x1601e5=>{const {data:_0x3049bc}=_0x1601e5;if(_0x3049bc&&'todoListChecked'==_0x3049bc['key'])return{'type':'format','content':_0x3049bc['newValue']?o(_0x5ce131,'*Check\x20item*'):o(_0x5ce131,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2d1a4f=>{if(_0x2d1a4f['batch']['isUndo'])return!0x1;let _0x5d9281=!0x1;const _0x1ae95b=_0x39dec9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2436a9=>'todoListChecked'===_0x39dec9['_getAttributeKey'](_0x2436a9));for(const _0x48245b of _0x1ae95b){'todo'!=_0x48245b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x39dec9['_findSuggestions'](_0x48245b['getFirstRange'](),'attribute')['find'](_0x52c70b=>'listType'===_0x39dec9['_getAttributeKey'](_0x52c70b['suggestion']))||(_0x2d1a4f['removeMarker'](_0x48245b['getFirstMarker']()),_0x5d9281=!0x0));}return _0x5d9281;})),_0x39dec9['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5ce131,'FORMAT_INDENT'));const _0x2726a7={'type':'format','content':''};_0x39dec9['descriptionFactory']['registerDescriptionCallback'](_0x35abb1=>{const {data:_0x42efd5}=_0x35abb1;if(!_0x42efd5||'listType'!=_0x42efd5['key'])return;let _0x398fa6=_0x35abb1['head'];for(;_0x398fa6;){if(_0x398fa6['data']&&(('listStyle'==_0x398fa6['data']['key']||'listMarkerStyle'==_0x398fa6['data']['key'])&&(_0x398fa6['data']['newValue']&&'default'!=_0x398fa6['data']['newValue']||'default'!=_0x398fa6['data']['oldValue']&&!_0x42efd5['newValue'])||!_0x879aaa&&_0x398fa6['data']['key']==m))return _0x2726a7;_0x398fa6=_0x398fa6['next'];}if(null==_0x42efd5['newValue'])switch(_0x42efd5['oldValue']){case'bulleted':return _0x5012ec(o(_0x5ce131,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5012ec(o(_0x5ce131,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5012ec(o(_0x5ce131,'ELEMENT_TODO_LIST'));}switch(_0x42efd5['newValue']){case'bulleted':return _0x452833(o(_0x5ce131,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x452833(o(_0x5ce131,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x452833(o(_0x5ce131,'ELEMENT_TODO_LIST'));}}),_0x39dec9['descriptionFactory']['registerDescriptionCallback'](_0x30eb37=>{const {data:_0x403cd5}=_0x30eb37;if(_0x403cd5&&'listIndent'==_0x403cd5['key'])return null==_0x403cd5['newValue']||null==_0x403cd5['oldValue']&&0x0==_0x403cd5['newValue']?_0x2726a7:void 0x0;}),_0x39dec9['descriptionFactory']['registerDescriptionCallback'](_0x3046fd=>{if('attribute'!=_0x3046fd['type'])return;const {data:_0x55bebf}=_0x3046fd;if(!_0x55bebf||'listItemId'!=_0x55bebf['key'])return;const _0x169e96=le(_0x3046fd);return'newValue'==_0x169e96?{'type':'format','content':o(_0x5ce131,'*Merge:*\x20list\x20item')}:'oldValue'==_0x169e96?{'type':'format','content':o(_0x5ce131,'*Split:*\x20list\x20item')}:_0x2726a7;}),_0x157663['model']['document']['registerPostFixer'](_0x49d825=>this['listItemIdFixer'](_0x49d825)),_0x157663['model']['document']['registerPostFixer'](_0x62adce=>this['noTrackChangesFixer'](_0x62adce)),_0x157663['model']['document']['registerPostFixer'](_0x4944d3=>this['assureChains'](_0x4944d3)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x6850dc){if(_0x6850dc['batch']['isUndo']||!_0x6850dc['batch']['isLocal'])return!0x1;let _0x133f00=!0x1;const _0x4867a4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e5270=>_0x5e5270['data']&&'listItemId'==_0x5e5270['data']['key'])['filter'](_0x18817e=>_0x18817e['data']['newValue']&&_0x18817e['data']['oldValue']);for(const _0x53757f of _0x4867a4)le(_0x53757f)||(_0x6850dc['removeMarker'](_0x53757f['getFirstMarker']()),_0x133f00=!0x0);return _0x133f00;}['noTrackChangesFixer'](_0x3803ec){if(_0x3803ec['batch']['isUndo']||!_0x3803ec['batch']['isLocal'])return!0x1;const _0x5d1de1=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5d1de1['trackChangesCommand']['value'])return!0x1;let _0x498572=!0x1;const _0x5b9732=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1f7498=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4a6ec1=>'attribute'==_0x4a6ec1['type'])['filter'](_0x37c630=>_0x5b9732['includes'](_0x37c630['attributeKey']));if(0x0==_0x1f7498['length'])return _0x498572;for(const _0x4741ab of _0x1f7498){const _0x233171=_0x5d1de1['_findSuggestions'](_0x4741ab['range'],'attribute')['filter'](_0x4bc520=>!_0x4bc520['meta']['isNextTo'])['map'](_0xb102c5=>_0xb102c5['suggestion'])['filter'](_0x36b2a2=>{const _0x271444=_0x5d1de1['_getAttributeKey'](_0x36b2a2);return _0x5b9732['includes'](_0x271444);});if(_0x233171['length']){for(const _0x440deb of _0x233171)_0x3803ec['removeMarker'](_0x440deb['getFirstMarker']());_0x498572=!0x0;}}return _0x498572;}['assureChains'](_0x4b8750){if(_0x4b8750['batch']['isUndo']||!_0x4b8750['batch']['isLocal'])return!0x1;const _0x2ff222=this['editor']['plugins']['get']('TrackChangesEditing');let _0x3596ea=!0x1;const _0x566718=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x44fed0 of _0x2ff222['getSuggestions']({'skipNotAttached':!0x0})){const _0x56b981=_0x2ff222['_findSuggestions'](_0x44fed0['getFirstRange'](),'attribute')['map'](_0x977215=>_0x977215['suggestion'])['filter'](_0x47f717=>_0x47f717['data']&&_0x566718['includes'](_0x47f717['data']['key']));if(!_0x56b981['length'])continue;const _0x38ac14=_0x56b981[0x0]['head']['attributes']['groupId'];if(!_0x56b981['every'](_0x19281c=>_0x19281c['attributes']['groupId']===_0x38ac14)){for(const _0x21d182 of _0x56b981)_0x10f92e(_0x21d182,_0x38ac14)&&(_0x3596ea=!0x0);}}return _0x3596ea;function _0x4cb44c(_0x154359,_0x59c949){for(const _0x2d6198 of _0x2ff222['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1104fa=>'attribute'==_0x1104fa['type']&&_0x1104fa['attributes']['groupId']==_0x154359))_0x2d6198['setAttribute']('groupId',_0x59c949);}function _0x10f92e(_0x413fce,_0x36e303){let _0x2e21aa=_0x413fce['head'],_0x4f7aa8=!0x1;for(;_0x2e21aa;)_0x2e21aa['attributes']['groupId']!=_0x36e303&&(_0x4cb44c(_0x2e21aa['attributes']['groupId'],_0x36e303),_0x2e21aa['setAttribute']('groupId',_0x36e303),_0x4f7aa8=!0x0),_0x2e21aa=_0x2e21aa['next'];return _0x4f7aa8;}}['_supportLegacySuggestions'](){const _0x50138d=this['editor'],_0x2f6cbb=_0x50138d['locale'],_0x18efbf=_0x50138d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x18efbf['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x457b2e,_0x2c7896){const _0x15d603=[];for(let _0x48796e of _0x457b2e)_0x48796e['start']['nodeAfter']===_0x48796e['end']['parent']&&(_0x48796e=_0x50138d['model']['createRange'](_0x50138d['model']['createPositionAt'](_0x48796e['start']['nodeAfter'],0x0))),_0x15d603['push'](_0x48796e);_0x50138d['model']['change'](_0x1925fc=>{const _0x17cba0=_0x50138d['model']['document']['selection'],_0x25e055=Array['from'](_0x17cba0['getRanges']())['map'](_0x4abfa3=>_0x216747['fromRange'](_0x4abfa3));_0x1925fc['setSelection'](_0x15d603),_0x50138d['commands']['get'](_0x2c7896['commandName'])['refresh'](),_0x2c7896['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x50138d['execute'](_0x2c7896['commandName'],..._0x2c7896['commandParams']),_0x1925fc['setSelection'](_0x25e055);for(const _0x303713 of _0x25e055)_0x303713['detach']();});}),_0x18efbf['descriptionFactory']['registerElementLabel'](function(_0xb62e){const _0x555bfc=!_0x50138d['model']['schema']['isObject'](_0xb62e),_0x35629b=_0xb62e['previousSibling'],_0x5d7758=_0xb62e['nextSibling'],_0x4e5cbc=_0xb62e['getAttribute']('listItemId'),_0x34e970=!_0x35629b||_0x35629b['getAttribute']('listItemId')!==_0x4e5cbc,_0x435bca=!_0x5d7758||_0x5d7758['getAttribute']('listItemId')!==_0x4e5cbc;return _0x555bfc&&Boolean(_0x4e5cbc)&&_0x34e970&&_0x435bca;},_0x35f455=>o(_0x2f6cbb,'ELEMENT_LIST_ITEM',_0x35f455));}['_registerLegacyDescription'](){const _0x209d29=this['editor'],_0x251d3d=_0x209d29['locale'];function _0x2f866a(_0x3c2284){const _0x586a98=_0x209d29['commands']['get']('bulletedList')['value'],_0x5c793b=_0x209d29['commands']['get']('numberedList')['value'];return'numberedList'===_0x3c2284?_0x586a98:_0x5c793b;}_0x209d29['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x476dd0){if('formatBlock'!=_0x476dd0['type'])return;const {data:_0x7ba49}=_0x476dd0;if(!_0x7ba49)return;let _0x355796,_0x59383e,_0x22a53c,_0x1ba419;switch(_0x7ba49['commandName']){case'bulletedList':_0x22a53c=_0x7ba49['commandParams'][0x0]['forceValue'],_0x1ba419=_0x2f866a(_0x7ba49['commandName']),_0x355796=_0x22a53c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1ba419&&_0x209d29['config']['get']('list.multiBlock')||(_0x355796='*Change\x20to:*\x20%0'),_0x59383e={'type':'format','content':o(_0x251d3d,_0x355796,o(_0x251d3d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x22a53c=_0x7ba49['commandParams'][0x0]['forceValue'],_0x1ba419=_0x2f866a(_0x7ba49['commandName']),_0x355796=_0x22a53c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1ba419&&_0x209d29['config']['get']('list.multiBlock')||(_0x355796='*Change\x20to:*\x20%0'),_0x59383e={'type':'format','content':o(_0x251d3d,_0x355796,o(_0x251d3d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x355796='*Indent:*\x20%0',_0x59383e={'type':'format','content':o(_0x251d3d,_0x355796,o(_0x251d3d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x355796=function(_0x34bb87){const _0x3dd882=_0x34bb87['getFirstRange']();let _0x17d2a2=_0x3dd882['start']['nodeAfter'];for(;_0x17d2a2&&_0x3dd882['containsItem'](_0x17d2a2);){if(_0x17d2a2['getAttribute']('listIndent')>0x0)return!0x1;_0x17d2a2=_0x17d2a2['nextSibling'];}return!0x0;}(_0x476dd0)?o(_0x251d3d,'*Format:*\x20remove\x20from\x20%0',o(_0x251d3d,function(_0x2d49c7){return'ELEMENT_'+_0x2d49c7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x476dd0))):o(_0x251d3d,'*Outdent:*\x20%0',o(_0x251d3d,'ELEMENT_LIST_ITEM')),_0x59383e={'type':'format','content':_0x355796};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x7ba49['multipleBlocks']&&(_0x355796='*Merge:*\x20%0',_0x59383e={'type':'deletion','content':o(_0x251d3d,_0x355796,o(_0x251d3d,'ELEMENT_LIST_ITEM'))});}return _0x59383e;});}}function le(_0x3be6c0){let _0x394a15=_0x3be6c0['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x394a15;){const _0x569f28=_0x394a15['getAttribute']('listItemId');if(!_0x569f28)return!0x1;if(_0x569f28==_0x3be6c0['data']['newValue'])return'newValue';if(_0x569f28==_0x3be6c0['data']['oldValue'])return'oldValue';_0x394a15=_0x394a15['previousSibling'];}return!0x1;}class ue extends _0x54db38{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x55bb87=this['editor']['config']['get']('list.properties'),_0x34d552=this['editor']['plugins']['get']('TrackChangesEditing');_0x55bb87['styles']&&(_0x34d552['enableDefaultAttributesIntegration']('listStyle'),_0x34d552['registerBlockAttribute']('listStyle')),_0x55bb87['reversed']&&(_0x34d552['enableDefaultAttributesIntegration']('listReversed'),_0x34d552['registerBlockAttribute']('listReversed')),_0x55bb87['startIndex']&&(_0x34d552['enableDefaultAttributesIntegration']('listStart'),_0x34d552['registerBlockAttribute']('listStart'));const _0x1b765e={'type':'format','content':''};_0x34d552['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5c0471=this['editor']['locale'];_0x34d552['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5c0471,'FORMAT_LIST_REVERSED')),_0x34d552['descriptionFactory']['registerDescriptionCallback'](_0x234966=>{const {data:_0x2676e3}=_0x234966;if(_0x2676e3&&'listReversed'==_0x2676e3['key'])return null==_0x2676e3['newValue']||0x0==_0x2676e3['newValue']&&null==_0x2676e3['oldValue']?_0x1b765e:void 0x0;}),_0x34d552['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5c0471,'FORMAT_LIST_START')),_0x34d552['descriptionFactory']['registerDescriptionCallback'](_0x1c7fa5=>{const {data:_0x411c3a}=_0x1c7fa5;if(_0x411c3a&&'listStart'==_0x411c3a['key'])return null==_0x411c3a['newValue']||0x1==_0x411c3a['newValue']&&null==_0x411c3a['oldValue']?_0x1b765e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x43a264=>{if(_0x43a264['batch']['isUndo'])return!0x1;let _0x12e1d9=!0x1;const _0x4481a7=_0x34d552['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c622b=>{const _0x36e15e=_0x34d552['_getAttributeKey'](_0x1c622b);return'listStart'==_0x36e15e||'listReversed'==_0x36e15e;});for(const _0x1185ab of _0x4481a7){const _0x157039=_0x1185ab['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x157039||'customNumbered'==_0x157039)continue;_0x34d552['_findSuggestions'](_0x1185ab['getFirstRange'](),'attribute')['find'](_0x253bed=>'listType'==_0x34d552['_getAttributeKey'](_0x253bed['suggestion']))||(_0x43a264['removeMarker'](_0x1185ab['getFirstMarker']()),_0x12e1d9=!0x0);}return _0x12e1d9;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x25ef72){const _0x387fc3=this['editor']['locale'],{data:_0x523321}=_0x25ef72,_0x273f13={'type':'format','content':''};if(!_0x523321||'listStyle'!=_0x523321['key'])return;if(!_0x523321['oldValue'])return'default'==_0x523321['newValue']?_0x273f13:{'type':'format','content':''+o(_0x387fc3,'*Set\x20format:*\x20%0',o(_0x387fc3,this['_getTranslationKeyForListStyle'](_0x523321['newValue'])))};if(!_0x523321['newValue']){if('default'==_0x523321['oldValue'])return _0x273f13;let _0xebda05=_0x25ef72['head'];for(;_0xebda05;){if(_0xebda05['data']&&'listType'==_0xebda05['data']['key']&&_0xebda05['data']['newValue'])return _0x273f13;_0xebda05=_0xebda05['next'];}return{'type':'format','content':''+o(_0x387fc3,'*Remove\x20format:*\x20%0',o(_0x387fc3,this['_getTranslationKeyForListStyle'](_0x523321['oldValue'])))};}if('default'!=_0x523321['newValue'])return{'type':'format','content':''+o(_0x387fc3,'*Set\x20format:*\x20%0',o(_0x387fc3,this['_getTranslationKeyForListStyle'](_0x523321['newValue'])))};let _0x3cc6d=_0x25ef72['head'];for(;_0x3cc6d;){if(_0x3cc6d['data']&&'listType'==_0x3cc6d['data']['key']&&_0x3cc6d['data']['newValue']&&_0x3cc6d['data']['oldValue'])return _0x273f13;_0x3cc6d=_0x3cc6d['next'];}return{'type':'format','content':o(_0x387fc3,'*Set\x20format:*\x20%0',o(_0x387fc3,'ELEMENT_'+_0x25ef72['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2e2d26=this['editor'],_0x4c5aed=_0x2e2d26['locale'];_0x2e2d26['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f5078=>{if('formatBlock'!=_0x1f5078['type'])return;const {data:_0x2de1b8}=_0x1f5078;if(!_0x2de1b8)return;let _0x251095,_0x51702b;switch(_0x2de1b8['commandName']){case'listStyle':_0x251095='*Change\x20to:*\x20%0',_0x51702b={'type':'format','content':o(_0x4c5aed,_0x251095,o(_0x4c5aed,this['_getTranslationKeyForListStyle'](_0x2de1b8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x251095=_0x2de1b8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x51702b={'type':'format','content':o(_0x4c5aed,_0x251095)};break;case'listStart':_0x251095='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x51702b={'type':'format','content':o(_0x4c5aed,_0x251095,_0x2de1b8['commandParams'][0x0]['startIndex'])};}return _0x51702b;});}['_getTranslationKeyForListStyle'](_0xe56b47){return'ELEMENT_'+function(_0x1bb0ee){if(pe['includes'](_0x1bb0ee))return'bulleted';if(ye['includes'](_0x1bb0ee))return'numbered';return null;}(_0xe56b47)['toUpperCase']()+'_LIST_'+_0xe56b47['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x54db38{static get['requires'](){return[_0x5234e5];}['init'](){const _0x3435f9=this['editor'],_0x5ddc6b=_0x3435f9['plugins']['get']('TrackChangesEditing'),_0x3dcb20=_0x3435f9['commands']['get']('enter');_0x5ddc6b['enableCommand']('enter',()=>{_0x3435f9['model']['change'](_0x355504=>{const _0x400d60=_0x3435f9['model']['document']['selection'],_0x69194c=_0x400d60['getFirstPosition'](),_0x2ad428=_0x216747['fromRange'](_0x400d60['getFirstRange']());if(_0x3dcb20['enterBlock'](_0x355504)){const _0x42c956=_0x3435f9['model']['createPositionAt'](_0x69194c['parent']['nextSibling'],0x0),_0x5cb5b9=_0x355504['createRange'](_0x69194c,_0x42c956);_0x5ddc6b['markInsertion'](_0x5cb5b9);}else _0x355504['setSelection'](_0x355504['createRange'](_0x2ad428['end']));_0x2ad428['detach'](),_0x3dcb20['fire']('afterExecute',{'writer':_0x355504});});}),_0x3435f9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x3435f9,'split'),{'priority':'high'}),_0x3435f9['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x159661,_0x22ddf1,_0x5babb6)=>{const _0x30e864=_0x5babb6['mapper']['markerNameToElements'](_0x22ddf1['markerName']);if(_0x30e864){for(const _0x54e213 of _0x30e864)_0x54e213['hasClass']('ck-suggestion-marker-split')&&(_0x5babb6['mapper']['unbindElementFromMarkerName'](_0x54e213,_0x22ddf1['markerName']),_0x5babb6['writer']['remove'](_0x54e213));}},{'priority':'high'}),_0x3435f9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x570e29,_0x2a2efc,_0xcddf4d)=>{_0xcddf4d['options']['showSuggestionHighlights']&&_e(_0x3435f9,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x570e29,_0x2a2efc,_0xcddf4d);},{'priority':'high'});}}class J extends _0x54db38{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x57344a=this['editor']['plugins']['get']('TrackChangesEditing');_0x57344a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x57344a['enableCommand']('findNext'),_0x57344a['enableCommand']('findPrevious'),_0x57344a['enableCommand']('replace'),_0x57344a['enableCommand']('replaceAll');}['handleFindCommand'](_0x292336,_0x462136,_0x36485f={}){const _0x168828=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x292336(_0x2399bd=>('string'==typeof _0x462136?_0x168828['findByTextCallback'](_0x462136,_0x36485f):_0x462136)(_0x2399bd)['filter'](_0xa57a14=>!0x1===this['_isInDeletionRange'](_0xa57a14,_0x2399bd['item'])),_0x36485f);}['_isInDeletionRange'](_0x358ee9,_0x5f56fd){const _0x3f50b0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5f56fd,_0x358ee9['start']),this['editor']['model']['createPositionAt'](_0x5f56fd,_0x358ee9['end']));for(const _0x3d5ac7 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3f50b0['getIntersection'](_0x3d5ac7['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x54db38{['afterInit'](){const _0xbdf3c0=this['editor']['locale'],_0x3d3726=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xb92426,commandName:_0x45f346}of ro)this['editor']['plugins']['has'](_0xb92426)&&(_0x3d3726['enableDefaultAttributesIntegration'](_0x45f346),_0x3d3726['registerInlineAttribute'](_0x45f346));_0xbdf3c0['t'],_0x3d3726['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xbdf3c0,'FORMAT_FONT_SIZE')),_0x3d3726['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xbdf3c0,'FORMAT_FONT_FAMILY')),_0x3d3726['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xbdf3c0,'FORMAT_FONT_COLOR')),_0x3d3726['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xbdf3c0,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d7349=this['editor'],_0x25fd47=_0x4d7349['locale'];_0x4d7349['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e64b4=>{const _0x354bbc=_0x25fd47['t'];if('formatInline'!=_0x5e64b4['type'])return;const {data:_0x4a5c91}=_0x5e64b4;if(null!=_0x4a5c91){if('fontSize'==_0x4a5c91['commandName']){const _0x6f6ddb=_0x4a5c91['commandParams'][0x0]['value'];if(_0x6f6ddb){const _0x1bef2b=_0x354bbc(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x33ef3f=>_0x33ef3f['model']==_0x6f6ddb)['title'])['toLowerCase']();return{'type':'format','content':o(_0x25fd47,'*Set\x20font\x20size:*\x20%0',_0x1bef2b)};}return{'type':'format','content':o(_0x25fd47,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4a5c91['commandName']){const _0x27a867=_0x4a5c91['commandParams'][0x0]['value'];return _0x27a867?{'type':'format','content':o(_0x25fd47,'*Set\x20font\x20family:*\x20%0',_0x27a867)}:{'type':'format','content':o(_0x25fd47,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4a5c91['commandName']){const _0x20bc15=_0x4a5c91['commandParams'][0x0]['value'];if(_0x20bc15){const _0x5c0fbe=_0x2a332b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x54d2c3=>_0x54d2c3['model']==_0x20bc15);let _0x289ac5=_0x20bc15,_0x4b4ae8='';return _0x5c0fbe&&(_0x289ac5=_0x5c0fbe['label'],_0x4b4ae8=_0x354bbc(_0x289ac5)['toLowerCase']()),{'type':'format','content':o(_0x25fd47,'*Set\x20font\x20color:*\x20%0',_0x4b4ae8)['trim'](),'color':{'value':_0x20bc15,'title':_0x4b4ae8||_0x289ac5}};}return{'type':'format','content':o(_0x25fd47,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4a5c91['commandName']){const _0x7eb573=_0x4a5c91['commandParams'][0x0]['value'];if(_0x7eb573){const _0x44da35=_0x2a332b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x11ab8c=>_0x11ab8c['model']==_0x7eb573);let _0x2d524f=_0x7eb573,_0xb2a974='';return _0x44da35&&(_0x2d524f=_0x44da35['label'],_0xb2a974=_0x354bbc(_0x2d524f)['toLowerCase']()),{'type':'format','content':o(_0x25fd47,'*Set\x20font\x20background\x20color:*\x20%0',_0xb2a974)['trim'](),'color':{'value':_0x7eb573,'title':_0xb2a974||_0x2d524f}};}return{'type':'format','content':o(_0x25fd47,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x54db38{['afterInit'](){const _0x5d2f9e=this['editor'],_0x1c6ff9=_0x5d2f9e['plugins']['get']('TrackChangesEditing'),_0x509f0a=_0x5d2f9e['commands']['get']('copyFormat'),_0x1fbd3e=_0x5d2f9e['commands']['get']('pasteFormat');_0x509f0a&&_0x1fbd3e&&(_0x1c6ff9['enableDefaultAttributesIntegration']('pasteFormat'),_0x1c6ff9['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2dc328=this['editor'],_0x3ccc6f=_0x2dc328['locale'];_0x2dc328['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1230ee=>{if('formatBlock'!=_0x1230ee['type']&&'formatInline'!=_0x1230ee['type'])return;const {data:_0x5aa231}=_0x1230ee;if(_0x5aa231&&'pasteFormat'===_0x5aa231['commandName']){const _0x38ac9a=[],_0x5d469c=_0x5aa231['commandParams'][0x0];for(const [_0x32d536,_0x460265]of Object['entries'](_0x5d469c))_0x38ac9a['push'](so(_0x2dc328,_0x32d536,_0x460265));return _0x38ac9a['length']?{'type':'format','content':o(_0x3ccc6f,'*Set\x20format\x20to:*\x20%0',_0x38ac9a['join'](',\x20'))}:{'type':'format','content':o(_0x3ccc6f,'*Remove\x20all\x20formatting*')};}});}}function so(_0x26ff10,_0x26c00a,_0x58bedd){const _0x29416e=_0x26ff10['locale']['t'],_0x36cdc3=_0x26c00a['split'](/(?=[A-Z])/)['join']('\x20'),_0x4bfd16=_0x29416e(_0x36cdc3['charAt'](0x0)['toUpperCase']()+_0x36cdc3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x58bedd)return _0x4bfd16;if('fontColor'===_0x26c00a||'fontBackgroundColor'===_0x26c00a){const _0x40e81b=_0x2a332b(_0x26ff10['config']['get']('fontColor.colors'))['find'](_0x59870b=>_0x59870b['model']==_0x58bedd);return _0x4bfd16+'\x20('+(_0x40e81b?_0x29416e(_0x40e81b['label'])['toLowerCase']():_0x58bedd)+')';}if('fontSize'===_0x26c00a&&isNaN(parseFloat(_0x58bedd))){const _0x553adc=_0x26ff10['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x26ff10['config']['get']('fontSize.options'))['find'](_0x11bb73=>_0x11bb73['model']==_0x58bedd);return _0x4bfd16+'\x20('+(_0x553adc?_0x29416e(_0x553adc['title'])['toLowerCase']():_0x58bedd)+')';}return _0x4bfd16+'\x20('+_0x58bedd+')';}class Y extends _0x54db38{['_headingOptions'];['afterInit'](){const _0x10114d=this['editor'];if(!_0x10114d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x10114d['config']['get']('heading.options');const _0x266769=_0x10114d['locale'],_0xdc616d=_0x10114d['plugins']['get']('TrackChangesEditing');_0xdc616d['enableDefaultAttributesIntegration']('heading');for(const _0xb3876c of this['_headingOptions'])'paragraph'!=_0xb3876c['model']&&_0xdc616d['descriptionFactory']['registerElementLabel'](_0xb3876c['model'],_0x26e1de=>{const _0x18e7b0=this['_getHeadingLevel'](_0xb3876c['model']);return null!==_0x18e7b0?_0x3b23d0(_0x26e1de,_0x18e7b0):_0x59a123(_0x26e1de,_0xb3876c['title']);});function _0x3b23d0(_0x202390,_0x2977dd){return o(_0x266769,'ELEMENT_HEADING',[_0x202390,_0x2977dd]);}function _0x59a123(_0x29ea46,_0x566b9f){return o(_0x266769,'ELEMENT_HEADING_CUSTOM',[_0x29ea46,_0x566b9f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e40f5=this['editor'],_0x5b8696=_0x5e40f5['locale'];function _0x448611(_0x6fb9eb,_0x3a0fe6){return o(_0x5b8696,'ELEMENT_HEADING_CUSTOM',[_0x6fb9eb,_0x3a0fe6]);}_0x5e40f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x436c17=>{if('formatBlock'!=_0x436c17['type'])return;const {data:_0x44ff95}=_0x436c17;if(_0x44ff95&&'heading'==_0x44ff95['commandName']){const _0x4640c8=_0x44ff95['commandParams'][0x0]['value'],_0x30277f=this['_getHeadingLevel'](_0x4640c8);if(null!==_0x30277f)return{'type':'format','content':o(_0x5b8696,'*Change\x20to:*\x20%0',(_0x10cd69=0x1,_0x2dc8bb=_0x30277f,o(_0x5b8696,'ELEMENT_HEADING',[_0x10cd69,_0x2dc8bb])))};const _0x3da972=this['_headingOptions']['find'](_0x2218e4=>_0x2218e4['model']===_0x4640c8)['title'];return{'type':'format','content':o(_0x5b8696,'*Change\x20to:*\x20%0',_0x448611(0x1,_0x3da972))};}var _0x10cd69,_0x2dc8bb;});}['_getHeadingLevel'](_0x176fbb){const _0x124cfc=_0x176fbb['match'](/^heading(\d+)/);if(_0x124cfc)return _0x124cfc[0x1];const _0x2bd4e2=this['_headingOptions']?.['find'](_0x2e1fd6=>_0x2e1fd6['model']==_0x176fbb);if(_0x2bd4e2&&_0x2bd4e2['view']){const _0x26adf3=_0x2bd4e2['view'],_0x4570a6=(_0x26adf3['name']??_0x26adf3)['match'](/^h(\d+)/);if(_0x4570a6)return _0x4570a6[0x1];}return null;}}class Z extends _0x54db38{['afterInit'](){const _0x2c0d66=this['editor'];if(!_0x2c0d66['plugins']['has']('HighlightEditing'))return;const _0x5e8e1c=_0x2c0d66['plugins']['get']('TrackChangesEditing'),_0x1ab9f4=_0x2c0d66['locale'];_0x5e8e1c['enableDefaultAttributesIntegration']('highlight'),_0x5e8e1c['registerInlineAttribute']('highlight'),_0x5e8e1c['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1ab9f4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43137e=this['editor'],_0x657209=_0x43137e['locale'];_0x43137e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24db7d=>{if('formatInline'!=_0x24db7d['type'])return;const {data:_0x3d475a}=_0x24db7d;if(_0x3d475a&&'highlight'==_0x3d475a['commandName']){const _0x3f6852=_0x657209['t'],_0x5291f4=_0x3d475a['commandParams'][0x0]['value'];if(_0x5291f4){const _0x14bcb1=_0x43137e['config']['get']('highlight.options')['find'](_0x4f112c=>_0x4f112c['model']==_0x5291f4),_0x39072f=_0x3f6852(_0x14bcb1['title'])['toLowerCase']();return{'type':'format','content':o(_0x657209,'*Set\x20highlight:*\x20%0',_0x39072f),'color':{'value':_0x14bcb1['color'],'title':_0x14bcb1['title']}};}return{'type':'format','content':o(_0x657209,'*Remove\x20highlight*',o(_0x657209,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x54db38{['afterInit'](){const _0x3966bb=this['editor'];if(!_0x3966bb['plugins']['has']('HorizontalLineEditing'))return;_0x3966bb['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1f5c48=_0x3966bb['plugins']['get']('TrackChangesEditing'),_0x3db204=_0x3966bb['locale'];_0x1f5c48['descriptionFactory']['registerElementLabel']('horizontalLine',_0x238637=>o(_0x3db204,'ELEMENT_HORIZONTAL_LINE',_0x238637)),_0x3966bb['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xb7b4a9,{writer:_0x1cb90e,options:_0x18bfad})=>{if(!_0x18bfad['showSuggestionHighlights'])return null;const _0x4012c6=_0x1cb90e['createContainerElement']('div'),_0x559dc5=_0x1cb90e['createEmptyElement']('hr');return _0x1cb90e['addClass']('ck-horizontal-line',_0x4012c6),_0x1cb90e['insert'](_0x1cb90e['createPositionAt'](_0x4012c6,0x0),_0x559dc5),_0x4012c6;},'converterPriority':'high'});}}class et extends _0x54db38{['afterInit'](){const _0x25fcf4=this['editor'];if(!_0x25fcf4['plugins']['has']('HtmlEmbed'))return;const _0x2600c9=_0x25fcf4['plugins']['get']('TrackChangesEditing'),_0x228df7=_0x25fcf4['locale'];_0x2600c9['descriptionFactory']['registerElementLabel']('rawHtml',_0x5dac90=>o(_0x228df7,'ELEMENT_HTML_EMBED',_0x5dac90)),_0x2600c9['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2600c9['registerBlockAttribute']('value'),_0x2600c9['descriptionFactory']['registerDescriptionCallback'](_0x211b49=>{if('attribute'!=_0x211b49['type'])return;const {data:_0x3862e6}=_0x211b49;if(_0x3862e6&&'value'==_0x3862e6['key']&&_0x211b49['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x519295=o(_0x228df7,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x228df7,'*Change\x20%0\x20content*',_0x519295)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12234a=this['editor'],_0x41c4d2=_0x12234a['locale'];_0x12234a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfe85ae=>{if('formatBlock'!=_0xfe85ae['type'])return;const {data:_0x59d97b}=_0xfe85ae;if(_0x59d97b&&'htmlEmbed'==_0x59d97b['commandName']){const _0x5e14f6=o(_0x41c4d2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x41c4d2,'*Change\x20%0\x20content*',_0x5e14f6)};}});}}class it extends _0x54db38{['afterInit'](){const _0x16994f=this['editor'];if(!_0x16994f['plugins']['has']('ImageEditing'))return;const _0x25e66b=_0x16994f['plugins']['get']('TrackChangesEditing'),_0x5a2eec=_0x16994f['plugins']['get']('ImageUtils'),_0x44346a=_0x16994f['locale'];_0x25e66b['enableCommand']('insertImage'),_0x25e66b['descriptionFactory']['registerElementLabel']('imageBlock',_0xd20c0d=>o(_0x44346a,'ELEMENT_IMAGE',_0xd20c0d)),_0x25e66b['descriptionFactory']['registerElementLabel']('imageInline',_0x479933=>o(_0x44346a,'ELEMENT_INLINE_IMAGE',_0x479933)),_0x25e66b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x44346a,'ELEMENT_CAPTION')),_0x16994f['plugins']['has']('ImageUploadEditing')&&_0x25e66b['enableCommand']('uploadImage'),_0x16994f['plugins']['has']('ImageBlockEditing')&&_0x16994f['plugins']['has']('ImageInlineEditing')&&(_0x25e66b['enableCommand']('imageTypeInline',(_0x5c26e6,_0x550078)=>{const _0x534b0a=_0x5a2eec['getClosestSelectedImageElement'](_0x16994f['model']['document']['selection']);_0x16994f['model']['change'](()=>{_0x25e66b['markBlockFormat'](_0x534b0a,{'commandName':'imageTypeInline','commandParams':[_0x550078]},[],'convertBlockImageToInline');});}),_0x25e66b['enableCommand']('imageTypeBlock',(_0x128544,_0x1007f0)=>{_0x16994f['model']['change'](_0x5a4c22=>{let _0x4877cb=_0x5a2eec['getClosestSelectedImageElement'](_0x16994f['model']['document']['selection']),_0x235b07=_0x5a4c22['createRangeOn'](_0x4877cb);const _0xc2c3c2=_0xf4223e['fromPosition'](_0x235b07['start'],'toPrevious'),_0x3dbe6b=_0xf4223e['fromPosition'](_0x235b07['end'],'toNext');_0x25e66b['forceDefaultExecution'](()=>_0x128544(_0x1007f0)),_0x4877cb=_0x5a2eec['getClosestSelectedImageElement'](_0x16994f['model']['document']['selection']),_0x235b07=_0x5a4c22['createRangeOn'](_0x4877cb);const _0x4cea80=_0x5a4c22['createRange'](_0xc2c3c2,_0x3dbe6b);_0xc2c3c2['detach'](),_0x3dbe6b['detach'](),_0x25e66b['markBlockFormat'](_0x4877cb,{'commandName':'imageTypeInline','commandParams':[_0x1007f0]},[],'convertInlineImageToBlock'),_0x4cea80['start']['isBefore'](_0x235b07['start'])&&_0x25e66b['markInsertion'](_0x5a4c22['createRange'](_0x4cea80['start'],_0x235b07['start']),'convertInlineImageToBlock'),_0x235b07['end']['isBefore'](_0x4cea80['end'])&&_0x25e66b['markInsertion'](_0x5a4c22['createRange'](_0x235b07['end'],_0x4cea80['end']),'convertInlineImageToBlock');});}),_0x25e66b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x25e66b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x25e66b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x25e66b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x25e66b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x25e66b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x24f942])=>{const _0x4155d6=_0x25e66b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x39778d=_0x24f942['start'],_0x478e0d=_0x24f942['end'];const _0xab2c75=_0x16994f['model']['schema']['getNearestSelectionRange'](_0x39778d,'backward'),_0x2c1b91=_0x16994f['model']['schema']['getNearestSelectionRange'](_0x478e0d,'forward');_0xab2c75['isCollapsed']&&(_0x39778d=_0xab2c75['start']),_0x2c1b91['isCollapsed']&&(_0x478e0d=_0x2c1b91['end']),_0x4155d6([_0x16994f['model']['createRange'](_0x39778d,_0x478e0d)]);}),_0x25e66b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3dab2e),_0x25e66b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3dab2e)),_0x16994f['plugins']['has']('ImageCaptionEditing')&&(_0x25e66b['enableCommand']('toggleImageCaption',(_0x15cdd2,_0x437f0f)=>{const _0x2ec1c6=_0x16994f['plugins']['get']('ImageCaptionUtils');let _0x3f26ae=_0x5a2eec['getClosestSelectedImageElement'](_0x16994f['model']['document']['selection']),_0x347e52=_0x2ec1c6['getCaptionFromImageModelElement'](_0x3f26ae);_0x16994f['model']['change'](()=>{if(_0x347e52)return void _0x25e66b['markDeletion'](_0x16994f['model']['createRangeOn'](_0x347e52));const _0x15aeec=_0x5a2eec['isBlockImage'](_0x3f26ae);_0x15cdd2(_0x437f0f),_0x3f26ae=_0x5a2eec['getClosestSelectedImageElement'](_0x16994f['model']['document']['selection']),_0x347e52=_0x2ec1c6['getCaptionFromImageModelElement'](_0x3f26ae),_0x25e66b['markInsertion'](_0x16994f['model']['createRangeOn'](_0x347e52),_0x15aeec?null:'imageCaption');});}),_0x25e66b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3dab2e));const _0x19dc0e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x12dac5(_0x52648f,_0x36bbb3){const _0x410d03=_0x19dc0e['findIndex'](({type:_0x54df1c,subType:_0x30c8da})=>_0x52648f['type']==_0x54df1c&&_0x52648f['subType']==_0x30c8da),_0x47b899=_0x19dc0e['findIndex'](({type:_0x447f8a,subType:_0x3cabd1})=>_0x36bbb3['type']==_0x447f8a&&_0x36bbb3['subType']==_0x3cabd1);if(_0x410d03<0x0||_0x47b899<0x0)return!0x1;const _0x2adb33=_0x52648f['getFirstRange'](),_0x2ef45d=_0x36bbb3['getFirstRange']();if((0x0==_0x410d03||0x1==_0x410d03)&&0x2==_0x47b899&&_0x2adb33['isIntersecting'](_0x2ef45d))return!0x0;if(0x2==_0x410d03&&0x3==_0x47b899){const _0x52fcec=_0x25e66b['_findSuggestions'](_0x2adb33,'insertion')['filter'](({suggestion:_0xb00f2b,meta:_0x4c884b})=>_0x4c884b['isOwn']&&'convertInlineImageToBlock'==_0xb00f2b['subType']);if(_0x52fcec['length']>0x1&&_0x2ef45d['end']['isEqual'](_0x2adb33['start']))return!0x0;if(0x1==_0x52fcec['length']&&(_0x2adb33['start']['isEqual'](_0x2ef45d['end'])||_0x2adb33['end']['isEqual'](_0x2ef45d['start'])))return!0x0;}if(0x3==_0x410d03&&0x3==_0x47b899&&_0x2adb33['start']['isBefore'](_0x2ef45d['start'])){const _0x2a39f9=_0x2adb33['end']['nodeAfter'],_0x3e94f4=_0x2ef45d['start']['nodeBefore'];return _0x5a2eec['isBlockImage'](_0x2a39f9)&&_0x2a39f9===_0x3e94f4;}return!0x1;}function _0x3dab2e(_0x402749,_0x5ca8db){return _0x12dac5(_0x402749,_0x5ca8db)?[_0x402749,_0x5ca8db]:_0x12dac5(_0x5ca8db,_0x402749)?[_0x5ca8db,_0x402749]:null;}_0x16994f['plugins']['has']('ImageResize')&&(_0x25e66b['enableDefaultAttributesIntegration']('resizeImage'),_0x25e66b['registerBlockAttribute']('resizedWidth'),_0x25e66b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x44346a,'FORMAT_IMAGE_SIZE'))),_0x16994f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x25e66b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x25e66b['registerBlockAttribute']('alt')),_0x25e66b['descriptionFactory']['registerDescriptionCallback'](_0x2cc010=>{if(!!_0x19dc0e['find'](({type:_0x59a83e,subType:_0x290bd1})=>_0x2cc010['type']==_0x59a83e&&_0x2cc010['subType']==_0x290bd1))return _0x2cc010['previous']?{}:void 0x0;}),_0x25e66b['descriptionFactory']['registerDescriptionCallback'](_0x23b6a3=>{if('insertion'==_0x23b6a3['type']||'deletion'==_0x23b6a3['type']){const _0x4d653a=_0x23b6a3['getContainedElement']();if(_0x4d653a&&_0x4d653a['is']('element','caption'))return{'type':'insertion'==_0x23b6a3['type']?'addObject':'removeObject','element':_0x4d653a,'quantity':0x1};}}),_0x25e66b['descriptionFactory']['registerDescriptionCallback'](_0x57b781=>'formatBlock'==_0x57b781['type']&&'convertInlineImageToBlock'==_0x57b781['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x57b781['type']&&'convertBlockImageToInline'==_0x57b781['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x25e66b['descriptionFactory']['registerDescriptionCallback'](_0x553148=>{if('attribute'!=_0x553148['type'])return;const {data:_0x4a5319}=_0x553148;if(!_0x4a5319||'alt'!=_0x4a5319['key'])return;const _0x336fbf=_0x4a5319['newValue'];return _0x336fbf?{'type':'format','content':o(_0x44346a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x336fbf+'\x22')}:{'type':'format','content':o(_0x44346a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59182b=this['editor'],_0x21536b=_0x59182b['locale'];_0x59182b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xffd54a=>{if('formatBlock'!=_0xffd54a['type']&&'formatInline'!=_0xffd54a['type'])return;const {data:_0x577b04}=_0xffd54a;if(_0x577b04){if('imageTextAlternative'==_0x577b04['commandName']){const _0x242d9e=_0x577b04['commandParams'][0x0]['newValue'];return _0x242d9e?{'type':'format','content':o(_0x21536b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x242d9e+'\x22')}:{'type':'format','content':o(_0x21536b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x577b04['commandName']){const _0x353981=_0x577b04['commandParams'][0x0]['width'];return _0x353981?{'type':'format','content':o(_0x21536b,'*Set\x20image\x20width:*\x20%0',_0x353981)}:{'type':'format','content':o(_0x21536b,'*Reset\x20image\x20width*')};}}});}}class st extends _0x54db38{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x37dd30=this['editor']['locale'],_0x1347ee=this['editor']['plugins']['get']('TrackChangesEditing');_0x1347ee['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1347ee['registerBlockAttribute']('src'),_0x1347ee['descriptionFactory']['registerDescriptionCallback'](_0x3eb033=>{if('attribute'!=_0x3eb033['type'])return;const {data:_0x56bef3}=_0x3eb033;return _0x56bef3&&'src'==_0x56bef3['key']?_0x56bef3['newValue']&&_0x56bef3['oldValue']?{'type':'format','content':o(_0x37dd30,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x28f068=this['editor']['plugins']['get']('TrackChangesEditing');_0x28f068['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x28f068['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x28f068['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x28f068['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2386df=this['editor'],_0x81fe47=_0x2386df['locale'];_0x2386df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11c8b8=>{if('formatBlock'!=_0x11c8b8['type']&&'formatInline'!=_0x11c8b8['type'])return;const {data:_0x303598}=_0x11c8b8;if(!_0x303598||'replaceImageSource'!=_0x303598['commandName'])return;return{'type':'format','content':o(_0x81fe47,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x54db38{['afterInit'](){const _0x35569e=this['editor'];if(!_0x35569e['plugins']['has']('ImageStyleEditing'))return;const _0x3359d8=_0x35569e['plugins']['get']('TrackChangesEditing'),_0x358c0c=_0x35569e['plugins']['get']('ImageUtils'),_0x1955dd={};_0x3359d8['enableCommand']('imageStyle',(_0x3433e3,_0x512846)=>{const _0xc4a46e=_0x35569e['plugins']['get']('Users')['me'],_0x4c52f1=_0x35569e['commands']['get']('imageStyle');let _0x3c8118=_0x358c0c['getClosestSelectedImageElement'](_0x35569e['model']['document']['selection']),_0x1eaeec=_0x35569e['model']['createRangeOn'](_0x3c8118),_0x305e2c=_0x4c52f1['value'];if(_0x305e2c==_0x512846['value'])return;const _0x2875e3={'commandName':'imageStyle','commandParams':[_0x512846],'formatGroupId':_0xa3dac7()};_0x35569e['model']['change'](()=>{if(_0x3359d8['getSuggestions']()['filter'](_0x5a2f0a=>_0x5a2f0a['isInContent']&&_0xc4a46e==_0x5a2f0a['author']&&('formatBlock'==_0x5a2f0a['type']||'formatInline'==_0x5a2f0a['type'])&&('imageStylePreApply'==_0x5a2f0a['subType']||'imageStylePostApply'==_0x5a2f0a['subType'])&&_0x5a2f0a['getFirstRange']()['isEqual'](_0x1eaeec))['forEach'](_0x532223=>_0x3359d8['discardSuggestion'](_0x532223['head'])),_0x3c8118=_0x358c0c['getClosestSelectedImageElement'](_0x35569e['model']['document']['selection']),_0x1eaeec=_0x35569e['model']['createRangeOn'](_0x3c8118),_0x4c52f1['refresh'](),_0x35569e['commands']['get']('imageTypeInline')['refresh'](),_0x35569e['commands']['get']('imageTypeBlock')['refresh'](),_0x305e2c=_0x4c52f1['value'],_0x305e2c!=_0x512846['value'])return _0x358c0c['isInlineImage'](_0x3c8118)&&_0x4c52f1['shouldConvertImageType'](_0x512846['value'],_0x3c8118)?(_0x3433e3({..._0x512846,'setImageSizes':!0x1}),_0x3c8118=_0x358c0c['getClosestSelectedImageElement'](_0x35569e['model']['document']['selection']),void _0x3359d8['markBlockFormat'](_0x3c8118,{..._0x2875e3,'commandReversedParams':[{'value':_0x305e2c||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x358c0c['isBlockImage'](_0x3c8118)?_0x3359d8['markBlockFormat'](_0x3c8118,_0x2875e3,[],'imageStylePostApply'):_0x3359d8['markInlineFormat'](_0x1eaeec,_0x2875e3,'imageStylePostApply'));});});for(const _0x526f8f of _0x35569e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1955dd[_0x526f8f['name']]=_0x526f8f['title']['toLowerCase']();_0x3359d8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3359d8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3359d8['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3359d8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x11de40])=>{_0x358c0c['setImageNaturalSizeAttributes'](_0x11de40['getContainedElement']());}),_0x3359d8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x153a51,_0x2d07ea)=>{_0x3359d8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x153a51,{'commandName':_0x2d07ea['commandName'],'commandParams':_0x2d07ea['commandReversedParams']});}),_0x3359d8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1dc571,_0x5a8fc3){if(_0x179f5e(_0x1dc571,_0x5a8fc3))return[_0x1dc571,_0x5a8fc3];if(_0x179f5e(_0x5a8fc3,_0x1dc571))return[_0x5a8fc3,_0x1dc571];return null;});const _0x104462=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x179f5e(_0x5e4e85,_0x58e731){const _0x242517=_0x104462['findIndex'](({type:_0x353e6a,subType:_0x284a2e})=>_0x5e4e85['type']==_0x353e6a&&_0x5e4e85['subType']==_0x284a2e),_0xd54263=_0x104462['findIndex'](({type:_0x56af43,subType:_0x1cbc10})=>_0x58e731['type']==_0x56af43&&_0x58e731['subType']==_0x1cbc10);if(_0x242517<0x0||_0xd54263<0x0)return!0x1;const _0x18296a=_0x5e4e85['getFirstRange'](),_0x594e65=_0x58e731['getFirstRange']();if((0x0==_0x242517||0x1==_0x242517)&&0x2==_0xd54263&&_0x18296a['isIntersecting'](_0x594e65))return!0x0;if(0x2==_0x242517&&0x3==_0xd54263){const _0x55e9a7=_0x3359d8['_findSuggestions'](_0x18296a,'insertion')['filter'](({suggestion:_0x4d66bb,meta:_0x490085})=>_0x490085['isOwn']&&'convertInlineImageToBlock'==_0x4d66bb['subType']);if(_0x55e9a7['length']>0x1&&_0x594e65['end']['isEqual'](_0x18296a['start']))return!0x0;if(0x1==_0x55e9a7['length']&&(_0x18296a['start']['isEqual'](_0x594e65['end'])||_0x18296a['end']['isEqual'](_0x594e65['start'])))return!0x0;}if(0x3==_0x242517&&0x3==_0xd54263&&_0x18296a['start']['isBefore'](_0x594e65['start'])){const _0xabbe5b=_0x18296a['end']['nodeAfter'],_0x257367=_0x594e65['start']['nodeBefore'];return _0x358c0c['isBlockImage'](_0xabbe5b)&&_0xabbe5b===_0x257367;}return!0x1;}_0x35569e['model']['document']['registerPostFixer'](()=>{let _0x421dbf=!0x1;const _0x515c7e=Array['from'](_0x35569e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1920ca,data:_0x5be8a8}of _0x515c7e){const {group:_0x2af384,type:_0x58a808,subType:_0x216a94,id:_0x9c632f}=_0x3359d8['_splitMarkerName'](_0x1920ca);if('suggestion'==_0x2af384&&_0x3359d8['hasSuggestion'](_0x9c632f)){if('formatBlock'==_0x58a808&&('imageStylePreApply'==_0x216a94||'imageStylePostApply'==_0x216a94)){const _0x1c60b3=_0x3359d8['getSuggestion'](_0x9c632f);if(_0x5be8a8['newRange']){const _0x46c12b=_0x1c60b3['getFirstRange']()['getContainedElement']();if(_0x358c0c['isBlockImage'](_0x46c12b))continue;_0x3359d8['discardSuggestion'](_0x1c60b3),_0x421dbf=!0x0;}}if('insertion'==_0x58a808&&'imageCaption'==_0x216a94&&!_0x5be8a8['newRange']){const _0x291f85=_0x3359d8['getSuggestion'](_0x9c632f);_0x291f85['next']&&_0x291f85['next']['isInContent']&&(_0x3359d8['discardSuggestion'](_0x291f85['next']),_0x421dbf=!0x0);}}}return _0x421dbf;}),this['_registerLegacyDescription'](_0x1955dd);}['_registerLegacyDescription'](_0x133e11){const _0x21ce22=this['editor'],_0x1b1244=_0x21ce22['locale'];_0x21ce22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48283b=>{if('formatBlock'!=_0x48283b['type']&&'formatInline'!=_0x48283b['type'])return;const {data:_0x2d53ad}=_0x48283b;if(!_0x2d53ad||'imageStyle'!=_0x2d53ad['commandName'])return;const _0x283b1f=_0x2d53ad['commandParams'][0x0]['value'];return _0x339722('side'===_0x283b1f?o(_0x1b1244,'FORMAT_SIDE_IMAGE'):_0x133e11[_0x283b1f]||_0x283b1f);function _0x339722(_0x3bfa6a){return{'type':'format','content':o(_0x1b1244,'*Format:*\x20%0',_0x3bfa6a)};}});}}class ot extends _0x54db38{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x152d51){super(_0x152d51),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x55d831=this['editor'],_0x4c9009=_0x55d831['commands']['get']('importWord'),_0x2ac9fc=_0x55d831['commands']['get']('trackChanges');_0x4c9009&&(_0x4c9009['on']('execute',(_0x13e3f2,[,_0x5543f7])=>{this['_trackChangesValueDuringImport']=_0x2ac9fc['value'],_0x5543f7['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4c9009,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4c9009,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2ac9fc['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x55d831['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x350e18,_0x23a6b6){const {suggestions:_0x4b86d6}=_0x23a6b6,_0x52f264=this['editor']['commands']['get']('trackChanges'),_0xbfa534=_0x52f264['value'];this['_trackChangesValueDuringImport']!==_0xbfa534&&(_0x52f264['execute'](),this['_trackChangesExecuted']=!0x0),_0x4b86d6&&_0x4b86d6['forEach'](({id:_0x2fbbeb,type:_0x2d021e,author:_0xaff130,created_at:_0x46651b})=>{const _0x4caeaf={'id':_0x2fbbeb,'type':_0x2d021e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xaff130,'createdAt':_0x46651b?new Date(_0x46651b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4caeaf);});}}class rt extends _0x54db38{['afterInit'](){const _0x72f02f=this['editor'],_0x2b915d=_0x72f02f['plugins']['get']('TrackChangesEditing');if(_0x72f02f['plugins']['has']('IndentEditing')&&(_0x2b915d['enableCommand']('indent'),_0x2b915d['enableCommand']('outdent')),_0x72f02f['plugins']['has']('IndentBlock')){for(const _0x3e2e76 of['indentBlock','outdentBlock'])_0x2b915d['enableDefaultAttributesIntegration'](_0x3e2e76);}const _0xe0d0d4=_0x72f02f['locale'];_0x2b915d['registerBlockAttribute']('blockIndent'),_0x2b915d['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xe0d0d4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ff778=this['editor'],_0x3efc68=_0x4ff778['locale'],_0x19fe9c=_0x4ff778['plugins']['get']('TrackChangesEditing');_0x19fe9c['descriptionFactory']['registerDescriptionCallback'](_0x32bc2f=>{if('formatBlock'!=_0x32bc2f['type'])return;const {data:_0x506795}=_0x32bc2f;if(!_0x506795)return;if('indentBlock'!=_0x506795['commandName']&&'outdentBlock'!=_0x506795['commandName'])return;const _0x419459=_0x32bc2f['getItems']()[0x0],_0xb185e5=_0x19fe9c['descriptionFactory']['getItemLabel'](_0x419459);return'indentBlock'==_0x506795['commandName']?{'type':'format','content':o(_0x3efc68,'*Indent:*\x20%0',_0xb185e5)}:'outdentBlock'==_0x506795['commandName']?{'type':'format','content':o(_0x3efc68,'*Outdent:*\x20%0',_0xb185e5)}:void 0x0;});}}class at extends _0x54db38{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x54db38{['afterInit'](){const _0x2aa433=this['editor'];if(!_0x2aa433['plugins']['has']('LinkEditing'))return;const _0x5b307a=_0x2aa433['plugins']['get']('TrackChangesEditing'),_0x2222b2=_0x2aa433['commands']['get']('link');_0x5b307a['enableDefaultAttributesIntegration']('link'),_0x5b307a['enableDefaultAttributesIntegration']('unlink'),_0x5b307a['registerInlineAttribute']('linkHref');for(const _0x20e5bf of _0x2222b2['manualDecorators'])_0x5b307a['registerInlineAttribute'](_0x20e5bf['id']),_0x5b307a['descriptionFactory']['registerAttributeLabel'](_0x20e5bf['id'],'link\x20('+_0x20e5bf['label']['toLowerCase']()+')');_0x5b307a['descriptionFactory']['registerDescriptionCallback'](_0x5bd3f8=>{if('attribute'!=_0x5bd3f8['type'])return;const {data:_0x37fe9e}=_0x5bd3f8;if(!_0x37fe9e||'linkHref'!=_0x37fe9e['key'])return;const _0xc82f02=_0x37fe9e['newValue'],_0x511635=_0x2aa433['locale'];return{'type':'format','content':null==_0xc82f02?o(_0x511635,'*Remove\x20link*'):o(_0x511635,'*Set\x20link:*\x20%0','\x22'+_0xc82f02+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x409ef1=this['editor'],_0x3267a9=_0x409ef1['locale'];_0x409ef1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14822a=>{if('formatInline'!=_0x14822a['type'])return;const {data:_0x1d6f1d}=_0x14822a;if(_0x1d6f1d){if('link'==_0x1d6f1d['commandName']){const _0x1c477e=_0x1d6f1d['commandParams'][0x0];return{'type':'format','content':o(_0x3267a9,'*Set\x20link:*\x20%0','\x22'+_0x1c477e+'\x22')};}return'unlink'==_0x1d6f1d['commandName']?{'type':'format','content':o(_0x3267a9,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x54db38{['afterInit'](){const _0x2f5410=this['editor'],_0xbff8d2=_0x2f5410['locale'];if(!_0x2f5410['plugins']['has']('LegacyListEditing'))return;const _0x25ca23=_0x2f5410['plugins']['get']('TrackChangesEditing'),_0x50f124=_0x2f5410['plugins']['has']('LegacyTodoListEditing');function _0x30fe95(_0x11e125){return()=>{const _0x424c56=_0x2f5410['model']['document']['selection'],_0xc49bad=_0x2f5410['commands']['get'](_0x11e125);if(_0xc49bad['value'])return void _0x2f5410['execute']('paragraph',{});const _0x3d1058=_0x11e125['slice'](0x0,-0x4),_0x8ae22c=function(_0x4566e6,_0x3491c6,_0x864b3d){let _0x31390e=Array['from'](_0x4566e6)['filter'](_0x32e63b=>function(_0x1435b8,_0x11cfa0){return _0x11cfa0['checkChild'](_0x1435b8['parent'],'listItem')&&!_0x11cfa0['isObject'](_0x1435b8);}(_0x32e63b,_0x864b3d));_0x31390e=_0x31390e['filter'](_0x28b5f5=>!_0x28b5f5['is']('element','listItem')||_0x28b5f5['getAttribute']('listType')!=_0x3491c6);const _0xb9f14f=new Set();for(const _0x206ea1 of _0x31390e)_0x206ea1['is']('element','listItem')?_0xb9f14f['add'](me(_0x206ea1)):_0xb9f14f['add'](_0x206ea1);return Array['from'](_0xb9f14f);}(_0x424c56['getSelectedBlocks'](),_0x3d1058,_0x2f5410['model']['schema']);_0x2f5410['model']['change'](()=>{for(const _0x467a3d of _0x8ae22c)_0x25ca23['markBlockFormat'](_0x467a3d,{'commandName':_0x11e125,'commandParams':[{'forceValue':!_0xc49bad['value']}],'formatGroupId':'blockName'},fe(_0x467a3d));});};}function _0x139cbd(_0x41d104){return()=>{const _0x4a4f31=function(_0x2cd81c){let _0x1785a3=Array['from'](_0x2cd81c);const _0x537c8c=_0x1785a3['findIndex'](_0x7e4731=>'listItem'!=_0x7e4731['name']);return _0x537c8c>-0x1&&(_0x1785a3=_0x1785a3['slice'](0x0,_0x537c8c)),_0x1785a3;}(_0x2f5410['model']['document']['selection']['getSelectedBlocks']()),_0x5ac16e=_0x2f5410['model']['createRange'](_0x2f5410['model']['createPositionAt'](_0x4a4f31[0x0],'before'),_0x2f5410['model']['createPositionAt'](_0x4a4f31[_0x4a4f31['length']-0x1],'end'));_0x2f5410['model']['change'](()=>{_0x25ca23['markBlockFormat'](_0x5ac16e,{'commandName':_0x41d104,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2fa054){const _0x2d7360=new Set();for(const _0x1eca66 of _0x2fa054){let _0x145860=_0x1eca66['nextSibling'];for(;_0x145860&&_0x145860['getAttribute']('listIndent')>_0x1eca66['getAttribute']('listIndent');)_0x2d7360['add'](_0x145860),_0x145860=_0x145860['nextSibling'];}return Array['from'](_0x2d7360);}(_0x4a4f31));});};}_0x25ca23['enableCommand']('numberedList',_0x30fe95('numberedList')),_0x25ca23['enableCommand']('bulletedList',_0x30fe95('bulletedList')),_0x50f124&&_0x25ca23['enableCommand']('todoList',_0x30fe95('todoList')),_0x25ca23['enableCommand']('indentList',_0x139cbd('indentList')),_0x25ca23['enableCommand']('outdentList',_0x139cbd('outdentList')),_0x50f124&&_0x25ca23['enableCommand']('checkTodoList',()=>{const _0x485ee6=_0x2f5410['commands']['get']('checkTodoList'),_0x129eba=Array['from'](_0x485ee6['_selectedElements']);_0x129eba['filter'](_0x207b09=>_0x207b09['getAttribute']('todoListChecked')!=_0x485ee6['value']),_0x2f5410['model']['change'](()=>{for(const _0x53d1d4 of _0x129eba)_0x25ca23['markBlockFormat'](_0x53d1d4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x485ee6['value']}]});});}),_0x25ca23['descriptionFactory']['registerElementLabel']('listItem',_0x40392f=>o(_0xbff8d2,'ELEMENT_LIST_ITEM',_0x40392f)),_0x25ca23['descriptionFactory']['registerDescriptionCallback'](_0x4c3b47=>{if('formatBlock'!=_0x4c3b47['type']&&'formatInline'!=_0x4c3b47['type'])return;const {data:_0x23689e}=_0x4c3b47;if(_0x23689e){if('numberedList'==_0x23689e['commandName']||'bulletedList'==_0x23689e['commandName']||'todoList'==_0x23689e['commandName'])switch(_0x23689e['commandName']['replace']('List','')){case'bulleted':return _0x443f06(o(_0xbff8d2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x443f06(o(_0xbff8d2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x443f06(o(_0xbff8d2,'ELEMENT_TODO_LIST'));}if('indentList'==_0x23689e['commandName'])return{'type':'format','content':o(_0xbff8d2,'*Indent:*\x20%0',o(_0xbff8d2,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x23689e['commandName'])return{'type':'format','content':o(_0xbff8d2,'*Outdent:*\x20%0',o(_0xbff8d2,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x23689e['commandName'])return _0x23689e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xbff8d2,'*Check\x20item*')}:{'type':'format','content':o(_0xbff8d2,'*Uncheck\x20item*')};}function _0x443f06(_0xe5a8b7){return{'type':'format','content':o(_0xbff8d2,'*Change\x20to:*\x20%0',_0xe5a8b7)};}});}}function me(_0x3b2d00){const _0x57239a=_0x3b2d00['getAttribute']('listIndent');if(0x0==_0x57239a)return _0x3b2d00;let _0x264fbc=_0x3b2d00;for(;_0x3b2d00['previousSibling']&&_0x3b2d00['previousSibling']['is']('element','listItem');){const _0x501870=_0x3b2d00['previousSibling']['getAttribute']('listIndent');if(_0x501870==_0x57239a)_0x264fbc=_0x3b2d00['previousSibling'];else{if(_0x501870<_0x57239a)break;}_0x3b2d00=_0x3b2d00['previousSibling'];}return _0x264fbc;}function fe(_0x5e6fc9){const _0x381e0c=[];if(_0x5e6fc9['is']('element','listItem')&&_0x5e6fc9['getAttribute']('listIndent')>0x0){let _0x48094a=_0x5e6fc9['nextSibling'];for(;_0x48094a&&'listItem'==_0x48094a['name']&&_0x48094a['getAttribute']('listIndent')==_0x5e6fc9['getAttribute']('listIndent');)_0x381e0c['push'](_0x48094a),_0x48094a=_0x48094a['nextSibling'];}return _0x381e0c;}class K extends _0x54db38{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xf3ba1=this['editor']['config']['get']('list.properties'),_0x26f4d0=this['editor']['plugins']['get']('TrackChangesEditing');_0xf3ba1['styles']&&_0x26f4d0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xf3ba1['reversed']&&_0x26f4d0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xf3ba1['startIndex']&&_0x26f4d0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x26f4d0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x203dd5,_0x1adca9={}){const _0xbcd1a9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47f0d1=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xbcd1a9['markMultiRangeBlockFormat'](_0x47f0d1,{'commandName':'listStyle','commandParams':[{'type':_0x1adca9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x29cfce,_0x2cf330={}){const _0x54e59e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3bbc9e=this['_getSuggestionBlocks'](_0x1c3507=>_0x1c3507['is']('element','listItem')&&'numbered'===_0x1c3507['getAttribute']('listType'));if(_0x3bbc9e['length']<0x1)return;const _0x172495=_0x3bbc9e['map'](_0x4349b1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4349b1,'before'),this['editor']['model']['createPositionAt'](_0x4349b1,0x0)));this['editor']['model']['change'](()=>{_0x54e59e['markMultiRangeBlockFormat'](_0x172495,{'commandName':'listReversed','commandParams':[{'reversed':_0x2cf330['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x31788b,_0x3c8698={}){const _0x1ca34d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7b245f=this['_getSuggestionBlocks'](_0x5a7693=>_0x5a7693['is']('element','listItem')&&'numbered'===_0x5a7693['getAttribute']('listType'));if(_0x7b245f['length']<0x1)return;const _0x6069ca=_0x7b245f['map'](_0x54c1d3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x54c1d3,'before'),this['editor']['model']['createPositionAt'](_0x54c1d3,0x0)));this['editor']['model']['change'](()=>{_0x1ca34d['markMultiRangeBlockFormat'](_0x6069ca,{'commandName':'listStart','commandParams':[{'startIndex':_0x3c8698['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x28d8c6){if('formatBlock'!=_0x28d8c6['type']&&'formatInline'!=_0x28d8c6['type'])return;const _0x44d770=this['editor']['locale'],{data:_0xd43836}=_0x28d8c6;if(!_0xd43836)return;let _0x56027e,_0x4aa2ce;switch(_0xd43836['commandName']){case'listStyle':_0x56027e='*Change\x20to:*\x20%0',_0x4aa2ce={'type':'format','content':o(_0x44d770,_0x56027e,o(_0x44d770,this['_getTranslationKeyForListStyle'](_0xd43836['commandParams'][0x0]['type'])))};break;case'listReversed':_0x56027e=_0xd43836['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4aa2ce={'type':'format','content':o(_0x44d770,_0x56027e)};break;case'listStart':_0x56027e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4aa2ce={'type':'format','content':o(_0x44d770,_0x56027e,_0xd43836['commandParams'][0x0]['startIndex'])};}return _0x4aa2ce;}['_getSuggestionBlocksForListStyle'](){const _0x3d9c4a=this['editor']['plugins']['get']('LegacyListUtils');let _0x53bb77=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x53bb77[0x0]?.['is']('element','listItem')&&_0x53bb77['unshift'](..._0x3d9c4a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x53bb77[_0x53bb77['length']-0x1]?.['is']('element','listItem')&&_0x53bb77['push'](..._0x3d9c4a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x53bb77=[...new Set(_0x53bb77)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x53bb77=_0x53bb77['filter'](_0x6b40d7=>_0x6b40d7['is']('element','listItem'))),_0x53bb77;}['_getSuggestionBlocks'](_0xe0b8b0){const _0x5cc211=this['editor']['plugins']['get']('LegacyListUtils');let _0x4734b4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xe0b8b0)['map'](_0x492bff=>{const _0xceb8d7=this['editor']['model']['createPositionAt'](_0x492bff,0x0);return[..._0x5cc211['getSiblingNodes'](_0xceb8d7,'backward'),..._0x5cc211['getSiblingNodes'](_0xceb8d7,'forward')];})['flat']();return _0x4734b4=[...new Set(_0x4734b4)],_0x4734b4;}['_getTranslationKeyForListStyle'](_0x5afd86){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5afd86)||'default')['toUpperCase']()+'_LIST_'+_0x5afd86['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x54db38{['afterInit'](){const _0x3daccc=this['editor'];if(!_0x3daccc['plugins']['has']('MediaEmbedEditing'))return;const _0x49dd3a=_0x3daccc['plugins']['get']('TrackChangesEditing'),_0x37b234=_0x3daccc['locale'];_0x49dd3a['enableCommand']('mediaEmbed'),_0x49dd3a['descriptionFactory']['registerElementLabel']('media',_0x5b540e=>o(_0x37b234,'ELEMENT_MEDIA',_0x5b540e)),_0x3daccc['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2d83cc,{writer:_0x424e63,options:_0x922a2e})=>{if(_0x922a2e['showSuggestionHighlights'])return _0x424e63['createEmptyElement']('div');},'converterPriority':'high'}),_0x3daccc['data']['downcastDispatcher']['on']('attribute:url:media',(_0x51adf5,_0x276e59,_0x9035b4)=>{_0x9035b4['options']['showSuggestionHighlights']&&_0x51adf5['stop']();},{'priority':'high'});}}class gt extends _0x54db38{['afterInit'](){const _0x21f12c=this['editor'];_0x21f12c['plugins']['has']('MentionEditing')&&_0x21f12c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x54db38{['afterInit'](){const _0x468adc=this['editor'],_0x199c6e=_0x468adc['plugins']['get']('TrackChangesEditing');_0x468adc['plugins']['has']('MultiLevelList')&&(_0x199c6e['enableDefaultAttributesIntegration']('multiLevelList'),_0x199c6e['registerBlockAttribute']('listMarkerStyle'),_0x199c6e['descriptionFactory']['registerDescriptionCallback'](_0x1b44d9=>this['handleDescriptions'](_0x1b44d9)));}['handleDescriptions'](_0x3a53e0){const _0x1487ff=this['editor']['locale'],{data:_0x4fc4f9}=_0x3a53e0,_0x2b8a05={'type':'format','content':''};if(_0x4fc4f9&&'listMarkerStyle'==_0x4fc4f9['key']){if(!_0x4fc4f9['oldValue'])return{'type':'format','content':o(_0x1487ff,'*Set\x20format:*\x20%0',o(_0x1487ff,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4fc4f9['newValue']+')'};if(!_0x4fc4f9['newValue']){let _0x124a55=_0x3a53e0['head'];for(;_0x124a55;){if(_0x124a55['data']&&'listType'==_0x124a55['data']['key']&&_0x124a55['data']['newValue'])return _0x2b8a05;_0x124a55=_0x124a55['next'];}return{'type':'format','content':o(_0x1487ff,'*Remove\x20format:*\x20%0',o(_0x1487ff,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4fc4f9['oldValue']+')'};}}}}class mt extends _0x54db38{['afterInit'](){const _0x1e7d9e=this['editor'];if(!_0x1e7d9e['plugins']['has']('PageBreakEditing'))return;_0x1e7d9e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3d2107=_0x1e7d9e['plugins']['get']('TrackChangesEditing'),_0x26d2c1=_0x1e7d9e['locale'];_0x3d2107['descriptionFactory']['registerElementLabel']('pageBreak',_0x855422=>o(_0x26d2c1,'ELEMENT_PAGE_BREAK',_0x855422));}}class dt extends _0x54db38{['afterInit'](){const _0x4abdc0=this['editor'];if(!_0x4abdc0['plugins']['has']('Paragraph'))return;const _0x2b8f86=_0x4abdc0['locale'],_0x1e1558=_0x4abdc0['plugins']['get']('TrackChangesEditing');_0x1e1558['descriptionFactory']['registerElementLabel']('paragraph',_0x293fea=>o(_0x2b8f86,'ELEMENT_PARAGRAPH',_0x293fea)),_0x1e1558['enableDefaultAttributesIntegration']('paragraph'),_0x1e1558['enableCommand']('insertParagraph'),_0x4abdc0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4abdc0),{'priority':'highest'}),_0x4abdc0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x21e923,_0x13bd84,_0x1dd454)=>{_0x1dd454['options']['showSuggestionHighlights']&&nr(_0x4abdc0,{'showActiveMarker':!0x1})(_0x21e923,_0x13bd84,_0x1dd454);},{'priority':'highest'});const _0x44ac73=_0x1e1558['descriptionFactory'];_0x44ac73['registerDescriptionCallback'](_0x2d0b16=>{if('insertion'!==_0x2d0b16['type'])return;const {start:_0x1b5a4c,end:_0x224c7b}=_0x2d0b16['getFirstRange']();if(!_0x1b5a4c['isTouching'](_0x224c7b)||!_0x1b5a4c['nodeAfter'])return;const _0x3e827c=_0x4abdc0['model']['schema'],_0x3a9489=_0x1b5a4c['nodeAfter'];return _0x3e827c['isBlock'](_0x3a9489)&&!_0x3e827c['isLimit'](_0x3a9489)&&_0x3e827c['checkChild'](_0x3a9489,'$text')?{'type':'insertion','content':o(_0x2b8f86,'*Insert:*\x20%0',_0x44ac73['getItemLabel'](_0x3a9489,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d1755=this['editor'],_0x21527=_0x3d1755['locale'];_0x3d1755['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x407b5d=>{if('formatBlock'!=_0x407b5d['type'])return;const {data:_0x2774e1}=_0x407b5d;return _0x2774e1&&'paragraph'==_0x2774e1['commandName']?{'type':'format','content':o(_0x21527,'*Change\x20to:*\x20%0',o(_0x21527,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x374a08,{showActiveMarker:_0x1dffd9=!0x0}={}){return(_0x36dd98,_0x3b6d9b,_0x3d75d2)=>{const _0x5381da=_0x374a08['plugins']['get']('TrackChangesEditing'),_0x6e12d2=_0x3b6d9b['markerRange']['start'],_0x552fa7=_0x3b6d9b['markerRange']['end'],_0xd0087d=_0x374a08['model']['schema'];if(!_0x6e12d2['isTouching'](_0x552fa7)||!_0x6e12d2['nodeAfter'])return;const _0x327930=_0x6e12d2['nodeAfter'];if(_0xd0087d['isBlock'](_0x327930)&&!_0xd0087d['isLimit'](_0x327930)&&_0xd0087d['checkChild'](_0x327930,'$text')){if(!_0x3d75d2['consumable']['consume'](_0x3b6d9b['markerRange'],_0x36dd98['name']))return;const _0x428fa3=_0x3d75d2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x46ef80=_0x3d75d2['mapper']['toViewPosition'](_0x552fa7);_0x1dffd9&&_0x5381da['activeMarkers']['includes'](_0x3b6d9b['markerName'])&&_0x3d75d2['writer']['addClass']('ck-suggestion-marker--active',_0x428fa3),_0x3d75d2['writer']['insert'](_0x46ef80,_0x428fa3),_0x3d75d2['mapper']['bindElementToMarker'](_0x428fa3,_0x3b6d9b['markerName']);}};}class pt extends _0x54db38{['afterInit'](){const _0x582e1c=this['editor'];if(!_0x582e1c['plugins']['has']('RemoveFormatEditing'))return;_0x582e1c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58ba74=this['editor'];_0x58ba74['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40361a=>{if('formatBlock'!=_0x40361a['type']&&'formatInline'!=_0x40361a['type'])return;const {data:_0x269a64}=_0x40361a;return _0x269a64&&'removeFormat'==_0x269a64['commandName']?{'type':'format','content':o(_0x58ba74['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x54db38{['afterInit'](){const _0x2d52a6=this['editor'];if(!_0x2d52a6['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x44e24a=_0x2d52a6['plugins']['get']('TrackChangesEditing');_0x44e24a['enableCommand']('goToPreviousRestrictedEditingException'),_0x44e24a['enableCommand']('goToNextRestrictedEditingException');const _0x2f0883=_0x2d52a6['plugins']['get']('RestrictedEditingModeEditing');_0x2f0883['enableCommand']('trackChanges'),_0x2f0883['enableCommand']('acceptSuggestion'),_0x2f0883['enableCommand']('discardSuggestion'),_0x2f0883['enableCommand']('acceptAllSuggestions'),_0x2f0883['enableCommand']('discardAllSuggestions'),_0x2f0883['enableCommand']('acceptSelectedSuggestions'),_0x2f0883['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x54db38{static get['requires'](){return[_0x36d1dc];}['init'](){const _0x423a48=this['editor'],_0x13a0c0=_0x423a48['plugins']['get']('TrackChangesEditing');_0x13a0c0['enableCommand']('shiftEnter'),_0x423a48['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x423a48),{'priority':'high'}),_0x423a48['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x423a48),{'priority':'high'}),_0x423a48['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3d5327,_0x4ebb16,_0x2a8bed)=>{_0x2a8bed['options']['showSuggestionHighlights']&&de(_0x423a48,{'showActiveMarker':!0x1})(_0x3d5327,_0x4ebb16,_0x2a8bed);}),_0x13a0c0['descriptionFactory']['registerElementLabel']('softBreak',_0x21ba26=>o(_0x423a48['locale'],'ELEMENT_LINE_BREAK',_0x21ba26));}}function de(_0x1923b7,{showActiveMarker:_0x16491f=!0x0}={}){return(_0x18ba61,_0xe97d16,_0x21561c)=>{const _0x444dbb=_0x1923b7['plugins']['get']('TrackChangesEditing');if(!_0x21561c['consumable']['test'](_0xe97d16['markerRange'],_0x18ba61['name']))return;const _0x36fe0b=_0x1923b7['model'];for(const _0x5a55d7 of _0xe97d16['markerRange']['getItems']()){if(!_0x5a55d7['is']('element','softBreak'))continue;const _0x42d70a='deletion'==_0xe97d16['markerName']['split'](':')[0x1]?'merge':'split',_0xd31c28=_0x21561c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x42d70a}),_0x25329f=_0x21561c['mapper']['toViewPosition'](_0x36fe0b['createPositionBefore'](_0x5a55d7));_0x16491f&&_0x444dbb['activeMarkers']['includes'](_0xe97d16['markerName'])&&_0x21561c['writer']['addClass']('ck-suggestion-marker--active',_0xd31c28),_0x21561c['writer']['insert'](_0x25329f,_0xd31c28),_0x21561c['mapper']['bindElementToMarker'](_0xd31c28,_0xe97d16['markerName']);}};}class wt extends _0x54db38{['afterInit'](){const _0x42879e=this['editor'],_0xeaf356=_0x42879e['model'],_0x4fc9bc=_0x42879e['locale'];if(!_0x42879e['plugins']['has']('StandardEditingModeEditing'))return;const _0x7099a9=_0x42879e['plugins']['get']('TrackChangesEditing'),_0x3d7923='restrictedEditingException',_0x244ced=_0x42879e['commands']['get'](_0x3d7923);_0x7099a9['enableCommand'](_0x3d7923,(_0x3f35f8,_0x566c35={})=>{const _0x24cf35=_0xeaf356['document']['selection'];if(_0x24cf35['isCollapsed'])return void _0x3f35f8(_0x566c35);const _0x45edd0=void 0x0!==_0x566c35['forceValue']?_0x566c35['forceValue']:!_0x244ced['value'];_0xeaf356['change'](()=>{const _0x235e60=Array['from'](_0x24cf35['getRanges']());for(const _0x4ece50 of _0x235e60){const _0x1c5047=_0x45edd0?[_0x4ece50]:io(_0x3d7923,_0x4ece50,_0xeaf356);for(const _0x14e829 of _0x1c5047)_0x7099a9['markInlineFormat'](_0x14e829,{'commandName':_0x3d7923,'commandParams':[{'forceValue':_0x45edd0}]});}});}),_0x7099a9['descriptionFactory']['registerDescriptionCallback'](_0x4ef09e=>{if('formatBlock'!=_0x4ef09e['type']&&'formatInline'!=_0x4ef09e['type'])return;const {data:_0x1187f2}=_0x4ef09e;return _0x1187f2&&_0x1187f2['commandName']==_0x3d7923?_0x1187f2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4fc9bc,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4fc9bc,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x54db38{['afterInit'](){const _0x319e6b=this['editor'];if(!_0x319e6b['plugins']['has']('Style')||!_0x319e6b['plugins']['has']('DataSchema'))return;const _0x1a3bd2=_0x319e6b['plugins']['get']('TrackChangesEditing'),_0x2d20a3=_0x319e6b['locale'],_0x5b3a39=_0x319e6b['config']['get']('style')||{},_0x2e9c89=_0x319e6b['plugins']['get']('GeneralHtmlSupport'),_0x3cc9b4=_0x319e6b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x319e6b['plugins']['get']('DataSchema'),_0x5b3a39['definitions']);_0x1a3bd2['enableDefaultAttributesIntegration']('style');const _0x524f9f=new Set();for(const _0x14c932 of _0x3cc9b4['block']){const _0x520f1f=_0x2e9c89['getGhsAttributeNameForElement'](_0x14c932['element']);_0x524f9f['add'](_0x520f1f);}const _0xb13314=new Set();for(const _0x10df45 of _0x3cc9b4['inline']){const _0x394117=_0x2e9c89['getGhsAttributeNameForElement'](_0x10df45['element']);_0xb13314['add'](_0x394117);for(const _0x28bb92 of _0x10df45['ghsAttributes'])_0xb13314['add'](_0x28bb92);}for(const _0x1bc7cd of _0x524f9f)_0x1a3bd2['registerBlockAttribute'](_0x1bc7cd),_0x1a3bd2['descriptionFactory']['registerAttributeLabel'](_0x1bc7cd,o(_0x2d20a3,'FORMAT_STYLE'));for(const _0x6266c4 of _0xb13314)_0x1a3bd2['registerInlineAttribute'](_0x6266c4),_0x1a3bd2['descriptionFactory']['registerAttributeLabel'](_0x6266c4,o(_0x2d20a3,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8f30ef=this['editor'],_0x2fc184=_0x8f30ef['locale'];_0x8f30ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d14b9=>{if('formatBlock'!=_0x1d14b9['type']&&'formatInline'!=_0x1d14b9['type'])return;const {data:_0x4d5f5b}=_0x1d14b9;return _0x4d5f5b&&'style'===_0x4d5f5b['commandName']?_0x4d5f5b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2fc184,'*Set\x20format:*\x20%0',_0x4d5f5b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2fc184,'*Remove\x20format:*\x20%0',_0x4d5f5b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x54db38{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xb9881e){super(_0xb9881e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3ff1c2=this['editor'],_0x5cb41b=_0x3ff1c2['model']['document']['selection'];if(!_0x3ff1c2['plugins']['has']('TableEditing'))return;const _0x1254ad=_0x3ff1c2['locale'],_0xa5b67b=_0x3ff1c2['plugins']['get']('TrackChangesEditing'),_0x7f9444=_0x3ff1c2['plugins']['get']('TableUtils');_0xa5b67b['descriptionFactory']['registerElementLabel']('table',_0x57aec9=>o(_0x1254ad,'ELEMENT_TABLE',_0x57aec9)),this['_setupColumnsRowsFixing'](),_0xa5b67b['enableCommand']('insertTable'),_0xa5b67b['enableCommand']('selectTableRow'),_0xa5b67b['enableCommand']('selectTableColumn');for(const _0x4d5dc1 of['insertTableRowAbove','insertTableRowBelow']){const _0x5901d7=_0x3ff1c2['commands']['get'](_0x4d5dc1);_0xa5b67b['enableCommand'](_0x4d5dc1,_0x3380fc=>{_0x3ff1c2['model']['change'](_0x40fd73=>{_0x3380fc();const _0x165c9c='above'===_0x5901d7['order'],_0x724001=_0x7f9444['getSelectionAffectedTableCells'](_0x5cb41b),_0x373d07=_0x7f9444['getRowIndexes'](_0x724001),_0x53be55=_0x165c9c?_0x373d07['first']-0x1:_0x373d07['last']+0x1,_0x3088eb=_0x724001[0x0]['findAncestor']('table'),_0x534e09=_0x7f9444['createTableWalker'](_0x3088eb,{'startRow':_0x53be55,'endRow':_0x53be55}),_0x1a4312=Array['from'](_0x534e09)['map'](_0x3d0698=>_0x40fd73['createRangeOn'](_0x3d0698['cell']));_0xa5b67b['markMultiRangeInsertion'](_0x1a4312,'tableRow');});});}for(const _0x5b5d43 of['insertTableColumnLeft','insertTableColumnRight']){const _0x37c7ea=_0x3ff1c2['commands']['get'](_0x5b5d43);_0xa5b67b['enableCommand'](_0x5b5d43,_0xabe585=>{_0x3ff1c2['model']['change'](_0x1bde2f=>{_0xabe585();const _0x3d9b12='left'===_0x37c7ea['order'],_0x5cb50b=_0x7f9444['getSelectionAffectedTableCells'](_0x5cb41b),_0x3e60b8=_0x7f9444['getColumnIndexes'](_0x5cb50b),_0x3d3dd9=_0x3d9b12?_0x3e60b8['first']-0x1:_0x3e60b8['last']+0x1,_0x209196=_0x5cb50b[0x0]['findAncestor']('table'),_0x271a7c=_0x7f9444['createTableWalker'](_0x209196,{'startRow':0x0,'column':_0x3d3dd9,'includeAllSlots':!0x1}),_0x5e3220=Array['from'](_0x271a7c)['map'](_0x1f6ef4=>_0x1bde2f['createRangeOn'](_0x1f6ef4['cell']));_0xa5b67b['markMultiRangeInsertion'](_0x5e3220,'tableColumn');});});}for(const _0x359ff5 of['removeTableRow','removeTableColumn']){const _0x30ce9f=_0x359ff5['substr'](0xb),_0x30db6b=_0x30ce9f['toLowerCase'](),_0x59ca46=_0x30db6b['substr'](0x0,0x3)+'span',_0x483b53='table'+_0x30ce9f,_0x2bbe84='min'+_0x30ce9f,_0x4cf2dd='max'+_0x30ce9f;_0xa5b67b['enableCommand'](_0x359ff5,()=>{_0x3ff1c2['model']['change'](_0x250792=>{const _0x5bc2e2=_0x7f9444['getSelectionAffectedTableCells'](_0x5cb41b),_0x375beb=_0x5bc2e2[0x0]['findAncestor']('table');let _0x3d1b15;if('removeTableRow'==_0x359ff5){const _0x23eb4e=_0x7f9444['getRowIndexes'](_0x5bc2e2);_0x3d1b15={'startRow':_0x23eb4e['first'],'endRow':_0x23eb4e['last'],'includeAllSlots':!0x0};}else{const _0x1b55e3=_0x7f9444['getColumnIndexes'](_0x5bc2e2);_0x3d1b15={'startColumn':_0x1b55e3['first'],'endColumn':_0x1b55e3['last'],'includeAllSlots':!0x0};}const _0x46cee2=_0x7f9444['createTableWalker'](_0x375beb,_0x3d1b15),_0x21c413=Array['from'](_0x46cee2)['map'](({cell:_0x3704c8})=>_0x3704c8),_0x583f0d=Ee(_0x21c413['filter'](_0x244cea=>_0x244cea['hasAttribute'](_0x59ca46))),_0x5895b8=Ee(_0x21c413['filter'](_0xa768b4=>!_0xa768b4['hasAttribute'](_0x59ca46)))['map'](_0x14d34f=>_0x250792['createRangeOn'](_0x14d34f)),_0x291ee4=_0xa5b67b['markMultiRangeDeletion'](_0x5895b8,_0x483b53);if(_0x291ee4&&('tableRow'==_0x291ee4['subType']||'tableColumn'==_0x291ee4['subType'])){const _0xc349eb=this['_getSuggestionCoords'](_0x291ee4);for(const _0x2a2d2c of _0x583f0d){const _0x385633=_0x250792['createRangeOn'](_0x2a2d2c),_0x3c9fb1=_0x7f9444['getCellLocation'](_0x2a2d2c),_0xb87fac=_0x2a2d2c['getAttribute'](_0x59ca46)-0x1,_0x123946=_0xc349eb[_0x2bbe84],_0x1d8c65=_0xc349eb[_0x4cf2dd];_0x123946<=_0x3c9fb1[_0x30db6b]&&_0x3c9fb1[_0x30db6b]+_0xb87fac<=_0x1d8c65&&_0x291ee4['addRange'](_0x385633);}}});});}function _0xcf10fa(_0x467e33){const _0x286328=Array['from'](_0x5cb41b['getRanges']())['map'](_0x56869a=>_0x216747['fromRange'](_0x56869a));_0x3ff1c2['model']['change'](_0x3a2889=>{const _0x3b8c0f=_0x3a2889['batch'];_0x467e33=_0x467e33['filter'](_0x111a97=>'$graveyard'!=_0x111a97['root']['rootName']),_0x3a2889['setSelection'](_0x467e33),_0x3ff1c2['commands']['get']('removeTableRow')['refresh'](),_0x3ff1c2['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3ff1c2['model']['enqueueChange'](()=>{_0x3ff1c2['model']['enqueueChange'](_0x3b8c0f,_0x2287d5=>{const _0xbdef0=_0x286328['filter'](_0x207766=>'$graveyard'!=_0x207766['root']['rootName']);_0xbdef0['length']>0x0&&_0x2287d5['setSelection'](_0xbdef0);for(const _0x312b3a of _0x286328)_0x312b3a['detach']();});});});}function _0x4c31aa(_0x3b95b1){_0x3ff1c2['model']['change'](_0x56a208=>{const _0x5c364f=Array['from'](_0x5cb41b['getRanges']())['map'](_0x5cf3be=>_0x216747['fromRange'](_0x5cf3be)),_0x520f55=[];for(const _0x285fa9 of _0x3b95b1)for(const _0x28977c of _0x285fa9['getItems']({'shallow':!0x0}))_0x520f55['push'](_0x28977c);for(const _0x18e326 of _0x520f55)'$graveyard'!=_0x18e326['root']['rootName']&&(_0x56a208['setSelection'](_0x56a208['createPositionAt'](_0x18e326,0x0)),_0x3ff1c2['commands']['get']('removeTableColumn')['refresh'](),_0x3ff1c2['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3fba62=_0x5c364f['filter'](_0x20d904=>'$graveyard'!=_0x20d904['root']['rootName']);_0x3fba62['length']>0x0&&_0x56a208['setSelection'](_0x3fba62);for(const _0x3fc0af of _0x5c364f)_0x3fc0af['detach']();});}function _0x58389f(_0x3a1c5d,_0xb1857d){return _0xb1857d['every'](_0x262c8a=>_0x3a1c5d['some'](_0x16224f=>_0x16224f['end']['isEqual'](_0x262c8a['start'])||_0x262c8a['end']['isEqual'](_0x16224f['start'])));}function _0x36dc75(_0x10571b,_0x97bd6d){return!_0x10571b['some'](_0x501121=>_0x97bd6d['some'](_0x3dec71=>_0x501121['isIntersecting'](_0x3dec71)))&&_0x10571b['some'](_0x42346c=>_0x97bd6d['some'](_0x5cec7c=>_0x42346c['end']['isTouching'](_0x5cec7c['start'])));}_0x3ff1c2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4a3ed6,_0x2f444a,_0x2021eb)=>{if(!_0x2021eb['options']['showSuggestionHighlights'])return;const _0x9d6edc=_0x2f444a['item'];if(!_0x9d6edc)return;const _0x56abaf=_0x2021eb['mapper']['toViewElement'](_0x9d6edc);function _0x1a125b(_0x551489){return Array['isArray'](_0x551489)?_0x551489:[_0x551489];}_0x56abaf&&'tableCell'===_0x9d6edc['name']&&_0x3ad1c3(_0x56abaf,_0x2021eb['writer'],(_0x7dad2f,_0x26475b,_0x453e75)=>_0x453e75['addClass'](_0x1a125b(_0x26475b['classes']),_0x7dad2f),(_0x5b4505,_0x712401,_0x5313ea)=>_0x5313ea['removeClass'](_0x1a125b(_0x712401['classes']),_0x5b4505));},{'priority':'highest'}),_0xa5b67b['descriptionFactory']['registerDescriptionCallback'](_0x2de5a1=>{if('insertion'!=_0x2de5a1['type']&&'deletion'!=_0x2de5a1['type'])return;const _0xe7afc2=_0x2de5a1['getContainedElement']();if(null!=_0xe7afc2&&_0xe7afc2['is']('element','table')){if('insertion'==_0x2de5a1['type']){const _0x4b0064=_0x2de5a1['getItems']()['filter'](_0x45a72c=>_0x45a72c['is']('$textProxy'))['map'](_0x589a85=>_0x589a85['data']);if(_0x4b0064['length'])return{'type':'insertion','content':o(_0x1254ad,'*Insert:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4b0064['join']('\x20')+'\x22'))};}if('deletion'==_0x2de5a1['type']){const _0x5c0bd8=_0x2de5a1['getItems']()['filter'](_0x1434f0=>_0x1434f0['is']('$textProxy'))['map'](_0x80ca73=>_0x80ca73['data']);if(_0x5c0bd8['length'])return{'type':'deletion','content':o(_0x1254ad,'*Remove:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5c0bd8['join']('\x20')+'\x22'))};}}}),_0xa5b67b['descriptionFactory']['registerDescriptionCallback'](_0x5796c2=>{if('tableRow'==_0x5796c2['subType']){const _0x4cc259=_0x5796c2['getItems']()['filter'](_0x2e7357=>_0x2e7357['is']('$textProxy'))['map'](_0x4028c3=>_0x4028c3['data']),_0x4afb77=this['_getSuggestionCoords'](_0x5796c2),_0x4ba398=_0x4afb77['maxRow']-_0x4afb77['minRow']+0x1;if('insertion'==_0x5796c2['type'])return _0x4cc259['length']?{'type':'insertion','content':o(_0x1254ad,'*Insert:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4ba398,'\x22'+_0x4cc259['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1254ad,'*Insert:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_ROW',_0x4ba398))};if('deletion'==_0x5796c2['type'])return _0x4cc259['length']?{'type':'deletion','content':o(_0x1254ad,'*Remove:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4ba398,'\x22'+_0x4cc259['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1254ad,'*Remove:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_ROW',_0x4ba398))};}if('tableColumn'==_0x5796c2['subType']){const _0x5dde6d=_0x5796c2['getItems']()['filter'](_0x2ec8b6=>_0x2ec8b6['is']('$textProxy'))['map'](_0x4687fa=>_0x4687fa['data']),_0x3d7947=this['_getSuggestionCoords'](_0x5796c2),_0x7f8f7f=_0x3d7947['maxColumn']-_0x3d7947['minColumn']+0x1;if('insertion'==_0x5796c2['type'])return _0x5dde6d['length']?{'type':'insertion','content':o(_0x1254ad,'*Insert:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x7f8f7f,'\x22'+_0x5dde6d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1254ad,'*Insert:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_COLUMN',_0x7f8f7f))};if('deletion'==_0x5796c2['type'])return _0x5dde6d['length']?{'type':'deletion','content':o(_0x1254ad,'*Remove:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x7f8f7f,'\x22'+_0x5dde6d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1254ad,'*Remove:*\x20%0',o(_0x1254ad,'ELEMENT_TABLE_COLUMN',_0x7f8f7f))};}}),_0xa5b67b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xcf10fa),_0xa5b67b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xcf10fa),_0xa5b67b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4c31aa),_0xa5b67b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4c31aa),_0xa5b67b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x58389f),_0xa5b67b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x58389f),_0xa5b67b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x36dc75),_0xa5b67b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x36dc75);}['_acceptFormatSuggestionCallbackFactory'](){const _0x320f58=this['editor'],_0x484cd1=_0x320f58['model']['document']['selection'];return(_0x280149,_0x56fdd4)=>{_0x320f58['model']['change'](_0x552251=>{const {commandName:_0x595887,commandParams:_0x16f9b1}=_0x56fdd4;let _0x562644=_0x280149[0x0]['end']['nodeBefore'];_0x16f9b1&&_0x16f9b1[0x0]&&!0x1===_0x16f9b1[0x0]['forceValue']&&(_0x562644=_0x280149[0x0]['start']['nodeAfter']);const _0x2f8f49=_0x552251['createRangeIn'](_0x562644);if('$graveyard'==_0x2f8f49['root']['rootName'])return;const _0x37f669=Array['from'](_0x484cd1['getRanges']())['map'](_0x1088bb=>_0x216747['fromRange'](_0x1088bb));_0x552251['setSelection'](_0x2f8f49),_0x320f58['commands']['get'](_0x595887)['refresh'](),_0x16f9b1['push']({'forceDefaultExecution':!0x0}),_0x320f58['execute'](_0x595887,..._0x16f9b1);const _0x56412f=_0x37f669['filter'](_0x2962df=>'$graveyard'!=_0x2962df['root']['rootName']);_0x56412f['length']>0x0&&_0x552251['setSelection'](_0x56412f);for(const _0xbdb983 of _0x37f669)_0xbdb983['detach']();});};}['_getCoordsForCells'](_0x1a3804){const _0x5bfb33=this['editor']['plugins']['get']('TableUtils');let _0x3e3dca=Number['MAX_SAFE_INTEGER'],_0x4e3085=Number['MIN_SAFE_INTEGER'],_0x30aa70=Number['MAX_SAFE_INTEGER'],_0xc96fdd=Number['MIN_SAFE_INTEGER'];for(const _0x427011 of _0x1a3804){if('$graveyard'==_0x427011['root']['rootName'])continue;const {row:_0x4b2e6e,column:_0x572703}=_0x5bfb33['getCellLocation'](_0x427011),_0xf65d75=_0x427011['hasAttribute']('rowspan')?_0x427011['getAttribute']('rowspan')-0x1:0x0,_0x211be6=_0x427011['hasAttribute']('colspan')?_0x427011['getAttribute']('colspan')-0x1:0x0;_0x3e3dca=_0x4b2e6e<_0x3e3dca?_0x4b2e6e:_0x3e3dca,_0x4e3085=_0x4b2e6e+_0xf65d75>_0x4e3085?_0x4b2e6e+_0xf65d75:_0x4e3085,_0x30aa70=_0x572703<_0x30aa70?_0x572703:_0x30aa70,_0xc96fdd=_0x572703+_0x211be6>_0xc96fdd?_0x572703+_0x211be6:_0xc96fdd;}return{'minRow':_0x3e3dca,'maxRow':_0x4e3085,'minColumn':_0x30aa70,'maxColumn':_0xc96fdd};}['_setupColumnsRowsFixing'](){const _0x1d9c43=this['editor'],_0x422329=_0x1d9c43['plugins']['get']('TrackChangesEditing'),_0x1ec8dd=_0x1d9c43['plugins']['get']('TableUtils');_0x1d9c43['model']['document']['on']('change:data',()=>{const _0x48c6e6=Array['from'](_0x1d9c43['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x23dc25,data:_0x2f36af}of _0x48c6e6){const {group:_0x4b5f08,id:_0x55159f,subType:_0x471253}=_0x422329['_splitMarkerName'](_0x23dc25);if('suggestion'!=_0x4b5f08)continue;if(null!=_0x2f36af['oldRange'])continue;const _0x3c2b77=_0x422329['getSuggestion'](_0x55159f);this['_tablePostFixingSubtypes']['includes'](_0x471253)&&this['_tableSuggestions']['add'](_0x3c2b77);}},{'priority':'low'});const _0x550464=(_0x205df7,_0x4441d8)=>{let _0x827141=!0x1;const _0x233887=_0x4441d8['createRangeOn'](_0x205df7),_0x2e77aa=_0x205df7['findAncestor']('table'),_0x91d1c5=_0x1ec8dd['getCellLocation'](_0x205df7);for(const _0x4705c1 of this['_tableSuggestions']){const _0x120b90=_0x4705c1['subType'],_0x1e5d65=_0x120b90['startsWith']('tablePaste'),_0x1bd15d=_0x120b90['substr'](_0x1e5d65?0xa:0x5),_0x5ccc82=_0x1bd15d['toLowerCase'](),_0x51fb3d=_0x5ccc82['substr'](0x0,0x3)+'span',_0x2c632d='min'+_0x1bd15d,_0x269311='max'+_0x1bd15d;if(!_0x4705c1['isInContent'])continue;if(_0x2e77aa!=_0x4705c1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4705c1['isIntersectingWithRange'](_0x233887))continue;const _0x278356=_0x205df7['hasAttribute'](_0x51fb3d)?_0x205df7['getAttribute'](_0x51fb3d)-0x1:0x0,_0x53c460=this['_getSuggestionCoords'](_0x4705c1),_0x9756c6=_0x53c460[_0x2c632d],_0x5c032d=_0x53c460[_0x269311];_0x9756c6<=_0x91d1c5[_0x5ccc82]&&_0x91d1c5[_0x5ccc82]+_0x278356<=_0x5c032d&&(_0x4705c1['addRange'](_0x233887),_0x827141=!0x0);}return _0x827141;};_0x1d9c43['model']['document']['registerPostFixer'](_0x5ed429=>{let _0x6f522f=!0x1;for(const _0x1ef015 of _0x1d9c43['model']['document']['differ']['getChanges']())if('insert'==_0x1ef015['type']){if('tableRow'==_0x1ef015['name']){for(const _0x5ca99b of _0x1ef015['position']['nodeAfter']['getChildren']())_0x6f522f=_0x6f522f||_0x550464(_0x5ca99b,_0x5ed429);}else'tableCell'==_0x1ef015['name']&&(_0x6f522f=_0x6f522f||_0x550464(_0x1ef015['position']['nodeAfter'],_0x5ed429));}return _0x6f522f;});}['_getSuggestionCoords'](_0x4dd8f7){return this['_getCoordsForCells'](_0x4dd8f7['getRanges']()['map'](_0x552ca7=>_0x552ca7['start']['nodeAfter']));}}function Ee(_0x43b4e9){return Array['from'](new Set(_0x43b4e9)['values']());}class St extends _0x54db38{static get['requires'](){return[jt];}['afterInit'](){const _0x217a3c=this['editor'],_0x59cacb=_0x217a3c['model']['document']['selection'],_0x31fba5=_0x217a3c['locale'];if(!_0x217a3c['plugins']['has']('TableEditing'))return;const _0x51cff0=_0x217a3c['plugins']['get']('TrackChangesEditing'),_0x3e2d21=_0x217a3c['plugins']['get']('TableUtils'),_0x26f315=_0x217a3c['plugins']['get'](jt);_0x26f315['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x51cff0['enableCommand']('mergeTableCells',()=>{const _0x3ed389=_0x3e2d21['getSelectionAffectedTableCells'](_0x217a3c['model']['document']['selection']);_0x217a3c['model']['change'](()=>{_0x51cff0['markMultiRangeBlockFormat'](_0x3ed389,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x217a3c['commands']['get']('mergeTableCells')['on']('execute',(_0xee4b6e,_0x443036)=>{_0x217a3c['commands']['get']('trackChanges')['value']&&(_0x443036['length']>0x0&&_0x443036[_0x443036['length']-0x1]&&_0x443036[_0x443036['length']-0x1]['forceDefaultExecution']||_0x51cff0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xee4b6e['stop']());},{'priority':'highest'});for(const _0x5a200a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1c886d=_0x217a3c['commands']['get'](_0x5a200a);_0x51cff0['enableCommand'](_0x5a200a,()=>{const _0x5217b8=_0x217a3c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x51c849=>_0x51c849['is']('element','tableCell')),_0x22f161=_0x1c886d['value'];_0x217a3c['model']['change'](()=>{_0x51cff0['markMultiRangeBlockFormat']([_0x5217b8,_0x22f161],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x571a39 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x36a30d=_0x217a3c['commands']['get'](_0x571a39);_0x51cff0['enableCommand'](_0x571a39,()=>{const _0x2481fe=_0x3e2d21['getSelectionAffectedTableCells'](_0x217a3c['model']['document']['selection'])[0x0],_0x2d7c60=_0x2481fe['findAncestor']('table'),{column:_0x3e5c75,row:_0x2d58bf}=_0x3e2d21['getCellLocation'](_0x2481fe);let _0x52959f=[];if('horizontally'==_0x36a30d['direction']){const _0x4f6ade=_0x3e2d21['createTableWalker'](_0x2d7c60,{'startRow':_0x2d58bf,'endRow':_0x2d58bf,'includeAllSlots':!0x0});_0x52959f=Array['from'](_0x4f6ade)['map'](_0x5adcee=>_0x5adcee['cell']);}else{const _0x318ce1=_0x3e2d21['createTableWalker'](_0x2d7c60,{'column':_0x3e5c75,'includeAllSlots':!0x0});_0x52959f=Array['from'](_0x318ce1)['map'](_0x11438f=>_0x11438f['cell']);}_0x217a3c['model']['change'](_0xf385e2=>{_0x51cff0['markBlockFormat'](_0xf385e2['createRangeOn'](_0x2481fe),{'commandName':_0x571a39,'commandParams':[]},_0x52959f,_0x571a39);});});}_0x51cff0['descriptionFactory']['registerDescriptionCallback'](_0x4d2d91=>{if('formatBlock'!=_0x4d2d91['type']&&'formatInline'!=_0x4d2d91['type'])return;const {data:_0xe9f38b}=_0x4d2d91;return _0xe9f38b&&'mergeTableCells'==_0xe9f38b['commandName']?{'type':'format','content':o(_0x31fba5,'*Merge\x20cells*')}:void 0x0;}),_0x51cff0['descriptionFactory']['registerDescriptionCallback'](_0x533523=>{if('formatBlock'!=_0x533523['type']&&'formatInline'!=_0x533523['type'])return;const {data:_0x52d697}=_0x533523;return _0x52d697?'splitTableCellVertically'==_0x52d697['commandName']?{'type':'format','content':o(_0x31fba5,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x52d697['commandName']?{'type':'format','content':o(_0x31fba5,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x271f03=_0x26f315['_acceptFormatSuggestionCallbackFactory']();for(const _0x208fe1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x51cff0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x208fe1,'accept',_0x271f03);for(const _0x45804b of['splitTableCellVertically','splitTableCellHorizontally'])_0x51cff0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x45804b,'accept',_0x271f03);_0x51cff0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2cb56e=>{_0x217a3c['model']['change'](_0x23735c=>{const _0x4de479=Array['from'](_0x59cacb['getRanges']())['map'](_0x24bd49=>_0x216747['fromRange'](_0x24bd49));_0x23735c['setSelection'](_0x2cb56e),_0x217a3c['commands']['get']('mergeTableCells')['refresh'](),_0x217a3c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x51f28d=_0x4de479['filter'](_0x20dcfc=>'$graveyard'!=_0x20dcfc['root']['rootName']);_0x51f28d['length']>0x0&&_0x23735c['setSelection'](_0x51f28d);for(const _0x16a144 of _0x4de479)_0x16a144['detach']();});});for(const _0x4334be of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xb5c95b=_0x217a3c['commands']['get'](_0x4334be);_0xb5c95b['on']('set:isEnabled',(_0x5465c3,_0x333ed1,_0x472b46)=>{if(_0x472b46){const _0x101b09=_0x217a3c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xe86730=>_0xe86730['is']('element','tableCell'));this['_areMergableCells'](_0xb5c95b['value'],_0x101b09)||(_0x5465c3['return']=!0x1,_0x5465c3['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x22cf39=this['editor']['commands']['get']('mergeTableCells'),_0x9e5f82=this['editor']['plugins']['get']('TableUtils');if(!_0x22cf39['isEnabled'])return!0x1;const _0x426324=_0x9e5f82['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5a9874 of _0x426324)for(const _0x1c6202 of _0x426324)if(_0x5a9874!=_0x1c6202&&!this['_areMergableCells'](_0x5a9874,_0x1c6202))return!0x1;return!0x0;}['_areMergableCells'](_0x2146b1,_0x51f393){const _0x38457d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x695e4c=this['editor']['model']['createRangeOn'](_0x2146b1),_0x35dcdf=this['editor']['model']['createRangeOn'](_0x51f393),_0x2d1ffd=new Set(),_0x431de1=new Set();for(const _0x5b9528 of _0x38457d['getSuggestions']())if(('insertion'==_0x5b9528['type']||'deletion'==_0x5b9528['type']||'mergeTableCells'==_0x5b9528['subType'])&&_0x5b9528['isInContent']){for(const _0x11489b of _0x5b9528['getRanges']())_0x11489b['containsRange'](_0x695e4c,!0x0)&&_0x2d1ffd['add'](_0x5b9528['type']+':'+_0x5b9528['author']['id']),_0x11489b['containsRange'](_0x35dcdf,!0x0)&&_0x431de1['add'](_0x5b9528['type']+':'+_0x5b9528['author']['id']);}if(_0x2d1ffd['size']!=_0x431de1['size'])return!0x1;for(const _0x54d0b2 of _0x2d1ffd)if(!_0x431de1['has'](_0x54d0b2))return!0x1;return!0x0;}}class At extends _0x54db38{static get['requires'](){return[jt];}['afterInit'](){const _0xc00cb1=this['editor'];if(!_0xc00cb1['plugins']['has']('TableEditing'))return;const _0x42043d=_0xc00cb1['locale'],_0x4864ad=_0xc00cb1['plugins']['get']('TrackChangesEditing');_0x4864ad['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4864ad['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4864ad['registerBlockAttribute']('headingRows'),_0x4864ad['registerBlockAttribute']('headingColumns'),_0x4864ad['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x42043d,'FORMAT_HEADER_ROW')),_0x4864ad['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x42043d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x8dc761=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfe926e=this['editor']['plugins']['get']('TableUtils'),_0xb5fc4d=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x13c905({showActiveMarker:_0x4cb047=!0x0,setDataAttribute:_0x146c61=!0x0}={}){return(_0x415aba,_0x2d5aca,_0x5de747)=>{const {type:_0xfafb9a,id:_0x452d93}=_0x8dc761['_splitMarkerName'](_0x2d5aca['markerName']),_0x3f157e=_0x8dc761['getSuggestion'](_0x452d93),_0x104abb=_0x3f157e['data'];if('formatBlock'!=_0x3f157e['type']||!_0x104abb||'setTableColumnHeader'!=_0x104abb['commandName'])return;if(_0x2d5aca['item'])return void _0x415aba['stop']();if(!_0x5de747['consumable']['consume'](_0x2d5aca['markerRange'],_0x415aba['name']))return;const _0x4b657c=_0x2d5aca['markerRange']['start']['nodeAfter'],_0x4a4056=_0x2d5aca['markerRange']['end']['nodeBefore'],_0x3eda8b=_0x4b657c['parent']['parent'],{column:_0x376afa}=_0xfe926e['getCellLocation'](_0x4b657c),{column:_0x28e6dc}=_0xfe926e['getCellLocation'](_0x4a4056);for(let _0xcf3ab5=_0x376afa;_0xcf3ab5<=_0x28e6dc;_0xcf3ab5++){const _0x5db4e6=_0xfe926e['createTableWalker'](_0x3eda8b,{'column':_0xcf3ab5,'includeAllSlots':!0x1});for(const _0x20b0cc of _0x5db4e6){const _0x541e5e=_0x20b0cc['cell'],_0x834321=_0x5de747['mapper']['toViewElement'](_0x541e5e);_0x5de747['writer']['addClass']('ck-suggestion-marker-'+_0xfafb9a,_0x834321),_0x146c61&&_0x5de747['writer']['setAttribute']('data-suggestion',_0x452d93,_0x834321),_0x5de747['mapper']['bindElementToMarker'](_0x834321,_0x2d5aca['markerName']),_0x4cb047&&(_0x8dc761['activeMarkers']['includes'](_0x2d5aca['markerName'])?_0x5de747['writer']['addClass']('ck-suggestion-marker--active',_0x834321):_0x5de747['writer']['removeClass']('ck-suggestion-marker--active',_0x834321));}}};}_0x8dc761['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xb5fc4d),_0x8dc761['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xb5fc4d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x13c905(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5d1f2f,_0x1fb4c1,_0x250fa4)=>{_0x250fa4['options']['showSuggestionHighlights']&&_0x13c905({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5d1f2f,_0x1fb4c1,_0x250fa4);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x206803,_0x56f6ea,_0x1c546f)=>{const {type:_0xeb7fd3,id:_0x26b262}=_0x8dc761['_splitMarkerName'](_0x56f6ea['markerName']),_0x5e9018=_0x8dc761['getSuggestion'](_0x26b262),_0x2a60ef=_0x5e9018['data'];if('formatBlock'!=_0x5e9018['type']||!_0x2a60ef||'setTableColumnHeader'!=_0x2a60ef['commandName'])return;const _0x1397b8=_0x1c546f['mapper']['markerNameToElements'](_0x56f6ea['markerName']);if(_0x1397b8){for(const _0x3cb0b3 of _0x1397b8)_0x1c546f['writer']['removeClass']('ck-suggestion-marker-'+_0xeb7fd3,_0x3cb0b3),_0x1c546f['writer']['removeClass']('ck-suggestion-marker--active',_0x3cb0b3),_0x1c546f['writer']['removeAttribute']('data-suggestion',_0x3cb0b3),_0x1c546f['mapper']['unbindElementFromMarkerName'](_0x3cb0b3,_0x56f6ea['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf499d0=this['editor'],_0x2b81b1=_0xf499d0['locale'];function _0x47fcbe(_0x538a66){return{'type':'format','content':o(_0x2b81b1,'*Format:*\x20%0',_0x538a66)};}_0xf499d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ea4c4=>{if('formatBlock'!=_0x5ea4c4['type'])return;const {data:_0x5ae83c}=_0x5ea4c4;if(_0x5ae83c){if('setTableRowHeader'==_0x5ae83c['commandName']){const _0x497369=_0x5ae83c['commandParams'][0x0]['forceValue'];return _0x47fcbe(o(_0x2b81b1,_0x497369?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5ae83c['commandName']){const _0x34f9c5=_0x5ae83c['commandParams'][0x0]['forceValue'];return _0x47fcbe(o(_0x2b81b1,_0x34f9c5?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x330e64=>[_0x330e64,null]));class It extends _0x54db38{static get['requires'](){return[jt];}['afterInit'](){const _0x50c080=this['editor'];if(!_0x50c080['plugins']['has']('TableClipboard'))return;const _0xc21638=_0x50c080['plugins']['get']('TrackChangesEditing'),_0x593905=_0x50c080['plugins']['get']('TableUtils'),_0x39328e=_0x50c080['plugins']['get'](jt),_0x512f06=_0x50c080['plugins']['get']('TableClipboard');_0x39328e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x50c080['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x50c080['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2fcfb5=null;_0x50c080['model']['on']('insertContent',(_0x2f32a7,_0x4d7e80)=>{const [_0x5f0198,_0x29b10a]=_0x4d7e80,_0x1fe568=_0x4d7e80[_0x4d7e80['length']-0x1];_0x1fe568&&_0x1fe568['forceDefaultExecution']||_0xc21638['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3b9f3b,_0x403184,_0x5952af,_0x4dc1ff,_0x2972fc){if(_0x403184&&!_0x403184['is']('documentSelection'))return!0x1;const _0x2fb604=_0x2972fc['getTableIfOnlyTableInContent'](_0x3b9f3b,_0x5952af);if(!_0x2fb604||!he(_0x2fb604,void 0x0,_0x4dc1ff))return!0x1;const _0x24e6d4=_0x4dc1ff['getSelectionAffectedTableCells'](_0x5952af['document']['selection']);if(!_0x24e6d4['length'])return!0x1;const _0x51f075=_0x24e6d4[0x0]['findAncestor']('table'),_0x3ca500=_0x4dc1ff['getRowIndexes'](_0x24e6d4),_0x1ca930=_0x4dc1ff['getColumnIndexes'](_0x24e6d4),_0x167817={'startRow':_0x3ca500['first'],'endRow':_0x3ca500['last'],'startColumn':_0x1ca930['first'],'endColumn':_0x1ca930['last']};return 0x1==_0x24e6d4['length']&&(_0x167817['endRow']+=_0x4dc1ff['getRows'](_0x2fb604)-0x1,_0x167817['endColumn']+=_0x4dc1ff['getColumns'](_0x2fb604)-0x1),he(_0x51f075,_0x167817,_0x4dc1ff);}(_0x5f0198,_0x29b10a,_0x50c080['model'],_0x593905,_0x512f06)&&(_0x2f32a7['stop'](),_0x2fcfb5={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x50c080['model']['change'](()=>{_0x50c080['model']['insertContent'](_0x4d7e80[0x0],_0x4d7e80[0x1],_0x4d7e80[0x2],{'forceDefaultExecution':!0x0});const _0xaee6dd=_0xa3dac7(),{rowInsertionRanges:_0x288ce6,columnInsertionRanges:_0x27c601,insertionRanges:_0x54aaa5,deletionRanges:_0x30c7c9,cells:_0x276fe9}=_0x2fcfb5;_0x288ce6['length']&&_0xc21638['markMultiRangeInsertion'](_0x288ce6,'tablePasteRow',{'tablePasteChainId':_0xaee6dd}),_0x27c601['length']&&_0xc21638['markMultiRangeInsertion'](_0x27c601,'tablePasteColumn',{'tablePasteChainId':_0xaee6dd}),_0x54aaa5['length']&&(_0xc21638['markMultiRangeInsertion'](_0x54aaa5,'tablePaste',{'tablePasteChainId':_0xaee6dd,'skipNestingCheck':!0x0}),_0x54aaa5['forEach'](_0xd4dd37=>_0xd4dd37['detach']?.())),_0x30c7c9['length']&&(_0xc21638['markMultiRangeDeletion'](_0x30c7c9,'tablePaste',{'tablePasteChainId':_0xaee6dd,'skipNestingCheck':!0x0}),_0x30c7c9['forEach'](_0x4d4d12=>_0x4d4d12['detach']?.()));const _0x4badad=_0xc21638['markMultiRangeBlockFormat'](_0x276fe9['map'](({element:_0x528e0b})=>_0x528e0b),{'formatGroupId':_0xa3dac7()},[],'tablePasteCell',{'tablePasteChainId':_0xaee6dd});if(_0x4badad){const _0x12a032=_0x4badad['getMarkers'](),_0x4fd41c=[];for(const {element:_0x4cbd58,attributes:_0x46758a}of _0x276fe9){if(!_0x46758a)continue;const _0xa5220a=_0x50c080['model']['createRangeOn'](_0x4cbd58),_0x3ff2c4=_0x12a032['find'](_0xc97ed7=>_0xc97ed7['getRange']()['isEqual'](_0xa5220a));_0x3ff2c4&&_0x4fd41c['push']([_0x3ff2c4['name'],_0x46758a]);}_0x4fd41c['length']&&_0x4badad['setAttribute']('markerAttributes',Object['fromEntries'](_0x4fd41c));}_0x2fcfb5=null;}));},{'priority':_0x275526['high']+0xa}),_0x50c080['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5047dd,_0x5e72da)=>{const [_0x412af1,_0x50e921,,_0x1f2836]=_0x5e72da;if(!_0x2fcfb5)return;_0x5047dd['stop']();const _0x1b08b7=_0x412af1['cell'],_0x3e4d9a=_0x50e921,_0x2b3fdc=Pe(_0x1b08b7),_0x11ef4c=Pe(_0x3e4d9a);_0x5047dd['return']=_0x1b08b7;let _0x4fb922=null,_0x37a7ae=null;if(_0x11ef4c||_0x2b3fdc){if(_0x2b3fdc&&!_0x11ef4c){_0x1f2836['remove'](_0x1b08b7['getChild'](0x0));for(const _0x318971 of Array['from'](_0x3e4d9a['getChildren']()))_0x1f2836['insert'](_0x318971,_0x1b08b7,'end');const _0x48899=_0x2fcfb5['rowInsertionIndexes']['includes'](_0x412af1['row']),_0x1d261d=_0x2fcfb5['columnInsertionIndexes']['includes'](_0x412af1['column']);_0x48899||_0x1d261d||(_0x4fb922=_0x216747['fromRange'](_0x1f2836['createRangeIn'](_0x1b08b7)));}else _0x11ef4c&&!_0x2b3fdc&&(_0x37a7ae=_0x1f2836['createRangeIn'](_0x1b08b7));}else{const _0x15f6cf=_0x1f2836['createElement']('tableCellSuggestion'),_0x3fefc2=_0x1f2836['createElement']('tableCellSuggestion');_0x1f2836['wrap'](_0x1f2836['createRangeIn'](_0x1b08b7),_0x3fefc2),_0x1f2836['insert'](_0x15f6cf,_0x1b08b7,0x0);for(const _0xbe0f8d of Array['from'](_0x3e4d9a['getChildren']()))_0x1f2836['insert'](_0xbe0f8d,_0x15f6cf,'end');_0x4fb922=_0x216747['fromRange'](_0x1f2836['createRangeOn'](_0x15f6cf)),_0x37a7ae=_0x216747['fromRange'](_0x1f2836['createRangeOn'](_0x3fefc2));}const _0x734c05=Array['from'](_0x3e4d9a['getAttributes']())['filter'](([_0x180a0b])=>ge['includes'](_0x180a0b));_0x2fcfb5['cells']['push']({'element':_0x1b08b7,'attributes':_0x734c05['length']?Object['fromEntries'](_0x734c05):null}),_0x4fb922&&_0x2fcfb5['insertionRanges']['push'](_0x4fb922),_0x37a7ae&&_0x2fcfb5['deletionRanges']['push'](_0x37a7ae);},{'priority':'high'}),_0x593905['on']('insertColumns',(_0x1cc9ae,_0x26f981)=>{const [_0x23aece,_0x56b56d={}]=_0x26f981;if(!_0x2fcfb5)return;const _0x55955f=_0x56b56d['at']||0x0,_0x471918=_0x56b56d['columns']||0x1;_0x2fcfb5['columnInsertionIndexes']=new Array(_0x471918)['fill'](_0x55955f)['map']((_0x5954f0,_0x2c64a5)=>_0x5954f0+_0x2c64a5);for(const {cell:_0x3e426c}of _0x593905['createTableWalker'](_0x23aece,{'startColumn':_0x55955f,'endColumn':_0x55955f+_0x471918-0x1}))_0x2fcfb5['columnInsertionRanges']['push'](_0x50c080['model']['createRangeOn'](_0x3e426c));},{'priority':'low'}),_0x593905['on']('insertRows',(_0x192017,_0x190011)=>{const [_0x207670,_0x3fc105={}]=_0x190011;if(!_0x2fcfb5)return;const _0x42bd0e=_0x3fc105['at']||0x0,_0x4bd9b5=_0x3fc105['rows']||0x1;_0x2fcfb5['rowInsertionIndexes']=new Array(_0x4bd9b5)['fill'](_0x42bd0e)['map']((_0x4f4541,_0x4e346d)=>_0x4f4541+_0x4e346d);for(const {cell:_0x529bd0}of _0x593905['createTableWalker'](_0x207670,{'startRow':_0x42bd0e,'endRow':_0x42bd0e+_0x4bd9b5-0x1}))_0x2fcfb5['rowInsertionRanges']['push'](_0x50c080['model']['createRangeOn'](_0x529bd0));},{'priority':'low'}),_0xc21638['descriptionFactory']['registerDescriptionCallback'](_0x2a5630=>{if(_0x2a5630['subType']&&_0x2a5630['subType']['startsWith']('tablePaste'))return _0x2a5630['previous']?{}:{'type':'insertion','content':o(_0x50c080['locale'],'*Replace\x20table\x20cells*')};});const _0x1be976=()=>!0x1;for(const _0x5b4c21 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xc21638['_suggestionFactory']['registerCustomCallback']('insertion',_0x5b4c21,'join',_0x1be976),_0xc21638['_suggestionFactory']['registerCustomCallback']('deletion',_0x5b4c21,'join',_0x1be976),_0xc21638['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5b4c21,'join',_0x1be976);_0xc21638['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1be976),_0xc21638['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x13071a,_0xa0473f,_0x3c4afe)=>{const _0xb7b308=_0x13071a['map'](_0x3ea58d=>_0x3ea58d['getContainedElement']())['filter'](_0x14f591=>_0x14f591),_0x43e7b3=new Map(_0xb7b308['map'](_0xfe4e7d=>[_0xfe4e7d,null]));if(_0x2fcfb5){for(const {element:_0x43d246,attributes:_0x2f6b0f}of _0x2fcfb5['cells'])_0x2f6b0f&&_0x43e7b3['set'](_0x43d246,_0x2f6b0f);}else{if(_0x3c4afe&&_0x3c4afe['markerAttributes'])for(const [_0x14bf75,_0x1b7fdf]of Object['entries'](_0x3c4afe['markerAttributes'])){const _0x13f345=_0x50c080['model']['markers']['get'](_0x14bf75),_0x21bea=_0x13f345?_0x13f345['getRange']()['getContainedElement']():null;_0x21bea&&_0x43e7b3['set'](_0x21bea,_0x1b7fdf);}}_0x50c080['model']['change'](_0xecb013=>{for(const [_0x4e2b0b,_0x6f9716]of _0x43e7b3)_0xecb013['setAttributes']({...Ce,..._0x6f9716},_0x4e2b0b);});});const _0x1da2b7=(_0x571345,_0x24eec5)=>{_0xc21638['_suggestionFactory']['registerCustomCallback'](_0x571345,'tablePaste',_0x24eec5,(_0x2c0a8c,_0x11c732,_0x155f18)=>{_0x50c080['model']['change'](_0x1b366d=>{const _0x3dd667=[];for(const _0x1985c5 of _0x2c0a8c){const _0x59d7e3=_0x1985c5['start']['nodeAfter'];_0x59d7e3['is']('element','tableCellSuggestion')&&_0x3dd667['push'](_0x59d7e3);}_0xc21638['_suggestionFactory']['getSuggestionCallback'](_0x571345,null,_0x24eec5)(_0x2c0a8c,_0x11c732,_0x155f18);for(const _0x44b272 of _0x3dd667)'$graveyard'!=_0x44b272['root']['rootName']&&_0x1b366d['unwrap'](_0x44b272);});});};_0x1da2b7('insertion','accept'),_0x1da2b7('insertion','discard'),_0x1da2b7('deletion','accept'),_0x1da2b7('deletion','discard'),_0xc21638['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x21ea9b=>{const _0x36e963=_0x21ea9b['map'](_0x5b07d3=>_0x5b07d3['getContainedElement']()),_0x26014e=_0x36e963[0x0]['findAncestor']('table'),{minRow:_0x49cbf9,maxRow:_0x3885e2}=_0x39328e['_getCoordsForCells'](_0x36e963);_0x593905['removeRows'](_0x26014e,{'at':_0x49cbf9,'rows':_0x3885e2-_0x49cbf9+0x1});}),_0xc21638['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x31e230=>{const _0x4f6205=_0x31e230['map'](_0x57cb58=>_0x57cb58['getContainedElement']()),_0x98f49=_0x4f6205[0x0]['findAncestor']('table'),{minColumn:_0x36c534,maxColumn:_0x147dba}=_0x39328e['_getCoordsForCells'](_0x4f6205);_0x593905['removeColumns'](_0x98f49,{'at':_0x36c534,'columns':_0x147dba-_0x36c534+0x1});});const _0x1bf492=(_0x1cdc57,_0xbbd656)=>{if(!_0xbbd656['subType']||!_0xbbd656['subType']['startsWith']('tablePaste'))return;const _0x271fb3=_0xbbd656['attributes']['tablePasteChainId'],_0xe944f7=_0xc21638['getSuggestions']()['filter'](_0x4ac973=>_0x4ac973['isInContent']&&_0x4ac973['attributes']&&_0x4ac973['attributes']['tablePasteChainId']==_0x271fb3);_0xe944f7['length']&&_0xbbd656['getAllAdjacentSuggestions']()['length']!=_0xe944f7['length']&&_0xe944f7['reduce']((_0x4e4615,_0x42c944)=>(_0x4e4615['next']=_0x42c944,_0x42c944['previous']=_0x4e4615,_0x42c944));};function _0x427e34(_0x38a575,_0x554966=!0x0){const {id:_0x18479e}=_0xc21638['_splitMarkerName'](_0x38a575['markerName']),_0x2a3a7f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x22060b=_0xc21638['activeMarkers']['includes'](_0x38a575['markerName']);return _0x22060b&&_0x2a3a7f['push']('ck-suggestion-marker--active'),{'classes':_0x2a3a7f,'attributes':{'data-suggestion':_0x18479e},'priority':_0x22060b&&_0x554966?0xbc2:0xbb8};}_0xc21638['on']('suggestionLoaded',_0x1bf492,{'priority':'high'}),_0xc21638['on']('suggestionUnloaded',_0x1bf492,{'priority':'high'}),_0x50c080['model']['document']['registerPostFixer'](()=>{let _0x5d5735=!0x1;const _0x239994=Array['from'](_0x50c080['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xc08053,data:_0x20bda6}of _0x239994){const {group:_0x23642d,type:_0x43f18d,id:_0x5ba590}=_0xc21638['_splitMarkerName'](_0xc08053);if('suggestion'!=_0x23642d||'deletion'!=_0x43f18d||_0x20bda6['oldRange'])continue;if(!_0xc21638['hasSuggestion'](_0x5ba590))continue;const _0x2bb1e6=_0xc21638['getSuggestion'](_0x5ba590)['getRanges'](),_0x55695f=_0x50c080['plugins']['get']('Users')['me'];for(const _0x507437 of _0xc21638['getSuggestions']()){if(!_0x507437['isInContent']||_0x507437['author']!=_0x55695f)continue;if('formatBlock'!=_0x507437['type']||'tablePasteCell'!=_0x507437['subType'])continue;if(_0x507437['getRanges']()['every'](_0x76e2ef=>_0x2bb1e6['some'](_0x34a335=>_0x34a335['containsRange'](_0x76e2ef,!0x0)))){for(const _0xe5f207 of _0x507437['getAllAdjacentSuggestions']())_0xe5f207['isInContent']&&(_0xe5f207['discard'](),_0x5d5735=!0x0);}}}return _0x5d5735;}),_0x50c080['model']['document']['registerPostFixer'](_0x1a5660=>{const _0x5a30fd=_0x50c080['commands']['get']('redo');if(!_0x5a30fd||!_0x5a30fd['_createdBatches']['has'](_0x1a5660['batch']))return!0x1;let _0xfc97c0=!0x1;const _0x5cb99c=_0x50c080['plugins']['get']('Users')['me'],_0x1112a2=_0x50c080['model']['document']['differ']['getChanges'](),_0x1191c1=Array['from'](_0x50c080['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1ab6e4,data:_0xf40ad0})=>{const {group:_0x50d3d3,subType:_0x3fd904,authorId:_0x5a6995}=_0xc21638['_splitMarkerName'](_0x1ab6e4);return'suggestion'==_0x50d3d3&&'tablePaste'==_0x3fd904&&_0x5a6995==_0x5cb99c['id']&&!_0xf40ad0['oldRange'];});for(const _0x2fe049 of _0x1112a2){if('insert'!=_0x2fe049['type']||'tableCellSuggestion'!=_0x2fe049['name']||0x1!=_0x2fe049['length'])continue;const _0x567304=_0x1a5660['createRange'](_0x2fe049['position'],_0x2fe049['position']['getShiftedBy'](0x1));if(!_0x1191c1['find'](({data:_0x23ce27})=>_0x23ce27['newRange']['isEqual'](_0x567304))){for(const {name:_0x2a9ef0,data:_0x568370}of _0x1191c1)if(_0x567304['containsRange'](_0x568370['newRange'])){_0x1a5660['updateMarker'](_0x2a9ef0,{'range':_0x567304}),_0xfc97c0=!0x0;break;}}}return _0xfc97c0;}),_0x50c080['model']['document']['registerPostFixer'](_0x37d9d6=>{let _0x382593=!0x1;const _0x1935b3=_0x50c080['plugins']['get']('Users')['me'],_0x53fa43=_0xc21638['getSuggestions']()['filter'](_0x12737a=>_0x12737a['isInContent']&&_0x12737a['author']==_0x1935b3),_0x32b73c=new Set(),_0x4a07cb=new Set();for(const _0x4f9650 of _0x53fa43)if('tablePaste'==_0x4f9650['subType'])for(const _0x4cb320 of _0x4f9650['getMarkers']()){const _0x287648=_0x4cb320['getRange']()['getContainedElement']();if(_0x287648){if(_0x287648['is']('element','tableCellSuggestion')&&Pe(_0x287648)){_0x4f9650['removeMarker'](_0x4cb320['name']),_0x32b73c['add'](_0x287648),_0x382593=!0x0;const _0x2238bb=_0x287648['nextSibling'],_0x1004d7=_0x287648['previousSibling'],_0xdad224=_0x2238bb&&_0x2238bb['is']('element','tableCellSuggestion'),_0x1cd629=_0x1004d7&&_0x1004d7['is']('element','tableCellSuggestion');_0xdad224&&!_0x32b73c['has'](_0x2238bb)&&_0x4a07cb['add'](_0x2238bb),_0x1cd629&&!_0x32b73c['has'](_0x1004d7)&&_0x4a07cb['add'](_0x1004d7);}else _0x287648['is']('element','paragraph')&&_0x287648['isEmpty']&&(_0x4f9650['removeMarker'](_0x4cb320['name']),_0x382593=!0x0);}}else{if('tablePasteCell'==_0x4f9650['subType']){if(!_0x4f9650['attributes']||!_0x4f9650['attributes']['tablePasteChainId'])continue;const _0x320072=_0x4f9650['attributes']['markerAttributes'];if(_0x320072&&Object['keys'](_0x320072)['length'])continue;const _0x3e2011=_0x4f9650['attributes']['tablePasteChainId'];let _0xfc7ea2=!0x0,_0x1af069=!0x0;for(const _0x3e20e6 of _0x53fa43)if(_0x3e20e6['subType']&&_0x3e20e6['subType']['startsWith']('tablePaste')){if(!_0x3e20e6['attributes']['tablePasteChainId']){_0x1af069=!0x1;break;}if(_0x3e20e6['id']!=_0x4f9650['id']&&_0x3e20e6['attributes']['tablePasteChainId']==_0x3e2011){_0xfc7ea2=!0x1;break;}}_0x1af069&&_0xfc7ea2&&(_0x4f9650['removeMarkers'](),_0x382593=!0x0);}}for(const _0x2b9416 of _0x32b73c)_0x37d9d6['remove'](_0x2b9416);for(const _0xb03e75 of _0x4a07cb)_0x37d9d6['unwrap'](_0xb03e75);return _0x382593;}),_0x50c080['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x203cb1,_0x21eedb)=>_0x427e34(_0x203cb1),'converterPriority':'high'}),_0x50c080['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x22488c,_0x379782)=>_0x379782['options']['showSuggestionHighlights']?_0x427e34(_0x22488c,!0x1):null,'converterPriority':'high'});const _0x18bab7=_0x50c080['editing']['view'];this['listenTo'](_0x18bab7['document'],'clipboardOutput',(_0x1516d8,_0x4a4810)=>{const _0x35a157=[];for(const _0x3d024e of _0x18bab7['createRangeIn'](_0x4a4810['content'])['getItems']())_0x3d024e['is']('element','suggestion-td')&&_0x35a157['push'](_0x3d024e);_0x18bab7['change'](_0x251a83=>{for(const _0x3fe846 of _0x35a157)_0x251a83['move'](_0x251a83['createRangeIn'](_0x3fe846),_0x251a83['createPositionBefore'](_0x3fe846)),_0x251a83['remove'](_0x3fe846);});});}}function Pe(_0x11ac4d){if(_0x11ac4d['isEmpty'])return!0x0;const _0x497804=_0x11ac4d['getChild'](0x0);return _0x497804['is']('element','paragraph')&&_0x497804['isEmpty'];}function he(_0x535f2e,_0x18cb14={},_0x46dcee){for(const {isAnchor:_0x2327ff,cellHeight:_0x303c5e,cellWidth:_0xaf6da8}of _0x46dcee['createTableWalker'](_0x535f2e,{'includeAllSlots':!0x0,..._0x18cb14}))if(!_0x2327ff||0x1!=_0x303c5e||0x1!=_0xaf6da8)return!0x1;return!0x0;}class vt extends _0x54db38{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x473832=this['editor']['plugins']['get']('TrackChangesEditing');_0x473832['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x473832['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x473832['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x473832['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x473832['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x473832['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2f6233,_0x5b8859){const _0x19e42e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1cedfe=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4dbe01=_0x5b8859['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xeee6dc=_0x1cedfe['getColumnGroupElement'](_0x4dbe01);let _0x3256f5=_0xeee6dc?_0x1cedfe['getTableColumnsWidths'](_0xeee6dc):null,_0x5ebe77=_0x4dbe01['getAttribute']('tableWidth')||null;const _0x1f0760=_0x5b8859['tableWidth']||_0x5ebe77,_0x4bd3d4=_0x5b8859['columnWidths']||_0x3256f5,_0x1aa469=this['editor']['plugins']['get']('Users')['me'];for(const _0x3cc61e of _0x19e42e['getSuggestions']()){const _0xdd5aed=_0x3cc61e['getContainedElement']();if('resizeTable'===_0x3cc61e['subType']&&_0xdd5aed===_0x4dbe01){_0x3cc61e['author']!==_0x1aa469&&_0x3cc61e['discard']();const _0x224713=_0x3cc61e['data']['commandParams'];_0x5ebe77=_0x224713[0x0]['tableWidth'],_0x3256f5=_0x224713[0x0]['columnWidths'];break;}}_0x2f6233({'table':_0x4dbe01,'tableWidth':_0x1f0760,'columnWidths':_0x4bd3d4}),_0x19e42e['markBlockFormat'](_0x4dbe01,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5ebe77,'columnWidths':_0x3256f5}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x572e5d){if('formatBlock'!=_0x572e5d['type']&&'formatInline'!=_0x572e5d['type'])return;const {data:_0x5f18b4}=_0x572e5d;if(_0x5f18b4&&'resizeTable'===_0x5f18b4['formatGroupId']){const _0x18bb46='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x18bb46)};}}}class Ct extends _0x54db38{['afterInit'](){const _0xa26451=this['editor'];_0xa26451['plugins']['has']('Template')&&_0xa26451['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x54db38{['afterInit'](){const _0x4e5005=this['editor'];if(!_0x4e5005['commands']['get']('insertTableOfContents'))return;_0x4e5005['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4e32f7=_0x4e5005['plugins']['get']('TrackChangesEditing'),_0x10bde8=_0x4e5005['locale'];_0x4e32f7['descriptionFactory']['registerElementLabel']('tableOfContents',_0xa42242=>o(_0x10bde8,'ELEMENT_TABLE_OF_CONTENTS',_0xa42242));}}class Dt extends _0x54db38{['afterInit'](){const _0xbe2d8e=this['editor'];if(!_0xbe2d8e['plugins']['has']('Title'))return;const _0x3928da=_0xbe2d8e['plugins']['get']('TrackChangesEditing');_0x3928da['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xbe2d8e['locale'],'ELEMENT_TITLE')),_0xbe2d8e['model']['document']['registerPostFixer'](_0x20110b=>{let _0x2539cc=!0x1;const _0x59f8f1=Array['from'](_0xbe2d8e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x58cc7e,data:_0x5e80d8}of _0x59f8f1){const {group:_0x1554e2}=_0x3928da['_splitMarkerName'](_0x58cc7e);if('suggestion'!==_0x1554e2||!_0x5e80d8['newRange'])continue;const _0x52c9f9=_0x5e80d8['newRange'],_0x2bcff5=_0x52c9f9['end']['nodeBefore'];if(!_0x2bcff5||!_0x2bcff5['is']('element','title-content'))continue;if(!_0x52c9f9['start']['isTouching'](_0x52c9f9['end']))continue;const _0x1f564f=_0xbe2d8e['model']['schema']['getNearestSelectionRange'](_0x52c9f9['end'],'forward');if(_0x1f564f&&_0x1f564f['isCollapsed']){const _0x39e124=_0x20110b['createRange'](_0x52c9f9['start'],_0x1f564f['start']);_0x39e124['isEqual'](_0x52c9f9)||(_0x20110b['updateMarker'](_0x58cc7e,{'range':_0x39e124}),_0x2539cc=!0x0);}_0x2539cc||(_0x20110b['removeMarker'](_0x58cc7e),_0x2539cc=!0x0);}return _0x2539cc;});}}class Nt extends _0x54db38{['afterInit'](){const _0x2bb460=this['editor'],_0x1c7ff1=_0x2bb460['plugins']['get']('TrackChangesEditing');_0x2bb460['plugins']['has']('UndoEditing')&&(_0x1c7ff1['enableCommand']('undo'),_0x1c7ff1['enableCommand']('redo'));}}class Mt extends _0x54db38{static get['requires'](){return[jt];}['afterInit'](){const _0x50c3ae=this['editor'];if(!_0x50c3ae['plugins']['has']('TableCaptionEditing'))return;_0x50c3ae['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x54db38{['tableProperties'];['tableCellProperties'];constructor(_0x161013){super(_0x161013),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x3ad012=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2bae25 of this['tableProperties'])_0x3ad012['enableCommand'](_0x2bae25,(_0x12a2dd,_0x126590)=>{const _0x67a83e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2bae25,[_0x67a83e],this['tableProperties'],'tableProperties',_0x12a2dd,_0x126590);});_0x3ad012['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3ad012['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ad012['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2cd8c6,_0x410eff)=>this['handleDiscardAction'](this['tableProperties'],_0x2cd8c6,_0x410eff)),_0x3ad012['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x30cad9 of this['tableCellProperties'])_0x3ad012['enableCommand'](_0x30cad9,(_0xf42f9b,_0x4d887c)=>{const _0x34a327=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x30cad9,_0x34a327,this['tableCellProperties'],'tableCellProperties',_0xf42f9b,_0x4d887c);});_0x3ad012['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3ad012['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ad012['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x343dfd,_0x49f288)=>this['handleDiscardAction'](this['tableCellProperties'],_0x343dfd,_0x49f288)),_0x3ad012['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3ad012['descriptionFactory']['registerDescriptionCallback'](_0x406636=>this['handleSuggestionDescription'](_0x406636));}['_handlePropertyChange'](_0x82009b,_0x5448cd,_0x3da487,_0x695113,_0x17b006,_0x5a154d){const _0x140874=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5a154d['batch'],()=>{for(const _0x1b655b of _0x5448cd){if(this['_getSuggestion'](_0x1b655b,_0x695113))_0x17b006(_0x5a154d);else{const _0x2ff7c9={};for(const _0x5990b9 of _0x3da487){const _0x6b6a1=_0x1b655b['getAttribute'](_0x5990b9);void 0x0!==_0x6b6a1&&(_0x2ff7c9[_0x5990b9]=_0x6b6a1);}_0x17b006(_0x5a154d),_0x140874['markBlockFormat'](_0x1b655b,{'commandParams':[_0x2ff7c9]},[],_0x695113);}}});}['handleDiscardAction'](_0x4ca5d2,_0xd94295,_0x400fc7){const _0x3c460f=_0xd94295[0x0]['start']['nodeAfter'],_0x4967fb=_0x400fc7['commandParams'][0x0];this['editor']['model']['change'](_0x475980=>{for(const _0x4cb976 of _0x4ca5d2)void 0x0!==_0x4967fb[_0x4cb976]?_0x475980['setAttribute'](_0x4cb976,_0x4967fb[_0x4cb976],_0x3c460f):_0x475980['removeAttribute'](_0x4cb976,_0x3c460f);});}['handleSuggestionDescription'](_0x2628f3){if(_0x2628f3['data'])switch(_0x2628f3['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x49478e,_0x2ba886){const _0xf4045a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x27b30f of _0xf4045a['getSuggestions']({'skipNotAttached':!0x0})){const _0x5291ee=_0x27b30f['getContainedElement']();if(_0x27b30f['subType']===_0x2ba886&&_0x5291ee===_0x49478e)return _0x27b30f;}return null;}}const m='$elementName';class p extends _0x54db38{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1d3df5,_0x59e33d,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x5d7d88){function _0x3a9167(_0x401373){return _0x401373['map'](_0x5467d7=>String['fromCharCode'](_0x5467d7))['join']('');}super(_0x5d7d88),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x24290c,_0x3a7e4c,_0x33b720,_0x13bb49)=>{this['_model']['change'](()=>{for(const _0x243fd5 of[..._0x13bb49,..._0x33b720])this['_model']['markers']['has'](_0x243fd5)&&_0x5d7d88['editing']['reconvertMarker'](_0x243fd5);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5d7d88['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x5d7d88['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5d7d88['config']['get']('trackChanges.trackFormatChanges'),_0x5d7d88['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5d7d88['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x5d7d88,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3a9167([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3a9167([0x34,0x30,0x34,0x38,0x31,0x32,0x33,0x34]);}['init'](){const _0x16dcaa=this['editor'],_0x578a4b=(_0x18d27f,_0x268a7e)=>{if('attribute'!=_0x18d27f)return'ck-suggestion-marker-'+_0x18d27f;const _0x1273d3=_0x268a7e['split']('|')[0x0];return this['_isBlockAttribute'](_0x1273d3)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x16dcaa['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1fc531=>{const {id:_0x13b3ba,type:_0x4c029,subType:_0x348627}=this['_splitMarkerName'](_0x1fc531['markerName']),_0xaa1690=['ck-suggestion-marker',_0x578a4b(_0x4c029,_0x348627)];let _0x4fb19d=0xbb8;return this['activeMarkers']['includes'](_0x1fc531['markerName'])&&(_0xaa1690['push']('ck-suggestion-marker--active'),_0x4fb19d=0xbc2),'deletion'==_0x4c029&&(_0x4fb19d+=0x5),{'classes':_0xaa1690,'attributes':{'data-suggestion':_0x13b3ba},'priority':_0x4fb19d};}}),_0x16dcaa['conversion']['for']('dataDowncast')['add'](_0xcc03c9=>{_0xcc03c9['on']('addMarker:suggestion',(_0x49c833,_0x423d2b,_0x3ae9d1)=>{if(!_0x3ae9d1['options']['showSuggestionHighlights'])return;const _0x483ce5=_0x423d2b['item'];if(!_0x483ce5)return;const _0x2dac74=_0x3ae9d1['mapper']['toViewElement'](_0x483ce5);_0x16dcaa['model']['schema']['isObject'](_0x483ce5)&&_0x2dac74&&!_0x2dac74['getCustomProperty']('widget')&&_0x2dac74['is']('containerElement')&&_0x22e04a(_0x2dac74,_0x3ae9d1['writer']);},{'priority':'high'});}),_0x16dcaa['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4fe5c2,_0xe0f719)=>{if(!_0xe0f719['options']['showSuggestionHighlights'])return null;const {type:_0x23bdda,subType:_0x439b28}=this['_splitMarkerName'](_0x4fe5c2['markerName']);return{'classes':['ck-suggestion-marker',_0x578a4b(_0x23bdda,_0x439b28)],'priority':0xbb8};}});const _0x430e7a=({showActiveMarkers:_0x23ee8d=!0x0,isAttributeSuggestion:_0x32a2e1=!0x1}={})=>(_0xb5ed38,_0x1cc913,_0x12dc07)=>{if(!_0x1cc913['item'])return;const {id:_0x51d86e}=this['_splitMarkerName'](_0x1cc913['markerName']);if(_0x32a2e1){const _0x1f3091=this['_suggestions']['get'](_0x51d86e),_0xd94b88=this['_getAttributeKey'](_0x1f3091);if(!this['_isBlockAttribute'](_0xd94b88))return;}if(_0x1cc913['item']['is']('selection'))return void _0x12dc07['consumable']['consume'](_0x1cc913['item'],_0xb5ed38['name']);const _0x546024=_0x12dc07['mapper']['toViewElement'](_0x1cc913['item']);if(_0x1cc913['item']['is']('element')&&_0x16dcaa['model']['schema']['isBlock'](_0x1cc913['item'])&&!_0x546024['getCustomProperty']('addHighlight')){_0x12dc07['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x546024),_0x12dc07['writer']['setAttribute']('data-suggestion',_0x51d86e,_0x546024),_0x12dc07['mapper']['bindElementToMarker'](_0x546024,_0x1cc913['markerName']),_0x23ee8d&&(this['activeMarkers']['includes'](_0x1cc913['markerName'])?_0x12dc07['writer']['addClass']('ck-suggestion-marker--active',_0x546024):_0x12dc07['writer']['removeClass']('ck-suggestion-marker--active',_0x546024));for(const _0x5e33b4 of _0x16dcaa['model']['createRangeIn'](_0x1cc913['item'])['getItems']())_0x12dc07['consumable']['consume'](_0x5e33b4,_0xb5ed38['name']);_0x12dc07['consumable']['consume'](_0x1cc913['item'],_0xb5ed38['name']);}};_0x16dcaa['conversion']['for']('dataDowncast')['add'](_0x4d208f=>{_0x4d208f['on']('addMarker:suggestion:formatBlock',(_0x3f55a5,_0x1fd324,_0x98fca)=>{_0x98fca['options']['showSuggestionHighlights']&&_0x430e7a({'showActiveMarkers':!0x1})(_0x3f55a5,_0x1fd324,_0x98fca);},{'priority':'highest'});}),_0x16dcaa['conversion']['for']('dataDowncast')['add'](_0x16a072=>{_0x16a072['on']('addMarker:suggestion:attribute',(_0x534daf,_0x402333,_0x158c4d)=>{_0x158c4d['options']['showSuggestionHighlights']&&_0x430e7a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x534daf,_0x402333,_0x158c4d);},{'priority':'highest'});}),_0x16dcaa['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3fa008,_0x1e6e05)=>_0x1e6e05['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3fa008['substr'](0xb)}}),_0x16dcaa['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x428b6b,{writer:_0xc746da})=>{let _0x441f7d='suggestion:'+_0x428b6b['getAttribute']('suggestion-type')+':'+_0x428b6b['getAttribute']('id');return _0x428b6b['getAttribute']('marker-count')&&(_0x441f7d+=':'+_0x428b6b['getAttribute']('marker-count')),_0xc746da['createElement']('$marker',{'data-name':_0x441f7d});}}),_0x16dcaa['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x16dcaa['conversion']['for']('editingDowncast')['add'](_0x48c182=>{_0x48c182['on']('addMarker:suggestion:formatBlock',_0x430e7a(),{'priority':'high'});}),_0x16dcaa['conversion']['for']('editingDowncast')['add'](_0x1ac44f=>{_0x1ac44f['on']('addMarker:suggestion:attribute',_0x430e7a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x16dcaa['conversion']['for']('editingDowncast')['add'](_0x1b67ca=>{_0x1b67ca['on']('removeMarker:suggestion:formatBlock',(_0x3f86b5,_0x4f4e2b,_0x26a29c)=>{const _0x419c4c=_0x26a29c['mapper']['markerNameToElements'](_0x4f4e2b['markerName']);if(_0x419c4c){for(const _0x1c01bb of _0x419c4c)_0x1c01bb['getCustomProperty']('addHighlight')||(_0x26a29c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1c01bb),_0x26a29c['writer']['removeAttribute']('data-suggestion',_0x1c01bb),_0x26a29c['mapper']['unbindElementFromMarkerName'](_0x1c01bb,_0x4f4e2b['markerName']));}},{'priority':'high'});}),_0x16dcaa['conversion']['for']('editingDowncast')['add'](_0x138ed0=>{_0x138ed0['on']('removeMarker:suggestion:attribute',(_0x22788d,_0x1f452b,_0x227cc3)=>{const _0x50ee13=_0x227cc3['mapper']['markerNameToElements'](_0x1f452b['markerName']);if(!_0x50ee13)return;const {id:_0xdefb49}=this['_splitMarkerName'](_0x1f452b['markerName']),_0x20d65e=this['_suggestions']['get'](_0xdefb49),_0x60fb82=this['_getAttributeKey'](_0x20d65e);if(this['_isBlockAttribute'](_0x60fb82)){for(const _0x515b4b of _0x50ee13)_0x515b4b['getCustomProperty']('addHighlight')||(_0x227cc3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x515b4b),_0x227cc3['writer']['removeAttribute']('data-suggestion',_0x515b4b),_0x227cc3['mapper']['unbindElementFromMarkerName'](_0x515b4b,_0x1f452b['markerName']));}},{'priority':'high'});}),_0x16dcaa['model']['document']['registerPostFixer'](_0x5cab22=>{let _0x7128eb=!0x1;const _0x3423c8=Array['from'](_0x16dcaa['model']['document']['differ']['getChangedMarkers']()),_0x4ee06a=new Set();for(const {name:_0x5d4b14,data:_0x273853}of _0x3423c8){const {group:_0x2dcab7,type:_0x4aedb6,subType:_0x1a1c20,id:_0x244de6}=this['_splitMarkerName'](_0x5d4b14);if('suggestion'!==_0x2dcab7)continue;const _0x5350fa=this['_suggestions']['get'](_0x244de6);if(null!=_0x273853['newRange']){'formatInline'==_0x4aedb6&&(_0x7128eb=_0x7128eb||Et(_0x273853['newRange'],_0x5d4b14,_0x5cab22,_0x16dcaa['model']['schema']));const _0x505ce9='attribute'==_0x4aedb6&&this['_isBlockAttribute'](_0x1a1c20['split']('|')[0x0]);if(_0x273853['newRange']['isCollapsed']||'$graveyard'==_0x273853['newRange']['root']['rootName']||'formatBlock'==_0x4aedb6&&!Ut(_0x273853['newRange'])||_0x505ce9&&!Ut(_0x273853['newRange'])||'deletion'==_0x4aedb6&&!(!Tt(_0xf49bff=_0x273853['newRange'])&&!function(_0xff007c){return _0xff007c['start']['parent']==_0xff007c['end']['nodeBefore']&&_0xff007c['start']['isAtEnd'];}(_0xf49bff)))_0x5cab22['removeMarker'](_0x5d4b14),_0x7128eb=!0x0;else{if(!_0x5350fa||!_0x5350fa['isInContent'])continue;_0x4ee06a['add'](_0x5350fa);}}}var _0xf49bff;return _0x4ee06a['size']>0x0&&(_0x7128eb=!!this['_joinWithAdjacentSuggestions'](_0x4ee06a)||_0x7128eb),_0x7128eb;}),_0x16dcaa['model']['document']['registerPostFixer'](_0xa6ea8a=>{let _0x4af792=!0x1;for(const _0x1c54e2 of _0x16dcaa['model']['document']['differ']['getChanges']())if('insert'==_0x1c54e2['type'])for(const _0x3b737f of this['_suggestions']['values']()){if(_0x3b737f['isMultiRange']||!_0x3b737f['isInContent'])continue;const _0x31a315='formatBlock'==_0x3b737f['type'],_0x4f42e6=this['_getAttributeKey'](_0x3b737f),_0xe8f30e=_0x4f42e6&&this['_isBlockAttribute'](_0x4f42e6);if(!_0x31a315&&!_0xe8f30e)continue;const _0x5b60f2=_0x3b737f['getFirstRange']();if(_0x5b60f2['start']['parent']!=_0x5b60f2['end']['parent']&&!_0x5b60f2['end']['isAtEnd']){const _0x35189e=_0x16dcaa['model']['createPositionAt'](_0x5b60f2['start']['nodeAfter'],'end'),_0x1b27a2=_0x16dcaa['model']['createRange'](_0x5b60f2['start'],_0x35189e);_0xa6ea8a['updateMarker'](_0x3b737f['getFirstMarker'](),{'range':_0x1b27a2}),_0x4af792=!0x0;}}return _0x4af792;}),_0x16dcaa['model']['document']['registerPostFixer'](_0x2f402d=>this['_processAttributeChanges'](_0x2f402d)),_0x16dcaa['model']['document']['registerPostFixer'](_0x66cd96=>!_0x66cd96['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x66cd96)),_0x16dcaa['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x16dcaa['model']['document']['on']('change:data',(_0x545245,_0x59e3e4)=>{if(!_0x59e3e4['isLocal']||_0x59e3e4['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x255e47=_0x16dcaa['model']['document']['differ']['getChanges']();if(0x0==_0x255e47['length'])return;const _0x338a04=[],_0x42fafc=_0x255e47['filter'](_0x588e38=>'attribute'==_0x588e38['type']),_0x1d2e6f=_0x255e47['filter'](_0x522188=>'insert'==_0x522188['type']&&'$text'!=_0x522188['name']);for(const _0x5a499c of _0x42fafc)this['_isRegisteredAttribute'](_0x5a499c['attributeKey'])&&_0x338a04['push']({'key':_0x5a499c['attributeKey'],'newValue':_0x5a499c['attributeNewValue'],'oldValue':_0x5a499c['attributeOldValue'],'range':Ot(_0x5a499c['range'],_0x16dcaa['model'])});for(const _0x283926 of _0x1d2e6f){if('rename'!=_0x283926['action']&&'refresh'!=_0x283926['action'])continue;const _0x8cc9fd=Gt(_0x283926['position']['nodeAfter'],_0x16dcaa['model']),_0x172248=_0x283926['before'];'rename'==_0x283926['action']&&_0x338a04['push']({'key':m,'newValue':_0x283926['name'],'oldValue':_0x172248['name'],'range':_0x8cc9fd});for(const [_0x827c84,_0x59270d]of _0x172248['attributes']){if(!this['_isRegisteredAttribute'](_0x827c84))continue;const _0x2fdf4d=_0x283926['attributes']['get'](_0x827c84);_0x59270d!==_0x2fdf4d&&_0x338a04['push']({'key':_0x827c84,'newValue':_0x2fdf4d,'oldValue':_0x59270d,'range':_0x8cc9fd});}for(const [_0x2ac16a,_0x4c9a71]of _0x283926['attributes'])this['_isRegisteredAttribute'](_0x2ac16a)&&(_0x172248['attributes']['has'](_0x2ac16a)||_0x338a04['push']({'key':_0x2ac16a,'newValue':_0x4c9a71,'oldValue':null,'range':_0x8cc9fd}));}0x0!=_0x338a04['length']&&_0x16dcaa['model']['enqueueChange'](_0x59e3e4,_0xf31350=>{const _0x17a78d=_0xa3dac7();for(const {range:_0x3c8b1e,key:_0x213213,oldValue:_0x4fc133,newValue:_0x24633d}of _0x338a04)this['markAttributeChange'](_0x3c8b1e,_0x213213,_0x4fc133,_0x24633d,{'groupId':_0x17a78d});this['_reduceExistingSuggestions'](_0xf31350,_0x338a04);});},{'priority':'lowest'}),_0x16dcaa['model']['markers']['on']('update:suggestion',(_0x1aab9d,_0x2a000a,_0x4b34a5)=>{if(null==_0x4b34a5){const {id:_0x37932a}=this['_splitMarkerName'](_0x2a000a['name']),_0x5178e1=this['_suggestions']['get'](_0x37932a);_0x5178e1&&_0x5178e1['addMarkerName'](_0x2a000a['name']);}}),_0x16dcaa['model']['document']['on']('change:data',()=>{const _0x1e5056=Array['from'](_0x16dcaa['model']['document']['differ']['getChangedMarkers']())['filter'](_0xafe70a=>'suggestion'===this['_splitMarkerName'](_0xafe70a['name'])['group']);if(0x0===_0x1e5056['length'])return;_0x1e5056['sort']((_0x588033,_0x1c59aa)=>{const _0x289e93=_0x588033['data']['oldRange'],_0x537966=_0x1c59aa['data']['oldRange'];return null===_0x289e93&&null===_0x537966?0x0:null===_0x289e93&&null!==_0x537966?-0x1:null!==_0x289e93&&null===_0x537966?0x1:_0x289e93['start']['isBefore'](_0x537966['start'])?-0x1:0x1;});const _0x289765=new Set(),_0x226b82=new Set();for(const {name:_0x5918bf,data:_0x40503e}of _0x1e5056){const {id:_0x2943a5}=this['_splitMarkerName'](_0x5918bf);if(null===_0x40503e['oldRange']){const _0x112a4d=this['_handleNewSuggestionMarker'](_0x5918bf);_0x226b82['add'](_0x112a4d);}else{const _0x56125b=this['_suggestions']['get'](_0x2943a5);null!==_0x40503e['newRange']||_0x56125b['isInContent']?(_0x289765['add'](_0x56125b['head']),_0x226b82['add'](_0x56125b)):this['_removeSuggestion'](_0x56125b);}}_0x226b82['size']>0x0&&this['_refreshSuggestionsChain'](_0x226b82);for(const _0xb07d38 of _0x289765)this['fire']('suggestionChanged',_0xb07d38);}),_0x16dcaa['model']['on']('applyOperation',(_0x2b43bc,_0x1cc6dd)=>{const _0x5c83b6=_0x1cc6dd[0x0];if(!this['_suggestions']['size'])return;if(!_0x5c83b6['isDocumentOperation'])return;if(_0x5c83b6['batch']['isUndo']||!_0x5c83b6['batch']['isLocal'])return;let _0x5a0459,_0x4de467;switch(_0x5c83b6['type']){case'insert':_0x5a0459=_0x16dcaa['model']['createPositionAt'](_0x5c83b6['position']),_0x4de467=_0x5a0459['getShiftedBy'](_0x5c83b6['howMany']);break;case'split':_0x5a0459=_0x16dcaa['model']['createPositionAt'](_0x5c83b6['splitPosition']),_0x4de467=_0x16dcaa['model']['createPositionAt'](_0x5c83b6['moveTargetPosition']);break;case'move':_0x5a0459=_0x16dcaa['model']['createPositionAt'](_0x5c83b6['targetPosition']),_0x4de467=_0x5a0459['getShiftedBy'](_0x5c83b6['howMany']);break;default:return;}const _0x5144de=_0x16dcaa['model']['createRange'](_0x5a0459,_0x4de467);_0x16dcaa['model']['change'](()=>{for(const {suggestion:_0x2a372e,meta:_0x3836f3}of this['_findSuggestions'](_0x5144de)){if(_0x2a372e['isMultiRange'])continue;if('formatInline'==_0x2a372e['type'])continue;const _0x468d9e=this['_getAttributeKey'](_0x2a372e);if(_0x468d9e&&this['_isBlockAttribute'](_0x468d9e)&&'split'!=_0x5c83b6['type'])continue;const _0x42cf6c=_0x2a372e['data']&&_0x2a372e['data']['multipleBlocks'];('formatBlock'!=_0x2a372e['type']||'split'==_0x5c83b6['type']&&!_0x42cf6c)&&(_0x3836f3['containsRangeInObject']||'insertion'==_0x2a372e['type']&&_0x3836f3['isOwn']||_0x2a372e['getFirstRange']()['containsRange'](_0x5144de)&&this['_breakSuggestionMarker'](_0x2a372e,_0x5a0459,_0x4de467));}});},{'priority':'lowest'}),_0x16dcaa['model']['on']('deleteContent',(_0x5b72b6,_0x56ed2d)=>{const _0x1a3397=_0x56ed2d[0x0],_0x18cc04=_0x56ed2d[0x1];if(_0x18cc04&&_0x18cc04['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1a3397['isCollapsed'])return;const _0x5d9d21=_0x16dcaa['model']['schema'],{start:_0x414242,end:_0x2264d1}=_0x1a3397['getFirstRange'](),_0x5a77de=_0x414242['nodeAfter']&&_0x5d9d21['isLimit'](_0x414242['nodeAfter'])?null:_0x5d9d21['getNearestSelectionRange'](_0x414242,'forward'),_0x19e979=_0x2264d1['nodeBefore']&&_0x5d9d21['isLimit'](_0x2264d1['nodeBefore'])?null:_0x5d9d21['getNearestSelectionRange'](_0x2264d1,'backward'),_0x51d8f6=_0x16dcaa['model']['createRange'](_0x5a77de?_0x5a77de['start']:_0x414242,_0x19e979?_0x19e979['end']:_0x2264d1);_0x16dcaa['model']['change'](_0x5c08da=>{this['markDeletion'](_0x51d8f6);const _0x507cd3=_0x16dcaa['model']['schema']['getNearestSelectionRange'](_0x51d8f6['start']);_0x1a3397['is']('documentSelection')?_0x5c08da['setSelection'](_0x507cd3):_0x1a3397['setTo'](_0x507cd3);}),_0x5b72b6['stop']();},{'priority':_0x275526['normal']+0xa}),_0x16dcaa['model']['on']('insertContent',(_0x56811b,_0x36f3a9)=>{const _0x1615ef=_0x36f3a9[_0x36f3a9['length']-0x1];_0x1615ef&&_0x1615ef['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x16dcaa['model']['change'](()=>{let _0x3a7653=_0x16dcaa['model']['insertContent'](_0x36f3a9[0x0],_0x36f3a9[0x1],_0x36f3a9[0x2],{'forceDefaultExecution':!0x0});if(!_0x3a7653)return;_0x56811b['return']=_0x3a7653['clone']();const _0x44e451=_0x3a7653['end']['nodeBefore'],_0x433275=_0x16dcaa['model']['schema'];_0x44e451&&_0x433275['isBlock'](_0x44e451)&&!_0x433275['isObject'](_0x44e451)&&(_0x3a7653=_0x16dcaa['model']['createRange'](_0x3a7653['start'],_0x16dcaa['model']['createPositionAt'](_0x44e451,'end'))),this['markInsertion'](_0x3a7653);}),_0x56811b['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2681de=new $(_0x16dcaa,this['_suggestions']);_0x16dcaa['commands']['add']('acceptSuggestion',_0x2681de),this['enableCommand']('acceptSuggestion');const _0x4f284e=new B(_0x16dcaa,this['_suggestions']);_0x16dcaa['commands']['add']('discardSuggestion',_0x4f284e),this['enableCommand']('discardSuggestion'),_0x16dcaa['commands']['add']('acceptAllSuggestions',new x(_0x16dcaa,_0x2681de,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x16dcaa['commands']['add']('discardAllSuggestions',new x(_0x16dcaa,_0x4f284e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x16dcaa['commands']['add']('acceptSelectedSuggestions',new R(_0x16dcaa,_0x2681de,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x16dcaa['commands']['add']('discardSelectedSuggestions',new R(_0x16dcaa,_0x4f284e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x144a4e=_0x16dcaa['plugins']['get']('CommentsRepository');this['listenTo'](_0x144a4e,'addComment',(_0x5d2099,{threadId:_0x3f8228})=>{const _0x26f6fb=this['_suggestions']['get'](_0x3f8228);_0x26f6fb&&_0x26f6fb['commentThread']&&0x1===_0x26f6fb['commentThread']['length']&&this['_updateSuggestionData'](_0x3f8228,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x144a4e,'removeComment',(_0x52efbd,{threadId:_0x241619})=>{const _0x2db76c=this['_suggestions']['get'](_0x241619);_0x2db76c&&_0x2db76c['commentThread']&&!_0x2db76c['commentThread']['length']&&this['_updateSuggestionData'](_0x241619,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0xf65b85){if(this['_adapter'])throw new _0x50d316('track-changes-adapter-already-set',this);this['_adapter']=_0xf65b85;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x516400=!0x1,toJSON:_0x2d56c0=!0x1}={}){const _0x58d0d3=[];for(const _0x16357a of this['_suggestions']['values']())_0x516400&&!_0x16357a['isInContent']||_0x58d0d3['push'](_0x16357a);return _0x2d56c0?_0x58d0d3['map'](_0x3bf6fd=>_0x3bf6fd['toJSON']()):_0x58d0d3;}['getSuggestion'](_0x33ad35){const _0x4aaebb=this['_suggestions']['get'](_0x33ad35);if(!_0x4aaebb)throw new _0x50d316('track-changes-suggestion-not-found',this);return _0x4aaebb;}['hasSuggestion'](_0x19676b){return this['_suggestions']['has'](_0x19676b);}['addSuggestionData'](_0x1cd0f9){const {authorId:_0x50303c,id:_0x218bc2,attributes:_0x54fc18}=_0x1cd0f9,[_0x1a42d5,_0x426ce0]=_0x1cd0f9['type']['split'](':'),_0x5dc66d=this['_suggestions']['get'](_0x218bc2)||this['_createSuggestion'](_0x1a42d5,_0x426ce0,_0x218bc2,_0x50303c,_0x54fc18);if(this['_addThreadToSuggestion'](_0x5dc66d),this['_checkSuggestionCorrectness'](_0x5dc66d,_0x1a42d5,_0x426ce0||null,_0x50303c),_0x5dc66d['createdAt']=_0x1cd0f9['createdAt'],_0x5dc66d['_isDataLoaded']=!0x0,_0x54fc18&&_0x54fc18['@external']){const _0x503b87=_0x54fc18['@external'],_0xc18296=this['_getExternalAuthor'](_0x503b87['authorName']);_0x5dc66d['authoredAt']=_0x503b87['createdAt'],_0x5dc66d['author']=_0xc18296,_0x5dc66d['isExternal']=!0x0;}else _0x5dc66d['authoredAt']=_0x1cd0f9['createdAt'];switch(_0x1cd0f9['data']&&(_0x5dc66d['data']=_0x1cd0f9['data']),_0x1cd0f9['attributes']&&(_0x5dc66d['attributes']=_0x1cd0f9['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5dc66d['_saved']=!0x0),this['_suggestionState']['get'](_0x5dc66d)){case'notReady':this['_suggestionState']['set'](_0x5dc66d,'dataReady');break;case'markerReady':_0x5dc66d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5dc66d])),this['_refreshSuggestionsChain'](new Set([_0x5dc66d])),this['_suggestionState']['set'](_0x5dc66d,'ready'),this['fire']('suggestionLoaded',_0x5dc66d)):this['_suggestionState']['set'](_0x5dc66d,'removed');}return _0x5dc66d;}['acceptSuggestion'](_0x4df9cb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x482856 of _0x4df9cb['getAllAdjacentSuggestions']())_0x482856['accept']();});});}['discardSuggestion'](_0x59b3ec){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x16dd49 of _0x59b3ec['getAllAdjacentSuggestions']())_0x16dd49['discard']();});});}['enableCommand'](_0x5a0168,_0x3b9af7){const _0x172f44=this['editor']['commands']['get'](_0x5a0168);if(!_0x172f44)throw new _0x50d316('track-changes-command-not-found',this,{'commandName':_0x5a0168});if(this['_enabledCommands']['has'](_0x172f44))throw new _0x50d316('track-changes-enable-command-twice',this,{'commandName':_0x5a0168});this['_enabledCommands']['add'](_0x172f44),_0x3b9af7&&_0x172f44['on']('execute',(_0x3496f1,_0x4e689a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4e689a['length']>0x0&&_0x4e689a[_0x4e689a['length']-0x1]&&_0x4e689a[_0x4e689a['length']-0x1]['forceDefaultExecution']?_0x4e689a['pop']():(_0x3496f1['return']=_0x3b9af7((..._0x1d7f89)=>_0x172f44['execute'](..._0x1d7f89,{'forceDefaultExecution':!0x0}),..._0x4e689a),_0x3496f1['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xaa3a60){let _0x4c512e,_0x2119a3;const _0x1d3e15=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4c512e=_0xaa3a60();}catch(_0x552603){_0x2119a3=_0x552603;}return _0x1d3e15||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2119a3&&_0x50d316['rethrowUnexpectedError'](_0x2119a3,this),_0x4c512e;}['markInsertion'](_0x185203,_0x38f2e2=null,_0xa51c86={}){if(_0x185203['isCollapsed'])return null;const _0x31836b=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3e7f94,meta:_0x5bb23c}of this['_findSuggestions'](_0x185203,'insertion'))if(_0x5bb23c['isOwn']){if(!_0x5bb23c['isNextTo']){if(_0x5bb23c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x3e7f94,_0xa51c86))continue;return _0x3e7f94;}if(Lt(_0x3e7f94,_0xa51c86))return _0x3e7f94;this['_breakSuggestionMarker'](_0x3e7f94,_0x185203['start'],_0x185203['end']);break;}if(_0x38f2e2==_0x3e7f94['subType']&&Lt(_0x3e7f94,_0xa51c86)){const _0x22d4c0=_0x3e7f94['getFirstRange']();return _0x22d4c0['start']['isEqual'](_0x185203['end'])?this['_setSuggestionRange'](_0x3e7f94,this['_model']['createRange'](_0x185203['start'],_0x22d4c0['end'])):this['_setSuggestionRange'](_0x3e7f94,this['_model']['createRange'](_0x22d4c0['start'],_0x185203['end'])),_0x3e7f94;}}const _0x58ed2f=_0xa3dac7(),_0x17a029=_0x31836b['id'],_0x23fbab=_0x38f2e2?'insertion:'+_0x38f2e2:'insertion',_0x19acab=this['_setSuggestionData']({'id':_0x58ed2f,'type':_0x23fbab,'createdAt':new Date(),'authorId':_0x17a029,'attributes':_0xa51c86});return this['_addSuggestionMarker'](_0x23fbab,_0x58ed2f,_0x17a029,_0x185203),_0x19acab;}['markMultiRangeInsertion'](_0xa9ddb4,_0x7b06a2='multi',_0x3fe5c5={}){const _0x1da26c=this['editor']['plugins']['get']('Users')['me'],_0x398c35=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x7b06a2,'join');for(const _0x33f9f6 of this['getSuggestions']())if(_0x33f9f6['author']['id']==_0x1da26c['id']&&'insertion'==_0x33f9f6['type']&&_0x33f9f6['subType']==_0x7b06a2&&Lt(_0x33f9f6,_0x3fe5c5)&&(_0x398c35(_0x33f9f6['getRanges'](),_0xa9ddb4)||_0x398c35(_0xa9ddb4,_0x33f9f6['getRanges']()))){for(const _0x5cadcf of _0xa9ddb4)_0x33f9f6['addRange'](_0x5cadcf);return _0x33f9f6;}for(const {suggestion:_0x7b25d3,meta:_0x3eb096}of this['_findSuggestions'](_0xa9ddb4,'insertion')){if(!_0x3eb096['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3eb096['containsRangeInObject'])continue;if(!Lt(_0x7b25d3,_0x3fe5c5))continue;let _0x1d1753=!0x0;for(const _0x18c3dd of _0x7b25d3['getRanges']())for(const _0x36f1e0 of _0xa9ddb4)if(!_0x18c3dd['containsRange'](_0x36f1e0)){_0x1d1753=!0x1;break;}if(_0x1d1753)return _0x7b25d3;}const _0x59d4ae=_0xa3dac7(),_0x43737f=_0x1da26c['id'],_0x305af4='insertion:'+_0x7b06a2,_0x555fc1=this['_setSuggestionData']({'id':_0x59d4ae,'type':_0x305af4,'createdAt':new Date(),'authorId':_0x43737f,'attributes':_0x3fe5c5});for(const _0x3fd5f9 of _0xa9ddb4)this['_addSuggestionMarker'](_0x305af4,_0x59d4ae,_0x43737f,_0x3fd5f9,u['getMultiRangeId']());return _0x555fc1;}['markInlineFormat'](_0x4dc9e4,_0x5b8fb7,_0x88e49c=null,_0x406fd0={}){if(_0x88e49c=_0x88e49c||Vt(_0x5b8fb7),_0x4dc9e4['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x733f21=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x88e49c,'accept');return this['forceDefaultExecution'](()=>_0x733f21([_0x4dc9e4],_0x5b8fb7,_0x406fd0)),null;}const _0x3e5459=this['editor']['plugins']['get']('Users')['me'],_0xc4448e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4c12f1,meta:_0x1334a8}of this['_findSuggestions'](_0x4dc9e4,'insertion'))_0x1334a8['isOwn']&&!_0x1334a8['isInsideObject']&&_0xc4448e['push'](..._0x4c12f1['getRanges']());}const _0x21ec2e=function(_0x25cdbc,_0x92fa60){const _0x2c4477=[];for(const _0x232073 of _0x92fa60){const _0x18ae99=_0x25cdbc['getIntersection'](_0x232073);_0x18ae99&&_0x2c4477['push'](_0x18ae99);}return _0x2c4477;}(_0x4dc9e4,_0xc4448e),_0x228d2c=function(_0x51e7fc,_0x430d7b){const _0x2f7a12=[_0x51e7fc];for(const _0x5587be of _0x430d7b){let _0x184045=0x0;for(;_0x184045<_0x2f7a12['length'];){const _0x3f2126=_0x2f7a12[_0x184045]['getDifference'](_0x5587be);_0x2f7a12['splice'](_0x184045,0x1,..._0x3f2126),_0x184045+=_0x3f2126['length'];}}return _0x2f7a12;}(_0x4dc9e4,_0xc4448e);_0x21ec2e['length']&&this['_model']['change'](()=>{for(const _0x416365 of _0x21ec2e){const _0x3f2ed2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x88e49c,'accept');this['forceDefaultExecution'](()=>_0x3f2ed2([_0x416365],_0x5b8fb7,_0x406fd0));}});for(const _0x3c4615 of _0x228d2c){let _0x26a25a=null,_0x2dc45d=_0x3c4615['start'],_0x24e510=_0x3c4615['end'];for(const {suggestion:_0x39387d,meta:_0x77f3e4}of this['_findSuggestions'](_0x3c4615,'formatInline')){if(!_0x77f3e4['isOwn'])continue;if(_0x39387d['subType']!=_0x88e49c)continue;if(!Lt(_0x39387d,_0x406fd0))continue;const _0x30eed1=_0x39387d['getFirstRange']();if(_0x30eed1['containsRange'](_0x3c4615,!0x0))return null;_0x2dc45d=_0x2dc45d['isBefore'](_0x30eed1['start'])?_0x2dc45d:_0x30eed1['start'],_0x24e510=_0x24e510['isAfter'](_0x30eed1['end'])?_0x24e510:_0x30eed1['end'],_0x26a25a?_0x30eed1['start']['isBefore'](_0x26a25a['getFirstRange']()['start'])?(_0x26a25a['removeMarkers'](),_0x26a25a=_0x39387d):_0x39387d['removeMarkers']():_0x26a25a=_0x39387d;}const _0x2a2a24=this['_model']['createRange'](_0x2dc45d,_0x24e510);if(_0x26a25a)this['_setSuggestionRange'](_0x26a25a,_0x2a2a24);else{const _0x10f0df=_0xa3dac7(),_0x3300db=_0x3e5459['id'];this['_setSuggestionData']({'id':_0x10f0df,'type':'formatInline:'+_0x88e49c,'data':_0x5b8fb7,'createdAt':new Date(),'authorId':_0x3300db,'attributes':_0x406fd0}),this['_addSuggestionMarker']('formatInline:'+_0x88e49c,_0x10f0df,_0x3300db,_0x2a2a24);}}return null;}['markBlockFormat'](_0x1d035a,_0x4f23f9,_0x57073e=[],_0x2870fc=null,_0x5983c7={}){_0x4f23f9['formatGroupId']||(_0x4f23f9['formatGroupId']=_0x4f23f9['commandName']),_0x4f23f9['multipleBlocks']=_0x1d035a['is']('range'),_0x2870fc=_0x2870fc||Vt(_0x4f23f9);const _0x3bdc3f=_0x57073e['map'](_0x3d1d09=>Gt(_0x3d1d09,this['_model'])),_0x16e2b9=_0x1d035a['is']('range')?_0x1d035a:Gt(_0x1d035a,this['_model']);if('never'===this['_trackFormatChanges']){const _0xe82e05=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2870fc,'accept');return this['forceDefaultExecution'](()=>_0xe82e05([_0x16e2b9],_0x4f23f9,_0x5983c7)),null;}_0x3bdc3f['push'](_0x16e2b9);let _0x4e062b=!0x0;for(const _0xb3001 of _0x3bdc3f)if(!this['_rangeIsInLocalUserInsertion'](_0xb3001)){_0x4e062b=!0x1;break;}if(_0x4e062b&&'always'!==this['_trackFormatChanges']){const _0x336002=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2870fc,'accept');return this['forceDefaultExecution'](()=>_0x336002([_0x16e2b9],_0x4f23f9,_0x5983c7)),null;}let _0x57482d=null,_0x3937ea=_0x16e2b9['start'],_0x2849fa=_0x16e2b9['end'];for(const {suggestion:_0x2841db,meta:_0x5f4bd7}of this['_findSuggestions'](_0x16e2b9,'formatBlock')){if(!_0x5f4bd7['isOwn'])continue;if(_0x5f4bd7['isNextTo']||_0x5f4bd7['containsRangeInObject']||_0x5f4bd7['isInsideObject'])continue;if(_0x2841db['data']['formatGroupId']!=_0x4f23f9['formatGroupId'])continue;if(!Lt(_0x2841db,_0x5983c7))continue;const _0x1ea91c=_0x2841db['getFirstRange']();if(_0x2841db['subType']==_0x2870fc){if(_0x1ea91c['containsRange'](_0x16e2b9,!0x0))return null;_0x3937ea=_0x3937ea['isBefore'](_0x1ea91c['start'])?_0x3937ea:_0x1ea91c['start'],_0x2849fa=_0x2849fa['isAfter'](_0x1ea91c['end'])?_0x2849fa:_0x1ea91c['end'],_0x57482d?_0x1ea91c['start']['isBefore'](_0x57482d['getFirstRange']()['start'])?(_0x57482d['removeMarkers'](),_0x57482d=_0x2841db):_0x2841db['removeMarkers']():_0x57482d=_0x2841db;}else{const _0x27b94c=_0x16e2b9['getIntersection'](_0x1ea91c);this['_cutOutSuggestionMarker'](_0x2841db,_0x27b94c);}}const _0x45a7c5=this['editor']['plugins']['get']('Users')['me'],_0x34a6d4=_0xa3dac7(),_0x35832f=_0x45a7c5['id'];if(_0x57482d)return this['_setSuggestionRange'](_0x57482d,this['_model']['createRange'](_0x3937ea,_0x2849fa)),_0x57482d;{const _0x2764cb=this['_setSuggestionData']({'id':_0x34a6d4,'type':'formatBlock:'+_0x2870fc,'data':_0x4f23f9,'createdAt':new Date(),'authorId':_0x35832f,'attributes':_0x5983c7});return this['_addSuggestionMarker']('formatBlock:'+_0x2870fc,_0x34a6d4,_0x35832f,this['_model']['createRange'](_0x3937ea,_0x2849fa)),_0x2764cb;}}['markMultiRangeBlockFormat'](_0x433f67,_0x15f831,_0x21ab59=[],_0x1fd5e7=null,_0x5c380d={}){_0x15f831['formatGroupId']||(_0x15f831['formatGroupId']=_0x15f831['commandName']);const _0x232a1d=_0x433f67[0x0];_0x15f831['multipleBlocks']=_0x232a1d['is']('range'),_0x1fd5e7=_0x1fd5e7||Vt(_0x15f831);const _0x4a11de=_0x21ab59['map'](_0x4b6d4b=>Gt(_0x4b6d4b,this['_model'])),_0x12624f=_0x232a1d['is']('range')?_0x433f67:_0x433f67['map'](_0x3cb47a=>Gt(_0x3cb47a,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4961ff=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fd5e7,'accept');return this['forceDefaultExecution'](()=>_0x4961ff(_0x12624f,_0x15f831,_0x5c380d)),null;}_0x4a11de['push'](..._0x12624f);let _0x3d3f99=!0x0;for(const _0x610674 of _0x4a11de)if(!this['_rangeIsInLocalUserInsertion'](_0x610674)){_0x3d3f99=!0x1;break;}if(_0x3d3f99&&'always'!==this['_trackFormatChanges']){const _0x50d082=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fd5e7,'accept');return this['forceDefaultExecution'](()=>_0x50d082(_0x12624f,_0x15f831,_0x5c380d)),null;}const _0x1284da=this['editor']['plugins']['get']('Users')['me'];for(const _0x3d3445 of this['getSuggestions']()){if(_0x3d3445['author']['id']!=_0x1284da['id'])continue;if('formatBlock'!=_0x3d3445['type']||_0x3d3445['data']['formatGroupId']!=_0x15f831['formatGroupId'])continue;if(!Lt(_0x3d3445,_0x5c380d))continue;const _0x2c82d3=_0x3d3445['subType']==_0x1fd5e7;for(let _0x5e4291=0x0;_0x5e4291<_0x12624f['length'];_0x5e4291++){const _0xf23f4a=_0x12624f[_0x5e4291];for(const _0xedfa85 of _0x3d3445['getMarkers']()){const _0x4fb81a=_0xedfa85['getRange']();if(_0xf23f4a['isEqual'](_0x4fb81a)){_0x2c82d3?(_0x12624f['splice'](_0x5e4291,0x1),_0x5e4291--):_0x3d3445['removeMarker'](_0xedfa85['name']);break;}}}}if(0x0==_0x12624f['length'])return null;const _0x4fa6e6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fd5e7,'join');for(const _0x534d2a of this['getSuggestions']())if(_0x534d2a['author']['id']==_0x1284da['id']&&'formatBlock'==_0x534d2a['type']&&_0x534d2a['data']['formatGroupId']==_0x15f831['formatGroupId']&&_0x534d2a['subType']==_0x1fd5e7&&Lt(_0x534d2a,_0x5c380d)&&(_0x4fa6e6(_0x534d2a['getRanges'](),_0x12624f)||_0x4fa6e6(_0x12624f,_0x534d2a['getRanges']()))){for(const _0x296289 of _0x12624f)_0x534d2a['addRange'](_0x296289);return _0x534d2a;}const _0x14aba4=_0xa3dac7(),_0xdc5e72=_0x1284da['id'],_0x11c790='formatBlock:'+_0x1fd5e7,_0x30c9fd=this['_setSuggestionData']({'id':_0x14aba4,'type':_0x11c790,'data':_0x15f831,'createdAt':new Date(),'authorId':_0xdc5e72,'attributes':_0x5c380d});for(const _0x4c5092 of _0x12624f)this['_addSuggestionMarker'](_0x11c790,_0x14aba4,_0xdc5e72,_0x4c5092,u['getMultiRangeId']());return _0x30c9fd;}['markDeletion'](_0x18f980,_0x4cccfb=null,_0x3d6d81={}){if(_0x18f980['isCollapsed'])return null;const _0xce9b81=this['editor']['plugins']['get']('Users')['me'],_0x13cd6b=new _0x216747(_0x18f980['start'],_0x18f980['end']);for(const {suggestion:_0x3d6d19,meta:_0x5afb13}of this['_findSuggestions'](_0x13cd6b,'insertion'))if(_0x5afb13['isOwn']&&!_0x5afb13['isNextTo']){if(_0x3d6d19['isMultiRange']){const _0x875dec=_0x3d6d19['getRanges']()['filter'](_0x255382=>'$graveyard'!=_0x255382['root']['rootName']);_0x875dec['every'](_0x325b6c=>_0x13cd6b['containsRange'](_0x325b6c,!0x0))&&_0x3d6d19['discard']();if(_0x875dec['some'](_0x244e82=>_0x244e82['containsRange'](_0x13cd6b,!0x0))){const _0x4c8bdc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4cccfb,'accept');return this['forceDefaultExecution'](()=>_0x4c8bdc([_0x13cd6b],null,_0x3d6d81)),null;}}else{const _0x2fa07=_0x13cd6b['getIntersection'](_0x3d6d19['getFirstRange']());null!==_0x2fa07&&_0x3d6d19['_onDiscard']([_0x2fa07],null,_0x3d6d81);}}if(_0x13cd6b['detach'](),_0x13cd6b['isCollapsed']||'$graveyard'==_0x13cd6b['root']['rootName'])return null;let _0xa09519=null,_0x3810ba=_0x13cd6b['start'],_0x11b9ff=_0x13cd6b['end'];const _0x4bcc51=this['_findSuggestions'](_0x13cd6b,'deletion');for(const {suggestion:_0x5693e5,meta:_0x41d150}of _0x4bcc51){const _0x48b5f7=this['_model']['createRange'](_0x3810ba,_0x11b9ff);if(_0x41d150['isOwn']&&(this['_mergeNestedSuggestions']||!_0x41d150['containsRangeInObject']&&!_0x41d150['isInsideObject'])){if(_0x5693e5['isMultiRange']){if(!Lt(_0x5693e5,_0x3d6d81))continue;let _0x2751c2=!0x0;for(const _0x515215 of _0x5693e5['getRanges']()){if(_0x515215['containsRange'](_0x48b5f7,!0x0))return _0x5693e5;_0x48b5f7['containsRange'](_0x515215)||(_0x2751c2=!0x1);}_0x2751c2&&_0x5693e5['discard']();}else{const _0x1bfbd7=_0x5693e5['getFirstRange']();if(_0x1bfbd7['containsRange'](_0x48b5f7,!0x0))return _0x5693e5;if(!Lt(_0x5693e5,_0x3d6d81)){_0x48b5f7['containsRange'](_0x1bfbd7)?_0x5693e5['removeMarkers']():_0x1bfbd7['containsPosition'](_0x3810ba)?_0x3810ba=_0x1bfbd7['end']:_0x1bfbd7['containsPosition'](_0x11b9ff)&&(_0x11b9ff=_0x1bfbd7['start']);continue;}_0x3810ba=_0x3810ba['isBefore'](_0x1bfbd7['start'])?_0x3810ba:_0x1bfbd7['start'],_0x11b9ff=_0x11b9ff['isAfter'](_0x1bfbd7['end'])?_0x11b9ff:_0x1bfbd7['end'],_0x3d6d81=Object['assign']({},_0x5693e5['attributes']),_0xa09519?_0x1bfbd7['start']['isBefore'](_0xa09519['getFirstRange']()['start'])?(_0xa09519['removeMarkers'](),_0xa09519=_0x5693e5):_0x5693e5['removeMarkers']():_0xa09519=_0x5693e5;}}}if(_0xa09519)return this['_setSuggestionRange'](_0xa09519,this['_model']['createRange'](_0x3810ba,_0x11b9ff)),_0xa09519;{const _0x34d8e2=_0xa3dac7(),_0x4ee0d5=this['_model']['createRange'](_0x3810ba,_0x11b9ff),_0x4f0703=_0xce9b81['id'],_0x4831d4=_0x4cccfb?'deletion:'+_0x4cccfb:'deletion',_0x5337b2=this['_setSuggestionData']({'id':_0x34d8e2,'type':_0x4831d4,'createdAt':new Date(),'authorId':_0x4f0703,'attributes':_0x3d6d81});return this['_addSuggestionMarker'](_0x4831d4,_0x34d8e2,_0x4f0703,_0x4ee0d5),_0x5337b2;}}['markMultiRangeDeletion'](_0x168ab3,_0x173933='multi',_0x4dbfda={}){const _0x56b341=this['editor']['plugins']['get']('Users')['me'],_0x363b1=_0x168ab3['map'](_0xce979e=>new _0x216747(_0xce979e['start'],_0xce979e['end'])),_0x4720ca=new Set();for(const {suggestion:_0x3c2a33,meta:_0x5d4377}of this['_findSuggestions'](_0x363b1,'insertion'))_0x5d4377['isOwn']&&!_0x5d4377['isNextTo']&&_0x4720ca['add'](_0x3c2a33);for(const _0x1f61c4 of _0x4720ca)if(_0x1f61c4['isMultiRange']){const _0x28ea5e=_0x1f61c4['getRanges']();(!_0x1f61c4['attributes']||!_0x1f61c4['attributes']['skipNestingCheck'])&&(_0x28ea5e['every'](_0x1f8ddf=>_0x363b1['some'](_0x5147de=>_0x5147de['containsRange'](_0x1f8ddf,!0x0)))&&_0x1f61c4['discard']());if(_0x363b1['every'](_0x3dd6c0=>_0x28ea5e['some'](_0x5efa36=>_0x5efa36['containsRange'](_0x3dd6c0,!0x0)))){const _0xe49272=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x173933,'accept');return this['forceDefaultExecution'](()=>_0xe49272(_0x168ab3,null,_0x4dbfda)),null;}}else{const _0x202b11=_0x1f61c4['getFirstRange']();_0x363b1['some'](_0x3a5e0f=>_0x3a5e0f['containsRange'](_0x202b11,!0x0))&&_0x1f61c4['discard']();if(_0x363b1['every'](_0x36608a=>_0x202b11['containsRange'](_0x36608a,!0x0))){const _0x7bbf23=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x173933,'accept');return this['forceDefaultExecution'](()=>_0x7bbf23(_0x363b1,null,_0x4dbfda)),null;}}const _0x304013=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x173933,'join');let _0x4dcc6a=null;for(const _0x5a71bb of this['getSuggestions']())if(_0x5a71bb['author']['id']==_0x56b341['id']&&_0x5a71bb['isInContent']&&'deletion'==_0x5a71bb['type']&&_0x5a71bb['subType']==_0x173933&&Lt(_0x5a71bb,_0x4dbfda)&&(_0x304013(_0x5a71bb['getRanges'](),_0x363b1)||_0x304013(_0x363b1,_0x5a71bb['getRanges']()))){if(_0x4dcc6a){if(_0x5a71bb['commentThread']&&_0x5a71bb['commentThread']['length'])continue;for(const _0x109a00 of _0x5a71bb['getRanges']())_0x4dcc6a['isIntersectingWithRange'](_0x109a00)||_0x4dcc6a['addRange'](_0x109a00);_0x5a71bb['removeMarkers']();}else{_0x4dcc6a=_0x5a71bb;for(const _0x19e199 of _0x363b1)_0x5a71bb['isIntersectingWithRange'](_0x19e199)||_0x5a71bb['addRange'](_0x19e199);}}if(_0x4dcc6a)return _0x4dcc6a;_0x4720ca['clear']();for(const {suggestion:_0x440311,meta:_0x3714a9}of this['_findSuggestions'](_0x363b1,'deletion'))_0x3714a9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3714a9['containsRangeInObject']&&!_0x3714a9['isInsideObject'])&&Lt(_0x440311,_0x4dbfda)&&_0x4720ca['add'](_0x440311);for(const _0x1db57f of _0x4720ca){const _0x5ccec4=_0x1db57f['getRanges']();if(!_0x4dbfda||!_0x4dbfda['skipNestingCheck']){if(_0x363b1['every'](_0x586d6a=>_0x5ccec4['some'](_0x142c81=>_0x142c81['containsRange'](_0x586d6a,!0x0))))return _0x1db57f;}(!_0x1db57f['attributes']||!_0x1db57f['attributes']['skipNestingCheck'])&&(_0x5ccec4['every'](_0x34574a=>_0x363b1['some'](_0x4136d0=>_0x4136d0['containsRange'](_0x34574a,!0x0)))&&_0x1db57f['discard']());}const _0x1d90fe=_0xa3dac7(),_0x9d5f88=_0x56b341['id'],_0x21f00c='deletion:'+_0x173933,_0x4962d0=this['_setSuggestionData']({'id':_0x1d90fe,'type':_0x21f00c,'createdAt':new Date(),'authorId':_0x9d5f88,'attributes':_0x4dbfda});for(const _0x356316 of _0x363b1)_0x356316['detach'](),_0x356316['isCollapsed']||'$graveyard'==_0x356316['root']['rootName']||this['_addSuggestionMarker'](_0x21f00c,_0x1d90fe,_0x9d5f88,_0x356316,u['getMultiRangeId']());return _0x4962d0;}['markAttributeChange'](_0xa35dac,_0x134f98,_0xa7792d,_0x50f58e,_0x8ef4dc){if(_0xa35dac['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x253276=this['editor']['plugins']['get']('Users')['me']['id'],_0x145368=Array['from'](this['_suggestions']['values']())['filter'](_0x5d9392=>'attribute'==_0x5d9392['type']&&_0x5d9392['data']['key']==_0x134f98&&_0x5d9392['isIntersectingWithRange'](_0xa35dac));if('default'===this['_trackFormatChanges']){const _0x14ecc7=this['_findSuggestions'](_0xa35dac,'insertion')['filter'](({meta:_0xcd137a})=>_0xcd137a['isOwn']&&!_0xcd137a['isInsideObject']&&!_0xcd137a['isNextTo'])['map'](({suggestion:_0x3fa238})=>_0x3fa238);_0x145368['unshift'](..._0x14ecc7);}const _0xced14b=new Map([[_0xa35dac,_0xa7792d]]);for(const _0xc9d0cd of _0x145368){const _0x81a23='attribute'==_0xc9d0cd['type']?_0xc9d0cd['data']['oldValue']:void 0x0,_0x3b8414=_0xc9d0cd['getFirstRange'](),_0xd8f4a0=Array['from'](_0xced14b['keys']())['find'](_0x5e4893=>_0x5e4893['isIntersecting'](_0x3b8414));if(!_0xd8f4a0)continue;const _0x51ffd0=_0xd8f4a0['getDifference'](_0x3b8414);this['_isBlockAttribute'](_0x134f98)&&'insertion'==_0xc9d0cd['type']&&0x0!=_0x51ffd0['length']||(_0xced14b['delete'](_0xd8f4a0),_0x51ffd0['forEach'](_0x50a950=>{_0xced14b['set'](_0x50a950,_0xa7792d);}),'insertion'!=_0xc9d0cd['type']&&_0x81a23!=_0x50f58e&&_0xced14b['set'](_0xd8f4a0['getIntersection'](_0x3b8414),_0x81a23));}const _0x37a0a0=[];for(const [_0x512e5b,_0xaba624]of _0xced14b){const _0x32ab8e=_0xa3dac7(),_0x2e0dba={'key':_0x134f98,'oldValue':_0xaba624,'newValue':_0x50f58e};_0x134f98['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x134f98});const _0x25f7ba=('attribute:'+(_0x134f98+'|'+Vt({'newValue':_0x50f58e})))['substring'](0x0,0x3c),_0x3d21ac=this['_setSuggestionData']({'id':_0x32ab8e,'type':_0x25f7ba,'data':_0x2e0dba,'createdAt':new Date(),'authorId':_0x253276,'attributes':_0x8ef4dc});_0x37a0a0['push'](_0x3d21ac),this['_addSuggestionMarker'](_0x25f7ba,_0x32ab8e,_0x253276,_0x512e5b);}return _0x37a0a0;}['enableDefaultAttributesIntegration'](_0x2f60b1){this['enableCommand'](_0x2f60b1,(_0x154f8f,..._0x21a5e8)=>{this['_recordAttributeChanges'](()=>{_0x154f8f(..._0x21a5e8);});});}['registerBlockAttribute'](_0x52783f){this['_blockAttributeKeys']['add'](_0x52783f);}['registerInlineAttribute'](_0x395d7a){this['_inlineAttributeKeys']['add'](_0x395d7a);}['_getAttributeKey'](_0x554699){return'attribute'==_0x554699['type']?_0x554699['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4f28ad,_0x2ce820){const _0x68d96c=_0x4f28ad['getFirstMarker']();this['_model']['change'](_0x4899cc=>{_0x4899cc['updateMarker'](_0x68d96c,{'range':_0x2ce820});});}['_addThreadToSuggestion'](_0x17a136){const _0x606310=_0x17a136['id'],_0x21bba7=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x606310)||this['_commentsRepository']['addCommentThread']({'channelId':_0x21bba7,'threadId':_0x606310,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3b6428=this['_commentsRepository']['getCommentThread'](_0x606310);_0x3b6428['unbind']('isRemovable'),_0x3b6428['isRemovable']=!0x1,_0x17a136['commentThread']=_0x3b6428;}['_checkSuggestionCorrectness'](_0x4b6395,_0x3e07c7,_0xede255,_0x13850c){if(_0x4b6395['type']!=_0x3e07c7||_0x4b6395['subType']!=_0xede255||_0x4b6395['creator']['id']!=_0x13850c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x50d316('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2dce58,_0x553464){const _0x359594=_0x2dce58['getFirstRange']();if(_0x553464['isEqual'](_0x359594))_0x2dce58['removeMarkers']();else{if(_0x359594['containsRange'](_0x553464)){const _0x30a8bb=this['_model']['createPositionAt'](_0x553464['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2dce58,this['_model']['createRange'](_0x359594['start'],_0x30a8bb));const _0x4e97d1=_0xa3dac7(),_0x7a2e35=_0x2dce58['creator']['id'],_0x11926b=_0x2dce58['type']+':'+_0x2dce58['subType'];this['_setSuggestionData']({'id':_0x4e97d1,'type':_0x11926b,'createdAt':new Date(),'authorId':_0x7a2e35,'data':_0x2dce58['data'],'attributes':_0x2dce58['attributes']});const _0x1cac8a=this['_model']['createPositionAt'](_0x553464['end']['parent'],'after'),_0x20579f=this['_model']['createRange'](_0x1cac8a,_0x359594['end']);this['_addSuggestionMarker'](_0x11926b,_0x4e97d1,_0x7a2e35,_0x20579f);}else{if(_0x359594['containsPosition'](_0x553464['start'])){const _0x4cdcba=this['_model']['createPositionAt'](_0x553464['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2dce58,this['_model']['createRange'](_0x359594['start'],_0x4cdcba));}else{const _0x364f43=this['_model']['createPositionAt'](_0x553464['end']['parent'],'after');this['_setSuggestionRange'](_0x2dce58,this['_model']['createRange'](_0x364f43,_0x359594['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x28aef2){for(const {suggestion:_0x57d5fe,meta:_0x4ff145}of this['_findSuggestions'](_0x28aef2,'insertion')){if(!_0x4ff145['isOwn'])continue;const _0x86a27e=_0x57d5fe['getRanges']();for(const _0x6143ba of _0x86a27e)if(!_0x28aef2['getDifference'](_0x6143ba)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x257660){const _0x76d479=this['editor']['plugins']['get']('Users')['getUser'](_0x257660);if(!_0x76d479)throw new _0x50d316('track-changes-user-not-found',this);return _0x76d479;}['_getExternalAuthor'](_0x117201){const _0x1331a2=this['editor']['plugins']['get']('Users'),_0x174731=_0x1e437b('external:'+_0x117201),_0x1c754f=_0x1331a2['getUser'](_0x174731);return _0x1c754f||_0x1331a2['addUser']({'id':_0x174731,'name':_0x117201});}['_createSuggestion'](_0x1cb0d3,_0x515e0e,_0xc8842,_0x4cc50a,_0x11aa77){const _0x19d10d=this['_getAuthorFromId'](_0x4cc50a),_0x386eed=this['_suggestionFactory']['buildSuggestion'](_0x1cb0d3,_0x515e0e,_0xc8842,_0x19d10d,_0x11aa77,_0x48f616=>{this['_updateSuggestionData'](_0xc8842,{'attributes':_0x48f616});const _0x3347fb=this['getSuggestion'](_0xc8842);this['_joinWithAdjacentSuggestions'](new Set([_0x3347fb])),this['_refreshSuggestionsChain'](new Set([_0x3347fb]));});return this['listenTo'](_0x386eed,'accept',()=>{this['_updateSuggestionData'](_0xc8842,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x386eed,'discard',()=>{this['_updateSuggestionData'](_0xc8842,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xc8842,_0x386eed),this['_suggestionState']['set'](_0x386eed,'notReady'),_0x386eed;}['_splitMarkerName'](_0x5be535){const _0x2946d7=_0x5be535['split'](':');return{'group':_0x2946d7[0x0],'type':_0x2946d7[0x1],'subType':_0x2946d7['length']>=0x5?_0x2946d7[0x2]:null,'id':_0x2946d7['length']<0x5?_0x2946d7[0x2]:_0x2946d7[0x3],'authorId':_0x2946d7['length']<0x5?_0x2946d7[0x3]:_0x2946d7[0x4],'markerCount':0x6==_0x2946d7['length']?_0x2946d7[0x5]:null};}['_breakSuggestionMarker'](_0x2c0043,_0x4a5d4b,_0x555382){const _0xeae53=_0x2c0043['getFirstRange'](),_0x46b26f=_0xeae53['start'],_0x2f11e0=_0xeae53['end'];this['_setSuggestionRange'](_0x2c0043,this['_model']['createRange'](_0x46b26f,_0x4a5d4b));const _0x5b4da4=_0xa3dac7(),_0xbbef2b=_0x2c0043['creator']['id'],_0x5a4de5=_0x2c0043['type']+(_0x2c0043['subType']?':'+_0x2c0043['subType']:'');this['_setSuggestionData']({'id':_0x5b4da4,'type':_0x5a4de5,'createdAt':new Date(),'authorId':_0xbbef2b,'originalSuggestionId':_0x2c0043['id'],'attributes':_0x2c0043['attributes'],'data':_0x2c0043['data']});const _0x254c1c=this['_getAttributeKey'](_0x2c0043);('formatBlock'==_0x2c0043['type']||_0x254c1c&&this['_isBlockAttribute'](_0x254c1c))&&(_0x555382=this['_model']['createPositionBefore'](_0x555382['parent'])),this['_addSuggestionMarker'](_0x5a4de5,_0x5b4da4,_0xbbef2b,this['_model']['createRange'](_0x555382,_0x2f11e0));}['_findSuggestions'](_0x2f5af2,_0x5780ec=null){const _0x374354=[],_0x212510=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2f5af2)||(_0x2f5af2=[_0x2f5af2]);for(const _0x427f64 of this['getSuggestions']()){if(!_0x427f64['isInContent'])continue;if(_0x5780ec&&_0x427f64['type']!=_0x5780ec)continue;let _0x483395=!0x1;for(const _0xad3b20 of _0x427f64['getRanges']()){for(const _0x34b7b6 of _0x2f5af2){const _0x38b309=_0x34b7b6['start']['isEqual'](_0xad3b20['end'])||_0x34b7b6['end']['isEqual'](_0xad3b20['start']);if(_0x38b309||_0x34b7b6['getIntersection'](_0xad3b20)){const _0x251b4f=_0x34b7b6['containsRange'](_0xad3b20)&&Rt(this['_model']['schema'],_0xad3b20['start'],_0x34b7b6),_0x4b60fe=_0xad3b20['containsRange'](_0x34b7b6)&&Rt(this['_model']['schema'],_0x34b7b6['start'],_0xad3b20);_0x374354['push']({'suggestion':_0x427f64,'meta':{'isOwn':_0x212510==_0x427f64['author'],'isNextTo':_0x38b309,'isInsideObject':_0x251b4f,'containsRangeInObject':_0x4b60fe}}),_0x483395=!0x0;break;}}if(_0x483395)break;}}return _0x374354;}['_addSuggestionMarker'](_0x484f55,_0x41f8b7,_0x258eb1,_0x4e1cf6,_0x294569){this['_model']['change'](_0x185c9a=>{let _0x3086a1='suggestion:'+_0x484f55+':'+_0x41f8b7+':'+_0x258eb1;_0x294569&&(_0x3086a1=_0x3086a1+':'+_0x294569),_0x185c9a['addMarker'](_0x3086a1,{'range':_0x4e1cf6,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4f5cfb){const _0x40fb2e=_0x4f5cfb['previous'],_0x15ba39=_0x4f5cfb['next'];_0x4f5cfb['previous']=null,_0x4f5cfb['next']=null,null!=_0x40fb2e&&_0x40fb2e['next']==_0x4f5cfb&&(_0x40fb2e['next']=_0x15ba39),null!=_0x15ba39&&_0x15ba39['previous']==_0x4f5cfb&&(_0x15ba39['previous']=_0x40fb2e),'ready'==this['_suggestionState']['get'](_0x4f5cfb)&&(this['_suggestionState']['set'](_0x4f5cfb,'removed'),this['fire']('suggestionUnloaded',_0x4f5cfb,_0x40fb2e,_0x15ba39));}['_setSuggestionData'](_0x41a3f0){const _0x3b62ea=_0x41a3f0['id'],_0x5a7aa4=this['addSuggestionData'](_0x41a3f0);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4c1ca5=this['editor']['plugins']['get']('PendingActions'),_0x533f31=_0x5a7aa4['hasComments'],_0x20673b=_0x5a7aa4['subType']?_0x5a7aa4['type']+':'+_0x5a7aa4['subType']:_0x5a7aa4['type'],_0x1f7d24=this['editor']['locale'],_0x430f46=_0x4c1ca5['add'](o(_0x1f7d24,'PENDING_ACTION_SUGGESTION')),_0x286561={'id':_0x3b62ea,'type':_0x20673b,'hasComments':_0x533f31,'data':_0x41a3f0['data']||null,'originalSuggestionId':_0x41a3f0['originalSuggestionId']||null,'attributes':_0x5a7aa4['attributes']};this['_adapter']['addSuggestion'](_0x286561)['then'](_0x46fdbe=>{_0x5a7aa4['_saved']=!0x0,_0x4c1ca5['remove'](_0x430f46),_0x46fdbe&&_0x46fdbe['createdAt']&&(this['_suggestions']['get'](_0x3b62ea)['createdAt']=_0x46fdbe['createdAt']);})['catch'](_0x15858e=>{throw _0x2b9abd('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5a7aa4['discard']();}),_0x5a7aa4['stopListening'](),this['_suggestions']['delete'](_0x5a7aa4['id']),this['_suggestionState']['delete'](_0x5a7aa4),_0x15858e;});}return _0x5a7aa4;}['_isBlockAttribute'](_0x4ef8c5){return this['_blockAttributeKeys']['has'](_0x4ef8c5);}['_updateSuggestionData'](_0x4001a7,_0x375c32){const _0xb49cbb=this['editor']['plugins']['get']('PendingActions'),_0xa18fe4=this['getSuggestion'](_0x4001a7);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xa18fe4['_saved']){const _0x1e28de=_0xb49cbb['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4001a7,_0x375c32)['then'](()=>{_0xb49cbb['remove'](_0x1e28de);});}else _0xa18fe4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4001a7,_0x375c32);});}}['_getSuggestionData'](_0x2d6e01){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x50d316('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2d6e01);}['_handleNewSuggestionMarker'](_0x19de7a){const {id:_0x35cd25,type:_0x1837f2,subType:_0x254645,authorId:_0x3d6360}=this['_splitMarkerName'](_0x19de7a),_0x451ccb=this['_suggestions']['get'](_0x35cd25)||this['_createSuggestion'](_0x1837f2,_0x254645,_0x35cd25,_0x3d6360,{});switch(this['_checkSuggestionCorrectness'](_0x451ccb,_0x1837f2,_0x254645,_0x3d6360),this['_suggestionState']['get'](_0x451ccb)){case'notReady':this['_getSuggestionData'](_0x35cd25)['then'](_0x3d4a34=>{let _0x9e2dec=Promise['resolve']();_0x3d4a34['hasComments']&&(_0x9e2dec=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x35cd25})),_0x9e2dec['then'](()=>{this['addSuggestionData'](_0x3d4a34)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x451ccb,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x35cd25,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x451ccb,'ready'),this['fire']('suggestionLoaded',_0x451ccb);break;case'ready':this['fire']('suggestionChanged',_0x451ccb);}return _0x451ccb['addMarkerName'](_0x19de7a),_0x451ccb;}['_refreshSuggestionsChain'](_0x38a80a){const _0x25a46c=Array['from'](_0x38a80a),_0x585fc0=_0x25a46c['filter'](_0xe22a2b=>'attribute'==_0xe22a2b['type']);this['_refreshAttributeSuggestionsChain'](_0x585fc0);const _0x20cc81=_0x25a46c['filter'](_0x30b42c=>!_0x30b42c['isMultiRange']&&'attribute'!=_0x30b42c['type']),_0x2889fa=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x352cbb=>!_0x352cbb['isMultiRange']&&'attribute'!=_0x352cbb['type']),_0x2c9a1c=_0x2889fa['filter'](_0x2f799e=>!_0x38a80a['has'](_0x2f799e)),_0x5651bc=new Map(_0x2889fa['map'](_0x4acdf5=>[_0x4acdf5,this['_suggestionFactory']['getSuggestionCallback'](_0x4acdf5['type'],_0x4acdf5['subType'],'chain')])),_0x1ef37a=new Map(_0x2889fa['map'](_0x20a5dc=>[_0x20a5dc,_0x20a5dc['getFirstRange']()])),_0x12bd52=new Set(),_0x3b5c4e=new Set();for(let _0x4f945e=0x0;_0x4f945e<_0x20cc81['length'];_0x4f945e++)_0x1a219b(_0x20cc81[_0x4f945e],_0x20cc81,_0x4f945e+0x1);for(let _0x22d867=0x0;_0x22d867<_0x20cc81['length'];_0x22d867++)_0x1a219b(_0x20cc81[_0x22d867],_0x2c9a1c,0x0);const _0x3b7291=new Set();for(let _0x2c2ba9=0x0;_0x2c2ba9<_0x20cc81['length'];_0x2c2ba9++){const _0x157a51=_0x20cc81[_0x2c2ba9];!_0x3b5c4e['has'](_0x157a51)&&_0x157a51['previous']&&(_0x3b7291['add'](_0x157a51['previous']),_0x157a51['previous']['next']===_0x157a51&&(_0x157a51['previous']['next']=null),_0x157a51['previous']=null),!_0x12bd52['has'](_0x157a51)&&_0x157a51['next']&&(_0x3b7291['add'](_0x157a51['next']),_0x157a51['next']['previous']===_0x157a51&&(_0x157a51['next']['previous']=null),_0x157a51['next']=null);}function _0x1a219b(_0x109214,_0x11dd68,_0x40ff17){for(let _0x3cba03=_0x40ff17;_0x3cba03<_0x11dd68['length'];_0x3cba03++){const _0x4358f4=_0x314ebd(_0x109214,_0x11dd68[_0x3cba03]);_0x4358f4&&(_0x4358f4[0x0]['next']=_0x4358f4[0x1],_0x4358f4[0x1]['previous']=_0x4358f4[0x0],_0x12bd52['add'](_0x4358f4[0x0]),_0x3b5c4e['add'](_0x4358f4[0x1]));}}function _0x314ebd(_0x209237,_0x11dbba){if(_0x209237['author']['id']!==_0x11dbba['author']['id'])return null;const _0x176ab9=_0x5651bc['get'](_0x209237)(_0x209237,_0x11dbba,_0x1ef37a['get'](_0x209237),_0x1ef37a['get'](_0x11dbba));if(!_0x176ab9)return null;return _0x5651bc['get'](_0x11dbba)(_0x209237,_0x11dbba,_0x1ef37a['get'](_0x209237),_0x1ef37a['get'](_0x11dbba))?_0x176ab9[0x1]['commentThread']&&_0x176ab9[0x1]['commentThread']['length']?null:_0x176ab9:null;}_0x3b7291['size']&&this['_refreshSuggestionsChain'](_0x3b7291);}['_refreshAttributeSuggestionsChain'](_0x3a9ba3){if(0x0==_0x3a9ba3['length'])return;const _0x26c933=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34013e=>'attribute'==_0x34013e['type']&&_0x34013e['_isDataLoaded']),_0xbf41f5=[],_0x5d2f17=new Map();for(const _0x346ba5 of _0x26c933){const _0xccb19=_0x1e437b(_0x346ba5['attributes']);_0x5d2f17['has'](_0xccb19)||(_0x5d2f17['set'](_0xccb19,_0xbf41f5['length']),_0xbf41f5['push']([]));const _0x482f59=_0x5d2f17['get'](_0xccb19);_0xbf41f5[_0x482f59]['push'](_0x346ba5);}!(function(){_0xbf41f5['sort']((_0x41b4c5,_0x53cf51)=>{const _0x27c26c=_0x41b4c5[0x0]['createdAt'],_0x6c3e77=_0x53cf51[0x0]['createdAt'];return _0x27c26c==_0x6c3e77?_0x41b4c5[0x0]['attributes']['groupId']<_0x53cf51[0x0]['attributes']['groupId']?-0x1:0x1:_0x27c26c<_0x6c3e77?-0x1:0x1;});for(const _0x45020b of _0xbf41f5)_0x45020b['sort']((_0x4b7855,_0x5a7a27)=>_0x4b7855['id']<_0x5a7a27['id']?-0x1:0x1);}());for(let _0x325e78=0x0;_0x325e78<_0xbf41f5['length'];_0x325e78++){if(0x0==_0xbf41f5[_0x325e78]['length'])continue;const _0x1759dd=[];for(let _0x1f2ac7=_0x325e78+0x1;_0x1f2ac7<_0xbf41f5['length'];_0x1f2ac7++)0x0!=_0xbf41f5[_0x1f2ac7]['length']&&_0xcc4041(_0xbf41f5[_0x325e78],_0xbf41f5[_0x1f2ac7])&&_0x1759dd['push'](_0x1f2ac7);for(const _0x114d51 of _0x1759dd)_0xbf41f5[_0x325e78]=_0xbf41f5[_0x325e78]['concat'](_0xbf41f5[_0x114d51]),_0xbf41f5[_0x114d51]=[];}for(const _0x3220f7 of _0xbf41f5)for(let _0x16a340=0x0;_0x16a340<_0x3220f7['length'];_0x16a340++)_0x3220f7[_0x16a340]['next']=_0x3220f7[_0x16a340+0x1]||null;for(const _0x33d863 of _0xbf41f5)for(let _0x35e0bb=0x0;_0x35e0bb<_0x33d863['length'];_0x35e0bb++)_0x33d863[_0x35e0bb]['previous']=_0x33d863[_0x35e0bb-0x1]||null;function _0xcc4041(_0x37921e,_0x352f87){if(_0x37921e[0x0]['attributes']['groupId']!==_0x352f87[0x0]['attributes']['groupId']&&_0x37921e[0x0]['author']!==_0x352f87[0x0]['author'])return!0x1;if(!function(_0x13a227,_0x56b213){if(!_0x13a227['hasComments']&&!_0x56b213['hasComments'])return!0x0;if(_0x13a227['hasComments']&&_0x56b213['hasComments'])return!0x1;if(_0x13a227['hasComments']&&_0x56b213['createdAt']<_0x13a227['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x56b213['hasComments']&&_0x13a227['createdAt']<_0x56b213['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x37921e[0x0],_0x352f87[0x0]))return!0x1;const _0x1c2a39=Bt(_0x37921e[0x0]['attributes'],'groupId'),_0x544ce9=Bt(_0x352f87[0x0]['attributes'],'groupId');if(!_0x1f7f6a(_0x1c2a39,_0x544ce9))return!0x1;return!!_0x37921e['every'](_0x1b1a6e=>_0x352f87['some'](_0x121ce7=>_0x1b1a6e['getFirstRange']()['isEqual'](_0x121ce7['getFirstRange']())))&&_0x352f87['every'](_0x38e836=>_0x37921e['some'](_0x12b665=>_0x38e836['getFirstRange']()['isEqual'](_0x12b665['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x349ec1){const _0x1f8ae6=Array['from'](_0x349ec1),_0x92583e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3a8c8d=_0x92583e['filter'](_0x2afd00=>!_0x349ec1['has'](_0x2afd00)),_0x920c2e=new Map(_0x1f8ae6['map'](_0x230555=>[_0x230555,this['_suggestionFactory']['getSuggestionCallback'](_0x230555['type'],_0x230555['subType'],'join')])),_0x38c7cb=new Map(_0x92583e['map'](_0x37e9b9=>[_0x37e9b9,_0x37e9b9['getRanges']()]));for(let _0xff9421=0x0;_0xff9421<_0x1f8ae6['length'];_0xff9421++){if(_0xccced5(this,_0x1f8ae6[_0xff9421],_0x1f8ae6,_0xff9421+0x1))return!0x0;}for(let _0x55c8cb=0x0;_0x55c8cb<_0x1f8ae6['length'];_0x55c8cb++){if(_0xccced5(this,_0x1f8ae6[_0x55c8cb],_0x3a8c8d,0x0))return!0x0;}return!0x1;function _0xccced5(_0x493d4e,_0x37b933,_0x34c6d5,_0x2d305c){for(let _0x3e2daa=_0x2d305c;_0x3e2daa<_0x34c6d5['length'];_0x3e2daa++){const _0x132967=_0x34c6d5[_0x3e2daa];if(_0x132967['type']!==_0x37b933['type']||_0x132967['author']['id']!==_0x37b933['author']['id']||_0x132967['subType']!==_0x37b933['subType'])continue;if(!Pt(_0x37b933,_0x132967,['groupId']))continue;if('attribute'==_0x37b933['type']&&_0x37b933['data']['oldValue']!=_0x132967['data']['oldValue'])continue;if('attribute'==_0x37b933['type']&&_0x493d4e['_isBlockAttribute'](_0x37b933['data']['key']))continue;if('formatBlock'==_0x37b933['type']){const _0xda8d19=_0x493d4e['editor']['model'],_0x37fe49=_0x37b933['getContainedElement']();if(_0x37fe49&&(_0xda8d19['schema']['isObject'](_0x37fe49)||_0xda8d19['schema']['isLimit'](_0x37fe49)))continue;}const _0x6adf8c=_0x920c2e['get'](_0x37b933),_0x3e43c0=_0x38c7cb['get'](_0x37b933),_0x241af2=_0x38c7cb['get'](_0x132967),_0x58f151=_0x37b933['commentThread']&&_0x37b933['commentThread']['length'],_0x22502b=_0x132967['commentThread']&&_0x132967['commentThread']['length'];if(!_0x58f151&&_0x6adf8c(_0x241af2,_0x3e43c0))return _0x493d4e['_joinSuggestions'](_0x132967,_0x37b933),_0x38c7cb['delete'](_0x37b933),!0x0;if(!_0x22502b&&_0x6adf8c(_0x3e43c0,_0x241af2))return _0x493d4e['_joinSuggestions'](_0x37b933,_0x132967),_0x38c7cb['delete'](_0x132967),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3e8d16,_0x306bc3){if(_0x3e8d16['isMultiRange']){for(const _0x31a079 of _0x306bc3['getRanges']())_0x3e8d16['addRange'](_0x31a079);}else{const _0x3b90d2=_0x306bc3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3e8d16,this['_model']['createRange'](_0x3e8d16['getFirstRange']()['start'],_0x3b90d2));}_0x306bc3['removeMarkers']();}['_getMarkerAnnouncementText'](_0x531eae,_0x57846d){const _0x421f58=_0x531eae['startsWith']('format')||_0x531eae['startsWith']('attribute')?'FORMATTING':_0x531eae['toUpperCase']();return o(this['editor']['locale'],_0x57846d+'_'+_0x421f58+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x3a049=this['editor'];if(!_0x3a049['ui'])return;const {ariaLiveAnnouncer:_0x34c57}=_0x3a049['ui'];_0x3cad82(this['_model'],({left:_0x218c4f,entered:_0xef9ee4})=>{for(const _0x48d1db of _0x218c4f){const {group:_0x3eee6d,type:_0x3e494d}=this['_splitMarkerName'](_0x48d1db['name']);if('suggestion'===_0x3eee6d){_0x34c57['announce'](this['_getMarkerAnnouncementText'](_0x3e494d,'LEAVE'));break;}}for(const _0x4a3519 of _0xef9ee4){const {group:_0x36b20c,type:_0x5fa3ed}=this['_splitMarkerName'](_0x4a3519['name']);if('suggestion'===_0x36b20c){_0x34c57['announce'](this['_getMarkerAnnouncementText'](_0x5fa3ed,'ENTER'));break;}}});}['_processAttributeChanges'](_0x39ad37){if(this['_recordAttributeSuggestions'])return!0x1;const _0x330c2f=this['editor'],_0x52d83d=_0x330c2f['model']['document']['differ']['getChanges']();if(0x0==_0x52d83d['length'])return!0x1;const _0x36c79a=[],_0x572fac=_0x52d83d['filter'](_0x407acf=>'attribute'==_0x407acf['type']),_0x51ef66=_0x52d83d['filter'](_0xa80dc0=>'insert'==_0xa80dc0['type']&&'$text'!=_0xa80dc0['name']),_0x28303b=_0x52d83d['filter'](_0x6d796b=>'remove'==_0x6d796b['type']&&'$text'!=_0x6d796b['name']);for(const _0x4f0413 of _0x572fac)_0x36c79a['push']({'key':_0x4f0413['attributeKey'],'newValue':_0x4f0413['attributeNewValue'],'oldValue':_0x4f0413['attributeOldValue'],'range':Ot(_0x4f0413['range'],_0x330c2f['model'])});for(const _0x4f7eef of _0x51ef66){const _0x311f4b=_0x28303b['find'](_0x32bd04=>_0x32bd04['position']['isEqual'](_0x4f7eef['position']));_0x311f4b&&_0x36c79a['push']({'key':m,'newValue':_0x4f7eef['name'],'oldValue':_0x311f4b['name'],'range':_0x330c2f['model']['createRangeOn'](_0x4f7eef['position']['nodeAfter'])});}return 0x0!=_0x36c79a['length']&&this['_reduceExistingSuggestions'](_0x39ad37,_0x36c79a);}['_processAttributeSuggestions'](_0x25098f){let _0x589940=!0x1;const _0x76683d=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x128bfd=>_0x128bfd['data']['newRange']&&_0x128bfd['name']['startsWith']('suggestion:attribute:'));for(const _0xa9b84b of _0x76683d){const {subType:_0xf43bb3,id:_0x46a2bb}=this['_splitMarkerName'](_0xa9b84b['name']),_0x3fb299=_0xf43bb3['split']('|')[0x0];for(const _0x1f05e6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1f05e6['id']!=_0x46a2bb&&'attribute'==_0x1f05e6['type']&&_0x1f05e6['data']&&_0x1f05e6['data']['key']==_0x3fb299&&_0x1f05e6['getFirstRange']()['isIntersecting'](_0xa9b84b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1f05e6,_0xa9b84b['data']['newRange'],_0x25098f),_0x589940=!0x0);}return _0x589940;}['_recordAttributeChanges'](_0x4c1985){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x4c1985();}['_isRegisteredAttribute'](_0x20c93c){const _0x37328b=this['_isBlockAttribute'](_0x20c93c),_0x4a0795=this['_inlineAttributeKeys']['has'](_0x20c93c);return _0x37328b||_0x4a0795;}['_reduceExistingSuggestions'](_0x5da769,_0x505a28){if(0x0==_0x505a28['length'])return!0x1;let _0x55bc14=!0x1;for(const _0x39788a of _0x505a28){const _0x573596=this['_findSuggestions'](_0x39788a['range'],'attribute')['filter'](_0x16a0bd=>!_0x16a0bd['meta']['isNextTo'])['map'](_0x1fd27b=>_0x1fd27b['suggestion']),_0x2e8d3d=_0x1e437b({'newValue':_0x39788a['newValue']});_0x573596['filter'](_0x3fd1fc=>{const [_0x139f2d,_0x5dc71d]=_0x3fd1fc['subType']['split']('|');return _0x139f2d==_0x39788a['key']&&_0x5dc71d!=_0x2e8d3d;})['forEach'](_0x35c6b7=>{this['_reduceSuggestionAttributeRange'](_0x35c6b7,_0x39788a['range'],_0x5da769),_0x55bc14=!0x0;});}return _0x55bc14;}['_reduceSuggestionAttributeRange'](_0x23532f,_0xebfa2e,_0x3bc8b9){const _0x526463=_0x23532f['getFirstRange']()['getDifference'](_0xebfa2e);0x0!==_0x526463['length']?0x1!==_0x526463['length']?this['_breakSuggestionMarker'](_0x23532f,_0xebfa2e['start'],_0xebfa2e['end']):this['_setSuggestionRange'](_0x23532f,_0x526463[0x0]):_0x3bc8b9['removeMarker'](_0x23532f['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1bbca8){this['_editor']=_0x1bbca8,this['_model']=_0x1bbca8['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x164b59,_0x583d38,_0x4276a6,_0x323906,_0x54b55a,_0x55d077){return new u(this['_model'],{'type':_0x164b59,'subType':_0x583d38,'id':_0x4276a6,'author':_0x323906,'creator':_0x323906,'attributes':_0x54b55a,'onAttributesChange':_0x55d077,'onAccept':(..._0x2b46dd)=>this['getSuggestionCallback'](_0x164b59,_0x583d38,'accept')(..._0x2b46dd),'onDiscard':(..._0x1f86a8)=>this['getSuggestionCallback'](_0x164b59,_0x583d38,'discard')(..._0x1f86a8)});}['registerCustomCallback'](_0x57fd08,_0x45e52b,_0x2c1de0,_0x334177){const _0x3384d5=_0x57fd08+':'+_0x45e52b+':'+_0x2c1de0;this['_customCallbacks']['set'](_0x3384d5,_0x334177);}['getSuggestionCallback'](_0x368e75,_0x468db5,_0x33fd7b){const _0x316ed3=_0x368e75+':'+_0x468db5+':'+_0x33fd7b;return this['_customCallbacks']['get'](_0x316ed3)||this['_defaultCallbacks']['get'](_0x368e75+':'+_0x33fd7b);}['_registerDefaultCallbacks'](){const _0x4d691c=()=>!0x1,_0x21e164=_0x3a0b54=>{_0x3a0b54['sort']((_0xcd964,_0x31a0ea)=>_0xcd964['start']['isBefore'](_0x31a0ea['start'])?0x1:-0x1),this['_model']['change'](_0x31bc06=>{for(const _0x527567 of _0x3a0b54){let _0x223d65;_0x223d65=_0x527567['end']['isAtEnd']&&_0x527567['end']['parent']==_0x527567['start']['nodeAfter']?_0x31bc06['createSelection'](_0x527567['start']['nodeAfter'],'on'):_0x31bc06['createSelection'](_0x527567),this['_model']['deleteContent'](_0x223d65,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2f0992=(_0x72fbaa,_0xc58fb2)=>{_0xc58fb2&&this['_model']['change'](_0x1de6ce=>{const {commandName:_0x246b5d,commandParams:_0x4e5a0b=[]}=_0xc58fb2,_0x2b8ada=_0x72fbaa['map'](_0x33d87c=>(Tt(_0x33d87c)&&(_0x33d87c=this['_model']['createRange'](_0x33d87c['end'])),_0x33d87c))['filter'](_0x30cf31=>'$graveyard'!==_0x30cf31['root']['rootName']);if(_0x2b8ada['length']<0x1)return;const _0x130928=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x455a7b=>_0x216747['fromRange'](_0x455a7b));_0x1de6ce['setSelection'](_0x2b8ada);for(const _0x245071 of this['_editor']['commands']['commands']())_0x245071['refresh']();_0x4e5a0b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x246b5d,..._0x4e5a0b);const _0x8aafe=_0x130928['filter'](_0x4c0c72=>'$graveyard'!=_0x4c0c72['root']['rootName']);_0x8aafe['length']>0x0&&_0x1de6ce['setSelection'](_0x8aafe);for(const _0x50e821 of _0x130928)_0x50e821['detach']();});},_0x2e60c0=(_0x1206ce,_0x331b7c)=>0x1==_0x1206ce['length']&&0x1==_0x331b7c['length']&&_0x1206ce[0x0]['end']['isEqual'](_0x331b7c[0x0]['start']),_0x25ea72=(_0x4a44ff,_0x3ed27c,_0x1c4d64,_0x5015ce)=>Ft(_0x4a44ff,_0x3ed27c,_0x1c4d64,_0x5015ce,this['_model'])?[_0x4a44ff,_0x3ed27c]:Ft(_0x3ed27c,_0x4a44ff,_0x5015ce,_0x1c4d64,this['_model'])?[_0x3ed27c,_0x4a44ff]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4d691c),this['_defaultCallbacks']['set']('insertion:discard',_0x21e164),this['_defaultCallbacks']['set']('insertion:join',_0x2e60c0),this['_defaultCallbacks']['set']('insertion:chain',_0x25ea72),this['_defaultCallbacks']['set']('deletion:accept',_0x21e164),this['_defaultCallbacks']['set']('deletion:discard',_0x4d691c),this['_defaultCallbacks']['set']('deletion:join',_0x2e60c0),this['_defaultCallbacks']['set']('deletion:chain',_0x25ea72),this['_defaultCallbacks']['set']('formatInline:accept',_0x2f0992),this['_defaultCallbacks']['set']('formatInline:discard',_0x4d691c),this['_defaultCallbacks']['set']('formatInline:join',_0x2e60c0),this['_defaultCallbacks']['set']('formatInline:chain',_0x4d691c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2f0992),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4d691c),this['_defaultCallbacks']['set']('formatBlock:join',_0x2e60c0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4d691c),this['_defaultCallbacks']['set']('attribute:accept',_0x4d691c),this['_defaultCallbacks']['set']('attribute:discard',(_0x5d0c52,_0x5625d5)=>{if(!_0x5625d5)return;const _0x480a11=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x41e8a2=>{if(_0x5625d5['key']==m)for(const _0x37c8b3 of _0x5d0c52){const _0x3ab14c=_0x37c8b3['start']['nodeAfter'],_0x5d1209=_0x5625d5['oldValue'];_0x41e8a2['rename'](_0x3ab14c,_0x5d1209);}else{if(_0x480a11['_isBlockAttribute'](_0x5625d5['key'])){for(const _0x114c44 of _0x5d0c52)void 0x0!==_0x5625d5['oldValue']?_0x41e8a2['setAttribute'](_0x5625d5['key'],_0x5625d5['oldValue'],_0x114c44['start']['nodeAfter']):_0x41e8a2['removeAttribute'](_0x5625d5['key'],_0x114c44['start']['nodeAfter']);}else{for(const _0x3d3cec of _0x5d0c52)_0x5625d5['oldValue']?_0x41e8a2['setAttribute'](_0x5625d5['key'],_0x5625d5['oldValue'],_0x3d3cec):_0x41e8a2['removeAttribute'](_0x5625d5['key'],_0x3d3cec);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2e60c0);}}function Rt(_0x263fbe,_0x3cdab8,_0x1520bd){for(const _0x592561 of _0x3cdab8['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x592561['root']==_0x592561)return!0x1;if(!_0x1520bd['containsItem'](_0x592561))return!0x1;if(_0x263fbe['isObject'](_0x592561)||_0x263fbe['isLimit'](_0x592561))return!0x0;}return!0x1;}function Tt(_0x241b0b){return _0x241b0b['end']['parent']==_0x241b0b['start']['nodeAfter']&&_0x241b0b['end']['isAtStart'];}function Et(_0x178d44,_0x401bd4,_0x5831b6,_0x5aad07){const _0x576f71=_0x453f34=>!_0x453f34['item']['is']('$textProxy')&&!_0x5aad07['isObject'](_0x453f34['item']),_0x5ea19b=_0x178d44['start']['getLastMatchingPosition'](_0x576f71),_0x4126ab=_0x178d44['end']['getLastMatchingPosition'](_0x576f71,{'direction':'backward'});return(!_0x178d44['start']['isEqual'](_0x5ea19b)||!_0x178d44['end']['isEqual'](_0x4126ab))&&(_0x5ea19b['isBefore'](_0x4126ab)?_0x5831b6['updateMarker'](_0x401bd4,{'range':_0x5831b6['createRange'](_0x5ea19b,_0x4126ab)}):_0x5831b6['removeMarker'](_0x401bd4),!0x0);}function Vt(_0x104871){return _0x1e437b(_0x104871);}function Ut(_0x57afec){const _0xe17a7f=_0x57afec['start']['nodeAfter'];return _0xe17a7f&&_0xe17a7f['is']('element');}function Ot(_0x261560,_0x3ceceb){return null==_0x261560['end']['nodeBefore']&&_0x261560['end']['parent']==_0x261560['start']['nodeAfter']?Gt(_0x261560['start']['nodeAfter'],_0x3ceceb):_0x261560;}function Gt(_0x54a2c6,_0xab0a4f){const _0xccd304=_0xab0a4f['schema']['isObject'](_0x54a2c6)||_0xab0a4f['schema']['isSelectable'](_0x54a2c6);return _0xab0a4f['createRange'](_0xab0a4f['createPositionAt'](_0x54a2c6,'before'),_0xccd304?_0xab0a4f['createPositionAfter'](_0x54a2c6):_0xab0a4f['createPositionAt'](_0x54a2c6,'end'));}function Ft(_0xd483e1,_0x54054c,_0x4e52e2,_0x4d5229,_0x4ccfff){if(!Pt(_0xd483e1,_0x54054c))return!0x1;if(_0x4e52e2['end']['isEqual'](_0x4d5229['start']))return!0x0;if(_0xd483e1['type']!=_0x54054c['type'])return!0x1;if(!_0x4e52e2['end']['isTouching'](_0x4d5229['start']))return!0x1;const _0x2ba1c3=_0x4ccfff['createRange'](_0x4e52e2['end'],_0x4d5229['start'])['getWalker']();for(const _0x56929f of _0x2ba1c3)if(['elementStart','elementEnd']['includes'](_0x56929f['type'])&&_0x4ccfff['schema']['isLimit'](_0x56929f['item']))return!0x1;return!0x0;}function Pt(_0x4b2c54,_0xf49168,_0x10bae7=[]){return!(!_0x4b2c54['_isDataLoaded']||!_0xf49168['_isDataLoaded'])&&_0x1f7f6a(Bt(_0x4b2c54['attributes'],_0x10bae7),Bt(_0xf49168['attributes'],_0x10bae7));}function Lt(_0x25adfc,_0x5db6e7){const _0x1fb30c=Ht(_0x25adfc['attributes']),_0x4eb874=Ht(_0x5db6e7);if(!_0x25adfc['_isDataLoaded'])return!0x1;for(const _0xa6ff38 of Object['keys'](_0x4eb874))if(!_0x1f7f6a(_0x1fb30c[_0xa6ff38],_0x4eb874[_0xa6ff38]))return!0x1;return!0x0;}function Ht(_0x28f446){const _0x1c9994=Object['assign']({},_0x28f446);return delete _0x1c9994['skipNestingCheck'],delete _0x1c9994['tablePasteChainId'],_0x1c9994;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x25d463(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x17c31,_0xde5904,_0x4ee6a7,_0x36cdb9){super(),this['model']=_0xde5904,this['view']=_0x4ee6a7,this['commentThreadController']=_0x36cdb9,this['_editor']=_0x17c31,this['_acceptCommand']=_0x17c31['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x17c31['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5c351c,_0x1a93d6)=>_0x5c351c||_0x1a93d6),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x109d45=>_0x109d45&&this['_editor']['model']['canEditAt'](_0xde5904['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x519121=>_0x519121&&this['_editor']['model']['canEditAt'](_0xde5904['getRanges']())),this['_pendingAction']=null,_0x4ee6a7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4ee6a7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4ee6a7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4ee6a7,'change:isDirty',()=>{_0x4ee6a7['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x3dba59=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3dba59);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x3759d1{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x194cf5,_0x59566a,_0x506935,_0xee7b49){super(_0x194cf5),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x59566a['authoredAt']),this['bind']('authoredAt')['to'](_0x59566a),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x59566a,this['_localUser']=_0x506935,this['_config']=_0xee7b49,_0xee7b49['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x31625d}=this['_config'];this['commentsListView']=new _0x31625d(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x145ce2=>_0x145ce2+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x17da75,_0x2e613e)=>_0x17da75||!!_0x2e613e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3a6f72}=this['_config'],_0x4fcdc4=new _0x3a6f72(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3263f9=_0x4fcdc4['commentInputView'];return _0x4fcdc4['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3263f9,'value',(_0x1c6189,_0x2da91b,_0xe8e632)=>!!_0xe8e632||_0x1c6189&&!_0x2da91b),_0x3263f9['on']('submit',(_0x2e4ac8,_0x2638cd)=>{this['fire']('addComment',_0x2638cd),_0x3263f9['editor']['setData']('');}),_0x3263f9['on']('cancel',()=>this['focus']()),_0x3263f9['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4fcdc4;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x2ddc9a,_0x5b1f47,_0x2e9da0,_0x4df9a4){super(_0x2ddc9a,_0x5b1f47,_0x2e9da0,_0x4df9a4),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5ddd40=>_0x5ddd40&&_0x5ddd40[0x0]?_0x5ddd40[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x291ff1,_0x2a7357)=>{let _0x305bc8='';for(const _0xd6f90 of _0x291ff1)_0x305bc8+='<p>'+ds(_0xd6f90['content'],_0xd6f90['color'])+'</p>';return _0x2a7357?_0x305bc8:_0x8d55fb(_0x305bc8,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x2ddc9a,'Accept\x20suggestion'),_0x1089ce['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x2ddc9a,'Discard\x20suggestion'),_0x1089ce['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x307e07(_0x2ddc9a,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2d6b21=this['bindTemplate'],_0x2d5b6e=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x2d6b21['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2d6b21['to']('authoredAt',_0xc0414f=>this['_config']['formatDateTime'](_0xc0414f))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x2d5b6e['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x5bef38={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x2d6b21['if']('isActive','ck-suggestion-wrapper--active'),_0x2d6b21['to']('type',_0x4b3e8c=>'ck-suggestion-'+_0x4b3e8c),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x2d5b6e}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x5bef38['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x5bef38;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0xdfaa31,_0x3ad73b,_0x29c42d)=>{this['_descriptionElement']['innerHTML']=_0x29c42d;});}['_createButton'](_0x195d9a,_0x7b3710,_0x3efe15,_0x9a7bc2,_0x56dba8){const _0x415c16=new _0x266fe3(this['locale']);return _0x415c16['set']({'label':_0x195d9a,'icon':_0x7b3710,'tooltip':!0x0,'tooltipPosition':_0x56dba8}),_0x415c16['extendTemplate']({'attributes':{'class':_0x3efe15}}),_0x415c16['on']('execute',()=>{this['fire'](_0x9a7bc2,this['_model']['id']);}),_0x415c16;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x18a9ec,_0x25a79){let _0x599393='';return _0x599393+=_0x18a9ec['split']('*')['map']((_0x5db915,_0x15e303)=>_0x15e303%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x5db915)+'</span>':us(_0x5db915))['join'](''),_0x25a79&&(_0x599393+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x25a79['value']+'\x22\x20title=\x22'+_0x25a79['title']+'\x22></span>'),_0x599393;}function us(_0x431c2c){const _0x28bb60=document['createElement']('span');return _0x28bb60['innerText']=_0x431c2c,_0x28bb60['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x54db38{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1d3df5,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x16553e){super(_0x16553e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x58cee0=this['editor']['config'];_0x58cee0['define']('trackChanges.SuggestionThreadView',ne),_0x58cee0['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x58cee0['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x30faa3,_0x46588a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5b6919,_0x24475b]of this['_handleControllerBuffer']){const _0x3367b7=this['_suggestionToController']['has'](_0x5b6919);_0x3367b7||_0x24475b?_0x3367b7&&_0x24475b&&this['_destroyController'](_0x5b6919):this['_initializeController'](_0x5b6919);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x30faa3,_0x46588a);}['init'](){const _0xaf4cb2=this['editor'],_0x29260f=_0xaf4cb2['plugins']['get']('TrackChangesEditing'),_0x5cd03f=_0xaf4cb2['plugins']['get']('Annotations'),_0x38fb6b=_0xaf4cb2['plugins']['get']('EditorAnnotations'),_0x1fb410=_0xaf4cb2['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x38fb6b['addSourceCollector'](()=>{const _0xa55f07=[];for(const [_0x226157,_0x4c4e1e]of Array['from'](this['_suggestionToController'])){const _0xbcab2f=_0x226157['getAllAdjacentSuggestions'](),_0x33cb3c=[];for(const _0x5b6747 of _0xbcab2f){if(!_0x5b6747['isInContent'])continue;if(_0x5b6747['isMultiRange']){_0x33cb3c['push'](..._0x5b6747['getRanges']());continue;}const _0x1892dc=_0x5b6747['getFirstRange']();if(_0x33cb3c['length']>0x0){const _0x18096c=_0x33cb3c[0x0]['getJoined'](_0x1892dc);if(_0x18096c){_0x33cb3c[0x0]=_0x18096c;continue;}}_0x33cb3c['push'](_0x1892dc);}_0xa55f07['push']([_0x4c4e1e['view'],_0x33cb3c]);}return _0xa55f07;}),this['listenTo'](_0x29260f,'suggestionLoaded',(_0x532e35,_0x57bbc1)=>{this['listenTo'](_0x57bbc1,'change:previous',(_0x320102,_0x5e783f,_0x148eaf,_0x1a0cb8)=>{_0x57bbc1['isInContent']&&(null==_0x148eaf?(this['_updateController'](_0x1a0cb8['head']),this['_handleSuggestionControllerDelayed'](_0x57bbc1,!0x1)):(this['_updateController'](_0x148eaf['head']),null==_0x1a0cb8&&this['_handleSuggestionControllerDelayed'](_0x57bbc1,!0x0)));}),null!==_0x57bbc1['previous']?this['_updateController'](_0x57bbc1['head']):this['_handleSuggestionControllerDelayed'](_0x57bbc1,!0x1);}),this['listenTo'](_0x29260f,'suggestionUnloaded',(_0x1d8bbe,_0x5eeeea,_0x4644d8)=>{this['stopListening'](_0x5eeeea,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5eeeea),this['_suggestionToController']['has'](_0x5eeeea)&&this['_destroyController'](_0x5eeeea),_0x4644d8&&this['_updateController'](_0x4644d8['head']);}),this['listenTo'](_0x29260f,'suggestionChanged',(_0xcd7097,_0x1ca8c1)=>{this['_updateController'](_0x1ca8c1);}),this['listenTo'](_0x5cd03f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1fb410,'addComment',(_0x214533,{threadId:_0x31bcfa,isFromAdapter:_0x4e92c1})=>{if(_0x4e92c1||!_0x29260f['hasSuggestion'](_0x31bcfa))return;const _0x40c9b0=_0x29260f['getSuggestion'](_0x31bcfa);this['_suggestionToController']['get'](_0x40c9b0)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x212f18=this['editor']['plugins']['get']('Annotations'),_0x1a2528=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43bc3e=Array['from'](_0x212f18['activeAnnotations'],_0x5e64fc=>_0x5e64fc['innerView'])['filter'](_0x2b8a5=>this['_viewToController']['has'](_0x2b8a5)),_0x4fa237=[];for(const _0x20f5b0 of _0x43bc3e){const _0x206836=this['_viewToController']['get'](_0x20f5b0)['model']['getAllAdjacentSuggestions']();_0x4fa237['push'](..._0x206836['reduce']((_0x180acd,_0x2c4dde)=>[..._0x180acd,..._0x2c4dde['getMarkerNames']()],[]));}_0x1a2528['activeMarkers']=_0x4fa237;}['_addUIComponentsToFactory'](){const _0x1eb7be=this['editor'],_0x4f5908=_0x1eb7be['locale'],_0x1eb167=o(_0x4f5908,'Track\x20changes'),_0x9ac67b=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x1eb167,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4f5908,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4f5908,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4f5908,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4f5908,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0xe9ecf6 of _0x9ac67b)if(ae(_0xe9ecf6)){const _0x2cd342=_0x1eb7be['commands']['get'](_0xe9ecf6['model']['commandName']);_0xe9ecf6['model']['bind']('isOn','isEnabled')['to'](_0x2cd342,'value','isEnabled');}_0x1eb7be['ui']['componentFactory']['add']('trackChanges',_0x3c4843=>this['_createToolbarButton'](_0x3c4843,_0x9ac67b,_0x1eb167)),_0x1eb7be['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2729eb=>this['_createMenuBarMenu'](_0x2729eb,_0x9ac67b,_0x1eb167));}['_createToolbarButton'](_0x19fe6f,_0xb23453,_0x5917cd){const _0x250074=zt(_0x19fe6f,Zt),_0x5b8109=this['editor']['commands']['get']('trackChanges');_0x250074['buttonView']['set']({'tooltip':_0x5917cd,'label':_0x5917cd,'icon':ie}),_0x250074['buttonView']['bind']('isOn')['to'](_0x5b8109,'value'),_0x250074['buttonView']['on']('execute',()=>{_0x5b8109['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x250074,_0xb23453,{'role':'menu'});const _0x19310c=[];for(const _0x514e4e of _0xb23453)ae(_0x514e4e)&&_0x19310c['push'](this['editor']['commands']['get'](_0x514e4e['model']['commandName']));const _0x5b1a50=_0x250074['buttonView'];return _0x5b1a50['actionView']['unbind']('isEnabled'),_0x5b1a50['arrowView']['unbind']('isEnabled'),_0x5b1a50['actionView']['bind']('isEnabled')['to'](_0x5b8109,'isEnabled'),_0x5b1a50['arrowView']['bind']('isEnabled')['toMany'](_0x19310c,'isEnabled',(..._0x1fdbd9)=>_0x1fdbd9['some'](_0x112a57=>_0x112a57)),_0x250074['on']('execute',_0x2b31f9=>{this['editor']['execute'](_0x2b31f9['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x250074;}['_createMenuBarMenu'](_0x4a1ebf,_0x3718c3,_0x2b7405){const _0x17dea0=new Kt(_0x4a1ebf),_0x2cb6e6=this['editor']['commands']['get']('trackChanges');_0x17dea0['buttonView']['set']({'label':_0x2b7405,'icon':ie});const _0x4206bd=new Qt(_0x4a1ebf);for(const _0xc47440 of _0x3718c3){if('separator'==_0xc47440['type']){_0x4206bd['items']['add'](new Jt(_0x4a1ebf));continue;}const _0x21bcec=new Xt(_0x4a1ebf,_0x17dea0),_0x2ae583=new Yt(_0x4a1ebf),_0x1535c1=_0xc47440['model'];_0x2ae583['bind'](...Object['keys'](_0x1535c1))['to'](_0x1535c1),_0x2ae583['delegate']('execute')['to'](_0x17dea0),_0x2ae583['on']('execute',()=>{this['editor']['execute'](_0x1535c1['commandName']),this['editor']['editing']['view']['focus']();}),_0x21bcec['children']['add'](_0x2ae583),_0x4206bd['items']['add'](_0x21bcec);}return _0x17dea0['bind']('isEnabled')['to'](_0x2cb6e6,'isEnabled'),_0x17dea0['panelView']['children']['add'](_0x4206bd),_0x17dea0;}['_initializeController'](_0x21e9e0){const _0x68d5e7=this['editor'],_0x36dcc1=_0x68d5e7['config'],_0x23afb7=_0x68d5e7['plugins']['get']('Annotations'),_0x1af4d8=_0x68d5e7['plugins']['get']('CommentsRepository'),_0x5f2ef1=_0x68d5e7['plugins']['get']('EditorAnnotations'),_0x40d3c3=_0x68d5e7['plugins']['get'](_0x1d3df5)['me'],_0x3525e8=_0x36dcc1['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x3b9e97,CommentThreadInputView:_0x21c4d8}=_0x68d5e7['plugins']['get']('CommentsUI');let _0x28e680,_0x3d30fc;this['_annotationViews']['has'](_0x21e9e0['id'])?(_0x3d30fc=this['_annotationViews']['get'](_0x21e9e0['id']),_0x28e680=_0x3d30fc['mainView']):(_0x28e680=new _0x3525e8(_0x68d5e7['locale'],_0x21e9e0,_0x40d3c3,{'disableComments':this['_disableComments'],'editorConfig':_0x36dcc1['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x36dcc1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x36dcc1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x36dcc1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x212d68(_0x36dcc1['get']('locale')),'CommentView':_0x36dcc1['get']('comments')['CommentView'],'CommentsListView':_0x3b9e97,'CommentThreadInputView':_0x21c4d8}),_0x28e680['acceptButton']['on']('execute',()=>{_0x68d5e7['editing']['view']['focus']();}),_0x28e680['discardButton']['on']('execute',()=>{_0x68d5e7['editing']['view']['focus']();}),_0x3d30fc=_0x23afb7['createAnnotationView'](this['editor']['locale'],_0x28e680),_0x3d30fc['bind']('isDirty')['to'](_0x28e680,'isDirty'),_0x3d30fc['bind']('length')['to'](_0x28e680),_0x3d30fc['bind']('type')['to'](_0x28e680,'type',_0x2bb080=>'suggestion-'+_0x2bb080),this['_annotationViews']['set'](_0x21e9e0['id'],_0x3d30fc));const _0x3f7b5d=_0x1af4d8['createCommentThreadController'](_0x21e9e0['commentThread'],_0x28e680),_0x592cf2=new oe(_0x68d5e7,_0x21e9e0,_0x28e680,_0x3f7b5d),_0x6a0cd3=_0x21e9e0['getAllAdjacentSuggestions']()['filter'](_0x48a7d5=>_0x48a7d5['isInContent']);_0x28e680['descriptionParts']=_0x68d5e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x6a0cd3),this['_suggestionToController']['set'](_0x21e9e0,_0x592cf2),this['_viewToController']['set'](_0x28e680,_0x592cf2);const _0x1bfe6b=_0x23afb7['createAnnotation']({'view':_0x3d30fc,'target':()=>{const _0x314172=[],_0x10d979=_0x21e9e0['getAllAdjacentSuggestions']()['filter'](_0x41814b=>_0x41814b['isInContent']);for(const _0x511bfd of _0x10d979)_0x314172['push'](..._0x511bfd['getMarkers']());return _0x4b736c(_0x68d5e7['editing'],_0x314172);},'type':()=>'suggestion-'+_0x592cf2['view']['type']});_0x1af4d8['_bindAnnotationToEditors'](_0x28e680,_0x1bfe6b),_0x23afb7['add'](_0x1bfe6b),_0x5f2ef1['registerAnnotation'](_0x1bfe6b);}['_destroyController'](_0x2f1c99){const _0xfec670=this['editor']['plugins']['get']('CommentsRepository'),_0x413130=this['editor']['plugins']['get']('Annotations'),_0x69cab0=this['_suggestionToController']['get'](_0x2f1c99),_0x2f5769=_0x69cab0['view'],_0x328026=_0x413130['getByInnerView'](_0x2f5769);_0xfec670['_unbindEditors'](_0x2f5769),_0x328026&&_0x413130['remove'](_0x328026),this['_suggestionToController']['delete'](_0x2f1c99),this['_viewToController']['delete'](_0x2f5769),_0x69cab0['destroy']();}['_updateController'](_0x3f28e2){if(!_0x3f28e2['isInContent']||!this['_suggestionToController']['has'](_0x3f28e2))return;const _0xbf4cd7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x550735=this['_suggestionToController']['get'](_0x3f28e2),_0x2a5730=_0x3f28e2['getAllAdjacentSuggestions']();_0x550735['view']['descriptionParts']=_0xbf4cd7['descriptionFactory']['getDescriptions'](_0x2a5730);}['destroy'](){for(const _0x3fe5d4 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3fe5d4);for(const _0x27cdde of this['_annotationViews']['values']())_0x27cdde['mainView']['destroy']();super['destroy']();}}function ae(_0x20b291){return'model'in _0x20b291;}class k extends _0x54db38{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0xc2fa8c){this['editor']['plugins']['get'](p)['adapter']=_0xc2fa8c;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x791030){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x791030);}['getSuggestions']({skipNotAttached:_0x5175f8=!0x1,toJSON:_0x1cd885=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5175f8,'toJSON':_0x1cd885});}['getSuggestion'](_0x47752e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x47752e);}}const T=['Pagination'];class P extends _0x54db38{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x1bb80e=this['editor'];if(_0x1bb80e['config']['define']('trackChangesData.editorCreator',_0x1e4ec9=>{const _0x1b0492=_0x1bb80e['model']['document']['getRootNames']()['reduce']((_0x4cafd9,_0x3cd1f1)=>(_0x4cafd9[_0x3cd1f1]='',_0x4cafd9),{});return _0x1bb80e['constructor']['create'](_0x1b0492,_0x1e4ec9);}),'function'!=typeof _0x1bb80e['config']['get']('trackChangesData')['editorCreator'])throw new _0x50d316('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4659e6){return N(this['editor'],!0x0,_0x4659e6);}['getDataWithDiscardedSuggestions'](_0x99ba1c){return N(this['editor'],!0x1,_0x99ba1c);}}class D extends _0x54db38{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x3560e4){super(_0x3560e4),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x3b0187){return void 0x0!==_0x3b0187['getRootsAttributes'];}async function N(_0x3c2a56,_0x1d44e5,_0x325eb5){const _0x341e1b=_0x581139(_0x3c2a56,T);_0x341e1b['plugins']['push'](p,D),_0x341e1b['rootsAttributes']=v(_0x3c2a56)?_0x3c2a56['getRootsAttributes']():void 0x0;const _0x28109f=document['createDocumentFragment'](),_0x3a65ba=_0x3c2a56['config']['get']('trackChangesData')['editorCreator'],_0x190269=await _0x3a65ba(_0x341e1b,()=>function(_0x2e4b20){const _0x5b18be=document['createElement']('div');return _0x2e4b20['appendChild'](_0x5b18be),_0x5b18be;}(_0x28109f));!function(_0x5b1f15,_0x28e5d5){const _0x841bab=_0x5b1f15['model']['document']['getRootNames']()['reduce']((_0x297755,_0x108bb8)=>(_0x297755[_0x108bb8]=_0x5b1f15['data']['get']({'rootName':_0x108bb8}),_0x297755),{}),_0x33494c=_0x5b1f15['plugins']['get']('Users')['users']['map'](_0x107bd8=>({'id':_0x107bd8['id'],'name':_0x107bd8['name']})),_0x171539=_0x5b1f15['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x6b7ef6=_0x5b1f15['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x26a123=_0x28e5d5['plugins']['get']('Users'),_0x190cbc=_0x28e5d5['plugins']['get']('TrackChangesEditing'),_0x58dc89=_0x28e5d5['plugins']['get']('CommentsRepository');for(const _0x3a6808 of _0x33494c)_0x26a123['getUser'](_0x3a6808['id'])||_0x26a123['addUser'](_0x3a6808);_0x26a123['me']||_0x26a123['useAnonymousUser']();for(const _0x21faa6 of _0x6b7ef6)_0x58dc89['addCommentThread'](_0x21faa6);for(const _0x656a45 of _0x171539)_0x190cbc['addSuggestionData'](_0x656a45);_0x28e5d5['data']['set'](_0x841bab);}(_0x3c2a56,_0x190269),_0x190269['execute'](_0x1d44e5?'acceptAllSuggestions':'discardAllSuggestions');const _0x51ffff=v(_0x190269)?_0x190269['getFullData'](_0x325eb5):_0x190269['data']['get'](_0x325eb5);return await _0x190269['destroy'](),_0x51ffff;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
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};
|