@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250607.0 → 0.0.0-nightly-20250608.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +27 -27
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x375848(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3ec9a1,_0x59c136){super(),this['id']=_0x59c136['id'],this['type']=_0x59c136['type'],this['subType']=_0x59c136['subType']||null,this['author']=_0x59c136['author'],this['creator']=_0x59c136['creator']||_0x59c136['author'],this['isExternal']=Boolean(_0x59c136['attributes']&&_0x59c136['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x59c136['originalSuggestionId']||null,this['_model']=_0x3ec9a1,this['_onAccept']=_0x59c136['onAccept'],this['_onDiscard']=_0x59c136['onDiscard'],this['_onAttributesChange']=_0x59c136['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x59c136['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 _0x342ff6=this;for(;_0x342ff6['previous'];)_0x342ff6=_0x342ff6['previous'];return _0x342ff6;}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'](_0x426ed8){this['_markerNames']['add'](_0x426ed8);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1a4b5e=>this['_model']['markers']['get'](_0x1a4b5e))['filter'](_0x42026e=>_0x42026e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1b2558=>{for(const _0x1ca658 of this['getMarkers']())_0x1b2558['removeMarker'](_0x1ca658);}),this['_markerNames']['clear']();}['removeMarker'](_0x2a77f5){this['_model']['change'](_0x23845e=>{_0x23845e['removeMarker'](_0x2a77f5);}),this['_markerNames']['delete'](_0x2a77f5);}['addRange'](_0x5e0d94){const _0x38694a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x38694a),this['_model']['change'](_0x5b3241=>{_0x5b3241['addMarker'](_0x38694a,{'range':_0x5e0d94,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x19f481){for(const _0x446609 of this['getRanges']())if(_0x446609['isIntersecting'](_0x19f481))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xbaeb24=>_0xbaeb24['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3667db,_0x1176d0)=>[..._0x3667db,..._0x1176d0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5aae9b=this['getRanges']();if(0x1!=_0x5aae9b['length'])return null;const _0x33fa77=_0x5aae9b[0x0],_0x58e12c=_0x33fa77['start']['nodeAfter'],_0x31eaaf=_0x33fa77['end']['nodeBefore'];return _0x58e12c instanceof _0x1b0343?_0x58e12c!=_0x31eaaf?null:_0x58e12c: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 _0x680b28=[];let _0x4f4170=this['head'];for(;_0x4f4170;)_0x680b28['push'](_0x4f4170),_0x4f4170=_0x4f4170['next'];return _0x680b28;}['setAttribute'](_0x49143a,_0x484351){const _0x5568cf=_0x4f943a(this['attributes']);_0x55a538(_0x5568cf,_0x49143a,_0x484351),_0xa047bc(_0x5568cf,this['attributes'])||(this['attributes']=_0x5568cf,this['_onAttributesChange'](_0x5568cf));}['removeAttribute'](_0x405359){const _0x5c7d13=_0x4f943a(this['attributes']);_0x3e53f1(_0x5c7d13,_0x405359),_0xa047bc(_0x5c7d13,this['attributes'])||(this['attributes']=_0x5c7d13,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 _0x4fc05b()['substr'](0x1,0x5);}}function o(_0x316fe4,_0x175b4c,_0x35c1a1){const _0x4bdb18=_0x316fe4['t'],t=_0x316fe4['t'];switch(_0x175b4c){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',_0x35c1a1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x35c1a1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x35c1a1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x35c1a1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x35c1a1);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',_0x35c1a1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x35c1a1);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',_0x35c1a1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x35c1a1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x35c1a1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x35c1a1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x35c1a1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x35c1a1);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x35c1a1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x35c1a1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x35c1a1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x35c1a1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x35c1a1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x35c1a1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x35c1a1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x35c1a1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x35c1a1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x35c1a1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x35c1a1);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x35c1a1);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'},_0x35c1a1);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x35c1a1);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x35c1a1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x35c1a1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x35c1a1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x35c1a1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x35c1a1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x35c1a1);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'},_0x35c1a1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x35c1a1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x35c1a1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x35c1a1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x35c1a1);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'},_0x35c1a1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x35c1a1);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'},_0x35c1a1);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'},_0x35c1a1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x35c1a1);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'},_0x35c1a1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x35c1a1);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'},_0x35c1a1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x35c1a1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x35c1a1);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'},_0x35c1a1);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x35c1a1);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 _0x4bdb18({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x35c1a1);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4bdb18({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x35c1a1);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x35c1a1);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'},_0x35c1a1);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'},_0x35c1a1);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'},_0x35c1a1);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x175b4c;}}class O{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x55c537,_0x517490){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x55c537,this['_locale']=_0x517490;}['getDescriptions'](_0x56a51e){const _0x2cd5ff=[],_0x378714=new Set(),_0x4bb994=new Set();for(let _0x4d14e9=0x0;_0x4d14e9<_0x56a51e['length'];_0x4d14e9++){const _0x6c5469=_0x56a51e[_0x4d14e9];if(!_0x6c5469['isInContent'])continue;const _0x3351e6=this['_handleCustomCallbackDescription'](_0x6c5469);if(_0x3351e6){if(null!=_0x6c5469['subType']){if(_0x378714['has'](_0x6c5469['subType']))continue;_0x378714['add'](_0x6c5469['subType']);}_0x2cd5ff['push'](_0x3351e6);}else{if('attribute'!=_0x6c5469['type'])'insertion'!=_0x6c5469['type']&&'deletion'!=_0x6c5469['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2cd5ff,_0x6c5469,_0x56a51e[_0x4d14e9+0x1]);else{const _0x48a4a=_0x6c5469['data']['key'];if(_0x4bb994['has'](_0x48a4a))continue;_0x4bb994['add'](_0x6c5469['data']['key']),_0x48a4a==m?this['_handleRenameSuggestionDescription'](_0x2cd5ff,_0x6c5469):this['_handleAttributeSuggestionDescription'](_0x2cd5ff,_0x6c5469);}}}return this['_resolveDescriptionItems'](_0x2cd5ff);}['registerDescriptionCallback'](_0x39e138){this['_customCallbacks']['push'](_0x39e138);}['registerElementLabel'](_0x353127,_0x28e54b,_0x59db74=_0x3f1657['normal']){'function'==typeof _0x353127?_0x43f283(this['_itemLabelsCallbacks'],{'matchingCallback':_0x353127,'label':_0x28e54b,'priority':_0x59db74}):this['_itemLabels']['set'](_0x353127,_0x28e54b);}['registerAttributeLabel'](_0x32804a,_0xc379be){this['_attributeLabels']['set'](_0x32804a,_0xc379be);}['getItemLabel'](_0x3cf02b,_0x1ef871=0x1){let _0x45715f;for(const _0x32aa50 of this['_itemLabelsCallbacks'])if(_0x32aa50['matchingCallback'](_0x3cf02b)){_0x45715f=_0x32aa50['label'];break;}return _0x45715f||(_0x45715f=this['_itemLabels']['get'](_0x3cf02b['name'])),_0x45715f?_0x45715f(_0x1ef871):0x1!==_0x1ef871?_0x1ef871+'\x20'+_0x3cf02b['name']+'s':''+_0x3cf02b['name'];}['_addDescriptionItems'](_0x411f4f,_0x49fbfc){const _0x356a66=_0x49fbfc['getFirstRange']()['getWalker'](),_0x386f19='insertion'==_0x49fbfc['type']?'add':'remove';for(const _0xde4eb of _0x356a66){const _0x36bd92=_0xde4eb['item'],_0x3f7705=_0x411f4f[_0x411f4f['length']-0x1];if(_0x36bd92['is']('$textProxy'))_0x3f7705&&_0x3f7705['type']['indexOf']('Container')>-0x1&&_0x411f4f['pop'](),_0x3f7705&&'text'==_0x3f7705['type']?_0x3f7705[_0x386f19]+=_0x36bd92['data']:_0x411f4f['push']({'type':'text','add':'add'==_0x386f19?_0x36bd92['data']:'','remove':'remove'==_0x386f19?_0x36bd92['data']:''});else{if(this['_schema']['isObject'](_0x36bd92)){const _0x48735c=_0x36bd92;if(_0x3f7705&&_0x3f7705['type']['indexOf']('Container')>-0x1&&_0x411f4f['pop'](),'elementEnd'==_0xde4eb['type'])continue;_0x3f7705&&_0x3f7705['type']==_0x386f19+'Object'&&_0x3f7705['element']['name']==_0x48735c['name']?_0x3f7705['quantity']++:_0x411f4f['push']({'type':_0x386f19+'Object','element':_0x48735c,'quantity':0x1}),_0x356a66['skip'](_0x4d0ce4=>!('elementEnd'==_0x4d0ce4['type']&&_0x4d0ce4['item']==_0x36bd92));}else{if(this['_schema']['checkChild'](_0x36bd92,'$text')||_0x36bd92['is']('element','softBreak')){const _0x10f57e=_0x36bd92;if('add'==_0x386f19&&'elementStart'==_0xde4eb['type']||'remove'==_0x386f19&&'elementEnd'==_0xde4eb['type'])continue;if(_0x3f7705&&-0x1==_0x3f7705['type']['indexOf']('Container')){'text'==_0x3f7705['type']&&(_0x3f7705[_0x386f19]+='\x0a');continue;}let _0x1f8654;if(_0x1f8654='add'==_0x386f19?_0x10f57e['nextSibling']&&!this['_schema']['isObject'](_0x10f57e['nextSibling'])?_0x10f57e['nextSibling']:null:_0x10f57e['previousSibling']&&!this['_schema']['isObject'](_0x10f57e['previousSibling'])?_0x10f57e['previousSibling']:null,_0x10f57e['isEmpty']||_0x1f8654&&_0x1f8654['isEmpty']){const _0x233c45=_0x1f8654&&_0x1f8654['isEmpty']?_0x1f8654:_0x10f57e;_0x3f7705&&_0x3f7705['type']==_0x386f19+'EmptyContainer'&&_0x3f7705['element']['name']==_0x233c45['name']?_0x3f7705['quantity']++:_0x411f4f['push']({'type':_0x386f19+'EmptyContainer','element':_0x233c45,'quantity':0x1});}else _0x411f4f['push']({'type':_0x386f19+'Container','element':_0x10f57e});}}}}}['_resolveDescriptionItems'](_0x1d9dbd){const _0x5485e3=this['_locale'],_0x2b2761=[],_0x178784=[],_0x406d08=[];for(const _0x275d09 of _0x1d9dbd)switch(_0x275d09['type']){case'text':if(_0x275d09['add']=_0x275d09['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x275d09['remove']=_0x275d09['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x275d09['add']&&''!=_0x275d09['remove']){_0x2b2761['push']({'type':'replace','content':o(_0x5485e3,'REPLACE_TEXT',['\x22'+_0x275d09['remove']+'\x22','\x22'+_0x275d09['add']+'\x22'])});continue;}if(null!=_0x275d09['add']['match'](/^ +$/)){_0x2b2761['push']({'type':'insertion','content':o(_0x5485e3,'*Insert:*\x20%0',o(_0x5485e3,'ELEMENT_SPACE',_0x275d09['add']['length']))});continue;}if(null!=_0x275d09['remove']['match'](/^ +$/)){_0x2b2761['push']({'type':'deletion','content':o(_0x5485e3,'*Remove:*\x20%0',o(_0x5485e3,'ELEMENT_SPACE',_0x275d09['remove']['length']))});continue;}if(''!=_0x275d09['add']){_0x2b2761['push']({'type':'insertion','content':o(_0x5485e3,'*Insert:*\x20%0','\x22'+_0x275d09['add']+'\x22')});continue;}_0x2b2761['push']({'type':'deletion','content':o(_0x5485e3,'*Remove:*\x20%0','\x22'+_0x275d09['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2b2761['push']({'type':'insertion','content':o(_0x5485e3,'*Insert:*\x20%0',this['getItemLabel'](_0x275d09['element'],_0x275d09['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2b2761['push']({'type':'deletion','content':o(_0x5485e3,'*Remove:*\x20%0',this['getItemLabel'](_0x275d09['element'],_0x275d09['quantity']))});continue;case'addContainer':_0x2b2761['push']({'type':'insertion','content':o(_0x5485e3,'*Split:*\x20%0',this['getItemLabel'](_0x275d09['element'],_0x275d09['quantity']))});continue;case'removeContainer':_0x2b2761['push']({'type':'deletion','content':o(_0x5485e3,'*Merge:*\x20%0',this['getItemLabel'](_0x275d09['element'],_0x275d09['quantity']))});continue;case'addFormat':_0x178784['push'](_0x275d09['key']);continue;case'removeFormat':_0x406d08['push'](_0x275d09['key']);continue;default:_0x2b2761['push'](_0x275d09);}if(_0x178784['length']){const _0x2348ba=_0x178784['map'](_0x363a67=>this['_attributeLabels']['has'](_0x363a67)?this['_attributeLabels']['get'](_0x363a67):_0x363a67)['join'](',\x20');_0x2b2761['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2348ba)});}if(_0x406d08['length']){const _0x1ba8c8=_0x406d08['map'](_0x5cce6f=>this['_attributeLabels']['has'](_0x5cce6f)?this['_attributeLabels']['get'](_0x5cce6f):_0x5cce6f)['join'](',\x20');_0x2b2761['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1ba8c8)});}return _0x2b2761;}['_handleCustomCallbackDescription'](_0x1cfff8){for(const _0x30d0f1 of this['_customCallbacks']){const _0x43d852=_0x30d0f1(_0x1cfff8);if(_0x43d852&&'type'in _0x43d852)return _0x43d852;}}['_handleAttributeSuggestionDescription'](_0x2138ce,_0x4b2aea){const _0x3c30e0=_0x4b2aea['data'],_0xd0cbee=void 0x0===_0x3c30e0['newValue']?'removeFormat':'addFormat';_0x2138ce['push']({'type':_0xd0cbee,'key':_0x3c30e0['key']});}['_handleRenameSuggestionDescription'](_0x234ae2,_0x465dd6){_0x234ae2['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x465dd6['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3e3148,_0x51048f,_0x3a0f09){if(this['_addDescriptionItems'](_0x3e3148,_0x51048f),_0x3a0f09&&_0x3a0f09['getFirstRange']()&&!_0x51048f['getFirstRange']()['end']['isEqual'](_0x3a0f09['getFirstRange']()['start'])){const _0x3c31fe=_0x3e3148[_0x3e3148['length']-0x1],_0x38fcad='insertion'==_0x51048f['type']?'add':'remove';_0x3c31fe&&'text'==_0x3c31fe['type']&&(_0x3c31fe[_0x38fcad]+='\x0a');}}}class R extends _0x5d906a{['afterInit'](){const _0x3f70e2=this['editor'],_0x12aad8=_0x3f70e2['plugins']['get']('TrackChangesEditing');_0x3f70e2['commands']['get']('showAIAssistant')&&_0x12aad8['enableCommand']('showAIAssistant');}}class E extends _0x5d906a{['afterInit'](){const _0x4051c4=this['editor'],_0x1d56ac=_0x4051c4['locale'];if(!_0x4051c4['plugins']['has']('AlignmentEditing'))return;const _0x283001=_0x4051c4['plugins']['get']('TrackChangesEditing');_0x283001['enableDefaultAttributesIntegration']('alignment'),_0x283001['registerBlockAttribute']('alignment'),_0x283001['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1d56ac,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x576bbd=this['editor'],_0x2e1465=_0x576bbd['locale'];_0x576bbd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x376807=>{if('formatBlock'!=_0x376807['type'])return;const {data:_0x120e7d}=_0x376807;if(_0x120e7d&&'alignment'==_0x120e7d['commandName']){const _0x10e10a=_0x120e7d['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2e1465,'*Format:*\x20%0',function(_0x481022){switch(_0x481022){case'left':return o(_0x2e1465,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2e1465,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2e1465,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2e1465,'FORMAT_JUSTIFY_TEXT');}}(_0x10e10a))};}});}}const Xt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x5d906a{['afterInit'](){const _0x238fb5=this['editor'],_0x17a195=_0x238fb5['plugins']['get']('TrackChangesEditing'),_0xb8e449=_0x238fb5['locale'];for(const _0x43d5a6 of Xt){if(!_0x238fb5['plugins']['has'](_0x43d5a6))continue;const _0x3c827e=_0x43d5a6['slice'](0x0,-0x7)['toLowerCase'](),_0x266372='FORMAT_'+_0x3c827e['toUpperCase']();_0x17a195['enableDefaultAttributesIntegration'](_0x3c827e),_0x17a195['registerInlineAttribute'](_0x3c827e),_0x17a195['descriptionFactory']['registerAttributeLabel'](_0x3c827e,o(_0xb8e449,_0x266372));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x516a29=this['editor'],_0x20e317=_0x516a29['locale'],_0x292b66=_0x516a29['plugins']['get']('TrackChangesEditing');function _0x3cc076(_0x49c1dd,_0x470701){_0x292b66['descriptionFactory']['registerDescriptionCallback'](_0x1d28a0=>{if('formatInline'!=_0x1d28a0['type'])return;const {data:_0x23cb13}=_0x1d28a0;return _0x23cb13&&_0x23cb13['commandName']===_0x49c1dd?_0x23cb13['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x20e317,'*Format:*\x20%0',_0x470701)}:{'type':'format','content':o(_0x20e317,'*Remove\x20format:*\x20%0',_0x470701)}:void 0x0;});}_0x3cc076('bold',o(_0x20e317,'FORMAT_BOLD')),_0x3cc076('italic',o(_0x20e317,'FORMAT_ITALIC')),_0x3cc076('underline',o(_0x20e317,'FORMAT_UNDERLINE')),_0x3cc076('code',o(_0x20e317,'FORMAT_CODE')),_0x3cc076('strikethrough',o(_0x20e317,'FORMAT_STRIKETHROUGH')),_0x3cc076('subscript',o(_0x20e317,'FORMAT_SUBSCRIPT')),_0x3cc076('superscript',o(_0x20e317,'FORMAT_SUPERSCRIPT'));}}class V extends _0x5d906a{['afterInit'](){const _0x16ea8e=this['editor'],_0x321cc4=_0x16ea8e['locale'];if(!_0x16ea8e['plugins']['has']('BlockQuoteEditing'))return;const _0x471805=_0x16ea8e['plugins']['get']('TrackChangesEditing'),_0x2243b4=this['editor']['commands']['get']('blockQuote');_0x471805['enableCommand']('blockQuote',(_0x25c485,_0x5ee4d3={})=>{const _0x389c5a=this['editor']['model']['document']['selection'],_0x1f886c=_0x5ee4d3&&void 0x0!==_0x5ee4d3['forceValue']?_0x5ee4d3['forceValue']:!_0x2243b4['value'];let _0x16c873=[];if(_0x1f886c){const _0x4b2f2d=Array['from'](_0x389c5a['getSelectedBlocks']())['filter'](_0x520619=>Zt(_0x520619)||function(_0x1f6476,_0x488d2f){const _0x3af935=_0x488d2f['checkChild'](_0x1f6476['parent'],'blockQuote'),_0x498b29=_0x488d2f['checkChild'](['$root','blockQuote'],_0x1f6476);return _0x3af935&&_0x498b29;}(_0x520619,this['editor']['model']['schema']));_0x16c873=Yt(_0x4b2f2d,_0x16ea8e['model']);}else{const _0x1208c5=Array['from'](_0x389c5a['getSelectedBlocks']())['filter'](_0x19b49a=>Zt(_0x19b49a));_0x16c873=Yt(_0x1208c5,_0x16ea8e['model']);}_0x16ea8e['model']['change'](()=>{for(const _0x385ad8 of _0x16c873)_0x471805['markBlockFormat'](_0x385ad8,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1f886c}]});});}),_0x471805['descriptionFactory']['registerDescriptionCallback'](_0x341cd9=>{const {data:_0x3bf285}=_0x341cd9;if(_0x3bf285&&'blockQuote'==_0x3bf285['commandName']){const _0xa8155f=o(_0x321cc4,'ELEMENT_BLOCK_QUOTE');return _0x3bf285['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x321cc4,'*Set\x20format:*\x20%0',_0xa8155f)}:{'type':'format','content':o(_0x321cc4,'*Remove\x20format:*\x20%0',_0xa8155f)};}});}}function Zt(_0x3d89f9){return'blockQuote'==_0x3d89f9['parent']['name'];}class F extends _0x5d906a{['afterInit'](){const _0x5f1d04=this['editor'],_0x494619=_0x5f1d04['locale'],_0x27eb1c=_0x5f1d04['plugins']['get']('TrackChangesEditing');_0x5f1d04['plugins']['has']('BookmarkEditing')&&(_0x27eb1c['enableCommand']('insertBookmark'),_0x27eb1c['enableDefaultAttributesIntegration']('updateBookmark'),_0x27eb1c['registerBlockAttribute']('bookmarkId'),_0x27eb1c['descriptionFactory']['registerDescriptionCallback'](_0xac9b84=>{if('insertion'!=_0xac9b84['type']&&'deletion'!=_0xac9b84['type']&&'attribute'!=_0xac9b84['type'])return;const _0x557a09=_0xac9b84['getContainedElement']();if(null==_0x557a09)return;if(!_0x557a09['is']('element','bookmark'))return;const _0x110fdb=_0x557a09['getAttribute']('bookmarkId');if('insertion'==_0xac9b84['type'])return{'type':'insertion','content':o(_0x494619,'*Insert:*\x20%0','\x22'+_0x110fdb+'\x22\x20'+o(_0x494619,'ELEMENT_BOOKMARK'))};if('deletion'==_0xac9b84['type'])return{'type':'deletion','content':o(_0x494619,'*Remove:*\x20%0','\x22'+_0x110fdb+'\x22\x20'+o(_0x494619,'ELEMENT_BOOKMARK'))};const {data:_0x4f3666}=_0xac9b84;if(!_0x4f3666||'bookmarkId'!=_0x4f3666['key'])return;return{'type':'format','content':o(_0x494619,'*Set\x20bookmark:*\x20%0','\x22'+_0x4f3666['newValue']+'\x22')};}));}}class G extends _0x5d906a{['afterInit'](){const _0x28af73=this['editor'];_0x28af73['plugins']['has']('CaseChange')&&(_0x28af73['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x28af73['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x28af73['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class L extends _0x5d906a{['afterInit'](){const _0x3f2f2f=this['editor'];_0x3f2f2f['commands']['get']('ckbox')&&_0x3f2f2f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x5d906a{['afterInit'](){const _0x146b74=this['editor'];if(!_0x146b74['plugins']['has']('CodeBlock'))return;const _0xa9d820=_0x146b74['plugins']['get']('TrackChangesEditing'),_0x46d850=_0x146b74['locale'],_0x5e7626=_0x146b74['config']['get']('codeBlock')['languages'],_0x3104ad=_0x146b74['commands']['get']('codeBlock');_0xa9d820['enableCommand']('indentCodeBlock'),_0xa9d820['enableCommand']('outdentCodeBlock'),_0xa9d820['enableCommand']('codeBlock',(_0x2c6c92,_0x42f800={})=>{const _0x532589=_0x146b74['model'],_0x328011=_0x146b74['model']['document']['selection'],_0x232bb0=_0x42f800&&void 0x0!==_0x42f800['forceValue']?_0x42f800['forceValue']:!_0x3104ad['value'];let _0x387bf5;_0x42f800['language']||(_0x42f800['language']=_0x5e7626[0x0]['language']),_0x387bf5=_0x232bb0?Array['from'](_0x328011['getSelectedBlocks']())['filter'](_0x193e9c=>oo(_0x193e9c)||function(_0x1d44ae,_0xc8b63e){if(_0x1d44ae['is']('rootElement')||_0xc8b63e['isLimit'](_0x1d44ae))return!0x1;return _0xc8b63e['checkChild'](_0x1d44ae['parent'],'codeBlock');}(_0x193e9c,_0x532589['schema'])):Array['from'](_0x328011['getSelectedBlocks']())['filter'](_0xbe095c=>oo(_0xbe095c));const _0x480a55=Yt(_0x387bf5,_0x532589);_0x532589['change'](()=>{for(const _0x46df3f of _0x480a55)_0xa9d820['markBlockFormat'](_0x46df3f,{'commandName':'codeBlock','commandParams':[{..._0x42f800,'forceValue':_0x232bb0}],'formatGroupId':'blockName'});});}),(_0xa9d820['descriptionFactory']['registerElementLabel']('codeBlock',_0x3d0455=>o(_0x46d850,'ELEMENT_CODE_BLOCK',_0x3d0455)),_0xa9d820['descriptionFactory']['registerDescriptionCallback'](_0x2ca8c3=>{if('formatBlock'!=_0x2ca8c3['type'])return;const _0x2afe66=_0x46d850['t'],{data:_0xa98ca6}=_0x2ca8c3;if(!_0xa98ca6||'codeBlock'!=_0xa98ca6['commandName'])return;const _0x55be1d=_0xa98ca6['commandParams'][0x0]['language'],_0x2a8b66=_0x2afe66(_0x5e7626['find'](_0x2c585d=>_0x2c585d['language']===_0x55be1d)['label'])['toLowerCase']();return _0xa98ca6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x46d850,'*Set\x20format:*\x20%0',o(_0x46d850,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2a8b66+')')}:{'type':'format','content':o(_0x46d850,'*Remove\x20format:*\x20%0',o(_0x46d850,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x18b270){return'codeBlock'==_0x18b270['name'];}class K extends _0x5d906a{['afterInit'](){const _0x32ca6e=this['editor'];if(!_0x32ca6e['plugins']['has']('CommentsEditing'))return;_0x32ca6e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x29169d,_0x460fbf,_0x4ff252){const _0x989049=[];for(const _0x4e5dd4 of _0x460fbf['getItems']())_0x4e5dd4['hasAttribute'](_0x29169d)&&_0x989049['push'](_0x4ff252['createRangeOn'](_0x4e5dd4));return _0x989049;}function Fe(_0x1305a2,_0x5a1e01,{showActiveMarker:_0x422dc4=!0x0}={}){const _0x29d595=_0x1305a2['plugins']['get']('TrackChangesEditing');return(_0x524401,_0x2f7892,_0x10f92c)=>{if(!_0x10f92c['consumable']['test'](_0x2f7892['markerRange'],_0x524401['name']))return;const _0x15c6f3=_0x2f7892['markerRange']['getWalker'](),_0x1c099b=_0x2f7892['markerRange']['start'],_0x3b6b60=_0x1305a2['model']['schema'];let _0x1a6e05=null,_0xfa5a55=null,_0x36803c=!0x1,_0x4fab42=!0x1;for(const _0x86d7bf of _0x15c6f3){const _0x1e319a=_0x86d7bf['item'];_0x36803c=_0x36803c||_0x3b6b60['isContent'](_0x1e319a);const _0x5505da=_0x10f92c['mapper']['toViewElement'](_0x1e319a);if(_0x5505da&&_0x5505da['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x86d7bf['type']&&(_0x3b6b60['isBlock'](_0x1e319a)&&!_0x3b6b60['isLimit'](_0x1e319a)&&(_0x1e319a['nextSibling']||_0x1c099b['isAtEnd']?_0x1a6e05&&_0x1a6e05['parent']==_0x1e319a||(_0x1a6e05=_0x1e319a,_0xd9636e(_0x86d7bf['previousPosition']),_0x4fab42=!0x0):_0xfa5a55=_0xfa5a55||_0x86d7bf['previousPosition']));}function _0xd9636e(_0x20ef08){const {id:_0x253e26,authorId:_0xf5cd29}=_0x29d595['_splitMarkerName'](_0x2f7892['markerName']),_0x4c462b=_0x10f92c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5a1e01,'data-suggestion':_0x253e26,'data-author-id':_0xf5cd29}),_0x1812af=_0x10f92c['mapper']['toViewPosition'](_0x20ef08);_0x422dc4&&_0x29d595['activeMarkers']['includes'](_0x2f7892['markerName'])&&_0x10f92c['writer']['addClass']('ck-suggestion-marker--active',_0x4c462b),_0x10f92c['writer']['insert'](_0x1812af,_0x4c462b),_0x10f92c['mapper']['bindElementToMarker'](_0x4c462b,_0x2f7892['markerName']);}_0x36803c||_0x4fab42||!_0xfa5a55||_0xd9636e(_0xfa5a55);};}class H extends _0x5d906a{static get['requires'](){return[_0xb4af89];}['init'](){const _0x44eaac=this['editor'],_0x4bc98e=_0x44eaac['plugins']['get']('TrackChangesEditing');_0x4bc98e['enableCommand']('delete');const _0x1743a1=_0x44eaac['commands']['get']('deleteForward');_0x4bc98e['enableCommand']('deleteForward',(_0x233551,_0x2b94de={})=>{const _0x14aa7d=_0x44eaac['model']['createSelection'](_0x44eaac['model']['document']['selection']);_0x14aa7d['isCollapsed']&&_0x44eaac['model']['modifySelection'](_0x14aa7d,{'direction':'forward','unit':_0x2b94de['unit']});const _0x28280d=_0x14aa7d['getFirstRange'](),_0x5be63e=_0x527bd9['fromRange'](_0x28280d);let _0x573d39;_0x233551(_0x2b94de),_0x573d39='$graveyard'==_0x5be63e['root']['rootName']?_0x44eaac['model']['createRange'](_0x28280d['start']):_0x44eaac['model']['createRange'](_0x5be63e['start'],_0x5be63e['end']),_0x5be63e['detach'](),_0x44eaac['model']['enqueueChange'](_0x1743a1['buffer']['batch'],_0xc75023=>{_0x1743a1['buffer']['lock'](),_0xc75023['setSelection'](_0xc75023['createRange'](_0x573d39['end'])),_0x1743a1['buffer']['unlock']();});}),_0x44eaac['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x44eaac,'merge'),{'priority':'high'}),_0x44eaac['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4f6414,_0x289afe,_0x4f63c1)=>{_0x4f63c1['options']['showSuggestionHighlights']&&Fe(_0x44eaac,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4f6414,_0x289afe,_0x4f63c1);},{'priority':'high'}),_0x44eaac['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x57d889,_0x3fce14,_0xcfd266)=>{const _0x22503b=_0xcfd266['mapper']['markerNameToElements'](_0x3fce14['markerName']);if(_0x22503b){for(const _0x4afb12 of _0x22503b)_0x4afb12['is']('uiElement')&&(_0xcfd266['mapper']['unbindElementFromMarkerName'](_0x4afb12,_0x3fce14['markerName']),_0xcfd266['writer']['remove'](_0x4afb12));}},{'priority':'high'});}}class q extends _0x5d906a{['afterInit'](){const _0x306c8a=this['editor'];if(!_0x306c8a['plugins']['has']('ListEditing'))return;const _0x53b534=_0x306c8a['locale'],_0x25fac9=_0x306c8a['plugins']['get']('TrackChangesEditing'),_0x477186=_0x306c8a['plugins']['has']('TodoListEditing'),_0x283a9f=!!_0x306c8a['config']['get']('list.multiBlock');function _0x5ae83c(_0x136267){return{'type':'format','content':''+o(_0x53b534,'*Set\x20format:*\x20%0',_0x136267)};}function _0x2b8801(_0x51ffe1){return{'type':'format','content':''+o(_0x53b534,'*Remove\x20format:*\x20%0',_0x51ffe1)};}_0x25fac9['enableDefaultAttributesIntegration']('numberedList'),_0x25fac9['enableDefaultAttributesIntegration']('bulletedList'),_0x25fac9['enableDefaultAttributesIntegration']('customNumberedList'),_0x25fac9['enableDefaultAttributesIntegration']('customBulletedList'),_0x25fac9['enableDefaultAttributesIntegration']('indentList'),_0x25fac9['enableDefaultAttributesIntegration']('outdentList'),_0x25fac9['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x25fac9['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x25fac9['registerBlockAttribute']('listItemId'),_0x25fac9['registerBlockAttribute']('listType'),_0x25fac9['registerBlockAttribute']('listIndent'),_0x283a9f&&(_0x25fac9['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x25fac9['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x477186&&(_0x25fac9['enableDefaultAttributesIntegration']('todoList'),_0x25fac9['enableDefaultAttributesIntegration']('checkTodoList'),_0x25fac9['registerBlockAttribute']('todoListChecked'),_0x25fac9['descriptionFactory']['registerDescriptionCallback'](_0x3f472b=>{const {data:_0x15d507}=_0x3f472b;if(_0x15d507&&'todoListChecked'==_0x15d507['key'])return{'type':'format','content':_0x15d507['newValue']?o(_0x53b534,'*Check\x20item*'):o(_0x53b534,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1ba232=>{if(_0x1ba232['batch']['isUndo'])return!0x1;let _0x18fc9b=!0x1;const _0x17050c=_0x25fac9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ab3fe=>'todoListChecked'===_0x25fac9['_getAttributeKey'](_0x4ab3fe));for(const _0x5ae184 of _0x17050c){'todo'!=_0x5ae184['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x25fac9['_findSuggestions'](_0x5ae184['getFirstRange'](),'attribute')['find'](_0x7ce2af=>'listType'===_0x25fac9['_getAttributeKey'](_0x7ce2af['suggestion']))||(_0x1ba232['removeMarker'](_0x5ae184['getFirstMarker']()),_0x18fc9b=!0x0));}return _0x18fc9b;})),_0x25fac9['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x53b534,'FORMAT_INDENT'));const _0xfd3ebf={'type':'format','content':''};_0x25fac9['descriptionFactory']['registerDescriptionCallback'](_0x1670bd=>{const {data:_0x539cba}=_0x1670bd;if(!_0x539cba||'listType'!=_0x539cba['key'])return;let _0x23ee67=_0x1670bd['head'];for(;_0x23ee67;){if(_0x23ee67['data']&&(('listStyle'==_0x23ee67['data']['key']||'listMarkerStyle'==_0x23ee67['data']['key'])&&(_0x23ee67['data']['newValue']&&'default'!=_0x23ee67['data']['newValue']||'default'!=_0x23ee67['data']['oldValue']&&!_0x539cba['newValue'])||!_0x283a9f&&_0x23ee67['data']['key']==m))return _0xfd3ebf;_0x23ee67=_0x23ee67['next'];}if(null==_0x539cba['newValue'])switch(_0x539cba['oldValue']){case'bulleted':return _0x2b8801(o(_0x53b534,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b8801(o(_0x53b534,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b8801(o(_0x53b534,'ELEMENT_TODO_LIST'));}switch(_0x539cba['newValue']){case'bulleted':return _0x5ae83c(o(_0x53b534,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5ae83c(o(_0x53b534,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5ae83c(o(_0x53b534,'ELEMENT_TODO_LIST'));}}),_0x25fac9['descriptionFactory']['registerDescriptionCallback'](_0x5a430c=>{const {data:_0x31d7d2}=_0x5a430c;if(_0x31d7d2&&'listIndent'==_0x31d7d2['key'])return null==_0x31d7d2['newValue']||null==_0x31d7d2['oldValue']&&0x0==_0x31d7d2['newValue']?_0xfd3ebf:void 0x0;}),_0x25fac9['descriptionFactory']['registerDescriptionCallback'](_0x54f939=>{if('attribute'!=_0x54f939['type'])return;const {data:_0x2fcd2f}=_0x54f939;if(!_0x2fcd2f||'listItemId'!=_0x2fcd2f['key'])return;const _0x839822=Te(_0x54f939);return'newValue'==_0x839822?{'type':'format','content':o(_0x53b534,'*Merge:*\x20list\x20item')}:'oldValue'==_0x839822?{'type':'format','content':o(_0x53b534,'*Split:*\x20list\x20item')}:_0xfd3ebf;}),_0x306c8a['model']['document']['registerPostFixer'](_0x4a4df0=>this['listItemIdFixer'](_0x4a4df0)),_0x306c8a['model']['document']['registerPostFixer'](_0x13c6db=>this['noTrackChangesFixer'](_0x13c6db)),_0x306c8a['model']['document']['on']('change:data',(_0x22349e,_0x178aab)=>{if(_0x178aab['isUndo']||!_0x178aab['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1cdbd2){if(_0x1cdbd2['batch']['isUndo']||!_0x1cdbd2['batch']['isLocal'])return!0x1;let _0x286a83=!0x1;const _0x1980e5=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17b602=>_0x17b602['data']&&'listItemId'==_0x17b602['data']['key'])['filter'](_0x1ed616=>_0x1ed616['data']['newValue']&&_0x1ed616['data']['oldValue']);for(const _0x9ed1c8 of _0x1980e5)Te(_0x9ed1c8)||(_0x1cdbd2['removeMarker'](_0x9ed1c8['getFirstMarker']()),_0x286a83=!0x0);return _0x286a83;}['noTrackChangesFixer'](_0x4d6834){if(_0x4d6834['batch']['isUndo']||!_0x4d6834['batch']['isLocal'])return!0x1;const _0x5b1974=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5b1974['trackChangesCommand']['value'])return!0x1;let _0x48bc9c=!0x1;const _0x3a4f13=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x41db56=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5985d4=>'attribute'==_0x5985d4['type'])['filter'](_0x330ef5=>_0x3a4f13['includes'](_0x330ef5['attributeKey']));if(0x0==_0x41db56['length'])return _0x48bc9c;for(const _0x1c84b3 of _0x41db56){const _0x40e1ae=_0x5b1974['_findSuggestions'](_0x1c84b3['range'],'attribute')['filter'](_0xf960bf=>!_0xf960bf['meta']['isNextTo'])['map'](_0x43db4a=>_0x43db4a['suggestion'])['filter'](_0x551297=>{const _0x451279=_0x5b1974['_getAttributeKey'](_0x551297);return _0x3a4f13['includes'](_0x451279);});if(_0x40e1ae['length']){for(const _0x1afc4f of _0x40e1ae)_0x4d6834['removeMarker'](_0x1afc4f['getFirstMarker']());_0x48bc9c=!0x0;}}return _0x48bc9c;}['assureChains'](){const _0x5b6fd0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b1a96=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5add28;const _0x696093=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3b7745=>{if(_0x3b7745['data']['oldRange']||!_0x3b7745['data']['newRange'])return null;if(!_0x3b7745['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x27e01a}=_0x5b6fd0['_splitMarkerName'](_0x3b7745['name']);if(!_0x5b6fd0['hasSuggestion'](_0x27e01a))return null;const _0x33ade2=_0x5b6fd0['getSuggestion'](_0x27e01a);return _0x1b1a96['includes'](_0x33ade2['data']['key']);})['map'](_0x52988f=>{const {id:_0xddfaa7}=_0x5b6fd0['_splitMarkerName'](_0x52988f['name']),_0x1d5f14=_0x5b6fd0['getSuggestion'](_0xddfaa7);return _0x5add28=_0x1d5f14['attributes']['groupId'],_0x1d5f14['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x696093['size'])return;const _0x15832a=_0x5b6fd0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x423a30=>'attribute'==_0x423a30['type']&&_0x423a30['data']&&_0x1b1a96['includes'](_0x423a30['data']['key'])&&_0x423a30['attributes']['groupId']!=_0x5add28)['map'](_0x52be66=>({'listItem':_0x52be66['getFirstRange']()['start']['nodeAfter'],'groupId':_0x52be66['attributes']['groupId']})),_0x515f92=new Set();for(const {groupId:_0x4a89d4,listItem:_0x1a6165}of _0x15832a)_0x696093['has'](_0x1a6165)&&_0x515f92['add'](_0x4a89d4);for(const _0x125b5f of _0x5b6fd0['getSuggestions']())_0x515f92['has'](_0x125b5f['attributes']['groupId'])&&_0x125b5f['setAttribute']('groupId',_0x5add28);}['_supportLegacySuggestions'](){const _0x52a899=this['editor'],_0x2807a7=_0x52a899['locale'],_0xaa3d52=_0x52a899['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xaa3d52['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x27699e,_0x474cd9){const _0x34df9e=[];for(let _0x351935 of _0x27699e)_0x351935['start']['nodeAfter']===_0x351935['end']['parent']&&(_0x351935=_0x52a899['model']['createRange'](_0x52a899['model']['createPositionAt'](_0x351935['start']['nodeAfter'],0x0))),_0x34df9e['push'](_0x351935);_0x52a899['model']['change'](_0xa3f9af=>{const _0x584ae0=_0x52a899['model']['document']['selection'],_0x14d256=Array['from'](_0x584ae0['getRanges']())['map'](_0x5e05df=>_0x527bd9['fromRange'](_0x5e05df));_0xa3f9af['setSelection'](_0x34df9e),_0x52a899['commands']['get'](_0x474cd9['commandName'])['refresh'](),_0x474cd9['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x52a899['execute'](_0x474cd9['commandName'],..._0x474cd9['commandParams']),_0xa3f9af['setSelection'](_0x14d256);for(const _0x5d797b of _0x14d256)_0x5d797b['detach']();});}),_0xaa3d52['descriptionFactory']['registerElementLabel'](function(_0x41a156){const _0x162d17=!_0x52a899['model']['schema']['isObject'](_0x41a156),_0x142d05=_0x41a156['previousSibling'],_0x5202c3=_0x41a156['nextSibling'],_0x4ac70e=_0x41a156['getAttribute']('listItemId'),_0x41408b=!_0x142d05||_0x142d05['getAttribute']('listItemId')!==_0x4ac70e,_0x19daf8=!_0x5202c3||_0x5202c3['getAttribute']('listItemId')!==_0x4ac70e;return _0x162d17&&Boolean(_0x4ac70e)&&_0x41408b&&_0x19daf8;},_0x210ec0=>o(_0x2807a7,'ELEMENT_LIST_ITEM',_0x210ec0));}['_registerLegacyDescription'](){const _0x1d6532=this['editor'],_0x499a44=_0x1d6532['locale'];function _0x32cd37(_0x178a59){const _0x415665=_0x1d6532['commands']['get']('bulletedList')['value'],_0x111ae4=_0x1d6532['commands']['get']('numberedList')['value'];return'numberedList'===_0x178a59?_0x415665:_0x111ae4;}_0x1d6532['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5332c0){if('formatBlock'!=_0x5332c0['type'])return;const {data:_0x43fba2}=_0x5332c0;if(!_0x43fba2)return;let _0x32fddf,_0x4cd91e,_0x119139,_0x42f4d3;switch(_0x43fba2['commandName']){case'bulletedList':_0x119139=_0x43fba2['commandParams'][0x0]['forceValue'],_0x42f4d3=_0x32cd37(_0x43fba2['commandName']),_0x32fddf=_0x119139?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x42f4d3&&_0x1d6532['config']['get']('list.multiBlock')||(_0x32fddf='*Change\x20to:*\x20%0'),_0x4cd91e={'type':'format','content':o(_0x499a44,_0x32fddf,o(_0x499a44,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x119139=_0x43fba2['commandParams'][0x0]['forceValue'],_0x42f4d3=_0x32cd37(_0x43fba2['commandName']),_0x32fddf=_0x119139?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x42f4d3&&_0x1d6532['config']['get']('list.multiBlock')||(_0x32fddf='*Change\x20to:*\x20%0'),_0x4cd91e={'type':'format','content':o(_0x499a44,_0x32fddf,o(_0x499a44,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x32fddf='*Indent:*\x20%0',_0x4cd91e={'type':'format','content':o(_0x499a44,_0x32fddf,o(_0x499a44,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x32fddf=function(_0x154159){const _0x30dfdc=_0x154159['getFirstRange']();let _0x5c4f5b=_0x30dfdc['start']['nodeAfter'];for(;_0x5c4f5b&&_0x30dfdc['containsItem'](_0x5c4f5b);){if(_0x5c4f5b['getAttribute']('listIndent')>0x0)return!0x1;_0x5c4f5b=_0x5c4f5b['nextSibling'];}return!0x0;}(_0x5332c0)?o(_0x499a44,'*Format:*\x20remove\x20from\x20%0',o(_0x499a44,function(_0x4b67a7){return'ELEMENT_'+_0x4b67a7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5332c0))):o(_0x499a44,'*Outdent:*\x20%0',o(_0x499a44,'ELEMENT_LIST_ITEM')),_0x4cd91e={'type':'format','content':_0x32fddf};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x43fba2['multipleBlocks']&&(_0x32fddf='*Merge:*\x20%0',_0x4cd91e={'type':'deletion','content':o(_0x499a44,_0x32fddf,o(_0x499a44,'ELEMENT_LIST_ITEM'))});}return _0x4cd91e;});}}function Te(_0x36f8e2){let _0x3f5b26=_0x36f8e2['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3f5b26;){const _0x3e6c57=_0x3f5b26['getAttribute']('listItemId');if(!_0x3e6c57)return!0x1;if(_0x3e6c57==_0x36f8e2['data']['newValue'])return'newValue';if(_0x3e6c57==_0x36f8e2['data']['oldValue'])return'oldValue';_0x3f5b26=_0x3f5b26['previousSibling'];}return!0x1;}class z extends _0x5d906a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1c4d40=this['editor']['config']['get']('list.properties'),_0x4529fa=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c4d40['styles']&&(_0x4529fa['enableDefaultAttributesIntegration']('listStyle'),_0x4529fa['registerBlockAttribute']('listStyle')),_0x1c4d40['reversed']&&(_0x4529fa['enableDefaultAttributesIntegration']('listReversed'),_0x4529fa['registerBlockAttribute']('listReversed')),_0x1c4d40['startIndex']&&(_0x4529fa['enableDefaultAttributesIntegration']('listStart'),_0x4529fa['registerBlockAttribute']('listStart'));const _0xd84c9c={'type':'format','content':''};_0x4529fa['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x402e29=this['editor']['locale'];_0x4529fa['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x402e29,'FORMAT_LIST_REVERSED')),_0x4529fa['descriptionFactory']['registerDescriptionCallback'](_0x748048=>{const {data:_0x5279f8}=_0x748048;if(_0x5279f8&&'listReversed'==_0x5279f8['key'])return null==_0x5279f8['newValue']||0x0==_0x5279f8['newValue']&&null==_0x5279f8['oldValue']?_0xd84c9c:void 0x0;}),_0x4529fa['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x402e29,'FORMAT_LIST_START')),_0x4529fa['descriptionFactory']['registerDescriptionCallback'](_0x538736=>{const {data:_0x14f01b}=_0x538736;if(_0x14f01b&&'listStart'==_0x14f01b['key'])return null==_0x14f01b['newValue']||0x1==_0x14f01b['newValue']&&null==_0x14f01b['oldValue']?_0xd84c9c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4139cf=>{if(_0x4139cf['batch']['isUndo'])return!0x1;let _0x1b923b=!0x1;const _0x5a62f9=_0x4529fa['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x58425b=>{const _0x3f00fa=_0x4529fa['_getAttributeKey'](_0x58425b);return'listStart'==_0x3f00fa||'listReversed'==_0x3f00fa;});for(const _0x105fa9 of _0x5a62f9){const _0x2a18ad=_0x105fa9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2a18ad||'customNumbered'==_0x2a18ad)continue;_0x4529fa['_findSuggestions'](_0x105fa9['getFirstRange'](),'attribute')['find'](_0x41833d=>'listType'==_0x4529fa['_getAttributeKey'](_0x41833d['suggestion']))||(_0x4139cf['removeMarker'](_0x105fa9['getFirstMarker']()),_0x1b923b=!0x0);}return _0x1b923b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4b6678){const _0x47312b=this['editor']['locale'],{data:_0x1533c3}=_0x4b6678,_0x2fbf3e={'type':'format','content':''};if(!_0x1533c3||'listStyle'!=_0x1533c3['key'])return;if(!_0x1533c3['oldValue'])return'default'==_0x1533c3['newValue']?_0x2fbf3e:{'type':'format','content':''+o(_0x47312b,'*Set\x20format:*\x20%0',o(_0x47312b,this['_getTranslationKeyForListStyle'](_0x1533c3['newValue'])))};if(!_0x1533c3['newValue']){if('default'==_0x1533c3['oldValue'])return _0x2fbf3e;let _0x2651d7=_0x4b6678['head'];for(;_0x2651d7;){if(_0x2651d7['data']&&'listType'==_0x2651d7['data']['key']&&_0x2651d7['data']['newValue'])return _0x2fbf3e;_0x2651d7=_0x2651d7['next'];}return{'type':'format','content':''+o(_0x47312b,'*Remove\x20format:*\x20%0',o(_0x47312b,this['_getTranslationKeyForListStyle'](_0x1533c3['oldValue'])))};}if('default'!=_0x1533c3['newValue'])return{'type':'format','content':''+o(_0x47312b,'*Set\x20format:*\x20%0',o(_0x47312b,this['_getTranslationKeyForListStyle'](_0x1533c3['newValue'])))};let _0x58296d=_0x4b6678['head'];for(;_0x58296d;){if(_0x58296d['data']&&'listType'==_0x58296d['data']['key']&&_0x58296d['data']['newValue']&&_0x58296d['data']['oldValue'])return _0x2fbf3e;_0x58296d=_0x58296d['next'];}return{'type':'format','content':o(_0x47312b,'*Set\x20format:*\x20%0',o(_0x47312b,'ELEMENT_'+_0x4b6678['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x129b7d=this['editor'],_0x3e3035=_0x129b7d['locale'];_0x129b7d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c565d=>{if('formatBlock'!=_0x4c565d['type'])return;const {data:_0x16fd5a}=_0x4c565d;if(!_0x16fd5a)return;let _0x39f2a3,_0x215fb7;switch(_0x16fd5a['commandName']){case'listStyle':_0x39f2a3='*Change\x20to:*\x20%0',_0x215fb7={'type':'format','content':o(_0x3e3035,_0x39f2a3,o(_0x3e3035,this['_getTranslationKeyForListStyle'](_0x16fd5a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x39f2a3=_0x16fd5a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x215fb7={'type':'format','content':o(_0x3e3035,_0x39f2a3)};break;case'listStart':_0x39f2a3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x215fb7={'type':'format','content':o(_0x3e3035,_0x39f2a3,_0x16fd5a['commandParams'][0x0]['startIndex'])};}return _0x215fb7;});}['_getTranslationKeyForListStyle'](_0x36f3c9){return'ELEMENT_'+function(_0x9b0daa){if(Se['includes'](_0x9b0daa))return'bulleted';if(_e['includes'](_0x9b0daa))return'numbered';return null;}(_0x36f3c9)['toUpperCase']()+'_LIST_'+_0x36f3c9['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x5d906a{['afterInit'](){const _0x513914=this['editor'];_0x513914['commands']['get']('emoji')&&_0x513914['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Q extends _0x5d906a{static get['requires'](){return[_0x30e46b];}['init'](){const _0xbacdc1=this['editor'],_0x27fcc9=_0xbacdc1['plugins']['get']('TrackChangesEditing'),_0x55ea64=_0xbacdc1['commands']['get']('enter');_0x27fcc9['enableCommand']('enter',()=>{_0xbacdc1['model']['change'](_0x39905d=>{const _0x718ddc=_0xbacdc1['model']['document']['selection'],_0x51a404=_0x718ddc['getFirstPosition'](),_0x2ffa0d=_0x527bd9['fromRange'](_0x718ddc['getFirstRange']());if(_0x55ea64['enterBlock'](_0x39905d)){const _0xe2007c=_0xbacdc1['model']['createPositionAt'](_0x51a404['parent']['nextSibling'],0x0),_0x5bda51=_0x39905d['createRange'](_0x51a404,_0xe2007c);_0x27fcc9['markInsertion'](_0x5bda51);}else _0x39905d['setSelection'](_0x39905d['createRange'](_0x2ffa0d['end']));_0x2ffa0d['detach'](),_0x55ea64['fire']('afterExecute',{'writer':_0x39905d});});}),_0xbacdc1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0xbacdc1,'split'),{'priority':'high'}),_0xbacdc1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2fed44,_0x2ccb49,_0x59a83f)=>{const _0x2e5e57=_0x59a83f['mapper']['markerNameToElements'](_0x2ccb49['markerName']);if(_0x2e5e57){for(const _0x5102ae of _0x2e5e57)_0x5102ae['hasClass']('ck-suggestion-marker-split')&&(_0x59a83f['mapper']['unbindElementFromMarkerName'](_0x5102ae,_0x2ccb49['markerName']),_0x59a83f['writer']['remove'](_0x5102ae));}},{'priority':'high'}),_0xbacdc1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5dc77a,_0x49f832,_0x33108e)=>{_0x33108e['options']['showSuggestionHighlights']&&Fe(_0xbacdc1,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5dc77a,_0x49f832,_0x33108e);},{'priority':'high'});}}class X extends _0x5d906a{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x22ca54=this['editor']['plugins']['get']('TrackChangesEditing');_0x22ca54['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x22ca54['enableCommand']('findNext'),_0x22ca54['enableCommand']('findPrevious'),_0x22ca54['enableCommand']('replace'),_0x22ca54['enableCommand']('replaceAll');}['handleFindCommand'](_0x21702c,_0x803898,_0x5dfc03={}){const _0x4c442d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x21702c(_0x5489a4=>{let _0x28074c=('string'==typeof _0x803898?_0x4c442d['findByTextCallback'](_0x803898,_0x5dfc03):_0x803898)(_0x5489a4);Array['isArray'](_0x28074c)&&(_0x28074c={'results':_0x28074c,'searchText':'string'==typeof _0x803898?_0x803898:''});const _0x330719=_0x28074c['results']['filter'](_0x1b492d=>!0x1===this['_isInDeletionRange'](_0x1b492d,_0x5489a4['item']));return{..._0x28074c,'results':_0x330719};},_0x5dfc03);}['_isInDeletionRange'](_0x53e890,_0x49fadb){const _0x5a3e98=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x49fadb,_0x53e890['start']),this['editor']['model']['createPositionAt'](_0x49fadb,_0x53e890['end']));for(const _0x32d1fe of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5a3e98['getIntersection'](_0x32d1fe['getRange']()))return!0x0;return!0x1;}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x5d906a{['afterInit'](){const _0x46c6da=this['editor']['locale'],_0x379fb9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x176bcd,commandName:_0x43df67}of no)this['editor']['plugins']['has'](_0x176bcd)&&(_0x379fb9['enableDefaultAttributesIntegration'](_0x43df67),_0x379fb9['registerInlineAttribute'](_0x43df67));_0x379fb9['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x46c6da,'FORMAT_FONT_SIZE')),_0x379fb9['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x46c6da,'FORMAT_FONT_FAMILY')),_0x379fb9['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x46c6da,'FORMAT_FONT_COLOR')),_0x379fb9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x46c6da,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x270154=this['editor'],_0x5aa69a=_0x270154['locale'];_0x270154['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f1241=>{const _0x146f2e=_0x5aa69a['t'];if('formatInline'!=_0x1f1241['type'])return;const {data:_0x4ba9fb}=_0x1f1241;if(null!=_0x4ba9fb){if('fontSize'==_0x4ba9fb['commandName']){const _0x1787b4=_0x4ba9fb['commandParams'][0x0]['value'];if(_0x1787b4){const _0x3b4529=_0x146f2e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x308693=>_0x308693['model']==_0x1787b4)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5aa69a,'*Set\x20font\x20size:*\x20%0',_0x3b4529)};}return{'type':'format','content':o(_0x5aa69a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4ba9fb['commandName']){const _0x39f6ec=_0x4ba9fb['commandParams'][0x0]['value'];return _0x39f6ec?{'type':'format','content':o(_0x5aa69a,'*Set\x20font\x20family:*\x20%0',_0x39f6ec)}:{'type':'format','content':o(_0x5aa69a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4ba9fb['commandName']){const _0x156a64=_0x4ba9fb['commandParams'][0x0]['value'];if(_0x156a64){const _0x207a6f=to(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1bd9f6=>_0x1bd9f6['model']==_0x156a64);let _0x1c68ed=_0x156a64,_0x52d681='';return _0x207a6f&&(_0x1c68ed=_0x207a6f['label'],_0x52d681=_0x146f2e(_0x1c68ed)['toLowerCase']()),{'type':'format','content':o(_0x5aa69a,'*Set\x20font\x20color:*\x20%0',_0x52d681)['trim'](),'color':{'value':_0x156a64,'title':_0x52d681||_0x1c68ed}};}return{'type':'format','content':o(_0x5aa69a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4ba9fb['commandName']){const _0x58e272=_0x4ba9fb['commandParams'][0x0]['value'];if(_0x58e272){const _0x37c3d8=to(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x14f90a=>_0x14f90a['model']==_0x58e272);let _0x376986=_0x58e272,_0x1a44ee='';return _0x37c3d8&&(_0x376986=_0x37c3d8['label'],_0x1a44ee=_0x146f2e(_0x376986)['toLowerCase']()),{'type':'format','content':o(_0x5aa69a,'*Set\x20font\x20background\x20color:*\x20%0',_0x1a44ee)['trim'](),'color':{'value':_0x58e272,'title':_0x1a44ee||_0x376986}};}return{'type':'format','content':o(_0x5aa69a,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x5d906a{['afterInit'](){const _0x336d06=this['editor'],_0xd0a063=_0x336d06['plugins']['get']('TrackChangesEditing'),_0x1564c9=_0x336d06['commands']['get']('copyFormat'),_0x227810=_0x336d06['commands']['get']('pasteFormat');_0x1564c9&&_0x227810&&(_0xd0a063['enableDefaultAttributesIntegration']('pasteFormat'),_0xd0a063['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x29df3a=this['editor'],_0x2d1df7=_0x29df3a['locale'];_0x29df3a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x329cca=>{if('formatBlock'!=_0x329cca['type']&&'formatInline'!=_0x329cca['type'])return;const {data:_0x2dafaa}=_0x329cca;if(_0x2dafaa&&'pasteFormat'===_0x2dafaa['commandName']){const _0x2e019f=[],_0x3e014a=_0x2dafaa['commandParams'][0x0];for(const [_0x3fe840,_0x2f116d]of Object['entries'](_0x3e014a))_0x2e019f['push'](ro(_0x29df3a,_0x3fe840,_0x2f116d));return _0x2e019f['length']?{'type':'format','content':o(_0x2d1df7,'*Set\x20format\x20to:*\x20%0',_0x2e019f['join'](',\x20'))}:{'type':'format','content':o(_0x2d1df7,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x8c580e,_0x599bbf,_0x3af500){const _0x4e1cc5=_0x8c580e['locale']['t'],_0x315ef5=_0x599bbf['split'](/(?=[A-Z])/)['join']('\x20'),_0x44d9a9=_0x4e1cc5(_0x315ef5['charAt'](0x0)['toUpperCase']()+_0x315ef5['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3af500)return _0x44d9a9;if('fontColor'===_0x599bbf||'fontBackgroundColor'===_0x599bbf){const _0x5dab74=to(_0x8c580e['config']['get']('fontColor.colors'))['find'](_0x1a21d4=>_0x1a21d4['model']==_0x3af500);return _0x44d9a9+'\x20('+(_0x5dab74?_0x4e1cc5(_0x5dab74['label'])['toLowerCase']():_0x3af500)+')';}if('fontSize'===_0x599bbf&&isNaN(parseFloat(_0x3af500))){const _0x1b4440=_0x8c580e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x8c580e['config']['get']('fontSize.options'))['find'](_0xbf3b30=>_0xbf3b30['model']==_0x3af500);return _0x44d9a9+'\x20('+(_0x1b4440?_0x4e1cc5(_0x1b4440['title'])['toLowerCase']():_0x3af500)+')';}return _0x44d9a9+'\x20('+_0x3af500+')';}class tt extends _0x5d906a{['_headingOptions'];['afterInit'](){const _0x4ba0c0=this['editor'];if(!_0x4ba0c0['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4ba0c0['config']['get']('heading.options');const _0x5b1a80=_0x4ba0c0['locale'],_0x4103b9=_0x4ba0c0['plugins']['get']('TrackChangesEditing');_0x4103b9['enableDefaultAttributesIntegration']('heading');for(const _0xc37c31 of this['_headingOptions'])'paragraph'!=_0xc37c31['model']&&_0x4103b9['descriptionFactory']['registerElementLabel'](_0xc37c31['model'],_0x3a20ab=>{const _0x31d130=this['_getHeadingLevel'](_0xc37c31['model']);return null!==_0x31d130?_0x5ba1e3(_0x3a20ab,_0x31d130):_0x5a9499(_0x3a20ab,_0xc37c31['title']);});function _0x5ba1e3(_0x15e291,_0x2e8f34){return o(_0x5b1a80,'ELEMENT_HEADING',[_0x15e291,_0x2e8f34]);}function _0x5a9499(_0x5f0feb,_0x48d171){return o(_0x5b1a80,'ELEMENT_HEADING_CUSTOM',[_0x5f0feb,_0x48d171]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28ceef=this['editor'],_0x1465c1=_0x28ceef['locale'];function _0x4a65c4(_0x1f66ed,_0x2761ac){return o(_0x1465c1,'ELEMENT_HEADING_CUSTOM',[_0x1f66ed,_0x2761ac]);}_0x28ceef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40396a=>{if('formatBlock'!=_0x40396a['type'])return;const {data:_0x30c149}=_0x40396a;if(_0x30c149&&'heading'==_0x30c149['commandName']){const _0x1d0e6b=_0x30c149['commandParams'][0x0]['value'],_0x276e68=this['_getHeadingLevel'](_0x1d0e6b);if(null!==_0x276e68)return{'type':'format','content':o(_0x1465c1,'*Change\x20to:*\x20%0',(_0x5b885d=0x1,_0x3f99d2=_0x276e68,o(_0x1465c1,'ELEMENT_HEADING',[_0x5b885d,_0x3f99d2])))};const _0xfeb3c7=this['_headingOptions']['find'](_0x55dc55=>_0x55dc55['model']===_0x1d0e6b)['title'];return{'type':'format','content':o(_0x1465c1,'*Change\x20to:*\x20%0',_0x4a65c4(0x1,_0xfeb3c7))};}var _0x5b885d,_0x3f99d2;});}['_getHeadingLevel'](_0x41a8ec){const _0x30ee56=_0x41a8ec['match'](/^heading(\d+)/);if(_0x30ee56)return _0x30ee56[0x1];const _0x34b345=this['_headingOptions']?.['find'](_0x3b1746=>_0x3b1746['model']==_0x41a8ec);if(_0x34b345&&_0x34b345['view']){const _0x244eb7=_0x34b345['view'],_0x1d4cc6=(_0x244eb7['name']??_0x244eb7)['match'](/^h(\d+)/);if(_0x1d4cc6)return _0x1d4cc6[0x1];}return null;}}class it extends _0x5d906a{['afterInit'](){const _0x2fc9d1=this['editor'];if(!_0x2fc9d1['plugins']['has']('HighlightEditing'))return;const _0x51702e=_0x2fc9d1['plugins']['get']('TrackChangesEditing'),_0x22788f=_0x2fc9d1['locale'];_0x51702e['enableDefaultAttributesIntegration']('highlight'),_0x51702e['registerInlineAttribute']('highlight'),_0x51702e['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x22788f,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x85ab70=this['editor'],_0x235ee2=_0x85ab70['locale'];_0x85ab70['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47a9bc=>{if('formatInline'!=_0x47a9bc['type'])return;const {data:_0x381f57}=_0x47a9bc;if(_0x381f57&&'highlight'==_0x381f57['commandName']){const _0x3441e5=_0x235ee2['t'],_0x43582d=_0x381f57['commandParams'][0x0]['value'];if(_0x43582d){const _0xe83e9e=_0x85ab70['config']['get']('highlight.options')['find'](_0x4a458c=>_0x4a458c['model']==_0x43582d),_0x2516fc=_0x3441e5(_0xe83e9e['title'])['toLowerCase']();return{'type':'format','content':o(_0x235ee2,'*Set\x20highlight:*\x20%0',_0x2516fc),'color':{'value':_0xe83e9e['color'],'title':_0xe83e9e['title']}};}return{'type':'format','content':o(_0x235ee2,'*Remove\x20highlight*',o(_0x235ee2,'FORMAT_HIGHLIGHT'))};}});}}class nt extends _0x5d906a{['afterInit'](){const _0x1cbd21=this['editor'];if(!_0x1cbd21['plugins']['has']('HorizontalLineEditing'))return;_0x1cbd21['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x57eab7=_0x1cbd21['plugins']['get']('TrackChangesEditing'),_0x3205e7=_0x1cbd21['locale'];_0x57eab7['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3ccc4d=>o(_0x3205e7,'ELEMENT_HORIZONTAL_LINE',_0x3ccc4d)),_0x1cbd21['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x377910,{writer:_0x564d80,options:_0x3d961d})=>{if(!_0x3d961d['showSuggestionHighlights'])return null;const _0x161792=_0x564d80['createContainerElement']('div'),_0x59eed8=_0x564d80['createEmptyElement']('hr');return _0x564d80['addClass']('ck-horizontal-line',_0x161792),_0x564d80['insert'](_0x564d80['createPositionAt'](_0x161792,0x0),_0x59eed8),_0x161792;},'converterPriority':'high'});}}class et extends _0x5d906a{['afterInit'](){const _0x5f3914=this['editor'];if(!_0x5f3914['plugins']['has']('HtmlEmbed'))return;const _0x129925=_0x5f3914['plugins']['get']('TrackChangesEditing'),_0x5f62f2=_0x5f3914['locale'];_0x129925['descriptionFactory']['registerElementLabel']('rawHtml',_0x51c9d7=>o(_0x5f62f2,'ELEMENT_HTML_EMBED',_0x51c9d7)),_0x129925['enableDefaultAttributesIntegration']('htmlEmbed'),_0x129925['registerBlockAttribute']('value'),_0x129925['descriptionFactory']['registerDescriptionCallback'](_0x21855b=>{if('attribute'!=_0x21855b['type'])return;const {data:_0x1a5cf1}=_0x21855b;if(_0x1a5cf1&&'value'==_0x1a5cf1['key']&&_0x21855b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4b6b2e=o(_0x5f62f2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5f62f2,'*Change\x20%0\x20content*',_0x4b6b2e)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a4411=this['editor'],_0xc11dec=_0x4a4411['locale'];_0x4a4411['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15c83c=>{if('formatBlock'!=_0x15c83c['type'])return;const {data:_0x139ce8}=_0x15c83c;if(_0x139ce8&&'htmlEmbed'==_0x139ce8['commandName']){const _0x71266f=o(_0xc11dec,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xc11dec,'*Change\x20%0\x20content*',_0x71266f)};}});}}class st extends _0x5d906a{['afterInit'](){const _0x4b729e=this['editor'];if(!_0x4b729e['plugins']['has']('ImageEditing'))return;const _0x1cffd8=_0x4b729e['plugins']['get']('TrackChangesEditing'),_0x5d4f81=_0x4b729e['plugins']['get']('ImageUtils'),_0x520272=_0x4b729e['locale'];_0x1cffd8['enableCommand']('insertImage'),_0x1cffd8['descriptionFactory']['registerElementLabel']('imageBlock',_0x5b1762=>o(_0x520272,'ELEMENT_IMAGE',_0x5b1762)),_0x1cffd8['descriptionFactory']['registerElementLabel']('imageInline',_0x416d50=>o(_0x520272,'ELEMENT_INLINE_IMAGE',_0x416d50)),_0x1cffd8['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x520272,'ELEMENT_CAPTION')),_0x4b729e['plugins']['has']('ImageUploadEditing')&&_0x1cffd8['enableCommand']('uploadImage'),_0x4b729e['plugins']['has']('ImageBlockEditing')&&_0x4b729e['plugins']['has']('ImageInlineEditing')&&(_0x1cffd8['enableCommand']('imageTypeInline',(_0x636df,_0x2295a4)=>{const _0x43a00f=_0x5d4f81['getClosestSelectedImageElement'](_0x4b729e['model']['document']['selection']);_0x4b729e['model']['change'](()=>{_0x1cffd8['markBlockFormat'](_0x43a00f,{'commandName':'imageTypeInline','commandParams':[_0x2295a4]},[],'convertBlockImageToInline');});}),_0x1cffd8['enableCommand']('imageTypeBlock',(_0x32e208,_0x8e3f81)=>{_0x4b729e['model']['change'](_0xd31b05=>{let _0x1b5d6c=_0x5d4f81['getClosestSelectedImageElement'](_0x4b729e['model']['document']['selection']),_0x4df96e=_0xd31b05['createRangeOn'](_0x1b5d6c);const _0x44915b=_0x26daac['fromPosition'](_0x4df96e['start'],'toPrevious'),_0x4375ab=_0x26daac['fromPosition'](_0x4df96e['end'],'toNext');_0x1cffd8['forceDefaultExecution'](()=>_0x32e208(_0x8e3f81)),_0x1b5d6c=_0x5d4f81['getClosestSelectedImageElement'](_0x4b729e['model']['document']['selection']),_0x4df96e=_0xd31b05['createRangeOn'](_0x1b5d6c);const _0x280116=_0xd31b05['createRange'](_0x44915b,_0x4375ab);_0x44915b['detach'](),_0x4375ab['detach'](),_0x1cffd8['markBlockFormat'](_0x1b5d6c,{'commandName':'imageTypeInline','commandParams':[_0x8e3f81]},[],'convertInlineImageToBlock'),_0x280116['start']['isBefore'](_0x4df96e['start'])&&_0x1cffd8['markInsertion'](_0xd31b05['createRange'](_0x280116['start'],_0x4df96e['start']),'convertInlineImageToBlock'),_0x4df96e['end']['isBefore'](_0x280116['end'])&&_0x1cffd8['markInsertion'](_0xd31b05['createRange'](_0x4df96e['end'],_0x280116['end']),'convertInlineImageToBlock');});}),_0x1cffd8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1cffd8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1cffd8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1cffd8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1cffd8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1cffd8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x10d61d])=>{const _0x3d1b12=_0x1cffd8['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x23f6a3=_0x10d61d['start'],_0x226cb2=_0x10d61d['end'];const _0x41097d=_0x4b729e['model']['schema']['getNearestSelectionRange'](_0x23f6a3,'backward'),_0x1ca7fe=_0x4b729e['model']['schema']['getNearestSelectionRange'](_0x226cb2,'forward');_0x41097d['isCollapsed']&&(_0x23f6a3=_0x41097d['start']),_0x1ca7fe['isCollapsed']&&(_0x226cb2=_0x1ca7fe['end']),_0x3d1b12([_0x4b729e['model']['createRange'](_0x23f6a3,_0x226cb2)]);}),_0x1cffd8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x43a4f3),_0x1cffd8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x43a4f3)),_0x4b729e['plugins']['has']('ImageCaptionEditing')&&(_0x1cffd8['enableCommand']('toggleImageCaption',(_0x3136d8,_0x544ff7)=>{const _0xf80a33=_0x4b729e['plugins']['get']('ImageCaptionUtils');let _0x519fac=_0x5d4f81['getClosestSelectedImageElement'](_0x4b729e['model']['document']['selection']),_0x4b01e7=_0xf80a33['getCaptionFromImageModelElement'](_0x519fac);_0x4b729e['model']['change'](()=>{if(_0x4b01e7)return void _0x1cffd8['markDeletion'](_0x4b729e['model']['createRangeOn'](_0x4b01e7));const _0x4a0cbe=_0x5d4f81['isBlockImage'](_0x519fac);_0x3136d8(_0x544ff7),_0x519fac=_0x5d4f81['getClosestSelectedImageElement'](_0x4b729e['model']['document']['selection']),_0x4b01e7=_0xf80a33['getCaptionFromImageModelElement'](_0x519fac),_0x1cffd8['markInsertion'](_0x4b729e['model']['createRangeOn'](_0x4b01e7),_0x4a0cbe?null:'imageCaption');});}),_0x1cffd8['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x43a4f3));const _0x49d5f9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5558c8(_0x16b583,_0xbf362a){const _0x589d4b=_0x49d5f9['findIndex'](({type:_0x4e8088,subType:_0x5ee386})=>_0x16b583['type']==_0x4e8088&&_0x16b583['subType']==_0x5ee386),_0x550b40=_0x49d5f9['findIndex'](({type:_0x2078ac,subType:_0x30af14})=>_0xbf362a['type']==_0x2078ac&&_0xbf362a['subType']==_0x30af14);if(_0x589d4b<0x0||_0x550b40<0x0)return!0x1;const _0xd7ba19=_0x16b583['getFirstRange'](),_0x4ed807=_0xbf362a['getFirstRange']();if((0x0==_0x589d4b||0x1==_0x589d4b)&&0x2==_0x550b40&&_0xd7ba19['isIntersecting'](_0x4ed807))return!0x0;if(0x2==_0x589d4b&&0x3==_0x550b40){const _0x40ccf8=_0x1cffd8['_findSuggestions'](_0xd7ba19,'insertion')['filter'](({suggestion:_0x37b909,meta:_0xc72c64})=>_0xc72c64['isOwn']&&'convertInlineImageToBlock'==_0x37b909['subType']);if(_0x40ccf8['length']>0x1&&_0x4ed807['end']['isEqual'](_0xd7ba19['start']))return!0x0;if(0x1==_0x40ccf8['length']&&(_0xd7ba19['start']['isEqual'](_0x4ed807['end'])||_0xd7ba19['end']['isEqual'](_0x4ed807['start'])))return!0x0;}if(0x3==_0x589d4b&&0x3==_0x550b40&&_0xd7ba19['start']['isBefore'](_0x4ed807['start'])){const _0x500d80=_0xd7ba19['end']['nodeAfter'],_0x4798e9=_0x4ed807['start']['nodeBefore'];return _0x5d4f81['isBlockImage'](_0x500d80)&&_0x500d80===_0x4798e9;}return!0x1;}function _0x43a4f3(_0x58c98f,_0x2fd03f){return _0x5558c8(_0x58c98f,_0x2fd03f)?[_0x58c98f,_0x2fd03f]:_0x5558c8(_0x2fd03f,_0x58c98f)?[_0x2fd03f,_0x58c98f]:null;}_0x4b729e['plugins']['has']('ImageResize')&&(_0x1cffd8['enableDefaultAttributesIntegration']('resizeImage'),_0x1cffd8['registerBlockAttribute']('resizedWidth'),_0x1cffd8['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x520272,'FORMAT_IMAGE_SIZE'))),_0x4b729e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1cffd8['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1cffd8['registerBlockAttribute']('alt')),_0x4b729e['plugins']['has']('PictureEditing')&&(_0x1cffd8['registerBlockAttribute']('sources'),_0x1cffd8['descriptionFactory']['registerDescriptionCallback'](_0x38eab6=>{if('attribute'!=_0x38eab6['type'])return;const {data:_0x51c590}=_0x38eab6;return _0x51c590&&'sources'==_0x51c590['key']?{'type':'format','content':''}:void 0x0;})),_0x4b729e['plugins']['has']('ImageSizeAttributes')&&(_0x1cffd8['registerBlockAttribute']('width'),_0x1cffd8['registerBlockAttribute']('height'),_0x1cffd8['descriptionFactory']['registerDescriptionCallback'](_0x1e5026=>{if('attribute'!=_0x1e5026['type'])return;const {data:_0x522d0d}=_0x1e5026;return!_0x522d0d||'width'!=_0x522d0d['key']&&'height'!=_0x522d0d['key']?void 0x0:{'type':'format','content':''};})),_0x1cffd8['descriptionFactory']['registerDescriptionCallback'](_0x3ba594=>{if(!!_0x49d5f9['find'](({type:_0x11ef93,subType:_0x3fd9c7})=>_0x3ba594['type']==_0x11ef93&&_0x3ba594['subType']==_0x3fd9c7))return _0x3ba594['previous']?{}:void 0x0;}),_0x1cffd8['descriptionFactory']['registerDescriptionCallback'](_0x1d72b2=>{if('insertion'==_0x1d72b2['type']||'deletion'==_0x1d72b2['type']){const _0x430768=_0x1d72b2['getContainedElement']();if(_0x430768&&_0x430768['is']('element','caption'))return{'type':'insertion'==_0x1d72b2['type']?'addObject':'removeObject','element':_0x430768,'quantity':0x1};}}),_0x1cffd8['descriptionFactory']['registerDescriptionCallback'](_0x92286f=>'formatBlock'==_0x92286f['type']&&'convertInlineImageToBlock'==_0x92286f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x92286f['type']&&'convertBlockImageToInline'==_0x92286f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1cffd8['descriptionFactory']['registerDescriptionCallback'](_0x17c5cd=>{if('attribute'!=_0x17c5cd['type'])return;const {data:_0x3ceaa9}=_0x17c5cd;if(!_0x3ceaa9||'alt'!=_0x3ceaa9['key'])return;const _0x148cad=_0x3ceaa9['newValue'];return _0x148cad?{'type':'format','content':o(_0x520272,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x148cad+'\x22')}:{'type':'format','content':o(_0x520272,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ec0ce=this['editor'],_0x1e41a5=_0x4ec0ce['locale'];_0x4ec0ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4eb2db=>{if('formatBlock'!=_0x4eb2db['type']&&'formatInline'!=_0x4eb2db['type'])return;const {data:_0x46485e}=_0x4eb2db;if(_0x46485e){if('imageTextAlternative'==_0x46485e['commandName']){const _0x34a3a9=_0x46485e['commandParams'][0x0]['newValue'];return _0x34a3a9?{'type':'format','content':o(_0x1e41a5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x34a3a9+'\x22')}:{'type':'format','content':o(_0x1e41a5,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x46485e['commandName']){const _0x30e8ce=_0x46485e['commandParams'][0x0]['width'];return _0x30e8ce?{'type':'format','content':o(_0x1e41a5,'*Set\x20image\x20width:*\x20%0',_0x30e8ce)}:{'type':'format','content':o(_0x1e41a5,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x5d906a{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x28bed6=this['editor']['locale'],_0x2b65f6=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b65f6['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2b65f6['registerBlockAttribute']('src'),_0x2b65f6['descriptionFactory']['registerDescriptionCallback'](_0x59fc2c=>{if('attribute'!=_0x59fc2c['type'])return;const {data:_0x59ff79}=_0x59fc2c;return _0x59ff79&&'src'==_0x59ff79['key']?_0x59ff79['newValue']&&_0x59ff79['oldValue']?{'type':'format','content':o(_0x28bed6,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2665aa=this['editor']['plugins']['get']('TrackChangesEditing');_0x2665aa['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2665aa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2665aa['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2665aa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fb605=this['editor'],_0x153ecc=_0x1fb605['locale'];_0x1fb605['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e6eb0=>{if('formatBlock'!=_0x1e6eb0['type']&&'formatInline'!=_0x1e6eb0['type'])return;const {data:_0xf0ce9a}=_0x1e6eb0;if(!_0xf0ce9a||'replaceImageSource'!=_0xf0ce9a['commandName'])return;return{'type':'format','content':o(_0x153ecc,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x5d906a{['afterInit'](){const _0x3fcdc5=this['editor'];if(!_0x3fcdc5['plugins']['has']('ImageStyleEditing'))return;const _0x52e6dc=_0x3fcdc5['plugins']['get']('TrackChangesEditing'),_0x4a7401=_0x3fcdc5['plugins']['get']('ImageUtils'),_0x27f1e4={};_0x52e6dc['enableCommand']('imageStyle',(_0x29afce,_0x439976)=>{const _0x86f2d3=_0x3fcdc5['plugins']['get']('Users')['me'],_0x1307b8=_0x3fcdc5['commands']['get']('imageStyle');let _0xe79a65=_0x4a7401['getClosestSelectedImageElement'](_0x3fcdc5['model']['document']['selection']),_0x10aa95=_0x3fcdc5['model']['createRangeOn'](_0xe79a65),_0x3f9064=_0x1307b8['value'];if(_0x3f9064==_0x439976['value'])return;const _0x29940f={'commandName':'imageStyle','commandParams':[_0x439976],'formatGroupId':_0x4fc05b()};_0x3fcdc5['model']['change'](()=>{if(_0x52e6dc['getSuggestions']()['filter'](_0x276151=>_0x276151['isInContent']&&_0x86f2d3==_0x276151['author']&&('formatBlock'==_0x276151['type']||'formatInline'==_0x276151['type'])&&('imageStylePreApply'==_0x276151['subType']||'imageStylePostApply'==_0x276151['subType'])&&_0x276151['getFirstRange']()['isEqual'](_0x10aa95))['forEach'](_0x282bbf=>_0x52e6dc['discardSuggestion'](_0x282bbf['head'])),_0xe79a65=_0x4a7401['getClosestSelectedImageElement'](_0x3fcdc5['model']['document']['selection']),_0x10aa95=_0x3fcdc5['model']['createRangeOn'](_0xe79a65),_0x1307b8['refresh'](),_0x3fcdc5['commands']['get']('imageTypeInline')['refresh'](),_0x3fcdc5['commands']['get']('imageTypeBlock')['refresh'](),_0x3f9064=_0x1307b8['value'],_0x3f9064!=_0x439976['value'])return _0x4a7401['isInlineImage'](_0xe79a65)&&_0x1307b8['shouldConvertImageType'](_0x439976['value'],_0xe79a65)?(_0x29afce({..._0x439976,'setImageSizes':!0x1}),_0xe79a65=_0x4a7401['getClosestSelectedImageElement'](_0x3fcdc5['model']['document']['selection']),void _0x52e6dc['markBlockFormat'](_0xe79a65,{..._0x29940f,'commandReversedParams':[{'value':_0x3f9064||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4a7401['isBlockImage'](_0xe79a65)?_0x52e6dc['markBlockFormat'](_0xe79a65,_0x29940f,[],'imageStylePostApply'):_0x52e6dc['markInlineFormat'](_0x10aa95,_0x29940f,'imageStylePostApply'));});});for(const _0x4467fc of _0x3fcdc5['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x27f1e4[_0x4467fc['name']]=_0x4467fc['title']['toLowerCase']();_0x52e6dc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x52e6dc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x52e6dc['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x52e6dc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2623bc])=>{_0x4a7401['setImageNaturalSizeAttributes'](_0x2623bc['getContainedElement']());}),_0x52e6dc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x36d068,_0x1667c0)=>{_0x52e6dc['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x36d068,{'commandName':_0x1667c0['commandName'],'commandParams':_0x1667c0['commandReversedParams']});}),_0x52e6dc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x30417a,_0x21ad79){if(_0x291775(_0x30417a,_0x21ad79))return[_0x30417a,_0x21ad79];if(_0x291775(_0x21ad79,_0x30417a))return[_0x21ad79,_0x30417a];return null;});const _0x25da66=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x291775(_0x5d1bb2,_0x322695){const _0x43856c=_0x25da66['findIndex'](({type:_0x573469,subType:_0x113ff9})=>_0x5d1bb2['type']==_0x573469&&_0x5d1bb2['subType']==_0x113ff9),_0x107192=_0x25da66['findIndex'](({type:_0x43d85b,subType:_0x231ecc})=>_0x322695['type']==_0x43d85b&&_0x322695['subType']==_0x231ecc);if(_0x43856c<0x0||_0x107192<0x0)return!0x1;const _0x2cb347=_0x5d1bb2['getFirstRange'](),_0x1714b5=_0x322695['getFirstRange']();if((0x0==_0x43856c||0x1==_0x43856c)&&0x2==_0x107192&&_0x2cb347['isIntersecting'](_0x1714b5))return!0x0;if(0x2==_0x43856c&&0x3==_0x107192){const _0x4668e6=_0x52e6dc['_findSuggestions'](_0x2cb347,'insertion')['filter'](({suggestion:_0x4dc526,meta:_0x677316})=>_0x677316['isOwn']&&'convertInlineImageToBlock'==_0x4dc526['subType']);if(_0x4668e6['length']>0x1&&_0x1714b5['end']['isEqual'](_0x2cb347['start']))return!0x0;if(0x1==_0x4668e6['length']&&(_0x2cb347['start']['isEqual'](_0x1714b5['end'])||_0x2cb347['end']['isEqual'](_0x1714b5['start'])))return!0x0;}if(0x3==_0x43856c&&0x3==_0x107192&&_0x2cb347['start']['isBefore'](_0x1714b5['start'])){const _0x5c67e0=_0x2cb347['end']['nodeAfter'],_0x59f798=_0x1714b5['start']['nodeBefore'];return _0x4a7401['isBlockImage'](_0x5c67e0)&&_0x5c67e0===_0x59f798;}return!0x1;}_0x3fcdc5['model']['document']['registerPostFixer'](()=>{let _0x37a746=!0x1;const _0x119809=Array['from'](_0x3fcdc5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4477a0,data:_0x4f4b35}of _0x119809){const {group:_0xa1efe1,type:_0x203f1b,subType:_0x540fee,id:_0x4245d1}=_0x52e6dc['_splitMarkerName'](_0x4477a0);if('suggestion'==_0xa1efe1&&_0x52e6dc['hasSuggestion'](_0x4245d1)){if('formatBlock'==_0x203f1b&&('imageStylePreApply'==_0x540fee||'imageStylePostApply'==_0x540fee)){const _0x33caf6=_0x52e6dc['getSuggestion'](_0x4245d1);if(_0x4f4b35['newRange']){const _0x4c1907=_0x33caf6['getFirstRange']()['getContainedElement']();if(_0x4a7401['isBlockImage'](_0x4c1907))continue;_0x52e6dc['discardSuggestion'](_0x33caf6),_0x37a746=!0x0;}}if('insertion'==_0x203f1b&&'imageCaption'==_0x540fee&&!_0x4f4b35['newRange']){const _0x28b0ee=_0x52e6dc['getSuggestion'](_0x4245d1);_0x28b0ee['next']&&_0x28b0ee['next']['isInContent']&&(_0x52e6dc['discardSuggestion'](_0x28b0ee['next']),_0x37a746=!0x0);}}}return _0x37a746;}),this['_registerLegacyDescription'](_0x27f1e4);}['_registerLegacyDescription'](_0x2190cb){const _0x14c99d=this['editor'],_0x47671f=_0x14c99d['locale'];_0x14c99d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a77f2=>{if('formatBlock'!=_0x3a77f2['type']&&'formatInline'!=_0x3a77f2['type'])return;const {data:_0x564e08}=_0x3a77f2;if(!_0x564e08||'imageStyle'!=_0x564e08['commandName'])return;const _0x32379a=_0x564e08['commandParams'][0x0]['value'];return _0x13e377('side'===_0x32379a?o(_0x47671f,'FORMAT_SIDE_IMAGE'):_0x2190cb[_0x32379a]||_0x32379a);function _0x13e377(_0x31fb37){return{'type':'format','content':o(_0x47671f,'*Format:*\x20%0',_0x31fb37)};}});}}class at extends _0x5d906a{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x24e8fe){super(_0x24e8fe),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5243de=this['editor'],_0x1b3a83=_0x5243de['commands']['get']('importWord'),_0x30a4b3=_0x5243de['commands']['get']('trackChanges');_0x1b3a83&&(_0x1b3a83['on']('execute',(_0x383c36,[,_0x3c1b32])=>{this['_trackChangesValueDuringImport']=_0x30a4b3['value'],_0x3c1b32['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1b3a83,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1b3a83,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x30a4b3['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5243de['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x462475,_0x101884){const {suggestions:_0x2e1e0a}=_0x101884,_0x538c8d=this['editor']['commands']['get']('trackChanges'),_0x26515c=_0x538c8d['value'];this['_trackChangesValueDuringImport']!==_0x26515c&&(_0x538c8d['execute'](),this['_trackChangesExecuted']=!0x0),_0x2e1e0a&&_0x2e1e0a['forEach'](({id:_0xf70c1,type:_0x27b3b1,author:_0x3137a5,created_at:_0x2a0e3a})=>{const _0x1fc8bc={'id':_0xf70c1,'type':_0x27b3b1,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3137a5,'createdAt':_0x2a0e3a?new Date(_0x2a0e3a):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1fc8bc);});}}class ct extends _0x5d906a{['afterInit'](){const _0x9db7dd=this['editor'],_0x429da1=_0x9db7dd['plugins']['get']('TrackChangesEditing');if(_0x9db7dd['plugins']['has']('IndentEditing')&&(_0x429da1['enableCommand']('indent'),_0x429da1['enableCommand']('outdent')),_0x9db7dd['plugins']['has']('IndentBlock')){for(const _0x3fb05b of['indentBlock','outdentBlock'])_0x429da1['enableDefaultAttributesIntegration'](_0x3fb05b);}const _0x3efdfd=_0x9db7dd['locale'];_0x429da1['registerBlockAttribute']('blockIndent'),_0x429da1['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3efdfd,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ca9dc=this['editor'],_0x86f258=_0x4ca9dc['locale'],_0x18eda1=_0x4ca9dc['plugins']['get']('TrackChangesEditing');_0x18eda1['descriptionFactory']['registerDescriptionCallback'](_0xd1cbdb=>{if('formatBlock'!=_0xd1cbdb['type'])return;const {data:_0x3e0935}=_0xd1cbdb;if(!_0x3e0935)return;if('indentBlock'!=_0x3e0935['commandName']&&'outdentBlock'!=_0x3e0935['commandName'])return;const _0x2daaa7=_0xd1cbdb['getItems']()[0x0],_0x55c625=_0x18eda1['descriptionFactory']['getItemLabel'](_0x2daaa7);return'indentBlock'==_0x3e0935['commandName']?{'type':'format','content':o(_0x86f258,'*Indent:*\x20%0',_0x55c625)}:'outdentBlock'==_0x3e0935['commandName']?{'type':'format','content':o(_0x86f258,'*Outdent:*\x20%0',_0x55c625)}:void 0x0;});}}class ut extends _0x5d906a{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ft extends _0x5d906a{['afterInit'](){const _0x15e22c=this['editor'];if(!_0x15e22c['plugins']['has']('LinkEditing'))return;const _0x26b68d=_0x15e22c['plugins']['get']('TrackChangesEditing'),_0x377f22=_0x15e22c['commands']['get']('link');_0x26b68d['enableDefaultAttributesIntegration']('link'),_0x26b68d['enableDefaultAttributesIntegration']('unlink'),_0x26b68d['registerInlineAttribute']('linkHref');for(const _0x47dbfb of _0x377f22['manualDecorators'])_0x26b68d['registerInlineAttribute'](_0x47dbfb['id']),_0x26b68d['descriptionFactory']['registerAttributeLabel'](_0x47dbfb['id'],'link\x20('+_0x47dbfb['label']['toLowerCase']()+')');_0x26b68d['descriptionFactory']['registerDescriptionCallback'](_0xf9f589=>{if('attribute'!=_0xf9f589['type'])return;const {data:_0x53be5d}=_0xf9f589;if(!_0x53be5d||'linkHref'!=_0x53be5d['key'])return;const _0x43339d=_0x53be5d['newValue'],_0x1619f2=_0x15e22c['locale'];return{'type':'format','content':null==_0x43339d?o(_0x1619f2,'*Remove\x20link*'):o(_0x1619f2,'*Set\x20link:*\x20%0','\x22'+_0x43339d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36e2b1=this['editor'],_0x309e74=_0x36e2b1['locale'];_0x36e2b1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2de00c=>{if('formatInline'!=_0x2de00c['type'])return;const {data:_0x547f89}=_0x2de00c;if(_0x547f89){if('link'==_0x547f89['commandName']){const _0x239e73=_0x547f89['commandParams'][0x0];return{'type':'format','content':o(_0x309e74,'*Set\x20link:*\x20%0','\x22'+_0x239e73+'\x22')};}return'unlink'==_0x547f89['commandName']?{'type':'format','content':o(_0x309e74,'*Remove\x20link*')}:void 0x0;}});}}class ht extends _0x5d906a{['afterInit'](){const _0x22e686=this['editor'],_0x4a534b=_0x22e686['locale'];if(!_0x22e686['plugins']['has']('LegacyListEditing'))return;const _0x245c1f=_0x22e686['plugins']['get']('TrackChangesEditing'),_0x23f746=_0x22e686['plugins']['has']('LegacyTodoListEditing');function _0x42e921(_0x1f4d4e){return()=>{const _0xc47841=_0x22e686['model']['document']['selection'],_0xd1d643=_0x22e686['commands']['get'](_0x1f4d4e);if(_0xd1d643['value'])return void _0x22e686['execute']('paragraph',{});const _0x195757=_0x1f4d4e['slice'](0x0,-0x4),_0xd2a626=function(_0x19af55,_0x118410,_0x5d8588){let _0x1b6c40=Array['from'](_0x19af55)['filter'](_0x22c4f8=>function(_0x28a1a5,_0x251e99){return _0x251e99['checkChild'](_0x28a1a5['parent'],'listItem')&&!_0x251e99['isObject'](_0x28a1a5);}(_0x22c4f8,_0x5d8588));_0x1b6c40=_0x1b6c40['filter'](_0x1e6964=>!_0x1e6964['is']('element','listItem')||_0x1e6964['getAttribute']('listType')!=_0x118410);const _0x53af12=new Set();for(const _0x328d66 of _0x1b6c40)_0x328d66['is']('element','listItem')?_0x53af12['add'](Le(_0x328d66)):_0x53af12['add'](_0x328d66);return Array['from'](_0x53af12);}(_0xc47841['getSelectedBlocks'](),_0x195757,_0x22e686['model']['schema']);_0x22e686['model']['change'](()=>{for(const _0x2b5562 of _0xd2a626)_0x245c1f['markBlockFormat'](_0x2b5562,{'commandName':_0x1f4d4e,'commandParams':[{'forceValue':!_0xd1d643['value']}],'formatGroupId':'blockName'},Ee(_0x2b5562));});};}function _0x5d3928(_0x31b1db){return()=>{const _0x520444=function(_0x32a5e0){let _0x30ea9b=Array['from'](_0x32a5e0);const _0x3d0297=_0x30ea9b['findIndex'](_0x31df33=>'listItem'!=_0x31df33['name']);return _0x3d0297>-0x1&&(_0x30ea9b=_0x30ea9b['slice'](0x0,_0x3d0297)),_0x30ea9b;}(_0x22e686['model']['document']['selection']['getSelectedBlocks']()),_0x12cb84=_0x22e686['model']['createRange'](_0x22e686['model']['createPositionAt'](_0x520444[0x0],'before'),_0x22e686['model']['createPositionAt'](_0x520444[_0x520444['length']-0x1],'end'));_0x22e686['model']['change'](()=>{_0x245c1f['markBlockFormat'](_0x12cb84,{'commandName':_0x31b1db,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2ee381){const _0x1d6bce=new Set();for(const _0x584c78 of _0x2ee381){let _0x4b16f6=_0x584c78['nextSibling'];for(;_0x4b16f6&&_0x4b16f6['getAttribute']('listIndent')>_0x584c78['getAttribute']('listIndent');)_0x1d6bce['add'](_0x4b16f6),_0x4b16f6=_0x4b16f6['nextSibling'];}return Array['from'](_0x1d6bce);}(_0x520444));});};}_0x245c1f['enableCommand']('numberedList',_0x42e921('numberedList')),_0x245c1f['enableCommand']('bulletedList',_0x42e921('bulletedList')),_0x23f746&&_0x245c1f['enableCommand']('todoList',_0x42e921('todoList')),_0x245c1f['enableCommand']('indentList',_0x5d3928('indentList')),_0x245c1f['enableCommand']('outdentList',_0x5d3928('outdentList')),_0x23f746&&_0x245c1f['enableCommand']('checkTodoList',()=>{const _0x30fe99=_0x22e686['commands']['get']('checkTodoList'),_0x131bf7=Array['from'](_0x30fe99['_selectedElements']);_0x131bf7['filter'](_0x312b07=>_0x312b07['getAttribute']('todoListChecked')!=_0x30fe99['value']),_0x22e686['model']['change'](()=>{for(const _0x585aa2 of _0x131bf7)_0x245c1f['markBlockFormat'](_0x585aa2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x30fe99['value']}]});});}),_0x245c1f['descriptionFactory']['registerElementLabel']('listItem',_0x240a16=>o(_0x4a534b,'ELEMENT_LIST_ITEM',_0x240a16)),_0x245c1f['descriptionFactory']['registerDescriptionCallback'](_0x5d089f=>{if('formatBlock'!=_0x5d089f['type']&&'formatInline'!=_0x5d089f['type'])return;const {data:_0x2a77c5}=_0x5d089f;if(_0x2a77c5){if('numberedList'==_0x2a77c5['commandName']||'bulletedList'==_0x2a77c5['commandName']||'todoList'==_0x2a77c5['commandName'])switch(_0x2a77c5['commandName']['replace']('List','')){case'bulleted':return _0x128e21(o(_0x4a534b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x128e21(o(_0x4a534b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x128e21(o(_0x4a534b,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2a77c5['commandName'])return{'type':'format','content':o(_0x4a534b,'*Indent:*\x20%0',o(_0x4a534b,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2a77c5['commandName'])return{'type':'format','content':o(_0x4a534b,'*Outdent:*\x20%0',o(_0x4a534b,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2a77c5['commandName'])return _0x2a77c5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4a534b,'*Check\x20item*')}:{'type':'format','content':o(_0x4a534b,'*Uncheck\x20item*')};}function _0x128e21(_0x18731f){return{'type':'format','content':o(_0x4a534b,'*Change\x20to:*\x20%0',_0x18731f)};}});}}function Le(_0x1bb1d8){const _0x32cee6=_0x1bb1d8['getAttribute']('listIndent');if(0x0==_0x32cee6)return _0x1bb1d8;let _0x57e510=_0x1bb1d8;for(;_0x1bb1d8['previousSibling']&&_0x1bb1d8['previousSibling']['is']('element','listItem');){const _0x104b6b=_0x1bb1d8['previousSibling']['getAttribute']('listIndent');if(_0x104b6b==_0x32cee6)_0x57e510=_0x1bb1d8['previousSibling'];else{if(_0x104b6b<_0x32cee6)break;}_0x1bb1d8=_0x1bb1d8['previousSibling'];}return _0x57e510;}function Ee(_0xa6946c){const _0x2e473e=[];if(_0xa6946c['is']('element','listItem')&&_0xa6946c['getAttribute']('listIndent')>0x0){let _0x49295f=_0xa6946c['nextSibling'];for(;_0x49295f&&'listItem'==_0x49295f['name']&&_0x49295f['getAttribute']('listIndent')==_0xa6946c['getAttribute']('listIndent');)_0x2e473e['push'](_0x49295f),_0x49295f=_0x49295f['nextSibling'];}return _0x2e473e;}class gt extends _0x5d906a{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x20bc89=this['editor']['config']['get']('list.properties'),_0x1460cb=this['editor']['plugins']['get']('TrackChangesEditing');_0x20bc89['styles']&&_0x1460cb['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x20bc89['reversed']&&_0x1460cb['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x20bc89['startIndex']&&_0x1460cb['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1460cb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xf938be,_0x4bb79f={}){const _0x34f989=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ab87e=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x34f989['markMultiRangeBlockFormat'](_0x5ab87e,{'commandName':'listStyle','commandParams':[{'type':_0x4bb79f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x140527,_0x1e0e1a={}){const _0x255e12=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b85e8=this['_getSuggestionBlocks'](_0x1e1fa5=>_0x1e1fa5['is']('element','listItem')&&'numbered'===_0x1e1fa5['getAttribute']('listType'));if(_0x5b85e8['length']<0x1)return;const _0x3fa9b5=_0x5b85e8['map'](_0x23002e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x23002e,'before'),this['editor']['model']['createPositionAt'](_0x23002e,0x0)));this['editor']['model']['change'](()=>{_0x255e12['markMultiRangeBlockFormat'](_0x3fa9b5,{'commandName':'listReversed','commandParams':[{'reversed':_0x1e0e1a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1045bf,_0x507998={}){const _0x19cee9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1dadc9=this['_getSuggestionBlocks'](_0x4d6d6a=>_0x4d6d6a['is']('element','listItem')&&'numbered'===_0x4d6d6a['getAttribute']('listType'));if(_0x1dadc9['length']<0x1)return;const _0x3343dd=_0x1dadc9['map'](_0x5c22c2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5c22c2,'before'),this['editor']['model']['createPositionAt'](_0x5c22c2,0x0)));this['editor']['model']['change'](()=>{_0x19cee9['markMultiRangeBlockFormat'](_0x3343dd,{'commandName':'listStart','commandParams':[{'startIndex':_0x507998['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x448971){if('formatBlock'!=_0x448971['type']&&'formatInline'!=_0x448971['type'])return;const _0x824fb=this['editor']['locale'],{data:_0x4594df}=_0x448971;if(!_0x4594df)return;let _0x146433,_0x5bb720;switch(_0x4594df['commandName']){case'listStyle':_0x146433='*Change\x20to:*\x20%0',_0x5bb720={'type':'format','content':o(_0x824fb,_0x146433,o(_0x824fb,this['_getTranslationKeyForListStyle'](_0x4594df['commandParams'][0x0]['type'])))};break;case'listReversed':_0x146433=_0x4594df['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5bb720={'type':'format','content':o(_0x824fb,_0x146433)};break;case'listStart':_0x146433='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5bb720={'type':'format','content':o(_0x824fb,_0x146433,_0x4594df['commandParams'][0x0]['startIndex'])};}return _0x5bb720;}['_getSuggestionBlocksForListStyle'](){const _0x5639b2=this['editor']['plugins']['get']('LegacyListUtils');let _0x443fa5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x443fa5[0x0]?.['is']('element','listItem')&&_0x443fa5['unshift'](..._0x5639b2['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x443fa5[_0x443fa5['length']-0x1]?.['is']('element','listItem')&&_0x443fa5['push'](..._0x5639b2['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x443fa5=[...new Set(_0x443fa5)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x443fa5=_0x443fa5['filter'](_0x2b67c5=>_0x2b67c5['is']('element','listItem'))),_0x443fa5;}['_getSuggestionBlocks'](_0x4b7c2f){const _0x3667a1=this['editor']['plugins']['get']('LegacyListUtils');let _0x6accab=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4b7c2f)['map'](_0x26d03a=>{const _0x413ef6=this['editor']['model']['createPositionAt'](_0x26d03a,0x0);return[..._0x3667a1['getSiblingNodes'](_0x413ef6,'backward'),..._0x3667a1['getSiblingNodes'](_0x413ef6,'forward')];})['flat']();return _0x6accab=[...new Set(_0x6accab)],_0x6accab;}['_getTranslationKeyForListStyle'](_0x692a5e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x692a5e)||'default')['toUpperCase']()+'_LIST_'+_0x692a5e['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x5d906a{['afterInit'](){const _0x8b9176=this['editor'];if(!_0x8b9176['plugins']['has']('MediaEmbedEditing'))return;const _0x51f203=_0x8b9176['plugins']['get']('TrackChangesEditing'),_0xb999ec=_0x8b9176['locale'];_0x51f203['enableCommand']('mediaEmbed'),_0x51f203['descriptionFactory']['registerElementLabel']('media',_0x178c0f=>o(_0xb999ec,'ELEMENT_MEDIA',_0x178c0f)),_0x8b9176['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4839b0,{writer:_0x25458f,options:_0xc4b910})=>{if(_0xc4b910['showSuggestionHighlights'])return _0x25458f['createEmptyElement']('div');},'converterPriority':'high'}),_0x8b9176['data']['downcastDispatcher']['on']('attribute:url:media',(_0x104e54,_0x96914a,_0x36d7be)=>{_0x36d7be['options']['showSuggestionHighlights']&&_0x104e54['stop']();},{'priority':'high'});}}class dt extends _0x5d906a{['afterInit'](){const _0x5744c0=this['editor'];_0x5744c0['plugins']['has']('MentionEditing')&&_0x5744c0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class mt extends _0x5d906a{['afterInit'](){const _0x5869d9=this['editor'];if(!_0x5869d9['plugins']['has']('MergeFieldsEditing'))return;const _0x3dece4=_0x5869d9['plugins']['get']('TrackChangesEditing'),_0x246cbe=_0x5869d9['locale'];_0x3dece4['enableCommand']('insertMergeField'),_0x3dece4['enableCommand']('insertMergeFieldBlock'),_0x3dece4['enableCommand']('insertMergeFieldImage'),_0x3dece4['descriptionFactory']['registerElementLabel']('mergeField',_0x5489c4=>o(_0x246cbe,'ELEMENT_MERGE_FIELD',_0x5489c4)),_0x3dece4['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x20852b=>o(_0x246cbe,'ELEMENT_MERGE_FIELD',_0x20852b)),_0x3dece4['descriptionFactory']['registerDescriptionCallback'](_0x96599e=>{if('insertion'!=_0x96599e['type']&&'deletion'!=_0x96599e['type'])return;const _0x26679f=_0x96599e['getContainedElement']();if(null==_0x26679f)return;const _0x339d3f=_0x5869d9['plugins']['get']('MergeFieldsEditing');let _0x2e0cdb;switch(_0x339d3f['getMergeFieldType'](_0x26679f)){case null:return;case'image':{const _0x48c0ff=_0x339d3f['unwrapAffixes'](_0x26679f['getAttribute']('src'));_0x2e0cdb=_0x339d3f['getLabel'](_0x48c0ff)||_0x48c0ff;break;}default:{const _0x511a18=_0x26679f['getAttribute']('id');_0x2e0cdb=_0x339d3f['getLabel'](_0x511a18)||_0x511a18;break;}}return'insertion'==_0x96599e['type']?{'type':'insertion','content':o(_0x246cbe,'*Insert:*\x20%0','\x22'+_0x2e0cdb+'\x22\x20'+o(_0x246cbe,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x246cbe,'*Remove:*\x20%0','\x22'+_0x2e0cdb+'\x22\x20'+o(_0x246cbe,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x5d906a{['afterInit'](){const _0x4d8862=this['editor'],_0x10ef87=_0x4d8862['plugins']['get']('TrackChangesEditing');_0x4d8862['plugins']['has']('MultiLevelList')&&(_0x10ef87['enableDefaultAttributesIntegration']('multiLevelList'),_0x10ef87['registerBlockAttribute']('listMarkerStyle'),_0x10ef87['descriptionFactory']['registerDescriptionCallback'](_0x192ff4=>this['handleDescriptions'](_0x192ff4)));}['handleDescriptions'](_0x2c7f22){const _0x46353a=this['editor']['locale'],{data:_0x5829db}=_0x2c7f22,_0x56e407={'type':'format','content':''};if(_0x5829db&&'listMarkerStyle'==_0x5829db['key']){if(!_0x5829db['oldValue'])return{'type':'format','content':o(_0x46353a,'*Set\x20format:*\x20%0',o(_0x46353a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5829db['newValue']+')'};if(!_0x5829db['newValue']){let _0x52b3dd=_0x2c7f22['head'];for(;_0x52b3dd;){if(_0x52b3dd['data']&&'listType'==_0x52b3dd['data']['key']&&_0x52b3dd['data']['newValue'])return _0x56e407;_0x52b3dd=_0x52b3dd['next'];}return{'type':'format','content':o(_0x46353a,'*Remove\x20format:*\x20%0',o(_0x46353a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5829db['oldValue']+')'};}}}}class kt extends _0x5d906a{['afterInit'](){const _0x177f8b=this['editor'];if(!_0x177f8b['plugins']['has']('PageBreakEditing'))return;_0x177f8b['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3af83c=_0x177f8b['plugins']['get']('TrackChangesEditing'),_0x5ca84f=_0x177f8b['locale'];_0x3af83c['descriptionFactory']['registerElementLabel']('pageBreak',_0x5eba3d=>o(_0x5ca84f,'ELEMENT_PAGE_BREAK',_0x5eba3d));}}class wt extends _0x5d906a{['afterInit'](){const _0x4619c2=this['editor'];if(!_0x4619c2['plugins']['has']('Paragraph'))return;const _0x51c086=_0x4619c2['locale'],_0xfbc62c=_0x4619c2['plugins']['get']('TrackChangesEditing');_0xfbc62c['descriptionFactory']['registerElementLabel']('paragraph',_0x273620=>o(_0x51c086,'ELEMENT_PARAGRAPH',_0x273620)),_0xfbc62c['enableDefaultAttributesIntegration']('paragraph'),_0xfbc62c['enableCommand']('insertParagraph'),_0x4619c2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4619c2),{'priority':'highest'}),_0x4619c2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2f8cd6,_0x3e45ec,_0x1d189a)=>{_0x1d189a['options']['showSuggestionHighlights']&&nr(_0x4619c2,{'showActiveMarker':!0x1})(_0x2f8cd6,_0x3e45ec,_0x1d189a);},{'priority':'highest'});const _0x178501=_0xfbc62c['descriptionFactory'];_0x178501['registerDescriptionCallback'](_0x3dc8f5=>{if('insertion'!==_0x3dc8f5['type'])return;const {start:_0x23fcc7,end:_0x22250d}=_0x3dc8f5['getFirstRange']();if(!_0x23fcc7['isTouching'](_0x22250d)||!_0x23fcc7['nodeAfter'])return;const _0x49b2a9=_0x4619c2['model']['schema'],_0x37b2b0=_0x23fcc7['nodeAfter'];return _0x49b2a9['isBlock'](_0x37b2b0)&&!_0x49b2a9['isLimit'](_0x37b2b0)&&_0x49b2a9['checkChild'](_0x37b2b0,'$text')?{'type':'insertion','content':o(_0x51c086,'*Insert:*\x20%0',_0x178501['getItemLabel'](_0x37b2b0,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x177f67=this['editor'],_0x1b6d9b=_0x177f67['locale'];_0x177f67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x357f1b=>{if('formatBlock'!=_0x357f1b['type'])return;const {data:_0x11943d}=_0x357f1b;return _0x11943d&&'paragraph'==_0x11943d['commandName']?{'type':'format','content':o(_0x1b6d9b,'*Change\x20to:*\x20%0',o(_0x1b6d9b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1a4854,{showActiveMarker:_0x46f5da=!0x0}={}){return(_0x35d71e,_0x271737,_0x50270e)=>{const _0x2295b5=_0x1a4854['plugins']['get']('TrackChangesEditing'),_0x24dbfb=_0x271737['markerRange']['start'],_0x27ffb8=_0x271737['markerRange']['end'],_0x18c18c=_0x1a4854['model']['schema'];if(!_0x24dbfb['isTouching'](_0x27ffb8)||!_0x24dbfb['nodeAfter'])return;const _0x238b0e=_0x24dbfb['nodeAfter'];if(_0x18c18c['isBlock'](_0x238b0e)&&!_0x18c18c['isLimit'](_0x238b0e)&&_0x18c18c['checkChild'](_0x238b0e,'$text')){if(!_0x50270e['consumable']['consume'](_0x271737['markerRange'],_0x35d71e['name']))return;const {id:_0x578905,authorId:_0x441e0a}=_0x2295b5['_splitMarkerName'](_0x271737['markerName']),_0x3020e1=_0x50270e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x578905,'data-author-id':_0x441e0a}),_0x25a20c=_0x50270e['mapper']['toViewPosition'](_0x27ffb8);_0x46f5da&&_0x2295b5['activeMarkers']['includes'](_0x271737['markerName'])&&_0x50270e['writer']['addClass']('ck-suggestion-marker--active',_0x3020e1),_0x50270e['writer']['insert'](_0x25a20c,_0x3020e1),_0x50270e['mapper']['bindElementToMarker'](_0x3020e1,_0x271737['markerName']);}};}class bt extends _0x5d906a{['afterInit'](){const _0x46c2aa=this['editor'];_0x46c2aa['commands']['get']('replaceSource')&&_0x46c2aa['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class yt extends _0x5d906a{['afterInit'](){const _0x168d2d=this['editor'];if(!_0x168d2d['plugins']['has']('RemoveFormatEditing'))return;_0x168d2d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46fc90=this['editor'];_0x46fc90['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x411d11=>{if('formatBlock'!=_0x411d11['type']&&'formatInline'!=_0x411d11['type'])return;const {data:_0x1b4fd8}=_0x411d11;return _0x1b4fd8&&'removeFormat'==_0x1b4fd8['commandName']?{'type':'format','content':o(_0x46fc90['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class St extends _0x5d906a{['afterInit'](){const _0x7ca751=this['editor'];if(!_0x7ca751['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x53a2a0=_0x7ca751['plugins']['get']('TrackChangesEditing');_0x53a2a0['enableCommand']('goToPreviousRestrictedEditingException'),_0x53a2a0['enableCommand']('goToNextRestrictedEditingException');const _0x469675=_0x7ca751['plugins']['get']('RestrictedEditingModeEditing');_0x469675['enableCommand']('trackChanges'),_0x469675['enableCommand']('acceptSuggestion'),_0x469675['enableCommand']('discardSuggestion'),_0x469675['enableCommand']('acceptAllSuggestions'),_0x469675['enableCommand']('discardAllSuggestions'),_0x469675['enableCommand']('acceptSelectedSuggestions'),_0x469675['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x5d906a{['afterInit'](){const _0x240345=this['editor'];if(!_0x240345['plugins']['has']('ShiftEnter'))return;const _0x5088fe=_0x240345['plugins']['get']('TrackChangesEditing');_0x5088fe['enableCommand']('shiftEnter'),_0x240345['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x240345),{'priority':'high'}),_0x240345['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x240345),{'priority':'high'}),_0x240345['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x23e891,_0x31c6ec,_0x1509dd)=>{_0x1509dd['options']['showSuggestionHighlights']&&je(_0x240345,{'showActiveMarker':!0x1})(_0x23e891,_0x31c6ec,_0x1509dd);}),_0x5088fe['descriptionFactory']['registerElementLabel']('softBreak',_0x213a1d=>o(_0x240345['locale'],'ELEMENT_LINE_BREAK',_0x213a1d));}}function je(_0x23a2b2,{showActiveMarker:_0x4e9cff=!0x0}={}){return(_0x4c4199,_0x2ffed2,_0x2b925b)=>{const _0x9d1d2a=_0x23a2b2['plugins']['get']('TrackChangesEditing');if(!_0x2b925b['consumable']['test'](_0x2ffed2['markerRange'],_0x4c4199['name']))return;const _0x36e0a9=_0x23a2b2['model'];for(const _0x20a8a2 of _0x2ffed2['markerRange']['getItems']()){if(!_0x20a8a2['is']('element','softBreak'))continue;const _0x1674c6='deletion'==_0x2ffed2['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x14dfe2,authorId:_0x25b32b}=_0x9d1d2a['_splitMarkerName'](_0x2ffed2['markerName']),_0x32cc40=_0x2b925b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1674c6,'data-suggestion':_0x14dfe2,'data-author-id':_0x25b32b}),_0x2c7d16=_0x2b925b['mapper']['toViewPosition'](_0x36e0a9['createPositionBefore'](_0x20a8a2));_0x4e9cff&&_0x9d1d2a['activeMarkers']['includes'](_0x2ffed2['markerName'])&&_0x2b925b['writer']['addClass']('ck-suggestion-marker--active',_0x32cc40),_0x2b925b['writer']['insert'](_0x2c7d16,_0x32cc40),_0x2b925b['mapper']['bindElementToMarker'](_0x32cc40,_0x2ffed2['markerName']);}};}class It extends _0x5d906a{['afterInit'](){const _0x23b5f6=this['editor'],_0x5e7592=_0x23b5f6['model'],_0x3b63bd=_0x23b5f6['locale'];if(!_0x23b5f6['plugins']['has']('StandardEditingModeEditing'))return;const _0x86962c=_0x23b5f6['plugins']['get']('TrackChangesEditing'),_0x2a0dcd='restrictedEditingException',_0x3075ea=_0x23b5f6['commands']['get'](_0x2a0dcd);_0x86962c['enableCommand'](_0x2a0dcd,(_0x30080a,_0x1e763b={})=>{const _0x37462e=_0x5e7592['document']['selection'];if(_0x37462e['isCollapsed'])return void _0x30080a(_0x1e763b);const _0x4f8fa2=void 0x0!==_0x1e763b['forceValue']?_0x1e763b['forceValue']:!_0x3075ea['value'];_0x5e7592['change'](()=>{const _0x21586a=Array['from'](_0x37462e['getRanges']());for(const _0x1aafd4 of _0x21586a){const _0x323d72=_0x4f8fa2?[_0x1aafd4]:io(_0x2a0dcd,_0x1aafd4,_0x5e7592);for(const _0x5fdbde of _0x323d72)_0x86962c['markInlineFormat'](_0x5fdbde,{'commandName':_0x2a0dcd,'commandParams':[{'forceValue':_0x4f8fa2}]});}});}),_0x86962c['descriptionFactory']['registerDescriptionCallback'](_0x1e3195=>{if('formatBlock'!=_0x1e3195['type']&&'formatInline'!=_0x1e3195['type'])return;const {data:_0x1782a4}=_0x1e3195;return _0x1782a4&&_0x1782a4['commandName']==_0x2a0dcd?_0x1782a4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3b63bd,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3b63bd,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x5d906a{['afterInit'](){const _0x22c058=this['editor'];if(!_0x22c058['plugins']['has']('Style')||!_0x22c058['plugins']['has']('DataSchema'))return;const _0x53cf99=_0x22c058['plugins']['get']('TrackChangesEditing'),_0x566bd8=_0x22c058['locale'],_0x57e77a=_0x22c058['config']['get']('style')||{},_0x3a9023=_0x22c058['plugins']['get']('GeneralHtmlSupport'),_0x98fac7=_0x22c058['plugins']['get']('StyleUtils')['normalizeConfig'](_0x22c058['plugins']['get']('DataSchema'),_0x57e77a['definitions']);_0x53cf99['enableDefaultAttributesIntegration']('style');const _0x2a55c6=new Set();for(const _0x40aad1 of _0x98fac7['block']){const _0x47f6fa=_0x3a9023['getGhsAttributeNameForElement'](_0x40aad1['element']);_0x2a55c6['add'](_0x47f6fa);}const _0x3a705b=new Set();for(const _0x256305 of _0x98fac7['inline']){const _0x2d0dc7=_0x3a9023['getGhsAttributeNameForElement'](_0x256305['element']);_0x3a705b['add'](_0x2d0dc7);for(const _0x133827 of _0x256305['ghsAttributes'])_0x3a705b['add'](_0x133827);}for(const _0x2bbd88 of _0x2a55c6)_0x53cf99['registerBlockAttribute'](_0x2bbd88),_0x53cf99['descriptionFactory']['registerAttributeLabel'](_0x2bbd88,o(_0x566bd8,'FORMAT_STYLE'));for(const _0x4c3b7d of _0x3a705b)_0x53cf99['registerInlineAttribute'](_0x4c3b7d),_0x53cf99['descriptionFactory']['registerAttributeLabel'](_0x4c3b7d,o(_0x566bd8,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f267e=this['editor'],_0x1ce246=_0x1f267e['locale'];_0x1f267e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e2a60=>{if('formatBlock'!=_0x1e2a60['type']&&'formatInline'!=_0x1e2a60['type'])return;const {data:_0xb6447e}=_0x1e2a60;return _0xb6447e&&'style'===_0xb6447e['commandName']?_0xb6447e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1ce246,'*Set\x20format:*\x20%0',_0xb6447e['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1ce246,'*Remove\x20format:*\x20%0',_0xb6447e['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class _t extends _0x5d906a{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x11b319){super(_0x11b319),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3c2cad=this['editor'],_0x202e45=_0x3c2cad['model']['document']['selection'];if(!_0x3c2cad['plugins']['has']('TableEditing'))return;const _0x3f766f=_0x3c2cad['locale'],_0x5a00f3=_0x3c2cad['plugins']['get']('TrackChangesEditing'),_0x28f742=_0x3c2cad['plugins']['get']('TableUtils');_0x5a00f3['descriptionFactory']['registerElementLabel']('table',_0x5c272f=>o(_0x3f766f,'ELEMENT_TABLE',_0x5c272f)),this['_setupColumnsRowsFixing'](),_0x5a00f3['enableCommand']('insertTable'),_0x5a00f3['enableCommand']('selectTableRow'),_0x5a00f3['enableCommand']('selectTableColumn');for(const _0x9408ed of['insertTableRowAbove','insertTableRowBelow']){const _0x165b2c=_0x3c2cad['commands']['get'](_0x9408ed);_0x5a00f3['enableCommand'](_0x9408ed,_0x40c71f=>{_0x3c2cad['model']['change'](_0x663b45=>{_0x40c71f();const _0x184c19='above'===_0x165b2c['order'],_0x7694cf=_0x28f742['getSelectionAffectedTableCells'](_0x202e45),_0x40014c=_0x28f742['getRowIndexes'](_0x7694cf),_0x314d6b=_0x184c19?_0x40014c['first']-0x1:_0x40014c['last']+0x1,_0x570742=_0x7694cf[0x0]['findAncestor']('table'),_0x5f03ec=_0x28f742['createTableWalker'](_0x570742,{'startRow':_0x314d6b,'endRow':_0x314d6b}),_0x4bafad=Array['from'](_0x5f03ec)['map'](_0x325024=>_0x663b45['createRangeOn'](_0x325024['cell']));_0x5a00f3['markMultiRangeInsertion'](_0x4bafad,'tableRow');});});}for(const _0x4fa4c2 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2f456f=_0x3c2cad['commands']['get'](_0x4fa4c2);_0x5a00f3['enableCommand'](_0x4fa4c2,_0x110f55=>{_0x3c2cad['model']['change'](_0x13ef42=>{_0x110f55();const _0x474cc3='left'===_0x2f456f['order'],_0x32c94f=_0x28f742['getSelectionAffectedTableCells'](_0x202e45),_0x5b4da3=_0x28f742['getColumnIndexes'](_0x32c94f),_0x53afa6=_0x474cc3?_0x5b4da3['first']-0x1:_0x5b4da3['last']+0x1,_0x459ef7=_0x32c94f[0x0]['findAncestor']('table'),_0x3b8365=_0x28f742['createTableWalker'](_0x459ef7,{'startRow':0x0,'column':_0x53afa6,'includeAllSlots':!0x1}),_0x13c8db=Array['from'](_0x3b8365)['map'](_0x52d154=>_0x13ef42['createRangeOn'](_0x52d154['cell']));_0x5a00f3['markMultiRangeInsertion'](_0x13c8db,'tableColumn');});});}for(const _0x50c03d of['removeTableRow','removeTableColumn']){const _0x4e37c9=_0x50c03d['substr'](0xb),_0x213fc8=_0x4e37c9['toLowerCase'](),_0x6e60eb=_0x213fc8['substr'](0x0,0x3)+'span',_0x484d3b='table'+_0x4e37c9,_0x5e5122='min'+_0x4e37c9,_0xaabcae='max'+_0x4e37c9;_0x5a00f3['enableCommand'](_0x50c03d,()=>{_0x3c2cad['model']['change'](_0x2f2368=>{const _0x525855=_0x28f742['getSelectionAffectedTableCells'](_0x202e45),_0x57b59b=_0x525855[0x0]['findAncestor']('table');let _0x92d811;if('removeTableRow'==_0x50c03d){const _0x4b6230=_0x28f742['getRowIndexes'](_0x525855);_0x92d811={'startRow':_0x4b6230['first'],'endRow':_0x4b6230['last'],'includeAllSlots':!0x0};}else{const _0x4b6970=_0x28f742['getColumnIndexes'](_0x525855);_0x92d811={'startColumn':_0x4b6970['first'],'endColumn':_0x4b6970['last'],'includeAllSlots':!0x0};}const _0x508f03=_0x28f742['createTableWalker'](_0x57b59b,_0x92d811),_0xaf3270=Array['from'](_0x508f03)['map'](({cell:_0x11b5cf})=>_0x11b5cf),_0x23d21b=Ne(_0xaf3270['filter'](_0x265814=>_0x265814['hasAttribute'](_0x6e60eb))),_0x135c1b=Ne(_0xaf3270['filter'](_0x3faa5d=>!_0x3faa5d['hasAttribute'](_0x6e60eb)))['map'](_0x54489e=>_0x2f2368['createRangeOn'](_0x54489e)),_0x119dc7=_0x5a00f3['markMultiRangeDeletion'](_0x135c1b,_0x484d3b);if(_0x119dc7&&('tableRow'==_0x119dc7['subType']||'tableColumn'==_0x119dc7['subType'])){const _0xcf0296=this['_getSuggestionCoords'](_0x119dc7);for(const _0x8121 of _0x23d21b){const _0x23247f=_0x2f2368['createRangeOn'](_0x8121),_0x2b117e=_0x28f742['getCellLocation'](_0x8121),_0x4c4d1b=_0x8121['getAttribute'](_0x6e60eb)-0x1,_0x31e1c4=_0xcf0296[_0x5e5122],_0x4fef9e=_0xcf0296[_0xaabcae];_0x31e1c4<=_0x2b117e[_0x213fc8]&&_0x2b117e[_0x213fc8]+_0x4c4d1b<=_0x4fef9e&&_0x119dc7['addRange'](_0x23247f);}}});});}function _0x380b22(_0x544ace){const _0x1027c9=Array['from'](_0x202e45['getRanges']())['map'](_0x177728=>_0x527bd9['fromRange'](_0x177728));_0x3c2cad['model']['change'](_0x1f79a9=>{const _0x421810=_0x1f79a9['batch'];_0x544ace=_0x544ace['filter'](_0x3d9edd=>'$graveyard'!=_0x3d9edd['root']['rootName']),_0x1f79a9['setSelection'](_0x544ace),_0x3c2cad['commands']['get']('removeTableRow')['refresh'](),_0x3c2cad['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3c2cad['model']['enqueueChange'](()=>{_0x3c2cad['model']['enqueueChange'](_0x421810,_0x80b745=>{const _0x2f0f2c=_0x1027c9['filter'](_0x3f4944=>'$graveyard'!=_0x3f4944['root']['rootName']);_0x2f0f2c['length']>0x0&&_0x80b745['setSelection'](_0x2f0f2c);for(const _0x3ad645 of _0x1027c9)_0x3ad645['detach']();});});});}function _0x55b078(_0x36993f){_0x3c2cad['model']['change'](_0xaec7f8=>{const _0x2e8ff1=Array['from'](_0x202e45['getRanges']())['map'](_0x40187b=>_0x527bd9['fromRange'](_0x40187b)),_0x467359=[];for(const _0x3a8d39 of _0x36993f)for(const _0x3bf0f3 of _0x3a8d39['getItems']({'shallow':!0x0}))_0x467359['push'](_0x3bf0f3);for(const _0x4ceeee of _0x467359)'$graveyard'!=_0x4ceeee['root']['rootName']&&(_0xaec7f8['setSelection'](_0xaec7f8['createPositionAt'](_0x4ceeee,0x0)),_0x3c2cad['commands']['get']('removeTableColumn')['refresh'](),_0x3c2cad['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3522da=_0x2e8ff1['filter'](_0x23a11a=>'$graveyard'!=_0x23a11a['root']['rootName']);_0x3522da['length']>0x0&&_0xaec7f8['setSelection'](_0x3522da);for(const _0x139bf9 of _0x2e8ff1)_0x139bf9['detach']();});}function _0x10fbfa(_0x1ce0e8,_0x1a36fc){return _0x1a36fc['every'](_0x496a04=>_0x1ce0e8['some'](_0x43af76=>_0x43af76['end']['isEqual'](_0x496a04['start'])||_0x496a04['end']['isEqual'](_0x43af76['start'])));}function _0x4f7634(_0x4190ec,_0x3b73cd){return!_0x4190ec['some'](_0x4e01bc=>_0x3b73cd['some'](_0x4b4e89=>_0x4e01bc['isIntersecting'](_0x4b4e89)))&&_0x4190ec['some'](_0x816b92=>_0x3b73cd['some'](_0x5322e5=>_0x816b92['end']['isTouching'](_0x5322e5['start'])));}_0x3c2cad['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5c1a04,_0x4b088f,_0x231e23)=>{if(!_0x231e23['options']['showSuggestionHighlights'])return;const _0x2f996f=_0x4b088f['item'];if(!_0x2f996f||!_0x2f996f['is']('element','tableCell'))return;const _0x27d55b=_0x231e23['mapper']['toViewElement'](_0x2f996f);if(_0x27d55b){const {id:_0x26a94b,authorId:_0xaad0d9}=_0x5a00f3['_splitMarkerName'](_0x4b088f['markerName']);_0x3b1108(_0x27d55b,_0x231e23['writer'],(_0x3e6594,_0x3cb7d4,_0x473f1f)=>{_0x473f1f['addClass'](_0x531133(_0x3cb7d4['classes']),_0x3e6594),_0x473f1f['setAttribute']('data-suggestion-id',_0x26a94b,_0x3e6594),_0x473f1f['setAttribute']('data-author-id',_0xaad0d9,_0x3e6594);},(_0x1adea9,_0x32ce13,_0x282982)=>{_0x282982['removeClass'](_0x531133(_0x32ce13['classes']),_0x1adea9),_0x282982['removeAttribute']('data-suggestion-id',_0x1adea9),_0x282982['removeAttribute']('data-author-id',_0x1adea9);});}},{'priority':'highest'}),_0x5a00f3['descriptionFactory']['registerDescriptionCallback'](_0x42dde8=>{if('insertion'!=_0x42dde8['type']&&'deletion'!=_0x42dde8['type'])return;const _0x3c5ec0=_0x42dde8['getContainedElement']();if(null!=_0x3c5ec0&&_0x3c5ec0['is']('element','table')){if('insertion'==_0x42dde8['type']){const _0x245f62=_0x42dde8['getItems']()['filter'](_0x5d4e5e=>_0x5d4e5e['is']('$textProxy'))['map'](_0x7feb0d=>_0x7feb0d['data']);if(_0x245f62['length'])return{'type':'insertion','content':o(_0x3f766f,'*Insert:*\x20%0',o(_0x3f766f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x245f62['join']('\x20')+'\x22'))};}if('deletion'==_0x42dde8['type']){const _0x45b84a=_0x42dde8['getItems']()['filter'](_0x16018a=>_0x16018a['is']('$textProxy'))['map'](_0x134814=>_0x134814['data']);if(_0x45b84a['length'])return{'type':'deletion','content':o(_0x3f766f,'*Remove:*\x20%0',o(_0x3f766f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x45b84a['join']('\x20')+'\x22'))};}}}),_0x5a00f3['descriptionFactory']['registerDescriptionCallback'](_0x56087a=>{if('tableRow'==_0x56087a['subType']){const _0x101a7b=_0x56087a['getItems']()['filter'](_0x3f8d47=>_0x3f8d47['is']('$textProxy'))['map'](_0x40d098=>_0x40d098['data']),_0xe31c9=this['_getSuggestionCoords'](_0x56087a),_0x351ac0=_0xe31c9['maxRow']-_0xe31c9['minRow']+0x1;if('insertion'==_0x56087a['type'])return _0x101a7b['length']?{'type':'insertion','content':o(_0x3f766f,'*Insert:*\x20%0',o(_0x3f766f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x351ac0,'\x22'+_0x101a7b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3f766f,'*Insert:*\x20%0',o(_0x3f766f,'ELEMENT_TABLE_ROW',_0x351ac0))};if('deletion'==_0x56087a['type'])return _0x101a7b['length']?{'type':'deletion','content':o(_0x3f766f,'*Remove:*\x20%0',o(_0x3f766f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x351ac0,'\x22'+_0x101a7b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3f766f,'*Remove:*\x20%0',o(_0x3f766f,'ELEMENT_TABLE_ROW',_0x351ac0))};}if('tableColumn'==_0x56087a['subType']){const _0x16a6d9=_0x56087a['getItems']()['filter'](_0x588055=>_0x588055['is']('$textProxy'))['map'](_0x3a2adb=>_0x3a2adb['data']),_0x3422cc=this['_getSuggestionCoords'](_0x56087a),_0x102dce=_0x3422cc['maxColumn']-_0x3422cc['minColumn']+0x1;if('insertion'==_0x56087a['type'])return _0x16a6d9['length']?{'type':'insertion','content':o(_0x3f766f,'*Insert:*\x20%0',o(_0x3f766f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x102dce,'\x22'+_0x16a6d9['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3f766f,'*Insert:*\x20%0',o(_0x3f766f,'ELEMENT_TABLE_COLUMN',_0x102dce))};if('deletion'==_0x56087a['type'])return _0x16a6d9['length']?{'type':'deletion','content':o(_0x3f766f,'*Remove:*\x20%0',o(_0x3f766f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x102dce,'\x22'+_0x16a6d9['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3f766f,'*Remove:*\x20%0',o(_0x3f766f,'ELEMENT_TABLE_COLUMN',_0x102dce))};}}),_0x5a00f3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x380b22),_0x5a00f3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x380b22),_0x5a00f3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x55b078),_0x5a00f3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x55b078),_0x5a00f3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x10fbfa),_0x5a00f3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x10fbfa),_0x5a00f3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4f7634),_0x5a00f3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4f7634);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5c60dd=this['editor'],_0x20657c=_0x5c60dd['model']['document']['selection'];return(_0x41fc14,_0x4eb29e)=>{_0x5c60dd['model']['change'](_0x58f1ef=>{const {commandName:_0x21ee0a,commandParams:_0x5d5c00}=_0x4eb29e;let _0x45fcf4=_0x41fc14[0x0]['end']['nodeBefore'];_0x5d5c00&&_0x5d5c00[0x0]&&!0x1===_0x5d5c00[0x0]['forceValue']&&(_0x45fcf4=_0x41fc14[0x0]['start']['nodeAfter']);const _0x54d6c9=_0x58f1ef['createRangeIn'](_0x45fcf4);if('$graveyard'==_0x54d6c9['root']['rootName'])return;const _0xb2d33=Array['from'](_0x20657c['getRanges']())['map'](_0x4c45fd=>_0x527bd9['fromRange'](_0x4c45fd));_0x58f1ef['setSelection'](_0x54d6c9),_0x5c60dd['commands']['get'](_0x21ee0a)['refresh'](),_0x5d5c00['push']({'forceDefaultExecution':!0x0}),_0x5c60dd['execute'](_0x21ee0a,..._0x5d5c00);const _0x233057=_0xb2d33['filter'](_0x5650c8=>'$graveyard'!=_0x5650c8['root']['rootName']);_0x233057['length']>0x0&&_0x58f1ef['setSelection'](_0x233057);for(const _0x562211 of _0xb2d33)_0x562211['detach']();});};}['_getCoordsForCells'](_0x1245eb){const _0x482a3f=this['editor']['plugins']['get']('TableUtils');let _0xb80c89=Number['MAX_SAFE_INTEGER'],_0x157e12=Number['MIN_SAFE_INTEGER'],_0x356225=Number['MAX_SAFE_INTEGER'],_0x1d79f7=Number['MIN_SAFE_INTEGER'];for(const _0x5505db of _0x1245eb){if('$graveyard'==_0x5505db['root']['rootName'])continue;const {row:_0x2fe24b,column:_0x467400}=_0x482a3f['getCellLocation'](_0x5505db),_0x1b169e=_0x5505db['hasAttribute']('rowspan')?_0x5505db['getAttribute']('rowspan')-0x1:0x0,_0x20e5df=_0x5505db['hasAttribute']('colspan')?_0x5505db['getAttribute']('colspan')-0x1:0x0;_0xb80c89=_0x2fe24b<_0xb80c89?_0x2fe24b:_0xb80c89,_0x157e12=_0x2fe24b+_0x1b169e>_0x157e12?_0x2fe24b+_0x1b169e:_0x157e12,_0x356225=_0x467400<_0x356225?_0x467400:_0x356225,_0x1d79f7=_0x467400+_0x20e5df>_0x1d79f7?_0x467400+_0x20e5df:_0x1d79f7;}return{'minRow':_0xb80c89,'maxRow':_0x157e12,'minColumn':_0x356225,'maxColumn':_0x1d79f7};}['_setupColumnsRowsFixing'](){const _0x4e4711=this['editor'],_0x414168=_0x4e4711['plugins']['get']('TrackChangesEditing'),_0x356c75=_0x4e4711['plugins']['get']('TableUtils');_0x4e4711['model']['document']['on']('change:data',()=>{const _0x5b9f39=Array['from'](_0x4e4711['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x51263a,data:_0x59735d}of _0x5b9f39){const {group:_0x2eb684,id:_0x4f22ca,subType:_0x3716da}=_0x414168['_splitMarkerName'](_0x51263a);if('suggestion'!=_0x2eb684)continue;if(null!=_0x59735d['oldRange'])continue;const _0x25c797=_0x414168['getSuggestion'](_0x4f22ca);this['_tablePostFixingSubtypes']['includes'](_0x3716da)&&this['_tableSuggestions']['add'](_0x25c797);}},{'priority':'low'});const _0x5244e4=(_0x2ce607,_0x451c71)=>{let _0x22abdf=!0x1;const _0x343b7c=_0x451c71['createRangeOn'](_0x2ce607),_0x941635=_0x2ce607['findAncestor']('table'),_0x599d6e=_0x356c75['getCellLocation'](_0x2ce607);for(const _0x3c8f7b of this['_tableSuggestions']){const _0x4a821e=_0x3c8f7b['subType'],_0x105b4a=_0x4a821e['startsWith']('tablePaste'),_0x3dd377=_0x4a821e['substr'](_0x105b4a?0xa:0x5),_0x1a6beb=_0x3dd377['toLowerCase'](),_0xb4f26a=_0x1a6beb['substr'](0x0,0x3)+'span',_0x495e31='min'+_0x3dd377,_0x3a63c8='max'+_0x3dd377;if(!_0x3c8f7b['isInContent'])continue;if(_0x941635!=_0x3c8f7b['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3c8f7b['isIntersectingWithRange'](_0x343b7c))continue;const _0x2ff117=_0x2ce607['hasAttribute'](_0xb4f26a)?_0x2ce607['getAttribute'](_0xb4f26a)-0x1:0x0,_0x158af7=this['_getSuggestionCoords'](_0x3c8f7b),_0x4f5005=_0x158af7[_0x495e31],_0x10c2e5=_0x158af7[_0x3a63c8];_0x4f5005<=_0x599d6e[_0x1a6beb]&&_0x599d6e[_0x1a6beb]+_0x2ff117<=_0x10c2e5&&(_0x3c8f7b['addRange'](_0x343b7c),_0x22abdf=!0x0);}return _0x22abdf;};_0x4e4711['model']['document']['registerPostFixer'](_0x17d3dc=>{let _0x124a49=!0x1;for(const _0x505f09 of _0x4e4711['model']['document']['differ']['getChanges']())if('insert'==_0x505f09['type']){if('tableRow'==_0x505f09['name']){for(const _0x11cca2 of _0x505f09['position']['nodeAfter']['getChildren']())_0x124a49=_0x124a49||_0x5244e4(_0x11cca2,_0x17d3dc);}else'tableCell'==_0x505f09['name']&&(_0x124a49=_0x124a49||_0x5244e4(_0x505f09['position']['nodeAfter'],_0x17d3dc));}return _0x124a49;});}['_getSuggestionCoords'](_0x3cc5a4){return this['_getCoordsForCells'](_0x3cc5a4['getRanges']()['map'](_0x176574=>_0x176574['start']['nodeAfter']));}}function Ne(_0x3748ff){return Array['from'](new Set(_0x3748ff)['values']());}class Ct extends _0x5d906a{static get['requires'](){return[_t];}['afterInit'](){const _0x32026a=this['editor'],_0x3d090d=_0x32026a['model']['document']['selection'],_0xb58baa=_0x32026a['locale'];if(!_0x32026a['plugins']['has']('TableEditing'))return;const _0x331ae0=_0x32026a['plugins']['get']('TrackChangesEditing'),_0x52b5fe=_0x32026a['plugins']['get']('TableUtils'),_0x342d67=_0x32026a['plugins']['get'](_t);_0x342d67['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x331ae0['enableCommand']('mergeTableCells',()=>{const _0x2cf2b8=_0x52b5fe['getSelectionAffectedTableCells'](_0x32026a['model']['document']['selection']);_0x32026a['model']['change'](()=>{_0x331ae0['markMultiRangeBlockFormat'](_0x2cf2b8,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x32026a['commands']['get']('mergeTableCells')['on']('execute',(_0xf2bbf7,_0x5df744)=>{_0x32026a['commands']['get']('trackChanges')['value']&&(_0x5df744['length']>0x0&&_0x5df744[_0x5df744['length']-0x1]&&_0x5df744[_0x5df744['length']-0x1]['forceDefaultExecution']||_0x331ae0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xf2bbf7['stop']());},{'priority':'highest'});for(const _0x21d37b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x37feb3=_0x32026a['commands']['get'](_0x21d37b);_0x331ae0['enableCommand'](_0x21d37b,()=>{const _0x5bb477=_0x32026a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4f3d87=>_0x4f3d87['is']('element','tableCell')),_0x5df50a=_0x37feb3['value'];_0x32026a['model']['change'](()=>{_0x331ae0['markMultiRangeBlockFormat']([_0x5bb477,_0x5df50a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x31a026 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x10cf5d=_0x32026a['commands']['get'](_0x31a026);_0x331ae0['enableCommand'](_0x31a026,()=>{const _0x4b8965=_0x52b5fe['getSelectionAffectedTableCells'](_0x32026a['model']['document']['selection'])[0x0],_0x5b7c62=_0x4b8965['findAncestor']('table'),{column:_0x3f8c8a,row:_0x13f961}=_0x52b5fe['getCellLocation'](_0x4b8965);let _0x5b38cf=[];if('horizontally'==_0x10cf5d['direction']){const _0x83dc6e=_0x52b5fe['createTableWalker'](_0x5b7c62,{'startRow':_0x13f961,'endRow':_0x13f961,'includeAllSlots':!0x0});_0x5b38cf=Array['from'](_0x83dc6e)['map'](_0x1765e3=>_0x1765e3['cell']);}else{const _0x35674a=_0x52b5fe['createTableWalker'](_0x5b7c62,{'column':_0x3f8c8a,'includeAllSlots':!0x0});_0x5b38cf=Array['from'](_0x35674a)['map'](_0x413152=>_0x413152['cell']);}_0x32026a['model']['change'](_0x494c5a=>{_0x331ae0['markBlockFormat'](_0x494c5a['createRangeOn'](_0x4b8965),{'commandName':_0x31a026,'commandParams':[]},_0x5b38cf,_0x31a026);});});}_0x331ae0['descriptionFactory']['registerDescriptionCallback'](_0x3cc721=>{if('formatBlock'!=_0x3cc721['type']&&'formatInline'!=_0x3cc721['type'])return;const {data:_0x43cb75}=_0x3cc721;return _0x43cb75&&'mergeTableCells'==_0x43cb75['commandName']?{'type':'format','content':o(_0xb58baa,'*Merge\x20cells*')}:void 0x0;}),_0x331ae0['descriptionFactory']['registerDescriptionCallback'](_0x260bbc=>{if('formatBlock'!=_0x260bbc['type']&&'formatInline'!=_0x260bbc['type'])return;const {data:_0x15162f}=_0x260bbc;return _0x15162f?'splitTableCellVertically'==_0x15162f['commandName']?{'type':'format','content':o(_0xb58baa,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x15162f['commandName']?{'type':'format','content':o(_0xb58baa,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x253ea5=_0x342d67['_acceptFormatSuggestionCallbackFactory']();for(const _0x34dab2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x331ae0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x34dab2,'accept',_0x253ea5);for(const _0xabcb3a of['splitTableCellVertically','splitTableCellHorizontally'])_0x331ae0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xabcb3a,'accept',_0x253ea5);_0x331ae0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x9bc2a3=>{_0x32026a['model']['change'](_0x17f9cd=>{const _0x11f2d7=Array['from'](_0x3d090d['getRanges']())['map'](_0x46c31d=>_0x527bd9['fromRange'](_0x46c31d));_0x17f9cd['setSelection'](_0x9bc2a3),_0x32026a['commands']['get']('mergeTableCells')['refresh'](),_0x32026a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5b1563=_0x11f2d7['filter'](_0x2d184a=>'$graveyard'!=_0x2d184a['root']['rootName']);_0x5b1563['length']>0x0&&_0x17f9cd['setSelection'](_0x5b1563);for(const _0x1b036a of _0x11f2d7)_0x1b036a['detach']();});});for(const _0x3f7498 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x387078=_0x32026a['commands']['get'](_0x3f7498);_0x387078['on']('set:isEnabled',(_0xf3235c,_0x2e9560,_0x566e13)=>{if(_0x566e13){const _0x46e47d=_0x32026a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x195ce9=>_0x195ce9['is']('element','tableCell'));this['_areMergableCells'](_0x387078['value'],_0x46e47d)||(_0xf3235c['return']=!0x1,_0xf3235c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4ea30f=this['editor']['commands']['get']('mergeTableCells'),_0x4ad183=this['editor']['plugins']['get']('TableUtils');if(!_0x4ea30f['isEnabled'])return!0x1;const _0x75020d=_0x4ad183['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3a914e of _0x75020d)for(const _0x12d15e of _0x75020d)if(_0x3a914e!=_0x12d15e&&!this['_areMergableCells'](_0x3a914e,_0x12d15e))return!0x1;return!0x0;}['_areMergableCells'](_0x3626db,_0x2c4ac7){const _0x4aa32b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50b1c3=this['editor']['model']['createRangeOn'](_0x3626db),_0x5826e8=this['editor']['model']['createRangeOn'](_0x2c4ac7),_0x2b00d9=new Set(),_0x34dd33=new Set();for(const _0x30cbc3 of _0x4aa32b['getSuggestions']())if(('insertion'==_0x30cbc3['type']||'deletion'==_0x30cbc3['type']||'mergeTableCells'==_0x30cbc3['subType'])&&_0x30cbc3['isInContent']){for(const _0x3b8731 of _0x30cbc3['getRanges']())_0x3b8731['containsRange'](_0x50b1c3,!0x0)&&_0x2b00d9['add'](_0x30cbc3['type']+':'+_0x30cbc3['author']['id']),_0x3b8731['containsRange'](_0x5826e8,!0x0)&&_0x34dd33['add'](_0x30cbc3['type']+':'+_0x30cbc3['author']['id']);}if(_0x2b00d9['size']!=_0x34dd33['size'])return!0x1;for(const _0xe4a208 of _0x2b00d9)if(!_0x34dd33['has'](_0xe4a208))return!0x1;return!0x0;}}class vt extends _0x5d906a{static get['requires'](){return[_t];}['afterInit'](){const _0x3d479a=this['editor'];if(!_0x3d479a['plugins']['has']('TableEditing'))return;const _0x1ef5ed=_0x3d479a['locale'],_0x2bb622=_0x3d479a['plugins']['get']('TrackChangesEditing');_0x2bb622['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2bb622['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2bb622['registerBlockAttribute']('headingRows'),_0x2bb622['registerBlockAttribute']('headingColumns'),_0x2bb622['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1ef5ed,'FORMAT_HEADER_ROW')),_0x2bb622['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1ef5ed,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x31f930=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b7bd9=this['editor']['plugins']['get']('TableUtils'),_0x3d7ea9=this['editor']['plugins']['get'](_t)['_acceptFormatSuggestionCallbackFactory']();function _0x3a4f89({showActiveMarker:_0x5ed092=!0x0,setDataAttribute:_0x2b0ffd=!0x0}={}){return(_0x5ad79c,_0x413bc9,_0x5eabea)=>{const {type:_0xb73b9e,id:_0x2917aa}=_0x31f930['_splitMarkerName'](_0x413bc9['markerName']),_0x5c5662=_0x31f930['getSuggestion'](_0x2917aa),_0x34a1c6=_0x5c5662['data'];if('formatBlock'!=_0x5c5662['type']||!_0x34a1c6||'setTableColumnHeader'!=_0x34a1c6['commandName'])return;if(_0x413bc9['item'])return void _0x5ad79c['stop']();if(!_0x5eabea['consumable']['consume'](_0x413bc9['markerRange'],_0x5ad79c['name']))return;const _0x53bfd0=_0x413bc9['markerRange']['start']['nodeAfter'],_0x6c24ad=_0x413bc9['markerRange']['end']['nodeBefore'],_0x2b2ad6=_0x53bfd0['parent']['parent'],{column:_0x6f8f77}=_0x2b7bd9['getCellLocation'](_0x53bfd0),{column:_0x3561c8}=_0x2b7bd9['getCellLocation'](_0x6c24ad);for(let _0x487e6c=_0x6f8f77;_0x487e6c<=_0x3561c8;_0x487e6c++){const _0x1de697=_0x2b7bd9['createTableWalker'](_0x2b2ad6,{'column':_0x487e6c,'includeAllSlots':!0x1});for(const _0x2ddefc of _0x1de697){const _0x485790=_0x2ddefc['cell'],_0x7061a6=_0x5eabea['mapper']['toViewElement'](_0x485790);_0x5eabea['writer']['addClass']('ck-suggestion-marker-'+_0xb73b9e,_0x7061a6),_0x2b0ffd&&_0x5eabea['writer']['setAttribute']('data-suggestion',_0x2917aa,_0x7061a6),_0x5eabea['mapper']['bindElementToMarker'](_0x7061a6,_0x413bc9['markerName']),_0x5ed092&&(_0x31f930['activeMarkers']['includes'](_0x413bc9['markerName'])?_0x5eabea['writer']['addClass']('ck-suggestion-marker--active',_0x7061a6):_0x5eabea['writer']['removeClass']('ck-suggestion-marker--active',_0x7061a6));}}};}_0x31f930['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3d7ea9),_0x31f930['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3d7ea9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3a4f89(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x51af2d,_0x3871f2,_0x3cdcf7)=>{_0x3cdcf7['options']['showSuggestionHighlights']&&_0x3a4f89({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x51af2d,_0x3871f2,_0x3cdcf7);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4763bc,_0x51e252,_0x2461ea)=>{const {type:_0x49dc2f,id:_0x24389a}=_0x31f930['_splitMarkerName'](_0x51e252['markerName']),_0x3e6e9c=_0x31f930['getSuggestion'](_0x24389a),_0x175e8b=_0x3e6e9c['data'];if('formatBlock'!=_0x3e6e9c['type']||!_0x175e8b||'setTableColumnHeader'!=_0x175e8b['commandName'])return;const _0x51ca2=_0x2461ea['mapper']['markerNameToElements'](_0x51e252['markerName']);if(_0x51ca2){for(const _0x4a9a84 of _0x51ca2)_0x2461ea['writer']['removeClass']('ck-suggestion-marker-'+_0x49dc2f,_0x4a9a84),_0x2461ea['writer']['removeClass']('ck-suggestion-marker--active',_0x4a9a84),_0x2461ea['writer']['removeAttribute']('data-suggestion',_0x4a9a84),_0x2461ea['mapper']['unbindElementFromMarkerName'](_0x4a9a84,_0x51e252['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c2e0c=this['editor'],_0xaf70c6=_0x4c2e0c['locale'];function _0x3a776f(_0x2b37e6){return{'type':'format','content':o(_0xaf70c6,'*Format:*\x20%0',_0x2b37e6)};}_0x4c2e0c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x852cf3=>{if('formatBlock'!=_0x852cf3['type'])return;const {data:_0x5949a6}=_0x852cf3;if(_0x5949a6){if('setTableRowHeader'==_0x5949a6['commandName']){const _0x1c79f2=_0x5949a6['commandParams'][0x0]['forceValue'];return _0x3a776f(o(_0xaf70c6,_0x1c79f2?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5949a6['commandName']){const _0x159039=_0x5949a6['commandParams'][0x0]['forceValue'];return _0x3a776f(o(_0xaf70c6,_0x159039?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Nt extends _0x5d906a{['afterInit'](){const _0x318659=this['editor'],_0x3e6800=_0x318659['locale'],_0x378899=_0x318659['plugins']['get']('TrackChangesEditing');function _0x5e8334(_0x47160f){return{'type':'format','content':''+o(_0x3e6800,'*Set\x20table\x20type:*\x20%0',_0x47160f)};}_0x318659['plugins']['has']('TableLayout')&&(_0x378899['enableCommand']('insertTableLayout'),_0x378899['enableDefaultAttributesIntegration']('tableType'),_0x378899['registerBlockAttribute']('tableType'),_0x378899['descriptionFactory']['registerElementLabel'](_0x43319c=>_0x43319c['is']('element','table')&&'layout'===_0x43319c['getAttribute']('tableType'),_0xa6e038=>o(_0x3e6800,'ELEMENT_LAYOUT_TABLE',_0xa6e038)),_0x378899['descriptionFactory']['registerDescriptionCallback'](_0x5084a7=>{const {data:_0x2f044c}=_0x5084a7;if(_0x2f044c&&'tableType'==_0x2f044c['key'])switch(_0x2f044c['newValue']){case'layout':return _0x5e8334(o(_0x3e6800,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5e8334(o(_0x3e6800,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](xe['map'](_0x1c31ec=>[_0x1c31ec,null]));class Dt extends _0x5d906a{static get['requires'](){return[_t];}['afterInit'](){const _0x58b466=this['editor'];if(!_0x58b466['plugins']['has']('TableClipboard'))return;const _0x3cb350=_0x58b466['plugins']['get']('TrackChangesEditing'),_0x3becf3=_0x58b466['plugins']['get']('TableUtils'),_0x4eb1d4=_0x58b466['plugins']['get'](_t),_0x1941bd=_0x58b466['plugins']['get']('TableClipboard'),_0x5bdba9=_0x58b466['plugins']['get']('TableSelection'),_0x350dba=_0x58b466['plugins']['get'](_0x411592);_0x4eb1d4['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x58b466['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x58b466['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1a7ed7=null,_0x2032ba=!0x1;_0x350dba['on']('contentInsertion',(_0x1c158f,_0x2d238b)=>{_0x2032ba='paste'===_0x2d238b['method'];}),_0x58b466['model']['on']('insertContent',(_0x3cf7fa,_0x457b7f)=>{if(!_0x2032ba&&null===_0x5bdba9['getSelectedTableCells']())return;const [_0x2c1219,_0x4f9aaa]=_0x457b7f,_0x193862=_0x457b7f[_0x457b7f['length']-0x1];_0x193862&&_0x193862['forceDefaultExecution']||_0x3cb350['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3af82a,_0x401fa3,_0x5326ee,_0x2d3b46,_0x5eb5e7){if(_0x401fa3&&!_0x401fa3['is']('documentSelection'))return!0x1;const _0x173abf=_0x5eb5e7['getTableIfOnlyTableInContent'](_0x3af82a,_0x5326ee);if(!_0x173abf||!De(_0x173abf,void 0x0,_0x2d3b46))return!0x1;const _0x3c5f3d=_0x2d3b46['getSelectionAffectedTableCells'](_0x5326ee['document']['selection']);if(!_0x3c5f3d['length'])return!0x1;const _0x460647=_0x3c5f3d[0x0]['findAncestor']('table'),_0x3476f4=_0x2d3b46['getRowIndexes'](_0x3c5f3d),_0x3b0151=_0x2d3b46['getColumnIndexes'](_0x3c5f3d),_0x344934={'startRow':_0x3476f4['first'],'endRow':_0x3476f4['last'],'startColumn':_0x3b0151['first'],'endColumn':_0x3b0151['last']};return 0x1==_0x3c5f3d['length']&&(_0x344934['endRow']+=_0x2d3b46['getRows'](_0x173abf)-0x1,_0x344934['endColumn']+=_0x2d3b46['getColumns'](_0x173abf)-0x1),De(_0x460647,_0x344934,_0x2d3b46);}(_0x2c1219,_0x4f9aaa,_0x58b466['model'],_0x3becf3,_0x1941bd)&&(_0x3cf7fa['stop'](),_0x1a7ed7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x58b466['model']['change'](()=>{_0x58b466['model']['insertContent'](_0x457b7f[0x0],_0x457b7f[0x1],_0x457b7f[0x2],{'forceDefaultExecution':!0x0});const _0x161e6a=_0x4fc05b(),{rowInsertionRanges:_0x2e033a,columnInsertionRanges:_0xc09f80,insertionRanges:_0x28ccd8,deletionRanges:_0x117d9e,cells:_0x7284cd}=_0x1a7ed7;_0x2e033a['length']&&_0x3cb350['markMultiRangeInsertion'](_0x2e033a,'tablePasteRow',{'tablePasteChainId':_0x161e6a}),_0xc09f80['length']&&_0x3cb350['markMultiRangeInsertion'](_0xc09f80,'tablePasteColumn',{'tablePasteChainId':_0x161e6a}),_0x28ccd8['length']&&(_0x3cb350['markMultiRangeInsertion'](_0x28ccd8,'tablePaste',{'tablePasteChainId':_0x161e6a,'skipNestingCheck':!0x0}),_0x28ccd8['forEach'](_0x5b3295=>_0x5b3295['detach']?.())),_0x117d9e['length']&&(_0x3cb350['markMultiRangeDeletion'](_0x117d9e,'tablePaste',{'tablePasteChainId':_0x161e6a,'skipNestingCheck':!0x0}),_0x117d9e['forEach'](_0x3f0b6c=>_0x3f0b6c['detach']?.()));const _0x4cf877=_0x3cb350['markMultiRangeBlockFormat'](_0x7284cd['map'](({element:_0x1d1701})=>_0x1d1701),{'formatGroupId':_0x4fc05b()},[],'tablePasteCell',{'tablePasteChainId':_0x161e6a});if(_0x4cf877){const _0x31c169=_0x4cf877['getMarkers'](),_0x5a0d84=[];for(const {element:_0x1d3767,attributes:_0x2f6362}of _0x7284cd){if(!_0x2f6362)continue;const _0x46c6a3=_0x58b466['model']['createRangeOn'](_0x1d3767),_0x5c4420=_0x31c169['find'](_0xe7b228=>_0xe7b228['getRange']()['isEqual'](_0x46c6a3));_0x5c4420&&_0x5a0d84['push']([_0x5c4420['name'],_0x2f6362]);}_0x5a0d84['length']&&_0x4cf877['setAttribute']('markerAttributes',Object['fromEntries'](_0x5a0d84));}_0x1a7ed7=null;}));},{'priority':_0x3f1657['high']+0xa}),_0x350dba['on']('contentInsertion',()=>{_0x2032ba=!0x1;},{'priority':'lowest'}),_0x58b466['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xaf1b20,_0x5f2600)=>{const [_0x3e5507,_0x173b3d,,_0x35804e]=_0x5f2600;if(!_0x1a7ed7)return;_0xaf1b20['stop']();const _0xca8667=_0x3e5507['cell'],_0x1c619d=_0x173b3d,_0x377892=Ue(_0xca8667),_0x47a8b8=Ue(_0x1c619d);_0xaf1b20['return']=_0xca8667;let _0x8f0c93=null,_0x100f0f=null;if(_0x47a8b8||_0x377892){if(_0x377892&&!_0x47a8b8){_0x35804e['remove'](_0xca8667['getChild'](0x0));for(const _0x411153 of Array['from'](_0x1c619d['getChildren']()))_0x35804e['insert'](_0x411153,_0xca8667,'end');const _0x17c07f=_0x1a7ed7['rowInsertionIndexes']['includes'](_0x3e5507['row']),_0x478ee4=_0x1a7ed7['columnInsertionIndexes']['includes'](_0x3e5507['column']);_0x17c07f||_0x478ee4||(_0x8f0c93=_0x527bd9['fromRange'](_0x35804e['createRangeIn'](_0xca8667)));}else _0x47a8b8&&!_0x377892&&(_0x100f0f=_0x35804e['createRangeIn'](_0xca8667));}else{const _0x21da86=_0x35804e['createElement']('tableCellSuggestion'),_0x5e0e01=_0x35804e['createElement']('tableCellSuggestion');_0x35804e['wrap'](_0x35804e['createRangeIn'](_0xca8667),_0x5e0e01),_0x35804e['insert'](_0x21da86,_0xca8667,0x0);for(const _0x4af269 of Array['from'](_0x1c619d['getChildren']()))_0x35804e['insert'](_0x4af269,_0x21da86,'end');_0x8f0c93=_0x527bd9['fromRange'](_0x35804e['createRangeOn'](_0x21da86)),_0x100f0f=_0x527bd9['fromRange'](_0x35804e['createRangeOn'](_0x5e0e01));}const _0x1e71f5=Array['from'](_0x1c619d['getAttributes']())['filter'](([_0x3ea58c])=>xe['includes'](_0x3ea58c));_0x1a7ed7['cells']['push']({'element':_0xca8667,'attributes':_0x1e71f5['length']?Object['fromEntries'](_0x1e71f5):null}),_0x8f0c93&&_0x1a7ed7['insertionRanges']['push'](_0x8f0c93),_0x100f0f&&_0x1a7ed7['deletionRanges']['push'](_0x100f0f);},{'priority':'high'}),_0x3becf3['on']('insertColumns',(_0x22d862,_0x469070)=>{const [_0x1ec1cc,_0x447b17={}]=_0x469070;if(!_0x1a7ed7)return;const _0x48d481=_0x447b17['at']||0x0,_0x3cbd18=_0x447b17['columns']||0x1;_0x1a7ed7['columnInsertionIndexes']=new Array(_0x3cbd18)['fill'](_0x48d481)['map']((_0x107612,_0x56c128)=>_0x107612+_0x56c128);for(const {cell:_0x2acc4a}of _0x3becf3['createTableWalker'](_0x1ec1cc,{'startColumn':_0x48d481,'endColumn':_0x48d481+_0x3cbd18-0x1}))_0x1a7ed7['columnInsertionRanges']['push'](_0x58b466['model']['createRangeOn'](_0x2acc4a));},{'priority':'low'}),_0x3becf3['on']('insertRows',(_0x4f503c,_0x107446)=>{const [_0x2af366,_0x4cadf8={}]=_0x107446;if(!_0x1a7ed7)return;const _0x5852c9=_0x4cadf8['at']||0x0,_0xa44aa4=_0x4cadf8['rows']||0x1;_0x1a7ed7['rowInsertionIndexes']=new Array(_0xa44aa4)['fill'](_0x5852c9)['map']((_0x21a165,_0x22011b)=>_0x21a165+_0x22011b);for(const {cell:_0x461251}of _0x3becf3['createTableWalker'](_0x2af366,{'startRow':_0x5852c9,'endRow':_0x5852c9+_0xa44aa4-0x1}))_0x1a7ed7['rowInsertionRanges']['push'](_0x58b466['model']['createRangeOn'](_0x461251));},{'priority':'low'}),_0x3cb350['descriptionFactory']['registerDescriptionCallback'](_0x4663c8=>{if(_0x4663c8['subType']&&_0x4663c8['subType']['startsWith']('tablePaste'))return _0x4663c8['previous']?{}:{'type':'insertion','content':o(_0x58b466['locale'],'*Replace\x20table\x20cells*')};});const _0x57fe5a=()=>!0x1;for(const _0x390129 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3cb350['_suggestionFactory']['registerCustomCallback']('insertion',_0x390129,'join',_0x57fe5a),_0x3cb350['_suggestionFactory']['registerCustomCallback']('deletion',_0x390129,'join',_0x57fe5a),_0x3cb350['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x390129,'join',_0x57fe5a);_0x3cb350['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x57fe5a),_0x3cb350['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x28f33d,_0x4f5967,_0x1dd36c)=>{const _0x4f277a=_0x28f33d['map'](_0x3f3996=>_0x3f3996['getContainedElement']())['filter'](_0x3bb167=>_0x3bb167),_0x282a98=new Map(_0x4f277a['map'](_0x386201=>[_0x386201,null]));if(_0x1a7ed7){for(const {element:_0x26aa90,attributes:_0x1282f6}of _0x1a7ed7['cells'])_0x1282f6&&_0x282a98['set'](_0x26aa90,_0x1282f6);}else{if(_0x1dd36c&&_0x1dd36c['markerAttributes'])for(const [_0x6985d6,_0x51cd26]of Object['entries'](_0x1dd36c['markerAttributes'])){const _0x1fd076=_0x58b466['model']['markers']['get'](_0x6985d6),_0x2507d5=_0x1fd076?_0x1fd076['getRange']()['getContainedElement']():null;_0x2507d5&&_0x282a98['set'](_0x2507d5,_0x51cd26);}}_0x58b466['model']['change'](_0x239201=>{for(const [_0x18d1f3,_0x193280]of _0x282a98)_0x239201['setAttributes']({...Oe,..._0x193280},_0x18d1f3);});});const _0x5599f4=(_0xc6a1d8,_0x3f2a37)=>{_0x3cb350['_suggestionFactory']['registerCustomCallback'](_0xc6a1d8,'tablePaste',_0x3f2a37,(_0x104fde,_0x2e870f,_0x2de5c9)=>{_0x58b466['model']['change'](_0xf3da45=>{const _0x4546bf=[];for(const _0x37d533 of _0x104fde){const _0x387ca9=_0x37d533['start']['nodeAfter'];_0x387ca9['is']('element','tableCellSuggestion')&&_0x4546bf['push'](_0x387ca9);}_0x3cb350['_suggestionFactory']['getSuggestionCallback'](_0xc6a1d8,null,_0x3f2a37)(_0x104fde,_0x2e870f,_0x2de5c9);for(const _0x359b7a of _0x4546bf)'$graveyard'!=_0x359b7a['root']['rootName']&&_0xf3da45['unwrap'](_0x359b7a);});});};_0x5599f4('insertion','accept'),_0x5599f4('insertion','discard'),_0x5599f4('deletion','accept'),_0x5599f4('deletion','discard'),_0x3cb350['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4f76b0=>{const _0x48604f=_0x4f76b0['map'](_0x3f8c4b=>_0x3f8c4b['getContainedElement']()),_0x59e0b2=_0x48604f[0x0]['findAncestor']('table'),{minRow:_0x57d782,maxRow:_0x5874bf}=_0x4eb1d4['_getCoordsForCells'](_0x48604f);_0x3becf3['removeRows'](_0x59e0b2,{'at':_0x57d782,'rows':_0x5874bf-_0x57d782+0x1});}),_0x3cb350['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x8eeee5=>{const _0x3a995f=_0x8eeee5['map'](_0x5745c2=>_0x5745c2['getContainedElement']()),_0x97663b=_0x3a995f[0x0]['findAncestor']('table'),{minColumn:_0x36877b,maxColumn:_0x2f0bdc}=_0x4eb1d4['_getCoordsForCells'](_0x3a995f);_0x3becf3['removeColumns'](_0x97663b,{'at':_0x36877b,'columns':_0x2f0bdc-_0x36877b+0x1});});const _0x396d4d=(_0x3a3491,_0x3a6591)=>{if(!_0x3a6591['subType']||!_0x3a6591['subType']['startsWith']('tablePaste'))return;const _0x1e1f8b=_0x3a6591['attributes']['tablePasteChainId'],_0x23592b=_0x3cb350['getSuggestions']()['filter'](_0x1b8f39=>_0x1b8f39['isInContent']&&_0x1b8f39['attributes']&&_0x1b8f39['attributes']['tablePasteChainId']==_0x1e1f8b);_0x23592b['length']&&_0x3a6591['getAllAdjacentSuggestions']()['length']!=_0x23592b['length']&&_0x23592b['reduce']((_0x141ed2,_0x1b28ac)=>(_0x141ed2['next']=_0x1b28ac,_0x1b28ac['previous']=_0x141ed2,_0x1b28ac));};function _0x348322(_0x15d355,_0x3b3b00=!0x0){const {id:_0x2d6812,authorId:_0x591329}=_0x3cb350['_splitMarkerName'](_0x15d355['markerName']),_0x533737=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x422800=_0x3cb350['activeMarkers']['includes'](_0x15d355['markerName']);return _0x422800&&_0x533737['push']('ck-suggestion-marker--active'),{'classes':_0x533737,'attributes':{'data-suggestion':_0x2d6812,'data-author-id':_0x591329},'priority':_0x422800&&_0x3b3b00?0xbc2:0xbb8};}_0x3cb350['on']('suggestionLoaded',_0x396d4d,{'priority':'high'}),_0x3cb350['on']('suggestionUnloaded',_0x396d4d,{'priority':'high'}),_0x58b466['model']['document']['registerPostFixer'](()=>{let _0x21a510=!0x1;const _0x19137d=Array['from'](_0x58b466['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x310b3e,data:_0x40e06b}of _0x19137d){const {group:_0x428129,type:_0x1e83e,id:_0x2fc673}=_0x3cb350['_splitMarkerName'](_0x310b3e);if('suggestion'!=_0x428129||'deletion'!=_0x1e83e||_0x40e06b['oldRange'])continue;if(!_0x3cb350['hasSuggestion'](_0x2fc673))continue;const _0x335c11=_0x3cb350['getSuggestion'](_0x2fc673)['getRanges'](),_0xadfe3f=_0x58b466['plugins']['get']('Users')['me'];for(const _0x3da8e1 of _0x3cb350['getSuggestions']()){if(!_0x3da8e1['isInContent']||_0x3da8e1['author']!=_0xadfe3f)continue;if('formatBlock'!=_0x3da8e1['type']||'tablePasteCell'!=_0x3da8e1['subType'])continue;if(_0x3da8e1['getRanges']()['every'](_0x41bd7c=>_0x335c11['some'](_0x4559b6=>_0x4559b6['containsRange'](_0x41bd7c,!0x0)))){for(const _0x1dba35 of _0x3da8e1['getAllAdjacentSuggestions']())_0x1dba35['isInContent']&&(_0x1dba35['discard'](),_0x21a510=!0x0);}}}return _0x21a510;}),_0x58b466['model']['document']['registerPostFixer'](_0x32eab3=>{const _0x1367ad=_0x58b466['commands']['get']('redo');if(!_0x1367ad||!_0x1367ad['_createdBatches']['has'](_0x32eab3['batch']))return!0x1;let _0x3f10d3=!0x1;const _0x3f775a=_0x58b466['plugins']['get']('Users')['me'],_0x4227e5=_0x58b466['model']['document']['differ']['getChanges'](),_0x44c38d=Array['from'](_0x58b466['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x560e0d,data:_0x3209b2})=>{const {group:_0x2c6886,subType:_0x4381d4,authorId:_0x2e63f4}=_0x3cb350['_splitMarkerName'](_0x560e0d);return'suggestion'==_0x2c6886&&'tablePaste'==_0x4381d4&&_0x2e63f4==_0x3f775a['id']&&!_0x3209b2['oldRange'];});for(const _0x3b3507 of _0x4227e5){if('insert'!=_0x3b3507['type']||'tableCellSuggestion'!=_0x3b3507['name']||0x1!=_0x3b3507['length'])continue;const _0x300846=_0x32eab3['createRange'](_0x3b3507['position'],_0x3b3507['position']['getShiftedBy'](0x1));if(!_0x44c38d['find'](({data:_0x18cff1})=>_0x18cff1['newRange']['isEqual'](_0x300846))){for(const {name:_0x11ed11,data:_0x2eaffa}of _0x44c38d)if(_0x300846['containsRange'](_0x2eaffa['newRange'])){_0x32eab3['updateMarker'](_0x11ed11,{'range':_0x300846}),_0x3f10d3=!0x0;break;}}}return _0x3f10d3;}),_0x58b466['model']['document']['registerPostFixer'](_0xd6bb16=>{let _0x31ecf1=!0x1;const _0x4e2506=_0x58b466['plugins']['get']('Users')['me'],_0x3ddd08=_0x3cb350['getSuggestions']()['filter'](_0x1e5a8e=>_0x1e5a8e['isInContent']&&_0x1e5a8e['author']==_0x4e2506),_0x103667=new Set(),_0x745345=new Set();for(const _0x4bcd4a of _0x3ddd08)if('tablePaste'==_0x4bcd4a['subType'])for(const _0xb2e59a of _0x4bcd4a['getMarkers']()){const _0x2f323e=_0xb2e59a['getRange']()['getContainedElement']();if(_0x2f323e){if(_0x2f323e['is']('element','tableCellSuggestion')&&Ue(_0x2f323e)){_0x4bcd4a['removeMarker'](_0xb2e59a['name']),_0x103667['add'](_0x2f323e),_0x31ecf1=!0x0;const _0x7d4dcd=_0x2f323e['nextSibling'],_0x39b06c=_0x2f323e['previousSibling'],_0x1631cf=_0x7d4dcd&&_0x7d4dcd['is']('element','tableCellSuggestion'),_0x1a685c=_0x39b06c&&_0x39b06c['is']('element','tableCellSuggestion');_0x1631cf&&!_0x103667['has'](_0x7d4dcd)&&_0x745345['add'](_0x7d4dcd),_0x1a685c&&!_0x103667['has'](_0x39b06c)&&_0x745345['add'](_0x39b06c);}else _0x2f323e['is']('element','paragraph')&&_0x2f323e['isEmpty']&&(_0x4bcd4a['removeMarker'](_0xb2e59a['name']),_0x31ecf1=!0x0);}}else{if('tablePasteCell'==_0x4bcd4a['subType']){if(!_0x4bcd4a['attributes']||!_0x4bcd4a['attributes']['tablePasteChainId'])continue;const _0x42b0dc=_0x4bcd4a['attributes']['markerAttributes'];if(_0x42b0dc&&Object['keys'](_0x42b0dc)['length'])continue;const _0x2e4bef=_0x4bcd4a['attributes']['tablePasteChainId'];let _0x4f5c58=!0x0,_0x29ef4b=!0x0;for(const _0x453f86 of _0x3ddd08)if(_0x453f86['subType']&&_0x453f86['subType']['startsWith']('tablePaste')){if(!_0x453f86['attributes']['tablePasteChainId']){_0x29ef4b=!0x1;break;}if(_0x453f86['id']!=_0x4bcd4a['id']&&_0x453f86['attributes']['tablePasteChainId']==_0x2e4bef){_0x4f5c58=!0x1;break;}}_0x29ef4b&&_0x4f5c58&&(_0x4bcd4a['removeMarkers'](),_0x31ecf1=!0x0);}}for(const _0x56dcaa of _0x103667)_0xd6bb16['remove'](_0x56dcaa);for(const _0x385d30 of _0x745345)_0xd6bb16['unwrap'](_0x385d30);return _0x31ecf1;}),_0x58b466['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x108dba=>_0x348322(_0x108dba),'converterPriority':'high'}),_0x58b466['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x296b3d,_0x66677a)=>_0x66677a['options']['showSuggestionHighlights']?_0x348322(_0x296b3d,!0x1):null,'converterPriority':'high'});const _0x388fa1=_0x58b466['editing']['view'];this['listenTo'](_0x388fa1['document'],'clipboardOutput',(_0x44af87,_0x3e2d5f)=>{const _0x192cd0=[];for(const _0x1a6274 of _0x388fa1['createRangeIn'](_0x3e2d5f['content'])['getItems']())_0x1a6274['is']('element','suggestion-td')&&_0x192cd0['push'](_0x1a6274);_0x388fa1['change'](_0x17a86d=>{for(const _0x249637 of _0x192cd0)_0x17a86d['move'](_0x17a86d['createRangeIn'](_0x249637),_0x17a86d['createPositionBefore'](_0x249637)),_0x17a86d['remove'](_0x249637);});});}}function Ue(_0x4d6ac8){if(_0x4d6ac8['isEmpty'])return!0x0;const _0xfe9edc=_0x4d6ac8['getChild'](0x0);return _0xfe9edc['is']('element','paragraph')&&_0xfe9edc['isEmpty'];}function De(_0x289124,_0x413475={},_0x3af63f){for(const {isAnchor:_0x15e258,cellHeight:_0x2f8bd8,cellWidth:_0x188d8d}of _0x3af63f['createTableWalker'](_0x289124,{'includeAllSlots':!0x0,..._0x413475}))if(!_0x15e258||0x1!=_0x2f8bd8||0x1!=_0x188d8d)return!0x1;return!0x0;}class Mt extends _0x5d906a{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x33ebab=this['editor']['plugins']['get']('TrackChangesEditing');_0x33ebab['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x33ebab['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x33ebab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x33ebab['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x33ebab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x33ebab['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x22ecac,_0x21f526){const _0x1ee60e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c834d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4f0b48=_0x21f526['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x55eecc=_0x5c834d['getColumnGroupElement'](_0x4f0b48);let _0x3e91cc=_0x55eecc?_0x5c834d['getTableColumnsWidths'](_0x55eecc):null,_0x11bd17=_0x4f0b48['getAttribute']('tableWidth')||null;const _0x2449b8=_0x21f526['tableWidth']||_0x11bd17,_0x31bd0c=_0x21f526['columnWidths']||_0x3e91cc,_0x303cd2=this['editor']['plugins']['get']('Users')['me'];for(const _0x5738fa of _0x1ee60e['getSuggestions']()){const _0x380637=_0x5738fa['getContainedElement']();if('resizeTable'===_0x5738fa['subType']&&_0x380637===_0x4f0b48){_0x5738fa['author']!==_0x303cd2&&_0x5738fa['discard']();const _0x254322=_0x5738fa['data']['commandParams'];_0x11bd17=_0x254322[0x0]['tableWidth'],_0x3e91cc=_0x254322[0x0]['columnWidths'];break;}}_0x22ecac({'table':_0x4f0b48,'tableWidth':_0x2449b8,'columnWidths':_0x31bd0c}),_0x1ee60e['markBlockFormat'](_0x4f0b48,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x11bd17,'columnWidths':_0x3e91cc}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x361ee2){if('formatBlock'!=_0x361ee2['type']&&'formatInline'!=_0x361ee2['type'])return;const {data:_0xca5930}=_0x361ee2;if(_0xca5930&&'resizeTable'===_0xca5930['formatGroupId']){const _0x42f9d4='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x42f9d4)};}}}class $t extends _0x5d906a{['afterInit'](){const _0x1a896d=this['editor'];_0x1a896d['plugins']['has']('Template')&&_0x1a896d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Bt extends _0x5d906a{['afterInit'](){const _0x56f641=this['editor'];if(!_0x56f641['commands']['get']('insertTableOfContents'))return;_0x56f641['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x48e47c=_0x56f641['plugins']['get']('TrackChangesEditing'),_0x2e9966=_0x56f641['locale'];_0x48e47c['descriptionFactory']['registerElementLabel']('tableOfContents',_0x51f160=>o(_0x2e9966,'ELEMENT_TABLE_OF_CONTENTS',_0x51f160));}}class Tt extends _0x5d906a{['afterInit'](){const _0x5e778f=this['editor'];if(!_0x5e778f['plugins']['has']('Title'))return;const _0x36d4ce=_0x5e778f['plugins']['get']('TrackChangesEditing');_0x36d4ce['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5e778f['locale'],'ELEMENT_TITLE')),_0x5e778f['model']['document']['registerPostFixer'](_0x13a353=>{let _0x66ee58=!0x1;const _0x56021a=Array['from'](_0x5e778f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x49ed00,data:_0x69c744}of _0x56021a){const {group:_0x6bbf61}=_0x36d4ce['_splitMarkerName'](_0x49ed00);if('suggestion'!==_0x6bbf61||!_0x69c744['newRange'])continue;const _0x4aff4c=_0x69c744['newRange'],_0x550c5a=_0x4aff4c['end']['nodeBefore'];if(!_0x550c5a||!_0x550c5a['is']('element','title-content'))continue;if(!_0x4aff4c['start']['isTouching'](_0x4aff4c['end']))continue;const _0x5030ab=_0x5e778f['model']['schema']['getNearestSelectionRange'](_0x4aff4c['end'],'forward');if(_0x5030ab&&_0x5030ab['isCollapsed']){const _0x3c80e6=_0x13a353['createRange'](_0x4aff4c['start'],_0x5030ab['start']);_0x3c80e6['isEqual'](_0x4aff4c)||(_0x13a353['updateMarker'](_0x49ed00,{'range':_0x3c80e6}),_0x66ee58=!0x0);}_0x66ee58||(_0x13a353['removeMarker'](_0x49ed00),_0x66ee58=!0x0);}return _0x66ee58;});}}class xt extends _0x5d906a{['afterInit'](){const _0x5ce5ac=this['editor'],_0x3e0023=_0x5ce5ac['plugins']['get']('TrackChangesEditing');_0x5ce5ac['plugins']['has']('Uploadcare')&&(_0x3e0023['enableCommand']('uploadcare'),_0x5ce5ac['plugins']['has']('UploadcareImageEdit')&&(_0x3e0023['enableCommand']('uploadcareImageEdit'),_0x3e0023['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3e0023['registerBlockAttribute']('uploadcareImageId'),_0x3e0023['descriptionFactory']['registerDescriptionCallback'](_0x1babc6=>{if('attribute'!=_0x1babc6['type'])return;const {data:_0x5d15f6}=_0x1babc6;return _0x5d15f6&&'uploadcareImageId'==_0x5d15f6['key']?{'type':'format','content':''}:void 0x0;})));}}class Ot extends _0x5d906a{['afterInit'](){const _0x52393b=this['editor'],_0x473b3a=_0x52393b['plugins']['get']('TrackChangesEditing');_0x52393b['plugins']['has']('UndoEditing')&&(_0x473b3a['enableCommand']('undo'),_0x473b3a['enableCommand']('redo'));}}class Rt extends _0x5d906a{static get['requires'](){return[_t];}['afterInit'](){const _0x104974=this['editor'];if(!_0x104974['plugins']['has']('TableCaptionEditing'))return;_0x104974['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x5d906a{['tableProperties'];['tableCellProperties'];constructor(_0x2113f6){super(_0x2113f6),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 _0x268e33=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x47f6de of this['tableProperties'])_0x268e33['enableCommand'](_0x47f6de,(_0x577cbd,_0x749922)=>{const _0x5df080=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x47f6de,[_0x5df080],this['tableProperties'],'tableProperties',_0x577cbd,_0x749922);});_0x268e33['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x268e33['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x268e33['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2f24a7,_0x371ec0)=>this['handleDiscardAction'](this['tableProperties'],_0x2f24a7,_0x371ec0)),_0x268e33['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x13d3a7 of this['tableCellProperties'])_0x268e33['enableCommand'](_0x13d3a7,(_0x534f59,_0x1c9bab)=>{const _0x3763df=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x13d3a7,_0x3763df,this['tableCellProperties'],'tableCellProperties',_0x534f59,_0x1c9bab);});_0x268e33['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x268e33['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x268e33['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x210986,_0x442f78)=>this['handleDiscardAction'](this['tableCellProperties'],_0x210986,_0x442f78)),_0x268e33['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x268e33['descriptionFactory']['registerDescriptionCallback'](_0x15a426=>this['handleSuggestionDescription'](_0x15a426));}['_handlePropertyChange'](_0xb63675,_0x47342a,_0x360b6f,_0x16ff14,_0x14c3d0,_0x101597){const _0x34b78c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x101597['batch'],()=>{for(const _0x432133 of _0x47342a){if(this['_getSuggestion'](_0x432133,_0x16ff14))_0x14c3d0(_0x101597);else{const _0x42472b={};for(const _0x55ca52 of _0x360b6f){const _0x53d409=_0x432133['getAttribute'](_0x55ca52);void 0x0!==_0x53d409&&(_0x42472b[_0x55ca52]=_0x53d409);}_0x14c3d0(_0x101597),_0x34b78c['markBlockFormat'](_0x432133,{'commandParams':[_0x42472b]},[],_0x16ff14);}}});}['handleDiscardAction'](_0x2f239c,_0xe144f6,_0x483251){const _0x28849c=_0xe144f6[0x0]['start']['nodeAfter'],_0x8c1910=_0x483251['commandParams'][0x0];this['editor']['model']['change'](_0x345629=>{for(const _0x87e2cb of _0x2f239c)void 0x0!==_0x8c1910[_0x87e2cb]?_0x345629['setAttribute'](_0x87e2cb,_0x8c1910[_0x87e2cb],_0x28849c):_0x345629['removeAttribute'](_0x87e2cb,_0x28849c);});}['handleSuggestionDescription'](_0x46b143){if(_0x46b143['data'])switch(_0x46b143['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'](_0x473a61,_0x1a009a){const _0x49779f=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x42f68d of _0x49779f['getSuggestions']({'skipNotAttached':!0x0})){const _0x57da12=_0x42f68d['getContainedElement']();if(_0x42f68d['subType']===_0x1a009a&&_0x57da12===_0x473a61)return _0x42f68d;}return null;}}const m='$elementName';class d extends _0x5d906a{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x536d31,_0x70bf4f,R,E,U,V,F,L,G,J,K,H,W,Q,X,Y,Z,tt,it,nt,et,st,rt,ot,at,ct,ut,ht,gt,pt,ft,q,z,lt,dt,mt,kt,wt,bt,yt,St,jt,It,At,_t,Ct,vt,Nt,Rt,Dt,Mt,Bt,Et,$t,Tt,xt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x364469){super(_0x364469),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xd85dc,_0x35eb40,_0x327755,_0x531d2d)=>{this['_model']['change'](()=>{for(const _0x43e0ce of[..._0x531d2d,..._0x327755])this['_model']['markers']['has'](_0x43e0ce)&&_0x364469['editing']['reconvertMarker'](_0x43e0ce);});}),this['descriptionFactory']=new O(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x364469['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(),_0x364469['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x364469['config']['get']('trackChanges.trackFormatChanges'),_0x364469['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x364469['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new D(_0x364469,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x38b46f=this['editor'],_0x2b6ba1=(_0x254910,_0x3b0bda)=>{if('attribute'!=_0x254910)return'ck-suggestion-marker-'+_0x254910;const _0x2d7af8=_0x3b0bda['split']('|')[0x0];return this['_isBlockAttribute'](_0x2d7af8)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x38b46f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x205516=>{const {id:_0x4d7fb7,authorId:_0x17a5e7,type:_0x3ebf3e,subType:_0x1570e7}=this['_splitMarkerName'](_0x205516['markerName']),_0x1b63ba=['ck-suggestion-marker',_0x2b6ba1(_0x3ebf3e,_0x1570e7)];let _0x2fb9fd=0xbb8;return this['activeMarkers']['includes'](_0x205516['markerName'])&&(_0x1b63ba['push']('ck-suggestion-marker--active'),_0x2fb9fd=0xbc2),'deletion'==_0x3ebf3e&&(_0x2fb9fd+=0x5),{'classes':_0x1b63ba,'attributes':{'data-suggestion':_0x4d7fb7,'data-author-id':_0x17a5e7},'priority':_0x2fb9fd};}}),_0x38b46f['conversion']['for']('dataDowncast')['add'](_0x13fbe6=>{_0x13fbe6['on']('addMarker:suggestion',(_0x2e8bbd,_0x84166b,_0x558f08)=>{if(!_0x558f08['options']['showSuggestionHighlights'])return;const _0x933170=_0x84166b['item'];if(!_0x933170)return;const _0x40f661=_0x558f08['mapper']['toViewElement'](_0x933170);_0x38b46f['model']['schema']['isObject'](_0x933170)&&_0x40f661&&!_0x40f661['getCustomProperty']('widget')&&_0x40f661['is']('containerElement')&&_0x4ca521(_0x40f661,_0x558f08['writer']);},{'priority':'high'});}),_0x38b46f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xed19ff,_0x19367b)=>{if(!_0x19367b['options']['showSuggestionHighlights'])return null;const {id:_0x308af6,authorId:_0x4d738e,type:_0x141d1a,subType:_0x2cfd97}=this['_splitMarkerName'](_0xed19ff['markerName']);return{'classes':['ck-suggestion-marker',_0x2b6ba1(_0x141d1a,_0x2cfd97)],'priority':0xbb8,'attributes':{'data-suggestion':_0x308af6,'data-author-id':_0x4d738e}};}});const _0x92be9d=({showActiveMarkers:_0x44d8bb=!0x0,isAttributeSuggestion:_0x5cd375=!0x1}={})=>(_0x4a4c0a,_0x4a09b5,_0x58edf8)=>{if(!_0x4a09b5['item'])return;const {id:_0x36c347,authorId:_0x4991eb}=this['_splitMarkerName'](_0x4a09b5['markerName']);if(_0x5cd375){const _0x2ce9b5=this['_suggestions']['get'](_0x36c347),_0x139e99=this['_getAttributeKey'](_0x2ce9b5);if(!this['_isBlockAttribute'](_0x139e99))return;}if(_0x4a09b5['item']['is']('selection'))return void _0x58edf8['consumable']['consume'](_0x4a09b5['item'],_0x4a4c0a['name']);const _0x1ce295=_0x58edf8['mapper']['toViewElement'](_0x4a09b5['item']);if(_0x4a09b5['item']['is']('element')&&_0x38b46f['model']['schema']['isBlock'](_0x4a09b5['item'])&&!_0x1ce295['getCustomProperty']('addHighlight')){_0x58edf8['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1ce295),_0x58edf8['writer']['setAttribute']('data-suggestion',_0x36c347,_0x1ce295),_0x58edf8['writer']['setAttribute']('data-author-id',_0x4991eb,_0x1ce295),_0x58edf8['mapper']['bindElementToMarker'](_0x1ce295,_0x4a09b5['markerName']),_0x44d8bb&&(this['activeMarkers']['includes'](_0x4a09b5['markerName'])?_0x58edf8['writer']['addClass']('ck-suggestion-marker--active',_0x1ce295):_0x58edf8['writer']['removeClass']('ck-suggestion-marker--active',_0x1ce295));for(const _0x81c44a of _0x38b46f['model']['createRangeIn'](_0x4a09b5['item'])['getItems']())_0x58edf8['consumable']['consume'](_0x81c44a,_0x4a4c0a['name']);_0x58edf8['consumable']['consume'](_0x4a09b5['item'],_0x4a4c0a['name']);}};_0x38b46f['conversion']['for']('dataDowncast')['add'](_0x25d534=>{_0x25d534['on']('addMarker:suggestion:formatBlock',(_0x296c96,_0x323f0d,_0x11877a)=>{_0x11877a['options']['showSuggestionHighlights']&&_0x92be9d({'showActiveMarkers':!0x1})(_0x296c96,_0x323f0d,_0x11877a);},{'priority':'highest'});}),_0x38b46f['conversion']['for']('dataDowncast')['add'](_0x14f39f=>{_0x14f39f['on']('addMarker:suggestion:attribute',(_0x541632,_0x56c31e,_0x4698fd)=>{_0x4698fd['options']['showSuggestionHighlights']&&_0x92be9d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x541632,_0x56c31e,_0x4698fd);},{'priority':'highest'});}),_0x38b46f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3667dc,_0xb7af4b)=>{if(_0xb7af4b['options']['showSuggestionHighlights']){const {id:_0x8dc64e,authorId:_0x2333d2}=this['_splitMarkerName'](_0x3667dc);return _0x3667dc['includes'](':split')||_0x3667dc['includes'](':merge')?{'group':'suggestion','name':_0x3667dc['substr'](0xb),'attributes':{'data-suggestion':_0x8dc64e,'data-author-id':_0x2333d2}}:null;}return{'group':'suggestion','name':_0x3667dc['substr'](0xb)};}}),_0x38b46f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x390849,{writer:_0x23121f})=>{let _0x1ae4b4='suggestion:'+_0x390849['getAttribute']('suggestion-type')+':'+_0x390849['getAttribute']('id');return _0x390849['getAttribute']('marker-count')&&(_0x1ae4b4+=':'+_0x390849['getAttribute']('marker-count')),_0x23121f['createElement']('$marker',{'data-name':_0x1ae4b4});}}),_0x38b46f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x38b46f['conversion']['for']('editingDowncast')['add'](_0x296f26=>{_0x296f26['on']('addMarker:suggestion:formatBlock',_0x92be9d(),{'priority':'high'});}),_0x38b46f['conversion']['for']('editingDowncast')['add'](_0x336005=>{_0x336005['on']('addMarker:suggestion:attribute',_0x92be9d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x38b46f['conversion']['for']('editingDowncast')['add'](_0x27fb08=>{_0x27fb08['on']('removeMarker:suggestion:formatBlock',(_0x5f83a1,_0x9cbec9,_0x35c8ed)=>{const _0x2a8c66=_0x35c8ed['mapper']['markerNameToElements'](_0x9cbec9['markerName']);if(_0x2a8c66){for(const _0x45ee83 of _0x2a8c66)_0x45ee83['getCustomProperty']('addHighlight')||(_0x35c8ed['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x45ee83),_0x35c8ed['writer']['removeAttribute']('data-suggestion',_0x45ee83),_0x35c8ed['writer']['removeAttribute']('data-author-id',_0x45ee83),_0x35c8ed['mapper']['unbindElementFromMarkerName'](_0x45ee83,_0x9cbec9['markerName']));}},{'priority':'high'});}),_0x38b46f['conversion']['for']('editingDowncast')['add'](_0x15a4ab=>{_0x15a4ab['on']('removeMarker:suggestion:attribute',(_0x3f6767,_0x253baa,_0x49b2d0)=>{const _0x34e8c4=_0x49b2d0['mapper']['markerNameToElements'](_0x253baa['markerName']);if(!_0x34e8c4)return;const {id:_0x402ddf}=this['_splitMarkerName'](_0x253baa['markerName']),_0x3da3a1=this['_suggestions']['get'](_0x402ddf),_0x152ebe=this['_getAttributeKey'](_0x3da3a1);if(this['_isBlockAttribute'](_0x152ebe)){for(const _0x463c98 of _0x34e8c4)_0x463c98['getCustomProperty']('addHighlight')||(_0x49b2d0['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x463c98),_0x49b2d0['writer']['removeAttribute']('data-suggestion',_0x463c98),_0x49b2d0['writer']['removeAttribute']('data-author-id',_0x463c98),_0x49b2d0['mapper']['unbindElementFromMarkerName'](_0x463c98,_0x253baa['markerName']));}},{'priority':'high'});}),_0x38b46f['model']['document']['registerPostFixer'](_0x462b9e=>{let _0x2e6bf5=!0x1;const _0x1818ce=Array['from'](_0x38b46f['model']['document']['differ']['getChangedMarkers']()),_0x6f2343=new Set();for(const {name:_0x2b91d4,data:_0x4b17e5}of _0x1818ce){const {group:_0x4aec57,type:_0x16690c,subType:_0xeb8df5,id:_0x31692f}=this['_splitMarkerName'](_0x2b91d4);if('suggestion'!==_0x4aec57)continue;const _0x476af9=this['_suggestions']['get'](_0x31692f);if(null!=_0x4b17e5['newRange']){'formatInline'==_0x16690c&&(_0x2e6bf5=_0x2e6bf5||Gt(_0x4b17e5['newRange'],_0x2b91d4,_0x462b9e,_0x38b46f['model']['schema']));const _0x14bf10='attribute'==_0x16690c&&this['_isBlockAttribute'](_0xeb8df5['split']('|')[0x0]);if(_0x4b17e5['newRange']['isCollapsed']||'$graveyard'==_0x4b17e5['newRange']['root']['rootName']||'formatBlock'==_0x16690c&&!Jt(_0x4b17e5['newRange'])||_0x14bf10&&!Jt(_0x4b17e5['newRange'])||'deletion'==_0x16690c&&!(!Pt(_0x58be5a=_0x4b17e5['newRange'])&&!function(_0x995025){return _0x995025['start']['parent']==_0x995025['end']['nodeBefore']&&_0x995025['start']['isAtEnd'];}(_0x58be5a)))_0x462b9e['removeMarker'](_0x2b91d4),_0x2e6bf5=!0x0;else{if(!_0x476af9||!_0x476af9['isInContent'])continue;if(_0x4b17e5['newRange']&&_0x4b17e5['oldRange']&&_0x4b17e5['newRange']['isEqual'](_0x4b17e5['oldRange']))continue;_0x6f2343['add'](_0x476af9);}}}var _0x58be5a;return _0x6f2343['size']>0x0&&(_0x2e6bf5=!!this['_joinWithAdjacentSuggestions'](_0x6f2343)||_0x2e6bf5),_0x2e6bf5;}),_0x38b46f['model']['document']['registerPostFixer'](_0x4a2955=>{let _0x3b0a3f=!0x1;for(const _0x2c9aa4 of _0x38b46f['model']['document']['differ']['getChanges']())if('insert'==_0x2c9aa4['type'])for(const _0x1e241e of this['_suggestions']['values']()){if(_0x1e241e['isMultiRange']||!_0x1e241e['isInContent'])continue;const _0x129e9a='formatBlock'==_0x1e241e['type'],_0x41b623=this['_getAttributeKey'](_0x1e241e),_0x1b035c=_0x41b623&&this['_isBlockAttribute'](_0x41b623);if(!_0x129e9a&&!_0x1b035c)continue;const _0x34ac4d=_0x1e241e['getFirstRange']();if(_0x34ac4d['start']['parent']!=_0x34ac4d['end']['parent']&&!_0x34ac4d['end']['isAtEnd']){const _0x4ce230=_0x38b46f['model']['createPositionAt'](_0x34ac4d['start']['nodeAfter'],'end'),_0x8567fa=_0x38b46f['model']['createRange'](_0x34ac4d['start'],_0x4ce230);_0x4a2955['updateMarker'](_0x1e241e['getFirstMarker'](),{'range':_0x8567fa}),_0x3b0a3f=!0x0;}}return _0x3b0a3f;}),_0x38b46f['model']['document']['registerPostFixer'](_0x4b9864=>this['_processAttributeChanges'](_0x4b9864)),_0x38b46f['model']['document']['registerPostFixer'](_0x39f27e=>!_0x39f27e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x39f27e)),_0x38b46f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x38b46f['model']['document']['on']('change:data',(_0x19c22b,_0x134931)=>{if(!_0x134931['isLocal']||_0x134931['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x34c65f=_0x38b46f['model']['document']['differ']['getChanges']();if(0x0==_0x34c65f['length'])return;const _0x440b16=[],_0x590655=_0x34c65f['filter'](_0x340152=>'attribute'==_0x340152['type']),_0x3f2919=_0x34c65f['filter'](_0x39de0a=>'insert'==_0x39de0a['type']&&'$text'!=_0x39de0a['name']);for(const _0x31b24e of _0x590655)this['_isRegisteredAttribute'](_0x31b24e['attributeKey'])&&_0x440b16['push']({'key':_0x31b24e['attributeKey'],'newValue':_0x31b24e['attributeNewValue'],'oldValue':_0x31b24e['attributeOldValue'],'range':Kt(_0x31b24e['range'],_0x38b46f['model'])});for(const _0x20dca6 of _0x3f2919){if('rename'!=_0x20dca6['action']&&'refresh'!=_0x20dca6['action'])continue;const _0x363fdf=Ht(_0x20dca6['position']['nodeAfter'],_0x38b46f['model']),_0x182d3f=_0x20dca6['before'];'rename'==_0x20dca6['action']&&_0x440b16['push']({'key':m,'newValue':_0x20dca6['name'],'oldValue':_0x182d3f['name'],'range':_0x363fdf});for(const [_0x575593,_0x222d03]of _0x182d3f['attributes']){if(!this['_isRegisteredAttribute'](_0x575593))continue;const _0x29dfab=_0x20dca6['attributes']['get'](_0x575593);_0x222d03!==_0x29dfab&&_0x440b16['push']({'key':_0x575593,'newValue':_0x29dfab,'oldValue':_0x222d03,'range':_0x363fdf});}for(const [_0x56ba6e,_0x4cad3c]of _0x20dca6['attributes'])this['_isRegisteredAttribute'](_0x56ba6e)&&(_0x182d3f['attributes']['has'](_0x56ba6e)||_0x440b16['push']({'key':_0x56ba6e,'newValue':_0x4cad3c,'oldValue':null,'range':_0x363fdf}));}0x0!=_0x440b16['length']&&_0x38b46f['model']['enqueueChange'](_0x134931,_0x2447e4=>{const _0x17259d=_0x4fc05b();for(const {range:_0x2d77f5,key:_0x5c2ed7,oldValue:_0x22eccf,newValue:_0x1af9db}of _0x440b16)this['markAttributeChange'](_0x2d77f5,_0x5c2ed7,_0x22eccf,_0x1af9db,{'groupId':_0x17259d});this['_reduceExistingSuggestions'](_0x2447e4,_0x440b16);});},{'priority':'lowest'}),_0x38b46f['model']['markers']['on']('update:suggestion',(_0x3e2b6b,_0x13ba8a,_0x14d954)=>{if(null==_0x14d954){const {id:_0x4eee1f}=this['_splitMarkerName'](_0x13ba8a['name']),_0x5f5726=this['_suggestions']['get'](_0x4eee1f);_0x5f5726&&_0x5f5726['addMarkerName'](_0x13ba8a['name']);}}),_0x38b46f['model']['document']['on']('change:data',()=>{const _0x32c08a=Array['from'](_0x38b46f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x39219e=>'suggestion'===this['_splitMarkerName'](_0x39219e['name'])['group']);if(0x0===_0x32c08a['length'])return;_0x32c08a['sort']((_0x56495f,_0x380f3d)=>{const _0x57825f=_0x56495f['data']['oldRange'],_0x467cc2=_0x380f3d['data']['oldRange'];return null===_0x57825f&&null===_0x467cc2?0x0:null===_0x57825f&&null!==_0x467cc2?-0x1:null!==_0x57825f&&null===_0x467cc2?0x1:_0x57825f['start']['isBefore'](_0x467cc2['start'])?-0x1:0x1;});const _0x48bdda=new Set(),_0x5967e2=new Set();for(const {name:_0x1c60b7,data:_0x38208f}of _0x32c08a){const {id:_0x3d2dec}=this['_splitMarkerName'](_0x1c60b7);if(null===_0x38208f['oldRange']){const _0x60a546=this['_handleNewSuggestionMarker'](_0x1c60b7);_0x5967e2['add'](_0x60a546);}else{const _0x6a7e8c=this['_suggestions']['get'](_0x3d2dec);null!==_0x38208f['newRange']||_0x6a7e8c['isInContent']?(_0x48bdda['add'](_0x6a7e8c['head']),_0x5967e2['add'](_0x6a7e8c)):this['_removeSuggestion'](_0x6a7e8c);}}_0x5967e2['size']>0x0&&this['_refreshSuggestionsChain'](_0x5967e2);for(const _0x34676c of _0x48bdda)this['fire']('suggestionChanged',_0x34676c);}),_0x38b46f['model']['on']('applyOperation',(_0x3ec04d,_0x238e82)=>{const _0xb7a5d7=_0x238e82[0x0];if(!this['_suggestions']['size'])return;if(!_0xb7a5d7['isDocumentOperation'])return;if(_0xb7a5d7['batch']['isUndo']||!_0xb7a5d7['batch']['isLocal'])return;let _0x10fe40,_0xfe559f;switch(_0xb7a5d7['type']){case'insert':_0x10fe40=_0x38b46f['model']['createPositionAt'](_0xb7a5d7['position']),_0xfe559f=_0x10fe40['getShiftedBy'](_0xb7a5d7['howMany']);break;case'split':_0x10fe40=_0x38b46f['model']['createPositionAt'](_0xb7a5d7['splitPosition']),_0xfe559f=_0x38b46f['model']['createPositionAt'](_0xb7a5d7['moveTargetPosition']);break;case'move':_0x10fe40=_0x38b46f['model']['createPositionAt'](_0xb7a5d7['targetPosition']),_0xfe559f=_0x10fe40['getShiftedBy'](_0xb7a5d7['howMany']);break;default:return;}const _0x3e3098=_0x38b46f['model']['createRange'](_0x10fe40,_0xfe559f);_0x38b46f['model']['change'](()=>{for(const {suggestion:_0x23fd6a,meta:_0x423861}of this['_findSuggestions'](_0x3e3098)){if(_0x23fd6a['isMultiRange'])continue;if('formatInline'==_0x23fd6a['type'])continue;const _0x1e334a=this['_getAttributeKey'](_0x23fd6a);if(_0x1e334a&&this['_isBlockAttribute'](_0x1e334a)&&'split'!=_0xb7a5d7['type'])continue;const _0x443669=_0x23fd6a['data']&&_0x23fd6a['data']['multipleBlocks'];('formatBlock'!=_0x23fd6a['type']||'split'==_0xb7a5d7['type']&&!_0x443669)&&(_0x423861['containsRangeInObject']||'insertion'==_0x23fd6a['type']&&_0x423861['isOwn']||_0x23fd6a['getFirstRange']()['containsRange'](_0x3e3098)&&this['_breakSuggestionMarker'](_0x23fd6a,_0x10fe40,_0xfe559f));}});},{'priority':'lowest'}),_0x38b46f['model']['on']('deleteContent',(_0x1b8343,_0x215a68)=>{const _0x1e343f=_0x215a68[0x0],_0x50cec5=_0x215a68[0x1];if(_0x50cec5&&_0x50cec5['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1e343f['isCollapsed'])return;const _0x5c852c=_0x38b46f['model']['schema'],{start:_0x51602c,end:_0x27975b}=_0x1e343f['getFirstRange'](),_0x1b974d=_0x51602c['nodeAfter']&&_0x5c852c['isLimit'](_0x51602c['nodeAfter'])?null:_0x5c852c['getNearestSelectionRange'](_0x51602c,'forward'),_0x531318=_0x27975b['nodeBefore']&&_0x5c852c['isLimit'](_0x27975b['nodeBefore'])?null:_0x5c852c['getNearestSelectionRange'](_0x27975b,'backward'),_0xd44397=_0x38b46f['model']['createRange'](_0x1b974d?_0x1b974d['start']:_0x51602c,_0x531318?_0x531318['end']:_0x27975b);_0x38b46f['model']['change'](_0x1b45d9=>{this['markDeletion'](_0xd44397);const _0x4bb7d2=_0x38b46f['model']['schema']['getNearestSelectionRange'](_0xd44397['start']);_0x1e343f['is']('documentSelection')?_0x1b45d9['setSelection'](_0x4bb7d2):_0x1e343f['setTo'](_0x4bb7d2);}),_0x1b8343['stop']();},{'priority':_0x3f1657['normal']+0xa}),_0x38b46f['model']['on']('insertContent',(_0x5cf722,_0x3e7902)=>{const _0x3393d6=_0x3e7902[_0x3e7902['length']-0x1];_0x3393d6&&_0x3393d6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x38b46f['model']['change'](()=>{let _0x4929e9=_0x38b46f['model']['insertContent'](_0x3e7902[0x0],_0x3e7902[0x1],_0x3e7902[0x2],{'forceDefaultExecution':!0x0});if(!_0x4929e9)return;_0x5cf722['return']=_0x4929e9['clone']();const _0x529409=_0x4929e9['end']['nodeBefore'],_0x4d42fb=_0x38b46f['model']['schema'];_0x529409&&_0x4d42fb['isBlock'](_0x529409)&&!_0x4d42fb['isObject'](_0x529409)&&(_0x4929e9=_0x38b46f['model']['createRange'](_0x4929e9['start'],_0x38b46f['model']['createPositionAt'](_0x529409,'end'))),this['markInsertion'](_0x4929e9);}),_0x5cf722['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3d89f2=new M(_0x38b46f,this['_suggestions']);_0x38b46f['commands']['add']('acceptSuggestion',_0x3d89f2),this['enableCommand']('acceptSuggestion');const _0x3866c5=new $(_0x38b46f,this['_suggestions']);_0x38b46f['commands']['add']('discardSuggestion',_0x3866c5),this['enableCommand']('discardSuggestion'),_0x38b46f['commands']['add']('acceptAllSuggestions',new B(_0x38b46f,_0x3d89f2,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x38b46f['commands']['add']('discardAllSuggestions',new B(_0x38b46f,_0x3866c5,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x38b46f['commands']['add']('acceptSelectedSuggestions',new T(_0x38b46f,_0x3d89f2,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x38b46f['commands']['add']('discardSelectedSuggestions',new T(_0x38b46f,_0x3866c5,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1057f=_0x38b46f['plugins']['get']('CommentsRepository');this['listenTo'](_0x1057f,'addComment',(_0x474e1a,{threadId:_0x312e42})=>{const _0x1143fe=this['_suggestions']['get'](_0x312e42);_0x1143fe&&_0x1143fe['commentThread']&&0x1===_0x1143fe['commentThread']['length']&&this['_updateSuggestionData'](_0x312e42,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1057f,'removeComment',(_0x598f32,{threadId:_0x1a73e0})=>{const _0x1afe74=this['_suggestions']['get'](_0x1a73e0);_0x1afe74&&_0x1afe74['commentThread']&&!_0x1afe74['commentThread']['length']&&this['_updateSuggestionData'](_0x1a73e0,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xc8524e){const _0x44c6ea=_0x49b488([0x4e,0x38,0x5a,0x37,0x46,0x61,0x54,0x57,0x39,0x51,0x65,0x74,0x66,0x34,0x78,0x77,0x50,0x62,0x36,0x4f,0x56,0x6f,0x76,0x58,0x4d,0x49,0x68,0x47,0x6a,0x75,0x43,0x4c,0x72,0x30,0x67,0x33,0x53,0x41,0x44,0x31,0x70,0x4a,0x6e,0x52,0x32,0x4b,0x45,0x6b,0x59,0x48,0x73,0x71,0x64,0x35,0x6c,0x55,0x42,0x63,0x79,0x7a,0x69,0x6d]),_0x4b118a=0x3c46d8bc,_0x5a0e5d=0x3c41b2ac^_0x4b118a,_0x2d8288=window[_0x49b488([0x44,0x61,0x74,0x65])][_0x49b488([0x6e,0x6f,0x77])](),_0x2d55f4=_0xc8524e[_0x49b488([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4f00ac=new window[(_0x49b488([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x359a40=>{_0x2d55f4[_0x49b488([0x6f,0x6e,0x63,0x65])](_0x49b488([0x72,0x65,0x61,0x64,0x79]),_0x359a40);}),_0x255b23={[_0x49b488([0x6b,0x74,0x79])]:_0x49b488([0x45,0x43]),[_0x49b488([0x75,0x73,0x65])]:_0x49b488([0x73,0x69,0x67]),[_0x49b488([0x63,0x72,0x76])]:_0x49b488([0x50,0x2d,0x32,0x35,0x36]),[_0x49b488([0x78])]:_0x49b488([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]),[_0x49b488([0x79])]:_0x49b488([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]),[_0x49b488([0x61,0x6c,0x67])]:_0x49b488([0x45,0x53,0x32,0x35,0x36])},_0x5f2df1=_0x2d55f4[_0x49b488([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x49b488([0x67,0x65,0x74])](_0x49b488([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x530965(){let _0x3f9b15,_0x1c7bd9=null,_0x368033=null;try{if(_0x5f2df1==_0x49b488([0x47,0x50,0x4c]))return _0x49b488([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3f9b15=_0x2a4d20(),!_0x3f9b15)return _0x49b488([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3f9b15[_0x49b488([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x368033=_0x3dcf8e(_0x3f9b15[_0x49b488([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3f9b15[_0x49b488([0x6a,0x74,0x69])])),await _0x7c26c()?_0x5320f8()?_0x4515c1()?_0x49b488([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ba614()?(_0x3f9b15[_0x49b488([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49b488([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1c7bd9=_0x3ff9a2(_0x49b488([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3f9b15[_0x49b488([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49b488([0x74,0x72,0x69,0x61,0x6c])&&(_0x1c7bd9=_0x3ff9a2(_0x49b488([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x54f796()):_0x49b488([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x49b488([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x49b488([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x49b488([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4515c1(){const _0x440a2b=[_0x49b488([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x49b488([0x74,0x72,0x69,0x61,0x6c])][_0x49b488([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f9b15[_0x49b488([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2d8288/0x3e8:0xe10*_0x5a0e5d;return _0x3f9b15[_0x49b488([0x65,0x78,0x70])]<_0x440a2b;}function _0x5320f8(){const _0x3a2449=_0x3f9b15[_0x49b488([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3a2449)return!0x1;if(_0x3a2449[_0x49b488([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49b488([0x2a])))return!0x0;if(_0x3a2449[_0x49b488([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49b488([0x54,0x43])))return!0x0;if(_0x3a2449[_0x49b488([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49b488([0x52,0x54,0x43]))){if(_0x6784cd())return!0x0;if(_0x2bdd84()||_0x3473cc())return!0x0;}return!0x1;}function _0x1ba614(){const _0x336ef8=_0x3f9b15[_0x49b488([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x336ef8||0x0==_0x336ef8[_0x49b488([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4e53d0}=new URL(window[_0x49b488([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x336ef8[_0x49b488([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e53d0))return!0x0;const _0x5e9705=_0x4e53d0[_0x49b488([0x73,0x70,0x6c,0x69,0x74])](_0x49b488([0x2e]));return _0x336ef8[_0x49b488([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x30df53=>_0x30df53[_0x49b488([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49b488([0x2a])))[_0x49b488([0x6d,0x61,0x70])](_0x2e1d87=>_0x2e1d87[_0x49b488([0x73,0x70,0x6c,0x69,0x74])](_0x49b488([0x2e])))[_0x49b488([0x73,0x6f,0x6d,0x65])](_0x292e0c=>_0x5e9705[_0x49b488([0x65,0x76,0x65,0x72,0x79])]((_0x5c6c66,_0x5bab48)=>_0x292e0c[_0x5bab48]===_0x5c6c66||_0x292e0c[_0x5bab48]===_0x49b488([0x2a])));}function _0x54f796(){return _0x1c7bd9&&_0x368033?new window[(_0x49b488([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d6bf3,_0x519b5e)=>{_0x1c7bd9[_0x49b488([0x74,0x68,0x65,0x6e])](_0x5d6bf3,_0x519b5e),_0x368033[_0x49b488([0x74,0x68,0x65,0x6e])](_0x127417=>{_0x127417!=_0x49b488([0x56,0x61,0x6c,0x69,0x64])&&_0x5d6bf3(_0x127417);},_0x519b5e);}):_0x1c7bd9||_0x368033||_0x49b488([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3dcf8e(_0x10f400,_0x177983){return new window[(_0x49b488([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e0994=>{if(_0x227f5f())return _0x5e0994(_0x49b488([0x56,0x61,0x6c,0x69,0x64]));_0x5f3b4e(),_0x2d55f4[_0x49b488([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x49b488([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xa0bc9e=!0x1;const _0x5330ac=_0x4fc05b();function _0x58792f(_0x3e4a72){return!!_0x3e4a72&&(typeof _0x3e4a72===_0x49b488([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3e4a72===_0x49b488([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3e4a72[_0x49b488([0x74,0x68,0x65,0x6e])]===_0x49b488([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3e4a72[_0x49b488([0x63,0x61,0x74,0x63,0x68])]===_0x49b488([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x39e4e3(_0x23f672){_0x140a47(_0x23f672)[_0x49b488([0x74,0x68,0x65,0x6e])](_0x15f912=>{if(!_0x15f912||_0x15f912[_0x49b488([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x49b488([0x6f,0x6b]))return _0x49b488([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x88dcd1(_0x2571fa(_0x5330ac+_0x177983))!=_0x15f912[_0x49b488([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x49b488([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x49b488([0x56,0x61,0x6c,0x69,0x64]);})[_0x49b488([0x74,0x68,0x65,0x6e])](_0x2202a3=>(_0x5df1a0(),_0x2202a3),()=>{const _0x569a1f=_0x71e82f();return null==_0x569a1f?(_0x5df1a0(),_0x49b488([0x56,0x61,0x6c,0x69,0x64])):_0x49b488(_0x2d8288-_0x569a1f>(0x184a5cbc^_0x4b118a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x49b488([0x74,0x68,0x65,0x6e])](_0x5e0994)[_0x49b488([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5e0994(_0x49b488([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2d22f3=0x3c70363c^_0x4b118a;function _0x5df1a0(){const _0x43cf8f=_0x49b488([0x6c,0x6c,0x63,0x74,0x2d])+_0x88dcd1(_0x2571fa(_0x10f400)),_0x2c469d=_0x572c46(_0x88dcd1(window[_0x49b488([0x4d,0x61,0x74,0x68])][_0x49b488([0x63,0x65,0x69,0x6c])](_0x2d8288/_0x2d22f3)));window[_0x49b488([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49b488([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43cf8f,_0x2c469d);}function _0x71e82f(){const _0x1b0b38=_0x49b488([0x6c,0x6c,0x63,0x74,0x2d])+_0x88dcd1(_0x2571fa(_0x10f400)),_0x2e9e40=window[_0x49b488([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49b488([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b0b38);return _0x2e9e40?window[_0x49b488([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x572c46(_0x2e9e40),0x10)*_0x2d22f3:null;}function _0x140a47(_0x2a76d8){return new window[(_0x49b488([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3e6ae3,_0x349bc3)=>{_0x2a76d8[_0x49b488([0x74,0x68,0x65,0x6e])](_0x3e6ae3,_0x349bc3),window[_0x49b488([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x349bc3,0x3c470c7c^_0x4b118a);});}}_0x2d55f4[_0x49b488([0x6f,0x6e])](_0x49b488([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4e78c1,_0x1c7333)=>{if(_0x1c7333[0x0]!=_0x10f400)return _0x5e0994(_0x49b488([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1c7333[0x1]={..._0x1c7333[0x1],[_0x49b488([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5330ac};},{[_0x49b488([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49b488([0x68,0x69,0x67,0x68])}),_0x2d55f4[_0x49b488([0x6f,0x6e])](_0x49b488([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4a6543=>{_0x58792f(_0x4a6543[_0x49b488([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xa0bc9e=!0x0,_0x39e4e3(_0x4a6543[_0x49b488([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x49b488([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49b488([0x6c,0x6f,0x77])}),_0x4f00ac[_0x49b488([0x74,0x68,0x65,0x6e])](()=>{_0xa0bc9e||_0x5e0994(_0x49b488([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x227f5f(){return _0x2d55f4[_0x49b488([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49b488([0x76,0x69,0x65,0x77])][_0x49b488([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x49b488([0x61,0x75,0x74,0x6f]);}function _0x5f3b4e(){_0x2d55f4[_0x49b488([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49b488([0x76,0x69,0x65,0x77])][_0x49b488([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x49b488([0x61,0x75,0x74,0x6f]);}}function _0x3ff9a2(_0x2b8c20){const _0x47ffa7=[new window[(_0x49b488([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfb17cf=>setTimeout(_0xfb17cf,0x3c4fe670^_0x4b118a)),_0x4f00ac[_0x49b488([0x74,0x68,0x65,0x6e])](()=>new window[(_0x49b488([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25d7ba=>{let _0x21f533=0x0;_0x2d55f4[_0x49b488([0x6d,0x6f,0x64,0x65,0x6c])][_0x49b488([0x6f,0x6e])](_0x49b488([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x23f6b2,_0x5e1971)=>{_0x5e1971[0x0][_0x49b488([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x21f533++,_0x21f533==(0x3c46d944^_0x4b118a)&&(_0x25d7ba(),_0x23f6b2[_0x49b488([0x6f,0x66,0x66])]());});}))];return window[_0x49b488([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x49b488([0x72,0x61,0x63,0x65])](_0x47ffa7)[_0x49b488([0x74,0x68,0x65,0x6e])](()=>_0x2b8c20);}async function _0x2893a4(){await _0x4f00ac,_0x2d55f4[_0x49b488([0x6d,0x6f,0x64,0x65,0x6c])][_0x49b488([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x39c55b,_0x2d55f4[_0x49b488([0x6d,0x6f,0x64,0x65,0x6c])][_0x49b488([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x39c55b,_0x2d55f4[_0x49b488([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x49b488([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x6784cd(){return _0x1fb48d(_0x49b488([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2873a5(_0x49b488([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x49b488([0x73,0x74,0x61,0x74,0x65])]==_0x49b488([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2bdd84(){return _0x1fb48d(_0x49b488([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 _0x3473cc(){return _0x1fb48d(_0x49b488([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1a5393(_0x1b2965){const _0x1618e2=_0x4a24ff();_0x2d55f4[_0x1618e2]=_0x49b488([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1b2965,_0x1b2965!=_0x49b488([0x56,0x61,0x6c,0x69,0x64])&&_0x2893a4();}function _0x4a24ff(){const _0x3f90e5=window[_0x49b488([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x49b488([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x49b488([0x6e,0x6f,0x77])]())[_0x49b488([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x49b488([0x2e]),'');let _0x3d9a5b=_0x49b488([0x4e]);for(let _0x306406=0x0;_0x306406<_0x3f90e5[_0x49b488([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x306406+=0x2){let _0x54a570=window[_0x49b488([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f90e5[_0x49b488([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x306406,_0x306406+0x2));_0x54a570>=_0x44c6ea[_0x49b488([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x54a570-=_0x44c6ea[_0x49b488([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3d9a5b+=_0x44c6ea[_0x54a570];}return _0x3d9a5b;}function _0x2a4d20(){const _0x43468e=_0x5f2df1[_0x49b488([0x73,0x70,0x6c,0x69,0x74])](_0x49b488([0x2e]));if(0x3!=_0x43468e[_0x49b488([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x357044(_0x43468e[0x1]);function _0x357044(_0x21d6ce){const _0x418683=_0x144c58(_0x21d6ce);return _0x418683&&_0x5d4540()?_0x418683:null;function _0x5d4540(){const _0x5ef79c=_0x418683[_0x49b488([0x6a,0x74,0x69])],_0x3c68c8=window[_0x49b488([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ef79c[_0x49b488([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ef79c[_0x49b488([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x9a9a10={..._0x418683,[_0x49b488([0x6a,0x74,0x69])]:_0x5ef79c[_0x49b488([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5ef79c[_0x49b488([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x9a9a10[_0x49b488([0x76,0x63])],_0x2571fa(_0x9a9a10)==_0x3c68c8;}}}async function _0x7c26c(){let _0x4b94f0=!0x0;try{const _0x39b0ee=_0x5f2df1[_0x49b488([0x73,0x70,0x6c,0x69,0x74])](_0x49b488([0x2e])),[_0x24d924,_0x507ac4,_0x3657a1]=_0x39b0ee;return _0x45cea1(_0x24d924),await _0x445cfa(_0x24d924,_0x507ac4,_0x3657a1),_0x4b94f0;}catch{return!0x1;}function _0x45cea1(_0x3eac37){const _0x138fca=_0x144c58(_0x3eac37);_0x138fca&&_0x138fca[_0x49b488([0x61,0x6c,0x67])]==_0x49b488([0x45,0x53,0x32,0x35,0x36])||(_0x4b94f0=!0x1);}async function _0x445cfa(_0x447635,_0x1e7a4f,_0x50bd22){const _0x56a583=window[_0x49b488([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x49b488([0x66,0x72,0x6f,0x6d])](_0x5d9983(_0x50bd22),_0x3756df=>_0x3756df[_0x49b488([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x286c6b=new window[(_0x49b488([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x49b488([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x447635+_0x49b488([0x2e])+_0x1e7a4f),_0x23a679=window[_0x49b488([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x49b488([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x23a679)return;const _0x50f2ac=await _0x23a679[_0x49b488([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x49b488([0x6a,0x77,0x6b]),_0x255b23,{[_0x49b488([0x6e,0x61,0x6d,0x65])]:_0x49b488([0x45,0x43,0x44,0x53,0x41]),[_0x49b488([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x49b488([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x49b488([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x23a679[_0x49b488([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x49b488([0x6e,0x61,0x6d,0x65])]:_0x49b488([0x45,0x43,0x44,0x53,0x41]),[_0x49b488([0x68,0x61,0x73,0x68])]:{[_0x49b488([0x6e,0x61,0x6d,0x65])]:_0x49b488([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x50f2ac,_0x56a583,_0x286c6b)||(_0x4b94f0=!0x1);}}function _0x144c58(_0xc2eaf4){return _0xc2eaf4[_0x49b488([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x49b488([0x65,0x79]))?JSON[_0x49b488([0x70,0x61,0x72,0x73,0x65])](_0x5d9983(_0xc2eaf4)):null;}function _0x5d9983(_0x24d26a){return window[_0x49b488([0x61,0x74,0x6f,0x62])](_0x24d26a[_0x49b488([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x49b488([0x2b]))[_0x49b488([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x49b488([0x2f])));}function _0x2571fa(_0x3e58db){let _0x507804=0x1505;function _0x6f9b01(_0x510b62){for(let _0xc19c86=0x0;_0xc19c86<_0x510b62[_0x49b488([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc19c86++){const _0x1ffc2c=_0x510b62[_0x49b488([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xc19c86);_0x507804=(_0x507804<<0x5)+_0x507804+_0x1ffc2c,_0x507804&=_0x507804;}}function _0x167a39(_0x3995ad){Array[_0x49b488([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3995ad)?_0x3995ad[_0x49b488([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x167a39):_0x3995ad&&typeof _0x3995ad==_0x49b488([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x49b488([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3995ad)[_0x49b488([0x73,0x6f,0x72,0x74])]()[_0x49b488([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c8ab2,_0x5c397d])=>{_0x6f9b01(_0x3c8ab2),_0x167a39(_0x5c397d);}):_0x6f9b01(window[_0x49b488([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3995ad));}return _0x167a39(_0x3e58db),_0x507804>>>0x0;}function _0x88dcd1(_0xa4b570){return _0xa4b570[_0x49b488([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x49b488([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x49b488([0x30]));}function _0x572c46(_0x833d5e){return _0x833d5e[_0x49b488([0x73,0x70,0x6c,0x69,0x74])]('')[_0x49b488([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x49b488([0x6a,0x6f,0x69,0x6e])]('');}function _0x1fb48d(_0x42d2c2){return _0x2d55f4[_0x49b488([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x49b488([0x68,0x61,0x73])](_0x42d2c2);}function _0x2873a5(_0x169fc6){return _0x2d55f4[_0x49b488([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x49b488([0x67,0x65,0x74])](_0x169fc6);}function _0x39c55b(){}function _0x49b488(_0x1cd2a0){return _0x1cd2a0['map'](_0x26972e=>String['fromCharCode'](_0x26972e))['join']('');}_0x1a5393(await _0x530965());}(this);}set['adapter'](_0x4984b2){if(this['_adapter'])throw new _0x2ba13e('track-changes-adapter-already-set',this);this['_adapter']=_0x4984b2;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x319189=!0x1,toJSON:_0x18fa77=!0x1}={}){const _0x17818c=[];for(const _0x2533de of this['_suggestions']['values']())_0x319189&&!_0x2533de['isInContent']||_0x17818c['push'](_0x2533de);return _0x18fa77?_0x17818c['map'](_0x97c177=>_0x97c177['toJSON']()):_0x17818c;}['getSuggestion'](_0x26a4f7){const _0x1b74bf=this['_suggestions']['get'](_0x26a4f7);if(!_0x1b74bf)throw new _0x2ba13e('track-changes-suggestion-not-found',this);return _0x1b74bf;}['hasSuggestion'](_0x2495de){return this['_suggestions']['has'](_0x2495de);}['addSuggestionData'](_0xf1b62a){const {authorId:_0x49dce9,id:_0x28c498,originalSuggestionId:_0x353d29,attributes:_0x1315b6}=_0xf1b62a,[_0x373856,_0xbd5d7f]=_0xf1b62a['type']['split'](':'),_0x5b0b93=this['_suggestions']['get'](_0x28c498)||this['_createSuggestion'](_0x373856,_0xbd5d7f,_0x28c498,_0x49dce9,_0x1315b6,_0x353d29);if(this['_addThreadToSuggestion'](_0x5b0b93),this['_checkSuggestionCorrectness'](_0x5b0b93,_0x373856,_0xbd5d7f||null,_0x49dce9),_0x5b0b93['createdAt']=_0xf1b62a['createdAt'],_0x5b0b93['_isDataLoaded']=!0x0,_0x1315b6&&_0x1315b6['@external']){const _0x2cfa3a=_0x1315b6['@external'],_0x5c28de=this['_getExternalAuthor'](_0x2cfa3a['authorName']);_0x5b0b93['authoredAt']=_0x2cfa3a['createdAt'],_0x5b0b93['author']=_0x5c28de,_0x5b0b93['isExternal']=!0x0;}else _0x5b0b93['authoredAt']=_0xf1b62a['createdAt'];switch(_0xf1b62a['data']&&(_0x5b0b93['data']=_0xf1b62a['data']),_0xf1b62a['attributes']&&(_0x5b0b93['attributes']=_0xf1b62a['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5b0b93['_saved']=!0x0),this['_suggestionState']['get'](_0x5b0b93)){case'notReady':this['_suggestionState']['set'](_0x5b0b93,'dataReady');break;case'markerReady':_0x5b0b93['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5b0b93])),this['_refreshSuggestionsChain'](new Set([_0x5b0b93])),this['_suggestionState']['set'](_0x5b0b93,'ready'),this['fire']('suggestionLoaded',_0x5b0b93)):this['_suggestionState']['set'](_0x5b0b93,'removed');}return _0x5b0b93;}['acceptSuggestion'](_0x24c9af){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x32e933 of _0x24c9af['getAllAdjacentSuggestions']())_0x32e933['accept']();});});}['discardSuggestion'](_0x4cfb22){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x319a0e of _0x4cfb22['getAllAdjacentSuggestions']())_0x319a0e['discard']();});});}['enableCommand'](_0x32514d,_0x21c891){const _0x2533f1=this['editor']['commands']['get'](_0x32514d);if(!_0x2533f1)throw new _0x2ba13e('track-changes-command-not-found',this,{'commandName':_0x32514d});if(this['_enabledCommands']['has'](_0x2533f1))throw new _0x2ba13e('track-changes-enable-command-twice',this,{'commandName':_0x32514d});this['_enabledCommands']['add'](_0x2533f1),_0x21c891&&_0x2533f1['on']('execute',(_0x3331d5,_0x557f77)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x557f77['length']>0x0&&_0x557f77[_0x557f77['length']-0x1]&&_0x557f77[_0x557f77['length']-0x1]['forceDefaultExecution']?_0x557f77['pop']():(_0x3331d5['return']=_0x21c891((..._0xb7fce5)=>_0x2533f1['execute'](..._0xb7fce5,{'forceDefaultExecution':!0x0}),..._0x557f77),_0x3331d5['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2347e6){let _0x3cff44,_0x4c6c17;const _0x3859eb=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3cff44=_0x2347e6();}catch(_0x161b2b){_0x4c6c17=_0x161b2b;}return _0x3859eb||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4c6c17&&_0x2ba13e['rethrowUnexpectedError'](_0x4c6c17,this),_0x3cff44;}['markInsertion'](_0x125801,_0x10c77a=null,_0x1727ac={}){if(_0x125801['isCollapsed'])return null;const _0x2dbce7=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1727ac['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1a6eeb,meta:_0x5a0db2}of this['_findSuggestions'](_0x125801,'insertion'))if(_0x5a0db2['isOwn']){if(!_0x5a0db2['isNextTo']){if(_0x5a0db2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Wt(_0x1a6eeb,_0x1727ac))continue;return _0x1a6eeb;}if(Wt(_0x1a6eeb,_0x1727ac))return _0x1a6eeb;this['_breakSuggestionMarker'](_0x1a6eeb,_0x125801['start'],_0x125801['end']);break;}if(_0x10c77a==_0x1a6eeb['subType']&&Wt(_0x1a6eeb,_0x1727ac)){const _0x21b668=_0x1a6eeb['getFirstRange']();return _0x21b668['start']['isEqual'](_0x125801['end'])?this['_setSuggestionRange'](_0x1a6eeb,this['_model']['createRange'](_0x125801['start'],_0x21b668['end'])):this['_setSuggestionRange'](_0x1a6eeb,this['_model']['createRange'](_0x21b668['start'],_0x125801['end'])),_0x1a6eeb;}}const _0x300f61=_0x4fc05b(),_0x50d9e7=_0x2dbce7['id'],_0x560e47=_0x10c77a?'insertion:'+_0x10c77a:'insertion',_0x3ed725=this['_setSuggestionData']({'id':_0x300f61,'type':_0x560e47,'createdAt':new Date(),'authorId':_0x50d9e7,'attributes':_0x1727ac});return this['_addSuggestionMarker'](_0x560e47,_0x300f61,_0x50d9e7,_0x125801),_0x3ed725;}['markMultiRangeInsertion'](_0x4f0db7,_0x5cd159='multi',_0xee9990={}){const _0x39d72e=this['editor']['plugins']['get']('Users')['me'],_0x2a0ac9=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5cd159,'join');this['_trackingSessionId']&&(_0xee9990['trackingSessionId']=this['_trackingSessionId']);for(const _0xd8ec5a of this['getSuggestions']())if(_0xd8ec5a['author']['id']==_0x39d72e['id']&&'insertion'==_0xd8ec5a['type']&&_0xd8ec5a['subType']==_0x5cd159&&Wt(_0xd8ec5a,_0xee9990)&&(_0x2a0ac9(_0xd8ec5a['getRanges'](),_0x4f0db7)||_0x2a0ac9(_0x4f0db7,_0xd8ec5a['getRanges']()))){for(const _0x2cd517 of _0x4f0db7)_0xd8ec5a['addRange'](_0x2cd517);return _0xd8ec5a;}for(const {suggestion:_0x2453ba,meta:_0x5339ba}of this['_findSuggestions'](_0x4f0db7,'insertion')){if(!_0x5339ba['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5339ba['containsRangeInObject'])continue;if(!Wt(_0x2453ba,_0xee9990))continue;let _0x162dc8=!0x0;for(const _0x45ac22 of _0x2453ba['getRanges']())for(const _0x27b268 of _0x4f0db7)if(!_0x45ac22['containsRange'](_0x27b268)){_0x162dc8=!0x1;break;}if(_0x162dc8)return _0x2453ba;}const _0x3e1c93=_0x4fc05b(),_0xcab1b3=_0x39d72e['id'],_0x34d9c6='insertion:'+_0x5cd159,_0x2a9545=this['_setSuggestionData']({'id':_0x3e1c93,'type':_0x34d9c6,'createdAt':new Date(),'authorId':_0xcab1b3,'attributes':_0xee9990});for(const _0x5edac of _0x4f0db7)this['_addSuggestionMarker'](_0x34d9c6,_0x3e1c93,_0xcab1b3,_0x5edac,x['getMultiRangeId']());return _0x2a9545;}['markInlineFormat'](_0x223766,_0x17abbf,_0x137194=null,_0x32bb78={}){if(_0x137194=_0x137194||Lt(_0x17abbf),_0x223766['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x32bb78['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5a71b1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x137194,'accept');return this['forceDefaultExecution'](()=>_0x5a71b1([_0x223766],_0x17abbf,_0x32bb78)),null;}const _0x4c430e=this['editor']['plugins']['get']('Users')['me'],_0x414a77=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3bcbc7,meta:_0x34b35e}of this['_findSuggestions'](_0x223766,'insertion'))_0x34b35e['isOwn']&&!_0x34b35e['isInsideObject']&&_0x414a77['push'](..._0x3bcbc7['getRanges']());}const _0x4d8ef3=function(_0x3259e5,_0x2ed6e0){const _0x23406c=[];for(const _0x4f54bb of _0x2ed6e0){const _0x57e572=_0x3259e5['getIntersection'](_0x4f54bb);_0x57e572&&_0x23406c['push'](_0x57e572);}return _0x23406c;}(_0x223766,_0x414a77),_0x41e00a=function(_0x3e567a,_0x1a1da5){const _0x3c7c8f=[_0x3e567a];for(const _0x76f5f1 of _0x1a1da5){let _0x29779d=0x0;for(;_0x29779d<_0x3c7c8f['length'];){const _0xded910=_0x3c7c8f[_0x29779d]['getDifference'](_0x76f5f1);_0x3c7c8f['splice'](_0x29779d,0x1,..._0xded910),_0x29779d+=_0xded910['length'];}}return _0x3c7c8f;}(_0x223766,_0x414a77);_0x4d8ef3['length']&&this['_model']['change'](()=>{for(const _0x4cea82 of _0x4d8ef3){const _0x31987a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x137194,'accept');this['forceDefaultExecution'](()=>_0x31987a([_0x4cea82],_0x17abbf,_0x32bb78));}});for(const _0x4a6981 of _0x41e00a){let _0x26ad60=null,_0x3df415=_0x4a6981['start'],_0x4c729d=_0x4a6981['end'];for(const {suggestion:_0x167b85,meta:_0x571a87}of this['_findSuggestions'](_0x4a6981,'formatInline')){if(!_0x571a87['isOwn'])continue;if(_0x167b85['subType']!=_0x137194)continue;if(!Wt(_0x167b85,_0x32bb78))continue;const _0x5380ad=_0x167b85['getFirstRange']();if(_0x5380ad['containsRange'](_0x4a6981,!0x0))return null;_0x3df415=_0x3df415['isBefore'](_0x5380ad['start'])?_0x3df415:_0x5380ad['start'],_0x4c729d=_0x4c729d['isAfter'](_0x5380ad['end'])?_0x4c729d:_0x5380ad['end'],_0x26ad60?_0x5380ad['start']['isBefore'](_0x26ad60['getFirstRange']()['start'])?(_0x26ad60['removeMarkers'](),_0x26ad60=_0x167b85):_0x167b85['removeMarkers']():_0x26ad60=_0x167b85;}const _0x5f3560=this['_model']['createRange'](_0x3df415,_0x4c729d);if(_0x26ad60)this['_setSuggestionRange'](_0x26ad60,_0x5f3560);else{const _0x31d022=_0x4fc05b(),_0x5aeedf=_0x4c430e['id'];this['_setSuggestionData']({'id':_0x31d022,'type':'formatInline:'+_0x137194,'data':_0x17abbf,'createdAt':new Date(),'authorId':_0x5aeedf,'attributes':_0x32bb78}),this['_addSuggestionMarker']('formatInline:'+_0x137194,_0x31d022,_0x5aeedf,_0x5f3560);}}return null;}['markBlockFormat'](_0x2b298e,_0x213045,_0x2cd07d=[],_0x15f12b=null,_0x46c78d={}){_0x213045['formatGroupId']||(_0x213045['formatGroupId']=_0x213045['commandName']),_0x213045['multipleBlocks']=_0x2b298e['is']('range'),_0x15f12b=_0x15f12b||Lt(_0x213045);const _0x46cc57=_0x2cd07d['map'](_0x48b05f=>Ht(_0x48b05f,this['_model'])),_0x3d8ecf=_0x2b298e['is']('range')?_0x2b298e:Ht(_0x2b298e,this['_model']);if(this['_trackingSessionId']&&(_0x46c78d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1fdb2f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x15f12b,'accept');return this['forceDefaultExecution'](()=>_0x1fdb2f([_0x3d8ecf],_0x213045,_0x46c78d)),null;}_0x46cc57['push'](_0x3d8ecf);let _0x3057df=!0x0;for(const _0x1bb4b1 of _0x46cc57)if(!this['_rangeIsInLocalUserInsertion'](_0x1bb4b1)){_0x3057df=!0x1;break;}if(_0x3057df&&'always'!==this['_trackFormatChanges']){const _0x5d0fa9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x15f12b,'accept');return this['forceDefaultExecution'](()=>_0x5d0fa9([_0x3d8ecf],_0x213045,_0x46c78d)),null;}let _0x286b8a=null,_0x28f968=_0x3d8ecf['start'],_0x8e4b4e=_0x3d8ecf['end'];for(const {suggestion:_0x216ed8,meta:_0x2c8b74}of this['_findSuggestions'](_0x3d8ecf,'formatBlock')){if(!_0x2c8b74['isOwn'])continue;if(_0x2c8b74['isNextTo']||_0x2c8b74['containsRangeInObject']||_0x2c8b74['isInsideObject'])continue;if(_0x216ed8['data']['formatGroupId']!=_0x213045['formatGroupId'])continue;if(!Wt(_0x216ed8,_0x46c78d))continue;const _0x390d3f=_0x216ed8['getFirstRange']();if(_0x216ed8['subType']==_0x15f12b){if(_0x390d3f['containsRange'](_0x3d8ecf,!0x0))return null;_0x28f968=_0x28f968['isBefore'](_0x390d3f['start'])?_0x28f968:_0x390d3f['start'],_0x8e4b4e=_0x8e4b4e['isAfter'](_0x390d3f['end'])?_0x8e4b4e:_0x390d3f['end'],_0x286b8a?_0x390d3f['start']['isBefore'](_0x286b8a['getFirstRange']()['start'])?(_0x286b8a['removeMarkers'](),_0x286b8a=_0x216ed8):_0x216ed8['removeMarkers']():_0x286b8a=_0x216ed8;}else{const _0x2246b7=_0x3d8ecf['getIntersection'](_0x390d3f);this['_cutOutSuggestionMarker'](_0x216ed8,_0x2246b7);}}const _0x442d4d=this['editor']['plugins']['get']('Users')['me'],_0x538cb9=_0x4fc05b(),_0x39023b=_0x442d4d['id'];if(_0x286b8a)return this['_setSuggestionRange'](_0x286b8a,this['_model']['createRange'](_0x28f968,_0x8e4b4e)),_0x286b8a;{const _0x1865fe=this['_setSuggestionData']({'id':_0x538cb9,'type':'formatBlock:'+_0x15f12b,'data':_0x213045,'createdAt':new Date(),'authorId':_0x39023b,'attributes':_0x46c78d});return this['_addSuggestionMarker']('formatBlock:'+_0x15f12b,_0x538cb9,_0x39023b,this['_model']['createRange'](_0x28f968,_0x8e4b4e)),_0x1865fe;}}['markMultiRangeBlockFormat'](_0xb17b3b,_0x1a3609,_0x552520=[],_0x2e16c1=null,_0x124164={}){_0x1a3609['formatGroupId']||(_0x1a3609['formatGroupId']=_0x1a3609['commandName']);const _0x1f3f92=_0xb17b3b[0x0];_0x1a3609['multipleBlocks']=_0x1f3f92['is']('range'),_0x2e16c1=_0x2e16c1||Lt(_0x1a3609);const _0x26255d=_0x552520['map'](_0x446fe0=>Ht(_0x446fe0,this['_model'])),_0x3af6d7=_0x1f3f92['is']('range')?_0xb17b3b:_0xb17b3b['map'](_0x523321=>Ht(_0x523321,this['_model']));if(this['_trackingSessionId']&&(_0x124164['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x21bcf7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2e16c1,'accept');return this['forceDefaultExecution'](()=>_0x21bcf7(_0x3af6d7,_0x1a3609,_0x124164)),null;}_0x26255d['push'](..._0x3af6d7);let _0xf112c2=!0x0;for(const _0x5c88fb of _0x26255d)if(!this['_rangeIsInLocalUserInsertion'](_0x5c88fb)){_0xf112c2=!0x1;break;}if(_0xf112c2&&'always'!==this['_trackFormatChanges']){const _0x29010c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2e16c1,'accept');return this['forceDefaultExecution'](()=>_0x29010c(_0x3af6d7,_0x1a3609,_0x124164)),null;}const _0x42946b=this['editor']['plugins']['get']('Users')['me'];for(const _0x14c710 of this['getSuggestions']()){if(_0x14c710['author']['id']!=_0x42946b['id'])continue;if('formatBlock'!=_0x14c710['type']||_0x14c710['data']['formatGroupId']!=_0x1a3609['formatGroupId'])continue;if(!Wt(_0x14c710,_0x124164))continue;const _0x23d461=_0x14c710['subType']==_0x2e16c1;for(let _0x1189d4=0x0;_0x1189d4<_0x3af6d7['length'];_0x1189d4++){const _0x1c8b4f=_0x3af6d7[_0x1189d4];for(const _0x4dcc17 of _0x14c710['getMarkers']()){const _0x36b10b=_0x4dcc17['getRange']();if(_0x1c8b4f['isEqual'](_0x36b10b)){_0x23d461?(_0x3af6d7['splice'](_0x1189d4,0x1),_0x1189d4--):_0x14c710['removeMarker'](_0x4dcc17['name']);break;}}}}if(0x0==_0x3af6d7['length'])return null;const _0xf2ad84=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2e16c1,'join');for(const _0x45f893 of this['getSuggestions']())if(_0x45f893['author']['id']==_0x42946b['id']&&'formatBlock'==_0x45f893['type']&&_0x45f893['data']['formatGroupId']==_0x1a3609['formatGroupId']&&_0x45f893['subType']==_0x2e16c1&&Wt(_0x45f893,_0x124164)&&(_0xf2ad84(_0x45f893['getRanges'](),_0x3af6d7)||_0xf2ad84(_0x3af6d7,_0x45f893['getRanges']()))){for(const _0x26b547 of _0x3af6d7)_0x45f893['addRange'](_0x26b547);return _0x45f893;}const _0x1cc671=_0x4fc05b(),_0x323aeb=_0x42946b['id'],_0x62b9d3='formatBlock:'+_0x2e16c1,_0x35cd62=this['_setSuggestionData']({'id':_0x1cc671,'type':_0x62b9d3,'data':_0x1a3609,'createdAt':new Date(),'authorId':_0x323aeb,'attributes':_0x124164});for(const _0x4fb461 of _0x3af6d7)this['_addSuggestionMarker'](_0x62b9d3,_0x1cc671,_0x323aeb,_0x4fb461,x['getMultiRangeId']());return _0x35cd62;}['markDeletion'](_0x44cfa5,_0x53800e=null,_0x3dc8af={}){if(_0x44cfa5['isCollapsed'])return null;const _0x1e4666=this['editor']['plugins']['get']('Users')['me'],_0x1d5311=new _0x527bd9(_0x44cfa5['start'],_0x44cfa5['end']);this['_trackingSessionId']&&(_0x3dc8af['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x9ada9c,meta:_0x2735f1}of this['_findSuggestions'](_0x1d5311,'insertion'))if(_0x2735f1['isOwn']&&!_0x2735f1['isNextTo']){if(_0x9ada9c['isMultiRange']){const _0xad3694=_0x9ada9c['getRanges']()['filter'](_0x1598fa=>'$graveyard'!=_0x1598fa['root']['rootName']);_0xad3694['every'](_0x169d47=>_0x1d5311['containsRange'](_0x169d47,!0x0))&&_0x9ada9c['discard']();if(_0xad3694['some'](_0x4259f4=>_0x4259f4['containsRange'](_0x1d5311,!0x0))){const _0x29eeb7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53800e,'accept');return this['forceDefaultExecution'](()=>_0x29eeb7([_0x1d5311],null,_0x3dc8af)),null;}}else{const _0x45ae5b=_0x1d5311['getIntersection'](_0x9ada9c['getFirstRange']());null!==_0x45ae5b&&_0x9ada9c['_onDiscard']([_0x45ae5b],null,_0x3dc8af);}}if(_0x1d5311['detach'](),_0x1d5311['isCollapsed']||'$graveyard'==_0x1d5311['root']['rootName'])return null;let _0x109f6d=null,_0x36b99b=_0x1d5311['start'],_0x52f926=_0x1d5311['end'];const _0x15a463=this['_findSuggestions'](_0x1d5311,'deletion');for(const {suggestion:_0xcb969,meta:_0x85f97d}of _0x15a463){const _0x2c0ef1=this['_model']['createRange'](_0x36b99b,_0x52f926);if(_0x85f97d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x85f97d['containsRangeInObject']&&!_0x85f97d['isInsideObject'])){if(_0xcb969['isMultiRange']){if(!Wt(_0xcb969,_0x3dc8af))continue;let _0x163b85=!0x0;for(const _0x6c95c8 of _0xcb969['getRanges']()){if(_0x6c95c8['containsRange'](_0x2c0ef1,!0x0))return _0xcb969;_0x2c0ef1['containsRange'](_0x6c95c8)||(_0x163b85=!0x1);}_0x163b85&&_0xcb969['discard']();}else{const _0x564d79=_0xcb969['getFirstRange']();if(_0x564d79['containsRange'](_0x2c0ef1,!0x0))return _0xcb969;if(!Wt(_0xcb969,_0x3dc8af)){_0x2c0ef1['containsRange'](_0x564d79)?_0xcb969['removeMarkers']():_0x564d79['containsPosition'](_0x36b99b)?_0x36b99b=_0x564d79['end']:_0x564d79['containsPosition'](_0x52f926)&&(_0x52f926=_0x564d79['start']);continue;}_0x36b99b=_0x36b99b['isBefore'](_0x564d79['start'])?_0x36b99b:_0x564d79['start'],_0x52f926=_0x52f926['isAfter'](_0x564d79['end'])?_0x52f926:_0x564d79['end'],_0x3dc8af=Object['assign']({},_0xcb969['attributes']),_0x109f6d?_0x564d79['start']['isBefore'](_0x109f6d['getFirstRange']()['start'])?(_0x109f6d['removeMarkers'](),_0x109f6d=_0xcb969):_0xcb969['removeMarkers']():_0x109f6d=_0xcb969;}}}if(_0x109f6d)return this['_setSuggestionRange'](_0x109f6d,this['_model']['createRange'](_0x36b99b,_0x52f926)),_0x109f6d;{const _0x327da0=_0x4fc05b(),_0x5cde04=this['_model']['createRange'](_0x36b99b,_0x52f926),_0x23a704=_0x1e4666['id'],_0x432c13=_0x53800e?'deletion:'+_0x53800e:'deletion',_0x140f29=this['_setSuggestionData']({'id':_0x327da0,'type':_0x432c13,'createdAt':new Date(),'authorId':_0x23a704,'attributes':_0x3dc8af});return this['_addSuggestionMarker'](_0x432c13,_0x327da0,_0x23a704,_0x5cde04),_0x140f29;}}['markMultiRangeDeletion'](_0x227d24,_0x4cdd5e='multi',_0x5b4456={}){const _0x358242=this['editor']['plugins']['get']('Users')['me'],_0x516257=_0x227d24['map'](_0x2d067c=>new _0x527bd9(_0x2d067c['start'],_0x2d067c['end'])),_0x3d38c6=new Set();this['_trackingSessionId']&&(_0x5b4456['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5a25b1,meta:_0x585afc}of this['_findSuggestions'](_0x516257,'insertion'))_0x585afc['isOwn']&&!_0x585afc['isNextTo']&&_0x3d38c6['add'](_0x5a25b1);for(const _0x4a43be of _0x3d38c6)if(_0x4a43be['isMultiRange']){const _0x2b040f=_0x4a43be['getRanges']();(!_0x4a43be['attributes']||!_0x4a43be['attributes']['skipNestingCheck'])&&(_0x2b040f['every'](_0x1ce18f=>_0x516257['some'](_0x14d5f0=>_0x14d5f0['containsRange'](_0x1ce18f,!0x0)))&&_0x4a43be['discard']());if(_0x516257['every'](_0x48a2d7=>_0x2b040f['some'](_0xe8b695=>_0xe8b695['containsRange'](_0x48a2d7,!0x0)))){const _0x2bd086=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4cdd5e,'accept');return this['forceDefaultExecution'](()=>_0x2bd086(_0x227d24,null,_0x5b4456)),null;}}else{const _0x118643=_0x4a43be['getFirstRange']();_0x516257['some'](_0x40d697=>_0x40d697['containsRange'](_0x118643,!0x0))&&_0x4a43be['discard']();if(_0x516257['every'](_0x3dd05c=>_0x118643['containsRange'](_0x3dd05c,!0x0))){const _0x539210=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4cdd5e,'accept');return this['forceDefaultExecution'](()=>_0x539210(_0x516257,null,_0x5b4456)),null;}}const _0x4346ce=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4cdd5e,'join');let _0x247df9=null;for(const _0x593367 of this['getSuggestions']())if(_0x593367['author']['id']==_0x358242['id']&&_0x593367['isInContent']&&'deletion'==_0x593367['type']&&_0x593367['subType']==_0x4cdd5e&&Wt(_0x593367,_0x5b4456)&&(_0x4346ce(_0x593367['getRanges'](),_0x516257)||_0x4346ce(_0x516257,_0x593367['getRanges']()))){if(_0x247df9){if(_0x593367['commentThread']&&_0x593367['commentThread']['length'])continue;for(const _0x23a05e of _0x593367['getRanges']())_0x247df9['isIntersectingWithRange'](_0x23a05e)||_0x247df9['addRange'](_0x23a05e);_0x593367['removeMarkers']();}else{_0x247df9=_0x593367;for(const _0x5be9f9 of _0x516257)_0x593367['isIntersectingWithRange'](_0x5be9f9)||_0x593367['addRange'](_0x5be9f9);}}if(_0x247df9)return _0x247df9;_0x3d38c6['clear']();for(const {suggestion:_0x4f996e,meta:_0xee9894}of this['_findSuggestions'](_0x516257,'deletion'))_0xee9894['isOwn']&&(this['_mergeNestedSuggestions']||!_0xee9894['containsRangeInObject']&&!_0xee9894['isInsideObject'])&&Wt(_0x4f996e,_0x5b4456)&&_0x3d38c6['add'](_0x4f996e);for(const _0x3bb078 of _0x3d38c6){const _0x5a9803=_0x3bb078['getRanges']();if(!_0x5b4456||!_0x5b4456['skipNestingCheck']){if(_0x516257['every'](_0x5c7120=>_0x5a9803['some'](_0x3d69e3=>_0x3d69e3['containsRange'](_0x5c7120,!0x0))))return _0x3bb078;}(!_0x3bb078['attributes']||!_0x3bb078['attributes']['skipNestingCheck'])&&(_0x5a9803['every'](_0x2736a4=>_0x516257['some'](_0x1599c3=>_0x1599c3['containsRange'](_0x2736a4,!0x0)))&&_0x3bb078['discard']());}const _0x2ae1d6=_0x4fc05b(),_0x45a05a=_0x358242['id'],_0x36be62='deletion:'+_0x4cdd5e,_0x122331=this['_setSuggestionData']({'id':_0x2ae1d6,'type':_0x36be62,'createdAt':new Date(),'authorId':_0x45a05a,'attributes':_0x5b4456});for(const _0x2fbb80 of _0x516257)_0x2fbb80['detach'](),_0x2fbb80['isCollapsed']||'$graveyard'==_0x2fbb80['root']['rootName']||this['_addSuggestionMarker'](_0x36be62,_0x2ae1d6,_0x45a05a,_0x2fbb80,x['getMultiRangeId']());return _0x122331;}['markAttributeChange'](_0x3e9179,_0x3237e4,_0x135afa,_0x24a89b,_0x5c55aa){if(_0x3e9179['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2dfd1b=this['editor']['plugins']['get']('Users')['me']['id'],_0xbddbe6=Array['from'](this['_suggestions']['values']())['filter'](_0x440a1d=>'attribute'==_0x440a1d['type']&&_0x440a1d['data']['key']==_0x3237e4&&_0x440a1d['isIntersectingWithRange'](_0x3e9179));if(this['_trackingSessionId']&&(_0x5c55aa['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x532da3=this['_findSuggestions'](_0x3e9179,'insertion')['filter'](({meta:_0x13383b})=>_0x13383b['isOwn']&&!_0x13383b['isInsideObject']&&!_0x13383b['isNextTo'])['map'](({suggestion:_0x40db68})=>_0x40db68);_0xbddbe6['unshift'](..._0x532da3);}const _0x3debb2=new Map([[_0x3e9179,_0x135afa]]);for(const _0x547305 of _0xbddbe6){const _0x271f29='attribute'==_0x547305['type']?_0x547305['data']['oldValue']:void 0x0,_0x1bfd72=_0x547305['getFirstRange'](),_0x548193=Array['from'](_0x3debb2['keys']())['find'](_0x5b5792=>_0x5b5792['isIntersecting'](_0x1bfd72));if(!_0x548193)continue;const _0x23a70e=_0x548193['getDifference'](_0x1bfd72);this['_isBlockAttribute'](_0x3237e4)&&'insertion'==_0x547305['type']&&0x0!=_0x23a70e['length']||(_0x3debb2['delete'](_0x548193),_0x23a70e['forEach'](_0x398de3=>{_0x3debb2['set'](_0x398de3,_0x135afa);}),'insertion'!=_0x547305['type']&&_0x271f29!=_0x24a89b&&_0x3debb2['set'](_0x548193['getIntersection'](_0x1bfd72),_0x271f29));}const _0x3c9c1e=[];for(const [_0x3a5b2b,_0xd46cef]of _0x3debb2){const _0x5bd2a2=_0x4fc05b(),_0x43b58e={'key':_0x3237e4,'oldValue':_0xd46cef,'newValue':_0x24a89b};_0x3237e4['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':_0x3237e4});const _0x163c40=('attribute:'+(_0x3237e4+'|'+Lt({'newValue':_0x24a89b})))['substring'](0x0,0x3c),_0x5ebe21=this['_setSuggestionData']({'id':_0x5bd2a2,'type':_0x163c40,'data':_0x43b58e,'createdAt':new Date(),'authorId':_0x2dfd1b,'attributes':_0x5c55aa});_0x3c9c1e['push'](_0x5ebe21),this['_addSuggestionMarker'](_0x163c40,_0x5bd2a2,_0x2dfd1b,_0x3a5b2b);}return _0x3c9c1e;}['enableDefaultAttributesIntegration'](_0x342850){this['enableCommand'](_0x342850,(_0x2144d7,..._0x4831ca)=>{this['_recordAttributeChanges'](()=>{_0x2144d7(..._0x4831ca);});});}['registerBlockAttribute'](_0x8d7517){this['_blockAttributeKeys']['add'](_0x8d7517);}['registerInlineAttribute'](_0x1e2915){this['_inlineAttributeKeys']['add'](_0x1e2915);}['startTrackingSession'](_0x36c383){return this['_trackingSessionId']=void 0x0!==_0x36c383?_0x36c383:_0x4fc05b(),this['_trackingSessionId'];}['_getAttributeKey'](_0x526566){return'attribute'==_0x526566['type']?_0x526566['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x31cc80,_0x3c90db){const _0x247867=_0x31cc80['getFirstMarker']();this['_model']['change'](_0xb9bf69=>{_0xb9bf69['updateMarker'](_0x247867,{'range':_0x3c90db});});}['_addThreadToSuggestion'](_0x4bf426){const _0x47057a=_0x4bf426['id'],_0x11a5de=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x47057a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x11a5de,'threadId':_0x47057a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x6b241=this['_commentsRepository']['getCommentThread'](_0x47057a);_0x6b241['unbind']('isRemovable'),_0x6b241['isRemovable']=!0x1,_0x4bf426['commentThread']=_0x6b241;}['_checkSuggestionCorrectness'](_0x618766,_0xf58f9a,_0x8954e4,_0x5a4c46){if(_0x618766['type']!=_0xf58f9a||_0x618766['subType']!=_0x8954e4||_0x618766['creator']['id']!=_0x5a4c46)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2ba13e('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1890ee,_0x3f0b7d){const _0x20c7ff=_0x1890ee['getFirstRange']();if(_0x3f0b7d['isEqual'](_0x20c7ff))_0x1890ee['removeMarkers']();else{if(_0x20c7ff['containsRange'](_0x3f0b7d)){const _0x3cacb7=this['_model']['createPositionAt'](_0x3f0b7d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1890ee,this['_model']['createRange'](_0x20c7ff['start'],_0x3cacb7));const _0x1f8eb8=_0x4fc05b(),_0x4d23cb=_0x1890ee['creator']['id'],_0x355e11=_0x1890ee['type']+':'+_0x1890ee['subType'];this['_setSuggestionData']({'id':_0x1f8eb8,'type':_0x355e11,'createdAt':new Date(),'authorId':_0x4d23cb,'data':_0x1890ee['data'],'attributes':_0x1890ee['attributes']});const _0xb2ea72=this['_model']['createPositionAt'](_0x3f0b7d['end']['parent'],'after'),_0x440e28=this['_model']['createRange'](_0xb2ea72,_0x20c7ff['end']);this['_addSuggestionMarker'](_0x355e11,_0x1f8eb8,_0x4d23cb,_0x440e28);}else{if(_0x20c7ff['containsPosition'](_0x3f0b7d['start'])){const _0x4f889f=this['_model']['createPositionAt'](_0x3f0b7d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1890ee,this['_model']['createRange'](_0x20c7ff['start'],_0x4f889f));}else{const _0x1eb24f=this['_model']['createPositionAt'](_0x3f0b7d['end']['parent'],'after');this['_setSuggestionRange'](_0x1890ee,this['_model']['createRange'](_0x1eb24f,_0x20c7ff['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1c65b6){for(const {suggestion:_0x1abc51,meta:_0x1ae959}of this['_findSuggestions'](_0x1c65b6,'insertion')){if(!_0x1ae959['isOwn'])continue;const _0x119d44=_0x1abc51['getRanges']();for(const _0x427214 of _0x119d44)if(!_0x1c65b6['getDifference'](_0x427214)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4a7a2e){const _0x1497e0=this['editor']['plugins']['get']('Users')['getUser'](_0x4a7a2e);if(!_0x1497e0)throw new _0x2ba13e('track-changes-user-not-found',this);return _0x1497e0;}['_getExternalAuthor'](_0x56bf8d){const _0x2d2042=this['editor']['plugins']['get']('Users'),_0x15febc=_0x3ba6f1('external:'+_0x56bf8d),_0xe35faa=_0x2d2042['getUser'](_0x15febc);return _0xe35faa||_0x2d2042['addUser']({'id':_0x15febc,'name':_0x56bf8d});}['_createSuggestion'](_0x32cb25,_0xdbb6b3,_0x48916a,_0x468987,_0x4b5182,_0x55f825){const _0x479519=this['_getAuthorFromId'](_0x468987),_0x275d86=this['_suggestionFactory']['buildSuggestion'](_0x32cb25,_0xdbb6b3,_0x48916a,_0x479519,_0x4b5182,_0x29473b=>{this['_updateSuggestionData'](_0x48916a,{'attributes':_0x29473b});const _0x378bb4=this['getSuggestion'](_0x48916a);this['_joinWithAdjacentSuggestions'](new Set([_0x378bb4])),this['_refreshSuggestionsChain'](new Set([_0x378bb4]));},_0x55f825);return this['listenTo'](_0x275d86,'accept',()=>{this['_updateSuggestionData'](_0x48916a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x275d86,'discard',()=>{this['_updateSuggestionData'](_0x48916a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x48916a,_0x275d86),this['_suggestionState']['set'](_0x275d86,'notReady'),_0x275d86;}['_splitMarkerName'](_0x4c7e18){const _0x5b9f8f=_0x4c7e18['split'](':');return{'group':_0x5b9f8f[0x0],'type':_0x5b9f8f[0x1],'subType':_0x5b9f8f['length']>=0x5?_0x5b9f8f[0x2]:null,'id':_0x5b9f8f['length']<0x5?_0x5b9f8f[0x2]:_0x5b9f8f[0x3],'authorId':_0x5b9f8f['length']<0x5?_0x5b9f8f[0x3]:_0x5b9f8f[0x4],'markerCount':0x6==_0x5b9f8f['length']?_0x5b9f8f[0x5]:null};}['_breakSuggestionMarker'](_0x3668e4,_0x18f23a,_0x42d5fe){const _0x21f02a=_0x3668e4['getFirstRange'](),_0x360c85=_0x21f02a['start'],_0x969afb=_0x21f02a['end'];this['_setSuggestionRange'](_0x3668e4,this['_model']['createRange'](_0x360c85,_0x18f23a));const _0x42be84=_0x4fc05b(),_0xb0cb07=_0x3668e4['creator']['id'],_0x4d536e=_0x3668e4['type']+(_0x3668e4['subType']?':'+_0x3668e4['subType']:'');this['_setSuggestionData']({'id':_0x42be84,'type':_0x4d536e,'createdAt':new Date(),'authorId':_0xb0cb07,'originalSuggestionId':_0x3668e4['_originalSuggestionId']||_0x3668e4['id'],'attributes':_0x3668e4['attributes'],'data':_0x3668e4['data']});const _0x1ad2c4=this['_getAttributeKey'](_0x3668e4);('formatBlock'==_0x3668e4['type']||_0x1ad2c4&&this['_isBlockAttribute'](_0x1ad2c4))&&(_0x42d5fe=this['_model']['createPositionBefore'](_0x42d5fe['parent'])),this['_addSuggestionMarker'](_0x4d536e,_0x42be84,_0xb0cb07,this['_model']['createRange'](_0x42d5fe,_0x969afb));}['_findSuggestions'](_0x5bbd5a,_0x4e839f=null){const _0x5373f2=[],_0x203dd9=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5bbd5a)||(_0x5bbd5a=[_0x5bbd5a]);for(const _0x15bec1 of this['getSuggestions']()){if(!_0x15bec1['isInContent'])continue;if(_0x4e839f&&_0x15bec1['type']!=_0x4e839f)continue;let _0xf002f5=!0x1;for(const _0x4f18dc of _0x15bec1['getRanges']()){for(const _0x44db51 of _0x5bbd5a){const _0x37631f=_0x44db51['start']['isEqual'](_0x4f18dc['end'])||_0x44db51['end']['isEqual'](_0x4f18dc['start']);if(_0x37631f||_0x44db51['getIntersection'](_0x4f18dc)){const _0x37ace8=_0x44db51['containsRange'](_0x4f18dc)&&Ft(this['_model']['schema'],_0x4f18dc['start'],_0x44db51),_0x4ef62d=_0x4f18dc['containsRange'](_0x44db51)&&Ft(this['_model']['schema'],_0x44db51['start'],_0x4f18dc);_0x5373f2['push']({'suggestion':_0x15bec1,'meta':{'isOwn':_0x203dd9==_0x15bec1['author'],'isNextTo':_0x37631f,'isInsideObject':_0x37ace8,'containsRangeInObject':_0x4ef62d}}),_0xf002f5=!0x0;break;}}if(_0xf002f5)break;}}return _0x5373f2;}['_addSuggestionMarker'](_0x21b145,_0x5d1e37,_0x1dcc07,_0x1b8411,_0x3dd30b){this['_model']['change'](_0x291ea2=>{let _0x260ac2='suggestion:'+_0x21b145+':'+_0x5d1e37+':'+_0x1dcc07;_0x3dd30b&&(_0x260ac2=_0x260ac2+':'+_0x3dd30b),_0x291ea2['addMarker'](_0x260ac2,{'range':_0x1b8411,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2452de){const _0x37ac16=_0x2452de['previous'],_0x5d59a0=_0x2452de['next'];_0x2452de['previous']=null,_0x2452de['next']=null,null!=_0x37ac16&&_0x37ac16['next']==_0x2452de&&(_0x37ac16['next']=_0x5d59a0),null!=_0x5d59a0&&_0x5d59a0['previous']==_0x2452de&&(_0x5d59a0['previous']=_0x37ac16),'ready'==this['_suggestionState']['get'](_0x2452de)&&(this['_suggestionState']['set'](_0x2452de,'removed'),this['fire']('suggestionUnloaded',_0x2452de,_0x37ac16,_0x5d59a0));}['_setSuggestionData'](_0x27010c){const _0x382846=_0x27010c['id'],_0x5de8cc=this['addSuggestionData'](_0x27010c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3f7f26=this['editor']['plugins']['get']('PendingActions'),_0x55b8cf=_0x5de8cc['hasComments'],_0x2dc936=_0x5de8cc['subType']?_0x5de8cc['type']+':'+_0x5de8cc['subType']:_0x5de8cc['type'],_0x3ca31e=this['editor']['locale'],_0x537cba=_0x3f7f26['add'](o(_0x3ca31e,'PENDING_ACTION_SUGGESTION')),_0x1f1236={'id':_0x382846,'type':_0x2dc936,'hasComments':_0x55b8cf,'data':_0x27010c['data']||null,'originalSuggestionId':_0x27010c['originalSuggestionId']||null,'attributes':_0x5de8cc['attributes']};this['_adapter']['addSuggestion'](_0x1f1236)['then'](_0x503077=>{_0x5de8cc['_saved']=!0x0,_0x3f7f26['remove'](_0x537cba),_0x503077&&_0x503077['createdAt']&&(this['_suggestions']['get'](_0x382846)['createdAt']=_0x503077['createdAt']);})['catch'](_0x14b53d=>{throw _0x432bab('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5de8cc['discard']();}),_0x5de8cc['stopListening'](),this['_suggestions']['delete'](_0x5de8cc['id']),this['_suggestionState']['delete'](_0x5de8cc),_0x14b53d;});}return _0x5de8cc;}['_isBlockAttribute'](_0x372063){return this['_blockAttributeKeys']['has'](_0x372063);}['_updateSuggestionData'](_0x213e9c,_0x501095){const _0x42800c=this['editor']['plugins']['get']('PendingActions'),_0x2d219e=this['getSuggestion'](_0x213e9c);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2d219e['_saved']){const _0x1ae74a=_0x42800c['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x213e9c,_0x501095)['then'](()=>{_0x42800c['remove'](_0x1ae74a);});}else _0x2d219e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x213e9c,_0x501095);});}}['_getSuggestionData'](_0x3905d5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2ba13e('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3905d5);}['_handleNewSuggestionMarker'](_0x377315){const {id:_0x2148ca,type:_0x27fe96,subType:_0x2666d3,authorId:_0x2ce766}=this['_splitMarkerName'](_0x377315),_0x35d6c7=this['_suggestions']['get'](_0x2148ca)||this['_createSuggestion'](_0x27fe96,_0x2666d3,_0x2148ca,_0x2ce766,{});switch(this['_checkSuggestionCorrectness'](_0x35d6c7,_0x27fe96,_0x2666d3,_0x2ce766),this['_suggestionState']['get'](_0x35d6c7)){case'notReady':this['_getSuggestionData'](_0x2148ca)['then'](_0x1c0d7f=>{let _0x10b89c=Promise['resolve']();_0x1c0d7f['hasComments']&&(_0x10b89c=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2148ca})),_0x10b89c['then'](()=>{this['addSuggestionData'](_0x1c0d7f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x35d6c7,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2148ca,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x35d6c7,'ready'),this['fire']('suggestionLoaded',_0x35d6c7);break;case'ready':this['fire']('suggestionChanged',_0x35d6c7);}return _0x35d6c7['addMarkerName'](_0x377315),_0x35d6c7;}['_refreshSuggestionsChain'](_0x1d5250){const _0x570247=Array['from'](_0x1d5250),_0x4971b7=_0x570247['filter'](_0xce071=>'attribute'==_0xce071['type']);this['_refreshAttributeSuggestionsChain'](_0x4971b7);const _0x4face5=_0x570247['filter'](_0x233331=>!_0x233331['isMultiRange']&&'attribute'!=_0x233331['type']),_0x2f75d6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x57cb3f=>!_0x57cb3f['isMultiRange']&&'attribute'!=_0x57cb3f['type']),_0x5a1d2b=_0x2f75d6['filter'](_0x56cd11=>!_0x1d5250['has'](_0x56cd11)),_0x7ef3de=new Map(_0x2f75d6['map'](_0x16197b=>[_0x16197b,this['_suggestionFactory']['getSuggestionCallback'](_0x16197b['type'],_0x16197b['subType'],'chain')])),_0x4c2b93=new Map(_0x2f75d6['map'](_0x18dfbd=>[_0x18dfbd,_0x18dfbd['getFirstRange']()])),_0xbbf090=new Set(),_0x3a0f05=new Set();for(let _0x4a9d3c=0x0;_0x4a9d3c<_0x4face5['length'];_0x4a9d3c++)_0x2139ab(_0x4face5[_0x4a9d3c],_0x4face5,_0x4a9d3c+0x1);for(let _0x4ea269=0x0;_0x4ea269<_0x4face5['length'];_0x4ea269++)_0x2139ab(_0x4face5[_0x4ea269],_0x5a1d2b,0x0);const _0x5a1dff=new Set();for(let _0x3568f3=0x0;_0x3568f3<_0x4face5['length'];_0x3568f3++){const _0x12d16c=_0x4face5[_0x3568f3];!_0x3a0f05['has'](_0x12d16c)&&_0x12d16c['previous']&&(_0x5a1dff['add'](_0x12d16c['previous']),_0x12d16c['previous']['next']===_0x12d16c&&(_0x12d16c['previous']['next']=null),_0x12d16c['previous']=null),!_0xbbf090['has'](_0x12d16c)&&_0x12d16c['next']&&(_0x5a1dff['add'](_0x12d16c['next']),_0x12d16c['next']['previous']===_0x12d16c&&(_0x12d16c['next']['previous']=null),_0x12d16c['next']=null);}function _0x2139ab(_0x4403fc,_0x4fdb84,_0x4b6b33){for(let _0x552af3=_0x4b6b33;_0x552af3<_0x4fdb84['length'];_0x552af3++){const _0x2aae33=_0x2b5ffe(_0x4403fc,_0x4fdb84[_0x552af3]);_0x2aae33&&(_0x2aae33[0x0]['next']=_0x2aae33[0x1],_0x2aae33[0x1]['previous']=_0x2aae33[0x0],_0xbbf090['add'](_0x2aae33[0x0]),_0x3a0f05['add'](_0x2aae33[0x1]));}}function _0x2b5ffe(_0x2f8432,_0x2f063b){if(_0x2f8432['author']['id']!==_0x2f063b['author']['id'])return null;const _0x291396=_0x7ef3de['get'](_0x2f8432)(_0x2f8432,_0x2f063b,_0x4c2b93['get'](_0x2f8432),_0x4c2b93['get'](_0x2f063b));if(!_0x291396)return null;return _0x7ef3de['get'](_0x2f063b)(_0x2f8432,_0x2f063b,_0x4c2b93['get'](_0x2f8432),_0x4c2b93['get'](_0x2f063b))?_0x291396[0x1]['commentThread']&&_0x291396[0x1]['commentThread']['length']?null:_0x291396:null;}_0x5a1dff['size']&&this['_refreshSuggestionsChain'](_0x5a1dff);}['_refreshAttributeSuggestionsChain'](_0x4ac92a){if(0x0==_0x4ac92a['length'])return;const _0x2d2f36=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5aa894=>'attribute'==_0x5aa894['type']&&_0x5aa894['_isDataLoaded']),_0x55d310=[],_0x3cbaee=new Map();for(const _0x310f2f of _0x2d2f36){const _0x591739=_0x3ba6f1(_0x310f2f['attributes']);_0x3cbaee['has'](_0x591739)||(_0x3cbaee['set'](_0x591739,_0x55d310['length']),_0x55d310['push']([]));const _0x596b2e=_0x3cbaee['get'](_0x591739);_0x55d310[_0x596b2e]['push'](_0x310f2f);}!(function(){_0x55d310['sort']((_0x399735,_0x184142)=>{const _0x1dcabd=_0x399735[0x0]['createdAt'],_0x4ebb1e=_0x184142[0x0]['createdAt'];return _0x1dcabd==_0x4ebb1e?_0x399735[0x0]['attributes']['groupId']<_0x184142[0x0]['attributes']['groupId']?-0x1:0x1:_0x1dcabd<_0x4ebb1e?-0x1:0x1;});for(const _0x14293e of _0x55d310)_0x14293e['sort']((_0x25e7b1,_0x49c1b2)=>_0x25e7b1['id']<_0x49c1b2['id']?-0x1:0x1);}());for(let _0x1fe60e=0x0;_0x1fe60e<_0x55d310['length'];_0x1fe60e++){if(0x0==_0x55d310[_0x1fe60e]['length'])continue;const _0x5b2d8d=[];for(let _0x3a5b31=_0x1fe60e+0x1;_0x3a5b31<_0x55d310['length'];_0x3a5b31++)0x0!=_0x55d310[_0x3a5b31]['length']&&_0x81e806(_0x55d310[_0x1fe60e],_0x55d310[_0x3a5b31])&&_0x5b2d8d['push'](_0x3a5b31);for(const _0x17fdcf of _0x5b2d8d)_0x55d310[_0x1fe60e]=_0x55d310[_0x1fe60e]['concat'](_0x55d310[_0x17fdcf]),_0x55d310[_0x17fdcf]=[];}for(const _0x5f46ed of _0x55d310)for(let _0x4f5943=0x0;_0x4f5943<_0x5f46ed['length'];_0x4f5943++){const _0x120e3e=_0x5f46ed[_0x4f5943+0x1]||null;_0x5f46ed[_0x4f5943]['next']!==_0x120e3e&&(_0x5f46ed[_0x4f5943]['next']=_0x120e3e);}for(const _0x40398b of _0x55d310)for(let _0x5a2db2=0x0;_0x5a2db2<_0x40398b['length'];_0x5a2db2++){const _0x3b3e59=_0x40398b[_0x5a2db2-0x1]||null;_0x40398b[_0x5a2db2]['previous']!==_0x3b3e59&&(_0x40398b[_0x5a2db2]['previous']=_0x3b3e59);}function _0x81e806(_0x51bfa2,_0x363ac8){if(_0x51bfa2[0x0]['attributes']['groupId']!==_0x363ac8[0x0]['attributes']['groupId']&&_0x51bfa2[0x0]['author']!==_0x363ac8[0x0]['author'])return!0x1;if(!function(_0x4da455,_0x2987e3){if(!_0x4da455['hasComments']&&!_0x2987e3['hasComments'])return!0x0;if(_0x4da455['hasComments']&&_0x2987e3['hasComments'])return!0x1;if(_0x4da455['hasComments']&&_0x2987e3['createdAt']<_0x4da455['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2987e3['hasComments']&&_0x4da455['createdAt']<_0x2987e3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x51bfa2[0x0],_0x363ac8[0x0]))return!0x1;const _0x51a096=Ut(_0x51bfa2[0x0]['attributes'],['groupId','trackingSessionId']),_0x2e99f6=Ut(_0x363ac8[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0xa047bc(_0x51a096,_0x2e99f6))return!0x1;if(_0x51bfa2[0x0]['attributes']['groupId']==_0x363ac8[0x0]['attributes']['groupId'])return!0x0;if(_0x51bfa2[0x0]['attributes']['trackingSessionId']!==_0x363ac8[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x51bfa2['every'](_0x47d399=>_0x363ac8['some'](_0x1295d6=>_0x47d399['getFirstRange']()['isEqual'](_0x1295d6['getFirstRange']())))&&_0x363ac8['every'](_0x32ba43=>_0x51bfa2['some'](_0x3315aa=>_0x32ba43['getFirstRange']()['isEqual'](_0x3315aa['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x26420d){const _0x999b3a=Array['from'](_0x26420d),_0x5b94bd=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1e7b00=_0x5b94bd['filter'](_0x4f630e=>!_0x26420d['has'](_0x4f630e)),_0x590873=new Map(_0x999b3a['map'](_0x34426d=>[_0x34426d,this['_suggestionFactory']['getSuggestionCallback'](_0x34426d['type'],_0x34426d['subType'],'join')])),_0x40438f=new Map(_0x5b94bd['map'](_0x1c9377=>[_0x1c9377,_0x1c9377['getRanges']()]));for(let _0x5e8623=0x0;_0x5e8623<_0x999b3a['length'];_0x5e8623++){if(_0x3f88fc(this,_0x999b3a[_0x5e8623],_0x999b3a,_0x5e8623+0x1))return!0x0;}for(let _0x104fa2=0x0;_0x104fa2<_0x999b3a['length'];_0x104fa2++){if(_0x3f88fc(this,_0x999b3a[_0x104fa2],_0x1e7b00,0x0))return!0x0;}return!0x1;function _0x3f88fc(_0x221724,_0x17264a,_0x4dd559,_0xf69b5a){for(let _0x54ed29=_0xf69b5a;_0x54ed29<_0x4dd559['length'];_0x54ed29++){const _0x20b6c9=_0x4dd559[_0x54ed29];if(_0x20b6c9['type']!==_0x17264a['type']||_0x20b6c9['author']['id']!==_0x17264a['author']['id']||_0x20b6c9['subType']!==_0x17264a['subType'])continue;if(!zt(_0x17264a,_0x20b6c9))continue;if('attribute'==_0x17264a['type']&&_0x17264a['data']['oldValue']!=_0x20b6c9['data']['oldValue'])continue;if('attribute'==_0x17264a['type']&&_0x221724['_isBlockAttribute'](_0x17264a['data']['key']))continue;if('formatBlock'==_0x17264a['type']){const _0x3c927e=_0x221724['editor']['model'],_0x44a908=_0x17264a['getContainedElement']();if(_0x44a908&&(_0x3c927e['schema']['isObject'](_0x44a908)||_0x3c927e['schema']['isLimit'](_0x44a908)))continue;}const _0x37aa40=_0x590873['get'](_0x17264a),_0x231cd2=_0x40438f['get'](_0x17264a),_0x1bfdeb=_0x40438f['get'](_0x20b6c9),_0x4aa39e=_0x17264a['commentThread']&&_0x17264a['commentThread']['length'],_0x5437f9=_0x20b6c9['commentThread']&&_0x20b6c9['commentThread']['length'];if(!_0x4aa39e&&_0x37aa40(_0x1bfdeb,_0x231cd2))return _0x221724['_joinSuggestions'](_0x20b6c9,_0x17264a),_0x40438f['delete'](_0x17264a),!0x0;if(!_0x5437f9&&_0x37aa40(_0x231cd2,_0x1bfdeb))return _0x221724['_joinSuggestions'](_0x17264a,_0x20b6c9),_0x40438f['delete'](_0x20b6c9),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4b163d,_0x597a62){if(_0x4b163d['isMultiRange']){for(const _0x557974 of _0x597a62['getRanges']())_0x4b163d['addRange'](_0x557974);}else{const _0x131e53=_0x597a62['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4b163d,this['_model']['createRange'](_0x4b163d['getFirstRange']()['start'],_0x131e53));}_0x597a62['removeMarkers']();}['_getMarkerAnnouncementText'](_0x12da91,_0x3dabcc,_0x347325){const _0x59a928=_0x12da91['startsWith']('format')||_0x12da91['startsWith']('attribute')?'FORMATTING':_0x12da91['toUpperCase']();return o(this['editor']['locale'],_0x3dabcc+'_'+_0x59a928+'_SUGGESTION_ANNOUNCEMENT',_0x347325);}['_initAriaMarkerChangeAnnouncements'](){const _0x2fd832=this['editor'];if(!_0x2fd832['ui'])return;const {ariaLiveAnnouncer:_0xe97e86}=_0x2fd832['ui'];_0x4c4252(this['_model'],({left:_0x861bd1,entered:_0x538327})=>{for(const _0x4f8c18 of _0x861bd1){const {group:_0x1feb76,type:_0x359132}=this['_splitMarkerName'](_0x4f8c18['name']);if('suggestion'===_0x1feb76){_0xe97e86['announce'](this['_getMarkerAnnouncementText'](_0x359132,'LEAVE'));break;}}for(const _0x4914c1 of _0x538327){const {group:_0x42e7c8,type:_0x3dd1bf}=this['_splitMarkerName'](_0x4914c1['name']);if('suggestion'===_0x42e7c8){_0xe97e86['announce'](this['_getMarkerAnnouncementText'](_0x3dd1bf,'ENTER',_0x3cba6d(_0x4c3670)));break;}}});}['_processAttributeChanges'](_0x29ccf7){if(this['_recordAttributeSuggestions'])return!0x1;const _0xb96b94=this['editor'],_0x1e9642=_0xb96b94['model']['document']['differ']['getChanges']();if(0x0==_0x1e9642['length'])return!0x1;const _0x4869ff=[],_0x474dd9=_0x1e9642['filter'](_0x5d00f4=>'attribute'==_0x5d00f4['type']),_0x172835=_0x1e9642['filter'](_0x25a1a1=>'insert'==_0x25a1a1['type']&&'$text'!=_0x25a1a1['name']),_0x1679ba=_0x1e9642['filter'](_0x26363a=>'remove'==_0x26363a['type']&&'$text'!=_0x26363a['name']);for(const _0x244f80 of _0x474dd9)_0x4869ff['push']({'key':_0x244f80['attributeKey'],'newValue':_0x244f80['attributeNewValue'],'oldValue':_0x244f80['attributeOldValue'],'range':Kt(_0x244f80['range'],_0xb96b94['model'])});for(const _0x3c8f8b of _0x172835){const _0x3362f9=_0x1679ba['find'](_0x3650f0=>_0x3650f0['position']['isEqual'](_0x3c8f8b['position']));_0x3362f9&&_0x4869ff['push']({'key':m,'newValue':_0x3c8f8b['name'],'oldValue':_0x3362f9['name'],'range':_0xb96b94['model']['createRangeOn'](_0x3c8f8b['position']['nodeAfter'])});}return 0x0!=_0x4869ff['length']&&this['_reduceExistingSuggestions'](_0x29ccf7,_0x4869ff);}['_processAttributeSuggestions'](_0x29ab79){let _0x39a8f8=!0x1;const _0x4146a0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x14f59e=>_0x14f59e['data']['newRange']&&_0x14f59e['name']['startsWith']('suggestion:attribute:'));for(const _0x4255ed of _0x4146a0){const {subType:_0x409f08,id:_0x98c045}=this['_splitMarkerName'](_0x4255ed['name']),_0x486f65=_0x409f08['split']('|')[0x0];for(const _0x4951e4 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4951e4['id']!=_0x98c045&&'attribute'==_0x4951e4['type']&&_0x4951e4['data']&&_0x4951e4['data']['key']==_0x486f65&&_0x4951e4['getFirstRange']()['isIntersecting'](_0x4255ed['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4951e4,_0x4255ed['data']['newRange'],_0x29ab79),_0x39a8f8=!0x0);}return _0x39a8f8;}['_recordAttributeChanges'](_0x56cd35){this['_recordAttributeSuggestions']=!0x0,_0x56cd35();}['_isRegisteredAttribute'](_0x242c2){const _0x56608b=this['_isBlockAttribute'](_0x242c2),_0x47c3fa=this['_inlineAttributeKeys']['has'](_0x242c2);return _0x56608b||_0x47c3fa;}['_reduceExistingSuggestions'](_0xcebd35,_0x116997){if(0x0==_0x116997['length'])return!0x1;let _0x203680=!0x1;for(const _0x2ae111 of _0x116997){const _0x3cd96a=this['_findSuggestions'](_0x2ae111['range'],'attribute')['filter'](_0x2976ae=>!_0x2976ae['meta']['isNextTo'])['map'](_0x4f2ed5=>_0x4f2ed5['suggestion']),_0x2a0509=_0x3ba6f1({'newValue':_0x2ae111['newValue']});_0x3cd96a['filter'](_0x2e6cf1=>{const [_0x57c98d,_0x14b8ef]=_0x2e6cf1['subType']['split']('|');return _0x57c98d==_0x2ae111['key']&&_0x14b8ef!=_0x2a0509;})['forEach'](_0x356da7=>{this['_reduceSuggestionAttributeRange'](_0x356da7,_0x2ae111['range'],_0xcebd35),_0x203680=!0x0;});}return _0x203680;}['_reduceSuggestionAttributeRange'](_0x18a07b,_0x59089f,_0x371823){const _0xac09a3=_0x18a07b['getFirstRange']()['getDifference'](_0x59089f);0x0!==_0xac09a3['length']?0x1!==_0xac09a3['length']?this['_breakSuggestionMarker'](_0x18a07b,_0x59089f['start'],_0x59089f['end']):this['_setSuggestionRange'](_0x18a07b,_0xac09a3[0x0]):_0x371823['removeMarker'](_0x18a07b['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x154fee){this['_editor']=_0x154fee,this['_model']=_0x154fee['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xb3c97d,_0x37069a,_0x2785b4,_0x189391,_0x2d6f6b,_0x235457,_0x37dc09){return new x(this['_model'],{'type':_0xb3c97d,'subType':_0x37069a,'id':_0x2785b4,'originalSuggestionId':_0x37dc09,'author':_0x189391,'creator':_0x189391,'attributes':_0x2d6f6b,'onAttributesChange':_0x235457,'onAccept':(..._0x38b4fe)=>this['getSuggestionCallback'](_0xb3c97d,_0x37069a,'accept')(..._0x38b4fe),'onDiscard':(..._0x3cd0fd)=>this['getSuggestionCallback'](_0xb3c97d,_0x37069a,'discard')(..._0x3cd0fd)});}['registerCustomCallback'](_0x3ab0af,_0x26471a,_0x38f584,_0x4d6e1a){const _0x14a1ef=_0x3ab0af+':'+_0x26471a+':'+_0x38f584;this['_customCallbacks']['set'](_0x14a1ef,_0x4d6e1a);}['getSuggestionCallback'](_0xfc5bfd,_0x2ae4a8,_0x57a538){const _0x3f6681=_0xfc5bfd+':'+_0x2ae4a8+':'+_0x57a538;return this['_customCallbacks']['get'](_0x3f6681)||this['_defaultCallbacks']['get'](_0xfc5bfd+':'+_0x57a538);}['_registerDefaultCallbacks'](){const _0x40b00e=()=>!0x1,_0x1b5660=_0x266005=>{_0x266005['sort']((_0x548239,_0x324e8c)=>_0x548239['start']['isBefore'](_0x324e8c['start'])?0x1:-0x1),this['_model']['change'](_0xc0d172=>{for(const _0x453e24 of _0x266005){let _0x18afd4;_0x18afd4=_0x453e24['end']['isAtEnd']&&_0x453e24['end']['parent']==_0x453e24['start']['nodeAfter']?_0xc0d172['createSelection'](_0x453e24['start']['nodeAfter'],'on'):_0xc0d172['createSelection'](_0x453e24),this['_model']['deleteContent'](_0x18afd4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x347344=(_0x1c95fd,_0x4a46e6)=>{_0x4a46e6&&this['_model']['change'](_0x496027=>{const {commandName:_0x3bc13e,commandParams:_0xf4ccdf=[]}=_0x4a46e6,_0x534cf8=_0x1c95fd['map'](_0x18531e=>(Pt(_0x18531e)&&(_0x18531e=this['_model']['createRange'](_0x18531e['end'])),_0x18531e))['filter'](_0x57b933=>'$graveyard'!==_0x57b933['root']['rootName']);if(_0x534cf8['length']<0x1)return;const _0x5c07ca=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x41664b=>_0x527bd9['fromRange'](_0x41664b));_0x496027['setSelection'](_0x534cf8);for(const _0xc65238 of this['_editor']['commands']['commands']())_0xc65238['refresh']();_0xf4ccdf['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3bc13e,..._0xf4ccdf);const _0x38b52a=_0x5c07ca['filter'](_0xaa57ec=>'$graveyard'!=_0xaa57ec['root']['rootName']);_0x38b52a['length']>0x0&&_0x496027['setSelection'](_0x38b52a);for(const _0x57c837 of _0x5c07ca)_0x57c837['detach']();});},_0x863921=(_0x581b36,_0x8fedde)=>0x1==_0x581b36['length']&&0x1==_0x8fedde['length']&&_0x581b36[0x0]['end']['isEqual'](_0x8fedde[0x0]['start']),_0x4b0e41=(_0x54eb2e,_0x57044d,_0x725759,_0x8e8fe1)=>qt(_0x54eb2e,_0x57044d,_0x725759,_0x8e8fe1)?[_0x54eb2e,_0x57044d]:qt(_0x57044d,_0x54eb2e,_0x8e8fe1,_0x725759)?[_0x57044d,_0x54eb2e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x40b00e),this['_defaultCallbacks']['set']('insertion:discard',_0x1b5660),this['_defaultCallbacks']['set']('insertion:join',_0x863921),this['_defaultCallbacks']['set']('insertion:chain',_0x4b0e41),this['_defaultCallbacks']['set']('deletion:accept',_0x1b5660),this['_defaultCallbacks']['set']('deletion:discard',_0x40b00e),this['_defaultCallbacks']['set']('deletion:join',_0x863921),this['_defaultCallbacks']['set']('deletion:chain',_0x4b0e41),this['_defaultCallbacks']['set']('formatInline:accept',_0x347344),this['_defaultCallbacks']['set']('formatInline:discard',_0x40b00e),this['_defaultCallbacks']['set']('formatInline:join',_0x863921),this['_defaultCallbacks']['set']('formatInline:chain',_0x40b00e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x347344),this['_defaultCallbacks']['set']('formatBlock:discard',_0x40b00e),this['_defaultCallbacks']['set']('formatBlock:join',_0x863921),this['_defaultCallbacks']['set']('formatBlock:chain',_0x40b00e),this['_defaultCallbacks']['set']('attribute:accept',_0x40b00e),this['_defaultCallbacks']['set']('attribute:discard',(_0x384bd0,_0x1705d1)=>{if(!_0x1705d1)return;const _0x28ae67=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x161f87=>{if(_0x1705d1['key']==m)for(const _0x21dda3 of _0x384bd0){const _0x43888b=_0x21dda3['start']['nodeAfter'],_0x3307e2=_0x1705d1['oldValue'];_0x161f87['rename'](_0x43888b,_0x3307e2);}else{if(_0x28ae67['_isBlockAttribute'](_0x1705d1['key'])){for(const _0x359f35 of _0x384bd0)void 0x0!==_0x1705d1['oldValue']?_0x161f87['setAttribute'](_0x1705d1['key'],_0x1705d1['oldValue'],_0x359f35['start']['nodeAfter']):_0x161f87['removeAttribute'](_0x1705d1['key'],_0x359f35['start']['nodeAfter']);}else{for(const _0x3c09f2 of _0x384bd0)_0x1705d1['oldValue']?_0x161f87['setAttribute'](_0x1705d1['key'],_0x1705d1['oldValue'],_0x3c09f2):_0x161f87['removeAttribute'](_0x1705d1['key'],_0x3c09f2);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x863921);}}function Ft(_0x17249e,_0x4f2f09,_0x53803b){for(const _0x583e18 of _0x4f2f09['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x583e18['root']==_0x583e18)return!0x1;if(!_0x53803b['containsItem'](_0x583e18))return!0x1;if(_0x17249e['isObject'](_0x583e18)||_0x17249e['isLimit'](_0x583e18))return!0x0;}return!0x1;}function Pt(_0x2d26d0){return _0x2d26d0['end']['parent']==_0x2d26d0['start']['nodeAfter']&&_0x2d26d0['end']['isAtStart'];}function Gt(_0x4515bb,_0x167162,_0x80c831,_0x1fb181){const _0x52ce89=_0x4774a6=>!_0x4774a6['item']['is']('$textProxy')&&!_0x1fb181['isObject'](_0x4774a6['item']),_0x2d3411=_0x4515bb['start']['getLastMatchingPosition'](_0x52ce89),_0x1f2455=_0x4515bb['end']['getLastMatchingPosition'](_0x52ce89,{'direction':'backward'});return(!_0x4515bb['start']['isEqual'](_0x2d3411)||!_0x4515bb['end']['isEqual'](_0x1f2455))&&(_0x2d3411['isBefore'](_0x1f2455)?_0x80c831['updateMarker'](_0x167162,{'range':_0x80c831['createRange'](_0x2d3411,_0x1f2455)}):_0x80c831['removeMarker'](_0x167162),!0x0);}function Lt(_0x1b2fe3){return _0x3ba6f1(_0x1b2fe3);}function Jt(_0xd100c1){const _0x541f83=_0xd100c1['start']['nodeAfter'];return _0x541f83&&_0x541f83['is']('element');}function Kt(_0x47ea35,_0x341a58){return null==_0x47ea35['end']['nodeBefore']&&_0x47ea35['end']['parent']==_0x47ea35['start']['nodeAfter']?Ht(_0x47ea35['start']['nodeAfter'],_0x341a58):_0x47ea35;}function Ht(_0x73f495,_0x535f3d){const _0x3b9360=_0x535f3d['schema']['isObject'](_0x73f495)||_0x535f3d['schema']['isSelectable'](_0x73f495);return _0x535f3d['createRange'](_0x535f3d['createPositionAt'](_0x73f495,'before'),_0x3b9360?_0x535f3d['createPositionAfter'](_0x73f495):_0x535f3d['createPositionAt'](_0x73f495,'end'));}function qt(_0x487dd7,_0x2b7e05,_0x5d6168,_0x20bf0a){return!!zt(_0x487dd7,_0x2b7e05)&&_0x5d6168['end']['isEqual'](_0x20bf0a['start']);}function zt(_0x5c1f14,_0x2149bf){if(!_0x5c1f14['_isDataLoaded']||!_0x2149bf['_isDataLoaded'])return!0x1;const _0x403f5b=new Set(Object['keys'](_0x5c1f14['attributes'])),_0x2fda87=new Set(Object['keys'](_0x2149bf['attributes']));if(_0x403f5b['delete']('groupId'),_0x2fda87['delete']('groupId'),0x0==_0x403f5b['size']&&0x0==_0x2fda87['size'])return!0x0;if(_0x403f5b['size']!=_0x2fda87['size'])return!0x1;const _0x592b28={..._0x5c1f14['attributes']},_0x4647d3={..._0x2149bf['attributes']};return delete _0x592b28['groupId'],delete _0x4647d3['groupId'],JSON['stringify'](_0x592b28)==JSON['stringify'](_0x4647d3);}function Wt(_0x5b0532,_0x1f0036){const _0x2a841a=Qt(_0x5b0532['attributes']),_0xd68d45=Qt(_0x1f0036);if(!_0x5b0532['_isDataLoaded'])return!0x1;for(const _0x459a61 of Object['keys'](_0xd68d45))if(!_0xa047bc(_0x2a841a[_0x459a61],_0xd68d45[_0x459a61]))return!0x1;return!0x0;}function Qt(_0x343928){const _0x3d605a=Object['assign']({},_0x343928);return delete _0x3d605a['skipNestingCheck'],delete _0x3d605a['tablePasteChainId'],_0x3d605a;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x375848(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x37a2d6,_0x3ccc3a,_0x1991f6,_0x9ab21e){super(),this['model']=_0x3ccc3a,this['view']=_0x1991f6,this['commentThreadController']=_0x9ab21e,this['_editor']=_0x37a2d6,this['_acceptCommand']=_0x37a2d6['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x37a2d6['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3c4c76,_0x479e7c)=>_0x3c4c76||_0x479e7c),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x48faa3=>_0x48faa3&&this['_editor']['model']['canEditAt'](_0x3ccc3a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4ab29a=>_0x4ab29a&&this['_editor']['model']['canEditAt'](_0x3ccc3a['getRanges']())),this['_pendingAction']=null,_0x1991f6['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1991f6,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1991f6,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1991f6,'change:isDirty',()=>{_0x1991f6['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 _0x1849f8=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1849f8);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ti extends _0x2216b1{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x349d9e,_0x3a5f79,_0x29e826,_0x3af88e){super(_0x349d9e),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x268de7(_0x349d9e,o(_0x349d9e,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3a5f79['authoredAt']),this['bind']('authoredAt')['to'](_0x3a5f79),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',_0x3a5f79,'authoredAt',this,'descriptionParts',(_0x35d09c,_0x40b5a3,_0x5775b5)=>{const _0xc9cef1=_0x5775b5['map'](_0x45dd4b=>ls(_0x45dd4b['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x35d09c-0x1,_0x3a5f79['author']['name'],_0x40b5a3?_0x3af88e['formatDateTime'](_0x40b5a3):'',new DOMParser()['parseFromString'](_0xc9cef1,'text/html')['body']['textContent']]);}),this['focusables']=new _0x16ccf5(),this['focusTracker']=new _0x51703b(),this['keystrokes']=new _0x8a3e95(),this['focusCycler']=new _0x5e271d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1c8999=>_0x1c8999['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3a5f79,this['_localUser']=_0x29e826,this['_config']=_0x3af88e,_0x3af88e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x17b837(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x10611e}=this['_config'];this['commentsListView']=new _0x10611e(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',_0x184900=>_0x184900+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2a7216,_0x1715de)=>_0x2a7216||!!_0x1715de);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x26b623}=this['_config'],_0x30313a=new _0x26b623(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4c4e7a=_0x30313a['commentInputView'];return _0x30313a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4c4e7a,'value',(_0x1a1059,_0x5e91be,_0x3ff75e)=>!!_0x3ff75e||_0x1a1059&&!_0x5e91be),_0x4c4e7a['on']('submit',(_0x28dad3,_0x279a75)=>{this['fire']('addComment',_0x279a75),_0x4c4e7a['editor']['setData']('');}),_0x4c4e7a['on']('cancel',()=>this['focus']()),_0x4c4e7a['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x30313a;}}class fe extends ti{['suggestionView'];['_descriptionElement'];constructor(_0x4cf5a9,_0xce1869,_0x4cfe2d,_0x3ca846){super(_0x4cf5a9,_0xce1869,_0x4cfe2d,_0x3ca846),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x281bd9=>_0x281bd9&&_0x281bd9[0x0]?_0x281bd9[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x195704,_0x57d578)=>{let _0x3b43f8='';for(const _0x4d8e83 of _0x195704)_0x3b43f8+='<p>'+ls(_0x4d8e83['content'],_0x4d8e83['color'])+'</p>';return _0x57d578?_0x3b43f8:_0x3ff6a1(_0x3b43f8,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3ca846['SuggestionView'](_0x4cf5a9,_0xce1869,{'formatDateTime':_0x3ca846['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 _0x21f1f2=this['bindTemplate'],_0x4b7b12=[this['suggestionView']];return this['commentsListView']&&_0x4b7b12['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4b7b12['push'](this['commentThreadInputView']),_0x4b7b12['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x21f1f2['if']('isActive','ck-suggestion-wrapper--active'),_0x21f1f2['to']('type',_0x2cbb8f=>'ck-suggestion-'+_0x2cbb8f),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':_0x21f1f2['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4b7b12};}['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 we extends _0x2216b1{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2ccbfe,_0x1dc898,_0x75beab){super(_0x2ccbfe),this['_model']=_0x1dc898,this['_config']=_0x75beab,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1dc898),this['acceptButton']=this['_createButton'](o(_0x2ccbfe,'Accept\x20suggestion'),_0x50918a,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2ccbfe,'Discard\x20suggestion'),_0x17b4ca,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3103a7(_0x2ccbfe,_0x1dc898['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x16ccf5([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x51703b(),this['keystrokes']=new _0x8a3e95(),this['focusCycler']=new _0x5e271d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3ddc7b=>_0x3ddc7b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x316b0a=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x316b0a['innerHTML']=this['description'],this['on']('change:description',(_0x571b4f,_0x3fa04f,_0x3318bc)=>{_0x316b0a['innerHTML']=_0x3318bc;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x42d967=this['bindTemplate'],_0x56008a=[{'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':_0x42d967['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x42d967['to']('authoredAt',_0x432deb=>this['_config']['formatDateTime'](_0x432deb))}]}]},{'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']&&_0x56008a['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':_0x56008a}]};}['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'](_0x20bdd9,_0x5c5992,_0x1e4c18,_0x47ff51,_0x1cdaa1){const _0x17a95b=new _0x21facf(this['locale']);return _0x17a95b['set']({'label':_0x20bdd9,'icon':_0x5c5992,'tooltip':!0x0,'tooltipPosition':_0x1cdaa1}),_0x17a95b['extendTemplate']({'attributes':{'class':_0x1e4c18}}),_0x17a95b['on']('execute',()=>{this['fire'](_0x47ff51,this['_model']['id']);}),_0x17a95b;}['_setupKeyboardNavigation'](){const _0x44ac2d=this['element'];this['keystrokes']['listenTo'](_0x44ac2d);for(const _0x2dab92 of this['focusables'])this['focusTracker']['add'](_0x2dab92['element']),this['keystrokes']['listenTo'](_0x2dab92['element']);this['keystrokes']['set']('enter',(_0x33fc86,_0x57419c)=>{_0x44ac2d===_0x33fc86['target']&&(this['focusCycler']['focusFirst'](),_0x57419c());}),this['keystrokes']['set']('esc',(_0x141349,_0x4c1e81)=>{_0x44ac2d!==_0x141349['target']&&(this['focus'](),_0x4c1e81());});}}class u extends _0x5d906a{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x536d31,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4450fd){super(_0x4450fd),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xa9848a=this['editor']['config'];_0xa9848a['define']('trackChanges.SuggestionThreadView',fe),_0xa9848a['define']('trackChanges.SuggestionView',we),_0xa9848a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xa9848a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4212d3,_0x4d473a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x495416,_0x475003]of this['_handleControllerBuffer']){const _0xcc68f9=this['_suggestionToController']['has'](_0x495416);_0xcc68f9||_0x475003?_0xcc68f9&&_0x475003&&this['_destroyController'](_0x495416):this['_initializeController'](_0x495416);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4212d3,_0x4d473a);}['init'](){const _0x17a4df=this['editor'],_0xe23e04=_0x17a4df['plugins']['get']('TrackChangesEditing'),_0x652e82=_0x17a4df['plugins']['get']('Annotations'),_0x8c0f1d=_0x17a4df['plugins']['get']('EditorAnnotations'),_0x4391c5=_0x17a4df['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x8c0f1d['addSourceCollector'](()=>{const _0x4801d2=[];for(const [_0x17862c,_0x4f690b]of Array['from'](this['_suggestionToController'])){const _0x568586=_0x17862c['getAllAdjacentSuggestions'](),_0x79b686=[];for(const _0x3a27ba of _0x568586){if(!_0x3a27ba['isInContent'])continue;if(_0x3a27ba['isMultiRange']){_0x79b686['push'](..._0x3a27ba['getRanges']());continue;}const _0x365b64=_0x3a27ba['getFirstRange']();if(_0x79b686['length']>0x0){const _0x1808b0=_0x79b686[0x0]['getJoined'](_0x365b64);if(_0x1808b0){_0x79b686[0x0]=_0x1808b0;continue;}}_0x79b686['push'](_0x365b64);}_0x4801d2['push']([_0x4f690b['view'],_0x79b686]);}return _0x4801d2;}),this['listenTo'](_0xe23e04,'suggestionLoaded',(_0x1ae01a,_0x1f7551)=>{this['listenTo'](_0x1f7551,'change:previous',(_0x51814d,_0x2603d1,_0x57c638,_0x9ffcaa)=>{_0x1f7551['isInContent']&&(null==_0x57c638?(this['_updateController'](_0x9ffcaa['head']),this['_handleSuggestionControllerDelayed'](_0x1f7551,!0x1)):(this['_updateController'](_0x57c638['head']),null==_0x9ffcaa&&this['_handleSuggestionControllerDelayed'](_0x1f7551,!0x0)));}),null!==_0x1f7551['previous']?this['_updateController'](_0x1f7551['head']):this['_handleSuggestionControllerDelayed'](_0x1f7551,!0x1);}),this['listenTo'](_0xe23e04,'suggestionUnloaded',(_0x1c6157,_0x1c5ba7,_0x4b38ef)=>{this['stopListening'](_0x1c5ba7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1c5ba7),this['_suggestionToController']['has'](_0x1c5ba7)&&this['_destroyController'](_0x1c5ba7),_0x4b38ef&&this['_updateController'](_0x4b38ef['head']);}),this['listenTo'](_0xe23e04,'suggestionChanged',(_0x3910c8,_0x56fbfa)=>{this['_updateController'](_0x56fbfa);}),this['listenTo'](_0x652e82,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4391c5,'addComment',(_0x33a698,{threadId:_0x38f158,isFromAdapter:_0x5445f9})=>{if(_0x5445f9||!_0xe23e04['hasSuggestion'](_0x38f158))return;const _0x125f09=_0xe23e04['getSuggestion'](_0x38f158);this['_suggestionToController']['get'](_0x125f09)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x393b5d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x285efd;for(const _0x2407ad in _0x393b5d){const _0x379df3=_0x2407ad,_0x3bfc84=_0x393b5d[_0x379df3];if('trackChangesLicenseKeyValid'==_0x3bfc84||'trackChangesLicenseKeyInvalid'==_0x3bfc84||'trackChangesLicenseKeyExpired'==_0x3bfc84||'trackChangesLicenseKeyDomainLimit'==_0x3bfc84||'trackChangesLicenseKeyNotAllowed'==_0x3bfc84||'trackChangesLicenseKeyEvaluationLimit'==_0x3bfc84||'trackChangesLicenseKeyTrialLimit'==_0x3bfc84||'trackChangesLicenseKeyUsageLimit'==_0x3bfc84){delete _0x393b5d[_0x379df3],_0x285efd=_0x3bfc84,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x285efd&&_0x393b5d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x285efd&&_0x393b5d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x285efd&&_0x393b5d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x285efd&&_0x393b5d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x285efd&&_0x393b5d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x285efd&&_0x393b5d['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x285efd&&_0x393b5d['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x4ba9cb=this['editor']['plugins']['get']('Annotations'),_0x37beb5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a771a=Array['from'](_0x4ba9cb['activeAnnotations'],_0x3c0937=>_0x3c0937['innerView'])['filter'](_0x271bad=>this['_viewToController']['has'](_0x271bad)),_0x5d1bdb=[];for(const _0x19f78a of _0x4a771a){const _0x5fc473=this['_viewToController']['get'](_0x19f78a)['model']['getAllAdjacentSuggestions']();_0x5d1bdb['push'](..._0x5fc473['reduce']((_0x2ed1d4,_0x320387)=>[..._0x2ed1d4,..._0x320387['getMarkerNames']()],[]));}_0x37beb5['activeMarkers']=_0x5d1bdb;}['_addUIComponentsToFactory'](){const _0x385ce0=this['editor'],_0x14946a=_0x385ce0['locale'],_0x4d903c=o(_0x14946a,'Track\x20changes'),_0x15ae0=new _0x382dc9([{'type':'switchbutton','model':new _0x302749({'withText':!0x0,'isToggleable':!0x0,'label':_0x4d903c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x302749({'withText':!0x0,'label':o(_0x14946a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x302749({'withText':!0x0,'label':o(_0x14946a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x302749({'withText':!0x0,'label':o(_0x14946a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x302749({'withText':!0x0,'label':o(_0x14946a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x385ce0['plugins']['has']('TrackChangesPreview')&&_0x15ae0['addMany']([{'type':'separator'},{'type':'button','model':new _0x302749({'withText':!0x0,'label':o(_0x14946a,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x53325d of _0x15ae0)if(ke(_0x53325d)){const _0x305e2c=_0x385ce0['commands']['get'](_0x53325d['model']['commandName']);_0x53325d['model']['bind']('isOn','isEnabled')['to'](_0x305e2c,'value','isEnabled');}_0x385ce0['ui']['componentFactory']['add']('trackChanges',_0x176434=>this['_createToolbarButton'](_0x176434,_0x15ae0,_0x4d903c)),_0x385ce0['ui']['componentFactory']['add']('menuBar:trackChanges',_0x14e1bc=>this['_createMenuBarMenu'](_0x14e1bc,_0x15ae0,_0x4d903c));}['_createToolbarButton'](_0x4d46a9,_0x5dccd5,_0xbe57f9){const _0x132e17=_0x102461(_0x4d46a9,_0x2784a5),_0x219503=this['editor']['commands']['get']('trackChanges');_0x132e17['buttonView']['set']({'tooltip':_0xbe57f9,'label':_0xbe57f9,'icon':_0x2e5f63}),_0x132e17['buttonView']['bind']('isOn')['to'](_0x219503,'value'),_0x132e17['buttonView']['on']('execute',()=>{_0x219503['execute'](),this['editor']['editing']['view']['focus']();}),_0x306c99(_0x132e17,_0x5dccd5,{'role':'menu'});const _0x293ffd=[];for(const _0x380db0 of _0x5dccd5)ke(_0x380db0)&&_0x293ffd['push'](this['editor']['commands']['get'](_0x380db0['model']['commandName']));const _0x111cae=_0x132e17['buttonView'];return _0x111cae['actionView']['unbind']('isEnabled'),_0x111cae['arrowView']['unbind']('isEnabled'),_0x111cae['actionView']['bind']('isEnabled')['to'](_0x219503,'isEnabled'),_0x111cae['arrowView']['bind']('isEnabled')['toMany'](_0x293ffd,'isEnabled',(..._0x92d0d)=>_0x92d0d['some'](_0x394b56=>_0x394b56)),_0x132e17['on']('execute',_0x384e05=>{this['editor']['execute'](_0x384e05['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x132e17;}['_createMenuBarMenu'](_0x2323f2,_0x23fc0e,_0x2bc12f){const _0xf012a1=new _0x53d3ca(_0x2323f2),_0x480e3a=this['editor']['commands']['get']('trackChanges');_0xf012a1['buttonView']['set']({'label':_0x2bc12f,'icon':_0x2e5f63});const _0x287388=new _0x4f2abe(_0x2323f2);for(const _0x436034 of _0x23fc0e){if('separator'==_0x436034['type']){_0x287388['items']['add'](new _0x6051dd(_0x2323f2));continue;}const _0x5e33a3=new _0x23534f(_0x2323f2,_0xf012a1),_0x2e8909=new _0x221243(_0x2323f2),_0x20f32e=_0x436034['model'];_0x2e8909['bind'](...Object['keys'](_0x20f32e))['to'](_0x20f32e),_0x2e8909['delegate']('execute')['to'](_0xf012a1),_0x2e8909['on']('execute',()=>{this['editor']['execute'](_0x20f32e['commandName']),this['editor']['editing']['view']['focus']();}),_0x5e33a3['children']['add'](_0x2e8909),_0x287388['items']['add'](_0x5e33a3);}return _0xf012a1['bind']('isEnabled')['to'](_0x480e3a,'isEnabled'),_0xf012a1['panelView']['children']['add'](_0x287388),_0xf012a1;}['_initializeController'](_0x54c147){const _0xe99173=this['editor'],_0x12ec20=_0xe99173['config'],_0x237791=_0xe99173['plugins']['get']('Annotations'),_0x499887=_0xe99173['plugins']['get']('CommentsRepository'),_0x32c472=_0xe99173['plugins']['get']('EditorAnnotations'),_0x5672df=_0xe99173['plugins']['get'](_0x536d31)['me'],_0x7ae88b=_0x12ec20['get']('trackChanges')['SuggestionThreadView'],_0x20e283=_0x12ec20['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1c5003,CommentThreadInputView:_0x3190de}=_0xe99173['plugins']['get']('CommentsUI');let _0x300fcf,_0x2904d4,_0x4c5c31;this['_annotationViews']['has'](_0x54c147['id'])?(_0x2904d4=this['_annotationViews']['get'](_0x54c147['id']),_0x300fcf=_0x2904d4['mainView']):(_0x300fcf=new _0x7ae88b(_0xe99173['locale'],_0x54c147,_0x5672df,{'disableComments':this['_disableComments'],'editorConfig':{..._0x12ec20['get']('comments.editorConfig'),'licenseKey':_0x12ec20['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x12ec20['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x12ec20['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x12ec20['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x56742a(_0x12ec20['get']('locale'),_0xe99173['locale']),'CommentView':_0x12ec20['get']('comments')['CommentView'],'CommentsListView':_0x1c5003,'CommentThreadInputView':_0x3190de,'SuggestionView':_0x20e283}),_0x300fcf['suggestionView']['acceptButton']['on']('execute',()=>{_0xe99173['editing']['view']['focus']();}),_0x300fcf['suggestionView']['discardButton']['on']('execute',()=>{_0xe99173['editing']['view']['focus']();}),_0x2904d4=_0x237791['createAnnotationView'](this['editor']['locale'],_0x300fcf),_0x2904d4['bind']('isDirty')['to'](_0x300fcf,'isDirty'),_0x2904d4['bind']('length')['to'](_0x300fcf),_0x2904d4['bind']('type')['to'](_0x300fcf,'type',_0x13753d=>'suggestion-'+_0x13753d),_0x300fcf['on']('escape',()=>{_0x4c5c31['fire']('escape');}),this['_annotationViews']['set'](_0x54c147['id'],_0x2904d4));const _0x55a53f=_0x499887['createCommentThreadController'](_0x54c147['commentThread'],_0x300fcf),_0xc24a0=new pe(_0xe99173,_0x54c147,_0x300fcf,_0x55a53f),_0x1ce092=_0x54c147['getAllAdjacentSuggestions']()['filter'](_0x1bef81=>_0x1bef81['isInContent']);_0x300fcf['descriptionParts']=_0xe99173['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1ce092),this['_suggestionToController']['set'](_0x54c147,_0xc24a0),this['_viewToController']['set'](_0x300fcf,_0xc24a0),_0x4c5c31=_0x237791['createAnnotation']({'view':_0x2904d4,'target':()=>{const _0x177aaf=[],_0xff3dab=_0x54c147['getAllAdjacentSuggestions']()['filter'](_0x18dc61=>_0x18dc61['isInContent']);for(const _0x584cc6 of _0xff3dab)_0x177aaf['push'](..._0x584cc6['getMarkers']());return _0x772aaf(_0xe99173['editing'],_0x177aaf);},'type':()=>'suggestion-'+_0xc24a0['view']['type']}),_0x499887['_bindAnnotationToEditors'](_0x300fcf,_0x4c5c31),_0x237791['add'](_0x4c5c31),_0x32c472['registerAnnotation'](_0x4c5c31);}['_destroyController'](_0x8275d){const _0x161e9e=this['editor']['plugins']['get']('CommentsRepository'),_0x589fc6=this['editor']['plugins']['get']('Annotations'),_0x4f0345=this['_suggestionToController']['get'](_0x8275d),_0x13e3d1=_0x4f0345['view'],_0x498c50=_0x589fc6['getByInnerView'](_0x13e3d1);_0x161e9e['_unbindEditors'](_0x13e3d1),_0x498c50&&_0x589fc6['remove'](_0x498c50),this['_suggestionToController']['delete'](_0x8275d),this['_viewToController']['delete'](_0x13e3d1),_0x4f0345['destroy']();}['_updateController'](_0x1e1580){if(!_0x1e1580['isInContent']||!this['_suggestionToController']['has'](_0x1e1580))return;const _0x39e5da=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b9a05=this['_suggestionToController']['get'](_0x1e1580),_0x5948e8=_0x1e1580['getAllAdjacentSuggestions']();_0x1b9a05['view']['descriptionParts']=_0x39e5da['descriptionFactory']['getDescriptions'](_0x5948e8);}['destroy'](){for(const _0x1f2382 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1f2382);for(const _0x458f1d of this['_annotationViews']['values']())_0x458f1d['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x5b2e36){return'model'in _0x5b2e36;}class Ge extends _0x5d906a{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3dc7d5){this['editor']['plugins']['get'](d)['adapter']=_0x3dc7d5;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x4df5a9){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x4df5a9);}['getSuggestions']({skipNotAttached:_0x326367=!0x1,toJSON:_0xe47c85=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x326367,'toJSON':_0xe47c85});}['getSuggestion'](_0xf27865){return this['editor']['plugins']['get'](d)['getSuggestion'](_0xf27865);}}const p=['Pagination'];class re extends _0x5d906a{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x392333=this['editor'];if(_0x392333['config']['define']('trackChangesData.editorCreator',_0x349259=>{const _0x8eb4ad=_0x392333['model']['document']['getRootNames']()['reduce']((_0x120018,_0x2a5b29)=>(_0x120018[_0x2a5b29]='',_0x120018),{});return _0x392333['constructor']['create'](_0x8eb4ad,_0x349259);}),'function'!=typeof _0x392333['config']['get']('trackChangesData')['editorCreator'])throw new _0x2ba13e('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2854c6){return w(this['editor'],!0x0,_0x2854c6);}['getDataWithDiscardedSuggestions'](_0x101098){return w(this['editor'],!0x1,_0x101098);}}class k extends _0x5d906a{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57b29c){function _0x1732b1(_0x373b0f){return _0x373b0f['map'](_0x911ade=>String['fromCharCode'](_0x911ade))['join']('');}super(_0x57b29c),this['result']='end',_0x57b29c[_0x1732b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1732b1([0x76,0x69,0x65,0x77])][_0x1732b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1732b1([0x61,0x75,0x74,0x6f]),_0x57b29c[_0x1732b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1732b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1732b1([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1732b1([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1732b1([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 $e(_0x3270c3){return void 0x0!==_0x3270c3['getRootsAttributes'];}async function w(_0x48927a,_0x2fa031,_0x2ed677){const _0x5ce6e5=_0x3f7fd4(_0x48927a,p);_0x5ce6e5['plugins']['push'](d,k),_0x5ce6e5['rootsAttributes']=$e(_0x48927a)?_0x48927a['getRootsAttributes']():void 0x0;const _0x9f7ad9=document['createDocumentFragment'](),_0x590a3e=_0x48927a['config']['get']('trackChangesData')['editorCreator'],_0x48abc2=await _0x590a3e(_0x5ce6e5,()=>function(_0x1cd58e){const _0x3d99f2=document['createElement']('div');return _0x1cd58e['appendChild'](_0x3d99f2),_0x3d99f2;}(_0x9f7ad9));!function(_0x42a50f,_0x4f5d33){const _0xc46763=_0x42a50f['model']['document']['getRootNames']()['reduce']((_0x3af850,_0x16fb8a)=>(_0x3af850[_0x16fb8a]=_0x42a50f['data']['get']({'rootName':_0x16fb8a}),_0x3af850),{}),_0x53e02f=_0x42a50f['plugins']['get']('Users')['users']['map'](_0xffb8d7=>({'id':_0xffb8d7['id'],'name':_0xffb8d7['name']})),_0x1d547b=_0x42a50f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x11256d=_0x42a50f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x521a02=_0x4f5d33['plugins']['get']('Users'),_0x5802de=_0x4f5d33['plugins']['get']('TrackChangesEditing'),_0x1cab69=_0x4f5d33['plugins']['get']('CommentsRepository');for(const _0x300b5a of _0x1cab69['getCommentThreads']())_0x300b5a['remove']();for(const _0x3392d4 of _0x53e02f)_0x521a02['getUser'](_0x3392d4['id'])||_0x521a02['addUser'](_0x3392d4);_0x521a02['me']||_0x521a02['useAnonymousUser']();for(const _0x4fec34 of _0x11256d)_0x1cab69['addCommentThread'](_0x4fec34);for(const _0x334464 of _0x1d547b)_0x5802de['addSuggestionData'](_0x334464);_0x4f5d33['data']['set'](_0xc46763);}(_0x48927a,_0x48abc2),_0x48abc2['execute'](_0x2fa031?'acceptAllSuggestions':'discardAllSuggestions');const _0x166966=$e(_0x48abc2)?_0x48abc2['getFullData'](_0x2ed677):_0x48abc2['data']['get'](_0x2ed677);return await _0x48abc2['destroy'](),_0x166966;}class Me extends _0x2216b1{['options'];constructor(_0x5cf5bc,_0x695c0a){super(_0x5cf5bc),this['options']=_0x695c0a,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'](_0x227d06,_0x156e6f){if(!this['element'])return;const _0x50df61=[];for(const [_0x4867f1,_0x4a08c6]of _0x227d06){const _0x397a9d=document['createElement']('div');_0x397a9d['setAttribute']('data-ck-root-name',_0x4867f1),_0x397a9d['className']=_0x4a08c6['classes']+'\x20ck-track-changes-preview__root-container',_0x397a9d['innerHTML']=_0x4a08c6['content'],_0x50df61['push'](_0x397a9d);}_0x156e6f(this['element'],_0x50df61),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x3e52ba{constructor(_0x22becf){super(_0x22becf),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x333d81=this['editor'],_0x1304c4=_0x333d81['locale'],_0x53450d=_0x333d81['plugins']['get']('Dialog');let _0x114702;const _0x12986a=function(_0x553f18){const _0x4161fd={};if('editables'in _0x553f18['ui']['view']){for(const [_0x490a71,_0x1cade5]of Object['entries'](_0x553f18['ui']['view']['editables']))_0x4161fd[_0x490a71]=_0x1cade5['element'];}else _0x4161fd[_0x553f18['model']['document']['getRootNames']()[0x0]]=_0x553f18['ui']['view']['editable']['element'];return _0x4161fd;}(_0x333d81),_0x22d76f=function(_0x5317b6){let _0x2dae9a=0x0;for(const _0x4fd987 of Object['values'](_0x5317b6))_0x2dae9a=Math['max'](_0x2dae9a,_0x4fd987['getBoundingClientRect']()['width']);let _0x38a75d=0x0;for(const _0x937b38 of Object['values'](_0x5317b6))_0x38a75d+=_0x937b38['getBoundingClientRect']()['height'];const _0x7f52c5=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x43500f=Math['min'](_0x38a75d,_0x7f52c5);return{'width':_0x2dae9a,'height':_0x43500f};}(_0x12986a);_0x53450d['show']({'id':'finalContentPreview','title':o(_0x1304c4,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1304c4,{'dialogRects':_0x22d76f}),'onHide':()=>{_0x114702['detachFromDom']();},'onShow':()=>{_0x333d81['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x503a2e=>{const _0x1a3034=this['_standarizeRootsData'](_0x503a2e,_0x333d81,_0x12986a);_0x53450d['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1a3034,_0x333d81['config']['get']('trackChanges.preview.renderFunction'));}),_0x114702=new _0x5ebc0b(_0x1304c4,[_0x53450d['view']]),_0x114702['attachToDom'](),_0x114702['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x333d81['once']('destroy',()=>{_0x114702['detachFromDom']();});const _0x2b803d=_0x53450d['view']['headerView']['class'];_0x53450d['view']['headerView']['class']=_0x2b803d?_0x2b803d+'\x20ck-reset_all':'ck-reset_all',_0x53450d['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x53450d['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x513908=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5d9fdc=_0x513908['previewMode'],_0x268d46={};if('$labels'===_0x5d9fdc){for(const _0x274d20 of _0x513908['getMergeFieldsIds']())_0x268d46[_0x274d20]=_0x513908['getLabel'](_0x274d20)||_0x274d20;}else{const _0x444434='$defaultValues'===_0x5d9fdc?_0x513908['getDefaultValues']():_0x513908['getDataSetValues'](_0x5d9fdc,!0x0);for(const _0x2df4be of Object['entries'](_0x444434)){const [_0x1dec15,_0xd11271]=_0x2df4be;_0x268d46[_0x1dec15]=null!==_0xd11271?_0xd11271:_0x513908['getLabel'](_0x1dec15)||_0x1dec15;}}return{'mergeFieldsData':_0x268d46};}['_standarizeRootsData'](_0x1ffcb3,_0x26aa97,_0x583a3b){let _0x473be1;if('string'==typeof _0x1ffcb3){const _0xbc8e1b=_0x26aa97['model']['document']['getRootNames']()[0x0];_0x473be1={[_0xbc8e1b]:_0x1ffcb3};}else _0x473be1=_0x1ffcb3;const _0x23d55d=this['_fixMediaEmbeds'](_0x473be1,_0x26aa97),_0x55a44b=function(_0x71b0d7,_0x4abd43){for(const [_0x7f2bc1,_0x80cdcd]of _0x71b0d7)_0x80cdcd['classes']=_0x4abd43[_0x7f2bc1]['classList']['value']['replace']('ck-focused','');return _0x71b0d7;}(this['_sortRoots'](_0x26aa97)['reduce']((_0x5160e5,_0x1f4dd2)=>(_0x5160e5['push']([_0x1f4dd2,{'content':_0x23d55d[_0x1f4dd2],'classes':''}]),_0x5160e5),[]),_0x583a3b);return _0x55a44b;}['_fixMediaEmbeds'](_0x27626e,_0x4de35a){if(!_0x4de35a['plugins']['has']('MediaEmbedEditing'))return _0x27626e;const _0x170dbd=_0x4de35a['plugins']['get']('MediaEmbedEditing');for(const [_0x16812b,_0x2f9938]of Object['entries'](_0x27626e)){const _0x183e10=document['createElement']('div');_0x183e10['innerHTML']=_0x2f9938,(_0x183e10['querySelectorAll']('figure.media')['forEach'](_0x3da0b8=>{const _0x376cfb=_0x3da0b8['querySelector']('oembed');if(_0x376cfb){const _0x4172c0=_0x376cfb['getAttribute']('url');if(_0x4172c0){const _0x3a9c85=_0x170dbd['registry']['getMediaViewElement'](new _0x23dafc(_0x4de35a['editing']['view']['document']),_0x4172c0,{'elementName':'','renderForEditingView':!0x0}),_0x32ad35=document['createElement']('div');_0x32ad35['classList']['add']('ck-media__wrapper'),_0x3a9c85['render'](_0x32ad35,_0x4de35a['editing']['view']['domConverter']),_0x376cfb['replaceWith'](_0x32ad35);}}}),_0x27626e[_0x16812b]=_0x183e10['innerHTML']);}return _0x27626e;}['_sortRoots'](_0x2a3e54){if(!function(_0x80e9d1){return void 0x0!==_0x80e9d1['getRootsAttributes'];}(_0x2a3e54))return _0x2a3e54['model']['document']['getRootNames']();const _0x824727=[],_0x2b5fe2=new Map();for(const _0xe8b11a of _0x2a3e54['model']['document']['getRootNames']()){const _0xce5e0d=_0x2a3e54['editing']['view']['getDomRoot'](_0xe8b11a)['getClientRects']()['item'](0x0);_0x824727['push'](_0xe8b11a),_0x2b5fe2['set'](_0xe8b11a,_0xce5e0d);}return _0x824727['sort']((_0x5a4e0d,_0x39bfec)=>{const _0x20f052=_0x2b5fe2['get'](_0x5a4e0d),_0x3890d0=_0x2b5fe2['get'](_0x39bfec);return _0x20f052['y']-_0x3890d0['y']||_0x20f052['x']-_0x3890d0['x'];}),_0x824727;}}class He extends _0x5d906a{static get['requires'](){return[re,_0x51bd16];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5704ae){super(_0x5704ae),_0x5704ae['commands']['add']('previewFinalContent',new te(this['editor'])),_0x5704ae['config']['define']('trackChanges.preview.renderFunction',(_0x2d5da3,_0x36beaf)=>{for(const _0xc494ec of _0x36beaf)_0x2d5da3['appendChild'](_0xc494ec);});}}export{M as AcceptSuggestionCommand,ti as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,T as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,fe as SuggestionThreadView,we as SuggestionView,Ge as TrackChanges,D as TrackChangesCommand,re as TrackChangesData,d as TrackChangesEditing,He as TrackChangesPreview};
|
|
23
|
+
import{Command as _0x5cf6aa,Plugin as _0x28b250,PendingActions as _0x305085}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4ee9c2,ObservableMixin as _0x3e391a,uid as _0x370ed3,priorities as _0x4066a6,insertToPriorityArray as _0x108dfb,toArray as _0x384868,logWarning as _0x2d38e9,getEnvKeystrokeText as _0x278c74,FocusTracker as _0xebdde7,KeystrokeHandler as _0x485de4,Collection as _0x558e28}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4e2f88,IconCancel as _0x11f7a8,IconTrackChanges as _0xc8e2e5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as to,View as _0x56481a,ViewCollection as _0x2bdb44,FocusCycler as _0x2a3b0e,ViewModel as _0x5b6ffb,createDropdown as _0x6ae726,SplitButtonView as _0x1f0b07,addListToDropdown as _0x6a29f5,MenuBarMenuView as _0x79c27f,MenuBarMenuListView as _0x17d1da,ListSeparatorView as _0x425f2a,MenuBarMenuListItemView as _0x2e0880,MenuBarMenuListItemButtonView as _0x24f457,BodyCollection as _0x36f7c3,Dialog as _0x4fa047}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x148996,hashObject as _0x3e24bc,surroundingMarkersDetector as _0x46fc19,FOCUS_ANNOTATION_KEYSTROKE as _0x837e7b,AriaDescriptionView as _0x25c525,setupThreadKeyboardNavigation as _0x581dea,trimHtml as _0x4dbf21,UserView as _0x251d08,LateFocusButtonView as _0x2ae706,getDateTimeFormatter as _0x1ba8e4,getAllMarkersDomElementsSorted as _0x391156,sanitizeEditorConfig as _0x3ce4c0}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1c7c63,LiveRange as _0xc2db3f,LivePosition as _0x30cdb6,DowncastWriter as _0x5400db}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x11d210,toWidget as _0x5b3197}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x41887c,set as _0x43cd48,isEqual as _0x31f67f,unset as _0x8c8f5a,omit as Ut}from'es-toolkit/compat';import{Delete as _0x51d717,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x242bbd}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x5ed61e}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class D extends _0x5cf6aa{['_enabledCommands'];constructor(_0x3897cf,_0x26b733){super(_0x3897cf),this['_enabledCommands']=_0x26b733,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 _0xb448d9 of this['editor']['commands']['commands']())_0xb448d9['affectsData']&&!this['_enabledCommands']['has'](_0xb448d9)&&_0xb448d9['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x19d26a of this['editor']['commands']['commands']())_0x19d26a['affectsData']&&!this['_enabledCommands']['has'](_0x19d26a)&&_0x19d26a['clearForceDisabled']('TrackChangesCommand');}}class M extends _0x5cf6aa{['_suggestions'];constructor(_0x18672e,_0x5928a3){super(_0x18672e),this['_suggestions']=_0x5928a3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x56302e){const _0x17989a=this['_suggestions']['get'](_0x56302e);if(!_0x17989a)throw new _0x4ee9c2('track-changes-accept-suggestion-not-found',this);const _0x461616=_0x17989a['getRanges']();this['editor']['model']['canEditAt'](_0x461616)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x17989a);}}class $ extends _0x5cf6aa{['_suggestions'];constructor(_0xde107c,_0x70cca3){super(_0xde107c),this['_suggestions']=_0x70cca3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3db39f){const _0x564277=this['_suggestions']['get'](_0x3db39f);if(!_0x564277)throw new _0x4ee9c2('track-changes-discard-suggestion-not-found',this);const _0x4c495b=_0x564277['getRanges']();this['editor']['model']['canEditAt'](_0x4c495b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x564277);}}function ls(_0x47470b,_0x176341){let _0x375ffb='';return _0x375ffb+=_0x47470b['split']('*')['map']((_0x577ad0,_0x3c505d)=>_0x3c505d%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x577ad0)+'</span>':nn(_0x577ad0))['join'](''),_0x176341&&(_0x375ffb+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x176341['value']+'\x22\x20title=\x22'+_0x176341['title']+'\x22></span>'),_0x375ffb;}function nn(_0x5c8c2d){const _0x163cf8=document['createElement']('span');return _0x163cf8['innerText']=_0x5c8c2d,_0x163cf8['innerHTML'];}function ts(_0x388834){return _0x388834['sort']((_0x4daead,_0x47fb7a)=>'deletion'==_0x4daead['type']&&'deletion'!=_0x47fb7a['type']?-0x1:'deletion'!=_0x4daead['type']&&'deletion'==_0x47fb7a['type']?0x1:0x0);}function Yt(_0xd04776,_0x524af9){let _0x211cbd,_0x4d6bc6=0x0;const _0x4ac66c=[],_0x1d9cec=_0x524af9['schema'];for(;_0x4d6bc6<_0xd04776['length'];){const _0x376f2e=_0xd04776[_0x4d6bc6],_0x53f860=_0xd04776[_0x4d6bc6+0x1];_0x211cbd||(_0x211cbd=_0x524af9['createPositionBefore'](_0x376f2e)),on(_0x524af9,_0x376f2e,_0x53f860)||(_0x4ac66c['push'](_0x524af9['createRange'](_0x211cbd,_0x1d9cec['isObject'](_0x376f2e)?_0x524af9['createPositionAfter'](_0x376f2e):_0x524af9['createPositionAt'](_0x376f2e,'end'))),_0x211cbd=null),_0x4d6bc6++;}return _0x4ac66c;}function on(_0x513608,_0x3ffe1d,_0x17ba46){if(!_0x17ba46)return!0x1;const _0x514a68=_0x513608['createPositionAfter'](_0x3ffe1d),_0x586e5a=_0x513608['createPositionBefore'](_0x17ba46);return _0x514a68['isTouching'](_0x586e5a);}function rs(_0x567211,_0x40efbf,_0x234796){for(;_0x234796['length'];){const _0x486af8=_0x234796['splice'](0x0,0x64);_0x567211['change'](()=>{for(const _0x42f272 of _0x486af8)_0x42f272['isInContent']&&_0x40efbf['execute'](_0x42f272['id']);});}}class B extends _0x5cf6aa{['_command'];['_suggestions'];constructor(_0x5b4af2,_0xb1ebf9,_0x295f8a){super(_0x5b4af2),this['_command']=_0xb1ebf9,this['_suggestions']=_0x295f8a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4c8a19=Array['from'](this['_suggestions']['values']())['some'](_0x5ce50f=>_0x5ce50f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4c8a19;}['execute'](){const _0x4f3e93=ts(Array['from'](this['_suggestions']['values']()));for(const _0xec7a79 of _0x4f3e93){const _0x5f6824=_0xec7a79['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5f6824))return;}rs(this['editor']['model'],this['_command'],_0x4f3e93);}}class T extends _0x5cf6aa{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x19316b,_0x1ba2a6,_0x5769c7){super(_0x19316b),this['_command']=_0x1ba2a6,this['_suggestions']=_0x5769c7,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x7d9d45=this['editor']['model']['document']['selection'],_0x45afb8=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x24d7b9,_0x5db68a){const _0x1d6709=Array['from'](_0x24d7b9['getRanges']()),_0x2204bb=new Set();for(const _0x2d9857 of _0x5db68a)if(_0x2d9857['isInContent']){for(const _0x194b5f of _0x1d6709)for(const _0x162958 of _0x2d9857['getRanges']())(_0x194b5f['isIntersecting'](_0x162958)||_0x24d7b9['isCollapsed']&&!_0x2d9857['isMultiRange']&&_0x2d9857['next']&&_0x162958['end']['isTouching'](_0x194b5f['start']))&&_0x2204bb['add'](_0x2d9857);}return _0x2204bb;}(_0x7d9d45,_0x45afb8),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x48f1fa=ts(Array['from'](this['_selectedSuggestions']));for(const _0x1824d8 of _0x48f1fa){const _0x474cb0=_0x1824d8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x474cb0))return;}rs(this['editor']['model'],this['_command'],_0x48f1fa);}}class x extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3e391a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1c41d5,_0x1cce23){super(),this['id']=_0x1cce23['id'],this['type']=_0x1cce23['type'],this['subType']=_0x1cce23['subType']||null,this['author']=_0x1cce23['author'],this['creator']=_0x1cce23['creator']||_0x1cce23['author'],this['isExternal']=Boolean(_0x1cce23['attributes']&&_0x1cce23['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1cce23['originalSuggestionId']||null,this['_model']=_0x1c41d5,this['_onAccept']=_0x1cce23['onAccept'],this['_onDiscard']=_0x1cce23['onDiscard'],this['_onAttributesChange']=_0x1cce23['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1cce23['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 _0x1897e1=this;for(;_0x1897e1['previous'];)_0x1897e1=_0x1897e1['previous'];return _0x1897e1;}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'](_0x2f5e2f){this['_markerNames']['add'](_0x2f5e2f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x509fb2=>this['_model']['markers']['get'](_0x509fb2))['filter'](_0x3e336d=>_0x3e336d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2b70f9=>{for(const _0x398620 of this['getMarkers']())_0x2b70f9['removeMarker'](_0x398620);}),this['_markerNames']['clear']();}['removeMarker'](_0x23bf3f){this['_model']['change'](_0x4b898a=>{_0x4b898a['removeMarker'](_0x23bf3f);}),this['_markerNames']['delete'](_0x23bf3f);}['addRange'](_0x3f3565){const _0x2a2d10='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x2a2d10),this['_model']['change'](_0xb56f64=>{_0xb56f64['addMarker'](_0x2a2d10,{'range':_0x3f3565,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x39be88){for(const _0x14bc85 of this['getRanges']())if(_0x14bc85['isIntersecting'](_0x39be88))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x52e57a=>_0x52e57a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x596c4b,_0x3582a0)=>[..._0x596c4b,..._0x3582a0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x19a36f=this['getRanges']();if(0x1!=_0x19a36f['length'])return null;const _0x1140c7=_0x19a36f[0x0],_0x39acc4=_0x1140c7['start']['nodeAfter'],_0x2a7e36=_0x1140c7['end']['nodeBefore'];return _0x39acc4 instanceof _0x1c7c63?_0x39acc4!=_0x2a7e36?null:_0x39acc4: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 _0x2f657e=[];let _0xd050a0=this['head'];for(;_0xd050a0;)_0x2f657e['push'](_0xd050a0),_0xd050a0=_0xd050a0['next'];return _0x2f657e;}['setAttribute'](_0x38e793,_0x4547d3){const _0x41139a=_0x41887c(this['attributes']);_0x43cd48(_0x41139a,_0x38e793,_0x4547d3),_0x31f67f(_0x41139a,this['attributes'])||(this['attributes']=_0x41139a,this['_onAttributesChange'](_0x41139a));}['removeAttribute'](_0x143a67){const _0x150452=_0x41887c(this['attributes']);_0x8c8f5a(_0x150452,_0x143a67),_0x31f67f(_0x150452,this['attributes'])||(this['attributes']=_0x150452,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 _0x370ed3()['substr'](0x1,0x5);}}function o(_0x5c67bc,_0x39f884,_0x548109){const _0x6625e8=_0x5c67bc['t'],t=_0x5c67bc['t'];switch(_0x39f884){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',_0x548109);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x548109);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x548109);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x548109);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x548109);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',_0x548109);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x548109);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',_0x548109);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x548109);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x548109);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x548109);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x548109);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x548109);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x548109);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x548109);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x548109);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x548109);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x548109);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x548109);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x548109);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x548109);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x548109);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x548109);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x548109);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x548109);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'},_0x548109);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x548109);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x548109);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x548109);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x548109);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x548109);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x548109);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x548109);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'},_0x548109);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x548109);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x548109);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x548109);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x548109);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'},_0x548109);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x548109);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'},_0x548109);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'},_0x548109);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x548109);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'},_0x548109);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x548109);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'},_0x548109);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x548109);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x548109);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'},_0x548109);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x548109);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 _0x6625e8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x548109);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x6625e8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x548109);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x548109);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'},_0x548109);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'},_0x548109);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'},_0x548109);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x39f884;}}class O{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x595120,_0x5b584e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x595120,this['_locale']=_0x5b584e;}['getDescriptions'](_0xee55d0){const _0x41cd71=[],_0x8960c5=new Set(),_0x237a7e=new Set();for(let _0x65913a=0x0;_0x65913a<_0xee55d0['length'];_0x65913a++){const _0x845fc0=_0xee55d0[_0x65913a];if(!_0x845fc0['isInContent'])continue;const _0x49208f=this['_handleCustomCallbackDescription'](_0x845fc0);if(_0x49208f){if(null!=_0x845fc0['subType']){if(_0x8960c5['has'](_0x845fc0['subType']))continue;_0x8960c5['add'](_0x845fc0['subType']);}_0x41cd71['push'](_0x49208f);}else{if('attribute'!=_0x845fc0['type'])'insertion'!=_0x845fc0['type']&&'deletion'!=_0x845fc0['type']||this['_handleInsertRemoveSuggestionDescription'](_0x41cd71,_0x845fc0,_0xee55d0[_0x65913a+0x1]);else{const _0xbbfe86=_0x845fc0['data']['key'];if(_0x237a7e['has'](_0xbbfe86))continue;_0x237a7e['add'](_0x845fc0['data']['key']),_0xbbfe86==m?this['_handleRenameSuggestionDescription'](_0x41cd71,_0x845fc0):this['_handleAttributeSuggestionDescription'](_0x41cd71,_0x845fc0);}}}return this['_resolveDescriptionItems'](_0x41cd71);}['registerDescriptionCallback'](_0x4cd58a){this['_customCallbacks']['push'](_0x4cd58a);}['registerElementLabel'](_0x3f46a5,_0x523586,_0x115549=_0x4066a6['normal']){'function'==typeof _0x3f46a5?_0x108dfb(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3f46a5,'label':_0x523586,'priority':_0x115549}):this['_itemLabels']['set'](_0x3f46a5,_0x523586);}['registerAttributeLabel'](_0x187ba6,_0x25687a){this['_attributeLabels']['set'](_0x187ba6,_0x25687a);}['getItemLabel'](_0x5d59bb,_0x5c6a70=0x1){let _0x4c408a;for(const _0xad878a of this['_itemLabelsCallbacks'])if(_0xad878a['matchingCallback'](_0x5d59bb)){_0x4c408a=_0xad878a['label'];break;}return _0x4c408a||(_0x4c408a=this['_itemLabels']['get'](_0x5d59bb['name'])),_0x4c408a?_0x4c408a(_0x5c6a70):0x1!==_0x5c6a70?_0x5c6a70+'\x20'+_0x5d59bb['name']+'s':''+_0x5d59bb['name'];}['_addDescriptionItems'](_0x1db36e,_0x4382db){const _0x372908=_0x4382db['getFirstRange']()['getWalker'](),_0x4604ed='insertion'==_0x4382db['type']?'add':'remove';for(const _0x133310 of _0x372908){const _0x45f835=_0x133310['item'],_0x46cc84=_0x1db36e[_0x1db36e['length']-0x1];if(_0x45f835['is']('$textProxy'))_0x46cc84&&_0x46cc84['type']['indexOf']('Container')>-0x1&&_0x1db36e['pop'](),_0x46cc84&&'text'==_0x46cc84['type']?_0x46cc84[_0x4604ed]+=_0x45f835['data']:_0x1db36e['push']({'type':'text','add':'add'==_0x4604ed?_0x45f835['data']:'','remove':'remove'==_0x4604ed?_0x45f835['data']:''});else{if(this['_schema']['isObject'](_0x45f835)){const _0x45fa40=_0x45f835;if(_0x46cc84&&_0x46cc84['type']['indexOf']('Container')>-0x1&&_0x1db36e['pop'](),'elementEnd'==_0x133310['type'])continue;_0x46cc84&&_0x46cc84['type']==_0x4604ed+'Object'&&_0x46cc84['element']['name']==_0x45fa40['name']?_0x46cc84['quantity']++:_0x1db36e['push']({'type':_0x4604ed+'Object','element':_0x45fa40,'quantity':0x1}),_0x372908['skip'](_0x142329=>!('elementEnd'==_0x142329['type']&&_0x142329['item']==_0x45f835));}else{if(this['_schema']['checkChild'](_0x45f835,'$text')||_0x45f835['is']('element','softBreak')){const _0x36dab4=_0x45f835;if('add'==_0x4604ed&&'elementStart'==_0x133310['type']||'remove'==_0x4604ed&&'elementEnd'==_0x133310['type'])continue;if(_0x46cc84&&-0x1==_0x46cc84['type']['indexOf']('Container')){'text'==_0x46cc84['type']&&(_0x46cc84[_0x4604ed]+='\x0a');continue;}let _0x2c1160;if(_0x2c1160='add'==_0x4604ed?_0x36dab4['nextSibling']&&!this['_schema']['isObject'](_0x36dab4['nextSibling'])?_0x36dab4['nextSibling']:null:_0x36dab4['previousSibling']&&!this['_schema']['isObject'](_0x36dab4['previousSibling'])?_0x36dab4['previousSibling']:null,_0x36dab4['isEmpty']||_0x2c1160&&_0x2c1160['isEmpty']){const _0x2c8878=_0x2c1160&&_0x2c1160['isEmpty']?_0x2c1160:_0x36dab4;_0x46cc84&&_0x46cc84['type']==_0x4604ed+'EmptyContainer'&&_0x46cc84['element']['name']==_0x2c8878['name']?_0x46cc84['quantity']++:_0x1db36e['push']({'type':_0x4604ed+'EmptyContainer','element':_0x2c8878,'quantity':0x1});}else _0x1db36e['push']({'type':_0x4604ed+'Container','element':_0x36dab4});}}}}}['_resolveDescriptionItems'](_0x3f37e0){const _0x35ff0e=this['_locale'],_0x28c6d4=[],_0x355ca8=[],_0xbe8cf5=[];for(const _0x28f661 of _0x3f37e0)switch(_0x28f661['type']){case'text':if(_0x28f661['add']=_0x28f661['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x28f661['remove']=_0x28f661['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x28f661['add']&&''!=_0x28f661['remove']){_0x28c6d4['push']({'type':'replace','content':o(_0x35ff0e,'REPLACE_TEXT',['\x22'+_0x28f661['remove']+'\x22','\x22'+_0x28f661['add']+'\x22'])});continue;}if(null!=_0x28f661['add']['match'](/^ +$/)){_0x28c6d4['push']({'type':'insertion','content':o(_0x35ff0e,'*Insert:*\x20%0',o(_0x35ff0e,'ELEMENT_SPACE',_0x28f661['add']['length']))});continue;}if(null!=_0x28f661['remove']['match'](/^ +$/)){_0x28c6d4['push']({'type':'deletion','content':o(_0x35ff0e,'*Remove:*\x20%0',o(_0x35ff0e,'ELEMENT_SPACE',_0x28f661['remove']['length']))});continue;}if(''!=_0x28f661['add']){_0x28c6d4['push']({'type':'insertion','content':o(_0x35ff0e,'*Insert:*\x20%0','\x22'+_0x28f661['add']+'\x22')});continue;}_0x28c6d4['push']({'type':'deletion','content':o(_0x35ff0e,'*Remove:*\x20%0','\x22'+_0x28f661['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x28c6d4['push']({'type':'insertion','content':o(_0x35ff0e,'*Insert:*\x20%0',this['getItemLabel'](_0x28f661['element'],_0x28f661['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x28c6d4['push']({'type':'deletion','content':o(_0x35ff0e,'*Remove:*\x20%0',this['getItemLabel'](_0x28f661['element'],_0x28f661['quantity']))});continue;case'addContainer':_0x28c6d4['push']({'type':'insertion','content':o(_0x35ff0e,'*Split:*\x20%0',this['getItemLabel'](_0x28f661['element'],_0x28f661['quantity']))});continue;case'removeContainer':_0x28c6d4['push']({'type':'deletion','content':o(_0x35ff0e,'*Merge:*\x20%0',this['getItemLabel'](_0x28f661['element'],_0x28f661['quantity']))});continue;case'addFormat':_0x355ca8['push'](_0x28f661['key']);continue;case'removeFormat':_0xbe8cf5['push'](_0x28f661['key']);continue;default:_0x28c6d4['push'](_0x28f661);}if(_0x355ca8['length']){const _0x164e70=_0x355ca8['map'](_0x2c561a=>this['_attributeLabels']['has'](_0x2c561a)?this['_attributeLabels']['get'](_0x2c561a):_0x2c561a)['join'](',\x20');_0x28c6d4['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x164e70)});}if(_0xbe8cf5['length']){const _0x5bb70f=_0xbe8cf5['map'](_0x244e31=>this['_attributeLabels']['has'](_0x244e31)?this['_attributeLabels']['get'](_0x244e31):_0x244e31)['join'](',\x20');_0x28c6d4['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5bb70f)});}return _0x28c6d4;}['_handleCustomCallbackDescription'](_0x248921){for(const _0x489570 of this['_customCallbacks']){const _0xf3cae6=_0x489570(_0x248921);if(_0xf3cae6&&'type'in _0xf3cae6)return _0xf3cae6;}}['_handleAttributeSuggestionDescription'](_0x1cb9d8,_0x291917){const _0x28b4bc=_0x291917['data'],_0x2d72e9=void 0x0===_0x28b4bc['newValue']?'removeFormat':'addFormat';_0x1cb9d8['push']({'type':_0x2d72e9,'key':_0x28b4bc['key']});}['_handleRenameSuggestionDescription'](_0xaf977e,_0x56a535){_0xaf977e['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x56a535['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x26ed9e,_0x3b8c65,_0x359986){if(this['_addDescriptionItems'](_0x26ed9e,_0x3b8c65),_0x359986&&_0x359986['getFirstRange']()&&!_0x3b8c65['getFirstRange']()['end']['isEqual'](_0x359986['getFirstRange']()['start'])){const _0x46f26a=_0x26ed9e[_0x26ed9e['length']-0x1],_0x424d62='insertion'==_0x3b8c65['type']?'add':'remove';_0x46f26a&&'text'==_0x46f26a['type']&&(_0x46f26a[_0x424d62]+='\x0a');}}}class R extends _0x28b250{['afterInit'](){const _0x1d55de=this['editor'],_0x5d342f=_0x1d55de['plugins']['get']('TrackChangesEditing');_0x1d55de['commands']['get']('showAIAssistant')&&_0x5d342f['enableCommand']('showAIAssistant');}}class E extends _0x28b250{['afterInit'](){const _0x3bc11b=this['editor'],_0x162539=_0x3bc11b['locale'];if(!_0x3bc11b['plugins']['has']('AlignmentEditing'))return;const _0x31c642=_0x3bc11b['plugins']['get']('TrackChangesEditing');_0x31c642['enableDefaultAttributesIntegration']('alignment'),_0x31c642['registerBlockAttribute']('alignment'),_0x31c642['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x162539,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23408e=this['editor'],_0x504c98=_0x23408e['locale'];_0x23408e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc6244d=>{if('formatBlock'!=_0xc6244d['type'])return;const {data:_0x46f38b}=_0xc6244d;if(_0x46f38b&&'alignment'==_0x46f38b['commandName']){const _0x4c77b6=_0x46f38b['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x504c98,'*Format:*\x20%0',function(_0x59678f){switch(_0x59678f){case'left':return o(_0x504c98,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x504c98,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x504c98,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x504c98,'FORMAT_JUSTIFY_TEXT');}}(_0x4c77b6))};}});}}const Xt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x28b250{['afterInit'](){const _0x58d9da=this['editor'],_0x2c0d79=_0x58d9da['plugins']['get']('TrackChangesEditing'),_0x1aa8fc=_0x58d9da['locale'];for(const _0x5f5bab of Xt){if(!_0x58d9da['plugins']['has'](_0x5f5bab))continue;const _0xf8f6e8=_0x5f5bab['slice'](0x0,-0x7)['toLowerCase'](),_0x4c77c8='FORMAT_'+_0xf8f6e8['toUpperCase']();_0x2c0d79['enableDefaultAttributesIntegration'](_0xf8f6e8),_0x2c0d79['registerInlineAttribute'](_0xf8f6e8),_0x2c0d79['descriptionFactory']['registerAttributeLabel'](_0xf8f6e8,o(_0x1aa8fc,_0x4c77c8));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f2c79=this['editor'],_0x5c9ff4=_0x1f2c79['locale'],_0x37c072=_0x1f2c79['plugins']['get']('TrackChangesEditing');function _0x1b04a1(_0x3412d2,_0xd4cf39){_0x37c072['descriptionFactory']['registerDescriptionCallback'](_0x5755e2=>{if('formatInline'!=_0x5755e2['type'])return;const {data:_0x5da336}=_0x5755e2;return _0x5da336&&_0x5da336['commandName']===_0x3412d2?_0x5da336['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c9ff4,'*Format:*\x20%0',_0xd4cf39)}:{'type':'format','content':o(_0x5c9ff4,'*Remove\x20format:*\x20%0',_0xd4cf39)}:void 0x0;});}_0x1b04a1('bold',o(_0x5c9ff4,'FORMAT_BOLD')),_0x1b04a1('italic',o(_0x5c9ff4,'FORMAT_ITALIC')),_0x1b04a1('underline',o(_0x5c9ff4,'FORMAT_UNDERLINE')),_0x1b04a1('code',o(_0x5c9ff4,'FORMAT_CODE')),_0x1b04a1('strikethrough',o(_0x5c9ff4,'FORMAT_STRIKETHROUGH')),_0x1b04a1('subscript',o(_0x5c9ff4,'FORMAT_SUBSCRIPT')),_0x1b04a1('superscript',o(_0x5c9ff4,'FORMAT_SUPERSCRIPT'));}}class V extends _0x28b250{['afterInit'](){const _0x106f7d=this['editor'],_0x779f8d=_0x106f7d['locale'];if(!_0x106f7d['plugins']['has']('BlockQuoteEditing'))return;const _0x35e422=_0x106f7d['plugins']['get']('TrackChangesEditing'),_0x16c411=this['editor']['commands']['get']('blockQuote');_0x35e422['enableCommand']('blockQuote',(_0x2581bf,_0x7ad518={})=>{const _0x4a5a0f=this['editor']['model']['document']['selection'],_0x47e11b=_0x7ad518&&void 0x0!==_0x7ad518['forceValue']?_0x7ad518['forceValue']:!_0x16c411['value'];let _0x36ab7a=[];if(_0x47e11b){const _0x3c6901=Array['from'](_0x4a5a0f['getSelectedBlocks']())['filter'](_0x239dfe=>Zt(_0x239dfe)||function(_0x5330ae,_0x15ffd8){const _0x366bf9=_0x15ffd8['checkChild'](_0x5330ae['parent'],'blockQuote'),_0x506c5c=_0x15ffd8['checkChild'](['$root','blockQuote'],_0x5330ae);return _0x366bf9&&_0x506c5c;}(_0x239dfe,this['editor']['model']['schema']));_0x36ab7a=Yt(_0x3c6901,_0x106f7d['model']);}else{const _0x483d9a=Array['from'](_0x4a5a0f['getSelectedBlocks']())['filter'](_0x198322=>Zt(_0x198322));_0x36ab7a=Yt(_0x483d9a,_0x106f7d['model']);}_0x106f7d['model']['change'](()=>{for(const _0x2fc41d of _0x36ab7a)_0x35e422['markBlockFormat'](_0x2fc41d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x47e11b}]});});}),_0x35e422['descriptionFactory']['registerDescriptionCallback'](_0xe9f89a=>{const {data:_0x7bccc7}=_0xe9f89a;if(_0x7bccc7&&'blockQuote'==_0x7bccc7['commandName']){const _0x474654=o(_0x779f8d,'ELEMENT_BLOCK_QUOTE');return _0x7bccc7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x779f8d,'*Set\x20format:*\x20%0',_0x474654)}:{'type':'format','content':o(_0x779f8d,'*Remove\x20format:*\x20%0',_0x474654)};}});}}function Zt(_0x4e3e1a){return'blockQuote'==_0x4e3e1a['parent']['name'];}class F extends _0x28b250{['afterInit'](){const _0x4c5691=this['editor'],_0x25a35d=_0x4c5691['locale'],_0x8ff9e2=_0x4c5691['plugins']['get']('TrackChangesEditing');_0x4c5691['plugins']['has']('BookmarkEditing')&&(_0x8ff9e2['enableCommand']('insertBookmark'),_0x8ff9e2['enableDefaultAttributesIntegration']('updateBookmark'),_0x8ff9e2['registerBlockAttribute']('bookmarkId'),_0x8ff9e2['descriptionFactory']['registerDescriptionCallback'](_0x23123a=>{if('insertion'!=_0x23123a['type']&&'deletion'!=_0x23123a['type']&&'attribute'!=_0x23123a['type'])return;const _0xbe003d=_0x23123a['getContainedElement']();if(null==_0xbe003d)return;if(!_0xbe003d['is']('element','bookmark'))return;const _0x161b7b=_0xbe003d['getAttribute']('bookmarkId');if('insertion'==_0x23123a['type'])return{'type':'insertion','content':o(_0x25a35d,'*Insert:*\x20%0','\x22'+_0x161b7b+'\x22\x20'+o(_0x25a35d,'ELEMENT_BOOKMARK'))};if('deletion'==_0x23123a['type'])return{'type':'deletion','content':o(_0x25a35d,'*Remove:*\x20%0','\x22'+_0x161b7b+'\x22\x20'+o(_0x25a35d,'ELEMENT_BOOKMARK'))};const {data:_0x2372a9}=_0x23123a;if(!_0x2372a9||'bookmarkId'!=_0x2372a9['key'])return;return{'type':'format','content':o(_0x25a35d,'*Set\x20bookmark:*\x20%0','\x22'+_0x2372a9['newValue']+'\x22')};}));}}class G extends _0x28b250{['afterInit'](){const _0x188a57=this['editor'];_0x188a57['plugins']['has']('CaseChange')&&(_0x188a57['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x188a57['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x188a57['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class L extends _0x28b250{['afterInit'](){const _0x44828f=this['editor'];_0x44828f['commands']['get']('ckbox')&&_0x44828f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x28b250{['afterInit'](){const _0x3bbd20=this['editor'];if(!_0x3bbd20['plugins']['has']('CodeBlock'))return;const _0x104474=_0x3bbd20['plugins']['get']('TrackChangesEditing'),_0x28965e=_0x3bbd20['locale'],_0x377804=_0x3bbd20['config']['get']('codeBlock')['languages'],_0x5966a3=_0x3bbd20['commands']['get']('codeBlock');_0x104474['enableCommand']('indentCodeBlock'),_0x104474['enableCommand']('outdentCodeBlock'),_0x104474['enableCommand']('codeBlock',(_0x3dccbb,_0x1639ad={})=>{const _0x35a04a=_0x3bbd20['model'],_0x3a5b12=_0x3bbd20['model']['document']['selection'],_0xad7343=_0x1639ad&&void 0x0!==_0x1639ad['forceValue']?_0x1639ad['forceValue']:!_0x5966a3['value'];let _0x5cf071;_0x1639ad['language']||(_0x1639ad['language']=_0x377804[0x0]['language']),_0x5cf071=_0xad7343?Array['from'](_0x3a5b12['getSelectedBlocks']())['filter'](_0x11a70c=>oo(_0x11a70c)||function(_0x571c5a,_0x5a8756){if(_0x571c5a['is']('rootElement')||_0x5a8756['isLimit'](_0x571c5a))return!0x1;return _0x5a8756['checkChild'](_0x571c5a['parent'],'codeBlock');}(_0x11a70c,_0x35a04a['schema'])):Array['from'](_0x3a5b12['getSelectedBlocks']())['filter'](_0x3a58ed=>oo(_0x3a58ed));const _0x3df170=Yt(_0x5cf071,_0x35a04a);_0x35a04a['change'](()=>{for(const _0x4e06d8 of _0x3df170)_0x104474['markBlockFormat'](_0x4e06d8,{'commandName':'codeBlock','commandParams':[{..._0x1639ad,'forceValue':_0xad7343}],'formatGroupId':'blockName'});});}),(_0x104474['descriptionFactory']['registerElementLabel']('codeBlock',_0xee5539=>o(_0x28965e,'ELEMENT_CODE_BLOCK',_0xee5539)),_0x104474['descriptionFactory']['registerDescriptionCallback'](_0x4852bc=>{if('formatBlock'!=_0x4852bc['type'])return;const _0x4c24c=_0x28965e['t'],{data:_0x492cbf}=_0x4852bc;if(!_0x492cbf||'codeBlock'!=_0x492cbf['commandName'])return;const _0x26c0ee=_0x492cbf['commandParams'][0x0]['language'],_0x31a02f=_0x4c24c(_0x377804['find'](_0x195f4f=>_0x195f4f['language']===_0x26c0ee)['label'])['toLowerCase']();return _0x492cbf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x28965e,'*Set\x20format:*\x20%0',o(_0x28965e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x31a02f+')')}:{'type':'format','content':o(_0x28965e,'*Remove\x20format:*\x20%0',o(_0x28965e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x1f26ab){return'codeBlock'==_0x1f26ab['name'];}class K extends _0x28b250{['afterInit'](){const _0x5c7966=this['editor'];if(!_0x5c7966['plugins']['has']('CommentsEditing'))return;_0x5c7966['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4bda0b,_0x161bee,_0x49a3e7){const _0x5ad157=[];for(const _0x5592ab of _0x161bee['getItems']())_0x5592ab['hasAttribute'](_0x4bda0b)&&_0x5ad157['push'](_0x49a3e7['createRangeOn'](_0x5592ab));return _0x5ad157;}function Fe(_0x142ab0,_0x2a5594,{showActiveMarker:_0x4d8384=!0x0}={}){const _0x7a991a=_0x142ab0['plugins']['get']('TrackChangesEditing');return(_0x6b4b91,_0xbf814a,_0x1664fd)=>{if(!_0x1664fd['consumable']['test'](_0xbf814a['markerRange'],_0x6b4b91['name']))return;const _0x2d934e=_0xbf814a['markerRange']['getWalker'](),_0x30f46e=_0xbf814a['markerRange']['start'],_0x2bde5b=_0x142ab0['model']['schema'];let _0xa8da58=null,_0xc457b8=null,_0x1b4d00=!0x1,_0x48fbbf=!0x1;for(const _0x3afcdc of _0x2d934e){const _0x57a440=_0x3afcdc['item'];_0x1b4d00=_0x1b4d00||_0x2bde5b['isContent'](_0x57a440);const _0x3e64df=_0x1664fd['mapper']['toViewElement'](_0x57a440);if(_0x3e64df&&_0x3e64df['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3afcdc['type']&&(_0x2bde5b['isBlock'](_0x57a440)&&!_0x2bde5b['isLimit'](_0x57a440)&&(_0x57a440['nextSibling']||_0x30f46e['isAtEnd']?_0xa8da58&&_0xa8da58['parent']==_0x57a440||(_0xa8da58=_0x57a440,_0x301b9b(_0x3afcdc['previousPosition']),_0x48fbbf=!0x0):_0xc457b8=_0xc457b8||_0x3afcdc['previousPosition']));}function _0x301b9b(_0x4b1722){const {id:_0x4ba3e5,authorId:_0xbe4ab4}=_0x7a991a['_splitMarkerName'](_0xbf814a['markerName']),_0x227f01=_0x1664fd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2a5594,'data-suggestion':_0x4ba3e5,'data-author-id':_0xbe4ab4}),_0x8ca2e5=_0x1664fd['mapper']['toViewPosition'](_0x4b1722);_0x4d8384&&_0x7a991a['activeMarkers']['includes'](_0xbf814a['markerName'])&&_0x1664fd['writer']['addClass']('ck-suggestion-marker--active',_0x227f01),_0x1664fd['writer']['insert'](_0x8ca2e5,_0x227f01),_0x1664fd['mapper']['bindElementToMarker'](_0x227f01,_0xbf814a['markerName']);}_0x1b4d00||_0x48fbbf||!_0xc457b8||_0x301b9b(_0xc457b8);};}class H extends _0x28b250{static get['requires'](){return[_0x51d717];}['init'](){const _0x1f0eea=this['editor'],_0x14b9d7=_0x1f0eea['plugins']['get']('TrackChangesEditing');_0x14b9d7['enableCommand']('delete');const _0xa4b12b=_0x1f0eea['commands']['get']('deleteForward');_0x14b9d7['enableCommand']('deleteForward',(_0x94528c,_0x1739cd={})=>{const _0x43becf=_0x1f0eea['model']['createSelection'](_0x1f0eea['model']['document']['selection']);_0x43becf['isCollapsed']&&_0x1f0eea['model']['modifySelection'](_0x43becf,{'direction':'forward','unit':_0x1739cd['unit']});const _0x417123=_0x43becf['getFirstRange'](),_0x51fc3b=_0xc2db3f['fromRange'](_0x417123);let _0x4faaa2;_0x94528c(_0x1739cd),_0x4faaa2='$graveyard'==_0x51fc3b['root']['rootName']?_0x1f0eea['model']['createRange'](_0x417123['start']):_0x1f0eea['model']['createRange'](_0x51fc3b['start'],_0x51fc3b['end']),_0x51fc3b['detach'](),_0x1f0eea['model']['enqueueChange'](_0xa4b12b['buffer']['batch'],_0x1a632b=>{_0xa4b12b['buffer']['lock'](),_0x1a632b['setSelection'](_0x1a632b['createRange'](_0x4faaa2['end'])),_0xa4b12b['buffer']['unlock']();});}),_0x1f0eea['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x1f0eea,'merge'),{'priority':'high'}),_0x1f0eea['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5106da,_0x425a6f,_0x352e57)=>{_0x352e57['options']['showSuggestionHighlights']&&Fe(_0x1f0eea,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5106da,_0x425a6f,_0x352e57);},{'priority':'high'}),_0x1f0eea['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4081c0,_0x23beef,_0xb3fb30)=>{const _0x4a201e=_0xb3fb30['mapper']['markerNameToElements'](_0x23beef['markerName']);if(_0x4a201e){for(const _0x499dc5 of _0x4a201e)_0x499dc5['is']('uiElement')&&(_0xb3fb30['mapper']['unbindElementFromMarkerName'](_0x499dc5,_0x23beef['markerName']),_0xb3fb30['writer']['remove'](_0x499dc5));}},{'priority':'high'});}}class q extends _0x28b250{['afterInit'](){const _0x32e913=this['editor'];if(!_0x32e913['plugins']['has']('ListEditing'))return;const _0x41ee7a=_0x32e913['locale'],_0xeaf92f=_0x32e913['plugins']['get']('TrackChangesEditing'),_0x46cc55=_0x32e913['plugins']['has']('TodoListEditing'),_0x359c08=!!_0x32e913['config']['get']('list.multiBlock');function _0x81c897(_0x35608e){return{'type':'format','content':''+o(_0x41ee7a,'*Set\x20format:*\x20%0',_0x35608e)};}function _0x2678ba(_0x3a4b3d){return{'type':'format','content':''+o(_0x41ee7a,'*Remove\x20format:*\x20%0',_0x3a4b3d)};}_0xeaf92f['enableDefaultAttributesIntegration']('numberedList'),_0xeaf92f['enableDefaultAttributesIntegration']('bulletedList'),_0xeaf92f['enableDefaultAttributesIntegration']('customNumberedList'),_0xeaf92f['enableDefaultAttributesIntegration']('customBulletedList'),_0xeaf92f['enableDefaultAttributesIntegration']('indentList'),_0xeaf92f['enableDefaultAttributesIntegration']('outdentList'),_0xeaf92f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xeaf92f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xeaf92f['registerBlockAttribute']('listItemId'),_0xeaf92f['registerBlockAttribute']('listType'),_0xeaf92f['registerBlockAttribute']('listIndent'),_0x359c08&&(_0xeaf92f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xeaf92f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x46cc55&&(_0xeaf92f['enableDefaultAttributesIntegration']('todoList'),_0xeaf92f['enableDefaultAttributesIntegration']('checkTodoList'),_0xeaf92f['registerBlockAttribute']('todoListChecked'),_0xeaf92f['descriptionFactory']['registerDescriptionCallback'](_0x5a8d6c=>{const {data:_0x34248e}=_0x5a8d6c;if(_0x34248e&&'todoListChecked'==_0x34248e['key'])return{'type':'format','content':_0x34248e['newValue']?o(_0x41ee7a,'*Check\x20item*'):o(_0x41ee7a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4a4a6d=>{if(_0x4a4a6d['batch']['isUndo'])return!0x1;let _0x266237=!0x1;const _0x26e455=_0xeaf92f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2830fd=>'todoListChecked'===_0xeaf92f['_getAttributeKey'](_0x2830fd));for(const _0x547873 of _0x26e455){'todo'!=_0x547873['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xeaf92f['_findSuggestions'](_0x547873['getFirstRange'](),'attribute')['find'](_0x48c846=>'listType'===_0xeaf92f['_getAttributeKey'](_0x48c846['suggestion']))||(_0x4a4a6d['removeMarker'](_0x547873['getFirstMarker']()),_0x266237=!0x0));}return _0x266237;})),_0xeaf92f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x41ee7a,'FORMAT_INDENT'));const _0x386fe2={'type':'format','content':''};_0xeaf92f['descriptionFactory']['registerDescriptionCallback'](_0x1fd801=>{const {data:_0x4520d8}=_0x1fd801;if(!_0x4520d8||'listType'!=_0x4520d8['key'])return;let _0x5aed25=_0x1fd801['head'];for(;_0x5aed25;){if(_0x5aed25['data']&&(('listStyle'==_0x5aed25['data']['key']||'listMarkerStyle'==_0x5aed25['data']['key'])&&(_0x5aed25['data']['newValue']&&'default'!=_0x5aed25['data']['newValue']||'default'!=_0x5aed25['data']['oldValue']&&!_0x4520d8['newValue'])||!_0x359c08&&_0x5aed25['data']['key']==m))return _0x386fe2;_0x5aed25=_0x5aed25['next'];}if(null==_0x4520d8['newValue'])switch(_0x4520d8['oldValue']){case'bulleted':return _0x2678ba(o(_0x41ee7a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2678ba(o(_0x41ee7a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2678ba(o(_0x41ee7a,'ELEMENT_TODO_LIST'));}switch(_0x4520d8['newValue']){case'bulleted':return _0x81c897(o(_0x41ee7a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x81c897(o(_0x41ee7a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x81c897(o(_0x41ee7a,'ELEMENT_TODO_LIST'));}}),_0xeaf92f['descriptionFactory']['registerDescriptionCallback'](_0x14d2ec=>{const {data:_0xc87a31}=_0x14d2ec;if(_0xc87a31&&'listIndent'==_0xc87a31['key'])return null==_0xc87a31['newValue']||null==_0xc87a31['oldValue']&&0x0==_0xc87a31['newValue']?_0x386fe2:void 0x0;}),_0xeaf92f['descriptionFactory']['registerDescriptionCallback'](_0x18d4de=>{if('attribute'!=_0x18d4de['type'])return;const {data:_0x25b731}=_0x18d4de;if(!_0x25b731||'listItemId'!=_0x25b731['key'])return;const _0x521f4e=Te(_0x18d4de);return'newValue'==_0x521f4e?{'type':'format','content':o(_0x41ee7a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x521f4e?{'type':'format','content':o(_0x41ee7a,'*Split:*\x20list\x20item')}:_0x386fe2;}),_0x32e913['model']['document']['registerPostFixer'](_0xef0dda=>this['listItemIdFixer'](_0xef0dda)),_0x32e913['model']['document']['registerPostFixer'](_0xe3b8d3=>this['noTrackChangesFixer'](_0xe3b8d3)),_0x32e913['model']['document']['on']('change:data',(_0x29195a,_0xfac65b)=>{if(_0xfac65b['isUndo']||!_0xfac65b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3a38a9){if(_0x3a38a9['batch']['isUndo']||!_0x3a38a9['batch']['isLocal'])return!0x1;let _0x98be52=!0x1;const _0x357c44=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xa9c4f4=>_0xa9c4f4['data']&&'listItemId'==_0xa9c4f4['data']['key'])['filter'](_0x5b4160=>_0x5b4160['data']['newValue']&&_0x5b4160['data']['oldValue']);for(const _0x1bf7f7 of _0x357c44)Te(_0x1bf7f7)||(_0x3a38a9['removeMarker'](_0x1bf7f7['getFirstMarker']()),_0x98be52=!0x0);return _0x98be52;}['noTrackChangesFixer'](_0x40c43e){if(_0x40c43e['batch']['isUndo']||!_0x40c43e['batch']['isLocal'])return!0x1;const _0x11b225=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x11b225['trackChangesCommand']['value'])return!0x1;let _0x24436e=!0x1;const _0x37152d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xc9d51c=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x372a71=>'attribute'==_0x372a71['type'])['filter'](_0x166b75=>_0x37152d['includes'](_0x166b75['attributeKey']));if(0x0==_0xc9d51c['length'])return _0x24436e;for(const _0x12fd34 of _0xc9d51c){const _0x2a2e03=_0x11b225['_findSuggestions'](_0x12fd34['range'],'attribute')['filter'](_0x47a4b3=>!_0x47a4b3['meta']['isNextTo'])['map'](_0x597449=>_0x597449['suggestion'])['filter'](_0x488de8=>{const _0x17f8ba=_0x11b225['_getAttributeKey'](_0x488de8);return _0x37152d['includes'](_0x17f8ba);});if(_0x2a2e03['length']){for(const _0x1cff99 of _0x2a2e03)_0x40c43e['removeMarker'](_0x1cff99['getFirstMarker']());_0x24436e=!0x0;}}return _0x24436e;}['assureChains'](){const _0x5105f9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15b212=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x50e033;const _0x47cb85=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3fcf63=>{if(_0x3fcf63['data']['oldRange']||!_0x3fcf63['data']['newRange'])return null;if(!_0x3fcf63['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1b0214}=_0x5105f9['_splitMarkerName'](_0x3fcf63['name']);if(!_0x5105f9['hasSuggestion'](_0x1b0214))return null;const _0x51d34f=_0x5105f9['getSuggestion'](_0x1b0214);return _0x15b212['includes'](_0x51d34f['data']['key']);})['map'](_0x11a96b=>{const {id:_0x54af79}=_0x5105f9['_splitMarkerName'](_0x11a96b['name']),_0x288929=_0x5105f9['getSuggestion'](_0x54af79);return _0x50e033=_0x288929['attributes']['groupId'],_0x288929['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x47cb85['size'])return;const _0x52b00d=_0x5105f9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf08d15=>'attribute'==_0xf08d15['type']&&_0xf08d15['data']&&_0x15b212['includes'](_0xf08d15['data']['key'])&&_0xf08d15['attributes']['groupId']!=_0x50e033)['map'](_0x27a9b2=>({'listItem':_0x27a9b2['getFirstRange']()['start']['nodeAfter'],'groupId':_0x27a9b2['attributes']['groupId']})),_0x352f55=new Set();for(const {groupId:_0x2b150f,listItem:_0x2dbdf5}of _0x52b00d)_0x47cb85['has'](_0x2dbdf5)&&_0x352f55['add'](_0x2b150f);for(const _0x955faf of _0x5105f9['getSuggestions']())_0x352f55['has'](_0x955faf['attributes']['groupId'])&&_0x955faf['setAttribute']('groupId',_0x50e033);}['_supportLegacySuggestions'](){const _0x4aa604=this['editor'],_0x72f75c=_0x4aa604['locale'],_0x41e520=_0x4aa604['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x41e520['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xf10898,_0x39a13e){const _0x41cc45=[];for(let _0x429752 of _0xf10898)_0x429752['start']['nodeAfter']===_0x429752['end']['parent']&&(_0x429752=_0x4aa604['model']['createRange'](_0x4aa604['model']['createPositionAt'](_0x429752['start']['nodeAfter'],0x0))),_0x41cc45['push'](_0x429752);_0x4aa604['model']['change'](_0x370f17=>{const _0x36519d=_0x4aa604['model']['document']['selection'],_0x15d0c0=Array['from'](_0x36519d['getRanges']())['map'](_0x1efdb2=>_0xc2db3f['fromRange'](_0x1efdb2));_0x370f17['setSelection'](_0x41cc45),_0x4aa604['commands']['get'](_0x39a13e['commandName'])['refresh'](),_0x39a13e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4aa604['execute'](_0x39a13e['commandName'],..._0x39a13e['commandParams']),_0x370f17['setSelection'](_0x15d0c0);for(const _0x30d2c5 of _0x15d0c0)_0x30d2c5['detach']();});}),_0x41e520['descriptionFactory']['registerElementLabel'](function(_0x3683fc){const _0x4e94ad=!_0x4aa604['model']['schema']['isObject'](_0x3683fc),_0x52e90a=_0x3683fc['previousSibling'],_0x50436d=_0x3683fc['nextSibling'],_0xb23181=_0x3683fc['getAttribute']('listItemId'),_0x34b822=!_0x52e90a||_0x52e90a['getAttribute']('listItemId')!==_0xb23181,_0x1c00d1=!_0x50436d||_0x50436d['getAttribute']('listItemId')!==_0xb23181;return _0x4e94ad&&Boolean(_0xb23181)&&_0x34b822&&_0x1c00d1;},_0x88df77=>o(_0x72f75c,'ELEMENT_LIST_ITEM',_0x88df77));}['_registerLegacyDescription'](){const _0x24a5dd=this['editor'],_0x3172b1=_0x24a5dd['locale'];function _0x1a2dea(_0x9cb6eb){const _0xe9602c=_0x24a5dd['commands']['get']('bulletedList')['value'],_0x48880b=_0x24a5dd['commands']['get']('numberedList')['value'];return'numberedList'===_0x9cb6eb?_0xe9602c:_0x48880b;}_0x24a5dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1cb343){if('formatBlock'!=_0x1cb343['type'])return;const {data:_0x51a488}=_0x1cb343;if(!_0x51a488)return;let _0x543af0,_0x12495f,_0x134c44,_0x421c22;switch(_0x51a488['commandName']){case'bulletedList':_0x134c44=_0x51a488['commandParams'][0x0]['forceValue'],_0x421c22=_0x1a2dea(_0x51a488['commandName']),_0x543af0=_0x134c44?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x421c22&&_0x24a5dd['config']['get']('list.multiBlock')||(_0x543af0='*Change\x20to:*\x20%0'),_0x12495f={'type':'format','content':o(_0x3172b1,_0x543af0,o(_0x3172b1,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x134c44=_0x51a488['commandParams'][0x0]['forceValue'],_0x421c22=_0x1a2dea(_0x51a488['commandName']),_0x543af0=_0x134c44?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x421c22&&_0x24a5dd['config']['get']('list.multiBlock')||(_0x543af0='*Change\x20to:*\x20%0'),_0x12495f={'type':'format','content':o(_0x3172b1,_0x543af0,o(_0x3172b1,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x543af0='*Indent:*\x20%0',_0x12495f={'type':'format','content':o(_0x3172b1,_0x543af0,o(_0x3172b1,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x543af0=function(_0x47c769){const _0x2b40db=_0x47c769['getFirstRange']();let _0x25995e=_0x2b40db['start']['nodeAfter'];for(;_0x25995e&&_0x2b40db['containsItem'](_0x25995e);){if(_0x25995e['getAttribute']('listIndent')>0x0)return!0x1;_0x25995e=_0x25995e['nextSibling'];}return!0x0;}(_0x1cb343)?o(_0x3172b1,'*Format:*\x20remove\x20from\x20%0',o(_0x3172b1,function(_0x11c368){return'ELEMENT_'+_0x11c368['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1cb343))):o(_0x3172b1,'*Outdent:*\x20%0',o(_0x3172b1,'ELEMENT_LIST_ITEM')),_0x12495f={'type':'format','content':_0x543af0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x51a488['multipleBlocks']&&(_0x543af0='*Merge:*\x20%0',_0x12495f={'type':'deletion','content':o(_0x3172b1,_0x543af0,o(_0x3172b1,'ELEMENT_LIST_ITEM'))});}return _0x12495f;});}}function Te(_0xfccaa3){let _0x34b6e7=_0xfccaa3['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x34b6e7;){const _0x395a28=_0x34b6e7['getAttribute']('listItemId');if(!_0x395a28)return!0x1;if(_0x395a28==_0xfccaa3['data']['newValue'])return'newValue';if(_0x395a28==_0xfccaa3['data']['oldValue'])return'oldValue';_0x34b6e7=_0x34b6e7['previousSibling'];}return!0x1;}class z extends _0x28b250{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x441278=this['editor']['config']['get']('list.properties'),_0x6b9862=this['editor']['plugins']['get']('TrackChangesEditing');_0x441278['styles']&&(_0x6b9862['enableDefaultAttributesIntegration']('listStyle'),_0x6b9862['registerBlockAttribute']('listStyle')),_0x441278['reversed']&&(_0x6b9862['enableDefaultAttributesIntegration']('listReversed'),_0x6b9862['registerBlockAttribute']('listReversed')),_0x441278['startIndex']&&(_0x6b9862['enableDefaultAttributesIntegration']('listStart'),_0x6b9862['registerBlockAttribute']('listStart'));const _0x2f2ee2={'type':'format','content':''};_0x6b9862['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2f98f6=this['editor']['locale'];_0x6b9862['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2f98f6,'FORMAT_LIST_REVERSED')),_0x6b9862['descriptionFactory']['registerDescriptionCallback'](_0x290a34=>{const {data:_0x26493c}=_0x290a34;if(_0x26493c&&'listReversed'==_0x26493c['key'])return null==_0x26493c['newValue']||0x0==_0x26493c['newValue']&&null==_0x26493c['oldValue']?_0x2f2ee2:void 0x0;}),_0x6b9862['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2f98f6,'FORMAT_LIST_START')),_0x6b9862['descriptionFactory']['registerDescriptionCallback'](_0x4fc36d=>{const {data:_0x4a0601}=_0x4fc36d;if(_0x4a0601&&'listStart'==_0x4a0601['key'])return null==_0x4a0601['newValue']||0x1==_0x4a0601['newValue']&&null==_0x4a0601['oldValue']?_0x2f2ee2:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x323a1=>{if(_0x323a1['batch']['isUndo'])return!0x1;let _0x353335=!0x1;const _0x2c229b=_0x6b9862['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x502758=>{const _0x1a5daa=_0x6b9862['_getAttributeKey'](_0x502758);return'listStart'==_0x1a5daa||'listReversed'==_0x1a5daa;});for(const _0x2de121 of _0x2c229b){const _0x1638d7=_0x2de121['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1638d7||'customNumbered'==_0x1638d7)continue;_0x6b9862['_findSuggestions'](_0x2de121['getFirstRange'](),'attribute')['find'](_0x5efe2f=>'listType'==_0x6b9862['_getAttributeKey'](_0x5efe2f['suggestion']))||(_0x323a1['removeMarker'](_0x2de121['getFirstMarker']()),_0x353335=!0x0);}return _0x353335;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4395db){const _0x3b73c3=this['editor']['locale'],{data:_0x245be7}=_0x4395db,_0x5c7ef2={'type':'format','content':''};if(!_0x245be7||'listStyle'!=_0x245be7['key'])return;if(!_0x245be7['oldValue'])return'default'==_0x245be7['newValue']?_0x5c7ef2:{'type':'format','content':''+o(_0x3b73c3,'*Set\x20format:*\x20%0',o(_0x3b73c3,this['_getTranslationKeyForListStyle'](_0x245be7['newValue'])))};if(!_0x245be7['newValue']){if('default'==_0x245be7['oldValue'])return _0x5c7ef2;let _0x48f497=_0x4395db['head'];for(;_0x48f497;){if(_0x48f497['data']&&'listType'==_0x48f497['data']['key']&&_0x48f497['data']['newValue'])return _0x5c7ef2;_0x48f497=_0x48f497['next'];}return{'type':'format','content':''+o(_0x3b73c3,'*Remove\x20format:*\x20%0',o(_0x3b73c3,this['_getTranslationKeyForListStyle'](_0x245be7['oldValue'])))};}if('default'!=_0x245be7['newValue'])return{'type':'format','content':''+o(_0x3b73c3,'*Set\x20format:*\x20%0',o(_0x3b73c3,this['_getTranslationKeyForListStyle'](_0x245be7['newValue'])))};let _0xe3944=_0x4395db['head'];for(;_0xe3944;){if(_0xe3944['data']&&'listType'==_0xe3944['data']['key']&&_0xe3944['data']['newValue']&&_0xe3944['data']['oldValue'])return _0x5c7ef2;_0xe3944=_0xe3944['next'];}return{'type':'format','content':o(_0x3b73c3,'*Set\x20format:*\x20%0',o(_0x3b73c3,'ELEMENT_'+_0x4395db['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x18f914=this['editor'],_0x39afb9=_0x18f914['locale'];_0x18f914['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x963fef=>{if('formatBlock'!=_0x963fef['type'])return;const {data:_0x2e56fa}=_0x963fef;if(!_0x2e56fa)return;let _0x52bb72,_0x22ad3c;switch(_0x2e56fa['commandName']){case'listStyle':_0x52bb72='*Change\x20to:*\x20%0',_0x22ad3c={'type':'format','content':o(_0x39afb9,_0x52bb72,o(_0x39afb9,this['_getTranslationKeyForListStyle'](_0x2e56fa['commandParams'][0x0]['type'])))};break;case'listReversed':_0x52bb72=_0x2e56fa['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x22ad3c={'type':'format','content':o(_0x39afb9,_0x52bb72)};break;case'listStart':_0x52bb72='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x22ad3c={'type':'format','content':o(_0x39afb9,_0x52bb72,_0x2e56fa['commandParams'][0x0]['startIndex'])};}return _0x22ad3c;});}['_getTranslationKeyForListStyle'](_0x3cfe54){return'ELEMENT_'+function(_0x1f5262){if(Se['includes'](_0x1f5262))return'bulleted';if(_e['includes'](_0x1f5262))return'numbered';return null;}(_0x3cfe54)['toUpperCase']()+'_LIST_'+_0x3cfe54['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x28b250{['afterInit'](){const _0x1eb345=this['editor'];_0x1eb345['commands']['get']('emoji')&&_0x1eb345['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Q extends _0x28b250{static get['requires'](){return[_0x242bbd];}['init'](){const _0x504e9f=this['editor'],_0x50930e=_0x504e9f['plugins']['get']('TrackChangesEditing'),_0x2b81cd=_0x504e9f['commands']['get']('enter');_0x50930e['enableCommand']('enter',()=>{_0x504e9f['model']['change'](_0x2658e3=>{const _0x15c531=_0x504e9f['model']['document']['selection'],_0x493e26=_0x15c531['getFirstPosition'](),_0x2c2b7f=_0xc2db3f['fromRange'](_0x15c531['getFirstRange']());if(_0x2b81cd['enterBlock'](_0x2658e3)){const _0x48cbba=_0x504e9f['model']['createPositionAt'](_0x493e26['parent']['nextSibling'],0x0),_0x19ed64=_0x2658e3['createRange'](_0x493e26,_0x48cbba);_0x50930e['markInsertion'](_0x19ed64);}else _0x2658e3['setSelection'](_0x2658e3['createRange'](_0x2c2b7f['end']));_0x2c2b7f['detach'](),_0x2b81cd['fire']('afterExecute',{'writer':_0x2658e3});});}),_0x504e9f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x504e9f,'split'),{'priority':'high'}),_0x504e9f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1d880c,_0x1db5c1,_0x563eee)=>{const _0x4cc0e3=_0x563eee['mapper']['markerNameToElements'](_0x1db5c1['markerName']);if(_0x4cc0e3){for(const _0xf4c0c of _0x4cc0e3)_0xf4c0c['hasClass']('ck-suggestion-marker-split')&&(_0x563eee['mapper']['unbindElementFromMarkerName'](_0xf4c0c,_0x1db5c1['markerName']),_0x563eee['writer']['remove'](_0xf4c0c));}},{'priority':'high'}),_0x504e9f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x54899b,_0xeab2b6,_0xf29999)=>{_0xf29999['options']['showSuggestionHighlights']&&Fe(_0x504e9f,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x54899b,_0xeab2b6,_0xf29999);},{'priority':'high'});}}class X extends _0x28b250{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x122e72=this['editor']['plugins']['get']('TrackChangesEditing');_0x122e72['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x122e72['enableCommand']('findNext'),_0x122e72['enableCommand']('findPrevious'),_0x122e72['enableCommand']('replace'),_0x122e72['enableCommand']('replaceAll');}['handleFindCommand'](_0x476dc5,_0x37425c,_0x3f98c4={}){const _0x3e3279=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x476dc5(_0x2758a4=>{let _0x1fd71b=('string'==typeof _0x37425c?_0x3e3279['findByTextCallback'](_0x37425c,_0x3f98c4):_0x37425c)(_0x2758a4);Array['isArray'](_0x1fd71b)&&(_0x1fd71b={'results':_0x1fd71b,'searchText':'string'==typeof _0x37425c?_0x37425c:''});const _0x4d73af=_0x1fd71b['results']['filter'](_0x3af71e=>!0x1===this['_isInDeletionRange'](_0x3af71e,_0x2758a4['item']));return{..._0x1fd71b,'results':_0x4d73af};},_0x3f98c4);}['_isInDeletionRange'](_0x58781c,_0x4f09c5){const _0x348ec3=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f09c5,_0x58781c['start']),this['editor']['model']['createPositionAt'](_0x4f09c5,_0x58781c['end']));for(const _0x1edc98 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x348ec3['getIntersection'](_0x1edc98['getRange']()))return!0x0;return!0x1;}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x28b250{['afterInit'](){const _0x246cfe=this['editor']['locale'],_0x3800fb=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5bf1f5,commandName:_0x195335}of no)this['editor']['plugins']['has'](_0x5bf1f5)&&(_0x3800fb['enableDefaultAttributesIntegration'](_0x195335),_0x3800fb['registerInlineAttribute'](_0x195335));_0x3800fb['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x246cfe,'FORMAT_FONT_SIZE')),_0x3800fb['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x246cfe,'FORMAT_FONT_FAMILY')),_0x3800fb['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x246cfe,'FORMAT_FONT_COLOR')),_0x3800fb['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x246cfe,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21e916=this['editor'],_0x53b08b=_0x21e916['locale'];_0x21e916['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d1114=>{const _0x533f29=_0x53b08b['t'];if('formatInline'!=_0x1d1114['type'])return;const {data:_0x4339c2}=_0x1d1114;if(null!=_0x4339c2){if('fontSize'==_0x4339c2['commandName']){const _0x3e918b=_0x4339c2['commandParams'][0x0]['value'];if(_0x3e918b){const _0x1e0bfe=_0x533f29(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3ba881=>_0x3ba881['model']==_0x3e918b)['title'])['toLowerCase']();return{'type':'format','content':o(_0x53b08b,'*Set\x20font\x20size:*\x20%0',_0x1e0bfe)};}return{'type':'format','content':o(_0x53b08b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4339c2['commandName']){const _0x411b85=_0x4339c2['commandParams'][0x0]['value'];return _0x411b85?{'type':'format','content':o(_0x53b08b,'*Set\x20font\x20family:*\x20%0',_0x411b85)}:{'type':'format','content':o(_0x53b08b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4339c2['commandName']){const _0x7ae0e8=_0x4339c2['commandParams'][0x0]['value'];if(_0x7ae0e8){const _0x537b5b=to(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5e6774=>_0x5e6774['model']==_0x7ae0e8);let _0x10bf5c=_0x7ae0e8,_0x1401fb='';return _0x537b5b&&(_0x10bf5c=_0x537b5b['label'],_0x1401fb=_0x533f29(_0x10bf5c)['toLowerCase']()),{'type':'format','content':o(_0x53b08b,'*Set\x20font\x20color:*\x20%0',_0x1401fb)['trim'](),'color':{'value':_0x7ae0e8,'title':_0x1401fb||_0x10bf5c}};}return{'type':'format','content':o(_0x53b08b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4339c2['commandName']){const _0x13a367=_0x4339c2['commandParams'][0x0]['value'];if(_0x13a367){const _0x18be71=to(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x10d786=>_0x10d786['model']==_0x13a367);let _0x4f7f4d=_0x13a367,_0x5cd6a7='';return _0x18be71&&(_0x4f7f4d=_0x18be71['label'],_0x5cd6a7=_0x533f29(_0x4f7f4d)['toLowerCase']()),{'type':'format','content':o(_0x53b08b,'*Set\x20font\x20background\x20color:*\x20%0',_0x5cd6a7)['trim'](),'color':{'value':_0x13a367,'title':_0x5cd6a7||_0x4f7f4d}};}return{'type':'format','content':o(_0x53b08b,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x28b250{['afterInit'](){const _0x3b3236=this['editor'],_0x32d36c=_0x3b3236['plugins']['get']('TrackChangesEditing'),_0x42f33b=_0x3b3236['commands']['get']('copyFormat'),_0xc5a3ee=_0x3b3236['commands']['get']('pasteFormat');_0x42f33b&&_0xc5a3ee&&(_0x32d36c['enableDefaultAttributesIntegration']('pasteFormat'),_0x32d36c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x480389=this['editor'],_0x3a972c=_0x480389['locale'];_0x480389['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a72b6=>{if('formatBlock'!=_0x4a72b6['type']&&'formatInline'!=_0x4a72b6['type'])return;const {data:_0x17453d}=_0x4a72b6;if(_0x17453d&&'pasteFormat'===_0x17453d['commandName']){const _0x573a5e=[],_0x1e1e68=_0x17453d['commandParams'][0x0];for(const [_0x100c47,_0xa1e276]of Object['entries'](_0x1e1e68))_0x573a5e['push'](ro(_0x480389,_0x100c47,_0xa1e276));return _0x573a5e['length']?{'type':'format','content':o(_0x3a972c,'*Set\x20format\x20to:*\x20%0',_0x573a5e['join'](',\x20'))}:{'type':'format','content':o(_0x3a972c,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x27d67b,_0x332c11,_0x5c3e42){const _0x35b582=_0x27d67b['locale']['t'],_0x2ffdbd=_0x332c11['split'](/(?=[A-Z])/)['join']('\x20'),_0x2264cb=_0x35b582(_0x2ffdbd['charAt'](0x0)['toUpperCase']()+_0x2ffdbd['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5c3e42)return _0x2264cb;if('fontColor'===_0x332c11||'fontBackgroundColor'===_0x332c11){const _0x38ef17=to(_0x27d67b['config']['get']('fontColor.colors'))['find'](_0x122a8c=>_0x122a8c['model']==_0x5c3e42);return _0x2264cb+'\x20('+(_0x38ef17?_0x35b582(_0x38ef17['label'])['toLowerCase']():_0x5c3e42)+')';}if('fontSize'===_0x332c11&&isNaN(parseFloat(_0x5c3e42))){const _0x5386f1=_0x27d67b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x27d67b['config']['get']('fontSize.options'))['find'](_0x118837=>_0x118837['model']==_0x5c3e42);return _0x2264cb+'\x20('+(_0x5386f1?_0x35b582(_0x5386f1['title'])['toLowerCase']():_0x5c3e42)+')';}return _0x2264cb+'\x20('+_0x5c3e42+')';}class tt extends _0x28b250{['_headingOptions'];['afterInit'](){const _0x5f127f=this['editor'];if(!_0x5f127f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5f127f['config']['get']('heading.options');const _0x4b26e9=_0x5f127f['locale'],_0xafab8b=_0x5f127f['plugins']['get']('TrackChangesEditing');_0xafab8b['enableDefaultAttributesIntegration']('heading');for(const _0x41e281 of this['_headingOptions'])'paragraph'!=_0x41e281['model']&&_0xafab8b['descriptionFactory']['registerElementLabel'](_0x41e281['model'],_0x1afe08=>{const _0x2dc2c0=this['_getHeadingLevel'](_0x41e281['model']);return null!==_0x2dc2c0?_0x5be7c1(_0x1afe08,_0x2dc2c0):_0x164549(_0x1afe08,_0x41e281['title']);});function _0x5be7c1(_0x5cb076,_0x327d7d){return o(_0x4b26e9,'ELEMENT_HEADING',[_0x5cb076,_0x327d7d]);}function _0x164549(_0x5e00ba,_0x55da18){return o(_0x4b26e9,'ELEMENT_HEADING_CUSTOM',[_0x5e00ba,_0x55da18]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ce038=this['editor'],_0x471b0b=_0x5ce038['locale'];function _0x11615d(_0x36589d,_0x404672){return o(_0x471b0b,'ELEMENT_HEADING_CUSTOM',[_0x36589d,_0x404672]);}_0x5ce038['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53191d=>{if('formatBlock'!=_0x53191d['type'])return;const {data:_0x8e546d}=_0x53191d;if(_0x8e546d&&'heading'==_0x8e546d['commandName']){const _0x76301b=_0x8e546d['commandParams'][0x0]['value'],_0xa6b41e=this['_getHeadingLevel'](_0x76301b);if(null!==_0xa6b41e)return{'type':'format','content':o(_0x471b0b,'*Change\x20to:*\x20%0',(_0x218ccb=0x1,_0x23e4c5=_0xa6b41e,o(_0x471b0b,'ELEMENT_HEADING',[_0x218ccb,_0x23e4c5])))};const _0x32e393=this['_headingOptions']['find'](_0x4995ed=>_0x4995ed['model']===_0x76301b)['title'];return{'type':'format','content':o(_0x471b0b,'*Change\x20to:*\x20%0',_0x11615d(0x1,_0x32e393))};}var _0x218ccb,_0x23e4c5;});}['_getHeadingLevel'](_0x198640){const _0x138aa1=_0x198640['match'](/^heading(\d+)/);if(_0x138aa1)return _0x138aa1[0x1];const _0x34a6f6=this['_headingOptions']?.['find'](_0x1d3ac2=>_0x1d3ac2['model']==_0x198640);if(_0x34a6f6&&_0x34a6f6['view']){const _0x5629a8=_0x34a6f6['view'],_0x4aa9d2=(_0x5629a8['name']??_0x5629a8)['match'](/^h(\d+)/);if(_0x4aa9d2)return _0x4aa9d2[0x1];}return null;}}class it extends _0x28b250{['afterInit'](){const _0x1a3174=this['editor'];if(!_0x1a3174['plugins']['has']('HighlightEditing'))return;const _0x1dd600=_0x1a3174['plugins']['get']('TrackChangesEditing'),_0x22b209=_0x1a3174['locale'];_0x1dd600['enableDefaultAttributesIntegration']('highlight'),_0x1dd600['registerInlineAttribute']('highlight'),_0x1dd600['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x22b209,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x148612=this['editor'],_0x73f1c2=_0x148612['locale'];_0x148612['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e023e=>{if('formatInline'!=_0x4e023e['type'])return;const {data:_0x47dded}=_0x4e023e;if(_0x47dded&&'highlight'==_0x47dded['commandName']){const _0x5b15a2=_0x73f1c2['t'],_0x4eda42=_0x47dded['commandParams'][0x0]['value'];if(_0x4eda42){const _0x278161=_0x148612['config']['get']('highlight.options')['find'](_0x22515c=>_0x22515c['model']==_0x4eda42),_0x22d1d1=_0x5b15a2(_0x278161['title'])['toLowerCase']();return{'type':'format','content':o(_0x73f1c2,'*Set\x20highlight:*\x20%0',_0x22d1d1),'color':{'value':_0x278161['color'],'title':_0x278161['title']}};}return{'type':'format','content':o(_0x73f1c2,'*Remove\x20highlight*',o(_0x73f1c2,'FORMAT_HIGHLIGHT'))};}});}}class nt extends _0x28b250{['afterInit'](){const _0x3cb028=this['editor'];if(!_0x3cb028['plugins']['has']('HorizontalLineEditing'))return;_0x3cb028['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x192873=_0x3cb028['plugins']['get']('TrackChangesEditing'),_0x38a555=_0x3cb028['locale'];_0x192873['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3c9b9e=>o(_0x38a555,'ELEMENT_HORIZONTAL_LINE',_0x3c9b9e)),_0x3cb028['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x14d59b,{writer:_0x103dba,options:_0x1d4875})=>{if(!_0x1d4875['showSuggestionHighlights'])return null;const _0x2ce26f=_0x103dba['createContainerElement']('div'),_0x531fa2=_0x103dba['createEmptyElement']('hr');return _0x103dba['addClass']('ck-horizontal-line',_0x2ce26f),_0x103dba['insert'](_0x103dba['createPositionAt'](_0x2ce26f,0x0),_0x531fa2),_0x2ce26f;},'converterPriority':'high'});}}class et extends _0x28b250{['afterInit'](){const _0x2bf621=this['editor'];if(!_0x2bf621['plugins']['has']('HtmlEmbed'))return;const _0x25b6bb=_0x2bf621['plugins']['get']('TrackChangesEditing'),_0x154788=_0x2bf621['locale'];_0x25b6bb['descriptionFactory']['registerElementLabel']('rawHtml',_0x18c0cd=>o(_0x154788,'ELEMENT_HTML_EMBED',_0x18c0cd)),_0x25b6bb['enableDefaultAttributesIntegration']('htmlEmbed'),_0x25b6bb['registerBlockAttribute']('value'),_0x25b6bb['descriptionFactory']['registerDescriptionCallback'](_0x1e49ae=>{if('attribute'!=_0x1e49ae['type'])return;const {data:_0x388d8b}=_0x1e49ae;if(_0x388d8b&&'value'==_0x388d8b['key']&&_0x1e49ae['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x22f6db=o(_0x154788,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x154788,'*Change\x20%0\x20content*',_0x22f6db)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1219a7=this['editor'],_0x1837ea=_0x1219a7['locale'];_0x1219a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b5cff=>{if('formatBlock'!=_0x5b5cff['type'])return;const {data:_0x5abad8}=_0x5b5cff;if(_0x5abad8&&'htmlEmbed'==_0x5abad8['commandName']){const _0x26f017=o(_0x1837ea,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1837ea,'*Change\x20%0\x20content*',_0x26f017)};}});}}class st extends _0x28b250{['afterInit'](){const _0xc28387=this['editor'];if(!_0xc28387['plugins']['has']('ImageEditing'))return;const _0x25eb8d=_0xc28387['plugins']['get']('TrackChangesEditing'),_0x55d200=_0xc28387['plugins']['get']('ImageUtils'),_0x3e3641=_0xc28387['locale'];_0x25eb8d['enableCommand']('insertImage'),_0x25eb8d['descriptionFactory']['registerElementLabel']('imageBlock',_0x5163c0=>o(_0x3e3641,'ELEMENT_IMAGE',_0x5163c0)),_0x25eb8d['descriptionFactory']['registerElementLabel']('imageInline',_0x174a4d=>o(_0x3e3641,'ELEMENT_INLINE_IMAGE',_0x174a4d)),_0x25eb8d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3e3641,'ELEMENT_CAPTION')),_0xc28387['plugins']['has']('ImageUploadEditing')&&_0x25eb8d['enableCommand']('uploadImage'),_0xc28387['plugins']['has']('ImageBlockEditing')&&_0xc28387['plugins']['has']('ImageInlineEditing')&&(_0x25eb8d['enableCommand']('imageTypeInline',(_0x45af91,_0x59e44c)=>{const _0x3180ea=_0x55d200['getClosestSelectedImageElement'](_0xc28387['model']['document']['selection']);_0xc28387['model']['change'](()=>{_0x25eb8d['markBlockFormat'](_0x3180ea,{'commandName':'imageTypeInline','commandParams':[_0x59e44c]},[],'convertBlockImageToInline');});}),_0x25eb8d['enableCommand']('imageTypeBlock',(_0x1656f3,_0x41a0c2)=>{_0xc28387['model']['change'](_0xd37d14=>{let _0x3541b6=_0x55d200['getClosestSelectedImageElement'](_0xc28387['model']['document']['selection']),_0x521af9=_0xd37d14['createRangeOn'](_0x3541b6);const _0x59beab=_0x30cdb6['fromPosition'](_0x521af9['start'],'toPrevious'),_0x9affc4=_0x30cdb6['fromPosition'](_0x521af9['end'],'toNext');_0x25eb8d['forceDefaultExecution'](()=>_0x1656f3(_0x41a0c2)),_0x3541b6=_0x55d200['getClosestSelectedImageElement'](_0xc28387['model']['document']['selection']),_0x521af9=_0xd37d14['createRangeOn'](_0x3541b6);const _0x4452bb=_0xd37d14['createRange'](_0x59beab,_0x9affc4);_0x59beab['detach'](),_0x9affc4['detach'](),_0x25eb8d['markBlockFormat'](_0x3541b6,{'commandName':'imageTypeInline','commandParams':[_0x41a0c2]},[],'convertInlineImageToBlock'),_0x4452bb['start']['isBefore'](_0x521af9['start'])&&_0x25eb8d['markInsertion'](_0xd37d14['createRange'](_0x4452bb['start'],_0x521af9['start']),'convertInlineImageToBlock'),_0x521af9['end']['isBefore'](_0x4452bb['end'])&&_0x25eb8d['markInsertion'](_0xd37d14['createRange'](_0x521af9['end'],_0x4452bb['end']),'convertInlineImageToBlock');});}),_0x25eb8d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x25eb8d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x25eb8d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x25eb8d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x25eb8d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x25eb8d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xc25858])=>{const _0x3f9afe=_0x25eb8d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x24a4cc=_0xc25858['start'],_0x18e891=_0xc25858['end'];const _0x4380f0=_0xc28387['model']['schema']['getNearestSelectionRange'](_0x24a4cc,'backward'),_0x1d1288=_0xc28387['model']['schema']['getNearestSelectionRange'](_0x18e891,'forward');_0x4380f0['isCollapsed']&&(_0x24a4cc=_0x4380f0['start']),_0x1d1288['isCollapsed']&&(_0x18e891=_0x1d1288['end']),_0x3f9afe([_0xc28387['model']['createRange'](_0x24a4cc,_0x18e891)]);}),_0x25eb8d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x59bf45),_0x25eb8d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x59bf45)),_0xc28387['plugins']['has']('ImageCaptionEditing')&&(_0x25eb8d['enableCommand']('toggleImageCaption',(_0x643318,_0x8db4bb)=>{const _0x44fec5=_0xc28387['plugins']['get']('ImageCaptionUtils');let _0x3e014f=_0x55d200['getClosestSelectedImageElement'](_0xc28387['model']['document']['selection']),_0xf3a41c=_0x44fec5['getCaptionFromImageModelElement'](_0x3e014f);_0xc28387['model']['change'](()=>{if(_0xf3a41c)return void _0x25eb8d['markDeletion'](_0xc28387['model']['createRangeOn'](_0xf3a41c));const _0x3bdd14=_0x55d200['isBlockImage'](_0x3e014f);_0x643318(_0x8db4bb),_0x3e014f=_0x55d200['getClosestSelectedImageElement'](_0xc28387['model']['document']['selection']),_0xf3a41c=_0x44fec5['getCaptionFromImageModelElement'](_0x3e014f),_0x25eb8d['markInsertion'](_0xc28387['model']['createRangeOn'](_0xf3a41c),_0x3bdd14?null:'imageCaption');});}),_0x25eb8d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x59bf45));const _0x441b03=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2f419c(_0xc669eb,_0x1fff75){const _0x267683=_0x441b03['findIndex'](({type:_0x3b1782,subType:_0x55cd2d})=>_0xc669eb['type']==_0x3b1782&&_0xc669eb['subType']==_0x55cd2d),_0x304986=_0x441b03['findIndex'](({type:_0x311074,subType:_0xedfb07})=>_0x1fff75['type']==_0x311074&&_0x1fff75['subType']==_0xedfb07);if(_0x267683<0x0||_0x304986<0x0)return!0x1;const _0x573d69=_0xc669eb['getFirstRange'](),_0x4461bf=_0x1fff75['getFirstRange']();if((0x0==_0x267683||0x1==_0x267683)&&0x2==_0x304986&&_0x573d69['isIntersecting'](_0x4461bf))return!0x0;if(0x2==_0x267683&&0x3==_0x304986){const _0x37f155=_0x25eb8d['_findSuggestions'](_0x573d69,'insertion')['filter'](({suggestion:_0x3ccff1,meta:_0x43a56d})=>_0x43a56d['isOwn']&&'convertInlineImageToBlock'==_0x3ccff1['subType']);if(_0x37f155['length']>0x1&&_0x4461bf['end']['isEqual'](_0x573d69['start']))return!0x0;if(0x1==_0x37f155['length']&&(_0x573d69['start']['isEqual'](_0x4461bf['end'])||_0x573d69['end']['isEqual'](_0x4461bf['start'])))return!0x0;}if(0x3==_0x267683&&0x3==_0x304986&&_0x573d69['start']['isBefore'](_0x4461bf['start'])){const _0x38420d=_0x573d69['end']['nodeAfter'],_0x3c3a02=_0x4461bf['start']['nodeBefore'];return _0x55d200['isBlockImage'](_0x38420d)&&_0x38420d===_0x3c3a02;}return!0x1;}function _0x59bf45(_0x524d27,_0x303561){return _0x2f419c(_0x524d27,_0x303561)?[_0x524d27,_0x303561]:_0x2f419c(_0x303561,_0x524d27)?[_0x303561,_0x524d27]:null;}_0xc28387['plugins']['has']('ImageResize')&&(_0x25eb8d['enableDefaultAttributesIntegration']('resizeImage'),_0x25eb8d['registerBlockAttribute']('resizedWidth'),_0x25eb8d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3e3641,'FORMAT_IMAGE_SIZE'))),_0xc28387['plugins']['has']('ImageTextAlternativeEditing')&&(_0x25eb8d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x25eb8d['registerBlockAttribute']('alt')),_0xc28387['plugins']['has']('PictureEditing')&&(_0x25eb8d['registerBlockAttribute']('sources'),_0x25eb8d['descriptionFactory']['registerDescriptionCallback'](_0x31fa74=>{if('attribute'!=_0x31fa74['type'])return;const {data:_0x4a8b64}=_0x31fa74;return _0x4a8b64&&'sources'==_0x4a8b64['key']?{'type':'format','content':''}:void 0x0;})),_0xc28387['plugins']['has']('ImageSizeAttributes')&&(_0x25eb8d['registerBlockAttribute']('width'),_0x25eb8d['registerBlockAttribute']('height'),_0x25eb8d['descriptionFactory']['registerDescriptionCallback'](_0x5dd80a=>{if('attribute'!=_0x5dd80a['type'])return;const {data:_0x444b0e}=_0x5dd80a;return!_0x444b0e||'width'!=_0x444b0e['key']&&'height'!=_0x444b0e['key']?void 0x0:{'type':'format','content':''};})),_0x25eb8d['descriptionFactory']['registerDescriptionCallback'](_0x397c55=>{if(!!_0x441b03['find'](({type:_0x45c737,subType:_0x51dcce})=>_0x397c55['type']==_0x45c737&&_0x397c55['subType']==_0x51dcce))return _0x397c55['previous']?{}:void 0x0;}),_0x25eb8d['descriptionFactory']['registerDescriptionCallback'](_0x63d94f=>{if('insertion'==_0x63d94f['type']||'deletion'==_0x63d94f['type']){const _0x510ac2=_0x63d94f['getContainedElement']();if(_0x510ac2&&_0x510ac2['is']('element','caption'))return{'type':'insertion'==_0x63d94f['type']?'addObject':'removeObject','element':_0x510ac2,'quantity':0x1};}}),_0x25eb8d['descriptionFactory']['registerDescriptionCallback'](_0x3424ee=>'formatBlock'==_0x3424ee['type']&&'convertInlineImageToBlock'==_0x3424ee['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3424ee['type']&&'convertBlockImageToInline'==_0x3424ee['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x25eb8d['descriptionFactory']['registerDescriptionCallback'](_0x3e361c=>{if('attribute'!=_0x3e361c['type'])return;const {data:_0x3d0b1d}=_0x3e361c;if(!_0x3d0b1d||'alt'!=_0x3d0b1d['key'])return;const _0x22a17e=_0x3d0b1d['newValue'];return _0x22a17e?{'type':'format','content':o(_0x3e3641,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x22a17e+'\x22')}:{'type':'format','content':o(_0x3e3641,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x491270=this['editor'],_0x1668af=_0x491270['locale'];_0x491270['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a335a=>{if('formatBlock'!=_0x5a335a['type']&&'formatInline'!=_0x5a335a['type'])return;const {data:_0x11170b}=_0x5a335a;if(_0x11170b){if('imageTextAlternative'==_0x11170b['commandName']){const _0x3915da=_0x11170b['commandParams'][0x0]['newValue'];return _0x3915da?{'type':'format','content':o(_0x1668af,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3915da+'\x22')}:{'type':'format','content':o(_0x1668af,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x11170b['commandName']){const _0x3ecd40=_0x11170b['commandParams'][0x0]['width'];return _0x3ecd40?{'type':'format','content':o(_0x1668af,'*Set\x20image\x20width:*\x20%0',_0x3ecd40)}:{'type':'format','content':o(_0x1668af,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x28b250{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3b7ed3=this['editor']['locale'],_0x1507c8=this['editor']['plugins']['get']('TrackChangesEditing');_0x1507c8['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1507c8['registerBlockAttribute']('src'),_0x1507c8['descriptionFactory']['registerDescriptionCallback'](_0x594769=>{if('attribute'!=_0x594769['type'])return;const {data:_0x5157f7}=_0x594769;return _0x5157f7&&'src'==_0x5157f7['key']?_0x5157f7['newValue']&&_0x5157f7['oldValue']?{'type':'format','content':o(_0x3b7ed3,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xeca685=this['editor']['plugins']['get']('TrackChangesEditing');_0xeca685['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xeca685['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xeca685['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xeca685['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31fa68=this['editor'],_0x2ed856=_0x31fa68['locale'];_0x31fa68['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40a128=>{if('formatBlock'!=_0x40a128['type']&&'formatInline'!=_0x40a128['type'])return;const {data:_0x229bea}=_0x40a128;if(!_0x229bea||'replaceImageSource'!=_0x229bea['commandName'])return;return{'type':'format','content':o(_0x2ed856,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x28b250{['afterInit'](){const _0x473101=this['editor'];if(!_0x473101['plugins']['has']('ImageStyleEditing'))return;const _0x759f7e=_0x473101['plugins']['get']('TrackChangesEditing'),_0x1b8596=_0x473101['plugins']['get']('ImageUtils'),_0x253c86={};_0x759f7e['enableCommand']('imageStyle',(_0x4f76e8,_0x1d5c68)=>{const _0x421bca=_0x473101['plugins']['get']('Users')['me'],_0x549a50=_0x473101['commands']['get']('imageStyle');let _0x564536=_0x1b8596['getClosestSelectedImageElement'](_0x473101['model']['document']['selection']),_0xb083e5=_0x473101['model']['createRangeOn'](_0x564536),_0x2165e4=_0x549a50['value'];if(_0x2165e4==_0x1d5c68['value'])return;const _0x2b2a74={'commandName':'imageStyle','commandParams':[_0x1d5c68],'formatGroupId':_0x370ed3()};_0x473101['model']['change'](()=>{if(_0x759f7e['getSuggestions']()['filter'](_0x1f9dea=>_0x1f9dea['isInContent']&&_0x421bca==_0x1f9dea['author']&&('formatBlock'==_0x1f9dea['type']||'formatInline'==_0x1f9dea['type'])&&('imageStylePreApply'==_0x1f9dea['subType']||'imageStylePostApply'==_0x1f9dea['subType'])&&_0x1f9dea['getFirstRange']()['isEqual'](_0xb083e5))['forEach'](_0x337286=>_0x759f7e['discardSuggestion'](_0x337286['head'])),_0x564536=_0x1b8596['getClosestSelectedImageElement'](_0x473101['model']['document']['selection']),_0xb083e5=_0x473101['model']['createRangeOn'](_0x564536),_0x549a50['refresh'](),_0x473101['commands']['get']('imageTypeInline')['refresh'](),_0x473101['commands']['get']('imageTypeBlock')['refresh'](),_0x2165e4=_0x549a50['value'],_0x2165e4!=_0x1d5c68['value'])return _0x1b8596['isInlineImage'](_0x564536)&&_0x549a50['shouldConvertImageType'](_0x1d5c68['value'],_0x564536)?(_0x4f76e8({..._0x1d5c68,'setImageSizes':!0x1}),_0x564536=_0x1b8596['getClosestSelectedImageElement'](_0x473101['model']['document']['selection']),void _0x759f7e['markBlockFormat'](_0x564536,{..._0x2b2a74,'commandReversedParams':[{'value':_0x2165e4||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1b8596['isBlockImage'](_0x564536)?_0x759f7e['markBlockFormat'](_0x564536,_0x2b2a74,[],'imageStylePostApply'):_0x759f7e['markInlineFormat'](_0xb083e5,_0x2b2a74,'imageStylePostApply'));});});for(const _0x2a9198 of _0x473101['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x253c86[_0x2a9198['name']]=_0x2a9198['title']['toLowerCase']();_0x759f7e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x759f7e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x759f7e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x759f7e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4b9ac4])=>{_0x1b8596['setImageNaturalSizeAttributes'](_0x4b9ac4['getContainedElement']());}),_0x759f7e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x29fe23,_0x21cb1d)=>{_0x759f7e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x29fe23,{'commandName':_0x21cb1d['commandName'],'commandParams':_0x21cb1d['commandReversedParams']});}),_0x759f7e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4ec3b1,_0x4cf52d){if(_0xb9ddcc(_0x4ec3b1,_0x4cf52d))return[_0x4ec3b1,_0x4cf52d];if(_0xb9ddcc(_0x4cf52d,_0x4ec3b1))return[_0x4cf52d,_0x4ec3b1];return null;});const _0x41332b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xb9ddcc(_0x3d5804,_0x5b626f){const _0x2ed07c=_0x41332b['findIndex'](({type:_0x320923,subType:_0x5a6d20})=>_0x3d5804['type']==_0x320923&&_0x3d5804['subType']==_0x5a6d20),_0x2bbee2=_0x41332b['findIndex'](({type:_0x42b61f,subType:_0x4d04d0})=>_0x5b626f['type']==_0x42b61f&&_0x5b626f['subType']==_0x4d04d0);if(_0x2ed07c<0x0||_0x2bbee2<0x0)return!0x1;const _0x87202f=_0x3d5804['getFirstRange'](),_0x19d8d=_0x5b626f['getFirstRange']();if((0x0==_0x2ed07c||0x1==_0x2ed07c)&&0x2==_0x2bbee2&&_0x87202f['isIntersecting'](_0x19d8d))return!0x0;if(0x2==_0x2ed07c&&0x3==_0x2bbee2){const _0x3ad0ec=_0x759f7e['_findSuggestions'](_0x87202f,'insertion')['filter'](({suggestion:_0x1068c1,meta:_0x17163f})=>_0x17163f['isOwn']&&'convertInlineImageToBlock'==_0x1068c1['subType']);if(_0x3ad0ec['length']>0x1&&_0x19d8d['end']['isEqual'](_0x87202f['start']))return!0x0;if(0x1==_0x3ad0ec['length']&&(_0x87202f['start']['isEqual'](_0x19d8d['end'])||_0x87202f['end']['isEqual'](_0x19d8d['start'])))return!0x0;}if(0x3==_0x2ed07c&&0x3==_0x2bbee2&&_0x87202f['start']['isBefore'](_0x19d8d['start'])){const _0x2d02a8=_0x87202f['end']['nodeAfter'],_0x2ec4f5=_0x19d8d['start']['nodeBefore'];return _0x1b8596['isBlockImage'](_0x2d02a8)&&_0x2d02a8===_0x2ec4f5;}return!0x1;}_0x473101['model']['document']['registerPostFixer'](()=>{let _0x2f1900=!0x1;const _0xb2f7c6=Array['from'](_0x473101['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a7183,data:_0x3d814e}of _0xb2f7c6){const {group:_0x5946ff,type:_0x2d5123,subType:_0x34305d,id:_0x5e4463}=_0x759f7e['_splitMarkerName'](_0x2a7183);if('suggestion'==_0x5946ff&&_0x759f7e['hasSuggestion'](_0x5e4463)){if('formatBlock'==_0x2d5123&&('imageStylePreApply'==_0x34305d||'imageStylePostApply'==_0x34305d)){const _0x1630c9=_0x759f7e['getSuggestion'](_0x5e4463);if(_0x3d814e['newRange']){const _0x3cc882=_0x1630c9['getFirstRange']()['getContainedElement']();if(_0x1b8596['isBlockImage'](_0x3cc882))continue;_0x759f7e['discardSuggestion'](_0x1630c9),_0x2f1900=!0x0;}}if('insertion'==_0x2d5123&&'imageCaption'==_0x34305d&&!_0x3d814e['newRange']){const _0x12ce0e=_0x759f7e['getSuggestion'](_0x5e4463);_0x12ce0e['next']&&_0x12ce0e['next']['isInContent']&&(_0x759f7e['discardSuggestion'](_0x12ce0e['next']),_0x2f1900=!0x0);}}}return _0x2f1900;}),this['_registerLegacyDescription'](_0x253c86);}['_registerLegacyDescription'](_0x3bf0c7){const _0x20451e=this['editor'],_0x1b6bcd=_0x20451e['locale'];_0x20451e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1280fe=>{if('formatBlock'!=_0x1280fe['type']&&'formatInline'!=_0x1280fe['type'])return;const {data:_0x2e0527}=_0x1280fe;if(!_0x2e0527||'imageStyle'!=_0x2e0527['commandName'])return;const _0x5335b6=_0x2e0527['commandParams'][0x0]['value'];return _0x492576('side'===_0x5335b6?o(_0x1b6bcd,'FORMAT_SIDE_IMAGE'):_0x3bf0c7[_0x5335b6]||_0x5335b6);function _0x492576(_0x89d390){return{'type':'format','content':o(_0x1b6bcd,'*Format:*\x20%0',_0x89d390)};}});}}class at extends _0x28b250{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3bbe81){super(_0x3bbe81),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3b9d30=this['editor'],_0x9b254=_0x3b9d30['commands']['get']('importWord'),_0x1c0ccd=_0x3b9d30['commands']['get']('trackChanges');_0x9b254&&(_0x9b254['on']('execute',(_0x5c6c85,[,_0x10536a])=>{this['_trackChangesValueDuringImport']=_0x1c0ccd['value'],_0x10536a['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x9b254,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x9b254,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1c0ccd['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3b9d30['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3dbd7d,_0x567a4f){const {suggestions:_0x17da43}=_0x567a4f,_0x5a4b6c=this['editor']['commands']['get']('trackChanges'),_0x58068d=_0x5a4b6c['value'];this['_trackChangesValueDuringImport']!==_0x58068d&&(_0x5a4b6c['execute'](),this['_trackChangesExecuted']=!0x0),_0x17da43&&_0x17da43['forEach'](({id:_0x3bc8dd,type:_0xae69e1,author:_0x18352d,created_at:_0x20f550})=>{const _0x2f16bd={'id':_0x3bc8dd,'type':_0xae69e1,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x18352d,'createdAt':_0x20f550?new Date(_0x20f550):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2f16bd);});}}class ct extends _0x28b250{['afterInit'](){const _0x2518fb=this['editor'],_0x2e6680=_0x2518fb['plugins']['get']('TrackChangesEditing');if(_0x2518fb['plugins']['has']('IndentEditing')&&(_0x2e6680['enableCommand']('indent'),_0x2e6680['enableCommand']('outdent')),_0x2518fb['plugins']['has']('IndentBlock')){for(const _0x1f1142 of['indentBlock','outdentBlock'])_0x2e6680['enableDefaultAttributesIntegration'](_0x1f1142);}const _0x419597=_0x2518fb['locale'];_0x2e6680['registerBlockAttribute']('blockIndent'),_0x2e6680['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x419597,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39716d=this['editor'],_0x4fccb0=_0x39716d['locale'],_0x3bdeef=_0x39716d['plugins']['get']('TrackChangesEditing');_0x3bdeef['descriptionFactory']['registerDescriptionCallback'](_0x221166=>{if('formatBlock'!=_0x221166['type'])return;const {data:_0x45fa20}=_0x221166;if(!_0x45fa20)return;if('indentBlock'!=_0x45fa20['commandName']&&'outdentBlock'!=_0x45fa20['commandName'])return;const _0x5d0949=_0x221166['getItems']()[0x0],_0x563bcb=_0x3bdeef['descriptionFactory']['getItemLabel'](_0x5d0949);return'indentBlock'==_0x45fa20['commandName']?{'type':'format','content':o(_0x4fccb0,'*Indent:*\x20%0',_0x563bcb)}:'outdentBlock'==_0x45fa20['commandName']?{'type':'format','content':o(_0x4fccb0,'*Outdent:*\x20%0',_0x563bcb)}:void 0x0;});}}class ut extends _0x28b250{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ft extends _0x28b250{['afterInit'](){const _0x4e0b9c=this['editor'];if(!_0x4e0b9c['plugins']['has']('LinkEditing'))return;const _0x4d3fe6=_0x4e0b9c['plugins']['get']('TrackChangesEditing'),_0x3ca90f=_0x4e0b9c['commands']['get']('link');_0x4d3fe6['enableDefaultAttributesIntegration']('link'),_0x4d3fe6['enableDefaultAttributesIntegration']('unlink'),_0x4d3fe6['registerInlineAttribute']('linkHref');for(const _0x2a7799 of _0x3ca90f['manualDecorators'])_0x4d3fe6['registerInlineAttribute'](_0x2a7799['id']),_0x4d3fe6['descriptionFactory']['registerAttributeLabel'](_0x2a7799['id'],'link\x20('+_0x2a7799['label']['toLowerCase']()+')');_0x4d3fe6['descriptionFactory']['registerDescriptionCallback'](_0x5e6cf5=>{if('attribute'!=_0x5e6cf5['type'])return;const {data:_0x43b060}=_0x5e6cf5;if(!_0x43b060||'linkHref'!=_0x43b060['key'])return;const _0x131071=_0x43b060['newValue'],_0x3b80e9=_0x4e0b9c['locale'];return{'type':'format','content':null==_0x131071?o(_0x3b80e9,'*Remove\x20link*'):o(_0x3b80e9,'*Set\x20link:*\x20%0','\x22'+_0x131071+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x276046=this['editor'],_0x2bab53=_0x276046['locale'];_0x276046['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x203f7b=>{if('formatInline'!=_0x203f7b['type'])return;const {data:_0x976251}=_0x203f7b;if(_0x976251){if('link'==_0x976251['commandName']){const _0x3e8a4e=_0x976251['commandParams'][0x0];return{'type':'format','content':o(_0x2bab53,'*Set\x20link:*\x20%0','\x22'+_0x3e8a4e+'\x22')};}return'unlink'==_0x976251['commandName']?{'type':'format','content':o(_0x2bab53,'*Remove\x20link*')}:void 0x0;}});}}class ht extends _0x28b250{['afterInit'](){const _0x552677=this['editor'],_0x47766b=_0x552677['locale'];if(!_0x552677['plugins']['has']('LegacyListEditing'))return;const _0x25af9e=_0x552677['plugins']['get']('TrackChangesEditing'),_0x37ece9=_0x552677['plugins']['has']('LegacyTodoListEditing');function _0x4df840(_0x4f945e){return()=>{const _0xf0b40b=_0x552677['model']['document']['selection'],_0x3198a0=_0x552677['commands']['get'](_0x4f945e);if(_0x3198a0['value'])return void _0x552677['execute']('paragraph',{});const _0x26c466=_0x4f945e['slice'](0x0,-0x4),_0x2bb33b=function(_0x1b8f65,_0x406ea6,_0x4e0a9f){let _0x3c9b71=Array['from'](_0x1b8f65)['filter'](_0x9df6d=>function(_0x33c216,_0x3ab4b3){return _0x3ab4b3['checkChild'](_0x33c216['parent'],'listItem')&&!_0x3ab4b3['isObject'](_0x33c216);}(_0x9df6d,_0x4e0a9f));_0x3c9b71=_0x3c9b71['filter'](_0x2024a6=>!_0x2024a6['is']('element','listItem')||_0x2024a6['getAttribute']('listType')!=_0x406ea6);const _0x7f9e35=new Set();for(const _0x1a91d7 of _0x3c9b71)_0x1a91d7['is']('element','listItem')?_0x7f9e35['add'](Le(_0x1a91d7)):_0x7f9e35['add'](_0x1a91d7);return Array['from'](_0x7f9e35);}(_0xf0b40b['getSelectedBlocks'](),_0x26c466,_0x552677['model']['schema']);_0x552677['model']['change'](()=>{for(const _0x5a99fb of _0x2bb33b)_0x25af9e['markBlockFormat'](_0x5a99fb,{'commandName':_0x4f945e,'commandParams':[{'forceValue':!_0x3198a0['value']}],'formatGroupId':'blockName'},Ee(_0x5a99fb));});};}function _0x5d1cd6(_0x468e52){return()=>{const _0x1f1937=function(_0x37f3b9){let _0x3cebfd=Array['from'](_0x37f3b9);const _0x3180f2=_0x3cebfd['findIndex'](_0x6776d9=>'listItem'!=_0x6776d9['name']);return _0x3180f2>-0x1&&(_0x3cebfd=_0x3cebfd['slice'](0x0,_0x3180f2)),_0x3cebfd;}(_0x552677['model']['document']['selection']['getSelectedBlocks']()),_0x3abfa6=_0x552677['model']['createRange'](_0x552677['model']['createPositionAt'](_0x1f1937[0x0],'before'),_0x552677['model']['createPositionAt'](_0x1f1937[_0x1f1937['length']-0x1],'end'));_0x552677['model']['change'](()=>{_0x25af9e['markBlockFormat'](_0x3abfa6,{'commandName':_0x468e52,'commandParams':[],'formatGroupId':'listIndent'},function(_0x470d80){const _0x172e29=new Set();for(const _0x5c889e of _0x470d80){let _0x46a8e5=_0x5c889e['nextSibling'];for(;_0x46a8e5&&_0x46a8e5['getAttribute']('listIndent')>_0x5c889e['getAttribute']('listIndent');)_0x172e29['add'](_0x46a8e5),_0x46a8e5=_0x46a8e5['nextSibling'];}return Array['from'](_0x172e29);}(_0x1f1937));});};}_0x25af9e['enableCommand']('numberedList',_0x4df840('numberedList')),_0x25af9e['enableCommand']('bulletedList',_0x4df840('bulletedList')),_0x37ece9&&_0x25af9e['enableCommand']('todoList',_0x4df840('todoList')),_0x25af9e['enableCommand']('indentList',_0x5d1cd6('indentList')),_0x25af9e['enableCommand']('outdentList',_0x5d1cd6('outdentList')),_0x37ece9&&_0x25af9e['enableCommand']('checkTodoList',()=>{const _0xdd6aad=_0x552677['commands']['get']('checkTodoList'),_0x40abb7=Array['from'](_0xdd6aad['_selectedElements']);_0x40abb7['filter'](_0x256ed9=>_0x256ed9['getAttribute']('todoListChecked')!=_0xdd6aad['value']),_0x552677['model']['change'](()=>{for(const _0x5d09e7 of _0x40abb7)_0x25af9e['markBlockFormat'](_0x5d09e7,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xdd6aad['value']}]});});}),_0x25af9e['descriptionFactory']['registerElementLabel']('listItem',_0x555fbd=>o(_0x47766b,'ELEMENT_LIST_ITEM',_0x555fbd)),_0x25af9e['descriptionFactory']['registerDescriptionCallback'](_0x4029cc=>{if('formatBlock'!=_0x4029cc['type']&&'formatInline'!=_0x4029cc['type'])return;const {data:_0x58954e}=_0x4029cc;if(_0x58954e){if('numberedList'==_0x58954e['commandName']||'bulletedList'==_0x58954e['commandName']||'todoList'==_0x58954e['commandName'])switch(_0x58954e['commandName']['replace']('List','')){case'bulleted':return _0x598db1(o(_0x47766b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x598db1(o(_0x47766b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x598db1(o(_0x47766b,'ELEMENT_TODO_LIST'));}if('indentList'==_0x58954e['commandName'])return{'type':'format','content':o(_0x47766b,'*Indent:*\x20%0',o(_0x47766b,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x58954e['commandName'])return{'type':'format','content':o(_0x47766b,'*Outdent:*\x20%0',o(_0x47766b,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x58954e['commandName'])return _0x58954e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x47766b,'*Check\x20item*')}:{'type':'format','content':o(_0x47766b,'*Uncheck\x20item*')};}function _0x598db1(_0x50931c){return{'type':'format','content':o(_0x47766b,'*Change\x20to:*\x20%0',_0x50931c)};}});}}function Le(_0x1a4365){const _0x1bd777=_0x1a4365['getAttribute']('listIndent');if(0x0==_0x1bd777)return _0x1a4365;let _0x109875=_0x1a4365;for(;_0x1a4365['previousSibling']&&_0x1a4365['previousSibling']['is']('element','listItem');){const _0x9a574e=_0x1a4365['previousSibling']['getAttribute']('listIndent');if(_0x9a574e==_0x1bd777)_0x109875=_0x1a4365['previousSibling'];else{if(_0x9a574e<_0x1bd777)break;}_0x1a4365=_0x1a4365['previousSibling'];}return _0x109875;}function Ee(_0x48b1b6){const _0x424acf=[];if(_0x48b1b6['is']('element','listItem')&&_0x48b1b6['getAttribute']('listIndent')>0x0){let _0x24f02b=_0x48b1b6['nextSibling'];for(;_0x24f02b&&'listItem'==_0x24f02b['name']&&_0x24f02b['getAttribute']('listIndent')==_0x48b1b6['getAttribute']('listIndent');)_0x424acf['push'](_0x24f02b),_0x24f02b=_0x24f02b['nextSibling'];}return _0x424acf;}class gt extends _0x28b250{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x981be4=this['editor']['config']['get']('list.properties'),_0x1017b8=this['editor']['plugins']['get']('TrackChangesEditing');_0x981be4['styles']&&_0x1017b8['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x981be4['reversed']&&_0x1017b8['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x981be4['startIndex']&&_0x1017b8['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1017b8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x131727,_0x30099e={}){const _0x1e18c4=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb41226=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1e18c4['markMultiRangeBlockFormat'](_0xb41226,{'commandName':'listStyle','commandParams':[{'type':_0x30099e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x38fc66,_0x17c60d={}){const _0x2cc512=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28a624=this['_getSuggestionBlocks'](_0x23e525=>_0x23e525['is']('element','listItem')&&'numbered'===_0x23e525['getAttribute']('listType'));if(_0x28a624['length']<0x1)return;const _0x2ff5b9=_0x28a624['map'](_0x4c53e7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4c53e7,'before'),this['editor']['model']['createPositionAt'](_0x4c53e7,0x0)));this['editor']['model']['change'](()=>{_0x2cc512['markMultiRangeBlockFormat'](_0x2ff5b9,{'commandName':'listReversed','commandParams':[{'reversed':_0x17c60d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5cfaaf,_0x20baa1={}){const _0x274be9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4853ea=this['_getSuggestionBlocks'](_0x1be80e=>_0x1be80e['is']('element','listItem')&&'numbered'===_0x1be80e['getAttribute']('listType'));if(_0x4853ea['length']<0x1)return;const _0x1e1422=_0x4853ea['map'](_0x26d0ae=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x26d0ae,'before'),this['editor']['model']['createPositionAt'](_0x26d0ae,0x0)));this['editor']['model']['change'](()=>{_0x274be9['markMultiRangeBlockFormat'](_0x1e1422,{'commandName':'listStart','commandParams':[{'startIndex':_0x20baa1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x309282){if('formatBlock'!=_0x309282['type']&&'formatInline'!=_0x309282['type'])return;const _0x349e79=this['editor']['locale'],{data:_0x41265b}=_0x309282;if(!_0x41265b)return;let _0xb47a75,_0x1aac1e;switch(_0x41265b['commandName']){case'listStyle':_0xb47a75='*Change\x20to:*\x20%0',_0x1aac1e={'type':'format','content':o(_0x349e79,_0xb47a75,o(_0x349e79,this['_getTranslationKeyForListStyle'](_0x41265b['commandParams'][0x0]['type'])))};break;case'listReversed':_0xb47a75=_0x41265b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1aac1e={'type':'format','content':o(_0x349e79,_0xb47a75)};break;case'listStart':_0xb47a75='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1aac1e={'type':'format','content':o(_0x349e79,_0xb47a75,_0x41265b['commandParams'][0x0]['startIndex'])};}return _0x1aac1e;}['_getSuggestionBlocksForListStyle'](){const _0x1acb9b=this['editor']['plugins']['get']('LegacyListUtils');let _0x155c10=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x155c10[0x0]?.['is']('element','listItem')&&_0x155c10['unshift'](..._0x1acb9b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x155c10[_0x155c10['length']-0x1]?.['is']('element','listItem')&&_0x155c10['push'](..._0x1acb9b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x155c10=[...new Set(_0x155c10)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x155c10=_0x155c10['filter'](_0x33b8e6=>_0x33b8e6['is']('element','listItem'))),_0x155c10;}['_getSuggestionBlocks'](_0x29a594){const _0xd4d36=this['editor']['plugins']['get']('LegacyListUtils');let _0x4acb50=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x29a594)['map'](_0x502eab=>{const _0xc0bbae=this['editor']['model']['createPositionAt'](_0x502eab,0x0);return[..._0xd4d36['getSiblingNodes'](_0xc0bbae,'backward'),..._0xd4d36['getSiblingNodes'](_0xc0bbae,'forward')];})['flat']();return _0x4acb50=[...new Set(_0x4acb50)],_0x4acb50;}['_getTranslationKeyForListStyle'](_0x582c1e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x582c1e)||'default')['toUpperCase']()+'_LIST_'+_0x582c1e['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x28b250{['afterInit'](){const _0xaaa6b6=this['editor'];if(!_0xaaa6b6['plugins']['has']('MediaEmbedEditing'))return;const _0x391df4=_0xaaa6b6['plugins']['get']('TrackChangesEditing'),_0xe1f974=_0xaaa6b6['locale'];_0x391df4['enableCommand']('mediaEmbed'),_0x391df4['descriptionFactory']['registerElementLabel']('media',_0x525633=>o(_0xe1f974,'ELEMENT_MEDIA',_0x525633)),_0xaaa6b6['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x8d4d0c,{writer:_0x5c2df8,options:_0x577c7f})=>{if(_0x577c7f['showSuggestionHighlights'])return _0x5c2df8['createEmptyElement']('div');},'converterPriority':'high'}),_0xaaa6b6['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3cc081,_0x312808,_0x4bfdfb)=>{_0x4bfdfb['options']['showSuggestionHighlights']&&_0x3cc081['stop']();},{'priority':'high'});}}class dt extends _0x28b250{['afterInit'](){const _0x1063c5=this['editor'];_0x1063c5['plugins']['has']('MentionEditing')&&_0x1063c5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class mt extends _0x28b250{['afterInit'](){const _0x5c9032=this['editor'];if(!_0x5c9032['plugins']['has']('MergeFieldsEditing'))return;const _0x66d5a8=_0x5c9032['plugins']['get']('TrackChangesEditing'),_0xff0efc=_0x5c9032['locale'];_0x66d5a8['enableCommand']('insertMergeField'),_0x66d5a8['enableCommand']('insertMergeFieldBlock'),_0x66d5a8['enableCommand']('insertMergeFieldImage'),_0x66d5a8['descriptionFactory']['registerElementLabel']('mergeField',_0xe9312a=>o(_0xff0efc,'ELEMENT_MERGE_FIELD',_0xe9312a)),_0x66d5a8['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x303b4e=>o(_0xff0efc,'ELEMENT_MERGE_FIELD',_0x303b4e)),_0x66d5a8['descriptionFactory']['registerDescriptionCallback'](_0x2ee1bc=>{if('insertion'!=_0x2ee1bc['type']&&'deletion'!=_0x2ee1bc['type'])return;const _0x5cf787=_0x2ee1bc['getContainedElement']();if(null==_0x5cf787)return;const _0x161cc9=_0x5c9032['plugins']['get']('MergeFieldsEditing');let _0x4a4e77;switch(_0x161cc9['getMergeFieldType'](_0x5cf787)){case null:return;case'image':{const _0x147235=_0x161cc9['unwrapAffixes'](_0x5cf787['getAttribute']('src'));_0x4a4e77=_0x161cc9['getLabel'](_0x147235)||_0x147235;break;}default:{const _0x1932e7=_0x5cf787['getAttribute']('id');_0x4a4e77=_0x161cc9['getLabel'](_0x1932e7)||_0x1932e7;break;}}return'insertion'==_0x2ee1bc['type']?{'type':'insertion','content':o(_0xff0efc,'*Insert:*\x20%0','\x22'+_0x4a4e77+'\x22\x20'+o(_0xff0efc,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0xff0efc,'*Remove:*\x20%0','\x22'+_0x4a4e77+'\x22\x20'+o(_0xff0efc,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x28b250{['afterInit'](){const _0x2c2c40=this['editor'],_0xab3db6=_0x2c2c40['plugins']['get']('TrackChangesEditing');_0x2c2c40['plugins']['has']('MultiLevelList')&&(_0xab3db6['enableDefaultAttributesIntegration']('multiLevelList'),_0xab3db6['registerBlockAttribute']('listMarkerStyle'),_0xab3db6['descriptionFactory']['registerDescriptionCallback'](_0x400e4a=>this['handleDescriptions'](_0x400e4a)));}['handleDescriptions'](_0x4d424b){const _0x559b12=this['editor']['locale'],{data:_0xc3211b}=_0x4d424b,_0x398cfa={'type':'format','content':''};if(_0xc3211b&&'listMarkerStyle'==_0xc3211b['key']){if(!_0xc3211b['oldValue'])return{'type':'format','content':o(_0x559b12,'*Set\x20format:*\x20%0',o(_0x559b12,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xc3211b['newValue']+')'};if(!_0xc3211b['newValue']){let _0x14c7ef=_0x4d424b['head'];for(;_0x14c7ef;){if(_0x14c7ef['data']&&'listType'==_0x14c7ef['data']['key']&&_0x14c7ef['data']['newValue'])return _0x398cfa;_0x14c7ef=_0x14c7ef['next'];}return{'type':'format','content':o(_0x559b12,'*Remove\x20format:*\x20%0',o(_0x559b12,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xc3211b['oldValue']+')'};}}}}class kt extends _0x28b250{['afterInit'](){const _0x30d9be=this['editor'];if(!_0x30d9be['plugins']['has']('PageBreakEditing'))return;_0x30d9be['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1dde8b=_0x30d9be['plugins']['get']('TrackChangesEditing'),_0x3b0ad4=_0x30d9be['locale'];_0x1dde8b['descriptionFactory']['registerElementLabel']('pageBreak',_0x51fe37=>o(_0x3b0ad4,'ELEMENT_PAGE_BREAK',_0x51fe37));}}class wt extends _0x28b250{['afterInit'](){const _0x18143b=this['editor'];if(!_0x18143b['plugins']['has']('Paragraph'))return;const _0x4b6a46=_0x18143b['locale'],_0x2cdbd6=_0x18143b['plugins']['get']('TrackChangesEditing');_0x2cdbd6['descriptionFactory']['registerElementLabel']('paragraph',_0x3c9c34=>o(_0x4b6a46,'ELEMENT_PARAGRAPH',_0x3c9c34)),_0x2cdbd6['enableDefaultAttributesIntegration']('paragraph'),_0x2cdbd6['enableCommand']('insertParagraph'),_0x18143b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x18143b),{'priority':'highest'}),_0x18143b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xcdf140,_0x13b969,_0x54ff21)=>{_0x54ff21['options']['showSuggestionHighlights']&&nr(_0x18143b,{'showActiveMarker':!0x1})(_0xcdf140,_0x13b969,_0x54ff21);},{'priority':'highest'});const _0x2e473d=_0x2cdbd6['descriptionFactory'];_0x2e473d['registerDescriptionCallback'](_0x2c3f35=>{if('insertion'!==_0x2c3f35['type'])return;const {start:_0x1195eb,end:_0x3cfe6e}=_0x2c3f35['getFirstRange']();if(!_0x1195eb['isTouching'](_0x3cfe6e)||!_0x1195eb['nodeAfter'])return;const _0x5045d5=_0x18143b['model']['schema'],_0x38f8f2=_0x1195eb['nodeAfter'];return _0x5045d5['isBlock'](_0x38f8f2)&&!_0x5045d5['isLimit'](_0x38f8f2)&&_0x5045d5['checkChild'](_0x38f8f2,'$text')?{'type':'insertion','content':o(_0x4b6a46,'*Insert:*\x20%0',_0x2e473d['getItemLabel'](_0x38f8f2,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x74ea76=this['editor'],_0x4084d1=_0x74ea76['locale'];_0x74ea76['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30748d=>{if('formatBlock'!=_0x30748d['type'])return;const {data:_0x3c260e}=_0x30748d;return _0x3c260e&&'paragraph'==_0x3c260e['commandName']?{'type':'format','content':o(_0x4084d1,'*Change\x20to:*\x20%0',o(_0x4084d1,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5e1c60,{showActiveMarker:_0x1e17f1=!0x0}={}){return(_0x1dddbd,_0x56f1c1,_0x1ea162)=>{const _0x39a759=_0x5e1c60['plugins']['get']('TrackChangesEditing'),_0x26c47f=_0x56f1c1['markerRange']['start'],_0x45820f=_0x56f1c1['markerRange']['end'],_0x114c3f=_0x5e1c60['model']['schema'];if(!_0x26c47f['isTouching'](_0x45820f)||!_0x26c47f['nodeAfter'])return;const _0xf2362b=_0x26c47f['nodeAfter'];if(_0x114c3f['isBlock'](_0xf2362b)&&!_0x114c3f['isLimit'](_0xf2362b)&&_0x114c3f['checkChild'](_0xf2362b,'$text')){if(!_0x1ea162['consumable']['consume'](_0x56f1c1['markerRange'],_0x1dddbd['name']))return;const {id:_0x4d0a7d,authorId:_0x50afbd}=_0x39a759['_splitMarkerName'](_0x56f1c1['markerName']),_0x7d8785=_0x1ea162['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4d0a7d,'data-author-id':_0x50afbd}),_0x1f9d02=_0x1ea162['mapper']['toViewPosition'](_0x45820f);_0x1e17f1&&_0x39a759['activeMarkers']['includes'](_0x56f1c1['markerName'])&&_0x1ea162['writer']['addClass']('ck-suggestion-marker--active',_0x7d8785),_0x1ea162['writer']['insert'](_0x1f9d02,_0x7d8785),_0x1ea162['mapper']['bindElementToMarker'](_0x7d8785,_0x56f1c1['markerName']);}};}class bt extends _0x28b250{['afterInit'](){const _0x216a42=this['editor'];_0x216a42['commands']['get']('replaceSource')&&_0x216a42['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class yt extends _0x28b250{['afterInit'](){const _0x344e3c=this['editor'];if(!_0x344e3c['plugins']['has']('RemoveFormatEditing'))return;_0x344e3c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1966a5=this['editor'];_0x1966a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x504e78=>{if('formatBlock'!=_0x504e78['type']&&'formatInline'!=_0x504e78['type'])return;const {data:_0x192cc5}=_0x504e78;return _0x192cc5&&'removeFormat'==_0x192cc5['commandName']?{'type':'format','content':o(_0x1966a5['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class St extends _0x28b250{['afterInit'](){const _0x597d2a=this['editor'];if(!_0x597d2a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5b54f4=_0x597d2a['plugins']['get']('TrackChangesEditing');_0x5b54f4['enableCommand']('goToPreviousRestrictedEditingException'),_0x5b54f4['enableCommand']('goToNextRestrictedEditingException');const _0x34f250=_0x597d2a['plugins']['get']('RestrictedEditingModeEditing');_0x34f250['enableCommand']('trackChanges'),_0x34f250['enableCommand']('acceptSuggestion'),_0x34f250['enableCommand']('discardSuggestion'),_0x34f250['enableCommand']('acceptAllSuggestions'),_0x34f250['enableCommand']('discardAllSuggestions'),_0x34f250['enableCommand']('acceptSelectedSuggestions'),_0x34f250['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x28b250{['afterInit'](){const _0x3100f8=this['editor'];if(!_0x3100f8['plugins']['has']('ShiftEnter'))return;const _0x223b70=_0x3100f8['plugins']['get']('TrackChangesEditing');_0x223b70['enableCommand']('shiftEnter'),_0x3100f8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x3100f8),{'priority':'high'}),_0x3100f8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x3100f8),{'priority':'high'}),_0x3100f8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x9240f4,_0x48f82c,_0x4f4486)=>{_0x4f4486['options']['showSuggestionHighlights']&&je(_0x3100f8,{'showActiveMarker':!0x1})(_0x9240f4,_0x48f82c,_0x4f4486);}),_0x223b70['descriptionFactory']['registerElementLabel']('softBreak',_0xa9e4ae=>o(_0x3100f8['locale'],'ELEMENT_LINE_BREAK',_0xa9e4ae));}}function je(_0x1bcc7c,{showActiveMarker:_0x39ff01=!0x0}={}){return(_0x187dc1,_0x451538,_0x1989bd)=>{const _0x2d8c83=_0x1bcc7c['plugins']['get']('TrackChangesEditing');if(!_0x1989bd['consumable']['test'](_0x451538['markerRange'],_0x187dc1['name']))return;const _0x1feb7c=_0x1bcc7c['model'];for(const _0x36936b of _0x451538['markerRange']['getItems']()){if(!_0x36936b['is']('element','softBreak'))continue;const _0x562250='deletion'==_0x451538['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2fd6fc,authorId:_0x1bfe05}=_0x2d8c83['_splitMarkerName'](_0x451538['markerName']),_0x3cf13f=_0x1989bd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x562250,'data-suggestion':_0x2fd6fc,'data-author-id':_0x1bfe05}),_0x3b533c=_0x1989bd['mapper']['toViewPosition'](_0x1feb7c['createPositionBefore'](_0x36936b));_0x39ff01&&_0x2d8c83['activeMarkers']['includes'](_0x451538['markerName'])&&_0x1989bd['writer']['addClass']('ck-suggestion-marker--active',_0x3cf13f),_0x1989bd['writer']['insert'](_0x3b533c,_0x3cf13f),_0x1989bd['mapper']['bindElementToMarker'](_0x3cf13f,_0x451538['markerName']);}};}class It extends _0x28b250{['afterInit'](){const _0x305571=this['editor'],_0x233c9d=_0x305571['model'],_0x4e0db0=_0x305571['locale'];if(!_0x305571['plugins']['has']('StandardEditingModeEditing'))return;const _0x52c688=_0x305571['plugins']['get']('TrackChangesEditing'),_0x9b6fb4='restrictedEditingException',_0xf2989e=_0x305571['commands']['get'](_0x9b6fb4);_0x52c688['enableCommand'](_0x9b6fb4,(_0x27b667,_0x38a8a3={})=>{const _0x30bf2c=_0x233c9d['document']['selection'];if(_0x30bf2c['isCollapsed'])return void _0x27b667(_0x38a8a3);const _0x3b2de2=void 0x0!==_0x38a8a3['forceValue']?_0x38a8a3['forceValue']:!_0xf2989e['value'];_0x233c9d['change'](()=>{const _0x4b4aee=Array['from'](_0x30bf2c['getRanges']());for(const _0x1d5a1e of _0x4b4aee){const _0x437c6e=_0x3b2de2?[_0x1d5a1e]:io(_0x9b6fb4,_0x1d5a1e,_0x233c9d);for(const _0x20e424 of _0x437c6e)_0x52c688['markInlineFormat'](_0x20e424,{'commandName':_0x9b6fb4,'commandParams':[{'forceValue':_0x3b2de2}]});}});}),_0x52c688['descriptionFactory']['registerDescriptionCallback'](_0x18aafc=>{if('formatBlock'!=_0x18aafc['type']&&'formatInline'!=_0x18aafc['type'])return;const {data:_0x260731}=_0x18aafc;return _0x260731&&_0x260731['commandName']==_0x9b6fb4?_0x260731['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4e0db0,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4e0db0,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x28b250{['afterInit'](){const _0x36b9d3=this['editor'];if(!_0x36b9d3['plugins']['has']('Style')||!_0x36b9d3['plugins']['has']('DataSchema'))return;const _0x3de6d1=_0x36b9d3['plugins']['get']('TrackChangesEditing'),_0x590bf5=_0x36b9d3['locale'],_0x286bc0=_0x36b9d3['config']['get']('style')||{},_0x1eb466=_0x36b9d3['plugins']['get']('GeneralHtmlSupport'),_0x39d6c4=_0x36b9d3['plugins']['get']('StyleUtils')['normalizeConfig'](_0x36b9d3['plugins']['get']('DataSchema'),_0x286bc0['definitions']);_0x3de6d1['enableDefaultAttributesIntegration']('style');const _0x305e39=new Set();for(const _0x32c757 of _0x39d6c4['block']){const _0xfd34ab=_0x1eb466['getGhsAttributeNameForElement'](_0x32c757['element']);_0x305e39['add'](_0xfd34ab);}const _0x1ad16c=new Set();for(const _0x46fe50 of _0x39d6c4['inline']){const _0x36b84f=_0x1eb466['getGhsAttributeNameForElement'](_0x46fe50['element']);_0x1ad16c['add'](_0x36b84f);for(const _0x52df80 of _0x46fe50['ghsAttributes'])_0x1ad16c['add'](_0x52df80);}for(const _0xefc101 of _0x305e39)_0x3de6d1['registerBlockAttribute'](_0xefc101),_0x3de6d1['descriptionFactory']['registerAttributeLabel'](_0xefc101,o(_0x590bf5,'FORMAT_STYLE'));for(const _0x35aa82 of _0x1ad16c)_0x3de6d1['registerInlineAttribute'](_0x35aa82),_0x3de6d1['descriptionFactory']['registerAttributeLabel'](_0x35aa82,o(_0x590bf5,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e9f3b=this['editor'],_0x5c63b5=_0x4e9f3b['locale'];_0x4e9f3b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e8601=>{if('formatBlock'!=_0x3e8601['type']&&'formatInline'!=_0x3e8601['type'])return;const {data:_0xf58859}=_0x3e8601;return _0xf58859&&'style'===_0xf58859['commandName']?_0xf58859['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c63b5,'*Set\x20format:*\x20%0',_0xf58859['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5c63b5,'*Remove\x20format:*\x20%0',_0xf58859['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class _t extends _0x28b250{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4b7e75){super(_0x4b7e75),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3f8d5b=this['editor'],_0x500155=_0x3f8d5b['model']['document']['selection'];if(!_0x3f8d5b['plugins']['has']('TableEditing'))return;const _0x2bee76=_0x3f8d5b['locale'],_0x40e363=_0x3f8d5b['plugins']['get']('TrackChangesEditing'),_0x5c661f=_0x3f8d5b['plugins']['get']('TableUtils');_0x40e363['descriptionFactory']['registerElementLabel']('table',_0x319927=>o(_0x2bee76,'ELEMENT_TABLE',_0x319927)),this['_setupColumnsRowsFixing'](),_0x40e363['enableCommand']('insertTable'),_0x40e363['enableCommand']('selectTableRow'),_0x40e363['enableCommand']('selectTableColumn');for(const _0x38186a of['insertTableRowAbove','insertTableRowBelow']){const _0x488416=_0x3f8d5b['commands']['get'](_0x38186a);_0x40e363['enableCommand'](_0x38186a,_0x9d5723=>{_0x3f8d5b['model']['change'](_0x5936ab=>{_0x9d5723();const _0x4ec13b='above'===_0x488416['order'],_0xab4d71=_0x5c661f['getSelectionAffectedTableCells'](_0x500155),_0x5e49eb=_0x5c661f['getRowIndexes'](_0xab4d71),_0x562da3=_0x4ec13b?_0x5e49eb['first']-0x1:_0x5e49eb['last']+0x1,_0x55b8dc=_0xab4d71[0x0]['findAncestor']('table'),_0x3fe33a=_0x5c661f['createTableWalker'](_0x55b8dc,{'startRow':_0x562da3,'endRow':_0x562da3}),_0x346532=Array['from'](_0x3fe33a)['map'](_0x255c32=>_0x5936ab['createRangeOn'](_0x255c32['cell']));_0x40e363['markMultiRangeInsertion'](_0x346532,'tableRow');});});}for(const _0x213470 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4fa693=_0x3f8d5b['commands']['get'](_0x213470);_0x40e363['enableCommand'](_0x213470,_0x33ff28=>{_0x3f8d5b['model']['change'](_0x47d5fa=>{_0x33ff28();const _0x4b2fc2='left'===_0x4fa693['order'],_0xd00473=_0x5c661f['getSelectionAffectedTableCells'](_0x500155),_0x2b1219=_0x5c661f['getColumnIndexes'](_0xd00473),_0x403748=_0x4b2fc2?_0x2b1219['first']-0x1:_0x2b1219['last']+0x1,_0x55bf8f=_0xd00473[0x0]['findAncestor']('table'),_0x256d45=_0x5c661f['createTableWalker'](_0x55bf8f,{'startRow':0x0,'column':_0x403748,'includeAllSlots':!0x1}),_0xae357d=Array['from'](_0x256d45)['map'](_0x5dd0d4=>_0x47d5fa['createRangeOn'](_0x5dd0d4['cell']));_0x40e363['markMultiRangeInsertion'](_0xae357d,'tableColumn');});});}for(const _0x587235 of['removeTableRow','removeTableColumn']){const _0x54916a=_0x587235['substr'](0xb),_0x4d8a40=_0x54916a['toLowerCase'](),_0x42c43e=_0x4d8a40['substr'](0x0,0x3)+'span',_0x3eaadb='table'+_0x54916a,_0x4858ca='min'+_0x54916a,_0x4b2e6b='max'+_0x54916a;_0x40e363['enableCommand'](_0x587235,()=>{_0x3f8d5b['model']['change'](_0x127d7f=>{const _0x5d450f=_0x5c661f['getSelectionAffectedTableCells'](_0x500155),_0x5b93e8=_0x5d450f[0x0]['findAncestor']('table');let _0x371b1c;if('removeTableRow'==_0x587235){const _0x132ba4=_0x5c661f['getRowIndexes'](_0x5d450f);_0x371b1c={'startRow':_0x132ba4['first'],'endRow':_0x132ba4['last'],'includeAllSlots':!0x0};}else{const _0x4521a3=_0x5c661f['getColumnIndexes'](_0x5d450f);_0x371b1c={'startColumn':_0x4521a3['first'],'endColumn':_0x4521a3['last'],'includeAllSlots':!0x0};}const _0x414e54=_0x5c661f['createTableWalker'](_0x5b93e8,_0x371b1c),_0x104bfe=Array['from'](_0x414e54)['map'](({cell:_0x4d5f92})=>_0x4d5f92),_0x586237=Ne(_0x104bfe['filter'](_0x383af3=>_0x383af3['hasAttribute'](_0x42c43e))),_0x120530=Ne(_0x104bfe['filter'](_0xdbcaa5=>!_0xdbcaa5['hasAttribute'](_0x42c43e)))['map'](_0x502952=>_0x127d7f['createRangeOn'](_0x502952)),_0x2e8575=_0x40e363['markMultiRangeDeletion'](_0x120530,_0x3eaadb);if(_0x2e8575&&('tableRow'==_0x2e8575['subType']||'tableColumn'==_0x2e8575['subType'])){const _0x5c8c9d=this['_getSuggestionCoords'](_0x2e8575);for(const _0x3f75f7 of _0x586237){const _0x156968=_0x127d7f['createRangeOn'](_0x3f75f7),_0x11a0cc=_0x5c661f['getCellLocation'](_0x3f75f7),_0xd51949=_0x3f75f7['getAttribute'](_0x42c43e)-0x1,_0x32d1f0=_0x5c8c9d[_0x4858ca],_0x260afa=_0x5c8c9d[_0x4b2e6b];_0x32d1f0<=_0x11a0cc[_0x4d8a40]&&_0x11a0cc[_0x4d8a40]+_0xd51949<=_0x260afa&&_0x2e8575['addRange'](_0x156968);}}});});}function _0x347770(_0x43b11b){const _0x2c2f84=Array['from'](_0x500155['getRanges']())['map'](_0x54e170=>_0xc2db3f['fromRange'](_0x54e170));_0x3f8d5b['model']['change'](_0x72d225=>{const _0x5ce0c2=_0x72d225['batch'];_0x43b11b=_0x43b11b['filter'](_0x666240=>'$graveyard'!=_0x666240['root']['rootName']),_0x72d225['setSelection'](_0x43b11b),_0x3f8d5b['commands']['get']('removeTableRow')['refresh'](),_0x3f8d5b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3f8d5b['model']['enqueueChange'](()=>{_0x3f8d5b['model']['enqueueChange'](_0x5ce0c2,_0x27b86d=>{const _0x21e7e7=_0x2c2f84['filter'](_0x137fa6=>'$graveyard'!=_0x137fa6['root']['rootName']);_0x21e7e7['length']>0x0&&_0x27b86d['setSelection'](_0x21e7e7);for(const _0x3b90f6 of _0x2c2f84)_0x3b90f6['detach']();});});});}function _0x334299(_0x391d36){_0x3f8d5b['model']['change'](_0x23ed2e=>{const _0x26397a=Array['from'](_0x500155['getRanges']())['map'](_0x25f269=>_0xc2db3f['fromRange'](_0x25f269)),_0xd942e3=[];for(const _0x402af3 of _0x391d36)for(const _0x301adf of _0x402af3['getItems']({'shallow':!0x0}))_0xd942e3['push'](_0x301adf);for(const _0x2862d2 of _0xd942e3)'$graveyard'!=_0x2862d2['root']['rootName']&&(_0x23ed2e['setSelection'](_0x23ed2e['createPositionAt'](_0x2862d2,0x0)),_0x3f8d5b['commands']['get']('removeTableColumn')['refresh'](),_0x3f8d5b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x48950c=_0x26397a['filter'](_0x51cdfc=>'$graveyard'!=_0x51cdfc['root']['rootName']);_0x48950c['length']>0x0&&_0x23ed2e['setSelection'](_0x48950c);for(const _0x439f47 of _0x26397a)_0x439f47['detach']();});}function _0x4e9f53(_0x492105,_0x2cdec3){return _0x2cdec3['every'](_0x18f102=>_0x492105['some'](_0x468628=>_0x468628['end']['isEqual'](_0x18f102['start'])||_0x18f102['end']['isEqual'](_0x468628['start'])));}function _0x3276a2(_0x8055ff,_0x2ce879){return!_0x8055ff['some'](_0x352ae7=>_0x2ce879['some'](_0x329714=>_0x352ae7['isIntersecting'](_0x329714)))&&_0x8055ff['some'](_0x28a1dc=>_0x2ce879['some'](_0x51a73a=>_0x28a1dc['end']['isTouching'](_0x51a73a['start'])));}_0x3f8d5b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2337e3,_0x4c0a4b,_0x4e0b6b)=>{if(!_0x4e0b6b['options']['showSuggestionHighlights'])return;const _0x359a38=_0x4c0a4b['item'];if(!_0x359a38||!_0x359a38['is']('element','tableCell'))return;const _0x15bae3=_0x4e0b6b['mapper']['toViewElement'](_0x359a38);if(_0x15bae3){const {id:_0x2deb77,authorId:_0x589c19}=_0x40e363['_splitMarkerName'](_0x4c0a4b['markerName']);_0x11d210(_0x15bae3,_0x4e0b6b['writer'],(_0x16da4c,_0x498dee,_0x5ec999)=>{_0x5ec999['addClass'](_0x384868(_0x498dee['classes']),_0x16da4c),_0x5ec999['setAttribute']('data-suggestion-id',_0x2deb77,_0x16da4c),_0x5ec999['setAttribute']('data-author-id',_0x589c19,_0x16da4c);},(_0x444714,_0x2d10af,_0x492a41)=>{_0x492a41['removeClass'](_0x384868(_0x2d10af['classes']),_0x444714),_0x492a41['removeAttribute']('data-suggestion-id',_0x444714),_0x492a41['removeAttribute']('data-author-id',_0x444714);});}},{'priority':'highest'}),_0x40e363['descriptionFactory']['registerDescriptionCallback'](_0x222c94=>{if('insertion'!=_0x222c94['type']&&'deletion'!=_0x222c94['type'])return;const _0xd335c0=_0x222c94['getContainedElement']();if(null!=_0xd335c0&&_0xd335c0['is']('element','table')){if('insertion'==_0x222c94['type']){const _0x539521=_0x222c94['getItems']()['filter'](_0x1c3b40=>_0x1c3b40['is']('$textProxy'))['map'](_0x49f2c1=>_0x49f2c1['data']);if(_0x539521['length'])return{'type':'insertion','content':o(_0x2bee76,'*Insert:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x539521['join']('\x20')+'\x22'))};}if('deletion'==_0x222c94['type']){const _0x558479=_0x222c94['getItems']()['filter'](_0x1b76f8=>_0x1b76f8['is']('$textProxy'))['map'](_0x287a5f=>_0x287a5f['data']);if(_0x558479['length'])return{'type':'deletion','content':o(_0x2bee76,'*Remove:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x558479['join']('\x20')+'\x22'))};}}}),_0x40e363['descriptionFactory']['registerDescriptionCallback'](_0x57e423=>{if('tableRow'==_0x57e423['subType']){const _0xf4d61d=_0x57e423['getItems']()['filter'](_0x117589=>_0x117589['is']('$textProxy'))['map'](_0x412826=>_0x412826['data']),_0x3a08c1=this['_getSuggestionCoords'](_0x57e423),_0x14f061=_0x3a08c1['maxRow']-_0x3a08c1['minRow']+0x1;if('insertion'==_0x57e423['type'])return _0xf4d61d['length']?{'type':'insertion','content':o(_0x2bee76,'*Insert:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14f061,'\x22'+_0xf4d61d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2bee76,'*Insert:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_ROW',_0x14f061))};if('deletion'==_0x57e423['type'])return _0xf4d61d['length']?{'type':'deletion','content':o(_0x2bee76,'*Remove:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14f061,'\x22'+_0xf4d61d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2bee76,'*Remove:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_ROW',_0x14f061))};}if('tableColumn'==_0x57e423['subType']){const _0x511939=_0x57e423['getItems']()['filter'](_0x562b30=>_0x562b30['is']('$textProxy'))['map'](_0x510f53=>_0x510f53['data']),_0x79095e=this['_getSuggestionCoords'](_0x57e423),_0x14f81d=_0x79095e['maxColumn']-_0x79095e['minColumn']+0x1;if('insertion'==_0x57e423['type'])return _0x511939['length']?{'type':'insertion','content':o(_0x2bee76,'*Insert:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x14f81d,'\x22'+_0x511939['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2bee76,'*Insert:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_COLUMN',_0x14f81d))};if('deletion'==_0x57e423['type'])return _0x511939['length']?{'type':'deletion','content':o(_0x2bee76,'*Remove:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x14f81d,'\x22'+_0x511939['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2bee76,'*Remove:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_COLUMN',_0x14f81d))};}}),_0x40e363['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x347770),_0x40e363['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x347770),_0x40e363['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x334299),_0x40e363['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x334299),_0x40e363['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4e9f53),_0x40e363['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4e9f53),_0x40e363['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3276a2),_0x40e363['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3276a2);}['_acceptFormatSuggestionCallbackFactory'](){const _0x366750=this['editor'],_0x30ba06=_0x366750['model']['document']['selection'];return(_0x46a943,_0x3d8e68)=>{_0x366750['model']['change'](_0x3174b7=>{const {commandName:_0xb52239,commandParams:_0x4eddea}=_0x3d8e68;let _0x565371=_0x46a943[0x0]['end']['nodeBefore'];_0x4eddea&&_0x4eddea[0x0]&&!0x1===_0x4eddea[0x0]['forceValue']&&(_0x565371=_0x46a943[0x0]['start']['nodeAfter']);const _0x508390=_0x3174b7['createRangeIn'](_0x565371);if('$graveyard'==_0x508390['root']['rootName'])return;const _0x17158f=Array['from'](_0x30ba06['getRanges']())['map'](_0x12b8df=>_0xc2db3f['fromRange'](_0x12b8df));_0x3174b7['setSelection'](_0x508390),_0x366750['commands']['get'](_0xb52239)['refresh'](),_0x4eddea['push']({'forceDefaultExecution':!0x0}),_0x366750['execute'](_0xb52239,..._0x4eddea);const _0x1e03c8=_0x17158f['filter'](_0x515127=>'$graveyard'!=_0x515127['root']['rootName']);_0x1e03c8['length']>0x0&&_0x3174b7['setSelection'](_0x1e03c8);for(const _0x585a51 of _0x17158f)_0x585a51['detach']();});};}['_getCoordsForCells'](_0x446b32){const _0x3ba89b=this['editor']['plugins']['get']('TableUtils');let _0xf53cda=Number['MAX_SAFE_INTEGER'],_0x57337c=Number['MIN_SAFE_INTEGER'],_0x27eef0=Number['MAX_SAFE_INTEGER'],_0x1cef1a=Number['MIN_SAFE_INTEGER'];for(const _0x5af5d0 of _0x446b32){if('$graveyard'==_0x5af5d0['root']['rootName'])continue;const {row:_0x587274,column:_0x1c2fb3}=_0x3ba89b['getCellLocation'](_0x5af5d0),_0x4feb4b=_0x5af5d0['hasAttribute']('rowspan')?_0x5af5d0['getAttribute']('rowspan')-0x1:0x0,_0x244889=_0x5af5d0['hasAttribute']('colspan')?_0x5af5d0['getAttribute']('colspan')-0x1:0x0;_0xf53cda=_0x587274<_0xf53cda?_0x587274:_0xf53cda,_0x57337c=_0x587274+_0x4feb4b>_0x57337c?_0x587274+_0x4feb4b:_0x57337c,_0x27eef0=_0x1c2fb3<_0x27eef0?_0x1c2fb3:_0x27eef0,_0x1cef1a=_0x1c2fb3+_0x244889>_0x1cef1a?_0x1c2fb3+_0x244889:_0x1cef1a;}return{'minRow':_0xf53cda,'maxRow':_0x57337c,'minColumn':_0x27eef0,'maxColumn':_0x1cef1a};}['_setupColumnsRowsFixing'](){const _0x32b238=this['editor'],_0x2674ae=_0x32b238['plugins']['get']('TrackChangesEditing'),_0x4d7659=_0x32b238['plugins']['get']('TableUtils');_0x32b238['model']['document']['on']('change:data',()=>{const _0x40f50c=Array['from'](_0x32b238['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7d21c9,data:_0x165fbc}of _0x40f50c){const {group:_0x2765c0,id:_0x4ea422,subType:_0x109d83}=_0x2674ae['_splitMarkerName'](_0x7d21c9);if('suggestion'!=_0x2765c0)continue;if(null!=_0x165fbc['oldRange'])continue;const _0x26474d=_0x2674ae['getSuggestion'](_0x4ea422);this['_tablePostFixingSubtypes']['includes'](_0x109d83)&&this['_tableSuggestions']['add'](_0x26474d);}},{'priority':'low'});const _0x461d18=(_0x4dff07,_0x21b2b1)=>{let _0x108fee=!0x1;const _0x4bb568=_0x21b2b1['createRangeOn'](_0x4dff07),_0x152029=_0x4dff07['findAncestor']('table'),_0x2aa36d=_0x4d7659['getCellLocation'](_0x4dff07);for(const _0x5378e2 of this['_tableSuggestions']){const _0x1f5e3e=_0x5378e2['subType'],_0x36ab81=_0x1f5e3e['startsWith']('tablePaste'),_0x11cc85=_0x1f5e3e['substr'](_0x36ab81?0xa:0x5),_0x39ef84=_0x11cc85['toLowerCase'](),_0x5dde10=_0x39ef84['substr'](0x0,0x3)+'span',_0x4c53f7='min'+_0x11cc85,_0x4549c7='max'+_0x11cc85;if(!_0x5378e2['isInContent'])continue;if(_0x152029!=_0x5378e2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5378e2['isIntersectingWithRange'](_0x4bb568))continue;const _0x28e47f=_0x4dff07['hasAttribute'](_0x5dde10)?_0x4dff07['getAttribute'](_0x5dde10)-0x1:0x0,_0x203d95=this['_getSuggestionCoords'](_0x5378e2),_0x315414=_0x203d95[_0x4c53f7],_0x1b0157=_0x203d95[_0x4549c7];_0x315414<=_0x2aa36d[_0x39ef84]&&_0x2aa36d[_0x39ef84]+_0x28e47f<=_0x1b0157&&(_0x5378e2['addRange'](_0x4bb568),_0x108fee=!0x0);}return _0x108fee;};_0x32b238['model']['document']['registerPostFixer'](_0x6b33b=>{let _0x239939=!0x1;for(const _0x252f34 of _0x32b238['model']['document']['differ']['getChanges']())if('insert'==_0x252f34['type']){if('tableRow'==_0x252f34['name']){for(const _0x17ad81 of _0x252f34['position']['nodeAfter']['getChildren']())_0x239939=_0x239939||_0x461d18(_0x17ad81,_0x6b33b);}else'tableCell'==_0x252f34['name']&&(_0x239939=_0x239939||_0x461d18(_0x252f34['position']['nodeAfter'],_0x6b33b));}return _0x239939;});}['_getSuggestionCoords'](_0x4b09b3){return this['_getCoordsForCells'](_0x4b09b3['getRanges']()['map'](_0x3b7f5c=>_0x3b7f5c['start']['nodeAfter']));}}function Ne(_0x2634b8){return Array['from'](new Set(_0x2634b8)['values']());}class Ct extends _0x28b250{static get['requires'](){return[_t];}['afterInit'](){const _0xed6017=this['editor'],_0x22bfdb=_0xed6017['model']['document']['selection'],_0x1fc7a6=_0xed6017['locale'];if(!_0xed6017['plugins']['has']('TableEditing'))return;const _0x3ebcd7=_0xed6017['plugins']['get']('TrackChangesEditing'),_0x5d9954=_0xed6017['plugins']['get']('TableUtils'),_0x177be9=_0xed6017['plugins']['get'](_t);_0x177be9['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3ebcd7['enableCommand']('mergeTableCells',()=>{const _0xf1b9f5=_0x5d9954['getSelectionAffectedTableCells'](_0xed6017['model']['document']['selection']);_0xed6017['model']['change'](()=>{_0x3ebcd7['markMultiRangeBlockFormat'](_0xf1b9f5,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xed6017['commands']['get']('mergeTableCells')['on']('execute',(_0xf675d1,_0x4ed674)=>{_0xed6017['commands']['get']('trackChanges')['value']&&(_0x4ed674['length']>0x0&&_0x4ed674[_0x4ed674['length']-0x1]&&_0x4ed674[_0x4ed674['length']-0x1]['forceDefaultExecution']||_0x3ebcd7['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xf675d1['stop']());},{'priority':'highest'});for(const _0x424f93 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x33a51a=_0xed6017['commands']['get'](_0x424f93);_0x3ebcd7['enableCommand'](_0x424f93,()=>{const _0x3e841d=_0xed6017['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x167aa2=>_0x167aa2['is']('element','tableCell')),_0x15ef56=_0x33a51a['value'];_0xed6017['model']['change'](()=>{_0x3ebcd7['markMultiRangeBlockFormat']([_0x3e841d,_0x15ef56],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x537615 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x929386=_0xed6017['commands']['get'](_0x537615);_0x3ebcd7['enableCommand'](_0x537615,()=>{const _0x32d8b6=_0x5d9954['getSelectionAffectedTableCells'](_0xed6017['model']['document']['selection'])[0x0],_0x162a01=_0x32d8b6['findAncestor']('table'),{column:_0x417c95,row:_0x4ac1e7}=_0x5d9954['getCellLocation'](_0x32d8b6);let _0x32eaa2=[];if('horizontally'==_0x929386['direction']){const _0xa0076d=_0x5d9954['createTableWalker'](_0x162a01,{'startRow':_0x4ac1e7,'endRow':_0x4ac1e7,'includeAllSlots':!0x0});_0x32eaa2=Array['from'](_0xa0076d)['map'](_0x33586d=>_0x33586d['cell']);}else{const _0x33a64b=_0x5d9954['createTableWalker'](_0x162a01,{'column':_0x417c95,'includeAllSlots':!0x0});_0x32eaa2=Array['from'](_0x33a64b)['map'](_0xd5c60f=>_0xd5c60f['cell']);}_0xed6017['model']['change'](_0x506edf=>{_0x3ebcd7['markBlockFormat'](_0x506edf['createRangeOn'](_0x32d8b6),{'commandName':_0x537615,'commandParams':[]},_0x32eaa2,_0x537615);});});}_0x3ebcd7['descriptionFactory']['registerDescriptionCallback'](_0x2d9020=>{if('formatBlock'!=_0x2d9020['type']&&'formatInline'!=_0x2d9020['type'])return;const {data:_0x51af02}=_0x2d9020;return _0x51af02&&'mergeTableCells'==_0x51af02['commandName']?{'type':'format','content':o(_0x1fc7a6,'*Merge\x20cells*')}:void 0x0;}),_0x3ebcd7['descriptionFactory']['registerDescriptionCallback'](_0xb0b0af=>{if('formatBlock'!=_0xb0b0af['type']&&'formatInline'!=_0xb0b0af['type'])return;const {data:_0x14c050}=_0xb0b0af;return _0x14c050?'splitTableCellVertically'==_0x14c050['commandName']?{'type':'format','content':o(_0x1fc7a6,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x14c050['commandName']?{'type':'format','content':o(_0x1fc7a6,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3df816=_0x177be9['_acceptFormatSuggestionCallbackFactory']();for(const _0x2369b8 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3ebcd7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2369b8,'accept',_0x3df816);for(const _0x4fb6d9 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3ebcd7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4fb6d9,'accept',_0x3df816);_0x3ebcd7['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x12a54d=>{_0xed6017['model']['change'](_0x140778=>{const _0x55df32=Array['from'](_0x22bfdb['getRanges']())['map'](_0x4c10ed=>_0xc2db3f['fromRange'](_0x4c10ed));_0x140778['setSelection'](_0x12a54d),_0xed6017['commands']['get']('mergeTableCells')['refresh'](),_0xed6017['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x549b83=_0x55df32['filter'](_0x232fe7=>'$graveyard'!=_0x232fe7['root']['rootName']);_0x549b83['length']>0x0&&_0x140778['setSelection'](_0x549b83);for(const _0x5a0689 of _0x55df32)_0x5a0689['detach']();});});for(const _0x27b497 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x13fa6d=_0xed6017['commands']['get'](_0x27b497);_0x13fa6d['on']('set:isEnabled',(_0x4d4dde,_0x4907b8,_0x112432)=>{if(_0x112432){const _0x306fb0=_0xed6017['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2e0887=>_0x2e0887['is']('element','tableCell'));this['_areMergableCells'](_0x13fa6d['value'],_0x306fb0)||(_0x4d4dde['return']=!0x1,_0x4d4dde['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2dc302=this['editor']['commands']['get']('mergeTableCells'),_0x4c23cc=this['editor']['plugins']['get']('TableUtils');if(!_0x2dc302['isEnabled'])return!0x1;const _0x1170c4=_0x4c23cc['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2b3d4c of _0x1170c4)for(const _0x58a502 of _0x1170c4)if(_0x2b3d4c!=_0x58a502&&!this['_areMergableCells'](_0x2b3d4c,_0x58a502))return!0x1;return!0x0;}['_areMergableCells'](_0x2b3911,_0x287083){const _0x501f31=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d81ca=this['editor']['model']['createRangeOn'](_0x2b3911),_0x16b51a=this['editor']['model']['createRangeOn'](_0x287083),_0x339584=new Set(),_0x482767=new Set();for(const _0x4d4b8a of _0x501f31['getSuggestions']())if(('insertion'==_0x4d4b8a['type']||'deletion'==_0x4d4b8a['type']||'mergeTableCells'==_0x4d4b8a['subType'])&&_0x4d4b8a['isInContent']){for(const _0x39f588 of _0x4d4b8a['getRanges']())_0x39f588['containsRange'](_0x1d81ca,!0x0)&&_0x339584['add'](_0x4d4b8a['type']+':'+_0x4d4b8a['author']['id']),_0x39f588['containsRange'](_0x16b51a,!0x0)&&_0x482767['add'](_0x4d4b8a['type']+':'+_0x4d4b8a['author']['id']);}if(_0x339584['size']!=_0x482767['size'])return!0x1;for(const _0x2df0cf of _0x339584)if(!_0x482767['has'](_0x2df0cf))return!0x1;return!0x0;}}class vt extends _0x28b250{static get['requires'](){return[_t];}['afterInit'](){const _0x3eaa5d=this['editor'];if(!_0x3eaa5d['plugins']['has']('TableEditing'))return;const _0xcc6848=_0x3eaa5d['locale'],_0x448b77=_0x3eaa5d['plugins']['get']('TrackChangesEditing');_0x448b77['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x448b77['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x448b77['registerBlockAttribute']('headingRows'),_0x448b77['registerBlockAttribute']('headingColumns'),_0x448b77['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xcc6848,'FORMAT_HEADER_ROW')),_0x448b77['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xcc6848,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4037af=this['editor']['plugins']['get']('TrackChangesEditing'),_0x584710=this['editor']['plugins']['get']('TableUtils'),_0x2535b7=this['editor']['plugins']['get'](_t)['_acceptFormatSuggestionCallbackFactory']();function _0xc032ac({showActiveMarker:_0x222161=!0x0,setDataAttribute:_0x2021e7=!0x0}={}){return(_0x539586,_0x31f2ad,_0x17e165)=>{const {type:_0x1579f8,id:_0x4e839e}=_0x4037af['_splitMarkerName'](_0x31f2ad['markerName']),_0x4544f=_0x4037af['getSuggestion'](_0x4e839e),_0x3b8ba1=_0x4544f['data'];if('formatBlock'!=_0x4544f['type']||!_0x3b8ba1||'setTableColumnHeader'!=_0x3b8ba1['commandName'])return;if(_0x31f2ad['item'])return void _0x539586['stop']();if(!_0x17e165['consumable']['consume'](_0x31f2ad['markerRange'],_0x539586['name']))return;const _0x1972b3=_0x31f2ad['markerRange']['start']['nodeAfter'],_0x5c6c91=_0x31f2ad['markerRange']['end']['nodeBefore'],_0x5a8d62=_0x1972b3['parent']['parent'],{column:_0xb4ce4e}=_0x584710['getCellLocation'](_0x1972b3),{column:_0x2186f4}=_0x584710['getCellLocation'](_0x5c6c91);for(let _0x3e112a=_0xb4ce4e;_0x3e112a<=_0x2186f4;_0x3e112a++){const _0x441428=_0x584710['createTableWalker'](_0x5a8d62,{'column':_0x3e112a,'includeAllSlots':!0x1});for(const _0x54f164 of _0x441428){const _0x36762e=_0x54f164['cell'],_0x82a496=_0x17e165['mapper']['toViewElement'](_0x36762e);_0x17e165['writer']['addClass']('ck-suggestion-marker-'+_0x1579f8,_0x82a496),_0x2021e7&&_0x17e165['writer']['setAttribute']('data-suggestion',_0x4e839e,_0x82a496),_0x17e165['mapper']['bindElementToMarker'](_0x82a496,_0x31f2ad['markerName']),_0x222161&&(_0x4037af['activeMarkers']['includes'](_0x31f2ad['markerName'])?_0x17e165['writer']['addClass']('ck-suggestion-marker--active',_0x82a496):_0x17e165['writer']['removeClass']('ck-suggestion-marker--active',_0x82a496));}}};}_0x4037af['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2535b7),_0x4037af['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2535b7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xc032ac(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5ba8dc,_0x570d21,_0x1302f1)=>{_0x1302f1['options']['showSuggestionHighlights']&&_0xc032ac({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5ba8dc,_0x570d21,_0x1302f1);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2878dc,_0x5f279a,_0xdf96de)=>{const {type:_0xefb397,id:_0x87db4d}=_0x4037af['_splitMarkerName'](_0x5f279a['markerName']),_0x162973=_0x4037af['getSuggestion'](_0x87db4d),_0x4b00e2=_0x162973['data'];if('formatBlock'!=_0x162973['type']||!_0x4b00e2||'setTableColumnHeader'!=_0x4b00e2['commandName'])return;const _0x1398be=_0xdf96de['mapper']['markerNameToElements'](_0x5f279a['markerName']);if(_0x1398be){for(const _0x31f5f9 of _0x1398be)_0xdf96de['writer']['removeClass']('ck-suggestion-marker-'+_0xefb397,_0x31f5f9),_0xdf96de['writer']['removeClass']('ck-suggestion-marker--active',_0x31f5f9),_0xdf96de['writer']['removeAttribute']('data-suggestion',_0x31f5f9),_0xdf96de['mapper']['unbindElementFromMarkerName'](_0x31f5f9,_0x5f279a['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c9b94=this['editor'],_0x254282=_0x3c9b94['locale'];function _0x3cf6b9(_0x52152c){return{'type':'format','content':o(_0x254282,'*Format:*\x20%0',_0x52152c)};}_0x3c9b94['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3eb68f=>{if('formatBlock'!=_0x3eb68f['type'])return;const {data:_0x1a94dd}=_0x3eb68f;if(_0x1a94dd){if('setTableRowHeader'==_0x1a94dd['commandName']){const _0x4e3df6=_0x1a94dd['commandParams'][0x0]['forceValue'];return _0x3cf6b9(o(_0x254282,_0x4e3df6?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1a94dd['commandName']){const _0x412c09=_0x1a94dd['commandParams'][0x0]['forceValue'];return _0x3cf6b9(o(_0x254282,_0x412c09?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Nt extends _0x28b250{['afterInit'](){const _0x2a6a85=this['editor'],_0x16a726=_0x2a6a85['locale'],_0x3c3e19=_0x2a6a85['plugins']['get']('TrackChangesEditing');function _0x3cb4f2(_0x3becf3){return{'type':'format','content':''+o(_0x16a726,'*Set\x20table\x20type:*\x20%0',_0x3becf3)};}_0x2a6a85['plugins']['has']('TableLayout')&&(_0x3c3e19['enableCommand']('insertTableLayout'),_0x3c3e19['enableDefaultAttributesIntegration']('tableType'),_0x3c3e19['registerBlockAttribute']('tableType'),_0x3c3e19['descriptionFactory']['registerElementLabel'](_0x4ea473=>_0x4ea473['is']('element','table')&&'layout'===_0x4ea473['getAttribute']('tableType'),_0x4892b5=>o(_0x16a726,'ELEMENT_LAYOUT_TABLE',_0x4892b5)),_0x3c3e19['descriptionFactory']['registerDescriptionCallback'](_0x20de4b=>{const {data:_0x82b91f}=_0x20de4b;if(_0x82b91f&&'tableType'==_0x82b91f['key'])switch(_0x82b91f['newValue']){case'layout':return _0x3cb4f2(o(_0x16a726,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3cb4f2(o(_0x16a726,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](xe['map'](_0x4211d9=>[_0x4211d9,null]));class Dt extends _0x28b250{static get['requires'](){return[_t];}['afterInit'](){const _0x331a2c=this['editor'];if(!_0x331a2c['plugins']['has']('TableClipboard'))return;const _0x34f6ee=_0x331a2c['plugins']['get']('TrackChangesEditing'),_0x2a240d=_0x331a2c['plugins']['get']('TableUtils'),_0x2a1280=_0x331a2c['plugins']['get'](_t),_0x5551e5=_0x331a2c['plugins']['get']('TableClipboard'),_0x2ce826=_0x331a2c['plugins']['get']('TableSelection'),_0x247c0f=_0x331a2c['plugins']['get'](_0x5ed61e);_0x2a1280['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x331a2c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x331a2c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xcde454=null,_0x22fb4a=!0x1;_0x247c0f['on']('contentInsertion',(_0x2d7897,_0x280e3b)=>{_0x22fb4a='paste'===_0x280e3b['method'];}),_0x331a2c['model']['on']('insertContent',(_0x5d6963,_0x2fe273)=>{if(!_0x22fb4a&&null===_0x2ce826['getSelectedTableCells']())return;const [_0x2179f0,_0x48fd16]=_0x2fe273,_0x26b00d=_0x2fe273[_0x2fe273['length']-0x1];_0x26b00d&&_0x26b00d['forceDefaultExecution']||_0x34f6ee['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x170a02,_0x3dd728,_0x542df5,_0x3b8893,_0x4d2415){if(_0x3dd728&&!_0x3dd728['is']('documentSelection'))return!0x1;const _0x187209=_0x4d2415['getTableIfOnlyTableInContent'](_0x170a02,_0x542df5);if(!_0x187209||!De(_0x187209,void 0x0,_0x3b8893))return!0x1;const _0x12a5cb=_0x3b8893['getSelectionAffectedTableCells'](_0x542df5['document']['selection']);if(!_0x12a5cb['length'])return!0x1;const _0x9feec8=_0x12a5cb[0x0]['findAncestor']('table'),_0x48f647=_0x3b8893['getRowIndexes'](_0x12a5cb),_0x244f6a=_0x3b8893['getColumnIndexes'](_0x12a5cb),_0x594e16={'startRow':_0x48f647['first'],'endRow':_0x48f647['last'],'startColumn':_0x244f6a['first'],'endColumn':_0x244f6a['last']};return 0x1==_0x12a5cb['length']&&(_0x594e16['endRow']+=_0x3b8893['getRows'](_0x187209)-0x1,_0x594e16['endColumn']+=_0x3b8893['getColumns'](_0x187209)-0x1),De(_0x9feec8,_0x594e16,_0x3b8893);}(_0x2179f0,_0x48fd16,_0x331a2c['model'],_0x2a240d,_0x5551e5)&&(_0x5d6963['stop'](),_0xcde454={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x331a2c['model']['change'](()=>{_0x331a2c['model']['insertContent'](_0x2fe273[0x0],_0x2fe273[0x1],_0x2fe273[0x2],{'forceDefaultExecution':!0x0});const _0x4bd841=_0x370ed3(),{rowInsertionRanges:_0x4257cc,columnInsertionRanges:_0xe3d595,insertionRanges:_0xd0cfe5,deletionRanges:_0xe15881,cells:_0x24be74}=_0xcde454;_0x4257cc['length']&&_0x34f6ee['markMultiRangeInsertion'](_0x4257cc,'tablePasteRow',{'tablePasteChainId':_0x4bd841}),_0xe3d595['length']&&_0x34f6ee['markMultiRangeInsertion'](_0xe3d595,'tablePasteColumn',{'tablePasteChainId':_0x4bd841}),_0xd0cfe5['length']&&(_0x34f6ee['markMultiRangeInsertion'](_0xd0cfe5,'tablePaste',{'tablePasteChainId':_0x4bd841,'skipNestingCheck':!0x0}),_0xd0cfe5['forEach'](_0x4fc9d3=>_0x4fc9d3['detach']?.())),_0xe15881['length']&&(_0x34f6ee['markMultiRangeDeletion'](_0xe15881,'tablePaste',{'tablePasteChainId':_0x4bd841,'skipNestingCheck':!0x0}),_0xe15881['forEach'](_0x2f4ef3=>_0x2f4ef3['detach']?.()));const _0x5e4582=_0x34f6ee['markMultiRangeBlockFormat'](_0x24be74['map'](({element:_0x1aea8a})=>_0x1aea8a),{'formatGroupId':_0x370ed3()},[],'tablePasteCell',{'tablePasteChainId':_0x4bd841});if(_0x5e4582){const _0x2dccac=_0x5e4582['getMarkers'](),_0x2fa7f9=[];for(const {element:_0x24cfa7,attributes:_0x211692}of _0x24be74){if(!_0x211692)continue;const _0x123e10=_0x331a2c['model']['createRangeOn'](_0x24cfa7),_0x190e58=_0x2dccac['find'](_0x4c5589=>_0x4c5589['getRange']()['isEqual'](_0x123e10));_0x190e58&&_0x2fa7f9['push']([_0x190e58['name'],_0x211692]);}_0x2fa7f9['length']&&_0x5e4582['setAttribute']('markerAttributes',Object['fromEntries'](_0x2fa7f9));}_0xcde454=null;}));},{'priority':_0x4066a6['high']+0xa}),_0x247c0f['on']('contentInsertion',()=>{_0x22fb4a=!0x1;},{'priority':'lowest'}),_0x331a2c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2eb3ca,_0x43d0f1)=>{const [_0x543220,_0x27251c,,_0x3e4015]=_0x43d0f1;if(!_0xcde454)return;_0x2eb3ca['stop']();const _0x1e2ccf=_0x543220['cell'],_0x2ad0e6=_0x27251c,_0x49b210=Ue(_0x1e2ccf),_0x51ecea=Ue(_0x2ad0e6);_0x2eb3ca['return']=_0x1e2ccf;let _0x27e39a=null,_0x11f917=null;if(_0x51ecea||_0x49b210){if(_0x49b210&&!_0x51ecea){_0x3e4015['remove'](_0x1e2ccf['getChild'](0x0));for(const _0xb532e6 of Array['from'](_0x2ad0e6['getChildren']()))_0x3e4015['insert'](_0xb532e6,_0x1e2ccf,'end');const _0x50d6ac=_0xcde454['rowInsertionIndexes']['includes'](_0x543220['row']),_0x367f82=_0xcde454['columnInsertionIndexes']['includes'](_0x543220['column']);_0x50d6ac||_0x367f82||(_0x27e39a=_0xc2db3f['fromRange'](_0x3e4015['createRangeIn'](_0x1e2ccf)));}else _0x51ecea&&!_0x49b210&&(_0x11f917=_0x3e4015['createRangeIn'](_0x1e2ccf));}else{const _0x2878c9=_0x3e4015['createElement']('tableCellSuggestion'),_0x5af19b=_0x3e4015['createElement']('tableCellSuggestion');_0x3e4015['wrap'](_0x3e4015['createRangeIn'](_0x1e2ccf),_0x5af19b),_0x3e4015['insert'](_0x2878c9,_0x1e2ccf,0x0);for(const _0x3319d1 of Array['from'](_0x2ad0e6['getChildren']()))_0x3e4015['insert'](_0x3319d1,_0x2878c9,'end');_0x27e39a=_0xc2db3f['fromRange'](_0x3e4015['createRangeOn'](_0x2878c9)),_0x11f917=_0xc2db3f['fromRange'](_0x3e4015['createRangeOn'](_0x5af19b));}const _0x1cdab6=Array['from'](_0x2ad0e6['getAttributes']())['filter'](([_0x42be05])=>xe['includes'](_0x42be05));_0xcde454['cells']['push']({'element':_0x1e2ccf,'attributes':_0x1cdab6['length']?Object['fromEntries'](_0x1cdab6):null}),_0x27e39a&&_0xcde454['insertionRanges']['push'](_0x27e39a),_0x11f917&&_0xcde454['deletionRanges']['push'](_0x11f917);},{'priority':'high'}),_0x2a240d['on']('insertColumns',(_0x261f4b,_0x2e69a1)=>{const [_0x423f2a,_0x2c5215={}]=_0x2e69a1;if(!_0xcde454)return;const _0x37de1e=_0x2c5215['at']||0x0,_0x25376c=_0x2c5215['columns']||0x1;_0xcde454['columnInsertionIndexes']=new Array(_0x25376c)['fill'](_0x37de1e)['map']((_0x57a8bd,_0x51ad50)=>_0x57a8bd+_0x51ad50);for(const {cell:_0x1b4cfa}of _0x2a240d['createTableWalker'](_0x423f2a,{'startColumn':_0x37de1e,'endColumn':_0x37de1e+_0x25376c-0x1}))_0xcde454['columnInsertionRanges']['push'](_0x331a2c['model']['createRangeOn'](_0x1b4cfa));},{'priority':'low'}),_0x2a240d['on']('insertRows',(_0x584cb8,_0x2d2abf)=>{const [_0xa272bc,_0x244305={}]=_0x2d2abf;if(!_0xcde454)return;const _0x8dbb61=_0x244305['at']||0x0,_0x198ded=_0x244305['rows']||0x1;_0xcde454['rowInsertionIndexes']=new Array(_0x198ded)['fill'](_0x8dbb61)['map']((_0xd59abf,_0x2d2c13)=>_0xd59abf+_0x2d2c13);for(const {cell:_0x374911}of _0x2a240d['createTableWalker'](_0xa272bc,{'startRow':_0x8dbb61,'endRow':_0x8dbb61+_0x198ded-0x1}))_0xcde454['rowInsertionRanges']['push'](_0x331a2c['model']['createRangeOn'](_0x374911));},{'priority':'low'}),_0x34f6ee['descriptionFactory']['registerDescriptionCallback'](_0x57eeac=>{if(_0x57eeac['subType']&&_0x57eeac['subType']['startsWith']('tablePaste'))return _0x57eeac['previous']?{}:{'type':'insertion','content':o(_0x331a2c['locale'],'*Replace\x20table\x20cells*')};});const _0x4d20f8=()=>!0x1;for(const _0x59fc78 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x34f6ee['_suggestionFactory']['registerCustomCallback']('insertion',_0x59fc78,'join',_0x4d20f8),_0x34f6ee['_suggestionFactory']['registerCustomCallback']('deletion',_0x59fc78,'join',_0x4d20f8),_0x34f6ee['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x59fc78,'join',_0x4d20f8);_0x34f6ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4d20f8),_0x34f6ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x517bc9,_0x3aceb2,_0x4abfdc)=>{const _0x2fc01a=_0x517bc9['map'](_0x130942=>_0x130942['getContainedElement']())['filter'](_0xd41033=>_0xd41033),_0x29847a=new Map(_0x2fc01a['map'](_0x3dc831=>[_0x3dc831,null]));if(_0xcde454){for(const {element:_0xa5837,attributes:_0xbd339f}of _0xcde454['cells'])_0xbd339f&&_0x29847a['set'](_0xa5837,_0xbd339f);}else{if(_0x4abfdc&&_0x4abfdc['markerAttributes'])for(const [_0x21f6ef,_0xc631cd]of Object['entries'](_0x4abfdc['markerAttributes'])){const _0x1a6853=_0x331a2c['model']['markers']['get'](_0x21f6ef),_0x5c9303=_0x1a6853?_0x1a6853['getRange']()['getContainedElement']():null;_0x5c9303&&_0x29847a['set'](_0x5c9303,_0xc631cd);}}_0x331a2c['model']['change'](_0x495465=>{for(const [_0xdb9b96,_0x3d92a1]of _0x29847a)_0x495465['setAttributes']({...Oe,..._0x3d92a1},_0xdb9b96);});});const _0x136379=(_0x5b12ea,_0xdc4890)=>{_0x34f6ee['_suggestionFactory']['registerCustomCallback'](_0x5b12ea,'tablePaste',_0xdc4890,(_0x2b3ef5,_0x2a49b8,_0x522437)=>{_0x331a2c['model']['change'](_0x1eeca9=>{const _0x3017ed=[];for(const _0x3e6658 of _0x2b3ef5){const _0x4f9800=_0x3e6658['start']['nodeAfter'];_0x4f9800['is']('element','tableCellSuggestion')&&_0x3017ed['push'](_0x4f9800);}_0x34f6ee['_suggestionFactory']['getSuggestionCallback'](_0x5b12ea,null,_0xdc4890)(_0x2b3ef5,_0x2a49b8,_0x522437);for(const _0x42a9d9 of _0x3017ed)'$graveyard'!=_0x42a9d9['root']['rootName']&&_0x1eeca9['unwrap'](_0x42a9d9);});});};_0x136379('insertion','accept'),_0x136379('insertion','discard'),_0x136379('deletion','accept'),_0x136379('deletion','discard'),_0x34f6ee['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x23c772=>{const _0x893efa=_0x23c772['map'](_0x54680f=>_0x54680f['getContainedElement']()),_0xaace25=_0x893efa[0x0]['findAncestor']('table'),{minRow:_0x1c4359,maxRow:_0x5b2f43}=_0x2a1280['_getCoordsForCells'](_0x893efa);_0x2a240d['removeRows'](_0xaace25,{'at':_0x1c4359,'rows':_0x5b2f43-_0x1c4359+0x1});}),_0x34f6ee['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4b4b57=>{const _0x264416=_0x4b4b57['map'](_0x560993=>_0x560993['getContainedElement']()),_0xf546e9=_0x264416[0x0]['findAncestor']('table'),{minColumn:_0x10624d,maxColumn:_0x39f34e}=_0x2a1280['_getCoordsForCells'](_0x264416);_0x2a240d['removeColumns'](_0xf546e9,{'at':_0x10624d,'columns':_0x39f34e-_0x10624d+0x1});});const _0x212812=(_0x1d3fd9,_0xaab406)=>{if(!_0xaab406['subType']||!_0xaab406['subType']['startsWith']('tablePaste'))return;const _0x47c21c=_0xaab406['attributes']['tablePasteChainId'],_0x42e82b=_0x34f6ee['getSuggestions']()['filter'](_0x368744=>_0x368744['isInContent']&&_0x368744['attributes']&&_0x368744['attributes']['tablePasteChainId']==_0x47c21c);_0x42e82b['length']&&_0xaab406['getAllAdjacentSuggestions']()['length']!=_0x42e82b['length']&&_0x42e82b['reduce']((_0xef2d76,_0x29717c)=>(_0xef2d76['next']=_0x29717c,_0x29717c['previous']=_0xef2d76,_0x29717c));};function _0x141b92(_0x19da0d,_0x23c3c7=!0x0){const {id:_0x5b2186,authorId:_0xca8a17}=_0x34f6ee['_splitMarkerName'](_0x19da0d['markerName']),_0x2fcc72=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x33f016=_0x34f6ee['activeMarkers']['includes'](_0x19da0d['markerName']);return _0x33f016&&_0x2fcc72['push']('ck-suggestion-marker--active'),{'classes':_0x2fcc72,'attributes':{'data-suggestion':_0x5b2186,'data-author-id':_0xca8a17},'priority':_0x33f016&&_0x23c3c7?0xbc2:0xbb8};}_0x34f6ee['on']('suggestionLoaded',_0x212812,{'priority':'high'}),_0x34f6ee['on']('suggestionUnloaded',_0x212812,{'priority':'high'}),_0x331a2c['model']['document']['registerPostFixer'](()=>{let _0x40c1f6=!0x1;const _0x29a30c=Array['from'](_0x331a2c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2756af,data:_0x4c0f4f}of _0x29a30c){const {group:_0x50a8e4,type:_0x46fa3a,id:_0x452c5f}=_0x34f6ee['_splitMarkerName'](_0x2756af);if('suggestion'!=_0x50a8e4||'deletion'!=_0x46fa3a||_0x4c0f4f['oldRange'])continue;if(!_0x34f6ee['hasSuggestion'](_0x452c5f))continue;const _0x364521=_0x34f6ee['getSuggestion'](_0x452c5f)['getRanges'](),_0x3c3b4e=_0x331a2c['plugins']['get']('Users')['me'];for(const _0xcb0ce2 of _0x34f6ee['getSuggestions']()){if(!_0xcb0ce2['isInContent']||_0xcb0ce2['author']!=_0x3c3b4e)continue;if('formatBlock'!=_0xcb0ce2['type']||'tablePasteCell'!=_0xcb0ce2['subType'])continue;if(_0xcb0ce2['getRanges']()['every'](_0x3c47f2=>_0x364521['some'](_0x5659ea=>_0x5659ea['containsRange'](_0x3c47f2,!0x0)))){for(const _0xbdf1cf of _0xcb0ce2['getAllAdjacentSuggestions']())_0xbdf1cf['isInContent']&&(_0xbdf1cf['discard'](),_0x40c1f6=!0x0);}}}return _0x40c1f6;}),_0x331a2c['model']['document']['registerPostFixer'](_0x1ad89a=>{const _0x98e094=_0x331a2c['commands']['get']('redo');if(!_0x98e094||!_0x98e094['_createdBatches']['has'](_0x1ad89a['batch']))return!0x1;let _0xf297fb=!0x1;const _0x2f43a5=_0x331a2c['plugins']['get']('Users')['me'],_0xee3328=_0x331a2c['model']['document']['differ']['getChanges'](),_0x11fed7=Array['from'](_0x331a2c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xb00982,data:_0x4e7634})=>{const {group:_0x4e5d50,subType:_0x2062a0,authorId:_0x2ae342}=_0x34f6ee['_splitMarkerName'](_0xb00982);return'suggestion'==_0x4e5d50&&'tablePaste'==_0x2062a0&&_0x2ae342==_0x2f43a5['id']&&!_0x4e7634['oldRange'];});for(const _0x32f477 of _0xee3328){if('insert'!=_0x32f477['type']||'tableCellSuggestion'!=_0x32f477['name']||0x1!=_0x32f477['length'])continue;const _0x3c7002=_0x1ad89a['createRange'](_0x32f477['position'],_0x32f477['position']['getShiftedBy'](0x1));if(!_0x11fed7['find'](({data:_0x50ccf7})=>_0x50ccf7['newRange']['isEqual'](_0x3c7002))){for(const {name:_0x13d095,data:_0x393f5f}of _0x11fed7)if(_0x3c7002['containsRange'](_0x393f5f['newRange'])){_0x1ad89a['updateMarker'](_0x13d095,{'range':_0x3c7002}),_0xf297fb=!0x0;break;}}}return _0xf297fb;}),_0x331a2c['model']['document']['registerPostFixer'](_0x4442a6=>{let _0x24b5f3=!0x1;const _0x285712=_0x331a2c['plugins']['get']('Users')['me'],_0x3f8b81=_0x34f6ee['getSuggestions']()['filter'](_0x1f62e3=>_0x1f62e3['isInContent']&&_0x1f62e3['author']==_0x285712),_0x1ff4a6=new Set(),_0x45ff71=new Set();for(const _0x2108f6 of _0x3f8b81)if('tablePaste'==_0x2108f6['subType'])for(const _0x455684 of _0x2108f6['getMarkers']()){const _0x2a7871=_0x455684['getRange']()['getContainedElement']();if(_0x2a7871){if(_0x2a7871['is']('element','tableCellSuggestion')&&Ue(_0x2a7871)){_0x2108f6['removeMarker'](_0x455684['name']),_0x1ff4a6['add'](_0x2a7871),_0x24b5f3=!0x0;const _0x4fbd96=_0x2a7871['nextSibling'],_0x373ae4=_0x2a7871['previousSibling'],_0x184d78=_0x4fbd96&&_0x4fbd96['is']('element','tableCellSuggestion'),_0x193b37=_0x373ae4&&_0x373ae4['is']('element','tableCellSuggestion');_0x184d78&&!_0x1ff4a6['has'](_0x4fbd96)&&_0x45ff71['add'](_0x4fbd96),_0x193b37&&!_0x1ff4a6['has'](_0x373ae4)&&_0x45ff71['add'](_0x373ae4);}else _0x2a7871['is']('element','paragraph')&&_0x2a7871['isEmpty']&&(_0x2108f6['removeMarker'](_0x455684['name']),_0x24b5f3=!0x0);}}else{if('tablePasteCell'==_0x2108f6['subType']){if(!_0x2108f6['attributes']||!_0x2108f6['attributes']['tablePasteChainId'])continue;const _0x22dc13=_0x2108f6['attributes']['markerAttributes'];if(_0x22dc13&&Object['keys'](_0x22dc13)['length'])continue;const _0x28b39c=_0x2108f6['attributes']['tablePasteChainId'];let _0x384da3=!0x0,_0x539376=!0x0;for(const _0x3382ee of _0x3f8b81)if(_0x3382ee['subType']&&_0x3382ee['subType']['startsWith']('tablePaste')){if(!_0x3382ee['attributes']['tablePasteChainId']){_0x539376=!0x1;break;}if(_0x3382ee['id']!=_0x2108f6['id']&&_0x3382ee['attributes']['tablePasteChainId']==_0x28b39c){_0x384da3=!0x1;break;}}_0x539376&&_0x384da3&&(_0x2108f6['removeMarkers'](),_0x24b5f3=!0x0);}}for(const _0x595dc8 of _0x1ff4a6)_0x4442a6['remove'](_0x595dc8);for(const _0x47bd93 of _0x45ff71)_0x4442a6['unwrap'](_0x47bd93);return _0x24b5f3;}),_0x331a2c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1b80ae=>_0x141b92(_0x1b80ae),'converterPriority':'high'}),_0x331a2c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x51b55f,_0x7e731b)=>_0x7e731b['options']['showSuggestionHighlights']?_0x141b92(_0x51b55f,!0x1):null,'converterPriority':'high'});const _0x3e1d68=_0x331a2c['editing']['view'];this['listenTo'](_0x3e1d68['document'],'clipboardOutput',(_0x313dcf,_0x1b3547)=>{const _0x387663=[];for(const _0x401fd8 of _0x3e1d68['createRangeIn'](_0x1b3547['content'])['getItems']())_0x401fd8['is']('element','suggestion-td')&&_0x387663['push'](_0x401fd8);_0x3e1d68['change'](_0x1645ad=>{for(const _0x25927b of _0x387663)_0x1645ad['move'](_0x1645ad['createRangeIn'](_0x25927b),_0x1645ad['createPositionBefore'](_0x25927b)),_0x1645ad['remove'](_0x25927b);});});}}function Ue(_0x254bc8){if(_0x254bc8['isEmpty'])return!0x0;const _0x4bb306=_0x254bc8['getChild'](0x0);return _0x4bb306['is']('element','paragraph')&&_0x4bb306['isEmpty'];}function De(_0x43562c,_0x570ef3={},_0x567192){for(const {isAnchor:_0x58689f,cellHeight:_0xaa0117,cellWidth:_0x1c64d4}of _0x567192['createTableWalker'](_0x43562c,{'includeAllSlots':!0x0,..._0x570ef3}))if(!_0x58689f||0x1!=_0xaa0117||0x1!=_0x1c64d4)return!0x1;return!0x0;}class Mt extends _0x28b250{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x54c522=this['editor']['plugins']['get']('TrackChangesEditing');_0x54c522['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x54c522['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x54c522['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x54c522['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x54c522['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x54c522['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1b170a,_0x4cc9c6){const _0x40d91d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x243162=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x327aff=_0x4cc9c6['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3cd6b3=_0x243162['getColumnGroupElement'](_0x327aff);let _0x550446=_0x3cd6b3?_0x243162['getTableColumnsWidths'](_0x3cd6b3):null,_0x41bc8=_0x327aff['getAttribute']('tableWidth')||null;const _0x3d03b0=_0x4cc9c6['tableWidth']||_0x41bc8,_0x22f560=_0x4cc9c6['columnWidths']||_0x550446,_0x13cc99=this['editor']['plugins']['get']('Users')['me'];for(const _0x3bb4a1 of _0x40d91d['getSuggestions']()){const _0x5c44d6=_0x3bb4a1['getContainedElement']();if('resizeTable'===_0x3bb4a1['subType']&&_0x5c44d6===_0x327aff){_0x3bb4a1['author']!==_0x13cc99&&_0x3bb4a1['discard']();const _0x1518cf=_0x3bb4a1['data']['commandParams'];_0x41bc8=_0x1518cf[0x0]['tableWidth'],_0x550446=_0x1518cf[0x0]['columnWidths'];break;}}_0x1b170a({'table':_0x327aff,'tableWidth':_0x3d03b0,'columnWidths':_0x22f560}),_0x40d91d['markBlockFormat'](_0x327aff,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x41bc8,'columnWidths':_0x550446}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x19f4a1){if('formatBlock'!=_0x19f4a1['type']&&'formatInline'!=_0x19f4a1['type'])return;const {data:_0xdeda9b}=_0x19f4a1;if(_0xdeda9b&&'resizeTable'===_0xdeda9b['formatGroupId']){const _0xdddb2d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xdddb2d)};}}}class $t extends _0x28b250{['afterInit'](){const _0x36096f=this['editor'];_0x36096f['plugins']['has']('Template')&&_0x36096f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Bt extends _0x28b250{['afterInit'](){const _0x203e1c=this['editor'];if(!_0x203e1c['commands']['get']('insertTableOfContents'))return;_0x203e1c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x18e94a=_0x203e1c['plugins']['get']('TrackChangesEditing'),_0x895a45=_0x203e1c['locale'];_0x18e94a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5d8016=>o(_0x895a45,'ELEMENT_TABLE_OF_CONTENTS',_0x5d8016));}}class Tt extends _0x28b250{['afterInit'](){const _0x90a43d=this['editor'];if(!_0x90a43d['plugins']['has']('Title'))return;const _0x207a35=_0x90a43d['plugins']['get']('TrackChangesEditing');_0x207a35['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x90a43d['locale'],'ELEMENT_TITLE')),_0x90a43d['model']['document']['registerPostFixer'](_0x41557c=>{let _0x170b89=!0x1;const _0xcb023a=Array['from'](_0x90a43d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x6380ac,data:_0x17e7af}of _0xcb023a){const {group:_0x33afd3}=_0x207a35['_splitMarkerName'](_0x6380ac);if('suggestion'!==_0x33afd3||!_0x17e7af['newRange'])continue;const _0x117edf=_0x17e7af['newRange'],_0xe0e9bf=_0x117edf['end']['nodeBefore'];if(!_0xe0e9bf||!_0xe0e9bf['is']('element','title-content'))continue;if(!_0x117edf['start']['isTouching'](_0x117edf['end']))continue;const _0x46fdc2=_0x90a43d['model']['schema']['getNearestSelectionRange'](_0x117edf['end'],'forward');if(_0x46fdc2&&_0x46fdc2['isCollapsed']){const _0x5da359=_0x41557c['createRange'](_0x117edf['start'],_0x46fdc2['start']);_0x5da359['isEqual'](_0x117edf)||(_0x41557c['updateMarker'](_0x6380ac,{'range':_0x5da359}),_0x170b89=!0x0);}_0x170b89||(_0x41557c['removeMarker'](_0x6380ac),_0x170b89=!0x0);}return _0x170b89;});}}class xt extends _0x28b250{['afterInit'](){const _0x559e66=this['editor'],_0x2d187e=_0x559e66['plugins']['get']('TrackChangesEditing');_0x559e66['plugins']['has']('Uploadcare')&&(_0x2d187e['enableCommand']('uploadcare'),_0x559e66['plugins']['has']('UploadcareImageEdit')&&(_0x2d187e['enableCommand']('uploadcareImageEdit'),_0x2d187e['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2d187e['registerBlockAttribute']('uploadcareImageId'),_0x2d187e['descriptionFactory']['registerDescriptionCallback'](_0x5434ff=>{if('attribute'!=_0x5434ff['type'])return;const {data:_0x34798e}=_0x5434ff;return _0x34798e&&'uploadcareImageId'==_0x34798e['key']?{'type':'format','content':''}:void 0x0;})));}}class Ot extends _0x28b250{['afterInit'](){const _0x7d61a6=this['editor'],_0x4966e8=_0x7d61a6['plugins']['get']('TrackChangesEditing');_0x7d61a6['plugins']['has']('UndoEditing')&&(_0x4966e8['enableCommand']('undo'),_0x4966e8['enableCommand']('redo'));}}class Rt extends _0x28b250{static get['requires'](){return[_t];}['afterInit'](){const _0x45da15=this['editor'];if(!_0x45da15['plugins']['has']('TableCaptionEditing'))return;_0x45da15['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x28b250{['tableProperties'];['tableCellProperties'];constructor(_0x20e27a){super(_0x20e27a),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 _0x4be923=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x421fd9 of this['tableProperties'])_0x4be923['enableCommand'](_0x421fd9,(_0x209ead,_0x3477e1)=>{const _0x32fd04=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x421fd9,[_0x32fd04],this['tableProperties'],'tableProperties',_0x209ead,_0x3477e1);});_0x4be923['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4be923['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4be923['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3a24f0,_0x10307f)=>this['handleDiscardAction'](this['tableProperties'],_0x3a24f0,_0x10307f)),_0x4be923['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x53e764 of this['tableCellProperties'])_0x4be923['enableCommand'](_0x53e764,(_0x3cdf6b,_0x58124f)=>{const _0x47e5aa=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x53e764,_0x47e5aa,this['tableCellProperties'],'tableCellProperties',_0x3cdf6b,_0x58124f);});_0x4be923['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4be923['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4be923['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3ac0d8,_0x3ec10f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3ac0d8,_0x3ec10f)),_0x4be923['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4be923['descriptionFactory']['registerDescriptionCallback'](_0x3d2e95=>this['handleSuggestionDescription'](_0x3d2e95));}['_handlePropertyChange'](_0x13fe75,_0x1aac79,_0x3b1c95,_0x3dd696,_0x20f9c5,_0x34b472){const _0x5c8406=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x34b472['batch'],()=>{for(const _0x161d33 of _0x1aac79){if(this['_getSuggestion'](_0x161d33,_0x3dd696))_0x20f9c5(_0x34b472);else{const _0x251957={};for(const _0x5b3aa1 of _0x3b1c95){const _0x58d079=_0x161d33['getAttribute'](_0x5b3aa1);void 0x0!==_0x58d079&&(_0x251957[_0x5b3aa1]=_0x58d079);}_0x20f9c5(_0x34b472),_0x5c8406['markBlockFormat'](_0x161d33,{'commandParams':[_0x251957]},[],_0x3dd696);}}});}['handleDiscardAction'](_0x4ce04c,_0x2d2cb8,_0x444129){const _0x57501c=_0x2d2cb8[0x0]['start']['nodeAfter'],_0x2efd7=_0x444129['commandParams'][0x0];this['editor']['model']['change'](_0x1874fa=>{for(const _0x54e235 of _0x4ce04c)void 0x0!==_0x2efd7[_0x54e235]?_0x1874fa['setAttribute'](_0x54e235,_0x2efd7[_0x54e235],_0x57501c):_0x1874fa['removeAttribute'](_0x54e235,_0x57501c);});}['handleSuggestionDescription'](_0x4ae024){if(_0x4ae024['data'])switch(_0x4ae024['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'](_0x459f40,_0x37b883){const _0xe389c2=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x23b92f of _0xe389c2['getSuggestions']({'skipNotAttached':!0x0})){const _0x5f4bc2=_0x23b92f['getContainedElement']();if(_0x23b92f['subType']===_0x37b883&&_0x5f4bc2===_0x459f40)return _0x23b92f;}return null;}}const m='$elementName';class d extends _0x28b250{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x148996,_0x305085,R,E,U,V,F,L,G,J,K,H,W,Q,X,Y,Z,tt,it,nt,et,st,rt,ot,at,ct,ut,ht,gt,pt,ft,q,z,lt,dt,mt,kt,wt,bt,yt,St,jt,It,At,_t,Ct,vt,Nt,Rt,Dt,Mt,Bt,Et,$t,Tt,xt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3322eb){super(_0x3322eb),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x59bf40,_0x4e7081,_0x4b8054,_0x5763b8)=>{this['_model']['change'](()=>{for(const _0x48510b of[..._0x5763b8,..._0x4b8054])this['_model']['markers']['has'](_0x48510b)&&_0x3322eb['editing']['reconvertMarker'](_0x48510b);});}),this['descriptionFactory']=new O(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3322eb['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(),_0x3322eb['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3322eb['config']['get']('trackChanges.trackFormatChanges'),_0x3322eb['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3322eb['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new D(_0x3322eb,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x30804d=this['editor'],_0x2f7a22=(_0x395b8c,_0x18911e)=>{if('attribute'!=_0x395b8c)return'ck-suggestion-marker-'+_0x395b8c;const _0x1f3a25=_0x18911e['split']('|')[0x0];return this['_isBlockAttribute'](_0x1f3a25)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x30804d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2343fb=>{const {id:_0x328bcd,authorId:_0x457972,type:_0x4d865c,subType:_0x3927db}=this['_splitMarkerName'](_0x2343fb['markerName']),_0x50b12e=['ck-suggestion-marker',_0x2f7a22(_0x4d865c,_0x3927db)];let _0x323090=0xbb8;return this['activeMarkers']['includes'](_0x2343fb['markerName'])&&(_0x50b12e['push']('ck-suggestion-marker--active'),_0x323090=0xbc2),'deletion'==_0x4d865c&&(_0x323090+=0x5),{'classes':_0x50b12e,'attributes':{'data-suggestion':_0x328bcd,'data-author-id':_0x457972},'priority':_0x323090};}}),_0x30804d['conversion']['for']('dataDowncast')['add'](_0x176016=>{_0x176016['on']('addMarker:suggestion',(_0x44bd95,_0x401b9e,_0x103460)=>{if(!_0x103460['options']['showSuggestionHighlights'])return;const _0x417896=_0x401b9e['item'];if(!_0x417896)return;const _0x32d3d0=_0x103460['mapper']['toViewElement'](_0x417896);_0x30804d['model']['schema']['isObject'](_0x417896)&&_0x32d3d0&&!_0x32d3d0['getCustomProperty']('widget')&&_0x32d3d0['is']('containerElement')&&_0x5b3197(_0x32d3d0,_0x103460['writer']);},{'priority':'high'});}),_0x30804d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5d9324,_0x4e1e67)=>{if(!_0x4e1e67['options']['showSuggestionHighlights'])return null;const {id:_0x50bfee,authorId:_0x125d99,type:_0x4c923b,subType:_0x9e9c96}=this['_splitMarkerName'](_0x5d9324['markerName']);return{'classes':['ck-suggestion-marker',_0x2f7a22(_0x4c923b,_0x9e9c96)],'priority':0xbb8,'attributes':{'data-suggestion':_0x50bfee,'data-author-id':_0x125d99}};}});const _0x5981b5=({showActiveMarkers:_0xda0220=!0x0,isAttributeSuggestion:_0x4763c4=!0x1}={})=>(_0x1ada13,_0x53325b,_0x24ef38)=>{if(!_0x53325b['item'])return;const {id:_0x22e76a,authorId:_0x58b4cb}=this['_splitMarkerName'](_0x53325b['markerName']);if(_0x4763c4){const _0x258966=this['_suggestions']['get'](_0x22e76a),_0x3e7665=this['_getAttributeKey'](_0x258966);if(!this['_isBlockAttribute'](_0x3e7665))return;}if(_0x53325b['item']['is']('selection'))return void _0x24ef38['consumable']['consume'](_0x53325b['item'],_0x1ada13['name']);const _0x1b38ab=_0x24ef38['mapper']['toViewElement'](_0x53325b['item']);if(_0x53325b['item']['is']('element')&&_0x30804d['model']['schema']['isBlock'](_0x53325b['item'])&&!_0x1b38ab['getCustomProperty']('addHighlight')){_0x24ef38['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1b38ab),_0x24ef38['writer']['setAttribute']('data-suggestion',_0x22e76a,_0x1b38ab),_0x24ef38['writer']['setAttribute']('data-author-id',_0x58b4cb,_0x1b38ab),_0x24ef38['mapper']['bindElementToMarker'](_0x1b38ab,_0x53325b['markerName']),_0xda0220&&(this['activeMarkers']['includes'](_0x53325b['markerName'])?_0x24ef38['writer']['addClass']('ck-suggestion-marker--active',_0x1b38ab):_0x24ef38['writer']['removeClass']('ck-suggestion-marker--active',_0x1b38ab));for(const _0x19a12d of _0x30804d['model']['createRangeIn'](_0x53325b['item'])['getItems']())_0x24ef38['consumable']['consume'](_0x19a12d,_0x1ada13['name']);_0x24ef38['consumable']['consume'](_0x53325b['item'],_0x1ada13['name']);}};_0x30804d['conversion']['for']('dataDowncast')['add'](_0x199c2e=>{_0x199c2e['on']('addMarker:suggestion:formatBlock',(_0x452f63,_0x2b7676,_0x19148c)=>{_0x19148c['options']['showSuggestionHighlights']&&_0x5981b5({'showActiveMarkers':!0x1})(_0x452f63,_0x2b7676,_0x19148c);},{'priority':'highest'});}),_0x30804d['conversion']['for']('dataDowncast')['add'](_0x1caca3=>{_0x1caca3['on']('addMarker:suggestion:attribute',(_0x4b5f95,_0x1f0ed7,_0x322b85)=>{_0x322b85['options']['showSuggestionHighlights']&&_0x5981b5({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4b5f95,_0x1f0ed7,_0x322b85);},{'priority':'highest'});}),_0x30804d['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x56eda9,_0x1100f3)=>{if(_0x1100f3['options']['showSuggestionHighlights']){const {id:_0x5a3f9a,authorId:_0xc6f669}=this['_splitMarkerName'](_0x56eda9);return _0x56eda9['includes'](':split')||_0x56eda9['includes'](':merge')?{'group':'suggestion','name':_0x56eda9['substr'](0xb),'attributes':{'data-suggestion':_0x5a3f9a,'data-author-id':_0xc6f669}}:null;}return{'group':'suggestion','name':_0x56eda9['substr'](0xb)};}}),_0x30804d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xa104ea,{writer:_0x704d5a})=>{let _0x562929='suggestion:'+_0xa104ea['getAttribute']('suggestion-type')+':'+_0xa104ea['getAttribute']('id');return _0xa104ea['getAttribute']('marker-count')&&(_0x562929+=':'+_0xa104ea['getAttribute']('marker-count')),_0x704d5a['createElement']('$marker',{'data-name':_0x562929});}}),_0x30804d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x30804d['conversion']['for']('editingDowncast')['add'](_0x5c4404=>{_0x5c4404['on']('addMarker:suggestion:formatBlock',_0x5981b5(),{'priority':'high'});}),_0x30804d['conversion']['for']('editingDowncast')['add'](_0x3ecedb=>{_0x3ecedb['on']('addMarker:suggestion:attribute',_0x5981b5({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x30804d['conversion']['for']('editingDowncast')['add'](_0x14c532=>{_0x14c532['on']('removeMarker:suggestion:formatBlock',(_0x394b9c,_0x4934bf,_0x2549d9)=>{const _0x26bc28=_0x2549d9['mapper']['markerNameToElements'](_0x4934bf['markerName']);if(_0x26bc28){for(const _0x113e91 of _0x26bc28)_0x113e91['getCustomProperty']('addHighlight')||(_0x2549d9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x113e91),_0x2549d9['writer']['removeAttribute']('data-suggestion',_0x113e91),_0x2549d9['writer']['removeAttribute']('data-author-id',_0x113e91),_0x2549d9['mapper']['unbindElementFromMarkerName'](_0x113e91,_0x4934bf['markerName']));}},{'priority':'high'});}),_0x30804d['conversion']['for']('editingDowncast')['add'](_0x2d98a5=>{_0x2d98a5['on']('removeMarker:suggestion:attribute',(_0x49c639,_0x212373,_0x5e9295)=>{const _0x3c9f30=_0x5e9295['mapper']['markerNameToElements'](_0x212373['markerName']);if(!_0x3c9f30)return;const {id:_0x110ef5}=this['_splitMarkerName'](_0x212373['markerName']),_0x13b684=this['_suggestions']['get'](_0x110ef5),_0x75a639=this['_getAttributeKey'](_0x13b684);if(this['_isBlockAttribute'](_0x75a639)){for(const _0x290850 of _0x3c9f30)_0x290850['getCustomProperty']('addHighlight')||(_0x5e9295['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x290850),_0x5e9295['writer']['removeAttribute']('data-suggestion',_0x290850),_0x5e9295['writer']['removeAttribute']('data-author-id',_0x290850),_0x5e9295['mapper']['unbindElementFromMarkerName'](_0x290850,_0x212373['markerName']));}},{'priority':'high'});}),_0x30804d['model']['document']['registerPostFixer'](_0x8aed8c=>{let _0x3f0bcc=!0x1;const _0x8c19a3=Array['from'](_0x30804d['model']['document']['differ']['getChangedMarkers']()),_0x4a2303=new Set();for(const {name:_0x3e6e5d,data:_0xafbb48}of _0x8c19a3){const {group:_0x5aa178,type:_0x17353b,subType:_0x539a10,id:_0x21a7eb}=this['_splitMarkerName'](_0x3e6e5d);if('suggestion'!==_0x5aa178)continue;const _0x10bc48=this['_suggestions']['get'](_0x21a7eb);if(null!=_0xafbb48['newRange']){'formatInline'==_0x17353b&&(_0x3f0bcc=_0x3f0bcc||Gt(_0xafbb48['newRange'],_0x3e6e5d,_0x8aed8c,_0x30804d['model']['schema']));const _0x393bc8='attribute'==_0x17353b&&this['_isBlockAttribute'](_0x539a10['split']('|')[0x0]);if(_0xafbb48['newRange']['isCollapsed']||'$graveyard'==_0xafbb48['newRange']['root']['rootName']||'formatBlock'==_0x17353b&&!Jt(_0xafbb48['newRange'])||_0x393bc8&&!Jt(_0xafbb48['newRange'])||'deletion'==_0x17353b&&!(!Pt(_0x565699=_0xafbb48['newRange'])&&!function(_0x19790b){return _0x19790b['start']['parent']==_0x19790b['end']['nodeBefore']&&_0x19790b['start']['isAtEnd'];}(_0x565699)))_0x8aed8c['removeMarker'](_0x3e6e5d),_0x3f0bcc=!0x0;else{if(!_0x10bc48||!_0x10bc48['isInContent'])continue;if(_0xafbb48['newRange']&&_0xafbb48['oldRange']&&_0xafbb48['newRange']['isEqual'](_0xafbb48['oldRange']))continue;_0x4a2303['add'](_0x10bc48);}}}var _0x565699;return _0x4a2303['size']>0x0&&(_0x3f0bcc=!!this['_joinWithAdjacentSuggestions'](_0x4a2303)||_0x3f0bcc),_0x3f0bcc;}),_0x30804d['model']['document']['registerPostFixer'](_0x2d46ad=>{let _0x210286=!0x1;for(const _0x236775 of _0x30804d['model']['document']['differ']['getChanges']())if('insert'==_0x236775['type'])for(const _0x54e775 of this['_suggestions']['values']()){if(_0x54e775['isMultiRange']||!_0x54e775['isInContent'])continue;const _0x4e71a3='formatBlock'==_0x54e775['type'],_0x5d597b=this['_getAttributeKey'](_0x54e775),_0x56da5a=_0x5d597b&&this['_isBlockAttribute'](_0x5d597b);if(!_0x4e71a3&&!_0x56da5a)continue;const _0xcc6376=_0x54e775['getFirstRange']();if(_0xcc6376['start']['parent']!=_0xcc6376['end']['parent']&&!_0xcc6376['end']['isAtEnd']){const _0x3d75f4=_0x30804d['model']['createPositionAt'](_0xcc6376['start']['nodeAfter'],'end'),_0x12992e=_0x30804d['model']['createRange'](_0xcc6376['start'],_0x3d75f4);_0x2d46ad['updateMarker'](_0x54e775['getFirstMarker'](),{'range':_0x12992e}),_0x210286=!0x0;}}return _0x210286;}),_0x30804d['model']['document']['registerPostFixer'](_0x262954=>this['_processAttributeChanges'](_0x262954)),_0x30804d['model']['document']['registerPostFixer'](_0x24588e=>!_0x24588e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x24588e)),_0x30804d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x30804d['model']['document']['on']('change:data',(_0x105a9e,_0x55e050)=>{if(!_0x55e050['isLocal']||_0x55e050['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xd3e023=_0x30804d['model']['document']['differ']['getChanges']();if(0x0==_0xd3e023['length'])return;const _0xedf205=[],_0x1b9b2a=_0xd3e023['filter'](_0x15e37a=>'attribute'==_0x15e37a['type']),_0x9eb926=_0xd3e023['filter'](_0x331125=>'insert'==_0x331125['type']&&'$text'!=_0x331125['name']);for(const _0x49ae1a of _0x1b9b2a)this['_isRegisteredAttribute'](_0x49ae1a['attributeKey'])&&_0xedf205['push']({'key':_0x49ae1a['attributeKey'],'newValue':_0x49ae1a['attributeNewValue'],'oldValue':_0x49ae1a['attributeOldValue'],'range':Kt(_0x49ae1a['range'],_0x30804d['model'])});for(const _0xcc6821 of _0x9eb926){if('rename'!=_0xcc6821['action']&&'refresh'!=_0xcc6821['action'])continue;const _0x2cac07=Ht(_0xcc6821['position']['nodeAfter'],_0x30804d['model']),_0x23fb14=_0xcc6821['before'];'rename'==_0xcc6821['action']&&_0xedf205['push']({'key':m,'newValue':_0xcc6821['name'],'oldValue':_0x23fb14['name'],'range':_0x2cac07});for(const [_0x585fb3,_0x20bd86]of _0x23fb14['attributes']){if(!this['_isRegisteredAttribute'](_0x585fb3))continue;const _0x2b52b9=_0xcc6821['attributes']['get'](_0x585fb3);_0x20bd86!==_0x2b52b9&&_0xedf205['push']({'key':_0x585fb3,'newValue':_0x2b52b9,'oldValue':_0x20bd86,'range':_0x2cac07});}for(const [_0xe8df64,_0x26d045]of _0xcc6821['attributes'])this['_isRegisteredAttribute'](_0xe8df64)&&(_0x23fb14['attributes']['has'](_0xe8df64)||_0xedf205['push']({'key':_0xe8df64,'newValue':_0x26d045,'oldValue':null,'range':_0x2cac07}));}0x0!=_0xedf205['length']&&_0x30804d['model']['enqueueChange'](_0x55e050,_0x59dacd=>{const _0x4b415e=_0x370ed3();for(const {range:_0x18fd9e,key:_0x46bb3a,oldValue:_0x76b6f6,newValue:_0x2b4912}of _0xedf205)this['markAttributeChange'](_0x18fd9e,_0x46bb3a,_0x76b6f6,_0x2b4912,{'groupId':_0x4b415e});this['_reduceExistingSuggestions'](_0x59dacd,_0xedf205);});},{'priority':'lowest'}),_0x30804d['model']['markers']['on']('update:suggestion',(_0x35350b,_0x45f78f,_0x1a7d60)=>{if(null==_0x1a7d60){const {id:_0x5438c7}=this['_splitMarkerName'](_0x45f78f['name']),_0x3f2208=this['_suggestions']['get'](_0x5438c7);_0x3f2208&&_0x3f2208['addMarkerName'](_0x45f78f['name']);}}),_0x30804d['model']['document']['on']('change:data',()=>{const _0x253b5=Array['from'](_0x30804d['model']['document']['differ']['getChangedMarkers']())['filter'](_0x23217f=>'suggestion'===this['_splitMarkerName'](_0x23217f['name'])['group']);if(0x0===_0x253b5['length'])return;_0x253b5['sort']((_0x159d19,_0x3edcd9)=>{const _0x4cb2f9=_0x159d19['data']['oldRange'],_0x164c5f=_0x3edcd9['data']['oldRange'];return null===_0x4cb2f9&&null===_0x164c5f?0x0:null===_0x4cb2f9&&null!==_0x164c5f?-0x1:null!==_0x4cb2f9&&null===_0x164c5f?0x1:_0x4cb2f9['start']['isBefore'](_0x164c5f['start'])?-0x1:0x1;});const _0x5a64f9=new Set(),_0xee4263=new Set();for(const {name:_0x41e058,data:_0x4ebd9a}of _0x253b5){const {id:_0x326757}=this['_splitMarkerName'](_0x41e058);if(null===_0x4ebd9a['oldRange']){const _0x5f2890=this['_handleNewSuggestionMarker'](_0x41e058);_0xee4263['add'](_0x5f2890);}else{const _0x5deb72=this['_suggestions']['get'](_0x326757);null!==_0x4ebd9a['newRange']||_0x5deb72['isInContent']?(_0x5a64f9['add'](_0x5deb72['head']),_0xee4263['add'](_0x5deb72)):this['_removeSuggestion'](_0x5deb72);}}_0xee4263['size']>0x0&&this['_refreshSuggestionsChain'](_0xee4263);for(const _0x3d218f of _0x5a64f9)this['fire']('suggestionChanged',_0x3d218f);}),_0x30804d['model']['on']('applyOperation',(_0x130b49,_0x5ddeb6)=>{const _0x511274=_0x5ddeb6[0x0];if(!this['_suggestions']['size'])return;if(!_0x511274['isDocumentOperation'])return;if(_0x511274['batch']['isUndo']||!_0x511274['batch']['isLocal'])return;let _0x57002c,_0x43f3fd;switch(_0x511274['type']){case'insert':_0x57002c=_0x30804d['model']['createPositionAt'](_0x511274['position']),_0x43f3fd=_0x57002c['getShiftedBy'](_0x511274['howMany']);break;case'split':_0x57002c=_0x30804d['model']['createPositionAt'](_0x511274['splitPosition']),_0x43f3fd=_0x30804d['model']['createPositionAt'](_0x511274['moveTargetPosition']);break;case'move':_0x57002c=_0x30804d['model']['createPositionAt'](_0x511274['targetPosition']),_0x43f3fd=_0x57002c['getShiftedBy'](_0x511274['howMany']);break;default:return;}const _0x4a5b32=_0x30804d['model']['createRange'](_0x57002c,_0x43f3fd);_0x30804d['model']['change'](()=>{for(const {suggestion:_0x27a6ce,meta:_0x1158bb}of this['_findSuggestions'](_0x4a5b32)){if(_0x27a6ce['isMultiRange'])continue;if('formatInline'==_0x27a6ce['type'])continue;const _0x516050=this['_getAttributeKey'](_0x27a6ce);if(_0x516050&&this['_isBlockAttribute'](_0x516050)&&'split'!=_0x511274['type'])continue;const _0x2e559a=_0x27a6ce['data']&&_0x27a6ce['data']['multipleBlocks'];('formatBlock'!=_0x27a6ce['type']||'split'==_0x511274['type']&&!_0x2e559a)&&(_0x1158bb['containsRangeInObject']||'insertion'==_0x27a6ce['type']&&_0x1158bb['isOwn']||_0x27a6ce['getFirstRange']()['containsRange'](_0x4a5b32)&&this['_breakSuggestionMarker'](_0x27a6ce,_0x57002c,_0x43f3fd));}});},{'priority':'lowest'}),_0x30804d['model']['on']('deleteContent',(_0x581ff7,_0x6968cb)=>{const _0x49577d=_0x6968cb[0x0],_0x4ea21a=_0x6968cb[0x1];if(_0x4ea21a&&_0x4ea21a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x49577d['isCollapsed'])return;const _0x2e6371=_0x30804d['model']['schema'],{start:_0x43936f,end:_0x80d442}=_0x49577d['getFirstRange'](),_0x7895fb=_0x43936f['nodeAfter']&&_0x2e6371['isLimit'](_0x43936f['nodeAfter'])?null:_0x2e6371['getNearestSelectionRange'](_0x43936f,'forward'),_0x50631b=_0x80d442['nodeBefore']&&_0x2e6371['isLimit'](_0x80d442['nodeBefore'])?null:_0x2e6371['getNearestSelectionRange'](_0x80d442,'backward'),_0x50e193=_0x30804d['model']['createRange'](_0x7895fb?_0x7895fb['start']:_0x43936f,_0x50631b?_0x50631b['end']:_0x80d442);_0x30804d['model']['change'](_0x5bee86=>{this['markDeletion'](_0x50e193);const _0xc1175c=_0x30804d['model']['schema']['getNearestSelectionRange'](_0x50e193['start']);_0x49577d['is']('documentSelection')?_0x5bee86['setSelection'](_0xc1175c):_0x49577d['setTo'](_0xc1175c);}),_0x581ff7['stop']();},{'priority':_0x4066a6['normal']+0xa}),_0x30804d['model']['on']('insertContent',(_0xf9402a,_0x5b1988)=>{const _0x47cf15=_0x5b1988[_0x5b1988['length']-0x1];_0x47cf15&&_0x47cf15['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x30804d['model']['change'](()=>{let _0x70b6e1=_0x30804d['model']['insertContent'](_0x5b1988[0x0],_0x5b1988[0x1],_0x5b1988[0x2],{'forceDefaultExecution':!0x0});if(!_0x70b6e1)return;_0xf9402a['return']=_0x70b6e1['clone']();const _0x3cf28d=_0x70b6e1['end']['nodeBefore'],_0x24e2db=_0x30804d['model']['schema'];_0x3cf28d&&_0x24e2db['isBlock'](_0x3cf28d)&&!_0x24e2db['isObject'](_0x3cf28d)&&(_0x70b6e1=_0x30804d['model']['createRange'](_0x70b6e1['start'],_0x30804d['model']['createPositionAt'](_0x3cf28d,'end'))),this['markInsertion'](_0x70b6e1);}),_0xf9402a['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x28ea65=new M(_0x30804d,this['_suggestions']);_0x30804d['commands']['add']('acceptSuggestion',_0x28ea65),this['enableCommand']('acceptSuggestion');const _0x3c6040=new $(_0x30804d,this['_suggestions']);_0x30804d['commands']['add']('discardSuggestion',_0x3c6040),this['enableCommand']('discardSuggestion'),_0x30804d['commands']['add']('acceptAllSuggestions',new B(_0x30804d,_0x28ea65,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x30804d['commands']['add']('discardAllSuggestions',new B(_0x30804d,_0x3c6040,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x30804d['commands']['add']('acceptSelectedSuggestions',new T(_0x30804d,_0x28ea65,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x30804d['commands']['add']('discardSelectedSuggestions',new T(_0x30804d,_0x3c6040,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5bb1d2=_0x30804d['plugins']['get']('CommentsRepository');this['listenTo'](_0x5bb1d2,'addComment',(_0x2f73b4,{threadId:_0x2c4087})=>{const _0x3d7ca5=this['_suggestions']['get'](_0x2c4087);_0x3d7ca5&&_0x3d7ca5['commentThread']&&0x1===_0x3d7ca5['commentThread']['length']&&this['_updateSuggestionData'](_0x2c4087,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5bb1d2,'removeComment',(_0x500963,{threadId:_0xbe4adb})=>{const _0x3a3c15=this['_suggestions']['get'](_0xbe4adb);_0x3a3c15&&_0x3a3c15['commentThread']&&!_0x3a3c15['commentThread']['length']&&this['_updateSuggestionData'](_0xbe4adb,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3c49e8){const _0x5203e1=_0x29d374([0x79,0x4a,0x61,0x55,0x35,0x41,0x38,0x30,0x4b,0x37,0x68,0x58,0x4e,0x44,0x66,0x31,0x33,0x4c,0x52,0x6c,0x59,0x42,0x64,0x32,0x48,0x49,0x74,0x67,0x65,0x62,0x45,0x50,0x72,0x34,0x77,0x54,0x46,0x70,0x76,0x69,0x5a,0x75,0x6e,0x36,0x73,0x6d,0x47,0x6f,0x51,0x71,0x6b,0x6a,0x39,0x63,0x57,0x4f,0x78,0x56,0x53,0x43,0x7a,0x4d]),_0x53649d=0x32316185,_0x1ce0fc=0x32360bad^_0x53649d,_0x51fe0a=window[_0x29d374([0x44,0x61,0x74,0x65])][_0x29d374([0x6e,0x6f,0x77])](),_0x337019=_0x3c49e8[_0x29d374([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x139c39=new window[(_0x29d374([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x397562=>{_0x337019[_0x29d374([0x6f,0x6e,0x63,0x65])](_0x29d374([0x72,0x65,0x61,0x64,0x79]),_0x397562);}),_0xd7bf9f={[_0x29d374([0x6b,0x74,0x79])]:_0x29d374([0x45,0x43]),[_0x29d374([0x75,0x73,0x65])]:_0x29d374([0x73,0x69,0x67]),[_0x29d374([0x63,0x72,0x76])]:_0x29d374([0x50,0x2d,0x32,0x35,0x36]),[_0x29d374([0x78])]:_0x29d374([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]),[_0x29d374([0x79])]:_0x29d374([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]),[_0x29d374([0x61,0x6c,0x67])]:_0x29d374([0x45,0x53,0x32,0x35,0x36])},_0x2ffcf9=_0x337019[_0x29d374([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x29d374([0x67,0x65,0x74])](_0x29d374([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xb4461(){let _0x5a7c1b,_0x453517=null,_0x4730e1=null;try{if(_0x2ffcf9==_0x29d374([0x47,0x50,0x4c]))return _0x29d374([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a7c1b=_0x421170(),!_0x5a7c1b)return _0x29d374([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a7c1b[_0x29d374([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4730e1=_0x365602(_0x5a7c1b[_0x29d374([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a7c1b[_0x29d374([0x6a,0x74,0x69])])),await _0x481037()?_0x2cd4cc()?_0x4306d4()?_0x29d374([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xb6c353()?(_0x5a7c1b[_0x29d374([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29d374([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x453517=_0x4f5f97(_0x29d374([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5a7c1b[_0x29d374([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29d374([0x74,0x72,0x69,0x61,0x6c])&&(_0x453517=_0x4f5f97(_0x29d374([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x114c49()):_0x29d374([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x29d374([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x29d374([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x29d374([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4306d4(){const _0x23129d=[_0x29d374([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x29d374([0x74,0x72,0x69,0x61,0x6c])][_0x29d374([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a7c1b[_0x29d374([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x51fe0a/0x3e8:0xe10*_0x1ce0fc;return _0x5a7c1b[_0x29d374([0x65,0x78,0x70])]<_0x23129d;}function _0x2cd4cc(){const _0x4a8072=_0x5a7c1b[_0x29d374([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4a8072)return!0x1;if(_0x4a8072[_0x29d374([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29d374([0x2a])))return!0x0;if(_0x4a8072[_0x29d374([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29d374([0x54,0x43])))return!0x0;if(_0x4a8072[_0x29d374([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29d374([0x52,0x54,0x43]))){if(_0x596f32())return!0x0;if(_0x565eca()||_0x5aa2e0())return!0x0;}return!0x1;}function _0xb6c353(){const _0x401760=_0x5a7c1b[_0x29d374([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x401760||0x0==_0x401760[_0x29d374([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x10a161}=new URL(window[_0x29d374([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x401760[_0x29d374([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10a161))return!0x0;const _0x2bb96e=_0x10a161[_0x29d374([0x73,0x70,0x6c,0x69,0x74])](_0x29d374([0x2e]));return _0x401760[_0x29d374([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x361128=>_0x361128[_0x29d374([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29d374([0x2a])))[_0x29d374([0x6d,0x61,0x70])](_0x459f38=>_0x459f38[_0x29d374([0x73,0x70,0x6c,0x69,0x74])](_0x29d374([0x2e])))[_0x29d374([0x73,0x6f,0x6d,0x65])](_0xf79a2e=>_0x2bb96e[_0x29d374([0x65,0x76,0x65,0x72,0x79])]((_0x4ccb4b,_0x34a94d)=>_0xf79a2e[_0x34a94d]===_0x4ccb4b||_0xf79a2e[_0x34a94d]===_0x29d374([0x2a])));}function _0x114c49(){return _0x453517&&_0x4730e1?new window[(_0x29d374([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x17f056,_0x19588b)=>{_0x453517[_0x29d374([0x74,0x68,0x65,0x6e])](_0x17f056,_0x19588b),_0x4730e1[_0x29d374([0x74,0x68,0x65,0x6e])](_0x2fb2ad=>{_0x2fb2ad!=_0x29d374([0x56,0x61,0x6c,0x69,0x64])&&_0x17f056(_0x2fb2ad);},_0x19588b);}):_0x453517||_0x4730e1||_0x29d374([0x56,0x61,0x6c,0x69,0x64]);}}function _0x365602(_0x3c192e,_0x21acf2){return new window[(_0x29d374([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x326581=>{if(_0xc07f92())return _0x326581(_0x29d374([0x56,0x61,0x6c,0x69,0x64]));_0x4eaf87(),_0x337019[_0x29d374([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x29d374([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2bca29=!0x1;const _0x510d1b=_0x370ed3();function _0x34168d(_0x5b5b8a){return!!_0x5b5b8a&&(typeof _0x5b5b8a===_0x29d374([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5b5b8a===_0x29d374([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5b5b8a[_0x29d374([0x74,0x68,0x65,0x6e])]===_0x29d374([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5b5b8a[_0x29d374([0x63,0x61,0x74,0x63,0x68])]===_0x29d374([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x7eba59(_0x4377e4){_0x173c18(_0x4377e4)[_0x29d374([0x74,0x68,0x65,0x6e])](_0x36dc1c=>{if(!_0x36dc1c||_0x36dc1c[_0x29d374([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x29d374([0x6f,0x6b]))return _0x29d374([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1255d5(_0x5de6c0(_0x510d1b+_0x21acf2))!=_0x36dc1c[_0x29d374([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x29d374([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x29d374([0x56,0x61,0x6c,0x69,0x64]);})[_0x29d374([0x74,0x68,0x65,0x6e])](_0x2b6f81=>(_0x2b6830(),_0x2b6f81),()=>{const _0x2952f7=_0xa1f65a();return null==_0x2952f7?(_0x2b6830(),_0x29d374([0x56,0x61,0x6c,0x69,0x64])):_0x29d374(_0x51fe0a-_0x2952f7>(0x163de585^_0x53649d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x29d374([0x74,0x68,0x65,0x6e])](_0x326581)[_0x29d374([0x63,0x61,0x74,0x63,0x68])](()=>{_0x326581(_0x29d374([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d0b78=0x32078f05^_0x53649d;function _0x2b6830(){const _0x4a96f2=_0x29d374([0x6c,0x6c,0x63,0x74,0x2d])+_0x1255d5(_0x5de6c0(_0x3c192e)),_0x3513be=_0x1aa936(_0x1255d5(window[_0x29d374([0x4d,0x61,0x74,0x68])][_0x29d374([0x63,0x65,0x69,0x6c])](_0x51fe0a/_0x4d0b78)));window[_0x29d374([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29d374([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a96f2,_0x3513be);}function _0xa1f65a(){const _0x2e000=_0x29d374([0x6c,0x6c,0x63,0x74,0x2d])+_0x1255d5(_0x5de6c0(_0x3c192e)),_0x148ccf=window[_0x29d374([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29d374([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e000);return _0x148ccf?window[_0x29d374([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1aa936(_0x148ccf),0x10)*_0x4d0b78:null;}function _0x173c18(_0x4d6912){return new window[(_0x29d374([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55c0d7,_0x1fdb14)=>{_0x4d6912[_0x29d374([0x74,0x68,0x65,0x6e])](_0x55c0d7,_0x1fdb14),window[_0x29d374([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1fdb14,0x3230b545^_0x53649d);});}}_0x337019[_0x29d374([0x6f,0x6e])](_0x29d374([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xfc931a,_0x1946f1)=>{if(_0x1946f1[0x0]!=_0x3c192e)return _0x326581(_0x29d374([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1946f1[0x1]={..._0x1946f1[0x1],[_0x29d374([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x510d1b};},{[_0x29d374([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29d374([0x68,0x69,0x67,0x68])}),_0x337019[_0x29d374([0x6f,0x6e])](_0x29d374([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1e07c2=>{_0x34168d(_0x1e07c2[_0x29d374([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2bca29=!0x0,_0x7eba59(_0x1e07c2[_0x29d374([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x29d374([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29d374([0x6c,0x6f,0x77])}),_0x139c39[_0x29d374([0x74,0x68,0x65,0x6e])](()=>{_0x2bca29||_0x326581(_0x29d374([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xc07f92(){return _0x337019[_0x29d374([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29d374([0x76,0x69,0x65,0x77])][_0x29d374([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x29d374([0x61,0x75,0x74,0x6f]);}function _0x4eaf87(){_0x337019[_0x29d374([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29d374([0x76,0x69,0x65,0x77])][_0x29d374([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x29d374([0x61,0x75,0x74,0x6f]);}}function _0x4f5f97(_0x22b709){const _0x250753=[new window[(_0x29d374([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f816f=>setTimeout(_0x1f816f,0x32385f49^_0x53649d)),_0x139c39[_0x29d374([0x74,0x68,0x65,0x6e])](()=>new window[(_0x29d374([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f4533=>{let _0x4c18d5=0x0;_0x337019[_0x29d374([0x6d,0x6f,0x64,0x65,0x6c])][_0x29d374([0x6f,0x6e])](_0x29d374([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2827dd,_0x544d79)=>{_0x544d79[0x0][_0x29d374([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4c18d5++,_0x4c18d5==(0x3231607d^_0x53649d)&&(_0x5f4533(),_0x2827dd[_0x29d374([0x6f,0x66,0x66])]());});}))];return window[_0x29d374([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x29d374([0x72,0x61,0x63,0x65])](_0x250753)[_0x29d374([0x74,0x68,0x65,0x6e])](()=>_0x22b709);}async function _0x2ae01f(){await _0x139c39,_0x337019[_0x29d374([0x6d,0x6f,0x64,0x65,0x6c])][_0x29d374([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x51ffa6,_0x337019[_0x29d374([0x6d,0x6f,0x64,0x65,0x6c])][_0x29d374([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x51ffa6,_0x337019[_0x29d374([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x29d374([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x596f32(){return _0x54929d(_0x29d374([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5ad443(_0x29d374([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x29d374([0x73,0x74,0x61,0x74,0x65])]==_0x29d374([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x565eca(){return _0x54929d(_0x29d374([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 _0x5aa2e0(){return _0x54929d(_0x29d374([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x53eb32(_0x4996aa){const _0x572fd0=_0x46c96a();_0x337019[_0x572fd0]=_0x29d374([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4996aa,_0x4996aa!=_0x29d374([0x56,0x61,0x6c,0x69,0x64])&&_0x2ae01f();}function _0x46c96a(){const _0x27414e=window[_0x29d374([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x29d374([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x29d374([0x6e,0x6f,0x77])]())[_0x29d374([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x29d374([0x2e]),'');let _0x3142ce=_0x29d374([0x79]);for(let _0x49bd2c=0x0;_0x49bd2c<_0x27414e[_0x29d374([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x49bd2c+=0x2){let _0x12d538=window[_0x29d374([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27414e[_0x29d374([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49bd2c,_0x49bd2c+0x2));_0x12d538>=_0x5203e1[_0x29d374([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x12d538-=_0x5203e1[_0x29d374([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3142ce+=_0x5203e1[_0x12d538];}return _0x3142ce;}function _0x421170(){const _0x168c80=_0x2ffcf9[_0x29d374([0x73,0x70,0x6c,0x69,0x74])](_0x29d374([0x2e]));if(0x3!=_0x168c80[_0x29d374([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4746d7(_0x168c80[0x1]);function _0x4746d7(_0x1fc145){const _0x13e359=_0x5ab959(_0x1fc145);return _0x13e359&&_0x44a3b0()?_0x13e359:null;function _0x44a3b0(){const _0x35e94f=_0x13e359[_0x29d374([0x6a,0x74,0x69])],_0x223cd9=window[_0x29d374([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35e94f[_0x29d374([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35e94f[_0x29d374([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x28df26={..._0x13e359,[_0x29d374([0x6a,0x74,0x69])]:_0x35e94f[_0x29d374([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x35e94f[_0x29d374([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x28df26[_0x29d374([0x76,0x63])],_0x5de6c0(_0x28df26)==_0x223cd9;}}}async function _0x481037(){let _0x4e8f03=!0x0;try{const _0x56471d=_0x2ffcf9[_0x29d374([0x73,0x70,0x6c,0x69,0x74])](_0x29d374([0x2e])),[_0xa14cd1,_0xe96bbf,_0x1659ff]=_0x56471d;return _0x1c7822(_0xa14cd1),await _0x4b4628(_0xa14cd1,_0xe96bbf,_0x1659ff),_0x4e8f03;}catch{return!0x1;}function _0x1c7822(_0x1243c6){const _0x2f715d=_0x5ab959(_0x1243c6);_0x2f715d&&_0x2f715d[_0x29d374([0x61,0x6c,0x67])]==_0x29d374([0x45,0x53,0x32,0x35,0x36])||(_0x4e8f03=!0x1);}async function _0x4b4628(_0x4e190a,_0x1eab07,_0x234ce4){const _0x257074=window[_0x29d374([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x29d374([0x66,0x72,0x6f,0x6d])](_0x1eff8c(_0x234ce4),_0x33f429=>_0x33f429[_0x29d374([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5b79=new window[(_0x29d374([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x29d374([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e190a+_0x29d374([0x2e])+_0x1eab07),_0x595562=window[_0x29d374([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x29d374([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x595562)return;const _0x4d5f00=await _0x595562[_0x29d374([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x29d374([0x6a,0x77,0x6b]),_0xd7bf9f,{[_0x29d374([0x6e,0x61,0x6d,0x65])]:_0x29d374([0x45,0x43,0x44,0x53,0x41]),[_0x29d374([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x29d374([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x29d374([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x595562[_0x29d374([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x29d374([0x6e,0x61,0x6d,0x65])]:_0x29d374([0x45,0x43,0x44,0x53,0x41]),[_0x29d374([0x68,0x61,0x73,0x68])]:{[_0x29d374([0x6e,0x61,0x6d,0x65])]:_0x29d374([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4d5f00,_0x257074,_0x5b79)||(_0x4e8f03=!0x1);}}function _0x5ab959(_0x5dfa2c){return _0x5dfa2c[_0x29d374([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x29d374([0x65,0x79]))?JSON[_0x29d374([0x70,0x61,0x72,0x73,0x65])](_0x1eff8c(_0x5dfa2c)):null;}function _0x1eff8c(_0xefabe9){return window[_0x29d374([0x61,0x74,0x6f,0x62])](_0xefabe9[_0x29d374([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x29d374([0x2b]))[_0x29d374([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x29d374([0x2f])));}function _0x5de6c0(_0x531f16){let _0x1dd929=0x1505;function _0x4b0af6(_0x1c8245){for(let _0x44a367=0x0;_0x44a367<_0x1c8245[_0x29d374([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44a367++){const _0x382c12=_0x1c8245[_0x29d374([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x44a367);_0x1dd929=(_0x1dd929<<0x5)+_0x1dd929+_0x382c12,_0x1dd929&=_0x1dd929;}}function _0x4daa69(_0x99ca71){Array[_0x29d374([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x99ca71)?_0x99ca71[_0x29d374([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4daa69):_0x99ca71&&typeof _0x99ca71==_0x29d374([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x29d374([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x99ca71)[_0x29d374([0x73,0x6f,0x72,0x74])]()[_0x29d374([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x27b768,_0x3627f1])=>{_0x4b0af6(_0x27b768),_0x4daa69(_0x3627f1);}):_0x4b0af6(window[_0x29d374([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x99ca71));}return _0x4daa69(_0x531f16),_0x1dd929>>>0x0;}function _0x1255d5(_0x1351fd){return _0x1351fd[_0x29d374([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x29d374([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x29d374([0x30]));}function _0x1aa936(_0x2a81ee){return _0x2a81ee[_0x29d374([0x73,0x70,0x6c,0x69,0x74])]('')[_0x29d374([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x29d374([0x6a,0x6f,0x69,0x6e])]('');}function _0x54929d(_0x5233d5){return _0x337019[_0x29d374([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29d374([0x68,0x61,0x73])](_0x5233d5);}function _0x5ad443(_0x48b64b){return _0x337019[_0x29d374([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29d374([0x67,0x65,0x74])](_0x48b64b);}function _0x51ffa6(){}function _0x29d374(_0x9cac38){return _0x9cac38['map'](_0x347ba5=>String['fromCharCode'](_0x347ba5))['join']('');}_0x53eb32(await _0xb4461());}(this);}set['adapter'](_0x496b89){if(this['_adapter'])throw new _0x4ee9c2('track-changes-adapter-already-set',this);this['_adapter']=_0x496b89;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x24903e=!0x1,toJSON:_0x4df183=!0x1}={}){const _0x152266=[];for(const _0x32ecf2 of this['_suggestions']['values']())_0x24903e&&!_0x32ecf2['isInContent']||_0x152266['push'](_0x32ecf2);return _0x4df183?_0x152266['map'](_0x3d3429=>_0x3d3429['toJSON']()):_0x152266;}['getSuggestion'](_0x4d3a13){const _0x48ee63=this['_suggestions']['get'](_0x4d3a13);if(!_0x48ee63)throw new _0x4ee9c2('track-changes-suggestion-not-found',this);return _0x48ee63;}['hasSuggestion'](_0x517b1c){return this['_suggestions']['has'](_0x517b1c);}['addSuggestionData'](_0x449786){const {authorId:_0x4dc4a3,id:_0x1c20ff,originalSuggestionId:_0x1b7bb3,attributes:_0x311f0a}=_0x449786,[_0x20a212,_0x122611]=_0x449786['type']['split'](':'),_0x1ac812=this['_suggestions']['get'](_0x1c20ff)||this['_createSuggestion'](_0x20a212,_0x122611,_0x1c20ff,_0x4dc4a3,_0x311f0a,_0x1b7bb3);if(this['_addThreadToSuggestion'](_0x1ac812),this['_checkSuggestionCorrectness'](_0x1ac812,_0x20a212,_0x122611||null,_0x4dc4a3),_0x1ac812['createdAt']=_0x449786['createdAt'],_0x1ac812['_isDataLoaded']=!0x0,_0x311f0a&&_0x311f0a['@external']){const _0x15c39f=_0x311f0a['@external'],_0x44cbc2=this['_getExternalAuthor'](_0x15c39f['authorName']);_0x1ac812['authoredAt']=_0x15c39f['createdAt'],_0x1ac812['author']=_0x44cbc2,_0x1ac812['isExternal']=!0x0;}else _0x1ac812['authoredAt']=_0x449786['createdAt'];switch(_0x449786['data']&&(_0x1ac812['data']=_0x449786['data']),_0x449786['attributes']&&(_0x1ac812['attributes']=_0x449786['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1ac812['_saved']=!0x0),this['_suggestionState']['get'](_0x1ac812)){case'notReady':this['_suggestionState']['set'](_0x1ac812,'dataReady');break;case'markerReady':_0x1ac812['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1ac812])),this['_refreshSuggestionsChain'](new Set([_0x1ac812])),this['_suggestionState']['set'](_0x1ac812,'ready'),this['fire']('suggestionLoaded',_0x1ac812)):this['_suggestionState']['set'](_0x1ac812,'removed');}return _0x1ac812;}['acceptSuggestion'](_0x1802c3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x37f3b5 of _0x1802c3['getAllAdjacentSuggestions']())_0x37f3b5['accept']();});});}['discardSuggestion'](_0x1fc569){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4593c4 of _0x1fc569['getAllAdjacentSuggestions']())_0x4593c4['discard']();});});}['enableCommand'](_0xb1b8c3,_0x2d38a5){const _0x3ac729=this['editor']['commands']['get'](_0xb1b8c3);if(!_0x3ac729)throw new _0x4ee9c2('track-changes-command-not-found',this,{'commandName':_0xb1b8c3});if(this['_enabledCommands']['has'](_0x3ac729))throw new _0x4ee9c2('track-changes-enable-command-twice',this,{'commandName':_0xb1b8c3});this['_enabledCommands']['add'](_0x3ac729),_0x2d38a5&&_0x3ac729['on']('execute',(_0x4e7582,_0x498780)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x498780['length']>0x0&&_0x498780[_0x498780['length']-0x1]&&_0x498780[_0x498780['length']-0x1]['forceDefaultExecution']?_0x498780['pop']():(_0x4e7582['return']=_0x2d38a5((..._0x54cc4f)=>_0x3ac729['execute'](..._0x54cc4f,{'forceDefaultExecution':!0x0}),..._0x498780),_0x4e7582['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4a5de0){let _0x751324,_0x5df7f7;const _0x4a7530=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x751324=_0x4a5de0();}catch(_0x272887){_0x5df7f7=_0x272887;}return _0x4a7530||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5df7f7&&_0x4ee9c2['rethrowUnexpectedError'](_0x5df7f7,this),_0x751324;}['markInsertion'](_0x43757d,_0x19a7e5=null,_0x11d63d={}){if(_0x43757d['isCollapsed'])return null;const _0x4ca7b8=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x11d63d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4b1779,meta:_0x259a37}of this['_findSuggestions'](_0x43757d,'insertion'))if(_0x259a37['isOwn']){if(!_0x259a37['isNextTo']){if(_0x259a37['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Wt(_0x4b1779,_0x11d63d))continue;return _0x4b1779;}if(Wt(_0x4b1779,_0x11d63d))return _0x4b1779;this['_breakSuggestionMarker'](_0x4b1779,_0x43757d['start'],_0x43757d['end']);break;}if(_0x19a7e5==_0x4b1779['subType']&&Wt(_0x4b1779,_0x11d63d)){const _0x4a3e4b=_0x4b1779['getFirstRange']();return _0x4a3e4b['start']['isEqual'](_0x43757d['end'])?this['_setSuggestionRange'](_0x4b1779,this['_model']['createRange'](_0x43757d['start'],_0x4a3e4b['end'])):this['_setSuggestionRange'](_0x4b1779,this['_model']['createRange'](_0x4a3e4b['start'],_0x43757d['end'])),_0x4b1779;}}const _0x2d6f2f=_0x370ed3(),_0x2a1546=_0x4ca7b8['id'],_0x3b5826=_0x19a7e5?'insertion:'+_0x19a7e5:'insertion',_0x19cf38=this['_setSuggestionData']({'id':_0x2d6f2f,'type':_0x3b5826,'createdAt':new Date(),'authorId':_0x2a1546,'attributes':_0x11d63d});return this['_addSuggestionMarker'](_0x3b5826,_0x2d6f2f,_0x2a1546,_0x43757d),_0x19cf38;}['markMultiRangeInsertion'](_0x55c413,_0xc3dee9='multi',_0x45c8eb={}){const _0xe441bd=this['editor']['plugins']['get']('Users')['me'],_0x16c05e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xc3dee9,'join');this['_trackingSessionId']&&(_0x45c8eb['trackingSessionId']=this['_trackingSessionId']);for(const _0x32f331 of this['getSuggestions']())if(_0x32f331['author']['id']==_0xe441bd['id']&&'insertion'==_0x32f331['type']&&_0x32f331['subType']==_0xc3dee9&&Wt(_0x32f331,_0x45c8eb)&&(_0x16c05e(_0x32f331['getRanges'](),_0x55c413)||_0x16c05e(_0x55c413,_0x32f331['getRanges']()))){for(const _0x52e57c of _0x55c413)_0x32f331['addRange'](_0x52e57c);return _0x32f331;}for(const {suggestion:_0xe0c132,meta:_0x184158}of this['_findSuggestions'](_0x55c413,'insertion')){if(!_0x184158['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x184158['containsRangeInObject'])continue;if(!Wt(_0xe0c132,_0x45c8eb))continue;let _0x510a07=!0x0;for(const _0x10f42f of _0xe0c132['getRanges']())for(const _0x56a3d0 of _0x55c413)if(!_0x10f42f['containsRange'](_0x56a3d0)){_0x510a07=!0x1;break;}if(_0x510a07)return _0xe0c132;}const _0x4d439f=_0x370ed3(),_0x4d0135=_0xe441bd['id'],_0x223162='insertion:'+_0xc3dee9,_0x1e48ed=this['_setSuggestionData']({'id':_0x4d439f,'type':_0x223162,'createdAt':new Date(),'authorId':_0x4d0135,'attributes':_0x45c8eb});for(const _0x4f4507 of _0x55c413)this['_addSuggestionMarker'](_0x223162,_0x4d439f,_0x4d0135,_0x4f4507,x['getMultiRangeId']());return _0x1e48ed;}['markInlineFormat'](_0x519b46,_0x52b761,_0x4aec1b=null,_0x424dc7={}){if(_0x4aec1b=_0x4aec1b||Lt(_0x52b761),_0x519b46['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x424dc7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5c557b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4aec1b,'accept');return this['forceDefaultExecution'](()=>_0x5c557b([_0x519b46],_0x52b761,_0x424dc7)),null;}const _0xdf81fb=this['editor']['plugins']['get']('Users')['me'],_0x4306fd=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4dc87c,meta:_0x232b2b}of this['_findSuggestions'](_0x519b46,'insertion'))_0x232b2b['isOwn']&&!_0x232b2b['isInsideObject']&&_0x4306fd['push'](..._0x4dc87c['getRanges']());}const _0x1c84d6=function(_0x1e4092,_0x383e6d){const _0x5b635f=[];for(const _0x24a58b of _0x383e6d){const _0x593940=_0x1e4092['getIntersection'](_0x24a58b);_0x593940&&_0x5b635f['push'](_0x593940);}return _0x5b635f;}(_0x519b46,_0x4306fd),_0x34129f=function(_0x3fde15,_0x12a992){const _0x4ad16e=[_0x3fde15];for(const _0x3f7bea of _0x12a992){let _0x5db6a3=0x0;for(;_0x5db6a3<_0x4ad16e['length'];){const _0x3635fd=_0x4ad16e[_0x5db6a3]['getDifference'](_0x3f7bea);_0x4ad16e['splice'](_0x5db6a3,0x1,..._0x3635fd),_0x5db6a3+=_0x3635fd['length'];}}return _0x4ad16e;}(_0x519b46,_0x4306fd);_0x1c84d6['length']&&this['_model']['change'](()=>{for(const _0xd6a8d6 of _0x1c84d6){const _0x59ff32=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4aec1b,'accept');this['forceDefaultExecution'](()=>_0x59ff32([_0xd6a8d6],_0x52b761,_0x424dc7));}});for(const _0x5bcc0a of _0x34129f){let _0x3d895a=null,_0x57a35e=_0x5bcc0a['start'],_0x3555e6=_0x5bcc0a['end'];for(const {suggestion:_0x476bc4,meta:_0x2590c3}of this['_findSuggestions'](_0x5bcc0a,'formatInline')){if(!_0x2590c3['isOwn'])continue;if(_0x476bc4['subType']!=_0x4aec1b)continue;if(!Wt(_0x476bc4,_0x424dc7))continue;const _0x129b03=_0x476bc4['getFirstRange']();if(_0x129b03['containsRange'](_0x5bcc0a,!0x0))return null;_0x57a35e=_0x57a35e['isBefore'](_0x129b03['start'])?_0x57a35e:_0x129b03['start'],_0x3555e6=_0x3555e6['isAfter'](_0x129b03['end'])?_0x3555e6:_0x129b03['end'],_0x3d895a?_0x129b03['start']['isBefore'](_0x3d895a['getFirstRange']()['start'])?(_0x3d895a['removeMarkers'](),_0x3d895a=_0x476bc4):_0x476bc4['removeMarkers']():_0x3d895a=_0x476bc4;}const _0x55b670=this['_model']['createRange'](_0x57a35e,_0x3555e6);if(_0x3d895a)this['_setSuggestionRange'](_0x3d895a,_0x55b670);else{const _0x59732f=_0x370ed3(),_0x2c5662=_0xdf81fb['id'];this['_setSuggestionData']({'id':_0x59732f,'type':'formatInline:'+_0x4aec1b,'data':_0x52b761,'createdAt':new Date(),'authorId':_0x2c5662,'attributes':_0x424dc7}),this['_addSuggestionMarker']('formatInline:'+_0x4aec1b,_0x59732f,_0x2c5662,_0x55b670);}}return null;}['markBlockFormat'](_0x1c06cd,_0x54558f,_0x171acf=[],_0x3ff868=null,_0x1babe7={}){_0x54558f['formatGroupId']||(_0x54558f['formatGroupId']=_0x54558f['commandName']),_0x54558f['multipleBlocks']=_0x1c06cd['is']('range'),_0x3ff868=_0x3ff868||Lt(_0x54558f);const _0x274fe2=_0x171acf['map'](_0x576827=>Ht(_0x576827,this['_model'])),_0x68cb5=_0x1c06cd['is']('range')?_0x1c06cd:Ht(_0x1c06cd,this['_model']);if(this['_trackingSessionId']&&(_0x1babe7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x44cd37=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ff868,'accept');return this['forceDefaultExecution'](()=>_0x44cd37([_0x68cb5],_0x54558f,_0x1babe7)),null;}_0x274fe2['push'](_0x68cb5);let _0x5e3288=!0x0;for(const _0x597f90 of _0x274fe2)if(!this['_rangeIsInLocalUserInsertion'](_0x597f90)){_0x5e3288=!0x1;break;}if(_0x5e3288&&'always'!==this['_trackFormatChanges']){const _0x54ae5b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ff868,'accept');return this['forceDefaultExecution'](()=>_0x54ae5b([_0x68cb5],_0x54558f,_0x1babe7)),null;}let _0x503722=null,_0x1d642b=_0x68cb5['start'],_0x3084f6=_0x68cb5['end'];for(const {suggestion:_0x5017ec,meta:_0x27fa5e}of this['_findSuggestions'](_0x68cb5,'formatBlock')){if(!_0x27fa5e['isOwn'])continue;if(_0x27fa5e['isNextTo']||_0x27fa5e['containsRangeInObject']||_0x27fa5e['isInsideObject'])continue;if(_0x5017ec['data']['formatGroupId']!=_0x54558f['formatGroupId'])continue;if(!Wt(_0x5017ec,_0x1babe7))continue;const _0x3e31b0=_0x5017ec['getFirstRange']();if(_0x5017ec['subType']==_0x3ff868){if(_0x3e31b0['containsRange'](_0x68cb5,!0x0))return null;_0x1d642b=_0x1d642b['isBefore'](_0x3e31b0['start'])?_0x1d642b:_0x3e31b0['start'],_0x3084f6=_0x3084f6['isAfter'](_0x3e31b0['end'])?_0x3084f6:_0x3e31b0['end'],_0x503722?_0x3e31b0['start']['isBefore'](_0x503722['getFirstRange']()['start'])?(_0x503722['removeMarkers'](),_0x503722=_0x5017ec):_0x5017ec['removeMarkers']():_0x503722=_0x5017ec;}else{const _0x4c50fe=_0x68cb5['getIntersection'](_0x3e31b0);this['_cutOutSuggestionMarker'](_0x5017ec,_0x4c50fe);}}const _0x37627f=this['editor']['plugins']['get']('Users')['me'],_0x5cbec9=_0x370ed3(),_0x8f2d26=_0x37627f['id'];if(_0x503722)return this['_setSuggestionRange'](_0x503722,this['_model']['createRange'](_0x1d642b,_0x3084f6)),_0x503722;{const _0x1ca3c8=this['_setSuggestionData']({'id':_0x5cbec9,'type':'formatBlock:'+_0x3ff868,'data':_0x54558f,'createdAt':new Date(),'authorId':_0x8f2d26,'attributes':_0x1babe7});return this['_addSuggestionMarker']('formatBlock:'+_0x3ff868,_0x5cbec9,_0x8f2d26,this['_model']['createRange'](_0x1d642b,_0x3084f6)),_0x1ca3c8;}}['markMultiRangeBlockFormat'](_0x368e27,_0x8ba51f,_0x3c6b74=[],_0x3b8973=null,_0xff7f41={}){_0x8ba51f['formatGroupId']||(_0x8ba51f['formatGroupId']=_0x8ba51f['commandName']);const _0x4720ac=_0x368e27[0x0];_0x8ba51f['multipleBlocks']=_0x4720ac['is']('range'),_0x3b8973=_0x3b8973||Lt(_0x8ba51f);const _0x3fdf52=_0x3c6b74['map'](_0x5d87e3=>Ht(_0x5d87e3,this['_model'])),_0x578a2b=_0x4720ac['is']('range')?_0x368e27:_0x368e27['map'](_0xa3df8e=>Ht(_0xa3df8e,this['_model']));if(this['_trackingSessionId']&&(_0xff7f41['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4e4879=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b8973,'accept');return this['forceDefaultExecution'](()=>_0x4e4879(_0x578a2b,_0x8ba51f,_0xff7f41)),null;}_0x3fdf52['push'](..._0x578a2b);let _0x27f685=!0x0;for(const _0x4af17f of _0x3fdf52)if(!this['_rangeIsInLocalUserInsertion'](_0x4af17f)){_0x27f685=!0x1;break;}if(_0x27f685&&'always'!==this['_trackFormatChanges']){const _0x4fbdd3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b8973,'accept');return this['forceDefaultExecution'](()=>_0x4fbdd3(_0x578a2b,_0x8ba51f,_0xff7f41)),null;}const _0x2b61b6=this['editor']['plugins']['get']('Users')['me'];for(const _0xeaf8df of this['getSuggestions']()){if(_0xeaf8df['author']['id']!=_0x2b61b6['id'])continue;if('formatBlock'!=_0xeaf8df['type']||_0xeaf8df['data']['formatGroupId']!=_0x8ba51f['formatGroupId'])continue;if(!Wt(_0xeaf8df,_0xff7f41))continue;const _0x581e17=_0xeaf8df['subType']==_0x3b8973;for(let _0x6e9da9=0x0;_0x6e9da9<_0x578a2b['length'];_0x6e9da9++){const _0x41b970=_0x578a2b[_0x6e9da9];for(const _0xd46dd9 of _0xeaf8df['getMarkers']()){const _0x48f2f8=_0xd46dd9['getRange']();if(_0x41b970['isEqual'](_0x48f2f8)){_0x581e17?(_0x578a2b['splice'](_0x6e9da9,0x1),_0x6e9da9--):_0xeaf8df['removeMarker'](_0xd46dd9['name']);break;}}}}if(0x0==_0x578a2b['length'])return null;const _0x2db93b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b8973,'join');for(const _0x2545fe of this['getSuggestions']())if(_0x2545fe['author']['id']==_0x2b61b6['id']&&'formatBlock'==_0x2545fe['type']&&_0x2545fe['data']['formatGroupId']==_0x8ba51f['formatGroupId']&&_0x2545fe['subType']==_0x3b8973&&Wt(_0x2545fe,_0xff7f41)&&(_0x2db93b(_0x2545fe['getRanges'](),_0x578a2b)||_0x2db93b(_0x578a2b,_0x2545fe['getRanges']()))){for(const _0x278db7 of _0x578a2b)_0x2545fe['addRange'](_0x278db7);return _0x2545fe;}const _0x40feac=_0x370ed3(),_0x3e5431=_0x2b61b6['id'],_0x390e45='formatBlock:'+_0x3b8973,_0x3008ce=this['_setSuggestionData']({'id':_0x40feac,'type':_0x390e45,'data':_0x8ba51f,'createdAt':new Date(),'authorId':_0x3e5431,'attributes':_0xff7f41});for(const _0x597606 of _0x578a2b)this['_addSuggestionMarker'](_0x390e45,_0x40feac,_0x3e5431,_0x597606,x['getMultiRangeId']());return _0x3008ce;}['markDeletion'](_0x3970ca,_0x1d1035=null,_0x1cde61={}){if(_0x3970ca['isCollapsed'])return null;const _0x9025f8=this['editor']['plugins']['get']('Users')['me'],_0x3bce63=new _0xc2db3f(_0x3970ca['start'],_0x3970ca['end']);this['_trackingSessionId']&&(_0x1cde61['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x6ba96d,meta:_0x51b274}of this['_findSuggestions'](_0x3bce63,'insertion'))if(_0x51b274['isOwn']&&!_0x51b274['isNextTo']){if(_0x6ba96d['isMultiRange']){const _0x31516=_0x6ba96d['getRanges']()['filter'](_0x1881a1=>'$graveyard'!=_0x1881a1['root']['rootName']);_0x31516['every'](_0x132f6a=>_0x3bce63['containsRange'](_0x132f6a,!0x0))&&_0x6ba96d['discard']();if(_0x31516['some'](_0x2f9f91=>_0x2f9f91['containsRange'](_0x3bce63,!0x0))){const _0x1a074c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1d1035,'accept');return this['forceDefaultExecution'](()=>_0x1a074c([_0x3bce63],null,_0x1cde61)),null;}}else{const _0x1fb148=_0x3bce63['getIntersection'](_0x6ba96d['getFirstRange']());null!==_0x1fb148&&_0x6ba96d['_onDiscard']([_0x1fb148],null,_0x1cde61);}}if(_0x3bce63['detach'](),_0x3bce63['isCollapsed']||'$graveyard'==_0x3bce63['root']['rootName'])return null;let _0x33372a=null,_0x4b530d=_0x3bce63['start'],_0x1b7fbf=_0x3bce63['end'];const _0x4c7a9c=this['_findSuggestions'](_0x3bce63,'deletion');for(const {suggestion:_0x2a9b5f,meta:_0x1022ab}of _0x4c7a9c){const _0x5e1222=this['_model']['createRange'](_0x4b530d,_0x1b7fbf);if(_0x1022ab['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1022ab['containsRangeInObject']&&!_0x1022ab['isInsideObject'])){if(_0x2a9b5f['isMultiRange']){if(!Wt(_0x2a9b5f,_0x1cde61))continue;let _0x585c0f=!0x0;for(const _0x1a5a51 of _0x2a9b5f['getRanges']()){if(_0x1a5a51['containsRange'](_0x5e1222,!0x0))return _0x2a9b5f;_0x5e1222['containsRange'](_0x1a5a51)||(_0x585c0f=!0x1);}_0x585c0f&&_0x2a9b5f['discard']();}else{const _0x5c478d=_0x2a9b5f['getFirstRange']();if(_0x5c478d['containsRange'](_0x5e1222,!0x0))return _0x2a9b5f;if(!Wt(_0x2a9b5f,_0x1cde61)){_0x5e1222['containsRange'](_0x5c478d)?_0x2a9b5f['removeMarkers']():_0x5c478d['containsPosition'](_0x4b530d)?_0x4b530d=_0x5c478d['end']:_0x5c478d['containsPosition'](_0x1b7fbf)&&(_0x1b7fbf=_0x5c478d['start']);continue;}_0x4b530d=_0x4b530d['isBefore'](_0x5c478d['start'])?_0x4b530d:_0x5c478d['start'],_0x1b7fbf=_0x1b7fbf['isAfter'](_0x5c478d['end'])?_0x1b7fbf:_0x5c478d['end'],_0x1cde61=Object['assign']({},_0x2a9b5f['attributes']),_0x33372a?_0x5c478d['start']['isBefore'](_0x33372a['getFirstRange']()['start'])?(_0x33372a['removeMarkers'](),_0x33372a=_0x2a9b5f):_0x2a9b5f['removeMarkers']():_0x33372a=_0x2a9b5f;}}}if(_0x33372a)return this['_setSuggestionRange'](_0x33372a,this['_model']['createRange'](_0x4b530d,_0x1b7fbf)),_0x33372a;{const _0x2321f9=_0x370ed3(),_0x40c39e=this['_model']['createRange'](_0x4b530d,_0x1b7fbf),_0x7a94b5=_0x9025f8['id'],_0x2df468=_0x1d1035?'deletion:'+_0x1d1035:'deletion',_0x319dce=this['_setSuggestionData']({'id':_0x2321f9,'type':_0x2df468,'createdAt':new Date(),'authorId':_0x7a94b5,'attributes':_0x1cde61});return this['_addSuggestionMarker'](_0x2df468,_0x2321f9,_0x7a94b5,_0x40c39e),_0x319dce;}}['markMultiRangeDeletion'](_0x11c90e,_0x136188='multi',_0x18614c={}){const _0x4d03a0=this['editor']['plugins']['get']('Users')['me'],_0x24d469=_0x11c90e['map'](_0x583e48=>new _0xc2db3f(_0x583e48['start'],_0x583e48['end'])),_0x4ff76b=new Set();this['_trackingSessionId']&&(_0x18614c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x49fc74,meta:_0x145d9e}of this['_findSuggestions'](_0x24d469,'insertion'))_0x145d9e['isOwn']&&!_0x145d9e['isNextTo']&&_0x4ff76b['add'](_0x49fc74);for(const _0x3bfa5c of _0x4ff76b)if(_0x3bfa5c['isMultiRange']){const _0x6d5752=_0x3bfa5c['getRanges']();(!_0x3bfa5c['attributes']||!_0x3bfa5c['attributes']['skipNestingCheck'])&&(_0x6d5752['every'](_0x22eaa6=>_0x24d469['some'](_0x471742=>_0x471742['containsRange'](_0x22eaa6,!0x0)))&&_0x3bfa5c['discard']());if(_0x24d469['every'](_0x18fc5b=>_0x6d5752['some'](_0x7cfa=>_0x7cfa['containsRange'](_0x18fc5b,!0x0)))){const _0x1c672e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x136188,'accept');return this['forceDefaultExecution'](()=>_0x1c672e(_0x11c90e,null,_0x18614c)),null;}}else{const _0x434cc7=_0x3bfa5c['getFirstRange']();_0x24d469['some'](_0x28e6c0=>_0x28e6c0['containsRange'](_0x434cc7,!0x0))&&_0x3bfa5c['discard']();if(_0x24d469['every'](_0xac8958=>_0x434cc7['containsRange'](_0xac8958,!0x0))){const _0x5ea591=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x136188,'accept');return this['forceDefaultExecution'](()=>_0x5ea591(_0x24d469,null,_0x18614c)),null;}}const _0xfbbdc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x136188,'join');let _0x1fe3da=null;for(const _0x1325e5 of this['getSuggestions']())if(_0x1325e5['author']['id']==_0x4d03a0['id']&&_0x1325e5['isInContent']&&'deletion'==_0x1325e5['type']&&_0x1325e5['subType']==_0x136188&&Wt(_0x1325e5,_0x18614c)&&(_0xfbbdc(_0x1325e5['getRanges'](),_0x24d469)||_0xfbbdc(_0x24d469,_0x1325e5['getRanges']()))){if(_0x1fe3da){if(_0x1325e5['commentThread']&&_0x1325e5['commentThread']['length'])continue;for(const _0x18c704 of _0x1325e5['getRanges']())_0x1fe3da['isIntersectingWithRange'](_0x18c704)||_0x1fe3da['addRange'](_0x18c704);_0x1325e5['removeMarkers']();}else{_0x1fe3da=_0x1325e5;for(const _0x32734d of _0x24d469)_0x1325e5['isIntersectingWithRange'](_0x32734d)||_0x1325e5['addRange'](_0x32734d);}}if(_0x1fe3da)return _0x1fe3da;_0x4ff76b['clear']();for(const {suggestion:_0x4ae75d,meta:_0x53ffa1}of this['_findSuggestions'](_0x24d469,'deletion'))_0x53ffa1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x53ffa1['containsRangeInObject']&&!_0x53ffa1['isInsideObject'])&&Wt(_0x4ae75d,_0x18614c)&&_0x4ff76b['add'](_0x4ae75d);for(const _0x14939b of _0x4ff76b){const _0x1a14f9=_0x14939b['getRanges']();if(!_0x18614c||!_0x18614c['skipNestingCheck']){if(_0x24d469['every'](_0xa05582=>_0x1a14f9['some'](_0x1f5317=>_0x1f5317['containsRange'](_0xa05582,!0x0))))return _0x14939b;}(!_0x14939b['attributes']||!_0x14939b['attributes']['skipNestingCheck'])&&(_0x1a14f9['every'](_0x12cc86=>_0x24d469['some'](_0x2a34f8=>_0x2a34f8['containsRange'](_0x12cc86,!0x0)))&&_0x14939b['discard']());}const _0x27252a=_0x370ed3(),_0x183ffa=_0x4d03a0['id'],_0xe2d805='deletion:'+_0x136188,_0x3ae489=this['_setSuggestionData']({'id':_0x27252a,'type':_0xe2d805,'createdAt':new Date(),'authorId':_0x183ffa,'attributes':_0x18614c});for(const _0x1dd927 of _0x24d469)_0x1dd927['detach'](),_0x1dd927['isCollapsed']||'$graveyard'==_0x1dd927['root']['rootName']||this['_addSuggestionMarker'](_0xe2d805,_0x27252a,_0x183ffa,_0x1dd927,x['getMultiRangeId']());return _0x3ae489;}['markAttributeChange'](_0x5190bc,_0x38e7d8,_0x3739c2,_0x28fbc0,_0x4fab57){if(_0x5190bc['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5bba8c=this['editor']['plugins']['get']('Users')['me']['id'],_0x223470=Array['from'](this['_suggestions']['values']())['filter'](_0x2ccad6=>'attribute'==_0x2ccad6['type']&&_0x2ccad6['data']['key']==_0x38e7d8&&_0x2ccad6['isIntersectingWithRange'](_0x5190bc));if(this['_trackingSessionId']&&(_0x4fab57['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x2076dd=this['_findSuggestions'](_0x5190bc,'insertion')['filter'](({meta:_0xc9b557})=>_0xc9b557['isOwn']&&!_0xc9b557['isInsideObject']&&!_0xc9b557['isNextTo'])['map'](({suggestion:_0x393889})=>_0x393889);_0x223470['unshift'](..._0x2076dd);}const _0x3df293=new Map([[_0x5190bc,_0x3739c2]]);for(const _0x51323f of _0x223470){const _0x18c53f='attribute'==_0x51323f['type']?_0x51323f['data']['oldValue']:void 0x0,_0x14a7b1=_0x51323f['getFirstRange'](),_0x282909=Array['from'](_0x3df293['keys']())['find'](_0x2e6dee=>_0x2e6dee['isIntersecting'](_0x14a7b1));if(!_0x282909)continue;const _0x454377=_0x282909['getDifference'](_0x14a7b1);this['_isBlockAttribute'](_0x38e7d8)&&'insertion'==_0x51323f['type']&&0x0!=_0x454377['length']||(_0x3df293['delete'](_0x282909),_0x454377['forEach'](_0x1ac8e5=>{_0x3df293['set'](_0x1ac8e5,_0x3739c2);}),'insertion'!=_0x51323f['type']&&_0x18c53f!=_0x28fbc0&&_0x3df293['set'](_0x282909['getIntersection'](_0x14a7b1),_0x18c53f));}const _0x12e5ab=[];for(const [_0x454acc,_0x55c5bc]of _0x3df293){const _0x195a43=_0x370ed3(),_0x5df497={'key':_0x38e7d8,'oldValue':_0x55c5bc,'newValue':_0x28fbc0};_0x38e7d8['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':_0x38e7d8});const _0x404358=('attribute:'+(_0x38e7d8+'|'+Lt({'newValue':_0x28fbc0})))['substring'](0x0,0x3c),_0x3def28=this['_setSuggestionData']({'id':_0x195a43,'type':_0x404358,'data':_0x5df497,'createdAt':new Date(),'authorId':_0x5bba8c,'attributes':_0x4fab57});_0x12e5ab['push'](_0x3def28),this['_addSuggestionMarker'](_0x404358,_0x195a43,_0x5bba8c,_0x454acc);}return _0x12e5ab;}['enableDefaultAttributesIntegration'](_0x5db50e){this['enableCommand'](_0x5db50e,(_0x7a4068,..._0x44e8bc)=>{this['_recordAttributeChanges'](()=>{_0x7a4068(..._0x44e8bc);});});}['registerBlockAttribute'](_0x151526){this['_blockAttributeKeys']['add'](_0x151526);}['registerInlineAttribute'](_0x2e7fa3){this['_inlineAttributeKeys']['add'](_0x2e7fa3);}['startTrackingSession'](_0x323498){return this['_trackingSessionId']=void 0x0!==_0x323498?_0x323498:_0x370ed3(),this['_trackingSessionId'];}['_getAttributeKey'](_0x4bfe61){return'attribute'==_0x4bfe61['type']?_0x4bfe61['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x782d4d,_0x83f73){const _0x325e88=_0x782d4d['getFirstMarker']();this['_model']['change'](_0x73b693=>{_0x73b693['updateMarker'](_0x325e88,{'range':_0x83f73});});}['_addThreadToSuggestion'](_0x34c49a){const _0x312c1b=_0x34c49a['id'],_0x5b4d84=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x312c1b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5b4d84,'threadId':_0x312c1b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x334337=this['_commentsRepository']['getCommentThread'](_0x312c1b);_0x334337['unbind']('isRemovable'),_0x334337['isRemovable']=!0x1,_0x34c49a['commentThread']=_0x334337;}['_checkSuggestionCorrectness'](_0x26b931,_0x40bd81,_0x104518,_0x843479){if(_0x26b931['type']!=_0x40bd81||_0x26b931['subType']!=_0x104518||_0x26b931['creator']['id']!=_0x843479)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4ee9c2('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3c9963,_0x542b1d){const _0x250c2d=_0x3c9963['getFirstRange']();if(_0x542b1d['isEqual'](_0x250c2d))_0x3c9963['removeMarkers']();else{if(_0x250c2d['containsRange'](_0x542b1d)){const _0x42ec19=this['_model']['createPositionAt'](_0x542b1d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3c9963,this['_model']['createRange'](_0x250c2d['start'],_0x42ec19));const _0x468c93=_0x370ed3(),_0xd9367d=_0x3c9963['creator']['id'],_0x49407a=_0x3c9963['type']+':'+_0x3c9963['subType'];this['_setSuggestionData']({'id':_0x468c93,'type':_0x49407a,'createdAt':new Date(),'authorId':_0xd9367d,'data':_0x3c9963['data'],'attributes':_0x3c9963['attributes']});const _0x39ef78=this['_model']['createPositionAt'](_0x542b1d['end']['parent'],'after'),_0x4b852b=this['_model']['createRange'](_0x39ef78,_0x250c2d['end']);this['_addSuggestionMarker'](_0x49407a,_0x468c93,_0xd9367d,_0x4b852b);}else{if(_0x250c2d['containsPosition'](_0x542b1d['start'])){const _0x40ca28=this['_model']['createPositionAt'](_0x542b1d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3c9963,this['_model']['createRange'](_0x250c2d['start'],_0x40ca28));}else{const _0x5b011e=this['_model']['createPositionAt'](_0x542b1d['end']['parent'],'after');this['_setSuggestionRange'](_0x3c9963,this['_model']['createRange'](_0x5b011e,_0x250c2d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2c421c){for(const {suggestion:_0x419ece,meta:_0x4b3c60}of this['_findSuggestions'](_0x2c421c,'insertion')){if(!_0x4b3c60['isOwn'])continue;const _0x24a0ff=_0x419ece['getRanges']();for(const _0x572050 of _0x24a0ff)if(!_0x2c421c['getDifference'](_0x572050)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1e5b6d){const _0x6a0fab=this['editor']['plugins']['get']('Users')['getUser'](_0x1e5b6d);if(!_0x6a0fab)throw new _0x4ee9c2('track-changes-user-not-found',this);return _0x6a0fab;}['_getExternalAuthor'](_0x292b6e){const _0x52a9eb=this['editor']['plugins']['get']('Users'),_0x145c04=_0x3e24bc('external:'+_0x292b6e),_0x1cfdfd=_0x52a9eb['getUser'](_0x145c04);return _0x1cfdfd||_0x52a9eb['addUser']({'id':_0x145c04,'name':_0x292b6e});}['_createSuggestion'](_0x5a1a21,_0x2e4f9a,_0x584286,_0x4fc5f6,_0x3f5703,_0x5013bb){const _0x1e4c08=this['_getAuthorFromId'](_0x4fc5f6),_0x1266d7=this['_suggestionFactory']['buildSuggestion'](_0x5a1a21,_0x2e4f9a,_0x584286,_0x1e4c08,_0x3f5703,_0xf85daa=>{this['_updateSuggestionData'](_0x584286,{'attributes':_0xf85daa});const _0x23c5ba=this['getSuggestion'](_0x584286);this['_joinWithAdjacentSuggestions'](new Set([_0x23c5ba])),this['_refreshSuggestionsChain'](new Set([_0x23c5ba]));},_0x5013bb);return this['listenTo'](_0x1266d7,'accept',()=>{this['_updateSuggestionData'](_0x584286,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1266d7,'discard',()=>{this['_updateSuggestionData'](_0x584286,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x584286,_0x1266d7),this['_suggestionState']['set'](_0x1266d7,'notReady'),_0x1266d7;}['_splitMarkerName'](_0x2fc46c){const _0x482910=_0x2fc46c['split'](':');return{'group':_0x482910[0x0],'type':_0x482910[0x1],'subType':_0x482910['length']>=0x5?_0x482910[0x2]:null,'id':_0x482910['length']<0x5?_0x482910[0x2]:_0x482910[0x3],'authorId':_0x482910['length']<0x5?_0x482910[0x3]:_0x482910[0x4],'markerCount':0x6==_0x482910['length']?_0x482910[0x5]:null};}['_breakSuggestionMarker'](_0xd1e458,_0x59eedb,_0x431331){const _0x103600=_0xd1e458['getFirstRange'](),_0x3d6e22=_0x103600['start'],_0x1136b2=_0x103600['end'];this['_setSuggestionRange'](_0xd1e458,this['_model']['createRange'](_0x3d6e22,_0x59eedb));const _0x1fdf49=_0x370ed3(),_0x30b39e=_0xd1e458['creator']['id'],_0x36214a=_0xd1e458['type']+(_0xd1e458['subType']?':'+_0xd1e458['subType']:'');this['_setSuggestionData']({'id':_0x1fdf49,'type':_0x36214a,'createdAt':new Date(),'authorId':_0x30b39e,'originalSuggestionId':_0xd1e458['_originalSuggestionId']||_0xd1e458['id'],'attributes':_0xd1e458['attributes'],'data':_0xd1e458['data']});const _0x1e1807=this['_getAttributeKey'](_0xd1e458);('formatBlock'==_0xd1e458['type']||_0x1e1807&&this['_isBlockAttribute'](_0x1e1807))&&(_0x431331=this['_model']['createPositionBefore'](_0x431331['parent'])),this['_addSuggestionMarker'](_0x36214a,_0x1fdf49,_0x30b39e,this['_model']['createRange'](_0x431331,_0x1136b2));}['_findSuggestions'](_0x25611b,_0x11e143=null){const _0x3bc31b=[],_0xa93af3=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x25611b)||(_0x25611b=[_0x25611b]);for(const _0x22fd37 of this['getSuggestions']()){if(!_0x22fd37['isInContent'])continue;if(_0x11e143&&_0x22fd37['type']!=_0x11e143)continue;let _0x199adf=!0x1;for(const _0xa66742 of _0x22fd37['getRanges']()){for(const _0x1e693e of _0x25611b){const _0x512580=_0x1e693e['start']['isEqual'](_0xa66742['end'])||_0x1e693e['end']['isEqual'](_0xa66742['start']);if(_0x512580||_0x1e693e['getIntersection'](_0xa66742)){const _0x5079ac=_0x1e693e['containsRange'](_0xa66742)&&Ft(this['_model']['schema'],_0xa66742['start'],_0x1e693e),_0x44d8b0=_0xa66742['containsRange'](_0x1e693e)&&Ft(this['_model']['schema'],_0x1e693e['start'],_0xa66742);_0x3bc31b['push']({'suggestion':_0x22fd37,'meta':{'isOwn':_0xa93af3==_0x22fd37['author'],'isNextTo':_0x512580,'isInsideObject':_0x5079ac,'containsRangeInObject':_0x44d8b0}}),_0x199adf=!0x0;break;}}if(_0x199adf)break;}}return _0x3bc31b;}['_addSuggestionMarker'](_0x21db7e,_0x5215a8,_0x5e371e,_0x3348d3,_0x2f21ac){this['_model']['change'](_0x5945ee=>{let _0x595f70='suggestion:'+_0x21db7e+':'+_0x5215a8+':'+_0x5e371e;_0x2f21ac&&(_0x595f70=_0x595f70+':'+_0x2f21ac),_0x5945ee['addMarker'](_0x595f70,{'range':_0x3348d3,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1da785){const _0x32a54b=_0x1da785['previous'],_0x10f41d=_0x1da785['next'];_0x1da785['previous']=null,_0x1da785['next']=null,null!=_0x32a54b&&_0x32a54b['next']==_0x1da785&&(_0x32a54b['next']=_0x10f41d),null!=_0x10f41d&&_0x10f41d['previous']==_0x1da785&&(_0x10f41d['previous']=_0x32a54b),'ready'==this['_suggestionState']['get'](_0x1da785)&&(this['_suggestionState']['set'](_0x1da785,'removed'),this['fire']('suggestionUnloaded',_0x1da785,_0x32a54b,_0x10f41d));}['_setSuggestionData'](_0x4aa09d){const _0x3bb5fe=_0x4aa09d['id'],_0x379a39=this['addSuggestionData'](_0x4aa09d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x49a399=this['editor']['plugins']['get']('PendingActions'),_0xafb16e=_0x379a39['hasComments'],_0x385f43=_0x379a39['subType']?_0x379a39['type']+':'+_0x379a39['subType']:_0x379a39['type'],_0x3d247d=this['editor']['locale'],_0x503d80=_0x49a399['add'](o(_0x3d247d,'PENDING_ACTION_SUGGESTION')),_0x3166e3={'id':_0x3bb5fe,'type':_0x385f43,'hasComments':_0xafb16e,'data':_0x4aa09d['data']||null,'originalSuggestionId':_0x4aa09d['originalSuggestionId']||null,'attributes':_0x379a39['attributes']};this['_adapter']['addSuggestion'](_0x3166e3)['then'](_0x4a9806=>{_0x379a39['_saved']=!0x0,_0x49a399['remove'](_0x503d80),_0x4a9806&&_0x4a9806['createdAt']&&(this['_suggestions']['get'](_0x3bb5fe)['createdAt']=_0x4a9806['createdAt']);})['catch'](_0x399e3d=>{throw _0x2d38e9('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x379a39['discard']();}),_0x379a39['stopListening'](),this['_suggestions']['delete'](_0x379a39['id']),this['_suggestionState']['delete'](_0x379a39),_0x399e3d;});}return _0x379a39;}['_isBlockAttribute'](_0x1f6d58){return this['_blockAttributeKeys']['has'](_0x1f6d58);}['_updateSuggestionData'](_0xeac410,_0x4ab9f7){const _0x1ab289=this['editor']['plugins']['get']('PendingActions'),_0xfaeb5d=this['getSuggestion'](_0xeac410);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xfaeb5d['_saved']){const _0x542f5b=_0x1ab289['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xeac410,_0x4ab9f7)['then'](()=>{_0x1ab289['remove'](_0x542f5b);});}else _0xfaeb5d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xeac410,_0x4ab9f7);});}}['_getSuggestionData'](_0x572ed5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4ee9c2('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x572ed5);}['_handleNewSuggestionMarker'](_0x11e283){const {id:_0x8c6a29,type:_0x19bf55,subType:_0x57b875,authorId:_0x265eab}=this['_splitMarkerName'](_0x11e283),_0x1ce753=this['_suggestions']['get'](_0x8c6a29)||this['_createSuggestion'](_0x19bf55,_0x57b875,_0x8c6a29,_0x265eab,{});switch(this['_checkSuggestionCorrectness'](_0x1ce753,_0x19bf55,_0x57b875,_0x265eab),this['_suggestionState']['get'](_0x1ce753)){case'notReady':this['_getSuggestionData'](_0x8c6a29)['then'](_0x448497=>{let _0x304d6f=Promise['resolve']();_0x448497['hasComments']&&(_0x304d6f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x8c6a29})),_0x304d6f['then'](()=>{this['addSuggestionData'](_0x448497)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1ce753,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x8c6a29,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1ce753,'ready'),this['fire']('suggestionLoaded',_0x1ce753);break;case'ready':this['fire']('suggestionChanged',_0x1ce753);}return _0x1ce753['addMarkerName'](_0x11e283),_0x1ce753;}['_refreshSuggestionsChain'](_0x1ee585){const _0x3f33b6=Array['from'](_0x1ee585),_0x51c451=_0x3f33b6['filter'](_0x4ba041=>'attribute'==_0x4ba041['type']);this['_refreshAttributeSuggestionsChain'](_0x51c451);const _0x53c377=_0x3f33b6['filter'](_0x25ce7f=>!_0x25ce7f['isMultiRange']&&'attribute'!=_0x25ce7f['type']),_0x3cd3df=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ec4a0=>!_0x5ec4a0['isMultiRange']&&'attribute'!=_0x5ec4a0['type']),_0x1edfd2=_0x3cd3df['filter'](_0x4d49cf=>!_0x1ee585['has'](_0x4d49cf)),_0x188eac=new Map(_0x3cd3df['map'](_0x2adc55=>[_0x2adc55,this['_suggestionFactory']['getSuggestionCallback'](_0x2adc55['type'],_0x2adc55['subType'],'chain')])),_0x572c21=new Map(_0x3cd3df['map'](_0x27a4fc=>[_0x27a4fc,_0x27a4fc['getFirstRange']()])),_0x1dc9a4=new Set(),_0x455031=new Set();for(let _0x35ac8b=0x0;_0x35ac8b<_0x53c377['length'];_0x35ac8b++)_0x2156b8(_0x53c377[_0x35ac8b],_0x53c377,_0x35ac8b+0x1);for(let _0x2214c2=0x0;_0x2214c2<_0x53c377['length'];_0x2214c2++)_0x2156b8(_0x53c377[_0x2214c2],_0x1edfd2,0x0);const _0xb2ba50=new Set();for(let _0x3fc7d0=0x0;_0x3fc7d0<_0x53c377['length'];_0x3fc7d0++){const _0x21d69e=_0x53c377[_0x3fc7d0];!_0x455031['has'](_0x21d69e)&&_0x21d69e['previous']&&(_0xb2ba50['add'](_0x21d69e['previous']),_0x21d69e['previous']['next']===_0x21d69e&&(_0x21d69e['previous']['next']=null),_0x21d69e['previous']=null),!_0x1dc9a4['has'](_0x21d69e)&&_0x21d69e['next']&&(_0xb2ba50['add'](_0x21d69e['next']),_0x21d69e['next']['previous']===_0x21d69e&&(_0x21d69e['next']['previous']=null),_0x21d69e['next']=null);}function _0x2156b8(_0x17ad9a,_0x4c4ba5,_0x106a6f){for(let _0x13e7b1=_0x106a6f;_0x13e7b1<_0x4c4ba5['length'];_0x13e7b1++){const _0x30e723=_0x26b194(_0x17ad9a,_0x4c4ba5[_0x13e7b1]);_0x30e723&&(_0x30e723[0x0]['next']=_0x30e723[0x1],_0x30e723[0x1]['previous']=_0x30e723[0x0],_0x1dc9a4['add'](_0x30e723[0x0]),_0x455031['add'](_0x30e723[0x1]));}}function _0x26b194(_0x50e70e,_0x145a54){if(_0x50e70e['author']['id']!==_0x145a54['author']['id'])return null;const _0x1585e4=_0x188eac['get'](_0x50e70e)(_0x50e70e,_0x145a54,_0x572c21['get'](_0x50e70e),_0x572c21['get'](_0x145a54));if(!_0x1585e4)return null;return _0x188eac['get'](_0x145a54)(_0x50e70e,_0x145a54,_0x572c21['get'](_0x50e70e),_0x572c21['get'](_0x145a54))?_0x1585e4[0x1]['commentThread']&&_0x1585e4[0x1]['commentThread']['length']?null:_0x1585e4:null;}_0xb2ba50['size']&&this['_refreshSuggestionsChain'](_0xb2ba50);}['_refreshAttributeSuggestionsChain'](_0x7a7c67){if(0x0==_0x7a7c67['length'])return;const _0x19238d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27cc14=>'attribute'==_0x27cc14['type']&&_0x27cc14['_isDataLoaded']),_0x59d44a=[],_0x20abbe=new Map();for(const _0x4401d2 of _0x19238d){const _0x44f064=_0x3e24bc(_0x4401d2['attributes']);_0x20abbe['has'](_0x44f064)||(_0x20abbe['set'](_0x44f064,_0x59d44a['length']),_0x59d44a['push']([]));const _0x1a431a=_0x20abbe['get'](_0x44f064);_0x59d44a[_0x1a431a]['push'](_0x4401d2);}!(function(){_0x59d44a['sort']((_0x484694,_0x165c34)=>{const _0x50da97=_0x484694[0x0]['createdAt'],_0x2184c3=_0x165c34[0x0]['createdAt'];return _0x50da97==_0x2184c3?_0x484694[0x0]['attributes']['groupId']<_0x165c34[0x0]['attributes']['groupId']?-0x1:0x1:_0x50da97<_0x2184c3?-0x1:0x1;});for(const _0x1dd2fd of _0x59d44a)_0x1dd2fd['sort']((_0x2410e7,_0x3c83fb)=>_0x2410e7['id']<_0x3c83fb['id']?-0x1:0x1);}());for(let _0x9a3d16=0x0;_0x9a3d16<_0x59d44a['length'];_0x9a3d16++){if(0x0==_0x59d44a[_0x9a3d16]['length'])continue;const _0x15f8ea=[];for(let _0x29a470=_0x9a3d16+0x1;_0x29a470<_0x59d44a['length'];_0x29a470++)0x0!=_0x59d44a[_0x29a470]['length']&&_0x3115ed(_0x59d44a[_0x9a3d16],_0x59d44a[_0x29a470])&&_0x15f8ea['push'](_0x29a470);for(const _0x8b4fb4 of _0x15f8ea)_0x59d44a[_0x9a3d16]=_0x59d44a[_0x9a3d16]['concat'](_0x59d44a[_0x8b4fb4]),_0x59d44a[_0x8b4fb4]=[];}for(const _0x3f017f of _0x59d44a)for(let _0x3dcc3c=0x0;_0x3dcc3c<_0x3f017f['length'];_0x3dcc3c++){const _0x592a39=_0x3f017f[_0x3dcc3c+0x1]||null;_0x3f017f[_0x3dcc3c]['next']!==_0x592a39&&(_0x3f017f[_0x3dcc3c]['next']=_0x592a39);}for(const _0x472827 of _0x59d44a)for(let _0xabc66=0x0;_0xabc66<_0x472827['length'];_0xabc66++){const _0x7d22c2=_0x472827[_0xabc66-0x1]||null;_0x472827[_0xabc66]['previous']!==_0x7d22c2&&(_0x472827[_0xabc66]['previous']=_0x7d22c2);}function _0x3115ed(_0x3c7984,_0x245368){if(_0x3c7984[0x0]['attributes']['groupId']!==_0x245368[0x0]['attributes']['groupId']&&_0x3c7984[0x0]['author']!==_0x245368[0x0]['author'])return!0x1;if(!function(_0x1b6c2b,_0x38aae7){if(!_0x1b6c2b['hasComments']&&!_0x38aae7['hasComments'])return!0x0;if(_0x1b6c2b['hasComments']&&_0x38aae7['hasComments'])return!0x1;if(_0x1b6c2b['hasComments']&&_0x38aae7['createdAt']<_0x1b6c2b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x38aae7['hasComments']&&_0x1b6c2b['createdAt']<_0x38aae7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3c7984[0x0],_0x245368[0x0]))return!0x1;const _0x2c8088=Ut(_0x3c7984[0x0]['attributes'],['groupId','trackingSessionId']),_0xe472be=Ut(_0x245368[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x31f67f(_0x2c8088,_0xe472be))return!0x1;if(_0x3c7984[0x0]['attributes']['groupId']==_0x245368[0x0]['attributes']['groupId'])return!0x0;if(_0x3c7984[0x0]['attributes']['trackingSessionId']!==_0x245368[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3c7984['every'](_0x2d3a34=>_0x245368['some'](_0x4ec898=>_0x2d3a34['getFirstRange']()['isEqual'](_0x4ec898['getFirstRange']())))&&_0x245368['every'](_0x3baf9c=>_0x3c7984['some'](_0x364ee2=>_0x3baf9c['getFirstRange']()['isEqual'](_0x364ee2['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x59af70){const _0x587b0f=Array['from'](_0x59af70),_0x59a665=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3ba268=_0x59a665['filter'](_0x351599=>!_0x59af70['has'](_0x351599)),_0x1ddde0=new Map(_0x587b0f['map'](_0x47a963=>[_0x47a963,this['_suggestionFactory']['getSuggestionCallback'](_0x47a963['type'],_0x47a963['subType'],'join')])),_0x4d16f9=new Map(_0x59a665['map'](_0x5bb41c=>[_0x5bb41c,_0x5bb41c['getRanges']()]));for(let _0x458745=0x0;_0x458745<_0x587b0f['length'];_0x458745++){if(_0xe1fffb(this,_0x587b0f[_0x458745],_0x587b0f,_0x458745+0x1))return!0x0;}for(let _0x20e84a=0x0;_0x20e84a<_0x587b0f['length'];_0x20e84a++){if(_0xe1fffb(this,_0x587b0f[_0x20e84a],_0x3ba268,0x0))return!0x0;}return!0x1;function _0xe1fffb(_0x2ec2df,_0xa7901c,_0x34a419,_0x3e7ac4){for(let _0x34397e=_0x3e7ac4;_0x34397e<_0x34a419['length'];_0x34397e++){const _0x127aac=_0x34a419[_0x34397e];if(_0x127aac['type']!==_0xa7901c['type']||_0x127aac['author']['id']!==_0xa7901c['author']['id']||_0x127aac['subType']!==_0xa7901c['subType'])continue;if(!zt(_0xa7901c,_0x127aac))continue;if('attribute'==_0xa7901c['type']&&_0xa7901c['data']['oldValue']!=_0x127aac['data']['oldValue'])continue;if('attribute'==_0xa7901c['type']&&_0x2ec2df['_isBlockAttribute'](_0xa7901c['data']['key']))continue;if('formatBlock'==_0xa7901c['type']){const _0x1e6fda=_0x2ec2df['editor']['model'],_0x279fed=_0xa7901c['getContainedElement']();if(_0x279fed&&(_0x1e6fda['schema']['isObject'](_0x279fed)||_0x1e6fda['schema']['isLimit'](_0x279fed)))continue;}const _0xcbc402=_0x1ddde0['get'](_0xa7901c),_0x4c880c=_0x4d16f9['get'](_0xa7901c),_0x1a2f9b=_0x4d16f9['get'](_0x127aac),_0x3346b7=_0xa7901c['commentThread']&&_0xa7901c['commentThread']['length'],_0xfb1176=_0x127aac['commentThread']&&_0x127aac['commentThread']['length'];if(!_0x3346b7&&_0xcbc402(_0x1a2f9b,_0x4c880c))return _0x2ec2df['_joinSuggestions'](_0x127aac,_0xa7901c),_0x4d16f9['delete'](_0xa7901c),!0x0;if(!_0xfb1176&&_0xcbc402(_0x4c880c,_0x1a2f9b))return _0x2ec2df['_joinSuggestions'](_0xa7901c,_0x127aac),_0x4d16f9['delete'](_0x127aac),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5c6842,_0x5e2ab1){if(_0x5c6842['isMultiRange']){for(const _0x4da020 of _0x5e2ab1['getRanges']())_0x5c6842['addRange'](_0x4da020);}else{const _0x2d411e=_0x5e2ab1['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5c6842,this['_model']['createRange'](_0x5c6842['getFirstRange']()['start'],_0x2d411e));}_0x5e2ab1['removeMarkers']();}['_getMarkerAnnouncementText'](_0x30d2db,_0x5aca62,_0x51035b){const _0x14672c=_0x30d2db['startsWith']('format')||_0x30d2db['startsWith']('attribute')?'FORMATTING':_0x30d2db['toUpperCase']();return o(this['editor']['locale'],_0x5aca62+'_'+_0x14672c+'_SUGGESTION_ANNOUNCEMENT',_0x51035b);}['_initAriaMarkerChangeAnnouncements'](){const _0x299094=this['editor'];if(!_0x299094['ui'])return;const {ariaLiveAnnouncer:_0x3cd5eb}=_0x299094['ui'];_0x46fc19(this['_model'],({left:_0x4b60fa,entered:_0x593ee3})=>{for(const _0x2d9ec9 of _0x4b60fa){const {group:_0x3722e7,type:_0x24e501}=this['_splitMarkerName'](_0x2d9ec9['name']);if('suggestion'===_0x3722e7){_0x3cd5eb['announce'](this['_getMarkerAnnouncementText'](_0x24e501,'LEAVE'));break;}}for(const _0x5126b7 of _0x593ee3){const {group:_0x21ecf2,type:_0x43f4b8}=this['_splitMarkerName'](_0x5126b7['name']);if('suggestion'===_0x21ecf2){_0x3cd5eb['announce'](this['_getMarkerAnnouncementText'](_0x43f4b8,'ENTER',_0x278c74(_0x837e7b)));break;}}});}['_processAttributeChanges'](_0x51028e){if(this['_recordAttributeSuggestions'])return!0x1;const _0x357c43=this['editor'],_0x1e3b00=_0x357c43['model']['document']['differ']['getChanges']();if(0x0==_0x1e3b00['length'])return!0x1;const _0x20e316=[],_0x295ea1=_0x1e3b00['filter'](_0x3aa3bf=>'attribute'==_0x3aa3bf['type']),_0x22baac=_0x1e3b00['filter'](_0x17b05c=>'insert'==_0x17b05c['type']&&'$text'!=_0x17b05c['name']),_0x11d887=_0x1e3b00['filter'](_0x1a200f=>'remove'==_0x1a200f['type']&&'$text'!=_0x1a200f['name']);for(const _0x2d812c of _0x295ea1)_0x20e316['push']({'key':_0x2d812c['attributeKey'],'newValue':_0x2d812c['attributeNewValue'],'oldValue':_0x2d812c['attributeOldValue'],'range':Kt(_0x2d812c['range'],_0x357c43['model'])});for(const _0x2a0958 of _0x22baac){const _0x565fb7=_0x11d887['find'](_0x5686f0=>_0x5686f0['position']['isEqual'](_0x2a0958['position']));_0x565fb7&&_0x20e316['push']({'key':m,'newValue':_0x2a0958['name'],'oldValue':_0x565fb7['name'],'range':_0x357c43['model']['createRangeOn'](_0x2a0958['position']['nodeAfter'])});}return 0x0!=_0x20e316['length']&&this['_reduceExistingSuggestions'](_0x51028e,_0x20e316);}['_processAttributeSuggestions'](_0x4722c6){let _0x156e95=!0x1;const _0x5bdbe3=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1d9e53=>_0x1d9e53['data']['newRange']&&_0x1d9e53['name']['startsWith']('suggestion:attribute:'));for(const _0x80f2f0 of _0x5bdbe3){const {subType:_0x1143c4,id:_0x51ceac}=this['_splitMarkerName'](_0x80f2f0['name']),_0x4db0f8=_0x1143c4['split']('|')[0x0];for(const _0x1527be of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1527be['id']!=_0x51ceac&&'attribute'==_0x1527be['type']&&_0x1527be['data']&&_0x1527be['data']['key']==_0x4db0f8&&_0x1527be['getFirstRange']()['isIntersecting'](_0x80f2f0['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1527be,_0x80f2f0['data']['newRange'],_0x4722c6),_0x156e95=!0x0);}return _0x156e95;}['_recordAttributeChanges'](_0x4643f1){this['_recordAttributeSuggestions']=!0x0,_0x4643f1();}['_isRegisteredAttribute'](_0x2f5c29){const _0xfdda96=this['_isBlockAttribute'](_0x2f5c29),_0xaf6e45=this['_inlineAttributeKeys']['has'](_0x2f5c29);return _0xfdda96||_0xaf6e45;}['_reduceExistingSuggestions'](_0x2feaf1,_0xcdaa81){if(0x0==_0xcdaa81['length'])return!0x1;let _0x291b7b=!0x1;for(const _0x3be5a5 of _0xcdaa81){const _0x4e8ebf=this['_findSuggestions'](_0x3be5a5['range'],'attribute')['filter'](_0x4b1317=>!_0x4b1317['meta']['isNextTo'])['map'](_0x58c369=>_0x58c369['suggestion']),_0x2b7c30=_0x3e24bc({'newValue':_0x3be5a5['newValue']});_0x4e8ebf['filter'](_0x1ea0d4=>{const [_0x194178,_0x4f936b]=_0x1ea0d4['subType']['split']('|');return _0x194178==_0x3be5a5['key']&&_0x4f936b!=_0x2b7c30;})['forEach'](_0x3292e7=>{this['_reduceSuggestionAttributeRange'](_0x3292e7,_0x3be5a5['range'],_0x2feaf1),_0x291b7b=!0x0;});}return _0x291b7b;}['_reduceSuggestionAttributeRange'](_0x3b28ce,_0x1859ca,_0x3eb901){const _0x1f8d34=_0x3b28ce['getFirstRange']()['getDifference'](_0x1859ca);0x0!==_0x1f8d34['length']?0x1!==_0x1f8d34['length']?this['_breakSuggestionMarker'](_0x3b28ce,_0x1859ca['start'],_0x1859ca['end']):this['_setSuggestionRange'](_0x3b28ce,_0x1f8d34[0x0]):_0x3eb901['removeMarker'](_0x3b28ce['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x417b6e){this['_editor']=_0x417b6e,this['_model']=_0x417b6e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x112696,_0xf164f6,_0x13ce26,_0x210ae4,_0x27e2b4,_0x5c1a60,_0x42fa26){return new x(this['_model'],{'type':_0x112696,'subType':_0xf164f6,'id':_0x13ce26,'originalSuggestionId':_0x42fa26,'author':_0x210ae4,'creator':_0x210ae4,'attributes':_0x27e2b4,'onAttributesChange':_0x5c1a60,'onAccept':(..._0x23558a)=>this['getSuggestionCallback'](_0x112696,_0xf164f6,'accept')(..._0x23558a),'onDiscard':(..._0x1c2de4)=>this['getSuggestionCallback'](_0x112696,_0xf164f6,'discard')(..._0x1c2de4)});}['registerCustomCallback'](_0x54437c,_0x1b4700,_0x3947cd,_0x942931){const _0x239a69=_0x54437c+':'+_0x1b4700+':'+_0x3947cd;this['_customCallbacks']['set'](_0x239a69,_0x942931);}['getSuggestionCallback'](_0x3ad725,_0x445b8d,_0x14e006){const _0x7d9c50=_0x3ad725+':'+_0x445b8d+':'+_0x14e006;return this['_customCallbacks']['get'](_0x7d9c50)||this['_defaultCallbacks']['get'](_0x3ad725+':'+_0x14e006);}['_registerDefaultCallbacks'](){const _0x5e4874=()=>!0x1,_0x24ecbd=_0x53d5c4=>{_0x53d5c4['sort']((_0x2ab14c,_0x578017)=>_0x2ab14c['start']['isBefore'](_0x578017['start'])?0x1:-0x1),this['_model']['change'](_0x5762b3=>{for(const _0x810f25 of _0x53d5c4){let _0x1d4b7d;_0x1d4b7d=_0x810f25['end']['isAtEnd']&&_0x810f25['end']['parent']==_0x810f25['start']['nodeAfter']?_0x5762b3['createSelection'](_0x810f25['start']['nodeAfter'],'on'):_0x5762b3['createSelection'](_0x810f25),this['_model']['deleteContent'](_0x1d4b7d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x523370=(_0xb763be,_0x3b27f6)=>{_0x3b27f6&&this['_model']['change'](_0x44db2d=>{const {commandName:_0x5c933e,commandParams:_0x33d657=[]}=_0x3b27f6,_0x80ef4c=_0xb763be['map'](_0x2c22b6=>(Pt(_0x2c22b6)&&(_0x2c22b6=this['_model']['createRange'](_0x2c22b6['end'])),_0x2c22b6))['filter'](_0x41d7e6=>'$graveyard'!==_0x41d7e6['root']['rootName']);if(_0x80ef4c['length']<0x1)return;const _0x37fcda=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3b5d98=>_0xc2db3f['fromRange'](_0x3b5d98));_0x44db2d['setSelection'](_0x80ef4c);for(const _0x11ecff of this['_editor']['commands']['commands']())_0x11ecff['refresh']();_0x33d657['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5c933e,..._0x33d657);const _0x952d16=_0x37fcda['filter'](_0x28e8a5=>'$graveyard'!=_0x28e8a5['root']['rootName']);_0x952d16['length']>0x0&&_0x44db2d['setSelection'](_0x952d16);for(const _0x4731d6 of _0x37fcda)_0x4731d6['detach']();});},_0x13da8e=(_0x58003f,_0x27a687)=>0x1==_0x58003f['length']&&0x1==_0x27a687['length']&&_0x58003f[0x0]['end']['isEqual'](_0x27a687[0x0]['start']),_0x39c4eb=(_0x35eea2,_0x3041d4,_0x2a26ca,_0x4ad47f)=>qt(_0x35eea2,_0x3041d4,_0x2a26ca,_0x4ad47f)?[_0x35eea2,_0x3041d4]:qt(_0x3041d4,_0x35eea2,_0x4ad47f,_0x2a26ca)?[_0x3041d4,_0x35eea2]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5e4874),this['_defaultCallbacks']['set']('insertion:discard',_0x24ecbd),this['_defaultCallbacks']['set']('insertion:join',_0x13da8e),this['_defaultCallbacks']['set']('insertion:chain',_0x39c4eb),this['_defaultCallbacks']['set']('deletion:accept',_0x24ecbd),this['_defaultCallbacks']['set']('deletion:discard',_0x5e4874),this['_defaultCallbacks']['set']('deletion:join',_0x13da8e),this['_defaultCallbacks']['set']('deletion:chain',_0x39c4eb),this['_defaultCallbacks']['set']('formatInline:accept',_0x523370),this['_defaultCallbacks']['set']('formatInline:discard',_0x5e4874),this['_defaultCallbacks']['set']('formatInline:join',_0x13da8e),this['_defaultCallbacks']['set']('formatInline:chain',_0x5e4874),this['_defaultCallbacks']['set']('formatBlock:accept',_0x523370),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5e4874),this['_defaultCallbacks']['set']('formatBlock:join',_0x13da8e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5e4874),this['_defaultCallbacks']['set']('attribute:accept',_0x5e4874),this['_defaultCallbacks']['set']('attribute:discard',(_0x54db2c,_0xe906ee)=>{if(!_0xe906ee)return;const _0x403985=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x2b11d7=>{if(_0xe906ee['key']==m)for(const _0x18d16e of _0x54db2c){const _0x23994f=_0x18d16e['start']['nodeAfter'],_0x16bcc3=_0xe906ee['oldValue'];_0x2b11d7['rename'](_0x23994f,_0x16bcc3);}else{if(_0x403985['_isBlockAttribute'](_0xe906ee['key'])){for(const _0xbf0564 of _0x54db2c)void 0x0!==_0xe906ee['oldValue']?_0x2b11d7['setAttribute'](_0xe906ee['key'],_0xe906ee['oldValue'],_0xbf0564['start']['nodeAfter']):_0x2b11d7['removeAttribute'](_0xe906ee['key'],_0xbf0564['start']['nodeAfter']);}else{for(const _0x28c2ac of _0x54db2c)_0xe906ee['oldValue']?_0x2b11d7['setAttribute'](_0xe906ee['key'],_0xe906ee['oldValue'],_0x28c2ac):_0x2b11d7['removeAttribute'](_0xe906ee['key'],_0x28c2ac);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x13da8e);}}function Ft(_0x4d4627,_0xae1461,_0x4a8192){for(const _0x59dc95 of _0xae1461['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x59dc95['root']==_0x59dc95)return!0x1;if(!_0x4a8192['containsItem'](_0x59dc95))return!0x1;if(_0x4d4627['isObject'](_0x59dc95)||_0x4d4627['isLimit'](_0x59dc95))return!0x0;}return!0x1;}function Pt(_0x148fe6){return _0x148fe6['end']['parent']==_0x148fe6['start']['nodeAfter']&&_0x148fe6['end']['isAtStart'];}function Gt(_0x17a037,_0x1cceec,_0x101767,_0x4919e6){const _0x27972a=_0x4db726=>!_0x4db726['item']['is']('$textProxy')&&!_0x4919e6['isObject'](_0x4db726['item']),_0x5cd4f0=_0x17a037['start']['getLastMatchingPosition'](_0x27972a),_0x49fd59=_0x17a037['end']['getLastMatchingPosition'](_0x27972a,{'direction':'backward'});return(!_0x17a037['start']['isEqual'](_0x5cd4f0)||!_0x17a037['end']['isEqual'](_0x49fd59))&&(_0x5cd4f0['isBefore'](_0x49fd59)?_0x101767['updateMarker'](_0x1cceec,{'range':_0x101767['createRange'](_0x5cd4f0,_0x49fd59)}):_0x101767['removeMarker'](_0x1cceec),!0x0);}function Lt(_0x8130f6){return _0x3e24bc(_0x8130f6);}function Jt(_0x17916c){const _0x2a6b48=_0x17916c['start']['nodeAfter'];return _0x2a6b48&&_0x2a6b48['is']('element');}function Kt(_0x4b35fe,_0x320edc){return null==_0x4b35fe['end']['nodeBefore']&&_0x4b35fe['end']['parent']==_0x4b35fe['start']['nodeAfter']?Ht(_0x4b35fe['start']['nodeAfter'],_0x320edc):_0x4b35fe;}function Ht(_0x6ca0e6,_0x3cdcad){const _0x408f1f=_0x3cdcad['schema']['isObject'](_0x6ca0e6)||_0x3cdcad['schema']['isSelectable'](_0x6ca0e6);return _0x3cdcad['createRange'](_0x3cdcad['createPositionAt'](_0x6ca0e6,'before'),_0x408f1f?_0x3cdcad['createPositionAfter'](_0x6ca0e6):_0x3cdcad['createPositionAt'](_0x6ca0e6,'end'));}function qt(_0x479a63,_0x5d2be7,_0x152cd0,_0x3baf98){return!!zt(_0x479a63,_0x5d2be7)&&_0x152cd0['end']['isEqual'](_0x3baf98['start']);}function zt(_0x13d16e,_0x16f6e9){if(!_0x13d16e['_isDataLoaded']||!_0x16f6e9['_isDataLoaded'])return!0x1;const _0x38bbe4=new Set(Object['keys'](_0x13d16e['attributes'])),_0x3856b5=new Set(Object['keys'](_0x16f6e9['attributes']));if(_0x38bbe4['delete']('groupId'),_0x3856b5['delete']('groupId'),0x0==_0x38bbe4['size']&&0x0==_0x3856b5['size'])return!0x0;if(_0x38bbe4['size']!=_0x3856b5['size'])return!0x1;const _0xd8f60f={..._0x13d16e['attributes']},_0x50782e={..._0x16f6e9['attributes']};return delete _0xd8f60f['groupId'],delete _0x50782e['groupId'],JSON['stringify'](_0xd8f60f)==JSON['stringify'](_0x50782e);}function Wt(_0x24a416,_0x907312){const _0x326bc7=Qt(_0x24a416['attributes']),_0x30c61d=Qt(_0x907312);if(!_0x24a416['_isDataLoaded'])return!0x1;for(const _0x441c92 of Object['keys'](_0x30c61d))if(!_0x31f67f(_0x326bc7[_0x441c92],_0x30c61d[_0x441c92]))return!0x1;return!0x0;}function Qt(_0x122069){const _0x35588b=Object['assign']({},_0x122069);return delete _0x35588b['skipNestingCheck'],delete _0x35588b['tablePasteChainId'],_0x35588b;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x3e391a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3e70ed,_0x4cca3d,_0x314f54,_0x239ed8){super(),this['model']=_0x4cca3d,this['view']=_0x314f54,this['commentThreadController']=_0x239ed8,this['_editor']=_0x3e70ed,this['_acceptCommand']=_0x3e70ed['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3e70ed['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2f0cda,_0x215a8e)=>_0x2f0cda||_0x215a8e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x41bd98=>_0x41bd98&&this['_editor']['model']['canEditAt'](_0x4cca3d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x261eed=>_0x261eed&&this['_editor']['model']['canEditAt'](_0x4cca3d['getRanges']())),this['_pendingAction']=null,_0x314f54['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x314f54,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x314f54,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x314f54,'change:isDirty',()=>{_0x314f54['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 _0x3c0b14=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3c0b14);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ti extends _0x56481a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x267eb3,_0x44d04a,_0x36640d,_0x5310d8){super(_0x267eb3),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x25c525(_0x267eb3,o(_0x267eb3,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x44d04a['authoredAt']),this['bind']('authoredAt')['to'](_0x44d04a),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',_0x44d04a,'authoredAt',this,'descriptionParts',(_0x159eac,_0x57dc60,_0x233aaf)=>{const _0x2233a8=_0x233aaf['map'](_0x12ec6b=>ls(_0x12ec6b['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x159eac-0x1,_0x44d04a['author']['name'],_0x57dc60?_0x5310d8['formatDateTime'](_0x57dc60):'',new DOMParser()['parseFromString'](_0x2233a8,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2bdb44(),this['focusTracker']=new _0xebdde7(),this['keystrokes']=new _0x485de4(),this['focusCycler']=new _0x2a3b0e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2f9ce3=>_0x2f9ce3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x44d04a,this['_localUser']=_0x36640d,this['_config']=_0x5310d8,_0x5310d8['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x581dea(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5d6687}=this['_config'];this['commentsListView']=new _0x5d6687(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',_0x5dee55=>_0x5dee55+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2576b1,_0x3e1216)=>_0x2576b1||!!_0x3e1216);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2fe55f}=this['_config'],_0x391094=new _0x2fe55f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xa9bded=_0x391094['commentInputView'];return _0x391094['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xa9bded,'value',(_0x4250cb,_0x3127ed,_0x5f27d2)=>!!_0x5f27d2||_0x4250cb&&!_0x3127ed),_0xa9bded['on']('submit',(_0x438430,_0x20f570)=>{this['fire']('addComment',_0x20f570),_0xa9bded['editor']['setData']('');}),_0xa9bded['on']('cancel',()=>this['focus']()),_0xa9bded['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x391094;}}class fe extends ti{['suggestionView'];['_descriptionElement'];constructor(_0x29f334,_0x3edb8b,_0x1e57ca,_0xd1552a){super(_0x29f334,_0x3edb8b,_0x1e57ca,_0xd1552a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x460b96=>_0x460b96&&_0x460b96[0x0]?_0x460b96[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x297adf,_0x5a076d)=>{let _0x961a7e='';for(const _0x23df74 of _0x297adf)_0x961a7e+='<p>'+ls(_0x23df74['content'],_0x23df74['color'])+'</p>';return _0x5a076d?_0x961a7e:_0x4dbf21(_0x961a7e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xd1552a['SuggestionView'](_0x29f334,_0x3edb8b,{'formatDateTime':_0xd1552a['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 _0x312fe5=this['bindTemplate'],_0x57e58a=[this['suggestionView']];return this['commentsListView']&&_0x57e58a['push'](this['commentsListView']),this['commentThreadInputView']&&_0x57e58a['push'](this['commentThreadInputView']),_0x57e58a['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x312fe5['if']('isActive','ck-suggestion-wrapper--active'),_0x312fe5['to']('type',_0x26c8a3=>'ck-suggestion-'+_0x26c8a3),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':_0x312fe5['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x57e58a};}['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 we extends _0x56481a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2579ce,_0xd6c211,_0x133829){super(_0x2579ce),this['_model']=_0xd6c211,this['_config']=_0x133829,this['set']('description',''),this['bind']('authoredAt')['to'](_0xd6c211),this['acceptButton']=this['_createButton'](o(_0x2579ce,'Accept\x20suggestion'),_0x4e2f88,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2579ce,'Discard\x20suggestion'),_0x11f7a8,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x251d08(_0x2579ce,_0xd6c211['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2bdb44([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xebdde7(),this['keystrokes']=new _0x485de4(),this['focusCycler']=new _0x2a3b0e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x311485=>_0x311485['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x60313f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x60313f['innerHTML']=this['description'],this['on']('change:description',(_0x5d0d2d,_0x10e285,_0x543d5d)=>{_0x60313f['innerHTML']=_0x543d5d;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3c330e=this['bindTemplate'],_0x3a0931=[{'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':_0x3c330e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3c330e['to']('authoredAt',_0x4799f8=>this['_config']['formatDateTime'](_0x4799f8))}]}]},{'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']&&_0x3a0931['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':_0x3a0931}]};}['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'](_0x38c83b,_0x563c6b,_0x14bc70,_0x2cea63,_0x477419){const _0x5615aa=new _0x2ae706(this['locale']);return _0x5615aa['set']({'label':_0x38c83b,'icon':_0x563c6b,'tooltip':!0x0,'tooltipPosition':_0x477419}),_0x5615aa['extendTemplate']({'attributes':{'class':_0x14bc70}}),_0x5615aa['on']('execute',()=>{this['fire'](_0x2cea63,this['_model']['id']);}),_0x5615aa;}['_setupKeyboardNavigation'](){const _0x2de529=this['element'];this['keystrokes']['listenTo'](_0x2de529);for(const _0x755239 of this['focusables'])this['focusTracker']['add'](_0x755239['element']),this['keystrokes']['listenTo'](_0x755239['element']);this['keystrokes']['set']('enter',(_0x3442d5,_0x2baa36)=>{_0x2de529===_0x3442d5['target']&&(this['focusCycler']['focusFirst'](),_0x2baa36());}),this['keystrokes']['set']('esc',(_0x2cd303,_0x3a7cdd)=>{_0x2de529!==_0x2cd303['target']&&(this['focus'](),_0x3a7cdd());});}}class u extends _0x28b250{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x148996,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x27aedc){super(_0x27aedc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x149b17=this['editor']['config'];_0x149b17['define']('trackChanges.SuggestionThreadView',fe),_0x149b17['define']('trackChanges.SuggestionView',we),_0x149b17['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x149b17['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x472db8,_0x29d5d3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1ec483,_0x50eaf3]of this['_handleControllerBuffer']){const _0x5d7d25=this['_suggestionToController']['has'](_0x1ec483);_0x5d7d25||_0x50eaf3?_0x5d7d25&&_0x50eaf3&&this['_destroyController'](_0x1ec483):this['_initializeController'](_0x1ec483);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x472db8,_0x29d5d3);}['init'](){const _0x298bc7=this['editor'],_0x15ae43=_0x298bc7['plugins']['get']('TrackChangesEditing'),_0x4c303b=_0x298bc7['plugins']['get']('Annotations'),_0x2507be=_0x298bc7['plugins']['get']('EditorAnnotations'),_0xa3fda0=_0x298bc7['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2507be['addSourceCollector'](()=>{const _0x8a13b4=[];for(const [_0x4a4e14,_0x6c8eac]of Array['from'](this['_suggestionToController'])){const _0x551811=_0x4a4e14['getAllAdjacentSuggestions'](),_0x21658d=[];for(const _0xfd7860 of _0x551811){if(!_0xfd7860['isInContent'])continue;if(_0xfd7860['isMultiRange']){_0x21658d['push'](..._0xfd7860['getRanges']());continue;}const _0x36968c=_0xfd7860['getFirstRange']();if(_0x21658d['length']>0x0){const _0x36ebba=_0x21658d[0x0]['getJoined'](_0x36968c);if(_0x36ebba){_0x21658d[0x0]=_0x36ebba;continue;}}_0x21658d['push'](_0x36968c);}_0x8a13b4['push']([_0x6c8eac['view'],_0x21658d]);}return _0x8a13b4;}),this['listenTo'](_0x15ae43,'suggestionLoaded',(_0x5aee79,_0x5b3058)=>{this['listenTo'](_0x5b3058,'change:previous',(_0x4faa9f,_0x3acb93,_0x37c9b2,_0x50307f)=>{_0x5b3058['isInContent']&&(null==_0x37c9b2?(this['_updateController'](_0x50307f['head']),this['_handleSuggestionControllerDelayed'](_0x5b3058,!0x1)):(this['_updateController'](_0x37c9b2['head']),null==_0x50307f&&this['_handleSuggestionControllerDelayed'](_0x5b3058,!0x0)));}),null!==_0x5b3058['previous']?this['_updateController'](_0x5b3058['head']):this['_handleSuggestionControllerDelayed'](_0x5b3058,!0x1);}),this['listenTo'](_0x15ae43,'suggestionUnloaded',(_0x3ccec3,_0x1b0085,_0x486350)=>{this['stopListening'](_0x1b0085,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1b0085),this['_suggestionToController']['has'](_0x1b0085)&&this['_destroyController'](_0x1b0085),_0x486350&&this['_updateController'](_0x486350['head']);}),this['listenTo'](_0x15ae43,'suggestionChanged',(_0xf40afc,_0x397778)=>{this['_updateController'](_0x397778);}),this['listenTo'](_0x4c303b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xa3fda0,'addComment',(_0x1b9be4,{threadId:_0x176a1b,isFromAdapter:_0x10776c})=>{if(_0x10776c||!_0x15ae43['hasSuggestion'](_0x176a1b))return;const _0x4c75da=_0x15ae43['getSuggestion'](_0x176a1b);this['_suggestionToController']['get'](_0x4c75da)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x56118f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1e8b5e;for(const _0x43573b in _0x56118f){const _0x2edbcb=_0x43573b,_0x143465=_0x56118f[_0x2edbcb];if('trackChangesLicenseKeyValid'==_0x143465||'trackChangesLicenseKeyInvalid'==_0x143465||'trackChangesLicenseKeyExpired'==_0x143465||'trackChangesLicenseKeyDomainLimit'==_0x143465||'trackChangesLicenseKeyNotAllowed'==_0x143465||'trackChangesLicenseKeyEvaluationLimit'==_0x143465||'trackChangesLicenseKeyTrialLimit'==_0x143465||'trackChangesLicenseKeyUsageLimit'==_0x143465){delete _0x56118f[_0x2edbcb],_0x1e8b5e=_0x143465,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1e8b5e&&_0x56118f['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1e8b5e&&_0x56118f['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1e8b5e&&_0x56118f['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1e8b5e&&_0x56118f['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1e8b5e&&_0x56118f['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1e8b5e&&_0x56118f['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1e8b5e&&_0x56118f['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x517358=this['editor']['plugins']['get']('Annotations'),_0x1c6daf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56f003=Array['from'](_0x517358['activeAnnotations'],_0x252e37=>_0x252e37['innerView'])['filter'](_0x5d5214=>this['_viewToController']['has'](_0x5d5214)),_0x1f0187=[];for(const _0x15e5f4 of _0x56f003){const _0x5867eb=this['_viewToController']['get'](_0x15e5f4)['model']['getAllAdjacentSuggestions']();_0x1f0187['push'](..._0x5867eb['reduce']((_0x523278,_0xcd5a02)=>[..._0x523278,..._0xcd5a02['getMarkerNames']()],[]));}_0x1c6daf['activeMarkers']=_0x1f0187;}['_addUIComponentsToFactory'](){const _0x2e1d86=this['editor'],_0x3c9622=_0x2e1d86['locale'],_0x545fbe=o(_0x3c9622,'Track\x20changes'),_0x4ae05a=new _0x558e28([{'type':'switchbutton','model':new _0x5b6ffb({'withText':!0x0,'isToggleable':!0x0,'label':_0x545fbe,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5b6ffb({'withText':!0x0,'label':o(_0x3c9622,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5b6ffb({'withText':!0x0,'label':o(_0x3c9622,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5b6ffb({'withText':!0x0,'label':o(_0x3c9622,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5b6ffb({'withText':!0x0,'label':o(_0x3c9622,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2e1d86['plugins']['has']('TrackChangesPreview')&&_0x4ae05a['addMany']([{'type':'separator'},{'type':'button','model':new _0x5b6ffb({'withText':!0x0,'label':o(_0x3c9622,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x9a84dd of _0x4ae05a)if(ke(_0x9a84dd)){const _0x1cad90=_0x2e1d86['commands']['get'](_0x9a84dd['model']['commandName']);_0x9a84dd['model']['bind']('isOn','isEnabled')['to'](_0x1cad90,'value','isEnabled');}_0x2e1d86['ui']['componentFactory']['add']('trackChanges',_0x26de98=>this['_createToolbarButton'](_0x26de98,_0x4ae05a,_0x545fbe)),_0x2e1d86['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2329dd=>this['_createMenuBarMenu'](_0x2329dd,_0x4ae05a,_0x545fbe));}['_createToolbarButton'](_0x14e4d6,_0x4dc51c,_0x229930){const _0x3f34ed=_0x6ae726(_0x14e4d6,_0x1f0b07),_0x4c5b9a=this['editor']['commands']['get']('trackChanges');_0x3f34ed['buttonView']['set']({'tooltip':_0x229930,'label':_0x229930,'icon':_0xc8e2e5}),_0x3f34ed['buttonView']['bind']('isOn')['to'](_0x4c5b9a,'value'),_0x3f34ed['buttonView']['on']('execute',()=>{_0x4c5b9a['execute'](),this['editor']['editing']['view']['focus']();}),_0x6a29f5(_0x3f34ed,_0x4dc51c,{'role':'menu'});const _0x1a6990=[];for(const _0x3f69d8 of _0x4dc51c)ke(_0x3f69d8)&&_0x1a6990['push'](this['editor']['commands']['get'](_0x3f69d8['model']['commandName']));const _0x4a8b29=_0x3f34ed['buttonView'];return _0x4a8b29['actionView']['unbind']('isEnabled'),_0x4a8b29['arrowView']['unbind']('isEnabled'),_0x4a8b29['actionView']['bind']('isEnabled')['to'](_0x4c5b9a,'isEnabled'),_0x4a8b29['arrowView']['bind']('isEnabled')['toMany'](_0x1a6990,'isEnabled',(..._0x540ecf)=>_0x540ecf['some'](_0x1e6fb3=>_0x1e6fb3)),_0x3f34ed['on']('execute',_0x379716=>{this['editor']['execute'](_0x379716['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3f34ed;}['_createMenuBarMenu'](_0x2d52a5,_0x493dc4,_0x40026c){const _0x4ec88e=new _0x79c27f(_0x2d52a5),_0x30de69=this['editor']['commands']['get']('trackChanges');_0x4ec88e['buttonView']['set']({'label':_0x40026c,'icon':_0xc8e2e5});const _0xc2de4f=new _0x17d1da(_0x2d52a5);for(const _0x67f673 of _0x493dc4){if('separator'==_0x67f673['type']){_0xc2de4f['items']['add'](new _0x425f2a(_0x2d52a5));continue;}const _0x2b81d2=new _0x2e0880(_0x2d52a5,_0x4ec88e),_0x301049=new _0x24f457(_0x2d52a5),_0x3d21c7=_0x67f673['model'];_0x301049['bind'](...Object['keys'](_0x3d21c7))['to'](_0x3d21c7),_0x301049['delegate']('execute')['to'](_0x4ec88e),_0x301049['on']('execute',()=>{this['editor']['execute'](_0x3d21c7['commandName']),this['editor']['editing']['view']['focus']();}),_0x2b81d2['children']['add'](_0x301049),_0xc2de4f['items']['add'](_0x2b81d2);}return _0x4ec88e['bind']('isEnabled')['to'](_0x30de69,'isEnabled'),_0x4ec88e['panelView']['children']['add'](_0xc2de4f),_0x4ec88e;}['_initializeController'](_0xa4e388){const _0x2ab5d1=this['editor'],_0xd5abaa=_0x2ab5d1['config'],_0x2abd41=_0x2ab5d1['plugins']['get']('Annotations'),_0x3a3956=_0x2ab5d1['plugins']['get']('CommentsRepository'),_0x3d4441=_0x2ab5d1['plugins']['get']('EditorAnnotations'),_0x5670ba=_0x2ab5d1['plugins']['get'](_0x148996)['me'],_0x4a5631=_0xd5abaa['get']('trackChanges')['SuggestionThreadView'],_0x48afb9=_0xd5abaa['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x532465,CommentThreadInputView:_0x58761a}=_0x2ab5d1['plugins']['get']('CommentsUI');let _0x27adb4,_0x2927bc,_0x3358e6;this['_annotationViews']['has'](_0xa4e388['id'])?(_0x2927bc=this['_annotationViews']['get'](_0xa4e388['id']),_0x27adb4=_0x2927bc['mainView']):(_0x27adb4=new _0x4a5631(_0x2ab5d1['locale'],_0xa4e388,_0x5670ba,{'disableComments':this['_disableComments'],'editorConfig':{..._0xd5abaa['get']('comments.editorConfig'),'licenseKey':_0xd5abaa['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xd5abaa['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xd5abaa['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xd5abaa['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1ba8e4(_0xd5abaa['get']('locale'),_0x2ab5d1['locale']),'CommentView':_0xd5abaa['get']('comments')['CommentView'],'CommentsListView':_0x532465,'CommentThreadInputView':_0x58761a,'SuggestionView':_0x48afb9}),_0x27adb4['suggestionView']['acceptButton']['on']('execute',()=>{_0x2ab5d1['editing']['view']['focus']();}),_0x27adb4['suggestionView']['discardButton']['on']('execute',()=>{_0x2ab5d1['editing']['view']['focus']();}),_0x2927bc=_0x2abd41['createAnnotationView'](this['editor']['locale'],_0x27adb4),_0x2927bc['bind']('isDirty')['to'](_0x27adb4,'isDirty'),_0x2927bc['bind']('length')['to'](_0x27adb4),_0x2927bc['bind']('type')['to'](_0x27adb4,'type',_0x5d46f7=>'suggestion-'+_0x5d46f7),_0x27adb4['on']('escape',()=>{_0x3358e6['fire']('escape');}),this['_annotationViews']['set'](_0xa4e388['id'],_0x2927bc));const _0xecf06=_0x3a3956['createCommentThreadController'](_0xa4e388['commentThread'],_0x27adb4),_0x2c6891=new pe(_0x2ab5d1,_0xa4e388,_0x27adb4,_0xecf06),_0x4690d8=_0xa4e388['getAllAdjacentSuggestions']()['filter'](_0x7eb407=>_0x7eb407['isInContent']);_0x27adb4['descriptionParts']=_0x2ab5d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4690d8),this['_suggestionToController']['set'](_0xa4e388,_0x2c6891),this['_viewToController']['set'](_0x27adb4,_0x2c6891),_0x3358e6=_0x2abd41['createAnnotation']({'view':_0x2927bc,'target':()=>{const _0x5d0765=[],_0x4ffe8b=_0xa4e388['getAllAdjacentSuggestions']()['filter'](_0x4053c9=>_0x4053c9['isInContent']);for(const _0x160694 of _0x4ffe8b)_0x5d0765['push'](..._0x160694['getMarkers']());return _0x391156(_0x2ab5d1['editing'],_0x5d0765);},'type':()=>'suggestion-'+_0x2c6891['view']['type']}),_0x3a3956['_bindAnnotationToEditors'](_0x27adb4,_0x3358e6),_0x2abd41['add'](_0x3358e6),_0x3d4441['registerAnnotation'](_0x3358e6);}['_destroyController'](_0x31d2b8){const _0x154aad=this['editor']['plugins']['get']('CommentsRepository'),_0x30691a=this['editor']['plugins']['get']('Annotations'),_0x4086ea=this['_suggestionToController']['get'](_0x31d2b8),_0x3cdd5f=_0x4086ea['view'],_0x20d946=_0x30691a['getByInnerView'](_0x3cdd5f);_0x154aad['_unbindEditors'](_0x3cdd5f),_0x20d946&&_0x30691a['remove'](_0x20d946),this['_suggestionToController']['delete'](_0x31d2b8),this['_viewToController']['delete'](_0x3cdd5f),_0x4086ea['destroy']();}['_updateController'](_0x3f051e){if(!_0x3f051e['isInContent']||!this['_suggestionToController']['has'](_0x3f051e))return;const _0x1cac2b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47734f=this['_suggestionToController']['get'](_0x3f051e),_0x34d2d5=_0x3f051e['getAllAdjacentSuggestions']();_0x47734f['view']['descriptionParts']=_0x1cac2b['descriptionFactory']['getDescriptions'](_0x34d2d5);}['destroy'](){for(const _0x1f1c9c of this['_suggestionToController']['keys']())this['_destroyController'](_0x1f1c9c);for(const _0x24c3a9 of this['_annotationViews']['values']())_0x24c3a9['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x19e49f){return'model'in _0x19e49f;}class Ge extends _0x28b250{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x54a84d){this['editor']['plugins']['get'](d)['adapter']=_0x54a84d;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x472c65){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x472c65);}['getSuggestions']({skipNotAttached:_0x2e092f=!0x1,toJSON:_0x325aa6=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x2e092f,'toJSON':_0x325aa6});}['getSuggestion'](_0x212e9c){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x212e9c);}}const p=['Pagination'];class re extends _0x28b250{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4dace6=this['editor'];if(_0x4dace6['config']['define']('trackChangesData.editorCreator',_0x3c89f5=>{const _0x1d66df=_0x4dace6['model']['document']['getRootNames']()['reduce']((_0x24b1b9,_0x36b89f)=>(_0x24b1b9[_0x36b89f]='',_0x24b1b9),{});return _0x4dace6['constructor']['create'](_0x1d66df,_0x3c89f5);}),'function'!=typeof _0x4dace6['config']['get']('trackChangesData')['editorCreator'])throw new _0x4ee9c2('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x40464a){return w(this['editor'],!0x0,_0x40464a);}['getDataWithDiscardedSuggestions'](_0x5d94b5){return w(this['editor'],!0x1,_0x5d94b5);}}class k extends _0x28b250{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd7694e){function _0x4efc5b(_0x597790){return _0x597790['map'](_0x1066c0=>String['fromCharCode'](_0x1066c0))['join']('');}super(_0xd7694e),this['result']='end',_0xd7694e[_0x4efc5b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4efc5b([0x76,0x69,0x65,0x77])][_0x4efc5b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4efc5b([0x61,0x75,0x74,0x6f]),_0xd7694e[_0x4efc5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4efc5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4efc5b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4efc5b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4efc5b([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 $e(_0x13702c){return void 0x0!==_0x13702c['getRootsAttributes'];}async function w(_0x28f28c,_0x494f91,_0x89456){const _0x1c8427=_0x3ce4c0(_0x28f28c,p);_0x1c8427['plugins']['push'](d,k),_0x1c8427['rootsAttributes']=$e(_0x28f28c)?_0x28f28c['getRootsAttributes']():void 0x0;const _0x41b26d=document['createDocumentFragment'](),_0x526da9=_0x28f28c['config']['get']('trackChangesData')['editorCreator'],_0x12ea8e=await _0x526da9(_0x1c8427,()=>function(_0x53fb91){const _0x405fc6=document['createElement']('div');return _0x53fb91['appendChild'](_0x405fc6),_0x405fc6;}(_0x41b26d));!function(_0x4314e5,_0x3d3821){const _0x4c0301=_0x4314e5['model']['document']['getRootNames']()['reduce']((_0x5a9f5d,_0x361a29)=>(_0x5a9f5d[_0x361a29]=_0x4314e5['data']['get']({'rootName':_0x361a29}),_0x5a9f5d),{}),_0x4dbe1f=_0x4314e5['plugins']['get']('Users')['users']['map'](_0x5b5fe4=>({'id':_0x5b5fe4['id'],'name':_0x5b5fe4['name']})),_0x29dd9c=_0x4314e5['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x40d3c4=_0x4314e5['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3eefd4=_0x3d3821['plugins']['get']('Users'),_0x3d2399=_0x3d3821['plugins']['get']('TrackChangesEditing'),_0x5ed927=_0x3d3821['plugins']['get']('CommentsRepository');for(const _0xafadfa of _0x5ed927['getCommentThreads']())_0xafadfa['remove']();for(const _0x2461ba of _0x4dbe1f)_0x3eefd4['getUser'](_0x2461ba['id'])||_0x3eefd4['addUser'](_0x2461ba);_0x3eefd4['me']||_0x3eefd4['useAnonymousUser']();for(const _0xb41d1b of _0x40d3c4)_0x5ed927['addCommentThread'](_0xb41d1b);for(const _0x3ec8cb of _0x29dd9c)_0x3d2399['addSuggestionData'](_0x3ec8cb);_0x3d3821['data']['set'](_0x4c0301);}(_0x28f28c,_0x12ea8e),_0x12ea8e['execute'](_0x494f91?'acceptAllSuggestions':'discardAllSuggestions');const _0xeed579=$e(_0x12ea8e)?_0x12ea8e['getFullData'](_0x89456):_0x12ea8e['data']['get'](_0x89456);return await _0x12ea8e['destroy'](),_0xeed579;}class Me extends _0x56481a{['options'];constructor(_0x148ea2,_0x5d7c1e){super(_0x148ea2),this['options']=_0x5d7c1e,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'](_0x43400a,_0x21220e){if(!this['element'])return;const _0x2317d3=[];for(const [_0x5f1f0b,_0x3a402a]of _0x43400a){const _0x328e45=document['createElement']('div');_0x328e45['setAttribute']('data-ck-root-name',_0x5f1f0b),_0x328e45['className']=_0x3a402a['classes']+'\x20ck-track-changes-preview__root-container',_0x328e45['innerHTML']=_0x3a402a['content'],_0x2317d3['push'](_0x328e45);}_0x21220e(this['element'],_0x2317d3),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x5cf6aa{constructor(_0x5ca113){super(_0x5ca113),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x130214=this['editor'],_0x324632=_0x130214['locale'],_0x5854e9=_0x130214['plugins']['get']('Dialog');let _0x38a290;const _0x114f50=function(_0x18b3c7){const _0x15305d={};if('editables'in _0x18b3c7['ui']['view']){for(const [_0x75c011,_0x1c4dda]of Object['entries'](_0x18b3c7['ui']['view']['editables']))_0x15305d[_0x75c011]=_0x1c4dda['element'];}else _0x15305d[_0x18b3c7['model']['document']['getRootNames']()[0x0]]=_0x18b3c7['ui']['view']['editable']['element'];return _0x15305d;}(_0x130214),_0x1bc933=function(_0x4a5752){let _0x493ba6=0x0;for(const _0x4f9da5 of Object['values'](_0x4a5752))_0x493ba6=Math['max'](_0x493ba6,_0x4f9da5['getBoundingClientRect']()['width']);let _0x544619=0x0;for(const _0x22c13b of Object['values'](_0x4a5752))_0x544619+=_0x22c13b['getBoundingClientRect']()['height'];const _0x5193e1=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x59a5ca=Math['min'](_0x544619,_0x5193e1);return{'width':_0x493ba6,'height':_0x59a5ca};}(_0x114f50);_0x5854e9['show']({'id':'finalContentPreview','title':o(_0x324632,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x324632,{'dialogRects':_0x1bc933}),'onHide':()=>{_0x38a290['detachFromDom']();},'onShow':()=>{_0x130214['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x538085=>{const _0x2565a9=this['_standarizeRootsData'](_0x538085,_0x130214,_0x114f50);_0x5854e9['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2565a9,_0x130214['config']['get']('trackChanges.preview.renderFunction'));}),_0x38a290=new _0x36f7c3(_0x324632,[_0x5854e9['view']]),_0x38a290['attachToDom'](),_0x38a290['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x130214['once']('destroy',()=>{_0x38a290['detachFromDom']();});const _0x5a4298=_0x5854e9['view']['headerView']['class'];_0x5854e9['view']['headerView']['class']=_0x5a4298?_0x5a4298+'\x20ck-reset_all':'ck-reset_all',_0x5854e9['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5854e9['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3e0417=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x36d87a=_0x3e0417['previewMode'],_0x2dbd8b={};if('$labels'===_0x36d87a){for(const _0x3529d3 of _0x3e0417['getMergeFieldsIds']())_0x2dbd8b[_0x3529d3]=_0x3e0417['getLabel'](_0x3529d3)||_0x3529d3;}else{const _0x36ed91='$defaultValues'===_0x36d87a?_0x3e0417['getDefaultValues']():_0x3e0417['getDataSetValues'](_0x36d87a,!0x0);for(const _0x561c00 of Object['entries'](_0x36ed91)){const [_0x893289,_0x4b44a8]=_0x561c00;_0x2dbd8b[_0x893289]=null!==_0x4b44a8?_0x4b44a8:_0x3e0417['getLabel'](_0x893289)||_0x893289;}}return{'mergeFieldsData':_0x2dbd8b};}['_standarizeRootsData'](_0x1d1b49,_0x979fe7,_0xa90a44){let _0x21d212;if('string'==typeof _0x1d1b49){const _0x5bf5ff=_0x979fe7['model']['document']['getRootNames']()[0x0];_0x21d212={[_0x5bf5ff]:_0x1d1b49};}else _0x21d212=_0x1d1b49;const _0x400046=this['_fixMediaEmbeds'](_0x21d212,_0x979fe7),_0xa82111=function(_0x55a0d0,_0x238522){for(const [_0x2bd71b,_0x3a3833]of _0x55a0d0)_0x3a3833['classes']=_0x238522[_0x2bd71b]['classList']['value']['replace']('ck-focused','');return _0x55a0d0;}(this['_sortRoots'](_0x979fe7)['reduce']((_0x50ccce,_0x2ee11e)=>(_0x50ccce['push']([_0x2ee11e,{'content':_0x400046[_0x2ee11e],'classes':''}]),_0x50ccce),[]),_0xa90a44);return _0xa82111;}['_fixMediaEmbeds'](_0x47b443,_0x583129){if(!_0x583129['plugins']['has']('MediaEmbedEditing'))return _0x47b443;const _0x3ac887=_0x583129['plugins']['get']('MediaEmbedEditing');for(const [_0xe791d4,_0x343517]of Object['entries'](_0x47b443)){const _0x54c4b4=document['createElement']('div');_0x54c4b4['innerHTML']=_0x343517,(_0x54c4b4['querySelectorAll']('figure.media')['forEach'](_0x5a1226=>{const _0x5d8e40=_0x5a1226['querySelector']('oembed');if(_0x5d8e40){const _0x318370=_0x5d8e40['getAttribute']('url');if(_0x318370){const _0x1b436c=_0x3ac887['registry']['getMediaViewElement'](new _0x5400db(_0x583129['editing']['view']['document']),_0x318370,{'elementName':'','renderForEditingView':!0x0}),_0x499b5d=document['createElement']('div');_0x499b5d['classList']['add']('ck-media__wrapper'),_0x1b436c['render'](_0x499b5d,_0x583129['editing']['view']['domConverter']),_0x5d8e40['replaceWith'](_0x499b5d);}}}),_0x47b443[_0xe791d4]=_0x54c4b4['innerHTML']);}return _0x47b443;}['_sortRoots'](_0x5d9872){if(!function(_0x1de823){return void 0x0!==_0x1de823['getRootsAttributes'];}(_0x5d9872))return _0x5d9872['model']['document']['getRootNames']();const _0x46deb9=[],_0x66fef5=new Map();for(const _0x29a865 of _0x5d9872['model']['document']['getRootNames']()){const _0x5146d2=_0x5d9872['editing']['view']['getDomRoot'](_0x29a865)['getClientRects']()['item'](0x0);_0x46deb9['push'](_0x29a865),_0x66fef5['set'](_0x29a865,_0x5146d2);}return _0x46deb9['sort']((_0x416b27,_0x4f1c67)=>{const _0x1d075e=_0x66fef5['get'](_0x416b27),_0x208276=_0x66fef5['get'](_0x4f1c67);return _0x1d075e['y']-_0x208276['y']||_0x1d075e['x']-_0x208276['x'];}),_0x46deb9;}}class He extends _0x28b250{static get['requires'](){return[re,_0x4fa047];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5ae5d2){super(_0x5ae5d2),_0x5ae5d2['commands']['add']('previewFinalContent',new te(this['editor'])),_0x5ae5d2['config']['define']('trackChanges.preview.renderFunction',(_0x2f30b3,_0x184178)=>{for(const _0x3bd584 of _0x184178)_0x2f30b3['appendChild'](_0x3bd584);});}}export{M as AcceptSuggestionCommand,ti as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,T as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,fe as SuggestionThreadView,we as SuggestionView,Ge as TrackChanges,D as TrackChangesCommand,re as TrackChangesData,d as TrackChangesEditing,He as TrackChangesPreview};
|