@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240720.0 → 0.0.0-nightly-20240721.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +3 -3
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as
|
|
24
|
-
_0x28acc2(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x527a38,_0x29e851){super(),this['id']=_0x29e851['id'],this['type']=_0x29e851['type'],this['subType']=_0x29e851['subType']||null,this['author']=_0x29e851['author'],this['creator']=_0x29e851['creator']||_0x29e851['author'],this['isExternal']=Boolean(_0x29e851['attributes']&&_0x29e851['attributes']['@external']),this['data']=null,this['_model']=_0x527a38,this['_onAccept']=_0x29e851['onAccept'],this['_onDiscard']=_0x29e851['onDiscard'],this['_onAttributesChange']=_0x29e851['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x29e851['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 _0xfb778f=this;for(;_0xfb778f['previous'];)_0xfb778f=_0xfb778f['previous'];return _0xfb778f;}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'](_0xb43db7){this['_markerNames']['add'](_0xb43db7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x114598=>this['_model']['markers']['get'](_0x114598))['filter'](_0x4db2e8=>_0x4db2e8);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x56ba9e=>{for(const _0x125370 of this['getMarkers']())_0x56ba9e['removeMarker'](_0x125370);}),this['_markerNames']['clear']();}['removeMarker'](_0x5cdb86){this['_model']['change'](_0x48880e=>{_0x48880e['removeMarker'](_0x5cdb86);}),this['_markerNames']['delete'](_0x5cdb86);}['addRange'](_0x340e3a){const _0x1ebf82='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1ebf82),this['_model']['change'](_0x445e50=>{_0x445e50['addMarker'](_0x1ebf82,{'range':_0x340e3a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1659c5){for(const _0xc6905a of this['getRanges']())if(_0xc6905a['isIntersecting'](_0x1659c5))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4ed4fb=>_0x4ed4fb['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x759ca9,_0x243da0)=>[..._0x759ca9,..._0x243da0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x18294b=this['getRanges']();if(0x1!=_0x18294b['length'])return null;const _0x491d31=_0x18294b[0x0],_0x2017a9=_0x491d31['start']['nodeAfter'],_0x5478e1=_0x491d31['end']['nodeBefore'];return _0x2017a9 instanceof _0x2f484a?_0x2017a9!=_0x5478e1?null:_0x2017a9: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 _0x1b90d5=[];let _0x100a65=this['head'];for(;_0x100a65;)_0x1b90d5['push'](_0x100a65),_0x100a65=_0x100a65['next'];return _0x1b90d5;}['setAttribute'](_0x256aa5,_0x2ca998){const _0x45311f=_0x7c6eac(this['attributes']);_0x3e0bf6(_0x45311f,_0x256aa5,_0x2ca998),_0x35c1e7(_0x45311f,this['attributes'])||(this['attributes']=_0x45311f,this['_onAttributesChange'](_0x45311f));}['removeAttribute'](_0x18acca){const _0x5a57a7=_0x7c6eac(this['attributes']);_0x243a98(_0x5a57a7,_0x18acca),_0x35c1e7(_0x5a57a7,this['attributes'])||(this['attributes']=_0x5a57a7,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 _0x27f732()['substr'](0x1,0x5);}}function o(_0x4b8ce1,_0x4b5646,_0x301d94){const t=_0x4b8ce1['t'];switch(_0x4b5646){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',_0x301d94);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x301d94);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x301d94);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x301d94);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x301d94);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',_0x301d94);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x301d94);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',_0x301d94);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x301d94);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x301d94);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x301d94);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x301d94);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x301d94);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x301d94);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x301d94);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x301d94);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x301d94);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x301d94);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x301d94);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x301d94);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x301d94);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x301d94);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x301d94);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'},_0x301d94);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x301d94);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x301d94);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x301d94);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x301d94);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x301d94);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'},_0x301d94);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x301d94);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x301d94);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x301d94);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x301d94);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'},_0x301d94);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x301d94);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'},_0x301d94);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'},_0x301d94);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x301d94);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'},_0x301d94);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x301d94);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'},_0x301d94);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x301d94);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x301d94);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x301d94);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'},_0x301d94);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'},_0x301d94);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 _0x4b5646;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1824d5,_0x2ad20e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1824d5,this['_locale']=_0x2ad20e;}['getDescriptions'](_0x21bfa9){const _0x2994f0=[],_0x3937b4=new Set(),_0x4052fa=new Set();for(let _0x5c62ba=0x0;_0x5c62ba<_0x21bfa9['length'];_0x5c62ba++){const _0x3c8520=_0x21bfa9[_0x5c62ba];if(!_0x3c8520['isInContent'])continue;const _0x4045f8=this['_handleCustomCallbackDescription'](_0x3c8520);if(_0x4045f8){if(null!=_0x3c8520['subType']){if(_0x3937b4['has'](_0x3c8520['subType']))continue;_0x3937b4['add'](_0x3c8520['subType']);}_0x2994f0['push'](_0x4045f8);}else{if('attribute'!=_0x3c8520['type'])'insertion'!=_0x3c8520['type']&&'deletion'!=_0x3c8520['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2994f0,_0x3c8520,_0x21bfa9[_0x5c62ba+0x1]);else{const _0xcd685=_0x3c8520['data']['key'];if(_0x4052fa['has'](_0xcd685))continue;_0x4052fa['add'](_0x3c8520['data']['key']),_0xcd685==m?this['_handleRenameSuggestionDescription'](_0x2994f0,_0x3c8520):this['_handleAttributeSuggestionDescription'](_0x2994f0,_0x3c8520);}}}return this['_resolveDescriptionItems'](_0x2994f0);}['registerDescriptionCallback'](_0x3d1c3d){this['_customCallbacks']['push'](_0x3d1c3d);}['registerElementLabel'](_0x54b39c,_0x2e4a3b,_0x39fe4e=_0x200434['normal']){'function'==typeof _0x54b39c?_0x3a65c8(this['_itemLabelsCallbacks'],{'matchingCallback':_0x54b39c,'label':_0x2e4a3b,'priority':_0x39fe4e}):this['_itemLabels']['set'](_0x54b39c,_0x2e4a3b);}['registerAttributeLabel'](_0x47e62a,_0x1ba57b){this['_attributeLabels']['set'](_0x47e62a,_0x1ba57b);}['getItemLabel'](_0x587f43,_0x58576c=0x1){let _0x4dad63;for(const _0x54f6c7 of this['_itemLabelsCallbacks'])if(_0x54f6c7['matchingCallback'](_0x587f43)){_0x4dad63=_0x54f6c7['label'];break;}return _0x4dad63||(_0x4dad63=this['_itemLabels']['get'](_0x587f43['name'])),_0x4dad63?_0x4dad63(_0x58576c):0x1!==_0x58576c?_0x58576c+'\x20'+_0x587f43['name']+'s':''+_0x587f43['name'];}['_addDescriptionItems'](_0x458286,_0x4535f1){const _0x2640b8=_0x4535f1['getFirstRange']()['getWalker'](),_0x3915be='insertion'==_0x4535f1['type']?'add':'remove';for(const _0x30b2ad of _0x2640b8){const _0xefcaa2=_0x30b2ad['item'],_0x27a188=_0x458286[_0x458286['length']-0x1];if(_0xefcaa2['is']('$textProxy'))_0x27a188&&_0x27a188['type']['indexOf']('Container')>-0x1&&_0x458286['pop'](),_0x27a188&&'text'==_0x27a188['type']?_0x27a188[_0x3915be]+=_0xefcaa2['data']:_0x458286['push']({'type':'text','add':'add'==_0x3915be?_0xefcaa2['data']:'','remove':'remove'==_0x3915be?_0xefcaa2['data']:''});else{if(this['_schema']['isObject'](_0xefcaa2)){const _0x3f3711=_0xefcaa2;if(_0x27a188&&_0x27a188['type']['indexOf']('Container')>-0x1&&_0x458286['pop'](),'elementEnd'==_0x30b2ad['type'])continue;_0x27a188&&_0x27a188['type']==_0x3915be+'Object'&&_0x27a188['element']['name']==_0x3f3711['name']?_0x27a188['quantity']++:_0x458286['push']({'type':_0x3915be+'Object','element':_0x3f3711,'quantity':0x1}),_0x2640b8['skip'](_0x25243d=>!('elementEnd'==_0x25243d['type']&&_0x25243d['item']==_0xefcaa2));}else{if(this['_schema']['checkChild'](_0xefcaa2,'$text')||_0xefcaa2['is']('element','softBreak')){const _0x298812=_0xefcaa2;if('add'==_0x3915be&&'elementStart'==_0x30b2ad['type']||'remove'==_0x3915be&&'elementEnd'==_0x30b2ad['type'])continue;if(_0x27a188&&-0x1==_0x27a188['type']['indexOf']('Container')){'text'==_0x27a188['type']&&(_0x27a188[_0x3915be]+='\x0a');continue;}let _0x481c51;if(_0x481c51='add'==_0x3915be?_0x298812['nextSibling']&&!this['_schema']['isObject'](_0x298812['nextSibling'])?_0x298812['nextSibling']:null:_0x298812['previousSibling']&&!this['_schema']['isObject'](_0x298812['previousSibling'])?_0x298812['previousSibling']:null,_0x298812['isEmpty']||_0x481c51&&_0x481c51['isEmpty']){const _0x5a6aec=_0x481c51&&_0x481c51['isEmpty']?_0x481c51:_0x298812;_0x27a188&&_0x27a188['type']==_0x3915be+'EmptyContainer'&&_0x27a188['element']['name']==_0x5a6aec['name']?_0x27a188['quantity']++:_0x458286['push']({'type':_0x3915be+'EmptyContainer','element':_0x5a6aec,'quantity':0x1});}else _0x458286['push']({'type':_0x3915be+'Container','element':_0x298812});}}}}}['_resolveDescriptionItems'](_0x36411d){const _0x2e7e7f=this['_locale'],_0x35f22b=[],_0x302294=[],_0x21d1c6=[];for(const _0x130888 of _0x36411d)switch(_0x130888['type']){case'text':if(_0x130888['add']=_0x130888['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x130888['remove']=_0x130888['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x130888['add']&&''!=_0x130888['remove']){_0x35f22b['push']({'type':'replace','content':o(_0x2e7e7f,'REPLACE_TEXT',['\x22'+_0x130888['remove']+'\x22','\x22'+_0x130888['add']+'\x22'])});continue;}if(null!=_0x130888['add']['match'](/^ +$/)){_0x35f22b['push']({'type':'insertion','content':o(_0x2e7e7f,'*Insert:*\x20%0',o(_0x2e7e7f,'ELEMENT_SPACE',_0x130888['add']['length']))});continue;}if(null!=_0x130888['remove']['match'](/^ +$/)){_0x35f22b['push']({'type':'deletion','content':o(_0x2e7e7f,'*Remove:*\x20%0',o(_0x2e7e7f,'ELEMENT_SPACE',_0x130888['remove']['length']))});continue;}if(''!=_0x130888['add']){_0x35f22b['push']({'type':'insertion','content':o(_0x2e7e7f,'*Insert:*\x20%0','\x22'+_0x130888['add']+'\x22')});continue;}_0x35f22b['push']({'type':'deletion','content':o(_0x2e7e7f,'*Remove:*\x20%0','\x22'+_0x130888['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x35f22b['push']({'type':'insertion','content':o(_0x2e7e7f,'*Insert:*\x20%0',this['getItemLabel'](_0x130888['element'],_0x130888['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x35f22b['push']({'type':'deletion','content':o(_0x2e7e7f,'*Remove:*\x20%0',this['getItemLabel'](_0x130888['element'],_0x130888['quantity']))});continue;case'addContainer':_0x35f22b['push']({'type':'insertion','content':o(_0x2e7e7f,'*Split:*\x20%0',this['getItemLabel'](_0x130888['element'],_0x130888['quantity']))});continue;case'removeContainer':_0x35f22b['push']({'type':'deletion','content':o(_0x2e7e7f,'*Merge:*\x20%0',this['getItemLabel'](_0x130888['element'],_0x130888['quantity']))});continue;case'addFormat':_0x302294['push'](_0x130888['key']);continue;case'removeFormat':_0x21d1c6['push'](_0x130888['key']);continue;default:_0x35f22b['push'](_0x130888);}if(_0x302294['length']){const _0x2efde3=_0x302294['map'](_0x2c30d2=>this['_attributeLabels']['has'](_0x2c30d2)?this['_attributeLabels']['get'](_0x2c30d2):_0x2c30d2)['join'](',\x20');_0x35f22b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2efde3)});}if(_0x21d1c6['length']){const _0x3910d3=_0x21d1c6['map'](_0x20d9c3=>this['_attributeLabels']['has'](_0x20d9c3)?this['_attributeLabels']['get'](_0x20d9c3):_0x20d9c3)['join'](',\x20');_0x35f22b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3910d3)});}return _0x35f22b;}['_handleCustomCallbackDescription'](_0x4fdd20){for(const _0x593cc2 of this['_customCallbacks']){const _0x376f75=_0x593cc2(_0x4fdd20);if(_0x376f75&&'type'in _0x376f75)return _0x376f75;}}['_handleAttributeSuggestionDescription'](_0x39f59e,_0x3e50cb){const _0x4e3fe8=_0x3e50cb['data'],_0x5b8680=void 0x0===_0x4e3fe8['newValue']?'removeFormat':'addFormat';_0x39f59e['push']({'type':_0x5b8680,'key':_0x4e3fe8['key']});}['_handleRenameSuggestionDescription'](_0xeace45,_0x55dcb0){_0xeace45['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x55dcb0['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5c5cb9,_0x36d6ad,_0x5b475f){if(this['_addDescriptionItems'](_0x5c5cb9,_0x36d6ad),_0x5b475f&&_0x5b475f['getFirstRange']()&&!_0x36d6ad['getFirstRange']()['end']['isEqual'](_0x5b475f['getFirstRange']()['start'])){const _0xf7f75e=_0x5c5cb9[_0x5c5cb9['length']-0x1],_0x1c67e9='insertion'==_0x36d6ad['type']?'add':'remove';_0xf7f75e&&'text'==_0xf7f75e['type']&&(_0xf7f75e[_0x1c67e9]+='\x0a');}}}class E extends _0x15c086{['afterInit'](){const _0x27e100=this['editor'],_0x3edf97=_0x27e100['plugins']['get']('TrackChangesEditing');_0x27e100['commands']['get']('showAIAssistant')&&_0x3edf97['enableCommand']('showAIAssistant');}}class V extends _0x15c086{['afterInit'](){const _0x13fa7f=this['editor'],_0x2176aa=_0x13fa7f['locale'];if(!_0x13fa7f['plugins']['has']('AlignmentEditing'))return;const _0x49bb11=_0x13fa7f['plugins']['get']('TrackChangesEditing');_0x49bb11['enableDefaultAttributesIntegration']('alignment'),_0x49bb11['registerBlockAttribute']('alignment'),_0x49bb11['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2176aa,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x227a75=this['editor'],_0x21a8e2=_0x227a75['locale'];_0x227a75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e1cf4=>{if('formatBlock'!=_0x3e1cf4['type'])return;const {data:_0x4e06b9}=_0x3e1cf4;if(_0x4e06b9&&'alignment'==_0x4e06b9['commandName']){const _0x302574=_0x4e06b9['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x21a8e2,'*Format:*\x20%0',function(_0x4a0095){switch(_0x4a0095){case'left':return o(_0x21a8e2,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x21a8e2,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x21a8e2,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x21a8e2,'FORMAT_JUSTIFY_TEXT');}}(_0x302574))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x15c086{['afterInit'](){const _0x210d8f=this['editor'],_0x22b757=_0x210d8f['plugins']['get']('TrackChangesEditing'),_0x2c05f4=_0x210d8f['locale'];for(const _0x1f4de3 of ti){if(!_0x210d8f['plugins']['has'](_0x1f4de3))continue;const _0x13a5f8=_0x1f4de3['slice'](0x0,-0x7)['toLowerCase'](),_0x308bee='FORMAT_'+_0x13a5f8['toUpperCase']();_0x22b757['enableDefaultAttributesIntegration'](_0x13a5f8),_0x22b757['registerInlineAttribute'](_0x13a5f8),_0x22b757['descriptionFactory']['registerAttributeLabel'](_0x13a5f8,o(_0x2c05f4,_0x308bee));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ba040=this['editor'],_0x460c18=_0x2ba040['locale'],_0x4ad2e3=_0x2ba040['plugins']['get']('TrackChangesEditing');function _0x2fba0c(_0x14e53a,_0x2594d1){_0x4ad2e3['descriptionFactory']['registerDescriptionCallback'](_0x2e87d2=>{if('formatInline'!=_0x2e87d2['type'])return;const {data:_0x39bef0}=_0x2e87d2;return _0x39bef0&&_0x39bef0['commandName']===_0x14e53a?_0x39bef0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x460c18,'*Format:*\x20%0',_0x2594d1)}:{'type':'format','content':o(_0x460c18,'*Remove\x20format:*\x20%0',_0x2594d1)}:void 0x0;});}_0x2fba0c('bold',o(_0x460c18,'FORMAT_BOLD')),_0x2fba0c('italic',o(_0x460c18,'FORMAT_ITALIC')),_0x2fba0c('underline',o(_0x460c18,'FORMAT_UNDERLINE')),_0x2fba0c('code',o(_0x460c18,'FORMAT_CODE')),_0x2fba0c('strikethrough',o(_0x460c18,'FORMAT_STRIKETHROUGH')),_0x2fba0c('subscript',o(_0x460c18,'FORMAT_SUBSCRIPT')),_0x2fba0c('superscript',o(_0x460c18,'FORMAT_SUPERSCRIPT'));}}class O extends _0x15c086{['afterInit'](){const _0x354c8e=this['editor'],_0x361b2d=_0x354c8e['locale'];if(!_0x354c8e['plugins']['has']('BlockQuoteEditing'))return;const _0x29474d=_0x354c8e['plugins']['get']('TrackChangesEditing'),_0x39d0ce=this['editor']['commands']['get']('blockQuote');_0x29474d['enableCommand']('blockQuote',(_0x58f5ad,_0x51f327={})=>{const _0x344c41=this['editor']['model']['document']['selection'],_0x2d25a=_0x51f327&&void 0x0!==_0x51f327['forceValue']?_0x51f327['forceValue']:!_0x39d0ce['value'];let _0x6aceca=[];if(_0x2d25a){const _0x2ab31a=Array['from'](_0x344c41['getSelectedBlocks']())['filter'](_0x246e96=>oo(_0x246e96)||function(_0x4e5108,_0xb4b260){const _0x706f7a=_0xb4b260['checkChild'](_0x4e5108['parent'],'blockQuote'),_0x352af2=_0xb4b260['checkChild'](['$root','blockQuote'],_0x4e5108);return _0x706f7a&&_0x352af2;}(_0x246e96,this['editor']['model']['schema']));_0x6aceca=to(_0x2ab31a,_0x354c8e['model']);}else{const _0x5c2c90=Array['from'](_0x344c41['getSelectedBlocks']())['filter'](_0x4aa710=>oo(_0x4aa710));_0x6aceca=to(_0x5c2c90,_0x354c8e['model']);}_0x354c8e['model']['change'](()=>{for(const _0x46f1d4 of _0x6aceca)_0x29474d['markBlockFormat'](_0x46f1d4,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2d25a}]});});}),_0x29474d['descriptionFactory']['registerDescriptionCallback'](_0x1a0512=>{const {data:_0x5c2326}=_0x1a0512;if(_0x5c2326&&'blockQuote'==_0x5c2326['commandName']){const _0x9a5e72=o(_0x361b2d,'ELEMENT_BLOCK_QUOTE');return _0x5c2326['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x361b2d,'*Set\x20format:*\x20%0',_0x9a5e72)}:{'type':'format','content':o(_0x361b2d,'*Remove\x20format:*\x20%0',_0x9a5e72)};}});}}function oo(_0x31de90){return'blockQuote'==_0x31de90['parent']['name'];}class G extends _0x15c086{['afterInit'](){const _0x26c532=this['editor'];_0x26c532['plugins']['has']('CaseChange')&&(_0x26c532['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x26c532['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x26c532['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x15c086{['afterInit'](){const _0xd6c662=this['editor'];_0xd6c662['commands']['get']('ckbox')&&_0xd6c662['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x15c086{['afterInit'](){const _0x50bceb=this['editor'];if(!_0x50bceb['plugins']['has']('CodeBlock'))return;const _0x4d275d=_0x50bceb['plugins']['get']('TrackChangesEditing'),_0x684c04=_0x50bceb['locale'],_0xcca2c9=_0x50bceb['config']['get']('codeBlock')['languages'],_0x55770f=_0x50bceb['commands']['get']('codeBlock');_0x4d275d['enableCommand']('indentCodeBlock'),_0x4d275d['enableCommand']('outdentCodeBlock'),_0x4d275d['enableCommand']('codeBlock',(_0x8cf064,_0x2d8640={})=>{const _0x2b1a15=_0x50bceb['model'],_0x2434fc=_0x50bceb['model']['document']['selection'],_0x173698=_0x2d8640&&void 0x0!==_0x2d8640['forceValue']?_0x2d8640['forceValue']:!_0x55770f['value'];let _0x19e9bb;_0x2d8640['language']||(_0x2d8640['language']=_0xcca2c9[0x0]['language']),_0x19e9bb=_0x173698?Array['from'](_0x2434fc['getSelectedBlocks']())['filter'](_0x3dbe19=>eo(_0x3dbe19)||function(_0x55cf80,_0x188a40){if(_0x55cf80['is']('rootElement')||_0x188a40['isLimit'](_0x55cf80))return!0x1;return _0x188a40['checkChild'](_0x55cf80['parent'],'codeBlock');}(_0x3dbe19,_0x2b1a15['schema'])):Array['from'](_0x2434fc['getSelectedBlocks']())['filter'](_0x262ce9=>eo(_0x262ce9));const _0xe28e09=to(_0x19e9bb,_0x2b1a15);_0x2b1a15['change'](()=>{for(const _0x5e1c08 of _0xe28e09)_0x4d275d['markBlockFormat'](_0x5e1c08,{'commandName':'codeBlock','commandParams':[{..._0x2d8640,'forceValue':_0x173698}],'formatGroupId':'blockName'});});}),(_0x4d275d['descriptionFactory']['registerElementLabel']('codeBlock',_0x7040b4=>o(_0x684c04,'ELEMENT_CODE_BLOCK',_0x7040b4)),_0x4d275d['descriptionFactory']['registerDescriptionCallback'](_0x1575d3=>{if('formatBlock'!=_0x1575d3['type'])return;const _0x1ca6a1=_0x684c04['t'],{data:_0x178e30}=_0x1575d3;if(!_0x178e30||'codeBlock'!=_0x178e30['commandName'])return;const _0x4b8570=_0x178e30['commandParams'][0x0]['language'],_0x5ac2c0=_0x1ca6a1(_0xcca2c9['find'](_0x5d73f1=>_0x5d73f1['language']===_0x4b8570)['label'])['toLowerCase']();return _0x178e30['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x684c04,'*Set\x20format:*\x20%0',o(_0x684c04,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5ac2c0+')')}:{'type':'format','content':o(_0x684c04,'*Remove\x20format:*\x20%0',o(_0x684c04,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5b9d04){return'codeBlock'==_0x5b9d04['name'];}class H extends _0x15c086{['afterInit'](){const _0x361ae4=this['editor'];if(!_0x361ae4['plugins']['has']('CommentsEditing'))return;_0x361ae4['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5416a0,_0x5e9084,_0x371154){const _0x5df1e6=[];for(const _0x447127 of _0x5e9084['getItems']())_0x447127['hasAttribute'](_0x5416a0)&&_0x5df1e6['push'](_0x371154['createRangeOn'](_0x447127));return _0x5df1e6;}function _e(_0x3ecee3,_0x497817,{showActiveMarker:_0x53f8e6=!0x0}={}){const _0x1f4c0c=_0x3ecee3['plugins']['get']('TrackChangesEditing');return(_0x16bb49,_0x37a22a,_0x5d4d59)=>{if(!_0x5d4d59['consumable']['test'](_0x37a22a['markerRange'],_0x16bb49['name']))return;const _0x256732=_0x37a22a['markerRange']['getWalker'](),_0x243eb8=_0x37a22a['markerRange']['start'],_0x1fcc8d=_0x3ecee3['model']['schema'];let _0x21839a=null,_0x5ac659=null,_0x527a73=!0x1,_0x32b0ce=!0x1;for(const _0x167879 of _0x256732){const _0x355cd8=_0x167879['item'];_0x527a73=_0x527a73||_0x1fcc8d['isContent'](_0x355cd8);const _0x267204=_0x5d4d59['mapper']['toViewElement'](_0x355cd8);if(_0x267204&&_0x267204['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x167879['type']&&(_0x1fcc8d['isBlock'](_0x355cd8)&&!_0x1fcc8d['isLimit'](_0x355cd8)&&(_0x355cd8['nextSibling']||_0x243eb8['isAtEnd']?_0x21839a&&_0x21839a['parent']==_0x355cd8||(_0x21839a=_0x355cd8,_0x3b8203(_0x167879['previousPosition']),_0x32b0ce=!0x0):_0x5ac659=_0x5ac659||_0x167879['previousPosition']));}function _0x3b8203(_0x71f03b){const _0x51b2b2=_0x5d4d59['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x497817}),_0x1f3db8=_0x5d4d59['mapper']['toViewPosition'](_0x71f03b);_0x53f8e6&&_0x1f4c0c['activeMarkers']['includes'](_0x37a22a['markerName'])&&_0x5d4d59['writer']['addClass']('ck-suggestion-marker--active',_0x51b2b2),_0x5d4d59['writer']['insert'](_0x1f3db8,_0x51b2b2),_0x5d4d59['mapper']['bindElementToMarker'](_0x51b2b2,_0x37a22a['markerName']);}_0x527a73||_0x32b0ce||!_0x5ac659||_0x3b8203(_0x5ac659);};}class q extends _0x15c086{static get['requires'](){return[_0x272956];}['init'](){const _0x28e29f=this['editor'],_0x5372cb=_0x28e29f['plugins']['get']('TrackChangesEditing');_0x5372cb['enableCommand']('delete');const _0x56aeac=_0x28e29f['commands']['get']('deleteForward');_0x5372cb['enableCommand']('deleteForward',(_0x250569,_0x1912fa={})=>{const _0x438a40=_0x28e29f['model']['createSelection'](_0x28e29f['model']['document']['selection']);_0x438a40['isCollapsed']&&_0x28e29f['model']['modifySelection'](_0x438a40,{'direction':'forward','unit':_0x1912fa['unit']});const _0x5d9444=_0x438a40['getFirstRange'](),_0x30430c=_0x948f0b['fromRange'](_0x5d9444);let _0x1b2606;_0x250569(_0x1912fa),_0x1b2606='$graveyard'==_0x30430c['root']['rootName']?_0x28e29f['model']['createRange'](_0x5d9444['start']):_0x28e29f['model']['createRange'](_0x30430c['start'],_0x30430c['end']),_0x30430c['detach'](),_0x28e29f['model']['enqueueChange'](_0x56aeac['buffer']['batch'],_0x3d3dde=>{_0x56aeac['buffer']['lock'](),_0x3d3dde['setSelection'](_0x3d3dde['createRange'](_0x1b2606['end'])),_0x56aeac['buffer']['unlock']();});}),_0x28e29f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x28e29f,'merge'),{'priority':'high'}),_0x28e29f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3f6914,_0x15510e,_0x5c038e)=>{_0x5c038e['options']['showSuggestionHighlights']&&_e(_0x28e29f,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3f6914,_0x15510e,_0x5c038e);},{'priority':'high'}),_0x28e29f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x6c7b8a,_0x1d8ba5,_0x4907e5)=>{const _0x32794e=_0x4907e5['mapper']['markerNameToElements'](_0x1d8ba5['markerName']);if(_0x32794e){for(const _0x437add of _0x32794e)_0x437add['is']('uiElement')&&(_0x4907e5['mapper']['unbindElementFromMarkerName'](_0x437add,_0x1d8ba5['markerName']),_0x4907e5['writer']['remove'](_0x437add));}},{'priority':'high'});}}class z extends _0x15c086{['afterInit'](){const _0x1b93c9=this['editor'];if(!_0x1b93c9['plugins']['has']('ListEditing'))return;const _0x9d1f74=_0x1b93c9['locale'],_0x339497=_0x1b93c9['plugins']['get']('TrackChangesEditing'),_0x1fcddb=_0x1b93c9['plugins']['has']('TodoListEditing'),_0x4319f4=!!_0x1b93c9['config']['get']('list.multiBlock');function _0x3a3ff7(_0x28c535){return{'type':'format','content':''+o(_0x9d1f74,'*Set\x20format:*\x20%0',_0x28c535)};}function _0x3920de(_0x39021c){return{'type':'format','content':''+o(_0x9d1f74,'*Remove\x20format:*\x20%0',_0x39021c)};}_0x339497['enableDefaultAttributesIntegration']('numberedList'),_0x339497['enableDefaultAttributesIntegration']('bulletedList'),_0x339497['enableDefaultAttributesIntegration']('customNumberedList'),_0x339497['enableDefaultAttributesIntegration']('customBulletedList'),_0x339497['enableDefaultAttributesIntegration']('indentList'),_0x339497['enableDefaultAttributesIntegration']('outdentList'),_0x339497['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x339497['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x339497['registerBlockAttribute']('listItemId'),_0x339497['registerBlockAttribute']('listType'),_0x339497['registerBlockAttribute']('listIndent'),_0x4319f4&&(_0x339497['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x339497['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1fcddb&&(_0x339497['enableDefaultAttributesIntegration']('todoList'),_0x339497['enableDefaultAttributesIntegration']('checkTodoList'),_0x339497['registerBlockAttribute']('todoListChecked'),_0x339497['descriptionFactory']['registerDescriptionCallback'](_0x3f2ebf=>{const {data:_0x21b521}=_0x3f2ebf;if(_0x21b521&&'todoListChecked'==_0x21b521['key'])return{'type':'format','content':_0x21b521['newValue']?o(_0x9d1f74,'*Check\x20item*'):o(_0x9d1f74,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x248df6=>{if(_0x248df6['batch']['isUndo'])return!0x1;let _0xcec665=!0x1;const _0x5b94e6=_0x339497['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4fa6af=>'todoListChecked'===_0x339497['_getAttributeKey'](_0x4fa6af));for(const _0x7c45ad of _0x5b94e6){'todo'!=_0x7c45ad['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x339497['_findSuggestions'](_0x7c45ad['getFirstRange'](),'attribute')['find'](_0x1b9aee=>'listType'===_0x339497['_getAttributeKey'](_0x1b9aee['suggestion']))||(_0x248df6['removeMarker'](_0x7c45ad['getFirstMarker']()),_0xcec665=!0x0));}return _0xcec665;})),_0x339497['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x9d1f74,'FORMAT_INDENT'));const _0x253873={'type':'format','content':''};_0x339497['descriptionFactory']['registerDescriptionCallback'](_0x335a46=>{const {data:_0x8a42bb}=_0x335a46;if(!_0x8a42bb||'listType'!=_0x8a42bb['key'])return;let _0x179f87=_0x335a46['head'];for(;_0x179f87;){if(_0x179f87['data']&&(('listStyle'==_0x179f87['data']['key']||'listMarkerStyle'==_0x179f87['data']['key'])&&(_0x179f87['data']['newValue']&&'default'!=_0x179f87['data']['newValue']||'default'!=_0x179f87['data']['oldValue']&&!_0x8a42bb['newValue'])||!_0x4319f4&&_0x179f87['data']['key']==m))return _0x253873;_0x179f87=_0x179f87['next'];}if(null==_0x8a42bb['newValue'])switch(_0x8a42bb['oldValue']){case'bulleted':return _0x3920de(o(_0x9d1f74,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3920de(o(_0x9d1f74,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3920de(o(_0x9d1f74,'ELEMENT_TODO_LIST'));}switch(_0x8a42bb['newValue']){case'bulleted':return _0x3a3ff7(o(_0x9d1f74,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3a3ff7(o(_0x9d1f74,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3a3ff7(o(_0x9d1f74,'ELEMENT_TODO_LIST'));}}),_0x339497['descriptionFactory']['registerDescriptionCallback'](_0x2740dc=>{const {data:_0x3acf10}=_0x2740dc;if(_0x3acf10&&'listIndent'==_0x3acf10['key'])return null==_0x3acf10['newValue']||null==_0x3acf10['oldValue']&&0x0==_0x3acf10['newValue']?_0x253873:void 0x0;}),_0x339497['descriptionFactory']['registerDescriptionCallback'](_0xf4bb59=>{if('attribute'!=_0xf4bb59['type'])return;const {data:_0x10abc9}=_0xf4bb59;if(!_0x10abc9||'listItemId'!=_0x10abc9['key'])return;const _0x2d35cd=le(_0xf4bb59);return'newValue'==_0x2d35cd?{'type':'format','content':o(_0x9d1f74,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2d35cd?{'type':'format','content':o(_0x9d1f74,'*Split:*\x20list\x20item')}:_0x253873;}),_0x1b93c9['model']['document']['registerPostFixer'](_0x26e499=>this['listItemIdFixer'](_0x26e499)),_0x1b93c9['model']['document']['registerPostFixer'](_0xf8713d=>this['noTrackChangesFixer'](_0xf8713d)),_0x1b93c9['model']['document']['registerPostFixer'](_0x467247=>this['assureChains'](_0x467247)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3340c9){if(_0x3340c9['batch']['isUndo']||!_0x3340c9['batch']['isLocal'])return!0x1;let _0x175a99=!0x1;const _0x3b8c59=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x707e67=>_0x707e67['data']&&'listItemId'==_0x707e67['data']['key'])['filter'](_0xd3da7a=>_0xd3da7a['data']['newValue']&&_0xd3da7a['data']['oldValue']);for(const _0x520fd8 of _0x3b8c59)le(_0x520fd8)||(_0x3340c9['removeMarker'](_0x520fd8['getFirstMarker']()),_0x175a99=!0x0);return _0x175a99;}['noTrackChangesFixer'](_0x599f53){if(_0x599f53['batch']['isUndo']||!_0x599f53['batch']['isLocal'])return!0x1;const _0x43b10b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x43b10b['trackChangesCommand']['value'])return!0x1;let _0x1d7223=!0x1;const _0x488ff6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x205b03=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2fe003=>'attribute'==_0x2fe003['type'])['filter'](_0x350698=>_0x488ff6['includes'](_0x350698['attributeKey']));if(0x0==_0x205b03['length'])return _0x1d7223;for(const _0x2cf128 of _0x205b03){const _0x15c044=_0x43b10b['_findSuggestions'](_0x2cf128['range'],'attribute')['filter'](_0x2529a4=>!_0x2529a4['meta']['isNextTo'])['map'](_0x1a670e=>_0x1a670e['suggestion'])['filter'](_0x14d1a5=>{const _0x266892=_0x43b10b['_getAttributeKey'](_0x14d1a5);return _0x488ff6['includes'](_0x266892);});if(_0x15c044['length']){for(const _0x2bcadc of _0x15c044)_0x599f53['removeMarker'](_0x2bcadc['getFirstMarker']());_0x1d7223=!0x0;}}return _0x1d7223;}['assureChains'](_0x4f87fe){if(_0x4f87fe['batch']['isUndo']||!_0x4f87fe['batch']['isLocal'])return!0x1;const _0xdb6400=this['editor']['plugins']['get']('TrackChangesEditing');let _0x24afc4=!0x1;const _0x595371=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x22bd1b of _0xdb6400['getSuggestions']({'skipNotAttached':!0x0})){const _0x5d9d8b=_0xdb6400['_findSuggestions'](_0x22bd1b['getFirstRange'](),'attribute')['map'](_0x239ec0=>_0x239ec0['suggestion'])['filter'](_0x580290=>_0x580290['data']&&_0x595371['includes'](_0x580290['data']['key']));if(!_0x5d9d8b['length'])continue;const _0x1393c3=_0x5d9d8b[0x0]['head']['attributes']['groupId'];if(!_0x5d9d8b['every'](_0x4db98a=>_0x4db98a['attributes']['groupId']===_0x1393c3)){for(const _0x666d34 of _0x5d9d8b)_0x2ec377(_0x666d34,_0x1393c3)&&(_0x24afc4=!0x0);}}return _0x24afc4;function _0x536acf(_0x2eae24,_0x3fe61a){for(const _0x441d8e of _0xdb6400['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1edbee=>'attribute'==_0x1edbee['type']&&_0x1edbee['attributes']['groupId']==_0x2eae24))_0x441d8e['setAttribute']('groupId',_0x3fe61a);}function _0x2ec377(_0x213865,_0x34db90){let _0x11f4c7=_0x213865['head'],_0x5ccbd9=!0x1;for(;_0x11f4c7;)_0x11f4c7['attributes']['groupId']!=_0x34db90&&(_0x536acf(_0x11f4c7['attributes']['groupId'],_0x34db90),_0x11f4c7['setAttribute']('groupId',_0x34db90),_0x5ccbd9=!0x0),_0x11f4c7=_0x11f4c7['next'];return _0x5ccbd9;}}['_supportLegacySuggestions'](){const _0x1db73b=this['editor'],_0x49cf34=_0x1db73b['locale'],_0x5bf134=_0x1db73b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5bf134['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1b9407,_0x2b3576){const _0x2021c7=[];for(let _0x44ad2b of _0x1b9407)_0x44ad2b['start']['nodeAfter']===_0x44ad2b['end']['parent']&&(_0x44ad2b=_0x1db73b['model']['createRange'](_0x1db73b['model']['createPositionAt'](_0x44ad2b['start']['nodeAfter'],0x0))),_0x2021c7['push'](_0x44ad2b);_0x1db73b['model']['change'](_0x401121=>{const _0x4027c0=_0x1db73b['model']['document']['selection'],_0x4926b5=Array['from'](_0x4027c0['getRanges']())['map'](_0x30f910=>_0x948f0b['fromRange'](_0x30f910));_0x401121['setSelection'](_0x2021c7),_0x1db73b['commands']['get'](_0x2b3576['commandName'])['refresh'](),_0x2b3576['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1db73b['execute'](_0x2b3576['commandName'],..._0x2b3576['commandParams']),_0x401121['setSelection'](_0x4926b5);for(const _0x512a9a of _0x4926b5)_0x512a9a['detach']();});}),_0x5bf134['descriptionFactory']['registerElementLabel'](function(_0x3c28fd){const _0x199cd2=!_0x1db73b['model']['schema']['isObject'](_0x3c28fd),_0x5e556f=_0x3c28fd['previousSibling'],_0x3f985b=_0x3c28fd['nextSibling'],_0xa9df96=_0x3c28fd['getAttribute']('listItemId'),_0x1bd253=!_0x5e556f||_0x5e556f['getAttribute']('listItemId')!==_0xa9df96,_0x44aabc=!_0x3f985b||_0x3f985b['getAttribute']('listItemId')!==_0xa9df96;return _0x199cd2&&Boolean(_0xa9df96)&&_0x1bd253&&_0x44aabc;},_0x22a030=>o(_0x49cf34,'ELEMENT_LIST_ITEM',_0x22a030));}['_registerLegacyDescription'](){const _0x346b7c=this['editor'],_0x2c6e8c=_0x346b7c['locale'];function _0x7996f4(_0x2122a6){const _0xdde061=_0x346b7c['commands']['get']('bulletedList')['value'],_0x1487ca=_0x346b7c['commands']['get']('numberedList')['value'];return'numberedList'===_0x2122a6?_0xdde061:_0x1487ca;}_0x346b7c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x7d8fa6){if('formatBlock'!=_0x7d8fa6['type'])return;const {data:_0x406d33}=_0x7d8fa6;if(!_0x406d33)return;let _0x2e3de5,_0x3d96eb,_0x2aa7bc,_0x58d991;switch(_0x406d33['commandName']){case'bulletedList':_0x2aa7bc=_0x406d33['commandParams'][0x0]['forceValue'],_0x58d991=_0x7996f4(_0x406d33['commandName']),_0x2e3de5=_0x2aa7bc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x58d991&&_0x346b7c['config']['get']('list.multiBlock')||(_0x2e3de5='*Change\x20to:*\x20%0'),_0x3d96eb={'type':'format','content':o(_0x2c6e8c,_0x2e3de5,o(_0x2c6e8c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2aa7bc=_0x406d33['commandParams'][0x0]['forceValue'],_0x58d991=_0x7996f4(_0x406d33['commandName']),_0x2e3de5=_0x2aa7bc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x58d991&&_0x346b7c['config']['get']('list.multiBlock')||(_0x2e3de5='*Change\x20to:*\x20%0'),_0x3d96eb={'type':'format','content':o(_0x2c6e8c,_0x2e3de5,o(_0x2c6e8c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2e3de5='*Indent:*\x20%0',_0x3d96eb={'type':'format','content':o(_0x2c6e8c,_0x2e3de5,o(_0x2c6e8c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2e3de5=function(_0x5b233b){const _0x2720e9=_0x5b233b['getFirstRange']();let _0xb06ce7=_0x2720e9['start']['nodeAfter'];for(;_0xb06ce7&&_0x2720e9['containsItem'](_0xb06ce7);){if(_0xb06ce7['getAttribute']('listIndent')>0x0)return!0x1;_0xb06ce7=_0xb06ce7['nextSibling'];}return!0x0;}(_0x7d8fa6)?o(_0x2c6e8c,'*Format:*\x20remove\x20from\x20%0',o(_0x2c6e8c,function(_0x376fb9){return'ELEMENT_'+_0x376fb9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x7d8fa6))):o(_0x2c6e8c,'*Outdent:*\x20%0',o(_0x2c6e8c,'ELEMENT_LIST_ITEM')),_0x3d96eb={'type':'format','content':_0x2e3de5};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x406d33['multipleBlocks']&&(_0x2e3de5='*Merge:*\x20%0',_0x3d96eb={'type':'deletion','content':o(_0x2c6e8c,_0x2e3de5,o(_0x2c6e8c,'ELEMENT_LIST_ITEM'))});}return _0x3d96eb;});}}function le(_0x9a059d){let _0x28526b=_0x9a059d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x28526b;){const _0x429295=_0x28526b['getAttribute']('listItemId');if(!_0x429295)return!0x1;if(_0x429295==_0x9a059d['data']['newValue'])return'newValue';if(_0x429295==_0x9a059d['data']['oldValue'])return'oldValue';_0x28526b=_0x28526b['previousSibling'];}return!0x1;}class pe extends _0x15c086{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1a79bb=this['editor']['config']['get']('list.properties'),_0x2cd288=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a79bb['styles']&&(_0x2cd288['enableDefaultAttributesIntegration']('listStyle'),_0x2cd288['registerBlockAttribute']('listStyle')),_0x1a79bb['reversed']&&(_0x2cd288['enableDefaultAttributesIntegration']('listReversed'),_0x2cd288['registerBlockAttribute']('listReversed')),_0x1a79bb['startIndex']&&(_0x2cd288['enableDefaultAttributesIntegration']('listStart'),_0x2cd288['registerBlockAttribute']('listStart'));const _0x19b723={'type':'format','content':''};_0x2cd288['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x21be29=this['editor']['locale'];_0x2cd288['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x21be29,'FORMAT_LIST_REVERSED')),_0x2cd288['descriptionFactory']['registerDescriptionCallback'](_0x245de2=>{const {data:_0x27f83e}=_0x245de2;if(_0x27f83e&&'listReversed'==_0x27f83e['key'])return null==_0x27f83e['newValue']||0x0==_0x27f83e['newValue']&&null==_0x27f83e['oldValue']?_0x19b723:void 0x0;}),_0x2cd288['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x21be29,'FORMAT_LIST_START')),_0x2cd288['descriptionFactory']['registerDescriptionCallback'](_0xae6e6e=>{const {data:_0x25ffbb}=_0xae6e6e;if(_0x25ffbb&&'listStart'==_0x25ffbb['key'])return null==_0x25ffbb['newValue']||0x1==_0x25ffbb['newValue']&&null==_0x25ffbb['oldValue']?_0x19b723:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x51c1ac=>{if(_0x51c1ac['batch']['isUndo'])return!0x1;let _0x54f565=!0x1;const _0x54c7c3=_0x2cd288['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x317207=>{const _0xed1471=_0x2cd288['_getAttributeKey'](_0x317207);return'listStart'==_0xed1471||'listReversed'==_0xed1471;});for(const _0x17219e of _0x54c7c3){const _0x411b67=_0x17219e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x411b67||'customNumbered'==_0x411b67)continue;_0x2cd288['_findSuggestions'](_0x17219e['getFirstRange'](),'attribute')['find'](_0x495e3d=>'listType'==_0x2cd288['_getAttributeKey'](_0x495e3d['suggestion']))||(_0x51c1ac['removeMarker'](_0x17219e['getFirstMarker']()),_0x54f565=!0x0);}return _0x54f565;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x44644a){const _0x129c1e=this['editor']['locale'],{data:_0x469cde}=_0x44644a,_0x581ce4={'type':'format','content':''};if(!_0x469cde||'listStyle'!=_0x469cde['key'])return;if(!_0x469cde['oldValue'])return'default'==_0x469cde['newValue']?_0x581ce4:{'type':'format','content':''+o(_0x129c1e,'*Set\x20format:*\x20%0',o(_0x129c1e,this['_getTranslationKeyForListStyle'](_0x469cde['newValue'])))};if(!_0x469cde['newValue']){if('default'==_0x469cde['oldValue'])return _0x581ce4;let _0x169c03=_0x44644a['head'];for(;_0x169c03;){if(_0x169c03['data']&&'listType'==_0x169c03['data']['key']&&_0x169c03['data']['newValue'])return _0x581ce4;_0x169c03=_0x169c03['next'];}return{'type':'format','content':''+o(_0x129c1e,'*Remove\x20format:*\x20%0',o(_0x129c1e,this['_getTranslationKeyForListStyle'](_0x469cde['oldValue'])))};}if('default'!=_0x469cde['newValue'])return{'type':'format','content':''+o(_0x129c1e,'*Set\x20format:*\x20%0',o(_0x129c1e,this['_getTranslationKeyForListStyle'](_0x469cde['newValue'])))};let _0x973b53=_0x44644a['head'];for(;_0x973b53;){if(_0x973b53['data']&&'listType'==_0x973b53['data']['key']&&_0x973b53['data']['newValue']&&_0x973b53['data']['oldValue'])return _0x581ce4;_0x973b53=_0x973b53['next'];}return{'type':'format','content':o(_0x129c1e,'*Set\x20format:*\x20%0',o(_0x129c1e,'ELEMENT_'+_0x44644a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x17773f=this['editor'],_0x4d41ad=_0x17773f['locale'];_0x17773f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x492886=>{if('formatBlock'!=_0x492886['type'])return;const {data:_0xf45c99}=_0x492886;if(!_0xf45c99)return;let _0x296cf1,_0x360449;switch(_0xf45c99['commandName']){case'listStyle':_0x296cf1='*Change\x20to:*\x20%0',_0x360449={'type':'format','content':o(_0x4d41ad,_0x296cf1,o(_0x4d41ad,this['_getTranslationKeyForListStyle'](_0xf45c99['commandParams'][0x0]['type'])))};break;case'listReversed':_0x296cf1=_0xf45c99['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x360449={'type':'format','content':o(_0x4d41ad,_0x296cf1)};break;case'listStart':_0x296cf1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x360449={'type':'format','content':o(_0x4d41ad,_0x296cf1,_0xf45c99['commandParams'][0x0]['startIndex'])};}return _0x360449;});}['_getTranslationKeyForListStyle'](_0x4f0f61){return'ELEMENT_'+function(_0xd60820){if(ye['includes'](_0xd60820))return'bulleted';if(he['includes'](_0xd60820))return'numbered';return null;}(_0x4f0f61)['toUpperCase']()+'_LIST_'+_0x4f0f61['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],he=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x15c086{static get['requires'](){return[_0x331ec9];}['init'](){const _0x145bdc=this['editor'],_0x26dd5f=_0x145bdc['plugins']['get']('TrackChangesEditing'),_0x1bbfd6=_0x145bdc['commands']['get']('enter');_0x26dd5f['enableCommand']('enter',()=>{_0x145bdc['model']['change'](_0x3e2e5f=>{const _0x2f8f6f=_0x145bdc['model']['document']['selection'],_0x1412ce=_0x2f8f6f['getFirstPosition'](),_0x4a05b7=_0x948f0b['fromRange'](_0x2f8f6f['getFirstRange']());if(_0x1bbfd6['enterBlock'](_0x3e2e5f)){const _0x398739=_0x145bdc['model']['createPositionAt'](_0x1412ce['parent']['nextSibling'],0x0),_0x41a5cf=_0x3e2e5f['createRange'](_0x1412ce,_0x398739);_0x26dd5f['markInsertion'](_0x41a5cf);}else _0x3e2e5f['setSelection'](_0x3e2e5f['createRange'](_0x4a05b7['end']));_0x4a05b7['detach'](),_0x1bbfd6['fire']('afterExecute',{'writer':_0x3e2e5f});});}),_0x145bdc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x145bdc,'split'),{'priority':'high'}),_0x145bdc['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x513bff,_0x51ce3d,_0x564e09)=>{const _0x5857fd=_0x564e09['mapper']['markerNameToElements'](_0x51ce3d['markerName']);if(_0x5857fd){for(const _0x5151d4 of _0x5857fd)_0x5151d4['hasClass']('ck-suggestion-marker-split')&&(_0x564e09['mapper']['unbindElementFromMarkerName'](_0x5151d4,_0x51ce3d['markerName']),_0x564e09['writer']['remove'](_0x5151d4));}},{'priority':'high'}),_0x145bdc['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x120bdb,_0x13d002,_0x367812)=>{_0x367812['options']['showSuggestionHighlights']&&_e(_0x145bdc,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x120bdb,_0x13d002,_0x367812);},{'priority':'high'});}}class J extends _0x15c086{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x17a7e3=this['editor']['plugins']['get']('TrackChangesEditing');_0x17a7e3['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x17a7e3['enableCommand']('findNext'),_0x17a7e3['enableCommand']('findPrevious'),_0x17a7e3['enableCommand']('replace'),_0x17a7e3['enableCommand']('replaceAll');}['handleFindCommand'](_0x36e7be,_0x186b07,_0x2f9df2={}){const _0x40c6fe=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x36e7be(_0x58718c=>{let _0x28f1f3=('string'==typeof _0x186b07?_0x40c6fe['findByTextCallback'](_0x186b07,_0x2f9df2):_0x186b07)(_0x58718c);Array['isArray'](_0x28f1f3)&&(_0x28f1f3={'results':_0x28f1f3,'searchText':'string'==typeof _0x186b07?_0x186b07:''});const _0x522636=_0x28f1f3['results']['filter'](_0x1f0f77=>!0x1===this['_isInDeletionRange'](_0x1f0f77,_0x58718c['item']));return{..._0x28f1f3,'results':_0x522636};},_0x2f9df2);}['_isInDeletionRange'](_0x104728,_0x15f4f7){const _0x5b3e6f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x15f4f7,_0x104728['start']),this['editor']['model']['createPositionAt'](_0x15f4f7,_0x104728['end']));for(const _0x380b52 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5b3e6f['getIntersection'](_0x380b52['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 _0x15c086{['afterInit'](){const _0x8be507=this['editor']['locale'],_0x31dda8=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3584e1,commandName:_0x20b10b}of ro)this['editor']['plugins']['has'](_0x3584e1)&&(_0x31dda8['enableDefaultAttributesIntegration'](_0x20b10b),_0x31dda8['registerInlineAttribute'](_0x20b10b));_0x31dda8['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x8be507,'FORMAT_FONT_SIZE')),_0x31dda8['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x8be507,'FORMAT_FONT_FAMILY')),_0x31dda8['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x8be507,'FORMAT_FONT_COLOR')),_0x31dda8['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x8be507,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd63c5d=this['editor'],_0x3a1b78=_0xd63c5d['locale'];_0xd63c5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24e15c=>{const _0x5cc437=_0x3a1b78['t'];if('formatInline'!=_0x24e15c['type'])return;const {data:_0x12d6c8}=_0x24e15c;if(null!=_0x12d6c8){if('fontSize'==_0x12d6c8['commandName']){const _0x2abbe4=_0x12d6c8['commandParams'][0x0]['value'];if(_0x2abbe4){const _0x2dfee5=_0x5cc437(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4315aa=>_0x4315aa['model']==_0x2abbe4)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3a1b78,'*Set\x20font\x20size:*\x20%0',_0x2dfee5)};}return{'type':'format','content':o(_0x3a1b78,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x12d6c8['commandName']){const _0x160dcd=_0x12d6c8['commandParams'][0x0]['value'];return _0x160dcd?{'type':'format','content':o(_0x3a1b78,'*Set\x20font\x20family:*\x20%0',_0x160dcd)}:{'type':'format','content':o(_0x3a1b78,'*Reset\x20font\x20family*')};}if('fontColor'==_0x12d6c8['commandName']){const _0xc45c32=_0x12d6c8['commandParams'][0x0]['value'];if(_0xc45c32){const _0xea44c3=_0x4c81bc(this['editor']['config']['get']('fontColor.colors'))['find'](_0x57e583=>_0x57e583['model']==_0xc45c32);let _0x120941=_0xc45c32,_0x4eabed='';return _0xea44c3&&(_0x120941=_0xea44c3['label'],_0x4eabed=_0x5cc437(_0x120941)['toLowerCase']()),{'type':'format','content':o(_0x3a1b78,'*Set\x20font\x20color:*\x20%0',_0x4eabed)['trim'](),'color':{'value':_0xc45c32,'title':_0x4eabed||_0x120941}};}return{'type':'format','content':o(_0x3a1b78,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x12d6c8['commandName']){const _0x15d6c5=_0x12d6c8['commandParams'][0x0]['value'];if(_0x15d6c5){const _0x155ff0=_0x4c81bc(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x589f71=>_0x589f71['model']==_0x15d6c5);let _0x5c993c=_0x15d6c5,_0x3ebc02='';return _0x155ff0&&(_0x5c993c=_0x155ff0['label'],_0x3ebc02=_0x5cc437(_0x5c993c)['toLowerCase']()),{'type':'format','content':o(_0x3a1b78,'*Set\x20font\x20background\x20color:*\x20%0',_0x3ebc02)['trim'](),'color':{'value':_0x15d6c5,'title':_0x3ebc02||_0x5c993c}};}return{'type':'format','content':o(_0x3a1b78,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x15c086{['afterInit'](){const _0x3f3f4e=this['editor'],_0x3ea6b5=_0x3f3f4e['plugins']['get']('TrackChangesEditing'),_0xce74f9=_0x3f3f4e['commands']['get']('copyFormat'),_0x5c10e7=_0x3f3f4e['commands']['get']('pasteFormat');_0xce74f9&&_0x5c10e7&&(_0x3ea6b5['enableDefaultAttributesIntegration']('pasteFormat'),_0x3ea6b5['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x52b5b6=this['editor'],_0x33eea8=_0x52b5b6['locale'];_0x52b5b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52688d=>{if('formatBlock'!=_0x52688d['type']&&'formatInline'!=_0x52688d['type'])return;const {data:_0x134232}=_0x52688d;if(_0x134232&&'pasteFormat'===_0x134232['commandName']){const _0x137e02=[],_0x9d6696=_0x134232['commandParams'][0x0];for(const [_0x2c22eb,_0x3840d6]of Object['entries'](_0x9d6696))_0x137e02['push'](so(_0x52b5b6,_0x2c22eb,_0x3840d6));return _0x137e02['length']?{'type':'format','content':o(_0x33eea8,'*Set\x20format\x20to:*\x20%0',_0x137e02['join'](',\x20'))}:{'type':'format','content':o(_0x33eea8,'*Remove\x20all\x20formatting*')};}});}}function so(_0x44b419,_0x45b78e,_0x19cdec){const _0x571946=_0x44b419['locale']['t'],_0x417efc=_0x45b78e['split'](/(?=[A-Z])/)['join']('\x20'),_0x154dbf=_0x571946(_0x417efc['charAt'](0x0)['toUpperCase']()+_0x417efc['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x19cdec)return _0x154dbf;if('fontColor'===_0x45b78e||'fontBackgroundColor'===_0x45b78e){const _0x57234e=_0x4c81bc(_0x44b419['config']['get']('fontColor.colors'))['find'](_0x1fd8e5=>_0x1fd8e5['model']==_0x19cdec);return _0x154dbf+'\x20('+(_0x57234e?_0x571946(_0x57234e['label'])['toLowerCase']():_0x19cdec)+')';}if('fontSize'===_0x45b78e&&isNaN(parseFloat(_0x19cdec))){const _0x3e1540=_0x44b419['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x44b419['config']['get']('fontSize.options'))['find'](_0x5c975b=>_0x5c975b['model']==_0x19cdec);return _0x154dbf+'\x20('+(_0x3e1540?_0x571946(_0x3e1540['title'])['toLowerCase']():_0x19cdec)+')';}return _0x154dbf+'\x20('+_0x19cdec+')';}class Y extends _0x15c086{['_headingOptions'];['afterInit'](){const _0x107cb1=this['editor'];if(!_0x107cb1['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x107cb1['config']['get']('heading.options');const _0x2b622e=_0x107cb1['locale'],_0x24572c=_0x107cb1['plugins']['get']('TrackChangesEditing');_0x24572c['enableDefaultAttributesIntegration']('heading');for(const _0x34a234 of this['_headingOptions'])'paragraph'!=_0x34a234['model']&&_0x24572c['descriptionFactory']['registerElementLabel'](_0x34a234['model'],_0x35a209=>{const _0x319682=this['_getHeadingLevel'](_0x34a234['model']);return null!==_0x319682?_0x21dbfe(_0x35a209,_0x319682):_0x4c3ade(_0x35a209,_0x34a234['title']);});function _0x21dbfe(_0x5bff93,_0x570d08){return o(_0x2b622e,'ELEMENT_HEADING',[_0x5bff93,_0x570d08]);}function _0x4c3ade(_0x3ed080,_0x357946){return o(_0x2b622e,'ELEMENT_HEADING_CUSTOM',[_0x3ed080,_0x357946]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x551f85=this['editor'],_0x2a86a7=_0x551f85['locale'];function _0x1a5723(_0x3e3309,_0x501479){return o(_0x2a86a7,'ELEMENT_HEADING_CUSTOM',[_0x3e3309,_0x501479]);}_0x551f85['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb43243=>{if('formatBlock'!=_0xb43243['type'])return;const {data:_0x3c4386}=_0xb43243;if(_0x3c4386&&'heading'==_0x3c4386['commandName']){const _0x7fd84c=_0x3c4386['commandParams'][0x0]['value'],_0x35b88b=this['_getHeadingLevel'](_0x7fd84c);if(null!==_0x35b88b)return{'type':'format','content':o(_0x2a86a7,'*Change\x20to:*\x20%0',(_0x4092dc=0x1,_0x54de5e=_0x35b88b,o(_0x2a86a7,'ELEMENT_HEADING',[_0x4092dc,_0x54de5e])))};const _0xb5ce56=this['_headingOptions']['find'](_0x58ab57=>_0x58ab57['model']===_0x7fd84c)['title'];return{'type':'format','content':o(_0x2a86a7,'*Change\x20to:*\x20%0',_0x1a5723(0x1,_0xb5ce56))};}var _0x4092dc,_0x54de5e;});}['_getHeadingLevel'](_0x4a0462){const _0x557519=_0x4a0462['match'](/^heading(\d+)/);if(_0x557519)return _0x557519[0x1];const _0x11f35e=this['_headingOptions']?.['find'](_0x3535b1=>_0x3535b1['model']==_0x4a0462);if(_0x11f35e&&_0x11f35e['view']){const _0x18738b=_0x11f35e['view'],_0x1cd260=(_0x18738b['name']??_0x18738b)['match'](/^h(\d+)/);if(_0x1cd260)return _0x1cd260[0x1];}return null;}}class Z extends _0x15c086{['afterInit'](){const _0x4f57cd=this['editor'];if(!_0x4f57cd['plugins']['has']('HighlightEditing'))return;const _0x5462e8=_0x4f57cd['plugins']['get']('TrackChangesEditing'),_0x3c4090=_0x4f57cd['locale'];_0x5462e8['enableDefaultAttributesIntegration']('highlight'),_0x5462e8['registerInlineAttribute']('highlight'),_0x5462e8['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3c4090,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4664f3=this['editor'],_0x1b860d=_0x4664f3['locale'];_0x4664f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x104c96=>{if('formatInline'!=_0x104c96['type'])return;const {data:_0x4d2e41}=_0x104c96;if(_0x4d2e41&&'highlight'==_0x4d2e41['commandName']){const _0x14a355=_0x1b860d['t'],_0x311bd3=_0x4d2e41['commandParams'][0x0]['value'];if(_0x311bd3){const _0x3dd9d=_0x4664f3['config']['get']('highlight.options')['find'](_0x2c0c35=>_0x2c0c35['model']==_0x311bd3),_0x346f26=_0x14a355(_0x3dd9d['title'])['toLowerCase']();return{'type':'format','content':o(_0x1b860d,'*Set\x20highlight:*\x20%0',_0x346f26),'color':{'value':_0x3dd9d['color'],'title':_0x3dd9d['title']}};}return{'type':'format','content':o(_0x1b860d,'*Remove\x20highlight*',o(_0x1b860d,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x15c086{['afterInit'](){const _0x150f8f=this['editor'];if(!_0x150f8f['plugins']['has']('HorizontalLineEditing'))return;_0x150f8f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xa87649=_0x150f8f['plugins']['get']('TrackChangesEditing'),_0x4dfa5a=_0x150f8f['locale'];_0xa87649['descriptionFactory']['registerElementLabel']('horizontalLine',_0x112724=>o(_0x4dfa5a,'ELEMENT_HORIZONTAL_LINE',_0x112724)),_0x150f8f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xa64e80,{writer:_0x2580ac,options:_0x46c142})=>{if(!_0x46c142['showSuggestionHighlights'])return null;const _0x29281d=_0x2580ac['createContainerElement']('div'),_0x4e2702=_0x2580ac['createEmptyElement']('hr');return _0x2580ac['addClass']('ck-horizontal-line',_0x29281d),_0x2580ac['insert'](_0x2580ac['createPositionAt'](_0x29281d,0x0),_0x4e2702),_0x29281d;},'converterPriority':'high'});}}class et extends _0x15c086{['afterInit'](){const _0x5507ac=this['editor'];if(!_0x5507ac['plugins']['has']('HtmlEmbed'))return;const _0x5413ee=_0x5507ac['plugins']['get']('TrackChangesEditing'),_0x3edce3=_0x5507ac['locale'];_0x5413ee['descriptionFactory']['registerElementLabel']('rawHtml',_0x58ae99=>o(_0x3edce3,'ELEMENT_HTML_EMBED',_0x58ae99)),_0x5413ee['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5413ee['registerBlockAttribute']('value'),_0x5413ee['descriptionFactory']['registerDescriptionCallback'](_0x5620c4=>{if('attribute'!=_0x5620c4['type'])return;const {data:_0x13593f}=_0x5620c4;if(_0x13593f&&'value'==_0x13593f['key']&&_0x5620c4['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x553fb0=o(_0x3edce3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3edce3,'*Change\x20%0\x20content*',_0x553fb0)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdb2974=this['editor'],_0x2faa40=_0xdb2974['locale'];_0xdb2974['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2af0e1=>{if('formatBlock'!=_0x2af0e1['type'])return;const {data:_0x52a83f}=_0x2af0e1;if(_0x52a83f&&'htmlEmbed'==_0x52a83f['commandName']){const _0x238aea=o(_0x2faa40,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2faa40,'*Change\x20%0\x20content*',_0x238aea)};}});}}class it extends _0x15c086{['afterInit'](){const _0x31b339=this['editor'];if(!_0x31b339['plugins']['has']('ImageEditing'))return;const _0x507c92=_0x31b339['plugins']['get']('TrackChangesEditing'),_0xcc3710=_0x31b339['plugins']['get']('ImageUtils'),_0x1813da=_0x31b339['locale'];_0x507c92['enableCommand']('insertImage'),_0x507c92['descriptionFactory']['registerElementLabel']('imageBlock',_0x5a25d3=>o(_0x1813da,'ELEMENT_IMAGE',_0x5a25d3)),_0x507c92['descriptionFactory']['registerElementLabel']('imageInline',_0x2baad9=>o(_0x1813da,'ELEMENT_INLINE_IMAGE',_0x2baad9)),_0x507c92['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1813da,'ELEMENT_CAPTION')),_0x31b339['plugins']['has']('ImageUploadEditing')&&_0x507c92['enableCommand']('uploadImage'),_0x31b339['plugins']['has']('ImageBlockEditing')&&_0x31b339['plugins']['has']('ImageInlineEditing')&&(_0x507c92['enableCommand']('imageTypeInline',(_0x3ef9c7,_0x1fb237)=>{const _0x383ca2=_0xcc3710['getClosestSelectedImageElement'](_0x31b339['model']['document']['selection']);_0x31b339['model']['change'](()=>{_0x507c92['markBlockFormat'](_0x383ca2,{'commandName':'imageTypeInline','commandParams':[_0x1fb237]},[],'convertBlockImageToInline');});}),_0x507c92['enableCommand']('imageTypeBlock',(_0x569b05,_0x57f567)=>{_0x31b339['model']['change'](_0x108300=>{let _0x595c94=_0xcc3710['getClosestSelectedImageElement'](_0x31b339['model']['document']['selection']),_0x4a2159=_0x108300['createRangeOn'](_0x595c94);const _0x4d4cfa=_0x5337e8['fromPosition'](_0x4a2159['start'],'toPrevious'),_0x335d66=_0x5337e8['fromPosition'](_0x4a2159['end'],'toNext');_0x507c92['forceDefaultExecution'](()=>_0x569b05(_0x57f567)),_0x595c94=_0xcc3710['getClosestSelectedImageElement'](_0x31b339['model']['document']['selection']),_0x4a2159=_0x108300['createRangeOn'](_0x595c94);const _0xaecba0=_0x108300['createRange'](_0x4d4cfa,_0x335d66);_0x4d4cfa['detach'](),_0x335d66['detach'](),_0x507c92['markBlockFormat'](_0x595c94,{'commandName':'imageTypeInline','commandParams':[_0x57f567]},[],'convertInlineImageToBlock'),_0xaecba0['start']['isBefore'](_0x4a2159['start'])&&_0x507c92['markInsertion'](_0x108300['createRange'](_0xaecba0['start'],_0x4a2159['start']),'convertInlineImageToBlock'),_0x4a2159['end']['isBefore'](_0xaecba0['end'])&&_0x507c92['markInsertion'](_0x108300['createRange'](_0x4a2159['end'],_0xaecba0['end']),'convertInlineImageToBlock');});}),_0x507c92['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x507c92['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x507c92['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x507c92['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x507c92['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x507c92['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x54d704])=>{const _0x24236b=_0x507c92['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x21b50f=_0x54d704['start'],_0x57acdd=_0x54d704['end'];const _0x5153fc=_0x31b339['model']['schema']['getNearestSelectionRange'](_0x21b50f,'backward'),_0x10135a=_0x31b339['model']['schema']['getNearestSelectionRange'](_0x57acdd,'forward');_0x5153fc['isCollapsed']&&(_0x21b50f=_0x5153fc['start']),_0x10135a['isCollapsed']&&(_0x57acdd=_0x10135a['end']),_0x24236b([_0x31b339['model']['createRange'](_0x21b50f,_0x57acdd)]);}),_0x507c92['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x689873),_0x507c92['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x689873)),_0x31b339['plugins']['has']('ImageCaptionEditing')&&(_0x507c92['enableCommand']('toggleImageCaption',(_0x196da3,_0x3d2d93)=>{const _0xfe7e52=_0x31b339['plugins']['get']('ImageCaptionUtils');let _0x3ddb79=_0xcc3710['getClosestSelectedImageElement'](_0x31b339['model']['document']['selection']),_0x603b79=_0xfe7e52['getCaptionFromImageModelElement'](_0x3ddb79);_0x31b339['model']['change'](()=>{if(_0x603b79)return void _0x507c92['markDeletion'](_0x31b339['model']['createRangeOn'](_0x603b79));const _0x36f62e=_0xcc3710['isBlockImage'](_0x3ddb79);_0x196da3(_0x3d2d93),_0x3ddb79=_0xcc3710['getClosestSelectedImageElement'](_0x31b339['model']['document']['selection']),_0x603b79=_0xfe7e52['getCaptionFromImageModelElement'](_0x3ddb79),_0x507c92['markInsertion'](_0x31b339['model']['createRangeOn'](_0x603b79),_0x36f62e?null:'imageCaption');});}),_0x507c92['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x689873));const _0x4bca0a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2769db(_0x939b51,_0x194896){const _0x3e49b3=_0x4bca0a['findIndex'](({type:_0x2071be,subType:_0x49023c})=>_0x939b51['type']==_0x2071be&&_0x939b51['subType']==_0x49023c),_0x226455=_0x4bca0a['findIndex'](({type:_0x249dfd,subType:_0x22f256})=>_0x194896['type']==_0x249dfd&&_0x194896['subType']==_0x22f256);if(_0x3e49b3<0x0||_0x226455<0x0)return!0x1;const _0x369fb4=_0x939b51['getFirstRange'](),_0x262798=_0x194896['getFirstRange']();if((0x0==_0x3e49b3||0x1==_0x3e49b3)&&0x2==_0x226455&&_0x369fb4['isIntersecting'](_0x262798))return!0x0;if(0x2==_0x3e49b3&&0x3==_0x226455){const _0x5b368b=_0x507c92['_findSuggestions'](_0x369fb4,'insertion')['filter'](({suggestion:_0x2c4bd8,meta:_0xc988dd})=>_0xc988dd['isOwn']&&'convertInlineImageToBlock'==_0x2c4bd8['subType']);if(_0x5b368b['length']>0x1&&_0x262798['end']['isEqual'](_0x369fb4['start']))return!0x0;if(0x1==_0x5b368b['length']&&(_0x369fb4['start']['isEqual'](_0x262798['end'])||_0x369fb4['end']['isEqual'](_0x262798['start'])))return!0x0;}if(0x3==_0x3e49b3&&0x3==_0x226455&&_0x369fb4['start']['isBefore'](_0x262798['start'])){const _0x13b6a1=_0x369fb4['end']['nodeAfter'],_0x2bf691=_0x262798['start']['nodeBefore'];return _0xcc3710['isBlockImage'](_0x13b6a1)&&_0x13b6a1===_0x2bf691;}return!0x1;}function _0x689873(_0x26e5ce,_0x2a0430){return _0x2769db(_0x26e5ce,_0x2a0430)?[_0x26e5ce,_0x2a0430]:_0x2769db(_0x2a0430,_0x26e5ce)?[_0x2a0430,_0x26e5ce]:null;}_0x31b339['plugins']['has']('ImageResize')&&(_0x507c92['enableDefaultAttributesIntegration']('resizeImage'),_0x507c92['registerBlockAttribute']('resizedWidth'),_0x507c92['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1813da,'FORMAT_IMAGE_SIZE'))),_0x31b339['plugins']['has']('ImageTextAlternativeEditing')&&(_0x507c92['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x507c92['registerBlockAttribute']('alt')),_0x507c92['descriptionFactory']['registerDescriptionCallback'](_0x218c73=>{if(!!_0x4bca0a['find'](({type:_0x461f49,subType:_0x18a8f2})=>_0x218c73['type']==_0x461f49&&_0x218c73['subType']==_0x18a8f2))return _0x218c73['previous']?{}:void 0x0;}),_0x507c92['descriptionFactory']['registerDescriptionCallback'](_0x1eaa55=>{if('insertion'==_0x1eaa55['type']||'deletion'==_0x1eaa55['type']){const _0x17ba4e=_0x1eaa55['getContainedElement']();if(_0x17ba4e&&_0x17ba4e['is']('element','caption'))return{'type':'insertion'==_0x1eaa55['type']?'addObject':'removeObject','element':_0x17ba4e,'quantity':0x1};}}),_0x507c92['descriptionFactory']['registerDescriptionCallback'](_0x11bc7b=>'formatBlock'==_0x11bc7b['type']&&'convertInlineImageToBlock'==_0x11bc7b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x11bc7b['type']&&'convertBlockImageToInline'==_0x11bc7b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x507c92['descriptionFactory']['registerDescriptionCallback'](_0x42e072=>{if('attribute'!=_0x42e072['type'])return;const {data:_0x4c8317}=_0x42e072;if(!_0x4c8317||'alt'!=_0x4c8317['key'])return;const _0x46be88=_0x4c8317['newValue'];return _0x46be88?{'type':'format','content':o(_0x1813da,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x46be88+'\x22')}:{'type':'format','content':o(_0x1813da,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x166dd4=this['editor'],_0x1103c9=_0x166dd4['locale'];_0x166dd4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6d3e08=>{if('formatBlock'!=_0x6d3e08['type']&&'formatInline'!=_0x6d3e08['type'])return;const {data:_0x366bf1}=_0x6d3e08;if(_0x366bf1){if('imageTextAlternative'==_0x366bf1['commandName']){const _0x1f661f=_0x366bf1['commandParams'][0x0]['newValue'];return _0x1f661f?{'type':'format','content':o(_0x1103c9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1f661f+'\x22')}:{'type':'format','content':o(_0x1103c9,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x366bf1['commandName']){const _0x257c6f=_0x366bf1['commandParams'][0x0]['width'];return _0x257c6f?{'type':'format','content':o(_0x1103c9,'*Set\x20image\x20width:*\x20%0',_0x257c6f)}:{'type':'format','content':o(_0x1103c9,'*Reset\x20image\x20width*')};}}});}}class st extends _0x15c086{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1edf4f=this['editor']['locale'],_0x661499=this['editor']['plugins']['get']('TrackChangesEditing');_0x661499['enableDefaultAttributesIntegration']('replaceImageSource'),_0x661499['registerBlockAttribute']('src'),_0x661499['descriptionFactory']['registerDescriptionCallback'](_0x2bbf5e=>{if('attribute'!=_0x2bbf5e['type'])return;const {data:_0x9b951a}=_0x2bbf5e;return _0x9b951a&&'src'==_0x9b951a['key']?_0x9b951a['newValue']&&_0x9b951a['oldValue']?{'type':'format','content':o(_0x1edf4f,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5b11d3=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b11d3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5b11d3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5b11d3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5b11d3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54179e=this['editor'],_0x22054e=_0x54179e['locale'];_0x54179e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x388ea7=>{if('formatBlock'!=_0x388ea7['type']&&'formatInline'!=_0x388ea7['type'])return;const {data:_0x3a4cae}=_0x388ea7;if(!_0x3a4cae||'replaceImageSource'!=_0x3a4cae['commandName'])return;return{'type':'format','content':o(_0x22054e,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x15c086{['afterInit'](){const _0x352768=this['editor'];if(!_0x352768['plugins']['has']('ImageStyleEditing'))return;const _0x42fd59=_0x352768['plugins']['get']('TrackChangesEditing'),_0x2c26fa=_0x352768['plugins']['get']('ImageUtils'),_0x28a5f0={};_0x42fd59['enableCommand']('imageStyle',(_0x11fe1d,_0x7f1bbb)=>{const _0x5e7759=_0x352768['plugins']['get']('Users')['me'],_0x2a436a=_0x352768['commands']['get']('imageStyle');let _0x3abbf2=_0x2c26fa['getClosestSelectedImageElement'](_0x352768['model']['document']['selection']),_0x3a4d75=_0x352768['model']['createRangeOn'](_0x3abbf2),_0xcd7e6a=_0x2a436a['value'];if(_0xcd7e6a==_0x7f1bbb['value'])return;const _0x2cb152={'commandName':'imageStyle','commandParams':[_0x7f1bbb],'formatGroupId':_0x27f732()};_0x352768['model']['change'](()=>{if(_0x42fd59['getSuggestions']()['filter'](_0x120ec1=>_0x120ec1['isInContent']&&_0x5e7759==_0x120ec1['author']&&('formatBlock'==_0x120ec1['type']||'formatInline'==_0x120ec1['type'])&&('imageStylePreApply'==_0x120ec1['subType']||'imageStylePostApply'==_0x120ec1['subType'])&&_0x120ec1['getFirstRange']()['isEqual'](_0x3a4d75))['forEach'](_0x380297=>_0x42fd59['discardSuggestion'](_0x380297['head'])),_0x3abbf2=_0x2c26fa['getClosestSelectedImageElement'](_0x352768['model']['document']['selection']),_0x3a4d75=_0x352768['model']['createRangeOn'](_0x3abbf2),_0x2a436a['refresh'](),_0x352768['commands']['get']('imageTypeInline')['refresh'](),_0x352768['commands']['get']('imageTypeBlock')['refresh'](),_0xcd7e6a=_0x2a436a['value'],_0xcd7e6a!=_0x7f1bbb['value'])return _0x2c26fa['isInlineImage'](_0x3abbf2)&&_0x2a436a['shouldConvertImageType'](_0x7f1bbb['value'],_0x3abbf2)?(_0x11fe1d({..._0x7f1bbb,'setImageSizes':!0x1}),_0x3abbf2=_0x2c26fa['getClosestSelectedImageElement'](_0x352768['model']['document']['selection']),void _0x42fd59['markBlockFormat'](_0x3abbf2,{..._0x2cb152,'commandReversedParams':[{'value':_0xcd7e6a||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2c26fa['isBlockImage'](_0x3abbf2)?_0x42fd59['markBlockFormat'](_0x3abbf2,_0x2cb152,[],'imageStylePostApply'):_0x42fd59['markInlineFormat'](_0x3a4d75,_0x2cb152,'imageStylePostApply'));});});for(const _0xa5d8ca of _0x352768['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x28a5f0[_0xa5d8ca['name']]=_0xa5d8ca['title']['toLowerCase']();_0x42fd59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x42fd59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x42fd59['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x42fd59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x546f57])=>{_0x2c26fa['setImageNaturalSizeAttributes'](_0x546f57['getContainedElement']());}),_0x42fd59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2afec7,_0x5f1574)=>{_0x42fd59['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2afec7,{'commandName':_0x5f1574['commandName'],'commandParams':_0x5f1574['commandReversedParams']});}),_0x42fd59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4362ab,_0x3fcf30){if(_0x20fcc8(_0x4362ab,_0x3fcf30))return[_0x4362ab,_0x3fcf30];if(_0x20fcc8(_0x3fcf30,_0x4362ab))return[_0x3fcf30,_0x4362ab];return null;});const _0xb3ad41=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x20fcc8(_0x18ca42,_0x27297a){const _0x541dd3=_0xb3ad41['findIndex'](({type:_0x3d2864,subType:_0x5a5a43})=>_0x18ca42['type']==_0x3d2864&&_0x18ca42['subType']==_0x5a5a43),_0x3510a0=_0xb3ad41['findIndex'](({type:_0x1f8674,subType:_0x4b27ce})=>_0x27297a['type']==_0x1f8674&&_0x27297a['subType']==_0x4b27ce);if(_0x541dd3<0x0||_0x3510a0<0x0)return!0x1;const _0x3f8f28=_0x18ca42['getFirstRange'](),_0x58d3ef=_0x27297a['getFirstRange']();if((0x0==_0x541dd3||0x1==_0x541dd3)&&0x2==_0x3510a0&&_0x3f8f28['isIntersecting'](_0x58d3ef))return!0x0;if(0x2==_0x541dd3&&0x3==_0x3510a0){const _0x451c46=_0x42fd59['_findSuggestions'](_0x3f8f28,'insertion')['filter'](({suggestion:_0x52bf23,meta:_0x3f07a4})=>_0x3f07a4['isOwn']&&'convertInlineImageToBlock'==_0x52bf23['subType']);if(_0x451c46['length']>0x1&&_0x58d3ef['end']['isEqual'](_0x3f8f28['start']))return!0x0;if(0x1==_0x451c46['length']&&(_0x3f8f28['start']['isEqual'](_0x58d3ef['end'])||_0x3f8f28['end']['isEqual'](_0x58d3ef['start'])))return!0x0;}if(0x3==_0x541dd3&&0x3==_0x3510a0&&_0x3f8f28['start']['isBefore'](_0x58d3ef['start'])){const _0x503b70=_0x3f8f28['end']['nodeAfter'],_0x52ea17=_0x58d3ef['start']['nodeBefore'];return _0x2c26fa['isBlockImage'](_0x503b70)&&_0x503b70===_0x52ea17;}return!0x1;}_0x352768['model']['document']['registerPostFixer'](()=>{let _0xeeaf2a=!0x1;const _0x101236=Array['from'](_0x352768['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1feacf,data:_0x2de0b3}of _0x101236){const {group:_0x2d34ec,type:_0x38b77f,subType:_0x531f5a,id:_0x2e5f27}=_0x42fd59['_splitMarkerName'](_0x1feacf);if('suggestion'==_0x2d34ec&&_0x42fd59['hasSuggestion'](_0x2e5f27)){if('formatBlock'==_0x38b77f&&('imageStylePreApply'==_0x531f5a||'imageStylePostApply'==_0x531f5a)){const _0x1961d2=_0x42fd59['getSuggestion'](_0x2e5f27);if(_0x2de0b3['newRange']){const _0x1463fb=_0x1961d2['getFirstRange']()['getContainedElement']();if(_0x2c26fa['isBlockImage'](_0x1463fb))continue;_0x42fd59['discardSuggestion'](_0x1961d2),_0xeeaf2a=!0x0;}}if('insertion'==_0x38b77f&&'imageCaption'==_0x531f5a&&!_0x2de0b3['newRange']){const _0x1e9813=_0x42fd59['getSuggestion'](_0x2e5f27);_0x1e9813['next']&&_0x1e9813['next']['isInContent']&&(_0x42fd59['discardSuggestion'](_0x1e9813['next']),_0xeeaf2a=!0x0);}}}return _0xeeaf2a;}),this['_registerLegacyDescription'](_0x28a5f0);}['_registerLegacyDescription'](_0x154d95){const _0x5565b9=this['editor'],_0x1c0805=_0x5565b9['locale'];_0x5565b9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e2c7c=>{if('formatBlock'!=_0x3e2c7c['type']&&'formatInline'!=_0x3e2c7c['type'])return;const {data:_0x612bfa}=_0x3e2c7c;if(!_0x612bfa||'imageStyle'!=_0x612bfa['commandName'])return;const _0xb45156=_0x612bfa['commandParams'][0x0]['value'];return _0x5e3cb8('side'===_0xb45156?o(_0x1c0805,'FORMAT_SIDE_IMAGE'):_0x154d95[_0xb45156]||_0xb45156);function _0x5e3cb8(_0x4aa193){return{'type':'format','content':o(_0x1c0805,'*Format:*\x20%0',_0x4aa193)};}});}}class ot extends _0x15c086{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x59fbd1){super(_0x59fbd1),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4edce5=this['editor'],_0x3033a7=_0x4edce5['commands']['get']('importWord'),_0x9cbf10=_0x4edce5['commands']['get']('trackChanges');_0x3033a7&&(_0x3033a7['on']('execute',(_0x520a8c,[,_0x3b826b])=>{this['_trackChangesValueDuringImport']=_0x9cbf10['value'],_0x3b826b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3033a7,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3033a7,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x9cbf10['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4edce5['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x423549,_0x52ae7b){const {suggestions:_0x43e8da}=_0x52ae7b,_0x161e82=this['editor']['commands']['get']('trackChanges'),_0xac4f53=_0x161e82['value'];this['_trackChangesValueDuringImport']!==_0xac4f53&&(_0x161e82['execute'](),this['_trackChangesExecuted']=!0x0),_0x43e8da&&_0x43e8da['forEach'](({id:_0x43bf27,type:_0x26eef0,author:_0x16d92a,created_at:_0x54dc6f})=>{const _0xb7d41d={'id':_0x43bf27,'type':_0x26eef0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x16d92a,'createdAt':_0x54dc6f?new Date(_0x54dc6f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xb7d41d);});}}class rt extends _0x15c086{['afterInit'](){const _0x4c0fa2=this['editor'],_0x2b23a8=_0x4c0fa2['plugins']['get']('TrackChangesEditing');if(_0x4c0fa2['plugins']['has']('IndentEditing')&&(_0x2b23a8['enableCommand']('indent'),_0x2b23a8['enableCommand']('outdent')),_0x4c0fa2['plugins']['has']('IndentBlock')){for(const _0x42a5d6 of['indentBlock','outdentBlock'])_0x2b23a8['enableDefaultAttributesIntegration'](_0x42a5d6);}const _0x28dc62=_0x4c0fa2['locale'];_0x2b23a8['registerBlockAttribute']('blockIndent'),_0x2b23a8['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x28dc62,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x166b5c=this['editor'],_0x4e3f96=_0x166b5c['locale'],_0x3164df=_0x166b5c['plugins']['get']('TrackChangesEditing');_0x3164df['descriptionFactory']['registerDescriptionCallback'](_0x14162e=>{if('formatBlock'!=_0x14162e['type'])return;const {data:_0x5067ed}=_0x14162e;if(!_0x5067ed)return;if('indentBlock'!=_0x5067ed['commandName']&&'outdentBlock'!=_0x5067ed['commandName'])return;const _0x28df0d=_0x14162e['getItems']()[0x0],_0x21b63d=_0x3164df['descriptionFactory']['getItemLabel'](_0x28df0d);return'indentBlock'==_0x5067ed['commandName']?{'type':'format','content':o(_0x4e3f96,'*Indent:*\x20%0',_0x21b63d)}:'outdentBlock'==_0x5067ed['commandName']?{'type':'format','content':o(_0x4e3f96,'*Outdent:*\x20%0',_0x21b63d)}:void 0x0;});}}class at extends _0x15c086{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x15c086{['afterInit'](){const _0xd5b25f=this['editor'];if(!_0xd5b25f['plugins']['has']('LinkEditing'))return;const _0x3f32da=_0xd5b25f['plugins']['get']('TrackChangesEditing'),_0x2b14e8=_0xd5b25f['commands']['get']('link');_0x3f32da['enableDefaultAttributesIntegration']('link'),_0x3f32da['enableDefaultAttributesIntegration']('unlink'),_0x3f32da['registerInlineAttribute']('linkHref');for(const _0x22b218 of _0x2b14e8['manualDecorators'])_0x3f32da['registerInlineAttribute'](_0x22b218['id']),_0x3f32da['descriptionFactory']['registerAttributeLabel'](_0x22b218['id'],'link\x20('+_0x22b218['label']['toLowerCase']()+')');_0x3f32da['descriptionFactory']['registerDescriptionCallback'](_0x5bc176=>{if('attribute'!=_0x5bc176['type'])return;const {data:_0x23a0fd}=_0x5bc176;if(!_0x23a0fd||'linkHref'!=_0x23a0fd['key'])return;const _0x1a3637=_0x23a0fd['newValue'],_0x4e4dcd=_0xd5b25f['locale'];return{'type':'format','content':null==_0x1a3637?o(_0x4e4dcd,'*Remove\x20link*'):o(_0x4e4dcd,'*Set\x20link:*\x20%0','\x22'+_0x1a3637+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55c9c1=this['editor'],_0x5efc6f=_0x55c9c1['locale'];_0x55c9c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x117157=>{if('formatInline'!=_0x117157['type'])return;const {data:_0x3c12e9}=_0x117157;if(_0x3c12e9){if('link'==_0x3c12e9['commandName']){const _0x3e51d0=_0x3c12e9['commandParams'][0x0];return{'type':'format','content':o(_0x5efc6f,'*Set\x20link:*\x20%0','\x22'+_0x3e51d0+'\x22')};}return'unlink'==_0x3c12e9['commandName']?{'type':'format','content':o(_0x5efc6f,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x15c086{['afterInit'](){const _0x1fdcd2=this['editor'],_0xb9edcb=_0x1fdcd2['locale'];if(!_0x1fdcd2['plugins']['has']('LegacyListEditing'))return;const _0x32286d=_0x1fdcd2['plugins']['get']('TrackChangesEditing'),_0x2966a1=_0x1fdcd2['plugins']['has']('LegacyTodoListEditing');function _0x1c4205(_0x3ff8fa){return()=>{const _0x1f1d83=_0x1fdcd2['model']['document']['selection'],_0x184884=_0x1fdcd2['commands']['get'](_0x3ff8fa);if(_0x184884['value'])return void _0x1fdcd2['execute']('paragraph',{});const _0x1be8a8=_0x3ff8fa['slice'](0x0,-0x4),_0x2fdc70=function(_0x3654af,_0x1d0a87,_0x443f3b){let _0x23fb67=Array['from'](_0x3654af)['filter'](_0x528b3a=>function(_0x330caf,_0x55adfb){return _0x55adfb['checkChild'](_0x330caf['parent'],'listItem')&&!_0x55adfb['isObject'](_0x330caf);}(_0x528b3a,_0x443f3b));_0x23fb67=_0x23fb67['filter'](_0x2f6a11=>!_0x2f6a11['is']('element','listItem')||_0x2f6a11['getAttribute']('listType')!=_0x1d0a87);const _0x4ed51e=new Set();for(const _0x2160d7 of _0x23fb67)_0x2160d7['is']('element','listItem')?_0x4ed51e['add'](fe(_0x2160d7)):_0x4ed51e['add'](_0x2160d7);return Array['from'](_0x4ed51e);}(_0x1f1d83['getSelectedBlocks'](),_0x1be8a8,_0x1fdcd2['model']['schema']);_0x1fdcd2['model']['change'](()=>{for(const _0xd3305e of _0x2fdc70)_0x32286d['markBlockFormat'](_0xd3305e,{'commandName':_0x3ff8fa,'commandParams':[{'forceValue':!_0x184884['value']}],'formatGroupId':'blockName'},ue(_0xd3305e));});};}function _0x512129(_0x175b93){return()=>{const _0x5bf4fe=function(_0x4e4290){let _0x52b192=Array['from'](_0x4e4290);const _0xc73900=_0x52b192['findIndex'](_0xcb0cb4=>'listItem'!=_0xcb0cb4['name']);return _0xc73900>-0x1&&(_0x52b192=_0x52b192['slice'](0x0,_0xc73900)),_0x52b192;}(_0x1fdcd2['model']['document']['selection']['getSelectedBlocks']()),_0x29c4cb=_0x1fdcd2['model']['createRange'](_0x1fdcd2['model']['createPositionAt'](_0x5bf4fe[0x0],'before'),_0x1fdcd2['model']['createPositionAt'](_0x5bf4fe[_0x5bf4fe['length']-0x1],'end'));_0x1fdcd2['model']['change'](()=>{_0x32286d['markBlockFormat'](_0x29c4cb,{'commandName':_0x175b93,'commandParams':[],'formatGroupId':'listIndent'},function(_0x596e65){const _0x181289=new Set();for(const _0x5e4857 of _0x596e65){let _0x5dc94e=_0x5e4857['nextSibling'];for(;_0x5dc94e&&_0x5dc94e['getAttribute']('listIndent')>_0x5e4857['getAttribute']('listIndent');)_0x181289['add'](_0x5dc94e),_0x5dc94e=_0x5dc94e['nextSibling'];}return Array['from'](_0x181289);}(_0x5bf4fe));});};}_0x32286d['enableCommand']('numberedList',_0x1c4205('numberedList')),_0x32286d['enableCommand']('bulletedList',_0x1c4205('bulletedList')),_0x2966a1&&_0x32286d['enableCommand']('todoList',_0x1c4205('todoList')),_0x32286d['enableCommand']('indentList',_0x512129('indentList')),_0x32286d['enableCommand']('outdentList',_0x512129('outdentList')),_0x2966a1&&_0x32286d['enableCommand']('checkTodoList',()=>{const _0x26f183=_0x1fdcd2['commands']['get']('checkTodoList'),_0x2bf7bb=Array['from'](_0x26f183['_selectedElements']);_0x2bf7bb['filter'](_0x28b3eb=>_0x28b3eb['getAttribute']('todoListChecked')!=_0x26f183['value']),_0x1fdcd2['model']['change'](()=>{for(const _0xde4f45 of _0x2bf7bb)_0x32286d['markBlockFormat'](_0xde4f45,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x26f183['value']}]});});}),_0x32286d['descriptionFactory']['registerElementLabel']('listItem',_0x1677ec=>o(_0xb9edcb,'ELEMENT_LIST_ITEM',_0x1677ec)),_0x32286d['descriptionFactory']['registerDescriptionCallback'](_0x1ed971=>{if('formatBlock'!=_0x1ed971['type']&&'formatInline'!=_0x1ed971['type'])return;const {data:_0xc2de4d}=_0x1ed971;if(_0xc2de4d){if('numberedList'==_0xc2de4d['commandName']||'bulletedList'==_0xc2de4d['commandName']||'todoList'==_0xc2de4d['commandName'])switch(_0xc2de4d['commandName']['replace']('List','')){case'bulleted':return _0x55bc59(o(_0xb9edcb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x55bc59(o(_0xb9edcb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x55bc59(o(_0xb9edcb,'ELEMENT_TODO_LIST'));}if('indentList'==_0xc2de4d['commandName'])return{'type':'format','content':o(_0xb9edcb,'*Indent:*\x20%0',o(_0xb9edcb,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xc2de4d['commandName'])return{'type':'format','content':o(_0xb9edcb,'*Outdent:*\x20%0',o(_0xb9edcb,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xc2de4d['commandName'])return _0xc2de4d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb9edcb,'*Check\x20item*')}:{'type':'format','content':o(_0xb9edcb,'*Uncheck\x20item*')};}function _0x55bc59(_0x3860a1){return{'type':'format','content':o(_0xb9edcb,'*Change\x20to:*\x20%0',_0x3860a1)};}});}}function fe(_0x4713cc){const _0x186350=_0x4713cc['getAttribute']('listIndent');if(0x0==_0x186350)return _0x4713cc;let _0x4c7b4b=_0x4713cc;for(;_0x4713cc['previousSibling']&&_0x4713cc['previousSibling']['is']('element','listItem');){const _0x32ff2a=_0x4713cc['previousSibling']['getAttribute']('listIndent');if(_0x32ff2a==_0x186350)_0x4c7b4b=_0x4713cc['previousSibling'];else{if(_0x32ff2a<_0x186350)break;}_0x4713cc=_0x4713cc['previousSibling'];}return _0x4c7b4b;}function ue(_0x23f063){const _0x355538=[];if(_0x23f063['is']('element','listItem')&&_0x23f063['getAttribute']('listIndent')>0x0){let _0x1433ab=_0x23f063['nextSibling'];for(;_0x1433ab&&'listItem'==_0x1433ab['name']&&_0x1433ab['getAttribute']('listIndent')==_0x23f063['getAttribute']('listIndent');)_0x355538['push'](_0x1433ab),_0x1433ab=_0x1433ab['nextSibling'];}return _0x355538;}class K extends _0x15c086{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x13f2d9=this['editor']['config']['get']('list.properties'),_0x410b08=this['editor']['plugins']['get']('TrackChangesEditing');_0x13f2d9['styles']&&_0x410b08['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x13f2d9['reversed']&&_0x410b08['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x13f2d9['startIndex']&&_0x410b08['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x410b08['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xcb61ff,_0x46d17d={}){const _0x416761=this['editor']['plugins']['get']('TrackChangesEditing'),_0x538ba1=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x416761['markMultiRangeBlockFormat'](_0x538ba1,{'commandName':'listStyle','commandParams':[{'type':_0x46d17d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1c589f,_0x500b2b={}){const _0x18d498=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c8e73=this['_getSuggestionBlocks'](_0x40a3ac=>_0x40a3ac['is']('element','listItem')&&'numbered'===_0x40a3ac['getAttribute']('listType'));if(_0x2c8e73['length']<0x1)return;const _0x49681f=_0x2c8e73['map'](_0x1a8ceb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1a8ceb,'before'),this['editor']['model']['createPositionAt'](_0x1a8ceb,0x0)));this['editor']['model']['change'](()=>{_0x18d498['markMultiRangeBlockFormat'](_0x49681f,{'commandName':'listReversed','commandParams':[{'reversed':_0x500b2b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3e2bca,_0x19e3bc={}){const _0x46f8bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x329746=this['_getSuggestionBlocks'](_0x2535e1=>_0x2535e1['is']('element','listItem')&&'numbered'===_0x2535e1['getAttribute']('listType'));if(_0x329746['length']<0x1)return;const _0x4db993=_0x329746['map'](_0xfee5dc=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xfee5dc,'before'),this['editor']['model']['createPositionAt'](_0xfee5dc,0x0)));this['editor']['model']['change'](()=>{_0x46f8bc['markMultiRangeBlockFormat'](_0x4db993,{'commandName':'listStart','commandParams':[{'startIndex':_0x19e3bc['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x15230c){if('formatBlock'!=_0x15230c['type']&&'formatInline'!=_0x15230c['type'])return;const _0x59bb6a=this['editor']['locale'],{data:_0x213554}=_0x15230c;if(!_0x213554)return;let _0x3bcb90,_0x4c60c6;switch(_0x213554['commandName']){case'listStyle':_0x3bcb90='*Change\x20to:*\x20%0',_0x4c60c6={'type':'format','content':o(_0x59bb6a,_0x3bcb90,o(_0x59bb6a,this['_getTranslationKeyForListStyle'](_0x213554['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3bcb90=_0x213554['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4c60c6={'type':'format','content':o(_0x59bb6a,_0x3bcb90)};break;case'listStart':_0x3bcb90='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4c60c6={'type':'format','content':o(_0x59bb6a,_0x3bcb90,_0x213554['commandParams'][0x0]['startIndex'])};}return _0x4c60c6;}['_getSuggestionBlocksForListStyle'](){const _0x589735=this['editor']['plugins']['get']('LegacyListUtils');let _0x5a8bd0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5a8bd0[0x0]?.['is']('element','listItem')&&_0x5a8bd0['unshift'](..._0x589735['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5a8bd0[_0x5a8bd0['length']-0x1]?.['is']('element','listItem')&&_0x5a8bd0['push'](..._0x589735['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5a8bd0=[...new Set(_0x5a8bd0)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5a8bd0=_0x5a8bd0['filter'](_0x141eb2=>_0x141eb2['is']('element','listItem'))),_0x5a8bd0;}['_getSuggestionBlocks'](_0x79eff2){const _0x13d59e=this['editor']['plugins']['get']('LegacyListUtils');let _0x5e6b3c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x79eff2)['map'](_0x5232fc=>{const _0xd7029=this['editor']['model']['createPositionAt'](_0x5232fc,0x0);return[..._0x13d59e['getSiblingNodes'](_0xd7029,'backward'),..._0x13d59e['getSiblingNodes'](_0xd7029,'forward')];})['flat']();return _0x5e6b3c=[...new Set(_0x5e6b3c)],_0x5e6b3c;}['_getTranslationKeyForListStyle'](_0xca247b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xca247b)||'default')['toUpperCase']()+'_LIST_'+_0xca247b['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x15c086{['afterInit'](){const _0x44fe3c=this['editor'];if(!_0x44fe3c['plugins']['has']('MediaEmbedEditing'))return;const _0x3e763b=_0x44fe3c['plugins']['get']('TrackChangesEditing'),_0x551034=_0x44fe3c['locale'];_0x3e763b['enableCommand']('mediaEmbed'),_0x3e763b['descriptionFactory']['registerElementLabel']('media',_0x3d531f=>o(_0x551034,'ELEMENT_MEDIA',_0x3d531f)),_0x44fe3c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4ef42b,{writer:_0x560508,options:_0x1b9576})=>{if(_0x1b9576['showSuggestionHighlights'])return _0x560508['createEmptyElement']('div');},'converterPriority':'high'}),_0x44fe3c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x13daa7,_0x803f36,_0x209e4d)=>{_0x209e4d['options']['showSuggestionHighlights']&&_0x13daa7['stop']();},{'priority':'high'});}}class gt extends _0x15c086{['afterInit'](){const _0x54a74f=this['editor'];_0x54a74f['plugins']['has']('MentionEditing')&&_0x54a74f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x15c086{['afterInit'](){const _0x220270=this['editor'];if(!_0x220270['commands']['get']('insertMergeField'))return;_0x220270['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x4e6a57=_0x220270['plugins']['get']('TrackChangesEditing'),_0x408e63=_0x220270['locale'];_0x4e6a57['descriptionFactory']['registerElementLabel']('mergeField',_0x83c8f=>o(_0x408e63,'ELEMENT_MERGE_FIELD',_0x83c8f)),_0x4e6a57['descriptionFactory']['registerDescriptionCallback'](_0x2b8b56=>{if('insertion'!=_0x2b8b56['type']&&'deletion'!=_0x2b8b56['type'])return;const _0x380ae0=_0x2b8b56['getContainedElement']();if(null==_0x380ae0)return;if(!_0x380ae0['is']('element','mergeField'))return;const _0x353a3b=_0x220270['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x380ae0['getAttribute']('id'));return'insertion'==_0x2b8b56['type']?{'type':'insertion','content':o(_0x408e63,'*Insert:*\x20%0','\x22'+_0x353a3b+'\x22\x20'+o(_0x408e63,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x408e63,'*Remove:*\x20%0','\x22'+_0x353a3b+'\x22\x20'+o(_0x408e63,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x15c086{['afterInit'](){const _0x5d4546=this['editor'],_0x15c7a1=_0x5d4546['plugins']['get']('TrackChangesEditing');_0x5d4546['plugins']['has']('MultiLevelList')&&(_0x15c7a1['enableDefaultAttributesIntegration']('multiLevelList'),_0x15c7a1['registerBlockAttribute']('listMarkerStyle'),_0x15c7a1['descriptionFactory']['registerDescriptionCallback'](_0x4c50eb=>this['handleDescriptions'](_0x4c50eb)));}['handleDescriptions'](_0x1fc26f){const _0x47948c=this['editor']['locale'],{data:_0x575870}=_0x1fc26f,_0x1accb0={'type':'format','content':''};if(_0x575870&&'listMarkerStyle'==_0x575870['key']){if(!_0x575870['oldValue'])return{'type':'format','content':o(_0x47948c,'*Set\x20format:*\x20%0',o(_0x47948c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x575870['newValue']+')'};if(!_0x575870['newValue']){let _0x43258e=_0x1fc26f['head'];for(;_0x43258e;){if(_0x43258e['data']&&'listType'==_0x43258e['data']['key']&&_0x43258e['data']['newValue'])return _0x1accb0;_0x43258e=_0x43258e['next'];}return{'type':'format','content':o(_0x47948c,'*Remove\x20format:*\x20%0',o(_0x47948c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x575870['oldValue']+')'};}}}}class dt extends _0x15c086{['afterInit'](){const _0x4e979e=this['editor'];if(!_0x4e979e['plugins']['has']('PageBreakEditing'))return;_0x4e979e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xa9194e=_0x4e979e['plugins']['get']('TrackChangesEditing'),_0x24eaf4=_0x4e979e['locale'];_0xa9194e['descriptionFactory']['registerElementLabel']('pageBreak',_0x513054=>o(_0x24eaf4,'ELEMENT_PAGE_BREAK',_0x513054));}}class pt extends _0x15c086{['afterInit'](){const _0x1d5cfa=this['editor'];if(!_0x1d5cfa['plugins']['has']('Paragraph'))return;const _0x1dbffe=_0x1d5cfa['locale'],_0x3ede95=_0x1d5cfa['plugins']['get']('TrackChangesEditing');_0x3ede95['descriptionFactory']['registerElementLabel']('paragraph',_0x26b46e=>o(_0x1dbffe,'ELEMENT_PARAGRAPH',_0x26b46e)),_0x3ede95['enableDefaultAttributesIntegration']('paragraph'),_0x3ede95['enableCommand']('insertParagraph'),_0x1d5cfa['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1d5cfa),{'priority':'highest'}),_0x1d5cfa['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1b150e,_0x124365,_0x2695f6)=>{_0x2695f6['options']['showSuggestionHighlights']&&nr(_0x1d5cfa,{'showActiveMarker':!0x1})(_0x1b150e,_0x124365,_0x2695f6);},{'priority':'highest'});const _0x5481a1=_0x3ede95['descriptionFactory'];_0x5481a1['registerDescriptionCallback'](_0x108b75=>{if('insertion'!==_0x108b75['type'])return;const {start:_0x128966,end:_0x548819}=_0x108b75['getFirstRange']();if(!_0x128966['isTouching'](_0x548819)||!_0x128966['nodeAfter'])return;const _0x4e2d9b=_0x1d5cfa['model']['schema'],_0x1a60ff=_0x128966['nodeAfter'];return _0x4e2d9b['isBlock'](_0x1a60ff)&&!_0x4e2d9b['isLimit'](_0x1a60ff)&&_0x4e2d9b['checkChild'](_0x1a60ff,'$text')?{'type':'insertion','content':o(_0x1dbffe,'*Insert:*\x20%0',_0x5481a1['getItemLabel'](_0x1a60ff,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c0fd8=this['editor'],_0x27ab15=_0x4c0fd8['locale'];_0x4c0fd8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fd07c=>{if('formatBlock'!=_0x2fd07c['type'])return;const {data:_0x114ac3}=_0x2fd07c;return _0x114ac3&&'paragraph'==_0x114ac3['commandName']?{'type':'format','content':o(_0x27ab15,'*Change\x20to:*\x20%0',o(_0x27ab15,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x45b431,{showActiveMarker:_0x1b8197=!0x0}={}){return(_0x3609ce,_0x59a055,_0x6d5ab3)=>{const _0x2fa1e2=_0x45b431['plugins']['get']('TrackChangesEditing'),_0xf79d08=_0x59a055['markerRange']['start'],_0x372df3=_0x59a055['markerRange']['end'],_0x54b513=_0x45b431['model']['schema'];if(!_0xf79d08['isTouching'](_0x372df3)||!_0xf79d08['nodeAfter'])return;const _0x2adc92=_0xf79d08['nodeAfter'];if(_0x54b513['isBlock'](_0x2adc92)&&!_0x54b513['isLimit'](_0x2adc92)&&_0x54b513['checkChild'](_0x2adc92,'$text')){if(!_0x6d5ab3['consumable']['consume'](_0x59a055['markerRange'],_0x3609ce['name']))return;const _0x43624b=_0x6d5ab3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x399b83=_0x6d5ab3['mapper']['toViewPosition'](_0x372df3);_0x1b8197&&_0x2fa1e2['activeMarkers']['includes'](_0x59a055['markerName'])&&_0x6d5ab3['writer']['addClass']('ck-suggestion-marker--active',_0x43624b),_0x6d5ab3['writer']['insert'](_0x399b83,_0x43624b),_0x6d5ab3['mapper']['bindElementToMarker'](_0x43624b,_0x59a055['markerName']);}};}class kt extends _0x15c086{['afterInit'](){const _0x21a611=this['editor'];if(!_0x21a611['plugins']['has']('RemoveFormatEditing'))return;_0x21a611['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6c2293=this['editor'];_0x6c2293['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56e0da=>{if('formatBlock'!=_0x56e0da['type']&&'formatInline'!=_0x56e0da['type'])return;const {data:_0x248634}=_0x56e0da;return _0x248634&&'removeFormat'==_0x248634['commandName']?{'type':'format','content':o(_0x6c2293['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class bt extends _0x15c086{['afterInit'](){const _0x3f461e=this['editor'];if(!_0x3f461e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1e153d=_0x3f461e['plugins']['get']('TrackChangesEditing');_0x1e153d['enableCommand']('goToPreviousRestrictedEditingException'),_0x1e153d['enableCommand']('goToNextRestrictedEditingException');const _0x3c864f=_0x3f461e['plugins']['get']('RestrictedEditingModeEditing');_0x3c864f['enableCommand']('trackChanges'),_0x3c864f['enableCommand']('acceptSuggestion'),_0x3c864f['enableCommand']('discardSuggestion'),_0x3c864f['enableCommand']('acceptAllSuggestions'),_0x3c864f['enableCommand']('discardAllSuggestions'),_0x3c864f['enableCommand']('acceptSelectedSuggestions'),_0x3c864f['enableCommand']('discardSelectedSuggestions');}}class wt extends _0x15c086{static get['requires'](){return[_0x275f63];}['init'](){const _0x1e8e36=this['editor'],_0x5c4c5b=_0x1e8e36['plugins']['get']('TrackChangesEditing');_0x5c4c5b['enableCommand']('shiftEnter'),_0x1e8e36['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ce(_0x1e8e36),{'priority':'high'}),_0x1e8e36['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ce(_0x1e8e36),{'priority':'high'}),_0x1e8e36['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4f7a4c,_0x5911f9,_0x45597f)=>{_0x45597f['options']['showSuggestionHighlights']&&ce(_0x1e8e36,{'showActiveMarker':!0x1})(_0x4f7a4c,_0x5911f9,_0x45597f);}),_0x5c4c5b['descriptionFactory']['registerElementLabel']('softBreak',_0x2d5dd9=>o(_0x1e8e36['locale'],'ELEMENT_LINE_BREAK',_0x2d5dd9));}}function ce(_0xc0ddb3,{showActiveMarker:_0x46c2d4=!0x0}={}){return(_0x219400,_0x51e08c,_0x833b20)=>{const _0x55cf6d=_0xc0ddb3['plugins']['get']('TrackChangesEditing');if(!_0x833b20['consumable']['test'](_0x51e08c['markerRange'],_0x219400['name']))return;const _0x200014=_0xc0ddb3['model'];for(const _0x235998 of _0x51e08c['markerRange']['getItems']()){if(!_0x235998['is']('element','softBreak'))continue;const _0x4c4480='deletion'==_0x51e08c['markerName']['split'](':')[0x1]?'merge':'split',_0x9a30c7=_0x833b20['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4c4480}),_0x8f0f71=_0x833b20['mapper']['toViewPosition'](_0x200014['createPositionBefore'](_0x235998));_0x46c2d4&&_0x55cf6d['activeMarkers']['includes'](_0x51e08c['markerName'])&&_0x833b20['writer']['addClass']('ck-suggestion-marker--active',_0x9a30c7),_0x833b20['writer']['insert'](_0x8f0f71,_0x9a30c7),_0x833b20['mapper']['bindElementToMarker'](_0x9a30c7,_0x51e08c['markerName']);}};}class yt extends _0x15c086{['afterInit'](){const _0x3c4407=this['editor'],_0x276daf=_0x3c4407['model'],_0x88d997=_0x3c4407['locale'];if(!_0x3c4407['plugins']['has']('StandardEditingModeEditing'))return;const _0x1d1ad5=_0x3c4407['plugins']['get']('TrackChangesEditing'),_0x18a698='restrictedEditingException',_0x568eb3=_0x3c4407['commands']['get'](_0x18a698);_0x1d1ad5['enableCommand'](_0x18a698,(_0x31b3d7,_0x41c4d9={})=>{const _0x2fbee7=_0x276daf['document']['selection'];if(_0x2fbee7['isCollapsed'])return void _0x31b3d7(_0x41c4d9);const _0x46d711=void 0x0!==_0x41c4d9['forceValue']?_0x41c4d9['forceValue']:!_0x568eb3['value'];_0x276daf['change'](()=>{const _0x2729dc=Array['from'](_0x2fbee7['getRanges']());for(const _0x17d223 of _0x2729dc){const _0x1c9862=_0x46d711?[_0x17d223]:io(_0x18a698,_0x17d223,_0x276daf);for(const _0x370022 of _0x1c9862)_0x1d1ad5['markInlineFormat'](_0x370022,{'commandName':_0x18a698,'commandParams':[{'forceValue':_0x46d711}]});}});}),_0x1d1ad5['descriptionFactory']['registerDescriptionCallback'](_0x18f350=>{if('formatBlock'!=_0x18f350['type']&&'formatInline'!=_0x18f350['type'])return;const {data:_0x55c3d9}=_0x18f350;return _0x55c3d9&&_0x55c3d9['commandName']==_0x18a698?_0x55c3d9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x88d997,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x88d997,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class jt extends _0x15c086{['afterInit'](){const _0xd21aca=this['editor'];if(!_0xd21aca['plugins']['has']('Style')||!_0xd21aca['plugins']['has']('DataSchema'))return;const _0x44547e=_0xd21aca['plugins']['get']('TrackChangesEditing'),_0xad3cb0=_0xd21aca['locale'],_0x305205=_0xd21aca['config']['get']('style')||{},_0x5970ec=_0xd21aca['plugins']['get']('GeneralHtmlSupport'),_0x5a985e=_0xd21aca['plugins']['get']('StyleUtils')['normalizeConfig'](_0xd21aca['plugins']['get']('DataSchema'),_0x305205['definitions']);_0x44547e['enableDefaultAttributesIntegration']('style');const _0x3b5546=new Set();for(const _0x16adc6 of _0x5a985e['block']){const _0xdf298=_0x5970ec['getGhsAttributeNameForElement'](_0x16adc6['element']);_0x3b5546['add'](_0xdf298);}const _0x9a0c83=new Set();for(const _0xe6417 of _0x5a985e['inline']){const _0x2ab127=_0x5970ec['getGhsAttributeNameForElement'](_0xe6417['element']);_0x9a0c83['add'](_0x2ab127);for(const _0x3bb008 of _0xe6417['ghsAttributes'])_0x9a0c83['add'](_0x3bb008);}for(const _0x3cd172 of _0x3b5546)_0x44547e['registerBlockAttribute'](_0x3cd172),_0x44547e['descriptionFactory']['registerAttributeLabel'](_0x3cd172,o(_0xad3cb0,'FORMAT_STYLE'));for(const _0x420b34 of _0x9a0c83)_0x44547e['registerInlineAttribute'](_0x420b34),_0x44547e['descriptionFactory']['registerAttributeLabel'](_0x420b34,o(_0xad3cb0,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x329afa=this['editor'],_0x3c9133=_0x329afa['locale'];_0x329afa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3324d9=>{if('formatBlock'!=_0x3324d9['type']&&'formatInline'!=_0x3324d9['type'])return;const {data:_0x2f3164}=_0x3324d9;return _0x2f3164&&'style'===_0x2f3164['commandName']?_0x2f3164['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3c9133,'*Set\x20format:*\x20%0',_0x2f3164['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3c9133,'*Remove\x20format:*\x20%0',_0x2f3164['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class St extends _0x15c086{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x594fb1){super(_0x594fb1),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x6e1230=this['editor'],_0x4d8240=_0x6e1230['model']['document']['selection'];if(!_0x6e1230['plugins']['has']('TableEditing'))return;const _0xbd3196=_0x6e1230['locale'],_0x48e544=_0x6e1230['plugins']['get']('TrackChangesEditing'),_0x49842d=_0x6e1230['plugins']['get']('TableUtils');_0x48e544['descriptionFactory']['registerElementLabel']('table',_0x5f56e8=>o(_0xbd3196,'ELEMENT_TABLE',_0x5f56e8)),this['_setupColumnsRowsFixing'](),_0x48e544['enableCommand']('insertTable'),_0x48e544['enableCommand']('selectTableRow'),_0x48e544['enableCommand']('selectTableColumn');for(const _0x521d43 of['insertTableRowAbove','insertTableRowBelow']){const _0x587874=_0x6e1230['commands']['get'](_0x521d43);_0x48e544['enableCommand'](_0x521d43,_0x37cfab=>{_0x6e1230['model']['change'](_0x56a873=>{_0x37cfab();const _0x214a84='above'===_0x587874['order'],_0x1fcd9b=_0x49842d['getSelectionAffectedTableCells'](_0x4d8240),_0x3a0107=_0x49842d['getRowIndexes'](_0x1fcd9b),_0x3a6f3b=_0x214a84?_0x3a0107['first']-0x1:_0x3a0107['last']+0x1,_0x98a0e2=_0x1fcd9b[0x0]['findAncestor']('table'),_0x30e119=_0x49842d['createTableWalker'](_0x98a0e2,{'startRow':_0x3a6f3b,'endRow':_0x3a6f3b}),_0x4a3c95=Array['from'](_0x30e119)['map'](_0x53ed9d=>_0x56a873['createRangeOn'](_0x53ed9d['cell']));_0x48e544['markMultiRangeInsertion'](_0x4a3c95,'tableRow');});});}for(const _0x32cf7c of['insertTableColumnLeft','insertTableColumnRight']){const _0x194f54=_0x6e1230['commands']['get'](_0x32cf7c);_0x48e544['enableCommand'](_0x32cf7c,_0x1fac77=>{_0x6e1230['model']['change'](_0x4c4519=>{_0x1fac77();const _0x3c6845='left'===_0x194f54['order'],_0x344674=_0x49842d['getSelectionAffectedTableCells'](_0x4d8240),_0x1c1c8e=_0x49842d['getColumnIndexes'](_0x344674),_0x4e3540=_0x3c6845?_0x1c1c8e['first']-0x1:_0x1c1c8e['last']+0x1,_0x40a970=_0x344674[0x0]['findAncestor']('table'),_0x1ba4a6=_0x49842d['createTableWalker'](_0x40a970,{'startRow':0x0,'column':_0x4e3540,'includeAllSlots':!0x1}),_0x9b5909=Array['from'](_0x1ba4a6)['map'](_0x10bdf0=>_0x4c4519['createRangeOn'](_0x10bdf0['cell']));_0x48e544['markMultiRangeInsertion'](_0x9b5909,'tableColumn');});});}for(const _0x562195 of['removeTableRow','removeTableColumn']){const _0x38edfe=_0x562195['substr'](0xb),_0x4c3a9f=_0x38edfe['toLowerCase'](),_0x5e5a65=_0x4c3a9f['substr'](0x0,0x3)+'span',_0x4fb795='table'+_0x38edfe,_0x77c4be='min'+_0x38edfe,_0x2f7408='max'+_0x38edfe;_0x48e544['enableCommand'](_0x562195,()=>{_0x6e1230['model']['change'](_0x60c7e7=>{const _0x48bdf6=_0x49842d['getSelectionAffectedTableCells'](_0x4d8240),_0xd68e06=_0x48bdf6[0x0]['findAncestor']('table');let _0x5c2273;if('removeTableRow'==_0x562195){const _0x1c1949=_0x49842d['getRowIndexes'](_0x48bdf6);_0x5c2273={'startRow':_0x1c1949['first'],'endRow':_0x1c1949['last'],'includeAllSlots':!0x0};}else{const _0x1ff79a=_0x49842d['getColumnIndexes'](_0x48bdf6);_0x5c2273={'startColumn':_0x1ff79a['first'],'endColumn':_0x1ff79a['last'],'includeAllSlots':!0x0};}const _0xbefabd=_0x49842d['createTableWalker'](_0xd68e06,_0x5c2273),_0x502bc8=Array['from'](_0xbefabd)['map'](({cell:_0x4a16fd})=>_0x4a16fd),_0x502b6d=Ee(_0x502bc8['filter'](_0xd4caff=>_0xd4caff['hasAttribute'](_0x5e5a65))),_0x129750=Ee(_0x502bc8['filter'](_0x34a272=>!_0x34a272['hasAttribute'](_0x5e5a65)))['map'](_0x2e9f07=>_0x60c7e7['createRangeOn'](_0x2e9f07)),_0x154d51=_0x48e544['markMultiRangeDeletion'](_0x129750,_0x4fb795);if(_0x154d51&&('tableRow'==_0x154d51['subType']||'tableColumn'==_0x154d51['subType'])){const _0x3642cc=this['_getSuggestionCoords'](_0x154d51);for(const _0x59ee55 of _0x502b6d){const _0x85a5e1=_0x60c7e7['createRangeOn'](_0x59ee55),_0x23bc0d=_0x49842d['getCellLocation'](_0x59ee55),_0x2b4836=_0x59ee55['getAttribute'](_0x5e5a65)-0x1,_0x546990=_0x3642cc[_0x77c4be],_0x493422=_0x3642cc[_0x2f7408];_0x546990<=_0x23bc0d[_0x4c3a9f]&&_0x23bc0d[_0x4c3a9f]+_0x2b4836<=_0x493422&&_0x154d51['addRange'](_0x85a5e1);}}});});}function _0x2fdfc1(_0x13d2b2){const _0x46f4d3=Array['from'](_0x4d8240['getRanges']())['map'](_0x11ed0d=>_0x948f0b['fromRange'](_0x11ed0d));_0x6e1230['model']['change'](_0x200855=>{const _0x56a53a=_0x200855['batch'];_0x13d2b2=_0x13d2b2['filter'](_0x560d1a=>'$graveyard'!=_0x560d1a['root']['rootName']),_0x200855['setSelection'](_0x13d2b2),_0x6e1230['commands']['get']('removeTableRow')['refresh'](),_0x6e1230['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x6e1230['model']['enqueueChange'](()=>{_0x6e1230['model']['enqueueChange'](_0x56a53a,_0x4479ac=>{const _0x3469b7=_0x46f4d3['filter'](_0x293da2=>'$graveyard'!=_0x293da2['root']['rootName']);_0x3469b7['length']>0x0&&_0x4479ac['setSelection'](_0x3469b7);for(const _0x58f263 of _0x46f4d3)_0x58f263['detach']();});});});}function _0x1ab757(_0x4c8546){_0x6e1230['model']['change'](_0x1cd6e2=>{const _0x4b313e=Array['from'](_0x4d8240['getRanges']())['map'](_0x1d18a2=>_0x948f0b['fromRange'](_0x1d18a2)),_0x109485=[];for(const _0x27608c of _0x4c8546)for(const _0x23ca61 of _0x27608c['getItems']({'shallow':!0x0}))_0x109485['push'](_0x23ca61);for(const _0x3cf7a5 of _0x109485)'$graveyard'!=_0x3cf7a5['root']['rootName']&&(_0x1cd6e2['setSelection'](_0x1cd6e2['createPositionAt'](_0x3cf7a5,0x0)),_0x6e1230['commands']['get']('removeTableColumn')['refresh'](),_0x6e1230['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x42514f=_0x4b313e['filter'](_0x3a7918=>'$graveyard'!=_0x3a7918['root']['rootName']);_0x42514f['length']>0x0&&_0x1cd6e2['setSelection'](_0x42514f);for(const _0x1220c4 of _0x4b313e)_0x1220c4['detach']();});}function _0x8c0f3f(_0x1c58a7,_0x3cd43c){return _0x3cd43c['every'](_0x50e7b9=>_0x1c58a7['some'](_0x2206d0=>_0x2206d0['end']['isEqual'](_0x50e7b9['start'])||_0x50e7b9['end']['isEqual'](_0x2206d0['start'])));}function _0x48352c(_0x1fde33,_0xb0d21e){return!_0x1fde33['some'](_0x30280c=>_0xb0d21e['some'](_0x472503=>_0x30280c['isIntersecting'](_0x472503)))&&_0x1fde33['some'](_0x1b15e8=>_0xb0d21e['some'](_0x4c8fcf=>_0x1b15e8['end']['isTouching'](_0x4c8fcf['start'])));}_0x6e1230['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x55de5f,_0x483b43,_0x3d5a1c)=>{if(!_0x3d5a1c['options']['showSuggestionHighlights'])return;const _0x13c4d2=_0x483b43['item'];if(!_0x13c4d2)return;const _0x256d28=_0x3d5a1c['mapper']['toViewElement'](_0x13c4d2);function _0x40309f(_0x1eac20){return Array['isArray'](_0x1eac20)?_0x1eac20:[_0x1eac20];}_0x256d28&&'tableCell'===_0x13c4d2['name']&&_0x5bea68(_0x256d28,_0x3d5a1c['writer'],(_0x57e2fb,_0x1e08ed,_0x3cb569)=>_0x3cb569['addClass'](_0x40309f(_0x1e08ed['classes']),_0x57e2fb),(_0x21a6ef,_0xd7dbf8,_0x5dcc28)=>_0x5dcc28['removeClass'](_0x40309f(_0xd7dbf8['classes']),_0x21a6ef));},{'priority':'highest'}),_0x48e544['descriptionFactory']['registerDescriptionCallback'](_0x26f49e=>{if('insertion'!=_0x26f49e['type']&&'deletion'!=_0x26f49e['type'])return;const _0x377d8d=_0x26f49e['getContainedElement']();if(null!=_0x377d8d&&_0x377d8d['is']('element','table')){if('insertion'==_0x26f49e['type']){const _0xe84c91=_0x26f49e['getItems']()['filter'](_0x54962d=>_0x54962d['is']('$textProxy'))['map'](_0x2353ea=>_0x2353ea['data']);if(_0xe84c91['length'])return{'type':'insertion','content':o(_0xbd3196,'*Insert:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xe84c91['join']('\x20')+'\x22'))};}if('deletion'==_0x26f49e['type']){const _0x1fb07=_0x26f49e['getItems']()['filter'](_0xe2fe2=>_0xe2fe2['is']('$textProxy'))['map'](_0x42ffa2=>_0x42ffa2['data']);if(_0x1fb07['length'])return{'type':'deletion','content':o(_0xbd3196,'*Remove:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1fb07['join']('\x20')+'\x22'))};}}}),_0x48e544['descriptionFactory']['registerDescriptionCallback'](_0x10098d=>{if('tableRow'==_0x10098d['subType']){const _0x213e2c=_0x10098d['getItems']()['filter'](_0x353969=>_0x353969['is']('$textProxy'))['map'](_0x3de28c=>_0x3de28c['data']),_0x53315c=this['_getSuggestionCoords'](_0x10098d),_0x4f79fe=_0x53315c['maxRow']-_0x53315c['minRow']+0x1;if('insertion'==_0x10098d['type'])return _0x213e2c['length']?{'type':'insertion','content':o(_0xbd3196,'*Insert:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4f79fe,'\x22'+_0x213e2c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xbd3196,'*Insert:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_ROW',_0x4f79fe))};if('deletion'==_0x10098d['type'])return _0x213e2c['length']?{'type':'deletion','content':o(_0xbd3196,'*Remove:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4f79fe,'\x22'+_0x213e2c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xbd3196,'*Remove:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_ROW',_0x4f79fe))};}if('tableColumn'==_0x10098d['subType']){const _0x5738fd=_0x10098d['getItems']()['filter'](_0x43f78c=>_0x43f78c['is']('$textProxy'))['map'](_0x15851b=>_0x15851b['data']),_0x2c5c4e=this['_getSuggestionCoords'](_0x10098d),_0x321f8c=_0x2c5c4e['maxColumn']-_0x2c5c4e['minColumn']+0x1;if('insertion'==_0x10098d['type'])return _0x5738fd['length']?{'type':'insertion','content':o(_0xbd3196,'*Insert:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x321f8c,'\x22'+_0x5738fd['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xbd3196,'*Insert:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_COLUMN',_0x321f8c))};if('deletion'==_0x10098d['type'])return _0x5738fd['length']?{'type':'deletion','content':o(_0xbd3196,'*Remove:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x321f8c,'\x22'+_0x5738fd['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xbd3196,'*Remove:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_COLUMN',_0x321f8c))};}}),_0x48e544['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2fdfc1),_0x48e544['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2fdfc1),_0x48e544['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1ab757),_0x48e544['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1ab757),_0x48e544['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x8c0f3f),_0x48e544['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x8c0f3f),_0x48e544['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x48352c),_0x48e544['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x48352c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x521a9d=this['editor'],_0x309cef=_0x521a9d['model']['document']['selection'];return(_0x5d00f8,_0x1fd0ee)=>{_0x521a9d['model']['change'](_0x406b08=>{const {commandName:_0x4d0781,commandParams:_0x358a6b}=_0x1fd0ee;let _0x1b8901=_0x5d00f8[0x0]['end']['nodeBefore'];_0x358a6b&&_0x358a6b[0x0]&&!0x1===_0x358a6b[0x0]['forceValue']&&(_0x1b8901=_0x5d00f8[0x0]['start']['nodeAfter']);const _0x4d5fc5=_0x406b08['createRangeIn'](_0x1b8901);if('$graveyard'==_0x4d5fc5['root']['rootName'])return;const _0x5cf91e=Array['from'](_0x309cef['getRanges']())['map'](_0x141783=>_0x948f0b['fromRange'](_0x141783));_0x406b08['setSelection'](_0x4d5fc5),_0x521a9d['commands']['get'](_0x4d0781)['refresh'](),_0x358a6b['push']({'forceDefaultExecution':!0x0}),_0x521a9d['execute'](_0x4d0781,..._0x358a6b);const _0x3ea3e0=_0x5cf91e['filter'](_0x8c0484=>'$graveyard'!=_0x8c0484['root']['rootName']);_0x3ea3e0['length']>0x0&&_0x406b08['setSelection'](_0x3ea3e0);for(const _0x273dcf of _0x5cf91e)_0x273dcf['detach']();});};}['_getCoordsForCells'](_0x36eb26){const _0x37dfea=this['editor']['plugins']['get']('TableUtils');let _0x279cc2=Number['MAX_SAFE_INTEGER'],_0x3a8bc2=Number['MIN_SAFE_INTEGER'],_0x489612=Number['MAX_SAFE_INTEGER'],_0x16b1c8=Number['MIN_SAFE_INTEGER'];for(const _0x319440 of _0x36eb26){if('$graveyard'==_0x319440['root']['rootName'])continue;const {row:_0x19b149,column:_0x1c6adc}=_0x37dfea['getCellLocation'](_0x319440),_0x44ff9d=_0x319440['hasAttribute']('rowspan')?_0x319440['getAttribute']('rowspan')-0x1:0x0,_0x350081=_0x319440['hasAttribute']('colspan')?_0x319440['getAttribute']('colspan')-0x1:0x0;_0x279cc2=_0x19b149<_0x279cc2?_0x19b149:_0x279cc2,_0x3a8bc2=_0x19b149+_0x44ff9d>_0x3a8bc2?_0x19b149+_0x44ff9d:_0x3a8bc2,_0x489612=_0x1c6adc<_0x489612?_0x1c6adc:_0x489612,_0x16b1c8=_0x1c6adc+_0x350081>_0x16b1c8?_0x1c6adc+_0x350081:_0x16b1c8;}return{'minRow':_0x279cc2,'maxRow':_0x3a8bc2,'minColumn':_0x489612,'maxColumn':_0x16b1c8};}['_setupColumnsRowsFixing'](){const _0x2b4f10=this['editor'],_0x3a87a4=_0x2b4f10['plugins']['get']('TrackChangesEditing'),_0x20e8ec=_0x2b4f10['plugins']['get']('TableUtils');_0x2b4f10['model']['document']['on']('change:data',()=>{const _0x32179d=Array['from'](_0x2b4f10['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x19c8f5,data:_0x11d075}of _0x32179d){const {group:_0x456b88,id:_0x11be1b,subType:_0xac5cb2}=_0x3a87a4['_splitMarkerName'](_0x19c8f5);if('suggestion'!=_0x456b88)continue;if(null!=_0x11d075['oldRange'])continue;const _0x42c52d=_0x3a87a4['getSuggestion'](_0x11be1b);this['_tablePostFixingSubtypes']['includes'](_0xac5cb2)&&this['_tableSuggestions']['add'](_0x42c52d);}},{'priority':'low'});const _0x79deff=(_0x52717c,_0x21b68d)=>{let _0x378159=!0x1;const _0xd42d7c=_0x21b68d['createRangeOn'](_0x52717c),_0x440a1f=_0x52717c['findAncestor']('table'),_0x2c4910=_0x20e8ec['getCellLocation'](_0x52717c);for(const _0x345a2c of this['_tableSuggestions']){const _0x48a2e7=_0x345a2c['subType'],_0x318b21=_0x48a2e7['startsWith']('tablePaste'),_0x3d6c6c=_0x48a2e7['substr'](_0x318b21?0xa:0x5),_0x45f00d=_0x3d6c6c['toLowerCase'](),_0xcec5d=_0x45f00d['substr'](0x0,0x3)+'span',_0xfbc79='min'+_0x3d6c6c,_0x1443c5='max'+_0x3d6c6c;if(!_0x345a2c['isInContent'])continue;if(_0x440a1f!=_0x345a2c['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x345a2c['isIntersectingWithRange'](_0xd42d7c))continue;const _0xd0d85=_0x52717c['hasAttribute'](_0xcec5d)?_0x52717c['getAttribute'](_0xcec5d)-0x1:0x0,_0x4e6f85=this['_getSuggestionCoords'](_0x345a2c),_0x38f269=_0x4e6f85[_0xfbc79],_0x121a9e=_0x4e6f85[_0x1443c5];_0x38f269<=_0x2c4910[_0x45f00d]&&_0x2c4910[_0x45f00d]+_0xd0d85<=_0x121a9e&&(_0x345a2c['addRange'](_0xd42d7c),_0x378159=!0x0);}return _0x378159;};_0x2b4f10['model']['document']['registerPostFixer'](_0x5f25f7=>{let _0x5c63f3=!0x1;for(const _0x63e216 of _0x2b4f10['model']['document']['differ']['getChanges']())if('insert'==_0x63e216['type']){if('tableRow'==_0x63e216['name']){for(const _0x4ad809 of _0x63e216['position']['nodeAfter']['getChildren']())_0x5c63f3=_0x5c63f3||_0x79deff(_0x4ad809,_0x5f25f7);}else'tableCell'==_0x63e216['name']&&(_0x5c63f3=_0x5c63f3||_0x79deff(_0x63e216['position']['nodeAfter'],_0x5f25f7));}return _0x5c63f3;});}['_getSuggestionCoords'](_0x5f5334){return this['_getCoordsForCells'](_0x5f5334['getRanges']()['map'](_0x991fdf=>_0x991fdf['start']['nodeAfter']));}}function Ee(_0x1f93b2){return Array['from'](new Set(_0x1f93b2)['values']());}class At extends _0x15c086{static get['requires'](){return[St];}['afterInit'](){const _0x548fa3=this['editor'],_0x44b826=_0x548fa3['model']['document']['selection'],_0x1df8ca=_0x548fa3['locale'];if(!_0x548fa3['plugins']['has']('TableEditing'))return;const _0x3320ec=_0x548fa3['plugins']['get']('TrackChangesEditing'),_0x43cffb=_0x548fa3['plugins']['get']('TableUtils'),_0x3c317e=_0x548fa3['plugins']['get'](St);_0x3c317e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3320ec['enableCommand']('mergeTableCells',()=>{const _0x392f28=_0x43cffb['getSelectionAffectedTableCells'](_0x548fa3['model']['document']['selection']);_0x548fa3['model']['change'](()=>{_0x3320ec['markMultiRangeBlockFormat'](_0x392f28,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x548fa3['commands']['get']('mergeTableCells')['on']('execute',(_0x45e82a,_0x5cb562)=>{_0x548fa3['commands']['get']('trackChanges')['value']&&(_0x5cb562['length']>0x0&&_0x5cb562[_0x5cb562['length']-0x1]&&_0x5cb562[_0x5cb562['length']-0x1]['forceDefaultExecution']||_0x3320ec['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x45e82a['stop']());},{'priority':'highest'});for(const _0x29eb64 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x23fe58=_0x548fa3['commands']['get'](_0x29eb64);_0x3320ec['enableCommand'](_0x29eb64,()=>{const _0x108e05=_0x548fa3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5e3e16=>_0x5e3e16['is']('element','tableCell')),_0x2b8cb8=_0x23fe58['value'];_0x548fa3['model']['change'](()=>{_0x3320ec['markMultiRangeBlockFormat']([_0x108e05,_0x2b8cb8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x13c3f2 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3f3e80=_0x548fa3['commands']['get'](_0x13c3f2);_0x3320ec['enableCommand'](_0x13c3f2,()=>{const _0xb9ba00=_0x43cffb['getSelectionAffectedTableCells'](_0x548fa3['model']['document']['selection'])[0x0],_0x1aa5b7=_0xb9ba00['findAncestor']('table'),{column:_0x365c83,row:_0x2bcdbb}=_0x43cffb['getCellLocation'](_0xb9ba00);let _0x2cd545=[];if('horizontally'==_0x3f3e80['direction']){const _0x319442=_0x43cffb['createTableWalker'](_0x1aa5b7,{'startRow':_0x2bcdbb,'endRow':_0x2bcdbb,'includeAllSlots':!0x0});_0x2cd545=Array['from'](_0x319442)['map'](_0x1a1be0=>_0x1a1be0['cell']);}else{const _0x26cffa=_0x43cffb['createTableWalker'](_0x1aa5b7,{'column':_0x365c83,'includeAllSlots':!0x0});_0x2cd545=Array['from'](_0x26cffa)['map'](_0x312c7e=>_0x312c7e['cell']);}_0x548fa3['model']['change'](_0x323bba=>{_0x3320ec['markBlockFormat'](_0x323bba['createRangeOn'](_0xb9ba00),{'commandName':_0x13c3f2,'commandParams':[]},_0x2cd545,_0x13c3f2);});});}_0x3320ec['descriptionFactory']['registerDescriptionCallback'](_0x1d14b2=>{if('formatBlock'!=_0x1d14b2['type']&&'formatInline'!=_0x1d14b2['type'])return;const {data:_0x5456ef}=_0x1d14b2;return _0x5456ef&&'mergeTableCells'==_0x5456ef['commandName']?{'type':'format','content':o(_0x1df8ca,'*Merge\x20cells*')}:void 0x0;}),_0x3320ec['descriptionFactory']['registerDescriptionCallback'](_0x38d970=>{if('formatBlock'!=_0x38d970['type']&&'formatInline'!=_0x38d970['type'])return;const {data:_0xb3b06d}=_0x38d970;return _0xb3b06d?'splitTableCellVertically'==_0xb3b06d['commandName']?{'type':'format','content':o(_0x1df8ca,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xb3b06d['commandName']?{'type':'format','content':o(_0x1df8ca,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x535bd2=_0x3c317e['_acceptFormatSuggestionCallbackFactory']();for(const _0x3cb66f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3320ec['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3cb66f,'accept',_0x535bd2);for(const _0x4ce1aa of['splitTableCellVertically','splitTableCellHorizontally'])_0x3320ec['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4ce1aa,'accept',_0x535bd2);_0x3320ec['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2ce3ba=>{_0x548fa3['model']['change'](_0x501912=>{const _0x558f58=Array['from'](_0x44b826['getRanges']())['map'](_0x1a36d0=>_0x948f0b['fromRange'](_0x1a36d0));_0x501912['setSelection'](_0x2ce3ba),_0x548fa3['commands']['get']('mergeTableCells')['refresh'](),_0x548fa3['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x38b18c=_0x558f58['filter'](_0x50ea1b=>'$graveyard'!=_0x50ea1b['root']['rootName']);_0x38b18c['length']>0x0&&_0x501912['setSelection'](_0x38b18c);for(const _0x3397ea of _0x558f58)_0x3397ea['detach']();});});for(const _0x595a30 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5cc816=_0x548fa3['commands']['get'](_0x595a30);_0x5cc816['on']('set:isEnabled',(_0x2763cf,_0x46c5e9,_0x1b7844)=>{if(_0x1b7844){const _0x176cd3=_0x548fa3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xaf0116=>_0xaf0116['is']('element','tableCell'));this['_areMergableCells'](_0x5cc816['value'],_0x176cd3)||(_0x2763cf['return']=!0x1,_0x2763cf['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4e25d7=this['editor']['commands']['get']('mergeTableCells'),_0x3ace13=this['editor']['plugins']['get']('TableUtils');if(!_0x4e25d7['isEnabled'])return!0x1;const _0x1e5415=_0x3ace13['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x33b1b8 of _0x1e5415)for(const _0x577e90 of _0x1e5415)if(_0x33b1b8!=_0x577e90&&!this['_areMergableCells'](_0x33b1b8,_0x577e90))return!0x1;return!0x0;}['_areMergableCells'](_0x514c29,_0x3229ab){const _0x563535=this['editor']['plugins']['get']('TrackChangesEditing'),_0x70067d=this['editor']['model']['createRangeOn'](_0x514c29),_0x2deb68=this['editor']['model']['createRangeOn'](_0x3229ab),_0x1cc677=new Set(),_0x43fd07=new Set();for(const _0x232aef of _0x563535['getSuggestions']())if(('insertion'==_0x232aef['type']||'deletion'==_0x232aef['type']||'mergeTableCells'==_0x232aef['subType'])&&_0x232aef['isInContent']){for(const _0x6e513e of _0x232aef['getRanges']())_0x6e513e['containsRange'](_0x70067d,!0x0)&&_0x1cc677['add'](_0x232aef['type']+':'+_0x232aef['author']['id']),_0x6e513e['containsRange'](_0x2deb68,!0x0)&&_0x43fd07['add'](_0x232aef['type']+':'+_0x232aef['author']['id']);}if(_0x1cc677['size']!=_0x43fd07['size'])return!0x1;for(const _0x24a844 of _0x1cc677)if(!_0x43fd07['has'](_0x24a844))return!0x1;return!0x0;}}class It extends _0x15c086{static get['requires'](){return[St];}['afterInit'](){const _0x5d452d=this['editor'];if(!_0x5d452d['plugins']['has']('TableEditing'))return;const _0x3df145=_0x5d452d['locale'],_0x38e59d=_0x5d452d['plugins']['get']('TrackChangesEditing');_0x38e59d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x38e59d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x38e59d['registerBlockAttribute']('headingRows'),_0x38e59d['registerBlockAttribute']('headingColumns'),_0x38e59d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3df145,'FORMAT_HEADER_ROW')),_0x38e59d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3df145,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x374207=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d7032=this['editor']['plugins']['get']('TableUtils'),_0x432518=this['editor']['plugins']['get'](St)['_acceptFormatSuggestionCallbackFactory']();function _0x4f02b6({showActiveMarker:_0x3e7212=!0x0,setDataAttribute:_0x4ef56b=!0x0}={}){return(_0xda2eb8,_0x48c6b1,_0x5935ad)=>{const {type:_0x2d19b9,id:_0x44cf0d}=_0x374207['_splitMarkerName'](_0x48c6b1['markerName']),_0x36feeb=_0x374207['getSuggestion'](_0x44cf0d),_0x3b1834=_0x36feeb['data'];if('formatBlock'!=_0x36feeb['type']||!_0x3b1834||'setTableColumnHeader'!=_0x3b1834['commandName'])return;if(_0x48c6b1['item'])return void _0xda2eb8['stop']();if(!_0x5935ad['consumable']['consume'](_0x48c6b1['markerRange'],_0xda2eb8['name']))return;const _0x5243e3=_0x48c6b1['markerRange']['start']['nodeAfter'],_0x2a9b31=_0x48c6b1['markerRange']['end']['nodeBefore'],_0x56e545=_0x5243e3['parent']['parent'],{column:_0x162031}=_0x4d7032['getCellLocation'](_0x5243e3),{column:_0x33d49a}=_0x4d7032['getCellLocation'](_0x2a9b31);for(let _0x5d293d=_0x162031;_0x5d293d<=_0x33d49a;_0x5d293d++){const _0x467287=_0x4d7032['createTableWalker'](_0x56e545,{'column':_0x5d293d,'includeAllSlots':!0x1});for(const _0x2504ef of _0x467287){const _0x27246e=_0x2504ef['cell'],_0x42a63f=_0x5935ad['mapper']['toViewElement'](_0x27246e);_0x5935ad['writer']['addClass']('ck-suggestion-marker-'+_0x2d19b9,_0x42a63f),_0x4ef56b&&_0x5935ad['writer']['setAttribute']('data-suggestion',_0x44cf0d,_0x42a63f),_0x5935ad['mapper']['bindElementToMarker'](_0x42a63f,_0x48c6b1['markerName']),_0x3e7212&&(_0x374207['activeMarkers']['includes'](_0x48c6b1['markerName'])?_0x5935ad['writer']['addClass']('ck-suggestion-marker--active',_0x42a63f):_0x5935ad['writer']['removeClass']('ck-suggestion-marker--active',_0x42a63f));}}};}_0x374207['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x432518),_0x374207['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x432518),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4f02b6(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x510127,_0x412712,_0x366a63)=>{_0x366a63['options']['showSuggestionHighlights']&&_0x4f02b6({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x510127,_0x412712,_0x366a63);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x44a806,_0x79d738,_0x54c027)=>{const {type:_0x3c5cf9,id:_0x182157}=_0x374207['_splitMarkerName'](_0x79d738['markerName']),_0x2f7541=_0x374207['getSuggestion'](_0x182157),_0x20cc40=_0x2f7541['data'];if('formatBlock'!=_0x2f7541['type']||!_0x20cc40||'setTableColumnHeader'!=_0x20cc40['commandName'])return;const _0x22b253=_0x54c027['mapper']['markerNameToElements'](_0x79d738['markerName']);if(_0x22b253){for(const _0x2e1cad of _0x22b253)_0x54c027['writer']['removeClass']('ck-suggestion-marker-'+_0x3c5cf9,_0x2e1cad),_0x54c027['writer']['removeClass']('ck-suggestion-marker--active',_0x2e1cad),_0x54c027['writer']['removeAttribute']('data-suggestion',_0x2e1cad),_0x54c027['mapper']['unbindElementFromMarkerName'](_0x2e1cad,_0x79d738['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a5287=this['editor'],_0x4dc34e=_0x1a5287['locale'];function _0x1153c3(_0x5e8808){return{'type':'format','content':o(_0x4dc34e,'*Format:*\x20%0',_0x5e8808)};}_0x1a5287['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a7344=>{if('formatBlock'!=_0x4a7344['type'])return;const {data:_0x4c51c2}=_0x4a7344;if(_0x4c51c2){if('setTableRowHeader'==_0x4c51c2['commandName']){const _0x59c008=_0x4c51c2['commandParams'][0x0]['forceValue'];return _0x1153c3(o(_0x4dc34e,_0x59c008?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4c51c2['commandName']){const _0x20de9b=_0x4c51c2['commandParams'][0x0]['forceValue'];return _0x1153c3(o(_0x4dc34e,_0x20de9b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x3ac9a9=>[_0x3ac9a9,null]));class vt extends _0x15c086{static get['requires'](){return[St];}['afterInit'](){const _0x1776ab=this['editor'];if(!_0x1776ab['plugins']['has']('TableClipboard'))return;const _0xfa8e11=_0x1776ab['plugins']['get']('TrackChangesEditing'),_0x4cc8e1=_0x1776ab['plugins']['get']('TableUtils'),_0xa9a577=_0x1776ab['plugins']['get'](St),_0x427397=_0x1776ab['plugins']['get']('TableClipboard');_0xa9a577['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1776ab['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1776ab['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2d3b22=null;_0x1776ab['model']['on']('insertContent',(_0x26017a,_0x324ab7)=>{const [_0x332400,_0x3f50d4]=_0x324ab7,_0x3b3838=_0x324ab7[_0x324ab7['length']-0x1];_0x3b3838&&_0x3b3838['forceDefaultExecution']||_0xfa8e11['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x46754e,_0x325484,_0x4ddbf5,_0xadde56,_0x442013){if(_0x325484&&!_0x325484['is']('documentSelection'))return!0x1;const _0x56e6d5=_0x442013['getTableIfOnlyTableInContent'](_0x46754e,_0x4ddbf5);if(!_0x56e6d5||!we(_0x56e6d5,void 0x0,_0xadde56))return!0x1;const _0x44d147=_0xadde56['getSelectionAffectedTableCells'](_0x4ddbf5['document']['selection']);if(!_0x44d147['length'])return!0x1;const _0x2d77b8=_0x44d147[0x0]['findAncestor']('table'),_0x283439=_0xadde56['getRowIndexes'](_0x44d147),_0x386884=_0xadde56['getColumnIndexes'](_0x44d147),_0x3f5905={'startRow':_0x283439['first'],'endRow':_0x283439['last'],'startColumn':_0x386884['first'],'endColumn':_0x386884['last']};return 0x1==_0x44d147['length']&&(_0x3f5905['endRow']+=_0xadde56['getRows'](_0x56e6d5)-0x1,_0x3f5905['endColumn']+=_0xadde56['getColumns'](_0x56e6d5)-0x1),we(_0x2d77b8,_0x3f5905,_0xadde56);}(_0x332400,_0x3f50d4,_0x1776ab['model'],_0x4cc8e1,_0x427397)&&(_0x26017a['stop'](),_0x2d3b22={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1776ab['model']['change'](()=>{_0x1776ab['model']['insertContent'](_0x324ab7[0x0],_0x324ab7[0x1],_0x324ab7[0x2],{'forceDefaultExecution':!0x0});const _0x598f8f=_0x27f732(),{rowInsertionRanges:_0x29e069,columnInsertionRanges:_0x278bd7,insertionRanges:_0x49dc69,deletionRanges:_0x58811b,cells:_0xc21a9e}=_0x2d3b22;_0x29e069['length']&&_0xfa8e11['markMultiRangeInsertion'](_0x29e069,'tablePasteRow',{'tablePasteChainId':_0x598f8f}),_0x278bd7['length']&&_0xfa8e11['markMultiRangeInsertion'](_0x278bd7,'tablePasteColumn',{'tablePasteChainId':_0x598f8f}),_0x49dc69['length']&&(_0xfa8e11['markMultiRangeInsertion'](_0x49dc69,'tablePaste',{'tablePasteChainId':_0x598f8f,'skipNestingCheck':!0x0}),_0x49dc69['forEach'](_0x54a87a=>_0x54a87a['detach']?.())),_0x58811b['length']&&(_0xfa8e11['markMultiRangeDeletion'](_0x58811b,'tablePaste',{'tablePasteChainId':_0x598f8f,'skipNestingCheck':!0x0}),_0x58811b['forEach'](_0x2ad455=>_0x2ad455['detach']?.()));const _0x3b881c=_0xfa8e11['markMultiRangeBlockFormat'](_0xc21a9e['map'](({element:_0xc60b9c})=>_0xc60b9c),{'formatGroupId':_0x27f732()},[],'tablePasteCell',{'tablePasteChainId':_0x598f8f});if(_0x3b881c){const _0x2deda0=_0x3b881c['getMarkers'](),_0x19ec05=[];for(const {element:_0x39300b,attributes:_0x201370}of _0xc21a9e){if(!_0x201370)continue;const _0x33561c=_0x1776ab['model']['createRangeOn'](_0x39300b),_0x314883=_0x2deda0['find'](_0x367a3c=>_0x367a3c['getRange']()['isEqual'](_0x33561c));_0x314883&&_0x19ec05['push']([_0x314883['name'],_0x201370]);}_0x19ec05['length']&&_0x3b881c['setAttribute']('markerAttributes',Object['fromEntries'](_0x19ec05));}_0x2d3b22=null;}));},{'priority':_0x200434['high']+0xa}),_0x1776ab['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x25aedb,_0x2a5ff1)=>{const [_0x3f4066,_0x302cd6,,_0x5b0500]=_0x2a5ff1;if(!_0x2d3b22)return;_0x25aedb['stop']();const _0x2901be=_0x3f4066['cell'],_0x3b34f4=_0x302cd6,_0x1d803d=Pe(_0x2901be),_0x3e069f=Pe(_0x3b34f4);_0x25aedb['return']=_0x2901be;let _0x474801=null,_0x3712d5=null;if(_0x3e069f||_0x1d803d){if(_0x1d803d&&!_0x3e069f){_0x5b0500['remove'](_0x2901be['getChild'](0x0));for(const _0x5a632a of Array['from'](_0x3b34f4['getChildren']()))_0x5b0500['insert'](_0x5a632a,_0x2901be,'end');const _0x462c8b=_0x2d3b22['rowInsertionIndexes']['includes'](_0x3f4066['row']),_0x416b23=_0x2d3b22['columnInsertionIndexes']['includes'](_0x3f4066['column']);_0x462c8b||_0x416b23||(_0x474801=_0x948f0b['fromRange'](_0x5b0500['createRangeIn'](_0x2901be)));}else _0x3e069f&&!_0x1d803d&&(_0x3712d5=_0x5b0500['createRangeIn'](_0x2901be));}else{const _0x2a6de6=_0x5b0500['createElement']('tableCellSuggestion'),_0x130907=_0x5b0500['createElement']('tableCellSuggestion');_0x5b0500['wrap'](_0x5b0500['createRangeIn'](_0x2901be),_0x130907),_0x5b0500['insert'](_0x2a6de6,_0x2901be,0x0);for(const _0x4be5f0 of Array['from'](_0x3b34f4['getChildren']()))_0x5b0500['insert'](_0x4be5f0,_0x2a6de6,'end');_0x474801=_0x948f0b['fromRange'](_0x5b0500['createRangeOn'](_0x2a6de6)),_0x3712d5=_0x948f0b['fromRange'](_0x5b0500['createRangeOn'](_0x130907));}const _0x11aad6=Array['from'](_0x3b34f4['getAttributes']())['filter'](([_0x41c85a])=>ge['includes'](_0x41c85a));_0x2d3b22['cells']['push']({'element':_0x2901be,'attributes':_0x11aad6['length']?Object['fromEntries'](_0x11aad6):null}),_0x474801&&_0x2d3b22['insertionRanges']['push'](_0x474801),_0x3712d5&&_0x2d3b22['deletionRanges']['push'](_0x3712d5);},{'priority':'high'}),_0x4cc8e1['on']('insertColumns',(_0x1df3ab,_0x35205f)=>{const [_0x56e010,_0x31de98={}]=_0x35205f;if(!_0x2d3b22)return;const _0x5b81f8=_0x31de98['at']||0x0,_0x35a308=_0x31de98['columns']||0x1;_0x2d3b22['columnInsertionIndexes']=new Array(_0x35a308)['fill'](_0x5b81f8)['map']((_0x4a3e61,_0x2bc784)=>_0x4a3e61+_0x2bc784);for(const {cell:_0x490768}of _0x4cc8e1['createTableWalker'](_0x56e010,{'startColumn':_0x5b81f8,'endColumn':_0x5b81f8+_0x35a308-0x1}))_0x2d3b22['columnInsertionRanges']['push'](_0x1776ab['model']['createRangeOn'](_0x490768));},{'priority':'low'}),_0x4cc8e1['on']('insertRows',(_0x1e0eb8,_0xf87303)=>{const [_0x5181e6,_0x34b793={}]=_0xf87303;if(!_0x2d3b22)return;const _0x594414=_0x34b793['at']||0x0,_0x17f725=_0x34b793['rows']||0x1;_0x2d3b22['rowInsertionIndexes']=new Array(_0x17f725)['fill'](_0x594414)['map']((_0xd4439f,_0x483542)=>_0xd4439f+_0x483542);for(const {cell:_0x4a031e}of _0x4cc8e1['createTableWalker'](_0x5181e6,{'startRow':_0x594414,'endRow':_0x594414+_0x17f725-0x1}))_0x2d3b22['rowInsertionRanges']['push'](_0x1776ab['model']['createRangeOn'](_0x4a031e));},{'priority':'low'}),_0xfa8e11['descriptionFactory']['registerDescriptionCallback'](_0x5e6d41=>{if(_0x5e6d41['subType']&&_0x5e6d41['subType']['startsWith']('tablePaste'))return _0x5e6d41['previous']?{}:{'type':'insertion','content':o(_0x1776ab['locale'],'*Replace\x20table\x20cells*')};});const _0x5e4d25=()=>!0x1;for(const _0x19a1ac of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xfa8e11['_suggestionFactory']['registerCustomCallback']('insertion',_0x19a1ac,'join',_0x5e4d25),_0xfa8e11['_suggestionFactory']['registerCustomCallback']('deletion',_0x19a1ac,'join',_0x5e4d25),_0xfa8e11['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x19a1ac,'join',_0x5e4d25);_0xfa8e11['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5e4d25),_0xfa8e11['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x7d3859,_0x446104,_0x1402c0)=>{const _0x21ad4b=_0x7d3859['map'](_0x506f51=>_0x506f51['getContainedElement']())['filter'](_0x4ee19a=>_0x4ee19a),_0x3c380e=new Map(_0x21ad4b['map'](_0x415a48=>[_0x415a48,null]));if(_0x2d3b22){for(const {element:_0x32b1ed,attributes:_0x5a2fd}of _0x2d3b22['cells'])_0x5a2fd&&_0x3c380e['set'](_0x32b1ed,_0x5a2fd);}else{if(_0x1402c0&&_0x1402c0['markerAttributes'])for(const [_0x2bd4bc,_0x32e1f3]of Object['entries'](_0x1402c0['markerAttributes'])){const _0x1184a9=_0x1776ab['model']['markers']['get'](_0x2bd4bc),_0x3d1aec=_0x1184a9?_0x1184a9['getRange']()['getContainedElement']():null;_0x3d1aec&&_0x3c380e['set'](_0x3d1aec,_0x32e1f3);}}_0x1776ab['model']['change'](_0x1fcbe0=>{for(const [_0x131277,_0xa4d065]of _0x3c380e)_0x1fcbe0['setAttributes']({...Ce,..._0xa4d065},_0x131277);});});const _0x48695e=(_0x122672,_0x369f04)=>{_0xfa8e11['_suggestionFactory']['registerCustomCallback'](_0x122672,'tablePaste',_0x369f04,(_0x5996f1,_0x152919,_0x2ee717)=>{_0x1776ab['model']['change'](_0x1e6e77=>{const _0x58e571=[];for(const _0x2ef86c of _0x5996f1){const _0x410c22=_0x2ef86c['start']['nodeAfter'];_0x410c22['is']('element','tableCellSuggestion')&&_0x58e571['push'](_0x410c22);}_0xfa8e11['_suggestionFactory']['getSuggestionCallback'](_0x122672,null,_0x369f04)(_0x5996f1,_0x152919,_0x2ee717);for(const _0x5c7101 of _0x58e571)'$graveyard'!=_0x5c7101['root']['rootName']&&_0x1e6e77['unwrap'](_0x5c7101);});});};_0x48695e('insertion','accept'),_0x48695e('insertion','discard'),_0x48695e('deletion','accept'),_0x48695e('deletion','discard'),_0xfa8e11['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x7f2e84=>{const _0x2bccf8=_0x7f2e84['map'](_0x491d3e=>_0x491d3e['getContainedElement']()),_0x3e787e=_0x2bccf8[0x0]['findAncestor']('table'),{minRow:_0x4664b4,maxRow:_0x41cce0}=_0xa9a577['_getCoordsForCells'](_0x2bccf8);_0x4cc8e1['removeRows'](_0x3e787e,{'at':_0x4664b4,'rows':_0x41cce0-_0x4664b4+0x1});}),_0xfa8e11['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x58fd1e=>{const _0x59881c=_0x58fd1e['map'](_0x35849f=>_0x35849f['getContainedElement']()),_0x4dbddf=_0x59881c[0x0]['findAncestor']('table'),{minColumn:_0x574981,maxColumn:_0x5dcc59}=_0xa9a577['_getCoordsForCells'](_0x59881c);_0x4cc8e1['removeColumns'](_0x4dbddf,{'at':_0x574981,'columns':_0x5dcc59-_0x574981+0x1});});const _0x41c85f=(_0x5ceac7,_0x2f97e8)=>{if(!_0x2f97e8['subType']||!_0x2f97e8['subType']['startsWith']('tablePaste'))return;const _0x183e96=_0x2f97e8['attributes']['tablePasteChainId'],_0x3f2152=_0xfa8e11['getSuggestions']()['filter'](_0x370436=>_0x370436['isInContent']&&_0x370436['attributes']&&_0x370436['attributes']['tablePasteChainId']==_0x183e96);_0x3f2152['length']&&_0x2f97e8['getAllAdjacentSuggestions']()['length']!=_0x3f2152['length']&&_0x3f2152['reduce']((_0x5afb41,_0x246ce2)=>(_0x5afb41['next']=_0x246ce2,_0x246ce2['previous']=_0x5afb41,_0x246ce2));};function _0x114c9a(_0x129573,_0x47934b=!0x0){const {id:_0x3f675c}=_0xfa8e11['_splitMarkerName'](_0x129573['markerName']),_0x547861=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3868c6=_0xfa8e11['activeMarkers']['includes'](_0x129573['markerName']);return _0x3868c6&&_0x547861['push']('ck-suggestion-marker--active'),{'classes':_0x547861,'attributes':{'data-suggestion':_0x3f675c},'priority':_0x3868c6&&_0x47934b?0xbc2:0xbb8};}_0xfa8e11['on']('suggestionLoaded',_0x41c85f,{'priority':'high'}),_0xfa8e11['on']('suggestionUnloaded',_0x41c85f,{'priority':'high'}),_0x1776ab['model']['document']['registerPostFixer'](()=>{let _0x20808a=!0x1;const _0x49b78b=Array['from'](_0x1776ab['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x289c38,data:_0x7ed752}of _0x49b78b){const {group:_0x4f44ea,type:_0x195b5d,id:_0x31b6f7}=_0xfa8e11['_splitMarkerName'](_0x289c38);if('suggestion'!=_0x4f44ea||'deletion'!=_0x195b5d||_0x7ed752['oldRange'])continue;if(!_0xfa8e11['hasSuggestion'](_0x31b6f7))continue;const _0x51bb1e=_0xfa8e11['getSuggestion'](_0x31b6f7)['getRanges'](),_0x16f5d5=_0x1776ab['plugins']['get']('Users')['me'];for(const _0x316e17 of _0xfa8e11['getSuggestions']()){if(!_0x316e17['isInContent']||_0x316e17['author']!=_0x16f5d5)continue;if('formatBlock'!=_0x316e17['type']||'tablePasteCell'!=_0x316e17['subType'])continue;if(_0x316e17['getRanges']()['every'](_0x44134a=>_0x51bb1e['some'](_0x5a1816=>_0x5a1816['containsRange'](_0x44134a,!0x0)))){for(const _0x318055 of _0x316e17['getAllAdjacentSuggestions']())_0x318055['isInContent']&&(_0x318055['discard'](),_0x20808a=!0x0);}}}return _0x20808a;}),_0x1776ab['model']['document']['registerPostFixer'](_0x5dc406=>{const _0x35bb71=_0x1776ab['commands']['get']('redo');if(!_0x35bb71||!_0x35bb71['_createdBatches']['has'](_0x5dc406['batch']))return!0x1;let _0x57d6d4=!0x1;const _0x2a8cce=_0x1776ab['plugins']['get']('Users')['me'],_0x4e7bde=_0x1776ab['model']['document']['differ']['getChanges'](),_0x19525a=Array['from'](_0x1776ab['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3d11e9,data:_0x15a42a})=>{const {group:_0x1fad4b,subType:_0x52fe55,authorId:_0x24f8e6}=_0xfa8e11['_splitMarkerName'](_0x3d11e9);return'suggestion'==_0x1fad4b&&'tablePaste'==_0x52fe55&&_0x24f8e6==_0x2a8cce['id']&&!_0x15a42a['oldRange'];});for(const _0x4a81f5 of _0x4e7bde){if('insert'!=_0x4a81f5['type']||'tableCellSuggestion'!=_0x4a81f5['name']||0x1!=_0x4a81f5['length'])continue;const _0x305f19=_0x5dc406['createRange'](_0x4a81f5['position'],_0x4a81f5['position']['getShiftedBy'](0x1));if(!_0x19525a['find'](({data:_0x56853b})=>_0x56853b['newRange']['isEqual'](_0x305f19))){for(const {name:_0x3d2466,data:_0x54af6c}of _0x19525a)if(_0x305f19['containsRange'](_0x54af6c['newRange'])){_0x5dc406['updateMarker'](_0x3d2466,{'range':_0x305f19}),_0x57d6d4=!0x0;break;}}}return _0x57d6d4;}),_0x1776ab['model']['document']['registerPostFixer'](_0x4ee4d0=>{let _0x47d0b5=!0x1;const _0x25f779=_0x1776ab['plugins']['get']('Users')['me'],_0x8567c9=_0xfa8e11['getSuggestions']()['filter'](_0x5a64ce=>_0x5a64ce['isInContent']&&_0x5a64ce['author']==_0x25f779),_0x3a73a2=new Set(),_0x1dcd0f=new Set();for(const _0x1019c7 of _0x8567c9)if('tablePaste'==_0x1019c7['subType'])for(const _0xb8bbed of _0x1019c7['getMarkers']()){const _0x511757=_0xb8bbed['getRange']()['getContainedElement']();if(_0x511757){if(_0x511757['is']('element','tableCellSuggestion')&&Pe(_0x511757)){_0x1019c7['removeMarker'](_0xb8bbed['name']),_0x3a73a2['add'](_0x511757),_0x47d0b5=!0x0;const _0x342c02=_0x511757['nextSibling'],_0x4f7ce4=_0x511757['previousSibling'],_0x102bb3=_0x342c02&&_0x342c02['is']('element','tableCellSuggestion'),_0x25fcef=_0x4f7ce4&&_0x4f7ce4['is']('element','tableCellSuggestion');_0x102bb3&&!_0x3a73a2['has'](_0x342c02)&&_0x1dcd0f['add'](_0x342c02),_0x25fcef&&!_0x3a73a2['has'](_0x4f7ce4)&&_0x1dcd0f['add'](_0x4f7ce4);}else _0x511757['is']('element','paragraph')&&_0x511757['isEmpty']&&(_0x1019c7['removeMarker'](_0xb8bbed['name']),_0x47d0b5=!0x0);}}else{if('tablePasteCell'==_0x1019c7['subType']){if(!_0x1019c7['attributes']||!_0x1019c7['attributes']['tablePasteChainId'])continue;const _0x4ac58e=_0x1019c7['attributes']['markerAttributes'];if(_0x4ac58e&&Object['keys'](_0x4ac58e)['length'])continue;const _0x6020d5=_0x1019c7['attributes']['tablePasteChainId'];let _0x37c6a1=!0x0,_0x2ad168=!0x0;for(const _0xe50f3d of _0x8567c9)if(_0xe50f3d['subType']&&_0xe50f3d['subType']['startsWith']('tablePaste')){if(!_0xe50f3d['attributes']['tablePasteChainId']){_0x2ad168=!0x1;break;}if(_0xe50f3d['id']!=_0x1019c7['id']&&_0xe50f3d['attributes']['tablePasteChainId']==_0x6020d5){_0x37c6a1=!0x1;break;}}_0x2ad168&&_0x37c6a1&&(_0x1019c7['removeMarkers'](),_0x47d0b5=!0x0);}}for(const _0x22ff78 of _0x3a73a2)_0x4ee4d0['remove'](_0x22ff78);for(const _0x256fe4 of _0x1dcd0f)_0x4ee4d0['unwrap'](_0x256fe4);return _0x47d0b5;}),_0x1776ab['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3d8e67,_0x23d222)=>_0x114c9a(_0x3d8e67),'converterPriority':'high'}),_0x1776ab['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x38bfd1,_0xd9214d)=>_0xd9214d['options']['showSuggestionHighlights']?_0x114c9a(_0x38bfd1,!0x1):null,'converterPriority':'high'});const _0x576392=_0x1776ab['editing']['view'];this['listenTo'](_0x576392['document'],'clipboardOutput',(_0x225d67,_0x16da3d)=>{const _0x3c4a2c=[];for(const _0x14585b of _0x576392['createRangeIn'](_0x16da3d['content'])['getItems']())_0x14585b['is']('element','suggestion-td')&&_0x3c4a2c['push'](_0x14585b);_0x576392['change'](_0x187b96=>{for(const _0x987471 of _0x3c4a2c)_0x187b96['move'](_0x187b96['createRangeIn'](_0x987471),_0x187b96['createPositionBefore'](_0x987471)),_0x187b96['remove'](_0x987471);});});}}function Pe(_0x2711bf){if(_0x2711bf['isEmpty'])return!0x0;const _0x36973d=_0x2711bf['getChild'](0x0);return _0x36973d['is']('element','paragraph')&&_0x36973d['isEmpty'];}function we(_0x3c19c5,_0x541a0f={},_0x5910bc){for(const {isAnchor:_0x238931,cellHeight:_0x5944b8,cellWidth:_0x1d1fff}of _0x5910bc['createTableWalker'](_0x3c19c5,{'includeAllSlots':!0x0,..._0x541a0f}))if(!_0x238931||0x1!=_0x5944b8||0x1!=_0x1d1fff)return!0x1;return!0x0;}class Ct extends _0x15c086{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x8cf208=this['editor']['plugins']['get']('TrackChangesEditing');_0x8cf208['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x8cf208['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x8cf208['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x8cf208['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x8cf208['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x8cf208['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x10c67a,_0x53d45c){const _0x1520dd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b8fa1=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x114e0f=_0x53d45c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3f916f=_0x3b8fa1['getColumnGroupElement'](_0x114e0f);let _0x16b42e=_0x3f916f?_0x3b8fa1['getTableColumnsWidths'](_0x3f916f):null,_0x3bad62=_0x114e0f['getAttribute']('tableWidth')||null;const _0x7a0fb9=_0x53d45c['tableWidth']||_0x3bad62,_0x10d53b=_0x53d45c['columnWidths']||_0x16b42e,_0x3a8d8f=this['editor']['plugins']['get']('Users')['me'];for(const _0x119a9f of _0x1520dd['getSuggestions']()){const _0x16dcef=_0x119a9f['getContainedElement']();if('resizeTable'===_0x119a9f['subType']&&_0x16dcef===_0x114e0f){_0x119a9f['author']!==_0x3a8d8f&&_0x119a9f['discard']();const _0x171b86=_0x119a9f['data']['commandParams'];_0x3bad62=_0x171b86[0x0]['tableWidth'],_0x16b42e=_0x171b86[0x0]['columnWidths'];break;}}_0x10c67a({'table':_0x114e0f,'tableWidth':_0x7a0fb9,'columnWidths':_0x10d53b}),_0x1520dd['markBlockFormat'](_0x114e0f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3bad62,'columnWidths':_0x16b42e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x14a7cd){if('formatBlock'!=_0x14a7cd['type']&&'formatInline'!=_0x14a7cd['type'])return;const {data:_0x228bb1}=_0x14a7cd;if(_0x228bb1&&'resizeTable'===_0x228bb1['formatGroupId']){const _0xc030d9='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xc030d9)};}}}class _t extends _0x15c086{['afterInit'](){const _0x41be26=this['editor'];_0x41be26['plugins']['has']('Template')&&_0x41be26['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Dt extends _0x15c086{['afterInit'](){const _0x345313=this['editor'];if(!_0x345313['commands']['get']('insertTableOfContents'))return;_0x345313['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x59afbc=_0x345313['plugins']['get']('TrackChangesEditing'),_0x4fc344=_0x345313['locale'];_0x59afbc['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1adcd3=>o(_0x4fc344,'ELEMENT_TABLE_OF_CONTENTS',_0x1adcd3));}}class Nt extends _0x15c086{['afterInit'](){const _0x5733fd=this['editor'];if(!_0x5733fd['plugins']['has']('Title'))return;const _0x629e3=_0x5733fd['plugins']['get']('TrackChangesEditing');_0x629e3['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5733fd['locale'],'ELEMENT_TITLE')),_0x5733fd['model']['document']['registerPostFixer'](_0x2b0add=>{let _0x5414ed=!0x1;const _0x21d969=Array['from'](_0x5733fd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x15def7,data:_0x22775e}of _0x21d969){const {group:_0x119fb8}=_0x629e3['_splitMarkerName'](_0x15def7);if('suggestion'!==_0x119fb8||!_0x22775e['newRange'])continue;const _0x87296=_0x22775e['newRange'],_0x3f2708=_0x87296['end']['nodeBefore'];if(!_0x3f2708||!_0x3f2708['is']('element','title-content'))continue;if(!_0x87296['start']['isTouching'](_0x87296['end']))continue;const _0xa3a815=_0x5733fd['model']['schema']['getNearestSelectionRange'](_0x87296['end'],'forward');if(_0xa3a815&&_0xa3a815['isCollapsed']){const _0x2f29da=_0x2b0add['createRange'](_0x87296['start'],_0xa3a815['start']);_0x2f29da['isEqual'](_0x87296)||(_0x2b0add['updateMarker'](_0x15def7,{'range':_0x2f29da}),_0x5414ed=!0x0);}_0x5414ed||(_0x2b0add['removeMarker'](_0x15def7),_0x5414ed=!0x0);}return _0x5414ed;});}}class Mt extends _0x15c086{['afterInit'](){const _0x1a0e28=this['editor'],_0x1f6b3d=_0x1a0e28['plugins']['get']('TrackChangesEditing');_0x1a0e28['plugins']['has']('UndoEditing')&&(_0x1f6b3d['enableCommand']('undo'),_0x1f6b3d['enableCommand']('redo'));}}class $t extends _0x15c086{static get['requires'](){return[St];}['afterInit'](){const _0x513057=this['editor'];if(!_0x513057['plugins']['has']('TableCaptionEditing'))return;_0x513057['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Bt extends _0x15c086{['tableProperties'];['tableCellProperties'];constructor(_0x1749ac){super(_0x1749ac),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 _0x51db46=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x477e0d of this['tableProperties'])_0x51db46['enableCommand'](_0x477e0d,(_0x5639c2,_0x2526d2)=>{const _0x591f05=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x477e0d,[_0x591f05],this['tableProperties'],'tableProperties',_0x5639c2,_0x2526d2);});_0x51db46['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x51db46['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x51db46['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4c0e4a,_0x390c67)=>this['handleDiscardAction'](this['tableProperties'],_0x4c0e4a,_0x390c67)),_0x51db46['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x12f8ea of this['tableCellProperties'])_0x51db46['enableCommand'](_0x12f8ea,(_0x433e1d,_0x337ced)=>{const _0x4d18b6=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x12f8ea,_0x4d18b6,this['tableCellProperties'],'tableCellProperties',_0x433e1d,_0x337ced);});_0x51db46['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x51db46['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x51db46['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2a76c3,_0x3b9d8f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2a76c3,_0x3b9d8f)),_0x51db46['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x51db46['descriptionFactory']['registerDescriptionCallback'](_0x1fe2ba=>this['handleSuggestionDescription'](_0x1fe2ba));}['_handlePropertyChange'](_0x4c1cd3,_0x5c8068,_0x2f6a94,_0x17c7d3,_0x794cdf,_0x7d7c5b){const _0x12eede=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x7d7c5b['batch'],()=>{for(const _0x103007 of _0x5c8068){if(this['_getSuggestion'](_0x103007,_0x17c7d3))_0x794cdf(_0x7d7c5b);else{const _0x2f61d0={};for(const _0x694e91 of _0x2f6a94){const _0x3c4a44=_0x103007['getAttribute'](_0x694e91);void 0x0!==_0x3c4a44&&(_0x2f61d0[_0x694e91]=_0x3c4a44);}_0x794cdf(_0x7d7c5b),_0x12eede['markBlockFormat'](_0x103007,{'commandParams':[_0x2f61d0]},[],_0x17c7d3);}}});}['handleDiscardAction'](_0x1df6be,_0x64904e,_0x4de6bd){const _0x4eeba5=_0x64904e[0x0]['start']['nodeAfter'],_0x301a4d=_0x4de6bd['commandParams'][0x0];this['editor']['model']['change'](_0x46aa1d=>{for(const _0x1e7e94 of _0x1df6be)void 0x0!==_0x301a4d[_0x1e7e94]?_0x46aa1d['setAttribute'](_0x1e7e94,_0x301a4d[_0x1e7e94],_0x4eeba5):_0x46aa1d['removeAttribute'](_0x1e7e94,_0x4eeba5);});}['handleSuggestionDescription'](_0x3467fc){if(_0x3467fc['data'])switch(_0x3467fc['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'](_0x363863,_0x4f9843){const _0x4e98eb=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x269803 of _0x4e98eb['getSuggestions']({'skipNotAttached':!0x0})){const _0x43ec6b=_0x269803['getContainedElement']();if(_0x269803['subType']===_0x4f9843&&_0x43ec6b===_0x363863)return _0x269803;}return null;}}const m='$elementName';class p extends _0x15c086{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x391bb8,_0x159dc3,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,mt,ct,z,pe,ft,gt,lt,dt,pt,kt,bt,wt,yt,jt,St,At,It,$t,vt,Ct,Dt,Bt,_t,Nt,Mt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x59bd3e){function _0x18f6da(_0x340367){return _0x340367['map'](_0x352fc4=>String['fromCharCode'](_0x352fc4))['join']('');}super(_0x59bd3e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x52d663,_0x1269f9,_0xe452d6,_0x43ce7c)=>{this['_model']['change'](()=>{for(const _0x5e9df7 of[..._0x43ce7c,..._0xe452d6])this['_model']['markers']['has'](_0x5e9df7)&&_0x59bd3e['editing']['reconvertMarker'](_0x5e9df7);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Rt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x59bd3e['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(),_0x59bd3e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x59bd3e['config']['get']('trackChanges.trackFormatChanges'),_0x59bd3e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x59bd3e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x59bd3e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x18f6da([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x18f6da([0x34,0x30,0x34,0x38,0x31,0x34,0x34,0x30]);}['init'](){const _0x94d4b7=this['editor'],_0x1c39c4=(_0x1473a5,_0x575c49)=>{if('attribute'!=_0x1473a5)return'ck-suggestion-marker-'+_0x1473a5;const _0xb4a941=_0x575c49['split']('|')[0x0];return this['_isBlockAttribute'](_0xb4a941)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x94d4b7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x29339e=>{const {id:_0xd05fee,type:_0x1afb79,subType:_0x69d425}=this['_splitMarkerName'](_0x29339e['markerName']),_0x297372=['ck-suggestion-marker',_0x1c39c4(_0x1afb79,_0x69d425)];let _0xeec419=0xbb8;return this['activeMarkers']['includes'](_0x29339e['markerName'])&&(_0x297372['push']('ck-suggestion-marker--active'),_0xeec419=0xbc2),'deletion'==_0x1afb79&&(_0xeec419+=0x5),{'classes':_0x297372,'attributes':{'data-suggestion':_0xd05fee},'priority':_0xeec419};}}),_0x94d4b7['conversion']['for']('dataDowncast')['add'](_0x28c251=>{_0x28c251['on']('addMarker:suggestion',(_0x4d1596,_0x408a58,_0x403b4d)=>{if(!_0x403b4d['options']['showSuggestionHighlights'])return;const _0x29650e=_0x408a58['item'];if(!_0x29650e)return;const _0xed272e=_0x403b4d['mapper']['toViewElement'](_0x29650e);_0x94d4b7['model']['schema']['isObject'](_0x29650e)&&_0xed272e&&!_0xed272e['getCustomProperty']('widget')&&_0xed272e['is']('containerElement')&&_0xb67c89(_0xed272e,_0x403b4d['writer']);},{'priority':'high'});}),_0x94d4b7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x50a6a8,_0x537355)=>{if(!_0x537355['options']['showSuggestionHighlights'])return null;const {type:_0x2174d2,subType:_0x938e79}=this['_splitMarkerName'](_0x50a6a8['markerName']);return{'classes':['ck-suggestion-marker',_0x1c39c4(_0x2174d2,_0x938e79)],'priority':0xbb8};}});const _0xbd3ce9=({showActiveMarkers:_0x1f84f7=!0x0,isAttributeSuggestion:_0x5b25bc=!0x1}={})=>(_0x11b37b,_0x471bbf,_0x1a8df1)=>{if(!_0x471bbf['item'])return;const {id:_0x1de24c}=this['_splitMarkerName'](_0x471bbf['markerName']);if(_0x5b25bc){const _0x21bbc9=this['_suggestions']['get'](_0x1de24c),_0x3e35ce=this['_getAttributeKey'](_0x21bbc9);if(!this['_isBlockAttribute'](_0x3e35ce))return;}if(_0x471bbf['item']['is']('selection'))return void _0x1a8df1['consumable']['consume'](_0x471bbf['item'],_0x11b37b['name']);const _0xab104c=_0x1a8df1['mapper']['toViewElement'](_0x471bbf['item']);if(_0x471bbf['item']['is']('element')&&_0x94d4b7['model']['schema']['isBlock'](_0x471bbf['item'])&&!_0xab104c['getCustomProperty']('addHighlight')){_0x1a8df1['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xab104c),_0x1a8df1['writer']['setAttribute']('data-suggestion',_0x1de24c,_0xab104c),_0x1a8df1['mapper']['bindElementToMarker'](_0xab104c,_0x471bbf['markerName']),_0x1f84f7&&(this['activeMarkers']['includes'](_0x471bbf['markerName'])?_0x1a8df1['writer']['addClass']('ck-suggestion-marker--active',_0xab104c):_0x1a8df1['writer']['removeClass']('ck-suggestion-marker--active',_0xab104c));for(const _0x3b6291 of _0x94d4b7['model']['createRangeIn'](_0x471bbf['item'])['getItems']())_0x1a8df1['consumable']['consume'](_0x3b6291,_0x11b37b['name']);_0x1a8df1['consumable']['consume'](_0x471bbf['item'],_0x11b37b['name']);}};_0x94d4b7['conversion']['for']('dataDowncast')['add'](_0x363417=>{_0x363417['on']('addMarker:suggestion:formatBlock',(_0x2caff0,_0x3d2955,_0x5192c3)=>{_0x5192c3['options']['showSuggestionHighlights']&&_0xbd3ce9({'showActiveMarkers':!0x1})(_0x2caff0,_0x3d2955,_0x5192c3);},{'priority':'highest'});}),_0x94d4b7['conversion']['for']('dataDowncast')['add'](_0x2f1f27=>{_0x2f1f27['on']('addMarker:suggestion:attribute',(_0x91d1bc,_0x54566f,_0x400690)=>{_0x400690['options']['showSuggestionHighlights']&&_0xbd3ce9({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x91d1bc,_0x54566f,_0x400690);},{'priority':'highest'});}),_0x94d4b7['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3c6320,_0x22fca8)=>_0x22fca8['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3c6320['substr'](0xb)}}),_0x94d4b7['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3ad7b0,{writer:_0x1cbe22})=>{let _0x3bf26a='suggestion:'+_0x3ad7b0['getAttribute']('suggestion-type')+':'+_0x3ad7b0['getAttribute']('id');return _0x3ad7b0['getAttribute']('marker-count')&&(_0x3bf26a+=':'+_0x3ad7b0['getAttribute']('marker-count')),_0x1cbe22['createElement']('$marker',{'data-name':_0x3bf26a});}}),_0x94d4b7['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x94d4b7['conversion']['for']('editingDowncast')['add'](_0x369b8b=>{_0x369b8b['on']('addMarker:suggestion:formatBlock',_0xbd3ce9(),{'priority':'high'});}),_0x94d4b7['conversion']['for']('editingDowncast')['add'](_0x2bd565=>{_0x2bd565['on']('addMarker:suggestion:attribute',_0xbd3ce9({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x94d4b7['conversion']['for']('editingDowncast')['add'](_0x1dadd1=>{_0x1dadd1['on']('removeMarker:suggestion:formatBlock',(_0xb3da7a,_0x3d76e6,_0x575553)=>{const _0x53ff83=_0x575553['mapper']['markerNameToElements'](_0x3d76e6['markerName']);if(_0x53ff83){for(const _0x3c302f of _0x53ff83)_0x3c302f['getCustomProperty']('addHighlight')||(_0x575553['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3c302f),_0x575553['writer']['removeAttribute']('data-suggestion',_0x3c302f),_0x575553['mapper']['unbindElementFromMarkerName'](_0x3c302f,_0x3d76e6['markerName']));}},{'priority':'high'});}),_0x94d4b7['conversion']['for']('editingDowncast')['add'](_0x20187a=>{_0x20187a['on']('removeMarker:suggestion:attribute',(_0x2f5b97,_0x321135,_0x3cadaf)=>{const _0x55268e=_0x3cadaf['mapper']['markerNameToElements'](_0x321135['markerName']);if(!_0x55268e)return;const {id:_0x3ad5e2}=this['_splitMarkerName'](_0x321135['markerName']),_0xc0ddb8=this['_suggestions']['get'](_0x3ad5e2),_0x4d4ae8=this['_getAttributeKey'](_0xc0ddb8);if(this['_isBlockAttribute'](_0x4d4ae8)){for(const _0x348810 of _0x55268e)_0x348810['getCustomProperty']('addHighlight')||(_0x3cadaf['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x348810),_0x3cadaf['writer']['removeAttribute']('data-suggestion',_0x348810),_0x3cadaf['mapper']['unbindElementFromMarkerName'](_0x348810,_0x321135['markerName']));}},{'priority':'high'});}),_0x94d4b7['model']['document']['registerPostFixer'](_0x28fbad=>{let _0x12f5c7=!0x1;const _0xab03d6=Array['from'](_0x94d4b7['model']['document']['differ']['getChangedMarkers']()),_0x11663b=new Set();for(const {name:_0x286172,data:_0x4f41e0}of _0xab03d6){const {group:_0x5a2229,type:_0x298381,subType:_0x4e45f8,id:_0x20733c}=this['_splitMarkerName'](_0x286172);if('suggestion'!==_0x5a2229)continue;const _0x283feb=this['_suggestions']['get'](_0x20733c);if(null!=_0x4f41e0['newRange']){'formatInline'==_0x298381&&(_0x12f5c7=_0x12f5c7||Vt(_0x4f41e0['newRange'],_0x286172,_0x28fbad,_0x94d4b7['model']['schema']));const _0x52725a='attribute'==_0x298381&&this['_isBlockAttribute'](_0x4e45f8['split']('|')[0x0]);if(_0x4f41e0['newRange']['isCollapsed']||'$graveyard'==_0x4f41e0['newRange']['root']['rootName']||'formatBlock'==_0x298381&&!Ot(_0x4f41e0['newRange'])||_0x52725a&&!Ot(_0x4f41e0['newRange'])||'deletion'==_0x298381&&!(!Et(_0x58812b=_0x4f41e0['newRange'])&&!function(_0x8646a2){return _0x8646a2['start']['parent']==_0x8646a2['end']['nodeBefore']&&_0x8646a2['start']['isAtEnd'];}(_0x58812b)))_0x28fbad['removeMarker'](_0x286172),_0x12f5c7=!0x0;else{if(!_0x283feb||!_0x283feb['isInContent'])continue;_0x11663b['add'](_0x283feb);}}}var _0x58812b;return _0x11663b['size']>0x0&&(_0x12f5c7=!!this['_joinWithAdjacentSuggestions'](_0x11663b)||_0x12f5c7),_0x12f5c7;}),_0x94d4b7['model']['document']['registerPostFixer'](_0x56ff24=>{let _0xdc6fd4=!0x1;for(const _0x27a981 of _0x94d4b7['model']['document']['differ']['getChanges']())if('insert'==_0x27a981['type'])for(const _0x3a83c3 of this['_suggestions']['values']()){if(_0x3a83c3['isMultiRange']||!_0x3a83c3['isInContent'])continue;const _0x58e0ea='formatBlock'==_0x3a83c3['type'],_0xdf7c5e=this['_getAttributeKey'](_0x3a83c3),_0x3b1a72=_0xdf7c5e&&this['_isBlockAttribute'](_0xdf7c5e);if(!_0x58e0ea&&!_0x3b1a72)continue;const _0x33582d=_0x3a83c3['getFirstRange']();if(_0x33582d['start']['parent']!=_0x33582d['end']['parent']&&!_0x33582d['end']['isAtEnd']){const _0x450fbf=_0x94d4b7['model']['createPositionAt'](_0x33582d['start']['nodeAfter'],'end'),_0x1e1cf5=_0x94d4b7['model']['createRange'](_0x33582d['start'],_0x450fbf);_0x56ff24['updateMarker'](_0x3a83c3['getFirstMarker'](),{'range':_0x1e1cf5}),_0xdc6fd4=!0x0;}}return _0xdc6fd4;}),_0x94d4b7['model']['document']['registerPostFixer'](_0x424354=>this['_processAttributeChanges'](_0x424354)),_0x94d4b7['model']['document']['registerPostFixer'](_0x5e712a=>!_0x5e712a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5e712a)),_0x94d4b7['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x94d4b7['model']['document']['on']('change:data',(_0x177c37,_0x1ae8ca)=>{if(!_0x1ae8ca['isLocal']||_0x1ae8ca['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x465895=_0x94d4b7['model']['document']['differ']['getChanges']();if(0x0==_0x465895['length'])return;const _0xf0cc2e=[],_0x17f03d=_0x465895['filter'](_0x3ad60f=>'attribute'==_0x3ad60f['type']),_0x562041=_0x465895['filter'](_0x14034f=>'insert'==_0x14034f['type']&&'$text'!=_0x14034f['name']);for(const _0x3a3411 of _0x17f03d)this['_isRegisteredAttribute'](_0x3a3411['attributeKey'])&&_0xf0cc2e['push']({'key':_0x3a3411['attributeKey'],'newValue':_0x3a3411['attributeNewValue'],'oldValue':_0x3a3411['attributeOldValue'],'range':Gt(_0x3a3411['range'],_0x94d4b7['model'])});for(const _0x64ec64 of _0x562041){if('rename'!=_0x64ec64['action']&&'refresh'!=_0x64ec64['action'])continue;const _0x494948=Ft(_0x64ec64['position']['nodeAfter'],_0x94d4b7['model']),_0x27aa80=_0x64ec64['before'];'rename'==_0x64ec64['action']&&_0xf0cc2e['push']({'key':m,'newValue':_0x64ec64['name'],'oldValue':_0x27aa80['name'],'range':_0x494948});for(const [_0x7f0e18,_0xb19505]of _0x27aa80['attributes']){if(!this['_isRegisteredAttribute'](_0x7f0e18))continue;const _0x2fb2a2=_0x64ec64['attributes']['get'](_0x7f0e18);_0xb19505!==_0x2fb2a2&&_0xf0cc2e['push']({'key':_0x7f0e18,'newValue':_0x2fb2a2,'oldValue':_0xb19505,'range':_0x494948});}for(const [_0x5c4204,_0x44d9cc]of _0x64ec64['attributes'])this['_isRegisteredAttribute'](_0x5c4204)&&(_0x27aa80['attributes']['has'](_0x5c4204)||_0xf0cc2e['push']({'key':_0x5c4204,'newValue':_0x44d9cc,'oldValue':null,'range':_0x494948}));}0x0!=_0xf0cc2e['length']&&_0x94d4b7['model']['enqueueChange'](_0x1ae8ca,_0x2f81a3=>{const _0x3a90cc=_0x27f732();for(const {range:_0x52acb9,key:_0x56e6e4,oldValue:_0x558a06,newValue:_0x5ec010}of _0xf0cc2e)this['markAttributeChange'](_0x52acb9,_0x56e6e4,_0x558a06,_0x5ec010,{'groupId':_0x3a90cc});this['_reduceExistingSuggestions'](_0x2f81a3,_0xf0cc2e);});},{'priority':'lowest'}),_0x94d4b7['model']['markers']['on']('update:suggestion',(_0x1a0326,_0x38d6a4,_0x5d4bd5)=>{if(null==_0x5d4bd5){const {id:_0x3a0781}=this['_splitMarkerName'](_0x38d6a4['name']),_0x4c80cb=this['_suggestions']['get'](_0x3a0781);_0x4c80cb&&_0x4c80cb['addMarkerName'](_0x38d6a4['name']);}}),_0x94d4b7['model']['document']['on']('change:data',()=>{const _0x4302e5=Array['from'](_0x94d4b7['model']['document']['differ']['getChangedMarkers']())['filter'](_0x205d46=>'suggestion'===this['_splitMarkerName'](_0x205d46['name'])['group']);if(0x0===_0x4302e5['length'])return;_0x4302e5['sort']((_0x352556,_0x3c78b6)=>{const _0xcc33e1=_0x352556['data']['oldRange'],_0x10aa2d=_0x3c78b6['data']['oldRange'];return null===_0xcc33e1&&null===_0x10aa2d?0x0:null===_0xcc33e1&&null!==_0x10aa2d?-0x1:null!==_0xcc33e1&&null===_0x10aa2d?0x1:_0xcc33e1['start']['isBefore'](_0x10aa2d['start'])?-0x1:0x1;});const _0x52db19=new Set(),_0x5d6c39=new Set();for(const {name:_0x46f5b4,data:_0x360d5b}of _0x4302e5){const {id:_0x179bbb}=this['_splitMarkerName'](_0x46f5b4);if(null===_0x360d5b['oldRange']){const _0x5abb1e=this['_handleNewSuggestionMarker'](_0x46f5b4);_0x5d6c39['add'](_0x5abb1e);}else{const _0xa76e69=this['_suggestions']['get'](_0x179bbb);null!==_0x360d5b['newRange']||_0xa76e69['isInContent']?(_0x52db19['add'](_0xa76e69['head']),_0x5d6c39['add'](_0xa76e69)):this['_removeSuggestion'](_0xa76e69);}}_0x5d6c39['size']>0x0&&this['_refreshSuggestionsChain'](_0x5d6c39);for(const _0x3cd0b1 of _0x52db19)this['fire']('suggestionChanged',_0x3cd0b1);}),_0x94d4b7['model']['on']('applyOperation',(_0x4dd8d0,_0x4c4ab8)=>{const _0x18c5b5=_0x4c4ab8[0x0];if(!this['_suggestions']['size'])return;if(!_0x18c5b5['isDocumentOperation'])return;if(_0x18c5b5['batch']['isUndo']||!_0x18c5b5['batch']['isLocal'])return;let _0x2c8b17,_0x31e9f7;switch(_0x18c5b5['type']){case'insert':_0x2c8b17=_0x94d4b7['model']['createPositionAt'](_0x18c5b5['position']),_0x31e9f7=_0x2c8b17['getShiftedBy'](_0x18c5b5['howMany']);break;case'split':_0x2c8b17=_0x94d4b7['model']['createPositionAt'](_0x18c5b5['splitPosition']),_0x31e9f7=_0x94d4b7['model']['createPositionAt'](_0x18c5b5['moveTargetPosition']);break;case'move':_0x2c8b17=_0x94d4b7['model']['createPositionAt'](_0x18c5b5['targetPosition']),_0x31e9f7=_0x2c8b17['getShiftedBy'](_0x18c5b5['howMany']);break;default:return;}const _0x4a08a7=_0x94d4b7['model']['createRange'](_0x2c8b17,_0x31e9f7);_0x94d4b7['model']['change'](()=>{for(const {suggestion:_0x393c20,meta:_0x2365c3}of this['_findSuggestions'](_0x4a08a7)){if(_0x393c20['isMultiRange'])continue;if('formatInline'==_0x393c20['type'])continue;const _0x413634=this['_getAttributeKey'](_0x393c20);if(_0x413634&&this['_isBlockAttribute'](_0x413634)&&'split'!=_0x18c5b5['type'])continue;const _0x3a8f6d=_0x393c20['data']&&_0x393c20['data']['multipleBlocks'];('formatBlock'!=_0x393c20['type']||'split'==_0x18c5b5['type']&&!_0x3a8f6d)&&(_0x2365c3['containsRangeInObject']||'insertion'==_0x393c20['type']&&_0x2365c3['isOwn']||_0x393c20['getFirstRange']()['containsRange'](_0x4a08a7)&&this['_breakSuggestionMarker'](_0x393c20,_0x2c8b17,_0x31e9f7));}});},{'priority':'lowest'}),_0x94d4b7['model']['on']('deleteContent',(_0x4122e0,_0x2b75ae)=>{const _0x249c1a=_0x2b75ae[0x0],_0x2146a5=_0x2b75ae[0x1];if(_0x2146a5&&_0x2146a5['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x249c1a['isCollapsed'])return;const _0xf255b4=_0x94d4b7['model']['schema'],{start:_0x3758f6,end:_0xd6020f}=_0x249c1a['getFirstRange'](),_0x502a66=_0x3758f6['nodeAfter']&&_0xf255b4['isLimit'](_0x3758f6['nodeAfter'])?null:_0xf255b4['getNearestSelectionRange'](_0x3758f6,'forward'),_0x3bb1a8=_0xd6020f['nodeBefore']&&_0xf255b4['isLimit'](_0xd6020f['nodeBefore'])?null:_0xf255b4['getNearestSelectionRange'](_0xd6020f,'backward'),_0x34f4b9=_0x94d4b7['model']['createRange'](_0x502a66?_0x502a66['start']:_0x3758f6,_0x3bb1a8?_0x3bb1a8['end']:_0xd6020f);_0x94d4b7['model']['change'](_0xe2e622=>{this['markDeletion'](_0x34f4b9);const _0x23be18=_0x94d4b7['model']['schema']['getNearestSelectionRange'](_0x34f4b9['start']);_0x249c1a['is']('documentSelection')?_0xe2e622['setSelection'](_0x23be18):_0x249c1a['setTo'](_0x23be18);}),_0x4122e0['stop']();},{'priority':_0x200434['normal']+0xa}),_0x94d4b7['model']['on']('insertContent',(_0x46d5b2,_0x874e7b)=>{const _0x61a02b=_0x874e7b[_0x874e7b['length']-0x1];_0x61a02b&&_0x61a02b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x94d4b7['model']['change'](()=>{let _0xd51b01=_0x94d4b7['model']['insertContent'](_0x874e7b[0x0],_0x874e7b[0x1],_0x874e7b[0x2],{'forceDefaultExecution':!0x0});if(!_0xd51b01)return;_0x46d5b2['return']=_0xd51b01['clone']();const _0x2424a6=_0xd51b01['end']['nodeBefore'],_0x447729=_0x94d4b7['model']['schema'];_0x2424a6&&_0x447729['isBlock'](_0x2424a6)&&!_0x447729['isObject'](_0x2424a6)&&(_0xd51b01=_0x94d4b7['model']['createRange'](_0xd51b01['start'],_0x94d4b7['model']['createPositionAt'](_0x2424a6,'end'))),this['markInsertion'](_0xd51b01);}),_0x46d5b2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3a66cf=new $(_0x94d4b7,this['_suggestions']);_0x94d4b7['commands']['add']('acceptSuggestion',_0x3a66cf),this['enableCommand']('acceptSuggestion');const _0x2da8e8=new B(_0x94d4b7,this['_suggestions']);_0x94d4b7['commands']['add']('discardSuggestion',_0x2da8e8),this['enableCommand']('discardSuggestion'),_0x94d4b7['commands']['add']('acceptAllSuggestions',new x(_0x94d4b7,_0x3a66cf,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x94d4b7['commands']['add']('discardAllSuggestions',new x(_0x94d4b7,_0x2da8e8,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x94d4b7['commands']['add']('acceptSelectedSuggestions',new R(_0x94d4b7,_0x3a66cf,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x94d4b7['commands']['add']('discardSelectedSuggestions',new R(_0x94d4b7,_0x2da8e8,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x251b6d=_0x94d4b7['plugins']['get']('CommentsRepository');this['listenTo'](_0x251b6d,'addComment',(_0x20cb03,{threadId:_0x5ab62e})=>{const _0x23a7c2=this['_suggestions']['get'](_0x5ab62e);_0x23a7c2&&_0x23a7c2['commentThread']&&0x1===_0x23a7c2['commentThread']['length']&&this['_updateSuggestionData'](_0x5ab62e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x251b6d,'removeComment',(_0x213834,{threadId:_0x44c6f2})=>{const _0x4679a6=this['_suggestions']['get'](_0x44c6f2);_0x4679a6&&_0x4679a6['commentThread']&&!_0x4679a6['commentThread']['length']&&this['_updateSuggestionData'](_0x44c6f2,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x38730a){if(this['_adapter'])throw new _0x3cf89a('track-changes-adapter-already-set',this);this['_adapter']=_0x38730a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4b33cd=!0x1,toJSON:_0x1ba277=!0x1}={}){const _0xcc9621=[];for(const _0x42a0aa of this['_suggestions']['values']())_0x4b33cd&&!_0x42a0aa['isInContent']||_0xcc9621['push'](_0x42a0aa);return _0x1ba277?_0xcc9621['map'](_0x5a3f58=>_0x5a3f58['toJSON']()):_0xcc9621;}['getSuggestion'](_0x4d03b2){const _0x1d6a1a=this['_suggestions']['get'](_0x4d03b2);if(!_0x1d6a1a)throw new _0x3cf89a('track-changes-suggestion-not-found',this);return _0x1d6a1a;}['hasSuggestion'](_0x372457){return this['_suggestions']['has'](_0x372457);}['addSuggestionData'](_0x3ba015){const {authorId:_0x20c398,id:_0x40fe65,attributes:_0x4ff887}=_0x3ba015,[_0x3227b8,_0x7c9951]=_0x3ba015['type']['split'](':'),_0x144d78=this['_suggestions']['get'](_0x40fe65)||this['_createSuggestion'](_0x3227b8,_0x7c9951,_0x40fe65,_0x20c398,_0x4ff887);if(this['_addThreadToSuggestion'](_0x144d78),this['_checkSuggestionCorrectness'](_0x144d78,_0x3227b8,_0x7c9951||null,_0x20c398),_0x144d78['createdAt']=_0x3ba015['createdAt'],_0x144d78['_isDataLoaded']=!0x0,_0x4ff887&&_0x4ff887['@external']){const _0x517ff6=_0x4ff887['@external'],_0x576911=this['_getExternalAuthor'](_0x517ff6['authorName']);_0x144d78['authoredAt']=_0x517ff6['createdAt'],_0x144d78['author']=_0x576911,_0x144d78['isExternal']=!0x0;}else _0x144d78['authoredAt']=_0x3ba015['createdAt'];switch(_0x3ba015['data']&&(_0x144d78['data']=_0x3ba015['data']),_0x3ba015['attributes']&&(_0x144d78['attributes']=_0x3ba015['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x144d78['_saved']=!0x0),this['_suggestionState']['get'](_0x144d78)){case'notReady':this['_suggestionState']['set'](_0x144d78,'dataReady');break;case'markerReady':_0x144d78['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x144d78])),this['_refreshSuggestionsChain'](new Set([_0x144d78])),this['_suggestionState']['set'](_0x144d78,'ready'),this['fire']('suggestionLoaded',_0x144d78)):this['_suggestionState']['set'](_0x144d78,'removed');}return _0x144d78;}['acceptSuggestion'](_0x4a0a9a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x29d744 of _0x4a0a9a['getAllAdjacentSuggestions']())_0x29d744['accept']();});});}['discardSuggestion'](_0x53c0f6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x55d8b5 of _0x53c0f6['getAllAdjacentSuggestions']())_0x55d8b5['discard']();});});}['enableCommand'](_0x27c405,_0x300940){const _0x468248=this['editor']['commands']['get'](_0x27c405);if(!_0x468248)throw new _0x3cf89a('track-changes-command-not-found',this,{'commandName':_0x27c405});if(this['_enabledCommands']['has'](_0x468248))throw new _0x3cf89a('track-changes-enable-command-twice',this,{'commandName':_0x27c405});this['_enabledCommands']['add'](_0x468248),_0x300940&&_0x468248['on']('execute',(_0x101e23,_0x3c31d6)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3c31d6['length']>0x0&&_0x3c31d6[_0x3c31d6['length']-0x1]&&_0x3c31d6[_0x3c31d6['length']-0x1]['forceDefaultExecution']?_0x3c31d6['pop']():(_0x101e23['return']=_0x300940((..._0x5e1114)=>_0x468248['execute'](..._0x5e1114,{'forceDefaultExecution':!0x0}),..._0x3c31d6),_0x101e23['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5104f9){let _0x557b0f,_0x424f03;const _0x4edbc4=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x557b0f=_0x5104f9();}catch(_0x425047){_0x424f03=_0x425047;}return _0x4edbc4||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x424f03&&_0x3cf89a['rethrowUnexpectedError'](_0x424f03,this),_0x557b0f;}['markInsertion'](_0x1c4150,_0x5d1100=null,_0xf5a636={}){if(_0x1c4150['isCollapsed'])return null;const _0x551854=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x56ac89,meta:_0x2fdc04}of this['_findSuggestions'](_0x1c4150,'insertion'))if(_0x2fdc04['isOwn']){if(!_0x2fdc04['isNextTo']){if(_0x2fdc04['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ht(_0x56ac89,_0xf5a636))continue;return _0x56ac89;}if(Ht(_0x56ac89,_0xf5a636))return _0x56ac89;this['_breakSuggestionMarker'](_0x56ac89,_0x1c4150['start'],_0x1c4150['end']);break;}if(_0x5d1100==_0x56ac89['subType']&&Ht(_0x56ac89,_0xf5a636)){const _0x418c89=_0x56ac89['getFirstRange']();return _0x418c89['start']['isEqual'](_0x1c4150['end'])?this['_setSuggestionRange'](_0x56ac89,this['_model']['createRange'](_0x1c4150['start'],_0x418c89['end'])):this['_setSuggestionRange'](_0x56ac89,this['_model']['createRange'](_0x418c89['start'],_0x1c4150['end'])),_0x56ac89;}}const _0x4cad8b=_0x27f732(),_0xb2ebe1=_0x551854['id'],_0x36dded=_0x5d1100?'insertion:'+_0x5d1100:'insertion',_0x3d4cb2=this['_setSuggestionData']({'id':_0x4cad8b,'type':_0x36dded,'createdAt':new Date(),'authorId':_0xb2ebe1,'attributes':_0xf5a636});return this['_addSuggestionMarker'](_0x36dded,_0x4cad8b,_0xb2ebe1,_0x1c4150),_0x3d4cb2;}['markMultiRangeInsertion'](_0x148ad3,_0x13b73a='multi',_0x19826f={}){const _0x15b66a=this['editor']['plugins']['get']('Users')['me'],_0x2f1d6c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x13b73a,'join');for(const _0x2fecc5 of this['getSuggestions']())if(_0x2fecc5['author']['id']==_0x15b66a['id']&&'insertion'==_0x2fecc5['type']&&_0x2fecc5['subType']==_0x13b73a&&Ht(_0x2fecc5,_0x19826f)&&(_0x2f1d6c(_0x2fecc5['getRanges'](),_0x148ad3)||_0x2f1d6c(_0x148ad3,_0x2fecc5['getRanges']()))){for(const _0x12ea0f of _0x148ad3)_0x2fecc5['addRange'](_0x12ea0f);return _0x2fecc5;}for(const {suggestion:_0x248ed4,meta:_0x82f324}of this['_findSuggestions'](_0x148ad3,'insertion')){if(!_0x82f324['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x82f324['containsRangeInObject'])continue;if(!Ht(_0x248ed4,_0x19826f))continue;let _0x5b52c4=!0x0;for(const _0x142f12 of _0x248ed4['getRanges']())for(const _0xedd174 of _0x148ad3)if(!_0x142f12['containsRange'](_0xedd174)){_0x5b52c4=!0x1;break;}if(_0x5b52c4)return _0x248ed4;}const _0x932914=_0x27f732(),_0x496647=_0x15b66a['id'],_0x4affae='insertion:'+_0x13b73a,_0x10a18f=this['_setSuggestionData']({'id':_0x932914,'type':_0x4affae,'createdAt':new Date(),'authorId':_0x496647,'attributes':_0x19826f});for(const _0x26386a of _0x148ad3)this['_addSuggestionMarker'](_0x4affae,_0x932914,_0x496647,_0x26386a,u['getMultiRangeId']());return _0x10a18f;}['markInlineFormat'](_0x5e00c1,_0x63cdc4,_0x55d6f1=null,_0x1c429d={}){if(_0x55d6f1=_0x55d6f1||Ut(_0x63cdc4),_0x5e00c1['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x32b848=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x55d6f1,'accept');return this['forceDefaultExecution'](()=>_0x32b848([_0x5e00c1],_0x63cdc4,_0x1c429d)),null;}const _0x149d76=this['editor']['plugins']['get']('Users')['me'],_0x3c833c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1e36e9,meta:_0x4cf433}of this['_findSuggestions'](_0x5e00c1,'insertion'))_0x4cf433['isOwn']&&!_0x4cf433['isInsideObject']&&_0x3c833c['push'](..._0x1e36e9['getRanges']());}const _0x2d5915=function(_0x5df397,_0x59d54b){const _0x5d08ea=[];for(const _0x2be7f1 of _0x59d54b){const _0x4a8156=_0x5df397['getIntersection'](_0x2be7f1);_0x4a8156&&_0x5d08ea['push'](_0x4a8156);}return _0x5d08ea;}(_0x5e00c1,_0x3c833c),_0x4bd0e7=function(_0x28c299,_0x45b14d){const _0x477c7f=[_0x28c299];for(const _0x5e3927 of _0x45b14d){let _0x37feed=0x0;for(;_0x37feed<_0x477c7f['length'];){const _0x1c5517=_0x477c7f[_0x37feed]['getDifference'](_0x5e3927);_0x477c7f['splice'](_0x37feed,0x1,..._0x1c5517),_0x37feed+=_0x1c5517['length'];}}return _0x477c7f;}(_0x5e00c1,_0x3c833c);_0x2d5915['length']&&this['_model']['change'](()=>{for(const _0x2aac7d of _0x2d5915){const _0x155419=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x55d6f1,'accept');this['forceDefaultExecution'](()=>_0x155419([_0x2aac7d],_0x63cdc4,_0x1c429d));}});for(const _0x572312 of _0x4bd0e7){let _0x1ae572=null,_0x36d8c4=_0x572312['start'],_0x3b5731=_0x572312['end'];for(const {suggestion:_0x5a5aa2,meta:_0x5dea3f}of this['_findSuggestions'](_0x572312,'formatInline')){if(!_0x5dea3f['isOwn'])continue;if(_0x5a5aa2['subType']!=_0x55d6f1)continue;if(!Ht(_0x5a5aa2,_0x1c429d))continue;const _0x2464c2=_0x5a5aa2['getFirstRange']();if(_0x2464c2['containsRange'](_0x572312,!0x0))return null;_0x36d8c4=_0x36d8c4['isBefore'](_0x2464c2['start'])?_0x36d8c4:_0x2464c2['start'],_0x3b5731=_0x3b5731['isAfter'](_0x2464c2['end'])?_0x3b5731:_0x2464c2['end'],_0x1ae572?_0x2464c2['start']['isBefore'](_0x1ae572['getFirstRange']()['start'])?(_0x1ae572['removeMarkers'](),_0x1ae572=_0x5a5aa2):_0x5a5aa2['removeMarkers']():_0x1ae572=_0x5a5aa2;}const _0x2a92b7=this['_model']['createRange'](_0x36d8c4,_0x3b5731);if(_0x1ae572)this['_setSuggestionRange'](_0x1ae572,_0x2a92b7);else{const _0x5ea461=_0x27f732(),_0x40967e=_0x149d76['id'];this['_setSuggestionData']({'id':_0x5ea461,'type':'formatInline:'+_0x55d6f1,'data':_0x63cdc4,'createdAt':new Date(),'authorId':_0x40967e,'attributes':_0x1c429d}),this['_addSuggestionMarker']('formatInline:'+_0x55d6f1,_0x5ea461,_0x40967e,_0x2a92b7);}}return null;}['markBlockFormat'](_0x865d46,_0x4fc2a4,_0x395b96=[],_0x132a94=null,_0x255724={}){_0x4fc2a4['formatGroupId']||(_0x4fc2a4['formatGroupId']=_0x4fc2a4['commandName']),_0x4fc2a4['multipleBlocks']=_0x865d46['is']('range'),_0x132a94=_0x132a94||Ut(_0x4fc2a4);const _0xd75b5a=_0x395b96['map'](_0x2e3028=>Ft(_0x2e3028,this['_model'])),_0x429ea1=_0x865d46['is']('range')?_0x865d46:Ft(_0x865d46,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5bfd84=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x132a94,'accept');return this['forceDefaultExecution'](()=>_0x5bfd84([_0x429ea1],_0x4fc2a4,_0x255724)),null;}_0xd75b5a['push'](_0x429ea1);let _0x53c891=!0x0;for(const _0x36eb3d of _0xd75b5a)if(!this['_rangeIsInLocalUserInsertion'](_0x36eb3d)){_0x53c891=!0x1;break;}if(_0x53c891&&'always'!==this['_trackFormatChanges']){const _0x5d3a29=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x132a94,'accept');return this['forceDefaultExecution'](()=>_0x5d3a29([_0x429ea1],_0x4fc2a4,_0x255724)),null;}let _0x2a9e4f=null,_0x51f16a=_0x429ea1['start'],_0x453740=_0x429ea1['end'];for(const {suggestion:_0x367579,meta:_0x4f0de7}of this['_findSuggestions'](_0x429ea1,'formatBlock')){if(!_0x4f0de7['isOwn'])continue;if(_0x4f0de7['isNextTo']||_0x4f0de7['containsRangeInObject']||_0x4f0de7['isInsideObject'])continue;if(_0x367579['data']['formatGroupId']!=_0x4fc2a4['formatGroupId'])continue;if(!Ht(_0x367579,_0x255724))continue;const _0x28783d=_0x367579['getFirstRange']();if(_0x367579['subType']==_0x132a94){if(_0x28783d['containsRange'](_0x429ea1,!0x0))return null;_0x51f16a=_0x51f16a['isBefore'](_0x28783d['start'])?_0x51f16a:_0x28783d['start'],_0x453740=_0x453740['isAfter'](_0x28783d['end'])?_0x453740:_0x28783d['end'],_0x2a9e4f?_0x28783d['start']['isBefore'](_0x2a9e4f['getFirstRange']()['start'])?(_0x2a9e4f['removeMarkers'](),_0x2a9e4f=_0x367579):_0x367579['removeMarkers']():_0x2a9e4f=_0x367579;}else{const _0x2ea643=_0x429ea1['getIntersection'](_0x28783d);this['_cutOutSuggestionMarker'](_0x367579,_0x2ea643);}}const _0x30a668=this['editor']['plugins']['get']('Users')['me'],_0x590db5=_0x27f732(),_0x4b0d38=_0x30a668['id'];if(_0x2a9e4f)return this['_setSuggestionRange'](_0x2a9e4f,this['_model']['createRange'](_0x51f16a,_0x453740)),_0x2a9e4f;{const _0x4b0392=this['_setSuggestionData']({'id':_0x590db5,'type':'formatBlock:'+_0x132a94,'data':_0x4fc2a4,'createdAt':new Date(),'authorId':_0x4b0d38,'attributes':_0x255724});return this['_addSuggestionMarker']('formatBlock:'+_0x132a94,_0x590db5,_0x4b0d38,this['_model']['createRange'](_0x51f16a,_0x453740)),_0x4b0392;}}['markMultiRangeBlockFormat'](_0x132abc,_0x59e136,_0x4775f6=[],_0x38f1d7=null,_0x16b8fa={}){_0x59e136['formatGroupId']||(_0x59e136['formatGroupId']=_0x59e136['commandName']);const _0x381fa0=_0x132abc[0x0];_0x59e136['multipleBlocks']=_0x381fa0['is']('range'),_0x38f1d7=_0x38f1d7||Ut(_0x59e136);const _0x49284e=_0x4775f6['map'](_0x4d0424=>Ft(_0x4d0424,this['_model'])),_0x470cde=_0x381fa0['is']('range')?_0x132abc:_0x132abc['map'](_0x37849b=>Ft(_0x37849b,this['_model']));if('never'===this['_trackFormatChanges']){const _0x385d1e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38f1d7,'accept');return this['forceDefaultExecution'](()=>_0x385d1e(_0x470cde,_0x59e136,_0x16b8fa)),null;}_0x49284e['push'](..._0x470cde);let _0x54e8be=!0x0;for(const _0x5834fe of _0x49284e)if(!this['_rangeIsInLocalUserInsertion'](_0x5834fe)){_0x54e8be=!0x1;break;}if(_0x54e8be&&'always'!==this['_trackFormatChanges']){const _0x4bb09a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38f1d7,'accept');return this['forceDefaultExecution'](()=>_0x4bb09a(_0x470cde,_0x59e136,_0x16b8fa)),null;}const _0xa52e5e=this['editor']['plugins']['get']('Users')['me'];for(const _0x2f25b7 of this['getSuggestions']()){if(_0x2f25b7['author']['id']!=_0xa52e5e['id'])continue;if('formatBlock'!=_0x2f25b7['type']||_0x2f25b7['data']['formatGroupId']!=_0x59e136['formatGroupId'])continue;if(!Ht(_0x2f25b7,_0x16b8fa))continue;const _0x5966e2=_0x2f25b7['subType']==_0x38f1d7;for(let _0x33cbdd=0x0;_0x33cbdd<_0x470cde['length'];_0x33cbdd++){const _0x1bf88a=_0x470cde[_0x33cbdd];for(const _0x297d23 of _0x2f25b7['getMarkers']()){const _0x18cfa2=_0x297d23['getRange']();if(_0x1bf88a['isEqual'](_0x18cfa2)){_0x5966e2?(_0x470cde['splice'](_0x33cbdd,0x1),_0x33cbdd--):_0x2f25b7['removeMarker'](_0x297d23['name']);break;}}}}if(0x0==_0x470cde['length'])return null;const _0xe0193b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38f1d7,'join');for(const _0x193efb of this['getSuggestions']())if(_0x193efb['author']['id']==_0xa52e5e['id']&&'formatBlock'==_0x193efb['type']&&_0x193efb['data']['formatGroupId']==_0x59e136['formatGroupId']&&_0x193efb['subType']==_0x38f1d7&&Ht(_0x193efb,_0x16b8fa)&&(_0xe0193b(_0x193efb['getRanges'](),_0x470cde)||_0xe0193b(_0x470cde,_0x193efb['getRanges']()))){for(const _0x53858a of _0x470cde)_0x193efb['addRange'](_0x53858a);return _0x193efb;}const _0x5dddc8=_0x27f732(),_0x2c4ff0=_0xa52e5e['id'],_0x4e1d21='formatBlock:'+_0x38f1d7,_0x5109d5=this['_setSuggestionData']({'id':_0x5dddc8,'type':_0x4e1d21,'data':_0x59e136,'createdAt':new Date(),'authorId':_0x2c4ff0,'attributes':_0x16b8fa});for(const _0x3658d7 of _0x470cde)this['_addSuggestionMarker'](_0x4e1d21,_0x5dddc8,_0x2c4ff0,_0x3658d7,u['getMultiRangeId']());return _0x5109d5;}['markDeletion'](_0x28ea3b,_0x20155e=null,_0x50caa6={}){if(_0x28ea3b['isCollapsed'])return null;const _0x4123bd=this['editor']['plugins']['get']('Users')['me'],_0x41b6b9=new _0x948f0b(_0x28ea3b['start'],_0x28ea3b['end']);for(const {suggestion:_0x5bf784,meta:_0x294936}of this['_findSuggestions'](_0x41b6b9,'insertion'))if(_0x294936['isOwn']&&!_0x294936['isNextTo']){if(_0x5bf784['isMultiRange']){const _0xc4ef9f=_0x5bf784['getRanges']()['filter'](_0x6b9579=>'$graveyard'!=_0x6b9579['root']['rootName']);_0xc4ef9f['every'](_0x365944=>_0x41b6b9['containsRange'](_0x365944,!0x0))&&_0x5bf784['discard']();if(_0xc4ef9f['some'](_0x38380f=>_0x38380f['containsRange'](_0x41b6b9,!0x0))){const _0x10c56e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x20155e,'accept');return this['forceDefaultExecution'](()=>_0x10c56e([_0x41b6b9],null,_0x50caa6)),null;}}else{const _0x893b2f=_0x41b6b9['getIntersection'](_0x5bf784['getFirstRange']());null!==_0x893b2f&&_0x5bf784['_onDiscard']([_0x893b2f],null,_0x50caa6);}}if(_0x41b6b9['detach'](),_0x41b6b9['isCollapsed']||'$graveyard'==_0x41b6b9['root']['rootName'])return null;let _0x27c88a=null,_0xb7bf3b=_0x41b6b9['start'],_0x3da952=_0x41b6b9['end'];const _0x504ebe=this['_findSuggestions'](_0x41b6b9,'deletion');for(const {suggestion:_0x50abb5,meta:_0x71496b}of _0x504ebe){const _0x1b23e3=this['_model']['createRange'](_0xb7bf3b,_0x3da952);if(_0x71496b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x71496b['containsRangeInObject']&&!_0x71496b['isInsideObject'])){if(_0x50abb5['isMultiRange']){if(!Ht(_0x50abb5,_0x50caa6))continue;let _0x1548b2=!0x0;for(const _0x21bee9 of _0x50abb5['getRanges']()){if(_0x21bee9['containsRange'](_0x1b23e3,!0x0))return _0x50abb5;_0x1b23e3['containsRange'](_0x21bee9)||(_0x1548b2=!0x1);}_0x1548b2&&_0x50abb5['discard']();}else{const _0x54b433=_0x50abb5['getFirstRange']();if(_0x54b433['containsRange'](_0x1b23e3,!0x0))return _0x50abb5;if(!Ht(_0x50abb5,_0x50caa6)){_0x1b23e3['containsRange'](_0x54b433)?_0x50abb5['removeMarkers']():_0x54b433['containsPosition'](_0xb7bf3b)?_0xb7bf3b=_0x54b433['end']:_0x54b433['containsPosition'](_0x3da952)&&(_0x3da952=_0x54b433['start']);continue;}_0xb7bf3b=_0xb7bf3b['isBefore'](_0x54b433['start'])?_0xb7bf3b:_0x54b433['start'],_0x3da952=_0x3da952['isAfter'](_0x54b433['end'])?_0x3da952:_0x54b433['end'],_0x50caa6=Object['assign']({},_0x50abb5['attributes']),_0x27c88a?_0x54b433['start']['isBefore'](_0x27c88a['getFirstRange']()['start'])?(_0x27c88a['removeMarkers'](),_0x27c88a=_0x50abb5):_0x50abb5['removeMarkers']():_0x27c88a=_0x50abb5;}}}if(_0x27c88a)return this['_setSuggestionRange'](_0x27c88a,this['_model']['createRange'](_0xb7bf3b,_0x3da952)),_0x27c88a;{const _0x5a0f22=_0x27f732(),_0x43c526=this['_model']['createRange'](_0xb7bf3b,_0x3da952),_0x234af1=_0x4123bd['id'],_0x205e49=_0x20155e?'deletion:'+_0x20155e:'deletion',_0x12aebe=this['_setSuggestionData']({'id':_0x5a0f22,'type':_0x205e49,'createdAt':new Date(),'authorId':_0x234af1,'attributes':_0x50caa6});return this['_addSuggestionMarker'](_0x205e49,_0x5a0f22,_0x234af1,_0x43c526),_0x12aebe;}}['markMultiRangeDeletion'](_0x39352f,_0x540469='multi',_0x2f737e={}){const _0x16959b=this['editor']['plugins']['get']('Users')['me'],_0x11ac4a=_0x39352f['map'](_0x4586be=>new _0x948f0b(_0x4586be['start'],_0x4586be['end'])),_0x19d072=new Set();for(const {suggestion:_0xb73e79,meta:_0x5c49f4}of this['_findSuggestions'](_0x11ac4a,'insertion'))_0x5c49f4['isOwn']&&!_0x5c49f4['isNextTo']&&_0x19d072['add'](_0xb73e79);for(const _0x24b753 of _0x19d072)if(_0x24b753['isMultiRange']){const _0x34d173=_0x24b753['getRanges']();(!_0x24b753['attributes']||!_0x24b753['attributes']['skipNestingCheck'])&&(_0x34d173['every'](_0x18253b=>_0x11ac4a['some'](_0x424398=>_0x424398['containsRange'](_0x18253b,!0x0)))&&_0x24b753['discard']());if(_0x11ac4a['every'](_0x5a2b3e=>_0x34d173['some'](_0x5ebcd6=>_0x5ebcd6['containsRange'](_0x5a2b3e,!0x0)))){const _0x4b607b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x540469,'accept');return this['forceDefaultExecution'](()=>_0x4b607b(_0x39352f,null,_0x2f737e)),null;}}else{const _0x3a7c87=_0x24b753['getFirstRange']();_0x11ac4a['some'](_0x55d088=>_0x55d088['containsRange'](_0x3a7c87,!0x0))&&_0x24b753['discard']();if(_0x11ac4a['every'](_0x2b47ee=>_0x3a7c87['containsRange'](_0x2b47ee,!0x0))){const _0x47227f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x540469,'accept');return this['forceDefaultExecution'](()=>_0x47227f(_0x11ac4a,null,_0x2f737e)),null;}}const _0x26b6f5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x540469,'join');let _0x4b3b83=null;for(const _0x1579d3 of this['getSuggestions']())if(_0x1579d3['author']['id']==_0x16959b['id']&&_0x1579d3['isInContent']&&'deletion'==_0x1579d3['type']&&_0x1579d3['subType']==_0x540469&&Ht(_0x1579d3,_0x2f737e)&&(_0x26b6f5(_0x1579d3['getRanges'](),_0x11ac4a)||_0x26b6f5(_0x11ac4a,_0x1579d3['getRanges']()))){if(_0x4b3b83){if(_0x1579d3['commentThread']&&_0x1579d3['commentThread']['length'])continue;for(const _0x3803c4 of _0x1579d3['getRanges']())_0x4b3b83['isIntersectingWithRange'](_0x3803c4)||_0x4b3b83['addRange'](_0x3803c4);_0x1579d3['removeMarkers']();}else{_0x4b3b83=_0x1579d3;for(const _0x5b0786 of _0x11ac4a)_0x1579d3['isIntersectingWithRange'](_0x5b0786)||_0x1579d3['addRange'](_0x5b0786);}}if(_0x4b3b83)return _0x4b3b83;_0x19d072['clear']();for(const {suggestion:_0x1cb749,meta:_0x49b3f0}of this['_findSuggestions'](_0x11ac4a,'deletion'))_0x49b3f0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x49b3f0['containsRangeInObject']&&!_0x49b3f0['isInsideObject'])&&Ht(_0x1cb749,_0x2f737e)&&_0x19d072['add'](_0x1cb749);for(const _0x1b0a30 of _0x19d072){const _0x59df0e=_0x1b0a30['getRanges']();if(!_0x2f737e||!_0x2f737e['skipNestingCheck']){if(_0x11ac4a['every'](_0x1266ac=>_0x59df0e['some'](_0x59218a=>_0x59218a['containsRange'](_0x1266ac,!0x0))))return _0x1b0a30;}(!_0x1b0a30['attributes']||!_0x1b0a30['attributes']['skipNestingCheck'])&&(_0x59df0e['every'](_0x689c42=>_0x11ac4a['some'](_0xa90a60=>_0xa90a60['containsRange'](_0x689c42,!0x0)))&&_0x1b0a30['discard']());}const _0x3e8bf8=_0x27f732(),_0x350976=_0x16959b['id'],_0x449f00='deletion:'+_0x540469,_0x1b14b6=this['_setSuggestionData']({'id':_0x3e8bf8,'type':_0x449f00,'createdAt':new Date(),'authorId':_0x350976,'attributes':_0x2f737e});for(const _0x383e2d of _0x11ac4a)_0x383e2d['detach'](),_0x383e2d['isCollapsed']||'$graveyard'==_0x383e2d['root']['rootName']||this['_addSuggestionMarker'](_0x449f00,_0x3e8bf8,_0x350976,_0x383e2d,u['getMultiRangeId']());return _0x1b14b6;}['markAttributeChange'](_0x2fecdd,_0x7c2406,_0x3d9c75,_0x2f6a7d,_0x1cd751){if(_0x2fecdd['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xe4573e=this['editor']['plugins']['get']('Users')['me']['id'],_0x64a987=Array['from'](this['_suggestions']['values']())['filter'](_0x17eb57=>'attribute'==_0x17eb57['type']&&_0x17eb57['data']['key']==_0x7c2406&&_0x17eb57['isIntersectingWithRange'](_0x2fecdd));if('default'===this['_trackFormatChanges']){const _0x1765a9=this['_findSuggestions'](_0x2fecdd,'insertion')['filter'](({meta:_0x5e7147})=>_0x5e7147['isOwn']&&!_0x5e7147['isInsideObject']&&!_0x5e7147['isNextTo'])['map'](({suggestion:_0x545b94})=>_0x545b94);_0x64a987['unshift'](..._0x1765a9);}const _0x4b9fa2=new Map([[_0x2fecdd,_0x3d9c75]]);for(const _0x1f8722 of _0x64a987){const _0x15a07a='attribute'==_0x1f8722['type']?_0x1f8722['data']['oldValue']:void 0x0,_0x3103db=_0x1f8722['getFirstRange'](),_0x6e3aac=Array['from'](_0x4b9fa2['keys']())['find'](_0x726acb=>_0x726acb['isIntersecting'](_0x3103db));if(!_0x6e3aac)continue;const _0x1555b8=_0x6e3aac['getDifference'](_0x3103db);this['_isBlockAttribute'](_0x7c2406)&&'insertion'==_0x1f8722['type']&&0x0!=_0x1555b8['length']||(_0x4b9fa2['delete'](_0x6e3aac),_0x1555b8['forEach'](_0x512874=>{_0x4b9fa2['set'](_0x512874,_0x3d9c75);}),'insertion'!=_0x1f8722['type']&&_0x15a07a!=_0x2f6a7d&&_0x4b9fa2['set'](_0x6e3aac['getIntersection'](_0x3103db),_0x15a07a));}const _0x5779b5=[];for(const [_0xb35e,_0x510202]of _0x4b9fa2){const _0x237fa6=_0x27f732(),_0x1b8624={'key':_0x7c2406,'oldValue':_0x510202,'newValue':_0x2f6a7d};_0x7c2406['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':_0x7c2406});const _0x297bbb=('attribute:'+(_0x7c2406+'|'+Ut({'newValue':_0x2f6a7d})))['substring'](0x0,0x3c),_0x302b45=this['_setSuggestionData']({'id':_0x237fa6,'type':_0x297bbb,'data':_0x1b8624,'createdAt':new Date(),'authorId':_0xe4573e,'attributes':_0x1cd751});_0x5779b5['push'](_0x302b45),this['_addSuggestionMarker'](_0x297bbb,_0x237fa6,_0xe4573e,_0xb35e);}return _0x5779b5;}['enableDefaultAttributesIntegration'](_0x4f39c4){this['enableCommand'](_0x4f39c4,(_0x12eacf,..._0x233263)=>{this['_recordAttributeChanges'](()=>{_0x12eacf(..._0x233263);});});}['registerBlockAttribute'](_0x5c8873){this['_blockAttributeKeys']['add'](_0x5c8873);}['registerInlineAttribute'](_0x29ca51){this['_inlineAttributeKeys']['add'](_0x29ca51);}['_getAttributeKey'](_0x1431a2){return'attribute'==_0x1431a2['type']?_0x1431a2['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x564af1,_0x4e6ec7){const _0x2eca49=_0x564af1['getFirstMarker']();this['_model']['change'](_0x20ebb3=>{_0x20ebb3['updateMarker'](_0x2eca49,{'range':_0x4e6ec7});});}['_addThreadToSuggestion'](_0x31fa31){const _0x4d23ba=_0x31fa31['id'],_0x19fe86=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4d23ba)||this['_commentsRepository']['addCommentThread']({'channelId':_0x19fe86,'threadId':_0x4d23ba,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x92b281=this['_commentsRepository']['getCommentThread'](_0x4d23ba);_0x92b281['unbind']('isRemovable'),_0x92b281['isRemovable']=!0x1,_0x31fa31['commentThread']=_0x92b281;}['_checkSuggestionCorrectness'](_0x8223c5,_0x45c77b,_0x117bc5,_0x56a8a6){if(_0x8223c5['type']!=_0x45c77b||_0x8223c5['subType']!=_0x117bc5||_0x8223c5['creator']['id']!=_0x56a8a6)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3cf89a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x331c61,_0x708a78){const _0x3517b0=_0x331c61['getFirstRange']();if(_0x708a78['isEqual'](_0x3517b0))_0x331c61['removeMarkers']();else{if(_0x3517b0['containsRange'](_0x708a78)){const _0x589bd8=this['_model']['createPositionAt'](_0x708a78['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x331c61,this['_model']['createRange'](_0x3517b0['start'],_0x589bd8));const _0x4d0c2f=_0x27f732(),_0x4ce1ab=_0x331c61['creator']['id'],_0x2eee12=_0x331c61['type']+':'+_0x331c61['subType'];this['_setSuggestionData']({'id':_0x4d0c2f,'type':_0x2eee12,'createdAt':new Date(),'authorId':_0x4ce1ab,'data':_0x331c61['data'],'attributes':_0x331c61['attributes']});const _0x3147ff=this['_model']['createPositionAt'](_0x708a78['end']['parent'],'after'),_0x488879=this['_model']['createRange'](_0x3147ff,_0x3517b0['end']);this['_addSuggestionMarker'](_0x2eee12,_0x4d0c2f,_0x4ce1ab,_0x488879);}else{if(_0x3517b0['containsPosition'](_0x708a78['start'])){const _0x41f493=this['_model']['createPositionAt'](_0x708a78['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x331c61,this['_model']['createRange'](_0x3517b0['start'],_0x41f493));}else{const _0x5d9695=this['_model']['createPositionAt'](_0x708a78['end']['parent'],'after');this['_setSuggestionRange'](_0x331c61,this['_model']['createRange'](_0x5d9695,_0x3517b0['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1d37b3){for(const {suggestion:_0x254a8b,meta:_0x3fa44d}of this['_findSuggestions'](_0x1d37b3,'insertion')){if(!_0x3fa44d['isOwn'])continue;const _0x1c5f18=_0x254a8b['getRanges']();for(const _0x55a329 of _0x1c5f18)if(!_0x1d37b3['getDifference'](_0x55a329)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4c0e31){const _0x4abb2b=this['editor']['plugins']['get']('Users')['getUser'](_0x4c0e31);if(!_0x4abb2b)throw new _0x3cf89a('track-changes-user-not-found',this);return _0x4abb2b;}['_getExternalAuthor'](_0x2d6b6b){const _0x4e94e2=this['editor']['plugins']['get']('Users'),_0x15b794=_0x16ce2e('external:'+_0x2d6b6b),_0x365644=_0x4e94e2['getUser'](_0x15b794);return _0x365644||_0x4e94e2['addUser']({'id':_0x15b794,'name':_0x2d6b6b});}['_createSuggestion'](_0x124e38,_0x549704,_0x2f51b4,_0x4acb01,_0x187601){const _0x465fe5=this['_getAuthorFromId'](_0x4acb01),_0x4297c4=this['_suggestionFactory']['buildSuggestion'](_0x124e38,_0x549704,_0x2f51b4,_0x465fe5,_0x187601,_0xaa73bd=>{this['_updateSuggestionData'](_0x2f51b4,{'attributes':_0xaa73bd});const _0x34edcc=this['getSuggestion'](_0x2f51b4);this['_joinWithAdjacentSuggestions'](new Set([_0x34edcc])),this['_refreshSuggestionsChain'](new Set([_0x34edcc]));});return this['listenTo'](_0x4297c4,'accept',()=>{this['_updateSuggestionData'](_0x2f51b4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4297c4,'discard',()=>{this['_updateSuggestionData'](_0x2f51b4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2f51b4,_0x4297c4),this['_suggestionState']['set'](_0x4297c4,'notReady'),_0x4297c4;}['_splitMarkerName'](_0x5bd87d){const _0x4f91bb=_0x5bd87d['split'](':');return{'group':_0x4f91bb[0x0],'type':_0x4f91bb[0x1],'subType':_0x4f91bb['length']>=0x5?_0x4f91bb[0x2]:null,'id':_0x4f91bb['length']<0x5?_0x4f91bb[0x2]:_0x4f91bb[0x3],'authorId':_0x4f91bb['length']<0x5?_0x4f91bb[0x3]:_0x4f91bb[0x4],'markerCount':0x6==_0x4f91bb['length']?_0x4f91bb[0x5]:null};}['_breakSuggestionMarker'](_0x3551de,_0x29acad,_0x2f982d){const _0x51ee12=_0x3551de['getFirstRange'](),_0x3168bd=_0x51ee12['start'],_0x32dc87=_0x51ee12['end'];this['_setSuggestionRange'](_0x3551de,this['_model']['createRange'](_0x3168bd,_0x29acad));const _0x554c89=_0x27f732(),_0x455f55=_0x3551de['creator']['id'],_0x4a8301=_0x3551de['type']+(_0x3551de['subType']?':'+_0x3551de['subType']:'');this['_setSuggestionData']({'id':_0x554c89,'type':_0x4a8301,'createdAt':new Date(),'authorId':_0x455f55,'originalSuggestionId':_0x3551de['id'],'attributes':_0x3551de['attributes'],'data':_0x3551de['data']});const _0x213be2=this['_getAttributeKey'](_0x3551de);('formatBlock'==_0x3551de['type']||_0x213be2&&this['_isBlockAttribute'](_0x213be2))&&(_0x2f982d=this['_model']['createPositionBefore'](_0x2f982d['parent'])),this['_addSuggestionMarker'](_0x4a8301,_0x554c89,_0x455f55,this['_model']['createRange'](_0x2f982d,_0x32dc87));}['_findSuggestions'](_0x37f847,_0x1e51dd=null){const _0x48c6f5=[],_0x13747d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x37f847)||(_0x37f847=[_0x37f847]);for(const _0x382e15 of this['getSuggestions']()){if(!_0x382e15['isInContent'])continue;if(_0x1e51dd&&_0x382e15['type']!=_0x1e51dd)continue;let _0x23cce9=!0x1;for(const _0x2f3ccc of _0x382e15['getRanges']()){for(const _0x5f0ff0 of _0x37f847){const _0x28efb2=_0x5f0ff0['start']['isEqual'](_0x2f3ccc['end'])||_0x5f0ff0['end']['isEqual'](_0x2f3ccc['start']);if(_0x28efb2||_0x5f0ff0['getIntersection'](_0x2f3ccc)){const _0x2fe0b3=_0x5f0ff0['containsRange'](_0x2f3ccc)&&Tt(this['_model']['schema'],_0x2f3ccc['start'],_0x5f0ff0),_0x432540=_0x2f3ccc['containsRange'](_0x5f0ff0)&&Tt(this['_model']['schema'],_0x5f0ff0['start'],_0x2f3ccc);_0x48c6f5['push']({'suggestion':_0x382e15,'meta':{'isOwn':_0x13747d==_0x382e15['author'],'isNextTo':_0x28efb2,'isInsideObject':_0x2fe0b3,'containsRangeInObject':_0x432540}}),_0x23cce9=!0x0;break;}}if(_0x23cce9)break;}}return _0x48c6f5;}['_addSuggestionMarker'](_0xfc247a,_0x43fc2,_0x465bbd,_0x3c7b99,_0x3324e1){this['_model']['change'](_0x3774c6=>{let _0x4722ff='suggestion:'+_0xfc247a+':'+_0x43fc2+':'+_0x465bbd;_0x3324e1&&(_0x4722ff=_0x4722ff+':'+_0x3324e1),_0x3774c6['addMarker'](_0x4722ff,{'range':_0x3c7b99,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x59c419){const _0x5c7f0d=_0x59c419['previous'],_0x596487=_0x59c419['next'];_0x59c419['previous']=null,_0x59c419['next']=null,null!=_0x5c7f0d&&_0x5c7f0d['next']==_0x59c419&&(_0x5c7f0d['next']=_0x596487),null!=_0x596487&&_0x596487['previous']==_0x59c419&&(_0x596487['previous']=_0x5c7f0d),'ready'==this['_suggestionState']['get'](_0x59c419)&&(this['_suggestionState']['set'](_0x59c419,'removed'),this['fire']('suggestionUnloaded',_0x59c419,_0x5c7f0d,_0x596487));}['_setSuggestionData'](_0x5cce4c){const _0x153867=_0x5cce4c['id'],_0x308d72=this['addSuggestionData'](_0x5cce4c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1d2cfb=this['editor']['plugins']['get']('PendingActions'),_0x1d21a6=_0x308d72['hasComments'],_0x51d4f3=_0x308d72['subType']?_0x308d72['type']+':'+_0x308d72['subType']:_0x308d72['type'],_0x3c6353=this['editor']['locale'],_0x3c557a=_0x1d2cfb['add'](o(_0x3c6353,'PENDING_ACTION_SUGGESTION')),_0x23b2e8={'id':_0x153867,'type':_0x51d4f3,'hasComments':_0x1d21a6,'data':_0x5cce4c['data']||null,'originalSuggestionId':_0x5cce4c['originalSuggestionId']||null,'attributes':_0x308d72['attributes']};this['_adapter']['addSuggestion'](_0x23b2e8)['then'](_0x1f81ee=>{_0x308d72['_saved']=!0x0,_0x1d2cfb['remove'](_0x3c557a),_0x1f81ee&&_0x1f81ee['createdAt']&&(this['_suggestions']['get'](_0x153867)['createdAt']=_0x1f81ee['createdAt']);})['catch'](_0x4dd813=>{throw _0x227421('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x308d72['discard']();}),_0x308d72['stopListening'](),this['_suggestions']['delete'](_0x308d72['id']),this['_suggestionState']['delete'](_0x308d72),_0x4dd813;});}return _0x308d72;}['_isBlockAttribute'](_0x2e72e7){return this['_blockAttributeKeys']['has'](_0x2e72e7);}['_updateSuggestionData'](_0x18c005,_0x1f7ff1){const _0x36a43a=this['editor']['plugins']['get']('PendingActions'),_0x39f7a5=this['getSuggestion'](_0x18c005);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x39f7a5['_saved']){const _0x4381ff=_0x36a43a['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x18c005,_0x1f7ff1)['then'](()=>{_0x36a43a['remove'](_0x4381ff);});}else _0x39f7a5['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x18c005,_0x1f7ff1);});}}['_getSuggestionData'](_0x2d78a5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3cf89a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2d78a5);}['_handleNewSuggestionMarker'](_0x1e5238){const {id:_0x2ce636,type:_0x3b5de8,subType:_0x1a72d2,authorId:_0x5e1907}=this['_splitMarkerName'](_0x1e5238),_0x1a5716=this['_suggestions']['get'](_0x2ce636)||this['_createSuggestion'](_0x3b5de8,_0x1a72d2,_0x2ce636,_0x5e1907,{});switch(this['_checkSuggestionCorrectness'](_0x1a5716,_0x3b5de8,_0x1a72d2,_0x5e1907),this['_suggestionState']['get'](_0x1a5716)){case'notReady':this['_getSuggestionData'](_0x2ce636)['then'](_0x163d8e=>{let _0x21881b=Promise['resolve']();_0x163d8e['hasComments']&&(_0x21881b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2ce636})),_0x21881b['then'](()=>{this['addSuggestionData'](_0x163d8e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1a5716,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2ce636,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1a5716,'ready'),this['fire']('suggestionLoaded',_0x1a5716);break;case'ready':this['fire']('suggestionChanged',_0x1a5716);}return _0x1a5716['addMarkerName'](_0x1e5238),_0x1a5716;}['_refreshSuggestionsChain'](_0x310ae2){const _0xf0491e=Array['from'](_0x310ae2),_0x371e66=_0xf0491e['filter'](_0xa1b7fe=>'attribute'==_0xa1b7fe['type']);this['_refreshAttributeSuggestionsChain'](_0x371e66);const _0x4bcfba=_0xf0491e['filter'](_0x3ddd5a=>!_0x3ddd5a['isMultiRange']&&'attribute'!=_0x3ddd5a['type']),_0x7c1dfd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x47b83f=>!_0x47b83f['isMultiRange']&&'attribute'!=_0x47b83f['type']),_0x19b7e2=_0x7c1dfd['filter'](_0x36e086=>!_0x310ae2['has'](_0x36e086)),_0x45b991=new Map(_0x7c1dfd['map'](_0x29a946=>[_0x29a946,this['_suggestionFactory']['getSuggestionCallback'](_0x29a946['type'],_0x29a946['subType'],'chain')])),_0x1219ea=new Map(_0x7c1dfd['map'](_0x23d6eb=>[_0x23d6eb,_0x23d6eb['getFirstRange']()])),_0x58f084=new Set(),_0x4634d5=new Set();for(let _0x3d81d5=0x0;_0x3d81d5<_0x4bcfba['length'];_0x3d81d5++)_0x51294a(_0x4bcfba[_0x3d81d5],_0x4bcfba,_0x3d81d5+0x1);for(let _0x32b6da=0x0;_0x32b6da<_0x4bcfba['length'];_0x32b6da++)_0x51294a(_0x4bcfba[_0x32b6da],_0x19b7e2,0x0);const _0x53caeb=new Set();for(let _0x107247=0x0;_0x107247<_0x4bcfba['length'];_0x107247++){const _0x1c46f5=_0x4bcfba[_0x107247];!_0x4634d5['has'](_0x1c46f5)&&_0x1c46f5['previous']&&(_0x53caeb['add'](_0x1c46f5['previous']),_0x1c46f5['previous']['next']===_0x1c46f5&&(_0x1c46f5['previous']['next']=null),_0x1c46f5['previous']=null),!_0x58f084['has'](_0x1c46f5)&&_0x1c46f5['next']&&(_0x53caeb['add'](_0x1c46f5['next']),_0x1c46f5['next']['previous']===_0x1c46f5&&(_0x1c46f5['next']['previous']=null),_0x1c46f5['next']=null);}function _0x51294a(_0x51bc53,_0x395c53,_0x5b1810){for(let _0x488da2=_0x5b1810;_0x488da2<_0x395c53['length'];_0x488da2++){const _0x104517=_0x126e0c(_0x51bc53,_0x395c53[_0x488da2]);_0x104517&&(_0x104517[0x0]['next']=_0x104517[0x1],_0x104517[0x1]['previous']=_0x104517[0x0],_0x58f084['add'](_0x104517[0x0]),_0x4634d5['add'](_0x104517[0x1]));}}function _0x126e0c(_0x443e67,_0x2ee205){if(_0x443e67['author']['id']!==_0x2ee205['author']['id'])return null;const _0x580ce7=_0x45b991['get'](_0x443e67)(_0x443e67,_0x2ee205,_0x1219ea['get'](_0x443e67),_0x1219ea['get'](_0x2ee205));if(!_0x580ce7)return null;return _0x45b991['get'](_0x2ee205)(_0x443e67,_0x2ee205,_0x1219ea['get'](_0x443e67),_0x1219ea['get'](_0x2ee205))?_0x580ce7[0x1]['commentThread']&&_0x580ce7[0x1]['commentThread']['length']?null:_0x580ce7:null;}_0x53caeb['size']&&this['_refreshSuggestionsChain'](_0x53caeb);}['_refreshAttributeSuggestionsChain'](_0x3594c2){if(0x0==_0x3594c2['length'])return;const _0x41e372=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x164e73=>'attribute'==_0x164e73['type']&&_0x164e73['_isDataLoaded']),_0x9f4170=[],_0x39f9c2=new Map();for(const _0x291571 of _0x41e372){const _0x187acb=_0x16ce2e(_0x291571['attributes']);_0x39f9c2['has'](_0x187acb)||(_0x39f9c2['set'](_0x187acb,_0x9f4170['length']),_0x9f4170['push']([]));const _0x3180e6=_0x39f9c2['get'](_0x187acb);_0x9f4170[_0x3180e6]['push'](_0x291571);}!(function(){_0x9f4170['sort']((_0x1e538d,_0x44b4b0)=>{const _0xab9b21=_0x1e538d[0x0]['createdAt'],_0x356653=_0x44b4b0[0x0]['createdAt'];return _0xab9b21==_0x356653?_0x1e538d[0x0]['attributes']['groupId']<_0x44b4b0[0x0]['attributes']['groupId']?-0x1:0x1:_0xab9b21<_0x356653?-0x1:0x1;});for(const _0xda94ec of _0x9f4170)_0xda94ec['sort']((_0x349101,_0x40d1d0)=>_0x349101['id']<_0x40d1d0['id']?-0x1:0x1);}());for(let _0x383f9d=0x0;_0x383f9d<_0x9f4170['length'];_0x383f9d++){if(0x0==_0x9f4170[_0x383f9d]['length'])continue;const _0x4f9e67=[];for(let _0x325cb7=_0x383f9d+0x1;_0x325cb7<_0x9f4170['length'];_0x325cb7++)0x0!=_0x9f4170[_0x325cb7]['length']&&_0x2be887(_0x9f4170[_0x383f9d],_0x9f4170[_0x325cb7])&&_0x4f9e67['push'](_0x325cb7);for(const _0x18d035 of _0x4f9e67)_0x9f4170[_0x383f9d]=_0x9f4170[_0x383f9d]['concat'](_0x9f4170[_0x18d035]),_0x9f4170[_0x18d035]=[];}for(const _0x245236 of _0x9f4170)for(let _0x292598=0x0;_0x292598<_0x245236['length'];_0x292598++)_0x245236[_0x292598]['next']=_0x245236[_0x292598+0x1]||null;for(const _0x23aaed of _0x9f4170)for(let _0x19378b=0x0;_0x19378b<_0x23aaed['length'];_0x19378b++)_0x23aaed[_0x19378b]['previous']=_0x23aaed[_0x19378b-0x1]||null;function _0x2be887(_0x4998d7,_0x13daf7){if(_0x4998d7[0x0]['attributes']['groupId']!==_0x13daf7[0x0]['attributes']['groupId']&&_0x4998d7[0x0]['author']!==_0x13daf7[0x0]['author'])return!0x1;if(!function(_0x445b64,_0x333e1a){if(!_0x445b64['hasComments']&&!_0x333e1a['hasComments'])return!0x0;if(_0x445b64['hasComments']&&_0x333e1a['hasComments'])return!0x1;if(_0x445b64['hasComments']&&_0x333e1a['createdAt']<_0x445b64['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x333e1a['hasComments']&&_0x445b64['createdAt']<_0x333e1a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4998d7[0x0],_0x13daf7[0x0]))return!0x1;const _0x5ec1e3=xt(_0x4998d7[0x0]['attributes'],'groupId'),_0x5ed684=xt(_0x13daf7[0x0]['attributes'],'groupId');if(!_0x35c1e7(_0x5ec1e3,_0x5ed684))return!0x1;return!!_0x4998d7['every'](_0x22a0df=>_0x13daf7['some'](_0x5eb66f=>_0x22a0df['getFirstRange']()['isEqual'](_0x5eb66f['getFirstRange']())))&&_0x13daf7['every'](_0x4f6808=>_0x4998d7['some'](_0x313494=>_0x4f6808['getFirstRange']()['isEqual'](_0x313494['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x582f65){const _0xe4a443=Array['from'](_0x582f65),_0x4bf3eb=this['getSuggestions']({'skipNotAttached':!0x0}),_0x204218=_0x4bf3eb['filter'](_0x29b3b2=>!_0x582f65['has'](_0x29b3b2)),_0x95375f=new Map(_0xe4a443['map'](_0x4a32f5=>[_0x4a32f5,this['_suggestionFactory']['getSuggestionCallback'](_0x4a32f5['type'],_0x4a32f5['subType'],'join')])),_0x357f0e=new Map(_0x4bf3eb['map'](_0x3e56f4=>[_0x3e56f4,_0x3e56f4['getRanges']()]));for(let _0x5666dd=0x0;_0x5666dd<_0xe4a443['length'];_0x5666dd++){if(_0xd1e2d(this,_0xe4a443[_0x5666dd],_0xe4a443,_0x5666dd+0x1))return!0x0;}for(let _0x151bb8=0x0;_0x151bb8<_0xe4a443['length'];_0x151bb8++){if(_0xd1e2d(this,_0xe4a443[_0x151bb8],_0x204218,0x0))return!0x0;}return!0x1;function _0xd1e2d(_0x2c90be,_0x44bc5b,_0x572974,_0x4e0aec){for(let _0x1b3135=_0x4e0aec;_0x1b3135<_0x572974['length'];_0x1b3135++){const _0x5b9bf1=_0x572974[_0x1b3135];if(_0x5b9bf1['type']!==_0x44bc5b['type']||_0x5b9bf1['author']['id']!==_0x44bc5b['author']['id']||_0x5b9bf1['subType']!==_0x44bc5b['subType'])continue;if(!Lt(_0x44bc5b,_0x5b9bf1,['groupId']))continue;if('attribute'==_0x44bc5b['type']&&_0x44bc5b['data']['oldValue']!=_0x5b9bf1['data']['oldValue'])continue;if('attribute'==_0x44bc5b['type']&&_0x2c90be['_isBlockAttribute'](_0x44bc5b['data']['key']))continue;if('formatBlock'==_0x44bc5b['type']){const _0x3f7f2b=_0x2c90be['editor']['model'],_0x555cd5=_0x44bc5b['getContainedElement']();if(_0x555cd5&&(_0x3f7f2b['schema']['isObject'](_0x555cd5)||_0x3f7f2b['schema']['isLimit'](_0x555cd5)))continue;}const _0xb2b16b=_0x95375f['get'](_0x44bc5b),_0x7bcc7b=_0x357f0e['get'](_0x44bc5b),_0xbc1599=_0x357f0e['get'](_0x5b9bf1),_0x45756b=_0x44bc5b['commentThread']&&_0x44bc5b['commentThread']['length'],_0x187759=_0x5b9bf1['commentThread']&&_0x5b9bf1['commentThread']['length'];if(!_0x45756b&&_0xb2b16b(_0xbc1599,_0x7bcc7b))return _0x2c90be['_joinSuggestions'](_0x5b9bf1,_0x44bc5b),_0x357f0e['delete'](_0x44bc5b),!0x0;if(!_0x187759&&_0xb2b16b(_0x7bcc7b,_0xbc1599))return _0x2c90be['_joinSuggestions'](_0x44bc5b,_0x5b9bf1),_0x357f0e['delete'](_0x5b9bf1),!0x0;}return!0x1;}}['_joinSuggestions'](_0x194f0c,_0x33f85c){if(_0x194f0c['isMultiRange']){for(const _0x2d5a0a of _0x33f85c['getRanges']())_0x194f0c['addRange'](_0x2d5a0a);}else{const _0x2c7e86=_0x33f85c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x194f0c,this['_model']['createRange'](_0x194f0c['getFirstRange']()['start'],_0x2c7e86));}_0x33f85c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x58ed0c,_0x421c36){const _0x3b6d0a=_0x58ed0c['startsWith']('format')||_0x58ed0c['startsWith']('attribute')?'FORMATTING':_0x58ed0c['toUpperCase']();return o(this['editor']['locale'],_0x421c36+'_'+_0x3b6d0a+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x50cdb8=this['editor'];if(!_0x50cdb8['ui'])return;const {ariaLiveAnnouncer:_0x3e44d4}=_0x50cdb8['ui'];_0x176339(this['_model'],({left:_0x2586be,entered:_0x145ae5})=>{for(const _0x461035 of _0x2586be){const {group:_0x2b92ce,type:_0x1abc55}=this['_splitMarkerName'](_0x461035['name']);if('suggestion'===_0x2b92ce){_0x3e44d4['announce'](this['_getMarkerAnnouncementText'](_0x1abc55,'LEAVE'));break;}}for(const _0x1c84bb of _0x145ae5){const {group:_0x23721a,type:_0x22a0d7}=this['_splitMarkerName'](_0x1c84bb['name']);if('suggestion'===_0x23721a){_0x3e44d4['announce'](this['_getMarkerAnnouncementText'](_0x22a0d7,'ENTER'));break;}}});}['_processAttributeChanges'](_0x21c35d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x157747=this['editor'],_0x5ee9f1=_0x157747['model']['document']['differ']['getChanges']();if(0x0==_0x5ee9f1['length'])return!0x1;const _0x5c6ddf=[],_0x57553b=_0x5ee9f1['filter'](_0xad71f6=>'attribute'==_0xad71f6['type']),_0x5bf65a=_0x5ee9f1['filter'](_0x4f0bc6=>'insert'==_0x4f0bc6['type']&&'$text'!=_0x4f0bc6['name']),_0x7f8628=_0x5ee9f1['filter'](_0x380809=>'remove'==_0x380809['type']&&'$text'!=_0x380809['name']);for(const _0xd7d778 of _0x57553b)_0x5c6ddf['push']({'key':_0xd7d778['attributeKey'],'newValue':_0xd7d778['attributeNewValue'],'oldValue':_0xd7d778['attributeOldValue'],'range':Gt(_0xd7d778['range'],_0x157747['model'])});for(const _0x184a30 of _0x5bf65a){const _0x28ab45=_0x7f8628['find'](_0xac575c=>_0xac575c['position']['isEqual'](_0x184a30['position']));_0x28ab45&&_0x5c6ddf['push']({'key':m,'newValue':_0x184a30['name'],'oldValue':_0x28ab45['name'],'range':_0x157747['model']['createRangeOn'](_0x184a30['position']['nodeAfter'])});}return 0x0!=_0x5c6ddf['length']&&this['_reduceExistingSuggestions'](_0x21c35d,_0x5c6ddf);}['_processAttributeSuggestions'](_0x475130){let _0x43be03=!0x1;const _0x4e112f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x514f45=>_0x514f45['data']['newRange']&&_0x514f45['name']['startsWith']('suggestion:attribute:'));for(const _0x554de2 of _0x4e112f){const {subType:_0x1a5fa1,id:_0x197112}=this['_splitMarkerName'](_0x554de2['name']),_0x474824=_0x1a5fa1['split']('|')[0x0];for(const _0x31a278 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x31a278['id']!=_0x197112&&'attribute'==_0x31a278['type']&&_0x31a278['data']&&_0x31a278['data']['key']==_0x474824&&_0x31a278['getFirstRange']()['isIntersecting'](_0x554de2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x31a278,_0x554de2['data']['newRange'],_0x475130),_0x43be03=!0x0);}return _0x43be03;}['_recordAttributeChanges'](_0x564bdd){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x564bdd();}['_isRegisteredAttribute'](_0x50c177){const _0xdea71f=this['_isBlockAttribute'](_0x50c177),_0x3fbd25=this['_inlineAttributeKeys']['has'](_0x50c177);return _0xdea71f||_0x3fbd25;}['_reduceExistingSuggestions'](_0x233b30,_0x10fbef){if(0x0==_0x10fbef['length'])return!0x1;let _0x4cc442=!0x1;for(const _0x7688d5 of _0x10fbef){const _0xd53e9b=this['_findSuggestions'](_0x7688d5['range'],'attribute')['filter'](_0x32c4f8=>!_0x32c4f8['meta']['isNextTo'])['map'](_0x2df871=>_0x2df871['suggestion']),_0x4063ab=_0x16ce2e({'newValue':_0x7688d5['newValue']});_0xd53e9b['filter'](_0xc2965c=>{const [_0x324540,_0x5f0e9f]=_0xc2965c['subType']['split']('|');return _0x324540==_0x7688d5['key']&&_0x5f0e9f!=_0x4063ab;})['forEach'](_0x11e603=>{this['_reduceSuggestionAttributeRange'](_0x11e603,_0x7688d5['range'],_0x233b30),_0x4cc442=!0x0;});}return _0x4cc442;}['_reduceSuggestionAttributeRange'](_0x521a91,_0x43b355,_0x52ffca){const _0x568af9=_0x521a91['getFirstRange']()['getDifference'](_0x43b355);0x0!==_0x568af9['length']?0x1!==_0x568af9['length']?this['_breakSuggestionMarker'](_0x521a91,_0x43b355['start'],_0x43b355['end']):this['_setSuggestionRange'](_0x521a91,_0x568af9[0x0]):_0x52ffca['removeMarker'](_0x521a91['getFirstMarker']());}}class Rt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5b18ce){this['_editor']=_0x5b18ce,this['_model']=_0x5b18ce['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x22aaf0,_0x5820d8,_0x58ab72,_0x2df786,_0x4fe11a,_0x47ca31){return new u(this['_model'],{'type':_0x22aaf0,'subType':_0x5820d8,'id':_0x58ab72,'author':_0x2df786,'creator':_0x2df786,'attributes':_0x4fe11a,'onAttributesChange':_0x47ca31,'onAccept':(..._0x2f5d8)=>this['getSuggestionCallback'](_0x22aaf0,_0x5820d8,'accept')(..._0x2f5d8),'onDiscard':(..._0x374bfe)=>this['getSuggestionCallback'](_0x22aaf0,_0x5820d8,'discard')(..._0x374bfe)});}['registerCustomCallback'](_0x20b8cc,_0x24b6ba,_0x9b51c4,_0x422924){const _0x58884c=_0x20b8cc+':'+_0x24b6ba+':'+_0x9b51c4;this['_customCallbacks']['set'](_0x58884c,_0x422924);}['getSuggestionCallback'](_0x512837,_0x53d785,_0x5cfd60){const _0x22ff5d=_0x512837+':'+_0x53d785+':'+_0x5cfd60;return this['_customCallbacks']['get'](_0x22ff5d)||this['_defaultCallbacks']['get'](_0x512837+':'+_0x5cfd60);}['_registerDefaultCallbacks'](){const _0x192011=()=>!0x1,_0xc15e6c=_0x2ee029=>{_0x2ee029['sort']((_0x460087,_0x5390e7)=>_0x460087['start']['isBefore'](_0x5390e7['start'])?0x1:-0x1),this['_model']['change'](_0x17332b=>{for(const _0x1d5a41 of _0x2ee029){let _0x186f2e;_0x186f2e=_0x1d5a41['end']['isAtEnd']&&_0x1d5a41['end']['parent']==_0x1d5a41['start']['nodeAfter']?_0x17332b['createSelection'](_0x1d5a41['start']['nodeAfter'],'on'):_0x17332b['createSelection'](_0x1d5a41),this['_model']['deleteContent'](_0x186f2e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3ac186=(_0x277cc4,_0x16364a)=>{_0x16364a&&this['_model']['change'](_0x36571c=>{const {commandName:_0x31bd68,commandParams:_0x2e707a=[]}=_0x16364a,_0x3e56dc=_0x277cc4['map'](_0x26c59a=>(Et(_0x26c59a)&&(_0x26c59a=this['_model']['createRange'](_0x26c59a['end'])),_0x26c59a))['filter'](_0x4af959=>'$graveyard'!==_0x4af959['root']['rootName']);if(_0x3e56dc['length']<0x1)return;const _0x5af888=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x25444f=>_0x948f0b['fromRange'](_0x25444f));_0x36571c['setSelection'](_0x3e56dc);for(const _0x57e8f2 of this['_editor']['commands']['commands']())_0x57e8f2['refresh']();_0x2e707a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x31bd68,..._0x2e707a);const _0x1b3f85=_0x5af888['filter'](_0x37b0fe=>'$graveyard'!=_0x37b0fe['root']['rootName']);_0x1b3f85['length']>0x0&&_0x36571c['setSelection'](_0x1b3f85);for(const _0x204729 of _0x5af888)_0x204729['detach']();});},_0x3eb6ca=(_0xba3be5,_0x109768)=>0x1==_0xba3be5['length']&&0x1==_0x109768['length']&&_0xba3be5[0x0]['end']['isEqual'](_0x109768[0x0]['start']),_0x3cc224=(_0x52dce9,_0x45962e,_0x3dae71,_0x125399)=>Pt(_0x52dce9,_0x45962e,_0x3dae71,_0x125399,this['_model'])?[_0x52dce9,_0x45962e]:Pt(_0x45962e,_0x52dce9,_0x125399,_0x3dae71,this['_model'])?[_0x45962e,_0x52dce9]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x192011),this['_defaultCallbacks']['set']('insertion:discard',_0xc15e6c),this['_defaultCallbacks']['set']('insertion:join',_0x3eb6ca),this['_defaultCallbacks']['set']('insertion:chain',_0x3cc224),this['_defaultCallbacks']['set']('deletion:accept',_0xc15e6c),this['_defaultCallbacks']['set']('deletion:discard',_0x192011),this['_defaultCallbacks']['set']('deletion:join',_0x3eb6ca),this['_defaultCallbacks']['set']('deletion:chain',_0x3cc224),this['_defaultCallbacks']['set']('formatInline:accept',_0x3ac186),this['_defaultCallbacks']['set']('formatInline:discard',_0x192011),this['_defaultCallbacks']['set']('formatInline:join',_0x3eb6ca),this['_defaultCallbacks']['set']('formatInline:chain',_0x192011),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3ac186),this['_defaultCallbacks']['set']('formatBlock:discard',_0x192011),this['_defaultCallbacks']['set']('formatBlock:join',_0x3eb6ca),this['_defaultCallbacks']['set']('formatBlock:chain',_0x192011),this['_defaultCallbacks']['set']('attribute:accept',_0x192011),this['_defaultCallbacks']['set']('attribute:discard',(_0x4c8ba2,_0xbb5002)=>{if(!_0xbb5002)return;const _0x24e2a2=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x473aa3=>{if(_0xbb5002['key']==m)for(const _0x25f94d of _0x4c8ba2){const _0x7362e=_0x25f94d['start']['nodeAfter'],_0x392684=_0xbb5002['oldValue'];_0x473aa3['rename'](_0x7362e,_0x392684);}else{if(_0x24e2a2['_isBlockAttribute'](_0xbb5002['key'])){for(const _0x2bd8f3 of _0x4c8ba2)void 0x0!==_0xbb5002['oldValue']?_0x473aa3['setAttribute'](_0xbb5002['key'],_0xbb5002['oldValue'],_0x2bd8f3['start']['nodeAfter']):_0x473aa3['removeAttribute'](_0xbb5002['key'],_0x2bd8f3['start']['nodeAfter']);}else{for(const _0x451334 of _0x4c8ba2)_0xbb5002['oldValue']?_0x473aa3['setAttribute'](_0xbb5002['key'],_0xbb5002['oldValue'],_0x451334):_0x473aa3['removeAttribute'](_0xbb5002['key'],_0x451334);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3eb6ca);}}function Tt(_0x3e74c4,_0x151f99,_0x58bd56){for(const _0x4f0fd1 of _0x151f99['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4f0fd1['root']==_0x4f0fd1)return!0x1;if(!_0x58bd56['containsItem'](_0x4f0fd1))return!0x1;if(_0x3e74c4['isObject'](_0x4f0fd1)||_0x3e74c4['isLimit'](_0x4f0fd1))return!0x0;}return!0x1;}function Et(_0x12832b){return _0x12832b['end']['parent']==_0x12832b['start']['nodeAfter']&&_0x12832b['end']['isAtStart'];}function Vt(_0x46bd26,_0x4e7242,_0x5265b2,_0x19099f){const _0x393fd6=_0x1fdb21=>!_0x1fdb21['item']['is']('$textProxy')&&!_0x19099f['isObject'](_0x1fdb21['item']),_0x54d068=_0x46bd26['start']['getLastMatchingPosition'](_0x393fd6),_0x459a7e=_0x46bd26['end']['getLastMatchingPosition'](_0x393fd6,{'direction':'backward'});return(!_0x46bd26['start']['isEqual'](_0x54d068)||!_0x46bd26['end']['isEqual'](_0x459a7e))&&(_0x54d068['isBefore'](_0x459a7e)?_0x5265b2['updateMarker'](_0x4e7242,{'range':_0x5265b2['createRange'](_0x54d068,_0x459a7e)}):_0x5265b2['removeMarker'](_0x4e7242),!0x0);}function Ut(_0x1edf57){return _0x16ce2e(_0x1edf57);}function Ot(_0x502810){const _0x122f35=_0x502810['start']['nodeAfter'];return _0x122f35&&_0x122f35['is']('element');}function Gt(_0x3a59e1,_0x4b503c){return null==_0x3a59e1['end']['nodeBefore']&&_0x3a59e1['end']['parent']==_0x3a59e1['start']['nodeAfter']?Ft(_0x3a59e1['start']['nodeAfter'],_0x4b503c):_0x3a59e1;}function Ft(_0x5b3967,_0x3b648d){const _0x1a7bfe=_0x3b648d['schema']['isObject'](_0x5b3967)||_0x3b648d['schema']['isSelectable'](_0x5b3967);return _0x3b648d['createRange'](_0x3b648d['createPositionAt'](_0x5b3967,'before'),_0x1a7bfe?_0x3b648d['createPositionAfter'](_0x5b3967):_0x3b648d['createPositionAt'](_0x5b3967,'end'));}function Pt(_0x350c77,_0x1cb857,_0x3261d3,_0x4058f1,_0x561855){if(!Lt(_0x350c77,_0x1cb857))return!0x1;if(_0x3261d3['end']['isEqual'](_0x4058f1['start']))return!0x0;if(_0x350c77['type']!=_0x1cb857['type'])return!0x1;if(!_0x3261d3['end']['isTouching'](_0x4058f1['start']))return!0x1;const _0x14bde8=_0x561855['createRange'](_0x3261d3['end'],_0x4058f1['start'])['getWalker']();for(const _0x147de9 of _0x14bde8)if(['elementStart','elementEnd']['includes'](_0x147de9['type'])&&_0x561855['schema']['isLimit'](_0x147de9['item']))return!0x1;return!0x0;}function Lt(_0x53af9c,_0x5089e2,_0x31cc15=[]){return!(!_0x53af9c['_isDataLoaded']||!_0x5089e2['_isDataLoaded'])&&_0x35c1e7(xt(_0x53af9c['attributes'],_0x31cc15),xt(_0x5089e2['attributes'],_0x31cc15));}function Ht(_0xe97712,_0x166ddf){const _0x2026c5=qt(_0xe97712['attributes']),_0x59b4bd=qt(_0x166ddf);if(!_0xe97712['_isDataLoaded'])return!0x1;for(const _0x306d81 of Object['keys'](_0x59b4bd))if(!_0x35c1e7(_0x2026c5[_0x306d81],_0x59b4bd[_0x306d81]))return!0x1;return!0x0;}function qt(_0x1ee201){const _0x1d81d8=Object['assign']({},_0x1ee201);return delete _0x1d81d8['skipNestingCheck'],delete _0x1d81d8['tablePasteChainId'],_0x1d81d8;}class ne extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x28acc2(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x451d03,_0x15bd4c,_0x54cf53,_0x21a098){super(),this['model']=_0x15bd4c,this['view']=_0x54cf53,this['commentThreadController']=_0x21a098,this['_editor']=_0x451d03,this['_acceptCommand']=_0x451d03['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x451d03['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x454d72,_0x3166ef)=>_0x454d72||_0x3166ef),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2dd03e=>_0x2dd03e&&this['_editor']['model']['canEditAt'](_0x15bd4c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x39c168=>_0x39c168&&this['_editor']['model']['canEditAt'](_0x15bd4c['getRanges']())),this['_pendingAction']=null,_0x54cf53['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x54cf53,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x54cf53,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x54cf53,'change:isDirty',()=>{_0x54cf53['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 _0x512003=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x512003);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x590774{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x473f2e,_0x4e9ed4,_0xa4e79e,_0x1dda9f){super(_0x473f2e),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x4e9ed4['authoredAt']),this['bind']('authoredAt')['to'](_0x4e9ed4),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x4e9ed4,this['_localUser']=_0xa4e79e,this['_config']=_0x1dda9f,_0x1dda9f['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:_0x50c3f5}=this['_config'];this['commentsListView']=new _0x50c3f5(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',_0x444ff7=>_0x444ff7+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x255d81,_0x3ae867)=>_0x255d81||!!_0x3ae867);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4258ba}=this['_config'],_0x385962=new _0x4258ba(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x288e80=_0x385962['commentInputView'];return _0x385962['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x288e80,'value',(_0x1ddcec,_0x3f2ee4,_0x3ea583)=>!!_0x3ea583||_0x1ddcec&&!_0x3f2ee4),_0x288e80['on']('submit',(_0x48e84a,_0x16c133)=>{this['fire']('addComment',_0x16c133),_0x288e80['editor']['setData']('');}),_0x288e80['on']('cancel',()=>this['focus']()),_0x288e80['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x385962;}}class ie extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x406c25,_0x39463e,_0x2c38c0,_0x34849c){super(_0x406c25,_0x39463e,_0x2c38c0,_0x34849c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x57cf0f=>_0x57cf0f&&_0x57cf0f[0x0]?_0x57cf0f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5c9960,_0x10d3bc)=>{let _0x2c8ca9='';for(const _0x1e183e of _0x5c9960)_0x2c8ca9+='<p>'+ds(_0x1e183e['content'],_0x1e183e['color'])+'</p>';return _0x10d3bc?_0x2c8ca9:_0x39a1b4(_0x2c8ca9,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x406c25,'Accept\x20suggestion'),_0x5dc603['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x406c25,'Discard\x20suggestion'),_0x5dc603['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x315dbd(_0x406c25,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x3b5919=this['bindTemplate'],_0x159a73=[{'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':_0x3b5919['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3b5919['to']('authoredAt',_0x1b09ae=>this['_config']['formatDateTime'](_0x1b09ae))}]}]},{'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']&&_0x159a73['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x2e342d={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x3b5919['if']('isActive','ck-suggestion-wrapper--active'),_0x3b5919['to']('type',_0x322722=>'ck-suggestion-'+_0x322722),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':_0x159a73}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x2e342d['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)),_0x2e342d;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x187c24,_0x20729f,_0x1c278d)=>{this['_descriptionElement']['innerHTML']=_0x1c278d;});}['_createButton'](_0x1e33a9,_0x12bf7f,_0x28ca25,_0x3838da,_0x22a3de){const _0x45276b=new _0x56024e(this['locale']);return _0x45276b['set']({'label':_0x1e33a9,'icon':_0x12bf7f,'tooltip':!0x0,'tooltipPosition':_0x22a3de}),_0x45276b['extendTemplate']({'attributes':{'class':_0x28ca25}}),_0x45276b['on']('execute',()=>{this['fire'](_0x3838da,this['_model']['id']);}),_0x45276b;}['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(_0x1a7b89,_0x3e200f){let _0x27bc93='';return _0x27bc93+=_0x1a7b89['split']('*')['map']((_0x2cab93,_0x279c8f)=>_0x279c8f%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x2cab93)+'</span>':us(_0x2cab93))['join'](''),_0x3e200f&&(_0x27bc93+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3e200f['value']+'\x22\x20title=\x22'+_0x3e200f['title']+'\x22></span>'),_0x27bc93;}function us(_0x17b800){const _0x11b500=document['createElement']('span');return _0x11b500['innerText']=_0x17b800,_0x11b500['innerHTML'];}var ae='<!--\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 _0x15c086{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x391bb8,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x112b63){super(_0x112b63),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x40f9fc=this['editor']['config'];_0x40f9fc['define']('trackChanges.SuggestionThreadView',ie),_0x40f9fc['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x40f9fc['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1c7f90,_0x4578c9){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4b61ba,_0x19c0d1]of this['_handleControllerBuffer']){const _0x5dc013=this['_suggestionToController']['has'](_0x4b61ba);_0x5dc013||_0x19c0d1?_0x5dc013&&_0x19c0d1&&this['_destroyController'](_0x4b61ba):this['_initializeController'](_0x4b61ba);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1c7f90,_0x4578c9);}['init'](){const _0x45f23c=this['editor'],_0x3865a0=_0x45f23c['plugins']['get']('TrackChangesEditing'),_0x3a5ebf=_0x45f23c['plugins']['get']('Annotations'),_0x563e47=_0x45f23c['plugins']['get']('EditorAnnotations'),_0x4b2b95=_0x45f23c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x563e47['addSourceCollector'](()=>{const _0x562361=[];for(const [_0x1e5fdc,_0xa0f12c]of Array['from'](this['_suggestionToController'])){const _0x26bcb8=_0x1e5fdc['getAllAdjacentSuggestions'](),_0xcc60f1=[];for(const _0x27c338 of _0x26bcb8){if(!_0x27c338['isInContent'])continue;if(_0x27c338['isMultiRange']){_0xcc60f1['push'](..._0x27c338['getRanges']());continue;}const _0x55a6bc=_0x27c338['getFirstRange']();if(_0xcc60f1['length']>0x0){const _0x3cd8c3=_0xcc60f1[0x0]['getJoined'](_0x55a6bc);if(_0x3cd8c3){_0xcc60f1[0x0]=_0x3cd8c3;continue;}}_0xcc60f1['push'](_0x55a6bc);}_0x562361['push']([_0xa0f12c['view'],_0xcc60f1]);}return _0x562361;}),this['listenTo'](_0x3865a0,'suggestionLoaded',(_0x1a8535,_0x475643)=>{this['listenTo'](_0x475643,'change:previous',(_0x248fce,_0x215a3a,_0x219258,_0x2cce6f)=>{_0x475643['isInContent']&&(null==_0x219258?(this['_updateController'](_0x2cce6f['head']),this['_handleSuggestionControllerDelayed'](_0x475643,!0x1)):(this['_updateController'](_0x219258['head']),null==_0x2cce6f&&this['_handleSuggestionControllerDelayed'](_0x475643,!0x0)));}),null!==_0x475643['previous']?this['_updateController'](_0x475643['head']):this['_handleSuggestionControllerDelayed'](_0x475643,!0x1);}),this['listenTo'](_0x3865a0,'suggestionUnloaded',(_0x1baace,_0x4e696e,_0x2ffb95)=>{this['stopListening'](_0x4e696e,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4e696e),this['_suggestionToController']['has'](_0x4e696e)&&this['_destroyController'](_0x4e696e),_0x2ffb95&&this['_updateController'](_0x2ffb95['head']);}),this['listenTo'](_0x3865a0,'suggestionChanged',(_0x3420ff,_0x1cef1e)=>{this['_updateController'](_0x1cef1e);}),this['listenTo'](_0x3a5ebf,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4b2b95,'addComment',(_0x2ddb26,{threadId:_0x4ada8a,isFromAdapter:_0x4f54e5})=>{if(_0x4f54e5||!_0x3865a0['hasSuggestion'](_0x4ada8a))return;const _0x30e5d8=_0x3865a0['getSuggestion'](_0x4ada8a);this['_suggestionToController']['get'](_0x30e5d8)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0xbea36b=this['editor']['plugins']['get']('Annotations'),_0x2109e7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44a015=Array['from'](_0xbea36b['activeAnnotations'],_0xfc64cc=>_0xfc64cc['innerView'])['filter'](_0x193374=>this['_viewToController']['has'](_0x193374)),_0x37f593=[];for(const _0x2bcec1 of _0x44a015){const _0x6f1f3d=this['_viewToController']['get'](_0x2bcec1)['model']['getAllAdjacentSuggestions']();_0x37f593['push'](..._0x6f1f3d['reduce']((_0xb4c9f6,_0x19a46e)=>[..._0xb4c9f6,..._0x19a46e['getMarkerNames']()],[]));}_0x2109e7['activeMarkers']=_0x37f593;}['_addUIComponentsToFactory'](){const _0x737a73=this['editor'],_0x5a4839=_0x737a73['locale'],_0x2bae9b=o(_0x5a4839,'Track\x20changes'),_0x5dc6bc=new Wt([{'type':'switchbutton','model':new _0x3a5c24({'withText':!0x0,'isToggleable':!0x0,'label':_0x2bae9b,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3a5c24({'withText':!0x0,'label':o(_0x5a4839,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a5c24({'withText':!0x0,'label':o(_0x5a4839,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a5c24({'withText':!0x0,'label':o(_0x5a4839,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a5c24({'withText':!0x0,'label':o(_0x5a4839,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x5b7cf1 of _0x5dc6bc)if(re(_0x5b7cf1)){const _0x14b9cd=_0x737a73['commands']['get'](_0x5b7cf1['model']['commandName']);_0x5b7cf1['model']['bind']('isOn','isEnabled')['to'](_0x14b9cd,'value','isEnabled');}_0x737a73['ui']['componentFactory']['add']('trackChanges',_0x7a322=>this['_createToolbarButton'](_0x7a322,_0x5dc6bc,_0x2bae9b)),_0x737a73['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2d59b0=>this['_createMenuBarMenu'](_0x2d59b0,_0x5dc6bc,_0x2bae9b));}['_createToolbarButton'](_0x1c07c6,_0x5424f2,_0xb88098){const _0x197ac0=Jt(_0x1c07c6,te),_0x4a56db=this['editor']['commands']['get']('trackChanges');_0x197ac0['buttonView']['set']({'tooltip':_0xb88098,'label':_0xb88098,'icon':ae}),_0x197ac0['buttonView']['bind']('isOn')['to'](_0x4a56db,'value'),_0x197ac0['buttonView']['on']('execute',()=>{_0x4a56db['execute'](),this['editor']['editing']['view']['focus']();}),zt(_0x197ac0,_0x5424f2,{'role':'menu'});const _0x2835c8=[];for(const _0x2646b4 of _0x5424f2)re(_0x2646b4)&&_0x2835c8['push'](this['editor']['commands']['get'](_0x2646b4['model']['commandName']));const _0x41c45a=_0x197ac0['buttonView'];return _0x41c45a['actionView']['unbind']('isEnabled'),_0x41c45a['arrowView']['unbind']('isEnabled'),_0x41c45a['actionView']['bind']('isEnabled')['to'](_0x4a56db,'isEnabled'),_0x41c45a['arrowView']['bind']('isEnabled')['toMany'](_0x2835c8,'isEnabled',(..._0x540d2a)=>_0x540d2a['some'](_0x202aba=>_0x202aba)),_0x197ac0['on']('execute',_0x5afe40=>{this['editor']['execute'](_0x5afe40['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x197ac0;}['_createMenuBarMenu'](_0x41fca4,_0x10c032,_0x59c049){const _0x23233f=new Qt(_0x41fca4),_0x4833ce=this['editor']['commands']['get']('trackChanges');_0x23233f['buttonView']['set']({'label':_0x59c049,'icon':ae});const _0x25e8aa=new Xt(_0x41fca4);for(const _0x4e28a3 of _0x10c032){if('separator'==_0x4e28a3['type']){_0x25e8aa['items']['add'](new Kt(_0x41fca4));continue;}const _0x57ed6d=new Yt(_0x41fca4,_0x23233f),_0x2b60f3=new Zt(_0x41fca4),_0x2818f4=_0x4e28a3['model'];_0x2b60f3['bind'](...Object['keys'](_0x2818f4))['to'](_0x2818f4),_0x2b60f3['delegate']('execute')['to'](_0x23233f),_0x2b60f3['on']('execute',()=>{this['editor']['execute'](_0x2818f4['commandName']),this['editor']['editing']['view']['focus']();}),_0x57ed6d['children']['add'](_0x2b60f3),_0x25e8aa['items']['add'](_0x57ed6d);}return _0x23233f['bind']('isEnabled')['to'](_0x4833ce,'isEnabled'),_0x23233f['panelView']['children']['add'](_0x25e8aa),_0x23233f;}['_initializeController'](_0x145d27){const _0x26c094=this['editor'],_0x450936=_0x26c094['config'],_0x11e734=_0x26c094['plugins']['get']('Annotations'),_0x2ae6e8=_0x26c094['plugins']['get']('CommentsRepository'),_0x1b26f0=_0x26c094['plugins']['get']('EditorAnnotations'),_0x349faf=_0x26c094['plugins']['get'](_0x391bb8)['me'],_0x26236f=_0x450936['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x49d520,CommentThreadInputView:_0x4ea307}=_0x26c094['plugins']['get']('CommentsUI');let _0x25a0b1,_0x3df32d;this['_annotationViews']['has'](_0x145d27['id'])?(_0x3df32d=this['_annotationViews']['get'](_0x145d27['id']),_0x25a0b1=_0x3df32d['mainView']):(_0x25a0b1=new _0x26236f(_0x26c094['locale'],_0x145d27,_0x349faf,{'disableComments':this['_disableComments'],'editorConfig':_0x450936['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x450936['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x450936['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x450936['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x14289b(_0x450936['get']('locale')),'CommentView':_0x450936['get']('comments')['CommentView'],'CommentsListView':_0x49d520,'CommentThreadInputView':_0x4ea307}),_0x25a0b1['acceptButton']['on']('execute',()=>{_0x26c094['editing']['view']['focus']();}),_0x25a0b1['discardButton']['on']('execute',()=>{_0x26c094['editing']['view']['focus']();}),_0x3df32d=_0x11e734['createAnnotationView'](this['editor']['locale'],_0x25a0b1),_0x3df32d['bind']('isDirty')['to'](_0x25a0b1,'isDirty'),_0x3df32d['bind']('length')['to'](_0x25a0b1),_0x3df32d['bind']('type')['to'](_0x25a0b1,'type',_0xd491c2=>'suggestion-'+_0xd491c2),this['_annotationViews']['set'](_0x145d27['id'],_0x3df32d));const _0x58a1ea=_0x2ae6e8['createCommentThreadController'](_0x145d27['commentThread'],_0x25a0b1),_0x1bb467=new ne(_0x26c094,_0x145d27,_0x25a0b1,_0x58a1ea),_0xecc650=_0x145d27['getAllAdjacentSuggestions']()['filter'](_0x59d98f=>_0x59d98f['isInContent']);_0x25a0b1['descriptionParts']=_0x26c094['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xecc650),this['_suggestionToController']['set'](_0x145d27,_0x1bb467),this['_viewToController']['set'](_0x25a0b1,_0x1bb467);const _0x1721b6=_0x11e734['createAnnotation']({'view':_0x3df32d,'target':()=>{const _0x4b28f1=[],_0x29eb2b=_0x145d27['getAllAdjacentSuggestions']()['filter'](_0x13298a=>_0x13298a['isInContent']);for(const _0x2988ae of _0x29eb2b)_0x4b28f1['push'](..._0x2988ae['getMarkers']());return _0x492e53(_0x26c094['editing'],_0x4b28f1);},'type':()=>'suggestion-'+_0x1bb467['view']['type']});_0x2ae6e8['_bindAnnotationToEditors'](_0x25a0b1,_0x1721b6),_0x11e734['add'](_0x1721b6),_0x1b26f0['registerAnnotation'](_0x1721b6);}['_destroyController'](_0xee5a5c){const _0x5e5dee=this['editor']['plugins']['get']('CommentsRepository'),_0x4e110e=this['editor']['plugins']['get']('Annotations'),_0x4ef237=this['_suggestionToController']['get'](_0xee5a5c),_0x20ef1d=_0x4ef237['view'],_0x1c06bc=_0x4e110e['getByInnerView'](_0x20ef1d);_0x5e5dee['_unbindEditors'](_0x20ef1d),_0x1c06bc&&_0x4e110e['remove'](_0x1c06bc),this['_suggestionToController']['delete'](_0xee5a5c),this['_viewToController']['delete'](_0x20ef1d),_0x4ef237['destroy']();}['_updateController'](_0x13c8fc){if(!_0x13c8fc['isInContent']||!this['_suggestionToController']['has'](_0x13c8fc))return;const _0x8b4f91=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9c309c=this['_suggestionToController']['get'](_0x13c8fc),_0x4081e6=_0x13c8fc['getAllAdjacentSuggestions']();_0x9c309c['view']['descriptionParts']=_0x8b4f91['descriptionFactory']['getDescriptions'](_0x4081e6);}['destroy'](){for(const _0x33bf6d of this['_suggestionToController']['keys']())this['_destroyController'](_0x33bf6d);for(const _0x464fd1 of this['_annotationViews']['values']())_0x464fd1['mainView']['destroy']();super['destroy']();}}function re(_0x16eaa1){return'model'in _0x16eaa1;}class k extends _0x15c086{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x2d440c){this['editor']['plugins']['get'](p)['adapter']=_0x2d440c;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x30047d){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x30047d);}['getSuggestions']({skipNotAttached:_0xa43110=!0x1,toJSON:_0x580eef=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xa43110,'toJSON':_0x580eef});}['getSuggestion'](_0x359617){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x359617);}}const T=['Pagination'];class P extends _0x15c086{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x3948e2=this['editor'];if(_0x3948e2['config']['define']('trackChangesData.editorCreator',_0x54ca34=>{const _0x124aa6=_0x3948e2['model']['document']['getRootNames']()['reduce']((_0x5ee15e,_0x10511e)=>(_0x5ee15e[_0x10511e]='',_0x5ee15e),{});return _0x3948e2['constructor']['create'](_0x124aa6,_0x54ca34);}),'function'!=typeof _0x3948e2['config']['get']('trackChangesData')['editorCreator'])throw new _0x3cf89a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x53fc38){return N(this['editor'],!0x0,_0x53fc38);}['getDataWithDiscardedSuggestions'](_0x283965){return N(this['editor'],!0x1,_0x283965);}}class D extends _0x15c086{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x425ba6){super(_0x425ba6),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(_0x9c1450){return void 0x0!==_0x9c1450['getRootsAttributes'];}async function N(_0x5dcdd7,_0x562bff,_0x2cc14e){const _0x37c0f1=_0x362255(_0x5dcdd7,T);_0x37c0f1['plugins']['push'](p,D),_0x37c0f1['rootsAttributes']=v(_0x5dcdd7)?_0x5dcdd7['getRootsAttributes']():void 0x0;const _0x46f144=document['createDocumentFragment'](),_0x5022fa=_0x5dcdd7['config']['get']('trackChangesData')['editorCreator'],_0x120612=await _0x5022fa(_0x37c0f1,()=>function(_0x39f1dd){const _0x19497c=document['createElement']('div');return _0x39f1dd['appendChild'](_0x19497c),_0x19497c;}(_0x46f144));!function(_0x4c96b9,_0x129472){const _0x146508=_0x4c96b9['model']['document']['getRootNames']()['reduce']((_0x2ab665,_0x5690b7)=>(_0x2ab665[_0x5690b7]=_0x4c96b9['data']['get']({'rootName':_0x5690b7}),_0x2ab665),{}),_0x19ca62=_0x4c96b9['plugins']['get']('Users')['users']['map'](_0x3d7966=>({'id':_0x3d7966['id'],'name':_0x3d7966['name']})),_0x4df581=_0x4c96b9['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2f19dd=_0x4c96b9['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x415d65=_0x129472['plugins']['get']('Users'),_0x3bf561=_0x129472['plugins']['get']('TrackChangesEditing'),_0x5d7102=_0x129472['plugins']['get']('CommentsRepository');for(const _0x2d5aba of _0x19ca62)_0x415d65['getUser'](_0x2d5aba['id'])||_0x415d65['addUser'](_0x2d5aba);_0x415d65['me']||_0x415d65['useAnonymousUser']();for(const _0x47c172 of _0x2f19dd)_0x5d7102['addCommentThread'](_0x47c172);for(const _0x19d0b0 of _0x4df581)_0x3bf561['addSuggestionData'](_0x19d0b0);_0x129472['data']['set'](_0x146508);}(_0x5dcdd7,_0x120612),_0x120612['execute'](_0x562bff?'acceptAllSuggestions':'discardAllSuggestions');const _0x1e0085=v(_0x120612)?_0x120612['getFullData'](_0x2cc14e):_0x120612['data']['get'](_0x2cc14e);return await _0x120612['destroy'](),_0x1e0085;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x20fe95,PendingActions as _0xbbd475,icons as _0x50e253}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4d0924,ObservableMixin as _0x463fbe,uid as _0x5d1950,insertToPriorityArray as _0x2c6016,priorities as _0xd9177a,logWarning as _0x28c92d,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x197f90,View as _0x63de3d,ButtonView as _0x6d21b9,ViewModel as _0x5cfa23,createDropdown as Jt,SplitButtonView as te,addListToDropdown as zt,MenuBarMenuView as Qt,MenuBarMenuListView as Xt,ListSeparatorView as Kt,MenuBarMenuListItemView as Yt,MenuBarMenuListItemButtonView as Zt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x21c972,hashObject as _0x45301d,surroundingMarkersDetector as _0x128997,trimHtml as _0x42a722,UserView as _0x898e2b,getDateTimeFormatter as _0x40266d,getAllMarkersDomElementsSorted as _0x4f030c,sanitizeEditorConfig as _0x30e326}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x43f31b,LiveRange as _0x49277e,LivePosition as _0x397273}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2460fa,toWidget as _0x481bff}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4a84a2,set as _0x1839cf,isEqual as _0x4390ae,unset as _0x53e386,omit as xt}from'lodash-es';import{Delete as _0x452c45,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x206631,ShiftEnter as _0x52c367}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x2b2e6a,_0x39720a){super(_0x2b2e6a),this['_enabledCommands']=_0x39720a,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 _0xaea3f5 of this['editor']['commands']['commands']())_0xaea3f5['affectsData']&&!this['_enabledCommands']['has'](_0xaea3f5)&&_0xaea3f5['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4fd5b2 of this['editor']['commands']['commands']())_0x4fd5b2['affectsData']&&!this['_enabledCommands']['has'](_0x4fd5b2)&&_0x4fd5b2['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x3c648a,_0x4a7f8b){super(_0x3c648a),this['_suggestions']=_0x4a7f8b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4bfbce){const _0x4d6099=this['_suggestions']['get'](_0x4bfbce);if(!_0x4d6099)throw new _0x4d0924('track-changes-accept-suggestion-not-found',this);const _0x5f70be=_0x4d6099['getRanges']();this['editor']['model']['canEditAt'](_0x5f70be)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4d6099);}}class B extends ts{['_suggestions'];constructor(_0x9165d3,_0x7af569){super(_0x9165d3),this['_suggestions']=_0x7af569,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2196cb){const _0x2cb3b7=this['_suggestions']['get'](_0x2196cb);if(!_0x2cb3b7)throw new _0x4d0924('track-changes-discard-suggestion-not-found',this);const _0x3b8e0b=_0x2cb3b7['getRanges']();this['editor']['model']['canEditAt'](_0x3b8e0b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2cb3b7);}}function ss(_0x3ae688){return _0x3ae688['sort']((_0x445f54,_0x5be5ad)=>'deletion'==_0x445f54['type']&&'deletion'!=_0x5be5ad['type']?-0x1:'deletion'!=_0x445f54['type']&&'deletion'==_0x5be5ad['type']?0x1:0x0);}function to(_0x73ce97,_0x4b4004){let _0x2c367,_0x3f5648=0x0;const _0x233814=[],_0x51dca6=_0x4b4004['schema'];for(;_0x3f5648<_0x73ce97['length'];){const _0x3d6d60=_0x73ce97[_0x3f5648],_0x5483c7=_0x73ce97[_0x3f5648+0x1];_0x2c367||(_0x2c367=_0x4b4004['createPositionBefore'](_0x3d6d60)),co(_0x4b4004,_0x3d6d60,_0x5483c7)||(_0x233814['push'](_0x4b4004['createRange'](_0x2c367,_0x51dca6['isObject'](_0x3d6d60)?_0x4b4004['createPositionAfter'](_0x3d6d60):_0x4b4004['createPositionAt'](_0x3d6d60,'end'))),_0x2c367=null),_0x3f5648++;}return _0x233814;}function co(_0x37b011,_0x592334,_0x4fbff4){if(!_0x4fbff4)return!0x1;const _0x505314=_0x37b011['createPositionAfter'](_0x592334),_0x54d3a4=_0x37b011['createPositionBefore'](_0x4fbff4);return _0x505314['isTouching'](_0x54d3a4);}function rs(_0x8f2564,_0x4bb1e3,_0x3674dd){for(;_0x3674dd['length'];){const _0x364320=_0x3674dd['splice'](0x0,0x64);_0x8f2564['change'](()=>{for(const _0x342ca6 of _0x364320)_0x342ca6['isInContent']&&_0x4bb1e3['execute'](_0x342ca6['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x40d16a,_0x31e13d,_0x5a9055){super(_0x40d16a),this['_command']=_0x31e13d,this['_suggestions']=_0x5a9055,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1af5cc=Array['from'](this['_suggestions']['values']())['some'](_0x4a378b=>_0x4a378b['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1af5cc;}['execute'](){const _0x36783d=ss(Array['from'](this['_suggestions']['values']()));for(const _0x4c543a of _0x36783d){const _0x45cc75=_0x4c543a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x45cc75))return;}rs(this['editor']['model'],this['_command'],_0x36783d);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xd93146,_0x52aeb5,_0x3d7325){super(_0xd93146),this['_command']=_0x52aeb5,this['_suggestions']=_0x3d7325,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x327fa9=this['editor']['model']['document']['selection'],_0x27de2b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3148bd,_0x260cb6){const _0x3ea804=Array['from'](_0x3148bd['getRanges']()),_0x440042=new Set();for(const _0x2019e4 of _0x260cb6)if(_0x2019e4['isInContent']){for(const _0xed5fee of _0x3ea804)for(const _0x56c4c8 of _0x2019e4['getRanges']())(_0xed5fee['isIntersecting'](_0x56c4c8)||_0x3148bd['isCollapsed']&&!_0x2019e4['isMultiRange']&&_0x2019e4['next']&&_0x56c4c8['end']['isTouching'](_0xed5fee['start']))&&_0x440042['add'](_0x2019e4);}return _0x440042;}(_0x327fa9,_0x27de2b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2ad8d3=ss(Array['from'](this['_selectedSuggestions']));for(const _0xc349d9 of _0x2ad8d3){const _0x3b883a=_0xc349d9['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3b883a))return;}rs(this['editor']['model'],this['_command'],_0x2ad8d3);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x463fbe(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xd0c9ed,_0x4e787a){super(),this['id']=_0x4e787a['id'],this['type']=_0x4e787a['type'],this['subType']=_0x4e787a['subType']||null,this['author']=_0x4e787a['author'],this['creator']=_0x4e787a['creator']||_0x4e787a['author'],this['isExternal']=Boolean(_0x4e787a['attributes']&&_0x4e787a['attributes']['@external']),this['data']=null,this['_model']=_0xd0c9ed,this['_onAccept']=_0x4e787a['onAccept'],this['_onDiscard']=_0x4e787a['onDiscard'],this['_onAttributesChange']=_0x4e787a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4e787a['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 _0x58a976=this;for(;_0x58a976['previous'];)_0x58a976=_0x58a976['previous'];return _0x58a976;}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'](_0x1b521c){this['_markerNames']['add'](_0x1b521c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xc591a2=>this['_model']['markers']['get'](_0xc591a2))['filter'](_0x1cf261=>_0x1cf261);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x34423a=>{for(const _0xc65858 of this['getMarkers']())_0x34423a['removeMarker'](_0xc65858);}),this['_markerNames']['clear']();}['removeMarker'](_0x5015dd){this['_model']['change'](_0x458182=>{_0x458182['removeMarker'](_0x5015dd);}),this['_markerNames']['delete'](_0x5015dd);}['addRange'](_0x3ecb6f){const _0x2a299f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2a299f),this['_model']['change'](_0x334f9c=>{_0x334f9c['addMarker'](_0x2a299f,{'range':_0x3ecb6f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x46f48a){for(const _0x2f7473 of this['getRanges']())if(_0x2f7473['isIntersecting'](_0x46f48a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x339359=>_0x339359['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4c6276,_0x1bb604)=>[..._0x4c6276,..._0x1bb604['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2b2627=this['getRanges']();if(0x1!=_0x2b2627['length'])return null;const _0x1aa695=_0x2b2627[0x0],_0x4b36eb=_0x1aa695['start']['nodeAfter'],_0x53d784=_0x1aa695['end']['nodeBefore'];return _0x4b36eb instanceof _0x43f31b?_0x4b36eb!=_0x53d784?null:_0x4b36eb: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 _0xa1f324=[];let _0x5a9269=this['head'];for(;_0x5a9269;)_0xa1f324['push'](_0x5a9269),_0x5a9269=_0x5a9269['next'];return _0xa1f324;}['setAttribute'](_0x4f2e9c,_0x1adfb1){const _0x4634ef=_0x4a84a2(this['attributes']);_0x1839cf(_0x4634ef,_0x4f2e9c,_0x1adfb1),_0x4390ae(_0x4634ef,this['attributes'])||(this['attributes']=_0x4634ef,this['_onAttributesChange'](_0x4634ef));}['removeAttribute'](_0x109650){const _0x995ed7=_0x4a84a2(this['attributes']);_0x53e386(_0x995ed7,_0x109650),_0x4390ae(_0x995ed7,this['attributes'])||(this['attributes']=_0x995ed7,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 _0x5d1950()['substr'](0x1,0x5);}}function o(_0x4751fa,_0x5644c7,_0x1de817){const t=_0x4751fa['t'];switch(_0x5644c7){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',_0x1de817);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1de817);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1de817);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1de817);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1de817);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',_0x1de817);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1de817);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',_0x1de817);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1de817);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1de817);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1de817);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1de817);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1de817);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1de817);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1de817);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1de817);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1de817);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1de817);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1de817);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1de817);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1de817);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1de817);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1de817);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'},_0x1de817);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1de817);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1de817);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1de817);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1de817);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1de817);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'},_0x1de817);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1de817);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1de817);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1de817);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1de817);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'},_0x1de817);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1de817);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'},_0x1de817);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'},_0x1de817);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1de817);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'},_0x1de817);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1de817);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'},_0x1de817);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1de817);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1de817);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x1de817);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'},_0x1de817);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'},_0x1de817);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 _0x5644c7;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x240beb,_0x838951){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x240beb,this['_locale']=_0x838951;}['getDescriptions'](_0x399b55){const _0xed1726=[],_0x4b4805=new Set(),_0x322e5c=new Set();for(let _0x3bd234=0x0;_0x3bd234<_0x399b55['length'];_0x3bd234++){const _0x359cb4=_0x399b55[_0x3bd234];if(!_0x359cb4['isInContent'])continue;const _0x59c5d6=this['_handleCustomCallbackDescription'](_0x359cb4);if(_0x59c5d6){if(null!=_0x359cb4['subType']){if(_0x4b4805['has'](_0x359cb4['subType']))continue;_0x4b4805['add'](_0x359cb4['subType']);}_0xed1726['push'](_0x59c5d6);}else{if('attribute'!=_0x359cb4['type'])'insertion'!=_0x359cb4['type']&&'deletion'!=_0x359cb4['type']||this['_handleInsertRemoveSuggestionDescription'](_0xed1726,_0x359cb4,_0x399b55[_0x3bd234+0x1]);else{const _0xb45738=_0x359cb4['data']['key'];if(_0x322e5c['has'](_0xb45738))continue;_0x322e5c['add'](_0x359cb4['data']['key']),_0xb45738==m?this['_handleRenameSuggestionDescription'](_0xed1726,_0x359cb4):this['_handleAttributeSuggestionDescription'](_0xed1726,_0x359cb4);}}}return this['_resolveDescriptionItems'](_0xed1726);}['registerDescriptionCallback'](_0x959a79){this['_customCallbacks']['push'](_0x959a79);}['registerElementLabel'](_0x5a90dd,_0xc5c1c7,_0xaf2d4c=_0xd9177a['normal']){'function'==typeof _0x5a90dd?_0x2c6016(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5a90dd,'label':_0xc5c1c7,'priority':_0xaf2d4c}):this['_itemLabels']['set'](_0x5a90dd,_0xc5c1c7);}['registerAttributeLabel'](_0x151b40,_0x88d32){this['_attributeLabels']['set'](_0x151b40,_0x88d32);}['getItemLabel'](_0xc4e492,_0x4876d0=0x1){let _0x307752;for(const _0x400b4f of this['_itemLabelsCallbacks'])if(_0x400b4f['matchingCallback'](_0xc4e492)){_0x307752=_0x400b4f['label'];break;}return _0x307752||(_0x307752=this['_itemLabels']['get'](_0xc4e492['name'])),_0x307752?_0x307752(_0x4876d0):0x1!==_0x4876d0?_0x4876d0+'\x20'+_0xc4e492['name']+'s':''+_0xc4e492['name'];}['_addDescriptionItems'](_0x2765a1,_0x1704a4){const _0x518419=_0x1704a4['getFirstRange']()['getWalker'](),_0x20b23f='insertion'==_0x1704a4['type']?'add':'remove';for(const _0x25112d of _0x518419){const _0x320225=_0x25112d['item'],_0x409ed2=_0x2765a1[_0x2765a1['length']-0x1];if(_0x320225['is']('$textProxy'))_0x409ed2&&_0x409ed2['type']['indexOf']('Container')>-0x1&&_0x2765a1['pop'](),_0x409ed2&&'text'==_0x409ed2['type']?_0x409ed2[_0x20b23f]+=_0x320225['data']:_0x2765a1['push']({'type':'text','add':'add'==_0x20b23f?_0x320225['data']:'','remove':'remove'==_0x20b23f?_0x320225['data']:''});else{if(this['_schema']['isObject'](_0x320225)){const _0x38c729=_0x320225;if(_0x409ed2&&_0x409ed2['type']['indexOf']('Container')>-0x1&&_0x2765a1['pop'](),'elementEnd'==_0x25112d['type'])continue;_0x409ed2&&_0x409ed2['type']==_0x20b23f+'Object'&&_0x409ed2['element']['name']==_0x38c729['name']?_0x409ed2['quantity']++:_0x2765a1['push']({'type':_0x20b23f+'Object','element':_0x38c729,'quantity':0x1}),_0x518419['skip'](_0x4f95a2=>!('elementEnd'==_0x4f95a2['type']&&_0x4f95a2['item']==_0x320225));}else{if(this['_schema']['checkChild'](_0x320225,'$text')||_0x320225['is']('element','softBreak')){const _0x253170=_0x320225;if('add'==_0x20b23f&&'elementStart'==_0x25112d['type']||'remove'==_0x20b23f&&'elementEnd'==_0x25112d['type'])continue;if(_0x409ed2&&-0x1==_0x409ed2['type']['indexOf']('Container')){'text'==_0x409ed2['type']&&(_0x409ed2[_0x20b23f]+='\x0a');continue;}let _0x26edec;if(_0x26edec='add'==_0x20b23f?_0x253170['nextSibling']&&!this['_schema']['isObject'](_0x253170['nextSibling'])?_0x253170['nextSibling']:null:_0x253170['previousSibling']&&!this['_schema']['isObject'](_0x253170['previousSibling'])?_0x253170['previousSibling']:null,_0x253170['isEmpty']||_0x26edec&&_0x26edec['isEmpty']){const _0x5b1e01=_0x26edec&&_0x26edec['isEmpty']?_0x26edec:_0x253170;_0x409ed2&&_0x409ed2['type']==_0x20b23f+'EmptyContainer'&&_0x409ed2['element']['name']==_0x5b1e01['name']?_0x409ed2['quantity']++:_0x2765a1['push']({'type':_0x20b23f+'EmptyContainer','element':_0x5b1e01,'quantity':0x1});}else _0x2765a1['push']({'type':_0x20b23f+'Container','element':_0x253170});}}}}}['_resolveDescriptionItems'](_0x1dc094){const _0x57b068=this['_locale'],_0x6c143a=[],_0x523a52=[],_0x8437be=[];for(const _0x32ac44 of _0x1dc094)switch(_0x32ac44['type']){case'text':if(_0x32ac44['add']=_0x32ac44['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x32ac44['remove']=_0x32ac44['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x32ac44['add']&&''!=_0x32ac44['remove']){_0x6c143a['push']({'type':'replace','content':o(_0x57b068,'REPLACE_TEXT',['\x22'+_0x32ac44['remove']+'\x22','\x22'+_0x32ac44['add']+'\x22'])});continue;}if(null!=_0x32ac44['add']['match'](/^ +$/)){_0x6c143a['push']({'type':'insertion','content':o(_0x57b068,'*Insert:*\x20%0',o(_0x57b068,'ELEMENT_SPACE',_0x32ac44['add']['length']))});continue;}if(null!=_0x32ac44['remove']['match'](/^ +$/)){_0x6c143a['push']({'type':'deletion','content':o(_0x57b068,'*Remove:*\x20%0',o(_0x57b068,'ELEMENT_SPACE',_0x32ac44['remove']['length']))});continue;}if(''!=_0x32ac44['add']){_0x6c143a['push']({'type':'insertion','content':o(_0x57b068,'*Insert:*\x20%0','\x22'+_0x32ac44['add']+'\x22')});continue;}_0x6c143a['push']({'type':'deletion','content':o(_0x57b068,'*Remove:*\x20%0','\x22'+_0x32ac44['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x6c143a['push']({'type':'insertion','content':o(_0x57b068,'*Insert:*\x20%0',this['getItemLabel'](_0x32ac44['element'],_0x32ac44['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x6c143a['push']({'type':'deletion','content':o(_0x57b068,'*Remove:*\x20%0',this['getItemLabel'](_0x32ac44['element'],_0x32ac44['quantity']))});continue;case'addContainer':_0x6c143a['push']({'type':'insertion','content':o(_0x57b068,'*Split:*\x20%0',this['getItemLabel'](_0x32ac44['element'],_0x32ac44['quantity']))});continue;case'removeContainer':_0x6c143a['push']({'type':'deletion','content':o(_0x57b068,'*Merge:*\x20%0',this['getItemLabel'](_0x32ac44['element'],_0x32ac44['quantity']))});continue;case'addFormat':_0x523a52['push'](_0x32ac44['key']);continue;case'removeFormat':_0x8437be['push'](_0x32ac44['key']);continue;default:_0x6c143a['push'](_0x32ac44);}if(_0x523a52['length']){const _0x3c7883=_0x523a52['map'](_0x34bb61=>this['_attributeLabels']['has'](_0x34bb61)?this['_attributeLabels']['get'](_0x34bb61):_0x34bb61)['join'](',\x20');_0x6c143a['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3c7883)});}if(_0x8437be['length']){const _0x49683d=_0x8437be['map'](_0x322a3a=>this['_attributeLabels']['has'](_0x322a3a)?this['_attributeLabels']['get'](_0x322a3a):_0x322a3a)['join'](',\x20');_0x6c143a['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x49683d)});}return _0x6c143a;}['_handleCustomCallbackDescription'](_0x1add57){for(const _0x1209b9 of this['_customCallbacks']){const _0x1bdb53=_0x1209b9(_0x1add57);if(_0x1bdb53&&'type'in _0x1bdb53)return _0x1bdb53;}}['_handleAttributeSuggestionDescription'](_0x5dd194,_0x595a67){const _0x54df54=_0x595a67['data'],_0x5aa705=void 0x0===_0x54df54['newValue']?'removeFormat':'addFormat';_0x5dd194['push']({'type':_0x5aa705,'key':_0x54df54['key']});}['_handleRenameSuggestionDescription'](_0x1b8e0c,_0x19621c){_0x1b8e0c['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x19621c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x28210a,_0x5240d1,_0x4adaa6){if(this['_addDescriptionItems'](_0x28210a,_0x5240d1),_0x4adaa6&&_0x4adaa6['getFirstRange']()&&!_0x5240d1['getFirstRange']()['end']['isEqual'](_0x4adaa6['getFirstRange']()['start'])){const _0xda8f7a=_0x28210a[_0x28210a['length']-0x1],_0x1aed34='insertion'==_0x5240d1['type']?'add':'remove';_0xda8f7a&&'text'==_0xda8f7a['type']&&(_0xda8f7a[_0x1aed34]+='\x0a');}}}class E extends _0x20fe95{['afterInit'](){const _0x2620bc=this['editor'],_0x1a5828=_0x2620bc['plugins']['get']('TrackChangesEditing');_0x2620bc['commands']['get']('showAIAssistant')&&_0x1a5828['enableCommand']('showAIAssistant');}}class V extends _0x20fe95{['afterInit'](){const _0x28d002=this['editor'],_0x3a61e1=_0x28d002['locale'];if(!_0x28d002['plugins']['has']('AlignmentEditing'))return;const _0x532938=_0x28d002['plugins']['get']('TrackChangesEditing');_0x532938['enableDefaultAttributesIntegration']('alignment'),_0x532938['registerBlockAttribute']('alignment'),_0x532938['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3a61e1,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13d5a3=this['editor'],_0x1c2a22=_0x13d5a3['locale'];_0x13d5a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ccb1f=>{if('formatBlock'!=_0x3ccb1f['type'])return;const {data:_0x1abe2a}=_0x3ccb1f;if(_0x1abe2a&&'alignment'==_0x1abe2a['commandName']){const _0x125d22=_0x1abe2a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1c2a22,'*Format:*\x20%0',function(_0x4a3683){switch(_0x4a3683){case'left':return o(_0x1c2a22,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1c2a22,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1c2a22,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1c2a22,'FORMAT_JUSTIFY_TEXT');}}(_0x125d22))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x20fe95{['afterInit'](){const _0x3d4f82=this['editor'],_0x372d6b=_0x3d4f82['plugins']['get']('TrackChangesEditing'),_0x59e383=_0x3d4f82['locale'];for(const _0x134e42 of ti){if(!_0x3d4f82['plugins']['has'](_0x134e42))continue;const _0x270a27=_0x134e42['slice'](0x0,-0x7)['toLowerCase'](),_0x3f11b7='FORMAT_'+_0x270a27['toUpperCase']();_0x372d6b['enableDefaultAttributesIntegration'](_0x270a27),_0x372d6b['registerInlineAttribute'](_0x270a27),_0x372d6b['descriptionFactory']['registerAttributeLabel'](_0x270a27,o(_0x59e383,_0x3f11b7));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a735e=this['editor'],_0x4f2468=_0x5a735e['locale'],_0x4c7f28=_0x5a735e['plugins']['get']('TrackChangesEditing');function _0x4466ed(_0x3d5c2a,_0x2bcc9e){_0x4c7f28['descriptionFactory']['registerDescriptionCallback'](_0x4756c5=>{if('formatInline'!=_0x4756c5['type'])return;const {data:_0x1c08d6}=_0x4756c5;return _0x1c08d6&&_0x1c08d6['commandName']===_0x3d5c2a?_0x1c08d6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f2468,'*Format:*\x20%0',_0x2bcc9e)}:{'type':'format','content':o(_0x4f2468,'*Remove\x20format:*\x20%0',_0x2bcc9e)}:void 0x0;});}_0x4466ed('bold',o(_0x4f2468,'FORMAT_BOLD')),_0x4466ed('italic',o(_0x4f2468,'FORMAT_ITALIC')),_0x4466ed('underline',o(_0x4f2468,'FORMAT_UNDERLINE')),_0x4466ed('code',o(_0x4f2468,'FORMAT_CODE')),_0x4466ed('strikethrough',o(_0x4f2468,'FORMAT_STRIKETHROUGH')),_0x4466ed('subscript',o(_0x4f2468,'FORMAT_SUBSCRIPT')),_0x4466ed('superscript',o(_0x4f2468,'FORMAT_SUPERSCRIPT'));}}class O extends _0x20fe95{['afterInit'](){const _0x3a6573=this['editor'],_0x4ee699=_0x3a6573['locale'];if(!_0x3a6573['plugins']['has']('BlockQuoteEditing'))return;const _0x53bcb5=_0x3a6573['plugins']['get']('TrackChangesEditing'),_0x4e890c=this['editor']['commands']['get']('blockQuote');_0x53bcb5['enableCommand']('blockQuote',(_0x38b784,_0x11d045={})=>{const _0x145c8e=this['editor']['model']['document']['selection'],_0x897ae5=_0x11d045&&void 0x0!==_0x11d045['forceValue']?_0x11d045['forceValue']:!_0x4e890c['value'];let _0x460ae3=[];if(_0x897ae5){const _0x3ee768=Array['from'](_0x145c8e['getSelectedBlocks']())['filter'](_0x2c1cff=>oo(_0x2c1cff)||function(_0x328036,_0x33efdd){const _0x57512a=_0x33efdd['checkChild'](_0x328036['parent'],'blockQuote'),_0x4f1ae5=_0x33efdd['checkChild'](['$root','blockQuote'],_0x328036);return _0x57512a&&_0x4f1ae5;}(_0x2c1cff,this['editor']['model']['schema']));_0x460ae3=to(_0x3ee768,_0x3a6573['model']);}else{const _0xbcaa5e=Array['from'](_0x145c8e['getSelectedBlocks']())['filter'](_0x46761b=>oo(_0x46761b));_0x460ae3=to(_0xbcaa5e,_0x3a6573['model']);}_0x3a6573['model']['change'](()=>{for(const _0x1ca6db of _0x460ae3)_0x53bcb5['markBlockFormat'](_0x1ca6db,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x897ae5}]});});}),_0x53bcb5['descriptionFactory']['registerDescriptionCallback'](_0x22ed4d=>{const {data:_0x1395d9}=_0x22ed4d;if(_0x1395d9&&'blockQuote'==_0x1395d9['commandName']){const _0x488ced=o(_0x4ee699,'ELEMENT_BLOCK_QUOTE');return _0x1395d9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4ee699,'*Set\x20format:*\x20%0',_0x488ced)}:{'type':'format','content':o(_0x4ee699,'*Remove\x20format:*\x20%0',_0x488ced)};}});}}function oo(_0x242c59){return'blockQuote'==_0x242c59['parent']['name'];}class G extends _0x20fe95{['afterInit'](){const _0x1ed7a7=this['editor'];_0x1ed7a7['plugins']['has']('CaseChange')&&(_0x1ed7a7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1ed7a7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1ed7a7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x20fe95{['afterInit'](){const _0x34b6c8=this['editor'];_0x34b6c8['commands']['get']('ckbox')&&_0x34b6c8['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x20fe95{['afterInit'](){const _0x38dfde=this['editor'];if(!_0x38dfde['plugins']['has']('CodeBlock'))return;const _0x16b41c=_0x38dfde['plugins']['get']('TrackChangesEditing'),_0x291d2a=_0x38dfde['locale'],_0x5db719=_0x38dfde['config']['get']('codeBlock')['languages'],_0x52ed26=_0x38dfde['commands']['get']('codeBlock');_0x16b41c['enableCommand']('indentCodeBlock'),_0x16b41c['enableCommand']('outdentCodeBlock'),_0x16b41c['enableCommand']('codeBlock',(_0xf36b,_0x446d81={})=>{const _0x294a32=_0x38dfde['model'],_0x41fa8c=_0x38dfde['model']['document']['selection'],_0x1bd23d=_0x446d81&&void 0x0!==_0x446d81['forceValue']?_0x446d81['forceValue']:!_0x52ed26['value'];let _0x5f320b;_0x446d81['language']||(_0x446d81['language']=_0x5db719[0x0]['language']),_0x5f320b=_0x1bd23d?Array['from'](_0x41fa8c['getSelectedBlocks']())['filter'](_0x3d3476=>eo(_0x3d3476)||function(_0x47e799,_0x4107f6){if(_0x47e799['is']('rootElement')||_0x4107f6['isLimit'](_0x47e799))return!0x1;return _0x4107f6['checkChild'](_0x47e799['parent'],'codeBlock');}(_0x3d3476,_0x294a32['schema'])):Array['from'](_0x41fa8c['getSelectedBlocks']())['filter'](_0x52c229=>eo(_0x52c229));const _0x311d6c=to(_0x5f320b,_0x294a32);_0x294a32['change'](()=>{for(const _0xb55a86 of _0x311d6c)_0x16b41c['markBlockFormat'](_0xb55a86,{'commandName':'codeBlock','commandParams':[{..._0x446d81,'forceValue':_0x1bd23d}],'formatGroupId':'blockName'});});}),(_0x16b41c['descriptionFactory']['registerElementLabel']('codeBlock',_0x49d8ad=>o(_0x291d2a,'ELEMENT_CODE_BLOCK',_0x49d8ad)),_0x16b41c['descriptionFactory']['registerDescriptionCallback'](_0x500cc4=>{if('formatBlock'!=_0x500cc4['type'])return;const _0x5a3c81=_0x291d2a['t'],{data:_0x40e00d}=_0x500cc4;if(!_0x40e00d||'codeBlock'!=_0x40e00d['commandName'])return;const _0x53050f=_0x40e00d['commandParams'][0x0]['language'],_0x526fd4=_0x5a3c81(_0x5db719['find'](_0x52a9dd=>_0x52a9dd['language']===_0x53050f)['label'])['toLowerCase']();return _0x40e00d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x291d2a,'*Set\x20format:*\x20%0',o(_0x291d2a,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x526fd4+')')}:{'type':'format','content':o(_0x291d2a,'*Remove\x20format:*\x20%0',o(_0x291d2a,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x33a9ab){return'codeBlock'==_0x33a9ab['name'];}class H extends _0x20fe95{['afterInit'](){const _0x35e99c=this['editor'];if(!_0x35e99c['plugins']['has']('CommentsEditing'))return;_0x35e99c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4d6b7c,_0x4aed56,_0x47c3ac){const _0x14bcb9=[];for(const _0x11a135 of _0x4aed56['getItems']())_0x11a135['hasAttribute'](_0x4d6b7c)&&_0x14bcb9['push'](_0x47c3ac['createRangeOn'](_0x11a135));return _0x14bcb9;}function _e(_0x2b8156,_0x210ca6,{showActiveMarker:_0x58be90=!0x0}={}){const _0x25f92d=_0x2b8156['plugins']['get']('TrackChangesEditing');return(_0x525a74,_0x20a49c,_0x26bbf1)=>{if(!_0x26bbf1['consumable']['test'](_0x20a49c['markerRange'],_0x525a74['name']))return;const _0x1277cf=_0x20a49c['markerRange']['getWalker'](),_0xd388a5=_0x20a49c['markerRange']['start'],_0xa65f49=_0x2b8156['model']['schema'];let _0x1f206a=null,_0x21c0b7=null,_0x2725f8=!0x1,_0x1b1c3e=!0x1;for(const _0x14860a of _0x1277cf){const _0x4517d4=_0x14860a['item'];_0x2725f8=_0x2725f8||_0xa65f49['isContent'](_0x4517d4);const _0x295bb8=_0x26bbf1['mapper']['toViewElement'](_0x4517d4);if(_0x295bb8&&_0x295bb8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x14860a['type']&&(_0xa65f49['isBlock'](_0x4517d4)&&!_0xa65f49['isLimit'](_0x4517d4)&&(_0x4517d4['nextSibling']||_0xd388a5['isAtEnd']?_0x1f206a&&_0x1f206a['parent']==_0x4517d4||(_0x1f206a=_0x4517d4,_0x338726(_0x14860a['previousPosition']),_0x1b1c3e=!0x0):_0x21c0b7=_0x21c0b7||_0x14860a['previousPosition']));}function _0x338726(_0x65cb4c){const _0x1ef11f=_0x26bbf1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x210ca6}),_0x2020a2=_0x26bbf1['mapper']['toViewPosition'](_0x65cb4c);_0x58be90&&_0x25f92d['activeMarkers']['includes'](_0x20a49c['markerName'])&&_0x26bbf1['writer']['addClass']('ck-suggestion-marker--active',_0x1ef11f),_0x26bbf1['writer']['insert'](_0x2020a2,_0x1ef11f),_0x26bbf1['mapper']['bindElementToMarker'](_0x1ef11f,_0x20a49c['markerName']);}_0x2725f8||_0x1b1c3e||!_0x21c0b7||_0x338726(_0x21c0b7);};}class q extends _0x20fe95{static get['requires'](){return[_0x452c45];}['init'](){const _0xd96364=this['editor'],_0x47f45d=_0xd96364['plugins']['get']('TrackChangesEditing');_0x47f45d['enableCommand']('delete');const _0x2ca1de=_0xd96364['commands']['get']('deleteForward');_0x47f45d['enableCommand']('deleteForward',(_0x2db19b,_0x1c20ba={})=>{const _0x552ec1=_0xd96364['model']['createSelection'](_0xd96364['model']['document']['selection']);_0x552ec1['isCollapsed']&&_0xd96364['model']['modifySelection'](_0x552ec1,{'direction':'forward','unit':_0x1c20ba['unit']});const _0x5cb3fe=_0x552ec1['getFirstRange'](),_0x2c3408=_0x49277e['fromRange'](_0x5cb3fe);let _0x58ab6e;_0x2db19b(_0x1c20ba),_0x58ab6e='$graveyard'==_0x2c3408['root']['rootName']?_0xd96364['model']['createRange'](_0x5cb3fe['start']):_0xd96364['model']['createRange'](_0x2c3408['start'],_0x2c3408['end']),_0x2c3408['detach'](),_0xd96364['model']['enqueueChange'](_0x2ca1de['buffer']['batch'],_0x15c8a8=>{_0x2ca1de['buffer']['lock'](),_0x15c8a8['setSelection'](_0x15c8a8['createRange'](_0x58ab6e['end'])),_0x2ca1de['buffer']['unlock']();});}),_0xd96364['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0xd96364,'merge'),{'priority':'high'}),_0xd96364['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x14dbde,_0x4d1c18,_0x5032bb)=>{_0x5032bb['options']['showSuggestionHighlights']&&_e(_0xd96364,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x14dbde,_0x4d1c18,_0x5032bb);},{'priority':'high'}),_0xd96364['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xc9f9d3,_0x370986,_0x4c1969)=>{const _0x33e8d1=_0x4c1969['mapper']['markerNameToElements'](_0x370986['markerName']);if(_0x33e8d1){for(const _0x10a290 of _0x33e8d1)_0x10a290['is']('uiElement')&&(_0x4c1969['mapper']['unbindElementFromMarkerName'](_0x10a290,_0x370986['markerName']),_0x4c1969['writer']['remove'](_0x10a290));}},{'priority':'high'});}}class z extends _0x20fe95{['afterInit'](){const _0x5e1786=this['editor'];if(!_0x5e1786['plugins']['has']('ListEditing'))return;const _0x100ace=_0x5e1786['locale'],_0x2c6a02=_0x5e1786['plugins']['get']('TrackChangesEditing'),_0x1af310=_0x5e1786['plugins']['has']('TodoListEditing'),_0x8120e9=!!_0x5e1786['config']['get']('list.multiBlock');function _0x4c6482(_0x4c5c95){return{'type':'format','content':''+o(_0x100ace,'*Set\x20format:*\x20%0',_0x4c5c95)};}function _0x104039(_0x46d2ef){return{'type':'format','content':''+o(_0x100ace,'*Remove\x20format:*\x20%0',_0x46d2ef)};}_0x2c6a02['enableDefaultAttributesIntegration']('numberedList'),_0x2c6a02['enableDefaultAttributesIntegration']('bulletedList'),_0x2c6a02['enableDefaultAttributesIntegration']('customNumberedList'),_0x2c6a02['enableDefaultAttributesIntegration']('customBulletedList'),_0x2c6a02['enableDefaultAttributesIntegration']('indentList'),_0x2c6a02['enableDefaultAttributesIntegration']('outdentList'),_0x2c6a02['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2c6a02['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2c6a02['registerBlockAttribute']('listItemId'),_0x2c6a02['registerBlockAttribute']('listType'),_0x2c6a02['registerBlockAttribute']('listIndent'),_0x8120e9&&(_0x2c6a02['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2c6a02['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1af310&&(_0x2c6a02['enableDefaultAttributesIntegration']('todoList'),_0x2c6a02['enableDefaultAttributesIntegration']('checkTodoList'),_0x2c6a02['registerBlockAttribute']('todoListChecked'),_0x2c6a02['descriptionFactory']['registerDescriptionCallback'](_0x559d5f=>{const {data:_0x315520}=_0x559d5f;if(_0x315520&&'todoListChecked'==_0x315520['key'])return{'type':'format','content':_0x315520['newValue']?o(_0x100ace,'*Check\x20item*'):o(_0x100ace,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3622dd=>{if(_0x3622dd['batch']['isUndo'])return!0x1;let _0x571aa2=!0x1;const _0x277606=_0x2c6a02['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3abcf1=>'todoListChecked'===_0x2c6a02['_getAttributeKey'](_0x3abcf1));for(const _0x22e089 of _0x277606){'todo'!=_0x22e089['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2c6a02['_findSuggestions'](_0x22e089['getFirstRange'](),'attribute')['find'](_0x21030d=>'listType'===_0x2c6a02['_getAttributeKey'](_0x21030d['suggestion']))||(_0x3622dd['removeMarker'](_0x22e089['getFirstMarker']()),_0x571aa2=!0x0));}return _0x571aa2;})),_0x2c6a02['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x100ace,'FORMAT_INDENT'));const _0x54b80a={'type':'format','content':''};_0x2c6a02['descriptionFactory']['registerDescriptionCallback'](_0x273982=>{const {data:_0x72b86f}=_0x273982;if(!_0x72b86f||'listType'!=_0x72b86f['key'])return;let _0x38c566=_0x273982['head'];for(;_0x38c566;){if(_0x38c566['data']&&(('listStyle'==_0x38c566['data']['key']||'listMarkerStyle'==_0x38c566['data']['key'])&&(_0x38c566['data']['newValue']&&'default'!=_0x38c566['data']['newValue']||'default'!=_0x38c566['data']['oldValue']&&!_0x72b86f['newValue'])||!_0x8120e9&&_0x38c566['data']['key']==m))return _0x54b80a;_0x38c566=_0x38c566['next'];}if(null==_0x72b86f['newValue'])switch(_0x72b86f['oldValue']){case'bulleted':return _0x104039(o(_0x100ace,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x104039(o(_0x100ace,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x104039(o(_0x100ace,'ELEMENT_TODO_LIST'));}switch(_0x72b86f['newValue']){case'bulleted':return _0x4c6482(o(_0x100ace,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4c6482(o(_0x100ace,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4c6482(o(_0x100ace,'ELEMENT_TODO_LIST'));}}),_0x2c6a02['descriptionFactory']['registerDescriptionCallback'](_0x3c63d6=>{const {data:_0x27aa19}=_0x3c63d6;if(_0x27aa19&&'listIndent'==_0x27aa19['key'])return null==_0x27aa19['newValue']||null==_0x27aa19['oldValue']&&0x0==_0x27aa19['newValue']?_0x54b80a:void 0x0;}),_0x2c6a02['descriptionFactory']['registerDescriptionCallback'](_0x3a667c=>{if('attribute'!=_0x3a667c['type'])return;const {data:_0x5c5c69}=_0x3a667c;if(!_0x5c5c69||'listItemId'!=_0x5c5c69['key'])return;const _0x4c853e=le(_0x3a667c);return'newValue'==_0x4c853e?{'type':'format','content':o(_0x100ace,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4c853e?{'type':'format','content':o(_0x100ace,'*Split:*\x20list\x20item')}:_0x54b80a;}),_0x5e1786['model']['document']['registerPostFixer'](_0x3a2156=>this['listItemIdFixer'](_0x3a2156)),_0x5e1786['model']['document']['registerPostFixer'](_0x130e57=>this['noTrackChangesFixer'](_0x130e57)),_0x5e1786['model']['document']['registerPostFixer'](_0x56f950=>this['assureChains'](_0x56f950)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x367a87){if(_0x367a87['batch']['isUndo']||!_0x367a87['batch']['isLocal'])return!0x1;let _0x46a77a=!0x1;const _0x4d4a15=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f222b=>_0x3f222b['data']&&'listItemId'==_0x3f222b['data']['key'])['filter'](_0xd15733=>_0xd15733['data']['newValue']&&_0xd15733['data']['oldValue']);for(const _0x178382 of _0x4d4a15)le(_0x178382)||(_0x367a87['removeMarker'](_0x178382['getFirstMarker']()),_0x46a77a=!0x0);return _0x46a77a;}['noTrackChangesFixer'](_0x1e3b39){if(_0x1e3b39['batch']['isUndo']||!_0x1e3b39['batch']['isLocal'])return!0x1;const _0x48e546=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x48e546['trackChangesCommand']['value'])return!0x1;let _0x162bc6=!0x1;const _0x134f51=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3bcc14=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4d2602=>'attribute'==_0x4d2602['type'])['filter'](_0x2f081e=>_0x134f51['includes'](_0x2f081e['attributeKey']));if(0x0==_0x3bcc14['length'])return _0x162bc6;for(const _0x4be39b of _0x3bcc14){const _0x595d91=_0x48e546['_findSuggestions'](_0x4be39b['range'],'attribute')['filter'](_0x5d3dab=>!_0x5d3dab['meta']['isNextTo'])['map'](_0x1667a7=>_0x1667a7['suggestion'])['filter'](_0x19e483=>{const _0x3b9e7c=_0x48e546['_getAttributeKey'](_0x19e483);return _0x134f51['includes'](_0x3b9e7c);});if(_0x595d91['length']){for(const _0x2f306d of _0x595d91)_0x1e3b39['removeMarker'](_0x2f306d['getFirstMarker']());_0x162bc6=!0x0;}}return _0x162bc6;}['assureChains'](_0x842a23){if(_0x842a23['batch']['isUndo']||!_0x842a23['batch']['isLocal'])return!0x1;const _0x5cc4e4=this['editor']['plugins']['get']('TrackChangesEditing');let _0x243822=!0x1;const _0x4f24d9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x4e8b97 of _0x5cc4e4['getSuggestions']({'skipNotAttached':!0x0})){const _0x4fcac6=_0x5cc4e4['_findSuggestions'](_0x4e8b97['getFirstRange'](),'attribute')['map'](_0x22b0b9=>_0x22b0b9['suggestion'])['filter'](_0x1d5223=>_0x1d5223['data']&&_0x4f24d9['includes'](_0x1d5223['data']['key']));if(!_0x4fcac6['length'])continue;const _0x2cd682=_0x4fcac6[0x0]['head']['attributes']['groupId'];if(!_0x4fcac6['every'](_0x397f56=>_0x397f56['attributes']['groupId']===_0x2cd682)){for(const _0x4e99bc of _0x4fcac6)_0x58be93(_0x4e99bc,_0x2cd682)&&(_0x243822=!0x0);}}return _0x243822;function _0x378774(_0x4d2b2c,_0x59cc25){for(const _0x29f2a4 of _0x5cc4e4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x998433=>'attribute'==_0x998433['type']&&_0x998433['attributes']['groupId']==_0x4d2b2c))_0x29f2a4['setAttribute']('groupId',_0x59cc25);}function _0x58be93(_0x630d6f,_0x27b76b){let _0x221699=_0x630d6f['head'],_0x3ce32b=!0x1;for(;_0x221699;)_0x221699['attributes']['groupId']!=_0x27b76b&&(_0x378774(_0x221699['attributes']['groupId'],_0x27b76b),_0x221699['setAttribute']('groupId',_0x27b76b),_0x3ce32b=!0x0),_0x221699=_0x221699['next'];return _0x3ce32b;}}['_supportLegacySuggestions'](){const _0x13154d=this['editor'],_0x18d3d1=_0x13154d['locale'],_0x418e58=_0x13154d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x418e58['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4954c9,_0x2342b3){const _0x149f56=[];for(let _0x2601ec of _0x4954c9)_0x2601ec['start']['nodeAfter']===_0x2601ec['end']['parent']&&(_0x2601ec=_0x13154d['model']['createRange'](_0x13154d['model']['createPositionAt'](_0x2601ec['start']['nodeAfter'],0x0))),_0x149f56['push'](_0x2601ec);_0x13154d['model']['change'](_0x5eb619=>{const _0x550ec1=_0x13154d['model']['document']['selection'],_0x4475ce=Array['from'](_0x550ec1['getRanges']())['map'](_0x2d1421=>_0x49277e['fromRange'](_0x2d1421));_0x5eb619['setSelection'](_0x149f56),_0x13154d['commands']['get'](_0x2342b3['commandName'])['refresh'](),_0x2342b3['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x13154d['execute'](_0x2342b3['commandName'],..._0x2342b3['commandParams']),_0x5eb619['setSelection'](_0x4475ce);for(const _0x374c95 of _0x4475ce)_0x374c95['detach']();});}),_0x418e58['descriptionFactory']['registerElementLabel'](function(_0x5e69ed){const _0x2aac79=!_0x13154d['model']['schema']['isObject'](_0x5e69ed),_0x59a0d2=_0x5e69ed['previousSibling'],_0x2e2e2b=_0x5e69ed['nextSibling'],_0x25ff15=_0x5e69ed['getAttribute']('listItemId'),_0x345d58=!_0x59a0d2||_0x59a0d2['getAttribute']('listItemId')!==_0x25ff15,_0x5cdd1e=!_0x2e2e2b||_0x2e2e2b['getAttribute']('listItemId')!==_0x25ff15;return _0x2aac79&&Boolean(_0x25ff15)&&_0x345d58&&_0x5cdd1e;},_0x5c911e=>o(_0x18d3d1,'ELEMENT_LIST_ITEM',_0x5c911e));}['_registerLegacyDescription'](){const _0x5c9d33=this['editor'],_0x4d0b77=_0x5c9d33['locale'];function _0x2e4068(_0x21c008){const _0x4245a7=_0x5c9d33['commands']['get']('bulletedList')['value'],_0x432c49=_0x5c9d33['commands']['get']('numberedList')['value'];return'numberedList'===_0x21c008?_0x4245a7:_0x432c49;}_0x5c9d33['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2a237d){if('formatBlock'!=_0x2a237d['type'])return;const {data:_0x1c7bed}=_0x2a237d;if(!_0x1c7bed)return;let _0x52b356,_0x726cd4,_0x39b346,_0x7b528a;switch(_0x1c7bed['commandName']){case'bulletedList':_0x39b346=_0x1c7bed['commandParams'][0x0]['forceValue'],_0x7b528a=_0x2e4068(_0x1c7bed['commandName']),_0x52b356=_0x39b346?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x7b528a&&_0x5c9d33['config']['get']('list.multiBlock')||(_0x52b356='*Change\x20to:*\x20%0'),_0x726cd4={'type':'format','content':o(_0x4d0b77,_0x52b356,o(_0x4d0b77,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x39b346=_0x1c7bed['commandParams'][0x0]['forceValue'],_0x7b528a=_0x2e4068(_0x1c7bed['commandName']),_0x52b356=_0x39b346?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x7b528a&&_0x5c9d33['config']['get']('list.multiBlock')||(_0x52b356='*Change\x20to:*\x20%0'),_0x726cd4={'type':'format','content':o(_0x4d0b77,_0x52b356,o(_0x4d0b77,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x52b356='*Indent:*\x20%0',_0x726cd4={'type':'format','content':o(_0x4d0b77,_0x52b356,o(_0x4d0b77,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x52b356=function(_0xff5b25){const _0x2f5d13=_0xff5b25['getFirstRange']();let _0x55f452=_0x2f5d13['start']['nodeAfter'];for(;_0x55f452&&_0x2f5d13['containsItem'](_0x55f452);){if(_0x55f452['getAttribute']('listIndent')>0x0)return!0x1;_0x55f452=_0x55f452['nextSibling'];}return!0x0;}(_0x2a237d)?o(_0x4d0b77,'*Format:*\x20remove\x20from\x20%0',o(_0x4d0b77,function(_0x130920){return'ELEMENT_'+_0x130920['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2a237d))):o(_0x4d0b77,'*Outdent:*\x20%0',o(_0x4d0b77,'ELEMENT_LIST_ITEM')),_0x726cd4={'type':'format','content':_0x52b356};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1c7bed['multipleBlocks']&&(_0x52b356='*Merge:*\x20%0',_0x726cd4={'type':'deletion','content':o(_0x4d0b77,_0x52b356,o(_0x4d0b77,'ELEMENT_LIST_ITEM'))});}return _0x726cd4;});}}function le(_0x2bfa66){let _0x3b8ad0=_0x2bfa66['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3b8ad0;){const _0x196474=_0x3b8ad0['getAttribute']('listItemId');if(!_0x196474)return!0x1;if(_0x196474==_0x2bfa66['data']['newValue'])return'newValue';if(_0x196474==_0x2bfa66['data']['oldValue'])return'oldValue';_0x3b8ad0=_0x3b8ad0['previousSibling'];}return!0x1;}class pe extends _0x20fe95{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x29f868=this['editor']['config']['get']('list.properties'),_0x6f8424=this['editor']['plugins']['get']('TrackChangesEditing');_0x29f868['styles']&&(_0x6f8424['enableDefaultAttributesIntegration']('listStyle'),_0x6f8424['registerBlockAttribute']('listStyle')),_0x29f868['reversed']&&(_0x6f8424['enableDefaultAttributesIntegration']('listReversed'),_0x6f8424['registerBlockAttribute']('listReversed')),_0x29f868['startIndex']&&(_0x6f8424['enableDefaultAttributesIntegration']('listStart'),_0x6f8424['registerBlockAttribute']('listStart'));const _0x5df383={'type':'format','content':''};_0x6f8424['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3a7d09=this['editor']['locale'];_0x6f8424['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3a7d09,'FORMAT_LIST_REVERSED')),_0x6f8424['descriptionFactory']['registerDescriptionCallback'](_0x2ac69e=>{const {data:_0x587f03}=_0x2ac69e;if(_0x587f03&&'listReversed'==_0x587f03['key'])return null==_0x587f03['newValue']||0x0==_0x587f03['newValue']&&null==_0x587f03['oldValue']?_0x5df383:void 0x0;}),_0x6f8424['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3a7d09,'FORMAT_LIST_START')),_0x6f8424['descriptionFactory']['registerDescriptionCallback'](_0x1556dc=>{const {data:_0x16812d}=_0x1556dc;if(_0x16812d&&'listStart'==_0x16812d['key'])return null==_0x16812d['newValue']||0x1==_0x16812d['newValue']&&null==_0x16812d['oldValue']?_0x5df383:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4cb59c=>{if(_0x4cb59c['batch']['isUndo'])return!0x1;let _0x32a6b8=!0x1;const _0x182f3b=_0x6f8424['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a0173=>{const _0xaaf527=_0x6f8424['_getAttributeKey'](_0x2a0173);return'listStart'==_0xaaf527||'listReversed'==_0xaaf527;});for(const _0x20baf9 of _0x182f3b){const _0x2adede=_0x20baf9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2adede||'customNumbered'==_0x2adede)continue;_0x6f8424['_findSuggestions'](_0x20baf9['getFirstRange'](),'attribute')['find'](_0x3c2ecc=>'listType'==_0x6f8424['_getAttributeKey'](_0x3c2ecc['suggestion']))||(_0x4cb59c['removeMarker'](_0x20baf9['getFirstMarker']()),_0x32a6b8=!0x0);}return _0x32a6b8;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x170b1a){const _0x5e15c1=this['editor']['locale'],{data:_0x2a36c0}=_0x170b1a,_0x11701b={'type':'format','content':''};if(!_0x2a36c0||'listStyle'!=_0x2a36c0['key'])return;if(!_0x2a36c0['oldValue'])return'default'==_0x2a36c0['newValue']?_0x11701b:{'type':'format','content':''+o(_0x5e15c1,'*Set\x20format:*\x20%0',o(_0x5e15c1,this['_getTranslationKeyForListStyle'](_0x2a36c0['newValue'])))};if(!_0x2a36c0['newValue']){if('default'==_0x2a36c0['oldValue'])return _0x11701b;let _0x45edf4=_0x170b1a['head'];for(;_0x45edf4;){if(_0x45edf4['data']&&'listType'==_0x45edf4['data']['key']&&_0x45edf4['data']['newValue'])return _0x11701b;_0x45edf4=_0x45edf4['next'];}return{'type':'format','content':''+o(_0x5e15c1,'*Remove\x20format:*\x20%0',o(_0x5e15c1,this['_getTranslationKeyForListStyle'](_0x2a36c0['oldValue'])))};}if('default'!=_0x2a36c0['newValue'])return{'type':'format','content':''+o(_0x5e15c1,'*Set\x20format:*\x20%0',o(_0x5e15c1,this['_getTranslationKeyForListStyle'](_0x2a36c0['newValue'])))};let _0x261604=_0x170b1a['head'];for(;_0x261604;){if(_0x261604['data']&&'listType'==_0x261604['data']['key']&&_0x261604['data']['newValue']&&_0x261604['data']['oldValue'])return _0x11701b;_0x261604=_0x261604['next'];}return{'type':'format','content':o(_0x5e15c1,'*Set\x20format:*\x20%0',o(_0x5e15c1,'ELEMENT_'+_0x170b1a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x272ca1=this['editor'],_0x5e8b3f=_0x272ca1['locale'];_0x272ca1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a8aa6=>{if('formatBlock'!=_0x2a8aa6['type'])return;const {data:_0x56f31e}=_0x2a8aa6;if(!_0x56f31e)return;let _0x594bd1,_0x548b44;switch(_0x56f31e['commandName']){case'listStyle':_0x594bd1='*Change\x20to:*\x20%0',_0x548b44={'type':'format','content':o(_0x5e8b3f,_0x594bd1,o(_0x5e8b3f,this['_getTranslationKeyForListStyle'](_0x56f31e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x594bd1=_0x56f31e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x548b44={'type':'format','content':o(_0x5e8b3f,_0x594bd1)};break;case'listStart':_0x594bd1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x548b44={'type':'format','content':o(_0x5e8b3f,_0x594bd1,_0x56f31e['commandParams'][0x0]['startIndex'])};}return _0x548b44;});}['_getTranslationKeyForListStyle'](_0x32d6d3){return'ELEMENT_'+function(_0x20f918){if(ye['includes'](_0x20f918))return'bulleted';if(he['includes'](_0x20f918))return'numbered';return null;}(_0x32d6d3)['toUpperCase']()+'_LIST_'+_0x32d6d3['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],he=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x20fe95{static get['requires'](){return[_0x206631];}['init'](){const _0x4cd776=this['editor'],_0x235745=_0x4cd776['plugins']['get']('TrackChangesEditing'),_0x53c293=_0x4cd776['commands']['get']('enter');_0x235745['enableCommand']('enter',()=>{_0x4cd776['model']['change'](_0x426a3=>{const _0x5690ac=_0x4cd776['model']['document']['selection'],_0x2987e4=_0x5690ac['getFirstPosition'](),_0x2357c6=_0x49277e['fromRange'](_0x5690ac['getFirstRange']());if(_0x53c293['enterBlock'](_0x426a3)){const _0x325ab5=_0x4cd776['model']['createPositionAt'](_0x2987e4['parent']['nextSibling'],0x0),_0x4357b6=_0x426a3['createRange'](_0x2987e4,_0x325ab5);_0x235745['markInsertion'](_0x4357b6);}else _0x426a3['setSelection'](_0x426a3['createRange'](_0x2357c6['end']));_0x2357c6['detach'](),_0x53c293['fire']('afterExecute',{'writer':_0x426a3});});}),_0x4cd776['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4cd776,'split'),{'priority':'high'}),_0x4cd776['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x177a07,_0x131477,_0x2e37e1)=>{const _0x22807e=_0x2e37e1['mapper']['markerNameToElements'](_0x131477['markerName']);if(_0x22807e){for(const _0x3557b9 of _0x22807e)_0x3557b9['hasClass']('ck-suggestion-marker-split')&&(_0x2e37e1['mapper']['unbindElementFromMarkerName'](_0x3557b9,_0x131477['markerName']),_0x2e37e1['writer']['remove'](_0x3557b9));}},{'priority':'high'}),_0x4cd776['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x9f9170,_0x1875f3,_0x30e199)=>{_0x30e199['options']['showSuggestionHighlights']&&_e(_0x4cd776,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x9f9170,_0x1875f3,_0x30e199);},{'priority':'high'});}}class J extends _0x20fe95{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5791a2=this['editor']['plugins']['get']('TrackChangesEditing');_0x5791a2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5791a2['enableCommand']('findNext'),_0x5791a2['enableCommand']('findPrevious'),_0x5791a2['enableCommand']('replace'),_0x5791a2['enableCommand']('replaceAll');}['handleFindCommand'](_0x432e16,_0x45ff26,_0x2b1949={}){const _0x26c045=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x432e16(_0x409bf4=>{let _0x164fe4=('string'==typeof _0x45ff26?_0x26c045['findByTextCallback'](_0x45ff26,_0x2b1949):_0x45ff26)(_0x409bf4);Array['isArray'](_0x164fe4)&&(_0x164fe4={'results':_0x164fe4,'searchText':'string'==typeof _0x45ff26?_0x45ff26:''});const _0x31be60=_0x164fe4['results']['filter'](_0x4df8ae=>!0x1===this['_isInDeletionRange'](_0x4df8ae,_0x409bf4['item']));return{..._0x164fe4,'results':_0x31be60};},_0x2b1949);}['_isInDeletionRange'](_0x5767b3,_0x252450){const _0x362879=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x252450,_0x5767b3['start']),this['editor']['model']['createPositionAt'](_0x252450,_0x5767b3['end']));for(const _0x54dc12 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x362879['getIntersection'](_0x54dc12['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 _0x20fe95{['afterInit'](){const _0x5cd9cb=this['editor']['locale'],_0x1b9287=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4a7f86,commandName:_0x44b18d}of ro)this['editor']['plugins']['has'](_0x4a7f86)&&(_0x1b9287['enableDefaultAttributesIntegration'](_0x44b18d),_0x1b9287['registerInlineAttribute'](_0x44b18d));_0x1b9287['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5cd9cb,'FORMAT_FONT_SIZE')),_0x1b9287['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5cd9cb,'FORMAT_FONT_FAMILY')),_0x1b9287['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5cd9cb,'FORMAT_FONT_COLOR')),_0x1b9287['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5cd9cb,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x444023=this['editor'],_0x3f10d6=_0x444023['locale'];_0x444023['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x133daf=>{const _0x41a111=_0x3f10d6['t'];if('formatInline'!=_0x133daf['type'])return;const {data:_0x2881ec}=_0x133daf;if(null!=_0x2881ec){if('fontSize'==_0x2881ec['commandName']){const _0x23e73f=_0x2881ec['commandParams'][0x0]['value'];if(_0x23e73f){const _0x49ed00=_0x41a111(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x52f734=>_0x52f734['model']==_0x23e73f)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3f10d6,'*Set\x20font\x20size:*\x20%0',_0x49ed00)};}return{'type':'format','content':o(_0x3f10d6,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2881ec['commandName']){const _0x12c25d=_0x2881ec['commandParams'][0x0]['value'];return _0x12c25d?{'type':'format','content':o(_0x3f10d6,'*Set\x20font\x20family:*\x20%0',_0x12c25d)}:{'type':'format','content':o(_0x3f10d6,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2881ec['commandName']){const _0x1e4681=_0x2881ec['commandParams'][0x0]['value'];if(_0x1e4681){const _0x81d4bc=_0x197f90(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3b44f8=>_0x3b44f8['model']==_0x1e4681);let _0xb94a42=_0x1e4681,_0x294424='';return _0x81d4bc&&(_0xb94a42=_0x81d4bc['label'],_0x294424=_0x41a111(_0xb94a42)['toLowerCase']()),{'type':'format','content':o(_0x3f10d6,'*Set\x20font\x20color:*\x20%0',_0x294424)['trim'](),'color':{'value':_0x1e4681,'title':_0x294424||_0xb94a42}};}return{'type':'format','content':o(_0x3f10d6,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2881ec['commandName']){const _0x22c894=_0x2881ec['commandParams'][0x0]['value'];if(_0x22c894){const _0xcbfe06=_0x197f90(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x57c0f4=>_0x57c0f4['model']==_0x22c894);let _0x191be8=_0x22c894,_0x315ed6='';return _0xcbfe06&&(_0x191be8=_0xcbfe06['label'],_0x315ed6=_0x41a111(_0x191be8)['toLowerCase']()),{'type':'format','content':o(_0x3f10d6,'*Set\x20font\x20background\x20color:*\x20%0',_0x315ed6)['trim'](),'color':{'value':_0x22c894,'title':_0x315ed6||_0x191be8}};}return{'type':'format','content':o(_0x3f10d6,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x20fe95{['afterInit'](){const _0x27b550=this['editor'],_0x15ffd3=_0x27b550['plugins']['get']('TrackChangesEditing'),_0x457839=_0x27b550['commands']['get']('copyFormat'),_0xa9efdf=_0x27b550['commands']['get']('pasteFormat');_0x457839&&_0xa9efdf&&(_0x15ffd3['enableDefaultAttributesIntegration']('pasteFormat'),_0x15ffd3['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xc282b6=this['editor'],_0x1a0db0=_0xc282b6['locale'];_0xc282b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a1a00=>{if('formatBlock'!=_0x1a1a00['type']&&'formatInline'!=_0x1a1a00['type'])return;const {data:_0x3fcd73}=_0x1a1a00;if(_0x3fcd73&&'pasteFormat'===_0x3fcd73['commandName']){const _0x54fc52=[],_0x4d9d1f=_0x3fcd73['commandParams'][0x0];for(const [_0x2cece6,_0x3cd656]of Object['entries'](_0x4d9d1f))_0x54fc52['push'](so(_0xc282b6,_0x2cece6,_0x3cd656));return _0x54fc52['length']?{'type':'format','content':o(_0x1a0db0,'*Set\x20format\x20to:*\x20%0',_0x54fc52['join'](',\x20'))}:{'type':'format','content':o(_0x1a0db0,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2390b3,_0x1b5114,_0x3642df){const _0x40dee5=_0x2390b3['locale']['t'],_0x12be3c=_0x1b5114['split'](/(?=[A-Z])/)['join']('\x20'),_0x5cbc39=_0x40dee5(_0x12be3c['charAt'](0x0)['toUpperCase']()+_0x12be3c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3642df)return _0x5cbc39;if('fontColor'===_0x1b5114||'fontBackgroundColor'===_0x1b5114){const _0x1644ba=_0x197f90(_0x2390b3['config']['get']('fontColor.colors'))['find'](_0x159cea=>_0x159cea['model']==_0x3642df);return _0x5cbc39+'\x20('+(_0x1644ba?_0x40dee5(_0x1644ba['label'])['toLowerCase']():_0x3642df)+')';}if('fontSize'===_0x1b5114&&isNaN(parseFloat(_0x3642df))){const _0x36ae84=_0x2390b3['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2390b3['config']['get']('fontSize.options'))['find'](_0x3c4bcd=>_0x3c4bcd['model']==_0x3642df);return _0x5cbc39+'\x20('+(_0x36ae84?_0x40dee5(_0x36ae84['title'])['toLowerCase']():_0x3642df)+')';}return _0x5cbc39+'\x20('+_0x3642df+')';}class Y extends _0x20fe95{['_headingOptions'];['afterInit'](){const _0x1dda75=this['editor'];if(!_0x1dda75['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1dda75['config']['get']('heading.options');const _0x253db7=_0x1dda75['locale'],_0xb231f9=_0x1dda75['plugins']['get']('TrackChangesEditing');_0xb231f9['enableDefaultAttributesIntegration']('heading');for(const _0x4ccf86 of this['_headingOptions'])'paragraph'!=_0x4ccf86['model']&&_0xb231f9['descriptionFactory']['registerElementLabel'](_0x4ccf86['model'],_0x146f04=>{const _0x3c45df=this['_getHeadingLevel'](_0x4ccf86['model']);return null!==_0x3c45df?_0x28addf(_0x146f04,_0x3c45df):_0x2cf8fd(_0x146f04,_0x4ccf86['title']);});function _0x28addf(_0x758139,_0x39da82){return o(_0x253db7,'ELEMENT_HEADING',[_0x758139,_0x39da82]);}function _0x2cf8fd(_0x2d61c6,_0x1d39d4){return o(_0x253db7,'ELEMENT_HEADING_CUSTOM',[_0x2d61c6,_0x1d39d4]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1671ff=this['editor'],_0x17a1c7=_0x1671ff['locale'];function _0x2bbba0(_0x27c940,_0x3e7a57){return o(_0x17a1c7,'ELEMENT_HEADING_CUSTOM',[_0x27c940,_0x3e7a57]);}_0x1671ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdc22aa=>{if('formatBlock'!=_0xdc22aa['type'])return;const {data:_0x4fb399}=_0xdc22aa;if(_0x4fb399&&'heading'==_0x4fb399['commandName']){const _0x28a1d9=_0x4fb399['commandParams'][0x0]['value'],_0x22f6dd=this['_getHeadingLevel'](_0x28a1d9);if(null!==_0x22f6dd)return{'type':'format','content':o(_0x17a1c7,'*Change\x20to:*\x20%0',(_0x36476e=0x1,_0x23a16c=_0x22f6dd,o(_0x17a1c7,'ELEMENT_HEADING',[_0x36476e,_0x23a16c])))};const _0x1f2abb=this['_headingOptions']['find'](_0x3b7a53=>_0x3b7a53['model']===_0x28a1d9)['title'];return{'type':'format','content':o(_0x17a1c7,'*Change\x20to:*\x20%0',_0x2bbba0(0x1,_0x1f2abb))};}var _0x36476e,_0x23a16c;});}['_getHeadingLevel'](_0x442cbd){const _0x2023a2=_0x442cbd['match'](/^heading(\d+)/);if(_0x2023a2)return _0x2023a2[0x1];const _0x3929d8=this['_headingOptions']?.['find'](_0x3587ea=>_0x3587ea['model']==_0x442cbd);if(_0x3929d8&&_0x3929d8['view']){const _0x3ed59d=_0x3929d8['view'],_0x386f0a=(_0x3ed59d['name']??_0x3ed59d)['match'](/^h(\d+)/);if(_0x386f0a)return _0x386f0a[0x1];}return null;}}class Z extends _0x20fe95{['afterInit'](){const _0x362b6f=this['editor'];if(!_0x362b6f['plugins']['has']('HighlightEditing'))return;const _0x1c5e11=_0x362b6f['plugins']['get']('TrackChangesEditing'),_0x542aa1=_0x362b6f['locale'];_0x1c5e11['enableDefaultAttributesIntegration']('highlight'),_0x1c5e11['registerInlineAttribute']('highlight'),_0x1c5e11['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x542aa1,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b6a4c=this['editor'],_0x26c827=_0x3b6a4c['locale'];_0x3b6a4c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30f861=>{if('formatInline'!=_0x30f861['type'])return;const {data:_0x252bc4}=_0x30f861;if(_0x252bc4&&'highlight'==_0x252bc4['commandName']){const _0x404165=_0x26c827['t'],_0x35b464=_0x252bc4['commandParams'][0x0]['value'];if(_0x35b464){const _0x3d1da5=_0x3b6a4c['config']['get']('highlight.options')['find'](_0x5024e2=>_0x5024e2['model']==_0x35b464),_0x107dee=_0x404165(_0x3d1da5['title'])['toLowerCase']();return{'type':'format','content':o(_0x26c827,'*Set\x20highlight:*\x20%0',_0x107dee),'color':{'value':_0x3d1da5['color'],'title':_0x3d1da5['title']}};}return{'type':'format','content':o(_0x26c827,'*Remove\x20highlight*',o(_0x26c827,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x20fe95{['afterInit'](){const _0x51572b=this['editor'];if(!_0x51572b['plugins']['has']('HorizontalLineEditing'))return;_0x51572b['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x58336d=_0x51572b['plugins']['get']('TrackChangesEditing'),_0x375cc2=_0x51572b['locale'];_0x58336d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x290a55=>o(_0x375cc2,'ELEMENT_HORIZONTAL_LINE',_0x290a55)),_0x51572b['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5d514e,{writer:_0x46d191,options:_0x843dee})=>{if(!_0x843dee['showSuggestionHighlights'])return null;const _0x3a33c3=_0x46d191['createContainerElement']('div'),_0x3c8bbf=_0x46d191['createEmptyElement']('hr');return _0x46d191['addClass']('ck-horizontal-line',_0x3a33c3),_0x46d191['insert'](_0x46d191['createPositionAt'](_0x3a33c3,0x0),_0x3c8bbf),_0x3a33c3;},'converterPriority':'high'});}}class et extends _0x20fe95{['afterInit'](){const _0x380cf3=this['editor'];if(!_0x380cf3['plugins']['has']('HtmlEmbed'))return;const _0x3250ca=_0x380cf3['plugins']['get']('TrackChangesEditing'),_0x3f3f89=_0x380cf3['locale'];_0x3250ca['descriptionFactory']['registerElementLabel']('rawHtml',_0x4e0182=>o(_0x3f3f89,'ELEMENT_HTML_EMBED',_0x4e0182)),_0x3250ca['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3250ca['registerBlockAttribute']('value'),_0x3250ca['descriptionFactory']['registerDescriptionCallback'](_0x4089e2=>{if('attribute'!=_0x4089e2['type'])return;const {data:_0x30e63a}=_0x4089e2;if(_0x30e63a&&'value'==_0x30e63a['key']&&_0x4089e2['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1ad24b=o(_0x3f3f89,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3f3f89,'*Change\x20%0\x20content*',_0x1ad24b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a1710=this['editor'],_0x168eaa=_0x5a1710['locale'];_0x5a1710['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdb1716=>{if('formatBlock'!=_0xdb1716['type'])return;const {data:_0x43c3ad}=_0xdb1716;if(_0x43c3ad&&'htmlEmbed'==_0x43c3ad['commandName']){const _0x383278=o(_0x168eaa,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x168eaa,'*Change\x20%0\x20content*',_0x383278)};}});}}class it extends _0x20fe95{['afterInit'](){const _0x43de08=this['editor'];if(!_0x43de08['plugins']['has']('ImageEditing'))return;const _0x369032=_0x43de08['plugins']['get']('TrackChangesEditing'),_0x5eef2a=_0x43de08['plugins']['get']('ImageUtils'),_0x4cba8d=_0x43de08['locale'];_0x369032['enableCommand']('insertImage'),_0x369032['descriptionFactory']['registerElementLabel']('imageBlock',_0x592d1d=>o(_0x4cba8d,'ELEMENT_IMAGE',_0x592d1d)),_0x369032['descriptionFactory']['registerElementLabel']('imageInline',_0x2612ac=>o(_0x4cba8d,'ELEMENT_INLINE_IMAGE',_0x2612ac)),_0x369032['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4cba8d,'ELEMENT_CAPTION')),_0x43de08['plugins']['has']('ImageUploadEditing')&&_0x369032['enableCommand']('uploadImage'),_0x43de08['plugins']['has']('ImageBlockEditing')&&_0x43de08['plugins']['has']('ImageInlineEditing')&&(_0x369032['enableCommand']('imageTypeInline',(_0x87bc96,_0x10c2af)=>{const _0xd58506=_0x5eef2a['getClosestSelectedImageElement'](_0x43de08['model']['document']['selection']);_0x43de08['model']['change'](()=>{_0x369032['markBlockFormat'](_0xd58506,{'commandName':'imageTypeInline','commandParams':[_0x10c2af]},[],'convertBlockImageToInline');});}),_0x369032['enableCommand']('imageTypeBlock',(_0x5222e6,_0xc4fa78)=>{_0x43de08['model']['change'](_0xa6dfcb=>{let _0x9bc71e=_0x5eef2a['getClosestSelectedImageElement'](_0x43de08['model']['document']['selection']),_0x48b4e5=_0xa6dfcb['createRangeOn'](_0x9bc71e);const _0x2cf36d=_0x397273['fromPosition'](_0x48b4e5['start'],'toPrevious'),_0x3e3195=_0x397273['fromPosition'](_0x48b4e5['end'],'toNext');_0x369032['forceDefaultExecution'](()=>_0x5222e6(_0xc4fa78)),_0x9bc71e=_0x5eef2a['getClosestSelectedImageElement'](_0x43de08['model']['document']['selection']),_0x48b4e5=_0xa6dfcb['createRangeOn'](_0x9bc71e);const _0x1c371d=_0xa6dfcb['createRange'](_0x2cf36d,_0x3e3195);_0x2cf36d['detach'](),_0x3e3195['detach'](),_0x369032['markBlockFormat'](_0x9bc71e,{'commandName':'imageTypeInline','commandParams':[_0xc4fa78]},[],'convertInlineImageToBlock'),_0x1c371d['start']['isBefore'](_0x48b4e5['start'])&&_0x369032['markInsertion'](_0xa6dfcb['createRange'](_0x1c371d['start'],_0x48b4e5['start']),'convertInlineImageToBlock'),_0x48b4e5['end']['isBefore'](_0x1c371d['end'])&&_0x369032['markInsertion'](_0xa6dfcb['createRange'](_0x48b4e5['end'],_0x1c371d['end']),'convertInlineImageToBlock');});}),_0x369032['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x369032['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x369032['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x369032['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x369032['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x369032['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4ae501])=>{const _0x25555f=_0x369032['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x211d30=_0x4ae501['start'],_0x41f812=_0x4ae501['end'];const _0x3d2368=_0x43de08['model']['schema']['getNearestSelectionRange'](_0x211d30,'backward'),_0x15d091=_0x43de08['model']['schema']['getNearestSelectionRange'](_0x41f812,'forward');_0x3d2368['isCollapsed']&&(_0x211d30=_0x3d2368['start']),_0x15d091['isCollapsed']&&(_0x41f812=_0x15d091['end']),_0x25555f([_0x43de08['model']['createRange'](_0x211d30,_0x41f812)]);}),_0x369032['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x404f78),_0x369032['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x404f78)),_0x43de08['plugins']['has']('ImageCaptionEditing')&&(_0x369032['enableCommand']('toggleImageCaption',(_0x39cb5a,_0x5a2355)=>{const _0x47316a=_0x43de08['plugins']['get']('ImageCaptionUtils');let _0x5503fd=_0x5eef2a['getClosestSelectedImageElement'](_0x43de08['model']['document']['selection']),_0x2f6d05=_0x47316a['getCaptionFromImageModelElement'](_0x5503fd);_0x43de08['model']['change'](()=>{if(_0x2f6d05)return void _0x369032['markDeletion'](_0x43de08['model']['createRangeOn'](_0x2f6d05));const _0x993b3f=_0x5eef2a['isBlockImage'](_0x5503fd);_0x39cb5a(_0x5a2355),_0x5503fd=_0x5eef2a['getClosestSelectedImageElement'](_0x43de08['model']['document']['selection']),_0x2f6d05=_0x47316a['getCaptionFromImageModelElement'](_0x5503fd),_0x369032['markInsertion'](_0x43de08['model']['createRangeOn'](_0x2f6d05),_0x993b3f?null:'imageCaption');});}),_0x369032['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x404f78));const _0x2a4082=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2ad155(_0x159e7b,_0x376ce6){const _0x35a4a9=_0x2a4082['findIndex'](({type:_0x52b196,subType:_0x1991a8})=>_0x159e7b['type']==_0x52b196&&_0x159e7b['subType']==_0x1991a8),_0x57a4b1=_0x2a4082['findIndex'](({type:_0x556f1e,subType:_0x73f36})=>_0x376ce6['type']==_0x556f1e&&_0x376ce6['subType']==_0x73f36);if(_0x35a4a9<0x0||_0x57a4b1<0x0)return!0x1;const _0x1c26db=_0x159e7b['getFirstRange'](),_0x4f77fd=_0x376ce6['getFirstRange']();if((0x0==_0x35a4a9||0x1==_0x35a4a9)&&0x2==_0x57a4b1&&_0x1c26db['isIntersecting'](_0x4f77fd))return!0x0;if(0x2==_0x35a4a9&&0x3==_0x57a4b1){const _0x152091=_0x369032['_findSuggestions'](_0x1c26db,'insertion')['filter'](({suggestion:_0xd2e071,meta:_0x17f20b})=>_0x17f20b['isOwn']&&'convertInlineImageToBlock'==_0xd2e071['subType']);if(_0x152091['length']>0x1&&_0x4f77fd['end']['isEqual'](_0x1c26db['start']))return!0x0;if(0x1==_0x152091['length']&&(_0x1c26db['start']['isEqual'](_0x4f77fd['end'])||_0x1c26db['end']['isEqual'](_0x4f77fd['start'])))return!0x0;}if(0x3==_0x35a4a9&&0x3==_0x57a4b1&&_0x1c26db['start']['isBefore'](_0x4f77fd['start'])){const _0x1f739=_0x1c26db['end']['nodeAfter'],_0x1a37d8=_0x4f77fd['start']['nodeBefore'];return _0x5eef2a['isBlockImage'](_0x1f739)&&_0x1f739===_0x1a37d8;}return!0x1;}function _0x404f78(_0x5340af,_0x24c2b2){return _0x2ad155(_0x5340af,_0x24c2b2)?[_0x5340af,_0x24c2b2]:_0x2ad155(_0x24c2b2,_0x5340af)?[_0x24c2b2,_0x5340af]:null;}_0x43de08['plugins']['has']('ImageResize')&&(_0x369032['enableDefaultAttributesIntegration']('resizeImage'),_0x369032['registerBlockAttribute']('resizedWidth'),_0x369032['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4cba8d,'FORMAT_IMAGE_SIZE'))),_0x43de08['plugins']['has']('ImageTextAlternativeEditing')&&(_0x369032['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x369032['registerBlockAttribute']('alt')),_0x369032['descriptionFactory']['registerDescriptionCallback'](_0x519652=>{if(!!_0x2a4082['find'](({type:_0x3c37c7,subType:_0x57ed92})=>_0x519652['type']==_0x3c37c7&&_0x519652['subType']==_0x57ed92))return _0x519652['previous']?{}:void 0x0;}),_0x369032['descriptionFactory']['registerDescriptionCallback'](_0x170c5f=>{if('insertion'==_0x170c5f['type']||'deletion'==_0x170c5f['type']){const _0x127183=_0x170c5f['getContainedElement']();if(_0x127183&&_0x127183['is']('element','caption'))return{'type':'insertion'==_0x170c5f['type']?'addObject':'removeObject','element':_0x127183,'quantity':0x1};}}),_0x369032['descriptionFactory']['registerDescriptionCallback'](_0x547459=>'formatBlock'==_0x547459['type']&&'convertInlineImageToBlock'==_0x547459['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x547459['type']&&'convertBlockImageToInline'==_0x547459['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x369032['descriptionFactory']['registerDescriptionCallback'](_0x13209a=>{if('attribute'!=_0x13209a['type'])return;const {data:_0x368484}=_0x13209a;if(!_0x368484||'alt'!=_0x368484['key'])return;const _0x30086b=_0x368484['newValue'];return _0x30086b?{'type':'format','content':o(_0x4cba8d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x30086b+'\x22')}:{'type':'format','content':o(_0x4cba8d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4719c6=this['editor'],_0x4ffaee=_0x4719c6['locale'];_0x4719c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46a13a=>{if('formatBlock'!=_0x46a13a['type']&&'formatInline'!=_0x46a13a['type'])return;const {data:_0x4d0464}=_0x46a13a;if(_0x4d0464){if('imageTextAlternative'==_0x4d0464['commandName']){const _0x2dc966=_0x4d0464['commandParams'][0x0]['newValue'];return _0x2dc966?{'type':'format','content':o(_0x4ffaee,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2dc966+'\x22')}:{'type':'format','content':o(_0x4ffaee,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4d0464['commandName']){const _0x1d95f5=_0x4d0464['commandParams'][0x0]['width'];return _0x1d95f5?{'type':'format','content':o(_0x4ffaee,'*Set\x20image\x20width:*\x20%0',_0x1d95f5)}:{'type':'format','content':o(_0x4ffaee,'*Reset\x20image\x20width*')};}}});}}class st extends _0x20fe95{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x239915=this['editor']['locale'],_0x26d7c5=this['editor']['plugins']['get']('TrackChangesEditing');_0x26d7c5['enableDefaultAttributesIntegration']('replaceImageSource'),_0x26d7c5['registerBlockAttribute']('src'),_0x26d7c5['descriptionFactory']['registerDescriptionCallback'](_0x27a080=>{if('attribute'!=_0x27a080['type'])return;const {data:_0x53009d}=_0x27a080;return _0x53009d&&'src'==_0x53009d['key']?_0x53009d['newValue']&&_0x53009d['oldValue']?{'type':'format','content':o(_0x239915,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x112607=this['editor']['plugins']['get']('TrackChangesEditing');_0x112607['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x112607['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x112607['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x112607['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38e89d=this['editor'],_0x28107d=_0x38e89d['locale'];_0x38e89d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x449ca2=>{if('formatBlock'!=_0x449ca2['type']&&'formatInline'!=_0x449ca2['type'])return;const {data:_0x5c9c1c}=_0x449ca2;if(!_0x5c9c1c||'replaceImageSource'!=_0x5c9c1c['commandName'])return;return{'type':'format','content':o(_0x28107d,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x20fe95{['afterInit'](){const _0x46fc70=this['editor'];if(!_0x46fc70['plugins']['has']('ImageStyleEditing'))return;const _0x5663ec=_0x46fc70['plugins']['get']('TrackChangesEditing'),_0x44f8e2=_0x46fc70['plugins']['get']('ImageUtils'),_0x154d46={};_0x5663ec['enableCommand']('imageStyle',(_0x55ec2f,_0x31c0e7)=>{const _0x404da8=_0x46fc70['plugins']['get']('Users')['me'],_0x26fc80=_0x46fc70['commands']['get']('imageStyle');let _0x43ce42=_0x44f8e2['getClosestSelectedImageElement'](_0x46fc70['model']['document']['selection']),_0x2ccb50=_0x46fc70['model']['createRangeOn'](_0x43ce42),_0x4aecd5=_0x26fc80['value'];if(_0x4aecd5==_0x31c0e7['value'])return;const _0x218765={'commandName':'imageStyle','commandParams':[_0x31c0e7],'formatGroupId':_0x5d1950()};_0x46fc70['model']['change'](()=>{if(_0x5663ec['getSuggestions']()['filter'](_0x21dfc1=>_0x21dfc1['isInContent']&&_0x404da8==_0x21dfc1['author']&&('formatBlock'==_0x21dfc1['type']||'formatInline'==_0x21dfc1['type'])&&('imageStylePreApply'==_0x21dfc1['subType']||'imageStylePostApply'==_0x21dfc1['subType'])&&_0x21dfc1['getFirstRange']()['isEqual'](_0x2ccb50))['forEach'](_0x1b1fb1=>_0x5663ec['discardSuggestion'](_0x1b1fb1['head'])),_0x43ce42=_0x44f8e2['getClosestSelectedImageElement'](_0x46fc70['model']['document']['selection']),_0x2ccb50=_0x46fc70['model']['createRangeOn'](_0x43ce42),_0x26fc80['refresh'](),_0x46fc70['commands']['get']('imageTypeInline')['refresh'](),_0x46fc70['commands']['get']('imageTypeBlock')['refresh'](),_0x4aecd5=_0x26fc80['value'],_0x4aecd5!=_0x31c0e7['value'])return _0x44f8e2['isInlineImage'](_0x43ce42)&&_0x26fc80['shouldConvertImageType'](_0x31c0e7['value'],_0x43ce42)?(_0x55ec2f({..._0x31c0e7,'setImageSizes':!0x1}),_0x43ce42=_0x44f8e2['getClosestSelectedImageElement'](_0x46fc70['model']['document']['selection']),void _0x5663ec['markBlockFormat'](_0x43ce42,{..._0x218765,'commandReversedParams':[{'value':_0x4aecd5||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x44f8e2['isBlockImage'](_0x43ce42)?_0x5663ec['markBlockFormat'](_0x43ce42,_0x218765,[],'imageStylePostApply'):_0x5663ec['markInlineFormat'](_0x2ccb50,_0x218765,'imageStylePostApply'));});});for(const _0x35ec95 of _0x46fc70['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x154d46[_0x35ec95['name']]=_0x35ec95['title']['toLowerCase']();_0x5663ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5663ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5663ec['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5663ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2aa837])=>{_0x44f8e2['setImageNaturalSizeAttributes'](_0x2aa837['getContainedElement']());}),_0x5663ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3a2679,_0x3dd327)=>{_0x5663ec['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3a2679,{'commandName':_0x3dd327['commandName'],'commandParams':_0x3dd327['commandReversedParams']});}),_0x5663ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2a5351,_0x434e1f){if(_0x44a4d6(_0x2a5351,_0x434e1f))return[_0x2a5351,_0x434e1f];if(_0x44a4d6(_0x434e1f,_0x2a5351))return[_0x434e1f,_0x2a5351];return null;});const _0x3c3755=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x44a4d6(_0x224eb6,_0x4b4307){const _0x13cbe6=_0x3c3755['findIndex'](({type:_0x976979,subType:_0x3783fc})=>_0x224eb6['type']==_0x976979&&_0x224eb6['subType']==_0x3783fc),_0x3c624d=_0x3c3755['findIndex'](({type:_0x3dc969,subType:_0x2ad139})=>_0x4b4307['type']==_0x3dc969&&_0x4b4307['subType']==_0x2ad139);if(_0x13cbe6<0x0||_0x3c624d<0x0)return!0x1;const _0xebeb3f=_0x224eb6['getFirstRange'](),_0x3f8d72=_0x4b4307['getFirstRange']();if((0x0==_0x13cbe6||0x1==_0x13cbe6)&&0x2==_0x3c624d&&_0xebeb3f['isIntersecting'](_0x3f8d72))return!0x0;if(0x2==_0x13cbe6&&0x3==_0x3c624d){const _0x48f9b9=_0x5663ec['_findSuggestions'](_0xebeb3f,'insertion')['filter'](({suggestion:_0x2e3ae7,meta:_0xc20f71})=>_0xc20f71['isOwn']&&'convertInlineImageToBlock'==_0x2e3ae7['subType']);if(_0x48f9b9['length']>0x1&&_0x3f8d72['end']['isEqual'](_0xebeb3f['start']))return!0x0;if(0x1==_0x48f9b9['length']&&(_0xebeb3f['start']['isEqual'](_0x3f8d72['end'])||_0xebeb3f['end']['isEqual'](_0x3f8d72['start'])))return!0x0;}if(0x3==_0x13cbe6&&0x3==_0x3c624d&&_0xebeb3f['start']['isBefore'](_0x3f8d72['start'])){const _0x2b9558=_0xebeb3f['end']['nodeAfter'],_0x578fae=_0x3f8d72['start']['nodeBefore'];return _0x44f8e2['isBlockImage'](_0x2b9558)&&_0x2b9558===_0x578fae;}return!0x1;}_0x46fc70['model']['document']['registerPostFixer'](()=>{let _0x224052=!0x1;const _0x1f8423=Array['from'](_0x46fc70['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x27ac67,data:_0x588a52}of _0x1f8423){const {group:_0x29e58c,type:_0x1b0eb8,subType:_0x3d61ab,id:_0x4605c1}=_0x5663ec['_splitMarkerName'](_0x27ac67);if('suggestion'==_0x29e58c&&_0x5663ec['hasSuggestion'](_0x4605c1)){if('formatBlock'==_0x1b0eb8&&('imageStylePreApply'==_0x3d61ab||'imageStylePostApply'==_0x3d61ab)){const _0x2b9e4c=_0x5663ec['getSuggestion'](_0x4605c1);if(_0x588a52['newRange']){const _0x12a040=_0x2b9e4c['getFirstRange']()['getContainedElement']();if(_0x44f8e2['isBlockImage'](_0x12a040))continue;_0x5663ec['discardSuggestion'](_0x2b9e4c),_0x224052=!0x0;}}if('insertion'==_0x1b0eb8&&'imageCaption'==_0x3d61ab&&!_0x588a52['newRange']){const _0x1f28ed=_0x5663ec['getSuggestion'](_0x4605c1);_0x1f28ed['next']&&_0x1f28ed['next']['isInContent']&&(_0x5663ec['discardSuggestion'](_0x1f28ed['next']),_0x224052=!0x0);}}}return _0x224052;}),this['_registerLegacyDescription'](_0x154d46);}['_registerLegacyDescription'](_0x474fab){const _0x33517d=this['editor'],_0x2a0e81=_0x33517d['locale'];_0x33517d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ce024=>{if('formatBlock'!=_0x3ce024['type']&&'formatInline'!=_0x3ce024['type'])return;const {data:_0x4e7481}=_0x3ce024;if(!_0x4e7481||'imageStyle'!=_0x4e7481['commandName'])return;const _0x3dc4f6=_0x4e7481['commandParams'][0x0]['value'];return _0x107047('side'===_0x3dc4f6?o(_0x2a0e81,'FORMAT_SIDE_IMAGE'):_0x474fab[_0x3dc4f6]||_0x3dc4f6);function _0x107047(_0x1fbec3){return{'type':'format','content':o(_0x2a0e81,'*Format:*\x20%0',_0x1fbec3)};}});}}class ot extends _0x20fe95{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xff984){super(_0xff984),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1cdcc1=this['editor'],_0x49a4d6=_0x1cdcc1['commands']['get']('importWord'),_0x50aa22=_0x1cdcc1['commands']['get']('trackChanges');_0x49a4d6&&(_0x49a4d6['on']('execute',(_0x413a6c,[,_0x302c02])=>{this['_trackChangesValueDuringImport']=_0x50aa22['value'],_0x302c02['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x49a4d6,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x49a4d6,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x50aa22['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1cdcc1['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x25c13b,_0x271d80){const {suggestions:_0x5b3270}=_0x271d80,_0x5a429c=this['editor']['commands']['get']('trackChanges'),_0xdd781f=_0x5a429c['value'];this['_trackChangesValueDuringImport']!==_0xdd781f&&(_0x5a429c['execute'](),this['_trackChangesExecuted']=!0x0),_0x5b3270&&_0x5b3270['forEach'](({id:_0x540bb4,type:_0x2e9fe7,author:_0x445125,created_at:_0x1ac147})=>{const _0x121c5c={'id':_0x540bb4,'type':_0x2e9fe7,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x445125,'createdAt':_0x1ac147?new Date(_0x1ac147):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x121c5c);});}}class rt extends _0x20fe95{['afterInit'](){const _0x2949c8=this['editor'],_0x49a75c=_0x2949c8['plugins']['get']('TrackChangesEditing');if(_0x2949c8['plugins']['has']('IndentEditing')&&(_0x49a75c['enableCommand']('indent'),_0x49a75c['enableCommand']('outdent')),_0x2949c8['plugins']['has']('IndentBlock')){for(const _0x3c3516 of['indentBlock','outdentBlock'])_0x49a75c['enableDefaultAttributesIntegration'](_0x3c3516);}const _0x64c64d=_0x2949c8['locale'];_0x49a75c['registerBlockAttribute']('blockIndent'),_0x49a75c['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x64c64d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3bb9c7=this['editor'],_0x3f1c59=_0x3bb9c7['locale'],_0xb173ef=_0x3bb9c7['plugins']['get']('TrackChangesEditing');_0xb173ef['descriptionFactory']['registerDescriptionCallback'](_0x306a65=>{if('formatBlock'!=_0x306a65['type'])return;const {data:_0xc05d8a}=_0x306a65;if(!_0xc05d8a)return;if('indentBlock'!=_0xc05d8a['commandName']&&'outdentBlock'!=_0xc05d8a['commandName'])return;const _0x30378e=_0x306a65['getItems']()[0x0],_0x181cad=_0xb173ef['descriptionFactory']['getItemLabel'](_0x30378e);return'indentBlock'==_0xc05d8a['commandName']?{'type':'format','content':o(_0x3f1c59,'*Indent:*\x20%0',_0x181cad)}:'outdentBlock'==_0xc05d8a['commandName']?{'type':'format','content':o(_0x3f1c59,'*Outdent:*\x20%0',_0x181cad)}:void 0x0;});}}class at extends _0x20fe95{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x20fe95{['afterInit'](){const _0x311445=this['editor'];if(!_0x311445['plugins']['has']('LinkEditing'))return;const _0x41ca33=_0x311445['plugins']['get']('TrackChangesEditing'),_0x5257ed=_0x311445['commands']['get']('link');_0x41ca33['enableDefaultAttributesIntegration']('link'),_0x41ca33['enableDefaultAttributesIntegration']('unlink'),_0x41ca33['registerInlineAttribute']('linkHref');for(const _0x5add86 of _0x5257ed['manualDecorators'])_0x41ca33['registerInlineAttribute'](_0x5add86['id']),_0x41ca33['descriptionFactory']['registerAttributeLabel'](_0x5add86['id'],'link\x20('+_0x5add86['label']['toLowerCase']()+')');_0x41ca33['descriptionFactory']['registerDescriptionCallback'](_0x260ba9=>{if('attribute'!=_0x260ba9['type'])return;const {data:_0x2aaf85}=_0x260ba9;if(!_0x2aaf85||'linkHref'!=_0x2aaf85['key'])return;const _0x14caf3=_0x2aaf85['newValue'],_0x449af6=_0x311445['locale'];return{'type':'format','content':null==_0x14caf3?o(_0x449af6,'*Remove\x20link*'):o(_0x449af6,'*Set\x20link:*\x20%0','\x22'+_0x14caf3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd119c0=this['editor'],_0x24b824=_0xd119c0['locale'];_0xd119c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13075d=>{if('formatInline'!=_0x13075d['type'])return;const {data:_0x1367af}=_0x13075d;if(_0x1367af){if('link'==_0x1367af['commandName']){const _0x427731=_0x1367af['commandParams'][0x0];return{'type':'format','content':o(_0x24b824,'*Set\x20link:*\x20%0','\x22'+_0x427731+'\x22')};}return'unlink'==_0x1367af['commandName']?{'type':'format','content':o(_0x24b824,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x20fe95{['afterInit'](){const _0x8d5f42=this['editor'],_0x1afa22=_0x8d5f42['locale'];if(!_0x8d5f42['plugins']['has']('LegacyListEditing'))return;const _0x6369da=_0x8d5f42['plugins']['get']('TrackChangesEditing'),_0x5df59d=_0x8d5f42['plugins']['has']('LegacyTodoListEditing');function _0x296cca(_0x3b0637){return()=>{const _0x1d044f=_0x8d5f42['model']['document']['selection'],_0xb6a13a=_0x8d5f42['commands']['get'](_0x3b0637);if(_0xb6a13a['value'])return void _0x8d5f42['execute']('paragraph',{});const _0x33407c=_0x3b0637['slice'](0x0,-0x4),_0x38df74=function(_0x40e164,_0x49e8f6,_0x211506){let _0x320bff=Array['from'](_0x40e164)['filter'](_0x356b9e=>function(_0x339ac0,_0x37ede4){return _0x37ede4['checkChild'](_0x339ac0['parent'],'listItem')&&!_0x37ede4['isObject'](_0x339ac0);}(_0x356b9e,_0x211506));_0x320bff=_0x320bff['filter'](_0x449502=>!_0x449502['is']('element','listItem')||_0x449502['getAttribute']('listType')!=_0x49e8f6);const _0x3dd11d=new Set();for(const _0x1e1f8f of _0x320bff)_0x1e1f8f['is']('element','listItem')?_0x3dd11d['add'](fe(_0x1e1f8f)):_0x3dd11d['add'](_0x1e1f8f);return Array['from'](_0x3dd11d);}(_0x1d044f['getSelectedBlocks'](),_0x33407c,_0x8d5f42['model']['schema']);_0x8d5f42['model']['change'](()=>{for(const _0x1b1c99 of _0x38df74)_0x6369da['markBlockFormat'](_0x1b1c99,{'commandName':_0x3b0637,'commandParams':[{'forceValue':!_0xb6a13a['value']}],'formatGroupId':'blockName'},ue(_0x1b1c99));});};}function _0x446eb5(_0xf01269){return()=>{const _0x3d0fe9=function(_0x47844b){let _0x1ff917=Array['from'](_0x47844b);const _0x81b943=_0x1ff917['findIndex'](_0xb4b529=>'listItem'!=_0xb4b529['name']);return _0x81b943>-0x1&&(_0x1ff917=_0x1ff917['slice'](0x0,_0x81b943)),_0x1ff917;}(_0x8d5f42['model']['document']['selection']['getSelectedBlocks']()),_0x53d47e=_0x8d5f42['model']['createRange'](_0x8d5f42['model']['createPositionAt'](_0x3d0fe9[0x0],'before'),_0x8d5f42['model']['createPositionAt'](_0x3d0fe9[_0x3d0fe9['length']-0x1],'end'));_0x8d5f42['model']['change'](()=>{_0x6369da['markBlockFormat'](_0x53d47e,{'commandName':_0xf01269,'commandParams':[],'formatGroupId':'listIndent'},function(_0x92108){const _0x1b561d=new Set();for(const _0x427a03 of _0x92108){let _0x41ea5d=_0x427a03['nextSibling'];for(;_0x41ea5d&&_0x41ea5d['getAttribute']('listIndent')>_0x427a03['getAttribute']('listIndent');)_0x1b561d['add'](_0x41ea5d),_0x41ea5d=_0x41ea5d['nextSibling'];}return Array['from'](_0x1b561d);}(_0x3d0fe9));});};}_0x6369da['enableCommand']('numberedList',_0x296cca('numberedList')),_0x6369da['enableCommand']('bulletedList',_0x296cca('bulletedList')),_0x5df59d&&_0x6369da['enableCommand']('todoList',_0x296cca('todoList')),_0x6369da['enableCommand']('indentList',_0x446eb5('indentList')),_0x6369da['enableCommand']('outdentList',_0x446eb5('outdentList')),_0x5df59d&&_0x6369da['enableCommand']('checkTodoList',()=>{const _0x34d171=_0x8d5f42['commands']['get']('checkTodoList'),_0x263fc3=Array['from'](_0x34d171['_selectedElements']);_0x263fc3['filter'](_0xc907b4=>_0xc907b4['getAttribute']('todoListChecked')!=_0x34d171['value']),_0x8d5f42['model']['change'](()=>{for(const _0x3896fe of _0x263fc3)_0x6369da['markBlockFormat'](_0x3896fe,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x34d171['value']}]});});}),_0x6369da['descriptionFactory']['registerElementLabel']('listItem',_0x5b96cf=>o(_0x1afa22,'ELEMENT_LIST_ITEM',_0x5b96cf)),_0x6369da['descriptionFactory']['registerDescriptionCallback'](_0x3eec12=>{if('formatBlock'!=_0x3eec12['type']&&'formatInline'!=_0x3eec12['type'])return;const {data:_0x20ebe8}=_0x3eec12;if(_0x20ebe8){if('numberedList'==_0x20ebe8['commandName']||'bulletedList'==_0x20ebe8['commandName']||'todoList'==_0x20ebe8['commandName'])switch(_0x20ebe8['commandName']['replace']('List','')){case'bulleted':return _0x5a894e(o(_0x1afa22,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5a894e(o(_0x1afa22,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5a894e(o(_0x1afa22,'ELEMENT_TODO_LIST'));}if('indentList'==_0x20ebe8['commandName'])return{'type':'format','content':o(_0x1afa22,'*Indent:*\x20%0',o(_0x1afa22,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x20ebe8['commandName'])return{'type':'format','content':o(_0x1afa22,'*Outdent:*\x20%0',o(_0x1afa22,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x20ebe8['commandName'])return _0x20ebe8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1afa22,'*Check\x20item*')}:{'type':'format','content':o(_0x1afa22,'*Uncheck\x20item*')};}function _0x5a894e(_0x2e1579){return{'type':'format','content':o(_0x1afa22,'*Change\x20to:*\x20%0',_0x2e1579)};}});}}function fe(_0x103968){const _0xf92547=_0x103968['getAttribute']('listIndent');if(0x0==_0xf92547)return _0x103968;let _0x3f7d9e=_0x103968;for(;_0x103968['previousSibling']&&_0x103968['previousSibling']['is']('element','listItem');){const _0x9c93b=_0x103968['previousSibling']['getAttribute']('listIndent');if(_0x9c93b==_0xf92547)_0x3f7d9e=_0x103968['previousSibling'];else{if(_0x9c93b<_0xf92547)break;}_0x103968=_0x103968['previousSibling'];}return _0x3f7d9e;}function ue(_0x3420b4){const _0x2c6d0f=[];if(_0x3420b4['is']('element','listItem')&&_0x3420b4['getAttribute']('listIndent')>0x0){let _0x233da9=_0x3420b4['nextSibling'];for(;_0x233da9&&'listItem'==_0x233da9['name']&&_0x233da9['getAttribute']('listIndent')==_0x3420b4['getAttribute']('listIndent');)_0x2c6d0f['push'](_0x233da9),_0x233da9=_0x233da9['nextSibling'];}return _0x2c6d0f;}class K extends _0x20fe95{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x39744f=this['editor']['config']['get']('list.properties'),_0x47bf14=this['editor']['plugins']['get']('TrackChangesEditing');_0x39744f['styles']&&_0x47bf14['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x39744f['reversed']&&_0x47bf14['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x39744f['startIndex']&&_0x47bf14['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x47bf14['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x543426,_0x17d2ba={}){const _0x25f225=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f4af0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x25f225['markMultiRangeBlockFormat'](_0x5f4af0,{'commandName':'listStyle','commandParams':[{'type':_0x17d2ba['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1cf57c,_0x34ded4={}){const _0x1132d3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4938db=this['_getSuggestionBlocks'](_0x581fa8=>_0x581fa8['is']('element','listItem')&&'numbered'===_0x581fa8['getAttribute']('listType'));if(_0x4938db['length']<0x1)return;const _0xd6525f=_0x4938db['map'](_0x91ca96=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x91ca96,'before'),this['editor']['model']['createPositionAt'](_0x91ca96,0x0)));this['editor']['model']['change'](()=>{_0x1132d3['markMultiRangeBlockFormat'](_0xd6525f,{'commandName':'listReversed','commandParams':[{'reversed':_0x34ded4['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4335b9,_0x86935c={}){const _0x5640b5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21be13=this['_getSuggestionBlocks'](_0x4e19e7=>_0x4e19e7['is']('element','listItem')&&'numbered'===_0x4e19e7['getAttribute']('listType'));if(_0x21be13['length']<0x1)return;const _0x45b2c6=_0x21be13['map'](_0x27c622=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x27c622,'before'),this['editor']['model']['createPositionAt'](_0x27c622,0x0)));this['editor']['model']['change'](()=>{_0x5640b5['markMultiRangeBlockFormat'](_0x45b2c6,{'commandName':'listStart','commandParams':[{'startIndex':_0x86935c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4f8ce0){if('formatBlock'!=_0x4f8ce0['type']&&'formatInline'!=_0x4f8ce0['type'])return;const _0x227107=this['editor']['locale'],{data:_0x5ba341}=_0x4f8ce0;if(!_0x5ba341)return;let _0x506bce,_0x197e36;switch(_0x5ba341['commandName']){case'listStyle':_0x506bce='*Change\x20to:*\x20%0',_0x197e36={'type':'format','content':o(_0x227107,_0x506bce,o(_0x227107,this['_getTranslationKeyForListStyle'](_0x5ba341['commandParams'][0x0]['type'])))};break;case'listReversed':_0x506bce=_0x5ba341['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x197e36={'type':'format','content':o(_0x227107,_0x506bce)};break;case'listStart':_0x506bce='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x197e36={'type':'format','content':o(_0x227107,_0x506bce,_0x5ba341['commandParams'][0x0]['startIndex'])};}return _0x197e36;}['_getSuggestionBlocksForListStyle'](){const _0x4cde40=this['editor']['plugins']['get']('LegacyListUtils');let _0x1a865f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1a865f[0x0]?.['is']('element','listItem')&&_0x1a865f['unshift'](..._0x4cde40['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1a865f[_0x1a865f['length']-0x1]?.['is']('element','listItem')&&_0x1a865f['push'](..._0x4cde40['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1a865f=[...new Set(_0x1a865f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1a865f=_0x1a865f['filter'](_0x3bdc12=>_0x3bdc12['is']('element','listItem'))),_0x1a865f;}['_getSuggestionBlocks'](_0x5a01f7){const _0x37144d=this['editor']['plugins']['get']('LegacyListUtils');let _0x4b514b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5a01f7)['map'](_0x20c614=>{const _0x42eeb4=this['editor']['model']['createPositionAt'](_0x20c614,0x0);return[..._0x37144d['getSiblingNodes'](_0x42eeb4,'backward'),..._0x37144d['getSiblingNodes'](_0x42eeb4,'forward')];})['flat']();return _0x4b514b=[...new Set(_0x4b514b)],_0x4b514b;}['_getTranslationKeyForListStyle'](_0x3221e5){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3221e5)||'default')['toUpperCase']()+'_LIST_'+_0x3221e5['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x20fe95{['afterInit'](){const _0x3b3051=this['editor'];if(!_0x3b3051['plugins']['has']('MediaEmbedEditing'))return;const _0x1e772d=_0x3b3051['plugins']['get']('TrackChangesEditing'),_0xf94648=_0x3b3051['locale'];_0x1e772d['enableCommand']('mediaEmbed'),_0x1e772d['descriptionFactory']['registerElementLabel']('media',_0x84439b=>o(_0xf94648,'ELEMENT_MEDIA',_0x84439b)),_0x3b3051['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xd1b5d,{writer:_0x5c0f2a,options:_0x4181e2})=>{if(_0x4181e2['showSuggestionHighlights'])return _0x5c0f2a['createEmptyElement']('div');},'converterPriority':'high'}),_0x3b3051['data']['downcastDispatcher']['on']('attribute:url:media',(_0x49cf48,_0x5f5610,_0x4d905c)=>{_0x4d905c['options']['showSuggestionHighlights']&&_0x49cf48['stop']();},{'priority':'high'});}}class gt extends _0x20fe95{['afterInit'](){const _0x5885b0=this['editor'];_0x5885b0['plugins']['has']('MentionEditing')&&_0x5885b0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x20fe95{['afterInit'](){const _0x6bd53a=this['editor'];if(!_0x6bd53a['commands']['get']('insertMergeField'))return;_0x6bd53a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x2fa3f3=_0x6bd53a['plugins']['get']('TrackChangesEditing'),_0x1d2124=_0x6bd53a['locale'];_0x2fa3f3['descriptionFactory']['registerElementLabel']('mergeField',_0x1ac3d2=>o(_0x1d2124,'ELEMENT_MERGE_FIELD',_0x1ac3d2)),_0x2fa3f3['descriptionFactory']['registerDescriptionCallback'](_0x2a1c3c=>{if('insertion'!=_0x2a1c3c['type']&&'deletion'!=_0x2a1c3c['type'])return;const _0x3a9ae2=_0x2a1c3c['getContainedElement']();if(null==_0x3a9ae2)return;if(!_0x3a9ae2['is']('element','mergeField'))return;const _0x3e31eb=_0x6bd53a['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x3a9ae2['getAttribute']('id'));return'insertion'==_0x2a1c3c['type']?{'type':'insertion','content':o(_0x1d2124,'*Insert:*\x20%0','\x22'+_0x3e31eb+'\x22\x20'+o(_0x1d2124,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1d2124,'*Remove:*\x20%0','\x22'+_0x3e31eb+'\x22\x20'+o(_0x1d2124,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x20fe95{['afterInit'](){const _0x514d1c=this['editor'],_0x5e5bd0=_0x514d1c['plugins']['get']('TrackChangesEditing');_0x514d1c['plugins']['has']('MultiLevelList')&&(_0x5e5bd0['enableDefaultAttributesIntegration']('multiLevelList'),_0x5e5bd0['registerBlockAttribute']('listMarkerStyle'),_0x5e5bd0['descriptionFactory']['registerDescriptionCallback'](_0xcb7468=>this['handleDescriptions'](_0xcb7468)));}['handleDescriptions'](_0x18eb98){const _0x517b6a=this['editor']['locale'],{data:_0x54746d}=_0x18eb98,_0x203083={'type':'format','content':''};if(_0x54746d&&'listMarkerStyle'==_0x54746d['key']){if(!_0x54746d['oldValue'])return{'type':'format','content':o(_0x517b6a,'*Set\x20format:*\x20%0',o(_0x517b6a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x54746d['newValue']+')'};if(!_0x54746d['newValue']){let _0x27c25e=_0x18eb98['head'];for(;_0x27c25e;){if(_0x27c25e['data']&&'listType'==_0x27c25e['data']['key']&&_0x27c25e['data']['newValue'])return _0x203083;_0x27c25e=_0x27c25e['next'];}return{'type':'format','content':o(_0x517b6a,'*Remove\x20format:*\x20%0',o(_0x517b6a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x54746d['oldValue']+')'};}}}}class dt extends _0x20fe95{['afterInit'](){const _0x452d97=this['editor'];if(!_0x452d97['plugins']['has']('PageBreakEditing'))return;_0x452d97['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x27f212=_0x452d97['plugins']['get']('TrackChangesEditing'),_0x3e3937=_0x452d97['locale'];_0x27f212['descriptionFactory']['registerElementLabel']('pageBreak',_0x2933fc=>o(_0x3e3937,'ELEMENT_PAGE_BREAK',_0x2933fc));}}class pt extends _0x20fe95{['afterInit'](){const _0xdcd5f2=this['editor'];if(!_0xdcd5f2['plugins']['has']('Paragraph'))return;const _0xf3de78=_0xdcd5f2['locale'],_0x15789c=_0xdcd5f2['plugins']['get']('TrackChangesEditing');_0x15789c['descriptionFactory']['registerElementLabel']('paragraph',_0x454045=>o(_0xf3de78,'ELEMENT_PARAGRAPH',_0x454045)),_0x15789c['enableDefaultAttributesIntegration']('paragraph'),_0x15789c['enableCommand']('insertParagraph'),_0xdcd5f2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xdcd5f2),{'priority':'highest'}),_0xdcd5f2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2d069b,_0x4263ad,_0x39d708)=>{_0x39d708['options']['showSuggestionHighlights']&&nr(_0xdcd5f2,{'showActiveMarker':!0x1})(_0x2d069b,_0x4263ad,_0x39d708);},{'priority':'highest'});const _0x4ac7c1=_0x15789c['descriptionFactory'];_0x4ac7c1['registerDescriptionCallback'](_0x43b0c0=>{if('insertion'!==_0x43b0c0['type'])return;const {start:_0x782aa8,end:_0xc28530}=_0x43b0c0['getFirstRange']();if(!_0x782aa8['isTouching'](_0xc28530)||!_0x782aa8['nodeAfter'])return;const _0x4d5eed=_0xdcd5f2['model']['schema'],_0x3c1d29=_0x782aa8['nodeAfter'];return _0x4d5eed['isBlock'](_0x3c1d29)&&!_0x4d5eed['isLimit'](_0x3c1d29)&&_0x4d5eed['checkChild'](_0x3c1d29,'$text')?{'type':'insertion','content':o(_0xf3de78,'*Insert:*\x20%0',_0x4ac7c1['getItemLabel'](_0x3c1d29,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d289a=this['editor'],_0x1551e3=_0x1d289a['locale'];_0x1d289a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x569658=>{if('formatBlock'!=_0x569658['type'])return;const {data:_0x5e35a4}=_0x569658;return _0x5e35a4&&'paragraph'==_0x5e35a4['commandName']?{'type':'format','content':o(_0x1551e3,'*Change\x20to:*\x20%0',o(_0x1551e3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xc53520,{showActiveMarker:_0x2f5b44=!0x0}={}){return(_0x1e5876,_0x56cf12,_0x5e7494)=>{const _0x2889d0=_0xc53520['plugins']['get']('TrackChangesEditing'),_0x1e1b2d=_0x56cf12['markerRange']['start'],_0x47b954=_0x56cf12['markerRange']['end'],_0x3cd4cd=_0xc53520['model']['schema'];if(!_0x1e1b2d['isTouching'](_0x47b954)||!_0x1e1b2d['nodeAfter'])return;const _0x504125=_0x1e1b2d['nodeAfter'];if(_0x3cd4cd['isBlock'](_0x504125)&&!_0x3cd4cd['isLimit'](_0x504125)&&_0x3cd4cd['checkChild'](_0x504125,'$text')){if(!_0x5e7494['consumable']['consume'](_0x56cf12['markerRange'],_0x1e5876['name']))return;const _0x3c128e=_0x5e7494['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x4c4e9b=_0x5e7494['mapper']['toViewPosition'](_0x47b954);_0x2f5b44&&_0x2889d0['activeMarkers']['includes'](_0x56cf12['markerName'])&&_0x5e7494['writer']['addClass']('ck-suggestion-marker--active',_0x3c128e),_0x5e7494['writer']['insert'](_0x4c4e9b,_0x3c128e),_0x5e7494['mapper']['bindElementToMarker'](_0x3c128e,_0x56cf12['markerName']);}};}class kt extends _0x20fe95{['afterInit'](){const _0x15d869=this['editor'];if(!_0x15d869['plugins']['has']('RemoveFormatEditing'))return;_0x15d869['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17730b=this['editor'];_0x17730b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17ecdd=>{if('formatBlock'!=_0x17ecdd['type']&&'formatInline'!=_0x17ecdd['type'])return;const {data:_0x3c484e}=_0x17ecdd;return _0x3c484e&&'removeFormat'==_0x3c484e['commandName']?{'type':'format','content':o(_0x17730b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class bt extends _0x20fe95{['afterInit'](){const _0x321ca0=this['editor'];if(!_0x321ca0['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x420f19=_0x321ca0['plugins']['get']('TrackChangesEditing');_0x420f19['enableCommand']('goToPreviousRestrictedEditingException'),_0x420f19['enableCommand']('goToNextRestrictedEditingException');const _0x300a32=_0x321ca0['plugins']['get']('RestrictedEditingModeEditing');_0x300a32['enableCommand']('trackChanges'),_0x300a32['enableCommand']('acceptSuggestion'),_0x300a32['enableCommand']('discardSuggestion'),_0x300a32['enableCommand']('acceptAllSuggestions'),_0x300a32['enableCommand']('discardAllSuggestions'),_0x300a32['enableCommand']('acceptSelectedSuggestions'),_0x300a32['enableCommand']('discardSelectedSuggestions');}}class wt extends _0x20fe95{static get['requires'](){return[_0x52c367];}['init'](){const _0x4751e3=this['editor'],_0x35c5bc=_0x4751e3['plugins']['get']('TrackChangesEditing');_0x35c5bc['enableCommand']('shiftEnter'),_0x4751e3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ce(_0x4751e3),{'priority':'high'}),_0x4751e3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ce(_0x4751e3),{'priority':'high'}),_0x4751e3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1f715e,_0x17be02,_0x40d665)=>{_0x40d665['options']['showSuggestionHighlights']&&ce(_0x4751e3,{'showActiveMarker':!0x1})(_0x1f715e,_0x17be02,_0x40d665);}),_0x35c5bc['descriptionFactory']['registerElementLabel']('softBreak',_0x2fad21=>o(_0x4751e3['locale'],'ELEMENT_LINE_BREAK',_0x2fad21));}}function ce(_0x9dc31f,{showActiveMarker:_0x524956=!0x0}={}){return(_0x312ccf,_0x35558b,_0x494cd4)=>{const _0x3d0c20=_0x9dc31f['plugins']['get']('TrackChangesEditing');if(!_0x494cd4['consumable']['test'](_0x35558b['markerRange'],_0x312ccf['name']))return;const _0x1b6878=_0x9dc31f['model'];for(const _0x2d76b7 of _0x35558b['markerRange']['getItems']()){if(!_0x2d76b7['is']('element','softBreak'))continue;const _0x2c073d='deletion'==_0x35558b['markerName']['split'](':')[0x1]?'merge':'split',_0x2290e7=_0x494cd4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2c073d}),_0x525dc6=_0x494cd4['mapper']['toViewPosition'](_0x1b6878['createPositionBefore'](_0x2d76b7));_0x524956&&_0x3d0c20['activeMarkers']['includes'](_0x35558b['markerName'])&&_0x494cd4['writer']['addClass']('ck-suggestion-marker--active',_0x2290e7),_0x494cd4['writer']['insert'](_0x525dc6,_0x2290e7),_0x494cd4['mapper']['bindElementToMarker'](_0x2290e7,_0x35558b['markerName']);}};}class yt extends _0x20fe95{['afterInit'](){const _0x406815=this['editor'],_0xc50549=_0x406815['model'],_0x46e9af=_0x406815['locale'];if(!_0x406815['plugins']['has']('StandardEditingModeEditing'))return;const _0x23e0b8=_0x406815['plugins']['get']('TrackChangesEditing'),_0x6e20b1='restrictedEditingException',_0x445b42=_0x406815['commands']['get'](_0x6e20b1);_0x23e0b8['enableCommand'](_0x6e20b1,(_0x8b1452,_0x17dcb4={})=>{const _0x4ac881=_0xc50549['document']['selection'];if(_0x4ac881['isCollapsed'])return void _0x8b1452(_0x17dcb4);const _0x51352b=void 0x0!==_0x17dcb4['forceValue']?_0x17dcb4['forceValue']:!_0x445b42['value'];_0xc50549['change'](()=>{const _0xf4870f=Array['from'](_0x4ac881['getRanges']());for(const _0x4a5b09 of _0xf4870f){const _0x4f81e4=_0x51352b?[_0x4a5b09]:io(_0x6e20b1,_0x4a5b09,_0xc50549);for(const _0x4bd51e of _0x4f81e4)_0x23e0b8['markInlineFormat'](_0x4bd51e,{'commandName':_0x6e20b1,'commandParams':[{'forceValue':_0x51352b}]});}});}),_0x23e0b8['descriptionFactory']['registerDescriptionCallback'](_0xb31416=>{if('formatBlock'!=_0xb31416['type']&&'formatInline'!=_0xb31416['type'])return;const {data:_0x150480}=_0xb31416;return _0x150480&&_0x150480['commandName']==_0x6e20b1?_0x150480['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x46e9af,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x46e9af,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class jt extends _0x20fe95{['afterInit'](){const _0x172eb7=this['editor'];if(!_0x172eb7['plugins']['has']('Style')||!_0x172eb7['plugins']['has']('DataSchema'))return;const _0x26d48e=_0x172eb7['plugins']['get']('TrackChangesEditing'),_0x25459f=_0x172eb7['locale'],_0x290f98=_0x172eb7['config']['get']('style')||{},_0x5bf85e=_0x172eb7['plugins']['get']('GeneralHtmlSupport'),_0x329197=_0x172eb7['plugins']['get']('StyleUtils')['normalizeConfig'](_0x172eb7['plugins']['get']('DataSchema'),_0x290f98['definitions']);_0x26d48e['enableDefaultAttributesIntegration']('style');const _0x42069a=new Set();for(const _0xc869f3 of _0x329197['block']){const _0x2adbda=_0x5bf85e['getGhsAttributeNameForElement'](_0xc869f3['element']);_0x42069a['add'](_0x2adbda);}const _0x57f3f2=new Set();for(const _0x2ca1ba of _0x329197['inline']){const _0x2f0de1=_0x5bf85e['getGhsAttributeNameForElement'](_0x2ca1ba['element']);_0x57f3f2['add'](_0x2f0de1);for(const _0xad565d of _0x2ca1ba['ghsAttributes'])_0x57f3f2['add'](_0xad565d);}for(const _0x128a6d of _0x42069a)_0x26d48e['registerBlockAttribute'](_0x128a6d),_0x26d48e['descriptionFactory']['registerAttributeLabel'](_0x128a6d,o(_0x25459f,'FORMAT_STYLE'));for(const _0x3fc57e of _0x57f3f2)_0x26d48e['registerInlineAttribute'](_0x3fc57e),_0x26d48e['descriptionFactory']['registerAttributeLabel'](_0x3fc57e,o(_0x25459f,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5402f2=this['editor'],_0x4c3aca=_0x5402f2['locale'];_0x5402f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1de1dc=>{if('formatBlock'!=_0x1de1dc['type']&&'formatInline'!=_0x1de1dc['type'])return;const {data:_0x1622f3}=_0x1de1dc;return _0x1622f3&&'style'===_0x1622f3['commandName']?_0x1622f3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4c3aca,'*Set\x20format:*\x20%0',_0x1622f3['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4c3aca,'*Remove\x20format:*\x20%0',_0x1622f3['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class St extends _0x20fe95{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x261f15){super(_0x261f15),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2b6beb=this['editor'],_0x486c38=_0x2b6beb['model']['document']['selection'];if(!_0x2b6beb['plugins']['has']('TableEditing'))return;const _0x4c1ad4=_0x2b6beb['locale'],_0x55e3ea=_0x2b6beb['plugins']['get']('TrackChangesEditing'),_0x2c5e19=_0x2b6beb['plugins']['get']('TableUtils');_0x55e3ea['descriptionFactory']['registerElementLabel']('table',_0x462b51=>o(_0x4c1ad4,'ELEMENT_TABLE',_0x462b51)),this['_setupColumnsRowsFixing'](),_0x55e3ea['enableCommand']('insertTable'),_0x55e3ea['enableCommand']('selectTableRow'),_0x55e3ea['enableCommand']('selectTableColumn');for(const _0x56a755 of['insertTableRowAbove','insertTableRowBelow']){const _0x774bbc=_0x2b6beb['commands']['get'](_0x56a755);_0x55e3ea['enableCommand'](_0x56a755,_0x4dbf54=>{_0x2b6beb['model']['change'](_0x50a4eb=>{_0x4dbf54();const _0xc87b5d='above'===_0x774bbc['order'],_0x449210=_0x2c5e19['getSelectionAffectedTableCells'](_0x486c38),_0x2c5e6a=_0x2c5e19['getRowIndexes'](_0x449210),_0x5afdf4=_0xc87b5d?_0x2c5e6a['first']-0x1:_0x2c5e6a['last']+0x1,_0x29a777=_0x449210[0x0]['findAncestor']('table'),_0x282e10=_0x2c5e19['createTableWalker'](_0x29a777,{'startRow':_0x5afdf4,'endRow':_0x5afdf4}),_0x15069c=Array['from'](_0x282e10)['map'](_0x28f0cf=>_0x50a4eb['createRangeOn'](_0x28f0cf['cell']));_0x55e3ea['markMultiRangeInsertion'](_0x15069c,'tableRow');});});}for(const _0x5d3430 of['insertTableColumnLeft','insertTableColumnRight']){const _0x112fd5=_0x2b6beb['commands']['get'](_0x5d3430);_0x55e3ea['enableCommand'](_0x5d3430,_0x552df4=>{_0x2b6beb['model']['change'](_0x4b6330=>{_0x552df4();const _0x1a2f52='left'===_0x112fd5['order'],_0x3fc241=_0x2c5e19['getSelectionAffectedTableCells'](_0x486c38),_0xea5095=_0x2c5e19['getColumnIndexes'](_0x3fc241),_0x48c0ff=_0x1a2f52?_0xea5095['first']-0x1:_0xea5095['last']+0x1,_0x4a6d82=_0x3fc241[0x0]['findAncestor']('table'),_0x391de2=_0x2c5e19['createTableWalker'](_0x4a6d82,{'startRow':0x0,'column':_0x48c0ff,'includeAllSlots':!0x1}),_0x43326e=Array['from'](_0x391de2)['map'](_0x468afa=>_0x4b6330['createRangeOn'](_0x468afa['cell']));_0x55e3ea['markMultiRangeInsertion'](_0x43326e,'tableColumn');});});}for(const _0x4db3db of['removeTableRow','removeTableColumn']){const _0x5c492=_0x4db3db['substr'](0xb),_0x50dfe4=_0x5c492['toLowerCase'](),_0x4a7686=_0x50dfe4['substr'](0x0,0x3)+'span',_0x337126='table'+_0x5c492,_0x288e73='min'+_0x5c492,_0x5c35b6='max'+_0x5c492;_0x55e3ea['enableCommand'](_0x4db3db,()=>{_0x2b6beb['model']['change'](_0x47614a=>{const _0x161623=_0x2c5e19['getSelectionAffectedTableCells'](_0x486c38),_0x1de56f=_0x161623[0x0]['findAncestor']('table');let _0x523023;if('removeTableRow'==_0x4db3db){const _0x138728=_0x2c5e19['getRowIndexes'](_0x161623);_0x523023={'startRow':_0x138728['first'],'endRow':_0x138728['last'],'includeAllSlots':!0x0};}else{const _0x436d10=_0x2c5e19['getColumnIndexes'](_0x161623);_0x523023={'startColumn':_0x436d10['first'],'endColumn':_0x436d10['last'],'includeAllSlots':!0x0};}const _0x5a0d45=_0x2c5e19['createTableWalker'](_0x1de56f,_0x523023),_0x16f914=Array['from'](_0x5a0d45)['map'](({cell:_0x17a9ad})=>_0x17a9ad),_0x43a60f=Ee(_0x16f914['filter'](_0x44ebb9=>_0x44ebb9['hasAttribute'](_0x4a7686))),_0x201aa8=Ee(_0x16f914['filter'](_0x355ec6=>!_0x355ec6['hasAttribute'](_0x4a7686)))['map'](_0x4a24e6=>_0x47614a['createRangeOn'](_0x4a24e6)),_0x4fa4fd=_0x55e3ea['markMultiRangeDeletion'](_0x201aa8,_0x337126);if(_0x4fa4fd&&('tableRow'==_0x4fa4fd['subType']||'tableColumn'==_0x4fa4fd['subType'])){const _0x5c4351=this['_getSuggestionCoords'](_0x4fa4fd);for(const _0x4310b6 of _0x43a60f){const _0x3306aa=_0x47614a['createRangeOn'](_0x4310b6),_0x132bfa=_0x2c5e19['getCellLocation'](_0x4310b6),_0xdfcdc2=_0x4310b6['getAttribute'](_0x4a7686)-0x1,_0x4f9274=_0x5c4351[_0x288e73],_0x5126be=_0x5c4351[_0x5c35b6];_0x4f9274<=_0x132bfa[_0x50dfe4]&&_0x132bfa[_0x50dfe4]+_0xdfcdc2<=_0x5126be&&_0x4fa4fd['addRange'](_0x3306aa);}}});});}function _0x33d6c1(_0x47cf46){const _0x2845f0=Array['from'](_0x486c38['getRanges']())['map'](_0x33a103=>_0x49277e['fromRange'](_0x33a103));_0x2b6beb['model']['change'](_0x5d405f=>{const _0x254cc9=_0x5d405f['batch'];_0x47cf46=_0x47cf46['filter'](_0x56136d=>'$graveyard'!=_0x56136d['root']['rootName']),_0x5d405f['setSelection'](_0x47cf46),_0x2b6beb['commands']['get']('removeTableRow')['refresh'](),_0x2b6beb['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2b6beb['model']['enqueueChange'](()=>{_0x2b6beb['model']['enqueueChange'](_0x254cc9,_0x2f2fca=>{const _0x1053c5=_0x2845f0['filter'](_0x327ca9=>'$graveyard'!=_0x327ca9['root']['rootName']);_0x1053c5['length']>0x0&&_0x2f2fca['setSelection'](_0x1053c5);for(const _0x95ad41 of _0x2845f0)_0x95ad41['detach']();});});});}function _0x51bddb(_0xe2d279){_0x2b6beb['model']['change'](_0x4f5313=>{const _0x3baa49=Array['from'](_0x486c38['getRanges']())['map'](_0x9db92a=>_0x49277e['fromRange'](_0x9db92a)),_0x2e649e=[];for(const _0x19dba2 of _0xe2d279)for(const _0x95ef5a of _0x19dba2['getItems']({'shallow':!0x0}))_0x2e649e['push'](_0x95ef5a);for(const _0xda9bb1 of _0x2e649e)'$graveyard'!=_0xda9bb1['root']['rootName']&&(_0x4f5313['setSelection'](_0x4f5313['createPositionAt'](_0xda9bb1,0x0)),_0x2b6beb['commands']['get']('removeTableColumn')['refresh'](),_0x2b6beb['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x33bfcd=_0x3baa49['filter'](_0x57ef8b=>'$graveyard'!=_0x57ef8b['root']['rootName']);_0x33bfcd['length']>0x0&&_0x4f5313['setSelection'](_0x33bfcd);for(const _0x66e5a4 of _0x3baa49)_0x66e5a4['detach']();});}function _0x846b0b(_0x2da2ef,_0x2914f5){return _0x2914f5['every'](_0x7634dc=>_0x2da2ef['some'](_0x5d8930=>_0x5d8930['end']['isEqual'](_0x7634dc['start'])||_0x7634dc['end']['isEqual'](_0x5d8930['start'])));}function _0x26764f(_0x3b576c,_0xc33ac7){return!_0x3b576c['some'](_0x35c3ba=>_0xc33ac7['some'](_0x40327d=>_0x35c3ba['isIntersecting'](_0x40327d)))&&_0x3b576c['some'](_0x4ee754=>_0xc33ac7['some'](_0x4490ab=>_0x4ee754['end']['isTouching'](_0x4490ab['start'])));}_0x2b6beb['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x47b2ce,_0x2edcc6,_0x37a2bc)=>{if(!_0x37a2bc['options']['showSuggestionHighlights'])return;const _0xde05f2=_0x2edcc6['item'];if(!_0xde05f2)return;const _0x785720=_0x37a2bc['mapper']['toViewElement'](_0xde05f2);function _0x9d64de(_0xa21665){return Array['isArray'](_0xa21665)?_0xa21665:[_0xa21665];}_0x785720&&'tableCell'===_0xde05f2['name']&&_0x2460fa(_0x785720,_0x37a2bc['writer'],(_0x5599df,_0x2e4c2e,_0x82476c)=>_0x82476c['addClass'](_0x9d64de(_0x2e4c2e['classes']),_0x5599df),(_0xd13192,_0x5f2e8c,_0x46b67d)=>_0x46b67d['removeClass'](_0x9d64de(_0x5f2e8c['classes']),_0xd13192));},{'priority':'highest'}),_0x55e3ea['descriptionFactory']['registerDescriptionCallback'](_0x38112d=>{if('insertion'!=_0x38112d['type']&&'deletion'!=_0x38112d['type'])return;const _0x3cbc0e=_0x38112d['getContainedElement']();if(null!=_0x3cbc0e&&_0x3cbc0e['is']('element','table')){if('insertion'==_0x38112d['type']){const _0x2d2c03=_0x38112d['getItems']()['filter'](_0x1b7efb=>_0x1b7efb['is']('$textProxy'))['map'](_0x3ce3a0=>_0x3ce3a0['data']);if(_0x2d2c03['length'])return{'type':'insertion','content':o(_0x4c1ad4,'*Insert:*\x20%0',o(_0x4c1ad4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2d2c03['join']('\x20')+'\x22'))};}if('deletion'==_0x38112d['type']){const _0x1bbf88=_0x38112d['getItems']()['filter'](_0x336e97=>_0x336e97['is']('$textProxy'))['map'](_0x46dd67=>_0x46dd67['data']);if(_0x1bbf88['length'])return{'type':'deletion','content':o(_0x4c1ad4,'*Remove:*\x20%0',o(_0x4c1ad4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1bbf88['join']('\x20')+'\x22'))};}}}),_0x55e3ea['descriptionFactory']['registerDescriptionCallback'](_0x2ab2c1=>{if('tableRow'==_0x2ab2c1['subType']){const _0xcd0778=_0x2ab2c1['getItems']()['filter'](_0x34f817=>_0x34f817['is']('$textProxy'))['map'](_0x59ca3a=>_0x59ca3a['data']),_0x8cf05=this['_getSuggestionCoords'](_0x2ab2c1),_0x4626c2=_0x8cf05['maxRow']-_0x8cf05['minRow']+0x1;if('insertion'==_0x2ab2c1['type'])return _0xcd0778['length']?{'type':'insertion','content':o(_0x4c1ad4,'*Insert:*\x20%0',o(_0x4c1ad4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4626c2,'\x22'+_0xcd0778['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4c1ad4,'*Insert:*\x20%0',o(_0x4c1ad4,'ELEMENT_TABLE_ROW',_0x4626c2))};if('deletion'==_0x2ab2c1['type'])return _0xcd0778['length']?{'type':'deletion','content':o(_0x4c1ad4,'*Remove:*\x20%0',o(_0x4c1ad4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4626c2,'\x22'+_0xcd0778['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4c1ad4,'*Remove:*\x20%0',o(_0x4c1ad4,'ELEMENT_TABLE_ROW',_0x4626c2))};}if('tableColumn'==_0x2ab2c1['subType']){const _0x39866b=_0x2ab2c1['getItems']()['filter'](_0x3ed100=>_0x3ed100['is']('$textProxy'))['map'](_0x986beb=>_0x986beb['data']),_0x2c1970=this['_getSuggestionCoords'](_0x2ab2c1),_0x4b1c75=_0x2c1970['maxColumn']-_0x2c1970['minColumn']+0x1;if('insertion'==_0x2ab2c1['type'])return _0x39866b['length']?{'type':'insertion','content':o(_0x4c1ad4,'*Insert:*\x20%0',o(_0x4c1ad4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4b1c75,'\x22'+_0x39866b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4c1ad4,'*Insert:*\x20%0',o(_0x4c1ad4,'ELEMENT_TABLE_COLUMN',_0x4b1c75))};if('deletion'==_0x2ab2c1['type'])return _0x39866b['length']?{'type':'deletion','content':o(_0x4c1ad4,'*Remove:*\x20%0',o(_0x4c1ad4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4b1c75,'\x22'+_0x39866b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4c1ad4,'*Remove:*\x20%0',o(_0x4c1ad4,'ELEMENT_TABLE_COLUMN',_0x4b1c75))};}}),_0x55e3ea['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x33d6c1),_0x55e3ea['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x33d6c1),_0x55e3ea['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x51bddb),_0x55e3ea['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x51bddb),_0x55e3ea['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x846b0b),_0x55e3ea['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x846b0b),_0x55e3ea['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x26764f),_0x55e3ea['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x26764f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4acce6=this['editor'],_0x4086aa=_0x4acce6['model']['document']['selection'];return(_0x5d0c3a,_0x22238f)=>{_0x4acce6['model']['change'](_0x3cfd78=>{const {commandName:_0x457adb,commandParams:_0x1469ed}=_0x22238f;let _0x2f907b=_0x5d0c3a[0x0]['end']['nodeBefore'];_0x1469ed&&_0x1469ed[0x0]&&!0x1===_0x1469ed[0x0]['forceValue']&&(_0x2f907b=_0x5d0c3a[0x0]['start']['nodeAfter']);const _0xb92467=_0x3cfd78['createRangeIn'](_0x2f907b);if('$graveyard'==_0xb92467['root']['rootName'])return;const _0x2568bd=Array['from'](_0x4086aa['getRanges']())['map'](_0x4721a2=>_0x49277e['fromRange'](_0x4721a2));_0x3cfd78['setSelection'](_0xb92467),_0x4acce6['commands']['get'](_0x457adb)['refresh'](),_0x1469ed['push']({'forceDefaultExecution':!0x0}),_0x4acce6['execute'](_0x457adb,..._0x1469ed);const _0xc7f2=_0x2568bd['filter'](_0x3aaaec=>'$graveyard'!=_0x3aaaec['root']['rootName']);_0xc7f2['length']>0x0&&_0x3cfd78['setSelection'](_0xc7f2);for(const _0x3eb179 of _0x2568bd)_0x3eb179['detach']();});};}['_getCoordsForCells'](_0x54264e){const _0x374285=this['editor']['plugins']['get']('TableUtils');let _0x56be0f=Number['MAX_SAFE_INTEGER'],_0x27be33=Number['MIN_SAFE_INTEGER'],_0x237762=Number['MAX_SAFE_INTEGER'],_0x2a94c2=Number['MIN_SAFE_INTEGER'];for(const _0x54f31c of _0x54264e){if('$graveyard'==_0x54f31c['root']['rootName'])continue;const {row:_0x1ea238,column:_0x53a4ae}=_0x374285['getCellLocation'](_0x54f31c),_0x1337fc=_0x54f31c['hasAttribute']('rowspan')?_0x54f31c['getAttribute']('rowspan')-0x1:0x0,_0x21483c=_0x54f31c['hasAttribute']('colspan')?_0x54f31c['getAttribute']('colspan')-0x1:0x0;_0x56be0f=_0x1ea238<_0x56be0f?_0x1ea238:_0x56be0f,_0x27be33=_0x1ea238+_0x1337fc>_0x27be33?_0x1ea238+_0x1337fc:_0x27be33,_0x237762=_0x53a4ae<_0x237762?_0x53a4ae:_0x237762,_0x2a94c2=_0x53a4ae+_0x21483c>_0x2a94c2?_0x53a4ae+_0x21483c:_0x2a94c2;}return{'minRow':_0x56be0f,'maxRow':_0x27be33,'minColumn':_0x237762,'maxColumn':_0x2a94c2};}['_setupColumnsRowsFixing'](){const _0x5d0240=this['editor'],_0x3817df=_0x5d0240['plugins']['get']('TrackChangesEditing'),_0x31ae20=_0x5d0240['plugins']['get']('TableUtils');_0x5d0240['model']['document']['on']('change:data',()=>{const _0x594381=Array['from'](_0x5d0240['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x28e50c,data:_0x416e78}of _0x594381){const {group:_0x42e5f9,id:_0x12c8d4,subType:_0x489006}=_0x3817df['_splitMarkerName'](_0x28e50c);if('suggestion'!=_0x42e5f9)continue;if(null!=_0x416e78['oldRange'])continue;const _0xd04e58=_0x3817df['getSuggestion'](_0x12c8d4);this['_tablePostFixingSubtypes']['includes'](_0x489006)&&this['_tableSuggestions']['add'](_0xd04e58);}},{'priority':'low'});const _0x35a3ec=(_0x2442bb,_0xda1647)=>{let _0x444ea0=!0x1;const _0xa7ac1c=_0xda1647['createRangeOn'](_0x2442bb),_0x334723=_0x2442bb['findAncestor']('table'),_0x580be6=_0x31ae20['getCellLocation'](_0x2442bb);for(const _0x2b3ce5 of this['_tableSuggestions']){const _0x935f91=_0x2b3ce5['subType'],_0x163d83=_0x935f91['startsWith']('tablePaste'),_0x302361=_0x935f91['substr'](_0x163d83?0xa:0x5),_0x1ecc56=_0x302361['toLowerCase'](),_0x24866a=_0x1ecc56['substr'](0x0,0x3)+'span',_0x5ebeee='min'+_0x302361,_0x2b9462='max'+_0x302361;if(!_0x2b3ce5['isInContent'])continue;if(_0x334723!=_0x2b3ce5['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2b3ce5['isIntersectingWithRange'](_0xa7ac1c))continue;const _0x33b892=_0x2442bb['hasAttribute'](_0x24866a)?_0x2442bb['getAttribute'](_0x24866a)-0x1:0x0,_0x8c41e0=this['_getSuggestionCoords'](_0x2b3ce5),_0x5d9829=_0x8c41e0[_0x5ebeee],_0x2c545a=_0x8c41e0[_0x2b9462];_0x5d9829<=_0x580be6[_0x1ecc56]&&_0x580be6[_0x1ecc56]+_0x33b892<=_0x2c545a&&(_0x2b3ce5['addRange'](_0xa7ac1c),_0x444ea0=!0x0);}return _0x444ea0;};_0x5d0240['model']['document']['registerPostFixer'](_0x3f430d=>{let _0x51d440=!0x1;for(const _0x4d2d52 of _0x5d0240['model']['document']['differ']['getChanges']())if('insert'==_0x4d2d52['type']){if('tableRow'==_0x4d2d52['name']){for(const _0x3a83db of _0x4d2d52['position']['nodeAfter']['getChildren']())_0x51d440=_0x51d440||_0x35a3ec(_0x3a83db,_0x3f430d);}else'tableCell'==_0x4d2d52['name']&&(_0x51d440=_0x51d440||_0x35a3ec(_0x4d2d52['position']['nodeAfter'],_0x3f430d));}return _0x51d440;});}['_getSuggestionCoords'](_0x474b4c){return this['_getCoordsForCells'](_0x474b4c['getRanges']()['map'](_0x514a4f=>_0x514a4f['start']['nodeAfter']));}}function Ee(_0x4e0955){return Array['from'](new Set(_0x4e0955)['values']());}class At extends _0x20fe95{static get['requires'](){return[St];}['afterInit'](){const _0x331eda=this['editor'],_0x5592f8=_0x331eda['model']['document']['selection'],_0x200b65=_0x331eda['locale'];if(!_0x331eda['plugins']['has']('TableEditing'))return;const _0x5e74d1=_0x331eda['plugins']['get']('TrackChangesEditing'),_0x170559=_0x331eda['plugins']['get']('TableUtils'),_0x5162cf=_0x331eda['plugins']['get'](St);_0x5162cf['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5e74d1['enableCommand']('mergeTableCells',()=>{const _0x4b6bef=_0x170559['getSelectionAffectedTableCells'](_0x331eda['model']['document']['selection']);_0x331eda['model']['change'](()=>{_0x5e74d1['markMultiRangeBlockFormat'](_0x4b6bef,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x331eda['commands']['get']('mergeTableCells')['on']('execute',(_0x1a1640,_0x380c84)=>{_0x331eda['commands']['get']('trackChanges')['value']&&(_0x380c84['length']>0x0&&_0x380c84[_0x380c84['length']-0x1]&&_0x380c84[_0x380c84['length']-0x1]['forceDefaultExecution']||_0x5e74d1['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1a1640['stop']());},{'priority':'highest'});for(const _0x3eac41 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1f8b57=_0x331eda['commands']['get'](_0x3eac41);_0x5e74d1['enableCommand'](_0x3eac41,()=>{const _0xfff6fa=_0x331eda['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2ee727=>_0x2ee727['is']('element','tableCell')),_0x3cffbd=_0x1f8b57['value'];_0x331eda['model']['change'](()=>{_0x5e74d1['markMultiRangeBlockFormat']([_0xfff6fa,_0x3cffbd],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x29b335 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x146272=_0x331eda['commands']['get'](_0x29b335);_0x5e74d1['enableCommand'](_0x29b335,()=>{const _0x38a1bb=_0x170559['getSelectionAffectedTableCells'](_0x331eda['model']['document']['selection'])[0x0],_0x524456=_0x38a1bb['findAncestor']('table'),{column:_0x5eeba5,row:_0x325780}=_0x170559['getCellLocation'](_0x38a1bb);let _0x4d1fc4=[];if('horizontally'==_0x146272['direction']){const _0x413ac3=_0x170559['createTableWalker'](_0x524456,{'startRow':_0x325780,'endRow':_0x325780,'includeAllSlots':!0x0});_0x4d1fc4=Array['from'](_0x413ac3)['map'](_0x4b0aeb=>_0x4b0aeb['cell']);}else{const _0x114a1d=_0x170559['createTableWalker'](_0x524456,{'column':_0x5eeba5,'includeAllSlots':!0x0});_0x4d1fc4=Array['from'](_0x114a1d)['map'](_0x201716=>_0x201716['cell']);}_0x331eda['model']['change'](_0x403d39=>{_0x5e74d1['markBlockFormat'](_0x403d39['createRangeOn'](_0x38a1bb),{'commandName':_0x29b335,'commandParams':[]},_0x4d1fc4,_0x29b335);});});}_0x5e74d1['descriptionFactory']['registerDescriptionCallback'](_0x43550e=>{if('formatBlock'!=_0x43550e['type']&&'formatInline'!=_0x43550e['type'])return;const {data:_0x58c082}=_0x43550e;return _0x58c082&&'mergeTableCells'==_0x58c082['commandName']?{'type':'format','content':o(_0x200b65,'*Merge\x20cells*')}:void 0x0;}),_0x5e74d1['descriptionFactory']['registerDescriptionCallback'](_0x5e0e46=>{if('formatBlock'!=_0x5e0e46['type']&&'formatInline'!=_0x5e0e46['type'])return;const {data:_0x2c2fef}=_0x5e0e46;return _0x2c2fef?'splitTableCellVertically'==_0x2c2fef['commandName']?{'type':'format','content':o(_0x200b65,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2c2fef['commandName']?{'type':'format','content':o(_0x200b65,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x55e8e8=_0x5162cf['_acceptFormatSuggestionCallbackFactory']();for(const _0x3ac87f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5e74d1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3ac87f,'accept',_0x55e8e8);for(const _0x8bd546 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5e74d1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x8bd546,'accept',_0x55e8e8);_0x5e74d1['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x90aa5e=>{_0x331eda['model']['change'](_0x265206=>{const _0x550a45=Array['from'](_0x5592f8['getRanges']())['map'](_0x561f3d=>_0x49277e['fromRange'](_0x561f3d));_0x265206['setSelection'](_0x90aa5e),_0x331eda['commands']['get']('mergeTableCells')['refresh'](),_0x331eda['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1965cc=_0x550a45['filter'](_0x3265cc=>'$graveyard'!=_0x3265cc['root']['rootName']);_0x1965cc['length']>0x0&&_0x265206['setSelection'](_0x1965cc);for(const _0x34b75a of _0x550a45)_0x34b75a['detach']();});});for(const _0x43be90 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x8a33c2=_0x331eda['commands']['get'](_0x43be90);_0x8a33c2['on']('set:isEnabled',(_0x2dbb4e,_0xff3485,_0x4e4bee)=>{if(_0x4e4bee){const _0x57211a=_0x331eda['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x12908e=>_0x12908e['is']('element','tableCell'));this['_areMergableCells'](_0x8a33c2['value'],_0x57211a)||(_0x2dbb4e['return']=!0x1,_0x2dbb4e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5d124b=this['editor']['commands']['get']('mergeTableCells'),_0x4d9b7c=this['editor']['plugins']['get']('TableUtils');if(!_0x5d124b['isEnabled'])return!0x1;const _0x25d72d=_0x4d9b7c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0xb89a52 of _0x25d72d)for(const _0xb177c2 of _0x25d72d)if(_0xb89a52!=_0xb177c2&&!this['_areMergableCells'](_0xb89a52,_0xb177c2))return!0x1;return!0x0;}['_areMergableCells'](_0x2e3134,_0xd94fea){const _0x5b874c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ce03a=this['editor']['model']['createRangeOn'](_0x2e3134),_0xc43dbd=this['editor']['model']['createRangeOn'](_0xd94fea),_0x3f17d9=new Set(),_0x233211=new Set();for(const _0x1b4836 of _0x5b874c['getSuggestions']())if(('insertion'==_0x1b4836['type']||'deletion'==_0x1b4836['type']||'mergeTableCells'==_0x1b4836['subType'])&&_0x1b4836['isInContent']){for(const _0x269eab of _0x1b4836['getRanges']())_0x269eab['containsRange'](_0x2ce03a,!0x0)&&_0x3f17d9['add'](_0x1b4836['type']+':'+_0x1b4836['author']['id']),_0x269eab['containsRange'](_0xc43dbd,!0x0)&&_0x233211['add'](_0x1b4836['type']+':'+_0x1b4836['author']['id']);}if(_0x3f17d9['size']!=_0x233211['size'])return!0x1;for(const _0x44be15 of _0x3f17d9)if(!_0x233211['has'](_0x44be15))return!0x1;return!0x0;}}class It extends _0x20fe95{static get['requires'](){return[St];}['afterInit'](){const _0x39b4d7=this['editor'];if(!_0x39b4d7['plugins']['has']('TableEditing'))return;const _0x82065f=_0x39b4d7['locale'],_0x4e7504=_0x39b4d7['plugins']['get']('TrackChangesEditing');_0x4e7504['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4e7504['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4e7504['registerBlockAttribute']('headingRows'),_0x4e7504['registerBlockAttribute']('headingColumns'),_0x4e7504['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x82065f,'FORMAT_HEADER_ROW')),_0x4e7504['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x82065f,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x55c058=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1bab3a=this['editor']['plugins']['get']('TableUtils'),_0x415529=this['editor']['plugins']['get'](St)['_acceptFormatSuggestionCallbackFactory']();function _0x2908fc({showActiveMarker:_0x9208c7=!0x0,setDataAttribute:_0x32e694=!0x0}={}){return(_0x5c9887,_0xb47ebf,_0x248059)=>{const {type:_0x163bb7,id:_0x302f1e}=_0x55c058['_splitMarkerName'](_0xb47ebf['markerName']),_0xc5db7f=_0x55c058['getSuggestion'](_0x302f1e),_0x460651=_0xc5db7f['data'];if('formatBlock'!=_0xc5db7f['type']||!_0x460651||'setTableColumnHeader'!=_0x460651['commandName'])return;if(_0xb47ebf['item'])return void _0x5c9887['stop']();if(!_0x248059['consumable']['consume'](_0xb47ebf['markerRange'],_0x5c9887['name']))return;const _0x4fbf38=_0xb47ebf['markerRange']['start']['nodeAfter'],_0x4aed54=_0xb47ebf['markerRange']['end']['nodeBefore'],_0x4bce0d=_0x4fbf38['parent']['parent'],{column:_0x9427f8}=_0x1bab3a['getCellLocation'](_0x4fbf38),{column:_0x4f7a8e}=_0x1bab3a['getCellLocation'](_0x4aed54);for(let _0x2757db=_0x9427f8;_0x2757db<=_0x4f7a8e;_0x2757db++){const _0x43c308=_0x1bab3a['createTableWalker'](_0x4bce0d,{'column':_0x2757db,'includeAllSlots':!0x1});for(const _0x3fc294 of _0x43c308){const _0x13175f=_0x3fc294['cell'],_0x1b37c1=_0x248059['mapper']['toViewElement'](_0x13175f);_0x248059['writer']['addClass']('ck-suggestion-marker-'+_0x163bb7,_0x1b37c1),_0x32e694&&_0x248059['writer']['setAttribute']('data-suggestion',_0x302f1e,_0x1b37c1),_0x248059['mapper']['bindElementToMarker'](_0x1b37c1,_0xb47ebf['markerName']),_0x9208c7&&(_0x55c058['activeMarkers']['includes'](_0xb47ebf['markerName'])?_0x248059['writer']['addClass']('ck-suggestion-marker--active',_0x1b37c1):_0x248059['writer']['removeClass']('ck-suggestion-marker--active',_0x1b37c1));}}};}_0x55c058['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x415529),_0x55c058['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x415529),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2908fc(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x42c034,_0x1b2463,_0x45a577)=>{_0x45a577['options']['showSuggestionHighlights']&&_0x2908fc({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x42c034,_0x1b2463,_0x45a577);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x231098,_0x25d125,_0x35b9ac)=>{const {type:_0x1f1ac2,id:_0x191164}=_0x55c058['_splitMarkerName'](_0x25d125['markerName']),_0xbb8534=_0x55c058['getSuggestion'](_0x191164),_0x5b32aa=_0xbb8534['data'];if('formatBlock'!=_0xbb8534['type']||!_0x5b32aa||'setTableColumnHeader'!=_0x5b32aa['commandName'])return;const _0x155b88=_0x35b9ac['mapper']['markerNameToElements'](_0x25d125['markerName']);if(_0x155b88){for(const _0x59df40 of _0x155b88)_0x35b9ac['writer']['removeClass']('ck-suggestion-marker-'+_0x1f1ac2,_0x59df40),_0x35b9ac['writer']['removeClass']('ck-suggestion-marker--active',_0x59df40),_0x35b9ac['writer']['removeAttribute']('data-suggestion',_0x59df40),_0x35b9ac['mapper']['unbindElementFromMarkerName'](_0x59df40,_0x25d125['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44585c=this['editor'],_0x1b6e1d=_0x44585c['locale'];function _0x86e430(_0x295f02){return{'type':'format','content':o(_0x1b6e1d,'*Format:*\x20%0',_0x295f02)};}_0x44585c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x136cb8=>{if('formatBlock'!=_0x136cb8['type'])return;const {data:_0x105037}=_0x136cb8;if(_0x105037){if('setTableRowHeader'==_0x105037['commandName']){const _0x533303=_0x105037['commandParams'][0x0]['forceValue'];return _0x86e430(o(_0x1b6e1d,_0x533303?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x105037['commandName']){const _0x4719cc=_0x105037['commandParams'][0x0]['forceValue'];return _0x86e430(o(_0x1b6e1d,_0x4719cc?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0xac1b9c=>[_0xac1b9c,null]));class vt extends _0x20fe95{static get['requires'](){return[St];}['afterInit'](){const _0x3a8588=this['editor'];if(!_0x3a8588['plugins']['has']('TableClipboard'))return;const _0x7ca91a=_0x3a8588['plugins']['get']('TrackChangesEditing'),_0x8f3a1b=_0x3a8588['plugins']['get']('TableUtils'),_0x1d8b19=_0x3a8588['plugins']['get'](St),_0x1d6a94=_0x3a8588['plugins']['get']('TableClipboard');_0x1d8b19['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3a8588['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3a8588['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1aa5b1=null;_0x3a8588['model']['on']('insertContent',(_0x341492,_0x33f274)=>{const [_0x3b19ff,_0x513efa]=_0x33f274,_0x3f6f91=_0x33f274[_0x33f274['length']-0x1];_0x3f6f91&&_0x3f6f91['forceDefaultExecution']||_0x7ca91a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x9c0d63,_0x5e25bb,_0x1c464e,_0x49c178,_0x4bdb00){if(_0x5e25bb&&!_0x5e25bb['is']('documentSelection'))return!0x1;const _0x517886=_0x4bdb00['getTableIfOnlyTableInContent'](_0x9c0d63,_0x1c464e);if(!_0x517886||!we(_0x517886,void 0x0,_0x49c178))return!0x1;const _0x313c6a=_0x49c178['getSelectionAffectedTableCells'](_0x1c464e['document']['selection']);if(!_0x313c6a['length'])return!0x1;const _0xd0f6b9=_0x313c6a[0x0]['findAncestor']('table'),_0x56852f=_0x49c178['getRowIndexes'](_0x313c6a),_0x1c9388=_0x49c178['getColumnIndexes'](_0x313c6a),_0x56b6ae={'startRow':_0x56852f['first'],'endRow':_0x56852f['last'],'startColumn':_0x1c9388['first'],'endColumn':_0x1c9388['last']};return 0x1==_0x313c6a['length']&&(_0x56b6ae['endRow']+=_0x49c178['getRows'](_0x517886)-0x1,_0x56b6ae['endColumn']+=_0x49c178['getColumns'](_0x517886)-0x1),we(_0xd0f6b9,_0x56b6ae,_0x49c178);}(_0x3b19ff,_0x513efa,_0x3a8588['model'],_0x8f3a1b,_0x1d6a94)&&(_0x341492['stop'](),_0x1aa5b1={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3a8588['model']['change'](()=>{_0x3a8588['model']['insertContent'](_0x33f274[0x0],_0x33f274[0x1],_0x33f274[0x2],{'forceDefaultExecution':!0x0});const _0x5ee469=_0x5d1950(),{rowInsertionRanges:_0x2b6cbe,columnInsertionRanges:_0x5be140,insertionRanges:_0x172f8b,deletionRanges:_0x1051b0,cells:_0x4572ff}=_0x1aa5b1;_0x2b6cbe['length']&&_0x7ca91a['markMultiRangeInsertion'](_0x2b6cbe,'tablePasteRow',{'tablePasteChainId':_0x5ee469}),_0x5be140['length']&&_0x7ca91a['markMultiRangeInsertion'](_0x5be140,'tablePasteColumn',{'tablePasteChainId':_0x5ee469}),_0x172f8b['length']&&(_0x7ca91a['markMultiRangeInsertion'](_0x172f8b,'tablePaste',{'tablePasteChainId':_0x5ee469,'skipNestingCheck':!0x0}),_0x172f8b['forEach'](_0x1096ed=>_0x1096ed['detach']?.())),_0x1051b0['length']&&(_0x7ca91a['markMultiRangeDeletion'](_0x1051b0,'tablePaste',{'tablePasteChainId':_0x5ee469,'skipNestingCheck':!0x0}),_0x1051b0['forEach'](_0x13bcef=>_0x13bcef['detach']?.()));const _0x4fd1ad=_0x7ca91a['markMultiRangeBlockFormat'](_0x4572ff['map'](({element:_0x5cb637})=>_0x5cb637),{'formatGroupId':_0x5d1950()},[],'tablePasteCell',{'tablePasteChainId':_0x5ee469});if(_0x4fd1ad){const _0x407aae=_0x4fd1ad['getMarkers'](),_0x16afb1=[];for(const {element:_0x4de9ef,attributes:_0x553402}of _0x4572ff){if(!_0x553402)continue;const _0x1a6490=_0x3a8588['model']['createRangeOn'](_0x4de9ef),_0x30f756=_0x407aae['find'](_0x36a3f8=>_0x36a3f8['getRange']()['isEqual'](_0x1a6490));_0x30f756&&_0x16afb1['push']([_0x30f756['name'],_0x553402]);}_0x16afb1['length']&&_0x4fd1ad['setAttribute']('markerAttributes',Object['fromEntries'](_0x16afb1));}_0x1aa5b1=null;}));},{'priority':_0xd9177a['high']+0xa}),_0x3a8588['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x191620,_0x2e5133)=>{const [_0x462028,_0x45ffd8,,_0x3cf4e3]=_0x2e5133;if(!_0x1aa5b1)return;_0x191620['stop']();const _0x50ad8e=_0x462028['cell'],_0x2c30dd=_0x45ffd8,_0x35328d=Pe(_0x50ad8e),_0x3e5ccb=Pe(_0x2c30dd);_0x191620['return']=_0x50ad8e;let _0x5d3375=null,_0x349234=null;if(_0x3e5ccb||_0x35328d){if(_0x35328d&&!_0x3e5ccb){_0x3cf4e3['remove'](_0x50ad8e['getChild'](0x0));for(const _0x27e314 of Array['from'](_0x2c30dd['getChildren']()))_0x3cf4e3['insert'](_0x27e314,_0x50ad8e,'end');const _0x48a5f1=_0x1aa5b1['rowInsertionIndexes']['includes'](_0x462028['row']),_0x18d4d9=_0x1aa5b1['columnInsertionIndexes']['includes'](_0x462028['column']);_0x48a5f1||_0x18d4d9||(_0x5d3375=_0x49277e['fromRange'](_0x3cf4e3['createRangeIn'](_0x50ad8e)));}else _0x3e5ccb&&!_0x35328d&&(_0x349234=_0x3cf4e3['createRangeIn'](_0x50ad8e));}else{const _0x1b90f1=_0x3cf4e3['createElement']('tableCellSuggestion'),_0x16f96e=_0x3cf4e3['createElement']('tableCellSuggestion');_0x3cf4e3['wrap'](_0x3cf4e3['createRangeIn'](_0x50ad8e),_0x16f96e),_0x3cf4e3['insert'](_0x1b90f1,_0x50ad8e,0x0);for(const _0x24db9f of Array['from'](_0x2c30dd['getChildren']()))_0x3cf4e3['insert'](_0x24db9f,_0x1b90f1,'end');_0x5d3375=_0x49277e['fromRange'](_0x3cf4e3['createRangeOn'](_0x1b90f1)),_0x349234=_0x49277e['fromRange'](_0x3cf4e3['createRangeOn'](_0x16f96e));}const _0x5b9555=Array['from'](_0x2c30dd['getAttributes']())['filter'](([_0x4aa105])=>ge['includes'](_0x4aa105));_0x1aa5b1['cells']['push']({'element':_0x50ad8e,'attributes':_0x5b9555['length']?Object['fromEntries'](_0x5b9555):null}),_0x5d3375&&_0x1aa5b1['insertionRanges']['push'](_0x5d3375),_0x349234&&_0x1aa5b1['deletionRanges']['push'](_0x349234);},{'priority':'high'}),_0x8f3a1b['on']('insertColumns',(_0x2baf95,_0x424ac3)=>{const [_0x468dd6,_0x4a61fa={}]=_0x424ac3;if(!_0x1aa5b1)return;const _0x4c2a49=_0x4a61fa['at']||0x0,_0x70162d=_0x4a61fa['columns']||0x1;_0x1aa5b1['columnInsertionIndexes']=new Array(_0x70162d)['fill'](_0x4c2a49)['map']((_0x54fd72,_0x3e868b)=>_0x54fd72+_0x3e868b);for(const {cell:_0x1c0b0d}of _0x8f3a1b['createTableWalker'](_0x468dd6,{'startColumn':_0x4c2a49,'endColumn':_0x4c2a49+_0x70162d-0x1}))_0x1aa5b1['columnInsertionRanges']['push'](_0x3a8588['model']['createRangeOn'](_0x1c0b0d));},{'priority':'low'}),_0x8f3a1b['on']('insertRows',(_0x1a6cf6,_0x30eb92)=>{const [_0x259b62,_0x2a4474={}]=_0x30eb92;if(!_0x1aa5b1)return;const _0x1aad14=_0x2a4474['at']||0x0,_0x57d6df=_0x2a4474['rows']||0x1;_0x1aa5b1['rowInsertionIndexes']=new Array(_0x57d6df)['fill'](_0x1aad14)['map']((_0x5edec6,_0x55faf7)=>_0x5edec6+_0x55faf7);for(const {cell:_0x413f85}of _0x8f3a1b['createTableWalker'](_0x259b62,{'startRow':_0x1aad14,'endRow':_0x1aad14+_0x57d6df-0x1}))_0x1aa5b1['rowInsertionRanges']['push'](_0x3a8588['model']['createRangeOn'](_0x413f85));},{'priority':'low'}),_0x7ca91a['descriptionFactory']['registerDescriptionCallback'](_0x4dbd97=>{if(_0x4dbd97['subType']&&_0x4dbd97['subType']['startsWith']('tablePaste'))return _0x4dbd97['previous']?{}:{'type':'insertion','content':o(_0x3a8588['locale'],'*Replace\x20table\x20cells*')};});const _0x3a6b8f=()=>!0x1;for(const _0x3f10e5 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x7ca91a['_suggestionFactory']['registerCustomCallback']('insertion',_0x3f10e5,'join',_0x3a6b8f),_0x7ca91a['_suggestionFactory']['registerCustomCallback']('deletion',_0x3f10e5,'join',_0x3a6b8f),_0x7ca91a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3f10e5,'join',_0x3a6b8f);_0x7ca91a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3a6b8f),_0x7ca91a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x90003c,_0x5b8837,_0x46db5e)=>{const _0x21cb07=_0x90003c['map'](_0x19fa57=>_0x19fa57['getContainedElement']())['filter'](_0x4fe13b=>_0x4fe13b),_0x5502bf=new Map(_0x21cb07['map'](_0x75718b=>[_0x75718b,null]));if(_0x1aa5b1){for(const {element:_0x38c2d3,attributes:_0xa9163}of _0x1aa5b1['cells'])_0xa9163&&_0x5502bf['set'](_0x38c2d3,_0xa9163);}else{if(_0x46db5e&&_0x46db5e['markerAttributes'])for(const [_0x7322b0,_0x68a2c]of Object['entries'](_0x46db5e['markerAttributes'])){const _0x5359ee=_0x3a8588['model']['markers']['get'](_0x7322b0),_0x4905f1=_0x5359ee?_0x5359ee['getRange']()['getContainedElement']():null;_0x4905f1&&_0x5502bf['set'](_0x4905f1,_0x68a2c);}}_0x3a8588['model']['change'](_0x1a8cfe=>{for(const [_0x3b4bfc,_0x16c85e]of _0x5502bf)_0x1a8cfe['setAttributes']({...Ce,..._0x16c85e},_0x3b4bfc);});});const _0x338276=(_0x1429f3,_0x262d55)=>{_0x7ca91a['_suggestionFactory']['registerCustomCallback'](_0x1429f3,'tablePaste',_0x262d55,(_0x439492,_0x2f1d5b,_0x1f29d4)=>{_0x3a8588['model']['change'](_0x2188f2=>{const _0x248e23=[];for(const _0x30425 of _0x439492){const _0x55294e=_0x30425['start']['nodeAfter'];_0x55294e['is']('element','tableCellSuggestion')&&_0x248e23['push'](_0x55294e);}_0x7ca91a['_suggestionFactory']['getSuggestionCallback'](_0x1429f3,null,_0x262d55)(_0x439492,_0x2f1d5b,_0x1f29d4);for(const _0x459c82 of _0x248e23)'$graveyard'!=_0x459c82['root']['rootName']&&_0x2188f2['unwrap'](_0x459c82);});});};_0x338276('insertion','accept'),_0x338276('insertion','discard'),_0x338276('deletion','accept'),_0x338276('deletion','discard'),_0x7ca91a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x544300=>{const _0x4f5f8a=_0x544300['map'](_0xd203bd=>_0xd203bd['getContainedElement']()),_0x5a748d=_0x4f5f8a[0x0]['findAncestor']('table'),{minRow:_0x19cbe5,maxRow:_0x5201d6}=_0x1d8b19['_getCoordsForCells'](_0x4f5f8a);_0x8f3a1b['removeRows'](_0x5a748d,{'at':_0x19cbe5,'rows':_0x5201d6-_0x19cbe5+0x1});}),_0x7ca91a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x20082f=>{const _0x312eaf=_0x20082f['map'](_0x2a9036=>_0x2a9036['getContainedElement']()),_0x433134=_0x312eaf[0x0]['findAncestor']('table'),{minColumn:_0x2c5434,maxColumn:_0x2d9e02}=_0x1d8b19['_getCoordsForCells'](_0x312eaf);_0x8f3a1b['removeColumns'](_0x433134,{'at':_0x2c5434,'columns':_0x2d9e02-_0x2c5434+0x1});});const _0x575ba6=(_0x270bca,_0x20b938)=>{if(!_0x20b938['subType']||!_0x20b938['subType']['startsWith']('tablePaste'))return;const _0x176954=_0x20b938['attributes']['tablePasteChainId'],_0x28dee6=_0x7ca91a['getSuggestions']()['filter'](_0x11a3b2=>_0x11a3b2['isInContent']&&_0x11a3b2['attributes']&&_0x11a3b2['attributes']['tablePasteChainId']==_0x176954);_0x28dee6['length']&&_0x20b938['getAllAdjacentSuggestions']()['length']!=_0x28dee6['length']&&_0x28dee6['reduce']((_0x2277de,_0x3119c8)=>(_0x2277de['next']=_0x3119c8,_0x3119c8['previous']=_0x2277de,_0x3119c8));};function _0x2ba7f7(_0x57c0dd,_0x3dc3a9=!0x0){const {id:_0x47e794}=_0x7ca91a['_splitMarkerName'](_0x57c0dd['markerName']),_0x35efa3=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1a8ba7=_0x7ca91a['activeMarkers']['includes'](_0x57c0dd['markerName']);return _0x1a8ba7&&_0x35efa3['push']('ck-suggestion-marker--active'),{'classes':_0x35efa3,'attributes':{'data-suggestion':_0x47e794},'priority':_0x1a8ba7&&_0x3dc3a9?0xbc2:0xbb8};}_0x7ca91a['on']('suggestionLoaded',_0x575ba6,{'priority':'high'}),_0x7ca91a['on']('suggestionUnloaded',_0x575ba6,{'priority':'high'}),_0x3a8588['model']['document']['registerPostFixer'](()=>{let _0x10000e=!0x1;const _0x12ade7=Array['from'](_0x3a8588['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xf70e13,data:_0x32b580}of _0x12ade7){const {group:_0x5212b1,type:_0x561124,id:_0x1aee66}=_0x7ca91a['_splitMarkerName'](_0xf70e13);if('suggestion'!=_0x5212b1||'deletion'!=_0x561124||_0x32b580['oldRange'])continue;if(!_0x7ca91a['hasSuggestion'](_0x1aee66))continue;const _0x52e334=_0x7ca91a['getSuggestion'](_0x1aee66)['getRanges'](),_0x3e91aa=_0x3a8588['plugins']['get']('Users')['me'];for(const _0xb3c9c of _0x7ca91a['getSuggestions']()){if(!_0xb3c9c['isInContent']||_0xb3c9c['author']!=_0x3e91aa)continue;if('formatBlock'!=_0xb3c9c['type']||'tablePasteCell'!=_0xb3c9c['subType'])continue;if(_0xb3c9c['getRanges']()['every'](_0x160c1b=>_0x52e334['some'](_0x5d8a7=>_0x5d8a7['containsRange'](_0x160c1b,!0x0)))){for(const _0x4f06a5 of _0xb3c9c['getAllAdjacentSuggestions']())_0x4f06a5['isInContent']&&(_0x4f06a5['discard'](),_0x10000e=!0x0);}}}return _0x10000e;}),_0x3a8588['model']['document']['registerPostFixer'](_0x19541e=>{const _0x5d04e8=_0x3a8588['commands']['get']('redo');if(!_0x5d04e8||!_0x5d04e8['_createdBatches']['has'](_0x19541e['batch']))return!0x1;let _0x49d854=!0x1;const _0x252f7e=_0x3a8588['plugins']['get']('Users')['me'],_0x318995=_0x3a8588['model']['document']['differ']['getChanges'](),_0x31bcf6=Array['from'](_0x3a8588['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3cbae8,data:_0x1f8ccc})=>{const {group:_0xb7ae8,subType:_0x35d8d1,authorId:_0x15a850}=_0x7ca91a['_splitMarkerName'](_0x3cbae8);return'suggestion'==_0xb7ae8&&'tablePaste'==_0x35d8d1&&_0x15a850==_0x252f7e['id']&&!_0x1f8ccc['oldRange'];});for(const _0x4e4b57 of _0x318995){if('insert'!=_0x4e4b57['type']||'tableCellSuggestion'!=_0x4e4b57['name']||0x1!=_0x4e4b57['length'])continue;const _0x376fec=_0x19541e['createRange'](_0x4e4b57['position'],_0x4e4b57['position']['getShiftedBy'](0x1));if(!_0x31bcf6['find'](({data:_0x5c162d})=>_0x5c162d['newRange']['isEqual'](_0x376fec))){for(const {name:_0x5356df,data:_0x3f9138}of _0x31bcf6)if(_0x376fec['containsRange'](_0x3f9138['newRange'])){_0x19541e['updateMarker'](_0x5356df,{'range':_0x376fec}),_0x49d854=!0x0;break;}}}return _0x49d854;}),_0x3a8588['model']['document']['registerPostFixer'](_0x1d2bf7=>{let _0x1a9a70=!0x1;const _0x4fc401=_0x3a8588['plugins']['get']('Users')['me'],_0x1bba31=_0x7ca91a['getSuggestions']()['filter'](_0x4585e1=>_0x4585e1['isInContent']&&_0x4585e1['author']==_0x4fc401),_0xbf17d8=new Set(),_0x484877=new Set();for(const _0x25ceaa of _0x1bba31)if('tablePaste'==_0x25ceaa['subType'])for(const _0x5a2e60 of _0x25ceaa['getMarkers']()){const _0x3e5c87=_0x5a2e60['getRange']()['getContainedElement']();if(_0x3e5c87){if(_0x3e5c87['is']('element','tableCellSuggestion')&&Pe(_0x3e5c87)){_0x25ceaa['removeMarker'](_0x5a2e60['name']),_0xbf17d8['add'](_0x3e5c87),_0x1a9a70=!0x0;const _0x497f7e=_0x3e5c87['nextSibling'],_0x2e0a7d=_0x3e5c87['previousSibling'],_0x507f14=_0x497f7e&&_0x497f7e['is']('element','tableCellSuggestion'),_0x2c01c2=_0x2e0a7d&&_0x2e0a7d['is']('element','tableCellSuggestion');_0x507f14&&!_0xbf17d8['has'](_0x497f7e)&&_0x484877['add'](_0x497f7e),_0x2c01c2&&!_0xbf17d8['has'](_0x2e0a7d)&&_0x484877['add'](_0x2e0a7d);}else _0x3e5c87['is']('element','paragraph')&&_0x3e5c87['isEmpty']&&(_0x25ceaa['removeMarker'](_0x5a2e60['name']),_0x1a9a70=!0x0);}}else{if('tablePasteCell'==_0x25ceaa['subType']){if(!_0x25ceaa['attributes']||!_0x25ceaa['attributes']['tablePasteChainId'])continue;const _0x2b49d7=_0x25ceaa['attributes']['markerAttributes'];if(_0x2b49d7&&Object['keys'](_0x2b49d7)['length'])continue;const _0x481f0d=_0x25ceaa['attributes']['tablePasteChainId'];let _0x30ee10=!0x0,_0x14a25f=!0x0;for(const _0x2f79a3 of _0x1bba31)if(_0x2f79a3['subType']&&_0x2f79a3['subType']['startsWith']('tablePaste')){if(!_0x2f79a3['attributes']['tablePasteChainId']){_0x14a25f=!0x1;break;}if(_0x2f79a3['id']!=_0x25ceaa['id']&&_0x2f79a3['attributes']['tablePasteChainId']==_0x481f0d){_0x30ee10=!0x1;break;}}_0x14a25f&&_0x30ee10&&(_0x25ceaa['removeMarkers'](),_0x1a9a70=!0x0);}}for(const _0x24046c of _0xbf17d8)_0x1d2bf7['remove'](_0x24046c);for(const _0x5e6bad of _0x484877)_0x1d2bf7['unwrap'](_0x5e6bad);return _0x1a9a70;}),_0x3a8588['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x265bf2,_0x509e5d)=>_0x2ba7f7(_0x265bf2),'converterPriority':'high'}),_0x3a8588['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4bfa31,_0x49256f)=>_0x49256f['options']['showSuggestionHighlights']?_0x2ba7f7(_0x4bfa31,!0x1):null,'converterPriority':'high'});const _0x1c8eb0=_0x3a8588['editing']['view'];this['listenTo'](_0x1c8eb0['document'],'clipboardOutput',(_0x510dde,_0x3e461e)=>{const _0x517776=[];for(const _0x59b3a0 of _0x1c8eb0['createRangeIn'](_0x3e461e['content'])['getItems']())_0x59b3a0['is']('element','suggestion-td')&&_0x517776['push'](_0x59b3a0);_0x1c8eb0['change'](_0x391d01=>{for(const _0x5965e9 of _0x517776)_0x391d01['move'](_0x391d01['createRangeIn'](_0x5965e9),_0x391d01['createPositionBefore'](_0x5965e9)),_0x391d01['remove'](_0x5965e9);});});}}function Pe(_0x5e3abb){if(_0x5e3abb['isEmpty'])return!0x0;const _0x5c54f8=_0x5e3abb['getChild'](0x0);return _0x5c54f8['is']('element','paragraph')&&_0x5c54f8['isEmpty'];}function we(_0x5dcc77,_0x53690e={},_0x502024){for(const {isAnchor:_0x4c9215,cellHeight:_0x53ac75,cellWidth:_0x2c459d}of _0x502024['createTableWalker'](_0x5dcc77,{'includeAllSlots':!0x0,..._0x53690e}))if(!_0x4c9215||0x1!=_0x53ac75||0x1!=_0x2c459d)return!0x1;return!0x0;}class Ct extends _0x20fe95{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4902cb=this['editor']['plugins']['get']('TrackChangesEditing');_0x4902cb['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4902cb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4902cb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4902cb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4902cb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4902cb['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2ae714,_0x2c5d98){const _0x43baea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27d056=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x8a3517=_0x2c5d98['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5bbfbb=_0x27d056['getColumnGroupElement'](_0x8a3517);let _0x489cca=_0x5bbfbb?_0x27d056['getTableColumnsWidths'](_0x5bbfbb):null,_0xae7b9c=_0x8a3517['getAttribute']('tableWidth')||null;const _0x338743=_0x2c5d98['tableWidth']||_0xae7b9c,_0x29acff=_0x2c5d98['columnWidths']||_0x489cca,_0x6ca65d=this['editor']['plugins']['get']('Users')['me'];for(const _0x209d1f of _0x43baea['getSuggestions']()){const _0x20bacb=_0x209d1f['getContainedElement']();if('resizeTable'===_0x209d1f['subType']&&_0x20bacb===_0x8a3517){_0x209d1f['author']!==_0x6ca65d&&_0x209d1f['discard']();const _0x5baf7b=_0x209d1f['data']['commandParams'];_0xae7b9c=_0x5baf7b[0x0]['tableWidth'],_0x489cca=_0x5baf7b[0x0]['columnWidths'];break;}}_0x2ae714({'table':_0x8a3517,'tableWidth':_0x338743,'columnWidths':_0x29acff}),_0x43baea['markBlockFormat'](_0x8a3517,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xae7b9c,'columnWidths':_0x489cca}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x10c48e){if('formatBlock'!=_0x10c48e['type']&&'formatInline'!=_0x10c48e['type'])return;const {data:_0x34fa83}=_0x10c48e;if(_0x34fa83&&'resizeTable'===_0x34fa83['formatGroupId']){const _0x1836b6='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1836b6)};}}}class _t extends _0x20fe95{['afterInit'](){const _0x485a05=this['editor'];_0x485a05['plugins']['has']('Template')&&_0x485a05['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Dt extends _0x20fe95{['afterInit'](){const _0x941c72=this['editor'];if(!_0x941c72['commands']['get']('insertTableOfContents'))return;_0x941c72['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x423d31=_0x941c72['plugins']['get']('TrackChangesEditing'),_0x154072=_0x941c72['locale'];_0x423d31['descriptionFactory']['registerElementLabel']('tableOfContents',_0x211bbd=>o(_0x154072,'ELEMENT_TABLE_OF_CONTENTS',_0x211bbd));}}class Nt extends _0x20fe95{['afterInit'](){const _0x21bb12=this['editor'];if(!_0x21bb12['plugins']['has']('Title'))return;const _0xb56800=_0x21bb12['plugins']['get']('TrackChangesEditing');_0xb56800['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x21bb12['locale'],'ELEMENT_TITLE')),_0x21bb12['model']['document']['registerPostFixer'](_0x1e399f=>{let _0x9ac4dd=!0x1;const _0x234117=Array['from'](_0x21bb12['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x31e5ac,data:_0x3535ff}of _0x234117){const {group:_0x25d7fa}=_0xb56800['_splitMarkerName'](_0x31e5ac);if('suggestion'!==_0x25d7fa||!_0x3535ff['newRange'])continue;const _0x1e8acf=_0x3535ff['newRange'],_0x2be0fa=_0x1e8acf['end']['nodeBefore'];if(!_0x2be0fa||!_0x2be0fa['is']('element','title-content'))continue;if(!_0x1e8acf['start']['isTouching'](_0x1e8acf['end']))continue;const _0x3045db=_0x21bb12['model']['schema']['getNearestSelectionRange'](_0x1e8acf['end'],'forward');if(_0x3045db&&_0x3045db['isCollapsed']){const _0x31f9ad=_0x1e399f['createRange'](_0x1e8acf['start'],_0x3045db['start']);_0x31f9ad['isEqual'](_0x1e8acf)||(_0x1e399f['updateMarker'](_0x31e5ac,{'range':_0x31f9ad}),_0x9ac4dd=!0x0);}_0x9ac4dd||(_0x1e399f['removeMarker'](_0x31e5ac),_0x9ac4dd=!0x0);}return _0x9ac4dd;});}}class Mt extends _0x20fe95{['afterInit'](){const _0x23ef6a=this['editor'],_0x1dcd35=_0x23ef6a['plugins']['get']('TrackChangesEditing');_0x23ef6a['plugins']['has']('UndoEditing')&&(_0x1dcd35['enableCommand']('undo'),_0x1dcd35['enableCommand']('redo'));}}class $t extends _0x20fe95{static get['requires'](){return[St];}['afterInit'](){const _0xec3a20=this['editor'];if(!_0xec3a20['plugins']['has']('TableCaptionEditing'))return;_0xec3a20['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Bt extends _0x20fe95{['tableProperties'];['tableCellProperties'];constructor(_0x14fbb5){super(_0x14fbb5),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 _0x18751b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x8887aa of this['tableProperties'])_0x18751b['enableCommand'](_0x8887aa,(_0x2d4411,_0x456e69)=>{const _0x513b46=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x8887aa,[_0x513b46],this['tableProperties'],'tableProperties',_0x2d4411,_0x456e69);});_0x18751b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x18751b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x18751b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x408bcd,_0x2975ec)=>this['handleDiscardAction'](this['tableProperties'],_0x408bcd,_0x2975ec)),_0x18751b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2b66e0 of this['tableCellProperties'])_0x18751b['enableCommand'](_0x2b66e0,(_0x233d07,_0x3dd728)=>{const _0x13c449=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2b66e0,_0x13c449,this['tableCellProperties'],'tableCellProperties',_0x233d07,_0x3dd728);});_0x18751b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x18751b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x18751b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x178ae8,_0x405dd8)=>this['handleDiscardAction'](this['tableCellProperties'],_0x178ae8,_0x405dd8)),_0x18751b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x18751b['descriptionFactory']['registerDescriptionCallback'](_0x1ad281=>this['handleSuggestionDescription'](_0x1ad281));}['_handlePropertyChange'](_0x382605,_0x1168f4,_0x3d2fac,_0x5ab267,_0x2e849f,_0x31efa2){const _0x4aa35b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x31efa2['batch'],()=>{for(const _0x39a266 of _0x1168f4){if(this['_getSuggestion'](_0x39a266,_0x5ab267))_0x2e849f(_0x31efa2);else{const _0x45c7a8={};for(const _0x5e171d of _0x3d2fac){const _0x3bff7b=_0x39a266['getAttribute'](_0x5e171d);void 0x0!==_0x3bff7b&&(_0x45c7a8[_0x5e171d]=_0x3bff7b);}_0x2e849f(_0x31efa2),_0x4aa35b['markBlockFormat'](_0x39a266,{'commandParams':[_0x45c7a8]},[],_0x5ab267);}}});}['handleDiscardAction'](_0x124a49,_0x3dc277,_0x29572){const _0x3a35b9=_0x3dc277[0x0]['start']['nodeAfter'],_0x45e9b1=_0x29572['commandParams'][0x0];this['editor']['model']['change'](_0x257a7f=>{for(const _0x354548 of _0x124a49)void 0x0!==_0x45e9b1[_0x354548]?_0x257a7f['setAttribute'](_0x354548,_0x45e9b1[_0x354548],_0x3a35b9):_0x257a7f['removeAttribute'](_0x354548,_0x3a35b9);});}['handleSuggestionDescription'](_0x356e14){if(_0x356e14['data'])switch(_0x356e14['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'](_0x206791,_0x1ddd6b){const _0x4ef625=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3e18ca of _0x4ef625['getSuggestions']({'skipNotAttached':!0x0})){const _0x41fa41=_0x3e18ca['getContainedElement']();if(_0x3e18ca['subType']===_0x1ddd6b&&_0x41fa41===_0x206791)return _0x3e18ca;}return null;}}const m='$elementName';class p extends _0x20fe95{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x21c972,_0xbbd475,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,mt,ct,z,pe,ft,gt,lt,dt,pt,kt,bt,wt,yt,jt,St,At,It,$t,vt,Ct,Dt,Bt,_t,Nt,Mt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x335a62){function _0x260bbc(_0x1911e8){return _0x1911e8['map'](_0x2c06f2=>String['fromCharCode'](_0x2c06f2))['join']('');}super(_0x335a62),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2a1b63,_0x174bc4,_0x3520dc,_0x1107bc)=>{this['_model']['change'](()=>{for(const _0x1ba8b1 of[..._0x1107bc,..._0x3520dc])this['_model']['markers']['has'](_0x1ba8b1)&&_0x335a62['editing']['reconvertMarker'](_0x1ba8b1);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Rt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x335a62['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(),_0x335a62['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x335a62['config']['get']('trackChanges.trackFormatChanges'),_0x335a62['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x335a62['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x335a62,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x260bbc([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x260bbc([0x34,0x30,0x34,0x38,0x31,0x34,0x34,0x32]);}['init'](){const _0x23c968=this['editor'],_0x319cf9=(_0x5bf719,_0x36a0a2)=>{if('attribute'!=_0x5bf719)return'ck-suggestion-marker-'+_0x5bf719;const _0x4512b1=_0x36a0a2['split']('|')[0x0];return this['_isBlockAttribute'](_0x4512b1)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x23c968['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x490b26=>{const {id:_0x13e6c1,type:_0x2f7968,subType:_0x330fb3}=this['_splitMarkerName'](_0x490b26['markerName']),_0x3e38c0=['ck-suggestion-marker',_0x319cf9(_0x2f7968,_0x330fb3)];let _0x1fb7b1=0xbb8;return this['activeMarkers']['includes'](_0x490b26['markerName'])&&(_0x3e38c0['push']('ck-suggestion-marker--active'),_0x1fb7b1=0xbc2),'deletion'==_0x2f7968&&(_0x1fb7b1+=0x5),{'classes':_0x3e38c0,'attributes':{'data-suggestion':_0x13e6c1},'priority':_0x1fb7b1};}}),_0x23c968['conversion']['for']('dataDowncast')['add'](_0x26ec43=>{_0x26ec43['on']('addMarker:suggestion',(_0xde75ce,_0x59d055,_0x1b6b90)=>{if(!_0x1b6b90['options']['showSuggestionHighlights'])return;const _0x59784e=_0x59d055['item'];if(!_0x59784e)return;const _0x11665d=_0x1b6b90['mapper']['toViewElement'](_0x59784e);_0x23c968['model']['schema']['isObject'](_0x59784e)&&_0x11665d&&!_0x11665d['getCustomProperty']('widget')&&_0x11665d['is']('containerElement')&&_0x481bff(_0x11665d,_0x1b6b90['writer']);},{'priority':'high'});}),_0x23c968['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x284b18,_0x1ce91e)=>{if(!_0x1ce91e['options']['showSuggestionHighlights'])return null;const {type:_0x435be6,subType:_0x84e155}=this['_splitMarkerName'](_0x284b18['markerName']);return{'classes':['ck-suggestion-marker',_0x319cf9(_0x435be6,_0x84e155)],'priority':0xbb8};}});const _0x28dab6=({showActiveMarkers:_0x2457a1=!0x0,isAttributeSuggestion:_0xfbaf79=!0x1}={})=>(_0x370480,_0x114b21,_0x5105d1)=>{if(!_0x114b21['item'])return;const {id:_0x73ea43}=this['_splitMarkerName'](_0x114b21['markerName']);if(_0xfbaf79){const _0x53b603=this['_suggestions']['get'](_0x73ea43),_0x18633a=this['_getAttributeKey'](_0x53b603);if(!this['_isBlockAttribute'](_0x18633a))return;}if(_0x114b21['item']['is']('selection'))return void _0x5105d1['consumable']['consume'](_0x114b21['item'],_0x370480['name']);const _0x53f377=_0x5105d1['mapper']['toViewElement'](_0x114b21['item']);if(_0x114b21['item']['is']('element')&&_0x23c968['model']['schema']['isBlock'](_0x114b21['item'])&&!_0x53f377['getCustomProperty']('addHighlight')){_0x5105d1['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x53f377),_0x5105d1['writer']['setAttribute']('data-suggestion',_0x73ea43,_0x53f377),_0x5105d1['mapper']['bindElementToMarker'](_0x53f377,_0x114b21['markerName']),_0x2457a1&&(this['activeMarkers']['includes'](_0x114b21['markerName'])?_0x5105d1['writer']['addClass']('ck-suggestion-marker--active',_0x53f377):_0x5105d1['writer']['removeClass']('ck-suggestion-marker--active',_0x53f377));for(const _0x479726 of _0x23c968['model']['createRangeIn'](_0x114b21['item'])['getItems']())_0x5105d1['consumable']['consume'](_0x479726,_0x370480['name']);_0x5105d1['consumable']['consume'](_0x114b21['item'],_0x370480['name']);}};_0x23c968['conversion']['for']('dataDowncast')['add'](_0x5da9b7=>{_0x5da9b7['on']('addMarker:suggestion:formatBlock',(_0x584b2b,_0x3ccc1b,_0x3afc6d)=>{_0x3afc6d['options']['showSuggestionHighlights']&&_0x28dab6({'showActiveMarkers':!0x1})(_0x584b2b,_0x3ccc1b,_0x3afc6d);},{'priority':'highest'});}),_0x23c968['conversion']['for']('dataDowncast')['add'](_0x495d8b=>{_0x495d8b['on']('addMarker:suggestion:attribute',(_0x5a35d4,_0x34fe60,_0xd9d0e0)=>{_0xd9d0e0['options']['showSuggestionHighlights']&&_0x28dab6({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5a35d4,_0x34fe60,_0xd9d0e0);},{'priority':'highest'});}),_0x23c968['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x57446b,_0xb710e0)=>_0xb710e0['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x57446b['substr'](0xb)}}),_0x23c968['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x18adbd,{writer:_0x47cc20})=>{let _0x42ffb1='suggestion:'+_0x18adbd['getAttribute']('suggestion-type')+':'+_0x18adbd['getAttribute']('id');return _0x18adbd['getAttribute']('marker-count')&&(_0x42ffb1+=':'+_0x18adbd['getAttribute']('marker-count')),_0x47cc20['createElement']('$marker',{'data-name':_0x42ffb1});}}),_0x23c968['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x23c968['conversion']['for']('editingDowncast')['add'](_0x3c1577=>{_0x3c1577['on']('addMarker:suggestion:formatBlock',_0x28dab6(),{'priority':'high'});}),_0x23c968['conversion']['for']('editingDowncast')['add'](_0xf844bc=>{_0xf844bc['on']('addMarker:suggestion:attribute',_0x28dab6({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x23c968['conversion']['for']('editingDowncast')['add'](_0x150171=>{_0x150171['on']('removeMarker:suggestion:formatBlock',(_0x5ce2cd,_0x2eb884,_0xdd0155)=>{const _0x347f93=_0xdd0155['mapper']['markerNameToElements'](_0x2eb884['markerName']);if(_0x347f93){for(const _0x240f2c of _0x347f93)_0x240f2c['getCustomProperty']('addHighlight')||(_0xdd0155['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x240f2c),_0xdd0155['writer']['removeAttribute']('data-suggestion',_0x240f2c),_0xdd0155['mapper']['unbindElementFromMarkerName'](_0x240f2c,_0x2eb884['markerName']));}},{'priority':'high'});}),_0x23c968['conversion']['for']('editingDowncast')['add'](_0x5157d8=>{_0x5157d8['on']('removeMarker:suggestion:attribute',(_0xd9fef7,_0x2cefe3,_0x10366f)=>{const _0x43f1a9=_0x10366f['mapper']['markerNameToElements'](_0x2cefe3['markerName']);if(!_0x43f1a9)return;const {id:_0xf09416}=this['_splitMarkerName'](_0x2cefe3['markerName']),_0x165eef=this['_suggestions']['get'](_0xf09416),_0x5283f8=this['_getAttributeKey'](_0x165eef);if(this['_isBlockAttribute'](_0x5283f8)){for(const _0x41566d of _0x43f1a9)_0x41566d['getCustomProperty']('addHighlight')||(_0x10366f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x41566d),_0x10366f['writer']['removeAttribute']('data-suggestion',_0x41566d),_0x10366f['mapper']['unbindElementFromMarkerName'](_0x41566d,_0x2cefe3['markerName']));}},{'priority':'high'});}),_0x23c968['model']['document']['registerPostFixer'](_0x5310d2=>{let _0x2fff33=!0x1;const _0x47cfd5=Array['from'](_0x23c968['model']['document']['differ']['getChangedMarkers']()),_0x388c21=new Set();for(const {name:_0x17388a,data:_0x476583}of _0x47cfd5){const {group:_0x141d78,type:_0x267b9c,subType:_0x2c79b1,id:_0x4d271c}=this['_splitMarkerName'](_0x17388a);if('suggestion'!==_0x141d78)continue;const _0xb3554b=this['_suggestions']['get'](_0x4d271c);if(null!=_0x476583['newRange']){'formatInline'==_0x267b9c&&(_0x2fff33=_0x2fff33||Vt(_0x476583['newRange'],_0x17388a,_0x5310d2,_0x23c968['model']['schema']));const _0x59f876='attribute'==_0x267b9c&&this['_isBlockAttribute'](_0x2c79b1['split']('|')[0x0]);if(_0x476583['newRange']['isCollapsed']||'$graveyard'==_0x476583['newRange']['root']['rootName']||'formatBlock'==_0x267b9c&&!Ot(_0x476583['newRange'])||_0x59f876&&!Ot(_0x476583['newRange'])||'deletion'==_0x267b9c&&!(!Et(_0x5181c3=_0x476583['newRange'])&&!function(_0x5bdb98){return _0x5bdb98['start']['parent']==_0x5bdb98['end']['nodeBefore']&&_0x5bdb98['start']['isAtEnd'];}(_0x5181c3)))_0x5310d2['removeMarker'](_0x17388a),_0x2fff33=!0x0;else{if(!_0xb3554b||!_0xb3554b['isInContent'])continue;_0x388c21['add'](_0xb3554b);}}}var _0x5181c3;return _0x388c21['size']>0x0&&(_0x2fff33=!!this['_joinWithAdjacentSuggestions'](_0x388c21)||_0x2fff33),_0x2fff33;}),_0x23c968['model']['document']['registerPostFixer'](_0x4d8dbf=>{let _0x18d6e2=!0x1;for(const _0x32f64b of _0x23c968['model']['document']['differ']['getChanges']())if('insert'==_0x32f64b['type'])for(const _0x28afa5 of this['_suggestions']['values']()){if(_0x28afa5['isMultiRange']||!_0x28afa5['isInContent'])continue;const _0x641729='formatBlock'==_0x28afa5['type'],_0x8b4188=this['_getAttributeKey'](_0x28afa5),_0x2a83a6=_0x8b4188&&this['_isBlockAttribute'](_0x8b4188);if(!_0x641729&&!_0x2a83a6)continue;const _0x3bb8e4=_0x28afa5['getFirstRange']();if(_0x3bb8e4['start']['parent']!=_0x3bb8e4['end']['parent']&&!_0x3bb8e4['end']['isAtEnd']){const _0x426232=_0x23c968['model']['createPositionAt'](_0x3bb8e4['start']['nodeAfter'],'end'),_0x14bec0=_0x23c968['model']['createRange'](_0x3bb8e4['start'],_0x426232);_0x4d8dbf['updateMarker'](_0x28afa5['getFirstMarker'](),{'range':_0x14bec0}),_0x18d6e2=!0x0;}}return _0x18d6e2;}),_0x23c968['model']['document']['registerPostFixer'](_0x562d39=>this['_processAttributeChanges'](_0x562d39)),_0x23c968['model']['document']['registerPostFixer'](_0x2637fa=>!_0x2637fa['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2637fa)),_0x23c968['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x23c968['model']['document']['on']('change:data',(_0x3ae5c1,_0x5b72c6)=>{if(!_0x5b72c6['isLocal']||_0x5b72c6['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x26ba1e=_0x23c968['model']['document']['differ']['getChanges']();if(0x0==_0x26ba1e['length'])return;const _0x666328=[],_0x4b6c87=_0x26ba1e['filter'](_0x1c532f=>'attribute'==_0x1c532f['type']),_0x1236c1=_0x26ba1e['filter'](_0x192d20=>'insert'==_0x192d20['type']&&'$text'!=_0x192d20['name']);for(const _0x497829 of _0x4b6c87)this['_isRegisteredAttribute'](_0x497829['attributeKey'])&&_0x666328['push']({'key':_0x497829['attributeKey'],'newValue':_0x497829['attributeNewValue'],'oldValue':_0x497829['attributeOldValue'],'range':Gt(_0x497829['range'],_0x23c968['model'])});for(const _0x27545c of _0x1236c1){if('rename'!=_0x27545c['action']&&'refresh'!=_0x27545c['action'])continue;const _0x386244=Ft(_0x27545c['position']['nodeAfter'],_0x23c968['model']),_0x8b0315=_0x27545c['before'];'rename'==_0x27545c['action']&&_0x666328['push']({'key':m,'newValue':_0x27545c['name'],'oldValue':_0x8b0315['name'],'range':_0x386244});for(const [_0x1daf98,_0x5cc9b2]of _0x8b0315['attributes']){if(!this['_isRegisteredAttribute'](_0x1daf98))continue;const _0xafdeaa=_0x27545c['attributes']['get'](_0x1daf98);_0x5cc9b2!==_0xafdeaa&&_0x666328['push']({'key':_0x1daf98,'newValue':_0xafdeaa,'oldValue':_0x5cc9b2,'range':_0x386244});}for(const [_0x512497,_0x3faab4]of _0x27545c['attributes'])this['_isRegisteredAttribute'](_0x512497)&&(_0x8b0315['attributes']['has'](_0x512497)||_0x666328['push']({'key':_0x512497,'newValue':_0x3faab4,'oldValue':null,'range':_0x386244}));}0x0!=_0x666328['length']&&_0x23c968['model']['enqueueChange'](_0x5b72c6,_0x407ee7=>{const _0x4d80a1=_0x5d1950();for(const {range:_0x4d649c,key:_0x3d81f0,oldValue:_0x5f4ff7,newValue:_0x2f2a4b}of _0x666328)this['markAttributeChange'](_0x4d649c,_0x3d81f0,_0x5f4ff7,_0x2f2a4b,{'groupId':_0x4d80a1});this['_reduceExistingSuggestions'](_0x407ee7,_0x666328);});},{'priority':'lowest'}),_0x23c968['model']['markers']['on']('update:suggestion',(_0x16c665,_0x253113,_0x315bc4)=>{if(null==_0x315bc4){const {id:_0x58ed47}=this['_splitMarkerName'](_0x253113['name']),_0x2be36a=this['_suggestions']['get'](_0x58ed47);_0x2be36a&&_0x2be36a['addMarkerName'](_0x253113['name']);}}),_0x23c968['model']['document']['on']('change:data',()=>{const _0x52c0bc=Array['from'](_0x23c968['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4f6962=>'suggestion'===this['_splitMarkerName'](_0x4f6962['name'])['group']);if(0x0===_0x52c0bc['length'])return;_0x52c0bc['sort']((_0x562f70,_0x240c6f)=>{const _0x7084bf=_0x562f70['data']['oldRange'],_0x23ff82=_0x240c6f['data']['oldRange'];return null===_0x7084bf&&null===_0x23ff82?0x0:null===_0x7084bf&&null!==_0x23ff82?-0x1:null!==_0x7084bf&&null===_0x23ff82?0x1:_0x7084bf['start']['isBefore'](_0x23ff82['start'])?-0x1:0x1;});const _0x573fa0=new Set(),_0x2d38f3=new Set();for(const {name:_0x2832ec,data:_0x2e0029}of _0x52c0bc){const {id:_0x5f50df}=this['_splitMarkerName'](_0x2832ec);if(null===_0x2e0029['oldRange']){const _0x1673e8=this['_handleNewSuggestionMarker'](_0x2832ec);_0x2d38f3['add'](_0x1673e8);}else{const _0x3d9178=this['_suggestions']['get'](_0x5f50df);null!==_0x2e0029['newRange']||_0x3d9178['isInContent']?(_0x573fa0['add'](_0x3d9178['head']),_0x2d38f3['add'](_0x3d9178)):this['_removeSuggestion'](_0x3d9178);}}_0x2d38f3['size']>0x0&&this['_refreshSuggestionsChain'](_0x2d38f3);for(const _0x5a8d05 of _0x573fa0)this['fire']('suggestionChanged',_0x5a8d05);}),_0x23c968['model']['on']('applyOperation',(_0x4c6d40,_0xd1781)=>{const _0x103b94=_0xd1781[0x0];if(!this['_suggestions']['size'])return;if(!_0x103b94['isDocumentOperation'])return;if(_0x103b94['batch']['isUndo']||!_0x103b94['batch']['isLocal'])return;let _0x5d3708,_0x61787f;switch(_0x103b94['type']){case'insert':_0x5d3708=_0x23c968['model']['createPositionAt'](_0x103b94['position']),_0x61787f=_0x5d3708['getShiftedBy'](_0x103b94['howMany']);break;case'split':_0x5d3708=_0x23c968['model']['createPositionAt'](_0x103b94['splitPosition']),_0x61787f=_0x23c968['model']['createPositionAt'](_0x103b94['moveTargetPosition']);break;case'move':_0x5d3708=_0x23c968['model']['createPositionAt'](_0x103b94['targetPosition']),_0x61787f=_0x5d3708['getShiftedBy'](_0x103b94['howMany']);break;default:return;}const _0x10a304=_0x23c968['model']['createRange'](_0x5d3708,_0x61787f);_0x23c968['model']['change'](()=>{for(const {suggestion:_0x38f329,meta:_0x23fa98}of this['_findSuggestions'](_0x10a304)){if(_0x38f329['isMultiRange'])continue;if('formatInline'==_0x38f329['type'])continue;const _0x268d46=this['_getAttributeKey'](_0x38f329);if(_0x268d46&&this['_isBlockAttribute'](_0x268d46)&&'split'!=_0x103b94['type'])continue;const _0xd0d745=_0x38f329['data']&&_0x38f329['data']['multipleBlocks'];('formatBlock'!=_0x38f329['type']||'split'==_0x103b94['type']&&!_0xd0d745)&&(_0x23fa98['containsRangeInObject']||'insertion'==_0x38f329['type']&&_0x23fa98['isOwn']||_0x38f329['getFirstRange']()['containsRange'](_0x10a304)&&this['_breakSuggestionMarker'](_0x38f329,_0x5d3708,_0x61787f));}});},{'priority':'lowest'}),_0x23c968['model']['on']('deleteContent',(_0x55b1a9,_0x2bfa9a)=>{const _0x5d8236=_0x2bfa9a[0x0],_0x1eb9fa=_0x2bfa9a[0x1];if(_0x1eb9fa&&_0x1eb9fa['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5d8236['isCollapsed'])return;const _0x1d895b=_0x23c968['model']['schema'],{start:_0x375ded,end:_0x1f7540}=_0x5d8236['getFirstRange'](),_0x196d13=_0x375ded['nodeAfter']&&_0x1d895b['isLimit'](_0x375ded['nodeAfter'])?null:_0x1d895b['getNearestSelectionRange'](_0x375ded,'forward'),_0x46fafe=_0x1f7540['nodeBefore']&&_0x1d895b['isLimit'](_0x1f7540['nodeBefore'])?null:_0x1d895b['getNearestSelectionRange'](_0x1f7540,'backward'),_0x19b9e4=_0x23c968['model']['createRange'](_0x196d13?_0x196d13['start']:_0x375ded,_0x46fafe?_0x46fafe['end']:_0x1f7540);_0x23c968['model']['change'](_0x3f39a5=>{this['markDeletion'](_0x19b9e4);const _0x3f7b60=_0x23c968['model']['schema']['getNearestSelectionRange'](_0x19b9e4['start']);_0x5d8236['is']('documentSelection')?_0x3f39a5['setSelection'](_0x3f7b60):_0x5d8236['setTo'](_0x3f7b60);}),_0x55b1a9['stop']();},{'priority':_0xd9177a['normal']+0xa}),_0x23c968['model']['on']('insertContent',(_0x3743cb,_0x4bf0ac)=>{const _0x431b88=_0x4bf0ac[_0x4bf0ac['length']-0x1];_0x431b88&&_0x431b88['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x23c968['model']['change'](()=>{let _0x9c6d79=_0x23c968['model']['insertContent'](_0x4bf0ac[0x0],_0x4bf0ac[0x1],_0x4bf0ac[0x2],{'forceDefaultExecution':!0x0});if(!_0x9c6d79)return;_0x3743cb['return']=_0x9c6d79['clone']();const _0x495edd=_0x9c6d79['end']['nodeBefore'],_0x246f79=_0x23c968['model']['schema'];_0x495edd&&_0x246f79['isBlock'](_0x495edd)&&!_0x246f79['isObject'](_0x495edd)&&(_0x9c6d79=_0x23c968['model']['createRange'](_0x9c6d79['start'],_0x23c968['model']['createPositionAt'](_0x495edd,'end'))),this['markInsertion'](_0x9c6d79);}),_0x3743cb['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4c1dac=new $(_0x23c968,this['_suggestions']);_0x23c968['commands']['add']('acceptSuggestion',_0x4c1dac),this['enableCommand']('acceptSuggestion');const _0x42096a=new B(_0x23c968,this['_suggestions']);_0x23c968['commands']['add']('discardSuggestion',_0x42096a),this['enableCommand']('discardSuggestion'),_0x23c968['commands']['add']('acceptAllSuggestions',new x(_0x23c968,_0x4c1dac,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x23c968['commands']['add']('discardAllSuggestions',new x(_0x23c968,_0x42096a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x23c968['commands']['add']('acceptSelectedSuggestions',new R(_0x23c968,_0x4c1dac,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x23c968['commands']['add']('discardSelectedSuggestions',new R(_0x23c968,_0x42096a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3c126d=_0x23c968['plugins']['get']('CommentsRepository');this['listenTo'](_0x3c126d,'addComment',(_0x11c681,{threadId:_0x2f6846})=>{const _0x34afec=this['_suggestions']['get'](_0x2f6846);_0x34afec&&_0x34afec['commentThread']&&0x1===_0x34afec['commentThread']['length']&&this['_updateSuggestionData'](_0x2f6846,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3c126d,'removeComment',(_0xfa231a,{threadId:_0x34288b})=>{const _0x382efd=this['_suggestions']['get'](_0x34288b);_0x382efd&&_0x382efd['commentThread']&&!_0x382efd['commentThread']['length']&&this['_updateSuggestionData'](_0x34288b,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x21e3a4){if(this['_adapter'])throw new _0x4d0924('track-changes-adapter-already-set',this);this['_adapter']=_0x21e3a4;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5a554a=!0x1,toJSON:_0xa7c046=!0x1}={}){const _0x3002b6=[];for(const _0x446e80 of this['_suggestions']['values']())_0x5a554a&&!_0x446e80['isInContent']||_0x3002b6['push'](_0x446e80);return _0xa7c046?_0x3002b6['map'](_0x26d558=>_0x26d558['toJSON']()):_0x3002b6;}['getSuggestion'](_0x1a1d5c){const _0x6e53c2=this['_suggestions']['get'](_0x1a1d5c);if(!_0x6e53c2)throw new _0x4d0924('track-changes-suggestion-not-found',this);return _0x6e53c2;}['hasSuggestion'](_0x1d051b){return this['_suggestions']['has'](_0x1d051b);}['addSuggestionData'](_0x58a51f){const {authorId:_0x4a29cf,id:_0x54a9fc,attributes:_0x404d44}=_0x58a51f,[_0x17c78c,_0x1883d2]=_0x58a51f['type']['split'](':'),_0xc7f171=this['_suggestions']['get'](_0x54a9fc)||this['_createSuggestion'](_0x17c78c,_0x1883d2,_0x54a9fc,_0x4a29cf,_0x404d44);if(this['_addThreadToSuggestion'](_0xc7f171),this['_checkSuggestionCorrectness'](_0xc7f171,_0x17c78c,_0x1883d2||null,_0x4a29cf),_0xc7f171['createdAt']=_0x58a51f['createdAt'],_0xc7f171['_isDataLoaded']=!0x0,_0x404d44&&_0x404d44['@external']){const _0xb7f499=_0x404d44['@external'],_0x195474=this['_getExternalAuthor'](_0xb7f499['authorName']);_0xc7f171['authoredAt']=_0xb7f499['createdAt'],_0xc7f171['author']=_0x195474,_0xc7f171['isExternal']=!0x0;}else _0xc7f171['authoredAt']=_0x58a51f['createdAt'];switch(_0x58a51f['data']&&(_0xc7f171['data']=_0x58a51f['data']),_0x58a51f['attributes']&&(_0xc7f171['attributes']=_0x58a51f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xc7f171['_saved']=!0x0),this['_suggestionState']['get'](_0xc7f171)){case'notReady':this['_suggestionState']['set'](_0xc7f171,'dataReady');break;case'markerReady':_0xc7f171['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xc7f171])),this['_refreshSuggestionsChain'](new Set([_0xc7f171])),this['_suggestionState']['set'](_0xc7f171,'ready'),this['fire']('suggestionLoaded',_0xc7f171)):this['_suggestionState']['set'](_0xc7f171,'removed');}return _0xc7f171;}['acceptSuggestion'](_0x135ae7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x30e4b0 of _0x135ae7['getAllAdjacentSuggestions']())_0x30e4b0['accept']();});});}['discardSuggestion'](_0x53fbb3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1ffc47 of _0x53fbb3['getAllAdjacentSuggestions']())_0x1ffc47['discard']();});});}['enableCommand'](_0xaa59a6,_0x234de1){const _0x4ce5a9=this['editor']['commands']['get'](_0xaa59a6);if(!_0x4ce5a9)throw new _0x4d0924('track-changes-command-not-found',this,{'commandName':_0xaa59a6});if(this['_enabledCommands']['has'](_0x4ce5a9))throw new _0x4d0924('track-changes-enable-command-twice',this,{'commandName':_0xaa59a6});this['_enabledCommands']['add'](_0x4ce5a9),_0x234de1&&_0x4ce5a9['on']('execute',(_0x2ea0ce,_0x2cc0d7)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2cc0d7['length']>0x0&&_0x2cc0d7[_0x2cc0d7['length']-0x1]&&_0x2cc0d7[_0x2cc0d7['length']-0x1]['forceDefaultExecution']?_0x2cc0d7['pop']():(_0x2ea0ce['return']=_0x234de1((..._0x8f2aba)=>_0x4ce5a9['execute'](..._0x8f2aba,{'forceDefaultExecution':!0x0}),..._0x2cc0d7),_0x2ea0ce['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x43129b){let _0x5f73c6,_0x1249c6;const _0x34b759=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5f73c6=_0x43129b();}catch(_0xad6149){_0x1249c6=_0xad6149;}return _0x34b759||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1249c6&&_0x4d0924['rethrowUnexpectedError'](_0x1249c6,this),_0x5f73c6;}['markInsertion'](_0x286f17,_0x28f94c=null,_0x5d70c5={}){if(_0x286f17['isCollapsed'])return null;const _0x73b64c=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x233d3e,meta:_0xb08b7}of this['_findSuggestions'](_0x286f17,'insertion'))if(_0xb08b7['isOwn']){if(!_0xb08b7['isNextTo']){if(_0xb08b7['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ht(_0x233d3e,_0x5d70c5))continue;return _0x233d3e;}if(Ht(_0x233d3e,_0x5d70c5))return _0x233d3e;this['_breakSuggestionMarker'](_0x233d3e,_0x286f17['start'],_0x286f17['end']);break;}if(_0x28f94c==_0x233d3e['subType']&&Ht(_0x233d3e,_0x5d70c5)){const _0x1bd26a=_0x233d3e['getFirstRange']();return _0x1bd26a['start']['isEqual'](_0x286f17['end'])?this['_setSuggestionRange'](_0x233d3e,this['_model']['createRange'](_0x286f17['start'],_0x1bd26a['end'])):this['_setSuggestionRange'](_0x233d3e,this['_model']['createRange'](_0x1bd26a['start'],_0x286f17['end'])),_0x233d3e;}}const _0xdac949=_0x5d1950(),_0x3edfc0=_0x73b64c['id'],_0x56cacf=_0x28f94c?'insertion:'+_0x28f94c:'insertion',_0x4ef22e=this['_setSuggestionData']({'id':_0xdac949,'type':_0x56cacf,'createdAt':new Date(),'authorId':_0x3edfc0,'attributes':_0x5d70c5});return this['_addSuggestionMarker'](_0x56cacf,_0xdac949,_0x3edfc0,_0x286f17),_0x4ef22e;}['markMultiRangeInsertion'](_0x420d57,_0x565c60='multi',_0x158bf8={}){const _0x1737a9=this['editor']['plugins']['get']('Users')['me'],_0x436943=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x565c60,'join');for(const _0x177b74 of this['getSuggestions']())if(_0x177b74['author']['id']==_0x1737a9['id']&&'insertion'==_0x177b74['type']&&_0x177b74['subType']==_0x565c60&&Ht(_0x177b74,_0x158bf8)&&(_0x436943(_0x177b74['getRanges'](),_0x420d57)||_0x436943(_0x420d57,_0x177b74['getRanges']()))){for(const _0xba7b5e of _0x420d57)_0x177b74['addRange'](_0xba7b5e);return _0x177b74;}for(const {suggestion:_0x14df99,meta:_0x297703}of this['_findSuggestions'](_0x420d57,'insertion')){if(!_0x297703['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x297703['containsRangeInObject'])continue;if(!Ht(_0x14df99,_0x158bf8))continue;let _0x51923d=!0x0;for(const _0x1dd042 of _0x14df99['getRanges']())for(const _0x5a3315 of _0x420d57)if(!_0x1dd042['containsRange'](_0x5a3315)){_0x51923d=!0x1;break;}if(_0x51923d)return _0x14df99;}const _0x1000ff=_0x5d1950(),_0x4c1b82=_0x1737a9['id'],_0x3c38c7='insertion:'+_0x565c60,_0x3f3ee2=this['_setSuggestionData']({'id':_0x1000ff,'type':_0x3c38c7,'createdAt':new Date(),'authorId':_0x4c1b82,'attributes':_0x158bf8});for(const _0x213084 of _0x420d57)this['_addSuggestionMarker'](_0x3c38c7,_0x1000ff,_0x4c1b82,_0x213084,u['getMultiRangeId']());return _0x3f3ee2;}['markInlineFormat'](_0xbb761f,_0x297019,_0x564032=null,_0x1cc895={}){if(_0x564032=_0x564032||Ut(_0x297019),_0xbb761f['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x156573=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x564032,'accept');return this['forceDefaultExecution'](()=>_0x156573([_0xbb761f],_0x297019,_0x1cc895)),null;}const _0x5e31f9=this['editor']['plugins']['get']('Users')['me'],_0x588665=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5779d3,meta:_0x3ae80f}of this['_findSuggestions'](_0xbb761f,'insertion'))_0x3ae80f['isOwn']&&!_0x3ae80f['isInsideObject']&&_0x588665['push'](..._0x5779d3['getRanges']());}const _0x6850b5=function(_0x2b42a0,_0x1e45c7){const _0x4f4270=[];for(const _0x1ab453 of _0x1e45c7){const _0x3588cf=_0x2b42a0['getIntersection'](_0x1ab453);_0x3588cf&&_0x4f4270['push'](_0x3588cf);}return _0x4f4270;}(_0xbb761f,_0x588665),_0x304edb=function(_0x28685d,_0x19374c){const _0x1dbbb1=[_0x28685d];for(const _0x5b0f4b of _0x19374c){let _0x543dae=0x0;for(;_0x543dae<_0x1dbbb1['length'];){const _0x4a7da0=_0x1dbbb1[_0x543dae]['getDifference'](_0x5b0f4b);_0x1dbbb1['splice'](_0x543dae,0x1,..._0x4a7da0),_0x543dae+=_0x4a7da0['length'];}}return _0x1dbbb1;}(_0xbb761f,_0x588665);_0x6850b5['length']&&this['_model']['change'](()=>{for(const _0x47733e of _0x6850b5){const _0x35f10f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x564032,'accept');this['forceDefaultExecution'](()=>_0x35f10f([_0x47733e],_0x297019,_0x1cc895));}});for(const _0x1dac50 of _0x304edb){let _0x21c8a0=null,_0x192f49=_0x1dac50['start'],_0x7a9a99=_0x1dac50['end'];for(const {suggestion:_0x16407a,meta:_0x519686}of this['_findSuggestions'](_0x1dac50,'formatInline')){if(!_0x519686['isOwn'])continue;if(_0x16407a['subType']!=_0x564032)continue;if(!Ht(_0x16407a,_0x1cc895))continue;const _0x111f9b=_0x16407a['getFirstRange']();if(_0x111f9b['containsRange'](_0x1dac50,!0x0))return null;_0x192f49=_0x192f49['isBefore'](_0x111f9b['start'])?_0x192f49:_0x111f9b['start'],_0x7a9a99=_0x7a9a99['isAfter'](_0x111f9b['end'])?_0x7a9a99:_0x111f9b['end'],_0x21c8a0?_0x111f9b['start']['isBefore'](_0x21c8a0['getFirstRange']()['start'])?(_0x21c8a0['removeMarkers'](),_0x21c8a0=_0x16407a):_0x16407a['removeMarkers']():_0x21c8a0=_0x16407a;}const _0x2a8b52=this['_model']['createRange'](_0x192f49,_0x7a9a99);if(_0x21c8a0)this['_setSuggestionRange'](_0x21c8a0,_0x2a8b52);else{const _0x4973d4=_0x5d1950(),_0x1e00d2=_0x5e31f9['id'];this['_setSuggestionData']({'id':_0x4973d4,'type':'formatInline:'+_0x564032,'data':_0x297019,'createdAt':new Date(),'authorId':_0x1e00d2,'attributes':_0x1cc895}),this['_addSuggestionMarker']('formatInline:'+_0x564032,_0x4973d4,_0x1e00d2,_0x2a8b52);}}return null;}['markBlockFormat'](_0x2180e7,_0x24da4b,_0x5661d8=[],_0x4f2225=null,_0x39f134={}){_0x24da4b['formatGroupId']||(_0x24da4b['formatGroupId']=_0x24da4b['commandName']),_0x24da4b['multipleBlocks']=_0x2180e7['is']('range'),_0x4f2225=_0x4f2225||Ut(_0x24da4b);const _0x1282d2=_0x5661d8['map'](_0x18bfcc=>Ft(_0x18bfcc,this['_model'])),_0x55dbde=_0x2180e7['is']('range')?_0x2180e7:Ft(_0x2180e7,this['_model']);if('never'===this['_trackFormatChanges']){const _0x530f0b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f2225,'accept');return this['forceDefaultExecution'](()=>_0x530f0b([_0x55dbde],_0x24da4b,_0x39f134)),null;}_0x1282d2['push'](_0x55dbde);let _0x85c301=!0x0;for(const _0x5adc2e of _0x1282d2)if(!this['_rangeIsInLocalUserInsertion'](_0x5adc2e)){_0x85c301=!0x1;break;}if(_0x85c301&&'always'!==this['_trackFormatChanges']){const _0x184310=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f2225,'accept');return this['forceDefaultExecution'](()=>_0x184310([_0x55dbde],_0x24da4b,_0x39f134)),null;}let _0x20d301=null,_0x346ecc=_0x55dbde['start'],_0x2d9bf3=_0x55dbde['end'];for(const {suggestion:_0x525a24,meta:_0x2ce337}of this['_findSuggestions'](_0x55dbde,'formatBlock')){if(!_0x2ce337['isOwn'])continue;if(_0x2ce337['isNextTo']||_0x2ce337['containsRangeInObject']||_0x2ce337['isInsideObject'])continue;if(_0x525a24['data']['formatGroupId']!=_0x24da4b['formatGroupId'])continue;if(!Ht(_0x525a24,_0x39f134))continue;const _0x1aab9d=_0x525a24['getFirstRange']();if(_0x525a24['subType']==_0x4f2225){if(_0x1aab9d['containsRange'](_0x55dbde,!0x0))return null;_0x346ecc=_0x346ecc['isBefore'](_0x1aab9d['start'])?_0x346ecc:_0x1aab9d['start'],_0x2d9bf3=_0x2d9bf3['isAfter'](_0x1aab9d['end'])?_0x2d9bf3:_0x1aab9d['end'],_0x20d301?_0x1aab9d['start']['isBefore'](_0x20d301['getFirstRange']()['start'])?(_0x20d301['removeMarkers'](),_0x20d301=_0x525a24):_0x525a24['removeMarkers']():_0x20d301=_0x525a24;}else{const _0x1c1265=_0x55dbde['getIntersection'](_0x1aab9d);this['_cutOutSuggestionMarker'](_0x525a24,_0x1c1265);}}const _0x3d3d97=this['editor']['plugins']['get']('Users')['me'],_0xc71ca1=_0x5d1950(),_0x245c5a=_0x3d3d97['id'];if(_0x20d301)return this['_setSuggestionRange'](_0x20d301,this['_model']['createRange'](_0x346ecc,_0x2d9bf3)),_0x20d301;{const _0x3d181a=this['_setSuggestionData']({'id':_0xc71ca1,'type':'formatBlock:'+_0x4f2225,'data':_0x24da4b,'createdAt':new Date(),'authorId':_0x245c5a,'attributes':_0x39f134});return this['_addSuggestionMarker']('formatBlock:'+_0x4f2225,_0xc71ca1,_0x245c5a,this['_model']['createRange'](_0x346ecc,_0x2d9bf3)),_0x3d181a;}}['markMultiRangeBlockFormat'](_0xbc98fe,_0x21ac4b,_0x1dde98=[],_0x445e19=null,_0x3484cb={}){_0x21ac4b['formatGroupId']||(_0x21ac4b['formatGroupId']=_0x21ac4b['commandName']);const _0x2e91f5=_0xbc98fe[0x0];_0x21ac4b['multipleBlocks']=_0x2e91f5['is']('range'),_0x445e19=_0x445e19||Ut(_0x21ac4b);const _0x3d081a=_0x1dde98['map'](_0x5a4603=>Ft(_0x5a4603,this['_model'])),_0x27d165=_0x2e91f5['is']('range')?_0xbc98fe:_0xbc98fe['map'](_0x389885=>Ft(_0x389885,this['_model']));if('never'===this['_trackFormatChanges']){const _0x5ec9fb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x445e19,'accept');return this['forceDefaultExecution'](()=>_0x5ec9fb(_0x27d165,_0x21ac4b,_0x3484cb)),null;}_0x3d081a['push'](..._0x27d165);let _0x1415b0=!0x0;for(const _0x821160 of _0x3d081a)if(!this['_rangeIsInLocalUserInsertion'](_0x821160)){_0x1415b0=!0x1;break;}if(_0x1415b0&&'always'!==this['_trackFormatChanges']){const _0x456b96=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x445e19,'accept');return this['forceDefaultExecution'](()=>_0x456b96(_0x27d165,_0x21ac4b,_0x3484cb)),null;}const _0xc366a0=this['editor']['plugins']['get']('Users')['me'];for(const _0x94fa7 of this['getSuggestions']()){if(_0x94fa7['author']['id']!=_0xc366a0['id'])continue;if('formatBlock'!=_0x94fa7['type']||_0x94fa7['data']['formatGroupId']!=_0x21ac4b['formatGroupId'])continue;if(!Ht(_0x94fa7,_0x3484cb))continue;const _0x26a730=_0x94fa7['subType']==_0x445e19;for(let _0x64f646=0x0;_0x64f646<_0x27d165['length'];_0x64f646++){const _0x446f8e=_0x27d165[_0x64f646];for(const _0x128dba of _0x94fa7['getMarkers']()){const _0xbc2d08=_0x128dba['getRange']();if(_0x446f8e['isEqual'](_0xbc2d08)){_0x26a730?(_0x27d165['splice'](_0x64f646,0x1),_0x64f646--):_0x94fa7['removeMarker'](_0x128dba['name']);break;}}}}if(0x0==_0x27d165['length'])return null;const _0x1f0520=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x445e19,'join');for(const _0x47e59e of this['getSuggestions']())if(_0x47e59e['author']['id']==_0xc366a0['id']&&'formatBlock'==_0x47e59e['type']&&_0x47e59e['data']['formatGroupId']==_0x21ac4b['formatGroupId']&&_0x47e59e['subType']==_0x445e19&&Ht(_0x47e59e,_0x3484cb)&&(_0x1f0520(_0x47e59e['getRanges'](),_0x27d165)||_0x1f0520(_0x27d165,_0x47e59e['getRanges']()))){for(const _0x49013d of _0x27d165)_0x47e59e['addRange'](_0x49013d);return _0x47e59e;}const _0x22d7ad=_0x5d1950(),_0x5dc54c=_0xc366a0['id'],_0x3bcad7='formatBlock:'+_0x445e19,_0x3d7197=this['_setSuggestionData']({'id':_0x22d7ad,'type':_0x3bcad7,'data':_0x21ac4b,'createdAt':new Date(),'authorId':_0x5dc54c,'attributes':_0x3484cb});for(const _0x306d3d of _0x27d165)this['_addSuggestionMarker'](_0x3bcad7,_0x22d7ad,_0x5dc54c,_0x306d3d,u['getMultiRangeId']());return _0x3d7197;}['markDeletion'](_0x396e64,_0xc98c52=null,_0x30aedf={}){if(_0x396e64['isCollapsed'])return null;const _0xc02223=this['editor']['plugins']['get']('Users')['me'],_0x1ae7fd=new _0x49277e(_0x396e64['start'],_0x396e64['end']);for(const {suggestion:_0x3f627f,meta:_0x27e6be}of this['_findSuggestions'](_0x1ae7fd,'insertion'))if(_0x27e6be['isOwn']&&!_0x27e6be['isNextTo']){if(_0x3f627f['isMultiRange']){const _0x4debaf=_0x3f627f['getRanges']()['filter'](_0x5c0b2a=>'$graveyard'!=_0x5c0b2a['root']['rootName']);_0x4debaf['every'](_0x3937b8=>_0x1ae7fd['containsRange'](_0x3937b8,!0x0))&&_0x3f627f['discard']();if(_0x4debaf['some'](_0x26c888=>_0x26c888['containsRange'](_0x1ae7fd,!0x0))){const _0x3474a3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc98c52,'accept');return this['forceDefaultExecution'](()=>_0x3474a3([_0x1ae7fd],null,_0x30aedf)),null;}}else{const _0x25c83a=_0x1ae7fd['getIntersection'](_0x3f627f['getFirstRange']());null!==_0x25c83a&&_0x3f627f['_onDiscard']([_0x25c83a],null,_0x30aedf);}}if(_0x1ae7fd['detach'](),_0x1ae7fd['isCollapsed']||'$graveyard'==_0x1ae7fd['root']['rootName'])return null;let _0x34e56c=null,_0x1bff34=_0x1ae7fd['start'],_0xf9c901=_0x1ae7fd['end'];const _0xeadaac=this['_findSuggestions'](_0x1ae7fd,'deletion');for(const {suggestion:_0x5d06f5,meta:_0x127c10}of _0xeadaac){const _0x72121f=this['_model']['createRange'](_0x1bff34,_0xf9c901);if(_0x127c10['isOwn']&&(this['_mergeNestedSuggestions']||!_0x127c10['containsRangeInObject']&&!_0x127c10['isInsideObject'])){if(_0x5d06f5['isMultiRange']){if(!Ht(_0x5d06f5,_0x30aedf))continue;let _0x3485d6=!0x0;for(const _0x44934c of _0x5d06f5['getRanges']()){if(_0x44934c['containsRange'](_0x72121f,!0x0))return _0x5d06f5;_0x72121f['containsRange'](_0x44934c)||(_0x3485d6=!0x1);}_0x3485d6&&_0x5d06f5['discard']();}else{const _0x53a031=_0x5d06f5['getFirstRange']();if(_0x53a031['containsRange'](_0x72121f,!0x0))return _0x5d06f5;if(!Ht(_0x5d06f5,_0x30aedf)){_0x72121f['containsRange'](_0x53a031)?_0x5d06f5['removeMarkers']():_0x53a031['containsPosition'](_0x1bff34)?_0x1bff34=_0x53a031['end']:_0x53a031['containsPosition'](_0xf9c901)&&(_0xf9c901=_0x53a031['start']);continue;}_0x1bff34=_0x1bff34['isBefore'](_0x53a031['start'])?_0x1bff34:_0x53a031['start'],_0xf9c901=_0xf9c901['isAfter'](_0x53a031['end'])?_0xf9c901:_0x53a031['end'],_0x30aedf=Object['assign']({},_0x5d06f5['attributes']),_0x34e56c?_0x53a031['start']['isBefore'](_0x34e56c['getFirstRange']()['start'])?(_0x34e56c['removeMarkers'](),_0x34e56c=_0x5d06f5):_0x5d06f5['removeMarkers']():_0x34e56c=_0x5d06f5;}}}if(_0x34e56c)return this['_setSuggestionRange'](_0x34e56c,this['_model']['createRange'](_0x1bff34,_0xf9c901)),_0x34e56c;{const _0x9ef3db=_0x5d1950(),_0x4da1c7=this['_model']['createRange'](_0x1bff34,_0xf9c901),_0x4fda97=_0xc02223['id'],_0x2546ca=_0xc98c52?'deletion:'+_0xc98c52:'deletion',_0x3ebce3=this['_setSuggestionData']({'id':_0x9ef3db,'type':_0x2546ca,'createdAt':new Date(),'authorId':_0x4fda97,'attributes':_0x30aedf});return this['_addSuggestionMarker'](_0x2546ca,_0x9ef3db,_0x4fda97,_0x4da1c7),_0x3ebce3;}}['markMultiRangeDeletion'](_0x271b05,_0x3d1b97='multi',_0x140b06={}){const _0x73c7e8=this['editor']['plugins']['get']('Users')['me'],_0x52a515=_0x271b05['map'](_0x1bb7f3=>new _0x49277e(_0x1bb7f3['start'],_0x1bb7f3['end'])),_0x3ccda2=new Set();for(const {suggestion:_0x58b259,meta:_0x1faf6d}of this['_findSuggestions'](_0x52a515,'insertion'))_0x1faf6d['isOwn']&&!_0x1faf6d['isNextTo']&&_0x3ccda2['add'](_0x58b259);for(const _0x403a03 of _0x3ccda2)if(_0x403a03['isMultiRange']){const _0x4c2755=_0x403a03['getRanges']();(!_0x403a03['attributes']||!_0x403a03['attributes']['skipNestingCheck'])&&(_0x4c2755['every'](_0x394903=>_0x52a515['some'](_0x1aa92b=>_0x1aa92b['containsRange'](_0x394903,!0x0)))&&_0x403a03['discard']());if(_0x52a515['every'](_0x44f350=>_0x4c2755['some'](_0x438a22=>_0x438a22['containsRange'](_0x44f350,!0x0)))){const _0x3e7548=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3d1b97,'accept');return this['forceDefaultExecution'](()=>_0x3e7548(_0x271b05,null,_0x140b06)),null;}}else{const _0x47852d=_0x403a03['getFirstRange']();_0x52a515['some'](_0x23e99c=>_0x23e99c['containsRange'](_0x47852d,!0x0))&&_0x403a03['discard']();if(_0x52a515['every'](_0x33ce9d=>_0x47852d['containsRange'](_0x33ce9d,!0x0))){const _0x1f5d2b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3d1b97,'accept');return this['forceDefaultExecution'](()=>_0x1f5d2b(_0x52a515,null,_0x140b06)),null;}}const _0x3476fb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3d1b97,'join');let _0x212e01=null;for(const _0x38d94b of this['getSuggestions']())if(_0x38d94b['author']['id']==_0x73c7e8['id']&&_0x38d94b['isInContent']&&'deletion'==_0x38d94b['type']&&_0x38d94b['subType']==_0x3d1b97&&Ht(_0x38d94b,_0x140b06)&&(_0x3476fb(_0x38d94b['getRanges'](),_0x52a515)||_0x3476fb(_0x52a515,_0x38d94b['getRanges']()))){if(_0x212e01){if(_0x38d94b['commentThread']&&_0x38d94b['commentThread']['length'])continue;for(const _0x117d10 of _0x38d94b['getRanges']())_0x212e01['isIntersectingWithRange'](_0x117d10)||_0x212e01['addRange'](_0x117d10);_0x38d94b['removeMarkers']();}else{_0x212e01=_0x38d94b;for(const _0x2a3586 of _0x52a515)_0x38d94b['isIntersectingWithRange'](_0x2a3586)||_0x38d94b['addRange'](_0x2a3586);}}if(_0x212e01)return _0x212e01;_0x3ccda2['clear']();for(const {suggestion:_0x23f4b2,meta:_0x5256c5}of this['_findSuggestions'](_0x52a515,'deletion'))_0x5256c5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5256c5['containsRangeInObject']&&!_0x5256c5['isInsideObject'])&&Ht(_0x23f4b2,_0x140b06)&&_0x3ccda2['add'](_0x23f4b2);for(const _0x3a5b87 of _0x3ccda2){const _0x44e3af=_0x3a5b87['getRanges']();if(!_0x140b06||!_0x140b06['skipNestingCheck']){if(_0x52a515['every'](_0x3a598f=>_0x44e3af['some'](_0x5f3c28=>_0x5f3c28['containsRange'](_0x3a598f,!0x0))))return _0x3a5b87;}(!_0x3a5b87['attributes']||!_0x3a5b87['attributes']['skipNestingCheck'])&&(_0x44e3af['every'](_0x3cfd4a=>_0x52a515['some'](_0x57e994=>_0x57e994['containsRange'](_0x3cfd4a,!0x0)))&&_0x3a5b87['discard']());}const _0x19c97c=_0x5d1950(),_0x221455=_0x73c7e8['id'],_0x1753c9='deletion:'+_0x3d1b97,_0x29866e=this['_setSuggestionData']({'id':_0x19c97c,'type':_0x1753c9,'createdAt':new Date(),'authorId':_0x221455,'attributes':_0x140b06});for(const _0x38299a of _0x52a515)_0x38299a['detach'](),_0x38299a['isCollapsed']||'$graveyard'==_0x38299a['root']['rootName']||this['_addSuggestionMarker'](_0x1753c9,_0x19c97c,_0x221455,_0x38299a,u['getMultiRangeId']());return _0x29866e;}['markAttributeChange'](_0x4dc659,_0x418feb,_0x4c007e,_0x4b6a50,_0x419b48){if(_0x4dc659['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4c3895=this['editor']['plugins']['get']('Users')['me']['id'],_0x56ebd9=Array['from'](this['_suggestions']['values']())['filter'](_0xacc157=>'attribute'==_0xacc157['type']&&_0xacc157['data']['key']==_0x418feb&&_0xacc157['isIntersectingWithRange'](_0x4dc659));if('default'===this['_trackFormatChanges']){const _0x553f8d=this['_findSuggestions'](_0x4dc659,'insertion')['filter'](({meta:_0x17d3c0})=>_0x17d3c0['isOwn']&&!_0x17d3c0['isInsideObject']&&!_0x17d3c0['isNextTo'])['map'](({suggestion:_0xda37ea})=>_0xda37ea);_0x56ebd9['unshift'](..._0x553f8d);}const _0x49ac0d=new Map([[_0x4dc659,_0x4c007e]]);for(const _0x311056 of _0x56ebd9){const _0x1f5925='attribute'==_0x311056['type']?_0x311056['data']['oldValue']:void 0x0,_0x3da60c=_0x311056['getFirstRange'](),_0x56f70a=Array['from'](_0x49ac0d['keys']())['find'](_0x3f3031=>_0x3f3031['isIntersecting'](_0x3da60c));if(!_0x56f70a)continue;const _0x3c3e98=_0x56f70a['getDifference'](_0x3da60c);this['_isBlockAttribute'](_0x418feb)&&'insertion'==_0x311056['type']&&0x0!=_0x3c3e98['length']||(_0x49ac0d['delete'](_0x56f70a),_0x3c3e98['forEach'](_0x4e260b=>{_0x49ac0d['set'](_0x4e260b,_0x4c007e);}),'insertion'!=_0x311056['type']&&_0x1f5925!=_0x4b6a50&&_0x49ac0d['set'](_0x56f70a['getIntersection'](_0x3da60c),_0x1f5925));}const _0x1bf503=[];for(const [_0x488a00,_0x5cdd6f]of _0x49ac0d){const _0x3e814d=_0x5d1950(),_0x49c834={'key':_0x418feb,'oldValue':_0x5cdd6f,'newValue':_0x4b6a50};_0x418feb['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':_0x418feb});const _0x3832d6=('attribute:'+(_0x418feb+'|'+Ut({'newValue':_0x4b6a50})))['substring'](0x0,0x3c),_0x1ebf3e=this['_setSuggestionData']({'id':_0x3e814d,'type':_0x3832d6,'data':_0x49c834,'createdAt':new Date(),'authorId':_0x4c3895,'attributes':_0x419b48});_0x1bf503['push'](_0x1ebf3e),this['_addSuggestionMarker'](_0x3832d6,_0x3e814d,_0x4c3895,_0x488a00);}return _0x1bf503;}['enableDefaultAttributesIntegration'](_0x2f9df7){this['enableCommand'](_0x2f9df7,(_0x583663,..._0x53daea)=>{this['_recordAttributeChanges'](()=>{_0x583663(..._0x53daea);});});}['registerBlockAttribute'](_0x37bd2c){this['_blockAttributeKeys']['add'](_0x37bd2c);}['registerInlineAttribute'](_0x2f3b53){this['_inlineAttributeKeys']['add'](_0x2f3b53);}['_getAttributeKey'](_0x45b7d6){return'attribute'==_0x45b7d6['type']?_0x45b7d6['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4b28b5,_0x30d6d5){const _0x3da3be=_0x4b28b5['getFirstMarker']();this['_model']['change'](_0x1b3867=>{_0x1b3867['updateMarker'](_0x3da3be,{'range':_0x30d6d5});});}['_addThreadToSuggestion'](_0x34ad62){const _0x49b2ef=_0x34ad62['id'],_0x4760d0=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x49b2ef)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4760d0,'threadId':_0x49b2ef,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x537dfb=this['_commentsRepository']['getCommentThread'](_0x49b2ef);_0x537dfb['unbind']('isRemovable'),_0x537dfb['isRemovable']=!0x1,_0x34ad62['commentThread']=_0x537dfb;}['_checkSuggestionCorrectness'](_0x39daf0,_0x51696e,_0x16b819,_0x74122f){if(_0x39daf0['type']!=_0x51696e||_0x39daf0['subType']!=_0x16b819||_0x39daf0['creator']['id']!=_0x74122f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4d0924('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3eb81d,_0x4b0c02){const _0x625363=_0x3eb81d['getFirstRange']();if(_0x4b0c02['isEqual'](_0x625363))_0x3eb81d['removeMarkers']();else{if(_0x625363['containsRange'](_0x4b0c02)){const _0x58633e=this['_model']['createPositionAt'](_0x4b0c02['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3eb81d,this['_model']['createRange'](_0x625363['start'],_0x58633e));const _0x293d13=_0x5d1950(),_0x4cd5c2=_0x3eb81d['creator']['id'],_0x5201ad=_0x3eb81d['type']+':'+_0x3eb81d['subType'];this['_setSuggestionData']({'id':_0x293d13,'type':_0x5201ad,'createdAt':new Date(),'authorId':_0x4cd5c2,'data':_0x3eb81d['data'],'attributes':_0x3eb81d['attributes']});const _0x44d3e7=this['_model']['createPositionAt'](_0x4b0c02['end']['parent'],'after'),_0x3544f2=this['_model']['createRange'](_0x44d3e7,_0x625363['end']);this['_addSuggestionMarker'](_0x5201ad,_0x293d13,_0x4cd5c2,_0x3544f2);}else{if(_0x625363['containsPosition'](_0x4b0c02['start'])){const _0x4d6963=this['_model']['createPositionAt'](_0x4b0c02['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3eb81d,this['_model']['createRange'](_0x625363['start'],_0x4d6963));}else{const _0x3872da=this['_model']['createPositionAt'](_0x4b0c02['end']['parent'],'after');this['_setSuggestionRange'](_0x3eb81d,this['_model']['createRange'](_0x3872da,_0x625363['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4d2a12){for(const {suggestion:_0x1b23f8,meta:_0x1bfe74}of this['_findSuggestions'](_0x4d2a12,'insertion')){if(!_0x1bfe74['isOwn'])continue;const _0x29288b=_0x1b23f8['getRanges']();for(const _0x247093 of _0x29288b)if(!_0x4d2a12['getDifference'](_0x247093)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x297bfa){const _0x1f0e80=this['editor']['plugins']['get']('Users')['getUser'](_0x297bfa);if(!_0x1f0e80)throw new _0x4d0924('track-changes-user-not-found',this);return _0x1f0e80;}['_getExternalAuthor'](_0x162bfb){const _0x92c3fc=this['editor']['plugins']['get']('Users'),_0x23e1cb=_0x45301d('external:'+_0x162bfb),_0x5e8473=_0x92c3fc['getUser'](_0x23e1cb);return _0x5e8473||_0x92c3fc['addUser']({'id':_0x23e1cb,'name':_0x162bfb});}['_createSuggestion'](_0x891193,_0x38d6fd,_0x387af6,_0x451f50,_0x2daadd){const _0x294ec2=this['_getAuthorFromId'](_0x451f50),_0x3120cf=this['_suggestionFactory']['buildSuggestion'](_0x891193,_0x38d6fd,_0x387af6,_0x294ec2,_0x2daadd,_0x32f6fc=>{this['_updateSuggestionData'](_0x387af6,{'attributes':_0x32f6fc});const _0x53140b=this['getSuggestion'](_0x387af6);this['_joinWithAdjacentSuggestions'](new Set([_0x53140b])),this['_refreshSuggestionsChain'](new Set([_0x53140b]));});return this['listenTo'](_0x3120cf,'accept',()=>{this['_updateSuggestionData'](_0x387af6,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3120cf,'discard',()=>{this['_updateSuggestionData'](_0x387af6,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x387af6,_0x3120cf),this['_suggestionState']['set'](_0x3120cf,'notReady'),_0x3120cf;}['_splitMarkerName'](_0x1211c3){const _0x57f25e=_0x1211c3['split'](':');return{'group':_0x57f25e[0x0],'type':_0x57f25e[0x1],'subType':_0x57f25e['length']>=0x5?_0x57f25e[0x2]:null,'id':_0x57f25e['length']<0x5?_0x57f25e[0x2]:_0x57f25e[0x3],'authorId':_0x57f25e['length']<0x5?_0x57f25e[0x3]:_0x57f25e[0x4],'markerCount':0x6==_0x57f25e['length']?_0x57f25e[0x5]:null};}['_breakSuggestionMarker'](_0x77133,_0x27453c,_0x37da50){const _0x5b376b=_0x77133['getFirstRange'](),_0x408110=_0x5b376b['start'],_0x2d52b4=_0x5b376b['end'];this['_setSuggestionRange'](_0x77133,this['_model']['createRange'](_0x408110,_0x27453c));const _0x396ade=_0x5d1950(),_0x228f99=_0x77133['creator']['id'],_0x51b4a9=_0x77133['type']+(_0x77133['subType']?':'+_0x77133['subType']:'');this['_setSuggestionData']({'id':_0x396ade,'type':_0x51b4a9,'createdAt':new Date(),'authorId':_0x228f99,'originalSuggestionId':_0x77133['id'],'attributes':_0x77133['attributes'],'data':_0x77133['data']});const _0x2009d6=this['_getAttributeKey'](_0x77133);('formatBlock'==_0x77133['type']||_0x2009d6&&this['_isBlockAttribute'](_0x2009d6))&&(_0x37da50=this['_model']['createPositionBefore'](_0x37da50['parent'])),this['_addSuggestionMarker'](_0x51b4a9,_0x396ade,_0x228f99,this['_model']['createRange'](_0x37da50,_0x2d52b4));}['_findSuggestions'](_0x348dfd,_0x29a703=null){const _0x12a45f=[],_0x15742d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x348dfd)||(_0x348dfd=[_0x348dfd]);for(const _0x5e2eb7 of this['getSuggestions']()){if(!_0x5e2eb7['isInContent'])continue;if(_0x29a703&&_0x5e2eb7['type']!=_0x29a703)continue;let _0x34b59c=!0x1;for(const _0x4964bb of _0x5e2eb7['getRanges']()){for(const _0x52e7d3 of _0x348dfd){const _0x10a0d3=_0x52e7d3['start']['isEqual'](_0x4964bb['end'])||_0x52e7d3['end']['isEqual'](_0x4964bb['start']);if(_0x10a0d3||_0x52e7d3['getIntersection'](_0x4964bb)){const _0x351203=_0x52e7d3['containsRange'](_0x4964bb)&&Tt(this['_model']['schema'],_0x4964bb['start'],_0x52e7d3),_0x1a2298=_0x4964bb['containsRange'](_0x52e7d3)&&Tt(this['_model']['schema'],_0x52e7d3['start'],_0x4964bb);_0x12a45f['push']({'suggestion':_0x5e2eb7,'meta':{'isOwn':_0x15742d==_0x5e2eb7['author'],'isNextTo':_0x10a0d3,'isInsideObject':_0x351203,'containsRangeInObject':_0x1a2298}}),_0x34b59c=!0x0;break;}}if(_0x34b59c)break;}}return _0x12a45f;}['_addSuggestionMarker'](_0x428e2a,_0x24b2e3,_0xca5bfe,_0x3bd111,_0x492d24){this['_model']['change'](_0x430d84=>{let _0x242db0='suggestion:'+_0x428e2a+':'+_0x24b2e3+':'+_0xca5bfe;_0x492d24&&(_0x242db0=_0x242db0+':'+_0x492d24),_0x430d84['addMarker'](_0x242db0,{'range':_0x3bd111,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xdfe474){const _0x10439c=_0xdfe474['previous'],_0x28263a=_0xdfe474['next'];_0xdfe474['previous']=null,_0xdfe474['next']=null,null!=_0x10439c&&_0x10439c['next']==_0xdfe474&&(_0x10439c['next']=_0x28263a),null!=_0x28263a&&_0x28263a['previous']==_0xdfe474&&(_0x28263a['previous']=_0x10439c),'ready'==this['_suggestionState']['get'](_0xdfe474)&&(this['_suggestionState']['set'](_0xdfe474,'removed'),this['fire']('suggestionUnloaded',_0xdfe474,_0x10439c,_0x28263a));}['_setSuggestionData'](_0x282e01){const _0x56aa55=_0x282e01['id'],_0x316518=this['addSuggestionData'](_0x282e01);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xcd3d43=this['editor']['plugins']['get']('PendingActions'),_0x34d180=_0x316518['hasComments'],_0x7bd722=_0x316518['subType']?_0x316518['type']+':'+_0x316518['subType']:_0x316518['type'],_0x420628=this['editor']['locale'],_0x10532a=_0xcd3d43['add'](o(_0x420628,'PENDING_ACTION_SUGGESTION')),_0x3d709a={'id':_0x56aa55,'type':_0x7bd722,'hasComments':_0x34d180,'data':_0x282e01['data']||null,'originalSuggestionId':_0x282e01['originalSuggestionId']||null,'attributes':_0x316518['attributes']};this['_adapter']['addSuggestion'](_0x3d709a)['then'](_0x3dd3a9=>{_0x316518['_saved']=!0x0,_0xcd3d43['remove'](_0x10532a),_0x3dd3a9&&_0x3dd3a9['createdAt']&&(this['_suggestions']['get'](_0x56aa55)['createdAt']=_0x3dd3a9['createdAt']);})['catch'](_0x5aecaf=>{throw _0x28c92d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x316518['discard']();}),_0x316518['stopListening'](),this['_suggestions']['delete'](_0x316518['id']),this['_suggestionState']['delete'](_0x316518),_0x5aecaf;});}return _0x316518;}['_isBlockAttribute'](_0x46c88a){return this['_blockAttributeKeys']['has'](_0x46c88a);}['_updateSuggestionData'](_0x1218de,_0x14a51b){const _0x32df63=this['editor']['plugins']['get']('PendingActions'),_0x1bef88=this['getSuggestion'](_0x1218de);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1bef88['_saved']){const _0x4873f6=_0x32df63['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1218de,_0x14a51b)['then'](()=>{_0x32df63['remove'](_0x4873f6);});}else _0x1bef88['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1218de,_0x14a51b);});}}['_getSuggestionData'](_0x3a6298){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4d0924('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3a6298);}['_handleNewSuggestionMarker'](_0x304923){const {id:_0x4abeee,type:_0x304655,subType:_0x2e1ae5,authorId:_0x2a9f6a}=this['_splitMarkerName'](_0x304923),_0x75996b=this['_suggestions']['get'](_0x4abeee)||this['_createSuggestion'](_0x304655,_0x2e1ae5,_0x4abeee,_0x2a9f6a,{});switch(this['_checkSuggestionCorrectness'](_0x75996b,_0x304655,_0x2e1ae5,_0x2a9f6a),this['_suggestionState']['get'](_0x75996b)){case'notReady':this['_getSuggestionData'](_0x4abeee)['then'](_0x366e98=>{let _0x1541c2=Promise['resolve']();_0x366e98['hasComments']&&(_0x1541c2=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4abeee})),_0x1541c2['then'](()=>{this['addSuggestionData'](_0x366e98)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x75996b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4abeee,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x75996b,'ready'),this['fire']('suggestionLoaded',_0x75996b);break;case'ready':this['fire']('suggestionChanged',_0x75996b);}return _0x75996b['addMarkerName'](_0x304923),_0x75996b;}['_refreshSuggestionsChain'](_0x141f86){const _0x209e4e=Array['from'](_0x141f86),_0x8d8833=_0x209e4e['filter'](_0xf1ea2e=>'attribute'==_0xf1ea2e['type']);this['_refreshAttributeSuggestionsChain'](_0x8d8833);const _0x377d62=_0x209e4e['filter'](_0x44a319=>!_0x44a319['isMultiRange']&&'attribute'!=_0x44a319['type']),_0xa36b34=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f356e=>!_0x2f356e['isMultiRange']&&'attribute'!=_0x2f356e['type']),_0x3f9ee7=_0xa36b34['filter'](_0x3e523e=>!_0x141f86['has'](_0x3e523e)),_0x3455a7=new Map(_0xa36b34['map'](_0x24f546=>[_0x24f546,this['_suggestionFactory']['getSuggestionCallback'](_0x24f546['type'],_0x24f546['subType'],'chain')])),_0x2668ed=new Map(_0xa36b34['map'](_0x52db98=>[_0x52db98,_0x52db98['getFirstRange']()])),_0x2768b4=new Set(),_0x238e16=new Set();for(let _0x25f970=0x0;_0x25f970<_0x377d62['length'];_0x25f970++)_0x177f95(_0x377d62[_0x25f970],_0x377d62,_0x25f970+0x1);for(let _0x1e9229=0x0;_0x1e9229<_0x377d62['length'];_0x1e9229++)_0x177f95(_0x377d62[_0x1e9229],_0x3f9ee7,0x0);const _0xe58daa=new Set();for(let _0x34664b=0x0;_0x34664b<_0x377d62['length'];_0x34664b++){const _0x4c176c=_0x377d62[_0x34664b];!_0x238e16['has'](_0x4c176c)&&_0x4c176c['previous']&&(_0xe58daa['add'](_0x4c176c['previous']),_0x4c176c['previous']['next']===_0x4c176c&&(_0x4c176c['previous']['next']=null),_0x4c176c['previous']=null),!_0x2768b4['has'](_0x4c176c)&&_0x4c176c['next']&&(_0xe58daa['add'](_0x4c176c['next']),_0x4c176c['next']['previous']===_0x4c176c&&(_0x4c176c['next']['previous']=null),_0x4c176c['next']=null);}function _0x177f95(_0x2a2d6d,_0x31de83,_0x5c9fbb){for(let _0x2544c5=_0x5c9fbb;_0x2544c5<_0x31de83['length'];_0x2544c5++){const _0x92854e=_0x3d34c2(_0x2a2d6d,_0x31de83[_0x2544c5]);_0x92854e&&(_0x92854e[0x0]['next']=_0x92854e[0x1],_0x92854e[0x1]['previous']=_0x92854e[0x0],_0x2768b4['add'](_0x92854e[0x0]),_0x238e16['add'](_0x92854e[0x1]));}}function _0x3d34c2(_0xa0dbe3,_0x22a828){if(_0xa0dbe3['author']['id']!==_0x22a828['author']['id'])return null;const _0x1fbff1=_0x3455a7['get'](_0xa0dbe3)(_0xa0dbe3,_0x22a828,_0x2668ed['get'](_0xa0dbe3),_0x2668ed['get'](_0x22a828));if(!_0x1fbff1)return null;return _0x3455a7['get'](_0x22a828)(_0xa0dbe3,_0x22a828,_0x2668ed['get'](_0xa0dbe3),_0x2668ed['get'](_0x22a828))?_0x1fbff1[0x1]['commentThread']&&_0x1fbff1[0x1]['commentThread']['length']?null:_0x1fbff1:null;}_0xe58daa['size']&&this['_refreshSuggestionsChain'](_0xe58daa);}['_refreshAttributeSuggestionsChain'](_0x35e0e1){if(0x0==_0x35e0e1['length'])return;const _0x119557=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d8440=>'attribute'==_0x3d8440['type']&&_0x3d8440['_isDataLoaded']),_0x11ea74=[],_0x327c2a=new Map();for(const _0x324230 of _0x119557){const _0x83ddfe=_0x45301d(_0x324230['attributes']);_0x327c2a['has'](_0x83ddfe)||(_0x327c2a['set'](_0x83ddfe,_0x11ea74['length']),_0x11ea74['push']([]));const _0x15478=_0x327c2a['get'](_0x83ddfe);_0x11ea74[_0x15478]['push'](_0x324230);}!(function(){_0x11ea74['sort']((_0x18f2d2,_0x643127)=>{const _0x1d871a=_0x18f2d2[0x0]['createdAt'],_0x55dae8=_0x643127[0x0]['createdAt'];return _0x1d871a==_0x55dae8?_0x18f2d2[0x0]['attributes']['groupId']<_0x643127[0x0]['attributes']['groupId']?-0x1:0x1:_0x1d871a<_0x55dae8?-0x1:0x1;});for(const _0x51a2f2 of _0x11ea74)_0x51a2f2['sort']((_0x346b99,_0x40860d)=>_0x346b99['id']<_0x40860d['id']?-0x1:0x1);}());for(let _0x1bf82a=0x0;_0x1bf82a<_0x11ea74['length'];_0x1bf82a++){if(0x0==_0x11ea74[_0x1bf82a]['length'])continue;const _0x4764ed=[];for(let _0x5c7e91=_0x1bf82a+0x1;_0x5c7e91<_0x11ea74['length'];_0x5c7e91++)0x0!=_0x11ea74[_0x5c7e91]['length']&&_0x38134d(_0x11ea74[_0x1bf82a],_0x11ea74[_0x5c7e91])&&_0x4764ed['push'](_0x5c7e91);for(const _0x1e23f8 of _0x4764ed)_0x11ea74[_0x1bf82a]=_0x11ea74[_0x1bf82a]['concat'](_0x11ea74[_0x1e23f8]),_0x11ea74[_0x1e23f8]=[];}for(const _0x14c56e of _0x11ea74)for(let _0x89c9ce=0x0;_0x89c9ce<_0x14c56e['length'];_0x89c9ce++)_0x14c56e[_0x89c9ce]['next']=_0x14c56e[_0x89c9ce+0x1]||null;for(const _0x4002ce of _0x11ea74)for(let _0x2dd4ba=0x0;_0x2dd4ba<_0x4002ce['length'];_0x2dd4ba++)_0x4002ce[_0x2dd4ba]['previous']=_0x4002ce[_0x2dd4ba-0x1]||null;function _0x38134d(_0x35cbd0,_0x251fbf){if(_0x35cbd0[0x0]['attributes']['groupId']!==_0x251fbf[0x0]['attributes']['groupId']&&_0x35cbd0[0x0]['author']!==_0x251fbf[0x0]['author'])return!0x1;if(!function(_0x2020a8,_0x53b7a4){if(!_0x2020a8['hasComments']&&!_0x53b7a4['hasComments'])return!0x0;if(_0x2020a8['hasComments']&&_0x53b7a4['hasComments'])return!0x1;if(_0x2020a8['hasComments']&&_0x53b7a4['createdAt']<_0x2020a8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x53b7a4['hasComments']&&_0x2020a8['createdAt']<_0x53b7a4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x35cbd0[0x0],_0x251fbf[0x0]))return!0x1;const _0x3d2430=xt(_0x35cbd0[0x0]['attributes'],'groupId'),_0xf6d0ea=xt(_0x251fbf[0x0]['attributes'],'groupId');if(!_0x4390ae(_0x3d2430,_0xf6d0ea))return!0x1;return!!_0x35cbd0['every'](_0x185656=>_0x251fbf['some'](_0x718c54=>_0x185656['getFirstRange']()['isEqual'](_0x718c54['getFirstRange']())))&&_0x251fbf['every'](_0x35fb29=>_0x35cbd0['some'](_0x253d2c=>_0x35fb29['getFirstRange']()['isEqual'](_0x253d2c['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x475732){const _0x42ba55=Array['from'](_0x475732),_0x5382dd=this['getSuggestions']({'skipNotAttached':!0x0}),_0x37626c=_0x5382dd['filter'](_0x30f0f3=>!_0x475732['has'](_0x30f0f3)),_0x45a41c=new Map(_0x42ba55['map'](_0x201b25=>[_0x201b25,this['_suggestionFactory']['getSuggestionCallback'](_0x201b25['type'],_0x201b25['subType'],'join')])),_0x591674=new Map(_0x5382dd['map'](_0x1d7d49=>[_0x1d7d49,_0x1d7d49['getRanges']()]));for(let _0x316a63=0x0;_0x316a63<_0x42ba55['length'];_0x316a63++){if(_0x52de65(this,_0x42ba55[_0x316a63],_0x42ba55,_0x316a63+0x1))return!0x0;}for(let _0x38d4c2=0x0;_0x38d4c2<_0x42ba55['length'];_0x38d4c2++){if(_0x52de65(this,_0x42ba55[_0x38d4c2],_0x37626c,0x0))return!0x0;}return!0x1;function _0x52de65(_0x23b5e7,_0x527243,_0x27ea3f,_0x1c8135){for(let _0xbb1497=_0x1c8135;_0xbb1497<_0x27ea3f['length'];_0xbb1497++){const _0xf14ac8=_0x27ea3f[_0xbb1497];if(_0xf14ac8['type']!==_0x527243['type']||_0xf14ac8['author']['id']!==_0x527243['author']['id']||_0xf14ac8['subType']!==_0x527243['subType'])continue;if(!Lt(_0x527243,_0xf14ac8,['groupId']))continue;if('attribute'==_0x527243['type']&&_0x527243['data']['oldValue']!=_0xf14ac8['data']['oldValue'])continue;if('attribute'==_0x527243['type']&&_0x23b5e7['_isBlockAttribute'](_0x527243['data']['key']))continue;if('formatBlock'==_0x527243['type']){const _0x1ef0c7=_0x23b5e7['editor']['model'],_0x53003f=_0x527243['getContainedElement']();if(_0x53003f&&(_0x1ef0c7['schema']['isObject'](_0x53003f)||_0x1ef0c7['schema']['isLimit'](_0x53003f)))continue;}const _0x37daac=_0x45a41c['get'](_0x527243),_0x5cdba1=_0x591674['get'](_0x527243),_0x475a75=_0x591674['get'](_0xf14ac8),_0x5dd265=_0x527243['commentThread']&&_0x527243['commentThread']['length'],_0x5f3e27=_0xf14ac8['commentThread']&&_0xf14ac8['commentThread']['length'];if(!_0x5dd265&&_0x37daac(_0x475a75,_0x5cdba1))return _0x23b5e7['_joinSuggestions'](_0xf14ac8,_0x527243),_0x591674['delete'](_0x527243),!0x0;if(!_0x5f3e27&&_0x37daac(_0x5cdba1,_0x475a75))return _0x23b5e7['_joinSuggestions'](_0x527243,_0xf14ac8),_0x591674['delete'](_0xf14ac8),!0x0;}return!0x1;}}['_joinSuggestions'](_0x56477a,_0x4ee0c2){if(_0x56477a['isMultiRange']){for(const _0x4bce5a of _0x4ee0c2['getRanges']())_0x56477a['addRange'](_0x4bce5a);}else{const _0x23da03=_0x4ee0c2['getFirstRange']()['end'];this['_setSuggestionRange'](_0x56477a,this['_model']['createRange'](_0x56477a['getFirstRange']()['start'],_0x23da03));}_0x4ee0c2['removeMarkers']();}['_getMarkerAnnouncementText'](_0x27524a,_0xc5e468){const _0x1c105c=_0x27524a['startsWith']('format')||_0x27524a['startsWith']('attribute')?'FORMATTING':_0x27524a['toUpperCase']();return o(this['editor']['locale'],_0xc5e468+'_'+_0x1c105c+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x4d6723=this['editor'];if(!_0x4d6723['ui'])return;const {ariaLiveAnnouncer:_0x4f6876}=_0x4d6723['ui'];_0x128997(this['_model'],({left:_0x8cdcd9,entered:_0x26c1e8})=>{for(const _0x3731f6 of _0x8cdcd9){const {group:_0x357cac,type:_0x2a2cd8}=this['_splitMarkerName'](_0x3731f6['name']);if('suggestion'===_0x357cac){_0x4f6876['announce'](this['_getMarkerAnnouncementText'](_0x2a2cd8,'LEAVE'));break;}}for(const _0x1d62cf of _0x26c1e8){const {group:_0x289c7,type:_0x5996ba}=this['_splitMarkerName'](_0x1d62cf['name']);if('suggestion'===_0x289c7){_0x4f6876['announce'](this['_getMarkerAnnouncementText'](_0x5996ba,'ENTER'));break;}}});}['_processAttributeChanges'](_0x1abd83){if(this['_recordAttributeSuggestions'])return!0x1;const _0x28ef25=this['editor'],_0x1074bb=_0x28ef25['model']['document']['differ']['getChanges']();if(0x0==_0x1074bb['length'])return!0x1;const _0x24679a=[],_0xe4a1cb=_0x1074bb['filter'](_0x3a022c=>'attribute'==_0x3a022c['type']),_0x4f8509=_0x1074bb['filter'](_0x5ad26d=>'insert'==_0x5ad26d['type']&&'$text'!=_0x5ad26d['name']),_0x5c1d41=_0x1074bb['filter'](_0x534ae0=>'remove'==_0x534ae0['type']&&'$text'!=_0x534ae0['name']);for(const _0x12cb2a of _0xe4a1cb)_0x24679a['push']({'key':_0x12cb2a['attributeKey'],'newValue':_0x12cb2a['attributeNewValue'],'oldValue':_0x12cb2a['attributeOldValue'],'range':Gt(_0x12cb2a['range'],_0x28ef25['model'])});for(const _0x150154 of _0x4f8509){const _0x29f8ef=_0x5c1d41['find'](_0x1e4ab2=>_0x1e4ab2['position']['isEqual'](_0x150154['position']));_0x29f8ef&&_0x24679a['push']({'key':m,'newValue':_0x150154['name'],'oldValue':_0x29f8ef['name'],'range':_0x28ef25['model']['createRangeOn'](_0x150154['position']['nodeAfter'])});}return 0x0!=_0x24679a['length']&&this['_reduceExistingSuggestions'](_0x1abd83,_0x24679a);}['_processAttributeSuggestions'](_0x24885b){let _0x39f3ef=!0x1;const _0x114555=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1b7db0=>_0x1b7db0['data']['newRange']&&_0x1b7db0['name']['startsWith']('suggestion:attribute:'));for(const _0x35891d of _0x114555){const {subType:_0x6547a4,id:_0x1ff401}=this['_splitMarkerName'](_0x35891d['name']),_0x533d21=_0x6547a4['split']('|')[0x0];for(const _0x22206a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x22206a['id']!=_0x1ff401&&'attribute'==_0x22206a['type']&&_0x22206a['data']&&_0x22206a['data']['key']==_0x533d21&&_0x22206a['getFirstRange']()['isIntersecting'](_0x35891d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x22206a,_0x35891d['data']['newRange'],_0x24885b),_0x39f3ef=!0x0);}return _0x39f3ef;}['_recordAttributeChanges'](_0x473078){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x473078();}['_isRegisteredAttribute'](_0x28cc8){const _0x1ebe70=this['_isBlockAttribute'](_0x28cc8),_0x133dd7=this['_inlineAttributeKeys']['has'](_0x28cc8);return _0x1ebe70||_0x133dd7;}['_reduceExistingSuggestions'](_0x3a25b9,_0x393f8f){if(0x0==_0x393f8f['length'])return!0x1;let _0x27b164=!0x1;for(const _0x9f126e of _0x393f8f){const _0x55a2c7=this['_findSuggestions'](_0x9f126e['range'],'attribute')['filter'](_0x2389b1=>!_0x2389b1['meta']['isNextTo'])['map'](_0xec3399=>_0xec3399['suggestion']),_0x3b0560=_0x45301d({'newValue':_0x9f126e['newValue']});_0x55a2c7['filter'](_0x5633d8=>{const [_0x317d98,_0xb2aac1]=_0x5633d8['subType']['split']('|');return _0x317d98==_0x9f126e['key']&&_0xb2aac1!=_0x3b0560;})['forEach'](_0x283d8d=>{this['_reduceSuggestionAttributeRange'](_0x283d8d,_0x9f126e['range'],_0x3a25b9),_0x27b164=!0x0;});}return _0x27b164;}['_reduceSuggestionAttributeRange'](_0x284da0,_0xb0f627,_0x494904){const _0x3b4376=_0x284da0['getFirstRange']()['getDifference'](_0xb0f627);0x0!==_0x3b4376['length']?0x1!==_0x3b4376['length']?this['_breakSuggestionMarker'](_0x284da0,_0xb0f627['start'],_0xb0f627['end']):this['_setSuggestionRange'](_0x284da0,_0x3b4376[0x0]):_0x494904['removeMarker'](_0x284da0['getFirstMarker']());}}class Rt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x233775){this['_editor']=_0x233775,this['_model']=_0x233775['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x45089e,_0x348232,_0x1334b3,_0x5eade9,_0x30ef5c,_0x39cdb1){return new u(this['_model'],{'type':_0x45089e,'subType':_0x348232,'id':_0x1334b3,'author':_0x5eade9,'creator':_0x5eade9,'attributes':_0x30ef5c,'onAttributesChange':_0x39cdb1,'onAccept':(..._0x179ce7)=>this['getSuggestionCallback'](_0x45089e,_0x348232,'accept')(..._0x179ce7),'onDiscard':(..._0x549894)=>this['getSuggestionCallback'](_0x45089e,_0x348232,'discard')(..._0x549894)});}['registerCustomCallback'](_0x106b9f,_0xee63d8,_0x5c2748,_0x5ba6df){const _0x1fac5e=_0x106b9f+':'+_0xee63d8+':'+_0x5c2748;this['_customCallbacks']['set'](_0x1fac5e,_0x5ba6df);}['getSuggestionCallback'](_0x340631,_0x23b872,_0x58e561){const _0x55aa00=_0x340631+':'+_0x23b872+':'+_0x58e561;return this['_customCallbacks']['get'](_0x55aa00)||this['_defaultCallbacks']['get'](_0x340631+':'+_0x58e561);}['_registerDefaultCallbacks'](){const _0x4a57ed=()=>!0x1,_0x3a760b=_0x48936f=>{_0x48936f['sort']((_0x16ed12,_0x22b82f)=>_0x16ed12['start']['isBefore'](_0x22b82f['start'])?0x1:-0x1),this['_model']['change'](_0x53b0e5=>{for(const _0x544cb4 of _0x48936f){let _0x201ba8;_0x201ba8=_0x544cb4['end']['isAtEnd']&&_0x544cb4['end']['parent']==_0x544cb4['start']['nodeAfter']?_0x53b0e5['createSelection'](_0x544cb4['start']['nodeAfter'],'on'):_0x53b0e5['createSelection'](_0x544cb4),this['_model']['deleteContent'](_0x201ba8,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3ea77c=(_0x2471a9,_0x2c95b1)=>{_0x2c95b1&&this['_model']['change'](_0x2ae199=>{const {commandName:_0x195c7a,commandParams:_0x564dfa=[]}=_0x2c95b1,_0x1331ef=_0x2471a9['map'](_0x1936e3=>(Et(_0x1936e3)&&(_0x1936e3=this['_model']['createRange'](_0x1936e3['end'])),_0x1936e3))['filter'](_0x53d7f6=>'$graveyard'!==_0x53d7f6['root']['rootName']);if(_0x1331ef['length']<0x1)return;const _0x227ea9=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x7c2142=>_0x49277e['fromRange'](_0x7c2142));_0x2ae199['setSelection'](_0x1331ef);for(const _0x23d164 of this['_editor']['commands']['commands']())_0x23d164['refresh']();_0x564dfa['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x195c7a,..._0x564dfa);const _0x8172aa=_0x227ea9['filter'](_0x396a01=>'$graveyard'!=_0x396a01['root']['rootName']);_0x8172aa['length']>0x0&&_0x2ae199['setSelection'](_0x8172aa);for(const _0x5454d8 of _0x227ea9)_0x5454d8['detach']();});},_0x128c6d=(_0xc893c1,_0x2acd84)=>0x1==_0xc893c1['length']&&0x1==_0x2acd84['length']&&_0xc893c1[0x0]['end']['isEqual'](_0x2acd84[0x0]['start']),_0x265f10=(_0x58ff7e,_0x169cd7,_0x13de27,_0x4975c5)=>Pt(_0x58ff7e,_0x169cd7,_0x13de27,_0x4975c5,this['_model'])?[_0x58ff7e,_0x169cd7]:Pt(_0x169cd7,_0x58ff7e,_0x4975c5,_0x13de27,this['_model'])?[_0x169cd7,_0x58ff7e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4a57ed),this['_defaultCallbacks']['set']('insertion:discard',_0x3a760b),this['_defaultCallbacks']['set']('insertion:join',_0x128c6d),this['_defaultCallbacks']['set']('insertion:chain',_0x265f10),this['_defaultCallbacks']['set']('deletion:accept',_0x3a760b),this['_defaultCallbacks']['set']('deletion:discard',_0x4a57ed),this['_defaultCallbacks']['set']('deletion:join',_0x128c6d),this['_defaultCallbacks']['set']('deletion:chain',_0x265f10),this['_defaultCallbacks']['set']('formatInline:accept',_0x3ea77c),this['_defaultCallbacks']['set']('formatInline:discard',_0x4a57ed),this['_defaultCallbacks']['set']('formatInline:join',_0x128c6d),this['_defaultCallbacks']['set']('formatInline:chain',_0x4a57ed),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3ea77c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4a57ed),this['_defaultCallbacks']['set']('formatBlock:join',_0x128c6d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4a57ed),this['_defaultCallbacks']['set']('attribute:accept',_0x4a57ed),this['_defaultCallbacks']['set']('attribute:discard',(_0x34387b,_0x499d31)=>{if(!_0x499d31)return;const _0x3e0e64=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x46b10f=>{if(_0x499d31['key']==m)for(const _0x34a7d9 of _0x34387b){const _0x5c5ffa=_0x34a7d9['start']['nodeAfter'],_0x356d5d=_0x499d31['oldValue'];_0x46b10f['rename'](_0x5c5ffa,_0x356d5d);}else{if(_0x3e0e64['_isBlockAttribute'](_0x499d31['key'])){for(const _0xad2bd1 of _0x34387b)void 0x0!==_0x499d31['oldValue']?_0x46b10f['setAttribute'](_0x499d31['key'],_0x499d31['oldValue'],_0xad2bd1['start']['nodeAfter']):_0x46b10f['removeAttribute'](_0x499d31['key'],_0xad2bd1['start']['nodeAfter']);}else{for(const _0x581ec5 of _0x34387b)_0x499d31['oldValue']?_0x46b10f['setAttribute'](_0x499d31['key'],_0x499d31['oldValue'],_0x581ec5):_0x46b10f['removeAttribute'](_0x499d31['key'],_0x581ec5);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x128c6d);}}function Tt(_0x17e696,_0x32e61e,_0x4e55e2){for(const _0x950b7 of _0x32e61e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x950b7['root']==_0x950b7)return!0x1;if(!_0x4e55e2['containsItem'](_0x950b7))return!0x1;if(_0x17e696['isObject'](_0x950b7)||_0x17e696['isLimit'](_0x950b7))return!0x0;}return!0x1;}function Et(_0x4118cc){return _0x4118cc['end']['parent']==_0x4118cc['start']['nodeAfter']&&_0x4118cc['end']['isAtStart'];}function Vt(_0x4f9a9d,_0x681642,_0x3fd413,_0x18f186){const _0x2f9b05=_0x381a0d=>!_0x381a0d['item']['is']('$textProxy')&&!_0x18f186['isObject'](_0x381a0d['item']),_0xf3ebba=_0x4f9a9d['start']['getLastMatchingPosition'](_0x2f9b05),_0x190dae=_0x4f9a9d['end']['getLastMatchingPosition'](_0x2f9b05,{'direction':'backward'});return(!_0x4f9a9d['start']['isEqual'](_0xf3ebba)||!_0x4f9a9d['end']['isEqual'](_0x190dae))&&(_0xf3ebba['isBefore'](_0x190dae)?_0x3fd413['updateMarker'](_0x681642,{'range':_0x3fd413['createRange'](_0xf3ebba,_0x190dae)}):_0x3fd413['removeMarker'](_0x681642),!0x0);}function Ut(_0x4cc13d){return _0x45301d(_0x4cc13d);}function Ot(_0x19470a){const _0xe4a26e=_0x19470a['start']['nodeAfter'];return _0xe4a26e&&_0xe4a26e['is']('element');}function Gt(_0x2bb1d8,_0x379eb0){return null==_0x2bb1d8['end']['nodeBefore']&&_0x2bb1d8['end']['parent']==_0x2bb1d8['start']['nodeAfter']?Ft(_0x2bb1d8['start']['nodeAfter'],_0x379eb0):_0x2bb1d8;}function Ft(_0x2ed15a,_0x16cd8f){const _0x468a72=_0x16cd8f['schema']['isObject'](_0x2ed15a)||_0x16cd8f['schema']['isSelectable'](_0x2ed15a);return _0x16cd8f['createRange'](_0x16cd8f['createPositionAt'](_0x2ed15a,'before'),_0x468a72?_0x16cd8f['createPositionAfter'](_0x2ed15a):_0x16cd8f['createPositionAt'](_0x2ed15a,'end'));}function Pt(_0x526550,_0x3a1f22,_0x2f9a10,_0x49cedb,_0x39c332){if(!Lt(_0x526550,_0x3a1f22))return!0x1;if(_0x2f9a10['end']['isEqual'](_0x49cedb['start']))return!0x0;if(_0x526550['type']!=_0x3a1f22['type'])return!0x1;if(!_0x2f9a10['end']['isTouching'](_0x49cedb['start']))return!0x1;const _0x5427d1=_0x39c332['createRange'](_0x2f9a10['end'],_0x49cedb['start'])['getWalker']();for(const _0x338e2a of _0x5427d1)if(['elementStart','elementEnd']['includes'](_0x338e2a['type'])&&_0x39c332['schema']['isLimit'](_0x338e2a['item']))return!0x1;return!0x0;}function Lt(_0x2b7b1c,_0x4b4e39,_0x4f847e=[]){return!(!_0x2b7b1c['_isDataLoaded']||!_0x4b4e39['_isDataLoaded'])&&_0x4390ae(xt(_0x2b7b1c['attributes'],_0x4f847e),xt(_0x4b4e39['attributes'],_0x4f847e));}function Ht(_0x3a0896,_0x50455f){const _0x3684dc=qt(_0x3a0896['attributes']),_0x467321=qt(_0x50455f);if(!_0x3a0896['_isDataLoaded'])return!0x1;for(const _0x5c481e of Object['keys'](_0x467321))if(!_0x4390ae(_0x3684dc[_0x5c481e],_0x467321[_0x5c481e]))return!0x1;return!0x0;}function qt(_0x1d54e2){const _0x27d611=Object['assign']({},_0x1d54e2);return delete _0x27d611['skipNestingCheck'],delete _0x27d611['tablePasteChainId'],_0x27d611;}class ne extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x463fbe(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x622aa0,_0x1d828,_0x26a3aa,_0x4dab1e){super(),this['model']=_0x1d828,this['view']=_0x26a3aa,this['commentThreadController']=_0x4dab1e,this['_editor']=_0x622aa0,this['_acceptCommand']=_0x622aa0['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x622aa0['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4124d7,_0x58fdd7)=>_0x4124d7||_0x58fdd7),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1b86fa=>_0x1b86fa&&this['_editor']['model']['canEditAt'](_0x1d828['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3c21eb=>_0x3c21eb&&this['_editor']['model']['canEditAt'](_0x1d828['getRanges']())),this['_pendingAction']=null,_0x26a3aa['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x26a3aa,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x26a3aa,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x26a3aa,'change:isDirty',()=>{_0x26a3aa['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 _0x118b43=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x118b43);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x63de3d{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0xf3b851,_0x3bb8c8,_0x255b9a,_0x381f91){super(_0xf3b851),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x3bb8c8['authoredAt']),this['bind']('authoredAt')['to'](_0x3bb8c8),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x3bb8c8,this['_localUser']=_0x255b9a,this['_config']=_0x381f91,_0x381f91['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:_0xa1d8fb}=this['_config'];this['commentsListView']=new _0xa1d8fb(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',_0x5083d3=>_0x5083d3+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x51edfc,_0x56ea7e)=>_0x51edfc||!!_0x56ea7e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1b83fa}=this['_config'],_0x28c1da=new _0x1b83fa(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x103e3c=_0x28c1da['commentInputView'];return _0x28c1da['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x103e3c,'value',(_0x5956c2,_0x4f994d,_0x164abe)=>!!_0x164abe||_0x5956c2&&!_0x4f994d),_0x103e3c['on']('submit',(_0x30524e,_0xac452e)=>{this['fire']('addComment',_0xac452e),_0x103e3c['editor']['setData']('');}),_0x103e3c['on']('cancel',()=>this['focus']()),_0x103e3c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x28c1da;}}class ie extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x2e8e6b,_0x343f48,_0x2a3a6d,_0x1be6ee){super(_0x2e8e6b,_0x343f48,_0x2a3a6d,_0x1be6ee),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xeb387c=>_0xeb387c&&_0xeb387c[0x0]?_0xeb387c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xf6713f,_0x31ea5e)=>{let _0x181b39='';for(const _0x4b3e24 of _0xf6713f)_0x181b39+='<p>'+ds(_0x4b3e24['content'],_0x4b3e24['color'])+'</p>';return _0x31ea5e?_0x181b39:_0x42a722(_0x181b39,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x2e8e6b,'Accept\x20suggestion'),_0x50e253['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x2e8e6b,'Discard\x20suggestion'),_0x50e253['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x898e2b(_0x2e8e6b,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x187162=this['bindTemplate'],_0x1e48dd=[{'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':_0x187162['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x187162['to']('authoredAt',_0x2d8dc5=>this['_config']['formatDateTime'](_0x2d8dc5))}]}]},{'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']&&_0x1e48dd['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0xfb1eb7={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x187162['if']('isActive','ck-suggestion-wrapper--active'),_0x187162['to']('type',_0x40dc73=>'ck-suggestion-'+_0x40dc73),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':_0x1e48dd}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0xfb1eb7['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)),_0xfb1eb7;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x42c5b4,_0x11216e,_0x2d6e7b)=>{this['_descriptionElement']['innerHTML']=_0x2d6e7b;});}['_createButton'](_0x23aed1,_0x56b460,_0x376237,_0x4acded,_0x4e3058){const _0x4678c6=new _0x6d21b9(this['locale']);return _0x4678c6['set']({'label':_0x23aed1,'icon':_0x56b460,'tooltip':!0x0,'tooltipPosition':_0x4e3058}),_0x4678c6['extendTemplate']({'attributes':{'class':_0x376237}}),_0x4678c6['on']('execute',()=>{this['fire'](_0x4acded,this['_model']['id']);}),_0x4678c6;}['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(_0x1e37e1,_0x3c73d8){let _0x477d74='';return _0x477d74+=_0x1e37e1['split']('*')['map']((_0x71c26,_0x3fcf69)=>_0x3fcf69%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x71c26)+'</span>':us(_0x71c26))['join'](''),_0x3c73d8&&(_0x477d74+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3c73d8['value']+'\x22\x20title=\x22'+_0x3c73d8['title']+'\x22></span>'),_0x477d74;}function us(_0x3b2205){const _0x246e3e=document['createElement']('span');return _0x246e3e['innerText']=_0x3b2205,_0x246e3e['innerHTML'];}var ae='<!--\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 _0x20fe95{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x21c972,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x594167){super(_0x594167),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x367e5a=this['editor']['config'];_0x367e5a['define']('trackChanges.SuggestionThreadView',ie),_0x367e5a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x367e5a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2a5375,_0x5593d8){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5367f3,_0x3e2d89]of this['_handleControllerBuffer']){const _0x24678a=this['_suggestionToController']['has'](_0x5367f3);_0x24678a||_0x3e2d89?_0x24678a&&_0x3e2d89&&this['_destroyController'](_0x5367f3):this['_initializeController'](_0x5367f3);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2a5375,_0x5593d8);}['init'](){const _0x3a31df=this['editor'],_0x287717=_0x3a31df['plugins']['get']('TrackChangesEditing'),_0x41328a=_0x3a31df['plugins']['get']('Annotations'),_0x553929=_0x3a31df['plugins']['get']('EditorAnnotations'),_0x53591c=_0x3a31df['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x553929['addSourceCollector'](()=>{const _0x2724c2=[];for(const [_0x335f43,_0x114798]of Array['from'](this['_suggestionToController'])){const _0x50eeba=_0x335f43['getAllAdjacentSuggestions'](),_0x40f6c7=[];for(const _0x2034f6 of _0x50eeba){if(!_0x2034f6['isInContent'])continue;if(_0x2034f6['isMultiRange']){_0x40f6c7['push'](..._0x2034f6['getRanges']());continue;}const _0x325f16=_0x2034f6['getFirstRange']();if(_0x40f6c7['length']>0x0){const _0x2dc1da=_0x40f6c7[0x0]['getJoined'](_0x325f16);if(_0x2dc1da){_0x40f6c7[0x0]=_0x2dc1da;continue;}}_0x40f6c7['push'](_0x325f16);}_0x2724c2['push']([_0x114798['view'],_0x40f6c7]);}return _0x2724c2;}),this['listenTo'](_0x287717,'suggestionLoaded',(_0x266a29,_0x9e9475)=>{this['listenTo'](_0x9e9475,'change:previous',(_0x38a7af,_0x45e874,_0x489a0a,_0x22d11b)=>{_0x9e9475['isInContent']&&(null==_0x489a0a?(this['_updateController'](_0x22d11b['head']),this['_handleSuggestionControllerDelayed'](_0x9e9475,!0x1)):(this['_updateController'](_0x489a0a['head']),null==_0x22d11b&&this['_handleSuggestionControllerDelayed'](_0x9e9475,!0x0)));}),null!==_0x9e9475['previous']?this['_updateController'](_0x9e9475['head']):this['_handleSuggestionControllerDelayed'](_0x9e9475,!0x1);}),this['listenTo'](_0x287717,'suggestionUnloaded',(_0x2ae158,_0x123bef,_0x48e12a)=>{this['stopListening'](_0x123bef,'change:previous'),this['_handleControllerBuffer']['delete'](_0x123bef),this['_suggestionToController']['has'](_0x123bef)&&this['_destroyController'](_0x123bef),_0x48e12a&&this['_updateController'](_0x48e12a['head']);}),this['listenTo'](_0x287717,'suggestionChanged',(_0x2ef5a3,_0x370223)=>{this['_updateController'](_0x370223);}),this['listenTo'](_0x41328a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x53591c,'addComment',(_0x14f53a,{threadId:_0x20ee14,isFromAdapter:_0x4d401c})=>{if(_0x4d401c||!_0x287717['hasSuggestion'](_0x20ee14))return;const _0x2ae0b9=_0x287717['getSuggestion'](_0x20ee14);this['_suggestionToController']['get'](_0x2ae0b9)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x42dd9d=this['editor']['plugins']['get']('Annotations'),_0x2e20be=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f7d59=Array['from'](_0x42dd9d['activeAnnotations'],_0x926193=>_0x926193['innerView'])['filter'](_0xa006f8=>this['_viewToController']['has'](_0xa006f8)),_0x21b07d=[];for(const _0x13b564 of _0x4f7d59){const _0x572ac1=this['_viewToController']['get'](_0x13b564)['model']['getAllAdjacentSuggestions']();_0x21b07d['push'](..._0x572ac1['reduce']((_0x5021e6,_0x507373)=>[..._0x5021e6,..._0x507373['getMarkerNames']()],[]));}_0x2e20be['activeMarkers']=_0x21b07d;}['_addUIComponentsToFactory'](){const _0x33b550=this['editor'],_0x4d2744=_0x33b550['locale'],_0xf4380c=o(_0x4d2744,'Track\x20changes'),_0xe4fed9=new Wt([{'type':'switchbutton','model':new _0x5cfa23({'withText':!0x0,'isToggleable':!0x0,'label':_0xf4380c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5cfa23({'withText':!0x0,'label':o(_0x4d2744,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5cfa23({'withText':!0x0,'label':o(_0x4d2744,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5cfa23({'withText':!0x0,'label':o(_0x4d2744,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5cfa23({'withText':!0x0,'label':o(_0x4d2744,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0xc7cf91 of _0xe4fed9)if(re(_0xc7cf91)){const _0x27be06=_0x33b550['commands']['get'](_0xc7cf91['model']['commandName']);_0xc7cf91['model']['bind']('isOn','isEnabled')['to'](_0x27be06,'value','isEnabled');}_0x33b550['ui']['componentFactory']['add']('trackChanges',_0x4418b5=>this['_createToolbarButton'](_0x4418b5,_0xe4fed9,_0xf4380c)),_0x33b550['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1f1800=>this['_createMenuBarMenu'](_0x1f1800,_0xe4fed9,_0xf4380c));}['_createToolbarButton'](_0x1d246b,_0x475c65,_0x230957){const _0x1efd1f=Jt(_0x1d246b,te),_0x20546f=this['editor']['commands']['get']('trackChanges');_0x1efd1f['buttonView']['set']({'tooltip':_0x230957,'label':_0x230957,'icon':ae}),_0x1efd1f['buttonView']['bind']('isOn')['to'](_0x20546f,'value'),_0x1efd1f['buttonView']['on']('execute',()=>{_0x20546f['execute'](),this['editor']['editing']['view']['focus']();}),zt(_0x1efd1f,_0x475c65,{'role':'menu'});const _0x9067f9=[];for(const _0x3aefac of _0x475c65)re(_0x3aefac)&&_0x9067f9['push'](this['editor']['commands']['get'](_0x3aefac['model']['commandName']));const _0x23e36a=_0x1efd1f['buttonView'];return _0x23e36a['actionView']['unbind']('isEnabled'),_0x23e36a['arrowView']['unbind']('isEnabled'),_0x23e36a['actionView']['bind']('isEnabled')['to'](_0x20546f,'isEnabled'),_0x23e36a['arrowView']['bind']('isEnabled')['toMany'](_0x9067f9,'isEnabled',(..._0x5cff64)=>_0x5cff64['some'](_0x5c27b1=>_0x5c27b1)),_0x1efd1f['on']('execute',_0x184130=>{this['editor']['execute'](_0x184130['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1efd1f;}['_createMenuBarMenu'](_0x15d9e1,_0x4d924c,_0x3286de){const _0x21a4dc=new Qt(_0x15d9e1),_0x1ec63d=this['editor']['commands']['get']('trackChanges');_0x21a4dc['buttonView']['set']({'label':_0x3286de,'icon':ae});const _0x485f67=new Xt(_0x15d9e1);for(const _0x2d7552 of _0x4d924c){if('separator'==_0x2d7552['type']){_0x485f67['items']['add'](new Kt(_0x15d9e1));continue;}const _0x5a6e73=new Yt(_0x15d9e1,_0x21a4dc),_0x384004=new Zt(_0x15d9e1),_0x47debb=_0x2d7552['model'];_0x384004['bind'](...Object['keys'](_0x47debb))['to'](_0x47debb),_0x384004['delegate']('execute')['to'](_0x21a4dc),_0x384004['on']('execute',()=>{this['editor']['execute'](_0x47debb['commandName']),this['editor']['editing']['view']['focus']();}),_0x5a6e73['children']['add'](_0x384004),_0x485f67['items']['add'](_0x5a6e73);}return _0x21a4dc['bind']('isEnabled')['to'](_0x1ec63d,'isEnabled'),_0x21a4dc['panelView']['children']['add'](_0x485f67),_0x21a4dc;}['_initializeController'](_0x52c89a){const _0x104c10=this['editor'],_0x4305ef=_0x104c10['config'],_0x41e1a0=_0x104c10['plugins']['get']('Annotations'),_0x44d0bc=_0x104c10['plugins']['get']('CommentsRepository'),_0x4cf189=_0x104c10['plugins']['get']('EditorAnnotations'),_0x1cba3a=_0x104c10['plugins']['get'](_0x21c972)['me'],_0x35fe6c=_0x4305ef['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x4c88cc,CommentThreadInputView:_0x3527d3}=_0x104c10['plugins']['get']('CommentsUI');let _0x495acd,_0x14e18b;this['_annotationViews']['has'](_0x52c89a['id'])?(_0x14e18b=this['_annotationViews']['get'](_0x52c89a['id']),_0x495acd=_0x14e18b['mainView']):(_0x495acd=new _0x35fe6c(_0x104c10['locale'],_0x52c89a,_0x1cba3a,{'disableComments':this['_disableComments'],'editorConfig':_0x4305ef['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x4305ef['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4305ef['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4305ef['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x40266d(_0x4305ef['get']('locale')),'CommentView':_0x4305ef['get']('comments')['CommentView'],'CommentsListView':_0x4c88cc,'CommentThreadInputView':_0x3527d3}),_0x495acd['acceptButton']['on']('execute',()=>{_0x104c10['editing']['view']['focus']();}),_0x495acd['discardButton']['on']('execute',()=>{_0x104c10['editing']['view']['focus']();}),_0x14e18b=_0x41e1a0['createAnnotationView'](this['editor']['locale'],_0x495acd),_0x14e18b['bind']('isDirty')['to'](_0x495acd,'isDirty'),_0x14e18b['bind']('length')['to'](_0x495acd),_0x14e18b['bind']('type')['to'](_0x495acd,'type',_0x1d8941=>'suggestion-'+_0x1d8941),this['_annotationViews']['set'](_0x52c89a['id'],_0x14e18b));const _0xa03bb6=_0x44d0bc['createCommentThreadController'](_0x52c89a['commentThread'],_0x495acd),_0x1d5e84=new ne(_0x104c10,_0x52c89a,_0x495acd,_0xa03bb6),_0x4fc18b=_0x52c89a['getAllAdjacentSuggestions']()['filter'](_0x2bbdcf=>_0x2bbdcf['isInContent']);_0x495acd['descriptionParts']=_0x104c10['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4fc18b),this['_suggestionToController']['set'](_0x52c89a,_0x1d5e84),this['_viewToController']['set'](_0x495acd,_0x1d5e84);const _0x5315f2=_0x41e1a0['createAnnotation']({'view':_0x14e18b,'target':()=>{const _0x2e0341=[],_0x5ea1d8=_0x52c89a['getAllAdjacentSuggestions']()['filter'](_0x2e152a=>_0x2e152a['isInContent']);for(const _0x62c617 of _0x5ea1d8)_0x2e0341['push'](..._0x62c617['getMarkers']());return _0x4f030c(_0x104c10['editing'],_0x2e0341);},'type':()=>'suggestion-'+_0x1d5e84['view']['type']});_0x44d0bc['_bindAnnotationToEditors'](_0x495acd,_0x5315f2),_0x41e1a0['add'](_0x5315f2),_0x4cf189['registerAnnotation'](_0x5315f2);}['_destroyController'](_0x17e008){const _0x4ad8d2=this['editor']['plugins']['get']('CommentsRepository'),_0x2c114a=this['editor']['plugins']['get']('Annotations'),_0x4310b0=this['_suggestionToController']['get'](_0x17e008),_0x402e48=_0x4310b0['view'],_0x17c771=_0x2c114a['getByInnerView'](_0x402e48);_0x4ad8d2['_unbindEditors'](_0x402e48),_0x17c771&&_0x2c114a['remove'](_0x17c771),this['_suggestionToController']['delete'](_0x17e008),this['_viewToController']['delete'](_0x402e48),_0x4310b0['destroy']();}['_updateController'](_0x9f156f){if(!_0x9f156f['isInContent']||!this['_suggestionToController']['has'](_0x9f156f))return;const _0x529f9a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x309ecc=this['_suggestionToController']['get'](_0x9f156f),_0x2d3380=_0x9f156f['getAllAdjacentSuggestions']();_0x309ecc['view']['descriptionParts']=_0x529f9a['descriptionFactory']['getDescriptions'](_0x2d3380);}['destroy'](){for(const _0x640fd1 of this['_suggestionToController']['keys']())this['_destroyController'](_0x640fd1);for(const _0x2cbbf1 of this['_annotationViews']['values']())_0x2cbbf1['mainView']['destroy']();super['destroy']();}}function re(_0x244215){return'model'in _0x244215;}class k extends _0x20fe95{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x5d4f43){this['editor']['plugins']['get'](p)['adapter']=_0x5d4f43;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x39570d){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x39570d);}['getSuggestions']({skipNotAttached:_0x3de30a=!0x1,toJSON:_0x7fbb6a=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3de30a,'toJSON':_0x7fbb6a});}['getSuggestion'](_0x545493){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x545493);}}const T=['Pagination'];class P extends _0x20fe95{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x149c25=this['editor'];if(_0x149c25['config']['define']('trackChangesData.editorCreator',_0x15f6df=>{const _0x42d4f2=_0x149c25['model']['document']['getRootNames']()['reduce']((_0x3b4c4d,_0x39142f)=>(_0x3b4c4d[_0x39142f]='',_0x3b4c4d),{});return _0x149c25['constructor']['create'](_0x42d4f2,_0x15f6df);}),'function'!=typeof _0x149c25['config']['get']('trackChangesData')['editorCreator'])throw new _0x4d0924('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2e922f){return N(this['editor'],!0x0,_0x2e922f);}['getDataWithDiscardedSuggestions'](_0x2e8862){return N(this['editor'],!0x1,_0x2e8862);}}class D extends _0x20fe95{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x35c0b9){super(_0x35c0b9),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(_0x2ba987){return void 0x0!==_0x2ba987['getRootsAttributes'];}async function N(_0x4ede89,_0x212d41,_0x5a7756){const _0x4d53a6=_0x30e326(_0x4ede89,T);_0x4d53a6['plugins']['push'](p,D),_0x4d53a6['rootsAttributes']=v(_0x4ede89)?_0x4ede89['getRootsAttributes']():void 0x0;const _0x1c0788=document['createDocumentFragment'](),_0x36488a=_0x4ede89['config']['get']('trackChangesData')['editorCreator'],_0x5190ec=await _0x36488a(_0x4d53a6,()=>function(_0x1a2e20){const _0x4162dc=document['createElement']('div');return _0x1a2e20['appendChild'](_0x4162dc),_0x4162dc;}(_0x1c0788));!function(_0xd10c8,_0x3ccb12){const _0x2ba49b=_0xd10c8['model']['document']['getRootNames']()['reduce']((_0x4ef216,_0x6ed1d8)=>(_0x4ef216[_0x6ed1d8]=_0xd10c8['data']['get']({'rootName':_0x6ed1d8}),_0x4ef216),{}),_0x55e078=_0xd10c8['plugins']['get']('Users')['users']['map'](_0x3fc786=>({'id':_0x3fc786['id'],'name':_0x3fc786['name']})),_0x1f74c9=_0xd10c8['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x163689=_0xd10c8['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2eae90=_0x3ccb12['plugins']['get']('Users'),_0x410acb=_0x3ccb12['plugins']['get']('TrackChangesEditing'),_0x4fb22a=_0x3ccb12['plugins']['get']('CommentsRepository');for(const _0x5f5671 of _0x55e078)_0x2eae90['getUser'](_0x5f5671['id'])||_0x2eae90['addUser'](_0x5f5671);_0x2eae90['me']||_0x2eae90['useAnonymousUser']();for(const _0xb83e2e of _0x163689)_0x4fb22a['addCommentThread'](_0xb83e2e);for(const _0xb6c036 of _0x1f74c9)_0x410acb['addSuggestionData'](_0xb6c036);_0x3ccb12['data']['set'](_0x2ba49b);}(_0x4ede89,_0x5190ec),_0x5190ec['execute'](_0x212d41?'acceptAllSuggestions':'discardAllSuggestions');const _0x36f5a6=v(_0x5190ec)?_0x5190ec['getFullData'](_0x5a7756):_0x5190ec['data']['get'](_0x5a7756);return await _0x5190ec['destroy'](),_0x36f5a6;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|