@ckeditor/ckeditor5-track-changes 44.2.0-alpha.10 → 44.2.0-alpha.11
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 +25 -25
- 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 Yt,Plugin as
|
|
24
|
-
_0x46282c(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1c8767,_0x41c6ed){super(),this['id']=_0x41c6ed['id'],this['type']=_0x41c6ed['type'],this['subType']=_0x41c6ed['subType']||null,this['author']=_0x41c6ed['author'],this['creator']=_0x41c6ed['creator']||_0x41c6ed['author'],this['isExternal']=Boolean(_0x41c6ed['attributes']&&_0x41c6ed['attributes']['@external']),this['data']=null,this['_model']=_0x1c8767,this['_onAccept']=_0x41c6ed['onAccept'],this['_onDiscard']=_0x41c6ed['onDiscard'],this['_onAttributesChange']=_0x41c6ed['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x41c6ed['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 _0x2e6be5=this;for(;_0x2e6be5['previous'];)_0x2e6be5=_0x2e6be5['previous'];return _0x2e6be5;}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'](_0x4e61cb){this['_markerNames']['add'](_0x4e61cb);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x396f3c=>this['_model']['markers']['get'](_0x396f3c))['filter'](_0x3a4c92=>_0x3a4c92);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x11e4cd=>{for(const _0x106b53 of this['getMarkers']())_0x11e4cd['removeMarker'](_0x106b53);}),this['_markerNames']['clear']();}['removeMarker'](_0x176329){this['_model']['change'](_0x35efbd=>{_0x35efbd['removeMarker'](_0x176329);}),this['_markerNames']['delete'](_0x176329);}['addRange'](_0x552234){const _0x2db37b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2db37b),this['_model']['change'](_0x3948b8=>{_0x3948b8['addMarker'](_0x2db37b,{'range':_0x552234,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x9d6a7){for(const _0x344f3b of this['getRanges']())if(_0x344f3b['isIntersecting'](_0x9d6a7))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4857bb=>_0x4857bb['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3e69a9,_0x6b0c2d)=>[..._0x3e69a9,..._0x6b0c2d['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3c3284=this['getRanges']();if(0x1!=_0x3c3284['length'])return null;const _0x634616=_0x3c3284[0x0],_0xb2cc4a=_0x634616['start']['nodeAfter'],_0x2dda31=_0x634616['end']['nodeBefore'];return _0xb2cc4a instanceof _0x573231?_0xb2cc4a!=_0x2dda31?null:_0xb2cc4a: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 _0x9b7e1=[];let _0x48e0b2=this['head'];for(;_0x48e0b2;)_0x9b7e1['push'](_0x48e0b2),_0x48e0b2=_0x48e0b2['next'];return _0x9b7e1;}['setAttribute'](_0x3168c9,_0x47ef69){const _0x48d5c3=_0x5b55e6(this['attributes']);_0x1cbe6c(_0x48d5c3,_0x3168c9,_0x47ef69),_0x2deacb(_0x48d5c3,this['attributes'])||(this['attributes']=_0x48d5c3,this['_onAttributesChange'](_0x48d5c3));}['removeAttribute'](_0x5aca03){const _0x3ab12a=_0x5b55e6(this['attributes']);_0x1a54c8(_0x3ab12a,_0x5aca03),_0x2deacb(_0x3ab12a,this['attributes'])||(this['attributes']=_0x3ab12a,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 _0x2b97bd()['substr'](0x1,0x5);}}function o(_0x5b44e6,_0x116a4d,_0x4b2228){const _0x27c2bf=_0x5b44e6['t'],t=_0x5b44e6['t'];switch(_0x116a4d){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x4b2228);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4b2228);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4b2228);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4b2228);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4b2228);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',_0x4b2228);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4b2228);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x4b2228);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4b2228);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4b2228);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4b2228);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4b2228);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4b2228);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4b2228);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4b2228);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4b2228);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4b2228);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4b2228);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4b2228);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4b2228);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4b2228);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4b2228);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4b2228);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4b2228);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'},_0x4b2228);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4b2228);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4b2228);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4b2228);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4b2228);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4b2228);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'},_0x4b2228);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4b2228);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4b2228);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4b2228);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4b2228);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'},_0x4b2228);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4b2228);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'},_0x4b2228);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'},_0x4b2228);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4b2228);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'},_0x4b2228);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4b2228);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'},_0x4b2228);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4b2228);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4b2228);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'},_0x4b2228);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4b2228);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 _0x27c2bf({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4b2228);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x27c2bf({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4b2228);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4b2228);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'},_0x4b2228);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'},_0x4b2228);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'},_0x4b2228);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x116a4d;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2c4e85,_0x3b33cc){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2c4e85,this['_locale']=_0x3b33cc;}['getDescriptions'](_0x574f2c){const _0x3fe9ab=[],_0xb06c=new Set(),_0x17105a=new Set();for(let _0x197fa1=0x0;_0x197fa1<_0x574f2c['length'];_0x197fa1++){const _0x23f1a9=_0x574f2c[_0x197fa1];if(!_0x23f1a9['isInContent'])continue;const _0x253bbd=this['_handleCustomCallbackDescription'](_0x23f1a9);if(_0x253bbd){if(null!=_0x23f1a9['subType']){if(_0xb06c['has'](_0x23f1a9['subType']))continue;_0xb06c['add'](_0x23f1a9['subType']);}_0x3fe9ab['push'](_0x253bbd);}else{if('attribute'!=_0x23f1a9['type'])'insertion'!=_0x23f1a9['type']&&'deletion'!=_0x23f1a9['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3fe9ab,_0x23f1a9,_0x574f2c[_0x197fa1+0x1]);else{const _0x12c98a=_0x23f1a9['data']['key'];if(_0x17105a['has'](_0x12c98a))continue;_0x17105a['add'](_0x23f1a9['data']['key']),_0x12c98a==m?this['_handleRenameSuggestionDescription'](_0x3fe9ab,_0x23f1a9):this['_handleAttributeSuggestionDescription'](_0x3fe9ab,_0x23f1a9);}}}return this['_resolveDescriptionItems'](_0x3fe9ab);}['registerDescriptionCallback'](_0x56270c){this['_customCallbacks']['push'](_0x56270c);}['registerElementLabel'](_0x4d01b5,_0x3221dd,_0x3b77a4=_0x5b2b34['normal']){'function'==typeof _0x4d01b5?_0x340159(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4d01b5,'label':_0x3221dd,'priority':_0x3b77a4}):this['_itemLabels']['set'](_0x4d01b5,_0x3221dd);}['registerAttributeLabel'](_0xa8ae33,_0x2e5d4b){this['_attributeLabels']['set'](_0xa8ae33,_0x2e5d4b);}['getItemLabel'](_0x1453bf,_0x5a992e=0x1){let _0x53594a;for(const _0x1d483f of this['_itemLabelsCallbacks'])if(_0x1d483f['matchingCallback'](_0x1453bf)){_0x53594a=_0x1d483f['label'];break;}return _0x53594a||(_0x53594a=this['_itemLabels']['get'](_0x1453bf['name'])),_0x53594a?_0x53594a(_0x5a992e):0x1!==_0x5a992e?_0x5a992e+'\x20'+_0x1453bf['name']+'s':''+_0x1453bf['name'];}['_addDescriptionItems'](_0x193460,_0x494054){const _0x4845dd=_0x494054['getFirstRange']()['getWalker'](),_0x3eecb2='insertion'==_0x494054['type']?'add':'remove';for(const _0x4c809d of _0x4845dd){const _0x274188=_0x4c809d['item'],_0x105cc2=_0x193460[_0x193460['length']-0x1];if(_0x274188['is']('$textProxy'))_0x105cc2&&_0x105cc2['type']['indexOf']('Container')>-0x1&&_0x193460['pop'](),_0x105cc2&&'text'==_0x105cc2['type']?_0x105cc2[_0x3eecb2]+=_0x274188['data']:_0x193460['push']({'type':'text','add':'add'==_0x3eecb2?_0x274188['data']:'','remove':'remove'==_0x3eecb2?_0x274188['data']:''});else{if(this['_schema']['isObject'](_0x274188)){const _0x2df2d9=_0x274188;if(_0x105cc2&&_0x105cc2['type']['indexOf']('Container')>-0x1&&_0x193460['pop'](),'elementEnd'==_0x4c809d['type'])continue;_0x105cc2&&_0x105cc2['type']==_0x3eecb2+'Object'&&_0x105cc2['element']['name']==_0x2df2d9['name']?_0x105cc2['quantity']++:_0x193460['push']({'type':_0x3eecb2+'Object','element':_0x2df2d9,'quantity':0x1}),_0x4845dd['skip'](_0x22c939=>!('elementEnd'==_0x22c939['type']&&_0x22c939['item']==_0x274188));}else{if(this['_schema']['checkChild'](_0x274188,'$text')||_0x274188['is']('element','softBreak')){const _0x28ca6b=_0x274188;if('add'==_0x3eecb2&&'elementStart'==_0x4c809d['type']||'remove'==_0x3eecb2&&'elementEnd'==_0x4c809d['type'])continue;if(_0x105cc2&&-0x1==_0x105cc2['type']['indexOf']('Container')){'text'==_0x105cc2['type']&&(_0x105cc2[_0x3eecb2]+='\x0a');continue;}let _0x8b720a;if(_0x8b720a='add'==_0x3eecb2?_0x28ca6b['nextSibling']&&!this['_schema']['isObject'](_0x28ca6b['nextSibling'])?_0x28ca6b['nextSibling']:null:_0x28ca6b['previousSibling']&&!this['_schema']['isObject'](_0x28ca6b['previousSibling'])?_0x28ca6b['previousSibling']:null,_0x28ca6b['isEmpty']||_0x8b720a&&_0x8b720a['isEmpty']){const _0x59b6eb=_0x8b720a&&_0x8b720a['isEmpty']?_0x8b720a:_0x28ca6b;_0x105cc2&&_0x105cc2['type']==_0x3eecb2+'EmptyContainer'&&_0x105cc2['element']['name']==_0x59b6eb['name']?_0x105cc2['quantity']++:_0x193460['push']({'type':_0x3eecb2+'EmptyContainer','element':_0x59b6eb,'quantity':0x1});}else _0x193460['push']({'type':_0x3eecb2+'Container','element':_0x28ca6b});}}}}}['_resolveDescriptionItems'](_0x58a48e){const _0xdd2e1c=this['_locale'],_0x3c1bfc=[],_0x55ef7b=[],_0x18ef16=[];for(const _0x13b7c of _0x58a48e)switch(_0x13b7c['type']){case'text':if(_0x13b7c['add']=_0x13b7c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x13b7c['remove']=_0x13b7c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x13b7c['add']&&''!=_0x13b7c['remove']){_0x3c1bfc['push']({'type':'replace','content':o(_0xdd2e1c,'REPLACE_TEXT',['\x22'+_0x13b7c['remove']+'\x22','\x22'+_0x13b7c['add']+'\x22'])});continue;}if(null!=_0x13b7c['add']['match'](/^ +$/)){_0x3c1bfc['push']({'type':'insertion','content':o(_0xdd2e1c,'*Insert:*\x20%0',o(_0xdd2e1c,'ELEMENT_SPACE',_0x13b7c['add']['length']))});continue;}if(null!=_0x13b7c['remove']['match'](/^ +$/)){_0x3c1bfc['push']({'type':'deletion','content':o(_0xdd2e1c,'*Remove:*\x20%0',o(_0xdd2e1c,'ELEMENT_SPACE',_0x13b7c['remove']['length']))});continue;}if(''!=_0x13b7c['add']){_0x3c1bfc['push']({'type':'insertion','content':o(_0xdd2e1c,'*Insert:*\x20%0','\x22'+_0x13b7c['add']+'\x22')});continue;}_0x3c1bfc['push']({'type':'deletion','content':o(_0xdd2e1c,'*Remove:*\x20%0','\x22'+_0x13b7c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3c1bfc['push']({'type':'insertion','content':o(_0xdd2e1c,'*Insert:*\x20%0',this['getItemLabel'](_0x13b7c['element'],_0x13b7c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3c1bfc['push']({'type':'deletion','content':o(_0xdd2e1c,'*Remove:*\x20%0',this['getItemLabel'](_0x13b7c['element'],_0x13b7c['quantity']))});continue;case'addContainer':_0x3c1bfc['push']({'type':'insertion','content':o(_0xdd2e1c,'*Split:*\x20%0',this['getItemLabel'](_0x13b7c['element'],_0x13b7c['quantity']))});continue;case'removeContainer':_0x3c1bfc['push']({'type':'deletion','content':o(_0xdd2e1c,'*Merge:*\x20%0',this['getItemLabel'](_0x13b7c['element'],_0x13b7c['quantity']))});continue;case'addFormat':_0x55ef7b['push'](_0x13b7c['key']);continue;case'removeFormat':_0x18ef16['push'](_0x13b7c['key']);continue;default:_0x3c1bfc['push'](_0x13b7c);}if(_0x55ef7b['length']){const _0x50440e=_0x55ef7b['map'](_0x2cac40=>this['_attributeLabels']['has'](_0x2cac40)?this['_attributeLabels']['get'](_0x2cac40):_0x2cac40)['join'](',\x20');_0x3c1bfc['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x50440e)});}if(_0x18ef16['length']){const _0x21a058=_0x18ef16['map'](_0x9934fb=>this['_attributeLabels']['has'](_0x9934fb)?this['_attributeLabels']['get'](_0x9934fb):_0x9934fb)['join'](',\x20');_0x3c1bfc['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x21a058)});}return _0x3c1bfc;}['_handleCustomCallbackDescription'](_0x96ef52){for(const _0x5d1e9c of this['_customCallbacks']){const _0x1b8711=_0x5d1e9c(_0x96ef52);if(_0x1b8711&&'type'in _0x1b8711)return _0x1b8711;}}['_handleAttributeSuggestionDescription'](_0x2affe8,_0x218445){const _0x3cad30=_0x218445['data'],_0x4c145d=void 0x0===_0x3cad30['newValue']?'removeFormat':'addFormat';_0x2affe8['push']({'type':_0x4c145d,'key':_0x3cad30['key']});}['_handleRenameSuggestionDescription'](_0x40d8e7,_0x4a13bd){_0x40d8e7['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4a13bd['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x397660,_0x2cc075,_0xe4e501){if(this['_addDescriptionItems'](_0x397660,_0x2cc075),_0xe4e501&&_0xe4e501['getFirstRange']()&&!_0x2cc075['getFirstRange']()['end']['isEqual'](_0xe4e501['getFirstRange']()['start'])){const _0x188e9e=_0x397660[_0x397660['length']-0x1],_0x28d750='insertion'==_0x2cc075['type']?'add':'remove';_0x188e9e&&'text'==_0x188e9e['type']&&(_0x188e9e[_0x28d750]+='\x0a');}}}class U extends _0x31ef78{['afterInit'](){const _0x14ac1d=this['editor'],_0x163a09=_0x14ac1d['plugins']['get']('TrackChangesEditing');_0x14ac1d['commands']['get']('showAIAssistant')&&_0x163a09['enableCommand']('showAIAssistant');}}class V extends _0x31ef78{['afterInit'](){const _0x468413=this['editor'],_0x1920ff=_0x468413['locale'];if(!_0x468413['plugins']['has']('AlignmentEditing'))return;const _0x23ca89=_0x468413['plugins']['get']('TrackChangesEditing');_0x23ca89['enableDefaultAttributesIntegration']('alignment'),_0x23ca89['registerBlockAttribute']('alignment'),_0x23ca89['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1920ff,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x235e97=this['editor'],_0x2d5584=_0x235e97['locale'];_0x235e97['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4decca=>{if('formatBlock'!=_0x4decca['type'])return;const {data:_0x8a1bd0}=_0x4decca;if(_0x8a1bd0&&'alignment'==_0x8a1bd0['commandName']){const _0x4e9fa0=_0x8a1bd0['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2d5584,'*Format:*\x20%0',function(_0x5b7221){switch(_0x5b7221){case'left':return o(_0x2d5584,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2d5584,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2d5584,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2d5584,'FORMAT_JUSTIFY_TEXT');}}(_0x4e9fa0))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x31ef78{['afterInit'](){const _0x158e62=this['editor'],_0x1b415c=_0x158e62['plugins']['get']('TrackChangesEditing'),_0x5ccc6b=_0x158e62['locale'];for(const _0x1c820d of ti){if(!_0x158e62['plugins']['has'](_0x1c820d))continue;const _0x504a7f=_0x1c820d['slice'](0x0,-0x7)['toLowerCase'](),_0x3c3607='FORMAT_'+_0x504a7f['toUpperCase']();_0x1b415c['enableDefaultAttributesIntegration'](_0x504a7f),_0x1b415c['registerInlineAttribute'](_0x504a7f),_0x1b415c['descriptionFactory']['registerAttributeLabel'](_0x504a7f,o(_0x5ccc6b,_0x3c3607));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x444982=this['editor'],_0x1247cf=_0x444982['locale'],_0x3bbd30=_0x444982['plugins']['get']('TrackChangesEditing');function _0x34e5ef(_0x67ed75,_0x490496){_0x3bbd30['descriptionFactory']['registerDescriptionCallback'](_0x259032=>{if('formatInline'!=_0x259032['type'])return;const {data:_0x1b5a97}=_0x259032;return _0x1b5a97&&_0x1b5a97['commandName']===_0x67ed75?_0x1b5a97['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1247cf,'*Format:*\x20%0',_0x490496)}:{'type':'format','content':o(_0x1247cf,'*Remove\x20format:*\x20%0',_0x490496)}:void 0x0;});}_0x34e5ef('bold',o(_0x1247cf,'FORMAT_BOLD')),_0x34e5ef('italic',o(_0x1247cf,'FORMAT_ITALIC')),_0x34e5ef('underline',o(_0x1247cf,'FORMAT_UNDERLINE')),_0x34e5ef('code',o(_0x1247cf,'FORMAT_CODE')),_0x34e5ef('strikethrough',o(_0x1247cf,'FORMAT_STRIKETHROUGH')),_0x34e5ef('subscript',o(_0x1247cf,'FORMAT_SUBSCRIPT')),_0x34e5ef('superscript',o(_0x1247cf,'FORMAT_SUPERSCRIPT'));}}class F extends _0x31ef78{['afterInit'](){const _0x520ded=this['editor'],_0x448741=_0x520ded['locale'];if(!_0x520ded['plugins']['has']('BlockQuoteEditing'))return;const _0x433b87=_0x520ded['plugins']['get']('TrackChangesEditing'),_0xc06d2a=this['editor']['commands']['get']('blockQuote');_0x433b87['enableCommand']('blockQuote',(_0xb45b6,_0x5a7169={})=>{const _0x44c57c=this['editor']['model']['document']['selection'],_0x35e462=_0x5a7169&&void 0x0!==_0x5a7169['forceValue']?_0x5a7169['forceValue']:!_0xc06d2a['value'];let _0x18ab90=[];if(_0x35e462){const _0xcba69b=Array['from'](_0x44c57c['getSelectedBlocks']())['filter'](_0x1e54ae=>oo(_0x1e54ae)||function(_0x2b7c10,_0x1545e9){const _0x5da5e5=_0x1545e9['checkChild'](_0x2b7c10['parent'],'blockQuote'),_0x52cbe2=_0x1545e9['checkChild'](['$root','blockQuote'],_0x2b7c10);return _0x5da5e5&&_0x52cbe2;}(_0x1e54ae,this['editor']['model']['schema']));_0x18ab90=to(_0xcba69b,_0x520ded['model']);}else{const _0x4defdc=Array['from'](_0x44c57c['getSelectedBlocks']())['filter'](_0x5119db=>oo(_0x5119db));_0x18ab90=to(_0x4defdc,_0x520ded['model']);}_0x520ded['model']['change'](()=>{for(const _0x22f283 of _0x18ab90)_0x433b87['markBlockFormat'](_0x22f283,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x35e462}]});});}),_0x433b87['descriptionFactory']['registerDescriptionCallback'](_0x1f6529=>{const {data:_0x4abb3c}=_0x1f6529;if(_0x4abb3c&&'blockQuote'==_0x4abb3c['commandName']){const _0x5d7e69=o(_0x448741,'ELEMENT_BLOCK_QUOTE');return _0x4abb3c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x448741,'*Set\x20format:*\x20%0',_0x5d7e69)}:{'type':'format','content':o(_0x448741,'*Remove\x20format:*\x20%0',_0x5d7e69)};}});}}function oo(_0x3df1d4){return'blockQuote'==_0x3df1d4['parent']['name'];}class L extends _0x31ef78{['afterInit'](){const _0x142669=this['editor'],_0x2ffca6=_0x142669['locale'],_0x1ef09e=_0x142669['plugins']['get']('TrackChangesEditing');_0x142669['plugins']['has']('BookmarkEditing')&&(_0x1ef09e['enableCommand']('insertBookmark'),_0x1ef09e['enableDefaultAttributesIntegration']('updateBookmark'),_0x1ef09e['registerBlockAttribute']('bookmarkId'),_0x1ef09e['descriptionFactory']['registerDescriptionCallback'](_0x45511f=>{if('insertion'!=_0x45511f['type']&&'deletion'!=_0x45511f['type']&&'attribute'!=_0x45511f['type'])return;const _0x54ce19=_0x45511f['getContainedElement']();if(null==_0x54ce19)return;if(!_0x54ce19['is']('element','bookmark'))return;const _0x1a0bf6=_0x54ce19['getAttribute']('bookmarkId');if('insertion'==_0x45511f['type'])return{'type':'insertion','content':o(_0x2ffca6,'*Insert:*\x20%0','\x22'+_0x1a0bf6+'\x22\x20'+o(_0x2ffca6,'ELEMENT_BOOKMARK'))};if('deletion'==_0x45511f['type'])return{'type':'deletion','content':o(_0x2ffca6,'*Remove:*\x20%0','\x22'+_0x1a0bf6+'\x22\x20'+o(_0x2ffca6,'ELEMENT_BOOKMARK'))};const {data:_0x14f433}=_0x45511f;if(!_0x14f433||'bookmarkId'!=_0x14f433['key'])return;return{'type':'format','content':o(_0x2ffca6,'*Set\x20bookmark:*\x20%0','\x22'+_0x14f433['newValue']+'\x22')};}));}}class J extends _0x31ef78{['afterInit'](){const _0x1f795a=this['editor'];_0x1f795a['plugins']['has']('CaseChange')&&(_0x1f795a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1f795a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1f795a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x31ef78{['afterInit'](){const _0x32d4da=this['editor'];_0x32d4da['commands']['get']('ckbox')&&_0x32d4da['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x31ef78{['afterInit'](){const _0x4052ee=this['editor'];if(!_0x4052ee['plugins']['has']('CodeBlock'))return;const _0x4ef559=_0x4052ee['plugins']['get']('TrackChangesEditing'),_0x1cdebe=_0x4052ee['locale'],_0xe108a5=_0x4052ee['config']['get']('codeBlock')['languages'],_0x117eff=_0x4052ee['commands']['get']('codeBlock');_0x4ef559['enableCommand']('indentCodeBlock'),_0x4ef559['enableCommand']('outdentCodeBlock'),_0x4ef559['enableCommand']('codeBlock',(_0x5ef01e,_0xeb3171={})=>{const _0xf552db=_0x4052ee['model'],_0x52626f=_0x4052ee['model']['document']['selection'],_0x3b8ccf=_0xeb3171&&void 0x0!==_0xeb3171['forceValue']?_0xeb3171['forceValue']:!_0x117eff['value'];let _0x47141c;_0xeb3171['language']||(_0xeb3171['language']=_0xe108a5[0x0]['language']),_0x47141c=_0x3b8ccf?Array['from'](_0x52626f['getSelectedBlocks']())['filter'](_0x290ba9=>eo(_0x290ba9)||function(_0x10892c,_0x2d9864){if(_0x10892c['is']('rootElement')||_0x2d9864['isLimit'](_0x10892c))return!0x1;return _0x2d9864['checkChild'](_0x10892c['parent'],'codeBlock');}(_0x290ba9,_0xf552db['schema'])):Array['from'](_0x52626f['getSelectedBlocks']())['filter'](_0x5c2f5e=>eo(_0x5c2f5e));const _0x181ed5=to(_0x47141c,_0xf552db);_0xf552db['change'](()=>{for(const _0x29af2c of _0x181ed5)_0x4ef559['markBlockFormat'](_0x29af2c,{'commandName':'codeBlock','commandParams':[{..._0xeb3171,'forceValue':_0x3b8ccf}],'formatGroupId':'blockName'});});}),(_0x4ef559['descriptionFactory']['registerElementLabel']('codeBlock',_0x3ccffc=>o(_0x1cdebe,'ELEMENT_CODE_BLOCK',_0x3ccffc)),_0x4ef559['descriptionFactory']['registerDescriptionCallback'](_0x2fb05d=>{if('formatBlock'!=_0x2fb05d['type'])return;const _0x977ef2=_0x1cdebe['t'],{data:_0x46d16f}=_0x2fb05d;if(!_0x46d16f||'codeBlock'!=_0x46d16f['commandName'])return;const _0x1b5194=_0x46d16f['commandParams'][0x0]['language'],_0x9955ba=_0x977ef2(_0xe108a5['find'](_0x48d413=>_0x48d413['language']===_0x1b5194)['label'])['toLowerCase']();return _0x46d16f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1cdebe,'*Set\x20format:*\x20%0',o(_0x1cdebe,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x9955ba+')')}:{'type':'format','content':o(_0x1cdebe,'*Remove\x20format:*\x20%0',o(_0x1cdebe,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5bfde2){return'codeBlock'==_0x5bfde2['name'];}class z extends _0x31ef78{['afterInit'](){const _0x1ecc71=this['editor'];if(!_0x1ecc71['plugins']['has']('CommentsEditing'))return;_0x1ecc71['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x14a97d,_0x107f79,_0x3c14b2){const _0xf5d599=[];for(const _0x3dfbc2 of _0x107f79['getItems']())_0x3dfbc2['hasAttribute'](_0x14a97d)&&_0xf5d599['push'](_0x3c14b2['createRangeOn'](_0x3dfbc2));return _0xf5d599;}function De(_0x79ce72,_0x3603b0,{showActiveMarker:_0x23cf16=!0x0}={}){const _0x27c07d=_0x79ce72['plugins']['get']('TrackChangesEditing');return(_0x3aa8d2,_0x8c61b5,_0xec4950)=>{if(!_0xec4950['consumable']['test'](_0x8c61b5['markerRange'],_0x3aa8d2['name']))return;const _0xd3e370=_0x8c61b5['markerRange']['getWalker'](),_0x567dfd=_0x8c61b5['markerRange']['start'],_0x40c5f6=_0x79ce72['model']['schema'];let _0x39a916=null,_0x5d0bdc=null,_0xad35b1=!0x1,_0x506184=!0x1;for(const _0x129551 of _0xd3e370){const _0x1e1b2d=_0x129551['item'];_0xad35b1=_0xad35b1||_0x40c5f6['isContent'](_0x1e1b2d);const _0xa1eedb=_0xec4950['mapper']['toViewElement'](_0x1e1b2d);if(_0xa1eedb&&_0xa1eedb['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x129551['type']&&(_0x40c5f6['isBlock'](_0x1e1b2d)&&!_0x40c5f6['isLimit'](_0x1e1b2d)&&(_0x1e1b2d['nextSibling']||_0x567dfd['isAtEnd']?_0x39a916&&_0x39a916['parent']==_0x1e1b2d||(_0x39a916=_0x1e1b2d,_0x236e08(_0x129551['previousPosition']),_0x506184=!0x0):_0x5d0bdc=_0x5d0bdc||_0x129551['previousPosition']));}function _0x236e08(_0x4993cf){const {authorId:_0x977f36}=_0x27c07d['_splitMarkerName'](_0x8c61b5['markerName']),_0x53c740=_0xec4950['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3603b0,'data-author-id':_0x977f36}),_0x239dd0=_0xec4950['mapper']['toViewPosition'](_0x4993cf);_0x23cf16&&_0x27c07d['activeMarkers']['includes'](_0x8c61b5['markerName'])&&_0xec4950['writer']['addClass']('ck-suggestion-marker--active',_0x53c740),_0xec4950['writer']['insert'](_0x239dd0,_0x53c740),_0xec4950['mapper']['bindElementToMarker'](_0x53c740,_0x8c61b5['markerName']);}_0xad35b1||_0x506184||!_0x5d0bdc||_0x236e08(_0x5d0bdc);};}class K extends _0x31ef78{static get['requires'](){return[_0xb39944];}['init'](){const _0x32e6c0=this['editor'],_0x2c8113=_0x32e6c0['plugins']['get']('TrackChangesEditing');_0x2c8113['enableCommand']('delete');const _0x52b35e=_0x32e6c0['commands']['get']('deleteForward');_0x2c8113['enableCommand']('deleteForward',(_0x736d46,_0x2acb97={})=>{const _0x26c6f2=_0x32e6c0['model']['createSelection'](_0x32e6c0['model']['document']['selection']);_0x26c6f2['isCollapsed']&&_0x32e6c0['model']['modifySelection'](_0x26c6f2,{'direction':'forward','unit':_0x2acb97['unit']});const _0x14a2b9=_0x26c6f2['getFirstRange'](),_0x4de2c2=_0x512f92['fromRange'](_0x14a2b9);let _0x3b6e31;_0x736d46(_0x2acb97),_0x3b6e31='$graveyard'==_0x4de2c2['root']['rootName']?_0x32e6c0['model']['createRange'](_0x14a2b9['start']):_0x32e6c0['model']['createRange'](_0x4de2c2['start'],_0x4de2c2['end']),_0x4de2c2['detach'](),_0x32e6c0['model']['enqueueChange'](_0x52b35e['buffer']['batch'],_0x181441=>{_0x52b35e['buffer']['lock'](),_0x181441['setSelection'](_0x181441['createRange'](_0x3b6e31['end'])),_0x52b35e['buffer']['unlock']();});}),_0x32e6c0['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x32e6c0,'merge'),{'priority':'high'}),_0x32e6c0['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x41c09b,_0x1706e6,_0x54acbb)=>{_0x54acbb['options']['showSuggestionHighlights']&&De(_0x32e6c0,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x41c09b,_0x1706e6,_0x54acbb);},{'priority':'high'}),_0x32e6c0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3ecaae,_0x1d0a10,_0x2b63ab)=>{const _0x3d49a9=_0x2b63ab['mapper']['markerNameToElements'](_0x1d0a10['markerName']);if(_0x3d49a9){for(const _0x5d0bff of _0x3d49a9)_0x5d0bff['is']('uiElement')&&(_0x2b63ab['mapper']['unbindElementFromMarkerName'](_0x5d0bff,_0x1d0a10['markerName']),_0x2b63ab['writer']['remove'](_0x5d0bff));}},{'priority':'high'});}}class W extends _0x31ef78{['afterInit'](){const _0x476b20=this['editor'];if(!_0x476b20['plugins']['has']('ListEditing'))return;const _0xff949=_0x476b20['locale'],_0x5dfc9b=_0x476b20['plugins']['get']('TrackChangesEditing'),_0x4773c1=_0x476b20['plugins']['has']('TodoListEditing'),_0x299abd=!!_0x476b20['config']['get']('list.multiBlock');function _0x132b64(_0x76b06e){return{'type':'format','content':''+o(_0xff949,'*Set\x20format:*\x20%0',_0x76b06e)};}function _0x58a367(_0x2ac314){return{'type':'format','content':''+o(_0xff949,'*Remove\x20format:*\x20%0',_0x2ac314)};}_0x5dfc9b['enableDefaultAttributesIntegration']('numberedList'),_0x5dfc9b['enableDefaultAttributesIntegration']('bulletedList'),_0x5dfc9b['enableDefaultAttributesIntegration']('customNumberedList'),_0x5dfc9b['enableDefaultAttributesIntegration']('customBulletedList'),_0x5dfc9b['enableDefaultAttributesIntegration']('indentList'),_0x5dfc9b['enableDefaultAttributesIntegration']('outdentList'),_0x5dfc9b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5dfc9b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5dfc9b['registerBlockAttribute']('listItemId'),_0x5dfc9b['registerBlockAttribute']('listType'),_0x5dfc9b['registerBlockAttribute']('listIndent'),_0x299abd&&(_0x5dfc9b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5dfc9b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4773c1&&(_0x5dfc9b['enableDefaultAttributesIntegration']('todoList'),_0x5dfc9b['enableDefaultAttributesIntegration']('checkTodoList'),_0x5dfc9b['registerBlockAttribute']('todoListChecked'),_0x5dfc9b['descriptionFactory']['registerDescriptionCallback'](_0x5b5b9a=>{const {data:_0x58bda7}=_0x5b5b9a;if(_0x58bda7&&'todoListChecked'==_0x58bda7['key'])return{'type':'format','content':_0x58bda7['newValue']?o(_0xff949,'*Check\x20item*'):o(_0xff949,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x21eb6d=>{if(_0x21eb6d['batch']['isUndo'])return!0x1;let _0x5aa1d5=!0x1;const _0xfd4bfc=_0x5dfc9b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c86b5=>'todoListChecked'===_0x5dfc9b['_getAttributeKey'](_0x5c86b5));for(const _0x468208 of _0xfd4bfc){'todo'!=_0x468208['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5dfc9b['_findSuggestions'](_0x468208['getFirstRange'](),'attribute')['find'](_0x456369=>'listType'===_0x5dfc9b['_getAttributeKey'](_0x456369['suggestion']))||(_0x21eb6d['removeMarker'](_0x468208['getFirstMarker']()),_0x5aa1d5=!0x0));}return _0x5aa1d5;})),_0x5dfc9b['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xff949,'FORMAT_INDENT'));const _0x1452f6={'type':'format','content':''};_0x5dfc9b['descriptionFactory']['registerDescriptionCallback'](_0xc18c3a=>{const {data:_0x324a81}=_0xc18c3a;if(!_0x324a81||'listType'!=_0x324a81['key'])return;let _0x16abdb=_0xc18c3a['head'];for(;_0x16abdb;){if(_0x16abdb['data']&&(('listStyle'==_0x16abdb['data']['key']||'listMarkerStyle'==_0x16abdb['data']['key'])&&(_0x16abdb['data']['newValue']&&'default'!=_0x16abdb['data']['newValue']||'default'!=_0x16abdb['data']['oldValue']&&!_0x324a81['newValue'])||!_0x299abd&&_0x16abdb['data']['key']==m))return _0x1452f6;_0x16abdb=_0x16abdb['next'];}if(null==_0x324a81['newValue'])switch(_0x324a81['oldValue']){case'bulleted':return _0x58a367(o(_0xff949,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x58a367(o(_0xff949,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x58a367(o(_0xff949,'ELEMENT_TODO_LIST'));}switch(_0x324a81['newValue']){case'bulleted':return _0x132b64(o(_0xff949,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x132b64(o(_0xff949,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x132b64(o(_0xff949,'ELEMENT_TODO_LIST'));}}),_0x5dfc9b['descriptionFactory']['registerDescriptionCallback'](_0x3cb2bb=>{const {data:_0x93dfe5}=_0x3cb2bb;if(_0x93dfe5&&'listIndent'==_0x93dfe5['key'])return null==_0x93dfe5['newValue']||null==_0x93dfe5['oldValue']&&0x0==_0x93dfe5['newValue']?_0x1452f6:void 0x0;}),_0x5dfc9b['descriptionFactory']['registerDescriptionCallback'](_0x3a7b7a=>{if('attribute'!=_0x3a7b7a['type'])return;const {data:_0x51b9a9}=_0x3a7b7a;if(!_0x51b9a9||'listItemId'!=_0x51b9a9['key'])return;const _0x427c3b=Te(_0x3a7b7a);return'newValue'==_0x427c3b?{'type':'format','content':o(_0xff949,'*Merge:*\x20list\x20item')}:'oldValue'==_0x427c3b?{'type':'format','content':o(_0xff949,'*Split:*\x20list\x20item')}:_0x1452f6;}),_0x476b20['model']['document']['registerPostFixer'](_0x57bf0d=>this['listItemIdFixer'](_0x57bf0d)),_0x476b20['model']['document']['registerPostFixer'](_0x1eb625=>this['noTrackChangesFixer'](_0x1eb625)),_0x476b20['model']['document']['on']('change:data',(_0x4e806e,_0x2aea1e)=>{if(_0x2aea1e['isUndo']||!_0x2aea1e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x140b4c){if(_0x140b4c['batch']['isUndo']||!_0x140b4c['batch']['isLocal'])return!0x1;let _0xe29613=!0x1;const _0x4c1e1e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f4e65=>_0x4f4e65['data']&&'listItemId'==_0x4f4e65['data']['key'])['filter'](_0x1c6263=>_0x1c6263['data']['newValue']&&_0x1c6263['data']['oldValue']);for(const _0x5c621d of _0x4c1e1e)Te(_0x5c621d)||(_0x140b4c['removeMarker'](_0x5c621d['getFirstMarker']()),_0xe29613=!0x0);return _0xe29613;}['noTrackChangesFixer'](_0x5bc972){if(_0x5bc972['batch']['isUndo']||!_0x5bc972['batch']['isLocal'])return!0x1;const _0x256b89=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x256b89['trackChangesCommand']['value'])return!0x1;let _0x237bac=!0x1;const _0x14e91=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x59b7f1=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x28e1f4=>'attribute'==_0x28e1f4['type'])['filter'](_0x3ae329=>_0x14e91['includes'](_0x3ae329['attributeKey']));if(0x0==_0x59b7f1['length'])return _0x237bac;for(const _0x18f7a4 of _0x59b7f1){const _0x5a22f8=_0x256b89['_findSuggestions'](_0x18f7a4['range'],'attribute')['filter'](_0x57c49b=>!_0x57c49b['meta']['isNextTo'])['map'](_0x1d8feb=>_0x1d8feb['suggestion'])['filter'](_0x48cc33=>{const _0x4f18f5=_0x256b89['_getAttributeKey'](_0x48cc33);return _0x14e91['includes'](_0x4f18f5);});if(_0x5a22f8['length']){for(const _0x506e6c of _0x5a22f8)_0x5bc972['removeMarker'](_0x506e6c['getFirstMarker']());_0x237bac=!0x0;}}return _0x237bac;}['assureChains'](){const _0x5bd905=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4846be=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x21545f;const _0x181f45=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x248c47=>{if(_0x248c47['data']['oldRange']||!_0x248c47['data']['newRange'])return null;if(!_0x248c47['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4ebeba}=_0x5bd905['_splitMarkerName'](_0x248c47['name']);if(!_0x5bd905['hasSuggestion'](_0x4ebeba))return null;const _0x4d5075=_0x5bd905['getSuggestion'](_0x4ebeba);return _0x4846be['includes'](_0x4d5075['data']['key']);})['map'](_0x426259=>{const {id:_0x88bcb0}=_0x5bd905['_splitMarkerName'](_0x426259['name']),_0x1a8850=_0x5bd905['getSuggestion'](_0x88bcb0);return _0x21545f=_0x1a8850['attributes']['groupId'],_0x1a8850['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x181f45['size'])return;const _0x4d2232=_0x5bd905['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x58f047=>'attribute'==_0x58f047['type']&&_0x58f047['data']&&_0x4846be['includes'](_0x58f047['data']['key'])&&_0x58f047['attributes']['groupId']!=_0x21545f)['map'](_0x28bd2b=>({'listItem':_0x28bd2b['getFirstRange']()['start']['nodeAfter'],'groupId':_0x28bd2b['attributes']['groupId']})),_0x5a8ca6=new Set();for(const {groupId:_0x108fe0,listItem:_0x309406}of _0x4d2232)_0x181f45['has'](_0x309406)&&_0x5a8ca6['add'](_0x108fe0);for(const _0x44f54e of _0x5bd905['getSuggestions']())_0x5a8ca6['has'](_0x44f54e['attributes']['groupId'])&&_0x44f54e['setAttribute']('groupId',_0x21545f);}['_supportLegacySuggestions'](){const _0x2c1a8f=this['editor'],_0x55b841=_0x2c1a8f['locale'],_0x2a0c1b=_0x2c1a8f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2a0c1b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2fc179,_0x481cf6){const _0x56fb6b=[];for(let _0x105a07 of _0x2fc179)_0x105a07['start']['nodeAfter']===_0x105a07['end']['parent']&&(_0x105a07=_0x2c1a8f['model']['createRange'](_0x2c1a8f['model']['createPositionAt'](_0x105a07['start']['nodeAfter'],0x0))),_0x56fb6b['push'](_0x105a07);_0x2c1a8f['model']['change'](_0x144b7b=>{const _0x133c4d=_0x2c1a8f['model']['document']['selection'],_0x55b863=Array['from'](_0x133c4d['getRanges']())['map'](_0x878fd1=>_0x512f92['fromRange'](_0x878fd1));_0x144b7b['setSelection'](_0x56fb6b),_0x2c1a8f['commands']['get'](_0x481cf6['commandName'])['refresh'](),_0x481cf6['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2c1a8f['execute'](_0x481cf6['commandName'],..._0x481cf6['commandParams']),_0x144b7b['setSelection'](_0x55b863);for(const _0xa8dda7 of _0x55b863)_0xa8dda7['detach']();});}),_0x2a0c1b['descriptionFactory']['registerElementLabel'](function(_0x10028f){const _0x3e2d31=!_0x2c1a8f['model']['schema']['isObject'](_0x10028f),_0x24dd2c=_0x10028f['previousSibling'],_0x1d3a84=_0x10028f['nextSibling'],_0x3ca533=_0x10028f['getAttribute']('listItemId'),_0x4e3d34=!_0x24dd2c||_0x24dd2c['getAttribute']('listItemId')!==_0x3ca533,_0x37d8a1=!_0x1d3a84||_0x1d3a84['getAttribute']('listItemId')!==_0x3ca533;return _0x3e2d31&&Boolean(_0x3ca533)&&_0x4e3d34&&_0x37d8a1;},_0x558ba2=>o(_0x55b841,'ELEMENT_LIST_ITEM',_0x558ba2));}['_registerLegacyDescription'](){const _0x3d8bee=this['editor'],_0x56af66=_0x3d8bee['locale'];function _0x4fd605(_0x2a2991){const _0x2b5c20=_0x3d8bee['commands']['get']('bulletedList')['value'],_0x20f85c=_0x3d8bee['commands']['get']('numberedList')['value'];return'numberedList'===_0x2a2991?_0x2b5c20:_0x20f85c;}_0x3d8bee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x352261){if('formatBlock'!=_0x352261['type'])return;const {data:_0x11bb18}=_0x352261;if(!_0x11bb18)return;let _0x315f69,_0x39da83,_0x50a0bb,_0x8c84ab;switch(_0x11bb18['commandName']){case'bulletedList':_0x50a0bb=_0x11bb18['commandParams'][0x0]['forceValue'],_0x8c84ab=_0x4fd605(_0x11bb18['commandName']),_0x315f69=_0x50a0bb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x8c84ab&&_0x3d8bee['config']['get']('list.multiBlock')||(_0x315f69='*Change\x20to:*\x20%0'),_0x39da83={'type':'format','content':o(_0x56af66,_0x315f69,o(_0x56af66,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x50a0bb=_0x11bb18['commandParams'][0x0]['forceValue'],_0x8c84ab=_0x4fd605(_0x11bb18['commandName']),_0x315f69=_0x50a0bb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x8c84ab&&_0x3d8bee['config']['get']('list.multiBlock')||(_0x315f69='*Change\x20to:*\x20%0'),_0x39da83={'type':'format','content':o(_0x56af66,_0x315f69,o(_0x56af66,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x315f69='*Indent:*\x20%0',_0x39da83={'type':'format','content':o(_0x56af66,_0x315f69,o(_0x56af66,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x315f69=function(_0x3e4ffb){const _0xc5474e=_0x3e4ffb['getFirstRange']();let _0x2dde27=_0xc5474e['start']['nodeAfter'];for(;_0x2dde27&&_0xc5474e['containsItem'](_0x2dde27);){if(_0x2dde27['getAttribute']('listIndent')>0x0)return!0x1;_0x2dde27=_0x2dde27['nextSibling'];}return!0x0;}(_0x352261)?o(_0x56af66,'*Format:*\x20remove\x20from\x20%0',o(_0x56af66,function(_0x308a36){return'ELEMENT_'+_0x308a36['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x352261))):o(_0x56af66,'*Outdent:*\x20%0',o(_0x56af66,'ELEMENT_LIST_ITEM')),_0x39da83={'type':'format','content':_0x315f69};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x11bb18['multipleBlocks']&&(_0x315f69='*Merge:*\x20%0',_0x39da83={'type':'deletion','content':o(_0x56af66,_0x315f69,o(_0x56af66,'ELEMENT_LIST_ITEM'))});}return _0x39da83;});}}function Te(_0x450cbf){let _0xbd2574=_0x450cbf['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xbd2574;){const _0x3f9138=_0xbd2574['getAttribute']('listItemId');if(!_0x3f9138)return!0x1;if(_0x3f9138==_0x450cbf['data']['newValue'])return'newValue';if(_0x3f9138==_0x450cbf['data']['oldValue'])return'oldValue';_0xbd2574=_0xbd2574['previousSibling'];}return!0x1;}class Se extends _0x31ef78{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x17733a=this['editor']['config']['get']('list.properties'),_0x20f4e6=this['editor']['plugins']['get']('TrackChangesEditing');_0x17733a['styles']&&(_0x20f4e6['enableDefaultAttributesIntegration']('listStyle'),_0x20f4e6['registerBlockAttribute']('listStyle')),_0x17733a['reversed']&&(_0x20f4e6['enableDefaultAttributesIntegration']('listReversed'),_0x20f4e6['registerBlockAttribute']('listReversed')),_0x17733a['startIndex']&&(_0x20f4e6['enableDefaultAttributesIntegration']('listStart'),_0x20f4e6['registerBlockAttribute']('listStart'));const _0x329d41={'type':'format','content':''};_0x20f4e6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x167f4a=this['editor']['locale'];_0x20f4e6['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x167f4a,'FORMAT_LIST_REVERSED')),_0x20f4e6['descriptionFactory']['registerDescriptionCallback'](_0x50a4ff=>{const {data:_0x1c9f90}=_0x50a4ff;if(_0x1c9f90&&'listReversed'==_0x1c9f90['key'])return null==_0x1c9f90['newValue']||0x0==_0x1c9f90['newValue']&&null==_0x1c9f90['oldValue']?_0x329d41:void 0x0;}),_0x20f4e6['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x167f4a,'FORMAT_LIST_START')),_0x20f4e6['descriptionFactory']['registerDescriptionCallback'](_0x539064=>{const {data:_0xed2659}=_0x539064;if(_0xed2659&&'listStart'==_0xed2659['key'])return null==_0xed2659['newValue']||0x1==_0xed2659['newValue']&&null==_0xed2659['oldValue']?_0x329d41:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x578403=>{if(_0x578403['batch']['isUndo'])return!0x1;let _0x2ae5cb=!0x1;const _0x371956=_0x20f4e6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x30624d=>{const _0x2df3a8=_0x20f4e6['_getAttributeKey'](_0x30624d);return'listStart'==_0x2df3a8||'listReversed'==_0x2df3a8;});for(const _0x3afc16 of _0x371956){const _0x33064e=_0x3afc16['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x33064e||'customNumbered'==_0x33064e)continue;_0x20f4e6['_findSuggestions'](_0x3afc16['getFirstRange'](),'attribute')['find'](_0x2c31e0=>'listType'==_0x20f4e6['_getAttributeKey'](_0x2c31e0['suggestion']))||(_0x578403['removeMarker'](_0x3afc16['getFirstMarker']()),_0x2ae5cb=!0x0);}return _0x2ae5cb;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5d4cd3){const _0x1c88a9=this['editor']['locale'],{data:_0x31cd86}=_0x5d4cd3,_0x366fa0={'type':'format','content':''};if(!_0x31cd86||'listStyle'!=_0x31cd86['key'])return;if(!_0x31cd86['oldValue'])return'default'==_0x31cd86['newValue']?_0x366fa0:{'type':'format','content':''+o(_0x1c88a9,'*Set\x20format:*\x20%0',o(_0x1c88a9,this['_getTranslationKeyForListStyle'](_0x31cd86['newValue'])))};if(!_0x31cd86['newValue']){if('default'==_0x31cd86['oldValue'])return _0x366fa0;let _0x16ab14=_0x5d4cd3['head'];for(;_0x16ab14;){if(_0x16ab14['data']&&'listType'==_0x16ab14['data']['key']&&_0x16ab14['data']['newValue'])return _0x366fa0;_0x16ab14=_0x16ab14['next'];}return{'type':'format','content':''+o(_0x1c88a9,'*Remove\x20format:*\x20%0',o(_0x1c88a9,this['_getTranslationKeyForListStyle'](_0x31cd86['oldValue'])))};}if('default'!=_0x31cd86['newValue'])return{'type':'format','content':''+o(_0x1c88a9,'*Set\x20format:*\x20%0',o(_0x1c88a9,this['_getTranslationKeyForListStyle'](_0x31cd86['newValue'])))};let _0x15d7b1=_0x5d4cd3['head'];for(;_0x15d7b1;){if(_0x15d7b1['data']&&'listType'==_0x15d7b1['data']['key']&&_0x15d7b1['data']['newValue']&&_0x15d7b1['data']['oldValue'])return _0x366fa0;_0x15d7b1=_0x15d7b1['next'];}return{'type':'format','content':o(_0x1c88a9,'*Set\x20format:*\x20%0',o(_0x1c88a9,'ELEMENT_'+_0x5d4cd3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1bb145=this['editor'],_0x501a98=_0x1bb145['locale'];_0x1bb145['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cb10e=>{if('formatBlock'!=_0x4cb10e['type'])return;const {data:_0x180420}=_0x4cb10e;if(!_0x180420)return;let _0x362917,_0x2217f8;switch(_0x180420['commandName']){case'listStyle':_0x362917='*Change\x20to:*\x20%0',_0x2217f8={'type':'format','content':o(_0x501a98,_0x362917,o(_0x501a98,this['_getTranslationKeyForListStyle'](_0x180420['commandParams'][0x0]['type'])))};break;case'listReversed':_0x362917=_0x180420['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2217f8={'type':'format','content':o(_0x501a98,_0x362917)};break;case'listStart':_0x362917='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2217f8={'type':'format','content':o(_0x501a98,_0x362917,_0x180420['commandParams'][0x0]['startIndex'])};}return _0x2217f8;});}['_getTranslationKeyForListStyle'](_0x36b046){return'ELEMENT_'+function(_0x194d63){if(_e['includes'](_0x194d63))return'bulleted';if(Re['includes'](_0x194d63))return'numbered';return null;}(_0x36b046)['toUpperCase']()+'_LIST_'+_0x36b046['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x31ef78{['afterInit'](){const _0x1c67f6=this['editor'];_0x1c67f6['commands']['get']('emoji')&&_0x1c67f6['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x31ef78{static get['requires'](){return[_0xc112e4];}['init'](){const _0x3a19ee=this['editor'],_0x285734=_0x3a19ee['plugins']['get']('TrackChangesEditing'),_0xcff9=_0x3a19ee['commands']['get']('enter');_0x285734['enableCommand']('enter',()=>{_0x3a19ee['model']['change'](_0x17f633=>{const _0x5e0d61=_0x3a19ee['model']['document']['selection'],_0xf8f8d6=_0x5e0d61['getFirstPosition'](),_0x50d6cd=_0x512f92['fromRange'](_0x5e0d61['getFirstRange']());if(_0xcff9['enterBlock'](_0x17f633)){const _0x3d7118=_0x3a19ee['model']['createPositionAt'](_0xf8f8d6['parent']['nextSibling'],0x0),_0xedd4f6=_0x17f633['createRange'](_0xf8f8d6,_0x3d7118);_0x285734['markInsertion'](_0xedd4f6);}else _0x17f633['setSelection'](_0x17f633['createRange'](_0x50d6cd['end']));_0x50d6cd['detach'](),_0xcff9['fire']('afterExecute',{'writer':_0x17f633});});}),_0x3a19ee['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x3a19ee,'split'),{'priority':'high'}),_0x3a19ee['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1a88bc,_0x3acf84,_0x502663)=>{const _0x413234=_0x502663['mapper']['markerNameToElements'](_0x3acf84['markerName']);if(_0x413234){for(const _0x4b2fd4 of _0x413234)_0x4b2fd4['hasClass']('ck-suggestion-marker-split')&&(_0x502663['mapper']['unbindElementFromMarkerName'](_0x4b2fd4,_0x3acf84['markerName']),_0x502663['writer']['remove'](_0x4b2fd4));}},{'priority':'high'}),_0x3a19ee['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5abeed,_0x3944a7,_0x7ccff4)=>{_0x7ccff4['options']['showSuggestionHighlights']&&De(_0x3a19ee,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5abeed,_0x3944a7,_0x7ccff4);},{'priority':'high'});}}class Z extends _0x31ef78{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1536ee=this['editor']['plugins']['get']('TrackChangesEditing');_0x1536ee['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1536ee['enableCommand']('findNext'),_0x1536ee['enableCommand']('findPrevious'),_0x1536ee['enableCommand']('replace'),_0x1536ee['enableCommand']('replaceAll');}['handleFindCommand'](_0x40961c,_0x5c6093,_0x9874be={}){const _0x4a688e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x40961c(_0x87eb61=>{let _0x38ec41=('string'==typeof _0x5c6093?_0x4a688e['findByTextCallback'](_0x5c6093,_0x9874be):_0x5c6093)(_0x87eb61);Array['isArray'](_0x38ec41)&&(_0x38ec41={'results':_0x38ec41,'searchText':'string'==typeof _0x5c6093?_0x5c6093:''});const _0x6f5d93=_0x38ec41['results']['filter'](_0x4c2abe=>!0x1===this['_isInDeletionRange'](_0x4c2abe,_0x87eb61['item']));return{..._0x38ec41,'results':_0x6f5d93};},_0x9874be);}['_isInDeletionRange'](_0x5669ef,_0x34b840){const _0x14007d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x34b840,_0x5669ef['start']),this['editor']['model']['createPositionAt'](_0x34b840,_0x5669ef['end']));for(const _0x378e56 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x14007d['getIntersection'](_0x378e56['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x31ef78{['afterInit'](){const _0x1f9ac1=this['editor']['locale'],_0x4f6907=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3ec63a,commandName:_0x15ec84}of ro)this['editor']['plugins']['has'](_0x3ec63a)&&(_0x4f6907['enableDefaultAttributesIntegration'](_0x15ec84),_0x4f6907['registerInlineAttribute'](_0x15ec84));_0x4f6907['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1f9ac1,'FORMAT_FONT_SIZE')),_0x4f6907['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1f9ac1,'FORMAT_FONT_FAMILY')),_0x4f6907['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1f9ac1,'FORMAT_FONT_COLOR')),_0x4f6907['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1f9ac1,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ca470=this['editor'],_0x11c6d5=_0x4ca470['locale'];_0x4ca470['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55d357=>{const _0x166f93=_0x11c6d5['t'];if('formatInline'!=_0x55d357['type'])return;const {data:_0x37fecb}=_0x55d357;if(null!=_0x37fecb){if('fontSize'==_0x37fecb['commandName']){const _0xaefbd5=_0x37fecb['commandParams'][0x0]['value'];if(_0xaefbd5){const _0x3401b8=_0x166f93(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x47c11f=>_0x47c11f['model']==_0xaefbd5)['title'])['toLowerCase']();return{'type':'format','content':o(_0x11c6d5,'*Set\x20font\x20size:*\x20%0',_0x3401b8)};}return{'type':'format','content':o(_0x11c6d5,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x37fecb['commandName']){const _0x4d4913=_0x37fecb['commandParams'][0x0]['value'];return _0x4d4913?{'type':'format','content':o(_0x11c6d5,'*Set\x20font\x20family:*\x20%0',_0x4d4913)}:{'type':'format','content':o(_0x11c6d5,'*Reset\x20font\x20family*')};}if('fontColor'==_0x37fecb['commandName']){const _0x40f0b0=_0x37fecb['commandParams'][0x0]['value'];if(_0x40f0b0){const _0x32fb13=_0x3eaa39(this['editor']['config']['get']('fontColor.colors'))['find'](_0x988a90=>_0x988a90['model']==_0x40f0b0);let _0x44ae1f=_0x40f0b0,_0x40773a='';return _0x32fb13&&(_0x44ae1f=_0x32fb13['label'],_0x40773a=_0x166f93(_0x44ae1f)['toLowerCase']()),{'type':'format','content':o(_0x11c6d5,'*Set\x20font\x20color:*\x20%0',_0x40773a)['trim'](),'color':{'value':_0x40f0b0,'title':_0x40773a||_0x44ae1f}};}return{'type':'format','content':o(_0x11c6d5,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x37fecb['commandName']){const _0x41c7fc=_0x37fecb['commandParams'][0x0]['value'];if(_0x41c7fc){const _0x35843b=_0x3eaa39(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2ec83c=>_0x2ec83c['model']==_0x41c7fc);let _0x33f168=_0x41c7fc,_0x1a0509='';return _0x35843b&&(_0x33f168=_0x35843b['label'],_0x1a0509=_0x166f93(_0x33f168)['toLowerCase']()),{'type':'format','content':o(_0x11c6d5,'*Set\x20font\x20background\x20color:*\x20%0',_0x1a0509)['trim'](),'color':{'value':_0x41c7fc,'title':_0x1a0509||_0x33f168}};}return{'type':'format','content':o(_0x11c6d5,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x31ef78{['afterInit'](){const _0x380eb2=this['editor'],_0x308ae4=_0x380eb2['plugins']['get']('TrackChangesEditing'),_0xe0ea2c=_0x380eb2['commands']['get']('copyFormat'),_0x27999e=_0x380eb2['commands']['get']('pasteFormat');_0xe0ea2c&&_0x27999e&&(_0x308ae4['enableDefaultAttributesIntegration']('pasteFormat'),_0x308ae4['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x282764=this['editor'],_0x38fe59=_0x282764['locale'];_0x282764['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x460386=>{if('formatBlock'!=_0x460386['type']&&'formatInline'!=_0x460386['type'])return;const {data:_0x25bb7c}=_0x460386;if(_0x25bb7c&&'pasteFormat'===_0x25bb7c['commandName']){const _0x406440=[],_0x15914d=_0x25bb7c['commandParams'][0x0];for(const [_0x52e55d,_0x128b5d]of Object['entries'](_0x15914d))_0x406440['push'](so(_0x282764,_0x52e55d,_0x128b5d));return _0x406440['length']?{'type':'format','content':o(_0x38fe59,'*Set\x20format\x20to:*\x20%0',_0x406440['join'](',\x20'))}:{'type':'format','content':o(_0x38fe59,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3e2441,_0x44ca0d,_0x12f37c){const _0x5438f6=_0x3e2441['locale']['t'],_0x4d2567=_0x44ca0d['split'](/(?=[A-Z])/)['join']('\x20'),_0x4f9fc7=_0x5438f6(_0x4d2567['charAt'](0x0)['toUpperCase']()+_0x4d2567['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x12f37c)return _0x4f9fc7;if('fontColor'===_0x44ca0d||'fontBackgroundColor'===_0x44ca0d){const _0x127115=_0x3eaa39(_0x3e2441['config']['get']('fontColor.colors'))['find'](_0x483479=>_0x483479['model']==_0x12f37c);return _0x4f9fc7+'\x20('+(_0x127115?_0x5438f6(_0x127115['label'])['toLowerCase']():_0x12f37c)+')';}if('fontSize'===_0x44ca0d&&isNaN(parseFloat(_0x12f37c))){const _0x360cf5=_0x3e2441['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3e2441['config']['get']('fontSize.options'))['find'](_0x30f6a6=>_0x30f6a6['model']==_0x12f37c);return _0x4f9fc7+'\x20('+(_0x360cf5?_0x5438f6(_0x360cf5['title'])['toLowerCase']():_0x12f37c)+')';}return _0x4f9fc7+'\x20('+_0x12f37c+')';}class it extends _0x31ef78{['_headingOptions'];['afterInit'](){const _0x35bc71=this['editor'];if(!_0x35bc71['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x35bc71['config']['get']('heading.options');const _0x5662e6=_0x35bc71['locale'],_0x224ea7=_0x35bc71['plugins']['get']('TrackChangesEditing');_0x224ea7['enableDefaultAttributesIntegration']('heading');for(const _0x1535bb of this['_headingOptions'])'paragraph'!=_0x1535bb['model']&&_0x224ea7['descriptionFactory']['registerElementLabel'](_0x1535bb['model'],_0x5b5ce4=>{const _0x298e87=this['_getHeadingLevel'](_0x1535bb['model']);return null!==_0x298e87?_0x1d9985(_0x5b5ce4,_0x298e87):_0x290bff(_0x5b5ce4,_0x1535bb['title']);});function _0x1d9985(_0x5cf748,_0x5f431d){return o(_0x5662e6,'ELEMENT_HEADING',[_0x5cf748,_0x5f431d]);}function _0x290bff(_0x2eb600,_0x4e45e1){return o(_0x5662e6,'ELEMENT_HEADING_CUSTOM',[_0x2eb600,_0x4e45e1]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x290b70=this['editor'],_0x311d1a=_0x290b70['locale'];function _0x5c125e(_0x39e521,_0x1d5e2b){return o(_0x311d1a,'ELEMENT_HEADING_CUSTOM',[_0x39e521,_0x1d5e2b]);}_0x290b70['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55ae7a=>{if('formatBlock'!=_0x55ae7a['type'])return;const {data:_0x13f48a}=_0x55ae7a;if(_0x13f48a&&'heading'==_0x13f48a['commandName']){const _0x18721a=_0x13f48a['commandParams'][0x0]['value'],_0x1eb124=this['_getHeadingLevel'](_0x18721a);if(null!==_0x1eb124)return{'type':'format','content':o(_0x311d1a,'*Change\x20to:*\x20%0',(_0x29a60d=0x1,_0x337bba=_0x1eb124,o(_0x311d1a,'ELEMENT_HEADING',[_0x29a60d,_0x337bba])))};const _0x128ab6=this['_headingOptions']['find'](_0x4837cd=>_0x4837cd['model']===_0x18721a)['title'];return{'type':'format','content':o(_0x311d1a,'*Change\x20to:*\x20%0',_0x5c125e(0x1,_0x128ab6))};}var _0x29a60d,_0x337bba;});}['_getHeadingLevel'](_0x1c56f2){const _0x16b70f=_0x1c56f2['match'](/^heading(\d+)/);if(_0x16b70f)return _0x16b70f[0x1];const _0x33efa5=this['_headingOptions']?.['find'](_0x166c46=>_0x166c46['model']==_0x1c56f2);if(_0x33efa5&&_0x33efa5['view']){const _0x4b5488=_0x33efa5['view'],_0x32d802=(_0x4b5488['name']??_0x4b5488)['match'](/^h(\d+)/);if(_0x32d802)return _0x32d802[0x1];}return null;}}class et extends _0x31ef78{['afterInit'](){const _0x454136=this['editor'];if(!_0x454136['plugins']['has']('HighlightEditing'))return;const _0x377359=_0x454136['plugins']['get']('TrackChangesEditing'),_0x568973=_0x454136['locale'];_0x377359['enableDefaultAttributesIntegration']('highlight'),_0x377359['registerInlineAttribute']('highlight'),_0x377359['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x568973,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d65cd=this['editor'],_0x285d6c=_0x2d65cd['locale'];_0x2d65cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23888b=>{if('formatInline'!=_0x23888b['type'])return;const {data:_0x5ecc11}=_0x23888b;if(_0x5ecc11&&'highlight'==_0x5ecc11['commandName']){const _0x44c059=_0x285d6c['t'],_0x7740a8=_0x5ecc11['commandParams'][0x0]['value'];if(_0x7740a8){const _0x5c2592=_0x2d65cd['config']['get']('highlight.options')['find'](_0x27fa90=>_0x27fa90['model']==_0x7740a8),_0x12ae46=_0x44c059(_0x5c2592['title'])['toLowerCase']();return{'type':'format','content':o(_0x285d6c,'*Set\x20highlight:*\x20%0',_0x12ae46),'color':{'value':_0x5c2592['color'],'title':_0x5c2592['title']}};}return{'type':'format','content':o(_0x285d6c,'*Remove\x20highlight*',o(_0x285d6c,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x31ef78{['afterInit'](){const _0x2fcadf=this['editor'];if(!_0x2fcadf['plugins']['has']('HorizontalLineEditing'))return;_0x2fcadf['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1e743f=_0x2fcadf['plugins']['get']('TrackChangesEditing'),_0x14988c=_0x2fcadf['locale'];_0x1e743f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5b9bdb=>o(_0x14988c,'ELEMENT_HORIZONTAL_LINE',_0x5b9bdb)),_0x2fcadf['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1e7fb0,{writer:_0x5d4e0c,options:_0x44b061})=>{if(!_0x44b061['showSuggestionHighlights'])return null;const _0x3077a0=_0x5d4e0c['createContainerElement']('div'),_0x547869=_0x5d4e0c['createEmptyElement']('hr');return _0x5d4e0c['addClass']('ck-horizontal-line',_0x3077a0),_0x5d4e0c['insert'](_0x5d4e0c['createPositionAt'](_0x3077a0,0x0),_0x547869),_0x3077a0;},'converterPriority':'high'});}}class ot extends _0x31ef78{['afterInit'](){const _0x445fdf=this['editor'];if(!_0x445fdf['plugins']['has']('HtmlEmbed'))return;const _0x36ad68=_0x445fdf['plugins']['get']('TrackChangesEditing'),_0x2d4928=_0x445fdf['locale'];_0x36ad68['descriptionFactory']['registerElementLabel']('rawHtml',_0x2adbe8=>o(_0x2d4928,'ELEMENT_HTML_EMBED',_0x2adbe8)),_0x36ad68['enableDefaultAttributesIntegration']('htmlEmbed'),_0x36ad68['registerBlockAttribute']('value'),_0x36ad68['descriptionFactory']['registerDescriptionCallback'](_0x56fcda=>{if('attribute'!=_0x56fcda['type'])return;const {data:_0xb0b9cf}=_0x56fcda;if(_0xb0b9cf&&'value'==_0xb0b9cf['key']&&_0x56fcda['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3d5030=o(_0x2d4928,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2d4928,'*Change\x20%0\x20content*',_0x3d5030)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cb8fb=this['editor'],_0x2a2a3e=_0x4cb8fb['locale'];_0x4cb8fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4538e4=>{if('formatBlock'!=_0x4538e4['type'])return;const {data:_0xa52690}=_0x4538e4;if(_0xa52690&&'htmlEmbed'==_0xa52690['commandName']){const _0x9652d8=o(_0x2a2a3e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2a2a3e,'*Change\x20%0\x20content*',_0x9652d8)};}});}}class rt extends _0x31ef78{['afterInit'](){const _0x1b1c77=this['editor'];if(!_0x1b1c77['plugins']['has']('ImageEditing'))return;const _0x4f0fb6=_0x1b1c77['plugins']['get']('TrackChangesEditing'),_0x4e654b=_0x1b1c77['plugins']['get']('ImageUtils'),_0x26fbe0=_0x1b1c77['locale'];_0x4f0fb6['enableCommand']('insertImage'),_0x4f0fb6['descriptionFactory']['registerElementLabel']('imageBlock',_0x68e08a=>o(_0x26fbe0,'ELEMENT_IMAGE',_0x68e08a)),_0x4f0fb6['descriptionFactory']['registerElementLabel']('imageInline',_0x4df99c=>o(_0x26fbe0,'ELEMENT_INLINE_IMAGE',_0x4df99c)),_0x4f0fb6['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x26fbe0,'ELEMENT_CAPTION')),_0x1b1c77['plugins']['has']('ImageUploadEditing')&&_0x4f0fb6['enableCommand']('uploadImage'),_0x1b1c77['plugins']['has']('ImageBlockEditing')&&_0x1b1c77['plugins']['has']('ImageInlineEditing')&&(_0x4f0fb6['enableCommand']('imageTypeInline',(_0x587c17,_0x1bcac7)=>{const _0x101605=_0x4e654b['getClosestSelectedImageElement'](_0x1b1c77['model']['document']['selection']);_0x1b1c77['model']['change'](()=>{_0x4f0fb6['markBlockFormat'](_0x101605,{'commandName':'imageTypeInline','commandParams':[_0x1bcac7]},[],'convertBlockImageToInline');});}),_0x4f0fb6['enableCommand']('imageTypeBlock',(_0x550845,_0x39dd17)=>{_0x1b1c77['model']['change'](_0x19ba41=>{let _0xea8352=_0x4e654b['getClosestSelectedImageElement'](_0x1b1c77['model']['document']['selection']),_0x13d481=_0x19ba41['createRangeOn'](_0xea8352);const _0x3040c0=_0x19d398['fromPosition'](_0x13d481['start'],'toPrevious'),_0x58cbfa=_0x19d398['fromPosition'](_0x13d481['end'],'toNext');_0x4f0fb6['forceDefaultExecution'](()=>_0x550845(_0x39dd17)),_0xea8352=_0x4e654b['getClosestSelectedImageElement'](_0x1b1c77['model']['document']['selection']),_0x13d481=_0x19ba41['createRangeOn'](_0xea8352);const _0x188b3c=_0x19ba41['createRange'](_0x3040c0,_0x58cbfa);_0x3040c0['detach'](),_0x58cbfa['detach'](),_0x4f0fb6['markBlockFormat'](_0xea8352,{'commandName':'imageTypeInline','commandParams':[_0x39dd17]},[],'convertInlineImageToBlock'),_0x188b3c['start']['isBefore'](_0x13d481['start'])&&_0x4f0fb6['markInsertion'](_0x19ba41['createRange'](_0x188b3c['start'],_0x13d481['start']),'convertInlineImageToBlock'),_0x13d481['end']['isBefore'](_0x188b3c['end'])&&_0x4f0fb6['markInsertion'](_0x19ba41['createRange'](_0x13d481['end'],_0x188b3c['end']),'convertInlineImageToBlock');});}),_0x4f0fb6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4f0fb6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4f0fb6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4f0fb6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4f0fb6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4f0fb6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x422b5b])=>{const _0xf9a717=_0x4f0fb6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x395909=_0x422b5b['start'],_0x168991=_0x422b5b['end'];const _0x2e1b06=_0x1b1c77['model']['schema']['getNearestSelectionRange'](_0x395909,'backward'),_0x5c3d5e=_0x1b1c77['model']['schema']['getNearestSelectionRange'](_0x168991,'forward');_0x2e1b06['isCollapsed']&&(_0x395909=_0x2e1b06['start']),_0x5c3d5e['isCollapsed']&&(_0x168991=_0x5c3d5e['end']),_0xf9a717([_0x1b1c77['model']['createRange'](_0x395909,_0x168991)]);}),_0x4f0fb6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4f1e06),_0x4f0fb6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4f1e06)),_0x1b1c77['plugins']['has']('ImageCaptionEditing')&&(_0x4f0fb6['enableCommand']('toggleImageCaption',(_0x12e0f1,_0x120137)=>{const _0x4c7681=_0x1b1c77['plugins']['get']('ImageCaptionUtils');let _0x2eac83=_0x4e654b['getClosestSelectedImageElement'](_0x1b1c77['model']['document']['selection']),_0x57afaf=_0x4c7681['getCaptionFromImageModelElement'](_0x2eac83);_0x1b1c77['model']['change'](()=>{if(_0x57afaf)return void _0x4f0fb6['markDeletion'](_0x1b1c77['model']['createRangeOn'](_0x57afaf));const _0x423f43=_0x4e654b['isBlockImage'](_0x2eac83);_0x12e0f1(_0x120137),_0x2eac83=_0x4e654b['getClosestSelectedImageElement'](_0x1b1c77['model']['document']['selection']),_0x57afaf=_0x4c7681['getCaptionFromImageModelElement'](_0x2eac83),_0x4f0fb6['markInsertion'](_0x1b1c77['model']['createRangeOn'](_0x57afaf),_0x423f43?null:'imageCaption');});}),_0x4f0fb6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4f1e06));const _0x7958d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2c6822(_0x2b2d13,_0x3cf193){const _0x5a3250=_0x7958d['findIndex'](({type:_0x2520fd,subType:_0x27a68d})=>_0x2b2d13['type']==_0x2520fd&&_0x2b2d13['subType']==_0x27a68d),_0x33c400=_0x7958d['findIndex'](({type:_0x56be35,subType:_0x3e6312})=>_0x3cf193['type']==_0x56be35&&_0x3cf193['subType']==_0x3e6312);if(_0x5a3250<0x0||_0x33c400<0x0)return!0x1;const _0x14888b=_0x2b2d13['getFirstRange'](),_0x1875f5=_0x3cf193['getFirstRange']();if((0x0==_0x5a3250||0x1==_0x5a3250)&&0x2==_0x33c400&&_0x14888b['isIntersecting'](_0x1875f5))return!0x0;if(0x2==_0x5a3250&&0x3==_0x33c400){const _0x51e5fa=_0x4f0fb6['_findSuggestions'](_0x14888b,'insertion')['filter'](({suggestion:_0x59fc96,meta:_0x1bfff2})=>_0x1bfff2['isOwn']&&'convertInlineImageToBlock'==_0x59fc96['subType']);if(_0x51e5fa['length']>0x1&&_0x1875f5['end']['isEqual'](_0x14888b['start']))return!0x0;if(0x1==_0x51e5fa['length']&&(_0x14888b['start']['isEqual'](_0x1875f5['end'])||_0x14888b['end']['isEqual'](_0x1875f5['start'])))return!0x0;}if(0x3==_0x5a3250&&0x3==_0x33c400&&_0x14888b['start']['isBefore'](_0x1875f5['start'])){const _0x37d3f0=_0x14888b['end']['nodeAfter'],_0x3fdc00=_0x1875f5['start']['nodeBefore'];return _0x4e654b['isBlockImage'](_0x37d3f0)&&_0x37d3f0===_0x3fdc00;}return!0x1;}function _0x4f1e06(_0x48a393,_0x46e9e9){return _0x2c6822(_0x48a393,_0x46e9e9)?[_0x48a393,_0x46e9e9]:_0x2c6822(_0x46e9e9,_0x48a393)?[_0x46e9e9,_0x48a393]:null;}_0x1b1c77['plugins']['has']('ImageResize')&&(_0x4f0fb6['enableDefaultAttributesIntegration']('resizeImage'),_0x4f0fb6['registerBlockAttribute']('resizedWidth'),_0x4f0fb6['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x26fbe0,'FORMAT_IMAGE_SIZE'))),_0x1b1c77['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4f0fb6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4f0fb6['registerBlockAttribute']('alt')),_0x1b1c77['plugins']['has']('PictureEditing')&&(_0x4f0fb6['registerBlockAttribute']('sources'),_0x4f0fb6['descriptionFactory']['registerDescriptionCallback'](_0x1e0300=>{if('attribute'!=_0x1e0300['type'])return;const {data:_0x2dc9ce}=_0x1e0300;return _0x2dc9ce&&'sources'==_0x2dc9ce['key']?{'type':'format','content':''}:void 0x0;})),_0x1b1c77['plugins']['has']('ImageSizeAttributes')&&(_0x4f0fb6['registerBlockAttribute']('width'),_0x4f0fb6['registerBlockAttribute']('height'),_0x4f0fb6['descriptionFactory']['registerDescriptionCallback'](_0x417fd3=>{if('attribute'!=_0x417fd3['type'])return;const {data:_0xfdc3d2}=_0x417fd3;return!_0xfdc3d2||'width'!=_0xfdc3d2['key']&&'height'!=_0xfdc3d2['key']?void 0x0:{'type':'format','content':''};})),_0x4f0fb6['descriptionFactory']['registerDescriptionCallback'](_0x58f6e9=>{if(!!_0x7958d['find'](({type:_0x2b3456,subType:_0x2b17ce})=>_0x58f6e9['type']==_0x2b3456&&_0x58f6e9['subType']==_0x2b17ce))return _0x58f6e9['previous']?{}:void 0x0;}),_0x4f0fb6['descriptionFactory']['registerDescriptionCallback'](_0x1fc98e=>{if('insertion'==_0x1fc98e['type']||'deletion'==_0x1fc98e['type']){const _0x587fc3=_0x1fc98e['getContainedElement']();if(_0x587fc3&&_0x587fc3['is']('element','caption'))return{'type':'insertion'==_0x1fc98e['type']?'addObject':'removeObject','element':_0x587fc3,'quantity':0x1};}}),_0x4f0fb6['descriptionFactory']['registerDescriptionCallback'](_0x48ac16=>'formatBlock'==_0x48ac16['type']&&'convertInlineImageToBlock'==_0x48ac16['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x48ac16['type']&&'convertBlockImageToInline'==_0x48ac16['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4f0fb6['descriptionFactory']['registerDescriptionCallback'](_0x22a5dd=>{if('attribute'!=_0x22a5dd['type'])return;const {data:_0x4b472e}=_0x22a5dd;if(!_0x4b472e||'alt'!=_0x4b472e['key'])return;const _0x4960f3=_0x4b472e['newValue'];return _0x4960f3?{'type':'format','content':o(_0x26fbe0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4960f3+'\x22')}:{'type':'format','content':o(_0x26fbe0,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x218fcd=this['editor'],_0x48efde=_0x218fcd['locale'];_0x218fcd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19bcc4=>{if('formatBlock'!=_0x19bcc4['type']&&'formatInline'!=_0x19bcc4['type'])return;const {data:_0x1d67f3}=_0x19bcc4;if(_0x1d67f3){if('imageTextAlternative'==_0x1d67f3['commandName']){const _0x3cbd57=_0x1d67f3['commandParams'][0x0]['newValue'];return _0x3cbd57?{'type':'format','content':o(_0x48efde,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3cbd57+'\x22')}:{'type':'format','content':o(_0x48efde,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1d67f3['commandName']){const _0x2d925a=_0x1d67f3['commandParams'][0x0]['width'];return _0x2d925a?{'type':'format','content':o(_0x48efde,'*Set\x20image\x20width:*\x20%0',_0x2d925a)}:{'type':'format','content':o(_0x48efde,'*Reset\x20image\x20width*')};}}});}}class at extends _0x31ef78{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x10defc=this['editor']['locale'],_0x4a9a05=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a9a05['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4a9a05['registerBlockAttribute']('src'),_0x4a9a05['descriptionFactory']['registerDescriptionCallback'](_0x56196=>{if('attribute'!=_0x56196['type'])return;const {data:_0x4dcb3f}=_0x56196;return _0x4dcb3f&&'src'==_0x4dcb3f['key']?_0x4dcb3f['newValue']&&_0x4dcb3f['oldValue']?{'type':'format','content':o(_0x10defc,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x38f859=this['editor']['plugins']['get']('TrackChangesEditing');_0x38f859['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x38f859['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x38f859['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x38f859['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59c7fe=this['editor'],_0x338edf=_0x59c7fe['locale'];_0x59c7fe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d9019=>{if('formatBlock'!=_0x5d9019['type']&&'formatInline'!=_0x5d9019['type'])return;const {data:_0x2115fc}=_0x5d9019;if(!_0x2115fc||'replaceImageSource'!=_0x2115fc['commandName'])return;return{'type':'format','content':o(_0x338edf,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x31ef78{['afterInit'](){const _0x36c553=this['editor'];if(!_0x36c553['plugins']['has']('ImageStyleEditing'))return;const _0x2ea53c=_0x36c553['plugins']['get']('TrackChangesEditing'),_0x1719c7=_0x36c553['plugins']['get']('ImageUtils'),_0x4d6245={};_0x2ea53c['enableCommand']('imageStyle',(_0x5549b2,_0x2c2808)=>{const _0x2109d8=_0x36c553['plugins']['get']('Users')['me'],_0x1ca1bb=_0x36c553['commands']['get']('imageStyle');let _0xe69aaf=_0x1719c7['getClosestSelectedImageElement'](_0x36c553['model']['document']['selection']),_0x1b2df1=_0x36c553['model']['createRangeOn'](_0xe69aaf),_0x3677af=_0x1ca1bb['value'];if(_0x3677af==_0x2c2808['value'])return;const _0x552e4b={'commandName':'imageStyle','commandParams':[_0x2c2808],'formatGroupId':_0x2b97bd()};_0x36c553['model']['change'](()=>{if(_0x2ea53c['getSuggestions']()['filter'](_0x3d5e35=>_0x3d5e35['isInContent']&&_0x2109d8==_0x3d5e35['author']&&('formatBlock'==_0x3d5e35['type']||'formatInline'==_0x3d5e35['type'])&&('imageStylePreApply'==_0x3d5e35['subType']||'imageStylePostApply'==_0x3d5e35['subType'])&&_0x3d5e35['getFirstRange']()['isEqual'](_0x1b2df1))['forEach'](_0xd857b4=>_0x2ea53c['discardSuggestion'](_0xd857b4['head'])),_0xe69aaf=_0x1719c7['getClosestSelectedImageElement'](_0x36c553['model']['document']['selection']),_0x1b2df1=_0x36c553['model']['createRangeOn'](_0xe69aaf),_0x1ca1bb['refresh'](),_0x36c553['commands']['get']('imageTypeInline')['refresh'](),_0x36c553['commands']['get']('imageTypeBlock')['refresh'](),_0x3677af=_0x1ca1bb['value'],_0x3677af!=_0x2c2808['value'])return _0x1719c7['isInlineImage'](_0xe69aaf)&&_0x1ca1bb['shouldConvertImageType'](_0x2c2808['value'],_0xe69aaf)?(_0x5549b2({..._0x2c2808,'setImageSizes':!0x1}),_0xe69aaf=_0x1719c7['getClosestSelectedImageElement'](_0x36c553['model']['document']['selection']),void _0x2ea53c['markBlockFormat'](_0xe69aaf,{..._0x552e4b,'commandReversedParams':[{'value':_0x3677af||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1719c7['isBlockImage'](_0xe69aaf)?_0x2ea53c['markBlockFormat'](_0xe69aaf,_0x552e4b,[],'imageStylePostApply'):_0x2ea53c['markInlineFormat'](_0x1b2df1,_0x552e4b,'imageStylePostApply'));});});for(const _0x15ad80 of _0x36c553['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4d6245[_0x15ad80['name']]=_0x15ad80['title']['toLowerCase']();_0x2ea53c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2ea53c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2ea53c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2ea53c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5f045d])=>{_0x1719c7['setImageNaturalSizeAttributes'](_0x5f045d['getContainedElement']());}),_0x2ea53c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x400236,_0x3de8fa)=>{_0x2ea53c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x400236,{'commandName':_0x3de8fa['commandName'],'commandParams':_0x3de8fa['commandReversedParams']});}),_0x2ea53c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xf1113e,_0x1c89b3){if(_0x53bd20(_0xf1113e,_0x1c89b3))return[_0xf1113e,_0x1c89b3];if(_0x53bd20(_0x1c89b3,_0xf1113e))return[_0x1c89b3,_0xf1113e];return null;});const _0x2fd813=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x53bd20(_0x45ed2d,_0x29c174){const _0x4f6235=_0x2fd813['findIndex'](({type:_0x3d1710,subType:_0x465b5c})=>_0x45ed2d['type']==_0x3d1710&&_0x45ed2d['subType']==_0x465b5c),_0xfa80d0=_0x2fd813['findIndex'](({type:_0x381f01,subType:_0xbbe82d})=>_0x29c174['type']==_0x381f01&&_0x29c174['subType']==_0xbbe82d);if(_0x4f6235<0x0||_0xfa80d0<0x0)return!0x1;const _0x560faf=_0x45ed2d['getFirstRange'](),_0x5b3f26=_0x29c174['getFirstRange']();if((0x0==_0x4f6235||0x1==_0x4f6235)&&0x2==_0xfa80d0&&_0x560faf['isIntersecting'](_0x5b3f26))return!0x0;if(0x2==_0x4f6235&&0x3==_0xfa80d0){const _0x5ef146=_0x2ea53c['_findSuggestions'](_0x560faf,'insertion')['filter'](({suggestion:_0x41d2c0,meta:_0x34c7c8})=>_0x34c7c8['isOwn']&&'convertInlineImageToBlock'==_0x41d2c0['subType']);if(_0x5ef146['length']>0x1&&_0x5b3f26['end']['isEqual'](_0x560faf['start']))return!0x0;if(0x1==_0x5ef146['length']&&(_0x560faf['start']['isEqual'](_0x5b3f26['end'])||_0x560faf['end']['isEqual'](_0x5b3f26['start'])))return!0x0;}if(0x3==_0x4f6235&&0x3==_0xfa80d0&&_0x560faf['start']['isBefore'](_0x5b3f26['start'])){const _0x2a8294=_0x560faf['end']['nodeAfter'],_0x43b36e=_0x5b3f26['start']['nodeBefore'];return _0x1719c7['isBlockImage'](_0x2a8294)&&_0x2a8294===_0x43b36e;}return!0x1;}_0x36c553['model']['document']['registerPostFixer'](()=>{let _0x2768d1=!0x1;const _0x191808=Array['from'](_0x36c553['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4f0d2e,data:_0x4274d2}of _0x191808){const {group:_0x451b87,type:_0x573d71,subType:_0x172af2,id:_0x5df96b}=_0x2ea53c['_splitMarkerName'](_0x4f0d2e);if('suggestion'==_0x451b87&&_0x2ea53c['hasSuggestion'](_0x5df96b)){if('formatBlock'==_0x573d71&&('imageStylePreApply'==_0x172af2||'imageStylePostApply'==_0x172af2)){const _0x172da9=_0x2ea53c['getSuggestion'](_0x5df96b);if(_0x4274d2['newRange']){const _0x3793c4=_0x172da9['getFirstRange']()['getContainedElement']();if(_0x1719c7['isBlockImage'](_0x3793c4))continue;_0x2ea53c['discardSuggestion'](_0x172da9),_0x2768d1=!0x0;}}if('insertion'==_0x573d71&&'imageCaption'==_0x172af2&&!_0x4274d2['newRange']){const _0x57376e=_0x2ea53c['getSuggestion'](_0x5df96b);_0x57376e['next']&&_0x57376e['next']['isInContent']&&(_0x2ea53c['discardSuggestion'](_0x57376e['next']),_0x2768d1=!0x0);}}}return _0x2768d1;}),this['_registerLegacyDescription'](_0x4d6245);}['_registerLegacyDescription'](_0x5d30f2){const _0x1f3d74=this['editor'],_0x872987=_0x1f3d74['locale'];_0x1f3d74['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b15cf=>{if('formatBlock'!=_0x1b15cf['type']&&'formatInline'!=_0x1b15cf['type'])return;const {data:_0x1e7b18}=_0x1b15cf;if(!_0x1e7b18||'imageStyle'!=_0x1e7b18['commandName'])return;const _0x3bbf7d=_0x1e7b18['commandParams'][0x0]['value'];return _0x20bf11('side'===_0x3bbf7d?o(_0x872987,'FORMAT_SIDE_IMAGE'):_0x5d30f2[_0x3bbf7d]||_0x3bbf7d);function _0x20bf11(_0x3f5b50){return{'type':'format','content':o(_0x872987,'*Format:*\x20%0',_0x3f5b50)};}});}}class ut extends _0x31ef78{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x807776){super(_0x807776),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4fcc9f=this['editor'],_0x2e889d=_0x4fcc9f['commands']['get']('importWord'),_0x40e673=_0x4fcc9f['commands']['get']('trackChanges');_0x2e889d&&(_0x2e889d['on']('execute',(_0x253b99,[,_0x59a0f4])=>{this['_trackChangesValueDuringImport']=_0x40e673['value'],_0x59a0f4['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2e889d,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2e889d,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x40e673['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4fcc9f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x579e96,_0x1b453c){const {suggestions:_0x563d8e}=_0x1b453c,_0x2bdf2f=this['editor']['commands']['get']('trackChanges'),_0x588ee5=_0x2bdf2f['value'];this['_trackChangesValueDuringImport']!==_0x588ee5&&(_0x2bdf2f['execute'](),this['_trackChangesExecuted']=!0x0),_0x563d8e&&_0x563d8e['forEach'](({id:_0x1dd267,type:_0x526385,author:_0x41bd01,created_at:_0x2410c6})=>{const _0x436f71={'id':_0x1dd267,'type':_0x526385,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x41bd01,'createdAt':_0x2410c6?new Date(_0x2410c6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x436f71);});}}class ft extends _0x31ef78{['afterInit'](){const _0x355cc6=this['editor'],_0x44febe=_0x355cc6['plugins']['get']('TrackChangesEditing');if(_0x355cc6['plugins']['has']('IndentEditing')&&(_0x44febe['enableCommand']('indent'),_0x44febe['enableCommand']('outdent')),_0x355cc6['plugins']['has']('IndentBlock')){for(const _0x1dd794 of['indentBlock','outdentBlock'])_0x44febe['enableDefaultAttributesIntegration'](_0x1dd794);}const _0xedfc6c=_0x355cc6['locale'];_0x44febe['registerBlockAttribute']('blockIndent'),_0x44febe['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xedfc6c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a2a07=this['editor'],_0x328a01=_0x3a2a07['locale'],_0xa7e385=_0x3a2a07['plugins']['get']('TrackChangesEditing');_0xa7e385['descriptionFactory']['registerDescriptionCallback'](_0x2be3ed=>{if('formatBlock'!=_0x2be3ed['type'])return;const {data:_0xdfbf17}=_0x2be3ed;if(!_0xdfbf17)return;if('indentBlock'!=_0xdfbf17['commandName']&&'outdentBlock'!=_0xdfbf17['commandName'])return;const _0x1dcc37=_0x2be3ed['getItems']()[0x0],_0x39a3ba=_0xa7e385['descriptionFactory']['getItemLabel'](_0x1dcc37);return'indentBlock'==_0xdfbf17['commandName']?{'type':'format','content':o(_0x328a01,'*Indent:*\x20%0',_0x39a3ba)}:'outdentBlock'==_0xdfbf17['commandName']?{'type':'format','content':o(_0x328a01,'*Outdent:*\x20%0',_0x39a3ba)}:void 0x0;});}}class ht extends _0x31ef78{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x31ef78{['afterInit'](){const _0x4f792d=this['editor'];if(!_0x4f792d['plugins']['has']('LinkEditing'))return;const _0x2727ce=_0x4f792d['plugins']['get']('TrackChangesEditing'),_0x31cee3=_0x4f792d['commands']['get']('link');_0x2727ce['enableDefaultAttributesIntegration']('link'),_0x2727ce['enableDefaultAttributesIntegration']('unlink'),_0x2727ce['registerInlineAttribute']('linkHref');for(const _0x5ac2f7 of _0x31cee3['manualDecorators'])_0x2727ce['registerInlineAttribute'](_0x5ac2f7['id']),_0x2727ce['descriptionFactory']['registerAttributeLabel'](_0x5ac2f7['id'],'link\x20('+_0x5ac2f7['label']['toLowerCase']()+')');_0x2727ce['descriptionFactory']['registerDescriptionCallback'](_0x918c3e=>{if('attribute'!=_0x918c3e['type'])return;const {data:_0x57c123}=_0x918c3e;if(!_0x57c123||'linkHref'!=_0x57c123['key'])return;const _0x1cc8b0=_0x57c123['newValue'],_0x5c484d=_0x4f792d['locale'];return{'type':'format','content':null==_0x1cc8b0?o(_0x5c484d,'*Remove\x20link*'):o(_0x5c484d,'*Set\x20link:*\x20%0','\x22'+_0x1cc8b0+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41a44f=this['editor'],_0x5cd968=_0x41a44f['locale'];_0x41a44f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18429d=>{if('formatInline'!=_0x18429d['type'])return;const {data:_0x4ec39a}=_0x18429d;if(_0x4ec39a){if('link'==_0x4ec39a['commandName']){const _0x19055f=_0x4ec39a['commandParams'][0x0];return{'type':'format','content':o(_0x5cd968,'*Set\x20link:*\x20%0','\x22'+_0x19055f+'\x22')};}return'unlink'==_0x4ec39a['commandName']?{'type':'format','content':o(_0x5cd968,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x31ef78{['afterInit'](){const _0x56e90b=this['editor'],_0x2b65c1=_0x56e90b['locale'];if(!_0x56e90b['plugins']['has']('LegacyListEditing'))return;const _0x59021c=_0x56e90b['plugins']['get']('TrackChangesEditing'),_0x40be01=_0x56e90b['plugins']['has']('LegacyTodoListEditing');function _0x336e5e(_0x28f1e6){return()=>{const _0x398153=_0x56e90b['model']['document']['selection'],_0x6a9cdc=_0x56e90b['commands']['get'](_0x28f1e6);if(_0x6a9cdc['value'])return void _0x56e90b['execute']('paragraph',{});const _0x30eece=_0x28f1e6['slice'](0x0,-0x4),_0x2d5efb=function(_0x1ce40d,_0x53cc7c,_0x455b48){let _0x57c511=Array['from'](_0x1ce40d)['filter'](_0x60ac09=>function(_0x2a5c12,_0xc1c22c){return _0xc1c22c['checkChild'](_0x2a5c12['parent'],'listItem')&&!_0xc1c22c['isObject'](_0x2a5c12);}(_0x60ac09,_0x455b48));_0x57c511=_0x57c511['filter'](_0x26af60=>!_0x26af60['is']('element','listItem')||_0x26af60['getAttribute']('listType')!=_0x53cc7c);const _0x463e98=new Set();for(const _0x4683ea of _0x57c511)_0x4683ea['is']('element','listItem')?_0x463e98['add'](Le(_0x4683ea)):_0x463e98['add'](_0x4683ea);return Array['from'](_0x463e98);}(_0x398153['getSelectedBlocks'](),_0x30eece,_0x56e90b['model']['schema']);_0x56e90b['model']['change'](()=>{for(const _0x4c2b7e of _0x2d5efb)_0x59021c['markBlockFormat'](_0x4c2b7e,{'commandName':_0x28f1e6,'commandParams':[{'forceValue':!_0x6a9cdc['value']}],'formatGroupId':'blockName'},Ee(_0x4c2b7e));});};}function _0xa07011(_0x495a4d){return()=>{const _0x3f3f50=function(_0x5d016d){let _0x49b8ef=Array['from'](_0x5d016d);const _0x30f8bf=_0x49b8ef['findIndex'](_0x79caac=>'listItem'!=_0x79caac['name']);return _0x30f8bf>-0x1&&(_0x49b8ef=_0x49b8ef['slice'](0x0,_0x30f8bf)),_0x49b8ef;}(_0x56e90b['model']['document']['selection']['getSelectedBlocks']()),_0x408ba7=_0x56e90b['model']['createRange'](_0x56e90b['model']['createPositionAt'](_0x3f3f50[0x0],'before'),_0x56e90b['model']['createPositionAt'](_0x3f3f50[_0x3f3f50['length']-0x1],'end'));_0x56e90b['model']['change'](()=>{_0x59021c['markBlockFormat'](_0x408ba7,{'commandName':_0x495a4d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x38c5cc){const _0x5c66a3=new Set();for(const _0x4cb707 of _0x38c5cc){let _0x545d01=_0x4cb707['nextSibling'];for(;_0x545d01&&_0x545d01['getAttribute']('listIndent')>_0x4cb707['getAttribute']('listIndent');)_0x5c66a3['add'](_0x545d01),_0x545d01=_0x545d01['nextSibling'];}return Array['from'](_0x5c66a3);}(_0x3f3f50));});};}_0x59021c['enableCommand']('numberedList',_0x336e5e('numberedList')),_0x59021c['enableCommand']('bulletedList',_0x336e5e('bulletedList')),_0x40be01&&_0x59021c['enableCommand']('todoList',_0x336e5e('todoList')),_0x59021c['enableCommand']('indentList',_0xa07011('indentList')),_0x59021c['enableCommand']('outdentList',_0xa07011('outdentList')),_0x40be01&&_0x59021c['enableCommand']('checkTodoList',()=>{const _0x2045c6=_0x56e90b['commands']['get']('checkTodoList'),_0x3f55d7=Array['from'](_0x2045c6['_selectedElements']);_0x3f55d7['filter'](_0x33d44f=>_0x33d44f['getAttribute']('todoListChecked')!=_0x2045c6['value']),_0x56e90b['model']['change'](()=>{for(const _0x189cea of _0x3f55d7)_0x59021c['markBlockFormat'](_0x189cea,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2045c6['value']}]});});}),_0x59021c['descriptionFactory']['registerElementLabel']('listItem',_0x20aa5b=>o(_0x2b65c1,'ELEMENT_LIST_ITEM',_0x20aa5b)),_0x59021c['descriptionFactory']['registerDescriptionCallback'](_0x34332d=>{if('formatBlock'!=_0x34332d['type']&&'formatInline'!=_0x34332d['type'])return;const {data:_0x3796df}=_0x34332d;if(_0x3796df){if('numberedList'==_0x3796df['commandName']||'bulletedList'==_0x3796df['commandName']||'todoList'==_0x3796df['commandName'])switch(_0x3796df['commandName']['replace']('List','')){case'bulleted':return _0x22d150(o(_0x2b65c1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x22d150(o(_0x2b65c1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x22d150(o(_0x2b65c1,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3796df['commandName'])return{'type':'format','content':o(_0x2b65c1,'*Indent:*\x20%0',o(_0x2b65c1,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3796df['commandName'])return{'type':'format','content':o(_0x2b65c1,'*Outdent:*\x20%0',o(_0x2b65c1,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3796df['commandName'])return _0x3796df['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2b65c1,'*Check\x20item*')}:{'type':'format','content':o(_0x2b65c1,'*Uncheck\x20item*')};}function _0x22d150(_0x2b5a64){return{'type':'format','content':o(_0x2b65c1,'*Change\x20to:*\x20%0',_0x2b5a64)};}});}}function Le(_0x355464){const _0x573724=_0x355464['getAttribute']('listIndent');if(0x0==_0x573724)return _0x355464;let _0x381733=_0x355464;for(;_0x355464['previousSibling']&&_0x355464['previousSibling']['is']('element','listItem');){const _0x228f54=_0x355464['previousSibling']['getAttribute']('listIndent');if(_0x228f54==_0x573724)_0x381733=_0x355464['previousSibling'];else{if(_0x228f54<_0x573724)break;}_0x355464=_0x355464['previousSibling'];}return _0x381733;}function Ee(_0x41c7a3){const _0x1018f0=[];if(_0x41c7a3['is']('element','listItem')&&_0x41c7a3['getAttribute']('listIndent')>0x0){let _0x466c2d=_0x41c7a3['nextSibling'];for(;_0x466c2d&&'listItem'==_0x466c2d['name']&&_0x466c2d['getAttribute']('listIndent')==_0x41c7a3['getAttribute']('listIndent');)_0x1018f0['push'](_0x466c2d),_0x466c2d=_0x466c2d['nextSibling'];}return _0x1018f0;}class Q extends _0x31ef78{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x42913d=this['editor']['config']['get']('list.properties'),_0x1dd094=this['editor']['plugins']['get']('TrackChangesEditing');_0x42913d['styles']&&_0x1dd094['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x42913d['reversed']&&_0x1dd094['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x42913d['startIndex']&&_0x1dd094['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1dd094['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x67a153,_0x1d5479={}){const _0x14a514=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4834d2=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x14a514['markMultiRangeBlockFormat'](_0x4834d2,{'commandName':'listStyle','commandParams':[{'type':_0x1d5479['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3afb36,_0x46963a={}){const _0x2d4483=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36e0f0=this['_getSuggestionBlocks'](_0x1b43cc=>_0x1b43cc['is']('element','listItem')&&'numbered'===_0x1b43cc['getAttribute']('listType'));if(_0x36e0f0['length']<0x1)return;const _0x5dd897=_0x36e0f0['map'](_0x38f203=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x38f203,'before'),this['editor']['model']['createPositionAt'](_0x38f203,0x0)));this['editor']['model']['change'](()=>{_0x2d4483['markMultiRangeBlockFormat'](_0x5dd897,{'commandName':'listReversed','commandParams':[{'reversed':_0x46963a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x168464,_0x124c71={}){const _0x3b0bc8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c5f60=this['_getSuggestionBlocks'](_0x14f514=>_0x14f514['is']('element','listItem')&&'numbered'===_0x14f514['getAttribute']('listType'));if(_0x2c5f60['length']<0x1)return;const _0x2851e5=_0x2c5f60['map'](_0x3efe21=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3efe21,'before'),this['editor']['model']['createPositionAt'](_0x3efe21,0x0)));this['editor']['model']['change'](()=>{_0x3b0bc8['markMultiRangeBlockFormat'](_0x2851e5,{'commandName':'listStart','commandParams':[{'startIndex':_0x124c71['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1048ee){if('formatBlock'!=_0x1048ee['type']&&'formatInline'!=_0x1048ee['type'])return;const _0x1c95bf=this['editor']['locale'],{data:_0x1d6d3f}=_0x1048ee;if(!_0x1d6d3f)return;let _0x8e128b,_0x2c9543;switch(_0x1d6d3f['commandName']){case'listStyle':_0x8e128b='*Change\x20to:*\x20%0',_0x2c9543={'type':'format','content':o(_0x1c95bf,_0x8e128b,o(_0x1c95bf,this['_getTranslationKeyForListStyle'](_0x1d6d3f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x8e128b=_0x1d6d3f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2c9543={'type':'format','content':o(_0x1c95bf,_0x8e128b)};break;case'listStart':_0x8e128b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2c9543={'type':'format','content':o(_0x1c95bf,_0x8e128b,_0x1d6d3f['commandParams'][0x0]['startIndex'])};}return _0x2c9543;}['_getSuggestionBlocksForListStyle'](){const _0x1d4de0=this['editor']['plugins']['get']('LegacyListUtils');let _0x3a1b1c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3a1b1c[0x0]?.['is']('element','listItem')&&_0x3a1b1c['unshift'](..._0x1d4de0['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3a1b1c[_0x3a1b1c['length']-0x1]?.['is']('element','listItem')&&_0x3a1b1c['push'](..._0x1d4de0['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3a1b1c=[...new Set(_0x3a1b1c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3a1b1c=_0x3a1b1c['filter'](_0x89a41b=>_0x89a41b['is']('element','listItem'))),_0x3a1b1c;}['_getSuggestionBlocks'](_0x50748b){const _0xea3fc8=this['editor']['plugins']['get']('LegacyListUtils');let _0x552e3a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x50748b)['map'](_0x1b7da1=>{const _0x19b5c8=this['editor']['model']['createPositionAt'](_0x1b7da1,0x0);return[..._0xea3fc8['getSiblingNodes'](_0x19b5c8,'backward'),..._0xea3fc8['getSiblingNodes'](_0x19b5c8,'forward')];})['flat']();return _0x552e3a=[...new Set(_0x552e3a)],_0x552e3a;}['_getTranslationKeyForListStyle'](_0x43aaeb){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x43aaeb)||'default')['toUpperCase']()+'_LIST_'+_0x43aaeb['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x31ef78{['afterInit'](){const _0x5f1feb=this['editor'];if(!_0x5f1feb['plugins']['has']('MediaEmbedEditing'))return;const _0x4b7ec8=_0x5f1feb['plugins']['get']('TrackChangesEditing'),_0x1f9d92=_0x5f1feb['locale'];_0x4b7ec8['enableCommand']('mediaEmbed'),_0x4b7ec8['descriptionFactory']['registerElementLabel']('media',_0x1adc84=>o(_0x1f9d92,'ELEMENT_MEDIA',_0x1adc84)),_0x5f1feb['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x378211,{writer:_0x5c7f20,options:_0x4493cc})=>{if(_0x4493cc['showSuggestionHighlights'])return _0x5c7f20['createEmptyElement']('div');},'converterPriority':'high'}),_0x5f1feb['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5e665c,_0x539fb5,_0x4b5541)=>{_0x4b5541['options']['showSuggestionHighlights']&&_0x5e665c['stop']();},{'priority':'high'});}}class pt extends _0x31ef78{['afterInit'](){const _0x5504eb=this['editor'];_0x5504eb['plugins']['has']('MentionEditing')&&_0x5504eb['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x31ef78{['afterInit'](){const _0x240738=this['editor'];if(!_0x240738['plugins']['has']('MergeFieldsEditing'))return;const _0x2f9824=_0x240738['plugins']['get']('TrackChangesEditing'),_0x5a35ce=_0x240738['locale'];_0x2f9824['enableCommand']('insertMergeField'),_0x2f9824['enableCommand']('insertMergeFieldBlock'),_0x2f9824['enableCommand']('insertMergeFieldImage'),_0x2f9824['descriptionFactory']['registerElementLabel']('mergeField',_0x1fbe7f=>o(_0x5a35ce,'ELEMENT_MERGE_FIELD',_0x1fbe7f)),_0x2f9824['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1300e9=>o(_0x5a35ce,'ELEMENT_MERGE_FIELD',_0x1300e9)),_0x2f9824['descriptionFactory']['registerDescriptionCallback'](_0x335b83=>{if('insertion'!=_0x335b83['type']&&'deletion'!=_0x335b83['type'])return;const _0x40d6e7=_0x335b83['getContainedElement']();if(null==_0x40d6e7)return;const _0x397c6a=_0x240738['plugins']['get']('MergeFieldsEditing');let _0x5308e2;switch(_0x397c6a['getMergeFieldType'](_0x40d6e7)){case null:return;case'image':{const _0x19e0cb=_0x397c6a['unwrapAffixes'](_0x40d6e7['getAttribute']('src'));_0x5308e2=_0x397c6a['getLabel'](_0x19e0cb)||_0x19e0cb;break;}default:{const _0x13909c=_0x40d6e7['getAttribute']('id');_0x5308e2=_0x397c6a['getLabel'](_0x13909c)||_0x13909c;break;}}return'insertion'==_0x335b83['type']?{'type':'insertion','content':o(_0x5a35ce,'*Insert:*\x20%0','\x22'+_0x5308e2+'\x22\x20'+o(_0x5a35ce,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5a35ce,'*Remove:*\x20%0','\x22'+_0x5308e2+'\x22\x20'+o(_0x5a35ce,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x31ef78{['afterInit'](){const _0x5cca6f=this['editor'],_0x56dfce=_0x5cca6f['plugins']['get']('TrackChangesEditing');_0x5cca6f['plugins']['has']('MultiLevelList')&&(_0x56dfce['enableDefaultAttributesIntegration']('multiLevelList'),_0x56dfce['registerBlockAttribute']('listMarkerStyle'),_0x56dfce['descriptionFactory']['registerDescriptionCallback'](_0x27dba6=>this['handleDescriptions'](_0x27dba6)));}['handleDescriptions'](_0x3fcd97){const _0x2e61b1=this['editor']['locale'],{data:_0x44757a}=_0x3fcd97,_0x3609d6={'type':'format','content':''};if(_0x44757a&&'listMarkerStyle'==_0x44757a['key']){if(!_0x44757a['oldValue'])return{'type':'format','content':o(_0x2e61b1,'*Set\x20format:*\x20%0',o(_0x2e61b1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x44757a['newValue']+')'};if(!_0x44757a['newValue']){let _0x477eff=_0x3fcd97['head'];for(;_0x477eff;){if(_0x477eff['data']&&'listType'==_0x477eff['data']['key']&&_0x477eff['data']['newValue'])return _0x3609d6;_0x477eff=_0x477eff['next'];}return{'type':'format','content':o(_0x2e61b1,'*Remove\x20format:*\x20%0',o(_0x2e61b1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x44757a['oldValue']+')'};}}}}class bt extends _0x31ef78{['afterInit'](){const _0x53125e=this['editor'];if(!_0x53125e['plugins']['has']('PageBreakEditing'))return;_0x53125e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x41a859=_0x53125e['plugins']['get']('TrackChangesEditing'),_0x2806e9=_0x53125e['locale'];_0x41a859['descriptionFactory']['registerElementLabel']('pageBreak',_0x221279=>o(_0x2806e9,'ELEMENT_PAGE_BREAK',_0x221279));}}class yt extends _0x31ef78{['afterInit'](){const _0x2934b8=this['editor'];if(!_0x2934b8['plugins']['has']('Paragraph'))return;const _0xe8b531=_0x2934b8['locale'],_0x166598=_0x2934b8['plugins']['get']('TrackChangesEditing');_0x166598['descriptionFactory']['registerElementLabel']('paragraph',_0x1893e2=>o(_0xe8b531,'ELEMENT_PARAGRAPH',_0x1893e2)),_0x166598['enableDefaultAttributesIntegration']('paragraph'),_0x166598['enableCommand']('insertParagraph'),_0x2934b8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2934b8),{'priority':'highest'}),_0x2934b8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x244dbc,_0x535a03,_0x248cca)=>{_0x248cca['options']['showSuggestionHighlights']&&nr(_0x2934b8,{'showActiveMarker':!0x1})(_0x244dbc,_0x535a03,_0x248cca);},{'priority':'highest'});const _0x4fccc8=_0x166598['descriptionFactory'];_0x4fccc8['registerDescriptionCallback'](_0x7e1adf=>{if('insertion'!==_0x7e1adf['type'])return;const {start:_0x573415,end:_0x4ac535}=_0x7e1adf['getFirstRange']();if(!_0x573415['isTouching'](_0x4ac535)||!_0x573415['nodeAfter'])return;const _0x454736=_0x2934b8['model']['schema'],_0x145c26=_0x573415['nodeAfter'];return _0x454736['isBlock'](_0x145c26)&&!_0x454736['isLimit'](_0x145c26)&&_0x454736['checkChild'](_0x145c26,'$text')?{'type':'insertion','content':o(_0xe8b531,'*Insert:*\x20%0',_0x4fccc8['getItemLabel'](_0x145c26,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7a05b5=this['editor'],_0x5f4fd5=_0x7a05b5['locale'];_0x7a05b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c063d=>{if('formatBlock'!=_0x3c063d['type'])return;const {data:_0x426df6}=_0x3c063d;return _0x426df6&&'paragraph'==_0x426df6['commandName']?{'type':'format','content':o(_0x5f4fd5,'*Change\x20to:*\x20%0',o(_0x5f4fd5,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4b6ffe,{showActiveMarker:_0x29f702=!0x0}={}){return(_0x29e2fd,_0x322df6,_0x5795e4)=>{const _0x5631da=_0x4b6ffe['plugins']['get']('TrackChangesEditing'),_0x133814=_0x322df6['markerRange']['start'],_0x1f431b=_0x322df6['markerRange']['end'],_0x19d87e=_0x4b6ffe['model']['schema'];if(!_0x133814['isTouching'](_0x1f431b)||!_0x133814['nodeAfter'])return;const _0x18b2b5=_0x133814['nodeAfter'];if(_0x19d87e['isBlock'](_0x18b2b5)&&!_0x19d87e['isLimit'](_0x18b2b5)&&_0x19d87e['checkChild'](_0x18b2b5,'$text')){if(!_0x5795e4['consumable']['consume'](_0x322df6['markerRange'],_0x29e2fd['name']))return;const {authorId:_0x24cff4}=_0x5631da['_splitMarkerName'](_0x322df6['markerName']),_0x594b38=_0x5795e4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x24cff4}),_0x590218=_0x5795e4['mapper']['toViewPosition'](_0x1f431b);_0x29f702&&_0x5631da['activeMarkers']['includes'](_0x322df6['markerName'])&&_0x5795e4['writer']['addClass']('ck-suggestion-marker--active',_0x594b38),_0x5795e4['writer']['insert'](_0x590218,_0x594b38),_0x5795e4['mapper']['bindElementToMarker'](_0x594b38,_0x322df6['markerName']);}};}class jt extends _0x31ef78{['afterInit'](){const _0x347dd5=this['editor'];_0x347dd5['commands']['get']('replaceSource')&&_0x347dd5['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x31ef78{['afterInit'](){const _0x3097ce=this['editor'];if(!_0x3097ce['plugins']['has']('RemoveFormatEditing'))return;_0x3097ce['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2512f0=this['editor'];_0x2512f0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x72cec6=>{if('formatBlock'!=_0x72cec6['type']&&'formatInline'!=_0x72cec6['type'])return;const {data:_0xadd039}=_0x72cec6;return _0xadd039&&'removeFormat'==_0xadd039['commandName']?{'type':'format','content':o(_0x2512f0['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x31ef78{['afterInit'](){const _0x59af22=this['editor'];if(!_0x59af22['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x26a14e=_0x59af22['plugins']['get']('TrackChangesEditing');_0x26a14e['enableCommand']('goToPreviousRestrictedEditingException'),_0x26a14e['enableCommand']('goToNextRestrictedEditingException');const _0x5ae406=_0x59af22['plugins']['get']('RestrictedEditingModeEditing');_0x5ae406['enableCommand']('trackChanges'),_0x5ae406['enableCommand']('acceptSuggestion'),_0x5ae406['enableCommand']('discardSuggestion'),_0x5ae406['enableCommand']('acceptAllSuggestions'),_0x5ae406['enableCommand']('discardAllSuggestions'),_0x5ae406['enableCommand']('acceptSelectedSuggestions'),_0x5ae406['enableCommand']('discardSelectedSuggestions');}}class It extends _0x31ef78{static get['requires'](){return[_0x2fa6e5];}['init'](){const _0x160d1d=this['editor'],_0x26f32f=_0x160d1d['plugins']['get']('TrackChangesEditing');_0x26f32f['enableCommand']('shiftEnter'),_0x160d1d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x160d1d),{'priority':'high'}),_0x160d1d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x160d1d),{'priority':'high'}),_0x160d1d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5a9944,_0x379b9f,_0x7d6799)=>{_0x7d6799['options']['showSuggestionHighlights']&&je(_0x160d1d,{'showActiveMarker':!0x1})(_0x5a9944,_0x379b9f,_0x7d6799);}),_0x26f32f['descriptionFactory']['registerElementLabel']('softBreak',_0x3db3ad=>o(_0x160d1d['locale'],'ELEMENT_LINE_BREAK',_0x3db3ad));}}function je(_0x472591,{showActiveMarker:_0x4feaaa=!0x0}={}){return(_0x40d187,_0x55c091,_0x2caf68)=>{const _0xf318e4=_0x472591['plugins']['get']('TrackChangesEditing');if(!_0x2caf68['consumable']['test'](_0x55c091['markerRange'],_0x40d187['name']))return;const _0x5c3f2a=_0x472591['model'];for(const _0x430884 of _0x55c091['markerRange']['getItems']()){if(!_0x430884['is']('element','softBreak'))continue;const _0x4decf6='deletion'==_0x55c091['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x2019da}=_0xf318e4['_splitMarkerName'](_0x55c091['markerName']),_0x34aae6=_0x2caf68['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4decf6,'data-author-id':_0x2019da}),_0x4b94b=_0x2caf68['mapper']['toViewPosition'](_0x5c3f2a['createPositionBefore'](_0x430884));_0x4feaaa&&_0xf318e4['activeMarkers']['includes'](_0x55c091['markerName'])&&_0x2caf68['writer']['addClass']('ck-suggestion-marker--active',_0x34aae6),_0x2caf68['writer']['insert'](_0x4b94b,_0x34aae6),_0x2caf68['mapper']['bindElementToMarker'](_0x34aae6,_0x55c091['markerName']);}};}class vt extends _0x31ef78{['afterInit'](){const _0x37dce1=this['editor'],_0x1956b6=_0x37dce1['model'],_0x1a070a=_0x37dce1['locale'];if(!_0x37dce1['plugins']['has']('StandardEditingModeEditing'))return;const _0x3bfb9b=_0x37dce1['plugins']['get']('TrackChangesEditing'),_0xd17eb0='restrictedEditingException',_0xfe95d=_0x37dce1['commands']['get'](_0xd17eb0);_0x3bfb9b['enableCommand'](_0xd17eb0,(_0x7303e4,_0x2377fe={})=>{const _0x377e2c=_0x1956b6['document']['selection'];if(_0x377e2c['isCollapsed'])return void _0x7303e4(_0x2377fe);const _0x428cbf=void 0x0!==_0x2377fe['forceValue']?_0x2377fe['forceValue']:!_0xfe95d['value'];_0x1956b6['change'](()=>{const _0x39f79e=Array['from'](_0x377e2c['getRanges']());for(const _0x233f23 of _0x39f79e){const _0x2a2b9c=_0x428cbf?[_0x233f23]:io(_0xd17eb0,_0x233f23,_0x1956b6);for(const _0x57afd8 of _0x2a2b9c)_0x3bfb9b['markInlineFormat'](_0x57afd8,{'commandName':_0xd17eb0,'commandParams':[{'forceValue':_0x428cbf}]});}});}),_0x3bfb9b['descriptionFactory']['registerDescriptionCallback'](_0x292304=>{if('formatBlock'!=_0x292304['type']&&'formatInline'!=_0x292304['type'])return;const {data:_0x4da844}=_0x292304;return _0x4da844&&_0x4da844['commandName']==_0xd17eb0?_0x4da844['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1a070a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1a070a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x31ef78{['afterInit'](){const _0x3c7986=this['editor'];if(!_0x3c7986['plugins']['has']('Style')||!_0x3c7986['plugins']['has']('DataSchema'))return;const _0x2ceed4=_0x3c7986['plugins']['get']('TrackChangesEditing'),_0x2e1fce=_0x3c7986['locale'],_0x79e341=_0x3c7986['config']['get']('style')||{},_0x532e6f=_0x3c7986['plugins']['get']('GeneralHtmlSupport'),_0x51494e=_0x3c7986['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3c7986['plugins']['get']('DataSchema'),_0x79e341['definitions']);_0x2ceed4['enableDefaultAttributesIntegration']('style');const _0x1e9c33=new Set();for(const _0x950c2e of _0x51494e['block']){const _0x342563=_0x532e6f['getGhsAttributeNameForElement'](_0x950c2e['element']);_0x1e9c33['add'](_0x342563);}const _0x4a0008=new Set();for(const _0x384c1e of _0x51494e['inline']){const _0x5c3af8=_0x532e6f['getGhsAttributeNameForElement'](_0x384c1e['element']);_0x4a0008['add'](_0x5c3af8);for(const _0x4e503d of _0x384c1e['ghsAttributes'])_0x4a0008['add'](_0x4e503d);}for(const _0x2b1b2f of _0x1e9c33)_0x2ceed4['registerBlockAttribute'](_0x2b1b2f),_0x2ceed4['descriptionFactory']['registerAttributeLabel'](_0x2b1b2f,o(_0x2e1fce,'FORMAT_STYLE'));for(const _0x346545 of _0x4a0008)_0x2ceed4['registerInlineAttribute'](_0x346545),_0x2ceed4['descriptionFactory']['registerAttributeLabel'](_0x346545,o(_0x2e1fce,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35f1d5=this['editor'],_0x3da883=_0x35f1d5['locale'];_0x35f1d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36cd01=>{if('formatBlock'!=_0x36cd01['type']&&'formatInline'!=_0x36cd01['type'])return;const {data:_0x504c0f}=_0x36cd01;return _0x504c0f&&'style'===_0x504c0f['commandName']?_0x504c0f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3da883,'*Set\x20format:*\x20%0',_0x504c0f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3da883,'*Remove\x20format:*\x20%0',_0x504c0f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x31ef78{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x20b27c){super(_0x20b27c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x39d4c7=this['editor'],_0x37115a=_0x39d4c7['model']['document']['selection'];if(!_0x39d4c7['plugins']['has']('TableEditing'))return;const _0x243313=_0x39d4c7['locale'],_0x32903f=_0x39d4c7['plugins']['get']('TrackChangesEditing'),_0x5e1443=_0x39d4c7['plugins']['get']('TableUtils');_0x32903f['descriptionFactory']['registerElementLabel']('table',_0x5f247d=>o(_0x243313,'ELEMENT_TABLE',_0x5f247d)),this['_setupColumnsRowsFixing'](),_0x32903f['enableCommand']('insertTable'),_0x32903f['enableCommand']('selectTableRow'),_0x32903f['enableCommand']('selectTableColumn');for(const _0x3e0b26 of['insertTableRowAbove','insertTableRowBelow']){const _0x40c7e1=_0x39d4c7['commands']['get'](_0x3e0b26);_0x32903f['enableCommand'](_0x3e0b26,_0x5116e1=>{_0x39d4c7['model']['change'](_0x43e2f1=>{_0x5116e1();const _0x452915='above'===_0x40c7e1['order'],_0x152462=_0x5e1443['getSelectionAffectedTableCells'](_0x37115a),_0x32561a=_0x5e1443['getRowIndexes'](_0x152462),_0x533761=_0x452915?_0x32561a['first']-0x1:_0x32561a['last']+0x1,_0x5c9644=_0x152462[0x0]['findAncestor']('table'),_0x3635fe=_0x5e1443['createTableWalker'](_0x5c9644,{'startRow':_0x533761,'endRow':_0x533761}),_0x1625ca=Array['from'](_0x3635fe)['map'](_0x4e2c01=>_0x43e2f1['createRangeOn'](_0x4e2c01['cell']));_0x32903f['markMultiRangeInsertion'](_0x1625ca,'tableRow');});});}for(const _0x4bf2f0 of['insertTableColumnLeft','insertTableColumnRight']){const _0x136b53=_0x39d4c7['commands']['get'](_0x4bf2f0);_0x32903f['enableCommand'](_0x4bf2f0,_0xa09bfe=>{_0x39d4c7['model']['change'](_0x209883=>{_0xa09bfe();const _0x3433ff='left'===_0x136b53['order'],_0x3c7d04=_0x5e1443['getSelectionAffectedTableCells'](_0x37115a),_0x7340e9=_0x5e1443['getColumnIndexes'](_0x3c7d04),_0x2b7cf5=_0x3433ff?_0x7340e9['first']-0x1:_0x7340e9['last']+0x1,_0xd50adb=_0x3c7d04[0x0]['findAncestor']('table'),_0x91ed44=_0x5e1443['createTableWalker'](_0xd50adb,{'startRow':0x0,'column':_0x2b7cf5,'includeAllSlots':!0x1}),_0x23f718=Array['from'](_0x91ed44)['map'](_0x4e670c=>_0x209883['createRangeOn'](_0x4e670c['cell']));_0x32903f['markMultiRangeInsertion'](_0x23f718,'tableColumn');});});}for(const _0x27da91 of['removeTableRow','removeTableColumn']){const _0x24668a=_0x27da91['substr'](0xb),_0x47b037=_0x24668a['toLowerCase'](),_0x2428a0=_0x47b037['substr'](0x0,0x3)+'span',_0x5b841f='table'+_0x24668a,_0x518c87='min'+_0x24668a,_0x4d9aeb='max'+_0x24668a;_0x32903f['enableCommand'](_0x27da91,()=>{_0x39d4c7['model']['change'](_0x264729=>{const _0x18a6a2=_0x5e1443['getSelectionAffectedTableCells'](_0x37115a),_0x5d8fa8=_0x18a6a2[0x0]['findAncestor']('table');let _0x8c1dbe;if('removeTableRow'==_0x27da91){const _0x2a0a20=_0x5e1443['getRowIndexes'](_0x18a6a2);_0x8c1dbe={'startRow':_0x2a0a20['first'],'endRow':_0x2a0a20['last'],'includeAllSlots':!0x0};}else{const _0xb50ea4=_0x5e1443['getColumnIndexes'](_0x18a6a2);_0x8c1dbe={'startColumn':_0xb50ea4['first'],'endColumn':_0xb50ea4['last'],'includeAllSlots':!0x0};}const _0x1d1798=_0x5e1443['createTableWalker'](_0x5d8fa8,_0x8c1dbe),_0x1f62d6=Array['from'](_0x1d1798)['map'](({cell:_0x3f51b8})=>_0x3f51b8),_0x201c8d=Ne(_0x1f62d6['filter'](_0x341a84=>_0x341a84['hasAttribute'](_0x2428a0))),_0xc90fa4=Ne(_0x1f62d6['filter'](_0x172a96=>!_0x172a96['hasAttribute'](_0x2428a0)))['map'](_0xc33a1a=>_0x264729['createRangeOn'](_0xc33a1a)),_0x5f3df3=_0x32903f['markMultiRangeDeletion'](_0xc90fa4,_0x5b841f);if(_0x5f3df3&&('tableRow'==_0x5f3df3['subType']||'tableColumn'==_0x5f3df3['subType'])){const _0x576326=this['_getSuggestionCoords'](_0x5f3df3);for(const _0x3575db of _0x201c8d){const _0x34ce5a=_0x264729['createRangeOn'](_0x3575db),_0x4fc653=_0x5e1443['getCellLocation'](_0x3575db),_0x1b977e=_0x3575db['getAttribute'](_0x2428a0)-0x1,_0x1b8eb7=_0x576326[_0x518c87],_0x3be159=_0x576326[_0x4d9aeb];_0x1b8eb7<=_0x4fc653[_0x47b037]&&_0x4fc653[_0x47b037]+_0x1b977e<=_0x3be159&&_0x5f3df3['addRange'](_0x34ce5a);}}});});}function _0x27b6ed(_0xb46de7){const _0x1dd972=Array['from'](_0x37115a['getRanges']())['map'](_0x4fd93e=>_0x512f92['fromRange'](_0x4fd93e));_0x39d4c7['model']['change'](_0x1e063d=>{const _0x4670db=_0x1e063d['batch'];_0xb46de7=_0xb46de7['filter'](_0x15ddad=>'$graveyard'!=_0x15ddad['root']['rootName']),_0x1e063d['setSelection'](_0xb46de7),_0x39d4c7['commands']['get']('removeTableRow')['refresh'](),_0x39d4c7['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x39d4c7['model']['enqueueChange'](()=>{_0x39d4c7['model']['enqueueChange'](_0x4670db,_0x8ae6df=>{const _0x53a946=_0x1dd972['filter'](_0x2b9fef=>'$graveyard'!=_0x2b9fef['root']['rootName']);_0x53a946['length']>0x0&&_0x8ae6df['setSelection'](_0x53a946);for(const _0x11e96d of _0x1dd972)_0x11e96d['detach']();});});});}function _0x2044af(_0x161a0d){_0x39d4c7['model']['change'](_0x2d4e9e=>{const _0x4bd29e=Array['from'](_0x37115a['getRanges']())['map'](_0x15c4b4=>_0x512f92['fromRange'](_0x15c4b4)),_0x55dbe7=[];for(const _0x3de36d of _0x161a0d)for(const _0x23525b of _0x3de36d['getItems']({'shallow':!0x0}))_0x55dbe7['push'](_0x23525b);for(const _0x191402 of _0x55dbe7)'$graveyard'!=_0x191402['root']['rootName']&&(_0x2d4e9e['setSelection'](_0x2d4e9e['createPositionAt'](_0x191402,0x0)),_0x39d4c7['commands']['get']('removeTableColumn')['refresh'](),_0x39d4c7['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4a5bbb=_0x4bd29e['filter'](_0x2d0009=>'$graveyard'!=_0x2d0009['root']['rootName']);_0x4a5bbb['length']>0x0&&_0x2d4e9e['setSelection'](_0x4a5bbb);for(const _0x50983b of _0x4bd29e)_0x50983b['detach']();});}function _0x30fd58(_0x4c91dd,_0x17f22d){return _0x17f22d['every'](_0x160b04=>_0x4c91dd['some'](_0xa968ad=>_0xa968ad['end']['isEqual'](_0x160b04['start'])||_0x160b04['end']['isEqual'](_0xa968ad['start'])));}function _0x2cbe89(_0x1ffa0c,_0x30f7dd){return!_0x1ffa0c['some'](_0x142b1c=>_0x30f7dd['some'](_0x504a60=>_0x142b1c['isIntersecting'](_0x504a60)))&&_0x1ffa0c['some'](_0x112133=>_0x30f7dd['some'](_0x5947a3=>_0x112133['end']['isTouching'](_0x5947a3['start'])));}_0x39d4c7['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x52c9c1,_0x641ddc,_0x44e6fd)=>{if(!_0x44e6fd['options']['showSuggestionHighlights'])return;const _0x139adf=_0x641ddc['item'];if(!_0x139adf)return;const _0xaa7b62=_0x44e6fd['mapper']['toViewElement'](_0x139adf);function _0x15f4f3(_0x4c4b9d){return Array['isArray'](_0x4c4b9d)?_0x4c4b9d:[_0x4c4b9d];}_0xaa7b62&&'tableCell'===_0x139adf['name']&&_0xd37db3(_0xaa7b62,_0x44e6fd['writer'],(_0x26d969,_0x2f233b,_0x167be0)=>_0x167be0['addClass'](_0x15f4f3(_0x2f233b['classes']),_0x26d969),(_0x272e5c,_0x25e4e0,_0x1295bd)=>_0x1295bd['removeClass'](_0x15f4f3(_0x25e4e0['classes']),_0x272e5c));},{'priority':'highest'}),_0x32903f['descriptionFactory']['registerDescriptionCallback'](_0x1a5be6=>{if('insertion'!=_0x1a5be6['type']&&'deletion'!=_0x1a5be6['type'])return;const _0x4e78eb=_0x1a5be6['getContainedElement']();if(null!=_0x4e78eb&&_0x4e78eb['is']('element','table')){if('insertion'==_0x1a5be6['type']){const _0x13372a=_0x1a5be6['getItems']()['filter'](_0x19d638=>_0x19d638['is']('$textProxy'))['map'](_0x453322=>_0x453322['data']);if(_0x13372a['length'])return{'type':'insertion','content':o(_0x243313,'*Insert:*\x20%0',o(_0x243313,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x13372a['join']('\x20')+'\x22'))};}if('deletion'==_0x1a5be6['type']){const _0x40babd=_0x1a5be6['getItems']()['filter'](_0x301a6e=>_0x301a6e['is']('$textProxy'))['map'](_0x15a39e=>_0x15a39e['data']);if(_0x40babd['length'])return{'type':'deletion','content':o(_0x243313,'*Remove:*\x20%0',o(_0x243313,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x40babd['join']('\x20')+'\x22'))};}}}),_0x32903f['descriptionFactory']['registerDescriptionCallback'](_0x52f964=>{if('tableRow'==_0x52f964['subType']){const _0xeff11=_0x52f964['getItems']()['filter'](_0x2f90a2=>_0x2f90a2['is']('$textProxy'))['map'](_0x10772e=>_0x10772e['data']),_0x220aa1=this['_getSuggestionCoords'](_0x52f964),_0x599a59=_0x220aa1['maxRow']-_0x220aa1['minRow']+0x1;if('insertion'==_0x52f964['type'])return _0xeff11['length']?{'type':'insertion','content':o(_0x243313,'*Insert:*\x20%0',o(_0x243313,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x599a59,'\x22'+_0xeff11['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x243313,'*Insert:*\x20%0',o(_0x243313,'ELEMENT_TABLE_ROW',_0x599a59))};if('deletion'==_0x52f964['type'])return _0xeff11['length']?{'type':'deletion','content':o(_0x243313,'*Remove:*\x20%0',o(_0x243313,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x599a59,'\x22'+_0xeff11['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x243313,'*Remove:*\x20%0',o(_0x243313,'ELEMENT_TABLE_ROW',_0x599a59))};}if('tableColumn'==_0x52f964['subType']){const _0x3511cd=_0x52f964['getItems']()['filter'](_0x42aa56=>_0x42aa56['is']('$textProxy'))['map'](_0x34a9ce=>_0x34a9ce['data']),_0x1a9233=this['_getSuggestionCoords'](_0x52f964),_0x26bfd9=_0x1a9233['maxColumn']-_0x1a9233['minColumn']+0x1;if('insertion'==_0x52f964['type'])return _0x3511cd['length']?{'type':'insertion','content':o(_0x243313,'*Insert:*\x20%0',o(_0x243313,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x26bfd9,'\x22'+_0x3511cd['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x243313,'*Insert:*\x20%0',o(_0x243313,'ELEMENT_TABLE_COLUMN',_0x26bfd9))};if('deletion'==_0x52f964['type'])return _0x3511cd['length']?{'type':'deletion','content':o(_0x243313,'*Remove:*\x20%0',o(_0x243313,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x26bfd9,'\x22'+_0x3511cd['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x243313,'*Remove:*\x20%0',o(_0x243313,'ELEMENT_TABLE_COLUMN',_0x26bfd9))};}}),_0x32903f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x27b6ed),_0x32903f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x27b6ed),_0x32903f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2044af),_0x32903f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2044af),_0x32903f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x30fd58),_0x32903f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x30fd58),_0x32903f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2cbe89),_0x32903f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2cbe89);}['_acceptFormatSuggestionCallbackFactory'](){const _0x25f7ef=this['editor'],_0xea64c5=_0x25f7ef['model']['document']['selection'];return(_0x51c471,_0x5145ea)=>{_0x25f7ef['model']['change'](_0x1438c0=>{const {commandName:_0x4d66f2,commandParams:_0x3ffdfa}=_0x5145ea;let _0x1704d0=_0x51c471[0x0]['end']['nodeBefore'];_0x3ffdfa&&_0x3ffdfa[0x0]&&!0x1===_0x3ffdfa[0x0]['forceValue']&&(_0x1704d0=_0x51c471[0x0]['start']['nodeAfter']);const _0x3efe69=_0x1438c0['createRangeIn'](_0x1704d0);if('$graveyard'==_0x3efe69['root']['rootName'])return;const _0x379cfa=Array['from'](_0xea64c5['getRanges']())['map'](_0x48902e=>_0x512f92['fromRange'](_0x48902e));_0x1438c0['setSelection'](_0x3efe69),_0x25f7ef['commands']['get'](_0x4d66f2)['refresh'](),_0x3ffdfa['push']({'forceDefaultExecution':!0x0}),_0x25f7ef['execute'](_0x4d66f2,..._0x3ffdfa);const _0x37e5f6=_0x379cfa['filter'](_0x3ac95c=>'$graveyard'!=_0x3ac95c['root']['rootName']);_0x37e5f6['length']>0x0&&_0x1438c0['setSelection'](_0x37e5f6);for(const _0x4cf4be of _0x379cfa)_0x4cf4be['detach']();});};}['_getCoordsForCells'](_0x3e5bb3){const _0x14e146=this['editor']['plugins']['get']('TableUtils');let _0x3b4e95=Number['MAX_SAFE_INTEGER'],_0x3ab802=Number['MIN_SAFE_INTEGER'],_0x4ffab4=Number['MAX_SAFE_INTEGER'],_0x3a534c=Number['MIN_SAFE_INTEGER'];for(const _0x1c7bb9 of _0x3e5bb3){if('$graveyard'==_0x1c7bb9['root']['rootName'])continue;const {row:_0x31af56,column:_0xdd1392}=_0x14e146['getCellLocation'](_0x1c7bb9),_0x21b7d8=_0x1c7bb9['hasAttribute']('rowspan')?_0x1c7bb9['getAttribute']('rowspan')-0x1:0x0,_0x2c38a8=_0x1c7bb9['hasAttribute']('colspan')?_0x1c7bb9['getAttribute']('colspan')-0x1:0x0;_0x3b4e95=_0x31af56<_0x3b4e95?_0x31af56:_0x3b4e95,_0x3ab802=_0x31af56+_0x21b7d8>_0x3ab802?_0x31af56+_0x21b7d8:_0x3ab802,_0x4ffab4=_0xdd1392<_0x4ffab4?_0xdd1392:_0x4ffab4,_0x3a534c=_0xdd1392+_0x2c38a8>_0x3a534c?_0xdd1392+_0x2c38a8:_0x3a534c;}return{'minRow':_0x3b4e95,'maxRow':_0x3ab802,'minColumn':_0x4ffab4,'maxColumn':_0x3a534c};}['_setupColumnsRowsFixing'](){const _0x55d830=this['editor'],_0x5ddf17=_0x55d830['plugins']['get']('TrackChangesEditing'),_0x21a088=_0x55d830['plugins']['get']('TableUtils');_0x55d830['model']['document']['on']('change:data',()=>{const _0x1d4eae=Array['from'](_0x55d830['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x11ee0e,data:_0x9a57ee}of _0x1d4eae){const {group:_0x4f9e78,id:_0x1e1f15,subType:_0x3b55b9}=_0x5ddf17['_splitMarkerName'](_0x11ee0e);if('suggestion'!=_0x4f9e78)continue;if(null!=_0x9a57ee['oldRange'])continue;const _0x4a69a5=_0x5ddf17['getSuggestion'](_0x1e1f15);this['_tablePostFixingSubtypes']['includes'](_0x3b55b9)&&this['_tableSuggestions']['add'](_0x4a69a5);}},{'priority':'low'});const _0x5061cf=(_0x42169a,_0x3b1b65)=>{let _0x4465a3=!0x1;const _0x26e255=_0x3b1b65['createRangeOn'](_0x42169a),_0x253073=_0x42169a['findAncestor']('table'),_0x397196=_0x21a088['getCellLocation'](_0x42169a);for(const _0x51fc54 of this['_tableSuggestions']){const _0x21a653=_0x51fc54['subType'],_0x2c4c63=_0x21a653['startsWith']('tablePaste'),_0x3b0114=_0x21a653['substr'](_0x2c4c63?0xa:0x5),_0x56d1b6=_0x3b0114['toLowerCase'](),_0x1b1ee3=_0x56d1b6['substr'](0x0,0x3)+'span',_0xaa3d24='min'+_0x3b0114,_0x5a56f1='max'+_0x3b0114;if(!_0x51fc54['isInContent'])continue;if(_0x253073!=_0x51fc54['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x51fc54['isIntersectingWithRange'](_0x26e255))continue;const _0x5b7f64=_0x42169a['hasAttribute'](_0x1b1ee3)?_0x42169a['getAttribute'](_0x1b1ee3)-0x1:0x0,_0x12b5cd=this['_getSuggestionCoords'](_0x51fc54),_0x32c1b9=_0x12b5cd[_0xaa3d24],_0x178d30=_0x12b5cd[_0x5a56f1];_0x32c1b9<=_0x397196[_0x56d1b6]&&_0x397196[_0x56d1b6]+_0x5b7f64<=_0x178d30&&(_0x51fc54['addRange'](_0x26e255),_0x4465a3=!0x0);}return _0x4465a3;};_0x55d830['model']['document']['registerPostFixer'](_0x5118f3=>{let _0x48d543=!0x1;for(const _0x8ab446 of _0x55d830['model']['document']['differ']['getChanges']())if('insert'==_0x8ab446['type']){if('tableRow'==_0x8ab446['name']){for(const _0x37b57f of _0x8ab446['position']['nodeAfter']['getChildren']())_0x48d543=_0x48d543||_0x5061cf(_0x37b57f,_0x5118f3);}else'tableCell'==_0x8ab446['name']&&(_0x48d543=_0x48d543||_0x5061cf(_0x8ab446['position']['nodeAfter'],_0x5118f3));}return _0x48d543;});}['_getSuggestionCoords'](_0x581254){return this['_getCoordsForCells'](_0x581254['getRanges']()['map'](_0x95b994=>_0x95b994['start']['nodeAfter']));}}function Ne(_0x360267){return Array['from'](new Set(_0x360267)['values']());}class Nt extends _0x31ef78{static get['requires'](){return[Ct];}['afterInit'](){const _0x5c3432=this['editor'],_0x175263=_0x5c3432['model']['document']['selection'],_0x561b39=_0x5c3432['locale'];if(!_0x5c3432['plugins']['has']('TableEditing'))return;const _0x3cc1b0=_0x5c3432['plugins']['get']('TrackChangesEditing'),_0x308cf3=_0x5c3432['plugins']['get']('TableUtils'),_0x2cd0c3=_0x5c3432['plugins']['get'](Ct);_0x2cd0c3['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3cc1b0['enableCommand']('mergeTableCells',()=>{const _0x27b2f2=_0x308cf3['getSelectionAffectedTableCells'](_0x5c3432['model']['document']['selection']);_0x5c3432['model']['change'](()=>{_0x3cc1b0['markMultiRangeBlockFormat'](_0x27b2f2,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5c3432['commands']['get']('mergeTableCells')['on']('execute',(_0x1f98f1,_0x162b40)=>{_0x5c3432['commands']['get']('trackChanges')['value']&&(_0x162b40['length']>0x0&&_0x162b40[_0x162b40['length']-0x1]&&_0x162b40[_0x162b40['length']-0x1]['forceDefaultExecution']||_0x3cc1b0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1f98f1['stop']());},{'priority':'highest'});for(const _0x13dd64 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4b639c=_0x5c3432['commands']['get'](_0x13dd64);_0x3cc1b0['enableCommand'](_0x13dd64,()=>{const _0x1743f0=_0x5c3432['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x53dc9c=>_0x53dc9c['is']('element','tableCell')),_0x418958=_0x4b639c['value'];_0x5c3432['model']['change'](()=>{_0x3cc1b0['markMultiRangeBlockFormat']([_0x1743f0,_0x418958],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2db528 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1f63c9=_0x5c3432['commands']['get'](_0x2db528);_0x3cc1b0['enableCommand'](_0x2db528,()=>{const _0xd7d879=_0x308cf3['getSelectionAffectedTableCells'](_0x5c3432['model']['document']['selection'])[0x0],_0x147379=_0xd7d879['findAncestor']('table'),{column:_0x32c3f9,row:_0x38fbc5}=_0x308cf3['getCellLocation'](_0xd7d879);let _0x4fffc7=[];if('horizontally'==_0x1f63c9['direction']){const _0x350145=_0x308cf3['createTableWalker'](_0x147379,{'startRow':_0x38fbc5,'endRow':_0x38fbc5,'includeAllSlots':!0x0});_0x4fffc7=Array['from'](_0x350145)['map'](_0x4e5300=>_0x4e5300['cell']);}else{const _0x3692dc=_0x308cf3['createTableWalker'](_0x147379,{'column':_0x32c3f9,'includeAllSlots':!0x0});_0x4fffc7=Array['from'](_0x3692dc)['map'](_0x19393a=>_0x19393a['cell']);}_0x5c3432['model']['change'](_0x1562f5=>{_0x3cc1b0['markBlockFormat'](_0x1562f5['createRangeOn'](_0xd7d879),{'commandName':_0x2db528,'commandParams':[]},_0x4fffc7,_0x2db528);});});}_0x3cc1b0['descriptionFactory']['registerDescriptionCallback'](_0x3a6ec3=>{if('formatBlock'!=_0x3a6ec3['type']&&'formatInline'!=_0x3a6ec3['type'])return;const {data:_0x53cc47}=_0x3a6ec3;return _0x53cc47&&'mergeTableCells'==_0x53cc47['commandName']?{'type':'format','content':o(_0x561b39,'*Merge\x20cells*')}:void 0x0;}),_0x3cc1b0['descriptionFactory']['registerDescriptionCallback'](_0x2f815e=>{if('formatBlock'!=_0x2f815e['type']&&'formatInline'!=_0x2f815e['type'])return;const {data:_0x51b149}=_0x2f815e;return _0x51b149?'splitTableCellVertically'==_0x51b149['commandName']?{'type':'format','content':o(_0x561b39,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x51b149['commandName']?{'type':'format','content':o(_0x561b39,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x357157=_0x2cd0c3['_acceptFormatSuggestionCallbackFactory']();for(const _0x411da0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3cc1b0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x411da0,'accept',_0x357157);for(const _0x5b6076 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3cc1b0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5b6076,'accept',_0x357157);_0x3cc1b0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3de97f=>{_0x5c3432['model']['change'](_0x575b8e=>{const _0x2b54f2=Array['from'](_0x175263['getRanges']())['map'](_0x5a75d4=>_0x512f92['fromRange'](_0x5a75d4));_0x575b8e['setSelection'](_0x3de97f),_0x5c3432['commands']['get']('mergeTableCells')['refresh'](),_0x5c3432['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3f623d=_0x2b54f2['filter'](_0x9cd37=>'$graveyard'!=_0x9cd37['root']['rootName']);_0x3f623d['length']>0x0&&_0x575b8e['setSelection'](_0x3f623d);for(const _0x5a292f of _0x2b54f2)_0x5a292f['detach']();});});for(const _0x5092d1 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x45c228=_0x5c3432['commands']['get'](_0x5092d1);_0x45c228['on']('set:isEnabled',(_0x467908,_0x5720df,_0x28ca19)=>{if(_0x28ca19){const _0x16c36b=_0x5c3432['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x150e5b=>_0x150e5b['is']('element','tableCell'));this['_areMergableCells'](_0x45c228['value'],_0x16c36b)||(_0x467908['return']=!0x1,_0x467908['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x142060=this['editor']['commands']['get']('mergeTableCells'),_0x507a97=this['editor']['plugins']['get']('TableUtils');if(!_0x142060['isEnabled'])return!0x1;const _0x5b77af=_0x507a97['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5a4db0 of _0x5b77af)for(const _0x4d12fd of _0x5b77af)if(_0x5a4db0!=_0x4d12fd&&!this['_areMergableCells'](_0x5a4db0,_0x4d12fd))return!0x1;return!0x0;}['_areMergableCells'](_0xe42baf,_0x43224c){const _0x1ca4c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e33da=this['editor']['model']['createRangeOn'](_0xe42baf),_0x4f0507=this['editor']['model']['createRangeOn'](_0x43224c),_0x3c4f25=new Set(),_0x37bc70=new Set();for(const _0x55e5fa of _0x1ca4c8['getSuggestions']())if(('insertion'==_0x55e5fa['type']||'deletion'==_0x55e5fa['type']||'mergeTableCells'==_0x55e5fa['subType'])&&_0x55e5fa['isInContent']){for(const _0x17186a of _0x55e5fa['getRanges']())_0x17186a['containsRange'](_0x5e33da,!0x0)&&_0x3c4f25['add'](_0x55e5fa['type']+':'+_0x55e5fa['author']['id']),_0x17186a['containsRange'](_0x4f0507,!0x0)&&_0x37bc70['add'](_0x55e5fa['type']+':'+_0x55e5fa['author']['id']);}if(_0x3c4f25['size']!=_0x37bc70['size'])return!0x1;for(const _0x4d7d29 of _0x3c4f25)if(!_0x37bc70['has'](_0x4d7d29))return!0x1;return!0x0;}}class Dt extends _0x31ef78{static get['requires'](){return[Ct];}['afterInit'](){const _0x12a706=this['editor'];if(!_0x12a706['plugins']['has']('TableEditing'))return;const _0x20d33a=_0x12a706['locale'],_0x240044=_0x12a706['plugins']['get']('TrackChangesEditing');_0x240044['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x240044['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x240044['registerBlockAttribute']('headingRows'),_0x240044['registerBlockAttribute']('headingColumns'),_0x240044['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x20d33a,'FORMAT_HEADER_ROW')),_0x240044['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x20d33a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xc0ef42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x573bd8=this['editor']['plugins']['get']('TableUtils'),_0x34c522=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0xbb11f3({showActiveMarker:_0x32a9ad=!0x0,setDataAttribute:_0x2ea1b1=!0x0}={}){return(_0x5df35f,_0x53f257,_0x502903)=>{const {type:_0x361c43,id:_0x5bdd2f}=_0xc0ef42['_splitMarkerName'](_0x53f257['markerName']),_0x54f3e1=_0xc0ef42['getSuggestion'](_0x5bdd2f),_0x472f8f=_0x54f3e1['data'];if('formatBlock'!=_0x54f3e1['type']||!_0x472f8f||'setTableColumnHeader'!=_0x472f8f['commandName'])return;if(_0x53f257['item'])return void _0x5df35f['stop']();if(!_0x502903['consumable']['consume'](_0x53f257['markerRange'],_0x5df35f['name']))return;const _0x77273d=_0x53f257['markerRange']['start']['nodeAfter'],_0x4c70ad=_0x53f257['markerRange']['end']['nodeBefore'],_0x4a68c3=_0x77273d['parent']['parent'],{column:_0x2cac4c}=_0x573bd8['getCellLocation'](_0x77273d),{column:_0x1b5f7b}=_0x573bd8['getCellLocation'](_0x4c70ad);for(let _0x474e60=_0x2cac4c;_0x474e60<=_0x1b5f7b;_0x474e60++){const _0x24c29d=_0x573bd8['createTableWalker'](_0x4a68c3,{'column':_0x474e60,'includeAllSlots':!0x1});for(const _0x198dc8 of _0x24c29d){const _0x2802de=_0x198dc8['cell'],_0xb7a7f4=_0x502903['mapper']['toViewElement'](_0x2802de);_0x502903['writer']['addClass']('ck-suggestion-marker-'+_0x361c43,_0xb7a7f4),_0x2ea1b1&&_0x502903['writer']['setAttribute']('data-suggestion',_0x5bdd2f,_0xb7a7f4),_0x502903['mapper']['bindElementToMarker'](_0xb7a7f4,_0x53f257['markerName']),_0x32a9ad&&(_0xc0ef42['activeMarkers']['includes'](_0x53f257['markerName'])?_0x502903['writer']['addClass']('ck-suggestion-marker--active',_0xb7a7f4):_0x502903['writer']['removeClass']('ck-suggestion-marker--active',_0xb7a7f4));}}};}_0xc0ef42['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x34c522),_0xc0ef42['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x34c522),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xbb11f3(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xd52102,_0x2aabb3,_0x3fc0a1)=>{_0x3fc0a1['options']['showSuggestionHighlights']&&_0xbb11f3({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xd52102,_0x2aabb3,_0x3fc0a1);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1aee66,_0x11bd70,_0xd567b5)=>{const {type:_0x5a1a29,id:_0x4d7b02}=_0xc0ef42['_splitMarkerName'](_0x11bd70['markerName']),_0x58b6fb=_0xc0ef42['getSuggestion'](_0x4d7b02),_0x422c7a=_0x58b6fb['data'];if('formatBlock'!=_0x58b6fb['type']||!_0x422c7a||'setTableColumnHeader'!=_0x422c7a['commandName'])return;const _0x37ae5f=_0xd567b5['mapper']['markerNameToElements'](_0x11bd70['markerName']);if(_0x37ae5f){for(const _0x499339 of _0x37ae5f)_0xd567b5['writer']['removeClass']('ck-suggestion-marker-'+_0x5a1a29,_0x499339),_0xd567b5['writer']['removeClass']('ck-suggestion-marker--active',_0x499339),_0xd567b5['writer']['removeAttribute']('data-suggestion',_0x499339),_0xd567b5['mapper']['unbindElementFromMarkerName'](_0x499339,_0x11bd70['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d80ae=this['editor'],_0x576cfd=_0x4d80ae['locale'];function _0x57b9ec(_0x46a0a5){return{'type':'format','content':o(_0x576cfd,'*Format:*\x20%0',_0x46a0a5)};}_0x4d80ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b4cae=>{if('formatBlock'!=_0x4b4cae['type'])return;const {data:_0x53c868}=_0x4b4cae;if(_0x53c868){if('setTableRowHeader'==_0x53c868['commandName']){const _0x5303f1=_0x53c868['commandParams'][0x0]['forceValue'];return _0x57b9ec(o(_0x576cfd,_0x5303f1?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x53c868['commandName']){const _0x54187d=_0x53c868['commandParams'][0x0]['forceValue'];return _0x57b9ec(o(_0x576cfd,_0x54187d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x26ea1e=>[_0x26ea1e,null]));class Mt extends _0x31ef78{static get['requires'](){return[Ct];}['afterInit'](){const _0x2421f5=this['editor'];if(!_0x2421f5['plugins']['has']('TableClipboard'))return;const _0x1ccefc=_0x2421f5['plugins']['get']('TrackChangesEditing'),_0x5cc511=_0x2421f5['plugins']['get']('TableUtils'),_0xfe86e1=_0x2421f5['plugins']['get'](Ct),_0x59246a=_0x2421f5['plugins']['get']('TableClipboard');_0xfe86e1['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2421f5['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2421f5['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x46087d=null;_0x2421f5['model']['on']('insertContent',(_0x35c863,_0x2203f8)=>{const [_0x5070ed,_0x58a035]=_0x2203f8,_0x2379b9=_0x2203f8[_0x2203f8['length']-0x1];_0x2379b9&&_0x2379b9['forceDefaultExecution']||_0x1ccefc['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4f65c7,_0x1e2431,_0x494a4b,_0x359ffa,_0xb657d8){if(_0x1e2431&&!_0x1e2431['is']('documentSelection'))return!0x1;const _0xf9aaad=_0xb657d8['getTableIfOnlyTableInContent'](_0x4f65c7,_0x494a4b);if(!_0xf9aaad||!Ue(_0xf9aaad,void 0x0,_0x359ffa))return!0x1;const _0x3ab9d6=_0x359ffa['getSelectionAffectedTableCells'](_0x494a4b['document']['selection']);if(!_0x3ab9d6['length'])return!0x1;const _0x37fe6f=_0x3ab9d6[0x0]['findAncestor']('table'),_0x15bcd0=_0x359ffa['getRowIndexes'](_0x3ab9d6),_0x10657a=_0x359ffa['getColumnIndexes'](_0x3ab9d6),_0x116ce4={'startRow':_0x15bcd0['first'],'endRow':_0x15bcd0['last'],'startColumn':_0x10657a['first'],'endColumn':_0x10657a['last']};return 0x1==_0x3ab9d6['length']&&(_0x116ce4['endRow']+=_0x359ffa['getRows'](_0xf9aaad)-0x1,_0x116ce4['endColumn']+=_0x359ffa['getColumns'](_0xf9aaad)-0x1),Ue(_0x37fe6f,_0x116ce4,_0x359ffa);}(_0x5070ed,_0x58a035,_0x2421f5['model'],_0x5cc511,_0x59246a)&&(_0x35c863['stop'](),_0x46087d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2421f5['model']['change'](()=>{_0x2421f5['model']['insertContent'](_0x2203f8[0x0],_0x2203f8[0x1],_0x2203f8[0x2],{'forceDefaultExecution':!0x0});const _0x4f31f1=_0x2b97bd(),{rowInsertionRanges:_0x18d5ae,columnInsertionRanges:_0xf04e6b,insertionRanges:_0x4a374a,deletionRanges:_0x4576a9,cells:_0x51cc94}=_0x46087d;_0x18d5ae['length']&&_0x1ccefc['markMultiRangeInsertion'](_0x18d5ae,'tablePasteRow',{'tablePasteChainId':_0x4f31f1}),_0xf04e6b['length']&&_0x1ccefc['markMultiRangeInsertion'](_0xf04e6b,'tablePasteColumn',{'tablePasteChainId':_0x4f31f1}),_0x4a374a['length']&&(_0x1ccefc['markMultiRangeInsertion'](_0x4a374a,'tablePaste',{'tablePasteChainId':_0x4f31f1,'skipNestingCheck':!0x0}),_0x4a374a['forEach'](_0x37b561=>_0x37b561['detach']?.())),_0x4576a9['length']&&(_0x1ccefc['markMultiRangeDeletion'](_0x4576a9,'tablePaste',{'tablePasteChainId':_0x4f31f1,'skipNestingCheck':!0x0}),_0x4576a9['forEach'](_0x2e0bf1=>_0x2e0bf1['detach']?.()));const _0x48328c=_0x1ccefc['markMultiRangeBlockFormat'](_0x51cc94['map'](({element:_0x2baa8c})=>_0x2baa8c),{'formatGroupId':_0x2b97bd()},[],'tablePasteCell',{'tablePasteChainId':_0x4f31f1});if(_0x48328c){const _0x55ced5=_0x48328c['getMarkers'](),_0x1df6dd=[];for(const {element:_0xa883bc,attributes:_0x427dc7}of _0x51cc94){if(!_0x427dc7)continue;const _0x2147c6=_0x2421f5['model']['createRangeOn'](_0xa883bc),_0x36f191=_0x55ced5['find'](_0x1f8605=>_0x1f8605['getRange']()['isEqual'](_0x2147c6));_0x36f191&&_0x1df6dd['push']([_0x36f191['name'],_0x427dc7]);}_0x1df6dd['length']&&_0x48328c['setAttribute']('markerAttributes',Object['fromEntries'](_0x1df6dd));}_0x46087d=null;}));},{'priority':_0x5b2b34['high']+0xa}),_0x2421f5['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x131560,_0xbfd59)=>{const [_0x6c1520,_0xdde773,,_0x1601ec]=_0xbfd59;if(!_0x46087d)return;_0x131560['stop']();const _0xa988c2=_0x6c1520['cell'],_0x6fb2fe=_0xdde773,_0x9c167=Oe(_0xa988c2),_0xcd2c9c=Oe(_0x6fb2fe);_0x131560['return']=_0xa988c2;let _0x420b54=null,_0x9c6e82=null;if(_0xcd2c9c||_0x9c167){if(_0x9c167&&!_0xcd2c9c){_0x1601ec['remove'](_0xa988c2['getChild'](0x0));for(const _0x3c0e of Array['from'](_0x6fb2fe['getChildren']()))_0x1601ec['insert'](_0x3c0e,_0xa988c2,'end');const _0x5cddaf=_0x46087d['rowInsertionIndexes']['includes'](_0x6c1520['row']),_0x5e5a5e=_0x46087d['columnInsertionIndexes']['includes'](_0x6c1520['column']);_0x5cddaf||_0x5e5a5e||(_0x420b54=_0x512f92['fromRange'](_0x1601ec['createRangeIn'](_0xa988c2)));}else _0xcd2c9c&&!_0x9c167&&(_0x9c6e82=_0x1601ec['createRangeIn'](_0xa988c2));}else{const _0x42a162=_0x1601ec['createElement']('tableCellSuggestion'),_0x327041=_0x1601ec['createElement']('tableCellSuggestion');_0x1601ec['wrap'](_0x1601ec['createRangeIn'](_0xa988c2),_0x327041),_0x1601ec['insert'](_0x42a162,_0xa988c2,0x0);for(const _0x3a1db5 of Array['from'](_0x6fb2fe['getChildren']()))_0x1601ec['insert'](_0x3a1db5,_0x42a162,'end');_0x420b54=_0x512f92['fromRange'](_0x1601ec['createRangeOn'](_0x42a162)),_0x9c6e82=_0x512f92['fromRange'](_0x1601ec['createRangeOn'](_0x327041));}const _0x342f28=Array['from'](_0x6fb2fe['getAttributes']())['filter'](([_0x2d9c11])=>Be['includes'](_0x2d9c11));_0x46087d['cells']['push']({'element':_0xa988c2,'attributes':_0x342f28['length']?Object['fromEntries'](_0x342f28):null}),_0x420b54&&_0x46087d['insertionRanges']['push'](_0x420b54),_0x9c6e82&&_0x46087d['deletionRanges']['push'](_0x9c6e82);},{'priority':'high'}),_0x5cc511['on']('insertColumns',(_0x1060a4,_0x107b1a)=>{const [_0x53637f,_0x43b3e4={}]=_0x107b1a;if(!_0x46087d)return;const _0x29cd96=_0x43b3e4['at']||0x0,_0x1a8a49=_0x43b3e4['columns']||0x1;_0x46087d['columnInsertionIndexes']=new Array(_0x1a8a49)['fill'](_0x29cd96)['map']((_0x42c064,_0x587402)=>_0x42c064+_0x587402);for(const {cell:_0x41c286}of _0x5cc511['createTableWalker'](_0x53637f,{'startColumn':_0x29cd96,'endColumn':_0x29cd96+_0x1a8a49-0x1}))_0x46087d['columnInsertionRanges']['push'](_0x2421f5['model']['createRangeOn'](_0x41c286));},{'priority':'low'}),_0x5cc511['on']('insertRows',(_0x1f049f,_0x25f96b)=>{const [_0x18615f,_0x5a5a76={}]=_0x25f96b;if(!_0x46087d)return;const _0x1bfd68=_0x5a5a76['at']||0x0,_0x1ccd42=_0x5a5a76['rows']||0x1;_0x46087d['rowInsertionIndexes']=new Array(_0x1ccd42)['fill'](_0x1bfd68)['map']((_0x49886d,_0x186322)=>_0x49886d+_0x186322);for(const {cell:_0x236bea}of _0x5cc511['createTableWalker'](_0x18615f,{'startRow':_0x1bfd68,'endRow':_0x1bfd68+_0x1ccd42-0x1}))_0x46087d['rowInsertionRanges']['push'](_0x2421f5['model']['createRangeOn'](_0x236bea));},{'priority':'low'}),_0x1ccefc['descriptionFactory']['registerDescriptionCallback'](_0x3c6529=>{if(_0x3c6529['subType']&&_0x3c6529['subType']['startsWith']('tablePaste'))return _0x3c6529['previous']?{}:{'type':'insertion','content':o(_0x2421f5['locale'],'*Replace\x20table\x20cells*')};});const _0x3aa8ea=()=>!0x1;for(const _0xb69ed1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1ccefc['_suggestionFactory']['registerCustomCallback']('insertion',_0xb69ed1,'join',_0x3aa8ea),_0x1ccefc['_suggestionFactory']['registerCustomCallback']('deletion',_0xb69ed1,'join',_0x3aa8ea),_0x1ccefc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xb69ed1,'join',_0x3aa8ea);_0x1ccefc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3aa8ea),_0x1ccefc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4bc446,_0x351c96,_0x46c432)=>{const _0x215f88=_0x4bc446['map'](_0x32ba32=>_0x32ba32['getContainedElement']())['filter'](_0x16bf1c=>_0x16bf1c),_0x5d6146=new Map(_0x215f88['map'](_0x11985a=>[_0x11985a,null]));if(_0x46087d){for(const {element:_0x1effe8,attributes:_0x47ac47}of _0x46087d['cells'])_0x47ac47&&_0x5d6146['set'](_0x1effe8,_0x47ac47);}else{if(_0x46c432&&_0x46c432['markerAttributes'])for(const [_0x2903a8,_0x5b120d]of Object['entries'](_0x46c432['markerAttributes'])){const _0x56aa6c=_0x2421f5['model']['markers']['get'](_0x2903a8),_0x5a4700=_0x56aa6c?_0x56aa6c['getRange']()['getContainedElement']():null;_0x5a4700&&_0x5d6146['set'](_0x5a4700,_0x5b120d);}}_0x2421f5['model']['change'](_0x28199f=>{for(const [_0x20565a,_0x42aa1a]of _0x5d6146)_0x28199f['setAttributes']({...xe,..._0x42aa1a},_0x20565a);});});const _0x57e8a7=(_0x41ec65,_0x553740)=>{_0x1ccefc['_suggestionFactory']['registerCustomCallback'](_0x41ec65,'tablePaste',_0x553740,(_0x1d46dd,_0x522b37,_0x427caa)=>{_0x2421f5['model']['change'](_0x5df85a=>{const _0x29b613=[];for(const _0x2676b7 of _0x1d46dd){const _0xd76ad7=_0x2676b7['start']['nodeAfter'];_0xd76ad7['is']('element','tableCellSuggestion')&&_0x29b613['push'](_0xd76ad7);}_0x1ccefc['_suggestionFactory']['getSuggestionCallback'](_0x41ec65,null,_0x553740)(_0x1d46dd,_0x522b37,_0x427caa);for(const _0x2903ce of _0x29b613)'$graveyard'!=_0x2903ce['root']['rootName']&&_0x5df85a['unwrap'](_0x2903ce);});});};_0x57e8a7('insertion','accept'),_0x57e8a7('insertion','discard'),_0x57e8a7('deletion','accept'),_0x57e8a7('deletion','discard'),_0x1ccefc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x44a423=>{const _0xf9afcc=_0x44a423['map'](_0x1f63cb=>_0x1f63cb['getContainedElement']()),_0x5e74e9=_0xf9afcc[0x0]['findAncestor']('table'),{minRow:_0x88a5f3,maxRow:_0x3f7c28}=_0xfe86e1['_getCoordsForCells'](_0xf9afcc);_0x5cc511['removeRows'](_0x5e74e9,{'at':_0x88a5f3,'rows':_0x3f7c28-_0x88a5f3+0x1});}),_0x1ccefc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x43418c=>{const _0x5bafe4=_0x43418c['map'](_0x2c37e8=>_0x2c37e8['getContainedElement']()),_0x2a0b7e=_0x5bafe4[0x0]['findAncestor']('table'),{minColumn:_0x482a0c,maxColumn:_0xf74ac5}=_0xfe86e1['_getCoordsForCells'](_0x5bafe4);_0x5cc511['removeColumns'](_0x2a0b7e,{'at':_0x482a0c,'columns':_0xf74ac5-_0x482a0c+0x1});});const _0x4ffd24=(_0x2ec7a9,_0xe57e8c)=>{if(!_0xe57e8c['subType']||!_0xe57e8c['subType']['startsWith']('tablePaste'))return;const _0x82ddc=_0xe57e8c['attributes']['tablePasteChainId'],_0x94b94f=_0x1ccefc['getSuggestions']()['filter'](_0x5e1fd9=>_0x5e1fd9['isInContent']&&_0x5e1fd9['attributes']&&_0x5e1fd9['attributes']['tablePasteChainId']==_0x82ddc);_0x94b94f['length']&&_0xe57e8c['getAllAdjacentSuggestions']()['length']!=_0x94b94f['length']&&_0x94b94f['reduce']((_0x3cd780,_0x249032)=>(_0x3cd780['next']=_0x249032,_0x249032['previous']=_0x3cd780,_0x249032));};function _0x35ab55(_0x3211fc,_0x428967=!0x0){const {id:_0x5d8a07,authorId:_0x160d43}=_0x1ccefc['_splitMarkerName'](_0x3211fc['markerName']),_0x38d868=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4df0d8=_0x1ccefc['activeMarkers']['includes'](_0x3211fc['markerName']);return _0x4df0d8&&_0x38d868['push']('ck-suggestion-marker--active'),{'classes':_0x38d868,'attributes':{'data-suggestion':_0x5d8a07,'data-author-id':_0x160d43},'priority':_0x4df0d8&&_0x428967?0xbc2:0xbb8};}_0x1ccefc['on']('suggestionLoaded',_0x4ffd24,{'priority':'high'}),_0x1ccefc['on']('suggestionUnloaded',_0x4ffd24,{'priority':'high'}),_0x2421f5['model']['document']['registerPostFixer'](()=>{let _0x1c98db=!0x1;const _0x332aa5=Array['from'](_0x2421f5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1e2ced,data:_0x1aebbf}of _0x332aa5){const {group:_0x48fcc8,type:_0x5f1d68,id:_0x3c1df0}=_0x1ccefc['_splitMarkerName'](_0x1e2ced);if('suggestion'!=_0x48fcc8||'deletion'!=_0x5f1d68||_0x1aebbf['oldRange'])continue;if(!_0x1ccefc['hasSuggestion'](_0x3c1df0))continue;const _0x3c38db=_0x1ccefc['getSuggestion'](_0x3c1df0)['getRanges'](),_0x509cd1=_0x2421f5['plugins']['get']('Users')['me'];for(const _0x60181e of _0x1ccefc['getSuggestions']()){if(!_0x60181e['isInContent']||_0x60181e['author']!=_0x509cd1)continue;if('formatBlock'!=_0x60181e['type']||'tablePasteCell'!=_0x60181e['subType'])continue;if(_0x60181e['getRanges']()['every'](_0x23907c=>_0x3c38db['some'](_0x496515=>_0x496515['containsRange'](_0x23907c,!0x0)))){for(const _0x2ab95f of _0x60181e['getAllAdjacentSuggestions']())_0x2ab95f['isInContent']&&(_0x2ab95f['discard'](),_0x1c98db=!0x0);}}}return _0x1c98db;}),_0x2421f5['model']['document']['registerPostFixer'](_0x45dc83=>{const _0x2467ca=_0x2421f5['commands']['get']('redo');if(!_0x2467ca||!_0x2467ca['_createdBatches']['has'](_0x45dc83['batch']))return!0x1;let _0x28e7ba=!0x1;const _0x1af9c9=_0x2421f5['plugins']['get']('Users')['me'],_0x1a3d59=_0x2421f5['model']['document']['differ']['getChanges'](),_0x22763e=Array['from'](_0x2421f5['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5ac88c,data:_0x5b33d2})=>{const {group:_0x457eef,subType:_0x169205,authorId:_0x566b3e}=_0x1ccefc['_splitMarkerName'](_0x5ac88c);return'suggestion'==_0x457eef&&'tablePaste'==_0x169205&&_0x566b3e==_0x1af9c9['id']&&!_0x5b33d2['oldRange'];});for(const _0x41baae of _0x1a3d59){if('insert'!=_0x41baae['type']||'tableCellSuggestion'!=_0x41baae['name']||0x1!=_0x41baae['length'])continue;const _0x2730e9=_0x45dc83['createRange'](_0x41baae['position'],_0x41baae['position']['getShiftedBy'](0x1));if(!_0x22763e['find'](({data:_0x2e7efb})=>_0x2e7efb['newRange']['isEqual'](_0x2730e9))){for(const {name:_0x2dde56,data:_0x3de728}of _0x22763e)if(_0x2730e9['containsRange'](_0x3de728['newRange'])){_0x45dc83['updateMarker'](_0x2dde56,{'range':_0x2730e9}),_0x28e7ba=!0x0;break;}}}return _0x28e7ba;}),_0x2421f5['model']['document']['registerPostFixer'](_0x5732de=>{let _0x5db732=!0x1;const _0xe319f3=_0x2421f5['plugins']['get']('Users')['me'],_0x112d61=_0x1ccefc['getSuggestions']()['filter'](_0x444b68=>_0x444b68['isInContent']&&_0x444b68['author']==_0xe319f3),_0x20dfcc=new Set(),_0x29bcc3=new Set();for(const _0x3def07 of _0x112d61)if('tablePaste'==_0x3def07['subType'])for(const _0x201414 of _0x3def07['getMarkers']()){const _0x2b8cdf=_0x201414['getRange']()['getContainedElement']();if(_0x2b8cdf){if(_0x2b8cdf['is']('element','tableCellSuggestion')&&Oe(_0x2b8cdf)){_0x3def07['removeMarker'](_0x201414['name']),_0x20dfcc['add'](_0x2b8cdf),_0x5db732=!0x0;const _0x2decff=_0x2b8cdf['nextSibling'],_0x4e260a=_0x2b8cdf['previousSibling'],_0xafa5d3=_0x2decff&&_0x2decff['is']('element','tableCellSuggestion'),_0x503155=_0x4e260a&&_0x4e260a['is']('element','tableCellSuggestion');_0xafa5d3&&!_0x20dfcc['has'](_0x2decff)&&_0x29bcc3['add'](_0x2decff),_0x503155&&!_0x20dfcc['has'](_0x4e260a)&&_0x29bcc3['add'](_0x4e260a);}else _0x2b8cdf['is']('element','paragraph')&&_0x2b8cdf['isEmpty']&&(_0x3def07['removeMarker'](_0x201414['name']),_0x5db732=!0x0);}}else{if('tablePasteCell'==_0x3def07['subType']){if(!_0x3def07['attributes']||!_0x3def07['attributes']['tablePasteChainId'])continue;const _0x183d53=_0x3def07['attributes']['markerAttributes'];if(_0x183d53&&Object['keys'](_0x183d53)['length'])continue;const _0x23d778=_0x3def07['attributes']['tablePasteChainId'];let _0xd7baf6=!0x0,_0x19af31=!0x0;for(const _0x546e2c of _0x112d61)if(_0x546e2c['subType']&&_0x546e2c['subType']['startsWith']('tablePaste')){if(!_0x546e2c['attributes']['tablePasteChainId']){_0x19af31=!0x1;break;}if(_0x546e2c['id']!=_0x3def07['id']&&_0x546e2c['attributes']['tablePasteChainId']==_0x23d778){_0xd7baf6=!0x1;break;}}_0x19af31&&_0xd7baf6&&(_0x3def07['removeMarkers'](),_0x5db732=!0x0);}}for(const _0xb5e724 of _0x20dfcc)_0x5732de['remove'](_0xb5e724);for(const _0x1ed074 of _0x29bcc3)_0x5732de['unwrap'](_0x1ed074);return _0x5db732;}),_0x2421f5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xfc71f7=>_0x35ab55(_0xfc71f7),'converterPriority':'high'}),_0x2421f5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1d8b3e,_0x130036)=>_0x130036['options']['showSuggestionHighlights']?_0x35ab55(_0x1d8b3e,!0x1):null,'converterPriority':'high'});const _0x33a252=_0x2421f5['editing']['view'];this['listenTo'](_0x33a252['document'],'clipboardOutput',(_0x5456fe,_0x3c2c53)=>{const _0x6b9e01=[];for(const _0x3f9abe of _0x33a252['createRangeIn'](_0x3c2c53['content'])['getItems']())_0x3f9abe['is']('element','suggestion-td')&&_0x6b9e01['push'](_0x3f9abe);_0x33a252['change'](_0x4739b2=>{for(const _0x95bb71 of _0x6b9e01)_0x4739b2['move'](_0x4739b2['createRangeIn'](_0x95bb71),_0x4739b2['createPositionBefore'](_0x95bb71)),_0x4739b2['remove'](_0x95bb71);});});}}function Oe(_0x463616){if(_0x463616['isEmpty'])return!0x0;const _0x37766b=_0x463616['getChild'](0x0);return _0x37766b['is']('element','paragraph')&&_0x37766b['isEmpty'];}function Ue(_0x5dd8e9,_0x31a3e3={},_0x1ffe99){for(const {isAnchor:_0x38b3e9,cellHeight:_0x1c8f23,cellWidth:_0x34e6f4}of _0x1ffe99['createTableWalker'](_0x5dd8e9,{'includeAllSlots':!0x0,..._0x31a3e3}))if(!_0x38b3e9||0x1!=_0x1c8f23||0x1!=_0x34e6f4)return!0x1;return!0x0;}class $t extends _0x31ef78{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4c597c=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c597c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4c597c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4c597c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c597c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4c597c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4c597c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x431ab4,_0x2db3c8){const _0x8b547c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a0acf=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4932f9=_0x2db3c8['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x42c1b7=_0x2a0acf['getColumnGroupElement'](_0x4932f9);let _0x38128d=_0x42c1b7?_0x2a0acf['getTableColumnsWidths'](_0x42c1b7):null,_0x5767da=_0x4932f9['getAttribute']('tableWidth')||null;const _0x1c46bc=_0x2db3c8['tableWidth']||_0x5767da,_0xc82042=_0x2db3c8['columnWidths']||_0x38128d,_0x2781b2=this['editor']['plugins']['get']('Users')['me'];for(const _0x58a83d of _0x8b547c['getSuggestions']()){const _0x27b36a=_0x58a83d['getContainedElement']();if('resizeTable'===_0x58a83d['subType']&&_0x27b36a===_0x4932f9){_0x58a83d['author']!==_0x2781b2&&_0x58a83d['discard']();const _0x4a5c24=_0x58a83d['data']['commandParams'];_0x5767da=_0x4a5c24[0x0]['tableWidth'],_0x38128d=_0x4a5c24[0x0]['columnWidths'];break;}}_0x431ab4({'table':_0x4932f9,'tableWidth':_0x1c46bc,'columnWidths':_0xc82042}),_0x8b547c['markBlockFormat'](_0x4932f9,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5767da,'columnWidths':_0x38128d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x250a44){if('formatBlock'!=_0x250a44['type']&&'formatInline'!=_0x250a44['type'])return;const {data:_0xc7e53f}=_0x250a44;if(_0xc7e53f&&'resizeTable'===_0xc7e53f['formatGroupId']){const _0x270eca='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x270eca)};}}}class Bt extends _0x31ef78{['afterInit'](){const _0xf93d76=this['editor'];_0xf93d76['plugins']['has']('Template')&&_0xf93d76['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x31ef78{['afterInit'](){const _0x53709=this['editor'];if(!_0x53709['commands']['get']('insertTableOfContents'))return;_0x53709['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x278348=_0x53709['plugins']['get']('TrackChangesEditing'),_0x31e68f=_0x53709['locale'];_0x278348['descriptionFactory']['registerElementLabel']('tableOfContents',_0x12442a=>o(_0x31e68f,'ELEMENT_TABLE_OF_CONTENTS',_0x12442a));}}class Rt extends _0x31ef78{['afterInit'](){const _0x362464=this['editor'];if(!_0x362464['plugins']['has']('Title'))return;const _0x2ea750=_0x362464['plugins']['get']('TrackChangesEditing');_0x2ea750['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x362464['locale'],'ELEMENT_TITLE')),_0x362464['model']['document']['registerPostFixer'](_0x2c393a=>{let _0x12457d=!0x1;const _0x4617eb=Array['from'](_0x362464['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x55fa8a,data:_0x438bad}of _0x4617eb){const {group:_0x3b80ec}=_0x2ea750['_splitMarkerName'](_0x55fa8a);if('suggestion'!==_0x3b80ec||!_0x438bad['newRange'])continue;const _0x4c7f39=_0x438bad['newRange'],_0x5d4509=_0x4c7f39['end']['nodeBefore'];if(!_0x5d4509||!_0x5d4509['is']('element','title-content'))continue;if(!_0x4c7f39['start']['isTouching'](_0x4c7f39['end']))continue;const _0x15d28c=_0x362464['model']['schema']['getNearestSelectionRange'](_0x4c7f39['end'],'forward');if(_0x15d28c&&_0x15d28c['isCollapsed']){const _0x4ff548=_0x2c393a['createRange'](_0x4c7f39['start'],_0x15d28c['start']);_0x4ff548['isEqual'](_0x4c7f39)||(_0x2c393a['updateMarker'](_0x55fa8a,{'range':_0x4ff548}),_0x12457d=!0x0);}_0x12457d||(_0x2c393a['removeMarker'](_0x55fa8a),_0x12457d=!0x0);}return _0x12457d;});}}class Tt extends _0x31ef78{['afterInit'](){const _0x3e5420=this['editor'],_0x42b392=_0x3e5420['plugins']['get']('TrackChangesEditing');_0x3e5420['plugins']['has']('Uploadcare')&&(_0x42b392['enableCommand']('uploadcare'),_0x3e5420['plugins']['has']('UploadcareImageEdit')&&(_0x42b392['enableCommand']('uploadcareImageEdit'),_0x42b392['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x42b392['registerBlockAttribute']('uploadcareImageId'),_0x42b392['descriptionFactory']['registerDescriptionCallback'](_0x29ca1d=>{if('attribute'!=_0x29ca1d['type'])return;const {data:_0x2d9115}=_0x29ca1d;return _0x2d9115&&'uploadcareImageId'==_0x2d9115['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x31ef78{['afterInit'](){const _0x27541a=this['editor'],_0xf90c87=_0x27541a['plugins']['get']('TrackChangesEditing');_0x27541a['plugins']['has']('UndoEditing')&&(_0xf90c87['enableCommand']('undo'),_0xf90c87['enableCommand']('redo'));}}class Et extends _0x31ef78{static get['requires'](){return[Ct];}['afterInit'](){const _0x3c6ec6=this['editor'];if(!_0x3c6ec6['plugins']['has']('TableCaptionEditing'))return;_0x3c6ec6['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x31ef78{['tableProperties'];['tableCellProperties'];constructor(_0x534bff){super(_0x534bff),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';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x41238c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xca7bc9 of this['tableProperties'])_0x41238c['enableCommand'](_0xca7bc9,(_0x46fa61,_0x341da0)=>{const _0x510df2=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xca7bc9,[_0x510df2],this['tableProperties'],'tableProperties',_0x46fa61,_0x341da0);});_0x41238c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x41238c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41238c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3cdab2,_0x237e88)=>this['handleDiscardAction'](this['tableProperties'],_0x3cdab2,_0x237e88)),_0x41238c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x275a69 of this['tableCellProperties'])_0x41238c['enableCommand'](_0x275a69,(_0x596470,_0x68c37c)=>{const _0x1515a9=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x275a69,_0x1515a9,this['tableCellProperties'],'tableCellProperties',_0x596470,_0x68c37c);});_0x41238c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x41238c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41238c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x59a958,_0x150e8a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x59a958,_0x150e8a)),_0x41238c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x41238c['descriptionFactory']['registerDescriptionCallback'](_0x541e98=>this['handleSuggestionDescription'](_0x541e98));}['_handlePropertyChange'](_0x30cf55,_0x1aeb14,_0x3492d4,_0x31db47,_0x42d740,_0x3b62a8){const _0x31f715=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3b62a8['batch'],()=>{for(const _0x59578c of _0x1aeb14){if(this['_getSuggestion'](_0x59578c,_0x31db47))_0x42d740(_0x3b62a8);else{const _0x307888={};for(const _0x494a77 of _0x3492d4){const _0x2fbe4a=_0x59578c['getAttribute'](_0x494a77);void 0x0!==_0x2fbe4a&&(_0x307888[_0x494a77]=_0x2fbe4a);}_0x42d740(_0x3b62a8),_0x31f715['markBlockFormat'](_0x59578c,{'commandParams':[_0x307888]},[],_0x31db47);}}});}['handleDiscardAction'](_0x1143f5,_0x2b734a,_0x59940d){const _0x4ec480=_0x2b734a[0x0]['start']['nodeAfter'],_0x43e43d=_0x59940d['commandParams'][0x0];this['editor']['model']['change'](_0xa11227=>{for(const _0x58f0e9 of _0x1143f5)void 0x0!==_0x43e43d[_0x58f0e9]?_0xa11227['setAttribute'](_0x58f0e9,_0x43e43d[_0x58f0e9],_0x4ec480):_0xa11227['removeAttribute'](_0x58f0e9,_0x4ec480);});}['handleSuggestionDescription'](_0x35d036){if(_0x35d036['data'])switch(_0x35d036['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'](_0x26e003,_0x40f750){const _0x5b3f2b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4f8fe4 of _0x5b3f2b['getSuggestions']({'skipNotAttached':!0x0})){const _0x31b0a3=_0x4f8fe4['getContainedElement']();if(_0x4f8fe4['subType']===_0x40f750&&_0x31b0a3===_0x26e003)return _0x4f8fe4;}return null;}}const m='$elementName';class p extends _0x31ef78{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5679ed,_0x44a324,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1a0ded){super(_0x1a0ded),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x50c06a,_0x4cc38f,_0x2f0150,_0xca4a98)=>{this['_model']['change'](()=>{for(const _0xc73ed9 of[..._0xca4a98,..._0x2f0150])this['_model']['markers']['has'](_0xc73ed9)&&_0x1a0ded['editing']['reconvertMarker'](_0xc73ed9);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1a0ded['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(),_0x1a0ded['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1a0ded['config']['get']('trackChanges.trackFormatChanges'),_0x1a0ded['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1a0ded['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1a0ded,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x561e27=this['editor'],_0x385be6=(_0x4e3b0e,_0x588cd2)=>{if('attribute'!=_0x4e3b0e)return'ck-suggestion-marker-'+_0x4e3b0e;const _0x463a21=_0x588cd2['split']('|')[0x0];return this['_isBlockAttribute'](_0x463a21)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x561e27['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3bd56c=>{const {id:_0x19ba0a,authorId:_0x378bad,type:_0x4f4d18,subType:_0x3af002}=this['_splitMarkerName'](_0x3bd56c['markerName']),_0x4adc80=['ck-suggestion-marker',_0x385be6(_0x4f4d18,_0x3af002)];let _0x4ef340=0xbb8;return this['activeMarkers']['includes'](_0x3bd56c['markerName'])&&(_0x4adc80['push']('ck-suggestion-marker--active'),_0x4ef340=0xbc2),'deletion'==_0x4f4d18&&(_0x4ef340+=0x5),{'classes':_0x4adc80,'attributes':{'data-suggestion':_0x19ba0a,'data-author-id':_0x378bad},'priority':_0x4ef340};}}),_0x561e27['conversion']['for']('dataDowncast')['add'](_0x752680=>{_0x752680['on']('addMarker:suggestion',(_0x3734bb,_0x553600,_0x2936de)=>{if(!_0x2936de['options']['showSuggestionHighlights'])return;const _0x44d625=_0x553600['item'];if(!_0x44d625)return;const _0x1b58b4=_0x2936de['mapper']['toViewElement'](_0x44d625);_0x561e27['model']['schema']['isObject'](_0x44d625)&&_0x1b58b4&&!_0x1b58b4['getCustomProperty']('widget')&&_0x1b58b4['is']('containerElement')&&_0x4a8cca(_0x1b58b4,_0x2936de['writer']);},{'priority':'high'});}),_0x561e27['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2c6c90,_0x9934cf)=>{if(!_0x9934cf['options']['showSuggestionHighlights'])return null;const {type:_0x267b0f,subType:_0x3dd50e}=this['_splitMarkerName'](_0x2c6c90['markerName']);return{'classes':['ck-suggestion-marker',_0x385be6(_0x267b0f,_0x3dd50e)],'priority':0xbb8};}});const _0x26e0f7=({showActiveMarkers:_0x717042=!0x0,isAttributeSuggestion:_0x2f2678=!0x1}={})=>(_0x194238,_0xcafea1,_0x4df3d0)=>{if(!_0xcafea1['item'])return;const {id:_0x24d3ab,authorId:_0x268467}=this['_splitMarkerName'](_0xcafea1['markerName']);if(_0x2f2678){const _0x477d59=this['_suggestions']['get'](_0x24d3ab),_0x20c3fe=this['_getAttributeKey'](_0x477d59);if(!this['_isBlockAttribute'](_0x20c3fe))return;}if(_0xcafea1['item']['is']('selection'))return void _0x4df3d0['consumable']['consume'](_0xcafea1['item'],_0x194238['name']);const _0x3b7bcb=_0x4df3d0['mapper']['toViewElement'](_0xcafea1['item']);if(_0xcafea1['item']['is']('element')&&_0x561e27['model']['schema']['isBlock'](_0xcafea1['item'])&&!_0x3b7bcb['getCustomProperty']('addHighlight')){_0x4df3d0['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3b7bcb),_0x4df3d0['writer']['setAttribute']('data-suggestion',_0x24d3ab,_0x3b7bcb),_0x4df3d0['writer']['setAttribute']('data-author-id',_0x268467,_0x3b7bcb),_0x4df3d0['mapper']['bindElementToMarker'](_0x3b7bcb,_0xcafea1['markerName']),_0x717042&&(this['activeMarkers']['includes'](_0xcafea1['markerName'])?_0x4df3d0['writer']['addClass']('ck-suggestion-marker--active',_0x3b7bcb):_0x4df3d0['writer']['removeClass']('ck-suggestion-marker--active',_0x3b7bcb));for(const _0xcf5fd9 of _0x561e27['model']['createRangeIn'](_0xcafea1['item'])['getItems']())_0x4df3d0['consumable']['consume'](_0xcf5fd9,_0x194238['name']);_0x4df3d0['consumable']['consume'](_0xcafea1['item'],_0x194238['name']);}};_0x561e27['conversion']['for']('dataDowncast')['add'](_0x417409=>{_0x417409['on']('addMarker:suggestion:formatBlock',(_0x59d627,_0x47420b,_0x560f0d)=>{_0x560f0d['options']['showSuggestionHighlights']&&_0x26e0f7({'showActiveMarkers':!0x1})(_0x59d627,_0x47420b,_0x560f0d);},{'priority':'highest'});}),_0x561e27['conversion']['for']('dataDowncast')['add'](_0x384ac=>{_0x384ac['on']('addMarker:suggestion:attribute',(_0x41fbab,_0x21dbd3,_0x39b0e9)=>{_0x39b0e9['options']['showSuggestionHighlights']&&_0x26e0f7({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x41fbab,_0x21dbd3,_0x39b0e9);},{'priority':'highest'});}),_0x561e27['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x44eba9,_0x262421)=>_0x262421['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x44eba9['substr'](0xb)}}),_0x561e27['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x580f19,{writer:_0x4ebcbb})=>{let _0x24650a='suggestion:'+_0x580f19['getAttribute']('suggestion-type')+':'+_0x580f19['getAttribute']('id');return _0x580f19['getAttribute']('marker-count')&&(_0x24650a+=':'+_0x580f19['getAttribute']('marker-count')),_0x4ebcbb['createElement']('$marker',{'data-name':_0x24650a});}}),_0x561e27['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x561e27['conversion']['for']('editingDowncast')['add'](_0x536621=>{_0x536621['on']('addMarker:suggestion:formatBlock',_0x26e0f7(),{'priority':'high'});}),_0x561e27['conversion']['for']('editingDowncast')['add'](_0x52cc2e=>{_0x52cc2e['on']('addMarker:suggestion:attribute',_0x26e0f7({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x561e27['conversion']['for']('editingDowncast')['add'](_0x1c08d8=>{_0x1c08d8['on']('removeMarker:suggestion:formatBlock',(_0x18a932,_0xb423e9,_0x5ab5b8)=>{const _0x210ec7=_0x5ab5b8['mapper']['markerNameToElements'](_0xb423e9['markerName']);if(_0x210ec7){for(const _0x14fdb9 of _0x210ec7)_0x14fdb9['getCustomProperty']('addHighlight')||(_0x5ab5b8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x14fdb9),_0x5ab5b8['writer']['removeAttribute']('data-suggestion',_0x14fdb9),_0x5ab5b8['writer']['removeAttribute']('data-author-id',_0x14fdb9),_0x5ab5b8['mapper']['unbindElementFromMarkerName'](_0x14fdb9,_0xb423e9['markerName']));}},{'priority':'high'});}),_0x561e27['conversion']['for']('editingDowncast')['add'](_0x4bcfcc=>{_0x4bcfcc['on']('removeMarker:suggestion:attribute',(_0x291042,_0x26146c,_0x341fd7)=>{const _0x1ce554=_0x341fd7['mapper']['markerNameToElements'](_0x26146c['markerName']);if(!_0x1ce554)return;const {id:_0x241e9f}=this['_splitMarkerName'](_0x26146c['markerName']),_0x585f6f=this['_suggestions']['get'](_0x241e9f),_0x556d6b=this['_getAttributeKey'](_0x585f6f);if(this['_isBlockAttribute'](_0x556d6b)){for(const _0x45d3ec of _0x1ce554)_0x45d3ec['getCustomProperty']('addHighlight')||(_0x341fd7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x45d3ec),_0x341fd7['writer']['removeAttribute']('data-suggestion',_0x45d3ec),_0x341fd7['writer']['removeAttribute']('data-author-id',_0x45d3ec),_0x341fd7['mapper']['unbindElementFromMarkerName'](_0x45d3ec,_0x26146c['markerName']));}},{'priority':'high'});}),_0x561e27['model']['document']['registerPostFixer'](_0x64a017=>{let _0x339cf6=!0x1;const _0x5f129c=Array['from'](_0x561e27['model']['document']['differ']['getChangedMarkers']()),_0x4b3f5a=new Set();for(const {name:_0x538152,data:_0x5ba372}of _0x5f129c){const {group:_0x596d1b,type:_0x1c3a3b,subType:_0x48d4a8,id:_0x28ed4d}=this['_splitMarkerName'](_0x538152);if('suggestion'!==_0x596d1b)continue;const _0x3c5ea5=this['_suggestions']['get'](_0x28ed4d);if(null!=_0x5ba372['newRange']){'formatInline'==_0x1c3a3b&&(_0x339cf6=_0x339cf6||Lt(_0x5ba372['newRange'],_0x538152,_0x64a017,_0x561e27['model']['schema']));const _0x3485da='attribute'==_0x1c3a3b&&this['_isBlockAttribute'](_0x48d4a8['split']('|')[0x0]);if(_0x5ba372['newRange']['isCollapsed']||'$graveyard'==_0x5ba372['newRange']['root']['rootName']||'formatBlock'==_0x1c3a3b&&!Ht(_0x5ba372['newRange'])||_0x3485da&&!Ht(_0x5ba372['newRange'])||'deletion'==_0x1c3a3b&&!(!Ft(_0x21aa01=_0x5ba372['newRange'])&&!function(_0x3399c4){return _0x3399c4['start']['parent']==_0x3399c4['end']['nodeBefore']&&_0x3399c4['start']['isAtEnd'];}(_0x21aa01)))_0x64a017['removeMarker'](_0x538152),_0x339cf6=!0x0;else{if(!_0x3c5ea5||!_0x3c5ea5['isInContent'])continue;if(_0x5ba372['newRange']&&_0x5ba372['oldRange']&&_0x5ba372['newRange']['isEqual'](_0x5ba372['oldRange']))continue;_0x4b3f5a['add'](_0x3c5ea5);}}}var _0x21aa01;return _0x4b3f5a['size']>0x0&&(_0x339cf6=!!this['_joinWithAdjacentSuggestions'](_0x4b3f5a)||_0x339cf6),_0x339cf6;}),_0x561e27['model']['document']['registerPostFixer'](_0x18df38=>{let _0x56a803=!0x1;for(const _0x211960 of _0x561e27['model']['document']['differ']['getChanges']())if('insert'==_0x211960['type'])for(const _0x3de737 of this['_suggestions']['values']()){if(_0x3de737['isMultiRange']||!_0x3de737['isInContent'])continue;const _0x5867d4='formatBlock'==_0x3de737['type'],_0x981c83=this['_getAttributeKey'](_0x3de737),_0x19bc9f=_0x981c83&&this['_isBlockAttribute'](_0x981c83);if(!_0x5867d4&&!_0x19bc9f)continue;const _0x54fbfc=_0x3de737['getFirstRange']();if(_0x54fbfc['start']['parent']!=_0x54fbfc['end']['parent']&&!_0x54fbfc['end']['isAtEnd']){const _0x3c9545=_0x561e27['model']['createPositionAt'](_0x54fbfc['start']['nodeAfter'],'end'),_0x3221cd=_0x561e27['model']['createRange'](_0x54fbfc['start'],_0x3c9545);_0x18df38['updateMarker'](_0x3de737['getFirstMarker'](),{'range':_0x3221cd}),_0x56a803=!0x0;}}return _0x56a803;}),_0x561e27['model']['document']['registerPostFixer'](_0x3ec207=>this['_processAttributeChanges'](_0x3ec207)),_0x561e27['model']['document']['registerPostFixer'](_0x11cf40=>!_0x11cf40['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x11cf40)),_0x561e27['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x561e27['model']['document']['on']('change:data',(_0x363976,_0x769c45)=>{if(!_0x769c45['isLocal']||_0x769c45['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x12687c=_0x561e27['model']['document']['differ']['getChanges']();if(0x0==_0x12687c['length'])return;const _0x591994=[],_0xc584aa=_0x12687c['filter'](_0x2e7b13=>'attribute'==_0x2e7b13['type']),_0x21985c=_0x12687c['filter'](_0x11979b=>'insert'==_0x11979b['type']&&'$text'!=_0x11979b['name']);for(const _0x258e89 of _0xc584aa)this['_isRegisteredAttribute'](_0x258e89['attributeKey'])&&_0x591994['push']({'key':_0x258e89['attributeKey'],'newValue':_0x258e89['attributeNewValue'],'oldValue':_0x258e89['attributeOldValue'],'range':qt(_0x258e89['range'],_0x561e27['model'])});for(const _0x4f9f04 of _0x21985c){if('rename'!=_0x4f9f04['action']&&'refresh'!=_0x4f9f04['action'])continue;const _0x2e1da8=zt(_0x4f9f04['position']['nodeAfter'],_0x561e27['model']),_0x3defb1=_0x4f9f04['before'];'rename'==_0x4f9f04['action']&&_0x591994['push']({'key':m,'newValue':_0x4f9f04['name'],'oldValue':_0x3defb1['name'],'range':_0x2e1da8});for(const [_0x3671e3,_0x532e77]of _0x3defb1['attributes']){if(!this['_isRegisteredAttribute'](_0x3671e3))continue;const _0x214330=_0x4f9f04['attributes']['get'](_0x3671e3);_0x532e77!==_0x214330&&_0x591994['push']({'key':_0x3671e3,'newValue':_0x214330,'oldValue':_0x532e77,'range':_0x2e1da8});}for(const [_0x2535ea,_0x2de251]of _0x4f9f04['attributes'])this['_isRegisteredAttribute'](_0x2535ea)&&(_0x3defb1['attributes']['has'](_0x2535ea)||_0x591994['push']({'key':_0x2535ea,'newValue':_0x2de251,'oldValue':null,'range':_0x2e1da8}));}0x0!=_0x591994['length']&&_0x561e27['model']['enqueueChange'](_0x769c45,_0x155253=>{const _0x3a8908=_0x2b97bd();for(const {range:_0x287841,key:_0x5b4966,oldValue:_0x3903df,newValue:_0x483ac6}of _0x591994)this['markAttributeChange'](_0x287841,_0x5b4966,_0x3903df,_0x483ac6,{'groupId':_0x3a8908});this['_reduceExistingSuggestions'](_0x155253,_0x591994);});},{'priority':'lowest'}),_0x561e27['model']['markers']['on']('update:suggestion',(_0x3442f2,_0x38a3ec,_0x4570e4)=>{if(null==_0x4570e4){const {id:_0x1e33c8}=this['_splitMarkerName'](_0x38a3ec['name']),_0x3d206d=this['_suggestions']['get'](_0x1e33c8);_0x3d206d&&_0x3d206d['addMarkerName'](_0x38a3ec['name']);}}),_0x561e27['model']['document']['on']('change:data',()=>{const _0x3ceb79=Array['from'](_0x561e27['model']['document']['differ']['getChangedMarkers']())['filter'](_0x31eb90=>'suggestion'===this['_splitMarkerName'](_0x31eb90['name'])['group']);if(0x0===_0x3ceb79['length'])return;_0x3ceb79['sort']((_0x21acec,_0x33268f)=>{const _0x243472=_0x21acec['data']['oldRange'],_0xb18d61=_0x33268f['data']['oldRange'];return null===_0x243472&&null===_0xb18d61?0x0:null===_0x243472&&null!==_0xb18d61?-0x1:null!==_0x243472&&null===_0xb18d61?0x1:_0x243472['start']['isBefore'](_0xb18d61['start'])?-0x1:0x1;});const _0x33ebfa=new Set(),_0x55f634=new Set();for(const {name:_0x20ba03,data:_0x551858}of _0x3ceb79){const {id:_0x14de8a}=this['_splitMarkerName'](_0x20ba03);if(null===_0x551858['oldRange']){const _0x3014d0=this['_handleNewSuggestionMarker'](_0x20ba03);_0x55f634['add'](_0x3014d0);}else{const _0x365282=this['_suggestions']['get'](_0x14de8a);null!==_0x551858['newRange']||_0x365282['isInContent']?(_0x33ebfa['add'](_0x365282['head']),_0x55f634['add'](_0x365282)):this['_removeSuggestion'](_0x365282);}}_0x55f634['size']>0x0&&this['_refreshSuggestionsChain'](_0x55f634);for(const _0x2e5986 of _0x33ebfa)this['fire']('suggestionChanged',_0x2e5986);}),_0x561e27['model']['on']('applyOperation',(_0x499e5e,_0x2d6bb4)=>{const _0x480e19=_0x2d6bb4[0x0];if(!this['_suggestions']['size'])return;if(!_0x480e19['isDocumentOperation'])return;if(_0x480e19['batch']['isUndo']||!_0x480e19['batch']['isLocal'])return;let _0xaa8401,_0x42ade7;switch(_0x480e19['type']){case'insert':_0xaa8401=_0x561e27['model']['createPositionAt'](_0x480e19['position']),_0x42ade7=_0xaa8401['getShiftedBy'](_0x480e19['howMany']);break;case'split':_0xaa8401=_0x561e27['model']['createPositionAt'](_0x480e19['splitPosition']),_0x42ade7=_0x561e27['model']['createPositionAt'](_0x480e19['moveTargetPosition']);break;case'move':_0xaa8401=_0x561e27['model']['createPositionAt'](_0x480e19['targetPosition']),_0x42ade7=_0xaa8401['getShiftedBy'](_0x480e19['howMany']);break;default:return;}const _0x41ecb=_0x561e27['model']['createRange'](_0xaa8401,_0x42ade7);_0x561e27['model']['change'](()=>{for(const {suggestion:_0x453bf9,meta:_0x41f903}of this['_findSuggestions'](_0x41ecb)){if(_0x453bf9['isMultiRange'])continue;if('formatInline'==_0x453bf9['type'])continue;const _0x5b721d=this['_getAttributeKey'](_0x453bf9);if(_0x5b721d&&this['_isBlockAttribute'](_0x5b721d)&&'split'!=_0x480e19['type'])continue;const _0x180b42=_0x453bf9['data']&&_0x453bf9['data']['multipleBlocks'];('formatBlock'!=_0x453bf9['type']||'split'==_0x480e19['type']&&!_0x180b42)&&(_0x41f903['containsRangeInObject']||'insertion'==_0x453bf9['type']&&_0x41f903['isOwn']||_0x453bf9['getFirstRange']()['containsRange'](_0x41ecb)&&this['_breakSuggestionMarker'](_0x453bf9,_0xaa8401,_0x42ade7));}});},{'priority':'lowest'}),_0x561e27['model']['on']('deleteContent',(_0x5f3c12,_0x3e2945)=>{const _0xde34ba=_0x3e2945[0x0],_0x2b735b=_0x3e2945[0x1];if(_0x2b735b&&_0x2b735b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xde34ba['isCollapsed'])return;const _0x2f7214=_0x561e27['model']['schema'],{start:_0x49f490,end:_0x11ba68}=_0xde34ba['getFirstRange'](),_0x212575=_0x49f490['nodeAfter']&&_0x2f7214['isLimit'](_0x49f490['nodeAfter'])?null:_0x2f7214['getNearestSelectionRange'](_0x49f490,'forward'),_0x56fa68=_0x11ba68['nodeBefore']&&_0x2f7214['isLimit'](_0x11ba68['nodeBefore'])?null:_0x2f7214['getNearestSelectionRange'](_0x11ba68,'backward'),_0x50293c=_0x561e27['model']['createRange'](_0x212575?_0x212575['start']:_0x49f490,_0x56fa68?_0x56fa68['end']:_0x11ba68);_0x561e27['model']['change'](_0x2cde23=>{this['markDeletion'](_0x50293c);const _0x3126bc=_0x561e27['model']['schema']['getNearestSelectionRange'](_0x50293c['start']);_0xde34ba['is']('documentSelection')?_0x2cde23['setSelection'](_0x3126bc):_0xde34ba['setTo'](_0x3126bc);}),_0x5f3c12['stop']();},{'priority':_0x5b2b34['normal']+0xa}),_0x561e27['model']['on']('insertContent',(_0x3dd8ad,_0x115abf)=>{const _0x2be921=_0x115abf[_0x115abf['length']-0x1];_0x2be921&&_0x2be921['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x561e27['model']['change'](()=>{let _0x482df6=_0x561e27['model']['insertContent'](_0x115abf[0x0],_0x115abf[0x1],_0x115abf[0x2],{'forceDefaultExecution':!0x0});if(!_0x482df6)return;_0x3dd8ad['return']=_0x482df6['clone']();const _0x1ff912=_0x482df6['end']['nodeBefore'],_0xf97817=_0x561e27['model']['schema'];_0x1ff912&&_0xf97817['isBlock'](_0x1ff912)&&!_0xf97817['isObject'](_0x1ff912)&&(_0x482df6=_0x561e27['model']['createRange'](_0x482df6['start'],_0x561e27['model']['createPositionAt'](_0x1ff912,'end'))),this['markInsertion'](_0x482df6);}),_0x3dd8ad['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4537e9=new O(_0x561e27,this['_suggestions']);_0x561e27['commands']['add']('acceptSuggestion',_0x4537e9),this['enableCommand']('acceptSuggestion');const _0x416e2c=new R(_0x561e27,this['_suggestions']);_0x561e27['commands']['add']('discardSuggestion',_0x416e2c),this['enableCommand']('discardSuggestion'),_0x561e27['commands']['add']('acceptAllSuggestions',new x(_0x561e27,_0x4537e9,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x561e27['commands']['add']('discardAllSuggestions',new x(_0x561e27,_0x416e2c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x561e27['commands']['add']('acceptSelectedSuggestions',new E(_0x561e27,_0x4537e9,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x561e27['commands']['add']('discardSelectedSuggestions',new E(_0x561e27,_0x416e2c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x49b690=_0x561e27['plugins']['get']('CommentsRepository');this['listenTo'](_0x49b690,'addComment',(_0x114e25,{threadId:_0xd7b6ad})=>{const _0x1f3f49=this['_suggestions']['get'](_0xd7b6ad);_0x1f3f49&&_0x1f3f49['commentThread']&&0x1===_0x1f3f49['commentThread']['length']&&this['_updateSuggestionData'](_0xd7b6ad,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x49b690,'removeComment',(_0x17db1e,{threadId:_0x437956})=>{const _0x198a3f=this['_suggestions']['get'](_0x437956);_0x198a3f&&_0x198a3f['commentThread']&&!_0x198a3f['commentThread']['length']&&this['_updateSuggestionData'](_0x437956,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x39cfbc){const _0x491406=_0x498f3c([0x56,0x54,0x4c,0x39,0x43,0x51,0x64,0x36,0x50,0x57,0x73,0x37,0x72,0x4f,0x30,0x6e,0x78,0x59,0x44,0x4e,0x6b,0x70,0x41,0x34,0x67,0x4a,0x53,0x45,0x4d,0x58,0x6d,0x66,0x47,0x32,0x6c,0x42,0x48,0x6f,0x5a,0x31,0x76,0x6a,0x71,0x35,0x33,0x52,0x4b,0x63,0x79,0x61,0x77,0x74,0x49,0x46,0x38,0x75,0x68,0x62,0x69,0x65,0x55,0x7a]),_0x3575fb=0x6af856ac,_0x72a809=0x6aff0814^_0x3575fb,_0x37035a=window[_0x498f3c([0x44,0x61,0x74,0x65])][_0x498f3c([0x6e,0x6f,0x77])](),_0x40b8e1=_0x39cfbc[_0x498f3c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1e2118=new window[(_0x498f3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x387217=>{_0x40b8e1[_0x498f3c([0x6f,0x6e,0x63,0x65])](_0x498f3c([0x72,0x65,0x61,0x64,0x79]),_0x387217);}),_0x33c795={[_0x498f3c([0x6b,0x74,0x79])]:_0x498f3c([0x45,0x43]),[_0x498f3c([0x75,0x73,0x65])]:_0x498f3c([0x73,0x69,0x67]),[_0x498f3c([0x63,0x72,0x76])]:_0x498f3c([0x50,0x2d,0x32,0x35,0x36]),[_0x498f3c([0x78])]:_0x498f3c([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x498f3c([0x79])]:_0x498f3c([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x498f3c([0x61,0x6c,0x67])]:_0x498f3c([0x45,0x53,0x32,0x35,0x36])},_0x56284f=_0x40b8e1[_0x498f3c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x498f3c([0x67,0x65,0x74])](_0x498f3c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x13ba23(){let _0x1c81fa,_0x2114f0=null,_0x42e009=null;try{if(_0x56284f==_0x498f3c([0x47,0x50,0x4c]))return _0x498f3c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1c81fa=_0x1fbdd5(),!_0x1c81fa)return _0x498f3c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1c81fa[_0x498f3c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x42e009=_0x6c8f16(_0x1c81fa[_0x498f3c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1c81fa[_0x498f3c([0x6a,0x74,0x69])])),await _0x47fe43()?_0x334308()?_0x49b9e9()?_0x498f3c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x110249()?(_0x1c81fa[_0x498f3c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x498f3c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2114f0=_0x3ba106(_0x498f3c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1c81fa[_0x498f3c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x498f3c([0x74,0x72,0x69,0x61,0x6c])&&(_0x2114f0=_0x3ba106(_0x498f3c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3c8a97()):_0x498f3c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x498f3c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x498f3c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5bacaf){return _0x498f3c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x49b9e9(){const _0x54ba54=[_0x498f3c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x498f3c([0x74,0x72,0x69,0x61,0x6c])][_0x498f3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c81fa[_0x498f3c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x37035a/0x3e8:0xe10*_0x72a809;return _0x1c81fa[_0x498f3c([0x65,0x78,0x70])]<_0x54ba54;}function _0x334308(){const _0x1671b8=_0x1c81fa[_0x498f3c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1671b8)return!0x1;if(_0x1671b8[_0x498f3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x498f3c([0x2a])))return!0x0;if(_0x1671b8[_0x498f3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x498f3c([0x54,0x43])))return!0x0;if(_0x1671b8[_0x498f3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x498f3c([0x52,0x54,0x43]))){if(_0x41e912())return!0x0;if(_0xa5711d()||_0x2c0c75())return!0x0;}return!0x1;}function _0x110249(){const _0x28b92d=_0x1c81fa[_0x498f3c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x28b92d||0x0==_0x28b92d[_0x498f3c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1c75ae}=new URL(window[_0x498f3c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x28b92d[_0x498f3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c75ae))return!0x0;const _0x10b5f3=_0x1c75ae[_0x498f3c([0x73,0x70,0x6c,0x69,0x74])](_0x498f3c([0x2e]));return _0x28b92d[_0x498f3c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xabc105=>_0xabc105[_0x498f3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x498f3c([0x2a])))[_0x498f3c([0x6d,0x61,0x70])](_0x4dfb2c=>_0x4dfb2c[_0x498f3c([0x73,0x70,0x6c,0x69,0x74])](_0x498f3c([0x2e])))[_0x498f3c([0x73,0x6f,0x6d,0x65])](_0xf78be1=>_0x10b5f3[_0x498f3c([0x65,0x76,0x65,0x72,0x79])]((_0xf4b1be,_0x2a92c2)=>_0xf78be1[_0x2a92c2]===_0xf4b1be||_0xf78be1[_0x2a92c2]===_0x498f3c([0x2a])));}function _0x3c8a97(){return _0x2114f0&&_0x42e009?new window[(_0x498f3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4bf0b2,_0x4cbc3b)=>{_0x2114f0[_0x498f3c([0x74,0x68,0x65,0x6e])](_0x4bf0b2,_0x4cbc3b),_0x42e009[_0x498f3c([0x74,0x68,0x65,0x6e])](_0x2d1809=>{_0x2d1809!=_0x498f3c([0x56,0x61,0x6c,0x69,0x64])&&_0x4bf0b2(_0x2d1809);},_0x4cbc3b);}):_0x2114f0||_0x42e009||_0x498f3c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x6c8f16(_0x5b9f97,_0x2061a4){return new window[(_0x498f3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5428be=>{if(_0x1f294f())return _0x5428be(_0x498f3c([0x56,0x61,0x6c,0x69,0x64]));_0x5a5ead(),_0x40b8e1[_0x498f3c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x498f3c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x472d3a=!0x1;const _0x91696a=_0x2b97bd();function _0x5b8d81(_0x5d86a6){return!!_0x5d86a6&&(typeof _0x5d86a6===_0x498f3c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5d86a6===_0x498f3c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5d86a6[_0x498f3c([0x74,0x68,0x65,0x6e])]===_0x498f3c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5d86a6[_0x498f3c([0x63,0x61,0x74,0x63,0x68])]===_0x498f3c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e76ff(_0x2c0588){_0x16f840(_0x2c0588)[_0x498f3c([0x74,0x68,0x65,0x6e])](_0x2b5df4=>{if(!_0x2b5df4||_0x2b5df4[_0x498f3c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x498f3c([0x6f,0x6b]))return _0x498f3c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5b486d(_0x44687a(_0x91696a+_0x2061a4))!=_0x2b5df4[_0x498f3c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x498f3c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x498f3c([0x56,0x61,0x6c,0x69,0x64]);})[_0x498f3c([0x74,0x68,0x65,0x6e])](_0x4f43b2=>(_0x3b8af7(),_0x4f43b2),()=>{const _0x3928a0=_0x430fcc();return null==_0x3928a0?(_0x3b8af7(),_0x498f3c([0x56,0x61,0x6c,0x69,0x64])):_0x498f3c(_0x37035a-_0x3928a0>(0x4ef4d2ac^_0x3575fb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x498f3c([0x74,0x68,0x65,0x6e])](_0x5428be)[_0x498f3c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5428be(_0x498f3c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d76e7=0x6aceb82c^_0x3575fb;function _0x3b8af7(){const _0x5cd233=_0x498f3c([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b486d(_0x44687a(_0x5b9f97)),_0x3843b9=_0x1089e0(_0x5b486d(window[_0x498f3c([0x4d,0x61,0x74,0x68])][_0x498f3c([0x63,0x65,0x69,0x6c])](_0x37035a/_0x5d76e7)));window[_0x498f3c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x498f3c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5cd233,_0x3843b9);}function _0x430fcc(){const _0x5ce109=_0x498f3c([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b486d(_0x44687a(_0x5b9f97)),_0x2352fd=window[_0x498f3c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x498f3c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ce109);return _0x2352fd?window[_0x498f3c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1089e0(_0x2352fd),0x10)*_0x5d76e7:null;}function _0x16f840(_0x11d813){return new window[(_0x498f3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b15d8,_0x1b2af8)=>{_0x11d813[_0x498f3c([0x74,0x68,0x65,0x6e])](_0x4b15d8,_0x1b2af8),window[_0x498f3c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b2af8,0x6af9826c^_0x3575fb);});}}_0x40b8e1[_0x498f3c([0x6f,0x6e])](_0x498f3c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4f8253,_0x54f80f)=>{if(_0x54f80f[0x0]!=_0x5b9f97)return _0x5428be(_0x498f3c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x54f80f[0x1]={..._0x54f80f[0x1],[_0x498f3c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x91696a};},{[_0x498f3c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x498f3c([0x68,0x69,0x67,0x68])}),_0x40b8e1[_0x498f3c([0x6f,0x6e])](_0x498f3c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc65df0=>{_0x5b8d81(_0xc65df0[_0x498f3c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x472d3a=!0x0,_0x2e76ff(_0xc65df0[_0x498f3c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x498f3c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x498f3c([0x6c,0x6f,0x77])}),_0x1e2118[_0x498f3c([0x74,0x68,0x65,0x6e])](()=>{_0x472d3a||_0x5428be(_0x498f3c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1f294f(){return _0x40b8e1[_0x498f3c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x498f3c([0x76,0x69,0x65,0x77])][_0x498f3c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x498f3c([0x61,0x75,0x74,0x6f]);}function _0x5a5ead(){_0x40b8e1[_0x498f3c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x498f3c([0x76,0x69,0x65,0x77])][_0x498f3c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x498f3c([0x61,0x75,0x74,0x6f]);}}function _0x3ba106(_0x5e5138){const _0x56dec1=[new window[(_0x498f3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x270cfe=>setTimeout(_0x270cfe,0x6af16860^_0x3575fb)),_0x1e2118[_0x498f3c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x498f3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x305392=>{let _0x3daa58=0x0;_0x40b8e1[_0x498f3c([0x6d,0x6f,0x64,0x65,0x6c])][_0x498f3c([0x6f,0x6e])](_0x498f3c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x674a6c,_0x2a6018)=>{_0x2a6018[0x0][_0x498f3c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3daa58++,_0x3daa58==(0x6af85754^_0x3575fb)&&(_0x305392(),_0x674a6c[_0x498f3c([0x6f,0x66,0x66])]());});}))];return window[_0x498f3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x498f3c([0x72,0x61,0x63,0x65])](_0x56dec1)[_0x498f3c([0x74,0x68,0x65,0x6e])](()=>_0x5e5138);}async function _0x14b1f1(){await _0x1e2118,_0x40b8e1[_0x498f3c([0x6d,0x6f,0x64,0x65,0x6c])][_0x498f3c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x8b6a30,_0x40b8e1[_0x498f3c([0x6d,0x6f,0x64,0x65,0x6c])][_0x498f3c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x8b6a30,_0x40b8e1[_0x498f3c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x498f3c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x41e912(){return _0xd72d28(_0x498f3c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x24d78e(_0x498f3c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x498f3c([0x73,0x74,0x61,0x74,0x65])]==_0x498f3c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xa5711d(){return _0xd72d28(_0x498f3c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x2c0c75(){return _0xd72d28(_0x498f3c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x353a42(_0x51f610){const _0x4725e5=_0x244ff0();_0x40b8e1[_0x4725e5]=_0x498f3c([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x51f610,_0x51f610!=_0x498f3c([0x56,0x61,0x6c,0x69,0x64])&&_0x14b1f1();}function _0x244ff0(){const _0x1fa1a5=window[_0x498f3c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x498f3c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x498f3c([0x6e,0x6f,0x77])]())[_0x498f3c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x498f3c([0x2e]),'');let _0x13e9c4=_0x498f3c([0x56]);for(let _0x44cbab=0x0;_0x44cbab<_0x1fa1a5[_0x498f3c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44cbab+=0x2){let _0x1aebce=window[_0x498f3c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fa1a5[_0x498f3c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44cbab,_0x44cbab+0x2));_0x1aebce>=_0x491406[_0x498f3c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1aebce-=_0x491406[_0x498f3c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x13e9c4+=_0x491406[_0x1aebce];}return _0x13e9c4;}function _0x1fbdd5(){const _0xd9f3d5=_0x56284f[_0x498f3c([0x73,0x70,0x6c,0x69,0x74])](_0x498f3c([0x2e]));if(0x3!=_0xd9f3d5[_0x498f3c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2a8bb5(_0xd9f3d5[0x1]);function _0x2a8bb5(_0x4e0a73){const _0x17c872=_0x271faa(_0x4e0a73);return _0x17c872&&_0x1d5d7e()?_0x17c872:null;function _0x1d5d7e(){const _0x47ea28=_0x17c872[_0x498f3c([0x6a,0x74,0x69])],_0xdc792d=window[_0x498f3c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47ea28[_0x498f3c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47ea28[_0x498f3c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xae51b0={..._0x17c872,[_0x498f3c([0x6a,0x74,0x69])]:_0x47ea28[_0x498f3c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x47ea28[_0x498f3c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xae51b0[_0x498f3c([0x76,0x63])],_0x44687a(_0xae51b0)==_0xdc792d;}}}async function _0x47fe43(){let _0x1581d5=!0x0;try{const _0x55655a=_0x56284f[_0x498f3c([0x73,0x70,0x6c,0x69,0x74])](_0x498f3c([0x2e])),[_0x5c8f54,_0x2e7233,_0x3370ce]=_0x55655a;return _0x28b97e(_0x5c8f54),await _0x42e6d3(_0x5c8f54,_0x2e7233,_0x3370ce),_0x1581d5;}catch(_0x44986e){return!0x1;}function _0x28b97e(_0x5e1e94){const _0x18f9ac=_0x271faa(_0x5e1e94);_0x18f9ac&&_0x18f9ac[_0x498f3c([0x61,0x6c,0x67])]==_0x498f3c([0x45,0x53,0x32,0x35,0x36])||(_0x1581d5=!0x1);}async function _0x42e6d3(_0x3c84f0,_0x21f5a3,_0x32044a){const _0x3fa6d4=window[_0x498f3c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x498f3c([0x66,0x72,0x6f,0x6d])](_0x166af3(_0x32044a),_0x4e295a=>_0x4e295a[_0x498f3c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3a99a7=new window[(_0x498f3c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x498f3c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3c84f0+_0x498f3c([0x2e])+_0x21f5a3),_0x3f2580=window[_0x498f3c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x498f3c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3f2580)return;const _0x2c1ee1=await _0x3f2580[_0x498f3c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x498f3c([0x6a,0x77,0x6b]),_0x33c795,{[_0x498f3c([0x6e,0x61,0x6d,0x65])]:_0x498f3c([0x45,0x43,0x44,0x53,0x41]),[_0x498f3c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x498f3c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x498f3c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3f2580[_0x498f3c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x498f3c([0x6e,0x61,0x6d,0x65])]:_0x498f3c([0x45,0x43,0x44,0x53,0x41]),[_0x498f3c([0x68,0x61,0x73,0x68])]:{[_0x498f3c([0x6e,0x61,0x6d,0x65])]:_0x498f3c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2c1ee1,_0x3fa6d4,_0x3a99a7)||(_0x1581d5=!0x1);}}function _0x271faa(_0x52cbd7){return _0x52cbd7[_0x498f3c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x498f3c([0x65,0x79]))?JSON[_0x498f3c([0x70,0x61,0x72,0x73,0x65])](_0x166af3(_0x52cbd7)):null;}function _0x166af3(_0x5dadbf){return window[_0x498f3c([0x61,0x74,0x6f,0x62])](_0x5dadbf[_0x498f3c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x498f3c([0x2b]))[_0x498f3c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x498f3c([0x2f])));}function _0x44687a(_0x68ff30){let _0x54d91b=0x1505;function _0x1e9020(_0x5d206c){for(let _0x59390d=0x0;_0x59390d<_0x5d206c[_0x498f3c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59390d++){const _0x31cd97=_0x5d206c[_0x498f3c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x59390d);_0x54d91b=(_0x54d91b<<0x5)+_0x54d91b+_0x31cd97,_0x54d91b&=_0x54d91b;}}function _0x33c454(_0x3ceb68){Array[_0x498f3c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3ceb68)?_0x3ceb68[_0x498f3c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x33c454):_0x3ceb68&&typeof _0x3ceb68==_0x498f3c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x498f3c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3ceb68)[_0x498f3c([0x73,0x6f,0x72,0x74])]()[_0x498f3c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x50f6bd,_0x268792])=>{_0x1e9020(_0x50f6bd),_0x33c454(_0x268792);}):_0x1e9020(window[_0x498f3c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3ceb68));}return _0x33c454(_0x68ff30),_0x54d91b>>>0x0;}function _0x5b486d(_0x553d5a){return _0x553d5a[_0x498f3c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x498f3c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x498f3c([0x30]));}function _0x1089e0(_0x743f31){return _0x743f31[_0x498f3c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x498f3c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x498f3c([0x6a,0x6f,0x69,0x6e])]('');}function _0xd72d28(_0x3ab3fa){return _0x40b8e1[_0x498f3c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x498f3c([0x68,0x61,0x73])](_0x3ab3fa);}function _0x24d78e(_0x2b8c54){return _0x40b8e1[_0x498f3c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x498f3c([0x67,0x65,0x74])](_0x2b8c54);}function _0x8b6a30(){}function _0x498f3c(_0x5864a6){return _0x5864a6['map'](_0x3f041d=>String['fromCharCode'](_0x3f041d))['join']('');}_0x353a42(await _0x13ba23());}(this);}set['adapter'](_0x53fe27){if(this['_adapter'])throw new _0x1b7c5d('track-changes-adapter-already-set',this);this['_adapter']=_0x53fe27;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x24c00b=!0x1,toJSON:_0x4d5fa5=!0x1}={}){const _0x4fa24c=[];for(const _0x1e237a of this['_suggestions']['values']())_0x24c00b&&!_0x1e237a['isInContent']||_0x4fa24c['push'](_0x1e237a);return _0x4d5fa5?_0x4fa24c['map'](_0x50d944=>_0x50d944['toJSON']()):_0x4fa24c;}['getSuggestion'](_0x2a783f){const _0x2bf60e=this['_suggestions']['get'](_0x2a783f);if(!_0x2bf60e)throw new _0x1b7c5d('track-changes-suggestion-not-found',this);return _0x2bf60e;}['hasSuggestion'](_0x554517){return this['_suggestions']['has'](_0x554517);}['addSuggestionData'](_0x5bad38){const {authorId:_0x58d5d0,id:_0x163b49,attributes:_0x4ac7ca}=_0x5bad38,[_0x595291,_0x423e24]=_0x5bad38['type']['split'](':'),_0x52e85d=this['_suggestions']['get'](_0x163b49)||this['_createSuggestion'](_0x595291,_0x423e24,_0x163b49,_0x58d5d0,_0x4ac7ca);if(this['_addThreadToSuggestion'](_0x52e85d),this['_checkSuggestionCorrectness'](_0x52e85d,_0x595291,_0x423e24||null,_0x58d5d0),_0x52e85d['createdAt']=_0x5bad38['createdAt'],_0x52e85d['_isDataLoaded']=!0x0,_0x4ac7ca&&_0x4ac7ca['@external']){const _0x1afca8=_0x4ac7ca['@external'],_0x12f309=this['_getExternalAuthor'](_0x1afca8['authorName']);_0x52e85d['authoredAt']=_0x1afca8['createdAt'],_0x52e85d['author']=_0x12f309,_0x52e85d['isExternal']=!0x0;}else _0x52e85d['authoredAt']=_0x5bad38['createdAt'];switch(_0x5bad38['data']&&(_0x52e85d['data']=_0x5bad38['data']),_0x5bad38['attributes']&&(_0x52e85d['attributes']=_0x5bad38['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x52e85d['_saved']=!0x0),this['_suggestionState']['get'](_0x52e85d)){case'notReady':this['_suggestionState']['set'](_0x52e85d,'dataReady');break;case'markerReady':_0x52e85d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x52e85d])),this['_refreshSuggestionsChain'](new Set([_0x52e85d])),this['_suggestionState']['set'](_0x52e85d,'ready'),this['fire']('suggestionLoaded',_0x52e85d)):this['_suggestionState']['set'](_0x52e85d,'removed');}return _0x52e85d;}['acceptSuggestion'](_0x51080b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x596797 of _0x51080b['getAllAdjacentSuggestions']())_0x596797['accept']();});});}['discardSuggestion'](_0x417a56){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2074d5 of _0x417a56['getAllAdjacentSuggestions']())_0x2074d5['discard']();});});}['enableCommand'](_0xb3c9be,_0x13fcbe){const _0x405fab=this['editor']['commands']['get'](_0xb3c9be);if(!_0x405fab)throw new _0x1b7c5d('track-changes-command-not-found',this,{'commandName':_0xb3c9be});if(this['_enabledCommands']['has'](_0x405fab))throw new _0x1b7c5d('track-changes-enable-command-twice',this,{'commandName':_0xb3c9be});this['_enabledCommands']['add'](_0x405fab),_0x13fcbe&&_0x405fab['on']('execute',(_0x2cd112,_0x304089)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x304089['length']>0x0&&_0x304089[_0x304089['length']-0x1]&&_0x304089[_0x304089['length']-0x1]['forceDefaultExecution']?_0x304089['pop']():(_0x2cd112['return']=_0x13fcbe((..._0x539cd6)=>_0x405fab['execute'](..._0x539cd6,{'forceDefaultExecution':!0x0}),..._0x304089),_0x2cd112['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x209492){let _0x4c30e7,_0x355568;const _0x2fb1f5=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4c30e7=_0x209492();}catch(_0x4888aa){_0x355568=_0x4888aa;}return _0x2fb1f5||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x355568&&_0x1b7c5d['rethrowUnexpectedError'](_0x355568,this),_0x4c30e7;}['markInsertion'](_0x4337c2,_0x86b2e7=null,_0x12b3c8={}){if(_0x4337c2['isCollapsed'])return null;const _0x48cb2c=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x34970c,meta:_0x2fb91c}of this['_findSuggestions'](_0x4337c2,'insertion'))if(_0x2fb91c['isOwn']){if(!_0x2fb91c['isNextTo']){if(_0x2fb91c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x34970c,_0x12b3c8))continue;return _0x34970c;}if(Qt(_0x34970c,_0x12b3c8))return _0x34970c;this['_breakSuggestionMarker'](_0x34970c,_0x4337c2['start'],_0x4337c2['end']);break;}if(_0x86b2e7==_0x34970c['subType']&&Qt(_0x34970c,_0x12b3c8)){const _0x41cdde=_0x34970c['getFirstRange']();return _0x41cdde['start']['isEqual'](_0x4337c2['end'])?this['_setSuggestionRange'](_0x34970c,this['_model']['createRange'](_0x4337c2['start'],_0x41cdde['end'])):this['_setSuggestionRange'](_0x34970c,this['_model']['createRange'](_0x41cdde['start'],_0x4337c2['end'])),_0x34970c;}}const _0x179a7d=_0x2b97bd(),_0x8b9693=_0x48cb2c['id'],_0x5e1d4b=_0x86b2e7?'insertion:'+_0x86b2e7:'insertion',_0x1559f7=this['_setSuggestionData']({'id':_0x179a7d,'type':_0x5e1d4b,'createdAt':new Date(),'authorId':_0x8b9693,'attributes':_0x12b3c8});return this['_addSuggestionMarker'](_0x5e1d4b,_0x179a7d,_0x8b9693,_0x4337c2),_0x1559f7;}['markMultiRangeInsertion'](_0x38781f,_0x1980ff='multi',_0x436c9d={}){const _0x2149c7=this['editor']['plugins']['get']('Users')['me'],_0x512a36=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1980ff,'join');for(const _0x4b5025 of this['getSuggestions']())if(_0x4b5025['author']['id']==_0x2149c7['id']&&'insertion'==_0x4b5025['type']&&_0x4b5025['subType']==_0x1980ff&&Qt(_0x4b5025,_0x436c9d)&&(_0x512a36(_0x4b5025['getRanges'](),_0x38781f)||_0x512a36(_0x38781f,_0x4b5025['getRanges']()))){for(const _0x13b64b of _0x38781f)_0x4b5025['addRange'](_0x13b64b);return _0x4b5025;}for(const {suggestion:_0x5a51b3,meta:_0x2eee75}of this['_findSuggestions'](_0x38781f,'insertion')){if(!_0x2eee75['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2eee75['containsRangeInObject'])continue;if(!Qt(_0x5a51b3,_0x436c9d))continue;let _0x47e785=!0x0;for(const _0x4d634c of _0x5a51b3['getRanges']())for(const _0x18d475 of _0x38781f)if(!_0x4d634c['containsRange'](_0x18d475)){_0x47e785=!0x1;break;}if(_0x47e785)return _0x5a51b3;}const _0x11b677=_0x2b97bd(),_0x1c41c3=_0x2149c7['id'],_0x30ceef='insertion:'+_0x1980ff,_0x3f8ca7=this['_setSuggestionData']({'id':_0x11b677,'type':_0x30ceef,'createdAt':new Date(),'authorId':_0x1c41c3,'attributes':_0x436c9d});for(const _0x31b77b of _0x38781f)this['_addSuggestionMarker'](_0x30ceef,_0x11b677,_0x1c41c3,_0x31b77b,u['getMultiRangeId']());return _0x3f8ca7;}['markInlineFormat'](_0x18c20d,_0x2f2c5b,_0x23164c=null,_0x175b2a={}){if(_0x23164c=_0x23164c||Jt(_0x2f2c5b),_0x18c20d['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xd21e91=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x23164c,'accept');return this['forceDefaultExecution'](()=>_0xd21e91([_0x18c20d],_0x2f2c5b,_0x175b2a)),null;}const _0x38da0c=this['editor']['plugins']['get']('Users')['me'],_0x392379=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xa34bb1,meta:_0x27ceaa}of this['_findSuggestions'](_0x18c20d,'insertion'))_0x27ceaa['isOwn']&&!_0x27ceaa['isInsideObject']&&_0x392379['push'](..._0xa34bb1['getRanges']());}const _0x4c05bd=function(_0x3d9d73,_0x29135a){const _0x5e20e0=[];for(const _0x715b0b of _0x29135a){const _0x534bbc=_0x3d9d73['getIntersection'](_0x715b0b);_0x534bbc&&_0x5e20e0['push'](_0x534bbc);}return _0x5e20e0;}(_0x18c20d,_0x392379),_0x36d16a=function(_0x576dbd,_0x261fd9){const _0x18a2aa=[_0x576dbd];for(const _0x1cc7a6 of _0x261fd9){let _0x5751a7=0x0;for(;_0x5751a7<_0x18a2aa['length'];){const _0x3b6e6a=_0x18a2aa[_0x5751a7]['getDifference'](_0x1cc7a6);_0x18a2aa['splice'](_0x5751a7,0x1,..._0x3b6e6a),_0x5751a7+=_0x3b6e6a['length'];}}return _0x18a2aa;}(_0x18c20d,_0x392379);_0x4c05bd['length']&&this['_model']['change'](()=>{for(const _0x1d0ee3 of _0x4c05bd){const _0x57524d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x23164c,'accept');this['forceDefaultExecution'](()=>_0x57524d([_0x1d0ee3],_0x2f2c5b,_0x175b2a));}});for(const _0x5ae369 of _0x36d16a){let _0x528dcf=null,_0x297adf=_0x5ae369['start'],_0x1dbb31=_0x5ae369['end'];for(const {suggestion:_0x3b9bfd,meta:_0x2fdb33}of this['_findSuggestions'](_0x5ae369,'formatInline')){if(!_0x2fdb33['isOwn'])continue;if(_0x3b9bfd['subType']!=_0x23164c)continue;if(!Qt(_0x3b9bfd,_0x175b2a))continue;const _0x396377=_0x3b9bfd['getFirstRange']();if(_0x396377['containsRange'](_0x5ae369,!0x0))return null;_0x297adf=_0x297adf['isBefore'](_0x396377['start'])?_0x297adf:_0x396377['start'],_0x1dbb31=_0x1dbb31['isAfter'](_0x396377['end'])?_0x1dbb31:_0x396377['end'],_0x528dcf?_0x396377['start']['isBefore'](_0x528dcf['getFirstRange']()['start'])?(_0x528dcf['removeMarkers'](),_0x528dcf=_0x3b9bfd):_0x3b9bfd['removeMarkers']():_0x528dcf=_0x3b9bfd;}const _0xe85b68=this['_model']['createRange'](_0x297adf,_0x1dbb31);if(_0x528dcf)this['_setSuggestionRange'](_0x528dcf,_0xe85b68);else{const _0x4202cb=_0x2b97bd(),_0xa7342d=_0x38da0c['id'];this['_setSuggestionData']({'id':_0x4202cb,'type':'formatInline:'+_0x23164c,'data':_0x2f2c5b,'createdAt':new Date(),'authorId':_0xa7342d,'attributes':_0x175b2a}),this['_addSuggestionMarker']('formatInline:'+_0x23164c,_0x4202cb,_0xa7342d,_0xe85b68);}}return null;}['markBlockFormat'](_0x8bedbf,_0x1d080b,_0x3edd18=[],_0x4973a7=null,_0x5a9acb={}){_0x1d080b['formatGroupId']||(_0x1d080b['formatGroupId']=_0x1d080b['commandName']),_0x1d080b['multipleBlocks']=_0x8bedbf['is']('range'),_0x4973a7=_0x4973a7||Jt(_0x1d080b);const _0x2c3a3c=_0x3edd18['map'](_0x3b8909=>zt(_0x3b8909,this['_model'])),_0x576ae8=_0x8bedbf['is']('range')?_0x8bedbf:zt(_0x8bedbf,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5a2bbc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4973a7,'accept');return this['forceDefaultExecution'](()=>_0x5a2bbc([_0x576ae8],_0x1d080b,_0x5a9acb)),null;}_0x2c3a3c['push'](_0x576ae8);let _0x5a68c7=!0x0;for(const _0x339d21 of _0x2c3a3c)if(!this['_rangeIsInLocalUserInsertion'](_0x339d21)){_0x5a68c7=!0x1;break;}if(_0x5a68c7&&'always'!==this['_trackFormatChanges']){const _0x15fdb4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4973a7,'accept');return this['forceDefaultExecution'](()=>_0x15fdb4([_0x576ae8],_0x1d080b,_0x5a9acb)),null;}let _0x2970a5=null,_0x37c742=_0x576ae8['start'],_0x4faa06=_0x576ae8['end'];for(const {suggestion:_0x5a6767,meta:_0x1f5b8f}of this['_findSuggestions'](_0x576ae8,'formatBlock')){if(!_0x1f5b8f['isOwn'])continue;if(_0x1f5b8f['isNextTo']||_0x1f5b8f['containsRangeInObject']||_0x1f5b8f['isInsideObject'])continue;if(_0x5a6767['data']['formatGroupId']!=_0x1d080b['formatGroupId'])continue;if(!Qt(_0x5a6767,_0x5a9acb))continue;const _0x3b86df=_0x5a6767['getFirstRange']();if(_0x5a6767['subType']==_0x4973a7){if(_0x3b86df['containsRange'](_0x576ae8,!0x0))return null;_0x37c742=_0x37c742['isBefore'](_0x3b86df['start'])?_0x37c742:_0x3b86df['start'],_0x4faa06=_0x4faa06['isAfter'](_0x3b86df['end'])?_0x4faa06:_0x3b86df['end'],_0x2970a5?_0x3b86df['start']['isBefore'](_0x2970a5['getFirstRange']()['start'])?(_0x2970a5['removeMarkers'](),_0x2970a5=_0x5a6767):_0x5a6767['removeMarkers']():_0x2970a5=_0x5a6767;}else{const _0x2cdd31=_0x576ae8['getIntersection'](_0x3b86df);this['_cutOutSuggestionMarker'](_0x5a6767,_0x2cdd31);}}const _0x31cc5f=this['editor']['plugins']['get']('Users')['me'],_0x5167fa=_0x2b97bd(),_0x104b0d=_0x31cc5f['id'];if(_0x2970a5)return this['_setSuggestionRange'](_0x2970a5,this['_model']['createRange'](_0x37c742,_0x4faa06)),_0x2970a5;{const _0x28d781=this['_setSuggestionData']({'id':_0x5167fa,'type':'formatBlock:'+_0x4973a7,'data':_0x1d080b,'createdAt':new Date(),'authorId':_0x104b0d,'attributes':_0x5a9acb});return this['_addSuggestionMarker']('formatBlock:'+_0x4973a7,_0x5167fa,_0x104b0d,this['_model']['createRange'](_0x37c742,_0x4faa06)),_0x28d781;}}['markMultiRangeBlockFormat'](_0x4d9982,_0x2691b2,_0x505be3=[],_0x53540a=null,_0x2db785={}){_0x2691b2['formatGroupId']||(_0x2691b2['formatGroupId']=_0x2691b2['commandName']);const _0x2afeb3=_0x4d9982[0x0];_0x2691b2['multipleBlocks']=_0x2afeb3['is']('range'),_0x53540a=_0x53540a||Jt(_0x2691b2);const _0x5597dc=_0x505be3['map'](_0x49076c=>zt(_0x49076c,this['_model'])),_0x13915b=_0x2afeb3['is']('range')?_0x4d9982:_0x4d9982['map'](_0x13bfe4=>zt(_0x13bfe4,this['_model']));if('never'===this['_trackFormatChanges']){const _0x226642=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53540a,'accept');return this['forceDefaultExecution'](()=>_0x226642(_0x13915b,_0x2691b2,_0x2db785)),null;}_0x5597dc['push'](..._0x13915b);let _0x2779c7=!0x0;for(const _0x276f49 of _0x5597dc)if(!this['_rangeIsInLocalUserInsertion'](_0x276f49)){_0x2779c7=!0x1;break;}if(_0x2779c7&&'always'!==this['_trackFormatChanges']){const _0x1523d0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53540a,'accept');return this['forceDefaultExecution'](()=>_0x1523d0(_0x13915b,_0x2691b2,_0x2db785)),null;}const _0x43f885=this['editor']['plugins']['get']('Users')['me'];for(const _0x838d0c of this['getSuggestions']()){if(_0x838d0c['author']['id']!=_0x43f885['id'])continue;if('formatBlock'!=_0x838d0c['type']||_0x838d0c['data']['formatGroupId']!=_0x2691b2['formatGroupId'])continue;if(!Qt(_0x838d0c,_0x2db785))continue;const _0xbdd3ab=_0x838d0c['subType']==_0x53540a;for(let _0x4982aa=0x0;_0x4982aa<_0x13915b['length'];_0x4982aa++){const _0x453d50=_0x13915b[_0x4982aa];for(const _0x586a1b of _0x838d0c['getMarkers']()){const _0x5a9665=_0x586a1b['getRange']();if(_0x453d50['isEqual'](_0x5a9665)){_0xbdd3ab?(_0x13915b['splice'](_0x4982aa,0x1),_0x4982aa--):_0x838d0c['removeMarker'](_0x586a1b['name']);break;}}}}if(0x0==_0x13915b['length'])return null;const _0x50f1d7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53540a,'join');for(const _0x2c1a61 of this['getSuggestions']())if(_0x2c1a61['author']['id']==_0x43f885['id']&&'formatBlock'==_0x2c1a61['type']&&_0x2c1a61['data']['formatGroupId']==_0x2691b2['formatGroupId']&&_0x2c1a61['subType']==_0x53540a&&Qt(_0x2c1a61,_0x2db785)&&(_0x50f1d7(_0x2c1a61['getRanges'](),_0x13915b)||_0x50f1d7(_0x13915b,_0x2c1a61['getRanges']()))){for(const _0x5f548f of _0x13915b)_0x2c1a61['addRange'](_0x5f548f);return _0x2c1a61;}const _0x56ed85=_0x2b97bd(),_0x39873d=_0x43f885['id'],_0x225a94='formatBlock:'+_0x53540a,_0x37b98e=this['_setSuggestionData']({'id':_0x56ed85,'type':_0x225a94,'data':_0x2691b2,'createdAt':new Date(),'authorId':_0x39873d,'attributes':_0x2db785});for(const _0xaea187 of _0x13915b)this['_addSuggestionMarker'](_0x225a94,_0x56ed85,_0x39873d,_0xaea187,u['getMultiRangeId']());return _0x37b98e;}['markDeletion'](_0x1c9276,_0x3a182a=null,_0x5169d2={}){if(_0x1c9276['isCollapsed'])return null;const _0x51d240=this['editor']['plugins']['get']('Users')['me'],_0x3f6ca9=new _0x512f92(_0x1c9276['start'],_0x1c9276['end']);for(const {suggestion:_0xd29af4,meta:_0x1c349f}of this['_findSuggestions'](_0x3f6ca9,'insertion'))if(_0x1c349f['isOwn']&&!_0x1c349f['isNextTo']){if(_0xd29af4['isMultiRange']){const _0x27bedb=_0xd29af4['getRanges']()['filter'](_0x38c935=>'$graveyard'!=_0x38c935['root']['rootName']);_0x27bedb['every'](_0x11b045=>_0x3f6ca9['containsRange'](_0x11b045,!0x0))&&_0xd29af4['discard']();if(_0x27bedb['some'](_0x19eac3=>_0x19eac3['containsRange'](_0x3f6ca9,!0x0))){const _0x17329b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3a182a,'accept');return this['forceDefaultExecution'](()=>_0x17329b([_0x3f6ca9],null,_0x5169d2)),null;}}else{const _0x12a815=_0x3f6ca9['getIntersection'](_0xd29af4['getFirstRange']());null!==_0x12a815&&_0xd29af4['_onDiscard']([_0x12a815],null,_0x5169d2);}}if(_0x3f6ca9['detach'](),_0x3f6ca9['isCollapsed']||'$graveyard'==_0x3f6ca9['root']['rootName'])return null;let _0xcab48c=null,_0x5bf1e8=_0x3f6ca9['start'],_0x4b6621=_0x3f6ca9['end'];const _0x4aeef7=this['_findSuggestions'](_0x3f6ca9,'deletion');for(const {suggestion:_0x2f45db,meta:_0x57901a}of _0x4aeef7){const _0x3ccc11=this['_model']['createRange'](_0x5bf1e8,_0x4b6621);if(_0x57901a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x57901a['containsRangeInObject']&&!_0x57901a['isInsideObject'])){if(_0x2f45db['isMultiRange']){if(!Qt(_0x2f45db,_0x5169d2))continue;let _0x40e7f6=!0x0;for(const _0x146af3 of _0x2f45db['getRanges']()){if(_0x146af3['containsRange'](_0x3ccc11,!0x0))return _0x2f45db;_0x3ccc11['containsRange'](_0x146af3)||(_0x40e7f6=!0x1);}_0x40e7f6&&_0x2f45db['discard']();}else{const _0x32e86d=_0x2f45db['getFirstRange']();if(_0x32e86d['containsRange'](_0x3ccc11,!0x0))return _0x2f45db;if(!Qt(_0x2f45db,_0x5169d2)){_0x3ccc11['containsRange'](_0x32e86d)?_0x2f45db['removeMarkers']():_0x32e86d['containsPosition'](_0x5bf1e8)?_0x5bf1e8=_0x32e86d['end']:_0x32e86d['containsPosition'](_0x4b6621)&&(_0x4b6621=_0x32e86d['start']);continue;}_0x5bf1e8=_0x5bf1e8['isBefore'](_0x32e86d['start'])?_0x5bf1e8:_0x32e86d['start'],_0x4b6621=_0x4b6621['isAfter'](_0x32e86d['end'])?_0x4b6621:_0x32e86d['end'],_0x5169d2=Object['assign']({},_0x2f45db['attributes']),_0xcab48c?_0x32e86d['start']['isBefore'](_0xcab48c['getFirstRange']()['start'])?(_0xcab48c['removeMarkers'](),_0xcab48c=_0x2f45db):_0x2f45db['removeMarkers']():_0xcab48c=_0x2f45db;}}}if(_0xcab48c)return this['_setSuggestionRange'](_0xcab48c,this['_model']['createRange'](_0x5bf1e8,_0x4b6621)),_0xcab48c;{const _0x31d890=_0x2b97bd(),_0x466a5b=this['_model']['createRange'](_0x5bf1e8,_0x4b6621),_0x4796ef=_0x51d240['id'],_0x52c975=_0x3a182a?'deletion:'+_0x3a182a:'deletion',_0x1ec798=this['_setSuggestionData']({'id':_0x31d890,'type':_0x52c975,'createdAt':new Date(),'authorId':_0x4796ef,'attributes':_0x5169d2});return this['_addSuggestionMarker'](_0x52c975,_0x31d890,_0x4796ef,_0x466a5b),_0x1ec798;}}['markMultiRangeDeletion'](_0xb2d74c,_0x2de46f='multi',_0x4aedbf={}){const _0x5bc3e6=this['editor']['plugins']['get']('Users')['me'],_0x37ab1b=_0xb2d74c['map'](_0x2276a8=>new _0x512f92(_0x2276a8['start'],_0x2276a8['end'])),_0x2334be=new Set();for(const {suggestion:_0x423251,meta:_0x21f54c}of this['_findSuggestions'](_0x37ab1b,'insertion'))_0x21f54c['isOwn']&&!_0x21f54c['isNextTo']&&_0x2334be['add'](_0x423251);for(const _0x3d3583 of _0x2334be)if(_0x3d3583['isMultiRange']){const _0x5e3941=_0x3d3583['getRanges']();(!_0x3d3583['attributes']||!_0x3d3583['attributes']['skipNestingCheck'])&&(_0x5e3941['every'](_0x3153c1=>_0x37ab1b['some'](_0x205edf=>_0x205edf['containsRange'](_0x3153c1,!0x0)))&&_0x3d3583['discard']());if(_0x37ab1b['every'](_0x40aad3=>_0x5e3941['some'](_0x2aa021=>_0x2aa021['containsRange'](_0x40aad3,!0x0)))){const _0x442d0d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2de46f,'accept');return this['forceDefaultExecution'](()=>_0x442d0d(_0xb2d74c,null,_0x4aedbf)),null;}}else{const _0x50ad4a=_0x3d3583['getFirstRange']();_0x37ab1b['some'](_0x453cd0=>_0x453cd0['containsRange'](_0x50ad4a,!0x0))&&_0x3d3583['discard']();if(_0x37ab1b['every'](_0x321ca1=>_0x50ad4a['containsRange'](_0x321ca1,!0x0))){const _0x4bc057=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2de46f,'accept');return this['forceDefaultExecution'](()=>_0x4bc057(_0x37ab1b,null,_0x4aedbf)),null;}}const _0xa7ce59=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2de46f,'join');let _0x19a114=null;for(const _0xa9ab64 of this['getSuggestions']())if(_0xa9ab64['author']['id']==_0x5bc3e6['id']&&_0xa9ab64['isInContent']&&'deletion'==_0xa9ab64['type']&&_0xa9ab64['subType']==_0x2de46f&&Qt(_0xa9ab64,_0x4aedbf)&&(_0xa7ce59(_0xa9ab64['getRanges'](),_0x37ab1b)||_0xa7ce59(_0x37ab1b,_0xa9ab64['getRanges']()))){if(_0x19a114){if(_0xa9ab64['commentThread']&&_0xa9ab64['commentThread']['length'])continue;for(const _0x4869a3 of _0xa9ab64['getRanges']())_0x19a114['isIntersectingWithRange'](_0x4869a3)||_0x19a114['addRange'](_0x4869a3);_0xa9ab64['removeMarkers']();}else{_0x19a114=_0xa9ab64;for(const _0x50138c of _0x37ab1b)_0xa9ab64['isIntersectingWithRange'](_0x50138c)||_0xa9ab64['addRange'](_0x50138c);}}if(_0x19a114)return _0x19a114;_0x2334be['clear']();for(const {suggestion:_0x9d197b,meta:_0x2af155}of this['_findSuggestions'](_0x37ab1b,'deletion'))_0x2af155['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2af155['containsRangeInObject']&&!_0x2af155['isInsideObject'])&&Qt(_0x9d197b,_0x4aedbf)&&_0x2334be['add'](_0x9d197b);for(const _0x320260 of _0x2334be){const _0xaf5937=_0x320260['getRanges']();if(!_0x4aedbf||!_0x4aedbf['skipNestingCheck']){if(_0x37ab1b['every'](_0x47ea04=>_0xaf5937['some'](_0x250c63=>_0x250c63['containsRange'](_0x47ea04,!0x0))))return _0x320260;}(!_0x320260['attributes']||!_0x320260['attributes']['skipNestingCheck'])&&(_0xaf5937['every'](_0x571ed3=>_0x37ab1b['some'](_0xcc10ba=>_0xcc10ba['containsRange'](_0x571ed3,!0x0)))&&_0x320260['discard']());}const _0x4f120f=_0x2b97bd(),_0x5286ce=_0x5bc3e6['id'],_0x4d2fd8='deletion:'+_0x2de46f,_0x592c3c=this['_setSuggestionData']({'id':_0x4f120f,'type':_0x4d2fd8,'createdAt':new Date(),'authorId':_0x5286ce,'attributes':_0x4aedbf});for(const _0x98921d of _0x37ab1b)_0x98921d['detach'](),_0x98921d['isCollapsed']||'$graveyard'==_0x98921d['root']['rootName']||this['_addSuggestionMarker'](_0x4d2fd8,_0x4f120f,_0x5286ce,_0x98921d,u['getMultiRangeId']());return _0x592c3c;}['markAttributeChange'](_0x5bdf0c,_0xe8471,_0x289858,_0x3c0204,_0x3326cc){if(_0x5bdf0c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x8a1349=this['editor']['plugins']['get']('Users')['me']['id'],_0x301f90=Array['from'](this['_suggestions']['values']())['filter'](_0x50f2df=>'attribute'==_0x50f2df['type']&&_0x50f2df['data']['key']==_0xe8471&&_0x50f2df['isIntersectingWithRange'](_0x5bdf0c));if('default'===this['_trackFormatChanges']){const _0x341092=this['_findSuggestions'](_0x5bdf0c,'insertion')['filter'](({meta:_0x1a1e51})=>_0x1a1e51['isOwn']&&!_0x1a1e51['isInsideObject']&&!_0x1a1e51['isNextTo'])['map'](({suggestion:_0x558dd2})=>_0x558dd2);_0x301f90['unshift'](..._0x341092);}const _0x3fba82=new Map([[_0x5bdf0c,_0x289858]]);for(const _0x2e4cf1 of _0x301f90){const _0x397e5c='attribute'==_0x2e4cf1['type']?_0x2e4cf1['data']['oldValue']:void 0x0,_0x5c3c6c=_0x2e4cf1['getFirstRange'](),_0x17a7b1=Array['from'](_0x3fba82['keys']())['find'](_0x263f54=>_0x263f54['isIntersecting'](_0x5c3c6c));if(!_0x17a7b1)continue;const _0x39af71=_0x17a7b1['getDifference'](_0x5c3c6c);this['_isBlockAttribute'](_0xe8471)&&'insertion'==_0x2e4cf1['type']&&0x0!=_0x39af71['length']||(_0x3fba82['delete'](_0x17a7b1),_0x39af71['forEach'](_0x50f81c=>{_0x3fba82['set'](_0x50f81c,_0x289858);}),'insertion'!=_0x2e4cf1['type']&&_0x397e5c!=_0x3c0204&&_0x3fba82['set'](_0x17a7b1['getIntersection'](_0x5c3c6c),_0x397e5c));}const _0x2ba18b=[];for(const [_0x4a0e02,_0x303aac]of _0x3fba82){const _0x32de90=_0x2b97bd(),_0xa3fbcb={'key':_0xe8471,'oldValue':_0x303aac,'newValue':_0x3c0204};_0xe8471['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':_0xe8471});const _0x102b7e=('attribute:'+(_0xe8471+'|'+Jt({'newValue':_0x3c0204})))['substring'](0x0,0x3c),_0x1391c4=this['_setSuggestionData']({'id':_0x32de90,'type':_0x102b7e,'data':_0xa3fbcb,'createdAt':new Date(),'authorId':_0x8a1349,'attributes':_0x3326cc});_0x2ba18b['push'](_0x1391c4),this['_addSuggestionMarker'](_0x102b7e,_0x32de90,_0x8a1349,_0x4a0e02);}return _0x2ba18b;}['enableDefaultAttributesIntegration'](_0x1d1c78){this['enableCommand'](_0x1d1c78,(_0x3d452a,..._0x5ddc7e)=>{this['_recordAttributeChanges'](()=>{_0x3d452a(..._0x5ddc7e);});});}['registerBlockAttribute'](_0xe185f8){this['_blockAttributeKeys']['add'](_0xe185f8);}['registerInlineAttribute'](_0x282b01){this['_inlineAttributeKeys']['add'](_0x282b01);}['_getAttributeKey'](_0x1783a8){return'attribute'==_0x1783a8['type']?_0x1783a8['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x28099b,_0x502c80){const _0x554540=_0x28099b['getFirstMarker']();this['_model']['change'](_0x134594=>{_0x134594['updateMarker'](_0x554540,{'range':_0x502c80});});}['_addThreadToSuggestion'](_0x483e10){const _0x4f2cfb=_0x483e10['id'],_0x598cf0=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4f2cfb)||this['_commentsRepository']['addCommentThread']({'channelId':_0x598cf0,'threadId':_0x4f2cfb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x580016=this['_commentsRepository']['getCommentThread'](_0x4f2cfb);_0x580016['unbind']('isRemovable'),_0x580016['isRemovable']=!0x1,_0x483e10['commentThread']=_0x580016;}['_checkSuggestionCorrectness'](_0x4c78a8,_0x4e7386,_0x2af5c0,_0x4c8046){if(_0x4c78a8['type']!=_0x4e7386||_0x4c78a8['subType']!=_0x2af5c0||_0x4c78a8['creator']['id']!=_0x4c8046)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1b7c5d('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5a8b81,_0x48a09d){const _0x1e0750=_0x5a8b81['getFirstRange']();if(_0x48a09d['isEqual'](_0x1e0750))_0x5a8b81['removeMarkers']();else{if(_0x1e0750['containsRange'](_0x48a09d)){const _0x35e475=this['_model']['createPositionAt'](_0x48a09d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5a8b81,this['_model']['createRange'](_0x1e0750['start'],_0x35e475));const _0x11eb87=_0x2b97bd(),_0x1de177=_0x5a8b81['creator']['id'],_0x566f83=_0x5a8b81['type']+':'+_0x5a8b81['subType'];this['_setSuggestionData']({'id':_0x11eb87,'type':_0x566f83,'createdAt':new Date(),'authorId':_0x1de177,'data':_0x5a8b81['data'],'attributes':_0x5a8b81['attributes']});const _0xb8410a=this['_model']['createPositionAt'](_0x48a09d['end']['parent'],'after'),_0x38062c=this['_model']['createRange'](_0xb8410a,_0x1e0750['end']);this['_addSuggestionMarker'](_0x566f83,_0x11eb87,_0x1de177,_0x38062c);}else{if(_0x1e0750['containsPosition'](_0x48a09d['start'])){const _0x4fec65=this['_model']['createPositionAt'](_0x48a09d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5a8b81,this['_model']['createRange'](_0x1e0750['start'],_0x4fec65));}else{const _0xffbc45=this['_model']['createPositionAt'](_0x48a09d['end']['parent'],'after');this['_setSuggestionRange'](_0x5a8b81,this['_model']['createRange'](_0xffbc45,_0x1e0750['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1f1278){for(const {suggestion:_0x2d6f7e,meta:_0x34b1da}of this['_findSuggestions'](_0x1f1278,'insertion')){if(!_0x34b1da['isOwn'])continue;const _0x3a61c8=_0x2d6f7e['getRanges']();for(const _0x4dbf19 of _0x3a61c8)if(!_0x1f1278['getDifference'](_0x4dbf19)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xd93858){const _0x4e8d3b=this['editor']['plugins']['get']('Users')['getUser'](_0xd93858);if(!_0x4e8d3b)throw new _0x1b7c5d('track-changes-user-not-found',this);return _0x4e8d3b;}['_getExternalAuthor'](_0x3836cf){const _0xeb72dd=this['editor']['plugins']['get']('Users'),_0x5a74d7=_0x5d256d('external:'+_0x3836cf),_0x29f0b9=_0xeb72dd['getUser'](_0x5a74d7);return _0x29f0b9||_0xeb72dd['addUser']({'id':_0x5a74d7,'name':_0x3836cf});}['_createSuggestion'](_0x5169aa,_0x24354f,_0x7d7906,_0x4f1dc9,_0x2082e9){const _0x1f6b48=this['_getAuthorFromId'](_0x4f1dc9),_0x280cad=this['_suggestionFactory']['buildSuggestion'](_0x5169aa,_0x24354f,_0x7d7906,_0x1f6b48,_0x2082e9,_0x53a89a=>{this['_updateSuggestionData'](_0x7d7906,{'attributes':_0x53a89a});const _0xc4aa73=this['getSuggestion'](_0x7d7906);this['_joinWithAdjacentSuggestions'](new Set([_0xc4aa73])),this['_refreshSuggestionsChain'](new Set([_0xc4aa73]));});return this['listenTo'](_0x280cad,'accept',()=>{this['_updateSuggestionData'](_0x7d7906,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x280cad,'discard',()=>{this['_updateSuggestionData'](_0x7d7906,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x7d7906,_0x280cad),this['_suggestionState']['set'](_0x280cad,'notReady'),_0x280cad;}['_splitMarkerName'](_0x1f798f){const _0x396635=_0x1f798f['split'](':');return{'group':_0x396635[0x0],'type':_0x396635[0x1],'subType':_0x396635['length']>=0x5?_0x396635[0x2]:null,'id':_0x396635['length']<0x5?_0x396635[0x2]:_0x396635[0x3],'authorId':_0x396635['length']<0x5?_0x396635[0x3]:_0x396635[0x4],'markerCount':0x6==_0x396635['length']?_0x396635[0x5]:null};}['_breakSuggestionMarker'](_0x3a0fc8,_0x3d020d,_0x2fc9c2){const _0x5525bf=_0x3a0fc8['getFirstRange'](),_0x525931=_0x5525bf['start'],_0x21c762=_0x5525bf['end'];this['_setSuggestionRange'](_0x3a0fc8,this['_model']['createRange'](_0x525931,_0x3d020d));const _0x59243a=_0x2b97bd(),_0x22c33f=_0x3a0fc8['creator']['id'],_0x16e550=_0x3a0fc8['type']+(_0x3a0fc8['subType']?':'+_0x3a0fc8['subType']:'');this['_setSuggestionData']({'id':_0x59243a,'type':_0x16e550,'createdAt':new Date(),'authorId':_0x22c33f,'originalSuggestionId':_0x3a0fc8['id'],'attributes':_0x3a0fc8['attributes'],'data':_0x3a0fc8['data']});const _0x111e67=this['_getAttributeKey'](_0x3a0fc8);('formatBlock'==_0x3a0fc8['type']||_0x111e67&&this['_isBlockAttribute'](_0x111e67))&&(_0x2fc9c2=this['_model']['createPositionBefore'](_0x2fc9c2['parent'])),this['_addSuggestionMarker'](_0x16e550,_0x59243a,_0x22c33f,this['_model']['createRange'](_0x2fc9c2,_0x21c762));}['_findSuggestions'](_0x3efba2,_0x4a4c80=null){const _0x300ca7=[],_0x212049=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3efba2)||(_0x3efba2=[_0x3efba2]);for(const _0x25b366 of this['getSuggestions']()){if(!_0x25b366['isInContent'])continue;if(_0x4a4c80&&_0x25b366['type']!=_0x4a4c80)continue;let _0x304499=!0x1;for(const _0x4a0eb3 of _0x25b366['getRanges']()){for(const _0x5a46b9 of _0x3efba2){const _0x1b3836=_0x5a46b9['start']['isEqual'](_0x4a0eb3['end'])||_0x5a46b9['end']['isEqual'](_0x4a0eb3['start']);if(_0x1b3836||_0x5a46b9['getIntersection'](_0x4a0eb3)){const _0x386099=_0x5a46b9['containsRange'](_0x4a0eb3)&&Gt(this['_model']['schema'],_0x4a0eb3['start'],_0x5a46b9),_0x2ebb86=_0x4a0eb3['containsRange'](_0x5a46b9)&&Gt(this['_model']['schema'],_0x5a46b9['start'],_0x4a0eb3);_0x300ca7['push']({'suggestion':_0x25b366,'meta':{'isOwn':_0x212049==_0x25b366['author'],'isNextTo':_0x1b3836,'isInsideObject':_0x386099,'containsRangeInObject':_0x2ebb86}}),_0x304499=!0x0;break;}}if(_0x304499)break;}}return _0x300ca7;}['_addSuggestionMarker'](_0x4cdc55,_0x44b8dd,_0x11ce5b,_0x3307ed,_0x503eb7){this['_model']['change'](_0xe31d10=>{let _0x365a31='suggestion:'+_0x4cdc55+':'+_0x44b8dd+':'+_0x11ce5b;_0x503eb7&&(_0x365a31=_0x365a31+':'+_0x503eb7),_0xe31d10['addMarker'](_0x365a31,{'range':_0x3307ed,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1354ea){const _0x2182ea=_0x1354ea['previous'],_0x46369d=_0x1354ea['next'];_0x1354ea['previous']=null,_0x1354ea['next']=null,null!=_0x2182ea&&_0x2182ea['next']==_0x1354ea&&(_0x2182ea['next']=_0x46369d),null!=_0x46369d&&_0x46369d['previous']==_0x1354ea&&(_0x46369d['previous']=_0x2182ea),'ready'==this['_suggestionState']['get'](_0x1354ea)&&(this['_suggestionState']['set'](_0x1354ea,'removed'),this['fire']('suggestionUnloaded',_0x1354ea,_0x2182ea,_0x46369d));}['_setSuggestionData'](_0x2a8be7){const _0x57dd33=_0x2a8be7['id'],_0x3e01b7=this['addSuggestionData'](_0x2a8be7);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4a6bae=this['editor']['plugins']['get']('PendingActions'),_0x206c7f=_0x3e01b7['hasComments'],_0x3f2325=_0x3e01b7['subType']?_0x3e01b7['type']+':'+_0x3e01b7['subType']:_0x3e01b7['type'],_0x51313e=this['editor']['locale'],_0x530839=_0x4a6bae['add'](o(_0x51313e,'PENDING_ACTION_SUGGESTION')),_0xec23f8={'id':_0x57dd33,'type':_0x3f2325,'hasComments':_0x206c7f,'data':_0x2a8be7['data']||null,'originalSuggestionId':_0x2a8be7['originalSuggestionId']||null,'attributes':_0x3e01b7['attributes']};this['_adapter']['addSuggestion'](_0xec23f8)['then'](_0x1bd938=>{_0x3e01b7['_saved']=!0x0,_0x4a6bae['remove'](_0x530839),_0x1bd938&&_0x1bd938['createdAt']&&(this['_suggestions']['get'](_0x57dd33)['createdAt']=_0x1bd938['createdAt']);})['catch'](_0x142f79=>{throw _0x3121bc('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3e01b7['discard']();}),_0x3e01b7['stopListening'](),this['_suggestions']['delete'](_0x3e01b7['id']),this['_suggestionState']['delete'](_0x3e01b7),_0x142f79;});}return _0x3e01b7;}['_isBlockAttribute'](_0x134826){return this['_blockAttributeKeys']['has'](_0x134826);}['_updateSuggestionData'](_0x4d4cc3,_0x7c417f){const _0x463ae2=this['editor']['plugins']['get']('PendingActions'),_0x2de621=this['getSuggestion'](_0x4d4cc3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2de621['_saved']){const _0xaf157=_0x463ae2['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4d4cc3,_0x7c417f)['then'](()=>{_0x463ae2['remove'](_0xaf157);});}else _0x2de621['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4d4cc3,_0x7c417f);});}}['_getSuggestionData'](_0x33ac8e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1b7c5d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x33ac8e);}['_handleNewSuggestionMarker'](_0x2e6580){const {id:_0x59e543,type:_0x1302d4,subType:_0xbb085c,authorId:_0x771e8}=this['_splitMarkerName'](_0x2e6580),_0x4b0cb4=this['_suggestions']['get'](_0x59e543)||this['_createSuggestion'](_0x1302d4,_0xbb085c,_0x59e543,_0x771e8,{});switch(this['_checkSuggestionCorrectness'](_0x4b0cb4,_0x1302d4,_0xbb085c,_0x771e8),this['_suggestionState']['get'](_0x4b0cb4)){case'notReady':this['_getSuggestionData'](_0x59e543)['then'](_0x58ded1=>{let _0x545370=Promise['resolve']();_0x58ded1['hasComments']&&(_0x545370=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x59e543})),_0x545370['then'](()=>{this['addSuggestionData'](_0x58ded1)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4b0cb4,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x59e543,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4b0cb4,'ready'),this['fire']('suggestionLoaded',_0x4b0cb4);break;case'ready':this['fire']('suggestionChanged',_0x4b0cb4);}return _0x4b0cb4['addMarkerName'](_0x2e6580),_0x4b0cb4;}['_refreshSuggestionsChain'](_0x21ad75){const _0x50676d=Array['from'](_0x21ad75),_0xcbd2a9=_0x50676d['filter'](_0x146e1d=>'attribute'==_0x146e1d['type']);this['_refreshAttributeSuggestionsChain'](_0xcbd2a9);const _0x27e769=_0x50676d['filter'](_0x47d0cc=>!_0x47d0cc['isMultiRange']&&'attribute'!=_0x47d0cc['type']),_0x1306d9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d20d8=>!_0x2d20d8['isMultiRange']&&'attribute'!=_0x2d20d8['type']),_0x45a438=_0x1306d9['filter'](_0x4a70c7=>!_0x21ad75['has'](_0x4a70c7)),_0x116da2=new Map(_0x1306d9['map'](_0x54720e=>[_0x54720e,this['_suggestionFactory']['getSuggestionCallback'](_0x54720e['type'],_0x54720e['subType'],'chain')])),_0x16438b=new Map(_0x1306d9['map'](_0x39937a=>[_0x39937a,_0x39937a['getFirstRange']()])),_0x10ea51=new Set(),_0x1f8cf6=new Set();for(let _0x53fe84=0x0;_0x53fe84<_0x27e769['length'];_0x53fe84++)_0x3ead71(_0x27e769[_0x53fe84],_0x27e769,_0x53fe84+0x1);for(let _0x55e63d=0x0;_0x55e63d<_0x27e769['length'];_0x55e63d++)_0x3ead71(_0x27e769[_0x55e63d],_0x45a438,0x0);const _0x334c70=new Set();for(let _0x23207b=0x0;_0x23207b<_0x27e769['length'];_0x23207b++){const _0x49dfec=_0x27e769[_0x23207b];!_0x1f8cf6['has'](_0x49dfec)&&_0x49dfec['previous']&&(_0x334c70['add'](_0x49dfec['previous']),_0x49dfec['previous']['next']===_0x49dfec&&(_0x49dfec['previous']['next']=null),_0x49dfec['previous']=null),!_0x10ea51['has'](_0x49dfec)&&_0x49dfec['next']&&(_0x334c70['add'](_0x49dfec['next']),_0x49dfec['next']['previous']===_0x49dfec&&(_0x49dfec['next']['previous']=null),_0x49dfec['next']=null);}function _0x3ead71(_0x55a2a8,_0x947199,_0xb641b8){for(let _0xac146a=_0xb641b8;_0xac146a<_0x947199['length'];_0xac146a++){const _0x2a874f=_0x553ea6(_0x55a2a8,_0x947199[_0xac146a]);_0x2a874f&&(_0x2a874f[0x0]['next']=_0x2a874f[0x1],_0x2a874f[0x1]['previous']=_0x2a874f[0x0],_0x10ea51['add'](_0x2a874f[0x0]),_0x1f8cf6['add'](_0x2a874f[0x1]));}}function _0x553ea6(_0x192bdd,_0x4bc596){if(_0x192bdd['author']['id']!==_0x4bc596['author']['id'])return null;const _0x2209f0=_0x116da2['get'](_0x192bdd)(_0x192bdd,_0x4bc596,_0x16438b['get'](_0x192bdd),_0x16438b['get'](_0x4bc596));if(!_0x2209f0)return null;return _0x116da2['get'](_0x4bc596)(_0x192bdd,_0x4bc596,_0x16438b['get'](_0x192bdd),_0x16438b['get'](_0x4bc596))?_0x2209f0[0x1]['commentThread']&&_0x2209f0[0x1]['commentThread']['length']?null:_0x2209f0:null;}_0x334c70['size']&&this['_refreshSuggestionsChain'](_0x334c70);}['_refreshAttributeSuggestionsChain'](_0x4fbfb3){if(0x0==_0x4fbfb3['length'])return;const _0x5b1400=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a39aa=>'attribute'==_0x2a39aa['type']&&_0x2a39aa['_isDataLoaded']),_0x5e2b2d=[],_0x1c94c0=new Map();for(const _0x4a7c0b of _0x5b1400){const _0x5a9a18=_0x5d256d(_0x4a7c0b['attributes']);_0x1c94c0['has'](_0x5a9a18)||(_0x1c94c0['set'](_0x5a9a18,_0x5e2b2d['length']),_0x5e2b2d['push']([]));const _0xab7c89=_0x1c94c0['get'](_0x5a9a18);_0x5e2b2d[_0xab7c89]['push'](_0x4a7c0b);}!(function(){_0x5e2b2d['sort']((_0x2f5fe4,_0x472967)=>{const _0x4fe121=_0x2f5fe4[0x0]['createdAt'],_0x3df54a=_0x472967[0x0]['createdAt'];return _0x4fe121==_0x3df54a?_0x2f5fe4[0x0]['attributes']['groupId']<_0x472967[0x0]['attributes']['groupId']?-0x1:0x1:_0x4fe121<_0x3df54a?-0x1:0x1;});for(const _0x39c7d5 of _0x5e2b2d)_0x39c7d5['sort']((_0x83d089,_0x3ab5b2)=>_0x83d089['id']<_0x3ab5b2['id']?-0x1:0x1);}());for(let _0xb02de8=0x0;_0xb02de8<_0x5e2b2d['length'];_0xb02de8++){if(0x0==_0x5e2b2d[_0xb02de8]['length'])continue;const _0x25483e=[];for(let _0x3a04cc=_0xb02de8+0x1;_0x3a04cc<_0x5e2b2d['length'];_0x3a04cc++)0x0!=_0x5e2b2d[_0x3a04cc]['length']&&_0x426a7b(_0x5e2b2d[_0xb02de8],_0x5e2b2d[_0x3a04cc])&&_0x25483e['push'](_0x3a04cc);for(const _0x37faac of _0x25483e)_0x5e2b2d[_0xb02de8]=_0x5e2b2d[_0xb02de8]['concat'](_0x5e2b2d[_0x37faac]),_0x5e2b2d[_0x37faac]=[];}for(const _0x2057e9 of _0x5e2b2d)for(let _0x1c3472=0x0;_0x1c3472<_0x2057e9['length'];_0x1c3472++){const _0xf97725=_0x2057e9[_0x1c3472+0x1]||null;_0x2057e9[_0x1c3472]['next']!==_0xf97725&&(_0x2057e9[_0x1c3472]['next']=_0xf97725);}for(const _0x1cebd5 of _0x5e2b2d)for(let _0x145250=0x0;_0x145250<_0x1cebd5['length'];_0x145250++){const _0x95f0ec=_0x1cebd5[_0x145250-0x1]||null;_0x1cebd5[_0x145250]['previous']!==_0x95f0ec&&(_0x1cebd5[_0x145250]['previous']=_0x95f0ec);}function _0x426a7b(_0x210fa4,_0x22302b){if(_0x210fa4[0x0]['attributes']['groupId']!==_0x22302b[0x0]['attributes']['groupId']&&_0x210fa4[0x0]['author']!==_0x22302b[0x0]['author'])return!0x1;if(!function(_0x2f10c2,_0x5ac58a){if(!_0x2f10c2['hasComments']&&!_0x5ac58a['hasComments'])return!0x0;if(_0x2f10c2['hasComments']&&_0x5ac58a['hasComments'])return!0x1;if(_0x2f10c2['hasComments']&&_0x5ac58a['createdAt']<_0x2f10c2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5ac58a['hasComments']&&_0x2f10c2['createdAt']<_0x5ac58a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x210fa4[0x0],_0x22302b[0x0]))return!0x1;const _0x58f16f=Vt(_0x210fa4[0x0]['attributes'],'groupId'),_0x378534=Vt(_0x22302b[0x0]['attributes'],'groupId');if(!_0x2deacb(_0x58f16f,_0x378534))return!0x1;return!!_0x210fa4['every'](_0xfd92e0=>_0x22302b['some'](_0x3efc9c=>_0xfd92e0['getFirstRange']()['isEqual'](_0x3efc9c['getFirstRange']())))&&_0x22302b['every'](_0x32882e=>_0x210fa4['some'](_0x240d5a=>_0x32882e['getFirstRange']()['isEqual'](_0x240d5a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x499da3){const _0x5d7003=Array['from'](_0x499da3),_0x409c57=this['getSuggestions']({'skipNotAttached':!0x0}),_0x17e58c=_0x409c57['filter'](_0x3714a8=>!_0x499da3['has'](_0x3714a8)),_0x983bba=new Map(_0x5d7003['map'](_0x2befe5=>[_0x2befe5,this['_suggestionFactory']['getSuggestionCallback'](_0x2befe5['type'],_0x2befe5['subType'],'join')])),_0x5df130=new Map(_0x409c57['map'](_0x3c266b=>[_0x3c266b,_0x3c266b['getRanges']()]));for(let _0x391838=0x0;_0x391838<_0x5d7003['length'];_0x391838++){if(_0xfcb836(this,_0x5d7003[_0x391838],_0x5d7003,_0x391838+0x1))return!0x0;}for(let _0x459101=0x0;_0x459101<_0x5d7003['length'];_0x459101++){if(_0xfcb836(this,_0x5d7003[_0x459101],_0x17e58c,0x0))return!0x0;}return!0x1;function _0xfcb836(_0x39e9b8,_0xf19200,_0x535501,_0x4bc108){for(let _0x2bdb06=_0x4bc108;_0x2bdb06<_0x535501['length'];_0x2bdb06++){const _0xe149c1=_0x535501[_0x2bdb06];if(_0xe149c1['type']!==_0xf19200['type']||_0xe149c1['author']['id']!==_0xf19200['author']['id']||_0xe149c1['subType']!==_0xf19200['subType'])continue;if(!Wt(_0xf19200,_0xe149c1))continue;if('attribute'==_0xf19200['type']&&_0xf19200['data']['oldValue']!=_0xe149c1['data']['oldValue'])continue;if('attribute'==_0xf19200['type']&&_0x39e9b8['_isBlockAttribute'](_0xf19200['data']['key']))continue;if('formatBlock'==_0xf19200['type']){const _0x3db307=_0x39e9b8['editor']['model'],_0x12d395=_0xf19200['getContainedElement']();if(_0x12d395&&(_0x3db307['schema']['isObject'](_0x12d395)||_0x3db307['schema']['isLimit'](_0x12d395)))continue;}const _0x4969b7=_0x983bba['get'](_0xf19200),_0x588370=_0x5df130['get'](_0xf19200),_0x389b43=_0x5df130['get'](_0xe149c1),_0x42cdb0=_0xf19200['commentThread']&&_0xf19200['commentThread']['length'],_0x3823da=_0xe149c1['commentThread']&&_0xe149c1['commentThread']['length'];if(!_0x42cdb0&&_0x4969b7(_0x389b43,_0x588370))return _0x39e9b8['_joinSuggestions'](_0xe149c1,_0xf19200),_0x5df130['delete'](_0xf19200),!0x0;if(!_0x3823da&&_0x4969b7(_0x588370,_0x389b43))return _0x39e9b8['_joinSuggestions'](_0xf19200,_0xe149c1),_0x5df130['delete'](_0xe149c1),!0x0;}return!0x1;}}['_joinSuggestions'](_0x319c15,_0x379009){if(_0x319c15['isMultiRange']){for(const _0x15a70c of _0x379009['getRanges']())_0x319c15['addRange'](_0x15a70c);}else{const _0x1868aa=_0x379009['getFirstRange']()['end'];this['_setSuggestionRange'](_0x319c15,this['_model']['createRange'](_0x319c15['getFirstRange']()['start'],_0x1868aa));}_0x379009['removeMarkers']();}['_getMarkerAnnouncementText'](_0x251137,_0x2d43f8,_0x211a32){const _0x3832e9=_0x251137['startsWith']('format')||_0x251137['startsWith']('attribute')?'FORMATTING':_0x251137['toUpperCase']();return o(this['editor']['locale'],_0x2d43f8+'_'+_0x3832e9+'_SUGGESTION_ANNOUNCEMENT',_0x211a32);}['_initAriaMarkerChangeAnnouncements'](){const _0x1ff686=this['editor'];if(!_0x1ff686['ui'])return;const {ariaLiveAnnouncer:_0x3cef71}=_0x1ff686['ui'];_0x1019f3(this['_model'],({left:_0x4f69a4,entered:_0x4c9564})=>{for(const _0x2e4a76 of _0x4f69a4){const {group:_0x2f8254,type:_0x3dcd0d}=this['_splitMarkerName'](_0x2e4a76['name']);if('suggestion'===_0x2f8254){_0x3cef71['announce'](this['_getMarkerAnnouncementText'](_0x3dcd0d,'LEAVE'));break;}}for(const _0x5a9b24 of _0x4c9564){const {group:_0x1c4a6d,type:_0x5434d6}=this['_splitMarkerName'](_0x5a9b24['name']);if('suggestion'===_0x1c4a6d){_0x3cef71['announce'](this['_getMarkerAnnouncementText'](_0x5434d6,'ENTER',_0x5e6a96(_0x2629c9)));break;}}});}['_processAttributeChanges'](_0x40fba8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2bce03=this['editor'],_0x5239ae=_0x2bce03['model']['document']['differ']['getChanges']();if(0x0==_0x5239ae['length'])return!0x1;const _0x588f84=[],_0x513d8e=_0x5239ae['filter'](_0x206cf8=>'attribute'==_0x206cf8['type']),_0x101760=_0x5239ae['filter'](_0x182411=>'insert'==_0x182411['type']&&'$text'!=_0x182411['name']),_0x396326=_0x5239ae['filter'](_0x543422=>'remove'==_0x543422['type']&&'$text'!=_0x543422['name']);for(const _0x22a56c of _0x513d8e)_0x588f84['push']({'key':_0x22a56c['attributeKey'],'newValue':_0x22a56c['attributeNewValue'],'oldValue':_0x22a56c['attributeOldValue'],'range':qt(_0x22a56c['range'],_0x2bce03['model'])});for(const _0x2e2bfe of _0x101760){const _0x154d2e=_0x396326['find'](_0x4cd47d=>_0x4cd47d['position']['isEqual'](_0x2e2bfe['position']));_0x154d2e&&_0x588f84['push']({'key':m,'newValue':_0x2e2bfe['name'],'oldValue':_0x154d2e['name'],'range':_0x2bce03['model']['createRangeOn'](_0x2e2bfe['position']['nodeAfter'])});}return 0x0!=_0x588f84['length']&&this['_reduceExistingSuggestions'](_0x40fba8,_0x588f84);}['_processAttributeSuggestions'](_0x1cf9bc){let _0x49c1ee=!0x1;const _0x2ec8dd=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1d8cc2=>_0x1d8cc2['data']['newRange']&&_0x1d8cc2['name']['startsWith']('suggestion:attribute:'));for(const _0x24aa44 of _0x2ec8dd){const {subType:_0x2053a4,id:_0x375705}=this['_splitMarkerName'](_0x24aa44['name']),_0x5c9540=_0x2053a4['split']('|')[0x0];for(const _0x1ab30c of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1ab30c['id']!=_0x375705&&'attribute'==_0x1ab30c['type']&&_0x1ab30c['data']&&_0x1ab30c['data']['key']==_0x5c9540&&_0x1ab30c['getFirstRange']()['isIntersecting'](_0x24aa44['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1ab30c,_0x24aa44['data']['newRange'],_0x1cf9bc),_0x49c1ee=!0x0);}return _0x49c1ee;}['_recordAttributeChanges'](_0x172bd7){this['_recordAttributeSuggestions']=!0x0,_0x172bd7();}['_isRegisteredAttribute'](_0x46bcb5){const _0x37fe24=this['_isBlockAttribute'](_0x46bcb5),_0x4fa42a=this['_inlineAttributeKeys']['has'](_0x46bcb5);return _0x37fe24||_0x4fa42a;}['_reduceExistingSuggestions'](_0x3f3e9f,_0x12905b){if(0x0==_0x12905b['length'])return!0x1;let _0x244898=!0x1;for(const _0x124fcd of _0x12905b){const _0x58ef06=this['_findSuggestions'](_0x124fcd['range'],'attribute')['filter'](_0x33fc1c=>!_0x33fc1c['meta']['isNextTo'])['map'](_0x524405=>_0x524405['suggestion']),_0x685aa6=_0x5d256d({'newValue':_0x124fcd['newValue']});_0x58ef06['filter'](_0x249c66=>{const [_0x18f2d7,_0x2e1fd9]=_0x249c66['subType']['split']('|');return _0x18f2d7==_0x124fcd['key']&&_0x2e1fd9!=_0x685aa6;})['forEach'](_0x48ffaf=>{this['_reduceSuggestionAttributeRange'](_0x48ffaf,_0x124fcd['range'],_0x3f3e9f),_0x244898=!0x0;});}return _0x244898;}['_reduceSuggestionAttributeRange'](_0x230129,_0x5e4e75,_0x5cd2b0){const _0x3263ed=_0x230129['getFirstRange']()['getDifference'](_0x5e4e75);0x0!==_0x3263ed['length']?0x1!==_0x3263ed['length']?this['_breakSuggestionMarker'](_0x230129,_0x5e4e75['start'],_0x5e4e75['end']):this['_setSuggestionRange'](_0x230129,_0x3263ed[0x0]):_0x5cd2b0['removeMarker'](_0x230129['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xc53891){this['_editor']=_0xc53891,this['_model']=_0xc53891['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3acc2a,_0x41b96f,_0x42de7d,_0x28b847,_0x4aa51b,_0x568a3d){return new u(this['_model'],{'type':_0x3acc2a,'subType':_0x41b96f,'id':_0x42de7d,'author':_0x28b847,'creator':_0x28b847,'attributes':_0x4aa51b,'onAttributesChange':_0x568a3d,'onAccept':(..._0x497c43)=>this['getSuggestionCallback'](_0x3acc2a,_0x41b96f,'accept')(..._0x497c43),'onDiscard':(..._0x4c4a6e)=>this['getSuggestionCallback'](_0x3acc2a,_0x41b96f,'discard')(..._0x4c4a6e)});}['registerCustomCallback'](_0x38ee18,_0x3ad8a2,_0x581a1d,_0x20db3b){const _0x4606e2=_0x38ee18+':'+_0x3ad8a2+':'+_0x581a1d;this['_customCallbacks']['set'](_0x4606e2,_0x20db3b);}['getSuggestionCallback'](_0x45ae01,_0x200815,_0x3f5c31){const _0x179f0b=_0x45ae01+':'+_0x200815+':'+_0x3f5c31;return this['_customCallbacks']['get'](_0x179f0b)||this['_defaultCallbacks']['get'](_0x45ae01+':'+_0x3f5c31);}['_registerDefaultCallbacks'](){const _0x458458=()=>!0x1,_0x534cf4=_0x16ee60=>{_0x16ee60['sort']((_0x5e81c0,_0x1e8220)=>_0x5e81c0['start']['isBefore'](_0x1e8220['start'])?0x1:-0x1),this['_model']['change'](_0xd8017c=>{for(const _0x4b3b1d of _0x16ee60){let _0x512772;_0x512772=_0x4b3b1d['end']['isAtEnd']&&_0x4b3b1d['end']['parent']==_0x4b3b1d['start']['nodeAfter']?_0xd8017c['createSelection'](_0x4b3b1d['start']['nodeAfter'],'on'):_0xd8017c['createSelection'](_0x4b3b1d),this['_model']['deleteContent'](_0x512772,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xe9f99e=(_0x133bbe,_0x1a5601)=>{_0x1a5601&&this['_model']['change'](_0x35fc57=>{const {commandName:_0x3c44ed,commandParams:_0x4dd395=[]}=_0x1a5601,_0x3f6793=_0x133bbe['map'](_0x5a0fe3=>(Ft(_0x5a0fe3)&&(_0x5a0fe3=this['_model']['createRange'](_0x5a0fe3['end'])),_0x5a0fe3))['filter'](_0x223fb2=>'$graveyard'!==_0x223fb2['root']['rootName']);if(_0x3f6793['length']<0x1)return;const _0x2c67d5=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5ad5ea=>_0x512f92['fromRange'](_0x5ad5ea));_0x35fc57['setSelection'](_0x3f6793);for(const _0x3284a0 of this['_editor']['commands']['commands']())_0x3284a0['refresh']();_0x4dd395['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3c44ed,..._0x4dd395);const _0x5ae22b=_0x2c67d5['filter'](_0x50a251=>'$graveyard'!=_0x50a251['root']['rootName']);_0x5ae22b['length']>0x0&&_0x35fc57['setSelection'](_0x5ae22b);for(const _0x1b2980 of _0x2c67d5)_0x1b2980['detach']();});},_0x7f39cd=(_0x19385f,_0x22e7d9)=>0x1==_0x19385f['length']&&0x1==_0x22e7d9['length']&&_0x19385f[0x0]['end']['isEqual'](_0x22e7d9[0x0]['start']),_0x281ebe=(_0x4e05df,_0x139f90,_0x347c65,_0x423954)=>Kt(_0x4e05df,_0x139f90,_0x347c65,_0x423954)?[_0x4e05df,_0x139f90]:Kt(_0x139f90,_0x4e05df,_0x423954,_0x347c65)?[_0x139f90,_0x4e05df]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x458458),this['_defaultCallbacks']['set']('insertion:discard',_0x534cf4),this['_defaultCallbacks']['set']('insertion:join',_0x7f39cd),this['_defaultCallbacks']['set']('insertion:chain',_0x281ebe),this['_defaultCallbacks']['set']('deletion:accept',_0x534cf4),this['_defaultCallbacks']['set']('deletion:discard',_0x458458),this['_defaultCallbacks']['set']('deletion:join',_0x7f39cd),this['_defaultCallbacks']['set']('deletion:chain',_0x281ebe),this['_defaultCallbacks']['set']('formatInline:accept',_0xe9f99e),this['_defaultCallbacks']['set']('formatInline:discard',_0x458458),this['_defaultCallbacks']['set']('formatInline:join',_0x7f39cd),this['_defaultCallbacks']['set']('formatInline:chain',_0x458458),this['_defaultCallbacks']['set']('formatBlock:accept',_0xe9f99e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x458458),this['_defaultCallbacks']['set']('formatBlock:join',_0x7f39cd),this['_defaultCallbacks']['set']('formatBlock:chain',_0x458458),this['_defaultCallbacks']['set']('attribute:accept',_0x458458),this['_defaultCallbacks']['set']('attribute:discard',(_0x2bc219,_0x335b51)=>{if(!_0x335b51)return;const _0x1db615=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x224cde=>{if(_0x335b51['key']==m)for(const _0x136567 of _0x2bc219){const _0x3af51a=_0x136567['start']['nodeAfter'],_0x3b7ff8=_0x335b51['oldValue'];_0x224cde['rename'](_0x3af51a,_0x3b7ff8);}else{if(_0x1db615['_isBlockAttribute'](_0x335b51['key'])){for(const _0x507f90 of _0x2bc219)void 0x0!==_0x335b51['oldValue']?_0x224cde['setAttribute'](_0x335b51['key'],_0x335b51['oldValue'],_0x507f90['start']['nodeAfter']):_0x224cde['removeAttribute'](_0x335b51['key'],_0x507f90['start']['nodeAfter']);}else{for(const _0x545129 of _0x2bc219)_0x335b51['oldValue']?_0x224cde['setAttribute'](_0x335b51['key'],_0x335b51['oldValue'],_0x545129):_0x224cde['removeAttribute'](_0x335b51['key'],_0x545129);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x7f39cd);}}function Gt(_0x3b1770,_0x292670,_0x466eea){for(const _0x581a28 of _0x292670['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x581a28['root']==_0x581a28)return!0x1;if(!_0x466eea['containsItem'](_0x581a28))return!0x1;if(_0x3b1770['isObject'](_0x581a28)||_0x3b1770['isLimit'](_0x581a28))return!0x0;}return!0x1;}function Ft(_0x11f23f){return _0x11f23f['end']['parent']==_0x11f23f['start']['nodeAfter']&&_0x11f23f['end']['isAtStart'];}function Lt(_0x1deda4,_0x1c8b53,_0x479b76,_0x1fe6b3){const _0x44c605=_0x14f935=>!_0x14f935['item']['is']('$textProxy')&&!_0x1fe6b3['isObject'](_0x14f935['item']),_0x32b4fa=_0x1deda4['start']['getLastMatchingPosition'](_0x44c605),_0x324efc=_0x1deda4['end']['getLastMatchingPosition'](_0x44c605,{'direction':'backward'});return(!_0x1deda4['start']['isEqual'](_0x32b4fa)||!_0x1deda4['end']['isEqual'](_0x324efc))&&(_0x32b4fa['isBefore'](_0x324efc)?_0x479b76['updateMarker'](_0x1c8b53,{'range':_0x479b76['createRange'](_0x32b4fa,_0x324efc)}):_0x479b76['removeMarker'](_0x1c8b53),!0x0);}function Jt(_0x1d405d){return _0x5d256d(_0x1d405d);}function Ht(_0xb05409){const _0xe42708=_0xb05409['start']['nodeAfter'];return _0xe42708&&_0xe42708['is']('element');}function qt(_0x1e3cf5,_0x331e7c){return null==_0x1e3cf5['end']['nodeBefore']&&_0x1e3cf5['end']['parent']==_0x1e3cf5['start']['nodeAfter']?zt(_0x1e3cf5['start']['nodeAfter'],_0x331e7c):_0x1e3cf5;}function zt(_0x5bbb87,_0x47e36d){const _0x46dcd2=_0x47e36d['schema']['isObject'](_0x5bbb87)||_0x47e36d['schema']['isSelectable'](_0x5bbb87);return _0x47e36d['createRange'](_0x47e36d['createPositionAt'](_0x5bbb87,'before'),_0x46dcd2?_0x47e36d['createPositionAfter'](_0x5bbb87):_0x47e36d['createPositionAt'](_0x5bbb87,'end'));}function Kt(_0x146dbc,_0x46a977,_0x3347ef,_0x245928){return!!Wt(_0x146dbc,_0x46a977)&&_0x3347ef['end']['isEqual'](_0x245928['start']);}function Wt(_0x1750a8,_0x3b39d2){if(!_0x1750a8['_isDataLoaded']||!_0x3b39d2['_isDataLoaded'])return!0x1;const _0x41374e=new Set(Object['keys'](_0x1750a8['attributes'])),_0x540e04=new Set(Object['keys'](_0x3b39d2['attributes']));if(_0x41374e['delete']('groupId'),_0x540e04['delete']('groupId'),0x0==_0x41374e['size']&&0x0==_0x540e04['size'])return!0x0;if(_0x41374e['size']!=_0x540e04['size'])return!0x1;const _0x34674a={..._0x1750a8['attributes']},_0x33dc96={..._0x3b39d2['attributes']};return delete _0x34674a['groupId'],delete _0x33dc96['groupId'],JSON['stringify'](_0x34674a)==JSON['stringify'](_0x33dc96);}function Qt(_0xf862b,_0x353c17){const _0xb75b43=Xt(_0xf862b['attributes']),_0x478fd6=Xt(_0x353c17);if(!_0xf862b['_isDataLoaded'])return!0x1;for(const _0x5f18e0 of Object['keys'](_0x478fd6))if(!_0x2deacb(_0xb75b43[_0x5f18e0],_0x478fd6[_0x5f18e0]))return!0x1;return!0x0;}function Xt(_0x3c843a){const _0x2e58eb=Object['assign']({},_0x3c843a);return delete _0x2e58eb['skipNestingCheck'],delete _0x2e58eb['tablePasteChainId'],_0x2e58eb;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x46282c(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5cee19,_0x2acd6d,_0x45900f,_0x4466c6){super(),this['model']=_0x2acd6d,this['view']=_0x45900f,this['commentThreadController']=_0x4466c6,this['_editor']=_0x5cee19,this['_acceptCommand']=_0x5cee19['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5cee19['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3f765f,_0x46fce9)=>_0x3f765f||_0x46fce9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x14d37c=>_0x14d37c&&this['_editor']['model']['canEditAt'](_0x2acd6d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x596a28=>_0x596a28&&this['_editor']['model']['canEditAt'](_0x2acd6d['getRanges']())),this['_pendingAction']=null,_0x45900f['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x45900f,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x45900f,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x45900f,'change:isDirty',()=>{_0x45900f['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 _0x4bc71e=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4bc71e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x2e3b46{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xaa02f1,_0xecec89,_0x39fb39,_0x461926){super(_0xaa02f1),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1a4149(_0xaa02f1,o(_0xaa02f1,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xecec89['authoredAt']),this['bind']('authoredAt')['to'](_0xecec89),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',_0xecec89,'authoredAt',this,'descriptionParts',(_0x4d350e,_0x3697e2,_0xf1433c)=>{const _0x3a8bba=_0xf1433c['map'](_0x37014c=>cs(_0x37014c['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4d350e-0x1,_0xecec89['author']['name'],_0x3697e2?_0x461926['formatDateTime'](_0x3697e2):'',new DOMParser()['parseFromString'](_0x3a8bba,'text/html')['body']['textContent']]);}),this['focusables']=new _0x27fc65(),this['focusTracker']=new _0x46d38e(),this['keystrokes']=new _0xae9dc2(),this['focusCycler']=new _0x34bb61({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1273b2=>_0x1273b2['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xecec89,this['_localUser']=_0x39fb39,this['_config']=_0x461926,_0x461926['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xe50e28(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x685953}=this['_config'];this['commentsListView']=new _0x685953(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',_0x35adc0=>_0x35adc0+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x46087e,_0x239b7d)=>_0x46087e||!!_0x239b7d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2ac3a7}=this['_config'],_0x315e87=new _0x2ac3a7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1665e5=_0x315e87['commentInputView'];return _0x315e87['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1665e5,'value',(_0x2bb174,_0x2d516d,_0x336cfb)=>!!_0x336cfb||_0x2bb174&&!_0x2d516d),_0x1665e5['on']('submit',(_0xe926cb,_0x2f26c1)=>{this['fire']('addComment',_0x2f26c1),_0x1665e5['editor']['setData']('');}),_0x1665e5['on']('cancel',()=>this['focus']()),_0x1665e5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x315e87;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x39b48c,_0x5a9b4f,_0x15a93f,_0x3a0729){super(_0x39b48c,_0x5a9b4f,_0x15a93f,_0x3a0729),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5ca88a=>_0x5ca88a&&_0x5ca88a[0x0]?_0x5ca88a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x856a3b,_0x1376a0)=>{let _0x187a17='';for(const _0x1915ee of _0x856a3b)_0x187a17+='<p>'+cs(_0x1915ee['content'],_0x1915ee['color'])+'</p>';return _0x1376a0?_0x187a17:_0x42d3cb(_0x187a17,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3a0729['SuggestionView'](_0x39b48c,_0x5a9b4f,{'formatDateTime':_0x3a0729['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4bf5c5=this['bindTemplate'],_0x43eec5=[this['suggestionView']];return this['commentsListView']&&_0x43eec5['push'](this['commentsListView']),this['commentThreadInputView']&&_0x43eec5['push'](this['commentThreadInputView']),_0x43eec5['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4bf5c5['if']('isActive','ck-suggestion-wrapper--active'),_0x4bf5c5['to']('type',_0x375ccd=>'ck-suggestion-'+_0x375ccd),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':_0x4bf5c5['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x43eec5};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class fe extends _0x2e3b46{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x511614,_0x21c669,_0xe7e5e8){super(_0x511614),this['_model']=_0x21c669,this['_config']=_0xe7e5e8,this['set']('description',''),this['bind']('authoredAt')['to'](_0x21c669),this['acceptButton']=this['_createButton'](o(_0x511614,'Accept\x20suggestion'),_0x288ed7['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x511614,'Discard\x20suggestion'),_0x288ed7['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1adf5d(_0x511614,_0x21c669['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x27fc65([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x46d38e(),this['keystrokes']=new _0xae9dc2(),this['focusCycler']=new _0x34bb61({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5a8746=>_0x5a8746['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x520495=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x520495['innerHTML']=this['description'],this['on']('change:description',(_0x3e57a0,_0x6df180,_0x5d4b51)=>{_0x520495['innerHTML']=_0x5d4b51;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x53de2a=this['bindTemplate'],_0x585a57=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x53de2a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x53de2a['to']('authoredAt',_0x2a4dc3=>this['_config']['formatDateTime'](_0x2a4dc3))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x585a57['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x585a57}]};}['focus'](){this['element']['focus']();}['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;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3ee3b4,_0xb51c6c,_0x543775,_0x5640af,_0x22320b){const _0x16fc9f=new _0x5c5cc4(this['locale']);return _0x16fc9f['set']({'label':_0x3ee3b4,'icon':_0xb51c6c,'tooltip':!0x0,'tooltipPosition':_0x22320b}),_0x16fc9f['extendTemplate']({'attributes':{'class':_0x543775}}),_0x16fc9f['on']('execute',()=>{this['fire'](_0x5640af,this['_model']['id']);}),_0x16fc9f;}['_setupKeyboardNavigation'](){const _0x521164=this['element'];this['keystrokes']['listenTo'](_0x521164);for(const _0x3ec132 of this['focusables'])this['focusTracker']['add'](_0x3ec132['element']),this['keystrokes']['listenTo'](_0x3ec132['element']);this['keystrokes']['set']('enter',(_0x5213d2,_0x1191b6)=>{_0x521164===_0x5213d2['target']&&(this['focusCycler']['focusFirst'](),_0x1191b6());}),this['keystrokes']['set']('esc',(_0x2946a5,_0x9ed5d8)=>{_0x521164!==_0x2946a5['target']&&(this['focus'](),_0x9ed5d8());});}}var we='<!--\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-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x31ef78{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5679ed,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x579ec3){super(_0x579ec3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1cddc4=this['editor']['config'];_0x1cddc4['define']('trackChanges.SuggestionThreadView',pe),_0x1cddc4['define']('trackChanges.SuggestionView',fe),_0x1cddc4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1cddc4['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x561302,_0x11acd3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x446546,_0x481d0c]of this['_handleControllerBuffer']){const _0x45a807=this['_suggestionToController']['has'](_0x446546);_0x45a807||_0x481d0c?_0x45a807&&_0x481d0c&&this['_destroyController'](_0x446546):this['_initializeController'](_0x446546);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x561302,_0x11acd3);}['init'](){const _0x356837=this['editor'],_0x3cbfc4=_0x356837['plugins']['get']('TrackChangesEditing'),_0x2ca83b=_0x356837['plugins']['get']('Annotations'),_0x2d7268=_0x356837['plugins']['get']('EditorAnnotations'),_0x576a5a=_0x356837['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2d7268['addSourceCollector'](()=>{const _0x483111=[];for(const [_0x2b3ff5,_0x592b48]of Array['from'](this['_suggestionToController'])){const _0x2a1341=_0x2b3ff5['getAllAdjacentSuggestions'](),_0x30729e=[];for(const _0x170f89 of _0x2a1341){if(!_0x170f89['isInContent'])continue;if(_0x170f89['isMultiRange']){_0x30729e['push'](..._0x170f89['getRanges']());continue;}const _0x36e59f=_0x170f89['getFirstRange']();if(_0x30729e['length']>0x0){const _0x2cf7b4=_0x30729e[0x0]['getJoined'](_0x36e59f);if(_0x2cf7b4){_0x30729e[0x0]=_0x2cf7b4;continue;}}_0x30729e['push'](_0x36e59f);}_0x483111['push']([_0x592b48['view'],_0x30729e]);}return _0x483111;}),this['listenTo'](_0x3cbfc4,'suggestionLoaded',(_0x294930,_0x350a85)=>{this['listenTo'](_0x350a85,'change:previous',(_0x2a9694,_0x266ed9,_0x2dca46,_0xb7d23f)=>{_0x350a85['isInContent']&&(null==_0x2dca46?(this['_updateController'](_0xb7d23f['head']),this['_handleSuggestionControllerDelayed'](_0x350a85,!0x1)):(this['_updateController'](_0x2dca46['head']),null==_0xb7d23f&&this['_handleSuggestionControllerDelayed'](_0x350a85,!0x0)));}),null!==_0x350a85['previous']?this['_updateController'](_0x350a85['head']):this['_handleSuggestionControllerDelayed'](_0x350a85,!0x1);}),this['listenTo'](_0x3cbfc4,'suggestionUnloaded',(_0x22d328,_0x17d5ba,_0x5093ee)=>{this['stopListening'](_0x17d5ba,'change:previous'),this['_handleControllerBuffer']['delete'](_0x17d5ba),this['_suggestionToController']['has'](_0x17d5ba)&&this['_destroyController'](_0x17d5ba),_0x5093ee&&this['_updateController'](_0x5093ee['head']);}),this['listenTo'](_0x3cbfc4,'suggestionChanged',(_0x51c5c8,_0x291e5d)=>{this['_updateController'](_0x291e5d);}),this['listenTo'](_0x2ca83b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x576a5a,'addComment',(_0x582b51,{threadId:_0x1f8127,isFromAdapter:_0x254678})=>{if(_0x254678||!_0x3cbfc4['hasSuggestion'](_0x1f8127))return;const _0x1e7593=_0x3cbfc4['getSuggestion'](_0x1f8127);this['_suggestionToController']['get'](_0x1e7593)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3b87ad=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3cc7b2;for(const _0x5a2e92 in _0x3b87ad){const _0x2897e9=_0x5a2e92,_0x9647a5=_0x3b87ad[_0x2897e9];if('trackChangesLicenseKeyValid'==_0x9647a5||'trackChangesLicenseKeyInvalid'==_0x9647a5||'trackChangesLicenseKeyExpired'==_0x9647a5||'trackChangesLicenseKeyDomainLimit'==_0x9647a5||'trackChangesLicenseKeyNotAllowed'==_0x9647a5||'trackChangesLicenseKeyEvaluationLimit'==_0x9647a5||'trackChangesLicenseKeyTrialLimit'==_0x9647a5||'trackChangesLicenseKeyUsageLimit'==_0x9647a5){delete _0x3b87ad[_0x2897e9],_0x3cc7b2=_0x9647a5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3cc7b2&&_0x3b87ad['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3cc7b2&&_0x3b87ad['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3cc7b2&&_0x3b87ad['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3cc7b2&&_0x3b87ad['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3cc7b2&&_0x3b87ad['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3cc7b2&&_0x3b87ad['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3cc7b2&&_0x3b87ad['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x189a60=this['editor']['plugins']['get']('Annotations'),_0x5b838a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x423f4b=Array['from'](_0x189a60['activeAnnotations'],_0x9ac2ee=>_0x9ac2ee['innerView'])['filter'](_0xef6e8a=>this['_viewToController']['has'](_0xef6e8a)),_0x294618=[];for(const _0x552ff3 of _0x423f4b){const _0x86fca2=this['_viewToController']['get'](_0x552ff3)['model']['getAllAdjacentSuggestions']();_0x294618['push'](..._0x86fca2['reduce']((_0x17b0b2,_0x527e9d)=>[..._0x17b0b2,..._0x527e9d['getMarkerNames']()],[]));}_0x5b838a['activeMarkers']=_0x294618;}['_addUIComponentsToFactory'](){const _0x1ccda0=this['editor'],_0x3a09e8=_0x1ccda0['locale'],_0x4b7e0e=o(_0x3a09e8,'Track\x20changes'),_0x1b98f2=new _0x11e5e0([{'type':'switchbutton','model':new _0x4f3a9a({'withText':!0x0,'isToggleable':!0x0,'label':_0x4b7e0e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4f3a9a({'withText':!0x0,'label':o(_0x3a09e8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4f3a9a({'withText':!0x0,'label':o(_0x3a09e8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4f3a9a({'withText':!0x0,'label':o(_0x3a09e8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4f3a9a({'withText':!0x0,'label':o(_0x3a09e8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1ccda0['plugins']['has']('TrackChangesPreview')&&_0x1b98f2['addMany']([{'type':'separator'},{'type':'button','model':new _0x4f3a9a({'withText':!0x0,'label':o(_0x3a09e8,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x385bab of _0x1b98f2)if(ke(_0x385bab)){const _0x1c008e=_0x1ccda0['commands']['get'](_0x385bab['model']['commandName']);_0x385bab['model']['bind']('isOn','isEnabled')['to'](_0x1c008e,'value','isEnabled');}_0x1ccda0['ui']['componentFactory']['add']('trackChanges',_0x784d9f=>this['_createToolbarButton'](_0x784d9f,_0x1b98f2,_0x4b7e0e)),_0x1ccda0['ui']['componentFactory']['add']('menuBar:trackChanges',_0x49ca39=>this['_createMenuBarMenu'](_0x49ca39,_0x1b98f2,_0x4b7e0e));}['_createToolbarButton'](_0x47c6e5,_0x3263de,_0x44c0a6){const _0x10eca0=_0x1592d1(_0x47c6e5,_0x5b1b6a),_0x1d16aa=this['editor']['commands']['get']('trackChanges');_0x10eca0['buttonView']['set']({'tooltip':_0x44c0a6,'label':_0x44c0a6,'icon':we}),_0x10eca0['buttonView']['bind']('isOn')['to'](_0x1d16aa,'value'),_0x10eca0['buttonView']['on']('execute',()=>{_0x1d16aa['execute'](),this['editor']['editing']['view']['focus']();}),_0x18de6c(_0x10eca0,_0x3263de,{'role':'menu'});const _0x53efc9=[];for(const _0x16a8ea of _0x3263de)ke(_0x16a8ea)&&_0x53efc9['push'](this['editor']['commands']['get'](_0x16a8ea['model']['commandName']));const _0xe9c441=_0x10eca0['buttonView'];return _0xe9c441['actionView']['unbind']('isEnabled'),_0xe9c441['arrowView']['unbind']('isEnabled'),_0xe9c441['actionView']['bind']('isEnabled')['to'](_0x1d16aa,'isEnabled'),_0xe9c441['arrowView']['bind']('isEnabled')['toMany'](_0x53efc9,'isEnabled',(..._0xe613a4)=>_0xe613a4['some'](_0x481d8a=>_0x481d8a)),_0x10eca0['on']('execute',_0x137831=>{this['editor']['execute'](_0x137831['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x10eca0;}['_createMenuBarMenu'](_0x33ee35,_0x1a1cdc,_0xdb86b1){const _0x148278=new _0x32e87f(_0x33ee35),_0x100d3a=this['editor']['commands']['get']('trackChanges');_0x148278['buttonView']['set']({'label':_0xdb86b1,'icon':we});const _0x3d5171=new _0x2b0ae8(_0x33ee35);for(const _0x9e29dc of _0x1a1cdc){if('separator'==_0x9e29dc['type']){_0x3d5171['items']['add'](new _0x485996(_0x33ee35));continue;}const _0x1ccc4b=new _0x1b0316(_0x33ee35,_0x148278),_0x386bf2=new _0x582f64(_0x33ee35),_0x35c585=_0x9e29dc['model'];_0x386bf2['bind'](...Object['keys'](_0x35c585))['to'](_0x35c585),_0x386bf2['delegate']('execute')['to'](_0x148278),_0x386bf2['on']('execute',()=>{this['editor']['execute'](_0x35c585['commandName']),this['editor']['editing']['view']['focus']();}),_0x1ccc4b['children']['add'](_0x386bf2),_0x3d5171['items']['add'](_0x1ccc4b);}return _0x148278['bind']('isEnabled')['to'](_0x100d3a,'isEnabled'),_0x148278['panelView']['children']['add'](_0x3d5171),_0x148278;}['_initializeController'](_0x58d6a7){const _0x5cd6a0=this['editor'],_0x2bd78c=_0x5cd6a0['config'],_0x4d6f55=_0x5cd6a0['plugins']['get']('Annotations'),_0x5ac968=_0x5cd6a0['plugins']['get']('CommentsRepository'),_0x46f006=_0x5cd6a0['plugins']['get']('EditorAnnotations'),_0x360adf=_0x5cd6a0['plugins']['get'](_0x5679ed)['me'],_0x15d3e7=_0x2bd78c['get']('trackChanges')['SuggestionThreadView'],_0x4071f3=_0x2bd78c['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x557952,CommentThreadInputView:_0xf5d8dd}=_0x5cd6a0['plugins']['get']('CommentsUI');let _0x5b9624,_0x274a43,_0x10454a;this['_annotationViews']['has'](_0x58d6a7['id'])?(_0x274a43=this['_annotationViews']['get'](_0x58d6a7['id']),_0x5b9624=_0x274a43['mainView']):(_0x5b9624=new _0x15d3e7(_0x5cd6a0['locale'],_0x58d6a7,_0x360adf,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2bd78c['get']('comments.editorConfig'),'licenseKey':_0x2bd78c['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2bd78c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2bd78c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2bd78c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x494fed(_0x2bd78c['get']('locale')),'CommentView':_0x2bd78c['get']('comments')['CommentView'],'CommentsListView':_0x557952,'CommentThreadInputView':_0xf5d8dd,'SuggestionView':_0x4071f3}),_0x5b9624['suggestionView']['acceptButton']['on']('execute',()=>{_0x5cd6a0['editing']['view']['focus']();}),_0x5b9624['suggestionView']['discardButton']['on']('execute',()=>{_0x5cd6a0['editing']['view']['focus']();}),_0x274a43=_0x4d6f55['createAnnotationView'](this['editor']['locale'],_0x5b9624),_0x274a43['bind']('isDirty')['to'](_0x5b9624,'isDirty'),_0x274a43['bind']('length')['to'](_0x5b9624),_0x274a43['bind']('type')['to'](_0x5b9624,'type',_0x56ad9c=>'suggestion-'+_0x56ad9c),_0x5b9624['on']('escape',()=>{_0x10454a['fire']('escape');}),this['_annotationViews']['set'](_0x58d6a7['id'],_0x274a43));const _0x25c2b3=_0x5ac968['createCommentThreadController'](_0x58d6a7['commentThread'],_0x5b9624),_0x488217=new Ce(_0x5cd6a0,_0x58d6a7,_0x5b9624,_0x25c2b3),_0x559a15=_0x58d6a7['getAllAdjacentSuggestions']()['filter'](_0x4589cf=>_0x4589cf['isInContent']);_0x5b9624['descriptionParts']=_0x5cd6a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x559a15),this['_suggestionToController']['set'](_0x58d6a7,_0x488217),this['_viewToController']['set'](_0x5b9624,_0x488217),_0x10454a=_0x4d6f55['createAnnotation']({'view':_0x274a43,'target':()=>{const _0x21a303=[],_0x4d499a=_0x58d6a7['getAllAdjacentSuggestions']()['filter'](_0x3d0491=>_0x3d0491['isInContent']);for(const _0x425d01 of _0x4d499a)_0x21a303['push'](..._0x425d01['getMarkers']());return _0x35e003(_0x5cd6a0['editing'],_0x21a303);},'type':()=>'suggestion-'+_0x488217['view']['type']}),_0x5ac968['_bindAnnotationToEditors'](_0x5b9624,_0x10454a),_0x4d6f55['add'](_0x10454a),_0x46f006['registerAnnotation'](_0x10454a);}['_destroyController'](_0x5064a3){const _0x5bd573=this['editor']['plugins']['get']('CommentsRepository'),_0x568964=this['editor']['plugins']['get']('Annotations'),_0x12c104=this['_suggestionToController']['get'](_0x5064a3),_0x20fd8d=_0x12c104['view'],_0x2e86f7=_0x568964['getByInnerView'](_0x20fd8d);_0x5bd573['_unbindEditors'](_0x20fd8d),_0x2e86f7&&_0x568964['remove'](_0x2e86f7),this['_suggestionToController']['delete'](_0x5064a3),this['_viewToController']['delete'](_0x20fd8d),_0x12c104['destroy']();}['_updateController'](_0x937629){if(!_0x937629['isInContent']||!this['_suggestionToController']['has'](_0x937629))return;const _0x5a2044=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34a87a=this['_suggestionToController']['get'](_0x937629),_0x38a63c=_0x937629['getAllAdjacentSuggestions']();_0x34a87a['view']['descriptionParts']=_0x5a2044['descriptionFactory']['getDescriptions'](_0x38a63c);}['destroy'](){for(const _0x2c2f21 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2c2f21);for(const _0x18e30b of this['_annotationViews']['values']())_0x18e30b['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x32ce52){return'model'in _0x32ce52;}class k extends _0x31ef78{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x58e7db){this['editor']['plugins']['get'](p)['adapter']=_0x58e7db;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x465407){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x465407);}['getSuggestions']({skipNotAttached:_0x23a510=!0x1,toJSON:_0xfce85e=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x23a510,'toJSON':_0xfce85e});}['getSuggestion'](_0x211c3b){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x211c3b);}}const w=['Pagination'];class T extends _0x31ef78{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x21554c=this['editor'];if(_0x21554c['config']['define']('trackChangesData.editorCreator',_0x1891e0=>{const _0xecfa2c=_0x21554c['model']['document']['getRootNames']()['reduce']((_0xa9e13b,_0x11858d)=>(_0xa9e13b[_0x11858d]='',_0xa9e13b),{});return _0x21554c['constructor']['create'](_0xecfa2c,_0x1891e0);}),'function'!=typeof _0x21554c['config']['get']('trackChangesData')['editorCreator'])throw new _0x1b7c5d('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x591384){return N(this['editor'],!0x0,_0x591384);}['getDataWithDiscardedSuggestions'](_0x1e15cd){return N(this['editor'],!0x1,_0x1e15cd);}}class D extends _0x31ef78{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd29ea1){function _0xc53230(_0x2464c4){return _0x2464c4['map'](_0x138f16=>String['fromCharCode'](_0x138f16))['join']('');}super(_0xd29ea1),this['result']='end',_0xd29ea1[_0xc53230([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc53230([0x76,0x69,0x65,0x77])][_0xc53230([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xc53230([0x61,0x75,0x74,0x6f]),_0xd29ea1[_0xc53230([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xc53230([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xc53230([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xc53230([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xc53230([0x6f,0x6b])});}['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 Fe(_0x285c49){return void 0x0!==_0x285c49['getRootsAttributes'];}async function N(_0x209ced,_0x37487d,_0x362c7c){const _0x2b2720=_0x560943(_0x209ced,w);_0x2b2720['plugins']['push'](p,D),_0x2b2720['rootsAttributes']=Fe(_0x209ced)?_0x209ced['getRootsAttributes']():void 0x0;const _0x57e678=document['createDocumentFragment'](),_0x48f154=_0x209ced['config']['get']('trackChangesData')['editorCreator'],_0x581750=await _0x48f154(_0x2b2720,()=>function(_0x5e485d){const _0x440c6f=document['createElement']('div');return _0x5e485d['appendChild'](_0x440c6f),_0x440c6f;}(_0x57e678));!function(_0x2d34b6,_0x4b176c){const _0xa26965=_0x2d34b6['model']['document']['getRootNames']()['reduce']((_0x2d58f5,_0x595953)=>(_0x2d58f5[_0x595953]=_0x2d34b6['data']['get']({'rootName':_0x595953}),_0x2d58f5),{}),_0x455290=_0x2d34b6['plugins']['get']('Users')['users']['map'](_0x599f42=>({'id':_0x599f42['id'],'name':_0x599f42['name']})),_0x592f9f=_0x2d34b6['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x557848=_0x2d34b6['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x30e92f=_0x4b176c['plugins']['get']('Users'),_0x47ecfc=_0x4b176c['plugins']['get']('TrackChangesEditing'),_0x4d437a=_0x4b176c['plugins']['get']('CommentsRepository');for(const _0x3c43a8 of _0x4d437a['getCommentThreads']())_0x3c43a8['remove']();for(const _0xfb2296 of _0x455290)_0x30e92f['getUser'](_0xfb2296['id'])||_0x30e92f['addUser'](_0xfb2296);_0x30e92f['me']||_0x30e92f['useAnonymousUser']();for(const _0x38294d of _0x557848)_0x4d437a['addCommentThread'](_0x38294d);for(const _0x9f6740 of _0x592f9f)_0x47ecfc['addSuggestionData'](_0x9f6740);_0x4b176c['data']['set'](_0xa26965);}(_0x209ced,_0x581750),_0x581750['execute'](_0x37487d?'acceptAllSuggestions':'discardAllSuggestions');const _0x2f7df2=Fe(_0x581750)?_0x581750['getFullData'](_0x362c7c):_0x581750['data']['get'](_0x362c7c);return await _0x581750['destroy'](),_0x2f7df2;}class Me extends _0x2e3b46{['options'];constructor(_0x4a5dc4,_0x3c802f){super(_0x4a5dc4),this['options']=_0x3c802f,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x1c8334,_0x14fbe5){if(!this['element'])return;const _0x5eac73=[];for(const [_0x370917,_0x21cbe0]of _0x1c8334){const _0x76f279=document['createElement']('div');_0x76f279['setAttribute']('data-ck-root-name',_0x370917),_0x76f279['className']=_0x21cbe0['classes']+'\x20ck-track-changes-preview__root-container',_0x76f279['innerHTML']=_0x21cbe0['content'],_0x5eac73['push'](_0x76f279);}_0x14fbe5(this['element'],_0x5eac73),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x15746f){super(_0x15746f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x118d41=this['editor'],_0x591778=_0x118d41['locale'],_0x4ce6a4=_0x118d41['plugins']['get']('Dialog');let _0x1ff6ba;const _0xe353a7=function(_0x2b6c35){const _0x4056b2={};if('editables'in _0x2b6c35['ui']['view']){for(const [_0x37b49b,_0x3689df]of Object['entries'](_0x2b6c35['ui']['view']['editables']))_0x4056b2[_0x37b49b]=_0x3689df['element'];}else _0x4056b2[_0x2b6c35['model']['document']['getRootNames']()[0x0]]=_0x2b6c35['ui']['view']['editable']['element'];return _0x4056b2;}(_0x118d41),_0x3c8da1=function(_0x3df1d5){let _0x545e28=0x0;for(const _0xe2f8d9 of Object['values'](_0x3df1d5))_0x545e28=Math['max'](_0x545e28,_0xe2f8d9['getBoundingClientRect']()['width']);let _0x25e2e2=0x0;for(const _0x2d117f of Object['values'](_0x3df1d5))_0x25e2e2+=_0x2d117f['getBoundingClientRect']()['height'];const _0x36fba8=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5bf368=Math['min'](_0x25e2e2,_0x36fba8);return{'width':_0x545e28,'height':_0x5bf368};}(_0xe353a7);_0x4ce6a4['show']({'id':'finalContentPreview','title':o(_0x591778,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x591778,{'dialogRects':_0x3c8da1}),'onHide':()=>{_0x1ff6ba['detachFromDom']();},'onShow':()=>{_0x118d41['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2b5375=>{const _0x2349bc=this['_standarizeRootsData'](_0x2b5375,_0x118d41,_0xe353a7);_0x4ce6a4['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2349bc,_0x118d41['config']['get']('trackChanges.preview.renderFunction'));}),_0x1ff6ba=new _0x1a6e81(_0x591778,[_0x4ce6a4['view']]),_0x1ff6ba['attachToDom'](),_0x1ff6ba['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x118d41['once']('destroy',()=>{_0x1ff6ba['detachFromDom']();});const _0x4881f2=_0x4ce6a4['view']['headerView']['class'];_0x4ce6a4['view']['headerView']['class']=_0x4881f2?_0x4881f2+'\x20ck-reset_all':'ck-reset_all',_0x4ce6a4['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4ce6a4['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x471cbf=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x35353a=_0x471cbf['previewMode'],_0x24b7b5={};if('$labels'===_0x35353a){for(const _0xdcd10e of _0x471cbf['getMergeFieldsIds']())_0x24b7b5[_0xdcd10e]=_0x471cbf['getLabel'](_0xdcd10e)||_0xdcd10e;}else{const _0x241989='$defaultValues'===_0x35353a?_0x471cbf['getDefaultValues']():_0x471cbf['getDataSetValues'](_0x35353a,!0x0);for(const _0x2a4c8f of Object['entries'](_0x241989)){const [_0x1dfdea,_0x34b82d]=_0x2a4c8f;_0x24b7b5[_0x1dfdea]=null!==_0x34b82d?_0x34b82d:_0x471cbf['getLabel'](_0x1dfdea)||_0x1dfdea;}}return{'mergeFieldsData':_0x24b7b5};}['_standarizeRootsData'](_0x18149a,_0x42c3ac,_0x1ab75b){let _0x44607d;if('string'==typeof _0x18149a){const _0x52a59e=_0x42c3ac['model']['document']['getRootNames']()[0x0];_0x44607d={[_0x52a59e]:_0x18149a};}else _0x44607d=_0x18149a;const _0x508e05=this['_fixMediaEmbeds'](_0x44607d,_0x42c3ac),_0x599fe7=function(_0x58834e,_0x378d51){for(const [_0x45d1e9,_0x177c55]of _0x58834e)_0x177c55['classes']=_0x378d51[_0x45d1e9]['classList']['value']['replace']('ck-focused','');return _0x58834e;}(this['_sortRoots'](_0x42c3ac)['reduce']((_0x2d9d61,_0x306bd5)=>(_0x2d9d61['push']([_0x306bd5,{'content':_0x508e05[_0x306bd5],'classes':''}]),_0x2d9d61),[]),_0x1ab75b);return _0x599fe7;}['_fixMediaEmbeds'](_0x3d29f9,_0x4be8b4){if(!_0x4be8b4['plugins']['has']('MediaEmbedEditing'))return _0x3d29f9;const _0x1b3e70=_0x4be8b4['plugins']['get']('MediaEmbedEditing');for(const [_0xf60cf5,_0x15f036]of Object['entries'](_0x3d29f9)){const _0x20d9fa=document['createElement']('div');_0x20d9fa['innerHTML']=_0x15f036,(_0x20d9fa['querySelectorAll']('figure.media')['forEach'](_0x2fd96b=>{const _0x1000cd=_0x2fd96b['querySelector']('oembed');if(_0x1000cd){const _0x198926=_0x1000cd['getAttribute']('url');if(_0x198926){const _0x34b443=_0x1b3e70['registry']['getMediaViewElement'](new _0x3b179f(_0x4be8b4['editing']['view']['document']),_0x198926,{'elementName':'','renderForEditingView':!0x0}),_0x289e7a=document['createElement']('div');_0x289e7a['classList']['add']('ck-media__wrapper'),_0x34b443['render'](_0x289e7a,_0x4be8b4['editing']['view']['domConverter']),_0x1000cd['replaceWith'](_0x289e7a);}}}),_0x3d29f9[_0xf60cf5]=_0x20d9fa['innerHTML']);}return _0x3d29f9;}['_sortRoots'](_0x1bb431){if(!function(_0x41bd00){return void 0x0!==_0x41bd00['getRootsAttributes'];}(_0x1bb431))return _0x1bb431['model']['document']['getRootNames']();const _0x5b34e3=[],_0x3a80f9=new Map();for(const _0x35a1e4 of _0x1bb431['model']['document']['getRootNames']()){const _0x1990ec=_0x1bb431['editing']['view']['getDomRoot'](_0x35a1e4)['getClientRects']()['item'](0x0);_0x5b34e3['push'](_0x35a1e4),_0x3a80f9['set'](_0x35a1e4,_0x1990ec);}return _0x5b34e3['sort']((_0xf0b151,_0x55851c)=>{const _0x4386dc=_0x3a80f9['get'](_0xf0b151),_0x1dacdd=_0x3a80f9['get'](_0x55851c);return _0x4386dc['y']-_0x1dacdd['y']||_0x4386dc['x']-_0x1dacdd['x'];}),_0x5b34e3;}}class te extends _0x31ef78{static get['requires'](){return[T,_0x51f22f];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5d3bf1){super(_0x5d3bf1),_0x5d3bf1['commands']['add']('previewFinalContent',new re(this['editor'])),_0x5d3bf1['config']['define']('trackChanges.preview.renderFunction',(_0x4021f7,_0x16a4e3)=>{for(const _0x308575 of _0x16a4e3)_0x4021f7['appendChild'](_0x308575);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as Yt,Plugin as _0x7c1c66,PendingActions as _0x5173f3,icons as _0x1e45cb}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x66948e,ObservableMixin as _0x46dd46,uid as _0x21926f,priorities as _0x1f9bf5,insertToPriorityArray as _0x12f7a7,logWarning as _0x587c23,getEnvKeystrokeText as _0x1c38e3,FocusTracker as _0x113f71,KeystrokeHandler as _0x15913d,Collection as _0x1b3c40}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x480896,View as _0x17695c,ViewCollection as _0x3546f7,FocusCycler as _0x347878,ViewModel as _0x1cd12d,createDropdown as _0x2bcb63,SplitButtonView as _0xe70475,addListToDropdown as _0x3e012b,MenuBarMenuView as _0x2c6bc8,MenuBarMenuListView as _0x1102c5,ListSeparatorView as _0x5b6d5f,MenuBarMenuListItemView as _0x51c1de,MenuBarMenuListItemButtonView as _0x2ad925,BodyCollection as _0x553766,Dialog as _0x5de97f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x429471,hashObject as _0xfe91ca,surroundingMarkersDetector as _0x290910,FOCUS_ANNOTATION_KEYSTROKE as _0x106e8f,AriaDescriptionView as _0x3850f1,setupThreadKeyboardNavigation as _0x4b92eb,trimHtml as _0x45a2b6,UserView as _0x557fec,LateFocusButtonView as _0x4ea304,getDateTimeFormatter as _0x1e11a3,getAllMarkersDomElementsSorted as _0x25ee28,sanitizeEditorConfig as _0x1ae42a}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x4c4951,LiveRange as _0x3af705,LivePosition as _0x56514d,DowncastWriter as _0x5599ed}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x32ce73,toWidget as _0x2e97be}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xecc0ce,set as _0x11057d,isEqual as _0x9ecbe3,unset as _0x463abe,omit as Vt}from'lodash-es';import{Delete as _0x1eb07c,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x238118,ShiftEnter as _0x2141d0}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x257717,_0x313a8a){super(_0x257717),this['_enabledCommands']=_0x313a8a,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 _0x7f2c1f of this['editor']['commands']['commands']())_0x7f2c1f['affectsData']&&!this['_enabledCommands']['has'](_0x7f2c1f)&&_0x7f2c1f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x27df3d of this['editor']['commands']['commands']())_0x27df3d['affectsData']&&!this['_enabledCommands']['has'](_0x27df3d)&&_0x27df3d['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x2f19e6,_0x45ebed){super(_0x2f19e6),this['_suggestions']=_0x45ebed,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1ec8d8){const _0xe7998b=this['_suggestions']['get'](_0x1ec8d8);if(!_0xe7998b)throw new _0x66948e('track-changes-accept-suggestion-not-found',this);const _0x370905=_0xe7998b['getRanges']();this['editor']['model']['canEditAt'](_0x370905)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xe7998b);}}class R extends Yt{['_suggestions'];constructor(_0x498118,_0x18e90f){super(_0x498118),this['_suggestions']=_0x18e90f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x52b4fe){const _0x287a51=this['_suggestions']['get'](_0x52b4fe);if(!_0x287a51)throw new _0x66948e('track-changes-discard-suggestion-not-found',this);const _0x21d4b7=_0x287a51['getRanges']();this['editor']['model']['canEditAt'](_0x21d4b7)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x287a51);}}function cs(_0x33355f,_0x2d2512){let _0xde7cd9='';return _0xde7cd9+=_0x33355f['split']('*')['map']((_0x3564a4,_0x1332e4)=>_0x1332e4%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x3564a4)+'</span>':nn(_0x3564a4))['join'](''),_0x2d2512&&(_0xde7cd9+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2d2512['value']+'\x22\x20title=\x22'+_0x2d2512['title']+'\x22></span>'),_0xde7cd9;}function nn(_0x56a0ea){const _0x43effa=document['createElement']('span');return _0x43effa['innerText']=_0x56a0ea,_0x43effa['innerHTML'];}function Zt(_0x20067f){return _0x20067f['sort']((_0x2843dc,_0x28c6e0)=>'deletion'==_0x2843dc['type']&&'deletion'!=_0x28c6e0['type']?-0x1:'deletion'!=_0x2843dc['type']&&'deletion'==_0x28c6e0['type']?0x1:0x0);}function to(_0x374598,_0x51d880){let _0x42b76e,_0x4e8ace=0x0;const _0x2905bf=[],_0x5cd306=_0x51d880['schema'];for(;_0x4e8ace<_0x374598['length'];){const _0x506187=_0x374598[_0x4e8ace],_0x450ec3=_0x374598[_0x4e8ace+0x1];_0x42b76e||(_0x42b76e=_0x51d880['createPositionBefore'](_0x506187)),on(_0x51d880,_0x506187,_0x450ec3)||(_0x2905bf['push'](_0x51d880['createRange'](_0x42b76e,_0x5cd306['isObject'](_0x506187)?_0x51d880['createPositionAfter'](_0x506187):_0x51d880['createPositionAt'](_0x506187,'end'))),_0x42b76e=null),_0x4e8ace++;}return _0x2905bf;}function on(_0x20c27f,_0x1f7ff2,_0xfa1e10){if(!_0xfa1e10)return!0x1;const _0x9007a9=_0x20c27f['createPositionAfter'](_0x1f7ff2),_0x45fd30=_0x20c27f['createPositionBefore'](_0xfa1e10);return _0x9007a9['isTouching'](_0x45fd30);}function ts(_0x598222,_0x56e874,_0x50a00c){for(;_0x50a00c['length'];){const _0x2323d2=_0x50a00c['splice'](0x0,0x64);_0x598222['change'](()=>{for(const _0x221957 of _0x2323d2)_0x221957['isInContent']&&_0x56e874['execute'](_0x221957['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x5bdca7,_0x41a0a1,_0x3e5abe){super(_0x5bdca7),this['_command']=_0x41a0a1,this['_suggestions']=_0x3e5abe,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x492c34=Array['from'](this['_suggestions']['values']())['some'](_0x49dc0b=>_0x49dc0b['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x492c34;}['execute'](){const _0x5f42fd=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x147679 of _0x5f42fd){const _0x2ce440=_0x147679['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2ce440))return;}ts(this['editor']['model'],this['_command'],_0x5f42fd);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1581a6,_0x132603,_0x5232a4){super(_0x1581a6),this['_command']=_0x132603,this['_suggestions']=_0x5232a4,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x54b990=this['editor']['model']['document']['selection'],_0x11aecf=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x231dbc,_0x9ec7da){const _0x5de606=Array['from'](_0x231dbc['getRanges']()),_0x2f67e7=new Set();for(const _0x34a583 of _0x9ec7da)if(_0x34a583['isInContent']){for(const _0x22d9b8 of _0x5de606)for(const _0x44fdab of _0x34a583['getRanges']())(_0x22d9b8['isIntersecting'](_0x44fdab)||_0x231dbc['isCollapsed']&&!_0x34a583['isMultiRange']&&_0x34a583['next']&&_0x44fdab['end']['isTouching'](_0x22d9b8['start']))&&_0x2f67e7['add'](_0x34a583);}return _0x2f67e7;}(_0x54b990,_0x11aecf),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x510ca4=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x18498f of _0x510ca4){const _0x2ef8b4=_0x18498f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2ef8b4))return;}ts(this['editor']['model'],this['_command'],_0x510ca4);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x46dd46(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x65da88,_0xc4fd09){super(),this['id']=_0xc4fd09['id'],this['type']=_0xc4fd09['type'],this['subType']=_0xc4fd09['subType']||null,this['author']=_0xc4fd09['author'],this['creator']=_0xc4fd09['creator']||_0xc4fd09['author'],this['isExternal']=Boolean(_0xc4fd09['attributes']&&_0xc4fd09['attributes']['@external']),this['data']=null,this['_model']=_0x65da88,this['_onAccept']=_0xc4fd09['onAccept'],this['_onDiscard']=_0xc4fd09['onDiscard'],this['_onAttributesChange']=_0xc4fd09['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xc4fd09['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 _0x56122e=this;for(;_0x56122e['previous'];)_0x56122e=_0x56122e['previous'];return _0x56122e;}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'](_0x175276){this['_markerNames']['add'](_0x175276);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x237d74=>this['_model']['markers']['get'](_0x237d74))['filter'](_0x52abec=>_0x52abec);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x539721=>{for(const _0x28f443 of this['getMarkers']())_0x539721['removeMarker'](_0x28f443);}),this['_markerNames']['clear']();}['removeMarker'](_0x28ecf5){this['_model']['change'](_0xea11c3=>{_0xea11c3['removeMarker'](_0x28ecf5);}),this['_markerNames']['delete'](_0x28ecf5);}['addRange'](_0x13de30){const _0x2e7448='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2e7448),this['_model']['change'](_0x2ceac1=>{_0x2ceac1['addMarker'](_0x2e7448,{'range':_0x13de30,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3467d6){for(const _0x28b87d of this['getRanges']())if(_0x28b87d['isIntersecting'](_0x3467d6))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1860ae=>_0x1860ae['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5edf4b,_0x18a79b)=>[..._0x5edf4b,..._0x18a79b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x52f1f2=this['getRanges']();if(0x1!=_0x52f1f2['length'])return null;const _0xd65804=_0x52f1f2[0x0],_0x20b2ec=_0xd65804['start']['nodeAfter'],_0x199afe=_0xd65804['end']['nodeBefore'];return _0x20b2ec instanceof _0x4c4951?_0x20b2ec!=_0x199afe?null:_0x20b2ec: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 _0x5dc2ac=[];let _0x572e89=this['head'];for(;_0x572e89;)_0x5dc2ac['push'](_0x572e89),_0x572e89=_0x572e89['next'];return _0x5dc2ac;}['setAttribute'](_0x2de93c,_0xc604d7){const _0x2fa621=_0xecc0ce(this['attributes']);_0x11057d(_0x2fa621,_0x2de93c,_0xc604d7),_0x9ecbe3(_0x2fa621,this['attributes'])||(this['attributes']=_0x2fa621,this['_onAttributesChange'](_0x2fa621));}['removeAttribute'](_0x35a536){const _0x303fef=_0xecc0ce(this['attributes']);_0x463abe(_0x303fef,_0x35a536),_0x9ecbe3(_0x303fef,this['attributes'])||(this['attributes']=_0x303fef,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 _0x21926f()['substr'](0x1,0x5);}}function o(_0xc892f4,_0x5fdadc,_0x3099a4){const _0x223f63=_0xc892f4['t'],t=_0xc892f4['t'];switch(_0x5fdadc){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x3099a4);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3099a4);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3099a4);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3099a4);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3099a4);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',_0x3099a4);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3099a4);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x3099a4);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3099a4);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3099a4);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3099a4);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3099a4);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3099a4);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3099a4);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3099a4);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3099a4);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3099a4);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3099a4);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3099a4);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3099a4);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3099a4);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3099a4);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3099a4);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3099a4);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'},_0x3099a4);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3099a4);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3099a4);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3099a4);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3099a4);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3099a4);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'},_0x3099a4);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3099a4);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3099a4);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3099a4);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3099a4);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'},_0x3099a4);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3099a4);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'},_0x3099a4);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'},_0x3099a4);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3099a4);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'},_0x3099a4);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3099a4);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'},_0x3099a4);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3099a4);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3099a4);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'},_0x3099a4);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3099a4);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 _0x223f63({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3099a4);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x223f63({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3099a4);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3099a4);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'},_0x3099a4);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'},_0x3099a4);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'},_0x3099a4);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5fdadc;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3deb3e,_0x4ac278){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3deb3e,this['_locale']=_0x4ac278;}['getDescriptions'](_0x25d2b6){const _0x4ff14=[],_0x571b09=new Set(),_0x5b92ac=new Set();for(let _0x16be66=0x0;_0x16be66<_0x25d2b6['length'];_0x16be66++){const _0x31222c=_0x25d2b6[_0x16be66];if(!_0x31222c['isInContent'])continue;const _0x26bd18=this['_handleCustomCallbackDescription'](_0x31222c);if(_0x26bd18){if(null!=_0x31222c['subType']){if(_0x571b09['has'](_0x31222c['subType']))continue;_0x571b09['add'](_0x31222c['subType']);}_0x4ff14['push'](_0x26bd18);}else{if('attribute'!=_0x31222c['type'])'insertion'!=_0x31222c['type']&&'deletion'!=_0x31222c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4ff14,_0x31222c,_0x25d2b6[_0x16be66+0x1]);else{const _0xf89dd8=_0x31222c['data']['key'];if(_0x5b92ac['has'](_0xf89dd8))continue;_0x5b92ac['add'](_0x31222c['data']['key']),_0xf89dd8==m?this['_handleRenameSuggestionDescription'](_0x4ff14,_0x31222c):this['_handleAttributeSuggestionDescription'](_0x4ff14,_0x31222c);}}}return this['_resolveDescriptionItems'](_0x4ff14);}['registerDescriptionCallback'](_0xcd978c){this['_customCallbacks']['push'](_0xcd978c);}['registerElementLabel'](_0x3f7317,_0x4772b8,_0x3d654a=_0x1f9bf5['normal']){'function'==typeof _0x3f7317?_0x12f7a7(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3f7317,'label':_0x4772b8,'priority':_0x3d654a}):this['_itemLabels']['set'](_0x3f7317,_0x4772b8);}['registerAttributeLabel'](_0x195a20,_0x1b1d18){this['_attributeLabels']['set'](_0x195a20,_0x1b1d18);}['getItemLabel'](_0x2b3a0e,_0x3df337=0x1){let _0x43a09c;for(const _0x4e91ee of this['_itemLabelsCallbacks'])if(_0x4e91ee['matchingCallback'](_0x2b3a0e)){_0x43a09c=_0x4e91ee['label'];break;}return _0x43a09c||(_0x43a09c=this['_itemLabels']['get'](_0x2b3a0e['name'])),_0x43a09c?_0x43a09c(_0x3df337):0x1!==_0x3df337?_0x3df337+'\x20'+_0x2b3a0e['name']+'s':''+_0x2b3a0e['name'];}['_addDescriptionItems'](_0x2e44bf,_0x45e3da){const _0x41bda3=_0x45e3da['getFirstRange']()['getWalker'](),_0x5879e3='insertion'==_0x45e3da['type']?'add':'remove';for(const _0x58d1cd of _0x41bda3){const _0x3f0a86=_0x58d1cd['item'],_0xc97ba6=_0x2e44bf[_0x2e44bf['length']-0x1];if(_0x3f0a86['is']('$textProxy'))_0xc97ba6&&_0xc97ba6['type']['indexOf']('Container')>-0x1&&_0x2e44bf['pop'](),_0xc97ba6&&'text'==_0xc97ba6['type']?_0xc97ba6[_0x5879e3]+=_0x3f0a86['data']:_0x2e44bf['push']({'type':'text','add':'add'==_0x5879e3?_0x3f0a86['data']:'','remove':'remove'==_0x5879e3?_0x3f0a86['data']:''});else{if(this['_schema']['isObject'](_0x3f0a86)){const _0x222887=_0x3f0a86;if(_0xc97ba6&&_0xc97ba6['type']['indexOf']('Container')>-0x1&&_0x2e44bf['pop'](),'elementEnd'==_0x58d1cd['type'])continue;_0xc97ba6&&_0xc97ba6['type']==_0x5879e3+'Object'&&_0xc97ba6['element']['name']==_0x222887['name']?_0xc97ba6['quantity']++:_0x2e44bf['push']({'type':_0x5879e3+'Object','element':_0x222887,'quantity':0x1}),_0x41bda3['skip'](_0x14b884=>!('elementEnd'==_0x14b884['type']&&_0x14b884['item']==_0x3f0a86));}else{if(this['_schema']['checkChild'](_0x3f0a86,'$text')||_0x3f0a86['is']('element','softBreak')){const _0x49cdbe=_0x3f0a86;if('add'==_0x5879e3&&'elementStart'==_0x58d1cd['type']||'remove'==_0x5879e3&&'elementEnd'==_0x58d1cd['type'])continue;if(_0xc97ba6&&-0x1==_0xc97ba6['type']['indexOf']('Container')){'text'==_0xc97ba6['type']&&(_0xc97ba6[_0x5879e3]+='\x0a');continue;}let _0x5d0101;if(_0x5d0101='add'==_0x5879e3?_0x49cdbe['nextSibling']&&!this['_schema']['isObject'](_0x49cdbe['nextSibling'])?_0x49cdbe['nextSibling']:null:_0x49cdbe['previousSibling']&&!this['_schema']['isObject'](_0x49cdbe['previousSibling'])?_0x49cdbe['previousSibling']:null,_0x49cdbe['isEmpty']||_0x5d0101&&_0x5d0101['isEmpty']){const _0x32243e=_0x5d0101&&_0x5d0101['isEmpty']?_0x5d0101:_0x49cdbe;_0xc97ba6&&_0xc97ba6['type']==_0x5879e3+'EmptyContainer'&&_0xc97ba6['element']['name']==_0x32243e['name']?_0xc97ba6['quantity']++:_0x2e44bf['push']({'type':_0x5879e3+'EmptyContainer','element':_0x32243e,'quantity':0x1});}else _0x2e44bf['push']({'type':_0x5879e3+'Container','element':_0x49cdbe});}}}}}['_resolveDescriptionItems'](_0xf37e2e){const _0x4c4add=this['_locale'],_0x586c7e=[],_0x193a07=[],_0x15e319=[];for(const _0xbe14c2 of _0xf37e2e)switch(_0xbe14c2['type']){case'text':if(_0xbe14c2['add']=_0xbe14c2['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xbe14c2['remove']=_0xbe14c2['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xbe14c2['add']&&''!=_0xbe14c2['remove']){_0x586c7e['push']({'type':'replace','content':o(_0x4c4add,'REPLACE_TEXT',['\x22'+_0xbe14c2['remove']+'\x22','\x22'+_0xbe14c2['add']+'\x22'])});continue;}if(null!=_0xbe14c2['add']['match'](/^ +$/)){_0x586c7e['push']({'type':'insertion','content':o(_0x4c4add,'*Insert:*\x20%0',o(_0x4c4add,'ELEMENT_SPACE',_0xbe14c2['add']['length']))});continue;}if(null!=_0xbe14c2['remove']['match'](/^ +$/)){_0x586c7e['push']({'type':'deletion','content':o(_0x4c4add,'*Remove:*\x20%0',o(_0x4c4add,'ELEMENT_SPACE',_0xbe14c2['remove']['length']))});continue;}if(''!=_0xbe14c2['add']){_0x586c7e['push']({'type':'insertion','content':o(_0x4c4add,'*Insert:*\x20%0','\x22'+_0xbe14c2['add']+'\x22')});continue;}_0x586c7e['push']({'type':'deletion','content':o(_0x4c4add,'*Remove:*\x20%0','\x22'+_0xbe14c2['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x586c7e['push']({'type':'insertion','content':o(_0x4c4add,'*Insert:*\x20%0',this['getItemLabel'](_0xbe14c2['element'],_0xbe14c2['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x586c7e['push']({'type':'deletion','content':o(_0x4c4add,'*Remove:*\x20%0',this['getItemLabel'](_0xbe14c2['element'],_0xbe14c2['quantity']))});continue;case'addContainer':_0x586c7e['push']({'type':'insertion','content':o(_0x4c4add,'*Split:*\x20%0',this['getItemLabel'](_0xbe14c2['element'],_0xbe14c2['quantity']))});continue;case'removeContainer':_0x586c7e['push']({'type':'deletion','content':o(_0x4c4add,'*Merge:*\x20%0',this['getItemLabel'](_0xbe14c2['element'],_0xbe14c2['quantity']))});continue;case'addFormat':_0x193a07['push'](_0xbe14c2['key']);continue;case'removeFormat':_0x15e319['push'](_0xbe14c2['key']);continue;default:_0x586c7e['push'](_0xbe14c2);}if(_0x193a07['length']){const _0x2e70d9=_0x193a07['map'](_0x5c2966=>this['_attributeLabels']['has'](_0x5c2966)?this['_attributeLabels']['get'](_0x5c2966):_0x5c2966)['join'](',\x20');_0x586c7e['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2e70d9)});}if(_0x15e319['length']){const _0x34b82e=_0x15e319['map'](_0x57f129=>this['_attributeLabels']['has'](_0x57f129)?this['_attributeLabels']['get'](_0x57f129):_0x57f129)['join'](',\x20');_0x586c7e['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x34b82e)});}return _0x586c7e;}['_handleCustomCallbackDescription'](_0xc90188){for(const _0x3410ad of this['_customCallbacks']){const _0x4f2755=_0x3410ad(_0xc90188);if(_0x4f2755&&'type'in _0x4f2755)return _0x4f2755;}}['_handleAttributeSuggestionDescription'](_0x328df2,_0x4beebb){const _0x4bde9e=_0x4beebb['data'],_0x6b38ad=void 0x0===_0x4bde9e['newValue']?'removeFormat':'addFormat';_0x328df2['push']({'type':_0x6b38ad,'key':_0x4bde9e['key']});}['_handleRenameSuggestionDescription'](_0x3ca0c3,_0x1ae678){_0x3ca0c3['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1ae678['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x49fb07,_0x7ad8de,_0x5135a9){if(this['_addDescriptionItems'](_0x49fb07,_0x7ad8de),_0x5135a9&&_0x5135a9['getFirstRange']()&&!_0x7ad8de['getFirstRange']()['end']['isEqual'](_0x5135a9['getFirstRange']()['start'])){const _0x3798f8=_0x49fb07[_0x49fb07['length']-0x1],_0x4f3131='insertion'==_0x7ad8de['type']?'add':'remove';_0x3798f8&&'text'==_0x3798f8['type']&&(_0x3798f8[_0x4f3131]+='\x0a');}}}class U extends _0x7c1c66{['afterInit'](){const _0x57b326=this['editor'],_0x52028d=_0x57b326['plugins']['get']('TrackChangesEditing');_0x57b326['commands']['get']('showAIAssistant')&&_0x52028d['enableCommand']('showAIAssistant');}}class V extends _0x7c1c66{['afterInit'](){const _0x5c0d00=this['editor'],_0x417e90=_0x5c0d00['locale'];if(!_0x5c0d00['plugins']['has']('AlignmentEditing'))return;const _0x275277=_0x5c0d00['plugins']['get']('TrackChangesEditing');_0x275277['enableDefaultAttributesIntegration']('alignment'),_0x275277['registerBlockAttribute']('alignment'),_0x275277['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x417e90,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x277dd3=this['editor'],_0x2a8719=_0x277dd3['locale'];_0x277dd3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cd8dc=>{if('formatBlock'!=_0x2cd8dc['type'])return;const {data:_0x3b86a4}=_0x2cd8dc;if(_0x3b86a4&&'alignment'==_0x3b86a4['commandName']){const _0x98786f=_0x3b86a4['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2a8719,'*Format:*\x20%0',function(_0x5f031f){switch(_0x5f031f){case'left':return o(_0x2a8719,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2a8719,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2a8719,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2a8719,'FORMAT_JUSTIFY_TEXT');}}(_0x98786f))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x7c1c66{['afterInit'](){const _0x387b35=this['editor'],_0x10267d=_0x387b35['plugins']['get']('TrackChangesEditing'),_0x25217f=_0x387b35['locale'];for(const _0x4e667c of ti){if(!_0x387b35['plugins']['has'](_0x4e667c))continue;const _0x2dbde2=_0x4e667c['slice'](0x0,-0x7)['toLowerCase'](),_0x42f78b='FORMAT_'+_0x2dbde2['toUpperCase']();_0x10267d['enableDefaultAttributesIntegration'](_0x2dbde2),_0x10267d['registerInlineAttribute'](_0x2dbde2),_0x10267d['descriptionFactory']['registerAttributeLabel'](_0x2dbde2,o(_0x25217f,_0x42f78b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x107a3f=this['editor'],_0x5aaf00=_0x107a3f['locale'],_0x4f53e2=_0x107a3f['plugins']['get']('TrackChangesEditing');function _0x2508f7(_0x3a95fb,_0x334999){_0x4f53e2['descriptionFactory']['registerDescriptionCallback'](_0x826153=>{if('formatInline'!=_0x826153['type'])return;const {data:_0x4bbd32}=_0x826153;return _0x4bbd32&&_0x4bbd32['commandName']===_0x3a95fb?_0x4bbd32['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5aaf00,'*Format:*\x20%0',_0x334999)}:{'type':'format','content':o(_0x5aaf00,'*Remove\x20format:*\x20%0',_0x334999)}:void 0x0;});}_0x2508f7('bold',o(_0x5aaf00,'FORMAT_BOLD')),_0x2508f7('italic',o(_0x5aaf00,'FORMAT_ITALIC')),_0x2508f7('underline',o(_0x5aaf00,'FORMAT_UNDERLINE')),_0x2508f7('code',o(_0x5aaf00,'FORMAT_CODE')),_0x2508f7('strikethrough',o(_0x5aaf00,'FORMAT_STRIKETHROUGH')),_0x2508f7('subscript',o(_0x5aaf00,'FORMAT_SUBSCRIPT')),_0x2508f7('superscript',o(_0x5aaf00,'FORMAT_SUPERSCRIPT'));}}class F extends _0x7c1c66{['afterInit'](){const _0x5b2c70=this['editor'],_0x509033=_0x5b2c70['locale'];if(!_0x5b2c70['plugins']['has']('BlockQuoteEditing'))return;const _0x598fdd=_0x5b2c70['plugins']['get']('TrackChangesEditing'),_0x222f58=this['editor']['commands']['get']('blockQuote');_0x598fdd['enableCommand']('blockQuote',(_0x5bd0eb,_0x267ef2={})=>{const _0x538473=this['editor']['model']['document']['selection'],_0x1356b2=_0x267ef2&&void 0x0!==_0x267ef2['forceValue']?_0x267ef2['forceValue']:!_0x222f58['value'];let _0x58befe=[];if(_0x1356b2){const _0x3203d2=Array['from'](_0x538473['getSelectedBlocks']())['filter'](_0x5b5a48=>oo(_0x5b5a48)||function(_0x37857e,_0x1602e2){const _0x58053b=_0x1602e2['checkChild'](_0x37857e['parent'],'blockQuote'),_0x19ccc9=_0x1602e2['checkChild'](['$root','blockQuote'],_0x37857e);return _0x58053b&&_0x19ccc9;}(_0x5b5a48,this['editor']['model']['schema']));_0x58befe=to(_0x3203d2,_0x5b2c70['model']);}else{const _0x58a1bd=Array['from'](_0x538473['getSelectedBlocks']())['filter'](_0x237a7f=>oo(_0x237a7f));_0x58befe=to(_0x58a1bd,_0x5b2c70['model']);}_0x5b2c70['model']['change'](()=>{for(const _0x2d5dd2 of _0x58befe)_0x598fdd['markBlockFormat'](_0x2d5dd2,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1356b2}]});});}),_0x598fdd['descriptionFactory']['registerDescriptionCallback'](_0x36c5ae=>{const {data:_0x5f4aff}=_0x36c5ae;if(_0x5f4aff&&'blockQuote'==_0x5f4aff['commandName']){const _0x54f2f9=o(_0x509033,'ELEMENT_BLOCK_QUOTE');return _0x5f4aff['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x509033,'*Set\x20format:*\x20%0',_0x54f2f9)}:{'type':'format','content':o(_0x509033,'*Remove\x20format:*\x20%0',_0x54f2f9)};}});}}function oo(_0x5131f9){return'blockQuote'==_0x5131f9['parent']['name'];}class L extends _0x7c1c66{['afterInit'](){const _0x524a8d=this['editor'],_0x36b066=_0x524a8d['locale'],_0x7acf27=_0x524a8d['plugins']['get']('TrackChangesEditing');_0x524a8d['plugins']['has']('BookmarkEditing')&&(_0x7acf27['enableCommand']('insertBookmark'),_0x7acf27['enableDefaultAttributesIntegration']('updateBookmark'),_0x7acf27['registerBlockAttribute']('bookmarkId'),_0x7acf27['descriptionFactory']['registerDescriptionCallback'](_0x35dd94=>{if('insertion'!=_0x35dd94['type']&&'deletion'!=_0x35dd94['type']&&'attribute'!=_0x35dd94['type'])return;const _0x2f6278=_0x35dd94['getContainedElement']();if(null==_0x2f6278)return;if(!_0x2f6278['is']('element','bookmark'))return;const _0x1058d0=_0x2f6278['getAttribute']('bookmarkId');if('insertion'==_0x35dd94['type'])return{'type':'insertion','content':o(_0x36b066,'*Insert:*\x20%0','\x22'+_0x1058d0+'\x22\x20'+o(_0x36b066,'ELEMENT_BOOKMARK'))};if('deletion'==_0x35dd94['type'])return{'type':'deletion','content':o(_0x36b066,'*Remove:*\x20%0','\x22'+_0x1058d0+'\x22\x20'+o(_0x36b066,'ELEMENT_BOOKMARK'))};const {data:_0x5027fd}=_0x35dd94;if(!_0x5027fd||'bookmarkId'!=_0x5027fd['key'])return;return{'type':'format','content':o(_0x36b066,'*Set\x20bookmark:*\x20%0','\x22'+_0x5027fd['newValue']+'\x22')};}));}}class J extends _0x7c1c66{['afterInit'](){const _0x4c3960=this['editor'];_0x4c3960['plugins']['has']('CaseChange')&&(_0x4c3960['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4c3960['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4c3960['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x7c1c66{['afterInit'](){const _0xeed59f=this['editor'];_0xeed59f['commands']['get']('ckbox')&&_0xeed59f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x7c1c66{['afterInit'](){const _0x1c4604=this['editor'];if(!_0x1c4604['plugins']['has']('CodeBlock'))return;const _0x5a522f=_0x1c4604['plugins']['get']('TrackChangesEditing'),_0x521f1e=_0x1c4604['locale'],_0x349ca9=_0x1c4604['config']['get']('codeBlock')['languages'],_0x36c867=_0x1c4604['commands']['get']('codeBlock');_0x5a522f['enableCommand']('indentCodeBlock'),_0x5a522f['enableCommand']('outdentCodeBlock'),_0x5a522f['enableCommand']('codeBlock',(_0x4e3340,_0x10f45f={})=>{const _0x1f383d=_0x1c4604['model'],_0x151131=_0x1c4604['model']['document']['selection'],_0x59aebd=_0x10f45f&&void 0x0!==_0x10f45f['forceValue']?_0x10f45f['forceValue']:!_0x36c867['value'];let _0x46b4a2;_0x10f45f['language']||(_0x10f45f['language']=_0x349ca9[0x0]['language']),_0x46b4a2=_0x59aebd?Array['from'](_0x151131['getSelectedBlocks']())['filter'](_0x3d9cc7=>eo(_0x3d9cc7)||function(_0xe10138,_0x11c777){if(_0xe10138['is']('rootElement')||_0x11c777['isLimit'](_0xe10138))return!0x1;return _0x11c777['checkChild'](_0xe10138['parent'],'codeBlock');}(_0x3d9cc7,_0x1f383d['schema'])):Array['from'](_0x151131['getSelectedBlocks']())['filter'](_0x4b0660=>eo(_0x4b0660));const _0x3cc3a3=to(_0x46b4a2,_0x1f383d);_0x1f383d['change'](()=>{for(const _0x2eff9b of _0x3cc3a3)_0x5a522f['markBlockFormat'](_0x2eff9b,{'commandName':'codeBlock','commandParams':[{..._0x10f45f,'forceValue':_0x59aebd}],'formatGroupId':'blockName'});});}),(_0x5a522f['descriptionFactory']['registerElementLabel']('codeBlock',_0x55d125=>o(_0x521f1e,'ELEMENT_CODE_BLOCK',_0x55d125)),_0x5a522f['descriptionFactory']['registerDescriptionCallback'](_0x38c571=>{if('formatBlock'!=_0x38c571['type'])return;const _0x11752f=_0x521f1e['t'],{data:_0x5664fe}=_0x38c571;if(!_0x5664fe||'codeBlock'!=_0x5664fe['commandName'])return;const _0x162ce6=_0x5664fe['commandParams'][0x0]['language'],_0x46a202=_0x11752f(_0x349ca9['find'](_0x1558ad=>_0x1558ad['language']===_0x162ce6)['label'])['toLowerCase']();return _0x5664fe['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x521f1e,'*Set\x20format:*\x20%0',o(_0x521f1e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x46a202+')')}:{'type':'format','content':o(_0x521f1e,'*Remove\x20format:*\x20%0',o(_0x521f1e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xa70a0f){return'codeBlock'==_0xa70a0f['name'];}class z extends _0x7c1c66{['afterInit'](){const _0x3f1626=this['editor'];if(!_0x3f1626['plugins']['has']('CommentsEditing'))return;_0x3f1626['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x137598,_0x3c3a5a,_0xb112e8){const _0x368890=[];for(const _0x5e4c7f of _0x3c3a5a['getItems']())_0x5e4c7f['hasAttribute'](_0x137598)&&_0x368890['push'](_0xb112e8['createRangeOn'](_0x5e4c7f));return _0x368890;}function De(_0x3a8963,_0x3d4700,{showActiveMarker:_0x431e5c=!0x0}={}){const _0x4ebbb4=_0x3a8963['plugins']['get']('TrackChangesEditing');return(_0x477ef2,_0x471269,_0x557aaf)=>{if(!_0x557aaf['consumable']['test'](_0x471269['markerRange'],_0x477ef2['name']))return;const _0x16ad5f=_0x471269['markerRange']['getWalker'](),_0x47f7aa=_0x471269['markerRange']['start'],_0x48fdd5=_0x3a8963['model']['schema'];let _0x2a8626=null,_0x1a983b=null,_0xa8a58b=!0x1,_0x4fbd40=!0x1;for(const _0x2661bf of _0x16ad5f){const _0x173750=_0x2661bf['item'];_0xa8a58b=_0xa8a58b||_0x48fdd5['isContent'](_0x173750);const _0x54ce94=_0x557aaf['mapper']['toViewElement'](_0x173750);if(_0x54ce94&&_0x54ce94['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2661bf['type']&&(_0x48fdd5['isBlock'](_0x173750)&&!_0x48fdd5['isLimit'](_0x173750)&&(_0x173750['nextSibling']||_0x47f7aa['isAtEnd']?_0x2a8626&&_0x2a8626['parent']==_0x173750||(_0x2a8626=_0x173750,_0x5d7049(_0x2661bf['previousPosition']),_0x4fbd40=!0x0):_0x1a983b=_0x1a983b||_0x2661bf['previousPosition']));}function _0x5d7049(_0x434d07){const {authorId:_0x60fb75}=_0x4ebbb4['_splitMarkerName'](_0x471269['markerName']),_0x275442=_0x557aaf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3d4700,'data-author-id':_0x60fb75}),_0x372e68=_0x557aaf['mapper']['toViewPosition'](_0x434d07);_0x431e5c&&_0x4ebbb4['activeMarkers']['includes'](_0x471269['markerName'])&&_0x557aaf['writer']['addClass']('ck-suggestion-marker--active',_0x275442),_0x557aaf['writer']['insert'](_0x372e68,_0x275442),_0x557aaf['mapper']['bindElementToMarker'](_0x275442,_0x471269['markerName']);}_0xa8a58b||_0x4fbd40||!_0x1a983b||_0x5d7049(_0x1a983b);};}class K extends _0x7c1c66{static get['requires'](){return[_0x1eb07c];}['init'](){const _0x41a075=this['editor'],_0x4dfa5b=_0x41a075['plugins']['get']('TrackChangesEditing');_0x4dfa5b['enableCommand']('delete');const _0x433bd3=_0x41a075['commands']['get']('deleteForward');_0x4dfa5b['enableCommand']('deleteForward',(_0x5cd6db,_0xd4a260={})=>{const _0x3a06f8=_0x41a075['model']['createSelection'](_0x41a075['model']['document']['selection']);_0x3a06f8['isCollapsed']&&_0x41a075['model']['modifySelection'](_0x3a06f8,{'direction':'forward','unit':_0xd4a260['unit']});const _0x1f3217=_0x3a06f8['getFirstRange'](),_0x4794a4=_0x3af705['fromRange'](_0x1f3217);let _0x3658a2;_0x5cd6db(_0xd4a260),_0x3658a2='$graveyard'==_0x4794a4['root']['rootName']?_0x41a075['model']['createRange'](_0x1f3217['start']):_0x41a075['model']['createRange'](_0x4794a4['start'],_0x4794a4['end']),_0x4794a4['detach'](),_0x41a075['model']['enqueueChange'](_0x433bd3['buffer']['batch'],_0x2433ea=>{_0x433bd3['buffer']['lock'](),_0x2433ea['setSelection'](_0x2433ea['createRange'](_0x3658a2['end'])),_0x433bd3['buffer']['unlock']();});}),_0x41a075['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x41a075,'merge'),{'priority':'high'}),_0x41a075['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1b5a62,_0x2542ab,_0x1dfd69)=>{_0x1dfd69['options']['showSuggestionHighlights']&&De(_0x41a075,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1b5a62,_0x2542ab,_0x1dfd69);},{'priority':'high'}),_0x41a075['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4ce5be,_0x3da3c7,_0x45a700)=>{const _0x264773=_0x45a700['mapper']['markerNameToElements'](_0x3da3c7['markerName']);if(_0x264773){for(const _0x2098af of _0x264773)_0x2098af['is']('uiElement')&&(_0x45a700['mapper']['unbindElementFromMarkerName'](_0x2098af,_0x3da3c7['markerName']),_0x45a700['writer']['remove'](_0x2098af));}},{'priority':'high'});}}class W extends _0x7c1c66{['afterInit'](){const _0x503cc9=this['editor'];if(!_0x503cc9['plugins']['has']('ListEditing'))return;const _0x3790dd=_0x503cc9['locale'],_0x2102af=_0x503cc9['plugins']['get']('TrackChangesEditing'),_0x4ac473=_0x503cc9['plugins']['has']('TodoListEditing'),_0x917cb3=!!_0x503cc9['config']['get']('list.multiBlock');function _0x581667(_0x3b2f95){return{'type':'format','content':''+o(_0x3790dd,'*Set\x20format:*\x20%0',_0x3b2f95)};}function _0x2f05aa(_0x338afe){return{'type':'format','content':''+o(_0x3790dd,'*Remove\x20format:*\x20%0',_0x338afe)};}_0x2102af['enableDefaultAttributesIntegration']('numberedList'),_0x2102af['enableDefaultAttributesIntegration']('bulletedList'),_0x2102af['enableDefaultAttributesIntegration']('customNumberedList'),_0x2102af['enableDefaultAttributesIntegration']('customBulletedList'),_0x2102af['enableDefaultAttributesIntegration']('indentList'),_0x2102af['enableDefaultAttributesIntegration']('outdentList'),_0x2102af['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2102af['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2102af['registerBlockAttribute']('listItemId'),_0x2102af['registerBlockAttribute']('listType'),_0x2102af['registerBlockAttribute']('listIndent'),_0x917cb3&&(_0x2102af['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2102af['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4ac473&&(_0x2102af['enableDefaultAttributesIntegration']('todoList'),_0x2102af['enableDefaultAttributesIntegration']('checkTodoList'),_0x2102af['registerBlockAttribute']('todoListChecked'),_0x2102af['descriptionFactory']['registerDescriptionCallback'](_0x504bfa=>{const {data:_0x5ccf4d}=_0x504bfa;if(_0x5ccf4d&&'todoListChecked'==_0x5ccf4d['key'])return{'type':'format','content':_0x5ccf4d['newValue']?o(_0x3790dd,'*Check\x20item*'):o(_0x3790dd,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x25bd98=>{if(_0x25bd98['batch']['isUndo'])return!0x1;let _0x2843a2=!0x1;const _0xf4c820=_0x2102af['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x16773b=>'todoListChecked'===_0x2102af['_getAttributeKey'](_0x16773b));for(const _0x540225 of _0xf4c820){'todo'!=_0x540225['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2102af['_findSuggestions'](_0x540225['getFirstRange'](),'attribute')['find'](_0xca6311=>'listType'===_0x2102af['_getAttributeKey'](_0xca6311['suggestion']))||(_0x25bd98['removeMarker'](_0x540225['getFirstMarker']()),_0x2843a2=!0x0));}return _0x2843a2;})),_0x2102af['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3790dd,'FORMAT_INDENT'));const _0xfb2f99={'type':'format','content':''};_0x2102af['descriptionFactory']['registerDescriptionCallback'](_0x232160=>{const {data:_0x3e5b39}=_0x232160;if(!_0x3e5b39||'listType'!=_0x3e5b39['key'])return;let _0x42603c=_0x232160['head'];for(;_0x42603c;){if(_0x42603c['data']&&(('listStyle'==_0x42603c['data']['key']||'listMarkerStyle'==_0x42603c['data']['key'])&&(_0x42603c['data']['newValue']&&'default'!=_0x42603c['data']['newValue']||'default'!=_0x42603c['data']['oldValue']&&!_0x3e5b39['newValue'])||!_0x917cb3&&_0x42603c['data']['key']==m))return _0xfb2f99;_0x42603c=_0x42603c['next'];}if(null==_0x3e5b39['newValue'])switch(_0x3e5b39['oldValue']){case'bulleted':return _0x2f05aa(o(_0x3790dd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2f05aa(o(_0x3790dd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2f05aa(o(_0x3790dd,'ELEMENT_TODO_LIST'));}switch(_0x3e5b39['newValue']){case'bulleted':return _0x581667(o(_0x3790dd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x581667(o(_0x3790dd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x581667(o(_0x3790dd,'ELEMENT_TODO_LIST'));}}),_0x2102af['descriptionFactory']['registerDescriptionCallback'](_0x46cdfb=>{const {data:_0x578b12}=_0x46cdfb;if(_0x578b12&&'listIndent'==_0x578b12['key'])return null==_0x578b12['newValue']||null==_0x578b12['oldValue']&&0x0==_0x578b12['newValue']?_0xfb2f99:void 0x0;}),_0x2102af['descriptionFactory']['registerDescriptionCallback'](_0x5b1039=>{if('attribute'!=_0x5b1039['type'])return;const {data:_0x589d57}=_0x5b1039;if(!_0x589d57||'listItemId'!=_0x589d57['key'])return;const _0x3b17ad=Te(_0x5b1039);return'newValue'==_0x3b17ad?{'type':'format','content':o(_0x3790dd,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3b17ad?{'type':'format','content':o(_0x3790dd,'*Split:*\x20list\x20item')}:_0xfb2f99;}),_0x503cc9['model']['document']['registerPostFixer'](_0x1ea38b=>this['listItemIdFixer'](_0x1ea38b)),_0x503cc9['model']['document']['registerPostFixer'](_0x9f8e67=>this['noTrackChangesFixer'](_0x9f8e67)),_0x503cc9['model']['document']['on']('change:data',(_0x17ea6e,_0x35327e)=>{if(_0x35327e['isUndo']||!_0x35327e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x6511a3){if(_0x6511a3['batch']['isUndo']||!_0x6511a3['batch']['isLocal'])return!0x1;let _0x4bc014=!0x1;const _0x29b6fa=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49b82f=>_0x49b82f['data']&&'listItemId'==_0x49b82f['data']['key'])['filter'](_0x47efde=>_0x47efde['data']['newValue']&&_0x47efde['data']['oldValue']);for(const _0xc5ff77 of _0x29b6fa)Te(_0xc5ff77)||(_0x6511a3['removeMarker'](_0xc5ff77['getFirstMarker']()),_0x4bc014=!0x0);return _0x4bc014;}['noTrackChangesFixer'](_0x120bd5){if(_0x120bd5['batch']['isUndo']||!_0x120bd5['batch']['isLocal'])return!0x1;const _0x5e569d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5e569d['trackChangesCommand']['value'])return!0x1;let _0x207566=!0x1;const _0x2a5407=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x44b2a4=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3afa33=>'attribute'==_0x3afa33['type'])['filter'](_0x18821a=>_0x2a5407['includes'](_0x18821a['attributeKey']));if(0x0==_0x44b2a4['length'])return _0x207566;for(const _0xfab0f9 of _0x44b2a4){const _0x22c58a=_0x5e569d['_findSuggestions'](_0xfab0f9['range'],'attribute')['filter'](_0x9ebbf=>!_0x9ebbf['meta']['isNextTo'])['map'](_0x492c99=>_0x492c99['suggestion'])['filter'](_0xa98595=>{const _0x1f7ffb=_0x5e569d['_getAttributeKey'](_0xa98595);return _0x2a5407['includes'](_0x1f7ffb);});if(_0x22c58a['length']){for(const _0x400afc of _0x22c58a)_0x120bd5['removeMarker'](_0x400afc['getFirstMarker']());_0x207566=!0x0;}}return _0x207566;}['assureChains'](){const _0x3e73c6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52e54a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xb65040;const _0x21dd8b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xa743da=>{if(_0xa743da['data']['oldRange']||!_0xa743da['data']['newRange'])return null;if(!_0xa743da['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x19ec2f}=_0x3e73c6['_splitMarkerName'](_0xa743da['name']);if(!_0x3e73c6['hasSuggestion'](_0x19ec2f))return null;const _0x28b073=_0x3e73c6['getSuggestion'](_0x19ec2f);return _0x52e54a['includes'](_0x28b073['data']['key']);})['map'](_0x18b1c4=>{const {id:_0x3b1cc7}=_0x3e73c6['_splitMarkerName'](_0x18b1c4['name']),_0x2c870f=_0x3e73c6['getSuggestion'](_0x3b1cc7);return _0xb65040=_0x2c870f['attributes']['groupId'],_0x2c870f['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x21dd8b['size'])return;const _0x1a2ca0=_0x3e73c6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x290750=>'attribute'==_0x290750['type']&&_0x290750['data']&&_0x52e54a['includes'](_0x290750['data']['key'])&&_0x290750['attributes']['groupId']!=_0xb65040)['map'](_0x3dcb37=>({'listItem':_0x3dcb37['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3dcb37['attributes']['groupId']})),_0x4461da=new Set();for(const {groupId:_0x36c8ec,listItem:_0x8269c4}of _0x1a2ca0)_0x21dd8b['has'](_0x8269c4)&&_0x4461da['add'](_0x36c8ec);for(const _0x130c4d of _0x3e73c6['getSuggestions']())_0x4461da['has'](_0x130c4d['attributes']['groupId'])&&_0x130c4d['setAttribute']('groupId',_0xb65040);}['_supportLegacySuggestions'](){const _0x2893d2=this['editor'],_0x5910e7=_0x2893d2['locale'],_0x1c11b5=_0x2893d2['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1c11b5['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3d89bd,_0x1c9146){const _0x1efffe=[];for(let _0x5d0c6e of _0x3d89bd)_0x5d0c6e['start']['nodeAfter']===_0x5d0c6e['end']['parent']&&(_0x5d0c6e=_0x2893d2['model']['createRange'](_0x2893d2['model']['createPositionAt'](_0x5d0c6e['start']['nodeAfter'],0x0))),_0x1efffe['push'](_0x5d0c6e);_0x2893d2['model']['change'](_0x277267=>{const _0x538f0b=_0x2893d2['model']['document']['selection'],_0x53183=Array['from'](_0x538f0b['getRanges']())['map'](_0xd54422=>_0x3af705['fromRange'](_0xd54422));_0x277267['setSelection'](_0x1efffe),_0x2893d2['commands']['get'](_0x1c9146['commandName'])['refresh'](),_0x1c9146['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2893d2['execute'](_0x1c9146['commandName'],..._0x1c9146['commandParams']),_0x277267['setSelection'](_0x53183);for(const _0x6a1340 of _0x53183)_0x6a1340['detach']();});}),_0x1c11b5['descriptionFactory']['registerElementLabel'](function(_0x5320d4){const _0x7bf957=!_0x2893d2['model']['schema']['isObject'](_0x5320d4),_0x2cc258=_0x5320d4['previousSibling'],_0x18d945=_0x5320d4['nextSibling'],_0x24abe4=_0x5320d4['getAttribute']('listItemId'),_0x21be3a=!_0x2cc258||_0x2cc258['getAttribute']('listItemId')!==_0x24abe4,_0x147bf7=!_0x18d945||_0x18d945['getAttribute']('listItemId')!==_0x24abe4;return _0x7bf957&&Boolean(_0x24abe4)&&_0x21be3a&&_0x147bf7;},_0xe950d=>o(_0x5910e7,'ELEMENT_LIST_ITEM',_0xe950d));}['_registerLegacyDescription'](){const _0x43ff54=this['editor'],_0x48e19e=_0x43ff54['locale'];function _0x38aa2c(_0x503270){const _0x57b697=_0x43ff54['commands']['get']('bulletedList')['value'],_0x3c3915=_0x43ff54['commands']['get']('numberedList')['value'];return'numberedList'===_0x503270?_0x57b697:_0x3c3915;}_0x43ff54['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x176905){if('formatBlock'!=_0x176905['type'])return;const {data:_0x20ed2f}=_0x176905;if(!_0x20ed2f)return;let _0x1641af,_0x5b647a,_0x185989,_0x3cf4e4;switch(_0x20ed2f['commandName']){case'bulletedList':_0x185989=_0x20ed2f['commandParams'][0x0]['forceValue'],_0x3cf4e4=_0x38aa2c(_0x20ed2f['commandName']),_0x1641af=_0x185989?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3cf4e4&&_0x43ff54['config']['get']('list.multiBlock')||(_0x1641af='*Change\x20to:*\x20%0'),_0x5b647a={'type':'format','content':o(_0x48e19e,_0x1641af,o(_0x48e19e,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x185989=_0x20ed2f['commandParams'][0x0]['forceValue'],_0x3cf4e4=_0x38aa2c(_0x20ed2f['commandName']),_0x1641af=_0x185989?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3cf4e4&&_0x43ff54['config']['get']('list.multiBlock')||(_0x1641af='*Change\x20to:*\x20%0'),_0x5b647a={'type':'format','content':o(_0x48e19e,_0x1641af,o(_0x48e19e,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1641af='*Indent:*\x20%0',_0x5b647a={'type':'format','content':o(_0x48e19e,_0x1641af,o(_0x48e19e,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1641af=function(_0x39b6de){const _0x237bfb=_0x39b6de['getFirstRange']();let _0x357548=_0x237bfb['start']['nodeAfter'];for(;_0x357548&&_0x237bfb['containsItem'](_0x357548);){if(_0x357548['getAttribute']('listIndent')>0x0)return!0x1;_0x357548=_0x357548['nextSibling'];}return!0x0;}(_0x176905)?o(_0x48e19e,'*Format:*\x20remove\x20from\x20%0',o(_0x48e19e,function(_0x16e811){return'ELEMENT_'+_0x16e811['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x176905))):o(_0x48e19e,'*Outdent:*\x20%0',o(_0x48e19e,'ELEMENT_LIST_ITEM')),_0x5b647a={'type':'format','content':_0x1641af};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x20ed2f['multipleBlocks']&&(_0x1641af='*Merge:*\x20%0',_0x5b647a={'type':'deletion','content':o(_0x48e19e,_0x1641af,o(_0x48e19e,'ELEMENT_LIST_ITEM'))});}return _0x5b647a;});}}function Te(_0x4b36a9){let _0x4111b0=_0x4b36a9['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4111b0;){const _0x76d4cf=_0x4111b0['getAttribute']('listItemId');if(!_0x76d4cf)return!0x1;if(_0x76d4cf==_0x4b36a9['data']['newValue'])return'newValue';if(_0x76d4cf==_0x4b36a9['data']['oldValue'])return'oldValue';_0x4111b0=_0x4111b0['previousSibling'];}return!0x1;}class Se extends _0x7c1c66{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x68df=this['editor']['config']['get']('list.properties'),_0xd91036=this['editor']['plugins']['get']('TrackChangesEditing');_0x68df['styles']&&(_0xd91036['enableDefaultAttributesIntegration']('listStyle'),_0xd91036['registerBlockAttribute']('listStyle')),_0x68df['reversed']&&(_0xd91036['enableDefaultAttributesIntegration']('listReversed'),_0xd91036['registerBlockAttribute']('listReversed')),_0x68df['startIndex']&&(_0xd91036['enableDefaultAttributesIntegration']('listStart'),_0xd91036['registerBlockAttribute']('listStart'));const _0x4efd28={'type':'format','content':''};_0xd91036['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xe041be=this['editor']['locale'];_0xd91036['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xe041be,'FORMAT_LIST_REVERSED')),_0xd91036['descriptionFactory']['registerDescriptionCallback'](_0x31fae4=>{const {data:_0x21135f}=_0x31fae4;if(_0x21135f&&'listReversed'==_0x21135f['key'])return null==_0x21135f['newValue']||0x0==_0x21135f['newValue']&&null==_0x21135f['oldValue']?_0x4efd28:void 0x0;}),_0xd91036['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xe041be,'FORMAT_LIST_START')),_0xd91036['descriptionFactory']['registerDescriptionCallback'](_0x1f4304=>{const {data:_0x1c0e57}=_0x1f4304;if(_0x1c0e57&&'listStart'==_0x1c0e57['key'])return null==_0x1c0e57['newValue']||0x1==_0x1c0e57['newValue']&&null==_0x1c0e57['oldValue']?_0x4efd28:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x40390b=>{if(_0x40390b['batch']['isUndo'])return!0x1;let _0x203ef6=!0x1;const _0x23cb87=_0xd91036['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34f039=>{const _0x721ec1=_0xd91036['_getAttributeKey'](_0x34f039);return'listStart'==_0x721ec1||'listReversed'==_0x721ec1;});for(const _0x585318 of _0x23cb87){const _0x1afcad=_0x585318['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1afcad||'customNumbered'==_0x1afcad)continue;_0xd91036['_findSuggestions'](_0x585318['getFirstRange'](),'attribute')['find'](_0x56b27b=>'listType'==_0xd91036['_getAttributeKey'](_0x56b27b['suggestion']))||(_0x40390b['removeMarker'](_0x585318['getFirstMarker']()),_0x203ef6=!0x0);}return _0x203ef6;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x42e271){const _0x30ecce=this['editor']['locale'],{data:_0x2fcbfd}=_0x42e271,_0xdb130e={'type':'format','content':''};if(!_0x2fcbfd||'listStyle'!=_0x2fcbfd['key'])return;if(!_0x2fcbfd['oldValue'])return'default'==_0x2fcbfd['newValue']?_0xdb130e:{'type':'format','content':''+o(_0x30ecce,'*Set\x20format:*\x20%0',o(_0x30ecce,this['_getTranslationKeyForListStyle'](_0x2fcbfd['newValue'])))};if(!_0x2fcbfd['newValue']){if('default'==_0x2fcbfd['oldValue'])return _0xdb130e;let _0x15ff88=_0x42e271['head'];for(;_0x15ff88;){if(_0x15ff88['data']&&'listType'==_0x15ff88['data']['key']&&_0x15ff88['data']['newValue'])return _0xdb130e;_0x15ff88=_0x15ff88['next'];}return{'type':'format','content':''+o(_0x30ecce,'*Remove\x20format:*\x20%0',o(_0x30ecce,this['_getTranslationKeyForListStyle'](_0x2fcbfd['oldValue'])))};}if('default'!=_0x2fcbfd['newValue'])return{'type':'format','content':''+o(_0x30ecce,'*Set\x20format:*\x20%0',o(_0x30ecce,this['_getTranslationKeyForListStyle'](_0x2fcbfd['newValue'])))};let _0x189004=_0x42e271['head'];for(;_0x189004;){if(_0x189004['data']&&'listType'==_0x189004['data']['key']&&_0x189004['data']['newValue']&&_0x189004['data']['oldValue'])return _0xdb130e;_0x189004=_0x189004['next'];}return{'type':'format','content':o(_0x30ecce,'*Set\x20format:*\x20%0',o(_0x30ecce,'ELEMENT_'+_0x42e271['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x117718=this['editor'],_0x19aa73=_0x117718['locale'];_0x117718['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x162813=>{if('formatBlock'!=_0x162813['type'])return;const {data:_0x3891e3}=_0x162813;if(!_0x3891e3)return;let _0x49b848,_0x5000e4;switch(_0x3891e3['commandName']){case'listStyle':_0x49b848='*Change\x20to:*\x20%0',_0x5000e4={'type':'format','content':o(_0x19aa73,_0x49b848,o(_0x19aa73,this['_getTranslationKeyForListStyle'](_0x3891e3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x49b848=_0x3891e3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5000e4={'type':'format','content':o(_0x19aa73,_0x49b848)};break;case'listStart':_0x49b848='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5000e4={'type':'format','content':o(_0x19aa73,_0x49b848,_0x3891e3['commandParams'][0x0]['startIndex'])};}return _0x5000e4;});}['_getTranslationKeyForListStyle'](_0x2537cf){return'ELEMENT_'+function(_0x3b529b){if(_e['includes'](_0x3b529b))return'bulleted';if(Re['includes'](_0x3b529b))return'numbered';return null;}(_0x2537cf)['toUpperCase']()+'_LIST_'+_0x2537cf['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x7c1c66{['afterInit'](){const _0x135914=this['editor'];_0x135914['commands']['get']('emoji')&&_0x135914['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x7c1c66{static get['requires'](){return[_0x238118];}['init'](){const _0x6bc68f=this['editor'],_0x5590a3=_0x6bc68f['plugins']['get']('TrackChangesEditing'),_0x6fdfe8=_0x6bc68f['commands']['get']('enter');_0x5590a3['enableCommand']('enter',()=>{_0x6bc68f['model']['change'](_0x35f3d1=>{const _0x4ee1ae=_0x6bc68f['model']['document']['selection'],_0x8decac=_0x4ee1ae['getFirstPosition'](),_0x43dd93=_0x3af705['fromRange'](_0x4ee1ae['getFirstRange']());if(_0x6fdfe8['enterBlock'](_0x35f3d1)){const _0x1fdc10=_0x6bc68f['model']['createPositionAt'](_0x8decac['parent']['nextSibling'],0x0),_0x2f09c2=_0x35f3d1['createRange'](_0x8decac,_0x1fdc10);_0x5590a3['markInsertion'](_0x2f09c2);}else _0x35f3d1['setSelection'](_0x35f3d1['createRange'](_0x43dd93['end']));_0x43dd93['detach'](),_0x6fdfe8['fire']('afterExecute',{'writer':_0x35f3d1});});}),_0x6bc68f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x6bc68f,'split'),{'priority':'high'}),_0x6bc68f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x47c97e,_0x19fb65,_0x4fa688)=>{const _0x362ac5=_0x4fa688['mapper']['markerNameToElements'](_0x19fb65['markerName']);if(_0x362ac5){for(const _0x9bb5a9 of _0x362ac5)_0x9bb5a9['hasClass']('ck-suggestion-marker-split')&&(_0x4fa688['mapper']['unbindElementFromMarkerName'](_0x9bb5a9,_0x19fb65['markerName']),_0x4fa688['writer']['remove'](_0x9bb5a9));}},{'priority':'high'}),_0x6bc68f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x264d12,_0x355a74,_0x1ffee0)=>{_0x1ffee0['options']['showSuggestionHighlights']&&De(_0x6bc68f,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x264d12,_0x355a74,_0x1ffee0);},{'priority':'high'});}}class Z extends _0x7c1c66{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x30afdd=this['editor']['plugins']['get']('TrackChangesEditing');_0x30afdd['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x30afdd['enableCommand']('findNext'),_0x30afdd['enableCommand']('findPrevious'),_0x30afdd['enableCommand']('replace'),_0x30afdd['enableCommand']('replaceAll');}['handleFindCommand'](_0x3d60a2,_0x3dce8a,_0x35142d={}){const _0x5ed26c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3d60a2(_0x1a0f07=>{let _0x24a58e=('string'==typeof _0x3dce8a?_0x5ed26c['findByTextCallback'](_0x3dce8a,_0x35142d):_0x3dce8a)(_0x1a0f07);Array['isArray'](_0x24a58e)&&(_0x24a58e={'results':_0x24a58e,'searchText':'string'==typeof _0x3dce8a?_0x3dce8a:''});const _0x41820e=_0x24a58e['results']['filter'](_0x230621=>!0x1===this['_isInDeletionRange'](_0x230621,_0x1a0f07['item']));return{..._0x24a58e,'results':_0x41820e};},_0x35142d);}['_isInDeletionRange'](_0x3d711d,_0x4ce8c5){const _0x1793bc=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4ce8c5,_0x3d711d['start']),this['editor']['model']['createPositionAt'](_0x4ce8c5,_0x3d711d['end']));for(const _0x2b1051 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1793bc['getIntersection'](_0x2b1051['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x7c1c66{['afterInit'](){const _0xfcdbcc=this['editor']['locale'],_0x5c17d1=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xf469bd,commandName:_0x289532}of ro)this['editor']['plugins']['has'](_0xf469bd)&&(_0x5c17d1['enableDefaultAttributesIntegration'](_0x289532),_0x5c17d1['registerInlineAttribute'](_0x289532));_0x5c17d1['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xfcdbcc,'FORMAT_FONT_SIZE')),_0x5c17d1['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xfcdbcc,'FORMAT_FONT_FAMILY')),_0x5c17d1['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xfcdbcc,'FORMAT_FONT_COLOR')),_0x5c17d1['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xfcdbcc,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x574c64=this['editor'],_0x2b9669=_0x574c64['locale'];_0x574c64['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40cfbd=>{const _0x41dd42=_0x2b9669['t'];if('formatInline'!=_0x40cfbd['type'])return;const {data:_0x2b4509}=_0x40cfbd;if(null!=_0x2b4509){if('fontSize'==_0x2b4509['commandName']){const _0xaea0c7=_0x2b4509['commandParams'][0x0]['value'];if(_0xaea0c7){const _0x58d502=_0x41dd42(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x353042=>_0x353042['model']==_0xaea0c7)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2b9669,'*Set\x20font\x20size:*\x20%0',_0x58d502)};}return{'type':'format','content':o(_0x2b9669,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2b4509['commandName']){const _0x529fb8=_0x2b4509['commandParams'][0x0]['value'];return _0x529fb8?{'type':'format','content':o(_0x2b9669,'*Set\x20font\x20family:*\x20%0',_0x529fb8)}:{'type':'format','content':o(_0x2b9669,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2b4509['commandName']){const _0x252e0e=_0x2b4509['commandParams'][0x0]['value'];if(_0x252e0e){const _0x3a64b4=_0x480896(this['editor']['config']['get']('fontColor.colors'))['find'](_0x26afa1=>_0x26afa1['model']==_0x252e0e);let _0xfcb854=_0x252e0e,_0xfc8378='';return _0x3a64b4&&(_0xfcb854=_0x3a64b4['label'],_0xfc8378=_0x41dd42(_0xfcb854)['toLowerCase']()),{'type':'format','content':o(_0x2b9669,'*Set\x20font\x20color:*\x20%0',_0xfc8378)['trim'](),'color':{'value':_0x252e0e,'title':_0xfc8378||_0xfcb854}};}return{'type':'format','content':o(_0x2b9669,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2b4509['commandName']){const _0x501628=_0x2b4509['commandParams'][0x0]['value'];if(_0x501628){const _0x303946=_0x480896(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x463c32=>_0x463c32['model']==_0x501628);let _0xe2879a=_0x501628,_0x21f370='';return _0x303946&&(_0xe2879a=_0x303946['label'],_0x21f370=_0x41dd42(_0xe2879a)['toLowerCase']()),{'type':'format','content':o(_0x2b9669,'*Set\x20font\x20background\x20color:*\x20%0',_0x21f370)['trim'](),'color':{'value':_0x501628,'title':_0x21f370||_0xe2879a}};}return{'type':'format','content':o(_0x2b9669,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x7c1c66{['afterInit'](){const _0x903b87=this['editor'],_0x196a19=_0x903b87['plugins']['get']('TrackChangesEditing'),_0x5bcdfb=_0x903b87['commands']['get']('copyFormat'),_0x319c78=_0x903b87['commands']['get']('pasteFormat');_0x5bcdfb&&_0x319c78&&(_0x196a19['enableDefaultAttributesIntegration']('pasteFormat'),_0x196a19['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3f68a8=this['editor'],_0x592c93=_0x3f68a8['locale'];_0x3f68a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c4e2b=>{if('formatBlock'!=_0x2c4e2b['type']&&'formatInline'!=_0x2c4e2b['type'])return;const {data:_0x10816a}=_0x2c4e2b;if(_0x10816a&&'pasteFormat'===_0x10816a['commandName']){const _0x43ad72=[],_0x4e76eb=_0x10816a['commandParams'][0x0];for(const [_0x16222b,_0x309d76]of Object['entries'](_0x4e76eb))_0x43ad72['push'](so(_0x3f68a8,_0x16222b,_0x309d76));return _0x43ad72['length']?{'type':'format','content':o(_0x592c93,'*Set\x20format\x20to:*\x20%0',_0x43ad72['join'](',\x20'))}:{'type':'format','content':o(_0x592c93,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5d0bf1,_0x43181d,_0x3f87d6){const _0x437aec=_0x5d0bf1['locale']['t'],_0x34042d=_0x43181d['split'](/(?=[A-Z])/)['join']('\x20'),_0x530f08=_0x437aec(_0x34042d['charAt'](0x0)['toUpperCase']()+_0x34042d['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3f87d6)return _0x530f08;if('fontColor'===_0x43181d||'fontBackgroundColor'===_0x43181d){const _0x116d65=_0x480896(_0x5d0bf1['config']['get']('fontColor.colors'))['find'](_0x42a55e=>_0x42a55e['model']==_0x3f87d6);return _0x530f08+'\x20('+(_0x116d65?_0x437aec(_0x116d65['label'])['toLowerCase']():_0x3f87d6)+')';}if('fontSize'===_0x43181d&&isNaN(parseFloat(_0x3f87d6))){const _0x3cd3bc=_0x5d0bf1['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5d0bf1['config']['get']('fontSize.options'))['find'](_0x145434=>_0x145434['model']==_0x3f87d6);return _0x530f08+'\x20('+(_0x3cd3bc?_0x437aec(_0x3cd3bc['title'])['toLowerCase']():_0x3f87d6)+')';}return _0x530f08+'\x20('+_0x3f87d6+')';}class it extends _0x7c1c66{['_headingOptions'];['afterInit'](){const _0x4d3e70=this['editor'];if(!_0x4d3e70['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4d3e70['config']['get']('heading.options');const _0x4a482f=_0x4d3e70['locale'],_0x19dedd=_0x4d3e70['plugins']['get']('TrackChangesEditing');_0x19dedd['enableDefaultAttributesIntegration']('heading');for(const _0x2a513e of this['_headingOptions'])'paragraph'!=_0x2a513e['model']&&_0x19dedd['descriptionFactory']['registerElementLabel'](_0x2a513e['model'],_0x2a42f7=>{const _0x38eddc=this['_getHeadingLevel'](_0x2a513e['model']);return null!==_0x38eddc?_0x1dc418(_0x2a42f7,_0x38eddc):_0x3e17c0(_0x2a42f7,_0x2a513e['title']);});function _0x1dc418(_0x136399,_0x4835a8){return o(_0x4a482f,'ELEMENT_HEADING',[_0x136399,_0x4835a8]);}function _0x3e17c0(_0x34b4f2,_0x41fb70){return o(_0x4a482f,'ELEMENT_HEADING_CUSTOM',[_0x34b4f2,_0x41fb70]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10be4b=this['editor'],_0x5d4abf=_0x10be4b['locale'];function _0x3ee727(_0x2a6242,_0x8a1d25){return o(_0x5d4abf,'ELEMENT_HEADING_CUSTOM',[_0x2a6242,_0x8a1d25]);}_0x10be4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38cc43=>{if('formatBlock'!=_0x38cc43['type'])return;const {data:_0x52a3e6}=_0x38cc43;if(_0x52a3e6&&'heading'==_0x52a3e6['commandName']){const _0x4a0a53=_0x52a3e6['commandParams'][0x0]['value'],_0x5c0071=this['_getHeadingLevel'](_0x4a0a53);if(null!==_0x5c0071)return{'type':'format','content':o(_0x5d4abf,'*Change\x20to:*\x20%0',(_0xaccfd=0x1,_0x23d3ce=_0x5c0071,o(_0x5d4abf,'ELEMENT_HEADING',[_0xaccfd,_0x23d3ce])))};const _0x30fc71=this['_headingOptions']['find'](_0x293a19=>_0x293a19['model']===_0x4a0a53)['title'];return{'type':'format','content':o(_0x5d4abf,'*Change\x20to:*\x20%0',_0x3ee727(0x1,_0x30fc71))};}var _0xaccfd,_0x23d3ce;});}['_getHeadingLevel'](_0x1785ea){const _0x62c3fd=_0x1785ea['match'](/^heading(\d+)/);if(_0x62c3fd)return _0x62c3fd[0x1];const _0x4caee5=this['_headingOptions']?.['find'](_0x1b6f51=>_0x1b6f51['model']==_0x1785ea);if(_0x4caee5&&_0x4caee5['view']){const _0x2483c9=_0x4caee5['view'],_0x25cf0e=(_0x2483c9['name']??_0x2483c9)['match'](/^h(\d+)/);if(_0x25cf0e)return _0x25cf0e[0x1];}return null;}}class et extends _0x7c1c66{['afterInit'](){const _0x597d28=this['editor'];if(!_0x597d28['plugins']['has']('HighlightEditing'))return;const _0x10408a=_0x597d28['plugins']['get']('TrackChangesEditing'),_0x17cfc7=_0x597d28['locale'];_0x10408a['enableDefaultAttributesIntegration']('highlight'),_0x10408a['registerInlineAttribute']('highlight'),_0x10408a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x17cfc7,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a9d38=this['editor'],_0x559b79=_0x3a9d38['locale'];_0x3a9d38['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xed06f6=>{if('formatInline'!=_0xed06f6['type'])return;const {data:_0x1d349f}=_0xed06f6;if(_0x1d349f&&'highlight'==_0x1d349f['commandName']){const _0x428e16=_0x559b79['t'],_0x13ee38=_0x1d349f['commandParams'][0x0]['value'];if(_0x13ee38){const _0x49a645=_0x3a9d38['config']['get']('highlight.options')['find'](_0x4ac703=>_0x4ac703['model']==_0x13ee38),_0x4abd4f=_0x428e16(_0x49a645['title'])['toLowerCase']();return{'type':'format','content':o(_0x559b79,'*Set\x20highlight:*\x20%0',_0x4abd4f),'color':{'value':_0x49a645['color'],'title':_0x49a645['title']}};}return{'type':'format','content':o(_0x559b79,'*Remove\x20highlight*',o(_0x559b79,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x7c1c66{['afterInit'](){const _0x21fc30=this['editor'];if(!_0x21fc30['plugins']['has']('HorizontalLineEditing'))return;_0x21fc30['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1288d7=_0x21fc30['plugins']['get']('TrackChangesEditing'),_0x101011=_0x21fc30['locale'];_0x1288d7['descriptionFactory']['registerElementLabel']('horizontalLine',_0x43d1df=>o(_0x101011,'ELEMENT_HORIZONTAL_LINE',_0x43d1df)),_0x21fc30['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x28dd5a,{writer:_0x288319,options:_0x23e902})=>{if(!_0x23e902['showSuggestionHighlights'])return null;const _0x261122=_0x288319['createContainerElement']('div'),_0x510dec=_0x288319['createEmptyElement']('hr');return _0x288319['addClass']('ck-horizontal-line',_0x261122),_0x288319['insert'](_0x288319['createPositionAt'](_0x261122,0x0),_0x510dec),_0x261122;},'converterPriority':'high'});}}class ot extends _0x7c1c66{['afterInit'](){const _0x4bfd8e=this['editor'];if(!_0x4bfd8e['plugins']['has']('HtmlEmbed'))return;const _0x18152f=_0x4bfd8e['plugins']['get']('TrackChangesEditing'),_0xbf720c=_0x4bfd8e['locale'];_0x18152f['descriptionFactory']['registerElementLabel']('rawHtml',_0x4f5b9c=>o(_0xbf720c,'ELEMENT_HTML_EMBED',_0x4f5b9c)),_0x18152f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x18152f['registerBlockAttribute']('value'),_0x18152f['descriptionFactory']['registerDescriptionCallback'](_0x4eaebc=>{if('attribute'!=_0x4eaebc['type'])return;const {data:_0x1b76b5}=_0x4eaebc;if(_0x1b76b5&&'value'==_0x1b76b5['key']&&_0x4eaebc['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x327c94=o(_0xbf720c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xbf720c,'*Change\x20%0\x20content*',_0x327c94)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48023f=this['editor'],_0xbb9f9=_0x48023f['locale'];_0x48023f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c9dc7=>{if('formatBlock'!=_0x5c9dc7['type'])return;const {data:_0x55567f}=_0x5c9dc7;if(_0x55567f&&'htmlEmbed'==_0x55567f['commandName']){const _0x23de74=o(_0xbb9f9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xbb9f9,'*Change\x20%0\x20content*',_0x23de74)};}});}}class rt extends _0x7c1c66{['afterInit'](){const _0x50fb38=this['editor'];if(!_0x50fb38['plugins']['has']('ImageEditing'))return;const _0x4d89d2=_0x50fb38['plugins']['get']('TrackChangesEditing'),_0x5169c3=_0x50fb38['plugins']['get']('ImageUtils'),_0x2d4a42=_0x50fb38['locale'];_0x4d89d2['enableCommand']('insertImage'),_0x4d89d2['descriptionFactory']['registerElementLabel']('imageBlock',_0x4d32f3=>o(_0x2d4a42,'ELEMENT_IMAGE',_0x4d32f3)),_0x4d89d2['descriptionFactory']['registerElementLabel']('imageInline',_0x4500e8=>o(_0x2d4a42,'ELEMENT_INLINE_IMAGE',_0x4500e8)),_0x4d89d2['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2d4a42,'ELEMENT_CAPTION')),_0x50fb38['plugins']['has']('ImageUploadEditing')&&_0x4d89d2['enableCommand']('uploadImage'),_0x50fb38['plugins']['has']('ImageBlockEditing')&&_0x50fb38['plugins']['has']('ImageInlineEditing')&&(_0x4d89d2['enableCommand']('imageTypeInline',(_0x1a22c7,_0x4aeec0)=>{const _0x327065=_0x5169c3['getClosestSelectedImageElement'](_0x50fb38['model']['document']['selection']);_0x50fb38['model']['change'](()=>{_0x4d89d2['markBlockFormat'](_0x327065,{'commandName':'imageTypeInline','commandParams':[_0x4aeec0]},[],'convertBlockImageToInline');});}),_0x4d89d2['enableCommand']('imageTypeBlock',(_0x25d63d,_0x4b517b)=>{_0x50fb38['model']['change'](_0x1e25c0=>{let _0x4c76b3=_0x5169c3['getClosestSelectedImageElement'](_0x50fb38['model']['document']['selection']),_0x32d4f4=_0x1e25c0['createRangeOn'](_0x4c76b3);const _0x337bd3=_0x56514d['fromPosition'](_0x32d4f4['start'],'toPrevious'),_0xb09522=_0x56514d['fromPosition'](_0x32d4f4['end'],'toNext');_0x4d89d2['forceDefaultExecution'](()=>_0x25d63d(_0x4b517b)),_0x4c76b3=_0x5169c3['getClosestSelectedImageElement'](_0x50fb38['model']['document']['selection']),_0x32d4f4=_0x1e25c0['createRangeOn'](_0x4c76b3);const _0x544f70=_0x1e25c0['createRange'](_0x337bd3,_0xb09522);_0x337bd3['detach'](),_0xb09522['detach'](),_0x4d89d2['markBlockFormat'](_0x4c76b3,{'commandName':'imageTypeInline','commandParams':[_0x4b517b]},[],'convertInlineImageToBlock'),_0x544f70['start']['isBefore'](_0x32d4f4['start'])&&_0x4d89d2['markInsertion'](_0x1e25c0['createRange'](_0x544f70['start'],_0x32d4f4['start']),'convertInlineImageToBlock'),_0x32d4f4['end']['isBefore'](_0x544f70['end'])&&_0x4d89d2['markInsertion'](_0x1e25c0['createRange'](_0x32d4f4['end'],_0x544f70['end']),'convertInlineImageToBlock');});}),_0x4d89d2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4d89d2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4d89d2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4d89d2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4d89d2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4d89d2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5be1e8])=>{const _0x391d3a=_0x4d89d2['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x283dee=_0x5be1e8['start'],_0x2c60f7=_0x5be1e8['end'];const _0x515460=_0x50fb38['model']['schema']['getNearestSelectionRange'](_0x283dee,'backward'),_0x50e71c=_0x50fb38['model']['schema']['getNearestSelectionRange'](_0x2c60f7,'forward');_0x515460['isCollapsed']&&(_0x283dee=_0x515460['start']),_0x50e71c['isCollapsed']&&(_0x2c60f7=_0x50e71c['end']),_0x391d3a([_0x50fb38['model']['createRange'](_0x283dee,_0x2c60f7)]);}),_0x4d89d2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4e4d04),_0x4d89d2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4e4d04)),_0x50fb38['plugins']['has']('ImageCaptionEditing')&&(_0x4d89d2['enableCommand']('toggleImageCaption',(_0x103e6c,_0x5e9066)=>{const _0x15e749=_0x50fb38['plugins']['get']('ImageCaptionUtils');let _0x300cb2=_0x5169c3['getClosestSelectedImageElement'](_0x50fb38['model']['document']['selection']),_0x236637=_0x15e749['getCaptionFromImageModelElement'](_0x300cb2);_0x50fb38['model']['change'](()=>{if(_0x236637)return void _0x4d89d2['markDeletion'](_0x50fb38['model']['createRangeOn'](_0x236637));const _0x589b8f=_0x5169c3['isBlockImage'](_0x300cb2);_0x103e6c(_0x5e9066),_0x300cb2=_0x5169c3['getClosestSelectedImageElement'](_0x50fb38['model']['document']['selection']),_0x236637=_0x15e749['getCaptionFromImageModelElement'](_0x300cb2),_0x4d89d2['markInsertion'](_0x50fb38['model']['createRangeOn'](_0x236637),_0x589b8f?null:'imageCaption');});}),_0x4d89d2['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4e4d04));const _0x5d4efe=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x254a8a(_0x4c5e8a,_0x35c42b){const _0xfd6deb=_0x5d4efe['findIndex'](({type:_0x22e947,subType:_0xddafdb})=>_0x4c5e8a['type']==_0x22e947&&_0x4c5e8a['subType']==_0xddafdb),_0x518fac=_0x5d4efe['findIndex'](({type:_0x57b442,subType:_0x1d0852})=>_0x35c42b['type']==_0x57b442&&_0x35c42b['subType']==_0x1d0852);if(_0xfd6deb<0x0||_0x518fac<0x0)return!0x1;const _0x3abffd=_0x4c5e8a['getFirstRange'](),_0x19f8dd=_0x35c42b['getFirstRange']();if((0x0==_0xfd6deb||0x1==_0xfd6deb)&&0x2==_0x518fac&&_0x3abffd['isIntersecting'](_0x19f8dd))return!0x0;if(0x2==_0xfd6deb&&0x3==_0x518fac){const _0x152cc5=_0x4d89d2['_findSuggestions'](_0x3abffd,'insertion')['filter'](({suggestion:_0xb0f84f,meta:_0x428ea3})=>_0x428ea3['isOwn']&&'convertInlineImageToBlock'==_0xb0f84f['subType']);if(_0x152cc5['length']>0x1&&_0x19f8dd['end']['isEqual'](_0x3abffd['start']))return!0x0;if(0x1==_0x152cc5['length']&&(_0x3abffd['start']['isEqual'](_0x19f8dd['end'])||_0x3abffd['end']['isEqual'](_0x19f8dd['start'])))return!0x0;}if(0x3==_0xfd6deb&&0x3==_0x518fac&&_0x3abffd['start']['isBefore'](_0x19f8dd['start'])){const _0x59561f=_0x3abffd['end']['nodeAfter'],_0x54f1fa=_0x19f8dd['start']['nodeBefore'];return _0x5169c3['isBlockImage'](_0x59561f)&&_0x59561f===_0x54f1fa;}return!0x1;}function _0x4e4d04(_0x15ef0d,_0x3e426a){return _0x254a8a(_0x15ef0d,_0x3e426a)?[_0x15ef0d,_0x3e426a]:_0x254a8a(_0x3e426a,_0x15ef0d)?[_0x3e426a,_0x15ef0d]:null;}_0x50fb38['plugins']['has']('ImageResize')&&(_0x4d89d2['enableDefaultAttributesIntegration']('resizeImage'),_0x4d89d2['registerBlockAttribute']('resizedWidth'),_0x4d89d2['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2d4a42,'FORMAT_IMAGE_SIZE'))),_0x50fb38['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4d89d2['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4d89d2['registerBlockAttribute']('alt')),_0x50fb38['plugins']['has']('PictureEditing')&&(_0x4d89d2['registerBlockAttribute']('sources'),_0x4d89d2['descriptionFactory']['registerDescriptionCallback'](_0xe1b03f=>{if('attribute'!=_0xe1b03f['type'])return;const {data:_0x413a43}=_0xe1b03f;return _0x413a43&&'sources'==_0x413a43['key']?{'type':'format','content':''}:void 0x0;})),_0x50fb38['plugins']['has']('ImageSizeAttributes')&&(_0x4d89d2['registerBlockAttribute']('width'),_0x4d89d2['registerBlockAttribute']('height'),_0x4d89d2['descriptionFactory']['registerDescriptionCallback'](_0x39d703=>{if('attribute'!=_0x39d703['type'])return;const {data:_0x8e323d}=_0x39d703;return!_0x8e323d||'width'!=_0x8e323d['key']&&'height'!=_0x8e323d['key']?void 0x0:{'type':'format','content':''};})),_0x4d89d2['descriptionFactory']['registerDescriptionCallback'](_0x73fe52=>{if(!!_0x5d4efe['find'](({type:_0x1c6b38,subType:_0x5a222e})=>_0x73fe52['type']==_0x1c6b38&&_0x73fe52['subType']==_0x5a222e))return _0x73fe52['previous']?{}:void 0x0;}),_0x4d89d2['descriptionFactory']['registerDescriptionCallback'](_0x2dd656=>{if('insertion'==_0x2dd656['type']||'deletion'==_0x2dd656['type']){const _0xcc02c6=_0x2dd656['getContainedElement']();if(_0xcc02c6&&_0xcc02c6['is']('element','caption'))return{'type':'insertion'==_0x2dd656['type']?'addObject':'removeObject','element':_0xcc02c6,'quantity':0x1};}}),_0x4d89d2['descriptionFactory']['registerDescriptionCallback'](_0x51e1ce=>'formatBlock'==_0x51e1ce['type']&&'convertInlineImageToBlock'==_0x51e1ce['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x51e1ce['type']&&'convertBlockImageToInline'==_0x51e1ce['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4d89d2['descriptionFactory']['registerDescriptionCallback'](_0x3e57b5=>{if('attribute'!=_0x3e57b5['type'])return;const {data:_0x539b64}=_0x3e57b5;if(!_0x539b64||'alt'!=_0x539b64['key'])return;const _0x2df26c=_0x539b64['newValue'];return _0x2df26c?{'type':'format','content':o(_0x2d4a42,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2df26c+'\x22')}:{'type':'format','content':o(_0x2d4a42,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d25a8=this['editor'],_0x4144f9=_0x3d25a8['locale'];_0x3d25a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e9a19=>{if('formatBlock'!=_0x3e9a19['type']&&'formatInline'!=_0x3e9a19['type'])return;const {data:_0x12520c}=_0x3e9a19;if(_0x12520c){if('imageTextAlternative'==_0x12520c['commandName']){const _0x24ddf7=_0x12520c['commandParams'][0x0]['newValue'];return _0x24ddf7?{'type':'format','content':o(_0x4144f9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x24ddf7+'\x22')}:{'type':'format','content':o(_0x4144f9,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x12520c['commandName']){const _0x373400=_0x12520c['commandParams'][0x0]['width'];return _0x373400?{'type':'format','content':o(_0x4144f9,'*Set\x20image\x20width:*\x20%0',_0x373400)}:{'type':'format','content':o(_0x4144f9,'*Reset\x20image\x20width*')};}}});}}class at extends _0x7c1c66{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x21421f=this['editor']['locale'],_0x503780=this['editor']['plugins']['get']('TrackChangesEditing');_0x503780['enableDefaultAttributesIntegration']('replaceImageSource'),_0x503780['registerBlockAttribute']('src'),_0x503780['descriptionFactory']['registerDescriptionCallback'](_0x595f1e=>{if('attribute'!=_0x595f1e['type'])return;const {data:_0x24a3f3}=_0x595f1e;return _0x24a3f3&&'src'==_0x24a3f3['key']?_0x24a3f3['newValue']&&_0x24a3f3['oldValue']?{'type':'format','content':o(_0x21421f,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x599de5=this['editor']['plugins']['get']('TrackChangesEditing');_0x599de5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x599de5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x599de5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x599de5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57239f=this['editor'],_0x3932ea=_0x57239f['locale'];_0x57239f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33d6a6=>{if('formatBlock'!=_0x33d6a6['type']&&'formatInline'!=_0x33d6a6['type'])return;const {data:_0x180fc1}=_0x33d6a6;if(!_0x180fc1||'replaceImageSource'!=_0x180fc1['commandName'])return;return{'type':'format','content':o(_0x3932ea,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x7c1c66{['afterInit'](){const _0x432dd3=this['editor'];if(!_0x432dd3['plugins']['has']('ImageStyleEditing'))return;const _0x136438=_0x432dd3['plugins']['get']('TrackChangesEditing'),_0x48ef41=_0x432dd3['plugins']['get']('ImageUtils'),_0x3f010e={};_0x136438['enableCommand']('imageStyle',(_0x336234,_0x58e15f)=>{const _0x26b6ad=_0x432dd3['plugins']['get']('Users')['me'],_0x1c9705=_0x432dd3['commands']['get']('imageStyle');let _0x34468f=_0x48ef41['getClosestSelectedImageElement'](_0x432dd3['model']['document']['selection']),_0x5813a2=_0x432dd3['model']['createRangeOn'](_0x34468f),_0x5225c9=_0x1c9705['value'];if(_0x5225c9==_0x58e15f['value'])return;const _0x482bac={'commandName':'imageStyle','commandParams':[_0x58e15f],'formatGroupId':_0x21926f()};_0x432dd3['model']['change'](()=>{if(_0x136438['getSuggestions']()['filter'](_0xf40cc6=>_0xf40cc6['isInContent']&&_0x26b6ad==_0xf40cc6['author']&&('formatBlock'==_0xf40cc6['type']||'formatInline'==_0xf40cc6['type'])&&('imageStylePreApply'==_0xf40cc6['subType']||'imageStylePostApply'==_0xf40cc6['subType'])&&_0xf40cc6['getFirstRange']()['isEqual'](_0x5813a2))['forEach'](_0x4c4519=>_0x136438['discardSuggestion'](_0x4c4519['head'])),_0x34468f=_0x48ef41['getClosestSelectedImageElement'](_0x432dd3['model']['document']['selection']),_0x5813a2=_0x432dd3['model']['createRangeOn'](_0x34468f),_0x1c9705['refresh'](),_0x432dd3['commands']['get']('imageTypeInline')['refresh'](),_0x432dd3['commands']['get']('imageTypeBlock')['refresh'](),_0x5225c9=_0x1c9705['value'],_0x5225c9!=_0x58e15f['value'])return _0x48ef41['isInlineImage'](_0x34468f)&&_0x1c9705['shouldConvertImageType'](_0x58e15f['value'],_0x34468f)?(_0x336234({..._0x58e15f,'setImageSizes':!0x1}),_0x34468f=_0x48ef41['getClosestSelectedImageElement'](_0x432dd3['model']['document']['selection']),void _0x136438['markBlockFormat'](_0x34468f,{..._0x482bac,'commandReversedParams':[{'value':_0x5225c9||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x48ef41['isBlockImage'](_0x34468f)?_0x136438['markBlockFormat'](_0x34468f,_0x482bac,[],'imageStylePostApply'):_0x136438['markInlineFormat'](_0x5813a2,_0x482bac,'imageStylePostApply'));});});for(const _0x4b0b80 of _0x432dd3['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3f010e[_0x4b0b80['name']]=_0x4b0b80['title']['toLowerCase']();_0x136438['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x136438['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x136438['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x136438['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2ad922])=>{_0x48ef41['setImageNaturalSizeAttributes'](_0x2ad922['getContainedElement']());}),_0x136438['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1d0a47,_0x101e94)=>{_0x136438['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1d0a47,{'commandName':_0x101e94['commandName'],'commandParams':_0x101e94['commandReversedParams']});}),_0x136438['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4db7d7,_0x182868){if(_0x8acd0e(_0x4db7d7,_0x182868))return[_0x4db7d7,_0x182868];if(_0x8acd0e(_0x182868,_0x4db7d7))return[_0x182868,_0x4db7d7];return null;});const _0x1668fd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x8acd0e(_0x58d85c,_0x111f6d){const _0x9708bc=_0x1668fd['findIndex'](({type:_0x6444c9,subType:_0x455602})=>_0x58d85c['type']==_0x6444c9&&_0x58d85c['subType']==_0x455602),_0x185e33=_0x1668fd['findIndex'](({type:_0x904e95,subType:_0xd90bdb})=>_0x111f6d['type']==_0x904e95&&_0x111f6d['subType']==_0xd90bdb);if(_0x9708bc<0x0||_0x185e33<0x0)return!0x1;const _0x7cd442=_0x58d85c['getFirstRange'](),_0x4a140a=_0x111f6d['getFirstRange']();if((0x0==_0x9708bc||0x1==_0x9708bc)&&0x2==_0x185e33&&_0x7cd442['isIntersecting'](_0x4a140a))return!0x0;if(0x2==_0x9708bc&&0x3==_0x185e33){const _0x442fe8=_0x136438['_findSuggestions'](_0x7cd442,'insertion')['filter'](({suggestion:_0x231cb0,meta:_0x53da5e})=>_0x53da5e['isOwn']&&'convertInlineImageToBlock'==_0x231cb0['subType']);if(_0x442fe8['length']>0x1&&_0x4a140a['end']['isEqual'](_0x7cd442['start']))return!0x0;if(0x1==_0x442fe8['length']&&(_0x7cd442['start']['isEqual'](_0x4a140a['end'])||_0x7cd442['end']['isEqual'](_0x4a140a['start'])))return!0x0;}if(0x3==_0x9708bc&&0x3==_0x185e33&&_0x7cd442['start']['isBefore'](_0x4a140a['start'])){const _0x191fec=_0x7cd442['end']['nodeAfter'],_0x32bda6=_0x4a140a['start']['nodeBefore'];return _0x48ef41['isBlockImage'](_0x191fec)&&_0x191fec===_0x32bda6;}return!0x1;}_0x432dd3['model']['document']['registerPostFixer'](()=>{let _0x2f6c02=!0x1;const _0x1ab1b2=Array['from'](_0x432dd3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x502e85,data:_0x30a358}of _0x1ab1b2){const {group:_0x347706,type:_0x20445c,subType:_0x206596,id:_0x3fc03c}=_0x136438['_splitMarkerName'](_0x502e85);if('suggestion'==_0x347706&&_0x136438['hasSuggestion'](_0x3fc03c)){if('formatBlock'==_0x20445c&&('imageStylePreApply'==_0x206596||'imageStylePostApply'==_0x206596)){const _0x39a6d5=_0x136438['getSuggestion'](_0x3fc03c);if(_0x30a358['newRange']){const _0x1ddef6=_0x39a6d5['getFirstRange']()['getContainedElement']();if(_0x48ef41['isBlockImage'](_0x1ddef6))continue;_0x136438['discardSuggestion'](_0x39a6d5),_0x2f6c02=!0x0;}}if('insertion'==_0x20445c&&'imageCaption'==_0x206596&&!_0x30a358['newRange']){const _0x5d315f=_0x136438['getSuggestion'](_0x3fc03c);_0x5d315f['next']&&_0x5d315f['next']['isInContent']&&(_0x136438['discardSuggestion'](_0x5d315f['next']),_0x2f6c02=!0x0);}}}return _0x2f6c02;}),this['_registerLegacyDescription'](_0x3f010e);}['_registerLegacyDescription'](_0x38e349){const _0x39019d=this['editor'],_0x41a0e9=_0x39019d['locale'];_0x39019d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x168306=>{if('formatBlock'!=_0x168306['type']&&'formatInline'!=_0x168306['type'])return;const {data:_0x25ed27}=_0x168306;if(!_0x25ed27||'imageStyle'!=_0x25ed27['commandName'])return;const _0x4a789c=_0x25ed27['commandParams'][0x0]['value'];return _0xd95c91('side'===_0x4a789c?o(_0x41a0e9,'FORMAT_SIDE_IMAGE'):_0x38e349[_0x4a789c]||_0x4a789c);function _0xd95c91(_0x1b5562){return{'type':'format','content':o(_0x41a0e9,'*Format:*\x20%0',_0x1b5562)};}});}}class ut extends _0x7c1c66{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1cbc11){super(_0x1cbc11),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x531a70=this['editor'],_0x1eaf49=_0x531a70['commands']['get']('importWord'),_0x4b39ac=_0x531a70['commands']['get']('trackChanges');_0x1eaf49&&(_0x1eaf49['on']('execute',(_0x2f8dea,[,_0x352b77])=>{this['_trackChangesValueDuringImport']=_0x4b39ac['value'],_0x352b77['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1eaf49,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1eaf49,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4b39ac['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x531a70['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1d58a3,_0x3eecc6){const {suggestions:_0x136c03}=_0x3eecc6,_0x133346=this['editor']['commands']['get']('trackChanges'),_0xc14b14=_0x133346['value'];this['_trackChangesValueDuringImport']!==_0xc14b14&&(_0x133346['execute'](),this['_trackChangesExecuted']=!0x0),_0x136c03&&_0x136c03['forEach'](({id:_0x1f929e,type:_0x270bd0,author:_0x14d8a5,created_at:_0x320b52})=>{const _0x569d36={'id':_0x1f929e,'type':_0x270bd0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x14d8a5,'createdAt':_0x320b52?new Date(_0x320b52):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x569d36);});}}class ft extends _0x7c1c66{['afterInit'](){const _0x10fd22=this['editor'],_0x15ba4f=_0x10fd22['plugins']['get']('TrackChangesEditing');if(_0x10fd22['plugins']['has']('IndentEditing')&&(_0x15ba4f['enableCommand']('indent'),_0x15ba4f['enableCommand']('outdent')),_0x10fd22['plugins']['has']('IndentBlock')){for(const _0x2fb0cd of['indentBlock','outdentBlock'])_0x15ba4f['enableDefaultAttributesIntegration'](_0x2fb0cd);}const _0x11e7f3=_0x10fd22['locale'];_0x15ba4f['registerBlockAttribute']('blockIndent'),_0x15ba4f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x11e7f3,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f5ad0=this['editor'],_0xe2ef5d=_0x1f5ad0['locale'],_0x33a431=_0x1f5ad0['plugins']['get']('TrackChangesEditing');_0x33a431['descriptionFactory']['registerDescriptionCallback'](_0x32700a=>{if('formatBlock'!=_0x32700a['type'])return;const {data:_0x3e4b6a}=_0x32700a;if(!_0x3e4b6a)return;if('indentBlock'!=_0x3e4b6a['commandName']&&'outdentBlock'!=_0x3e4b6a['commandName'])return;const _0x5cea7a=_0x32700a['getItems']()[0x0],_0x144114=_0x33a431['descriptionFactory']['getItemLabel'](_0x5cea7a);return'indentBlock'==_0x3e4b6a['commandName']?{'type':'format','content':o(_0xe2ef5d,'*Indent:*\x20%0',_0x144114)}:'outdentBlock'==_0x3e4b6a['commandName']?{'type':'format','content':o(_0xe2ef5d,'*Outdent:*\x20%0',_0x144114)}:void 0x0;});}}class ht extends _0x7c1c66{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x7c1c66{['afterInit'](){const _0x315d49=this['editor'];if(!_0x315d49['plugins']['has']('LinkEditing'))return;const _0x29d51d=_0x315d49['plugins']['get']('TrackChangesEditing'),_0x5a4a0c=_0x315d49['commands']['get']('link');_0x29d51d['enableDefaultAttributesIntegration']('link'),_0x29d51d['enableDefaultAttributesIntegration']('unlink'),_0x29d51d['registerInlineAttribute']('linkHref');for(const _0x46a578 of _0x5a4a0c['manualDecorators'])_0x29d51d['registerInlineAttribute'](_0x46a578['id']),_0x29d51d['descriptionFactory']['registerAttributeLabel'](_0x46a578['id'],'link\x20('+_0x46a578['label']['toLowerCase']()+')');_0x29d51d['descriptionFactory']['registerDescriptionCallback'](_0x3cbee9=>{if('attribute'!=_0x3cbee9['type'])return;const {data:_0x5ae04f}=_0x3cbee9;if(!_0x5ae04f||'linkHref'!=_0x5ae04f['key'])return;const _0x5ba5e9=_0x5ae04f['newValue'],_0x292279=_0x315d49['locale'];return{'type':'format','content':null==_0x5ba5e9?o(_0x292279,'*Remove\x20link*'):o(_0x292279,'*Set\x20link:*\x20%0','\x22'+_0x5ba5e9+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe8c0f2=this['editor'],_0x18b5d6=_0xe8c0f2['locale'];_0xe8c0f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54917b=>{if('formatInline'!=_0x54917b['type'])return;const {data:_0x5a39f7}=_0x54917b;if(_0x5a39f7){if('link'==_0x5a39f7['commandName']){const _0x3c8947=_0x5a39f7['commandParams'][0x0];return{'type':'format','content':o(_0x18b5d6,'*Set\x20link:*\x20%0','\x22'+_0x3c8947+'\x22')};}return'unlink'==_0x5a39f7['commandName']?{'type':'format','content':o(_0x18b5d6,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x7c1c66{['afterInit'](){const _0x1167ed=this['editor'],_0x46e915=_0x1167ed['locale'];if(!_0x1167ed['plugins']['has']('LegacyListEditing'))return;const _0x3c20b5=_0x1167ed['plugins']['get']('TrackChangesEditing'),_0x37b3ac=_0x1167ed['plugins']['has']('LegacyTodoListEditing');function _0x3a20b8(_0x1c304c){return()=>{const _0x461927=_0x1167ed['model']['document']['selection'],_0x43927c=_0x1167ed['commands']['get'](_0x1c304c);if(_0x43927c['value'])return void _0x1167ed['execute']('paragraph',{});const _0x5c20f3=_0x1c304c['slice'](0x0,-0x4),_0x11e1b0=function(_0x581749,_0x16dbc8,_0x3cfc11){let _0x3427ae=Array['from'](_0x581749)['filter'](_0x4e046d=>function(_0x181a97,_0x58a0a9){return _0x58a0a9['checkChild'](_0x181a97['parent'],'listItem')&&!_0x58a0a9['isObject'](_0x181a97);}(_0x4e046d,_0x3cfc11));_0x3427ae=_0x3427ae['filter'](_0x5a47b4=>!_0x5a47b4['is']('element','listItem')||_0x5a47b4['getAttribute']('listType')!=_0x16dbc8);const _0x52e79b=new Set();for(const _0x26527c of _0x3427ae)_0x26527c['is']('element','listItem')?_0x52e79b['add'](Le(_0x26527c)):_0x52e79b['add'](_0x26527c);return Array['from'](_0x52e79b);}(_0x461927['getSelectedBlocks'](),_0x5c20f3,_0x1167ed['model']['schema']);_0x1167ed['model']['change'](()=>{for(const _0x2c22ce of _0x11e1b0)_0x3c20b5['markBlockFormat'](_0x2c22ce,{'commandName':_0x1c304c,'commandParams':[{'forceValue':!_0x43927c['value']}],'formatGroupId':'blockName'},Ee(_0x2c22ce));});};}function _0x126b31(_0x208a85){return()=>{const _0x2b7585=function(_0x4b25d6){let _0x1f4081=Array['from'](_0x4b25d6);const _0x3cfb42=_0x1f4081['findIndex'](_0x18e1e2=>'listItem'!=_0x18e1e2['name']);return _0x3cfb42>-0x1&&(_0x1f4081=_0x1f4081['slice'](0x0,_0x3cfb42)),_0x1f4081;}(_0x1167ed['model']['document']['selection']['getSelectedBlocks']()),_0x9d04c1=_0x1167ed['model']['createRange'](_0x1167ed['model']['createPositionAt'](_0x2b7585[0x0],'before'),_0x1167ed['model']['createPositionAt'](_0x2b7585[_0x2b7585['length']-0x1],'end'));_0x1167ed['model']['change'](()=>{_0x3c20b5['markBlockFormat'](_0x9d04c1,{'commandName':_0x208a85,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5f5c8a){const _0x504ea1=new Set();for(const _0x4a3789 of _0x5f5c8a){let _0x3ea68d=_0x4a3789['nextSibling'];for(;_0x3ea68d&&_0x3ea68d['getAttribute']('listIndent')>_0x4a3789['getAttribute']('listIndent');)_0x504ea1['add'](_0x3ea68d),_0x3ea68d=_0x3ea68d['nextSibling'];}return Array['from'](_0x504ea1);}(_0x2b7585));});};}_0x3c20b5['enableCommand']('numberedList',_0x3a20b8('numberedList')),_0x3c20b5['enableCommand']('bulletedList',_0x3a20b8('bulletedList')),_0x37b3ac&&_0x3c20b5['enableCommand']('todoList',_0x3a20b8('todoList')),_0x3c20b5['enableCommand']('indentList',_0x126b31('indentList')),_0x3c20b5['enableCommand']('outdentList',_0x126b31('outdentList')),_0x37b3ac&&_0x3c20b5['enableCommand']('checkTodoList',()=>{const _0x13e8fa=_0x1167ed['commands']['get']('checkTodoList'),_0x3f2861=Array['from'](_0x13e8fa['_selectedElements']);_0x3f2861['filter'](_0x1dfd25=>_0x1dfd25['getAttribute']('todoListChecked')!=_0x13e8fa['value']),_0x1167ed['model']['change'](()=>{for(const _0x1a42c7 of _0x3f2861)_0x3c20b5['markBlockFormat'](_0x1a42c7,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x13e8fa['value']}]});});}),_0x3c20b5['descriptionFactory']['registerElementLabel']('listItem',_0x1d5111=>o(_0x46e915,'ELEMENT_LIST_ITEM',_0x1d5111)),_0x3c20b5['descriptionFactory']['registerDescriptionCallback'](_0x38dbb6=>{if('formatBlock'!=_0x38dbb6['type']&&'formatInline'!=_0x38dbb6['type'])return;const {data:_0x184905}=_0x38dbb6;if(_0x184905){if('numberedList'==_0x184905['commandName']||'bulletedList'==_0x184905['commandName']||'todoList'==_0x184905['commandName'])switch(_0x184905['commandName']['replace']('List','')){case'bulleted':return _0x595f3a(o(_0x46e915,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x595f3a(o(_0x46e915,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x595f3a(o(_0x46e915,'ELEMENT_TODO_LIST'));}if('indentList'==_0x184905['commandName'])return{'type':'format','content':o(_0x46e915,'*Indent:*\x20%0',o(_0x46e915,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x184905['commandName'])return{'type':'format','content':o(_0x46e915,'*Outdent:*\x20%0',o(_0x46e915,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x184905['commandName'])return _0x184905['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x46e915,'*Check\x20item*')}:{'type':'format','content':o(_0x46e915,'*Uncheck\x20item*')};}function _0x595f3a(_0x5a35fd){return{'type':'format','content':o(_0x46e915,'*Change\x20to:*\x20%0',_0x5a35fd)};}});}}function Le(_0x38df2b){const _0xaea299=_0x38df2b['getAttribute']('listIndent');if(0x0==_0xaea299)return _0x38df2b;let _0x213216=_0x38df2b;for(;_0x38df2b['previousSibling']&&_0x38df2b['previousSibling']['is']('element','listItem');){const _0xd0ed96=_0x38df2b['previousSibling']['getAttribute']('listIndent');if(_0xd0ed96==_0xaea299)_0x213216=_0x38df2b['previousSibling'];else{if(_0xd0ed96<_0xaea299)break;}_0x38df2b=_0x38df2b['previousSibling'];}return _0x213216;}function Ee(_0x54f427){const _0x5733de=[];if(_0x54f427['is']('element','listItem')&&_0x54f427['getAttribute']('listIndent')>0x0){let _0x1bb02c=_0x54f427['nextSibling'];for(;_0x1bb02c&&'listItem'==_0x1bb02c['name']&&_0x1bb02c['getAttribute']('listIndent')==_0x54f427['getAttribute']('listIndent');)_0x5733de['push'](_0x1bb02c),_0x1bb02c=_0x1bb02c['nextSibling'];}return _0x5733de;}class Q extends _0x7c1c66{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3ee46d=this['editor']['config']['get']('list.properties'),_0x56e01c=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ee46d['styles']&&_0x56e01c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3ee46d['reversed']&&_0x56e01c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3ee46d['startIndex']&&_0x56e01c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x56e01c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3944dd,_0x144458={}){const _0x15b814=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a6ce5=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x15b814['markMultiRangeBlockFormat'](_0x3a6ce5,{'commandName':'listStyle','commandParams':[{'type':_0x144458['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3de5d1,_0x414645={}){const _0x5b4ea3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3eb188=this['_getSuggestionBlocks'](_0x4c4672=>_0x4c4672['is']('element','listItem')&&'numbered'===_0x4c4672['getAttribute']('listType'));if(_0x3eb188['length']<0x1)return;const _0x741102=_0x3eb188['map'](_0x1f7a4b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1f7a4b,'before'),this['editor']['model']['createPositionAt'](_0x1f7a4b,0x0)));this['editor']['model']['change'](()=>{_0x5b4ea3['markMultiRangeBlockFormat'](_0x741102,{'commandName':'listReversed','commandParams':[{'reversed':_0x414645['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3857b9,_0x4a09c6={}){const _0x2ac1d1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23482c=this['_getSuggestionBlocks'](_0x2dcd45=>_0x2dcd45['is']('element','listItem')&&'numbered'===_0x2dcd45['getAttribute']('listType'));if(_0x23482c['length']<0x1)return;const _0x1e41c1=_0x23482c['map'](_0x3414ac=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3414ac,'before'),this['editor']['model']['createPositionAt'](_0x3414ac,0x0)));this['editor']['model']['change'](()=>{_0x2ac1d1['markMultiRangeBlockFormat'](_0x1e41c1,{'commandName':'listStart','commandParams':[{'startIndex':_0x4a09c6['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2ac825){if('formatBlock'!=_0x2ac825['type']&&'formatInline'!=_0x2ac825['type'])return;const _0x4b459e=this['editor']['locale'],{data:_0x15f3fa}=_0x2ac825;if(!_0x15f3fa)return;let _0x1d069d,_0x4e351a;switch(_0x15f3fa['commandName']){case'listStyle':_0x1d069d='*Change\x20to:*\x20%0',_0x4e351a={'type':'format','content':o(_0x4b459e,_0x1d069d,o(_0x4b459e,this['_getTranslationKeyForListStyle'](_0x15f3fa['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1d069d=_0x15f3fa['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4e351a={'type':'format','content':o(_0x4b459e,_0x1d069d)};break;case'listStart':_0x1d069d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4e351a={'type':'format','content':o(_0x4b459e,_0x1d069d,_0x15f3fa['commandParams'][0x0]['startIndex'])};}return _0x4e351a;}['_getSuggestionBlocksForListStyle'](){const _0x40fb29=this['editor']['plugins']['get']('LegacyListUtils');let _0x5f29e6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5f29e6[0x0]?.['is']('element','listItem')&&_0x5f29e6['unshift'](..._0x40fb29['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5f29e6[_0x5f29e6['length']-0x1]?.['is']('element','listItem')&&_0x5f29e6['push'](..._0x40fb29['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5f29e6=[...new Set(_0x5f29e6)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5f29e6=_0x5f29e6['filter'](_0x517d11=>_0x517d11['is']('element','listItem'))),_0x5f29e6;}['_getSuggestionBlocks'](_0x220539){const _0x309400=this['editor']['plugins']['get']('LegacyListUtils');let _0x2b4ce5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x220539)['map'](_0x29a3c6=>{const _0x529ed5=this['editor']['model']['createPositionAt'](_0x29a3c6,0x0);return[..._0x309400['getSiblingNodes'](_0x529ed5,'backward'),..._0x309400['getSiblingNodes'](_0x529ed5,'forward')];})['flat']();return _0x2b4ce5=[...new Set(_0x2b4ce5)],_0x2b4ce5;}['_getTranslationKeyForListStyle'](_0x540f8d){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x540f8d)||'default')['toUpperCase']()+'_LIST_'+_0x540f8d['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x7c1c66{['afterInit'](){const _0x2cf218=this['editor'];if(!_0x2cf218['plugins']['has']('MediaEmbedEditing'))return;const _0x130839=_0x2cf218['plugins']['get']('TrackChangesEditing'),_0x1f1567=_0x2cf218['locale'];_0x130839['enableCommand']('mediaEmbed'),_0x130839['descriptionFactory']['registerElementLabel']('media',_0x5ba559=>o(_0x1f1567,'ELEMENT_MEDIA',_0x5ba559)),_0x2cf218['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x437a9e,{writer:_0x1aa867,options:_0x519da9})=>{if(_0x519da9['showSuggestionHighlights'])return _0x1aa867['createEmptyElement']('div');},'converterPriority':'high'}),_0x2cf218['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4dbf06,_0x5cac81,_0x2e1202)=>{_0x2e1202['options']['showSuggestionHighlights']&&_0x4dbf06['stop']();},{'priority':'high'});}}class pt extends _0x7c1c66{['afterInit'](){const _0x11eeee=this['editor'];_0x11eeee['plugins']['has']('MentionEditing')&&_0x11eeee['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x7c1c66{['afterInit'](){const _0x3fd965=this['editor'];if(!_0x3fd965['plugins']['has']('MergeFieldsEditing'))return;const _0x1f05af=_0x3fd965['plugins']['get']('TrackChangesEditing'),_0x10eb01=_0x3fd965['locale'];_0x1f05af['enableCommand']('insertMergeField'),_0x1f05af['enableCommand']('insertMergeFieldBlock'),_0x1f05af['enableCommand']('insertMergeFieldImage'),_0x1f05af['descriptionFactory']['registerElementLabel']('mergeField',_0x5eccef=>o(_0x10eb01,'ELEMENT_MERGE_FIELD',_0x5eccef)),_0x1f05af['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x527f5b=>o(_0x10eb01,'ELEMENT_MERGE_FIELD',_0x527f5b)),_0x1f05af['descriptionFactory']['registerDescriptionCallback'](_0x46be9f=>{if('insertion'!=_0x46be9f['type']&&'deletion'!=_0x46be9f['type'])return;const _0x434c8b=_0x46be9f['getContainedElement']();if(null==_0x434c8b)return;const _0x25c50b=_0x3fd965['plugins']['get']('MergeFieldsEditing');let _0x2acb60;switch(_0x25c50b['getMergeFieldType'](_0x434c8b)){case null:return;case'image':{const _0x5415ce=_0x25c50b['unwrapAffixes'](_0x434c8b['getAttribute']('src'));_0x2acb60=_0x25c50b['getLabel'](_0x5415ce)||_0x5415ce;break;}default:{const _0x588904=_0x434c8b['getAttribute']('id');_0x2acb60=_0x25c50b['getLabel'](_0x588904)||_0x588904;break;}}return'insertion'==_0x46be9f['type']?{'type':'insertion','content':o(_0x10eb01,'*Insert:*\x20%0','\x22'+_0x2acb60+'\x22\x20'+o(_0x10eb01,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x10eb01,'*Remove:*\x20%0','\x22'+_0x2acb60+'\x22\x20'+o(_0x10eb01,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x7c1c66{['afterInit'](){const _0x31d1fa=this['editor'],_0x4ef48d=_0x31d1fa['plugins']['get']('TrackChangesEditing');_0x31d1fa['plugins']['has']('MultiLevelList')&&(_0x4ef48d['enableDefaultAttributesIntegration']('multiLevelList'),_0x4ef48d['registerBlockAttribute']('listMarkerStyle'),_0x4ef48d['descriptionFactory']['registerDescriptionCallback'](_0x53ae32=>this['handleDescriptions'](_0x53ae32)));}['handleDescriptions'](_0xc6aa9b){const _0x1ad691=this['editor']['locale'],{data:_0x2c49b7}=_0xc6aa9b,_0x3e8db6={'type':'format','content':''};if(_0x2c49b7&&'listMarkerStyle'==_0x2c49b7['key']){if(!_0x2c49b7['oldValue'])return{'type':'format','content':o(_0x1ad691,'*Set\x20format:*\x20%0',o(_0x1ad691,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2c49b7['newValue']+')'};if(!_0x2c49b7['newValue']){let _0x3e4375=_0xc6aa9b['head'];for(;_0x3e4375;){if(_0x3e4375['data']&&'listType'==_0x3e4375['data']['key']&&_0x3e4375['data']['newValue'])return _0x3e8db6;_0x3e4375=_0x3e4375['next'];}return{'type':'format','content':o(_0x1ad691,'*Remove\x20format:*\x20%0',o(_0x1ad691,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2c49b7['oldValue']+')'};}}}}class bt extends _0x7c1c66{['afterInit'](){const _0x54076c=this['editor'];if(!_0x54076c['plugins']['has']('PageBreakEditing'))return;_0x54076c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x37dd2a=_0x54076c['plugins']['get']('TrackChangesEditing'),_0x56cfd8=_0x54076c['locale'];_0x37dd2a['descriptionFactory']['registerElementLabel']('pageBreak',_0x57aff2=>o(_0x56cfd8,'ELEMENT_PAGE_BREAK',_0x57aff2));}}class yt extends _0x7c1c66{['afterInit'](){const _0x4fcf2f=this['editor'];if(!_0x4fcf2f['plugins']['has']('Paragraph'))return;const _0x29fd4a=_0x4fcf2f['locale'],_0x3a86c9=_0x4fcf2f['plugins']['get']('TrackChangesEditing');_0x3a86c9['descriptionFactory']['registerElementLabel']('paragraph',_0x3f39a2=>o(_0x29fd4a,'ELEMENT_PARAGRAPH',_0x3f39a2)),_0x3a86c9['enableDefaultAttributesIntegration']('paragraph'),_0x3a86c9['enableCommand']('insertParagraph'),_0x4fcf2f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4fcf2f),{'priority':'highest'}),_0x4fcf2f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3ed64d,_0x135bdc,_0x1f3f40)=>{_0x1f3f40['options']['showSuggestionHighlights']&&nr(_0x4fcf2f,{'showActiveMarker':!0x1})(_0x3ed64d,_0x135bdc,_0x1f3f40);},{'priority':'highest'});const _0x549539=_0x3a86c9['descriptionFactory'];_0x549539['registerDescriptionCallback'](_0x5c16c0=>{if('insertion'!==_0x5c16c0['type'])return;const {start:_0x391494,end:_0x1f4707}=_0x5c16c0['getFirstRange']();if(!_0x391494['isTouching'](_0x1f4707)||!_0x391494['nodeAfter'])return;const _0xe62050=_0x4fcf2f['model']['schema'],_0x2d7226=_0x391494['nodeAfter'];return _0xe62050['isBlock'](_0x2d7226)&&!_0xe62050['isLimit'](_0x2d7226)&&_0xe62050['checkChild'](_0x2d7226,'$text')?{'type':'insertion','content':o(_0x29fd4a,'*Insert:*\x20%0',_0x549539['getItemLabel'](_0x2d7226,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x250f19=this['editor'],_0x7e0ca=_0x250f19['locale'];_0x250f19['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53d468=>{if('formatBlock'!=_0x53d468['type'])return;const {data:_0x520121}=_0x53d468;return _0x520121&&'paragraph'==_0x520121['commandName']?{'type':'format','content':o(_0x7e0ca,'*Change\x20to:*\x20%0',o(_0x7e0ca,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1c09dd,{showActiveMarker:_0x4c5da5=!0x0}={}){return(_0x49d803,_0x21fd1e,_0x2e2d8d)=>{const _0x598480=_0x1c09dd['plugins']['get']('TrackChangesEditing'),_0x3a0b22=_0x21fd1e['markerRange']['start'],_0x553c48=_0x21fd1e['markerRange']['end'],_0x3357dc=_0x1c09dd['model']['schema'];if(!_0x3a0b22['isTouching'](_0x553c48)||!_0x3a0b22['nodeAfter'])return;const _0x1400e3=_0x3a0b22['nodeAfter'];if(_0x3357dc['isBlock'](_0x1400e3)&&!_0x3357dc['isLimit'](_0x1400e3)&&_0x3357dc['checkChild'](_0x1400e3,'$text')){if(!_0x2e2d8d['consumable']['consume'](_0x21fd1e['markerRange'],_0x49d803['name']))return;const {authorId:_0x153fa6}=_0x598480['_splitMarkerName'](_0x21fd1e['markerName']),_0x4b9a28=_0x2e2d8d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x153fa6}),_0x30a0f9=_0x2e2d8d['mapper']['toViewPosition'](_0x553c48);_0x4c5da5&&_0x598480['activeMarkers']['includes'](_0x21fd1e['markerName'])&&_0x2e2d8d['writer']['addClass']('ck-suggestion-marker--active',_0x4b9a28),_0x2e2d8d['writer']['insert'](_0x30a0f9,_0x4b9a28),_0x2e2d8d['mapper']['bindElementToMarker'](_0x4b9a28,_0x21fd1e['markerName']);}};}class jt extends _0x7c1c66{['afterInit'](){const _0x1afa5a=this['editor'];_0x1afa5a['commands']['get']('replaceSource')&&_0x1afa5a['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x7c1c66{['afterInit'](){const _0x22716d=this['editor'];if(!_0x22716d['plugins']['has']('RemoveFormatEditing'))return;_0x22716d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1afa64=this['editor'];_0x1afa64['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39f7c2=>{if('formatBlock'!=_0x39f7c2['type']&&'formatInline'!=_0x39f7c2['type'])return;const {data:_0x32112c}=_0x39f7c2;return _0x32112c&&'removeFormat'==_0x32112c['commandName']?{'type':'format','content':o(_0x1afa64['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x7c1c66{['afterInit'](){const _0x1bdff9=this['editor'];if(!_0x1bdff9['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x285811=_0x1bdff9['plugins']['get']('TrackChangesEditing');_0x285811['enableCommand']('goToPreviousRestrictedEditingException'),_0x285811['enableCommand']('goToNextRestrictedEditingException');const _0x5750ac=_0x1bdff9['plugins']['get']('RestrictedEditingModeEditing');_0x5750ac['enableCommand']('trackChanges'),_0x5750ac['enableCommand']('acceptSuggestion'),_0x5750ac['enableCommand']('discardSuggestion'),_0x5750ac['enableCommand']('acceptAllSuggestions'),_0x5750ac['enableCommand']('discardAllSuggestions'),_0x5750ac['enableCommand']('acceptSelectedSuggestions'),_0x5750ac['enableCommand']('discardSelectedSuggestions');}}class It extends _0x7c1c66{static get['requires'](){return[_0x2141d0];}['init'](){const _0x4ac1f5=this['editor'],_0x442656=_0x4ac1f5['plugins']['get']('TrackChangesEditing');_0x442656['enableCommand']('shiftEnter'),_0x4ac1f5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4ac1f5),{'priority':'high'}),_0x4ac1f5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4ac1f5),{'priority':'high'}),_0x4ac1f5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x31ae4c,_0x18caa5,_0x10a526)=>{_0x10a526['options']['showSuggestionHighlights']&&je(_0x4ac1f5,{'showActiveMarker':!0x1})(_0x31ae4c,_0x18caa5,_0x10a526);}),_0x442656['descriptionFactory']['registerElementLabel']('softBreak',_0x475740=>o(_0x4ac1f5['locale'],'ELEMENT_LINE_BREAK',_0x475740));}}function je(_0x3d2053,{showActiveMarker:_0x443db7=!0x0}={}){return(_0x36ca61,_0x563e02,_0x3dd263)=>{const _0x2d47f7=_0x3d2053['plugins']['get']('TrackChangesEditing');if(!_0x3dd263['consumable']['test'](_0x563e02['markerRange'],_0x36ca61['name']))return;const _0x60bfc0=_0x3d2053['model'];for(const _0xc91dcf of _0x563e02['markerRange']['getItems']()){if(!_0xc91dcf['is']('element','softBreak'))continue;const _0x6b3c4a='deletion'==_0x563e02['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x54d010}=_0x2d47f7['_splitMarkerName'](_0x563e02['markerName']),_0x5f5a51=_0x3dd263['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x6b3c4a,'data-author-id':_0x54d010}),_0xf5dec3=_0x3dd263['mapper']['toViewPosition'](_0x60bfc0['createPositionBefore'](_0xc91dcf));_0x443db7&&_0x2d47f7['activeMarkers']['includes'](_0x563e02['markerName'])&&_0x3dd263['writer']['addClass']('ck-suggestion-marker--active',_0x5f5a51),_0x3dd263['writer']['insert'](_0xf5dec3,_0x5f5a51),_0x3dd263['mapper']['bindElementToMarker'](_0x5f5a51,_0x563e02['markerName']);}};}class vt extends _0x7c1c66{['afterInit'](){const _0xb7e193=this['editor'],_0x11b23d=_0xb7e193['model'],_0x4d2af1=_0xb7e193['locale'];if(!_0xb7e193['plugins']['has']('StandardEditingModeEditing'))return;const _0x1ab9d0=_0xb7e193['plugins']['get']('TrackChangesEditing'),_0x572147='restrictedEditingException',_0x27e201=_0xb7e193['commands']['get'](_0x572147);_0x1ab9d0['enableCommand'](_0x572147,(_0x50b5e3,_0x380294={})=>{const _0x128b37=_0x11b23d['document']['selection'];if(_0x128b37['isCollapsed'])return void _0x50b5e3(_0x380294);const _0x307c83=void 0x0!==_0x380294['forceValue']?_0x380294['forceValue']:!_0x27e201['value'];_0x11b23d['change'](()=>{const _0x3af5cb=Array['from'](_0x128b37['getRanges']());for(const _0x30dff4 of _0x3af5cb){const _0x42857a=_0x307c83?[_0x30dff4]:io(_0x572147,_0x30dff4,_0x11b23d);for(const _0x581aee of _0x42857a)_0x1ab9d0['markInlineFormat'](_0x581aee,{'commandName':_0x572147,'commandParams':[{'forceValue':_0x307c83}]});}});}),_0x1ab9d0['descriptionFactory']['registerDescriptionCallback'](_0xd12183=>{if('formatBlock'!=_0xd12183['type']&&'formatInline'!=_0xd12183['type'])return;const {data:_0x34a11e}=_0xd12183;return _0x34a11e&&_0x34a11e['commandName']==_0x572147?_0x34a11e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d2af1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4d2af1,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x7c1c66{['afterInit'](){const _0x3c5954=this['editor'];if(!_0x3c5954['plugins']['has']('Style')||!_0x3c5954['plugins']['has']('DataSchema'))return;const _0x5b3ac5=_0x3c5954['plugins']['get']('TrackChangesEditing'),_0x1ab18b=_0x3c5954['locale'],_0x5d9964=_0x3c5954['config']['get']('style')||{},_0x5f287c=_0x3c5954['plugins']['get']('GeneralHtmlSupport'),_0x590a40=_0x3c5954['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3c5954['plugins']['get']('DataSchema'),_0x5d9964['definitions']);_0x5b3ac5['enableDefaultAttributesIntegration']('style');const _0x27b350=new Set();for(const _0x29e5fa of _0x590a40['block']){const _0x4282ac=_0x5f287c['getGhsAttributeNameForElement'](_0x29e5fa['element']);_0x27b350['add'](_0x4282ac);}const _0xa14fb7=new Set();for(const _0x11a4bd of _0x590a40['inline']){const _0x24110b=_0x5f287c['getGhsAttributeNameForElement'](_0x11a4bd['element']);_0xa14fb7['add'](_0x24110b);for(const _0x1c1bad of _0x11a4bd['ghsAttributes'])_0xa14fb7['add'](_0x1c1bad);}for(const _0x343ba9 of _0x27b350)_0x5b3ac5['registerBlockAttribute'](_0x343ba9),_0x5b3ac5['descriptionFactory']['registerAttributeLabel'](_0x343ba9,o(_0x1ab18b,'FORMAT_STYLE'));for(const _0x1777bb of _0xa14fb7)_0x5b3ac5['registerInlineAttribute'](_0x1777bb),_0x5b3ac5['descriptionFactory']['registerAttributeLabel'](_0x1777bb,o(_0x1ab18b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f297f=this['editor'],_0x43601f=_0x5f297f['locale'];_0x5f297f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b2c25=>{if('formatBlock'!=_0x3b2c25['type']&&'formatInline'!=_0x3b2c25['type'])return;const {data:_0x21d0cf}=_0x3b2c25;return _0x21d0cf&&'style'===_0x21d0cf['commandName']?_0x21d0cf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x43601f,'*Set\x20format:*\x20%0',_0x21d0cf['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x43601f,'*Remove\x20format:*\x20%0',_0x21d0cf['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x7c1c66{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5e4671){super(_0x5e4671),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x24e3c5=this['editor'],_0x4b64f3=_0x24e3c5['model']['document']['selection'];if(!_0x24e3c5['plugins']['has']('TableEditing'))return;const _0x5a503e=_0x24e3c5['locale'],_0x393a9f=_0x24e3c5['plugins']['get']('TrackChangesEditing'),_0x597068=_0x24e3c5['plugins']['get']('TableUtils');_0x393a9f['descriptionFactory']['registerElementLabel']('table',_0x307bd8=>o(_0x5a503e,'ELEMENT_TABLE',_0x307bd8)),this['_setupColumnsRowsFixing'](),_0x393a9f['enableCommand']('insertTable'),_0x393a9f['enableCommand']('selectTableRow'),_0x393a9f['enableCommand']('selectTableColumn');for(const _0x3d993a of['insertTableRowAbove','insertTableRowBelow']){const _0x3f9ebe=_0x24e3c5['commands']['get'](_0x3d993a);_0x393a9f['enableCommand'](_0x3d993a,_0xb672a=>{_0x24e3c5['model']['change'](_0x2a7b08=>{_0xb672a();const _0x1b48da='above'===_0x3f9ebe['order'],_0x367f03=_0x597068['getSelectionAffectedTableCells'](_0x4b64f3),_0x3c8eaa=_0x597068['getRowIndexes'](_0x367f03),_0x3be8ed=_0x1b48da?_0x3c8eaa['first']-0x1:_0x3c8eaa['last']+0x1,_0xd5c63c=_0x367f03[0x0]['findAncestor']('table'),_0x2161cf=_0x597068['createTableWalker'](_0xd5c63c,{'startRow':_0x3be8ed,'endRow':_0x3be8ed}),_0xdd225a=Array['from'](_0x2161cf)['map'](_0x3b91f9=>_0x2a7b08['createRangeOn'](_0x3b91f9['cell']));_0x393a9f['markMultiRangeInsertion'](_0xdd225a,'tableRow');});});}for(const _0x4442bb of['insertTableColumnLeft','insertTableColumnRight']){const _0x5a1f02=_0x24e3c5['commands']['get'](_0x4442bb);_0x393a9f['enableCommand'](_0x4442bb,_0x5c8dc8=>{_0x24e3c5['model']['change'](_0x319c01=>{_0x5c8dc8();const _0x1073fc='left'===_0x5a1f02['order'],_0x12e46a=_0x597068['getSelectionAffectedTableCells'](_0x4b64f3),_0x3a27a0=_0x597068['getColumnIndexes'](_0x12e46a),_0x4db2d9=_0x1073fc?_0x3a27a0['first']-0x1:_0x3a27a0['last']+0x1,_0x37178b=_0x12e46a[0x0]['findAncestor']('table'),_0x536a1c=_0x597068['createTableWalker'](_0x37178b,{'startRow':0x0,'column':_0x4db2d9,'includeAllSlots':!0x1}),_0x446f82=Array['from'](_0x536a1c)['map'](_0x43ce70=>_0x319c01['createRangeOn'](_0x43ce70['cell']));_0x393a9f['markMultiRangeInsertion'](_0x446f82,'tableColumn');});});}for(const _0x3b4830 of['removeTableRow','removeTableColumn']){const _0xa35d93=_0x3b4830['substr'](0xb),_0x27ee1d=_0xa35d93['toLowerCase'](),_0x426004=_0x27ee1d['substr'](0x0,0x3)+'span',_0x52f212='table'+_0xa35d93,_0x42ba9b='min'+_0xa35d93,_0x4fd173='max'+_0xa35d93;_0x393a9f['enableCommand'](_0x3b4830,()=>{_0x24e3c5['model']['change'](_0xecc892=>{const _0x28df7b=_0x597068['getSelectionAffectedTableCells'](_0x4b64f3),_0x2b2dde=_0x28df7b[0x0]['findAncestor']('table');let _0x2b667f;if('removeTableRow'==_0x3b4830){const _0x4c424a=_0x597068['getRowIndexes'](_0x28df7b);_0x2b667f={'startRow':_0x4c424a['first'],'endRow':_0x4c424a['last'],'includeAllSlots':!0x0};}else{const _0x43ea72=_0x597068['getColumnIndexes'](_0x28df7b);_0x2b667f={'startColumn':_0x43ea72['first'],'endColumn':_0x43ea72['last'],'includeAllSlots':!0x0};}const _0x2e04a8=_0x597068['createTableWalker'](_0x2b2dde,_0x2b667f),_0x3a7ff0=Array['from'](_0x2e04a8)['map'](({cell:_0x378946})=>_0x378946),_0x4b4d23=Ne(_0x3a7ff0['filter'](_0x1744f0=>_0x1744f0['hasAttribute'](_0x426004))),_0x18db6b=Ne(_0x3a7ff0['filter'](_0x76a459=>!_0x76a459['hasAttribute'](_0x426004)))['map'](_0x24f83b=>_0xecc892['createRangeOn'](_0x24f83b)),_0x2833b3=_0x393a9f['markMultiRangeDeletion'](_0x18db6b,_0x52f212);if(_0x2833b3&&('tableRow'==_0x2833b3['subType']||'tableColumn'==_0x2833b3['subType'])){const _0x18087d=this['_getSuggestionCoords'](_0x2833b3);for(const _0x5a291c of _0x4b4d23){const _0xd37639=_0xecc892['createRangeOn'](_0x5a291c),_0x4b02d9=_0x597068['getCellLocation'](_0x5a291c),_0x2f9b30=_0x5a291c['getAttribute'](_0x426004)-0x1,_0xe7b17a=_0x18087d[_0x42ba9b],_0x275ba3=_0x18087d[_0x4fd173];_0xe7b17a<=_0x4b02d9[_0x27ee1d]&&_0x4b02d9[_0x27ee1d]+_0x2f9b30<=_0x275ba3&&_0x2833b3['addRange'](_0xd37639);}}});});}function _0x436dd3(_0xe94e51){const _0x467d28=Array['from'](_0x4b64f3['getRanges']())['map'](_0x59ed08=>_0x3af705['fromRange'](_0x59ed08));_0x24e3c5['model']['change'](_0x43a8dc=>{const _0x100df0=_0x43a8dc['batch'];_0xe94e51=_0xe94e51['filter'](_0x14b09f=>'$graveyard'!=_0x14b09f['root']['rootName']),_0x43a8dc['setSelection'](_0xe94e51),_0x24e3c5['commands']['get']('removeTableRow')['refresh'](),_0x24e3c5['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x24e3c5['model']['enqueueChange'](()=>{_0x24e3c5['model']['enqueueChange'](_0x100df0,_0x325796=>{const _0x740b7b=_0x467d28['filter'](_0xe0eb33=>'$graveyard'!=_0xe0eb33['root']['rootName']);_0x740b7b['length']>0x0&&_0x325796['setSelection'](_0x740b7b);for(const _0x23c0e8 of _0x467d28)_0x23c0e8['detach']();});});});}function _0x14e4cd(_0x2f76af){_0x24e3c5['model']['change'](_0x58907f=>{const _0x32a0ea=Array['from'](_0x4b64f3['getRanges']())['map'](_0x247271=>_0x3af705['fromRange'](_0x247271)),_0x383141=[];for(const _0x26d28f of _0x2f76af)for(const _0x3da955 of _0x26d28f['getItems']({'shallow':!0x0}))_0x383141['push'](_0x3da955);for(const _0x43b958 of _0x383141)'$graveyard'!=_0x43b958['root']['rootName']&&(_0x58907f['setSelection'](_0x58907f['createPositionAt'](_0x43b958,0x0)),_0x24e3c5['commands']['get']('removeTableColumn')['refresh'](),_0x24e3c5['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xfb7645=_0x32a0ea['filter'](_0x35f700=>'$graveyard'!=_0x35f700['root']['rootName']);_0xfb7645['length']>0x0&&_0x58907f['setSelection'](_0xfb7645);for(const _0x21573c of _0x32a0ea)_0x21573c['detach']();});}function _0x1e72c2(_0x1c2fbd,_0x19cf47){return _0x19cf47['every'](_0x267506=>_0x1c2fbd['some'](_0x2c6cf5=>_0x2c6cf5['end']['isEqual'](_0x267506['start'])||_0x267506['end']['isEqual'](_0x2c6cf5['start'])));}function _0x17fe1d(_0x573dc6,_0x115129){return!_0x573dc6['some'](_0x169e8e=>_0x115129['some'](_0x20a14e=>_0x169e8e['isIntersecting'](_0x20a14e)))&&_0x573dc6['some'](_0xbc46a7=>_0x115129['some'](_0x2f08d7=>_0xbc46a7['end']['isTouching'](_0x2f08d7['start'])));}_0x24e3c5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2cc9a6,_0x3ca5d7,_0xafb1e)=>{if(!_0xafb1e['options']['showSuggestionHighlights'])return;const _0x3284f5=_0x3ca5d7['item'];if(!_0x3284f5)return;const _0x4261b7=_0xafb1e['mapper']['toViewElement'](_0x3284f5);function _0xf427ba(_0x46fbb8){return Array['isArray'](_0x46fbb8)?_0x46fbb8:[_0x46fbb8];}_0x4261b7&&'tableCell'===_0x3284f5['name']&&_0x32ce73(_0x4261b7,_0xafb1e['writer'],(_0x28c341,_0x47e86e,_0x23a1e2)=>_0x23a1e2['addClass'](_0xf427ba(_0x47e86e['classes']),_0x28c341),(_0x2c65eb,_0x5dd077,_0x145a41)=>_0x145a41['removeClass'](_0xf427ba(_0x5dd077['classes']),_0x2c65eb));},{'priority':'highest'}),_0x393a9f['descriptionFactory']['registerDescriptionCallback'](_0x26aec5=>{if('insertion'!=_0x26aec5['type']&&'deletion'!=_0x26aec5['type'])return;const _0x11b6f0=_0x26aec5['getContainedElement']();if(null!=_0x11b6f0&&_0x11b6f0['is']('element','table')){if('insertion'==_0x26aec5['type']){const _0x751d41=_0x26aec5['getItems']()['filter'](_0x5e10b5=>_0x5e10b5['is']('$textProxy'))['map'](_0x48111f=>_0x48111f['data']);if(_0x751d41['length'])return{'type':'insertion','content':o(_0x5a503e,'*Insert:*\x20%0',o(_0x5a503e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x751d41['join']('\x20')+'\x22'))};}if('deletion'==_0x26aec5['type']){const _0x5d95fb=_0x26aec5['getItems']()['filter'](_0x53b2d9=>_0x53b2d9['is']('$textProxy'))['map'](_0x3649b6=>_0x3649b6['data']);if(_0x5d95fb['length'])return{'type':'deletion','content':o(_0x5a503e,'*Remove:*\x20%0',o(_0x5a503e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5d95fb['join']('\x20')+'\x22'))};}}}),_0x393a9f['descriptionFactory']['registerDescriptionCallback'](_0x285ff2=>{if('tableRow'==_0x285ff2['subType']){const _0x5b70ae=_0x285ff2['getItems']()['filter'](_0x4a1215=>_0x4a1215['is']('$textProxy'))['map'](_0xb7bfa=>_0xb7bfa['data']),_0x54928d=this['_getSuggestionCoords'](_0x285ff2),_0x2b930e=_0x54928d['maxRow']-_0x54928d['minRow']+0x1;if('insertion'==_0x285ff2['type'])return _0x5b70ae['length']?{'type':'insertion','content':o(_0x5a503e,'*Insert:*\x20%0',o(_0x5a503e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2b930e,'\x22'+_0x5b70ae['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5a503e,'*Insert:*\x20%0',o(_0x5a503e,'ELEMENT_TABLE_ROW',_0x2b930e))};if('deletion'==_0x285ff2['type'])return _0x5b70ae['length']?{'type':'deletion','content':o(_0x5a503e,'*Remove:*\x20%0',o(_0x5a503e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2b930e,'\x22'+_0x5b70ae['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5a503e,'*Remove:*\x20%0',o(_0x5a503e,'ELEMENT_TABLE_ROW',_0x2b930e))};}if('tableColumn'==_0x285ff2['subType']){const _0x2e6fc8=_0x285ff2['getItems']()['filter'](_0x2e82d8=>_0x2e82d8['is']('$textProxy'))['map'](_0x1a76e3=>_0x1a76e3['data']),_0x5d1900=this['_getSuggestionCoords'](_0x285ff2),_0x3c69b5=_0x5d1900['maxColumn']-_0x5d1900['minColumn']+0x1;if('insertion'==_0x285ff2['type'])return _0x2e6fc8['length']?{'type':'insertion','content':o(_0x5a503e,'*Insert:*\x20%0',o(_0x5a503e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3c69b5,'\x22'+_0x2e6fc8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5a503e,'*Insert:*\x20%0',o(_0x5a503e,'ELEMENT_TABLE_COLUMN',_0x3c69b5))};if('deletion'==_0x285ff2['type'])return _0x2e6fc8['length']?{'type':'deletion','content':o(_0x5a503e,'*Remove:*\x20%0',o(_0x5a503e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3c69b5,'\x22'+_0x2e6fc8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5a503e,'*Remove:*\x20%0',o(_0x5a503e,'ELEMENT_TABLE_COLUMN',_0x3c69b5))};}}),_0x393a9f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x436dd3),_0x393a9f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x436dd3),_0x393a9f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x14e4cd),_0x393a9f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x14e4cd),_0x393a9f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1e72c2),_0x393a9f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1e72c2),_0x393a9f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x17fe1d),_0x393a9f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x17fe1d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x34482c=this['editor'],_0x5eaf83=_0x34482c['model']['document']['selection'];return(_0x3fbb9b,_0x67f743)=>{_0x34482c['model']['change'](_0x55a293=>{const {commandName:_0x4f1195,commandParams:_0x41a85a}=_0x67f743;let _0x5153a1=_0x3fbb9b[0x0]['end']['nodeBefore'];_0x41a85a&&_0x41a85a[0x0]&&!0x1===_0x41a85a[0x0]['forceValue']&&(_0x5153a1=_0x3fbb9b[0x0]['start']['nodeAfter']);const _0x577495=_0x55a293['createRangeIn'](_0x5153a1);if('$graveyard'==_0x577495['root']['rootName'])return;const _0x28dd23=Array['from'](_0x5eaf83['getRanges']())['map'](_0x21dd0b=>_0x3af705['fromRange'](_0x21dd0b));_0x55a293['setSelection'](_0x577495),_0x34482c['commands']['get'](_0x4f1195)['refresh'](),_0x41a85a['push']({'forceDefaultExecution':!0x0}),_0x34482c['execute'](_0x4f1195,..._0x41a85a);const _0x18778c=_0x28dd23['filter'](_0x5a9bda=>'$graveyard'!=_0x5a9bda['root']['rootName']);_0x18778c['length']>0x0&&_0x55a293['setSelection'](_0x18778c);for(const _0x4edfde of _0x28dd23)_0x4edfde['detach']();});};}['_getCoordsForCells'](_0x12b6cd){const _0xd02b63=this['editor']['plugins']['get']('TableUtils');let _0x3812f6=Number['MAX_SAFE_INTEGER'],_0x3a8086=Number['MIN_SAFE_INTEGER'],_0x55c26c=Number['MAX_SAFE_INTEGER'],_0x5cb6ba=Number['MIN_SAFE_INTEGER'];for(const _0x216997 of _0x12b6cd){if('$graveyard'==_0x216997['root']['rootName'])continue;const {row:_0x4c7de1,column:_0x58baaf}=_0xd02b63['getCellLocation'](_0x216997),_0x1db2be=_0x216997['hasAttribute']('rowspan')?_0x216997['getAttribute']('rowspan')-0x1:0x0,_0x1d4456=_0x216997['hasAttribute']('colspan')?_0x216997['getAttribute']('colspan')-0x1:0x0;_0x3812f6=_0x4c7de1<_0x3812f6?_0x4c7de1:_0x3812f6,_0x3a8086=_0x4c7de1+_0x1db2be>_0x3a8086?_0x4c7de1+_0x1db2be:_0x3a8086,_0x55c26c=_0x58baaf<_0x55c26c?_0x58baaf:_0x55c26c,_0x5cb6ba=_0x58baaf+_0x1d4456>_0x5cb6ba?_0x58baaf+_0x1d4456:_0x5cb6ba;}return{'minRow':_0x3812f6,'maxRow':_0x3a8086,'minColumn':_0x55c26c,'maxColumn':_0x5cb6ba};}['_setupColumnsRowsFixing'](){const _0x316d20=this['editor'],_0x451b76=_0x316d20['plugins']['get']('TrackChangesEditing'),_0x5b0048=_0x316d20['plugins']['get']('TableUtils');_0x316d20['model']['document']['on']('change:data',()=>{const _0x42e35c=Array['from'](_0x316d20['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x51075e,data:_0x126dbf}of _0x42e35c){const {group:_0x2d88c0,id:_0x122fe2,subType:_0x28ad6c}=_0x451b76['_splitMarkerName'](_0x51075e);if('suggestion'!=_0x2d88c0)continue;if(null!=_0x126dbf['oldRange'])continue;const _0x305acf=_0x451b76['getSuggestion'](_0x122fe2);this['_tablePostFixingSubtypes']['includes'](_0x28ad6c)&&this['_tableSuggestions']['add'](_0x305acf);}},{'priority':'low'});const _0x3e8ff4=(_0x47f15a,_0x8ecd3e)=>{let _0x40acd3=!0x1;const _0x538771=_0x8ecd3e['createRangeOn'](_0x47f15a),_0x111979=_0x47f15a['findAncestor']('table'),_0x4588e4=_0x5b0048['getCellLocation'](_0x47f15a);for(const _0x21cea9 of this['_tableSuggestions']){const _0x14b5f4=_0x21cea9['subType'],_0x1d5dea=_0x14b5f4['startsWith']('tablePaste'),_0x26f23d=_0x14b5f4['substr'](_0x1d5dea?0xa:0x5),_0x46ba68=_0x26f23d['toLowerCase'](),_0x2c157c=_0x46ba68['substr'](0x0,0x3)+'span',_0x150986='min'+_0x26f23d,_0x1dd0a3='max'+_0x26f23d;if(!_0x21cea9['isInContent'])continue;if(_0x111979!=_0x21cea9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x21cea9['isIntersectingWithRange'](_0x538771))continue;const _0x3322b7=_0x47f15a['hasAttribute'](_0x2c157c)?_0x47f15a['getAttribute'](_0x2c157c)-0x1:0x0,_0x2468fe=this['_getSuggestionCoords'](_0x21cea9),_0x308a21=_0x2468fe[_0x150986],_0x2f60ee=_0x2468fe[_0x1dd0a3];_0x308a21<=_0x4588e4[_0x46ba68]&&_0x4588e4[_0x46ba68]+_0x3322b7<=_0x2f60ee&&(_0x21cea9['addRange'](_0x538771),_0x40acd3=!0x0);}return _0x40acd3;};_0x316d20['model']['document']['registerPostFixer'](_0x4cf3b9=>{let _0x3fc07d=!0x1;for(const _0x50ac14 of _0x316d20['model']['document']['differ']['getChanges']())if('insert'==_0x50ac14['type']){if('tableRow'==_0x50ac14['name']){for(const _0x38688f of _0x50ac14['position']['nodeAfter']['getChildren']())_0x3fc07d=_0x3fc07d||_0x3e8ff4(_0x38688f,_0x4cf3b9);}else'tableCell'==_0x50ac14['name']&&(_0x3fc07d=_0x3fc07d||_0x3e8ff4(_0x50ac14['position']['nodeAfter'],_0x4cf3b9));}return _0x3fc07d;});}['_getSuggestionCoords'](_0x29d544){return this['_getCoordsForCells'](_0x29d544['getRanges']()['map'](_0x135415=>_0x135415['start']['nodeAfter']));}}function Ne(_0x27ffcf){return Array['from'](new Set(_0x27ffcf)['values']());}class Nt extends _0x7c1c66{static get['requires'](){return[Ct];}['afterInit'](){const _0x68661d=this['editor'],_0x371bc7=_0x68661d['model']['document']['selection'],_0x95820c=_0x68661d['locale'];if(!_0x68661d['plugins']['has']('TableEditing'))return;const _0x33dfa8=_0x68661d['plugins']['get']('TrackChangesEditing'),_0x29e7ae=_0x68661d['plugins']['get']('TableUtils'),_0xc2714a=_0x68661d['plugins']['get'](Ct);_0xc2714a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x33dfa8['enableCommand']('mergeTableCells',()=>{const _0x2266fc=_0x29e7ae['getSelectionAffectedTableCells'](_0x68661d['model']['document']['selection']);_0x68661d['model']['change'](()=>{_0x33dfa8['markMultiRangeBlockFormat'](_0x2266fc,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x68661d['commands']['get']('mergeTableCells')['on']('execute',(_0xeb3442,_0x2cc645)=>{_0x68661d['commands']['get']('trackChanges')['value']&&(_0x2cc645['length']>0x0&&_0x2cc645[_0x2cc645['length']-0x1]&&_0x2cc645[_0x2cc645['length']-0x1]['forceDefaultExecution']||_0x33dfa8['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xeb3442['stop']());},{'priority':'highest'});for(const _0x51f538 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xc62c39=_0x68661d['commands']['get'](_0x51f538);_0x33dfa8['enableCommand'](_0x51f538,()=>{const _0x3d1536=_0x68661d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4e4489=>_0x4e4489['is']('element','tableCell')),_0x5537a8=_0xc62c39['value'];_0x68661d['model']['change'](()=>{_0x33dfa8['markMultiRangeBlockFormat']([_0x3d1536,_0x5537a8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x122292 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x22c767=_0x68661d['commands']['get'](_0x122292);_0x33dfa8['enableCommand'](_0x122292,()=>{const _0x3521f8=_0x29e7ae['getSelectionAffectedTableCells'](_0x68661d['model']['document']['selection'])[0x0],_0x440e47=_0x3521f8['findAncestor']('table'),{column:_0x25237e,row:_0x7b7927}=_0x29e7ae['getCellLocation'](_0x3521f8);let _0x5a85af=[];if('horizontally'==_0x22c767['direction']){const _0x5c4858=_0x29e7ae['createTableWalker'](_0x440e47,{'startRow':_0x7b7927,'endRow':_0x7b7927,'includeAllSlots':!0x0});_0x5a85af=Array['from'](_0x5c4858)['map'](_0x3a7b15=>_0x3a7b15['cell']);}else{const _0x1ae470=_0x29e7ae['createTableWalker'](_0x440e47,{'column':_0x25237e,'includeAllSlots':!0x0});_0x5a85af=Array['from'](_0x1ae470)['map'](_0x905137=>_0x905137['cell']);}_0x68661d['model']['change'](_0xad1fe=>{_0x33dfa8['markBlockFormat'](_0xad1fe['createRangeOn'](_0x3521f8),{'commandName':_0x122292,'commandParams':[]},_0x5a85af,_0x122292);});});}_0x33dfa8['descriptionFactory']['registerDescriptionCallback'](_0x2a6546=>{if('formatBlock'!=_0x2a6546['type']&&'formatInline'!=_0x2a6546['type'])return;const {data:_0x4de42f}=_0x2a6546;return _0x4de42f&&'mergeTableCells'==_0x4de42f['commandName']?{'type':'format','content':o(_0x95820c,'*Merge\x20cells*')}:void 0x0;}),_0x33dfa8['descriptionFactory']['registerDescriptionCallback'](_0x539e4b=>{if('formatBlock'!=_0x539e4b['type']&&'formatInline'!=_0x539e4b['type'])return;const {data:_0x91e474}=_0x539e4b;return _0x91e474?'splitTableCellVertically'==_0x91e474['commandName']?{'type':'format','content':o(_0x95820c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x91e474['commandName']?{'type':'format','content':o(_0x95820c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xcb82f7=_0xc2714a['_acceptFormatSuggestionCallbackFactory']();for(const _0xbef277 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x33dfa8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xbef277,'accept',_0xcb82f7);for(const _0x327c58 of['splitTableCellVertically','splitTableCellHorizontally'])_0x33dfa8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x327c58,'accept',_0xcb82f7);_0x33dfa8['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4e5a34=>{_0x68661d['model']['change'](_0x4b659a=>{const _0x5f2311=Array['from'](_0x371bc7['getRanges']())['map'](_0x2ab7b0=>_0x3af705['fromRange'](_0x2ab7b0));_0x4b659a['setSelection'](_0x4e5a34),_0x68661d['commands']['get']('mergeTableCells')['refresh'](),_0x68661d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x54d976=_0x5f2311['filter'](_0x1e79e9=>'$graveyard'!=_0x1e79e9['root']['rootName']);_0x54d976['length']>0x0&&_0x4b659a['setSelection'](_0x54d976);for(const _0x3ac9c4 of _0x5f2311)_0x3ac9c4['detach']();});});for(const _0x662d46 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x186860=_0x68661d['commands']['get'](_0x662d46);_0x186860['on']('set:isEnabled',(_0x4b9564,_0x2a0799,_0x4cfc77)=>{if(_0x4cfc77){const _0x4ec6b7=_0x68661d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x586ddf=>_0x586ddf['is']('element','tableCell'));this['_areMergableCells'](_0x186860['value'],_0x4ec6b7)||(_0x4b9564['return']=!0x1,_0x4b9564['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x56d887=this['editor']['commands']['get']('mergeTableCells'),_0x405eda=this['editor']['plugins']['get']('TableUtils');if(!_0x56d887['isEnabled'])return!0x1;const _0x2488f6=_0x405eda['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x199f69 of _0x2488f6)for(const _0x26e5d7 of _0x2488f6)if(_0x199f69!=_0x26e5d7&&!this['_areMergableCells'](_0x199f69,_0x26e5d7))return!0x1;return!0x0;}['_areMergableCells'](_0x412005,_0x39ee9c){const _0x247821=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e89f6=this['editor']['model']['createRangeOn'](_0x412005),_0x1cf6e1=this['editor']['model']['createRangeOn'](_0x39ee9c),_0x5f0daa=new Set(),_0x275ab1=new Set();for(const _0x18a73f of _0x247821['getSuggestions']())if(('insertion'==_0x18a73f['type']||'deletion'==_0x18a73f['type']||'mergeTableCells'==_0x18a73f['subType'])&&_0x18a73f['isInContent']){for(const _0x1774d6 of _0x18a73f['getRanges']())_0x1774d6['containsRange'](_0x2e89f6,!0x0)&&_0x5f0daa['add'](_0x18a73f['type']+':'+_0x18a73f['author']['id']),_0x1774d6['containsRange'](_0x1cf6e1,!0x0)&&_0x275ab1['add'](_0x18a73f['type']+':'+_0x18a73f['author']['id']);}if(_0x5f0daa['size']!=_0x275ab1['size'])return!0x1;for(const _0x1b0e50 of _0x5f0daa)if(!_0x275ab1['has'](_0x1b0e50))return!0x1;return!0x0;}}class Dt extends _0x7c1c66{static get['requires'](){return[Ct];}['afterInit'](){const _0xa258e0=this['editor'];if(!_0xa258e0['plugins']['has']('TableEditing'))return;const _0xff44ef=_0xa258e0['locale'],_0x1ff967=_0xa258e0['plugins']['get']('TrackChangesEditing');_0x1ff967['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1ff967['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1ff967['registerBlockAttribute']('headingRows'),_0x1ff967['registerBlockAttribute']('headingColumns'),_0x1ff967['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xff44ef,'FORMAT_HEADER_ROW')),_0x1ff967['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xff44ef,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5bf0d6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x360b43=this['editor']['plugins']['get']('TableUtils'),_0xed0fe1=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x21b2c5({showActiveMarker:_0x37fd88=!0x0,setDataAttribute:_0x2e60f8=!0x0}={}){return(_0x21b403,_0x16885f,_0x2ff446)=>{const {type:_0x4698d8,id:_0xdf8576}=_0x5bf0d6['_splitMarkerName'](_0x16885f['markerName']),_0x22888b=_0x5bf0d6['getSuggestion'](_0xdf8576),_0x34183c=_0x22888b['data'];if('formatBlock'!=_0x22888b['type']||!_0x34183c||'setTableColumnHeader'!=_0x34183c['commandName'])return;if(_0x16885f['item'])return void _0x21b403['stop']();if(!_0x2ff446['consumable']['consume'](_0x16885f['markerRange'],_0x21b403['name']))return;const _0x5209bc=_0x16885f['markerRange']['start']['nodeAfter'],_0x220437=_0x16885f['markerRange']['end']['nodeBefore'],_0xb4a34e=_0x5209bc['parent']['parent'],{column:_0x42715d}=_0x360b43['getCellLocation'](_0x5209bc),{column:_0x4f2d7c}=_0x360b43['getCellLocation'](_0x220437);for(let _0x2d3781=_0x42715d;_0x2d3781<=_0x4f2d7c;_0x2d3781++){const _0x25e567=_0x360b43['createTableWalker'](_0xb4a34e,{'column':_0x2d3781,'includeAllSlots':!0x1});for(const _0x862b7f of _0x25e567){const _0x9ab4f=_0x862b7f['cell'],_0x48c362=_0x2ff446['mapper']['toViewElement'](_0x9ab4f);_0x2ff446['writer']['addClass']('ck-suggestion-marker-'+_0x4698d8,_0x48c362),_0x2e60f8&&_0x2ff446['writer']['setAttribute']('data-suggestion',_0xdf8576,_0x48c362),_0x2ff446['mapper']['bindElementToMarker'](_0x48c362,_0x16885f['markerName']),_0x37fd88&&(_0x5bf0d6['activeMarkers']['includes'](_0x16885f['markerName'])?_0x2ff446['writer']['addClass']('ck-suggestion-marker--active',_0x48c362):_0x2ff446['writer']['removeClass']('ck-suggestion-marker--active',_0x48c362));}}};}_0x5bf0d6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xed0fe1),_0x5bf0d6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xed0fe1),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x21b2c5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x213c0f,_0x255b41,_0x21eadf)=>{_0x21eadf['options']['showSuggestionHighlights']&&_0x21b2c5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x213c0f,_0x255b41,_0x21eadf);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3b46cd,_0x10ac70,_0x544301)=>{const {type:_0x235744,id:_0x42c3ff}=_0x5bf0d6['_splitMarkerName'](_0x10ac70['markerName']),_0x135b14=_0x5bf0d6['getSuggestion'](_0x42c3ff),_0x208d62=_0x135b14['data'];if('formatBlock'!=_0x135b14['type']||!_0x208d62||'setTableColumnHeader'!=_0x208d62['commandName'])return;const _0xc5f1ac=_0x544301['mapper']['markerNameToElements'](_0x10ac70['markerName']);if(_0xc5f1ac){for(const _0xbff852 of _0xc5f1ac)_0x544301['writer']['removeClass']('ck-suggestion-marker-'+_0x235744,_0xbff852),_0x544301['writer']['removeClass']('ck-suggestion-marker--active',_0xbff852),_0x544301['writer']['removeAttribute']('data-suggestion',_0xbff852),_0x544301['mapper']['unbindElementFromMarkerName'](_0xbff852,_0x10ac70['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x204e32=this['editor'],_0xe8b0d2=_0x204e32['locale'];function _0x4fb603(_0x748786){return{'type':'format','content':o(_0xe8b0d2,'*Format:*\x20%0',_0x748786)};}_0x204e32['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5aaf40=>{if('formatBlock'!=_0x5aaf40['type'])return;const {data:_0x2b0536}=_0x5aaf40;if(_0x2b0536){if('setTableRowHeader'==_0x2b0536['commandName']){const _0x254144=_0x2b0536['commandParams'][0x0]['forceValue'];return _0x4fb603(o(_0xe8b0d2,_0x254144?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2b0536['commandName']){const _0xc2c44e=_0x2b0536['commandParams'][0x0]['forceValue'];return _0x4fb603(o(_0xe8b0d2,_0xc2c44e?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x5aea0a=>[_0x5aea0a,null]));class Mt extends _0x7c1c66{static get['requires'](){return[Ct];}['afterInit'](){const _0x96fca6=this['editor'];if(!_0x96fca6['plugins']['has']('TableClipboard'))return;const _0x360ff1=_0x96fca6['plugins']['get']('TrackChangesEditing'),_0x11fa1a=_0x96fca6['plugins']['get']('TableUtils'),_0x16c00a=_0x96fca6['plugins']['get'](Ct),_0x547419=_0x96fca6['plugins']['get']('TableClipboard');_0x16c00a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x96fca6['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x96fca6['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1164c8=null;_0x96fca6['model']['on']('insertContent',(_0x5c423f,_0x26f48d)=>{const [_0x2f5a55,_0x2f6cb6]=_0x26f48d,_0x121e97=_0x26f48d[_0x26f48d['length']-0x1];_0x121e97&&_0x121e97['forceDefaultExecution']||_0x360ff1['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x232d8e,_0x214238,_0xd0fad8,_0x4699b1,_0x56d0a8){if(_0x214238&&!_0x214238['is']('documentSelection'))return!0x1;const _0xcee345=_0x56d0a8['getTableIfOnlyTableInContent'](_0x232d8e,_0xd0fad8);if(!_0xcee345||!Ue(_0xcee345,void 0x0,_0x4699b1))return!0x1;const _0x1b1a2a=_0x4699b1['getSelectionAffectedTableCells'](_0xd0fad8['document']['selection']);if(!_0x1b1a2a['length'])return!0x1;const _0x1f5a76=_0x1b1a2a[0x0]['findAncestor']('table'),_0x2e5374=_0x4699b1['getRowIndexes'](_0x1b1a2a),_0x1cf3a3=_0x4699b1['getColumnIndexes'](_0x1b1a2a),_0x55db73={'startRow':_0x2e5374['first'],'endRow':_0x2e5374['last'],'startColumn':_0x1cf3a3['first'],'endColumn':_0x1cf3a3['last']};return 0x1==_0x1b1a2a['length']&&(_0x55db73['endRow']+=_0x4699b1['getRows'](_0xcee345)-0x1,_0x55db73['endColumn']+=_0x4699b1['getColumns'](_0xcee345)-0x1),Ue(_0x1f5a76,_0x55db73,_0x4699b1);}(_0x2f5a55,_0x2f6cb6,_0x96fca6['model'],_0x11fa1a,_0x547419)&&(_0x5c423f['stop'](),_0x1164c8={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x96fca6['model']['change'](()=>{_0x96fca6['model']['insertContent'](_0x26f48d[0x0],_0x26f48d[0x1],_0x26f48d[0x2],{'forceDefaultExecution':!0x0});const _0x2de276=_0x21926f(),{rowInsertionRanges:_0xd4de6a,columnInsertionRanges:_0x59fd01,insertionRanges:_0x1c87ae,deletionRanges:_0x238c74,cells:_0x3d15b3}=_0x1164c8;_0xd4de6a['length']&&_0x360ff1['markMultiRangeInsertion'](_0xd4de6a,'tablePasteRow',{'tablePasteChainId':_0x2de276}),_0x59fd01['length']&&_0x360ff1['markMultiRangeInsertion'](_0x59fd01,'tablePasteColumn',{'tablePasteChainId':_0x2de276}),_0x1c87ae['length']&&(_0x360ff1['markMultiRangeInsertion'](_0x1c87ae,'tablePaste',{'tablePasteChainId':_0x2de276,'skipNestingCheck':!0x0}),_0x1c87ae['forEach'](_0x1c3f46=>_0x1c3f46['detach']?.())),_0x238c74['length']&&(_0x360ff1['markMultiRangeDeletion'](_0x238c74,'tablePaste',{'tablePasteChainId':_0x2de276,'skipNestingCheck':!0x0}),_0x238c74['forEach'](_0x32a2b9=>_0x32a2b9['detach']?.()));const _0x580d14=_0x360ff1['markMultiRangeBlockFormat'](_0x3d15b3['map'](({element:_0x293842})=>_0x293842),{'formatGroupId':_0x21926f()},[],'tablePasteCell',{'tablePasteChainId':_0x2de276});if(_0x580d14){const _0xaafc41=_0x580d14['getMarkers'](),_0xf52495=[];for(const {element:_0x50ca7e,attributes:_0x2b7459}of _0x3d15b3){if(!_0x2b7459)continue;const _0x4489a0=_0x96fca6['model']['createRangeOn'](_0x50ca7e),_0x589903=_0xaafc41['find'](_0xd0680f=>_0xd0680f['getRange']()['isEqual'](_0x4489a0));_0x589903&&_0xf52495['push']([_0x589903['name'],_0x2b7459]);}_0xf52495['length']&&_0x580d14['setAttribute']('markerAttributes',Object['fromEntries'](_0xf52495));}_0x1164c8=null;}));},{'priority':_0x1f9bf5['high']+0xa}),_0x96fca6['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2de862,_0x5c4ead)=>{const [_0x936ae4,_0x1c8f51,,_0x1832b2]=_0x5c4ead;if(!_0x1164c8)return;_0x2de862['stop']();const _0x3d3bcc=_0x936ae4['cell'],_0x433b08=_0x1c8f51,_0x46030a=Oe(_0x3d3bcc),_0x263a8d=Oe(_0x433b08);_0x2de862['return']=_0x3d3bcc;let _0x124759=null,_0xba5d21=null;if(_0x263a8d||_0x46030a){if(_0x46030a&&!_0x263a8d){_0x1832b2['remove'](_0x3d3bcc['getChild'](0x0));for(const _0x1ab38f of Array['from'](_0x433b08['getChildren']()))_0x1832b2['insert'](_0x1ab38f,_0x3d3bcc,'end');const _0x5ef8c0=_0x1164c8['rowInsertionIndexes']['includes'](_0x936ae4['row']),_0x3c7486=_0x1164c8['columnInsertionIndexes']['includes'](_0x936ae4['column']);_0x5ef8c0||_0x3c7486||(_0x124759=_0x3af705['fromRange'](_0x1832b2['createRangeIn'](_0x3d3bcc)));}else _0x263a8d&&!_0x46030a&&(_0xba5d21=_0x1832b2['createRangeIn'](_0x3d3bcc));}else{const _0x2564ef=_0x1832b2['createElement']('tableCellSuggestion'),_0x2554e3=_0x1832b2['createElement']('tableCellSuggestion');_0x1832b2['wrap'](_0x1832b2['createRangeIn'](_0x3d3bcc),_0x2554e3),_0x1832b2['insert'](_0x2564ef,_0x3d3bcc,0x0);for(const _0x38c762 of Array['from'](_0x433b08['getChildren']()))_0x1832b2['insert'](_0x38c762,_0x2564ef,'end');_0x124759=_0x3af705['fromRange'](_0x1832b2['createRangeOn'](_0x2564ef)),_0xba5d21=_0x3af705['fromRange'](_0x1832b2['createRangeOn'](_0x2554e3));}const _0x2addfb=Array['from'](_0x433b08['getAttributes']())['filter'](([_0x1c2404])=>Be['includes'](_0x1c2404));_0x1164c8['cells']['push']({'element':_0x3d3bcc,'attributes':_0x2addfb['length']?Object['fromEntries'](_0x2addfb):null}),_0x124759&&_0x1164c8['insertionRanges']['push'](_0x124759),_0xba5d21&&_0x1164c8['deletionRanges']['push'](_0xba5d21);},{'priority':'high'}),_0x11fa1a['on']('insertColumns',(_0x439993,_0x534158)=>{const [_0x271302,_0x309b96={}]=_0x534158;if(!_0x1164c8)return;const _0x365430=_0x309b96['at']||0x0,_0x2ccf70=_0x309b96['columns']||0x1;_0x1164c8['columnInsertionIndexes']=new Array(_0x2ccf70)['fill'](_0x365430)['map']((_0x14b505,_0x4edcfe)=>_0x14b505+_0x4edcfe);for(const {cell:_0x1f9f81}of _0x11fa1a['createTableWalker'](_0x271302,{'startColumn':_0x365430,'endColumn':_0x365430+_0x2ccf70-0x1}))_0x1164c8['columnInsertionRanges']['push'](_0x96fca6['model']['createRangeOn'](_0x1f9f81));},{'priority':'low'}),_0x11fa1a['on']('insertRows',(_0x26ddf5,_0x56221f)=>{const [_0x1ad8a8,_0x34e09a={}]=_0x56221f;if(!_0x1164c8)return;const _0x54d5ef=_0x34e09a['at']||0x0,_0x1c28f1=_0x34e09a['rows']||0x1;_0x1164c8['rowInsertionIndexes']=new Array(_0x1c28f1)['fill'](_0x54d5ef)['map']((_0x5b11c1,_0x2b21cd)=>_0x5b11c1+_0x2b21cd);for(const {cell:_0x5ad2d7}of _0x11fa1a['createTableWalker'](_0x1ad8a8,{'startRow':_0x54d5ef,'endRow':_0x54d5ef+_0x1c28f1-0x1}))_0x1164c8['rowInsertionRanges']['push'](_0x96fca6['model']['createRangeOn'](_0x5ad2d7));},{'priority':'low'}),_0x360ff1['descriptionFactory']['registerDescriptionCallback'](_0xfb18f7=>{if(_0xfb18f7['subType']&&_0xfb18f7['subType']['startsWith']('tablePaste'))return _0xfb18f7['previous']?{}:{'type':'insertion','content':o(_0x96fca6['locale'],'*Replace\x20table\x20cells*')};});const _0x444c0e=()=>!0x1;for(const _0x17c0a7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x360ff1['_suggestionFactory']['registerCustomCallback']('insertion',_0x17c0a7,'join',_0x444c0e),_0x360ff1['_suggestionFactory']['registerCustomCallback']('deletion',_0x17c0a7,'join',_0x444c0e),_0x360ff1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x17c0a7,'join',_0x444c0e);_0x360ff1['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x444c0e),_0x360ff1['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x229d17,_0x5942a,_0x20eb07)=>{const _0x131750=_0x229d17['map'](_0x5388df=>_0x5388df['getContainedElement']())['filter'](_0xd768a2=>_0xd768a2),_0x3b04e1=new Map(_0x131750['map'](_0x369c79=>[_0x369c79,null]));if(_0x1164c8){for(const {element:_0x35484b,attributes:_0x59f64a}of _0x1164c8['cells'])_0x59f64a&&_0x3b04e1['set'](_0x35484b,_0x59f64a);}else{if(_0x20eb07&&_0x20eb07['markerAttributes'])for(const [_0x2b58d1,_0x5455b1]of Object['entries'](_0x20eb07['markerAttributes'])){const _0x4abcc9=_0x96fca6['model']['markers']['get'](_0x2b58d1),_0x35032e=_0x4abcc9?_0x4abcc9['getRange']()['getContainedElement']():null;_0x35032e&&_0x3b04e1['set'](_0x35032e,_0x5455b1);}}_0x96fca6['model']['change'](_0x596b70=>{for(const [_0x2eeee5,_0x232a94]of _0x3b04e1)_0x596b70['setAttributes']({...xe,..._0x232a94},_0x2eeee5);});});const _0x20314a=(_0x1652b7,_0x57fde4)=>{_0x360ff1['_suggestionFactory']['registerCustomCallback'](_0x1652b7,'tablePaste',_0x57fde4,(_0x34cb37,_0x132468,_0xc03f46)=>{_0x96fca6['model']['change'](_0x487156=>{const _0x5009d1=[];for(const _0x456913 of _0x34cb37){const _0x275e6d=_0x456913['start']['nodeAfter'];_0x275e6d['is']('element','tableCellSuggestion')&&_0x5009d1['push'](_0x275e6d);}_0x360ff1['_suggestionFactory']['getSuggestionCallback'](_0x1652b7,null,_0x57fde4)(_0x34cb37,_0x132468,_0xc03f46);for(const _0x55b570 of _0x5009d1)'$graveyard'!=_0x55b570['root']['rootName']&&_0x487156['unwrap'](_0x55b570);});});};_0x20314a('insertion','accept'),_0x20314a('insertion','discard'),_0x20314a('deletion','accept'),_0x20314a('deletion','discard'),_0x360ff1['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x366daa=>{const _0xb6daa8=_0x366daa['map'](_0x2ef966=>_0x2ef966['getContainedElement']()),_0x4bbdcc=_0xb6daa8[0x0]['findAncestor']('table'),{minRow:_0x32600e,maxRow:_0x4e541e}=_0x16c00a['_getCoordsForCells'](_0xb6daa8);_0x11fa1a['removeRows'](_0x4bbdcc,{'at':_0x32600e,'rows':_0x4e541e-_0x32600e+0x1});}),_0x360ff1['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4690f5=>{const _0x2aeb39=_0x4690f5['map'](_0x435e4a=>_0x435e4a['getContainedElement']()),_0xbbc925=_0x2aeb39[0x0]['findAncestor']('table'),{minColumn:_0x4cff6f,maxColumn:_0x3ccbbc}=_0x16c00a['_getCoordsForCells'](_0x2aeb39);_0x11fa1a['removeColumns'](_0xbbc925,{'at':_0x4cff6f,'columns':_0x3ccbbc-_0x4cff6f+0x1});});const _0x6764e0=(_0x2bbf77,_0x413860)=>{if(!_0x413860['subType']||!_0x413860['subType']['startsWith']('tablePaste'))return;const _0x45c7ef=_0x413860['attributes']['tablePasteChainId'],_0x5ce4e7=_0x360ff1['getSuggestions']()['filter'](_0x43f2a1=>_0x43f2a1['isInContent']&&_0x43f2a1['attributes']&&_0x43f2a1['attributes']['tablePasteChainId']==_0x45c7ef);_0x5ce4e7['length']&&_0x413860['getAllAdjacentSuggestions']()['length']!=_0x5ce4e7['length']&&_0x5ce4e7['reduce']((_0x2c941f,_0x4b4207)=>(_0x2c941f['next']=_0x4b4207,_0x4b4207['previous']=_0x2c941f,_0x4b4207));};function _0x4928d3(_0x3042ca,_0x5784c2=!0x0){const {id:_0x47bcf4,authorId:_0x5d1741}=_0x360ff1['_splitMarkerName'](_0x3042ca['markerName']),_0x20a2bb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2d091e=_0x360ff1['activeMarkers']['includes'](_0x3042ca['markerName']);return _0x2d091e&&_0x20a2bb['push']('ck-suggestion-marker--active'),{'classes':_0x20a2bb,'attributes':{'data-suggestion':_0x47bcf4,'data-author-id':_0x5d1741},'priority':_0x2d091e&&_0x5784c2?0xbc2:0xbb8};}_0x360ff1['on']('suggestionLoaded',_0x6764e0,{'priority':'high'}),_0x360ff1['on']('suggestionUnloaded',_0x6764e0,{'priority':'high'}),_0x96fca6['model']['document']['registerPostFixer'](()=>{let _0x9ecf67=!0x1;const _0x453805=Array['from'](_0x96fca6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1b023d,data:_0x542550}of _0x453805){const {group:_0xf01248,type:_0x10e4f8,id:_0x54a23c}=_0x360ff1['_splitMarkerName'](_0x1b023d);if('suggestion'!=_0xf01248||'deletion'!=_0x10e4f8||_0x542550['oldRange'])continue;if(!_0x360ff1['hasSuggestion'](_0x54a23c))continue;const _0x2e5e20=_0x360ff1['getSuggestion'](_0x54a23c)['getRanges'](),_0xcc6314=_0x96fca6['plugins']['get']('Users')['me'];for(const _0x261301 of _0x360ff1['getSuggestions']()){if(!_0x261301['isInContent']||_0x261301['author']!=_0xcc6314)continue;if('formatBlock'!=_0x261301['type']||'tablePasteCell'!=_0x261301['subType'])continue;if(_0x261301['getRanges']()['every'](_0x2bd4fb=>_0x2e5e20['some'](_0x281b2a=>_0x281b2a['containsRange'](_0x2bd4fb,!0x0)))){for(const _0x10237e of _0x261301['getAllAdjacentSuggestions']())_0x10237e['isInContent']&&(_0x10237e['discard'](),_0x9ecf67=!0x0);}}}return _0x9ecf67;}),_0x96fca6['model']['document']['registerPostFixer'](_0x44b32d=>{const _0x54da28=_0x96fca6['commands']['get']('redo');if(!_0x54da28||!_0x54da28['_createdBatches']['has'](_0x44b32d['batch']))return!0x1;let _0x17e96d=!0x1;const _0x90bfca=_0x96fca6['plugins']['get']('Users')['me'],_0x538130=_0x96fca6['model']['document']['differ']['getChanges'](),_0x252330=Array['from'](_0x96fca6['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x275d96,data:_0x3ba169})=>{const {group:_0x1f107d,subType:_0x2e01ba,authorId:_0x5b8c55}=_0x360ff1['_splitMarkerName'](_0x275d96);return'suggestion'==_0x1f107d&&'tablePaste'==_0x2e01ba&&_0x5b8c55==_0x90bfca['id']&&!_0x3ba169['oldRange'];});for(const _0x44bc22 of _0x538130){if('insert'!=_0x44bc22['type']||'tableCellSuggestion'!=_0x44bc22['name']||0x1!=_0x44bc22['length'])continue;const _0x31ed21=_0x44b32d['createRange'](_0x44bc22['position'],_0x44bc22['position']['getShiftedBy'](0x1));if(!_0x252330['find'](({data:_0x4c71e7})=>_0x4c71e7['newRange']['isEqual'](_0x31ed21))){for(const {name:_0x55e872,data:_0x3d5fa5}of _0x252330)if(_0x31ed21['containsRange'](_0x3d5fa5['newRange'])){_0x44b32d['updateMarker'](_0x55e872,{'range':_0x31ed21}),_0x17e96d=!0x0;break;}}}return _0x17e96d;}),_0x96fca6['model']['document']['registerPostFixer'](_0x5e18fe=>{let _0x584734=!0x1;const _0x2db626=_0x96fca6['plugins']['get']('Users')['me'],_0xb6dad3=_0x360ff1['getSuggestions']()['filter'](_0x384143=>_0x384143['isInContent']&&_0x384143['author']==_0x2db626),_0x514cc6=new Set(),_0x38383c=new Set();for(const _0x31c737 of _0xb6dad3)if('tablePaste'==_0x31c737['subType'])for(const _0x50180f of _0x31c737['getMarkers']()){const _0x2b8e1b=_0x50180f['getRange']()['getContainedElement']();if(_0x2b8e1b){if(_0x2b8e1b['is']('element','tableCellSuggestion')&&Oe(_0x2b8e1b)){_0x31c737['removeMarker'](_0x50180f['name']),_0x514cc6['add'](_0x2b8e1b),_0x584734=!0x0;const _0x23f93b=_0x2b8e1b['nextSibling'],_0x42cb79=_0x2b8e1b['previousSibling'],_0x3c5841=_0x23f93b&&_0x23f93b['is']('element','tableCellSuggestion'),_0x551a1d=_0x42cb79&&_0x42cb79['is']('element','tableCellSuggestion');_0x3c5841&&!_0x514cc6['has'](_0x23f93b)&&_0x38383c['add'](_0x23f93b),_0x551a1d&&!_0x514cc6['has'](_0x42cb79)&&_0x38383c['add'](_0x42cb79);}else _0x2b8e1b['is']('element','paragraph')&&_0x2b8e1b['isEmpty']&&(_0x31c737['removeMarker'](_0x50180f['name']),_0x584734=!0x0);}}else{if('tablePasteCell'==_0x31c737['subType']){if(!_0x31c737['attributes']||!_0x31c737['attributes']['tablePasteChainId'])continue;const _0x5096d5=_0x31c737['attributes']['markerAttributes'];if(_0x5096d5&&Object['keys'](_0x5096d5)['length'])continue;const _0x8a9337=_0x31c737['attributes']['tablePasteChainId'];let _0x1302f8=!0x0,_0x5be7c8=!0x0;for(const _0xa8c2f of _0xb6dad3)if(_0xa8c2f['subType']&&_0xa8c2f['subType']['startsWith']('tablePaste')){if(!_0xa8c2f['attributes']['tablePasteChainId']){_0x5be7c8=!0x1;break;}if(_0xa8c2f['id']!=_0x31c737['id']&&_0xa8c2f['attributes']['tablePasteChainId']==_0x8a9337){_0x1302f8=!0x1;break;}}_0x5be7c8&&_0x1302f8&&(_0x31c737['removeMarkers'](),_0x584734=!0x0);}}for(const _0x77ee77 of _0x514cc6)_0x5e18fe['remove'](_0x77ee77);for(const _0x165d19 of _0x38383c)_0x5e18fe['unwrap'](_0x165d19);return _0x584734;}),_0x96fca6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2a2eba=>_0x4928d3(_0x2a2eba),'converterPriority':'high'}),_0x96fca6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1a9920,_0x505b24)=>_0x505b24['options']['showSuggestionHighlights']?_0x4928d3(_0x1a9920,!0x1):null,'converterPriority':'high'});const _0x9dad7d=_0x96fca6['editing']['view'];this['listenTo'](_0x9dad7d['document'],'clipboardOutput',(_0x25964d,_0x55c31f)=>{const _0xc24fe9=[];for(const _0x3c0723 of _0x9dad7d['createRangeIn'](_0x55c31f['content'])['getItems']())_0x3c0723['is']('element','suggestion-td')&&_0xc24fe9['push'](_0x3c0723);_0x9dad7d['change'](_0x1ea405=>{for(const _0xcac6d3 of _0xc24fe9)_0x1ea405['move'](_0x1ea405['createRangeIn'](_0xcac6d3),_0x1ea405['createPositionBefore'](_0xcac6d3)),_0x1ea405['remove'](_0xcac6d3);});});}}function Oe(_0xd2764f){if(_0xd2764f['isEmpty'])return!0x0;const _0x4b2073=_0xd2764f['getChild'](0x0);return _0x4b2073['is']('element','paragraph')&&_0x4b2073['isEmpty'];}function Ue(_0x572b03,_0x6a4c75={},_0x51c7c6){for(const {isAnchor:_0x597bad,cellHeight:_0xec4b89,cellWidth:_0x5ca9b2}of _0x51c7c6['createTableWalker'](_0x572b03,{'includeAllSlots':!0x0,..._0x6a4c75}))if(!_0x597bad||0x1!=_0xec4b89||0x1!=_0x5ca9b2)return!0x1;return!0x0;}class $t extends _0x7c1c66{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5d45a1=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d45a1['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5d45a1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5d45a1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5d45a1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5d45a1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5d45a1['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4bda21,_0x146d6d){const _0x35efe1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d034b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x511b84=_0x146d6d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x464dc8=_0x5d034b['getColumnGroupElement'](_0x511b84);let _0x26ba5c=_0x464dc8?_0x5d034b['getTableColumnsWidths'](_0x464dc8):null,_0x51f373=_0x511b84['getAttribute']('tableWidth')||null;const _0x17c91b=_0x146d6d['tableWidth']||_0x51f373,_0x163578=_0x146d6d['columnWidths']||_0x26ba5c,_0x539fbc=this['editor']['plugins']['get']('Users')['me'];for(const _0x906e8 of _0x35efe1['getSuggestions']()){const _0x5ecadc=_0x906e8['getContainedElement']();if('resizeTable'===_0x906e8['subType']&&_0x5ecadc===_0x511b84){_0x906e8['author']!==_0x539fbc&&_0x906e8['discard']();const _0x4ca197=_0x906e8['data']['commandParams'];_0x51f373=_0x4ca197[0x0]['tableWidth'],_0x26ba5c=_0x4ca197[0x0]['columnWidths'];break;}}_0x4bda21({'table':_0x511b84,'tableWidth':_0x17c91b,'columnWidths':_0x163578}),_0x35efe1['markBlockFormat'](_0x511b84,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x51f373,'columnWidths':_0x26ba5c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4e4d9a){if('formatBlock'!=_0x4e4d9a['type']&&'formatInline'!=_0x4e4d9a['type'])return;const {data:_0x11b58e}=_0x4e4d9a;if(_0x11b58e&&'resizeTable'===_0x11b58e['formatGroupId']){const _0x102dd7='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x102dd7)};}}}class Bt extends _0x7c1c66{['afterInit'](){const _0x343aef=this['editor'];_0x343aef['plugins']['has']('Template')&&_0x343aef['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x7c1c66{['afterInit'](){const _0x360f10=this['editor'];if(!_0x360f10['commands']['get']('insertTableOfContents'))return;_0x360f10['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5e34c4=_0x360f10['plugins']['get']('TrackChangesEditing'),_0x11e757=_0x360f10['locale'];_0x5e34c4['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3c4104=>o(_0x11e757,'ELEMENT_TABLE_OF_CONTENTS',_0x3c4104));}}class Rt extends _0x7c1c66{['afterInit'](){const _0x538bdc=this['editor'];if(!_0x538bdc['plugins']['has']('Title'))return;const _0x5d6fa0=_0x538bdc['plugins']['get']('TrackChangesEditing');_0x5d6fa0['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x538bdc['locale'],'ELEMENT_TITLE')),_0x538bdc['model']['document']['registerPostFixer'](_0x58fa6f=>{let _0x4abfc9=!0x1;const _0x579715=Array['from'](_0x538bdc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1462aa,data:_0x5c37f4}of _0x579715){const {group:_0x192d95}=_0x5d6fa0['_splitMarkerName'](_0x1462aa);if('suggestion'!==_0x192d95||!_0x5c37f4['newRange'])continue;const _0x19a6bf=_0x5c37f4['newRange'],_0x381eb7=_0x19a6bf['end']['nodeBefore'];if(!_0x381eb7||!_0x381eb7['is']('element','title-content'))continue;if(!_0x19a6bf['start']['isTouching'](_0x19a6bf['end']))continue;const _0x5c3fd3=_0x538bdc['model']['schema']['getNearestSelectionRange'](_0x19a6bf['end'],'forward');if(_0x5c3fd3&&_0x5c3fd3['isCollapsed']){const _0x25d799=_0x58fa6f['createRange'](_0x19a6bf['start'],_0x5c3fd3['start']);_0x25d799['isEqual'](_0x19a6bf)||(_0x58fa6f['updateMarker'](_0x1462aa,{'range':_0x25d799}),_0x4abfc9=!0x0);}_0x4abfc9||(_0x58fa6f['removeMarker'](_0x1462aa),_0x4abfc9=!0x0);}return _0x4abfc9;});}}class Tt extends _0x7c1c66{['afterInit'](){const _0x528686=this['editor'],_0x429353=_0x528686['plugins']['get']('TrackChangesEditing');_0x528686['plugins']['has']('Uploadcare')&&(_0x429353['enableCommand']('uploadcare'),_0x528686['plugins']['has']('UploadcareImageEdit')&&(_0x429353['enableCommand']('uploadcareImageEdit'),_0x429353['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x429353['registerBlockAttribute']('uploadcareImageId'),_0x429353['descriptionFactory']['registerDescriptionCallback'](_0x529a8e=>{if('attribute'!=_0x529a8e['type'])return;const {data:_0x3881d0}=_0x529a8e;return _0x3881d0&&'uploadcareImageId'==_0x3881d0['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x7c1c66{['afterInit'](){const _0x5668b3=this['editor'],_0x5db9c5=_0x5668b3['plugins']['get']('TrackChangesEditing');_0x5668b3['plugins']['has']('UndoEditing')&&(_0x5db9c5['enableCommand']('undo'),_0x5db9c5['enableCommand']('redo'));}}class Et extends _0x7c1c66{static get['requires'](){return[Ct];}['afterInit'](){const _0xe57bc1=this['editor'];if(!_0xe57bc1['plugins']['has']('TableCaptionEditing'))return;_0xe57bc1['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x7c1c66{['tableProperties'];['tableCellProperties'];constructor(_0x3374d6){super(_0x3374d6),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';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x9e549f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x125f30 of this['tableProperties'])_0x9e549f['enableCommand'](_0x125f30,(_0x4b67ed,_0xd8cb01)=>{const _0x4f8871=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x125f30,[_0x4f8871],this['tableProperties'],'tableProperties',_0x4b67ed,_0xd8cb01);});_0x9e549f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x9e549f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x9e549f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x478ce1,_0x45a012)=>this['handleDiscardAction'](this['tableProperties'],_0x478ce1,_0x45a012)),_0x9e549f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3dfdd0 of this['tableCellProperties'])_0x9e549f['enableCommand'](_0x3dfdd0,(_0x2d1689,_0x26581b)=>{const _0x14b974=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3dfdd0,_0x14b974,this['tableCellProperties'],'tableCellProperties',_0x2d1689,_0x26581b);});_0x9e549f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x9e549f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x9e549f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x8c359f,_0x93ead3)=>this['handleDiscardAction'](this['tableCellProperties'],_0x8c359f,_0x93ead3)),_0x9e549f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x9e549f['descriptionFactory']['registerDescriptionCallback'](_0x5a4ba2=>this['handleSuggestionDescription'](_0x5a4ba2));}['_handlePropertyChange'](_0x4a1763,_0x4c20ad,_0x3c0e8b,_0x3d75da,_0x3f5c21,_0x18af76){const _0x26c227=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x18af76['batch'],()=>{for(const _0x3b676f of _0x4c20ad){if(this['_getSuggestion'](_0x3b676f,_0x3d75da))_0x3f5c21(_0x18af76);else{const _0x6b7002={};for(const _0x305bb2 of _0x3c0e8b){const _0x3139c3=_0x3b676f['getAttribute'](_0x305bb2);void 0x0!==_0x3139c3&&(_0x6b7002[_0x305bb2]=_0x3139c3);}_0x3f5c21(_0x18af76),_0x26c227['markBlockFormat'](_0x3b676f,{'commandParams':[_0x6b7002]},[],_0x3d75da);}}});}['handleDiscardAction'](_0x3eca71,_0x5305b9,_0x545a45){const _0x135930=_0x5305b9[0x0]['start']['nodeAfter'],_0x38bfa5=_0x545a45['commandParams'][0x0];this['editor']['model']['change'](_0x1c500e=>{for(const _0x2ed752 of _0x3eca71)void 0x0!==_0x38bfa5[_0x2ed752]?_0x1c500e['setAttribute'](_0x2ed752,_0x38bfa5[_0x2ed752],_0x135930):_0x1c500e['removeAttribute'](_0x2ed752,_0x135930);});}['handleSuggestionDescription'](_0x4183d9){if(_0x4183d9['data'])switch(_0x4183d9['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'](_0x2b12d2,_0x52252c){const _0xdbd550=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x56fa4c of _0xdbd550['getSuggestions']({'skipNotAttached':!0x0})){const _0x219d02=_0x56fa4c['getContainedElement']();if(_0x56fa4c['subType']===_0x52252c&&_0x219d02===_0x2b12d2)return _0x56fa4c;}return null;}}const m='$elementName';class p extends _0x7c1c66{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x429471,_0x5173f3,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10d2a8){super(_0x10d2a8),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x56bb8f,_0x405987,_0x4d0520,_0x44dd10)=>{this['_model']['change'](()=>{for(const _0x21e721 of[..._0x44dd10,..._0x4d0520])this['_model']['markers']['has'](_0x21e721)&&_0x10d2a8['editing']['reconvertMarker'](_0x21e721);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x10d2a8['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(),_0x10d2a8['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x10d2a8['config']['get']('trackChanges.trackFormatChanges'),_0x10d2a8['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x10d2a8['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x10d2a8,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5c9cdb=this['editor'],_0x55ee4a=(_0x52ea2,_0x59dbc5)=>{if('attribute'!=_0x52ea2)return'ck-suggestion-marker-'+_0x52ea2;const _0x3c3dfc=_0x59dbc5['split']('|')[0x0];return this['_isBlockAttribute'](_0x3c3dfc)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5c9cdb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1dd232=>{const {id:_0x31eb3d,authorId:_0x4f6653,type:_0x38d23a,subType:_0x9323cd}=this['_splitMarkerName'](_0x1dd232['markerName']),_0x100f83=['ck-suggestion-marker',_0x55ee4a(_0x38d23a,_0x9323cd)];let _0x364dde=0xbb8;return this['activeMarkers']['includes'](_0x1dd232['markerName'])&&(_0x100f83['push']('ck-suggestion-marker--active'),_0x364dde=0xbc2),'deletion'==_0x38d23a&&(_0x364dde+=0x5),{'classes':_0x100f83,'attributes':{'data-suggestion':_0x31eb3d,'data-author-id':_0x4f6653},'priority':_0x364dde};}}),_0x5c9cdb['conversion']['for']('dataDowncast')['add'](_0x14c3b8=>{_0x14c3b8['on']('addMarker:suggestion',(_0x5e623f,_0x418f9b,_0x4fbbb2)=>{if(!_0x4fbbb2['options']['showSuggestionHighlights'])return;const _0x296bf3=_0x418f9b['item'];if(!_0x296bf3)return;const _0x2637ad=_0x4fbbb2['mapper']['toViewElement'](_0x296bf3);_0x5c9cdb['model']['schema']['isObject'](_0x296bf3)&&_0x2637ad&&!_0x2637ad['getCustomProperty']('widget')&&_0x2637ad['is']('containerElement')&&_0x2e97be(_0x2637ad,_0x4fbbb2['writer']);},{'priority':'high'});}),_0x5c9cdb['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x154bb5,_0x13d36e)=>{if(!_0x13d36e['options']['showSuggestionHighlights'])return null;const {type:_0x1ff812,subType:_0x5c5d35}=this['_splitMarkerName'](_0x154bb5['markerName']);return{'classes':['ck-suggestion-marker',_0x55ee4a(_0x1ff812,_0x5c5d35)],'priority':0xbb8};}});const _0x5ea4cd=({showActiveMarkers:_0x2d7264=!0x0,isAttributeSuggestion:_0x17592f=!0x1}={})=>(_0x26f8c8,_0x1cb476,_0x388ea6)=>{if(!_0x1cb476['item'])return;const {id:_0x1faaae,authorId:_0x4da1cd}=this['_splitMarkerName'](_0x1cb476['markerName']);if(_0x17592f){const _0x5c745c=this['_suggestions']['get'](_0x1faaae),_0x3b69f2=this['_getAttributeKey'](_0x5c745c);if(!this['_isBlockAttribute'](_0x3b69f2))return;}if(_0x1cb476['item']['is']('selection'))return void _0x388ea6['consumable']['consume'](_0x1cb476['item'],_0x26f8c8['name']);const _0x1ab285=_0x388ea6['mapper']['toViewElement'](_0x1cb476['item']);if(_0x1cb476['item']['is']('element')&&_0x5c9cdb['model']['schema']['isBlock'](_0x1cb476['item'])&&!_0x1ab285['getCustomProperty']('addHighlight')){_0x388ea6['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1ab285),_0x388ea6['writer']['setAttribute']('data-suggestion',_0x1faaae,_0x1ab285),_0x388ea6['writer']['setAttribute']('data-author-id',_0x4da1cd,_0x1ab285),_0x388ea6['mapper']['bindElementToMarker'](_0x1ab285,_0x1cb476['markerName']),_0x2d7264&&(this['activeMarkers']['includes'](_0x1cb476['markerName'])?_0x388ea6['writer']['addClass']('ck-suggestion-marker--active',_0x1ab285):_0x388ea6['writer']['removeClass']('ck-suggestion-marker--active',_0x1ab285));for(const _0x56a940 of _0x5c9cdb['model']['createRangeIn'](_0x1cb476['item'])['getItems']())_0x388ea6['consumable']['consume'](_0x56a940,_0x26f8c8['name']);_0x388ea6['consumable']['consume'](_0x1cb476['item'],_0x26f8c8['name']);}};_0x5c9cdb['conversion']['for']('dataDowncast')['add'](_0x500d3f=>{_0x500d3f['on']('addMarker:suggestion:formatBlock',(_0x525151,_0x440b9f,_0x205f75)=>{_0x205f75['options']['showSuggestionHighlights']&&_0x5ea4cd({'showActiveMarkers':!0x1})(_0x525151,_0x440b9f,_0x205f75);},{'priority':'highest'});}),_0x5c9cdb['conversion']['for']('dataDowncast')['add'](_0x1ab25f=>{_0x1ab25f['on']('addMarker:suggestion:attribute',(_0x20d219,_0x198cc4,_0x2d3311)=>{_0x2d3311['options']['showSuggestionHighlights']&&_0x5ea4cd({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x20d219,_0x198cc4,_0x2d3311);},{'priority':'highest'});}),_0x5c9cdb['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4f7125,_0x59b30a)=>_0x59b30a['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4f7125['substr'](0xb)}}),_0x5c9cdb['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xe448d7,{writer:_0x52ce61})=>{let _0x41f140='suggestion:'+_0xe448d7['getAttribute']('suggestion-type')+':'+_0xe448d7['getAttribute']('id');return _0xe448d7['getAttribute']('marker-count')&&(_0x41f140+=':'+_0xe448d7['getAttribute']('marker-count')),_0x52ce61['createElement']('$marker',{'data-name':_0x41f140});}}),_0x5c9cdb['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5c9cdb['conversion']['for']('editingDowncast')['add'](_0x3a5658=>{_0x3a5658['on']('addMarker:suggestion:formatBlock',_0x5ea4cd(),{'priority':'high'});}),_0x5c9cdb['conversion']['for']('editingDowncast')['add'](_0x93e983=>{_0x93e983['on']('addMarker:suggestion:attribute',_0x5ea4cd({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5c9cdb['conversion']['for']('editingDowncast')['add'](_0xcf3288=>{_0xcf3288['on']('removeMarker:suggestion:formatBlock',(_0x24b1b1,_0x5f4af6,_0x31305e)=>{const _0x2e4bd3=_0x31305e['mapper']['markerNameToElements'](_0x5f4af6['markerName']);if(_0x2e4bd3){for(const _0x460846 of _0x2e4bd3)_0x460846['getCustomProperty']('addHighlight')||(_0x31305e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x460846),_0x31305e['writer']['removeAttribute']('data-suggestion',_0x460846),_0x31305e['writer']['removeAttribute']('data-author-id',_0x460846),_0x31305e['mapper']['unbindElementFromMarkerName'](_0x460846,_0x5f4af6['markerName']));}},{'priority':'high'});}),_0x5c9cdb['conversion']['for']('editingDowncast')['add'](_0x4af807=>{_0x4af807['on']('removeMarker:suggestion:attribute',(_0x35e4f0,_0x29cee7,_0x363ab2)=>{const _0x22b885=_0x363ab2['mapper']['markerNameToElements'](_0x29cee7['markerName']);if(!_0x22b885)return;const {id:_0x4d0277}=this['_splitMarkerName'](_0x29cee7['markerName']),_0xd648d0=this['_suggestions']['get'](_0x4d0277),_0xc2ac07=this['_getAttributeKey'](_0xd648d0);if(this['_isBlockAttribute'](_0xc2ac07)){for(const _0x29067a of _0x22b885)_0x29067a['getCustomProperty']('addHighlight')||(_0x363ab2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x29067a),_0x363ab2['writer']['removeAttribute']('data-suggestion',_0x29067a),_0x363ab2['writer']['removeAttribute']('data-author-id',_0x29067a),_0x363ab2['mapper']['unbindElementFromMarkerName'](_0x29067a,_0x29cee7['markerName']));}},{'priority':'high'});}),_0x5c9cdb['model']['document']['registerPostFixer'](_0x24f78f=>{let _0x5c7ce2=!0x1;const _0x104594=Array['from'](_0x5c9cdb['model']['document']['differ']['getChangedMarkers']()),_0xd6d280=new Set();for(const {name:_0x1deaf9,data:_0x148a18}of _0x104594){const {group:_0x325b89,type:_0x1958d1,subType:_0x2b239a,id:_0x45fc32}=this['_splitMarkerName'](_0x1deaf9);if('suggestion'!==_0x325b89)continue;const _0x5d8853=this['_suggestions']['get'](_0x45fc32);if(null!=_0x148a18['newRange']){'formatInline'==_0x1958d1&&(_0x5c7ce2=_0x5c7ce2||Lt(_0x148a18['newRange'],_0x1deaf9,_0x24f78f,_0x5c9cdb['model']['schema']));const _0x334398='attribute'==_0x1958d1&&this['_isBlockAttribute'](_0x2b239a['split']('|')[0x0]);if(_0x148a18['newRange']['isCollapsed']||'$graveyard'==_0x148a18['newRange']['root']['rootName']||'formatBlock'==_0x1958d1&&!Ht(_0x148a18['newRange'])||_0x334398&&!Ht(_0x148a18['newRange'])||'deletion'==_0x1958d1&&!(!Ft(_0x444b5b=_0x148a18['newRange'])&&!function(_0x2612c2){return _0x2612c2['start']['parent']==_0x2612c2['end']['nodeBefore']&&_0x2612c2['start']['isAtEnd'];}(_0x444b5b)))_0x24f78f['removeMarker'](_0x1deaf9),_0x5c7ce2=!0x0;else{if(!_0x5d8853||!_0x5d8853['isInContent'])continue;if(_0x148a18['newRange']&&_0x148a18['oldRange']&&_0x148a18['newRange']['isEqual'](_0x148a18['oldRange']))continue;_0xd6d280['add'](_0x5d8853);}}}var _0x444b5b;return _0xd6d280['size']>0x0&&(_0x5c7ce2=!!this['_joinWithAdjacentSuggestions'](_0xd6d280)||_0x5c7ce2),_0x5c7ce2;}),_0x5c9cdb['model']['document']['registerPostFixer'](_0x1d196e=>{let _0x39b0f8=!0x1;for(const _0x517bcc of _0x5c9cdb['model']['document']['differ']['getChanges']())if('insert'==_0x517bcc['type'])for(const _0x22b930 of this['_suggestions']['values']()){if(_0x22b930['isMultiRange']||!_0x22b930['isInContent'])continue;const _0x3e87e9='formatBlock'==_0x22b930['type'],_0x44bdce=this['_getAttributeKey'](_0x22b930),_0x46fee7=_0x44bdce&&this['_isBlockAttribute'](_0x44bdce);if(!_0x3e87e9&&!_0x46fee7)continue;const _0x59c54b=_0x22b930['getFirstRange']();if(_0x59c54b['start']['parent']!=_0x59c54b['end']['parent']&&!_0x59c54b['end']['isAtEnd']){const _0x1cc0b6=_0x5c9cdb['model']['createPositionAt'](_0x59c54b['start']['nodeAfter'],'end'),_0x29d68a=_0x5c9cdb['model']['createRange'](_0x59c54b['start'],_0x1cc0b6);_0x1d196e['updateMarker'](_0x22b930['getFirstMarker'](),{'range':_0x29d68a}),_0x39b0f8=!0x0;}}return _0x39b0f8;}),_0x5c9cdb['model']['document']['registerPostFixer'](_0x69153f=>this['_processAttributeChanges'](_0x69153f)),_0x5c9cdb['model']['document']['registerPostFixer'](_0x5a4d7f=>!_0x5a4d7f['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5a4d7f)),_0x5c9cdb['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5c9cdb['model']['document']['on']('change:data',(_0x5140b3,_0x24d2af)=>{if(!_0x24d2af['isLocal']||_0x24d2af['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3ddb14=_0x5c9cdb['model']['document']['differ']['getChanges']();if(0x0==_0x3ddb14['length'])return;const _0x3809af=[],_0x122a23=_0x3ddb14['filter'](_0x795202=>'attribute'==_0x795202['type']),_0x2ecab4=_0x3ddb14['filter'](_0x1d1c49=>'insert'==_0x1d1c49['type']&&'$text'!=_0x1d1c49['name']);for(const _0x11fd31 of _0x122a23)this['_isRegisteredAttribute'](_0x11fd31['attributeKey'])&&_0x3809af['push']({'key':_0x11fd31['attributeKey'],'newValue':_0x11fd31['attributeNewValue'],'oldValue':_0x11fd31['attributeOldValue'],'range':qt(_0x11fd31['range'],_0x5c9cdb['model'])});for(const _0x9d830 of _0x2ecab4){if('rename'!=_0x9d830['action']&&'refresh'!=_0x9d830['action'])continue;const _0xfa54b5=zt(_0x9d830['position']['nodeAfter'],_0x5c9cdb['model']),_0x465461=_0x9d830['before'];'rename'==_0x9d830['action']&&_0x3809af['push']({'key':m,'newValue':_0x9d830['name'],'oldValue':_0x465461['name'],'range':_0xfa54b5});for(const [_0x35f395,_0x5d15fa]of _0x465461['attributes']){if(!this['_isRegisteredAttribute'](_0x35f395))continue;const _0x328627=_0x9d830['attributes']['get'](_0x35f395);_0x5d15fa!==_0x328627&&_0x3809af['push']({'key':_0x35f395,'newValue':_0x328627,'oldValue':_0x5d15fa,'range':_0xfa54b5});}for(const [_0x3abe38,_0x3f0508]of _0x9d830['attributes'])this['_isRegisteredAttribute'](_0x3abe38)&&(_0x465461['attributes']['has'](_0x3abe38)||_0x3809af['push']({'key':_0x3abe38,'newValue':_0x3f0508,'oldValue':null,'range':_0xfa54b5}));}0x0!=_0x3809af['length']&&_0x5c9cdb['model']['enqueueChange'](_0x24d2af,_0x1618d4=>{const _0x225460=_0x21926f();for(const {range:_0x54b408,key:_0xe1d8e7,oldValue:_0x5d5ea2,newValue:_0x19745e}of _0x3809af)this['markAttributeChange'](_0x54b408,_0xe1d8e7,_0x5d5ea2,_0x19745e,{'groupId':_0x225460});this['_reduceExistingSuggestions'](_0x1618d4,_0x3809af);});},{'priority':'lowest'}),_0x5c9cdb['model']['markers']['on']('update:suggestion',(_0x180b0e,_0x3a7ede,_0x641311)=>{if(null==_0x641311){const {id:_0x75f125}=this['_splitMarkerName'](_0x3a7ede['name']),_0x45e9b5=this['_suggestions']['get'](_0x75f125);_0x45e9b5&&_0x45e9b5['addMarkerName'](_0x3a7ede['name']);}}),_0x5c9cdb['model']['document']['on']('change:data',()=>{const _0x541204=Array['from'](_0x5c9cdb['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1ba0a3=>'suggestion'===this['_splitMarkerName'](_0x1ba0a3['name'])['group']);if(0x0===_0x541204['length'])return;_0x541204['sort']((_0x21952b,_0x373260)=>{const _0xbd40f6=_0x21952b['data']['oldRange'],_0x2f55ff=_0x373260['data']['oldRange'];return null===_0xbd40f6&&null===_0x2f55ff?0x0:null===_0xbd40f6&&null!==_0x2f55ff?-0x1:null!==_0xbd40f6&&null===_0x2f55ff?0x1:_0xbd40f6['start']['isBefore'](_0x2f55ff['start'])?-0x1:0x1;});const _0x37b945=new Set(),_0x5b5de0=new Set();for(const {name:_0x211f20,data:_0x211883}of _0x541204){const {id:_0x2d7b74}=this['_splitMarkerName'](_0x211f20);if(null===_0x211883['oldRange']){const _0x677f98=this['_handleNewSuggestionMarker'](_0x211f20);_0x5b5de0['add'](_0x677f98);}else{const _0x4b4e44=this['_suggestions']['get'](_0x2d7b74);null!==_0x211883['newRange']||_0x4b4e44['isInContent']?(_0x37b945['add'](_0x4b4e44['head']),_0x5b5de0['add'](_0x4b4e44)):this['_removeSuggestion'](_0x4b4e44);}}_0x5b5de0['size']>0x0&&this['_refreshSuggestionsChain'](_0x5b5de0);for(const _0x2985cf of _0x37b945)this['fire']('suggestionChanged',_0x2985cf);}),_0x5c9cdb['model']['on']('applyOperation',(_0x26601c,_0x1ebabe)=>{const _0x46c525=_0x1ebabe[0x0];if(!this['_suggestions']['size'])return;if(!_0x46c525['isDocumentOperation'])return;if(_0x46c525['batch']['isUndo']||!_0x46c525['batch']['isLocal'])return;let _0x5f5d96,_0x429305;switch(_0x46c525['type']){case'insert':_0x5f5d96=_0x5c9cdb['model']['createPositionAt'](_0x46c525['position']),_0x429305=_0x5f5d96['getShiftedBy'](_0x46c525['howMany']);break;case'split':_0x5f5d96=_0x5c9cdb['model']['createPositionAt'](_0x46c525['splitPosition']),_0x429305=_0x5c9cdb['model']['createPositionAt'](_0x46c525['moveTargetPosition']);break;case'move':_0x5f5d96=_0x5c9cdb['model']['createPositionAt'](_0x46c525['targetPosition']),_0x429305=_0x5f5d96['getShiftedBy'](_0x46c525['howMany']);break;default:return;}const _0x24eeb0=_0x5c9cdb['model']['createRange'](_0x5f5d96,_0x429305);_0x5c9cdb['model']['change'](()=>{for(const {suggestion:_0x222377,meta:_0x202233}of this['_findSuggestions'](_0x24eeb0)){if(_0x222377['isMultiRange'])continue;if('formatInline'==_0x222377['type'])continue;const _0x5421ed=this['_getAttributeKey'](_0x222377);if(_0x5421ed&&this['_isBlockAttribute'](_0x5421ed)&&'split'!=_0x46c525['type'])continue;const _0x3f37a3=_0x222377['data']&&_0x222377['data']['multipleBlocks'];('formatBlock'!=_0x222377['type']||'split'==_0x46c525['type']&&!_0x3f37a3)&&(_0x202233['containsRangeInObject']||'insertion'==_0x222377['type']&&_0x202233['isOwn']||_0x222377['getFirstRange']()['containsRange'](_0x24eeb0)&&this['_breakSuggestionMarker'](_0x222377,_0x5f5d96,_0x429305));}});},{'priority':'lowest'}),_0x5c9cdb['model']['on']('deleteContent',(_0x2d7168,_0x329ad6)=>{const _0x4f2b3b=_0x329ad6[0x0],_0x58e709=_0x329ad6[0x1];if(_0x58e709&&_0x58e709['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4f2b3b['isCollapsed'])return;const _0x257670=_0x5c9cdb['model']['schema'],{start:_0xca308e,end:_0x56ef7d}=_0x4f2b3b['getFirstRange'](),_0x1f75d6=_0xca308e['nodeAfter']&&_0x257670['isLimit'](_0xca308e['nodeAfter'])?null:_0x257670['getNearestSelectionRange'](_0xca308e,'forward'),_0x565241=_0x56ef7d['nodeBefore']&&_0x257670['isLimit'](_0x56ef7d['nodeBefore'])?null:_0x257670['getNearestSelectionRange'](_0x56ef7d,'backward'),_0x3ecb0a=_0x5c9cdb['model']['createRange'](_0x1f75d6?_0x1f75d6['start']:_0xca308e,_0x565241?_0x565241['end']:_0x56ef7d);_0x5c9cdb['model']['change'](_0x2c9fb9=>{this['markDeletion'](_0x3ecb0a);const _0x49d623=_0x5c9cdb['model']['schema']['getNearestSelectionRange'](_0x3ecb0a['start']);_0x4f2b3b['is']('documentSelection')?_0x2c9fb9['setSelection'](_0x49d623):_0x4f2b3b['setTo'](_0x49d623);}),_0x2d7168['stop']();},{'priority':_0x1f9bf5['normal']+0xa}),_0x5c9cdb['model']['on']('insertContent',(_0x5ccc2a,_0x3c15f9)=>{const _0x33cb21=_0x3c15f9[_0x3c15f9['length']-0x1];_0x33cb21&&_0x33cb21['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5c9cdb['model']['change'](()=>{let _0x4d49c3=_0x5c9cdb['model']['insertContent'](_0x3c15f9[0x0],_0x3c15f9[0x1],_0x3c15f9[0x2],{'forceDefaultExecution':!0x0});if(!_0x4d49c3)return;_0x5ccc2a['return']=_0x4d49c3['clone']();const _0x1d0b5c=_0x4d49c3['end']['nodeBefore'],_0x57ef5b=_0x5c9cdb['model']['schema'];_0x1d0b5c&&_0x57ef5b['isBlock'](_0x1d0b5c)&&!_0x57ef5b['isObject'](_0x1d0b5c)&&(_0x4d49c3=_0x5c9cdb['model']['createRange'](_0x4d49c3['start'],_0x5c9cdb['model']['createPositionAt'](_0x1d0b5c,'end'))),this['markInsertion'](_0x4d49c3);}),_0x5ccc2a['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2d6de1=new O(_0x5c9cdb,this['_suggestions']);_0x5c9cdb['commands']['add']('acceptSuggestion',_0x2d6de1),this['enableCommand']('acceptSuggestion');const _0x1668b6=new R(_0x5c9cdb,this['_suggestions']);_0x5c9cdb['commands']['add']('discardSuggestion',_0x1668b6),this['enableCommand']('discardSuggestion'),_0x5c9cdb['commands']['add']('acceptAllSuggestions',new x(_0x5c9cdb,_0x2d6de1,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5c9cdb['commands']['add']('discardAllSuggestions',new x(_0x5c9cdb,_0x1668b6,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5c9cdb['commands']['add']('acceptSelectedSuggestions',new E(_0x5c9cdb,_0x2d6de1,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5c9cdb['commands']['add']('discardSelectedSuggestions',new E(_0x5c9cdb,_0x1668b6,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1280b5=_0x5c9cdb['plugins']['get']('CommentsRepository');this['listenTo'](_0x1280b5,'addComment',(_0x18413b,{threadId:_0x49869c})=>{const _0x16efb2=this['_suggestions']['get'](_0x49869c);_0x16efb2&&_0x16efb2['commentThread']&&0x1===_0x16efb2['commentThread']['length']&&this['_updateSuggestionData'](_0x49869c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1280b5,'removeComment',(_0x568d45,{threadId:_0x55ab04})=>{const _0x5dc65d=this['_suggestions']['get'](_0x55ab04);_0x5dc65d&&_0x5dc65d['commentThread']&&!_0x5dc65d['commentThread']['length']&&this['_updateSuggestionData'](_0x55ab04,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x166f21){const _0x14970f=_0x35a5e5([0x4b,0x65,0x47,0x62,0x58,0x44,0x46,0x76,0x66,0x4a,0x61,0x38,0x7a,0x45,0x67,0x39,0x64,0x48,0x49,0x71,0x51,0x78,0x6a,0x6f,0x37,0x52,0x69,0x33,0x75,0x79,0x74,0x72,0x54,0x32,0x63,0x31,0x42,0x55,0x50,0x4c,0x6d,0x34,0x4d,0x6b,0x77,0x6c,0x73,0x41,0x57,0x56,0x4f,0x5a,0x70,0x43,0x30,0x4e,0x59,0x6e,0x35,0x53,0x68,0x36]),_0x301f9f=0x332b938d,_0x5f0bfa=0x332ccd5d^_0x301f9f,_0x584939=window[_0x35a5e5([0x44,0x61,0x74,0x65])][_0x35a5e5([0x6e,0x6f,0x77])](),_0x4a929d=_0x166f21[_0x35a5e5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47a2c2=new window[(_0x35a5e5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4dc378=>{_0x4a929d[_0x35a5e5([0x6f,0x6e,0x63,0x65])](_0x35a5e5([0x72,0x65,0x61,0x64,0x79]),_0x4dc378);}),_0x5bdbbd={[_0x35a5e5([0x6b,0x74,0x79])]:_0x35a5e5([0x45,0x43]),[_0x35a5e5([0x75,0x73,0x65])]:_0x35a5e5([0x73,0x69,0x67]),[_0x35a5e5([0x63,0x72,0x76])]:_0x35a5e5([0x50,0x2d,0x32,0x35,0x36]),[_0x35a5e5([0x78])]:_0x35a5e5([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x35a5e5([0x79])]:_0x35a5e5([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x35a5e5([0x61,0x6c,0x67])]:_0x35a5e5([0x45,0x53,0x32,0x35,0x36])},_0x6db4bb=_0x4a929d[_0x35a5e5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x35a5e5([0x67,0x65,0x74])](_0x35a5e5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2c7766(){let _0x2ce4b7,_0x157c43=null,_0x2b357d=null;try{if(_0x6db4bb==_0x35a5e5([0x47,0x50,0x4c]))return _0x35a5e5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2ce4b7=_0x312a27(),!_0x2ce4b7)return _0x35a5e5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2ce4b7[_0x35a5e5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b357d=_0x3ac89e(_0x2ce4b7[_0x35a5e5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2ce4b7[_0x35a5e5([0x6a,0x74,0x69])])),await _0x1b56bb()?_0x178bbf()?_0x278b4a()?_0x35a5e5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xb15e7c()?(_0x2ce4b7[_0x35a5e5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x35a5e5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x157c43=_0x57b42e(_0x35a5e5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2ce4b7[_0x35a5e5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x35a5e5([0x74,0x72,0x69,0x61,0x6c])&&(_0x157c43=_0x57b42e(_0x35a5e5([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xa0855c()):_0x35a5e5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x35a5e5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x35a5e5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x42c026){return _0x35a5e5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x278b4a(){const _0x1493e2=[_0x35a5e5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x35a5e5([0x74,0x72,0x69,0x61,0x6c])][_0x35a5e5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ce4b7[_0x35a5e5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x584939/0x3e8:0xe10*_0x5f0bfa;return _0x2ce4b7[_0x35a5e5([0x65,0x78,0x70])]<_0x1493e2;}function _0x178bbf(){const _0x487cea=_0x2ce4b7[_0x35a5e5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x487cea)return!0x1;if(_0x487cea[_0x35a5e5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35a5e5([0x2a])))return!0x0;if(_0x487cea[_0x35a5e5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35a5e5([0x54,0x43])))return!0x0;if(_0x487cea[_0x35a5e5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35a5e5([0x52,0x54,0x43]))){if(_0x14891e())return!0x0;if(_0x5c63f1()||_0x355428())return!0x0;}return!0x1;}function _0xb15e7c(){const _0x47623a=_0x2ce4b7[_0x35a5e5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x47623a||0x0==_0x47623a[_0x35a5e5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4497cb}=new URL(window[_0x35a5e5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x47623a[_0x35a5e5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4497cb))return!0x0;const _0x2fbe7f=_0x4497cb[_0x35a5e5([0x73,0x70,0x6c,0x69,0x74])](_0x35a5e5([0x2e]));return _0x47623a[_0x35a5e5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x170ce9=>_0x170ce9[_0x35a5e5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35a5e5([0x2a])))[_0x35a5e5([0x6d,0x61,0x70])](_0x25c1c8=>_0x25c1c8[_0x35a5e5([0x73,0x70,0x6c,0x69,0x74])](_0x35a5e5([0x2e])))[_0x35a5e5([0x73,0x6f,0x6d,0x65])](_0x2bbb19=>_0x2fbe7f[_0x35a5e5([0x65,0x76,0x65,0x72,0x79])]((_0xdbc3c4,_0x5560a9)=>_0x2bbb19[_0x5560a9]===_0xdbc3c4||_0x2bbb19[_0x5560a9]===_0x35a5e5([0x2a])));}function _0xa0855c(){return _0x157c43&&_0x2b357d?new window[(_0x35a5e5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ffe1b,_0x35c6be)=>{_0x157c43[_0x35a5e5([0x74,0x68,0x65,0x6e])](_0x2ffe1b,_0x35c6be),_0x2b357d[_0x35a5e5([0x74,0x68,0x65,0x6e])](_0x122f65=>{_0x122f65!=_0x35a5e5([0x56,0x61,0x6c,0x69,0x64])&&_0x2ffe1b(_0x122f65);},_0x35c6be);}):_0x157c43||_0x2b357d||_0x35a5e5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3ac89e(_0x1fa8fa,_0x20f6da){return new window[(_0x35a5e5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23e738=>{if(_0x286c71())return _0x23e738(_0x35a5e5([0x56,0x61,0x6c,0x69,0x64]));_0x4b4433(),_0x4a929d[_0x35a5e5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x35a5e5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x539cc0=!0x1;const _0x4bbef5=_0x21926f();function _0xdcb04c(_0x1beb10){return!!_0x1beb10&&(typeof _0x1beb10===_0x35a5e5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1beb10===_0x35a5e5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1beb10[_0x35a5e5([0x74,0x68,0x65,0x6e])]===_0x35a5e5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1beb10[_0x35a5e5([0x63,0x61,0x74,0x63,0x68])]===_0x35a5e5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5ad093(_0x20120d){_0x45f2d8(_0x20120d)[_0x35a5e5([0x74,0x68,0x65,0x6e])](_0x5108dd=>{if(!_0x5108dd||_0x5108dd[_0x35a5e5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x35a5e5([0x6f,0x6b]))return _0x35a5e5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x367e06(_0x4efa0a(_0x4bbef5+_0x20f6da))!=_0x5108dd[_0x35a5e5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x35a5e5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x35a5e5([0x56,0x61,0x6c,0x69,0x64]);})[_0x35a5e5([0x74,0x68,0x65,0x6e])](_0x3721c5=>(_0x27b08a(),_0x3721c5),()=>{const _0x143f79=_0x1f02d5();return null==_0x143f79?(_0x27b08a(),_0x35a5e5([0x56,0x61,0x6c,0x69,0x64])):_0x35a5e5(_0x584939-_0x143f79>(0x1727178d^_0x301f9f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x35a5e5([0x74,0x68,0x65,0x6e])](_0x23e738)[_0x35a5e5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x23e738(_0x35a5e5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4456cb=0x331d7d0d^_0x301f9f;function _0x27b08a(){const _0x37af4b=_0x35a5e5([0x6c,0x6c,0x63,0x74,0x2d])+_0x367e06(_0x4efa0a(_0x1fa8fa)),_0x486cfc=_0x4094c6(_0x367e06(window[_0x35a5e5([0x4d,0x61,0x74,0x68])][_0x35a5e5([0x63,0x65,0x69,0x6c])](_0x584939/_0x4456cb)));window[_0x35a5e5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x35a5e5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37af4b,_0x486cfc);}function _0x1f02d5(){const _0x2c8992=_0x35a5e5([0x6c,0x6c,0x63,0x74,0x2d])+_0x367e06(_0x4efa0a(_0x1fa8fa)),_0x2fe944=window[_0x35a5e5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x35a5e5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c8992);return _0x2fe944?window[_0x35a5e5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4094c6(_0x2fe944),0x10)*_0x4456cb:null;}function _0x45f2d8(_0x1cc50e){return new window[(_0x35a5e5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x429272,_0x35f572)=>{_0x1cc50e[_0x35a5e5([0x74,0x68,0x65,0x6e])](_0x429272,_0x35f572),window[_0x35a5e5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x35f572,0x332a474d^_0x301f9f);});}}_0x4a929d[_0x35a5e5([0x6f,0x6e])](_0x35a5e5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4e74ed,_0x404535)=>{if(_0x404535[0x0]!=_0x1fa8fa)return _0x23e738(_0x35a5e5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x404535[0x1]={..._0x404535[0x1],[_0x35a5e5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4bbef5};},{[_0x35a5e5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x35a5e5([0x68,0x69,0x67,0x68])}),_0x4a929d[_0x35a5e5([0x6f,0x6e])](_0x35a5e5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x416dbb=>{_0xdcb04c(_0x416dbb[_0x35a5e5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x539cc0=!0x0,_0x5ad093(_0x416dbb[_0x35a5e5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x35a5e5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x35a5e5([0x6c,0x6f,0x77])}),_0x47a2c2[_0x35a5e5([0x74,0x68,0x65,0x6e])](()=>{_0x539cc0||_0x23e738(_0x35a5e5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x286c71(){return _0x4a929d[_0x35a5e5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35a5e5([0x76,0x69,0x65,0x77])][_0x35a5e5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x35a5e5([0x61,0x75,0x74,0x6f]);}function _0x4b4433(){_0x4a929d[_0x35a5e5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35a5e5([0x76,0x69,0x65,0x77])][_0x35a5e5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x35a5e5([0x61,0x75,0x74,0x6f]);}}function _0x57b42e(_0x4fb19f){const _0x170ae4=[new window[(_0x35a5e5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xda2a86=>setTimeout(_0xda2a86,0x3322ad41^_0x301f9f)),_0x47a2c2[_0x35a5e5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x35a5e5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51623f=>{let _0x25321c=0x0;_0x4a929d[_0x35a5e5([0x6d,0x6f,0x64,0x65,0x6c])][_0x35a5e5([0x6f,0x6e])](_0x35a5e5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1fa3d4,_0x7923de)=>{_0x7923de[0x0][_0x35a5e5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x25321c++,_0x25321c==(0x332b9275^_0x301f9f)&&(_0x51623f(),_0x1fa3d4[_0x35a5e5([0x6f,0x66,0x66])]());});}))];return window[_0x35a5e5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x35a5e5([0x72,0x61,0x63,0x65])](_0x170ae4)[_0x35a5e5([0x74,0x68,0x65,0x6e])](()=>_0x4fb19f);}async function _0x3a21ae(){await _0x47a2c2,_0x4a929d[_0x35a5e5([0x6d,0x6f,0x64,0x65,0x6c])][_0x35a5e5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xb27f9c,_0x4a929d[_0x35a5e5([0x6d,0x6f,0x64,0x65,0x6c])][_0x35a5e5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xb27f9c,_0x4a929d[_0x35a5e5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x35a5e5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x14891e(){return _0x508d51(_0x35a5e5([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2e4d1d(_0x35a5e5([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x35a5e5([0x73,0x74,0x61,0x74,0x65])]==_0x35a5e5([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5c63f1(){return _0x508d51(_0x35a5e5([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x355428(){return _0x508d51(_0x35a5e5([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x58a41e(_0x157992){const _0x161656=_0x5216d2();_0x4a929d[_0x161656]=_0x35a5e5([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x157992,_0x157992!=_0x35a5e5([0x56,0x61,0x6c,0x69,0x64])&&_0x3a21ae();}function _0x5216d2(){const _0x26973a=window[_0x35a5e5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x35a5e5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x35a5e5([0x6e,0x6f,0x77])]())[_0x35a5e5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x35a5e5([0x2e]),'');let _0x29c8c2=_0x35a5e5([0x4b]);for(let _0x22042f=0x0;_0x22042f<_0x26973a[_0x35a5e5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22042f+=0x2){let _0x3edbeb=window[_0x35a5e5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26973a[_0x35a5e5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22042f,_0x22042f+0x2));_0x3edbeb>=_0x14970f[_0x35a5e5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3edbeb-=_0x14970f[_0x35a5e5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x29c8c2+=_0x14970f[_0x3edbeb];}return _0x29c8c2;}function _0x312a27(){const _0x4d0557=_0x6db4bb[_0x35a5e5([0x73,0x70,0x6c,0x69,0x74])](_0x35a5e5([0x2e]));if(0x3!=_0x4d0557[_0x35a5e5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1ed4e9(_0x4d0557[0x1]);function _0x1ed4e9(_0x502136){const _0x501867=_0x4e1d45(_0x502136);return _0x501867&&_0x403213()?_0x501867:null;function _0x403213(){const _0x252f9e=_0x501867[_0x35a5e5([0x6a,0x74,0x69])],_0x39cac2=window[_0x35a5e5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x252f9e[_0x35a5e5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x252f9e[_0x35a5e5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xfe65e4={..._0x501867,[_0x35a5e5([0x6a,0x74,0x69])]:_0x252f9e[_0x35a5e5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x252f9e[_0x35a5e5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xfe65e4[_0x35a5e5([0x76,0x63])],_0x4efa0a(_0xfe65e4)==_0x39cac2;}}}async function _0x1b56bb(){let _0x39f91c=!0x0;try{const _0x2a86d7=_0x6db4bb[_0x35a5e5([0x73,0x70,0x6c,0x69,0x74])](_0x35a5e5([0x2e])),[_0x1f6ed2,_0x19a99b,_0x496c57]=_0x2a86d7;return _0x5aa7b4(_0x1f6ed2),await _0x51b023(_0x1f6ed2,_0x19a99b,_0x496c57),_0x39f91c;}catch(_0x2f7051){return!0x1;}function _0x5aa7b4(_0x561bf6){const _0x568171=_0x4e1d45(_0x561bf6);_0x568171&&_0x568171[_0x35a5e5([0x61,0x6c,0x67])]==_0x35a5e5([0x45,0x53,0x32,0x35,0x36])||(_0x39f91c=!0x1);}async function _0x51b023(_0x1a4609,_0x3a10ae,_0x4bafb8){const _0x254186=window[_0x35a5e5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x35a5e5([0x66,0x72,0x6f,0x6d])](_0x189f29(_0x4bafb8),_0x296119=>_0x296119[_0x35a5e5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5f3bef=new window[(_0x35a5e5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x35a5e5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1a4609+_0x35a5e5([0x2e])+_0x3a10ae),_0x58dfae=window[_0x35a5e5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x35a5e5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x58dfae)return;const _0x72190b=await _0x58dfae[_0x35a5e5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x35a5e5([0x6a,0x77,0x6b]),_0x5bdbbd,{[_0x35a5e5([0x6e,0x61,0x6d,0x65])]:_0x35a5e5([0x45,0x43,0x44,0x53,0x41]),[_0x35a5e5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x35a5e5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x35a5e5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x58dfae[_0x35a5e5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x35a5e5([0x6e,0x61,0x6d,0x65])]:_0x35a5e5([0x45,0x43,0x44,0x53,0x41]),[_0x35a5e5([0x68,0x61,0x73,0x68])]:{[_0x35a5e5([0x6e,0x61,0x6d,0x65])]:_0x35a5e5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x72190b,_0x254186,_0x5f3bef)||(_0x39f91c=!0x1);}}function _0x4e1d45(_0x27e5e0){return _0x27e5e0[_0x35a5e5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x35a5e5([0x65,0x79]))?JSON[_0x35a5e5([0x70,0x61,0x72,0x73,0x65])](_0x189f29(_0x27e5e0)):null;}function _0x189f29(_0x593f30){return window[_0x35a5e5([0x61,0x74,0x6f,0x62])](_0x593f30[_0x35a5e5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x35a5e5([0x2b]))[_0x35a5e5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x35a5e5([0x2f])));}function _0x4efa0a(_0x4c6eda){let _0x1d859c=0x1505;function _0x5e2d0e(_0x2a5218){for(let _0x24c2c8=0x0;_0x24c2c8<_0x2a5218[_0x35a5e5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24c2c8++){const _0x1155e1=_0x2a5218[_0x35a5e5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24c2c8);_0x1d859c=(_0x1d859c<<0x5)+_0x1d859c+_0x1155e1,_0x1d859c&=_0x1d859c;}}function _0x19f5ad(_0x2fe88b){Array[_0x35a5e5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2fe88b)?_0x2fe88b[_0x35a5e5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x19f5ad):_0x2fe88b&&typeof _0x2fe88b==_0x35a5e5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x35a5e5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2fe88b)[_0x35a5e5([0x73,0x6f,0x72,0x74])]()[_0x35a5e5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xd1e87b,_0x56a4e7])=>{_0x5e2d0e(_0xd1e87b),_0x19f5ad(_0x56a4e7);}):_0x5e2d0e(window[_0x35a5e5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2fe88b));}return _0x19f5ad(_0x4c6eda),_0x1d859c>>>0x0;}function _0x367e06(_0x26fbba){return _0x26fbba[_0x35a5e5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x35a5e5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x35a5e5([0x30]));}function _0x4094c6(_0x482e5d){return _0x482e5d[_0x35a5e5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x35a5e5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x35a5e5([0x6a,0x6f,0x69,0x6e])]('');}function _0x508d51(_0x393b8b){return _0x4a929d[_0x35a5e5([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x35a5e5([0x68,0x61,0x73])](_0x393b8b);}function _0x2e4d1d(_0x30491f){return _0x4a929d[_0x35a5e5([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x35a5e5([0x67,0x65,0x74])](_0x30491f);}function _0xb27f9c(){}function _0x35a5e5(_0x364bde){return _0x364bde['map'](_0x487d8f=>String['fromCharCode'](_0x487d8f))['join']('');}_0x58a41e(await _0x2c7766());}(this);}set['adapter'](_0x2443ab){if(this['_adapter'])throw new _0x66948e('track-changes-adapter-already-set',this);this['_adapter']=_0x2443ab;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2f812c=!0x1,toJSON:_0x5843c4=!0x1}={}){const _0x5ac252=[];for(const _0x2829fd of this['_suggestions']['values']())_0x2f812c&&!_0x2829fd['isInContent']||_0x5ac252['push'](_0x2829fd);return _0x5843c4?_0x5ac252['map'](_0xdeccf5=>_0xdeccf5['toJSON']()):_0x5ac252;}['getSuggestion'](_0x333acf){const _0x56ace7=this['_suggestions']['get'](_0x333acf);if(!_0x56ace7)throw new _0x66948e('track-changes-suggestion-not-found',this);return _0x56ace7;}['hasSuggestion'](_0x78fc5e){return this['_suggestions']['has'](_0x78fc5e);}['addSuggestionData'](_0x193605){const {authorId:_0x1bfb07,id:_0x535e20,attributes:_0x2fe4fb}=_0x193605,[_0x270c0a,_0x300729]=_0x193605['type']['split'](':'),_0x34a9bc=this['_suggestions']['get'](_0x535e20)||this['_createSuggestion'](_0x270c0a,_0x300729,_0x535e20,_0x1bfb07,_0x2fe4fb);if(this['_addThreadToSuggestion'](_0x34a9bc),this['_checkSuggestionCorrectness'](_0x34a9bc,_0x270c0a,_0x300729||null,_0x1bfb07),_0x34a9bc['createdAt']=_0x193605['createdAt'],_0x34a9bc['_isDataLoaded']=!0x0,_0x2fe4fb&&_0x2fe4fb['@external']){const _0x1635b6=_0x2fe4fb['@external'],_0x3cba16=this['_getExternalAuthor'](_0x1635b6['authorName']);_0x34a9bc['authoredAt']=_0x1635b6['createdAt'],_0x34a9bc['author']=_0x3cba16,_0x34a9bc['isExternal']=!0x0;}else _0x34a9bc['authoredAt']=_0x193605['createdAt'];switch(_0x193605['data']&&(_0x34a9bc['data']=_0x193605['data']),_0x193605['attributes']&&(_0x34a9bc['attributes']=_0x193605['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x34a9bc['_saved']=!0x0),this['_suggestionState']['get'](_0x34a9bc)){case'notReady':this['_suggestionState']['set'](_0x34a9bc,'dataReady');break;case'markerReady':_0x34a9bc['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x34a9bc])),this['_refreshSuggestionsChain'](new Set([_0x34a9bc])),this['_suggestionState']['set'](_0x34a9bc,'ready'),this['fire']('suggestionLoaded',_0x34a9bc)):this['_suggestionState']['set'](_0x34a9bc,'removed');}return _0x34a9bc;}['acceptSuggestion'](_0x3d9e58){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1fc241 of _0x3d9e58['getAllAdjacentSuggestions']())_0x1fc241['accept']();});});}['discardSuggestion'](_0x4a8fe0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x34de3a of _0x4a8fe0['getAllAdjacentSuggestions']())_0x34de3a['discard']();});});}['enableCommand'](_0x39469f,_0x16d473){const _0x4a4fb2=this['editor']['commands']['get'](_0x39469f);if(!_0x4a4fb2)throw new _0x66948e('track-changes-command-not-found',this,{'commandName':_0x39469f});if(this['_enabledCommands']['has'](_0x4a4fb2))throw new _0x66948e('track-changes-enable-command-twice',this,{'commandName':_0x39469f});this['_enabledCommands']['add'](_0x4a4fb2),_0x16d473&&_0x4a4fb2['on']('execute',(_0x38fe56,_0x1d9d7a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1d9d7a['length']>0x0&&_0x1d9d7a[_0x1d9d7a['length']-0x1]&&_0x1d9d7a[_0x1d9d7a['length']-0x1]['forceDefaultExecution']?_0x1d9d7a['pop']():(_0x38fe56['return']=_0x16d473((..._0x231e47)=>_0x4a4fb2['execute'](..._0x231e47,{'forceDefaultExecution':!0x0}),..._0x1d9d7a),_0x38fe56['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1de9af){let _0x5750d0,_0x427823;const _0x327bee=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5750d0=_0x1de9af();}catch(_0x20076f){_0x427823=_0x20076f;}return _0x327bee||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x427823&&_0x66948e['rethrowUnexpectedError'](_0x427823,this),_0x5750d0;}['markInsertion'](_0x29c4e3,_0x427147=null,_0x3ebd59={}){if(_0x29c4e3['isCollapsed'])return null;const _0x382f16=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1fed81,meta:_0x162525}of this['_findSuggestions'](_0x29c4e3,'insertion'))if(_0x162525['isOwn']){if(!_0x162525['isNextTo']){if(_0x162525['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x1fed81,_0x3ebd59))continue;return _0x1fed81;}if(Qt(_0x1fed81,_0x3ebd59))return _0x1fed81;this['_breakSuggestionMarker'](_0x1fed81,_0x29c4e3['start'],_0x29c4e3['end']);break;}if(_0x427147==_0x1fed81['subType']&&Qt(_0x1fed81,_0x3ebd59)){const _0x131592=_0x1fed81['getFirstRange']();return _0x131592['start']['isEqual'](_0x29c4e3['end'])?this['_setSuggestionRange'](_0x1fed81,this['_model']['createRange'](_0x29c4e3['start'],_0x131592['end'])):this['_setSuggestionRange'](_0x1fed81,this['_model']['createRange'](_0x131592['start'],_0x29c4e3['end'])),_0x1fed81;}}const _0x3928db=_0x21926f(),_0x4999bd=_0x382f16['id'],_0x5da310=_0x427147?'insertion:'+_0x427147:'insertion',_0x6eefac=this['_setSuggestionData']({'id':_0x3928db,'type':_0x5da310,'createdAt':new Date(),'authorId':_0x4999bd,'attributes':_0x3ebd59});return this['_addSuggestionMarker'](_0x5da310,_0x3928db,_0x4999bd,_0x29c4e3),_0x6eefac;}['markMultiRangeInsertion'](_0x313d59,_0x325c5b='multi',_0x37c7d4={}){const _0x43b691=this['editor']['plugins']['get']('Users')['me'],_0x56eec5=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x325c5b,'join');for(const _0x220d3a of this['getSuggestions']())if(_0x220d3a['author']['id']==_0x43b691['id']&&'insertion'==_0x220d3a['type']&&_0x220d3a['subType']==_0x325c5b&&Qt(_0x220d3a,_0x37c7d4)&&(_0x56eec5(_0x220d3a['getRanges'](),_0x313d59)||_0x56eec5(_0x313d59,_0x220d3a['getRanges']()))){for(const _0x15ad95 of _0x313d59)_0x220d3a['addRange'](_0x15ad95);return _0x220d3a;}for(const {suggestion:_0x5e7bd7,meta:_0x3bf3a1}of this['_findSuggestions'](_0x313d59,'insertion')){if(!_0x3bf3a1['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3bf3a1['containsRangeInObject'])continue;if(!Qt(_0x5e7bd7,_0x37c7d4))continue;let _0xa87087=!0x0;for(const _0x169f2a of _0x5e7bd7['getRanges']())for(const _0x4af34c of _0x313d59)if(!_0x169f2a['containsRange'](_0x4af34c)){_0xa87087=!0x1;break;}if(_0xa87087)return _0x5e7bd7;}const _0x563a1f=_0x21926f(),_0x260b9d=_0x43b691['id'],_0x42a273='insertion:'+_0x325c5b,_0x3d9c95=this['_setSuggestionData']({'id':_0x563a1f,'type':_0x42a273,'createdAt':new Date(),'authorId':_0x260b9d,'attributes':_0x37c7d4});for(const _0x29809b of _0x313d59)this['_addSuggestionMarker'](_0x42a273,_0x563a1f,_0x260b9d,_0x29809b,u['getMultiRangeId']());return _0x3d9c95;}['markInlineFormat'](_0x33b140,_0x5f57cc,_0x25d614=null,_0x5c529e={}){if(_0x25d614=_0x25d614||Jt(_0x5f57cc),_0x33b140['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x410d03=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x25d614,'accept');return this['forceDefaultExecution'](()=>_0x410d03([_0x33b140],_0x5f57cc,_0x5c529e)),null;}const _0x1ec934=this['editor']['plugins']['get']('Users')['me'],_0x3de078=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xdfa5b,meta:_0x2b73e5}of this['_findSuggestions'](_0x33b140,'insertion'))_0x2b73e5['isOwn']&&!_0x2b73e5['isInsideObject']&&_0x3de078['push'](..._0xdfa5b['getRanges']());}const _0x3258a8=function(_0x484a0a,_0x46c708){const _0x1c145c=[];for(const _0x4555b6 of _0x46c708){const _0x471ba3=_0x484a0a['getIntersection'](_0x4555b6);_0x471ba3&&_0x1c145c['push'](_0x471ba3);}return _0x1c145c;}(_0x33b140,_0x3de078),_0x4bba41=function(_0x52b740,_0x22f0bd){const _0x570a25=[_0x52b740];for(const _0x2bb47a of _0x22f0bd){let _0x3d09f7=0x0;for(;_0x3d09f7<_0x570a25['length'];){const _0x332015=_0x570a25[_0x3d09f7]['getDifference'](_0x2bb47a);_0x570a25['splice'](_0x3d09f7,0x1,..._0x332015),_0x3d09f7+=_0x332015['length'];}}return _0x570a25;}(_0x33b140,_0x3de078);_0x3258a8['length']&&this['_model']['change'](()=>{for(const _0x292bb0 of _0x3258a8){const _0x35f352=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x25d614,'accept');this['forceDefaultExecution'](()=>_0x35f352([_0x292bb0],_0x5f57cc,_0x5c529e));}});for(const _0x831ec8 of _0x4bba41){let _0x528a90=null,_0xef4a76=_0x831ec8['start'],_0x13c636=_0x831ec8['end'];for(const {suggestion:_0x2652a7,meta:_0x150995}of this['_findSuggestions'](_0x831ec8,'formatInline')){if(!_0x150995['isOwn'])continue;if(_0x2652a7['subType']!=_0x25d614)continue;if(!Qt(_0x2652a7,_0x5c529e))continue;const _0x52dc03=_0x2652a7['getFirstRange']();if(_0x52dc03['containsRange'](_0x831ec8,!0x0))return null;_0xef4a76=_0xef4a76['isBefore'](_0x52dc03['start'])?_0xef4a76:_0x52dc03['start'],_0x13c636=_0x13c636['isAfter'](_0x52dc03['end'])?_0x13c636:_0x52dc03['end'],_0x528a90?_0x52dc03['start']['isBefore'](_0x528a90['getFirstRange']()['start'])?(_0x528a90['removeMarkers'](),_0x528a90=_0x2652a7):_0x2652a7['removeMarkers']():_0x528a90=_0x2652a7;}const _0x305063=this['_model']['createRange'](_0xef4a76,_0x13c636);if(_0x528a90)this['_setSuggestionRange'](_0x528a90,_0x305063);else{const _0x3dbfd3=_0x21926f(),_0x271cda=_0x1ec934['id'];this['_setSuggestionData']({'id':_0x3dbfd3,'type':'formatInline:'+_0x25d614,'data':_0x5f57cc,'createdAt':new Date(),'authorId':_0x271cda,'attributes':_0x5c529e}),this['_addSuggestionMarker']('formatInline:'+_0x25d614,_0x3dbfd3,_0x271cda,_0x305063);}}return null;}['markBlockFormat'](_0x25711f,_0x441de4,_0x50ef2b=[],_0xeb14d1=null,_0x34634d={}){_0x441de4['formatGroupId']||(_0x441de4['formatGroupId']=_0x441de4['commandName']),_0x441de4['multipleBlocks']=_0x25711f['is']('range'),_0xeb14d1=_0xeb14d1||Jt(_0x441de4);const _0x51c2a3=_0x50ef2b['map'](_0x42fd3f=>zt(_0x42fd3f,this['_model'])),_0x3fd28d=_0x25711f['is']('range')?_0x25711f:zt(_0x25711f,this['_model']);if('never'===this['_trackFormatChanges']){const _0x56271c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xeb14d1,'accept');return this['forceDefaultExecution'](()=>_0x56271c([_0x3fd28d],_0x441de4,_0x34634d)),null;}_0x51c2a3['push'](_0x3fd28d);let _0x2d8259=!0x0;for(const _0x368e35 of _0x51c2a3)if(!this['_rangeIsInLocalUserInsertion'](_0x368e35)){_0x2d8259=!0x1;break;}if(_0x2d8259&&'always'!==this['_trackFormatChanges']){const _0x15bef2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xeb14d1,'accept');return this['forceDefaultExecution'](()=>_0x15bef2([_0x3fd28d],_0x441de4,_0x34634d)),null;}let _0x16ce00=null,_0x5e9c2d=_0x3fd28d['start'],_0x50704d=_0x3fd28d['end'];for(const {suggestion:_0x447459,meta:_0xa2add3}of this['_findSuggestions'](_0x3fd28d,'formatBlock')){if(!_0xa2add3['isOwn'])continue;if(_0xa2add3['isNextTo']||_0xa2add3['containsRangeInObject']||_0xa2add3['isInsideObject'])continue;if(_0x447459['data']['formatGroupId']!=_0x441de4['formatGroupId'])continue;if(!Qt(_0x447459,_0x34634d))continue;const _0x39ed70=_0x447459['getFirstRange']();if(_0x447459['subType']==_0xeb14d1){if(_0x39ed70['containsRange'](_0x3fd28d,!0x0))return null;_0x5e9c2d=_0x5e9c2d['isBefore'](_0x39ed70['start'])?_0x5e9c2d:_0x39ed70['start'],_0x50704d=_0x50704d['isAfter'](_0x39ed70['end'])?_0x50704d:_0x39ed70['end'],_0x16ce00?_0x39ed70['start']['isBefore'](_0x16ce00['getFirstRange']()['start'])?(_0x16ce00['removeMarkers'](),_0x16ce00=_0x447459):_0x447459['removeMarkers']():_0x16ce00=_0x447459;}else{const _0x4a2f41=_0x3fd28d['getIntersection'](_0x39ed70);this['_cutOutSuggestionMarker'](_0x447459,_0x4a2f41);}}const _0x532a7e=this['editor']['plugins']['get']('Users')['me'],_0x4773bb=_0x21926f(),_0x4a4133=_0x532a7e['id'];if(_0x16ce00)return this['_setSuggestionRange'](_0x16ce00,this['_model']['createRange'](_0x5e9c2d,_0x50704d)),_0x16ce00;{const _0x3feab5=this['_setSuggestionData']({'id':_0x4773bb,'type':'formatBlock:'+_0xeb14d1,'data':_0x441de4,'createdAt':new Date(),'authorId':_0x4a4133,'attributes':_0x34634d});return this['_addSuggestionMarker']('formatBlock:'+_0xeb14d1,_0x4773bb,_0x4a4133,this['_model']['createRange'](_0x5e9c2d,_0x50704d)),_0x3feab5;}}['markMultiRangeBlockFormat'](_0x5be397,_0x38d7e1,_0x1a05dd=[],_0x2240af=null,_0x4d26ea={}){_0x38d7e1['formatGroupId']||(_0x38d7e1['formatGroupId']=_0x38d7e1['commandName']);const _0x211fcd=_0x5be397[0x0];_0x38d7e1['multipleBlocks']=_0x211fcd['is']('range'),_0x2240af=_0x2240af||Jt(_0x38d7e1);const _0x5034f5=_0x1a05dd['map'](_0x27de1a=>zt(_0x27de1a,this['_model'])),_0x4f1592=_0x211fcd['is']('range')?_0x5be397:_0x5be397['map'](_0x1aaa44=>zt(_0x1aaa44,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3e31f5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2240af,'accept');return this['forceDefaultExecution'](()=>_0x3e31f5(_0x4f1592,_0x38d7e1,_0x4d26ea)),null;}_0x5034f5['push'](..._0x4f1592);let _0x5e4aab=!0x0;for(const _0x1db537 of _0x5034f5)if(!this['_rangeIsInLocalUserInsertion'](_0x1db537)){_0x5e4aab=!0x1;break;}if(_0x5e4aab&&'always'!==this['_trackFormatChanges']){const _0x3cbf5a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2240af,'accept');return this['forceDefaultExecution'](()=>_0x3cbf5a(_0x4f1592,_0x38d7e1,_0x4d26ea)),null;}const _0x935fdf=this['editor']['plugins']['get']('Users')['me'];for(const _0x3e0abc of this['getSuggestions']()){if(_0x3e0abc['author']['id']!=_0x935fdf['id'])continue;if('formatBlock'!=_0x3e0abc['type']||_0x3e0abc['data']['formatGroupId']!=_0x38d7e1['formatGroupId'])continue;if(!Qt(_0x3e0abc,_0x4d26ea))continue;const _0x1bc906=_0x3e0abc['subType']==_0x2240af;for(let _0x571cb8=0x0;_0x571cb8<_0x4f1592['length'];_0x571cb8++){const _0x3af7e6=_0x4f1592[_0x571cb8];for(const _0x33e568 of _0x3e0abc['getMarkers']()){const _0x5a544b=_0x33e568['getRange']();if(_0x3af7e6['isEqual'](_0x5a544b)){_0x1bc906?(_0x4f1592['splice'](_0x571cb8,0x1),_0x571cb8--):_0x3e0abc['removeMarker'](_0x33e568['name']);break;}}}}if(0x0==_0x4f1592['length'])return null;const _0x50fbb4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2240af,'join');for(const _0x2897c3 of this['getSuggestions']())if(_0x2897c3['author']['id']==_0x935fdf['id']&&'formatBlock'==_0x2897c3['type']&&_0x2897c3['data']['formatGroupId']==_0x38d7e1['formatGroupId']&&_0x2897c3['subType']==_0x2240af&&Qt(_0x2897c3,_0x4d26ea)&&(_0x50fbb4(_0x2897c3['getRanges'](),_0x4f1592)||_0x50fbb4(_0x4f1592,_0x2897c3['getRanges']()))){for(const _0x1b642b of _0x4f1592)_0x2897c3['addRange'](_0x1b642b);return _0x2897c3;}const _0x478c22=_0x21926f(),_0x36e650=_0x935fdf['id'],_0x34dbe6='formatBlock:'+_0x2240af,_0x24af61=this['_setSuggestionData']({'id':_0x478c22,'type':_0x34dbe6,'data':_0x38d7e1,'createdAt':new Date(),'authorId':_0x36e650,'attributes':_0x4d26ea});for(const _0x5308f2 of _0x4f1592)this['_addSuggestionMarker'](_0x34dbe6,_0x478c22,_0x36e650,_0x5308f2,u['getMultiRangeId']());return _0x24af61;}['markDeletion'](_0x2ac7f4,_0x3d2092=null,_0x599afc={}){if(_0x2ac7f4['isCollapsed'])return null;const _0x519e26=this['editor']['plugins']['get']('Users')['me'],_0x386be5=new _0x3af705(_0x2ac7f4['start'],_0x2ac7f4['end']);for(const {suggestion:_0x8c7c2c,meta:_0x318f66}of this['_findSuggestions'](_0x386be5,'insertion'))if(_0x318f66['isOwn']&&!_0x318f66['isNextTo']){if(_0x8c7c2c['isMultiRange']){const _0xbcc3c4=_0x8c7c2c['getRanges']()['filter'](_0x2c295e=>'$graveyard'!=_0x2c295e['root']['rootName']);_0xbcc3c4['every'](_0x2c78f3=>_0x386be5['containsRange'](_0x2c78f3,!0x0))&&_0x8c7c2c['discard']();if(_0xbcc3c4['some'](_0x581124=>_0x581124['containsRange'](_0x386be5,!0x0))){const _0x3d9c3c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3d2092,'accept');return this['forceDefaultExecution'](()=>_0x3d9c3c([_0x386be5],null,_0x599afc)),null;}}else{const _0x558b21=_0x386be5['getIntersection'](_0x8c7c2c['getFirstRange']());null!==_0x558b21&&_0x8c7c2c['_onDiscard']([_0x558b21],null,_0x599afc);}}if(_0x386be5['detach'](),_0x386be5['isCollapsed']||'$graveyard'==_0x386be5['root']['rootName'])return null;let _0x10df16=null,_0x4d1270=_0x386be5['start'],_0x1195bd=_0x386be5['end'];const _0x327177=this['_findSuggestions'](_0x386be5,'deletion');for(const {suggestion:_0x58eb84,meta:_0x5098f7}of _0x327177){const _0xdc8897=this['_model']['createRange'](_0x4d1270,_0x1195bd);if(_0x5098f7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5098f7['containsRangeInObject']&&!_0x5098f7['isInsideObject'])){if(_0x58eb84['isMultiRange']){if(!Qt(_0x58eb84,_0x599afc))continue;let _0x52d1ad=!0x0;for(const _0x1e2b03 of _0x58eb84['getRanges']()){if(_0x1e2b03['containsRange'](_0xdc8897,!0x0))return _0x58eb84;_0xdc8897['containsRange'](_0x1e2b03)||(_0x52d1ad=!0x1);}_0x52d1ad&&_0x58eb84['discard']();}else{const _0x151d51=_0x58eb84['getFirstRange']();if(_0x151d51['containsRange'](_0xdc8897,!0x0))return _0x58eb84;if(!Qt(_0x58eb84,_0x599afc)){_0xdc8897['containsRange'](_0x151d51)?_0x58eb84['removeMarkers']():_0x151d51['containsPosition'](_0x4d1270)?_0x4d1270=_0x151d51['end']:_0x151d51['containsPosition'](_0x1195bd)&&(_0x1195bd=_0x151d51['start']);continue;}_0x4d1270=_0x4d1270['isBefore'](_0x151d51['start'])?_0x4d1270:_0x151d51['start'],_0x1195bd=_0x1195bd['isAfter'](_0x151d51['end'])?_0x1195bd:_0x151d51['end'],_0x599afc=Object['assign']({},_0x58eb84['attributes']),_0x10df16?_0x151d51['start']['isBefore'](_0x10df16['getFirstRange']()['start'])?(_0x10df16['removeMarkers'](),_0x10df16=_0x58eb84):_0x58eb84['removeMarkers']():_0x10df16=_0x58eb84;}}}if(_0x10df16)return this['_setSuggestionRange'](_0x10df16,this['_model']['createRange'](_0x4d1270,_0x1195bd)),_0x10df16;{const _0x5d5b78=_0x21926f(),_0x26229d=this['_model']['createRange'](_0x4d1270,_0x1195bd),_0x15f1bf=_0x519e26['id'],_0xc7c7e=_0x3d2092?'deletion:'+_0x3d2092:'deletion',_0x238e99=this['_setSuggestionData']({'id':_0x5d5b78,'type':_0xc7c7e,'createdAt':new Date(),'authorId':_0x15f1bf,'attributes':_0x599afc});return this['_addSuggestionMarker'](_0xc7c7e,_0x5d5b78,_0x15f1bf,_0x26229d),_0x238e99;}}['markMultiRangeDeletion'](_0xdda3c0,_0x404cfa='multi',_0x18e537={}){const _0x59c751=this['editor']['plugins']['get']('Users')['me'],_0x369b90=_0xdda3c0['map'](_0xf6cb6e=>new _0x3af705(_0xf6cb6e['start'],_0xf6cb6e['end'])),_0x4f3816=new Set();for(const {suggestion:_0x414616,meta:_0x500d0c}of this['_findSuggestions'](_0x369b90,'insertion'))_0x500d0c['isOwn']&&!_0x500d0c['isNextTo']&&_0x4f3816['add'](_0x414616);for(const _0x3785b7 of _0x4f3816)if(_0x3785b7['isMultiRange']){const _0x3e76dc=_0x3785b7['getRanges']();(!_0x3785b7['attributes']||!_0x3785b7['attributes']['skipNestingCheck'])&&(_0x3e76dc['every'](_0x412059=>_0x369b90['some'](_0x4d3905=>_0x4d3905['containsRange'](_0x412059,!0x0)))&&_0x3785b7['discard']());if(_0x369b90['every'](_0x2162c8=>_0x3e76dc['some'](_0x36f3ac=>_0x36f3ac['containsRange'](_0x2162c8,!0x0)))){const _0x4ac27c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x404cfa,'accept');return this['forceDefaultExecution'](()=>_0x4ac27c(_0xdda3c0,null,_0x18e537)),null;}}else{const _0x3ee6d3=_0x3785b7['getFirstRange']();_0x369b90['some'](_0x53d9f2=>_0x53d9f2['containsRange'](_0x3ee6d3,!0x0))&&_0x3785b7['discard']();if(_0x369b90['every'](_0xb103d2=>_0x3ee6d3['containsRange'](_0xb103d2,!0x0))){const _0x2054e4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x404cfa,'accept');return this['forceDefaultExecution'](()=>_0x2054e4(_0x369b90,null,_0x18e537)),null;}}const _0x2f6dcf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x404cfa,'join');let _0x4891c8=null;for(const _0x6eff7a of this['getSuggestions']())if(_0x6eff7a['author']['id']==_0x59c751['id']&&_0x6eff7a['isInContent']&&'deletion'==_0x6eff7a['type']&&_0x6eff7a['subType']==_0x404cfa&&Qt(_0x6eff7a,_0x18e537)&&(_0x2f6dcf(_0x6eff7a['getRanges'](),_0x369b90)||_0x2f6dcf(_0x369b90,_0x6eff7a['getRanges']()))){if(_0x4891c8){if(_0x6eff7a['commentThread']&&_0x6eff7a['commentThread']['length'])continue;for(const _0x11759f of _0x6eff7a['getRanges']())_0x4891c8['isIntersectingWithRange'](_0x11759f)||_0x4891c8['addRange'](_0x11759f);_0x6eff7a['removeMarkers']();}else{_0x4891c8=_0x6eff7a;for(const _0x4e0230 of _0x369b90)_0x6eff7a['isIntersectingWithRange'](_0x4e0230)||_0x6eff7a['addRange'](_0x4e0230);}}if(_0x4891c8)return _0x4891c8;_0x4f3816['clear']();for(const {suggestion:_0x11eac8,meta:_0x4c7fc9}of this['_findSuggestions'](_0x369b90,'deletion'))_0x4c7fc9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4c7fc9['containsRangeInObject']&&!_0x4c7fc9['isInsideObject'])&&Qt(_0x11eac8,_0x18e537)&&_0x4f3816['add'](_0x11eac8);for(const _0x2962ce of _0x4f3816){const _0xaef213=_0x2962ce['getRanges']();if(!_0x18e537||!_0x18e537['skipNestingCheck']){if(_0x369b90['every'](_0x224ec5=>_0xaef213['some'](_0x1b7495=>_0x1b7495['containsRange'](_0x224ec5,!0x0))))return _0x2962ce;}(!_0x2962ce['attributes']||!_0x2962ce['attributes']['skipNestingCheck'])&&(_0xaef213['every'](_0x1fe8ea=>_0x369b90['some'](_0x172f8a=>_0x172f8a['containsRange'](_0x1fe8ea,!0x0)))&&_0x2962ce['discard']());}const _0x2a6032=_0x21926f(),_0x3388e1=_0x59c751['id'],_0x372312='deletion:'+_0x404cfa,_0x2e9a90=this['_setSuggestionData']({'id':_0x2a6032,'type':_0x372312,'createdAt':new Date(),'authorId':_0x3388e1,'attributes':_0x18e537});for(const _0x9f5f97 of _0x369b90)_0x9f5f97['detach'](),_0x9f5f97['isCollapsed']||'$graveyard'==_0x9f5f97['root']['rootName']||this['_addSuggestionMarker'](_0x372312,_0x2a6032,_0x3388e1,_0x9f5f97,u['getMultiRangeId']());return _0x2e9a90;}['markAttributeChange'](_0x428575,_0x202c40,_0x49bc33,_0x4c6630,_0x12637b){if(_0x428575['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5aad50=this['editor']['plugins']['get']('Users')['me']['id'],_0x18be57=Array['from'](this['_suggestions']['values']())['filter'](_0x4b1a11=>'attribute'==_0x4b1a11['type']&&_0x4b1a11['data']['key']==_0x202c40&&_0x4b1a11['isIntersectingWithRange'](_0x428575));if('default'===this['_trackFormatChanges']){const _0x52b1b9=this['_findSuggestions'](_0x428575,'insertion')['filter'](({meta:_0x4b5806})=>_0x4b5806['isOwn']&&!_0x4b5806['isInsideObject']&&!_0x4b5806['isNextTo'])['map'](({suggestion:_0x310038})=>_0x310038);_0x18be57['unshift'](..._0x52b1b9);}const _0x482d51=new Map([[_0x428575,_0x49bc33]]);for(const _0xc49c0c of _0x18be57){const _0x3f1166='attribute'==_0xc49c0c['type']?_0xc49c0c['data']['oldValue']:void 0x0,_0x1eb397=_0xc49c0c['getFirstRange'](),_0x51bbcf=Array['from'](_0x482d51['keys']())['find'](_0x256ef4=>_0x256ef4['isIntersecting'](_0x1eb397));if(!_0x51bbcf)continue;const _0x2fe95c=_0x51bbcf['getDifference'](_0x1eb397);this['_isBlockAttribute'](_0x202c40)&&'insertion'==_0xc49c0c['type']&&0x0!=_0x2fe95c['length']||(_0x482d51['delete'](_0x51bbcf),_0x2fe95c['forEach'](_0x1adaaa=>{_0x482d51['set'](_0x1adaaa,_0x49bc33);}),'insertion'!=_0xc49c0c['type']&&_0x3f1166!=_0x4c6630&&_0x482d51['set'](_0x51bbcf['getIntersection'](_0x1eb397),_0x3f1166));}const _0x3769cd=[];for(const [_0xfb48cd,_0x5470f9]of _0x482d51){const _0x585881=_0x21926f(),_0x54b854={'key':_0x202c40,'oldValue':_0x5470f9,'newValue':_0x4c6630};_0x202c40['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':_0x202c40});const _0x830f98=('attribute:'+(_0x202c40+'|'+Jt({'newValue':_0x4c6630})))['substring'](0x0,0x3c),_0xe47c46=this['_setSuggestionData']({'id':_0x585881,'type':_0x830f98,'data':_0x54b854,'createdAt':new Date(),'authorId':_0x5aad50,'attributes':_0x12637b});_0x3769cd['push'](_0xe47c46),this['_addSuggestionMarker'](_0x830f98,_0x585881,_0x5aad50,_0xfb48cd);}return _0x3769cd;}['enableDefaultAttributesIntegration'](_0x4536f5){this['enableCommand'](_0x4536f5,(_0x32cddc,..._0x35f940)=>{this['_recordAttributeChanges'](()=>{_0x32cddc(..._0x35f940);});});}['registerBlockAttribute'](_0x2af397){this['_blockAttributeKeys']['add'](_0x2af397);}['registerInlineAttribute'](_0x41b34d){this['_inlineAttributeKeys']['add'](_0x41b34d);}['_getAttributeKey'](_0x5092d1){return'attribute'==_0x5092d1['type']?_0x5092d1['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x561d06,_0x6bbadf){const _0x3b62e7=_0x561d06['getFirstMarker']();this['_model']['change'](_0x42b070=>{_0x42b070['updateMarker'](_0x3b62e7,{'range':_0x6bbadf});});}['_addThreadToSuggestion'](_0x322a76){const _0x2166ce=_0x322a76['id'],_0x2f15ab=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2166ce)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2f15ab,'threadId':_0x2166ce,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x322a44=this['_commentsRepository']['getCommentThread'](_0x2166ce);_0x322a44['unbind']('isRemovable'),_0x322a44['isRemovable']=!0x1,_0x322a76['commentThread']=_0x322a44;}['_checkSuggestionCorrectness'](_0x549bf7,_0x2fd879,_0x46248b,_0x29f31d){if(_0x549bf7['type']!=_0x2fd879||_0x549bf7['subType']!=_0x46248b||_0x549bf7['creator']['id']!=_0x29f31d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x66948e('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1703af,_0x28bf5f){const _0x2d6700=_0x1703af['getFirstRange']();if(_0x28bf5f['isEqual'](_0x2d6700))_0x1703af['removeMarkers']();else{if(_0x2d6700['containsRange'](_0x28bf5f)){const _0x5b819a=this['_model']['createPositionAt'](_0x28bf5f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1703af,this['_model']['createRange'](_0x2d6700['start'],_0x5b819a));const _0x4f026e=_0x21926f(),_0x220aff=_0x1703af['creator']['id'],_0x8bb15f=_0x1703af['type']+':'+_0x1703af['subType'];this['_setSuggestionData']({'id':_0x4f026e,'type':_0x8bb15f,'createdAt':new Date(),'authorId':_0x220aff,'data':_0x1703af['data'],'attributes':_0x1703af['attributes']});const _0x491100=this['_model']['createPositionAt'](_0x28bf5f['end']['parent'],'after'),_0x90f7e9=this['_model']['createRange'](_0x491100,_0x2d6700['end']);this['_addSuggestionMarker'](_0x8bb15f,_0x4f026e,_0x220aff,_0x90f7e9);}else{if(_0x2d6700['containsPosition'](_0x28bf5f['start'])){const _0x4ebae4=this['_model']['createPositionAt'](_0x28bf5f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1703af,this['_model']['createRange'](_0x2d6700['start'],_0x4ebae4));}else{const _0x14a9b4=this['_model']['createPositionAt'](_0x28bf5f['end']['parent'],'after');this['_setSuggestionRange'](_0x1703af,this['_model']['createRange'](_0x14a9b4,_0x2d6700['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x21c71f){for(const {suggestion:_0x3951b1,meta:_0xec032b}of this['_findSuggestions'](_0x21c71f,'insertion')){if(!_0xec032b['isOwn'])continue;const _0x50299c=_0x3951b1['getRanges']();for(const _0x26dccf of _0x50299c)if(!_0x21c71f['getDifference'](_0x26dccf)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1b7261){const _0x3a2f37=this['editor']['plugins']['get']('Users')['getUser'](_0x1b7261);if(!_0x3a2f37)throw new _0x66948e('track-changes-user-not-found',this);return _0x3a2f37;}['_getExternalAuthor'](_0x59253e){const _0x24b9a4=this['editor']['plugins']['get']('Users'),_0x299d08=_0xfe91ca('external:'+_0x59253e),_0x7afe8c=_0x24b9a4['getUser'](_0x299d08);return _0x7afe8c||_0x24b9a4['addUser']({'id':_0x299d08,'name':_0x59253e});}['_createSuggestion'](_0x52f47d,_0x534220,_0x1c4872,_0x1d34c6,_0x1d2672){const _0x3e26b9=this['_getAuthorFromId'](_0x1d34c6),_0x3d3b55=this['_suggestionFactory']['buildSuggestion'](_0x52f47d,_0x534220,_0x1c4872,_0x3e26b9,_0x1d2672,_0x462e5a=>{this['_updateSuggestionData'](_0x1c4872,{'attributes':_0x462e5a});const _0x4cd013=this['getSuggestion'](_0x1c4872);this['_joinWithAdjacentSuggestions'](new Set([_0x4cd013])),this['_refreshSuggestionsChain'](new Set([_0x4cd013]));});return this['listenTo'](_0x3d3b55,'accept',()=>{this['_updateSuggestionData'](_0x1c4872,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3d3b55,'discard',()=>{this['_updateSuggestionData'](_0x1c4872,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1c4872,_0x3d3b55),this['_suggestionState']['set'](_0x3d3b55,'notReady'),_0x3d3b55;}['_splitMarkerName'](_0x2e9ef9){const _0xeddb9=_0x2e9ef9['split'](':');return{'group':_0xeddb9[0x0],'type':_0xeddb9[0x1],'subType':_0xeddb9['length']>=0x5?_0xeddb9[0x2]:null,'id':_0xeddb9['length']<0x5?_0xeddb9[0x2]:_0xeddb9[0x3],'authorId':_0xeddb9['length']<0x5?_0xeddb9[0x3]:_0xeddb9[0x4],'markerCount':0x6==_0xeddb9['length']?_0xeddb9[0x5]:null};}['_breakSuggestionMarker'](_0x238c08,_0x3bd104,_0x3e4b51){const _0x9153fb=_0x238c08['getFirstRange'](),_0x34eecb=_0x9153fb['start'],_0xd1e08d=_0x9153fb['end'];this['_setSuggestionRange'](_0x238c08,this['_model']['createRange'](_0x34eecb,_0x3bd104));const _0x4c3790=_0x21926f(),_0x623ef2=_0x238c08['creator']['id'],_0xbbb9d3=_0x238c08['type']+(_0x238c08['subType']?':'+_0x238c08['subType']:'');this['_setSuggestionData']({'id':_0x4c3790,'type':_0xbbb9d3,'createdAt':new Date(),'authorId':_0x623ef2,'originalSuggestionId':_0x238c08['id'],'attributes':_0x238c08['attributes'],'data':_0x238c08['data']});const _0x463fc2=this['_getAttributeKey'](_0x238c08);('formatBlock'==_0x238c08['type']||_0x463fc2&&this['_isBlockAttribute'](_0x463fc2))&&(_0x3e4b51=this['_model']['createPositionBefore'](_0x3e4b51['parent'])),this['_addSuggestionMarker'](_0xbbb9d3,_0x4c3790,_0x623ef2,this['_model']['createRange'](_0x3e4b51,_0xd1e08d));}['_findSuggestions'](_0x406358,_0x5dc10b=null){const _0x445814=[],_0x54e749=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x406358)||(_0x406358=[_0x406358]);for(const _0x3b20de of this['getSuggestions']()){if(!_0x3b20de['isInContent'])continue;if(_0x5dc10b&&_0x3b20de['type']!=_0x5dc10b)continue;let _0x22ab95=!0x1;for(const _0x256298 of _0x3b20de['getRanges']()){for(const _0x425bdb of _0x406358){const _0xb3aebd=_0x425bdb['start']['isEqual'](_0x256298['end'])||_0x425bdb['end']['isEqual'](_0x256298['start']);if(_0xb3aebd||_0x425bdb['getIntersection'](_0x256298)){const _0xab9597=_0x425bdb['containsRange'](_0x256298)&&Gt(this['_model']['schema'],_0x256298['start'],_0x425bdb),_0x5a5887=_0x256298['containsRange'](_0x425bdb)&&Gt(this['_model']['schema'],_0x425bdb['start'],_0x256298);_0x445814['push']({'suggestion':_0x3b20de,'meta':{'isOwn':_0x54e749==_0x3b20de['author'],'isNextTo':_0xb3aebd,'isInsideObject':_0xab9597,'containsRangeInObject':_0x5a5887}}),_0x22ab95=!0x0;break;}}if(_0x22ab95)break;}}return _0x445814;}['_addSuggestionMarker'](_0x221483,_0x27c255,_0x22d4ec,_0x11b6d0,_0x59e892){this['_model']['change'](_0x263c22=>{let _0x43fd0e='suggestion:'+_0x221483+':'+_0x27c255+':'+_0x22d4ec;_0x59e892&&(_0x43fd0e=_0x43fd0e+':'+_0x59e892),_0x263c22['addMarker'](_0x43fd0e,{'range':_0x11b6d0,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x427049){const _0x50a60e=_0x427049['previous'],_0xab584=_0x427049['next'];_0x427049['previous']=null,_0x427049['next']=null,null!=_0x50a60e&&_0x50a60e['next']==_0x427049&&(_0x50a60e['next']=_0xab584),null!=_0xab584&&_0xab584['previous']==_0x427049&&(_0xab584['previous']=_0x50a60e),'ready'==this['_suggestionState']['get'](_0x427049)&&(this['_suggestionState']['set'](_0x427049,'removed'),this['fire']('suggestionUnloaded',_0x427049,_0x50a60e,_0xab584));}['_setSuggestionData'](_0x47ff26){const _0x33c55d=_0x47ff26['id'],_0x1cd9ab=this['addSuggestionData'](_0x47ff26);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4543b6=this['editor']['plugins']['get']('PendingActions'),_0x15a699=_0x1cd9ab['hasComments'],_0x1eee43=_0x1cd9ab['subType']?_0x1cd9ab['type']+':'+_0x1cd9ab['subType']:_0x1cd9ab['type'],_0x415ad8=this['editor']['locale'],_0x551707=_0x4543b6['add'](o(_0x415ad8,'PENDING_ACTION_SUGGESTION')),_0x521d7={'id':_0x33c55d,'type':_0x1eee43,'hasComments':_0x15a699,'data':_0x47ff26['data']||null,'originalSuggestionId':_0x47ff26['originalSuggestionId']||null,'attributes':_0x1cd9ab['attributes']};this['_adapter']['addSuggestion'](_0x521d7)['then'](_0x1a6711=>{_0x1cd9ab['_saved']=!0x0,_0x4543b6['remove'](_0x551707),_0x1a6711&&_0x1a6711['createdAt']&&(this['_suggestions']['get'](_0x33c55d)['createdAt']=_0x1a6711['createdAt']);})['catch'](_0x2aeb42=>{throw _0x587c23('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1cd9ab['discard']();}),_0x1cd9ab['stopListening'](),this['_suggestions']['delete'](_0x1cd9ab['id']),this['_suggestionState']['delete'](_0x1cd9ab),_0x2aeb42;});}return _0x1cd9ab;}['_isBlockAttribute'](_0x4252ee){return this['_blockAttributeKeys']['has'](_0x4252ee);}['_updateSuggestionData'](_0x10782d,_0x3a2bef){const _0x569a40=this['editor']['plugins']['get']('PendingActions'),_0x17bb9b=this['getSuggestion'](_0x10782d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x17bb9b['_saved']){const _0x8e932=_0x569a40['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x10782d,_0x3a2bef)['then'](()=>{_0x569a40['remove'](_0x8e932);});}else _0x17bb9b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x10782d,_0x3a2bef);});}}['_getSuggestionData'](_0x28984d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x66948e('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x28984d);}['_handleNewSuggestionMarker'](_0x194308){const {id:_0x5b84ae,type:_0x14540f,subType:_0xcd2f40,authorId:_0x4717ab}=this['_splitMarkerName'](_0x194308),_0x15f7b2=this['_suggestions']['get'](_0x5b84ae)||this['_createSuggestion'](_0x14540f,_0xcd2f40,_0x5b84ae,_0x4717ab,{});switch(this['_checkSuggestionCorrectness'](_0x15f7b2,_0x14540f,_0xcd2f40,_0x4717ab),this['_suggestionState']['get'](_0x15f7b2)){case'notReady':this['_getSuggestionData'](_0x5b84ae)['then'](_0x1c0475=>{let _0x42f4fb=Promise['resolve']();_0x1c0475['hasComments']&&(_0x42f4fb=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5b84ae})),_0x42f4fb['then'](()=>{this['addSuggestionData'](_0x1c0475)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x15f7b2,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5b84ae,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x15f7b2,'ready'),this['fire']('suggestionLoaded',_0x15f7b2);break;case'ready':this['fire']('suggestionChanged',_0x15f7b2);}return _0x15f7b2['addMarkerName'](_0x194308),_0x15f7b2;}['_refreshSuggestionsChain'](_0x27acc7){const _0x4e2858=Array['from'](_0x27acc7),_0xb9cb75=_0x4e2858['filter'](_0x70135c=>'attribute'==_0x70135c['type']);this['_refreshAttributeSuggestionsChain'](_0xb9cb75);const _0x3acc86=_0x4e2858['filter'](_0x71186b=>!_0x71186b['isMultiRange']&&'attribute'!=_0x71186b['type']),_0x5bc068=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x810deb=>!_0x810deb['isMultiRange']&&'attribute'!=_0x810deb['type']),_0x2c3730=_0x5bc068['filter'](_0xdbec75=>!_0x27acc7['has'](_0xdbec75)),_0x56b098=new Map(_0x5bc068['map'](_0xc47c49=>[_0xc47c49,this['_suggestionFactory']['getSuggestionCallback'](_0xc47c49['type'],_0xc47c49['subType'],'chain')])),_0x61a7bb=new Map(_0x5bc068['map'](_0x566044=>[_0x566044,_0x566044['getFirstRange']()])),_0x2db38e=new Set(),_0x2bbbf6=new Set();for(let _0x84b5ff=0x0;_0x84b5ff<_0x3acc86['length'];_0x84b5ff++)_0xbccf09(_0x3acc86[_0x84b5ff],_0x3acc86,_0x84b5ff+0x1);for(let _0x126ec9=0x0;_0x126ec9<_0x3acc86['length'];_0x126ec9++)_0xbccf09(_0x3acc86[_0x126ec9],_0x2c3730,0x0);const _0x3557d9=new Set();for(let _0x120091=0x0;_0x120091<_0x3acc86['length'];_0x120091++){const _0x46881f=_0x3acc86[_0x120091];!_0x2bbbf6['has'](_0x46881f)&&_0x46881f['previous']&&(_0x3557d9['add'](_0x46881f['previous']),_0x46881f['previous']['next']===_0x46881f&&(_0x46881f['previous']['next']=null),_0x46881f['previous']=null),!_0x2db38e['has'](_0x46881f)&&_0x46881f['next']&&(_0x3557d9['add'](_0x46881f['next']),_0x46881f['next']['previous']===_0x46881f&&(_0x46881f['next']['previous']=null),_0x46881f['next']=null);}function _0xbccf09(_0x71e5,_0x1b929e,_0x4b9b8d){for(let _0x922d0e=_0x4b9b8d;_0x922d0e<_0x1b929e['length'];_0x922d0e++){const _0x399964=_0x50a2f0(_0x71e5,_0x1b929e[_0x922d0e]);_0x399964&&(_0x399964[0x0]['next']=_0x399964[0x1],_0x399964[0x1]['previous']=_0x399964[0x0],_0x2db38e['add'](_0x399964[0x0]),_0x2bbbf6['add'](_0x399964[0x1]));}}function _0x50a2f0(_0x34902d,_0x356af8){if(_0x34902d['author']['id']!==_0x356af8['author']['id'])return null;const _0x6939cb=_0x56b098['get'](_0x34902d)(_0x34902d,_0x356af8,_0x61a7bb['get'](_0x34902d),_0x61a7bb['get'](_0x356af8));if(!_0x6939cb)return null;return _0x56b098['get'](_0x356af8)(_0x34902d,_0x356af8,_0x61a7bb['get'](_0x34902d),_0x61a7bb['get'](_0x356af8))?_0x6939cb[0x1]['commentThread']&&_0x6939cb[0x1]['commentThread']['length']?null:_0x6939cb:null;}_0x3557d9['size']&&this['_refreshSuggestionsChain'](_0x3557d9);}['_refreshAttributeSuggestionsChain'](_0x51a178){if(0x0==_0x51a178['length'])return;const _0x40122a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12c207=>'attribute'==_0x12c207['type']&&_0x12c207['_isDataLoaded']),_0x2aff16=[],_0x204e0a=new Map();for(const _0x42a0d3 of _0x40122a){const _0x138227=_0xfe91ca(_0x42a0d3['attributes']);_0x204e0a['has'](_0x138227)||(_0x204e0a['set'](_0x138227,_0x2aff16['length']),_0x2aff16['push']([]));const _0x59c21d=_0x204e0a['get'](_0x138227);_0x2aff16[_0x59c21d]['push'](_0x42a0d3);}!(function(){_0x2aff16['sort']((_0x3ff5ae,_0x1d9297)=>{const _0x356f96=_0x3ff5ae[0x0]['createdAt'],_0x35c7f3=_0x1d9297[0x0]['createdAt'];return _0x356f96==_0x35c7f3?_0x3ff5ae[0x0]['attributes']['groupId']<_0x1d9297[0x0]['attributes']['groupId']?-0x1:0x1:_0x356f96<_0x35c7f3?-0x1:0x1;});for(const _0x5111a6 of _0x2aff16)_0x5111a6['sort']((_0x5bd5f7,_0x521371)=>_0x5bd5f7['id']<_0x521371['id']?-0x1:0x1);}());for(let _0x300eb2=0x0;_0x300eb2<_0x2aff16['length'];_0x300eb2++){if(0x0==_0x2aff16[_0x300eb2]['length'])continue;const _0xdf21bf=[];for(let _0x1b71bd=_0x300eb2+0x1;_0x1b71bd<_0x2aff16['length'];_0x1b71bd++)0x0!=_0x2aff16[_0x1b71bd]['length']&&_0x33faa6(_0x2aff16[_0x300eb2],_0x2aff16[_0x1b71bd])&&_0xdf21bf['push'](_0x1b71bd);for(const _0x2aec6d of _0xdf21bf)_0x2aff16[_0x300eb2]=_0x2aff16[_0x300eb2]['concat'](_0x2aff16[_0x2aec6d]),_0x2aff16[_0x2aec6d]=[];}for(const _0x20f116 of _0x2aff16)for(let _0x31e3be=0x0;_0x31e3be<_0x20f116['length'];_0x31e3be++){const _0xdc744c=_0x20f116[_0x31e3be+0x1]||null;_0x20f116[_0x31e3be]['next']!==_0xdc744c&&(_0x20f116[_0x31e3be]['next']=_0xdc744c);}for(const _0x2d1308 of _0x2aff16)for(let _0x38fc3a=0x0;_0x38fc3a<_0x2d1308['length'];_0x38fc3a++){const _0x1a9184=_0x2d1308[_0x38fc3a-0x1]||null;_0x2d1308[_0x38fc3a]['previous']!==_0x1a9184&&(_0x2d1308[_0x38fc3a]['previous']=_0x1a9184);}function _0x33faa6(_0x60d00c,_0x18e057){if(_0x60d00c[0x0]['attributes']['groupId']!==_0x18e057[0x0]['attributes']['groupId']&&_0x60d00c[0x0]['author']!==_0x18e057[0x0]['author'])return!0x1;if(!function(_0x163de2,_0x2fde59){if(!_0x163de2['hasComments']&&!_0x2fde59['hasComments'])return!0x0;if(_0x163de2['hasComments']&&_0x2fde59['hasComments'])return!0x1;if(_0x163de2['hasComments']&&_0x2fde59['createdAt']<_0x163de2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2fde59['hasComments']&&_0x163de2['createdAt']<_0x2fde59['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x60d00c[0x0],_0x18e057[0x0]))return!0x1;const _0x49ccba=Vt(_0x60d00c[0x0]['attributes'],'groupId'),_0x173dc6=Vt(_0x18e057[0x0]['attributes'],'groupId');if(!_0x9ecbe3(_0x49ccba,_0x173dc6))return!0x1;return!!_0x60d00c['every'](_0x24a92e=>_0x18e057['some'](_0x21192c=>_0x24a92e['getFirstRange']()['isEqual'](_0x21192c['getFirstRange']())))&&_0x18e057['every'](_0x448d55=>_0x60d00c['some'](_0x11ec7b=>_0x448d55['getFirstRange']()['isEqual'](_0x11ec7b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x29b3f9){const _0x2eb682=Array['from'](_0x29b3f9),_0xa5a93a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2dfdec=_0xa5a93a['filter'](_0x4bd16f=>!_0x29b3f9['has'](_0x4bd16f)),_0x7ff360=new Map(_0x2eb682['map'](_0xf3885b=>[_0xf3885b,this['_suggestionFactory']['getSuggestionCallback'](_0xf3885b['type'],_0xf3885b['subType'],'join')])),_0x2eb2d7=new Map(_0xa5a93a['map'](_0x3b9810=>[_0x3b9810,_0x3b9810['getRanges']()]));for(let _0x3cd3aa=0x0;_0x3cd3aa<_0x2eb682['length'];_0x3cd3aa++){if(_0xb1ec26(this,_0x2eb682[_0x3cd3aa],_0x2eb682,_0x3cd3aa+0x1))return!0x0;}for(let _0x3f2217=0x0;_0x3f2217<_0x2eb682['length'];_0x3f2217++){if(_0xb1ec26(this,_0x2eb682[_0x3f2217],_0x2dfdec,0x0))return!0x0;}return!0x1;function _0xb1ec26(_0x480e85,_0x16b44b,_0x84dc9b,_0x474e5c){for(let _0x1d9b4b=_0x474e5c;_0x1d9b4b<_0x84dc9b['length'];_0x1d9b4b++){const _0x59e580=_0x84dc9b[_0x1d9b4b];if(_0x59e580['type']!==_0x16b44b['type']||_0x59e580['author']['id']!==_0x16b44b['author']['id']||_0x59e580['subType']!==_0x16b44b['subType'])continue;if(!Wt(_0x16b44b,_0x59e580))continue;if('attribute'==_0x16b44b['type']&&_0x16b44b['data']['oldValue']!=_0x59e580['data']['oldValue'])continue;if('attribute'==_0x16b44b['type']&&_0x480e85['_isBlockAttribute'](_0x16b44b['data']['key']))continue;if('formatBlock'==_0x16b44b['type']){const _0x55f494=_0x480e85['editor']['model'],_0x4c9111=_0x16b44b['getContainedElement']();if(_0x4c9111&&(_0x55f494['schema']['isObject'](_0x4c9111)||_0x55f494['schema']['isLimit'](_0x4c9111)))continue;}const _0x2c46c4=_0x7ff360['get'](_0x16b44b),_0x35d4bd=_0x2eb2d7['get'](_0x16b44b),_0x3639e7=_0x2eb2d7['get'](_0x59e580),_0x252031=_0x16b44b['commentThread']&&_0x16b44b['commentThread']['length'],_0x34c776=_0x59e580['commentThread']&&_0x59e580['commentThread']['length'];if(!_0x252031&&_0x2c46c4(_0x3639e7,_0x35d4bd))return _0x480e85['_joinSuggestions'](_0x59e580,_0x16b44b),_0x2eb2d7['delete'](_0x16b44b),!0x0;if(!_0x34c776&&_0x2c46c4(_0x35d4bd,_0x3639e7))return _0x480e85['_joinSuggestions'](_0x16b44b,_0x59e580),_0x2eb2d7['delete'](_0x59e580),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3c5b57,_0x262fc3){if(_0x3c5b57['isMultiRange']){for(const _0x37c2f0 of _0x262fc3['getRanges']())_0x3c5b57['addRange'](_0x37c2f0);}else{const _0xe8c672=_0x262fc3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3c5b57,this['_model']['createRange'](_0x3c5b57['getFirstRange']()['start'],_0xe8c672));}_0x262fc3['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5b4081,_0x10340d,_0x234bba){const _0x528fdd=_0x5b4081['startsWith']('format')||_0x5b4081['startsWith']('attribute')?'FORMATTING':_0x5b4081['toUpperCase']();return o(this['editor']['locale'],_0x10340d+'_'+_0x528fdd+'_SUGGESTION_ANNOUNCEMENT',_0x234bba);}['_initAriaMarkerChangeAnnouncements'](){const _0x3a7936=this['editor'];if(!_0x3a7936['ui'])return;const {ariaLiveAnnouncer:_0x5e5579}=_0x3a7936['ui'];_0x290910(this['_model'],({left:_0x120326,entered:_0x35ad75})=>{for(const _0x16e538 of _0x120326){const {group:_0xcdc153,type:_0x15f216}=this['_splitMarkerName'](_0x16e538['name']);if('suggestion'===_0xcdc153){_0x5e5579['announce'](this['_getMarkerAnnouncementText'](_0x15f216,'LEAVE'));break;}}for(const _0x873d4 of _0x35ad75){const {group:_0x279560,type:_0x49ff73}=this['_splitMarkerName'](_0x873d4['name']);if('suggestion'===_0x279560){_0x5e5579['announce'](this['_getMarkerAnnouncementText'](_0x49ff73,'ENTER',_0x1c38e3(_0x106e8f)));break;}}});}['_processAttributeChanges'](_0x4c1c56){if(this['_recordAttributeSuggestions'])return!0x1;const _0x177a43=this['editor'],_0x333e6b=_0x177a43['model']['document']['differ']['getChanges']();if(0x0==_0x333e6b['length'])return!0x1;const _0x40dd64=[],_0x108537=_0x333e6b['filter'](_0x5cdcbe=>'attribute'==_0x5cdcbe['type']),_0x59c71b=_0x333e6b['filter'](_0x2c0a3b=>'insert'==_0x2c0a3b['type']&&'$text'!=_0x2c0a3b['name']),_0x1c267e=_0x333e6b['filter'](_0x37465c=>'remove'==_0x37465c['type']&&'$text'!=_0x37465c['name']);for(const _0x4352a6 of _0x108537)_0x40dd64['push']({'key':_0x4352a6['attributeKey'],'newValue':_0x4352a6['attributeNewValue'],'oldValue':_0x4352a6['attributeOldValue'],'range':qt(_0x4352a6['range'],_0x177a43['model'])});for(const _0x960959 of _0x59c71b){const _0x48d152=_0x1c267e['find'](_0x37b72e=>_0x37b72e['position']['isEqual'](_0x960959['position']));_0x48d152&&_0x40dd64['push']({'key':m,'newValue':_0x960959['name'],'oldValue':_0x48d152['name'],'range':_0x177a43['model']['createRangeOn'](_0x960959['position']['nodeAfter'])});}return 0x0!=_0x40dd64['length']&&this['_reduceExistingSuggestions'](_0x4c1c56,_0x40dd64);}['_processAttributeSuggestions'](_0x2ec258){let _0x144a5a=!0x1;const _0x13bc5b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x55b471=>_0x55b471['data']['newRange']&&_0x55b471['name']['startsWith']('suggestion:attribute:'));for(const _0x3c95bc of _0x13bc5b){const {subType:_0x332110,id:_0x59db04}=this['_splitMarkerName'](_0x3c95bc['name']),_0x2740ed=_0x332110['split']('|')[0x0];for(const _0x5e7e5d of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5e7e5d['id']!=_0x59db04&&'attribute'==_0x5e7e5d['type']&&_0x5e7e5d['data']&&_0x5e7e5d['data']['key']==_0x2740ed&&_0x5e7e5d['getFirstRange']()['isIntersecting'](_0x3c95bc['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5e7e5d,_0x3c95bc['data']['newRange'],_0x2ec258),_0x144a5a=!0x0);}return _0x144a5a;}['_recordAttributeChanges'](_0x29a1eb){this['_recordAttributeSuggestions']=!0x0,_0x29a1eb();}['_isRegisteredAttribute'](_0x551b74){const _0x28848d=this['_isBlockAttribute'](_0x551b74),_0x4d4903=this['_inlineAttributeKeys']['has'](_0x551b74);return _0x28848d||_0x4d4903;}['_reduceExistingSuggestions'](_0x28fe72,_0x9c631e){if(0x0==_0x9c631e['length'])return!0x1;let _0x5d27e8=!0x1;for(const _0x2fc2a9 of _0x9c631e){const _0x47e705=this['_findSuggestions'](_0x2fc2a9['range'],'attribute')['filter'](_0x5c7460=>!_0x5c7460['meta']['isNextTo'])['map'](_0x1836e2=>_0x1836e2['suggestion']),_0x38ba05=_0xfe91ca({'newValue':_0x2fc2a9['newValue']});_0x47e705['filter'](_0x4bf614=>{const [_0x3389a0,_0x56294f]=_0x4bf614['subType']['split']('|');return _0x3389a0==_0x2fc2a9['key']&&_0x56294f!=_0x38ba05;})['forEach'](_0x23f098=>{this['_reduceSuggestionAttributeRange'](_0x23f098,_0x2fc2a9['range'],_0x28fe72),_0x5d27e8=!0x0;});}return _0x5d27e8;}['_reduceSuggestionAttributeRange'](_0x115b81,_0x2d34f1,_0x511aa1){const _0x1996fa=_0x115b81['getFirstRange']()['getDifference'](_0x2d34f1);0x0!==_0x1996fa['length']?0x1!==_0x1996fa['length']?this['_breakSuggestionMarker'](_0x115b81,_0x2d34f1['start'],_0x2d34f1['end']):this['_setSuggestionRange'](_0x115b81,_0x1996fa[0x0]):_0x511aa1['removeMarker'](_0x115b81['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2b2ee0){this['_editor']=_0x2b2ee0,this['_model']=_0x2b2ee0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x81bde4,_0x37aab0,_0x30a9fd,_0x398c9b,_0x424cfb,_0x555430){return new u(this['_model'],{'type':_0x81bde4,'subType':_0x37aab0,'id':_0x30a9fd,'author':_0x398c9b,'creator':_0x398c9b,'attributes':_0x424cfb,'onAttributesChange':_0x555430,'onAccept':(..._0x4409e2)=>this['getSuggestionCallback'](_0x81bde4,_0x37aab0,'accept')(..._0x4409e2),'onDiscard':(..._0x33b81d)=>this['getSuggestionCallback'](_0x81bde4,_0x37aab0,'discard')(..._0x33b81d)});}['registerCustomCallback'](_0x181f9e,_0x5bd1a6,_0x13c667,_0x2e7f78){const _0x218abb=_0x181f9e+':'+_0x5bd1a6+':'+_0x13c667;this['_customCallbacks']['set'](_0x218abb,_0x2e7f78);}['getSuggestionCallback'](_0x12bc9d,_0x5af09b,_0x19944a){const _0x248951=_0x12bc9d+':'+_0x5af09b+':'+_0x19944a;return this['_customCallbacks']['get'](_0x248951)||this['_defaultCallbacks']['get'](_0x12bc9d+':'+_0x19944a);}['_registerDefaultCallbacks'](){const _0x45c6d4=()=>!0x1,_0x5d54a0=_0x486112=>{_0x486112['sort']((_0x42d2d1,_0x46f827)=>_0x42d2d1['start']['isBefore'](_0x46f827['start'])?0x1:-0x1),this['_model']['change'](_0x8b0480=>{for(const _0x52f42a of _0x486112){let _0x8b937;_0x8b937=_0x52f42a['end']['isAtEnd']&&_0x52f42a['end']['parent']==_0x52f42a['start']['nodeAfter']?_0x8b0480['createSelection'](_0x52f42a['start']['nodeAfter'],'on'):_0x8b0480['createSelection'](_0x52f42a),this['_model']['deleteContent'](_0x8b937,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x6a48aa=(_0x3326f3,_0x53ad2d)=>{_0x53ad2d&&this['_model']['change'](_0x8b7048=>{const {commandName:_0x3c2859,commandParams:_0x5d80e3=[]}=_0x53ad2d,_0x330729=_0x3326f3['map'](_0x1a842b=>(Ft(_0x1a842b)&&(_0x1a842b=this['_model']['createRange'](_0x1a842b['end'])),_0x1a842b))['filter'](_0x4bd361=>'$graveyard'!==_0x4bd361['root']['rootName']);if(_0x330729['length']<0x1)return;const _0x208398=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4ebdd2=>_0x3af705['fromRange'](_0x4ebdd2));_0x8b7048['setSelection'](_0x330729);for(const _0x18ac93 of this['_editor']['commands']['commands']())_0x18ac93['refresh']();_0x5d80e3['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3c2859,..._0x5d80e3);const _0x680e61=_0x208398['filter'](_0x4bdead=>'$graveyard'!=_0x4bdead['root']['rootName']);_0x680e61['length']>0x0&&_0x8b7048['setSelection'](_0x680e61);for(const _0x124097 of _0x208398)_0x124097['detach']();});},_0x1d0916=(_0x428337,_0x26d98b)=>0x1==_0x428337['length']&&0x1==_0x26d98b['length']&&_0x428337[0x0]['end']['isEqual'](_0x26d98b[0x0]['start']),_0x1ff46b=(_0xbec95f,_0x265f9a,_0xaa99ba,_0x26089e)=>Kt(_0xbec95f,_0x265f9a,_0xaa99ba,_0x26089e)?[_0xbec95f,_0x265f9a]:Kt(_0x265f9a,_0xbec95f,_0x26089e,_0xaa99ba)?[_0x265f9a,_0xbec95f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x45c6d4),this['_defaultCallbacks']['set']('insertion:discard',_0x5d54a0),this['_defaultCallbacks']['set']('insertion:join',_0x1d0916),this['_defaultCallbacks']['set']('insertion:chain',_0x1ff46b),this['_defaultCallbacks']['set']('deletion:accept',_0x5d54a0),this['_defaultCallbacks']['set']('deletion:discard',_0x45c6d4),this['_defaultCallbacks']['set']('deletion:join',_0x1d0916),this['_defaultCallbacks']['set']('deletion:chain',_0x1ff46b),this['_defaultCallbacks']['set']('formatInline:accept',_0x6a48aa),this['_defaultCallbacks']['set']('formatInline:discard',_0x45c6d4),this['_defaultCallbacks']['set']('formatInline:join',_0x1d0916),this['_defaultCallbacks']['set']('formatInline:chain',_0x45c6d4),this['_defaultCallbacks']['set']('formatBlock:accept',_0x6a48aa),this['_defaultCallbacks']['set']('formatBlock:discard',_0x45c6d4),this['_defaultCallbacks']['set']('formatBlock:join',_0x1d0916),this['_defaultCallbacks']['set']('formatBlock:chain',_0x45c6d4),this['_defaultCallbacks']['set']('attribute:accept',_0x45c6d4),this['_defaultCallbacks']['set']('attribute:discard',(_0x161ced,_0x22b7af)=>{if(!_0x22b7af)return;const _0x37dae=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5a0994=>{if(_0x22b7af['key']==m)for(const _0x4e3e89 of _0x161ced){const _0x2fd104=_0x4e3e89['start']['nodeAfter'],_0x5725af=_0x22b7af['oldValue'];_0x5a0994['rename'](_0x2fd104,_0x5725af);}else{if(_0x37dae['_isBlockAttribute'](_0x22b7af['key'])){for(const _0x263cb2 of _0x161ced)void 0x0!==_0x22b7af['oldValue']?_0x5a0994['setAttribute'](_0x22b7af['key'],_0x22b7af['oldValue'],_0x263cb2['start']['nodeAfter']):_0x5a0994['removeAttribute'](_0x22b7af['key'],_0x263cb2['start']['nodeAfter']);}else{for(const _0x27aa4d of _0x161ced)_0x22b7af['oldValue']?_0x5a0994['setAttribute'](_0x22b7af['key'],_0x22b7af['oldValue'],_0x27aa4d):_0x5a0994['removeAttribute'](_0x22b7af['key'],_0x27aa4d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1d0916);}}function Gt(_0x44bf4d,_0x3609b1,_0x35cc60){for(const _0x186c6b of _0x3609b1['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x186c6b['root']==_0x186c6b)return!0x1;if(!_0x35cc60['containsItem'](_0x186c6b))return!0x1;if(_0x44bf4d['isObject'](_0x186c6b)||_0x44bf4d['isLimit'](_0x186c6b))return!0x0;}return!0x1;}function Ft(_0x809f28){return _0x809f28['end']['parent']==_0x809f28['start']['nodeAfter']&&_0x809f28['end']['isAtStart'];}function Lt(_0x24b1ba,_0x4e5315,_0x39a7d6,_0x112385){const _0x1c44dc=_0x26ce11=>!_0x26ce11['item']['is']('$textProxy')&&!_0x112385['isObject'](_0x26ce11['item']),_0x168f68=_0x24b1ba['start']['getLastMatchingPosition'](_0x1c44dc),_0x22950d=_0x24b1ba['end']['getLastMatchingPosition'](_0x1c44dc,{'direction':'backward'});return(!_0x24b1ba['start']['isEqual'](_0x168f68)||!_0x24b1ba['end']['isEqual'](_0x22950d))&&(_0x168f68['isBefore'](_0x22950d)?_0x39a7d6['updateMarker'](_0x4e5315,{'range':_0x39a7d6['createRange'](_0x168f68,_0x22950d)}):_0x39a7d6['removeMarker'](_0x4e5315),!0x0);}function Jt(_0x56df59){return _0xfe91ca(_0x56df59);}function Ht(_0x2b5b45){const _0x80a6a=_0x2b5b45['start']['nodeAfter'];return _0x80a6a&&_0x80a6a['is']('element');}function qt(_0x270d83,_0x189396){return null==_0x270d83['end']['nodeBefore']&&_0x270d83['end']['parent']==_0x270d83['start']['nodeAfter']?zt(_0x270d83['start']['nodeAfter'],_0x189396):_0x270d83;}function zt(_0x5cd8ae,_0x46e25d){const _0x1c7e66=_0x46e25d['schema']['isObject'](_0x5cd8ae)||_0x46e25d['schema']['isSelectable'](_0x5cd8ae);return _0x46e25d['createRange'](_0x46e25d['createPositionAt'](_0x5cd8ae,'before'),_0x1c7e66?_0x46e25d['createPositionAfter'](_0x5cd8ae):_0x46e25d['createPositionAt'](_0x5cd8ae,'end'));}function Kt(_0x1edfc5,_0x1a2ba6,_0x5c9ad1,_0x30d93a){return!!Wt(_0x1edfc5,_0x1a2ba6)&&_0x5c9ad1['end']['isEqual'](_0x30d93a['start']);}function Wt(_0x4118f1,_0x240be8){if(!_0x4118f1['_isDataLoaded']||!_0x240be8['_isDataLoaded'])return!0x1;const _0x569df6=new Set(Object['keys'](_0x4118f1['attributes'])),_0x5de922=new Set(Object['keys'](_0x240be8['attributes']));if(_0x569df6['delete']('groupId'),_0x5de922['delete']('groupId'),0x0==_0x569df6['size']&&0x0==_0x5de922['size'])return!0x0;if(_0x569df6['size']!=_0x5de922['size'])return!0x1;const _0x3c8592={..._0x4118f1['attributes']},_0x6658a7={..._0x240be8['attributes']};return delete _0x3c8592['groupId'],delete _0x6658a7['groupId'],JSON['stringify'](_0x3c8592)==JSON['stringify'](_0x6658a7);}function Qt(_0x46b788,_0x1ad83f){const _0x2f2683=Xt(_0x46b788['attributes']),_0x2d2ce5=Xt(_0x1ad83f);if(!_0x46b788['_isDataLoaded'])return!0x1;for(const _0x8ac2d1 of Object['keys'](_0x2d2ce5))if(!_0x9ecbe3(_0x2f2683[_0x8ac2d1],_0x2d2ce5[_0x8ac2d1]))return!0x1;return!0x0;}function Xt(_0x487e60){const _0x21cce3=Object['assign']({},_0x487e60);return delete _0x21cce3['skipNestingCheck'],delete _0x21cce3['tablePasteChainId'],_0x21cce3;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x46dd46(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x46e56d,_0x2d3f97,_0x5e3516,_0x366d07){super(),this['model']=_0x2d3f97,this['view']=_0x5e3516,this['commentThreadController']=_0x366d07,this['_editor']=_0x46e56d,this['_acceptCommand']=_0x46e56d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x46e56d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x70b851,_0xe157b3)=>_0x70b851||_0xe157b3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xfce79c=>_0xfce79c&&this['_editor']['model']['canEditAt'](_0x2d3f97['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1e4615=>_0x1e4615&&this['_editor']['model']['canEditAt'](_0x2d3f97['getRanges']())),this['_pendingAction']=null,_0x5e3516['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5e3516,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5e3516,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5e3516,'change:isDirty',()=>{_0x5e3516['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 _0x1011ac=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1011ac);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x17695c{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x454257,_0x56021b,_0x4fcf00,_0x17ffa2){super(_0x454257),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3850f1(_0x454257,o(_0x454257,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x56021b['authoredAt']),this['bind']('authoredAt')['to'](_0x56021b),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',_0x56021b,'authoredAt',this,'descriptionParts',(_0x30861e,_0x2782e4,_0x4f5baa)=>{const _0x5a6240=_0x4f5baa['map'](_0x46b630=>cs(_0x46b630['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x30861e-0x1,_0x56021b['author']['name'],_0x2782e4?_0x17ffa2['formatDateTime'](_0x2782e4):'',new DOMParser()['parseFromString'](_0x5a6240,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3546f7(),this['focusTracker']=new _0x113f71(),this['keystrokes']=new _0x15913d(),this['focusCycler']=new _0x347878({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4412a9=>_0x4412a9['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x56021b,this['_localUser']=_0x4fcf00,this['_config']=_0x17ffa2,_0x17ffa2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4b92eb(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xc1d2b}=this['_config'];this['commentsListView']=new _0xc1d2b(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',_0x1de6e4=>_0x1de6e4+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x54f89f,_0x48af1c)=>_0x54f89f||!!_0x48af1c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x531e45}=this['_config'],_0x4369f7=new _0x531e45(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2aa3fe=_0x4369f7['commentInputView'];return _0x4369f7['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2aa3fe,'value',(_0x3b122d,_0x3e4e2e,_0x19ef77)=>!!_0x19ef77||_0x3b122d&&!_0x3e4e2e),_0x2aa3fe['on']('submit',(_0xe405f7,_0x4babf4)=>{this['fire']('addComment',_0x4babf4),_0x2aa3fe['editor']['setData']('');}),_0x2aa3fe['on']('cancel',()=>this['focus']()),_0x2aa3fe['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4369f7;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0xf17fa6,_0x3f26ff,_0x5449e8,_0x4efcf6){super(_0xf17fa6,_0x3f26ff,_0x5449e8,_0x4efcf6),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2cf024=>_0x2cf024&&_0x2cf024[0x0]?_0x2cf024[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x297b9c,_0x36235a)=>{let _0x3e193f='';for(const _0x23549e of _0x297b9c)_0x3e193f+='<p>'+cs(_0x23549e['content'],_0x23549e['color'])+'</p>';return _0x36235a?_0x3e193f:_0x45a2b6(_0x3e193f,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4efcf6['SuggestionView'](_0xf17fa6,_0x3f26ff,{'formatDateTime':_0x4efcf6['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x354020=this['bindTemplate'],_0x24c644=[this['suggestionView']];return this['commentsListView']&&_0x24c644['push'](this['commentsListView']),this['commentThreadInputView']&&_0x24c644['push'](this['commentThreadInputView']),_0x24c644['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x354020['if']('isActive','ck-suggestion-wrapper--active'),_0x354020['to']('type',_0x3d749e=>'ck-suggestion-'+_0x3d749e),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':_0x354020['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x24c644};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class fe extends _0x17695c{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1f123f,_0x29aab2,_0x506cb1){super(_0x1f123f),this['_model']=_0x29aab2,this['_config']=_0x506cb1,this['set']('description',''),this['bind']('authoredAt')['to'](_0x29aab2),this['acceptButton']=this['_createButton'](o(_0x1f123f,'Accept\x20suggestion'),_0x1e45cb['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1f123f,'Discard\x20suggestion'),_0x1e45cb['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x557fec(_0x1f123f,_0x29aab2['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3546f7([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x113f71(),this['keystrokes']=new _0x15913d(),this['focusCycler']=new _0x347878({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xb6df28=>_0xb6df28['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x475611=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x475611['innerHTML']=this['description'],this['on']('change:description',(_0x115704,_0x50df6a,_0x1a4af1)=>{_0x475611['innerHTML']=_0x1a4af1;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x180c79=this['bindTemplate'],_0x5f24ce=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x180c79['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x180c79['to']('authoredAt',_0x4ddae5=>this['_config']['formatDateTime'](_0x4ddae5))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x5f24ce['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x5f24ce}]};}['focus'](){this['element']['focus']();}['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;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0xfb9aec,_0x27d31f,_0x24e1b4,_0x566a06,_0x4f9c09){const _0x510160=new _0x4ea304(this['locale']);return _0x510160['set']({'label':_0xfb9aec,'icon':_0x27d31f,'tooltip':!0x0,'tooltipPosition':_0x4f9c09}),_0x510160['extendTemplate']({'attributes':{'class':_0x24e1b4}}),_0x510160['on']('execute',()=>{this['fire'](_0x566a06,this['_model']['id']);}),_0x510160;}['_setupKeyboardNavigation'](){const _0x50a787=this['element'];this['keystrokes']['listenTo'](_0x50a787);for(const _0x9d678a of this['focusables'])this['focusTracker']['add'](_0x9d678a['element']),this['keystrokes']['listenTo'](_0x9d678a['element']);this['keystrokes']['set']('enter',(_0x2332e7,_0x3b758f)=>{_0x50a787===_0x2332e7['target']&&(this['focusCycler']['focusFirst'](),_0x3b758f());}),this['keystrokes']['set']('esc',(_0x478bc1,_0x1c71cf)=>{_0x50a787!==_0x478bc1['target']&&(this['focus'](),_0x1c71cf());});}}var we='<!--\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-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x7c1c66{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x429471,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c4f84){super(_0x3c4f84),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x49cfe0=this['editor']['config'];_0x49cfe0['define']('trackChanges.SuggestionThreadView',pe),_0x49cfe0['define']('trackChanges.SuggestionView',fe),_0x49cfe0['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x49cfe0['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x495328,_0x135f5a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x39193f,_0x5a4d21]of this['_handleControllerBuffer']){const _0x366254=this['_suggestionToController']['has'](_0x39193f);_0x366254||_0x5a4d21?_0x366254&&_0x5a4d21&&this['_destroyController'](_0x39193f):this['_initializeController'](_0x39193f);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x495328,_0x135f5a);}['init'](){const _0x59b36b=this['editor'],_0x458024=_0x59b36b['plugins']['get']('TrackChangesEditing'),_0x376da8=_0x59b36b['plugins']['get']('Annotations'),_0x526563=_0x59b36b['plugins']['get']('EditorAnnotations'),_0x2e6341=_0x59b36b['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x526563['addSourceCollector'](()=>{const _0x32569f=[];for(const [_0x35ba23,_0x551817]of Array['from'](this['_suggestionToController'])){const _0x2b6646=_0x35ba23['getAllAdjacentSuggestions'](),_0x2b0569=[];for(const _0x7c29d2 of _0x2b6646){if(!_0x7c29d2['isInContent'])continue;if(_0x7c29d2['isMultiRange']){_0x2b0569['push'](..._0x7c29d2['getRanges']());continue;}const _0x29943d=_0x7c29d2['getFirstRange']();if(_0x2b0569['length']>0x0){const _0x38b613=_0x2b0569[0x0]['getJoined'](_0x29943d);if(_0x38b613){_0x2b0569[0x0]=_0x38b613;continue;}}_0x2b0569['push'](_0x29943d);}_0x32569f['push']([_0x551817['view'],_0x2b0569]);}return _0x32569f;}),this['listenTo'](_0x458024,'suggestionLoaded',(_0xe02cdf,_0x8db4de)=>{this['listenTo'](_0x8db4de,'change:previous',(_0xd03c22,_0x1b45f9,_0x30ef88,_0x5b7d11)=>{_0x8db4de['isInContent']&&(null==_0x30ef88?(this['_updateController'](_0x5b7d11['head']),this['_handleSuggestionControllerDelayed'](_0x8db4de,!0x1)):(this['_updateController'](_0x30ef88['head']),null==_0x5b7d11&&this['_handleSuggestionControllerDelayed'](_0x8db4de,!0x0)));}),null!==_0x8db4de['previous']?this['_updateController'](_0x8db4de['head']):this['_handleSuggestionControllerDelayed'](_0x8db4de,!0x1);}),this['listenTo'](_0x458024,'suggestionUnloaded',(_0x3d72f3,_0x4d915d,_0xa09f88)=>{this['stopListening'](_0x4d915d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4d915d),this['_suggestionToController']['has'](_0x4d915d)&&this['_destroyController'](_0x4d915d),_0xa09f88&&this['_updateController'](_0xa09f88['head']);}),this['listenTo'](_0x458024,'suggestionChanged',(_0x3e561e,_0xe76c32)=>{this['_updateController'](_0xe76c32);}),this['listenTo'](_0x376da8,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2e6341,'addComment',(_0x4a0810,{threadId:_0x48b2c4,isFromAdapter:_0x4fdb38})=>{if(_0x4fdb38||!_0x458024['hasSuggestion'](_0x48b2c4))return;const _0xf96c44=_0x458024['getSuggestion'](_0x48b2c4);this['_suggestionToController']['get'](_0xf96c44)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xb3da69=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x318756;for(const _0x271068 in _0xb3da69){const _0x3f3bce=_0x271068,_0xf37b90=_0xb3da69[_0x3f3bce];if('trackChangesLicenseKeyValid'==_0xf37b90||'trackChangesLicenseKeyInvalid'==_0xf37b90||'trackChangesLicenseKeyExpired'==_0xf37b90||'trackChangesLicenseKeyDomainLimit'==_0xf37b90||'trackChangesLicenseKeyNotAllowed'==_0xf37b90||'trackChangesLicenseKeyEvaluationLimit'==_0xf37b90||'trackChangesLicenseKeyTrialLimit'==_0xf37b90||'trackChangesLicenseKeyUsageLimit'==_0xf37b90){delete _0xb3da69[_0x3f3bce],_0x318756=_0xf37b90,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x318756&&_0xb3da69['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x318756&&_0xb3da69['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x318756&&_0xb3da69['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x318756&&_0xb3da69['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x318756&&_0xb3da69['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x318756&&_0xb3da69['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x318756&&_0xb3da69['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x349fe3=this['editor']['plugins']['get']('Annotations'),_0x54834f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42be30=Array['from'](_0x349fe3['activeAnnotations'],_0x3ca752=>_0x3ca752['innerView'])['filter'](_0x496769=>this['_viewToController']['has'](_0x496769)),_0x629aa9=[];for(const _0x16dc09 of _0x42be30){const _0x125fba=this['_viewToController']['get'](_0x16dc09)['model']['getAllAdjacentSuggestions']();_0x629aa9['push'](..._0x125fba['reduce']((_0x3b7d4,_0x586919)=>[..._0x3b7d4,..._0x586919['getMarkerNames']()],[]));}_0x54834f['activeMarkers']=_0x629aa9;}['_addUIComponentsToFactory'](){const _0x1716a1=this['editor'],_0x97ebd1=_0x1716a1['locale'],_0x2a28ed=o(_0x97ebd1,'Track\x20changes'),_0x20793f=new _0x1b3c40([{'type':'switchbutton','model':new _0x1cd12d({'withText':!0x0,'isToggleable':!0x0,'label':_0x2a28ed,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1cd12d({'withText':!0x0,'label':o(_0x97ebd1,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1cd12d({'withText':!0x0,'label':o(_0x97ebd1,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1cd12d({'withText':!0x0,'label':o(_0x97ebd1,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1cd12d({'withText':!0x0,'label':o(_0x97ebd1,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1716a1['plugins']['has']('TrackChangesPreview')&&_0x20793f['addMany']([{'type':'separator'},{'type':'button','model':new _0x1cd12d({'withText':!0x0,'label':o(_0x97ebd1,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x486f62 of _0x20793f)if(ke(_0x486f62)){const _0x4c000c=_0x1716a1['commands']['get'](_0x486f62['model']['commandName']);_0x486f62['model']['bind']('isOn','isEnabled')['to'](_0x4c000c,'value','isEnabled');}_0x1716a1['ui']['componentFactory']['add']('trackChanges',_0x513f75=>this['_createToolbarButton'](_0x513f75,_0x20793f,_0x2a28ed)),_0x1716a1['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2fde7f=>this['_createMenuBarMenu'](_0x2fde7f,_0x20793f,_0x2a28ed));}['_createToolbarButton'](_0x5dd2e2,_0x311895,_0x4d1771){const _0xc5d360=_0x2bcb63(_0x5dd2e2,_0xe70475),_0x1fd558=this['editor']['commands']['get']('trackChanges');_0xc5d360['buttonView']['set']({'tooltip':_0x4d1771,'label':_0x4d1771,'icon':we}),_0xc5d360['buttonView']['bind']('isOn')['to'](_0x1fd558,'value'),_0xc5d360['buttonView']['on']('execute',()=>{_0x1fd558['execute'](),this['editor']['editing']['view']['focus']();}),_0x3e012b(_0xc5d360,_0x311895,{'role':'menu'});const _0x5b3c88=[];for(const _0x1a4e91 of _0x311895)ke(_0x1a4e91)&&_0x5b3c88['push'](this['editor']['commands']['get'](_0x1a4e91['model']['commandName']));const _0x51a2d5=_0xc5d360['buttonView'];return _0x51a2d5['actionView']['unbind']('isEnabled'),_0x51a2d5['arrowView']['unbind']('isEnabled'),_0x51a2d5['actionView']['bind']('isEnabled')['to'](_0x1fd558,'isEnabled'),_0x51a2d5['arrowView']['bind']('isEnabled')['toMany'](_0x5b3c88,'isEnabled',(..._0x5df596)=>_0x5df596['some'](_0x16beb0=>_0x16beb0)),_0xc5d360['on']('execute',_0x11ca3c=>{this['editor']['execute'](_0x11ca3c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xc5d360;}['_createMenuBarMenu'](_0x5f3fe7,_0x15ed66,_0x4a493f){const _0x31bc56=new _0x2c6bc8(_0x5f3fe7),_0x44bf38=this['editor']['commands']['get']('trackChanges');_0x31bc56['buttonView']['set']({'label':_0x4a493f,'icon':we});const _0x33e33e=new _0x1102c5(_0x5f3fe7);for(const _0x4c818f of _0x15ed66){if('separator'==_0x4c818f['type']){_0x33e33e['items']['add'](new _0x5b6d5f(_0x5f3fe7));continue;}const _0x4e2792=new _0x51c1de(_0x5f3fe7,_0x31bc56),_0x228270=new _0x2ad925(_0x5f3fe7),_0x1138f2=_0x4c818f['model'];_0x228270['bind'](...Object['keys'](_0x1138f2))['to'](_0x1138f2),_0x228270['delegate']('execute')['to'](_0x31bc56),_0x228270['on']('execute',()=>{this['editor']['execute'](_0x1138f2['commandName']),this['editor']['editing']['view']['focus']();}),_0x4e2792['children']['add'](_0x228270),_0x33e33e['items']['add'](_0x4e2792);}return _0x31bc56['bind']('isEnabled')['to'](_0x44bf38,'isEnabled'),_0x31bc56['panelView']['children']['add'](_0x33e33e),_0x31bc56;}['_initializeController'](_0x5d9bd6){const _0x397dab=this['editor'],_0x2d3e4d=_0x397dab['config'],_0x47ff2e=_0x397dab['plugins']['get']('Annotations'),_0x2ec56c=_0x397dab['plugins']['get']('CommentsRepository'),_0xcc7261=_0x397dab['plugins']['get']('EditorAnnotations'),_0x46f5b4=_0x397dab['plugins']['get'](_0x429471)['me'],_0xec910a=_0x2d3e4d['get']('trackChanges')['SuggestionThreadView'],_0x55be49=_0x2d3e4d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x20ccb1,CommentThreadInputView:_0x234f37}=_0x397dab['plugins']['get']('CommentsUI');let _0x44ecf3,_0x4ee19d,_0x36822a;this['_annotationViews']['has'](_0x5d9bd6['id'])?(_0x4ee19d=this['_annotationViews']['get'](_0x5d9bd6['id']),_0x44ecf3=_0x4ee19d['mainView']):(_0x44ecf3=new _0xec910a(_0x397dab['locale'],_0x5d9bd6,_0x46f5b4,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2d3e4d['get']('comments.editorConfig'),'licenseKey':_0x2d3e4d['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2d3e4d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2d3e4d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2d3e4d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1e11a3(_0x2d3e4d['get']('locale')),'CommentView':_0x2d3e4d['get']('comments')['CommentView'],'CommentsListView':_0x20ccb1,'CommentThreadInputView':_0x234f37,'SuggestionView':_0x55be49}),_0x44ecf3['suggestionView']['acceptButton']['on']('execute',()=>{_0x397dab['editing']['view']['focus']();}),_0x44ecf3['suggestionView']['discardButton']['on']('execute',()=>{_0x397dab['editing']['view']['focus']();}),_0x4ee19d=_0x47ff2e['createAnnotationView'](this['editor']['locale'],_0x44ecf3),_0x4ee19d['bind']('isDirty')['to'](_0x44ecf3,'isDirty'),_0x4ee19d['bind']('length')['to'](_0x44ecf3),_0x4ee19d['bind']('type')['to'](_0x44ecf3,'type',_0x4b3d92=>'suggestion-'+_0x4b3d92),_0x44ecf3['on']('escape',()=>{_0x36822a['fire']('escape');}),this['_annotationViews']['set'](_0x5d9bd6['id'],_0x4ee19d));const _0x284533=_0x2ec56c['createCommentThreadController'](_0x5d9bd6['commentThread'],_0x44ecf3),_0xa6a8d1=new Ce(_0x397dab,_0x5d9bd6,_0x44ecf3,_0x284533),_0x85817c=_0x5d9bd6['getAllAdjacentSuggestions']()['filter'](_0x1efae3=>_0x1efae3['isInContent']);_0x44ecf3['descriptionParts']=_0x397dab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x85817c),this['_suggestionToController']['set'](_0x5d9bd6,_0xa6a8d1),this['_viewToController']['set'](_0x44ecf3,_0xa6a8d1),_0x36822a=_0x47ff2e['createAnnotation']({'view':_0x4ee19d,'target':()=>{const _0x4cdd96=[],_0x3cfd94=_0x5d9bd6['getAllAdjacentSuggestions']()['filter'](_0x5cca43=>_0x5cca43['isInContent']);for(const _0x51a4e3 of _0x3cfd94)_0x4cdd96['push'](..._0x51a4e3['getMarkers']());return _0x25ee28(_0x397dab['editing'],_0x4cdd96);},'type':()=>'suggestion-'+_0xa6a8d1['view']['type']}),_0x2ec56c['_bindAnnotationToEditors'](_0x44ecf3,_0x36822a),_0x47ff2e['add'](_0x36822a),_0xcc7261['registerAnnotation'](_0x36822a);}['_destroyController'](_0x42f048){const _0x492966=this['editor']['plugins']['get']('CommentsRepository'),_0x38c3ff=this['editor']['plugins']['get']('Annotations'),_0x17d293=this['_suggestionToController']['get'](_0x42f048),_0x694655=_0x17d293['view'],_0x299c47=_0x38c3ff['getByInnerView'](_0x694655);_0x492966['_unbindEditors'](_0x694655),_0x299c47&&_0x38c3ff['remove'](_0x299c47),this['_suggestionToController']['delete'](_0x42f048),this['_viewToController']['delete'](_0x694655),_0x17d293['destroy']();}['_updateController'](_0x18c2bc){if(!_0x18c2bc['isInContent']||!this['_suggestionToController']['has'](_0x18c2bc))return;const _0xf892a6=this['editor']['plugins']['get']('TrackChangesEditing'),_0xed45bd=this['_suggestionToController']['get'](_0x18c2bc),_0x109219=_0x18c2bc['getAllAdjacentSuggestions']();_0xed45bd['view']['descriptionParts']=_0xf892a6['descriptionFactory']['getDescriptions'](_0x109219);}['destroy'](){for(const _0x474b8c of this['_suggestionToController']['keys']())this['_destroyController'](_0x474b8c);for(const _0x11b4f6 of this['_annotationViews']['values']())_0x11b4f6['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x51a306){return'model'in _0x51a306;}class k extends _0x7c1c66{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2a7c1c){this['editor']['plugins']['get'](p)['adapter']=_0x2a7c1c;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x45e073){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x45e073);}['getSuggestions']({skipNotAttached:_0x11941e=!0x1,toJSON:_0x59287c=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x11941e,'toJSON':_0x59287c});}['getSuggestion'](_0x5d8e9a){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5d8e9a);}}const w=['Pagination'];class T extends _0x7c1c66{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xf1cdf1=this['editor'];if(_0xf1cdf1['config']['define']('trackChangesData.editorCreator',_0x3603da=>{const _0x33284f=_0xf1cdf1['model']['document']['getRootNames']()['reduce']((_0x5ac9d6,_0x3534f1)=>(_0x5ac9d6[_0x3534f1]='',_0x5ac9d6),{});return _0xf1cdf1['constructor']['create'](_0x33284f,_0x3603da);}),'function'!=typeof _0xf1cdf1['config']['get']('trackChangesData')['editorCreator'])throw new _0x66948e('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3f7f78){return N(this['editor'],!0x0,_0x3f7f78);}['getDataWithDiscardedSuggestions'](_0x541a04){return N(this['editor'],!0x1,_0x541a04);}}class D extends _0x7c1c66{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x55b107){function _0x430277(_0x5adb76){return _0x5adb76['map'](_0x4f6d67=>String['fromCharCode'](_0x4f6d67))['join']('');}super(_0x55b107),this['result']='end',_0x55b107[_0x430277([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x430277([0x76,0x69,0x65,0x77])][_0x430277([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x430277([0x61,0x75,0x74,0x6f]),_0x55b107[_0x430277([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x430277([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x430277([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x430277([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x430277([0x6f,0x6b])});}['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 Fe(_0x28ae1c){return void 0x0!==_0x28ae1c['getRootsAttributes'];}async function N(_0xf91ebe,_0x1278f0,_0xd8e371){const _0x22db54=_0x1ae42a(_0xf91ebe,w);_0x22db54['plugins']['push'](p,D),_0x22db54['rootsAttributes']=Fe(_0xf91ebe)?_0xf91ebe['getRootsAttributes']():void 0x0;const _0x36d3ed=document['createDocumentFragment'](),_0x5c568e=_0xf91ebe['config']['get']('trackChangesData')['editorCreator'],_0x25eb1d=await _0x5c568e(_0x22db54,()=>function(_0x342e23){const _0x421e2e=document['createElement']('div');return _0x342e23['appendChild'](_0x421e2e),_0x421e2e;}(_0x36d3ed));!function(_0x412807,_0x5f258e){const _0x455bed=_0x412807['model']['document']['getRootNames']()['reduce']((_0x11729c,_0x215242)=>(_0x11729c[_0x215242]=_0x412807['data']['get']({'rootName':_0x215242}),_0x11729c),{}),_0x10adef=_0x412807['plugins']['get']('Users')['users']['map'](_0x263eea=>({'id':_0x263eea['id'],'name':_0x263eea['name']})),_0x42c5f8=_0x412807['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x85b2c3=_0x412807['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xe8fcdc=_0x5f258e['plugins']['get']('Users'),_0x444945=_0x5f258e['plugins']['get']('TrackChangesEditing'),_0x3d8294=_0x5f258e['plugins']['get']('CommentsRepository');for(const _0x1ac59f of _0x3d8294['getCommentThreads']())_0x1ac59f['remove']();for(const _0xcd766a of _0x10adef)_0xe8fcdc['getUser'](_0xcd766a['id'])||_0xe8fcdc['addUser'](_0xcd766a);_0xe8fcdc['me']||_0xe8fcdc['useAnonymousUser']();for(const _0x454c38 of _0x85b2c3)_0x3d8294['addCommentThread'](_0x454c38);for(const _0x5ff013 of _0x42c5f8)_0x444945['addSuggestionData'](_0x5ff013);_0x5f258e['data']['set'](_0x455bed);}(_0xf91ebe,_0x25eb1d),_0x25eb1d['execute'](_0x1278f0?'acceptAllSuggestions':'discardAllSuggestions');const _0x397cc5=Fe(_0x25eb1d)?_0x25eb1d['getFullData'](_0xd8e371):_0x25eb1d['data']['get'](_0xd8e371);return await _0x25eb1d['destroy'](),_0x397cc5;}class Me extends _0x17695c{['options'];constructor(_0x185c0a,_0x496db6){super(_0x185c0a),this['options']=_0x496db6,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x4c46e1,_0x894e1f){if(!this['element'])return;const _0x24d932=[];for(const [_0x549276,_0x4129bd]of _0x4c46e1){const _0x8716af=document['createElement']('div');_0x8716af['setAttribute']('data-ck-root-name',_0x549276),_0x8716af['className']=_0x4129bd['classes']+'\x20ck-track-changes-preview__root-container',_0x8716af['innerHTML']=_0x4129bd['content'],_0x24d932['push'](_0x8716af);}_0x894e1f(this['element'],_0x24d932),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x2887bd){super(_0x2887bd),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2bc23b=this['editor'],_0xc7bf48=_0x2bc23b['locale'],_0x5755f2=_0x2bc23b['plugins']['get']('Dialog');let _0x239751;const _0x1e3923=function(_0x468d7e){const _0xfece73={};if('editables'in _0x468d7e['ui']['view']){for(const [_0x30a06f,_0x51a73f]of Object['entries'](_0x468d7e['ui']['view']['editables']))_0xfece73[_0x30a06f]=_0x51a73f['element'];}else _0xfece73[_0x468d7e['model']['document']['getRootNames']()[0x0]]=_0x468d7e['ui']['view']['editable']['element'];return _0xfece73;}(_0x2bc23b),_0x32d81d=function(_0x1d74c8){let _0x5eedce=0x0;for(const _0x56714f of Object['values'](_0x1d74c8))_0x5eedce=Math['max'](_0x5eedce,_0x56714f['getBoundingClientRect']()['width']);let _0x3dcfd7=0x0;for(const _0x432cbd of Object['values'](_0x1d74c8))_0x3dcfd7+=_0x432cbd['getBoundingClientRect']()['height'];const _0x20524c=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x809dc6=Math['min'](_0x3dcfd7,_0x20524c);return{'width':_0x5eedce,'height':_0x809dc6};}(_0x1e3923);_0x5755f2['show']({'id':'finalContentPreview','title':o(_0xc7bf48,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xc7bf48,{'dialogRects':_0x32d81d}),'onHide':()=>{_0x239751['detachFromDom']();},'onShow':()=>{_0x2bc23b['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x20dde4=>{const _0x438715=this['_standarizeRootsData'](_0x20dde4,_0x2bc23b,_0x1e3923);_0x5755f2['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x438715,_0x2bc23b['config']['get']('trackChanges.preview.renderFunction'));}),_0x239751=new _0x553766(_0xc7bf48,[_0x5755f2['view']]),_0x239751['attachToDom'](),_0x239751['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2bc23b['once']('destroy',()=>{_0x239751['detachFromDom']();});const _0x15d8d5=_0x5755f2['view']['headerView']['class'];_0x5755f2['view']['headerView']['class']=_0x15d8d5?_0x15d8d5+'\x20ck-reset_all':'ck-reset_all',_0x5755f2['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5755f2['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5bbcab=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x45895a=_0x5bbcab['previewMode'],_0x22817c={};if('$labels'===_0x45895a){for(const _0x5e325b of _0x5bbcab['getMergeFieldsIds']())_0x22817c[_0x5e325b]=_0x5bbcab['getLabel'](_0x5e325b)||_0x5e325b;}else{const _0x2f3060='$defaultValues'===_0x45895a?_0x5bbcab['getDefaultValues']():_0x5bbcab['getDataSetValues'](_0x45895a,!0x0);for(const _0x5604d0 of Object['entries'](_0x2f3060)){const [_0x39d588,_0x2bc402]=_0x5604d0;_0x22817c[_0x39d588]=null!==_0x2bc402?_0x2bc402:_0x5bbcab['getLabel'](_0x39d588)||_0x39d588;}}return{'mergeFieldsData':_0x22817c};}['_standarizeRootsData'](_0x5d1d8c,_0x87160,_0x5b15bf){let _0x1e6dfb;if('string'==typeof _0x5d1d8c){const _0x3f0c94=_0x87160['model']['document']['getRootNames']()[0x0];_0x1e6dfb={[_0x3f0c94]:_0x5d1d8c};}else _0x1e6dfb=_0x5d1d8c;const _0x106657=this['_fixMediaEmbeds'](_0x1e6dfb,_0x87160),_0x51d2d1=function(_0x2fb8ab,_0x2d68b2){for(const [_0x2374e5,_0x4d2816]of _0x2fb8ab)_0x4d2816['classes']=_0x2d68b2[_0x2374e5]['classList']['value']['replace']('ck-focused','');return _0x2fb8ab;}(this['_sortRoots'](_0x87160)['reduce']((_0x4768f0,_0xa5542e)=>(_0x4768f0['push']([_0xa5542e,{'content':_0x106657[_0xa5542e],'classes':''}]),_0x4768f0),[]),_0x5b15bf);return _0x51d2d1;}['_fixMediaEmbeds'](_0x1d251a,_0x2a3a09){if(!_0x2a3a09['plugins']['has']('MediaEmbedEditing'))return _0x1d251a;const _0x4d8602=_0x2a3a09['plugins']['get']('MediaEmbedEditing');for(const [_0x5ed58c,_0x633964]of Object['entries'](_0x1d251a)){const _0x3d8513=document['createElement']('div');_0x3d8513['innerHTML']=_0x633964,(_0x3d8513['querySelectorAll']('figure.media')['forEach'](_0x567e9b=>{const _0x4ead82=_0x567e9b['querySelector']('oembed');if(_0x4ead82){const _0x57fc74=_0x4ead82['getAttribute']('url');if(_0x57fc74){const _0x5771b4=_0x4d8602['registry']['getMediaViewElement'](new _0x5599ed(_0x2a3a09['editing']['view']['document']),_0x57fc74,{'elementName':'','renderForEditingView':!0x0}),_0x2b0be1=document['createElement']('div');_0x2b0be1['classList']['add']('ck-media__wrapper'),_0x5771b4['render'](_0x2b0be1,_0x2a3a09['editing']['view']['domConverter']),_0x4ead82['replaceWith'](_0x2b0be1);}}}),_0x1d251a[_0x5ed58c]=_0x3d8513['innerHTML']);}return _0x1d251a;}['_sortRoots'](_0x142d8b){if(!function(_0x265517){return void 0x0!==_0x265517['getRootsAttributes'];}(_0x142d8b))return _0x142d8b['model']['document']['getRootNames']();const _0x467603=[],_0x41009c=new Map();for(const _0x10d598 of _0x142d8b['model']['document']['getRootNames']()){const _0x2c3a55=_0x142d8b['editing']['view']['getDomRoot'](_0x10d598)['getClientRects']()['item'](0x0);_0x467603['push'](_0x10d598),_0x41009c['set'](_0x10d598,_0x2c3a55);}return _0x467603['sort']((_0x541c3a,_0x5e2812)=>{const _0x3d794e=_0x41009c['get'](_0x541c3a),_0x181687=_0x41009c['get'](_0x5e2812);return _0x3d794e['y']-_0x181687['y']||_0x3d794e['x']-_0x181687['x'];}),_0x467603;}}class te extends _0x7c1c66{static get['requires'](){return[T,_0x5de97f];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29904c){super(_0x29904c),_0x29904c['commands']['add']('previewFinalContent',new re(this['editor'])),_0x29904c['config']['define']('trackChanges.preview.renderFunction',(_0x509578,_0x52dc00)=>{for(const _0x215fb2 of _0x52dc00)_0x509578['appendChild'](_0x215fb2);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|