@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240804.0 → 0.0.0-nightly-20240806.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 +10 -10
- 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
|
-
_0x24174f(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4fd59d,_0x3d74a8){super(),this['id']=_0x3d74a8['id'],this['type']=_0x3d74a8['type'],this['subType']=_0x3d74a8['subType']||null,this['author']=_0x3d74a8['author'],this['creator']=_0x3d74a8['creator']||_0x3d74a8['author'],this['isExternal']=Boolean(_0x3d74a8['attributes']&&_0x3d74a8['attributes']['@external']),this['data']=null,this['_model']=_0x4fd59d,this['_onAccept']=_0x3d74a8['onAccept'],this['_onDiscard']=_0x3d74a8['onDiscard'],this['_onAttributesChange']=_0x3d74a8['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3d74a8['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 _0x3c0604=this;for(;_0x3c0604['previous'];)_0x3c0604=_0x3c0604['previous'];return _0x3c0604;}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'](_0x38a27f){this['_markerNames']['add'](_0x38a27f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x459ff8=>this['_model']['markers']['get'](_0x459ff8))['filter'](_0x11f177=>_0x11f177);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x6f9be0=>{for(const _0x4466ad of this['getMarkers']())_0x6f9be0['removeMarker'](_0x4466ad);}),this['_markerNames']['clear']();}['removeMarker'](_0x19a7d7){this['_model']['change'](_0x215d02=>{_0x215d02['removeMarker'](_0x19a7d7);}),this['_markerNames']['delete'](_0x19a7d7);}['addRange'](_0x4ed73b){const _0x33799d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x33799d),this['_model']['change'](_0x284cfb=>{_0x284cfb['addMarker'](_0x33799d,{'range':_0x4ed73b,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5ae498){for(const _0x21b589 of this['getRanges']())if(_0x21b589['isIntersecting'](_0x5ae498))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5c6a12=>_0x5c6a12['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xc73ad8,_0x426347)=>[..._0xc73ad8,..._0x426347['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4c94a5=this['getRanges']();if(0x1!=_0x4c94a5['length'])return null;const _0x57e96f=_0x4c94a5[0x0],_0x22104e=_0x57e96f['start']['nodeAfter'],_0x243647=_0x57e96f['end']['nodeBefore'];return _0x22104e instanceof _0x33e9db?_0x22104e!=_0x243647?null:_0x22104e: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 _0x2ede91=[];let _0x2fc94b=this['head'];for(;_0x2fc94b;)_0x2ede91['push'](_0x2fc94b),_0x2fc94b=_0x2fc94b['next'];return _0x2ede91;}['setAttribute'](_0x5c2623,_0x160413){const _0x2c388e=_0x4b704c(this['attributes']);_0x6ab22d(_0x2c388e,_0x5c2623,_0x160413),_0x4edce7(_0x2c388e,this['attributes'])||(this['attributes']=_0x2c388e,this['_onAttributesChange'](_0x2c388e));}['removeAttribute'](_0xb9d8a6){const _0x5b8fe0=_0x4b704c(this['attributes']);_0x2516c4(_0x5b8fe0,_0xb9d8a6),_0x4edce7(_0x5b8fe0,this['attributes'])||(this['attributes']=_0x5b8fe0,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 _0x4600fb()['substr'](0x1,0x5);}}function o(_0x1d2d7d,_0x56d00e,_0x13f06){const t=_0x1d2d7d['t'];switch(_0x56d00e){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',_0x13f06);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x13f06);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x13f06);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x13f06);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x13f06);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',_0x13f06);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x13f06);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',_0x13f06);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x13f06);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x13f06);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x13f06);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x13f06);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x13f06);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x13f06);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x13f06);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x13f06);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x13f06);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x13f06);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x13f06);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x13f06);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x13f06);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x13f06);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x13f06);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'},_0x13f06);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x13f06);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x13f06);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x13f06);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x13f06);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x13f06);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'},_0x13f06);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x13f06);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x13f06);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x13f06);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x13f06);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'},_0x13f06);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x13f06);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'},_0x13f06);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'},_0x13f06);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x13f06);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'},_0x13f06);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x13f06);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'},_0x13f06);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x13f06);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x13f06);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'},_0x13f06);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'},_0x13f06);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'},_0x13f06);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x13f06);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x13f06);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x13f06);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x13f06);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x56d00e;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5db980,_0x2dfe64){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5db980,this['_locale']=_0x2dfe64;}['getDescriptions'](_0x200f9c){const _0x2f7053=[],_0x15a9e0=new Set(),_0x4c01b4=new Set();for(let _0x535e96=0x0;_0x535e96<_0x200f9c['length'];_0x535e96++){const _0x70928c=_0x200f9c[_0x535e96];if(!_0x70928c['isInContent'])continue;const _0x3076a3=this['_handleCustomCallbackDescription'](_0x70928c);if(_0x3076a3){if(null!=_0x70928c['subType']){if(_0x15a9e0['has'](_0x70928c['subType']))continue;_0x15a9e0['add'](_0x70928c['subType']);}_0x2f7053['push'](_0x3076a3);}else{if('attribute'!=_0x70928c['type'])'insertion'!=_0x70928c['type']&&'deletion'!=_0x70928c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2f7053,_0x70928c,_0x200f9c[_0x535e96+0x1]);else{const _0x2e0204=_0x70928c['data']['key'];if(_0x4c01b4['has'](_0x2e0204))continue;_0x4c01b4['add'](_0x70928c['data']['key']),_0x2e0204==m?this['_handleRenameSuggestionDescription'](_0x2f7053,_0x70928c):this['_handleAttributeSuggestionDescription'](_0x2f7053,_0x70928c);}}}return this['_resolveDescriptionItems'](_0x2f7053);}['registerDescriptionCallback'](_0x30e224){this['_customCallbacks']['push'](_0x30e224);}['registerElementLabel'](_0x13ea72,_0x406572,_0x260674=_0x436881['normal']){'function'==typeof _0x13ea72?_0x349218(this['_itemLabelsCallbacks'],{'matchingCallback':_0x13ea72,'label':_0x406572,'priority':_0x260674}):this['_itemLabels']['set'](_0x13ea72,_0x406572);}['registerAttributeLabel'](_0x5bbd4f,_0x5461e9){this['_attributeLabels']['set'](_0x5bbd4f,_0x5461e9);}['getItemLabel'](_0x20bb97,_0x3507ea=0x1){let _0x369058;for(const _0x1ce789 of this['_itemLabelsCallbacks'])if(_0x1ce789['matchingCallback'](_0x20bb97)){_0x369058=_0x1ce789['label'];break;}return _0x369058||(_0x369058=this['_itemLabels']['get'](_0x20bb97['name'])),_0x369058?_0x369058(_0x3507ea):0x1!==_0x3507ea?_0x3507ea+'\x20'+_0x20bb97['name']+'s':''+_0x20bb97['name'];}['_addDescriptionItems'](_0x4b1394,_0x1bd4be){const _0x5b4c68=_0x1bd4be['getFirstRange']()['getWalker'](),_0x1fafef='insertion'==_0x1bd4be['type']?'add':'remove';for(const _0x269ede of _0x5b4c68){const _0x32b98a=_0x269ede['item'],_0x573a3a=_0x4b1394[_0x4b1394['length']-0x1];if(_0x32b98a['is']('$textProxy'))_0x573a3a&&_0x573a3a['type']['indexOf']('Container')>-0x1&&_0x4b1394['pop'](),_0x573a3a&&'text'==_0x573a3a['type']?_0x573a3a[_0x1fafef]+=_0x32b98a['data']:_0x4b1394['push']({'type':'text','add':'add'==_0x1fafef?_0x32b98a['data']:'','remove':'remove'==_0x1fafef?_0x32b98a['data']:''});else{if(this['_schema']['isObject'](_0x32b98a)){const _0x508115=_0x32b98a;if(_0x573a3a&&_0x573a3a['type']['indexOf']('Container')>-0x1&&_0x4b1394['pop'](),'elementEnd'==_0x269ede['type'])continue;_0x573a3a&&_0x573a3a['type']==_0x1fafef+'Object'&&_0x573a3a['element']['name']==_0x508115['name']?_0x573a3a['quantity']++:_0x4b1394['push']({'type':_0x1fafef+'Object','element':_0x508115,'quantity':0x1}),_0x5b4c68['skip'](_0x2efb08=>!('elementEnd'==_0x2efb08['type']&&_0x2efb08['item']==_0x32b98a));}else{if(this['_schema']['checkChild'](_0x32b98a,'$text')||_0x32b98a['is']('element','softBreak')){const _0x58cb60=_0x32b98a;if('add'==_0x1fafef&&'elementStart'==_0x269ede['type']||'remove'==_0x1fafef&&'elementEnd'==_0x269ede['type'])continue;if(_0x573a3a&&-0x1==_0x573a3a['type']['indexOf']('Container')){'text'==_0x573a3a['type']&&(_0x573a3a[_0x1fafef]+='\x0a');continue;}let _0x322b4c;if(_0x322b4c='add'==_0x1fafef?_0x58cb60['nextSibling']&&!this['_schema']['isObject'](_0x58cb60['nextSibling'])?_0x58cb60['nextSibling']:null:_0x58cb60['previousSibling']&&!this['_schema']['isObject'](_0x58cb60['previousSibling'])?_0x58cb60['previousSibling']:null,_0x58cb60['isEmpty']||_0x322b4c&&_0x322b4c['isEmpty']){const _0x345829=_0x322b4c&&_0x322b4c['isEmpty']?_0x322b4c:_0x58cb60;_0x573a3a&&_0x573a3a['type']==_0x1fafef+'EmptyContainer'&&_0x573a3a['element']['name']==_0x345829['name']?_0x573a3a['quantity']++:_0x4b1394['push']({'type':_0x1fafef+'EmptyContainer','element':_0x345829,'quantity':0x1});}else _0x4b1394['push']({'type':_0x1fafef+'Container','element':_0x58cb60});}}}}}['_resolveDescriptionItems'](_0x4d665a){const _0xb2b7d3=this['_locale'],_0x5aaba3=[],_0x59342b=[],_0x43693a=[];for(const _0x1de684 of _0x4d665a)switch(_0x1de684['type']){case'text':if(_0x1de684['add']=_0x1de684['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1de684['remove']=_0x1de684['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1de684['add']&&''!=_0x1de684['remove']){_0x5aaba3['push']({'type':'replace','content':o(_0xb2b7d3,'REPLACE_TEXT',['\x22'+_0x1de684['remove']+'\x22','\x22'+_0x1de684['add']+'\x22'])});continue;}if(null!=_0x1de684['add']['match'](/^ +$/)){_0x5aaba3['push']({'type':'insertion','content':o(_0xb2b7d3,'*Insert:*\x20%0',o(_0xb2b7d3,'ELEMENT_SPACE',_0x1de684['add']['length']))});continue;}if(null!=_0x1de684['remove']['match'](/^ +$/)){_0x5aaba3['push']({'type':'deletion','content':o(_0xb2b7d3,'*Remove:*\x20%0',o(_0xb2b7d3,'ELEMENT_SPACE',_0x1de684['remove']['length']))});continue;}if(''!=_0x1de684['add']){_0x5aaba3['push']({'type':'insertion','content':o(_0xb2b7d3,'*Insert:*\x20%0','\x22'+_0x1de684['add']+'\x22')});continue;}_0x5aaba3['push']({'type':'deletion','content':o(_0xb2b7d3,'*Remove:*\x20%0','\x22'+_0x1de684['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5aaba3['push']({'type':'insertion','content':o(_0xb2b7d3,'*Insert:*\x20%0',this['getItemLabel'](_0x1de684['element'],_0x1de684['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5aaba3['push']({'type':'deletion','content':o(_0xb2b7d3,'*Remove:*\x20%0',this['getItemLabel'](_0x1de684['element'],_0x1de684['quantity']))});continue;case'addContainer':_0x5aaba3['push']({'type':'insertion','content':o(_0xb2b7d3,'*Split:*\x20%0',this['getItemLabel'](_0x1de684['element'],_0x1de684['quantity']))});continue;case'removeContainer':_0x5aaba3['push']({'type':'deletion','content':o(_0xb2b7d3,'*Merge:*\x20%0',this['getItemLabel'](_0x1de684['element'],_0x1de684['quantity']))});continue;case'addFormat':_0x59342b['push'](_0x1de684['key']);continue;case'removeFormat':_0x43693a['push'](_0x1de684['key']);continue;default:_0x5aaba3['push'](_0x1de684);}if(_0x59342b['length']){const _0x3db136=_0x59342b['map'](_0x2929aa=>this['_attributeLabels']['has'](_0x2929aa)?this['_attributeLabels']['get'](_0x2929aa):_0x2929aa)['join'](',\x20');_0x5aaba3['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3db136)});}if(_0x43693a['length']){const _0x5e6e71=_0x43693a['map'](_0x387af8=>this['_attributeLabels']['has'](_0x387af8)?this['_attributeLabels']['get'](_0x387af8):_0x387af8)['join'](',\x20');_0x5aaba3['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5e6e71)});}return _0x5aaba3;}['_handleCustomCallbackDescription'](_0x4d9ced){for(const _0x56e4c1 of this['_customCallbacks']){const _0x3ef981=_0x56e4c1(_0x4d9ced);if(_0x3ef981&&'type'in _0x3ef981)return _0x3ef981;}}['_handleAttributeSuggestionDescription'](_0x427c23,_0x34acb4){const _0x2eb2f4=_0x34acb4['data'],_0x3dcc13=void 0x0===_0x2eb2f4['newValue']?'removeFormat':'addFormat';_0x427c23['push']({'type':_0x3dcc13,'key':_0x2eb2f4['key']});}['_handleRenameSuggestionDescription'](_0x5e37f5,_0x54e1b4){_0x5e37f5['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x54e1b4['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x18c42f,_0x5282ff,_0x446f25){if(this['_addDescriptionItems'](_0x18c42f,_0x5282ff),_0x446f25&&_0x446f25['getFirstRange']()&&!_0x5282ff['getFirstRange']()['end']['isEqual'](_0x446f25['getFirstRange']()['start'])){const _0x41de1b=_0x18c42f[_0x18c42f['length']-0x1],_0x59baf6='insertion'==_0x5282ff['type']?'add':'remove';_0x41de1b&&'text'==_0x41de1b['type']&&(_0x41de1b[_0x59baf6]+='\x0a');}}}class V extends _0x101975{['afterInit'](){const _0x543a35=this['editor'],_0x1cbfb4=_0x543a35['plugins']['get']('TrackChangesEditing');_0x543a35['commands']['get']('showAIAssistant')&&_0x1cbfb4['enableCommand']('showAIAssistant');}}class U extends _0x101975{['afterInit'](){const _0xf74eb5=this['editor'],_0x16c83e=_0xf74eb5['locale'];if(!_0xf74eb5['plugins']['has']('AlignmentEditing'))return;const _0x533203=_0xf74eb5['plugins']['get']('TrackChangesEditing');_0x533203['enableDefaultAttributesIntegration']('alignment'),_0x533203['registerBlockAttribute']('alignment'),_0x533203['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x16c83e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x237981=this['editor'],_0x2929e7=_0x237981['locale'];_0x237981['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x118005=>{if('formatBlock'!=_0x118005['type'])return;const {data:_0x3029c5}=_0x118005;if(_0x3029c5&&'alignment'==_0x3029c5['commandName']){const _0x2d0893=_0x3029c5['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2929e7,'*Format:*\x20%0',function(_0x4c65b9){switch(_0x4c65b9){case'left':return o(_0x2929e7,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2929e7,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2929e7,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2929e7,'FORMAT_JUSTIFY_TEXT');}}(_0x2d0893))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x101975{['afterInit'](){const _0x40fbda=this['editor'],_0x2063a6=_0x40fbda['plugins']['get']('TrackChangesEditing'),_0x26dfd8=_0x40fbda['locale'];for(const _0x58fdd5 of ti){if(!_0x40fbda['plugins']['has'](_0x58fdd5))continue;const _0x43a4e8=_0x58fdd5['slice'](0x0,-0x7)['toLowerCase'](),_0x1ec23d='FORMAT_'+_0x43a4e8['toUpperCase']();_0x2063a6['enableDefaultAttributesIntegration'](_0x43a4e8),_0x2063a6['registerInlineAttribute'](_0x43a4e8),_0x2063a6['descriptionFactory']['registerAttributeLabel'](_0x43a4e8,o(_0x26dfd8,_0x1ec23d));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5da50f=this['editor'],_0x232c94=_0x5da50f['locale'],_0x4ef23c=_0x5da50f['plugins']['get']('TrackChangesEditing');function _0x47024b(_0x1a62e9,_0x5cddc4){_0x4ef23c['descriptionFactory']['registerDescriptionCallback'](_0x14c0df=>{if('formatInline'!=_0x14c0df['type'])return;const {data:_0x59add3}=_0x14c0df;return _0x59add3&&_0x59add3['commandName']===_0x1a62e9?_0x59add3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x232c94,'*Format:*\x20%0',_0x5cddc4)}:{'type':'format','content':o(_0x232c94,'*Remove\x20format:*\x20%0',_0x5cddc4)}:void 0x0;});}_0x47024b('bold',o(_0x232c94,'FORMAT_BOLD')),_0x47024b('italic',o(_0x232c94,'FORMAT_ITALIC')),_0x47024b('underline',o(_0x232c94,'FORMAT_UNDERLINE')),_0x47024b('code',o(_0x232c94,'FORMAT_CODE')),_0x47024b('strikethrough',o(_0x232c94,'FORMAT_STRIKETHROUGH')),_0x47024b('subscript',o(_0x232c94,'FORMAT_SUBSCRIPT')),_0x47024b('superscript',o(_0x232c94,'FORMAT_SUPERSCRIPT'));}}class F extends _0x101975{['afterInit'](){const _0x349ff4=this['editor'],_0x395a9d=_0x349ff4['locale'];if(!_0x349ff4['plugins']['has']('BlockQuoteEditing'))return;const _0x59513f=_0x349ff4['plugins']['get']('TrackChangesEditing'),_0x51f1b4=this['editor']['commands']['get']('blockQuote');_0x59513f['enableCommand']('blockQuote',(_0x36b02d,_0x124e35={})=>{const _0x23fcc1=this['editor']['model']['document']['selection'],_0x5f0573=_0x124e35&&void 0x0!==_0x124e35['forceValue']?_0x124e35['forceValue']:!_0x51f1b4['value'];let _0x442f2f=[];if(_0x5f0573){const _0x231463=Array['from'](_0x23fcc1['getSelectedBlocks']())['filter'](_0x1b9018=>oo(_0x1b9018)||function(_0x4a335c,_0x3cd9e9){const _0x2087ee=_0x3cd9e9['checkChild'](_0x4a335c['parent'],'blockQuote'),_0x49ac91=_0x3cd9e9['checkChild'](['$root','blockQuote'],_0x4a335c);return _0x2087ee&&_0x49ac91;}(_0x1b9018,this['editor']['model']['schema']));_0x442f2f=to(_0x231463,_0x349ff4['model']);}else{const _0x6be074=Array['from'](_0x23fcc1['getSelectedBlocks']())['filter'](_0x2b45be=>oo(_0x2b45be));_0x442f2f=to(_0x6be074,_0x349ff4['model']);}_0x349ff4['model']['change'](()=>{for(const _0x3ba281 of _0x442f2f)_0x59513f['markBlockFormat'](_0x3ba281,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5f0573}]});});}),_0x59513f['descriptionFactory']['registerDescriptionCallback'](_0x482f7b=>{const {data:_0x5baec7}=_0x482f7b;if(_0x5baec7&&'blockQuote'==_0x5baec7['commandName']){const _0x37d64d=o(_0x395a9d,'ELEMENT_BLOCK_QUOTE');return _0x5baec7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x395a9d,'*Set\x20format:*\x20%0',_0x37d64d)}:{'type':'format','content':o(_0x395a9d,'*Remove\x20format:*\x20%0',_0x37d64d)};}});}}function oo(_0x2f3566){return'blockQuote'==_0x2f3566['parent']['name'];}class L extends _0x101975{['afterInit'](){const _0x27f7c4=this['editor'];_0x27f7c4['plugins']['has']('CaseChange')&&(_0x27f7c4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x27f7c4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x27f7c4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x101975{['afterInit'](){const _0x586106=this['editor'];_0x586106['commands']['get']('ckbox')&&_0x586106['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x101975{['afterInit'](){const _0x1f36e8=this['editor'];if(!_0x1f36e8['plugins']['has']('CodeBlock'))return;const _0x224442=_0x1f36e8['plugins']['get']('TrackChangesEditing'),_0x1d1571=_0x1f36e8['locale'],_0x39aba1=_0x1f36e8['config']['get']('codeBlock')['languages'],_0xdc7b06=_0x1f36e8['commands']['get']('codeBlock');_0x224442['enableCommand']('indentCodeBlock'),_0x224442['enableCommand']('outdentCodeBlock'),_0x224442['enableCommand']('codeBlock',(_0x2519d7,_0x2d32d6={})=>{const _0x9f20b5=_0x1f36e8['model'],_0x28cef9=_0x1f36e8['model']['document']['selection'],_0x5520eb=_0x2d32d6&&void 0x0!==_0x2d32d6['forceValue']?_0x2d32d6['forceValue']:!_0xdc7b06['value'];let _0x4d0df5;_0x2d32d6['language']||(_0x2d32d6['language']=_0x39aba1[0x0]['language']),_0x4d0df5=_0x5520eb?Array['from'](_0x28cef9['getSelectedBlocks']())['filter'](_0x48d4d6=>eo(_0x48d4d6)||function(_0x76223,_0x288ce9){if(_0x76223['is']('rootElement')||_0x288ce9['isLimit'](_0x76223))return!0x1;return _0x288ce9['checkChild'](_0x76223['parent'],'codeBlock');}(_0x48d4d6,_0x9f20b5['schema'])):Array['from'](_0x28cef9['getSelectedBlocks']())['filter'](_0x2670f2=>eo(_0x2670f2));const _0x9f6569=to(_0x4d0df5,_0x9f20b5);_0x9f20b5['change'](()=>{for(const _0x359469 of _0x9f6569)_0x224442['markBlockFormat'](_0x359469,{'commandName':'codeBlock','commandParams':[{..._0x2d32d6,'forceValue':_0x5520eb}],'formatGroupId':'blockName'});});}),(_0x224442['descriptionFactory']['registerElementLabel']('codeBlock',_0x1824c8=>o(_0x1d1571,'ELEMENT_CODE_BLOCK',_0x1824c8)),_0x224442['descriptionFactory']['registerDescriptionCallback'](_0x25538a=>{if('formatBlock'!=_0x25538a['type'])return;const _0x570e13=_0x1d1571['t'],{data:_0x190330}=_0x25538a;if(!_0x190330||'codeBlock'!=_0x190330['commandName'])return;const _0x5a9feb=_0x190330['commandParams'][0x0]['language'],_0x2ad972=_0x570e13(_0x39aba1['find'](_0x583d1a=>_0x583d1a['language']===_0x5a9feb)['label'])['toLowerCase']();return _0x190330['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1d1571,'*Set\x20format:*\x20%0',o(_0x1d1571,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2ad972+')')}:{'type':'format','content':o(_0x1d1571,'*Remove\x20format:*\x20%0',o(_0x1d1571,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x12dc7c){return'codeBlock'==_0x12dc7c['name'];}class q extends _0x101975{['afterInit'](){const _0x4346fb=this['editor'];if(!_0x4346fb['plugins']['has']('CommentsEditing'))return;_0x4346fb['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x157e25,_0x5780de,_0x2fdbc1){const _0x37fd5a=[];for(const _0x8b5983 of _0x5780de['getItems']())_0x8b5983['hasAttribute'](_0x157e25)&&_0x37fd5a['push'](_0x2fdbc1['createRangeOn'](_0x8b5983));return _0x37fd5a;}function _e(_0x54eb3a,_0x1d2a35,{showActiveMarker:_0x472f34=!0x0}={}){const _0xb40555=_0x54eb3a['plugins']['get']('TrackChangesEditing');return(_0x21e6ca,_0x1c896e,_0x536c5c)=>{if(!_0x536c5c['consumable']['test'](_0x1c896e['markerRange'],_0x21e6ca['name']))return;const _0x2c6d7f=_0x1c896e['markerRange']['getWalker'](),_0x2240dd=_0x1c896e['markerRange']['start'],_0x523cc7=_0x54eb3a['model']['schema'];let _0x53d8b7=null,_0x29846b=null,_0x568001=!0x1,_0x3de90a=!0x1;for(const _0x1ade42 of _0x2c6d7f){const _0x435d47=_0x1ade42['item'];_0x568001=_0x568001||_0x523cc7['isContent'](_0x435d47);const _0x1c5b5f=_0x536c5c['mapper']['toViewElement'](_0x435d47);if(_0x1c5b5f&&_0x1c5b5f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1ade42['type']&&(_0x523cc7['isBlock'](_0x435d47)&&!_0x523cc7['isLimit'](_0x435d47)&&(_0x435d47['nextSibling']||_0x2240dd['isAtEnd']?_0x53d8b7&&_0x53d8b7['parent']==_0x435d47||(_0x53d8b7=_0x435d47,_0x57f8b9(_0x1ade42['previousPosition']),_0x3de90a=!0x0):_0x29846b=_0x29846b||_0x1ade42['previousPosition']));}function _0x57f8b9(_0x1b03a0){const _0x5b693d=_0x536c5c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1d2a35}),_0x1a20af=_0x536c5c['mapper']['toViewPosition'](_0x1b03a0);_0x472f34&&_0xb40555['activeMarkers']['includes'](_0x1c896e['markerName'])&&_0x536c5c['writer']['addClass']('ck-suggestion-marker--active',_0x5b693d),_0x536c5c['writer']['insert'](_0x1a20af,_0x5b693d),_0x536c5c['mapper']['bindElementToMarker'](_0x5b693d,_0x1c896e['markerName']);}_0x568001||_0x3de90a||!_0x29846b||_0x57f8b9(_0x29846b);};}class z extends _0x101975{static get['requires'](){return[_0x4602bf];}['init'](){const _0x1df989=this['editor'],_0x2b72ef=_0x1df989['plugins']['get']('TrackChangesEditing');_0x2b72ef['enableCommand']('delete');const _0x3bc15b=_0x1df989['commands']['get']('deleteForward');_0x2b72ef['enableCommand']('deleteForward',(_0x408d46,_0x491934={})=>{const _0x10343f=_0x1df989['model']['createSelection'](_0x1df989['model']['document']['selection']);_0x10343f['isCollapsed']&&_0x1df989['model']['modifySelection'](_0x10343f,{'direction':'forward','unit':_0x491934['unit']});const _0x52c93d=_0x10343f['getFirstRange'](),_0x38697a=_0x1fbd79['fromRange'](_0x52c93d);let _0x2abc97;_0x408d46(_0x491934),_0x2abc97='$graveyard'==_0x38697a['root']['rootName']?_0x1df989['model']['createRange'](_0x52c93d['start']):_0x1df989['model']['createRange'](_0x38697a['start'],_0x38697a['end']),_0x38697a['detach'](),_0x1df989['model']['enqueueChange'](_0x3bc15b['buffer']['batch'],_0x2c2fb6=>{_0x3bc15b['buffer']['lock'](),_0x2c2fb6['setSelection'](_0x2c2fb6['createRange'](_0x2abc97['end'])),_0x3bc15b['buffer']['unlock']();});}),_0x1df989['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x1df989,'merge'),{'priority':'high'}),_0x1df989['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x381a24,_0x57ff52,_0x3bc069)=>{_0x3bc069['options']['showSuggestionHighlights']&&_e(_0x1df989,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x381a24,_0x57ff52,_0x3bc069);},{'priority':'high'}),_0x1df989['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x30f188,_0x1dd420,_0x466fb6)=>{const _0x53c135=_0x466fb6['mapper']['markerNameToElements'](_0x1dd420['markerName']);if(_0x53c135){for(const _0x453344 of _0x53c135)_0x453344['is']('uiElement')&&(_0x466fb6['mapper']['unbindElementFromMarkerName'](_0x453344,_0x1dd420['markerName']),_0x466fb6['writer']['remove'](_0x453344));}},{'priority':'high'});}}class K extends _0x101975{['afterInit'](){const _0x3e52a4=this['editor'];if(!_0x3e52a4['plugins']['has']('ListEditing'))return;const _0x2f9ef0=_0x3e52a4['locale'],_0x23ee47=_0x3e52a4['plugins']['get']('TrackChangesEditing'),_0x54f566=_0x3e52a4['plugins']['has']('TodoListEditing'),_0x204301=!!_0x3e52a4['config']['get']('list.multiBlock');function _0xad8505(_0x5c19cb){return{'type':'format','content':''+o(_0x2f9ef0,'*Set\x20format:*\x20%0',_0x5c19cb)};}function _0x335a3a(_0x579569){return{'type':'format','content':''+o(_0x2f9ef0,'*Remove\x20format:*\x20%0',_0x579569)};}_0x23ee47['enableDefaultAttributesIntegration']('numberedList'),_0x23ee47['enableDefaultAttributesIntegration']('bulletedList'),_0x23ee47['enableDefaultAttributesIntegration']('customNumberedList'),_0x23ee47['enableDefaultAttributesIntegration']('customBulletedList'),_0x23ee47['enableDefaultAttributesIntegration']('indentList'),_0x23ee47['enableDefaultAttributesIntegration']('outdentList'),_0x23ee47['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x23ee47['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x23ee47['registerBlockAttribute']('listItemId'),_0x23ee47['registerBlockAttribute']('listType'),_0x23ee47['registerBlockAttribute']('listIndent'),_0x204301&&(_0x23ee47['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x23ee47['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x54f566&&(_0x23ee47['enableDefaultAttributesIntegration']('todoList'),_0x23ee47['enableDefaultAttributesIntegration']('checkTodoList'),_0x23ee47['registerBlockAttribute']('todoListChecked'),_0x23ee47['descriptionFactory']['registerDescriptionCallback'](_0x95d905=>{const {data:_0x5dafd6}=_0x95d905;if(_0x5dafd6&&'todoListChecked'==_0x5dafd6['key'])return{'type':'format','content':_0x5dafd6['newValue']?o(_0x2f9ef0,'*Check\x20item*'):o(_0x2f9ef0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4977e0=>{if(_0x4977e0['batch']['isUndo'])return!0x1;let _0x173064=!0x1;const _0x2fb60e=_0x23ee47['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x25af22=>'todoListChecked'===_0x23ee47['_getAttributeKey'](_0x25af22));for(const _0x6807b4 of _0x2fb60e){'todo'!=_0x6807b4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x23ee47['_findSuggestions'](_0x6807b4['getFirstRange'](),'attribute')['find'](_0x1ffe26=>'listType'===_0x23ee47['_getAttributeKey'](_0x1ffe26['suggestion']))||(_0x4977e0['removeMarker'](_0x6807b4['getFirstMarker']()),_0x173064=!0x0));}return _0x173064;})),_0x23ee47['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2f9ef0,'FORMAT_INDENT'));const _0x2aab24={'type':'format','content':''};_0x23ee47['descriptionFactory']['registerDescriptionCallback'](_0x2adabf=>{const {data:_0x53b2ea}=_0x2adabf;if(!_0x53b2ea||'listType'!=_0x53b2ea['key'])return;let _0x57328b=_0x2adabf['head'];for(;_0x57328b;){if(_0x57328b['data']&&(('listStyle'==_0x57328b['data']['key']||'listMarkerStyle'==_0x57328b['data']['key'])&&(_0x57328b['data']['newValue']&&'default'!=_0x57328b['data']['newValue']||'default'!=_0x57328b['data']['oldValue']&&!_0x53b2ea['newValue'])||!_0x204301&&_0x57328b['data']['key']==m))return _0x2aab24;_0x57328b=_0x57328b['next'];}if(null==_0x53b2ea['newValue'])switch(_0x53b2ea['oldValue']){case'bulleted':return _0x335a3a(o(_0x2f9ef0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x335a3a(o(_0x2f9ef0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x335a3a(o(_0x2f9ef0,'ELEMENT_TODO_LIST'));}switch(_0x53b2ea['newValue']){case'bulleted':return _0xad8505(o(_0x2f9ef0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xad8505(o(_0x2f9ef0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xad8505(o(_0x2f9ef0,'ELEMENT_TODO_LIST'));}}),_0x23ee47['descriptionFactory']['registerDescriptionCallback'](_0xafb93d=>{const {data:_0x55e546}=_0xafb93d;if(_0x55e546&&'listIndent'==_0x55e546['key'])return null==_0x55e546['newValue']||null==_0x55e546['oldValue']&&0x0==_0x55e546['newValue']?_0x2aab24:void 0x0;}),_0x23ee47['descriptionFactory']['registerDescriptionCallback'](_0x15af27=>{if('attribute'!=_0x15af27['type'])return;const {data:_0x572854}=_0x15af27;if(!_0x572854||'listItemId'!=_0x572854['key'])return;const _0x41c9b7=le(_0x15af27);return'newValue'==_0x41c9b7?{'type':'format','content':o(_0x2f9ef0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x41c9b7?{'type':'format','content':o(_0x2f9ef0,'*Split:*\x20list\x20item')}:_0x2aab24;}),_0x3e52a4['model']['document']['registerPostFixer'](_0x497b19=>this['listItemIdFixer'](_0x497b19)),_0x3e52a4['model']['document']['registerPostFixer'](_0x501a18=>this['noTrackChangesFixer'](_0x501a18)),_0x3e52a4['model']['document']['on']('change:data',(_0x34618b,_0x9f7309)=>{if(_0x9f7309['isUndo']||!_0x9f7309['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2dbe49){if(_0x2dbe49['batch']['isUndo']||!_0x2dbe49['batch']['isLocal'])return!0x1;let _0x2521ff=!0x1;const _0x2d0759=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5cb464=>_0x5cb464['data']&&'listItemId'==_0x5cb464['data']['key'])['filter'](_0xba3898=>_0xba3898['data']['newValue']&&_0xba3898['data']['oldValue']);for(const _0x2cf8de of _0x2d0759)le(_0x2cf8de)||(_0x2dbe49['removeMarker'](_0x2cf8de['getFirstMarker']()),_0x2521ff=!0x0);return _0x2521ff;}['noTrackChangesFixer'](_0x1e0d1b){if(_0x1e0d1b['batch']['isUndo']||!_0x1e0d1b['batch']['isLocal'])return!0x1;const _0x1ca34a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1ca34a['trackChangesCommand']['value'])return!0x1;let _0x21842a=!0x1;const _0x2de501=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1195c7=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5d460a=>'attribute'==_0x5d460a['type'])['filter'](_0x7bec63=>_0x2de501['includes'](_0x7bec63['attributeKey']));if(0x0==_0x1195c7['length'])return _0x21842a;for(const _0x5bd0f9 of _0x1195c7){const _0x5af3c6=_0x1ca34a['_findSuggestions'](_0x5bd0f9['range'],'attribute')['filter'](_0x129ebb=>!_0x129ebb['meta']['isNextTo'])['map'](_0x5cb676=>_0x5cb676['suggestion'])['filter'](_0x4a6acc=>{const _0x4957ae=_0x1ca34a['_getAttributeKey'](_0x4a6acc);return _0x2de501['includes'](_0x4957ae);});if(_0x5af3c6['length']){for(const _0x589aed of _0x5af3c6)_0x1e0d1b['removeMarker'](_0x589aed['getFirstMarker']());_0x21842a=!0x0;}}return _0x21842a;}['assureChains'](){const _0x2cb85d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x329d22=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5cee23;const _0x3aaef8=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x540391=>{if(_0x540391['data']['oldRange']||!_0x540391['data']['newRange'])return null;if(!_0x540391['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x114997}=_0x2cb85d['_splitMarkerName'](_0x540391['name']);if(!_0x2cb85d['hasSuggestion'](_0x114997))return null;const _0x417c24=_0x2cb85d['getSuggestion'](_0x114997);return _0x329d22['includes'](_0x417c24['data']['key']);})['map'](_0x4a32f0=>{const {id:_0x3fb11e}=_0x2cb85d['_splitMarkerName'](_0x4a32f0['name']),_0x39e931=_0x2cb85d['getSuggestion'](_0x3fb11e);return _0x5cee23=_0x39e931['attributes']['groupId'],_0x39e931['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3aaef8['size'])return;const _0x662dcf=_0x2cb85d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x536555=>'attribute'==_0x536555['type']&&_0x536555['data']&&_0x329d22['includes'](_0x536555['data']['key'])&&_0x536555['attributes']['groupId']!=_0x5cee23)['map'](_0x3435ea=>({'listItem':_0x3435ea['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3435ea['attributes']['groupId']})),_0x3baef8=new Set();for(const {groupId:_0x44fa3f,listItem:_0x3672b7}of _0x662dcf)_0x3aaef8['has'](_0x3672b7)&&_0x3baef8['add'](_0x44fa3f);for(const _0x1aa0d3 of _0x2cb85d['getSuggestions']())_0x3baef8['has'](_0x1aa0d3['attributes']['groupId'])&&_0x1aa0d3['setAttribute']('groupId',_0x5cee23);}['_supportLegacySuggestions'](){const _0x200925=this['editor'],_0x34a6f3=_0x200925['locale'],_0x15b4db=_0x200925['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x15b4db['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1c1d59,_0x596a0d){const _0x45b4cd=[];for(let _0x4ae350 of _0x1c1d59)_0x4ae350['start']['nodeAfter']===_0x4ae350['end']['parent']&&(_0x4ae350=_0x200925['model']['createRange'](_0x200925['model']['createPositionAt'](_0x4ae350['start']['nodeAfter'],0x0))),_0x45b4cd['push'](_0x4ae350);_0x200925['model']['change'](_0xff9ca5=>{const _0xc5ef8e=_0x200925['model']['document']['selection'],_0x14bfc4=Array['from'](_0xc5ef8e['getRanges']())['map'](_0x5d1388=>_0x1fbd79['fromRange'](_0x5d1388));_0xff9ca5['setSelection'](_0x45b4cd),_0x200925['commands']['get'](_0x596a0d['commandName'])['refresh'](),_0x596a0d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x200925['execute'](_0x596a0d['commandName'],..._0x596a0d['commandParams']),_0xff9ca5['setSelection'](_0x14bfc4);for(const _0x5cde58 of _0x14bfc4)_0x5cde58['detach']();});}),_0x15b4db['descriptionFactory']['registerElementLabel'](function(_0x96cd46){const _0x1f923d=!_0x200925['model']['schema']['isObject'](_0x96cd46),_0x274564=_0x96cd46['previousSibling'],_0x424105=_0x96cd46['nextSibling'],_0x3657a7=_0x96cd46['getAttribute']('listItemId'),_0x52a498=!_0x274564||_0x274564['getAttribute']('listItemId')!==_0x3657a7,_0x365cd8=!_0x424105||_0x424105['getAttribute']('listItemId')!==_0x3657a7;return _0x1f923d&&Boolean(_0x3657a7)&&_0x52a498&&_0x365cd8;},_0x5c2f39=>o(_0x34a6f3,'ELEMENT_LIST_ITEM',_0x5c2f39));}['_registerLegacyDescription'](){const _0x208d1b=this['editor'],_0x58ede4=_0x208d1b['locale'];function _0xfbc8fb(_0x3613d1){const _0x16e9ac=_0x208d1b['commands']['get']('bulletedList')['value'],_0x46b5b3=_0x208d1b['commands']['get']('numberedList')['value'];return'numberedList'===_0x3613d1?_0x16e9ac:_0x46b5b3;}_0x208d1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x43518c){if('formatBlock'!=_0x43518c['type'])return;const {data:_0xd4f2c5}=_0x43518c;if(!_0xd4f2c5)return;let _0x426082,_0x214b02,_0x414da5,_0x55e168;switch(_0xd4f2c5['commandName']){case'bulletedList':_0x414da5=_0xd4f2c5['commandParams'][0x0]['forceValue'],_0x55e168=_0xfbc8fb(_0xd4f2c5['commandName']),_0x426082=_0x414da5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x55e168&&_0x208d1b['config']['get']('list.multiBlock')||(_0x426082='*Change\x20to:*\x20%0'),_0x214b02={'type':'format','content':o(_0x58ede4,_0x426082,o(_0x58ede4,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x414da5=_0xd4f2c5['commandParams'][0x0]['forceValue'],_0x55e168=_0xfbc8fb(_0xd4f2c5['commandName']),_0x426082=_0x414da5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x55e168&&_0x208d1b['config']['get']('list.multiBlock')||(_0x426082='*Change\x20to:*\x20%0'),_0x214b02={'type':'format','content':o(_0x58ede4,_0x426082,o(_0x58ede4,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x426082='*Indent:*\x20%0',_0x214b02={'type':'format','content':o(_0x58ede4,_0x426082,o(_0x58ede4,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x426082=function(_0x2d7cbd){const _0x1bea07=_0x2d7cbd['getFirstRange']();let _0x1d963b=_0x1bea07['start']['nodeAfter'];for(;_0x1d963b&&_0x1bea07['containsItem'](_0x1d963b);){if(_0x1d963b['getAttribute']('listIndent')>0x0)return!0x1;_0x1d963b=_0x1d963b['nextSibling'];}return!0x0;}(_0x43518c)?o(_0x58ede4,'*Format:*\x20remove\x20from\x20%0',o(_0x58ede4,function(_0x2639dd){return'ELEMENT_'+_0x2639dd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x43518c))):o(_0x58ede4,'*Outdent:*\x20%0',o(_0x58ede4,'ELEMENT_LIST_ITEM')),_0x214b02={'type':'format','content':_0x426082};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xd4f2c5['multipleBlocks']&&(_0x426082='*Merge:*\x20%0',_0x214b02={'type':'deletion','content':o(_0x58ede4,_0x426082,o(_0x58ede4,'ELEMENT_LIST_ITEM'))});}return _0x214b02;});}}function le(_0xd01254){let _0x42fc40=_0xd01254['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x42fc40;){const _0x35329d=_0x42fc40['getAttribute']('listItemId');if(!_0x35329d)return!0x1;if(_0x35329d==_0xd01254['data']['newValue'])return'newValue';if(_0x35329d==_0xd01254['data']['oldValue'])return'oldValue';_0x42fc40=_0x42fc40['previousSibling'];}return!0x1;}class pe extends _0x101975{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1f16fa=this['editor']['config']['get']('list.properties'),_0x2a2562=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f16fa['styles']&&(_0x2a2562['enableDefaultAttributesIntegration']('listStyle'),_0x2a2562['registerBlockAttribute']('listStyle')),_0x1f16fa['reversed']&&(_0x2a2562['enableDefaultAttributesIntegration']('listReversed'),_0x2a2562['registerBlockAttribute']('listReversed')),_0x1f16fa['startIndex']&&(_0x2a2562['enableDefaultAttributesIntegration']('listStart'),_0x2a2562['registerBlockAttribute']('listStart'));const _0x954cb={'type':'format','content':''};_0x2a2562['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x43811d=this['editor']['locale'];_0x2a2562['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x43811d,'FORMAT_LIST_REVERSED')),_0x2a2562['descriptionFactory']['registerDescriptionCallback'](_0x7ba774=>{const {data:_0x3c22e3}=_0x7ba774;if(_0x3c22e3&&'listReversed'==_0x3c22e3['key'])return null==_0x3c22e3['newValue']||0x0==_0x3c22e3['newValue']&&null==_0x3c22e3['oldValue']?_0x954cb:void 0x0;}),_0x2a2562['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x43811d,'FORMAT_LIST_START')),_0x2a2562['descriptionFactory']['registerDescriptionCallback'](_0x3feac4=>{const {data:_0x246fe8}=_0x3feac4;if(_0x246fe8&&'listStart'==_0x246fe8['key'])return null==_0x246fe8['newValue']||0x1==_0x246fe8['newValue']&&null==_0x246fe8['oldValue']?_0x954cb:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xa69e29=>{if(_0xa69e29['batch']['isUndo'])return!0x1;let _0x5e0edd=!0x1;const _0x25d874=_0x2a2562['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x37355a=>{const _0x5dcbed=_0x2a2562['_getAttributeKey'](_0x37355a);return'listStart'==_0x5dcbed||'listReversed'==_0x5dcbed;});for(const _0x4993eb of _0x25d874){const _0x4b07b0=_0x4993eb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4b07b0||'customNumbered'==_0x4b07b0)continue;_0x2a2562['_findSuggestions'](_0x4993eb['getFirstRange'](),'attribute')['find'](_0x4ddba3=>'listType'==_0x2a2562['_getAttributeKey'](_0x4ddba3['suggestion']))||(_0xa69e29['removeMarker'](_0x4993eb['getFirstMarker']()),_0x5e0edd=!0x0);}return _0x5e0edd;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1d6579){const _0x5515f3=this['editor']['locale'],{data:_0x455382}=_0x1d6579,_0x34a04d={'type':'format','content':''};if(!_0x455382||'listStyle'!=_0x455382['key'])return;if(!_0x455382['oldValue'])return'default'==_0x455382['newValue']?_0x34a04d:{'type':'format','content':''+o(_0x5515f3,'*Set\x20format:*\x20%0',o(_0x5515f3,this['_getTranslationKeyForListStyle'](_0x455382['newValue'])))};if(!_0x455382['newValue']){if('default'==_0x455382['oldValue'])return _0x34a04d;let _0x3bcfef=_0x1d6579['head'];for(;_0x3bcfef;){if(_0x3bcfef['data']&&'listType'==_0x3bcfef['data']['key']&&_0x3bcfef['data']['newValue'])return _0x34a04d;_0x3bcfef=_0x3bcfef['next'];}return{'type':'format','content':''+o(_0x5515f3,'*Remove\x20format:*\x20%0',o(_0x5515f3,this['_getTranslationKeyForListStyle'](_0x455382['oldValue'])))};}if('default'!=_0x455382['newValue'])return{'type':'format','content':''+o(_0x5515f3,'*Set\x20format:*\x20%0',o(_0x5515f3,this['_getTranslationKeyForListStyle'](_0x455382['newValue'])))};let _0xd401f4=_0x1d6579['head'];for(;_0xd401f4;){if(_0xd401f4['data']&&'listType'==_0xd401f4['data']['key']&&_0xd401f4['data']['newValue']&&_0xd401f4['data']['oldValue'])return _0x34a04d;_0xd401f4=_0xd401f4['next'];}return{'type':'format','content':o(_0x5515f3,'*Set\x20format:*\x20%0',o(_0x5515f3,'ELEMENT_'+_0x1d6579['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x15171a=this['editor'],_0x5429fd=_0x15171a['locale'];_0x15171a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x513cef=>{if('formatBlock'!=_0x513cef['type'])return;const {data:_0x12c16c}=_0x513cef;if(!_0x12c16c)return;let _0x287bef,_0x4790c1;switch(_0x12c16c['commandName']){case'listStyle':_0x287bef='*Change\x20to:*\x20%0',_0x4790c1={'type':'format','content':o(_0x5429fd,_0x287bef,o(_0x5429fd,this['_getTranslationKeyForListStyle'](_0x12c16c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x287bef=_0x12c16c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4790c1={'type':'format','content':o(_0x5429fd,_0x287bef)};break;case'listStart':_0x287bef='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4790c1={'type':'format','content':o(_0x5429fd,_0x287bef,_0x12c16c['commandParams'][0x0]['startIndex'])};}return _0x4790c1;});}['_getTranslationKeyForListStyle'](_0x53fd69){return'ELEMENT_'+function(_0x45d372){if(ye['includes'](_0x45d372))return'bulleted';if(Se['includes'](_0x45d372))return'numbered';return null;}(_0x53fd69)['toUpperCase']()+'_LIST_'+_0x53fd69['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x101975{static get['requires'](){return[_0x55e85b];}['init'](){const _0x204c18=this['editor'],_0x33d748=_0x204c18['plugins']['get']('TrackChangesEditing'),_0x47c1b5=_0x204c18['commands']['get']('enter');_0x33d748['enableCommand']('enter',()=>{_0x204c18['model']['change'](_0xe7572e=>{const _0x5ac263=_0x204c18['model']['document']['selection'],_0xe358f5=_0x5ac263['getFirstPosition'](),_0x3aeb12=_0x1fbd79['fromRange'](_0x5ac263['getFirstRange']());if(_0x47c1b5['enterBlock'](_0xe7572e)){const _0x7f2119=_0x204c18['model']['createPositionAt'](_0xe358f5['parent']['nextSibling'],0x0),_0x557757=_0xe7572e['createRange'](_0xe358f5,_0x7f2119);_0x33d748['markInsertion'](_0x557757);}else _0xe7572e['setSelection'](_0xe7572e['createRange'](_0x3aeb12['end']));_0x3aeb12['detach'](),_0x47c1b5['fire']('afterExecute',{'writer':_0xe7572e});});}),_0x204c18['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x204c18,'split'),{'priority':'high'}),_0x204c18['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x20a3b0,_0x34539f,_0x3b019e)=>{const _0x5f2e75=_0x3b019e['mapper']['markerNameToElements'](_0x34539f['markerName']);if(_0x5f2e75){for(const _0x29323d of _0x5f2e75)_0x29323d['hasClass']('ck-suggestion-marker-split')&&(_0x3b019e['mapper']['unbindElementFromMarkerName'](_0x29323d,_0x34539f['markerName']),_0x3b019e['writer']['remove'](_0x29323d));}},{'priority':'high'}),_0x204c18['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x57a76e,_0x51611d,_0x259267)=>{_0x259267['options']['showSuggestionHighlights']&&_e(_0x204c18,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x57a76e,_0x51611d,_0x259267);},{'priority':'high'});}}class X extends _0x101975{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xdefed8=this['editor']['plugins']['get']('TrackChangesEditing');_0xdefed8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xdefed8['enableCommand']('findNext'),_0xdefed8['enableCommand']('findPrevious'),_0xdefed8['enableCommand']('replace'),_0xdefed8['enableCommand']('replaceAll');}['handleFindCommand'](_0x4d02f3,_0x239e6c,_0xceac61={}){const _0x119163=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4d02f3(_0x2f258a=>{let _0x48b950=('string'==typeof _0x239e6c?_0x119163['findByTextCallback'](_0x239e6c,_0xceac61):_0x239e6c)(_0x2f258a);Array['isArray'](_0x48b950)&&(_0x48b950={'results':_0x48b950,'searchText':'string'==typeof _0x239e6c?_0x239e6c:''});const _0x2aa11c=_0x48b950['results']['filter'](_0x3cb5e6=>!0x1===this['_isInDeletionRange'](_0x3cb5e6,_0x2f258a['item']));return{..._0x48b950,'results':_0x2aa11c};},_0xceac61);}['_isInDeletionRange'](_0x507f0a,_0x589896){const _0x31d5e3=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x589896,_0x507f0a['start']),this['editor']['model']['createPositionAt'](_0x589896,_0x507f0a['end']));for(const _0x2cf110 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x31d5e3['getIntersection'](_0x2cf110['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x101975{['afterInit'](){const _0x544f09=this['editor']['locale'],_0x1c867c=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1e41c5,commandName:_0x1abce9}of ro)this['editor']['plugins']['has'](_0x1e41c5)&&(_0x1c867c['enableDefaultAttributesIntegration'](_0x1abce9),_0x1c867c['registerInlineAttribute'](_0x1abce9));_0x1c867c['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x544f09,'FORMAT_FONT_SIZE')),_0x1c867c['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x544f09,'FORMAT_FONT_FAMILY')),_0x1c867c['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x544f09,'FORMAT_FONT_COLOR')),_0x1c867c['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x544f09,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x200da=this['editor'],_0x3c2136=_0x200da['locale'];_0x200da['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2452da=>{const _0x49bb3c=_0x3c2136['t'];if('formatInline'!=_0x2452da['type'])return;const {data:_0x8e260a}=_0x2452da;if(null!=_0x8e260a){if('fontSize'==_0x8e260a['commandName']){const _0x327ac9=_0x8e260a['commandParams'][0x0]['value'];if(_0x327ac9){const _0x523c9d=_0x49bb3c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x52e6a0=>_0x52e6a0['model']==_0x327ac9)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3c2136,'*Set\x20font\x20size:*\x20%0',_0x523c9d)};}return{'type':'format','content':o(_0x3c2136,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x8e260a['commandName']){const _0x3bb9af=_0x8e260a['commandParams'][0x0]['value'];return _0x3bb9af?{'type':'format','content':o(_0x3c2136,'*Set\x20font\x20family:*\x20%0',_0x3bb9af)}:{'type':'format','content':o(_0x3c2136,'*Reset\x20font\x20family*')};}if('fontColor'==_0x8e260a['commandName']){const _0x6e7f99=_0x8e260a['commandParams'][0x0]['value'];if(_0x6e7f99){const _0x31e3dc=_0x4f57a6(this['editor']['config']['get']('fontColor.colors'))['find'](_0xb1f62=>_0xb1f62['model']==_0x6e7f99);let _0x2180ad=_0x6e7f99,_0x26eae4='';return _0x31e3dc&&(_0x2180ad=_0x31e3dc['label'],_0x26eae4=_0x49bb3c(_0x2180ad)['toLowerCase']()),{'type':'format','content':o(_0x3c2136,'*Set\x20font\x20color:*\x20%0',_0x26eae4)['trim'](),'color':{'value':_0x6e7f99,'title':_0x26eae4||_0x2180ad}};}return{'type':'format','content':o(_0x3c2136,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x8e260a['commandName']){const _0x47e4ce=_0x8e260a['commandParams'][0x0]['value'];if(_0x47e4ce){const _0x467bfc=_0x4f57a6(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x28cd96=>_0x28cd96['model']==_0x47e4ce);let _0x45c53b=_0x47e4ce,_0x784374='';return _0x467bfc&&(_0x45c53b=_0x467bfc['label'],_0x784374=_0x49bb3c(_0x45c53b)['toLowerCase']()),{'type':'format','content':o(_0x3c2136,'*Set\x20font\x20background\x20color:*\x20%0',_0x784374)['trim'](),'color':{'value':_0x47e4ce,'title':_0x784374||_0x45c53b}};}return{'type':'format','content':o(_0x3c2136,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x101975{['afterInit'](){const _0x80bd54=this['editor'],_0x3a30e5=_0x80bd54['plugins']['get']('TrackChangesEditing'),_0x134435=_0x80bd54['commands']['get']('copyFormat'),_0x28018f=_0x80bd54['commands']['get']('pasteFormat');_0x134435&&_0x28018f&&(_0x3a30e5['enableDefaultAttributesIntegration']('pasteFormat'),_0x3a30e5['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x413ef9=this['editor'],_0x68db81=_0x413ef9['locale'];_0x413ef9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c37a8=>{if('formatBlock'!=_0x4c37a8['type']&&'formatInline'!=_0x4c37a8['type'])return;const {data:_0x120e53}=_0x4c37a8;if(_0x120e53&&'pasteFormat'===_0x120e53['commandName']){const _0x33f998=[],_0x1023a2=_0x120e53['commandParams'][0x0];for(const [_0x489631,_0x2edec0]of Object['entries'](_0x1023a2))_0x33f998['push'](so(_0x413ef9,_0x489631,_0x2edec0));return _0x33f998['length']?{'type':'format','content':o(_0x68db81,'*Set\x20format\x20to:*\x20%0',_0x33f998['join'](',\x20'))}:{'type':'format','content':o(_0x68db81,'*Remove\x20all\x20formatting*')};}});}}function so(_0x35503d,_0x43ce8c,_0x2d8d15){const _0x3bac6f=_0x35503d['locale']['t'],_0x2c3695=_0x43ce8c['split'](/(?=[A-Z])/)['join']('\x20'),_0x276621=_0x3bac6f(_0x2c3695['charAt'](0x0)['toUpperCase']()+_0x2c3695['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2d8d15)return _0x276621;if('fontColor'===_0x43ce8c||'fontBackgroundColor'===_0x43ce8c){const _0x2e119a=_0x4f57a6(_0x35503d['config']['get']('fontColor.colors'))['find'](_0x11354d=>_0x11354d['model']==_0x2d8d15);return _0x276621+'\x20('+(_0x2e119a?_0x3bac6f(_0x2e119a['label'])['toLowerCase']():_0x2d8d15)+')';}if('fontSize'===_0x43ce8c&&isNaN(parseFloat(_0x2d8d15))){const _0x304b35=_0x35503d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x35503d['config']['get']('fontSize.options'))['find'](_0x895b46=>_0x895b46['model']==_0x2d8d15);return _0x276621+'\x20('+(_0x304b35?_0x3bac6f(_0x304b35['title'])['toLowerCase']():_0x2d8d15)+')';}return _0x276621+'\x20('+_0x2d8d15+')';}class tt extends _0x101975{['_headingOptions'];['afterInit'](){const _0x26a416=this['editor'];if(!_0x26a416['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x26a416['config']['get']('heading.options');const _0x110444=_0x26a416['locale'],_0x1dbcef=_0x26a416['plugins']['get']('TrackChangesEditing');_0x1dbcef['enableDefaultAttributesIntegration']('heading');for(const _0x48a8c0 of this['_headingOptions'])'paragraph'!=_0x48a8c0['model']&&_0x1dbcef['descriptionFactory']['registerElementLabel'](_0x48a8c0['model'],_0x22db27=>{const _0x32de10=this['_getHeadingLevel'](_0x48a8c0['model']);return null!==_0x32de10?_0x546c9e(_0x22db27,_0x32de10):_0x2e525f(_0x22db27,_0x48a8c0['title']);});function _0x546c9e(_0xe4cea9,_0x2b99ae){return o(_0x110444,'ELEMENT_HEADING',[_0xe4cea9,_0x2b99ae]);}function _0x2e525f(_0x42cf85,_0x258ac6){return o(_0x110444,'ELEMENT_HEADING_CUSTOM',[_0x42cf85,_0x258ac6]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f8e0b=this['editor'],_0x168f6f=_0x4f8e0b['locale'];function _0x4a84e6(_0x3bb3f7,_0x2be011){return o(_0x168f6f,'ELEMENT_HEADING_CUSTOM',[_0x3bb3f7,_0x2be011]);}_0x4f8e0b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f04c7=>{if('formatBlock'!=_0x5f04c7['type'])return;const {data:_0x52f2ff}=_0x5f04c7;if(_0x52f2ff&&'heading'==_0x52f2ff['commandName']){const _0x32cf0b=_0x52f2ff['commandParams'][0x0]['value'],_0x592afb=this['_getHeadingLevel'](_0x32cf0b);if(null!==_0x592afb)return{'type':'format','content':o(_0x168f6f,'*Change\x20to:*\x20%0',(_0x1d7f8d=0x1,_0x922b51=_0x592afb,o(_0x168f6f,'ELEMENT_HEADING',[_0x1d7f8d,_0x922b51])))};const _0x5e0ff2=this['_headingOptions']['find'](_0x12ad44=>_0x12ad44['model']===_0x32cf0b)['title'];return{'type':'format','content':o(_0x168f6f,'*Change\x20to:*\x20%0',_0x4a84e6(0x1,_0x5e0ff2))};}var _0x1d7f8d,_0x922b51;});}['_getHeadingLevel'](_0x4b00bd){const _0x3e8a05=_0x4b00bd['match'](/^heading(\d+)/);if(_0x3e8a05)return _0x3e8a05[0x1];const _0x383204=this['_headingOptions']?.['find'](_0x575aca=>_0x575aca['model']==_0x4b00bd);if(_0x383204&&_0x383204['view']){const _0x509ba7=_0x383204['view'],_0x599a6b=(_0x509ba7['name']??_0x509ba7)['match'](/^h(\d+)/);if(_0x599a6b)return _0x599a6b[0x1];}return null;}}class et extends _0x101975{['afterInit'](){const _0x1d9ada=this['editor'];if(!_0x1d9ada['plugins']['has']('HighlightEditing'))return;const _0x374aec=_0x1d9ada['plugins']['get']('TrackChangesEditing'),_0x4ec9a1=_0x1d9ada['locale'];_0x374aec['enableDefaultAttributesIntegration']('highlight'),_0x374aec['registerInlineAttribute']('highlight'),_0x374aec['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4ec9a1,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x442365=this['editor'],_0x11e32b=_0x442365['locale'];_0x442365['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47fae9=>{if('formatInline'!=_0x47fae9['type'])return;const {data:_0x4b9d54}=_0x47fae9;if(_0x4b9d54&&'highlight'==_0x4b9d54['commandName']){const _0x149799=_0x11e32b['t'],_0x156960=_0x4b9d54['commandParams'][0x0]['value'];if(_0x156960){const _0x10bf24=_0x442365['config']['get']('highlight.options')['find'](_0x29e95b=>_0x29e95b['model']==_0x156960),_0x5818da=_0x149799(_0x10bf24['title'])['toLowerCase']();return{'type':'format','content':o(_0x11e32b,'*Set\x20highlight:*\x20%0',_0x5818da),'color':{'value':_0x10bf24['color'],'title':_0x10bf24['title']}};}return{'type':'format','content':o(_0x11e32b,'*Remove\x20highlight*',o(_0x11e32b,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x101975{['afterInit'](){const _0x1b4fab=this['editor'];if(!_0x1b4fab['plugins']['has']('HorizontalLineEditing'))return;_0x1b4fab['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x573c09=_0x1b4fab['plugins']['get']('TrackChangesEditing'),_0x9255e3=_0x1b4fab['locale'];_0x573c09['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3a5136=>o(_0x9255e3,'ELEMENT_HORIZONTAL_LINE',_0x3a5136)),_0x1b4fab['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x22e734,{writer:_0x524372,options:_0xb86290})=>{if(!_0xb86290['showSuggestionHighlights'])return null;const _0x861725=_0x524372['createContainerElement']('div'),_0x4ea2c5=_0x524372['createEmptyElement']('hr');return _0x524372['addClass']('ck-horizontal-line',_0x861725),_0x524372['insert'](_0x524372['createPositionAt'](_0x861725,0x0),_0x4ea2c5),_0x861725;},'converterPriority':'high'});}}class st extends _0x101975{['afterInit'](){const _0x2ae390=this['editor'];if(!_0x2ae390['plugins']['has']('HtmlEmbed'))return;const _0x221660=_0x2ae390['plugins']['get']('TrackChangesEditing'),_0x3cff41=_0x2ae390['locale'];_0x221660['descriptionFactory']['registerElementLabel']('rawHtml',_0x18474a=>o(_0x3cff41,'ELEMENT_HTML_EMBED',_0x18474a)),_0x221660['enableDefaultAttributesIntegration']('htmlEmbed'),_0x221660['registerBlockAttribute']('value'),_0x221660['descriptionFactory']['registerDescriptionCallback'](_0x46007f=>{if('attribute'!=_0x46007f['type'])return;const {data:_0x35fb68}=_0x46007f;if(_0x35fb68&&'value'==_0x35fb68['key']&&_0x46007f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3a4b18=o(_0x3cff41,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3cff41,'*Change\x20%0\x20content*',_0x3a4b18)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3127be=this['editor'],_0x5d4509=_0x3127be['locale'];_0x3127be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x988e67=>{if('formatBlock'!=_0x988e67['type'])return;const {data:_0x118002}=_0x988e67;if(_0x118002&&'htmlEmbed'==_0x118002['commandName']){const _0x3e0c91=o(_0x5d4509,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5d4509,'*Change\x20%0\x20content*',_0x3e0c91)};}});}}class nt extends _0x101975{['afterInit'](){const _0x3b1d50=this['editor'];if(!_0x3b1d50['plugins']['has']('ImageEditing'))return;const _0x478f02=_0x3b1d50['plugins']['get']('TrackChangesEditing'),_0x4959ad=_0x3b1d50['plugins']['get']('ImageUtils'),_0x10b0cd=_0x3b1d50['locale'];_0x478f02['enableCommand']('insertImage'),_0x478f02['descriptionFactory']['registerElementLabel']('imageBlock',_0x38d05a=>o(_0x10b0cd,'ELEMENT_IMAGE',_0x38d05a)),_0x478f02['descriptionFactory']['registerElementLabel']('imageInline',_0x541f96=>o(_0x10b0cd,'ELEMENT_INLINE_IMAGE',_0x541f96)),_0x478f02['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x10b0cd,'ELEMENT_CAPTION')),_0x3b1d50['plugins']['has']('ImageUploadEditing')&&_0x478f02['enableCommand']('uploadImage'),_0x3b1d50['plugins']['has']('ImageBlockEditing')&&_0x3b1d50['plugins']['has']('ImageInlineEditing')&&(_0x478f02['enableCommand']('imageTypeInline',(_0x5b2024,_0x2a5aec)=>{const _0x30a223=_0x4959ad['getClosestSelectedImageElement'](_0x3b1d50['model']['document']['selection']);_0x3b1d50['model']['change'](()=>{_0x478f02['markBlockFormat'](_0x30a223,{'commandName':'imageTypeInline','commandParams':[_0x2a5aec]},[],'convertBlockImageToInline');});}),_0x478f02['enableCommand']('imageTypeBlock',(_0x11c9df,_0x2259d1)=>{_0x3b1d50['model']['change'](_0x25ebc7=>{let _0x738e6c=_0x4959ad['getClosestSelectedImageElement'](_0x3b1d50['model']['document']['selection']),_0x4ddef0=_0x25ebc7['createRangeOn'](_0x738e6c);const _0x566b27=_0x1b2be3['fromPosition'](_0x4ddef0['start'],'toPrevious'),_0x3bc6fe=_0x1b2be3['fromPosition'](_0x4ddef0['end'],'toNext');_0x478f02['forceDefaultExecution'](()=>_0x11c9df(_0x2259d1)),_0x738e6c=_0x4959ad['getClosestSelectedImageElement'](_0x3b1d50['model']['document']['selection']),_0x4ddef0=_0x25ebc7['createRangeOn'](_0x738e6c);const _0x3e8176=_0x25ebc7['createRange'](_0x566b27,_0x3bc6fe);_0x566b27['detach'](),_0x3bc6fe['detach'](),_0x478f02['markBlockFormat'](_0x738e6c,{'commandName':'imageTypeInline','commandParams':[_0x2259d1]},[],'convertInlineImageToBlock'),_0x3e8176['start']['isBefore'](_0x4ddef0['start'])&&_0x478f02['markInsertion'](_0x25ebc7['createRange'](_0x3e8176['start'],_0x4ddef0['start']),'convertInlineImageToBlock'),_0x4ddef0['end']['isBefore'](_0x3e8176['end'])&&_0x478f02['markInsertion'](_0x25ebc7['createRange'](_0x4ddef0['end'],_0x3e8176['end']),'convertInlineImageToBlock');});}),_0x478f02['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x478f02['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x478f02['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x478f02['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x478f02['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x478f02['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x233444])=>{const _0x31eeb1=_0x478f02['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5d3057=_0x233444['start'],_0x3f9603=_0x233444['end'];const _0x1ebc79=_0x3b1d50['model']['schema']['getNearestSelectionRange'](_0x5d3057,'backward'),_0x41e55f=_0x3b1d50['model']['schema']['getNearestSelectionRange'](_0x3f9603,'forward');_0x1ebc79['isCollapsed']&&(_0x5d3057=_0x1ebc79['start']),_0x41e55f['isCollapsed']&&(_0x3f9603=_0x41e55f['end']),_0x31eeb1([_0x3b1d50['model']['createRange'](_0x5d3057,_0x3f9603)]);}),_0x478f02['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x48184a),_0x478f02['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x48184a)),_0x3b1d50['plugins']['has']('ImageCaptionEditing')&&(_0x478f02['enableCommand']('toggleImageCaption',(_0x40da7b,_0x2e8a19)=>{const _0x3565b9=_0x3b1d50['plugins']['get']('ImageCaptionUtils');let _0x325078=_0x4959ad['getClosestSelectedImageElement'](_0x3b1d50['model']['document']['selection']),_0x68de84=_0x3565b9['getCaptionFromImageModelElement'](_0x325078);_0x3b1d50['model']['change'](()=>{if(_0x68de84)return void _0x478f02['markDeletion'](_0x3b1d50['model']['createRangeOn'](_0x68de84));const _0xf4e3e2=_0x4959ad['isBlockImage'](_0x325078);_0x40da7b(_0x2e8a19),_0x325078=_0x4959ad['getClosestSelectedImageElement'](_0x3b1d50['model']['document']['selection']),_0x68de84=_0x3565b9['getCaptionFromImageModelElement'](_0x325078),_0x478f02['markInsertion'](_0x3b1d50['model']['createRangeOn'](_0x68de84),_0xf4e3e2?null:'imageCaption');});}),_0x478f02['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x48184a));const _0x23056d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x265f73(_0x1d21af,_0x494328){const _0x141701=_0x23056d['findIndex'](({type:_0x50adc2,subType:_0x248259})=>_0x1d21af['type']==_0x50adc2&&_0x1d21af['subType']==_0x248259),_0x5d6e8f=_0x23056d['findIndex'](({type:_0x1d6c7c,subType:_0x2649c4})=>_0x494328['type']==_0x1d6c7c&&_0x494328['subType']==_0x2649c4);if(_0x141701<0x0||_0x5d6e8f<0x0)return!0x1;const _0x4642f7=_0x1d21af['getFirstRange'](),_0xf0d261=_0x494328['getFirstRange']();if((0x0==_0x141701||0x1==_0x141701)&&0x2==_0x5d6e8f&&_0x4642f7['isIntersecting'](_0xf0d261))return!0x0;if(0x2==_0x141701&&0x3==_0x5d6e8f){const _0x49f9aa=_0x478f02['_findSuggestions'](_0x4642f7,'insertion')['filter'](({suggestion:_0x264552,meta:_0x3e1d1d})=>_0x3e1d1d['isOwn']&&'convertInlineImageToBlock'==_0x264552['subType']);if(_0x49f9aa['length']>0x1&&_0xf0d261['end']['isEqual'](_0x4642f7['start']))return!0x0;if(0x1==_0x49f9aa['length']&&(_0x4642f7['start']['isEqual'](_0xf0d261['end'])||_0x4642f7['end']['isEqual'](_0xf0d261['start'])))return!0x0;}if(0x3==_0x141701&&0x3==_0x5d6e8f&&_0x4642f7['start']['isBefore'](_0xf0d261['start'])){const _0x2d71c2=_0x4642f7['end']['nodeAfter'],_0x3b2ad2=_0xf0d261['start']['nodeBefore'];return _0x4959ad['isBlockImage'](_0x2d71c2)&&_0x2d71c2===_0x3b2ad2;}return!0x1;}function _0x48184a(_0x1e9002,_0x4b8c2a){return _0x265f73(_0x1e9002,_0x4b8c2a)?[_0x1e9002,_0x4b8c2a]:_0x265f73(_0x4b8c2a,_0x1e9002)?[_0x4b8c2a,_0x1e9002]:null;}_0x3b1d50['plugins']['has']('ImageResize')&&(_0x478f02['enableDefaultAttributesIntegration']('resizeImage'),_0x478f02['registerBlockAttribute']('resizedWidth'),_0x478f02['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x10b0cd,'FORMAT_IMAGE_SIZE'))),_0x3b1d50['plugins']['has']('ImageTextAlternativeEditing')&&(_0x478f02['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x478f02['registerBlockAttribute']('alt')),_0x478f02['descriptionFactory']['registerDescriptionCallback'](_0x440fd8=>{if(!!_0x23056d['find'](({type:_0x3dbe8a,subType:_0x32cbe9})=>_0x440fd8['type']==_0x3dbe8a&&_0x440fd8['subType']==_0x32cbe9))return _0x440fd8['previous']?{}:void 0x0;}),_0x478f02['descriptionFactory']['registerDescriptionCallback'](_0x29dfba=>{if('insertion'==_0x29dfba['type']||'deletion'==_0x29dfba['type']){const _0x5877c5=_0x29dfba['getContainedElement']();if(_0x5877c5&&_0x5877c5['is']('element','caption'))return{'type':'insertion'==_0x29dfba['type']?'addObject':'removeObject','element':_0x5877c5,'quantity':0x1};}}),_0x478f02['descriptionFactory']['registerDescriptionCallback'](_0x3289c1=>'formatBlock'==_0x3289c1['type']&&'convertInlineImageToBlock'==_0x3289c1['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3289c1['type']&&'convertBlockImageToInline'==_0x3289c1['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x478f02['descriptionFactory']['registerDescriptionCallback'](_0x12499d=>{if('attribute'!=_0x12499d['type'])return;const {data:_0x336c82}=_0x12499d;if(!_0x336c82||'alt'!=_0x336c82['key'])return;const _0x1be94c=_0x336c82['newValue'];return _0x1be94c?{'type':'format','content':o(_0x10b0cd,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1be94c+'\x22')}:{'type':'format','content':o(_0x10b0cd,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5360cf=this['editor'],_0x2fd568=_0x5360cf['locale'];_0x5360cf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x812694=>{if('formatBlock'!=_0x812694['type']&&'formatInline'!=_0x812694['type'])return;const {data:_0x39d1c6}=_0x812694;if(_0x39d1c6){if('imageTextAlternative'==_0x39d1c6['commandName']){const _0x6293a3=_0x39d1c6['commandParams'][0x0]['newValue'];return _0x6293a3?{'type':'format','content':o(_0x2fd568,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x6293a3+'\x22')}:{'type':'format','content':o(_0x2fd568,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x39d1c6['commandName']){const _0x91760e=_0x39d1c6['commandParams'][0x0]['width'];return _0x91760e?{'type':'format','content':o(_0x2fd568,'*Set\x20image\x20width:*\x20%0',_0x91760e)}:{'type':'format','content':o(_0x2fd568,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x101975{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x17a0c9=this['editor']['locale'],_0x556f13=this['editor']['plugins']['get']('TrackChangesEditing');_0x556f13['enableDefaultAttributesIntegration']('replaceImageSource'),_0x556f13['registerBlockAttribute']('src'),_0x556f13['descriptionFactory']['registerDescriptionCallback'](_0x50bb2f=>{if('attribute'!=_0x50bb2f['type'])return;const {data:_0x31f986}=_0x50bb2f;return _0x31f986&&'src'==_0x31f986['key']?_0x31f986['newValue']&&_0x31f986['oldValue']?{'type':'format','content':o(_0x17a0c9,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x30d0a4=this['editor']['plugins']['get']('TrackChangesEditing');_0x30d0a4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x30d0a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x30d0a4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x30d0a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa936cf=this['editor'],_0x14f0d5=_0xa936cf['locale'];_0xa936cf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe234e8=>{if('formatBlock'!=_0xe234e8['type']&&'formatInline'!=_0xe234e8['type'])return;const {data:_0x4e6117}=_0xe234e8;if(!_0x4e6117||'replaceImageSource'!=_0x4e6117['commandName'])return;return{'type':'format','content':o(_0x14f0d5,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x101975{['afterInit'](){const _0x1e7c28=this['editor'];if(!_0x1e7c28['plugins']['has']('ImageStyleEditing'))return;const _0x3ca80e=_0x1e7c28['plugins']['get']('TrackChangesEditing'),_0x4d2b14=_0x1e7c28['plugins']['get']('ImageUtils'),_0x1b4996={};_0x3ca80e['enableCommand']('imageStyle',(_0x52d63e,_0x7e1bd1)=>{const _0x10e7cf=_0x1e7c28['plugins']['get']('Users')['me'],_0x2d763c=_0x1e7c28['commands']['get']('imageStyle');let _0x5c2fe4=_0x4d2b14['getClosestSelectedImageElement'](_0x1e7c28['model']['document']['selection']),_0x2b9633=_0x1e7c28['model']['createRangeOn'](_0x5c2fe4),_0x4c5ed9=_0x2d763c['value'];if(_0x4c5ed9==_0x7e1bd1['value'])return;const _0x1efebe={'commandName':'imageStyle','commandParams':[_0x7e1bd1],'formatGroupId':_0x4600fb()};_0x1e7c28['model']['change'](()=>{if(_0x3ca80e['getSuggestions']()['filter'](_0xf7e9a=>_0xf7e9a['isInContent']&&_0x10e7cf==_0xf7e9a['author']&&('formatBlock'==_0xf7e9a['type']||'formatInline'==_0xf7e9a['type'])&&('imageStylePreApply'==_0xf7e9a['subType']||'imageStylePostApply'==_0xf7e9a['subType'])&&_0xf7e9a['getFirstRange']()['isEqual'](_0x2b9633))['forEach'](_0x500977=>_0x3ca80e['discardSuggestion'](_0x500977['head'])),_0x5c2fe4=_0x4d2b14['getClosestSelectedImageElement'](_0x1e7c28['model']['document']['selection']),_0x2b9633=_0x1e7c28['model']['createRangeOn'](_0x5c2fe4),_0x2d763c['refresh'](),_0x1e7c28['commands']['get']('imageTypeInline')['refresh'](),_0x1e7c28['commands']['get']('imageTypeBlock')['refresh'](),_0x4c5ed9=_0x2d763c['value'],_0x4c5ed9!=_0x7e1bd1['value'])return _0x4d2b14['isInlineImage'](_0x5c2fe4)&&_0x2d763c['shouldConvertImageType'](_0x7e1bd1['value'],_0x5c2fe4)?(_0x52d63e({..._0x7e1bd1,'setImageSizes':!0x1}),_0x5c2fe4=_0x4d2b14['getClosestSelectedImageElement'](_0x1e7c28['model']['document']['selection']),void _0x3ca80e['markBlockFormat'](_0x5c2fe4,{..._0x1efebe,'commandReversedParams':[{'value':_0x4c5ed9||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4d2b14['isBlockImage'](_0x5c2fe4)?_0x3ca80e['markBlockFormat'](_0x5c2fe4,_0x1efebe,[],'imageStylePostApply'):_0x3ca80e['markInlineFormat'](_0x2b9633,_0x1efebe,'imageStylePostApply'));});});for(const _0x4afb37 of _0x1e7c28['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1b4996[_0x4afb37['name']]=_0x4afb37['title']['toLowerCase']();_0x3ca80e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3ca80e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3ca80e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3ca80e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1f7d28])=>{_0x4d2b14['setImageNaturalSizeAttributes'](_0x1f7d28['getContainedElement']());}),_0x3ca80e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5b2a2e,_0x4640e0)=>{_0x3ca80e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5b2a2e,{'commandName':_0x4640e0['commandName'],'commandParams':_0x4640e0['commandReversedParams']});}),_0x3ca80e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1ac21d,_0x52452c){if(_0x57d3ec(_0x1ac21d,_0x52452c))return[_0x1ac21d,_0x52452c];if(_0x57d3ec(_0x52452c,_0x1ac21d))return[_0x52452c,_0x1ac21d];return null;});const _0x4d1195=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x57d3ec(_0x34aa3f,_0x388783){const _0x5d1818=_0x4d1195['findIndex'](({type:_0xf56a15,subType:_0x503cfc})=>_0x34aa3f['type']==_0xf56a15&&_0x34aa3f['subType']==_0x503cfc),_0xee58ab=_0x4d1195['findIndex'](({type:_0x11cf43,subType:_0x465ae9})=>_0x388783['type']==_0x11cf43&&_0x388783['subType']==_0x465ae9);if(_0x5d1818<0x0||_0xee58ab<0x0)return!0x1;const _0x40acbc=_0x34aa3f['getFirstRange'](),_0x2af16d=_0x388783['getFirstRange']();if((0x0==_0x5d1818||0x1==_0x5d1818)&&0x2==_0xee58ab&&_0x40acbc['isIntersecting'](_0x2af16d))return!0x0;if(0x2==_0x5d1818&&0x3==_0xee58ab){const _0x1ab78d=_0x3ca80e['_findSuggestions'](_0x40acbc,'insertion')['filter'](({suggestion:_0x4d0b8a,meta:_0x96166d})=>_0x96166d['isOwn']&&'convertInlineImageToBlock'==_0x4d0b8a['subType']);if(_0x1ab78d['length']>0x1&&_0x2af16d['end']['isEqual'](_0x40acbc['start']))return!0x0;if(0x1==_0x1ab78d['length']&&(_0x40acbc['start']['isEqual'](_0x2af16d['end'])||_0x40acbc['end']['isEqual'](_0x2af16d['start'])))return!0x0;}if(0x3==_0x5d1818&&0x3==_0xee58ab&&_0x40acbc['start']['isBefore'](_0x2af16d['start'])){const _0x4a2fd5=_0x40acbc['end']['nodeAfter'],_0x48d0ac=_0x2af16d['start']['nodeBefore'];return _0x4d2b14['isBlockImage'](_0x4a2fd5)&&_0x4a2fd5===_0x48d0ac;}return!0x1;}_0x1e7c28['model']['document']['registerPostFixer'](()=>{let _0x3cda42=!0x1;const _0x1a34e7=Array['from'](_0x1e7c28['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x48d172,data:_0x2c3f48}of _0x1a34e7){const {group:_0x58e0f7,type:_0x108d93,subType:_0x2c629f,id:_0x12d828}=_0x3ca80e['_splitMarkerName'](_0x48d172);if('suggestion'==_0x58e0f7&&_0x3ca80e['hasSuggestion'](_0x12d828)){if('formatBlock'==_0x108d93&&('imageStylePreApply'==_0x2c629f||'imageStylePostApply'==_0x2c629f)){const _0x2d7e0d=_0x3ca80e['getSuggestion'](_0x12d828);if(_0x2c3f48['newRange']){const _0x3f280b=_0x2d7e0d['getFirstRange']()['getContainedElement']();if(_0x4d2b14['isBlockImage'](_0x3f280b))continue;_0x3ca80e['discardSuggestion'](_0x2d7e0d),_0x3cda42=!0x0;}}if('insertion'==_0x108d93&&'imageCaption'==_0x2c629f&&!_0x2c3f48['newRange']){const _0x3cb6e5=_0x3ca80e['getSuggestion'](_0x12d828);_0x3cb6e5['next']&&_0x3cb6e5['next']['isInContent']&&(_0x3ca80e['discardSuggestion'](_0x3cb6e5['next']),_0x3cda42=!0x0);}}}return _0x3cda42;}),this['_registerLegacyDescription'](_0x1b4996);}['_registerLegacyDescription'](_0x346466){const _0x361ad7=this['editor'],_0x47d7ef=_0x361ad7['locale'];_0x361ad7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ccd4e=>{if('formatBlock'!=_0x1ccd4e['type']&&'formatInline'!=_0x1ccd4e['type'])return;const {data:_0x2e3b9a}=_0x1ccd4e;if(!_0x2e3b9a||'imageStyle'!=_0x2e3b9a['commandName'])return;const _0x548ac1=_0x2e3b9a['commandParams'][0x0]['value'];return _0x5a7840('side'===_0x548ac1?o(_0x47d7ef,'FORMAT_SIDE_IMAGE'):_0x346466[_0x548ac1]||_0x548ac1);function _0x5a7840(_0x26e4e1){return{'type':'format','content':o(_0x47d7ef,'*Format:*\x20%0',_0x26e4e1)};}});}}class at extends _0x101975{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4bd0ec){super(_0x4bd0ec),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4fb0ff=this['editor'],_0x2e9a6e=_0x4fb0ff['commands']['get']('importWord'),_0x3c9c12=_0x4fb0ff['commands']['get']('trackChanges');_0x2e9a6e&&(_0x2e9a6e['on']('execute',(_0x1f9e34,[,_0x2ecd44])=>{this['_trackChangesValueDuringImport']=_0x3c9c12['value'],_0x2ecd44['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2e9a6e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2e9a6e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3c9c12['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4fb0ff['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x546a99,_0x4a5f73){const {suggestions:_0x28ada2}=_0x4a5f73,_0x37db85=this['editor']['commands']['get']('trackChanges'),_0x372e00=_0x37db85['value'];this['_trackChangesValueDuringImport']!==_0x372e00&&(_0x37db85['execute'](),this['_trackChangesExecuted']=!0x0),_0x28ada2&&_0x28ada2['forEach'](({id:_0x386334,type:_0x4e97ca,author:_0x52e53d,created_at:_0x17cb0d})=>{const _0x1514bb={'id':_0x386334,'type':_0x4e97ca,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x52e53d,'createdAt':_0x17cb0d?new Date(_0x17cb0d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1514bb);});}}class ct extends _0x101975{['afterInit'](){const _0x4863af=this['editor'],_0x30dd1a=_0x4863af['plugins']['get']('TrackChangesEditing');if(_0x4863af['plugins']['has']('IndentEditing')&&(_0x30dd1a['enableCommand']('indent'),_0x30dd1a['enableCommand']('outdent')),_0x4863af['plugins']['has']('IndentBlock')){for(const _0xc82c8a of['indentBlock','outdentBlock'])_0x30dd1a['enableDefaultAttributesIntegration'](_0xc82c8a);}const _0x188150=_0x4863af['locale'];_0x30dd1a['registerBlockAttribute']('blockIndent'),_0x30dd1a['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x188150,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe076ac=this['editor'],_0x39d3c8=_0xe076ac['locale'],_0x3730e1=_0xe076ac['plugins']['get']('TrackChangesEditing');_0x3730e1['descriptionFactory']['registerDescriptionCallback'](_0x9c0fd3=>{if('formatBlock'!=_0x9c0fd3['type'])return;const {data:_0x11af69}=_0x9c0fd3;if(!_0x11af69)return;if('indentBlock'!=_0x11af69['commandName']&&'outdentBlock'!=_0x11af69['commandName'])return;const _0x56a7c9=_0x9c0fd3['getItems']()[0x0],_0x872d97=_0x3730e1['descriptionFactory']['getItemLabel'](_0x56a7c9);return'indentBlock'==_0x11af69['commandName']?{'type':'format','content':o(_0x39d3c8,'*Indent:*\x20%0',_0x872d97)}:'outdentBlock'==_0x11af69['commandName']?{'type':'format','content':o(_0x39d3c8,'*Outdent:*\x20%0',_0x872d97)}:void 0x0;});}}class ut extends _0x101975{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x101975{['afterInit'](){const _0x582adc=this['editor'];if(!_0x582adc['plugins']['has']('LinkEditing'))return;const _0x521a02=_0x582adc['plugins']['get']('TrackChangesEditing'),_0x14e8a7=_0x582adc['commands']['get']('link');_0x521a02['enableDefaultAttributesIntegration']('link'),_0x521a02['enableDefaultAttributesIntegration']('unlink'),_0x521a02['registerInlineAttribute']('linkHref');for(const _0x382238 of _0x14e8a7['manualDecorators'])_0x521a02['registerInlineAttribute'](_0x382238['id']),_0x521a02['descriptionFactory']['registerAttributeLabel'](_0x382238['id'],'link\x20('+_0x382238['label']['toLowerCase']()+')');_0x521a02['descriptionFactory']['registerDescriptionCallback'](_0x2ab8b8=>{if('attribute'!=_0x2ab8b8['type'])return;const {data:_0x22d045}=_0x2ab8b8;if(!_0x22d045||'linkHref'!=_0x22d045['key'])return;const _0x3f938d=_0x22d045['newValue'],_0x22386b=_0x582adc['locale'];return{'type':'format','content':null==_0x3f938d?o(_0x22386b,'*Remove\x20link*'):o(_0x22386b,'*Set\x20link:*\x20%0','\x22'+_0x3f938d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d872b=this['editor'],_0x32dafb=_0x5d872b['locale'];_0x5d872b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2556a5=>{if('formatInline'!=_0x2556a5['type'])return;const {data:_0xf2af7d}=_0x2556a5;if(_0xf2af7d){if('link'==_0xf2af7d['commandName']){const _0x55f5f7=_0xf2af7d['commandParams'][0x0];return{'type':'format','content':o(_0x32dafb,'*Set\x20link:*\x20%0','\x22'+_0x55f5f7+'\x22')};}return'unlink'==_0xf2af7d['commandName']?{'type':'format','content':o(_0x32dafb,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x101975{['afterInit'](){const _0x21ee54=this['editor'],_0x3bf6ba=_0x21ee54['locale'];if(!_0x21ee54['plugins']['has']('LegacyListEditing'))return;const _0x3e64b6=_0x21ee54['plugins']['get']('TrackChangesEditing'),_0x23af7e=_0x21ee54['plugins']['has']('LegacyTodoListEditing');function _0xbf4240(_0x186d6c){return()=>{const _0x21877b=_0x21ee54['model']['document']['selection'],_0x53ba1b=_0x21ee54['commands']['get'](_0x186d6c);if(_0x53ba1b['value'])return void _0x21ee54['execute']('paragraph',{});const _0x47305d=_0x186d6c['slice'](0x0,-0x4),_0x4899d7=function(_0x1d27ff,_0x27e51d,_0x583c17){let _0x281073=Array['from'](_0x1d27ff)['filter'](_0x31b5f0=>function(_0xab87e0,_0x827a86){return _0x827a86['checkChild'](_0xab87e0['parent'],'listItem')&&!_0x827a86['isObject'](_0xab87e0);}(_0x31b5f0,_0x583c17));_0x281073=_0x281073['filter'](_0x42b4fb=>!_0x42b4fb['is']('element','listItem')||_0x42b4fb['getAttribute']('listType')!=_0x27e51d);const _0x1cfe83=new Set();for(const _0x20346a of _0x281073)_0x20346a['is']('element','listItem')?_0x1cfe83['add'](fe(_0x20346a)):_0x1cfe83['add'](_0x20346a);return Array['from'](_0x1cfe83);}(_0x21877b['getSelectedBlocks'](),_0x47305d,_0x21ee54['model']['schema']);_0x21ee54['model']['change'](()=>{for(const _0x5a9b3d of _0x4899d7)_0x3e64b6['markBlockFormat'](_0x5a9b3d,{'commandName':_0x186d6c,'commandParams':[{'forceValue':!_0x53ba1b['value']}],'formatGroupId':'blockName'},ue(_0x5a9b3d));});};}function _0x4e302e(_0x2f7121){return()=>{const _0xef76b0=function(_0x3a516a){let _0xc4035=Array['from'](_0x3a516a);const _0x2c9996=_0xc4035['findIndex'](_0x48c48b=>'listItem'!=_0x48c48b['name']);return _0x2c9996>-0x1&&(_0xc4035=_0xc4035['slice'](0x0,_0x2c9996)),_0xc4035;}(_0x21ee54['model']['document']['selection']['getSelectedBlocks']()),_0x441b86=_0x21ee54['model']['createRange'](_0x21ee54['model']['createPositionAt'](_0xef76b0[0x0],'before'),_0x21ee54['model']['createPositionAt'](_0xef76b0[_0xef76b0['length']-0x1],'end'));_0x21ee54['model']['change'](()=>{_0x3e64b6['markBlockFormat'](_0x441b86,{'commandName':_0x2f7121,'commandParams':[],'formatGroupId':'listIndent'},function(_0x53cded){const _0x4cd04f=new Set();for(const _0xf37165 of _0x53cded){let _0x1812b3=_0xf37165['nextSibling'];for(;_0x1812b3&&_0x1812b3['getAttribute']('listIndent')>_0xf37165['getAttribute']('listIndent');)_0x4cd04f['add'](_0x1812b3),_0x1812b3=_0x1812b3['nextSibling'];}return Array['from'](_0x4cd04f);}(_0xef76b0));});};}_0x3e64b6['enableCommand']('numberedList',_0xbf4240('numberedList')),_0x3e64b6['enableCommand']('bulletedList',_0xbf4240('bulletedList')),_0x23af7e&&_0x3e64b6['enableCommand']('todoList',_0xbf4240('todoList')),_0x3e64b6['enableCommand']('indentList',_0x4e302e('indentList')),_0x3e64b6['enableCommand']('outdentList',_0x4e302e('outdentList')),_0x23af7e&&_0x3e64b6['enableCommand']('checkTodoList',()=>{const _0x143cee=_0x21ee54['commands']['get']('checkTodoList'),_0x24e9a1=Array['from'](_0x143cee['_selectedElements']);_0x24e9a1['filter'](_0x29016b=>_0x29016b['getAttribute']('todoListChecked')!=_0x143cee['value']),_0x21ee54['model']['change'](()=>{for(const _0x36222c of _0x24e9a1)_0x3e64b6['markBlockFormat'](_0x36222c,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x143cee['value']}]});});}),_0x3e64b6['descriptionFactory']['registerElementLabel']('listItem',_0x1f2611=>o(_0x3bf6ba,'ELEMENT_LIST_ITEM',_0x1f2611)),_0x3e64b6['descriptionFactory']['registerDescriptionCallback'](_0x144866=>{if('formatBlock'!=_0x144866['type']&&'formatInline'!=_0x144866['type'])return;const {data:_0x612547}=_0x144866;if(_0x612547){if('numberedList'==_0x612547['commandName']||'bulletedList'==_0x612547['commandName']||'todoList'==_0x612547['commandName'])switch(_0x612547['commandName']['replace']('List','')){case'bulleted':return _0x35e431(o(_0x3bf6ba,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x35e431(o(_0x3bf6ba,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x35e431(o(_0x3bf6ba,'ELEMENT_TODO_LIST'));}if('indentList'==_0x612547['commandName'])return{'type':'format','content':o(_0x3bf6ba,'*Indent:*\x20%0',o(_0x3bf6ba,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x612547['commandName'])return{'type':'format','content':o(_0x3bf6ba,'*Outdent:*\x20%0',o(_0x3bf6ba,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x612547['commandName'])return _0x612547['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3bf6ba,'*Check\x20item*')}:{'type':'format','content':o(_0x3bf6ba,'*Uncheck\x20item*')};}function _0x35e431(_0x21fbc0){return{'type':'format','content':o(_0x3bf6ba,'*Change\x20to:*\x20%0',_0x21fbc0)};}});}}function fe(_0x36cbf0){const _0x3210a8=_0x36cbf0['getAttribute']('listIndent');if(0x0==_0x3210a8)return _0x36cbf0;let _0x2f4586=_0x36cbf0;for(;_0x36cbf0['previousSibling']&&_0x36cbf0['previousSibling']['is']('element','listItem');){const _0x158fba=_0x36cbf0['previousSibling']['getAttribute']('listIndent');if(_0x158fba==_0x3210a8)_0x2f4586=_0x36cbf0['previousSibling'];else{if(_0x158fba<_0x3210a8)break;}_0x36cbf0=_0x36cbf0['previousSibling'];}return _0x2f4586;}function ue(_0x451c28){const _0x2291e9=[];if(_0x451c28['is']('element','listItem')&&_0x451c28['getAttribute']('listIndent')>0x0){let _0x49934c=_0x451c28['nextSibling'];for(;_0x49934c&&'listItem'==_0x49934c['name']&&_0x49934c['getAttribute']('listIndent')==_0x451c28['getAttribute']('listIndent');)_0x2291e9['push'](_0x49934c),_0x49934c=_0x49934c['nextSibling'];}return _0x2291e9;}class W extends _0x101975{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5032ae=this['editor']['config']['get']('list.properties'),_0x46e639=this['editor']['plugins']['get']('TrackChangesEditing');_0x5032ae['styles']&&_0x46e639['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5032ae['reversed']&&_0x46e639['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5032ae['startIndex']&&_0x46e639['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x46e639['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x50fb65,_0x210e33={}){const _0x29a8ec=this['editor']['plugins']['get']('TrackChangesEditing'),_0x322e28=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x29a8ec['markMultiRangeBlockFormat'](_0x322e28,{'commandName':'listStyle','commandParams':[{'type':_0x210e33['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x46fd47,_0x11da60={}){const _0x3ab5c1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7f6d33=this['_getSuggestionBlocks'](_0x57f3b1=>_0x57f3b1['is']('element','listItem')&&'numbered'===_0x57f3b1['getAttribute']('listType'));if(_0x7f6d33['length']<0x1)return;const _0x34392c=_0x7f6d33['map'](_0x133c03=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x133c03,'before'),this['editor']['model']['createPositionAt'](_0x133c03,0x0)));this['editor']['model']['change'](()=>{_0x3ab5c1['markMultiRangeBlockFormat'](_0x34392c,{'commandName':'listReversed','commandParams':[{'reversed':_0x11da60['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4cda24,_0x44dbb5={}){const _0x5363e9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9aa031=this['_getSuggestionBlocks'](_0x2bacaa=>_0x2bacaa['is']('element','listItem')&&'numbered'===_0x2bacaa['getAttribute']('listType'));if(_0x9aa031['length']<0x1)return;const _0x2b7349=_0x9aa031['map'](_0x58973f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x58973f,'before'),this['editor']['model']['createPositionAt'](_0x58973f,0x0)));this['editor']['model']['change'](()=>{_0x5363e9['markMultiRangeBlockFormat'](_0x2b7349,{'commandName':'listStart','commandParams':[{'startIndex':_0x44dbb5['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x6ed545){if('formatBlock'!=_0x6ed545['type']&&'formatInline'!=_0x6ed545['type'])return;const _0x513e5d=this['editor']['locale'],{data:_0x5bbc72}=_0x6ed545;if(!_0x5bbc72)return;let _0x481adf,_0x4b94a4;switch(_0x5bbc72['commandName']){case'listStyle':_0x481adf='*Change\x20to:*\x20%0',_0x4b94a4={'type':'format','content':o(_0x513e5d,_0x481adf,o(_0x513e5d,this['_getTranslationKeyForListStyle'](_0x5bbc72['commandParams'][0x0]['type'])))};break;case'listReversed':_0x481adf=_0x5bbc72['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4b94a4={'type':'format','content':o(_0x513e5d,_0x481adf)};break;case'listStart':_0x481adf='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4b94a4={'type':'format','content':o(_0x513e5d,_0x481adf,_0x5bbc72['commandParams'][0x0]['startIndex'])};}return _0x4b94a4;}['_getSuggestionBlocksForListStyle'](){const _0x124b6b=this['editor']['plugins']['get']('LegacyListUtils');let _0x5ce069=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5ce069[0x0]?.['is']('element','listItem')&&_0x5ce069['unshift'](..._0x124b6b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5ce069[_0x5ce069['length']-0x1]?.['is']('element','listItem')&&_0x5ce069['push'](..._0x124b6b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5ce069=[...new Set(_0x5ce069)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5ce069=_0x5ce069['filter'](_0x5add16=>_0x5add16['is']('element','listItem'))),_0x5ce069;}['_getSuggestionBlocks'](_0x3c0b69){const _0x3e7b25=this['editor']['plugins']['get']('LegacyListUtils');let _0x33523e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3c0b69)['map'](_0x36a4ea=>{const _0x4ef37b=this['editor']['model']['createPositionAt'](_0x36a4ea,0x0);return[..._0x3e7b25['getSiblingNodes'](_0x4ef37b,'backward'),..._0x3e7b25['getSiblingNodes'](_0x4ef37b,'forward')];})['flat']();return _0x33523e=[...new Set(_0x33523e)],_0x33523e;}['_getTranslationKeyForListStyle'](_0x1c4958){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1c4958)||'default')['toUpperCase']()+'_LIST_'+_0x1c4958['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x101975{['afterInit'](){const _0x348c2e=this['editor'];if(!_0x348c2e['plugins']['has']('MediaEmbedEditing'))return;const _0x373cc=_0x348c2e['plugins']['get']('TrackChangesEditing'),_0x1544a0=_0x348c2e['locale'];_0x373cc['enableCommand']('mediaEmbed'),_0x373cc['descriptionFactory']['registerElementLabel']('media',_0x3fe6a0=>o(_0x1544a0,'ELEMENT_MEDIA',_0x3fe6a0)),_0x348c2e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xd7a0d3,{writer:_0x2e8c7d,options:_0x28ba26})=>{if(_0x28ba26['showSuggestionHighlights'])return _0x2e8c7d['createEmptyElement']('div');},'converterPriority':'high'}),_0x348c2e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2b64be,_0x37b80e,_0x16e47a)=>{_0x16e47a['options']['showSuggestionHighlights']&&_0x2b64be['stop']();},{'priority':'high'});}}class mt extends _0x101975{['afterInit'](){const _0x2f68db=this['editor'];_0x2f68db['plugins']['has']('MentionEditing')&&_0x2f68db['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x101975{['afterInit'](){const _0x290090=this['editor'];if(!_0x290090['commands']['get']('insertMergeField'))return;_0x290090['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x15383b=_0x290090['plugins']['get']('TrackChangesEditing'),_0x42aa37=_0x290090['locale'];_0x15383b['descriptionFactory']['registerElementLabel']('mergeField',_0x376e7a=>o(_0x42aa37,'ELEMENT_MERGE_FIELD',_0x376e7a)),_0x15383b['descriptionFactory']['registerDescriptionCallback'](_0x39acca=>{if('insertion'!=_0x39acca['type']&&'deletion'!=_0x39acca['type'])return;const _0x415b30=_0x39acca['getContainedElement']();if(null==_0x415b30)return;if(!_0x415b30['is']('element','mergeField'))return;const _0x50fbbd=_0x290090['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x415b30['getAttribute']('id'));return'insertion'==_0x39acca['type']?{'type':'insertion','content':o(_0x42aa37,'*Insert:*\x20%0','\x22'+_0x50fbbd+'\x22\x20'+o(_0x42aa37,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x42aa37,'*Remove:*\x20%0','\x22'+_0x50fbbd+'\x22\x20'+o(_0x42aa37,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x101975{['afterInit'](){const _0x499f32=this['editor'],_0x2a600f=_0x499f32['plugins']['get']('TrackChangesEditing');_0x499f32['plugins']['has']('MultiLevelList')&&(_0x2a600f['enableDefaultAttributesIntegration']('multiLevelList'),_0x2a600f['registerBlockAttribute']('listMarkerStyle'),_0x2a600f['descriptionFactory']['registerDescriptionCallback'](_0x29e1d7=>this['handleDescriptions'](_0x29e1d7)));}['handleDescriptions'](_0x48ee92){const _0x47c1eb=this['editor']['locale'],{data:_0xe5bdf8}=_0x48ee92,_0x1193b4={'type':'format','content':''};if(_0xe5bdf8&&'listMarkerStyle'==_0xe5bdf8['key']){if(!_0xe5bdf8['oldValue'])return{'type':'format','content':o(_0x47c1eb,'*Set\x20format:*\x20%0',o(_0x47c1eb,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xe5bdf8['newValue']+')'};if(!_0xe5bdf8['newValue']){let _0x1067ad=_0x48ee92['head'];for(;_0x1067ad;){if(_0x1067ad['data']&&'listType'==_0x1067ad['data']['key']&&_0x1067ad['data']['newValue'])return _0x1193b4;_0x1067ad=_0x1067ad['next'];}return{'type':'format','content':o(_0x47c1eb,'*Remove\x20format:*\x20%0',o(_0x47c1eb,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xe5bdf8['oldValue']+')'};}}}}class kt extends _0x101975{['afterInit'](){const _0x3eaf9a=this['editor'];if(!_0x3eaf9a['plugins']['has']('PageBreakEditing'))return;_0x3eaf9a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x29e37d=_0x3eaf9a['plugins']['get']('TrackChangesEditing'),_0x51e423=_0x3eaf9a['locale'];_0x29e37d['descriptionFactory']['registerElementLabel']('pageBreak',_0x3a6b30=>o(_0x51e423,'ELEMENT_PAGE_BREAK',_0x3a6b30));}}class bt extends _0x101975{['afterInit'](){const _0x58714f=this['editor'];if(!_0x58714f['plugins']['has']('Paragraph'))return;const _0x16cddb=_0x58714f['locale'],_0x1b362a=_0x58714f['plugins']['get']('TrackChangesEditing');_0x1b362a['descriptionFactory']['registerElementLabel']('paragraph',_0x3597c3=>o(_0x16cddb,'ELEMENT_PARAGRAPH',_0x3597c3)),_0x1b362a['enableDefaultAttributesIntegration']('paragraph'),_0x1b362a['enableCommand']('insertParagraph'),_0x58714f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x58714f),{'priority':'highest'}),_0x58714f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x34a3b6,_0x53ba55,_0x68fa65)=>{_0x68fa65['options']['showSuggestionHighlights']&&nr(_0x58714f,{'showActiveMarker':!0x1})(_0x34a3b6,_0x53ba55,_0x68fa65);},{'priority':'highest'});const _0x1dd914=_0x1b362a['descriptionFactory'];_0x1dd914['registerDescriptionCallback'](_0x1a18ed=>{if('insertion'!==_0x1a18ed['type'])return;const {start:_0x202bb1,end:_0x58cff0}=_0x1a18ed['getFirstRange']();if(!_0x202bb1['isTouching'](_0x58cff0)||!_0x202bb1['nodeAfter'])return;const _0x328af3=_0x58714f['model']['schema'],_0x1cb2d7=_0x202bb1['nodeAfter'];return _0x328af3['isBlock'](_0x1cb2d7)&&!_0x328af3['isLimit'](_0x1cb2d7)&&_0x328af3['checkChild'](_0x1cb2d7,'$text')?{'type':'insertion','content':o(_0x16cddb,'*Insert:*\x20%0',_0x1dd914['getItemLabel'](_0x1cb2d7,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54b0ae=this['editor'],_0x129368=_0x54b0ae['locale'];_0x54b0ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e12ea=>{if('formatBlock'!=_0x4e12ea['type'])return;const {data:_0x1b430a}=_0x4e12ea;return _0x1b430a&&'paragraph'==_0x1b430a['commandName']?{'type':'format','content':o(_0x129368,'*Change\x20to:*\x20%0',o(_0x129368,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5d4943,{showActiveMarker:_0x381894=!0x0}={}){return(_0x14774b,_0x1445cc,_0x4d7a6f)=>{const _0x221e0d=_0x5d4943['plugins']['get']('TrackChangesEditing'),_0x447538=_0x1445cc['markerRange']['start'],_0x3e27d7=_0x1445cc['markerRange']['end'],_0x2b6131=_0x5d4943['model']['schema'];if(!_0x447538['isTouching'](_0x3e27d7)||!_0x447538['nodeAfter'])return;const _0x27defd=_0x447538['nodeAfter'];if(_0x2b6131['isBlock'](_0x27defd)&&!_0x2b6131['isLimit'](_0x27defd)&&_0x2b6131['checkChild'](_0x27defd,'$text')){if(!_0x4d7a6f['consumable']['consume'](_0x1445cc['markerRange'],_0x14774b['name']))return;const _0x34f594=_0x4d7a6f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x4ea5ab=_0x4d7a6f['mapper']['toViewPosition'](_0x3e27d7);_0x381894&&_0x221e0d['activeMarkers']['includes'](_0x1445cc['markerName'])&&_0x4d7a6f['writer']['addClass']('ck-suggestion-marker--active',_0x34f594),_0x4d7a6f['writer']['insert'](_0x4ea5ab,_0x34f594),_0x4d7a6f['mapper']['bindElementToMarker'](_0x34f594,_0x1445cc['markerName']);}};}class wt extends _0x101975{['afterInit'](){const _0x36f243=this['editor'];if(!_0x36f243['plugins']['has']('RemoveFormatEditing'))return;_0x36f243['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x385e9f=this['editor'];_0x385e9f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24818c=>{if('formatBlock'!=_0x24818c['type']&&'formatInline'!=_0x24818c['type'])return;const {data:_0x1f72f8}=_0x24818c;return _0x1f72f8&&'removeFormat'==_0x1f72f8['commandName']?{'type':'format','content':o(_0x385e9f['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x101975{['afterInit'](){const _0x4570e9=this['editor'];if(!_0x4570e9['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x135609=_0x4570e9['plugins']['get']('TrackChangesEditing');_0x135609['enableCommand']('goToPreviousRestrictedEditingException'),_0x135609['enableCommand']('goToNextRestrictedEditingException');const _0x22ea0c=_0x4570e9['plugins']['get']('RestrictedEditingModeEditing');_0x22ea0c['enableCommand']('trackChanges'),_0x22ea0c['enableCommand']('acceptSuggestion'),_0x22ea0c['enableCommand']('discardSuggestion'),_0x22ea0c['enableCommand']('acceptAllSuggestions'),_0x22ea0c['enableCommand']('discardAllSuggestions'),_0x22ea0c['enableCommand']('acceptSelectedSuggestions'),_0x22ea0c['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x101975{static get['requires'](){return[_0x29d328];}['init'](){const _0x20f9e2=this['editor'],_0x22c9f1=_0x20f9e2['plugins']['get']('TrackChangesEditing');_0x22c9f1['enableCommand']('shiftEnter'),_0x20f9e2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x20f9e2),{'priority':'high'}),_0x20f9e2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x20f9e2),{'priority':'high'}),_0x20f9e2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2a1fb4,_0x3b3509,_0x156bf9)=>{_0x156bf9['options']['showSuggestionHighlights']&&ge(_0x20f9e2,{'showActiveMarker':!0x1})(_0x2a1fb4,_0x3b3509,_0x156bf9);}),_0x22c9f1['descriptionFactory']['registerElementLabel']('softBreak',_0xe0c1f1=>o(_0x20f9e2['locale'],'ELEMENT_LINE_BREAK',_0xe0c1f1));}}function ge(_0x2d83f2,{showActiveMarker:_0x49777b=!0x0}={}){return(_0x400c78,_0x1da23a,_0x24952a)=>{const _0xcb253e=_0x2d83f2['plugins']['get']('TrackChangesEditing');if(!_0x24952a['consumable']['test'](_0x1da23a['markerRange'],_0x400c78['name']))return;const _0x415a71=_0x2d83f2['model'];for(const _0x2a5dba of _0x1da23a['markerRange']['getItems']()){if(!_0x2a5dba['is']('element','softBreak'))continue;const _0x2baf52='deletion'==_0x1da23a['markerName']['split'](':')[0x1]?'merge':'split',_0x538b41=_0x24952a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2baf52}),_0x5e531d=_0x24952a['mapper']['toViewPosition'](_0x415a71['createPositionBefore'](_0x2a5dba));_0x49777b&&_0xcb253e['activeMarkers']['includes'](_0x1da23a['markerName'])&&_0x24952a['writer']['addClass']('ck-suggestion-marker--active',_0x538b41),_0x24952a['writer']['insert'](_0x5e531d,_0x538b41),_0x24952a['mapper']['bindElementToMarker'](_0x538b41,_0x1da23a['markerName']);}};}class St extends _0x101975{['afterInit'](){const _0x1cddb5=this['editor'],_0x29e091=_0x1cddb5['model'],_0x559a4e=_0x1cddb5['locale'];if(!_0x1cddb5['plugins']['has']('StandardEditingModeEditing'))return;const _0x4c8fc=_0x1cddb5['plugins']['get']('TrackChangesEditing'),_0x4b425c='restrictedEditingException',_0x125528=_0x1cddb5['commands']['get'](_0x4b425c);_0x4c8fc['enableCommand'](_0x4b425c,(_0x3a163b,_0x2ede73={})=>{const _0x1ba797=_0x29e091['document']['selection'];if(_0x1ba797['isCollapsed'])return void _0x3a163b(_0x2ede73);const _0x416a41=void 0x0!==_0x2ede73['forceValue']?_0x2ede73['forceValue']:!_0x125528['value'];_0x29e091['change'](()=>{const _0x88c97=Array['from'](_0x1ba797['getRanges']());for(const _0x130539 of _0x88c97){const _0x276861=_0x416a41?[_0x130539]:io(_0x4b425c,_0x130539,_0x29e091);for(const _0x30a36c of _0x276861)_0x4c8fc['markInlineFormat'](_0x30a36c,{'commandName':_0x4b425c,'commandParams':[{'forceValue':_0x416a41}]});}});}),_0x4c8fc['descriptionFactory']['registerDescriptionCallback'](_0x153761=>{if('formatBlock'!=_0x153761['type']&&'formatInline'!=_0x153761['type'])return;const {data:_0x35f571}=_0x153761;return _0x35f571&&_0x35f571['commandName']==_0x4b425c?_0x35f571['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x559a4e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x559a4e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x101975{['afterInit'](){const _0x12800e=this['editor'];if(!_0x12800e['plugins']['has']('Style')||!_0x12800e['plugins']['has']('DataSchema'))return;const _0x14232e=_0x12800e['plugins']['get']('TrackChangesEditing'),_0xcb89=_0x12800e['locale'],_0xeab748=_0x12800e['config']['get']('style')||{},_0x36f250=_0x12800e['plugins']['get']('GeneralHtmlSupport'),_0x4752fc=_0x12800e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x12800e['plugins']['get']('DataSchema'),_0xeab748['definitions']);_0x14232e['enableDefaultAttributesIntegration']('style');const _0x2c759c=new Set();for(const _0x4a8541 of _0x4752fc['block']){const _0x2d8395=_0x36f250['getGhsAttributeNameForElement'](_0x4a8541['element']);_0x2c759c['add'](_0x2d8395);}const _0x1a4e08=new Set();for(const _0x101a08 of _0x4752fc['inline']){const _0x49b1c1=_0x36f250['getGhsAttributeNameForElement'](_0x101a08['element']);_0x1a4e08['add'](_0x49b1c1);for(const _0x3c2bbc of _0x101a08['ghsAttributes'])_0x1a4e08['add'](_0x3c2bbc);}for(const _0x5b7139 of _0x2c759c)_0x14232e['registerBlockAttribute'](_0x5b7139),_0x14232e['descriptionFactory']['registerAttributeLabel'](_0x5b7139,o(_0xcb89,'FORMAT_STYLE'));for(const _0x3b0976 of _0x1a4e08)_0x14232e['registerInlineAttribute'](_0x3b0976),_0x14232e['descriptionFactory']['registerAttributeLabel'](_0x3b0976,o(_0xcb89,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5815c0=this['editor'],_0x3e66d9=_0x5815c0['locale'];_0x5815c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x445e63=>{if('formatBlock'!=_0x445e63['type']&&'formatInline'!=_0x445e63['type'])return;const {data:_0x4ed064}=_0x445e63;return _0x4ed064&&'style'===_0x4ed064['commandName']?_0x4ed064['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e66d9,'*Set\x20format:*\x20%0',_0x4ed064['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3e66d9,'*Remove\x20format:*\x20%0',_0x4ed064['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x101975{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x22c1c4){super(_0x22c1c4),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2d1434=this['editor'],_0x5174d0=_0x2d1434['model']['document']['selection'];if(!_0x2d1434['plugins']['has']('TableEditing'))return;const _0xdf0653=_0x2d1434['locale'],_0x3ad6e8=_0x2d1434['plugins']['get']('TrackChangesEditing'),_0x5094b5=_0x2d1434['plugins']['get']('TableUtils');_0x3ad6e8['descriptionFactory']['registerElementLabel']('table',_0x2c1c2b=>o(_0xdf0653,'ELEMENT_TABLE',_0x2c1c2b)),this['_setupColumnsRowsFixing'](),_0x3ad6e8['enableCommand']('insertTable'),_0x3ad6e8['enableCommand']('selectTableRow'),_0x3ad6e8['enableCommand']('selectTableColumn');for(const _0x460107 of['insertTableRowAbove','insertTableRowBelow']){const _0x200f99=_0x2d1434['commands']['get'](_0x460107);_0x3ad6e8['enableCommand'](_0x460107,_0xbecd05=>{_0x2d1434['model']['change'](_0x407841=>{_0xbecd05();const _0x14cb02='above'===_0x200f99['order'],_0x5e6089=_0x5094b5['getSelectionAffectedTableCells'](_0x5174d0),_0x3f9be6=_0x5094b5['getRowIndexes'](_0x5e6089),_0x3cde63=_0x14cb02?_0x3f9be6['first']-0x1:_0x3f9be6['last']+0x1,_0x386bc8=_0x5e6089[0x0]['findAncestor']('table'),_0x141a02=_0x5094b5['createTableWalker'](_0x386bc8,{'startRow':_0x3cde63,'endRow':_0x3cde63}),_0x1b5039=Array['from'](_0x141a02)['map'](_0x4168f5=>_0x407841['createRangeOn'](_0x4168f5['cell']));_0x3ad6e8['markMultiRangeInsertion'](_0x1b5039,'tableRow');});});}for(const _0xb3a205 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3f07f7=_0x2d1434['commands']['get'](_0xb3a205);_0x3ad6e8['enableCommand'](_0xb3a205,_0x57ab18=>{_0x2d1434['model']['change'](_0x2b5c0d=>{_0x57ab18();const _0xe4decd='left'===_0x3f07f7['order'],_0x4312a9=_0x5094b5['getSelectionAffectedTableCells'](_0x5174d0),_0x4e964a=_0x5094b5['getColumnIndexes'](_0x4312a9),_0x1e7ae3=_0xe4decd?_0x4e964a['first']-0x1:_0x4e964a['last']+0x1,_0x4ee029=_0x4312a9[0x0]['findAncestor']('table'),_0xb3dc99=_0x5094b5['createTableWalker'](_0x4ee029,{'startRow':0x0,'column':_0x1e7ae3,'includeAllSlots':!0x1}),_0x3f4dc1=Array['from'](_0xb3dc99)['map'](_0x5908ce=>_0x2b5c0d['createRangeOn'](_0x5908ce['cell']));_0x3ad6e8['markMultiRangeInsertion'](_0x3f4dc1,'tableColumn');});});}for(const _0x14cb09 of['removeTableRow','removeTableColumn']){const _0x72d18=_0x14cb09['substr'](0xb),_0x2ec4e1=_0x72d18['toLowerCase'](),_0x2cb013=_0x2ec4e1['substr'](0x0,0x3)+'span',_0x2c38ed='table'+_0x72d18,_0x46c85d='min'+_0x72d18,_0x248326='max'+_0x72d18;_0x3ad6e8['enableCommand'](_0x14cb09,()=>{_0x2d1434['model']['change'](_0x23b637=>{const _0x2e524a=_0x5094b5['getSelectionAffectedTableCells'](_0x5174d0),_0x5b90d5=_0x2e524a[0x0]['findAncestor']('table');let _0x3ddb1e;if('removeTableRow'==_0x14cb09){const _0x198974=_0x5094b5['getRowIndexes'](_0x2e524a);_0x3ddb1e={'startRow':_0x198974['first'],'endRow':_0x198974['last'],'includeAllSlots':!0x0};}else{const _0x2ef229=_0x5094b5['getColumnIndexes'](_0x2e524a);_0x3ddb1e={'startColumn':_0x2ef229['first'],'endColumn':_0x2ef229['last'],'includeAllSlots':!0x0};}const _0x2e46ff=_0x5094b5['createTableWalker'](_0x5b90d5,_0x3ddb1e),_0x135f3c=Array['from'](_0x2e46ff)['map'](({cell:_0x30e11c})=>_0x30e11c),_0x144509=Ee(_0x135f3c['filter'](_0x4a54e0=>_0x4a54e0['hasAttribute'](_0x2cb013))),_0x44cbe6=Ee(_0x135f3c['filter'](_0x3a5b66=>!_0x3a5b66['hasAttribute'](_0x2cb013)))['map'](_0x422f9b=>_0x23b637['createRangeOn'](_0x422f9b)),_0x2915a3=_0x3ad6e8['markMultiRangeDeletion'](_0x44cbe6,_0x2c38ed);if(_0x2915a3&&('tableRow'==_0x2915a3['subType']||'tableColumn'==_0x2915a3['subType'])){const _0x3d26c7=this['_getSuggestionCoords'](_0x2915a3);for(const _0x1cedee of _0x144509){const _0x2704a4=_0x23b637['createRangeOn'](_0x1cedee),_0x509cf3=_0x5094b5['getCellLocation'](_0x1cedee),_0x4c96af=_0x1cedee['getAttribute'](_0x2cb013)-0x1,_0x33f4e0=_0x3d26c7[_0x46c85d],_0x12567c=_0x3d26c7[_0x248326];_0x33f4e0<=_0x509cf3[_0x2ec4e1]&&_0x509cf3[_0x2ec4e1]+_0x4c96af<=_0x12567c&&_0x2915a3['addRange'](_0x2704a4);}}});});}function _0x443940(_0x5aca62){const _0x368848=Array['from'](_0x5174d0['getRanges']())['map'](_0x2a313c=>_0x1fbd79['fromRange'](_0x2a313c));_0x2d1434['model']['change'](_0x4b9833=>{const _0x577ea7=_0x4b9833['batch'];_0x5aca62=_0x5aca62['filter'](_0x322df6=>'$graveyard'!=_0x322df6['root']['rootName']),_0x4b9833['setSelection'](_0x5aca62),_0x2d1434['commands']['get']('removeTableRow')['refresh'](),_0x2d1434['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2d1434['model']['enqueueChange'](()=>{_0x2d1434['model']['enqueueChange'](_0x577ea7,_0x527d6f=>{const _0x16efc0=_0x368848['filter'](_0x35aaef=>'$graveyard'!=_0x35aaef['root']['rootName']);_0x16efc0['length']>0x0&&_0x527d6f['setSelection'](_0x16efc0);for(const _0xf4053d of _0x368848)_0xf4053d['detach']();});});});}function _0x4f085b(_0x47dc49){_0x2d1434['model']['change'](_0x37a9b5=>{const _0x136017=Array['from'](_0x5174d0['getRanges']())['map'](_0x52db46=>_0x1fbd79['fromRange'](_0x52db46)),_0x5e2c3c=[];for(const _0x13fca9 of _0x47dc49)for(const _0x1c6a23 of _0x13fca9['getItems']({'shallow':!0x0}))_0x5e2c3c['push'](_0x1c6a23);for(const _0x5ea938 of _0x5e2c3c)'$graveyard'!=_0x5ea938['root']['rootName']&&(_0x37a9b5['setSelection'](_0x37a9b5['createPositionAt'](_0x5ea938,0x0)),_0x2d1434['commands']['get']('removeTableColumn')['refresh'](),_0x2d1434['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x214323=_0x136017['filter'](_0x546fad=>'$graveyard'!=_0x546fad['root']['rootName']);_0x214323['length']>0x0&&_0x37a9b5['setSelection'](_0x214323);for(const _0x6c2852 of _0x136017)_0x6c2852['detach']();});}function _0xaa06d1(_0x58a84b,_0x159fa4){return _0x159fa4['every'](_0x65f2e=>_0x58a84b['some'](_0x4d1e6b=>_0x4d1e6b['end']['isEqual'](_0x65f2e['start'])||_0x65f2e['end']['isEqual'](_0x4d1e6b['start'])));}function _0x3f82b0(_0x39c2dc,_0x58dd4f){return!_0x39c2dc['some'](_0x149b71=>_0x58dd4f['some'](_0x4143e6=>_0x149b71['isIntersecting'](_0x4143e6)))&&_0x39c2dc['some'](_0xa6fa11=>_0x58dd4f['some'](_0x3ed18b=>_0xa6fa11['end']['isTouching'](_0x3ed18b['start'])));}_0x2d1434['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xab78a,_0x2422b4,_0x37b334)=>{if(!_0x37b334['options']['showSuggestionHighlights'])return;const _0x103054=_0x2422b4['item'];if(!_0x103054)return;const _0x54302d=_0x37b334['mapper']['toViewElement'](_0x103054);function _0x38914a(_0x4bea91){return Array['isArray'](_0x4bea91)?_0x4bea91:[_0x4bea91];}_0x54302d&&'tableCell'===_0x103054['name']&&_0x114e83(_0x54302d,_0x37b334['writer'],(_0x2141b8,_0x998df7,_0x1102f3)=>_0x1102f3['addClass'](_0x38914a(_0x998df7['classes']),_0x2141b8),(_0x13ef04,_0x451150,_0x562c5a)=>_0x562c5a['removeClass'](_0x38914a(_0x451150['classes']),_0x13ef04));},{'priority':'highest'}),_0x3ad6e8['descriptionFactory']['registerDescriptionCallback'](_0x119066=>{if('insertion'!=_0x119066['type']&&'deletion'!=_0x119066['type'])return;const _0x511a77=_0x119066['getContainedElement']();if(null!=_0x511a77&&_0x511a77['is']('element','table')){if('insertion'==_0x119066['type']){const _0x4bd126=_0x119066['getItems']()['filter'](_0x5cf5a3=>_0x5cf5a3['is']('$textProxy'))['map'](_0x413d54=>_0x413d54['data']);if(_0x4bd126['length'])return{'type':'insertion','content':o(_0xdf0653,'*Insert:*\x20%0',o(_0xdf0653,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4bd126['join']('\x20')+'\x22'))};}if('deletion'==_0x119066['type']){const _0x4d5588=_0x119066['getItems']()['filter'](_0x5492e2=>_0x5492e2['is']('$textProxy'))['map'](_0x4e78c1=>_0x4e78c1['data']);if(_0x4d5588['length'])return{'type':'deletion','content':o(_0xdf0653,'*Remove:*\x20%0',o(_0xdf0653,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4d5588['join']('\x20')+'\x22'))};}}}),_0x3ad6e8['descriptionFactory']['registerDescriptionCallback'](_0x498314=>{if('tableRow'==_0x498314['subType']){const _0x6546ad=_0x498314['getItems']()['filter'](_0xb44844=>_0xb44844['is']('$textProxy'))['map'](_0x29a3bb=>_0x29a3bb['data']),_0x208fa6=this['_getSuggestionCoords'](_0x498314),_0x28ff62=_0x208fa6['maxRow']-_0x208fa6['minRow']+0x1;if('insertion'==_0x498314['type'])return _0x6546ad['length']?{'type':'insertion','content':o(_0xdf0653,'*Insert:*\x20%0',o(_0xdf0653,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x28ff62,'\x22'+_0x6546ad['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xdf0653,'*Insert:*\x20%0',o(_0xdf0653,'ELEMENT_TABLE_ROW',_0x28ff62))};if('deletion'==_0x498314['type'])return _0x6546ad['length']?{'type':'deletion','content':o(_0xdf0653,'*Remove:*\x20%0',o(_0xdf0653,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x28ff62,'\x22'+_0x6546ad['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xdf0653,'*Remove:*\x20%0',o(_0xdf0653,'ELEMENT_TABLE_ROW',_0x28ff62))};}if('tableColumn'==_0x498314['subType']){const _0x2e0c15=_0x498314['getItems']()['filter'](_0x212415=>_0x212415['is']('$textProxy'))['map'](_0x46a1e2=>_0x46a1e2['data']),_0x19565e=this['_getSuggestionCoords'](_0x498314),_0x3f3501=_0x19565e['maxColumn']-_0x19565e['minColumn']+0x1;if('insertion'==_0x498314['type'])return _0x2e0c15['length']?{'type':'insertion','content':o(_0xdf0653,'*Insert:*\x20%0',o(_0xdf0653,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3f3501,'\x22'+_0x2e0c15['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xdf0653,'*Insert:*\x20%0',o(_0xdf0653,'ELEMENT_TABLE_COLUMN',_0x3f3501))};if('deletion'==_0x498314['type'])return _0x2e0c15['length']?{'type':'deletion','content':o(_0xdf0653,'*Remove:*\x20%0',o(_0xdf0653,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3f3501,'\x22'+_0x2e0c15['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xdf0653,'*Remove:*\x20%0',o(_0xdf0653,'ELEMENT_TABLE_COLUMN',_0x3f3501))};}}),_0x3ad6e8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x443940),_0x3ad6e8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x443940),_0x3ad6e8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4f085b),_0x3ad6e8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4f085b),_0x3ad6e8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xaa06d1),_0x3ad6e8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xaa06d1),_0x3ad6e8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3f82b0),_0x3ad6e8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3f82b0);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4b67a1=this['editor'],_0x10e462=_0x4b67a1['model']['document']['selection'];return(_0x35047c,_0x3d2be0)=>{_0x4b67a1['model']['change'](_0xc2b860=>{const {commandName:_0x2e60ca,commandParams:_0x12d34f}=_0x3d2be0;let _0x11a512=_0x35047c[0x0]['end']['nodeBefore'];_0x12d34f&&_0x12d34f[0x0]&&!0x1===_0x12d34f[0x0]['forceValue']&&(_0x11a512=_0x35047c[0x0]['start']['nodeAfter']);const _0x40ea73=_0xc2b860['createRangeIn'](_0x11a512);if('$graveyard'==_0x40ea73['root']['rootName'])return;const _0x555c6c=Array['from'](_0x10e462['getRanges']())['map'](_0x53ad08=>_0x1fbd79['fromRange'](_0x53ad08));_0xc2b860['setSelection'](_0x40ea73),_0x4b67a1['commands']['get'](_0x2e60ca)['refresh'](),_0x12d34f['push']({'forceDefaultExecution':!0x0}),_0x4b67a1['execute'](_0x2e60ca,..._0x12d34f);const _0x9f0734=_0x555c6c['filter'](_0x3fdca6=>'$graveyard'!=_0x3fdca6['root']['rootName']);_0x9f0734['length']>0x0&&_0xc2b860['setSelection'](_0x9f0734);for(const _0x68d98a of _0x555c6c)_0x68d98a['detach']();});};}['_getCoordsForCells'](_0x2daf7f){const _0x1ca9c1=this['editor']['plugins']['get']('TableUtils');let _0x1a72ce=Number['MAX_SAFE_INTEGER'],_0x292674=Number['MIN_SAFE_INTEGER'],_0x2b5538=Number['MAX_SAFE_INTEGER'],_0x15e7d9=Number['MIN_SAFE_INTEGER'];for(const _0x183e0b of _0x2daf7f){if('$graveyard'==_0x183e0b['root']['rootName'])continue;const {row:_0x5f3d44,column:_0x19e076}=_0x1ca9c1['getCellLocation'](_0x183e0b),_0x8d8eaa=_0x183e0b['hasAttribute']('rowspan')?_0x183e0b['getAttribute']('rowspan')-0x1:0x0,_0x124e21=_0x183e0b['hasAttribute']('colspan')?_0x183e0b['getAttribute']('colspan')-0x1:0x0;_0x1a72ce=_0x5f3d44<_0x1a72ce?_0x5f3d44:_0x1a72ce,_0x292674=_0x5f3d44+_0x8d8eaa>_0x292674?_0x5f3d44+_0x8d8eaa:_0x292674,_0x2b5538=_0x19e076<_0x2b5538?_0x19e076:_0x2b5538,_0x15e7d9=_0x19e076+_0x124e21>_0x15e7d9?_0x19e076+_0x124e21:_0x15e7d9;}return{'minRow':_0x1a72ce,'maxRow':_0x292674,'minColumn':_0x2b5538,'maxColumn':_0x15e7d9};}['_setupColumnsRowsFixing'](){const _0x12227d=this['editor'],_0x1a61be=_0x12227d['plugins']['get']('TrackChangesEditing'),_0x34ace9=_0x12227d['plugins']['get']('TableUtils');_0x12227d['model']['document']['on']('change:data',()=>{const _0x122dcd=Array['from'](_0x12227d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4530f7,data:_0x44bd99}of _0x122dcd){const {group:_0x470c75,id:_0x31670d,subType:_0xb64521}=_0x1a61be['_splitMarkerName'](_0x4530f7);if('suggestion'!=_0x470c75)continue;if(null!=_0x44bd99['oldRange'])continue;const _0x783923=_0x1a61be['getSuggestion'](_0x31670d);this['_tablePostFixingSubtypes']['includes'](_0xb64521)&&this['_tableSuggestions']['add'](_0x783923);}},{'priority':'low'});const _0x5de55d=(_0x3fe56e,_0x25250d)=>{let _0x1a24ce=!0x1;const _0x18bbc8=_0x25250d['createRangeOn'](_0x3fe56e),_0x40754f=_0x3fe56e['findAncestor']('table'),_0x49ece2=_0x34ace9['getCellLocation'](_0x3fe56e);for(const _0x2a57c6 of this['_tableSuggestions']){const _0x3bf711=_0x2a57c6['subType'],_0x516a0f=_0x3bf711['startsWith']('tablePaste'),_0x124f2e=_0x3bf711['substr'](_0x516a0f?0xa:0x5),_0x4a6531=_0x124f2e['toLowerCase'](),_0xaf62d7=_0x4a6531['substr'](0x0,0x3)+'span',_0x1ef62f='min'+_0x124f2e,_0x4c0132='max'+_0x124f2e;if(!_0x2a57c6['isInContent'])continue;if(_0x40754f!=_0x2a57c6['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2a57c6['isIntersectingWithRange'](_0x18bbc8))continue;const _0x13cbd7=_0x3fe56e['hasAttribute'](_0xaf62d7)?_0x3fe56e['getAttribute'](_0xaf62d7)-0x1:0x0,_0x5c2829=this['_getSuggestionCoords'](_0x2a57c6),_0x170c47=_0x5c2829[_0x1ef62f],_0x4b8856=_0x5c2829[_0x4c0132];_0x170c47<=_0x49ece2[_0x4a6531]&&_0x49ece2[_0x4a6531]+_0x13cbd7<=_0x4b8856&&(_0x2a57c6['addRange'](_0x18bbc8),_0x1a24ce=!0x0);}return _0x1a24ce;};_0x12227d['model']['document']['registerPostFixer'](_0x237965=>{let _0x1dcca7=!0x1;for(const _0x3efb26 of _0x12227d['model']['document']['differ']['getChanges']())if('insert'==_0x3efb26['type']){if('tableRow'==_0x3efb26['name']){for(const _0x47e4e8 of _0x3efb26['position']['nodeAfter']['getChildren']())_0x1dcca7=_0x1dcca7||_0x5de55d(_0x47e4e8,_0x237965);}else'tableCell'==_0x3efb26['name']&&(_0x1dcca7=_0x1dcca7||_0x5de55d(_0x3efb26['position']['nodeAfter'],_0x237965));}return _0x1dcca7;});}['_getSuggestionCoords'](_0x1a1021){return this['_getCoordsForCells'](_0x1a1021['getRanges']()['map'](_0x4d4d77=>_0x4d4d77['start']['nodeAfter']));}}function Ee(_0x5dc27d){return Array['from'](new Set(_0x5dc27d)['values']());}class vt extends _0x101975{static get['requires'](){return[It];}['afterInit'](){const _0x28726c=this['editor'],_0x7cd538=_0x28726c['model']['document']['selection'],_0x4f63a8=_0x28726c['locale'];if(!_0x28726c['plugins']['has']('TableEditing'))return;const _0x330201=_0x28726c['plugins']['get']('TrackChangesEditing'),_0x3e6e33=_0x28726c['plugins']['get']('TableUtils'),_0x59236d=_0x28726c['plugins']['get'](It);_0x59236d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x330201['enableCommand']('mergeTableCells',()=>{const _0x441d4d=_0x3e6e33['getSelectionAffectedTableCells'](_0x28726c['model']['document']['selection']);_0x28726c['model']['change'](()=>{_0x330201['markMultiRangeBlockFormat'](_0x441d4d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x28726c['commands']['get']('mergeTableCells')['on']('execute',(_0x1db3c8,_0x4659a9)=>{_0x28726c['commands']['get']('trackChanges')['value']&&(_0x4659a9['length']>0x0&&_0x4659a9[_0x4659a9['length']-0x1]&&_0x4659a9[_0x4659a9['length']-0x1]['forceDefaultExecution']||_0x330201['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1db3c8['stop']());},{'priority':'highest'});for(const _0x5c2796 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xb5a883=_0x28726c['commands']['get'](_0x5c2796);_0x330201['enableCommand'](_0x5c2796,()=>{const _0xb92caf=_0x28726c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xf2a47b=>_0xf2a47b['is']('element','tableCell')),_0x5e1fb6=_0xb5a883['value'];_0x28726c['model']['change'](()=>{_0x330201['markMultiRangeBlockFormat']([_0xb92caf,_0x5e1fb6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3f24f8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x22b45c=_0x28726c['commands']['get'](_0x3f24f8);_0x330201['enableCommand'](_0x3f24f8,()=>{const _0x124ac4=_0x3e6e33['getSelectionAffectedTableCells'](_0x28726c['model']['document']['selection'])[0x0],_0x1a7f20=_0x124ac4['findAncestor']('table'),{column:_0x1a484e,row:_0x562c70}=_0x3e6e33['getCellLocation'](_0x124ac4);let _0x5c9636=[];if('horizontally'==_0x22b45c['direction']){const _0x171d85=_0x3e6e33['createTableWalker'](_0x1a7f20,{'startRow':_0x562c70,'endRow':_0x562c70,'includeAllSlots':!0x0});_0x5c9636=Array['from'](_0x171d85)['map'](_0x3195e8=>_0x3195e8['cell']);}else{const _0xcb2415=_0x3e6e33['createTableWalker'](_0x1a7f20,{'column':_0x1a484e,'includeAllSlots':!0x0});_0x5c9636=Array['from'](_0xcb2415)['map'](_0x285817=>_0x285817['cell']);}_0x28726c['model']['change'](_0x6680ae=>{_0x330201['markBlockFormat'](_0x6680ae['createRangeOn'](_0x124ac4),{'commandName':_0x3f24f8,'commandParams':[]},_0x5c9636,_0x3f24f8);});});}_0x330201['descriptionFactory']['registerDescriptionCallback'](_0x7ee6c4=>{if('formatBlock'!=_0x7ee6c4['type']&&'formatInline'!=_0x7ee6c4['type'])return;const {data:_0x179010}=_0x7ee6c4;return _0x179010&&'mergeTableCells'==_0x179010['commandName']?{'type':'format','content':o(_0x4f63a8,'*Merge\x20cells*')}:void 0x0;}),_0x330201['descriptionFactory']['registerDescriptionCallback'](_0x21edaa=>{if('formatBlock'!=_0x21edaa['type']&&'formatInline'!=_0x21edaa['type'])return;const {data:_0x11dcb5}=_0x21edaa;return _0x11dcb5?'splitTableCellVertically'==_0x11dcb5['commandName']?{'type':'format','content':o(_0x4f63a8,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x11dcb5['commandName']?{'type':'format','content':o(_0x4f63a8,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x39066b=_0x59236d['_acceptFormatSuggestionCallbackFactory']();for(const _0x1695d6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x330201['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1695d6,'accept',_0x39066b);for(const _0x4062aa of['splitTableCellVertically','splitTableCellHorizontally'])_0x330201['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4062aa,'accept',_0x39066b);_0x330201['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x558647=>{_0x28726c['model']['change'](_0x300b5b=>{const _0x4b015c=Array['from'](_0x7cd538['getRanges']())['map'](_0xbdbdd2=>_0x1fbd79['fromRange'](_0xbdbdd2));_0x300b5b['setSelection'](_0x558647),_0x28726c['commands']['get']('mergeTableCells')['refresh'](),_0x28726c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x29e1dc=_0x4b015c['filter'](_0x3895c7=>'$graveyard'!=_0x3895c7['root']['rootName']);_0x29e1dc['length']>0x0&&_0x300b5b['setSelection'](_0x29e1dc);for(const _0x15124d of _0x4b015c)_0x15124d['detach']();});});for(const _0x2e2acf of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3104e7=_0x28726c['commands']['get'](_0x2e2acf);_0x3104e7['on']('set:isEnabled',(_0x350759,_0x84d79d,_0x183d3f)=>{if(_0x183d3f){const _0x17151d=_0x28726c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x12baeb=>_0x12baeb['is']('element','tableCell'));this['_areMergableCells'](_0x3104e7['value'],_0x17151d)||(_0x350759['return']=!0x1,_0x350759['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3ef044=this['editor']['commands']['get']('mergeTableCells'),_0x2f6593=this['editor']['plugins']['get']('TableUtils');if(!_0x3ef044['isEnabled'])return!0x1;const _0xd72ef=_0x2f6593['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4e3ac0 of _0xd72ef)for(const _0x564636 of _0xd72ef)if(_0x4e3ac0!=_0x564636&&!this['_areMergableCells'](_0x4e3ac0,_0x564636))return!0x1;return!0x0;}['_areMergableCells'](_0x43470e,_0x4f1cac){const _0x2034cc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3685f5=this['editor']['model']['createRangeOn'](_0x43470e),_0x4f4840=this['editor']['model']['createRangeOn'](_0x4f1cac),_0x35ee49=new Set(),_0x5c3219=new Set();for(const _0x3ff3d6 of _0x2034cc['getSuggestions']())if(('insertion'==_0x3ff3d6['type']||'deletion'==_0x3ff3d6['type']||'mergeTableCells'==_0x3ff3d6['subType'])&&_0x3ff3d6['isInContent']){for(const _0x202aa2 of _0x3ff3d6['getRanges']())_0x202aa2['containsRange'](_0x3685f5,!0x0)&&_0x35ee49['add'](_0x3ff3d6['type']+':'+_0x3ff3d6['author']['id']),_0x202aa2['containsRange'](_0x4f4840,!0x0)&&_0x5c3219['add'](_0x3ff3d6['type']+':'+_0x3ff3d6['author']['id']);}if(_0x35ee49['size']!=_0x5c3219['size'])return!0x1;for(const _0x40f55b of _0x35ee49)if(!_0x5c3219['has'](_0x40f55b))return!0x1;return!0x0;}}class Ct extends _0x101975{static get['requires'](){return[It];}['afterInit'](){const _0x2c0480=this['editor'];if(!_0x2c0480['plugins']['has']('TableEditing'))return;const _0xf94022=_0x2c0480['locale'],_0x3a0be3=_0x2c0480['plugins']['get']('TrackChangesEditing');_0x3a0be3['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3a0be3['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3a0be3['registerBlockAttribute']('headingRows'),_0x3a0be3['registerBlockAttribute']('headingColumns'),_0x3a0be3['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xf94022,'FORMAT_HEADER_ROW')),_0x3a0be3['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xf94022,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3d5a39=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11e496=this['editor']['plugins']['get']('TableUtils'),_0x183dfb=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x25b59b({showActiveMarker:_0x250224=!0x0,setDataAttribute:_0x14b7e1=!0x0}={}){return(_0x34c6b4,_0x54994b,_0x2b90c6)=>{const {type:_0x2446e5,id:_0x816e7d}=_0x3d5a39['_splitMarkerName'](_0x54994b['markerName']),_0x58138a=_0x3d5a39['getSuggestion'](_0x816e7d),_0x923b69=_0x58138a['data'];if('formatBlock'!=_0x58138a['type']||!_0x923b69||'setTableColumnHeader'!=_0x923b69['commandName'])return;if(_0x54994b['item'])return void _0x34c6b4['stop']();if(!_0x2b90c6['consumable']['consume'](_0x54994b['markerRange'],_0x34c6b4['name']))return;const _0x1f85ea=_0x54994b['markerRange']['start']['nodeAfter'],_0x3a4ff8=_0x54994b['markerRange']['end']['nodeBefore'],_0x4b385b=_0x1f85ea['parent']['parent'],{column:_0x202ff4}=_0x11e496['getCellLocation'](_0x1f85ea),{column:_0x2ad6a7}=_0x11e496['getCellLocation'](_0x3a4ff8);for(let _0x4c9852=_0x202ff4;_0x4c9852<=_0x2ad6a7;_0x4c9852++){const _0x3aa7cc=_0x11e496['createTableWalker'](_0x4b385b,{'column':_0x4c9852,'includeAllSlots':!0x1});for(const _0x293209 of _0x3aa7cc){const _0xf291a6=_0x293209['cell'],_0x48f6f7=_0x2b90c6['mapper']['toViewElement'](_0xf291a6);_0x2b90c6['writer']['addClass']('ck-suggestion-marker-'+_0x2446e5,_0x48f6f7),_0x14b7e1&&_0x2b90c6['writer']['setAttribute']('data-suggestion',_0x816e7d,_0x48f6f7),_0x2b90c6['mapper']['bindElementToMarker'](_0x48f6f7,_0x54994b['markerName']),_0x250224&&(_0x3d5a39['activeMarkers']['includes'](_0x54994b['markerName'])?_0x2b90c6['writer']['addClass']('ck-suggestion-marker--active',_0x48f6f7):_0x2b90c6['writer']['removeClass']('ck-suggestion-marker--active',_0x48f6f7));}}};}_0x3d5a39['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x183dfb),_0x3d5a39['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x183dfb),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x25b59b(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x166fdc,_0x3fe13e,_0x431a24)=>{_0x431a24['options']['showSuggestionHighlights']&&_0x25b59b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x166fdc,_0x3fe13e,_0x431a24);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3d5ca8,_0x3fab1b,_0x36b7d5)=>{const {type:_0x13a15f,id:_0x306640}=_0x3d5a39['_splitMarkerName'](_0x3fab1b['markerName']),_0x32ec4c=_0x3d5a39['getSuggestion'](_0x306640),_0x1e7453=_0x32ec4c['data'];if('formatBlock'!=_0x32ec4c['type']||!_0x1e7453||'setTableColumnHeader'!=_0x1e7453['commandName'])return;const _0xb6d83e=_0x36b7d5['mapper']['markerNameToElements'](_0x3fab1b['markerName']);if(_0xb6d83e){for(const _0x4e7e3c of _0xb6d83e)_0x36b7d5['writer']['removeClass']('ck-suggestion-marker-'+_0x13a15f,_0x4e7e3c),_0x36b7d5['writer']['removeClass']('ck-suggestion-marker--active',_0x4e7e3c),_0x36b7d5['writer']['removeAttribute']('data-suggestion',_0x4e7e3c),_0x36b7d5['mapper']['unbindElementFromMarkerName'](_0x4e7e3c,_0x3fab1b['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47dd10=this['editor'],_0x153923=_0x47dd10['locale'];function _0x1f942e(_0x3b3c4e){return{'type':'format','content':o(_0x153923,'*Format:*\x20%0',_0x3b3c4e)};}_0x47dd10['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x487743=>{if('formatBlock'!=_0x487743['type'])return;const {data:_0x16c9be}=_0x487743;if(_0x16c9be){if('setTableRowHeader'==_0x16c9be['commandName']){const _0x4b8df3=_0x16c9be['commandParams'][0x0]['forceValue'];return _0x1f942e(o(_0x153923,_0x4b8df3?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x16c9be['commandName']){const _0x4bcffa=_0x16c9be['commandParams'][0x0]['forceValue'];return _0x1f942e(o(_0x153923,_0x4bcffa?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Ce=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Pe=Object['fromEntries'](Ce['map'](_0x50cfb7=>[_0x50cfb7,null]));class _t extends _0x101975{static get['requires'](){return[It];}['afterInit'](){const _0x34d5a8=this['editor'];if(!_0x34d5a8['plugins']['has']('TableClipboard'))return;const _0x156106=_0x34d5a8['plugins']['get']('TrackChangesEditing'),_0x3a772a=_0x34d5a8['plugins']['get']('TableUtils'),_0x47e139=_0x34d5a8['plugins']['get'](It),_0x528254=_0x34d5a8['plugins']['get']('TableClipboard');_0x47e139['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x34d5a8['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x34d5a8['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5ca6e1=null;_0x34d5a8['model']['on']('insertContent',(_0x1b138f,_0x4fe9a2)=>{const [_0x95a66e,_0x541339]=_0x4fe9a2,_0x180bcd=_0x4fe9a2[_0x4fe9a2['length']-0x1];_0x180bcd&&_0x180bcd['forceDefaultExecution']||_0x156106['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5100d7,_0x41eb1a,_0x11286a,_0x37a320,_0x205d06){if(_0x41eb1a&&!_0x41eb1a['is']('documentSelection'))return!0x1;const _0x382977=_0x205d06['getTableIfOnlyTableInContent'](_0x5100d7,_0x11286a);if(!_0x382977||!ke(_0x382977,void 0x0,_0x37a320))return!0x1;const _0x3f1ef3=_0x37a320['getSelectionAffectedTableCells'](_0x11286a['document']['selection']);if(!_0x3f1ef3['length'])return!0x1;const _0x44b9bd=_0x3f1ef3[0x0]['findAncestor']('table'),_0x186aa8=_0x37a320['getRowIndexes'](_0x3f1ef3),_0x149e5b=_0x37a320['getColumnIndexes'](_0x3f1ef3),_0x55eb59={'startRow':_0x186aa8['first'],'endRow':_0x186aa8['last'],'startColumn':_0x149e5b['first'],'endColumn':_0x149e5b['last']};return 0x1==_0x3f1ef3['length']&&(_0x55eb59['endRow']+=_0x37a320['getRows'](_0x382977)-0x1,_0x55eb59['endColumn']+=_0x37a320['getColumns'](_0x382977)-0x1),ke(_0x44b9bd,_0x55eb59,_0x37a320);}(_0x95a66e,_0x541339,_0x34d5a8['model'],_0x3a772a,_0x528254)&&(_0x1b138f['stop'](),_0x5ca6e1={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x34d5a8['model']['change'](()=>{_0x34d5a8['model']['insertContent'](_0x4fe9a2[0x0],_0x4fe9a2[0x1],_0x4fe9a2[0x2],{'forceDefaultExecution':!0x0});const _0x34aa7f=_0x4600fb(),{rowInsertionRanges:_0x253ea5,columnInsertionRanges:_0xec8fd8,insertionRanges:_0x3971cd,deletionRanges:_0x5b7ed7,cells:_0x5c645c}=_0x5ca6e1;_0x253ea5['length']&&_0x156106['markMultiRangeInsertion'](_0x253ea5,'tablePasteRow',{'tablePasteChainId':_0x34aa7f}),_0xec8fd8['length']&&_0x156106['markMultiRangeInsertion'](_0xec8fd8,'tablePasteColumn',{'tablePasteChainId':_0x34aa7f}),_0x3971cd['length']&&(_0x156106['markMultiRangeInsertion'](_0x3971cd,'tablePaste',{'tablePasteChainId':_0x34aa7f,'skipNestingCheck':!0x0}),_0x3971cd['forEach'](_0x5aae4e=>_0x5aae4e['detach']?.())),_0x5b7ed7['length']&&(_0x156106['markMultiRangeDeletion'](_0x5b7ed7,'tablePaste',{'tablePasteChainId':_0x34aa7f,'skipNestingCheck':!0x0}),_0x5b7ed7['forEach'](_0x1f80e1=>_0x1f80e1['detach']?.()));const _0x2a9f2a=_0x156106['markMultiRangeBlockFormat'](_0x5c645c['map'](({element:_0x42a60c})=>_0x42a60c),{'formatGroupId':_0x4600fb()},[],'tablePasteCell',{'tablePasteChainId':_0x34aa7f});if(_0x2a9f2a){const _0x23d874=_0x2a9f2a['getMarkers'](),_0x31b511=[];for(const {element:_0x3a1896,attributes:_0x554bc0}of _0x5c645c){if(!_0x554bc0)continue;const _0xbd1cbb=_0x34d5a8['model']['createRangeOn'](_0x3a1896),_0x21a004=_0x23d874['find'](_0x144e7f=>_0x144e7f['getRange']()['isEqual'](_0xbd1cbb));_0x21a004&&_0x31b511['push']([_0x21a004['name'],_0x554bc0]);}_0x31b511['length']&&_0x2a9f2a['setAttribute']('markerAttributes',Object['fromEntries'](_0x31b511));}_0x5ca6e1=null;}));},{'priority':_0x436881['high']+0xa}),_0x34d5a8['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2d78e8,_0x507607)=>{const [_0x24ff22,_0x390aac,,_0x3a7b18]=_0x507607;if(!_0x5ca6e1)return;_0x2d78e8['stop']();const _0xc2f624=_0x24ff22['cell'],_0x3460f5=_0x390aac,_0xe4835f=we(_0xc2f624),_0x5c1e56=we(_0x3460f5);_0x2d78e8['return']=_0xc2f624;let _0x1de9b3=null,_0x181beb=null;if(_0x5c1e56||_0xe4835f){if(_0xe4835f&&!_0x5c1e56){_0x3a7b18['remove'](_0xc2f624['getChild'](0x0));for(const _0x56a081 of Array['from'](_0x3460f5['getChildren']()))_0x3a7b18['insert'](_0x56a081,_0xc2f624,'end');const _0x14b5a1=_0x5ca6e1['rowInsertionIndexes']['includes'](_0x24ff22['row']),_0x1dbc13=_0x5ca6e1['columnInsertionIndexes']['includes'](_0x24ff22['column']);_0x14b5a1||_0x1dbc13||(_0x1de9b3=_0x1fbd79['fromRange'](_0x3a7b18['createRangeIn'](_0xc2f624)));}else _0x5c1e56&&!_0xe4835f&&(_0x181beb=_0x3a7b18['createRangeIn'](_0xc2f624));}else{const _0x5e9943=_0x3a7b18['createElement']('tableCellSuggestion'),_0x52ff2c=_0x3a7b18['createElement']('tableCellSuggestion');_0x3a7b18['wrap'](_0x3a7b18['createRangeIn'](_0xc2f624),_0x52ff2c),_0x3a7b18['insert'](_0x5e9943,_0xc2f624,0x0);for(const _0x4e0bb2 of Array['from'](_0x3460f5['getChildren']()))_0x3a7b18['insert'](_0x4e0bb2,_0x5e9943,'end');_0x1de9b3=_0x1fbd79['fromRange'](_0x3a7b18['createRangeOn'](_0x5e9943)),_0x181beb=_0x1fbd79['fromRange'](_0x3a7b18['createRangeOn'](_0x52ff2c));}const _0x3c610b=Array['from'](_0x3460f5['getAttributes']())['filter'](([_0x2821dc])=>Ce['includes'](_0x2821dc));_0x5ca6e1['cells']['push']({'element':_0xc2f624,'attributes':_0x3c610b['length']?Object['fromEntries'](_0x3c610b):null}),_0x1de9b3&&_0x5ca6e1['insertionRanges']['push'](_0x1de9b3),_0x181beb&&_0x5ca6e1['deletionRanges']['push'](_0x181beb);},{'priority':'high'}),_0x3a772a['on']('insertColumns',(_0x54eb32,_0x3bcff5)=>{const [_0x5dc135,_0x56898d={}]=_0x3bcff5;if(!_0x5ca6e1)return;const _0x246578=_0x56898d['at']||0x0,_0x1e830a=_0x56898d['columns']||0x1;_0x5ca6e1['columnInsertionIndexes']=new Array(_0x1e830a)['fill'](_0x246578)['map']((_0x3cc8fa,_0x56e730)=>_0x3cc8fa+_0x56e730);for(const {cell:_0x5a9a2c}of _0x3a772a['createTableWalker'](_0x5dc135,{'startColumn':_0x246578,'endColumn':_0x246578+_0x1e830a-0x1}))_0x5ca6e1['columnInsertionRanges']['push'](_0x34d5a8['model']['createRangeOn'](_0x5a9a2c));},{'priority':'low'}),_0x3a772a['on']('insertRows',(_0x154bc7,_0x5802e3)=>{const [_0x326487,_0x17d32a={}]=_0x5802e3;if(!_0x5ca6e1)return;const _0x1ec195=_0x17d32a['at']||0x0,_0x5d1890=_0x17d32a['rows']||0x1;_0x5ca6e1['rowInsertionIndexes']=new Array(_0x5d1890)['fill'](_0x1ec195)['map']((_0x456a65,_0x2f8d09)=>_0x456a65+_0x2f8d09);for(const {cell:_0x5856c1}of _0x3a772a['createTableWalker'](_0x326487,{'startRow':_0x1ec195,'endRow':_0x1ec195+_0x5d1890-0x1}))_0x5ca6e1['rowInsertionRanges']['push'](_0x34d5a8['model']['createRangeOn'](_0x5856c1));},{'priority':'low'}),_0x156106['descriptionFactory']['registerDescriptionCallback'](_0x4c7a94=>{if(_0x4c7a94['subType']&&_0x4c7a94['subType']['startsWith']('tablePaste'))return _0x4c7a94['previous']?{}:{'type':'insertion','content':o(_0x34d5a8['locale'],'*Replace\x20table\x20cells*')};});const _0x567a9b=()=>!0x1;for(const _0x47a573 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x156106['_suggestionFactory']['registerCustomCallback']('insertion',_0x47a573,'join',_0x567a9b),_0x156106['_suggestionFactory']['registerCustomCallback']('deletion',_0x47a573,'join',_0x567a9b),_0x156106['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x47a573,'join',_0x567a9b);_0x156106['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x567a9b),_0x156106['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x57df1a,_0x502063,_0x5a1c2b)=>{const _0x218b88=_0x57df1a['map'](_0x28b2b7=>_0x28b2b7['getContainedElement']())['filter'](_0x5e4b4c=>_0x5e4b4c),_0x508dfd=new Map(_0x218b88['map'](_0x1eeee4=>[_0x1eeee4,null]));if(_0x5ca6e1){for(const {element:_0x5cdb80,attributes:_0x33c625}of _0x5ca6e1['cells'])_0x33c625&&_0x508dfd['set'](_0x5cdb80,_0x33c625);}else{if(_0x5a1c2b&&_0x5a1c2b['markerAttributes'])for(const [_0x18f967,_0x370527]of Object['entries'](_0x5a1c2b['markerAttributes'])){const _0x3f75c9=_0x34d5a8['model']['markers']['get'](_0x18f967),_0x90bd73=_0x3f75c9?_0x3f75c9['getRange']()['getContainedElement']():null;_0x90bd73&&_0x508dfd['set'](_0x90bd73,_0x370527);}}_0x34d5a8['model']['change'](_0x9048b5=>{for(const [_0x2c7ac4,_0x23de7d]of _0x508dfd)_0x9048b5['setAttributes']({...Pe,..._0x23de7d},_0x2c7ac4);});});const _0x5f3099=(_0x51a1df,_0x1cd5d2)=>{_0x156106['_suggestionFactory']['registerCustomCallback'](_0x51a1df,'tablePaste',_0x1cd5d2,(_0x3786b2,_0x4f1f37,_0x3d5f73)=>{_0x34d5a8['model']['change'](_0x40d5f0=>{const _0x448e3f=[];for(const _0x296e5e of _0x3786b2){const _0x195f3e=_0x296e5e['start']['nodeAfter'];_0x195f3e['is']('element','tableCellSuggestion')&&_0x448e3f['push'](_0x195f3e);}_0x156106['_suggestionFactory']['getSuggestionCallback'](_0x51a1df,null,_0x1cd5d2)(_0x3786b2,_0x4f1f37,_0x3d5f73);for(const _0x1cdb3e of _0x448e3f)'$graveyard'!=_0x1cdb3e['root']['rootName']&&_0x40d5f0['unwrap'](_0x1cdb3e);});});};_0x5f3099('insertion','accept'),_0x5f3099('insertion','discard'),_0x5f3099('deletion','accept'),_0x5f3099('deletion','discard'),_0x156106['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x46c242=>{const _0x5bc28f=_0x46c242['map'](_0x423de1=>_0x423de1['getContainedElement']()),_0x3ee468=_0x5bc28f[0x0]['findAncestor']('table'),{minRow:_0x97ef30,maxRow:_0x147381}=_0x47e139['_getCoordsForCells'](_0x5bc28f);_0x3a772a['removeRows'](_0x3ee468,{'at':_0x97ef30,'rows':_0x147381-_0x97ef30+0x1});}),_0x156106['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5d6eb2=>{const _0xd71ae5=_0x5d6eb2['map'](_0x5c94e1=>_0x5c94e1['getContainedElement']()),_0x23c307=_0xd71ae5[0x0]['findAncestor']('table'),{minColumn:_0x48dd7c,maxColumn:_0x28e2b0}=_0x47e139['_getCoordsForCells'](_0xd71ae5);_0x3a772a['removeColumns'](_0x23c307,{'at':_0x48dd7c,'columns':_0x28e2b0-_0x48dd7c+0x1});});const _0x9ccb4c=(_0x1a7d5c,_0x21e5c8)=>{if(!_0x21e5c8['subType']||!_0x21e5c8['subType']['startsWith']('tablePaste'))return;const _0x3d26c1=_0x21e5c8['attributes']['tablePasteChainId'],_0x3daf22=_0x156106['getSuggestions']()['filter'](_0xa42e58=>_0xa42e58['isInContent']&&_0xa42e58['attributes']&&_0xa42e58['attributes']['tablePasteChainId']==_0x3d26c1);_0x3daf22['length']&&_0x21e5c8['getAllAdjacentSuggestions']()['length']!=_0x3daf22['length']&&_0x3daf22['reduce']((_0x1782ff,_0x518334)=>(_0x1782ff['next']=_0x518334,_0x518334['previous']=_0x1782ff,_0x518334));};function _0x45500a(_0x44af68,_0x59a4ab=!0x0){const {id:_0x48ee4b}=_0x156106['_splitMarkerName'](_0x44af68['markerName']),_0xa4ccaa=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xbce788=_0x156106['activeMarkers']['includes'](_0x44af68['markerName']);return _0xbce788&&_0xa4ccaa['push']('ck-suggestion-marker--active'),{'classes':_0xa4ccaa,'attributes':{'data-suggestion':_0x48ee4b},'priority':_0xbce788&&_0x59a4ab?0xbc2:0xbb8};}_0x156106['on']('suggestionLoaded',_0x9ccb4c,{'priority':'high'}),_0x156106['on']('suggestionUnloaded',_0x9ccb4c,{'priority':'high'}),_0x34d5a8['model']['document']['registerPostFixer'](()=>{let _0x243769=!0x1;const _0x271acb=Array['from'](_0x34d5a8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1bd3d5,data:_0x541425}of _0x271acb){const {group:_0xaadefa,type:_0x1cb9ea,id:_0x243ea7}=_0x156106['_splitMarkerName'](_0x1bd3d5);if('suggestion'!=_0xaadefa||'deletion'!=_0x1cb9ea||_0x541425['oldRange'])continue;if(!_0x156106['hasSuggestion'](_0x243ea7))continue;const _0x58c30d=_0x156106['getSuggestion'](_0x243ea7)['getRanges'](),_0x236242=_0x34d5a8['plugins']['get']('Users')['me'];for(const _0x1c1aed of _0x156106['getSuggestions']()){if(!_0x1c1aed['isInContent']||_0x1c1aed['author']!=_0x236242)continue;if('formatBlock'!=_0x1c1aed['type']||'tablePasteCell'!=_0x1c1aed['subType'])continue;if(_0x1c1aed['getRanges']()['every'](_0x4d77e8=>_0x58c30d['some'](_0x2ca6f8=>_0x2ca6f8['containsRange'](_0x4d77e8,!0x0)))){for(const _0x5039c5 of _0x1c1aed['getAllAdjacentSuggestions']())_0x5039c5['isInContent']&&(_0x5039c5['discard'](),_0x243769=!0x0);}}}return _0x243769;}),_0x34d5a8['model']['document']['registerPostFixer'](_0x793cc7=>{const _0x360654=_0x34d5a8['commands']['get']('redo');if(!_0x360654||!_0x360654['_createdBatches']['has'](_0x793cc7['batch']))return!0x1;let _0x3383eb=!0x1;const _0x27e900=_0x34d5a8['plugins']['get']('Users')['me'],_0x82d60c=_0x34d5a8['model']['document']['differ']['getChanges'](),_0x511953=Array['from'](_0x34d5a8['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2e107c,data:_0x2c9d2b})=>{const {group:_0x5cf2db,subType:_0x4fa605,authorId:_0x4455ed}=_0x156106['_splitMarkerName'](_0x2e107c);return'suggestion'==_0x5cf2db&&'tablePaste'==_0x4fa605&&_0x4455ed==_0x27e900['id']&&!_0x2c9d2b['oldRange'];});for(const _0x29154a of _0x82d60c){if('insert'!=_0x29154a['type']||'tableCellSuggestion'!=_0x29154a['name']||0x1!=_0x29154a['length'])continue;const _0x1007a8=_0x793cc7['createRange'](_0x29154a['position'],_0x29154a['position']['getShiftedBy'](0x1));if(!_0x511953['find'](({data:_0x255b93})=>_0x255b93['newRange']['isEqual'](_0x1007a8))){for(const {name:_0x12261c,data:_0x48d1c3}of _0x511953)if(_0x1007a8['containsRange'](_0x48d1c3['newRange'])){_0x793cc7['updateMarker'](_0x12261c,{'range':_0x1007a8}),_0x3383eb=!0x0;break;}}}return _0x3383eb;}),_0x34d5a8['model']['document']['registerPostFixer'](_0x5c7051=>{let _0x57cbe5=!0x1;const _0xcd1aa6=_0x34d5a8['plugins']['get']('Users')['me'],_0x2bb516=_0x156106['getSuggestions']()['filter'](_0x405ddc=>_0x405ddc['isInContent']&&_0x405ddc['author']==_0xcd1aa6),_0x3f0e3e=new Set(),_0xd4ecd0=new Set();for(const _0x49e81e of _0x2bb516)if('tablePaste'==_0x49e81e['subType'])for(const _0x2b61c9 of _0x49e81e['getMarkers']()){const _0x1bd446=_0x2b61c9['getRange']()['getContainedElement']();if(_0x1bd446){if(_0x1bd446['is']('element','tableCellSuggestion')&&we(_0x1bd446)){_0x49e81e['removeMarker'](_0x2b61c9['name']),_0x3f0e3e['add'](_0x1bd446),_0x57cbe5=!0x0;const _0xa29950=_0x1bd446['nextSibling'],_0x2d0b9a=_0x1bd446['previousSibling'],_0x46dd32=_0xa29950&&_0xa29950['is']('element','tableCellSuggestion'),_0x131886=_0x2d0b9a&&_0x2d0b9a['is']('element','tableCellSuggestion');_0x46dd32&&!_0x3f0e3e['has'](_0xa29950)&&_0xd4ecd0['add'](_0xa29950),_0x131886&&!_0x3f0e3e['has'](_0x2d0b9a)&&_0xd4ecd0['add'](_0x2d0b9a);}else _0x1bd446['is']('element','paragraph')&&_0x1bd446['isEmpty']&&(_0x49e81e['removeMarker'](_0x2b61c9['name']),_0x57cbe5=!0x0);}}else{if('tablePasteCell'==_0x49e81e['subType']){if(!_0x49e81e['attributes']||!_0x49e81e['attributes']['tablePasteChainId'])continue;const _0x5c4c1a=_0x49e81e['attributes']['markerAttributes'];if(_0x5c4c1a&&Object['keys'](_0x5c4c1a)['length'])continue;const _0xca23d9=_0x49e81e['attributes']['tablePasteChainId'];let _0x4f7cc0=!0x0,_0x23495d=!0x0;for(const _0x301220 of _0x2bb516)if(_0x301220['subType']&&_0x301220['subType']['startsWith']('tablePaste')){if(!_0x301220['attributes']['tablePasteChainId']){_0x23495d=!0x1;break;}if(_0x301220['id']!=_0x49e81e['id']&&_0x301220['attributes']['tablePasteChainId']==_0xca23d9){_0x4f7cc0=!0x1;break;}}_0x23495d&&_0x4f7cc0&&(_0x49e81e['removeMarkers'](),_0x57cbe5=!0x0);}}for(const _0x88eca7 of _0x3f0e3e)_0x5c7051['remove'](_0x88eca7);for(const _0x5bd219 of _0xd4ecd0)_0x5c7051['unwrap'](_0x5bd219);return _0x57cbe5;}),_0x34d5a8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x505222,_0x315be7)=>_0x45500a(_0x505222),'converterPriority':'high'}),_0x34d5a8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3fb29d,_0x677d7b)=>_0x677d7b['options']['showSuggestionHighlights']?_0x45500a(_0x3fb29d,!0x1):null,'converterPriority':'high'});const _0x2aff74=_0x34d5a8['editing']['view'];this['listenTo'](_0x2aff74['document'],'clipboardOutput',(_0x589991,_0x2e65fd)=>{const _0x1c303e=[];for(const _0x104271 of _0x2aff74['createRangeIn'](_0x2e65fd['content'])['getItems']())_0x104271['is']('element','suggestion-td')&&_0x1c303e['push'](_0x104271);_0x2aff74['change'](_0x42bf20=>{for(const _0x76bf86 of _0x1c303e)_0x42bf20['move'](_0x42bf20['createRangeIn'](_0x76bf86),_0x42bf20['createPositionBefore'](_0x76bf86)),_0x42bf20['remove'](_0x76bf86);});});}}function we(_0x2958f0){if(_0x2958f0['isEmpty'])return!0x0;const _0x566d2a=_0x2958f0['getChild'](0x0);return _0x566d2a['is']('element','paragraph')&&_0x566d2a['isEmpty'];}function ke(_0x2a0272,_0x2e26c2={},_0x3bb471){for(const {isAnchor:_0x2312b3,cellHeight:_0x54bf84,cellWidth:_0x2b2178}of _0x3bb471['createTableWalker'](_0x2a0272,{'includeAllSlots':!0x0,..._0x2e26c2}))if(!_0x2312b3||0x1!=_0x54bf84||0x1!=_0x2b2178)return!0x1;return!0x0;}class Nt extends _0x101975{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x26708a=this['editor']['plugins']['get']('TrackChangesEditing');_0x26708a['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x26708a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x26708a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x26708a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x26708a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x26708a['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4f17d7,_0x2aa52d){const _0x51823b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35bd07=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2fe48f=_0x2aa52d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1ff24c=_0x35bd07['getColumnGroupElement'](_0x2fe48f);let _0x5add17=_0x1ff24c?_0x35bd07['getTableColumnsWidths'](_0x1ff24c):null,_0x7d0ea2=_0x2fe48f['getAttribute']('tableWidth')||null;const _0x5ae917=_0x2aa52d['tableWidth']||_0x7d0ea2,_0x1005a8=_0x2aa52d['columnWidths']||_0x5add17,_0x3cc5ea=this['editor']['plugins']['get']('Users')['me'];for(const _0x50c6d1 of _0x51823b['getSuggestions']()){const _0x3da6de=_0x50c6d1['getContainedElement']();if('resizeTable'===_0x50c6d1['subType']&&_0x3da6de===_0x2fe48f){_0x50c6d1['author']!==_0x3cc5ea&&_0x50c6d1['discard']();const _0x35eb92=_0x50c6d1['data']['commandParams'];_0x7d0ea2=_0x35eb92[0x0]['tableWidth'],_0x5add17=_0x35eb92[0x0]['columnWidths'];break;}}_0x4f17d7({'table':_0x2fe48f,'tableWidth':_0x5ae917,'columnWidths':_0x1005a8}),_0x51823b['markBlockFormat'](_0x2fe48f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x7d0ea2,'columnWidths':_0x5add17}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5141b1){if('formatBlock'!=_0x5141b1['type']&&'formatInline'!=_0x5141b1['type'])return;const {data:_0x59d13c}=_0x5141b1;if(_0x59d13c&&'resizeTable'===_0x59d13c['formatGroupId']){const _0x348f92='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x348f92)};}}}class Dt extends _0x101975{['afterInit'](){const _0x15de82=this['editor'];_0x15de82['plugins']['has']('Template')&&_0x15de82['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x101975{['afterInit'](){const _0x156550=this['editor'];if(!_0x156550['commands']['get']('insertTableOfContents'))return;_0x156550['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3c4fa9=_0x156550['plugins']['get']('TrackChangesEditing'),_0x498557=_0x156550['locale'];_0x3c4fa9['descriptionFactory']['registerElementLabel']('tableOfContents',_0x40a853=>o(_0x498557,'ELEMENT_TABLE_OF_CONTENTS',_0x40a853));}}class $t extends _0x101975{['afterInit'](){const _0x2ff04c=this['editor'];if(!_0x2ff04c['plugins']['has']('Title'))return;const _0x13051b=_0x2ff04c['plugins']['get']('TrackChangesEditing');_0x13051b['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2ff04c['locale'],'ELEMENT_TITLE')),_0x2ff04c['model']['document']['registerPostFixer'](_0x102857=>{let _0x322215=!0x1;const _0x1b389f=Array['from'](_0x2ff04c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5e7557,data:_0x263bc2}of _0x1b389f){const {group:_0x390ede}=_0x13051b['_splitMarkerName'](_0x5e7557);if('suggestion'!==_0x390ede||!_0x263bc2['newRange'])continue;const _0xf146b1=_0x263bc2['newRange'],_0x91ae6f=_0xf146b1['end']['nodeBefore'];if(!_0x91ae6f||!_0x91ae6f['is']('element','title-content'))continue;if(!_0xf146b1['start']['isTouching'](_0xf146b1['end']))continue;const _0x14ddba=_0x2ff04c['model']['schema']['getNearestSelectionRange'](_0xf146b1['end'],'forward');if(_0x14ddba&&_0x14ddba['isCollapsed']){const _0x3440fb=_0x102857['createRange'](_0xf146b1['start'],_0x14ddba['start']);_0x3440fb['isEqual'](_0xf146b1)||(_0x102857['updateMarker'](_0x5e7557,{'range':_0x3440fb}),_0x322215=!0x0);}_0x322215||(_0x102857['removeMarker'](_0x5e7557),_0x322215=!0x0);}return _0x322215;});}}class Bt extends _0x101975{['afterInit'](){const _0x58b585=this['editor'],_0x45f080=_0x58b585['plugins']['get']('TrackChangesEditing');_0x58b585['plugins']['has']('UndoEditing')&&(_0x45f080['enableCommand']('undo'),_0x45f080['enableCommand']('redo'));}}class xt extends _0x101975{static get['requires'](){return[It];}['afterInit'](){const _0x19d71f=this['editor'];if(!_0x19d71f['plugins']['has']('TableCaptionEditing'))return;_0x19d71f['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x101975{['tableProperties'];['tableCellProperties'];constructor(_0x18102b){super(_0x18102b),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 _0x10d17c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1ad591 of this['tableProperties'])_0x10d17c['enableCommand'](_0x1ad591,(_0x3c3ad0,_0x6f4536)=>{const _0x245141=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1ad591,[_0x245141],this['tableProperties'],'tableProperties',_0x3c3ad0,_0x6f4536);});_0x10d17c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x10d17c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x10d17c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2ac793,_0x40b1a3)=>this['handleDiscardAction'](this['tableProperties'],_0x2ac793,_0x40b1a3)),_0x10d17c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x32e074 of this['tableCellProperties'])_0x10d17c['enableCommand'](_0x32e074,(_0x4d0fa0,_0x2bb085)=>{const _0x2e2e75=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x32e074,_0x2e2e75,this['tableCellProperties'],'tableCellProperties',_0x4d0fa0,_0x2bb085);});_0x10d17c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x10d17c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x10d17c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x326a14,_0xa7cc0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x326a14,_0xa7cc0)),_0x10d17c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x10d17c['descriptionFactory']['registerDescriptionCallback'](_0x57ea3a=>this['handleSuggestionDescription'](_0x57ea3a));}['_handlePropertyChange'](_0x175b0f,_0x1a46ca,_0x31e652,_0x56538b,_0x28844,_0x3ffe14){const _0x1544ee=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3ffe14['batch'],()=>{for(const _0x362900 of _0x1a46ca){if(this['_getSuggestion'](_0x362900,_0x56538b))_0x28844(_0x3ffe14);else{const _0x4390d5={};for(const _0x3b7ae1 of _0x31e652){const _0x507787=_0x362900['getAttribute'](_0x3b7ae1);void 0x0!==_0x507787&&(_0x4390d5[_0x3b7ae1]=_0x507787);}_0x28844(_0x3ffe14),_0x1544ee['markBlockFormat'](_0x362900,{'commandParams':[_0x4390d5]},[],_0x56538b);}}});}['handleDiscardAction'](_0x1a16dc,_0x53a458,_0x52282c){const _0x4ac872=_0x53a458[0x0]['start']['nodeAfter'],_0x370e17=_0x52282c['commandParams'][0x0];this['editor']['model']['change'](_0xd284e9=>{for(const _0x5c9ba7 of _0x1a16dc)void 0x0!==_0x370e17[_0x5c9ba7]?_0xd284e9['setAttribute'](_0x5c9ba7,_0x370e17[_0x5c9ba7],_0x4ac872):_0xd284e9['removeAttribute'](_0x5c9ba7,_0x4ac872);});}['handleSuggestionDescription'](_0x56ce7d){if(_0x56ce7d['data'])switch(_0x56ce7d['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'](_0x1c91fc,_0x54d561){const _0x3374e4=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1a5cc7 of _0x3374e4['getSuggestions']({'skipNotAttached':!0x0})){const _0x1e108f=_0x1a5cc7['getContainedElement']();if(_0x1a5cc7['subType']===_0x54d561&&_0x1e108f===_0x1c91fc)return _0x1a5cc7;}return null;}}const m='$elementName';class p extends _0x101975{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0xf792e2,_0x4eef1e,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x539fa7){function _0x3b6f88(_0x5d4f3a){return _0x5d4f3a['map'](_0x33891=>String['fromCharCode'](_0x33891))['join']('');}super(_0x539fa7),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1297e4,_0x7f109e,_0x470118,_0x3611d5)=>{this['_model']['change'](()=>{for(const _0x2c6700 of[..._0x3611d5,..._0x470118])this['_model']['markers']['has'](_0x2c6700)&&_0x539fa7['editing']['reconvertMarker'](_0x2c6700);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x539fa7['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(),_0x539fa7['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x539fa7['config']['get']('trackChanges.trackFormatChanges'),_0x539fa7['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x539fa7['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x539fa7,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3b6f88([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3b6f88([0x34,0x30,0x34,0x38,0x31,0x36,0x30,0x38]);}['init'](){const _0x2359f6=this['editor'],_0x5ec5f4=(_0x26d6cf,_0x3e18b4)=>{if('attribute'!=_0x26d6cf)return'ck-suggestion-marker-'+_0x26d6cf;const _0x57786f=_0x3e18b4['split']('|')[0x0];return this['_isBlockAttribute'](_0x57786f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2359f6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4e9e30=>{const {id:_0x46b588,type:_0x3d535d,subType:_0x3b3358}=this['_splitMarkerName'](_0x4e9e30['markerName']),_0x5c168d=['ck-suggestion-marker',_0x5ec5f4(_0x3d535d,_0x3b3358)];let _0x125643=0xbb8;return this['activeMarkers']['includes'](_0x4e9e30['markerName'])&&(_0x5c168d['push']('ck-suggestion-marker--active'),_0x125643=0xbc2),'deletion'==_0x3d535d&&(_0x125643+=0x5),{'classes':_0x5c168d,'attributes':{'data-suggestion':_0x46b588},'priority':_0x125643};}}),_0x2359f6['conversion']['for']('dataDowncast')['add'](_0x4502d9=>{_0x4502d9['on']('addMarker:suggestion',(_0x4e95b1,_0x264176,_0x2b1a1f)=>{if(!_0x2b1a1f['options']['showSuggestionHighlights'])return;const _0xecaf3b=_0x264176['item'];if(!_0xecaf3b)return;const _0x4766b5=_0x2b1a1f['mapper']['toViewElement'](_0xecaf3b);_0x2359f6['model']['schema']['isObject'](_0xecaf3b)&&_0x4766b5&&!_0x4766b5['getCustomProperty']('widget')&&_0x4766b5['is']('containerElement')&&_0x112b44(_0x4766b5,_0x2b1a1f['writer']);},{'priority':'high'});}),_0x2359f6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x55545e,_0x3e13c5)=>{if(!_0x3e13c5['options']['showSuggestionHighlights'])return null;const {type:_0x38b7e5,subType:_0x544a22}=this['_splitMarkerName'](_0x55545e['markerName']);return{'classes':['ck-suggestion-marker',_0x5ec5f4(_0x38b7e5,_0x544a22)],'priority':0xbb8};}});const _0x4013a3=({showActiveMarkers:_0x4f03a8=!0x0,isAttributeSuggestion:_0x38a87c=!0x1}={})=>(_0x132746,_0x4a6f1d,_0x161be7)=>{if(!_0x4a6f1d['item'])return;const {id:_0x46b684}=this['_splitMarkerName'](_0x4a6f1d['markerName']);if(_0x38a87c){const _0x1503e4=this['_suggestions']['get'](_0x46b684),_0x370b91=this['_getAttributeKey'](_0x1503e4);if(!this['_isBlockAttribute'](_0x370b91))return;}if(_0x4a6f1d['item']['is']('selection'))return void _0x161be7['consumable']['consume'](_0x4a6f1d['item'],_0x132746['name']);const _0x125672=_0x161be7['mapper']['toViewElement'](_0x4a6f1d['item']);if(_0x4a6f1d['item']['is']('element')&&_0x2359f6['model']['schema']['isBlock'](_0x4a6f1d['item'])&&!_0x125672['getCustomProperty']('addHighlight')){_0x161be7['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x125672),_0x161be7['writer']['setAttribute']('data-suggestion',_0x46b684,_0x125672),_0x161be7['mapper']['bindElementToMarker'](_0x125672,_0x4a6f1d['markerName']),_0x4f03a8&&(this['activeMarkers']['includes'](_0x4a6f1d['markerName'])?_0x161be7['writer']['addClass']('ck-suggestion-marker--active',_0x125672):_0x161be7['writer']['removeClass']('ck-suggestion-marker--active',_0x125672));for(const _0xa45f41 of _0x2359f6['model']['createRangeIn'](_0x4a6f1d['item'])['getItems']())_0x161be7['consumable']['consume'](_0xa45f41,_0x132746['name']);_0x161be7['consumable']['consume'](_0x4a6f1d['item'],_0x132746['name']);}};_0x2359f6['conversion']['for']('dataDowncast')['add'](_0x414f9=>{_0x414f9['on']('addMarker:suggestion:formatBlock',(_0x3e8b71,_0x571ce8,_0x2dc194)=>{_0x2dc194['options']['showSuggestionHighlights']&&_0x4013a3({'showActiveMarkers':!0x1})(_0x3e8b71,_0x571ce8,_0x2dc194);},{'priority':'highest'});}),_0x2359f6['conversion']['for']('dataDowncast')['add'](_0x1847f5=>{_0x1847f5['on']('addMarker:suggestion:attribute',(_0x19ea5d,_0x1c39d0,_0x37eb03)=>{_0x37eb03['options']['showSuggestionHighlights']&&_0x4013a3({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x19ea5d,_0x1c39d0,_0x37eb03);},{'priority':'highest'});}),_0x2359f6['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x13733f,_0x5c3cea)=>_0x5c3cea['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x13733f['substr'](0xb)}}),_0x2359f6['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1b28c8,{writer:_0x544025})=>{let _0x1fab7c='suggestion:'+_0x1b28c8['getAttribute']('suggestion-type')+':'+_0x1b28c8['getAttribute']('id');return _0x1b28c8['getAttribute']('marker-count')&&(_0x1fab7c+=':'+_0x1b28c8['getAttribute']('marker-count')),_0x544025['createElement']('$marker',{'data-name':_0x1fab7c});}}),_0x2359f6['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2359f6['conversion']['for']('editingDowncast')['add'](_0x31c2fc=>{_0x31c2fc['on']('addMarker:suggestion:formatBlock',_0x4013a3(),{'priority':'high'});}),_0x2359f6['conversion']['for']('editingDowncast')['add'](_0x4fd202=>{_0x4fd202['on']('addMarker:suggestion:attribute',_0x4013a3({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2359f6['conversion']['for']('editingDowncast')['add'](_0x4fe0da=>{_0x4fe0da['on']('removeMarker:suggestion:formatBlock',(_0x1502b7,_0x1dc56b,_0x120263)=>{const _0x3dd5fe=_0x120263['mapper']['markerNameToElements'](_0x1dc56b['markerName']);if(_0x3dd5fe){for(const _0x19b808 of _0x3dd5fe)_0x19b808['getCustomProperty']('addHighlight')||(_0x120263['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x19b808),_0x120263['writer']['removeAttribute']('data-suggestion',_0x19b808),_0x120263['mapper']['unbindElementFromMarkerName'](_0x19b808,_0x1dc56b['markerName']));}},{'priority':'high'});}),_0x2359f6['conversion']['for']('editingDowncast')['add'](_0x409dc=>{_0x409dc['on']('removeMarker:suggestion:attribute',(_0x25baab,_0x14f183,_0x197cc2)=>{const _0x5370aa=_0x197cc2['mapper']['markerNameToElements'](_0x14f183['markerName']);if(!_0x5370aa)return;const {id:_0x6b0de0}=this['_splitMarkerName'](_0x14f183['markerName']),_0x4d8abe=this['_suggestions']['get'](_0x6b0de0),_0x3228a8=this['_getAttributeKey'](_0x4d8abe);if(this['_isBlockAttribute'](_0x3228a8)){for(const _0x20596f of _0x5370aa)_0x20596f['getCustomProperty']('addHighlight')||(_0x197cc2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x20596f),_0x197cc2['writer']['removeAttribute']('data-suggestion',_0x20596f),_0x197cc2['mapper']['unbindElementFromMarkerName'](_0x20596f,_0x14f183['markerName']));}},{'priority':'high'});}),_0x2359f6['model']['document']['registerPostFixer'](_0x354028=>{let _0x4acc4f=!0x1;const _0x3b0118=Array['from'](_0x2359f6['model']['document']['differ']['getChangedMarkers']()),_0x565f28=new Set();for(const {name:_0x5e6589,data:_0xbbd97c}of _0x3b0118){const {group:_0xa41c62,type:_0x33641c,subType:_0x329fcd,id:_0x3467b3}=this['_splitMarkerName'](_0x5e6589);if('suggestion'!==_0xa41c62)continue;const _0x2a0186=this['_suggestions']['get'](_0x3467b3);if(null!=_0xbbd97c['newRange']){'formatInline'==_0x33641c&&(_0x4acc4f=_0x4acc4f||Ut(_0xbbd97c['newRange'],_0x5e6589,_0x354028,_0x2359f6['model']['schema']));const _0x5d92eb='attribute'==_0x33641c&&this['_isBlockAttribute'](_0x329fcd['split']('|')[0x0]);if(_0xbbd97c['newRange']['isCollapsed']||'$graveyard'==_0xbbd97c['newRange']['root']['rootName']||'formatBlock'==_0x33641c&&!Ft(_0xbbd97c['newRange'])||_0x5d92eb&&!Ft(_0xbbd97c['newRange'])||'deletion'==_0x33641c&&!(!Vt(_0x4a21bc=_0xbbd97c['newRange'])&&!function(_0x44c65e){return _0x44c65e['start']['parent']==_0x44c65e['end']['nodeBefore']&&_0x44c65e['start']['isAtEnd'];}(_0x4a21bc)))_0x354028['removeMarker'](_0x5e6589),_0x4acc4f=!0x0;else{if(!_0x2a0186||!_0x2a0186['isInContent'])continue;if(_0xbbd97c['newRange']&&_0xbbd97c['oldRange']&&_0xbbd97c['newRange']['isEqual'](_0xbbd97c['oldRange']))continue;_0x565f28['add'](_0x2a0186);}}}var _0x4a21bc;return _0x565f28['size']>0x0&&(_0x4acc4f=!!this['_joinWithAdjacentSuggestions'](_0x565f28)||_0x4acc4f),_0x4acc4f;}),_0x2359f6['model']['document']['registerPostFixer'](_0x5bc531=>{let _0x142d5a=!0x1;for(const _0x39e112 of _0x2359f6['model']['document']['differ']['getChanges']())if('insert'==_0x39e112['type'])for(const _0x515431 of this['_suggestions']['values']()){if(_0x515431['isMultiRange']||!_0x515431['isInContent'])continue;const _0x5e3bc3='formatBlock'==_0x515431['type'],_0x3bfc3e=this['_getAttributeKey'](_0x515431),_0x41c2f3=_0x3bfc3e&&this['_isBlockAttribute'](_0x3bfc3e);if(!_0x5e3bc3&&!_0x41c2f3)continue;const _0x822a30=_0x515431['getFirstRange']();if(_0x822a30['start']['parent']!=_0x822a30['end']['parent']&&!_0x822a30['end']['isAtEnd']){const _0x1d4ac9=_0x2359f6['model']['createPositionAt'](_0x822a30['start']['nodeAfter'],'end'),_0x34ffc5=_0x2359f6['model']['createRange'](_0x822a30['start'],_0x1d4ac9);_0x5bc531['updateMarker'](_0x515431['getFirstMarker'](),{'range':_0x34ffc5}),_0x142d5a=!0x0;}}return _0x142d5a;}),_0x2359f6['model']['document']['registerPostFixer'](_0x2fca08=>this['_processAttributeChanges'](_0x2fca08)),_0x2359f6['model']['document']['registerPostFixer'](_0x13c42d=>!_0x13c42d['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x13c42d)),_0x2359f6['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2359f6['model']['document']['on']('change:data',(_0x4da5ab,_0x3f26af)=>{if(!_0x3f26af['isLocal']||_0x3f26af['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x23d7ba=_0x2359f6['model']['document']['differ']['getChanges']();if(0x0==_0x23d7ba['length'])return;const _0x4ddd2d=[],_0x136e2f=_0x23d7ba['filter'](_0x286be5=>'attribute'==_0x286be5['type']),_0x5be97b=_0x23d7ba['filter'](_0x5f4437=>'insert'==_0x5f4437['type']&&'$text'!=_0x5f4437['name']);for(const _0x4e2452 of _0x136e2f)this['_isRegisteredAttribute'](_0x4e2452['attributeKey'])&&_0x4ddd2d['push']({'key':_0x4e2452['attributeKey'],'newValue':_0x4e2452['attributeNewValue'],'oldValue':_0x4e2452['attributeOldValue'],'range':Pt(_0x4e2452['range'],_0x2359f6['model'])});for(const _0x4c95f9 of _0x5be97b){if('rename'!=_0x4c95f9['action']&&'refresh'!=_0x4c95f9['action'])continue;const _0x164bd5=Lt(_0x4c95f9['position']['nodeAfter'],_0x2359f6['model']),_0x4a9b5c=_0x4c95f9['before'];'rename'==_0x4c95f9['action']&&_0x4ddd2d['push']({'key':m,'newValue':_0x4c95f9['name'],'oldValue':_0x4a9b5c['name'],'range':_0x164bd5});for(const [_0x3240f0,_0x5f3afa]of _0x4a9b5c['attributes']){if(!this['_isRegisteredAttribute'](_0x3240f0))continue;const _0x474f64=_0x4c95f9['attributes']['get'](_0x3240f0);_0x5f3afa!==_0x474f64&&_0x4ddd2d['push']({'key':_0x3240f0,'newValue':_0x474f64,'oldValue':_0x5f3afa,'range':_0x164bd5});}for(const [_0x4fa97c,_0x31e319]of _0x4c95f9['attributes'])this['_isRegisteredAttribute'](_0x4fa97c)&&(_0x4a9b5c['attributes']['has'](_0x4fa97c)||_0x4ddd2d['push']({'key':_0x4fa97c,'newValue':_0x31e319,'oldValue':null,'range':_0x164bd5}));}0x0!=_0x4ddd2d['length']&&_0x2359f6['model']['enqueueChange'](_0x3f26af,_0x1df429=>{const _0x4df35=_0x4600fb();for(const {range:_0x2387e7,key:_0x2ba970,oldValue:_0x55ab35,newValue:_0x4b1cef}of _0x4ddd2d)this['markAttributeChange'](_0x2387e7,_0x2ba970,_0x55ab35,_0x4b1cef,{'groupId':_0x4df35});this['_reduceExistingSuggestions'](_0x1df429,_0x4ddd2d);});},{'priority':'lowest'}),_0x2359f6['model']['markers']['on']('update:suggestion',(_0x395548,_0x3e3c0a,_0x44bc2b)=>{if(null==_0x44bc2b){const {id:_0xd37370}=this['_splitMarkerName'](_0x3e3c0a['name']),_0x38dd2d=this['_suggestions']['get'](_0xd37370);_0x38dd2d&&_0x38dd2d['addMarkerName'](_0x3e3c0a['name']);}}),_0x2359f6['model']['document']['on']('change:data',()=>{const _0x495515=Array['from'](_0x2359f6['model']['document']['differ']['getChangedMarkers']())['filter'](_0x443075=>'suggestion'===this['_splitMarkerName'](_0x443075['name'])['group']);if(0x0===_0x495515['length'])return;_0x495515['sort']((_0x16d802,_0x3f997b)=>{const _0x42e3d2=_0x16d802['data']['oldRange'],_0x1cec9a=_0x3f997b['data']['oldRange'];return null===_0x42e3d2&&null===_0x1cec9a?0x0:null===_0x42e3d2&&null!==_0x1cec9a?-0x1:null!==_0x42e3d2&&null===_0x1cec9a?0x1:_0x42e3d2['start']['isBefore'](_0x1cec9a['start'])?-0x1:0x1;});const _0x4b0ef2=new Set(),_0x23954f=new Set();for(const {name:_0x564c22,data:_0x1ff401}of _0x495515){const {id:_0x5c3833}=this['_splitMarkerName'](_0x564c22);if(null===_0x1ff401['oldRange']){const _0x186c59=this['_handleNewSuggestionMarker'](_0x564c22);_0x23954f['add'](_0x186c59);}else{const _0x49b874=this['_suggestions']['get'](_0x5c3833);null!==_0x1ff401['newRange']||_0x49b874['isInContent']?(_0x4b0ef2['add'](_0x49b874['head']),_0x23954f['add'](_0x49b874)):this['_removeSuggestion'](_0x49b874);}}_0x23954f['size']>0x0&&this['_refreshSuggestionsChain'](_0x23954f);for(const _0x7c22a4 of _0x4b0ef2)this['fire']('suggestionChanged',_0x7c22a4);}),_0x2359f6['model']['on']('applyOperation',(_0x21dd94,_0x45f0e2)=>{const _0x8c0b0e=_0x45f0e2[0x0];if(!this['_suggestions']['size'])return;if(!_0x8c0b0e['isDocumentOperation'])return;if(_0x8c0b0e['batch']['isUndo']||!_0x8c0b0e['batch']['isLocal'])return;let _0x1b9704,_0x3b0aa8;switch(_0x8c0b0e['type']){case'insert':_0x1b9704=_0x2359f6['model']['createPositionAt'](_0x8c0b0e['position']),_0x3b0aa8=_0x1b9704['getShiftedBy'](_0x8c0b0e['howMany']);break;case'split':_0x1b9704=_0x2359f6['model']['createPositionAt'](_0x8c0b0e['splitPosition']),_0x3b0aa8=_0x2359f6['model']['createPositionAt'](_0x8c0b0e['moveTargetPosition']);break;case'move':_0x1b9704=_0x2359f6['model']['createPositionAt'](_0x8c0b0e['targetPosition']),_0x3b0aa8=_0x1b9704['getShiftedBy'](_0x8c0b0e['howMany']);break;default:return;}const _0x26a847=_0x2359f6['model']['createRange'](_0x1b9704,_0x3b0aa8);_0x2359f6['model']['change'](()=>{for(const {suggestion:_0x4f1663,meta:_0x247fad}of this['_findSuggestions'](_0x26a847)){if(_0x4f1663['isMultiRange'])continue;if('formatInline'==_0x4f1663['type'])continue;const _0x2a2600=this['_getAttributeKey'](_0x4f1663);if(_0x2a2600&&this['_isBlockAttribute'](_0x2a2600)&&'split'!=_0x8c0b0e['type'])continue;const _0x159163=_0x4f1663['data']&&_0x4f1663['data']['multipleBlocks'];('formatBlock'!=_0x4f1663['type']||'split'==_0x8c0b0e['type']&&!_0x159163)&&(_0x247fad['containsRangeInObject']||'insertion'==_0x4f1663['type']&&_0x247fad['isOwn']||_0x4f1663['getFirstRange']()['containsRange'](_0x26a847)&&this['_breakSuggestionMarker'](_0x4f1663,_0x1b9704,_0x3b0aa8));}});},{'priority':'lowest'}),_0x2359f6['model']['on']('deleteContent',(_0x5e53ab,_0x335f2d)=>{const _0x8c665a=_0x335f2d[0x0],_0x4e10a7=_0x335f2d[0x1];if(_0x4e10a7&&_0x4e10a7['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x8c665a['isCollapsed'])return;const _0x4c8a10=_0x2359f6['model']['schema'],{start:_0xd4c0ec,end:_0x1d9901}=_0x8c665a['getFirstRange'](),_0x45602a=_0xd4c0ec['nodeAfter']&&_0x4c8a10['isLimit'](_0xd4c0ec['nodeAfter'])?null:_0x4c8a10['getNearestSelectionRange'](_0xd4c0ec,'forward'),_0x5c0af6=_0x1d9901['nodeBefore']&&_0x4c8a10['isLimit'](_0x1d9901['nodeBefore'])?null:_0x4c8a10['getNearestSelectionRange'](_0x1d9901,'backward'),_0x219370=_0x2359f6['model']['createRange'](_0x45602a?_0x45602a['start']:_0xd4c0ec,_0x5c0af6?_0x5c0af6['end']:_0x1d9901);_0x2359f6['model']['change'](_0x41a63b=>{this['markDeletion'](_0x219370);const _0x2913ab=_0x2359f6['model']['schema']['getNearestSelectionRange'](_0x219370['start']);_0x8c665a['is']('documentSelection')?_0x41a63b['setSelection'](_0x2913ab):_0x8c665a['setTo'](_0x2913ab);}),_0x5e53ab['stop']();},{'priority':_0x436881['normal']+0xa}),_0x2359f6['model']['on']('insertContent',(_0x455124,_0x1db14e)=>{const _0x11372a=_0x1db14e[_0x1db14e['length']-0x1];_0x11372a&&_0x11372a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2359f6['model']['change'](()=>{let _0x191785=_0x2359f6['model']['insertContent'](_0x1db14e[0x0],_0x1db14e[0x1],_0x1db14e[0x2],{'forceDefaultExecution':!0x0});if(!_0x191785)return;_0x455124['return']=_0x191785['clone']();const _0x5e16c0=_0x191785['end']['nodeBefore'],_0xc48a36=_0x2359f6['model']['schema'];_0x5e16c0&&_0xc48a36['isBlock'](_0x5e16c0)&&!_0xc48a36['isObject'](_0x5e16c0)&&(_0x191785=_0x2359f6['model']['createRange'](_0x191785['start'],_0x2359f6['model']['createPositionAt'](_0x5e16c0,'end'))),this['markInsertion'](_0x191785);}),_0x455124['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x117c53=new x(_0x2359f6,this['_suggestions']);_0x2359f6['commands']['add']('acceptSuggestion',_0x117c53),this['enableCommand']('acceptSuggestion');const _0x2192ef=new R(_0x2359f6,this['_suggestions']);_0x2359f6['commands']['add']('discardSuggestion',_0x2192ef),this['enableCommand']('discardSuggestion'),_0x2359f6['commands']['add']('acceptAllSuggestions',new E(_0x2359f6,_0x117c53,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2359f6['commands']['add']('discardAllSuggestions',new E(_0x2359f6,_0x2192ef,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2359f6['commands']['add']('acceptSelectedSuggestions',new O(_0x2359f6,_0x117c53,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2359f6['commands']['add']('discardSelectedSuggestions',new O(_0x2359f6,_0x2192ef,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x350a11=_0x2359f6['plugins']['get']('CommentsRepository');this['listenTo'](_0x350a11,'addComment',(_0x34c9ee,{threadId:_0x44707b})=>{const _0x3a4621=this['_suggestions']['get'](_0x44707b);_0x3a4621&&_0x3a4621['commentThread']&&0x1===_0x3a4621['commentThread']['length']&&this['_updateSuggestionData'](_0x44707b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x350a11,'removeComment',(_0x5815ef,{threadId:_0x4e4bb0})=>{const _0x22e505=this['_suggestions']['get'](_0x4e4bb0);_0x22e505&&_0x22e505['commentThread']&&!_0x22e505['commentThread']['length']&&this['_updateSuggestionData'](_0x4e4bb0,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x109f16){if(this['_adapter'])throw new _0xa4d2dc('track-changes-adapter-already-set',this);this['_adapter']=_0x109f16;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2f4c5d=!0x1,toJSON:_0x4ca64f=!0x1}={}){const _0x3688ef=[];for(const _0x4668f0 of this['_suggestions']['values']())_0x2f4c5d&&!_0x4668f0['isInContent']||_0x3688ef['push'](_0x4668f0);return _0x4ca64f?_0x3688ef['map'](_0xa9190c=>_0xa9190c['toJSON']()):_0x3688ef;}['getSuggestion'](_0x1714e1){const _0x13abaa=this['_suggestions']['get'](_0x1714e1);if(!_0x13abaa)throw new _0xa4d2dc('track-changes-suggestion-not-found',this);return _0x13abaa;}['hasSuggestion'](_0x5dfd4f){return this['_suggestions']['has'](_0x5dfd4f);}['addSuggestionData'](_0x2de3b3){const {authorId:_0x5c829f,id:_0x36a406,attributes:_0x199a52}=_0x2de3b3,[_0x1dcc15,_0x32c35d]=_0x2de3b3['type']['split'](':'),_0x1fcace=this['_suggestions']['get'](_0x36a406)||this['_createSuggestion'](_0x1dcc15,_0x32c35d,_0x36a406,_0x5c829f,_0x199a52);if(this['_addThreadToSuggestion'](_0x1fcace),this['_checkSuggestionCorrectness'](_0x1fcace,_0x1dcc15,_0x32c35d||null,_0x5c829f),_0x1fcace['createdAt']=_0x2de3b3['createdAt'],_0x1fcace['_isDataLoaded']=!0x0,_0x199a52&&_0x199a52['@external']){const _0x2be4de=_0x199a52['@external'],_0x478050=this['_getExternalAuthor'](_0x2be4de['authorName']);_0x1fcace['authoredAt']=_0x2be4de['createdAt'],_0x1fcace['author']=_0x478050,_0x1fcace['isExternal']=!0x0;}else _0x1fcace['authoredAt']=_0x2de3b3['createdAt'];switch(_0x2de3b3['data']&&(_0x1fcace['data']=_0x2de3b3['data']),_0x2de3b3['attributes']&&(_0x1fcace['attributes']=_0x2de3b3['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1fcace['_saved']=!0x0),this['_suggestionState']['get'](_0x1fcace)){case'notReady':this['_suggestionState']['set'](_0x1fcace,'dataReady');break;case'markerReady':_0x1fcace['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1fcace])),this['_refreshSuggestionsChain'](new Set([_0x1fcace])),this['_suggestionState']['set'](_0x1fcace,'ready'),this['fire']('suggestionLoaded',_0x1fcace)):this['_suggestionState']['set'](_0x1fcace,'removed');}return _0x1fcace;}['acceptSuggestion'](_0x4c86a8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5252ab of _0x4c86a8['getAllAdjacentSuggestions']())_0x5252ab['accept']();});});}['discardSuggestion'](_0x3606a5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1c937c of _0x3606a5['getAllAdjacentSuggestions']())_0x1c937c['discard']();});});}['enableCommand'](_0x55fbfd,_0x5a1a8b){const _0x51e99a=this['editor']['commands']['get'](_0x55fbfd);if(!_0x51e99a)throw new _0xa4d2dc('track-changes-command-not-found',this,{'commandName':_0x55fbfd});if(this['_enabledCommands']['has'](_0x51e99a))throw new _0xa4d2dc('track-changes-enable-command-twice',this,{'commandName':_0x55fbfd});this['_enabledCommands']['add'](_0x51e99a),_0x5a1a8b&&_0x51e99a['on']('execute',(_0x20edab,_0x547225)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x547225['length']>0x0&&_0x547225[_0x547225['length']-0x1]&&_0x547225[_0x547225['length']-0x1]['forceDefaultExecution']?_0x547225['pop']():(_0x20edab['return']=_0x5a1a8b((..._0x4da282)=>_0x51e99a['execute'](..._0x4da282,{'forceDefaultExecution':!0x0}),..._0x547225),_0x20edab['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x560ebd){let _0x10e432,_0x27c743;const _0xd02d4f=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x10e432=_0x560ebd();}catch(_0x5ddd9e){_0x27c743=_0x5ddd9e;}return _0xd02d4f||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x27c743&&_0xa4d2dc['rethrowUnexpectedError'](_0x27c743,this),_0x10e432;}['markInsertion'](_0x564af7,_0x471192=null,_0x483521={}){if(_0x564af7['isCollapsed'])return null;const _0x4af14a=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x242e5c,meta:_0x2928fe}of this['_findSuggestions'](_0x564af7,'insertion'))if(_0x2928fe['isOwn']){if(!_0x2928fe['isNextTo']){if(_0x2928fe['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x242e5c,_0x483521))continue;return _0x242e5c;}if(qt(_0x242e5c,_0x483521))return _0x242e5c;this['_breakSuggestionMarker'](_0x242e5c,_0x564af7['start'],_0x564af7['end']);break;}if(_0x471192==_0x242e5c['subType']&&qt(_0x242e5c,_0x483521)){const _0xd141ec=_0x242e5c['getFirstRange']();return _0xd141ec['start']['isEqual'](_0x564af7['end'])?this['_setSuggestionRange'](_0x242e5c,this['_model']['createRange'](_0x564af7['start'],_0xd141ec['end'])):this['_setSuggestionRange'](_0x242e5c,this['_model']['createRange'](_0xd141ec['start'],_0x564af7['end'])),_0x242e5c;}}const _0x2a08cc=_0x4600fb(),_0x3c7538=_0x4af14a['id'],_0x1c03ec=_0x471192?'insertion:'+_0x471192:'insertion',_0x52a9b1=this['_setSuggestionData']({'id':_0x2a08cc,'type':_0x1c03ec,'createdAt':new Date(),'authorId':_0x3c7538,'attributes':_0x483521});return this['_addSuggestionMarker'](_0x1c03ec,_0x2a08cc,_0x3c7538,_0x564af7),_0x52a9b1;}['markMultiRangeInsertion'](_0x15e4cb,_0x27fa18='multi',_0x4c81ca={}){const _0x5cc87e=this['editor']['plugins']['get']('Users')['me'],_0x538c23=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x27fa18,'join');for(const _0x4575be of this['getSuggestions']())if(_0x4575be['author']['id']==_0x5cc87e['id']&&'insertion'==_0x4575be['type']&&_0x4575be['subType']==_0x27fa18&&qt(_0x4575be,_0x4c81ca)&&(_0x538c23(_0x4575be['getRanges'](),_0x15e4cb)||_0x538c23(_0x15e4cb,_0x4575be['getRanges']()))){for(const _0x40bc5d of _0x15e4cb)_0x4575be['addRange'](_0x40bc5d);return _0x4575be;}for(const {suggestion:_0x533174,meta:_0x525fd9}of this['_findSuggestions'](_0x15e4cb,'insertion')){if(!_0x525fd9['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x525fd9['containsRangeInObject'])continue;if(!qt(_0x533174,_0x4c81ca))continue;let _0x156aff=!0x0;for(const _0x3a73c6 of _0x533174['getRanges']())for(const _0x1d5d45 of _0x15e4cb)if(!_0x3a73c6['containsRange'](_0x1d5d45)){_0x156aff=!0x1;break;}if(_0x156aff)return _0x533174;}const _0x3b3fa2=_0x4600fb(),_0x158a11=_0x5cc87e['id'],_0x4e1fc5='insertion:'+_0x27fa18,_0x3dbee9=this['_setSuggestionData']({'id':_0x3b3fa2,'type':_0x4e1fc5,'createdAt':new Date(),'authorId':_0x158a11,'attributes':_0x4c81ca});for(const _0x13b84a of _0x15e4cb)this['_addSuggestionMarker'](_0x4e1fc5,_0x3b3fa2,_0x158a11,_0x13b84a,u['getMultiRangeId']());return _0x3dbee9;}['markInlineFormat'](_0x400c2f,_0x3ce77c,_0xea8a9e=null,_0x5247ce={}){if(_0xea8a9e=_0xea8a9e||Gt(_0x3ce77c),_0x400c2f['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x56ef96=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xea8a9e,'accept');return this['forceDefaultExecution'](()=>_0x56ef96([_0x400c2f],_0x3ce77c,_0x5247ce)),null;}const _0x26bd28=this['editor']['plugins']['get']('Users')['me'],_0x4d6ed9=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x454936,meta:_0x965caa}of this['_findSuggestions'](_0x400c2f,'insertion'))_0x965caa['isOwn']&&!_0x965caa['isInsideObject']&&_0x4d6ed9['push'](..._0x454936['getRanges']());}const _0x30bac0=function(_0x468135,_0x4018f9){const _0x2e4382=[];for(const _0x145644 of _0x4018f9){const _0x2fc027=_0x468135['getIntersection'](_0x145644);_0x2fc027&&_0x2e4382['push'](_0x2fc027);}return _0x2e4382;}(_0x400c2f,_0x4d6ed9),_0x86b745=function(_0x411eec,_0x152ab8){const _0x3ffe44=[_0x411eec];for(const _0x3528b7 of _0x152ab8){let _0x111db4=0x0;for(;_0x111db4<_0x3ffe44['length'];){const _0x5bd60a=_0x3ffe44[_0x111db4]['getDifference'](_0x3528b7);_0x3ffe44['splice'](_0x111db4,0x1,..._0x5bd60a),_0x111db4+=_0x5bd60a['length'];}}return _0x3ffe44;}(_0x400c2f,_0x4d6ed9);_0x30bac0['length']&&this['_model']['change'](()=>{for(const _0x386b32 of _0x30bac0){const _0x47f18c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xea8a9e,'accept');this['forceDefaultExecution'](()=>_0x47f18c([_0x386b32],_0x3ce77c,_0x5247ce));}});for(const _0x1ead52 of _0x86b745){let _0x4ab006=null,_0xf42d3d=_0x1ead52['start'],_0x2b1f3c=_0x1ead52['end'];for(const {suggestion:_0x476d12,meta:_0x1b8f63}of this['_findSuggestions'](_0x1ead52,'formatInline')){if(!_0x1b8f63['isOwn'])continue;if(_0x476d12['subType']!=_0xea8a9e)continue;if(!qt(_0x476d12,_0x5247ce))continue;const _0x4f4675=_0x476d12['getFirstRange']();if(_0x4f4675['containsRange'](_0x1ead52,!0x0))return null;_0xf42d3d=_0xf42d3d['isBefore'](_0x4f4675['start'])?_0xf42d3d:_0x4f4675['start'],_0x2b1f3c=_0x2b1f3c['isAfter'](_0x4f4675['end'])?_0x2b1f3c:_0x4f4675['end'],_0x4ab006?_0x4f4675['start']['isBefore'](_0x4ab006['getFirstRange']()['start'])?(_0x4ab006['removeMarkers'](),_0x4ab006=_0x476d12):_0x476d12['removeMarkers']():_0x4ab006=_0x476d12;}const _0x456220=this['_model']['createRange'](_0xf42d3d,_0x2b1f3c);if(_0x4ab006)this['_setSuggestionRange'](_0x4ab006,_0x456220);else{const _0x58b1fb=_0x4600fb(),_0x47d904=_0x26bd28['id'];this['_setSuggestionData']({'id':_0x58b1fb,'type':'formatInline:'+_0xea8a9e,'data':_0x3ce77c,'createdAt':new Date(),'authorId':_0x47d904,'attributes':_0x5247ce}),this['_addSuggestionMarker']('formatInline:'+_0xea8a9e,_0x58b1fb,_0x47d904,_0x456220);}}return null;}['markBlockFormat'](_0x15ca97,_0x3ea294,_0x1cf747=[],_0x23ad89=null,_0x531295={}){_0x3ea294['formatGroupId']||(_0x3ea294['formatGroupId']=_0x3ea294['commandName']),_0x3ea294['multipleBlocks']=_0x15ca97['is']('range'),_0x23ad89=_0x23ad89||Gt(_0x3ea294);const _0x2aa902=_0x1cf747['map'](_0x441326=>Lt(_0x441326,this['_model'])),_0x37b03b=_0x15ca97['is']('range')?_0x15ca97:Lt(_0x15ca97,this['_model']);if('never'===this['_trackFormatChanges']){const _0x27e0f2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x23ad89,'accept');return this['forceDefaultExecution'](()=>_0x27e0f2([_0x37b03b],_0x3ea294,_0x531295)),null;}_0x2aa902['push'](_0x37b03b);let _0x492f4f=!0x0;for(const _0x15eedb of _0x2aa902)if(!this['_rangeIsInLocalUserInsertion'](_0x15eedb)){_0x492f4f=!0x1;break;}if(_0x492f4f&&'always'!==this['_trackFormatChanges']){const _0x4a9efd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x23ad89,'accept');return this['forceDefaultExecution'](()=>_0x4a9efd([_0x37b03b],_0x3ea294,_0x531295)),null;}let _0x325fa0=null,_0x564b39=_0x37b03b['start'],_0x35c14d=_0x37b03b['end'];for(const {suggestion:_0x139dc5,meta:_0x212c11}of this['_findSuggestions'](_0x37b03b,'formatBlock')){if(!_0x212c11['isOwn'])continue;if(_0x212c11['isNextTo']||_0x212c11['containsRangeInObject']||_0x212c11['isInsideObject'])continue;if(_0x139dc5['data']['formatGroupId']!=_0x3ea294['formatGroupId'])continue;if(!qt(_0x139dc5,_0x531295))continue;const _0x390d91=_0x139dc5['getFirstRange']();if(_0x139dc5['subType']==_0x23ad89){if(_0x390d91['containsRange'](_0x37b03b,!0x0))return null;_0x564b39=_0x564b39['isBefore'](_0x390d91['start'])?_0x564b39:_0x390d91['start'],_0x35c14d=_0x35c14d['isAfter'](_0x390d91['end'])?_0x35c14d:_0x390d91['end'],_0x325fa0?_0x390d91['start']['isBefore'](_0x325fa0['getFirstRange']()['start'])?(_0x325fa0['removeMarkers'](),_0x325fa0=_0x139dc5):_0x139dc5['removeMarkers']():_0x325fa0=_0x139dc5;}else{const _0x70e2f2=_0x37b03b['getIntersection'](_0x390d91);this['_cutOutSuggestionMarker'](_0x139dc5,_0x70e2f2);}}const _0x1ab454=this['editor']['plugins']['get']('Users')['me'],_0x48d236=_0x4600fb(),_0x3cbea9=_0x1ab454['id'];if(_0x325fa0)return this['_setSuggestionRange'](_0x325fa0,this['_model']['createRange'](_0x564b39,_0x35c14d)),_0x325fa0;{const _0x197422=this['_setSuggestionData']({'id':_0x48d236,'type':'formatBlock:'+_0x23ad89,'data':_0x3ea294,'createdAt':new Date(),'authorId':_0x3cbea9,'attributes':_0x531295});return this['_addSuggestionMarker']('formatBlock:'+_0x23ad89,_0x48d236,_0x3cbea9,this['_model']['createRange'](_0x564b39,_0x35c14d)),_0x197422;}}['markMultiRangeBlockFormat'](_0x2ead24,_0x140810,_0x2795d3=[],_0x43bc37=null,_0x30d612={}){_0x140810['formatGroupId']||(_0x140810['formatGroupId']=_0x140810['commandName']);const _0x493faf=_0x2ead24[0x0];_0x140810['multipleBlocks']=_0x493faf['is']('range'),_0x43bc37=_0x43bc37||Gt(_0x140810);const _0x1d3518=_0x2795d3['map'](_0x42913d=>Lt(_0x42913d,this['_model'])),_0x1c2399=_0x493faf['is']('range')?_0x2ead24:_0x2ead24['map'](_0x38de8e=>Lt(_0x38de8e,this['_model']));if('never'===this['_trackFormatChanges']){const _0x18c4ad=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43bc37,'accept');return this['forceDefaultExecution'](()=>_0x18c4ad(_0x1c2399,_0x140810,_0x30d612)),null;}_0x1d3518['push'](..._0x1c2399);let _0x3b8087=!0x0;for(const _0x2d56d9 of _0x1d3518)if(!this['_rangeIsInLocalUserInsertion'](_0x2d56d9)){_0x3b8087=!0x1;break;}if(_0x3b8087&&'always'!==this['_trackFormatChanges']){const _0x214658=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43bc37,'accept');return this['forceDefaultExecution'](()=>_0x214658(_0x1c2399,_0x140810,_0x30d612)),null;}const _0x474aa1=this['editor']['plugins']['get']('Users')['me'];for(const _0x4a9a16 of this['getSuggestions']()){if(_0x4a9a16['author']['id']!=_0x474aa1['id'])continue;if('formatBlock'!=_0x4a9a16['type']||_0x4a9a16['data']['formatGroupId']!=_0x140810['formatGroupId'])continue;if(!qt(_0x4a9a16,_0x30d612))continue;const _0x4e25a0=_0x4a9a16['subType']==_0x43bc37;for(let _0xef0e52=0x0;_0xef0e52<_0x1c2399['length'];_0xef0e52++){const _0x437517=_0x1c2399[_0xef0e52];for(const _0x5305e2 of _0x4a9a16['getMarkers']()){const _0x2162f8=_0x5305e2['getRange']();if(_0x437517['isEqual'](_0x2162f8)){_0x4e25a0?(_0x1c2399['splice'](_0xef0e52,0x1),_0xef0e52--):_0x4a9a16['removeMarker'](_0x5305e2['name']);break;}}}}if(0x0==_0x1c2399['length'])return null;const _0x42be97=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43bc37,'join');for(const _0x48509f of this['getSuggestions']())if(_0x48509f['author']['id']==_0x474aa1['id']&&'formatBlock'==_0x48509f['type']&&_0x48509f['data']['formatGroupId']==_0x140810['formatGroupId']&&_0x48509f['subType']==_0x43bc37&&qt(_0x48509f,_0x30d612)&&(_0x42be97(_0x48509f['getRanges'](),_0x1c2399)||_0x42be97(_0x1c2399,_0x48509f['getRanges']()))){for(const _0x32564e of _0x1c2399)_0x48509f['addRange'](_0x32564e);return _0x48509f;}const _0x4dd11c=_0x4600fb(),_0x4f1e32=_0x474aa1['id'],_0x4f633e='formatBlock:'+_0x43bc37,_0x5b83ba=this['_setSuggestionData']({'id':_0x4dd11c,'type':_0x4f633e,'data':_0x140810,'createdAt':new Date(),'authorId':_0x4f1e32,'attributes':_0x30d612});for(const _0x186ac8 of _0x1c2399)this['_addSuggestionMarker'](_0x4f633e,_0x4dd11c,_0x4f1e32,_0x186ac8,u['getMultiRangeId']());return _0x5b83ba;}['markDeletion'](_0x391d1c,_0x3b8470=null,_0x2abd96={}){if(_0x391d1c['isCollapsed'])return null;const _0x30f925=this['editor']['plugins']['get']('Users')['me'],_0x4c2f99=new _0x1fbd79(_0x391d1c['start'],_0x391d1c['end']);for(const {suggestion:_0x5d4249,meta:_0x44a817}of this['_findSuggestions'](_0x4c2f99,'insertion'))if(_0x44a817['isOwn']&&!_0x44a817['isNextTo']){if(_0x5d4249['isMultiRange']){const _0x4b236b=_0x5d4249['getRanges']()['filter'](_0x29aec7=>'$graveyard'!=_0x29aec7['root']['rootName']);_0x4b236b['every'](_0x43a048=>_0x4c2f99['containsRange'](_0x43a048,!0x0))&&_0x5d4249['discard']();if(_0x4b236b['some'](_0x1a395d=>_0x1a395d['containsRange'](_0x4c2f99,!0x0))){const _0x309db7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3b8470,'accept');return this['forceDefaultExecution'](()=>_0x309db7([_0x4c2f99],null,_0x2abd96)),null;}}else{const _0x30f4b7=_0x4c2f99['getIntersection'](_0x5d4249['getFirstRange']());null!==_0x30f4b7&&_0x5d4249['_onDiscard']([_0x30f4b7],null,_0x2abd96);}}if(_0x4c2f99['detach'](),_0x4c2f99['isCollapsed']||'$graveyard'==_0x4c2f99['root']['rootName'])return null;let _0xe3087c=null,_0x4536f3=_0x4c2f99['start'],_0x389faa=_0x4c2f99['end'];const _0x5ac92c=this['_findSuggestions'](_0x4c2f99,'deletion');for(const {suggestion:_0x13be27,meta:_0x4aead4}of _0x5ac92c){const _0x56cfe1=this['_model']['createRange'](_0x4536f3,_0x389faa);if(_0x4aead4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4aead4['containsRangeInObject']&&!_0x4aead4['isInsideObject'])){if(_0x13be27['isMultiRange']){if(!qt(_0x13be27,_0x2abd96))continue;let _0x59122e=!0x0;for(const _0x747b39 of _0x13be27['getRanges']()){if(_0x747b39['containsRange'](_0x56cfe1,!0x0))return _0x13be27;_0x56cfe1['containsRange'](_0x747b39)||(_0x59122e=!0x1);}_0x59122e&&_0x13be27['discard']();}else{const _0x3cf07e=_0x13be27['getFirstRange']();if(_0x3cf07e['containsRange'](_0x56cfe1,!0x0))return _0x13be27;if(!qt(_0x13be27,_0x2abd96)){_0x56cfe1['containsRange'](_0x3cf07e)?_0x13be27['removeMarkers']():_0x3cf07e['containsPosition'](_0x4536f3)?_0x4536f3=_0x3cf07e['end']:_0x3cf07e['containsPosition'](_0x389faa)&&(_0x389faa=_0x3cf07e['start']);continue;}_0x4536f3=_0x4536f3['isBefore'](_0x3cf07e['start'])?_0x4536f3:_0x3cf07e['start'],_0x389faa=_0x389faa['isAfter'](_0x3cf07e['end'])?_0x389faa:_0x3cf07e['end'],_0x2abd96=Object['assign']({},_0x13be27['attributes']),_0xe3087c?_0x3cf07e['start']['isBefore'](_0xe3087c['getFirstRange']()['start'])?(_0xe3087c['removeMarkers'](),_0xe3087c=_0x13be27):_0x13be27['removeMarkers']():_0xe3087c=_0x13be27;}}}if(_0xe3087c)return this['_setSuggestionRange'](_0xe3087c,this['_model']['createRange'](_0x4536f3,_0x389faa)),_0xe3087c;{const _0xc83e59=_0x4600fb(),_0x31f348=this['_model']['createRange'](_0x4536f3,_0x389faa),_0x3f0e6d=_0x30f925['id'],_0x3ae643=_0x3b8470?'deletion:'+_0x3b8470:'deletion',_0x49843c=this['_setSuggestionData']({'id':_0xc83e59,'type':_0x3ae643,'createdAt':new Date(),'authorId':_0x3f0e6d,'attributes':_0x2abd96});return this['_addSuggestionMarker'](_0x3ae643,_0xc83e59,_0x3f0e6d,_0x31f348),_0x49843c;}}['markMultiRangeDeletion'](_0x3b4fb4,_0x56a1d2='multi',_0x3377d3={}){const _0x57802e=this['editor']['plugins']['get']('Users')['me'],_0x9e5d46=_0x3b4fb4['map'](_0x311607=>new _0x1fbd79(_0x311607['start'],_0x311607['end'])),_0x1ce82f=new Set();for(const {suggestion:_0x2a57b7,meta:_0x3a5607}of this['_findSuggestions'](_0x9e5d46,'insertion'))_0x3a5607['isOwn']&&!_0x3a5607['isNextTo']&&_0x1ce82f['add'](_0x2a57b7);for(const _0x3d9b4c of _0x1ce82f)if(_0x3d9b4c['isMultiRange']){const _0x51bb45=_0x3d9b4c['getRanges']();(!_0x3d9b4c['attributes']||!_0x3d9b4c['attributes']['skipNestingCheck'])&&(_0x51bb45['every'](_0x2ec871=>_0x9e5d46['some'](_0x4ec2ea=>_0x4ec2ea['containsRange'](_0x2ec871,!0x0)))&&_0x3d9b4c['discard']());if(_0x9e5d46['every'](_0x4dc9db=>_0x51bb45['some'](_0x3fe799=>_0x3fe799['containsRange'](_0x4dc9db,!0x0)))){const _0x544a3e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x56a1d2,'accept');return this['forceDefaultExecution'](()=>_0x544a3e(_0x3b4fb4,null,_0x3377d3)),null;}}else{const _0x470058=_0x3d9b4c['getFirstRange']();_0x9e5d46['some'](_0x22ae64=>_0x22ae64['containsRange'](_0x470058,!0x0))&&_0x3d9b4c['discard']();if(_0x9e5d46['every'](_0x34c910=>_0x470058['containsRange'](_0x34c910,!0x0))){const _0x2cc94d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x56a1d2,'accept');return this['forceDefaultExecution'](()=>_0x2cc94d(_0x9e5d46,null,_0x3377d3)),null;}}const _0x2f1aea=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x56a1d2,'join');let _0x221b8d=null;for(const _0x7259d of this['getSuggestions']())if(_0x7259d['author']['id']==_0x57802e['id']&&_0x7259d['isInContent']&&'deletion'==_0x7259d['type']&&_0x7259d['subType']==_0x56a1d2&&qt(_0x7259d,_0x3377d3)&&(_0x2f1aea(_0x7259d['getRanges'](),_0x9e5d46)||_0x2f1aea(_0x9e5d46,_0x7259d['getRanges']()))){if(_0x221b8d){if(_0x7259d['commentThread']&&_0x7259d['commentThread']['length'])continue;for(const _0x45f6f3 of _0x7259d['getRanges']())_0x221b8d['isIntersectingWithRange'](_0x45f6f3)||_0x221b8d['addRange'](_0x45f6f3);_0x7259d['removeMarkers']();}else{_0x221b8d=_0x7259d;for(const _0x2db395 of _0x9e5d46)_0x7259d['isIntersectingWithRange'](_0x2db395)||_0x7259d['addRange'](_0x2db395);}}if(_0x221b8d)return _0x221b8d;_0x1ce82f['clear']();for(const {suggestion:_0x1c3f93,meta:_0x3341a3}of this['_findSuggestions'](_0x9e5d46,'deletion'))_0x3341a3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3341a3['containsRangeInObject']&&!_0x3341a3['isInsideObject'])&&qt(_0x1c3f93,_0x3377d3)&&_0x1ce82f['add'](_0x1c3f93);for(const _0x487566 of _0x1ce82f){const _0x4e1c0d=_0x487566['getRanges']();if(!_0x3377d3||!_0x3377d3['skipNestingCheck']){if(_0x9e5d46['every'](_0x787dd9=>_0x4e1c0d['some'](_0x3d4415=>_0x3d4415['containsRange'](_0x787dd9,!0x0))))return _0x487566;}(!_0x487566['attributes']||!_0x487566['attributes']['skipNestingCheck'])&&(_0x4e1c0d['every'](_0x33671f=>_0x9e5d46['some'](_0x5e26af=>_0x5e26af['containsRange'](_0x33671f,!0x0)))&&_0x487566['discard']());}const _0x311eab=_0x4600fb(),_0x47087a=_0x57802e['id'],_0x457f31='deletion:'+_0x56a1d2,_0x48ea5c=this['_setSuggestionData']({'id':_0x311eab,'type':_0x457f31,'createdAt':new Date(),'authorId':_0x47087a,'attributes':_0x3377d3});for(const _0x2e816e of _0x9e5d46)_0x2e816e['detach'](),_0x2e816e['isCollapsed']||'$graveyard'==_0x2e816e['root']['rootName']||this['_addSuggestionMarker'](_0x457f31,_0x311eab,_0x47087a,_0x2e816e,u['getMultiRangeId']());return _0x48ea5c;}['markAttributeChange'](_0x13dc68,_0x410508,_0x51c9fe,_0x4eb220,_0x20c9fe){if(_0x13dc68['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x40a953=this['editor']['plugins']['get']('Users')['me']['id'],_0x551e1d=Array['from'](this['_suggestions']['values']())['filter'](_0x3513a7=>'attribute'==_0x3513a7['type']&&_0x3513a7['data']['key']==_0x410508&&_0x3513a7['isIntersectingWithRange'](_0x13dc68));if('default'===this['_trackFormatChanges']){const _0x213529=this['_findSuggestions'](_0x13dc68,'insertion')['filter'](({meta:_0x1f6c22})=>_0x1f6c22['isOwn']&&!_0x1f6c22['isInsideObject']&&!_0x1f6c22['isNextTo'])['map'](({suggestion:_0x13af4b})=>_0x13af4b);_0x551e1d['unshift'](..._0x213529);}const _0x137f8f=new Map([[_0x13dc68,_0x51c9fe]]);for(const _0x1b3f4a of _0x551e1d){const _0x234bcd='attribute'==_0x1b3f4a['type']?_0x1b3f4a['data']['oldValue']:void 0x0,_0x4c4555=_0x1b3f4a['getFirstRange'](),_0xff3967=Array['from'](_0x137f8f['keys']())['find'](_0x902107=>_0x902107['isIntersecting'](_0x4c4555));if(!_0xff3967)continue;const _0x448752=_0xff3967['getDifference'](_0x4c4555);this['_isBlockAttribute'](_0x410508)&&'insertion'==_0x1b3f4a['type']&&0x0!=_0x448752['length']||(_0x137f8f['delete'](_0xff3967),_0x448752['forEach'](_0x31fb38=>{_0x137f8f['set'](_0x31fb38,_0x51c9fe);}),'insertion'!=_0x1b3f4a['type']&&_0x234bcd!=_0x4eb220&&_0x137f8f['set'](_0xff3967['getIntersection'](_0x4c4555),_0x234bcd));}const _0x1d8c37=[];for(const [_0x1932d1,_0xbb1e5a]of _0x137f8f){const _0x39325=_0x4600fb(),_0x6dd4c0={'key':_0x410508,'oldValue':_0xbb1e5a,'newValue':_0x4eb220};_0x410508['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':_0x410508});const _0x1e28f4=('attribute:'+(_0x410508+'|'+Gt({'newValue':_0x4eb220})))['substring'](0x0,0x3c),_0x39d2e2=this['_setSuggestionData']({'id':_0x39325,'type':_0x1e28f4,'data':_0x6dd4c0,'createdAt':new Date(),'authorId':_0x40a953,'attributes':_0x20c9fe});_0x1d8c37['push'](_0x39d2e2),this['_addSuggestionMarker'](_0x1e28f4,_0x39325,_0x40a953,_0x1932d1);}return _0x1d8c37;}['enableDefaultAttributesIntegration'](_0x2b44e8){this['enableCommand'](_0x2b44e8,(_0x109e55,..._0x5d599f)=>{this['_recordAttributeChanges'](()=>{_0x109e55(..._0x5d599f);});});}['registerBlockAttribute'](_0x225430){this['_blockAttributeKeys']['add'](_0x225430);}['registerInlineAttribute'](_0x2c315c){this['_inlineAttributeKeys']['add'](_0x2c315c);}['_getAttributeKey'](_0x4b8582){return'attribute'==_0x4b8582['type']?_0x4b8582['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3563fe,_0x20cee0){const _0x3e7bc9=_0x3563fe['getFirstMarker']();this['_model']['change'](_0x3761e7=>{_0x3761e7['updateMarker'](_0x3e7bc9,{'range':_0x20cee0});});}['_addThreadToSuggestion'](_0xa22d70){const _0x89c45e=_0xa22d70['id'],_0x13dce2=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x89c45e)||this['_commentsRepository']['addCommentThread']({'channelId':_0x13dce2,'threadId':_0x89c45e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x34fae3=this['_commentsRepository']['getCommentThread'](_0x89c45e);_0x34fae3['unbind']('isRemovable'),_0x34fae3['isRemovable']=!0x1,_0xa22d70['commentThread']=_0x34fae3;}['_checkSuggestionCorrectness'](_0x2ef7b3,_0x34901f,_0x43a743,_0x224c6c){if(_0x2ef7b3['type']!=_0x34901f||_0x2ef7b3['subType']!=_0x43a743||_0x2ef7b3['creator']['id']!=_0x224c6c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xa4d2dc('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x54c6a7,_0x1255b7){const _0x388c94=_0x54c6a7['getFirstRange']();if(_0x1255b7['isEqual'](_0x388c94))_0x54c6a7['removeMarkers']();else{if(_0x388c94['containsRange'](_0x1255b7)){const _0x524fd8=this['_model']['createPositionAt'](_0x1255b7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x54c6a7,this['_model']['createRange'](_0x388c94['start'],_0x524fd8));const _0x459b82=_0x4600fb(),_0x4da034=_0x54c6a7['creator']['id'],_0x3ba3e4=_0x54c6a7['type']+':'+_0x54c6a7['subType'];this['_setSuggestionData']({'id':_0x459b82,'type':_0x3ba3e4,'createdAt':new Date(),'authorId':_0x4da034,'data':_0x54c6a7['data'],'attributes':_0x54c6a7['attributes']});const _0x2aa67e=this['_model']['createPositionAt'](_0x1255b7['end']['parent'],'after'),_0x20d558=this['_model']['createRange'](_0x2aa67e,_0x388c94['end']);this['_addSuggestionMarker'](_0x3ba3e4,_0x459b82,_0x4da034,_0x20d558);}else{if(_0x388c94['containsPosition'](_0x1255b7['start'])){const _0x545936=this['_model']['createPositionAt'](_0x1255b7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x54c6a7,this['_model']['createRange'](_0x388c94['start'],_0x545936));}else{const _0x5b32c9=this['_model']['createPositionAt'](_0x1255b7['end']['parent'],'after');this['_setSuggestionRange'](_0x54c6a7,this['_model']['createRange'](_0x5b32c9,_0x388c94['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x37a65c){for(const {suggestion:_0x4d6fb7,meta:_0x262604}of this['_findSuggestions'](_0x37a65c,'insertion')){if(!_0x262604['isOwn'])continue;const _0x34b9d2=_0x4d6fb7['getRanges']();for(const _0x3ec4df of _0x34b9d2)if(!_0x37a65c['getDifference'](_0x3ec4df)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x302bc1){const _0xdf4b83=this['editor']['plugins']['get']('Users')['getUser'](_0x302bc1);if(!_0xdf4b83)throw new _0xa4d2dc('track-changes-user-not-found',this);return _0xdf4b83;}['_getExternalAuthor'](_0x5e321a){const _0xdbadb0=this['editor']['plugins']['get']('Users'),_0x4b3569=_0x3ec661('external:'+_0x5e321a),_0x5c6a48=_0xdbadb0['getUser'](_0x4b3569);return _0x5c6a48||_0xdbadb0['addUser']({'id':_0x4b3569,'name':_0x5e321a});}['_createSuggestion'](_0x533812,_0x1f92fb,_0x1cabc7,_0x520133,_0x1a1b26){const _0x282153=this['_getAuthorFromId'](_0x520133),_0x279c1d=this['_suggestionFactory']['buildSuggestion'](_0x533812,_0x1f92fb,_0x1cabc7,_0x282153,_0x1a1b26,_0x4dd02d=>{this['_updateSuggestionData'](_0x1cabc7,{'attributes':_0x4dd02d});const _0x3b4200=this['getSuggestion'](_0x1cabc7);this['_joinWithAdjacentSuggestions'](new Set([_0x3b4200])),this['_refreshSuggestionsChain'](new Set([_0x3b4200]));});return this['listenTo'](_0x279c1d,'accept',()=>{this['_updateSuggestionData'](_0x1cabc7,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x279c1d,'discard',()=>{this['_updateSuggestionData'](_0x1cabc7,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1cabc7,_0x279c1d),this['_suggestionState']['set'](_0x279c1d,'notReady'),_0x279c1d;}['_splitMarkerName'](_0x39671d){const _0x63693e=_0x39671d['split'](':');return{'group':_0x63693e[0x0],'type':_0x63693e[0x1],'subType':_0x63693e['length']>=0x5?_0x63693e[0x2]:null,'id':_0x63693e['length']<0x5?_0x63693e[0x2]:_0x63693e[0x3],'authorId':_0x63693e['length']<0x5?_0x63693e[0x3]:_0x63693e[0x4],'markerCount':0x6==_0x63693e['length']?_0x63693e[0x5]:null};}['_breakSuggestionMarker'](_0x42c449,_0x20c825,_0x2d6003){const _0x228a5c=_0x42c449['getFirstRange'](),_0x374523=_0x228a5c['start'],_0x4e0e05=_0x228a5c['end'];this['_setSuggestionRange'](_0x42c449,this['_model']['createRange'](_0x374523,_0x20c825));const _0x5524fe=_0x4600fb(),_0x5aacd1=_0x42c449['creator']['id'],_0x4e5996=_0x42c449['type']+(_0x42c449['subType']?':'+_0x42c449['subType']:'');this['_setSuggestionData']({'id':_0x5524fe,'type':_0x4e5996,'createdAt':new Date(),'authorId':_0x5aacd1,'originalSuggestionId':_0x42c449['id'],'attributes':_0x42c449['attributes'],'data':_0x42c449['data']});const _0x3bf61b=this['_getAttributeKey'](_0x42c449);('formatBlock'==_0x42c449['type']||_0x3bf61b&&this['_isBlockAttribute'](_0x3bf61b))&&(_0x2d6003=this['_model']['createPositionBefore'](_0x2d6003['parent'])),this['_addSuggestionMarker'](_0x4e5996,_0x5524fe,_0x5aacd1,this['_model']['createRange'](_0x2d6003,_0x4e0e05));}['_findSuggestions'](_0x5314f8,_0x5d1e67=null){const _0x12bb4d=[],_0x5d3e8b=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5314f8)||(_0x5314f8=[_0x5314f8]);for(const _0x12998e of this['getSuggestions']()){if(!_0x12998e['isInContent'])continue;if(_0x5d1e67&&_0x12998e['type']!=_0x5d1e67)continue;let _0x19f147=!0x1;for(const _0x113523 of _0x12998e['getRanges']()){for(const _0x5792f7 of _0x5314f8){const _0x553c83=_0x5792f7['start']['isEqual'](_0x113523['end'])||_0x5792f7['end']['isEqual'](_0x113523['start']);if(_0x553c83||_0x5792f7['getIntersection'](_0x113523)){const _0x180a0f=_0x5792f7['containsRange'](_0x113523)&&Ot(this['_model']['schema'],_0x113523['start'],_0x5792f7),_0x2163cc=_0x113523['containsRange'](_0x5792f7)&&Ot(this['_model']['schema'],_0x5792f7['start'],_0x113523);_0x12bb4d['push']({'suggestion':_0x12998e,'meta':{'isOwn':_0x5d3e8b==_0x12998e['author'],'isNextTo':_0x553c83,'isInsideObject':_0x180a0f,'containsRangeInObject':_0x2163cc}}),_0x19f147=!0x0;break;}}if(_0x19f147)break;}}return _0x12bb4d;}['_addSuggestionMarker'](_0x1a4a91,_0x279df9,_0x3730fe,_0x1902a1,_0x10d6f2){this['_model']['change'](_0x26f4e3=>{let _0x391555='suggestion:'+_0x1a4a91+':'+_0x279df9+':'+_0x3730fe;_0x10d6f2&&(_0x391555=_0x391555+':'+_0x10d6f2),_0x26f4e3['addMarker'](_0x391555,{'range':_0x1902a1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x89279a){const _0x445b00=_0x89279a['previous'],_0x390ab5=_0x89279a['next'];_0x89279a['previous']=null,_0x89279a['next']=null,null!=_0x445b00&&_0x445b00['next']==_0x89279a&&(_0x445b00['next']=_0x390ab5),null!=_0x390ab5&&_0x390ab5['previous']==_0x89279a&&(_0x390ab5['previous']=_0x445b00),'ready'==this['_suggestionState']['get'](_0x89279a)&&(this['_suggestionState']['set'](_0x89279a,'removed'),this['fire']('suggestionUnloaded',_0x89279a,_0x445b00,_0x390ab5));}['_setSuggestionData'](_0x17629a){const _0x4bea00=_0x17629a['id'],_0x3bf448=this['addSuggestionData'](_0x17629a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1af891=this['editor']['plugins']['get']('PendingActions'),_0x26cd93=_0x3bf448['hasComments'],_0x16e8a=_0x3bf448['subType']?_0x3bf448['type']+':'+_0x3bf448['subType']:_0x3bf448['type'],_0x4beab0=this['editor']['locale'],_0x3d9f4b=_0x1af891['add'](o(_0x4beab0,'PENDING_ACTION_SUGGESTION')),_0x5a02d4={'id':_0x4bea00,'type':_0x16e8a,'hasComments':_0x26cd93,'data':_0x17629a['data']||null,'originalSuggestionId':_0x17629a['originalSuggestionId']||null,'attributes':_0x3bf448['attributes']};this['_adapter']['addSuggestion'](_0x5a02d4)['then'](_0x467710=>{_0x3bf448['_saved']=!0x0,_0x1af891['remove'](_0x3d9f4b),_0x467710&&_0x467710['createdAt']&&(this['_suggestions']['get'](_0x4bea00)['createdAt']=_0x467710['createdAt']);})['catch'](_0x11c9aa=>{throw _0x46c6cb('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3bf448['discard']();}),_0x3bf448['stopListening'](),this['_suggestions']['delete'](_0x3bf448['id']),this['_suggestionState']['delete'](_0x3bf448),_0x11c9aa;});}return _0x3bf448;}['_isBlockAttribute'](_0x5566be){return this['_blockAttributeKeys']['has'](_0x5566be);}['_updateSuggestionData'](_0x581a0f,_0x848f35){const _0x421314=this['editor']['plugins']['get']('PendingActions'),_0x20e858=this['getSuggestion'](_0x581a0f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x20e858['_saved']){const _0x28e4f2=_0x421314['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x581a0f,_0x848f35)['then'](()=>{_0x421314['remove'](_0x28e4f2);});}else _0x20e858['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x581a0f,_0x848f35);});}}['_getSuggestionData'](_0x3725bd){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xa4d2dc('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3725bd);}['_handleNewSuggestionMarker'](_0x346de0){const {id:_0x1b1c7d,type:_0x267557,subType:_0x19fffa,authorId:_0x126cfb}=this['_splitMarkerName'](_0x346de0),_0x131ef3=this['_suggestions']['get'](_0x1b1c7d)||this['_createSuggestion'](_0x267557,_0x19fffa,_0x1b1c7d,_0x126cfb,{});switch(this['_checkSuggestionCorrectness'](_0x131ef3,_0x267557,_0x19fffa,_0x126cfb),this['_suggestionState']['get'](_0x131ef3)){case'notReady':this['_getSuggestionData'](_0x1b1c7d)['then'](_0x4d7dad=>{let _0x469dee=Promise['resolve']();_0x4d7dad['hasComments']&&(_0x469dee=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1b1c7d})),_0x469dee['then'](()=>{this['addSuggestionData'](_0x4d7dad)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x131ef3,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1b1c7d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x131ef3,'ready'),this['fire']('suggestionLoaded',_0x131ef3);break;case'ready':this['fire']('suggestionChanged',_0x131ef3);}return _0x131ef3['addMarkerName'](_0x346de0),_0x131ef3;}['_refreshSuggestionsChain'](_0x343cfa){const _0x87535=Array['from'](_0x343cfa),_0x1b943c=_0x87535['filter'](_0x2bb78b=>'attribute'==_0x2bb78b['type']);this['_refreshAttributeSuggestionsChain'](_0x1b943c);const _0x261e3b=_0x87535['filter'](_0x530cbd=>!_0x530cbd['isMultiRange']&&'attribute'!=_0x530cbd['type']),_0x528611=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5f1a68=>!_0x5f1a68['isMultiRange']&&'attribute'!=_0x5f1a68['type']),_0x2930ae=_0x528611['filter'](_0x2b2bdf=>!_0x343cfa['has'](_0x2b2bdf)),_0x5f2209=new Map(_0x528611['map'](_0x30c71d=>[_0x30c71d,this['_suggestionFactory']['getSuggestionCallback'](_0x30c71d['type'],_0x30c71d['subType'],'chain')])),_0x6c7bc8=new Map(_0x528611['map'](_0x3247de=>[_0x3247de,_0x3247de['getFirstRange']()])),_0x2f0188=new Set(),_0x480a4d=new Set();for(let _0x2d8c20=0x0;_0x2d8c20<_0x261e3b['length'];_0x2d8c20++)_0x235821(_0x261e3b[_0x2d8c20],_0x261e3b,_0x2d8c20+0x1);for(let _0x52c400=0x0;_0x52c400<_0x261e3b['length'];_0x52c400++)_0x235821(_0x261e3b[_0x52c400],_0x2930ae,0x0);const _0x48c344=new Set();for(let _0x2c243a=0x0;_0x2c243a<_0x261e3b['length'];_0x2c243a++){const _0x17a5b0=_0x261e3b[_0x2c243a];!_0x480a4d['has'](_0x17a5b0)&&_0x17a5b0['previous']&&(_0x48c344['add'](_0x17a5b0['previous']),_0x17a5b0['previous']['next']===_0x17a5b0&&(_0x17a5b0['previous']['next']=null),_0x17a5b0['previous']=null),!_0x2f0188['has'](_0x17a5b0)&&_0x17a5b0['next']&&(_0x48c344['add'](_0x17a5b0['next']),_0x17a5b0['next']['previous']===_0x17a5b0&&(_0x17a5b0['next']['previous']=null),_0x17a5b0['next']=null);}function _0x235821(_0x4a64b4,_0x5571ff,_0x132309){for(let _0x256c3d=_0x132309;_0x256c3d<_0x5571ff['length'];_0x256c3d++){const _0x54d9e6=_0x34fc9f(_0x4a64b4,_0x5571ff[_0x256c3d]);_0x54d9e6&&(_0x54d9e6[0x0]['next']=_0x54d9e6[0x1],_0x54d9e6[0x1]['previous']=_0x54d9e6[0x0],_0x2f0188['add'](_0x54d9e6[0x0]),_0x480a4d['add'](_0x54d9e6[0x1]));}}function _0x34fc9f(_0x16d456,_0x40636d){if(_0x16d456['author']['id']!==_0x40636d['author']['id'])return null;const _0x2bb280=_0x5f2209['get'](_0x16d456)(_0x16d456,_0x40636d,_0x6c7bc8['get'](_0x16d456),_0x6c7bc8['get'](_0x40636d));if(!_0x2bb280)return null;return _0x5f2209['get'](_0x40636d)(_0x16d456,_0x40636d,_0x6c7bc8['get'](_0x16d456),_0x6c7bc8['get'](_0x40636d))?_0x2bb280[0x1]['commentThread']&&_0x2bb280[0x1]['commentThread']['length']?null:_0x2bb280:null;}_0x48c344['size']&&this['_refreshSuggestionsChain'](_0x48c344);}['_refreshAttributeSuggestionsChain'](_0x32f88e){if(0x0==_0x32f88e['length'])return;const _0x1e8f49=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1d4b91=>'attribute'==_0x1d4b91['type']&&_0x1d4b91['_isDataLoaded']),_0x3aff13=[],_0xf6bcac=new Map();for(const _0x54e82a of _0x1e8f49){const _0x1e290a=_0x3ec661(_0x54e82a['attributes']);_0xf6bcac['has'](_0x1e290a)||(_0xf6bcac['set'](_0x1e290a,_0x3aff13['length']),_0x3aff13['push']([]));const _0x16d676=_0xf6bcac['get'](_0x1e290a);_0x3aff13[_0x16d676]['push'](_0x54e82a);}!(function(){_0x3aff13['sort']((_0x26d901,_0x31f4b0)=>{const _0x37d96e=_0x26d901[0x0]['createdAt'],_0x585369=_0x31f4b0[0x0]['createdAt'];return _0x37d96e==_0x585369?_0x26d901[0x0]['attributes']['groupId']<_0x31f4b0[0x0]['attributes']['groupId']?-0x1:0x1:_0x37d96e<_0x585369?-0x1:0x1;});for(const _0x51de64 of _0x3aff13)_0x51de64['sort']((_0xad666,_0x17d299)=>_0xad666['id']<_0x17d299['id']?-0x1:0x1);}());for(let _0x2d9f2f=0x0;_0x2d9f2f<_0x3aff13['length'];_0x2d9f2f++){if(0x0==_0x3aff13[_0x2d9f2f]['length'])continue;const _0x20356f=[];for(let _0x562d6e=_0x2d9f2f+0x1;_0x562d6e<_0x3aff13['length'];_0x562d6e++)0x0!=_0x3aff13[_0x562d6e]['length']&&_0x1f78b3(_0x3aff13[_0x2d9f2f],_0x3aff13[_0x562d6e])&&_0x20356f['push'](_0x562d6e);for(const _0x2205f9 of _0x20356f)_0x3aff13[_0x2d9f2f]=_0x3aff13[_0x2d9f2f]['concat'](_0x3aff13[_0x2205f9]),_0x3aff13[_0x2205f9]=[];}for(const _0x54a4c6 of _0x3aff13)for(let _0x1eeeb2=0x0;_0x1eeeb2<_0x54a4c6['length'];_0x1eeeb2++){const _0x3716b6=_0x54a4c6[_0x1eeeb2+0x1]||null;_0x54a4c6[_0x1eeeb2]['next']!==_0x3716b6&&(_0x54a4c6[_0x1eeeb2]['next']=_0x3716b6);}for(const _0x246d7e of _0x3aff13)for(let _0x4d85b4=0x0;_0x4d85b4<_0x246d7e['length'];_0x4d85b4++){const _0x157d84=_0x246d7e[_0x4d85b4-0x1]||null;_0x246d7e[_0x4d85b4]['previous']!==_0x157d84&&(_0x246d7e[_0x4d85b4]['previous']=_0x157d84);}function _0x1f78b3(_0x92603b,_0x3f0e1c){if(_0x92603b[0x0]['attributes']['groupId']!==_0x3f0e1c[0x0]['attributes']['groupId']&&_0x92603b[0x0]['author']!==_0x3f0e1c[0x0]['author'])return!0x1;if(!function(_0x2a15c1,_0x534341){if(!_0x2a15c1['hasComments']&&!_0x534341['hasComments'])return!0x0;if(_0x2a15c1['hasComments']&&_0x534341['hasComments'])return!0x1;if(_0x2a15c1['hasComments']&&_0x534341['createdAt']<_0x2a15c1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x534341['hasComments']&&_0x2a15c1['createdAt']<_0x534341['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x92603b[0x0],_0x3f0e1c[0x0]))return!0x1;const _0x1cf016=Tt(_0x92603b[0x0]['attributes'],'groupId'),_0x3e0dd2=Tt(_0x3f0e1c[0x0]['attributes'],'groupId');if(!_0x4edce7(_0x1cf016,_0x3e0dd2))return!0x1;return!!_0x92603b['every'](_0x419b4b=>_0x3f0e1c['some'](_0x2a3f0b=>_0x419b4b['getFirstRange']()['isEqual'](_0x2a3f0b['getFirstRange']())))&&_0x3f0e1c['every'](_0x20daf6=>_0x92603b['some'](_0x4d3813=>_0x20daf6['getFirstRange']()['isEqual'](_0x4d3813['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5242da){const _0xd040c1=Array['from'](_0x5242da),_0x3deb03=this['getSuggestions']({'skipNotAttached':!0x0}),_0x374ca4=_0x3deb03['filter'](_0xbc921b=>!_0x5242da['has'](_0xbc921b)),_0x283b35=new Map(_0xd040c1['map'](_0x1b94f8=>[_0x1b94f8,this['_suggestionFactory']['getSuggestionCallback'](_0x1b94f8['type'],_0x1b94f8['subType'],'join')])),_0x278d46=new Map(_0x3deb03['map'](_0x588eb2=>[_0x588eb2,_0x588eb2['getRanges']()]));for(let _0x2f504d=0x0;_0x2f504d<_0xd040c1['length'];_0x2f504d++){if(_0x5a5b06(this,_0xd040c1[_0x2f504d],_0xd040c1,_0x2f504d+0x1))return!0x0;}for(let _0x31a50c=0x0;_0x31a50c<_0xd040c1['length'];_0x31a50c++){if(_0x5a5b06(this,_0xd040c1[_0x31a50c],_0x374ca4,0x0))return!0x0;}return!0x1;function _0x5a5b06(_0x2444ba,_0xcd82e2,_0x5035fc,_0x5ba578){for(let _0x3af737=_0x5ba578;_0x3af737<_0x5035fc['length'];_0x3af737++){const _0x4a9a84=_0x5035fc[_0x3af737];if(_0x4a9a84['type']!==_0xcd82e2['type']||_0x4a9a84['author']['id']!==_0xcd82e2['author']['id']||_0x4a9a84['subType']!==_0xcd82e2['subType'])continue;if(!Jt(_0xcd82e2,_0x4a9a84))continue;if('attribute'==_0xcd82e2['type']&&_0xcd82e2['data']['oldValue']!=_0x4a9a84['data']['oldValue'])continue;if('attribute'==_0xcd82e2['type']&&_0x2444ba['_isBlockAttribute'](_0xcd82e2['data']['key']))continue;if('formatBlock'==_0xcd82e2['type']){const _0x28daac=_0x2444ba['editor']['model'],_0x360080=_0xcd82e2['getContainedElement']();if(_0x360080&&(_0x28daac['schema']['isObject'](_0x360080)||_0x28daac['schema']['isLimit'](_0x360080)))continue;}const _0x3cceae=_0x283b35['get'](_0xcd82e2),_0x272a3d=_0x278d46['get'](_0xcd82e2),_0xb4d49d=_0x278d46['get'](_0x4a9a84),_0x32292a=_0xcd82e2['commentThread']&&_0xcd82e2['commentThread']['length'],_0x3abe43=_0x4a9a84['commentThread']&&_0x4a9a84['commentThread']['length'];if(!_0x32292a&&_0x3cceae(_0xb4d49d,_0x272a3d))return _0x2444ba['_joinSuggestions'](_0x4a9a84,_0xcd82e2),_0x278d46['delete'](_0xcd82e2),!0x0;if(!_0x3abe43&&_0x3cceae(_0x272a3d,_0xb4d49d))return _0x2444ba['_joinSuggestions'](_0xcd82e2,_0x4a9a84),_0x278d46['delete'](_0x4a9a84),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1432c4,_0x530654){if(_0x1432c4['isMultiRange']){for(const _0x4a9f13 of _0x530654['getRanges']())_0x1432c4['addRange'](_0x4a9f13);}else{const _0x42560a=_0x530654['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1432c4,this['_model']['createRange'](_0x1432c4['getFirstRange']()['start'],_0x42560a));}_0x530654['removeMarkers']();}['_getMarkerAnnouncementText'](_0x39459a,_0x49a2b4,_0x2d7f5f){const _0x3ba5a7=_0x39459a['startsWith']('format')||_0x39459a['startsWith']('attribute')?'FORMATTING':_0x39459a['toUpperCase']();return o(this['editor']['locale'],_0x49a2b4+'_'+_0x3ba5a7+'_SUGGESTION_ANNOUNCEMENT',_0x2d7f5f);}['_initAriaMarkerChangeAnnouncements'](){const _0x503e3d=this['editor'];if(!_0x503e3d['ui'])return;const {ariaLiveAnnouncer:_0x39f2bd}=_0x503e3d['ui'];_0xde0f23(this['_model'],({left:_0x39a068,entered:_0x39f677})=>{for(const _0x27ff5c of _0x39a068){const {group:_0x147bfe,type:_0x51551c}=this['_splitMarkerName'](_0x27ff5c['name']);if('suggestion'===_0x147bfe){_0x39f2bd['announce'](this['_getMarkerAnnouncementText'](_0x51551c,'LEAVE'));break;}}for(const _0x2e2b31 of _0x39f677){const {group:_0x4f1101,type:_0x3c4b08}=this['_splitMarkerName'](_0x2e2b31['name']);if('suggestion'===_0x4f1101){_0x39f2bd['announce'](this['_getMarkerAnnouncementText'](_0x3c4b08,'ENTER',_0x5349d5(_0x1c777e)));break;}}});}['_processAttributeChanges'](_0x21ba30){if(this['_recordAttributeSuggestions'])return!0x1;const _0x339024=this['editor'],_0x5d958c=_0x339024['model']['document']['differ']['getChanges']();if(0x0==_0x5d958c['length'])return!0x1;const _0x2744db=[],_0x5c3d72=_0x5d958c['filter'](_0x56472a=>'attribute'==_0x56472a['type']),_0x5b27cb=_0x5d958c['filter'](_0x79b4d4=>'insert'==_0x79b4d4['type']&&'$text'!=_0x79b4d4['name']),_0x2aa700=_0x5d958c['filter'](_0x4b9c00=>'remove'==_0x4b9c00['type']&&'$text'!=_0x4b9c00['name']);for(const _0x2e1783 of _0x5c3d72)_0x2744db['push']({'key':_0x2e1783['attributeKey'],'newValue':_0x2e1783['attributeNewValue'],'oldValue':_0x2e1783['attributeOldValue'],'range':Pt(_0x2e1783['range'],_0x339024['model'])});for(const _0xc39139 of _0x5b27cb){const _0x314056=_0x2aa700['find'](_0x561ed3=>_0x561ed3['position']['isEqual'](_0xc39139['position']));_0x314056&&_0x2744db['push']({'key':m,'newValue':_0xc39139['name'],'oldValue':_0x314056['name'],'range':_0x339024['model']['createRangeOn'](_0xc39139['position']['nodeAfter'])});}return 0x0!=_0x2744db['length']&&this['_reduceExistingSuggestions'](_0x21ba30,_0x2744db);}['_processAttributeSuggestions'](_0x538fc7){let _0x5948e6=!0x1;const _0x1b342e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x569734=>_0x569734['data']['newRange']&&_0x569734['name']['startsWith']('suggestion:attribute:'));for(const _0x527c97 of _0x1b342e){const {subType:_0x308f7e,id:_0x5a364d}=this['_splitMarkerName'](_0x527c97['name']),_0x65d06d=_0x308f7e['split']('|')[0x0];for(const _0x15467f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x15467f['id']!=_0x5a364d&&'attribute'==_0x15467f['type']&&_0x15467f['data']&&_0x15467f['data']['key']==_0x65d06d&&_0x15467f['getFirstRange']()['isIntersecting'](_0x527c97['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x15467f,_0x527c97['data']['newRange'],_0x538fc7),_0x5948e6=!0x0);}return _0x5948e6;}['_recordAttributeChanges'](_0x1022cd){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x1022cd();}['_isRegisteredAttribute'](_0x12db5c){const _0x11b2c9=this['_isBlockAttribute'](_0x12db5c),_0x134084=this['_inlineAttributeKeys']['has'](_0x12db5c);return _0x11b2c9||_0x134084;}['_reduceExistingSuggestions'](_0x16d083,_0x4a0725){if(0x0==_0x4a0725['length'])return!0x1;let _0x4d4847=!0x1;for(const _0x5ccf4d of _0x4a0725){const _0x4ee4d1=this['_findSuggestions'](_0x5ccf4d['range'],'attribute')['filter'](_0x419684=>!_0x419684['meta']['isNextTo'])['map'](_0x219d9b=>_0x219d9b['suggestion']),_0x1ba2a4=_0x3ec661({'newValue':_0x5ccf4d['newValue']});_0x4ee4d1['filter'](_0x4a9d08=>{const [_0x99df00,_0x45391c]=_0x4a9d08['subType']['split']('|');return _0x99df00==_0x5ccf4d['key']&&_0x45391c!=_0x1ba2a4;})['forEach'](_0x4efbf7=>{this['_reduceSuggestionAttributeRange'](_0x4efbf7,_0x5ccf4d['range'],_0x16d083),_0x4d4847=!0x0;});}return _0x4d4847;}['_reduceSuggestionAttributeRange'](_0x57adb2,_0x29e22b,_0xb04191){const _0x4807d3=_0x57adb2['getFirstRange']()['getDifference'](_0x29e22b);0x0!==_0x4807d3['length']?0x1!==_0x4807d3['length']?this['_breakSuggestionMarker'](_0x57adb2,_0x29e22b['start'],_0x29e22b['end']):this['_setSuggestionRange'](_0x57adb2,_0x4807d3[0x0]):_0xb04191['removeMarker'](_0x57adb2['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xb57b12){this['_editor']=_0xb57b12,this['_model']=_0xb57b12['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4b5a5e,_0x3fb484,_0x1b1705,_0x5741ad,_0x56694c,_0x4d5203){return new u(this['_model'],{'type':_0x4b5a5e,'subType':_0x3fb484,'id':_0x1b1705,'author':_0x5741ad,'creator':_0x5741ad,'attributes':_0x56694c,'onAttributesChange':_0x4d5203,'onAccept':(..._0x525112)=>this['getSuggestionCallback'](_0x4b5a5e,_0x3fb484,'accept')(..._0x525112),'onDiscard':(..._0x47e309)=>this['getSuggestionCallback'](_0x4b5a5e,_0x3fb484,'discard')(..._0x47e309)});}['registerCustomCallback'](_0x5645c6,_0xd445a7,_0x30a525,_0xaee24d){const _0x352601=_0x5645c6+':'+_0xd445a7+':'+_0x30a525;this['_customCallbacks']['set'](_0x352601,_0xaee24d);}['getSuggestionCallback'](_0x3f63fb,_0x45a35a,_0xebc425){const _0x3c3cd7=_0x3f63fb+':'+_0x45a35a+':'+_0xebc425;return this['_customCallbacks']['get'](_0x3c3cd7)||this['_defaultCallbacks']['get'](_0x3f63fb+':'+_0xebc425);}['_registerDefaultCallbacks'](){const _0x417cc7=()=>!0x1,_0x29606b=_0x2c4bc6=>{_0x2c4bc6['sort']((_0x131da5,_0x4cbbc5)=>_0x131da5['start']['isBefore'](_0x4cbbc5['start'])?0x1:-0x1),this['_model']['change'](_0x3a66a9=>{for(const _0xa00bd7 of _0x2c4bc6){let _0x49202f;_0x49202f=_0xa00bd7['end']['isAtEnd']&&_0xa00bd7['end']['parent']==_0xa00bd7['start']['nodeAfter']?_0x3a66a9['createSelection'](_0xa00bd7['start']['nodeAfter'],'on'):_0x3a66a9['createSelection'](_0xa00bd7),this['_model']['deleteContent'](_0x49202f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4d82ef=(_0x1b1a07,_0x55bef9)=>{_0x55bef9&&this['_model']['change'](_0x31a55c=>{const {commandName:_0x4da578,commandParams:_0x56bb46=[]}=_0x55bef9,_0x207f98=_0x1b1a07['map'](_0x50f456=>(Vt(_0x50f456)&&(_0x50f456=this['_model']['createRange'](_0x50f456['end'])),_0x50f456))['filter'](_0x5a9463=>'$graveyard'!==_0x5a9463['root']['rootName']);if(_0x207f98['length']<0x1)return;const _0x1e93a2=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x73d2fb=>_0x1fbd79['fromRange'](_0x73d2fb));_0x31a55c['setSelection'](_0x207f98);for(const _0x319cae of this['_editor']['commands']['commands']())_0x319cae['refresh']();_0x56bb46['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4da578,..._0x56bb46);const _0x18be2f=_0x1e93a2['filter'](_0x111d63=>'$graveyard'!=_0x111d63['root']['rootName']);_0x18be2f['length']>0x0&&_0x31a55c['setSelection'](_0x18be2f);for(const _0x1e249d of _0x1e93a2)_0x1e249d['detach']();});},_0x251a9a=(_0x2e3645,_0x473f74)=>0x1==_0x2e3645['length']&&0x1==_0x473f74['length']&&_0x2e3645[0x0]['end']['isEqual'](_0x473f74[0x0]['start']),_0x7fb130=(_0x5018bf,_0x4dc364,_0x9a293e,_0x47405c)=>Ht(_0x5018bf,_0x4dc364,_0x9a293e,_0x47405c,this['_model'])?[_0x5018bf,_0x4dc364]:Ht(_0x4dc364,_0x5018bf,_0x47405c,_0x9a293e,this['_model'])?[_0x4dc364,_0x5018bf]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x417cc7),this['_defaultCallbacks']['set']('insertion:discard',_0x29606b),this['_defaultCallbacks']['set']('insertion:join',_0x251a9a),this['_defaultCallbacks']['set']('insertion:chain',_0x7fb130),this['_defaultCallbacks']['set']('deletion:accept',_0x29606b),this['_defaultCallbacks']['set']('deletion:discard',_0x417cc7),this['_defaultCallbacks']['set']('deletion:join',_0x251a9a),this['_defaultCallbacks']['set']('deletion:chain',_0x7fb130),this['_defaultCallbacks']['set']('formatInline:accept',_0x4d82ef),this['_defaultCallbacks']['set']('formatInline:discard',_0x417cc7),this['_defaultCallbacks']['set']('formatInline:join',_0x251a9a),this['_defaultCallbacks']['set']('formatInline:chain',_0x417cc7),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4d82ef),this['_defaultCallbacks']['set']('formatBlock:discard',_0x417cc7),this['_defaultCallbacks']['set']('formatBlock:join',_0x251a9a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x417cc7),this['_defaultCallbacks']['set']('attribute:accept',_0x417cc7),this['_defaultCallbacks']['set']('attribute:discard',(_0x5dc658,_0x1a8366)=>{if(!_0x1a8366)return;const _0x8232f3=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x484125=>{if(_0x1a8366['key']==m)for(const _0x593be7 of _0x5dc658){const _0x4556cf=_0x593be7['start']['nodeAfter'],_0x247658=_0x1a8366['oldValue'];_0x484125['rename'](_0x4556cf,_0x247658);}else{if(_0x8232f3['_isBlockAttribute'](_0x1a8366['key'])){for(const _0x4e8e79 of _0x5dc658)void 0x0!==_0x1a8366['oldValue']?_0x484125['setAttribute'](_0x1a8366['key'],_0x1a8366['oldValue'],_0x4e8e79['start']['nodeAfter']):_0x484125['removeAttribute'](_0x1a8366['key'],_0x4e8e79['start']['nodeAfter']);}else{for(const _0x27e617 of _0x5dc658)_0x1a8366['oldValue']?_0x484125['setAttribute'](_0x1a8366['key'],_0x1a8366['oldValue'],_0x27e617):_0x484125['removeAttribute'](_0x1a8366['key'],_0x27e617);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x251a9a);}}function Ot(_0x3ba538,_0x1f99d1,_0x53c00){for(const _0x5d80ba of _0x1f99d1['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5d80ba['root']==_0x5d80ba)return!0x1;if(!_0x53c00['containsItem'](_0x5d80ba))return!0x1;if(_0x3ba538['isObject'](_0x5d80ba)||_0x3ba538['isLimit'](_0x5d80ba))return!0x0;}return!0x1;}function Vt(_0x480518){return _0x480518['end']['parent']==_0x480518['start']['nodeAfter']&&_0x480518['end']['isAtStart'];}function Ut(_0x3f6451,_0x32b965,_0x35ed2d,_0x3503fb){const _0x25df5=_0x48c72e=>!_0x48c72e['item']['is']('$textProxy')&&!_0x3503fb['isObject'](_0x48c72e['item']),_0xac7315=_0x3f6451['start']['getLastMatchingPosition'](_0x25df5),_0x1321e3=_0x3f6451['end']['getLastMatchingPosition'](_0x25df5,{'direction':'backward'});return(!_0x3f6451['start']['isEqual'](_0xac7315)||!_0x3f6451['end']['isEqual'](_0x1321e3))&&(_0xac7315['isBefore'](_0x1321e3)?_0x35ed2d['updateMarker'](_0x32b965,{'range':_0x35ed2d['createRange'](_0xac7315,_0x1321e3)}):_0x35ed2d['removeMarker'](_0x32b965),!0x0);}function Gt(_0x3962ef){return _0x3ec661(_0x3962ef);}function Ft(_0x7f4c5e){const _0xc680ef=_0x7f4c5e['start']['nodeAfter'];return _0xc680ef&&_0xc680ef['is']('element');}function Pt(_0xab17a8,_0x2d2d98){return null==_0xab17a8['end']['nodeBefore']&&_0xab17a8['end']['parent']==_0xab17a8['start']['nodeAfter']?Lt(_0xab17a8['start']['nodeAfter'],_0x2d2d98):_0xab17a8;}function Lt(_0xfbbcc9,_0x2ff04f){const _0x5cbd1b=_0x2ff04f['schema']['isObject'](_0xfbbcc9)||_0x2ff04f['schema']['isSelectable'](_0xfbbcc9);return _0x2ff04f['createRange'](_0x2ff04f['createPositionAt'](_0xfbbcc9,'before'),_0x5cbd1b?_0x2ff04f['createPositionAfter'](_0xfbbcc9):_0x2ff04f['createPositionAt'](_0xfbbcc9,'end'));}function Ht(_0x3dfd36,_0xed81f5,_0x1941ff,_0x3afaee,_0x325b16){if(_0x3dfd36['next'])return!0x1;if(!Jt(_0x3dfd36,_0xed81f5))return!0x1;if(_0x1941ff['end']['isEqual'](_0x3afaee['start']))return!0x0;if(_0x3dfd36['type']!=_0xed81f5['type'])return!0x1;if(!_0x1941ff['end']['isTouching'](_0x3afaee['start']))return!0x1;const _0x1edde8=_0x325b16['createRange'](_0x1941ff['end'],_0x3afaee['start'])['getWalker']();for(const _0x37d7af of _0x1edde8)if(['elementStart','elementEnd']['includes'](_0x37d7af['type'])&&_0x325b16['schema']['isLimit'](_0x37d7af['item']))return!0x1;return!0x0;}function Jt(_0x5430db,_0x212441){if(!_0x5430db['_isDataLoaded']||!_0x212441['_isDataLoaded'])return!0x1;const _0x4a3f50=new Set(Object['keys'](_0x5430db['attributes'])),_0x357bd6=new Set(Object['keys'](_0x212441['attributes']));if(_0x4a3f50['delete']('groupId'),_0x357bd6['delete']('groupId'),0x0==_0x4a3f50['size']&&0x0==_0x357bd6['size'])return!0x0;if(_0x4a3f50['size']!=_0x357bd6['size'])return!0x1;const _0x31fec2={..._0x5430db['attributes']},_0x52d143={..._0x212441['attributes']};return delete _0x31fec2['groupId'],delete _0x52d143['groupId'],JSON['stringify'](_0x31fec2)==JSON['stringify'](_0x52d143);}function qt(_0x3a3d0b,_0x53869d){const _0xf6ac69=zt(_0x3a3d0b['attributes']),_0x271fc8=zt(_0x53869d);if(!_0x3a3d0b['_isDataLoaded'])return!0x1;for(const _0x48d52c of Object['keys'](_0x271fc8))if(!_0x4edce7(_0xf6ac69[_0x48d52c],_0x271fc8[_0x48d52c]))return!0x1;return!0x0;}function zt(_0x3c8e11){const _0xcdf8ea=Object['assign']({},_0x3c8e11);return delete _0xcdf8ea['skipNestingCheck'],delete _0xcdf8ea['tablePasteChainId'],_0xcdf8ea;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x24174f(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xe97ff6,_0x27756e,_0x477729,_0x18cc9d){super(),this['model']=_0x27756e,this['view']=_0x477729,this['commentThreadController']=_0x18cc9d,this['_editor']=_0xe97ff6,this['_acceptCommand']=_0xe97ff6['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xe97ff6['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x8ff59b,_0x6efa62)=>_0x8ff59b||_0x6efa62),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x42ed8f=>_0x42ed8f&&this['_editor']['model']['canEditAt'](_0x27756e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xe4370b=>_0xe4370b&&this['_editor']['model']['canEditAt'](_0x27756e['getRanges']())),this['_pendingAction']=null,_0x477729['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x477729,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x477729,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x477729,'change:isDirty',()=>{_0x477729['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 _0x2be9d9=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2be9d9);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x4a74ba{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x7a7883,_0x43bbbe,_0xf24579,_0xffb417){super(_0x7a7883),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x46d568(_0x7a7883,o(_0x7a7883,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x43bbbe['authoredAt']),this['bind']('authoredAt')['to'](_0x43bbbe),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x43bbbe,'authoredAt',this,'descriptionParts',(_0x73f27c,_0x12e98a,_0x2c5eb3)=>{const _0x28793c=_0x2c5eb3['map'](_0x18785a=>ls(_0x18785a['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x73f27c-0x1,_0x43bbbe['author']['name'],_0x12e98a?_0xffb417['formatDateTime'](_0x12e98a):'',new DOMParser()['parseFromString'](_0x28793c,'text/html')['body']['textContent']]);}),this['focusables']=new _0x56c140(),this['focusTracker']=new _0x5acfca(),this['keystrokes']=new _0x419468(),this['focusCycler']=new _0x12fd38({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x56ee94=>_0x56ee94['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x43bbbe,this['_localUser']=_0xf24579,this['_config']=_0xffb417,_0xffb417['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x394bf0(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x31a024}=this['_config'];this['commentsListView']=new _0x31a024(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',_0x31816a=>_0x31816a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3a1000,_0x4efc0f)=>_0x3a1000||!!_0x4efc0f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xdf9ac}=this['_config'],_0x2f5eb0=new _0xdf9ac(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x408546=_0x2f5eb0['commentInputView'];return _0x2f5eb0['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x408546,'value',(_0x523a55,_0x1a6d7c,_0x441278)=>!!_0x441278||_0x523a55&&!_0x1a6d7c),_0x408546['on']('submit',(_0x51914f,_0x34cde1)=>{this['fire']('addComment',_0x34cde1),_0x408546['editor']['setData']('');}),_0x408546['on']('cancel',()=>this['focus']()),_0x408546['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2f5eb0;}}class re extends us{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x3606ea,_0xf0c95c,_0x2855d6,_0x1cdde8){super(_0x3606ea,_0xf0c95c,_0x2855d6,_0x1cdde8),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x42fb3d=>_0x42fb3d&&_0x42fb3d[0x0]?_0x42fb3d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5305a6,_0x4f286a)=>{let _0x3d081f='';for(const _0x299fe7 of _0x5305a6)_0x3d081f+='<p>'+ls(_0x299fe7['content'],_0x299fe7['color'])+'</p>';return _0x4f286a?_0x3d081f:_0xe051a3(_0x3d081f,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x3606ea,'Accept\x20suggestion'),_0x5b1e85['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x3606ea,'Discard\x20suggestion'),_0x5b1e85['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x3e737d(_0x3606ea,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']['addMany']([this['acceptButton'],this['discardButton']]),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2a284b=this['bindTemplate'],_0x40aa6a=[{'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':_0x2a284b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2a284b['to']('authoredAt',_0x3abbfa=>this['_config']['formatDateTime'](_0x3abbfa))}]}]},{'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']&&_0x40aa6a['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x39eba6={'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2a284b['if']('isActive','ck-suggestion-wrapper--active'),_0x2a284b['to']('type',_0x2e83b7=>'ck-suggestion-'+_0x2e83b7),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':0x0,'role':'listitem','aria-label':_0x2a284b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x40aa6a},this['ariaDescriptionView']]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x39eba6['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)),_0x39eba6;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x1b3614,_0x5159a3,_0x12046e)=>{this['_descriptionElement']['innerHTML']=_0x12046e;});}['_createButton'](_0x24f0e1,_0x2b792f,_0x3e72fc,_0x490b8e,_0x1a20f1){const _0x27999d=new _0x39269e(this['locale']);return _0x27999d['set']({'label':_0x24f0e1,'icon':_0x2b792f,'tooltip':!0x0,'tooltipPosition':_0x1a20f1}),_0x27999d['extendTemplate']({'attributes':{'class':_0x3e72fc}}),_0x27999d['on']('execute',()=>{this['fire'](_0x490b8e,this['_model']['id']);}),_0x27999d;}['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;}}var ce='<!--\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 _0x101975{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0xf792e2,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x11fefb){super(_0x11fefb),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3184e0=this['editor']['config'];_0x3184e0['define']('trackChanges.SuggestionThreadView',re),_0x3184e0['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3184e0['get']('trackChanges.disableComments'),this['_initKeyboardNavigationToThread']();}['_handleSuggestionControllerDelayed'](_0x585552,_0x5d7a2c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2e766f,_0x2c06dc]of this['_handleControllerBuffer']){const _0x5cb561=this['_suggestionToController']['has'](_0x2e766f);_0x5cb561||_0x2c06dc?_0x5cb561&&_0x2c06dc&&this['_destroyController'](_0x2e766f):this['_initializeController'](_0x2e766f);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x585552,_0x5d7a2c);}['init'](){const _0x4db417=this['editor'],_0x3b9151=_0x4db417['plugins']['get']('TrackChangesEditing'),_0x29c0f0=_0x4db417['plugins']['get']('Annotations'),_0x4bb588=_0x4db417['plugins']['get']('EditorAnnotations'),_0x4711cd=_0x4db417['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4bb588['addSourceCollector'](()=>{const _0x3d29f5=[];for(const [_0x308d27,_0x35162b]of Array['from'](this['_suggestionToController'])){const _0x1c0d63=_0x308d27['getAllAdjacentSuggestions'](),_0x78ab95=[];for(const _0x424413 of _0x1c0d63){if(!_0x424413['isInContent'])continue;if(_0x424413['isMultiRange']){_0x78ab95['push'](..._0x424413['getRanges']());continue;}const _0x5eb474=_0x424413['getFirstRange']();if(_0x78ab95['length']>0x0){const _0x100a8c=_0x78ab95[0x0]['getJoined'](_0x5eb474);if(_0x100a8c){_0x78ab95[0x0]=_0x100a8c;continue;}}_0x78ab95['push'](_0x5eb474);}_0x3d29f5['push']([_0x35162b['view'],_0x78ab95]);}return _0x3d29f5;}),this['listenTo'](_0x3b9151,'suggestionLoaded',(_0x577f35,_0x3cfe5b)=>{this['listenTo'](_0x3cfe5b,'change:previous',(_0x541937,_0x12ea81,_0x46c501,_0x22bf11)=>{_0x3cfe5b['isInContent']&&(null==_0x46c501?(this['_updateController'](_0x22bf11['head']),this['_handleSuggestionControllerDelayed'](_0x3cfe5b,!0x1)):(this['_updateController'](_0x46c501['head']),null==_0x22bf11&&this['_handleSuggestionControllerDelayed'](_0x3cfe5b,!0x0)));}),null!==_0x3cfe5b['previous']?this['_updateController'](_0x3cfe5b['head']):this['_handleSuggestionControllerDelayed'](_0x3cfe5b,!0x1);}),this['listenTo'](_0x3b9151,'suggestionUnloaded',(_0x5900b1,_0x4cf6c6,_0x308eda)=>{this['stopListening'](_0x4cf6c6,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4cf6c6),this['_suggestionToController']['has'](_0x4cf6c6)&&this['_destroyController'](_0x4cf6c6),_0x308eda&&this['_updateController'](_0x308eda['head']);}),this['listenTo'](_0x3b9151,'suggestionChanged',(_0x3b0cdd,_0x93108a)=>{this['_updateController'](_0x93108a);}),this['listenTo'](_0x29c0f0,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4711cd,'addComment',(_0x3227c1,{threadId:_0x4952e6,isFromAdapter:_0x1a8b24})=>{if(_0x1a8b24||!_0x3b9151['hasSuggestion'](_0x4952e6))return;const _0x26a818=_0x3b9151['getSuggestion'](_0x4952e6);this['_suggestionToController']['get'](_0x26a818)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x2f3601=this['editor']['plugins']['get']('Annotations'),_0x2e68eb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15302f=Array['from'](_0x2f3601['activeAnnotations'],_0x8f6205=>_0x8f6205['innerView'])['filter'](_0x2e780c=>this['_viewToController']['has'](_0x2e780c)),_0x5c3445=[];for(const _0x3df1c6 of _0x15302f){const _0x36e45e=this['_viewToController']['get'](_0x3df1c6)['model']['getAllAdjacentSuggestions']();_0x5c3445['push'](..._0x36e45e['reduce']((_0x26267c,_0x6c51)=>[..._0x26267c,..._0x6c51['getMarkerNames']()],[]));}_0x2e68eb['activeMarkers']=_0x5c3445;}['_addUIComponentsToFactory'](){const _0x52138b=this['editor'],_0x22f8b5=_0x52138b['locale'],_0x4f34e9=o(_0x22f8b5,'Track\x20changes'),_0x224030=new Wt([{'type':'switchbutton','model':new _0x9bda13({'withText':!0x0,'isToggleable':!0x0,'label':_0x4f34e9,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x9bda13({'withText':!0x0,'label':o(_0x22f8b5,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x9bda13({'withText':!0x0,'label':o(_0x22f8b5,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x9bda13({'withText':!0x0,'label':o(_0x22f8b5,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x9bda13({'withText':!0x0,'label':o(_0x22f8b5,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x2d6a79 of _0x224030)if(he(_0x2d6a79)){const _0x5061f8=_0x52138b['commands']['get'](_0x2d6a79['model']['commandName']);_0x2d6a79['model']['bind']('isOn','isEnabled')['to'](_0x5061f8,'value','isEnabled');}_0x52138b['ui']['componentFactory']['add']('trackChanges',_0x26e9bf=>this['_createToolbarButton'](_0x26e9bf,_0x224030,_0x4f34e9)),_0x52138b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2bbfa5=>this['_createMenuBarMenu'](_0x2bbfa5,_0x224030,_0x4f34e9));}['_createToolbarButton'](_0x36cb66,_0x39ab71,_0xebcdac){const _0x37bb60=Qt(_0x36cb66,_0x1dd54e),_0x237a22=this['editor']['commands']['get']('trackChanges');_0x37bb60['buttonView']['set']({'tooltip':_0xebcdac,'label':_0xebcdac,'icon':ce}),_0x37bb60['buttonView']['bind']('isOn')['to'](_0x237a22,'value'),_0x37bb60['buttonView']['on']('execute',()=>{_0x237a22['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x37bb60,_0x39ab71,{'role':'menu'});const _0x545edb=[];for(const _0x5a4524 of _0x39ab71)he(_0x5a4524)&&_0x545edb['push'](this['editor']['commands']['get'](_0x5a4524['model']['commandName']));const _0x386a21=_0x37bb60['buttonView'];return _0x386a21['actionView']['unbind']('isEnabled'),_0x386a21['arrowView']['unbind']('isEnabled'),_0x386a21['actionView']['bind']('isEnabled')['to'](_0x237a22,'isEnabled'),_0x386a21['arrowView']['bind']('isEnabled')['toMany'](_0x545edb,'isEnabled',(..._0x4d6aa1)=>_0x4d6aa1['some'](_0x1ef7d5=>_0x1ef7d5)),_0x37bb60['on']('execute',_0x1069be=>{this['editor']['execute'](_0x1069be['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x37bb60;}['_createMenuBarMenu'](_0x273cb1,_0x48e4e8,_0x44de68){const _0x2a2baa=new Yt(_0x273cb1),_0x5783ac=this['editor']['commands']['get']('trackChanges');_0x2a2baa['buttonView']['set']({'label':_0x44de68,'icon':ce});const _0x266511=new Zt(_0x273cb1);for(const _0x27b60b of _0x48e4e8){if('separator'==_0x27b60b['type']){_0x266511['items']['add'](new Xt(_0x273cb1));continue;}const _0x29b716=new te(_0x273cb1,_0x2a2baa),_0x277364=new _0x4fe3de(_0x273cb1),_0xf449fa=_0x27b60b['model'];_0x277364['bind'](...Object['keys'](_0xf449fa))['to'](_0xf449fa),_0x277364['delegate']('execute')['to'](_0x2a2baa),_0x277364['on']('execute',()=>{this['editor']['execute'](_0xf449fa['commandName']),this['editor']['editing']['view']['focus']();}),_0x29b716['children']['add'](_0x277364),_0x266511['items']['add'](_0x29b716);}return _0x2a2baa['bind']('isEnabled')['to'](_0x5783ac,'isEnabled'),_0x2a2baa['panelView']['children']['add'](_0x266511),_0x2a2baa;}['_initializeController'](_0x200189){const _0x276fbc=this['editor'],_0x5e4556=_0x276fbc['config'],_0x198848=_0x276fbc['plugins']['get']('Annotations'),_0xddd367=_0x276fbc['plugins']['get']('CommentsRepository'),_0x1e6139=_0x276fbc['plugins']['get']('EditorAnnotations'),_0x537460=_0x276fbc['plugins']['get'](_0xf792e2)['me'],_0x5f09a6=_0x5e4556['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x1c589a,CommentThreadInputView:_0x36be24}=_0x276fbc['plugins']['get']('CommentsUI');let _0x12d53c,_0x3c9357;this['_annotationViews']['has'](_0x200189['id'])?(_0x3c9357=this['_annotationViews']['get'](_0x200189['id']),_0x12d53c=_0x3c9357['mainView']):(_0x12d53c=new _0x5f09a6(_0x276fbc['locale'],_0x200189,_0x537460,{'disableComments':this['_disableComments'],'editorConfig':_0x5e4556['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x5e4556['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5e4556['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5e4556['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4d2b75(_0x5e4556['get']('locale')),'CommentView':_0x5e4556['get']('comments')['CommentView'],'CommentsListView':_0x1c589a,'CommentThreadInputView':_0x36be24}),_0x12d53c['acceptButton']['on']('execute',()=>{_0x276fbc['editing']['view']['focus']();}),_0x12d53c['discardButton']['on']('execute',()=>{_0x276fbc['editing']['view']['focus']();}),_0x3c9357=_0x198848['createAnnotationView'](this['editor']['locale'],_0x12d53c),_0x3c9357['bind']('isDirty')['to'](_0x12d53c,'isDirty'),_0x3c9357['bind']('length')['to'](_0x12d53c),_0x3c9357['bind']('type')['to'](_0x12d53c,'type',_0x1aa3bc=>'suggestion-'+_0x1aa3bc),this['listenTo'](_0x12d53c,'escape',()=>{_0x276fbc['editing']['view']['focus']();},{'priority':'low'}),this['_annotationViews']['set'](_0x200189['id'],_0x3c9357));const _0x37e06b=_0xddd367['createCommentThreadController'](_0x200189['commentThread'],_0x12d53c),_0x220a6c=new ae(_0x276fbc,_0x200189,_0x12d53c,_0x37e06b),_0x2340ba=_0x200189['getAllAdjacentSuggestions']()['filter'](_0x48d537=>_0x48d537['isInContent']);_0x12d53c['descriptionParts']=_0x276fbc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2340ba),this['_suggestionToController']['set'](_0x200189,_0x220a6c),this['_viewToController']['set'](_0x12d53c,_0x220a6c);const _0x41debc=_0x198848['createAnnotation']({'view':_0x3c9357,'target':()=>{const _0x1a6e8a=[],_0x17a2eb=_0x200189['getAllAdjacentSuggestions']()['filter'](_0x134661=>_0x134661['isInContent']);for(const _0x264d72 of _0x17a2eb)_0x1a6e8a['push'](..._0x264d72['getMarkers']());return _0x21c46e(_0x276fbc['editing'],_0x1a6e8a);},'type':()=>'suggestion-'+_0x220a6c['view']['type']});_0xddd367['_bindAnnotationToEditors'](_0x12d53c,_0x41debc),_0x198848['add'](_0x41debc),_0x1e6139['registerAnnotation'](_0x41debc);}['_destroyController'](_0x1a6c6a){const _0x15a95e=this['editor']['plugins']['get']('CommentsRepository'),_0x2d3e6a=this['editor']['plugins']['get']('Annotations'),_0x3273ea=this['_suggestionToController']['get'](_0x1a6c6a),_0x43b105=_0x3273ea['view'],_0x2e6e3b=_0x2d3e6a['getByInnerView'](_0x43b105);_0x15a95e['_unbindEditors'](_0x43b105),_0x2e6e3b&&_0x2d3e6a['remove'](_0x2e6e3b),this['_suggestionToController']['delete'](_0x1a6c6a),this['_viewToController']['delete'](_0x43b105),_0x3273ea['destroy']();}['_updateController'](_0x4afda3){if(!_0x4afda3['isInContent']||!this['_suggestionToController']['has'](_0x4afda3))return;const _0x3718df=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15117f=this['_suggestionToController']['get'](_0x4afda3),_0x13bfe9=_0x4afda3['getAllAdjacentSuggestions']();_0x15117f['view']['descriptionParts']=_0x3718df['descriptionFactory']['getDescriptions'](_0x13bfe9);}['_initKeyboardNavigationToThread'](){this['editor']['keystrokes']['set'](_0x1c777e,(_0x1abb85,_0x112567)=>{const _0x146bf2=this['editor']['plugins']['get'](k),_0x1bb350=this['editor']['plugins']['get'](p);if(!_0x1bb350['activeMarkers']['length'])return;const {id:_0x3b6823}=_0x1bb350['_splitMarkerName'](_0x1bb350['activeMarkers'][0x0]),_0x5d79a7=_0x146bf2['getSuggestion'](_0x3b6823);_0x5d79a7&&(this['_suggestionToController']['get'](_0x5d79a7)['view']['focus'](),_0x112567());});}['destroy'](){for(const _0x189a2f of this['_suggestionToController']['keys']())this['_destroyController'](_0x189a2f);for(const _0x3c5d06 of this['_annotationViews']['values']())_0x3c5d06['mainView']['destroy']();super['destroy']();}}function he(_0x5ef6eb){return'model'in _0x5ef6eb;}class k extends _0x101975{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x45be6f){this['editor']['plugins']['get'](p)['adapter']=_0x45be6f;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x480768){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x480768);}['getSuggestions']({skipNotAttached:_0x2b2c9e=!0x1,toJSON:_0x22f357=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2b2c9e,'toJSON':_0x22f357});}['getSuggestion'](_0x17f2df){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x17f2df);}}const T=['Pagination'];class P extends _0x101975{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x41ac3a=this['editor'];if(_0x41ac3a['config']['define']('trackChangesData.editorCreator',_0xfb55d6=>{const _0x44347d=_0x41ac3a['model']['document']['getRootNames']()['reduce']((_0x1c8b8c,_0x21be65)=>(_0x1c8b8c[_0x21be65]='',_0x1c8b8c),{});return _0x41ac3a['constructor']['create'](_0x44347d,_0xfb55d6);}),'function'!=typeof _0x41ac3a['config']['get']('trackChangesData')['editorCreator'])throw new _0xa4d2dc('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4685c6){return N(this['editor'],!0x0,_0x4685c6);}['getDataWithDiscardedSuggestions'](_0x254840){return N(this['editor'],!0x1,_0x254840);}}class D extends _0x101975{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x295260){super(_0x295260),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(_0x4766e6){return void 0x0!==_0x4766e6['getRootsAttributes'];}async function N(_0x239fa3,_0x505893,_0x482092){const _0x17d8e0=_0x3fc406(_0x239fa3,T);_0x17d8e0['plugins']['push'](p,D),_0x17d8e0['rootsAttributes']=v(_0x239fa3)?_0x239fa3['getRootsAttributes']():void 0x0;const _0x190bf5=document['createDocumentFragment'](),_0x5701cb=_0x239fa3['config']['get']('trackChangesData')['editorCreator'],_0x40cbef=await _0x5701cb(_0x17d8e0,()=>function(_0x2ccc72){const _0x1b8b2d=document['createElement']('div');return _0x2ccc72['appendChild'](_0x1b8b2d),_0x1b8b2d;}(_0x190bf5));!function(_0x1f1976,_0x4ca284){const _0x25b77=_0x1f1976['model']['document']['getRootNames']()['reduce']((_0xc7a394,_0x20dd8c)=>(_0xc7a394[_0x20dd8c]=_0x1f1976['data']['get']({'rootName':_0x20dd8c}),_0xc7a394),{}),_0x2248df=_0x1f1976['plugins']['get']('Users')['users']['map'](_0x428a99=>({'id':_0x428a99['id'],'name':_0x428a99['name']})),_0xfb486d=_0x1f1976['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x10f07d=_0x1f1976['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x707948=_0x4ca284['plugins']['get']('Users'),_0x404b63=_0x4ca284['plugins']['get']('TrackChangesEditing'),_0x5ec206=_0x4ca284['plugins']['get']('CommentsRepository');for(const _0x5e90bf of _0x5ec206['getCommentThreads']())_0x5e90bf['remove']();for(const _0xd704e3 of _0x2248df)_0x707948['getUser'](_0xd704e3['id'])||_0x707948['addUser'](_0xd704e3);_0x707948['me']||_0x707948['useAnonymousUser']();for(const _0x29f040 of _0x10f07d)_0x5ec206['addCommentThread'](_0x29f040);for(const _0x1d23af of _0xfb486d)_0x404b63['addSuggestionData'](_0x1d23af);_0x4ca284['data']['set'](_0x25b77);}(_0x239fa3,_0x40cbef),_0x40cbef['execute'](_0x505893?'acceptAllSuggestions':'discardAllSuggestions');const _0x27ba5d=v(_0x40cbef)?_0x40cbef['getFullData'](_0x482092):_0x40cbef['data']['get'](_0x482092);return await _0x40cbef['destroy'](),_0x27ba5d;}export{us as BaseSuggestionThreadView,re as SuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x4f7a1d,PendingActions as _0x36083b,icons as _0x3a0483}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x509c53,ObservableMixin as _0x1c13fd,uid as _0x48a685,insertToPriorityArray as _0x426cb1,priorities as _0x4612a7,logWarning as _0x332ad9,getEnvKeystrokeText as _0x55567b,FocusTracker as _0x499c6d,KeystrokeHandler as _0x435c45,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x2e4873,View as _0x540bd6,ViewCollection as _0x4529d1,FocusCycler as _0x1794c2,ViewModel as _0x275bba,createDropdown as Qt,SplitButtonView as _0x1a1004,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x398b86}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x2c4983,hashObject as _0x43d6df,surroundingMarkersDetector as _0x3cc9ab,ENTER_THREAD_KEYSTROKE as _0x5a5ae6,AriaDescriptionView as _0x3493f9,setupThreadKeyboardNavigation as _0x533a2b,trimHtml as _0x4d962c,UserView as _0x4ca656,LateFocusButtonView as _0x18a94c,getDateTimeFormatter as _0x54034c,getAllMarkersDomElementsSorted as _0x4f8045,sanitizeEditorConfig as _0x44c3fe}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x12bcc7,LiveRange as _0x5978fe,LivePosition as _0x29d83f}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x143273,toWidget as _0x3ef6ce}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5900ef,set as _0x32ef79,isEqual as _0x1e1d71,unset as _0x5656d5,omit as Tt}from'lodash-es';import{Delete as _0x29102b,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2a812e,ShiftEnter as _0x2d1f94}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x31d107,_0x53e2e4){super(_0x31d107),this['_enabledCommands']=_0x53e2e4,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 _0x3bdb9a of this['editor']['commands']['commands']())_0x3bdb9a['affectsData']&&!this['_enabledCommands']['has'](_0x3bdb9a)&&_0x3bdb9a['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4b5f07 of this['editor']['commands']['commands']())_0x4b5f07['affectsData']&&!this['_enabledCommands']['has'](_0x4b5f07)&&_0x4b5f07['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x4d625c,_0x54d251){super(_0x4d625c),this['_suggestions']=_0x54d251,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xe159ea){const _0x398d08=this['_suggestions']['get'](_0xe159ea);if(!_0x398d08)throw new _0x509c53('track-changes-accept-suggestion-not-found',this);const _0xc887a4=_0x398d08['getRanges']();this['editor']['model']['canEditAt'](_0xc887a4)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x398d08);}}class R extends ts{['_suggestions'];constructor(_0x31c90a,_0x224de2){super(_0x31c90a),this['_suggestions']=_0x224de2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x378d97){const _0x351ab2=this['_suggestions']['get'](_0x378d97);if(!_0x351ab2)throw new _0x509c53('track-changes-discard-suggestion-not-found',this);const _0xdc39d7=_0x351ab2['getRanges']();this['editor']['model']['canEditAt'](_0xdc39d7)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x351ab2);}}function ls(_0x211bff,_0x1f9761){let _0x59ec2a='';return _0x59ec2a+=_0x211bff['split']('*')['map']((_0x5bd1f8,_0x15c4b1)=>_0x15c4b1%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x5bd1f8)+'</span>':nn(_0x5bd1f8))['join'](''),_0x1f9761&&(_0x59ec2a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1f9761['value']+'\x22\x20title=\x22'+_0x1f9761['title']+'\x22></span>'),_0x59ec2a;}function nn(_0x3e5453){const _0x35919b=document['createElement']('span');return _0x35919b['innerText']=_0x3e5453,_0x35919b['innerHTML'];}function ss(_0xf7bfc5){return _0xf7bfc5['sort']((_0x28b47e,_0x28ecd8)=>'deletion'==_0x28b47e['type']&&'deletion'!=_0x28ecd8['type']?-0x1:'deletion'!=_0x28b47e['type']&&'deletion'==_0x28ecd8['type']?0x1:0x0);}function to(_0x280f5a,_0x27f56d){let _0x2186c7,_0x2e9015=0x0;const _0x3abb12=[],_0xf6755e=_0x27f56d['schema'];for(;_0x2e9015<_0x280f5a['length'];){const _0x16722d=_0x280f5a[_0x2e9015],_0x158319=_0x280f5a[_0x2e9015+0x1];_0x2186c7||(_0x2186c7=_0x27f56d['createPositionBefore'](_0x16722d)),on(_0x27f56d,_0x16722d,_0x158319)||(_0x3abb12['push'](_0x27f56d['createRange'](_0x2186c7,_0xf6755e['isObject'](_0x16722d)?_0x27f56d['createPositionAfter'](_0x16722d):_0x27f56d['createPositionAt'](_0x16722d,'end'))),_0x2186c7=null),_0x2e9015++;}return _0x3abb12;}function on(_0x534724,_0x8d84aa,_0x197b8e){if(!_0x197b8e)return!0x1;const _0x3ad680=_0x534724['createPositionAfter'](_0x8d84aa),_0x13fdf8=_0x534724['createPositionBefore'](_0x197b8e);return _0x3ad680['isTouching'](_0x13fdf8);}function rs(_0x26922c,_0x34ba46,_0x1579b8){for(;_0x1579b8['length'];){const _0x2e5088=_0x1579b8['splice'](0x0,0x64);_0x26922c['change'](()=>{for(const _0x463a87 of _0x2e5088)_0x463a87['isInContent']&&_0x34ba46['execute'](_0x463a87['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x4f5f74,_0x5f5b6e,_0x482fc2){super(_0x4f5f74),this['_command']=_0x5f5b6e,this['_suggestions']=_0x482fc2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x20823a=Array['from'](this['_suggestions']['values']())['some'](_0x14e064=>_0x14e064['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x20823a;}['execute'](){const _0x55210d=ss(Array['from'](this['_suggestions']['values']()));for(const _0x2e2ced of _0x55210d){const _0x11a3ae=_0x2e2ced['getRanges']();if(!this['editor']['model']['canEditAt'](_0x11a3ae))return;}rs(this['editor']['model'],this['_command'],_0x55210d);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x574fad,_0x2b2ebb,_0x37ca19){super(_0x574fad),this['_command']=_0x2b2ebb,this['_suggestions']=_0x37ca19,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3282d9=this['editor']['model']['document']['selection'],_0xbec284=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x56682d,_0x3fbd44){const _0x394f04=Array['from'](_0x56682d['getRanges']()),_0x2b2333=new Set();for(const _0x1159fb of _0x3fbd44)if(_0x1159fb['isInContent']){for(const _0x449ff6 of _0x394f04)for(const _0x5fa4bf of _0x1159fb['getRanges']())(_0x449ff6['isIntersecting'](_0x5fa4bf)||_0x56682d['isCollapsed']&&!_0x1159fb['isMultiRange']&&_0x1159fb['next']&&_0x5fa4bf['end']['isTouching'](_0x449ff6['start']))&&_0x2b2333['add'](_0x1159fb);}return _0x2b2333;}(_0x3282d9,_0xbec284),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5f5bd0=ss(Array['from'](this['_selectedSuggestions']));for(const _0x2b2ac6 of _0x5f5bd0){const _0x3e1fad=_0x2b2ac6['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3e1fad))return;}rs(this['editor']['model'],this['_command'],_0x5f5bd0);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1c13fd(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x133843,_0x400203){super(),this['id']=_0x400203['id'],this['type']=_0x400203['type'],this['subType']=_0x400203['subType']||null,this['author']=_0x400203['author'],this['creator']=_0x400203['creator']||_0x400203['author'],this['isExternal']=Boolean(_0x400203['attributes']&&_0x400203['attributes']['@external']),this['data']=null,this['_model']=_0x133843,this['_onAccept']=_0x400203['onAccept'],this['_onDiscard']=_0x400203['onDiscard'],this['_onAttributesChange']=_0x400203['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x400203['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 _0x52ae6a=this;for(;_0x52ae6a['previous'];)_0x52ae6a=_0x52ae6a['previous'];return _0x52ae6a;}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'](_0x1e04e8){this['_markerNames']['add'](_0x1e04e8);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1443b9=>this['_model']['markers']['get'](_0x1443b9))['filter'](_0x2ec637=>_0x2ec637);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x48e88a=>{for(const _0x348c3c of this['getMarkers']())_0x48e88a['removeMarker'](_0x348c3c);}),this['_markerNames']['clear']();}['removeMarker'](_0x3bb306){this['_model']['change'](_0x9e350f=>{_0x9e350f['removeMarker'](_0x3bb306);}),this['_markerNames']['delete'](_0x3bb306);}['addRange'](_0x1f8751){const _0x51d0c5='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x51d0c5),this['_model']['change'](_0x7cb432=>{_0x7cb432['addMarker'](_0x51d0c5,{'range':_0x1f8751,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x9e2ac6){for(const _0x40c67d of this['getRanges']())if(_0x40c67d['isIntersecting'](_0x9e2ac6))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x460846=>_0x460846['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4276f3,_0x3d3d58)=>[..._0x4276f3,..._0x3d3d58['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4b8f86=this['getRanges']();if(0x1!=_0x4b8f86['length'])return null;const _0x42da78=_0x4b8f86[0x0],_0x3c768b=_0x42da78['start']['nodeAfter'],_0xb959ca=_0x42da78['end']['nodeBefore'];return _0x3c768b instanceof _0x12bcc7?_0x3c768b!=_0xb959ca?null:_0x3c768b: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 _0x7cd32c=[];let _0x35d112=this['head'];for(;_0x35d112;)_0x7cd32c['push'](_0x35d112),_0x35d112=_0x35d112['next'];return _0x7cd32c;}['setAttribute'](_0x3451c5,_0x457dc2){const _0x2ecbf2=_0x5900ef(this['attributes']);_0x32ef79(_0x2ecbf2,_0x3451c5,_0x457dc2),_0x1e1d71(_0x2ecbf2,this['attributes'])||(this['attributes']=_0x2ecbf2,this['_onAttributesChange'](_0x2ecbf2));}['removeAttribute'](_0x437a18){const _0x22adb9=_0x5900ef(this['attributes']);_0x5656d5(_0x22adb9,_0x437a18),_0x1e1d71(_0x22adb9,this['attributes'])||(this['attributes']=_0x22adb9,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 _0x48a685()['substr'](0x1,0x5);}}function o(_0xa76711,_0x47aeb8,_0x157b85){const t=_0xa76711['t'];switch(_0x47aeb8){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',_0x157b85);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x157b85);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x157b85);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x157b85);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x157b85);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',_0x157b85);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x157b85);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',_0x157b85);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x157b85);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x157b85);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x157b85);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x157b85);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x157b85);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x157b85);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x157b85);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x157b85);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x157b85);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x157b85);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x157b85);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x157b85);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x157b85);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x157b85);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x157b85);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'},_0x157b85);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x157b85);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x157b85);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x157b85);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x157b85);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x157b85);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'},_0x157b85);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x157b85);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x157b85);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x157b85);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x157b85);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'},_0x157b85);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x157b85);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'},_0x157b85);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'},_0x157b85);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x157b85);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'},_0x157b85);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x157b85);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'},_0x157b85);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x157b85);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x157b85);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'},_0x157b85);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'},_0x157b85);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'},_0x157b85);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x157b85);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x157b85);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x157b85);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x157b85);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x47aeb8;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x856f87,_0x41d044){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x856f87,this['_locale']=_0x41d044;}['getDescriptions'](_0x59d147){const _0x382f39=[],_0x2bc16b=new Set(),_0x5594a9=new Set();for(let _0x556c0d=0x0;_0x556c0d<_0x59d147['length'];_0x556c0d++){const _0x13c64f=_0x59d147[_0x556c0d];if(!_0x13c64f['isInContent'])continue;const _0x5310f9=this['_handleCustomCallbackDescription'](_0x13c64f);if(_0x5310f9){if(null!=_0x13c64f['subType']){if(_0x2bc16b['has'](_0x13c64f['subType']))continue;_0x2bc16b['add'](_0x13c64f['subType']);}_0x382f39['push'](_0x5310f9);}else{if('attribute'!=_0x13c64f['type'])'insertion'!=_0x13c64f['type']&&'deletion'!=_0x13c64f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x382f39,_0x13c64f,_0x59d147[_0x556c0d+0x1]);else{const _0xbb2cc1=_0x13c64f['data']['key'];if(_0x5594a9['has'](_0xbb2cc1))continue;_0x5594a9['add'](_0x13c64f['data']['key']),_0xbb2cc1==m?this['_handleRenameSuggestionDescription'](_0x382f39,_0x13c64f):this['_handleAttributeSuggestionDescription'](_0x382f39,_0x13c64f);}}}return this['_resolveDescriptionItems'](_0x382f39);}['registerDescriptionCallback'](_0x36f940){this['_customCallbacks']['push'](_0x36f940);}['registerElementLabel'](_0x1b27fe,_0x44d900,_0x28a46c=_0x4612a7['normal']){'function'==typeof _0x1b27fe?_0x426cb1(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1b27fe,'label':_0x44d900,'priority':_0x28a46c}):this['_itemLabels']['set'](_0x1b27fe,_0x44d900);}['registerAttributeLabel'](_0x26a8c8,_0x5a6c66){this['_attributeLabels']['set'](_0x26a8c8,_0x5a6c66);}['getItemLabel'](_0x45ec76,_0x390bcd=0x1){let _0x3c5709;for(const _0x8fba30 of this['_itemLabelsCallbacks'])if(_0x8fba30['matchingCallback'](_0x45ec76)){_0x3c5709=_0x8fba30['label'];break;}return _0x3c5709||(_0x3c5709=this['_itemLabels']['get'](_0x45ec76['name'])),_0x3c5709?_0x3c5709(_0x390bcd):0x1!==_0x390bcd?_0x390bcd+'\x20'+_0x45ec76['name']+'s':''+_0x45ec76['name'];}['_addDescriptionItems'](_0x375fd2,_0x193f2a){const _0x173ec0=_0x193f2a['getFirstRange']()['getWalker'](),_0x491b2a='insertion'==_0x193f2a['type']?'add':'remove';for(const _0x5b7c52 of _0x173ec0){const _0x495bb7=_0x5b7c52['item'],_0x560268=_0x375fd2[_0x375fd2['length']-0x1];if(_0x495bb7['is']('$textProxy'))_0x560268&&_0x560268['type']['indexOf']('Container')>-0x1&&_0x375fd2['pop'](),_0x560268&&'text'==_0x560268['type']?_0x560268[_0x491b2a]+=_0x495bb7['data']:_0x375fd2['push']({'type':'text','add':'add'==_0x491b2a?_0x495bb7['data']:'','remove':'remove'==_0x491b2a?_0x495bb7['data']:''});else{if(this['_schema']['isObject'](_0x495bb7)){const _0x407ce0=_0x495bb7;if(_0x560268&&_0x560268['type']['indexOf']('Container')>-0x1&&_0x375fd2['pop'](),'elementEnd'==_0x5b7c52['type'])continue;_0x560268&&_0x560268['type']==_0x491b2a+'Object'&&_0x560268['element']['name']==_0x407ce0['name']?_0x560268['quantity']++:_0x375fd2['push']({'type':_0x491b2a+'Object','element':_0x407ce0,'quantity':0x1}),_0x173ec0['skip'](_0xe58379=>!('elementEnd'==_0xe58379['type']&&_0xe58379['item']==_0x495bb7));}else{if(this['_schema']['checkChild'](_0x495bb7,'$text')||_0x495bb7['is']('element','softBreak')){const _0x2c9797=_0x495bb7;if('add'==_0x491b2a&&'elementStart'==_0x5b7c52['type']||'remove'==_0x491b2a&&'elementEnd'==_0x5b7c52['type'])continue;if(_0x560268&&-0x1==_0x560268['type']['indexOf']('Container')){'text'==_0x560268['type']&&(_0x560268[_0x491b2a]+='\x0a');continue;}let _0x1cf4c0;if(_0x1cf4c0='add'==_0x491b2a?_0x2c9797['nextSibling']&&!this['_schema']['isObject'](_0x2c9797['nextSibling'])?_0x2c9797['nextSibling']:null:_0x2c9797['previousSibling']&&!this['_schema']['isObject'](_0x2c9797['previousSibling'])?_0x2c9797['previousSibling']:null,_0x2c9797['isEmpty']||_0x1cf4c0&&_0x1cf4c0['isEmpty']){const _0x30971c=_0x1cf4c0&&_0x1cf4c0['isEmpty']?_0x1cf4c0:_0x2c9797;_0x560268&&_0x560268['type']==_0x491b2a+'EmptyContainer'&&_0x560268['element']['name']==_0x30971c['name']?_0x560268['quantity']++:_0x375fd2['push']({'type':_0x491b2a+'EmptyContainer','element':_0x30971c,'quantity':0x1});}else _0x375fd2['push']({'type':_0x491b2a+'Container','element':_0x2c9797});}}}}}['_resolveDescriptionItems'](_0x1e0186){const _0x28d06e=this['_locale'],_0x5b5fef=[],_0x4ebff3=[],_0x576252=[];for(const _0x146b75 of _0x1e0186)switch(_0x146b75['type']){case'text':if(_0x146b75['add']=_0x146b75['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x146b75['remove']=_0x146b75['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x146b75['add']&&''!=_0x146b75['remove']){_0x5b5fef['push']({'type':'replace','content':o(_0x28d06e,'REPLACE_TEXT',['\x22'+_0x146b75['remove']+'\x22','\x22'+_0x146b75['add']+'\x22'])});continue;}if(null!=_0x146b75['add']['match'](/^ +$/)){_0x5b5fef['push']({'type':'insertion','content':o(_0x28d06e,'*Insert:*\x20%0',o(_0x28d06e,'ELEMENT_SPACE',_0x146b75['add']['length']))});continue;}if(null!=_0x146b75['remove']['match'](/^ +$/)){_0x5b5fef['push']({'type':'deletion','content':o(_0x28d06e,'*Remove:*\x20%0',o(_0x28d06e,'ELEMENT_SPACE',_0x146b75['remove']['length']))});continue;}if(''!=_0x146b75['add']){_0x5b5fef['push']({'type':'insertion','content':o(_0x28d06e,'*Insert:*\x20%0','\x22'+_0x146b75['add']+'\x22')});continue;}_0x5b5fef['push']({'type':'deletion','content':o(_0x28d06e,'*Remove:*\x20%0','\x22'+_0x146b75['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5b5fef['push']({'type':'insertion','content':o(_0x28d06e,'*Insert:*\x20%0',this['getItemLabel'](_0x146b75['element'],_0x146b75['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5b5fef['push']({'type':'deletion','content':o(_0x28d06e,'*Remove:*\x20%0',this['getItemLabel'](_0x146b75['element'],_0x146b75['quantity']))});continue;case'addContainer':_0x5b5fef['push']({'type':'insertion','content':o(_0x28d06e,'*Split:*\x20%0',this['getItemLabel'](_0x146b75['element'],_0x146b75['quantity']))});continue;case'removeContainer':_0x5b5fef['push']({'type':'deletion','content':o(_0x28d06e,'*Merge:*\x20%0',this['getItemLabel'](_0x146b75['element'],_0x146b75['quantity']))});continue;case'addFormat':_0x4ebff3['push'](_0x146b75['key']);continue;case'removeFormat':_0x576252['push'](_0x146b75['key']);continue;default:_0x5b5fef['push'](_0x146b75);}if(_0x4ebff3['length']){const _0x2ab220=_0x4ebff3['map'](_0x5ca38e=>this['_attributeLabels']['has'](_0x5ca38e)?this['_attributeLabels']['get'](_0x5ca38e):_0x5ca38e)['join'](',\x20');_0x5b5fef['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2ab220)});}if(_0x576252['length']){const _0x337cb6=_0x576252['map'](_0x16c688=>this['_attributeLabels']['has'](_0x16c688)?this['_attributeLabels']['get'](_0x16c688):_0x16c688)['join'](',\x20');_0x5b5fef['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x337cb6)});}return _0x5b5fef;}['_handleCustomCallbackDescription'](_0x558a05){for(const _0x206b62 of this['_customCallbacks']){const _0x4c7a79=_0x206b62(_0x558a05);if(_0x4c7a79&&'type'in _0x4c7a79)return _0x4c7a79;}}['_handleAttributeSuggestionDescription'](_0x48f62d,_0x54ef95){const _0x2501fe=_0x54ef95['data'],_0x1cf455=void 0x0===_0x2501fe['newValue']?'removeFormat':'addFormat';_0x48f62d['push']({'type':_0x1cf455,'key':_0x2501fe['key']});}['_handleRenameSuggestionDescription'](_0x37c44a,_0x580680){_0x37c44a['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x580680['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x112432,_0x50ca6e,_0x5ed253){if(this['_addDescriptionItems'](_0x112432,_0x50ca6e),_0x5ed253&&_0x5ed253['getFirstRange']()&&!_0x50ca6e['getFirstRange']()['end']['isEqual'](_0x5ed253['getFirstRange']()['start'])){const _0x195a72=_0x112432[_0x112432['length']-0x1],_0x3f3c92='insertion'==_0x50ca6e['type']?'add':'remove';_0x195a72&&'text'==_0x195a72['type']&&(_0x195a72[_0x3f3c92]+='\x0a');}}}class V extends _0x4f7a1d{['afterInit'](){const _0x222c7c=this['editor'],_0x2b3558=_0x222c7c['plugins']['get']('TrackChangesEditing');_0x222c7c['commands']['get']('showAIAssistant')&&_0x2b3558['enableCommand']('showAIAssistant');}}class U extends _0x4f7a1d{['afterInit'](){const _0x2deb93=this['editor'],_0x28d5c7=_0x2deb93['locale'];if(!_0x2deb93['plugins']['has']('AlignmentEditing'))return;const _0x28f9f8=_0x2deb93['plugins']['get']('TrackChangesEditing');_0x28f9f8['enableDefaultAttributesIntegration']('alignment'),_0x28f9f8['registerBlockAttribute']('alignment'),_0x28f9f8['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x28d5c7,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x297c60=this['editor'],_0x5f042d=_0x297c60['locale'];_0x297c60['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdefa3f=>{if('formatBlock'!=_0xdefa3f['type'])return;const {data:_0x1c36c3}=_0xdefa3f;if(_0x1c36c3&&'alignment'==_0x1c36c3['commandName']){const _0x1a17a5=_0x1c36c3['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5f042d,'*Format:*\x20%0',function(_0x196088){switch(_0x196088){case'left':return o(_0x5f042d,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5f042d,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5f042d,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5f042d,'FORMAT_JUSTIFY_TEXT');}}(_0x1a17a5))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x4f7a1d{['afterInit'](){const _0x40f955=this['editor'],_0x813760=_0x40f955['plugins']['get']('TrackChangesEditing'),_0x434fde=_0x40f955['locale'];for(const _0x32fafe of ti){if(!_0x40f955['plugins']['has'](_0x32fafe))continue;const _0x18146e=_0x32fafe['slice'](0x0,-0x7)['toLowerCase'](),_0x35d2f7='FORMAT_'+_0x18146e['toUpperCase']();_0x813760['enableDefaultAttributesIntegration'](_0x18146e),_0x813760['registerInlineAttribute'](_0x18146e),_0x813760['descriptionFactory']['registerAttributeLabel'](_0x18146e,o(_0x434fde,_0x35d2f7));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc914ee=this['editor'],_0x9e15ee=_0xc914ee['locale'],_0x9daa37=_0xc914ee['plugins']['get']('TrackChangesEditing');function _0xf11371(_0x41f284,_0xf075a4){_0x9daa37['descriptionFactory']['registerDescriptionCallback'](_0x31c29a=>{if('formatInline'!=_0x31c29a['type'])return;const {data:_0x501444}=_0x31c29a;return _0x501444&&_0x501444['commandName']===_0x41f284?_0x501444['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x9e15ee,'*Format:*\x20%0',_0xf075a4)}:{'type':'format','content':o(_0x9e15ee,'*Remove\x20format:*\x20%0',_0xf075a4)}:void 0x0;});}_0xf11371('bold',o(_0x9e15ee,'FORMAT_BOLD')),_0xf11371('italic',o(_0x9e15ee,'FORMAT_ITALIC')),_0xf11371('underline',o(_0x9e15ee,'FORMAT_UNDERLINE')),_0xf11371('code',o(_0x9e15ee,'FORMAT_CODE')),_0xf11371('strikethrough',o(_0x9e15ee,'FORMAT_STRIKETHROUGH')),_0xf11371('subscript',o(_0x9e15ee,'FORMAT_SUBSCRIPT')),_0xf11371('superscript',o(_0x9e15ee,'FORMAT_SUPERSCRIPT'));}}class F extends _0x4f7a1d{['afterInit'](){const _0x8fb698=this['editor'],_0x3badb4=_0x8fb698['locale'];if(!_0x8fb698['plugins']['has']('BlockQuoteEditing'))return;const _0xe5dc81=_0x8fb698['plugins']['get']('TrackChangesEditing'),_0x4d36ca=this['editor']['commands']['get']('blockQuote');_0xe5dc81['enableCommand']('blockQuote',(_0x2cd294,_0x1e4028={})=>{const _0x496953=this['editor']['model']['document']['selection'],_0x22a3a8=_0x1e4028&&void 0x0!==_0x1e4028['forceValue']?_0x1e4028['forceValue']:!_0x4d36ca['value'];let _0x43ee5d=[];if(_0x22a3a8){const _0x4d0394=Array['from'](_0x496953['getSelectedBlocks']())['filter'](_0x5a4043=>oo(_0x5a4043)||function(_0x357a14,_0x3aaee5){const _0x4b2719=_0x3aaee5['checkChild'](_0x357a14['parent'],'blockQuote'),_0x3f80c9=_0x3aaee5['checkChild'](['$root','blockQuote'],_0x357a14);return _0x4b2719&&_0x3f80c9;}(_0x5a4043,this['editor']['model']['schema']));_0x43ee5d=to(_0x4d0394,_0x8fb698['model']);}else{const _0x4c48c7=Array['from'](_0x496953['getSelectedBlocks']())['filter'](_0x2db764=>oo(_0x2db764));_0x43ee5d=to(_0x4c48c7,_0x8fb698['model']);}_0x8fb698['model']['change'](()=>{for(const _0x1ecc3e of _0x43ee5d)_0xe5dc81['markBlockFormat'](_0x1ecc3e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x22a3a8}]});});}),_0xe5dc81['descriptionFactory']['registerDescriptionCallback'](_0x4aa4c2=>{const {data:_0x289a4f}=_0x4aa4c2;if(_0x289a4f&&'blockQuote'==_0x289a4f['commandName']){const _0x427f9f=o(_0x3badb4,'ELEMENT_BLOCK_QUOTE');return _0x289a4f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3badb4,'*Set\x20format:*\x20%0',_0x427f9f)}:{'type':'format','content':o(_0x3badb4,'*Remove\x20format:*\x20%0',_0x427f9f)};}});}}function oo(_0xe3bcac){return'blockQuote'==_0xe3bcac['parent']['name'];}class L extends _0x4f7a1d{['afterInit'](){const _0x377f70=this['editor'];_0x377f70['plugins']['has']('CaseChange')&&(_0x377f70['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x377f70['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x377f70['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x4f7a1d{['afterInit'](){const _0x1ee138=this['editor'];_0x1ee138['commands']['get']('ckbox')&&_0x1ee138['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x4f7a1d{['afterInit'](){const _0x30119e=this['editor'];if(!_0x30119e['plugins']['has']('CodeBlock'))return;const _0x18505c=_0x30119e['plugins']['get']('TrackChangesEditing'),_0x589e38=_0x30119e['locale'],_0x28fa1d=_0x30119e['config']['get']('codeBlock')['languages'],_0x55ef7d=_0x30119e['commands']['get']('codeBlock');_0x18505c['enableCommand']('indentCodeBlock'),_0x18505c['enableCommand']('outdentCodeBlock'),_0x18505c['enableCommand']('codeBlock',(_0x310898,_0x43efaf={})=>{const _0x2001da=_0x30119e['model'],_0x1d1f6b=_0x30119e['model']['document']['selection'],_0x20246b=_0x43efaf&&void 0x0!==_0x43efaf['forceValue']?_0x43efaf['forceValue']:!_0x55ef7d['value'];let _0x4b7400;_0x43efaf['language']||(_0x43efaf['language']=_0x28fa1d[0x0]['language']),_0x4b7400=_0x20246b?Array['from'](_0x1d1f6b['getSelectedBlocks']())['filter'](_0x249f3c=>eo(_0x249f3c)||function(_0x310f5b,_0x3d6cd2){if(_0x310f5b['is']('rootElement')||_0x3d6cd2['isLimit'](_0x310f5b))return!0x1;return _0x3d6cd2['checkChild'](_0x310f5b['parent'],'codeBlock');}(_0x249f3c,_0x2001da['schema'])):Array['from'](_0x1d1f6b['getSelectedBlocks']())['filter'](_0x644ea9=>eo(_0x644ea9));const _0x9977e6=to(_0x4b7400,_0x2001da);_0x2001da['change'](()=>{for(const _0x496834 of _0x9977e6)_0x18505c['markBlockFormat'](_0x496834,{'commandName':'codeBlock','commandParams':[{..._0x43efaf,'forceValue':_0x20246b}],'formatGroupId':'blockName'});});}),(_0x18505c['descriptionFactory']['registerElementLabel']('codeBlock',_0x4b365b=>o(_0x589e38,'ELEMENT_CODE_BLOCK',_0x4b365b)),_0x18505c['descriptionFactory']['registerDescriptionCallback'](_0x55cae7=>{if('formatBlock'!=_0x55cae7['type'])return;const _0x5c503d=_0x589e38['t'],{data:_0x38e753}=_0x55cae7;if(!_0x38e753||'codeBlock'!=_0x38e753['commandName'])return;const _0x3e2619=_0x38e753['commandParams'][0x0]['language'],_0x37c5af=_0x5c503d(_0x28fa1d['find'](_0x43a5e2=>_0x43a5e2['language']===_0x3e2619)['label'])['toLowerCase']();return _0x38e753['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x589e38,'*Set\x20format:*\x20%0',o(_0x589e38,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x37c5af+')')}:{'type':'format','content':o(_0x589e38,'*Remove\x20format:*\x20%0',o(_0x589e38,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x18050b){return'codeBlock'==_0x18050b['name'];}class q extends _0x4f7a1d{['afterInit'](){const _0x36947a=this['editor'];if(!_0x36947a['plugins']['has']('CommentsEditing'))return;_0x36947a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x58fdbc,_0x19c14f,_0x44f44e){const _0x5a30f9=[];for(const _0x129f6e of _0x19c14f['getItems']())_0x129f6e['hasAttribute'](_0x58fdbc)&&_0x5a30f9['push'](_0x44f44e['createRangeOn'](_0x129f6e));return _0x5a30f9;}function _e(_0x4eda22,_0x51f2be,{showActiveMarker:_0x6aa7f5=!0x0}={}){const _0x32b9c8=_0x4eda22['plugins']['get']('TrackChangesEditing');return(_0x2d6af2,_0x2b53c3,_0x1428bf)=>{if(!_0x1428bf['consumable']['test'](_0x2b53c3['markerRange'],_0x2d6af2['name']))return;const _0x3570ba=_0x2b53c3['markerRange']['getWalker'](),_0x11739e=_0x2b53c3['markerRange']['start'],_0xfe5439=_0x4eda22['model']['schema'];let _0x59033d=null,_0x5ca0ba=null,_0x1bb141=!0x1,_0x3ec1fc=!0x1;for(const _0x36450a of _0x3570ba){const _0x2d1949=_0x36450a['item'];_0x1bb141=_0x1bb141||_0xfe5439['isContent'](_0x2d1949);const _0x1e8c58=_0x1428bf['mapper']['toViewElement'](_0x2d1949);if(_0x1e8c58&&_0x1e8c58['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x36450a['type']&&(_0xfe5439['isBlock'](_0x2d1949)&&!_0xfe5439['isLimit'](_0x2d1949)&&(_0x2d1949['nextSibling']||_0x11739e['isAtEnd']?_0x59033d&&_0x59033d['parent']==_0x2d1949||(_0x59033d=_0x2d1949,_0x6952b4(_0x36450a['previousPosition']),_0x3ec1fc=!0x0):_0x5ca0ba=_0x5ca0ba||_0x36450a['previousPosition']));}function _0x6952b4(_0x25d0fa){const _0x2fbe5c=_0x1428bf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x51f2be}),_0x5a1489=_0x1428bf['mapper']['toViewPosition'](_0x25d0fa);_0x6aa7f5&&_0x32b9c8['activeMarkers']['includes'](_0x2b53c3['markerName'])&&_0x1428bf['writer']['addClass']('ck-suggestion-marker--active',_0x2fbe5c),_0x1428bf['writer']['insert'](_0x5a1489,_0x2fbe5c),_0x1428bf['mapper']['bindElementToMarker'](_0x2fbe5c,_0x2b53c3['markerName']);}_0x1bb141||_0x3ec1fc||!_0x5ca0ba||_0x6952b4(_0x5ca0ba);};}class z extends _0x4f7a1d{static get['requires'](){return[_0x29102b];}['init'](){const _0x5809d0=this['editor'],_0x28dde2=_0x5809d0['plugins']['get']('TrackChangesEditing');_0x28dde2['enableCommand']('delete');const _0x337944=_0x5809d0['commands']['get']('deleteForward');_0x28dde2['enableCommand']('deleteForward',(_0xcfa962,_0x138fe4={})=>{const _0x434cb6=_0x5809d0['model']['createSelection'](_0x5809d0['model']['document']['selection']);_0x434cb6['isCollapsed']&&_0x5809d0['model']['modifySelection'](_0x434cb6,{'direction':'forward','unit':_0x138fe4['unit']});const _0x6c1542=_0x434cb6['getFirstRange'](),_0x329554=_0x5978fe['fromRange'](_0x6c1542);let _0x3a52eb;_0xcfa962(_0x138fe4),_0x3a52eb='$graveyard'==_0x329554['root']['rootName']?_0x5809d0['model']['createRange'](_0x6c1542['start']):_0x5809d0['model']['createRange'](_0x329554['start'],_0x329554['end']),_0x329554['detach'](),_0x5809d0['model']['enqueueChange'](_0x337944['buffer']['batch'],_0x13d9b1=>{_0x337944['buffer']['lock'](),_0x13d9b1['setSelection'](_0x13d9b1['createRange'](_0x3a52eb['end'])),_0x337944['buffer']['unlock']();});}),_0x5809d0['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5809d0,'merge'),{'priority':'high'}),_0x5809d0['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x390df0,_0x6084a9,_0x7243d4)=>{_0x7243d4['options']['showSuggestionHighlights']&&_e(_0x5809d0,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x390df0,_0x6084a9,_0x7243d4);},{'priority':'high'}),_0x5809d0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x29e810,_0x566ddd,_0x524ad6)=>{const _0x48aad4=_0x524ad6['mapper']['markerNameToElements'](_0x566ddd['markerName']);if(_0x48aad4){for(const _0x5455bd of _0x48aad4)_0x5455bd['is']('uiElement')&&(_0x524ad6['mapper']['unbindElementFromMarkerName'](_0x5455bd,_0x566ddd['markerName']),_0x524ad6['writer']['remove'](_0x5455bd));}},{'priority':'high'});}}class K extends _0x4f7a1d{['afterInit'](){const _0x332f8e=this['editor'];if(!_0x332f8e['plugins']['has']('ListEditing'))return;const _0x1c6099=_0x332f8e['locale'],_0xbd8dca=_0x332f8e['plugins']['get']('TrackChangesEditing'),_0x4850ce=_0x332f8e['plugins']['has']('TodoListEditing'),_0x27d193=!!_0x332f8e['config']['get']('list.multiBlock');function _0x30473a(_0x483880){return{'type':'format','content':''+o(_0x1c6099,'*Set\x20format:*\x20%0',_0x483880)};}function _0x23ddf4(_0x11a01b){return{'type':'format','content':''+o(_0x1c6099,'*Remove\x20format:*\x20%0',_0x11a01b)};}_0xbd8dca['enableDefaultAttributesIntegration']('numberedList'),_0xbd8dca['enableDefaultAttributesIntegration']('bulletedList'),_0xbd8dca['enableDefaultAttributesIntegration']('customNumberedList'),_0xbd8dca['enableDefaultAttributesIntegration']('customBulletedList'),_0xbd8dca['enableDefaultAttributesIntegration']('indentList'),_0xbd8dca['enableDefaultAttributesIntegration']('outdentList'),_0xbd8dca['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xbd8dca['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xbd8dca['registerBlockAttribute']('listItemId'),_0xbd8dca['registerBlockAttribute']('listType'),_0xbd8dca['registerBlockAttribute']('listIndent'),_0x27d193&&(_0xbd8dca['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xbd8dca['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4850ce&&(_0xbd8dca['enableDefaultAttributesIntegration']('todoList'),_0xbd8dca['enableDefaultAttributesIntegration']('checkTodoList'),_0xbd8dca['registerBlockAttribute']('todoListChecked'),_0xbd8dca['descriptionFactory']['registerDescriptionCallback'](_0x24fc41=>{const {data:_0x5a5570}=_0x24fc41;if(_0x5a5570&&'todoListChecked'==_0x5a5570['key'])return{'type':'format','content':_0x5a5570['newValue']?o(_0x1c6099,'*Check\x20item*'):o(_0x1c6099,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x27a32e=>{if(_0x27a32e['batch']['isUndo'])return!0x1;let _0x492122=!0x1;const _0x453ee3=_0xbd8dca['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e302c=>'todoListChecked'===_0xbd8dca['_getAttributeKey'](_0x4e302c));for(const _0x45c115 of _0x453ee3){'todo'!=_0x45c115['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xbd8dca['_findSuggestions'](_0x45c115['getFirstRange'](),'attribute')['find'](_0x5e69b1=>'listType'===_0xbd8dca['_getAttributeKey'](_0x5e69b1['suggestion']))||(_0x27a32e['removeMarker'](_0x45c115['getFirstMarker']()),_0x492122=!0x0));}return _0x492122;})),_0xbd8dca['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1c6099,'FORMAT_INDENT'));const _0x591b8a={'type':'format','content':''};_0xbd8dca['descriptionFactory']['registerDescriptionCallback'](_0x19a541=>{const {data:_0x2cb547}=_0x19a541;if(!_0x2cb547||'listType'!=_0x2cb547['key'])return;let _0x4e55b2=_0x19a541['head'];for(;_0x4e55b2;){if(_0x4e55b2['data']&&(('listStyle'==_0x4e55b2['data']['key']||'listMarkerStyle'==_0x4e55b2['data']['key'])&&(_0x4e55b2['data']['newValue']&&'default'!=_0x4e55b2['data']['newValue']||'default'!=_0x4e55b2['data']['oldValue']&&!_0x2cb547['newValue'])||!_0x27d193&&_0x4e55b2['data']['key']==m))return _0x591b8a;_0x4e55b2=_0x4e55b2['next'];}if(null==_0x2cb547['newValue'])switch(_0x2cb547['oldValue']){case'bulleted':return _0x23ddf4(o(_0x1c6099,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x23ddf4(o(_0x1c6099,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x23ddf4(o(_0x1c6099,'ELEMENT_TODO_LIST'));}switch(_0x2cb547['newValue']){case'bulleted':return _0x30473a(o(_0x1c6099,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x30473a(o(_0x1c6099,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x30473a(o(_0x1c6099,'ELEMENT_TODO_LIST'));}}),_0xbd8dca['descriptionFactory']['registerDescriptionCallback'](_0x1a6124=>{const {data:_0x9a1926}=_0x1a6124;if(_0x9a1926&&'listIndent'==_0x9a1926['key'])return null==_0x9a1926['newValue']||null==_0x9a1926['oldValue']&&0x0==_0x9a1926['newValue']?_0x591b8a:void 0x0;}),_0xbd8dca['descriptionFactory']['registerDescriptionCallback'](_0x2334fb=>{if('attribute'!=_0x2334fb['type'])return;const {data:_0x59f6de}=_0x2334fb;if(!_0x59f6de||'listItemId'!=_0x59f6de['key'])return;const _0x269c64=le(_0x2334fb);return'newValue'==_0x269c64?{'type':'format','content':o(_0x1c6099,'*Merge:*\x20list\x20item')}:'oldValue'==_0x269c64?{'type':'format','content':o(_0x1c6099,'*Split:*\x20list\x20item')}:_0x591b8a;}),_0x332f8e['model']['document']['registerPostFixer'](_0x7c4f03=>this['listItemIdFixer'](_0x7c4f03)),_0x332f8e['model']['document']['registerPostFixer'](_0x25197e=>this['noTrackChangesFixer'](_0x25197e)),_0x332f8e['model']['document']['on']('change:data',(_0x28eff8,_0x453cce)=>{if(_0x453cce['isUndo']||!_0x453cce['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xadb22){if(_0xadb22['batch']['isUndo']||!_0xadb22['batch']['isLocal'])return!0x1;let _0x4cc128=!0x1;const _0x5e0bef=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4506f0=>_0x4506f0['data']&&'listItemId'==_0x4506f0['data']['key'])['filter'](_0x1cbd06=>_0x1cbd06['data']['newValue']&&_0x1cbd06['data']['oldValue']);for(const _0x47798b of _0x5e0bef)le(_0x47798b)||(_0xadb22['removeMarker'](_0x47798b['getFirstMarker']()),_0x4cc128=!0x0);return _0x4cc128;}['noTrackChangesFixer'](_0x29ad8a){if(_0x29ad8a['batch']['isUndo']||!_0x29ad8a['batch']['isLocal'])return!0x1;const _0x18e58b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x18e58b['trackChangesCommand']['value'])return!0x1;let _0x268430=!0x1;const _0x1aabee=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xa114b6=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x25f6e5=>'attribute'==_0x25f6e5['type'])['filter'](_0x57ebc9=>_0x1aabee['includes'](_0x57ebc9['attributeKey']));if(0x0==_0xa114b6['length'])return _0x268430;for(const _0x4ea858 of _0xa114b6){const _0x1f4094=_0x18e58b['_findSuggestions'](_0x4ea858['range'],'attribute')['filter'](_0x41b754=>!_0x41b754['meta']['isNextTo'])['map'](_0x189c6a=>_0x189c6a['suggestion'])['filter'](_0x14f64c=>{const _0x4ddfa7=_0x18e58b['_getAttributeKey'](_0x14f64c);return _0x1aabee['includes'](_0x4ddfa7);});if(_0x1f4094['length']){for(const _0x4a4ebe of _0x1f4094)_0x29ad8a['removeMarker'](_0x4a4ebe['getFirstMarker']());_0x268430=!0x0;}}return _0x268430;}['assureChains'](){const _0x1d082a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x330989=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4a65fe;const _0x5a0b20=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4db95b=>{if(_0x4db95b['data']['oldRange']||!_0x4db95b['data']['newRange'])return null;if(!_0x4db95b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5ebbec}=_0x1d082a['_splitMarkerName'](_0x4db95b['name']);if(!_0x1d082a['hasSuggestion'](_0x5ebbec))return null;const _0x158fda=_0x1d082a['getSuggestion'](_0x5ebbec);return _0x330989['includes'](_0x158fda['data']['key']);})['map'](_0x51bb27=>{const {id:_0x27d609}=_0x1d082a['_splitMarkerName'](_0x51bb27['name']),_0x5dd853=_0x1d082a['getSuggestion'](_0x27d609);return _0x4a65fe=_0x5dd853['attributes']['groupId'],_0x5dd853['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5a0b20['size'])return;const _0x1035a2=_0x1d082a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c8081=>'attribute'==_0x1c8081['type']&&_0x1c8081['data']&&_0x330989['includes'](_0x1c8081['data']['key'])&&_0x1c8081['attributes']['groupId']!=_0x4a65fe)['map'](_0x1c36a8=>({'listItem':_0x1c36a8['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1c36a8['attributes']['groupId']})),_0x54ca7a=new Set();for(const {groupId:_0x2025e5,listItem:_0x277361}of _0x1035a2)_0x5a0b20['has'](_0x277361)&&_0x54ca7a['add'](_0x2025e5);for(const _0x13a086 of _0x1d082a['getSuggestions']())_0x54ca7a['has'](_0x13a086['attributes']['groupId'])&&_0x13a086['setAttribute']('groupId',_0x4a65fe);}['_supportLegacySuggestions'](){const _0x5143be=this['editor'],_0x1f5226=_0x5143be['locale'],_0x5f41c4=_0x5143be['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5f41c4['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x8d2f3,_0xc620b9){const _0x33f4c3=[];for(let _0x1b65e6 of _0x8d2f3)_0x1b65e6['start']['nodeAfter']===_0x1b65e6['end']['parent']&&(_0x1b65e6=_0x5143be['model']['createRange'](_0x5143be['model']['createPositionAt'](_0x1b65e6['start']['nodeAfter'],0x0))),_0x33f4c3['push'](_0x1b65e6);_0x5143be['model']['change'](_0x1f6283=>{const _0x1b0a4f=_0x5143be['model']['document']['selection'],_0x60d502=Array['from'](_0x1b0a4f['getRanges']())['map'](_0x2cdb6c=>_0x5978fe['fromRange'](_0x2cdb6c));_0x1f6283['setSelection'](_0x33f4c3),_0x5143be['commands']['get'](_0xc620b9['commandName'])['refresh'](),_0xc620b9['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5143be['execute'](_0xc620b9['commandName'],..._0xc620b9['commandParams']),_0x1f6283['setSelection'](_0x60d502);for(const _0x3a6068 of _0x60d502)_0x3a6068['detach']();});}),_0x5f41c4['descriptionFactory']['registerElementLabel'](function(_0x39770b){const _0x27d45f=!_0x5143be['model']['schema']['isObject'](_0x39770b),_0x2031c7=_0x39770b['previousSibling'],_0x2df62b=_0x39770b['nextSibling'],_0x5e6529=_0x39770b['getAttribute']('listItemId'),_0x4cc7f7=!_0x2031c7||_0x2031c7['getAttribute']('listItemId')!==_0x5e6529,_0x4efccb=!_0x2df62b||_0x2df62b['getAttribute']('listItemId')!==_0x5e6529;return _0x27d45f&&Boolean(_0x5e6529)&&_0x4cc7f7&&_0x4efccb;},_0x29f2ee=>o(_0x1f5226,'ELEMENT_LIST_ITEM',_0x29f2ee));}['_registerLegacyDescription'](){const _0x491048=this['editor'],_0x599a49=_0x491048['locale'];function _0x4911ae(_0x5e1096){const _0x3e90f8=_0x491048['commands']['get']('bulletedList')['value'],_0x34333d=_0x491048['commands']['get']('numberedList')['value'];return'numberedList'===_0x5e1096?_0x3e90f8:_0x34333d;}_0x491048['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5d3a93){if('formatBlock'!=_0x5d3a93['type'])return;const {data:_0x348222}=_0x5d3a93;if(!_0x348222)return;let _0x6cf8e0,_0x3fd3ff,_0xe4caf4,_0x310c2c;switch(_0x348222['commandName']){case'bulletedList':_0xe4caf4=_0x348222['commandParams'][0x0]['forceValue'],_0x310c2c=_0x4911ae(_0x348222['commandName']),_0x6cf8e0=_0xe4caf4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x310c2c&&_0x491048['config']['get']('list.multiBlock')||(_0x6cf8e0='*Change\x20to:*\x20%0'),_0x3fd3ff={'type':'format','content':o(_0x599a49,_0x6cf8e0,o(_0x599a49,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xe4caf4=_0x348222['commandParams'][0x0]['forceValue'],_0x310c2c=_0x4911ae(_0x348222['commandName']),_0x6cf8e0=_0xe4caf4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x310c2c&&_0x491048['config']['get']('list.multiBlock')||(_0x6cf8e0='*Change\x20to:*\x20%0'),_0x3fd3ff={'type':'format','content':o(_0x599a49,_0x6cf8e0,o(_0x599a49,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x6cf8e0='*Indent:*\x20%0',_0x3fd3ff={'type':'format','content':o(_0x599a49,_0x6cf8e0,o(_0x599a49,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x6cf8e0=function(_0x167da2){const _0x245e49=_0x167da2['getFirstRange']();let _0x284ad6=_0x245e49['start']['nodeAfter'];for(;_0x284ad6&&_0x245e49['containsItem'](_0x284ad6);){if(_0x284ad6['getAttribute']('listIndent')>0x0)return!0x1;_0x284ad6=_0x284ad6['nextSibling'];}return!0x0;}(_0x5d3a93)?o(_0x599a49,'*Format:*\x20remove\x20from\x20%0',o(_0x599a49,function(_0x177575){return'ELEMENT_'+_0x177575['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5d3a93))):o(_0x599a49,'*Outdent:*\x20%0',o(_0x599a49,'ELEMENT_LIST_ITEM')),_0x3fd3ff={'type':'format','content':_0x6cf8e0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x348222['multipleBlocks']&&(_0x6cf8e0='*Merge:*\x20%0',_0x3fd3ff={'type':'deletion','content':o(_0x599a49,_0x6cf8e0,o(_0x599a49,'ELEMENT_LIST_ITEM'))});}return _0x3fd3ff;});}}function le(_0x150dee){let _0x346f7e=_0x150dee['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x346f7e;){const _0x4ea15e=_0x346f7e['getAttribute']('listItemId');if(!_0x4ea15e)return!0x1;if(_0x4ea15e==_0x150dee['data']['newValue'])return'newValue';if(_0x4ea15e==_0x150dee['data']['oldValue'])return'oldValue';_0x346f7e=_0x346f7e['previousSibling'];}return!0x1;}class pe extends _0x4f7a1d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x563d34=this['editor']['config']['get']('list.properties'),_0x13983a=this['editor']['plugins']['get']('TrackChangesEditing');_0x563d34['styles']&&(_0x13983a['enableDefaultAttributesIntegration']('listStyle'),_0x13983a['registerBlockAttribute']('listStyle')),_0x563d34['reversed']&&(_0x13983a['enableDefaultAttributesIntegration']('listReversed'),_0x13983a['registerBlockAttribute']('listReversed')),_0x563d34['startIndex']&&(_0x13983a['enableDefaultAttributesIntegration']('listStart'),_0x13983a['registerBlockAttribute']('listStart'));const _0x312336={'type':'format','content':''};_0x13983a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4d42ae=this['editor']['locale'];_0x13983a['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4d42ae,'FORMAT_LIST_REVERSED')),_0x13983a['descriptionFactory']['registerDescriptionCallback'](_0x54f9d6=>{const {data:_0x40bab9}=_0x54f9d6;if(_0x40bab9&&'listReversed'==_0x40bab9['key'])return null==_0x40bab9['newValue']||0x0==_0x40bab9['newValue']&&null==_0x40bab9['oldValue']?_0x312336:void 0x0;}),_0x13983a['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4d42ae,'FORMAT_LIST_START')),_0x13983a['descriptionFactory']['registerDescriptionCallback'](_0x5b1c99=>{const {data:_0x5b2de}=_0x5b1c99;if(_0x5b2de&&'listStart'==_0x5b2de['key'])return null==_0x5b2de['newValue']||0x1==_0x5b2de['newValue']&&null==_0x5b2de['oldValue']?_0x312336:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5b5ae6=>{if(_0x5b5ae6['batch']['isUndo'])return!0x1;let _0x40d450=!0x1;const _0x453de3=_0x13983a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2fd5ce=>{const _0x552307=_0x13983a['_getAttributeKey'](_0x2fd5ce);return'listStart'==_0x552307||'listReversed'==_0x552307;});for(const _0x888010 of _0x453de3){const _0x3fd6f5=_0x888010['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3fd6f5||'customNumbered'==_0x3fd6f5)continue;_0x13983a['_findSuggestions'](_0x888010['getFirstRange'](),'attribute')['find'](_0xa1e169=>'listType'==_0x13983a['_getAttributeKey'](_0xa1e169['suggestion']))||(_0x5b5ae6['removeMarker'](_0x888010['getFirstMarker']()),_0x40d450=!0x0);}return _0x40d450;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5de992){const _0x64691b=this['editor']['locale'],{data:_0x38b087}=_0x5de992,_0xfe45f2={'type':'format','content':''};if(!_0x38b087||'listStyle'!=_0x38b087['key'])return;if(!_0x38b087['oldValue'])return'default'==_0x38b087['newValue']?_0xfe45f2:{'type':'format','content':''+o(_0x64691b,'*Set\x20format:*\x20%0',o(_0x64691b,this['_getTranslationKeyForListStyle'](_0x38b087['newValue'])))};if(!_0x38b087['newValue']){if('default'==_0x38b087['oldValue'])return _0xfe45f2;let _0x5f0496=_0x5de992['head'];for(;_0x5f0496;){if(_0x5f0496['data']&&'listType'==_0x5f0496['data']['key']&&_0x5f0496['data']['newValue'])return _0xfe45f2;_0x5f0496=_0x5f0496['next'];}return{'type':'format','content':''+o(_0x64691b,'*Remove\x20format:*\x20%0',o(_0x64691b,this['_getTranslationKeyForListStyle'](_0x38b087['oldValue'])))};}if('default'!=_0x38b087['newValue'])return{'type':'format','content':''+o(_0x64691b,'*Set\x20format:*\x20%0',o(_0x64691b,this['_getTranslationKeyForListStyle'](_0x38b087['newValue'])))};let _0x1acad6=_0x5de992['head'];for(;_0x1acad6;){if(_0x1acad6['data']&&'listType'==_0x1acad6['data']['key']&&_0x1acad6['data']['newValue']&&_0x1acad6['data']['oldValue'])return _0xfe45f2;_0x1acad6=_0x1acad6['next'];}return{'type':'format','content':o(_0x64691b,'*Set\x20format:*\x20%0',o(_0x64691b,'ELEMENT_'+_0x5de992['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x49f6ab=this['editor'],_0x4e15ee=_0x49f6ab['locale'];_0x49f6ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30f487=>{if('formatBlock'!=_0x30f487['type'])return;const {data:_0x4f086d}=_0x30f487;if(!_0x4f086d)return;let _0x19e35a,_0x46d38c;switch(_0x4f086d['commandName']){case'listStyle':_0x19e35a='*Change\x20to:*\x20%0',_0x46d38c={'type':'format','content':o(_0x4e15ee,_0x19e35a,o(_0x4e15ee,this['_getTranslationKeyForListStyle'](_0x4f086d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x19e35a=_0x4f086d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x46d38c={'type':'format','content':o(_0x4e15ee,_0x19e35a)};break;case'listStart':_0x19e35a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x46d38c={'type':'format','content':o(_0x4e15ee,_0x19e35a,_0x4f086d['commandParams'][0x0]['startIndex'])};}return _0x46d38c;});}['_getTranslationKeyForListStyle'](_0x2cd61d){return'ELEMENT_'+function(_0x1afc26){if(ye['includes'](_0x1afc26))return'bulleted';if(Se['includes'](_0x1afc26))return'numbered';return null;}(_0x2cd61d)['toUpperCase']()+'_LIST_'+_0x2cd61d['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x4f7a1d{static get['requires'](){return[_0x2a812e];}['init'](){const _0x51e444=this['editor'],_0x5a5a78=_0x51e444['plugins']['get']('TrackChangesEditing'),_0x461fe9=_0x51e444['commands']['get']('enter');_0x5a5a78['enableCommand']('enter',()=>{_0x51e444['model']['change'](_0x2ffaf5=>{const _0x150b71=_0x51e444['model']['document']['selection'],_0x4bc055=_0x150b71['getFirstPosition'](),_0x115d6e=_0x5978fe['fromRange'](_0x150b71['getFirstRange']());if(_0x461fe9['enterBlock'](_0x2ffaf5)){const _0x3a10b6=_0x51e444['model']['createPositionAt'](_0x4bc055['parent']['nextSibling'],0x0),_0x138731=_0x2ffaf5['createRange'](_0x4bc055,_0x3a10b6);_0x5a5a78['markInsertion'](_0x138731);}else _0x2ffaf5['setSelection'](_0x2ffaf5['createRange'](_0x115d6e['end']));_0x115d6e['detach'](),_0x461fe9['fire']('afterExecute',{'writer':_0x2ffaf5});});}),_0x51e444['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x51e444,'split'),{'priority':'high'}),_0x51e444['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x300168,_0x5a2687,_0x866b14)=>{const _0x36e904=_0x866b14['mapper']['markerNameToElements'](_0x5a2687['markerName']);if(_0x36e904){for(const _0x3cf845 of _0x36e904)_0x3cf845['hasClass']('ck-suggestion-marker-split')&&(_0x866b14['mapper']['unbindElementFromMarkerName'](_0x3cf845,_0x5a2687['markerName']),_0x866b14['writer']['remove'](_0x3cf845));}},{'priority':'high'}),_0x51e444['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x292da8,_0x33d0fb,_0x1e07fd)=>{_0x1e07fd['options']['showSuggestionHighlights']&&_e(_0x51e444,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x292da8,_0x33d0fb,_0x1e07fd);},{'priority':'high'});}}class X extends _0x4f7a1d{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5e6d50=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e6d50['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5e6d50['enableCommand']('findNext'),_0x5e6d50['enableCommand']('findPrevious'),_0x5e6d50['enableCommand']('replace'),_0x5e6d50['enableCommand']('replaceAll');}['handleFindCommand'](_0x5e4674,_0x8b00c6,_0x500ebe={}){const _0x256894=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5e4674(_0x234735=>{let _0x259767=('string'==typeof _0x8b00c6?_0x256894['findByTextCallback'](_0x8b00c6,_0x500ebe):_0x8b00c6)(_0x234735);Array['isArray'](_0x259767)&&(_0x259767={'results':_0x259767,'searchText':'string'==typeof _0x8b00c6?_0x8b00c6:''});const _0x319b24=_0x259767['results']['filter'](_0x503377=>!0x1===this['_isInDeletionRange'](_0x503377,_0x234735['item']));return{..._0x259767,'results':_0x319b24};},_0x500ebe);}['_isInDeletionRange'](_0x3ba053,_0x109e3a){const _0x3270a0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x109e3a,_0x3ba053['start']),this['editor']['model']['createPositionAt'](_0x109e3a,_0x3ba053['end']));for(const _0x3eda25 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3270a0['getIntersection'](_0x3eda25['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x4f7a1d{['afterInit'](){const _0x52ca45=this['editor']['locale'],_0x18e4bc=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1f205f,commandName:_0x218185}of ro)this['editor']['plugins']['has'](_0x1f205f)&&(_0x18e4bc['enableDefaultAttributesIntegration'](_0x218185),_0x18e4bc['registerInlineAttribute'](_0x218185));_0x18e4bc['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x52ca45,'FORMAT_FONT_SIZE')),_0x18e4bc['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x52ca45,'FORMAT_FONT_FAMILY')),_0x18e4bc['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x52ca45,'FORMAT_FONT_COLOR')),_0x18e4bc['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x52ca45,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4335b7=this['editor'],_0x1558fa=_0x4335b7['locale'];_0x4335b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bfdaa=>{const _0x37280b=_0x1558fa['t'];if('formatInline'!=_0x4bfdaa['type'])return;const {data:_0x44d2b3}=_0x4bfdaa;if(null!=_0x44d2b3){if('fontSize'==_0x44d2b3['commandName']){const _0x2349e7=_0x44d2b3['commandParams'][0x0]['value'];if(_0x2349e7){const _0x1c44a2=_0x37280b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x25f4f2=>_0x25f4f2['model']==_0x2349e7)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1558fa,'*Set\x20font\x20size:*\x20%0',_0x1c44a2)};}return{'type':'format','content':o(_0x1558fa,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x44d2b3['commandName']){const _0x545894=_0x44d2b3['commandParams'][0x0]['value'];return _0x545894?{'type':'format','content':o(_0x1558fa,'*Set\x20font\x20family:*\x20%0',_0x545894)}:{'type':'format','content':o(_0x1558fa,'*Reset\x20font\x20family*')};}if('fontColor'==_0x44d2b3['commandName']){const _0xef4c0a=_0x44d2b3['commandParams'][0x0]['value'];if(_0xef4c0a){const _0x21e271=_0x2e4873(this['editor']['config']['get']('fontColor.colors'))['find'](_0x491d49=>_0x491d49['model']==_0xef4c0a);let _0x3e7828=_0xef4c0a,_0x475255='';return _0x21e271&&(_0x3e7828=_0x21e271['label'],_0x475255=_0x37280b(_0x3e7828)['toLowerCase']()),{'type':'format','content':o(_0x1558fa,'*Set\x20font\x20color:*\x20%0',_0x475255)['trim'](),'color':{'value':_0xef4c0a,'title':_0x475255||_0x3e7828}};}return{'type':'format','content':o(_0x1558fa,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x44d2b3['commandName']){const _0xd930eb=_0x44d2b3['commandParams'][0x0]['value'];if(_0xd930eb){const _0x23b766=_0x2e4873(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2d0e21=>_0x2d0e21['model']==_0xd930eb);let _0x557453=_0xd930eb,_0x5b0f3e='';return _0x23b766&&(_0x557453=_0x23b766['label'],_0x5b0f3e=_0x37280b(_0x557453)['toLowerCase']()),{'type':'format','content':o(_0x1558fa,'*Set\x20font\x20background\x20color:*\x20%0',_0x5b0f3e)['trim'](),'color':{'value':_0xd930eb,'title':_0x5b0f3e||_0x557453}};}return{'type':'format','content':o(_0x1558fa,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x4f7a1d{['afterInit'](){const _0x2a4ebf=this['editor'],_0x37cf95=_0x2a4ebf['plugins']['get']('TrackChangesEditing'),_0x3f296f=_0x2a4ebf['commands']['get']('copyFormat'),_0x5d26c5=_0x2a4ebf['commands']['get']('pasteFormat');_0x3f296f&&_0x5d26c5&&(_0x37cf95['enableDefaultAttributesIntegration']('pasteFormat'),_0x37cf95['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x40556c=this['editor'],_0x4625a2=_0x40556c['locale'];_0x40556c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b3a62=>{if('formatBlock'!=_0x1b3a62['type']&&'formatInline'!=_0x1b3a62['type'])return;const {data:_0x4d343c}=_0x1b3a62;if(_0x4d343c&&'pasteFormat'===_0x4d343c['commandName']){const _0x5e0b15=[],_0x98d155=_0x4d343c['commandParams'][0x0];for(const [_0x2a568e,_0x264cd8]of Object['entries'](_0x98d155))_0x5e0b15['push'](so(_0x40556c,_0x2a568e,_0x264cd8));return _0x5e0b15['length']?{'type':'format','content':o(_0x4625a2,'*Set\x20format\x20to:*\x20%0',_0x5e0b15['join'](',\x20'))}:{'type':'format','content':o(_0x4625a2,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2c7cab,_0x14ccf1,_0x165834){const _0x368087=_0x2c7cab['locale']['t'],_0x4e2c60=_0x14ccf1['split'](/(?=[A-Z])/)['join']('\x20'),_0x2f2f8e=_0x368087(_0x4e2c60['charAt'](0x0)['toUpperCase']()+_0x4e2c60['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x165834)return _0x2f2f8e;if('fontColor'===_0x14ccf1||'fontBackgroundColor'===_0x14ccf1){const _0x182c0e=_0x2e4873(_0x2c7cab['config']['get']('fontColor.colors'))['find'](_0x3d8a79=>_0x3d8a79['model']==_0x165834);return _0x2f2f8e+'\x20('+(_0x182c0e?_0x368087(_0x182c0e['label'])['toLowerCase']():_0x165834)+')';}if('fontSize'===_0x14ccf1&&isNaN(parseFloat(_0x165834))){const _0x156fc1=_0x2c7cab['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2c7cab['config']['get']('fontSize.options'))['find'](_0x23ea1b=>_0x23ea1b['model']==_0x165834);return _0x2f2f8e+'\x20('+(_0x156fc1?_0x368087(_0x156fc1['title'])['toLowerCase']():_0x165834)+')';}return _0x2f2f8e+'\x20('+_0x165834+')';}class tt extends _0x4f7a1d{['_headingOptions'];['afterInit'](){const _0x5dedd4=this['editor'];if(!_0x5dedd4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5dedd4['config']['get']('heading.options');const _0x1b128c=_0x5dedd4['locale'],_0x51de5a=_0x5dedd4['plugins']['get']('TrackChangesEditing');_0x51de5a['enableDefaultAttributesIntegration']('heading');for(const _0x59b6c7 of this['_headingOptions'])'paragraph'!=_0x59b6c7['model']&&_0x51de5a['descriptionFactory']['registerElementLabel'](_0x59b6c7['model'],_0xf143e3=>{const _0x4f009d=this['_getHeadingLevel'](_0x59b6c7['model']);return null!==_0x4f009d?_0x20f9ac(_0xf143e3,_0x4f009d):_0x3b01bd(_0xf143e3,_0x59b6c7['title']);});function _0x20f9ac(_0x4c80f6,_0x3302f3){return o(_0x1b128c,'ELEMENT_HEADING',[_0x4c80f6,_0x3302f3]);}function _0x3b01bd(_0x4719af,_0x2221f3){return o(_0x1b128c,'ELEMENT_HEADING_CUSTOM',[_0x4719af,_0x2221f3]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45bd59=this['editor'],_0x39d52b=_0x45bd59['locale'];function _0x5aa97c(_0x4cbfaf,_0x21d129){return o(_0x39d52b,'ELEMENT_HEADING_CUSTOM',[_0x4cbfaf,_0x21d129]);}_0x45bd59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24dd9e=>{if('formatBlock'!=_0x24dd9e['type'])return;const {data:_0x4b83ae}=_0x24dd9e;if(_0x4b83ae&&'heading'==_0x4b83ae['commandName']){const _0x36fa18=_0x4b83ae['commandParams'][0x0]['value'],_0x12cb0c=this['_getHeadingLevel'](_0x36fa18);if(null!==_0x12cb0c)return{'type':'format','content':o(_0x39d52b,'*Change\x20to:*\x20%0',(_0x140935=0x1,_0xb959fe=_0x12cb0c,o(_0x39d52b,'ELEMENT_HEADING',[_0x140935,_0xb959fe])))};const _0x27e78d=this['_headingOptions']['find'](_0x1672f6=>_0x1672f6['model']===_0x36fa18)['title'];return{'type':'format','content':o(_0x39d52b,'*Change\x20to:*\x20%0',_0x5aa97c(0x1,_0x27e78d))};}var _0x140935,_0xb959fe;});}['_getHeadingLevel'](_0x1781cb){const _0x31f37d=_0x1781cb['match'](/^heading(\d+)/);if(_0x31f37d)return _0x31f37d[0x1];const _0x1278dd=this['_headingOptions']?.['find'](_0x4cb929=>_0x4cb929['model']==_0x1781cb);if(_0x1278dd&&_0x1278dd['view']){const _0x2774f2=_0x1278dd['view'],_0x2e5982=(_0x2774f2['name']??_0x2774f2)['match'](/^h(\d+)/);if(_0x2e5982)return _0x2e5982[0x1];}return null;}}class et extends _0x4f7a1d{['afterInit'](){const _0x443e09=this['editor'];if(!_0x443e09['plugins']['has']('HighlightEditing'))return;const _0x53ce2e=_0x443e09['plugins']['get']('TrackChangesEditing'),_0x233997=_0x443e09['locale'];_0x53ce2e['enableDefaultAttributesIntegration']('highlight'),_0x53ce2e['registerInlineAttribute']('highlight'),_0x53ce2e['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x233997,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44ab20=this['editor'],_0x327282=_0x44ab20['locale'];_0x44ab20['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35af1a=>{if('formatInline'!=_0x35af1a['type'])return;const {data:_0x433ec3}=_0x35af1a;if(_0x433ec3&&'highlight'==_0x433ec3['commandName']){const _0x24c0e5=_0x327282['t'],_0x2b9c8a=_0x433ec3['commandParams'][0x0]['value'];if(_0x2b9c8a){const _0x1cbce2=_0x44ab20['config']['get']('highlight.options')['find'](_0x21c7cb=>_0x21c7cb['model']==_0x2b9c8a),_0x1fe5b5=_0x24c0e5(_0x1cbce2['title'])['toLowerCase']();return{'type':'format','content':o(_0x327282,'*Set\x20highlight:*\x20%0',_0x1fe5b5),'color':{'value':_0x1cbce2['color'],'title':_0x1cbce2['title']}};}return{'type':'format','content':o(_0x327282,'*Remove\x20highlight*',o(_0x327282,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x4f7a1d{['afterInit'](){const _0x7f1f98=this['editor'];if(!_0x7f1f98['plugins']['has']('HorizontalLineEditing'))return;_0x7f1f98['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x239ee9=_0x7f1f98['plugins']['get']('TrackChangesEditing'),_0x171466=_0x7f1f98['locale'];_0x239ee9['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5c45ea=>o(_0x171466,'ELEMENT_HORIZONTAL_LINE',_0x5c45ea)),_0x7f1f98['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x818379,{writer:_0x38cc32,options:_0x3e316c})=>{if(!_0x3e316c['showSuggestionHighlights'])return null;const _0x3ae4e7=_0x38cc32['createContainerElement']('div'),_0x1baf2f=_0x38cc32['createEmptyElement']('hr');return _0x38cc32['addClass']('ck-horizontal-line',_0x3ae4e7),_0x38cc32['insert'](_0x38cc32['createPositionAt'](_0x3ae4e7,0x0),_0x1baf2f),_0x3ae4e7;},'converterPriority':'high'});}}class st extends _0x4f7a1d{['afterInit'](){const _0x245e58=this['editor'];if(!_0x245e58['plugins']['has']('HtmlEmbed'))return;const _0x1bc530=_0x245e58['plugins']['get']('TrackChangesEditing'),_0x476d32=_0x245e58['locale'];_0x1bc530['descriptionFactory']['registerElementLabel']('rawHtml',_0x290b66=>o(_0x476d32,'ELEMENT_HTML_EMBED',_0x290b66)),_0x1bc530['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1bc530['registerBlockAttribute']('value'),_0x1bc530['descriptionFactory']['registerDescriptionCallback'](_0x3d900c=>{if('attribute'!=_0x3d900c['type'])return;const {data:_0x3521f9}=_0x3d900c;if(_0x3521f9&&'value'==_0x3521f9['key']&&_0x3d900c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x281568=o(_0x476d32,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x476d32,'*Change\x20%0\x20content*',_0x281568)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f4adb=this['editor'],_0x10c1b2=_0x5f4adb['locale'];_0x5f4adb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x411f8c=>{if('formatBlock'!=_0x411f8c['type'])return;const {data:_0x414a09}=_0x411f8c;if(_0x414a09&&'htmlEmbed'==_0x414a09['commandName']){const _0x585565=o(_0x10c1b2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x10c1b2,'*Change\x20%0\x20content*',_0x585565)};}});}}class nt extends _0x4f7a1d{['afterInit'](){const _0x3e1631=this['editor'];if(!_0x3e1631['plugins']['has']('ImageEditing'))return;const _0x10aad0=_0x3e1631['plugins']['get']('TrackChangesEditing'),_0x2faef8=_0x3e1631['plugins']['get']('ImageUtils'),_0xd0f9c2=_0x3e1631['locale'];_0x10aad0['enableCommand']('insertImage'),_0x10aad0['descriptionFactory']['registerElementLabel']('imageBlock',_0x2fe4c9=>o(_0xd0f9c2,'ELEMENT_IMAGE',_0x2fe4c9)),_0x10aad0['descriptionFactory']['registerElementLabel']('imageInline',_0x37b8ed=>o(_0xd0f9c2,'ELEMENT_INLINE_IMAGE',_0x37b8ed)),_0x10aad0['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xd0f9c2,'ELEMENT_CAPTION')),_0x3e1631['plugins']['has']('ImageUploadEditing')&&_0x10aad0['enableCommand']('uploadImage'),_0x3e1631['plugins']['has']('ImageBlockEditing')&&_0x3e1631['plugins']['has']('ImageInlineEditing')&&(_0x10aad0['enableCommand']('imageTypeInline',(_0xca62c7,_0x3e5826)=>{const _0x46c88d=_0x2faef8['getClosestSelectedImageElement'](_0x3e1631['model']['document']['selection']);_0x3e1631['model']['change'](()=>{_0x10aad0['markBlockFormat'](_0x46c88d,{'commandName':'imageTypeInline','commandParams':[_0x3e5826]},[],'convertBlockImageToInline');});}),_0x10aad0['enableCommand']('imageTypeBlock',(_0x5a4f09,_0x5f5b37)=>{_0x3e1631['model']['change'](_0x269eb8=>{let _0x569a35=_0x2faef8['getClosestSelectedImageElement'](_0x3e1631['model']['document']['selection']),_0x58704a=_0x269eb8['createRangeOn'](_0x569a35);const _0x4bfff5=_0x29d83f['fromPosition'](_0x58704a['start'],'toPrevious'),_0x53d7aa=_0x29d83f['fromPosition'](_0x58704a['end'],'toNext');_0x10aad0['forceDefaultExecution'](()=>_0x5a4f09(_0x5f5b37)),_0x569a35=_0x2faef8['getClosestSelectedImageElement'](_0x3e1631['model']['document']['selection']),_0x58704a=_0x269eb8['createRangeOn'](_0x569a35);const _0xc05bf5=_0x269eb8['createRange'](_0x4bfff5,_0x53d7aa);_0x4bfff5['detach'](),_0x53d7aa['detach'](),_0x10aad0['markBlockFormat'](_0x569a35,{'commandName':'imageTypeInline','commandParams':[_0x5f5b37]},[],'convertInlineImageToBlock'),_0xc05bf5['start']['isBefore'](_0x58704a['start'])&&_0x10aad0['markInsertion'](_0x269eb8['createRange'](_0xc05bf5['start'],_0x58704a['start']),'convertInlineImageToBlock'),_0x58704a['end']['isBefore'](_0xc05bf5['end'])&&_0x10aad0['markInsertion'](_0x269eb8['createRange'](_0x58704a['end'],_0xc05bf5['end']),'convertInlineImageToBlock');});}),_0x10aad0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x10aad0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x10aad0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x10aad0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x10aad0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x10aad0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x428298])=>{const _0x5ced11=_0x10aad0['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x37047e=_0x428298['start'],_0x4fc597=_0x428298['end'];const _0x811812=_0x3e1631['model']['schema']['getNearestSelectionRange'](_0x37047e,'backward'),_0x309eec=_0x3e1631['model']['schema']['getNearestSelectionRange'](_0x4fc597,'forward');_0x811812['isCollapsed']&&(_0x37047e=_0x811812['start']),_0x309eec['isCollapsed']&&(_0x4fc597=_0x309eec['end']),_0x5ced11([_0x3e1631['model']['createRange'](_0x37047e,_0x4fc597)]);}),_0x10aad0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x426e89),_0x10aad0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x426e89)),_0x3e1631['plugins']['has']('ImageCaptionEditing')&&(_0x10aad0['enableCommand']('toggleImageCaption',(_0x3b0b00,_0x5a51da)=>{const _0xfc8206=_0x3e1631['plugins']['get']('ImageCaptionUtils');let _0x513bd6=_0x2faef8['getClosestSelectedImageElement'](_0x3e1631['model']['document']['selection']),_0x1f7316=_0xfc8206['getCaptionFromImageModelElement'](_0x513bd6);_0x3e1631['model']['change'](()=>{if(_0x1f7316)return void _0x10aad0['markDeletion'](_0x3e1631['model']['createRangeOn'](_0x1f7316));const _0x34d4f9=_0x2faef8['isBlockImage'](_0x513bd6);_0x3b0b00(_0x5a51da),_0x513bd6=_0x2faef8['getClosestSelectedImageElement'](_0x3e1631['model']['document']['selection']),_0x1f7316=_0xfc8206['getCaptionFromImageModelElement'](_0x513bd6),_0x10aad0['markInsertion'](_0x3e1631['model']['createRangeOn'](_0x1f7316),_0x34d4f9?null:'imageCaption');});}),_0x10aad0['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x426e89));const _0x567b0b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x13845c(_0x3ea4dc,_0x2446e1){const _0x2b788b=_0x567b0b['findIndex'](({type:_0x4fd574,subType:_0xe33d63})=>_0x3ea4dc['type']==_0x4fd574&&_0x3ea4dc['subType']==_0xe33d63),_0x401a88=_0x567b0b['findIndex'](({type:_0x3b708d,subType:_0x4ddb76})=>_0x2446e1['type']==_0x3b708d&&_0x2446e1['subType']==_0x4ddb76);if(_0x2b788b<0x0||_0x401a88<0x0)return!0x1;const _0x26c6a7=_0x3ea4dc['getFirstRange'](),_0x4ead1d=_0x2446e1['getFirstRange']();if((0x0==_0x2b788b||0x1==_0x2b788b)&&0x2==_0x401a88&&_0x26c6a7['isIntersecting'](_0x4ead1d))return!0x0;if(0x2==_0x2b788b&&0x3==_0x401a88){const _0x4257f3=_0x10aad0['_findSuggestions'](_0x26c6a7,'insertion')['filter'](({suggestion:_0x18c562,meta:_0x69225e})=>_0x69225e['isOwn']&&'convertInlineImageToBlock'==_0x18c562['subType']);if(_0x4257f3['length']>0x1&&_0x4ead1d['end']['isEqual'](_0x26c6a7['start']))return!0x0;if(0x1==_0x4257f3['length']&&(_0x26c6a7['start']['isEqual'](_0x4ead1d['end'])||_0x26c6a7['end']['isEqual'](_0x4ead1d['start'])))return!0x0;}if(0x3==_0x2b788b&&0x3==_0x401a88&&_0x26c6a7['start']['isBefore'](_0x4ead1d['start'])){const _0xf77f64=_0x26c6a7['end']['nodeAfter'],_0x1f9abb=_0x4ead1d['start']['nodeBefore'];return _0x2faef8['isBlockImage'](_0xf77f64)&&_0xf77f64===_0x1f9abb;}return!0x1;}function _0x426e89(_0xa863c8,_0x1b8591){return _0x13845c(_0xa863c8,_0x1b8591)?[_0xa863c8,_0x1b8591]:_0x13845c(_0x1b8591,_0xa863c8)?[_0x1b8591,_0xa863c8]:null;}_0x3e1631['plugins']['has']('ImageResize')&&(_0x10aad0['enableDefaultAttributesIntegration']('resizeImage'),_0x10aad0['registerBlockAttribute']('resizedWidth'),_0x10aad0['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xd0f9c2,'FORMAT_IMAGE_SIZE'))),_0x3e1631['plugins']['has']('ImageTextAlternativeEditing')&&(_0x10aad0['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x10aad0['registerBlockAttribute']('alt')),_0x10aad0['descriptionFactory']['registerDescriptionCallback'](_0x3e0197=>{if(!!_0x567b0b['find'](({type:_0x491d26,subType:_0x2895f2})=>_0x3e0197['type']==_0x491d26&&_0x3e0197['subType']==_0x2895f2))return _0x3e0197['previous']?{}:void 0x0;}),_0x10aad0['descriptionFactory']['registerDescriptionCallback'](_0x28d976=>{if('insertion'==_0x28d976['type']||'deletion'==_0x28d976['type']){const _0x2bc0e8=_0x28d976['getContainedElement']();if(_0x2bc0e8&&_0x2bc0e8['is']('element','caption'))return{'type':'insertion'==_0x28d976['type']?'addObject':'removeObject','element':_0x2bc0e8,'quantity':0x1};}}),_0x10aad0['descriptionFactory']['registerDescriptionCallback'](_0x248f83=>'formatBlock'==_0x248f83['type']&&'convertInlineImageToBlock'==_0x248f83['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x248f83['type']&&'convertBlockImageToInline'==_0x248f83['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x10aad0['descriptionFactory']['registerDescriptionCallback'](_0x45b710=>{if('attribute'!=_0x45b710['type'])return;const {data:_0x30b2ba}=_0x45b710;if(!_0x30b2ba||'alt'!=_0x30b2ba['key'])return;const _0x50345d=_0x30b2ba['newValue'];return _0x50345d?{'type':'format','content':o(_0xd0f9c2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x50345d+'\x22')}:{'type':'format','content':o(_0xd0f9c2,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d9f21=this['editor'],_0x4f4eba=_0x4d9f21['locale'];_0x4d9f21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x418849=>{if('formatBlock'!=_0x418849['type']&&'formatInline'!=_0x418849['type'])return;const {data:_0x9a1f17}=_0x418849;if(_0x9a1f17){if('imageTextAlternative'==_0x9a1f17['commandName']){const _0x550426=_0x9a1f17['commandParams'][0x0]['newValue'];return _0x550426?{'type':'format','content':o(_0x4f4eba,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x550426+'\x22')}:{'type':'format','content':o(_0x4f4eba,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x9a1f17['commandName']){const _0x194d18=_0x9a1f17['commandParams'][0x0]['width'];return _0x194d18?{'type':'format','content':o(_0x4f4eba,'*Set\x20image\x20width:*\x20%0',_0x194d18)}:{'type':'format','content':o(_0x4f4eba,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x4f7a1d{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x21da7c=this['editor']['locale'],_0x505285=this['editor']['plugins']['get']('TrackChangesEditing');_0x505285['enableDefaultAttributesIntegration']('replaceImageSource'),_0x505285['registerBlockAttribute']('src'),_0x505285['descriptionFactory']['registerDescriptionCallback'](_0x48a45c=>{if('attribute'!=_0x48a45c['type'])return;const {data:_0x259a4a}=_0x48a45c;return _0x259a4a&&'src'==_0x259a4a['key']?_0x259a4a['newValue']&&_0x259a4a['oldValue']?{'type':'format','content':o(_0x21da7c,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x13c6bc=this['editor']['plugins']['get']('TrackChangesEditing');_0x13c6bc['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x13c6bc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x13c6bc['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x13c6bc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x342d08=this['editor'],_0x18d102=_0x342d08['locale'];_0x342d08['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12ccc0=>{if('formatBlock'!=_0x12ccc0['type']&&'formatInline'!=_0x12ccc0['type'])return;const {data:_0x3be5fe}=_0x12ccc0;if(!_0x3be5fe||'replaceImageSource'!=_0x3be5fe['commandName'])return;return{'type':'format','content':o(_0x18d102,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x4f7a1d{['afterInit'](){const _0x530d9f=this['editor'];if(!_0x530d9f['plugins']['has']('ImageStyleEditing'))return;const _0x3b9b05=_0x530d9f['plugins']['get']('TrackChangesEditing'),_0x56ce48=_0x530d9f['plugins']['get']('ImageUtils'),_0x4547eb={};_0x3b9b05['enableCommand']('imageStyle',(_0xc6839,_0x5afa20)=>{const _0x37ab2c=_0x530d9f['plugins']['get']('Users')['me'],_0x48cf83=_0x530d9f['commands']['get']('imageStyle');let _0x177ca0=_0x56ce48['getClosestSelectedImageElement'](_0x530d9f['model']['document']['selection']),_0x2a8602=_0x530d9f['model']['createRangeOn'](_0x177ca0),_0x1bf5f8=_0x48cf83['value'];if(_0x1bf5f8==_0x5afa20['value'])return;const _0x5c781f={'commandName':'imageStyle','commandParams':[_0x5afa20],'formatGroupId':_0x48a685()};_0x530d9f['model']['change'](()=>{if(_0x3b9b05['getSuggestions']()['filter'](_0x2505b3=>_0x2505b3['isInContent']&&_0x37ab2c==_0x2505b3['author']&&('formatBlock'==_0x2505b3['type']||'formatInline'==_0x2505b3['type'])&&('imageStylePreApply'==_0x2505b3['subType']||'imageStylePostApply'==_0x2505b3['subType'])&&_0x2505b3['getFirstRange']()['isEqual'](_0x2a8602))['forEach'](_0x2cd629=>_0x3b9b05['discardSuggestion'](_0x2cd629['head'])),_0x177ca0=_0x56ce48['getClosestSelectedImageElement'](_0x530d9f['model']['document']['selection']),_0x2a8602=_0x530d9f['model']['createRangeOn'](_0x177ca0),_0x48cf83['refresh'](),_0x530d9f['commands']['get']('imageTypeInline')['refresh'](),_0x530d9f['commands']['get']('imageTypeBlock')['refresh'](),_0x1bf5f8=_0x48cf83['value'],_0x1bf5f8!=_0x5afa20['value'])return _0x56ce48['isInlineImage'](_0x177ca0)&&_0x48cf83['shouldConvertImageType'](_0x5afa20['value'],_0x177ca0)?(_0xc6839({..._0x5afa20,'setImageSizes':!0x1}),_0x177ca0=_0x56ce48['getClosestSelectedImageElement'](_0x530d9f['model']['document']['selection']),void _0x3b9b05['markBlockFormat'](_0x177ca0,{..._0x5c781f,'commandReversedParams':[{'value':_0x1bf5f8||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x56ce48['isBlockImage'](_0x177ca0)?_0x3b9b05['markBlockFormat'](_0x177ca0,_0x5c781f,[],'imageStylePostApply'):_0x3b9b05['markInlineFormat'](_0x2a8602,_0x5c781f,'imageStylePostApply'));});});for(const _0x113b44 of _0x530d9f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4547eb[_0x113b44['name']]=_0x113b44['title']['toLowerCase']();_0x3b9b05['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3b9b05['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3b9b05['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3b9b05['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2ef58d])=>{_0x56ce48['setImageNaturalSizeAttributes'](_0x2ef58d['getContainedElement']());}),_0x3b9b05['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2362ee,_0x3d542d)=>{_0x3b9b05['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2362ee,{'commandName':_0x3d542d['commandName'],'commandParams':_0x3d542d['commandReversedParams']});}),_0x3b9b05['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x9211be,_0x480f5f){if(_0x18123b(_0x9211be,_0x480f5f))return[_0x9211be,_0x480f5f];if(_0x18123b(_0x480f5f,_0x9211be))return[_0x480f5f,_0x9211be];return null;});const _0x525b88=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x18123b(_0x2c5755,_0xee061c){const _0x818db3=_0x525b88['findIndex'](({type:_0x8c0346,subType:_0x888bb7})=>_0x2c5755['type']==_0x8c0346&&_0x2c5755['subType']==_0x888bb7),_0x2f1e8c=_0x525b88['findIndex'](({type:_0x3229e3,subType:_0x414500})=>_0xee061c['type']==_0x3229e3&&_0xee061c['subType']==_0x414500);if(_0x818db3<0x0||_0x2f1e8c<0x0)return!0x1;const _0x49d6ae=_0x2c5755['getFirstRange'](),_0x3d3a01=_0xee061c['getFirstRange']();if((0x0==_0x818db3||0x1==_0x818db3)&&0x2==_0x2f1e8c&&_0x49d6ae['isIntersecting'](_0x3d3a01))return!0x0;if(0x2==_0x818db3&&0x3==_0x2f1e8c){const _0x4195a2=_0x3b9b05['_findSuggestions'](_0x49d6ae,'insertion')['filter'](({suggestion:_0x20c398,meta:_0x12e29d})=>_0x12e29d['isOwn']&&'convertInlineImageToBlock'==_0x20c398['subType']);if(_0x4195a2['length']>0x1&&_0x3d3a01['end']['isEqual'](_0x49d6ae['start']))return!0x0;if(0x1==_0x4195a2['length']&&(_0x49d6ae['start']['isEqual'](_0x3d3a01['end'])||_0x49d6ae['end']['isEqual'](_0x3d3a01['start'])))return!0x0;}if(0x3==_0x818db3&&0x3==_0x2f1e8c&&_0x49d6ae['start']['isBefore'](_0x3d3a01['start'])){const _0x5f3078=_0x49d6ae['end']['nodeAfter'],_0x54bfce=_0x3d3a01['start']['nodeBefore'];return _0x56ce48['isBlockImage'](_0x5f3078)&&_0x5f3078===_0x54bfce;}return!0x1;}_0x530d9f['model']['document']['registerPostFixer'](()=>{let _0x170933=!0x1;const _0x5e1f2b=Array['from'](_0x530d9f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x334f24,data:_0x3220fa}of _0x5e1f2b){const {group:_0x469d00,type:_0x25c5c7,subType:_0x123a61,id:_0x306673}=_0x3b9b05['_splitMarkerName'](_0x334f24);if('suggestion'==_0x469d00&&_0x3b9b05['hasSuggestion'](_0x306673)){if('formatBlock'==_0x25c5c7&&('imageStylePreApply'==_0x123a61||'imageStylePostApply'==_0x123a61)){const _0xe4b903=_0x3b9b05['getSuggestion'](_0x306673);if(_0x3220fa['newRange']){const _0x3626da=_0xe4b903['getFirstRange']()['getContainedElement']();if(_0x56ce48['isBlockImage'](_0x3626da))continue;_0x3b9b05['discardSuggestion'](_0xe4b903),_0x170933=!0x0;}}if('insertion'==_0x25c5c7&&'imageCaption'==_0x123a61&&!_0x3220fa['newRange']){const _0xd9b2df=_0x3b9b05['getSuggestion'](_0x306673);_0xd9b2df['next']&&_0xd9b2df['next']['isInContent']&&(_0x3b9b05['discardSuggestion'](_0xd9b2df['next']),_0x170933=!0x0);}}}return _0x170933;}),this['_registerLegacyDescription'](_0x4547eb);}['_registerLegacyDescription'](_0x3fbd26){const _0x3531d7=this['editor'],_0x3fb2ce=_0x3531d7['locale'];_0x3531d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37bc29=>{if('formatBlock'!=_0x37bc29['type']&&'formatInline'!=_0x37bc29['type'])return;const {data:_0x21f747}=_0x37bc29;if(!_0x21f747||'imageStyle'!=_0x21f747['commandName'])return;const _0x402f8a=_0x21f747['commandParams'][0x0]['value'];return _0x2a549f('side'===_0x402f8a?o(_0x3fb2ce,'FORMAT_SIDE_IMAGE'):_0x3fbd26[_0x402f8a]||_0x402f8a);function _0x2a549f(_0xdad584){return{'type':'format','content':o(_0x3fb2ce,'*Format:*\x20%0',_0xdad584)};}});}}class at extends _0x4f7a1d{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4ca732){super(_0x4ca732),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x527ffc=this['editor'],_0x24f5e7=_0x527ffc['commands']['get']('importWord'),_0x38c9e8=_0x527ffc['commands']['get']('trackChanges');_0x24f5e7&&(_0x24f5e7['on']('execute',(_0x4578a0,[,_0x2a9516])=>{this['_trackChangesValueDuringImport']=_0x38c9e8['value'],_0x2a9516['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x24f5e7,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x24f5e7,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x38c9e8['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x527ffc['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x82eda5,_0x3f0ff6){const {suggestions:_0x2eef87}=_0x3f0ff6,_0x228f51=this['editor']['commands']['get']('trackChanges'),_0x538704=_0x228f51['value'];this['_trackChangesValueDuringImport']!==_0x538704&&(_0x228f51['execute'](),this['_trackChangesExecuted']=!0x0),_0x2eef87&&_0x2eef87['forEach'](({id:_0x704c69,type:_0x4644db,author:_0x5b1ae5,created_at:_0x1e4695})=>{const _0x40ec6f={'id':_0x704c69,'type':_0x4644db,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5b1ae5,'createdAt':_0x1e4695?new Date(_0x1e4695):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x40ec6f);});}}class ct extends _0x4f7a1d{['afterInit'](){const _0x3c5f69=this['editor'],_0x19bbf2=_0x3c5f69['plugins']['get']('TrackChangesEditing');if(_0x3c5f69['plugins']['has']('IndentEditing')&&(_0x19bbf2['enableCommand']('indent'),_0x19bbf2['enableCommand']('outdent')),_0x3c5f69['plugins']['has']('IndentBlock')){for(const _0x4bcfe4 of['indentBlock','outdentBlock'])_0x19bbf2['enableDefaultAttributesIntegration'](_0x4bcfe4);}const _0x380b65=_0x3c5f69['locale'];_0x19bbf2['registerBlockAttribute']('blockIndent'),_0x19bbf2['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x380b65,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ba761=this['editor'],_0x3f385f=_0x4ba761['locale'],_0x8922ee=_0x4ba761['plugins']['get']('TrackChangesEditing');_0x8922ee['descriptionFactory']['registerDescriptionCallback'](_0x49ca31=>{if('formatBlock'!=_0x49ca31['type'])return;const {data:_0x12c9f5}=_0x49ca31;if(!_0x12c9f5)return;if('indentBlock'!=_0x12c9f5['commandName']&&'outdentBlock'!=_0x12c9f5['commandName'])return;const _0x1d2ef9=_0x49ca31['getItems']()[0x0],_0x9c0629=_0x8922ee['descriptionFactory']['getItemLabel'](_0x1d2ef9);return'indentBlock'==_0x12c9f5['commandName']?{'type':'format','content':o(_0x3f385f,'*Indent:*\x20%0',_0x9c0629)}:'outdentBlock'==_0x12c9f5['commandName']?{'type':'format','content':o(_0x3f385f,'*Outdent:*\x20%0',_0x9c0629)}:void 0x0;});}}class ut extends _0x4f7a1d{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x4f7a1d{['afterInit'](){const _0x108b32=this['editor'];if(!_0x108b32['plugins']['has']('LinkEditing'))return;const _0xd97343=_0x108b32['plugins']['get']('TrackChangesEditing'),_0x22740a=_0x108b32['commands']['get']('link');_0xd97343['enableDefaultAttributesIntegration']('link'),_0xd97343['enableDefaultAttributesIntegration']('unlink'),_0xd97343['registerInlineAttribute']('linkHref');for(const _0x159fc8 of _0x22740a['manualDecorators'])_0xd97343['registerInlineAttribute'](_0x159fc8['id']),_0xd97343['descriptionFactory']['registerAttributeLabel'](_0x159fc8['id'],'link\x20('+_0x159fc8['label']['toLowerCase']()+')');_0xd97343['descriptionFactory']['registerDescriptionCallback'](_0x57613f=>{if('attribute'!=_0x57613f['type'])return;const {data:_0x5d849c}=_0x57613f;if(!_0x5d849c||'linkHref'!=_0x5d849c['key'])return;const _0x567eb5=_0x5d849c['newValue'],_0x302246=_0x108b32['locale'];return{'type':'format','content':null==_0x567eb5?o(_0x302246,'*Remove\x20link*'):o(_0x302246,'*Set\x20link:*\x20%0','\x22'+_0x567eb5+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21754c=this['editor'],_0x3b7274=_0x21754c['locale'];_0x21754c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d6d33=>{if('formatInline'!=_0x2d6d33['type'])return;const {data:_0x5d216c}=_0x2d6d33;if(_0x5d216c){if('link'==_0x5d216c['commandName']){const _0xcdb1e9=_0x5d216c['commandParams'][0x0];return{'type':'format','content':o(_0x3b7274,'*Set\x20link:*\x20%0','\x22'+_0xcdb1e9+'\x22')};}return'unlink'==_0x5d216c['commandName']?{'type':'format','content':o(_0x3b7274,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x4f7a1d{['afterInit'](){const _0x256d52=this['editor'],_0x104ebf=_0x256d52['locale'];if(!_0x256d52['plugins']['has']('LegacyListEditing'))return;const _0x31c53b=_0x256d52['plugins']['get']('TrackChangesEditing'),_0x76b6a2=_0x256d52['plugins']['has']('LegacyTodoListEditing');function _0x5329c4(_0x853dea){return()=>{const _0x466dfc=_0x256d52['model']['document']['selection'],_0x948d03=_0x256d52['commands']['get'](_0x853dea);if(_0x948d03['value'])return void _0x256d52['execute']('paragraph',{});const _0x3dd2ef=_0x853dea['slice'](0x0,-0x4),_0x25f93e=function(_0x31171a,_0xbd855d,_0xb9b0e9){let _0x255019=Array['from'](_0x31171a)['filter'](_0x14d484=>function(_0x28135e,_0x575786){return _0x575786['checkChild'](_0x28135e['parent'],'listItem')&&!_0x575786['isObject'](_0x28135e);}(_0x14d484,_0xb9b0e9));_0x255019=_0x255019['filter'](_0x10f9f2=>!_0x10f9f2['is']('element','listItem')||_0x10f9f2['getAttribute']('listType')!=_0xbd855d);const _0x2d422c=new Set();for(const _0x5a7fa1 of _0x255019)_0x5a7fa1['is']('element','listItem')?_0x2d422c['add'](fe(_0x5a7fa1)):_0x2d422c['add'](_0x5a7fa1);return Array['from'](_0x2d422c);}(_0x466dfc['getSelectedBlocks'](),_0x3dd2ef,_0x256d52['model']['schema']);_0x256d52['model']['change'](()=>{for(const _0x15cb96 of _0x25f93e)_0x31c53b['markBlockFormat'](_0x15cb96,{'commandName':_0x853dea,'commandParams':[{'forceValue':!_0x948d03['value']}],'formatGroupId':'blockName'},ue(_0x15cb96));});};}function _0x409551(_0x18ac5f){return()=>{const _0x53b1fc=function(_0x4d2087){let _0x200419=Array['from'](_0x4d2087);const _0x5d16c2=_0x200419['findIndex'](_0x546ba9=>'listItem'!=_0x546ba9['name']);return _0x5d16c2>-0x1&&(_0x200419=_0x200419['slice'](0x0,_0x5d16c2)),_0x200419;}(_0x256d52['model']['document']['selection']['getSelectedBlocks']()),_0x4728b6=_0x256d52['model']['createRange'](_0x256d52['model']['createPositionAt'](_0x53b1fc[0x0],'before'),_0x256d52['model']['createPositionAt'](_0x53b1fc[_0x53b1fc['length']-0x1],'end'));_0x256d52['model']['change'](()=>{_0x31c53b['markBlockFormat'](_0x4728b6,{'commandName':_0x18ac5f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x28d46d){const _0x4ef20a=new Set();for(const _0x1422ee of _0x28d46d){let _0x3792e9=_0x1422ee['nextSibling'];for(;_0x3792e9&&_0x3792e9['getAttribute']('listIndent')>_0x1422ee['getAttribute']('listIndent');)_0x4ef20a['add'](_0x3792e9),_0x3792e9=_0x3792e9['nextSibling'];}return Array['from'](_0x4ef20a);}(_0x53b1fc));});};}_0x31c53b['enableCommand']('numberedList',_0x5329c4('numberedList')),_0x31c53b['enableCommand']('bulletedList',_0x5329c4('bulletedList')),_0x76b6a2&&_0x31c53b['enableCommand']('todoList',_0x5329c4('todoList')),_0x31c53b['enableCommand']('indentList',_0x409551('indentList')),_0x31c53b['enableCommand']('outdentList',_0x409551('outdentList')),_0x76b6a2&&_0x31c53b['enableCommand']('checkTodoList',()=>{const _0x40b2cc=_0x256d52['commands']['get']('checkTodoList'),_0x5861ec=Array['from'](_0x40b2cc['_selectedElements']);_0x5861ec['filter'](_0x49951f=>_0x49951f['getAttribute']('todoListChecked')!=_0x40b2cc['value']),_0x256d52['model']['change'](()=>{for(const _0x269a9b of _0x5861ec)_0x31c53b['markBlockFormat'](_0x269a9b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x40b2cc['value']}]});});}),_0x31c53b['descriptionFactory']['registerElementLabel']('listItem',_0x5a1dff=>o(_0x104ebf,'ELEMENT_LIST_ITEM',_0x5a1dff)),_0x31c53b['descriptionFactory']['registerDescriptionCallback'](_0xbd53ce=>{if('formatBlock'!=_0xbd53ce['type']&&'formatInline'!=_0xbd53ce['type'])return;const {data:_0x48e95f}=_0xbd53ce;if(_0x48e95f){if('numberedList'==_0x48e95f['commandName']||'bulletedList'==_0x48e95f['commandName']||'todoList'==_0x48e95f['commandName'])switch(_0x48e95f['commandName']['replace']('List','')){case'bulleted':return _0x11bc58(o(_0x104ebf,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x11bc58(o(_0x104ebf,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x11bc58(o(_0x104ebf,'ELEMENT_TODO_LIST'));}if('indentList'==_0x48e95f['commandName'])return{'type':'format','content':o(_0x104ebf,'*Indent:*\x20%0',o(_0x104ebf,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x48e95f['commandName'])return{'type':'format','content':o(_0x104ebf,'*Outdent:*\x20%0',o(_0x104ebf,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x48e95f['commandName'])return _0x48e95f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x104ebf,'*Check\x20item*')}:{'type':'format','content':o(_0x104ebf,'*Uncheck\x20item*')};}function _0x11bc58(_0x3928ec){return{'type':'format','content':o(_0x104ebf,'*Change\x20to:*\x20%0',_0x3928ec)};}});}}function fe(_0x4a26e0){const _0x17cf68=_0x4a26e0['getAttribute']('listIndent');if(0x0==_0x17cf68)return _0x4a26e0;let _0x5ca362=_0x4a26e0;for(;_0x4a26e0['previousSibling']&&_0x4a26e0['previousSibling']['is']('element','listItem');){const _0x21a263=_0x4a26e0['previousSibling']['getAttribute']('listIndent');if(_0x21a263==_0x17cf68)_0x5ca362=_0x4a26e0['previousSibling'];else{if(_0x21a263<_0x17cf68)break;}_0x4a26e0=_0x4a26e0['previousSibling'];}return _0x5ca362;}function ue(_0x25488b){const _0x1117d1=[];if(_0x25488b['is']('element','listItem')&&_0x25488b['getAttribute']('listIndent')>0x0){let _0x28f6ae=_0x25488b['nextSibling'];for(;_0x28f6ae&&'listItem'==_0x28f6ae['name']&&_0x28f6ae['getAttribute']('listIndent')==_0x25488b['getAttribute']('listIndent');)_0x1117d1['push'](_0x28f6ae),_0x28f6ae=_0x28f6ae['nextSibling'];}return _0x1117d1;}class W extends _0x4f7a1d{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x14fbcb=this['editor']['config']['get']('list.properties'),_0x56ebc8=this['editor']['plugins']['get']('TrackChangesEditing');_0x14fbcb['styles']&&_0x56ebc8['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x14fbcb['reversed']&&_0x56ebc8['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x14fbcb['startIndex']&&_0x56ebc8['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x56ebc8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1aa90b,_0xfc9189={}){const _0x3148a7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c9e05=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3148a7['markMultiRangeBlockFormat'](_0x3c9e05,{'commandName':'listStyle','commandParams':[{'type':_0xfc9189['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x53edd2,_0x2d89f2={}){const _0x4fd5e9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21f4b5=this['_getSuggestionBlocks'](_0x10fde1=>_0x10fde1['is']('element','listItem')&&'numbered'===_0x10fde1['getAttribute']('listType'));if(_0x21f4b5['length']<0x1)return;const _0x5ef648=_0x21f4b5['map'](_0x25a873=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x25a873,'before'),this['editor']['model']['createPositionAt'](_0x25a873,0x0)));this['editor']['model']['change'](()=>{_0x4fd5e9['markMultiRangeBlockFormat'](_0x5ef648,{'commandName':'listReversed','commandParams':[{'reversed':_0x2d89f2['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1515c4,_0x124d62={}){const _0x4f0c41=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c396f=this['_getSuggestionBlocks'](_0xd468a9=>_0xd468a9['is']('element','listItem')&&'numbered'===_0xd468a9['getAttribute']('listType'));if(_0x2c396f['length']<0x1)return;const _0xb8655=_0x2c396f['map'](_0x3c44ea=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3c44ea,'before'),this['editor']['model']['createPositionAt'](_0x3c44ea,0x0)));this['editor']['model']['change'](()=>{_0x4f0c41['markMultiRangeBlockFormat'](_0xb8655,{'commandName':'listStart','commandParams':[{'startIndex':_0x124d62['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3f2ea7){if('formatBlock'!=_0x3f2ea7['type']&&'formatInline'!=_0x3f2ea7['type'])return;const _0x34bf35=this['editor']['locale'],{data:_0xfb3383}=_0x3f2ea7;if(!_0xfb3383)return;let _0x2da308,_0x26df42;switch(_0xfb3383['commandName']){case'listStyle':_0x2da308='*Change\x20to:*\x20%0',_0x26df42={'type':'format','content':o(_0x34bf35,_0x2da308,o(_0x34bf35,this['_getTranslationKeyForListStyle'](_0xfb3383['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2da308=_0xfb3383['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x26df42={'type':'format','content':o(_0x34bf35,_0x2da308)};break;case'listStart':_0x2da308='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x26df42={'type':'format','content':o(_0x34bf35,_0x2da308,_0xfb3383['commandParams'][0x0]['startIndex'])};}return _0x26df42;}['_getSuggestionBlocksForListStyle'](){const _0x2d6a22=this['editor']['plugins']['get']('LegacyListUtils');let _0xac166b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xac166b[0x0]?.['is']('element','listItem')&&_0xac166b['unshift'](..._0x2d6a22['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xac166b[_0xac166b['length']-0x1]?.['is']('element','listItem')&&_0xac166b['push'](..._0x2d6a22['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xac166b=[...new Set(_0xac166b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xac166b=_0xac166b['filter'](_0x58a8c0=>_0x58a8c0['is']('element','listItem'))),_0xac166b;}['_getSuggestionBlocks'](_0x55c838){const _0x4e7935=this['editor']['plugins']['get']('LegacyListUtils');let _0x5a72d4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x55c838)['map'](_0x5f5471=>{const _0xfd1f11=this['editor']['model']['createPositionAt'](_0x5f5471,0x0);return[..._0x4e7935['getSiblingNodes'](_0xfd1f11,'backward'),..._0x4e7935['getSiblingNodes'](_0xfd1f11,'forward')];})['flat']();return _0x5a72d4=[...new Set(_0x5a72d4)],_0x5a72d4;}['_getTranslationKeyForListStyle'](_0x198bc0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x198bc0)||'default')['toUpperCase']()+'_LIST_'+_0x198bc0['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x4f7a1d{['afterInit'](){const _0x52b96e=this['editor'];if(!_0x52b96e['plugins']['has']('MediaEmbedEditing'))return;const _0x274553=_0x52b96e['plugins']['get']('TrackChangesEditing'),_0x4985fa=_0x52b96e['locale'];_0x274553['enableCommand']('mediaEmbed'),_0x274553['descriptionFactory']['registerElementLabel']('media',_0x134bdb=>o(_0x4985fa,'ELEMENT_MEDIA',_0x134bdb)),_0x52b96e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5d25eb,{writer:_0x25f73e,options:_0x27cda6})=>{if(_0x27cda6['showSuggestionHighlights'])return _0x25f73e['createEmptyElement']('div');},'converterPriority':'high'}),_0x52b96e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x64b43d,_0x54da03,_0x23580d)=>{_0x23580d['options']['showSuggestionHighlights']&&_0x64b43d['stop']();},{'priority':'high'});}}class mt extends _0x4f7a1d{['afterInit'](){const _0x400234=this['editor'];_0x400234['plugins']['has']('MentionEditing')&&_0x400234['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x4f7a1d{['afterInit'](){const _0x4aac36=this['editor'];if(!_0x4aac36['commands']['get']('insertMergeField'))return;_0x4aac36['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x733a3d=_0x4aac36['plugins']['get']('TrackChangesEditing'),_0xda0cef=_0x4aac36['locale'];_0x733a3d['descriptionFactory']['registerElementLabel']('mergeField',_0x2de76d=>o(_0xda0cef,'ELEMENT_MERGE_FIELD',_0x2de76d)),_0x733a3d['descriptionFactory']['registerDescriptionCallback'](_0x3b488b=>{if('insertion'!=_0x3b488b['type']&&'deletion'!=_0x3b488b['type'])return;const _0x15914c=_0x3b488b['getContainedElement']();if(null==_0x15914c)return;if(!_0x15914c['is']('element','mergeField'))return;const _0xf575ae=_0x4aac36['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x15914c['getAttribute']('id'));return'insertion'==_0x3b488b['type']?{'type':'insertion','content':o(_0xda0cef,'*Insert:*\x20%0','\x22'+_0xf575ae+'\x22\x20'+o(_0xda0cef,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0xda0cef,'*Remove:*\x20%0','\x22'+_0xf575ae+'\x22\x20'+o(_0xda0cef,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x4f7a1d{['afterInit'](){const _0x25576a=this['editor'],_0x33c412=_0x25576a['plugins']['get']('TrackChangesEditing');_0x25576a['plugins']['has']('MultiLevelList')&&(_0x33c412['enableDefaultAttributesIntegration']('multiLevelList'),_0x33c412['registerBlockAttribute']('listMarkerStyle'),_0x33c412['descriptionFactory']['registerDescriptionCallback'](_0x1ac964=>this['handleDescriptions'](_0x1ac964)));}['handleDescriptions'](_0x54fd2e){const _0x1f6f4d=this['editor']['locale'],{data:_0x59f165}=_0x54fd2e,_0x36df57={'type':'format','content':''};if(_0x59f165&&'listMarkerStyle'==_0x59f165['key']){if(!_0x59f165['oldValue'])return{'type':'format','content':o(_0x1f6f4d,'*Set\x20format:*\x20%0',o(_0x1f6f4d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x59f165['newValue']+')'};if(!_0x59f165['newValue']){let _0x61bdea=_0x54fd2e['head'];for(;_0x61bdea;){if(_0x61bdea['data']&&'listType'==_0x61bdea['data']['key']&&_0x61bdea['data']['newValue'])return _0x36df57;_0x61bdea=_0x61bdea['next'];}return{'type':'format','content':o(_0x1f6f4d,'*Remove\x20format:*\x20%0',o(_0x1f6f4d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x59f165['oldValue']+')'};}}}}class kt extends _0x4f7a1d{['afterInit'](){const _0x4b4052=this['editor'];if(!_0x4b4052['plugins']['has']('PageBreakEditing'))return;_0x4b4052['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x550476=_0x4b4052['plugins']['get']('TrackChangesEditing'),_0x391c53=_0x4b4052['locale'];_0x550476['descriptionFactory']['registerElementLabel']('pageBreak',_0x434de9=>o(_0x391c53,'ELEMENT_PAGE_BREAK',_0x434de9));}}class bt extends _0x4f7a1d{['afterInit'](){const _0x44cc04=this['editor'];if(!_0x44cc04['plugins']['has']('Paragraph'))return;const _0x28e04e=_0x44cc04['locale'],_0x27beb4=_0x44cc04['plugins']['get']('TrackChangesEditing');_0x27beb4['descriptionFactory']['registerElementLabel']('paragraph',_0x3440e2=>o(_0x28e04e,'ELEMENT_PARAGRAPH',_0x3440e2)),_0x27beb4['enableDefaultAttributesIntegration']('paragraph'),_0x27beb4['enableCommand']('insertParagraph'),_0x44cc04['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x44cc04),{'priority':'highest'}),_0x44cc04['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1b7880,_0x5625e2,_0x596c9f)=>{_0x596c9f['options']['showSuggestionHighlights']&&nr(_0x44cc04,{'showActiveMarker':!0x1})(_0x1b7880,_0x5625e2,_0x596c9f);},{'priority':'highest'});const _0x241f44=_0x27beb4['descriptionFactory'];_0x241f44['registerDescriptionCallback'](_0xdb37c9=>{if('insertion'!==_0xdb37c9['type'])return;const {start:_0x5df94b,end:_0x3a110a}=_0xdb37c9['getFirstRange']();if(!_0x5df94b['isTouching'](_0x3a110a)||!_0x5df94b['nodeAfter'])return;const _0x331e1a=_0x44cc04['model']['schema'],_0x5ae68e=_0x5df94b['nodeAfter'];return _0x331e1a['isBlock'](_0x5ae68e)&&!_0x331e1a['isLimit'](_0x5ae68e)&&_0x331e1a['checkChild'](_0x5ae68e,'$text')?{'type':'insertion','content':o(_0x28e04e,'*Insert:*\x20%0',_0x241f44['getItemLabel'](_0x5ae68e,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5532f6=this['editor'],_0x493388=_0x5532f6['locale'];_0x5532f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47b8eb=>{if('formatBlock'!=_0x47b8eb['type'])return;const {data:_0x202392}=_0x47b8eb;return _0x202392&&'paragraph'==_0x202392['commandName']?{'type':'format','content':o(_0x493388,'*Change\x20to:*\x20%0',o(_0x493388,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x45da49,{showActiveMarker:_0x42251b=!0x0}={}){return(_0x475b60,_0x28ae56,_0x5da550)=>{const _0x2fce91=_0x45da49['plugins']['get']('TrackChangesEditing'),_0x4523e5=_0x28ae56['markerRange']['start'],_0x3bcf8c=_0x28ae56['markerRange']['end'],_0x5ef776=_0x45da49['model']['schema'];if(!_0x4523e5['isTouching'](_0x3bcf8c)||!_0x4523e5['nodeAfter'])return;const _0x400921=_0x4523e5['nodeAfter'];if(_0x5ef776['isBlock'](_0x400921)&&!_0x5ef776['isLimit'](_0x400921)&&_0x5ef776['checkChild'](_0x400921,'$text')){if(!_0x5da550['consumable']['consume'](_0x28ae56['markerRange'],_0x475b60['name']))return;const _0x3a6405=_0x5da550['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x5074a4=_0x5da550['mapper']['toViewPosition'](_0x3bcf8c);_0x42251b&&_0x2fce91['activeMarkers']['includes'](_0x28ae56['markerName'])&&_0x5da550['writer']['addClass']('ck-suggestion-marker--active',_0x3a6405),_0x5da550['writer']['insert'](_0x5074a4,_0x3a6405),_0x5da550['mapper']['bindElementToMarker'](_0x3a6405,_0x28ae56['markerName']);}};}class wt extends _0x4f7a1d{['afterInit'](){const _0x5d198d=this['editor'];if(!_0x5d198d['plugins']['has']('RemoveFormatEditing'))return;_0x5d198d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e331e=this['editor'];_0x3e331e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x977149=>{if('formatBlock'!=_0x977149['type']&&'formatInline'!=_0x977149['type'])return;const {data:_0x2d148c}=_0x977149;return _0x2d148c&&'removeFormat'==_0x2d148c['commandName']?{'type':'format','content':o(_0x3e331e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x4f7a1d{['afterInit'](){const _0x2aaeff=this['editor'];if(!_0x2aaeff['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x49b9f5=_0x2aaeff['plugins']['get']('TrackChangesEditing');_0x49b9f5['enableCommand']('goToPreviousRestrictedEditingException'),_0x49b9f5['enableCommand']('goToNextRestrictedEditingException');const _0x21db0a=_0x2aaeff['plugins']['get']('RestrictedEditingModeEditing');_0x21db0a['enableCommand']('trackChanges'),_0x21db0a['enableCommand']('acceptSuggestion'),_0x21db0a['enableCommand']('discardSuggestion'),_0x21db0a['enableCommand']('acceptAllSuggestions'),_0x21db0a['enableCommand']('discardAllSuggestions'),_0x21db0a['enableCommand']('acceptSelectedSuggestions'),_0x21db0a['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x4f7a1d{static get['requires'](){return[_0x2d1f94];}['init'](){const _0x27e19d=this['editor'],_0x272185=_0x27e19d['plugins']['get']('TrackChangesEditing');_0x272185['enableCommand']('shiftEnter'),_0x27e19d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x27e19d),{'priority':'high'}),_0x27e19d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x27e19d),{'priority':'high'}),_0x27e19d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x206478,_0x473ba0,_0x530d36)=>{_0x530d36['options']['showSuggestionHighlights']&&ge(_0x27e19d,{'showActiveMarker':!0x1})(_0x206478,_0x473ba0,_0x530d36);}),_0x272185['descriptionFactory']['registerElementLabel']('softBreak',_0x502d68=>o(_0x27e19d['locale'],'ELEMENT_LINE_BREAK',_0x502d68));}}function ge(_0x56d92a,{showActiveMarker:_0x24da97=!0x0}={}){return(_0x1dff4c,_0x3072e8,_0x5cd76c)=>{const _0x246c49=_0x56d92a['plugins']['get']('TrackChangesEditing');if(!_0x5cd76c['consumable']['test'](_0x3072e8['markerRange'],_0x1dff4c['name']))return;const _0x3865a4=_0x56d92a['model'];for(const _0x149bf5 of _0x3072e8['markerRange']['getItems']()){if(!_0x149bf5['is']('element','softBreak'))continue;const _0x3aa266='deletion'==_0x3072e8['markerName']['split'](':')[0x1]?'merge':'split',_0xf8648=_0x5cd76c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3aa266}),_0x1b7edd=_0x5cd76c['mapper']['toViewPosition'](_0x3865a4['createPositionBefore'](_0x149bf5));_0x24da97&&_0x246c49['activeMarkers']['includes'](_0x3072e8['markerName'])&&_0x5cd76c['writer']['addClass']('ck-suggestion-marker--active',_0xf8648),_0x5cd76c['writer']['insert'](_0x1b7edd,_0xf8648),_0x5cd76c['mapper']['bindElementToMarker'](_0xf8648,_0x3072e8['markerName']);}};}class St extends _0x4f7a1d{['afterInit'](){const _0x43aaa6=this['editor'],_0x413f03=_0x43aaa6['model'],_0x4b978a=_0x43aaa6['locale'];if(!_0x43aaa6['plugins']['has']('StandardEditingModeEditing'))return;const _0x3dbb5e=_0x43aaa6['plugins']['get']('TrackChangesEditing'),_0x39c0c9='restrictedEditingException',_0x1f962d=_0x43aaa6['commands']['get'](_0x39c0c9);_0x3dbb5e['enableCommand'](_0x39c0c9,(_0x5f5004,_0x5d09fc={})=>{const _0x5ee6e5=_0x413f03['document']['selection'];if(_0x5ee6e5['isCollapsed'])return void _0x5f5004(_0x5d09fc);const _0x5598ac=void 0x0!==_0x5d09fc['forceValue']?_0x5d09fc['forceValue']:!_0x1f962d['value'];_0x413f03['change'](()=>{const _0x2aea4a=Array['from'](_0x5ee6e5['getRanges']());for(const _0xb0e382 of _0x2aea4a){const _0x41b9c8=_0x5598ac?[_0xb0e382]:io(_0x39c0c9,_0xb0e382,_0x413f03);for(const _0x2b398a of _0x41b9c8)_0x3dbb5e['markInlineFormat'](_0x2b398a,{'commandName':_0x39c0c9,'commandParams':[{'forceValue':_0x5598ac}]});}});}),_0x3dbb5e['descriptionFactory']['registerDescriptionCallback'](_0x4f9622=>{if('formatBlock'!=_0x4f9622['type']&&'formatInline'!=_0x4f9622['type'])return;const {data:_0x3dca61}=_0x4f9622;return _0x3dca61&&_0x3dca61['commandName']==_0x39c0c9?_0x3dca61['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b978a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4b978a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x4f7a1d{['afterInit'](){const _0x309cfa=this['editor'];if(!_0x309cfa['plugins']['has']('Style')||!_0x309cfa['plugins']['has']('DataSchema'))return;const _0x2e9755=_0x309cfa['plugins']['get']('TrackChangesEditing'),_0x2189ab=_0x309cfa['locale'],_0x454f8f=_0x309cfa['config']['get']('style')||{},_0x51a745=_0x309cfa['plugins']['get']('GeneralHtmlSupport'),_0x281cff=_0x309cfa['plugins']['get']('StyleUtils')['normalizeConfig'](_0x309cfa['plugins']['get']('DataSchema'),_0x454f8f['definitions']);_0x2e9755['enableDefaultAttributesIntegration']('style');const _0x452930=new Set();for(const _0x13acfe of _0x281cff['block']){const _0x263dc8=_0x51a745['getGhsAttributeNameForElement'](_0x13acfe['element']);_0x452930['add'](_0x263dc8);}const _0x24ba63=new Set();for(const _0x2e4809 of _0x281cff['inline']){const _0x3ebca3=_0x51a745['getGhsAttributeNameForElement'](_0x2e4809['element']);_0x24ba63['add'](_0x3ebca3);for(const _0x27d7ff of _0x2e4809['ghsAttributes'])_0x24ba63['add'](_0x27d7ff);}for(const _0x2c50f1 of _0x452930)_0x2e9755['registerBlockAttribute'](_0x2c50f1),_0x2e9755['descriptionFactory']['registerAttributeLabel'](_0x2c50f1,o(_0x2189ab,'FORMAT_STYLE'));for(const _0x42e0be of _0x24ba63)_0x2e9755['registerInlineAttribute'](_0x42e0be),_0x2e9755['descriptionFactory']['registerAttributeLabel'](_0x42e0be,o(_0x2189ab,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d2aa9=this['editor'],_0x346646=_0x5d2aa9['locale'];_0x5d2aa9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59dfd1=>{if('formatBlock'!=_0x59dfd1['type']&&'formatInline'!=_0x59dfd1['type'])return;const {data:_0x3e28ad}=_0x59dfd1;return _0x3e28ad&&'style'===_0x3e28ad['commandName']?_0x3e28ad['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x346646,'*Set\x20format:*\x20%0',_0x3e28ad['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x346646,'*Remove\x20format:*\x20%0',_0x3e28ad['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x4f7a1d{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x442b05){super(_0x442b05),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x59b765=this['editor'],_0x1660e8=_0x59b765['model']['document']['selection'];if(!_0x59b765['plugins']['has']('TableEditing'))return;const _0x18c75c=_0x59b765['locale'],_0x1f2339=_0x59b765['plugins']['get']('TrackChangesEditing'),_0x508160=_0x59b765['plugins']['get']('TableUtils');_0x1f2339['descriptionFactory']['registerElementLabel']('table',_0x1c3007=>o(_0x18c75c,'ELEMENT_TABLE',_0x1c3007)),this['_setupColumnsRowsFixing'](),_0x1f2339['enableCommand']('insertTable'),_0x1f2339['enableCommand']('selectTableRow'),_0x1f2339['enableCommand']('selectTableColumn');for(const _0x4d51ee of['insertTableRowAbove','insertTableRowBelow']){const _0x4635f5=_0x59b765['commands']['get'](_0x4d51ee);_0x1f2339['enableCommand'](_0x4d51ee,_0x167ee5=>{_0x59b765['model']['change'](_0x2c021f=>{_0x167ee5();const _0x5d30ca='above'===_0x4635f5['order'],_0xdb6a9=_0x508160['getSelectionAffectedTableCells'](_0x1660e8),_0x55e646=_0x508160['getRowIndexes'](_0xdb6a9),_0x15d963=_0x5d30ca?_0x55e646['first']-0x1:_0x55e646['last']+0x1,_0x395b08=_0xdb6a9[0x0]['findAncestor']('table'),_0x26b5fe=_0x508160['createTableWalker'](_0x395b08,{'startRow':_0x15d963,'endRow':_0x15d963}),_0x2a3363=Array['from'](_0x26b5fe)['map'](_0x370d67=>_0x2c021f['createRangeOn'](_0x370d67['cell']));_0x1f2339['markMultiRangeInsertion'](_0x2a3363,'tableRow');});});}for(const _0x4ffe28 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1e256d=_0x59b765['commands']['get'](_0x4ffe28);_0x1f2339['enableCommand'](_0x4ffe28,_0x6193aa=>{_0x59b765['model']['change'](_0x43b93e=>{_0x6193aa();const _0xdd5d5b='left'===_0x1e256d['order'],_0x53e3f1=_0x508160['getSelectionAffectedTableCells'](_0x1660e8),_0x131189=_0x508160['getColumnIndexes'](_0x53e3f1),_0x83d90c=_0xdd5d5b?_0x131189['first']-0x1:_0x131189['last']+0x1,_0x1022ee=_0x53e3f1[0x0]['findAncestor']('table'),_0x59614c=_0x508160['createTableWalker'](_0x1022ee,{'startRow':0x0,'column':_0x83d90c,'includeAllSlots':!0x1}),_0x2e1f41=Array['from'](_0x59614c)['map'](_0x529b83=>_0x43b93e['createRangeOn'](_0x529b83['cell']));_0x1f2339['markMultiRangeInsertion'](_0x2e1f41,'tableColumn');});});}for(const _0x1ad0be of['removeTableRow','removeTableColumn']){const _0x3d23b2=_0x1ad0be['substr'](0xb),_0x36fa46=_0x3d23b2['toLowerCase'](),_0x552564=_0x36fa46['substr'](0x0,0x3)+'span',_0x5178db='table'+_0x3d23b2,_0x2e6f3a='min'+_0x3d23b2,_0x1b02cd='max'+_0x3d23b2;_0x1f2339['enableCommand'](_0x1ad0be,()=>{_0x59b765['model']['change'](_0x377820=>{const _0x276f5e=_0x508160['getSelectionAffectedTableCells'](_0x1660e8),_0x5b43a1=_0x276f5e[0x0]['findAncestor']('table');let _0x48cec1;if('removeTableRow'==_0x1ad0be){const _0x1d0963=_0x508160['getRowIndexes'](_0x276f5e);_0x48cec1={'startRow':_0x1d0963['first'],'endRow':_0x1d0963['last'],'includeAllSlots':!0x0};}else{const _0x18ba68=_0x508160['getColumnIndexes'](_0x276f5e);_0x48cec1={'startColumn':_0x18ba68['first'],'endColumn':_0x18ba68['last'],'includeAllSlots':!0x0};}const _0x100aa4=_0x508160['createTableWalker'](_0x5b43a1,_0x48cec1),_0x28da95=Array['from'](_0x100aa4)['map'](({cell:_0xf97643})=>_0xf97643),_0x536f79=Ee(_0x28da95['filter'](_0x3e6ec9=>_0x3e6ec9['hasAttribute'](_0x552564))),_0x3c95a1=Ee(_0x28da95['filter'](_0x8d6ac6=>!_0x8d6ac6['hasAttribute'](_0x552564)))['map'](_0x42f9c6=>_0x377820['createRangeOn'](_0x42f9c6)),_0x326451=_0x1f2339['markMultiRangeDeletion'](_0x3c95a1,_0x5178db);if(_0x326451&&('tableRow'==_0x326451['subType']||'tableColumn'==_0x326451['subType'])){const _0x15fa82=this['_getSuggestionCoords'](_0x326451);for(const _0x162a33 of _0x536f79){const _0x5bd863=_0x377820['createRangeOn'](_0x162a33),_0x21c4a9=_0x508160['getCellLocation'](_0x162a33),_0x348523=_0x162a33['getAttribute'](_0x552564)-0x1,_0x147dd0=_0x15fa82[_0x2e6f3a],_0x2368bc=_0x15fa82[_0x1b02cd];_0x147dd0<=_0x21c4a9[_0x36fa46]&&_0x21c4a9[_0x36fa46]+_0x348523<=_0x2368bc&&_0x326451['addRange'](_0x5bd863);}}});});}function _0x3e3980(_0x65f60){const _0x5748f8=Array['from'](_0x1660e8['getRanges']())['map'](_0x2ffffc=>_0x5978fe['fromRange'](_0x2ffffc));_0x59b765['model']['change'](_0x41124f=>{const _0xcad6cc=_0x41124f['batch'];_0x65f60=_0x65f60['filter'](_0x662101=>'$graveyard'!=_0x662101['root']['rootName']),_0x41124f['setSelection'](_0x65f60),_0x59b765['commands']['get']('removeTableRow')['refresh'](),_0x59b765['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x59b765['model']['enqueueChange'](()=>{_0x59b765['model']['enqueueChange'](_0xcad6cc,_0x42bc11=>{const _0x565854=_0x5748f8['filter'](_0x1a2aac=>'$graveyard'!=_0x1a2aac['root']['rootName']);_0x565854['length']>0x0&&_0x42bc11['setSelection'](_0x565854);for(const _0x219b7c of _0x5748f8)_0x219b7c['detach']();});});});}function _0x364100(_0x5a14fe){_0x59b765['model']['change'](_0x209c68=>{const _0x4c444f=Array['from'](_0x1660e8['getRanges']())['map'](_0x311d33=>_0x5978fe['fromRange'](_0x311d33)),_0x20b271=[];for(const _0x4696be of _0x5a14fe)for(const _0xc5c7e2 of _0x4696be['getItems']({'shallow':!0x0}))_0x20b271['push'](_0xc5c7e2);for(const _0x2f7627 of _0x20b271)'$graveyard'!=_0x2f7627['root']['rootName']&&(_0x209c68['setSelection'](_0x209c68['createPositionAt'](_0x2f7627,0x0)),_0x59b765['commands']['get']('removeTableColumn')['refresh'](),_0x59b765['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x20b889=_0x4c444f['filter'](_0x10f0a1=>'$graveyard'!=_0x10f0a1['root']['rootName']);_0x20b889['length']>0x0&&_0x209c68['setSelection'](_0x20b889);for(const _0x2646d8 of _0x4c444f)_0x2646d8['detach']();});}function _0x5e4714(_0x496ae6,_0x2a5b6e){return _0x2a5b6e['every'](_0x5c71ab=>_0x496ae6['some'](_0x2e130b=>_0x2e130b['end']['isEqual'](_0x5c71ab['start'])||_0x5c71ab['end']['isEqual'](_0x2e130b['start'])));}function _0x2da209(_0x455528,_0x58872d){return!_0x455528['some'](_0x266181=>_0x58872d['some'](_0x22f97a=>_0x266181['isIntersecting'](_0x22f97a)))&&_0x455528['some'](_0x1cc1be=>_0x58872d['some'](_0x4410d9=>_0x1cc1be['end']['isTouching'](_0x4410d9['start'])));}_0x59b765['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x77942b,_0x3e1eb1,_0x1a2322)=>{if(!_0x1a2322['options']['showSuggestionHighlights'])return;const _0x11df7f=_0x3e1eb1['item'];if(!_0x11df7f)return;const _0x3562ed=_0x1a2322['mapper']['toViewElement'](_0x11df7f);function _0x3eb80b(_0xfa0405){return Array['isArray'](_0xfa0405)?_0xfa0405:[_0xfa0405];}_0x3562ed&&'tableCell'===_0x11df7f['name']&&_0x143273(_0x3562ed,_0x1a2322['writer'],(_0x32042e,_0x29becc,_0x21868b)=>_0x21868b['addClass'](_0x3eb80b(_0x29becc['classes']),_0x32042e),(_0x8e27b,_0x326244,_0x125d7b)=>_0x125d7b['removeClass'](_0x3eb80b(_0x326244['classes']),_0x8e27b));},{'priority':'highest'}),_0x1f2339['descriptionFactory']['registerDescriptionCallback'](_0x5433c7=>{if('insertion'!=_0x5433c7['type']&&'deletion'!=_0x5433c7['type'])return;const _0x1a2600=_0x5433c7['getContainedElement']();if(null!=_0x1a2600&&_0x1a2600['is']('element','table')){if('insertion'==_0x5433c7['type']){const _0x288bb8=_0x5433c7['getItems']()['filter'](_0x5b04f9=>_0x5b04f9['is']('$textProxy'))['map'](_0xe67f10=>_0xe67f10['data']);if(_0x288bb8['length'])return{'type':'insertion','content':o(_0x18c75c,'*Insert:*\x20%0',o(_0x18c75c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x288bb8['join']('\x20')+'\x22'))};}if('deletion'==_0x5433c7['type']){const _0x6c25b=_0x5433c7['getItems']()['filter'](_0x24d0f7=>_0x24d0f7['is']('$textProxy'))['map'](_0x46b3d2=>_0x46b3d2['data']);if(_0x6c25b['length'])return{'type':'deletion','content':o(_0x18c75c,'*Remove:*\x20%0',o(_0x18c75c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x6c25b['join']('\x20')+'\x22'))};}}}),_0x1f2339['descriptionFactory']['registerDescriptionCallback'](_0x37ff81=>{if('tableRow'==_0x37ff81['subType']){const _0x46a1f9=_0x37ff81['getItems']()['filter'](_0x16fd8f=>_0x16fd8f['is']('$textProxy'))['map'](_0xb9c031=>_0xb9c031['data']),_0x277ea7=this['_getSuggestionCoords'](_0x37ff81),_0x134f8f=_0x277ea7['maxRow']-_0x277ea7['minRow']+0x1;if('insertion'==_0x37ff81['type'])return _0x46a1f9['length']?{'type':'insertion','content':o(_0x18c75c,'*Insert:*\x20%0',o(_0x18c75c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x134f8f,'\x22'+_0x46a1f9['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x18c75c,'*Insert:*\x20%0',o(_0x18c75c,'ELEMENT_TABLE_ROW',_0x134f8f))};if('deletion'==_0x37ff81['type'])return _0x46a1f9['length']?{'type':'deletion','content':o(_0x18c75c,'*Remove:*\x20%0',o(_0x18c75c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x134f8f,'\x22'+_0x46a1f9['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x18c75c,'*Remove:*\x20%0',o(_0x18c75c,'ELEMENT_TABLE_ROW',_0x134f8f))};}if('tableColumn'==_0x37ff81['subType']){const _0x897b88=_0x37ff81['getItems']()['filter'](_0x53403b=>_0x53403b['is']('$textProxy'))['map'](_0x46c74f=>_0x46c74f['data']),_0x4fa5f5=this['_getSuggestionCoords'](_0x37ff81),_0x540fb2=_0x4fa5f5['maxColumn']-_0x4fa5f5['minColumn']+0x1;if('insertion'==_0x37ff81['type'])return _0x897b88['length']?{'type':'insertion','content':o(_0x18c75c,'*Insert:*\x20%0',o(_0x18c75c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x540fb2,'\x22'+_0x897b88['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x18c75c,'*Insert:*\x20%0',o(_0x18c75c,'ELEMENT_TABLE_COLUMN',_0x540fb2))};if('deletion'==_0x37ff81['type'])return _0x897b88['length']?{'type':'deletion','content':o(_0x18c75c,'*Remove:*\x20%0',o(_0x18c75c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x540fb2,'\x22'+_0x897b88['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x18c75c,'*Remove:*\x20%0',o(_0x18c75c,'ELEMENT_TABLE_COLUMN',_0x540fb2))};}}),_0x1f2339['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3e3980),_0x1f2339['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3e3980),_0x1f2339['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x364100),_0x1f2339['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x364100),_0x1f2339['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5e4714),_0x1f2339['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5e4714),_0x1f2339['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2da209),_0x1f2339['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2da209);}['_acceptFormatSuggestionCallbackFactory'](){const _0x29af96=this['editor'],_0x56480a=_0x29af96['model']['document']['selection'];return(_0x35bf24,_0x47ae50)=>{_0x29af96['model']['change'](_0x8e4c95=>{const {commandName:_0x268695,commandParams:_0x4e6e5e}=_0x47ae50;let _0x4afab5=_0x35bf24[0x0]['end']['nodeBefore'];_0x4e6e5e&&_0x4e6e5e[0x0]&&!0x1===_0x4e6e5e[0x0]['forceValue']&&(_0x4afab5=_0x35bf24[0x0]['start']['nodeAfter']);const _0x3258f2=_0x8e4c95['createRangeIn'](_0x4afab5);if('$graveyard'==_0x3258f2['root']['rootName'])return;const _0x603b3=Array['from'](_0x56480a['getRanges']())['map'](_0x6c91c5=>_0x5978fe['fromRange'](_0x6c91c5));_0x8e4c95['setSelection'](_0x3258f2),_0x29af96['commands']['get'](_0x268695)['refresh'](),_0x4e6e5e['push']({'forceDefaultExecution':!0x0}),_0x29af96['execute'](_0x268695,..._0x4e6e5e);const _0xd925fc=_0x603b3['filter'](_0x5cce2c=>'$graveyard'!=_0x5cce2c['root']['rootName']);_0xd925fc['length']>0x0&&_0x8e4c95['setSelection'](_0xd925fc);for(const _0x28c801 of _0x603b3)_0x28c801['detach']();});};}['_getCoordsForCells'](_0x40f709){const _0x5602dd=this['editor']['plugins']['get']('TableUtils');let _0x144771=Number['MAX_SAFE_INTEGER'],_0x597c52=Number['MIN_SAFE_INTEGER'],_0x4ea2d1=Number['MAX_SAFE_INTEGER'],_0x580ee6=Number['MIN_SAFE_INTEGER'];for(const _0x2a885c of _0x40f709){if('$graveyard'==_0x2a885c['root']['rootName'])continue;const {row:_0x123afd,column:_0x2a980f}=_0x5602dd['getCellLocation'](_0x2a885c),_0x4168b9=_0x2a885c['hasAttribute']('rowspan')?_0x2a885c['getAttribute']('rowspan')-0x1:0x0,_0x2ee3a4=_0x2a885c['hasAttribute']('colspan')?_0x2a885c['getAttribute']('colspan')-0x1:0x0;_0x144771=_0x123afd<_0x144771?_0x123afd:_0x144771,_0x597c52=_0x123afd+_0x4168b9>_0x597c52?_0x123afd+_0x4168b9:_0x597c52,_0x4ea2d1=_0x2a980f<_0x4ea2d1?_0x2a980f:_0x4ea2d1,_0x580ee6=_0x2a980f+_0x2ee3a4>_0x580ee6?_0x2a980f+_0x2ee3a4:_0x580ee6;}return{'minRow':_0x144771,'maxRow':_0x597c52,'minColumn':_0x4ea2d1,'maxColumn':_0x580ee6};}['_setupColumnsRowsFixing'](){const _0x19ccce=this['editor'],_0x40b07a=_0x19ccce['plugins']['get']('TrackChangesEditing'),_0xd511cc=_0x19ccce['plugins']['get']('TableUtils');_0x19ccce['model']['document']['on']('change:data',()=>{const _0x2b48a0=Array['from'](_0x19ccce['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1053b8,data:_0x4f8917}of _0x2b48a0){const {group:_0x23d4f1,id:_0x3c30e5,subType:_0x1d1567}=_0x40b07a['_splitMarkerName'](_0x1053b8);if('suggestion'!=_0x23d4f1)continue;if(null!=_0x4f8917['oldRange'])continue;const _0x571ed5=_0x40b07a['getSuggestion'](_0x3c30e5);this['_tablePostFixingSubtypes']['includes'](_0x1d1567)&&this['_tableSuggestions']['add'](_0x571ed5);}},{'priority':'low'});const _0x11656a=(_0x421c21,_0x2a8bd0)=>{let _0x198eee=!0x1;const _0x462968=_0x2a8bd0['createRangeOn'](_0x421c21),_0xd8f9a8=_0x421c21['findAncestor']('table'),_0x150ea7=_0xd511cc['getCellLocation'](_0x421c21);for(const _0x1b34a9 of this['_tableSuggestions']){const _0x30f29c=_0x1b34a9['subType'],_0x2ca50f=_0x30f29c['startsWith']('tablePaste'),_0x382546=_0x30f29c['substr'](_0x2ca50f?0xa:0x5),_0x5a06f8=_0x382546['toLowerCase'](),_0x4179cf=_0x5a06f8['substr'](0x0,0x3)+'span',_0x3ec2bc='min'+_0x382546,_0x15ceec='max'+_0x382546;if(!_0x1b34a9['isInContent'])continue;if(_0xd8f9a8!=_0x1b34a9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1b34a9['isIntersectingWithRange'](_0x462968))continue;const _0x30ca7f=_0x421c21['hasAttribute'](_0x4179cf)?_0x421c21['getAttribute'](_0x4179cf)-0x1:0x0,_0x5e4d75=this['_getSuggestionCoords'](_0x1b34a9),_0x1615c1=_0x5e4d75[_0x3ec2bc],_0x55cf1b=_0x5e4d75[_0x15ceec];_0x1615c1<=_0x150ea7[_0x5a06f8]&&_0x150ea7[_0x5a06f8]+_0x30ca7f<=_0x55cf1b&&(_0x1b34a9['addRange'](_0x462968),_0x198eee=!0x0);}return _0x198eee;};_0x19ccce['model']['document']['registerPostFixer'](_0x2c07da=>{let _0x1409d8=!0x1;for(const _0x19dbeb of _0x19ccce['model']['document']['differ']['getChanges']())if('insert'==_0x19dbeb['type']){if('tableRow'==_0x19dbeb['name']){for(const _0xe003b2 of _0x19dbeb['position']['nodeAfter']['getChildren']())_0x1409d8=_0x1409d8||_0x11656a(_0xe003b2,_0x2c07da);}else'tableCell'==_0x19dbeb['name']&&(_0x1409d8=_0x1409d8||_0x11656a(_0x19dbeb['position']['nodeAfter'],_0x2c07da));}return _0x1409d8;});}['_getSuggestionCoords'](_0x35c4c4){return this['_getCoordsForCells'](_0x35c4c4['getRanges']()['map'](_0x3b76fa=>_0x3b76fa['start']['nodeAfter']));}}function Ee(_0x47b271){return Array['from'](new Set(_0x47b271)['values']());}class vt extends _0x4f7a1d{static get['requires'](){return[It];}['afterInit'](){const _0x5c1097=this['editor'],_0xd3e550=_0x5c1097['model']['document']['selection'],_0x22fe53=_0x5c1097['locale'];if(!_0x5c1097['plugins']['has']('TableEditing'))return;const _0x2b811c=_0x5c1097['plugins']['get']('TrackChangesEditing'),_0x4b9016=_0x5c1097['plugins']['get']('TableUtils'),_0x17c0ae=_0x5c1097['plugins']['get'](It);_0x17c0ae['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2b811c['enableCommand']('mergeTableCells',()=>{const _0x588c28=_0x4b9016['getSelectionAffectedTableCells'](_0x5c1097['model']['document']['selection']);_0x5c1097['model']['change'](()=>{_0x2b811c['markMultiRangeBlockFormat'](_0x588c28,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5c1097['commands']['get']('mergeTableCells')['on']('execute',(_0x5a9f21,_0x3a0092)=>{_0x5c1097['commands']['get']('trackChanges')['value']&&(_0x3a0092['length']>0x0&&_0x3a0092[_0x3a0092['length']-0x1]&&_0x3a0092[_0x3a0092['length']-0x1]['forceDefaultExecution']||_0x2b811c['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5a9f21['stop']());},{'priority':'highest'});for(const _0x59cfcb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x321425=_0x5c1097['commands']['get'](_0x59cfcb);_0x2b811c['enableCommand'](_0x59cfcb,()=>{const _0x40a076=_0x5c1097['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x40bc02=>_0x40bc02['is']('element','tableCell')),_0x1b3e14=_0x321425['value'];_0x5c1097['model']['change'](()=>{_0x2b811c['markMultiRangeBlockFormat']([_0x40a076,_0x1b3e14],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x25a22a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x7278ea=_0x5c1097['commands']['get'](_0x25a22a);_0x2b811c['enableCommand'](_0x25a22a,()=>{const _0x3b34a0=_0x4b9016['getSelectionAffectedTableCells'](_0x5c1097['model']['document']['selection'])[0x0],_0x473779=_0x3b34a0['findAncestor']('table'),{column:_0x26ee5c,row:_0x1e833a}=_0x4b9016['getCellLocation'](_0x3b34a0);let _0x5d3d43=[];if('horizontally'==_0x7278ea['direction']){const _0x5a972a=_0x4b9016['createTableWalker'](_0x473779,{'startRow':_0x1e833a,'endRow':_0x1e833a,'includeAllSlots':!0x0});_0x5d3d43=Array['from'](_0x5a972a)['map'](_0x72218f=>_0x72218f['cell']);}else{const _0x548caf=_0x4b9016['createTableWalker'](_0x473779,{'column':_0x26ee5c,'includeAllSlots':!0x0});_0x5d3d43=Array['from'](_0x548caf)['map'](_0x4f55bf=>_0x4f55bf['cell']);}_0x5c1097['model']['change'](_0x54042e=>{_0x2b811c['markBlockFormat'](_0x54042e['createRangeOn'](_0x3b34a0),{'commandName':_0x25a22a,'commandParams':[]},_0x5d3d43,_0x25a22a);});});}_0x2b811c['descriptionFactory']['registerDescriptionCallback'](_0x35cec6=>{if('formatBlock'!=_0x35cec6['type']&&'formatInline'!=_0x35cec6['type'])return;const {data:_0xdb75de}=_0x35cec6;return _0xdb75de&&'mergeTableCells'==_0xdb75de['commandName']?{'type':'format','content':o(_0x22fe53,'*Merge\x20cells*')}:void 0x0;}),_0x2b811c['descriptionFactory']['registerDescriptionCallback'](_0x17b6e2=>{if('formatBlock'!=_0x17b6e2['type']&&'formatInline'!=_0x17b6e2['type'])return;const {data:_0x52f3a1}=_0x17b6e2;return _0x52f3a1?'splitTableCellVertically'==_0x52f3a1['commandName']?{'type':'format','content':o(_0x22fe53,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x52f3a1['commandName']?{'type':'format','content':o(_0x22fe53,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xefa089=_0x17c0ae['_acceptFormatSuggestionCallbackFactory']();for(const _0x18eaae of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2b811c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x18eaae,'accept',_0xefa089);for(const _0x2bc370 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2b811c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2bc370,'accept',_0xefa089);_0x2b811c['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x314b89=>{_0x5c1097['model']['change'](_0x18a290=>{const _0x5cba01=Array['from'](_0xd3e550['getRanges']())['map'](_0x29395d=>_0x5978fe['fromRange'](_0x29395d));_0x18a290['setSelection'](_0x314b89),_0x5c1097['commands']['get']('mergeTableCells')['refresh'](),_0x5c1097['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4d81f5=_0x5cba01['filter'](_0x1ae87a=>'$graveyard'!=_0x1ae87a['root']['rootName']);_0x4d81f5['length']>0x0&&_0x18a290['setSelection'](_0x4d81f5);for(const _0x2a2fa2 of _0x5cba01)_0x2a2fa2['detach']();});});for(const _0x2d7201 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x44d572=_0x5c1097['commands']['get'](_0x2d7201);_0x44d572['on']('set:isEnabled',(_0x172d07,_0x22499f,_0x22bbc7)=>{if(_0x22bbc7){const _0x7cbea5=_0x5c1097['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x225d82=>_0x225d82['is']('element','tableCell'));this['_areMergableCells'](_0x44d572['value'],_0x7cbea5)||(_0x172d07['return']=!0x1,_0x172d07['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xfc029f=this['editor']['commands']['get']('mergeTableCells'),_0x4f5fc9=this['editor']['plugins']['get']('TableUtils');if(!_0xfc029f['isEnabled'])return!0x1;const _0x1a425b=_0x4f5fc9['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4530ef of _0x1a425b)for(const _0x5ea3f6 of _0x1a425b)if(_0x4530ef!=_0x5ea3f6&&!this['_areMergableCells'](_0x4530ef,_0x5ea3f6))return!0x1;return!0x0;}['_areMergableCells'](_0x1f7556,_0x53f8d7){const _0x146683=this['editor']['plugins']['get']('TrackChangesEditing'),_0x93e405=this['editor']['model']['createRangeOn'](_0x1f7556),_0x2c1b78=this['editor']['model']['createRangeOn'](_0x53f8d7),_0x36f28a=new Set(),_0x5f48fd=new Set();for(const _0x44463e of _0x146683['getSuggestions']())if(('insertion'==_0x44463e['type']||'deletion'==_0x44463e['type']||'mergeTableCells'==_0x44463e['subType'])&&_0x44463e['isInContent']){for(const _0x46971b of _0x44463e['getRanges']())_0x46971b['containsRange'](_0x93e405,!0x0)&&_0x36f28a['add'](_0x44463e['type']+':'+_0x44463e['author']['id']),_0x46971b['containsRange'](_0x2c1b78,!0x0)&&_0x5f48fd['add'](_0x44463e['type']+':'+_0x44463e['author']['id']);}if(_0x36f28a['size']!=_0x5f48fd['size'])return!0x1;for(const _0x39a958 of _0x36f28a)if(!_0x5f48fd['has'](_0x39a958))return!0x1;return!0x0;}}class Ct extends _0x4f7a1d{static get['requires'](){return[It];}['afterInit'](){const _0xd8d192=this['editor'];if(!_0xd8d192['plugins']['has']('TableEditing'))return;const _0x17398c=_0xd8d192['locale'],_0x160504=_0xd8d192['plugins']['get']('TrackChangesEditing');_0x160504['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x160504['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x160504['registerBlockAttribute']('headingRows'),_0x160504['registerBlockAttribute']('headingColumns'),_0x160504['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x17398c,'FORMAT_HEADER_ROW')),_0x160504['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x17398c,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2ade2c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x153625=this['editor']['plugins']['get']('TableUtils'),_0x4592a7=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x43dc65({showActiveMarker:_0x22668f=!0x0,setDataAttribute:_0xc2e0b5=!0x0}={}){return(_0x6c4aae,_0x40d24f,_0x1f521a)=>{const {type:_0x4ff264,id:_0x47236f}=_0x2ade2c['_splitMarkerName'](_0x40d24f['markerName']),_0x8082cc=_0x2ade2c['getSuggestion'](_0x47236f),_0x178b15=_0x8082cc['data'];if('formatBlock'!=_0x8082cc['type']||!_0x178b15||'setTableColumnHeader'!=_0x178b15['commandName'])return;if(_0x40d24f['item'])return void _0x6c4aae['stop']();if(!_0x1f521a['consumable']['consume'](_0x40d24f['markerRange'],_0x6c4aae['name']))return;const _0x5167ee=_0x40d24f['markerRange']['start']['nodeAfter'],_0x4879a0=_0x40d24f['markerRange']['end']['nodeBefore'],_0x27a117=_0x5167ee['parent']['parent'],{column:_0x176ff0}=_0x153625['getCellLocation'](_0x5167ee),{column:_0x3f98cd}=_0x153625['getCellLocation'](_0x4879a0);for(let _0x20a088=_0x176ff0;_0x20a088<=_0x3f98cd;_0x20a088++){const _0x4e74f1=_0x153625['createTableWalker'](_0x27a117,{'column':_0x20a088,'includeAllSlots':!0x1});for(const _0x1e997c of _0x4e74f1){const _0x40a457=_0x1e997c['cell'],_0xabd6c3=_0x1f521a['mapper']['toViewElement'](_0x40a457);_0x1f521a['writer']['addClass']('ck-suggestion-marker-'+_0x4ff264,_0xabd6c3),_0xc2e0b5&&_0x1f521a['writer']['setAttribute']('data-suggestion',_0x47236f,_0xabd6c3),_0x1f521a['mapper']['bindElementToMarker'](_0xabd6c3,_0x40d24f['markerName']),_0x22668f&&(_0x2ade2c['activeMarkers']['includes'](_0x40d24f['markerName'])?_0x1f521a['writer']['addClass']('ck-suggestion-marker--active',_0xabd6c3):_0x1f521a['writer']['removeClass']('ck-suggestion-marker--active',_0xabd6c3));}}};}_0x2ade2c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4592a7),_0x2ade2c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4592a7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x43dc65(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x59f581,_0x3d63cc,_0x155dce)=>{_0x155dce['options']['showSuggestionHighlights']&&_0x43dc65({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x59f581,_0x3d63cc,_0x155dce);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3032bf,_0x3d0585,_0xd49477)=>{const {type:_0x5c231e,id:_0x25f75d}=_0x2ade2c['_splitMarkerName'](_0x3d0585['markerName']),_0x287ca0=_0x2ade2c['getSuggestion'](_0x25f75d),_0x39235d=_0x287ca0['data'];if('formatBlock'!=_0x287ca0['type']||!_0x39235d||'setTableColumnHeader'!=_0x39235d['commandName'])return;const _0x5a7729=_0xd49477['mapper']['markerNameToElements'](_0x3d0585['markerName']);if(_0x5a7729){for(const _0x28ed79 of _0x5a7729)_0xd49477['writer']['removeClass']('ck-suggestion-marker-'+_0x5c231e,_0x28ed79),_0xd49477['writer']['removeClass']('ck-suggestion-marker--active',_0x28ed79),_0xd49477['writer']['removeAttribute']('data-suggestion',_0x28ed79),_0xd49477['mapper']['unbindElementFromMarkerName'](_0x28ed79,_0x3d0585['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2332b4=this['editor'],_0x13df80=_0x2332b4['locale'];function _0x1215b6(_0x531ef8){return{'type':'format','content':o(_0x13df80,'*Format:*\x20%0',_0x531ef8)};}_0x2332b4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a9f5d=>{if('formatBlock'!=_0x3a9f5d['type'])return;const {data:_0x490af1}=_0x3a9f5d;if(_0x490af1){if('setTableRowHeader'==_0x490af1['commandName']){const _0x550b78=_0x490af1['commandParams'][0x0]['forceValue'];return _0x1215b6(o(_0x13df80,_0x550b78?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x490af1['commandName']){const _0x4681cc=_0x490af1['commandParams'][0x0]['forceValue'];return _0x1215b6(o(_0x13df80,_0x4681cc?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Ce=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Pe=Object['fromEntries'](Ce['map'](_0x59018c=>[_0x59018c,null]));class _t extends _0x4f7a1d{static get['requires'](){return[It];}['afterInit'](){const _0x2c0927=this['editor'];if(!_0x2c0927['plugins']['has']('TableClipboard'))return;const _0x6dc3b9=_0x2c0927['plugins']['get']('TrackChangesEditing'),_0x18bd95=_0x2c0927['plugins']['get']('TableUtils'),_0x26a772=_0x2c0927['plugins']['get'](It),_0xd7f619=_0x2c0927['plugins']['get']('TableClipboard');_0x26a772['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2c0927['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2c0927['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x42cca3=null;_0x2c0927['model']['on']('insertContent',(_0x1b711c,_0x1cf833)=>{const [_0x1c8041,_0x409084]=_0x1cf833,_0x174df7=_0x1cf833[_0x1cf833['length']-0x1];_0x174df7&&_0x174df7['forceDefaultExecution']||_0x6dc3b9['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x442d38,_0x4ce058,_0x6ea092,_0x3b9b3b,_0x3995dd){if(_0x4ce058&&!_0x4ce058['is']('documentSelection'))return!0x1;const _0x2a1b4b=_0x3995dd['getTableIfOnlyTableInContent'](_0x442d38,_0x6ea092);if(!_0x2a1b4b||!ke(_0x2a1b4b,void 0x0,_0x3b9b3b))return!0x1;const _0x39c1fb=_0x3b9b3b['getSelectionAffectedTableCells'](_0x6ea092['document']['selection']);if(!_0x39c1fb['length'])return!0x1;const _0xf8af34=_0x39c1fb[0x0]['findAncestor']('table'),_0x2caf38=_0x3b9b3b['getRowIndexes'](_0x39c1fb),_0x2b9de3=_0x3b9b3b['getColumnIndexes'](_0x39c1fb),_0x49a0c9={'startRow':_0x2caf38['first'],'endRow':_0x2caf38['last'],'startColumn':_0x2b9de3['first'],'endColumn':_0x2b9de3['last']};return 0x1==_0x39c1fb['length']&&(_0x49a0c9['endRow']+=_0x3b9b3b['getRows'](_0x2a1b4b)-0x1,_0x49a0c9['endColumn']+=_0x3b9b3b['getColumns'](_0x2a1b4b)-0x1),ke(_0xf8af34,_0x49a0c9,_0x3b9b3b);}(_0x1c8041,_0x409084,_0x2c0927['model'],_0x18bd95,_0xd7f619)&&(_0x1b711c['stop'](),_0x42cca3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2c0927['model']['change'](()=>{_0x2c0927['model']['insertContent'](_0x1cf833[0x0],_0x1cf833[0x1],_0x1cf833[0x2],{'forceDefaultExecution':!0x0});const _0x522be7=_0x48a685(),{rowInsertionRanges:_0x4cac24,columnInsertionRanges:_0x5667e8,insertionRanges:_0x3bb43a,deletionRanges:_0x2e2984,cells:_0xd30ffb}=_0x42cca3;_0x4cac24['length']&&_0x6dc3b9['markMultiRangeInsertion'](_0x4cac24,'tablePasteRow',{'tablePasteChainId':_0x522be7}),_0x5667e8['length']&&_0x6dc3b9['markMultiRangeInsertion'](_0x5667e8,'tablePasteColumn',{'tablePasteChainId':_0x522be7}),_0x3bb43a['length']&&(_0x6dc3b9['markMultiRangeInsertion'](_0x3bb43a,'tablePaste',{'tablePasteChainId':_0x522be7,'skipNestingCheck':!0x0}),_0x3bb43a['forEach'](_0x41a800=>_0x41a800['detach']?.())),_0x2e2984['length']&&(_0x6dc3b9['markMultiRangeDeletion'](_0x2e2984,'tablePaste',{'tablePasteChainId':_0x522be7,'skipNestingCheck':!0x0}),_0x2e2984['forEach'](_0x485326=>_0x485326['detach']?.()));const _0x4ff65e=_0x6dc3b9['markMultiRangeBlockFormat'](_0xd30ffb['map'](({element:_0x5b37b9})=>_0x5b37b9),{'formatGroupId':_0x48a685()},[],'tablePasteCell',{'tablePasteChainId':_0x522be7});if(_0x4ff65e){const _0x122ade=_0x4ff65e['getMarkers'](),_0x330fa0=[];for(const {element:_0x72d531,attributes:_0xdc4538}of _0xd30ffb){if(!_0xdc4538)continue;const _0x5cb077=_0x2c0927['model']['createRangeOn'](_0x72d531),_0xb980c0=_0x122ade['find'](_0x59eb03=>_0x59eb03['getRange']()['isEqual'](_0x5cb077));_0xb980c0&&_0x330fa0['push']([_0xb980c0['name'],_0xdc4538]);}_0x330fa0['length']&&_0x4ff65e['setAttribute']('markerAttributes',Object['fromEntries'](_0x330fa0));}_0x42cca3=null;}));},{'priority':_0x4612a7['high']+0xa}),_0x2c0927['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x49d419,_0x2b476c)=>{const [_0x3f27b8,_0x184779,,_0x524a23]=_0x2b476c;if(!_0x42cca3)return;_0x49d419['stop']();const _0x29b571=_0x3f27b8['cell'],_0x559eaf=_0x184779,_0x25e756=we(_0x29b571),_0x116692=we(_0x559eaf);_0x49d419['return']=_0x29b571;let _0x2bdd9d=null,_0xe21ab5=null;if(_0x116692||_0x25e756){if(_0x25e756&&!_0x116692){_0x524a23['remove'](_0x29b571['getChild'](0x0));for(const _0xb4f702 of Array['from'](_0x559eaf['getChildren']()))_0x524a23['insert'](_0xb4f702,_0x29b571,'end');const _0x25df0b=_0x42cca3['rowInsertionIndexes']['includes'](_0x3f27b8['row']),_0x29ae66=_0x42cca3['columnInsertionIndexes']['includes'](_0x3f27b8['column']);_0x25df0b||_0x29ae66||(_0x2bdd9d=_0x5978fe['fromRange'](_0x524a23['createRangeIn'](_0x29b571)));}else _0x116692&&!_0x25e756&&(_0xe21ab5=_0x524a23['createRangeIn'](_0x29b571));}else{const _0x218400=_0x524a23['createElement']('tableCellSuggestion'),_0x112400=_0x524a23['createElement']('tableCellSuggestion');_0x524a23['wrap'](_0x524a23['createRangeIn'](_0x29b571),_0x112400),_0x524a23['insert'](_0x218400,_0x29b571,0x0);for(const _0x36a63d of Array['from'](_0x559eaf['getChildren']()))_0x524a23['insert'](_0x36a63d,_0x218400,'end');_0x2bdd9d=_0x5978fe['fromRange'](_0x524a23['createRangeOn'](_0x218400)),_0xe21ab5=_0x5978fe['fromRange'](_0x524a23['createRangeOn'](_0x112400));}const _0x19d8b5=Array['from'](_0x559eaf['getAttributes']())['filter'](([_0x3a3beb])=>Ce['includes'](_0x3a3beb));_0x42cca3['cells']['push']({'element':_0x29b571,'attributes':_0x19d8b5['length']?Object['fromEntries'](_0x19d8b5):null}),_0x2bdd9d&&_0x42cca3['insertionRanges']['push'](_0x2bdd9d),_0xe21ab5&&_0x42cca3['deletionRanges']['push'](_0xe21ab5);},{'priority':'high'}),_0x18bd95['on']('insertColumns',(_0x3f910e,_0x21a55e)=>{const [_0x4026b5,_0x2b638c={}]=_0x21a55e;if(!_0x42cca3)return;const _0x8f071d=_0x2b638c['at']||0x0,_0x56abdf=_0x2b638c['columns']||0x1;_0x42cca3['columnInsertionIndexes']=new Array(_0x56abdf)['fill'](_0x8f071d)['map']((_0x5debb5,_0x2cbca6)=>_0x5debb5+_0x2cbca6);for(const {cell:_0x31bd2c}of _0x18bd95['createTableWalker'](_0x4026b5,{'startColumn':_0x8f071d,'endColumn':_0x8f071d+_0x56abdf-0x1}))_0x42cca3['columnInsertionRanges']['push'](_0x2c0927['model']['createRangeOn'](_0x31bd2c));},{'priority':'low'}),_0x18bd95['on']('insertRows',(_0x38bff1,_0x383845)=>{const [_0x27ce74,_0x297ef8={}]=_0x383845;if(!_0x42cca3)return;const _0x4bcd16=_0x297ef8['at']||0x0,_0x139d8c=_0x297ef8['rows']||0x1;_0x42cca3['rowInsertionIndexes']=new Array(_0x139d8c)['fill'](_0x4bcd16)['map']((_0x46e9ad,_0x1ce134)=>_0x46e9ad+_0x1ce134);for(const {cell:_0x5279c1}of _0x18bd95['createTableWalker'](_0x27ce74,{'startRow':_0x4bcd16,'endRow':_0x4bcd16+_0x139d8c-0x1}))_0x42cca3['rowInsertionRanges']['push'](_0x2c0927['model']['createRangeOn'](_0x5279c1));},{'priority':'low'}),_0x6dc3b9['descriptionFactory']['registerDescriptionCallback'](_0x397936=>{if(_0x397936['subType']&&_0x397936['subType']['startsWith']('tablePaste'))return _0x397936['previous']?{}:{'type':'insertion','content':o(_0x2c0927['locale'],'*Replace\x20table\x20cells*')};});const _0x1d0f6c=()=>!0x1;for(const _0x219f64 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x6dc3b9['_suggestionFactory']['registerCustomCallback']('insertion',_0x219f64,'join',_0x1d0f6c),_0x6dc3b9['_suggestionFactory']['registerCustomCallback']('deletion',_0x219f64,'join',_0x1d0f6c),_0x6dc3b9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x219f64,'join',_0x1d0f6c);_0x6dc3b9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1d0f6c),_0x6dc3b9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5d7c76,_0x59e269,_0x3838ee)=>{const _0x2f0206=_0x5d7c76['map'](_0xced93=>_0xced93['getContainedElement']())['filter'](_0x122fcb=>_0x122fcb),_0x90158d=new Map(_0x2f0206['map'](_0x2b8ecc=>[_0x2b8ecc,null]));if(_0x42cca3){for(const {element:_0x583119,attributes:_0xb4a441}of _0x42cca3['cells'])_0xb4a441&&_0x90158d['set'](_0x583119,_0xb4a441);}else{if(_0x3838ee&&_0x3838ee['markerAttributes'])for(const [_0x2f8a96,_0x48b41c]of Object['entries'](_0x3838ee['markerAttributes'])){const _0x22a320=_0x2c0927['model']['markers']['get'](_0x2f8a96),_0x3d454b=_0x22a320?_0x22a320['getRange']()['getContainedElement']():null;_0x3d454b&&_0x90158d['set'](_0x3d454b,_0x48b41c);}}_0x2c0927['model']['change'](_0x128d2c=>{for(const [_0x4b4bde,_0x2b4175]of _0x90158d)_0x128d2c['setAttributes']({...Pe,..._0x2b4175},_0x4b4bde);});});const _0x11e616=(_0x8be795,_0x5b7180)=>{_0x6dc3b9['_suggestionFactory']['registerCustomCallback'](_0x8be795,'tablePaste',_0x5b7180,(_0x426149,_0x6c383f,_0x1cdc69)=>{_0x2c0927['model']['change'](_0x18b067=>{const _0x2992ab=[];for(const _0x28f9e9 of _0x426149){const _0x35d674=_0x28f9e9['start']['nodeAfter'];_0x35d674['is']('element','tableCellSuggestion')&&_0x2992ab['push'](_0x35d674);}_0x6dc3b9['_suggestionFactory']['getSuggestionCallback'](_0x8be795,null,_0x5b7180)(_0x426149,_0x6c383f,_0x1cdc69);for(const _0x1ea443 of _0x2992ab)'$graveyard'!=_0x1ea443['root']['rootName']&&_0x18b067['unwrap'](_0x1ea443);});});};_0x11e616('insertion','accept'),_0x11e616('insertion','discard'),_0x11e616('deletion','accept'),_0x11e616('deletion','discard'),_0x6dc3b9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x357ac2=>{const _0x4d239d=_0x357ac2['map'](_0x301e4d=>_0x301e4d['getContainedElement']()),_0x20c9b3=_0x4d239d[0x0]['findAncestor']('table'),{minRow:_0x4d2c60,maxRow:_0x11a1d6}=_0x26a772['_getCoordsForCells'](_0x4d239d);_0x18bd95['removeRows'](_0x20c9b3,{'at':_0x4d2c60,'rows':_0x11a1d6-_0x4d2c60+0x1});}),_0x6dc3b9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5a6c9d=>{const _0x1ac790=_0x5a6c9d['map'](_0x4a2dbd=>_0x4a2dbd['getContainedElement']()),_0x572d9b=_0x1ac790[0x0]['findAncestor']('table'),{minColumn:_0x4c9320,maxColumn:_0x5ec445}=_0x26a772['_getCoordsForCells'](_0x1ac790);_0x18bd95['removeColumns'](_0x572d9b,{'at':_0x4c9320,'columns':_0x5ec445-_0x4c9320+0x1});});const _0x89f5b7=(_0x1b8a7b,_0x1c7d3c)=>{if(!_0x1c7d3c['subType']||!_0x1c7d3c['subType']['startsWith']('tablePaste'))return;const _0x534bda=_0x1c7d3c['attributes']['tablePasteChainId'],_0x251c8d=_0x6dc3b9['getSuggestions']()['filter'](_0x5ef4ef=>_0x5ef4ef['isInContent']&&_0x5ef4ef['attributes']&&_0x5ef4ef['attributes']['tablePasteChainId']==_0x534bda);_0x251c8d['length']&&_0x1c7d3c['getAllAdjacentSuggestions']()['length']!=_0x251c8d['length']&&_0x251c8d['reduce']((_0x34fa22,_0xf308f6)=>(_0x34fa22['next']=_0xf308f6,_0xf308f6['previous']=_0x34fa22,_0xf308f6));};function _0x43d600(_0x36a211,_0x243db6=!0x0){const {id:_0x3b7b3a}=_0x6dc3b9['_splitMarkerName'](_0x36a211['markerName']),_0x12e08b=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x142df0=_0x6dc3b9['activeMarkers']['includes'](_0x36a211['markerName']);return _0x142df0&&_0x12e08b['push']('ck-suggestion-marker--active'),{'classes':_0x12e08b,'attributes':{'data-suggestion':_0x3b7b3a},'priority':_0x142df0&&_0x243db6?0xbc2:0xbb8};}_0x6dc3b9['on']('suggestionLoaded',_0x89f5b7,{'priority':'high'}),_0x6dc3b9['on']('suggestionUnloaded',_0x89f5b7,{'priority':'high'}),_0x2c0927['model']['document']['registerPostFixer'](()=>{let _0x54afd9=!0x1;const _0x1b0897=Array['from'](_0x2c0927['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3ad497,data:_0x538684}of _0x1b0897){const {group:_0x16f962,type:_0x768562,id:_0x520637}=_0x6dc3b9['_splitMarkerName'](_0x3ad497);if('suggestion'!=_0x16f962||'deletion'!=_0x768562||_0x538684['oldRange'])continue;if(!_0x6dc3b9['hasSuggestion'](_0x520637))continue;const _0x2754b7=_0x6dc3b9['getSuggestion'](_0x520637)['getRanges'](),_0x1bb720=_0x2c0927['plugins']['get']('Users')['me'];for(const _0x262bba of _0x6dc3b9['getSuggestions']()){if(!_0x262bba['isInContent']||_0x262bba['author']!=_0x1bb720)continue;if('formatBlock'!=_0x262bba['type']||'tablePasteCell'!=_0x262bba['subType'])continue;if(_0x262bba['getRanges']()['every'](_0x24bfdd=>_0x2754b7['some'](_0x9af591=>_0x9af591['containsRange'](_0x24bfdd,!0x0)))){for(const _0x2c3617 of _0x262bba['getAllAdjacentSuggestions']())_0x2c3617['isInContent']&&(_0x2c3617['discard'](),_0x54afd9=!0x0);}}}return _0x54afd9;}),_0x2c0927['model']['document']['registerPostFixer'](_0x28789e=>{const _0x434bcd=_0x2c0927['commands']['get']('redo');if(!_0x434bcd||!_0x434bcd['_createdBatches']['has'](_0x28789e['batch']))return!0x1;let _0xc247ca=!0x1;const _0x420cea=_0x2c0927['plugins']['get']('Users')['me'],_0x2a1bb7=_0x2c0927['model']['document']['differ']['getChanges'](),_0x1c2d7d=Array['from'](_0x2c0927['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x9cb61a,data:_0x34971f})=>{const {group:_0x26efd7,subType:_0x4ff66a,authorId:_0x5a05b2}=_0x6dc3b9['_splitMarkerName'](_0x9cb61a);return'suggestion'==_0x26efd7&&'tablePaste'==_0x4ff66a&&_0x5a05b2==_0x420cea['id']&&!_0x34971f['oldRange'];});for(const _0x24bd69 of _0x2a1bb7){if('insert'!=_0x24bd69['type']||'tableCellSuggestion'!=_0x24bd69['name']||0x1!=_0x24bd69['length'])continue;const _0x20eff6=_0x28789e['createRange'](_0x24bd69['position'],_0x24bd69['position']['getShiftedBy'](0x1));if(!_0x1c2d7d['find'](({data:_0x43186f})=>_0x43186f['newRange']['isEqual'](_0x20eff6))){for(const {name:_0x1234f7,data:_0x1aec73}of _0x1c2d7d)if(_0x20eff6['containsRange'](_0x1aec73['newRange'])){_0x28789e['updateMarker'](_0x1234f7,{'range':_0x20eff6}),_0xc247ca=!0x0;break;}}}return _0xc247ca;}),_0x2c0927['model']['document']['registerPostFixer'](_0x53dc0c=>{let _0x2d29a4=!0x1;const _0x353530=_0x2c0927['plugins']['get']('Users')['me'],_0x5daa0c=_0x6dc3b9['getSuggestions']()['filter'](_0x5dea05=>_0x5dea05['isInContent']&&_0x5dea05['author']==_0x353530),_0x25f944=new Set(),_0x34a791=new Set();for(const _0x4cc9e0 of _0x5daa0c)if('tablePaste'==_0x4cc9e0['subType'])for(const _0x36eb8b of _0x4cc9e0['getMarkers']()){const _0x82e781=_0x36eb8b['getRange']()['getContainedElement']();if(_0x82e781){if(_0x82e781['is']('element','tableCellSuggestion')&&we(_0x82e781)){_0x4cc9e0['removeMarker'](_0x36eb8b['name']),_0x25f944['add'](_0x82e781),_0x2d29a4=!0x0;const _0xd79a1e=_0x82e781['nextSibling'],_0x47d553=_0x82e781['previousSibling'],_0x35121f=_0xd79a1e&&_0xd79a1e['is']('element','tableCellSuggestion'),_0x82ea68=_0x47d553&&_0x47d553['is']('element','tableCellSuggestion');_0x35121f&&!_0x25f944['has'](_0xd79a1e)&&_0x34a791['add'](_0xd79a1e),_0x82ea68&&!_0x25f944['has'](_0x47d553)&&_0x34a791['add'](_0x47d553);}else _0x82e781['is']('element','paragraph')&&_0x82e781['isEmpty']&&(_0x4cc9e0['removeMarker'](_0x36eb8b['name']),_0x2d29a4=!0x0);}}else{if('tablePasteCell'==_0x4cc9e0['subType']){if(!_0x4cc9e0['attributes']||!_0x4cc9e0['attributes']['tablePasteChainId'])continue;const _0x5f7490=_0x4cc9e0['attributes']['markerAttributes'];if(_0x5f7490&&Object['keys'](_0x5f7490)['length'])continue;const _0x5239e5=_0x4cc9e0['attributes']['tablePasteChainId'];let _0x572571=!0x0,_0xb363f2=!0x0;for(const _0x20dfa1 of _0x5daa0c)if(_0x20dfa1['subType']&&_0x20dfa1['subType']['startsWith']('tablePaste')){if(!_0x20dfa1['attributes']['tablePasteChainId']){_0xb363f2=!0x1;break;}if(_0x20dfa1['id']!=_0x4cc9e0['id']&&_0x20dfa1['attributes']['tablePasteChainId']==_0x5239e5){_0x572571=!0x1;break;}}_0xb363f2&&_0x572571&&(_0x4cc9e0['removeMarkers'](),_0x2d29a4=!0x0);}}for(const _0x44b8a0 of _0x25f944)_0x53dc0c['remove'](_0x44b8a0);for(const _0x285355 of _0x34a791)_0x53dc0c['unwrap'](_0x285355);return _0x2d29a4;}),_0x2c0927['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x35a9e1,_0xb9010a)=>_0x43d600(_0x35a9e1),'converterPriority':'high'}),_0x2c0927['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x240673,_0x147595)=>_0x147595['options']['showSuggestionHighlights']?_0x43d600(_0x240673,!0x1):null,'converterPriority':'high'});const _0x46ae7c=_0x2c0927['editing']['view'];this['listenTo'](_0x46ae7c['document'],'clipboardOutput',(_0x531262,_0x13e979)=>{const _0x415a3=[];for(const _0x44ecb9 of _0x46ae7c['createRangeIn'](_0x13e979['content'])['getItems']())_0x44ecb9['is']('element','suggestion-td')&&_0x415a3['push'](_0x44ecb9);_0x46ae7c['change'](_0x5247cc=>{for(const _0x20cc72 of _0x415a3)_0x5247cc['move'](_0x5247cc['createRangeIn'](_0x20cc72),_0x5247cc['createPositionBefore'](_0x20cc72)),_0x5247cc['remove'](_0x20cc72);});});}}function we(_0x3dafd){if(_0x3dafd['isEmpty'])return!0x0;const _0x2f9f6c=_0x3dafd['getChild'](0x0);return _0x2f9f6c['is']('element','paragraph')&&_0x2f9f6c['isEmpty'];}function ke(_0x5ebcde,_0x48430e={},_0x2a5677){for(const {isAnchor:_0x3ba18f,cellHeight:_0x18e0eb,cellWidth:_0x4e5c23}of _0x2a5677['createTableWalker'](_0x5ebcde,{'includeAllSlots':!0x0,..._0x48430e}))if(!_0x3ba18f||0x1!=_0x18e0eb||0x1!=_0x4e5c23)return!0x1;return!0x0;}class Nt extends _0x4f7a1d{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xbcfc=this['editor']['plugins']['get']('TrackChangesEditing');_0xbcfc['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xbcfc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xbcfc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xbcfc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xbcfc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xbcfc['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x478dc2,_0x12322d){const _0x2cb809=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bb61f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xf05d02=_0x12322d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1373d9=_0x5bb61f['getColumnGroupElement'](_0xf05d02);let _0x24765a=_0x1373d9?_0x5bb61f['getTableColumnsWidths'](_0x1373d9):null,_0x391765=_0xf05d02['getAttribute']('tableWidth')||null;const _0x59c45f=_0x12322d['tableWidth']||_0x391765,_0xf00007=_0x12322d['columnWidths']||_0x24765a,_0x37f3dc=this['editor']['plugins']['get']('Users')['me'];for(const _0x58f2df of _0x2cb809['getSuggestions']()){const _0x5b307b=_0x58f2df['getContainedElement']();if('resizeTable'===_0x58f2df['subType']&&_0x5b307b===_0xf05d02){_0x58f2df['author']!==_0x37f3dc&&_0x58f2df['discard']();const _0x3a30a9=_0x58f2df['data']['commandParams'];_0x391765=_0x3a30a9[0x0]['tableWidth'],_0x24765a=_0x3a30a9[0x0]['columnWidths'];break;}}_0x478dc2({'table':_0xf05d02,'tableWidth':_0x59c45f,'columnWidths':_0xf00007}),_0x2cb809['markBlockFormat'](_0xf05d02,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x391765,'columnWidths':_0x24765a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3da378){if('formatBlock'!=_0x3da378['type']&&'formatInline'!=_0x3da378['type'])return;const {data:_0x1c8fcf}=_0x3da378;if(_0x1c8fcf&&'resizeTable'===_0x1c8fcf['formatGroupId']){const _0x5347f1='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5347f1)};}}}class Dt extends _0x4f7a1d{['afterInit'](){const _0x484da8=this['editor'];_0x484da8['plugins']['has']('Template')&&_0x484da8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x4f7a1d{['afterInit'](){const _0x14b049=this['editor'];if(!_0x14b049['commands']['get']('insertTableOfContents'))return;_0x14b049['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x15e546=_0x14b049['plugins']['get']('TrackChangesEditing'),_0x509ecf=_0x14b049['locale'];_0x15e546['descriptionFactory']['registerElementLabel']('tableOfContents',_0x27379b=>o(_0x509ecf,'ELEMENT_TABLE_OF_CONTENTS',_0x27379b));}}class $t extends _0x4f7a1d{['afterInit'](){const _0x1b0c3b=this['editor'];if(!_0x1b0c3b['plugins']['has']('Title'))return;const _0x480d30=_0x1b0c3b['plugins']['get']('TrackChangesEditing');_0x480d30['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1b0c3b['locale'],'ELEMENT_TITLE')),_0x1b0c3b['model']['document']['registerPostFixer'](_0x48618d=>{let _0x3b0bbb=!0x1;const _0x273d65=Array['from'](_0x1b0c3b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x56b5cf,data:_0x615c8}of _0x273d65){const {group:_0x546380}=_0x480d30['_splitMarkerName'](_0x56b5cf);if('suggestion'!==_0x546380||!_0x615c8['newRange'])continue;const _0x6b717b=_0x615c8['newRange'],_0x588587=_0x6b717b['end']['nodeBefore'];if(!_0x588587||!_0x588587['is']('element','title-content'))continue;if(!_0x6b717b['start']['isTouching'](_0x6b717b['end']))continue;const _0x2d2d3c=_0x1b0c3b['model']['schema']['getNearestSelectionRange'](_0x6b717b['end'],'forward');if(_0x2d2d3c&&_0x2d2d3c['isCollapsed']){const _0x1fdd4d=_0x48618d['createRange'](_0x6b717b['start'],_0x2d2d3c['start']);_0x1fdd4d['isEqual'](_0x6b717b)||(_0x48618d['updateMarker'](_0x56b5cf,{'range':_0x1fdd4d}),_0x3b0bbb=!0x0);}_0x3b0bbb||(_0x48618d['removeMarker'](_0x56b5cf),_0x3b0bbb=!0x0);}return _0x3b0bbb;});}}class Bt extends _0x4f7a1d{['afterInit'](){const _0x282897=this['editor'],_0x297884=_0x282897['plugins']['get']('TrackChangesEditing');_0x282897['plugins']['has']('UndoEditing')&&(_0x297884['enableCommand']('undo'),_0x297884['enableCommand']('redo'));}}class xt extends _0x4f7a1d{static get['requires'](){return[It];}['afterInit'](){const _0x1afc59=this['editor'];if(!_0x1afc59['plugins']['has']('TableCaptionEditing'))return;_0x1afc59['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x4f7a1d{['tableProperties'];['tableCellProperties'];constructor(_0x3c714a){super(_0x3c714a),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 _0x9e34e3=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x165497 of this['tableProperties'])_0x9e34e3['enableCommand'](_0x165497,(_0x4e179f,_0x4766a4)=>{const _0x2bf539=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x165497,[_0x2bf539],this['tableProperties'],'tableProperties',_0x4e179f,_0x4766a4);});_0x9e34e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x9e34e3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x9e34e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x45649c,_0x494816)=>this['handleDiscardAction'](this['tableProperties'],_0x45649c,_0x494816)),_0x9e34e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xd4e69 of this['tableCellProperties'])_0x9e34e3['enableCommand'](_0xd4e69,(_0x314654,_0xd2def2)=>{const _0x367bf9=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xd4e69,_0x367bf9,this['tableCellProperties'],'tableCellProperties',_0x314654,_0xd2def2);});_0x9e34e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x9e34e3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x9e34e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1a1ff9,_0x103eef)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1a1ff9,_0x103eef)),_0x9e34e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x9e34e3['descriptionFactory']['registerDescriptionCallback'](_0xc738f4=>this['handleSuggestionDescription'](_0xc738f4));}['_handlePropertyChange'](_0x3af3b1,_0x30e527,_0x3aecdb,_0x5d0299,_0x2109c7,_0x1b87c9){const _0x49f77e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1b87c9['batch'],()=>{for(const _0x57183c of _0x30e527){if(this['_getSuggestion'](_0x57183c,_0x5d0299))_0x2109c7(_0x1b87c9);else{const _0xfaf301={};for(const _0x369f46 of _0x3aecdb){const _0x37da79=_0x57183c['getAttribute'](_0x369f46);void 0x0!==_0x37da79&&(_0xfaf301[_0x369f46]=_0x37da79);}_0x2109c7(_0x1b87c9),_0x49f77e['markBlockFormat'](_0x57183c,{'commandParams':[_0xfaf301]},[],_0x5d0299);}}});}['handleDiscardAction'](_0x37d747,_0x389703,_0x4dfa6d){const _0x1ebad9=_0x389703[0x0]['start']['nodeAfter'],_0x564d13=_0x4dfa6d['commandParams'][0x0];this['editor']['model']['change'](_0x3a8355=>{for(const _0x4c33f4 of _0x37d747)void 0x0!==_0x564d13[_0x4c33f4]?_0x3a8355['setAttribute'](_0x4c33f4,_0x564d13[_0x4c33f4],_0x1ebad9):_0x3a8355['removeAttribute'](_0x4c33f4,_0x1ebad9);});}['handleSuggestionDescription'](_0x23450b){if(_0x23450b['data'])switch(_0x23450b['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'](_0x4ef4d3,_0x21e394){const _0x51a31b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x42eb74 of _0x51a31b['getSuggestions']({'skipNotAttached':!0x0})){const _0x14e5c0=_0x42eb74['getContainedElement']();if(_0x42eb74['subType']===_0x21e394&&_0x14e5c0===_0x4ef4d3)return _0x42eb74;}return null;}}const m='$elementName';class p extends _0x4f7a1d{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2c4983,_0x36083b,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x36d554){function _0x2036c2(_0x5625f3){return _0x5625f3['map'](_0x165b0d=>String['fromCharCode'](_0x165b0d))['join']('');}super(_0x36d554),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x85d42e,_0xe40650,_0x508f68,_0x3bf573)=>{this['_model']['change'](()=>{for(const _0x358f95 of[..._0x3bf573,..._0x508f68])this['_model']['markers']['has'](_0x358f95)&&_0x36d554['editing']['reconvertMarker'](_0x358f95);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x36d554['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(),_0x36d554['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x36d554['config']['get']('trackChanges.trackFormatChanges'),_0x36d554['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x36d554['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x36d554,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x2036c2([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2036c2([0x34,0x30,0x34,0x38,0x31,0x36,0x31,0x32]);}['init'](){const _0x4bffdf=this['editor'],_0x46f3b6=(_0x41f30a,_0x3d4b50)=>{if('attribute'!=_0x41f30a)return'ck-suggestion-marker-'+_0x41f30a;const _0x36e075=_0x3d4b50['split']('|')[0x0];return this['_isBlockAttribute'](_0x36e075)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4bffdf['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x224e99=>{const {id:_0x5c3b52,type:_0x4e2f23,subType:_0x2e03b7}=this['_splitMarkerName'](_0x224e99['markerName']),_0x4fc483=['ck-suggestion-marker',_0x46f3b6(_0x4e2f23,_0x2e03b7)];let _0x362591=0xbb8;return this['activeMarkers']['includes'](_0x224e99['markerName'])&&(_0x4fc483['push']('ck-suggestion-marker--active'),_0x362591=0xbc2),'deletion'==_0x4e2f23&&(_0x362591+=0x5),{'classes':_0x4fc483,'attributes':{'data-suggestion':_0x5c3b52},'priority':_0x362591};}}),_0x4bffdf['conversion']['for']('dataDowncast')['add'](_0x2e2e0e=>{_0x2e2e0e['on']('addMarker:suggestion',(_0x2055dc,_0x176982,_0x2bce06)=>{if(!_0x2bce06['options']['showSuggestionHighlights'])return;const _0xbee2da=_0x176982['item'];if(!_0xbee2da)return;const _0x40a609=_0x2bce06['mapper']['toViewElement'](_0xbee2da);_0x4bffdf['model']['schema']['isObject'](_0xbee2da)&&_0x40a609&&!_0x40a609['getCustomProperty']('widget')&&_0x40a609['is']('containerElement')&&_0x3ef6ce(_0x40a609,_0x2bce06['writer']);},{'priority':'high'});}),_0x4bffdf['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x45cff2,_0x392fe0)=>{if(!_0x392fe0['options']['showSuggestionHighlights'])return null;const {type:_0x15463d,subType:_0x1e39e1}=this['_splitMarkerName'](_0x45cff2['markerName']);return{'classes':['ck-suggestion-marker',_0x46f3b6(_0x15463d,_0x1e39e1)],'priority':0xbb8};}});const _0xe91cd8=({showActiveMarkers:_0x3a5002=!0x0,isAttributeSuggestion:_0x812b05=!0x1}={})=>(_0x1e6a0c,_0x5bc634,_0x36190c)=>{if(!_0x5bc634['item'])return;const {id:_0x367587}=this['_splitMarkerName'](_0x5bc634['markerName']);if(_0x812b05){const _0x34fafa=this['_suggestions']['get'](_0x367587),_0x115d08=this['_getAttributeKey'](_0x34fafa);if(!this['_isBlockAttribute'](_0x115d08))return;}if(_0x5bc634['item']['is']('selection'))return void _0x36190c['consumable']['consume'](_0x5bc634['item'],_0x1e6a0c['name']);const _0x8e84a8=_0x36190c['mapper']['toViewElement'](_0x5bc634['item']);if(_0x5bc634['item']['is']('element')&&_0x4bffdf['model']['schema']['isBlock'](_0x5bc634['item'])&&!_0x8e84a8['getCustomProperty']('addHighlight')){_0x36190c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x8e84a8),_0x36190c['writer']['setAttribute']('data-suggestion',_0x367587,_0x8e84a8),_0x36190c['mapper']['bindElementToMarker'](_0x8e84a8,_0x5bc634['markerName']),_0x3a5002&&(this['activeMarkers']['includes'](_0x5bc634['markerName'])?_0x36190c['writer']['addClass']('ck-suggestion-marker--active',_0x8e84a8):_0x36190c['writer']['removeClass']('ck-suggestion-marker--active',_0x8e84a8));for(const _0x1cca90 of _0x4bffdf['model']['createRangeIn'](_0x5bc634['item'])['getItems']())_0x36190c['consumable']['consume'](_0x1cca90,_0x1e6a0c['name']);_0x36190c['consumable']['consume'](_0x5bc634['item'],_0x1e6a0c['name']);}};_0x4bffdf['conversion']['for']('dataDowncast')['add'](_0x34c662=>{_0x34c662['on']('addMarker:suggestion:formatBlock',(_0x22380e,_0x2289bb,_0x155ad5)=>{_0x155ad5['options']['showSuggestionHighlights']&&_0xe91cd8({'showActiveMarkers':!0x1})(_0x22380e,_0x2289bb,_0x155ad5);},{'priority':'highest'});}),_0x4bffdf['conversion']['for']('dataDowncast')['add'](_0x13ffe8=>{_0x13ffe8['on']('addMarker:suggestion:attribute',(_0x72f3c9,_0x1303cc,_0x155d75)=>{_0x155d75['options']['showSuggestionHighlights']&&_0xe91cd8({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x72f3c9,_0x1303cc,_0x155d75);},{'priority':'highest'});}),_0x4bffdf['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xaf339e,_0x12c20d)=>_0x12c20d['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xaf339e['substr'](0xb)}}),_0x4bffdf['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x214081,{writer:_0x24d22b})=>{let _0x4a50d2='suggestion:'+_0x214081['getAttribute']('suggestion-type')+':'+_0x214081['getAttribute']('id');return _0x214081['getAttribute']('marker-count')&&(_0x4a50d2+=':'+_0x214081['getAttribute']('marker-count')),_0x24d22b['createElement']('$marker',{'data-name':_0x4a50d2});}}),_0x4bffdf['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4bffdf['conversion']['for']('editingDowncast')['add'](_0x34c313=>{_0x34c313['on']('addMarker:suggestion:formatBlock',_0xe91cd8(),{'priority':'high'});}),_0x4bffdf['conversion']['for']('editingDowncast')['add'](_0x3eae44=>{_0x3eae44['on']('addMarker:suggestion:attribute',_0xe91cd8({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4bffdf['conversion']['for']('editingDowncast')['add'](_0x2820e1=>{_0x2820e1['on']('removeMarker:suggestion:formatBlock',(_0x196204,_0x47dae7,_0x1934bc)=>{const _0x154878=_0x1934bc['mapper']['markerNameToElements'](_0x47dae7['markerName']);if(_0x154878){for(const _0x2661f1 of _0x154878)_0x2661f1['getCustomProperty']('addHighlight')||(_0x1934bc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2661f1),_0x1934bc['writer']['removeAttribute']('data-suggestion',_0x2661f1),_0x1934bc['mapper']['unbindElementFromMarkerName'](_0x2661f1,_0x47dae7['markerName']));}},{'priority':'high'});}),_0x4bffdf['conversion']['for']('editingDowncast')['add'](_0x4e9847=>{_0x4e9847['on']('removeMarker:suggestion:attribute',(_0x47fdc2,_0xb00aa7,_0x1da152)=>{const _0x47ad4a=_0x1da152['mapper']['markerNameToElements'](_0xb00aa7['markerName']);if(!_0x47ad4a)return;const {id:_0x3bbddd}=this['_splitMarkerName'](_0xb00aa7['markerName']),_0x3205c1=this['_suggestions']['get'](_0x3bbddd),_0x3f9aec=this['_getAttributeKey'](_0x3205c1);if(this['_isBlockAttribute'](_0x3f9aec)){for(const _0x5d5108 of _0x47ad4a)_0x5d5108['getCustomProperty']('addHighlight')||(_0x1da152['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5d5108),_0x1da152['writer']['removeAttribute']('data-suggestion',_0x5d5108),_0x1da152['mapper']['unbindElementFromMarkerName'](_0x5d5108,_0xb00aa7['markerName']));}},{'priority':'high'});}),_0x4bffdf['model']['document']['registerPostFixer'](_0xa57db0=>{let _0x197160=!0x1;const _0x497b88=Array['from'](_0x4bffdf['model']['document']['differ']['getChangedMarkers']()),_0xfbd3cc=new Set();for(const {name:_0x46ce34,data:_0xe97597}of _0x497b88){const {group:_0x3c2ce1,type:_0x55fe89,subType:_0xff7841,id:_0xf9088b}=this['_splitMarkerName'](_0x46ce34);if('suggestion'!==_0x3c2ce1)continue;const _0x2c9d04=this['_suggestions']['get'](_0xf9088b);if(null!=_0xe97597['newRange']){'formatInline'==_0x55fe89&&(_0x197160=_0x197160||Ut(_0xe97597['newRange'],_0x46ce34,_0xa57db0,_0x4bffdf['model']['schema']));const _0x402dad='attribute'==_0x55fe89&&this['_isBlockAttribute'](_0xff7841['split']('|')[0x0]);if(_0xe97597['newRange']['isCollapsed']||'$graveyard'==_0xe97597['newRange']['root']['rootName']||'formatBlock'==_0x55fe89&&!Ft(_0xe97597['newRange'])||_0x402dad&&!Ft(_0xe97597['newRange'])||'deletion'==_0x55fe89&&!(!Vt(_0x549a69=_0xe97597['newRange'])&&!function(_0x289cfe){return _0x289cfe['start']['parent']==_0x289cfe['end']['nodeBefore']&&_0x289cfe['start']['isAtEnd'];}(_0x549a69)))_0xa57db0['removeMarker'](_0x46ce34),_0x197160=!0x0;else{if(!_0x2c9d04||!_0x2c9d04['isInContent'])continue;if(_0xe97597['newRange']&&_0xe97597['oldRange']&&_0xe97597['newRange']['isEqual'](_0xe97597['oldRange']))continue;_0xfbd3cc['add'](_0x2c9d04);}}}var _0x549a69;return _0xfbd3cc['size']>0x0&&(_0x197160=!!this['_joinWithAdjacentSuggestions'](_0xfbd3cc)||_0x197160),_0x197160;}),_0x4bffdf['model']['document']['registerPostFixer'](_0x29e272=>{let _0x4e22bf=!0x1;for(const _0x49cf6c of _0x4bffdf['model']['document']['differ']['getChanges']())if('insert'==_0x49cf6c['type'])for(const _0x51dbfd of this['_suggestions']['values']()){if(_0x51dbfd['isMultiRange']||!_0x51dbfd['isInContent'])continue;const _0x250899='formatBlock'==_0x51dbfd['type'],_0x213efc=this['_getAttributeKey'](_0x51dbfd),_0x3aaecf=_0x213efc&&this['_isBlockAttribute'](_0x213efc);if(!_0x250899&&!_0x3aaecf)continue;const _0x3e7c3d=_0x51dbfd['getFirstRange']();if(_0x3e7c3d['start']['parent']!=_0x3e7c3d['end']['parent']&&!_0x3e7c3d['end']['isAtEnd']){const _0x25eb10=_0x4bffdf['model']['createPositionAt'](_0x3e7c3d['start']['nodeAfter'],'end'),_0x456f47=_0x4bffdf['model']['createRange'](_0x3e7c3d['start'],_0x25eb10);_0x29e272['updateMarker'](_0x51dbfd['getFirstMarker'](),{'range':_0x456f47}),_0x4e22bf=!0x0;}}return _0x4e22bf;}),_0x4bffdf['model']['document']['registerPostFixer'](_0x52cf48=>this['_processAttributeChanges'](_0x52cf48)),_0x4bffdf['model']['document']['registerPostFixer'](_0x41b1be=>!_0x41b1be['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x41b1be)),_0x4bffdf['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4bffdf['model']['document']['on']('change:data',(_0x23a41c,_0x4db550)=>{if(!_0x4db550['isLocal']||_0x4db550['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2afbc5=_0x4bffdf['model']['document']['differ']['getChanges']();if(0x0==_0x2afbc5['length'])return;const _0x493bef=[],_0x59362f=_0x2afbc5['filter'](_0x3e166e=>'attribute'==_0x3e166e['type']),_0x36ddbb=_0x2afbc5['filter'](_0x258316=>'insert'==_0x258316['type']&&'$text'!=_0x258316['name']);for(const _0x1dd06c of _0x59362f)this['_isRegisteredAttribute'](_0x1dd06c['attributeKey'])&&_0x493bef['push']({'key':_0x1dd06c['attributeKey'],'newValue':_0x1dd06c['attributeNewValue'],'oldValue':_0x1dd06c['attributeOldValue'],'range':Pt(_0x1dd06c['range'],_0x4bffdf['model'])});for(const _0x172795 of _0x36ddbb){if('rename'!=_0x172795['action']&&'refresh'!=_0x172795['action'])continue;const _0x2eed38=Lt(_0x172795['position']['nodeAfter'],_0x4bffdf['model']),_0x5120f3=_0x172795['before'];'rename'==_0x172795['action']&&_0x493bef['push']({'key':m,'newValue':_0x172795['name'],'oldValue':_0x5120f3['name'],'range':_0x2eed38});for(const [_0x25b281,_0x36b9cb]of _0x5120f3['attributes']){if(!this['_isRegisteredAttribute'](_0x25b281))continue;const _0x53a03f=_0x172795['attributes']['get'](_0x25b281);_0x36b9cb!==_0x53a03f&&_0x493bef['push']({'key':_0x25b281,'newValue':_0x53a03f,'oldValue':_0x36b9cb,'range':_0x2eed38});}for(const [_0x100e5f,_0x547304]of _0x172795['attributes'])this['_isRegisteredAttribute'](_0x100e5f)&&(_0x5120f3['attributes']['has'](_0x100e5f)||_0x493bef['push']({'key':_0x100e5f,'newValue':_0x547304,'oldValue':null,'range':_0x2eed38}));}0x0!=_0x493bef['length']&&_0x4bffdf['model']['enqueueChange'](_0x4db550,_0x56ea5f=>{const _0x350d19=_0x48a685();for(const {range:_0x33c49e,key:_0x357c30,oldValue:_0x149c89,newValue:_0x2cc6ec}of _0x493bef)this['markAttributeChange'](_0x33c49e,_0x357c30,_0x149c89,_0x2cc6ec,{'groupId':_0x350d19});this['_reduceExistingSuggestions'](_0x56ea5f,_0x493bef);});},{'priority':'lowest'}),_0x4bffdf['model']['markers']['on']('update:suggestion',(_0x3fdbdf,_0x23e278,_0x38c882)=>{if(null==_0x38c882){const {id:_0x1b7364}=this['_splitMarkerName'](_0x23e278['name']),_0x15d3c8=this['_suggestions']['get'](_0x1b7364);_0x15d3c8&&_0x15d3c8['addMarkerName'](_0x23e278['name']);}}),_0x4bffdf['model']['document']['on']('change:data',()=>{const _0x28091a=Array['from'](_0x4bffdf['model']['document']['differ']['getChangedMarkers']())['filter'](_0x561682=>'suggestion'===this['_splitMarkerName'](_0x561682['name'])['group']);if(0x0===_0x28091a['length'])return;_0x28091a['sort']((_0x5dd43f,_0x2f2333)=>{const _0x52e300=_0x5dd43f['data']['oldRange'],_0x57b238=_0x2f2333['data']['oldRange'];return null===_0x52e300&&null===_0x57b238?0x0:null===_0x52e300&&null!==_0x57b238?-0x1:null!==_0x52e300&&null===_0x57b238?0x1:_0x52e300['start']['isBefore'](_0x57b238['start'])?-0x1:0x1;});const _0x2356ea=new Set(),_0x5c8fe4=new Set();for(const {name:_0x18066f,data:_0x3129c1}of _0x28091a){const {id:_0x11fcdb}=this['_splitMarkerName'](_0x18066f);if(null===_0x3129c1['oldRange']){const _0x10ea48=this['_handleNewSuggestionMarker'](_0x18066f);_0x5c8fe4['add'](_0x10ea48);}else{const _0x593827=this['_suggestions']['get'](_0x11fcdb);null!==_0x3129c1['newRange']||_0x593827['isInContent']?(_0x2356ea['add'](_0x593827['head']),_0x5c8fe4['add'](_0x593827)):this['_removeSuggestion'](_0x593827);}}_0x5c8fe4['size']>0x0&&this['_refreshSuggestionsChain'](_0x5c8fe4);for(const _0x251c47 of _0x2356ea)this['fire']('suggestionChanged',_0x251c47);}),_0x4bffdf['model']['on']('applyOperation',(_0x5addc5,_0x24e4a7)=>{const _0x33e6b0=_0x24e4a7[0x0];if(!this['_suggestions']['size'])return;if(!_0x33e6b0['isDocumentOperation'])return;if(_0x33e6b0['batch']['isUndo']||!_0x33e6b0['batch']['isLocal'])return;let _0x33ce74,_0x2e2cfb;switch(_0x33e6b0['type']){case'insert':_0x33ce74=_0x4bffdf['model']['createPositionAt'](_0x33e6b0['position']),_0x2e2cfb=_0x33ce74['getShiftedBy'](_0x33e6b0['howMany']);break;case'split':_0x33ce74=_0x4bffdf['model']['createPositionAt'](_0x33e6b0['splitPosition']),_0x2e2cfb=_0x4bffdf['model']['createPositionAt'](_0x33e6b0['moveTargetPosition']);break;case'move':_0x33ce74=_0x4bffdf['model']['createPositionAt'](_0x33e6b0['targetPosition']),_0x2e2cfb=_0x33ce74['getShiftedBy'](_0x33e6b0['howMany']);break;default:return;}const _0x2889ce=_0x4bffdf['model']['createRange'](_0x33ce74,_0x2e2cfb);_0x4bffdf['model']['change'](()=>{for(const {suggestion:_0x37abab,meta:_0x52c15a}of this['_findSuggestions'](_0x2889ce)){if(_0x37abab['isMultiRange'])continue;if('formatInline'==_0x37abab['type'])continue;const _0x1940b7=this['_getAttributeKey'](_0x37abab);if(_0x1940b7&&this['_isBlockAttribute'](_0x1940b7)&&'split'!=_0x33e6b0['type'])continue;const _0x2fe90c=_0x37abab['data']&&_0x37abab['data']['multipleBlocks'];('formatBlock'!=_0x37abab['type']||'split'==_0x33e6b0['type']&&!_0x2fe90c)&&(_0x52c15a['containsRangeInObject']||'insertion'==_0x37abab['type']&&_0x52c15a['isOwn']||_0x37abab['getFirstRange']()['containsRange'](_0x2889ce)&&this['_breakSuggestionMarker'](_0x37abab,_0x33ce74,_0x2e2cfb));}});},{'priority':'lowest'}),_0x4bffdf['model']['on']('deleteContent',(_0x271987,_0x4d9af8)=>{const _0x4fed62=_0x4d9af8[0x0],_0x936fb3=_0x4d9af8[0x1];if(_0x936fb3&&_0x936fb3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4fed62['isCollapsed'])return;const _0x1b24a8=_0x4bffdf['model']['schema'],{start:_0x35c60d,end:_0x3cdc7b}=_0x4fed62['getFirstRange'](),_0x298078=_0x35c60d['nodeAfter']&&_0x1b24a8['isLimit'](_0x35c60d['nodeAfter'])?null:_0x1b24a8['getNearestSelectionRange'](_0x35c60d,'forward'),_0x3376d7=_0x3cdc7b['nodeBefore']&&_0x1b24a8['isLimit'](_0x3cdc7b['nodeBefore'])?null:_0x1b24a8['getNearestSelectionRange'](_0x3cdc7b,'backward'),_0xc8d80b=_0x4bffdf['model']['createRange'](_0x298078?_0x298078['start']:_0x35c60d,_0x3376d7?_0x3376d7['end']:_0x3cdc7b);_0x4bffdf['model']['change'](_0x48632b=>{this['markDeletion'](_0xc8d80b);const _0x34993d=_0x4bffdf['model']['schema']['getNearestSelectionRange'](_0xc8d80b['start']);_0x4fed62['is']('documentSelection')?_0x48632b['setSelection'](_0x34993d):_0x4fed62['setTo'](_0x34993d);}),_0x271987['stop']();},{'priority':_0x4612a7['normal']+0xa}),_0x4bffdf['model']['on']('insertContent',(_0x3bc689,_0x3ce4bd)=>{const _0x38f371=_0x3ce4bd[_0x3ce4bd['length']-0x1];_0x38f371&&_0x38f371['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4bffdf['model']['change'](()=>{let _0x21b34f=_0x4bffdf['model']['insertContent'](_0x3ce4bd[0x0],_0x3ce4bd[0x1],_0x3ce4bd[0x2],{'forceDefaultExecution':!0x0});if(!_0x21b34f)return;_0x3bc689['return']=_0x21b34f['clone']();const _0x2e5271=_0x21b34f['end']['nodeBefore'],_0x1dded6=_0x4bffdf['model']['schema'];_0x2e5271&&_0x1dded6['isBlock'](_0x2e5271)&&!_0x1dded6['isObject'](_0x2e5271)&&(_0x21b34f=_0x4bffdf['model']['createRange'](_0x21b34f['start'],_0x4bffdf['model']['createPositionAt'](_0x2e5271,'end'))),this['markInsertion'](_0x21b34f);}),_0x3bc689['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x882c69=new x(_0x4bffdf,this['_suggestions']);_0x4bffdf['commands']['add']('acceptSuggestion',_0x882c69),this['enableCommand']('acceptSuggestion');const _0x4973ad=new R(_0x4bffdf,this['_suggestions']);_0x4bffdf['commands']['add']('discardSuggestion',_0x4973ad),this['enableCommand']('discardSuggestion'),_0x4bffdf['commands']['add']('acceptAllSuggestions',new E(_0x4bffdf,_0x882c69,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4bffdf['commands']['add']('discardAllSuggestions',new E(_0x4bffdf,_0x4973ad,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4bffdf['commands']['add']('acceptSelectedSuggestions',new O(_0x4bffdf,_0x882c69,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4bffdf['commands']['add']('discardSelectedSuggestions',new O(_0x4bffdf,_0x4973ad,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5db46b=_0x4bffdf['plugins']['get']('CommentsRepository');this['listenTo'](_0x5db46b,'addComment',(_0x52be65,{threadId:_0x500ff7})=>{const _0x46096b=this['_suggestions']['get'](_0x500ff7);_0x46096b&&_0x46096b['commentThread']&&0x1===_0x46096b['commentThread']['length']&&this['_updateSuggestionData'](_0x500ff7,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5db46b,'removeComment',(_0x32bac6,{threadId:_0xb76710})=>{const _0x4b3ef8=this['_suggestions']['get'](_0xb76710);_0x4b3ef8&&_0x4b3ef8['commentThread']&&!_0x4b3ef8['commentThread']['length']&&this['_updateSuggestionData'](_0xb76710,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x3a49db){if(this['_adapter'])throw new _0x509c53('track-changes-adapter-already-set',this);this['_adapter']=_0x3a49db;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3cd2e0=!0x1,toJSON:_0x1eb460=!0x1}={}){const _0x5154d1=[];for(const _0x4474d3 of this['_suggestions']['values']())_0x3cd2e0&&!_0x4474d3['isInContent']||_0x5154d1['push'](_0x4474d3);return _0x1eb460?_0x5154d1['map'](_0x4bee62=>_0x4bee62['toJSON']()):_0x5154d1;}['getSuggestion'](_0x314aeb){const _0x41efa2=this['_suggestions']['get'](_0x314aeb);if(!_0x41efa2)throw new _0x509c53('track-changes-suggestion-not-found',this);return _0x41efa2;}['hasSuggestion'](_0x43c5a0){return this['_suggestions']['has'](_0x43c5a0);}['addSuggestionData'](_0x54d518){const {authorId:_0x3ca82a,id:_0x4120d5,attributes:_0x3f84fe}=_0x54d518,[_0x130a71,_0x52dee8]=_0x54d518['type']['split'](':'),_0x29dfc6=this['_suggestions']['get'](_0x4120d5)||this['_createSuggestion'](_0x130a71,_0x52dee8,_0x4120d5,_0x3ca82a,_0x3f84fe);if(this['_addThreadToSuggestion'](_0x29dfc6),this['_checkSuggestionCorrectness'](_0x29dfc6,_0x130a71,_0x52dee8||null,_0x3ca82a),_0x29dfc6['createdAt']=_0x54d518['createdAt'],_0x29dfc6['_isDataLoaded']=!0x0,_0x3f84fe&&_0x3f84fe['@external']){const _0x5f51c4=_0x3f84fe['@external'],_0x4a3240=this['_getExternalAuthor'](_0x5f51c4['authorName']);_0x29dfc6['authoredAt']=_0x5f51c4['createdAt'],_0x29dfc6['author']=_0x4a3240,_0x29dfc6['isExternal']=!0x0;}else _0x29dfc6['authoredAt']=_0x54d518['createdAt'];switch(_0x54d518['data']&&(_0x29dfc6['data']=_0x54d518['data']),_0x54d518['attributes']&&(_0x29dfc6['attributes']=_0x54d518['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x29dfc6['_saved']=!0x0),this['_suggestionState']['get'](_0x29dfc6)){case'notReady':this['_suggestionState']['set'](_0x29dfc6,'dataReady');break;case'markerReady':_0x29dfc6['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x29dfc6])),this['_refreshSuggestionsChain'](new Set([_0x29dfc6])),this['_suggestionState']['set'](_0x29dfc6,'ready'),this['fire']('suggestionLoaded',_0x29dfc6)):this['_suggestionState']['set'](_0x29dfc6,'removed');}return _0x29dfc6;}['acceptSuggestion'](_0x54595e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4f03bb of _0x54595e['getAllAdjacentSuggestions']())_0x4f03bb['accept']();});});}['discardSuggestion'](_0xc69239){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1ac615 of _0xc69239['getAllAdjacentSuggestions']())_0x1ac615['discard']();});});}['enableCommand'](_0x5cd94f,_0x57c119){const _0x788dec=this['editor']['commands']['get'](_0x5cd94f);if(!_0x788dec)throw new _0x509c53('track-changes-command-not-found',this,{'commandName':_0x5cd94f});if(this['_enabledCommands']['has'](_0x788dec))throw new _0x509c53('track-changes-enable-command-twice',this,{'commandName':_0x5cd94f});this['_enabledCommands']['add'](_0x788dec),_0x57c119&&_0x788dec['on']('execute',(_0x5e6b4b,_0x586773)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x586773['length']>0x0&&_0x586773[_0x586773['length']-0x1]&&_0x586773[_0x586773['length']-0x1]['forceDefaultExecution']?_0x586773['pop']():(_0x5e6b4b['return']=_0x57c119((..._0x5659bf)=>_0x788dec['execute'](..._0x5659bf,{'forceDefaultExecution':!0x0}),..._0x586773),_0x5e6b4b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x34b2df){let _0x3cecab,_0x26a33d;const _0x20bd88=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3cecab=_0x34b2df();}catch(_0x565e21){_0x26a33d=_0x565e21;}return _0x20bd88||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x26a33d&&_0x509c53['rethrowUnexpectedError'](_0x26a33d,this),_0x3cecab;}['markInsertion'](_0x4dbe6c,_0x5d96aa=null,_0x10b687={}){if(_0x4dbe6c['isCollapsed'])return null;const _0x4f5df4=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x35f458,meta:_0x4221de}of this['_findSuggestions'](_0x4dbe6c,'insertion'))if(_0x4221de['isOwn']){if(!_0x4221de['isNextTo']){if(_0x4221de['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x35f458,_0x10b687))continue;return _0x35f458;}if(qt(_0x35f458,_0x10b687))return _0x35f458;this['_breakSuggestionMarker'](_0x35f458,_0x4dbe6c['start'],_0x4dbe6c['end']);break;}if(_0x5d96aa==_0x35f458['subType']&&qt(_0x35f458,_0x10b687)){const _0x4276f2=_0x35f458['getFirstRange']();return _0x4276f2['start']['isEqual'](_0x4dbe6c['end'])?this['_setSuggestionRange'](_0x35f458,this['_model']['createRange'](_0x4dbe6c['start'],_0x4276f2['end'])):this['_setSuggestionRange'](_0x35f458,this['_model']['createRange'](_0x4276f2['start'],_0x4dbe6c['end'])),_0x35f458;}}const _0x594f92=_0x48a685(),_0x14847e=_0x4f5df4['id'],_0x3edd8a=_0x5d96aa?'insertion:'+_0x5d96aa:'insertion',_0x117782=this['_setSuggestionData']({'id':_0x594f92,'type':_0x3edd8a,'createdAt':new Date(),'authorId':_0x14847e,'attributes':_0x10b687});return this['_addSuggestionMarker'](_0x3edd8a,_0x594f92,_0x14847e,_0x4dbe6c),_0x117782;}['markMultiRangeInsertion'](_0x20501c,_0x355f2b='multi',_0x2c9e98={}){const _0x3fdb8e=this['editor']['plugins']['get']('Users')['me'],_0x69e460=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x355f2b,'join');for(const _0x303765 of this['getSuggestions']())if(_0x303765['author']['id']==_0x3fdb8e['id']&&'insertion'==_0x303765['type']&&_0x303765['subType']==_0x355f2b&&qt(_0x303765,_0x2c9e98)&&(_0x69e460(_0x303765['getRanges'](),_0x20501c)||_0x69e460(_0x20501c,_0x303765['getRanges']()))){for(const _0x321106 of _0x20501c)_0x303765['addRange'](_0x321106);return _0x303765;}for(const {suggestion:_0xf91134,meta:_0x3f8246}of this['_findSuggestions'](_0x20501c,'insertion')){if(!_0x3f8246['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3f8246['containsRangeInObject'])continue;if(!qt(_0xf91134,_0x2c9e98))continue;let _0x33a57e=!0x0;for(const _0x18b8f0 of _0xf91134['getRanges']())for(const _0x86c602 of _0x20501c)if(!_0x18b8f0['containsRange'](_0x86c602)){_0x33a57e=!0x1;break;}if(_0x33a57e)return _0xf91134;}const _0x57a044=_0x48a685(),_0x15603d=_0x3fdb8e['id'],_0x2423de='insertion:'+_0x355f2b,_0x28768c=this['_setSuggestionData']({'id':_0x57a044,'type':_0x2423de,'createdAt':new Date(),'authorId':_0x15603d,'attributes':_0x2c9e98});for(const _0x4954c2 of _0x20501c)this['_addSuggestionMarker'](_0x2423de,_0x57a044,_0x15603d,_0x4954c2,u['getMultiRangeId']());return _0x28768c;}['markInlineFormat'](_0x207cf9,_0x5b67c6,_0x4d5e1f=null,_0x1ee666={}){if(_0x4d5e1f=_0x4d5e1f||Gt(_0x5b67c6),_0x207cf9['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4aa3b9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4d5e1f,'accept');return this['forceDefaultExecution'](()=>_0x4aa3b9([_0x207cf9],_0x5b67c6,_0x1ee666)),null;}const _0x212f53=this['editor']['plugins']['get']('Users')['me'],_0x190590=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x429fec,meta:_0x4cb9eb}of this['_findSuggestions'](_0x207cf9,'insertion'))_0x4cb9eb['isOwn']&&!_0x4cb9eb['isInsideObject']&&_0x190590['push'](..._0x429fec['getRanges']());}const _0x211fce=function(_0x26394f,_0x5af2e1){const _0x4623d6=[];for(const _0x5604d8 of _0x5af2e1){const _0x453b70=_0x26394f['getIntersection'](_0x5604d8);_0x453b70&&_0x4623d6['push'](_0x453b70);}return _0x4623d6;}(_0x207cf9,_0x190590),_0x1ef30f=function(_0x264ecb,_0xf263ed){const _0x4f3748=[_0x264ecb];for(const _0x5d60c7 of _0xf263ed){let _0x243f19=0x0;for(;_0x243f19<_0x4f3748['length'];){const _0x3a8b0e=_0x4f3748[_0x243f19]['getDifference'](_0x5d60c7);_0x4f3748['splice'](_0x243f19,0x1,..._0x3a8b0e),_0x243f19+=_0x3a8b0e['length'];}}return _0x4f3748;}(_0x207cf9,_0x190590);_0x211fce['length']&&this['_model']['change'](()=>{for(const _0x1a6508 of _0x211fce){const _0x34e141=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4d5e1f,'accept');this['forceDefaultExecution'](()=>_0x34e141([_0x1a6508],_0x5b67c6,_0x1ee666));}});for(const _0x27346b of _0x1ef30f){let _0x3a2d7a=null,_0x35490c=_0x27346b['start'],_0x50e152=_0x27346b['end'];for(const {suggestion:_0x268169,meta:_0x2bd40a}of this['_findSuggestions'](_0x27346b,'formatInline')){if(!_0x2bd40a['isOwn'])continue;if(_0x268169['subType']!=_0x4d5e1f)continue;if(!qt(_0x268169,_0x1ee666))continue;const _0x11b4af=_0x268169['getFirstRange']();if(_0x11b4af['containsRange'](_0x27346b,!0x0))return null;_0x35490c=_0x35490c['isBefore'](_0x11b4af['start'])?_0x35490c:_0x11b4af['start'],_0x50e152=_0x50e152['isAfter'](_0x11b4af['end'])?_0x50e152:_0x11b4af['end'],_0x3a2d7a?_0x11b4af['start']['isBefore'](_0x3a2d7a['getFirstRange']()['start'])?(_0x3a2d7a['removeMarkers'](),_0x3a2d7a=_0x268169):_0x268169['removeMarkers']():_0x3a2d7a=_0x268169;}const _0x5caa1b=this['_model']['createRange'](_0x35490c,_0x50e152);if(_0x3a2d7a)this['_setSuggestionRange'](_0x3a2d7a,_0x5caa1b);else{const _0x5f0a10=_0x48a685(),_0xa677e3=_0x212f53['id'];this['_setSuggestionData']({'id':_0x5f0a10,'type':'formatInline:'+_0x4d5e1f,'data':_0x5b67c6,'createdAt':new Date(),'authorId':_0xa677e3,'attributes':_0x1ee666}),this['_addSuggestionMarker']('formatInline:'+_0x4d5e1f,_0x5f0a10,_0xa677e3,_0x5caa1b);}}return null;}['markBlockFormat'](_0x205092,_0x363741,_0x507a73=[],_0x408b0f=null,_0x338526={}){_0x363741['formatGroupId']||(_0x363741['formatGroupId']=_0x363741['commandName']),_0x363741['multipleBlocks']=_0x205092['is']('range'),_0x408b0f=_0x408b0f||Gt(_0x363741);const _0x4d839f=_0x507a73['map'](_0x3ade30=>Lt(_0x3ade30,this['_model'])),_0x33df45=_0x205092['is']('range')?_0x205092:Lt(_0x205092,this['_model']);if('never'===this['_trackFormatChanges']){const _0x14f15a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x408b0f,'accept');return this['forceDefaultExecution'](()=>_0x14f15a([_0x33df45],_0x363741,_0x338526)),null;}_0x4d839f['push'](_0x33df45);let _0x429b43=!0x0;for(const _0x259579 of _0x4d839f)if(!this['_rangeIsInLocalUserInsertion'](_0x259579)){_0x429b43=!0x1;break;}if(_0x429b43&&'always'!==this['_trackFormatChanges']){const _0x40a23a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x408b0f,'accept');return this['forceDefaultExecution'](()=>_0x40a23a([_0x33df45],_0x363741,_0x338526)),null;}let _0x149c23=null,_0x31559d=_0x33df45['start'],_0x400701=_0x33df45['end'];for(const {suggestion:_0x161677,meta:_0x43d6ab}of this['_findSuggestions'](_0x33df45,'formatBlock')){if(!_0x43d6ab['isOwn'])continue;if(_0x43d6ab['isNextTo']||_0x43d6ab['containsRangeInObject']||_0x43d6ab['isInsideObject'])continue;if(_0x161677['data']['formatGroupId']!=_0x363741['formatGroupId'])continue;if(!qt(_0x161677,_0x338526))continue;const _0x3ddc4c=_0x161677['getFirstRange']();if(_0x161677['subType']==_0x408b0f){if(_0x3ddc4c['containsRange'](_0x33df45,!0x0))return null;_0x31559d=_0x31559d['isBefore'](_0x3ddc4c['start'])?_0x31559d:_0x3ddc4c['start'],_0x400701=_0x400701['isAfter'](_0x3ddc4c['end'])?_0x400701:_0x3ddc4c['end'],_0x149c23?_0x3ddc4c['start']['isBefore'](_0x149c23['getFirstRange']()['start'])?(_0x149c23['removeMarkers'](),_0x149c23=_0x161677):_0x161677['removeMarkers']():_0x149c23=_0x161677;}else{const _0x1085c6=_0x33df45['getIntersection'](_0x3ddc4c);this['_cutOutSuggestionMarker'](_0x161677,_0x1085c6);}}const _0x308f82=this['editor']['plugins']['get']('Users')['me'],_0x588065=_0x48a685(),_0x54eee7=_0x308f82['id'];if(_0x149c23)return this['_setSuggestionRange'](_0x149c23,this['_model']['createRange'](_0x31559d,_0x400701)),_0x149c23;{const _0x5f417b=this['_setSuggestionData']({'id':_0x588065,'type':'formatBlock:'+_0x408b0f,'data':_0x363741,'createdAt':new Date(),'authorId':_0x54eee7,'attributes':_0x338526});return this['_addSuggestionMarker']('formatBlock:'+_0x408b0f,_0x588065,_0x54eee7,this['_model']['createRange'](_0x31559d,_0x400701)),_0x5f417b;}}['markMultiRangeBlockFormat'](_0x15239d,_0x5632a1,_0x5c9db3=[],_0x538209=null,_0x62800b={}){_0x5632a1['formatGroupId']||(_0x5632a1['formatGroupId']=_0x5632a1['commandName']);const _0x33c1a8=_0x15239d[0x0];_0x5632a1['multipleBlocks']=_0x33c1a8['is']('range'),_0x538209=_0x538209||Gt(_0x5632a1);const _0x51b7c6=_0x5c9db3['map'](_0x11b346=>Lt(_0x11b346,this['_model'])),_0x1fbb72=_0x33c1a8['is']('range')?_0x15239d:_0x15239d['map'](_0x137e35=>Lt(_0x137e35,this['_model']));if('never'===this['_trackFormatChanges']){const _0x44258b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x538209,'accept');return this['forceDefaultExecution'](()=>_0x44258b(_0x1fbb72,_0x5632a1,_0x62800b)),null;}_0x51b7c6['push'](..._0x1fbb72);let _0x1a6fff=!0x0;for(const _0x1848ba of _0x51b7c6)if(!this['_rangeIsInLocalUserInsertion'](_0x1848ba)){_0x1a6fff=!0x1;break;}if(_0x1a6fff&&'always'!==this['_trackFormatChanges']){const _0x489d70=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x538209,'accept');return this['forceDefaultExecution'](()=>_0x489d70(_0x1fbb72,_0x5632a1,_0x62800b)),null;}const _0x383803=this['editor']['plugins']['get']('Users')['me'];for(const _0x58e2c9 of this['getSuggestions']()){if(_0x58e2c9['author']['id']!=_0x383803['id'])continue;if('formatBlock'!=_0x58e2c9['type']||_0x58e2c9['data']['formatGroupId']!=_0x5632a1['formatGroupId'])continue;if(!qt(_0x58e2c9,_0x62800b))continue;const _0x8d0c99=_0x58e2c9['subType']==_0x538209;for(let _0x5c72e3=0x0;_0x5c72e3<_0x1fbb72['length'];_0x5c72e3++){const _0x498dad=_0x1fbb72[_0x5c72e3];for(const _0xa3c0a3 of _0x58e2c9['getMarkers']()){const _0x4473dd=_0xa3c0a3['getRange']();if(_0x498dad['isEqual'](_0x4473dd)){_0x8d0c99?(_0x1fbb72['splice'](_0x5c72e3,0x1),_0x5c72e3--):_0x58e2c9['removeMarker'](_0xa3c0a3['name']);break;}}}}if(0x0==_0x1fbb72['length'])return null;const _0x5480fd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x538209,'join');for(const _0x9fcf of this['getSuggestions']())if(_0x9fcf['author']['id']==_0x383803['id']&&'formatBlock'==_0x9fcf['type']&&_0x9fcf['data']['formatGroupId']==_0x5632a1['formatGroupId']&&_0x9fcf['subType']==_0x538209&&qt(_0x9fcf,_0x62800b)&&(_0x5480fd(_0x9fcf['getRanges'](),_0x1fbb72)||_0x5480fd(_0x1fbb72,_0x9fcf['getRanges']()))){for(const _0x4ed623 of _0x1fbb72)_0x9fcf['addRange'](_0x4ed623);return _0x9fcf;}const _0x171b17=_0x48a685(),_0x349d5f=_0x383803['id'],_0x1005eb='formatBlock:'+_0x538209,_0x148d65=this['_setSuggestionData']({'id':_0x171b17,'type':_0x1005eb,'data':_0x5632a1,'createdAt':new Date(),'authorId':_0x349d5f,'attributes':_0x62800b});for(const _0x221f0d of _0x1fbb72)this['_addSuggestionMarker'](_0x1005eb,_0x171b17,_0x349d5f,_0x221f0d,u['getMultiRangeId']());return _0x148d65;}['markDeletion'](_0xfe9866,_0x5c3a29=null,_0x34184e={}){if(_0xfe9866['isCollapsed'])return null;const _0x467d12=this['editor']['plugins']['get']('Users')['me'],_0x442b6e=new _0x5978fe(_0xfe9866['start'],_0xfe9866['end']);for(const {suggestion:_0x3e9c0a,meta:_0x1a2f6e}of this['_findSuggestions'](_0x442b6e,'insertion'))if(_0x1a2f6e['isOwn']&&!_0x1a2f6e['isNextTo']){if(_0x3e9c0a['isMultiRange']){const _0x545557=_0x3e9c0a['getRanges']()['filter'](_0x3516cc=>'$graveyard'!=_0x3516cc['root']['rootName']);_0x545557['every'](_0x5a94bb=>_0x442b6e['containsRange'](_0x5a94bb,!0x0))&&_0x3e9c0a['discard']();if(_0x545557['some'](_0x3a2f9e=>_0x3a2f9e['containsRange'](_0x442b6e,!0x0))){const _0xd7e228=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c3a29,'accept');return this['forceDefaultExecution'](()=>_0xd7e228([_0x442b6e],null,_0x34184e)),null;}}else{const _0x12c52b=_0x442b6e['getIntersection'](_0x3e9c0a['getFirstRange']());null!==_0x12c52b&&_0x3e9c0a['_onDiscard']([_0x12c52b],null,_0x34184e);}}if(_0x442b6e['detach'](),_0x442b6e['isCollapsed']||'$graveyard'==_0x442b6e['root']['rootName'])return null;let _0x19ebab=null,_0x582a53=_0x442b6e['start'],_0x5aa9d6=_0x442b6e['end'];const _0x37f20b=this['_findSuggestions'](_0x442b6e,'deletion');for(const {suggestion:_0x25f31e,meta:_0x1e9446}of _0x37f20b){const _0x14a94f=this['_model']['createRange'](_0x582a53,_0x5aa9d6);if(_0x1e9446['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1e9446['containsRangeInObject']&&!_0x1e9446['isInsideObject'])){if(_0x25f31e['isMultiRange']){if(!qt(_0x25f31e,_0x34184e))continue;let _0x39be55=!0x0;for(const _0xa5efa3 of _0x25f31e['getRanges']()){if(_0xa5efa3['containsRange'](_0x14a94f,!0x0))return _0x25f31e;_0x14a94f['containsRange'](_0xa5efa3)||(_0x39be55=!0x1);}_0x39be55&&_0x25f31e['discard']();}else{const _0x12d9f8=_0x25f31e['getFirstRange']();if(_0x12d9f8['containsRange'](_0x14a94f,!0x0))return _0x25f31e;if(!qt(_0x25f31e,_0x34184e)){_0x14a94f['containsRange'](_0x12d9f8)?_0x25f31e['removeMarkers']():_0x12d9f8['containsPosition'](_0x582a53)?_0x582a53=_0x12d9f8['end']:_0x12d9f8['containsPosition'](_0x5aa9d6)&&(_0x5aa9d6=_0x12d9f8['start']);continue;}_0x582a53=_0x582a53['isBefore'](_0x12d9f8['start'])?_0x582a53:_0x12d9f8['start'],_0x5aa9d6=_0x5aa9d6['isAfter'](_0x12d9f8['end'])?_0x5aa9d6:_0x12d9f8['end'],_0x34184e=Object['assign']({},_0x25f31e['attributes']),_0x19ebab?_0x12d9f8['start']['isBefore'](_0x19ebab['getFirstRange']()['start'])?(_0x19ebab['removeMarkers'](),_0x19ebab=_0x25f31e):_0x25f31e['removeMarkers']():_0x19ebab=_0x25f31e;}}}if(_0x19ebab)return this['_setSuggestionRange'](_0x19ebab,this['_model']['createRange'](_0x582a53,_0x5aa9d6)),_0x19ebab;{const _0x2a5b60=_0x48a685(),_0x2dc052=this['_model']['createRange'](_0x582a53,_0x5aa9d6),_0x156a36=_0x467d12['id'],_0x2a5a35=_0x5c3a29?'deletion:'+_0x5c3a29:'deletion',_0x428ef9=this['_setSuggestionData']({'id':_0x2a5b60,'type':_0x2a5a35,'createdAt':new Date(),'authorId':_0x156a36,'attributes':_0x34184e});return this['_addSuggestionMarker'](_0x2a5a35,_0x2a5b60,_0x156a36,_0x2dc052),_0x428ef9;}}['markMultiRangeDeletion'](_0xe753de,_0x16bdb2='multi',_0x8ccd18={}){const _0x6a42fd=this['editor']['plugins']['get']('Users')['me'],_0x125726=_0xe753de['map'](_0x32653b=>new _0x5978fe(_0x32653b['start'],_0x32653b['end'])),_0x32ce95=new Set();for(const {suggestion:_0x1180dd,meta:_0x44b8bb}of this['_findSuggestions'](_0x125726,'insertion'))_0x44b8bb['isOwn']&&!_0x44b8bb['isNextTo']&&_0x32ce95['add'](_0x1180dd);for(const _0x56515d of _0x32ce95)if(_0x56515d['isMultiRange']){const _0x163fd1=_0x56515d['getRanges']();(!_0x56515d['attributes']||!_0x56515d['attributes']['skipNestingCheck'])&&(_0x163fd1['every'](_0x236e6a=>_0x125726['some'](_0x5a3a80=>_0x5a3a80['containsRange'](_0x236e6a,!0x0)))&&_0x56515d['discard']());if(_0x125726['every'](_0x301ba5=>_0x163fd1['some'](_0x57bb66=>_0x57bb66['containsRange'](_0x301ba5,!0x0)))){const _0x1248e3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x16bdb2,'accept');return this['forceDefaultExecution'](()=>_0x1248e3(_0xe753de,null,_0x8ccd18)),null;}}else{const _0x58e076=_0x56515d['getFirstRange']();_0x125726['some'](_0x413042=>_0x413042['containsRange'](_0x58e076,!0x0))&&_0x56515d['discard']();if(_0x125726['every'](_0x617e9f=>_0x58e076['containsRange'](_0x617e9f,!0x0))){const _0x391730=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x16bdb2,'accept');return this['forceDefaultExecution'](()=>_0x391730(_0x125726,null,_0x8ccd18)),null;}}const _0x1cba7a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x16bdb2,'join');let _0x40cd8c=null;for(const _0x174f27 of this['getSuggestions']())if(_0x174f27['author']['id']==_0x6a42fd['id']&&_0x174f27['isInContent']&&'deletion'==_0x174f27['type']&&_0x174f27['subType']==_0x16bdb2&&qt(_0x174f27,_0x8ccd18)&&(_0x1cba7a(_0x174f27['getRanges'](),_0x125726)||_0x1cba7a(_0x125726,_0x174f27['getRanges']()))){if(_0x40cd8c){if(_0x174f27['commentThread']&&_0x174f27['commentThread']['length'])continue;for(const _0x4ccc27 of _0x174f27['getRanges']())_0x40cd8c['isIntersectingWithRange'](_0x4ccc27)||_0x40cd8c['addRange'](_0x4ccc27);_0x174f27['removeMarkers']();}else{_0x40cd8c=_0x174f27;for(const _0x3b29c3 of _0x125726)_0x174f27['isIntersectingWithRange'](_0x3b29c3)||_0x174f27['addRange'](_0x3b29c3);}}if(_0x40cd8c)return _0x40cd8c;_0x32ce95['clear']();for(const {suggestion:_0x28a49e,meta:_0x3a4d1b}of this['_findSuggestions'](_0x125726,'deletion'))_0x3a4d1b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3a4d1b['containsRangeInObject']&&!_0x3a4d1b['isInsideObject'])&&qt(_0x28a49e,_0x8ccd18)&&_0x32ce95['add'](_0x28a49e);for(const _0x3eec55 of _0x32ce95){const _0x183e5f=_0x3eec55['getRanges']();if(!_0x8ccd18||!_0x8ccd18['skipNestingCheck']){if(_0x125726['every'](_0x139cb8=>_0x183e5f['some'](_0x2507d9=>_0x2507d9['containsRange'](_0x139cb8,!0x0))))return _0x3eec55;}(!_0x3eec55['attributes']||!_0x3eec55['attributes']['skipNestingCheck'])&&(_0x183e5f['every'](_0x2794e7=>_0x125726['some'](_0xc834c=>_0xc834c['containsRange'](_0x2794e7,!0x0)))&&_0x3eec55['discard']());}const _0x1b6022=_0x48a685(),_0xd1192e=_0x6a42fd['id'],_0x482097='deletion:'+_0x16bdb2,_0x1a7d15=this['_setSuggestionData']({'id':_0x1b6022,'type':_0x482097,'createdAt':new Date(),'authorId':_0xd1192e,'attributes':_0x8ccd18});for(const _0x185f5e of _0x125726)_0x185f5e['detach'](),_0x185f5e['isCollapsed']||'$graveyard'==_0x185f5e['root']['rootName']||this['_addSuggestionMarker'](_0x482097,_0x1b6022,_0xd1192e,_0x185f5e,u['getMultiRangeId']());return _0x1a7d15;}['markAttributeChange'](_0x421a51,_0x32ae10,_0x483e3f,_0x18c4e2,_0x10e196){if(_0x421a51['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3d8424=this['editor']['plugins']['get']('Users')['me']['id'],_0x5eacc2=Array['from'](this['_suggestions']['values']())['filter'](_0x1032da=>'attribute'==_0x1032da['type']&&_0x1032da['data']['key']==_0x32ae10&&_0x1032da['isIntersectingWithRange'](_0x421a51));if('default'===this['_trackFormatChanges']){const _0x190a3c=this['_findSuggestions'](_0x421a51,'insertion')['filter'](({meta:_0x41046a})=>_0x41046a['isOwn']&&!_0x41046a['isInsideObject']&&!_0x41046a['isNextTo'])['map'](({suggestion:_0x8ae80a})=>_0x8ae80a);_0x5eacc2['unshift'](..._0x190a3c);}const _0x2831c0=new Map([[_0x421a51,_0x483e3f]]);for(const _0x15d49d of _0x5eacc2){const _0x5874ae='attribute'==_0x15d49d['type']?_0x15d49d['data']['oldValue']:void 0x0,_0x2672a3=_0x15d49d['getFirstRange'](),_0x3a7d0b=Array['from'](_0x2831c0['keys']())['find'](_0x3c0420=>_0x3c0420['isIntersecting'](_0x2672a3));if(!_0x3a7d0b)continue;const _0x3744f4=_0x3a7d0b['getDifference'](_0x2672a3);this['_isBlockAttribute'](_0x32ae10)&&'insertion'==_0x15d49d['type']&&0x0!=_0x3744f4['length']||(_0x2831c0['delete'](_0x3a7d0b),_0x3744f4['forEach'](_0x4734bf=>{_0x2831c0['set'](_0x4734bf,_0x483e3f);}),'insertion'!=_0x15d49d['type']&&_0x5874ae!=_0x18c4e2&&_0x2831c0['set'](_0x3a7d0b['getIntersection'](_0x2672a3),_0x5874ae));}const _0x27e10f=[];for(const [_0x41cade,_0x355a1e]of _0x2831c0){const _0x30904c=_0x48a685(),_0x4e2a65={'key':_0x32ae10,'oldValue':_0x355a1e,'newValue':_0x18c4e2};_0x32ae10['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':_0x32ae10});const _0xca056e=('attribute:'+(_0x32ae10+'|'+Gt({'newValue':_0x18c4e2})))['substring'](0x0,0x3c),_0x483fc8=this['_setSuggestionData']({'id':_0x30904c,'type':_0xca056e,'data':_0x4e2a65,'createdAt':new Date(),'authorId':_0x3d8424,'attributes':_0x10e196});_0x27e10f['push'](_0x483fc8),this['_addSuggestionMarker'](_0xca056e,_0x30904c,_0x3d8424,_0x41cade);}return _0x27e10f;}['enableDefaultAttributesIntegration'](_0x1b5442){this['enableCommand'](_0x1b5442,(_0x42b353,..._0xbdad93)=>{this['_recordAttributeChanges'](()=>{_0x42b353(..._0xbdad93);});});}['registerBlockAttribute'](_0x468d0c){this['_blockAttributeKeys']['add'](_0x468d0c);}['registerInlineAttribute'](_0x3684dd){this['_inlineAttributeKeys']['add'](_0x3684dd);}['_getAttributeKey'](_0x3243e6){return'attribute'==_0x3243e6['type']?_0x3243e6['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x17db62,_0x57479d){const _0x2bded7=_0x17db62['getFirstMarker']();this['_model']['change'](_0x15e270=>{_0x15e270['updateMarker'](_0x2bded7,{'range':_0x57479d});});}['_addThreadToSuggestion'](_0x1cb5dd){const _0x2411ed=_0x1cb5dd['id'],_0x137264=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2411ed)||this['_commentsRepository']['addCommentThread']({'channelId':_0x137264,'threadId':_0x2411ed,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4ae2c0=this['_commentsRepository']['getCommentThread'](_0x2411ed);_0x4ae2c0['unbind']('isRemovable'),_0x4ae2c0['isRemovable']=!0x1,_0x1cb5dd['commentThread']=_0x4ae2c0;}['_checkSuggestionCorrectness'](_0xb0996d,_0x1d00c7,_0x1a0302,_0x10eded){if(_0xb0996d['type']!=_0x1d00c7||_0xb0996d['subType']!=_0x1a0302||_0xb0996d['creator']['id']!=_0x10eded)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x509c53('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5104b7,_0x379eb3){const _0x167422=_0x5104b7['getFirstRange']();if(_0x379eb3['isEqual'](_0x167422))_0x5104b7['removeMarkers']();else{if(_0x167422['containsRange'](_0x379eb3)){const _0x164758=this['_model']['createPositionAt'](_0x379eb3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5104b7,this['_model']['createRange'](_0x167422['start'],_0x164758));const _0x3f3638=_0x48a685(),_0x3a7b2e=_0x5104b7['creator']['id'],_0x210e81=_0x5104b7['type']+':'+_0x5104b7['subType'];this['_setSuggestionData']({'id':_0x3f3638,'type':_0x210e81,'createdAt':new Date(),'authorId':_0x3a7b2e,'data':_0x5104b7['data'],'attributes':_0x5104b7['attributes']});const _0x41468e=this['_model']['createPositionAt'](_0x379eb3['end']['parent'],'after'),_0x15281e=this['_model']['createRange'](_0x41468e,_0x167422['end']);this['_addSuggestionMarker'](_0x210e81,_0x3f3638,_0x3a7b2e,_0x15281e);}else{if(_0x167422['containsPosition'](_0x379eb3['start'])){const _0x1ca595=this['_model']['createPositionAt'](_0x379eb3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5104b7,this['_model']['createRange'](_0x167422['start'],_0x1ca595));}else{const _0x7ffa2a=this['_model']['createPositionAt'](_0x379eb3['end']['parent'],'after');this['_setSuggestionRange'](_0x5104b7,this['_model']['createRange'](_0x7ffa2a,_0x167422['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xe89c31){for(const {suggestion:_0x56b802,meta:_0x3b618e}of this['_findSuggestions'](_0xe89c31,'insertion')){if(!_0x3b618e['isOwn'])continue;const _0x5ee0a7=_0x56b802['getRanges']();for(const _0x5a18fa of _0x5ee0a7)if(!_0xe89c31['getDifference'](_0x5a18fa)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x43ede0){const _0x3dbff7=this['editor']['plugins']['get']('Users')['getUser'](_0x43ede0);if(!_0x3dbff7)throw new _0x509c53('track-changes-user-not-found',this);return _0x3dbff7;}['_getExternalAuthor'](_0xa98748){const _0x334d1f=this['editor']['plugins']['get']('Users'),_0x11e37d=_0x43d6df('external:'+_0xa98748),_0x5e6c77=_0x334d1f['getUser'](_0x11e37d);return _0x5e6c77||_0x334d1f['addUser']({'id':_0x11e37d,'name':_0xa98748});}['_createSuggestion'](_0x339688,_0x4454f3,_0x31c5d4,_0x11aeac,_0x28f98e){const _0x12334a=this['_getAuthorFromId'](_0x11aeac),_0x2221a6=this['_suggestionFactory']['buildSuggestion'](_0x339688,_0x4454f3,_0x31c5d4,_0x12334a,_0x28f98e,_0x914c70=>{this['_updateSuggestionData'](_0x31c5d4,{'attributes':_0x914c70});const _0x39a11a=this['getSuggestion'](_0x31c5d4);this['_joinWithAdjacentSuggestions'](new Set([_0x39a11a])),this['_refreshSuggestionsChain'](new Set([_0x39a11a]));});return this['listenTo'](_0x2221a6,'accept',()=>{this['_updateSuggestionData'](_0x31c5d4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2221a6,'discard',()=>{this['_updateSuggestionData'](_0x31c5d4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x31c5d4,_0x2221a6),this['_suggestionState']['set'](_0x2221a6,'notReady'),_0x2221a6;}['_splitMarkerName'](_0x5a5d6a){const _0x4a05ac=_0x5a5d6a['split'](':');return{'group':_0x4a05ac[0x0],'type':_0x4a05ac[0x1],'subType':_0x4a05ac['length']>=0x5?_0x4a05ac[0x2]:null,'id':_0x4a05ac['length']<0x5?_0x4a05ac[0x2]:_0x4a05ac[0x3],'authorId':_0x4a05ac['length']<0x5?_0x4a05ac[0x3]:_0x4a05ac[0x4],'markerCount':0x6==_0x4a05ac['length']?_0x4a05ac[0x5]:null};}['_breakSuggestionMarker'](_0x1bd8a0,_0x3d6b38,_0x256b85){const _0x1861f2=_0x1bd8a0['getFirstRange'](),_0x28a01d=_0x1861f2['start'],_0x4e7ac8=_0x1861f2['end'];this['_setSuggestionRange'](_0x1bd8a0,this['_model']['createRange'](_0x28a01d,_0x3d6b38));const _0x1e6cd3=_0x48a685(),_0x2aa757=_0x1bd8a0['creator']['id'],_0x41e7f9=_0x1bd8a0['type']+(_0x1bd8a0['subType']?':'+_0x1bd8a0['subType']:'');this['_setSuggestionData']({'id':_0x1e6cd3,'type':_0x41e7f9,'createdAt':new Date(),'authorId':_0x2aa757,'originalSuggestionId':_0x1bd8a0['id'],'attributes':_0x1bd8a0['attributes'],'data':_0x1bd8a0['data']});const _0x325414=this['_getAttributeKey'](_0x1bd8a0);('formatBlock'==_0x1bd8a0['type']||_0x325414&&this['_isBlockAttribute'](_0x325414))&&(_0x256b85=this['_model']['createPositionBefore'](_0x256b85['parent'])),this['_addSuggestionMarker'](_0x41e7f9,_0x1e6cd3,_0x2aa757,this['_model']['createRange'](_0x256b85,_0x4e7ac8));}['_findSuggestions'](_0x233c8c,_0x15aac3=null){const _0x9694a3=[],_0x5d1721=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x233c8c)||(_0x233c8c=[_0x233c8c]);for(const _0x123820 of this['getSuggestions']()){if(!_0x123820['isInContent'])continue;if(_0x15aac3&&_0x123820['type']!=_0x15aac3)continue;let _0x29d05c=!0x1;for(const _0x231166 of _0x123820['getRanges']()){for(const _0x206fad of _0x233c8c){const _0x598253=_0x206fad['start']['isEqual'](_0x231166['end'])||_0x206fad['end']['isEqual'](_0x231166['start']);if(_0x598253||_0x206fad['getIntersection'](_0x231166)){const _0x1411a7=_0x206fad['containsRange'](_0x231166)&&Ot(this['_model']['schema'],_0x231166['start'],_0x206fad),_0x542152=_0x231166['containsRange'](_0x206fad)&&Ot(this['_model']['schema'],_0x206fad['start'],_0x231166);_0x9694a3['push']({'suggestion':_0x123820,'meta':{'isOwn':_0x5d1721==_0x123820['author'],'isNextTo':_0x598253,'isInsideObject':_0x1411a7,'containsRangeInObject':_0x542152}}),_0x29d05c=!0x0;break;}}if(_0x29d05c)break;}}return _0x9694a3;}['_addSuggestionMarker'](_0x5cb52d,_0x454a53,_0x47ee36,_0x505bc0,_0x3fdab8){this['_model']['change'](_0x6e826e=>{let _0x2bff41='suggestion:'+_0x5cb52d+':'+_0x454a53+':'+_0x47ee36;_0x3fdab8&&(_0x2bff41=_0x2bff41+':'+_0x3fdab8),_0x6e826e['addMarker'](_0x2bff41,{'range':_0x505bc0,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1439fb){const _0x16db02=_0x1439fb['previous'],_0x3af6b1=_0x1439fb['next'];_0x1439fb['previous']=null,_0x1439fb['next']=null,null!=_0x16db02&&_0x16db02['next']==_0x1439fb&&(_0x16db02['next']=_0x3af6b1),null!=_0x3af6b1&&_0x3af6b1['previous']==_0x1439fb&&(_0x3af6b1['previous']=_0x16db02),'ready'==this['_suggestionState']['get'](_0x1439fb)&&(this['_suggestionState']['set'](_0x1439fb,'removed'),this['fire']('suggestionUnloaded',_0x1439fb,_0x16db02,_0x3af6b1));}['_setSuggestionData'](_0x4a3261){const _0x4a6432=_0x4a3261['id'],_0x37946c=this['addSuggestionData'](_0x4a3261);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xc05100=this['editor']['plugins']['get']('PendingActions'),_0x1c62fb=_0x37946c['hasComments'],_0x215d7e=_0x37946c['subType']?_0x37946c['type']+':'+_0x37946c['subType']:_0x37946c['type'],_0x1e463d=this['editor']['locale'],_0x317950=_0xc05100['add'](o(_0x1e463d,'PENDING_ACTION_SUGGESTION')),_0x41d60b={'id':_0x4a6432,'type':_0x215d7e,'hasComments':_0x1c62fb,'data':_0x4a3261['data']||null,'originalSuggestionId':_0x4a3261['originalSuggestionId']||null,'attributes':_0x37946c['attributes']};this['_adapter']['addSuggestion'](_0x41d60b)['then'](_0x1e88f0=>{_0x37946c['_saved']=!0x0,_0xc05100['remove'](_0x317950),_0x1e88f0&&_0x1e88f0['createdAt']&&(this['_suggestions']['get'](_0x4a6432)['createdAt']=_0x1e88f0['createdAt']);})['catch'](_0x329197=>{throw _0x332ad9('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x37946c['discard']();}),_0x37946c['stopListening'](),this['_suggestions']['delete'](_0x37946c['id']),this['_suggestionState']['delete'](_0x37946c),_0x329197;});}return _0x37946c;}['_isBlockAttribute'](_0x123167){return this['_blockAttributeKeys']['has'](_0x123167);}['_updateSuggestionData'](_0x1bcb35,_0x38c60a){const _0x51e6f4=this['editor']['plugins']['get']('PendingActions'),_0x279b0d=this['getSuggestion'](_0x1bcb35);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x279b0d['_saved']){const _0x4d44b1=_0x51e6f4['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1bcb35,_0x38c60a)['then'](()=>{_0x51e6f4['remove'](_0x4d44b1);});}else _0x279b0d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1bcb35,_0x38c60a);});}}['_getSuggestionData'](_0x431a3a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x509c53('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x431a3a);}['_handleNewSuggestionMarker'](_0x4a4ca2){const {id:_0x2285e7,type:_0x5c1a8f,subType:_0x27171f,authorId:_0xbeb595}=this['_splitMarkerName'](_0x4a4ca2),_0x1a2066=this['_suggestions']['get'](_0x2285e7)||this['_createSuggestion'](_0x5c1a8f,_0x27171f,_0x2285e7,_0xbeb595,{});switch(this['_checkSuggestionCorrectness'](_0x1a2066,_0x5c1a8f,_0x27171f,_0xbeb595),this['_suggestionState']['get'](_0x1a2066)){case'notReady':this['_getSuggestionData'](_0x2285e7)['then'](_0x2734c9=>{let _0x1e59b7=Promise['resolve']();_0x2734c9['hasComments']&&(_0x1e59b7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2285e7})),_0x1e59b7['then'](()=>{this['addSuggestionData'](_0x2734c9)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1a2066,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2285e7,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1a2066,'ready'),this['fire']('suggestionLoaded',_0x1a2066);break;case'ready':this['fire']('suggestionChanged',_0x1a2066);}return _0x1a2066['addMarkerName'](_0x4a4ca2),_0x1a2066;}['_refreshSuggestionsChain'](_0x260722){const _0x31922a=Array['from'](_0x260722),_0xbaa1a0=_0x31922a['filter'](_0x5a2ce3=>'attribute'==_0x5a2ce3['type']);this['_refreshAttributeSuggestionsChain'](_0xbaa1a0);const _0x1746ac=_0x31922a['filter'](_0x1bad1c=>!_0x1bad1c['isMultiRange']&&'attribute'!=_0x1bad1c['type']),_0x1c1135=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b51e2=>!_0x3b51e2['isMultiRange']&&'attribute'!=_0x3b51e2['type']),_0x28f28b=_0x1c1135['filter'](_0x80be9c=>!_0x260722['has'](_0x80be9c)),_0x3a5d54=new Map(_0x1c1135['map'](_0x4c94f1=>[_0x4c94f1,this['_suggestionFactory']['getSuggestionCallback'](_0x4c94f1['type'],_0x4c94f1['subType'],'chain')])),_0x239dab=new Map(_0x1c1135['map'](_0x33a2c7=>[_0x33a2c7,_0x33a2c7['getFirstRange']()])),_0x189462=new Set(),_0x9e89e0=new Set();for(let _0x44f0da=0x0;_0x44f0da<_0x1746ac['length'];_0x44f0da++)_0x54d5e1(_0x1746ac[_0x44f0da],_0x1746ac,_0x44f0da+0x1);for(let _0x3eabe7=0x0;_0x3eabe7<_0x1746ac['length'];_0x3eabe7++)_0x54d5e1(_0x1746ac[_0x3eabe7],_0x28f28b,0x0);const _0x447af0=new Set();for(let _0x28147d=0x0;_0x28147d<_0x1746ac['length'];_0x28147d++){const _0x15ce5d=_0x1746ac[_0x28147d];!_0x9e89e0['has'](_0x15ce5d)&&_0x15ce5d['previous']&&(_0x447af0['add'](_0x15ce5d['previous']),_0x15ce5d['previous']['next']===_0x15ce5d&&(_0x15ce5d['previous']['next']=null),_0x15ce5d['previous']=null),!_0x189462['has'](_0x15ce5d)&&_0x15ce5d['next']&&(_0x447af0['add'](_0x15ce5d['next']),_0x15ce5d['next']['previous']===_0x15ce5d&&(_0x15ce5d['next']['previous']=null),_0x15ce5d['next']=null);}function _0x54d5e1(_0x50dbf,_0x2bfc26,_0x1df4f8){for(let _0x46453e=_0x1df4f8;_0x46453e<_0x2bfc26['length'];_0x46453e++){const _0x322294=_0x658056(_0x50dbf,_0x2bfc26[_0x46453e]);_0x322294&&(_0x322294[0x0]['next']=_0x322294[0x1],_0x322294[0x1]['previous']=_0x322294[0x0],_0x189462['add'](_0x322294[0x0]),_0x9e89e0['add'](_0x322294[0x1]));}}function _0x658056(_0x803649,_0x4678cd){if(_0x803649['author']['id']!==_0x4678cd['author']['id'])return null;const _0x55e13b=_0x3a5d54['get'](_0x803649)(_0x803649,_0x4678cd,_0x239dab['get'](_0x803649),_0x239dab['get'](_0x4678cd));if(!_0x55e13b)return null;return _0x3a5d54['get'](_0x4678cd)(_0x803649,_0x4678cd,_0x239dab['get'](_0x803649),_0x239dab['get'](_0x4678cd))?_0x55e13b[0x1]['commentThread']&&_0x55e13b[0x1]['commentThread']['length']?null:_0x55e13b:null;}_0x447af0['size']&&this['_refreshSuggestionsChain'](_0x447af0);}['_refreshAttributeSuggestionsChain'](_0x5b1d95){if(0x0==_0x5b1d95['length'])return;const _0x1b0f04=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e5752=>'attribute'==_0x1e5752['type']&&_0x1e5752['_isDataLoaded']),_0x45326a=[],_0x340150=new Map();for(const _0x55a1b8 of _0x1b0f04){const _0x26d485=_0x43d6df(_0x55a1b8['attributes']);_0x340150['has'](_0x26d485)||(_0x340150['set'](_0x26d485,_0x45326a['length']),_0x45326a['push']([]));const _0x152ca8=_0x340150['get'](_0x26d485);_0x45326a[_0x152ca8]['push'](_0x55a1b8);}!(function(){_0x45326a['sort']((_0x19c16b,_0xb8bf86)=>{const _0x43f2b3=_0x19c16b[0x0]['createdAt'],_0x3a7915=_0xb8bf86[0x0]['createdAt'];return _0x43f2b3==_0x3a7915?_0x19c16b[0x0]['attributes']['groupId']<_0xb8bf86[0x0]['attributes']['groupId']?-0x1:0x1:_0x43f2b3<_0x3a7915?-0x1:0x1;});for(const _0x3fe412 of _0x45326a)_0x3fe412['sort']((_0x40f2dc,_0xf26959)=>_0x40f2dc['id']<_0xf26959['id']?-0x1:0x1);}());for(let _0x41e993=0x0;_0x41e993<_0x45326a['length'];_0x41e993++){if(0x0==_0x45326a[_0x41e993]['length'])continue;const _0x4e1641=[];for(let _0x2c9ec5=_0x41e993+0x1;_0x2c9ec5<_0x45326a['length'];_0x2c9ec5++)0x0!=_0x45326a[_0x2c9ec5]['length']&&_0x194b49(_0x45326a[_0x41e993],_0x45326a[_0x2c9ec5])&&_0x4e1641['push'](_0x2c9ec5);for(const _0x35e057 of _0x4e1641)_0x45326a[_0x41e993]=_0x45326a[_0x41e993]['concat'](_0x45326a[_0x35e057]),_0x45326a[_0x35e057]=[];}for(const _0x3b0e88 of _0x45326a)for(let _0x3bc508=0x0;_0x3bc508<_0x3b0e88['length'];_0x3bc508++){const _0x2c07fc=_0x3b0e88[_0x3bc508+0x1]||null;_0x3b0e88[_0x3bc508]['next']!==_0x2c07fc&&(_0x3b0e88[_0x3bc508]['next']=_0x2c07fc);}for(const _0x3cc4be of _0x45326a)for(let _0x26785f=0x0;_0x26785f<_0x3cc4be['length'];_0x26785f++){const _0x5789b0=_0x3cc4be[_0x26785f-0x1]||null;_0x3cc4be[_0x26785f]['previous']!==_0x5789b0&&(_0x3cc4be[_0x26785f]['previous']=_0x5789b0);}function _0x194b49(_0x22339c,_0x62fc80){if(_0x22339c[0x0]['attributes']['groupId']!==_0x62fc80[0x0]['attributes']['groupId']&&_0x22339c[0x0]['author']!==_0x62fc80[0x0]['author'])return!0x1;if(!function(_0x33e152,_0x126a17){if(!_0x33e152['hasComments']&&!_0x126a17['hasComments'])return!0x0;if(_0x33e152['hasComments']&&_0x126a17['hasComments'])return!0x1;if(_0x33e152['hasComments']&&_0x126a17['createdAt']<_0x33e152['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x126a17['hasComments']&&_0x33e152['createdAt']<_0x126a17['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x22339c[0x0],_0x62fc80[0x0]))return!0x1;const _0x201633=Tt(_0x22339c[0x0]['attributes'],'groupId'),_0x3319ca=Tt(_0x62fc80[0x0]['attributes'],'groupId');if(!_0x1e1d71(_0x201633,_0x3319ca))return!0x1;return!!_0x22339c['every'](_0x477836=>_0x62fc80['some'](_0x1e68ef=>_0x477836['getFirstRange']()['isEqual'](_0x1e68ef['getFirstRange']())))&&_0x62fc80['every'](_0x2563be=>_0x22339c['some'](_0xf537c2=>_0x2563be['getFirstRange']()['isEqual'](_0xf537c2['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x37d21f){const _0x4e26ec=Array['from'](_0x37d21f),_0x1453ad=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3524b0=_0x1453ad['filter'](_0x5a4437=>!_0x37d21f['has'](_0x5a4437)),_0xfc04a3=new Map(_0x4e26ec['map'](_0x5ceaac=>[_0x5ceaac,this['_suggestionFactory']['getSuggestionCallback'](_0x5ceaac['type'],_0x5ceaac['subType'],'join')])),_0x35be7a=new Map(_0x1453ad['map'](_0x301bd0=>[_0x301bd0,_0x301bd0['getRanges']()]));for(let _0xf55581=0x0;_0xf55581<_0x4e26ec['length'];_0xf55581++){if(_0x576e6b(this,_0x4e26ec[_0xf55581],_0x4e26ec,_0xf55581+0x1))return!0x0;}for(let _0xfc9ea7=0x0;_0xfc9ea7<_0x4e26ec['length'];_0xfc9ea7++){if(_0x576e6b(this,_0x4e26ec[_0xfc9ea7],_0x3524b0,0x0))return!0x0;}return!0x1;function _0x576e6b(_0x1f2579,_0x7c39d8,_0x578af6,_0x4ad0b7){for(let _0x133c2d=_0x4ad0b7;_0x133c2d<_0x578af6['length'];_0x133c2d++){const _0x544c6b=_0x578af6[_0x133c2d];if(_0x544c6b['type']!==_0x7c39d8['type']||_0x544c6b['author']['id']!==_0x7c39d8['author']['id']||_0x544c6b['subType']!==_0x7c39d8['subType'])continue;if(!Jt(_0x7c39d8,_0x544c6b))continue;if('attribute'==_0x7c39d8['type']&&_0x7c39d8['data']['oldValue']!=_0x544c6b['data']['oldValue'])continue;if('attribute'==_0x7c39d8['type']&&_0x1f2579['_isBlockAttribute'](_0x7c39d8['data']['key']))continue;if('formatBlock'==_0x7c39d8['type']){const _0x14aff9=_0x1f2579['editor']['model'],_0x2dc4ab=_0x7c39d8['getContainedElement']();if(_0x2dc4ab&&(_0x14aff9['schema']['isObject'](_0x2dc4ab)||_0x14aff9['schema']['isLimit'](_0x2dc4ab)))continue;}const _0x50549c=_0xfc04a3['get'](_0x7c39d8),_0x222f66=_0x35be7a['get'](_0x7c39d8),_0x1b3262=_0x35be7a['get'](_0x544c6b),_0x276f35=_0x7c39d8['commentThread']&&_0x7c39d8['commentThread']['length'],_0x32a45f=_0x544c6b['commentThread']&&_0x544c6b['commentThread']['length'];if(!_0x276f35&&_0x50549c(_0x1b3262,_0x222f66))return _0x1f2579['_joinSuggestions'](_0x544c6b,_0x7c39d8),_0x35be7a['delete'](_0x7c39d8),!0x0;if(!_0x32a45f&&_0x50549c(_0x222f66,_0x1b3262))return _0x1f2579['_joinSuggestions'](_0x7c39d8,_0x544c6b),_0x35be7a['delete'](_0x544c6b),!0x0;}return!0x1;}}['_joinSuggestions'](_0x8d9199,_0x348fbf){if(_0x8d9199['isMultiRange']){for(const _0x541556 of _0x348fbf['getRanges']())_0x8d9199['addRange'](_0x541556);}else{const _0xb669ec=_0x348fbf['getFirstRange']()['end'];this['_setSuggestionRange'](_0x8d9199,this['_model']['createRange'](_0x8d9199['getFirstRange']()['start'],_0xb669ec));}_0x348fbf['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4de122,_0x2572cb,_0x28ffc1){const _0x15f7a2=_0x4de122['startsWith']('format')||_0x4de122['startsWith']('attribute')?'FORMATTING':_0x4de122['toUpperCase']();return o(this['editor']['locale'],_0x2572cb+'_'+_0x15f7a2+'_SUGGESTION_ANNOUNCEMENT',_0x28ffc1);}['_initAriaMarkerChangeAnnouncements'](){const _0x4a468f=this['editor'];if(!_0x4a468f['ui'])return;const {ariaLiveAnnouncer:_0x75604}=_0x4a468f['ui'];_0x3cc9ab(this['_model'],({left:_0x203755,entered:_0x4517e0})=>{for(const _0x2f69de of _0x203755){const {group:_0x5343ed,type:_0x4bbc14}=this['_splitMarkerName'](_0x2f69de['name']);if('suggestion'===_0x5343ed){_0x75604['announce'](this['_getMarkerAnnouncementText'](_0x4bbc14,'LEAVE'));break;}}for(const _0x156a12 of _0x4517e0){const {group:_0x49fd1f,type:_0x290fb8}=this['_splitMarkerName'](_0x156a12['name']);if('suggestion'===_0x49fd1f){_0x75604['announce'](this['_getMarkerAnnouncementText'](_0x290fb8,'ENTER',_0x55567b(_0x5a5ae6)));break;}}});}['_processAttributeChanges'](_0x37abcb){if(this['_recordAttributeSuggestions'])return!0x1;const _0x528d81=this['editor'],_0x187d61=_0x528d81['model']['document']['differ']['getChanges']();if(0x0==_0x187d61['length'])return!0x1;const _0x48e9ca=[],_0x3dbb1b=_0x187d61['filter'](_0x499d9b=>'attribute'==_0x499d9b['type']),_0x4838c9=_0x187d61['filter'](_0x2cc32e=>'insert'==_0x2cc32e['type']&&'$text'!=_0x2cc32e['name']),_0x11e8c2=_0x187d61['filter'](_0x5171ac=>'remove'==_0x5171ac['type']&&'$text'!=_0x5171ac['name']);for(const _0xea4066 of _0x3dbb1b)_0x48e9ca['push']({'key':_0xea4066['attributeKey'],'newValue':_0xea4066['attributeNewValue'],'oldValue':_0xea4066['attributeOldValue'],'range':Pt(_0xea4066['range'],_0x528d81['model'])});for(const _0x287241 of _0x4838c9){const _0x192ffc=_0x11e8c2['find'](_0x1c7339=>_0x1c7339['position']['isEqual'](_0x287241['position']));_0x192ffc&&_0x48e9ca['push']({'key':m,'newValue':_0x287241['name'],'oldValue':_0x192ffc['name'],'range':_0x528d81['model']['createRangeOn'](_0x287241['position']['nodeAfter'])});}return 0x0!=_0x48e9ca['length']&&this['_reduceExistingSuggestions'](_0x37abcb,_0x48e9ca);}['_processAttributeSuggestions'](_0x374706){let _0x4b052b=!0x1;const _0x2be5ad=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x76fcc9=>_0x76fcc9['data']['newRange']&&_0x76fcc9['name']['startsWith']('suggestion:attribute:'));for(const _0x62f47e of _0x2be5ad){const {subType:_0x15e654,id:_0x29a7cf}=this['_splitMarkerName'](_0x62f47e['name']),_0x3ba16b=_0x15e654['split']('|')[0x0];for(const _0x249d72 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x249d72['id']!=_0x29a7cf&&'attribute'==_0x249d72['type']&&_0x249d72['data']&&_0x249d72['data']['key']==_0x3ba16b&&_0x249d72['getFirstRange']()['isIntersecting'](_0x62f47e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x249d72,_0x62f47e['data']['newRange'],_0x374706),_0x4b052b=!0x0);}return _0x4b052b;}['_recordAttributeChanges'](_0x327145){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x327145();}['_isRegisteredAttribute'](_0x306b2e){const _0x3f2737=this['_isBlockAttribute'](_0x306b2e),_0x2cea4b=this['_inlineAttributeKeys']['has'](_0x306b2e);return _0x3f2737||_0x2cea4b;}['_reduceExistingSuggestions'](_0x2370f7,_0x210260){if(0x0==_0x210260['length'])return!0x1;let _0x5d05a0=!0x1;for(const _0x5bd060 of _0x210260){const _0x3905f0=this['_findSuggestions'](_0x5bd060['range'],'attribute')['filter'](_0x5cd29e=>!_0x5cd29e['meta']['isNextTo'])['map'](_0x2dc1c8=>_0x2dc1c8['suggestion']),_0x8838b1=_0x43d6df({'newValue':_0x5bd060['newValue']});_0x3905f0['filter'](_0x1b8991=>{const [_0x57168a,_0xbd9f4e]=_0x1b8991['subType']['split']('|');return _0x57168a==_0x5bd060['key']&&_0xbd9f4e!=_0x8838b1;})['forEach'](_0x578915=>{this['_reduceSuggestionAttributeRange'](_0x578915,_0x5bd060['range'],_0x2370f7),_0x5d05a0=!0x0;});}return _0x5d05a0;}['_reduceSuggestionAttributeRange'](_0x3e7faa,_0x33ff99,_0x388353){const _0x54d4bb=_0x3e7faa['getFirstRange']()['getDifference'](_0x33ff99);0x0!==_0x54d4bb['length']?0x1!==_0x54d4bb['length']?this['_breakSuggestionMarker'](_0x3e7faa,_0x33ff99['start'],_0x33ff99['end']):this['_setSuggestionRange'](_0x3e7faa,_0x54d4bb[0x0]):_0x388353['removeMarker'](_0x3e7faa['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x12571c){this['_editor']=_0x12571c,this['_model']=_0x12571c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3a3b12,_0x576f28,_0x29e9a7,_0x39d30a,_0x34bae9,_0x396e6e){return new u(this['_model'],{'type':_0x3a3b12,'subType':_0x576f28,'id':_0x29e9a7,'author':_0x39d30a,'creator':_0x39d30a,'attributes':_0x34bae9,'onAttributesChange':_0x396e6e,'onAccept':(..._0x148a21)=>this['getSuggestionCallback'](_0x3a3b12,_0x576f28,'accept')(..._0x148a21),'onDiscard':(..._0x4d50bc)=>this['getSuggestionCallback'](_0x3a3b12,_0x576f28,'discard')(..._0x4d50bc)});}['registerCustomCallback'](_0x15849b,_0x449811,_0x53aa90,_0x42f9ee){const _0x3e5830=_0x15849b+':'+_0x449811+':'+_0x53aa90;this['_customCallbacks']['set'](_0x3e5830,_0x42f9ee);}['getSuggestionCallback'](_0x2875aa,_0x1a3aed,_0x5da997){const _0x7d44ec=_0x2875aa+':'+_0x1a3aed+':'+_0x5da997;return this['_customCallbacks']['get'](_0x7d44ec)||this['_defaultCallbacks']['get'](_0x2875aa+':'+_0x5da997);}['_registerDefaultCallbacks'](){const _0xe5a954=()=>!0x1,_0x51f2e6=_0x353f44=>{_0x353f44['sort']((_0x8f171c,_0x5cf53d)=>_0x8f171c['start']['isBefore'](_0x5cf53d['start'])?0x1:-0x1),this['_model']['change'](_0x969a3=>{for(const _0xc9cd04 of _0x353f44){let _0x184994;_0x184994=_0xc9cd04['end']['isAtEnd']&&_0xc9cd04['end']['parent']==_0xc9cd04['start']['nodeAfter']?_0x969a3['createSelection'](_0xc9cd04['start']['nodeAfter'],'on'):_0x969a3['createSelection'](_0xc9cd04),this['_model']['deleteContent'](_0x184994,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xf0d0a4=(_0x115b7a,_0x54bfcc)=>{_0x54bfcc&&this['_model']['change'](_0x5d7852=>{const {commandName:_0x27a1e3,commandParams:_0x270599=[]}=_0x54bfcc,_0x35ef1a=_0x115b7a['map'](_0x4a1bae=>(Vt(_0x4a1bae)&&(_0x4a1bae=this['_model']['createRange'](_0x4a1bae['end'])),_0x4a1bae))['filter'](_0x2853b0=>'$graveyard'!==_0x2853b0['root']['rootName']);if(_0x35ef1a['length']<0x1)return;const _0x1e837d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x564aef=>_0x5978fe['fromRange'](_0x564aef));_0x5d7852['setSelection'](_0x35ef1a);for(const _0x50ea62 of this['_editor']['commands']['commands']())_0x50ea62['refresh']();_0x270599['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x27a1e3,..._0x270599);const _0x3b885e=_0x1e837d['filter'](_0x35a1a8=>'$graveyard'!=_0x35a1a8['root']['rootName']);_0x3b885e['length']>0x0&&_0x5d7852['setSelection'](_0x3b885e);for(const _0x5ceee7 of _0x1e837d)_0x5ceee7['detach']();});},_0x122063=(_0x488130,_0x4a10d0)=>0x1==_0x488130['length']&&0x1==_0x4a10d0['length']&&_0x488130[0x0]['end']['isEqual'](_0x4a10d0[0x0]['start']),_0x17ee58=(_0x4a7bbe,_0x582a68,_0x38c7e7,_0x45aa61)=>Ht(_0x4a7bbe,_0x582a68,_0x38c7e7,_0x45aa61,this['_model'])?[_0x4a7bbe,_0x582a68]:Ht(_0x582a68,_0x4a7bbe,_0x45aa61,_0x38c7e7,this['_model'])?[_0x582a68,_0x4a7bbe]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xe5a954),this['_defaultCallbacks']['set']('insertion:discard',_0x51f2e6),this['_defaultCallbacks']['set']('insertion:join',_0x122063),this['_defaultCallbacks']['set']('insertion:chain',_0x17ee58),this['_defaultCallbacks']['set']('deletion:accept',_0x51f2e6),this['_defaultCallbacks']['set']('deletion:discard',_0xe5a954),this['_defaultCallbacks']['set']('deletion:join',_0x122063),this['_defaultCallbacks']['set']('deletion:chain',_0x17ee58),this['_defaultCallbacks']['set']('formatInline:accept',_0xf0d0a4),this['_defaultCallbacks']['set']('formatInline:discard',_0xe5a954),this['_defaultCallbacks']['set']('formatInline:join',_0x122063),this['_defaultCallbacks']['set']('formatInline:chain',_0xe5a954),this['_defaultCallbacks']['set']('formatBlock:accept',_0xf0d0a4),this['_defaultCallbacks']['set']('formatBlock:discard',_0xe5a954),this['_defaultCallbacks']['set']('formatBlock:join',_0x122063),this['_defaultCallbacks']['set']('formatBlock:chain',_0xe5a954),this['_defaultCallbacks']['set']('attribute:accept',_0xe5a954),this['_defaultCallbacks']['set']('attribute:discard',(_0x3b2645,_0x2e6fc8)=>{if(!_0x2e6fc8)return;const _0x2f0092=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2915f9=>{if(_0x2e6fc8['key']==m)for(const _0x403813 of _0x3b2645){const _0x522574=_0x403813['start']['nodeAfter'],_0x1fd540=_0x2e6fc8['oldValue'];_0x2915f9['rename'](_0x522574,_0x1fd540);}else{if(_0x2f0092['_isBlockAttribute'](_0x2e6fc8['key'])){for(const _0xfd094c of _0x3b2645)void 0x0!==_0x2e6fc8['oldValue']?_0x2915f9['setAttribute'](_0x2e6fc8['key'],_0x2e6fc8['oldValue'],_0xfd094c['start']['nodeAfter']):_0x2915f9['removeAttribute'](_0x2e6fc8['key'],_0xfd094c['start']['nodeAfter']);}else{for(const _0x7bfc41 of _0x3b2645)_0x2e6fc8['oldValue']?_0x2915f9['setAttribute'](_0x2e6fc8['key'],_0x2e6fc8['oldValue'],_0x7bfc41):_0x2915f9['removeAttribute'](_0x2e6fc8['key'],_0x7bfc41);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x122063);}}function Ot(_0x177901,_0x3e12d1,_0x5d4891){for(const _0x1ac4d8 of _0x3e12d1['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1ac4d8['root']==_0x1ac4d8)return!0x1;if(!_0x5d4891['containsItem'](_0x1ac4d8))return!0x1;if(_0x177901['isObject'](_0x1ac4d8)||_0x177901['isLimit'](_0x1ac4d8))return!0x0;}return!0x1;}function Vt(_0x169db3){return _0x169db3['end']['parent']==_0x169db3['start']['nodeAfter']&&_0x169db3['end']['isAtStart'];}function Ut(_0x503fd7,_0x16d76d,_0x1db2a1,_0x26923d){const _0x9ee8d0=_0x1d6cd3=>!_0x1d6cd3['item']['is']('$textProxy')&&!_0x26923d['isObject'](_0x1d6cd3['item']),_0xdeeb4a=_0x503fd7['start']['getLastMatchingPosition'](_0x9ee8d0),_0x5377d3=_0x503fd7['end']['getLastMatchingPosition'](_0x9ee8d0,{'direction':'backward'});return(!_0x503fd7['start']['isEqual'](_0xdeeb4a)||!_0x503fd7['end']['isEqual'](_0x5377d3))&&(_0xdeeb4a['isBefore'](_0x5377d3)?_0x1db2a1['updateMarker'](_0x16d76d,{'range':_0x1db2a1['createRange'](_0xdeeb4a,_0x5377d3)}):_0x1db2a1['removeMarker'](_0x16d76d),!0x0);}function Gt(_0x357cf6){return _0x43d6df(_0x357cf6);}function Ft(_0x58e2c8){const _0xb728a1=_0x58e2c8['start']['nodeAfter'];return _0xb728a1&&_0xb728a1['is']('element');}function Pt(_0xc83340,_0x9beaa1){return null==_0xc83340['end']['nodeBefore']&&_0xc83340['end']['parent']==_0xc83340['start']['nodeAfter']?Lt(_0xc83340['start']['nodeAfter'],_0x9beaa1):_0xc83340;}function Lt(_0x2424ec,_0x1c3e9d){const _0x3d0d8f=_0x1c3e9d['schema']['isObject'](_0x2424ec)||_0x1c3e9d['schema']['isSelectable'](_0x2424ec);return _0x1c3e9d['createRange'](_0x1c3e9d['createPositionAt'](_0x2424ec,'before'),_0x3d0d8f?_0x1c3e9d['createPositionAfter'](_0x2424ec):_0x1c3e9d['createPositionAt'](_0x2424ec,'end'));}function Ht(_0x54b55a,_0x11da6d,_0x595aea,_0x201c67,_0x5767e6){if(_0x54b55a['next'])return!0x1;if(!Jt(_0x54b55a,_0x11da6d))return!0x1;if(_0x595aea['end']['isEqual'](_0x201c67['start']))return!0x0;if(_0x54b55a['type']!=_0x11da6d['type'])return!0x1;if(!_0x595aea['end']['isTouching'](_0x201c67['start']))return!0x1;const _0x102151=_0x5767e6['createRange'](_0x595aea['end'],_0x201c67['start'])['getWalker']();for(const _0x37da94 of _0x102151)if(['elementStart','elementEnd']['includes'](_0x37da94['type'])&&_0x5767e6['schema']['isLimit'](_0x37da94['item']))return!0x1;return!0x0;}function Jt(_0x56f96f,_0x441c32){if(!_0x56f96f['_isDataLoaded']||!_0x441c32['_isDataLoaded'])return!0x1;const _0x1b760c=new Set(Object['keys'](_0x56f96f['attributes'])),_0x188a2f=new Set(Object['keys'](_0x441c32['attributes']));if(_0x1b760c['delete']('groupId'),_0x188a2f['delete']('groupId'),0x0==_0x1b760c['size']&&0x0==_0x188a2f['size'])return!0x0;if(_0x1b760c['size']!=_0x188a2f['size'])return!0x1;const _0x43c2ae={..._0x56f96f['attributes']},_0x18c36c={..._0x441c32['attributes']};return delete _0x43c2ae['groupId'],delete _0x18c36c['groupId'],JSON['stringify'](_0x43c2ae)==JSON['stringify'](_0x18c36c);}function qt(_0x4ee4fd,_0xd0f443){const _0x33d073=zt(_0x4ee4fd['attributes']),_0x22e013=zt(_0xd0f443);if(!_0x4ee4fd['_isDataLoaded'])return!0x1;for(const _0x39e946 of Object['keys'](_0x22e013))if(!_0x1e1d71(_0x33d073[_0x39e946],_0x22e013[_0x39e946]))return!0x1;return!0x0;}function zt(_0x163179){const _0x5e4fb3=Object['assign']({},_0x163179);return delete _0x5e4fb3['skipNestingCheck'],delete _0x5e4fb3['tablePasteChainId'],_0x5e4fb3;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1c13fd(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x44a1b2,_0x14968a,_0x1e061e,_0x166542){super(),this['model']=_0x14968a,this['view']=_0x1e061e,this['commentThreadController']=_0x166542,this['_editor']=_0x44a1b2,this['_acceptCommand']=_0x44a1b2['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x44a1b2['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1163e4,_0x749872)=>_0x1163e4||_0x749872),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x524e3c=>_0x524e3c&&this['_editor']['model']['canEditAt'](_0x14968a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x38c910=>_0x38c910&&this['_editor']['model']['canEditAt'](_0x14968a['getRanges']())),this['_pendingAction']=null,_0x1e061e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1e061e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1e061e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1e061e,'change:isDirty',()=>{_0x1e061e['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 _0x210357=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x210357);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x540bd6{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3bf863,_0x408407,_0x520dbc,_0x35c9a6){super(_0x3bf863),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3493f9(_0x3bf863,o(_0x3bf863,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x408407['authoredAt']),this['bind']('authoredAt')['to'](_0x408407),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x408407,'authoredAt',this,'descriptionParts',(_0x862dcc,_0x305203,_0x5ecf27)=>{const _0x5730d4=_0x5ecf27['map'](_0x1e8816=>ls(_0x1e8816['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x862dcc-0x1,_0x408407['author']['name'],_0x305203?_0x35c9a6['formatDateTime'](_0x305203):'',new DOMParser()['parseFromString'](_0x5730d4,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4529d1(),this['focusTracker']=new _0x499c6d(),this['keystrokes']=new _0x435c45(),this['focusCycler']=new _0x1794c2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xe1fa3f=>_0xe1fa3f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x408407,this['_localUser']=_0x520dbc,this['_config']=_0x35c9a6,_0x35c9a6['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x533a2b(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xd229cc}=this['_config'];this['commentsListView']=new _0xd229cc(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',_0x31d78e=>_0x31d78e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4e8c3b,_0x536ad4)=>_0x4e8c3b||!!_0x536ad4);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x17ee2}=this['_config'],_0x41a10c=new _0x17ee2(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x111c83=_0x41a10c['commentInputView'];return _0x41a10c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x111c83,'value',(_0x4e2e2d,_0x21fb14,_0x252dbf)=>!!_0x252dbf||_0x4e2e2d&&!_0x21fb14),_0x111c83['on']('submit',(_0x4539ba,_0x405079)=>{this['fire']('addComment',_0x405079),_0x111c83['editor']['setData']('');}),_0x111c83['on']('cancel',()=>this['focus']()),_0x111c83['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x41a10c;}}class re extends us{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x5d3809,_0xab3803,_0x4b1050,_0x18741b){super(_0x5d3809,_0xab3803,_0x4b1050,_0x18741b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xd38847=>_0xd38847&&_0xd38847[0x0]?_0xd38847[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3690f8,_0x1457d8)=>{let _0x28635b='';for(const _0xdbbe87 of _0x3690f8)_0x28635b+='<p>'+ls(_0xdbbe87['content'],_0xdbbe87['color'])+'</p>';return _0x1457d8?_0x28635b:_0x4d962c(_0x28635b,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x5d3809,'Accept\x20suggestion'),_0x3a0483['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x5d3809,'Discard\x20suggestion'),_0x3a0483['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x4ca656(_0x5d3809,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']['addMany']([this['acceptButton'],this['discardButton']]),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2a3493=this['bindTemplate'],_0x476590=[{'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':_0x2a3493['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2a3493['to']('authoredAt',_0x3abbfb=>this['_config']['formatDateTime'](_0x3abbfb))}]}]},{'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']&&_0x476590['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x521067={'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2a3493['if']('isActive','ck-suggestion-wrapper--active'),_0x2a3493['to']('type',_0x2e0df7=>'ck-suggestion-'+_0x2e0df7),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':0x0,'role':'listitem','aria-label':_0x2a3493['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x476590},this['ariaDescriptionView']]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x521067['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)),_0x521067;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x330424,_0x24e2f2,_0x1b9e39)=>{this['_descriptionElement']['innerHTML']=_0x1b9e39;});}['_createButton'](_0x578248,_0x30d193,_0x706d9c,_0x1beac9,_0x2d7c7e){const _0x1cd116=new _0x18a94c(this['locale']);return _0x1cd116['set']({'label':_0x578248,'icon':_0x30d193,'tooltip':!0x0,'tooltipPosition':_0x2d7c7e}),_0x1cd116['extendTemplate']({'attributes':{'class':_0x706d9c}}),_0x1cd116['on']('execute',()=>{this['fire'](_0x1beac9,this['_model']['id']);}),_0x1cd116;}['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;}}var ce='<!--\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 _0x4f7a1d{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2c4983,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x5de0d2){super(_0x5de0d2),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2b137d=this['editor']['config'];_0x2b137d['define']('trackChanges.SuggestionThreadView',re),_0x2b137d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2b137d['get']('trackChanges.disableComments'),this['_initKeyboardNavigationToThread']();}['_handleSuggestionControllerDelayed'](_0x4175e3,_0x9158af){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2bb9e5,_0x1eb368]of this['_handleControllerBuffer']){const _0x29576b=this['_suggestionToController']['has'](_0x2bb9e5);_0x29576b||_0x1eb368?_0x29576b&&_0x1eb368&&this['_destroyController'](_0x2bb9e5):this['_initializeController'](_0x2bb9e5);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4175e3,_0x9158af);}['init'](){const _0x5201e2=this['editor'],_0x543461=_0x5201e2['plugins']['get']('TrackChangesEditing'),_0x44d155=_0x5201e2['plugins']['get']('Annotations'),_0x2cd688=_0x5201e2['plugins']['get']('EditorAnnotations'),_0x178cfa=_0x5201e2['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2cd688['addSourceCollector'](()=>{const _0x35f7bc=[];for(const [_0x4ed36e,_0x2da3a6]of Array['from'](this['_suggestionToController'])){const _0xec29e5=_0x4ed36e['getAllAdjacentSuggestions'](),_0xb1f2b6=[];for(const _0x4e8c89 of _0xec29e5){if(!_0x4e8c89['isInContent'])continue;if(_0x4e8c89['isMultiRange']){_0xb1f2b6['push'](..._0x4e8c89['getRanges']());continue;}const _0x4ded7b=_0x4e8c89['getFirstRange']();if(_0xb1f2b6['length']>0x0){const _0x407b2d=_0xb1f2b6[0x0]['getJoined'](_0x4ded7b);if(_0x407b2d){_0xb1f2b6[0x0]=_0x407b2d;continue;}}_0xb1f2b6['push'](_0x4ded7b);}_0x35f7bc['push']([_0x2da3a6['view'],_0xb1f2b6]);}return _0x35f7bc;}),this['listenTo'](_0x543461,'suggestionLoaded',(_0x4e79a3,_0x474661)=>{this['listenTo'](_0x474661,'change:previous',(_0x136de2,_0xbdbf25,_0x48fd8d,_0x5e004c)=>{_0x474661['isInContent']&&(null==_0x48fd8d?(this['_updateController'](_0x5e004c['head']),this['_handleSuggestionControllerDelayed'](_0x474661,!0x1)):(this['_updateController'](_0x48fd8d['head']),null==_0x5e004c&&this['_handleSuggestionControllerDelayed'](_0x474661,!0x0)));}),null!==_0x474661['previous']?this['_updateController'](_0x474661['head']):this['_handleSuggestionControllerDelayed'](_0x474661,!0x1);}),this['listenTo'](_0x543461,'suggestionUnloaded',(_0x4f8d59,_0x159c36,_0x4d5496)=>{this['stopListening'](_0x159c36,'change:previous'),this['_handleControllerBuffer']['delete'](_0x159c36),this['_suggestionToController']['has'](_0x159c36)&&this['_destroyController'](_0x159c36),_0x4d5496&&this['_updateController'](_0x4d5496['head']);}),this['listenTo'](_0x543461,'suggestionChanged',(_0x4207f4,_0x3469a7)=>{this['_updateController'](_0x3469a7);}),this['listenTo'](_0x44d155,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x178cfa,'addComment',(_0x10927b,{threadId:_0x3a6660,isFromAdapter:_0x2bc994})=>{if(_0x2bc994||!_0x543461['hasSuggestion'](_0x3a6660))return;const _0x29ddd1=_0x543461['getSuggestion'](_0x3a6660);this['_suggestionToController']['get'](_0x29ddd1)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x57e6a3=this['editor']['plugins']['get']('Annotations'),_0x5d8cf2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b8ff4=Array['from'](_0x57e6a3['activeAnnotations'],_0x1f8e62=>_0x1f8e62['innerView'])['filter'](_0x16e316=>this['_viewToController']['has'](_0x16e316)),_0x1951a7=[];for(const _0x5944ed of _0x3b8ff4){const _0x3b5d25=this['_viewToController']['get'](_0x5944ed)['model']['getAllAdjacentSuggestions']();_0x1951a7['push'](..._0x3b5d25['reduce']((_0x4239e1,_0x50bb56)=>[..._0x4239e1,..._0x50bb56['getMarkerNames']()],[]));}_0x5d8cf2['activeMarkers']=_0x1951a7;}['_addUIComponentsToFactory'](){const _0x1efd9c=this['editor'],_0x398270=_0x1efd9c['locale'],_0x37bd98=o(_0x398270,'Track\x20changes'),_0x5149fe=new Wt([{'type':'switchbutton','model':new _0x275bba({'withText':!0x0,'isToggleable':!0x0,'label':_0x37bd98,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x275bba({'withText':!0x0,'label':o(_0x398270,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x275bba({'withText':!0x0,'label':o(_0x398270,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x275bba({'withText':!0x0,'label':o(_0x398270,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x275bba({'withText':!0x0,'label':o(_0x398270,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x115d3e of _0x5149fe)if(he(_0x115d3e)){const _0x12b6b1=_0x1efd9c['commands']['get'](_0x115d3e['model']['commandName']);_0x115d3e['model']['bind']('isOn','isEnabled')['to'](_0x12b6b1,'value','isEnabled');}_0x1efd9c['ui']['componentFactory']['add']('trackChanges',_0x4ddc76=>this['_createToolbarButton'](_0x4ddc76,_0x5149fe,_0x37bd98)),_0x1efd9c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1499f5=>this['_createMenuBarMenu'](_0x1499f5,_0x5149fe,_0x37bd98));}['_createToolbarButton'](_0x26ed83,_0x21c951,_0x388099){const _0x12bcc0=Qt(_0x26ed83,_0x1a1004),_0x2c49a7=this['editor']['commands']['get']('trackChanges');_0x12bcc0['buttonView']['set']({'tooltip':_0x388099,'label':_0x388099,'icon':ce}),_0x12bcc0['buttonView']['bind']('isOn')['to'](_0x2c49a7,'value'),_0x12bcc0['buttonView']['on']('execute',()=>{_0x2c49a7['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x12bcc0,_0x21c951,{'role':'menu'});const _0x276f26=[];for(const _0x52bca0 of _0x21c951)he(_0x52bca0)&&_0x276f26['push'](this['editor']['commands']['get'](_0x52bca0['model']['commandName']));const _0x4cee85=_0x12bcc0['buttonView'];return _0x4cee85['actionView']['unbind']('isEnabled'),_0x4cee85['arrowView']['unbind']('isEnabled'),_0x4cee85['actionView']['bind']('isEnabled')['to'](_0x2c49a7,'isEnabled'),_0x4cee85['arrowView']['bind']('isEnabled')['toMany'](_0x276f26,'isEnabled',(..._0x2f03de)=>_0x2f03de['some'](_0x6a0754=>_0x6a0754)),_0x12bcc0['on']('execute',_0x532f84=>{this['editor']['execute'](_0x532f84['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x12bcc0;}['_createMenuBarMenu'](_0x58797f,_0x3d106c,_0xc86789){const _0x8696ac=new Yt(_0x58797f),_0x2eb9d1=this['editor']['commands']['get']('trackChanges');_0x8696ac['buttonView']['set']({'label':_0xc86789,'icon':ce});const _0x846164=new Zt(_0x58797f);for(const _0x4e0430 of _0x3d106c){if('separator'==_0x4e0430['type']){_0x846164['items']['add'](new Xt(_0x58797f));continue;}const _0x44a825=new te(_0x58797f,_0x8696ac),_0x289f38=new _0x398b86(_0x58797f),_0x4e966e=_0x4e0430['model'];_0x289f38['bind'](...Object['keys'](_0x4e966e))['to'](_0x4e966e),_0x289f38['delegate']('execute')['to'](_0x8696ac),_0x289f38['on']('execute',()=>{this['editor']['execute'](_0x4e966e['commandName']),this['editor']['editing']['view']['focus']();}),_0x44a825['children']['add'](_0x289f38),_0x846164['items']['add'](_0x44a825);}return _0x8696ac['bind']('isEnabled')['to'](_0x2eb9d1,'isEnabled'),_0x8696ac['panelView']['children']['add'](_0x846164),_0x8696ac;}['_initializeController'](_0x536bca){const _0xea68c3=this['editor'],_0xbaf305=_0xea68c3['config'],_0x3e3584=_0xea68c3['plugins']['get']('Annotations'),_0x5f19e7=_0xea68c3['plugins']['get']('CommentsRepository'),_0x13e1b4=_0xea68c3['plugins']['get']('EditorAnnotations'),_0x33d258=_0xea68c3['plugins']['get'](_0x2c4983)['me'],_0x54c5ba=_0xbaf305['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0xa44194,CommentThreadInputView:_0x146d1a}=_0xea68c3['plugins']['get']('CommentsUI');let _0x5157aa,_0x191f08;this['_annotationViews']['has'](_0x536bca['id'])?(_0x191f08=this['_annotationViews']['get'](_0x536bca['id']),_0x5157aa=_0x191f08['mainView']):(_0x5157aa=new _0x54c5ba(_0xea68c3['locale'],_0x536bca,_0x33d258,{'disableComments':this['_disableComments'],'editorConfig':_0xbaf305['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0xbaf305['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xbaf305['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xbaf305['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x54034c(_0xbaf305['get']('locale')),'CommentView':_0xbaf305['get']('comments')['CommentView'],'CommentsListView':_0xa44194,'CommentThreadInputView':_0x146d1a}),_0x5157aa['acceptButton']['on']('execute',()=>{_0xea68c3['editing']['view']['focus']();}),_0x5157aa['discardButton']['on']('execute',()=>{_0xea68c3['editing']['view']['focus']();}),_0x191f08=_0x3e3584['createAnnotationView'](this['editor']['locale'],_0x5157aa),_0x191f08['bind']('isDirty')['to'](_0x5157aa,'isDirty'),_0x191f08['bind']('length')['to'](_0x5157aa),_0x191f08['bind']('type')['to'](_0x5157aa,'type',_0x2558b6=>'suggestion-'+_0x2558b6),this['listenTo'](_0x5157aa,'escape',()=>{_0xea68c3['editing']['view']['focus']();},{'priority':'low'}),this['_annotationViews']['set'](_0x536bca['id'],_0x191f08));const _0x44d781=_0x5f19e7['createCommentThreadController'](_0x536bca['commentThread'],_0x5157aa),_0x1f413b=new ae(_0xea68c3,_0x536bca,_0x5157aa,_0x44d781),_0x42526c=_0x536bca['getAllAdjacentSuggestions']()['filter'](_0x1e187f=>_0x1e187f['isInContent']);_0x5157aa['descriptionParts']=_0xea68c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x42526c),this['_suggestionToController']['set'](_0x536bca,_0x1f413b),this['_viewToController']['set'](_0x5157aa,_0x1f413b);const _0x1afc41=_0x3e3584['createAnnotation']({'view':_0x191f08,'target':()=>{const _0xd8d5f3=[],_0x6b8583=_0x536bca['getAllAdjacentSuggestions']()['filter'](_0x9d0cd2=>_0x9d0cd2['isInContent']);for(const _0x6aab6d of _0x6b8583)_0xd8d5f3['push'](..._0x6aab6d['getMarkers']());return _0x4f8045(_0xea68c3['editing'],_0xd8d5f3);},'type':()=>'suggestion-'+_0x1f413b['view']['type']});_0x5f19e7['_bindAnnotationToEditors'](_0x5157aa,_0x1afc41),_0x3e3584['add'](_0x1afc41),_0x13e1b4['registerAnnotation'](_0x1afc41);}['_destroyController'](_0x459454){const _0xcf3326=this['editor']['plugins']['get']('CommentsRepository'),_0x587a84=this['editor']['plugins']['get']('Annotations'),_0x257c54=this['_suggestionToController']['get'](_0x459454),_0x437785=_0x257c54['view'],_0x581445=_0x587a84['getByInnerView'](_0x437785);_0xcf3326['_unbindEditors'](_0x437785),_0x581445&&_0x587a84['remove'](_0x581445),this['_suggestionToController']['delete'](_0x459454),this['_viewToController']['delete'](_0x437785),_0x257c54['destroy']();}['_updateController'](_0x416d1c){if(!_0x416d1c['isInContent']||!this['_suggestionToController']['has'](_0x416d1c))return;const _0x13ab5c=this['editor']['plugins']['get']('TrackChangesEditing'),_0xba556f=this['_suggestionToController']['get'](_0x416d1c),_0x30662a=_0x416d1c['getAllAdjacentSuggestions']();_0xba556f['view']['descriptionParts']=_0x13ab5c['descriptionFactory']['getDescriptions'](_0x30662a);}['_initKeyboardNavigationToThread'](){this['editor']['keystrokes']['set'](_0x5a5ae6,(_0x46c73a,_0x271962)=>{const _0x5474f1=this['editor']['plugins']['get'](k),_0x43c12b=this['editor']['plugins']['get'](p);if(!_0x43c12b['activeMarkers']['length'])return;const {id:_0x527679}=_0x43c12b['_splitMarkerName'](_0x43c12b['activeMarkers'][0x0]),_0x8507bb=_0x5474f1['getSuggestion'](_0x527679);_0x8507bb&&(this['_suggestionToController']['get'](_0x8507bb)['view']['focus'](),_0x271962());});}['destroy'](){for(const _0x1a197f of this['_suggestionToController']['keys']())this['_destroyController'](_0x1a197f);for(const _0x3b400f of this['_annotationViews']['values']())_0x3b400f['mainView']['destroy']();super['destroy']();}}function he(_0x4335d9){return'model'in _0x4335d9;}class k extends _0x4f7a1d{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x11196a){this['editor']['plugins']['get'](p)['adapter']=_0x11196a;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1afaa0){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1afaa0);}['getSuggestions']({skipNotAttached:_0x2048cb=!0x1,toJSON:_0x2d3d18=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2048cb,'toJSON':_0x2d3d18});}['getSuggestion'](_0x406420){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x406420);}}const T=['Pagination'];class P extends _0x4f7a1d{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4ebf4b=this['editor'];if(_0x4ebf4b['config']['define']('trackChangesData.editorCreator',_0x20b954=>{const _0x2b33f3=_0x4ebf4b['model']['document']['getRootNames']()['reduce']((_0x2043dc,_0x32090b)=>(_0x2043dc[_0x32090b]='',_0x2043dc),{});return _0x4ebf4b['constructor']['create'](_0x2b33f3,_0x20b954);}),'function'!=typeof _0x4ebf4b['config']['get']('trackChangesData')['editorCreator'])throw new _0x509c53('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1945a8){return N(this['editor'],!0x0,_0x1945a8);}['getDataWithDiscardedSuggestions'](_0x459da3){return N(this['editor'],!0x1,_0x459da3);}}class D extends _0x4f7a1d{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x350999){super(_0x350999),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(_0x50ae78){return void 0x0!==_0x50ae78['getRootsAttributes'];}async function N(_0x456e77,_0x5a002a,_0x41e1db){const _0x41487c=_0x44c3fe(_0x456e77,T);_0x41487c['plugins']['push'](p,D),_0x41487c['rootsAttributes']=v(_0x456e77)?_0x456e77['getRootsAttributes']():void 0x0;const _0x3f6963=document['createDocumentFragment'](),_0x40da7e=_0x456e77['config']['get']('trackChangesData')['editorCreator'],_0x12572e=await _0x40da7e(_0x41487c,()=>function(_0xea3bb6){const _0x5df216=document['createElement']('div');return _0xea3bb6['appendChild'](_0x5df216),_0x5df216;}(_0x3f6963));!function(_0x599279,_0x33a2e3){const _0x403354=_0x599279['model']['document']['getRootNames']()['reduce']((_0x5e6bb4,_0x5c4a07)=>(_0x5e6bb4[_0x5c4a07]=_0x599279['data']['get']({'rootName':_0x5c4a07}),_0x5e6bb4),{}),_0x37dbf4=_0x599279['plugins']['get']('Users')['users']['map'](_0x158c65=>({'id':_0x158c65['id'],'name':_0x158c65['name']})),_0x1e7978=_0x599279['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2b0c84=_0x599279['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5bfaf2=_0x33a2e3['plugins']['get']('Users'),_0x1cc53b=_0x33a2e3['plugins']['get']('TrackChangesEditing'),_0x805ace=_0x33a2e3['plugins']['get']('CommentsRepository');for(const _0x22499b of _0x805ace['getCommentThreads']())_0x22499b['remove']();for(const _0x186126 of _0x37dbf4)_0x5bfaf2['getUser'](_0x186126['id'])||_0x5bfaf2['addUser'](_0x186126);_0x5bfaf2['me']||_0x5bfaf2['useAnonymousUser']();for(const _0x445287 of _0x2b0c84)_0x805ace['addCommentThread'](_0x445287);for(const _0x2b8027 of _0x1e7978)_0x1cc53b['addSuggestionData'](_0x2b8027);_0x33a2e3['data']['set'](_0x403354);}(_0x456e77,_0x12572e),_0x12572e['execute'](_0x5a002a?'acceptAllSuggestions':'discardAllSuggestions');const _0x16265b=v(_0x12572e)?_0x12572e['getFullData'](_0x41e1db):_0x12572e['data']['get'](_0x41e1db);return await _0x12572e['destroy'](),_0x16265b;}export{us as BaseSuggestionThreadView,re as SuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|