@ckeditor/ckeditor5-track-changes 42.0.0-alpha.18 → 42.0.0-alpha.19
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
|
-
_0x4de1ed(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x375531,_0x101b16){super(),this['id']=_0x101b16['id'],this['type']=_0x101b16['type'],this['subType']=_0x101b16['subType']||null,this['author']=_0x101b16['author'],this['creator']=_0x101b16['creator']||_0x101b16['author'],this['isExternal']=Boolean(_0x101b16['attributes']&&_0x101b16['attributes']['@external']),this['data']=null,this['_model']=_0x375531,this['_onAccept']=_0x101b16['onAccept'],this['_onDiscard']=_0x101b16['onDiscard'],this['_onAttributesChange']=_0x101b16['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x101b16['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 _0x4583c7=this;for(;_0x4583c7['previous'];)_0x4583c7=_0x4583c7['previous'];return _0x4583c7;}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'](_0x3fda16){this['_markerNames']['add'](_0x3fda16);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x135ae6=>this['_model']['markers']['get'](_0x135ae6))['filter'](_0xe67f85=>_0xe67f85);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2f4cbc=>{for(const _0x2e4bc4 of this['getMarkers']())_0x2f4cbc['removeMarker'](_0x2e4bc4);}),this['_markerNames']['clear']();}['removeMarker'](_0x575ed6){this['_model']['change'](_0x258805=>{_0x258805['removeMarker'](_0x575ed6);}),this['_markerNames']['delete'](_0x575ed6);}['addRange'](_0xcbbfec){const _0x3c1972='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3c1972),this['_model']['change'](_0x3c2935=>{_0x3c2935['addMarker'](_0x3c1972,{'range':_0xcbbfec,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x35e29a){for(const _0x360c8f of this['getRanges']())if(_0x360c8f['isIntersecting'](_0x35e29a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2cc54a=>_0x2cc54a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2bbf78,_0x5dcfd3)=>[..._0x2bbf78,..._0x5dcfd3['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x281840=this['getRanges']();if(0x1!=_0x281840['length'])return null;const _0x5b2b33=_0x281840[0x0],_0x55a90b=_0x5b2b33['start']['nodeAfter'],_0x3b3ee9=_0x5b2b33['end']['nodeBefore'];return _0x55a90b instanceof _0x148029?_0x55a90b!=_0x3b3ee9?null:_0x55a90b: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 _0x39ae38=[];let _0xadb378=this['head'];for(;_0xadb378;)_0x39ae38['push'](_0xadb378),_0xadb378=_0xadb378['next'];return _0x39ae38;}['setAttribute'](_0x56d85b,_0x630ddd){const _0x34ce0a=_0x5d117f(this['attributes']);_0x15442f(_0x34ce0a,_0x56d85b,_0x630ddd),_0x435370(_0x34ce0a,this['attributes'])||(this['attributes']=_0x34ce0a,this['_onAttributesChange'](_0x34ce0a));}['removeAttribute'](_0x18e5a0){const _0x15a8ac=_0x5d117f(this['attributes']);_0x10f877(_0x15a8ac,_0x18e5a0),_0x435370(_0x15a8ac,this['attributes'])||(this['attributes']=_0x15a8ac,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 _0x323406()['substr'](0x1,0x5);}}function o(_0x4f864f,_0x10d604,_0x8b321d){const t=_0x4f864f['t'];switch(_0x10d604){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',_0x8b321d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x8b321d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x8b321d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x8b321d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x8b321d);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',_0x8b321d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x8b321d);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',_0x8b321d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x8b321d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x8b321d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x8b321d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x8b321d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x8b321d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x8b321d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x8b321d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x8b321d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x8b321d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x8b321d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x8b321d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x8b321d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x8b321d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x8b321d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x8b321d);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'},_0x8b321d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x8b321d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x8b321d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x8b321d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x8b321d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x8b321d);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'},_0x8b321d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x8b321d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x8b321d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x8b321d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x8b321d);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'},_0x8b321d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x8b321d);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'},_0x8b321d);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'},_0x8b321d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x8b321d);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'},_0x8b321d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x8b321d);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'},_0x8b321d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x8b321d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x8b321d);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'},_0x8b321d);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'},_0x8b321d);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 _0x10d604;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5d5f32,_0x26ff9a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5d5f32,this['_locale']=_0x26ff9a;}['getDescriptions'](_0x33da3f){const _0x492206=[],_0x2851f8=new Set(),_0x5ae83e=new Set();for(let _0x4dbf45=0x0;_0x4dbf45<_0x33da3f['length'];_0x4dbf45++){const _0x47d1cb=_0x33da3f[_0x4dbf45];if(!_0x47d1cb['isInContent'])continue;const _0x21e4a3=this['_handleCustomCallbackDescription'](_0x47d1cb);if(_0x21e4a3){if(null!=_0x47d1cb['subType']){if(_0x2851f8['has'](_0x47d1cb['subType']))continue;_0x2851f8['add'](_0x47d1cb['subType']);}_0x492206['push'](_0x21e4a3);}else{if('attribute'!=_0x47d1cb['type'])'insertion'!=_0x47d1cb['type']&&'deletion'!=_0x47d1cb['type']||this['_handleInsertRemoveSuggestionDescription'](_0x492206,_0x47d1cb,_0x33da3f[_0x4dbf45+0x1]);else{const _0x322ceb=_0x47d1cb['data']['key'];if(_0x5ae83e['has'](_0x322ceb))continue;_0x5ae83e['add'](_0x47d1cb['data']['key']),_0x322ceb==m?this['_handleRenameSuggestionDescription'](_0x492206,_0x47d1cb):this['_handleAttributeSuggestionDescription'](_0x492206,_0x47d1cb);}}}return this['_resolveDescriptionItems'](_0x492206);}['registerDescriptionCallback'](_0x4afc1c){this['_customCallbacks']['push'](_0x4afc1c);}['registerElementLabel'](_0x5b9d06,_0x546977,_0x14eb3a=_0x3a0f7c['normal']){'function'==typeof _0x5b9d06?_0x22bc86(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5b9d06,'label':_0x546977,'priority':_0x14eb3a}):this['_itemLabels']['set'](_0x5b9d06,_0x546977);}['registerAttributeLabel'](_0x5e70ac,_0x34f36e){this['_attributeLabels']['set'](_0x5e70ac,_0x34f36e);}['getItemLabel'](_0x315df2,_0x53bb88=0x1){let _0x1587ad;for(const _0x3862f8 of this['_itemLabelsCallbacks'])if(_0x3862f8['matchingCallback'](_0x315df2)){_0x1587ad=_0x3862f8['label'];break;}return _0x1587ad||(_0x1587ad=this['_itemLabels']['get'](_0x315df2['name'])),_0x1587ad?_0x1587ad(_0x53bb88):0x1!==_0x53bb88?_0x53bb88+'\x20'+_0x315df2['name']+'s':''+_0x315df2['name'];}['_addDescriptionItems'](_0x59d88a,_0xb9772){const _0x17d607=_0xb9772['getFirstRange']()['getWalker'](),_0x3d6c27='insertion'==_0xb9772['type']?'add':'remove';for(const _0x158a1b of _0x17d607){const _0x114578=_0x158a1b['item'],_0x4a0701=_0x59d88a[_0x59d88a['length']-0x1];if(_0x114578['is']('$textProxy'))_0x4a0701&&_0x4a0701['type']['indexOf']('Container')>-0x1&&_0x59d88a['pop'](),_0x4a0701&&'text'==_0x4a0701['type']?_0x4a0701[_0x3d6c27]+=_0x114578['data']:_0x59d88a['push']({'type':'text','add':'add'==_0x3d6c27?_0x114578['data']:'','remove':'remove'==_0x3d6c27?_0x114578['data']:''});else{if(this['_schema']['isObject'](_0x114578)){const _0x5d99a1=_0x114578;if(_0x4a0701&&_0x4a0701['type']['indexOf']('Container')>-0x1&&_0x59d88a['pop'](),'elementEnd'==_0x158a1b['type'])continue;_0x4a0701&&_0x4a0701['type']==_0x3d6c27+'Object'&&_0x4a0701['element']['name']==_0x5d99a1['name']?_0x4a0701['quantity']++:_0x59d88a['push']({'type':_0x3d6c27+'Object','element':_0x5d99a1,'quantity':0x1}),_0x17d607['skip'](_0x2aaeba=>!('elementEnd'==_0x2aaeba['type']&&_0x2aaeba['item']==_0x114578));}else{if(this['_schema']['checkChild'](_0x114578,'$text')||_0x114578['is']('element','softBreak')){const _0x2c190b=_0x114578;if('add'==_0x3d6c27&&'elementStart'==_0x158a1b['type']||'remove'==_0x3d6c27&&'elementEnd'==_0x158a1b['type'])continue;if(_0x4a0701&&-0x1==_0x4a0701['type']['indexOf']('Container')){'text'==_0x4a0701['type']&&(_0x4a0701[_0x3d6c27]+='\x0a');continue;}let _0x40924f;if(_0x40924f='add'==_0x3d6c27?_0x2c190b['nextSibling']&&!this['_schema']['isObject'](_0x2c190b['nextSibling'])?_0x2c190b['nextSibling']:null:_0x2c190b['previousSibling']&&!this['_schema']['isObject'](_0x2c190b['previousSibling'])?_0x2c190b['previousSibling']:null,_0x2c190b['isEmpty']||_0x40924f&&_0x40924f['isEmpty']){const _0x1423b7=_0x40924f&&_0x40924f['isEmpty']?_0x40924f:_0x2c190b;_0x4a0701&&_0x4a0701['type']==_0x3d6c27+'EmptyContainer'&&_0x4a0701['element']['name']==_0x1423b7['name']?_0x4a0701['quantity']++:_0x59d88a['push']({'type':_0x3d6c27+'EmptyContainer','element':_0x1423b7,'quantity':0x1});}else _0x59d88a['push']({'type':_0x3d6c27+'Container','element':_0x2c190b});}}}}}['_resolveDescriptionItems'](_0x23a967){const _0x67b38f=this['_locale'],_0x336d8e=[],_0x2693dc=[],_0x35d15c=[];for(const _0x5b73cc of _0x23a967)switch(_0x5b73cc['type']){case'text':if(_0x5b73cc['add']=_0x5b73cc['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5b73cc['remove']=_0x5b73cc['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5b73cc['add']&&''!=_0x5b73cc['remove']){_0x336d8e['push']({'type':'replace','content':o(_0x67b38f,'REPLACE_TEXT',['\x22'+_0x5b73cc['remove']+'\x22','\x22'+_0x5b73cc['add']+'\x22'])});continue;}if(null!=_0x5b73cc['add']['match'](/^ +$/)){_0x336d8e['push']({'type':'insertion','content':o(_0x67b38f,'*Insert:*\x20%0',o(_0x67b38f,'ELEMENT_SPACE',_0x5b73cc['add']['length']))});continue;}if(null!=_0x5b73cc['remove']['match'](/^ +$/)){_0x336d8e['push']({'type':'deletion','content':o(_0x67b38f,'*Remove:*\x20%0',o(_0x67b38f,'ELEMENT_SPACE',_0x5b73cc['remove']['length']))});continue;}if(''!=_0x5b73cc['add']){_0x336d8e['push']({'type':'insertion','content':o(_0x67b38f,'*Insert:*\x20%0','\x22'+_0x5b73cc['add']+'\x22')});continue;}_0x336d8e['push']({'type':'deletion','content':o(_0x67b38f,'*Remove:*\x20%0','\x22'+_0x5b73cc['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x336d8e['push']({'type':'insertion','content':o(_0x67b38f,'*Insert:*\x20%0',this['getItemLabel'](_0x5b73cc['element'],_0x5b73cc['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x336d8e['push']({'type':'deletion','content':o(_0x67b38f,'*Remove:*\x20%0',this['getItemLabel'](_0x5b73cc['element'],_0x5b73cc['quantity']))});continue;case'addContainer':_0x336d8e['push']({'type':'insertion','content':o(_0x67b38f,'*Split:*\x20%0',this['getItemLabel'](_0x5b73cc['element'],_0x5b73cc['quantity']))});continue;case'removeContainer':_0x336d8e['push']({'type':'deletion','content':o(_0x67b38f,'*Merge:*\x20%0',this['getItemLabel'](_0x5b73cc['element'],_0x5b73cc['quantity']))});continue;case'addFormat':_0x2693dc['push'](_0x5b73cc['key']);continue;case'removeFormat':_0x35d15c['push'](_0x5b73cc['key']);continue;default:_0x336d8e['push'](_0x5b73cc);}if(_0x2693dc['length']){const _0x153249=_0x2693dc['map'](_0x3135ed=>this['_attributeLabels']['has'](_0x3135ed)?this['_attributeLabels']['get'](_0x3135ed):_0x3135ed)['join'](',\x20');_0x336d8e['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x153249)});}if(_0x35d15c['length']){const _0x2887dc=_0x35d15c['map'](_0x249ae9=>this['_attributeLabels']['has'](_0x249ae9)?this['_attributeLabels']['get'](_0x249ae9):_0x249ae9)['join'](',\x20');_0x336d8e['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2887dc)});}return _0x336d8e;}['_handleCustomCallbackDescription'](_0x5ab8d4){for(const _0x550a77 of this['_customCallbacks']){const _0x412b22=_0x550a77(_0x5ab8d4);if(_0x412b22&&'type'in _0x412b22)return _0x412b22;}}['_handleAttributeSuggestionDescription'](_0x1df12b,_0x4100ee){const _0x497d48=_0x4100ee['data'],_0x11cc01=void 0x0===_0x497d48['newValue']?'removeFormat':'addFormat';_0x1df12b['push']({'type':_0x11cc01,'key':_0x497d48['key']});}['_handleRenameSuggestionDescription'](_0x1e4909,_0x54d2b3){_0x1e4909['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x54d2b3['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x170904,_0x48bbb6,_0x3c60ce){if(this['_addDescriptionItems'](_0x170904,_0x48bbb6),_0x3c60ce&&_0x3c60ce['getFirstRange']()&&!_0x48bbb6['getFirstRange']()['end']['isEqual'](_0x3c60ce['getFirstRange']()['start'])){const _0x44b7bd=_0x170904[_0x170904['length']-0x1],_0x2d99aa='insertion'==_0x48bbb6['type']?'add':'remove';_0x44b7bd&&'text'==_0x44b7bd['type']&&(_0x44b7bd[_0x2d99aa]+='\x0a');}}}class E extends _0x14427b{['afterInit'](){const _0x3769d4=this['editor'],_0x4315fd=_0x3769d4['plugins']['get']('TrackChangesEditing');_0x3769d4['commands']['get']('showAIAssistant')&&_0x4315fd['enableCommand']('showAIAssistant');}}class V extends _0x14427b{['afterInit'](){const _0x559252=this['editor'],_0x1bbffc=_0x559252['locale'];if(!_0x559252['plugins']['has']('AlignmentEditing'))return;const _0x392e79=_0x559252['plugins']['get']('TrackChangesEditing');_0x392e79['enableDefaultAttributesIntegration']('alignment'),_0x392e79['registerBlockAttribute']('alignment'),_0x392e79['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1bbffc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1139e3=this['editor'],_0x52807b=_0x1139e3['locale'];_0x1139e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6efe0f=>{if('formatBlock'!=_0x6efe0f['type'])return;const {data:_0x295188}=_0x6efe0f;if(_0x295188&&'alignment'==_0x295188['commandName']){const _0x2f82b7=_0x295188['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x52807b,'*Format:*\x20%0',function(_0x316eb2){switch(_0x316eb2){case'left':return o(_0x52807b,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x52807b,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x52807b,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x52807b,'FORMAT_JUSTIFY_TEXT');}}(_0x2f82b7))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x14427b{['afterInit'](){const _0x529b97=this['editor'],_0xfd7012=_0x529b97['plugins']['get']('TrackChangesEditing'),_0x5dcba0=_0x529b97['locale'];for(const _0x3e474c of ti){if(!_0x529b97['plugins']['has'](_0x3e474c))continue;const _0x3fe143=_0x3e474c['slice'](0x0,-0x7)['toLowerCase'](),_0x3e2aa0='FORMAT_'+_0x3fe143['toUpperCase']();_0xfd7012['enableDefaultAttributesIntegration'](_0x3fe143),_0xfd7012['registerInlineAttribute'](_0x3fe143),_0xfd7012['descriptionFactory']['registerAttributeLabel'](_0x3fe143,o(_0x5dcba0,_0x3e2aa0));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ebded=this['editor'],_0x1a4377=_0x2ebded['locale'],_0x1ab25d=_0x2ebded['plugins']['get']('TrackChangesEditing');function _0x538e0f(_0x306ebe,_0x213373){_0x1ab25d['descriptionFactory']['registerDescriptionCallback'](_0x4e5b13=>{if('formatInline'!=_0x4e5b13['type'])return;const {data:_0x5de484}=_0x4e5b13;return _0x5de484&&_0x5de484['commandName']===_0x306ebe?_0x5de484['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1a4377,'*Format:*\x20%0',_0x213373)}:{'type':'format','content':o(_0x1a4377,'*Remove\x20format:*\x20%0',_0x213373)}:void 0x0;});}_0x538e0f('bold',o(_0x1a4377,'FORMAT_BOLD')),_0x538e0f('italic',o(_0x1a4377,'FORMAT_ITALIC')),_0x538e0f('underline',o(_0x1a4377,'FORMAT_UNDERLINE')),_0x538e0f('code',o(_0x1a4377,'FORMAT_CODE')),_0x538e0f('strikethrough',o(_0x1a4377,'FORMAT_STRIKETHROUGH')),_0x538e0f('subscript',o(_0x1a4377,'FORMAT_SUBSCRIPT')),_0x538e0f('superscript',o(_0x1a4377,'FORMAT_SUPERSCRIPT'));}}class O extends _0x14427b{['afterInit'](){const _0x1167ce=this['editor'],_0x3bc06d=_0x1167ce['locale'];if(!_0x1167ce['plugins']['has']('BlockQuoteEditing'))return;const _0x56b337=_0x1167ce['plugins']['get']('TrackChangesEditing'),_0x53ad34=this['editor']['commands']['get']('blockQuote');_0x56b337['enableCommand']('blockQuote',(_0x5c6945,_0x14d479={})=>{const _0xdb2a33=this['editor']['model']['document']['selection'],_0x35743b=_0x14d479&&void 0x0!==_0x14d479['forceValue']?_0x14d479['forceValue']:!_0x53ad34['value'];let _0x5927b3=[];if(_0x35743b){const _0x4964a4=Array['from'](_0xdb2a33['getSelectedBlocks']())['filter'](_0x5bec15=>oo(_0x5bec15)||function(_0x1e3728,_0x367c93){const _0x3c10e7=_0x367c93['checkChild'](_0x1e3728['parent'],'blockQuote'),_0x4f5d5a=_0x367c93['checkChild'](['$root','blockQuote'],_0x1e3728);return _0x3c10e7&&_0x4f5d5a;}(_0x5bec15,this['editor']['model']['schema']));_0x5927b3=to(_0x4964a4,_0x1167ce['model']);}else{const _0x14e3e0=Array['from'](_0xdb2a33['getSelectedBlocks']())['filter'](_0x11028f=>oo(_0x11028f));_0x5927b3=to(_0x14e3e0,_0x1167ce['model']);}_0x1167ce['model']['change'](()=>{for(const _0x4f55af of _0x5927b3)_0x56b337['markBlockFormat'](_0x4f55af,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x35743b}]});});}),_0x56b337['descriptionFactory']['registerDescriptionCallback'](_0x52a7ca=>{const {data:_0x38a086}=_0x52a7ca;if(_0x38a086&&'blockQuote'==_0x38a086['commandName']){const _0x54b2c7=o(_0x3bc06d,'ELEMENT_BLOCK_QUOTE');return _0x38a086['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3bc06d,'*Set\x20format:*\x20%0',_0x54b2c7)}:{'type':'format','content':o(_0x3bc06d,'*Remove\x20format:*\x20%0',_0x54b2c7)};}});}}function oo(_0x4dc765){return'blockQuote'==_0x4dc765['parent']['name'];}class G extends _0x14427b{['afterInit'](){const _0x512a58=this['editor'];_0x512a58['plugins']['has']('CaseChange')&&(_0x512a58['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x512a58['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x512a58['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x14427b{['afterInit'](){const _0x1add05=this['editor'];_0x1add05['commands']['get']('ckbox')&&_0x1add05['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x14427b{['afterInit'](){const _0x1545bd=this['editor'];if(!_0x1545bd['plugins']['has']('CodeBlock'))return;const _0x20f61e=_0x1545bd['plugins']['get']('TrackChangesEditing'),_0x5774bf=_0x1545bd['locale'],_0x431b10=_0x1545bd['config']['get']('codeBlock')['languages'],_0x277493=_0x1545bd['commands']['get']('codeBlock');_0x20f61e['enableCommand']('indentCodeBlock'),_0x20f61e['enableCommand']('outdentCodeBlock'),_0x20f61e['enableCommand']('codeBlock',(_0x2ce45a,_0x5160bf={})=>{const _0x478ed1=_0x1545bd['model'],_0x2e26a4=_0x1545bd['model']['document']['selection'],_0x51c6eb=_0x5160bf&&void 0x0!==_0x5160bf['forceValue']?_0x5160bf['forceValue']:!_0x277493['value'];let _0x2112b1;_0x5160bf['language']||(_0x5160bf['language']=_0x431b10[0x0]['language']),_0x2112b1=_0x51c6eb?Array['from'](_0x2e26a4['getSelectedBlocks']())['filter'](_0x196d3f=>eo(_0x196d3f)||function(_0x419b16,_0xb40ad6){if(_0x419b16['is']('rootElement')||_0xb40ad6['isLimit'](_0x419b16))return!0x1;return _0xb40ad6['checkChild'](_0x419b16['parent'],'codeBlock');}(_0x196d3f,_0x478ed1['schema'])):Array['from'](_0x2e26a4['getSelectedBlocks']())['filter'](_0xf9dfd8=>eo(_0xf9dfd8));const _0x3b6c71=to(_0x2112b1,_0x478ed1);_0x478ed1['change'](()=>{for(const _0x3ee5bf of _0x3b6c71)_0x20f61e['markBlockFormat'](_0x3ee5bf,{'commandName':'codeBlock','commandParams':[{..._0x5160bf,'forceValue':_0x51c6eb}],'formatGroupId':'blockName'});});}),(_0x20f61e['descriptionFactory']['registerElementLabel']('codeBlock',_0x1a0b15=>o(_0x5774bf,'ELEMENT_CODE_BLOCK',_0x1a0b15)),_0x20f61e['descriptionFactory']['registerDescriptionCallback'](_0xcdc509=>{if('formatBlock'!=_0xcdc509['type'])return;const _0x5b83a5=_0x5774bf['t'],{data:_0x42a32b}=_0xcdc509;if(!_0x42a32b||'codeBlock'!=_0x42a32b['commandName'])return;const _0x41c741=_0x42a32b['commandParams'][0x0]['language'],_0x58c226=_0x5b83a5(_0x431b10['find'](_0xa8abbe=>_0xa8abbe['language']===_0x41c741)['label'])['toLowerCase']();return _0x42a32b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5774bf,'*Set\x20format:*\x20%0',o(_0x5774bf,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x58c226+')')}:{'type':'format','content':o(_0x5774bf,'*Remove\x20format:*\x20%0',o(_0x5774bf,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2726c9){return'codeBlock'==_0x2726c9['name'];}class H extends _0x14427b{['afterInit'](){const _0x234c8a=this['editor'];if(!_0x234c8a['plugins']['has']('CommentsEditing'))return;_0x234c8a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x38778e,_0x287eb0,_0x566c00){const _0x57aeb0=[];for(const _0x4fdd24 of _0x287eb0['getItems']())_0x4fdd24['hasAttribute'](_0x38778e)&&_0x57aeb0['push'](_0x566c00['createRangeOn'](_0x4fdd24));return _0x57aeb0;}function _e(_0x39061e,_0x3e1563,{showActiveMarker:_0x14e367=!0x0}={}){const _0xae0c3d=_0x39061e['plugins']['get']('TrackChangesEditing');return(_0x466a03,_0x772952,_0x206080)=>{if(!_0x206080['consumable']['test'](_0x772952['markerRange'],_0x466a03['name']))return;const _0x404964=_0x772952['markerRange']['getWalker'](),_0x134c2c=_0x772952['markerRange']['start'],_0xc5c3ba=_0x39061e['model']['schema'];let _0x42c23e=null,_0x558079=null,_0x2c65b2=!0x1,_0x4309f8=!0x1;for(const _0x50ffbb of _0x404964){const _0x46805a=_0x50ffbb['item'];_0x2c65b2=_0x2c65b2||_0xc5c3ba['isContent'](_0x46805a);const _0x1c7ae5=_0x206080['mapper']['toViewElement'](_0x46805a);if(_0x1c7ae5&&_0x1c7ae5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x50ffbb['type']&&(_0xc5c3ba['isBlock'](_0x46805a)&&!_0xc5c3ba['isLimit'](_0x46805a)&&(_0x46805a['nextSibling']||_0x134c2c['isAtEnd']?_0x42c23e&&_0x42c23e['parent']==_0x46805a||(_0x42c23e=_0x46805a,_0x2b0998(_0x50ffbb['previousPosition']),_0x4309f8=!0x0):_0x558079=_0x558079||_0x50ffbb['previousPosition']));}function _0x2b0998(_0x4514c5){const _0x13bd50=_0x206080['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3e1563}),_0x3b4064=_0x206080['mapper']['toViewPosition'](_0x4514c5);_0x14e367&&_0xae0c3d['activeMarkers']['includes'](_0x772952['markerName'])&&_0x206080['writer']['addClass']('ck-suggestion-marker--active',_0x13bd50),_0x206080['writer']['insert'](_0x3b4064,_0x13bd50),_0x206080['mapper']['bindElementToMarker'](_0x13bd50,_0x772952['markerName']);}_0x2c65b2||_0x4309f8||!_0x558079||_0x2b0998(_0x558079);};}class q extends _0x14427b{static get['requires'](){return[_0x19c2f9];}['init'](){const _0x5ac7c3=this['editor'],_0x37065e=_0x5ac7c3['plugins']['get']('TrackChangesEditing');_0x37065e['enableCommand']('delete');const _0x37cf9a=_0x5ac7c3['commands']['get']('deleteForward');_0x37065e['enableCommand']('deleteForward',(_0x410857,_0x5f59cc={})=>{const _0x1640e4=_0x5ac7c3['model']['createSelection'](_0x5ac7c3['model']['document']['selection']);_0x1640e4['isCollapsed']&&_0x5ac7c3['model']['modifySelection'](_0x1640e4,{'direction':'forward','unit':_0x5f59cc['unit']});const _0x3a6279=_0x1640e4['getFirstRange'](),_0x51c39e=_0x374e30['fromRange'](_0x3a6279);let _0x1b4d7a;_0x410857(_0x5f59cc),_0x1b4d7a='$graveyard'==_0x51c39e['root']['rootName']?_0x5ac7c3['model']['createRange'](_0x3a6279['start']):_0x5ac7c3['model']['createRange'](_0x51c39e['start'],_0x51c39e['end']),_0x51c39e['detach'](),_0x5ac7c3['model']['enqueueChange'](_0x37cf9a['buffer']['batch'],_0x182224=>{_0x37cf9a['buffer']['lock'](),_0x182224['setSelection'](_0x182224['createRange'](_0x1b4d7a['end'])),_0x37cf9a['buffer']['unlock']();});}),_0x5ac7c3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5ac7c3,'merge'),{'priority':'high'}),_0x5ac7c3['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x206b67,_0x4d9a20,_0x152a90)=>{_0x152a90['options']['showSuggestionHighlights']&&_e(_0x5ac7c3,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x206b67,_0x4d9a20,_0x152a90);},{'priority':'high'}),_0x5ac7c3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x44e89e,_0x3510a4,_0x4e8fed)=>{const _0x17c326=_0x4e8fed['mapper']['markerNameToElements'](_0x3510a4['markerName']);if(_0x17c326){for(const _0x1e49df of _0x17c326)_0x1e49df['is']('uiElement')&&(_0x4e8fed['mapper']['unbindElementFromMarkerName'](_0x1e49df,_0x3510a4['markerName']),_0x4e8fed['writer']['remove'](_0x1e49df));}},{'priority':'high'});}}class z extends _0x14427b{['afterInit'](){const _0x574275=this['editor'];if(!_0x574275['plugins']['has']('ListEditing'))return;const _0x157d5f=_0x574275['locale'],_0x1b688c=_0x574275['plugins']['get']('TrackChangesEditing'),_0x34327c=_0x574275['plugins']['has']('TodoListEditing'),_0x36e3d7=!!_0x574275['config']['get']('list.multiBlock');function _0x243441(_0x3ebd56){return{'type':'format','content':''+o(_0x157d5f,'*Set\x20format:*\x20%0',_0x3ebd56)};}function _0x3ac4a1(_0x221b2e){return{'type':'format','content':''+o(_0x157d5f,'*Remove\x20format:*\x20%0',_0x221b2e)};}_0x1b688c['enableDefaultAttributesIntegration']('numberedList'),_0x1b688c['enableDefaultAttributesIntegration']('bulletedList'),_0x1b688c['enableDefaultAttributesIntegration']('customNumberedList'),_0x1b688c['enableDefaultAttributesIntegration']('customBulletedList'),_0x1b688c['enableDefaultAttributesIntegration']('indentList'),_0x1b688c['enableDefaultAttributesIntegration']('outdentList'),_0x1b688c['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1b688c['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1b688c['registerBlockAttribute']('listItemId'),_0x1b688c['registerBlockAttribute']('listType'),_0x1b688c['registerBlockAttribute']('listIndent'),_0x36e3d7&&(_0x1b688c['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1b688c['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x34327c&&(_0x1b688c['enableDefaultAttributesIntegration']('todoList'),_0x1b688c['enableDefaultAttributesIntegration']('checkTodoList'),_0x1b688c['registerBlockAttribute']('todoListChecked'),_0x1b688c['descriptionFactory']['registerDescriptionCallback'](_0x383a4a=>{const {data:_0x262a7f}=_0x383a4a;if(_0x262a7f&&'todoListChecked'==_0x262a7f['key'])return{'type':'format','content':_0x262a7f['newValue']?o(_0x157d5f,'*Check\x20item*'):o(_0x157d5f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x11ce73=>{if(_0x11ce73['batch']['isUndo'])return!0x1;let _0x126c2b=!0x1;const _0x3d3650=_0x1b688c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x151668=>'todoListChecked'===_0x1b688c['_getAttributeKey'](_0x151668));for(const _0x31e678 of _0x3d3650){'todo'!=_0x31e678['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1b688c['_findSuggestions'](_0x31e678['getFirstRange'](),'attribute')['find'](_0x405fb5=>'listType'===_0x1b688c['_getAttributeKey'](_0x405fb5['suggestion']))||(_0x11ce73['removeMarker'](_0x31e678['getFirstMarker']()),_0x126c2b=!0x0));}return _0x126c2b;})),_0x1b688c['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x157d5f,'FORMAT_INDENT'));const _0x27a2cb={'type':'format','content':''};_0x1b688c['descriptionFactory']['registerDescriptionCallback'](_0x22740e=>{const {data:_0x72f6a5}=_0x22740e;if(!_0x72f6a5||'listType'!=_0x72f6a5['key'])return;let _0x27239d=_0x22740e['head'];for(;_0x27239d;){if(_0x27239d['data']&&(('listStyle'==_0x27239d['data']['key']||'listMarkerStyle'==_0x27239d['data']['key'])&&(_0x27239d['data']['newValue']&&'default'!=_0x27239d['data']['newValue']||'default'!=_0x27239d['data']['oldValue']&&!_0x72f6a5['newValue'])||!_0x36e3d7&&_0x27239d['data']['key']==m))return _0x27a2cb;_0x27239d=_0x27239d['next'];}if(null==_0x72f6a5['newValue'])switch(_0x72f6a5['oldValue']){case'bulleted':return _0x3ac4a1(o(_0x157d5f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3ac4a1(o(_0x157d5f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3ac4a1(o(_0x157d5f,'ELEMENT_TODO_LIST'));}switch(_0x72f6a5['newValue']){case'bulleted':return _0x243441(o(_0x157d5f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x243441(o(_0x157d5f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x243441(o(_0x157d5f,'ELEMENT_TODO_LIST'));}}),_0x1b688c['descriptionFactory']['registerDescriptionCallback'](_0x32ab16=>{const {data:_0x42fb3e}=_0x32ab16;if(_0x42fb3e&&'listIndent'==_0x42fb3e['key'])return null==_0x42fb3e['newValue']||null==_0x42fb3e['oldValue']&&0x0==_0x42fb3e['newValue']?_0x27a2cb:void 0x0;}),_0x1b688c['descriptionFactory']['registerDescriptionCallback'](_0x3a5831=>{if('attribute'!=_0x3a5831['type'])return;const {data:_0x55a59c}=_0x3a5831;if(!_0x55a59c||'listItemId'!=_0x55a59c['key'])return;const _0xc1a07b=le(_0x3a5831);return'newValue'==_0xc1a07b?{'type':'format','content':o(_0x157d5f,'*Merge:*\x20list\x20item')}:'oldValue'==_0xc1a07b?{'type':'format','content':o(_0x157d5f,'*Split:*\x20list\x20item')}:_0x27a2cb;}),_0x574275['model']['document']['registerPostFixer'](_0x4ab9f4=>this['listItemIdFixer'](_0x4ab9f4)),_0x574275['model']['document']['registerPostFixer'](_0x193ad0=>this['noTrackChangesFixer'](_0x193ad0)),_0x574275['model']['document']['registerPostFixer'](_0x293bba=>this['assureChains'](_0x293bba)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4f27b5){if(_0x4f27b5['batch']['isUndo']||!_0x4f27b5['batch']['isLocal'])return!0x1;let _0x5d72d7=!0x1;const _0x5b73e5=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x185461=>_0x185461['data']&&'listItemId'==_0x185461['data']['key'])['filter'](_0x44b27c=>_0x44b27c['data']['newValue']&&_0x44b27c['data']['oldValue']);for(const _0x24210b of _0x5b73e5)le(_0x24210b)||(_0x4f27b5['removeMarker'](_0x24210b['getFirstMarker']()),_0x5d72d7=!0x0);return _0x5d72d7;}['noTrackChangesFixer'](_0x55b00c){if(_0x55b00c['batch']['isUndo']||!_0x55b00c['batch']['isLocal'])return!0x1;const _0x4e196d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4e196d['trackChangesCommand']['value'])return!0x1;let _0x28f1a5=!0x1;const _0x4250c9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5f46d9=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4a63f2=>'attribute'==_0x4a63f2['type'])['filter'](_0x595ed9=>_0x4250c9['includes'](_0x595ed9['attributeKey']));if(0x0==_0x5f46d9['length'])return _0x28f1a5;for(const _0x3e7fdf of _0x5f46d9){const _0x586ab0=_0x4e196d['_findSuggestions'](_0x3e7fdf['range'],'attribute')['filter'](_0x3d5072=>!_0x3d5072['meta']['isNextTo'])['map'](_0x356955=>_0x356955['suggestion'])['filter'](_0xeb3d7d=>{const _0x39a0ae=_0x4e196d['_getAttributeKey'](_0xeb3d7d);return _0x4250c9['includes'](_0x39a0ae);});if(_0x586ab0['length']){for(const _0x2e1ec5 of _0x586ab0)_0x55b00c['removeMarker'](_0x2e1ec5['getFirstMarker']());_0x28f1a5=!0x0;}}return _0x28f1a5;}['assureChains'](_0x1eb792){if(_0x1eb792['batch']['isUndo']||!_0x1eb792['batch']['isLocal'])return!0x1;const _0x321f09=this['editor']['plugins']['get']('TrackChangesEditing');let _0x26104d=!0x1;const _0x516169=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x3abb8d of _0x321f09['getSuggestions']({'skipNotAttached':!0x0})){const _0x26d918=_0x321f09['_findSuggestions'](_0x3abb8d['getFirstRange'](),'attribute')['map'](_0x534d74=>_0x534d74['suggestion'])['filter'](_0x6e8f8b=>_0x6e8f8b['data']&&_0x516169['includes'](_0x6e8f8b['data']['key']));if(!_0x26d918['length'])continue;const _0x586817=_0x26d918[0x0]['head']['attributes']['groupId'];if(!_0x26d918['every'](_0x354175=>_0x354175['attributes']['groupId']===_0x586817)){for(const _0x2faca7 of _0x26d918)_0x187f83(_0x2faca7,_0x586817)&&(_0x26104d=!0x0);}}return _0x26104d;function _0x1dc1f4(_0x8effd6,_0x1c5104){for(const _0x1f4fe9 of _0x321f09['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1aa8e3=>'attribute'==_0x1aa8e3['type']&&_0x1aa8e3['attributes']['groupId']==_0x8effd6))_0x1f4fe9['setAttribute']('groupId',_0x1c5104);}function _0x187f83(_0x4c025c,_0x29a455){let _0x59650f=_0x4c025c['head'],_0x124a51=!0x1;for(;_0x59650f;)_0x59650f['attributes']['groupId']!=_0x29a455&&(_0x1dc1f4(_0x59650f['attributes']['groupId'],_0x29a455),_0x59650f['setAttribute']('groupId',_0x29a455),_0x124a51=!0x0),_0x59650f=_0x59650f['next'];return _0x124a51;}}['_supportLegacySuggestions'](){const _0xde6546=this['editor'],_0x497f3b=_0xde6546['locale'],_0xa4187d=_0xde6546['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xa4187d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3e89aa,_0x38cf4e){const _0x5ab345=[];for(let _0x5f5068 of _0x3e89aa)_0x5f5068['start']['nodeAfter']===_0x5f5068['end']['parent']&&(_0x5f5068=_0xde6546['model']['createRange'](_0xde6546['model']['createPositionAt'](_0x5f5068['start']['nodeAfter'],0x0))),_0x5ab345['push'](_0x5f5068);_0xde6546['model']['change'](_0xdbb642=>{const _0x4afef6=_0xde6546['model']['document']['selection'],_0x3bc655=Array['from'](_0x4afef6['getRanges']())['map'](_0x1760bc=>_0x374e30['fromRange'](_0x1760bc));_0xdbb642['setSelection'](_0x5ab345),_0xde6546['commands']['get'](_0x38cf4e['commandName'])['refresh'](),_0x38cf4e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xde6546['execute'](_0x38cf4e['commandName'],..._0x38cf4e['commandParams']),_0xdbb642['setSelection'](_0x3bc655);for(const _0x35bd9d of _0x3bc655)_0x35bd9d['detach']();});}),_0xa4187d['descriptionFactory']['registerElementLabel'](function(_0x4760dc){const _0x50c8b7=!_0xde6546['model']['schema']['isObject'](_0x4760dc),_0x4c5e6b=_0x4760dc['previousSibling'],_0x2419d6=_0x4760dc['nextSibling'],_0x2e9596=_0x4760dc['getAttribute']('listItemId'),_0x51a79d=!_0x4c5e6b||_0x4c5e6b['getAttribute']('listItemId')!==_0x2e9596,_0x5748f1=!_0x2419d6||_0x2419d6['getAttribute']('listItemId')!==_0x2e9596;return _0x50c8b7&&Boolean(_0x2e9596)&&_0x51a79d&&_0x5748f1;},_0x52349f=>o(_0x497f3b,'ELEMENT_LIST_ITEM',_0x52349f));}['_registerLegacyDescription'](){const _0x4bb9ed=this['editor'],_0x2547e9=_0x4bb9ed['locale'];function _0x1af6c6(_0x4361a4){const _0x2a0858=_0x4bb9ed['commands']['get']('bulletedList')['value'],_0x2ba522=_0x4bb9ed['commands']['get']('numberedList')['value'];return'numberedList'===_0x4361a4?_0x2a0858:_0x2ba522;}_0x4bb9ed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x56e82d){if('formatBlock'!=_0x56e82d['type'])return;const {data:_0x115a85}=_0x56e82d;if(!_0x115a85)return;let _0x599690,_0xd3a2e8,_0x5a64d4,_0x59583a;switch(_0x115a85['commandName']){case'bulletedList':_0x5a64d4=_0x115a85['commandParams'][0x0]['forceValue'],_0x59583a=_0x1af6c6(_0x115a85['commandName']),_0x599690=_0x5a64d4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x59583a&&_0x4bb9ed['config']['get']('list.multiBlock')||(_0x599690='*Change\x20to:*\x20%0'),_0xd3a2e8={'type':'format','content':o(_0x2547e9,_0x599690,o(_0x2547e9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5a64d4=_0x115a85['commandParams'][0x0]['forceValue'],_0x59583a=_0x1af6c6(_0x115a85['commandName']),_0x599690=_0x5a64d4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x59583a&&_0x4bb9ed['config']['get']('list.multiBlock')||(_0x599690='*Change\x20to:*\x20%0'),_0xd3a2e8={'type':'format','content':o(_0x2547e9,_0x599690,o(_0x2547e9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x599690='*Indent:*\x20%0',_0xd3a2e8={'type':'format','content':o(_0x2547e9,_0x599690,o(_0x2547e9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x599690=function(_0x19a004){const _0x52408f=_0x19a004['getFirstRange']();let _0x5dad85=_0x52408f['start']['nodeAfter'];for(;_0x5dad85&&_0x52408f['containsItem'](_0x5dad85);){if(_0x5dad85['getAttribute']('listIndent')>0x0)return!0x1;_0x5dad85=_0x5dad85['nextSibling'];}return!0x0;}(_0x56e82d)?o(_0x2547e9,'*Format:*\x20remove\x20from\x20%0',o(_0x2547e9,function(_0x20e1bd){return'ELEMENT_'+_0x20e1bd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x56e82d))):o(_0x2547e9,'*Outdent:*\x20%0',o(_0x2547e9,'ELEMENT_LIST_ITEM')),_0xd3a2e8={'type':'format','content':_0x599690};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x115a85['multipleBlocks']&&(_0x599690='*Merge:*\x20%0',_0xd3a2e8={'type':'deletion','content':o(_0x2547e9,_0x599690,o(_0x2547e9,'ELEMENT_LIST_ITEM'))});}return _0xd3a2e8;});}}function le(_0x4f1faa){let _0x46da13=_0x4f1faa['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x46da13;){const _0x482aa0=_0x46da13['getAttribute']('listItemId');if(!_0x482aa0)return!0x1;if(_0x482aa0==_0x4f1faa['data']['newValue'])return'newValue';if(_0x482aa0==_0x4f1faa['data']['oldValue'])return'oldValue';_0x46da13=_0x46da13['previousSibling'];}return!0x1;}class ue extends _0x14427b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1e7ff7=this['editor']['config']['get']('list.properties'),_0x5b6dcb=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e7ff7['styles']&&(_0x5b6dcb['enableDefaultAttributesIntegration']('listStyle'),_0x5b6dcb['registerBlockAttribute']('listStyle')),_0x1e7ff7['reversed']&&(_0x5b6dcb['enableDefaultAttributesIntegration']('listReversed'),_0x5b6dcb['registerBlockAttribute']('listReversed')),_0x1e7ff7['startIndex']&&(_0x5b6dcb['enableDefaultAttributesIntegration']('listStart'),_0x5b6dcb['registerBlockAttribute']('listStart'));const _0x1e72d8={'type':'format','content':''};_0x5b6dcb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x524c08=this['editor']['locale'];_0x5b6dcb['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x524c08,'FORMAT_LIST_REVERSED')),_0x5b6dcb['descriptionFactory']['registerDescriptionCallback'](_0x584086=>{const {data:_0x555887}=_0x584086;if(_0x555887&&'listReversed'==_0x555887['key'])return null==_0x555887['newValue']||0x0==_0x555887['newValue']&&null==_0x555887['oldValue']?_0x1e72d8:void 0x0;}),_0x5b6dcb['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x524c08,'FORMAT_LIST_START')),_0x5b6dcb['descriptionFactory']['registerDescriptionCallback'](_0x236b6a=>{const {data:_0x2d47e9}=_0x236b6a;if(_0x2d47e9&&'listStart'==_0x2d47e9['key'])return null==_0x2d47e9['newValue']||0x1==_0x2d47e9['newValue']&&null==_0x2d47e9['oldValue']?_0x1e72d8:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x34e116=>{if(_0x34e116['batch']['isUndo'])return!0x1;let _0x475976=!0x1;const _0x2109fe=_0x5b6dcb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ad95a=>{const _0x131913=_0x5b6dcb['_getAttributeKey'](_0x4ad95a);return'listStart'==_0x131913||'listReversed'==_0x131913;});for(const _0x5db22c of _0x2109fe){const _0x224f88=_0x5db22c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x224f88||'customNumbered'==_0x224f88)continue;_0x5b6dcb['_findSuggestions'](_0x5db22c['getFirstRange'](),'attribute')['find'](_0x455b3e=>'listType'==_0x5b6dcb['_getAttributeKey'](_0x455b3e['suggestion']))||(_0x34e116['removeMarker'](_0x5db22c['getFirstMarker']()),_0x475976=!0x0);}return _0x475976;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x199f82){const _0x5677dd=this['editor']['locale'],{data:_0x29abbf}=_0x199f82,_0x402cb7={'type':'format','content':''};if(!_0x29abbf||'listStyle'!=_0x29abbf['key'])return;if(!_0x29abbf['oldValue'])return'default'==_0x29abbf['newValue']?_0x402cb7:{'type':'format','content':''+o(_0x5677dd,'*Set\x20format:*\x20%0',o(_0x5677dd,this['_getTranslationKeyForListStyle'](_0x29abbf['newValue'])))};if(!_0x29abbf['newValue']){if('default'==_0x29abbf['oldValue'])return _0x402cb7;let _0x3dd94c=_0x199f82['head'];for(;_0x3dd94c;){if(_0x3dd94c['data']&&'listType'==_0x3dd94c['data']['key']&&_0x3dd94c['data']['newValue'])return _0x402cb7;_0x3dd94c=_0x3dd94c['next'];}return{'type':'format','content':''+o(_0x5677dd,'*Remove\x20format:*\x20%0',o(_0x5677dd,this['_getTranslationKeyForListStyle'](_0x29abbf['oldValue'])))};}if('default'!=_0x29abbf['newValue'])return{'type':'format','content':''+o(_0x5677dd,'*Set\x20format:*\x20%0',o(_0x5677dd,this['_getTranslationKeyForListStyle'](_0x29abbf['newValue'])))};let _0x241cb1=_0x199f82['head'];for(;_0x241cb1;){if(_0x241cb1['data']&&'listType'==_0x241cb1['data']['key']&&_0x241cb1['data']['newValue']&&_0x241cb1['data']['oldValue'])return _0x402cb7;_0x241cb1=_0x241cb1['next'];}return{'type':'format','content':o(_0x5677dd,'*Set\x20format:*\x20%0',o(_0x5677dd,'ELEMENT_'+_0x199f82['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1630a8=this['editor'],_0x48053c=_0x1630a8['locale'];_0x1630a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x83a9d3=>{if('formatBlock'!=_0x83a9d3['type'])return;const {data:_0x3d7b76}=_0x83a9d3;if(!_0x3d7b76)return;let _0x2cdf9f,_0x4ac2bf;switch(_0x3d7b76['commandName']){case'listStyle':_0x2cdf9f='*Change\x20to:*\x20%0',_0x4ac2bf={'type':'format','content':o(_0x48053c,_0x2cdf9f,o(_0x48053c,this['_getTranslationKeyForListStyle'](_0x3d7b76['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2cdf9f=_0x3d7b76['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4ac2bf={'type':'format','content':o(_0x48053c,_0x2cdf9f)};break;case'listStart':_0x2cdf9f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4ac2bf={'type':'format','content':o(_0x48053c,_0x2cdf9f,_0x3d7b76['commandParams'][0x0]['startIndex'])};}return _0x4ac2bf;});}['_getTranslationKeyForListStyle'](_0x2c4f28){return'ELEMENT_'+function(_0x19d254){if(pe['includes'](_0x19d254))return'bulleted';if(ye['includes'](_0x19d254))return'numbered';return null;}(_0x2c4f28)['toUpperCase']()+'_LIST_'+_0x2c4f28['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x14427b{static get['requires'](){return[_0xbe6889];}['init'](){const _0x1ab0fd=this['editor'],_0x431920=_0x1ab0fd['plugins']['get']('TrackChangesEditing'),_0x1dfc37=_0x1ab0fd['commands']['get']('enter');_0x431920['enableCommand']('enter',()=>{_0x1ab0fd['model']['change'](_0x1cd2c8=>{const _0x4d19b7=_0x1ab0fd['model']['document']['selection'],_0x10e97b=_0x4d19b7['getFirstPosition'](),_0x31d09f=_0x374e30['fromRange'](_0x4d19b7['getFirstRange']());if(_0x1dfc37['enterBlock'](_0x1cd2c8)){const _0x47eef8=_0x1ab0fd['model']['createPositionAt'](_0x10e97b['parent']['nextSibling'],0x0),_0xa6f162=_0x1cd2c8['createRange'](_0x10e97b,_0x47eef8);_0x431920['markInsertion'](_0xa6f162);}else _0x1cd2c8['setSelection'](_0x1cd2c8['createRange'](_0x31d09f['end']));_0x31d09f['detach'](),_0x1dfc37['fire']('afterExecute',{'writer':_0x1cd2c8});});}),_0x1ab0fd['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x1ab0fd,'split'),{'priority':'high'}),_0x1ab0fd['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2b5e98,_0xe11bf6,_0x3b144e)=>{const _0x58efdc=_0x3b144e['mapper']['markerNameToElements'](_0xe11bf6['markerName']);if(_0x58efdc){for(const _0x187632 of _0x58efdc)_0x187632['hasClass']('ck-suggestion-marker-split')&&(_0x3b144e['mapper']['unbindElementFromMarkerName'](_0x187632,_0xe11bf6['markerName']),_0x3b144e['writer']['remove'](_0x187632));}},{'priority':'high'}),_0x1ab0fd['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2b7bbf,_0x3ae15a,_0x13ba86)=>{_0x13ba86['options']['showSuggestionHighlights']&&_e(_0x1ab0fd,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2b7bbf,_0x3ae15a,_0x13ba86);},{'priority':'high'});}}class J extends _0x14427b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x39731c=this['editor']['plugins']['get']('TrackChangesEditing');_0x39731c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x39731c['enableCommand']('findNext'),_0x39731c['enableCommand']('findPrevious'),_0x39731c['enableCommand']('replace'),_0x39731c['enableCommand']('replaceAll');}['handleFindCommand'](_0x466e91,_0x34c4a3,_0x3c1c4a={}){const _0x8fb331=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x466e91(_0xd0dcb6=>('string'==typeof _0x34c4a3?_0x8fb331['findByTextCallback'](_0x34c4a3,_0x3c1c4a):_0x34c4a3)(_0xd0dcb6)['filter'](_0x1393ec=>!0x1===this['_isInDeletionRange'](_0x1393ec,_0xd0dcb6['item'])),_0x3c1c4a);}['_isInDeletionRange'](_0x177ad3,_0x22f744){const _0xfd5682=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x22f744,_0x177ad3['start']),this['editor']['model']['createPositionAt'](_0x22f744,_0x177ad3['end']));for(const _0x1245fc of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xfd5682['getIntersection'](_0x1245fc['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 _0x14427b{['afterInit'](){const _0x1bd609=this['editor']['locale'],_0x405731=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2c1acc,commandName:_0x4cdab7}of ro)this['editor']['plugins']['has'](_0x2c1acc)&&(_0x405731['enableDefaultAttributesIntegration'](_0x4cdab7),_0x405731['registerInlineAttribute'](_0x4cdab7));_0x1bd609['t'],_0x405731['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1bd609,'FORMAT_FONT_SIZE')),_0x405731['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1bd609,'FORMAT_FONT_FAMILY')),_0x405731['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1bd609,'FORMAT_FONT_COLOR')),_0x405731['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1bd609,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d3934=this['editor'],_0x304afe=_0x2d3934['locale'];_0x2d3934['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48a411=>{const _0x3eea3b=_0x304afe['t'];if('formatInline'!=_0x48a411['type'])return;const {data:_0x2b3a29}=_0x48a411;if(null!=_0x2b3a29){if('fontSize'==_0x2b3a29['commandName']){const _0x3ee970=_0x2b3a29['commandParams'][0x0]['value'];if(_0x3ee970){const _0x82097d=_0x3eea3b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3c9717=>_0x3c9717['model']==_0x3ee970)['title'])['toLowerCase']();return{'type':'format','content':o(_0x304afe,'*Set\x20font\x20size:*\x20%0',_0x82097d)};}return{'type':'format','content':o(_0x304afe,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2b3a29['commandName']){const _0x3b045c=_0x2b3a29['commandParams'][0x0]['value'];return _0x3b045c?{'type':'format','content':o(_0x304afe,'*Set\x20font\x20family:*\x20%0',_0x3b045c)}:{'type':'format','content':o(_0x304afe,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2b3a29['commandName']){const _0x58064e=_0x2b3a29['commandParams'][0x0]['value'];if(_0x58064e){const _0x3e261f=_0x50fc66(this['editor']['config']['get']('fontColor.colors'))['find'](_0x828a6e=>_0x828a6e['model']==_0x58064e);let _0x5c765e=_0x58064e,_0x1dc1f5='';return _0x3e261f&&(_0x5c765e=_0x3e261f['label'],_0x1dc1f5=_0x3eea3b(_0x5c765e)['toLowerCase']()),{'type':'format','content':o(_0x304afe,'*Set\x20font\x20color:*\x20%0',_0x1dc1f5)['trim'](),'color':{'value':_0x58064e,'title':_0x1dc1f5||_0x5c765e}};}return{'type':'format','content':o(_0x304afe,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2b3a29['commandName']){const _0x3f5b56=_0x2b3a29['commandParams'][0x0]['value'];if(_0x3f5b56){const _0x480480=_0x50fc66(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x91bcbd=>_0x91bcbd['model']==_0x3f5b56);let _0x10f478=_0x3f5b56,_0x3d9fee='';return _0x480480&&(_0x10f478=_0x480480['label'],_0x3d9fee=_0x3eea3b(_0x10f478)['toLowerCase']()),{'type':'format','content':o(_0x304afe,'*Set\x20font\x20background\x20color:*\x20%0',_0x3d9fee)['trim'](),'color':{'value':_0x3f5b56,'title':_0x3d9fee||_0x10f478}};}return{'type':'format','content':o(_0x304afe,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x14427b{['afterInit'](){const _0x121d56=this['editor'],_0x14c641=_0x121d56['plugins']['get']('TrackChangesEditing'),_0x2e31c9=_0x121d56['commands']['get']('copyFormat'),_0x5ab069=_0x121d56['commands']['get']('pasteFormat');_0x2e31c9&&_0x5ab069&&(_0x14c641['enableDefaultAttributesIntegration']('pasteFormat'),_0x14c641['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4b896e=this['editor'],_0x53d4b5=_0x4b896e['locale'];_0x4b896e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x443da8=>{if('formatBlock'!=_0x443da8['type']&&'formatInline'!=_0x443da8['type'])return;const {data:_0x13019a}=_0x443da8;if(_0x13019a&&'pasteFormat'===_0x13019a['commandName']){const _0x211f4c=[],_0x596eb7=_0x13019a['commandParams'][0x0];for(const [_0x3ad604,_0x29cd4d]of Object['entries'](_0x596eb7))_0x211f4c['push'](so(_0x4b896e,_0x3ad604,_0x29cd4d));return _0x211f4c['length']?{'type':'format','content':o(_0x53d4b5,'*Set\x20format\x20to:*\x20%0',_0x211f4c['join'](',\x20'))}:{'type':'format','content':o(_0x53d4b5,'*Remove\x20all\x20formatting*')};}});}}function so(_0xd70046,_0x18cddf,_0x9f94bc){const _0x1c601e=_0xd70046['locale']['t'],_0x5dbe33=_0x18cddf['split'](/(?=[A-Z])/)['join']('\x20'),_0x51bb5e=_0x1c601e(_0x5dbe33['charAt'](0x0)['toUpperCase']()+_0x5dbe33['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x9f94bc)return _0x51bb5e;if('fontColor'===_0x18cddf||'fontBackgroundColor'===_0x18cddf){const _0x35dc09=_0x50fc66(_0xd70046['config']['get']('fontColor.colors'))['find'](_0x49b453=>_0x49b453['model']==_0x9f94bc);return _0x51bb5e+'\x20('+(_0x35dc09?_0x1c601e(_0x35dc09['label'])['toLowerCase']():_0x9f94bc)+')';}if('fontSize'===_0x18cddf&&isNaN(parseFloat(_0x9f94bc))){const _0x3f574b=_0xd70046['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xd70046['config']['get']('fontSize.options'))['find'](_0x4dd490=>_0x4dd490['model']==_0x9f94bc);return _0x51bb5e+'\x20('+(_0x3f574b?_0x1c601e(_0x3f574b['title'])['toLowerCase']():_0x9f94bc)+')';}return _0x51bb5e+'\x20('+_0x9f94bc+')';}class Y extends _0x14427b{['_headingOptions'];['afterInit'](){const _0x3e6ebb=this['editor'];if(!_0x3e6ebb['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3e6ebb['config']['get']('heading.options');const _0x2da382=_0x3e6ebb['locale'],_0x34bbc1=_0x3e6ebb['plugins']['get']('TrackChangesEditing');_0x34bbc1['enableDefaultAttributesIntegration']('heading');for(const _0x225d7a of this['_headingOptions'])'paragraph'!=_0x225d7a['model']&&_0x34bbc1['descriptionFactory']['registerElementLabel'](_0x225d7a['model'],_0x3aae34=>{const _0x1a01e2=this['_getHeadingLevel'](_0x225d7a['model']);return null!==_0x1a01e2?_0x5d9918(_0x3aae34,_0x1a01e2):_0x526edd(_0x3aae34,_0x225d7a['title']);});function _0x5d9918(_0x53d9cc,_0x3eb628){return o(_0x2da382,'ELEMENT_HEADING',[_0x53d9cc,_0x3eb628]);}function _0x526edd(_0x5d1e39,_0x2c3523){return o(_0x2da382,'ELEMENT_HEADING_CUSTOM',[_0x5d1e39,_0x2c3523]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3bc490=this['editor'],_0x262482=_0x3bc490['locale'];function _0x3a1e5b(_0x52dd67,_0x1e094f){return o(_0x262482,'ELEMENT_HEADING_CUSTOM',[_0x52dd67,_0x1e094f]);}_0x3bc490['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26be63=>{if('formatBlock'!=_0x26be63['type'])return;const {data:_0x539531}=_0x26be63;if(_0x539531&&'heading'==_0x539531['commandName']){const _0x553762=_0x539531['commandParams'][0x0]['value'],_0x4a7bcd=this['_getHeadingLevel'](_0x553762);if(null!==_0x4a7bcd)return{'type':'format','content':o(_0x262482,'*Change\x20to:*\x20%0',(_0x39dac1=0x1,_0x3f17d0=_0x4a7bcd,o(_0x262482,'ELEMENT_HEADING',[_0x39dac1,_0x3f17d0])))};const _0x19a061=this['_headingOptions']['find'](_0x53b267=>_0x53b267['model']===_0x553762)['title'];return{'type':'format','content':o(_0x262482,'*Change\x20to:*\x20%0',_0x3a1e5b(0x1,_0x19a061))};}var _0x39dac1,_0x3f17d0;});}['_getHeadingLevel'](_0x2cfae4){const _0x1f27dd=_0x2cfae4['match'](/^heading(\d+)/);if(_0x1f27dd)return _0x1f27dd[0x1];const _0xcc8f50=this['_headingOptions']?.['find'](_0x4c2bf4=>_0x4c2bf4['model']==_0x2cfae4);if(_0xcc8f50&&_0xcc8f50['view']){const _0x1e60b5=_0xcc8f50['view'],_0x191172=(_0x1e60b5['name']??_0x1e60b5)['match'](/^h(\d+)/);if(_0x191172)return _0x191172[0x1];}return null;}}class Z extends _0x14427b{['afterInit'](){const _0x4eeb0b=this['editor'];if(!_0x4eeb0b['plugins']['has']('HighlightEditing'))return;const _0x3e59b7=_0x4eeb0b['plugins']['get']('TrackChangesEditing'),_0x1b6e2d=_0x4eeb0b['locale'];_0x3e59b7['enableDefaultAttributesIntegration']('highlight'),_0x3e59b7['registerInlineAttribute']('highlight'),_0x3e59b7['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1b6e2d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b4e0a=this['editor'],_0x2bad81=_0x5b4e0a['locale'];_0x5b4e0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2347bd=>{if('formatInline'!=_0x2347bd['type'])return;const {data:_0x1ba3d3}=_0x2347bd;if(_0x1ba3d3&&'highlight'==_0x1ba3d3['commandName']){const _0x36bab8=_0x2bad81['t'],_0x1b4af4=_0x1ba3d3['commandParams'][0x0]['value'];if(_0x1b4af4){const _0x5538eb=_0x5b4e0a['config']['get']('highlight.options')['find'](_0x111229=>_0x111229['model']==_0x1b4af4),_0x26f745=_0x36bab8(_0x5538eb['title'])['toLowerCase']();return{'type':'format','content':o(_0x2bad81,'*Set\x20highlight:*\x20%0',_0x26f745),'color':{'value':_0x5538eb['color'],'title':_0x5538eb['title']}};}return{'type':'format','content':o(_0x2bad81,'*Remove\x20highlight*',o(_0x2bad81,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x14427b{['afterInit'](){const _0x478220=this['editor'];if(!_0x478220['plugins']['has']('HorizontalLineEditing'))return;_0x478220['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x37e51d=_0x478220['plugins']['get']('TrackChangesEditing'),_0x14548b=_0x478220['locale'];_0x37e51d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2be2fd=>o(_0x14548b,'ELEMENT_HORIZONTAL_LINE',_0x2be2fd)),_0x478220['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x369bc3,{writer:_0x5ea5e1,options:_0x167140})=>{if(!_0x167140['showSuggestionHighlights'])return null;const _0x4c3c6c=_0x5ea5e1['createContainerElement']('div'),_0x2d1736=_0x5ea5e1['createEmptyElement']('hr');return _0x5ea5e1['addClass']('ck-horizontal-line',_0x4c3c6c),_0x5ea5e1['insert'](_0x5ea5e1['createPositionAt'](_0x4c3c6c,0x0),_0x2d1736),_0x4c3c6c;},'converterPriority':'high'});}}class et extends _0x14427b{['afterInit'](){const _0x2b3109=this['editor'];if(!_0x2b3109['plugins']['has']('HtmlEmbed'))return;const _0x41fe6b=_0x2b3109['plugins']['get']('TrackChangesEditing'),_0x2972d0=_0x2b3109['locale'];_0x41fe6b['descriptionFactory']['registerElementLabel']('rawHtml',_0x5ef353=>o(_0x2972d0,'ELEMENT_HTML_EMBED',_0x5ef353)),_0x41fe6b['enableDefaultAttributesIntegration']('htmlEmbed'),_0x41fe6b['registerBlockAttribute']('value'),_0x41fe6b['descriptionFactory']['registerDescriptionCallback'](_0x59e067=>{if('attribute'!=_0x59e067['type'])return;const {data:_0x2dde0a}=_0x59e067;if(_0x2dde0a&&'value'==_0x2dde0a['key']&&_0x59e067['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x256316=o(_0x2972d0,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2972d0,'*Change\x20%0\x20content*',_0x256316)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x430e66=this['editor'],_0xaf84f4=_0x430e66['locale'];_0x430e66['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bd83a=>{if('formatBlock'!=_0x3bd83a['type'])return;const {data:_0x5a3fc1}=_0x3bd83a;if(_0x5a3fc1&&'htmlEmbed'==_0x5a3fc1['commandName']){const _0x593ddf=o(_0xaf84f4,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xaf84f4,'*Change\x20%0\x20content*',_0x593ddf)};}});}}class it extends _0x14427b{['afterInit'](){const _0x3ab806=this['editor'];if(!_0x3ab806['plugins']['has']('ImageEditing'))return;const _0x20bf93=_0x3ab806['plugins']['get']('TrackChangesEditing'),_0x7e1ffd=_0x3ab806['plugins']['get']('ImageUtils'),_0x140356=_0x3ab806['locale'];_0x20bf93['enableCommand']('insertImage'),_0x20bf93['descriptionFactory']['registerElementLabel']('imageBlock',_0x6cd0a1=>o(_0x140356,'ELEMENT_IMAGE',_0x6cd0a1)),_0x20bf93['descriptionFactory']['registerElementLabel']('imageInline',_0x41be66=>o(_0x140356,'ELEMENT_INLINE_IMAGE',_0x41be66)),_0x20bf93['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x140356,'ELEMENT_CAPTION')),_0x3ab806['plugins']['has']('ImageUploadEditing')&&_0x20bf93['enableCommand']('uploadImage'),_0x3ab806['plugins']['has']('ImageBlockEditing')&&_0x3ab806['plugins']['has']('ImageInlineEditing')&&(_0x20bf93['enableCommand']('imageTypeInline',(_0x1cbdf9,_0x1db1fb)=>{const _0x26c0cc=_0x7e1ffd['getClosestSelectedImageElement'](_0x3ab806['model']['document']['selection']);_0x3ab806['model']['change'](()=>{_0x20bf93['markBlockFormat'](_0x26c0cc,{'commandName':'imageTypeInline','commandParams':[_0x1db1fb]},[],'convertBlockImageToInline');});}),_0x20bf93['enableCommand']('imageTypeBlock',(_0x465f92,_0x4ab23f)=>{_0x3ab806['model']['change'](_0x1b820a=>{let _0x58ec9d=_0x7e1ffd['getClosestSelectedImageElement'](_0x3ab806['model']['document']['selection']),_0x509183=_0x1b820a['createRangeOn'](_0x58ec9d);const _0x1e6d47=_0x2a0b49['fromPosition'](_0x509183['start'],'toPrevious'),_0x28b3e9=_0x2a0b49['fromPosition'](_0x509183['end'],'toNext');_0x20bf93['forceDefaultExecution'](()=>_0x465f92(_0x4ab23f)),_0x58ec9d=_0x7e1ffd['getClosestSelectedImageElement'](_0x3ab806['model']['document']['selection']),_0x509183=_0x1b820a['createRangeOn'](_0x58ec9d);const _0x49bad2=_0x1b820a['createRange'](_0x1e6d47,_0x28b3e9);_0x1e6d47['detach'](),_0x28b3e9['detach'](),_0x20bf93['markBlockFormat'](_0x58ec9d,{'commandName':'imageTypeInline','commandParams':[_0x4ab23f]},[],'convertInlineImageToBlock'),_0x49bad2['start']['isBefore'](_0x509183['start'])&&_0x20bf93['markInsertion'](_0x1b820a['createRange'](_0x49bad2['start'],_0x509183['start']),'convertInlineImageToBlock'),_0x509183['end']['isBefore'](_0x49bad2['end'])&&_0x20bf93['markInsertion'](_0x1b820a['createRange'](_0x509183['end'],_0x49bad2['end']),'convertInlineImageToBlock');});}),_0x20bf93['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x20bf93['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x20bf93['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x20bf93['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x20bf93['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x20bf93['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xfd4de4])=>{const _0x356fbf=_0x20bf93['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x511c0b=_0xfd4de4['start'],_0x19b738=_0xfd4de4['end'];const _0x159402=_0x3ab806['model']['schema']['getNearestSelectionRange'](_0x511c0b,'backward'),_0x207964=_0x3ab806['model']['schema']['getNearestSelectionRange'](_0x19b738,'forward');_0x159402['isCollapsed']&&(_0x511c0b=_0x159402['start']),_0x207964['isCollapsed']&&(_0x19b738=_0x207964['end']),_0x356fbf([_0x3ab806['model']['createRange'](_0x511c0b,_0x19b738)]);}),_0x20bf93['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x31f560),_0x20bf93['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x31f560)),_0x3ab806['plugins']['has']('ImageCaptionEditing')&&(_0x20bf93['enableCommand']('toggleImageCaption',(_0x38c779,_0x2d46fb)=>{const _0x3e96f0=_0x3ab806['plugins']['get']('ImageCaptionUtils');let _0x3f0df4=_0x7e1ffd['getClosestSelectedImageElement'](_0x3ab806['model']['document']['selection']),_0x152e77=_0x3e96f0['getCaptionFromImageModelElement'](_0x3f0df4);_0x3ab806['model']['change'](()=>{if(_0x152e77)return void _0x20bf93['markDeletion'](_0x3ab806['model']['createRangeOn'](_0x152e77));const _0x2c60e0=_0x7e1ffd['isBlockImage'](_0x3f0df4);_0x38c779(_0x2d46fb),_0x3f0df4=_0x7e1ffd['getClosestSelectedImageElement'](_0x3ab806['model']['document']['selection']),_0x152e77=_0x3e96f0['getCaptionFromImageModelElement'](_0x3f0df4),_0x20bf93['markInsertion'](_0x3ab806['model']['createRangeOn'](_0x152e77),_0x2c60e0?null:'imageCaption');});}),_0x20bf93['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x31f560));const _0x3eef13=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x149471(_0x3c66f8,_0x5c1601){const _0x55a808=_0x3eef13['findIndex'](({type:_0x30ac04,subType:_0x342595})=>_0x3c66f8['type']==_0x30ac04&&_0x3c66f8['subType']==_0x342595),_0x4c719c=_0x3eef13['findIndex'](({type:_0x5e0dc0,subType:_0x2204ee})=>_0x5c1601['type']==_0x5e0dc0&&_0x5c1601['subType']==_0x2204ee);if(_0x55a808<0x0||_0x4c719c<0x0)return!0x1;const _0x3bf64c=_0x3c66f8['getFirstRange'](),_0x3fa8eb=_0x5c1601['getFirstRange']();if((0x0==_0x55a808||0x1==_0x55a808)&&0x2==_0x4c719c&&_0x3bf64c['isIntersecting'](_0x3fa8eb))return!0x0;if(0x2==_0x55a808&&0x3==_0x4c719c){const _0x578b72=_0x20bf93['_findSuggestions'](_0x3bf64c,'insertion')['filter'](({suggestion:_0x170541,meta:_0x273b1e})=>_0x273b1e['isOwn']&&'convertInlineImageToBlock'==_0x170541['subType']);if(_0x578b72['length']>0x1&&_0x3fa8eb['end']['isEqual'](_0x3bf64c['start']))return!0x0;if(0x1==_0x578b72['length']&&(_0x3bf64c['start']['isEqual'](_0x3fa8eb['end'])||_0x3bf64c['end']['isEqual'](_0x3fa8eb['start'])))return!0x0;}if(0x3==_0x55a808&&0x3==_0x4c719c&&_0x3bf64c['start']['isBefore'](_0x3fa8eb['start'])){const _0x246fdc=_0x3bf64c['end']['nodeAfter'],_0xa1b41b=_0x3fa8eb['start']['nodeBefore'];return _0x7e1ffd['isBlockImage'](_0x246fdc)&&_0x246fdc===_0xa1b41b;}return!0x1;}function _0x31f560(_0xba20a8,_0x2b50dc){return _0x149471(_0xba20a8,_0x2b50dc)?[_0xba20a8,_0x2b50dc]:_0x149471(_0x2b50dc,_0xba20a8)?[_0x2b50dc,_0xba20a8]:null;}_0x3ab806['plugins']['has']('ImageResize')&&(_0x20bf93['enableDefaultAttributesIntegration']('resizeImage'),_0x20bf93['registerBlockAttribute']('resizedWidth'),_0x20bf93['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x140356,'FORMAT_IMAGE_SIZE'))),_0x3ab806['plugins']['has']('ImageTextAlternativeEditing')&&(_0x20bf93['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x20bf93['registerBlockAttribute']('alt')),_0x20bf93['descriptionFactory']['registerDescriptionCallback'](_0xec1b00=>{if(!!_0x3eef13['find'](({type:_0x53b8ef,subType:_0x2c7912})=>_0xec1b00['type']==_0x53b8ef&&_0xec1b00['subType']==_0x2c7912))return _0xec1b00['previous']?{}:void 0x0;}),_0x20bf93['descriptionFactory']['registerDescriptionCallback'](_0x46aa95=>{if('insertion'==_0x46aa95['type']||'deletion'==_0x46aa95['type']){const _0x2bd8ae=_0x46aa95['getContainedElement']();if(_0x2bd8ae&&_0x2bd8ae['is']('element','caption'))return{'type':'insertion'==_0x46aa95['type']?'addObject':'removeObject','element':_0x2bd8ae,'quantity':0x1};}}),_0x20bf93['descriptionFactory']['registerDescriptionCallback'](_0x5f5cf2=>'formatBlock'==_0x5f5cf2['type']&&'convertInlineImageToBlock'==_0x5f5cf2['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5f5cf2['type']&&'convertBlockImageToInline'==_0x5f5cf2['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x20bf93['descriptionFactory']['registerDescriptionCallback'](_0x137bdd=>{if('attribute'!=_0x137bdd['type'])return;const {data:_0x4ac157}=_0x137bdd;if(!_0x4ac157||'alt'!=_0x4ac157['key'])return;const _0x56e11b=_0x4ac157['newValue'];return _0x56e11b?{'type':'format','content':o(_0x140356,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x56e11b+'\x22')}:{'type':'format','content':o(_0x140356,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41b341=this['editor'],_0x3ad772=_0x41b341['locale'];_0x41b341['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x558b6d=>{if('formatBlock'!=_0x558b6d['type']&&'formatInline'!=_0x558b6d['type'])return;const {data:_0x5a114c}=_0x558b6d;if(_0x5a114c){if('imageTextAlternative'==_0x5a114c['commandName']){const _0xc385d0=_0x5a114c['commandParams'][0x0]['newValue'];return _0xc385d0?{'type':'format','content':o(_0x3ad772,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xc385d0+'\x22')}:{'type':'format','content':o(_0x3ad772,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5a114c['commandName']){const _0x11389b=_0x5a114c['commandParams'][0x0]['width'];return _0x11389b?{'type':'format','content':o(_0x3ad772,'*Set\x20image\x20width:*\x20%0',_0x11389b)}:{'type':'format','content':o(_0x3ad772,'*Reset\x20image\x20width*')};}}});}}class st extends _0x14427b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2fe12a=this['editor']['locale'],_0x556182=this['editor']['plugins']['get']('TrackChangesEditing');_0x556182['enableDefaultAttributesIntegration']('replaceImageSource'),_0x556182['registerBlockAttribute']('src'),_0x556182['descriptionFactory']['registerDescriptionCallback'](_0x200b4e=>{if('attribute'!=_0x200b4e['type'])return;const {data:_0x3b0a0d}=_0x200b4e;return _0x3b0a0d&&'src'==_0x3b0a0d['key']?_0x3b0a0d['newValue']&&_0x3b0a0d['oldValue']?{'type':'format','content':o(_0x2fe12a,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x12608e=this['editor']['plugins']['get']('TrackChangesEditing');_0x12608e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x12608e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x12608e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x12608e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x569a03=this['editor'],_0x477509=_0x569a03['locale'];_0x569a03['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x570751=>{if('formatBlock'!=_0x570751['type']&&'formatInline'!=_0x570751['type'])return;const {data:_0x24010e}=_0x570751;if(!_0x24010e||'replaceImageSource'!=_0x24010e['commandName'])return;return{'type':'format','content':o(_0x477509,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x14427b{['afterInit'](){const _0xa3e13f=this['editor'];if(!_0xa3e13f['plugins']['has']('ImageStyleEditing'))return;const _0x15d71f=_0xa3e13f['plugins']['get']('TrackChangesEditing'),_0x43b981=_0xa3e13f['plugins']['get']('ImageUtils'),_0x387058={};_0x15d71f['enableCommand']('imageStyle',(_0x4f633b,_0xfde3e4)=>{const _0x20cbb5=_0xa3e13f['plugins']['get']('Users')['me'],_0x1394e1=_0xa3e13f['commands']['get']('imageStyle');let _0x55b388=_0x43b981['getClosestSelectedImageElement'](_0xa3e13f['model']['document']['selection']),_0x1db575=_0xa3e13f['model']['createRangeOn'](_0x55b388),_0x1078aa=_0x1394e1['value'];if(_0x1078aa==_0xfde3e4['value'])return;const _0x1bad1f={'commandName':'imageStyle','commandParams':[_0xfde3e4],'formatGroupId':_0x323406()};_0xa3e13f['model']['change'](()=>{if(_0x15d71f['getSuggestions']()['filter'](_0x1421b7=>_0x1421b7['isInContent']&&_0x20cbb5==_0x1421b7['author']&&('formatBlock'==_0x1421b7['type']||'formatInline'==_0x1421b7['type'])&&('imageStylePreApply'==_0x1421b7['subType']||'imageStylePostApply'==_0x1421b7['subType'])&&_0x1421b7['getFirstRange']()['isEqual'](_0x1db575))['forEach'](_0x3b920d=>_0x15d71f['discardSuggestion'](_0x3b920d['head'])),_0x55b388=_0x43b981['getClosestSelectedImageElement'](_0xa3e13f['model']['document']['selection']),_0x1db575=_0xa3e13f['model']['createRangeOn'](_0x55b388),_0x1394e1['refresh'](),_0xa3e13f['commands']['get']('imageTypeInline')['refresh'](),_0xa3e13f['commands']['get']('imageTypeBlock')['refresh'](),_0x1078aa=_0x1394e1['value'],_0x1078aa!=_0xfde3e4['value'])return _0x43b981['isInlineImage'](_0x55b388)&&_0x1394e1['shouldConvertImageType'](_0xfde3e4['value'],_0x55b388)?(_0x4f633b({..._0xfde3e4,'setImageSizes':!0x1}),_0x55b388=_0x43b981['getClosestSelectedImageElement'](_0xa3e13f['model']['document']['selection']),void _0x15d71f['markBlockFormat'](_0x55b388,{..._0x1bad1f,'commandReversedParams':[{'value':_0x1078aa||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x43b981['isBlockImage'](_0x55b388)?_0x15d71f['markBlockFormat'](_0x55b388,_0x1bad1f,[],'imageStylePostApply'):_0x15d71f['markInlineFormat'](_0x1db575,_0x1bad1f,'imageStylePostApply'));});});for(const _0x494033 of _0xa3e13f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x387058[_0x494033['name']]=_0x494033['title']['toLowerCase']();_0x15d71f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x15d71f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x15d71f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x15d71f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3ed7fb])=>{_0x43b981['setImageNaturalSizeAttributes'](_0x3ed7fb['getContainedElement']());}),_0x15d71f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x7f3eaa,_0x7fad34)=>{_0x15d71f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x7f3eaa,{'commandName':_0x7fad34['commandName'],'commandParams':_0x7fad34['commandReversedParams']});}),_0x15d71f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1a984b,_0x38355a){if(_0x25abd6(_0x1a984b,_0x38355a))return[_0x1a984b,_0x38355a];if(_0x25abd6(_0x38355a,_0x1a984b))return[_0x38355a,_0x1a984b];return null;});const _0x2b3a99=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x25abd6(_0x10404f,_0x14c42b){const _0x13b3b8=_0x2b3a99['findIndex'](({type:_0x38e9a5,subType:_0x303139})=>_0x10404f['type']==_0x38e9a5&&_0x10404f['subType']==_0x303139),_0x3e3b0a=_0x2b3a99['findIndex'](({type:_0x33942e,subType:_0x9ea5b})=>_0x14c42b['type']==_0x33942e&&_0x14c42b['subType']==_0x9ea5b);if(_0x13b3b8<0x0||_0x3e3b0a<0x0)return!0x1;const _0x20c4b5=_0x10404f['getFirstRange'](),_0x48263c=_0x14c42b['getFirstRange']();if((0x0==_0x13b3b8||0x1==_0x13b3b8)&&0x2==_0x3e3b0a&&_0x20c4b5['isIntersecting'](_0x48263c))return!0x0;if(0x2==_0x13b3b8&&0x3==_0x3e3b0a){const _0x37efa2=_0x15d71f['_findSuggestions'](_0x20c4b5,'insertion')['filter'](({suggestion:_0x400ffd,meta:_0x5d1c37})=>_0x5d1c37['isOwn']&&'convertInlineImageToBlock'==_0x400ffd['subType']);if(_0x37efa2['length']>0x1&&_0x48263c['end']['isEqual'](_0x20c4b5['start']))return!0x0;if(0x1==_0x37efa2['length']&&(_0x20c4b5['start']['isEqual'](_0x48263c['end'])||_0x20c4b5['end']['isEqual'](_0x48263c['start'])))return!0x0;}if(0x3==_0x13b3b8&&0x3==_0x3e3b0a&&_0x20c4b5['start']['isBefore'](_0x48263c['start'])){const _0x5de9e7=_0x20c4b5['end']['nodeAfter'],_0x211b48=_0x48263c['start']['nodeBefore'];return _0x43b981['isBlockImage'](_0x5de9e7)&&_0x5de9e7===_0x211b48;}return!0x1;}_0xa3e13f['model']['document']['registerPostFixer'](()=>{let _0x12ce5e=!0x1;const _0xe7ef55=Array['from'](_0xa3e13f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3bdeba,data:_0x4c14be}of _0xe7ef55){const {group:_0xc09210,type:_0x2dc97b,subType:_0x2263f7,id:_0x51495a}=_0x15d71f['_splitMarkerName'](_0x3bdeba);if('suggestion'==_0xc09210&&_0x15d71f['hasSuggestion'](_0x51495a)){if('formatBlock'==_0x2dc97b&&('imageStylePreApply'==_0x2263f7||'imageStylePostApply'==_0x2263f7)){const _0x3681ce=_0x15d71f['getSuggestion'](_0x51495a);if(_0x4c14be['newRange']){const _0x577935=_0x3681ce['getFirstRange']()['getContainedElement']();if(_0x43b981['isBlockImage'](_0x577935))continue;_0x15d71f['discardSuggestion'](_0x3681ce),_0x12ce5e=!0x0;}}if('insertion'==_0x2dc97b&&'imageCaption'==_0x2263f7&&!_0x4c14be['newRange']){const _0x17c7a9=_0x15d71f['getSuggestion'](_0x51495a);_0x17c7a9['next']&&_0x17c7a9['next']['isInContent']&&(_0x15d71f['discardSuggestion'](_0x17c7a9['next']),_0x12ce5e=!0x0);}}}return _0x12ce5e;}),this['_registerLegacyDescription'](_0x387058);}['_registerLegacyDescription'](_0x4c5915){const _0x34ce75=this['editor'],_0xfb3891=_0x34ce75['locale'];_0x34ce75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3781c4=>{if('formatBlock'!=_0x3781c4['type']&&'formatInline'!=_0x3781c4['type'])return;const {data:_0x13ac86}=_0x3781c4;if(!_0x13ac86||'imageStyle'!=_0x13ac86['commandName'])return;const _0x479b0b=_0x13ac86['commandParams'][0x0]['value'];return _0x1a80fe('side'===_0x479b0b?o(_0xfb3891,'FORMAT_SIDE_IMAGE'):_0x4c5915[_0x479b0b]||_0x479b0b);function _0x1a80fe(_0x3e58b0){return{'type':'format','content':o(_0xfb3891,'*Format:*\x20%0',_0x3e58b0)};}});}}class ot extends _0x14427b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3c1744){super(_0x3c1744),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x500234=this['editor'],_0x4dc1b9=_0x500234['commands']['get']('importWord'),_0x339162=_0x500234['commands']['get']('trackChanges');_0x4dc1b9&&(_0x4dc1b9['on']('execute',(_0x3f5431,[,_0x573d07])=>{this['_trackChangesValueDuringImport']=_0x339162['value'],_0x573d07['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4dc1b9,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4dc1b9,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x339162['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x500234['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x10d4f4,_0x154f02){const {suggestions:_0x3a3ede}=_0x154f02,_0x3e59cd=this['editor']['commands']['get']('trackChanges'),_0xd249ec=_0x3e59cd['value'];this['_trackChangesValueDuringImport']!==_0xd249ec&&(_0x3e59cd['execute'](),this['_trackChangesExecuted']=!0x0),_0x3a3ede&&_0x3a3ede['forEach'](({id:_0x55a66e,type:_0x5793e2,author:_0x1fe73c,created_at:_0x199f66})=>{const _0x4f5f4f={'id':_0x55a66e,'type':_0x5793e2,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1fe73c,'createdAt':_0x199f66?new Date(_0x199f66):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4f5f4f);});}}class rt extends _0x14427b{['afterInit'](){const _0x45877b=this['editor'],_0x168fd9=_0x45877b['plugins']['get']('TrackChangesEditing');if(_0x45877b['plugins']['has']('IndentEditing')&&(_0x168fd9['enableCommand']('indent'),_0x168fd9['enableCommand']('outdent')),_0x45877b['plugins']['has']('IndentBlock')){for(const _0x145a75 of['indentBlock','outdentBlock'])_0x168fd9['enableDefaultAttributesIntegration'](_0x145a75);}const _0x3ef2b4=_0x45877b['locale'];_0x168fd9['registerBlockAttribute']('blockIndent'),_0x168fd9['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3ef2b4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x344e94=this['editor'],_0x2fb69e=_0x344e94['locale'],_0x52d98a=_0x344e94['plugins']['get']('TrackChangesEditing');_0x52d98a['descriptionFactory']['registerDescriptionCallback'](_0xf8073=>{if('formatBlock'!=_0xf8073['type'])return;const {data:_0x2d61d2}=_0xf8073;if(!_0x2d61d2)return;if('indentBlock'!=_0x2d61d2['commandName']&&'outdentBlock'!=_0x2d61d2['commandName'])return;const _0x280cc8=_0xf8073['getItems']()[0x0],_0x265036=_0x52d98a['descriptionFactory']['getItemLabel'](_0x280cc8);return'indentBlock'==_0x2d61d2['commandName']?{'type':'format','content':o(_0x2fb69e,'*Indent:*\x20%0',_0x265036)}:'outdentBlock'==_0x2d61d2['commandName']?{'type':'format','content':o(_0x2fb69e,'*Outdent:*\x20%0',_0x265036)}:void 0x0;});}}class at extends _0x14427b{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x14427b{['afterInit'](){const _0x401236=this['editor'];if(!_0x401236['plugins']['has']('LinkEditing'))return;const _0x2829a8=_0x401236['plugins']['get']('TrackChangesEditing'),_0x35ac02=_0x401236['commands']['get']('link');_0x2829a8['enableDefaultAttributesIntegration']('link'),_0x2829a8['enableDefaultAttributesIntegration']('unlink'),_0x2829a8['registerInlineAttribute']('linkHref');for(const _0x3a6433 of _0x35ac02['manualDecorators'])_0x2829a8['registerInlineAttribute'](_0x3a6433['id']),_0x2829a8['descriptionFactory']['registerAttributeLabel'](_0x3a6433['id'],'link\x20('+_0x3a6433['label']['toLowerCase']()+')');_0x2829a8['descriptionFactory']['registerDescriptionCallback'](_0x56958f=>{if('attribute'!=_0x56958f['type'])return;const {data:_0x41ea6d}=_0x56958f;if(!_0x41ea6d||'linkHref'!=_0x41ea6d['key'])return;const _0x176c63=_0x41ea6d['newValue'],_0x35f56d=_0x401236['locale'];return{'type':'format','content':null==_0x176c63?o(_0x35f56d,'*Remove\x20link*'):o(_0x35f56d,'*Set\x20link:*\x20%0','\x22'+_0x176c63+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3912e3=this['editor'],_0x3d8e9c=_0x3912e3['locale'];_0x3912e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46fed8=>{if('formatInline'!=_0x46fed8['type'])return;const {data:_0x5ebfce}=_0x46fed8;if(_0x5ebfce){if('link'==_0x5ebfce['commandName']){const _0x41ffef=_0x5ebfce['commandParams'][0x0];return{'type':'format','content':o(_0x3d8e9c,'*Set\x20link:*\x20%0','\x22'+_0x41ffef+'\x22')};}return'unlink'==_0x5ebfce['commandName']?{'type':'format','content':o(_0x3d8e9c,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x14427b{['afterInit'](){const _0x2dbed4=this['editor'],_0x58b5fb=_0x2dbed4['locale'];if(!_0x2dbed4['plugins']['has']('LegacyListEditing'))return;const _0x16cead=_0x2dbed4['plugins']['get']('TrackChangesEditing'),_0x48c6f4=_0x2dbed4['plugins']['has']('LegacyTodoListEditing');function _0x198b87(_0x5f65b0){return()=>{const _0x5117fd=_0x2dbed4['model']['document']['selection'],_0x1eb1d5=_0x2dbed4['commands']['get'](_0x5f65b0);if(_0x1eb1d5['value'])return void _0x2dbed4['execute']('paragraph',{});const _0x1b6370=_0x5f65b0['slice'](0x0,-0x4),_0x2e185c=function(_0x190fa1,_0x28bffc,_0x3111f8){let _0x16c69c=Array['from'](_0x190fa1)['filter'](_0x1f7c2e=>function(_0x537608,_0x280185){return _0x280185['checkChild'](_0x537608['parent'],'listItem')&&!_0x280185['isObject'](_0x537608);}(_0x1f7c2e,_0x3111f8));_0x16c69c=_0x16c69c['filter'](_0x137dce=>!_0x137dce['is']('element','listItem')||_0x137dce['getAttribute']('listType')!=_0x28bffc);const _0x2da103=new Set();for(const _0x38ddd3 of _0x16c69c)_0x38ddd3['is']('element','listItem')?_0x2da103['add'](me(_0x38ddd3)):_0x2da103['add'](_0x38ddd3);return Array['from'](_0x2da103);}(_0x5117fd['getSelectedBlocks'](),_0x1b6370,_0x2dbed4['model']['schema']);_0x2dbed4['model']['change'](()=>{for(const _0xb0c055 of _0x2e185c)_0x16cead['markBlockFormat'](_0xb0c055,{'commandName':_0x5f65b0,'commandParams':[{'forceValue':!_0x1eb1d5['value']}],'formatGroupId':'blockName'},fe(_0xb0c055));});};}function _0x47027c(_0x5d5f57){return()=>{const _0x1cff54=function(_0x3dd51e){let _0xa068af=Array['from'](_0x3dd51e);const _0x21bed8=_0xa068af['findIndex'](_0x435d14=>'listItem'!=_0x435d14['name']);return _0x21bed8>-0x1&&(_0xa068af=_0xa068af['slice'](0x0,_0x21bed8)),_0xa068af;}(_0x2dbed4['model']['document']['selection']['getSelectedBlocks']()),_0x404864=_0x2dbed4['model']['createRange'](_0x2dbed4['model']['createPositionAt'](_0x1cff54[0x0],'before'),_0x2dbed4['model']['createPositionAt'](_0x1cff54[_0x1cff54['length']-0x1],'end'));_0x2dbed4['model']['change'](()=>{_0x16cead['markBlockFormat'](_0x404864,{'commandName':_0x5d5f57,'commandParams':[],'formatGroupId':'listIndent'},function(_0x7536b6){const _0x57473d=new Set();for(const _0x198213 of _0x7536b6){let _0x1a1579=_0x198213['nextSibling'];for(;_0x1a1579&&_0x1a1579['getAttribute']('listIndent')>_0x198213['getAttribute']('listIndent');)_0x57473d['add'](_0x1a1579),_0x1a1579=_0x1a1579['nextSibling'];}return Array['from'](_0x57473d);}(_0x1cff54));});};}_0x16cead['enableCommand']('numberedList',_0x198b87('numberedList')),_0x16cead['enableCommand']('bulletedList',_0x198b87('bulletedList')),_0x48c6f4&&_0x16cead['enableCommand']('todoList',_0x198b87('todoList')),_0x16cead['enableCommand']('indentList',_0x47027c('indentList')),_0x16cead['enableCommand']('outdentList',_0x47027c('outdentList')),_0x48c6f4&&_0x16cead['enableCommand']('checkTodoList',()=>{const _0x4807ad=_0x2dbed4['commands']['get']('checkTodoList'),_0x4364cf=Array['from'](_0x4807ad['_selectedElements']);_0x4364cf['filter'](_0x4432f0=>_0x4432f0['getAttribute']('todoListChecked')!=_0x4807ad['value']),_0x2dbed4['model']['change'](()=>{for(const _0x33e1b0 of _0x4364cf)_0x16cead['markBlockFormat'](_0x33e1b0,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4807ad['value']}]});});}),_0x16cead['descriptionFactory']['registerElementLabel']('listItem',_0x14bd06=>o(_0x58b5fb,'ELEMENT_LIST_ITEM',_0x14bd06)),_0x16cead['descriptionFactory']['registerDescriptionCallback'](_0xed1eec=>{if('formatBlock'!=_0xed1eec['type']&&'formatInline'!=_0xed1eec['type'])return;const {data:_0x41f79e}=_0xed1eec;if(_0x41f79e){if('numberedList'==_0x41f79e['commandName']||'bulletedList'==_0x41f79e['commandName']||'todoList'==_0x41f79e['commandName'])switch(_0x41f79e['commandName']['replace']('List','')){case'bulleted':return _0x3c9bed(o(_0x58b5fb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3c9bed(o(_0x58b5fb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3c9bed(o(_0x58b5fb,'ELEMENT_TODO_LIST'));}if('indentList'==_0x41f79e['commandName'])return{'type':'format','content':o(_0x58b5fb,'*Indent:*\x20%0',o(_0x58b5fb,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x41f79e['commandName'])return{'type':'format','content':o(_0x58b5fb,'*Outdent:*\x20%0',o(_0x58b5fb,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x41f79e['commandName'])return _0x41f79e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x58b5fb,'*Check\x20item*')}:{'type':'format','content':o(_0x58b5fb,'*Uncheck\x20item*')};}function _0x3c9bed(_0x545b9e){return{'type':'format','content':o(_0x58b5fb,'*Change\x20to:*\x20%0',_0x545b9e)};}});}}function me(_0x31d8c2){const _0x5cec39=_0x31d8c2['getAttribute']('listIndent');if(0x0==_0x5cec39)return _0x31d8c2;let _0x122229=_0x31d8c2;for(;_0x31d8c2['previousSibling']&&_0x31d8c2['previousSibling']['is']('element','listItem');){const _0x24bd1d=_0x31d8c2['previousSibling']['getAttribute']('listIndent');if(_0x24bd1d==_0x5cec39)_0x122229=_0x31d8c2['previousSibling'];else{if(_0x24bd1d<_0x5cec39)break;}_0x31d8c2=_0x31d8c2['previousSibling'];}return _0x122229;}function fe(_0x1e8c2e){const _0x1daf33=[];if(_0x1e8c2e['is']('element','listItem')&&_0x1e8c2e['getAttribute']('listIndent')>0x0){let _0x5d43d9=_0x1e8c2e['nextSibling'];for(;_0x5d43d9&&'listItem'==_0x5d43d9['name']&&_0x5d43d9['getAttribute']('listIndent')==_0x1e8c2e['getAttribute']('listIndent');)_0x1daf33['push'](_0x5d43d9),_0x5d43d9=_0x5d43d9['nextSibling'];}return _0x1daf33;}class K extends _0x14427b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x50ebb7=this['editor']['config']['get']('list.properties'),_0x2a8e5e=this['editor']['plugins']['get']('TrackChangesEditing');_0x50ebb7['styles']&&_0x2a8e5e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x50ebb7['reversed']&&_0x2a8e5e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x50ebb7['startIndex']&&_0x2a8e5e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2a8e5e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3d1e41,_0x49a499={}){const _0x541751=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfee243=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x541751['markMultiRangeBlockFormat'](_0xfee243,{'commandName':'listStyle','commandParams':[{'type':_0x49a499['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x216cfd,_0x5d7eed={}){const _0x231799=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5095bf=this['_getSuggestionBlocks'](_0x3c578b=>_0x3c578b['is']('element','listItem')&&'numbered'===_0x3c578b['getAttribute']('listType'));if(_0x5095bf['length']<0x1)return;const _0x1f0c4a=_0x5095bf['map'](_0x41ea47=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x41ea47,'before'),this['editor']['model']['createPositionAt'](_0x41ea47,0x0)));this['editor']['model']['change'](()=>{_0x231799['markMultiRangeBlockFormat'](_0x1f0c4a,{'commandName':'listReversed','commandParams':[{'reversed':_0x5d7eed['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4bb247,_0x3d57fe={}){const _0x44a65d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x594f13=this['_getSuggestionBlocks'](_0x5983be=>_0x5983be['is']('element','listItem')&&'numbered'===_0x5983be['getAttribute']('listType'));if(_0x594f13['length']<0x1)return;const _0x23dd87=_0x594f13['map'](_0x3a49c2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3a49c2,'before'),this['editor']['model']['createPositionAt'](_0x3a49c2,0x0)));this['editor']['model']['change'](()=>{_0x44a65d['markMultiRangeBlockFormat'](_0x23dd87,{'commandName':'listStart','commandParams':[{'startIndex':_0x3d57fe['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x351c8c){if('formatBlock'!=_0x351c8c['type']&&'formatInline'!=_0x351c8c['type'])return;const _0x335f35=this['editor']['locale'],{data:_0x18e824}=_0x351c8c;if(!_0x18e824)return;let _0xe83ea8,_0x4fbe95;switch(_0x18e824['commandName']){case'listStyle':_0xe83ea8='*Change\x20to:*\x20%0',_0x4fbe95={'type':'format','content':o(_0x335f35,_0xe83ea8,o(_0x335f35,this['_getTranslationKeyForListStyle'](_0x18e824['commandParams'][0x0]['type'])))};break;case'listReversed':_0xe83ea8=_0x18e824['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4fbe95={'type':'format','content':o(_0x335f35,_0xe83ea8)};break;case'listStart':_0xe83ea8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4fbe95={'type':'format','content':o(_0x335f35,_0xe83ea8,_0x18e824['commandParams'][0x0]['startIndex'])};}return _0x4fbe95;}['_getSuggestionBlocksForListStyle'](){const _0x5a31d5=this['editor']['plugins']['get']('LegacyListUtils');let _0x297662=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x297662[0x0]?.['is']('element','listItem')&&_0x297662['unshift'](..._0x5a31d5['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x297662[_0x297662['length']-0x1]?.['is']('element','listItem')&&_0x297662['push'](..._0x5a31d5['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x297662=[...new Set(_0x297662)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x297662=_0x297662['filter'](_0x1e8b46=>_0x1e8b46['is']('element','listItem'))),_0x297662;}['_getSuggestionBlocks'](_0x44ce44){const _0x269827=this['editor']['plugins']['get']('LegacyListUtils');let _0x104c2c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x44ce44)['map'](_0x308c7e=>{const _0x424e4b=this['editor']['model']['createPositionAt'](_0x308c7e,0x0);return[..._0x269827['getSiblingNodes'](_0x424e4b,'backward'),..._0x269827['getSiblingNodes'](_0x424e4b,'forward')];})['flat']();return _0x104c2c=[...new Set(_0x104c2c)],_0x104c2c;}['_getTranslationKeyForListStyle'](_0x4ec881){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4ec881)||'default')['toUpperCase']()+'_LIST_'+_0x4ec881['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x14427b{['afterInit'](){const _0xedb1d1=this['editor'];if(!_0xedb1d1['plugins']['has']('MediaEmbedEditing'))return;const _0x32833b=_0xedb1d1['plugins']['get']('TrackChangesEditing'),_0x543c8d=_0xedb1d1['locale'];_0x32833b['enableCommand']('mediaEmbed'),_0x32833b['descriptionFactory']['registerElementLabel']('media',_0x599e11=>o(_0x543c8d,'ELEMENT_MEDIA',_0x599e11)),_0xedb1d1['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x261f6e,{writer:_0x4b4050,options:_0x3ac6ff})=>{if(_0x3ac6ff['showSuggestionHighlights'])return _0x4b4050['createEmptyElement']('div');},'converterPriority':'high'}),_0xedb1d1['data']['downcastDispatcher']['on']('attribute:url:media',(_0x22598f,_0x324b90,_0x52efb0)=>{_0x52efb0['options']['showSuggestionHighlights']&&_0x22598f['stop']();},{'priority':'high'});}}class gt extends _0x14427b{['afterInit'](){const _0x3ac569=this['editor'];_0x3ac569['plugins']['has']('MentionEditing')&&_0x3ac569['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x14427b{['afterInit'](){const _0x46cee9=this['editor'],_0x28b747=_0x46cee9['plugins']['get']('TrackChangesEditing');_0x46cee9['plugins']['has']('MultiLevelList')&&(_0x28b747['enableDefaultAttributesIntegration']('multiLevelList'),_0x28b747['registerBlockAttribute']('listMarkerStyle'),_0x28b747['descriptionFactory']['registerDescriptionCallback'](_0x5b6ea7=>this['handleDescriptions'](_0x5b6ea7)));}['handleDescriptions'](_0x2b39c5){const _0x454156=this['editor']['locale'],{data:_0x1335b8}=_0x2b39c5,_0x39dff5={'type':'format','content':''};if(_0x1335b8&&'listMarkerStyle'==_0x1335b8['key']){if(!_0x1335b8['oldValue'])return{'type':'format','content':o(_0x454156,'*Set\x20format:*\x20%0',o(_0x454156,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1335b8['newValue']+')'};if(!_0x1335b8['newValue']){let _0x34bda3=_0x2b39c5['head'];for(;_0x34bda3;){if(_0x34bda3['data']&&'listType'==_0x34bda3['data']['key']&&_0x34bda3['data']['newValue'])return _0x39dff5;_0x34bda3=_0x34bda3['next'];}return{'type':'format','content':o(_0x454156,'*Remove\x20format:*\x20%0',o(_0x454156,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1335b8['oldValue']+')'};}}}}class mt extends _0x14427b{['afterInit'](){const _0x33a987=this['editor'];if(!_0x33a987['plugins']['has']('PageBreakEditing'))return;_0x33a987['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xcf7b98=_0x33a987['plugins']['get']('TrackChangesEditing'),_0x1664f9=_0x33a987['locale'];_0xcf7b98['descriptionFactory']['registerElementLabel']('pageBreak',_0x29a3f1=>o(_0x1664f9,'ELEMENT_PAGE_BREAK',_0x29a3f1));}}class dt extends _0x14427b{['afterInit'](){const _0x56df6e=this['editor'];if(!_0x56df6e['plugins']['has']('Paragraph'))return;const _0x1ba462=_0x56df6e['locale'],_0x2218d0=_0x56df6e['plugins']['get']('TrackChangesEditing');_0x2218d0['descriptionFactory']['registerElementLabel']('paragraph',_0x104d7b=>o(_0x1ba462,'ELEMENT_PARAGRAPH',_0x104d7b)),_0x2218d0['enableDefaultAttributesIntegration']('paragraph'),_0x2218d0['enableCommand']('insertParagraph'),_0x56df6e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x56df6e),{'priority':'highest'}),_0x56df6e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1e4759,_0x41e7d7,_0x1c02cd)=>{_0x1c02cd['options']['showSuggestionHighlights']&&nr(_0x56df6e,{'showActiveMarker':!0x1})(_0x1e4759,_0x41e7d7,_0x1c02cd);},{'priority':'highest'});const _0x14c4ce=_0x2218d0['descriptionFactory'];_0x14c4ce['registerDescriptionCallback'](_0x5bbcb5=>{if('insertion'!==_0x5bbcb5['type'])return;const {start:_0x51dd1a,end:_0x93707c}=_0x5bbcb5['getFirstRange']();if(!_0x51dd1a['isTouching'](_0x93707c)||!_0x51dd1a['nodeAfter'])return;const _0x4f19f8=_0x56df6e['model']['schema'],_0x1a501a=_0x51dd1a['nodeAfter'];return _0x4f19f8['isBlock'](_0x1a501a)&&!_0x4f19f8['isLimit'](_0x1a501a)&&_0x4f19f8['checkChild'](_0x1a501a,'$text')?{'type':'insertion','content':o(_0x1ba462,'*Insert:*\x20%0',_0x14c4ce['getItemLabel'](_0x1a501a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f4f20=this['editor'],_0x17c89a=_0x4f4f20['locale'];_0x4f4f20['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cd41d=>{if('formatBlock'!=_0x5cd41d['type'])return;const {data:_0x388086}=_0x5cd41d;return _0x388086&&'paragraph'==_0x388086['commandName']?{'type':'format','content':o(_0x17c89a,'*Change\x20to:*\x20%0',o(_0x17c89a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x461001,{showActiveMarker:_0x33ae7d=!0x0}={}){return(_0x52f301,_0x289e42,_0x3a7e07)=>{const _0x72cd98=_0x461001['plugins']['get']('TrackChangesEditing'),_0x23cbe7=_0x289e42['markerRange']['start'],_0x2b0532=_0x289e42['markerRange']['end'],_0x8dc24a=_0x461001['model']['schema'];if(!_0x23cbe7['isTouching'](_0x2b0532)||!_0x23cbe7['nodeAfter'])return;const _0x10821a=_0x23cbe7['nodeAfter'];if(_0x8dc24a['isBlock'](_0x10821a)&&!_0x8dc24a['isLimit'](_0x10821a)&&_0x8dc24a['checkChild'](_0x10821a,'$text')){if(!_0x3a7e07['consumable']['consume'](_0x289e42['markerRange'],_0x52f301['name']))return;const _0x568411=_0x3a7e07['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x1ef1e1=_0x3a7e07['mapper']['toViewPosition'](_0x2b0532);_0x33ae7d&&_0x72cd98['activeMarkers']['includes'](_0x289e42['markerName'])&&_0x3a7e07['writer']['addClass']('ck-suggestion-marker--active',_0x568411),_0x3a7e07['writer']['insert'](_0x1ef1e1,_0x568411),_0x3a7e07['mapper']['bindElementToMarker'](_0x568411,_0x289e42['markerName']);}};}class pt extends _0x14427b{['afterInit'](){const _0x3d3df7=this['editor'];if(!_0x3d3df7['plugins']['has']('RemoveFormatEditing'))return;_0x3d3df7['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28004e=this['editor'];_0x28004e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16a50d=>{if('formatBlock'!=_0x16a50d['type']&&'formatInline'!=_0x16a50d['type'])return;const {data:_0x5d9ed9}=_0x16a50d;return _0x5d9ed9&&'removeFormat'==_0x5d9ed9['commandName']?{'type':'format','content':o(_0x28004e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x14427b{['afterInit'](){const _0x407839=this['editor'];if(!_0x407839['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4b0fb1=_0x407839['plugins']['get']('TrackChangesEditing');_0x4b0fb1['enableCommand']('goToPreviousRestrictedEditingException'),_0x4b0fb1['enableCommand']('goToNextRestrictedEditingException');const _0x1c5d6a=_0x407839['plugins']['get']('RestrictedEditingModeEditing');_0x1c5d6a['enableCommand']('trackChanges'),_0x1c5d6a['enableCommand']('acceptSuggestion'),_0x1c5d6a['enableCommand']('discardSuggestion'),_0x1c5d6a['enableCommand']('acceptAllSuggestions'),_0x1c5d6a['enableCommand']('discardAllSuggestions'),_0x1c5d6a['enableCommand']('acceptSelectedSuggestions'),_0x1c5d6a['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x14427b{static get['requires'](){return[_0x2d0e2d];}['init'](){const _0x2915d9=this['editor'],_0xb8752b=_0x2915d9['plugins']['get']('TrackChangesEditing');_0xb8752b['enableCommand']('shiftEnter'),_0x2915d9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x2915d9),{'priority':'high'}),_0x2915d9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x2915d9),{'priority':'high'}),_0x2915d9['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3a4a05,_0xa37359,_0x1f79b9)=>{_0x1f79b9['options']['showSuggestionHighlights']&&de(_0x2915d9,{'showActiveMarker':!0x1})(_0x3a4a05,_0xa37359,_0x1f79b9);}),_0xb8752b['descriptionFactory']['registerElementLabel']('softBreak',_0x203f9d=>o(_0x2915d9['locale'],'ELEMENT_LINE_BREAK',_0x203f9d));}}function de(_0x49addf,{showActiveMarker:_0xf6e1f=!0x0}={}){return(_0x28e5eb,_0x9f0a5b,_0x33733f)=>{const _0x4b487b=_0x49addf['plugins']['get']('TrackChangesEditing');if(!_0x33733f['consumable']['test'](_0x9f0a5b['markerRange'],_0x28e5eb['name']))return;const _0x47f366=_0x49addf['model'];for(const _0x246f28 of _0x9f0a5b['markerRange']['getItems']()){if(!_0x246f28['is']('element','softBreak'))continue;const _0x39cd80='deletion'==_0x9f0a5b['markerName']['split'](':')[0x1]?'merge':'split',_0x34e12b=_0x33733f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x39cd80}),_0x1ec277=_0x33733f['mapper']['toViewPosition'](_0x47f366['createPositionBefore'](_0x246f28));_0xf6e1f&&_0x4b487b['activeMarkers']['includes'](_0x9f0a5b['markerName'])&&_0x33733f['writer']['addClass']('ck-suggestion-marker--active',_0x34e12b),_0x33733f['writer']['insert'](_0x1ec277,_0x34e12b),_0x33733f['mapper']['bindElementToMarker'](_0x34e12b,_0x9f0a5b['markerName']);}};}class wt extends _0x14427b{['afterInit'](){const _0x291b48=this['editor'],_0x96f664=_0x291b48['model'],_0x158b79=_0x291b48['locale'];if(!_0x291b48['plugins']['has']('StandardEditingModeEditing'))return;const _0x232ca9=_0x291b48['plugins']['get']('TrackChangesEditing'),_0x400051='restrictedEditingException',_0x359f3b=_0x291b48['commands']['get'](_0x400051);_0x232ca9['enableCommand'](_0x400051,(_0x1ffbe4,_0x46037f={})=>{const _0x5169c0=_0x96f664['document']['selection'];if(_0x5169c0['isCollapsed'])return void _0x1ffbe4(_0x46037f);const _0x1f9612=void 0x0!==_0x46037f['forceValue']?_0x46037f['forceValue']:!_0x359f3b['value'];_0x96f664['change'](()=>{const _0x5c9915=Array['from'](_0x5169c0['getRanges']());for(const _0x5b9200 of _0x5c9915){const _0x5491ea=_0x1f9612?[_0x5b9200]:io(_0x400051,_0x5b9200,_0x96f664);for(const _0x554f01 of _0x5491ea)_0x232ca9['markInlineFormat'](_0x554f01,{'commandName':_0x400051,'commandParams':[{'forceValue':_0x1f9612}]});}});}),_0x232ca9['descriptionFactory']['registerDescriptionCallback'](_0x50aa88=>{if('formatBlock'!=_0x50aa88['type']&&'formatInline'!=_0x50aa88['type'])return;const {data:_0x1aaccb}=_0x50aa88;return _0x1aaccb&&_0x1aaccb['commandName']==_0x400051?_0x1aaccb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x158b79,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x158b79,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x14427b{['afterInit'](){const _0x43b31b=this['editor'];if(!_0x43b31b['plugins']['has']('Style')||!_0x43b31b['plugins']['has']('DataSchema'))return;const _0x39a03e=_0x43b31b['plugins']['get']('TrackChangesEditing'),_0x5e37b4=_0x43b31b['locale'],_0x401099=_0x43b31b['config']['get']('style')||{},_0x1d671d=_0x43b31b['plugins']['get']('GeneralHtmlSupport'),_0x414ac5=_0x43b31b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x43b31b['plugins']['get']('DataSchema'),_0x401099['definitions']);_0x39a03e['enableDefaultAttributesIntegration']('style');const _0x34fd47=new Set();for(const _0x7181e5 of _0x414ac5['block']){const _0x4901c0=_0x1d671d['getGhsAttributeNameForElement'](_0x7181e5['element']);_0x34fd47['add'](_0x4901c0);}const _0x4d6efc=new Set();for(const _0x38ce8c of _0x414ac5['inline']){const _0x116794=_0x1d671d['getGhsAttributeNameForElement'](_0x38ce8c['element']);_0x4d6efc['add'](_0x116794);for(const _0x125e24 of _0x38ce8c['ghsAttributes'])_0x4d6efc['add'](_0x125e24);}for(const _0x4743f5 of _0x34fd47)_0x39a03e['registerBlockAttribute'](_0x4743f5),_0x39a03e['descriptionFactory']['registerAttributeLabel'](_0x4743f5,o(_0x5e37b4,'FORMAT_STYLE'));for(const _0x43f4e3 of _0x4d6efc)_0x39a03e['registerInlineAttribute'](_0x43f4e3),_0x39a03e['descriptionFactory']['registerAttributeLabel'](_0x43f4e3,o(_0x5e37b4,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c9837=this['editor'],_0xb70bb2=_0x2c9837['locale'];_0x2c9837['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d6558=>{if('formatBlock'!=_0x5d6558['type']&&'formatInline'!=_0x5d6558['type'])return;const {data:_0x23ad02}=_0x5d6558;return _0x23ad02&&'style'===_0x23ad02['commandName']?_0x23ad02['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb70bb2,'*Set\x20format:*\x20%0',_0x23ad02['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xb70bb2,'*Remove\x20format:*\x20%0',_0x23ad02['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x14427b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x15a56d){super(_0x15a56d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1f9ca2=this['editor'],_0x15924d=_0x1f9ca2['model']['document']['selection'];if(!_0x1f9ca2['plugins']['has']('TableEditing'))return;const _0x13c110=_0x1f9ca2['locale'],_0x473d62=_0x1f9ca2['plugins']['get']('TrackChangesEditing'),_0x5e296e=_0x1f9ca2['plugins']['get']('TableUtils');_0x473d62['descriptionFactory']['registerElementLabel']('table',_0x565bec=>o(_0x13c110,'ELEMENT_TABLE',_0x565bec)),this['_setupColumnsRowsFixing'](),_0x473d62['enableCommand']('insertTable'),_0x473d62['enableCommand']('selectTableRow'),_0x473d62['enableCommand']('selectTableColumn');for(const _0x380207 of['insertTableRowAbove','insertTableRowBelow']){const _0x3cfc20=_0x1f9ca2['commands']['get'](_0x380207);_0x473d62['enableCommand'](_0x380207,_0x304919=>{_0x1f9ca2['model']['change'](_0x351a24=>{_0x304919();const _0x544581='above'===_0x3cfc20['order'],_0x48224d=_0x5e296e['getSelectionAffectedTableCells'](_0x15924d),_0x221864=_0x5e296e['getRowIndexes'](_0x48224d),_0x96049e=_0x544581?_0x221864['first']-0x1:_0x221864['last']+0x1,_0x25d127=_0x48224d[0x0]['findAncestor']('table'),_0x36ce23=_0x5e296e['createTableWalker'](_0x25d127,{'startRow':_0x96049e,'endRow':_0x96049e}),_0x39f66f=Array['from'](_0x36ce23)['map'](_0x40527d=>_0x351a24['createRangeOn'](_0x40527d['cell']));_0x473d62['markMultiRangeInsertion'](_0x39f66f,'tableRow');});});}for(const _0x2cdbed of['insertTableColumnLeft','insertTableColumnRight']){const _0x3e15b4=_0x1f9ca2['commands']['get'](_0x2cdbed);_0x473d62['enableCommand'](_0x2cdbed,_0x2e9308=>{_0x1f9ca2['model']['change'](_0x3eacb9=>{_0x2e9308();const _0x4aeecc='left'===_0x3e15b4['order'],_0x29dfea=_0x5e296e['getSelectionAffectedTableCells'](_0x15924d),_0x320685=_0x5e296e['getColumnIndexes'](_0x29dfea),_0x21b592=_0x4aeecc?_0x320685['first']-0x1:_0x320685['last']+0x1,_0x46fe31=_0x29dfea[0x0]['findAncestor']('table'),_0x507471=_0x5e296e['createTableWalker'](_0x46fe31,{'startRow':0x0,'column':_0x21b592,'includeAllSlots':!0x1}),_0x4f94ca=Array['from'](_0x507471)['map'](_0x36583d=>_0x3eacb9['createRangeOn'](_0x36583d['cell']));_0x473d62['markMultiRangeInsertion'](_0x4f94ca,'tableColumn');});});}for(const _0x4d9834 of['removeTableRow','removeTableColumn']){const _0x21d042=_0x4d9834['substr'](0xb),_0x28123d=_0x21d042['toLowerCase'](),_0x32cc64=_0x28123d['substr'](0x0,0x3)+'span',_0x6eec4b='table'+_0x21d042,_0x3fff32='min'+_0x21d042,_0x1899fa='max'+_0x21d042;_0x473d62['enableCommand'](_0x4d9834,()=>{_0x1f9ca2['model']['change'](_0x83cdf4=>{const _0x30f0b1=_0x5e296e['getSelectionAffectedTableCells'](_0x15924d),_0x23f92b=_0x30f0b1[0x0]['findAncestor']('table');let _0x15ef62;if('removeTableRow'==_0x4d9834){const _0x59fa22=_0x5e296e['getRowIndexes'](_0x30f0b1);_0x15ef62={'startRow':_0x59fa22['first'],'endRow':_0x59fa22['last'],'includeAllSlots':!0x0};}else{const _0x44b64b=_0x5e296e['getColumnIndexes'](_0x30f0b1);_0x15ef62={'startColumn':_0x44b64b['first'],'endColumn':_0x44b64b['last'],'includeAllSlots':!0x0};}const _0x42dfee=_0x5e296e['createTableWalker'](_0x23f92b,_0x15ef62),_0x2b7cb1=Array['from'](_0x42dfee)['map'](({cell:_0x1c200d})=>_0x1c200d),_0x2466ce=Ee(_0x2b7cb1['filter'](_0x4cde40=>_0x4cde40['hasAttribute'](_0x32cc64))),_0x34b756=Ee(_0x2b7cb1['filter'](_0x12fa1e=>!_0x12fa1e['hasAttribute'](_0x32cc64)))['map'](_0x4f0565=>_0x83cdf4['createRangeOn'](_0x4f0565)),_0x3557df=_0x473d62['markMultiRangeDeletion'](_0x34b756,_0x6eec4b);if(_0x3557df&&('tableRow'==_0x3557df['subType']||'tableColumn'==_0x3557df['subType'])){const _0x457c5f=this['_getSuggestionCoords'](_0x3557df);for(const _0x4df719 of _0x2466ce){const _0x72daf0=_0x83cdf4['createRangeOn'](_0x4df719),_0x284740=_0x5e296e['getCellLocation'](_0x4df719),_0x446247=_0x4df719['getAttribute'](_0x32cc64)-0x1,_0x39e9e9=_0x457c5f[_0x3fff32],_0x4326bb=_0x457c5f[_0x1899fa];_0x39e9e9<=_0x284740[_0x28123d]&&_0x284740[_0x28123d]+_0x446247<=_0x4326bb&&_0x3557df['addRange'](_0x72daf0);}}});});}function _0x3c5545(_0x311684){const _0x5e31d5=Array['from'](_0x15924d['getRanges']())['map'](_0xff51c1=>_0x374e30['fromRange'](_0xff51c1));_0x1f9ca2['model']['change'](_0x13d531=>{const _0x295bc2=_0x13d531['batch'];_0x311684=_0x311684['filter'](_0xa46bfc=>'$graveyard'!=_0xa46bfc['root']['rootName']),_0x13d531['setSelection'](_0x311684),_0x1f9ca2['commands']['get']('removeTableRow')['refresh'](),_0x1f9ca2['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1f9ca2['model']['enqueueChange'](()=>{_0x1f9ca2['model']['enqueueChange'](_0x295bc2,_0x166228=>{const _0x41a0b1=_0x5e31d5['filter'](_0x27c2f4=>'$graveyard'!=_0x27c2f4['root']['rootName']);_0x41a0b1['length']>0x0&&_0x166228['setSelection'](_0x41a0b1);for(const _0x275c8a of _0x5e31d5)_0x275c8a['detach']();});});});}function _0x895692(_0xb0bd06){_0x1f9ca2['model']['change'](_0x154adb=>{const _0x39988f=Array['from'](_0x15924d['getRanges']())['map'](_0x2b3b06=>_0x374e30['fromRange'](_0x2b3b06)),_0x423692=[];for(const _0x47090f of _0xb0bd06)for(const _0x1204e7 of _0x47090f['getItems']({'shallow':!0x0}))_0x423692['push'](_0x1204e7);for(const _0x52d4ba of _0x423692)'$graveyard'!=_0x52d4ba['root']['rootName']&&(_0x154adb['setSelection'](_0x154adb['createPositionAt'](_0x52d4ba,0x0)),_0x1f9ca2['commands']['get']('removeTableColumn')['refresh'](),_0x1f9ca2['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x22bc0e=_0x39988f['filter'](_0x34c550=>'$graveyard'!=_0x34c550['root']['rootName']);_0x22bc0e['length']>0x0&&_0x154adb['setSelection'](_0x22bc0e);for(const _0x34afe4 of _0x39988f)_0x34afe4['detach']();});}function _0x1f6434(_0x167b71,_0x3ccc41){return _0x3ccc41['every'](_0x399ad6=>_0x167b71['some'](_0x2d99d6=>_0x2d99d6['end']['isEqual'](_0x399ad6['start'])||_0x399ad6['end']['isEqual'](_0x2d99d6['start'])));}function _0x21b515(_0x37d0f2,_0xe7d5d0){return!_0x37d0f2['some'](_0x4d75d5=>_0xe7d5d0['some'](_0x37883b=>_0x4d75d5['isIntersecting'](_0x37883b)))&&_0x37d0f2['some'](_0x1a7da0=>_0xe7d5d0['some'](_0x3f62d7=>_0x1a7da0['end']['isTouching'](_0x3f62d7['start'])));}_0x1f9ca2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x307d9e,_0x2c0c86,_0x2c624d)=>{if(!_0x2c624d['options']['showSuggestionHighlights'])return;const _0x1c4e12=_0x2c0c86['item'];if(!_0x1c4e12)return;const _0x1ca233=_0x2c624d['mapper']['toViewElement'](_0x1c4e12);function _0x16ad95(_0x3c4b1d){return Array['isArray'](_0x3c4b1d)?_0x3c4b1d:[_0x3c4b1d];}_0x1ca233&&'tableCell'===_0x1c4e12['name']&&_0x390c45(_0x1ca233,_0x2c624d['writer'],(_0x2a7be4,_0x3fc9c1,_0x10143c)=>_0x10143c['addClass'](_0x16ad95(_0x3fc9c1['classes']),_0x2a7be4),(_0x52f305,_0x273bac,_0x4b3150)=>_0x4b3150['removeClass'](_0x16ad95(_0x273bac['classes']),_0x52f305));},{'priority':'highest'}),_0x473d62['descriptionFactory']['registerDescriptionCallback'](_0x36a1dc=>{if('insertion'!=_0x36a1dc['type']&&'deletion'!=_0x36a1dc['type'])return;const _0x1c806a=_0x36a1dc['getContainedElement']();if(null!=_0x1c806a&&_0x1c806a['is']('element','table')){if('insertion'==_0x36a1dc['type']){const _0x1487f0=_0x36a1dc['getItems']()['filter'](_0x4ea9d7=>_0x4ea9d7['is']('$textProxy'))['map'](_0x49f256=>_0x49f256['data']);if(_0x1487f0['length'])return{'type':'insertion','content':o(_0x13c110,'*Insert:*\x20%0',o(_0x13c110,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1487f0['join']('\x20')+'\x22'))};}if('deletion'==_0x36a1dc['type']){const _0x599cbe=_0x36a1dc['getItems']()['filter'](_0x3c11b1=>_0x3c11b1['is']('$textProxy'))['map'](_0x7dc711=>_0x7dc711['data']);if(_0x599cbe['length'])return{'type':'deletion','content':o(_0x13c110,'*Remove:*\x20%0',o(_0x13c110,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x599cbe['join']('\x20')+'\x22'))};}}}),_0x473d62['descriptionFactory']['registerDescriptionCallback'](_0x57e081=>{if('tableRow'==_0x57e081['subType']){const _0x1aabd0=_0x57e081['getItems']()['filter'](_0x5608e5=>_0x5608e5['is']('$textProxy'))['map'](_0x22388f=>_0x22388f['data']),_0xb8d19c=this['_getSuggestionCoords'](_0x57e081),_0x5789ee=_0xb8d19c['maxRow']-_0xb8d19c['minRow']+0x1;if('insertion'==_0x57e081['type'])return _0x1aabd0['length']?{'type':'insertion','content':o(_0x13c110,'*Insert:*\x20%0',o(_0x13c110,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5789ee,'\x22'+_0x1aabd0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x13c110,'*Insert:*\x20%0',o(_0x13c110,'ELEMENT_TABLE_ROW',_0x5789ee))};if('deletion'==_0x57e081['type'])return _0x1aabd0['length']?{'type':'deletion','content':o(_0x13c110,'*Remove:*\x20%0',o(_0x13c110,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5789ee,'\x22'+_0x1aabd0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x13c110,'*Remove:*\x20%0',o(_0x13c110,'ELEMENT_TABLE_ROW',_0x5789ee))};}if('tableColumn'==_0x57e081['subType']){const _0x1346a8=_0x57e081['getItems']()['filter'](_0x48d869=>_0x48d869['is']('$textProxy'))['map'](_0x2ed88e=>_0x2ed88e['data']),_0x577258=this['_getSuggestionCoords'](_0x57e081),_0x18e89b=_0x577258['maxColumn']-_0x577258['minColumn']+0x1;if('insertion'==_0x57e081['type'])return _0x1346a8['length']?{'type':'insertion','content':o(_0x13c110,'*Insert:*\x20%0',o(_0x13c110,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x18e89b,'\x22'+_0x1346a8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x13c110,'*Insert:*\x20%0',o(_0x13c110,'ELEMENT_TABLE_COLUMN',_0x18e89b))};if('deletion'==_0x57e081['type'])return _0x1346a8['length']?{'type':'deletion','content':o(_0x13c110,'*Remove:*\x20%0',o(_0x13c110,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x18e89b,'\x22'+_0x1346a8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x13c110,'*Remove:*\x20%0',o(_0x13c110,'ELEMENT_TABLE_COLUMN',_0x18e89b))};}}),_0x473d62['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3c5545),_0x473d62['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3c5545),_0x473d62['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x895692),_0x473d62['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x895692),_0x473d62['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1f6434),_0x473d62['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1f6434),_0x473d62['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x21b515),_0x473d62['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x21b515);}['_acceptFormatSuggestionCallbackFactory'](){const _0xdb5eed=this['editor'],_0x29dc52=_0xdb5eed['model']['document']['selection'];return(_0xdca99d,_0x2654f0)=>{_0xdb5eed['model']['change'](_0xd307ce=>{const {commandName:_0x14f656,commandParams:_0x44015c}=_0x2654f0;let _0xe25581=_0xdca99d[0x0]['end']['nodeBefore'];_0x44015c&&_0x44015c[0x0]&&!0x1===_0x44015c[0x0]['forceValue']&&(_0xe25581=_0xdca99d[0x0]['start']['nodeAfter']);const _0x10a47f=_0xd307ce['createRangeIn'](_0xe25581);if('$graveyard'==_0x10a47f['root']['rootName'])return;const _0x2ca6ca=Array['from'](_0x29dc52['getRanges']())['map'](_0x2d506a=>_0x374e30['fromRange'](_0x2d506a));_0xd307ce['setSelection'](_0x10a47f),_0xdb5eed['commands']['get'](_0x14f656)['refresh'](),_0x44015c['push']({'forceDefaultExecution':!0x0}),_0xdb5eed['execute'](_0x14f656,..._0x44015c);const _0x2e0aba=_0x2ca6ca['filter'](_0x5c28b1=>'$graveyard'!=_0x5c28b1['root']['rootName']);_0x2e0aba['length']>0x0&&_0xd307ce['setSelection'](_0x2e0aba);for(const _0x262019 of _0x2ca6ca)_0x262019['detach']();});};}['_getCoordsForCells'](_0x271798){const _0x43b2f6=this['editor']['plugins']['get']('TableUtils');let _0x38d72e=Number['MAX_SAFE_INTEGER'],_0x460f6f=Number['MIN_SAFE_INTEGER'],_0x104e6a=Number['MAX_SAFE_INTEGER'],_0x346b2f=Number['MIN_SAFE_INTEGER'];for(const _0x21145c of _0x271798){if('$graveyard'==_0x21145c['root']['rootName'])continue;const {row:_0x1a1ee5,column:_0x4240dc}=_0x43b2f6['getCellLocation'](_0x21145c),_0x3e69b8=_0x21145c['hasAttribute']('rowspan')?_0x21145c['getAttribute']('rowspan')-0x1:0x0,_0x190aa1=_0x21145c['hasAttribute']('colspan')?_0x21145c['getAttribute']('colspan')-0x1:0x0;_0x38d72e=_0x1a1ee5<_0x38d72e?_0x1a1ee5:_0x38d72e,_0x460f6f=_0x1a1ee5+_0x3e69b8>_0x460f6f?_0x1a1ee5+_0x3e69b8:_0x460f6f,_0x104e6a=_0x4240dc<_0x104e6a?_0x4240dc:_0x104e6a,_0x346b2f=_0x4240dc+_0x190aa1>_0x346b2f?_0x4240dc+_0x190aa1:_0x346b2f;}return{'minRow':_0x38d72e,'maxRow':_0x460f6f,'minColumn':_0x104e6a,'maxColumn':_0x346b2f};}['_setupColumnsRowsFixing'](){const _0x180466=this['editor'],_0x590e00=_0x180466['plugins']['get']('TrackChangesEditing'),_0x2f0efa=_0x180466['plugins']['get']('TableUtils');_0x180466['model']['document']['on']('change:data',()=>{const _0xe1ff0=Array['from'](_0x180466['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x56aeac,data:_0x45c3af}of _0xe1ff0){const {group:_0x155e0c,id:_0x22d8b3,subType:_0x3d185a}=_0x590e00['_splitMarkerName'](_0x56aeac);if('suggestion'!=_0x155e0c)continue;if(null!=_0x45c3af['oldRange'])continue;const _0x3267e1=_0x590e00['getSuggestion'](_0x22d8b3);this['_tablePostFixingSubtypes']['includes'](_0x3d185a)&&this['_tableSuggestions']['add'](_0x3267e1);}},{'priority':'low'});const _0x1b45a2=(_0x49ef51,_0x129633)=>{let _0x2edd63=!0x1;const _0x4f0ae4=_0x129633['createRangeOn'](_0x49ef51),_0x352a94=_0x49ef51['findAncestor']('table'),_0x1feb85=_0x2f0efa['getCellLocation'](_0x49ef51);for(const _0x5aa90e of this['_tableSuggestions']){const _0x56bba0=_0x5aa90e['subType'],_0x4ccd39=_0x56bba0['startsWith']('tablePaste'),_0x55943d=_0x56bba0['substr'](_0x4ccd39?0xa:0x5),_0x21511e=_0x55943d['toLowerCase'](),_0x366847=_0x21511e['substr'](0x0,0x3)+'span',_0x353603='min'+_0x55943d,_0x48cebe='max'+_0x55943d;if(!_0x5aa90e['isInContent'])continue;if(_0x352a94!=_0x5aa90e['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5aa90e['isIntersectingWithRange'](_0x4f0ae4))continue;const _0x3e1d8d=_0x49ef51['hasAttribute'](_0x366847)?_0x49ef51['getAttribute'](_0x366847)-0x1:0x0,_0x4b72c4=this['_getSuggestionCoords'](_0x5aa90e),_0x3527b6=_0x4b72c4[_0x353603],_0x692dbb=_0x4b72c4[_0x48cebe];_0x3527b6<=_0x1feb85[_0x21511e]&&_0x1feb85[_0x21511e]+_0x3e1d8d<=_0x692dbb&&(_0x5aa90e['addRange'](_0x4f0ae4),_0x2edd63=!0x0);}return _0x2edd63;};_0x180466['model']['document']['registerPostFixer'](_0x138c60=>{let _0x39fc51=!0x1;for(const _0x37753b of _0x180466['model']['document']['differ']['getChanges']())if('insert'==_0x37753b['type']){if('tableRow'==_0x37753b['name']){for(const _0x34d37d of _0x37753b['position']['nodeAfter']['getChildren']())_0x39fc51=_0x39fc51||_0x1b45a2(_0x34d37d,_0x138c60);}else'tableCell'==_0x37753b['name']&&(_0x39fc51=_0x39fc51||_0x1b45a2(_0x37753b['position']['nodeAfter'],_0x138c60));}return _0x39fc51;});}['_getSuggestionCoords'](_0x9d3e67){return this['_getCoordsForCells'](_0x9d3e67['getRanges']()['map'](_0x11f6f5=>_0x11f6f5['start']['nodeAfter']));}}function Ee(_0xca016){return Array['from'](new Set(_0xca016)['values']());}class St extends _0x14427b{static get['requires'](){return[jt];}['afterInit'](){const _0x357fa0=this['editor'],_0x27b83d=_0x357fa0['model']['document']['selection'],_0x6097ed=_0x357fa0['locale'];if(!_0x357fa0['plugins']['has']('TableEditing'))return;const _0x40fb63=_0x357fa0['plugins']['get']('TrackChangesEditing'),_0x106e5e=_0x357fa0['plugins']['get']('TableUtils'),_0x5be9f4=_0x357fa0['plugins']['get'](jt);_0x5be9f4['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x40fb63['enableCommand']('mergeTableCells',()=>{const _0x44c73a=_0x106e5e['getSelectionAffectedTableCells'](_0x357fa0['model']['document']['selection']);_0x357fa0['model']['change'](()=>{_0x40fb63['markMultiRangeBlockFormat'](_0x44c73a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x357fa0['commands']['get']('mergeTableCells')['on']('execute',(_0x5a20b8,_0x180a5c)=>{_0x357fa0['commands']['get']('trackChanges')['value']&&(_0x180a5c['length']>0x0&&_0x180a5c[_0x180a5c['length']-0x1]&&_0x180a5c[_0x180a5c['length']-0x1]['forceDefaultExecution']||_0x40fb63['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5a20b8['stop']());},{'priority':'highest'});for(const _0x39d2fa of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xb23271=_0x357fa0['commands']['get'](_0x39d2fa);_0x40fb63['enableCommand'](_0x39d2fa,()=>{const _0x57ff3d=_0x357fa0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4d655a=>_0x4d655a['is']('element','tableCell')),_0x13d782=_0xb23271['value'];_0x357fa0['model']['change'](()=>{_0x40fb63['markMultiRangeBlockFormat']([_0x57ff3d,_0x13d782],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2d7b3a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x30d8e3=_0x357fa0['commands']['get'](_0x2d7b3a);_0x40fb63['enableCommand'](_0x2d7b3a,()=>{const _0x22a28e=_0x106e5e['getSelectionAffectedTableCells'](_0x357fa0['model']['document']['selection'])[0x0],_0x54a823=_0x22a28e['findAncestor']('table'),{column:_0x5851cf,row:_0x575bea}=_0x106e5e['getCellLocation'](_0x22a28e);let _0x281e71=[];if('horizontally'==_0x30d8e3['direction']){const _0x335be8=_0x106e5e['createTableWalker'](_0x54a823,{'startRow':_0x575bea,'endRow':_0x575bea,'includeAllSlots':!0x0});_0x281e71=Array['from'](_0x335be8)['map'](_0x303f70=>_0x303f70['cell']);}else{const _0x146b6a=_0x106e5e['createTableWalker'](_0x54a823,{'column':_0x5851cf,'includeAllSlots':!0x0});_0x281e71=Array['from'](_0x146b6a)['map'](_0x21e4bb=>_0x21e4bb['cell']);}_0x357fa0['model']['change'](_0x4dc919=>{_0x40fb63['markBlockFormat'](_0x4dc919['createRangeOn'](_0x22a28e),{'commandName':_0x2d7b3a,'commandParams':[]},_0x281e71,_0x2d7b3a);});});}_0x40fb63['descriptionFactory']['registerDescriptionCallback'](_0x5ec142=>{if('formatBlock'!=_0x5ec142['type']&&'formatInline'!=_0x5ec142['type'])return;const {data:_0x3f810}=_0x5ec142;return _0x3f810&&'mergeTableCells'==_0x3f810['commandName']?{'type':'format','content':o(_0x6097ed,'*Merge\x20cells*')}:void 0x0;}),_0x40fb63['descriptionFactory']['registerDescriptionCallback'](_0x252f4b=>{if('formatBlock'!=_0x252f4b['type']&&'formatInline'!=_0x252f4b['type'])return;const {data:_0x2388fc}=_0x252f4b;return _0x2388fc?'splitTableCellVertically'==_0x2388fc['commandName']?{'type':'format','content':o(_0x6097ed,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2388fc['commandName']?{'type':'format','content':o(_0x6097ed,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5047be=_0x5be9f4['_acceptFormatSuggestionCallbackFactory']();for(const _0x44727e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x40fb63['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x44727e,'accept',_0x5047be);for(const _0x1431d7 of['splitTableCellVertically','splitTableCellHorizontally'])_0x40fb63['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1431d7,'accept',_0x5047be);_0x40fb63['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2a2c24=>{_0x357fa0['model']['change'](_0xd6b8a6=>{const _0x21ae15=Array['from'](_0x27b83d['getRanges']())['map'](_0x37739a=>_0x374e30['fromRange'](_0x37739a));_0xd6b8a6['setSelection'](_0x2a2c24),_0x357fa0['commands']['get']('mergeTableCells')['refresh'](),_0x357fa0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3b3ea7=_0x21ae15['filter'](_0x11b2c2=>'$graveyard'!=_0x11b2c2['root']['rootName']);_0x3b3ea7['length']>0x0&&_0xd6b8a6['setSelection'](_0x3b3ea7);for(const _0x44309b of _0x21ae15)_0x44309b['detach']();});});for(const _0x129e1e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x15013f=_0x357fa0['commands']['get'](_0x129e1e);_0x15013f['on']('set:isEnabled',(_0x3b0bef,_0x10e43d,_0x2907ec)=>{if(_0x2907ec){const _0x77900e=_0x357fa0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xa9a4bb=>_0xa9a4bb['is']('element','tableCell'));this['_areMergableCells'](_0x15013f['value'],_0x77900e)||(_0x3b0bef['return']=!0x1,_0x3b0bef['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xa80bba=this['editor']['commands']['get']('mergeTableCells'),_0x3f7d07=this['editor']['plugins']['get']('TableUtils');if(!_0xa80bba['isEnabled'])return!0x1;const _0x413e3c=_0x3f7d07['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x247d45 of _0x413e3c)for(const _0x2a2607 of _0x413e3c)if(_0x247d45!=_0x2a2607&&!this['_areMergableCells'](_0x247d45,_0x2a2607))return!0x1;return!0x0;}['_areMergableCells'](_0xa3651a,_0x45e718){const _0x3a67bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f8d0e=this['editor']['model']['createRangeOn'](_0xa3651a),_0xb5f045=this['editor']['model']['createRangeOn'](_0x45e718),_0x435c62=new Set(),_0x2f96ec=new Set();for(const _0x3af913 of _0x3a67bb['getSuggestions']())if(('insertion'==_0x3af913['type']||'deletion'==_0x3af913['type']||'mergeTableCells'==_0x3af913['subType'])&&_0x3af913['isInContent']){for(const _0x3e6061 of _0x3af913['getRanges']())_0x3e6061['containsRange'](_0x2f8d0e,!0x0)&&_0x435c62['add'](_0x3af913['type']+':'+_0x3af913['author']['id']),_0x3e6061['containsRange'](_0xb5f045,!0x0)&&_0x2f96ec['add'](_0x3af913['type']+':'+_0x3af913['author']['id']);}if(_0x435c62['size']!=_0x2f96ec['size'])return!0x1;for(const _0x32a391 of _0x435c62)if(!_0x2f96ec['has'](_0x32a391))return!0x1;return!0x0;}}class At extends _0x14427b{static get['requires'](){return[jt];}['afterInit'](){const _0x1122ac=this['editor'];if(!_0x1122ac['plugins']['has']('TableEditing'))return;const _0x136fc2=_0x1122ac['locale'],_0x5a8fba=_0x1122ac['plugins']['get']('TrackChangesEditing');_0x5a8fba['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5a8fba['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5a8fba['registerBlockAttribute']('headingRows'),_0x5a8fba['registerBlockAttribute']('headingColumns'),_0x5a8fba['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x136fc2,'FORMAT_HEADER_ROW')),_0x5a8fba['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x136fc2,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3cb4a4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b8d4b=this['editor']['plugins']['get']('TableUtils'),_0x6d34a4=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x3d599f({showActiveMarker:_0x23fdc4=!0x0,setDataAttribute:_0x436f03=!0x0}={}){return(_0x5d81f6,_0xb32775,_0x423149)=>{const {type:_0x9b9e77,id:_0x5e77b0}=_0x3cb4a4['_splitMarkerName'](_0xb32775['markerName']),_0x466dc3=_0x3cb4a4['getSuggestion'](_0x5e77b0),_0x50638c=_0x466dc3['data'];if('formatBlock'!=_0x466dc3['type']||!_0x50638c||'setTableColumnHeader'!=_0x50638c['commandName'])return;if(_0xb32775['item'])return void _0x5d81f6['stop']();if(!_0x423149['consumable']['consume'](_0xb32775['markerRange'],_0x5d81f6['name']))return;const _0x4fc8ef=_0xb32775['markerRange']['start']['nodeAfter'],_0x1dbdb5=_0xb32775['markerRange']['end']['nodeBefore'],_0x47a405=_0x4fc8ef['parent']['parent'],{column:_0x51da7e}=_0x5b8d4b['getCellLocation'](_0x4fc8ef),{column:_0x1d2d3e}=_0x5b8d4b['getCellLocation'](_0x1dbdb5);for(let _0x30a410=_0x51da7e;_0x30a410<=_0x1d2d3e;_0x30a410++){const _0x46025d=_0x5b8d4b['createTableWalker'](_0x47a405,{'column':_0x30a410,'includeAllSlots':!0x1});for(const _0xae6a6 of _0x46025d){const _0x22fbf2=_0xae6a6['cell'],_0x4b2625=_0x423149['mapper']['toViewElement'](_0x22fbf2);_0x423149['writer']['addClass']('ck-suggestion-marker-'+_0x9b9e77,_0x4b2625),_0x436f03&&_0x423149['writer']['setAttribute']('data-suggestion',_0x5e77b0,_0x4b2625),_0x423149['mapper']['bindElementToMarker'](_0x4b2625,_0xb32775['markerName']),_0x23fdc4&&(_0x3cb4a4['activeMarkers']['includes'](_0xb32775['markerName'])?_0x423149['writer']['addClass']('ck-suggestion-marker--active',_0x4b2625):_0x423149['writer']['removeClass']('ck-suggestion-marker--active',_0x4b2625));}}};}_0x3cb4a4['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x6d34a4),_0x3cb4a4['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x6d34a4),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3d599f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2a77dc,_0xb3043e,_0x2a939d)=>{_0x2a939d['options']['showSuggestionHighlights']&&_0x3d599f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2a77dc,_0xb3043e,_0x2a939d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5d3cfe,_0x302a25,_0xb8d462)=>{const {type:_0x13eb0a,id:_0x503c10}=_0x3cb4a4['_splitMarkerName'](_0x302a25['markerName']),_0xabb77a=_0x3cb4a4['getSuggestion'](_0x503c10),_0x3fc202=_0xabb77a['data'];if('formatBlock'!=_0xabb77a['type']||!_0x3fc202||'setTableColumnHeader'!=_0x3fc202['commandName'])return;const _0xb05794=_0xb8d462['mapper']['markerNameToElements'](_0x302a25['markerName']);if(_0xb05794){for(const _0x1a24d1 of _0xb05794)_0xb8d462['writer']['removeClass']('ck-suggestion-marker-'+_0x13eb0a,_0x1a24d1),_0xb8d462['writer']['removeClass']('ck-suggestion-marker--active',_0x1a24d1),_0xb8d462['writer']['removeAttribute']('data-suggestion',_0x1a24d1),_0xb8d462['mapper']['unbindElementFromMarkerName'](_0x1a24d1,_0x302a25['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14f95f=this['editor'],_0x3a405c=_0x14f95f['locale'];function _0x3cc1e3(_0x420c7a){return{'type':'format','content':o(_0x3a405c,'*Format:*\x20%0',_0x420c7a)};}_0x14f95f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48480b=>{if('formatBlock'!=_0x48480b['type'])return;const {data:_0x3a5ba1}=_0x48480b;if(_0x3a5ba1){if('setTableRowHeader'==_0x3a5ba1['commandName']){const _0x2a2c75=_0x3a5ba1['commandParams'][0x0]['forceValue'];return _0x3cc1e3(o(_0x3a405c,_0x2a2c75?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3a5ba1['commandName']){const _0x43d7a1=_0x3a5ba1['commandParams'][0x0]['forceValue'];return _0x3cc1e3(o(_0x3a405c,_0x43d7a1?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x14a74e=>[_0x14a74e,null]));class It extends _0x14427b{static get['requires'](){return[jt];}['afterInit'](){const _0x3ac311=this['editor'];if(!_0x3ac311['plugins']['has']('TableClipboard'))return;const _0x513a8d=_0x3ac311['plugins']['get']('TrackChangesEditing'),_0x29a354=_0x3ac311['plugins']['get']('TableUtils'),_0x40c6b5=_0x3ac311['plugins']['get'](jt),_0x55d9ea=_0x3ac311['plugins']['get']('TableClipboard');_0x40c6b5['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3ac311['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3ac311['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x27a397=null;_0x3ac311['model']['on']('insertContent',(_0x2a9886,_0x6a8692)=>{const [_0x7ceecb,_0x3181c1]=_0x6a8692,_0x208dc1=_0x6a8692[_0x6a8692['length']-0x1];_0x208dc1&&_0x208dc1['forceDefaultExecution']||_0x513a8d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x599532,_0x3cae3f,_0x1f22b6,_0x7a9781,_0x5973ff){if(_0x3cae3f&&!_0x3cae3f['is']('documentSelection'))return!0x1;const _0x35ca35=_0x5973ff['getTableIfOnlyTableInContent'](_0x599532,_0x1f22b6);if(!_0x35ca35||!he(_0x35ca35,void 0x0,_0x7a9781))return!0x1;const _0x437e30=_0x7a9781['getSelectionAffectedTableCells'](_0x1f22b6['document']['selection']);if(!_0x437e30['length'])return!0x1;const _0x22d7a5=_0x437e30[0x0]['findAncestor']('table'),_0x40ce2e=_0x7a9781['getRowIndexes'](_0x437e30),_0x4092c7=_0x7a9781['getColumnIndexes'](_0x437e30),_0x2507b5={'startRow':_0x40ce2e['first'],'endRow':_0x40ce2e['last'],'startColumn':_0x4092c7['first'],'endColumn':_0x4092c7['last']};return 0x1==_0x437e30['length']&&(_0x2507b5['endRow']+=_0x7a9781['getRows'](_0x35ca35)-0x1,_0x2507b5['endColumn']+=_0x7a9781['getColumns'](_0x35ca35)-0x1),he(_0x22d7a5,_0x2507b5,_0x7a9781);}(_0x7ceecb,_0x3181c1,_0x3ac311['model'],_0x29a354,_0x55d9ea)&&(_0x2a9886['stop'](),_0x27a397={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3ac311['model']['change'](()=>{_0x3ac311['model']['insertContent'](_0x6a8692[0x0],_0x6a8692[0x1],_0x6a8692[0x2],{'forceDefaultExecution':!0x0});const _0x276525=_0x323406(),{rowInsertionRanges:_0x1e828c,columnInsertionRanges:_0x693f5d,insertionRanges:_0x28f7d8,deletionRanges:_0x2ced20,cells:_0x5d94a8}=_0x27a397;_0x1e828c['length']&&_0x513a8d['markMultiRangeInsertion'](_0x1e828c,'tablePasteRow',{'tablePasteChainId':_0x276525}),_0x693f5d['length']&&_0x513a8d['markMultiRangeInsertion'](_0x693f5d,'tablePasteColumn',{'tablePasteChainId':_0x276525}),_0x28f7d8['length']&&(_0x513a8d['markMultiRangeInsertion'](_0x28f7d8,'tablePaste',{'tablePasteChainId':_0x276525,'skipNestingCheck':!0x0}),_0x28f7d8['forEach'](_0x2cfb0c=>_0x2cfb0c['detach']?.())),_0x2ced20['length']&&(_0x513a8d['markMultiRangeDeletion'](_0x2ced20,'tablePaste',{'tablePasteChainId':_0x276525,'skipNestingCheck':!0x0}),_0x2ced20['forEach'](_0x18979e=>_0x18979e['detach']?.()));const _0x3c4a3a=_0x513a8d['markMultiRangeBlockFormat'](_0x5d94a8['map'](({element:_0xc9d5fa})=>_0xc9d5fa),{'formatGroupId':_0x323406()},[],'tablePasteCell',{'tablePasteChainId':_0x276525});if(_0x3c4a3a){const _0x20b80a=_0x3c4a3a['getMarkers'](),_0x29b71b=[];for(const {element:_0x1084f7,attributes:_0x4beb6a}of _0x5d94a8){if(!_0x4beb6a)continue;const _0x201ec5=_0x3ac311['model']['createRangeOn'](_0x1084f7),_0x24f29a=_0x20b80a['find'](_0x4773a1=>_0x4773a1['getRange']()['isEqual'](_0x201ec5));_0x24f29a&&_0x29b71b['push']([_0x24f29a['name'],_0x4beb6a]);}_0x29b71b['length']&&_0x3c4a3a['setAttribute']('markerAttributes',Object['fromEntries'](_0x29b71b));}_0x27a397=null;}));},{'priority':_0x3a0f7c['high']+0xa}),_0x3ac311['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x130633,_0x4b2eae)=>{const [_0x20be2d,_0x61a01a,,_0x4a5300]=_0x4b2eae;if(!_0x27a397)return;_0x130633['stop']();const _0x38dc18=_0x20be2d['cell'],_0x1656cc=_0x61a01a,_0x5148b4=Pe(_0x38dc18),_0x54bf8a=Pe(_0x1656cc);_0x130633['return']=_0x38dc18;let _0x16fb58=null,_0x551bc8=null;if(_0x54bf8a||_0x5148b4){if(_0x5148b4&&!_0x54bf8a){_0x4a5300['remove'](_0x38dc18['getChild'](0x0));for(const _0x2c962e of Array['from'](_0x1656cc['getChildren']()))_0x4a5300['insert'](_0x2c962e,_0x38dc18,'end');const _0x24930b=_0x27a397['rowInsertionIndexes']['includes'](_0x20be2d['row']),_0xdbe87e=_0x27a397['columnInsertionIndexes']['includes'](_0x20be2d['column']);_0x24930b||_0xdbe87e||(_0x16fb58=_0x374e30['fromRange'](_0x4a5300['createRangeIn'](_0x38dc18)));}else _0x54bf8a&&!_0x5148b4&&(_0x551bc8=_0x4a5300['createRangeIn'](_0x38dc18));}else{const _0x5b4d6e=_0x4a5300['createElement']('tableCellSuggestion'),_0xf1cc87=_0x4a5300['createElement']('tableCellSuggestion');_0x4a5300['wrap'](_0x4a5300['createRangeIn'](_0x38dc18),_0xf1cc87),_0x4a5300['insert'](_0x5b4d6e,_0x38dc18,0x0);for(const _0x5b4bde of Array['from'](_0x1656cc['getChildren']()))_0x4a5300['insert'](_0x5b4bde,_0x5b4d6e,'end');_0x16fb58=_0x374e30['fromRange'](_0x4a5300['createRangeOn'](_0x5b4d6e)),_0x551bc8=_0x374e30['fromRange'](_0x4a5300['createRangeOn'](_0xf1cc87));}const _0x372c97=Array['from'](_0x1656cc['getAttributes']())['filter'](([_0x54d217])=>ge['includes'](_0x54d217));_0x27a397['cells']['push']({'element':_0x38dc18,'attributes':_0x372c97['length']?Object['fromEntries'](_0x372c97):null}),_0x16fb58&&_0x27a397['insertionRanges']['push'](_0x16fb58),_0x551bc8&&_0x27a397['deletionRanges']['push'](_0x551bc8);},{'priority':'high'}),_0x29a354['on']('insertColumns',(_0x62ec90,_0x19542c)=>{const [_0x2b496c,_0x251267={}]=_0x19542c;if(!_0x27a397)return;const _0x549e5d=_0x251267['at']||0x0,_0x252236=_0x251267['columns']||0x1;_0x27a397['columnInsertionIndexes']=new Array(_0x252236)['fill'](_0x549e5d)['map']((_0x122d2d,_0x52b825)=>_0x122d2d+_0x52b825);for(const {cell:_0x4bacad}of _0x29a354['createTableWalker'](_0x2b496c,{'startColumn':_0x549e5d,'endColumn':_0x549e5d+_0x252236-0x1}))_0x27a397['columnInsertionRanges']['push'](_0x3ac311['model']['createRangeOn'](_0x4bacad));},{'priority':'low'}),_0x29a354['on']('insertRows',(_0x452ff6,_0x2e6527)=>{const [_0x530e51,_0x525649={}]=_0x2e6527;if(!_0x27a397)return;const _0x43491b=_0x525649['at']||0x0,_0x56bc14=_0x525649['rows']||0x1;_0x27a397['rowInsertionIndexes']=new Array(_0x56bc14)['fill'](_0x43491b)['map']((_0x18bc29,_0x22de6a)=>_0x18bc29+_0x22de6a);for(const {cell:_0x45eefa}of _0x29a354['createTableWalker'](_0x530e51,{'startRow':_0x43491b,'endRow':_0x43491b+_0x56bc14-0x1}))_0x27a397['rowInsertionRanges']['push'](_0x3ac311['model']['createRangeOn'](_0x45eefa));},{'priority':'low'}),_0x513a8d['descriptionFactory']['registerDescriptionCallback'](_0x195a86=>{if(_0x195a86['subType']&&_0x195a86['subType']['startsWith']('tablePaste'))return _0x195a86['previous']?{}:{'type':'insertion','content':o(_0x3ac311['locale'],'*Replace\x20table\x20cells*')};});const _0x2486c0=()=>!0x1;for(const _0x9ccf95 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x513a8d['_suggestionFactory']['registerCustomCallback']('insertion',_0x9ccf95,'join',_0x2486c0),_0x513a8d['_suggestionFactory']['registerCustomCallback']('deletion',_0x9ccf95,'join',_0x2486c0),_0x513a8d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x9ccf95,'join',_0x2486c0);_0x513a8d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2486c0),_0x513a8d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1b1e70,_0x55ce81,_0x45e685)=>{const _0x5088e7=_0x1b1e70['map'](_0x54d804=>_0x54d804['getContainedElement']())['filter'](_0x39f74a=>_0x39f74a),_0x1def96=new Map(_0x5088e7['map'](_0x43818e=>[_0x43818e,null]));if(_0x27a397){for(const {element:_0x21adb0,attributes:_0x38ec74}of _0x27a397['cells'])_0x38ec74&&_0x1def96['set'](_0x21adb0,_0x38ec74);}else{if(_0x45e685&&_0x45e685['markerAttributes'])for(const [_0x2da12d,_0x506b84]of Object['entries'](_0x45e685['markerAttributes'])){const _0x53a684=_0x3ac311['model']['markers']['get'](_0x2da12d),_0x524726=_0x53a684?_0x53a684['getRange']()['getContainedElement']():null;_0x524726&&_0x1def96['set'](_0x524726,_0x506b84);}}_0x3ac311['model']['change'](_0x4fc198=>{for(const [_0x33bf0d,_0x46a308]of _0x1def96)_0x4fc198['setAttributes']({...Ce,..._0x46a308},_0x33bf0d);});});const _0x8b4f18=(_0x1da31a,_0x579abd)=>{_0x513a8d['_suggestionFactory']['registerCustomCallback'](_0x1da31a,'tablePaste',_0x579abd,(_0x10ae62,_0x344f3c,_0x53b783)=>{_0x3ac311['model']['change'](_0x4f1f46=>{const _0x255daf=[];for(const _0x4265e6 of _0x10ae62){const _0x37cc12=_0x4265e6['start']['nodeAfter'];_0x37cc12['is']('element','tableCellSuggestion')&&_0x255daf['push'](_0x37cc12);}_0x513a8d['_suggestionFactory']['getSuggestionCallback'](_0x1da31a,null,_0x579abd)(_0x10ae62,_0x344f3c,_0x53b783);for(const _0x38c244 of _0x255daf)'$graveyard'!=_0x38c244['root']['rootName']&&_0x4f1f46['unwrap'](_0x38c244);});});};_0x8b4f18('insertion','accept'),_0x8b4f18('insertion','discard'),_0x8b4f18('deletion','accept'),_0x8b4f18('deletion','discard'),_0x513a8d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1bba54=>{const _0x599781=_0x1bba54['map'](_0x173e53=>_0x173e53['getContainedElement']()),_0x3b6660=_0x599781[0x0]['findAncestor']('table'),{minRow:_0x47ec5d,maxRow:_0x16cee8}=_0x40c6b5['_getCoordsForCells'](_0x599781);_0x29a354['removeRows'](_0x3b6660,{'at':_0x47ec5d,'rows':_0x16cee8-_0x47ec5d+0x1});}),_0x513a8d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x285d61=>{const _0x3df187=_0x285d61['map'](_0x4d513e=>_0x4d513e['getContainedElement']()),_0x25868e=_0x3df187[0x0]['findAncestor']('table'),{minColumn:_0x3a3c,maxColumn:_0x26f6b5}=_0x40c6b5['_getCoordsForCells'](_0x3df187);_0x29a354['removeColumns'](_0x25868e,{'at':_0x3a3c,'columns':_0x26f6b5-_0x3a3c+0x1});});const _0x1653d7=(_0x42279f,_0xd2a46f)=>{if(!_0xd2a46f['subType']||!_0xd2a46f['subType']['startsWith']('tablePaste'))return;const _0x5550be=_0xd2a46f['attributes']['tablePasteChainId'],_0x1b72ba=_0x513a8d['getSuggestions']()['filter'](_0x3f5fbf=>_0x3f5fbf['isInContent']&&_0x3f5fbf['attributes']&&_0x3f5fbf['attributes']['tablePasteChainId']==_0x5550be);_0x1b72ba['length']&&_0xd2a46f['getAllAdjacentSuggestions']()['length']!=_0x1b72ba['length']&&_0x1b72ba['reduce']((_0x585b92,_0x215c3c)=>(_0x585b92['next']=_0x215c3c,_0x215c3c['previous']=_0x585b92,_0x215c3c));};function _0x373785(_0x1f63d9,_0x3a412f=!0x0){const {id:_0x2051f4}=_0x513a8d['_splitMarkerName'](_0x1f63d9['markerName']),_0x2067e9=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xfeb606=_0x513a8d['activeMarkers']['includes'](_0x1f63d9['markerName']);return _0xfeb606&&_0x2067e9['push']('ck-suggestion-marker--active'),{'classes':_0x2067e9,'attributes':{'data-suggestion':_0x2051f4},'priority':_0xfeb606&&_0x3a412f?0xbc2:0xbb8};}_0x513a8d['on']('suggestionLoaded',_0x1653d7,{'priority':'high'}),_0x513a8d['on']('suggestionUnloaded',_0x1653d7,{'priority':'high'}),_0x3ac311['model']['document']['registerPostFixer'](()=>{let _0x20bb89=!0x1;const _0x2bd345=Array['from'](_0x3ac311['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x15b98a,data:_0x26bc8c}of _0x2bd345){const {group:_0x3de968,type:_0x58a68f,id:_0x403842}=_0x513a8d['_splitMarkerName'](_0x15b98a);if('suggestion'!=_0x3de968||'deletion'!=_0x58a68f||_0x26bc8c['oldRange'])continue;if(!_0x513a8d['hasSuggestion'](_0x403842))continue;const _0x2062bd=_0x513a8d['getSuggestion'](_0x403842)['getRanges'](),_0x53aa15=_0x3ac311['plugins']['get']('Users')['me'];for(const _0x1b2d83 of _0x513a8d['getSuggestions']()){if(!_0x1b2d83['isInContent']||_0x1b2d83['author']!=_0x53aa15)continue;if('formatBlock'!=_0x1b2d83['type']||'tablePasteCell'!=_0x1b2d83['subType'])continue;if(_0x1b2d83['getRanges']()['every'](_0x576e2f=>_0x2062bd['some'](_0x4dfd0f=>_0x4dfd0f['containsRange'](_0x576e2f,!0x0)))){for(const _0x9e6fa5 of _0x1b2d83['getAllAdjacentSuggestions']())_0x9e6fa5['isInContent']&&(_0x9e6fa5['discard'](),_0x20bb89=!0x0);}}}return _0x20bb89;}),_0x3ac311['model']['document']['registerPostFixer'](_0x428f27=>{const _0x1e454e=_0x3ac311['commands']['get']('redo');if(!_0x1e454e||!_0x1e454e['_createdBatches']['has'](_0x428f27['batch']))return!0x1;let _0x29ec3a=!0x1;const _0x2c2948=_0x3ac311['plugins']['get']('Users')['me'],_0x26d339=_0x3ac311['model']['document']['differ']['getChanges'](),_0xdd4b2a=Array['from'](_0x3ac311['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1d4e62,data:_0x18f7da})=>{const {group:_0x31b693,subType:_0x1a39fc,authorId:_0x50e7e4}=_0x513a8d['_splitMarkerName'](_0x1d4e62);return'suggestion'==_0x31b693&&'tablePaste'==_0x1a39fc&&_0x50e7e4==_0x2c2948['id']&&!_0x18f7da['oldRange'];});for(const _0x41213c of _0x26d339){if('insert'!=_0x41213c['type']||'tableCellSuggestion'!=_0x41213c['name']||0x1!=_0x41213c['length'])continue;const _0x223724=_0x428f27['createRange'](_0x41213c['position'],_0x41213c['position']['getShiftedBy'](0x1));if(!_0xdd4b2a['find'](({data:_0x579e60})=>_0x579e60['newRange']['isEqual'](_0x223724))){for(const {name:_0x316420,data:_0x3b5ad7}of _0xdd4b2a)if(_0x223724['containsRange'](_0x3b5ad7['newRange'])){_0x428f27['updateMarker'](_0x316420,{'range':_0x223724}),_0x29ec3a=!0x0;break;}}}return _0x29ec3a;}),_0x3ac311['model']['document']['registerPostFixer'](_0x593ffc=>{let _0x16c9c2=!0x1;const _0x30f4af=_0x3ac311['plugins']['get']('Users')['me'],_0x324e74=_0x513a8d['getSuggestions']()['filter'](_0xb8a98b=>_0xb8a98b['isInContent']&&_0xb8a98b['author']==_0x30f4af),_0x1cda1d=new Set(),_0x15f599=new Set();for(const _0x3e7ac0 of _0x324e74)if('tablePaste'==_0x3e7ac0['subType'])for(const _0x3c2f9a of _0x3e7ac0['getMarkers']()){const _0x4510bf=_0x3c2f9a['getRange']()['getContainedElement']();if(_0x4510bf){if(_0x4510bf['is']('element','tableCellSuggestion')&&Pe(_0x4510bf)){_0x3e7ac0['removeMarker'](_0x3c2f9a['name']),_0x1cda1d['add'](_0x4510bf),_0x16c9c2=!0x0;const _0x1b0133=_0x4510bf['nextSibling'],_0x3cc687=_0x4510bf['previousSibling'],_0x3c2d89=_0x1b0133&&_0x1b0133['is']('element','tableCellSuggestion'),_0x593e5d=_0x3cc687&&_0x3cc687['is']('element','tableCellSuggestion');_0x3c2d89&&!_0x1cda1d['has'](_0x1b0133)&&_0x15f599['add'](_0x1b0133),_0x593e5d&&!_0x1cda1d['has'](_0x3cc687)&&_0x15f599['add'](_0x3cc687);}else _0x4510bf['is']('element','paragraph')&&_0x4510bf['isEmpty']&&(_0x3e7ac0['removeMarker'](_0x3c2f9a['name']),_0x16c9c2=!0x0);}}else{if('tablePasteCell'==_0x3e7ac0['subType']){if(!_0x3e7ac0['attributes']||!_0x3e7ac0['attributes']['tablePasteChainId'])continue;const _0x3cf943=_0x3e7ac0['attributes']['markerAttributes'];if(_0x3cf943&&Object['keys'](_0x3cf943)['length'])continue;const _0x3739e1=_0x3e7ac0['attributes']['tablePasteChainId'];let _0xd975d5=!0x0,_0xd295a1=!0x0;for(const _0x20646d of _0x324e74)if(_0x20646d['subType']&&_0x20646d['subType']['startsWith']('tablePaste')){if(!_0x20646d['attributes']['tablePasteChainId']){_0xd295a1=!0x1;break;}if(_0x20646d['id']!=_0x3e7ac0['id']&&_0x20646d['attributes']['tablePasteChainId']==_0x3739e1){_0xd975d5=!0x1;break;}}_0xd295a1&&_0xd975d5&&(_0x3e7ac0['removeMarkers'](),_0x16c9c2=!0x0);}}for(const _0x38fc0c of _0x1cda1d)_0x593ffc['remove'](_0x38fc0c);for(const _0x4bc7ef of _0x15f599)_0x593ffc['unwrap'](_0x4bc7ef);return _0x16c9c2;}),_0x3ac311['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xfec492,_0x17e134)=>_0x373785(_0xfec492),'converterPriority':'high'}),_0x3ac311['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x81cb42,_0x782c0)=>_0x782c0['options']['showSuggestionHighlights']?_0x373785(_0x81cb42,!0x1):null,'converterPriority':'high'});const _0x155c1c=_0x3ac311['editing']['view'];this['listenTo'](_0x155c1c['document'],'clipboardOutput',(_0x4e5e95,_0x34e3ac)=>{const _0x4f7ce5=[];for(const _0x42bcf3 of _0x155c1c['createRangeIn'](_0x34e3ac['content'])['getItems']())_0x42bcf3['is']('element','suggestion-td')&&_0x4f7ce5['push'](_0x42bcf3);_0x155c1c['change'](_0x1351a3=>{for(const _0x3a5c86 of _0x4f7ce5)_0x1351a3['move'](_0x1351a3['createRangeIn'](_0x3a5c86),_0x1351a3['createPositionBefore'](_0x3a5c86)),_0x1351a3['remove'](_0x3a5c86);});});}}function Pe(_0x473655){if(_0x473655['isEmpty'])return!0x0;const _0x599fc0=_0x473655['getChild'](0x0);return _0x599fc0['is']('element','paragraph')&&_0x599fc0['isEmpty'];}function he(_0x2ac862,_0x990144={},_0x3c31ed){for(const {isAnchor:_0xad941a,cellHeight:_0x3c4c4f,cellWidth:_0x40cbe}of _0x3c31ed['createTableWalker'](_0x2ac862,{'includeAllSlots':!0x0,..._0x990144}))if(!_0xad941a||0x1!=_0x3c4c4f||0x1!=_0x40cbe)return!0x1;return!0x0;}class vt extends _0x14427b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x40d7a5=this['editor']['plugins']['get']('TrackChangesEditing');_0x40d7a5['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x40d7a5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x40d7a5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x40d7a5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x40d7a5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x40d7a5['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x137693,_0x3a98f6){const _0x464f2f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36d8bf=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1989df=_0x3a98f6['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2d145f=_0x36d8bf['getColumnGroupElement'](_0x1989df);let _0x52199e=_0x2d145f?_0x36d8bf['getTableColumnsWidths'](_0x2d145f):null,_0x2d3a8c=_0x1989df['getAttribute']('tableWidth')||null;const _0x55ec34=_0x3a98f6['tableWidth']||_0x2d3a8c,_0x4b8461=_0x3a98f6['columnWidths']||_0x52199e,_0x16a467=this['editor']['plugins']['get']('Users')['me'];for(const _0x5f2266 of _0x464f2f['getSuggestions']()){const _0x56f1df=_0x5f2266['getContainedElement']();if('resizeTable'===_0x5f2266['subType']&&_0x56f1df===_0x1989df){_0x5f2266['author']!==_0x16a467&&_0x5f2266['discard']();const _0x5934a7=_0x5f2266['data']['commandParams'];_0x2d3a8c=_0x5934a7[0x0]['tableWidth'],_0x52199e=_0x5934a7[0x0]['columnWidths'];break;}}_0x137693({'table':_0x1989df,'tableWidth':_0x55ec34,'columnWidths':_0x4b8461}),_0x464f2f['markBlockFormat'](_0x1989df,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2d3a8c,'columnWidths':_0x52199e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5b86bc){if('formatBlock'!=_0x5b86bc['type']&&'formatInline'!=_0x5b86bc['type'])return;const {data:_0xe58b37}=_0x5b86bc;if(_0xe58b37&&'resizeTable'===_0xe58b37['formatGroupId']){const _0x4465ea='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4465ea)};}}}class Ct extends _0x14427b{['afterInit'](){const _0xc948e3=this['editor'];_0xc948e3['plugins']['has']('Template')&&_0xc948e3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x14427b{['afterInit'](){const _0x398cc9=this['editor'];if(!_0x398cc9['commands']['get']('insertTableOfContents'))return;_0x398cc9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4e5f5e=_0x398cc9['plugins']['get']('TrackChangesEditing'),_0x4621b0=_0x398cc9['locale'];_0x4e5f5e['descriptionFactory']['registerElementLabel']('tableOfContents',_0x40a8bc=>o(_0x4621b0,'ELEMENT_TABLE_OF_CONTENTS',_0x40a8bc));}}class Dt extends _0x14427b{['afterInit'](){const _0x596b67=this['editor'];if(!_0x596b67['plugins']['has']('Title'))return;const _0x164ed2=_0x596b67['plugins']['get']('TrackChangesEditing');_0x164ed2['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x596b67['locale'],'ELEMENT_TITLE')),_0x596b67['model']['document']['registerPostFixer'](_0x1723aa=>{let _0x4a163a=!0x1;const _0x43b35e=Array['from'](_0x596b67['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ebea7,data:_0xbb0351}of _0x43b35e){const {group:_0x2c955c}=_0x164ed2['_splitMarkerName'](_0x2ebea7);if('suggestion'!==_0x2c955c||!_0xbb0351['newRange'])continue;const _0x9a030a=_0xbb0351['newRange'],_0x119ce8=_0x9a030a['end']['nodeBefore'];if(!_0x119ce8||!_0x119ce8['is']('element','title-content'))continue;if(!_0x9a030a['start']['isTouching'](_0x9a030a['end']))continue;const _0x40f79f=_0x596b67['model']['schema']['getNearestSelectionRange'](_0x9a030a['end'],'forward');if(_0x40f79f&&_0x40f79f['isCollapsed']){const _0x4bfe12=_0x1723aa['createRange'](_0x9a030a['start'],_0x40f79f['start']);_0x4bfe12['isEqual'](_0x9a030a)||(_0x1723aa['updateMarker'](_0x2ebea7,{'range':_0x4bfe12}),_0x4a163a=!0x0);}_0x4a163a||(_0x1723aa['removeMarker'](_0x2ebea7),_0x4a163a=!0x0);}return _0x4a163a;});}}class Nt extends _0x14427b{['afterInit'](){const _0x54466d=this['editor'],_0x35adfe=_0x54466d['plugins']['get']('TrackChangesEditing');_0x54466d['plugins']['has']('UndoEditing')&&(_0x35adfe['enableCommand']('undo'),_0x35adfe['enableCommand']('redo'));}}class Mt extends _0x14427b{static get['requires'](){return[jt];}['afterInit'](){const _0x13812f=this['editor'];if(!_0x13812f['plugins']['has']('TableCaptionEditing'))return;_0x13812f['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x14427b{['tableProperties'];['tableCellProperties'];constructor(_0x2d0cae){super(_0x2d0cae),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 _0x210d5d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x6c5736 of this['tableProperties'])_0x210d5d['enableCommand'](_0x6c5736,(_0x1bb592,_0x25295e)=>{const _0x35acb7=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x6c5736,[_0x35acb7],this['tableProperties'],'tableProperties',_0x1bb592,_0x25295e);});_0x210d5d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x210d5d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x210d5d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4a7410,_0x4800e5)=>this['handleDiscardAction'](this['tableProperties'],_0x4a7410,_0x4800e5)),_0x210d5d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3ed2b3 of this['tableCellProperties'])_0x210d5d['enableCommand'](_0x3ed2b3,(_0x412d64,_0x22fb23)=>{const _0x1fc05d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3ed2b3,_0x1fc05d,this['tableCellProperties'],'tableCellProperties',_0x412d64,_0x22fb23);});_0x210d5d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x210d5d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x210d5d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xb706af,_0xa95770)=>this['handleDiscardAction'](this['tableCellProperties'],_0xb706af,_0xa95770)),_0x210d5d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x210d5d['descriptionFactory']['registerDescriptionCallback'](_0x565d39=>this['handleSuggestionDescription'](_0x565d39));}['_handlePropertyChange'](_0x267f56,_0x4f8ba4,_0x3cb187,_0x2dcef9,_0x3c9224,_0x15933e){const _0x446cca=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x15933e['batch'],()=>{for(const _0xdae6d5 of _0x4f8ba4){if(this['_getSuggestion'](_0xdae6d5,_0x2dcef9))_0x3c9224(_0x15933e);else{const _0x47e57c={};for(const _0x334fcd of _0x3cb187){const _0x34def1=_0xdae6d5['getAttribute'](_0x334fcd);void 0x0!==_0x34def1&&(_0x47e57c[_0x334fcd]=_0x34def1);}_0x3c9224(_0x15933e),_0x446cca['markBlockFormat'](_0xdae6d5,{'commandParams':[_0x47e57c]},[],_0x2dcef9);}}});}['handleDiscardAction'](_0x48e89c,_0x29bdf1,_0x5db57a){const _0x2b3e53=_0x29bdf1[0x0]['start']['nodeAfter'],_0x457683=_0x5db57a['commandParams'][0x0];this['editor']['model']['change'](_0x10b78a=>{for(const _0x3ab610 of _0x48e89c)void 0x0!==_0x457683[_0x3ab610]?_0x10b78a['setAttribute'](_0x3ab610,_0x457683[_0x3ab610],_0x2b3e53):_0x10b78a['removeAttribute'](_0x3ab610,_0x2b3e53);});}['handleSuggestionDescription'](_0x7720df){if(_0x7720df['data'])switch(_0x7720df['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'](_0x31e42f,_0x128e85){const _0x1283c6=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x29038e of _0x1283c6['getSuggestions']({'skipNotAttached':!0x0})){const _0x1d593a=_0x29038e['getContainedElement']();if(_0x29038e['subType']===_0x128e85&&_0x1d593a===_0x31e42f)return _0x29038e;}return null;}}const m='$elementName';class p extends _0x14427b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x39a55a,_0x3c5515,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(_0x48fc6a){function _0x287185(_0x5c579e){return _0x5c579e['map'](_0x2ead30=>String['fromCharCode'](_0x2ead30))['join']('');}super(_0x48fc6a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x153978,_0x459d4f,_0x210a29,_0x4415d5)=>{this['_model']['change'](()=>{for(const _0x5c4bb0 of[..._0x4415d5,..._0x210a29])this['_model']['markers']['has'](_0x5c4bb0)&&_0x48fc6a['editing']['reconvertMarker'](_0x5c4bb0);});}),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']=_0x48fc6a['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(),_0x48fc6a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x48fc6a['config']['get']('trackChanges.trackFormatChanges'),_0x48fc6a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x48fc6a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x48fc6a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x287185([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x287185([0x34,0x30,0x34,0x38,0x31,0x32,0x34,0x32]);}['init'](){const _0x420f9b=this['editor'],_0x4f1617=(_0x16608f,_0x2f5bba)=>{if('attribute'!=_0x16608f)return'ck-suggestion-marker-'+_0x16608f;const _0xc87628=_0x2f5bba['split']('|')[0x0];return this['_isBlockAttribute'](_0xc87628)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x420f9b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x30701=>{const {id:_0x270d0a,type:_0x5ab1f2,subType:_0x294dfa}=this['_splitMarkerName'](_0x30701['markerName']),_0x1ff2f7=['ck-suggestion-marker',_0x4f1617(_0x5ab1f2,_0x294dfa)];let _0x37c595=0xbb8;return this['activeMarkers']['includes'](_0x30701['markerName'])&&(_0x1ff2f7['push']('ck-suggestion-marker--active'),_0x37c595=0xbc2),'deletion'==_0x5ab1f2&&(_0x37c595+=0x5),{'classes':_0x1ff2f7,'attributes':{'data-suggestion':_0x270d0a},'priority':_0x37c595};}}),_0x420f9b['conversion']['for']('dataDowncast')['add'](_0x1c330b=>{_0x1c330b['on']('addMarker:suggestion',(_0x299408,_0x2ca46b,_0x8f3cda)=>{if(!_0x8f3cda['options']['showSuggestionHighlights'])return;const _0x43eff7=_0x2ca46b['item'];if(!_0x43eff7)return;const _0x6fb342=_0x8f3cda['mapper']['toViewElement'](_0x43eff7);_0x420f9b['model']['schema']['isObject'](_0x43eff7)&&_0x6fb342&&!_0x6fb342['getCustomProperty']('widget')&&_0x6fb342['is']('containerElement')&&_0x3c8844(_0x6fb342,_0x8f3cda['writer']);},{'priority':'high'});}),_0x420f9b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2a8939,_0x51c375)=>{if(!_0x51c375['options']['showSuggestionHighlights'])return null;const {type:_0x35e06c,subType:_0x5bbf3e}=this['_splitMarkerName'](_0x2a8939['markerName']);return{'classes':['ck-suggestion-marker',_0x4f1617(_0x35e06c,_0x5bbf3e)],'priority':0xbb8};}});const _0xbae1c6=({showActiveMarkers:_0xb4cb1d=!0x0,isAttributeSuggestion:_0x23c394=!0x1}={})=>(_0x4c5991,_0xb60ef1,_0x144fe9)=>{if(!_0xb60ef1['item'])return;const {id:_0x463d04}=this['_splitMarkerName'](_0xb60ef1['markerName']);if(_0x23c394){const _0x325074=this['_suggestions']['get'](_0x463d04),_0x4d1d70=this['_getAttributeKey'](_0x325074);if(!this['_isBlockAttribute'](_0x4d1d70))return;}if(_0xb60ef1['item']['is']('selection'))return void _0x144fe9['consumable']['consume'](_0xb60ef1['item'],_0x4c5991['name']);const _0x7e3b46=_0x144fe9['mapper']['toViewElement'](_0xb60ef1['item']);if(_0xb60ef1['item']['is']('element')&&_0x420f9b['model']['schema']['isBlock'](_0xb60ef1['item'])&&!_0x7e3b46['getCustomProperty']('addHighlight')){_0x144fe9['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x7e3b46),_0x144fe9['writer']['setAttribute']('data-suggestion',_0x463d04,_0x7e3b46),_0x144fe9['mapper']['bindElementToMarker'](_0x7e3b46,_0xb60ef1['markerName']),_0xb4cb1d&&(this['activeMarkers']['includes'](_0xb60ef1['markerName'])?_0x144fe9['writer']['addClass']('ck-suggestion-marker--active',_0x7e3b46):_0x144fe9['writer']['removeClass']('ck-suggestion-marker--active',_0x7e3b46));for(const _0x1cae6d of _0x420f9b['model']['createRangeIn'](_0xb60ef1['item'])['getItems']())_0x144fe9['consumable']['consume'](_0x1cae6d,_0x4c5991['name']);_0x144fe9['consumable']['consume'](_0xb60ef1['item'],_0x4c5991['name']);}};_0x420f9b['conversion']['for']('dataDowncast')['add'](_0x165c30=>{_0x165c30['on']('addMarker:suggestion:formatBlock',(_0x1ec699,_0x458d6e,_0x2be23d)=>{_0x2be23d['options']['showSuggestionHighlights']&&_0xbae1c6({'showActiveMarkers':!0x1})(_0x1ec699,_0x458d6e,_0x2be23d);},{'priority':'highest'});}),_0x420f9b['conversion']['for']('dataDowncast')['add'](_0x81f492=>{_0x81f492['on']('addMarker:suggestion:attribute',(_0x57d6d4,_0xd9b476,_0x42130b)=>{_0x42130b['options']['showSuggestionHighlights']&&_0xbae1c6({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x57d6d4,_0xd9b476,_0x42130b);},{'priority':'highest'});}),_0x420f9b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x177dc6,_0x38804c)=>_0x38804c['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x177dc6['substr'](0xb)}}),_0x420f9b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4e1699,{writer:_0x4f0bd4})=>{let _0x5961f3='suggestion:'+_0x4e1699['getAttribute']('suggestion-type')+':'+_0x4e1699['getAttribute']('id');return _0x4e1699['getAttribute']('marker-count')&&(_0x5961f3+=':'+_0x4e1699['getAttribute']('marker-count')),_0x4f0bd4['createElement']('$marker',{'data-name':_0x5961f3});}}),_0x420f9b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x420f9b['conversion']['for']('editingDowncast')['add'](_0x40e0ad=>{_0x40e0ad['on']('addMarker:suggestion:formatBlock',_0xbae1c6(),{'priority':'high'});}),_0x420f9b['conversion']['for']('editingDowncast')['add'](_0x296684=>{_0x296684['on']('addMarker:suggestion:attribute',_0xbae1c6({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x420f9b['conversion']['for']('editingDowncast')['add'](_0x394060=>{_0x394060['on']('removeMarker:suggestion:formatBlock',(_0x25d396,_0x52163f,_0xcfda11)=>{const _0x3517f2=_0xcfda11['mapper']['markerNameToElements'](_0x52163f['markerName']);if(_0x3517f2){for(const _0x3116c1 of _0x3517f2)_0x3116c1['getCustomProperty']('addHighlight')||(_0xcfda11['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3116c1),_0xcfda11['writer']['removeAttribute']('data-suggestion',_0x3116c1),_0xcfda11['mapper']['unbindElementFromMarkerName'](_0x3116c1,_0x52163f['markerName']));}},{'priority':'high'});}),_0x420f9b['conversion']['for']('editingDowncast')['add'](_0x1e56dc=>{_0x1e56dc['on']('removeMarker:suggestion:attribute',(_0x36f927,_0x125357,_0x497d90)=>{const _0x423a07=_0x497d90['mapper']['markerNameToElements'](_0x125357['markerName']);if(!_0x423a07)return;const {id:_0x3becae}=this['_splitMarkerName'](_0x125357['markerName']),_0x2df974=this['_suggestions']['get'](_0x3becae),_0x571002=this['_getAttributeKey'](_0x2df974);if(this['_isBlockAttribute'](_0x571002)){for(const _0x2bded8 of _0x423a07)_0x2bded8['getCustomProperty']('addHighlight')||(_0x497d90['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2bded8),_0x497d90['writer']['removeAttribute']('data-suggestion',_0x2bded8),_0x497d90['mapper']['unbindElementFromMarkerName'](_0x2bded8,_0x125357['markerName']));}},{'priority':'high'});}),_0x420f9b['model']['document']['registerPostFixer'](_0x176efb=>{let _0x56de7e=!0x1;const _0x107af1=Array['from'](_0x420f9b['model']['document']['differ']['getChangedMarkers']()),_0x3ecbff=new Set();for(const {name:_0x65bbba,data:_0x55ccf0}of _0x107af1){const {group:_0x5b393f,type:_0x2e8a58,subType:_0x3214ce,id:_0x21a48b}=this['_splitMarkerName'](_0x65bbba);if('suggestion'!==_0x5b393f)continue;const _0x531181=this['_suggestions']['get'](_0x21a48b);if(null!=_0x55ccf0['newRange']){'formatInline'==_0x2e8a58&&(_0x56de7e=_0x56de7e||Et(_0x55ccf0['newRange'],_0x65bbba,_0x176efb,_0x420f9b['model']['schema']));const _0x352481='attribute'==_0x2e8a58&&this['_isBlockAttribute'](_0x3214ce['split']('|')[0x0]);if(_0x55ccf0['newRange']['isCollapsed']||'$graveyard'==_0x55ccf0['newRange']['root']['rootName']||'formatBlock'==_0x2e8a58&&!Ut(_0x55ccf0['newRange'])||_0x352481&&!Ut(_0x55ccf0['newRange'])||'deletion'==_0x2e8a58&&!(!Tt(_0x28bbd0=_0x55ccf0['newRange'])&&!function(_0x322c7d){return _0x322c7d['start']['parent']==_0x322c7d['end']['nodeBefore']&&_0x322c7d['start']['isAtEnd'];}(_0x28bbd0)))_0x176efb['removeMarker'](_0x65bbba),_0x56de7e=!0x0;else{if(!_0x531181||!_0x531181['isInContent'])continue;_0x3ecbff['add'](_0x531181);}}}var _0x28bbd0;return _0x3ecbff['size']>0x0&&(_0x56de7e=!!this['_joinWithAdjacentSuggestions'](_0x3ecbff)||_0x56de7e),_0x56de7e;}),_0x420f9b['model']['document']['registerPostFixer'](_0x22fd9d=>{let _0x1f9701=!0x1;for(const _0x464e23 of _0x420f9b['model']['document']['differ']['getChanges']())if('insert'==_0x464e23['type'])for(const _0x3d6fe0 of this['_suggestions']['values']()){if(_0x3d6fe0['isMultiRange']||!_0x3d6fe0['isInContent'])continue;const _0x48c3f8='formatBlock'==_0x3d6fe0['type'],_0x12ca53=this['_getAttributeKey'](_0x3d6fe0),_0x47e99b=_0x12ca53&&this['_isBlockAttribute'](_0x12ca53);if(!_0x48c3f8&&!_0x47e99b)continue;const _0x2b250b=_0x3d6fe0['getFirstRange']();if(_0x2b250b['start']['parent']!=_0x2b250b['end']['parent']&&!_0x2b250b['end']['isAtEnd']){const _0x4468fe=_0x420f9b['model']['createPositionAt'](_0x2b250b['start']['nodeAfter'],'end'),_0x4744c5=_0x420f9b['model']['createRange'](_0x2b250b['start'],_0x4468fe);_0x22fd9d['updateMarker'](_0x3d6fe0['getFirstMarker'](),{'range':_0x4744c5}),_0x1f9701=!0x0;}}return _0x1f9701;}),_0x420f9b['model']['document']['registerPostFixer'](_0x21a00e=>this['_processAttributeChanges'](_0x21a00e)),_0x420f9b['model']['document']['registerPostFixer'](_0x2f8a01=>!_0x2f8a01['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2f8a01)),_0x420f9b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x420f9b['model']['document']['on']('change:data',(_0x1a5960,_0x57b9ed)=>{if(!_0x57b9ed['isLocal']||_0x57b9ed['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x56e46c=_0x420f9b['model']['document']['differ']['getChanges']();if(0x0==_0x56e46c['length'])return;const _0x448bde=[],_0x19c9b4=_0x56e46c['filter'](_0x305cff=>'attribute'==_0x305cff['type']),_0x1dec0f=_0x56e46c['filter'](_0xc2700c=>'insert'==_0xc2700c['type']&&'$text'!=_0xc2700c['name']);for(const _0x1c6a5a of _0x19c9b4)this['_isRegisteredAttribute'](_0x1c6a5a['attributeKey'])&&_0x448bde['push']({'key':_0x1c6a5a['attributeKey'],'newValue':_0x1c6a5a['attributeNewValue'],'oldValue':_0x1c6a5a['attributeOldValue'],'range':Ot(_0x1c6a5a['range'],_0x420f9b['model'])});for(const _0x5df6c6 of _0x1dec0f){if('rename'!=_0x5df6c6['action']&&'refresh'!=_0x5df6c6['action'])continue;const _0x400a94=Gt(_0x5df6c6['position']['nodeAfter'],_0x420f9b['model']),_0x422667=_0x5df6c6['before'];'rename'==_0x5df6c6['action']&&_0x448bde['push']({'key':m,'newValue':_0x5df6c6['name'],'oldValue':_0x422667['name'],'range':_0x400a94});for(const [_0x7e5168,_0x569d2d]of _0x422667['attributes']){if(!this['_isRegisteredAttribute'](_0x7e5168))continue;const _0x357739=_0x5df6c6['attributes']['get'](_0x7e5168);_0x569d2d!==_0x357739&&_0x448bde['push']({'key':_0x7e5168,'newValue':_0x357739,'oldValue':_0x569d2d,'range':_0x400a94});}for(const [_0x36f079,_0x5889e4]of _0x5df6c6['attributes'])this['_isRegisteredAttribute'](_0x36f079)&&(_0x422667['attributes']['has'](_0x36f079)||_0x448bde['push']({'key':_0x36f079,'newValue':_0x5889e4,'oldValue':null,'range':_0x400a94}));}0x0!=_0x448bde['length']&&_0x420f9b['model']['enqueueChange'](_0x57b9ed,_0x43fafb=>{const _0x269ad1=_0x323406();for(const {range:_0x3ed83f,key:_0xd8ba88,oldValue:_0x4f7ced,newValue:_0x1d6c3e}of _0x448bde)this['markAttributeChange'](_0x3ed83f,_0xd8ba88,_0x4f7ced,_0x1d6c3e,{'groupId':_0x269ad1});this['_reduceExistingSuggestions'](_0x43fafb,_0x448bde);});},{'priority':'lowest'}),_0x420f9b['model']['markers']['on']('update:suggestion',(_0x2d8c89,_0x13695c,_0x2d220e)=>{if(null==_0x2d220e){const {id:_0x855877}=this['_splitMarkerName'](_0x13695c['name']),_0x132429=this['_suggestions']['get'](_0x855877);_0x132429&&_0x132429['addMarkerName'](_0x13695c['name']);}}),_0x420f9b['model']['document']['on']('change:data',()=>{const _0x5f24d1=Array['from'](_0x420f9b['model']['document']['differ']['getChangedMarkers']())['filter'](_0x165b53=>'suggestion'===this['_splitMarkerName'](_0x165b53['name'])['group']);if(0x0===_0x5f24d1['length'])return;_0x5f24d1['sort']((_0xb5fc63,_0x1e30d8)=>{const _0x32be4=_0xb5fc63['data']['oldRange'],_0x791d94=_0x1e30d8['data']['oldRange'];return null===_0x32be4&&null===_0x791d94?0x0:null===_0x32be4&&null!==_0x791d94?-0x1:null!==_0x32be4&&null===_0x791d94?0x1:_0x32be4['start']['isBefore'](_0x791d94['start'])?-0x1:0x1;});const _0x12c07e=new Set(),_0x14a4b6=new Set();for(const {name:_0xb4271c,data:_0x1426d2}of _0x5f24d1){const {id:_0x56364e}=this['_splitMarkerName'](_0xb4271c);if(null===_0x1426d2['oldRange']){const _0x2f348e=this['_handleNewSuggestionMarker'](_0xb4271c);_0x14a4b6['add'](_0x2f348e);}else{const _0x31f90a=this['_suggestions']['get'](_0x56364e);null!==_0x1426d2['newRange']||_0x31f90a['isInContent']?(_0x12c07e['add'](_0x31f90a['head']),_0x14a4b6['add'](_0x31f90a)):this['_removeSuggestion'](_0x31f90a);}}_0x14a4b6['size']>0x0&&this['_refreshSuggestionsChain'](_0x14a4b6);for(const _0x37a2a5 of _0x12c07e)this['fire']('suggestionChanged',_0x37a2a5);}),_0x420f9b['model']['on']('applyOperation',(_0x23ee85,_0x18483f)=>{const _0x3aea0c=_0x18483f[0x0];if(!this['_suggestions']['size'])return;if(!_0x3aea0c['isDocumentOperation'])return;if(_0x3aea0c['batch']['isUndo']||!_0x3aea0c['batch']['isLocal'])return;let _0x8dd02d,_0x1d77d6;switch(_0x3aea0c['type']){case'insert':_0x8dd02d=_0x420f9b['model']['createPositionAt'](_0x3aea0c['position']),_0x1d77d6=_0x8dd02d['getShiftedBy'](_0x3aea0c['howMany']);break;case'split':_0x8dd02d=_0x420f9b['model']['createPositionAt'](_0x3aea0c['splitPosition']),_0x1d77d6=_0x420f9b['model']['createPositionAt'](_0x3aea0c['moveTargetPosition']);break;case'move':_0x8dd02d=_0x420f9b['model']['createPositionAt'](_0x3aea0c['targetPosition']),_0x1d77d6=_0x8dd02d['getShiftedBy'](_0x3aea0c['howMany']);break;default:return;}const _0xcf93b3=_0x420f9b['model']['createRange'](_0x8dd02d,_0x1d77d6);_0x420f9b['model']['change'](()=>{for(const {suggestion:_0x11f9ea,meta:_0x2194d5}of this['_findSuggestions'](_0xcf93b3)){if(_0x11f9ea['isMultiRange'])continue;if('formatInline'==_0x11f9ea['type'])continue;const _0x17edba=this['_getAttributeKey'](_0x11f9ea);if(_0x17edba&&this['_isBlockAttribute'](_0x17edba)&&'split'!=_0x3aea0c['type'])continue;const _0x4bb216=_0x11f9ea['data']&&_0x11f9ea['data']['multipleBlocks'];('formatBlock'!=_0x11f9ea['type']||'split'==_0x3aea0c['type']&&!_0x4bb216)&&(_0x2194d5['containsRangeInObject']||'insertion'==_0x11f9ea['type']&&_0x2194d5['isOwn']||_0x11f9ea['getFirstRange']()['containsRange'](_0xcf93b3)&&this['_breakSuggestionMarker'](_0x11f9ea,_0x8dd02d,_0x1d77d6));}});},{'priority':'lowest'}),_0x420f9b['model']['on']('deleteContent',(_0x516fad,_0x46850b)=>{const _0x5a464b=_0x46850b[0x0],_0x1a51f=_0x46850b[0x1];if(_0x1a51f&&_0x1a51f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5a464b['isCollapsed'])return;const _0x5c9233=_0x420f9b['model']['schema'],{start:_0x465a47,end:_0x5f0d90}=_0x5a464b['getFirstRange'](),_0xc0fff4=_0x465a47['nodeAfter']&&_0x5c9233['isLimit'](_0x465a47['nodeAfter'])?null:_0x5c9233['getNearestSelectionRange'](_0x465a47,'forward'),_0x53b30a=_0x5f0d90['nodeBefore']&&_0x5c9233['isLimit'](_0x5f0d90['nodeBefore'])?null:_0x5c9233['getNearestSelectionRange'](_0x5f0d90,'backward'),_0x5cd8e0=_0x420f9b['model']['createRange'](_0xc0fff4?_0xc0fff4['start']:_0x465a47,_0x53b30a?_0x53b30a['end']:_0x5f0d90);_0x420f9b['model']['change'](_0x5415b1=>{this['markDeletion'](_0x5cd8e0);const _0x47be13=_0x420f9b['model']['schema']['getNearestSelectionRange'](_0x5cd8e0['start']);_0x5a464b['is']('documentSelection')?_0x5415b1['setSelection'](_0x47be13):_0x5a464b['setTo'](_0x47be13);}),_0x516fad['stop']();},{'priority':_0x3a0f7c['normal']+0xa}),_0x420f9b['model']['on']('insertContent',(_0x4a3be8,_0x303e85)=>{const _0x50ee9e=_0x303e85[_0x303e85['length']-0x1];_0x50ee9e&&_0x50ee9e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x420f9b['model']['change'](()=>{let _0x2beb3b=_0x420f9b['model']['insertContent'](_0x303e85[0x0],_0x303e85[0x1],_0x303e85[0x2],{'forceDefaultExecution':!0x0});if(!_0x2beb3b)return;_0x4a3be8['return']=_0x2beb3b['clone']();const _0x576f7e=_0x2beb3b['end']['nodeBefore'],_0x2b5fa6=_0x420f9b['model']['schema'];_0x576f7e&&_0x2b5fa6['isBlock'](_0x576f7e)&&!_0x2b5fa6['isObject'](_0x576f7e)&&(_0x2beb3b=_0x420f9b['model']['createRange'](_0x2beb3b['start'],_0x420f9b['model']['createPositionAt'](_0x576f7e,'end'))),this['markInsertion'](_0x2beb3b);}),_0x4a3be8['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2156b9=new $(_0x420f9b,this['_suggestions']);_0x420f9b['commands']['add']('acceptSuggestion',_0x2156b9),this['enableCommand']('acceptSuggestion');const _0x2e0f7c=new B(_0x420f9b,this['_suggestions']);_0x420f9b['commands']['add']('discardSuggestion',_0x2e0f7c),this['enableCommand']('discardSuggestion'),_0x420f9b['commands']['add']('acceptAllSuggestions',new x(_0x420f9b,_0x2156b9,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x420f9b['commands']['add']('discardAllSuggestions',new x(_0x420f9b,_0x2e0f7c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x420f9b['commands']['add']('acceptSelectedSuggestions',new R(_0x420f9b,_0x2156b9,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x420f9b['commands']['add']('discardSelectedSuggestions',new R(_0x420f9b,_0x2e0f7c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x37d339=_0x420f9b['plugins']['get']('CommentsRepository');this['listenTo'](_0x37d339,'addComment',(_0x20548e,{threadId:_0x208534})=>{const _0x3bc6ce=this['_suggestions']['get'](_0x208534);_0x3bc6ce&&_0x3bc6ce['commentThread']&&0x1===_0x3bc6ce['commentThread']['length']&&this['_updateSuggestionData'](_0x208534,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x37d339,'removeComment',(_0x27ef03,{threadId:_0x573360})=>{const _0x150823=this['_suggestions']['get'](_0x573360);_0x150823&&_0x150823['commentThread']&&!_0x150823['commentThread']['length']&&this['_updateSuggestionData'](_0x573360,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x1f0ece){if(this['_adapter'])throw new _0xfe336f('track-changes-adapter-already-set',this);this['_adapter']=_0x1f0ece;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x406859=!0x1,toJSON:_0x2ed88a=!0x1}={}){const _0x3852c5=[];for(const _0x5bfbe7 of this['_suggestions']['values']())_0x406859&&!_0x5bfbe7['isInContent']||_0x3852c5['push'](_0x5bfbe7);return _0x2ed88a?_0x3852c5['map'](_0xf66253=>_0xf66253['toJSON']()):_0x3852c5;}['getSuggestion'](_0x2e8f16){const _0x3dc7ea=this['_suggestions']['get'](_0x2e8f16);if(!_0x3dc7ea)throw new _0xfe336f('track-changes-suggestion-not-found',this);return _0x3dc7ea;}['hasSuggestion'](_0x546325){return this['_suggestions']['has'](_0x546325);}['addSuggestionData'](_0x49739f){const {authorId:_0x36d031,id:_0x6c9ef6,attributes:_0x3d9b59}=_0x49739f,[_0x4ec239,_0x3fbeec]=_0x49739f['type']['split'](':'),_0x3cce05=this['_suggestions']['get'](_0x6c9ef6)||this['_createSuggestion'](_0x4ec239,_0x3fbeec,_0x6c9ef6,_0x36d031,_0x3d9b59);if(this['_addThreadToSuggestion'](_0x3cce05),this['_checkSuggestionCorrectness'](_0x3cce05,_0x4ec239,_0x3fbeec||null,_0x36d031),_0x3cce05['createdAt']=_0x49739f['createdAt'],_0x3cce05['_isDataLoaded']=!0x0,_0x3d9b59&&_0x3d9b59['@external']){const _0x595d88=_0x3d9b59['@external'],_0x426419=this['_getExternalAuthor'](_0x595d88['authorName']);_0x3cce05['authoredAt']=_0x595d88['createdAt'],_0x3cce05['author']=_0x426419,_0x3cce05['isExternal']=!0x0;}else _0x3cce05['authoredAt']=_0x49739f['createdAt'];switch(_0x49739f['data']&&(_0x3cce05['data']=_0x49739f['data']),_0x49739f['attributes']&&(_0x3cce05['attributes']=_0x49739f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3cce05['_saved']=!0x0),this['_suggestionState']['get'](_0x3cce05)){case'notReady':this['_suggestionState']['set'](_0x3cce05,'dataReady');break;case'markerReady':_0x3cce05['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3cce05])),this['_refreshSuggestionsChain'](new Set([_0x3cce05])),this['_suggestionState']['set'](_0x3cce05,'ready'),this['fire']('suggestionLoaded',_0x3cce05)):this['_suggestionState']['set'](_0x3cce05,'removed');}return _0x3cce05;}['acceptSuggestion'](_0x17429f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2b278b of _0x17429f['getAllAdjacentSuggestions']())_0x2b278b['accept']();});});}['discardSuggestion'](_0x6b58b8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4c5930 of _0x6b58b8['getAllAdjacentSuggestions']())_0x4c5930['discard']();});});}['enableCommand'](_0x59a358,_0x4d7b3f){const _0x44a343=this['editor']['commands']['get'](_0x59a358);if(!_0x44a343)throw new _0xfe336f('track-changes-command-not-found',this,{'commandName':_0x59a358});if(this['_enabledCommands']['has'](_0x44a343))throw new _0xfe336f('track-changes-enable-command-twice',this,{'commandName':_0x59a358});this['_enabledCommands']['add'](_0x44a343),_0x4d7b3f&&_0x44a343['on']('execute',(_0x3ff9eb,_0x5dc265)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5dc265['length']>0x0&&_0x5dc265[_0x5dc265['length']-0x1]&&_0x5dc265[_0x5dc265['length']-0x1]['forceDefaultExecution']?_0x5dc265['pop']():(_0x3ff9eb['return']=_0x4d7b3f((..._0x4822f9)=>_0x44a343['execute'](..._0x4822f9,{'forceDefaultExecution':!0x0}),..._0x5dc265),_0x3ff9eb['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1c153e){let _0x1955b6,_0x345db8;const _0x2eab4a=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1955b6=_0x1c153e();}catch(_0x33eeb8){_0x345db8=_0x33eeb8;}return _0x2eab4a||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x345db8&&_0xfe336f['rethrowUnexpectedError'](_0x345db8,this),_0x1955b6;}['markInsertion'](_0x24caee,_0x579c08=null,_0x14f200={}){if(_0x24caee['isCollapsed'])return null;const _0x1ea51e=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2cc8f6,meta:_0x28b157}of this['_findSuggestions'](_0x24caee,'insertion'))if(_0x28b157['isOwn']){if(!_0x28b157['isNextTo']){if(_0x28b157['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x2cc8f6,_0x14f200))continue;return _0x2cc8f6;}if(Lt(_0x2cc8f6,_0x14f200))return _0x2cc8f6;this['_breakSuggestionMarker'](_0x2cc8f6,_0x24caee['start'],_0x24caee['end']);break;}if(_0x579c08==_0x2cc8f6['subType']&&Lt(_0x2cc8f6,_0x14f200)){const _0x15a1d4=_0x2cc8f6['getFirstRange']();return _0x15a1d4['start']['isEqual'](_0x24caee['end'])?this['_setSuggestionRange'](_0x2cc8f6,this['_model']['createRange'](_0x24caee['start'],_0x15a1d4['end'])):this['_setSuggestionRange'](_0x2cc8f6,this['_model']['createRange'](_0x15a1d4['start'],_0x24caee['end'])),_0x2cc8f6;}}const _0x194ab2=_0x323406(),_0x1b0e93=_0x1ea51e['id'],_0x34594b=_0x579c08?'insertion:'+_0x579c08:'insertion',_0x5b0d84=this['_setSuggestionData']({'id':_0x194ab2,'type':_0x34594b,'createdAt':new Date(),'authorId':_0x1b0e93,'attributes':_0x14f200});return this['_addSuggestionMarker'](_0x34594b,_0x194ab2,_0x1b0e93,_0x24caee),_0x5b0d84;}['markMultiRangeInsertion'](_0x82e86f,_0x221a6e='multi',_0xf5239d={}){const _0x314217=this['editor']['plugins']['get']('Users')['me'],_0x1a04ef=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x221a6e,'join');for(const _0xa5a402 of this['getSuggestions']())if(_0xa5a402['author']['id']==_0x314217['id']&&'insertion'==_0xa5a402['type']&&_0xa5a402['subType']==_0x221a6e&&Lt(_0xa5a402,_0xf5239d)&&(_0x1a04ef(_0xa5a402['getRanges'](),_0x82e86f)||_0x1a04ef(_0x82e86f,_0xa5a402['getRanges']()))){for(const _0x4f990d of _0x82e86f)_0xa5a402['addRange'](_0x4f990d);return _0xa5a402;}for(const {suggestion:_0x147583,meta:_0x51640d}of this['_findSuggestions'](_0x82e86f,'insertion')){if(!_0x51640d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x51640d['containsRangeInObject'])continue;if(!Lt(_0x147583,_0xf5239d))continue;let _0x5d3b9d=!0x0;for(const _0x1f6b93 of _0x147583['getRanges']())for(const _0x4d8870 of _0x82e86f)if(!_0x1f6b93['containsRange'](_0x4d8870)){_0x5d3b9d=!0x1;break;}if(_0x5d3b9d)return _0x147583;}const _0x1f3d0=_0x323406(),_0x1a9fea=_0x314217['id'],_0x5456ab='insertion:'+_0x221a6e,_0x32e528=this['_setSuggestionData']({'id':_0x1f3d0,'type':_0x5456ab,'createdAt':new Date(),'authorId':_0x1a9fea,'attributes':_0xf5239d});for(const _0x2c909f of _0x82e86f)this['_addSuggestionMarker'](_0x5456ab,_0x1f3d0,_0x1a9fea,_0x2c909f,u['getMultiRangeId']());return _0x32e528;}['markInlineFormat'](_0x41f90e,_0x32c31c,_0x37ca2d=null,_0x367603={}){if(_0x37ca2d=_0x37ca2d||Vt(_0x32c31c),_0x41f90e['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x34e7b6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x37ca2d,'accept');return this['forceDefaultExecution'](()=>_0x34e7b6([_0x41f90e],_0x32c31c,_0x367603)),null;}const _0x9c615f=this['editor']['plugins']['get']('Users')['me'],_0xeb7354=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2e80c9,meta:_0x2c3a5e}of this['_findSuggestions'](_0x41f90e,'insertion'))_0x2c3a5e['isOwn']&&!_0x2c3a5e['isInsideObject']&&_0xeb7354['push'](..._0x2e80c9['getRanges']());}const _0x39e649=function(_0x495fcd,_0x5cd5c7){const _0x18ab43=[];for(const _0x540fd1 of _0x5cd5c7){const _0x2067e4=_0x495fcd['getIntersection'](_0x540fd1);_0x2067e4&&_0x18ab43['push'](_0x2067e4);}return _0x18ab43;}(_0x41f90e,_0xeb7354),_0x47d6fa=function(_0x5a9068,_0x119cbe){const _0x926076=[_0x5a9068];for(const _0x37395b of _0x119cbe){let _0xc60168=0x0;for(;_0xc60168<_0x926076['length'];){const _0x7aed72=_0x926076[_0xc60168]['getDifference'](_0x37395b);_0x926076['splice'](_0xc60168,0x1,..._0x7aed72),_0xc60168+=_0x7aed72['length'];}}return _0x926076;}(_0x41f90e,_0xeb7354);_0x39e649['length']&&this['_model']['change'](()=>{for(const _0x113519 of _0x39e649){const _0xd6cb62=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x37ca2d,'accept');this['forceDefaultExecution'](()=>_0xd6cb62([_0x113519],_0x32c31c,_0x367603));}});for(const _0x146c71 of _0x47d6fa){let _0x5e2028=null,_0x11de5b=_0x146c71['start'],_0x645ed2=_0x146c71['end'];for(const {suggestion:_0x1337a5,meta:_0x54e54f}of this['_findSuggestions'](_0x146c71,'formatInline')){if(!_0x54e54f['isOwn'])continue;if(_0x1337a5['subType']!=_0x37ca2d)continue;if(!Lt(_0x1337a5,_0x367603))continue;const _0x2ebb08=_0x1337a5['getFirstRange']();if(_0x2ebb08['containsRange'](_0x146c71,!0x0))return null;_0x11de5b=_0x11de5b['isBefore'](_0x2ebb08['start'])?_0x11de5b:_0x2ebb08['start'],_0x645ed2=_0x645ed2['isAfter'](_0x2ebb08['end'])?_0x645ed2:_0x2ebb08['end'],_0x5e2028?_0x2ebb08['start']['isBefore'](_0x5e2028['getFirstRange']()['start'])?(_0x5e2028['removeMarkers'](),_0x5e2028=_0x1337a5):_0x1337a5['removeMarkers']():_0x5e2028=_0x1337a5;}const _0x7154f7=this['_model']['createRange'](_0x11de5b,_0x645ed2);if(_0x5e2028)this['_setSuggestionRange'](_0x5e2028,_0x7154f7);else{const _0x1740cb=_0x323406(),_0x36c011=_0x9c615f['id'];this['_setSuggestionData']({'id':_0x1740cb,'type':'formatInline:'+_0x37ca2d,'data':_0x32c31c,'createdAt':new Date(),'authorId':_0x36c011,'attributes':_0x367603}),this['_addSuggestionMarker']('formatInline:'+_0x37ca2d,_0x1740cb,_0x36c011,_0x7154f7);}}return null;}['markBlockFormat'](_0x4de21b,_0x58a043,_0x5b4be6=[],_0x29431b=null,_0x43af1b={}){_0x58a043['formatGroupId']||(_0x58a043['formatGroupId']=_0x58a043['commandName']),_0x58a043['multipleBlocks']=_0x4de21b['is']('range'),_0x29431b=_0x29431b||Vt(_0x58a043);const _0x207114=_0x5b4be6['map'](_0x1d4748=>Gt(_0x1d4748,this['_model'])),_0x489aef=_0x4de21b['is']('range')?_0x4de21b:Gt(_0x4de21b,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2ec8c4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29431b,'accept');return this['forceDefaultExecution'](()=>_0x2ec8c4([_0x489aef],_0x58a043,_0x43af1b)),null;}_0x207114['push'](_0x489aef);let _0x1ee556=!0x0;for(const _0x30985b of _0x207114)if(!this['_rangeIsInLocalUserInsertion'](_0x30985b)){_0x1ee556=!0x1;break;}if(_0x1ee556&&'always'!==this['_trackFormatChanges']){const _0x22cc86=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29431b,'accept');return this['forceDefaultExecution'](()=>_0x22cc86([_0x489aef],_0x58a043,_0x43af1b)),null;}let _0x4ff748=null,_0x31bd2a=_0x489aef['start'],_0x1c1f5c=_0x489aef['end'];for(const {suggestion:_0x527599,meta:_0x11f193}of this['_findSuggestions'](_0x489aef,'formatBlock')){if(!_0x11f193['isOwn'])continue;if(_0x11f193['isNextTo']||_0x11f193['containsRangeInObject']||_0x11f193['isInsideObject'])continue;if(_0x527599['data']['formatGroupId']!=_0x58a043['formatGroupId'])continue;if(!Lt(_0x527599,_0x43af1b))continue;const _0x215d8e=_0x527599['getFirstRange']();if(_0x527599['subType']==_0x29431b){if(_0x215d8e['containsRange'](_0x489aef,!0x0))return null;_0x31bd2a=_0x31bd2a['isBefore'](_0x215d8e['start'])?_0x31bd2a:_0x215d8e['start'],_0x1c1f5c=_0x1c1f5c['isAfter'](_0x215d8e['end'])?_0x1c1f5c:_0x215d8e['end'],_0x4ff748?_0x215d8e['start']['isBefore'](_0x4ff748['getFirstRange']()['start'])?(_0x4ff748['removeMarkers'](),_0x4ff748=_0x527599):_0x527599['removeMarkers']():_0x4ff748=_0x527599;}else{const _0x193250=_0x489aef['getIntersection'](_0x215d8e);this['_cutOutSuggestionMarker'](_0x527599,_0x193250);}}const _0x1d2c14=this['editor']['plugins']['get']('Users')['me'],_0x3f0860=_0x323406(),_0x2e5847=_0x1d2c14['id'];if(_0x4ff748)return this['_setSuggestionRange'](_0x4ff748,this['_model']['createRange'](_0x31bd2a,_0x1c1f5c)),_0x4ff748;{const _0x27f6e4=this['_setSuggestionData']({'id':_0x3f0860,'type':'formatBlock:'+_0x29431b,'data':_0x58a043,'createdAt':new Date(),'authorId':_0x2e5847,'attributes':_0x43af1b});return this['_addSuggestionMarker']('formatBlock:'+_0x29431b,_0x3f0860,_0x2e5847,this['_model']['createRange'](_0x31bd2a,_0x1c1f5c)),_0x27f6e4;}}['markMultiRangeBlockFormat'](_0x4a34e9,_0x42e747,_0x2cbc0a=[],_0x492d73=null,_0x5be27c={}){_0x42e747['formatGroupId']||(_0x42e747['formatGroupId']=_0x42e747['commandName']);const _0x4b2070=_0x4a34e9[0x0];_0x42e747['multipleBlocks']=_0x4b2070['is']('range'),_0x492d73=_0x492d73||Vt(_0x42e747);const _0x42bcf0=_0x2cbc0a['map'](_0x14c40a=>Gt(_0x14c40a,this['_model'])),_0x766c57=_0x4b2070['is']('range')?_0x4a34e9:_0x4a34e9['map'](_0x215cfb=>Gt(_0x215cfb,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1f34ea=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x492d73,'accept');return this['forceDefaultExecution'](()=>_0x1f34ea(_0x766c57,_0x42e747,_0x5be27c)),null;}_0x42bcf0['push'](..._0x766c57);let _0x4278c8=!0x0;for(const _0x36416d of _0x42bcf0)if(!this['_rangeIsInLocalUserInsertion'](_0x36416d)){_0x4278c8=!0x1;break;}if(_0x4278c8&&'always'!==this['_trackFormatChanges']){const _0x155497=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x492d73,'accept');return this['forceDefaultExecution'](()=>_0x155497(_0x766c57,_0x42e747,_0x5be27c)),null;}const _0x16088e=this['editor']['plugins']['get']('Users')['me'];for(const _0x781daa of this['getSuggestions']()){if(_0x781daa['author']['id']!=_0x16088e['id'])continue;if('formatBlock'!=_0x781daa['type']||_0x781daa['data']['formatGroupId']!=_0x42e747['formatGroupId'])continue;if(!Lt(_0x781daa,_0x5be27c))continue;const _0x533fa1=_0x781daa['subType']==_0x492d73;for(let _0x3c33c2=0x0;_0x3c33c2<_0x766c57['length'];_0x3c33c2++){const _0x68199a=_0x766c57[_0x3c33c2];for(const _0x50c676 of _0x781daa['getMarkers']()){const _0x20a1ee=_0x50c676['getRange']();if(_0x68199a['isEqual'](_0x20a1ee)){_0x533fa1?(_0x766c57['splice'](_0x3c33c2,0x1),_0x3c33c2--):_0x781daa['removeMarker'](_0x50c676['name']);break;}}}}if(0x0==_0x766c57['length'])return null;const _0xfea50a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x492d73,'join');for(const _0x3e96f1 of this['getSuggestions']())if(_0x3e96f1['author']['id']==_0x16088e['id']&&'formatBlock'==_0x3e96f1['type']&&_0x3e96f1['data']['formatGroupId']==_0x42e747['formatGroupId']&&_0x3e96f1['subType']==_0x492d73&&Lt(_0x3e96f1,_0x5be27c)&&(_0xfea50a(_0x3e96f1['getRanges'](),_0x766c57)||_0xfea50a(_0x766c57,_0x3e96f1['getRanges']()))){for(const _0x4cf2d5 of _0x766c57)_0x3e96f1['addRange'](_0x4cf2d5);return _0x3e96f1;}const _0x433d04=_0x323406(),_0x23d70e=_0x16088e['id'],_0x1c31d8='formatBlock:'+_0x492d73,_0x442eb3=this['_setSuggestionData']({'id':_0x433d04,'type':_0x1c31d8,'data':_0x42e747,'createdAt':new Date(),'authorId':_0x23d70e,'attributes':_0x5be27c});for(const _0x1105e0 of _0x766c57)this['_addSuggestionMarker'](_0x1c31d8,_0x433d04,_0x23d70e,_0x1105e0,u['getMultiRangeId']());return _0x442eb3;}['markDeletion'](_0x2b2672,_0x314786=null,_0x2c0b40={}){if(_0x2b2672['isCollapsed'])return null;const _0x5d71c9=this['editor']['plugins']['get']('Users')['me'],_0x156b08=new _0x374e30(_0x2b2672['start'],_0x2b2672['end']);for(const {suggestion:_0x189f2b,meta:_0x392d3c}of this['_findSuggestions'](_0x156b08,'insertion'))if(_0x392d3c['isOwn']&&!_0x392d3c['isNextTo']){if(_0x189f2b['isMultiRange']){const _0x163a39=_0x189f2b['getRanges']()['filter'](_0x409840=>'$graveyard'!=_0x409840['root']['rootName']);_0x163a39['every'](_0x1230f6=>_0x156b08['containsRange'](_0x1230f6,!0x0))&&_0x189f2b['discard']();if(_0x163a39['some'](_0x1f6192=>_0x1f6192['containsRange'](_0x156b08,!0x0))){const _0x1fc2f7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x314786,'accept');return this['forceDefaultExecution'](()=>_0x1fc2f7([_0x156b08],null,_0x2c0b40)),null;}}else{const _0x349ddc=_0x156b08['getIntersection'](_0x189f2b['getFirstRange']());null!==_0x349ddc&&_0x189f2b['_onDiscard']([_0x349ddc],null,_0x2c0b40);}}if(_0x156b08['detach'](),_0x156b08['isCollapsed']||'$graveyard'==_0x156b08['root']['rootName'])return null;let _0x3facf5=null,_0x5be108=_0x156b08['start'],_0x14e878=_0x156b08['end'];const _0x3f11fd=this['_findSuggestions'](_0x156b08,'deletion');for(const {suggestion:_0x22b522,meta:_0x108b50}of _0x3f11fd){const _0x26dcb4=this['_model']['createRange'](_0x5be108,_0x14e878);if(_0x108b50['isOwn']&&(this['_mergeNestedSuggestions']||!_0x108b50['containsRangeInObject']&&!_0x108b50['isInsideObject'])){if(_0x22b522['isMultiRange']){if(!Lt(_0x22b522,_0x2c0b40))continue;let _0x5c6b43=!0x0;for(const _0x1d39ee of _0x22b522['getRanges']()){if(_0x1d39ee['containsRange'](_0x26dcb4,!0x0))return _0x22b522;_0x26dcb4['containsRange'](_0x1d39ee)||(_0x5c6b43=!0x1);}_0x5c6b43&&_0x22b522['discard']();}else{const _0x24e9f7=_0x22b522['getFirstRange']();if(_0x24e9f7['containsRange'](_0x26dcb4,!0x0))return _0x22b522;if(!Lt(_0x22b522,_0x2c0b40)){_0x26dcb4['containsRange'](_0x24e9f7)?_0x22b522['removeMarkers']():_0x24e9f7['containsPosition'](_0x5be108)?_0x5be108=_0x24e9f7['end']:_0x24e9f7['containsPosition'](_0x14e878)&&(_0x14e878=_0x24e9f7['start']);continue;}_0x5be108=_0x5be108['isBefore'](_0x24e9f7['start'])?_0x5be108:_0x24e9f7['start'],_0x14e878=_0x14e878['isAfter'](_0x24e9f7['end'])?_0x14e878:_0x24e9f7['end'],_0x2c0b40=Object['assign']({},_0x22b522['attributes']),_0x3facf5?_0x24e9f7['start']['isBefore'](_0x3facf5['getFirstRange']()['start'])?(_0x3facf5['removeMarkers'](),_0x3facf5=_0x22b522):_0x22b522['removeMarkers']():_0x3facf5=_0x22b522;}}}if(_0x3facf5)return this['_setSuggestionRange'](_0x3facf5,this['_model']['createRange'](_0x5be108,_0x14e878)),_0x3facf5;{const _0x5be5cf=_0x323406(),_0xeadf36=this['_model']['createRange'](_0x5be108,_0x14e878),_0x5f36ee=_0x5d71c9['id'],_0x402fae=_0x314786?'deletion:'+_0x314786:'deletion',_0xce6c2b=this['_setSuggestionData']({'id':_0x5be5cf,'type':_0x402fae,'createdAt':new Date(),'authorId':_0x5f36ee,'attributes':_0x2c0b40});return this['_addSuggestionMarker'](_0x402fae,_0x5be5cf,_0x5f36ee,_0xeadf36),_0xce6c2b;}}['markMultiRangeDeletion'](_0x4a6037,_0x9bfd64='multi',_0x488da3={}){const _0x32ea8a=this['editor']['plugins']['get']('Users')['me'],_0x50a006=_0x4a6037['map'](_0x214d55=>new _0x374e30(_0x214d55['start'],_0x214d55['end'])),_0x2d3998=new Set();for(const {suggestion:_0x27e1bc,meta:_0x2e2144}of this['_findSuggestions'](_0x50a006,'insertion'))_0x2e2144['isOwn']&&!_0x2e2144['isNextTo']&&_0x2d3998['add'](_0x27e1bc);for(const _0x26ed57 of _0x2d3998)if(_0x26ed57['isMultiRange']){const _0x299f43=_0x26ed57['getRanges']();(!_0x26ed57['attributes']||!_0x26ed57['attributes']['skipNestingCheck'])&&(_0x299f43['every'](_0x2ec991=>_0x50a006['some'](_0x39f5d5=>_0x39f5d5['containsRange'](_0x2ec991,!0x0)))&&_0x26ed57['discard']());if(_0x50a006['every'](_0x64397=>_0x299f43['some'](_0x26b015=>_0x26b015['containsRange'](_0x64397,!0x0)))){const _0x531c54=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x9bfd64,'accept');return this['forceDefaultExecution'](()=>_0x531c54(_0x4a6037,null,_0x488da3)),null;}}else{const _0x367c1d=_0x26ed57['getFirstRange']();_0x50a006['some'](_0x3e9dc2=>_0x3e9dc2['containsRange'](_0x367c1d,!0x0))&&_0x26ed57['discard']();if(_0x50a006['every'](_0x5127c9=>_0x367c1d['containsRange'](_0x5127c9,!0x0))){const _0x12cf0d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x9bfd64,'accept');return this['forceDefaultExecution'](()=>_0x12cf0d(_0x50a006,null,_0x488da3)),null;}}const _0x39fc86=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x9bfd64,'join');let _0x36b3a5=null;for(const _0x1b51d5 of this['getSuggestions']())if(_0x1b51d5['author']['id']==_0x32ea8a['id']&&_0x1b51d5['isInContent']&&'deletion'==_0x1b51d5['type']&&_0x1b51d5['subType']==_0x9bfd64&&Lt(_0x1b51d5,_0x488da3)&&(_0x39fc86(_0x1b51d5['getRanges'](),_0x50a006)||_0x39fc86(_0x50a006,_0x1b51d5['getRanges']()))){if(_0x36b3a5){if(_0x1b51d5['commentThread']&&_0x1b51d5['commentThread']['length'])continue;for(const _0x1d00f0 of _0x1b51d5['getRanges']())_0x36b3a5['isIntersectingWithRange'](_0x1d00f0)||_0x36b3a5['addRange'](_0x1d00f0);_0x1b51d5['removeMarkers']();}else{_0x36b3a5=_0x1b51d5;for(const _0x1b165b of _0x50a006)_0x1b51d5['isIntersectingWithRange'](_0x1b165b)||_0x1b51d5['addRange'](_0x1b165b);}}if(_0x36b3a5)return _0x36b3a5;_0x2d3998['clear']();for(const {suggestion:_0xa47a73,meta:_0x52528f}of this['_findSuggestions'](_0x50a006,'deletion'))_0x52528f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x52528f['containsRangeInObject']&&!_0x52528f['isInsideObject'])&&Lt(_0xa47a73,_0x488da3)&&_0x2d3998['add'](_0xa47a73);for(const _0x38ba30 of _0x2d3998){const _0x129bc6=_0x38ba30['getRanges']();if(!_0x488da3||!_0x488da3['skipNestingCheck']){if(_0x50a006['every'](_0x57a5d6=>_0x129bc6['some'](_0x33f579=>_0x33f579['containsRange'](_0x57a5d6,!0x0))))return _0x38ba30;}(!_0x38ba30['attributes']||!_0x38ba30['attributes']['skipNestingCheck'])&&(_0x129bc6['every'](_0x3e80b3=>_0x50a006['some'](_0x4512f6=>_0x4512f6['containsRange'](_0x3e80b3,!0x0)))&&_0x38ba30['discard']());}const _0x13a6d8=_0x323406(),_0x360f6c=_0x32ea8a['id'],_0xb60c32='deletion:'+_0x9bfd64,_0x6f44d1=this['_setSuggestionData']({'id':_0x13a6d8,'type':_0xb60c32,'createdAt':new Date(),'authorId':_0x360f6c,'attributes':_0x488da3});for(const _0x2c7893 of _0x50a006)_0x2c7893['detach'](),_0x2c7893['isCollapsed']||'$graveyard'==_0x2c7893['root']['rootName']||this['_addSuggestionMarker'](_0xb60c32,_0x13a6d8,_0x360f6c,_0x2c7893,u['getMultiRangeId']());return _0x6f44d1;}['markAttributeChange'](_0x32863e,_0x5814ba,_0x3419e9,_0x8dcd55,_0x5ae320){if(_0x32863e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x256829=this['editor']['plugins']['get']('Users')['me']['id'],_0x3381ca=Array['from'](this['_suggestions']['values']())['filter'](_0x43f083=>'attribute'==_0x43f083['type']&&_0x43f083['data']['key']==_0x5814ba&&_0x43f083['isIntersectingWithRange'](_0x32863e));if('default'===this['_trackFormatChanges']){const _0x11fafe=this['_findSuggestions'](_0x32863e,'insertion')['filter'](({meta:_0x3c23a1})=>_0x3c23a1['isOwn']&&!_0x3c23a1['isInsideObject']&&!_0x3c23a1['isNextTo'])['map'](({suggestion:_0x38a91f})=>_0x38a91f);_0x3381ca['unshift'](..._0x11fafe);}const _0x2747c5=new Map([[_0x32863e,_0x3419e9]]);for(const _0x3d744c of _0x3381ca){const _0x2b52ed='attribute'==_0x3d744c['type']?_0x3d744c['data']['oldValue']:void 0x0,_0x532dac=_0x3d744c['getFirstRange'](),_0x2e03c0=Array['from'](_0x2747c5['keys']())['find'](_0x3a7511=>_0x3a7511['isIntersecting'](_0x532dac));if(!_0x2e03c0)continue;const _0xd61476=_0x2e03c0['getDifference'](_0x532dac);this['_isBlockAttribute'](_0x5814ba)&&'insertion'==_0x3d744c['type']&&0x0!=_0xd61476['length']||(_0x2747c5['delete'](_0x2e03c0),_0xd61476['forEach'](_0x11b0ea=>{_0x2747c5['set'](_0x11b0ea,_0x3419e9);}),'insertion'!=_0x3d744c['type']&&_0x2b52ed!=_0x8dcd55&&_0x2747c5['set'](_0x2e03c0['getIntersection'](_0x532dac),_0x2b52ed));}const _0x238b5b=[];for(const [_0x38bd18,_0x4f6143]of _0x2747c5){const _0x4b1b53=_0x323406(),_0x32927e={'key':_0x5814ba,'oldValue':_0x4f6143,'newValue':_0x8dcd55};_0x5814ba['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':_0x5814ba});const _0x53d634=('attribute:'+(_0x5814ba+'|'+Vt({'newValue':_0x8dcd55})))['substring'](0x0,0x3c),_0x4d0481=this['_setSuggestionData']({'id':_0x4b1b53,'type':_0x53d634,'data':_0x32927e,'createdAt':new Date(),'authorId':_0x256829,'attributes':_0x5ae320});_0x238b5b['push'](_0x4d0481),this['_addSuggestionMarker'](_0x53d634,_0x4b1b53,_0x256829,_0x38bd18);}return _0x238b5b;}['enableDefaultAttributesIntegration'](_0x1b480b){this['enableCommand'](_0x1b480b,(_0x522234,..._0x2ec496)=>{this['_recordAttributeChanges'](()=>{_0x522234(..._0x2ec496);});});}['registerBlockAttribute'](_0x4bc03c){this['_blockAttributeKeys']['add'](_0x4bc03c);}['registerInlineAttribute'](_0x1e0172){this['_inlineAttributeKeys']['add'](_0x1e0172);}['_getAttributeKey'](_0xf86c90){return'attribute'==_0xf86c90['type']?_0xf86c90['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5364bd,_0x36da0c){const _0x262c08=_0x5364bd['getFirstMarker']();this['_model']['change'](_0x27e810=>{_0x27e810['updateMarker'](_0x262c08,{'range':_0x36da0c});});}['_addThreadToSuggestion'](_0x9f2d7d){const _0x352c35=_0x9f2d7d['id'],_0x29b5d0=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x352c35)||this['_commentsRepository']['addCommentThread']({'channelId':_0x29b5d0,'threadId':_0x352c35,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x33fcb9=this['_commentsRepository']['getCommentThread'](_0x352c35);_0x33fcb9['unbind']('isRemovable'),_0x33fcb9['isRemovable']=!0x1,_0x9f2d7d['commentThread']=_0x33fcb9;}['_checkSuggestionCorrectness'](_0x468e20,_0x46ec17,_0x125469,_0x46a0ea){if(_0x468e20['type']!=_0x46ec17||_0x468e20['subType']!=_0x125469||_0x468e20['creator']['id']!=_0x46a0ea)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xfe336f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x151743,_0x178607){const _0x196477=_0x151743['getFirstRange']();if(_0x178607['isEqual'](_0x196477))_0x151743['removeMarkers']();else{if(_0x196477['containsRange'](_0x178607)){const _0x3ecb8f=this['_model']['createPositionAt'](_0x178607['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x151743,this['_model']['createRange'](_0x196477['start'],_0x3ecb8f));const _0xd8d7d6=_0x323406(),_0x1feda1=_0x151743['creator']['id'],_0x254e67=_0x151743['type']+':'+_0x151743['subType'];this['_setSuggestionData']({'id':_0xd8d7d6,'type':_0x254e67,'createdAt':new Date(),'authorId':_0x1feda1,'data':_0x151743['data'],'attributes':_0x151743['attributes']});const _0xcbc4a4=this['_model']['createPositionAt'](_0x178607['end']['parent'],'after'),_0x57f260=this['_model']['createRange'](_0xcbc4a4,_0x196477['end']);this['_addSuggestionMarker'](_0x254e67,_0xd8d7d6,_0x1feda1,_0x57f260);}else{if(_0x196477['containsPosition'](_0x178607['start'])){const _0x415acd=this['_model']['createPositionAt'](_0x178607['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x151743,this['_model']['createRange'](_0x196477['start'],_0x415acd));}else{const _0x536588=this['_model']['createPositionAt'](_0x178607['end']['parent'],'after');this['_setSuggestionRange'](_0x151743,this['_model']['createRange'](_0x536588,_0x196477['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x333f1f){for(const {suggestion:_0x56a303,meta:_0x4e898d}of this['_findSuggestions'](_0x333f1f,'insertion')){if(!_0x4e898d['isOwn'])continue;const _0x2843bc=_0x56a303['getRanges']();for(const _0x75320d of _0x2843bc)if(!_0x333f1f['getDifference'](_0x75320d)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x436f7f){const _0x3570d5=this['editor']['plugins']['get']('Users')['getUser'](_0x436f7f);if(!_0x3570d5)throw new _0xfe336f('track-changes-user-not-found',this);return _0x3570d5;}['_getExternalAuthor'](_0x9fae8){const _0x1724b=this['editor']['plugins']['get']('Users'),_0x395390=_0x3b8d4e('external:'+_0x9fae8),_0x3ebb65=_0x1724b['getUser'](_0x395390);return _0x3ebb65||_0x1724b['addUser']({'id':_0x395390,'name':_0x9fae8});}['_createSuggestion'](_0x37563e,_0x11b16f,_0x1be992,_0x46daf0,_0x924123){const _0x8720=this['_getAuthorFromId'](_0x46daf0),_0x1294de=this['_suggestionFactory']['buildSuggestion'](_0x37563e,_0x11b16f,_0x1be992,_0x8720,_0x924123,_0x741417=>{this['_updateSuggestionData'](_0x1be992,{'attributes':_0x741417});const _0x313dd0=this['getSuggestion'](_0x1be992);this['_joinWithAdjacentSuggestions'](new Set([_0x313dd0])),this['_refreshSuggestionsChain'](new Set([_0x313dd0]));});return this['listenTo'](_0x1294de,'accept',()=>{this['_updateSuggestionData'](_0x1be992,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1294de,'discard',()=>{this['_updateSuggestionData'](_0x1be992,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1be992,_0x1294de),this['_suggestionState']['set'](_0x1294de,'notReady'),_0x1294de;}['_splitMarkerName'](_0x317d63){const _0x27c43f=_0x317d63['split'](':');return{'group':_0x27c43f[0x0],'type':_0x27c43f[0x1],'subType':_0x27c43f['length']>=0x5?_0x27c43f[0x2]:null,'id':_0x27c43f['length']<0x5?_0x27c43f[0x2]:_0x27c43f[0x3],'authorId':_0x27c43f['length']<0x5?_0x27c43f[0x3]:_0x27c43f[0x4],'markerCount':0x6==_0x27c43f['length']?_0x27c43f[0x5]:null};}['_breakSuggestionMarker'](_0x120ce3,_0x32f532,_0x5e8dc3){const _0x53af0f=_0x120ce3['getFirstRange'](),_0x1e479d=_0x53af0f['start'],_0x30de25=_0x53af0f['end'];this['_setSuggestionRange'](_0x120ce3,this['_model']['createRange'](_0x1e479d,_0x32f532));const _0x1b85f7=_0x323406(),_0x2ea49a=_0x120ce3['creator']['id'],_0x145035=_0x120ce3['type']+(_0x120ce3['subType']?':'+_0x120ce3['subType']:'');this['_setSuggestionData']({'id':_0x1b85f7,'type':_0x145035,'createdAt':new Date(),'authorId':_0x2ea49a,'originalSuggestionId':_0x120ce3['id'],'attributes':_0x120ce3['attributes'],'data':_0x120ce3['data']});const _0x238c99=this['_getAttributeKey'](_0x120ce3);('formatBlock'==_0x120ce3['type']||_0x238c99&&this['_isBlockAttribute'](_0x238c99))&&(_0x5e8dc3=this['_model']['createPositionBefore'](_0x5e8dc3['parent'])),this['_addSuggestionMarker'](_0x145035,_0x1b85f7,_0x2ea49a,this['_model']['createRange'](_0x5e8dc3,_0x30de25));}['_findSuggestions'](_0x1816ef,_0x981581=null){const _0x467fca=[],_0x1f4d93=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1816ef)||(_0x1816ef=[_0x1816ef]);for(const _0x14705a of this['getSuggestions']()){if(!_0x14705a['isInContent'])continue;if(_0x981581&&_0x14705a['type']!=_0x981581)continue;let _0x574cfa=!0x1;for(const _0x51de66 of _0x14705a['getRanges']()){for(const _0x477c33 of _0x1816ef){const _0x321173=_0x477c33['start']['isEqual'](_0x51de66['end'])||_0x477c33['end']['isEqual'](_0x51de66['start']);if(_0x321173||_0x477c33['getIntersection'](_0x51de66)){const _0x5ac346=_0x477c33['containsRange'](_0x51de66)&&Rt(this['_model']['schema'],_0x51de66['start'],_0x477c33),_0x28f9e7=_0x51de66['containsRange'](_0x477c33)&&Rt(this['_model']['schema'],_0x477c33['start'],_0x51de66);_0x467fca['push']({'suggestion':_0x14705a,'meta':{'isOwn':_0x1f4d93==_0x14705a['author'],'isNextTo':_0x321173,'isInsideObject':_0x5ac346,'containsRangeInObject':_0x28f9e7}}),_0x574cfa=!0x0;break;}}if(_0x574cfa)break;}}return _0x467fca;}['_addSuggestionMarker'](_0x514a8e,_0x11af5a,_0x364f8d,_0x5031a2,_0x523a95){this['_model']['change'](_0x778b49=>{let _0x49dbe1='suggestion:'+_0x514a8e+':'+_0x11af5a+':'+_0x364f8d;_0x523a95&&(_0x49dbe1=_0x49dbe1+':'+_0x523a95),_0x778b49['addMarker'](_0x49dbe1,{'range':_0x5031a2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5bddea){const _0x59012b=_0x5bddea['previous'],_0x59bea3=_0x5bddea['next'];_0x5bddea['previous']=null,_0x5bddea['next']=null,null!=_0x59012b&&_0x59012b['next']==_0x5bddea&&(_0x59012b['next']=_0x59bea3),null!=_0x59bea3&&_0x59bea3['previous']==_0x5bddea&&(_0x59bea3['previous']=_0x59012b),'ready'==this['_suggestionState']['get'](_0x5bddea)&&(this['_suggestionState']['set'](_0x5bddea,'removed'),this['fire']('suggestionUnloaded',_0x5bddea,_0x59012b,_0x59bea3));}['_setSuggestionData'](_0x3e473b){const _0x2238de=_0x3e473b['id'],_0x51b336=this['addSuggestionData'](_0x3e473b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1f4a67=this['editor']['plugins']['get']('PendingActions'),_0x385e78=_0x51b336['hasComments'],_0x32389e=_0x51b336['subType']?_0x51b336['type']+':'+_0x51b336['subType']:_0x51b336['type'],_0x3c3312=this['editor']['locale'],_0x202182=_0x1f4a67['add'](o(_0x3c3312,'PENDING_ACTION_SUGGESTION')),_0x127b8a={'id':_0x2238de,'type':_0x32389e,'hasComments':_0x385e78,'data':_0x3e473b['data']||null,'originalSuggestionId':_0x3e473b['originalSuggestionId']||null,'attributes':_0x51b336['attributes']};this['_adapter']['addSuggestion'](_0x127b8a)['then'](_0x55c217=>{_0x51b336['_saved']=!0x0,_0x1f4a67['remove'](_0x202182),_0x55c217&&_0x55c217['createdAt']&&(this['_suggestions']['get'](_0x2238de)['createdAt']=_0x55c217['createdAt']);})['catch'](_0x41cee1=>{throw _0x6bd0bb('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x51b336['discard']();}),_0x51b336['stopListening'](),this['_suggestions']['delete'](_0x51b336['id']),this['_suggestionState']['delete'](_0x51b336),_0x41cee1;});}return _0x51b336;}['_isBlockAttribute'](_0x46f96e){return this['_blockAttributeKeys']['has'](_0x46f96e);}['_updateSuggestionData'](_0x3c9b29,_0x1a8559){const _0x173df6=this['editor']['plugins']['get']('PendingActions'),_0x5ddd25=this['getSuggestion'](_0x3c9b29);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5ddd25['_saved']){const _0x51dcba=_0x173df6['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3c9b29,_0x1a8559)['then'](()=>{_0x173df6['remove'](_0x51dcba);});}else _0x5ddd25['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3c9b29,_0x1a8559);});}}['_getSuggestionData'](_0x31ade5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xfe336f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x31ade5);}['_handleNewSuggestionMarker'](_0xa41ded){const {id:_0xb89358,type:_0x52fb15,subType:_0xbd1b63,authorId:_0x1596c5}=this['_splitMarkerName'](_0xa41ded),_0x4bba98=this['_suggestions']['get'](_0xb89358)||this['_createSuggestion'](_0x52fb15,_0xbd1b63,_0xb89358,_0x1596c5,{});switch(this['_checkSuggestionCorrectness'](_0x4bba98,_0x52fb15,_0xbd1b63,_0x1596c5),this['_suggestionState']['get'](_0x4bba98)){case'notReady':this['_getSuggestionData'](_0xb89358)['then'](_0x3daef0=>{let _0x1ef815=Promise['resolve']();_0x3daef0['hasComments']&&(_0x1ef815=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xb89358})),_0x1ef815['then'](()=>{this['addSuggestionData'](_0x3daef0)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4bba98,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xb89358,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4bba98,'ready'),this['fire']('suggestionLoaded',_0x4bba98);break;case'ready':this['fire']('suggestionChanged',_0x4bba98);}return _0x4bba98['addMarkerName'](_0xa41ded),_0x4bba98;}['_refreshSuggestionsChain'](_0x38ffa6){const _0x9d1b88=Array['from'](_0x38ffa6),_0x2dd8f4=_0x9d1b88['filter'](_0x5c5b79=>'attribute'==_0x5c5b79['type']);this['_refreshAttributeSuggestionsChain'](_0x2dd8f4);const _0x3f4b03=_0x9d1b88['filter'](_0x1e8949=>!_0x1e8949['isMultiRange']&&'attribute'!=_0x1e8949['type']),_0x252e13=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d787d=>!_0x5d787d['isMultiRange']&&'attribute'!=_0x5d787d['type']),_0x279ba6=_0x252e13['filter'](_0x14055c=>!_0x38ffa6['has'](_0x14055c)),_0x4d2896=new Map(_0x252e13['map'](_0x524290=>[_0x524290,this['_suggestionFactory']['getSuggestionCallback'](_0x524290['type'],_0x524290['subType'],'chain')])),_0x11417f=new Map(_0x252e13['map'](_0x3aa5ac=>[_0x3aa5ac,_0x3aa5ac['getFirstRange']()])),_0x565dc7=new Set(),_0x342acb=new Set();for(let _0x3d6e37=0x0;_0x3d6e37<_0x3f4b03['length'];_0x3d6e37++)_0x3b4adb(_0x3f4b03[_0x3d6e37],_0x3f4b03,_0x3d6e37+0x1);for(let _0xb056a9=0x0;_0xb056a9<_0x3f4b03['length'];_0xb056a9++)_0x3b4adb(_0x3f4b03[_0xb056a9],_0x279ba6,0x0);const _0x295629=new Set();for(let _0xdb5868=0x0;_0xdb5868<_0x3f4b03['length'];_0xdb5868++){const _0x4c0a3e=_0x3f4b03[_0xdb5868];!_0x342acb['has'](_0x4c0a3e)&&_0x4c0a3e['previous']&&(_0x295629['add'](_0x4c0a3e['previous']),_0x4c0a3e['previous']['next']===_0x4c0a3e&&(_0x4c0a3e['previous']['next']=null),_0x4c0a3e['previous']=null),!_0x565dc7['has'](_0x4c0a3e)&&_0x4c0a3e['next']&&(_0x295629['add'](_0x4c0a3e['next']),_0x4c0a3e['next']['previous']===_0x4c0a3e&&(_0x4c0a3e['next']['previous']=null),_0x4c0a3e['next']=null);}function _0x3b4adb(_0x36e26b,_0x1882e9,_0x1067ef){for(let _0x67308b=_0x1067ef;_0x67308b<_0x1882e9['length'];_0x67308b++){const _0x1ae0fc=_0x45a56b(_0x36e26b,_0x1882e9[_0x67308b]);_0x1ae0fc&&(_0x1ae0fc[0x0]['next']=_0x1ae0fc[0x1],_0x1ae0fc[0x1]['previous']=_0x1ae0fc[0x0],_0x565dc7['add'](_0x1ae0fc[0x0]),_0x342acb['add'](_0x1ae0fc[0x1]));}}function _0x45a56b(_0x1d905b,_0xdcad15){if(_0x1d905b['author']['id']!==_0xdcad15['author']['id'])return null;const _0x58fd01=_0x4d2896['get'](_0x1d905b)(_0x1d905b,_0xdcad15,_0x11417f['get'](_0x1d905b),_0x11417f['get'](_0xdcad15));if(!_0x58fd01)return null;return _0x4d2896['get'](_0xdcad15)(_0x1d905b,_0xdcad15,_0x11417f['get'](_0x1d905b),_0x11417f['get'](_0xdcad15))?_0x58fd01[0x1]['commentThread']&&_0x58fd01[0x1]['commentThread']['length']?null:_0x58fd01:null;}_0x295629['size']&&this['_refreshSuggestionsChain'](_0x295629);}['_refreshAttributeSuggestionsChain'](_0x1f4678){if(0x0==_0x1f4678['length'])return;const _0x30846a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e076f=>'attribute'==_0x1e076f['type']&&_0x1e076f['_isDataLoaded']),_0x5d6f19=[],_0x760b93=new Map();for(const _0x4fcee1 of _0x30846a){const _0x229be5=_0x3b8d4e(_0x4fcee1['attributes']);_0x760b93['has'](_0x229be5)||(_0x760b93['set'](_0x229be5,_0x5d6f19['length']),_0x5d6f19['push']([]));const _0xe38c89=_0x760b93['get'](_0x229be5);_0x5d6f19[_0xe38c89]['push'](_0x4fcee1);}!(function(){_0x5d6f19['sort']((_0x2a6c5d,_0x2215e6)=>{const _0x2e6b0f=_0x2a6c5d[0x0]['createdAt'],_0x34cfc=_0x2215e6[0x0]['createdAt'];return _0x2e6b0f==_0x34cfc?_0x2a6c5d[0x0]['attributes']['groupId']<_0x2215e6[0x0]['attributes']['groupId']?-0x1:0x1:_0x2e6b0f<_0x34cfc?-0x1:0x1;});for(const _0x48ec65 of _0x5d6f19)_0x48ec65['sort']((_0x48e0c0,_0x4ab593)=>_0x48e0c0['id']<_0x4ab593['id']?-0x1:0x1);}());for(let _0x2148aa=0x0;_0x2148aa<_0x5d6f19['length'];_0x2148aa++){if(0x0==_0x5d6f19[_0x2148aa]['length'])continue;const _0x4794d7=[];for(let _0x518658=_0x2148aa+0x1;_0x518658<_0x5d6f19['length'];_0x518658++)0x0!=_0x5d6f19[_0x518658]['length']&&_0xd371d5(_0x5d6f19[_0x2148aa],_0x5d6f19[_0x518658])&&_0x4794d7['push'](_0x518658);for(const _0x5ca30d of _0x4794d7)_0x5d6f19[_0x2148aa]=_0x5d6f19[_0x2148aa]['concat'](_0x5d6f19[_0x5ca30d]),_0x5d6f19[_0x5ca30d]=[];}for(const _0x485326 of _0x5d6f19)for(let _0x292741=0x0;_0x292741<_0x485326['length'];_0x292741++)_0x485326[_0x292741]['next']=_0x485326[_0x292741+0x1]||null;for(const _0x429a6e of _0x5d6f19)for(let _0xa4578c=0x0;_0xa4578c<_0x429a6e['length'];_0xa4578c++)_0x429a6e[_0xa4578c]['previous']=_0x429a6e[_0xa4578c-0x1]||null;function _0xd371d5(_0xaf86d0,_0x56cc25){if(_0xaf86d0[0x0]['attributes']['groupId']!==_0x56cc25[0x0]['attributes']['groupId']&&_0xaf86d0[0x0]['author']!==_0x56cc25[0x0]['author'])return!0x1;if(!function(_0x4196eb,_0x55e5da){if(!_0x4196eb['hasComments']&&!_0x55e5da['hasComments'])return!0x0;if(_0x4196eb['hasComments']&&_0x55e5da['hasComments'])return!0x1;if(_0x4196eb['hasComments']&&_0x55e5da['createdAt']<_0x4196eb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x55e5da['hasComments']&&_0x4196eb['createdAt']<_0x55e5da['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xaf86d0[0x0],_0x56cc25[0x0]))return!0x1;const _0x29bcea=Bt(_0xaf86d0[0x0]['attributes'],'groupId'),_0x31814a=Bt(_0x56cc25[0x0]['attributes'],'groupId');if(!_0x435370(_0x29bcea,_0x31814a))return!0x1;return!!_0xaf86d0['every'](_0x3541a1=>_0x56cc25['some'](_0x2d811d=>_0x3541a1['getFirstRange']()['isEqual'](_0x2d811d['getFirstRange']())))&&_0x56cc25['every'](_0x46a1e0=>_0xaf86d0['some'](_0x2b3b24=>_0x46a1e0['getFirstRange']()['isEqual'](_0x2b3b24['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x437946){const _0x2ae93c=Array['from'](_0x437946),_0x372312=this['getSuggestions']({'skipNotAttached':!0x0}),_0x330e1f=_0x372312['filter'](_0x5c547a=>!_0x437946['has'](_0x5c547a)),_0x2dfea1=new Map(_0x2ae93c['map'](_0x13da51=>[_0x13da51,this['_suggestionFactory']['getSuggestionCallback'](_0x13da51['type'],_0x13da51['subType'],'join')])),_0x358b20=new Map(_0x372312['map'](_0x3138b6=>[_0x3138b6,_0x3138b6['getRanges']()]));for(let _0x4c5792=0x0;_0x4c5792<_0x2ae93c['length'];_0x4c5792++){if(_0x4a0e6a(this,_0x2ae93c[_0x4c5792],_0x2ae93c,_0x4c5792+0x1))return!0x0;}for(let _0x378218=0x0;_0x378218<_0x2ae93c['length'];_0x378218++){if(_0x4a0e6a(this,_0x2ae93c[_0x378218],_0x330e1f,0x0))return!0x0;}return!0x1;function _0x4a0e6a(_0x1b763f,_0x5b453b,_0x1dcb3a,_0x4201e6){for(let _0x3ccf76=_0x4201e6;_0x3ccf76<_0x1dcb3a['length'];_0x3ccf76++){const _0x37c98b=_0x1dcb3a[_0x3ccf76];if(_0x37c98b['type']!==_0x5b453b['type']||_0x37c98b['author']['id']!==_0x5b453b['author']['id']||_0x37c98b['subType']!==_0x5b453b['subType'])continue;if(!Pt(_0x5b453b,_0x37c98b,['groupId']))continue;if('attribute'==_0x5b453b['type']&&_0x5b453b['data']['oldValue']!=_0x37c98b['data']['oldValue'])continue;if('attribute'==_0x5b453b['type']&&_0x1b763f['_isBlockAttribute'](_0x5b453b['data']['key']))continue;if('formatBlock'==_0x5b453b['type']){const _0x2ece6d=_0x1b763f['editor']['model'],_0x500dd1=_0x5b453b['getContainedElement']();if(_0x500dd1&&(_0x2ece6d['schema']['isObject'](_0x500dd1)||_0x2ece6d['schema']['isLimit'](_0x500dd1)))continue;}const _0x18c582=_0x2dfea1['get'](_0x5b453b),_0x300b35=_0x358b20['get'](_0x5b453b),_0x16c215=_0x358b20['get'](_0x37c98b),_0x3d4fbd=_0x5b453b['commentThread']&&_0x5b453b['commentThread']['length'],_0x322c4d=_0x37c98b['commentThread']&&_0x37c98b['commentThread']['length'];if(!_0x3d4fbd&&_0x18c582(_0x16c215,_0x300b35))return _0x1b763f['_joinSuggestions'](_0x37c98b,_0x5b453b),_0x358b20['delete'](_0x5b453b),!0x0;if(!_0x322c4d&&_0x18c582(_0x300b35,_0x16c215))return _0x1b763f['_joinSuggestions'](_0x5b453b,_0x37c98b),_0x358b20['delete'](_0x37c98b),!0x0;}return!0x1;}}['_joinSuggestions'](_0x120160,_0x4412a1){if(_0x120160['isMultiRange']){for(const _0x341f3a of _0x4412a1['getRanges']())_0x120160['addRange'](_0x341f3a);}else{const _0x1ffe16=_0x4412a1['getFirstRange']()['end'];this['_setSuggestionRange'](_0x120160,this['_model']['createRange'](_0x120160['getFirstRange']()['start'],_0x1ffe16));}_0x4412a1['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2b142b,_0x57edf2){const _0xbcd2a7=_0x2b142b['startsWith']('format')||_0x2b142b['startsWith']('attribute')?'FORMATTING':_0x2b142b['toUpperCase']();return o(this['editor']['locale'],_0x57edf2+'_'+_0xbcd2a7+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x19644e=this['editor'];if(!_0x19644e['ui'])return;const {ariaLiveAnnouncer:_0x57725d}=_0x19644e['ui'];_0x335319(this['_model'],({left:_0x415bcc,entered:_0x87104b})=>{for(const _0x5b9184 of _0x415bcc){const {group:_0x1f8b56,type:_0x5dc806}=this['_splitMarkerName'](_0x5b9184['name']);if('suggestion'===_0x1f8b56){_0x57725d['announce'](this['_getMarkerAnnouncementText'](_0x5dc806,'LEAVE'));break;}}for(const _0x417dd7 of _0x87104b){const {group:_0x1cbc84,type:_0x5753c9}=this['_splitMarkerName'](_0x417dd7['name']);if('suggestion'===_0x1cbc84){_0x57725d['announce'](this['_getMarkerAnnouncementText'](_0x5753c9,'ENTER'));break;}}});}['_processAttributeChanges'](_0xb534f1){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2388f2=this['editor'],_0x53eda7=_0x2388f2['model']['document']['differ']['getChanges']();if(0x0==_0x53eda7['length'])return!0x1;const _0x3371c0=[],_0x7008fa=_0x53eda7['filter'](_0xdfd10b=>'attribute'==_0xdfd10b['type']),_0x5927ba=_0x53eda7['filter'](_0x1fec84=>'insert'==_0x1fec84['type']&&'$text'!=_0x1fec84['name']),_0x18e290=_0x53eda7['filter'](_0xadc2d9=>'remove'==_0xadc2d9['type']&&'$text'!=_0xadc2d9['name']);for(const _0x40b636 of _0x7008fa)_0x3371c0['push']({'key':_0x40b636['attributeKey'],'newValue':_0x40b636['attributeNewValue'],'oldValue':_0x40b636['attributeOldValue'],'range':Ot(_0x40b636['range'],_0x2388f2['model'])});for(const _0x2a47b8 of _0x5927ba){const _0x8a0b46=_0x18e290['find'](_0x55b756=>_0x55b756['position']['isEqual'](_0x2a47b8['position']));_0x8a0b46&&_0x3371c0['push']({'key':m,'newValue':_0x2a47b8['name'],'oldValue':_0x8a0b46['name'],'range':_0x2388f2['model']['createRangeOn'](_0x2a47b8['position']['nodeAfter'])});}return 0x0!=_0x3371c0['length']&&this['_reduceExistingSuggestions'](_0xb534f1,_0x3371c0);}['_processAttributeSuggestions'](_0x115bdf){let _0x27c15b=!0x1;const _0x2b8c6c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x51fe66=>_0x51fe66['data']['newRange']&&_0x51fe66['name']['startsWith']('suggestion:attribute:'));for(const _0x57ff93 of _0x2b8c6c){const {subType:_0x406bba,id:_0x42e972}=this['_splitMarkerName'](_0x57ff93['name']),_0x3ab1e8=_0x406bba['split']('|')[0x0];for(const _0xe77c34 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xe77c34['id']!=_0x42e972&&'attribute'==_0xe77c34['type']&&_0xe77c34['data']&&_0xe77c34['data']['key']==_0x3ab1e8&&_0xe77c34['getFirstRange']()['isIntersecting'](_0x57ff93['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xe77c34,_0x57ff93['data']['newRange'],_0x115bdf),_0x27c15b=!0x0);}return _0x27c15b;}['_recordAttributeChanges'](_0x4df185){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x4df185();}['_isRegisteredAttribute'](_0x25d9a3){const _0x53367c=this['_isBlockAttribute'](_0x25d9a3),_0x208f25=this['_inlineAttributeKeys']['has'](_0x25d9a3);return _0x53367c||_0x208f25;}['_reduceExistingSuggestions'](_0x27da6b,_0x2904eb){if(0x0==_0x2904eb['length'])return!0x1;let _0x117dca=!0x1;for(const _0x7f752d of _0x2904eb){const _0x1c16a2=this['_findSuggestions'](_0x7f752d['range'],'attribute')['filter'](_0x3976d5=>!_0x3976d5['meta']['isNextTo'])['map'](_0x3bdb65=>_0x3bdb65['suggestion']),_0xff88d8=_0x3b8d4e({'newValue':_0x7f752d['newValue']});_0x1c16a2['filter'](_0x230b35=>{const [_0x2d6ff4,_0x16b42c]=_0x230b35['subType']['split']('|');return _0x2d6ff4==_0x7f752d['key']&&_0x16b42c!=_0xff88d8;})['forEach'](_0x184ad3=>{this['_reduceSuggestionAttributeRange'](_0x184ad3,_0x7f752d['range'],_0x27da6b),_0x117dca=!0x0;});}return _0x117dca;}['_reduceSuggestionAttributeRange'](_0x3d76c2,_0xf6a1cc,_0x54f3e8){const _0x28602b=_0x3d76c2['getFirstRange']()['getDifference'](_0xf6a1cc);0x0!==_0x28602b['length']?0x1!==_0x28602b['length']?this['_breakSuggestionMarker'](_0x3d76c2,_0xf6a1cc['start'],_0xf6a1cc['end']):this['_setSuggestionRange'](_0x3d76c2,_0x28602b[0x0]):_0x54f3e8['removeMarker'](_0x3d76c2['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xa244ed){this['_editor']=_0xa244ed,this['_model']=_0xa244ed['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x428d79,_0x2c0628,_0x48b7c5,_0x32df68,_0x479e2d,_0x380a9d){return new u(this['_model'],{'type':_0x428d79,'subType':_0x2c0628,'id':_0x48b7c5,'author':_0x32df68,'creator':_0x32df68,'attributes':_0x479e2d,'onAttributesChange':_0x380a9d,'onAccept':(..._0x33164d)=>this['getSuggestionCallback'](_0x428d79,_0x2c0628,'accept')(..._0x33164d),'onDiscard':(..._0x34505a)=>this['getSuggestionCallback'](_0x428d79,_0x2c0628,'discard')(..._0x34505a)});}['registerCustomCallback'](_0x146fba,_0x242e38,_0x3bb4c2,_0x54ed5d){const _0x1914d1=_0x146fba+':'+_0x242e38+':'+_0x3bb4c2;this['_customCallbacks']['set'](_0x1914d1,_0x54ed5d);}['getSuggestionCallback'](_0x5408a4,_0x516afe,_0x5d6788){const _0x70860d=_0x5408a4+':'+_0x516afe+':'+_0x5d6788;return this['_customCallbacks']['get'](_0x70860d)||this['_defaultCallbacks']['get'](_0x5408a4+':'+_0x5d6788);}['_registerDefaultCallbacks'](){const _0x410e60=()=>!0x1,_0x104f96=_0x33a2ed=>{_0x33a2ed['sort']((_0x572d1a,_0xb516c4)=>_0x572d1a['start']['isBefore'](_0xb516c4['start'])?0x1:-0x1),this['_model']['change'](_0x4c5609=>{for(const _0x395e70 of _0x33a2ed){let _0x577891;_0x577891=_0x395e70['end']['isAtEnd']&&_0x395e70['end']['parent']==_0x395e70['start']['nodeAfter']?_0x4c5609['createSelection'](_0x395e70['start']['nodeAfter'],'on'):_0x4c5609['createSelection'](_0x395e70),this['_model']['deleteContent'](_0x577891,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x11c741=(_0x46cb56,_0x2456bf)=>{_0x2456bf&&this['_model']['change'](_0x1eaf7a=>{const {commandName:_0x1a2fa2,commandParams:_0x45f4f1=[]}=_0x2456bf,_0x4d47af=_0x46cb56['map'](_0x36467a=>(Tt(_0x36467a)&&(_0x36467a=this['_model']['createRange'](_0x36467a['end'])),_0x36467a))['filter'](_0x540c0f=>'$graveyard'!==_0x540c0f['root']['rootName']);if(_0x4d47af['length']<0x1)return;const _0x5f4aff=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2ae0a3=>_0x374e30['fromRange'](_0x2ae0a3));_0x1eaf7a['setSelection'](_0x4d47af);for(const _0x33578d of this['_editor']['commands']['commands']())_0x33578d['refresh']();_0x45f4f1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1a2fa2,..._0x45f4f1);const _0x54026=_0x5f4aff['filter'](_0x4ce52c=>'$graveyard'!=_0x4ce52c['root']['rootName']);_0x54026['length']>0x0&&_0x1eaf7a['setSelection'](_0x54026);for(const _0x5f32e2 of _0x5f4aff)_0x5f32e2['detach']();});},_0x2a83b3=(_0x5ca657,_0x4f5a7c)=>0x1==_0x5ca657['length']&&0x1==_0x4f5a7c['length']&&_0x5ca657[0x0]['end']['isEqual'](_0x4f5a7c[0x0]['start']),_0x5bafee=(_0x5406fd,_0x8d584d,_0x17c3d8,_0x2b35f2)=>Ft(_0x5406fd,_0x8d584d,_0x17c3d8,_0x2b35f2,this['_model'])?[_0x5406fd,_0x8d584d]:Ft(_0x8d584d,_0x5406fd,_0x2b35f2,_0x17c3d8,this['_model'])?[_0x8d584d,_0x5406fd]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x410e60),this['_defaultCallbacks']['set']('insertion:discard',_0x104f96),this['_defaultCallbacks']['set']('insertion:join',_0x2a83b3),this['_defaultCallbacks']['set']('insertion:chain',_0x5bafee),this['_defaultCallbacks']['set']('deletion:accept',_0x104f96),this['_defaultCallbacks']['set']('deletion:discard',_0x410e60),this['_defaultCallbacks']['set']('deletion:join',_0x2a83b3),this['_defaultCallbacks']['set']('deletion:chain',_0x5bafee),this['_defaultCallbacks']['set']('formatInline:accept',_0x11c741),this['_defaultCallbacks']['set']('formatInline:discard',_0x410e60),this['_defaultCallbacks']['set']('formatInline:join',_0x2a83b3),this['_defaultCallbacks']['set']('formatInline:chain',_0x410e60),this['_defaultCallbacks']['set']('formatBlock:accept',_0x11c741),this['_defaultCallbacks']['set']('formatBlock:discard',_0x410e60),this['_defaultCallbacks']['set']('formatBlock:join',_0x2a83b3),this['_defaultCallbacks']['set']('formatBlock:chain',_0x410e60),this['_defaultCallbacks']['set']('attribute:accept',_0x410e60),this['_defaultCallbacks']['set']('attribute:discard',(_0x59a830,_0x576851)=>{if(!_0x576851)return;const _0x4a804b=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x598eb5=>{if(_0x576851['key']==m)for(const _0x8ca82f of _0x59a830){const _0x3457f9=_0x8ca82f['start']['nodeAfter'],_0x20882d=_0x576851['oldValue'];_0x598eb5['rename'](_0x3457f9,_0x20882d);}else{if(_0x4a804b['_isBlockAttribute'](_0x576851['key'])){for(const _0x25d6ea of _0x59a830)void 0x0!==_0x576851['oldValue']?_0x598eb5['setAttribute'](_0x576851['key'],_0x576851['oldValue'],_0x25d6ea['start']['nodeAfter']):_0x598eb5['removeAttribute'](_0x576851['key'],_0x25d6ea['start']['nodeAfter']);}else{for(const _0x177637 of _0x59a830)_0x576851['oldValue']?_0x598eb5['setAttribute'](_0x576851['key'],_0x576851['oldValue'],_0x177637):_0x598eb5['removeAttribute'](_0x576851['key'],_0x177637);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2a83b3);}}function Rt(_0xcb5b09,_0x17fd3a,_0x44d1ef){for(const _0x229a95 of _0x17fd3a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x229a95['root']==_0x229a95)return!0x1;if(!_0x44d1ef['containsItem'](_0x229a95))return!0x1;if(_0xcb5b09['isObject'](_0x229a95)||_0xcb5b09['isLimit'](_0x229a95))return!0x0;}return!0x1;}function Tt(_0x2bfd9b){return _0x2bfd9b['end']['parent']==_0x2bfd9b['start']['nodeAfter']&&_0x2bfd9b['end']['isAtStart'];}function Et(_0x3b5aa6,_0x33ca16,_0x31e64c,_0x125489){const _0x1f02d6=_0x4b6d57=>!_0x4b6d57['item']['is']('$textProxy')&&!_0x125489['isObject'](_0x4b6d57['item']),_0x22117e=_0x3b5aa6['start']['getLastMatchingPosition'](_0x1f02d6),_0x520d73=_0x3b5aa6['end']['getLastMatchingPosition'](_0x1f02d6,{'direction':'backward'});return(!_0x3b5aa6['start']['isEqual'](_0x22117e)||!_0x3b5aa6['end']['isEqual'](_0x520d73))&&(_0x22117e['isBefore'](_0x520d73)?_0x31e64c['updateMarker'](_0x33ca16,{'range':_0x31e64c['createRange'](_0x22117e,_0x520d73)}):_0x31e64c['removeMarker'](_0x33ca16),!0x0);}function Vt(_0xacc0ff){return _0x3b8d4e(_0xacc0ff);}function Ut(_0x377844){const _0x50d838=_0x377844['start']['nodeAfter'];return _0x50d838&&_0x50d838['is']('element');}function Ot(_0x9d07c0,_0x990e36){return null==_0x9d07c0['end']['nodeBefore']&&_0x9d07c0['end']['parent']==_0x9d07c0['start']['nodeAfter']?Gt(_0x9d07c0['start']['nodeAfter'],_0x990e36):_0x9d07c0;}function Gt(_0x404030,_0x28ff5c){const _0x33f318=_0x28ff5c['schema']['isObject'](_0x404030)||_0x28ff5c['schema']['isSelectable'](_0x404030);return _0x28ff5c['createRange'](_0x28ff5c['createPositionAt'](_0x404030,'before'),_0x33f318?_0x28ff5c['createPositionAfter'](_0x404030):_0x28ff5c['createPositionAt'](_0x404030,'end'));}function Ft(_0x39ea62,_0x4c5752,_0x5d80d1,_0x48887e,_0x2b55fc){if(!Pt(_0x39ea62,_0x4c5752))return!0x1;if(_0x5d80d1['end']['isEqual'](_0x48887e['start']))return!0x0;if(_0x39ea62['type']!=_0x4c5752['type'])return!0x1;if(!_0x5d80d1['end']['isTouching'](_0x48887e['start']))return!0x1;const _0x551eff=_0x2b55fc['createRange'](_0x5d80d1['end'],_0x48887e['start'])['getWalker']();for(const _0x2095f3 of _0x551eff)if(['elementStart','elementEnd']['includes'](_0x2095f3['type'])&&_0x2b55fc['schema']['isLimit'](_0x2095f3['item']))return!0x1;return!0x0;}function Pt(_0x22578b,_0x5554ef,_0x3e0531=[]){return!(!_0x22578b['_isDataLoaded']||!_0x5554ef['_isDataLoaded'])&&_0x435370(Bt(_0x22578b['attributes'],_0x3e0531),Bt(_0x5554ef['attributes'],_0x3e0531));}function Lt(_0xb3a81e,_0x2f5159){const _0x4de0cd=Ht(_0xb3a81e['attributes']),_0x3313bb=Ht(_0x2f5159);if(!_0xb3a81e['_isDataLoaded'])return!0x1;for(const _0x18e902 of Object['keys'](_0x3313bb))if(!_0x435370(_0x4de0cd[_0x18e902],_0x3313bb[_0x18e902]))return!0x1;return!0x0;}function Ht(_0x5a52d1){const _0x146013=Object['assign']({},_0x5a52d1);return delete _0x146013['skipNestingCheck'],delete _0x146013['tablePasteChainId'],_0x146013;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4de1ed(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x610941,_0x391132,_0x4388fe,_0x357c01){super(),this['model']=_0x391132,this['view']=_0x4388fe,this['commentThreadController']=_0x357c01,this['_editor']=_0x610941,this['_acceptCommand']=_0x610941['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x610941['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x550a0a,_0xfdff28)=>_0x550a0a||_0xfdff28),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1aa0e6=>_0x1aa0e6&&this['_editor']['model']['canEditAt'](_0x391132['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x273a9a=>_0x273a9a&&this['_editor']['model']['canEditAt'](_0x391132['getRanges']())),this['_pendingAction']=null,_0x4388fe['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4388fe,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4388fe,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4388fe,'change:isDirty',()=>{_0x4388fe['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 _0x49d769=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x49d769);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x51e1d3{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x44ddad,_0xb563dc,_0x2b8a25,_0x5d93b7){super(_0x44ddad),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0xb563dc['authoredAt']),this['bind']('authoredAt')['to'](_0xb563dc),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0xb563dc,this['_localUser']=_0x2b8a25,this['_config']=_0x5d93b7,_0x5d93b7['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:_0x162ca0}=this['_config'];this['commentsListView']=new _0x162ca0(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',_0x526f55=>_0x526f55+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x153e1d,_0x5c67fa)=>_0x153e1d||!!_0x5c67fa);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x9e02a4}=this['_config'],_0x104e52=new _0x9e02a4(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1bea8e=_0x104e52['commentInputView'];return _0x104e52['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1bea8e,'value',(_0x1afdf2,_0xbcdfce,_0x42086e)=>!!_0x42086e||_0x1afdf2&&!_0xbcdfce),_0x1bea8e['on']('submit',(_0x21928b,_0x3f0471)=>{this['fire']('addComment',_0x3f0471),_0x1bea8e['editor']['setData']('');}),_0x1bea8e['on']('cancel',()=>this['focus']()),_0x1bea8e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x104e52;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x2381e6,_0x572c51,_0x3bd717,_0x105ef2){super(_0x2381e6,_0x572c51,_0x3bd717,_0x105ef2),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x23f606=>_0x23f606&&_0x23f606[0x0]?_0x23f606[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xd9b283,_0x5e065c)=>{let _0x5579a0='';for(const _0x4c58a7 of _0xd9b283)_0x5579a0+='<p>'+ds(_0x4c58a7['content'],_0x4c58a7['color'])+'</p>';return _0x5e065c?_0x5579a0:_0x2f92e0(_0x5579a0,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x2381e6,'Accept\x20suggestion'),_0x1d38ad['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x2381e6,'Discard\x20suggestion'),_0x1d38ad['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0xb7a793(_0x2381e6,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x51f387=this['bindTemplate'],_0x1715d2=[{'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':_0x51f387['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x51f387['to']('authoredAt',_0x7f96b1=>this['_config']['formatDateTime'](_0x7f96b1))}]}]},{'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']&&_0x1715d2['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x4918bd={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x51f387['if']('isActive','ck-suggestion-wrapper--active'),_0x51f387['to']('type',_0x241782=>'ck-suggestion-'+_0x241782),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':_0x1715d2}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x4918bd['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)),_0x4918bd;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x3eba40,_0x53beea,_0x324c8c)=>{this['_descriptionElement']['innerHTML']=_0x324c8c;});}['_createButton'](_0xb29ea7,_0x5b51fc,_0x6ba08,_0x1116d0,_0x437f39){const _0x43f1d9=new _0x1ad66c(this['locale']);return _0x43f1d9['set']({'label':_0xb29ea7,'icon':_0x5b51fc,'tooltip':!0x0,'tooltipPosition':_0x437f39}),_0x43f1d9['extendTemplate']({'attributes':{'class':_0x6ba08}}),_0x43f1d9['on']('execute',()=>{this['fire'](_0x1116d0,this['_model']['id']);}),_0x43f1d9;}['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(_0x281e46,_0x4e98a8){let _0x147147='';return _0x147147+=_0x281e46['split']('*')['map']((_0x48c65d,_0x580e20)=>_0x580e20%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x48c65d)+'</span>':us(_0x48c65d))['join'](''),_0x4e98a8&&(_0x147147+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4e98a8['value']+'\x22\x20title=\x22'+_0x4e98a8['title']+'\x22></span>'),_0x147147;}function us(_0x1a4920){const _0x8c4d3=document['createElement']('span');return _0x8c4d3['innerText']=_0x1a4920,_0x8c4d3['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 _0x14427b{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x39a55a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x43aa1f){super(_0x43aa1f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x30e2df=this['editor']['config'];_0x30e2df['define']('trackChanges.SuggestionThreadView',ne),_0x30e2df['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x30e2df['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4c897c,_0x131c7c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1dac60,_0x289157]of this['_handleControllerBuffer']){const _0x293d38=this['_suggestionToController']['has'](_0x1dac60);_0x293d38||_0x289157?_0x293d38&&_0x289157&&this['_destroyController'](_0x1dac60):this['_initializeController'](_0x1dac60);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4c897c,_0x131c7c);}['init'](){const _0x2f17e6=this['editor'],_0x1ddcbf=_0x2f17e6['plugins']['get']('TrackChangesEditing'),_0x43a332=_0x2f17e6['plugins']['get']('Annotations'),_0x24094f=_0x2f17e6['plugins']['get']('EditorAnnotations'),_0x39c042=_0x2f17e6['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x24094f['addSourceCollector'](()=>{const _0x3b4abe=[];for(const [_0x61241e,_0x22cffe]of Array['from'](this['_suggestionToController'])){const _0x5b4f72=_0x61241e['getAllAdjacentSuggestions'](),_0x1bd0ad=[];for(const _0x515f8a of _0x5b4f72){if(!_0x515f8a['isInContent'])continue;if(_0x515f8a['isMultiRange']){_0x1bd0ad['push'](..._0x515f8a['getRanges']());continue;}const _0x4b4c78=_0x515f8a['getFirstRange']();if(_0x1bd0ad['length']>0x0){const _0x3f9de4=_0x1bd0ad[0x0]['getJoined'](_0x4b4c78);if(_0x3f9de4){_0x1bd0ad[0x0]=_0x3f9de4;continue;}}_0x1bd0ad['push'](_0x4b4c78);}_0x3b4abe['push']([_0x22cffe['view'],_0x1bd0ad]);}return _0x3b4abe;}),this['listenTo'](_0x1ddcbf,'suggestionLoaded',(_0x536de1,_0x22a3d8)=>{this['listenTo'](_0x22a3d8,'change:previous',(_0x3b532a,_0x2fcc24,_0x5baa3c,_0x1732bd)=>{_0x22a3d8['isInContent']&&(null==_0x5baa3c?(this['_updateController'](_0x1732bd['head']),this['_handleSuggestionControllerDelayed'](_0x22a3d8,!0x1)):(this['_updateController'](_0x5baa3c['head']),null==_0x1732bd&&this['_handleSuggestionControllerDelayed'](_0x22a3d8,!0x0)));}),null!==_0x22a3d8['previous']?this['_updateController'](_0x22a3d8['head']):this['_handleSuggestionControllerDelayed'](_0x22a3d8,!0x1);}),this['listenTo'](_0x1ddcbf,'suggestionUnloaded',(_0x45c64f,_0xa174b7,_0x7dcfa3)=>{this['stopListening'](_0xa174b7,'change:previous'),this['_handleControllerBuffer']['delete'](_0xa174b7),this['_suggestionToController']['has'](_0xa174b7)&&this['_destroyController'](_0xa174b7),_0x7dcfa3&&this['_updateController'](_0x7dcfa3['head']);}),this['listenTo'](_0x1ddcbf,'suggestionChanged',(_0x460c5d,_0x455bf9)=>{this['_updateController'](_0x455bf9);}),this['listenTo'](_0x43a332,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x39c042,'addComment',(_0x47db87,{threadId:_0x4da402,isFromAdapter:_0x2f44b9})=>{if(_0x2f44b9||!_0x1ddcbf['hasSuggestion'](_0x4da402))return;const _0x19b0c4=_0x1ddcbf['getSuggestion'](_0x4da402);this['_suggestionToController']['get'](_0x19b0c4)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x5f1ec6=this['editor']['plugins']['get']('Annotations'),_0x483210=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52d252=Array['from'](_0x5f1ec6['activeAnnotations'],_0x11999f=>_0x11999f['innerView'])['filter'](_0x44eb3e=>this['_viewToController']['has'](_0x44eb3e)),_0x1fcc6f=[];for(const _0x207d62 of _0x52d252){const _0x195004=this['_viewToController']['get'](_0x207d62)['model']['getAllAdjacentSuggestions']();_0x1fcc6f['push'](..._0x195004['reduce']((_0x8c6a26,_0x3f770e)=>[..._0x8c6a26,..._0x3f770e['getMarkerNames']()],[]));}_0x483210['activeMarkers']=_0x1fcc6f;}['_addUIComponentsToFactory'](){const _0xdc387d=this['editor'],_0x5c459b=_0xdc387d['locale'],_0x1e53e1=o(_0x5c459b,'Track\x20changes'),_0x1ec69e=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x1e53e1,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5c459b,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5c459b,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5c459b,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5c459b,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x51f598 of _0x1ec69e)if(ae(_0x51f598)){const _0x4cc393=_0xdc387d['commands']['get'](_0x51f598['model']['commandName']);_0x51f598['model']['bind']('isOn','isEnabled')['to'](_0x4cc393,'value','isEnabled');}_0xdc387d['ui']['componentFactory']['add']('trackChanges',_0x41000a=>this['_createToolbarButton'](_0x41000a,_0x1ec69e,_0x1e53e1)),_0xdc387d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x11fe16=>this['_createMenuBarMenu'](_0x11fe16,_0x1ec69e,_0x1e53e1));}['_createToolbarButton'](_0x365bf2,_0x27bae3,_0x1a1af4){const _0x5129ca=zt(_0x365bf2,Zt),_0x447639=this['editor']['commands']['get']('trackChanges');_0x5129ca['buttonView']['set']({'tooltip':_0x1a1af4,'label':_0x1a1af4,'icon':ie}),_0x5129ca['buttonView']['bind']('isOn')['to'](_0x447639,'value'),_0x5129ca['buttonView']['on']('execute',()=>{_0x447639['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x5129ca,_0x27bae3,{'role':'menu'});const _0x3d5d7c=[];for(const _0x2b2ea1 of _0x27bae3)ae(_0x2b2ea1)&&_0x3d5d7c['push'](this['editor']['commands']['get'](_0x2b2ea1['model']['commandName']));const _0x509022=_0x5129ca['buttonView'];return _0x509022['actionView']['unbind']('isEnabled'),_0x509022['arrowView']['unbind']('isEnabled'),_0x509022['actionView']['bind']('isEnabled')['to'](_0x447639,'isEnabled'),_0x509022['arrowView']['bind']('isEnabled')['toMany'](_0x3d5d7c,'isEnabled',(..._0x2e35b9)=>_0x2e35b9['some'](_0x3aa9fa=>_0x3aa9fa)),_0x5129ca['on']('execute',_0x41d58a=>{this['editor']['execute'](_0x41d58a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5129ca;}['_createMenuBarMenu'](_0x4655fb,_0xce6d07,_0x5380c2){const _0x3dfeb2=new Kt(_0x4655fb),_0x11f3a9=this['editor']['commands']['get']('trackChanges');_0x3dfeb2['buttonView']['set']({'label':_0x5380c2,'icon':ie});const _0x528a31=new Qt(_0x4655fb);for(const _0x3f73f8 of _0xce6d07){if('separator'==_0x3f73f8['type']){_0x528a31['items']['add'](new Jt(_0x4655fb));continue;}const _0x1b9d96=new Xt(_0x4655fb,_0x3dfeb2),_0x2b1794=new Yt(_0x4655fb),_0x5beb15=_0x3f73f8['model'];_0x2b1794['bind'](...Object['keys'](_0x5beb15))['to'](_0x5beb15),_0x2b1794['delegate']('execute')['to'](_0x3dfeb2),_0x2b1794['on']('execute',()=>{this['editor']['execute'](_0x5beb15['commandName']),this['editor']['editing']['view']['focus']();}),_0x1b9d96['children']['add'](_0x2b1794),_0x528a31['items']['add'](_0x1b9d96);}return _0x3dfeb2['bind']('isEnabled')['to'](_0x11f3a9,'isEnabled'),_0x3dfeb2['panelView']['children']['add'](_0x528a31),_0x3dfeb2;}['_initializeController'](_0x2d0cef){const _0x243e43=this['editor'],_0x53fca2=_0x243e43['config'],_0x4ec9f5=_0x243e43['plugins']['get']('Annotations'),_0x2ea059=_0x243e43['plugins']['get']('CommentsRepository'),_0x5e6c94=_0x243e43['plugins']['get']('EditorAnnotations'),_0x5a9715=_0x243e43['plugins']['get'](_0x39a55a)['me'],_0x32354c=_0x53fca2['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x1aff66,CommentThreadInputView:_0xd89546}=_0x243e43['plugins']['get']('CommentsUI');let _0x1d3c2d,_0x1354a4;this['_annotationViews']['has'](_0x2d0cef['id'])?(_0x1354a4=this['_annotationViews']['get'](_0x2d0cef['id']),_0x1d3c2d=_0x1354a4['mainView']):(_0x1d3c2d=new _0x32354c(_0x243e43['locale'],_0x2d0cef,_0x5a9715,{'disableComments':this['_disableComments'],'editorConfig':_0x53fca2['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x53fca2['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x53fca2['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x53fca2['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x301efd(_0x53fca2['get']('locale')),'CommentView':_0x53fca2['get']('comments')['CommentView'],'CommentsListView':_0x1aff66,'CommentThreadInputView':_0xd89546}),_0x1d3c2d['acceptButton']['on']('execute',()=>{_0x243e43['editing']['view']['focus']();}),_0x1d3c2d['discardButton']['on']('execute',()=>{_0x243e43['editing']['view']['focus']();}),_0x1354a4=_0x4ec9f5['createAnnotationView'](this['editor']['locale'],_0x1d3c2d),_0x1354a4['bind']('isDirty')['to'](_0x1d3c2d,'isDirty'),_0x1354a4['bind']('length')['to'](_0x1d3c2d),_0x1354a4['bind']('type')['to'](_0x1d3c2d,'type',_0x6f8e93=>'suggestion-'+_0x6f8e93),this['_annotationViews']['set'](_0x2d0cef['id'],_0x1354a4));const _0x1a9d9c=_0x2ea059['createCommentThreadController'](_0x2d0cef['commentThread'],_0x1d3c2d),_0x179d88=new oe(_0x243e43,_0x2d0cef,_0x1d3c2d,_0x1a9d9c),_0x8f92fa=_0x2d0cef['getAllAdjacentSuggestions']()['filter'](_0x5847b9=>_0x5847b9['isInContent']);_0x1d3c2d['descriptionParts']=_0x243e43['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x8f92fa),this['_suggestionToController']['set'](_0x2d0cef,_0x179d88),this['_viewToController']['set'](_0x1d3c2d,_0x179d88);const _0x38dbae=_0x4ec9f5['createAnnotation']({'view':_0x1354a4,'target':()=>{const _0x494ec1=[],_0x1e6df0=_0x2d0cef['getAllAdjacentSuggestions']()['filter'](_0x59bee1=>_0x59bee1['isInContent']);for(const _0x3f3be0 of _0x1e6df0)_0x494ec1['push'](..._0x3f3be0['getMarkers']());return _0x231fa4(_0x243e43['editing'],_0x494ec1);},'type':()=>'suggestion-'+_0x179d88['view']['type']});_0x2ea059['_bindAnnotationToEditors'](_0x1d3c2d,_0x38dbae),_0x4ec9f5['add'](_0x38dbae),_0x5e6c94['registerAnnotation'](_0x38dbae);}['_destroyController'](_0x403cad){const _0x21cbc0=this['editor']['plugins']['get']('CommentsRepository'),_0x56f200=this['editor']['plugins']['get']('Annotations'),_0x206738=this['_suggestionToController']['get'](_0x403cad),_0x49fe30=_0x206738['view'],_0x302f0e=_0x56f200['getByInnerView'](_0x49fe30);_0x21cbc0['_unbindEditors'](_0x49fe30),_0x302f0e&&_0x56f200['remove'](_0x302f0e),this['_suggestionToController']['delete'](_0x403cad),this['_viewToController']['delete'](_0x49fe30),_0x206738['destroy']();}['_updateController'](_0x40d6d8){if(!_0x40d6d8['isInContent']||!this['_suggestionToController']['has'](_0x40d6d8))return;const _0x1102ee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x712eea=this['_suggestionToController']['get'](_0x40d6d8),_0x301145=_0x40d6d8['getAllAdjacentSuggestions']();_0x712eea['view']['descriptionParts']=_0x1102ee['descriptionFactory']['getDescriptions'](_0x301145);}['destroy'](){for(const _0x344b3c of this['_suggestionToController']['keys']())this['_destroyController'](_0x344b3c);for(const _0x149509 of this['_annotationViews']['values']())_0x149509['mainView']['destroy']();super['destroy']();}}function ae(_0x25bd54){return'model'in _0x25bd54;}class k extends _0x14427b{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0xd07948){this['editor']['plugins']['get'](p)['adapter']=_0xd07948;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x51411b){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x51411b);}['getSuggestions']({skipNotAttached:_0x5770cf=!0x1,toJSON:_0x443828=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5770cf,'toJSON':_0x443828});}['getSuggestion'](_0x103976){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x103976);}}const T=['Pagination'];class P extends _0x14427b{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x569896=this['editor'];if(_0x569896['config']['define']('trackChangesData.editorCreator',_0x1522af=>{const _0x4a8bf1=_0x569896['model']['document']['getRootNames']()['reduce']((_0xdf3e82,_0x5b7bbc)=>(_0xdf3e82[_0x5b7bbc]='',_0xdf3e82),{});return _0x569896['constructor']['create'](_0x4a8bf1,_0x1522af);}),'function'!=typeof _0x569896['config']['get']('trackChangesData')['editorCreator'])throw new _0xfe336f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3d1ab9){return N(this['editor'],!0x0,_0x3d1ab9);}['getDataWithDiscardedSuggestions'](_0x5e8e4c){return N(this['editor'],!0x1,_0x5e8e4c);}}class D extends _0x14427b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x2c62bd){super(_0x2c62bd),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(_0x89ecad){return void 0x0!==_0x89ecad['getRootsAttributes'];}async function N(_0x4a4a89,_0x55f74f,_0x30709a){const _0x12986a=_0x980eae(_0x4a4a89,T);_0x12986a['plugins']['push'](p,D),_0x12986a['rootsAttributes']=v(_0x4a4a89)?_0x4a4a89['getRootsAttributes']():void 0x0;const _0x3aff9d=document['createDocumentFragment'](),_0x372212=_0x4a4a89['config']['get']('trackChangesData')['editorCreator'],_0x247b0f=await _0x372212(_0x12986a,()=>function(_0x2d8200){const _0x516569=document['createElement']('div');return _0x2d8200['appendChild'](_0x516569),_0x516569;}(_0x3aff9d));!function(_0x1069fb,_0x4ea12e){const _0x52c09a=_0x1069fb['model']['document']['getRootNames']()['reduce']((_0x1edd44,_0x5547e2)=>(_0x1edd44[_0x5547e2]=_0x1069fb['data']['get']({'rootName':_0x5547e2}),_0x1edd44),{}),_0x2647b1=_0x1069fb['plugins']['get']('Users')['users']['map'](_0x460144=>({'id':_0x460144['id'],'name':_0x460144['name']})),_0x354919=_0x1069fb['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x598c08=_0x1069fb['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1730fc=_0x4ea12e['plugins']['get']('Users'),_0x1ce50c=_0x4ea12e['plugins']['get']('TrackChangesEditing'),_0x235c95=_0x4ea12e['plugins']['get']('CommentsRepository');for(const _0x28af2c of _0x2647b1)_0x1730fc['getUser'](_0x28af2c['id'])||_0x1730fc['addUser'](_0x28af2c);_0x1730fc['me']||_0x1730fc['useAnonymousUser']();for(const _0x39c7d1 of _0x598c08)_0x235c95['addCommentThread'](_0x39c7d1);for(const _0x24089b of _0x354919)_0x1ce50c['addSuggestionData'](_0x24089b);_0x4ea12e['data']['set'](_0x52c09a);}(_0x4a4a89,_0x247b0f),_0x247b0f['execute'](_0x55f74f?'acceptAllSuggestions':'discardAllSuggestions');const _0x5c636e=v(_0x247b0f)?_0x247b0f['getFullData'](_0x30709a):_0x247b0f['data']['get'](_0x30709a);return await _0x247b0f['destroy'](),_0x5c636e;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x1a8994,PendingActions as _0x3aa298,icons as _0x287688}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xe1a238,ObservableMixin as _0x5d594b,uid as _0x16a8ea,insertToPriorityArray as _0x5ba98f,priorities as _0x123409,logWarning as _0xeeb859,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x7a7b0,View as _0x219786,ButtonView as _0x22214b,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 _0x22b829,hashObject as _0x44e8df,surroundingMarkersDetector as _0x11e2cb,trimHtml as _0x44ba87,UserView as _0x19aa7a,getDateTimeFormatter as _0x2cb772,getAllMarkersDomElementsSorted as _0x4358e3,sanitizeEditorConfig as _0x5eab73}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1d5b9e,LiveRange as _0x1ccabf,LivePosition as _0x38cdb5}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1cbd0c,toWidget as _0x2ee72b}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x13888e,set as _0x4e2219,isEqual as _0x2c486a,unset as _0xd9ae8d,omit as Bt}from'lodash-es';import{Delete as _0x32186d,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x253047,ShiftEnter as _0x5f54ac}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0xde2a33,_0x5936d5){super(_0xde2a33),this['_enabledCommands']=_0x5936d5,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 _0x3a6ec5 of this['editor']['commands']['commands']())_0x3a6ec5['affectsData']&&!this['_enabledCommands']['has'](_0x3a6ec5)&&_0x3a6ec5['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xf16d57 of this['editor']['commands']['commands']())_0xf16d57['affectsData']&&!this['_enabledCommands']['has'](_0xf16d57)&&_0xf16d57['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x47a134,_0x189177){super(_0x47a134),this['_suggestions']=_0x189177,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x120674){const _0x2be545=this['_suggestions']['get'](_0x120674);if(!_0x2be545)throw new _0xe1a238('track-changes-accept-suggestion-not-found',this);const _0x3ecfe8=_0x2be545['getRanges']();this['editor']['model']['canEditAt'](_0x3ecfe8)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2be545);}}class B extends ts{['_suggestions'];constructor(_0x26efb1,_0x584f4f){super(_0x26efb1),this['_suggestions']=_0x584f4f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1978dc){const _0x534c76=this['_suggestions']['get'](_0x1978dc);if(!_0x534c76)throw new _0xe1a238('track-changes-discard-suggestion-not-found',this);const _0x1819db=_0x534c76['getRanges']();this['editor']['model']['canEditAt'](_0x1819db)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x534c76);}}function ss(_0x2ee3ab){return _0x2ee3ab['sort']((_0x34e11c,_0xa2e685)=>'deletion'==_0x34e11c['type']&&'deletion'!=_0xa2e685['type']?-0x1:'deletion'!=_0x34e11c['type']&&'deletion'==_0xa2e685['type']?0x1:0x0);}function to(_0x297c4b,_0x5129b7){let _0x4c799b,_0x25b8dd=0x0;const _0x89951e=[],_0x151dc1=_0x5129b7['schema'];for(;_0x25b8dd<_0x297c4b['length'];){const _0x4b39a6=_0x297c4b[_0x25b8dd],_0x1b6e4c=_0x297c4b[_0x25b8dd+0x1];_0x4c799b||(_0x4c799b=_0x5129b7['createPositionBefore'](_0x4b39a6)),co(_0x5129b7,_0x4b39a6,_0x1b6e4c)||(_0x89951e['push'](_0x5129b7['createRange'](_0x4c799b,_0x151dc1['isObject'](_0x4b39a6)?_0x5129b7['createPositionAfter'](_0x4b39a6):_0x5129b7['createPositionAt'](_0x4b39a6,'end'))),_0x4c799b=null),_0x25b8dd++;}return _0x89951e;}function co(_0x7f0ae3,_0x483473,_0x43411f){if(!_0x43411f)return!0x1;const _0x10721a=_0x7f0ae3['createPositionAfter'](_0x483473),_0x6b1036=_0x7f0ae3['createPositionBefore'](_0x43411f);return _0x10721a['isTouching'](_0x6b1036);}function rs(_0x30f44f,_0x4aeeb1,_0x40e569){for(;_0x40e569['length'];){const _0x330ded=_0x40e569['splice'](0x0,0x64);_0x30f44f['change'](()=>{for(const _0x2e6ada of _0x330ded)_0x2e6ada['isInContent']&&_0x4aeeb1['execute'](_0x2e6ada['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x496fa0,_0xa576c3,_0xb8eb9c){super(_0x496fa0),this['_command']=_0xa576c3,this['_suggestions']=_0xb8eb9c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x450412=Array['from'](this['_suggestions']['values']())['some'](_0x53a21a=>_0x53a21a['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x450412;}['execute'](){const _0x570702=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3eca12 of _0x570702){const _0x2ff038=_0x3eca12['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2ff038))return;}rs(this['editor']['model'],this['_command'],_0x570702);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x84f636,_0x2a1127,_0x1a46d2){super(_0x84f636),this['_command']=_0x2a1127,this['_suggestions']=_0x1a46d2,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x65bcc4=this['editor']['model']['document']['selection'],_0x29f676=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4a09a1,_0x2d7387){const _0x123def=Array['from'](_0x4a09a1['getRanges']()),_0x5ab3ee=new Set();for(const _0x4ddabf of _0x2d7387)if(_0x4ddabf['isInContent']){for(const _0x201686 of _0x123def)for(const _0x5951ba of _0x4ddabf['getRanges']())(_0x201686['isIntersecting'](_0x5951ba)||_0x4a09a1['isCollapsed']&&!_0x4ddabf['isMultiRange']&&_0x4ddabf['next']&&_0x5951ba['end']['isTouching'](_0x201686['start']))&&_0x5ab3ee['add'](_0x4ddabf);}return _0x5ab3ee;}(_0x65bcc4,_0x29f676),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3b5c3d=ss(Array['from'](this['_selectedSuggestions']));for(const _0x2dcc2a of _0x3b5c3d){const _0xeabaf7=_0x2dcc2a['getRanges']();if(!this['editor']['model']['canEditAt'](_0xeabaf7))return;}rs(this['editor']['model'],this['_command'],_0x3b5c3d);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5d594b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3a2ff5,_0x12531a){super(),this['id']=_0x12531a['id'],this['type']=_0x12531a['type'],this['subType']=_0x12531a['subType']||null,this['author']=_0x12531a['author'],this['creator']=_0x12531a['creator']||_0x12531a['author'],this['isExternal']=Boolean(_0x12531a['attributes']&&_0x12531a['attributes']['@external']),this['data']=null,this['_model']=_0x3a2ff5,this['_onAccept']=_0x12531a['onAccept'],this['_onDiscard']=_0x12531a['onDiscard'],this['_onAttributesChange']=_0x12531a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x12531a['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 _0xccb8b3=this;for(;_0xccb8b3['previous'];)_0xccb8b3=_0xccb8b3['previous'];return _0xccb8b3;}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'](_0x460815){this['_markerNames']['add'](_0x460815);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1360bd=>this['_model']['markers']['get'](_0x1360bd))['filter'](_0x27ea39=>_0x27ea39);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x518370=>{for(const _0x51c6ea of this['getMarkers']())_0x518370['removeMarker'](_0x51c6ea);}),this['_markerNames']['clear']();}['removeMarker'](_0x3ee474){this['_model']['change'](_0x38d0b6=>{_0x38d0b6['removeMarker'](_0x3ee474);}),this['_markerNames']['delete'](_0x3ee474);}['addRange'](_0x415088){const _0x150ae5='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x150ae5),this['_model']['change'](_0x52c24c=>{_0x52c24c['addMarker'](_0x150ae5,{'range':_0x415088,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x10c306){for(const _0x537653 of this['getRanges']())if(_0x537653['isIntersecting'](_0x10c306))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4478f6=>_0x4478f6['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2e5c5f,_0x4b40f0)=>[..._0x2e5c5f,..._0x4b40f0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1a9a9f=this['getRanges']();if(0x1!=_0x1a9a9f['length'])return null;const _0x1559c2=_0x1a9a9f[0x0],_0x1b4d76=_0x1559c2['start']['nodeAfter'],_0x2cd090=_0x1559c2['end']['nodeBefore'];return _0x1b4d76 instanceof _0x1d5b9e?_0x1b4d76!=_0x2cd090?null:_0x1b4d76: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 _0x536669=[];let _0x37d0c9=this['head'];for(;_0x37d0c9;)_0x536669['push'](_0x37d0c9),_0x37d0c9=_0x37d0c9['next'];return _0x536669;}['setAttribute'](_0x2393dd,_0x21c0b6){const _0x547ee4=_0x13888e(this['attributes']);_0x4e2219(_0x547ee4,_0x2393dd,_0x21c0b6),_0x2c486a(_0x547ee4,this['attributes'])||(this['attributes']=_0x547ee4,this['_onAttributesChange'](_0x547ee4));}['removeAttribute'](_0x227f39){const _0x30a3cf=_0x13888e(this['attributes']);_0xd9ae8d(_0x30a3cf,_0x227f39),_0x2c486a(_0x30a3cf,this['attributes'])||(this['attributes']=_0x30a3cf,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 _0x16a8ea()['substr'](0x1,0x5);}}function o(_0x4735e3,_0x3f5d9d,_0x1ded03){const t=_0x4735e3['t'];switch(_0x3f5d9d){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',_0x1ded03);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1ded03);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1ded03);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1ded03);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1ded03);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',_0x1ded03);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1ded03);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',_0x1ded03);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1ded03);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1ded03);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1ded03);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1ded03);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1ded03);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1ded03);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1ded03);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1ded03);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1ded03);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1ded03);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1ded03);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1ded03);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1ded03);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1ded03);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1ded03);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'},_0x1ded03);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1ded03);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1ded03);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1ded03);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1ded03);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1ded03);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'},_0x1ded03);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1ded03);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1ded03);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1ded03);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1ded03);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'},_0x1ded03);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1ded03);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'},_0x1ded03);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'},_0x1ded03);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1ded03);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'},_0x1ded03);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1ded03);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'},_0x1ded03);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1ded03);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1ded03);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'},_0x1ded03);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'},_0x1ded03);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 _0x3f5d9d;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xcd4a50,_0x667a8f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xcd4a50,this['_locale']=_0x667a8f;}['getDescriptions'](_0x1ad740){const _0xeda7e4=[],_0xd33db7=new Set(),_0x227983=new Set();for(let _0x28059c=0x0;_0x28059c<_0x1ad740['length'];_0x28059c++){const _0x402448=_0x1ad740[_0x28059c];if(!_0x402448['isInContent'])continue;const _0x1aea4c=this['_handleCustomCallbackDescription'](_0x402448);if(_0x1aea4c){if(null!=_0x402448['subType']){if(_0xd33db7['has'](_0x402448['subType']))continue;_0xd33db7['add'](_0x402448['subType']);}_0xeda7e4['push'](_0x1aea4c);}else{if('attribute'!=_0x402448['type'])'insertion'!=_0x402448['type']&&'deletion'!=_0x402448['type']||this['_handleInsertRemoveSuggestionDescription'](_0xeda7e4,_0x402448,_0x1ad740[_0x28059c+0x1]);else{const _0x2fb710=_0x402448['data']['key'];if(_0x227983['has'](_0x2fb710))continue;_0x227983['add'](_0x402448['data']['key']),_0x2fb710==m?this['_handleRenameSuggestionDescription'](_0xeda7e4,_0x402448):this['_handleAttributeSuggestionDescription'](_0xeda7e4,_0x402448);}}}return this['_resolveDescriptionItems'](_0xeda7e4);}['registerDescriptionCallback'](_0xc023b4){this['_customCallbacks']['push'](_0xc023b4);}['registerElementLabel'](_0x626ff,_0xe3513e,_0x187a71=_0x123409['normal']){'function'==typeof _0x626ff?_0x5ba98f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x626ff,'label':_0xe3513e,'priority':_0x187a71}):this['_itemLabels']['set'](_0x626ff,_0xe3513e);}['registerAttributeLabel'](_0x3df458,_0x424513){this['_attributeLabels']['set'](_0x3df458,_0x424513);}['getItemLabel'](_0x4104de,_0xad6f69=0x1){let _0x4eb8f6;for(const _0xcba72b of this['_itemLabelsCallbacks'])if(_0xcba72b['matchingCallback'](_0x4104de)){_0x4eb8f6=_0xcba72b['label'];break;}return _0x4eb8f6||(_0x4eb8f6=this['_itemLabels']['get'](_0x4104de['name'])),_0x4eb8f6?_0x4eb8f6(_0xad6f69):0x1!==_0xad6f69?_0xad6f69+'\x20'+_0x4104de['name']+'s':''+_0x4104de['name'];}['_addDescriptionItems'](_0x561503,_0xeeee01){const _0x36aa1e=_0xeeee01['getFirstRange']()['getWalker'](),_0x4c845a='insertion'==_0xeeee01['type']?'add':'remove';for(const _0x16c53d of _0x36aa1e){const _0x4f9dac=_0x16c53d['item'],_0x50b209=_0x561503[_0x561503['length']-0x1];if(_0x4f9dac['is']('$textProxy'))_0x50b209&&_0x50b209['type']['indexOf']('Container')>-0x1&&_0x561503['pop'](),_0x50b209&&'text'==_0x50b209['type']?_0x50b209[_0x4c845a]+=_0x4f9dac['data']:_0x561503['push']({'type':'text','add':'add'==_0x4c845a?_0x4f9dac['data']:'','remove':'remove'==_0x4c845a?_0x4f9dac['data']:''});else{if(this['_schema']['isObject'](_0x4f9dac)){const _0x3b9145=_0x4f9dac;if(_0x50b209&&_0x50b209['type']['indexOf']('Container')>-0x1&&_0x561503['pop'](),'elementEnd'==_0x16c53d['type'])continue;_0x50b209&&_0x50b209['type']==_0x4c845a+'Object'&&_0x50b209['element']['name']==_0x3b9145['name']?_0x50b209['quantity']++:_0x561503['push']({'type':_0x4c845a+'Object','element':_0x3b9145,'quantity':0x1}),_0x36aa1e['skip'](_0xb8e926=>!('elementEnd'==_0xb8e926['type']&&_0xb8e926['item']==_0x4f9dac));}else{if(this['_schema']['checkChild'](_0x4f9dac,'$text')||_0x4f9dac['is']('element','softBreak')){const _0xec216b=_0x4f9dac;if('add'==_0x4c845a&&'elementStart'==_0x16c53d['type']||'remove'==_0x4c845a&&'elementEnd'==_0x16c53d['type'])continue;if(_0x50b209&&-0x1==_0x50b209['type']['indexOf']('Container')){'text'==_0x50b209['type']&&(_0x50b209[_0x4c845a]+='\x0a');continue;}let _0x94069c;if(_0x94069c='add'==_0x4c845a?_0xec216b['nextSibling']&&!this['_schema']['isObject'](_0xec216b['nextSibling'])?_0xec216b['nextSibling']:null:_0xec216b['previousSibling']&&!this['_schema']['isObject'](_0xec216b['previousSibling'])?_0xec216b['previousSibling']:null,_0xec216b['isEmpty']||_0x94069c&&_0x94069c['isEmpty']){const _0x3dead6=_0x94069c&&_0x94069c['isEmpty']?_0x94069c:_0xec216b;_0x50b209&&_0x50b209['type']==_0x4c845a+'EmptyContainer'&&_0x50b209['element']['name']==_0x3dead6['name']?_0x50b209['quantity']++:_0x561503['push']({'type':_0x4c845a+'EmptyContainer','element':_0x3dead6,'quantity':0x1});}else _0x561503['push']({'type':_0x4c845a+'Container','element':_0xec216b});}}}}}['_resolveDescriptionItems'](_0x17cf05){const _0x5731e9=this['_locale'],_0x1b8a63=[],_0x1314d7=[],_0x13ac0a=[];for(const _0x5681d9 of _0x17cf05)switch(_0x5681d9['type']){case'text':if(_0x5681d9['add']=_0x5681d9['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5681d9['remove']=_0x5681d9['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5681d9['add']&&''!=_0x5681d9['remove']){_0x1b8a63['push']({'type':'replace','content':o(_0x5731e9,'REPLACE_TEXT',['\x22'+_0x5681d9['remove']+'\x22','\x22'+_0x5681d9['add']+'\x22'])});continue;}if(null!=_0x5681d9['add']['match'](/^ +$/)){_0x1b8a63['push']({'type':'insertion','content':o(_0x5731e9,'*Insert:*\x20%0',o(_0x5731e9,'ELEMENT_SPACE',_0x5681d9['add']['length']))});continue;}if(null!=_0x5681d9['remove']['match'](/^ +$/)){_0x1b8a63['push']({'type':'deletion','content':o(_0x5731e9,'*Remove:*\x20%0',o(_0x5731e9,'ELEMENT_SPACE',_0x5681d9['remove']['length']))});continue;}if(''!=_0x5681d9['add']){_0x1b8a63['push']({'type':'insertion','content':o(_0x5731e9,'*Insert:*\x20%0','\x22'+_0x5681d9['add']+'\x22')});continue;}_0x1b8a63['push']({'type':'deletion','content':o(_0x5731e9,'*Remove:*\x20%0','\x22'+_0x5681d9['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1b8a63['push']({'type':'insertion','content':o(_0x5731e9,'*Insert:*\x20%0',this['getItemLabel'](_0x5681d9['element'],_0x5681d9['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1b8a63['push']({'type':'deletion','content':o(_0x5731e9,'*Remove:*\x20%0',this['getItemLabel'](_0x5681d9['element'],_0x5681d9['quantity']))});continue;case'addContainer':_0x1b8a63['push']({'type':'insertion','content':o(_0x5731e9,'*Split:*\x20%0',this['getItemLabel'](_0x5681d9['element'],_0x5681d9['quantity']))});continue;case'removeContainer':_0x1b8a63['push']({'type':'deletion','content':o(_0x5731e9,'*Merge:*\x20%0',this['getItemLabel'](_0x5681d9['element'],_0x5681d9['quantity']))});continue;case'addFormat':_0x1314d7['push'](_0x5681d9['key']);continue;case'removeFormat':_0x13ac0a['push'](_0x5681d9['key']);continue;default:_0x1b8a63['push'](_0x5681d9);}if(_0x1314d7['length']){const _0x3852b9=_0x1314d7['map'](_0x1ebf37=>this['_attributeLabels']['has'](_0x1ebf37)?this['_attributeLabels']['get'](_0x1ebf37):_0x1ebf37)['join'](',\x20');_0x1b8a63['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3852b9)});}if(_0x13ac0a['length']){const _0x352966=_0x13ac0a['map'](_0x59aa16=>this['_attributeLabels']['has'](_0x59aa16)?this['_attributeLabels']['get'](_0x59aa16):_0x59aa16)['join'](',\x20');_0x1b8a63['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x352966)});}return _0x1b8a63;}['_handleCustomCallbackDescription'](_0x4fb37a){for(const _0x14b345 of this['_customCallbacks']){const _0x50660a=_0x14b345(_0x4fb37a);if(_0x50660a&&'type'in _0x50660a)return _0x50660a;}}['_handleAttributeSuggestionDescription'](_0x4292fd,_0x171f70){const _0x597a8d=_0x171f70['data'],_0x3ef1f6=void 0x0===_0x597a8d['newValue']?'removeFormat':'addFormat';_0x4292fd['push']({'type':_0x3ef1f6,'key':_0x597a8d['key']});}['_handleRenameSuggestionDescription'](_0x1b8cf8,_0x5a4ede){_0x1b8cf8['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5a4ede['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1f0ddd,_0x43a25a,_0x2bd773){if(this['_addDescriptionItems'](_0x1f0ddd,_0x43a25a),_0x2bd773&&_0x2bd773['getFirstRange']()&&!_0x43a25a['getFirstRange']()['end']['isEqual'](_0x2bd773['getFirstRange']()['start'])){const _0x1ed5fe=_0x1f0ddd[_0x1f0ddd['length']-0x1],_0x590d1c='insertion'==_0x43a25a['type']?'add':'remove';_0x1ed5fe&&'text'==_0x1ed5fe['type']&&(_0x1ed5fe[_0x590d1c]+='\x0a');}}}class E extends _0x1a8994{['afterInit'](){const _0x42b742=this['editor'],_0x107cf0=_0x42b742['plugins']['get']('TrackChangesEditing');_0x42b742['commands']['get']('showAIAssistant')&&_0x107cf0['enableCommand']('showAIAssistant');}}class V extends _0x1a8994{['afterInit'](){const _0x50588f=this['editor'],_0x1198ed=_0x50588f['locale'];if(!_0x50588f['plugins']['has']('AlignmentEditing'))return;const _0x23db60=_0x50588f['plugins']['get']('TrackChangesEditing');_0x23db60['enableDefaultAttributesIntegration']('alignment'),_0x23db60['registerBlockAttribute']('alignment'),_0x23db60['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1198ed,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1adb83=this['editor'],_0x5c2ce9=_0x1adb83['locale'];_0x1adb83['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c4314=>{if('formatBlock'!=_0x2c4314['type'])return;const {data:_0x1be6a5}=_0x2c4314;if(_0x1be6a5&&'alignment'==_0x1be6a5['commandName']){const _0x36f814=_0x1be6a5['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5c2ce9,'*Format:*\x20%0',function(_0x1dc3e8){switch(_0x1dc3e8){case'left':return o(_0x5c2ce9,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5c2ce9,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5c2ce9,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5c2ce9,'FORMAT_JUSTIFY_TEXT');}}(_0x36f814))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x1a8994{['afterInit'](){const _0x20476b=this['editor'],_0x16b2e9=_0x20476b['plugins']['get']('TrackChangesEditing'),_0x5ce53a=_0x20476b['locale'];for(const _0x267478 of ti){if(!_0x20476b['plugins']['has'](_0x267478))continue;const _0x59f154=_0x267478['slice'](0x0,-0x7)['toLowerCase'](),_0x53b4ef='FORMAT_'+_0x59f154['toUpperCase']();_0x16b2e9['enableDefaultAttributesIntegration'](_0x59f154),_0x16b2e9['registerInlineAttribute'](_0x59f154),_0x16b2e9['descriptionFactory']['registerAttributeLabel'](_0x59f154,o(_0x5ce53a,_0x53b4ef));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a0724=this['editor'],_0x43509a=_0x4a0724['locale'],_0x3708c5=_0x4a0724['plugins']['get']('TrackChangesEditing');function _0x113a8d(_0x1d9058,_0x44d44b){_0x3708c5['descriptionFactory']['registerDescriptionCallback'](_0x3bf918=>{if('formatInline'!=_0x3bf918['type'])return;const {data:_0x14bbc9}=_0x3bf918;return _0x14bbc9&&_0x14bbc9['commandName']===_0x1d9058?_0x14bbc9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x43509a,'*Format:*\x20%0',_0x44d44b)}:{'type':'format','content':o(_0x43509a,'*Remove\x20format:*\x20%0',_0x44d44b)}:void 0x0;});}_0x113a8d('bold',o(_0x43509a,'FORMAT_BOLD')),_0x113a8d('italic',o(_0x43509a,'FORMAT_ITALIC')),_0x113a8d('underline',o(_0x43509a,'FORMAT_UNDERLINE')),_0x113a8d('code',o(_0x43509a,'FORMAT_CODE')),_0x113a8d('strikethrough',o(_0x43509a,'FORMAT_STRIKETHROUGH')),_0x113a8d('subscript',o(_0x43509a,'FORMAT_SUBSCRIPT')),_0x113a8d('superscript',o(_0x43509a,'FORMAT_SUPERSCRIPT'));}}class O extends _0x1a8994{['afterInit'](){const _0x22a27c=this['editor'],_0x28b734=_0x22a27c['locale'];if(!_0x22a27c['plugins']['has']('BlockQuoteEditing'))return;const _0x561517=_0x22a27c['plugins']['get']('TrackChangesEditing'),_0x2e752c=this['editor']['commands']['get']('blockQuote');_0x561517['enableCommand']('blockQuote',(_0x1a121d,_0x264c47={})=>{const _0x25ed56=this['editor']['model']['document']['selection'],_0x5bf200=_0x264c47&&void 0x0!==_0x264c47['forceValue']?_0x264c47['forceValue']:!_0x2e752c['value'];let _0x42ccf8=[];if(_0x5bf200){const _0x891f5c=Array['from'](_0x25ed56['getSelectedBlocks']())['filter'](_0x5d80b3=>oo(_0x5d80b3)||function(_0x3d16f0,_0x4e8916){const _0x253662=_0x4e8916['checkChild'](_0x3d16f0['parent'],'blockQuote'),_0x2dd595=_0x4e8916['checkChild'](['$root','blockQuote'],_0x3d16f0);return _0x253662&&_0x2dd595;}(_0x5d80b3,this['editor']['model']['schema']));_0x42ccf8=to(_0x891f5c,_0x22a27c['model']);}else{const _0x29949d=Array['from'](_0x25ed56['getSelectedBlocks']())['filter'](_0x4d7a65=>oo(_0x4d7a65));_0x42ccf8=to(_0x29949d,_0x22a27c['model']);}_0x22a27c['model']['change'](()=>{for(const _0x20e7e4 of _0x42ccf8)_0x561517['markBlockFormat'](_0x20e7e4,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5bf200}]});});}),_0x561517['descriptionFactory']['registerDescriptionCallback'](_0x1187e1=>{const {data:_0x33af26}=_0x1187e1;if(_0x33af26&&'blockQuote'==_0x33af26['commandName']){const _0x1ade1e=o(_0x28b734,'ELEMENT_BLOCK_QUOTE');return _0x33af26['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x28b734,'*Set\x20format:*\x20%0',_0x1ade1e)}:{'type':'format','content':o(_0x28b734,'*Remove\x20format:*\x20%0',_0x1ade1e)};}});}}function oo(_0x58491b){return'blockQuote'==_0x58491b['parent']['name'];}class G extends _0x1a8994{['afterInit'](){const _0x10c163=this['editor'];_0x10c163['plugins']['has']('CaseChange')&&(_0x10c163['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x10c163['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x10c163['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x1a8994{['afterInit'](){const _0x5a0b71=this['editor'];_0x5a0b71['commands']['get']('ckbox')&&_0x5a0b71['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x1a8994{['afterInit'](){const _0x54a035=this['editor'];if(!_0x54a035['plugins']['has']('CodeBlock'))return;const _0x93cc4f=_0x54a035['plugins']['get']('TrackChangesEditing'),_0x52eacd=_0x54a035['locale'],_0x10514e=_0x54a035['config']['get']('codeBlock')['languages'],_0x1d561d=_0x54a035['commands']['get']('codeBlock');_0x93cc4f['enableCommand']('indentCodeBlock'),_0x93cc4f['enableCommand']('outdentCodeBlock'),_0x93cc4f['enableCommand']('codeBlock',(_0x32752d,_0x2d9b90={})=>{const _0x330405=_0x54a035['model'],_0x9f0844=_0x54a035['model']['document']['selection'],_0x11a894=_0x2d9b90&&void 0x0!==_0x2d9b90['forceValue']?_0x2d9b90['forceValue']:!_0x1d561d['value'];let _0x5a55fd;_0x2d9b90['language']||(_0x2d9b90['language']=_0x10514e[0x0]['language']),_0x5a55fd=_0x11a894?Array['from'](_0x9f0844['getSelectedBlocks']())['filter'](_0x3d8a42=>eo(_0x3d8a42)||function(_0x267355,_0x1fc517){if(_0x267355['is']('rootElement')||_0x1fc517['isLimit'](_0x267355))return!0x1;return _0x1fc517['checkChild'](_0x267355['parent'],'codeBlock');}(_0x3d8a42,_0x330405['schema'])):Array['from'](_0x9f0844['getSelectedBlocks']())['filter'](_0x3d14cc=>eo(_0x3d14cc));const _0x5c3ed8=to(_0x5a55fd,_0x330405);_0x330405['change'](()=>{for(const _0x4708f4 of _0x5c3ed8)_0x93cc4f['markBlockFormat'](_0x4708f4,{'commandName':'codeBlock','commandParams':[{..._0x2d9b90,'forceValue':_0x11a894}],'formatGroupId':'blockName'});});}),(_0x93cc4f['descriptionFactory']['registerElementLabel']('codeBlock',_0x256775=>o(_0x52eacd,'ELEMENT_CODE_BLOCK',_0x256775)),_0x93cc4f['descriptionFactory']['registerDescriptionCallback'](_0x4caf46=>{if('formatBlock'!=_0x4caf46['type'])return;const _0x26450f=_0x52eacd['t'],{data:_0x4fef40}=_0x4caf46;if(!_0x4fef40||'codeBlock'!=_0x4fef40['commandName'])return;const _0x598912=_0x4fef40['commandParams'][0x0]['language'],_0x50e652=_0x26450f(_0x10514e['find'](_0x16daa7=>_0x16daa7['language']===_0x598912)['label'])['toLowerCase']();return _0x4fef40['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52eacd,'*Set\x20format:*\x20%0',o(_0x52eacd,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x50e652+')')}:{'type':'format','content':o(_0x52eacd,'*Remove\x20format:*\x20%0',o(_0x52eacd,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x19c0f1){return'codeBlock'==_0x19c0f1['name'];}class H extends _0x1a8994{['afterInit'](){const _0x84d4c4=this['editor'];if(!_0x84d4c4['plugins']['has']('CommentsEditing'))return;_0x84d4c4['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3ea994,_0x545147,_0x5034ff){const _0x381972=[];for(const _0x3fd9c7 of _0x545147['getItems']())_0x3fd9c7['hasAttribute'](_0x3ea994)&&_0x381972['push'](_0x5034ff['createRangeOn'](_0x3fd9c7));return _0x381972;}function _e(_0x375bac,_0x56691e,{showActiveMarker:_0x1ae3d9=!0x0}={}){const _0x58bb44=_0x375bac['plugins']['get']('TrackChangesEditing');return(_0x46bd5e,_0x57e1dc,_0x585b24)=>{if(!_0x585b24['consumable']['test'](_0x57e1dc['markerRange'],_0x46bd5e['name']))return;const _0x369d81=_0x57e1dc['markerRange']['getWalker'](),_0x540c50=_0x57e1dc['markerRange']['start'],_0x2df6f9=_0x375bac['model']['schema'];let _0x1d0918=null,_0xbe7f6a=null,_0x36e0fb=!0x1,_0xdb4341=!0x1;for(const _0x55660e of _0x369d81){const _0xb0c105=_0x55660e['item'];_0x36e0fb=_0x36e0fb||_0x2df6f9['isContent'](_0xb0c105);const _0xcc5dc8=_0x585b24['mapper']['toViewElement'](_0xb0c105);if(_0xcc5dc8&&_0xcc5dc8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x55660e['type']&&(_0x2df6f9['isBlock'](_0xb0c105)&&!_0x2df6f9['isLimit'](_0xb0c105)&&(_0xb0c105['nextSibling']||_0x540c50['isAtEnd']?_0x1d0918&&_0x1d0918['parent']==_0xb0c105||(_0x1d0918=_0xb0c105,_0x4344a5(_0x55660e['previousPosition']),_0xdb4341=!0x0):_0xbe7f6a=_0xbe7f6a||_0x55660e['previousPosition']));}function _0x4344a5(_0xefea40){const _0x5725bf=_0x585b24['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x56691e}),_0x17dc77=_0x585b24['mapper']['toViewPosition'](_0xefea40);_0x1ae3d9&&_0x58bb44['activeMarkers']['includes'](_0x57e1dc['markerName'])&&_0x585b24['writer']['addClass']('ck-suggestion-marker--active',_0x5725bf),_0x585b24['writer']['insert'](_0x17dc77,_0x5725bf),_0x585b24['mapper']['bindElementToMarker'](_0x5725bf,_0x57e1dc['markerName']);}_0x36e0fb||_0xdb4341||!_0xbe7f6a||_0x4344a5(_0xbe7f6a);};}class q extends _0x1a8994{static get['requires'](){return[_0x32186d];}['init'](){const _0xb8ab42=this['editor'],_0x4bdc12=_0xb8ab42['plugins']['get']('TrackChangesEditing');_0x4bdc12['enableCommand']('delete');const _0x57a1c6=_0xb8ab42['commands']['get']('deleteForward');_0x4bdc12['enableCommand']('deleteForward',(_0x5bd6e6,_0x3c4e01={})=>{const _0x317050=_0xb8ab42['model']['createSelection'](_0xb8ab42['model']['document']['selection']);_0x317050['isCollapsed']&&_0xb8ab42['model']['modifySelection'](_0x317050,{'direction':'forward','unit':_0x3c4e01['unit']});const _0x1a5849=_0x317050['getFirstRange'](),_0x2da99d=_0x1ccabf['fromRange'](_0x1a5849);let _0x517b39;_0x5bd6e6(_0x3c4e01),_0x517b39='$graveyard'==_0x2da99d['root']['rootName']?_0xb8ab42['model']['createRange'](_0x1a5849['start']):_0xb8ab42['model']['createRange'](_0x2da99d['start'],_0x2da99d['end']),_0x2da99d['detach'](),_0xb8ab42['model']['enqueueChange'](_0x57a1c6['buffer']['batch'],_0xda8c92=>{_0x57a1c6['buffer']['lock'](),_0xda8c92['setSelection'](_0xda8c92['createRange'](_0x517b39['end'])),_0x57a1c6['buffer']['unlock']();});}),_0xb8ab42['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0xb8ab42,'merge'),{'priority':'high'}),_0xb8ab42['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x18fcc1,_0x4ea21d,_0x139fb3)=>{_0x139fb3['options']['showSuggestionHighlights']&&_e(_0xb8ab42,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x18fcc1,_0x4ea21d,_0x139fb3);},{'priority':'high'}),_0xb8ab42['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1f642f,_0x9fb228,_0x5aefae)=>{const _0x366da4=_0x5aefae['mapper']['markerNameToElements'](_0x9fb228['markerName']);if(_0x366da4){for(const _0x4ae379 of _0x366da4)_0x4ae379['is']('uiElement')&&(_0x5aefae['mapper']['unbindElementFromMarkerName'](_0x4ae379,_0x9fb228['markerName']),_0x5aefae['writer']['remove'](_0x4ae379));}},{'priority':'high'});}}class z extends _0x1a8994{['afterInit'](){const _0x5e44d5=this['editor'];if(!_0x5e44d5['plugins']['has']('ListEditing'))return;const _0x2a97c0=_0x5e44d5['locale'],_0x2522fe=_0x5e44d5['plugins']['get']('TrackChangesEditing'),_0x413074=_0x5e44d5['plugins']['has']('TodoListEditing'),_0x3f87f2=!!_0x5e44d5['config']['get']('list.multiBlock');function _0x56e8f6(_0x25491b){return{'type':'format','content':''+o(_0x2a97c0,'*Set\x20format:*\x20%0',_0x25491b)};}function _0x4c8e4e(_0x5a9d0c){return{'type':'format','content':''+o(_0x2a97c0,'*Remove\x20format:*\x20%0',_0x5a9d0c)};}_0x2522fe['enableDefaultAttributesIntegration']('numberedList'),_0x2522fe['enableDefaultAttributesIntegration']('bulletedList'),_0x2522fe['enableDefaultAttributesIntegration']('customNumberedList'),_0x2522fe['enableDefaultAttributesIntegration']('customBulletedList'),_0x2522fe['enableDefaultAttributesIntegration']('indentList'),_0x2522fe['enableDefaultAttributesIntegration']('outdentList'),_0x2522fe['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2522fe['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2522fe['registerBlockAttribute']('listItemId'),_0x2522fe['registerBlockAttribute']('listType'),_0x2522fe['registerBlockAttribute']('listIndent'),_0x3f87f2&&(_0x2522fe['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2522fe['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x413074&&(_0x2522fe['enableDefaultAttributesIntegration']('todoList'),_0x2522fe['enableDefaultAttributesIntegration']('checkTodoList'),_0x2522fe['registerBlockAttribute']('todoListChecked'),_0x2522fe['descriptionFactory']['registerDescriptionCallback'](_0x8db9ba=>{const {data:_0x279f35}=_0x8db9ba;if(_0x279f35&&'todoListChecked'==_0x279f35['key'])return{'type':'format','content':_0x279f35['newValue']?o(_0x2a97c0,'*Check\x20item*'):o(_0x2a97c0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x258460=>{if(_0x258460['batch']['isUndo'])return!0x1;let _0xbaf2f=!0x1;const _0x30ce95=_0x2522fe['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xa11fe=>'todoListChecked'===_0x2522fe['_getAttributeKey'](_0xa11fe));for(const _0x297e0e of _0x30ce95){'todo'!=_0x297e0e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2522fe['_findSuggestions'](_0x297e0e['getFirstRange'](),'attribute')['find'](_0xc1f567=>'listType'===_0x2522fe['_getAttributeKey'](_0xc1f567['suggestion']))||(_0x258460['removeMarker'](_0x297e0e['getFirstMarker']()),_0xbaf2f=!0x0));}return _0xbaf2f;})),_0x2522fe['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2a97c0,'FORMAT_INDENT'));const _0x1f8395={'type':'format','content':''};_0x2522fe['descriptionFactory']['registerDescriptionCallback'](_0x46d9dd=>{const {data:_0x1ffa60}=_0x46d9dd;if(!_0x1ffa60||'listType'!=_0x1ffa60['key'])return;let _0x498f71=_0x46d9dd['head'];for(;_0x498f71;){if(_0x498f71['data']&&(('listStyle'==_0x498f71['data']['key']||'listMarkerStyle'==_0x498f71['data']['key'])&&(_0x498f71['data']['newValue']&&'default'!=_0x498f71['data']['newValue']||'default'!=_0x498f71['data']['oldValue']&&!_0x1ffa60['newValue'])||!_0x3f87f2&&_0x498f71['data']['key']==m))return _0x1f8395;_0x498f71=_0x498f71['next'];}if(null==_0x1ffa60['newValue'])switch(_0x1ffa60['oldValue']){case'bulleted':return _0x4c8e4e(o(_0x2a97c0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4c8e4e(o(_0x2a97c0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4c8e4e(o(_0x2a97c0,'ELEMENT_TODO_LIST'));}switch(_0x1ffa60['newValue']){case'bulleted':return _0x56e8f6(o(_0x2a97c0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x56e8f6(o(_0x2a97c0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x56e8f6(o(_0x2a97c0,'ELEMENT_TODO_LIST'));}}),_0x2522fe['descriptionFactory']['registerDescriptionCallback'](_0x50e92b=>{const {data:_0xc6ce28}=_0x50e92b;if(_0xc6ce28&&'listIndent'==_0xc6ce28['key'])return null==_0xc6ce28['newValue']||null==_0xc6ce28['oldValue']&&0x0==_0xc6ce28['newValue']?_0x1f8395:void 0x0;}),_0x2522fe['descriptionFactory']['registerDescriptionCallback'](_0xaf5fbc=>{if('attribute'!=_0xaf5fbc['type'])return;const {data:_0x47e8f5}=_0xaf5fbc;if(!_0x47e8f5||'listItemId'!=_0x47e8f5['key'])return;const _0x2dbbfc=le(_0xaf5fbc);return'newValue'==_0x2dbbfc?{'type':'format','content':o(_0x2a97c0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2dbbfc?{'type':'format','content':o(_0x2a97c0,'*Split:*\x20list\x20item')}:_0x1f8395;}),_0x5e44d5['model']['document']['registerPostFixer'](_0x536f6d=>this['listItemIdFixer'](_0x536f6d)),_0x5e44d5['model']['document']['registerPostFixer'](_0x29cfc3=>this['noTrackChangesFixer'](_0x29cfc3)),_0x5e44d5['model']['document']['registerPostFixer'](_0x374ec6=>this['assureChains'](_0x374ec6)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x17dd13){if(_0x17dd13['batch']['isUndo']||!_0x17dd13['batch']['isLocal'])return!0x1;let _0x30ac0f=!0x1;const _0x4f18a8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x25b5f6=>_0x25b5f6['data']&&'listItemId'==_0x25b5f6['data']['key'])['filter'](_0x4eea82=>_0x4eea82['data']['newValue']&&_0x4eea82['data']['oldValue']);for(const _0x1f80e7 of _0x4f18a8)le(_0x1f80e7)||(_0x17dd13['removeMarker'](_0x1f80e7['getFirstMarker']()),_0x30ac0f=!0x0);return _0x30ac0f;}['noTrackChangesFixer'](_0x1954a3){if(_0x1954a3['batch']['isUndo']||!_0x1954a3['batch']['isLocal'])return!0x1;const _0x3be5a6=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3be5a6['trackChangesCommand']['value'])return!0x1;let _0x4dc230=!0x1;const _0x5a771d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x551a8e=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x320f27=>'attribute'==_0x320f27['type'])['filter'](_0x4dbb1b=>_0x5a771d['includes'](_0x4dbb1b['attributeKey']));if(0x0==_0x551a8e['length'])return _0x4dc230;for(const _0x3dd770 of _0x551a8e){const _0x194965=_0x3be5a6['_findSuggestions'](_0x3dd770['range'],'attribute')['filter'](_0x5af77e=>!_0x5af77e['meta']['isNextTo'])['map'](_0x3b0f9b=>_0x3b0f9b['suggestion'])['filter'](_0x43488d=>{const _0x523148=_0x3be5a6['_getAttributeKey'](_0x43488d);return _0x5a771d['includes'](_0x523148);});if(_0x194965['length']){for(const _0x201114 of _0x194965)_0x1954a3['removeMarker'](_0x201114['getFirstMarker']());_0x4dc230=!0x0;}}return _0x4dc230;}['assureChains'](_0x409331){if(_0x409331['batch']['isUndo']||!_0x409331['batch']['isLocal'])return!0x1;const _0x73d4c9=this['editor']['plugins']['get']('TrackChangesEditing');let _0x3f4f82=!0x1;const _0x33c525=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x140c44 of _0x73d4c9['getSuggestions']({'skipNotAttached':!0x0})){const _0x3331d3=_0x73d4c9['_findSuggestions'](_0x140c44['getFirstRange'](),'attribute')['map'](_0x4293f3=>_0x4293f3['suggestion'])['filter'](_0x4c76a0=>_0x4c76a0['data']&&_0x33c525['includes'](_0x4c76a0['data']['key']));if(!_0x3331d3['length'])continue;const _0x560637=_0x3331d3[0x0]['head']['attributes']['groupId'];if(!_0x3331d3['every'](_0x4a6ee7=>_0x4a6ee7['attributes']['groupId']===_0x560637)){for(const _0x258201 of _0x3331d3)_0xc15a63(_0x258201,_0x560637)&&(_0x3f4f82=!0x0);}}return _0x3f4f82;function _0x5c8ece(_0x3230c1,_0x4e8dc2){for(const _0x777308 of _0x73d4c9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5869d5=>'attribute'==_0x5869d5['type']&&_0x5869d5['attributes']['groupId']==_0x3230c1))_0x777308['setAttribute']('groupId',_0x4e8dc2);}function _0xc15a63(_0x5dee58,_0x4f8f7c){let _0x5d51cb=_0x5dee58['head'],_0x5f26ee=!0x1;for(;_0x5d51cb;)_0x5d51cb['attributes']['groupId']!=_0x4f8f7c&&(_0x5c8ece(_0x5d51cb['attributes']['groupId'],_0x4f8f7c),_0x5d51cb['setAttribute']('groupId',_0x4f8f7c),_0x5f26ee=!0x0),_0x5d51cb=_0x5d51cb['next'];return _0x5f26ee;}}['_supportLegacySuggestions'](){const _0x45488e=this['editor'],_0x3b8f81=_0x45488e['locale'],_0x72347a=_0x45488e['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x72347a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x325293,_0x1db231){const _0x57ca66=[];for(let _0xce343e of _0x325293)_0xce343e['start']['nodeAfter']===_0xce343e['end']['parent']&&(_0xce343e=_0x45488e['model']['createRange'](_0x45488e['model']['createPositionAt'](_0xce343e['start']['nodeAfter'],0x0))),_0x57ca66['push'](_0xce343e);_0x45488e['model']['change'](_0x4ee9be=>{const _0x2d6fb3=_0x45488e['model']['document']['selection'],_0x386c2a=Array['from'](_0x2d6fb3['getRanges']())['map'](_0x55ddbd=>_0x1ccabf['fromRange'](_0x55ddbd));_0x4ee9be['setSelection'](_0x57ca66),_0x45488e['commands']['get'](_0x1db231['commandName'])['refresh'](),_0x1db231['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x45488e['execute'](_0x1db231['commandName'],..._0x1db231['commandParams']),_0x4ee9be['setSelection'](_0x386c2a);for(const _0x505602 of _0x386c2a)_0x505602['detach']();});}),_0x72347a['descriptionFactory']['registerElementLabel'](function(_0xba6ed8){const _0x114b9a=!_0x45488e['model']['schema']['isObject'](_0xba6ed8),_0x2258be=_0xba6ed8['previousSibling'],_0x40c46b=_0xba6ed8['nextSibling'],_0x56243d=_0xba6ed8['getAttribute']('listItemId'),_0x53f656=!_0x2258be||_0x2258be['getAttribute']('listItemId')!==_0x56243d,_0x575894=!_0x40c46b||_0x40c46b['getAttribute']('listItemId')!==_0x56243d;return _0x114b9a&&Boolean(_0x56243d)&&_0x53f656&&_0x575894;},_0x38921f=>o(_0x3b8f81,'ELEMENT_LIST_ITEM',_0x38921f));}['_registerLegacyDescription'](){const _0xa7380e=this['editor'],_0x3cb385=_0xa7380e['locale'];function _0x346b78(_0x331170){const _0x4024a9=_0xa7380e['commands']['get']('bulletedList')['value'],_0x5ca9ce=_0xa7380e['commands']['get']('numberedList')['value'];return'numberedList'===_0x331170?_0x4024a9:_0x5ca9ce;}_0xa7380e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x46fffc){if('formatBlock'!=_0x46fffc['type'])return;const {data:_0xce04f6}=_0x46fffc;if(!_0xce04f6)return;let _0x53e551,_0x9b85d4,_0x401a54,_0x5bdb2f;switch(_0xce04f6['commandName']){case'bulletedList':_0x401a54=_0xce04f6['commandParams'][0x0]['forceValue'],_0x5bdb2f=_0x346b78(_0xce04f6['commandName']),_0x53e551=_0x401a54?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5bdb2f&&_0xa7380e['config']['get']('list.multiBlock')||(_0x53e551='*Change\x20to:*\x20%0'),_0x9b85d4={'type':'format','content':o(_0x3cb385,_0x53e551,o(_0x3cb385,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x401a54=_0xce04f6['commandParams'][0x0]['forceValue'],_0x5bdb2f=_0x346b78(_0xce04f6['commandName']),_0x53e551=_0x401a54?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5bdb2f&&_0xa7380e['config']['get']('list.multiBlock')||(_0x53e551='*Change\x20to:*\x20%0'),_0x9b85d4={'type':'format','content':o(_0x3cb385,_0x53e551,o(_0x3cb385,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x53e551='*Indent:*\x20%0',_0x9b85d4={'type':'format','content':o(_0x3cb385,_0x53e551,o(_0x3cb385,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x53e551=function(_0x504b66){const _0x5b10d5=_0x504b66['getFirstRange']();let _0xfdcf61=_0x5b10d5['start']['nodeAfter'];for(;_0xfdcf61&&_0x5b10d5['containsItem'](_0xfdcf61);){if(_0xfdcf61['getAttribute']('listIndent')>0x0)return!0x1;_0xfdcf61=_0xfdcf61['nextSibling'];}return!0x0;}(_0x46fffc)?o(_0x3cb385,'*Format:*\x20remove\x20from\x20%0',o(_0x3cb385,function(_0x407f04){return'ELEMENT_'+_0x407f04['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x46fffc))):o(_0x3cb385,'*Outdent:*\x20%0',o(_0x3cb385,'ELEMENT_LIST_ITEM')),_0x9b85d4={'type':'format','content':_0x53e551};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xce04f6['multipleBlocks']&&(_0x53e551='*Merge:*\x20%0',_0x9b85d4={'type':'deletion','content':o(_0x3cb385,_0x53e551,o(_0x3cb385,'ELEMENT_LIST_ITEM'))});}return _0x9b85d4;});}}function le(_0x3ef796){let _0x3130d8=_0x3ef796['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3130d8;){const _0x2b6fe9=_0x3130d8['getAttribute']('listItemId');if(!_0x2b6fe9)return!0x1;if(_0x2b6fe9==_0x3ef796['data']['newValue'])return'newValue';if(_0x2b6fe9==_0x3ef796['data']['oldValue'])return'oldValue';_0x3130d8=_0x3130d8['previousSibling'];}return!0x1;}class ue extends _0x1a8994{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x20ffe4=this['editor']['config']['get']('list.properties'),_0x1e718f=this['editor']['plugins']['get']('TrackChangesEditing');_0x20ffe4['styles']&&(_0x1e718f['enableDefaultAttributesIntegration']('listStyle'),_0x1e718f['registerBlockAttribute']('listStyle')),_0x20ffe4['reversed']&&(_0x1e718f['enableDefaultAttributesIntegration']('listReversed'),_0x1e718f['registerBlockAttribute']('listReversed')),_0x20ffe4['startIndex']&&(_0x1e718f['enableDefaultAttributesIntegration']('listStart'),_0x1e718f['registerBlockAttribute']('listStart'));const _0x4e4a42={'type':'format','content':''};_0x1e718f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x38f172=this['editor']['locale'];_0x1e718f['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x38f172,'FORMAT_LIST_REVERSED')),_0x1e718f['descriptionFactory']['registerDescriptionCallback'](_0x20cb2e=>{const {data:_0x47d036}=_0x20cb2e;if(_0x47d036&&'listReversed'==_0x47d036['key'])return null==_0x47d036['newValue']||0x0==_0x47d036['newValue']&&null==_0x47d036['oldValue']?_0x4e4a42:void 0x0;}),_0x1e718f['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x38f172,'FORMAT_LIST_START')),_0x1e718f['descriptionFactory']['registerDescriptionCallback'](_0x2bd1f3=>{const {data:_0x583425}=_0x2bd1f3;if(_0x583425&&'listStart'==_0x583425['key'])return null==_0x583425['newValue']||0x1==_0x583425['newValue']&&null==_0x583425['oldValue']?_0x4e4a42:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xaf35df=>{if(_0xaf35df['batch']['isUndo'])return!0x1;let _0x4e459b=!0x1;const _0x501136=_0x1e718f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x139db6=>{const _0x36a13e=_0x1e718f['_getAttributeKey'](_0x139db6);return'listStart'==_0x36a13e||'listReversed'==_0x36a13e;});for(const _0x2f9d49 of _0x501136){const _0x1a7201=_0x2f9d49['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1a7201||'customNumbered'==_0x1a7201)continue;_0x1e718f['_findSuggestions'](_0x2f9d49['getFirstRange'](),'attribute')['find'](_0x129869=>'listType'==_0x1e718f['_getAttributeKey'](_0x129869['suggestion']))||(_0xaf35df['removeMarker'](_0x2f9d49['getFirstMarker']()),_0x4e459b=!0x0);}return _0x4e459b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1f7805){const _0x4af492=this['editor']['locale'],{data:_0x275692}=_0x1f7805,_0x2a5fb2={'type':'format','content':''};if(!_0x275692||'listStyle'!=_0x275692['key'])return;if(!_0x275692['oldValue'])return'default'==_0x275692['newValue']?_0x2a5fb2:{'type':'format','content':''+o(_0x4af492,'*Set\x20format:*\x20%0',o(_0x4af492,this['_getTranslationKeyForListStyle'](_0x275692['newValue'])))};if(!_0x275692['newValue']){if('default'==_0x275692['oldValue'])return _0x2a5fb2;let _0x4b046a=_0x1f7805['head'];for(;_0x4b046a;){if(_0x4b046a['data']&&'listType'==_0x4b046a['data']['key']&&_0x4b046a['data']['newValue'])return _0x2a5fb2;_0x4b046a=_0x4b046a['next'];}return{'type':'format','content':''+o(_0x4af492,'*Remove\x20format:*\x20%0',o(_0x4af492,this['_getTranslationKeyForListStyle'](_0x275692['oldValue'])))};}if('default'!=_0x275692['newValue'])return{'type':'format','content':''+o(_0x4af492,'*Set\x20format:*\x20%0',o(_0x4af492,this['_getTranslationKeyForListStyle'](_0x275692['newValue'])))};let _0x37f848=_0x1f7805['head'];for(;_0x37f848;){if(_0x37f848['data']&&'listType'==_0x37f848['data']['key']&&_0x37f848['data']['newValue']&&_0x37f848['data']['oldValue'])return _0x2a5fb2;_0x37f848=_0x37f848['next'];}return{'type':'format','content':o(_0x4af492,'*Set\x20format:*\x20%0',o(_0x4af492,'ELEMENT_'+_0x1f7805['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x50c0b5=this['editor'],_0x30c12c=_0x50c0b5['locale'];_0x50c0b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3707bd=>{if('formatBlock'!=_0x3707bd['type'])return;const {data:_0xfe4833}=_0x3707bd;if(!_0xfe4833)return;let _0xcc7a90,_0x1d77c1;switch(_0xfe4833['commandName']){case'listStyle':_0xcc7a90='*Change\x20to:*\x20%0',_0x1d77c1={'type':'format','content':o(_0x30c12c,_0xcc7a90,o(_0x30c12c,this['_getTranslationKeyForListStyle'](_0xfe4833['commandParams'][0x0]['type'])))};break;case'listReversed':_0xcc7a90=_0xfe4833['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1d77c1={'type':'format','content':o(_0x30c12c,_0xcc7a90)};break;case'listStart':_0xcc7a90='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1d77c1={'type':'format','content':o(_0x30c12c,_0xcc7a90,_0xfe4833['commandParams'][0x0]['startIndex'])};}return _0x1d77c1;});}['_getTranslationKeyForListStyle'](_0x504502){return'ELEMENT_'+function(_0x274211){if(pe['includes'](_0x274211))return'bulleted';if(ye['includes'](_0x274211))return'numbered';return null;}(_0x504502)['toUpperCase']()+'_LIST_'+_0x504502['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x1a8994{static get['requires'](){return[_0x253047];}['init'](){const _0x372a7f=this['editor'],_0x4e8646=_0x372a7f['plugins']['get']('TrackChangesEditing'),_0x56d707=_0x372a7f['commands']['get']('enter');_0x4e8646['enableCommand']('enter',()=>{_0x372a7f['model']['change'](_0x18c665=>{const _0x368607=_0x372a7f['model']['document']['selection'],_0x3a9fcb=_0x368607['getFirstPosition'](),_0x2d10aa=_0x1ccabf['fromRange'](_0x368607['getFirstRange']());if(_0x56d707['enterBlock'](_0x18c665)){const _0xb8e5a1=_0x372a7f['model']['createPositionAt'](_0x3a9fcb['parent']['nextSibling'],0x0),_0x5ffd7f=_0x18c665['createRange'](_0x3a9fcb,_0xb8e5a1);_0x4e8646['markInsertion'](_0x5ffd7f);}else _0x18c665['setSelection'](_0x18c665['createRange'](_0x2d10aa['end']));_0x2d10aa['detach'](),_0x56d707['fire']('afterExecute',{'writer':_0x18c665});});}),_0x372a7f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x372a7f,'split'),{'priority':'high'}),_0x372a7f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x133194,_0x5e741c,_0x50b8dd)=>{const _0x4e0ea1=_0x50b8dd['mapper']['markerNameToElements'](_0x5e741c['markerName']);if(_0x4e0ea1){for(const _0x510d95 of _0x4e0ea1)_0x510d95['hasClass']('ck-suggestion-marker-split')&&(_0x50b8dd['mapper']['unbindElementFromMarkerName'](_0x510d95,_0x5e741c['markerName']),_0x50b8dd['writer']['remove'](_0x510d95));}},{'priority':'high'}),_0x372a7f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5d6dfe,_0x317220,_0x3b7549)=>{_0x3b7549['options']['showSuggestionHighlights']&&_e(_0x372a7f,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5d6dfe,_0x317220,_0x3b7549);},{'priority':'high'});}}class J extends _0x1a8994{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xe43cc5=this['editor']['plugins']['get']('TrackChangesEditing');_0xe43cc5['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xe43cc5['enableCommand']('findNext'),_0xe43cc5['enableCommand']('findPrevious'),_0xe43cc5['enableCommand']('replace'),_0xe43cc5['enableCommand']('replaceAll');}['handleFindCommand'](_0x13bc91,_0xd07fa3,_0x5f186d={}){const _0x4d2216=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x13bc91(_0x1d18c0=>('string'==typeof _0xd07fa3?_0x4d2216['findByTextCallback'](_0xd07fa3,_0x5f186d):_0xd07fa3)(_0x1d18c0)['filter'](_0x5e81b3=>!0x1===this['_isInDeletionRange'](_0x5e81b3,_0x1d18c0['item'])),_0x5f186d);}['_isInDeletionRange'](_0xdd2a8b,_0x94cc21){const _0x521a59=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x94cc21,_0xdd2a8b['start']),this['editor']['model']['createPositionAt'](_0x94cc21,_0xdd2a8b['end']));for(const _0x453fa5 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x521a59['getIntersection'](_0x453fa5['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 _0x1a8994{['afterInit'](){const _0x39600c=this['editor']['locale'],_0x47a7af=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x481e49,commandName:_0x3ab70f}of ro)this['editor']['plugins']['has'](_0x481e49)&&(_0x47a7af['enableDefaultAttributesIntegration'](_0x3ab70f),_0x47a7af['registerInlineAttribute'](_0x3ab70f));_0x39600c['t'],_0x47a7af['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x39600c,'FORMAT_FONT_SIZE')),_0x47a7af['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x39600c,'FORMAT_FONT_FAMILY')),_0x47a7af['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x39600c,'FORMAT_FONT_COLOR')),_0x47a7af['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x39600c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x535dff=this['editor'],_0x2e95d4=_0x535dff['locale'];_0x535dff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb3474c=>{const _0x3e98b6=_0x2e95d4['t'];if('formatInline'!=_0xb3474c['type'])return;const {data:_0x4c8873}=_0xb3474c;if(null!=_0x4c8873){if('fontSize'==_0x4c8873['commandName']){const _0xf27a31=_0x4c8873['commandParams'][0x0]['value'];if(_0xf27a31){const _0x31597b=_0x3e98b6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x416b9a=>_0x416b9a['model']==_0xf27a31)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2e95d4,'*Set\x20font\x20size:*\x20%0',_0x31597b)};}return{'type':'format','content':o(_0x2e95d4,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4c8873['commandName']){const _0x28e0bb=_0x4c8873['commandParams'][0x0]['value'];return _0x28e0bb?{'type':'format','content':o(_0x2e95d4,'*Set\x20font\x20family:*\x20%0',_0x28e0bb)}:{'type':'format','content':o(_0x2e95d4,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4c8873['commandName']){const _0x125cbf=_0x4c8873['commandParams'][0x0]['value'];if(_0x125cbf){const _0x1576c7=_0x7a7b0(this['editor']['config']['get']('fontColor.colors'))['find'](_0x28d9b9=>_0x28d9b9['model']==_0x125cbf);let _0x349ecf=_0x125cbf,_0x48a3a7='';return _0x1576c7&&(_0x349ecf=_0x1576c7['label'],_0x48a3a7=_0x3e98b6(_0x349ecf)['toLowerCase']()),{'type':'format','content':o(_0x2e95d4,'*Set\x20font\x20color:*\x20%0',_0x48a3a7)['trim'](),'color':{'value':_0x125cbf,'title':_0x48a3a7||_0x349ecf}};}return{'type':'format','content':o(_0x2e95d4,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4c8873['commandName']){const _0x352f78=_0x4c8873['commandParams'][0x0]['value'];if(_0x352f78){const _0x6f5ee6=_0x7a7b0(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x6476e9=>_0x6476e9['model']==_0x352f78);let _0x41b683=_0x352f78,_0x3e70e9='';return _0x6f5ee6&&(_0x41b683=_0x6f5ee6['label'],_0x3e70e9=_0x3e98b6(_0x41b683)['toLowerCase']()),{'type':'format','content':o(_0x2e95d4,'*Set\x20font\x20background\x20color:*\x20%0',_0x3e70e9)['trim'](),'color':{'value':_0x352f78,'title':_0x3e70e9||_0x41b683}};}return{'type':'format','content':o(_0x2e95d4,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x1a8994{['afterInit'](){const _0x15e1c8=this['editor'],_0x3f28b0=_0x15e1c8['plugins']['get']('TrackChangesEditing'),_0x520a23=_0x15e1c8['commands']['get']('copyFormat'),_0xbfd430=_0x15e1c8['commands']['get']('pasteFormat');_0x520a23&&_0xbfd430&&(_0x3f28b0['enableDefaultAttributesIntegration']('pasteFormat'),_0x3f28b0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x26c0cb=this['editor'],_0x10b86e=_0x26c0cb['locale'];_0x26c0cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x400de7=>{if('formatBlock'!=_0x400de7['type']&&'formatInline'!=_0x400de7['type'])return;const {data:_0x5dd481}=_0x400de7;if(_0x5dd481&&'pasteFormat'===_0x5dd481['commandName']){const _0xbbcd49=[],_0x13896b=_0x5dd481['commandParams'][0x0];for(const [_0x25ddd4,_0x506309]of Object['entries'](_0x13896b))_0xbbcd49['push'](so(_0x26c0cb,_0x25ddd4,_0x506309));return _0xbbcd49['length']?{'type':'format','content':o(_0x10b86e,'*Set\x20format\x20to:*\x20%0',_0xbbcd49['join'](',\x20'))}:{'type':'format','content':o(_0x10b86e,'*Remove\x20all\x20formatting*')};}});}}function so(_0x53c185,_0xdf210d,_0x59fc4b){const _0x55f268=_0x53c185['locale']['t'],_0x3758c0=_0xdf210d['split'](/(?=[A-Z])/)['join']('\x20'),_0x53a404=_0x55f268(_0x3758c0['charAt'](0x0)['toUpperCase']()+_0x3758c0['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x59fc4b)return _0x53a404;if('fontColor'===_0xdf210d||'fontBackgroundColor'===_0xdf210d){const _0xf7fa50=_0x7a7b0(_0x53c185['config']['get']('fontColor.colors'))['find'](_0x20dc5b=>_0x20dc5b['model']==_0x59fc4b);return _0x53a404+'\x20('+(_0xf7fa50?_0x55f268(_0xf7fa50['label'])['toLowerCase']():_0x59fc4b)+')';}if('fontSize'===_0xdf210d&&isNaN(parseFloat(_0x59fc4b))){const _0x5b3895=_0x53c185['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x53c185['config']['get']('fontSize.options'))['find'](_0x4a94cf=>_0x4a94cf['model']==_0x59fc4b);return _0x53a404+'\x20('+(_0x5b3895?_0x55f268(_0x5b3895['title'])['toLowerCase']():_0x59fc4b)+')';}return _0x53a404+'\x20('+_0x59fc4b+')';}class Y extends _0x1a8994{['_headingOptions'];['afterInit'](){const _0x4ee1d0=this['editor'];if(!_0x4ee1d0['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4ee1d0['config']['get']('heading.options');const _0x4f020a=_0x4ee1d0['locale'],_0x181d46=_0x4ee1d0['plugins']['get']('TrackChangesEditing');_0x181d46['enableDefaultAttributesIntegration']('heading');for(const _0xca9df0 of this['_headingOptions'])'paragraph'!=_0xca9df0['model']&&_0x181d46['descriptionFactory']['registerElementLabel'](_0xca9df0['model'],_0xcfbd78=>{const _0x11b57c=this['_getHeadingLevel'](_0xca9df0['model']);return null!==_0x11b57c?_0x3d38f8(_0xcfbd78,_0x11b57c):_0x568881(_0xcfbd78,_0xca9df0['title']);});function _0x3d38f8(_0x1a2793,_0x3cd557){return o(_0x4f020a,'ELEMENT_HEADING',[_0x1a2793,_0x3cd557]);}function _0x568881(_0x1d674a,_0x42b6d6){return o(_0x4f020a,'ELEMENT_HEADING_CUSTOM',[_0x1d674a,_0x42b6d6]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d903b=this['editor'],_0x5835c7=_0x1d903b['locale'];function _0x395865(_0x4a50c2,_0x224a7d){return o(_0x5835c7,'ELEMENT_HEADING_CUSTOM',[_0x4a50c2,_0x224a7d]);}_0x1d903b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x130882=>{if('formatBlock'!=_0x130882['type'])return;const {data:_0x359d8c}=_0x130882;if(_0x359d8c&&'heading'==_0x359d8c['commandName']){const _0x8999f4=_0x359d8c['commandParams'][0x0]['value'],_0xd51de8=this['_getHeadingLevel'](_0x8999f4);if(null!==_0xd51de8)return{'type':'format','content':o(_0x5835c7,'*Change\x20to:*\x20%0',(_0xe75ee5=0x1,_0x31d46c=_0xd51de8,o(_0x5835c7,'ELEMENT_HEADING',[_0xe75ee5,_0x31d46c])))};const _0x3a7f9c=this['_headingOptions']['find'](_0x67e2e1=>_0x67e2e1['model']===_0x8999f4)['title'];return{'type':'format','content':o(_0x5835c7,'*Change\x20to:*\x20%0',_0x395865(0x1,_0x3a7f9c))};}var _0xe75ee5,_0x31d46c;});}['_getHeadingLevel'](_0x10b688){const _0x7bab39=_0x10b688['match'](/^heading(\d+)/);if(_0x7bab39)return _0x7bab39[0x1];const _0x20734a=this['_headingOptions']?.['find'](_0x57b1cd=>_0x57b1cd['model']==_0x10b688);if(_0x20734a&&_0x20734a['view']){const _0x33e9ae=_0x20734a['view'],_0x5a9b5b=(_0x33e9ae['name']??_0x33e9ae)['match'](/^h(\d+)/);if(_0x5a9b5b)return _0x5a9b5b[0x1];}return null;}}class Z extends _0x1a8994{['afterInit'](){const _0x391066=this['editor'];if(!_0x391066['plugins']['has']('HighlightEditing'))return;const _0x3400d1=_0x391066['plugins']['get']('TrackChangesEditing'),_0x223ab5=_0x391066['locale'];_0x3400d1['enableDefaultAttributesIntegration']('highlight'),_0x3400d1['registerInlineAttribute']('highlight'),_0x3400d1['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x223ab5,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1045eb=this['editor'],_0x4c190e=_0x1045eb['locale'];_0x1045eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x538283=>{if('formatInline'!=_0x538283['type'])return;const {data:_0x33b437}=_0x538283;if(_0x33b437&&'highlight'==_0x33b437['commandName']){const _0x5d3696=_0x4c190e['t'],_0x200620=_0x33b437['commandParams'][0x0]['value'];if(_0x200620){const _0x5ca0dc=_0x1045eb['config']['get']('highlight.options')['find'](_0x31de0a=>_0x31de0a['model']==_0x200620),_0x450cf0=_0x5d3696(_0x5ca0dc['title'])['toLowerCase']();return{'type':'format','content':o(_0x4c190e,'*Set\x20highlight:*\x20%0',_0x450cf0),'color':{'value':_0x5ca0dc['color'],'title':_0x5ca0dc['title']}};}return{'type':'format','content':o(_0x4c190e,'*Remove\x20highlight*',o(_0x4c190e,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x1a8994{['afterInit'](){const _0x1b21e9=this['editor'];if(!_0x1b21e9['plugins']['has']('HorizontalLineEditing'))return;_0x1b21e9['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x319142=_0x1b21e9['plugins']['get']('TrackChangesEditing'),_0x476e2f=_0x1b21e9['locale'];_0x319142['descriptionFactory']['registerElementLabel']('horizontalLine',_0x100a8e=>o(_0x476e2f,'ELEMENT_HORIZONTAL_LINE',_0x100a8e)),_0x1b21e9['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2ef925,{writer:_0x296b2a,options:_0x305665})=>{if(!_0x305665['showSuggestionHighlights'])return null;const _0x5cde7d=_0x296b2a['createContainerElement']('div'),_0x3d435d=_0x296b2a['createEmptyElement']('hr');return _0x296b2a['addClass']('ck-horizontal-line',_0x5cde7d),_0x296b2a['insert'](_0x296b2a['createPositionAt'](_0x5cde7d,0x0),_0x3d435d),_0x5cde7d;},'converterPriority':'high'});}}class et extends _0x1a8994{['afterInit'](){const _0x5545c6=this['editor'];if(!_0x5545c6['plugins']['has']('HtmlEmbed'))return;const _0x317375=_0x5545c6['plugins']['get']('TrackChangesEditing'),_0x343fda=_0x5545c6['locale'];_0x317375['descriptionFactory']['registerElementLabel']('rawHtml',_0x525ba7=>o(_0x343fda,'ELEMENT_HTML_EMBED',_0x525ba7)),_0x317375['enableDefaultAttributesIntegration']('htmlEmbed'),_0x317375['registerBlockAttribute']('value'),_0x317375['descriptionFactory']['registerDescriptionCallback'](_0x12075c=>{if('attribute'!=_0x12075c['type'])return;const {data:_0x470613}=_0x12075c;if(_0x470613&&'value'==_0x470613['key']&&_0x12075c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2adf6e=o(_0x343fda,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x343fda,'*Change\x20%0\x20content*',_0x2adf6e)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46a1b3=this['editor'],_0x4c80d6=_0x46a1b3['locale'];_0x46a1b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f6892=>{if('formatBlock'!=_0x3f6892['type'])return;const {data:_0x515fc1}=_0x3f6892;if(_0x515fc1&&'htmlEmbed'==_0x515fc1['commandName']){const _0x1a2234=o(_0x4c80d6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4c80d6,'*Change\x20%0\x20content*',_0x1a2234)};}});}}class it extends _0x1a8994{['afterInit'](){const _0x16ff1b=this['editor'];if(!_0x16ff1b['plugins']['has']('ImageEditing'))return;const _0x1d667d=_0x16ff1b['plugins']['get']('TrackChangesEditing'),_0x25251c=_0x16ff1b['plugins']['get']('ImageUtils'),_0x1c88c0=_0x16ff1b['locale'];_0x1d667d['enableCommand']('insertImage'),_0x1d667d['descriptionFactory']['registerElementLabel']('imageBlock',_0x4bf792=>o(_0x1c88c0,'ELEMENT_IMAGE',_0x4bf792)),_0x1d667d['descriptionFactory']['registerElementLabel']('imageInline',_0xc7ca55=>o(_0x1c88c0,'ELEMENT_INLINE_IMAGE',_0xc7ca55)),_0x1d667d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1c88c0,'ELEMENT_CAPTION')),_0x16ff1b['plugins']['has']('ImageUploadEditing')&&_0x1d667d['enableCommand']('uploadImage'),_0x16ff1b['plugins']['has']('ImageBlockEditing')&&_0x16ff1b['plugins']['has']('ImageInlineEditing')&&(_0x1d667d['enableCommand']('imageTypeInline',(_0x3cc40,_0x4882aa)=>{const _0x11c66e=_0x25251c['getClosestSelectedImageElement'](_0x16ff1b['model']['document']['selection']);_0x16ff1b['model']['change'](()=>{_0x1d667d['markBlockFormat'](_0x11c66e,{'commandName':'imageTypeInline','commandParams':[_0x4882aa]},[],'convertBlockImageToInline');});}),_0x1d667d['enableCommand']('imageTypeBlock',(_0x5d75fd,_0x543876)=>{_0x16ff1b['model']['change'](_0x3281c6=>{let _0x495d50=_0x25251c['getClosestSelectedImageElement'](_0x16ff1b['model']['document']['selection']),_0x20e706=_0x3281c6['createRangeOn'](_0x495d50);const _0x415c8d=_0x38cdb5['fromPosition'](_0x20e706['start'],'toPrevious'),_0x1dc8d3=_0x38cdb5['fromPosition'](_0x20e706['end'],'toNext');_0x1d667d['forceDefaultExecution'](()=>_0x5d75fd(_0x543876)),_0x495d50=_0x25251c['getClosestSelectedImageElement'](_0x16ff1b['model']['document']['selection']),_0x20e706=_0x3281c6['createRangeOn'](_0x495d50);const _0x379852=_0x3281c6['createRange'](_0x415c8d,_0x1dc8d3);_0x415c8d['detach'](),_0x1dc8d3['detach'](),_0x1d667d['markBlockFormat'](_0x495d50,{'commandName':'imageTypeInline','commandParams':[_0x543876]},[],'convertInlineImageToBlock'),_0x379852['start']['isBefore'](_0x20e706['start'])&&_0x1d667d['markInsertion'](_0x3281c6['createRange'](_0x379852['start'],_0x20e706['start']),'convertInlineImageToBlock'),_0x20e706['end']['isBefore'](_0x379852['end'])&&_0x1d667d['markInsertion'](_0x3281c6['createRange'](_0x20e706['end'],_0x379852['end']),'convertInlineImageToBlock');});}),_0x1d667d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1d667d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1d667d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1d667d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1d667d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1d667d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x733b6f])=>{const _0xede9ec=_0x1d667d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1ff51b=_0x733b6f['start'],_0xda18c7=_0x733b6f['end'];const _0x54990e=_0x16ff1b['model']['schema']['getNearestSelectionRange'](_0x1ff51b,'backward'),_0x42978c=_0x16ff1b['model']['schema']['getNearestSelectionRange'](_0xda18c7,'forward');_0x54990e['isCollapsed']&&(_0x1ff51b=_0x54990e['start']),_0x42978c['isCollapsed']&&(_0xda18c7=_0x42978c['end']),_0xede9ec([_0x16ff1b['model']['createRange'](_0x1ff51b,_0xda18c7)]);}),_0x1d667d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x6edea0),_0x1d667d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x6edea0)),_0x16ff1b['plugins']['has']('ImageCaptionEditing')&&(_0x1d667d['enableCommand']('toggleImageCaption',(_0x17b968,_0x5f589c)=>{const _0x44becf=_0x16ff1b['plugins']['get']('ImageCaptionUtils');let _0xa484a0=_0x25251c['getClosestSelectedImageElement'](_0x16ff1b['model']['document']['selection']),_0x4707a4=_0x44becf['getCaptionFromImageModelElement'](_0xa484a0);_0x16ff1b['model']['change'](()=>{if(_0x4707a4)return void _0x1d667d['markDeletion'](_0x16ff1b['model']['createRangeOn'](_0x4707a4));const _0x35a4d7=_0x25251c['isBlockImage'](_0xa484a0);_0x17b968(_0x5f589c),_0xa484a0=_0x25251c['getClosestSelectedImageElement'](_0x16ff1b['model']['document']['selection']),_0x4707a4=_0x44becf['getCaptionFromImageModelElement'](_0xa484a0),_0x1d667d['markInsertion'](_0x16ff1b['model']['createRangeOn'](_0x4707a4),_0x35a4d7?null:'imageCaption');});}),_0x1d667d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x6edea0));const _0x15cd3e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x17f83d(_0x51440f,_0x12709a){const _0x3ac0ea=_0x15cd3e['findIndex'](({type:_0x3c03e0,subType:_0x23400a})=>_0x51440f['type']==_0x3c03e0&&_0x51440f['subType']==_0x23400a),_0x35b429=_0x15cd3e['findIndex'](({type:_0x2e5cce,subType:_0x22fbf9})=>_0x12709a['type']==_0x2e5cce&&_0x12709a['subType']==_0x22fbf9);if(_0x3ac0ea<0x0||_0x35b429<0x0)return!0x1;const _0x28300f=_0x51440f['getFirstRange'](),_0x4cc097=_0x12709a['getFirstRange']();if((0x0==_0x3ac0ea||0x1==_0x3ac0ea)&&0x2==_0x35b429&&_0x28300f['isIntersecting'](_0x4cc097))return!0x0;if(0x2==_0x3ac0ea&&0x3==_0x35b429){const _0x59312d=_0x1d667d['_findSuggestions'](_0x28300f,'insertion')['filter'](({suggestion:_0x567d50,meta:_0x42dd97})=>_0x42dd97['isOwn']&&'convertInlineImageToBlock'==_0x567d50['subType']);if(_0x59312d['length']>0x1&&_0x4cc097['end']['isEqual'](_0x28300f['start']))return!0x0;if(0x1==_0x59312d['length']&&(_0x28300f['start']['isEqual'](_0x4cc097['end'])||_0x28300f['end']['isEqual'](_0x4cc097['start'])))return!0x0;}if(0x3==_0x3ac0ea&&0x3==_0x35b429&&_0x28300f['start']['isBefore'](_0x4cc097['start'])){const _0x1848d5=_0x28300f['end']['nodeAfter'],_0x338359=_0x4cc097['start']['nodeBefore'];return _0x25251c['isBlockImage'](_0x1848d5)&&_0x1848d5===_0x338359;}return!0x1;}function _0x6edea0(_0x2225b1,_0x5a29a1){return _0x17f83d(_0x2225b1,_0x5a29a1)?[_0x2225b1,_0x5a29a1]:_0x17f83d(_0x5a29a1,_0x2225b1)?[_0x5a29a1,_0x2225b1]:null;}_0x16ff1b['plugins']['has']('ImageResize')&&(_0x1d667d['enableDefaultAttributesIntegration']('resizeImage'),_0x1d667d['registerBlockAttribute']('resizedWidth'),_0x1d667d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1c88c0,'FORMAT_IMAGE_SIZE'))),_0x16ff1b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1d667d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1d667d['registerBlockAttribute']('alt')),_0x1d667d['descriptionFactory']['registerDescriptionCallback'](_0x36492e=>{if(!!_0x15cd3e['find'](({type:_0x3f4990,subType:_0x2b47df})=>_0x36492e['type']==_0x3f4990&&_0x36492e['subType']==_0x2b47df))return _0x36492e['previous']?{}:void 0x0;}),_0x1d667d['descriptionFactory']['registerDescriptionCallback'](_0xcc6239=>{if('insertion'==_0xcc6239['type']||'deletion'==_0xcc6239['type']){const _0x3057c9=_0xcc6239['getContainedElement']();if(_0x3057c9&&_0x3057c9['is']('element','caption'))return{'type':'insertion'==_0xcc6239['type']?'addObject':'removeObject','element':_0x3057c9,'quantity':0x1};}}),_0x1d667d['descriptionFactory']['registerDescriptionCallback'](_0x3bbe90=>'formatBlock'==_0x3bbe90['type']&&'convertInlineImageToBlock'==_0x3bbe90['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3bbe90['type']&&'convertBlockImageToInline'==_0x3bbe90['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1d667d['descriptionFactory']['registerDescriptionCallback'](_0x2d2511=>{if('attribute'!=_0x2d2511['type'])return;const {data:_0x807ab2}=_0x2d2511;if(!_0x807ab2||'alt'!=_0x807ab2['key'])return;const _0x548fc4=_0x807ab2['newValue'];return _0x548fc4?{'type':'format','content':o(_0x1c88c0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x548fc4+'\x22')}:{'type':'format','content':o(_0x1c88c0,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bbd24=this['editor'],_0x1f0b43=_0x1bbd24['locale'];_0x1bbd24['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27ea0a=>{if('formatBlock'!=_0x27ea0a['type']&&'formatInline'!=_0x27ea0a['type'])return;const {data:_0x5b7996}=_0x27ea0a;if(_0x5b7996){if('imageTextAlternative'==_0x5b7996['commandName']){const _0x3546c7=_0x5b7996['commandParams'][0x0]['newValue'];return _0x3546c7?{'type':'format','content':o(_0x1f0b43,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3546c7+'\x22')}:{'type':'format','content':o(_0x1f0b43,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5b7996['commandName']){const _0xad60=_0x5b7996['commandParams'][0x0]['width'];return _0xad60?{'type':'format','content':o(_0x1f0b43,'*Set\x20image\x20width:*\x20%0',_0xad60)}:{'type':'format','content':o(_0x1f0b43,'*Reset\x20image\x20width*')};}}});}}class st extends _0x1a8994{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2bfd88=this['editor']['locale'],_0x2a3159=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a3159['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2a3159['registerBlockAttribute']('src'),_0x2a3159['descriptionFactory']['registerDescriptionCallback'](_0x710b30=>{if('attribute'!=_0x710b30['type'])return;const {data:_0x22ebbe}=_0x710b30;return _0x22ebbe&&'src'==_0x22ebbe['key']?_0x22ebbe['newValue']&&_0x22ebbe['oldValue']?{'type':'format','content':o(_0x2bfd88,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x475b01=this['editor']['plugins']['get']('TrackChangesEditing');_0x475b01['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x475b01['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x475b01['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x475b01['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x389cc7=this['editor'],_0x51c776=_0x389cc7['locale'];_0x389cc7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35421c=>{if('formatBlock'!=_0x35421c['type']&&'formatInline'!=_0x35421c['type'])return;const {data:_0x540e75}=_0x35421c;if(!_0x540e75||'replaceImageSource'!=_0x540e75['commandName'])return;return{'type':'format','content':o(_0x51c776,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x1a8994{['afterInit'](){const _0x24ed06=this['editor'];if(!_0x24ed06['plugins']['has']('ImageStyleEditing'))return;const _0x5db053=_0x24ed06['plugins']['get']('TrackChangesEditing'),_0x4efd52=_0x24ed06['plugins']['get']('ImageUtils'),_0x3398de={};_0x5db053['enableCommand']('imageStyle',(_0x1030aa,_0x4b104d)=>{const _0x2bfba8=_0x24ed06['plugins']['get']('Users')['me'],_0x1c3bd1=_0x24ed06['commands']['get']('imageStyle');let _0x2607da=_0x4efd52['getClosestSelectedImageElement'](_0x24ed06['model']['document']['selection']),_0x38262b=_0x24ed06['model']['createRangeOn'](_0x2607da),_0x5e7c3a=_0x1c3bd1['value'];if(_0x5e7c3a==_0x4b104d['value'])return;const _0x4f8380={'commandName':'imageStyle','commandParams':[_0x4b104d],'formatGroupId':_0x16a8ea()};_0x24ed06['model']['change'](()=>{if(_0x5db053['getSuggestions']()['filter'](_0x24d69a=>_0x24d69a['isInContent']&&_0x2bfba8==_0x24d69a['author']&&('formatBlock'==_0x24d69a['type']||'formatInline'==_0x24d69a['type'])&&('imageStylePreApply'==_0x24d69a['subType']||'imageStylePostApply'==_0x24d69a['subType'])&&_0x24d69a['getFirstRange']()['isEqual'](_0x38262b))['forEach'](_0x5b97cf=>_0x5db053['discardSuggestion'](_0x5b97cf['head'])),_0x2607da=_0x4efd52['getClosestSelectedImageElement'](_0x24ed06['model']['document']['selection']),_0x38262b=_0x24ed06['model']['createRangeOn'](_0x2607da),_0x1c3bd1['refresh'](),_0x24ed06['commands']['get']('imageTypeInline')['refresh'](),_0x24ed06['commands']['get']('imageTypeBlock')['refresh'](),_0x5e7c3a=_0x1c3bd1['value'],_0x5e7c3a!=_0x4b104d['value'])return _0x4efd52['isInlineImage'](_0x2607da)&&_0x1c3bd1['shouldConvertImageType'](_0x4b104d['value'],_0x2607da)?(_0x1030aa({..._0x4b104d,'setImageSizes':!0x1}),_0x2607da=_0x4efd52['getClosestSelectedImageElement'](_0x24ed06['model']['document']['selection']),void _0x5db053['markBlockFormat'](_0x2607da,{..._0x4f8380,'commandReversedParams':[{'value':_0x5e7c3a||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4efd52['isBlockImage'](_0x2607da)?_0x5db053['markBlockFormat'](_0x2607da,_0x4f8380,[],'imageStylePostApply'):_0x5db053['markInlineFormat'](_0x38262b,_0x4f8380,'imageStylePostApply'));});});for(const _0x1d3a7e of _0x24ed06['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3398de[_0x1d3a7e['name']]=_0x1d3a7e['title']['toLowerCase']();_0x5db053['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5db053['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5db053['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5db053['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x7bf1f8])=>{_0x4efd52['setImageNaturalSizeAttributes'](_0x7bf1f8['getContainedElement']());}),_0x5db053['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4c6b03,_0x1ac5eb)=>{_0x5db053['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4c6b03,{'commandName':_0x1ac5eb['commandName'],'commandParams':_0x1ac5eb['commandReversedParams']});}),_0x5db053['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1220a3,_0x3ccb7c){if(_0x3e793f(_0x1220a3,_0x3ccb7c))return[_0x1220a3,_0x3ccb7c];if(_0x3e793f(_0x3ccb7c,_0x1220a3))return[_0x3ccb7c,_0x1220a3];return null;});const _0x4bfe20=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3e793f(_0xf004d6,_0x33e2da){const _0xa0480f=_0x4bfe20['findIndex'](({type:_0x55390e,subType:_0x52fff4})=>_0xf004d6['type']==_0x55390e&&_0xf004d6['subType']==_0x52fff4),_0x152ccc=_0x4bfe20['findIndex'](({type:_0x495a97,subType:_0x333d58})=>_0x33e2da['type']==_0x495a97&&_0x33e2da['subType']==_0x333d58);if(_0xa0480f<0x0||_0x152ccc<0x0)return!0x1;const _0x1f7d18=_0xf004d6['getFirstRange'](),_0x270f4f=_0x33e2da['getFirstRange']();if((0x0==_0xa0480f||0x1==_0xa0480f)&&0x2==_0x152ccc&&_0x1f7d18['isIntersecting'](_0x270f4f))return!0x0;if(0x2==_0xa0480f&&0x3==_0x152ccc){const _0xb4f737=_0x5db053['_findSuggestions'](_0x1f7d18,'insertion')['filter'](({suggestion:_0x3b2592,meta:_0x5874d0})=>_0x5874d0['isOwn']&&'convertInlineImageToBlock'==_0x3b2592['subType']);if(_0xb4f737['length']>0x1&&_0x270f4f['end']['isEqual'](_0x1f7d18['start']))return!0x0;if(0x1==_0xb4f737['length']&&(_0x1f7d18['start']['isEqual'](_0x270f4f['end'])||_0x1f7d18['end']['isEqual'](_0x270f4f['start'])))return!0x0;}if(0x3==_0xa0480f&&0x3==_0x152ccc&&_0x1f7d18['start']['isBefore'](_0x270f4f['start'])){const _0x112117=_0x1f7d18['end']['nodeAfter'],_0x34dd29=_0x270f4f['start']['nodeBefore'];return _0x4efd52['isBlockImage'](_0x112117)&&_0x112117===_0x34dd29;}return!0x1;}_0x24ed06['model']['document']['registerPostFixer'](()=>{let _0x853a9e=!0x1;const _0xe6261b=Array['from'](_0x24ed06['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x17175c,data:_0x37d30d}of _0xe6261b){const {group:_0x181969,type:_0x288a76,subType:_0x5cea7a,id:_0x4418b3}=_0x5db053['_splitMarkerName'](_0x17175c);if('suggestion'==_0x181969&&_0x5db053['hasSuggestion'](_0x4418b3)){if('formatBlock'==_0x288a76&&('imageStylePreApply'==_0x5cea7a||'imageStylePostApply'==_0x5cea7a)){const _0x485f68=_0x5db053['getSuggestion'](_0x4418b3);if(_0x37d30d['newRange']){const _0x14594c=_0x485f68['getFirstRange']()['getContainedElement']();if(_0x4efd52['isBlockImage'](_0x14594c))continue;_0x5db053['discardSuggestion'](_0x485f68),_0x853a9e=!0x0;}}if('insertion'==_0x288a76&&'imageCaption'==_0x5cea7a&&!_0x37d30d['newRange']){const _0x4a5669=_0x5db053['getSuggestion'](_0x4418b3);_0x4a5669['next']&&_0x4a5669['next']['isInContent']&&(_0x5db053['discardSuggestion'](_0x4a5669['next']),_0x853a9e=!0x0);}}}return _0x853a9e;}),this['_registerLegacyDescription'](_0x3398de);}['_registerLegacyDescription'](_0x157a3c){const _0x33056d=this['editor'],_0x4abe99=_0x33056d['locale'];_0x33056d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1aa652=>{if('formatBlock'!=_0x1aa652['type']&&'formatInline'!=_0x1aa652['type'])return;const {data:_0x1a8539}=_0x1aa652;if(!_0x1a8539||'imageStyle'!=_0x1a8539['commandName'])return;const _0x58f30b=_0x1a8539['commandParams'][0x0]['value'];return _0x4e54a8('side'===_0x58f30b?o(_0x4abe99,'FORMAT_SIDE_IMAGE'):_0x157a3c[_0x58f30b]||_0x58f30b);function _0x4e54a8(_0x3d5f82){return{'type':'format','content':o(_0x4abe99,'*Format:*\x20%0',_0x3d5f82)};}});}}class ot extends _0x1a8994{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5af9d6){super(_0x5af9d6),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x56c1cf=this['editor'],_0x4c47f1=_0x56c1cf['commands']['get']('importWord'),_0x4b8eac=_0x56c1cf['commands']['get']('trackChanges');_0x4c47f1&&(_0x4c47f1['on']('execute',(_0x57a5cd,[,_0x1720d1])=>{this['_trackChangesValueDuringImport']=_0x4b8eac['value'],_0x1720d1['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4c47f1,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4c47f1,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4b8eac['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x56c1cf['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x491e6d,_0x1cd5b4){const {suggestions:_0x44e569}=_0x1cd5b4,_0x554db1=this['editor']['commands']['get']('trackChanges'),_0x1e27c1=_0x554db1['value'];this['_trackChangesValueDuringImport']!==_0x1e27c1&&(_0x554db1['execute'](),this['_trackChangesExecuted']=!0x0),_0x44e569&&_0x44e569['forEach'](({id:_0xf60552,type:_0x2e39f7,author:_0x4bb597,created_at:_0x510114})=>{const _0x5246ba={'id':_0xf60552,'type':_0x2e39f7,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4bb597,'createdAt':_0x510114?new Date(_0x510114):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5246ba);});}}class rt extends _0x1a8994{['afterInit'](){const _0x198a2a=this['editor'],_0x3baa28=_0x198a2a['plugins']['get']('TrackChangesEditing');if(_0x198a2a['plugins']['has']('IndentEditing')&&(_0x3baa28['enableCommand']('indent'),_0x3baa28['enableCommand']('outdent')),_0x198a2a['plugins']['has']('IndentBlock')){for(const _0x2bb0bf of['indentBlock','outdentBlock'])_0x3baa28['enableDefaultAttributesIntegration'](_0x2bb0bf);}const _0x111c5c=_0x198a2a['locale'];_0x3baa28['registerBlockAttribute']('blockIndent'),_0x3baa28['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x111c5c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x359868=this['editor'],_0x1e7e7b=_0x359868['locale'],_0x471500=_0x359868['plugins']['get']('TrackChangesEditing');_0x471500['descriptionFactory']['registerDescriptionCallback'](_0x1f5bf1=>{if('formatBlock'!=_0x1f5bf1['type'])return;const {data:_0x297dc4}=_0x1f5bf1;if(!_0x297dc4)return;if('indentBlock'!=_0x297dc4['commandName']&&'outdentBlock'!=_0x297dc4['commandName'])return;const _0xb5dd77=_0x1f5bf1['getItems']()[0x0],_0x2e22a4=_0x471500['descriptionFactory']['getItemLabel'](_0xb5dd77);return'indentBlock'==_0x297dc4['commandName']?{'type':'format','content':o(_0x1e7e7b,'*Indent:*\x20%0',_0x2e22a4)}:'outdentBlock'==_0x297dc4['commandName']?{'type':'format','content':o(_0x1e7e7b,'*Outdent:*\x20%0',_0x2e22a4)}:void 0x0;});}}class at extends _0x1a8994{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x1a8994{['afterInit'](){const _0x12286b=this['editor'];if(!_0x12286b['plugins']['has']('LinkEditing'))return;const _0x232659=_0x12286b['plugins']['get']('TrackChangesEditing'),_0x48df8c=_0x12286b['commands']['get']('link');_0x232659['enableDefaultAttributesIntegration']('link'),_0x232659['enableDefaultAttributesIntegration']('unlink'),_0x232659['registerInlineAttribute']('linkHref');for(const _0x4758b1 of _0x48df8c['manualDecorators'])_0x232659['registerInlineAttribute'](_0x4758b1['id']),_0x232659['descriptionFactory']['registerAttributeLabel'](_0x4758b1['id'],'link\x20('+_0x4758b1['label']['toLowerCase']()+')');_0x232659['descriptionFactory']['registerDescriptionCallback'](_0x5c9445=>{if('attribute'!=_0x5c9445['type'])return;const {data:_0x465db0}=_0x5c9445;if(!_0x465db0||'linkHref'!=_0x465db0['key'])return;const _0x46fef4=_0x465db0['newValue'],_0x2a8396=_0x12286b['locale'];return{'type':'format','content':null==_0x46fef4?o(_0x2a8396,'*Remove\x20link*'):o(_0x2a8396,'*Set\x20link:*\x20%0','\x22'+_0x46fef4+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x546800=this['editor'],_0x4700e3=_0x546800['locale'];_0x546800['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3327fb=>{if('formatInline'!=_0x3327fb['type'])return;const {data:_0x254dcf}=_0x3327fb;if(_0x254dcf){if('link'==_0x254dcf['commandName']){const _0x2da058=_0x254dcf['commandParams'][0x0];return{'type':'format','content':o(_0x4700e3,'*Set\x20link:*\x20%0','\x22'+_0x2da058+'\x22')};}return'unlink'==_0x254dcf['commandName']?{'type':'format','content':o(_0x4700e3,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x1a8994{['afterInit'](){const _0x17967a=this['editor'],_0x317169=_0x17967a['locale'];if(!_0x17967a['plugins']['has']('LegacyListEditing'))return;const _0x5d10cd=_0x17967a['plugins']['get']('TrackChangesEditing'),_0xc87df1=_0x17967a['plugins']['has']('LegacyTodoListEditing');function _0x34d31e(_0x2311ae){return()=>{const _0x5596c6=_0x17967a['model']['document']['selection'],_0x3e7093=_0x17967a['commands']['get'](_0x2311ae);if(_0x3e7093['value'])return void _0x17967a['execute']('paragraph',{});const _0xbff75=_0x2311ae['slice'](0x0,-0x4),_0x2ca1f6=function(_0x15f3d6,_0x508661,_0x60c2c2){let _0x1de52e=Array['from'](_0x15f3d6)['filter'](_0x4222dc=>function(_0x3fdb0b,_0x56c33c){return _0x56c33c['checkChild'](_0x3fdb0b['parent'],'listItem')&&!_0x56c33c['isObject'](_0x3fdb0b);}(_0x4222dc,_0x60c2c2));_0x1de52e=_0x1de52e['filter'](_0x4c7a9e=>!_0x4c7a9e['is']('element','listItem')||_0x4c7a9e['getAttribute']('listType')!=_0x508661);const _0x3da7f8=new Set();for(const _0xd7c699 of _0x1de52e)_0xd7c699['is']('element','listItem')?_0x3da7f8['add'](me(_0xd7c699)):_0x3da7f8['add'](_0xd7c699);return Array['from'](_0x3da7f8);}(_0x5596c6['getSelectedBlocks'](),_0xbff75,_0x17967a['model']['schema']);_0x17967a['model']['change'](()=>{for(const _0x2f4afb of _0x2ca1f6)_0x5d10cd['markBlockFormat'](_0x2f4afb,{'commandName':_0x2311ae,'commandParams':[{'forceValue':!_0x3e7093['value']}],'formatGroupId':'blockName'},fe(_0x2f4afb));});};}function _0x24580c(_0x138602){return()=>{const _0x388bd8=function(_0x1c134){let _0x318cf8=Array['from'](_0x1c134);const _0x44270f=_0x318cf8['findIndex'](_0x419404=>'listItem'!=_0x419404['name']);return _0x44270f>-0x1&&(_0x318cf8=_0x318cf8['slice'](0x0,_0x44270f)),_0x318cf8;}(_0x17967a['model']['document']['selection']['getSelectedBlocks']()),_0xfc3dc1=_0x17967a['model']['createRange'](_0x17967a['model']['createPositionAt'](_0x388bd8[0x0],'before'),_0x17967a['model']['createPositionAt'](_0x388bd8[_0x388bd8['length']-0x1],'end'));_0x17967a['model']['change'](()=>{_0x5d10cd['markBlockFormat'](_0xfc3dc1,{'commandName':_0x138602,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4af27d){const _0x2f9086=new Set();for(const _0x4079f8 of _0x4af27d){let _0x1b8bec=_0x4079f8['nextSibling'];for(;_0x1b8bec&&_0x1b8bec['getAttribute']('listIndent')>_0x4079f8['getAttribute']('listIndent');)_0x2f9086['add'](_0x1b8bec),_0x1b8bec=_0x1b8bec['nextSibling'];}return Array['from'](_0x2f9086);}(_0x388bd8));});};}_0x5d10cd['enableCommand']('numberedList',_0x34d31e('numberedList')),_0x5d10cd['enableCommand']('bulletedList',_0x34d31e('bulletedList')),_0xc87df1&&_0x5d10cd['enableCommand']('todoList',_0x34d31e('todoList')),_0x5d10cd['enableCommand']('indentList',_0x24580c('indentList')),_0x5d10cd['enableCommand']('outdentList',_0x24580c('outdentList')),_0xc87df1&&_0x5d10cd['enableCommand']('checkTodoList',()=>{const _0x485a98=_0x17967a['commands']['get']('checkTodoList'),_0x5919b7=Array['from'](_0x485a98['_selectedElements']);_0x5919b7['filter'](_0x18447d=>_0x18447d['getAttribute']('todoListChecked')!=_0x485a98['value']),_0x17967a['model']['change'](()=>{for(const _0x1f72bf of _0x5919b7)_0x5d10cd['markBlockFormat'](_0x1f72bf,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x485a98['value']}]});});}),_0x5d10cd['descriptionFactory']['registerElementLabel']('listItem',_0x15af83=>o(_0x317169,'ELEMENT_LIST_ITEM',_0x15af83)),_0x5d10cd['descriptionFactory']['registerDescriptionCallback'](_0x23cb66=>{if('formatBlock'!=_0x23cb66['type']&&'formatInline'!=_0x23cb66['type'])return;const {data:_0x184650}=_0x23cb66;if(_0x184650){if('numberedList'==_0x184650['commandName']||'bulletedList'==_0x184650['commandName']||'todoList'==_0x184650['commandName'])switch(_0x184650['commandName']['replace']('List','')){case'bulleted':return _0x272f25(o(_0x317169,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x272f25(o(_0x317169,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x272f25(o(_0x317169,'ELEMENT_TODO_LIST'));}if('indentList'==_0x184650['commandName'])return{'type':'format','content':o(_0x317169,'*Indent:*\x20%0',o(_0x317169,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x184650['commandName'])return{'type':'format','content':o(_0x317169,'*Outdent:*\x20%0',o(_0x317169,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x184650['commandName'])return _0x184650['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x317169,'*Check\x20item*')}:{'type':'format','content':o(_0x317169,'*Uncheck\x20item*')};}function _0x272f25(_0x2d79e6){return{'type':'format','content':o(_0x317169,'*Change\x20to:*\x20%0',_0x2d79e6)};}});}}function me(_0x5acf38){const _0x3ad8de=_0x5acf38['getAttribute']('listIndent');if(0x0==_0x3ad8de)return _0x5acf38;let _0x1cd85a=_0x5acf38;for(;_0x5acf38['previousSibling']&&_0x5acf38['previousSibling']['is']('element','listItem');){const _0xa23e4a=_0x5acf38['previousSibling']['getAttribute']('listIndent');if(_0xa23e4a==_0x3ad8de)_0x1cd85a=_0x5acf38['previousSibling'];else{if(_0xa23e4a<_0x3ad8de)break;}_0x5acf38=_0x5acf38['previousSibling'];}return _0x1cd85a;}function fe(_0x4c2c92){const _0x13b577=[];if(_0x4c2c92['is']('element','listItem')&&_0x4c2c92['getAttribute']('listIndent')>0x0){let _0x2077ce=_0x4c2c92['nextSibling'];for(;_0x2077ce&&'listItem'==_0x2077ce['name']&&_0x2077ce['getAttribute']('listIndent')==_0x4c2c92['getAttribute']('listIndent');)_0x13b577['push'](_0x2077ce),_0x2077ce=_0x2077ce['nextSibling'];}return _0x13b577;}class K extends _0x1a8994{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x6e35aa=this['editor']['config']['get']('list.properties'),_0x48f97e=this['editor']['plugins']['get']('TrackChangesEditing');_0x6e35aa['styles']&&_0x48f97e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x6e35aa['reversed']&&_0x48f97e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x6e35aa['startIndex']&&_0x48f97e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x48f97e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x425990,_0x51c4ba={}){const _0x3952d4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x516077=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3952d4['markMultiRangeBlockFormat'](_0x516077,{'commandName':'listStyle','commandParams':[{'type':_0x51c4ba['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xae6577,_0x60e252={}){const _0x2f890b=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc700b7=this['_getSuggestionBlocks'](_0x2067ad=>_0x2067ad['is']('element','listItem')&&'numbered'===_0x2067ad['getAttribute']('listType'));if(_0xc700b7['length']<0x1)return;const _0x295a9e=_0xc700b7['map'](_0x4f15a0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f15a0,'before'),this['editor']['model']['createPositionAt'](_0x4f15a0,0x0)));this['editor']['model']['change'](()=>{_0x2f890b['markMultiRangeBlockFormat'](_0x295a9e,{'commandName':'listReversed','commandParams':[{'reversed':_0x60e252['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1baf94,_0x1fd057={}){const _0xd2868e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51b7ff=this['_getSuggestionBlocks'](_0x3176f4=>_0x3176f4['is']('element','listItem')&&'numbered'===_0x3176f4['getAttribute']('listType'));if(_0x51b7ff['length']<0x1)return;const _0x749b42=_0x51b7ff['map'](_0x5884f9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5884f9,'before'),this['editor']['model']['createPositionAt'](_0x5884f9,0x0)));this['editor']['model']['change'](()=>{_0xd2868e['markMultiRangeBlockFormat'](_0x749b42,{'commandName':'listStart','commandParams':[{'startIndex':_0x1fd057['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1b9b95){if('formatBlock'!=_0x1b9b95['type']&&'formatInline'!=_0x1b9b95['type'])return;const _0x1715ec=this['editor']['locale'],{data:_0x4ac879}=_0x1b9b95;if(!_0x4ac879)return;let _0x4319e3,_0x4f3727;switch(_0x4ac879['commandName']){case'listStyle':_0x4319e3='*Change\x20to:*\x20%0',_0x4f3727={'type':'format','content':o(_0x1715ec,_0x4319e3,o(_0x1715ec,this['_getTranslationKeyForListStyle'](_0x4ac879['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4319e3=_0x4ac879['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4f3727={'type':'format','content':o(_0x1715ec,_0x4319e3)};break;case'listStart':_0x4319e3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4f3727={'type':'format','content':o(_0x1715ec,_0x4319e3,_0x4ac879['commandParams'][0x0]['startIndex'])};}return _0x4f3727;}['_getSuggestionBlocksForListStyle'](){const _0x584d2a=this['editor']['plugins']['get']('LegacyListUtils');let _0x50b964=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x50b964[0x0]?.['is']('element','listItem')&&_0x50b964['unshift'](..._0x584d2a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x50b964[_0x50b964['length']-0x1]?.['is']('element','listItem')&&_0x50b964['push'](..._0x584d2a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x50b964=[...new Set(_0x50b964)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x50b964=_0x50b964['filter'](_0x585ccf=>_0x585ccf['is']('element','listItem'))),_0x50b964;}['_getSuggestionBlocks'](_0x3d8cec){const _0x315a33=this['editor']['plugins']['get']('LegacyListUtils');let _0x4e6a6e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3d8cec)['map'](_0x2fd97f=>{const _0x17198d=this['editor']['model']['createPositionAt'](_0x2fd97f,0x0);return[..._0x315a33['getSiblingNodes'](_0x17198d,'backward'),..._0x315a33['getSiblingNodes'](_0x17198d,'forward')];})['flat']();return _0x4e6a6e=[...new Set(_0x4e6a6e)],_0x4e6a6e;}['_getTranslationKeyForListStyle'](_0x175641){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x175641)||'default')['toUpperCase']()+'_LIST_'+_0x175641['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x1a8994{['afterInit'](){const _0x1b55db=this['editor'];if(!_0x1b55db['plugins']['has']('MediaEmbedEditing'))return;const _0x3e7e80=_0x1b55db['plugins']['get']('TrackChangesEditing'),_0x4387c0=_0x1b55db['locale'];_0x3e7e80['enableCommand']('mediaEmbed'),_0x3e7e80['descriptionFactory']['registerElementLabel']('media',_0xd60c44=>o(_0x4387c0,'ELEMENT_MEDIA',_0xd60c44)),_0x1b55db['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x19bd58,{writer:_0x54c08e,options:_0x462f4a})=>{if(_0x462f4a['showSuggestionHighlights'])return _0x54c08e['createEmptyElement']('div');},'converterPriority':'high'}),_0x1b55db['data']['downcastDispatcher']['on']('attribute:url:media',(_0x576a42,_0x3af61c,_0x45f43f)=>{_0x45f43f['options']['showSuggestionHighlights']&&_0x576a42['stop']();},{'priority':'high'});}}class gt extends _0x1a8994{['afterInit'](){const _0x5d73c7=this['editor'];_0x5d73c7['plugins']['has']('MentionEditing')&&_0x5d73c7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x1a8994{['afterInit'](){const _0x3e9e7f=this['editor'],_0xd33bb5=_0x3e9e7f['plugins']['get']('TrackChangesEditing');_0x3e9e7f['plugins']['has']('MultiLevelList')&&(_0xd33bb5['enableDefaultAttributesIntegration']('multiLevelList'),_0xd33bb5['registerBlockAttribute']('listMarkerStyle'),_0xd33bb5['descriptionFactory']['registerDescriptionCallback'](_0x4f41e5=>this['handleDescriptions'](_0x4f41e5)));}['handleDescriptions'](_0x152849){const _0x1cc0fd=this['editor']['locale'],{data:_0x408c09}=_0x152849,_0x575799={'type':'format','content':''};if(_0x408c09&&'listMarkerStyle'==_0x408c09['key']){if(!_0x408c09['oldValue'])return{'type':'format','content':o(_0x1cc0fd,'*Set\x20format:*\x20%0',o(_0x1cc0fd,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x408c09['newValue']+')'};if(!_0x408c09['newValue']){let _0x12cc61=_0x152849['head'];for(;_0x12cc61;){if(_0x12cc61['data']&&'listType'==_0x12cc61['data']['key']&&_0x12cc61['data']['newValue'])return _0x575799;_0x12cc61=_0x12cc61['next'];}return{'type':'format','content':o(_0x1cc0fd,'*Remove\x20format:*\x20%0',o(_0x1cc0fd,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x408c09['oldValue']+')'};}}}}class mt extends _0x1a8994{['afterInit'](){const _0x4550f1=this['editor'];if(!_0x4550f1['plugins']['has']('PageBreakEditing'))return;_0x4550f1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2b5e27=_0x4550f1['plugins']['get']('TrackChangesEditing'),_0x19d8d6=_0x4550f1['locale'];_0x2b5e27['descriptionFactory']['registerElementLabel']('pageBreak',_0x270017=>o(_0x19d8d6,'ELEMENT_PAGE_BREAK',_0x270017));}}class dt extends _0x1a8994{['afterInit'](){const _0x2b5e32=this['editor'];if(!_0x2b5e32['plugins']['has']('Paragraph'))return;const _0x211d76=_0x2b5e32['locale'],_0x19da6e=_0x2b5e32['plugins']['get']('TrackChangesEditing');_0x19da6e['descriptionFactory']['registerElementLabel']('paragraph',_0x3ba442=>o(_0x211d76,'ELEMENT_PARAGRAPH',_0x3ba442)),_0x19da6e['enableDefaultAttributesIntegration']('paragraph'),_0x19da6e['enableCommand']('insertParagraph'),_0x2b5e32['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2b5e32),{'priority':'highest'}),_0x2b5e32['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x35a196,_0x354f63,_0x253a51)=>{_0x253a51['options']['showSuggestionHighlights']&&nr(_0x2b5e32,{'showActiveMarker':!0x1})(_0x35a196,_0x354f63,_0x253a51);},{'priority':'highest'});const _0x1bf6d3=_0x19da6e['descriptionFactory'];_0x1bf6d3['registerDescriptionCallback'](_0xcda8ca=>{if('insertion'!==_0xcda8ca['type'])return;const {start:_0x3ae91c,end:_0x3b8652}=_0xcda8ca['getFirstRange']();if(!_0x3ae91c['isTouching'](_0x3b8652)||!_0x3ae91c['nodeAfter'])return;const _0x2b5f6d=_0x2b5e32['model']['schema'],_0x208cb7=_0x3ae91c['nodeAfter'];return _0x2b5f6d['isBlock'](_0x208cb7)&&!_0x2b5f6d['isLimit'](_0x208cb7)&&_0x2b5f6d['checkChild'](_0x208cb7,'$text')?{'type':'insertion','content':o(_0x211d76,'*Insert:*\x20%0',_0x1bf6d3['getItemLabel'](_0x208cb7,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d1490=this['editor'],_0x2f02a8=_0x5d1490['locale'];_0x5d1490['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1be468=>{if('formatBlock'!=_0x1be468['type'])return;const {data:_0x2377f1}=_0x1be468;return _0x2377f1&&'paragraph'==_0x2377f1['commandName']?{'type':'format','content':o(_0x2f02a8,'*Change\x20to:*\x20%0',o(_0x2f02a8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x530906,{showActiveMarker:_0x1f7bd6=!0x0}={}){return(_0x7f72ff,_0xc85b0c,_0x10d8a6)=>{const _0x5cc215=_0x530906['plugins']['get']('TrackChangesEditing'),_0x164921=_0xc85b0c['markerRange']['start'],_0x5e9fa1=_0xc85b0c['markerRange']['end'],_0x3ff7e9=_0x530906['model']['schema'];if(!_0x164921['isTouching'](_0x5e9fa1)||!_0x164921['nodeAfter'])return;const _0x5579ed=_0x164921['nodeAfter'];if(_0x3ff7e9['isBlock'](_0x5579ed)&&!_0x3ff7e9['isLimit'](_0x5579ed)&&_0x3ff7e9['checkChild'](_0x5579ed,'$text')){if(!_0x10d8a6['consumable']['consume'](_0xc85b0c['markerRange'],_0x7f72ff['name']))return;const _0x31297b=_0x10d8a6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x52b709=_0x10d8a6['mapper']['toViewPosition'](_0x5e9fa1);_0x1f7bd6&&_0x5cc215['activeMarkers']['includes'](_0xc85b0c['markerName'])&&_0x10d8a6['writer']['addClass']('ck-suggestion-marker--active',_0x31297b),_0x10d8a6['writer']['insert'](_0x52b709,_0x31297b),_0x10d8a6['mapper']['bindElementToMarker'](_0x31297b,_0xc85b0c['markerName']);}};}class pt extends _0x1a8994{['afterInit'](){const _0x50e2a2=this['editor'];if(!_0x50e2a2['plugins']['has']('RemoveFormatEditing'))return;_0x50e2a2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x284dfb=this['editor'];_0x284dfb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x152e17=>{if('formatBlock'!=_0x152e17['type']&&'formatInline'!=_0x152e17['type'])return;const {data:_0x424787}=_0x152e17;return _0x424787&&'removeFormat'==_0x424787['commandName']?{'type':'format','content':o(_0x284dfb['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x1a8994{['afterInit'](){const _0x35b8fa=this['editor'];if(!_0x35b8fa['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5bb73a=_0x35b8fa['plugins']['get']('TrackChangesEditing');_0x5bb73a['enableCommand']('goToPreviousRestrictedEditingException'),_0x5bb73a['enableCommand']('goToNextRestrictedEditingException');const _0x402f3d=_0x35b8fa['plugins']['get']('RestrictedEditingModeEditing');_0x402f3d['enableCommand']('trackChanges'),_0x402f3d['enableCommand']('acceptSuggestion'),_0x402f3d['enableCommand']('discardSuggestion'),_0x402f3d['enableCommand']('acceptAllSuggestions'),_0x402f3d['enableCommand']('discardAllSuggestions'),_0x402f3d['enableCommand']('acceptSelectedSuggestions'),_0x402f3d['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x1a8994{static get['requires'](){return[_0x5f54ac];}['init'](){const _0x58aacb=this['editor'],_0x574059=_0x58aacb['plugins']['get']('TrackChangesEditing');_0x574059['enableCommand']('shiftEnter'),_0x58aacb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x58aacb),{'priority':'high'}),_0x58aacb['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x58aacb),{'priority':'high'}),_0x58aacb['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x47a669,_0x2c1b78,_0x3d0788)=>{_0x3d0788['options']['showSuggestionHighlights']&&de(_0x58aacb,{'showActiveMarker':!0x1})(_0x47a669,_0x2c1b78,_0x3d0788);}),_0x574059['descriptionFactory']['registerElementLabel']('softBreak',_0x5546a0=>o(_0x58aacb['locale'],'ELEMENT_LINE_BREAK',_0x5546a0));}}function de(_0x4e16f5,{showActiveMarker:_0x31b55d=!0x0}={}){return(_0x3d9b78,_0x47073e,_0x594a6)=>{const _0x27566f=_0x4e16f5['plugins']['get']('TrackChangesEditing');if(!_0x594a6['consumable']['test'](_0x47073e['markerRange'],_0x3d9b78['name']))return;const _0x52096a=_0x4e16f5['model'];for(const _0x405952 of _0x47073e['markerRange']['getItems']()){if(!_0x405952['is']('element','softBreak'))continue;const _0x144aef='deletion'==_0x47073e['markerName']['split'](':')[0x1]?'merge':'split',_0x44adf4=_0x594a6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x144aef}),_0x39d7e4=_0x594a6['mapper']['toViewPosition'](_0x52096a['createPositionBefore'](_0x405952));_0x31b55d&&_0x27566f['activeMarkers']['includes'](_0x47073e['markerName'])&&_0x594a6['writer']['addClass']('ck-suggestion-marker--active',_0x44adf4),_0x594a6['writer']['insert'](_0x39d7e4,_0x44adf4),_0x594a6['mapper']['bindElementToMarker'](_0x44adf4,_0x47073e['markerName']);}};}class wt extends _0x1a8994{['afterInit'](){const _0x1a3871=this['editor'],_0x170fb8=_0x1a3871['model'],_0x404ce7=_0x1a3871['locale'];if(!_0x1a3871['plugins']['has']('StandardEditingModeEditing'))return;const _0x3d6833=_0x1a3871['plugins']['get']('TrackChangesEditing'),_0x5a96a8='restrictedEditingException',_0x320c87=_0x1a3871['commands']['get'](_0x5a96a8);_0x3d6833['enableCommand'](_0x5a96a8,(_0x484d93,_0x3e4084={})=>{const _0x192954=_0x170fb8['document']['selection'];if(_0x192954['isCollapsed'])return void _0x484d93(_0x3e4084);const _0x13edfa=void 0x0!==_0x3e4084['forceValue']?_0x3e4084['forceValue']:!_0x320c87['value'];_0x170fb8['change'](()=>{const _0x548e1b=Array['from'](_0x192954['getRanges']());for(const _0x1e75fc of _0x548e1b){const _0x12f347=_0x13edfa?[_0x1e75fc]:io(_0x5a96a8,_0x1e75fc,_0x170fb8);for(const _0x33326e of _0x12f347)_0x3d6833['markInlineFormat'](_0x33326e,{'commandName':_0x5a96a8,'commandParams':[{'forceValue':_0x13edfa}]});}});}),_0x3d6833['descriptionFactory']['registerDescriptionCallback'](_0x3c4e5f=>{if('formatBlock'!=_0x3c4e5f['type']&&'formatInline'!=_0x3c4e5f['type'])return;const {data:_0x235dae}=_0x3c4e5f;return _0x235dae&&_0x235dae['commandName']==_0x5a96a8?_0x235dae['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x404ce7,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x404ce7,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x1a8994{['afterInit'](){const _0x56ddd9=this['editor'];if(!_0x56ddd9['plugins']['has']('Style')||!_0x56ddd9['plugins']['has']('DataSchema'))return;const _0x215cb5=_0x56ddd9['plugins']['get']('TrackChangesEditing'),_0x4c7d33=_0x56ddd9['locale'],_0x20d22e=_0x56ddd9['config']['get']('style')||{},_0x3ab335=_0x56ddd9['plugins']['get']('GeneralHtmlSupport'),_0x5dd391=_0x56ddd9['plugins']['get']('StyleUtils')['normalizeConfig'](_0x56ddd9['plugins']['get']('DataSchema'),_0x20d22e['definitions']);_0x215cb5['enableDefaultAttributesIntegration']('style');const _0x4e796d=new Set();for(const _0x4587ff of _0x5dd391['block']){const _0x1a69f6=_0x3ab335['getGhsAttributeNameForElement'](_0x4587ff['element']);_0x4e796d['add'](_0x1a69f6);}const _0x24a44f=new Set();for(const _0x26fe7e of _0x5dd391['inline']){const _0x13befa=_0x3ab335['getGhsAttributeNameForElement'](_0x26fe7e['element']);_0x24a44f['add'](_0x13befa);for(const _0x51a3fa of _0x26fe7e['ghsAttributes'])_0x24a44f['add'](_0x51a3fa);}for(const _0x46a5e4 of _0x4e796d)_0x215cb5['registerBlockAttribute'](_0x46a5e4),_0x215cb5['descriptionFactory']['registerAttributeLabel'](_0x46a5e4,o(_0x4c7d33,'FORMAT_STYLE'));for(const _0x2c1b31 of _0x24a44f)_0x215cb5['registerInlineAttribute'](_0x2c1b31),_0x215cb5['descriptionFactory']['registerAttributeLabel'](_0x2c1b31,o(_0x4c7d33,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23fe7f=this['editor'],_0x14d96e=_0x23fe7f['locale'];_0x23fe7f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d8473=>{if('formatBlock'!=_0x1d8473['type']&&'formatInline'!=_0x1d8473['type'])return;const {data:_0x557097}=_0x1d8473;return _0x557097&&'style'===_0x557097['commandName']?_0x557097['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x14d96e,'*Set\x20format:*\x20%0',_0x557097['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x14d96e,'*Remove\x20format:*\x20%0',_0x557097['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x1a8994{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x16ce96){super(_0x16ce96),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1ec929=this['editor'],_0x4a1b87=_0x1ec929['model']['document']['selection'];if(!_0x1ec929['plugins']['has']('TableEditing'))return;const _0x331d57=_0x1ec929['locale'],_0x3e2685=_0x1ec929['plugins']['get']('TrackChangesEditing'),_0x229fbd=_0x1ec929['plugins']['get']('TableUtils');_0x3e2685['descriptionFactory']['registerElementLabel']('table',_0x343194=>o(_0x331d57,'ELEMENT_TABLE',_0x343194)),this['_setupColumnsRowsFixing'](),_0x3e2685['enableCommand']('insertTable'),_0x3e2685['enableCommand']('selectTableRow'),_0x3e2685['enableCommand']('selectTableColumn');for(const _0x17e842 of['insertTableRowAbove','insertTableRowBelow']){const _0x1eb37d=_0x1ec929['commands']['get'](_0x17e842);_0x3e2685['enableCommand'](_0x17e842,_0x4022d7=>{_0x1ec929['model']['change'](_0x3e2b80=>{_0x4022d7();const _0x31b22a='above'===_0x1eb37d['order'],_0x5e6848=_0x229fbd['getSelectionAffectedTableCells'](_0x4a1b87),_0x310c9e=_0x229fbd['getRowIndexes'](_0x5e6848),_0x377b49=_0x31b22a?_0x310c9e['first']-0x1:_0x310c9e['last']+0x1,_0x506c0f=_0x5e6848[0x0]['findAncestor']('table'),_0x45fd93=_0x229fbd['createTableWalker'](_0x506c0f,{'startRow':_0x377b49,'endRow':_0x377b49}),_0x1318cb=Array['from'](_0x45fd93)['map'](_0x24569e=>_0x3e2b80['createRangeOn'](_0x24569e['cell']));_0x3e2685['markMultiRangeInsertion'](_0x1318cb,'tableRow');});});}for(const _0x11d1d9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x8f0f81=_0x1ec929['commands']['get'](_0x11d1d9);_0x3e2685['enableCommand'](_0x11d1d9,_0x13d109=>{_0x1ec929['model']['change'](_0x53ade9=>{_0x13d109();const _0x3b1050='left'===_0x8f0f81['order'],_0x2ee1d9=_0x229fbd['getSelectionAffectedTableCells'](_0x4a1b87),_0x2d5645=_0x229fbd['getColumnIndexes'](_0x2ee1d9),_0x1b6767=_0x3b1050?_0x2d5645['first']-0x1:_0x2d5645['last']+0x1,_0x33b21a=_0x2ee1d9[0x0]['findAncestor']('table'),_0x15c5ba=_0x229fbd['createTableWalker'](_0x33b21a,{'startRow':0x0,'column':_0x1b6767,'includeAllSlots':!0x1}),_0x3ed87a=Array['from'](_0x15c5ba)['map'](_0x43b1c0=>_0x53ade9['createRangeOn'](_0x43b1c0['cell']));_0x3e2685['markMultiRangeInsertion'](_0x3ed87a,'tableColumn');});});}for(const _0x46e468 of['removeTableRow','removeTableColumn']){const _0xbd174d=_0x46e468['substr'](0xb),_0x2c6965=_0xbd174d['toLowerCase'](),_0xb197e2=_0x2c6965['substr'](0x0,0x3)+'span',_0x54e36e='table'+_0xbd174d,_0x3d0017='min'+_0xbd174d,_0x15f0dc='max'+_0xbd174d;_0x3e2685['enableCommand'](_0x46e468,()=>{_0x1ec929['model']['change'](_0x3892dc=>{const _0x3dfac9=_0x229fbd['getSelectionAffectedTableCells'](_0x4a1b87),_0x1ee6b2=_0x3dfac9[0x0]['findAncestor']('table');let _0x4a82c7;if('removeTableRow'==_0x46e468){const _0x258775=_0x229fbd['getRowIndexes'](_0x3dfac9);_0x4a82c7={'startRow':_0x258775['first'],'endRow':_0x258775['last'],'includeAllSlots':!0x0};}else{const _0x13863c=_0x229fbd['getColumnIndexes'](_0x3dfac9);_0x4a82c7={'startColumn':_0x13863c['first'],'endColumn':_0x13863c['last'],'includeAllSlots':!0x0};}const _0x3e73f5=_0x229fbd['createTableWalker'](_0x1ee6b2,_0x4a82c7),_0x153fc3=Array['from'](_0x3e73f5)['map'](({cell:_0x4f9226})=>_0x4f9226),_0x2f3d14=Ee(_0x153fc3['filter'](_0x5ad334=>_0x5ad334['hasAttribute'](_0xb197e2))),_0x565187=Ee(_0x153fc3['filter'](_0x4647a3=>!_0x4647a3['hasAttribute'](_0xb197e2)))['map'](_0x52ec35=>_0x3892dc['createRangeOn'](_0x52ec35)),_0x3aa835=_0x3e2685['markMultiRangeDeletion'](_0x565187,_0x54e36e);if(_0x3aa835&&('tableRow'==_0x3aa835['subType']||'tableColumn'==_0x3aa835['subType'])){const _0x2eea48=this['_getSuggestionCoords'](_0x3aa835);for(const _0x54c965 of _0x2f3d14){const _0x37002d=_0x3892dc['createRangeOn'](_0x54c965),_0x401a7b=_0x229fbd['getCellLocation'](_0x54c965),_0x369f09=_0x54c965['getAttribute'](_0xb197e2)-0x1,_0x1fc82f=_0x2eea48[_0x3d0017],_0x231279=_0x2eea48[_0x15f0dc];_0x1fc82f<=_0x401a7b[_0x2c6965]&&_0x401a7b[_0x2c6965]+_0x369f09<=_0x231279&&_0x3aa835['addRange'](_0x37002d);}}});});}function _0x4dc3fe(_0x99a9c9){const _0x16f1b3=Array['from'](_0x4a1b87['getRanges']())['map'](_0x5bbf48=>_0x1ccabf['fromRange'](_0x5bbf48));_0x1ec929['model']['change'](_0x2cf28b=>{const _0x4d8b1f=_0x2cf28b['batch'];_0x99a9c9=_0x99a9c9['filter'](_0x959106=>'$graveyard'!=_0x959106['root']['rootName']),_0x2cf28b['setSelection'](_0x99a9c9),_0x1ec929['commands']['get']('removeTableRow')['refresh'](),_0x1ec929['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1ec929['model']['enqueueChange'](()=>{_0x1ec929['model']['enqueueChange'](_0x4d8b1f,_0x5b1a10=>{const _0x11316a=_0x16f1b3['filter'](_0x30f747=>'$graveyard'!=_0x30f747['root']['rootName']);_0x11316a['length']>0x0&&_0x5b1a10['setSelection'](_0x11316a);for(const _0x435272 of _0x16f1b3)_0x435272['detach']();});});});}function _0x2c6f4e(_0x2289cc){_0x1ec929['model']['change'](_0x5222dd=>{const _0x109dfe=Array['from'](_0x4a1b87['getRanges']())['map'](_0x1cd736=>_0x1ccabf['fromRange'](_0x1cd736)),_0x41fe64=[];for(const _0x50a2d5 of _0x2289cc)for(const _0x332a47 of _0x50a2d5['getItems']({'shallow':!0x0}))_0x41fe64['push'](_0x332a47);for(const _0x551408 of _0x41fe64)'$graveyard'!=_0x551408['root']['rootName']&&(_0x5222dd['setSelection'](_0x5222dd['createPositionAt'](_0x551408,0x0)),_0x1ec929['commands']['get']('removeTableColumn')['refresh'](),_0x1ec929['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x40098c=_0x109dfe['filter'](_0x4ac7fb=>'$graveyard'!=_0x4ac7fb['root']['rootName']);_0x40098c['length']>0x0&&_0x5222dd['setSelection'](_0x40098c);for(const _0x53a6c1 of _0x109dfe)_0x53a6c1['detach']();});}function _0x256a7f(_0xc51056,_0x1fa254){return _0x1fa254['every'](_0x12a9ae=>_0xc51056['some'](_0x26d203=>_0x26d203['end']['isEqual'](_0x12a9ae['start'])||_0x12a9ae['end']['isEqual'](_0x26d203['start'])));}function _0x242d2f(_0x1ad5f0,_0xad73b3){return!_0x1ad5f0['some'](_0x37dcca=>_0xad73b3['some'](_0x3c7b83=>_0x37dcca['isIntersecting'](_0x3c7b83)))&&_0x1ad5f0['some'](_0x4dda05=>_0xad73b3['some'](_0x49c73a=>_0x4dda05['end']['isTouching'](_0x49c73a['start'])));}_0x1ec929['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3a495b,_0x4f97ad,_0x4961a6)=>{if(!_0x4961a6['options']['showSuggestionHighlights'])return;const _0x35a4cf=_0x4f97ad['item'];if(!_0x35a4cf)return;const _0x573fd2=_0x4961a6['mapper']['toViewElement'](_0x35a4cf);function _0x2c302(_0x5ce7a4){return Array['isArray'](_0x5ce7a4)?_0x5ce7a4:[_0x5ce7a4];}_0x573fd2&&'tableCell'===_0x35a4cf['name']&&_0x1cbd0c(_0x573fd2,_0x4961a6['writer'],(_0x4c2eff,_0x117b71,_0x2d896a)=>_0x2d896a['addClass'](_0x2c302(_0x117b71['classes']),_0x4c2eff),(_0x435300,_0x38a4c6,_0x356ac0)=>_0x356ac0['removeClass'](_0x2c302(_0x38a4c6['classes']),_0x435300));},{'priority':'highest'}),_0x3e2685['descriptionFactory']['registerDescriptionCallback'](_0x2edb58=>{if('insertion'!=_0x2edb58['type']&&'deletion'!=_0x2edb58['type'])return;const _0x331766=_0x2edb58['getContainedElement']();if(null!=_0x331766&&_0x331766['is']('element','table')){if('insertion'==_0x2edb58['type']){const _0x183a1a=_0x2edb58['getItems']()['filter'](_0x5cdd68=>_0x5cdd68['is']('$textProxy'))['map'](_0x26c938=>_0x26c938['data']);if(_0x183a1a['length'])return{'type':'insertion','content':o(_0x331d57,'*Insert:*\x20%0',o(_0x331d57,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x183a1a['join']('\x20')+'\x22'))};}if('deletion'==_0x2edb58['type']){const _0x485c11=_0x2edb58['getItems']()['filter'](_0x3e10ff=>_0x3e10ff['is']('$textProxy'))['map'](_0x249d6b=>_0x249d6b['data']);if(_0x485c11['length'])return{'type':'deletion','content':o(_0x331d57,'*Remove:*\x20%0',o(_0x331d57,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x485c11['join']('\x20')+'\x22'))};}}}),_0x3e2685['descriptionFactory']['registerDescriptionCallback'](_0x59856c=>{if('tableRow'==_0x59856c['subType']){const _0x3bfb51=_0x59856c['getItems']()['filter'](_0x4f24e7=>_0x4f24e7['is']('$textProxy'))['map'](_0x5c2867=>_0x5c2867['data']),_0x6ec171=this['_getSuggestionCoords'](_0x59856c),_0x744d99=_0x6ec171['maxRow']-_0x6ec171['minRow']+0x1;if('insertion'==_0x59856c['type'])return _0x3bfb51['length']?{'type':'insertion','content':o(_0x331d57,'*Insert:*\x20%0',o(_0x331d57,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x744d99,'\x22'+_0x3bfb51['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x331d57,'*Insert:*\x20%0',o(_0x331d57,'ELEMENT_TABLE_ROW',_0x744d99))};if('deletion'==_0x59856c['type'])return _0x3bfb51['length']?{'type':'deletion','content':o(_0x331d57,'*Remove:*\x20%0',o(_0x331d57,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x744d99,'\x22'+_0x3bfb51['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x331d57,'*Remove:*\x20%0',o(_0x331d57,'ELEMENT_TABLE_ROW',_0x744d99))};}if('tableColumn'==_0x59856c['subType']){const _0x5cb94e=_0x59856c['getItems']()['filter'](_0xca917d=>_0xca917d['is']('$textProxy'))['map'](_0x4973c3=>_0x4973c3['data']),_0x11d2ac=this['_getSuggestionCoords'](_0x59856c),_0x5cd4ed=_0x11d2ac['maxColumn']-_0x11d2ac['minColumn']+0x1;if('insertion'==_0x59856c['type'])return _0x5cb94e['length']?{'type':'insertion','content':o(_0x331d57,'*Insert:*\x20%0',o(_0x331d57,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5cd4ed,'\x22'+_0x5cb94e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x331d57,'*Insert:*\x20%0',o(_0x331d57,'ELEMENT_TABLE_COLUMN',_0x5cd4ed))};if('deletion'==_0x59856c['type'])return _0x5cb94e['length']?{'type':'deletion','content':o(_0x331d57,'*Remove:*\x20%0',o(_0x331d57,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5cd4ed,'\x22'+_0x5cb94e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x331d57,'*Remove:*\x20%0',o(_0x331d57,'ELEMENT_TABLE_COLUMN',_0x5cd4ed))};}}),_0x3e2685['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4dc3fe),_0x3e2685['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4dc3fe),_0x3e2685['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2c6f4e),_0x3e2685['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2c6f4e),_0x3e2685['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x256a7f),_0x3e2685['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x256a7f),_0x3e2685['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x242d2f),_0x3e2685['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x242d2f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3da235=this['editor'],_0x35f72b=_0x3da235['model']['document']['selection'];return(_0x11fcf7,_0x3007ce)=>{_0x3da235['model']['change'](_0x768a52=>{const {commandName:_0x4939fb,commandParams:_0xc4f27d}=_0x3007ce;let _0x35968f=_0x11fcf7[0x0]['end']['nodeBefore'];_0xc4f27d&&_0xc4f27d[0x0]&&!0x1===_0xc4f27d[0x0]['forceValue']&&(_0x35968f=_0x11fcf7[0x0]['start']['nodeAfter']);const _0x19535c=_0x768a52['createRangeIn'](_0x35968f);if('$graveyard'==_0x19535c['root']['rootName'])return;const _0x3f0d55=Array['from'](_0x35f72b['getRanges']())['map'](_0x1d4d6e=>_0x1ccabf['fromRange'](_0x1d4d6e));_0x768a52['setSelection'](_0x19535c),_0x3da235['commands']['get'](_0x4939fb)['refresh'](),_0xc4f27d['push']({'forceDefaultExecution':!0x0}),_0x3da235['execute'](_0x4939fb,..._0xc4f27d);const _0x3a5f08=_0x3f0d55['filter'](_0xa74384=>'$graveyard'!=_0xa74384['root']['rootName']);_0x3a5f08['length']>0x0&&_0x768a52['setSelection'](_0x3a5f08);for(const _0x4e0c7b of _0x3f0d55)_0x4e0c7b['detach']();});};}['_getCoordsForCells'](_0x31a3f8){const _0x31146e=this['editor']['plugins']['get']('TableUtils');let _0x3b023a=Number['MAX_SAFE_INTEGER'],_0x29217c=Number['MIN_SAFE_INTEGER'],_0x34435e=Number['MAX_SAFE_INTEGER'],_0x193f6d=Number['MIN_SAFE_INTEGER'];for(const _0x52d878 of _0x31a3f8){if('$graveyard'==_0x52d878['root']['rootName'])continue;const {row:_0x3af289,column:_0x11ab1a}=_0x31146e['getCellLocation'](_0x52d878),_0x403eca=_0x52d878['hasAttribute']('rowspan')?_0x52d878['getAttribute']('rowspan')-0x1:0x0,_0x3d335f=_0x52d878['hasAttribute']('colspan')?_0x52d878['getAttribute']('colspan')-0x1:0x0;_0x3b023a=_0x3af289<_0x3b023a?_0x3af289:_0x3b023a,_0x29217c=_0x3af289+_0x403eca>_0x29217c?_0x3af289+_0x403eca:_0x29217c,_0x34435e=_0x11ab1a<_0x34435e?_0x11ab1a:_0x34435e,_0x193f6d=_0x11ab1a+_0x3d335f>_0x193f6d?_0x11ab1a+_0x3d335f:_0x193f6d;}return{'minRow':_0x3b023a,'maxRow':_0x29217c,'minColumn':_0x34435e,'maxColumn':_0x193f6d};}['_setupColumnsRowsFixing'](){const _0x42dbca=this['editor'],_0x45c528=_0x42dbca['plugins']['get']('TrackChangesEditing'),_0x2e7325=_0x42dbca['plugins']['get']('TableUtils');_0x42dbca['model']['document']['on']('change:data',()=>{const _0x20d04c=Array['from'](_0x42dbca['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2bf8d4,data:_0x56ca32}of _0x20d04c){const {group:_0x2b3334,id:_0x41c933,subType:_0x4fa907}=_0x45c528['_splitMarkerName'](_0x2bf8d4);if('suggestion'!=_0x2b3334)continue;if(null!=_0x56ca32['oldRange'])continue;const _0x19704a=_0x45c528['getSuggestion'](_0x41c933);this['_tablePostFixingSubtypes']['includes'](_0x4fa907)&&this['_tableSuggestions']['add'](_0x19704a);}},{'priority':'low'});const _0x11e09a=(_0x4998c6,_0x355acb)=>{let _0x2cf1e4=!0x1;const _0x4f36fa=_0x355acb['createRangeOn'](_0x4998c6),_0x41902f=_0x4998c6['findAncestor']('table'),_0x1a16d1=_0x2e7325['getCellLocation'](_0x4998c6);for(const _0x1658f3 of this['_tableSuggestions']){const _0x2d5831=_0x1658f3['subType'],_0xaa616f=_0x2d5831['startsWith']('tablePaste'),_0x3ecf15=_0x2d5831['substr'](_0xaa616f?0xa:0x5),_0x504067=_0x3ecf15['toLowerCase'](),_0x1134a1=_0x504067['substr'](0x0,0x3)+'span',_0x1eccdf='min'+_0x3ecf15,_0x5b743d='max'+_0x3ecf15;if(!_0x1658f3['isInContent'])continue;if(_0x41902f!=_0x1658f3['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1658f3['isIntersectingWithRange'](_0x4f36fa))continue;const _0x2a8829=_0x4998c6['hasAttribute'](_0x1134a1)?_0x4998c6['getAttribute'](_0x1134a1)-0x1:0x0,_0x4774f5=this['_getSuggestionCoords'](_0x1658f3),_0xc0dbab=_0x4774f5[_0x1eccdf],_0x5d37e9=_0x4774f5[_0x5b743d];_0xc0dbab<=_0x1a16d1[_0x504067]&&_0x1a16d1[_0x504067]+_0x2a8829<=_0x5d37e9&&(_0x1658f3['addRange'](_0x4f36fa),_0x2cf1e4=!0x0);}return _0x2cf1e4;};_0x42dbca['model']['document']['registerPostFixer'](_0x21c777=>{let _0x4a4a72=!0x1;for(const _0x3ff232 of _0x42dbca['model']['document']['differ']['getChanges']())if('insert'==_0x3ff232['type']){if('tableRow'==_0x3ff232['name']){for(const _0x1e43d4 of _0x3ff232['position']['nodeAfter']['getChildren']())_0x4a4a72=_0x4a4a72||_0x11e09a(_0x1e43d4,_0x21c777);}else'tableCell'==_0x3ff232['name']&&(_0x4a4a72=_0x4a4a72||_0x11e09a(_0x3ff232['position']['nodeAfter'],_0x21c777));}return _0x4a4a72;});}['_getSuggestionCoords'](_0x25b97e){return this['_getCoordsForCells'](_0x25b97e['getRanges']()['map'](_0x6d4b4b=>_0x6d4b4b['start']['nodeAfter']));}}function Ee(_0x2f73b8){return Array['from'](new Set(_0x2f73b8)['values']());}class St extends _0x1a8994{static get['requires'](){return[jt];}['afterInit'](){const _0x4ec2b0=this['editor'],_0x5d8d4e=_0x4ec2b0['model']['document']['selection'],_0x5dbc10=_0x4ec2b0['locale'];if(!_0x4ec2b0['plugins']['has']('TableEditing'))return;const _0x535803=_0x4ec2b0['plugins']['get']('TrackChangesEditing'),_0x1d89ae=_0x4ec2b0['plugins']['get']('TableUtils'),_0x22b2eb=_0x4ec2b0['plugins']['get'](jt);_0x22b2eb['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x535803['enableCommand']('mergeTableCells',()=>{const _0x24b09e=_0x1d89ae['getSelectionAffectedTableCells'](_0x4ec2b0['model']['document']['selection']);_0x4ec2b0['model']['change'](()=>{_0x535803['markMultiRangeBlockFormat'](_0x24b09e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4ec2b0['commands']['get']('mergeTableCells')['on']('execute',(_0x35ce1b,_0x292f36)=>{_0x4ec2b0['commands']['get']('trackChanges')['value']&&(_0x292f36['length']>0x0&&_0x292f36[_0x292f36['length']-0x1]&&_0x292f36[_0x292f36['length']-0x1]['forceDefaultExecution']||_0x535803['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x35ce1b['stop']());},{'priority':'highest'});for(const _0x465656 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2f849b=_0x4ec2b0['commands']['get'](_0x465656);_0x535803['enableCommand'](_0x465656,()=>{const _0x2c4b81=_0x4ec2b0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1e0649=>_0x1e0649['is']('element','tableCell')),_0x41abba=_0x2f849b['value'];_0x4ec2b0['model']['change'](()=>{_0x535803['markMultiRangeBlockFormat']([_0x2c4b81,_0x41abba],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x112c89 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3e2987=_0x4ec2b0['commands']['get'](_0x112c89);_0x535803['enableCommand'](_0x112c89,()=>{const _0xfdb343=_0x1d89ae['getSelectionAffectedTableCells'](_0x4ec2b0['model']['document']['selection'])[0x0],_0x388e43=_0xfdb343['findAncestor']('table'),{column:_0x56e3f5,row:_0x5a3ae3}=_0x1d89ae['getCellLocation'](_0xfdb343);let _0x257223=[];if('horizontally'==_0x3e2987['direction']){const _0x52b8e1=_0x1d89ae['createTableWalker'](_0x388e43,{'startRow':_0x5a3ae3,'endRow':_0x5a3ae3,'includeAllSlots':!0x0});_0x257223=Array['from'](_0x52b8e1)['map'](_0x550d06=>_0x550d06['cell']);}else{const _0x288c02=_0x1d89ae['createTableWalker'](_0x388e43,{'column':_0x56e3f5,'includeAllSlots':!0x0});_0x257223=Array['from'](_0x288c02)['map'](_0x2b4991=>_0x2b4991['cell']);}_0x4ec2b0['model']['change'](_0x2e8674=>{_0x535803['markBlockFormat'](_0x2e8674['createRangeOn'](_0xfdb343),{'commandName':_0x112c89,'commandParams':[]},_0x257223,_0x112c89);});});}_0x535803['descriptionFactory']['registerDescriptionCallback'](_0x3d3faa=>{if('formatBlock'!=_0x3d3faa['type']&&'formatInline'!=_0x3d3faa['type'])return;const {data:_0xfe9266}=_0x3d3faa;return _0xfe9266&&'mergeTableCells'==_0xfe9266['commandName']?{'type':'format','content':o(_0x5dbc10,'*Merge\x20cells*')}:void 0x0;}),_0x535803['descriptionFactory']['registerDescriptionCallback'](_0x17d99c=>{if('formatBlock'!=_0x17d99c['type']&&'formatInline'!=_0x17d99c['type'])return;const {data:_0x2bd1f6}=_0x17d99c;return _0x2bd1f6?'splitTableCellVertically'==_0x2bd1f6['commandName']?{'type':'format','content':o(_0x5dbc10,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2bd1f6['commandName']?{'type':'format','content':o(_0x5dbc10,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5b6d9e=_0x22b2eb['_acceptFormatSuggestionCallbackFactory']();for(const _0x270c1b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x535803['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x270c1b,'accept',_0x5b6d9e);for(const _0xdd4448 of['splitTableCellVertically','splitTableCellHorizontally'])_0x535803['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xdd4448,'accept',_0x5b6d9e);_0x535803['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x342b73=>{_0x4ec2b0['model']['change'](_0x32e3c3=>{const _0x2ec655=Array['from'](_0x5d8d4e['getRanges']())['map'](_0x5ce193=>_0x1ccabf['fromRange'](_0x5ce193));_0x32e3c3['setSelection'](_0x342b73),_0x4ec2b0['commands']['get']('mergeTableCells')['refresh'](),_0x4ec2b0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3bbfd3=_0x2ec655['filter'](_0xcc8d9d=>'$graveyard'!=_0xcc8d9d['root']['rootName']);_0x3bbfd3['length']>0x0&&_0x32e3c3['setSelection'](_0x3bbfd3);for(const _0x3a3629 of _0x2ec655)_0x3a3629['detach']();});});for(const _0x2fe433 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1316bb=_0x4ec2b0['commands']['get'](_0x2fe433);_0x1316bb['on']('set:isEnabled',(_0x2e0b53,_0x433d47,_0x1babed)=>{if(_0x1babed){const _0x117072=_0x4ec2b0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3e536c=>_0x3e536c['is']('element','tableCell'));this['_areMergableCells'](_0x1316bb['value'],_0x117072)||(_0x2e0b53['return']=!0x1,_0x2e0b53['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x283b96=this['editor']['commands']['get']('mergeTableCells'),_0x5ec9ac=this['editor']['plugins']['get']('TableUtils');if(!_0x283b96['isEnabled'])return!0x1;const _0x14892f=_0x5ec9ac['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1c633b of _0x14892f)for(const _0x2d527c of _0x14892f)if(_0x1c633b!=_0x2d527c&&!this['_areMergableCells'](_0x1c633b,_0x2d527c))return!0x1;return!0x0;}['_areMergableCells'](_0x2ab6f8,_0x161047){const _0x3d09dd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d7345=this['editor']['model']['createRangeOn'](_0x2ab6f8),_0x1092d7=this['editor']['model']['createRangeOn'](_0x161047),_0x4c4d75=new Set(),_0x3f34db=new Set();for(const _0x34896a of _0x3d09dd['getSuggestions']())if(('insertion'==_0x34896a['type']||'deletion'==_0x34896a['type']||'mergeTableCells'==_0x34896a['subType'])&&_0x34896a['isInContent']){for(const _0x361891 of _0x34896a['getRanges']())_0x361891['containsRange'](_0x3d7345,!0x0)&&_0x4c4d75['add'](_0x34896a['type']+':'+_0x34896a['author']['id']),_0x361891['containsRange'](_0x1092d7,!0x0)&&_0x3f34db['add'](_0x34896a['type']+':'+_0x34896a['author']['id']);}if(_0x4c4d75['size']!=_0x3f34db['size'])return!0x1;for(const _0x344d4f of _0x4c4d75)if(!_0x3f34db['has'](_0x344d4f))return!0x1;return!0x0;}}class At extends _0x1a8994{static get['requires'](){return[jt];}['afterInit'](){const _0x29b3ff=this['editor'];if(!_0x29b3ff['plugins']['has']('TableEditing'))return;const _0x3b7b91=_0x29b3ff['locale'],_0xd68779=_0x29b3ff['plugins']['get']('TrackChangesEditing');_0xd68779['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xd68779['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xd68779['registerBlockAttribute']('headingRows'),_0xd68779['registerBlockAttribute']('headingColumns'),_0xd68779['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3b7b91,'FORMAT_HEADER_ROW')),_0xd68779['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3b7b91,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4e9497=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e6bbb=this['editor']['plugins']['get']('TableUtils'),_0x43b63c=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x7672ff({showActiveMarker:_0x537085=!0x0,setDataAttribute:_0x5c384d=!0x0}={}){return(_0x42f2d0,_0x1416c2,_0x34e90e)=>{const {type:_0xdf58a8,id:_0x297983}=_0x4e9497['_splitMarkerName'](_0x1416c2['markerName']),_0x50f4de=_0x4e9497['getSuggestion'](_0x297983),_0x299551=_0x50f4de['data'];if('formatBlock'!=_0x50f4de['type']||!_0x299551||'setTableColumnHeader'!=_0x299551['commandName'])return;if(_0x1416c2['item'])return void _0x42f2d0['stop']();if(!_0x34e90e['consumable']['consume'](_0x1416c2['markerRange'],_0x42f2d0['name']))return;const _0x39b8ac=_0x1416c2['markerRange']['start']['nodeAfter'],_0x252580=_0x1416c2['markerRange']['end']['nodeBefore'],_0x480034=_0x39b8ac['parent']['parent'],{column:_0x501457}=_0x2e6bbb['getCellLocation'](_0x39b8ac),{column:_0x40a48d}=_0x2e6bbb['getCellLocation'](_0x252580);for(let _0x13721b=_0x501457;_0x13721b<=_0x40a48d;_0x13721b++){const _0x265b34=_0x2e6bbb['createTableWalker'](_0x480034,{'column':_0x13721b,'includeAllSlots':!0x1});for(const _0x2f200a of _0x265b34){const _0x4daf00=_0x2f200a['cell'],_0x1ea779=_0x34e90e['mapper']['toViewElement'](_0x4daf00);_0x34e90e['writer']['addClass']('ck-suggestion-marker-'+_0xdf58a8,_0x1ea779),_0x5c384d&&_0x34e90e['writer']['setAttribute']('data-suggestion',_0x297983,_0x1ea779),_0x34e90e['mapper']['bindElementToMarker'](_0x1ea779,_0x1416c2['markerName']),_0x537085&&(_0x4e9497['activeMarkers']['includes'](_0x1416c2['markerName'])?_0x34e90e['writer']['addClass']('ck-suggestion-marker--active',_0x1ea779):_0x34e90e['writer']['removeClass']('ck-suggestion-marker--active',_0x1ea779));}}};}_0x4e9497['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x43b63c),_0x4e9497['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x43b63c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x7672ff(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2bef9a,_0x39ca9a,_0x63359b)=>{_0x63359b['options']['showSuggestionHighlights']&&_0x7672ff({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2bef9a,_0x39ca9a,_0x63359b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x58304e,_0x10c550,_0x49c320)=>{const {type:_0x5801a9,id:_0x495bae}=_0x4e9497['_splitMarkerName'](_0x10c550['markerName']),_0x1c63e7=_0x4e9497['getSuggestion'](_0x495bae),_0x278668=_0x1c63e7['data'];if('formatBlock'!=_0x1c63e7['type']||!_0x278668||'setTableColumnHeader'!=_0x278668['commandName'])return;const _0x39e058=_0x49c320['mapper']['markerNameToElements'](_0x10c550['markerName']);if(_0x39e058){for(const _0x26ab64 of _0x39e058)_0x49c320['writer']['removeClass']('ck-suggestion-marker-'+_0x5801a9,_0x26ab64),_0x49c320['writer']['removeClass']('ck-suggestion-marker--active',_0x26ab64),_0x49c320['writer']['removeAttribute']('data-suggestion',_0x26ab64),_0x49c320['mapper']['unbindElementFromMarkerName'](_0x26ab64,_0x10c550['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x198d1e=this['editor'],_0x56fff=_0x198d1e['locale'];function _0x4f48ea(_0x287754){return{'type':'format','content':o(_0x56fff,'*Format:*\x20%0',_0x287754)};}_0x198d1e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2863d6=>{if('formatBlock'!=_0x2863d6['type'])return;const {data:_0x9169c5}=_0x2863d6;if(_0x9169c5){if('setTableRowHeader'==_0x9169c5['commandName']){const _0x24539b=_0x9169c5['commandParams'][0x0]['forceValue'];return _0x4f48ea(o(_0x56fff,_0x24539b?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x9169c5['commandName']){const _0x2a76c0=_0x9169c5['commandParams'][0x0]['forceValue'];return _0x4f48ea(o(_0x56fff,_0x2a76c0?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x10db71=>[_0x10db71,null]));class It extends _0x1a8994{static get['requires'](){return[jt];}['afterInit'](){const _0x359f19=this['editor'];if(!_0x359f19['plugins']['has']('TableClipboard'))return;const _0x4a6a68=_0x359f19['plugins']['get']('TrackChangesEditing'),_0x1a0785=_0x359f19['plugins']['get']('TableUtils'),_0x41f2f3=_0x359f19['plugins']['get'](jt),_0x1494c9=_0x359f19['plugins']['get']('TableClipboard');_0x41f2f3['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x359f19['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x359f19['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x321450=null;_0x359f19['model']['on']('insertContent',(_0x542aa8,_0x9aeaa)=>{const [_0x117286,_0x4a3788]=_0x9aeaa,_0x26603a=_0x9aeaa[_0x9aeaa['length']-0x1];_0x26603a&&_0x26603a['forceDefaultExecution']||_0x4a6a68['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4986a5,_0x430e1b,_0x26c3b1,_0x559c0b,_0x59ea64){if(_0x430e1b&&!_0x430e1b['is']('documentSelection'))return!0x1;const _0x207c14=_0x59ea64['getTableIfOnlyTableInContent'](_0x4986a5,_0x26c3b1);if(!_0x207c14||!he(_0x207c14,void 0x0,_0x559c0b))return!0x1;const _0x192870=_0x559c0b['getSelectionAffectedTableCells'](_0x26c3b1['document']['selection']);if(!_0x192870['length'])return!0x1;const _0x410748=_0x192870[0x0]['findAncestor']('table'),_0x1e0ffc=_0x559c0b['getRowIndexes'](_0x192870),_0x253c8d=_0x559c0b['getColumnIndexes'](_0x192870),_0x49b4ac={'startRow':_0x1e0ffc['first'],'endRow':_0x1e0ffc['last'],'startColumn':_0x253c8d['first'],'endColumn':_0x253c8d['last']};return 0x1==_0x192870['length']&&(_0x49b4ac['endRow']+=_0x559c0b['getRows'](_0x207c14)-0x1,_0x49b4ac['endColumn']+=_0x559c0b['getColumns'](_0x207c14)-0x1),he(_0x410748,_0x49b4ac,_0x559c0b);}(_0x117286,_0x4a3788,_0x359f19['model'],_0x1a0785,_0x1494c9)&&(_0x542aa8['stop'](),_0x321450={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x359f19['model']['change'](()=>{_0x359f19['model']['insertContent'](_0x9aeaa[0x0],_0x9aeaa[0x1],_0x9aeaa[0x2],{'forceDefaultExecution':!0x0});const _0x512ead=_0x16a8ea(),{rowInsertionRanges:_0x28770c,columnInsertionRanges:_0x48b56c,insertionRanges:_0x27ea16,deletionRanges:_0x2d7700,cells:_0xa97700}=_0x321450;_0x28770c['length']&&_0x4a6a68['markMultiRangeInsertion'](_0x28770c,'tablePasteRow',{'tablePasteChainId':_0x512ead}),_0x48b56c['length']&&_0x4a6a68['markMultiRangeInsertion'](_0x48b56c,'tablePasteColumn',{'tablePasteChainId':_0x512ead}),_0x27ea16['length']&&(_0x4a6a68['markMultiRangeInsertion'](_0x27ea16,'tablePaste',{'tablePasteChainId':_0x512ead,'skipNestingCheck':!0x0}),_0x27ea16['forEach'](_0x13c326=>_0x13c326['detach']?.())),_0x2d7700['length']&&(_0x4a6a68['markMultiRangeDeletion'](_0x2d7700,'tablePaste',{'tablePasteChainId':_0x512ead,'skipNestingCheck':!0x0}),_0x2d7700['forEach'](_0x366ec4=>_0x366ec4['detach']?.()));const _0x2b0e9d=_0x4a6a68['markMultiRangeBlockFormat'](_0xa97700['map'](({element:_0x426866})=>_0x426866),{'formatGroupId':_0x16a8ea()},[],'tablePasteCell',{'tablePasteChainId':_0x512ead});if(_0x2b0e9d){const _0x563525=_0x2b0e9d['getMarkers'](),_0x4f7d2b=[];for(const {element:_0x264e56,attributes:_0x2705fe}of _0xa97700){if(!_0x2705fe)continue;const _0x69f84d=_0x359f19['model']['createRangeOn'](_0x264e56),_0x2e36f0=_0x563525['find'](_0x195d04=>_0x195d04['getRange']()['isEqual'](_0x69f84d));_0x2e36f0&&_0x4f7d2b['push']([_0x2e36f0['name'],_0x2705fe]);}_0x4f7d2b['length']&&_0x2b0e9d['setAttribute']('markerAttributes',Object['fromEntries'](_0x4f7d2b));}_0x321450=null;}));},{'priority':_0x123409['high']+0xa}),_0x359f19['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x618608,_0x5c8e67)=>{const [_0x5eb059,_0x586361,,_0x146828]=_0x5c8e67;if(!_0x321450)return;_0x618608['stop']();const _0x9a4129=_0x5eb059['cell'],_0x33c1fe=_0x586361,_0x4490a4=Pe(_0x9a4129),_0x2a13e6=Pe(_0x33c1fe);_0x618608['return']=_0x9a4129;let _0x1730e2=null,_0x15c08e=null;if(_0x2a13e6||_0x4490a4){if(_0x4490a4&&!_0x2a13e6){_0x146828['remove'](_0x9a4129['getChild'](0x0));for(const _0x5f39d0 of Array['from'](_0x33c1fe['getChildren']()))_0x146828['insert'](_0x5f39d0,_0x9a4129,'end');const _0x408970=_0x321450['rowInsertionIndexes']['includes'](_0x5eb059['row']),_0x51f4c1=_0x321450['columnInsertionIndexes']['includes'](_0x5eb059['column']);_0x408970||_0x51f4c1||(_0x1730e2=_0x1ccabf['fromRange'](_0x146828['createRangeIn'](_0x9a4129)));}else _0x2a13e6&&!_0x4490a4&&(_0x15c08e=_0x146828['createRangeIn'](_0x9a4129));}else{const _0x150419=_0x146828['createElement']('tableCellSuggestion'),_0x5c7c46=_0x146828['createElement']('tableCellSuggestion');_0x146828['wrap'](_0x146828['createRangeIn'](_0x9a4129),_0x5c7c46),_0x146828['insert'](_0x150419,_0x9a4129,0x0);for(const _0x377e48 of Array['from'](_0x33c1fe['getChildren']()))_0x146828['insert'](_0x377e48,_0x150419,'end');_0x1730e2=_0x1ccabf['fromRange'](_0x146828['createRangeOn'](_0x150419)),_0x15c08e=_0x1ccabf['fromRange'](_0x146828['createRangeOn'](_0x5c7c46));}const _0xeca0ad=Array['from'](_0x33c1fe['getAttributes']())['filter'](([_0x22b250])=>ge['includes'](_0x22b250));_0x321450['cells']['push']({'element':_0x9a4129,'attributes':_0xeca0ad['length']?Object['fromEntries'](_0xeca0ad):null}),_0x1730e2&&_0x321450['insertionRanges']['push'](_0x1730e2),_0x15c08e&&_0x321450['deletionRanges']['push'](_0x15c08e);},{'priority':'high'}),_0x1a0785['on']('insertColumns',(_0x56a8c8,_0x2bd0f5)=>{const [_0x1f5930,_0xd0d307={}]=_0x2bd0f5;if(!_0x321450)return;const _0x1f415d=_0xd0d307['at']||0x0,_0x1fbfd5=_0xd0d307['columns']||0x1;_0x321450['columnInsertionIndexes']=new Array(_0x1fbfd5)['fill'](_0x1f415d)['map']((_0x27276f,_0x443034)=>_0x27276f+_0x443034);for(const {cell:_0x95af1b}of _0x1a0785['createTableWalker'](_0x1f5930,{'startColumn':_0x1f415d,'endColumn':_0x1f415d+_0x1fbfd5-0x1}))_0x321450['columnInsertionRanges']['push'](_0x359f19['model']['createRangeOn'](_0x95af1b));},{'priority':'low'}),_0x1a0785['on']('insertRows',(_0x137a09,_0x644527)=>{const [_0x2c7a90,_0x1246fd={}]=_0x644527;if(!_0x321450)return;const _0x1c99b=_0x1246fd['at']||0x0,_0x26d9b8=_0x1246fd['rows']||0x1;_0x321450['rowInsertionIndexes']=new Array(_0x26d9b8)['fill'](_0x1c99b)['map']((_0x7baa97,_0x3f8f08)=>_0x7baa97+_0x3f8f08);for(const {cell:_0x313dce}of _0x1a0785['createTableWalker'](_0x2c7a90,{'startRow':_0x1c99b,'endRow':_0x1c99b+_0x26d9b8-0x1}))_0x321450['rowInsertionRanges']['push'](_0x359f19['model']['createRangeOn'](_0x313dce));},{'priority':'low'}),_0x4a6a68['descriptionFactory']['registerDescriptionCallback'](_0x441c8b=>{if(_0x441c8b['subType']&&_0x441c8b['subType']['startsWith']('tablePaste'))return _0x441c8b['previous']?{}:{'type':'insertion','content':o(_0x359f19['locale'],'*Replace\x20table\x20cells*')};});const _0xdee064=()=>!0x1;for(const _0x34b25f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4a6a68['_suggestionFactory']['registerCustomCallback']('insertion',_0x34b25f,'join',_0xdee064),_0x4a6a68['_suggestionFactory']['registerCustomCallback']('deletion',_0x34b25f,'join',_0xdee064),_0x4a6a68['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x34b25f,'join',_0xdee064);_0x4a6a68['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xdee064),_0x4a6a68['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4e3f2f,_0x1b89e8,_0x39879b)=>{const _0x3ccb3c=_0x4e3f2f['map'](_0x7a39f9=>_0x7a39f9['getContainedElement']())['filter'](_0x5a3851=>_0x5a3851),_0x5e661f=new Map(_0x3ccb3c['map'](_0x4b630d=>[_0x4b630d,null]));if(_0x321450){for(const {element:_0x2eee3a,attributes:_0x508101}of _0x321450['cells'])_0x508101&&_0x5e661f['set'](_0x2eee3a,_0x508101);}else{if(_0x39879b&&_0x39879b['markerAttributes'])for(const [_0x1ffb9b,_0x106b95]of Object['entries'](_0x39879b['markerAttributes'])){const _0x1ec5f4=_0x359f19['model']['markers']['get'](_0x1ffb9b),_0x41b7df=_0x1ec5f4?_0x1ec5f4['getRange']()['getContainedElement']():null;_0x41b7df&&_0x5e661f['set'](_0x41b7df,_0x106b95);}}_0x359f19['model']['change'](_0x2096f9=>{for(const [_0x48ece5,_0x4f8f17]of _0x5e661f)_0x2096f9['setAttributes']({...Ce,..._0x4f8f17},_0x48ece5);});});const _0x1fbca3=(_0x9eb3f9,_0x2fdf8f)=>{_0x4a6a68['_suggestionFactory']['registerCustomCallback'](_0x9eb3f9,'tablePaste',_0x2fdf8f,(_0xf69992,_0xa35c3f,_0x3e5d03)=>{_0x359f19['model']['change'](_0x5c85b4=>{const _0x37b01c=[];for(const _0x171df3 of _0xf69992){const _0x2b71f2=_0x171df3['start']['nodeAfter'];_0x2b71f2['is']('element','tableCellSuggestion')&&_0x37b01c['push'](_0x2b71f2);}_0x4a6a68['_suggestionFactory']['getSuggestionCallback'](_0x9eb3f9,null,_0x2fdf8f)(_0xf69992,_0xa35c3f,_0x3e5d03);for(const _0x314c28 of _0x37b01c)'$graveyard'!=_0x314c28['root']['rootName']&&_0x5c85b4['unwrap'](_0x314c28);});});};_0x1fbca3('insertion','accept'),_0x1fbca3('insertion','discard'),_0x1fbca3('deletion','accept'),_0x1fbca3('deletion','discard'),_0x4a6a68['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x68a852=>{const _0x252f89=_0x68a852['map'](_0x71b499=>_0x71b499['getContainedElement']()),_0x28456c=_0x252f89[0x0]['findAncestor']('table'),{minRow:_0x1c5a73,maxRow:_0x1e6005}=_0x41f2f3['_getCoordsForCells'](_0x252f89);_0x1a0785['removeRows'](_0x28456c,{'at':_0x1c5a73,'rows':_0x1e6005-_0x1c5a73+0x1});}),_0x4a6a68['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2d91cf=>{const _0x44c0fe=_0x2d91cf['map'](_0x5d5e61=>_0x5d5e61['getContainedElement']()),_0x9b6aa1=_0x44c0fe[0x0]['findAncestor']('table'),{minColumn:_0x13ce9a,maxColumn:_0x287fe0}=_0x41f2f3['_getCoordsForCells'](_0x44c0fe);_0x1a0785['removeColumns'](_0x9b6aa1,{'at':_0x13ce9a,'columns':_0x287fe0-_0x13ce9a+0x1});});const _0x3ec2be=(_0x2aa99c,_0xb90fe9)=>{if(!_0xb90fe9['subType']||!_0xb90fe9['subType']['startsWith']('tablePaste'))return;const _0x2c2363=_0xb90fe9['attributes']['tablePasteChainId'],_0x3a4e0f=_0x4a6a68['getSuggestions']()['filter'](_0xe8adab=>_0xe8adab['isInContent']&&_0xe8adab['attributes']&&_0xe8adab['attributes']['tablePasteChainId']==_0x2c2363);_0x3a4e0f['length']&&_0xb90fe9['getAllAdjacentSuggestions']()['length']!=_0x3a4e0f['length']&&_0x3a4e0f['reduce']((_0x5319d7,_0x5cb74e)=>(_0x5319d7['next']=_0x5cb74e,_0x5cb74e['previous']=_0x5319d7,_0x5cb74e));};function _0x43c0fe(_0x26855e,_0x4d4ce3=!0x0){const {id:_0x3331b8}=_0x4a6a68['_splitMarkerName'](_0x26855e['markerName']),_0x4bd8fa=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x7e8418=_0x4a6a68['activeMarkers']['includes'](_0x26855e['markerName']);return _0x7e8418&&_0x4bd8fa['push']('ck-suggestion-marker--active'),{'classes':_0x4bd8fa,'attributes':{'data-suggestion':_0x3331b8},'priority':_0x7e8418&&_0x4d4ce3?0xbc2:0xbb8};}_0x4a6a68['on']('suggestionLoaded',_0x3ec2be,{'priority':'high'}),_0x4a6a68['on']('suggestionUnloaded',_0x3ec2be,{'priority':'high'}),_0x359f19['model']['document']['registerPostFixer'](()=>{let _0x5e2959=!0x1;const _0x17cbe5=Array['from'](_0x359f19['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e7e73,data:_0x1b7fa3}of _0x17cbe5){const {group:_0x1656f4,type:_0x3adaf0,id:_0x57e6ad}=_0x4a6a68['_splitMarkerName'](_0x4e7e73);if('suggestion'!=_0x1656f4||'deletion'!=_0x3adaf0||_0x1b7fa3['oldRange'])continue;if(!_0x4a6a68['hasSuggestion'](_0x57e6ad))continue;const _0x14e12b=_0x4a6a68['getSuggestion'](_0x57e6ad)['getRanges'](),_0x3a1030=_0x359f19['plugins']['get']('Users')['me'];for(const _0x1ed779 of _0x4a6a68['getSuggestions']()){if(!_0x1ed779['isInContent']||_0x1ed779['author']!=_0x3a1030)continue;if('formatBlock'!=_0x1ed779['type']||'tablePasteCell'!=_0x1ed779['subType'])continue;if(_0x1ed779['getRanges']()['every'](_0x42f218=>_0x14e12b['some'](_0x1b8ddc=>_0x1b8ddc['containsRange'](_0x42f218,!0x0)))){for(const _0x2172da of _0x1ed779['getAllAdjacentSuggestions']())_0x2172da['isInContent']&&(_0x2172da['discard'](),_0x5e2959=!0x0);}}}return _0x5e2959;}),_0x359f19['model']['document']['registerPostFixer'](_0x1b2904=>{const _0x50e33e=_0x359f19['commands']['get']('redo');if(!_0x50e33e||!_0x50e33e['_createdBatches']['has'](_0x1b2904['batch']))return!0x1;let _0x479f7b=!0x1;const _0x5e555c=_0x359f19['plugins']['get']('Users')['me'],_0x2bee7d=_0x359f19['model']['document']['differ']['getChanges'](),_0x34166b=Array['from'](_0x359f19['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2696cb,data:_0x513f97})=>{const {group:_0x568770,subType:_0x3d6245,authorId:_0x5aa206}=_0x4a6a68['_splitMarkerName'](_0x2696cb);return'suggestion'==_0x568770&&'tablePaste'==_0x3d6245&&_0x5aa206==_0x5e555c['id']&&!_0x513f97['oldRange'];});for(const _0x1a2eb1 of _0x2bee7d){if('insert'!=_0x1a2eb1['type']||'tableCellSuggestion'!=_0x1a2eb1['name']||0x1!=_0x1a2eb1['length'])continue;const _0x2a2174=_0x1b2904['createRange'](_0x1a2eb1['position'],_0x1a2eb1['position']['getShiftedBy'](0x1));if(!_0x34166b['find'](({data:_0x21ff41})=>_0x21ff41['newRange']['isEqual'](_0x2a2174))){for(const {name:_0xb940c9,data:_0x54a2bf}of _0x34166b)if(_0x2a2174['containsRange'](_0x54a2bf['newRange'])){_0x1b2904['updateMarker'](_0xb940c9,{'range':_0x2a2174}),_0x479f7b=!0x0;break;}}}return _0x479f7b;}),_0x359f19['model']['document']['registerPostFixer'](_0x520d8f=>{let _0x5cc408=!0x1;const _0x1ddf87=_0x359f19['plugins']['get']('Users')['me'],_0x4fa897=_0x4a6a68['getSuggestions']()['filter'](_0x156c01=>_0x156c01['isInContent']&&_0x156c01['author']==_0x1ddf87),_0x429e60=new Set(),_0x18c1fe=new Set();for(const _0x1d3703 of _0x4fa897)if('tablePaste'==_0x1d3703['subType'])for(const _0x256270 of _0x1d3703['getMarkers']()){const _0x52c062=_0x256270['getRange']()['getContainedElement']();if(_0x52c062){if(_0x52c062['is']('element','tableCellSuggestion')&&Pe(_0x52c062)){_0x1d3703['removeMarker'](_0x256270['name']),_0x429e60['add'](_0x52c062),_0x5cc408=!0x0;const _0x71262a=_0x52c062['nextSibling'],_0x389952=_0x52c062['previousSibling'],_0x528172=_0x71262a&&_0x71262a['is']('element','tableCellSuggestion'),_0x10ca2e=_0x389952&&_0x389952['is']('element','tableCellSuggestion');_0x528172&&!_0x429e60['has'](_0x71262a)&&_0x18c1fe['add'](_0x71262a),_0x10ca2e&&!_0x429e60['has'](_0x389952)&&_0x18c1fe['add'](_0x389952);}else _0x52c062['is']('element','paragraph')&&_0x52c062['isEmpty']&&(_0x1d3703['removeMarker'](_0x256270['name']),_0x5cc408=!0x0);}}else{if('tablePasteCell'==_0x1d3703['subType']){if(!_0x1d3703['attributes']||!_0x1d3703['attributes']['tablePasteChainId'])continue;const _0x37fa08=_0x1d3703['attributes']['markerAttributes'];if(_0x37fa08&&Object['keys'](_0x37fa08)['length'])continue;const _0x4a8934=_0x1d3703['attributes']['tablePasteChainId'];let _0x21c41e=!0x0,_0x1cc7b8=!0x0;for(const _0x26ebbc of _0x4fa897)if(_0x26ebbc['subType']&&_0x26ebbc['subType']['startsWith']('tablePaste')){if(!_0x26ebbc['attributes']['tablePasteChainId']){_0x1cc7b8=!0x1;break;}if(_0x26ebbc['id']!=_0x1d3703['id']&&_0x26ebbc['attributes']['tablePasteChainId']==_0x4a8934){_0x21c41e=!0x1;break;}}_0x1cc7b8&&_0x21c41e&&(_0x1d3703['removeMarkers'](),_0x5cc408=!0x0);}}for(const _0x4b9692 of _0x429e60)_0x520d8f['remove'](_0x4b9692);for(const _0x23708b of _0x18c1fe)_0x520d8f['unwrap'](_0x23708b);return _0x5cc408;}),_0x359f19['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3cd042,_0x587bdd)=>_0x43c0fe(_0x3cd042),'converterPriority':'high'}),_0x359f19['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x57c918,_0x3a6563)=>_0x3a6563['options']['showSuggestionHighlights']?_0x43c0fe(_0x57c918,!0x1):null,'converterPriority':'high'});const _0x26ca69=_0x359f19['editing']['view'];this['listenTo'](_0x26ca69['document'],'clipboardOutput',(_0x16ddb2,_0x1965fe)=>{const _0x3bdf7c=[];for(const _0x10c51f of _0x26ca69['createRangeIn'](_0x1965fe['content'])['getItems']())_0x10c51f['is']('element','suggestion-td')&&_0x3bdf7c['push'](_0x10c51f);_0x26ca69['change'](_0x51ff46=>{for(const _0x5c75df of _0x3bdf7c)_0x51ff46['move'](_0x51ff46['createRangeIn'](_0x5c75df),_0x51ff46['createPositionBefore'](_0x5c75df)),_0x51ff46['remove'](_0x5c75df);});});}}function Pe(_0x5e4bbd){if(_0x5e4bbd['isEmpty'])return!0x0;const _0x520879=_0x5e4bbd['getChild'](0x0);return _0x520879['is']('element','paragraph')&&_0x520879['isEmpty'];}function he(_0x3fd7c2,_0x372471={},_0x594c1b){for(const {isAnchor:_0x2d6071,cellHeight:_0x1c91d0,cellWidth:_0xbaf43a}of _0x594c1b['createTableWalker'](_0x3fd7c2,{'includeAllSlots':!0x0,..._0x372471}))if(!_0x2d6071||0x1!=_0x1c91d0||0x1!=_0xbaf43a)return!0x1;return!0x0;}class vt extends _0x1a8994{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3a60ce=this['editor']['plugins']['get']('TrackChangesEditing');_0x3a60ce['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3a60ce['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3a60ce['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3a60ce['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3a60ce['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3a60ce['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x32aefd,_0x49bb27){const _0x35f9df=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c9cc6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x738efa=_0x49bb27['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x30ed66=_0x5c9cc6['getColumnGroupElement'](_0x738efa);let _0x1053da=_0x30ed66?_0x5c9cc6['getTableColumnsWidths'](_0x30ed66):null,_0xdca654=_0x738efa['getAttribute']('tableWidth')||null;const _0x1d7ecd=_0x49bb27['tableWidth']||_0xdca654,_0x46be7e=_0x49bb27['columnWidths']||_0x1053da,_0x3efb38=this['editor']['plugins']['get']('Users')['me'];for(const _0x3f1490 of _0x35f9df['getSuggestions']()){const _0x410a96=_0x3f1490['getContainedElement']();if('resizeTable'===_0x3f1490['subType']&&_0x410a96===_0x738efa){_0x3f1490['author']!==_0x3efb38&&_0x3f1490['discard']();const _0x19db89=_0x3f1490['data']['commandParams'];_0xdca654=_0x19db89[0x0]['tableWidth'],_0x1053da=_0x19db89[0x0]['columnWidths'];break;}}_0x32aefd({'table':_0x738efa,'tableWidth':_0x1d7ecd,'columnWidths':_0x46be7e}),_0x35f9df['markBlockFormat'](_0x738efa,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xdca654,'columnWidths':_0x1053da}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x204f5d){if('formatBlock'!=_0x204f5d['type']&&'formatInline'!=_0x204f5d['type'])return;const {data:_0x12f890}=_0x204f5d;if(_0x12f890&&'resizeTable'===_0x12f890['formatGroupId']){const _0x40a4cc='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x40a4cc)};}}}class Ct extends _0x1a8994{['afterInit'](){const _0x157efc=this['editor'];_0x157efc['plugins']['has']('Template')&&_0x157efc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x1a8994{['afterInit'](){const _0x13e645=this['editor'];if(!_0x13e645['commands']['get']('insertTableOfContents'))return;_0x13e645['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x51de72=_0x13e645['plugins']['get']('TrackChangesEditing'),_0x2a5fab=_0x13e645['locale'];_0x51de72['descriptionFactory']['registerElementLabel']('tableOfContents',_0x8e75d4=>o(_0x2a5fab,'ELEMENT_TABLE_OF_CONTENTS',_0x8e75d4));}}class Dt extends _0x1a8994{['afterInit'](){const _0x25ec37=this['editor'];if(!_0x25ec37['plugins']['has']('Title'))return;const _0x2d78bf=_0x25ec37['plugins']['get']('TrackChangesEditing');_0x2d78bf['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x25ec37['locale'],'ELEMENT_TITLE')),_0x25ec37['model']['document']['registerPostFixer'](_0x4c524a=>{let _0x22beb3=!0x1;const _0x4956df=Array['from'](_0x25ec37['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x167fa8,data:_0x4f50c8}of _0x4956df){const {group:_0x3119d0}=_0x2d78bf['_splitMarkerName'](_0x167fa8);if('suggestion'!==_0x3119d0||!_0x4f50c8['newRange'])continue;const _0x440dbc=_0x4f50c8['newRange'],_0x17f8c4=_0x440dbc['end']['nodeBefore'];if(!_0x17f8c4||!_0x17f8c4['is']('element','title-content'))continue;if(!_0x440dbc['start']['isTouching'](_0x440dbc['end']))continue;const _0x25e3b4=_0x25ec37['model']['schema']['getNearestSelectionRange'](_0x440dbc['end'],'forward');if(_0x25e3b4&&_0x25e3b4['isCollapsed']){const _0x53acd4=_0x4c524a['createRange'](_0x440dbc['start'],_0x25e3b4['start']);_0x53acd4['isEqual'](_0x440dbc)||(_0x4c524a['updateMarker'](_0x167fa8,{'range':_0x53acd4}),_0x22beb3=!0x0);}_0x22beb3||(_0x4c524a['removeMarker'](_0x167fa8),_0x22beb3=!0x0);}return _0x22beb3;});}}class Nt extends _0x1a8994{['afterInit'](){const _0x581b73=this['editor'],_0x235f17=_0x581b73['plugins']['get']('TrackChangesEditing');_0x581b73['plugins']['has']('UndoEditing')&&(_0x235f17['enableCommand']('undo'),_0x235f17['enableCommand']('redo'));}}class Mt extends _0x1a8994{static get['requires'](){return[jt];}['afterInit'](){const _0x10faef=this['editor'];if(!_0x10faef['plugins']['has']('TableCaptionEditing'))return;_0x10faef['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x1a8994{['tableProperties'];['tableCellProperties'];constructor(_0x27cf4c){super(_0x27cf4c),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 _0x2e365c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x316ead of this['tableProperties'])_0x2e365c['enableCommand'](_0x316ead,(_0x2fa802,_0x2e676e)=>{const _0x3c8b06=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x316ead,[_0x3c8b06],this['tableProperties'],'tableProperties',_0x2fa802,_0x2e676e);});_0x2e365c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2e365c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2e365c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5c2a5d,_0x22f5e2)=>this['handleDiscardAction'](this['tableProperties'],_0x5c2a5d,_0x22f5e2)),_0x2e365c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x466d79 of this['tableCellProperties'])_0x2e365c['enableCommand'](_0x466d79,(_0x48c107,_0x1b9227)=>{const _0x192196=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x466d79,_0x192196,this['tableCellProperties'],'tableCellProperties',_0x48c107,_0x1b9227);});_0x2e365c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2e365c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2e365c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2981dd,_0x421e2f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2981dd,_0x421e2f)),_0x2e365c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2e365c['descriptionFactory']['registerDescriptionCallback'](_0xba6faa=>this['handleSuggestionDescription'](_0xba6faa));}['_handlePropertyChange'](_0x532121,_0xa229d9,_0xeade31,_0x523339,_0x9fd39d,_0x30e5e4){const _0x39f2ad=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x30e5e4['batch'],()=>{for(const _0x138c6f of _0xa229d9){if(this['_getSuggestion'](_0x138c6f,_0x523339))_0x9fd39d(_0x30e5e4);else{const _0x551c93={};for(const _0x5c743d of _0xeade31){const _0x13ed48=_0x138c6f['getAttribute'](_0x5c743d);void 0x0!==_0x13ed48&&(_0x551c93[_0x5c743d]=_0x13ed48);}_0x9fd39d(_0x30e5e4),_0x39f2ad['markBlockFormat'](_0x138c6f,{'commandParams':[_0x551c93]},[],_0x523339);}}});}['handleDiscardAction'](_0xae2310,_0x2079e4,_0x861d01){const _0x256a62=_0x2079e4[0x0]['start']['nodeAfter'],_0x5b5533=_0x861d01['commandParams'][0x0];this['editor']['model']['change'](_0x5083d0=>{for(const _0xb846e0 of _0xae2310)void 0x0!==_0x5b5533[_0xb846e0]?_0x5083d0['setAttribute'](_0xb846e0,_0x5b5533[_0xb846e0],_0x256a62):_0x5083d0['removeAttribute'](_0xb846e0,_0x256a62);});}['handleSuggestionDescription'](_0x4ddd86){if(_0x4ddd86['data'])switch(_0x4ddd86['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'](_0x5a566e,_0x17e0e4){const _0x48f09d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x30d48c of _0x48f09d['getSuggestions']({'skipNotAttached':!0x0})){const _0x67caf=_0x30d48c['getContainedElement']();if(_0x30d48c['subType']===_0x17e0e4&&_0x67caf===_0x5a566e)return _0x30d48c;}return null;}}const m='$elementName';class p extends _0x1a8994{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x22b829,_0x3aa298,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(_0x4f73dd){function _0xcb504c(_0x24ab1b){return _0x24ab1b['map'](_0x54167e=>String['fromCharCode'](_0x54167e))['join']('');}super(_0x4f73dd),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4fbec0,_0x464ea4,_0x205d52,_0x5d2f5e)=>{this['_model']['change'](()=>{for(const _0x14e992 of[..._0x5d2f5e,..._0x205d52])this['_model']['markers']['has'](_0x14e992)&&_0x4f73dd['editing']['reconvertMarker'](_0x14e992);});}),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']=_0x4f73dd['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(),_0x4f73dd['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4f73dd['config']['get']('trackChanges.trackFormatChanges'),_0x4f73dd['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4f73dd['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x4f73dd,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0xcb504c([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xcb504c([0x34,0x30,0x34,0x38,0x31,0x32,0x34,0x34]);}['init'](){const _0x4dea2e=this['editor'],_0x187ce8=(_0x5c84b0,_0x53c775)=>{if('attribute'!=_0x5c84b0)return'ck-suggestion-marker-'+_0x5c84b0;const _0xfbb73b=_0x53c775['split']('|')[0x0];return this['_isBlockAttribute'](_0xfbb73b)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4dea2e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1b3a67=>{const {id:_0x1558d7,type:_0x249bc9,subType:_0x4b5ab9}=this['_splitMarkerName'](_0x1b3a67['markerName']),_0xa91747=['ck-suggestion-marker',_0x187ce8(_0x249bc9,_0x4b5ab9)];let _0x3f70dd=0xbb8;return this['activeMarkers']['includes'](_0x1b3a67['markerName'])&&(_0xa91747['push']('ck-suggestion-marker--active'),_0x3f70dd=0xbc2),'deletion'==_0x249bc9&&(_0x3f70dd+=0x5),{'classes':_0xa91747,'attributes':{'data-suggestion':_0x1558d7},'priority':_0x3f70dd};}}),_0x4dea2e['conversion']['for']('dataDowncast')['add'](_0x599b2e=>{_0x599b2e['on']('addMarker:suggestion',(_0x5bef24,_0x1f8de7,_0x57c868)=>{if(!_0x57c868['options']['showSuggestionHighlights'])return;const _0x1b4b8d=_0x1f8de7['item'];if(!_0x1b4b8d)return;const _0x1b243a=_0x57c868['mapper']['toViewElement'](_0x1b4b8d);_0x4dea2e['model']['schema']['isObject'](_0x1b4b8d)&&_0x1b243a&&!_0x1b243a['getCustomProperty']('widget')&&_0x1b243a['is']('containerElement')&&_0x2ee72b(_0x1b243a,_0x57c868['writer']);},{'priority':'high'});}),_0x4dea2e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3a98d7,_0x12143b)=>{if(!_0x12143b['options']['showSuggestionHighlights'])return null;const {type:_0x56f037,subType:_0x39f34a}=this['_splitMarkerName'](_0x3a98d7['markerName']);return{'classes':['ck-suggestion-marker',_0x187ce8(_0x56f037,_0x39f34a)],'priority':0xbb8};}});const _0x14ffba=({showActiveMarkers:_0x734d8e=!0x0,isAttributeSuggestion:_0x5a312c=!0x1}={})=>(_0x39bf34,_0x1eadac,_0x1587f2)=>{if(!_0x1eadac['item'])return;const {id:_0x79b90b}=this['_splitMarkerName'](_0x1eadac['markerName']);if(_0x5a312c){const _0x54f260=this['_suggestions']['get'](_0x79b90b),_0x14a325=this['_getAttributeKey'](_0x54f260);if(!this['_isBlockAttribute'](_0x14a325))return;}if(_0x1eadac['item']['is']('selection'))return void _0x1587f2['consumable']['consume'](_0x1eadac['item'],_0x39bf34['name']);const _0x40bb0c=_0x1587f2['mapper']['toViewElement'](_0x1eadac['item']);if(_0x1eadac['item']['is']('element')&&_0x4dea2e['model']['schema']['isBlock'](_0x1eadac['item'])&&!_0x40bb0c['getCustomProperty']('addHighlight')){_0x1587f2['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x40bb0c),_0x1587f2['writer']['setAttribute']('data-suggestion',_0x79b90b,_0x40bb0c),_0x1587f2['mapper']['bindElementToMarker'](_0x40bb0c,_0x1eadac['markerName']),_0x734d8e&&(this['activeMarkers']['includes'](_0x1eadac['markerName'])?_0x1587f2['writer']['addClass']('ck-suggestion-marker--active',_0x40bb0c):_0x1587f2['writer']['removeClass']('ck-suggestion-marker--active',_0x40bb0c));for(const _0x365949 of _0x4dea2e['model']['createRangeIn'](_0x1eadac['item'])['getItems']())_0x1587f2['consumable']['consume'](_0x365949,_0x39bf34['name']);_0x1587f2['consumable']['consume'](_0x1eadac['item'],_0x39bf34['name']);}};_0x4dea2e['conversion']['for']('dataDowncast')['add'](_0x2e0712=>{_0x2e0712['on']('addMarker:suggestion:formatBlock',(_0x39b959,_0x3d5012,_0x4d68f4)=>{_0x4d68f4['options']['showSuggestionHighlights']&&_0x14ffba({'showActiveMarkers':!0x1})(_0x39b959,_0x3d5012,_0x4d68f4);},{'priority':'highest'});}),_0x4dea2e['conversion']['for']('dataDowncast')['add'](_0x1a5c8a=>{_0x1a5c8a['on']('addMarker:suggestion:attribute',(_0x1034c5,_0x5a43ec,_0x2aac85)=>{_0x2aac85['options']['showSuggestionHighlights']&&_0x14ffba({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1034c5,_0x5a43ec,_0x2aac85);},{'priority':'highest'});}),_0x4dea2e['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x135be7,_0x3dbe01)=>_0x3dbe01['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x135be7['substr'](0xb)}}),_0x4dea2e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x59882a,{writer:_0x98196e})=>{let _0x1b51ea='suggestion:'+_0x59882a['getAttribute']('suggestion-type')+':'+_0x59882a['getAttribute']('id');return _0x59882a['getAttribute']('marker-count')&&(_0x1b51ea+=':'+_0x59882a['getAttribute']('marker-count')),_0x98196e['createElement']('$marker',{'data-name':_0x1b51ea});}}),_0x4dea2e['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4dea2e['conversion']['for']('editingDowncast')['add'](_0x1b04d1=>{_0x1b04d1['on']('addMarker:suggestion:formatBlock',_0x14ffba(),{'priority':'high'});}),_0x4dea2e['conversion']['for']('editingDowncast')['add'](_0x27f5b7=>{_0x27f5b7['on']('addMarker:suggestion:attribute',_0x14ffba({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4dea2e['conversion']['for']('editingDowncast')['add'](_0x240d26=>{_0x240d26['on']('removeMarker:suggestion:formatBlock',(_0x186d77,_0xa7cbc9,_0x304ac7)=>{const _0x96bd51=_0x304ac7['mapper']['markerNameToElements'](_0xa7cbc9['markerName']);if(_0x96bd51){for(const _0xb47d53 of _0x96bd51)_0xb47d53['getCustomProperty']('addHighlight')||(_0x304ac7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xb47d53),_0x304ac7['writer']['removeAttribute']('data-suggestion',_0xb47d53),_0x304ac7['mapper']['unbindElementFromMarkerName'](_0xb47d53,_0xa7cbc9['markerName']));}},{'priority':'high'});}),_0x4dea2e['conversion']['for']('editingDowncast')['add'](_0x4a0f71=>{_0x4a0f71['on']('removeMarker:suggestion:attribute',(_0x48d972,_0x5cb299,_0x2db98e)=>{const _0xd5b87c=_0x2db98e['mapper']['markerNameToElements'](_0x5cb299['markerName']);if(!_0xd5b87c)return;const {id:_0x384344}=this['_splitMarkerName'](_0x5cb299['markerName']),_0x4a8089=this['_suggestions']['get'](_0x384344),_0x513ee6=this['_getAttributeKey'](_0x4a8089);if(this['_isBlockAttribute'](_0x513ee6)){for(const _0x5f4e8b of _0xd5b87c)_0x5f4e8b['getCustomProperty']('addHighlight')||(_0x2db98e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5f4e8b),_0x2db98e['writer']['removeAttribute']('data-suggestion',_0x5f4e8b),_0x2db98e['mapper']['unbindElementFromMarkerName'](_0x5f4e8b,_0x5cb299['markerName']));}},{'priority':'high'});}),_0x4dea2e['model']['document']['registerPostFixer'](_0x36f7d3=>{let _0x59e0a5=!0x1;const _0x4d3596=Array['from'](_0x4dea2e['model']['document']['differ']['getChangedMarkers']()),_0x4c2933=new Set();for(const {name:_0x524762,data:_0x79ce46}of _0x4d3596){const {group:_0x28cb9b,type:_0x19ae7f,subType:_0x2ece92,id:_0x8bf601}=this['_splitMarkerName'](_0x524762);if('suggestion'!==_0x28cb9b)continue;const _0x5618ce=this['_suggestions']['get'](_0x8bf601);if(null!=_0x79ce46['newRange']){'formatInline'==_0x19ae7f&&(_0x59e0a5=_0x59e0a5||Et(_0x79ce46['newRange'],_0x524762,_0x36f7d3,_0x4dea2e['model']['schema']));const _0xef34f0='attribute'==_0x19ae7f&&this['_isBlockAttribute'](_0x2ece92['split']('|')[0x0]);if(_0x79ce46['newRange']['isCollapsed']||'$graveyard'==_0x79ce46['newRange']['root']['rootName']||'formatBlock'==_0x19ae7f&&!Ut(_0x79ce46['newRange'])||_0xef34f0&&!Ut(_0x79ce46['newRange'])||'deletion'==_0x19ae7f&&!(!Tt(_0x1815c3=_0x79ce46['newRange'])&&!function(_0x810ce9){return _0x810ce9['start']['parent']==_0x810ce9['end']['nodeBefore']&&_0x810ce9['start']['isAtEnd'];}(_0x1815c3)))_0x36f7d3['removeMarker'](_0x524762),_0x59e0a5=!0x0;else{if(!_0x5618ce||!_0x5618ce['isInContent'])continue;_0x4c2933['add'](_0x5618ce);}}}var _0x1815c3;return _0x4c2933['size']>0x0&&(_0x59e0a5=!!this['_joinWithAdjacentSuggestions'](_0x4c2933)||_0x59e0a5),_0x59e0a5;}),_0x4dea2e['model']['document']['registerPostFixer'](_0x2cf03b=>{let _0xd6b35b=!0x1;for(const _0x236c4e of _0x4dea2e['model']['document']['differ']['getChanges']())if('insert'==_0x236c4e['type'])for(const _0x2024d3 of this['_suggestions']['values']()){if(_0x2024d3['isMultiRange']||!_0x2024d3['isInContent'])continue;const _0x4a2775='formatBlock'==_0x2024d3['type'],_0x5ebe48=this['_getAttributeKey'](_0x2024d3),_0x49c639=_0x5ebe48&&this['_isBlockAttribute'](_0x5ebe48);if(!_0x4a2775&&!_0x49c639)continue;const _0x544a90=_0x2024d3['getFirstRange']();if(_0x544a90['start']['parent']!=_0x544a90['end']['parent']&&!_0x544a90['end']['isAtEnd']){const _0x18ee50=_0x4dea2e['model']['createPositionAt'](_0x544a90['start']['nodeAfter'],'end'),_0x5fd7d1=_0x4dea2e['model']['createRange'](_0x544a90['start'],_0x18ee50);_0x2cf03b['updateMarker'](_0x2024d3['getFirstMarker'](),{'range':_0x5fd7d1}),_0xd6b35b=!0x0;}}return _0xd6b35b;}),_0x4dea2e['model']['document']['registerPostFixer'](_0x251dde=>this['_processAttributeChanges'](_0x251dde)),_0x4dea2e['model']['document']['registerPostFixer'](_0x42a955=>!_0x42a955['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x42a955)),_0x4dea2e['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4dea2e['model']['document']['on']('change:data',(_0x26e520,_0x48c186)=>{if(!_0x48c186['isLocal']||_0x48c186['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2e3205=_0x4dea2e['model']['document']['differ']['getChanges']();if(0x0==_0x2e3205['length'])return;const _0x1a8289=[],_0x3ab744=_0x2e3205['filter'](_0x5bf68c=>'attribute'==_0x5bf68c['type']),_0x58270f=_0x2e3205['filter'](_0x971880=>'insert'==_0x971880['type']&&'$text'!=_0x971880['name']);for(const _0x2b3308 of _0x3ab744)this['_isRegisteredAttribute'](_0x2b3308['attributeKey'])&&_0x1a8289['push']({'key':_0x2b3308['attributeKey'],'newValue':_0x2b3308['attributeNewValue'],'oldValue':_0x2b3308['attributeOldValue'],'range':Ot(_0x2b3308['range'],_0x4dea2e['model'])});for(const _0x61f539 of _0x58270f){if('rename'!=_0x61f539['action']&&'refresh'!=_0x61f539['action'])continue;const _0x4f852e=Gt(_0x61f539['position']['nodeAfter'],_0x4dea2e['model']),_0x4dc805=_0x61f539['before'];'rename'==_0x61f539['action']&&_0x1a8289['push']({'key':m,'newValue':_0x61f539['name'],'oldValue':_0x4dc805['name'],'range':_0x4f852e});for(const [_0xde50c1,_0x219cd4]of _0x4dc805['attributes']){if(!this['_isRegisteredAttribute'](_0xde50c1))continue;const _0x34d17a=_0x61f539['attributes']['get'](_0xde50c1);_0x219cd4!==_0x34d17a&&_0x1a8289['push']({'key':_0xde50c1,'newValue':_0x34d17a,'oldValue':_0x219cd4,'range':_0x4f852e});}for(const [_0x4fb523,_0x3ff87b]of _0x61f539['attributes'])this['_isRegisteredAttribute'](_0x4fb523)&&(_0x4dc805['attributes']['has'](_0x4fb523)||_0x1a8289['push']({'key':_0x4fb523,'newValue':_0x3ff87b,'oldValue':null,'range':_0x4f852e}));}0x0!=_0x1a8289['length']&&_0x4dea2e['model']['enqueueChange'](_0x48c186,_0x1d5262=>{const _0x471e78=_0x16a8ea();for(const {range:_0x217eed,key:_0x4a4371,oldValue:_0x103980,newValue:_0x333aa2}of _0x1a8289)this['markAttributeChange'](_0x217eed,_0x4a4371,_0x103980,_0x333aa2,{'groupId':_0x471e78});this['_reduceExistingSuggestions'](_0x1d5262,_0x1a8289);});},{'priority':'lowest'}),_0x4dea2e['model']['markers']['on']('update:suggestion',(_0x75db41,_0x5d233f,_0xb8524)=>{if(null==_0xb8524){const {id:_0x7ef308}=this['_splitMarkerName'](_0x5d233f['name']),_0x10bf80=this['_suggestions']['get'](_0x7ef308);_0x10bf80&&_0x10bf80['addMarkerName'](_0x5d233f['name']);}}),_0x4dea2e['model']['document']['on']('change:data',()=>{const _0xf9a003=Array['from'](_0x4dea2e['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5a93b7=>'suggestion'===this['_splitMarkerName'](_0x5a93b7['name'])['group']);if(0x0===_0xf9a003['length'])return;_0xf9a003['sort']((_0x144e22,_0x31d88a)=>{const _0x343fdd=_0x144e22['data']['oldRange'],_0x212c2e=_0x31d88a['data']['oldRange'];return null===_0x343fdd&&null===_0x212c2e?0x0:null===_0x343fdd&&null!==_0x212c2e?-0x1:null!==_0x343fdd&&null===_0x212c2e?0x1:_0x343fdd['start']['isBefore'](_0x212c2e['start'])?-0x1:0x1;});const _0x8fd262=new Set(),_0x5f02a5=new Set();for(const {name:_0x5bb738,data:_0x37e443}of _0xf9a003){const {id:_0x485f00}=this['_splitMarkerName'](_0x5bb738);if(null===_0x37e443['oldRange']){const _0x5070fc=this['_handleNewSuggestionMarker'](_0x5bb738);_0x5f02a5['add'](_0x5070fc);}else{const _0x3b222f=this['_suggestions']['get'](_0x485f00);null!==_0x37e443['newRange']||_0x3b222f['isInContent']?(_0x8fd262['add'](_0x3b222f['head']),_0x5f02a5['add'](_0x3b222f)):this['_removeSuggestion'](_0x3b222f);}}_0x5f02a5['size']>0x0&&this['_refreshSuggestionsChain'](_0x5f02a5);for(const _0x2af3df of _0x8fd262)this['fire']('suggestionChanged',_0x2af3df);}),_0x4dea2e['model']['on']('applyOperation',(_0x455090,_0x59336c)=>{const _0xc54fca=_0x59336c[0x0];if(!this['_suggestions']['size'])return;if(!_0xc54fca['isDocumentOperation'])return;if(_0xc54fca['batch']['isUndo']||!_0xc54fca['batch']['isLocal'])return;let _0x28f2cb,_0x18a0ec;switch(_0xc54fca['type']){case'insert':_0x28f2cb=_0x4dea2e['model']['createPositionAt'](_0xc54fca['position']),_0x18a0ec=_0x28f2cb['getShiftedBy'](_0xc54fca['howMany']);break;case'split':_0x28f2cb=_0x4dea2e['model']['createPositionAt'](_0xc54fca['splitPosition']),_0x18a0ec=_0x4dea2e['model']['createPositionAt'](_0xc54fca['moveTargetPosition']);break;case'move':_0x28f2cb=_0x4dea2e['model']['createPositionAt'](_0xc54fca['targetPosition']),_0x18a0ec=_0x28f2cb['getShiftedBy'](_0xc54fca['howMany']);break;default:return;}const _0x14442c=_0x4dea2e['model']['createRange'](_0x28f2cb,_0x18a0ec);_0x4dea2e['model']['change'](()=>{for(const {suggestion:_0x117d0e,meta:_0x10fb45}of this['_findSuggestions'](_0x14442c)){if(_0x117d0e['isMultiRange'])continue;if('formatInline'==_0x117d0e['type'])continue;const _0x3ec778=this['_getAttributeKey'](_0x117d0e);if(_0x3ec778&&this['_isBlockAttribute'](_0x3ec778)&&'split'!=_0xc54fca['type'])continue;const _0x1bb869=_0x117d0e['data']&&_0x117d0e['data']['multipleBlocks'];('formatBlock'!=_0x117d0e['type']||'split'==_0xc54fca['type']&&!_0x1bb869)&&(_0x10fb45['containsRangeInObject']||'insertion'==_0x117d0e['type']&&_0x10fb45['isOwn']||_0x117d0e['getFirstRange']()['containsRange'](_0x14442c)&&this['_breakSuggestionMarker'](_0x117d0e,_0x28f2cb,_0x18a0ec));}});},{'priority':'lowest'}),_0x4dea2e['model']['on']('deleteContent',(_0x1d0a63,_0x315a1a)=>{const _0x3ae332=_0x315a1a[0x0],_0x4da6f0=_0x315a1a[0x1];if(_0x4da6f0&&_0x4da6f0['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3ae332['isCollapsed'])return;const _0x308fe7=_0x4dea2e['model']['schema'],{start:_0x3a0319,end:_0x291d19}=_0x3ae332['getFirstRange'](),_0xf5723a=_0x3a0319['nodeAfter']&&_0x308fe7['isLimit'](_0x3a0319['nodeAfter'])?null:_0x308fe7['getNearestSelectionRange'](_0x3a0319,'forward'),_0x53361e=_0x291d19['nodeBefore']&&_0x308fe7['isLimit'](_0x291d19['nodeBefore'])?null:_0x308fe7['getNearestSelectionRange'](_0x291d19,'backward'),_0x106ea7=_0x4dea2e['model']['createRange'](_0xf5723a?_0xf5723a['start']:_0x3a0319,_0x53361e?_0x53361e['end']:_0x291d19);_0x4dea2e['model']['change'](_0x2be139=>{this['markDeletion'](_0x106ea7);const _0x5d0d53=_0x4dea2e['model']['schema']['getNearestSelectionRange'](_0x106ea7['start']);_0x3ae332['is']('documentSelection')?_0x2be139['setSelection'](_0x5d0d53):_0x3ae332['setTo'](_0x5d0d53);}),_0x1d0a63['stop']();},{'priority':_0x123409['normal']+0xa}),_0x4dea2e['model']['on']('insertContent',(_0x22959f,_0x45f2ba)=>{const _0x2b460b=_0x45f2ba[_0x45f2ba['length']-0x1];_0x2b460b&&_0x2b460b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4dea2e['model']['change'](()=>{let _0x2e311f=_0x4dea2e['model']['insertContent'](_0x45f2ba[0x0],_0x45f2ba[0x1],_0x45f2ba[0x2],{'forceDefaultExecution':!0x0});if(!_0x2e311f)return;_0x22959f['return']=_0x2e311f['clone']();const _0x16b19c=_0x2e311f['end']['nodeBefore'],_0x11c0b4=_0x4dea2e['model']['schema'];_0x16b19c&&_0x11c0b4['isBlock'](_0x16b19c)&&!_0x11c0b4['isObject'](_0x16b19c)&&(_0x2e311f=_0x4dea2e['model']['createRange'](_0x2e311f['start'],_0x4dea2e['model']['createPositionAt'](_0x16b19c,'end'))),this['markInsertion'](_0x2e311f);}),_0x22959f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x34f2da=new $(_0x4dea2e,this['_suggestions']);_0x4dea2e['commands']['add']('acceptSuggestion',_0x34f2da),this['enableCommand']('acceptSuggestion');const _0x14cd95=new B(_0x4dea2e,this['_suggestions']);_0x4dea2e['commands']['add']('discardSuggestion',_0x14cd95),this['enableCommand']('discardSuggestion'),_0x4dea2e['commands']['add']('acceptAllSuggestions',new x(_0x4dea2e,_0x34f2da,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4dea2e['commands']['add']('discardAllSuggestions',new x(_0x4dea2e,_0x14cd95,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4dea2e['commands']['add']('acceptSelectedSuggestions',new R(_0x4dea2e,_0x34f2da,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4dea2e['commands']['add']('discardSelectedSuggestions',new R(_0x4dea2e,_0x14cd95,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x147432=_0x4dea2e['plugins']['get']('CommentsRepository');this['listenTo'](_0x147432,'addComment',(_0x3e307e,{threadId:_0x59ec14})=>{const _0x196637=this['_suggestions']['get'](_0x59ec14);_0x196637&&_0x196637['commentThread']&&0x1===_0x196637['commentThread']['length']&&this['_updateSuggestionData'](_0x59ec14,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x147432,'removeComment',(_0x46d560,{threadId:_0x459a09})=>{const _0xdf9e8e=this['_suggestions']['get'](_0x459a09);_0xdf9e8e&&_0xdf9e8e['commentThread']&&!_0xdf9e8e['commentThread']['length']&&this['_updateSuggestionData'](_0x459a09,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x17f98d){if(this['_adapter'])throw new _0xe1a238('track-changes-adapter-already-set',this);this['_adapter']=_0x17f98d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x396fb9=!0x1,toJSON:_0x28600b=!0x1}={}){const _0x20ddb1=[];for(const _0x270cbc of this['_suggestions']['values']())_0x396fb9&&!_0x270cbc['isInContent']||_0x20ddb1['push'](_0x270cbc);return _0x28600b?_0x20ddb1['map'](_0x277416=>_0x277416['toJSON']()):_0x20ddb1;}['getSuggestion'](_0x4eaac7){const _0x2e7a56=this['_suggestions']['get'](_0x4eaac7);if(!_0x2e7a56)throw new _0xe1a238('track-changes-suggestion-not-found',this);return _0x2e7a56;}['hasSuggestion'](_0x368244){return this['_suggestions']['has'](_0x368244);}['addSuggestionData'](_0x2657e2){const {authorId:_0x1bd10f,id:_0x3bc26d,attributes:_0x5a4a0a}=_0x2657e2,[_0x555b54,_0x182381]=_0x2657e2['type']['split'](':'),_0x551044=this['_suggestions']['get'](_0x3bc26d)||this['_createSuggestion'](_0x555b54,_0x182381,_0x3bc26d,_0x1bd10f,_0x5a4a0a);if(this['_addThreadToSuggestion'](_0x551044),this['_checkSuggestionCorrectness'](_0x551044,_0x555b54,_0x182381||null,_0x1bd10f),_0x551044['createdAt']=_0x2657e2['createdAt'],_0x551044['_isDataLoaded']=!0x0,_0x5a4a0a&&_0x5a4a0a['@external']){const _0xdd67ed=_0x5a4a0a['@external'],_0x2ade5d=this['_getExternalAuthor'](_0xdd67ed['authorName']);_0x551044['authoredAt']=_0xdd67ed['createdAt'],_0x551044['author']=_0x2ade5d,_0x551044['isExternal']=!0x0;}else _0x551044['authoredAt']=_0x2657e2['createdAt'];switch(_0x2657e2['data']&&(_0x551044['data']=_0x2657e2['data']),_0x2657e2['attributes']&&(_0x551044['attributes']=_0x2657e2['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x551044['_saved']=!0x0),this['_suggestionState']['get'](_0x551044)){case'notReady':this['_suggestionState']['set'](_0x551044,'dataReady');break;case'markerReady':_0x551044['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x551044])),this['_refreshSuggestionsChain'](new Set([_0x551044])),this['_suggestionState']['set'](_0x551044,'ready'),this['fire']('suggestionLoaded',_0x551044)):this['_suggestionState']['set'](_0x551044,'removed');}return _0x551044;}['acceptSuggestion'](_0x29459c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x52641e of _0x29459c['getAllAdjacentSuggestions']())_0x52641e['accept']();});});}['discardSuggestion'](_0x1fdd3a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x407726 of _0x1fdd3a['getAllAdjacentSuggestions']())_0x407726['discard']();});});}['enableCommand'](_0x26add1,_0x5eb5c6){const _0x2f3b80=this['editor']['commands']['get'](_0x26add1);if(!_0x2f3b80)throw new _0xe1a238('track-changes-command-not-found',this,{'commandName':_0x26add1});if(this['_enabledCommands']['has'](_0x2f3b80))throw new _0xe1a238('track-changes-enable-command-twice',this,{'commandName':_0x26add1});this['_enabledCommands']['add'](_0x2f3b80),_0x5eb5c6&&_0x2f3b80['on']('execute',(_0x2ab018,_0x151278)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x151278['length']>0x0&&_0x151278[_0x151278['length']-0x1]&&_0x151278[_0x151278['length']-0x1]['forceDefaultExecution']?_0x151278['pop']():(_0x2ab018['return']=_0x5eb5c6((..._0x28a147)=>_0x2f3b80['execute'](..._0x28a147,{'forceDefaultExecution':!0x0}),..._0x151278),_0x2ab018['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x275a5c){let _0x5f76e5,_0x3f722f;const _0x5cb1d9=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5f76e5=_0x275a5c();}catch(_0x59b857){_0x3f722f=_0x59b857;}return _0x5cb1d9||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3f722f&&_0xe1a238['rethrowUnexpectedError'](_0x3f722f,this),_0x5f76e5;}['markInsertion'](_0x42b5fb,_0x29bda8=null,_0x4ccdee={}){if(_0x42b5fb['isCollapsed'])return null;const _0x20cab2=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x21ecc2,meta:_0x194342}of this['_findSuggestions'](_0x42b5fb,'insertion'))if(_0x194342['isOwn']){if(!_0x194342['isNextTo']){if(_0x194342['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x21ecc2,_0x4ccdee))continue;return _0x21ecc2;}if(Lt(_0x21ecc2,_0x4ccdee))return _0x21ecc2;this['_breakSuggestionMarker'](_0x21ecc2,_0x42b5fb['start'],_0x42b5fb['end']);break;}if(_0x29bda8==_0x21ecc2['subType']&&Lt(_0x21ecc2,_0x4ccdee)){const _0xc81528=_0x21ecc2['getFirstRange']();return _0xc81528['start']['isEqual'](_0x42b5fb['end'])?this['_setSuggestionRange'](_0x21ecc2,this['_model']['createRange'](_0x42b5fb['start'],_0xc81528['end'])):this['_setSuggestionRange'](_0x21ecc2,this['_model']['createRange'](_0xc81528['start'],_0x42b5fb['end'])),_0x21ecc2;}}const _0x3d8bd7=_0x16a8ea(),_0x29d557=_0x20cab2['id'],_0x55db0f=_0x29bda8?'insertion:'+_0x29bda8:'insertion',_0x4248ef=this['_setSuggestionData']({'id':_0x3d8bd7,'type':_0x55db0f,'createdAt':new Date(),'authorId':_0x29d557,'attributes':_0x4ccdee});return this['_addSuggestionMarker'](_0x55db0f,_0x3d8bd7,_0x29d557,_0x42b5fb),_0x4248ef;}['markMultiRangeInsertion'](_0x54723e,_0x418061='multi',_0x775d3b={}){const _0x43f595=this['editor']['plugins']['get']('Users')['me'],_0x86c356=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x418061,'join');for(const _0x4dde1e of this['getSuggestions']())if(_0x4dde1e['author']['id']==_0x43f595['id']&&'insertion'==_0x4dde1e['type']&&_0x4dde1e['subType']==_0x418061&&Lt(_0x4dde1e,_0x775d3b)&&(_0x86c356(_0x4dde1e['getRanges'](),_0x54723e)||_0x86c356(_0x54723e,_0x4dde1e['getRanges']()))){for(const _0xf5840c of _0x54723e)_0x4dde1e['addRange'](_0xf5840c);return _0x4dde1e;}for(const {suggestion:_0x464961,meta:_0x4b34ab}of this['_findSuggestions'](_0x54723e,'insertion')){if(!_0x4b34ab['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4b34ab['containsRangeInObject'])continue;if(!Lt(_0x464961,_0x775d3b))continue;let _0x265d06=!0x0;for(const _0x197f09 of _0x464961['getRanges']())for(const _0x422508 of _0x54723e)if(!_0x197f09['containsRange'](_0x422508)){_0x265d06=!0x1;break;}if(_0x265d06)return _0x464961;}const _0x4af6aa=_0x16a8ea(),_0x4453fc=_0x43f595['id'],_0x4a4fc9='insertion:'+_0x418061,_0x2a5023=this['_setSuggestionData']({'id':_0x4af6aa,'type':_0x4a4fc9,'createdAt':new Date(),'authorId':_0x4453fc,'attributes':_0x775d3b});for(const _0x35e194 of _0x54723e)this['_addSuggestionMarker'](_0x4a4fc9,_0x4af6aa,_0x4453fc,_0x35e194,u['getMultiRangeId']());return _0x2a5023;}['markInlineFormat'](_0x320857,_0x41b4a7,_0x562730=null,_0x29037a={}){if(_0x562730=_0x562730||Vt(_0x41b4a7),_0x320857['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x10c8e5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x562730,'accept');return this['forceDefaultExecution'](()=>_0x10c8e5([_0x320857],_0x41b4a7,_0x29037a)),null;}const _0x2b7096=this['editor']['plugins']['get']('Users')['me'],_0x54f436=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5ded6b,meta:_0x2f0ea7}of this['_findSuggestions'](_0x320857,'insertion'))_0x2f0ea7['isOwn']&&!_0x2f0ea7['isInsideObject']&&_0x54f436['push'](..._0x5ded6b['getRanges']());}const _0x4e8d8a=function(_0x29fd7f,_0x1c6143){const _0x1859f5=[];for(const _0x165aea of _0x1c6143){const _0x4218b9=_0x29fd7f['getIntersection'](_0x165aea);_0x4218b9&&_0x1859f5['push'](_0x4218b9);}return _0x1859f5;}(_0x320857,_0x54f436),_0x2c8712=function(_0x5a823d,_0x5e44b1){const _0x17a58a=[_0x5a823d];for(const _0x224454 of _0x5e44b1){let _0x56d724=0x0;for(;_0x56d724<_0x17a58a['length'];){const _0x2e782a=_0x17a58a[_0x56d724]['getDifference'](_0x224454);_0x17a58a['splice'](_0x56d724,0x1,..._0x2e782a),_0x56d724+=_0x2e782a['length'];}}return _0x17a58a;}(_0x320857,_0x54f436);_0x4e8d8a['length']&&this['_model']['change'](()=>{for(const _0xdc5f84 of _0x4e8d8a){const _0x58191e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x562730,'accept');this['forceDefaultExecution'](()=>_0x58191e([_0xdc5f84],_0x41b4a7,_0x29037a));}});for(const _0x29352c of _0x2c8712){let _0x4561cc=null,_0x256fea=_0x29352c['start'],_0x403702=_0x29352c['end'];for(const {suggestion:_0x2cd46b,meta:_0x2a1984}of this['_findSuggestions'](_0x29352c,'formatInline')){if(!_0x2a1984['isOwn'])continue;if(_0x2cd46b['subType']!=_0x562730)continue;if(!Lt(_0x2cd46b,_0x29037a))continue;const _0x8e9b76=_0x2cd46b['getFirstRange']();if(_0x8e9b76['containsRange'](_0x29352c,!0x0))return null;_0x256fea=_0x256fea['isBefore'](_0x8e9b76['start'])?_0x256fea:_0x8e9b76['start'],_0x403702=_0x403702['isAfter'](_0x8e9b76['end'])?_0x403702:_0x8e9b76['end'],_0x4561cc?_0x8e9b76['start']['isBefore'](_0x4561cc['getFirstRange']()['start'])?(_0x4561cc['removeMarkers'](),_0x4561cc=_0x2cd46b):_0x2cd46b['removeMarkers']():_0x4561cc=_0x2cd46b;}const _0x17381b=this['_model']['createRange'](_0x256fea,_0x403702);if(_0x4561cc)this['_setSuggestionRange'](_0x4561cc,_0x17381b);else{const _0x3f920c=_0x16a8ea(),_0x1718ad=_0x2b7096['id'];this['_setSuggestionData']({'id':_0x3f920c,'type':'formatInline:'+_0x562730,'data':_0x41b4a7,'createdAt':new Date(),'authorId':_0x1718ad,'attributes':_0x29037a}),this['_addSuggestionMarker']('formatInline:'+_0x562730,_0x3f920c,_0x1718ad,_0x17381b);}}return null;}['markBlockFormat'](_0x6bfe13,_0x3cb1a2,_0x2e7408=[],_0x29357b=null,_0x3df394={}){_0x3cb1a2['formatGroupId']||(_0x3cb1a2['formatGroupId']=_0x3cb1a2['commandName']),_0x3cb1a2['multipleBlocks']=_0x6bfe13['is']('range'),_0x29357b=_0x29357b||Vt(_0x3cb1a2);const _0x139c11=_0x2e7408['map'](_0x43d030=>Gt(_0x43d030,this['_model'])),_0x270c47=_0x6bfe13['is']('range')?_0x6bfe13:Gt(_0x6bfe13,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5c3fe7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29357b,'accept');return this['forceDefaultExecution'](()=>_0x5c3fe7([_0x270c47],_0x3cb1a2,_0x3df394)),null;}_0x139c11['push'](_0x270c47);let _0x215a47=!0x0;for(const _0x51fe5f of _0x139c11)if(!this['_rangeIsInLocalUserInsertion'](_0x51fe5f)){_0x215a47=!0x1;break;}if(_0x215a47&&'always'!==this['_trackFormatChanges']){const _0x8c2a28=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29357b,'accept');return this['forceDefaultExecution'](()=>_0x8c2a28([_0x270c47],_0x3cb1a2,_0x3df394)),null;}let _0xdea4fc=null,_0x5daf09=_0x270c47['start'],_0x1358e1=_0x270c47['end'];for(const {suggestion:_0x3c1afc,meta:_0x37b01b}of this['_findSuggestions'](_0x270c47,'formatBlock')){if(!_0x37b01b['isOwn'])continue;if(_0x37b01b['isNextTo']||_0x37b01b['containsRangeInObject']||_0x37b01b['isInsideObject'])continue;if(_0x3c1afc['data']['formatGroupId']!=_0x3cb1a2['formatGroupId'])continue;if(!Lt(_0x3c1afc,_0x3df394))continue;const _0x5ba7de=_0x3c1afc['getFirstRange']();if(_0x3c1afc['subType']==_0x29357b){if(_0x5ba7de['containsRange'](_0x270c47,!0x0))return null;_0x5daf09=_0x5daf09['isBefore'](_0x5ba7de['start'])?_0x5daf09:_0x5ba7de['start'],_0x1358e1=_0x1358e1['isAfter'](_0x5ba7de['end'])?_0x1358e1:_0x5ba7de['end'],_0xdea4fc?_0x5ba7de['start']['isBefore'](_0xdea4fc['getFirstRange']()['start'])?(_0xdea4fc['removeMarkers'](),_0xdea4fc=_0x3c1afc):_0x3c1afc['removeMarkers']():_0xdea4fc=_0x3c1afc;}else{const _0x5204e9=_0x270c47['getIntersection'](_0x5ba7de);this['_cutOutSuggestionMarker'](_0x3c1afc,_0x5204e9);}}const _0xca0499=this['editor']['plugins']['get']('Users')['me'],_0x5b19fe=_0x16a8ea(),_0x4c7dd3=_0xca0499['id'];if(_0xdea4fc)return this['_setSuggestionRange'](_0xdea4fc,this['_model']['createRange'](_0x5daf09,_0x1358e1)),_0xdea4fc;{const _0xaf34ce=this['_setSuggestionData']({'id':_0x5b19fe,'type':'formatBlock:'+_0x29357b,'data':_0x3cb1a2,'createdAt':new Date(),'authorId':_0x4c7dd3,'attributes':_0x3df394});return this['_addSuggestionMarker']('formatBlock:'+_0x29357b,_0x5b19fe,_0x4c7dd3,this['_model']['createRange'](_0x5daf09,_0x1358e1)),_0xaf34ce;}}['markMultiRangeBlockFormat'](_0x2dcd56,_0x113d25,_0x2a39e4=[],_0x4cd5d3=null,_0x1962a1={}){_0x113d25['formatGroupId']||(_0x113d25['formatGroupId']=_0x113d25['commandName']);const _0x459c25=_0x2dcd56[0x0];_0x113d25['multipleBlocks']=_0x459c25['is']('range'),_0x4cd5d3=_0x4cd5d3||Vt(_0x113d25);const _0x2e3209=_0x2a39e4['map'](_0x1a2493=>Gt(_0x1a2493,this['_model'])),_0x3e6e2c=_0x459c25['is']('range')?_0x2dcd56:_0x2dcd56['map'](_0x10c1fe=>Gt(_0x10c1fe,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2ca871=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4cd5d3,'accept');return this['forceDefaultExecution'](()=>_0x2ca871(_0x3e6e2c,_0x113d25,_0x1962a1)),null;}_0x2e3209['push'](..._0x3e6e2c);let _0x4fe3bb=!0x0;for(const _0x4ed1fb of _0x2e3209)if(!this['_rangeIsInLocalUserInsertion'](_0x4ed1fb)){_0x4fe3bb=!0x1;break;}if(_0x4fe3bb&&'always'!==this['_trackFormatChanges']){const _0x54c3ac=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4cd5d3,'accept');return this['forceDefaultExecution'](()=>_0x54c3ac(_0x3e6e2c,_0x113d25,_0x1962a1)),null;}const _0x301a9e=this['editor']['plugins']['get']('Users')['me'];for(const _0x5c13ff of this['getSuggestions']()){if(_0x5c13ff['author']['id']!=_0x301a9e['id'])continue;if('formatBlock'!=_0x5c13ff['type']||_0x5c13ff['data']['formatGroupId']!=_0x113d25['formatGroupId'])continue;if(!Lt(_0x5c13ff,_0x1962a1))continue;const _0x370a88=_0x5c13ff['subType']==_0x4cd5d3;for(let _0x1837a0=0x0;_0x1837a0<_0x3e6e2c['length'];_0x1837a0++){const _0x37c11f=_0x3e6e2c[_0x1837a0];for(const _0x1b2b5a of _0x5c13ff['getMarkers']()){const _0x24374e=_0x1b2b5a['getRange']();if(_0x37c11f['isEqual'](_0x24374e)){_0x370a88?(_0x3e6e2c['splice'](_0x1837a0,0x1),_0x1837a0--):_0x5c13ff['removeMarker'](_0x1b2b5a['name']);break;}}}}if(0x0==_0x3e6e2c['length'])return null;const _0x100bbe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4cd5d3,'join');for(const _0x449b95 of this['getSuggestions']())if(_0x449b95['author']['id']==_0x301a9e['id']&&'formatBlock'==_0x449b95['type']&&_0x449b95['data']['formatGroupId']==_0x113d25['formatGroupId']&&_0x449b95['subType']==_0x4cd5d3&&Lt(_0x449b95,_0x1962a1)&&(_0x100bbe(_0x449b95['getRanges'](),_0x3e6e2c)||_0x100bbe(_0x3e6e2c,_0x449b95['getRanges']()))){for(const _0x2a735c of _0x3e6e2c)_0x449b95['addRange'](_0x2a735c);return _0x449b95;}const _0x362e56=_0x16a8ea(),_0x8556be=_0x301a9e['id'],_0x1b3fae='formatBlock:'+_0x4cd5d3,_0x21e038=this['_setSuggestionData']({'id':_0x362e56,'type':_0x1b3fae,'data':_0x113d25,'createdAt':new Date(),'authorId':_0x8556be,'attributes':_0x1962a1});for(const _0x10df9b of _0x3e6e2c)this['_addSuggestionMarker'](_0x1b3fae,_0x362e56,_0x8556be,_0x10df9b,u['getMultiRangeId']());return _0x21e038;}['markDeletion'](_0x59b784,_0x17f77b=null,_0x598dac={}){if(_0x59b784['isCollapsed'])return null;const _0x580d9a=this['editor']['plugins']['get']('Users')['me'],_0x13e6a1=new _0x1ccabf(_0x59b784['start'],_0x59b784['end']);for(const {suggestion:_0x3549fe,meta:_0x23da45}of this['_findSuggestions'](_0x13e6a1,'insertion'))if(_0x23da45['isOwn']&&!_0x23da45['isNextTo']){if(_0x3549fe['isMultiRange']){const _0x348205=_0x3549fe['getRanges']()['filter'](_0x32d3f4=>'$graveyard'!=_0x32d3f4['root']['rootName']);_0x348205['every'](_0x2e6f15=>_0x13e6a1['containsRange'](_0x2e6f15,!0x0))&&_0x3549fe['discard']();if(_0x348205['some'](_0xd1dcdb=>_0xd1dcdb['containsRange'](_0x13e6a1,!0x0))){const _0x1e7d05=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x17f77b,'accept');return this['forceDefaultExecution'](()=>_0x1e7d05([_0x13e6a1],null,_0x598dac)),null;}}else{const _0x1485cc=_0x13e6a1['getIntersection'](_0x3549fe['getFirstRange']());null!==_0x1485cc&&_0x3549fe['_onDiscard']([_0x1485cc],null,_0x598dac);}}if(_0x13e6a1['detach'](),_0x13e6a1['isCollapsed']||'$graveyard'==_0x13e6a1['root']['rootName'])return null;let _0x29bf70=null,_0x5c35cf=_0x13e6a1['start'],_0x24cbc2=_0x13e6a1['end'];const _0x4d3784=this['_findSuggestions'](_0x13e6a1,'deletion');for(const {suggestion:_0x27f669,meta:_0x9498f9}of _0x4d3784){const _0xadee4a=this['_model']['createRange'](_0x5c35cf,_0x24cbc2);if(_0x9498f9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x9498f9['containsRangeInObject']&&!_0x9498f9['isInsideObject'])){if(_0x27f669['isMultiRange']){if(!Lt(_0x27f669,_0x598dac))continue;let _0x13553f=!0x0;for(const _0x5af26d of _0x27f669['getRanges']()){if(_0x5af26d['containsRange'](_0xadee4a,!0x0))return _0x27f669;_0xadee4a['containsRange'](_0x5af26d)||(_0x13553f=!0x1);}_0x13553f&&_0x27f669['discard']();}else{const _0x1e282e=_0x27f669['getFirstRange']();if(_0x1e282e['containsRange'](_0xadee4a,!0x0))return _0x27f669;if(!Lt(_0x27f669,_0x598dac)){_0xadee4a['containsRange'](_0x1e282e)?_0x27f669['removeMarkers']():_0x1e282e['containsPosition'](_0x5c35cf)?_0x5c35cf=_0x1e282e['end']:_0x1e282e['containsPosition'](_0x24cbc2)&&(_0x24cbc2=_0x1e282e['start']);continue;}_0x5c35cf=_0x5c35cf['isBefore'](_0x1e282e['start'])?_0x5c35cf:_0x1e282e['start'],_0x24cbc2=_0x24cbc2['isAfter'](_0x1e282e['end'])?_0x24cbc2:_0x1e282e['end'],_0x598dac=Object['assign']({},_0x27f669['attributes']),_0x29bf70?_0x1e282e['start']['isBefore'](_0x29bf70['getFirstRange']()['start'])?(_0x29bf70['removeMarkers'](),_0x29bf70=_0x27f669):_0x27f669['removeMarkers']():_0x29bf70=_0x27f669;}}}if(_0x29bf70)return this['_setSuggestionRange'](_0x29bf70,this['_model']['createRange'](_0x5c35cf,_0x24cbc2)),_0x29bf70;{const _0x55956c=_0x16a8ea(),_0x20a029=this['_model']['createRange'](_0x5c35cf,_0x24cbc2),_0x4ae1b4=_0x580d9a['id'],_0x39e364=_0x17f77b?'deletion:'+_0x17f77b:'deletion',_0x3bc687=this['_setSuggestionData']({'id':_0x55956c,'type':_0x39e364,'createdAt':new Date(),'authorId':_0x4ae1b4,'attributes':_0x598dac});return this['_addSuggestionMarker'](_0x39e364,_0x55956c,_0x4ae1b4,_0x20a029),_0x3bc687;}}['markMultiRangeDeletion'](_0x433f6e,_0x14ffc6='multi',_0x1995a7={}){const _0x2134e2=this['editor']['plugins']['get']('Users')['me'],_0x55aa84=_0x433f6e['map'](_0x3cd4b7=>new _0x1ccabf(_0x3cd4b7['start'],_0x3cd4b7['end'])),_0x88bb1a=new Set();for(const {suggestion:_0x36a0ce,meta:_0x59f592}of this['_findSuggestions'](_0x55aa84,'insertion'))_0x59f592['isOwn']&&!_0x59f592['isNextTo']&&_0x88bb1a['add'](_0x36a0ce);for(const _0x2ce139 of _0x88bb1a)if(_0x2ce139['isMultiRange']){const _0x184b7e=_0x2ce139['getRanges']();(!_0x2ce139['attributes']||!_0x2ce139['attributes']['skipNestingCheck'])&&(_0x184b7e['every'](_0x12814f=>_0x55aa84['some'](_0x7b1744=>_0x7b1744['containsRange'](_0x12814f,!0x0)))&&_0x2ce139['discard']());if(_0x55aa84['every'](_0x2f9385=>_0x184b7e['some'](_0x5b767d=>_0x5b767d['containsRange'](_0x2f9385,!0x0)))){const _0x257a6a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x14ffc6,'accept');return this['forceDefaultExecution'](()=>_0x257a6a(_0x433f6e,null,_0x1995a7)),null;}}else{const _0x3ee75b=_0x2ce139['getFirstRange']();_0x55aa84['some'](_0x1f3aad=>_0x1f3aad['containsRange'](_0x3ee75b,!0x0))&&_0x2ce139['discard']();if(_0x55aa84['every'](_0x58e164=>_0x3ee75b['containsRange'](_0x58e164,!0x0))){const _0x22f797=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x14ffc6,'accept');return this['forceDefaultExecution'](()=>_0x22f797(_0x55aa84,null,_0x1995a7)),null;}}const _0x1774d5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x14ffc6,'join');let _0x42c72b=null;for(const _0x327a46 of this['getSuggestions']())if(_0x327a46['author']['id']==_0x2134e2['id']&&_0x327a46['isInContent']&&'deletion'==_0x327a46['type']&&_0x327a46['subType']==_0x14ffc6&&Lt(_0x327a46,_0x1995a7)&&(_0x1774d5(_0x327a46['getRanges'](),_0x55aa84)||_0x1774d5(_0x55aa84,_0x327a46['getRanges']()))){if(_0x42c72b){if(_0x327a46['commentThread']&&_0x327a46['commentThread']['length'])continue;for(const _0x3c94d5 of _0x327a46['getRanges']())_0x42c72b['isIntersectingWithRange'](_0x3c94d5)||_0x42c72b['addRange'](_0x3c94d5);_0x327a46['removeMarkers']();}else{_0x42c72b=_0x327a46;for(const _0x4b180d of _0x55aa84)_0x327a46['isIntersectingWithRange'](_0x4b180d)||_0x327a46['addRange'](_0x4b180d);}}if(_0x42c72b)return _0x42c72b;_0x88bb1a['clear']();for(const {suggestion:_0x356404,meta:_0x247496}of this['_findSuggestions'](_0x55aa84,'deletion'))_0x247496['isOwn']&&(this['_mergeNestedSuggestions']||!_0x247496['containsRangeInObject']&&!_0x247496['isInsideObject'])&&Lt(_0x356404,_0x1995a7)&&_0x88bb1a['add'](_0x356404);for(const _0x348b43 of _0x88bb1a){const _0x5ded57=_0x348b43['getRanges']();if(!_0x1995a7||!_0x1995a7['skipNestingCheck']){if(_0x55aa84['every'](_0x50fe7e=>_0x5ded57['some'](_0x1bbf94=>_0x1bbf94['containsRange'](_0x50fe7e,!0x0))))return _0x348b43;}(!_0x348b43['attributes']||!_0x348b43['attributes']['skipNestingCheck'])&&(_0x5ded57['every'](_0x76cfbc=>_0x55aa84['some'](_0x44b29f=>_0x44b29f['containsRange'](_0x76cfbc,!0x0)))&&_0x348b43['discard']());}const _0x4da0b3=_0x16a8ea(),_0x587d81=_0x2134e2['id'],_0x25d1b3='deletion:'+_0x14ffc6,_0x216a03=this['_setSuggestionData']({'id':_0x4da0b3,'type':_0x25d1b3,'createdAt':new Date(),'authorId':_0x587d81,'attributes':_0x1995a7});for(const _0x3d6d94 of _0x55aa84)_0x3d6d94['detach'](),_0x3d6d94['isCollapsed']||'$graveyard'==_0x3d6d94['root']['rootName']||this['_addSuggestionMarker'](_0x25d1b3,_0x4da0b3,_0x587d81,_0x3d6d94,u['getMultiRangeId']());return _0x216a03;}['markAttributeChange'](_0x3a347a,_0xc7a5f3,_0x5ed601,_0x117191,_0x4497f0){if(_0x3a347a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x27609e=this['editor']['plugins']['get']('Users')['me']['id'],_0x3809da=Array['from'](this['_suggestions']['values']())['filter'](_0x348ae9=>'attribute'==_0x348ae9['type']&&_0x348ae9['data']['key']==_0xc7a5f3&&_0x348ae9['isIntersectingWithRange'](_0x3a347a));if('default'===this['_trackFormatChanges']){const _0x4faeb6=this['_findSuggestions'](_0x3a347a,'insertion')['filter'](({meta:_0x45ba0b})=>_0x45ba0b['isOwn']&&!_0x45ba0b['isInsideObject']&&!_0x45ba0b['isNextTo'])['map'](({suggestion:_0x27e79b})=>_0x27e79b);_0x3809da['unshift'](..._0x4faeb6);}const _0x4f1f07=new Map([[_0x3a347a,_0x5ed601]]);for(const _0xd31fa9 of _0x3809da){const _0xa14239='attribute'==_0xd31fa9['type']?_0xd31fa9['data']['oldValue']:void 0x0,_0x5c240c=_0xd31fa9['getFirstRange'](),_0x20c910=Array['from'](_0x4f1f07['keys']())['find'](_0x587160=>_0x587160['isIntersecting'](_0x5c240c));if(!_0x20c910)continue;const _0x3a6b85=_0x20c910['getDifference'](_0x5c240c);this['_isBlockAttribute'](_0xc7a5f3)&&'insertion'==_0xd31fa9['type']&&0x0!=_0x3a6b85['length']||(_0x4f1f07['delete'](_0x20c910),_0x3a6b85['forEach'](_0x2335c7=>{_0x4f1f07['set'](_0x2335c7,_0x5ed601);}),'insertion'!=_0xd31fa9['type']&&_0xa14239!=_0x117191&&_0x4f1f07['set'](_0x20c910['getIntersection'](_0x5c240c),_0xa14239));}const _0x366acf=[];for(const [_0x391a82,_0x4e3722]of _0x4f1f07){const _0x314002=_0x16a8ea(),_0x28ff75={'key':_0xc7a5f3,'oldValue':_0x4e3722,'newValue':_0x117191};_0xc7a5f3['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':_0xc7a5f3});const _0xffeac1=('attribute:'+(_0xc7a5f3+'|'+Vt({'newValue':_0x117191})))['substring'](0x0,0x3c),_0x908d2e=this['_setSuggestionData']({'id':_0x314002,'type':_0xffeac1,'data':_0x28ff75,'createdAt':new Date(),'authorId':_0x27609e,'attributes':_0x4497f0});_0x366acf['push'](_0x908d2e),this['_addSuggestionMarker'](_0xffeac1,_0x314002,_0x27609e,_0x391a82);}return _0x366acf;}['enableDefaultAttributesIntegration'](_0x3f425c){this['enableCommand'](_0x3f425c,(_0x1d8034,..._0x300721)=>{this['_recordAttributeChanges'](()=>{_0x1d8034(..._0x300721);});});}['registerBlockAttribute'](_0x5a0435){this['_blockAttributeKeys']['add'](_0x5a0435);}['registerInlineAttribute'](_0x1d9d08){this['_inlineAttributeKeys']['add'](_0x1d9d08);}['_getAttributeKey'](_0x3dd845){return'attribute'==_0x3dd845['type']?_0x3dd845['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3566c5,_0x24520b){const _0x2e43b6=_0x3566c5['getFirstMarker']();this['_model']['change'](_0x27601c=>{_0x27601c['updateMarker'](_0x2e43b6,{'range':_0x24520b});});}['_addThreadToSuggestion'](_0x5ac541){const _0x2cdf90=_0x5ac541['id'],_0x1c8529=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2cdf90)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1c8529,'threadId':_0x2cdf90,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5daca8=this['_commentsRepository']['getCommentThread'](_0x2cdf90);_0x5daca8['unbind']('isRemovable'),_0x5daca8['isRemovable']=!0x1,_0x5ac541['commentThread']=_0x5daca8;}['_checkSuggestionCorrectness'](_0xb7b5d6,_0x462764,_0x40df90,_0x243c35){if(_0xb7b5d6['type']!=_0x462764||_0xb7b5d6['subType']!=_0x40df90||_0xb7b5d6['creator']['id']!=_0x243c35)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xe1a238('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5bbfc8,_0x576ff8){const _0x994727=_0x5bbfc8['getFirstRange']();if(_0x576ff8['isEqual'](_0x994727))_0x5bbfc8['removeMarkers']();else{if(_0x994727['containsRange'](_0x576ff8)){const _0x40a94b=this['_model']['createPositionAt'](_0x576ff8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5bbfc8,this['_model']['createRange'](_0x994727['start'],_0x40a94b));const _0x52fa98=_0x16a8ea(),_0x20a3ac=_0x5bbfc8['creator']['id'],_0x3eeea4=_0x5bbfc8['type']+':'+_0x5bbfc8['subType'];this['_setSuggestionData']({'id':_0x52fa98,'type':_0x3eeea4,'createdAt':new Date(),'authorId':_0x20a3ac,'data':_0x5bbfc8['data'],'attributes':_0x5bbfc8['attributes']});const _0x14483b=this['_model']['createPositionAt'](_0x576ff8['end']['parent'],'after'),_0x48d80e=this['_model']['createRange'](_0x14483b,_0x994727['end']);this['_addSuggestionMarker'](_0x3eeea4,_0x52fa98,_0x20a3ac,_0x48d80e);}else{if(_0x994727['containsPosition'](_0x576ff8['start'])){const _0x50ba63=this['_model']['createPositionAt'](_0x576ff8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5bbfc8,this['_model']['createRange'](_0x994727['start'],_0x50ba63));}else{const _0x36036d=this['_model']['createPositionAt'](_0x576ff8['end']['parent'],'after');this['_setSuggestionRange'](_0x5bbfc8,this['_model']['createRange'](_0x36036d,_0x994727['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4ab2cb){for(const {suggestion:_0x5e7538,meta:_0x42972b}of this['_findSuggestions'](_0x4ab2cb,'insertion')){if(!_0x42972b['isOwn'])continue;const _0x199eb2=_0x5e7538['getRanges']();for(const _0x1ccc79 of _0x199eb2)if(!_0x4ab2cb['getDifference'](_0x1ccc79)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xf34896){const _0x48b084=this['editor']['plugins']['get']('Users')['getUser'](_0xf34896);if(!_0x48b084)throw new _0xe1a238('track-changes-user-not-found',this);return _0x48b084;}['_getExternalAuthor'](_0x1355a8){const _0x1de1c3=this['editor']['plugins']['get']('Users'),_0x1371e5=_0x44e8df('external:'+_0x1355a8),_0x52f31d=_0x1de1c3['getUser'](_0x1371e5);return _0x52f31d||_0x1de1c3['addUser']({'id':_0x1371e5,'name':_0x1355a8});}['_createSuggestion'](_0x39362b,_0x1cb7b1,_0xae87b0,_0x3ef65f,_0x3b1ac3){const _0x30ebbe=this['_getAuthorFromId'](_0x3ef65f),_0x5aecc1=this['_suggestionFactory']['buildSuggestion'](_0x39362b,_0x1cb7b1,_0xae87b0,_0x30ebbe,_0x3b1ac3,_0x2397fe=>{this['_updateSuggestionData'](_0xae87b0,{'attributes':_0x2397fe});const _0x387844=this['getSuggestion'](_0xae87b0);this['_joinWithAdjacentSuggestions'](new Set([_0x387844])),this['_refreshSuggestionsChain'](new Set([_0x387844]));});return this['listenTo'](_0x5aecc1,'accept',()=>{this['_updateSuggestionData'](_0xae87b0,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5aecc1,'discard',()=>{this['_updateSuggestionData'](_0xae87b0,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xae87b0,_0x5aecc1),this['_suggestionState']['set'](_0x5aecc1,'notReady'),_0x5aecc1;}['_splitMarkerName'](_0x25d985){const _0x566fd9=_0x25d985['split'](':');return{'group':_0x566fd9[0x0],'type':_0x566fd9[0x1],'subType':_0x566fd9['length']>=0x5?_0x566fd9[0x2]:null,'id':_0x566fd9['length']<0x5?_0x566fd9[0x2]:_0x566fd9[0x3],'authorId':_0x566fd9['length']<0x5?_0x566fd9[0x3]:_0x566fd9[0x4],'markerCount':0x6==_0x566fd9['length']?_0x566fd9[0x5]:null};}['_breakSuggestionMarker'](_0x1e2a06,_0x70f8c4,_0x12fbe5){const _0x390353=_0x1e2a06['getFirstRange'](),_0x532cd4=_0x390353['start'],_0x20febd=_0x390353['end'];this['_setSuggestionRange'](_0x1e2a06,this['_model']['createRange'](_0x532cd4,_0x70f8c4));const _0x59cf3e=_0x16a8ea(),_0x47c9e4=_0x1e2a06['creator']['id'],_0x217f05=_0x1e2a06['type']+(_0x1e2a06['subType']?':'+_0x1e2a06['subType']:'');this['_setSuggestionData']({'id':_0x59cf3e,'type':_0x217f05,'createdAt':new Date(),'authorId':_0x47c9e4,'originalSuggestionId':_0x1e2a06['id'],'attributes':_0x1e2a06['attributes'],'data':_0x1e2a06['data']});const _0x4b1ce0=this['_getAttributeKey'](_0x1e2a06);('formatBlock'==_0x1e2a06['type']||_0x4b1ce0&&this['_isBlockAttribute'](_0x4b1ce0))&&(_0x12fbe5=this['_model']['createPositionBefore'](_0x12fbe5['parent'])),this['_addSuggestionMarker'](_0x217f05,_0x59cf3e,_0x47c9e4,this['_model']['createRange'](_0x12fbe5,_0x20febd));}['_findSuggestions'](_0x3a7e85,_0x90347b=null){const _0x270c6d=[],_0x48f6e4=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3a7e85)||(_0x3a7e85=[_0x3a7e85]);for(const _0xb13fb9 of this['getSuggestions']()){if(!_0xb13fb9['isInContent'])continue;if(_0x90347b&&_0xb13fb9['type']!=_0x90347b)continue;let _0x18305a=!0x1;for(const _0x28428b of _0xb13fb9['getRanges']()){for(const _0x204611 of _0x3a7e85){const _0x438ae7=_0x204611['start']['isEqual'](_0x28428b['end'])||_0x204611['end']['isEqual'](_0x28428b['start']);if(_0x438ae7||_0x204611['getIntersection'](_0x28428b)){const _0x129681=_0x204611['containsRange'](_0x28428b)&&Rt(this['_model']['schema'],_0x28428b['start'],_0x204611),_0x511f5e=_0x28428b['containsRange'](_0x204611)&&Rt(this['_model']['schema'],_0x204611['start'],_0x28428b);_0x270c6d['push']({'suggestion':_0xb13fb9,'meta':{'isOwn':_0x48f6e4==_0xb13fb9['author'],'isNextTo':_0x438ae7,'isInsideObject':_0x129681,'containsRangeInObject':_0x511f5e}}),_0x18305a=!0x0;break;}}if(_0x18305a)break;}}return _0x270c6d;}['_addSuggestionMarker'](_0x1bca85,_0x514327,_0xf91186,_0x29811f,_0x495a55){this['_model']['change'](_0xf3be94=>{let _0x5f0b2f='suggestion:'+_0x1bca85+':'+_0x514327+':'+_0xf91186;_0x495a55&&(_0x5f0b2f=_0x5f0b2f+':'+_0x495a55),_0xf3be94['addMarker'](_0x5f0b2f,{'range':_0x29811f,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x379d1b){const _0x34920a=_0x379d1b['previous'],_0x1bdb69=_0x379d1b['next'];_0x379d1b['previous']=null,_0x379d1b['next']=null,null!=_0x34920a&&_0x34920a['next']==_0x379d1b&&(_0x34920a['next']=_0x1bdb69),null!=_0x1bdb69&&_0x1bdb69['previous']==_0x379d1b&&(_0x1bdb69['previous']=_0x34920a),'ready'==this['_suggestionState']['get'](_0x379d1b)&&(this['_suggestionState']['set'](_0x379d1b,'removed'),this['fire']('suggestionUnloaded',_0x379d1b,_0x34920a,_0x1bdb69));}['_setSuggestionData'](_0x3f1e34){const _0x516d7b=_0x3f1e34['id'],_0x2ab8f8=this['addSuggestionData'](_0x3f1e34);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5d405b=this['editor']['plugins']['get']('PendingActions'),_0x3d154b=_0x2ab8f8['hasComments'],_0x848102=_0x2ab8f8['subType']?_0x2ab8f8['type']+':'+_0x2ab8f8['subType']:_0x2ab8f8['type'],_0x2530f1=this['editor']['locale'],_0x2d49eb=_0x5d405b['add'](o(_0x2530f1,'PENDING_ACTION_SUGGESTION')),_0x5426c3={'id':_0x516d7b,'type':_0x848102,'hasComments':_0x3d154b,'data':_0x3f1e34['data']||null,'originalSuggestionId':_0x3f1e34['originalSuggestionId']||null,'attributes':_0x2ab8f8['attributes']};this['_adapter']['addSuggestion'](_0x5426c3)['then'](_0xf974e1=>{_0x2ab8f8['_saved']=!0x0,_0x5d405b['remove'](_0x2d49eb),_0xf974e1&&_0xf974e1['createdAt']&&(this['_suggestions']['get'](_0x516d7b)['createdAt']=_0xf974e1['createdAt']);})['catch'](_0x175fc2=>{throw _0xeeb859('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2ab8f8['discard']();}),_0x2ab8f8['stopListening'](),this['_suggestions']['delete'](_0x2ab8f8['id']),this['_suggestionState']['delete'](_0x2ab8f8),_0x175fc2;});}return _0x2ab8f8;}['_isBlockAttribute'](_0x3f351d){return this['_blockAttributeKeys']['has'](_0x3f351d);}['_updateSuggestionData'](_0x4abd99,_0x190255){const _0x3e3e2d=this['editor']['plugins']['get']('PendingActions'),_0x44f864=this['getSuggestion'](_0x4abd99);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x44f864['_saved']){const _0x3aa22a=_0x3e3e2d['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4abd99,_0x190255)['then'](()=>{_0x3e3e2d['remove'](_0x3aa22a);});}else _0x44f864['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4abd99,_0x190255);});}}['_getSuggestionData'](_0x28d945){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xe1a238('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x28d945);}['_handleNewSuggestionMarker'](_0x323bed){const {id:_0x493c71,type:_0x57b903,subType:_0x1aa971,authorId:_0x322d96}=this['_splitMarkerName'](_0x323bed),_0xfc762d=this['_suggestions']['get'](_0x493c71)||this['_createSuggestion'](_0x57b903,_0x1aa971,_0x493c71,_0x322d96,{});switch(this['_checkSuggestionCorrectness'](_0xfc762d,_0x57b903,_0x1aa971,_0x322d96),this['_suggestionState']['get'](_0xfc762d)){case'notReady':this['_getSuggestionData'](_0x493c71)['then'](_0x2d26a9=>{let _0x2a85b2=Promise['resolve']();_0x2d26a9['hasComments']&&(_0x2a85b2=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x493c71})),_0x2a85b2['then'](()=>{this['addSuggestionData'](_0x2d26a9)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xfc762d,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x493c71,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xfc762d,'ready'),this['fire']('suggestionLoaded',_0xfc762d);break;case'ready':this['fire']('suggestionChanged',_0xfc762d);}return _0xfc762d['addMarkerName'](_0x323bed),_0xfc762d;}['_refreshSuggestionsChain'](_0x37a2a9){const _0x43209d=Array['from'](_0x37a2a9),_0x4dc265=_0x43209d['filter'](_0x3f768c=>'attribute'==_0x3f768c['type']);this['_refreshAttributeSuggestionsChain'](_0x4dc265);const _0xe217e6=_0x43209d['filter'](_0x1cf2c6=>!_0x1cf2c6['isMultiRange']&&'attribute'!=_0x1cf2c6['type']),_0x2a8b44=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1a71d8=>!_0x1a71d8['isMultiRange']&&'attribute'!=_0x1a71d8['type']),_0xb21946=_0x2a8b44['filter'](_0x2d52f1=>!_0x37a2a9['has'](_0x2d52f1)),_0x27265f=new Map(_0x2a8b44['map'](_0x29a87f=>[_0x29a87f,this['_suggestionFactory']['getSuggestionCallback'](_0x29a87f['type'],_0x29a87f['subType'],'chain')])),_0x3383e4=new Map(_0x2a8b44['map'](_0x40c202=>[_0x40c202,_0x40c202['getFirstRange']()])),_0x2ed6e5=new Set(),_0x151bb5=new Set();for(let _0x2df2d7=0x0;_0x2df2d7<_0xe217e6['length'];_0x2df2d7++)_0x363d80(_0xe217e6[_0x2df2d7],_0xe217e6,_0x2df2d7+0x1);for(let _0x5c5e38=0x0;_0x5c5e38<_0xe217e6['length'];_0x5c5e38++)_0x363d80(_0xe217e6[_0x5c5e38],_0xb21946,0x0);const _0x5e4f76=new Set();for(let _0x4f4c61=0x0;_0x4f4c61<_0xe217e6['length'];_0x4f4c61++){const _0x3b0c86=_0xe217e6[_0x4f4c61];!_0x151bb5['has'](_0x3b0c86)&&_0x3b0c86['previous']&&(_0x5e4f76['add'](_0x3b0c86['previous']),_0x3b0c86['previous']['next']===_0x3b0c86&&(_0x3b0c86['previous']['next']=null),_0x3b0c86['previous']=null),!_0x2ed6e5['has'](_0x3b0c86)&&_0x3b0c86['next']&&(_0x5e4f76['add'](_0x3b0c86['next']),_0x3b0c86['next']['previous']===_0x3b0c86&&(_0x3b0c86['next']['previous']=null),_0x3b0c86['next']=null);}function _0x363d80(_0xec6caa,_0x4c1e4c,_0x4c0b9b){for(let _0x52c869=_0x4c0b9b;_0x52c869<_0x4c1e4c['length'];_0x52c869++){const _0xac40c5=_0x3ae32f(_0xec6caa,_0x4c1e4c[_0x52c869]);_0xac40c5&&(_0xac40c5[0x0]['next']=_0xac40c5[0x1],_0xac40c5[0x1]['previous']=_0xac40c5[0x0],_0x2ed6e5['add'](_0xac40c5[0x0]),_0x151bb5['add'](_0xac40c5[0x1]));}}function _0x3ae32f(_0x315fc2,_0x275629){if(_0x315fc2['author']['id']!==_0x275629['author']['id'])return null;const _0x1a60f4=_0x27265f['get'](_0x315fc2)(_0x315fc2,_0x275629,_0x3383e4['get'](_0x315fc2),_0x3383e4['get'](_0x275629));if(!_0x1a60f4)return null;return _0x27265f['get'](_0x275629)(_0x315fc2,_0x275629,_0x3383e4['get'](_0x315fc2),_0x3383e4['get'](_0x275629))?_0x1a60f4[0x1]['commentThread']&&_0x1a60f4[0x1]['commentThread']['length']?null:_0x1a60f4:null;}_0x5e4f76['size']&&this['_refreshSuggestionsChain'](_0x5e4f76);}['_refreshAttributeSuggestionsChain'](_0x99e88f){if(0x0==_0x99e88f['length'])return;const _0x4b1a7b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x735179=>'attribute'==_0x735179['type']&&_0x735179['_isDataLoaded']),_0x2d12f2=[],_0x307909=new Map();for(const _0x5d9ff1 of _0x4b1a7b){const _0x4546e3=_0x44e8df(_0x5d9ff1['attributes']);_0x307909['has'](_0x4546e3)||(_0x307909['set'](_0x4546e3,_0x2d12f2['length']),_0x2d12f2['push']([]));const _0x1d19e7=_0x307909['get'](_0x4546e3);_0x2d12f2[_0x1d19e7]['push'](_0x5d9ff1);}!(function(){_0x2d12f2['sort']((_0x7c21b2,_0x940fdc)=>{const _0x5f046c=_0x7c21b2[0x0]['createdAt'],_0x34d0ec=_0x940fdc[0x0]['createdAt'];return _0x5f046c==_0x34d0ec?_0x7c21b2[0x0]['attributes']['groupId']<_0x940fdc[0x0]['attributes']['groupId']?-0x1:0x1:_0x5f046c<_0x34d0ec?-0x1:0x1;});for(const _0x2feed8 of _0x2d12f2)_0x2feed8['sort']((_0x32f8cf,_0x142545)=>_0x32f8cf['id']<_0x142545['id']?-0x1:0x1);}());for(let _0x1bc78b=0x0;_0x1bc78b<_0x2d12f2['length'];_0x1bc78b++){if(0x0==_0x2d12f2[_0x1bc78b]['length'])continue;const _0x385409=[];for(let _0x557aab=_0x1bc78b+0x1;_0x557aab<_0x2d12f2['length'];_0x557aab++)0x0!=_0x2d12f2[_0x557aab]['length']&&_0x3d39c7(_0x2d12f2[_0x1bc78b],_0x2d12f2[_0x557aab])&&_0x385409['push'](_0x557aab);for(const _0x569098 of _0x385409)_0x2d12f2[_0x1bc78b]=_0x2d12f2[_0x1bc78b]['concat'](_0x2d12f2[_0x569098]),_0x2d12f2[_0x569098]=[];}for(const _0x54d58c of _0x2d12f2)for(let _0x1688a5=0x0;_0x1688a5<_0x54d58c['length'];_0x1688a5++)_0x54d58c[_0x1688a5]['next']=_0x54d58c[_0x1688a5+0x1]||null;for(const _0x3a1c78 of _0x2d12f2)for(let _0x2d5b1f=0x0;_0x2d5b1f<_0x3a1c78['length'];_0x2d5b1f++)_0x3a1c78[_0x2d5b1f]['previous']=_0x3a1c78[_0x2d5b1f-0x1]||null;function _0x3d39c7(_0x11b190,_0x127e8c){if(_0x11b190[0x0]['attributes']['groupId']!==_0x127e8c[0x0]['attributes']['groupId']&&_0x11b190[0x0]['author']!==_0x127e8c[0x0]['author'])return!0x1;if(!function(_0x5dfe46,_0x301eb9){if(!_0x5dfe46['hasComments']&&!_0x301eb9['hasComments'])return!0x0;if(_0x5dfe46['hasComments']&&_0x301eb9['hasComments'])return!0x1;if(_0x5dfe46['hasComments']&&_0x301eb9['createdAt']<_0x5dfe46['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x301eb9['hasComments']&&_0x5dfe46['createdAt']<_0x301eb9['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x11b190[0x0],_0x127e8c[0x0]))return!0x1;const _0x528b85=Bt(_0x11b190[0x0]['attributes'],'groupId'),_0x2f20bb=Bt(_0x127e8c[0x0]['attributes'],'groupId');if(!_0x2c486a(_0x528b85,_0x2f20bb))return!0x1;return!!_0x11b190['every'](_0x336bb7=>_0x127e8c['some'](_0x426eee=>_0x336bb7['getFirstRange']()['isEqual'](_0x426eee['getFirstRange']())))&&_0x127e8c['every'](_0x4583c5=>_0x11b190['some'](_0x570672=>_0x4583c5['getFirstRange']()['isEqual'](_0x570672['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1a9013){const _0x568eff=Array['from'](_0x1a9013),_0x29621e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x28cbd4=_0x29621e['filter'](_0x11a010=>!_0x1a9013['has'](_0x11a010)),_0x4f161c=new Map(_0x568eff['map'](_0x3e507c=>[_0x3e507c,this['_suggestionFactory']['getSuggestionCallback'](_0x3e507c['type'],_0x3e507c['subType'],'join')])),_0x56d95c=new Map(_0x29621e['map'](_0x5d2c58=>[_0x5d2c58,_0x5d2c58['getRanges']()]));for(let _0x1d2bf9=0x0;_0x1d2bf9<_0x568eff['length'];_0x1d2bf9++){if(_0x422be0(this,_0x568eff[_0x1d2bf9],_0x568eff,_0x1d2bf9+0x1))return!0x0;}for(let _0x421378=0x0;_0x421378<_0x568eff['length'];_0x421378++){if(_0x422be0(this,_0x568eff[_0x421378],_0x28cbd4,0x0))return!0x0;}return!0x1;function _0x422be0(_0x298c13,_0x567947,_0xddae49,_0xa97c26){for(let _0x57ccf6=_0xa97c26;_0x57ccf6<_0xddae49['length'];_0x57ccf6++){const _0x24cb42=_0xddae49[_0x57ccf6];if(_0x24cb42['type']!==_0x567947['type']||_0x24cb42['author']['id']!==_0x567947['author']['id']||_0x24cb42['subType']!==_0x567947['subType'])continue;if(!Pt(_0x567947,_0x24cb42,['groupId']))continue;if('attribute'==_0x567947['type']&&_0x567947['data']['oldValue']!=_0x24cb42['data']['oldValue'])continue;if('attribute'==_0x567947['type']&&_0x298c13['_isBlockAttribute'](_0x567947['data']['key']))continue;if('formatBlock'==_0x567947['type']){const _0x131904=_0x298c13['editor']['model'],_0x1d1af8=_0x567947['getContainedElement']();if(_0x1d1af8&&(_0x131904['schema']['isObject'](_0x1d1af8)||_0x131904['schema']['isLimit'](_0x1d1af8)))continue;}const _0xe99167=_0x4f161c['get'](_0x567947),_0x9aa74f=_0x56d95c['get'](_0x567947),_0x3f66c5=_0x56d95c['get'](_0x24cb42),_0x430bfe=_0x567947['commentThread']&&_0x567947['commentThread']['length'],_0x4af9c3=_0x24cb42['commentThread']&&_0x24cb42['commentThread']['length'];if(!_0x430bfe&&_0xe99167(_0x3f66c5,_0x9aa74f))return _0x298c13['_joinSuggestions'](_0x24cb42,_0x567947),_0x56d95c['delete'](_0x567947),!0x0;if(!_0x4af9c3&&_0xe99167(_0x9aa74f,_0x3f66c5))return _0x298c13['_joinSuggestions'](_0x567947,_0x24cb42),_0x56d95c['delete'](_0x24cb42),!0x0;}return!0x1;}}['_joinSuggestions'](_0xa541c2,_0x56b5fa){if(_0xa541c2['isMultiRange']){for(const _0x2b15af of _0x56b5fa['getRanges']())_0xa541c2['addRange'](_0x2b15af);}else{const _0x37ba09=_0x56b5fa['getFirstRange']()['end'];this['_setSuggestionRange'](_0xa541c2,this['_model']['createRange'](_0xa541c2['getFirstRange']()['start'],_0x37ba09));}_0x56b5fa['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3a508f,_0x29165c){const _0x3a6e4b=_0x3a508f['startsWith']('format')||_0x3a508f['startsWith']('attribute')?'FORMATTING':_0x3a508f['toUpperCase']();return o(this['editor']['locale'],_0x29165c+'_'+_0x3a6e4b+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x3b090c=this['editor'];if(!_0x3b090c['ui'])return;const {ariaLiveAnnouncer:_0x3cdb19}=_0x3b090c['ui'];_0x11e2cb(this['_model'],({left:_0x26427,entered:_0x49ae37})=>{for(const _0x13a8bb of _0x26427){const {group:_0x3103bb,type:_0x11023b}=this['_splitMarkerName'](_0x13a8bb['name']);if('suggestion'===_0x3103bb){_0x3cdb19['announce'](this['_getMarkerAnnouncementText'](_0x11023b,'LEAVE'));break;}}for(const _0x2460d4 of _0x49ae37){const {group:_0x56115c,type:_0x2274e5}=this['_splitMarkerName'](_0x2460d4['name']);if('suggestion'===_0x56115c){_0x3cdb19['announce'](this['_getMarkerAnnouncementText'](_0x2274e5,'ENTER'));break;}}});}['_processAttributeChanges'](_0x8016d9){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3493c8=this['editor'],_0x524d31=_0x3493c8['model']['document']['differ']['getChanges']();if(0x0==_0x524d31['length'])return!0x1;const _0x467a00=[],_0xaa5854=_0x524d31['filter'](_0x197511=>'attribute'==_0x197511['type']),_0x485cd1=_0x524d31['filter'](_0x2f822b=>'insert'==_0x2f822b['type']&&'$text'!=_0x2f822b['name']),_0x5cb8e1=_0x524d31['filter'](_0x428a65=>'remove'==_0x428a65['type']&&'$text'!=_0x428a65['name']);for(const _0x1912a5 of _0xaa5854)_0x467a00['push']({'key':_0x1912a5['attributeKey'],'newValue':_0x1912a5['attributeNewValue'],'oldValue':_0x1912a5['attributeOldValue'],'range':Ot(_0x1912a5['range'],_0x3493c8['model'])});for(const _0x3ee9a3 of _0x485cd1){const _0x541359=_0x5cb8e1['find'](_0x46bbf1=>_0x46bbf1['position']['isEqual'](_0x3ee9a3['position']));_0x541359&&_0x467a00['push']({'key':m,'newValue':_0x3ee9a3['name'],'oldValue':_0x541359['name'],'range':_0x3493c8['model']['createRangeOn'](_0x3ee9a3['position']['nodeAfter'])});}return 0x0!=_0x467a00['length']&&this['_reduceExistingSuggestions'](_0x8016d9,_0x467a00);}['_processAttributeSuggestions'](_0x21d2a2){let _0x5125d1=!0x1;const _0x5f1bdf=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3cc1c0=>_0x3cc1c0['data']['newRange']&&_0x3cc1c0['name']['startsWith']('suggestion:attribute:'));for(const _0x3d2055 of _0x5f1bdf){const {subType:_0x25c61d,id:_0x5f14f3}=this['_splitMarkerName'](_0x3d2055['name']),_0x307469=_0x25c61d['split']('|')[0x0];for(const _0x5806b6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5806b6['id']!=_0x5f14f3&&'attribute'==_0x5806b6['type']&&_0x5806b6['data']&&_0x5806b6['data']['key']==_0x307469&&_0x5806b6['getFirstRange']()['isIntersecting'](_0x3d2055['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5806b6,_0x3d2055['data']['newRange'],_0x21d2a2),_0x5125d1=!0x0);}return _0x5125d1;}['_recordAttributeChanges'](_0x23a9f4){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x23a9f4();}['_isRegisteredAttribute'](_0x7b10a4){const _0x63b7db=this['_isBlockAttribute'](_0x7b10a4),_0x58b143=this['_inlineAttributeKeys']['has'](_0x7b10a4);return _0x63b7db||_0x58b143;}['_reduceExistingSuggestions'](_0x5c654c,_0x3fdd9b){if(0x0==_0x3fdd9b['length'])return!0x1;let _0x2a5c26=!0x1;for(const _0x4171f2 of _0x3fdd9b){const _0x19e0f1=this['_findSuggestions'](_0x4171f2['range'],'attribute')['filter'](_0x3fcf6c=>!_0x3fcf6c['meta']['isNextTo'])['map'](_0x1e5bc4=>_0x1e5bc4['suggestion']),_0x41207e=_0x44e8df({'newValue':_0x4171f2['newValue']});_0x19e0f1['filter'](_0x53a593=>{const [_0x163792,_0x4a579e]=_0x53a593['subType']['split']('|');return _0x163792==_0x4171f2['key']&&_0x4a579e!=_0x41207e;})['forEach'](_0x1a47e5=>{this['_reduceSuggestionAttributeRange'](_0x1a47e5,_0x4171f2['range'],_0x5c654c),_0x2a5c26=!0x0;});}return _0x2a5c26;}['_reduceSuggestionAttributeRange'](_0x7020ca,_0x160b80,_0x4bc4e7){const _0x3bef42=_0x7020ca['getFirstRange']()['getDifference'](_0x160b80);0x0!==_0x3bef42['length']?0x1!==_0x3bef42['length']?this['_breakSuggestionMarker'](_0x7020ca,_0x160b80['start'],_0x160b80['end']):this['_setSuggestionRange'](_0x7020ca,_0x3bef42[0x0]):_0x4bc4e7['removeMarker'](_0x7020ca['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x44aa4c){this['_editor']=_0x44aa4c,this['_model']=_0x44aa4c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5330b5,_0x12e32f,_0x3355b2,_0x9e65c6,_0x2ddc26,_0x251ead){return new u(this['_model'],{'type':_0x5330b5,'subType':_0x12e32f,'id':_0x3355b2,'author':_0x9e65c6,'creator':_0x9e65c6,'attributes':_0x2ddc26,'onAttributesChange':_0x251ead,'onAccept':(..._0x48e66e)=>this['getSuggestionCallback'](_0x5330b5,_0x12e32f,'accept')(..._0x48e66e),'onDiscard':(..._0x3c897e)=>this['getSuggestionCallback'](_0x5330b5,_0x12e32f,'discard')(..._0x3c897e)});}['registerCustomCallback'](_0x3381de,_0x5ef0f6,_0x3c4747,_0x39f16d){const _0x14dad7=_0x3381de+':'+_0x5ef0f6+':'+_0x3c4747;this['_customCallbacks']['set'](_0x14dad7,_0x39f16d);}['getSuggestionCallback'](_0x54df1f,_0x30579c,_0x4497b5){const _0x3fc2d2=_0x54df1f+':'+_0x30579c+':'+_0x4497b5;return this['_customCallbacks']['get'](_0x3fc2d2)||this['_defaultCallbacks']['get'](_0x54df1f+':'+_0x4497b5);}['_registerDefaultCallbacks'](){const _0x5e8b8f=()=>!0x1,_0x165ab3=_0x257a6d=>{_0x257a6d['sort']((_0x5e1ca2,_0x109969)=>_0x5e1ca2['start']['isBefore'](_0x109969['start'])?0x1:-0x1),this['_model']['change'](_0x5debcc=>{for(const _0xc941c3 of _0x257a6d){let _0x502ffe;_0x502ffe=_0xc941c3['end']['isAtEnd']&&_0xc941c3['end']['parent']==_0xc941c3['start']['nodeAfter']?_0x5debcc['createSelection'](_0xc941c3['start']['nodeAfter'],'on'):_0x5debcc['createSelection'](_0xc941c3),this['_model']['deleteContent'](_0x502ffe,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4643b8=(_0x183069,_0x1e1ad1)=>{_0x1e1ad1&&this['_model']['change'](_0x2f801e=>{const {commandName:_0x2ee6dc,commandParams:_0x27db38=[]}=_0x1e1ad1,_0x59a9c6=_0x183069['map'](_0x4ff028=>(Tt(_0x4ff028)&&(_0x4ff028=this['_model']['createRange'](_0x4ff028['end'])),_0x4ff028))['filter'](_0x1955cd=>'$graveyard'!==_0x1955cd['root']['rootName']);if(_0x59a9c6['length']<0x1)return;const _0x3217d0=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x40663c=>_0x1ccabf['fromRange'](_0x40663c));_0x2f801e['setSelection'](_0x59a9c6);for(const _0x55f9a4 of this['_editor']['commands']['commands']())_0x55f9a4['refresh']();_0x27db38['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2ee6dc,..._0x27db38);const _0x3a8c7a=_0x3217d0['filter'](_0x413103=>'$graveyard'!=_0x413103['root']['rootName']);_0x3a8c7a['length']>0x0&&_0x2f801e['setSelection'](_0x3a8c7a);for(const _0x4cedb1 of _0x3217d0)_0x4cedb1['detach']();});},_0x495c1e=(_0x4f6564,_0xfafaa6)=>0x1==_0x4f6564['length']&&0x1==_0xfafaa6['length']&&_0x4f6564[0x0]['end']['isEqual'](_0xfafaa6[0x0]['start']),_0x38c05e=(_0x6e3d26,_0x3ca379,_0x49df06,_0x2e87d6)=>Ft(_0x6e3d26,_0x3ca379,_0x49df06,_0x2e87d6,this['_model'])?[_0x6e3d26,_0x3ca379]:Ft(_0x3ca379,_0x6e3d26,_0x2e87d6,_0x49df06,this['_model'])?[_0x3ca379,_0x6e3d26]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5e8b8f),this['_defaultCallbacks']['set']('insertion:discard',_0x165ab3),this['_defaultCallbacks']['set']('insertion:join',_0x495c1e),this['_defaultCallbacks']['set']('insertion:chain',_0x38c05e),this['_defaultCallbacks']['set']('deletion:accept',_0x165ab3),this['_defaultCallbacks']['set']('deletion:discard',_0x5e8b8f),this['_defaultCallbacks']['set']('deletion:join',_0x495c1e),this['_defaultCallbacks']['set']('deletion:chain',_0x38c05e),this['_defaultCallbacks']['set']('formatInline:accept',_0x4643b8),this['_defaultCallbacks']['set']('formatInline:discard',_0x5e8b8f),this['_defaultCallbacks']['set']('formatInline:join',_0x495c1e),this['_defaultCallbacks']['set']('formatInline:chain',_0x5e8b8f),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4643b8),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5e8b8f),this['_defaultCallbacks']['set']('formatBlock:join',_0x495c1e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5e8b8f),this['_defaultCallbacks']['set']('attribute:accept',_0x5e8b8f),this['_defaultCallbacks']['set']('attribute:discard',(_0x1b63d4,_0x499225)=>{if(!_0x499225)return;const _0x21a2a8=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x35f346=>{if(_0x499225['key']==m)for(const _0x333390 of _0x1b63d4){const _0x185488=_0x333390['start']['nodeAfter'],_0xd13566=_0x499225['oldValue'];_0x35f346['rename'](_0x185488,_0xd13566);}else{if(_0x21a2a8['_isBlockAttribute'](_0x499225['key'])){for(const _0x194c44 of _0x1b63d4)void 0x0!==_0x499225['oldValue']?_0x35f346['setAttribute'](_0x499225['key'],_0x499225['oldValue'],_0x194c44['start']['nodeAfter']):_0x35f346['removeAttribute'](_0x499225['key'],_0x194c44['start']['nodeAfter']);}else{for(const _0x285fb8 of _0x1b63d4)_0x499225['oldValue']?_0x35f346['setAttribute'](_0x499225['key'],_0x499225['oldValue'],_0x285fb8):_0x35f346['removeAttribute'](_0x499225['key'],_0x285fb8);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x495c1e);}}function Rt(_0x44a802,_0x3aedbd,_0x5c2f9f){for(const _0x4dedb9 of _0x3aedbd['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4dedb9['root']==_0x4dedb9)return!0x1;if(!_0x5c2f9f['containsItem'](_0x4dedb9))return!0x1;if(_0x44a802['isObject'](_0x4dedb9)||_0x44a802['isLimit'](_0x4dedb9))return!0x0;}return!0x1;}function Tt(_0x126502){return _0x126502['end']['parent']==_0x126502['start']['nodeAfter']&&_0x126502['end']['isAtStart'];}function Et(_0x5d7460,_0x41fdab,_0x6244,_0x3dc51a){const _0x28e587=_0x4fec86=>!_0x4fec86['item']['is']('$textProxy')&&!_0x3dc51a['isObject'](_0x4fec86['item']),_0x1c0e04=_0x5d7460['start']['getLastMatchingPosition'](_0x28e587),_0x289571=_0x5d7460['end']['getLastMatchingPosition'](_0x28e587,{'direction':'backward'});return(!_0x5d7460['start']['isEqual'](_0x1c0e04)||!_0x5d7460['end']['isEqual'](_0x289571))&&(_0x1c0e04['isBefore'](_0x289571)?_0x6244['updateMarker'](_0x41fdab,{'range':_0x6244['createRange'](_0x1c0e04,_0x289571)}):_0x6244['removeMarker'](_0x41fdab),!0x0);}function Vt(_0x899eb3){return _0x44e8df(_0x899eb3);}function Ut(_0x145e7a){const _0x56c837=_0x145e7a['start']['nodeAfter'];return _0x56c837&&_0x56c837['is']('element');}function Ot(_0x38bc56,_0x21cffa){return null==_0x38bc56['end']['nodeBefore']&&_0x38bc56['end']['parent']==_0x38bc56['start']['nodeAfter']?Gt(_0x38bc56['start']['nodeAfter'],_0x21cffa):_0x38bc56;}function Gt(_0x41ebe2,_0x499340){const _0x4c8a06=_0x499340['schema']['isObject'](_0x41ebe2)||_0x499340['schema']['isSelectable'](_0x41ebe2);return _0x499340['createRange'](_0x499340['createPositionAt'](_0x41ebe2,'before'),_0x4c8a06?_0x499340['createPositionAfter'](_0x41ebe2):_0x499340['createPositionAt'](_0x41ebe2,'end'));}function Ft(_0x205539,_0x5578a5,_0x261023,_0x7c0a2f,_0x507d38){if(!Pt(_0x205539,_0x5578a5))return!0x1;if(_0x261023['end']['isEqual'](_0x7c0a2f['start']))return!0x0;if(_0x205539['type']!=_0x5578a5['type'])return!0x1;if(!_0x261023['end']['isTouching'](_0x7c0a2f['start']))return!0x1;const _0x3264c3=_0x507d38['createRange'](_0x261023['end'],_0x7c0a2f['start'])['getWalker']();for(const _0x1f7dcc of _0x3264c3)if(['elementStart','elementEnd']['includes'](_0x1f7dcc['type'])&&_0x507d38['schema']['isLimit'](_0x1f7dcc['item']))return!0x1;return!0x0;}function Pt(_0x18b1df,_0x563c73,_0x83bf8=[]){return!(!_0x18b1df['_isDataLoaded']||!_0x563c73['_isDataLoaded'])&&_0x2c486a(Bt(_0x18b1df['attributes'],_0x83bf8),Bt(_0x563c73['attributes'],_0x83bf8));}function Lt(_0x46a24a,_0x30ab88){const _0x5118f0=Ht(_0x46a24a['attributes']),_0x23170d=Ht(_0x30ab88);if(!_0x46a24a['_isDataLoaded'])return!0x1;for(const _0x1c774d of Object['keys'](_0x23170d))if(!_0x2c486a(_0x5118f0[_0x1c774d],_0x23170d[_0x1c774d]))return!0x1;return!0x0;}function Ht(_0x3dc1a1){const _0x264194=Object['assign']({},_0x3dc1a1);return delete _0x264194['skipNestingCheck'],delete _0x264194['tablePasteChainId'],_0x264194;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5d594b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4bfb4a,_0x23f34e,_0x1f3caa,_0x3c018e){super(),this['model']=_0x23f34e,this['view']=_0x1f3caa,this['commentThreadController']=_0x3c018e,this['_editor']=_0x4bfb4a,this['_acceptCommand']=_0x4bfb4a['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4bfb4a['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x574307,_0x936fa7)=>_0x574307||_0x936fa7),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2d1e8e=>_0x2d1e8e&&this['_editor']['model']['canEditAt'](_0x23f34e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x10e2b4=>_0x10e2b4&&this['_editor']['model']['canEditAt'](_0x23f34e['getRanges']())),this['_pendingAction']=null,_0x1f3caa['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1f3caa,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1f3caa,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1f3caa,'change:isDirty',()=>{_0x1f3caa['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 _0x3dbded=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3dbded);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x219786{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0xcf5b36,_0x4a265f,_0x2ad090,_0x4823c1){super(_0xcf5b36),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x4a265f['authoredAt']),this['bind']('authoredAt')['to'](_0x4a265f),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x4a265f,this['_localUser']=_0x2ad090,this['_config']=_0x4823c1,_0x4823c1['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:_0x34081f}=this['_config'];this['commentsListView']=new _0x34081f(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',_0x40e886=>_0x40e886+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xe79100,_0x1d303e)=>_0xe79100||!!_0x1d303e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3c72d9}=this['_config'],_0x194d9a=new _0x3c72d9(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x500eee=_0x194d9a['commentInputView'];return _0x194d9a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x500eee,'value',(_0x298ee2,_0x2d02d0,_0x2d65c7)=>!!_0x2d65c7||_0x298ee2&&!_0x2d02d0),_0x500eee['on']('submit',(_0x54fdd0,_0x36355f)=>{this['fire']('addComment',_0x36355f),_0x500eee['editor']['setData']('');}),_0x500eee['on']('cancel',()=>this['focus']()),_0x500eee['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x194d9a;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x48da25,_0x4b5f8f,_0x185b21,_0x2c8e58){super(_0x48da25,_0x4b5f8f,_0x185b21,_0x2c8e58),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xf6b7b4=>_0xf6b7b4&&_0xf6b7b4[0x0]?_0xf6b7b4[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5639fa,_0x26bc39)=>{let _0x2b542e='';for(const _0x47e5d2 of _0x5639fa)_0x2b542e+='<p>'+ds(_0x47e5d2['content'],_0x47e5d2['color'])+'</p>';return _0x26bc39?_0x2b542e:_0x44ba87(_0x2b542e,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x48da25,'Accept\x20suggestion'),_0x287688['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x48da25,'Discard\x20suggestion'),_0x287688['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x19aa7a(_0x48da25,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x3122a5=this['bindTemplate'],_0x469248=[{'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':_0x3122a5['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3122a5['to']('authoredAt',_0x1ec4cb=>this['_config']['formatDateTime'](_0x1ec4cb))}]}]},{'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']&&_0x469248['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x44790d={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x3122a5['if']('isActive','ck-suggestion-wrapper--active'),_0x3122a5['to']('type',_0x559332=>'ck-suggestion-'+_0x559332),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':_0x469248}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x44790d['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)),_0x44790d;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x5789fd,_0x4b38ad,_0x4e3d02)=>{this['_descriptionElement']['innerHTML']=_0x4e3d02;});}['_createButton'](_0x3c2dde,_0x123d58,_0x14849e,_0x5f50a7,_0x1b3cd7){const _0x7ff6a9=new _0x22214b(this['locale']);return _0x7ff6a9['set']({'label':_0x3c2dde,'icon':_0x123d58,'tooltip':!0x0,'tooltipPosition':_0x1b3cd7}),_0x7ff6a9['extendTemplate']({'attributes':{'class':_0x14849e}}),_0x7ff6a9['on']('execute',()=>{this['fire'](_0x5f50a7,this['_model']['id']);}),_0x7ff6a9;}['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(_0x582efa,_0x4095aa){let _0x61423b='';return _0x61423b+=_0x582efa['split']('*')['map']((_0x4afe06,_0x556ba4)=>_0x556ba4%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x4afe06)+'</span>':us(_0x4afe06))['join'](''),_0x4095aa&&(_0x61423b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4095aa['value']+'\x22\x20title=\x22'+_0x4095aa['title']+'\x22></span>'),_0x61423b;}function us(_0x581aae){const _0x5d226e=document['createElement']('span');return _0x5d226e['innerText']=_0x581aae,_0x5d226e['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 _0x1a8994{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x22b829,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x3c3f2c){super(_0x3c3f2c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x7cfb1b=this['editor']['config'];_0x7cfb1b['define']('trackChanges.SuggestionThreadView',ne),_0x7cfb1b['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x7cfb1b['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xef4a0,_0x141e86){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x39f133,_0x20cc8d]of this['_handleControllerBuffer']){const _0x2999ba=this['_suggestionToController']['has'](_0x39f133);_0x2999ba||_0x20cc8d?_0x2999ba&&_0x20cc8d&&this['_destroyController'](_0x39f133):this['_initializeController'](_0x39f133);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xef4a0,_0x141e86);}['init'](){const _0x369281=this['editor'],_0x99d3a4=_0x369281['plugins']['get']('TrackChangesEditing'),_0x9517c1=_0x369281['plugins']['get']('Annotations'),_0x349859=_0x369281['plugins']['get']('EditorAnnotations'),_0x583188=_0x369281['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x349859['addSourceCollector'](()=>{const _0x39904c=[];for(const [_0x36298f,_0x5ea086]of Array['from'](this['_suggestionToController'])){const _0x5b7b3c=_0x36298f['getAllAdjacentSuggestions'](),_0x2e5b9e=[];for(const _0x2917a0 of _0x5b7b3c){if(!_0x2917a0['isInContent'])continue;if(_0x2917a0['isMultiRange']){_0x2e5b9e['push'](..._0x2917a0['getRanges']());continue;}const _0x3076b6=_0x2917a0['getFirstRange']();if(_0x2e5b9e['length']>0x0){const _0x34c864=_0x2e5b9e[0x0]['getJoined'](_0x3076b6);if(_0x34c864){_0x2e5b9e[0x0]=_0x34c864;continue;}}_0x2e5b9e['push'](_0x3076b6);}_0x39904c['push']([_0x5ea086['view'],_0x2e5b9e]);}return _0x39904c;}),this['listenTo'](_0x99d3a4,'suggestionLoaded',(_0x5f0678,_0x583c62)=>{this['listenTo'](_0x583c62,'change:previous',(_0x50f6f2,_0x278c08,_0x17b7a8,_0x235dc1)=>{_0x583c62['isInContent']&&(null==_0x17b7a8?(this['_updateController'](_0x235dc1['head']),this['_handleSuggestionControllerDelayed'](_0x583c62,!0x1)):(this['_updateController'](_0x17b7a8['head']),null==_0x235dc1&&this['_handleSuggestionControllerDelayed'](_0x583c62,!0x0)));}),null!==_0x583c62['previous']?this['_updateController'](_0x583c62['head']):this['_handleSuggestionControllerDelayed'](_0x583c62,!0x1);}),this['listenTo'](_0x99d3a4,'suggestionUnloaded',(_0x51482e,_0x5e1d28,_0x566f51)=>{this['stopListening'](_0x5e1d28,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5e1d28),this['_suggestionToController']['has'](_0x5e1d28)&&this['_destroyController'](_0x5e1d28),_0x566f51&&this['_updateController'](_0x566f51['head']);}),this['listenTo'](_0x99d3a4,'suggestionChanged',(_0x286f4d,_0x183f03)=>{this['_updateController'](_0x183f03);}),this['listenTo'](_0x9517c1,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x583188,'addComment',(_0x3ebedd,{threadId:_0x4a2747,isFromAdapter:_0x58a80f})=>{if(_0x58a80f||!_0x99d3a4['hasSuggestion'](_0x4a2747))return;const _0x3bc6ed=_0x99d3a4['getSuggestion'](_0x4a2747);this['_suggestionToController']['get'](_0x3bc6ed)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x3fa61d=this['editor']['plugins']['get']('Annotations'),_0x5b6d2c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40bb34=Array['from'](_0x3fa61d['activeAnnotations'],_0x1a88f6=>_0x1a88f6['innerView'])['filter'](_0x5e4977=>this['_viewToController']['has'](_0x5e4977)),_0x518d2d=[];for(const _0x281f4e of _0x40bb34){const _0x21ea84=this['_viewToController']['get'](_0x281f4e)['model']['getAllAdjacentSuggestions']();_0x518d2d['push'](..._0x21ea84['reduce']((_0x11a4a4,_0x4b70a2)=>[..._0x11a4a4,..._0x4b70a2['getMarkerNames']()],[]));}_0x5b6d2c['activeMarkers']=_0x518d2d;}['_addUIComponentsToFactory'](){const _0x2d1e03=this['editor'],_0x18528d=_0x2d1e03['locale'],_0x5864d1=o(_0x18528d,'Track\x20changes'),_0x10612c=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x5864d1,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x18528d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x18528d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x18528d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x18528d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x2870bf of _0x10612c)if(ae(_0x2870bf)){const _0x247378=_0x2d1e03['commands']['get'](_0x2870bf['model']['commandName']);_0x2870bf['model']['bind']('isOn','isEnabled')['to'](_0x247378,'value','isEnabled');}_0x2d1e03['ui']['componentFactory']['add']('trackChanges',_0x5d633e=>this['_createToolbarButton'](_0x5d633e,_0x10612c,_0x5864d1)),_0x2d1e03['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3dd74c=>this['_createMenuBarMenu'](_0x3dd74c,_0x10612c,_0x5864d1));}['_createToolbarButton'](_0x200d34,_0xb68895,_0x19b5b7){const _0x1d5eb8=zt(_0x200d34,Zt),_0x29ed44=this['editor']['commands']['get']('trackChanges');_0x1d5eb8['buttonView']['set']({'tooltip':_0x19b5b7,'label':_0x19b5b7,'icon':ie}),_0x1d5eb8['buttonView']['bind']('isOn')['to'](_0x29ed44,'value'),_0x1d5eb8['buttonView']['on']('execute',()=>{_0x29ed44['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x1d5eb8,_0xb68895,{'role':'menu'});const _0x289e1e=[];for(const _0x51a82a of _0xb68895)ae(_0x51a82a)&&_0x289e1e['push'](this['editor']['commands']['get'](_0x51a82a['model']['commandName']));const _0x4f5012=_0x1d5eb8['buttonView'];return _0x4f5012['actionView']['unbind']('isEnabled'),_0x4f5012['arrowView']['unbind']('isEnabled'),_0x4f5012['actionView']['bind']('isEnabled')['to'](_0x29ed44,'isEnabled'),_0x4f5012['arrowView']['bind']('isEnabled')['toMany'](_0x289e1e,'isEnabled',(..._0x2dabf8)=>_0x2dabf8['some'](_0x51ddcd=>_0x51ddcd)),_0x1d5eb8['on']('execute',_0x317a03=>{this['editor']['execute'](_0x317a03['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1d5eb8;}['_createMenuBarMenu'](_0x3f8d92,_0x48292f,_0x57bb4c){const _0x2d2b53=new Kt(_0x3f8d92),_0x1c7924=this['editor']['commands']['get']('trackChanges');_0x2d2b53['buttonView']['set']({'label':_0x57bb4c,'icon':ie});const _0x4c4e8f=new Qt(_0x3f8d92);for(const _0x335333 of _0x48292f){if('separator'==_0x335333['type']){_0x4c4e8f['items']['add'](new Jt(_0x3f8d92));continue;}const _0x60e799=new Xt(_0x3f8d92,_0x2d2b53),_0x572fad=new Yt(_0x3f8d92),_0x3ac610=_0x335333['model'];_0x572fad['bind'](...Object['keys'](_0x3ac610))['to'](_0x3ac610),_0x572fad['delegate']('execute')['to'](_0x2d2b53),_0x572fad['on']('execute',()=>{this['editor']['execute'](_0x3ac610['commandName']),this['editor']['editing']['view']['focus']();}),_0x60e799['children']['add'](_0x572fad),_0x4c4e8f['items']['add'](_0x60e799);}return _0x2d2b53['bind']('isEnabled')['to'](_0x1c7924,'isEnabled'),_0x2d2b53['panelView']['children']['add'](_0x4c4e8f),_0x2d2b53;}['_initializeController'](_0x17286e){const _0x540498=this['editor'],_0x43c8a3=_0x540498['config'],_0x2e5985=_0x540498['plugins']['get']('Annotations'),_0x38bd92=_0x540498['plugins']['get']('CommentsRepository'),_0x2b60be=_0x540498['plugins']['get']('EditorAnnotations'),_0x2b7821=_0x540498['plugins']['get'](_0x22b829)['me'],_0x2db035=_0x43c8a3['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0xb4f3f0,CommentThreadInputView:_0x3517fc}=_0x540498['plugins']['get']('CommentsUI');let _0x3b1b02,_0x528604;this['_annotationViews']['has'](_0x17286e['id'])?(_0x528604=this['_annotationViews']['get'](_0x17286e['id']),_0x3b1b02=_0x528604['mainView']):(_0x3b1b02=new _0x2db035(_0x540498['locale'],_0x17286e,_0x2b7821,{'disableComments':this['_disableComments'],'editorConfig':_0x43c8a3['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x43c8a3['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x43c8a3['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x43c8a3['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2cb772(_0x43c8a3['get']('locale')),'CommentView':_0x43c8a3['get']('comments')['CommentView'],'CommentsListView':_0xb4f3f0,'CommentThreadInputView':_0x3517fc}),_0x3b1b02['acceptButton']['on']('execute',()=>{_0x540498['editing']['view']['focus']();}),_0x3b1b02['discardButton']['on']('execute',()=>{_0x540498['editing']['view']['focus']();}),_0x528604=_0x2e5985['createAnnotationView'](this['editor']['locale'],_0x3b1b02),_0x528604['bind']('isDirty')['to'](_0x3b1b02,'isDirty'),_0x528604['bind']('length')['to'](_0x3b1b02),_0x528604['bind']('type')['to'](_0x3b1b02,'type',_0xee9d65=>'suggestion-'+_0xee9d65),this['_annotationViews']['set'](_0x17286e['id'],_0x528604));const _0x16b3db=_0x38bd92['createCommentThreadController'](_0x17286e['commentThread'],_0x3b1b02),_0x3e0a03=new oe(_0x540498,_0x17286e,_0x3b1b02,_0x16b3db),_0x134254=_0x17286e['getAllAdjacentSuggestions']()['filter'](_0x441334=>_0x441334['isInContent']);_0x3b1b02['descriptionParts']=_0x540498['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x134254),this['_suggestionToController']['set'](_0x17286e,_0x3e0a03),this['_viewToController']['set'](_0x3b1b02,_0x3e0a03);const _0x1239c6=_0x2e5985['createAnnotation']({'view':_0x528604,'target':()=>{const _0x3a3529=[],_0x317870=_0x17286e['getAllAdjacentSuggestions']()['filter'](_0x157b0d=>_0x157b0d['isInContent']);for(const _0x1485e7 of _0x317870)_0x3a3529['push'](..._0x1485e7['getMarkers']());return _0x4358e3(_0x540498['editing'],_0x3a3529);},'type':()=>'suggestion-'+_0x3e0a03['view']['type']});_0x38bd92['_bindAnnotationToEditors'](_0x3b1b02,_0x1239c6),_0x2e5985['add'](_0x1239c6),_0x2b60be['registerAnnotation'](_0x1239c6);}['_destroyController'](_0x324556){const _0xfd322d=this['editor']['plugins']['get']('CommentsRepository'),_0x3e2f07=this['editor']['plugins']['get']('Annotations'),_0x6d75f4=this['_suggestionToController']['get'](_0x324556),_0x423189=_0x6d75f4['view'],_0x389a47=_0x3e2f07['getByInnerView'](_0x423189);_0xfd322d['_unbindEditors'](_0x423189),_0x389a47&&_0x3e2f07['remove'](_0x389a47),this['_suggestionToController']['delete'](_0x324556),this['_viewToController']['delete'](_0x423189),_0x6d75f4['destroy']();}['_updateController'](_0x10fa22){if(!_0x10fa22['isInContent']||!this['_suggestionToController']['has'](_0x10fa22))return;const _0x2721d9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5089cf=this['_suggestionToController']['get'](_0x10fa22),_0x58fd44=_0x10fa22['getAllAdjacentSuggestions']();_0x5089cf['view']['descriptionParts']=_0x2721d9['descriptionFactory']['getDescriptions'](_0x58fd44);}['destroy'](){for(const _0x5c9de3 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5c9de3);for(const _0x4a149f of this['_annotationViews']['values']())_0x4a149f['mainView']['destroy']();super['destroy']();}}function ae(_0x3f525d){return'model'in _0x3f525d;}class k extends _0x1a8994{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x160286){this['editor']['plugins']['get'](p)['adapter']=_0x160286;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1d639e){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1d639e);}['getSuggestions']({skipNotAttached:_0x586483=!0x1,toJSON:_0x2da405=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x586483,'toJSON':_0x2da405});}['getSuggestion'](_0x27c025){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x27c025);}}const T=['Pagination'];class P extends _0x1a8994{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x3b4427=this['editor'];if(_0x3b4427['config']['define']('trackChangesData.editorCreator',_0x5a7bfe=>{const _0x4e01ff=_0x3b4427['model']['document']['getRootNames']()['reduce']((_0x50ff18,_0x6cf452)=>(_0x50ff18[_0x6cf452]='',_0x50ff18),{});return _0x3b4427['constructor']['create'](_0x4e01ff,_0x5a7bfe);}),'function'!=typeof _0x3b4427['config']['get']('trackChangesData')['editorCreator'])throw new _0xe1a238('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x59edef){return N(this['editor'],!0x0,_0x59edef);}['getDataWithDiscardedSuggestions'](_0x51dfe2){return N(this['editor'],!0x1,_0x51dfe2);}}class D extends _0x1a8994{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x1a9128){super(_0x1a9128),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(_0x226052){return void 0x0!==_0x226052['getRootsAttributes'];}async function N(_0xbd95fa,_0x85a304,_0x5615cd){const _0x38c2e9=_0x5eab73(_0xbd95fa,T);_0x38c2e9['plugins']['push'](p,D),_0x38c2e9['rootsAttributes']=v(_0xbd95fa)?_0xbd95fa['getRootsAttributes']():void 0x0;const _0x4e5258=document['createDocumentFragment'](),_0x53c58a=_0xbd95fa['config']['get']('trackChangesData')['editorCreator'],_0x1b8ddd=await _0x53c58a(_0x38c2e9,()=>function(_0xae3a3){const _0x5e13b0=document['createElement']('div');return _0xae3a3['appendChild'](_0x5e13b0),_0x5e13b0;}(_0x4e5258));!function(_0x477732,_0x56e9bb){const _0x3dc2e2=_0x477732['model']['document']['getRootNames']()['reduce']((_0x5bce04,_0x22db31)=>(_0x5bce04[_0x22db31]=_0x477732['data']['get']({'rootName':_0x22db31}),_0x5bce04),{}),_0x3d49ec=_0x477732['plugins']['get']('Users')['users']['map'](_0xc267a9=>({'id':_0xc267a9['id'],'name':_0xc267a9['name']})),_0xd06c12=_0x477732['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5cdd6e=_0x477732['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xce0d08=_0x56e9bb['plugins']['get']('Users'),_0x245722=_0x56e9bb['plugins']['get']('TrackChangesEditing'),_0xec8903=_0x56e9bb['plugins']['get']('CommentsRepository');for(const _0x39ff58 of _0x3d49ec)_0xce0d08['getUser'](_0x39ff58['id'])||_0xce0d08['addUser'](_0x39ff58);_0xce0d08['me']||_0xce0d08['useAnonymousUser']();for(const _0x13ccdf of _0x5cdd6e)_0xec8903['addCommentThread'](_0x13ccdf);for(const _0x475814 of _0xd06c12)_0x245722['addSuggestionData'](_0x475814);_0x56e9bb['data']['set'](_0x3dc2e2);}(_0xbd95fa,_0x1b8ddd),_0x1b8ddd['execute'](_0x85a304?'acceptAllSuggestions':'discardAllSuggestions');const _0x35a758=v(_0x1b8ddd)?_0x1b8ddd['getFullData'](_0x5615cd):_0x1b8ddd['data']['get'](_0x5615cd);return await _0x1b8ddd['destroy'](),_0x35a758;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|