@ckeditor/ckeditor5-track-changes 45.0.0-alpha.11 → 45.0.0-alpha.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +27 -27
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x3306e3(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2f8de7,_0x23ce90){super(),this['id']=_0x23ce90['id'],this['type']=_0x23ce90['type'],this['subType']=_0x23ce90['subType']||null,this['author']=_0x23ce90['author'],this['creator']=_0x23ce90['creator']||_0x23ce90['author'],this['isExternal']=Boolean(_0x23ce90['attributes']&&_0x23ce90['attributes']['@external']),this['data']=null,this['_model']=_0x2f8de7,this['_onAccept']=_0x23ce90['onAccept'],this['_onDiscard']=_0x23ce90['onDiscard'],this['_onAttributesChange']=_0x23ce90['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x23ce90['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 _0x150e4b=this;for(;_0x150e4b['previous'];)_0x150e4b=_0x150e4b['previous'];return _0x150e4b;}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'](_0x3b5237){this['_markerNames']['add'](_0x3b5237);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4d6785=>this['_model']['markers']['get'](_0x4d6785))['filter'](_0x29a401=>_0x29a401);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4f0fa6=>{for(const _0x1c272d of this['getMarkers']())_0x4f0fa6['removeMarker'](_0x1c272d);}),this['_markerNames']['clear']();}['removeMarker'](_0x1c87c6){this['_model']['change'](_0x45d5bb=>{_0x45d5bb['removeMarker'](_0x1c87c6);}),this['_markerNames']['delete'](_0x1c87c6);}['addRange'](_0x269616){const _0x55ed6a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x55ed6a),this['_model']['change'](_0x58e391=>{_0x58e391['addMarker'](_0x55ed6a,{'range':_0x269616,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x21edc5){for(const _0x18024f of this['getRanges']())if(_0x18024f['isIntersecting'](_0x21edc5))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x21972c=>_0x21972c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3eb8d1,_0x3f58a7)=>[..._0x3eb8d1,..._0x3f58a7['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1cba45=this['getRanges']();if(0x1!=_0x1cba45['length'])return null;const _0x75c9e=_0x1cba45[0x0],_0x19a4bc=_0x75c9e['start']['nodeAfter'],_0x3206da=_0x75c9e['end']['nodeBefore'];return _0x19a4bc instanceof _0x3efdc9?_0x19a4bc!=_0x3206da?null:_0x19a4bc: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 _0xe2d510=[];let _0xc99819=this['head'];for(;_0xc99819;)_0xe2d510['push'](_0xc99819),_0xc99819=_0xc99819['next'];return _0xe2d510;}['setAttribute'](_0xa7d7e,_0x3b33c2){const _0x1b7d1b=_0x5e28d8(this['attributes']);_0x5e227b(_0x1b7d1b,_0xa7d7e,_0x3b33c2),_0x3595e6(_0x1b7d1b,this['attributes'])||(this['attributes']=_0x1b7d1b,this['_onAttributesChange'](_0x1b7d1b));}['removeAttribute'](_0x5cf347){const _0x2656fa=_0x5e28d8(this['attributes']);_0x3d13f2(_0x2656fa,_0x5cf347),_0x3595e6(_0x2656fa,this['attributes'])||(this['attributes']=_0x2656fa,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 _0xf1d1da()['substr'](0x1,0x5);}}function c(_0x2739e6,_0x19cd8e,_0x17dd1c){const _0x55f65d=_0x2739e6['t'],t=_0x2739e6['t'];switch(_0x19cd8e){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',_0x17dd1c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x17dd1c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x17dd1c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x17dd1c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x17dd1c);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',_0x17dd1c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x17dd1c);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',_0x17dd1c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x17dd1c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x17dd1c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x17dd1c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x17dd1c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x17dd1c);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x17dd1c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x17dd1c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x17dd1c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x17dd1c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x17dd1c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x17dd1c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x17dd1c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x17dd1c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x17dd1c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x17dd1c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x17dd1c);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x17dd1c);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'},_0x17dd1c);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x17dd1c);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x17dd1c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x17dd1c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x17dd1c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x17dd1c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x17dd1c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x17dd1c);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'},_0x17dd1c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x17dd1c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x17dd1c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x17dd1c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x17dd1c);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'},_0x17dd1c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x17dd1c);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'},_0x17dd1c);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'},_0x17dd1c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x17dd1c);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'},_0x17dd1c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x17dd1c);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'},_0x17dd1c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x17dd1c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x17dd1c);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'},_0x17dd1c);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x17dd1c);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 _0x55f65d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x17dd1c);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x55f65d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x17dd1c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x17dd1c);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'},_0x17dd1c);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'},_0x17dd1c);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'},_0x17dd1c);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x19cd8e;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5b469c,_0x224e39){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5b469c,this['_locale']=_0x224e39;}['getDescriptions'](_0x4e6095){const _0x485bea=[],_0x534b2a=new Set(),_0x4960e4=new Set();for(let _0x56a79f=0x0;_0x56a79f<_0x4e6095['length'];_0x56a79f++){const _0x379a77=_0x4e6095[_0x56a79f];if(!_0x379a77['isInContent'])continue;const _0xb49389=this['_handleCustomCallbackDescription'](_0x379a77);if(_0xb49389){if(null!=_0x379a77['subType']){if(_0x534b2a['has'](_0x379a77['subType']))continue;_0x534b2a['add'](_0x379a77['subType']);}_0x485bea['push'](_0xb49389);}else{if('attribute'!=_0x379a77['type'])'insertion'!=_0x379a77['type']&&'deletion'!=_0x379a77['type']||this['_handleInsertRemoveSuggestionDescription'](_0x485bea,_0x379a77,_0x4e6095[_0x56a79f+0x1]);else{const _0x59721d=_0x379a77['data']['key'];if(_0x4960e4['has'](_0x59721d))continue;_0x4960e4['add'](_0x379a77['data']['key']),_0x59721d==u?this['_handleRenameSuggestionDescription'](_0x485bea,_0x379a77):this['_handleAttributeSuggestionDescription'](_0x485bea,_0x379a77);}}}return this['_resolveDescriptionItems'](_0x485bea);}['registerDescriptionCallback'](_0x2fd53a){this['_customCallbacks']['push'](_0x2fd53a);}['registerElementLabel'](_0x55cff5,_0x3ee10f,_0x41a947=_0x5bb012['normal']){'function'==typeof _0x55cff5?_0xbb398a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x55cff5,'label':_0x3ee10f,'priority':_0x41a947}):this['_itemLabels']['set'](_0x55cff5,_0x3ee10f);}['registerAttributeLabel'](_0x4f8366,_0x4df9c8){this['_attributeLabels']['set'](_0x4f8366,_0x4df9c8);}['getItemLabel'](_0x31411e,_0x8ac63b=0x1){let _0x2fd427;for(const _0x33c350 of this['_itemLabelsCallbacks'])if(_0x33c350['matchingCallback'](_0x31411e)){_0x2fd427=_0x33c350['label'];break;}return _0x2fd427||(_0x2fd427=this['_itemLabels']['get'](_0x31411e['name'])),_0x2fd427?_0x2fd427(_0x8ac63b):0x1!==_0x8ac63b?_0x8ac63b+'\x20'+_0x31411e['name']+'s':''+_0x31411e['name'];}['_addDescriptionItems'](_0x31e9d8,_0x43ae3a){const _0x205f9d=_0x43ae3a['getFirstRange']()['getWalker'](),_0x3ec8f5='insertion'==_0x43ae3a['type']?'add':'remove';for(const _0x468513 of _0x205f9d){const _0x12fdad=_0x468513['item'],_0x2d4055=_0x31e9d8[_0x31e9d8['length']-0x1];if(_0x12fdad['is']('$textProxy'))_0x2d4055&&_0x2d4055['type']['indexOf']('Container')>-0x1&&_0x31e9d8['pop'](),_0x2d4055&&'text'==_0x2d4055['type']?_0x2d4055[_0x3ec8f5]+=_0x12fdad['data']:_0x31e9d8['push']({'type':'text','add':'add'==_0x3ec8f5?_0x12fdad['data']:'','remove':'remove'==_0x3ec8f5?_0x12fdad['data']:''});else{if(this['_schema']['isObject'](_0x12fdad)){const _0x15fbb0=_0x12fdad;if(_0x2d4055&&_0x2d4055['type']['indexOf']('Container')>-0x1&&_0x31e9d8['pop'](),'elementEnd'==_0x468513['type'])continue;_0x2d4055&&_0x2d4055['type']==_0x3ec8f5+'Object'&&_0x2d4055['element']['name']==_0x15fbb0['name']?_0x2d4055['quantity']++:_0x31e9d8['push']({'type':_0x3ec8f5+'Object','element':_0x15fbb0,'quantity':0x1}),_0x205f9d['skip'](_0x79048a=>!('elementEnd'==_0x79048a['type']&&_0x79048a['item']==_0x12fdad));}else{if(this['_schema']['checkChild'](_0x12fdad,'$text')||_0x12fdad['is']('element','softBreak')){const _0x26fef6=_0x12fdad;if('add'==_0x3ec8f5&&'elementStart'==_0x468513['type']||'remove'==_0x3ec8f5&&'elementEnd'==_0x468513['type'])continue;if(_0x2d4055&&-0x1==_0x2d4055['type']['indexOf']('Container')){'text'==_0x2d4055['type']&&(_0x2d4055[_0x3ec8f5]+='\x0a');continue;}let _0x311ddb;if(_0x311ddb='add'==_0x3ec8f5?_0x26fef6['nextSibling']&&!this['_schema']['isObject'](_0x26fef6['nextSibling'])?_0x26fef6['nextSibling']:null:_0x26fef6['previousSibling']&&!this['_schema']['isObject'](_0x26fef6['previousSibling'])?_0x26fef6['previousSibling']:null,_0x26fef6['isEmpty']||_0x311ddb&&_0x311ddb['isEmpty']){const _0x32a3b7=_0x311ddb&&_0x311ddb['isEmpty']?_0x311ddb:_0x26fef6;_0x2d4055&&_0x2d4055['type']==_0x3ec8f5+'EmptyContainer'&&_0x2d4055['element']['name']==_0x32a3b7['name']?_0x2d4055['quantity']++:_0x31e9d8['push']({'type':_0x3ec8f5+'EmptyContainer','element':_0x32a3b7,'quantity':0x1});}else _0x31e9d8['push']({'type':_0x3ec8f5+'Container','element':_0x26fef6});}}}}}['_resolveDescriptionItems'](_0x157ba8){const _0x1aaada=this['_locale'],_0x3504d3=[],_0x42f332=[],_0xe53b62=[];for(const _0x347567 of _0x157ba8)switch(_0x347567['type']){case'text':if(_0x347567['add']=_0x347567['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x347567['remove']=_0x347567['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x347567['add']&&''!=_0x347567['remove']){_0x3504d3['push']({'type':'replace','content':c(_0x1aaada,'REPLACE_TEXT',['\x22'+_0x347567['remove']+'\x22','\x22'+_0x347567['add']+'\x22'])});continue;}if(null!=_0x347567['add']['match'](/^ +$/)){_0x3504d3['push']({'type':'insertion','content':c(_0x1aaada,'*Insert:*\x20%0',c(_0x1aaada,'ELEMENT_SPACE',_0x347567['add']['length']))});continue;}if(null!=_0x347567['remove']['match'](/^ +$/)){_0x3504d3['push']({'type':'deletion','content':c(_0x1aaada,'*Remove:*\x20%0',c(_0x1aaada,'ELEMENT_SPACE',_0x347567['remove']['length']))});continue;}if(''!=_0x347567['add']){_0x3504d3['push']({'type':'insertion','content':c(_0x1aaada,'*Insert:*\x20%0','\x22'+_0x347567['add']+'\x22')});continue;}_0x3504d3['push']({'type':'deletion','content':c(_0x1aaada,'*Remove:*\x20%0','\x22'+_0x347567['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3504d3['push']({'type':'insertion','content':c(_0x1aaada,'*Insert:*\x20%0',this['getItemLabel'](_0x347567['element'],_0x347567['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3504d3['push']({'type':'deletion','content':c(_0x1aaada,'*Remove:*\x20%0',this['getItemLabel'](_0x347567['element'],_0x347567['quantity']))});continue;case'addContainer':_0x3504d3['push']({'type':'insertion','content':c(_0x1aaada,'*Split:*\x20%0',this['getItemLabel'](_0x347567['element'],_0x347567['quantity']))});continue;case'removeContainer':_0x3504d3['push']({'type':'deletion','content':c(_0x1aaada,'*Merge:*\x20%0',this['getItemLabel'](_0x347567['element'],_0x347567['quantity']))});continue;case'addFormat':_0x42f332['push'](_0x347567['key']);continue;case'removeFormat':_0xe53b62['push'](_0x347567['key']);continue;default:_0x3504d3['push'](_0x347567);}if(_0x42f332['length']){const _0x478166=_0x42f332['map'](_0x53d10f=>this['_attributeLabels']['has'](_0x53d10f)?this['_attributeLabels']['get'](_0x53d10f):_0x53d10f)['join'](',\x20');_0x3504d3['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x478166)});}if(_0xe53b62['length']){const _0x50f4ef=_0xe53b62['map'](_0x59a176=>this['_attributeLabels']['has'](_0x59a176)?this['_attributeLabels']['get'](_0x59a176):_0x59a176)['join'](',\x20');_0x3504d3['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x50f4ef)});}return _0x3504d3;}['_handleCustomCallbackDescription'](_0x55c3d2){for(const _0x107f42 of this['_customCallbacks']){const _0x47e613=_0x107f42(_0x55c3d2);if(_0x47e613&&'type'in _0x47e613)return _0x47e613;}}['_handleAttributeSuggestionDescription'](_0x697496,_0x5340be){const _0x518797=_0x5340be['data'],_0x5cb370=void 0x0===_0x518797['newValue']?'removeFormat':'addFormat';_0x697496['push']({'type':_0x5cb370,'key':_0x518797['key']});}['_handleRenameSuggestionDescription'](_0xba8eda,_0x323e37){_0xba8eda['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x323e37['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x573f60,_0x403879,_0x4d4c75){if(this['_addDescriptionItems'](_0x573f60,_0x403879),_0x4d4c75&&_0x4d4c75['getFirstRange']()&&!_0x403879['getFirstRange']()['end']['isEqual'](_0x4d4c75['getFirstRange']()['start'])){const _0x2b1e64=_0x573f60[_0x573f60['length']-0x1],_0x34fc96='insertion'==_0x403879['type']?'add':'remove';_0x2b1e64&&'text'==_0x2b1e64['type']&&(_0x2b1e64[_0x34fc96]+='\x0a');}}}class U extends _0x2bb590{['afterInit'](){const _0x13f536=this['editor'],_0x352878=_0x13f536['plugins']['get']('TrackChangesEditing');_0x13f536['commands']['get']('showAIAssistant')&&_0x352878['enableCommand']('showAIAssistant');}}class V extends _0x2bb590{['afterInit'](){const _0x52b836=this['editor'],_0x546f53=_0x52b836['locale'];if(!_0x52b836['plugins']['has']('AlignmentEditing'))return;const _0x4cada1=_0x52b836['plugins']['get']('TrackChangesEditing');_0x4cada1['enableDefaultAttributesIntegration']('alignment'),_0x4cada1['registerBlockAttribute']('alignment'),_0x4cada1['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x546f53,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x452eec=this['editor'],_0x1a3646=_0x452eec['locale'];_0x452eec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x402bf8=>{if('formatBlock'!=_0x402bf8['type'])return;const {data:_0x18053e}=_0x402bf8;if(_0x18053e&&'alignment'==_0x18053e['commandName']){const _0x541726=_0x18053e['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x1a3646,'*Format:*\x20%0',function(_0x4f3f32){switch(_0x4f3f32){case'left':return c(_0x1a3646,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x1a3646,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x1a3646,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x1a3646,'FORMAT_JUSTIFY_TEXT');}}(_0x541726))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x2bb590{['afterInit'](){const _0x3b71ae=this['editor'],_0x53aca4=_0x3b71ae['plugins']['get']('TrackChangesEditing'),_0x2f8217=_0x3b71ae['locale'];for(const _0x52234f of Zt){if(!_0x3b71ae['plugins']['has'](_0x52234f))continue;const _0x571567=_0x52234f['slice'](0x0,-0x7)['toLowerCase'](),_0x258f59='FORMAT_'+_0x571567['toUpperCase']();_0x53aca4['enableDefaultAttributesIntegration'](_0x571567),_0x53aca4['registerInlineAttribute'](_0x571567),_0x53aca4['descriptionFactory']['registerAttributeLabel'](_0x571567,c(_0x2f8217,_0x258f59));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51c275=this['editor'],_0x609b25=_0x51c275['locale'],_0x1cb9c3=_0x51c275['plugins']['get']('TrackChangesEditing');function _0x16ba06(_0x8aa36b,_0x2f51d6){_0x1cb9c3['descriptionFactory']['registerDescriptionCallback'](_0x43cec0=>{if('formatInline'!=_0x43cec0['type'])return;const {data:_0x3d7db2}=_0x43cec0;return _0x3d7db2&&_0x3d7db2['commandName']===_0x8aa36b?_0x3d7db2['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x609b25,'*Format:*\x20%0',_0x2f51d6)}:{'type':'format','content':c(_0x609b25,'*Remove\x20format:*\x20%0',_0x2f51d6)}:void 0x0;});}_0x16ba06('bold',c(_0x609b25,'FORMAT_BOLD')),_0x16ba06('italic',c(_0x609b25,'FORMAT_ITALIC')),_0x16ba06('underline',c(_0x609b25,'FORMAT_UNDERLINE')),_0x16ba06('code',c(_0x609b25,'FORMAT_CODE')),_0x16ba06('strikethrough',c(_0x609b25,'FORMAT_STRIKETHROUGH')),_0x16ba06('subscript',c(_0x609b25,'FORMAT_SUBSCRIPT')),_0x16ba06('superscript',c(_0x609b25,'FORMAT_SUPERSCRIPT'));}}class G extends _0x2bb590{['afterInit'](){const _0x5483a6=this['editor'],_0x1df1af=_0x5483a6['locale'];if(!_0x5483a6['plugins']['has']('BlockQuoteEditing'))return;const _0x7570ce=_0x5483a6['plugins']['get']('TrackChangesEditing'),_0x6848a7=this['editor']['commands']['get']('blockQuote');_0x7570ce['enableCommand']('blockQuote',(_0x304341,_0x5d6a34={})=>{const _0x16d84e=this['editor']['model']['document']['selection'],_0x5a422d=_0x5d6a34&&void 0x0!==_0x5d6a34['forceValue']?_0x5d6a34['forceValue']:!_0x6848a7['value'];let _0x5a6ef8=[];if(_0x5a422d){const _0xabbc38=Array['from'](_0x16d84e['getSelectedBlocks']())['filter'](_0x1823e2=>oo(_0x1823e2)||function(_0xa6263d,_0x22266e){const _0x16c0a0=_0x22266e['checkChild'](_0xa6263d['parent'],'blockQuote'),_0x1af6cd=_0x22266e['checkChild'](['$root','blockQuote'],_0xa6263d);return _0x16c0a0&&_0x1af6cd;}(_0x1823e2,this['editor']['model']['schema']));_0x5a6ef8=to(_0xabbc38,_0x5483a6['model']);}else{const _0x33295e=Array['from'](_0x16d84e['getSelectedBlocks']())['filter'](_0x243b59=>oo(_0x243b59));_0x5a6ef8=to(_0x33295e,_0x5483a6['model']);}_0x5483a6['model']['change'](()=>{for(const _0x48989e of _0x5a6ef8)_0x7570ce['markBlockFormat'](_0x48989e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5a422d}]});});}),_0x7570ce['descriptionFactory']['registerDescriptionCallback'](_0x1de5c9=>{const {data:_0x2abb42}=_0x1de5c9;if(_0x2abb42&&'blockQuote'==_0x2abb42['commandName']){const _0x18beb6=c(_0x1df1af,'ELEMENT_BLOCK_QUOTE');return _0x2abb42['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1df1af,'*Set\x20format:*\x20%0',_0x18beb6)}:{'type':'format','content':c(_0x1df1af,'*Remove\x20format:*\x20%0',_0x18beb6)};}});}}function oo(_0x5b06fb){return'blockQuote'==_0x5b06fb['parent']['name'];}class L extends _0x2bb590{['afterInit'](){const _0x56b633=this['editor'],_0x62f425=_0x56b633['locale'],_0x36b9d6=_0x56b633['plugins']['get']('TrackChangesEditing');_0x56b633['plugins']['has']('BookmarkEditing')&&(_0x36b9d6['enableCommand']('insertBookmark'),_0x36b9d6['enableDefaultAttributesIntegration']('updateBookmark'),_0x36b9d6['registerBlockAttribute']('bookmarkId'),_0x36b9d6['descriptionFactory']['registerDescriptionCallback'](_0x3feb6e=>{if('insertion'!=_0x3feb6e['type']&&'deletion'!=_0x3feb6e['type']&&'attribute'!=_0x3feb6e['type'])return;const _0x9b6609=_0x3feb6e['getContainedElement']();if(null==_0x9b6609)return;if(!_0x9b6609['is']('element','bookmark'))return;const _0x2e6289=_0x9b6609['getAttribute']('bookmarkId');if('insertion'==_0x3feb6e['type'])return{'type':'insertion','content':c(_0x62f425,'*Insert:*\x20%0','\x22'+_0x2e6289+'\x22\x20'+c(_0x62f425,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3feb6e['type'])return{'type':'deletion','content':c(_0x62f425,'*Remove:*\x20%0','\x22'+_0x2e6289+'\x22\x20'+c(_0x62f425,'ELEMENT_BOOKMARK'))};const {data:_0x4d777a}=_0x3feb6e;if(!_0x4d777a||'bookmarkId'!=_0x4d777a['key'])return;return{'type':'format','content':c(_0x62f425,'*Set\x20bookmark:*\x20%0','\x22'+_0x4d777a['newValue']+'\x22')};}));}}class J extends _0x2bb590{['afterInit'](){const _0x3a6bd9=this['editor'];_0x3a6bd9['plugins']['has']('CaseChange')&&(_0x3a6bd9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3a6bd9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3a6bd9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x2bb590{['afterInit'](){const _0x25d455=this['editor'];_0x25d455['commands']['get']('ckbox')&&_0x25d455['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x2bb590{['afterInit'](){const _0x4ea3b2=this['editor'];if(!_0x4ea3b2['plugins']['has']('CodeBlock'))return;const _0x1a1b4b=_0x4ea3b2['plugins']['get']('TrackChangesEditing'),_0x3c2531=_0x4ea3b2['locale'],_0x876674=_0x4ea3b2['config']['get']('codeBlock')['languages'],_0x355e04=_0x4ea3b2['commands']['get']('codeBlock');_0x1a1b4b['enableCommand']('indentCodeBlock'),_0x1a1b4b['enableCommand']('outdentCodeBlock'),_0x1a1b4b['enableCommand']('codeBlock',(_0x55074f,_0x11922d={})=>{const _0x3cf763=_0x4ea3b2['model'],_0x3caeb5=_0x4ea3b2['model']['document']['selection'],_0x2df7d6=_0x11922d&&void 0x0!==_0x11922d['forceValue']?_0x11922d['forceValue']:!_0x355e04['value'];let _0x11c1cc;_0x11922d['language']||(_0x11922d['language']=_0x876674[0x0]['language']),_0x11c1cc=_0x2df7d6?Array['from'](_0x3caeb5['getSelectedBlocks']())['filter'](_0x47a177=>eo(_0x47a177)||function(_0x28ca03,_0x5e035b){if(_0x28ca03['is']('rootElement')||_0x5e035b['isLimit'](_0x28ca03))return!0x1;return _0x5e035b['checkChild'](_0x28ca03['parent'],'codeBlock');}(_0x47a177,_0x3cf763['schema'])):Array['from'](_0x3caeb5['getSelectedBlocks']())['filter'](_0x106437=>eo(_0x106437));const _0x4fb9a9=to(_0x11c1cc,_0x3cf763);_0x3cf763['change'](()=>{for(const _0x29723c of _0x4fb9a9)_0x1a1b4b['markBlockFormat'](_0x29723c,{'commandName':'codeBlock','commandParams':[{..._0x11922d,'forceValue':_0x2df7d6}],'formatGroupId':'blockName'});});}),(_0x1a1b4b['descriptionFactory']['registerElementLabel']('codeBlock',_0x3481c5=>c(_0x3c2531,'ELEMENT_CODE_BLOCK',_0x3481c5)),_0x1a1b4b['descriptionFactory']['registerDescriptionCallback'](_0x5b2cb7=>{if('formatBlock'!=_0x5b2cb7['type'])return;const _0x38b01a=_0x3c2531['t'],{data:_0x13574d}=_0x5b2cb7;if(!_0x13574d||'codeBlock'!=_0x13574d['commandName'])return;const _0x3771bb=_0x13574d['commandParams'][0x0]['language'],_0x2f79b6=_0x38b01a(_0x876674['find'](_0x11564f=>_0x11564f['language']===_0x3771bb)['label'])['toLowerCase']();return _0x13574d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3c2531,'*Set\x20format:*\x20%0',c(_0x3c2531,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2f79b6+')')}:{'type':'format','content':c(_0x3c2531,'*Remove\x20format:*\x20%0',c(_0x3c2531,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3cecf3){return'codeBlock'==_0x3cecf3['name'];}class q extends _0x2bb590{['afterInit'](){const _0x41bcc5=this['editor'];if(!_0x41bcc5['plugins']['has']('CommentsEditing'))return;_0x41bcc5['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x24b5f7,_0x4ebd61,_0x28e3b8){const _0x1756f4=[];for(const _0x426136 of _0x4ebd61['getItems']())_0x426136['hasAttribute'](_0x24b5f7)&&_0x1756f4['push'](_0x28e3b8['createRangeOn'](_0x426136));return _0x1756f4;}function Fe(_0x39e418,_0x574edf,{showActiveMarker:_0x1d1943=!0x0}={}){const _0x45da4c=_0x39e418['plugins']['get']('TrackChangesEditing');return(_0x298b1a,_0x52457a,_0x1c8759)=>{if(!_0x1c8759['consumable']['test'](_0x52457a['markerRange'],_0x298b1a['name']))return;const _0x329adb=_0x52457a['markerRange']['getWalker'](),_0x209d79=_0x52457a['markerRange']['start'],_0xdd4696=_0x39e418['model']['schema'];let _0x4215e4=null,_0x236b6e=null,_0xa15f3d=!0x1,_0x5e3f8b=!0x1;for(const _0x144917 of _0x329adb){const _0x39037d=_0x144917['item'];_0xa15f3d=_0xa15f3d||_0xdd4696['isContent'](_0x39037d);const _0x38d965=_0x1c8759['mapper']['toViewElement'](_0x39037d);if(_0x38d965&&_0x38d965['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x144917['type']&&(_0xdd4696['isBlock'](_0x39037d)&&!_0xdd4696['isLimit'](_0x39037d)&&(_0x39037d['nextSibling']||_0x209d79['isAtEnd']?_0x4215e4&&_0x4215e4['parent']==_0x39037d||(_0x4215e4=_0x39037d,_0x2206ef(_0x144917['previousPosition']),_0x5e3f8b=!0x0):_0x236b6e=_0x236b6e||_0x144917['previousPosition']));}function _0x2206ef(_0xa0bfb9){const {authorId:_0x1050ea}=_0x45da4c['_splitMarkerName'](_0x52457a['markerName']),_0x936cb7=_0x1c8759['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x574edf,'data-author-id':_0x1050ea}),_0x42d1d5=_0x1c8759['mapper']['toViewPosition'](_0xa0bfb9);_0x1d1943&&_0x45da4c['activeMarkers']['includes'](_0x52457a['markerName'])&&_0x1c8759['writer']['addClass']('ck-suggestion-marker--active',_0x936cb7),_0x1c8759['writer']['insert'](_0x42d1d5,_0x936cb7),_0x1c8759['mapper']['bindElementToMarker'](_0x936cb7,_0x52457a['markerName']);}_0xa15f3d||_0x5e3f8b||!_0x236b6e||_0x2206ef(_0x236b6e);};}class z extends _0x2bb590{static get['requires'](){return[_0x46947c];}['init'](){const _0x235aea=this['editor'],_0x3a05fb=_0x235aea['plugins']['get']('TrackChangesEditing');_0x3a05fb['enableCommand']('delete');const _0xdbe71a=_0x235aea['commands']['get']('deleteForward');_0x3a05fb['enableCommand']('deleteForward',(_0x5775fd,_0x35fa63={})=>{const _0x15d0c2=_0x235aea['model']['createSelection'](_0x235aea['model']['document']['selection']);_0x15d0c2['isCollapsed']&&_0x235aea['model']['modifySelection'](_0x15d0c2,{'direction':'forward','unit':_0x35fa63['unit']});const _0x3f69d4=_0x15d0c2['getFirstRange'](),_0x14544d=_0x1ffa61['fromRange'](_0x3f69d4);let _0x3bd92f;_0x5775fd(_0x35fa63),_0x3bd92f='$graveyard'==_0x14544d['root']['rootName']?_0x235aea['model']['createRange'](_0x3f69d4['start']):_0x235aea['model']['createRange'](_0x14544d['start'],_0x14544d['end']),_0x14544d['detach'](),_0x235aea['model']['enqueueChange'](_0xdbe71a['buffer']['batch'],_0x124690=>{_0xdbe71a['buffer']['lock'](),_0x124690['setSelection'](_0x124690['createRange'](_0x3bd92f['end'])),_0xdbe71a['buffer']['unlock']();});}),_0x235aea['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x235aea,'merge'),{'priority':'high'}),_0x235aea['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x54b141,_0x2e6b4b,_0x3a751e)=>{_0x3a751e['options']['showSuggestionHighlights']&&Fe(_0x235aea,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x54b141,_0x2e6b4b,_0x3a751e);},{'priority':'high'}),_0x235aea['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4ddde9,_0x358ec8,_0x30fb49)=>{const _0x24de35=_0x30fb49['mapper']['markerNameToElements'](_0x358ec8['markerName']);if(_0x24de35){for(const _0x3d31ba of _0x24de35)_0x3d31ba['is']('uiElement')&&(_0x30fb49['mapper']['unbindElementFromMarkerName'](_0x3d31ba,_0x358ec8['markerName']),_0x30fb49['writer']['remove'](_0x3d31ba));}},{'priority':'high'});}}class W extends _0x2bb590{['afterInit'](){const _0x2d2a3d=this['editor'];if(!_0x2d2a3d['plugins']['has']('ListEditing'))return;const _0x43534b=_0x2d2a3d['locale'],_0x36a684=_0x2d2a3d['plugins']['get']('TrackChangesEditing'),_0x23838d=_0x2d2a3d['plugins']['has']('TodoListEditing'),_0x5acd98=!!_0x2d2a3d['config']['get']('list.multiBlock');function _0x1f961e(_0x18fdda){return{'type':'format','content':''+c(_0x43534b,'*Set\x20format:*\x20%0',_0x18fdda)};}function _0x2e91cf(_0x5a1bf9){return{'type':'format','content':''+c(_0x43534b,'*Remove\x20format:*\x20%0',_0x5a1bf9)};}_0x36a684['enableDefaultAttributesIntegration']('numberedList'),_0x36a684['enableDefaultAttributesIntegration']('bulletedList'),_0x36a684['enableDefaultAttributesIntegration']('customNumberedList'),_0x36a684['enableDefaultAttributesIntegration']('customBulletedList'),_0x36a684['enableDefaultAttributesIntegration']('indentList'),_0x36a684['enableDefaultAttributesIntegration']('outdentList'),_0x36a684['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x36a684['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x36a684['registerBlockAttribute']('listItemId'),_0x36a684['registerBlockAttribute']('listType'),_0x36a684['registerBlockAttribute']('listIndent'),_0x5acd98&&(_0x36a684['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x36a684['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x23838d&&(_0x36a684['enableDefaultAttributesIntegration']('todoList'),_0x36a684['enableDefaultAttributesIntegration']('checkTodoList'),_0x36a684['registerBlockAttribute']('todoListChecked'),_0x36a684['descriptionFactory']['registerDescriptionCallback'](_0x31e756=>{const {data:_0x323d7e}=_0x31e756;if(_0x323d7e&&'todoListChecked'==_0x323d7e['key'])return{'type':'format','content':_0x323d7e['newValue']?c(_0x43534b,'*Check\x20item*'):c(_0x43534b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x81cc1b=>{if(_0x81cc1b['batch']['isUndo'])return!0x1;let _0x98429a=!0x1;const _0x1d924b=_0x36a684['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x25d398=>'todoListChecked'===_0x36a684['_getAttributeKey'](_0x25d398));for(const _0x3805d0 of _0x1d924b){'todo'!=_0x3805d0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x36a684['_findSuggestions'](_0x3805d0['getFirstRange'](),'attribute')['find'](_0x3df757=>'listType'===_0x36a684['_getAttributeKey'](_0x3df757['suggestion']))||(_0x81cc1b['removeMarker'](_0x3805d0['getFirstMarker']()),_0x98429a=!0x0));}return _0x98429a;})),_0x36a684['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x43534b,'FORMAT_INDENT'));const _0x18a588={'type':'format','content':''};_0x36a684['descriptionFactory']['registerDescriptionCallback'](_0x1fbf87=>{const {data:_0x32b37c}=_0x1fbf87;if(!_0x32b37c||'listType'!=_0x32b37c['key'])return;let _0x210d58=_0x1fbf87['head'];for(;_0x210d58;){if(_0x210d58['data']&&(('listStyle'==_0x210d58['data']['key']||'listMarkerStyle'==_0x210d58['data']['key'])&&(_0x210d58['data']['newValue']&&'default'!=_0x210d58['data']['newValue']||'default'!=_0x210d58['data']['oldValue']&&!_0x32b37c['newValue'])||!_0x5acd98&&_0x210d58['data']['key']==u))return _0x18a588;_0x210d58=_0x210d58['next'];}if(null==_0x32b37c['newValue'])switch(_0x32b37c['oldValue']){case'bulleted':return _0x2e91cf(c(_0x43534b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2e91cf(c(_0x43534b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2e91cf(c(_0x43534b,'ELEMENT_TODO_LIST'));}switch(_0x32b37c['newValue']){case'bulleted':return _0x1f961e(c(_0x43534b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1f961e(c(_0x43534b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1f961e(c(_0x43534b,'ELEMENT_TODO_LIST'));}}),_0x36a684['descriptionFactory']['registerDescriptionCallback'](_0x5eae27=>{const {data:_0x385f96}=_0x5eae27;if(_0x385f96&&'listIndent'==_0x385f96['key'])return null==_0x385f96['newValue']||null==_0x385f96['oldValue']&&0x0==_0x385f96['newValue']?_0x18a588:void 0x0;}),_0x36a684['descriptionFactory']['registerDescriptionCallback'](_0x9cd83c=>{if('attribute'!=_0x9cd83c['type'])return;const {data:_0x218de3}=_0x9cd83c;if(!_0x218de3||'listItemId'!=_0x218de3['key'])return;const _0x1d3fb1=Te(_0x9cd83c);return'newValue'==_0x1d3fb1?{'type':'format','content':c(_0x43534b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1d3fb1?{'type':'format','content':c(_0x43534b,'*Split:*\x20list\x20item')}:_0x18a588;}),_0x2d2a3d['model']['document']['registerPostFixer'](_0x2a4f3c=>this['listItemIdFixer'](_0x2a4f3c)),_0x2d2a3d['model']['document']['registerPostFixer'](_0x24ea93=>this['noTrackChangesFixer'](_0x24ea93)),_0x2d2a3d['model']['document']['on']('change:data',(_0x206371,_0x75c2de)=>{if(_0x75c2de['isUndo']||!_0x75c2de['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1a0653){if(_0x1a0653['batch']['isUndo']||!_0x1a0653['batch']['isLocal'])return!0x1;let _0x552429=!0x1;const _0x9a58ed=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3bbd5a=>_0x3bbd5a['data']&&'listItemId'==_0x3bbd5a['data']['key'])['filter'](_0x48dee3=>_0x48dee3['data']['newValue']&&_0x48dee3['data']['oldValue']);for(const _0x4d09a3 of _0x9a58ed)Te(_0x4d09a3)||(_0x1a0653['removeMarker'](_0x4d09a3['getFirstMarker']()),_0x552429=!0x0);return _0x552429;}['noTrackChangesFixer'](_0xc64624){if(_0xc64624['batch']['isUndo']||!_0xc64624['batch']['isLocal'])return!0x1;const _0x4b2b8f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4b2b8f['trackChangesCommand']['value'])return!0x1;let _0xe204aa=!0x1;const _0x3252a7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x290529=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x526315=>'attribute'==_0x526315['type'])['filter'](_0x4b534f=>_0x3252a7['includes'](_0x4b534f['attributeKey']));if(0x0==_0x290529['length'])return _0xe204aa;for(const _0x10ff43 of _0x290529){const _0x1e33c3=_0x4b2b8f['_findSuggestions'](_0x10ff43['range'],'attribute')['filter'](_0x3a738c=>!_0x3a738c['meta']['isNextTo'])['map'](_0x54f9b1=>_0x54f9b1['suggestion'])['filter'](_0x1ebfcc=>{const _0x23b447=_0x4b2b8f['_getAttributeKey'](_0x1ebfcc);return _0x3252a7['includes'](_0x23b447);});if(_0x1e33c3['length']){for(const _0x11382b of _0x1e33c3)_0xc64624['removeMarker'](_0x11382b['getFirstMarker']());_0xe204aa=!0x0;}}return _0xe204aa;}['assureChains'](){const _0x2b41c6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28d1cd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x562414;const _0x5ca61b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x6c04f0=>{if(_0x6c04f0['data']['oldRange']||!_0x6c04f0['data']['newRange'])return null;if(!_0x6c04f0['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x549257}=_0x2b41c6['_splitMarkerName'](_0x6c04f0['name']);if(!_0x2b41c6['hasSuggestion'](_0x549257))return null;const _0x45faa0=_0x2b41c6['getSuggestion'](_0x549257);return _0x28d1cd['includes'](_0x45faa0['data']['key']);})['map'](_0x1b023b=>{const {id:_0x282254}=_0x2b41c6['_splitMarkerName'](_0x1b023b['name']),_0xcc897=_0x2b41c6['getSuggestion'](_0x282254);return _0x562414=_0xcc897['attributes']['groupId'],_0xcc897['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5ca61b['size'])return;const _0x17bcf7=_0x2b41c6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15e552=>'attribute'==_0x15e552['type']&&_0x15e552['data']&&_0x28d1cd['includes'](_0x15e552['data']['key'])&&_0x15e552['attributes']['groupId']!=_0x562414)['map'](_0x540b2f=>({'listItem':_0x540b2f['getFirstRange']()['start']['nodeAfter'],'groupId':_0x540b2f['attributes']['groupId']})),_0x5d1f55=new Set();for(const {groupId:_0x3b3020,listItem:_0x4bcb50}of _0x17bcf7)_0x5ca61b['has'](_0x4bcb50)&&_0x5d1f55['add'](_0x3b3020);for(const _0x7180b0 of _0x2b41c6['getSuggestions']())_0x5d1f55['has'](_0x7180b0['attributes']['groupId'])&&_0x7180b0['setAttribute']('groupId',_0x562414);}['_supportLegacySuggestions'](){const _0x221845=this['editor'],_0x525450=_0x221845['locale'],_0x34b590=_0x221845['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x34b590['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x592ea3,_0x5e4169){const _0x1ffc31=[];for(let _0x15cf43 of _0x592ea3)_0x15cf43['start']['nodeAfter']===_0x15cf43['end']['parent']&&(_0x15cf43=_0x221845['model']['createRange'](_0x221845['model']['createPositionAt'](_0x15cf43['start']['nodeAfter'],0x0))),_0x1ffc31['push'](_0x15cf43);_0x221845['model']['change'](_0x5b1593=>{const _0x104c63=_0x221845['model']['document']['selection'],_0x42a504=Array['from'](_0x104c63['getRanges']())['map'](_0x48c242=>_0x1ffa61['fromRange'](_0x48c242));_0x5b1593['setSelection'](_0x1ffc31),_0x221845['commands']['get'](_0x5e4169['commandName'])['refresh'](),_0x5e4169['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x221845['execute'](_0x5e4169['commandName'],..._0x5e4169['commandParams']),_0x5b1593['setSelection'](_0x42a504);for(const _0x325dea of _0x42a504)_0x325dea['detach']();});}),_0x34b590['descriptionFactory']['registerElementLabel'](function(_0x29f963){const _0x4e796b=!_0x221845['model']['schema']['isObject'](_0x29f963),_0x94a748=_0x29f963['previousSibling'],_0x466dba=_0x29f963['nextSibling'],_0x20c881=_0x29f963['getAttribute']('listItemId'),_0x58010d=!_0x94a748||_0x94a748['getAttribute']('listItemId')!==_0x20c881,_0xc2feca=!_0x466dba||_0x466dba['getAttribute']('listItemId')!==_0x20c881;return _0x4e796b&&Boolean(_0x20c881)&&_0x58010d&&_0xc2feca;},_0x155d86=>c(_0x525450,'ELEMENT_LIST_ITEM',_0x155d86));}['_registerLegacyDescription'](){const _0x5cd068=this['editor'],_0x5bec46=_0x5cd068['locale'];function _0x58894f(_0x37bd27){const _0x2afc23=_0x5cd068['commands']['get']('bulletedList')['value'],_0x2d2dec=_0x5cd068['commands']['get']('numberedList')['value'];return'numberedList'===_0x37bd27?_0x2afc23:_0x2d2dec;}_0x5cd068['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4b693a){if('formatBlock'!=_0x4b693a['type'])return;const {data:_0x52c6c0}=_0x4b693a;if(!_0x52c6c0)return;let _0xf64d5a,_0x3f99cd,_0x4082c8,_0x2ebed2;switch(_0x52c6c0['commandName']){case'bulletedList':_0x4082c8=_0x52c6c0['commandParams'][0x0]['forceValue'],_0x2ebed2=_0x58894f(_0x52c6c0['commandName']),_0xf64d5a=_0x4082c8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2ebed2&&_0x5cd068['config']['get']('list.multiBlock')||(_0xf64d5a='*Change\x20to:*\x20%0'),_0x3f99cd={'type':'format','content':c(_0x5bec46,_0xf64d5a,c(_0x5bec46,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4082c8=_0x52c6c0['commandParams'][0x0]['forceValue'],_0x2ebed2=_0x58894f(_0x52c6c0['commandName']),_0xf64d5a=_0x4082c8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2ebed2&&_0x5cd068['config']['get']('list.multiBlock')||(_0xf64d5a='*Change\x20to:*\x20%0'),_0x3f99cd={'type':'format','content':c(_0x5bec46,_0xf64d5a,c(_0x5bec46,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xf64d5a='*Indent:*\x20%0',_0x3f99cd={'type':'format','content':c(_0x5bec46,_0xf64d5a,c(_0x5bec46,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xf64d5a=function(_0x1a135e){const _0x2556e4=_0x1a135e['getFirstRange']();let _0x3c333d=_0x2556e4['start']['nodeAfter'];for(;_0x3c333d&&_0x2556e4['containsItem'](_0x3c333d);){if(_0x3c333d['getAttribute']('listIndent')>0x0)return!0x1;_0x3c333d=_0x3c333d['nextSibling'];}return!0x0;}(_0x4b693a)?c(_0x5bec46,'*Format:*\x20remove\x20from\x20%0',c(_0x5bec46,function(_0x3ede79){return'ELEMENT_'+_0x3ede79['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4b693a))):c(_0x5bec46,'*Outdent:*\x20%0',c(_0x5bec46,'ELEMENT_LIST_ITEM')),_0x3f99cd={'type':'format','content':_0xf64d5a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x52c6c0['multipleBlocks']&&(_0xf64d5a='*Merge:*\x20%0',_0x3f99cd={'type':'deletion','content':c(_0x5bec46,_0xf64d5a,c(_0x5bec46,'ELEMENT_LIST_ITEM'))});}return _0x3f99cd;});}}function Te(_0x549541){let _0x1379af=_0x549541['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1379af;){const _0x30ca75=_0x1379af['getAttribute']('listItemId');if(!_0x30ca75)return!0x1;if(_0x30ca75==_0x549541['data']['newValue'])return'newValue';if(_0x30ca75==_0x549541['data']['oldValue'])return'oldValue';_0x1379af=_0x1379af['previousSibling'];}return!0x1;}class Se extends _0x2bb590{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x58b713=this['editor']['config']['get']('list.properties'),_0x4155b7=this['editor']['plugins']['get']('TrackChangesEditing');_0x58b713['styles']&&(_0x4155b7['enableDefaultAttributesIntegration']('listStyle'),_0x4155b7['registerBlockAttribute']('listStyle')),_0x58b713['reversed']&&(_0x4155b7['enableDefaultAttributesIntegration']('listReversed'),_0x4155b7['registerBlockAttribute']('listReversed')),_0x58b713['startIndex']&&(_0x4155b7['enableDefaultAttributesIntegration']('listStart'),_0x4155b7['registerBlockAttribute']('listStart'));const _0x2ab88f={'type':'format','content':''};_0x4155b7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2c7976=this['editor']['locale'];_0x4155b7['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x2c7976,'FORMAT_LIST_REVERSED')),_0x4155b7['descriptionFactory']['registerDescriptionCallback'](_0x379a35=>{const {data:_0x24b3ff}=_0x379a35;if(_0x24b3ff&&'listReversed'==_0x24b3ff['key'])return null==_0x24b3ff['newValue']||0x0==_0x24b3ff['newValue']&&null==_0x24b3ff['oldValue']?_0x2ab88f:void 0x0;}),_0x4155b7['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x2c7976,'FORMAT_LIST_START')),_0x4155b7['descriptionFactory']['registerDescriptionCallback'](_0x112e3f=>{const {data:_0x4dbcfa}=_0x112e3f;if(_0x4dbcfa&&'listStart'==_0x4dbcfa['key'])return null==_0x4dbcfa['newValue']||0x1==_0x4dbcfa['newValue']&&null==_0x4dbcfa['oldValue']?_0x2ab88f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x849cac=>{if(_0x849cac['batch']['isUndo'])return!0x1;let _0x253d0c=!0x1;const _0xa4d388=_0x4155b7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11c310=>{const _0xc7ce7e=_0x4155b7['_getAttributeKey'](_0x11c310);return'listStart'==_0xc7ce7e||'listReversed'==_0xc7ce7e;});for(const _0xc877e of _0xa4d388){const _0x9a35d1=_0xc877e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x9a35d1||'customNumbered'==_0x9a35d1)continue;_0x4155b7['_findSuggestions'](_0xc877e['getFirstRange'](),'attribute')['find'](_0x5a3b38=>'listType'==_0x4155b7['_getAttributeKey'](_0x5a3b38['suggestion']))||(_0x849cac['removeMarker'](_0xc877e['getFirstMarker']()),_0x253d0c=!0x0);}return _0x253d0c;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x40180a){const _0x26998c=this['editor']['locale'],{data:_0x31ff35}=_0x40180a,_0x56162a={'type':'format','content':''};if(!_0x31ff35||'listStyle'!=_0x31ff35['key'])return;if(!_0x31ff35['oldValue'])return'default'==_0x31ff35['newValue']?_0x56162a:{'type':'format','content':''+c(_0x26998c,'*Set\x20format:*\x20%0',c(_0x26998c,this['_getTranslationKeyForListStyle'](_0x31ff35['newValue'])))};if(!_0x31ff35['newValue']){if('default'==_0x31ff35['oldValue'])return _0x56162a;let _0x31a843=_0x40180a['head'];for(;_0x31a843;){if(_0x31a843['data']&&'listType'==_0x31a843['data']['key']&&_0x31a843['data']['newValue'])return _0x56162a;_0x31a843=_0x31a843['next'];}return{'type':'format','content':''+c(_0x26998c,'*Remove\x20format:*\x20%0',c(_0x26998c,this['_getTranslationKeyForListStyle'](_0x31ff35['oldValue'])))};}if('default'!=_0x31ff35['newValue'])return{'type':'format','content':''+c(_0x26998c,'*Set\x20format:*\x20%0',c(_0x26998c,this['_getTranslationKeyForListStyle'](_0x31ff35['newValue'])))};let _0x5d8156=_0x40180a['head'];for(;_0x5d8156;){if(_0x5d8156['data']&&'listType'==_0x5d8156['data']['key']&&_0x5d8156['data']['newValue']&&_0x5d8156['data']['oldValue'])return _0x56162a;_0x5d8156=_0x5d8156['next'];}return{'type':'format','content':c(_0x26998c,'*Set\x20format:*\x20%0',c(_0x26998c,'ELEMENT_'+_0x40180a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x107d7b=this['editor'],_0x1e01ff=_0x107d7b['locale'];_0x107d7b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x352bbd=>{if('formatBlock'!=_0x352bbd['type'])return;const {data:_0x1c3060}=_0x352bbd;if(!_0x1c3060)return;let _0x223317,_0x3105a4;switch(_0x1c3060['commandName']){case'listStyle':_0x223317='*Change\x20to:*\x20%0',_0x3105a4={'type':'format','content':c(_0x1e01ff,_0x223317,c(_0x1e01ff,this['_getTranslationKeyForListStyle'](_0x1c3060['commandParams'][0x0]['type'])))};break;case'listReversed':_0x223317=_0x1c3060['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3105a4={'type':'format','content':c(_0x1e01ff,_0x223317)};break;case'listStart':_0x223317='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3105a4={'type':'format','content':c(_0x1e01ff,_0x223317,_0x1c3060['commandParams'][0x0]['startIndex'])};}return _0x3105a4;});}['_getTranslationKeyForListStyle'](_0x534abf){return'ELEMENT_'+function(_0x3dacca){if(_e['includes'](_0x3dacca))return'bulleted';if(Re['includes'](_0x3dacca))return'numbered';return null;}(_0x534abf)['toUpperCase']()+'_LIST_'+_0x534abf['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x2bb590{['afterInit'](){const _0x2994c6=this['editor'];_0x2994c6['commands']['get']('emoji')&&_0x2994c6['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x2bb590{static get['requires'](){return[_0x5b0cbd];}['init'](){const _0x3bf734=this['editor'],_0x59c5fd=_0x3bf734['plugins']['get']('TrackChangesEditing'),_0x200505=_0x3bf734['commands']['get']('enter');_0x59c5fd['enableCommand']('enter',()=>{_0x3bf734['model']['change'](_0x19b318=>{const _0x4ee193=_0x3bf734['model']['document']['selection'],_0x484731=_0x4ee193['getFirstPosition'](),_0x5a0f75=_0x1ffa61['fromRange'](_0x4ee193['getFirstRange']());if(_0x200505['enterBlock'](_0x19b318)){const _0x107f02=_0x3bf734['model']['createPositionAt'](_0x484731['parent']['nextSibling'],0x0),_0x29de6a=_0x19b318['createRange'](_0x484731,_0x107f02);_0x59c5fd['markInsertion'](_0x29de6a);}else _0x19b318['setSelection'](_0x19b318['createRange'](_0x5a0f75['end']));_0x5a0f75['detach'](),_0x200505['fire']('afterExecute',{'writer':_0x19b318});});}),_0x3bf734['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x3bf734,'split'),{'priority':'high'}),_0x3bf734['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1982e7,_0x285610,_0xa638d1)=>{const _0x265b57=_0xa638d1['mapper']['markerNameToElements'](_0x285610['markerName']);if(_0x265b57){for(const _0x1437c8 of _0x265b57)_0x1437c8['hasClass']('ck-suggestion-marker-split')&&(_0xa638d1['mapper']['unbindElementFromMarkerName'](_0x1437c8,_0x285610['markerName']),_0xa638d1['writer']['remove'](_0x1437c8));}},{'priority':'high'}),_0x3bf734['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x29bc90,_0x42b6e6,_0x442ace)=>{_0x442ace['options']['showSuggestionHighlights']&&Fe(_0x3bf734,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x29bc90,_0x42b6e6,_0x442ace);},{'priority':'high'});}}class Z extends _0x2bb590{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x357010=this['editor']['plugins']['get']('TrackChangesEditing');_0x357010['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x357010['enableCommand']('findNext'),_0x357010['enableCommand']('findPrevious'),_0x357010['enableCommand']('replace'),_0x357010['enableCommand']('replaceAll');}['handleFindCommand'](_0xa93ff2,_0x5ec201,_0x53bcac={}){const _0x8df994=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xa93ff2(_0x28b9b3=>{let _0x15fa41=('string'==typeof _0x5ec201?_0x8df994['findByTextCallback'](_0x5ec201,_0x53bcac):_0x5ec201)(_0x28b9b3);Array['isArray'](_0x15fa41)&&(_0x15fa41={'results':_0x15fa41,'searchText':'string'==typeof _0x5ec201?_0x5ec201:''});const _0x27ce39=_0x15fa41['results']['filter'](_0x345dc9=>!0x1===this['_isInDeletionRange'](_0x345dc9,_0x28b9b3['item']));return{..._0x15fa41,'results':_0x27ce39};},_0x53bcac);}['_isInDeletionRange'](_0x2b1a07,_0x2ecf6e){const _0x1af788=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2ecf6e,_0x2b1a07['start']),this['editor']['model']['createPositionAt'](_0x2ecf6e,_0x2b1a07['end']));for(const _0x3a268d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1af788['getIntersection'](_0x3a268d['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x2bb590{['afterInit'](){const _0x4a9e02=this['editor']['locale'],_0x318dd1=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x363765,commandName:_0x1ae926}of ro)this['editor']['plugins']['has'](_0x363765)&&(_0x318dd1['enableDefaultAttributesIntegration'](_0x1ae926),_0x318dd1['registerInlineAttribute'](_0x1ae926));_0x318dd1['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x4a9e02,'FORMAT_FONT_SIZE')),_0x318dd1['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x4a9e02,'FORMAT_FONT_FAMILY')),_0x318dd1['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x4a9e02,'FORMAT_FONT_COLOR')),_0x318dd1['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x4a9e02,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x97dd88=this['editor'],_0xac877a=_0x97dd88['locale'];_0x97dd88['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7d36be=>{const _0x14bc63=_0xac877a['t'];if('formatInline'!=_0x7d36be['type'])return;const {data:_0x2319a3}=_0x7d36be;if(null!=_0x2319a3){if('fontSize'==_0x2319a3['commandName']){const _0x5f57f0=_0x2319a3['commandParams'][0x0]['value'];if(_0x5f57f0){const _0x575a53=_0x14bc63(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x47d3a5=>_0x47d3a5['model']==_0x5f57f0)['title'])['toLowerCase']();return{'type':'format','content':c(_0xac877a,'*Set\x20font\x20size:*\x20%0',_0x575a53)};}return{'type':'format','content':c(_0xac877a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2319a3['commandName']){const _0x2d00a1=_0x2319a3['commandParams'][0x0]['value'];return _0x2d00a1?{'type':'format','content':c(_0xac877a,'*Set\x20font\x20family:*\x20%0',_0x2d00a1)}:{'type':'format','content':c(_0xac877a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2319a3['commandName']){const _0x4469f4=_0x2319a3['commandParams'][0x0]['value'];if(_0x4469f4){const _0xa506a4=_0x5810fc(this['editor']['config']['get']('fontColor.colors'))['find'](_0x132dee=>_0x132dee['model']==_0x4469f4);let _0x52fc04=_0x4469f4,_0x5c9ea3='';return _0xa506a4&&(_0x52fc04=_0xa506a4['label'],_0x5c9ea3=_0x14bc63(_0x52fc04)['toLowerCase']()),{'type':'format','content':c(_0xac877a,'*Set\x20font\x20color:*\x20%0',_0x5c9ea3)['trim'](),'color':{'value':_0x4469f4,'title':_0x5c9ea3||_0x52fc04}};}return{'type':'format','content':c(_0xac877a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2319a3['commandName']){const _0x2ecd8e=_0x2319a3['commandParams'][0x0]['value'];if(_0x2ecd8e){const _0x4398f6=_0x5810fc(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2a63a6=>_0x2a63a6['model']==_0x2ecd8e);let _0x3a6f4f=_0x2ecd8e,_0x3ddc6d='';return _0x4398f6&&(_0x3a6f4f=_0x4398f6['label'],_0x3ddc6d=_0x14bc63(_0x3a6f4f)['toLowerCase']()),{'type':'format','content':c(_0xac877a,'*Set\x20font\x20background\x20color:*\x20%0',_0x3ddc6d)['trim'](),'color':{'value':_0x2ecd8e,'title':_0x3ddc6d||_0x3a6f4f}};}return{'type':'format','content':c(_0xac877a,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x2bb590{['afterInit'](){const _0x362c31=this['editor'],_0xe16f35=_0x362c31['plugins']['get']('TrackChangesEditing'),_0x53fad1=_0x362c31['commands']['get']('copyFormat'),_0x14c408=_0x362c31['commands']['get']('pasteFormat');_0x53fad1&&_0x14c408&&(_0xe16f35['enableDefaultAttributesIntegration']('pasteFormat'),_0xe16f35['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1c6e96=this['editor'],_0x297726=_0x1c6e96['locale'];_0x1c6e96['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b1188=>{if('formatBlock'!=_0x5b1188['type']&&'formatInline'!=_0x5b1188['type'])return;const {data:_0x121484}=_0x5b1188;if(_0x121484&&'pasteFormat'===_0x121484['commandName']){const _0x214a8a=[],_0x3ad608=_0x121484['commandParams'][0x0];for(const [_0x4c2d6b,_0x2ae1ad]of Object['entries'](_0x3ad608))_0x214a8a['push'](so(_0x1c6e96,_0x4c2d6b,_0x2ae1ad));return _0x214a8a['length']?{'type':'format','content':c(_0x297726,'*Set\x20format\x20to:*\x20%0',_0x214a8a['join'](',\x20'))}:{'type':'format','content':c(_0x297726,'*Remove\x20all\x20formatting*')};}});}}function so(_0x59c78f,_0x39e2b4,_0xab2468){const _0x2a502b=_0x59c78f['locale']['t'],_0x5ba16b=_0x39e2b4['split'](/(?=[A-Z])/)['join']('\x20'),_0x1b6975=_0x2a502b(_0x5ba16b['charAt'](0x0)['toUpperCase']()+_0x5ba16b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xab2468)return _0x1b6975;if('fontColor'===_0x39e2b4||'fontBackgroundColor'===_0x39e2b4){const _0x54fcec=_0x5810fc(_0x59c78f['config']['get']('fontColor.colors'))['find'](_0x4138cd=>_0x4138cd['model']==_0xab2468);return _0x1b6975+'\x20('+(_0x54fcec?_0x2a502b(_0x54fcec['label'])['toLowerCase']():_0xab2468)+')';}if('fontSize'===_0x39e2b4&&isNaN(parseFloat(_0xab2468))){const _0xd00e30=_0x59c78f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x59c78f['config']['get']('fontSize.options'))['find'](_0xa3c311=>_0xa3c311['model']==_0xab2468);return _0x1b6975+'\x20('+(_0xd00e30?_0x2a502b(_0xd00e30['title'])['toLowerCase']():_0xab2468)+')';}return _0x1b6975+'\x20('+_0xab2468+')';}class nt extends _0x2bb590{['_headingOptions'];['afterInit'](){const _0x11bc18=this['editor'];if(!_0x11bc18['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x11bc18['config']['get']('heading.options');const _0x46f198=_0x11bc18['locale'],_0x1be248=_0x11bc18['plugins']['get']('TrackChangesEditing');_0x1be248['enableDefaultAttributesIntegration']('heading');for(const _0x13fe66 of this['_headingOptions'])'paragraph'!=_0x13fe66['model']&&_0x1be248['descriptionFactory']['registerElementLabel'](_0x13fe66['model'],_0x5c9336=>{const _0x30ec5e=this['_getHeadingLevel'](_0x13fe66['model']);return null!==_0x30ec5e?_0x51152e(_0x5c9336,_0x30ec5e):_0x370d24(_0x5c9336,_0x13fe66['title']);});function _0x51152e(_0x408833,_0x37ed52){return c(_0x46f198,'ELEMENT_HEADING',[_0x408833,_0x37ed52]);}function _0x370d24(_0x4cbbb4,_0x4ab55a){return c(_0x46f198,'ELEMENT_HEADING_CUSTOM',[_0x4cbbb4,_0x4ab55a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30d3a2=this['editor'],_0x494879=_0x30d3a2['locale'];function _0x4abb71(_0x106123,_0x32f131){return c(_0x494879,'ELEMENT_HEADING_CUSTOM',[_0x106123,_0x32f131]);}_0x30d3a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5acbb5=>{if('formatBlock'!=_0x5acbb5['type'])return;const {data:_0x17495a}=_0x5acbb5;if(_0x17495a&&'heading'==_0x17495a['commandName']){const _0x3350df=_0x17495a['commandParams'][0x0]['value'],_0x5e2b6e=this['_getHeadingLevel'](_0x3350df);if(null!==_0x5e2b6e)return{'type':'format','content':c(_0x494879,'*Change\x20to:*\x20%0',(_0x10cbac=0x1,_0x2a54e1=_0x5e2b6e,c(_0x494879,'ELEMENT_HEADING',[_0x10cbac,_0x2a54e1])))};const _0x22628d=this['_headingOptions']['find'](_0x5a5770=>_0x5a5770['model']===_0x3350df)['title'];return{'type':'format','content':c(_0x494879,'*Change\x20to:*\x20%0',_0x4abb71(0x1,_0x22628d))};}var _0x10cbac,_0x2a54e1;});}['_getHeadingLevel'](_0x2f2ccb){const _0x175a8b=_0x2f2ccb['match'](/^heading(\d+)/);if(_0x175a8b)return _0x175a8b[0x1];const _0x4a0ec5=this['_headingOptions']?.['find'](_0x4862c=>_0x4862c['model']==_0x2f2ccb);if(_0x4a0ec5&&_0x4a0ec5['view']){const _0x239669=_0x4a0ec5['view'],_0x3a4b2b=(_0x239669['name']??_0x239669)['match'](/^h(\d+)/);if(_0x3a4b2b)return _0x3a4b2b[0x1];}return null;}}class it extends _0x2bb590{['afterInit'](){const _0xdbc174=this['editor'];if(!_0xdbc174['plugins']['has']('HighlightEditing'))return;const _0x1351ea=_0xdbc174['plugins']['get']('TrackChangesEditing'),_0x15f02e=_0xdbc174['locale'];_0x1351ea['enableDefaultAttributesIntegration']('highlight'),_0x1351ea['registerInlineAttribute']('highlight'),_0x1351ea['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x15f02e,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f5d8d=this['editor'],_0x514ca2=_0x1f5d8d['locale'];_0x1f5d8d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56a3c6=>{if('formatInline'!=_0x56a3c6['type'])return;const {data:_0x7cc2d0}=_0x56a3c6;if(_0x7cc2d0&&'highlight'==_0x7cc2d0['commandName']){const _0x17fcb3=_0x514ca2['t'],_0xd19967=_0x7cc2d0['commandParams'][0x0]['value'];if(_0xd19967){const _0x14dd61=_0x1f5d8d['config']['get']('highlight.options')['find'](_0x5571b3=>_0x5571b3['model']==_0xd19967),_0x39283c=_0x17fcb3(_0x14dd61['title'])['toLowerCase']();return{'type':'format','content':c(_0x514ca2,'*Set\x20highlight:*\x20%0',_0x39283c),'color':{'value':_0x14dd61['color'],'title':_0x14dd61['title']}};}return{'type':'format','content':c(_0x514ca2,'*Remove\x20highlight*',c(_0x514ca2,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x2bb590{['afterInit'](){const _0x1d78e7=this['editor'];if(!_0x1d78e7['plugins']['has']('HorizontalLineEditing'))return;_0x1d78e7['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x20edd8=_0x1d78e7['plugins']['get']('TrackChangesEditing'),_0xb04ad3=_0x1d78e7['locale'];_0x20edd8['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4aa6d3=>c(_0xb04ad3,'ELEMENT_HORIZONTAL_LINE',_0x4aa6d3)),_0x1d78e7['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1f657a,{writer:_0x2b38a3,options:_0x21fcb7})=>{if(!_0x21fcb7['showSuggestionHighlights'])return null;const _0x52d03a=_0x2b38a3['createContainerElement']('div'),_0x23a356=_0x2b38a3['createEmptyElement']('hr');return _0x2b38a3['addClass']('ck-horizontal-line',_0x52d03a),_0x2b38a3['insert'](_0x2b38a3['createPositionAt'](_0x52d03a,0x0),_0x23a356),_0x52d03a;},'converterPriority':'high'});}}class ot extends _0x2bb590{['afterInit'](){const _0x2ac47c=this['editor'];if(!_0x2ac47c['plugins']['has']('HtmlEmbed'))return;const _0x32776d=_0x2ac47c['plugins']['get']('TrackChangesEditing'),_0x59ccab=_0x2ac47c['locale'];_0x32776d['descriptionFactory']['registerElementLabel']('rawHtml',_0x17baa6=>c(_0x59ccab,'ELEMENT_HTML_EMBED',_0x17baa6)),_0x32776d['enableDefaultAttributesIntegration']('htmlEmbed'),_0x32776d['registerBlockAttribute']('value'),_0x32776d['descriptionFactory']['registerDescriptionCallback'](_0x2ed7bd=>{if('attribute'!=_0x2ed7bd['type'])return;const {data:_0x328154}=_0x2ed7bd;if(_0x328154&&'value'==_0x328154['key']&&_0x2ed7bd['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4746ea=c(_0x59ccab,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x59ccab,'*Change\x20%0\x20content*',_0x4746ea)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xaa4444=this['editor'],_0x19b03a=_0xaa4444['locale'];_0xaa4444['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4baa57=>{if('formatBlock'!=_0x4baa57['type'])return;const {data:_0x194313}=_0x4baa57;if(_0x194313&&'htmlEmbed'==_0x194313['commandName']){const _0x4b10d4=c(_0x19b03a,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x19b03a,'*Change\x20%0\x20content*',_0x4b10d4)};}});}}class rt extends _0x2bb590{['afterInit'](){const _0x2b5229=this['editor'];if(!_0x2b5229['plugins']['has']('ImageEditing'))return;const _0x8e6f2d=_0x2b5229['plugins']['get']('TrackChangesEditing'),_0xc6f9da=_0x2b5229['plugins']['get']('ImageUtils'),_0x5aed6e=_0x2b5229['locale'];_0x8e6f2d['enableCommand']('insertImage'),_0x8e6f2d['descriptionFactory']['registerElementLabel']('imageBlock',_0x25e3ad=>c(_0x5aed6e,'ELEMENT_IMAGE',_0x25e3ad)),_0x8e6f2d['descriptionFactory']['registerElementLabel']('imageInline',_0x2ebb59=>c(_0x5aed6e,'ELEMENT_INLINE_IMAGE',_0x2ebb59)),_0x8e6f2d['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x5aed6e,'ELEMENT_CAPTION')),_0x2b5229['plugins']['has']('ImageUploadEditing')&&_0x8e6f2d['enableCommand']('uploadImage'),_0x2b5229['plugins']['has']('ImageBlockEditing')&&_0x2b5229['plugins']['has']('ImageInlineEditing')&&(_0x8e6f2d['enableCommand']('imageTypeInline',(_0x23421b,_0x3a084d)=>{const _0x4b1171=_0xc6f9da['getClosestSelectedImageElement'](_0x2b5229['model']['document']['selection']);_0x2b5229['model']['change'](()=>{_0x8e6f2d['markBlockFormat'](_0x4b1171,{'commandName':'imageTypeInline','commandParams':[_0x3a084d]},[],'convertBlockImageToInline');});}),_0x8e6f2d['enableCommand']('imageTypeBlock',(_0x40b855,_0x296da1)=>{_0x2b5229['model']['change'](_0x431c96=>{let _0x3f5f18=_0xc6f9da['getClosestSelectedImageElement'](_0x2b5229['model']['document']['selection']),_0x3be5a6=_0x431c96['createRangeOn'](_0x3f5f18);const _0x5dbdc6=_0x48d435['fromPosition'](_0x3be5a6['start'],'toPrevious'),_0x308301=_0x48d435['fromPosition'](_0x3be5a6['end'],'toNext');_0x8e6f2d['forceDefaultExecution'](()=>_0x40b855(_0x296da1)),_0x3f5f18=_0xc6f9da['getClosestSelectedImageElement'](_0x2b5229['model']['document']['selection']),_0x3be5a6=_0x431c96['createRangeOn'](_0x3f5f18);const _0x3effc9=_0x431c96['createRange'](_0x5dbdc6,_0x308301);_0x5dbdc6['detach'](),_0x308301['detach'](),_0x8e6f2d['markBlockFormat'](_0x3f5f18,{'commandName':'imageTypeInline','commandParams':[_0x296da1]},[],'convertInlineImageToBlock'),_0x3effc9['start']['isBefore'](_0x3be5a6['start'])&&_0x8e6f2d['markInsertion'](_0x431c96['createRange'](_0x3effc9['start'],_0x3be5a6['start']),'convertInlineImageToBlock'),_0x3be5a6['end']['isBefore'](_0x3effc9['end'])&&_0x8e6f2d['markInsertion'](_0x431c96['createRange'](_0x3be5a6['end'],_0x3effc9['end']),'convertInlineImageToBlock');});}),_0x8e6f2d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x8e6f2d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x8e6f2d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x8e6f2d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x8e6f2d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x8e6f2d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x55e320])=>{const _0x3cf3e5=_0x8e6f2d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x587ea1=_0x55e320['start'],_0x3e0d43=_0x55e320['end'];const _0x26e475=_0x2b5229['model']['schema']['getNearestSelectionRange'](_0x587ea1,'backward'),_0x260654=_0x2b5229['model']['schema']['getNearestSelectionRange'](_0x3e0d43,'forward');_0x26e475['isCollapsed']&&(_0x587ea1=_0x26e475['start']),_0x260654['isCollapsed']&&(_0x3e0d43=_0x260654['end']),_0x3cf3e5([_0x2b5229['model']['createRange'](_0x587ea1,_0x3e0d43)]);}),_0x8e6f2d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x227838),_0x8e6f2d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x227838)),_0x2b5229['plugins']['has']('ImageCaptionEditing')&&(_0x8e6f2d['enableCommand']('toggleImageCaption',(_0x4e7949,_0x51d3c3)=>{const _0x38453f=_0x2b5229['plugins']['get']('ImageCaptionUtils');let _0x5c92d3=_0xc6f9da['getClosestSelectedImageElement'](_0x2b5229['model']['document']['selection']),_0x42531a=_0x38453f['getCaptionFromImageModelElement'](_0x5c92d3);_0x2b5229['model']['change'](()=>{if(_0x42531a)return void _0x8e6f2d['markDeletion'](_0x2b5229['model']['createRangeOn'](_0x42531a));const _0x58b987=_0xc6f9da['isBlockImage'](_0x5c92d3);_0x4e7949(_0x51d3c3),_0x5c92d3=_0xc6f9da['getClosestSelectedImageElement'](_0x2b5229['model']['document']['selection']),_0x42531a=_0x38453f['getCaptionFromImageModelElement'](_0x5c92d3),_0x8e6f2d['markInsertion'](_0x2b5229['model']['createRangeOn'](_0x42531a),_0x58b987?null:'imageCaption');});}),_0x8e6f2d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x227838));const _0x2d283e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x319e10(_0x50cbba,_0x3c5483){const _0x43aed2=_0x2d283e['findIndex'](({type:_0x172e2f,subType:_0x1c5d6c})=>_0x50cbba['type']==_0x172e2f&&_0x50cbba['subType']==_0x1c5d6c),_0x466026=_0x2d283e['findIndex'](({type:_0x283866,subType:_0xfe82c5})=>_0x3c5483['type']==_0x283866&&_0x3c5483['subType']==_0xfe82c5);if(_0x43aed2<0x0||_0x466026<0x0)return!0x1;const _0x523405=_0x50cbba['getFirstRange'](),_0x2ee20c=_0x3c5483['getFirstRange']();if((0x0==_0x43aed2||0x1==_0x43aed2)&&0x2==_0x466026&&_0x523405['isIntersecting'](_0x2ee20c))return!0x0;if(0x2==_0x43aed2&&0x3==_0x466026){const _0x34b005=_0x8e6f2d['_findSuggestions'](_0x523405,'insertion')['filter'](({suggestion:_0x2abe56,meta:_0x2ed40b})=>_0x2ed40b['isOwn']&&'convertInlineImageToBlock'==_0x2abe56['subType']);if(_0x34b005['length']>0x1&&_0x2ee20c['end']['isEqual'](_0x523405['start']))return!0x0;if(0x1==_0x34b005['length']&&(_0x523405['start']['isEqual'](_0x2ee20c['end'])||_0x523405['end']['isEqual'](_0x2ee20c['start'])))return!0x0;}if(0x3==_0x43aed2&&0x3==_0x466026&&_0x523405['start']['isBefore'](_0x2ee20c['start'])){const _0x3e424e=_0x523405['end']['nodeAfter'],_0x4e2fee=_0x2ee20c['start']['nodeBefore'];return _0xc6f9da['isBlockImage'](_0x3e424e)&&_0x3e424e===_0x4e2fee;}return!0x1;}function _0x227838(_0x3fe839,_0x3df23a){return _0x319e10(_0x3fe839,_0x3df23a)?[_0x3fe839,_0x3df23a]:_0x319e10(_0x3df23a,_0x3fe839)?[_0x3df23a,_0x3fe839]:null;}_0x2b5229['plugins']['has']('ImageResize')&&(_0x8e6f2d['enableDefaultAttributesIntegration']('resizeImage'),_0x8e6f2d['registerBlockAttribute']('resizedWidth'),_0x8e6f2d['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x5aed6e,'FORMAT_IMAGE_SIZE'))),_0x2b5229['plugins']['has']('ImageTextAlternativeEditing')&&(_0x8e6f2d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x8e6f2d['registerBlockAttribute']('alt')),_0x2b5229['plugins']['has']('PictureEditing')&&(_0x8e6f2d['registerBlockAttribute']('sources'),_0x8e6f2d['descriptionFactory']['registerDescriptionCallback'](_0x5e0169=>{if('attribute'!=_0x5e0169['type'])return;const {data:_0x46ec06}=_0x5e0169;return _0x46ec06&&'sources'==_0x46ec06['key']?{'type':'format','content':''}:void 0x0;})),_0x2b5229['plugins']['has']('ImageSizeAttributes')&&(_0x8e6f2d['registerBlockAttribute']('width'),_0x8e6f2d['registerBlockAttribute']('height'),_0x8e6f2d['descriptionFactory']['registerDescriptionCallback'](_0x4196b5=>{if('attribute'!=_0x4196b5['type'])return;const {data:_0x4158de}=_0x4196b5;return!_0x4158de||'width'!=_0x4158de['key']&&'height'!=_0x4158de['key']?void 0x0:{'type':'format','content':''};})),_0x8e6f2d['descriptionFactory']['registerDescriptionCallback'](_0x46c169=>{if(!!_0x2d283e['find'](({type:_0x27c045,subType:_0x4933eb})=>_0x46c169['type']==_0x27c045&&_0x46c169['subType']==_0x4933eb))return _0x46c169['previous']?{}:void 0x0;}),_0x8e6f2d['descriptionFactory']['registerDescriptionCallback'](_0x2c1c4f=>{if('insertion'==_0x2c1c4f['type']||'deletion'==_0x2c1c4f['type']){const _0xe81805=_0x2c1c4f['getContainedElement']();if(_0xe81805&&_0xe81805['is']('element','caption'))return{'type':'insertion'==_0x2c1c4f['type']?'addObject':'removeObject','element':_0xe81805,'quantity':0x1};}}),_0x8e6f2d['descriptionFactory']['registerDescriptionCallback'](_0x4b7580=>'formatBlock'==_0x4b7580['type']&&'convertInlineImageToBlock'==_0x4b7580['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4b7580['type']&&'convertBlockImageToInline'==_0x4b7580['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x8e6f2d['descriptionFactory']['registerDescriptionCallback'](_0x1254c9=>{if('attribute'!=_0x1254c9['type'])return;const {data:_0x3b1354}=_0x1254c9;if(!_0x3b1354||'alt'!=_0x3b1354['key'])return;const _0x3d26ad=_0x3b1354['newValue'];return _0x3d26ad?{'type':'format','content':c(_0x5aed6e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3d26ad+'\x22')}:{'type':'format','content':c(_0x5aed6e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f8427=this['editor'],_0x5c6441=_0x1f8427['locale'];_0x1f8427['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1097d3=>{if('formatBlock'!=_0x1097d3['type']&&'formatInline'!=_0x1097d3['type'])return;const {data:_0x103e5f}=_0x1097d3;if(_0x103e5f){if('imageTextAlternative'==_0x103e5f['commandName']){const _0x3ee365=_0x103e5f['commandParams'][0x0]['newValue'];return _0x3ee365?{'type':'format','content':c(_0x5c6441,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3ee365+'\x22')}:{'type':'format','content':c(_0x5c6441,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x103e5f['commandName']){const _0x381e94=_0x103e5f['commandParams'][0x0]['width'];return _0x381e94?{'type':'format','content':c(_0x5c6441,'*Set\x20image\x20width:*\x20%0',_0x381e94)}:{'type':'format','content':c(_0x5c6441,'*Reset\x20image\x20width*')};}}});}}class at extends _0x2bb590{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1c8615=this['editor']['locale'],_0x7bad04=this['editor']['plugins']['get']('TrackChangesEditing');_0x7bad04['enableDefaultAttributesIntegration']('replaceImageSource'),_0x7bad04['registerBlockAttribute']('src'),_0x7bad04['descriptionFactory']['registerDescriptionCallback'](_0x1d7d03=>{if('attribute'!=_0x1d7d03['type'])return;const {data:_0x207722}=_0x1d7d03;return _0x207722&&'src'==_0x207722['key']?_0x207722['newValue']&&_0x207722['oldValue']?{'type':'format','content':c(_0x1c8615,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x48f460=this['editor']['plugins']['get']('TrackChangesEditing');_0x48f460['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x48f460['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x48f460['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x48f460['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x205bf5=this['editor'],_0x4ee123=_0x205bf5['locale'];_0x205bf5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11020d=>{if('formatBlock'!=_0x11020d['type']&&'formatInline'!=_0x11020d['type'])return;const {data:_0x2fa72a}=_0x11020d;if(!_0x2fa72a||'replaceImageSource'!=_0x2fa72a['commandName'])return;return{'type':'format','content':c(_0x4ee123,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x2bb590{['afterInit'](){const _0x1f11c0=this['editor'];if(!_0x1f11c0['plugins']['has']('ImageStyleEditing'))return;const _0x24fa9f=_0x1f11c0['plugins']['get']('TrackChangesEditing'),_0x371bc9=_0x1f11c0['plugins']['get']('ImageUtils'),_0x33683f={};_0x24fa9f['enableCommand']('imageStyle',(_0x5af442,_0x3fd372)=>{const _0x29e7c1=_0x1f11c0['plugins']['get']('Users')['me'],_0x11ff7a=_0x1f11c0['commands']['get']('imageStyle');let _0x225764=_0x371bc9['getClosestSelectedImageElement'](_0x1f11c0['model']['document']['selection']),_0x17bb65=_0x1f11c0['model']['createRangeOn'](_0x225764),_0x4df0a6=_0x11ff7a['value'];if(_0x4df0a6==_0x3fd372['value'])return;const _0x884144={'commandName':'imageStyle','commandParams':[_0x3fd372],'formatGroupId':_0xf1d1da()};_0x1f11c0['model']['change'](()=>{if(_0x24fa9f['getSuggestions']()['filter'](_0x19ee25=>_0x19ee25['isInContent']&&_0x29e7c1==_0x19ee25['author']&&('formatBlock'==_0x19ee25['type']||'formatInline'==_0x19ee25['type'])&&('imageStylePreApply'==_0x19ee25['subType']||'imageStylePostApply'==_0x19ee25['subType'])&&_0x19ee25['getFirstRange']()['isEqual'](_0x17bb65))['forEach'](_0x465dcb=>_0x24fa9f['discardSuggestion'](_0x465dcb['head'])),_0x225764=_0x371bc9['getClosestSelectedImageElement'](_0x1f11c0['model']['document']['selection']),_0x17bb65=_0x1f11c0['model']['createRangeOn'](_0x225764),_0x11ff7a['refresh'](),_0x1f11c0['commands']['get']('imageTypeInline')['refresh'](),_0x1f11c0['commands']['get']('imageTypeBlock')['refresh'](),_0x4df0a6=_0x11ff7a['value'],_0x4df0a6!=_0x3fd372['value'])return _0x371bc9['isInlineImage'](_0x225764)&&_0x11ff7a['shouldConvertImageType'](_0x3fd372['value'],_0x225764)?(_0x5af442({..._0x3fd372,'setImageSizes':!0x1}),_0x225764=_0x371bc9['getClosestSelectedImageElement'](_0x1f11c0['model']['document']['selection']),void _0x24fa9f['markBlockFormat'](_0x225764,{..._0x884144,'commandReversedParams':[{'value':_0x4df0a6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x371bc9['isBlockImage'](_0x225764)?_0x24fa9f['markBlockFormat'](_0x225764,_0x884144,[],'imageStylePostApply'):_0x24fa9f['markInlineFormat'](_0x17bb65,_0x884144,'imageStylePostApply'));});});for(const _0x5e4617 of _0x1f11c0['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x33683f[_0x5e4617['name']]=_0x5e4617['title']['toLowerCase']();_0x24fa9f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x24fa9f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x24fa9f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x24fa9f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x9ab69b])=>{_0x371bc9['setImageNaturalSizeAttributes'](_0x9ab69b['getContainedElement']());}),_0x24fa9f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2fa3f7,_0xed4240)=>{_0x24fa9f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2fa3f7,{'commandName':_0xed4240['commandName'],'commandParams':_0xed4240['commandReversedParams']});}),_0x24fa9f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3e502f,_0x377ecd){if(_0x30d488(_0x3e502f,_0x377ecd))return[_0x3e502f,_0x377ecd];if(_0x30d488(_0x377ecd,_0x3e502f))return[_0x377ecd,_0x3e502f];return null;});const _0x1d84ea=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x30d488(_0x536174,_0x5105ee){const _0x4a8353=_0x1d84ea['findIndex'](({type:_0x58c96f,subType:_0x2b7398})=>_0x536174['type']==_0x58c96f&&_0x536174['subType']==_0x2b7398),_0x333521=_0x1d84ea['findIndex'](({type:_0x3009aa,subType:_0x45ba0c})=>_0x5105ee['type']==_0x3009aa&&_0x5105ee['subType']==_0x45ba0c);if(_0x4a8353<0x0||_0x333521<0x0)return!0x1;const _0x3cb3d1=_0x536174['getFirstRange'](),_0x4b7af7=_0x5105ee['getFirstRange']();if((0x0==_0x4a8353||0x1==_0x4a8353)&&0x2==_0x333521&&_0x3cb3d1['isIntersecting'](_0x4b7af7))return!0x0;if(0x2==_0x4a8353&&0x3==_0x333521){const _0x3af5e7=_0x24fa9f['_findSuggestions'](_0x3cb3d1,'insertion')['filter'](({suggestion:_0x4f3f6d,meta:_0x1ab104})=>_0x1ab104['isOwn']&&'convertInlineImageToBlock'==_0x4f3f6d['subType']);if(_0x3af5e7['length']>0x1&&_0x4b7af7['end']['isEqual'](_0x3cb3d1['start']))return!0x0;if(0x1==_0x3af5e7['length']&&(_0x3cb3d1['start']['isEqual'](_0x4b7af7['end'])||_0x3cb3d1['end']['isEqual'](_0x4b7af7['start'])))return!0x0;}if(0x3==_0x4a8353&&0x3==_0x333521&&_0x3cb3d1['start']['isBefore'](_0x4b7af7['start'])){const _0x301ba7=_0x3cb3d1['end']['nodeAfter'],_0x177d8c=_0x4b7af7['start']['nodeBefore'];return _0x371bc9['isBlockImage'](_0x301ba7)&&_0x301ba7===_0x177d8c;}return!0x1;}_0x1f11c0['model']['document']['registerPostFixer'](()=>{let _0x4d43e1=!0x1;const _0x14b1cb=Array['from'](_0x1f11c0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x57879c,data:_0x519095}of _0x14b1cb){const {group:_0x1bc34f,type:_0x5f0e70,subType:_0x1a9cbe,id:_0x5854ec}=_0x24fa9f['_splitMarkerName'](_0x57879c);if('suggestion'==_0x1bc34f&&_0x24fa9f['hasSuggestion'](_0x5854ec)){if('formatBlock'==_0x5f0e70&&('imageStylePreApply'==_0x1a9cbe||'imageStylePostApply'==_0x1a9cbe)){const _0x64a248=_0x24fa9f['getSuggestion'](_0x5854ec);if(_0x519095['newRange']){const _0x2b9162=_0x64a248['getFirstRange']()['getContainedElement']();if(_0x371bc9['isBlockImage'](_0x2b9162))continue;_0x24fa9f['discardSuggestion'](_0x64a248),_0x4d43e1=!0x0;}}if('insertion'==_0x5f0e70&&'imageCaption'==_0x1a9cbe&&!_0x519095['newRange']){const _0x479ca8=_0x24fa9f['getSuggestion'](_0x5854ec);_0x479ca8['next']&&_0x479ca8['next']['isInContent']&&(_0x24fa9f['discardSuggestion'](_0x479ca8['next']),_0x4d43e1=!0x0);}}}return _0x4d43e1;}),this['_registerLegacyDescription'](_0x33683f);}['_registerLegacyDescription'](_0x49882e){const _0xdf9ff5=this['editor'],_0x204def=_0xdf9ff5['locale'];_0xdf9ff5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x167233=>{if('formatBlock'!=_0x167233['type']&&'formatInline'!=_0x167233['type'])return;const {data:_0x565596}=_0x167233;if(!_0x565596||'imageStyle'!=_0x565596['commandName'])return;const _0xc5a435=_0x565596['commandParams'][0x0]['value'];return _0x407029('side'===_0xc5a435?c(_0x204def,'FORMAT_SIDE_IMAGE'):_0x49882e[_0xc5a435]||_0xc5a435);function _0x407029(_0x1fa5fe){return{'type':'format','content':c(_0x204def,'*Format:*\x20%0',_0x1fa5fe)};}});}}class ut extends _0x2bb590{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x16ad10){super(_0x16ad10),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x20022b=this['editor'],_0x5367df=_0x20022b['commands']['get']('importWord'),_0x2cdc49=_0x20022b['commands']['get']('trackChanges');_0x5367df&&(_0x5367df['on']('execute',(_0x2b56e4,[,_0x311270])=>{this['_trackChangesValueDuringImport']=_0x2cdc49['value'],_0x311270['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5367df,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5367df,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2cdc49['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x20022b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x178326,_0x44e707){const {suggestions:_0x40811c}=_0x44e707,_0x2df765=this['editor']['commands']['get']('trackChanges'),_0x54144a=_0x2df765['value'];this['_trackChangesValueDuringImport']!==_0x54144a&&(_0x2df765['execute'](),this['_trackChangesExecuted']=!0x0),_0x40811c&&_0x40811c['forEach'](({id:_0x483c5a,type:_0x55ee60,author:_0x310539,created_at:_0x23e728})=>{const _0x2e32f6={'id':_0x483c5a,'type':_0x55ee60,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x310539,'createdAt':_0x23e728?new Date(_0x23e728):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2e32f6);});}}class ft extends _0x2bb590{['afterInit'](){const _0x3867d2=this['editor'],_0x3e5d28=_0x3867d2['plugins']['get']('TrackChangesEditing');if(_0x3867d2['plugins']['has']('IndentEditing')&&(_0x3e5d28['enableCommand']('indent'),_0x3e5d28['enableCommand']('outdent')),_0x3867d2['plugins']['has']('IndentBlock')){for(const _0x25be05 of['indentBlock','outdentBlock'])_0x3e5d28['enableDefaultAttributesIntegration'](_0x25be05);}const _0x27d427=_0x3867d2['locale'];_0x3e5d28['registerBlockAttribute']('blockIndent'),_0x3e5d28['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x27d427,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x243c78=this['editor'],_0x2eac74=_0x243c78['locale'],_0x147127=_0x243c78['plugins']['get']('TrackChangesEditing');_0x147127['descriptionFactory']['registerDescriptionCallback'](_0x36f86c=>{if('formatBlock'!=_0x36f86c['type'])return;const {data:_0x313f00}=_0x36f86c;if(!_0x313f00)return;if('indentBlock'!=_0x313f00['commandName']&&'outdentBlock'!=_0x313f00['commandName'])return;const _0x4677b9=_0x36f86c['getItems']()[0x0],_0x1906de=_0x147127['descriptionFactory']['getItemLabel'](_0x4677b9);return'indentBlock'==_0x313f00['commandName']?{'type':'format','content':c(_0x2eac74,'*Indent:*\x20%0',_0x1906de)}:'outdentBlock'==_0x313f00['commandName']?{'type':'format','content':c(_0x2eac74,'*Outdent:*\x20%0',_0x1906de)}:void 0x0;});}}class ht extends _0x2bb590{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x2bb590{['afterInit'](){const _0x2b8530=this['editor'];if(!_0x2b8530['plugins']['has']('LinkEditing'))return;const _0x193e9c=_0x2b8530['plugins']['get']('TrackChangesEditing'),_0x2f8e35=_0x2b8530['commands']['get']('link');_0x193e9c['enableDefaultAttributesIntegration']('link'),_0x193e9c['enableDefaultAttributesIntegration']('unlink'),_0x193e9c['registerInlineAttribute']('linkHref');for(const _0x4ada4c of _0x2f8e35['manualDecorators'])_0x193e9c['registerInlineAttribute'](_0x4ada4c['id']),_0x193e9c['descriptionFactory']['registerAttributeLabel'](_0x4ada4c['id'],'link\x20('+_0x4ada4c['label']['toLowerCase']()+')');_0x193e9c['descriptionFactory']['registerDescriptionCallback'](_0x366348=>{if('attribute'!=_0x366348['type'])return;const {data:_0x170010}=_0x366348;if(!_0x170010||'linkHref'!=_0x170010['key'])return;const _0x17ff1e=_0x170010['newValue'],_0x58129e=_0x2b8530['locale'];return{'type':'format','content':null==_0x17ff1e?c(_0x58129e,'*Remove\x20link*'):c(_0x58129e,'*Set\x20link:*\x20%0','\x22'+_0x17ff1e+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ed17a=this['editor'],_0x24aa6c=_0x3ed17a['locale'];_0x3ed17a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fb394=>{if('formatInline'!=_0x4fb394['type'])return;const {data:_0x4b4970}=_0x4fb394;if(_0x4b4970){if('link'==_0x4b4970['commandName']){const _0x266f0c=_0x4b4970['commandParams'][0x0];return{'type':'format','content':c(_0x24aa6c,'*Set\x20link:*\x20%0','\x22'+_0x266f0c+'\x22')};}return'unlink'==_0x4b4970['commandName']?{'type':'format','content':c(_0x24aa6c,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x2bb590{['afterInit'](){const _0x2438bd=this['editor'],_0x8d7c3a=_0x2438bd['locale'];if(!_0x2438bd['plugins']['has']('LegacyListEditing'))return;const _0x23e30d=_0x2438bd['plugins']['get']('TrackChangesEditing'),_0x1611a2=_0x2438bd['plugins']['has']('LegacyTodoListEditing');function _0x3c54a2(_0x59172f){return()=>{const _0x3345dc=_0x2438bd['model']['document']['selection'],_0x56b840=_0x2438bd['commands']['get'](_0x59172f);if(_0x56b840['value'])return void _0x2438bd['execute']('paragraph',{});const _0x27be6=_0x59172f['slice'](0x0,-0x4),_0x5c3699=function(_0x2e1a6e,_0x519da2,_0xd750a8){let _0x12c587=Array['from'](_0x2e1a6e)['filter'](_0x11c4c4=>function(_0x1a2cbb,_0x4cbb36){return _0x4cbb36['checkChild'](_0x1a2cbb['parent'],'listItem')&&!_0x4cbb36['isObject'](_0x1a2cbb);}(_0x11c4c4,_0xd750a8));_0x12c587=_0x12c587['filter'](_0xe0a4a=>!_0xe0a4a['is']('element','listItem')||_0xe0a4a['getAttribute']('listType')!=_0x519da2);const _0x65237e=new Set();for(const _0x37a57b of _0x12c587)_0x37a57b['is']('element','listItem')?_0x65237e['add'](Le(_0x37a57b)):_0x65237e['add'](_0x37a57b);return Array['from'](_0x65237e);}(_0x3345dc['getSelectedBlocks'](),_0x27be6,_0x2438bd['model']['schema']);_0x2438bd['model']['change'](()=>{for(const _0x2491b9 of _0x5c3699)_0x23e30d['markBlockFormat'](_0x2491b9,{'commandName':_0x59172f,'commandParams':[{'forceValue':!_0x56b840['value']}],'formatGroupId':'blockName'},Ee(_0x2491b9));});};}function _0x30bea2(_0x3b9b93){return()=>{const _0x41c448=function(_0x4dc598){let _0x3aca53=Array['from'](_0x4dc598);const _0x462bf0=_0x3aca53['findIndex'](_0x27e950=>'listItem'!=_0x27e950['name']);return _0x462bf0>-0x1&&(_0x3aca53=_0x3aca53['slice'](0x0,_0x462bf0)),_0x3aca53;}(_0x2438bd['model']['document']['selection']['getSelectedBlocks']()),_0x97038=_0x2438bd['model']['createRange'](_0x2438bd['model']['createPositionAt'](_0x41c448[0x0],'before'),_0x2438bd['model']['createPositionAt'](_0x41c448[_0x41c448['length']-0x1],'end'));_0x2438bd['model']['change'](()=>{_0x23e30d['markBlockFormat'](_0x97038,{'commandName':_0x3b9b93,'commandParams':[],'formatGroupId':'listIndent'},function(_0x399271){const _0xcfb126=new Set();for(const _0x261498 of _0x399271){let _0xe7ec53=_0x261498['nextSibling'];for(;_0xe7ec53&&_0xe7ec53['getAttribute']('listIndent')>_0x261498['getAttribute']('listIndent');)_0xcfb126['add'](_0xe7ec53),_0xe7ec53=_0xe7ec53['nextSibling'];}return Array['from'](_0xcfb126);}(_0x41c448));});};}_0x23e30d['enableCommand']('numberedList',_0x3c54a2('numberedList')),_0x23e30d['enableCommand']('bulletedList',_0x3c54a2('bulletedList')),_0x1611a2&&_0x23e30d['enableCommand']('todoList',_0x3c54a2('todoList')),_0x23e30d['enableCommand']('indentList',_0x30bea2('indentList')),_0x23e30d['enableCommand']('outdentList',_0x30bea2('outdentList')),_0x1611a2&&_0x23e30d['enableCommand']('checkTodoList',()=>{const _0x2f33c2=_0x2438bd['commands']['get']('checkTodoList'),_0x419537=Array['from'](_0x2f33c2['_selectedElements']);_0x419537['filter'](_0x1441f0=>_0x1441f0['getAttribute']('todoListChecked')!=_0x2f33c2['value']),_0x2438bd['model']['change'](()=>{for(const _0x36812f of _0x419537)_0x23e30d['markBlockFormat'](_0x36812f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2f33c2['value']}]});});}),_0x23e30d['descriptionFactory']['registerElementLabel']('listItem',_0x2499e8=>c(_0x8d7c3a,'ELEMENT_LIST_ITEM',_0x2499e8)),_0x23e30d['descriptionFactory']['registerDescriptionCallback'](_0x1b6119=>{if('formatBlock'!=_0x1b6119['type']&&'formatInline'!=_0x1b6119['type'])return;const {data:_0x208df4}=_0x1b6119;if(_0x208df4){if('numberedList'==_0x208df4['commandName']||'bulletedList'==_0x208df4['commandName']||'todoList'==_0x208df4['commandName'])switch(_0x208df4['commandName']['replace']('List','')){case'bulleted':return _0x2570d3(c(_0x8d7c3a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2570d3(c(_0x8d7c3a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2570d3(c(_0x8d7c3a,'ELEMENT_TODO_LIST'));}if('indentList'==_0x208df4['commandName'])return{'type':'format','content':c(_0x8d7c3a,'*Indent:*\x20%0',c(_0x8d7c3a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x208df4['commandName'])return{'type':'format','content':c(_0x8d7c3a,'*Outdent:*\x20%0',c(_0x8d7c3a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x208df4['commandName'])return _0x208df4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x8d7c3a,'*Check\x20item*')}:{'type':'format','content':c(_0x8d7c3a,'*Uncheck\x20item*')};}function _0x2570d3(_0x43efb6){return{'type':'format','content':c(_0x8d7c3a,'*Change\x20to:*\x20%0',_0x43efb6)};}});}}function Le(_0x49ac59){const _0x61e1ac=_0x49ac59['getAttribute']('listIndent');if(0x0==_0x61e1ac)return _0x49ac59;let _0x518d2e=_0x49ac59;for(;_0x49ac59['previousSibling']&&_0x49ac59['previousSibling']['is']('element','listItem');){const _0x492b31=_0x49ac59['previousSibling']['getAttribute']('listIndent');if(_0x492b31==_0x61e1ac)_0x518d2e=_0x49ac59['previousSibling'];else{if(_0x492b31<_0x61e1ac)break;}_0x49ac59=_0x49ac59['previousSibling'];}return _0x518d2e;}function Ee(_0x2f2854){const _0xa9e57=[];if(_0x2f2854['is']('element','listItem')&&_0x2f2854['getAttribute']('listIndent')>0x0){let _0x3cb503=_0x2f2854['nextSibling'];for(;_0x3cb503&&'listItem'==_0x3cb503['name']&&_0x3cb503['getAttribute']('listIndent')==_0x2f2854['getAttribute']('listIndent');)_0xa9e57['push'](_0x3cb503),_0x3cb503=_0x3cb503['nextSibling'];}return _0xa9e57;}class Q extends _0x2bb590{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x38d55d=this['editor']['config']['get']('list.properties'),_0x5dd738=this['editor']['plugins']['get']('TrackChangesEditing');_0x38d55d['styles']&&_0x5dd738['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x38d55d['reversed']&&_0x5dd738['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x38d55d['startIndex']&&_0x5dd738['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5dd738['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x214724,_0x1da5d7={}){const _0x34353d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x119589=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x34353d['markMultiRangeBlockFormat'](_0x119589,{'commandName':'listStyle','commandParams':[{'type':_0x1da5d7['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5bce88,_0x422e94={}){const _0x402556=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25a6cb=this['_getSuggestionBlocks'](_0x3dfa17=>_0x3dfa17['is']('element','listItem')&&'numbered'===_0x3dfa17['getAttribute']('listType'));if(_0x25a6cb['length']<0x1)return;const _0x230331=_0x25a6cb['map'](_0x124b79=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x124b79,'before'),this['editor']['model']['createPositionAt'](_0x124b79,0x0)));this['editor']['model']['change'](()=>{_0x402556['markMultiRangeBlockFormat'](_0x230331,{'commandName':'listReversed','commandParams':[{'reversed':_0x422e94['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x58d686,_0x55bfbf={}){const _0x386fb8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c3968=this['_getSuggestionBlocks'](_0x213d57=>_0x213d57['is']('element','listItem')&&'numbered'===_0x213d57['getAttribute']('listType'));if(_0x3c3968['length']<0x1)return;const _0x5c8401=_0x3c3968['map'](_0x371d2b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x371d2b,'before'),this['editor']['model']['createPositionAt'](_0x371d2b,0x0)));this['editor']['model']['change'](()=>{_0x386fb8['markMultiRangeBlockFormat'](_0x5c8401,{'commandName':'listStart','commandParams':[{'startIndex':_0x55bfbf['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x47a732){if('formatBlock'!=_0x47a732['type']&&'formatInline'!=_0x47a732['type'])return;const _0x1b61e0=this['editor']['locale'],{data:_0xe1ac65}=_0x47a732;if(!_0xe1ac65)return;let _0x1cf6db,_0x1a0e40;switch(_0xe1ac65['commandName']){case'listStyle':_0x1cf6db='*Change\x20to:*\x20%0',_0x1a0e40={'type':'format','content':c(_0x1b61e0,_0x1cf6db,c(_0x1b61e0,this['_getTranslationKeyForListStyle'](_0xe1ac65['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1cf6db=_0xe1ac65['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1a0e40={'type':'format','content':c(_0x1b61e0,_0x1cf6db)};break;case'listStart':_0x1cf6db='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1a0e40={'type':'format','content':c(_0x1b61e0,_0x1cf6db,_0xe1ac65['commandParams'][0x0]['startIndex'])};}return _0x1a0e40;}['_getSuggestionBlocksForListStyle'](){const _0x14912b=this['editor']['plugins']['get']('LegacyListUtils');let _0x5a782e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5a782e[0x0]?.['is']('element','listItem')&&_0x5a782e['unshift'](..._0x14912b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5a782e[_0x5a782e['length']-0x1]?.['is']('element','listItem')&&_0x5a782e['push'](..._0x14912b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5a782e=[...new Set(_0x5a782e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5a782e=_0x5a782e['filter'](_0x226d67=>_0x226d67['is']('element','listItem'))),_0x5a782e;}['_getSuggestionBlocks'](_0x6dd97){const _0x563990=this['editor']['plugins']['get']('LegacyListUtils');let _0x5d67e4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x6dd97)['map'](_0x5f01d7=>{const _0x4d92a1=this['editor']['model']['createPositionAt'](_0x5f01d7,0x0);return[..._0x563990['getSiblingNodes'](_0x4d92a1,'backward'),..._0x563990['getSiblingNodes'](_0x4d92a1,'forward')];})['flat']();return _0x5d67e4=[...new Set(_0x5d67e4)],_0x5d67e4;}['_getTranslationKeyForListStyle'](_0x41f24f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x41f24f)||'default')['toUpperCase']()+'_LIST_'+_0x41f24f['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2bb590{['afterInit'](){const _0xc1080c=this['editor'];if(!_0xc1080c['plugins']['has']('MediaEmbedEditing'))return;const _0x288314=_0xc1080c['plugins']['get']('TrackChangesEditing'),_0x1ce92f=_0xc1080c['locale'];_0x288314['enableCommand']('mediaEmbed'),_0x288314['descriptionFactory']['registerElementLabel']('media',_0x33580b=>c(_0x1ce92f,'ELEMENT_MEDIA',_0x33580b)),_0xc1080c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x24c8f8,{writer:_0x39dfa4,options:_0x549965})=>{if(_0x549965['showSuggestionHighlights'])return _0x39dfa4['createEmptyElement']('div');},'converterPriority':'high'}),_0xc1080c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x585d5e,_0x1f68e9,_0x24f3c3)=>{_0x24f3c3['options']['showSuggestionHighlights']&&_0x585d5e['stop']();},{'priority':'high'});}}class pt extends _0x2bb590{['afterInit'](){const _0x5580eb=this['editor'];_0x5580eb['plugins']['has']('MentionEditing')&&_0x5580eb['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x2bb590{['afterInit'](){const _0x57a7b9=this['editor'];if(!_0x57a7b9['plugins']['has']('MergeFieldsEditing'))return;const _0x2b42df=_0x57a7b9['plugins']['get']('TrackChangesEditing'),_0xf64aa0=_0x57a7b9['locale'];_0x2b42df['enableCommand']('insertMergeField'),_0x2b42df['enableCommand']('insertMergeFieldBlock'),_0x2b42df['enableCommand']('insertMergeFieldImage'),_0x2b42df['descriptionFactory']['registerElementLabel']('mergeField',_0x4bf5e3=>c(_0xf64aa0,'ELEMENT_MERGE_FIELD',_0x4bf5e3)),_0x2b42df['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x78ba29=>c(_0xf64aa0,'ELEMENT_MERGE_FIELD',_0x78ba29)),_0x2b42df['descriptionFactory']['registerDescriptionCallback'](_0x8c424=>{if('insertion'!=_0x8c424['type']&&'deletion'!=_0x8c424['type'])return;const _0x16b168=_0x8c424['getContainedElement']();if(null==_0x16b168)return;const _0x5c7149=_0x57a7b9['plugins']['get']('MergeFieldsEditing');let _0x2d48c1;switch(_0x5c7149['getMergeFieldType'](_0x16b168)){case null:return;case'image':{const _0x213ecd=_0x5c7149['unwrapAffixes'](_0x16b168['getAttribute']('src'));_0x2d48c1=_0x5c7149['getLabel'](_0x213ecd)||_0x213ecd;break;}default:{const _0x50d440=_0x16b168['getAttribute']('id');_0x2d48c1=_0x5c7149['getLabel'](_0x50d440)||_0x50d440;break;}}return'insertion'==_0x8c424['type']?{'type':'insertion','content':c(_0xf64aa0,'*Insert:*\x20%0','\x22'+_0x2d48c1+'\x22\x20'+c(_0xf64aa0,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0xf64aa0,'*Remove:*\x20%0','\x22'+_0x2d48c1+'\x22\x20'+c(_0xf64aa0,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x2bb590{['afterInit'](){const _0x3b652c=this['editor'],_0x34a8ab=_0x3b652c['plugins']['get']('TrackChangesEditing');_0x3b652c['plugins']['has']('MultiLevelList')&&(_0x34a8ab['enableDefaultAttributesIntegration']('multiLevelList'),_0x34a8ab['registerBlockAttribute']('listMarkerStyle'),_0x34a8ab['descriptionFactory']['registerDescriptionCallback'](_0x1b58cd=>this['handleDescriptions'](_0x1b58cd)));}['handleDescriptions'](_0x395fdc){const _0xf474d7=this['editor']['locale'],{data:_0x45f0a6}=_0x395fdc,_0x27f403={'type':'format','content':''};if(_0x45f0a6&&'listMarkerStyle'==_0x45f0a6['key']){if(!_0x45f0a6['oldValue'])return{'type':'format','content':c(_0xf474d7,'*Set\x20format:*\x20%0',c(_0xf474d7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x45f0a6['newValue']+')'};if(!_0x45f0a6['newValue']){let _0x1caa82=_0x395fdc['head'];for(;_0x1caa82;){if(_0x1caa82['data']&&'listType'==_0x1caa82['data']['key']&&_0x1caa82['data']['newValue'])return _0x27f403;_0x1caa82=_0x1caa82['next'];}return{'type':'format','content':c(_0xf474d7,'*Remove\x20format:*\x20%0',c(_0xf474d7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x45f0a6['oldValue']+')'};}}}}class bt extends _0x2bb590{['afterInit'](){const _0x215042=this['editor'];if(!_0x215042['plugins']['has']('PageBreakEditing'))return;_0x215042['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x142b32=_0x215042['plugins']['get']('TrackChangesEditing'),_0x2f3753=_0x215042['locale'];_0x142b32['descriptionFactory']['registerElementLabel']('pageBreak',_0x43e440=>c(_0x2f3753,'ELEMENT_PAGE_BREAK',_0x43e440));}}class yt extends _0x2bb590{['afterInit'](){const _0x14abd3=this['editor'];if(!_0x14abd3['plugins']['has']('Paragraph'))return;const _0x2efabb=_0x14abd3['locale'],_0x26965b=_0x14abd3['plugins']['get']('TrackChangesEditing');_0x26965b['descriptionFactory']['registerElementLabel']('paragraph',_0x256446=>c(_0x2efabb,'ELEMENT_PARAGRAPH',_0x256446)),_0x26965b['enableDefaultAttributesIntegration']('paragraph'),_0x26965b['enableCommand']('insertParagraph'),_0x14abd3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x14abd3),{'priority':'highest'}),_0x14abd3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xbd4651,_0xfd6372,_0x48535b)=>{_0x48535b['options']['showSuggestionHighlights']&&nr(_0x14abd3,{'showActiveMarker':!0x1})(_0xbd4651,_0xfd6372,_0x48535b);},{'priority':'highest'});const _0x6d627b=_0x26965b['descriptionFactory'];_0x6d627b['registerDescriptionCallback'](_0x5e8387=>{if('insertion'!==_0x5e8387['type'])return;const {start:_0x26e8ec,end:_0xd5b9bb}=_0x5e8387['getFirstRange']();if(!_0x26e8ec['isTouching'](_0xd5b9bb)||!_0x26e8ec['nodeAfter'])return;const _0x26f493=_0x14abd3['model']['schema'],_0x5e5a44=_0x26e8ec['nodeAfter'];return _0x26f493['isBlock'](_0x5e5a44)&&!_0x26f493['isLimit'](_0x5e5a44)&&_0x26f493['checkChild'](_0x5e5a44,'$text')?{'type':'insertion','content':c(_0x2efabb,'*Insert:*\x20%0',_0x6d627b['getItemLabel'](_0x5e5a44,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f3eee=this['editor'],_0x394f8e=_0x4f3eee['locale'];_0x4f3eee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbb5c82=>{if('formatBlock'!=_0xbb5c82['type'])return;const {data:_0x4d3d8e}=_0xbb5c82;return _0x4d3d8e&&'paragraph'==_0x4d3d8e['commandName']?{'type':'format','content':c(_0x394f8e,'*Change\x20to:*\x20%0',c(_0x394f8e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x56c30,{showActiveMarker:_0xb94051=!0x0}={}){return(_0x428e14,_0x3b943d,_0x538901)=>{const _0x52d808=_0x56c30['plugins']['get']('TrackChangesEditing'),_0x1cde69=_0x3b943d['markerRange']['start'],_0x3b8af7=_0x3b943d['markerRange']['end'],_0xb49ed7=_0x56c30['model']['schema'];if(!_0x1cde69['isTouching'](_0x3b8af7)||!_0x1cde69['nodeAfter'])return;const _0x1f6cdf=_0x1cde69['nodeAfter'];if(_0xb49ed7['isBlock'](_0x1f6cdf)&&!_0xb49ed7['isLimit'](_0x1f6cdf)&&_0xb49ed7['checkChild'](_0x1f6cdf,'$text')){if(!_0x538901['consumable']['consume'](_0x3b943d['markerRange'],_0x428e14['name']))return;const {authorId:_0x32efa0}=_0x52d808['_splitMarkerName'](_0x3b943d['markerName']),_0x19bd3a=_0x538901['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x32efa0}),_0x6c52b3=_0x538901['mapper']['toViewPosition'](_0x3b8af7);_0xb94051&&_0x52d808['activeMarkers']['includes'](_0x3b943d['markerName'])&&_0x538901['writer']['addClass']('ck-suggestion-marker--active',_0x19bd3a),_0x538901['writer']['insert'](_0x6c52b3,_0x19bd3a),_0x538901['mapper']['bindElementToMarker'](_0x19bd3a,_0x3b943d['markerName']);}};}class jt extends _0x2bb590{['afterInit'](){const _0x1ef589=this['editor'];_0x1ef589['commands']['get']('replaceSource')&&_0x1ef589['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x2bb590{['afterInit'](){const _0x4650a6=this['editor'];if(!_0x4650a6['plugins']['has']('RemoveFormatEditing'))return;_0x4650a6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x184154=this['editor'];_0x184154['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x374f43=>{if('formatBlock'!=_0x374f43['type']&&'formatInline'!=_0x374f43['type'])return;const {data:_0x3e4bd1}=_0x374f43;return _0x3e4bd1&&'removeFormat'==_0x3e4bd1['commandName']?{'type':'format','content':c(_0x184154['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x2bb590{['afterInit'](){const _0x489cd4=this['editor'];if(!_0x489cd4['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4878b8=_0x489cd4['plugins']['get']('TrackChangesEditing');_0x4878b8['enableCommand']('goToPreviousRestrictedEditingException'),_0x4878b8['enableCommand']('goToNextRestrictedEditingException');const _0x18d81c=_0x489cd4['plugins']['get']('RestrictedEditingModeEditing');_0x18d81c['enableCommand']('trackChanges'),_0x18d81c['enableCommand']('acceptSuggestion'),_0x18d81c['enableCommand']('discardSuggestion'),_0x18d81c['enableCommand']('acceptAllSuggestions'),_0x18d81c['enableCommand']('discardAllSuggestions'),_0x18d81c['enableCommand']('acceptSelectedSuggestions'),_0x18d81c['enableCommand']('discardSelectedSuggestions');}}class It extends _0x2bb590{['afterInit'](){const _0x2c2e1a=this['editor'];if(!_0x2c2e1a['plugins']['has']('ShiftEnter'))return;const _0x30b6dc=_0x2c2e1a['plugins']['get']('TrackChangesEditing');_0x30b6dc['enableCommand']('shiftEnter'),_0x2c2e1a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x2c2e1a),{'priority':'high'}),_0x2c2e1a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x2c2e1a),{'priority':'high'}),_0x2c2e1a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x44c7c7,_0x23aad9,_0x216262)=>{_0x216262['options']['showSuggestionHighlights']&&je(_0x2c2e1a,{'showActiveMarker':!0x1})(_0x44c7c7,_0x23aad9,_0x216262);}),_0x30b6dc['descriptionFactory']['registerElementLabel']('softBreak',_0x44ab19=>c(_0x2c2e1a['locale'],'ELEMENT_LINE_BREAK',_0x44ab19));}}function je(_0x4929e4,{showActiveMarker:_0x483b0f=!0x0}={}){return(_0x12787b,_0x259b69,_0x10d840)=>{const _0x2dcfe9=_0x4929e4['plugins']['get']('TrackChangesEditing');if(!_0x10d840['consumable']['test'](_0x259b69['markerRange'],_0x12787b['name']))return;const _0x1c8ff6=_0x4929e4['model'];for(const _0x390290 of _0x259b69['markerRange']['getItems']()){if(!_0x390290['is']('element','softBreak'))continue;const _0x3d9083='deletion'==_0x259b69['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x139a22}=_0x2dcfe9['_splitMarkerName'](_0x259b69['markerName']),_0x9992a5=_0x10d840['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3d9083,'data-author-id':_0x139a22}),_0x326b6e=_0x10d840['mapper']['toViewPosition'](_0x1c8ff6['createPositionBefore'](_0x390290));_0x483b0f&&_0x2dcfe9['activeMarkers']['includes'](_0x259b69['markerName'])&&_0x10d840['writer']['addClass']('ck-suggestion-marker--active',_0x9992a5),_0x10d840['writer']['insert'](_0x326b6e,_0x9992a5),_0x10d840['mapper']['bindElementToMarker'](_0x9992a5,_0x259b69['markerName']);}};}class _t extends _0x2bb590{['afterInit'](){const _0x4cfd17=this['editor'],_0x2e06da=_0x4cfd17['model'],_0x419b68=_0x4cfd17['locale'];if(!_0x4cfd17['plugins']['has']('StandardEditingModeEditing'))return;const _0x57555b=_0x4cfd17['plugins']['get']('TrackChangesEditing'),_0x4e1468='restrictedEditingException',_0x2717d6=_0x4cfd17['commands']['get'](_0x4e1468);_0x57555b['enableCommand'](_0x4e1468,(_0x14aa28,_0x3da944={})=>{const _0x400694=_0x2e06da['document']['selection'];if(_0x400694['isCollapsed'])return void _0x14aa28(_0x3da944);const _0x58c4b0=void 0x0!==_0x3da944['forceValue']?_0x3da944['forceValue']:!_0x2717d6['value'];_0x2e06da['change'](()=>{const _0x40965f=Array['from'](_0x400694['getRanges']());for(const _0x13f0fb of _0x40965f){const _0x24cc04=_0x58c4b0?[_0x13f0fb]:io(_0x4e1468,_0x13f0fb,_0x2e06da);for(const _0x283877 of _0x24cc04)_0x57555b['markInlineFormat'](_0x283877,{'commandName':_0x4e1468,'commandParams':[{'forceValue':_0x58c4b0}]});}});}),_0x57555b['descriptionFactory']['registerDescriptionCallback'](_0x5e70ae=>{if('formatBlock'!=_0x5e70ae['type']&&'formatInline'!=_0x5e70ae['type'])return;const {data:_0xf259a1}=_0x5e70ae;return _0xf259a1&&_0xf259a1['commandName']==_0x4e1468?_0xf259a1['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x419b68,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x419b68,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x2bb590{['afterInit'](){const _0x5bbfe6=this['editor'];if(!_0x5bbfe6['plugins']['has']('Style')||!_0x5bbfe6['plugins']['has']('DataSchema'))return;const _0x3766cf=_0x5bbfe6['plugins']['get']('TrackChangesEditing'),_0x4dbb52=_0x5bbfe6['locale'],_0x5382d9=_0x5bbfe6['config']['get']('style')||{},_0x1367cf=_0x5bbfe6['plugins']['get']('GeneralHtmlSupport'),_0x28f498=_0x5bbfe6['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5bbfe6['plugins']['get']('DataSchema'),_0x5382d9['definitions']);_0x3766cf['enableDefaultAttributesIntegration']('style');const _0x2a0f5f=new Set();for(const _0x3fbf93 of _0x28f498['block']){const _0x2ef20b=_0x1367cf['getGhsAttributeNameForElement'](_0x3fbf93['element']);_0x2a0f5f['add'](_0x2ef20b);}const _0x3d88bf=new Set();for(const _0x223cee of _0x28f498['inline']){const _0x8c1301=_0x1367cf['getGhsAttributeNameForElement'](_0x223cee['element']);_0x3d88bf['add'](_0x8c1301);for(const _0x529bc7 of _0x223cee['ghsAttributes'])_0x3d88bf['add'](_0x529bc7);}for(const _0x10e26f of _0x2a0f5f)_0x3766cf['registerBlockAttribute'](_0x10e26f),_0x3766cf['descriptionFactory']['registerAttributeLabel'](_0x10e26f,c(_0x4dbb52,'FORMAT_STYLE'));for(const _0x3c5cc6 of _0x3d88bf)_0x3766cf['registerInlineAttribute'](_0x3c5cc6),_0x3766cf['descriptionFactory']['registerAttributeLabel'](_0x3c5cc6,c(_0x4dbb52,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f515a=this['editor'],_0x548fbe=_0x2f515a['locale'];_0x2f515a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19df4e=>{if('formatBlock'!=_0x19df4e['type']&&'formatInline'!=_0x19df4e['type'])return;const {data:_0x20c646}=_0x19df4e;return _0x20c646&&'style'===_0x20c646['commandName']?_0x20c646['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x548fbe,'*Set\x20format:*\x20%0',_0x20c646['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x548fbe,'*Remove\x20format:*\x20%0',_0x20c646['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x2bb590{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5797b7){super(_0x5797b7),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x522c32=this['editor'],_0x128782=_0x522c32['model']['document']['selection'];if(!_0x522c32['plugins']['has']('TableEditing'))return;const _0x5ec0cf=_0x522c32['locale'],_0x726ccb=_0x522c32['plugins']['get']('TrackChangesEditing'),_0x1f9859=_0x522c32['plugins']['get']('TableUtils');_0x726ccb['descriptionFactory']['registerElementLabel']('table',_0x5eea06=>c(_0x5ec0cf,'ELEMENT_TABLE',_0x5eea06)),this['_setupColumnsRowsFixing'](),_0x726ccb['enableCommand']('insertTable'),_0x726ccb['enableCommand']('selectTableRow'),_0x726ccb['enableCommand']('selectTableColumn');for(const _0x202cd1 of['insertTableRowAbove','insertTableRowBelow']){const _0xa6e922=_0x522c32['commands']['get'](_0x202cd1);_0x726ccb['enableCommand'](_0x202cd1,_0x9f3e6c=>{_0x522c32['model']['change'](_0x4ad85b=>{_0x9f3e6c();const _0x4dcc29='above'===_0xa6e922['order'],_0x11c56a=_0x1f9859['getSelectionAffectedTableCells'](_0x128782),_0x30250f=_0x1f9859['getRowIndexes'](_0x11c56a),_0x2c3126=_0x4dcc29?_0x30250f['first']-0x1:_0x30250f['last']+0x1,_0x2d02c8=_0x11c56a[0x0]['findAncestor']('table'),_0x59bb21=_0x1f9859['createTableWalker'](_0x2d02c8,{'startRow':_0x2c3126,'endRow':_0x2c3126}),_0x2ebc49=Array['from'](_0x59bb21)['map'](_0x44ce0f=>_0x4ad85b['createRangeOn'](_0x44ce0f['cell']));_0x726ccb['markMultiRangeInsertion'](_0x2ebc49,'tableRow');});});}for(const _0x32bd26 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1744f9=_0x522c32['commands']['get'](_0x32bd26);_0x726ccb['enableCommand'](_0x32bd26,_0x5017a4=>{_0x522c32['model']['change'](_0x50dd77=>{_0x5017a4();const _0x3b81c1='left'===_0x1744f9['order'],_0x298f57=_0x1f9859['getSelectionAffectedTableCells'](_0x128782),_0x5633aa=_0x1f9859['getColumnIndexes'](_0x298f57),_0x59bf1e=_0x3b81c1?_0x5633aa['first']-0x1:_0x5633aa['last']+0x1,_0x24a642=_0x298f57[0x0]['findAncestor']('table'),_0xfd7b56=_0x1f9859['createTableWalker'](_0x24a642,{'startRow':0x0,'column':_0x59bf1e,'includeAllSlots':!0x1}),_0x1df2b1=Array['from'](_0xfd7b56)['map'](_0x315acd=>_0x50dd77['createRangeOn'](_0x315acd['cell']));_0x726ccb['markMultiRangeInsertion'](_0x1df2b1,'tableColumn');});});}for(const _0x42ad40 of['removeTableRow','removeTableColumn']){const _0x305a17=_0x42ad40['substr'](0xb),_0x2b7f19=_0x305a17['toLowerCase'](),_0x1e393d=_0x2b7f19['substr'](0x0,0x3)+'span',_0x1fe65f='table'+_0x305a17,_0x416afe='min'+_0x305a17,_0x15f311='max'+_0x305a17;_0x726ccb['enableCommand'](_0x42ad40,()=>{_0x522c32['model']['change'](_0x315f53=>{const _0x18b6c3=_0x1f9859['getSelectionAffectedTableCells'](_0x128782),_0x2c8b24=_0x18b6c3[0x0]['findAncestor']('table');let _0x59ab45;if('removeTableRow'==_0x42ad40){const _0x11df7f=_0x1f9859['getRowIndexes'](_0x18b6c3);_0x59ab45={'startRow':_0x11df7f['first'],'endRow':_0x11df7f['last'],'includeAllSlots':!0x0};}else{const _0x461034=_0x1f9859['getColumnIndexes'](_0x18b6c3);_0x59ab45={'startColumn':_0x461034['first'],'endColumn':_0x461034['last'],'includeAllSlots':!0x0};}const _0x15e4b0=_0x1f9859['createTableWalker'](_0x2c8b24,_0x59ab45),_0x1cf65a=Array['from'](_0x15e4b0)['map'](({cell:_0x424d87})=>_0x424d87),_0x21940c=Ne(_0x1cf65a['filter'](_0x58bb61=>_0x58bb61['hasAttribute'](_0x1e393d))),_0x6873e8=Ne(_0x1cf65a['filter'](_0x334e83=>!_0x334e83['hasAttribute'](_0x1e393d)))['map'](_0x46609e=>_0x315f53['createRangeOn'](_0x46609e)),_0x607cb0=_0x726ccb['markMultiRangeDeletion'](_0x6873e8,_0x1fe65f);if(_0x607cb0&&('tableRow'==_0x607cb0['subType']||'tableColumn'==_0x607cb0['subType'])){const _0x472e5d=this['_getSuggestionCoords'](_0x607cb0);for(const _0x4fc275 of _0x21940c){const _0x2bd024=_0x315f53['createRangeOn'](_0x4fc275),_0x34cfad=_0x1f9859['getCellLocation'](_0x4fc275),_0x352242=_0x4fc275['getAttribute'](_0x1e393d)-0x1,_0x2a6777=_0x472e5d[_0x416afe],_0x57a66f=_0x472e5d[_0x15f311];_0x2a6777<=_0x34cfad[_0x2b7f19]&&_0x34cfad[_0x2b7f19]+_0x352242<=_0x57a66f&&_0x607cb0['addRange'](_0x2bd024);}}});});}function _0x2c3812(_0x49cc54){const _0x255881=Array['from'](_0x128782['getRanges']())['map'](_0x1b4b99=>_0x1ffa61['fromRange'](_0x1b4b99));_0x522c32['model']['change'](_0x521391=>{const _0x167a9c=_0x521391['batch'];_0x49cc54=_0x49cc54['filter'](_0xda77aa=>'$graveyard'!=_0xda77aa['root']['rootName']),_0x521391['setSelection'](_0x49cc54),_0x522c32['commands']['get']('removeTableRow')['refresh'](),_0x522c32['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x522c32['model']['enqueueChange'](()=>{_0x522c32['model']['enqueueChange'](_0x167a9c,_0x23d8d7=>{const _0x5f5360=_0x255881['filter'](_0xc581f4=>'$graveyard'!=_0xc581f4['root']['rootName']);_0x5f5360['length']>0x0&&_0x23d8d7['setSelection'](_0x5f5360);for(const _0xe129f0 of _0x255881)_0xe129f0['detach']();});});});}function _0x1ea1a2(_0x4f9e1b){_0x522c32['model']['change'](_0x300c00=>{const _0x21648b=Array['from'](_0x128782['getRanges']())['map'](_0x48fe5e=>_0x1ffa61['fromRange'](_0x48fe5e)),_0x42d76c=[];for(const _0x49a2e6 of _0x4f9e1b)for(const _0x4690e0 of _0x49a2e6['getItems']({'shallow':!0x0}))_0x42d76c['push'](_0x4690e0);for(const _0x54a266 of _0x42d76c)'$graveyard'!=_0x54a266['root']['rootName']&&(_0x300c00['setSelection'](_0x300c00['createPositionAt'](_0x54a266,0x0)),_0x522c32['commands']['get']('removeTableColumn')['refresh'](),_0x522c32['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x44fb09=_0x21648b['filter'](_0x4893e7=>'$graveyard'!=_0x4893e7['root']['rootName']);_0x44fb09['length']>0x0&&_0x300c00['setSelection'](_0x44fb09);for(const _0x83b82c of _0x21648b)_0x83b82c['detach']();});}function _0x3f8d96(_0x4c8b35,_0xf58dc4){return _0xf58dc4['every'](_0x2bb4d7=>_0x4c8b35['some'](_0x2b25b8=>_0x2b25b8['end']['isEqual'](_0x2bb4d7['start'])||_0x2bb4d7['end']['isEqual'](_0x2b25b8['start'])));}function _0x18cd88(_0x3b6579,_0x3517fe){return!_0x3b6579['some'](_0x39c96a=>_0x3517fe['some'](_0x42e34a=>_0x39c96a['isIntersecting'](_0x42e34a)))&&_0x3b6579['some'](_0x39634a=>_0x3517fe['some'](_0xf34c00=>_0x39634a['end']['isTouching'](_0xf34c00['start'])));}_0x522c32['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x222a27,_0xe2a297,_0x2488ec)=>{if(!_0x2488ec['options']['showSuggestionHighlights'])return;const _0x553b38=_0xe2a297['item'];if(!_0x553b38)return;const _0x3866c5=_0x2488ec['mapper']['toViewElement'](_0x553b38);function _0xe60d05(_0x55a4b7){return Array['isArray'](_0x55a4b7)?_0x55a4b7:[_0x55a4b7];}_0x3866c5&&'tableCell'===_0x553b38['name']&&_0x2f1c8b(_0x3866c5,_0x2488ec['writer'],(_0x33a8d3,_0x3c05d5,_0x514363)=>_0x514363['addClass'](_0xe60d05(_0x3c05d5['classes']),_0x33a8d3),(_0x74c129,_0x3b32c1,_0x446894)=>_0x446894['removeClass'](_0xe60d05(_0x3b32c1['classes']),_0x74c129));},{'priority':'highest'}),_0x726ccb['descriptionFactory']['registerDescriptionCallback'](_0x4cd3a1=>{if('insertion'!=_0x4cd3a1['type']&&'deletion'!=_0x4cd3a1['type'])return;const _0x44bce0=_0x4cd3a1['getContainedElement']();if(null!=_0x44bce0&&_0x44bce0['is']('element','table')){if('insertion'==_0x4cd3a1['type']){const _0x49deb4=_0x4cd3a1['getItems']()['filter'](_0x218f44=>_0x218f44['is']('$textProxy'))['map'](_0x3db002=>_0x3db002['data']);if(_0x49deb4['length'])return{'type':'insertion','content':c(_0x5ec0cf,'*Insert:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x49deb4['join']('\x20')+'\x22'))};}if('deletion'==_0x4cd3a1['type']){const _0x5498db=_0x4cd3a1['getItems']()['filter'](_0x4a9011=>_0x4a9011['is']('$textProxy'))['map'](_0x2200c4=>_0x2200c4['data']);if(_0x5498db['length'])return{'type':'deletion','content':c(_0x5ec0cf,'*Remove:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5498db['join']('\x20')+'\x22'))};}}}),_0x726ccb['descriptionFactory']['registerDescriptionCallback'](_0x463a2f=>{if('tableRow'==_0x463a2f['subType']){const _0xe82c52=_0x463a2f['getItems']()['filter'](_0x2a8374=>_0x2a8374['is']('$textProxy'))['map'](_0x4bab6b=>_0x4bab6b['data']),_0x512408=this['_getSuggestionCoords'](_0x463a2f),_0xef2488=_0x512408['maxRow']-_0x512408['minRow']+0x1;if('insertion'==_0x463a2f['type'])return _0xe82c52['length']?{'type':'insertion','content':c(_0x5ec0cf,'*Insert:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xef2488,'\x22'+_0xe82c52['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x5ec0cf,'*Insert:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_ROW',_0xef2488))};if('deletion'==_0x463a2f['type'])return _0xe82c52['length']?{'type':'deletion','content':c(_0x5ec0cf,'*Remove:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xef2488,'\x22'+_0xe82c52['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x5ec0cf,'*Remove:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_ROW',_0xef2488))};}if('tableColumn'==_0x463a2f['subType']){const _0x3f9d05=_0x463a2f['getItems']()['filter'](_0x4a1cd5=>_0x4a1cd5['is']('$textProxy'))['map'](_0x7a3e1f=>_0x7a3e1f['data']),_0x2d193f=this['_getSuggestionCoords'](_0x463a2f),_0x3e1de9=_0x2d193f['maxColumn']-_0x2d193f['minColumn']+0x1;if('insertion'==_0x463a2f['type'])return _0x3f9d05['length']?{'type':'insertion','content':c(_0x5ec0cf,'*Insert:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3e1de9,'\x22'+_0x3f9d05['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x5ec0cf,'*Insert:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_COLUMN',_0x3e1de9))};if('deletion'==_0x463a2f['type'])return _0x3f9d05['length']?{'type':'deletion','content':c(_0x5ec0cf,'*Remove:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3e1de9,'\x22'+_0x3f9d05['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x5ec0cf,'*Remove:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_COLUMN',_0x3e1de9))};}}),_0x726ccb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2c3812),_0x726ccb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2c3812),_0x726ccb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1ea1a2),_0x726ccb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1ea1a2),_0x726ccb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3f8d96),_0x726ccb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3f8d96),_0x726ccb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x18cd88),_0x726ccb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x18cd88);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4110db=this['editor'],_0x598b40=_0x4110db['model']['document']['selection'];return(_0x519eb9,_0x5024cb)=>{_0x4110db['model']['change'](_0x436e94=>{const {commandName:_0x5ccddf,commandParams:_0x408ffa}=_0x5024cb;let _0x42baa1=_0x519eb9[0x0]['end']['nodeBefore'];_0x408ffa&&_0x408ffa[0x0]&&!0x1===_0x408ffa[0x0]['forceValue']&&(_0x42baa1=_0x519eb9[0x0]['start']['nodeAfter']);const _0x47f371=_0x436e94['createRangeIn'](_0x42baa1);if('$graveyard'==_0x47f371['root']['rootName'])return;const _0x43f5f6=Array['from'](_0x598b40['getRanges']())['map'](_0xc077d1=>_0x1ffa61['fromRange'](_0xc077d1));_0x436e94['setSelection'](_0x47f371),_0x4110db['commands']['get'](_0x5ccddf)['refresh'](),_0x408ffa['push']({'forceDefaultExecution':!0x0}),_0x4110db['execute'](_0x5ccddf,..._0x408ffa);const _0x3669f4=_0x43f5f6['filter'](_0x26554b=>'$graveyard'!=_0x26554b['root']['rootName']);_0x3669f4['length']>0x0&&_0x436e94['setSelection'](_0x3669f4);for(const _0x343813 of _0x43f5f6)_0x343813['detach']();});};}['_getCoordsForCells'](_0x61f3f){const _0x11d943=this['editor']['plugins']['get']('TableUtils');let _0x42f5df=Number['MAX_SAFE_INTEGER'],_0x5a5d9f=Number['MIN_SAFE_INTEGER'],_0x11c06a=Number['MAX_SAFE_INTEGER'],_0x572662=Number['MIN_SAFE_INTEGER'];for(const _0x4a3e6c of _0x61f3f){if('$graveyard'==_0x4a3e6c['root']['rootName'])continue;const {row:_0x408b94,column:_0x39310d}=_0x11d943['getCellLocation'](_0x4a3e6c),_0x527838=_0x4a3e6c['hasAttribute']('rowspan')?_0x4a3e6c['getAttribute']('rowspan')-0x1:0x0,_0x49ca93=_0x4a3e6c['hasAttribute']('colspan')?_0x4a3e6c['getAttribute']('colspan')-0x1:0x0;_0x42f5df=_0x408b94<_0x42f5df?_0x408b94:_0x42f5df,_0x5a5d9f=_0x408b94+_0x527838>_0x5a5d9f?_0x408b94+_0x527838:_0x5a5d9f,_0x11c06a=_0x39310d<_0x11c06a?_0x39310d:_0x11c06a,_0x572662=_0x39310d+_0x49ca93>_0x572662?_0x39310d+_0x49ca93:_0x572662;}return{'minRow':_0x42f5df,'maxRow':_0x5a5d9f,'minColumn':_0x11c06a,'maxColumn':_0x572662};}['_setupColumnsRowsFixing'](){const _0xde1025=this['editor'],_0x4448f8=_0xde1025['plugins']['get']('TrackChangesEditing'),_0x1c1f8f=_0xde1025['plugins']['get']('TableUtils');_0xde1025['model']['document']['on']('change:data',()=>{const _0x410069=Array['from'](_0xde1025['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3f922c,data:_0x1c8245}of _0x410069){const {group:_0x1d3c62,id:_0x2889be,subType:_0x429f7a}=_0x4448f8['_splitMarkerName'](_0x3f922c);if('suggestion'!=_0x1d3c62)continue;if(null!=_0x1c8245['oldRange'])continue;const _0x503dec=_0x4448f8['getSuggestion'](_0x2889be);this['_tablePostFixingSubtypes']['includes'](_0x429f7a)&&this['_tableSuggestions']['add'](_0x503dec);}},{'priority':'low'});const _0x2e1210=(_0x355a87,_0x1ab776)=>{let _0x27063f=!0x1;const _0x1b4334=_0x1ab776['createRangeOn'](_0x355a87),_0x1ab3be=_0x355a87['findAncestor']('table'),_0x3c8032=_0x1c1f8f['getCellLocation'](_0x355a87);for(const _0xc25bb4 of this['_tableSuggestions']){const _0x3dbcdb=_0xc25bb4['subType'],_0x322cc8=_0x3dbcdb['startsWith']('tablePaste'),_0x1f86e0=_0x3dbcdb['substr'](_0x322cc8?0xa:0x5),_0x2de706=_0x1f86e0['toLowerCase'](),_0x19ef23=_0x2de706['substr'](0x0,0x3)+'span',_0x72d34d='min'+_0x1f86e0,_0x11eea9='max'+_0x1f86e0;if(!_0xc25bb4['isInContent'])continue;if(_0x1ab3be!=_0xc25bb4['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xc25bb4['isIntersectingWithRange'](_0x1b4334))continue;const _0x987210=_0x355a87['hasAttribute'](_0x19ef23)?_0x355a87['getAttribute'](_0x19ef23)-0x1:0x0,_0x3eff39=this['_getSuggestionCoords'](_0xc25bb4),_0x5d4716=_0x3eff39[_0x72d34d],_0x37c298=_0x3eff39[_0x11eea9];_0x5d4716<=_0x3c8032[_0x2de706]&&_0x3c8032[_0x2de706]+_0x987210<=_0x37c298&&(_0xc25bb4['addRange'](_0x1b4334),_0x27063f=!0x0);}return _0x27063f;};_0xde1025['model']['document']['registerPostFixer'](_0x45a7a4=>{let _0x33f39e=!0x1;for(const _0x26dd6a of _0xde1025['model']['document']['differ']['getChanges']())if('insert'==_0x26dd6a['type']){if('tableRow'==_0x26dd6a['name']){for(const _0x1bf05b of _0x26dd6a['position']['nodeAfter']['getChildren']())_0x33f39e=_0x33f39e||_0x2e1210(_0x1bf05b,_0x45a7a4);}else'tableCell'==_0x26dd6a['name']&&(_0x33f39e=_0x33f39e||_0x2e1210(_0x26dd6a['position']['nodeAfter'],_0x45a7a4));}return _0x33f39e;});}['_getSuggestionCoords'](_0x349515){return this['_getCoordsForCells'](_0x349515['getRanges']()['map'](_0x42adfa=>_0x42adfa['start']['nodeAfter']));}}function Ne(_0x1f5cd0){return Array['from'](new Set(_0x1f5cd0)['values']());}class Nt extends _0x2bb590{static get['requires'](){return[Ct];}['afterInit'](){const _0x51aa70=this['editor'],_0xccbf14=_0x51aa70['model']['document']['selection'],_0x110625=_0x51aa70['locale'];if(!_0x51aa70['plugins']['has']('TableEditing'))return;const _0x5d1f00=_0x51aa70['plugins']['get']('TrackChangesEditing'),_0x18d291=_0x51aa70['plugins']['get']('TableUtils'),_0x3428ed=_0x51aa70['plugins']['get'](Ct);_0x3428ed['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5d1f00['enableCommand']('mergeTableCells',()=>{const _0x28a6de=_0x18d291['getSelectionAffectedTableCells'](_0x51aa70['model']['document']['selection']);_0x51aa70['model']['change'](()=>{_0x5d1f00['markMultiRangeBlockFormat'](_0x28a6de,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x51aa70['commands']['get']('mergeTableCells')['on']('execute',(_0x1d8896,_0x22604f)=>{_0x51aa70['commands']['get']('trackChanges')['value']&&(_0x22604f['length']>0x0&&_0x22604f[_0x22604f['length']-0x1]&&_0x22604f[_0x22604f['length']-0x1]['forceDefaultExecution']||_0x5d1f00['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1d8896['stop']());},{'priority':'highest'});for(const _0x17e1bb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1353b7=_0x51aa70['commands']['get'](_0x17e1bb);_0x5d1f00['enableCommand'](_0x17e1bb,()=>{const _0x138af3=_0x51aa70['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x48d29e=>_0x48d29e['is']('element','tableCell')),_0x331cb5=_0x1353b7['value'];_0x51aa70['model']['change'](()=>{_0x5d1f00['markMultiRangeBlockFormat']([_0x138af3,_0x331cb5],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x9a1e1d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x15707f=_0x51aa70['commands']['get'](_0x9a1e1d);_0x5d1f00['enableCommand'](_0x9a1e1d,()=>{const _0x13ea58=_0x18d291['getSelectionAffectedTableCells'](_0x51aa70['model']['document']['selection'])[0x0],_0x20a7da=_0x13ea58['findAncestor']('table'),{column:_0x568448,row:_0x5c9904}=_0x18d291['getCellLocation'](_0x13ea58);let _0x220b1a=[];if('horizontally'==_0x15707f['direction']){const _0x365bd2=_0x18d291['createTableWalker'](_0x20a7da,{'startRow':_0x5c9904,'endRow':_0x5c9904,'includeAllSlots':!0x0});_0x220b1a=Array['from'](_0x365bd2)['map'](_0x499a90=>_0x499a90['cell']);}else{const _0x4532cd=_0x18d291['createTableWalker'](_0x20a7da,{'column':_0x568448,'includeAllSlots':!0x0});_0x220b1a=Array['from'](_0x4532cd)['map'](_0x2a2dac=>_0x2a2dac['cell']);}_0x51aa70['model']['change'](_0x235ad1=>{_0x5d1f00['markBlockFormat'](_0x235ad1['createRangeOn'](_0x13ea58),{'commandName':_0x9a1e1d,'commandParams':[]},_0x220b1a,_0x9a1e1d);});});}_0x5d1f00['descriptionFactory']['registerDescriptionCallback'](_0xee0975=>{if('formatBlock'!=_0xee0975['type']&&'formatInline'!=_0xee0975['type'])return;const {data:_0x20cde5}=_0xee0975;return _0x20cde5&&'mergeTableCells'==_0x20cde5['commandName']?{'type':'format','content':c(_0x110625,'*Merge\x20cells*')}:void 0x0;}),_0x5d1f00['descriptionFactory']['registerDescriptionCallback'](_0x263e15=>{if('formatBlock'!=_0x263e15['type']&&'formatInline'!=_0x263e15['type'])return;const {data:_0x5b23d3}=_0x263e15;return _0x5b23d3?'splitTableCellVertically'==_0x5b23d3['commandName']?{'type':'format','content':c(_0x110625,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5b23d3['commandName']?{'type':'format','content':c(_0x110625,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3473dd=_0x3428ed['_acceptFormatSuggestionCallbackFactory']();for(const _0x173a9a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5d1f00['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x173a9a,'accept',_0x3473dd);for(const _0x1041a2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5d1f00['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1041a2,'accept',_0x3473dd);_0x5d1f00['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4abb6d=>{_0x51aa70['model']['change'](_0x2fbfae=>{const _0xfbeab=Array['from'](_0xccbf14['getRanges']())['map'](_0x33499a=>_0x1ffa61['fromRange'](_0x33499a));_0x2fbfae['setSelection'](_0x4abb6d),_0x51aa70['commands']['get']('mergeTableCells')['refresh'](),_0x51aa70['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2ed8dc=_0xfbeab['filter'](_0x4a8bc0=>'$graveyard'!=_0x4a8bc0['root']['rootName']);_0x2ed8dc['length']>0x0&&_0x2fbfae['setSelection'](_0x2ed8dc);for(const _0x4c0b2b of _0xfbeab)_0x4c0b2b['detach']();});});for(const _0x7c06f9 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2cfb40=_0x51aa70['commands']['get'](_0x7c06f9);_0x2cfb40['on']('set:isEnabled',(_0x58610a,_0x196984,_0x238549)=>{if(_0x238549){const _0x2ebb51=_0x51aa70['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x199ad9=>_0x199ad9['is']('element','tableCell'));this['_areMergableCells'](_0x2cfb40['value'],_0x2ebb51)||(_0x58610a['return']=!0x1,_0x58610a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x36bcd4=this['editor']['commands']['get']('mergeTableCells'),_0x107ba4=this['editor']['plugins']['get']('TableUtils');if(!_0x36bcd4['isEnabled'])return!0x1;const _0x303468=_0x107ba4['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1d5e2e of _0x303468)for(const _0x361a8c of _0x303468)if(_0x1d5e2e!=_0x361a8c&&!this['_areMergableCells'](_0x1d5e2e,_0x361a8c))return!0x1;return!0x0;}['_areMergableCells'](_0x12657d,_0x5cc18d){const _0x493f22=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4258e7=this['editor']['model']['createRangeOn'](_0x12657d),_0x185453=this['editor']['model']['createRangeOn'](_0x5cc18d),_0x2c1bb5=new Set(),_0x128678=new Set();for(const _0x199ee9 of _0x493f22['getSuggestions']())if(('insertion'==_0x199ee9['type']||'deletion'==_0x199ee9['type']||'mergeTableCells'==_0x199ee9['subType'])&&_0x199ee9['isInContent']){for(const _0x456ca4 of _0x199ee9['getRanges']())_0x456ca4['containsRange'](_0x4258e7,!0x0)&&_0x2c1bb5['add'](_0x199ee9['type']+':'+_0x199ee9['author']['id']),_0x456ca4['containsRange'](_0x185453,!0x0)&&_0x128678['add'](_0x199ee9['type']+':'+_0x199ee9['author']['id']);}if(_0x2c1bb5['size']!=_0x128678['size'])return!0x1;for(const _0x4ff2f6 of _0x2c1bb5)if(!_0x128678['has'](_0x4ff2f6))return!0x1;return!0x0;}}class Dt extends _0x2bb590{static get['requires'](){return[Ct];}['afterInit'](){const _0x571aef=this['editor'];if(!_0x571aef['plugins']['has']('TableEditing'))return;const _0x29de78=_0x571aef['locale'],_0x6a0d7b=_0x571aef['plugins']['get']('TrackChangesEditing');_0x6a0d7b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x6a0d7b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x6a0d7b['registerBlockAttribute']('headingRows'),_0x6a0d7b['registerBlockAttribute']('headingColumns'),_0x6a0d7b['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x29de78,'FORMAT_HEADER_ROW')),_0x6a0d7b['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x29de78,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x26ff37=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc12a74=this['editor']['plugins']['get']('TableUtils'),_0x30c590=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x3087f6({showActiveMarker:_0x47ab9e=!0x0,setDataAttribute:_0x1dd799=!0x0}={}){return(_0x5ac270,_0x5eab94,_0xc13486)=>{const {type:_0x1525ee,id:_0x35ec8b}=_0x26ff37['_splitMarkerName'](_0x5eab94['markerName']),_0x457f4c=_0x26ff37['getSuggestion'](_0x35ec8b),_0x5e92ab=_0x457f4c['data'];if('formatBlock'!=_0x457f4c['type']||!_0x5e92ab||'setTableColumnHeader'!=_0x5e92ab['commandName'])return;if(_0x5eab94['item'])return void _0x5ac270['stop']();if(!_0xc13486['consumable']['consume'](_0x5eab94['markerRange'],_0x5ac270['name']))return;const _0x34e8d6=_0x5eab94['markerRange']['start']['nodeAfter'],_0x40915e=_0x5eab94['markerRange']['end']['nodeBefore'],_0x1623e6=_0x34e8d6['parent']['parent'],{column:_0x3be0bd}=_0xc12a74['getCellLocation'](_0x34e8d6),{column:_0x1764a5}=_0xc12a74['getCellLocation'](_0x40915e);for(let _0x219f21=_0x3be0bd;_0x219f21<=_0x1764a5;_0x219f21++){const _0x4a5086=_0xc12a74['createTableWalker'](_0x1623e6,{'column':_0x219f21,'includeAllSlots':!0x1});for(const _0x1d6f6e of _0x4a5086){const _0x165573=_0x1d6f6e['cell'],_0x1ce457=_0xc13486['mapper']['toViewElement'](_0x165573);_0xc13486['writer']['addClass']('ck-suggestion-marker-'+_0x1525ee,_0x1ce457),_0x1dd799&&_0xc13486['writer']['setAttribute']('data-suggestion',_0x35ec8b,_0x1ce457),_0xc13486['mapper']['bindElementToMarker'](_0x1ce457,_0x5eab94['markerName']),_0x47ab9e&&(_0x26ff37['activeMarkers']['includes'](_0x5eab94['markerName'])?_0xc13486['writer']['addClass']('ck-suggestion-marker--active',_0x1ce457):_0xc13486['writer']['removeClass']('ck-suggestion-marker--active',_0x1ce457));}}};}_0x26ff37['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x30c590),_0x26ff37['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x30c590),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3087f6(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1eee2b,_0x259437,_0x4432ab)=>{_0x4432ab['options']['showSuggestionHighlights']&&_0x3087f6({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1eee2b,_0x259437,_0x4432ab);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1ac48c,_0x109fe9,_0x5752bf)=>{const {type:_0x2a318a,id:_0x2befcb}=_0x26ff37['_splitMarkerName'](_0x109fe9['markerName']),_0x4b28ba=_0x26ff37['getSuggestion'](_0x2befcb),_0x103182=_0x4b28ba['data'];if('formatBlock'!=_0x4b28ba['type']||!_0x103182||'setTableColumnHeader'!=_0x103182['commandName'])return;const _0x4dee17=_0x5752bf['mapper']['markerNameToElements'](_0x109fe9['markerName']);if(_0x4dee17){for(const _0x2bb2fc of _0x4dee17)_0x5752bf['writer']['removeClass']('ck-suggestion-marker-'+_0x2a318a,_0x2bb2fc),_0x5752bf['writer']['removeClass']('ck-suggestion-marker--active',_0x2bb2fc),_0x5752bf['writer']['removeAttribute']('data-suggestion',_0x2bb2fc),_0x5752bf['mapper']['unbindElementFromMarkerName'](_0x2bb2fc,_0x109fe9['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x472152=this['editor'],_0x2092a4=_0x472152['locale'];function _0x5cab9d(_0x146494){return{'type':'format','content':c(_0x2092a4,'*Format:*\x20%0',_0x146494)};}_0x472152['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4aa1f6=>{if('formatBlock'!=_0x4aa1f6['type'])return;const {data:_0x41cce4}=_0x4aa1f6;if(_0x41cce4){if('setTableRowHeader'==_0x41cce4['commandName']){const _0x1a527d=_0x41cce4['commandParams'][0x0]['forceValue'];return _0x5cab9d(c(_0x2092a4,_0x1a527d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x41cce4['commandName']){const _0x4ef3d2=_0x41cce4['commandParams'][0x0]['forceValue'];return _0x5cab9d(c(_0x2092a4,_0x4ef3d2?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x2bb590{['afterInit'](){const _0x20b04d=this['editor'],_0x46b8cd=_0x20b04d['locale'],_0x562a18=_0x20b04d['plugins']['get']('TrackChangesEditing');function _0x1816e4(_0x443ff4){return{'type':'format','content':''+c(_0x46b8cd,'*Set\x20table\x20type:*\x20%0',_0x443ff4)};}_0x20b04d['plugins']['has']('TableLayout')&&(_0x562a18['enableCommand']('insertTableLayout'),_0x562a18['enableDefaultAttributesIntegration']('tableType'),_0x562a18['registerBlockAttribute']('tableType'),_0x562a18['descriptionFactory']['registerElementLabel'](_0x550990=>_0x550990['is']('element','table')&&'layout'===_0x550990['getAttribute']('tableType'),_0x33c93a=>c(_0x46b8cd,'ELEMENT_LAYOUT_TABLE',_0x33c93a)),_0x562a18['descriptionFactory']['registerDescriptionCallback'](_0x5a9add=>{const {data:_0x419c8b}=_0x5a9add;if(_0x419c8b&&'tableType'==_0x419c8b['key'])switch(_0x419c8b['newValue']){case'layout':return _0x1816e4(c(_0x46b8cd,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1816e4(c(_0x46b8cd,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x462fb4=>[_0x462fb4,null]));class $t extends _0x2bb590{static get['requires'](){return[Ct];}['afterInit'](){const _0x20fdb1=this['editor'];if(!_0x20fdb1['plugins']['has']('TableClipboard'))return;const _0x3f9826=_0x20fdb1['plugins']['get']('TrackChangesEditing'),_0x574e85=_0x20fdb1['plugins']['get']('TableUtils'),_0x14da41=_0x20fdb1['plugins']['get'](Ct),_0x3a5beb=_0x20fdb1['plugins']['get']('TableClipboard'),_0x529804=_0x20fdb1['plugins']['get']('TableSelection'),_0x25974c=_0x20fdb1['plugins']['get'](_0xcb2e10);_0x14da41['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x20fdb1['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x20fdb1['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4ea661=null,_0x206585=!0x1;_0x25974c['on']('contentInsertion',(_0xae5ad6,_0xcaf540)=>{_0x206585='paste'===_0xcaf540['method'];}),_0x20fdb1['model']['on']('insertContent',(_0xf416cb,_0x123fc1)=>{if(!_0x206585&&null===_0x529804['getSelectedTableCells']())return;const [_0x553361,_0x2c0fe9]=_0x123fc1,_0x3a0722=_0x123fc1[_0x123fc1['length']-0x1];_0x3a0722&&_0x3a0722['forceDefaultExecution']||_0x3f9826['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x6b8d66,_0x26dc81,_0x276d44,_0xf9c2c5,_0x3739a4){if(_0x26dc81&&!_0x26dc81['is']('documentSelection'))return!0x1;const _0x4e93ee=_0x3739a4['getTableIfOnlyTableInContent'](_0x6b8d66,_0x276d44);if(!_0x4e93ee||!De(_0x4e93ee,void 0x0,_0xf9c2c5))return!0x1;const _0x2113cb=_0xf9c2c5['getSelectionAffectedTableCells'](_0x276d44['document']['selection']);if(!_0x2113cb['length'])return!0x1;const _0x2bde71=_0x2113cb[0x0]['findAncestor']('table'),_0x1754a4=_0xf9c2c5['getRowIndexes'](_0x2113cb),_0x278071=_0xf9c2c5['getColumnIndexes'](_0x2113cb),_0x53f8bd={'startRow':_0x1754a4['first'],'endRow':_0x1754a4['last'],'startColumn':_0x278071['first'],'endColumn':_0x278071['last']};return 0x1==_0x2113cb['length']&&(_0x53f8bd['endRow']+=_0xf9c2c5['getRows'](_0x4e93ee)-0x1,_0x53f8bd['endColumn']+=_0xf9c2c5['getColumns'](_0x4e93ee)-0x1),De(_0x2bde71,_0x53f8bd,_0xf9c2c5);}(_0x553361,_0x2c0fe9,_0x20fdb1['model'],_0x574e85,_0x3a5beb)&&(_0xf416cb['stop'](),_0x4ea661={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x20fdb1['model']['change'](()=>{_0x20fdb1['model']['insertContent'](_0x123fc1[0x0],_0x123fc1[0x1],_0x123fc1[0x2],{'forceDefaultExecution':!0x0});const _0x6e25e7=_0xf1d1da(),{rowInsertionRanges:_0x4fa4e4,columnInsertionRanges:_0x1feebb,insertionRanges:_0xa8791f,deletionRanges:_0x2f8fac,cells:_0x3a2cbb}=_0x4ea661;_0x4fa4e4['length']&&_0x3f9826['markMultiRangeInsertion'](_0x4fa4e4,'tablePasteRow',{'tablePasteChainId':_0x6e25e7}),_0x1feebb['length']&&_0x3f9826['markMultiRangeInsertion'](_0x1feebb,'tablePasteColumn',{'tablePasteChainId':_0x6e25e7}),_0xa8791f['length']&&(_0x3f9826['markMultiRangeInsertion'](_0xa8791f,'tablePaste',{'tablePasteChainId':_0x6e25e7,'skipNestingCheck':!0x0}),_0xa8791f['forEach'](_0x61b66=>_0x61b66['detach']?.())),_0x2f8fac['length']&&(_0x3f9826['markMultiRangeDeletion'](_0x2f8fac,'tablePaste',{'tablePasteChainId':_0x6e25e7,'skipNestingCheck':!0x0}),_0x2f8fac['forEach'](_0xf33c0b=>_0xf33c0b['detach']?.()));const _0x44236c=_0x3f9826['markMultiRangeBlockFormat'](_0x3a2cbb['map'](({element:_0xacab36})=>_0xacab36),{'formatGroupId':_0xf1d1da()},[],'tablePasteCell',{'tablePasteChainId':_0x6e25e7});if(_0x44236c){const _0x52b3c2=_0x44236c['getMarkers'](),_0x44834c=[];for(const {element:_0x544f91,attributes:_0x1dbffe}of _0x3a2cbb){if(!_0x1dbffe)continue;const _0x2c9563=_0x20fdb1['model']['createRangeOn'](_0x544f91),_0x2678f6=_0x52b3c2['find'](_0x23b17e=>_0x23b17e['getRange']()['isEqual'](_0x2c9563));_0x2678f6&&_0x44834c['push']([_0x2678f6['name'],_0x1dbffe]);}_0x44834c['length']&&_0x44236c['setAttribute']('markerAttributes',Object['fromEntries'](_0x44834c));}_0x4ea661=null;}));},{'priority':_0x5bb012['high']+0xa}),_0x25974c['on']('contentInsertion',()=>{_0x206585=!0x1;},{'priority':'lowest'}),_0x20fdb1['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xe83edf,_0x31bac7)=>{const [_0x1db3fe,_0x3f87cd,,_0x5f17a5]=_0x31bac7;if(!_0x4ea661)return;_0xe83edf['stop']();const _0x5dd442=_0x1db3fe['cell'],_0xa52da4=_0x3f87cd,_0x3c1059=Ue(_0x5dd442),_0x11ab5f=Ue(_0xa52da4);_0xe83edf['return']=_0x5dd442;let _0x47b43d=null,_0x4e3a8f=null;if(_0x11ab5f||_0x3c1059){if(_0x3c1059&&!_0x11ab5f){_0x5f17a5['remove'](_0x5dd442['getChild'](0x0));for(const _0x470dcd of Array['from'](_0xa52da4['getChildren']()))_0x5f17a5['insert'](_0x470dcd,_0x5dd442,'end');const _0x2ddc44=_0x4ea661['rowInsertionIndexes']['includes'](_0x1db3fe['row']),_0x2b9284=_0x4ea661['columnInsertionIndexes']['includes'](_0x1db3fe['column']);_0x2ddc44||_0x2b9284||(_0x47b43d=_0x1ffa61['fromRange'](_0x5f17a5['createRangeIn'](_0x5dd442)));}else _0x11ab5f&&!_0x3c1059&&(_0x4e3a8f=_0x5f17a5['createRangeIn'](_0x5dd442));}else{const _0x4c4924=_0x5f17a5['createElement']('tableCellSuggestion'),_0x235ffa=_0x5f17a5['createElement']('tableCellSuggestion');_0x5f17a5['wrap'](_0x5f17a5['createRangeIn'](_0x5dd442),_0x235ffa),_0x5f17a5['insert'](_0x4c4924,_0x5dd442,0x0);for(const _0x29a5b0 of Array['from'](_0xa52da4['getChildren']()))_0x5f17a5['insert'](_0x29a5b0,_0x4c4924,'end');_0x47b43d=_0x1ffa61['fromRange'](_0x5f17a5['createRangeOn'](_0x4c4924)),_0x4e3a8f=_0x1ffa61['fromRange'](_0x5f17a5['createRangeOn'](_0x235ffa));}const _0x185d47=Array['from'](_0xa52da4['getAttributes']())['filter'](([_0xc358e9])=>xe['includes'](_0xc358e9));_0x4ea661['cells']['push']({'element':_0x5dd442,'attributes':_0x185d47['length']?Object['fromEntries'](_0x185d47):null}),_0x47b43d&&_0x4ea661['insertionRanges']['push'](_0x47b43d),_0x4e3a8f&&_0x4ea661['deletionRanges']['push'](_0x4e3a8f);},{'priority':'high'}),_0x574e85['on']('insertColumns',(_0x534b9e,_0x8aebaa)=>{const [_0x352f5e,_0x2b2d74={}]=_0x8aebaa;if(!_0x4ea661)return;const _0x7c351=_0x2b2d74['at']||0x0,_0x5403f1=_0x2b2d74['columns']||0x1;_0x4ea661['columnInsertionIndexes']=new Array(_0x5403f1)['fill'](_0x7c351)['map']((_0x5d7b8d,_0x4df1f5)=>_0x5d7b8d+_0x4df1f5);for(const {cell:_0x157e17}of _0x574e85['createTableWalker'](_0x352f5e,{'startColumn':_0x7c351,'endColumn':_0x7c351+_0x5403f1-0x1}))_0x4ea661['columnInsertionRanges']['push'](_0x20fdb1['model']['createRangeOn'](_0x157e17));},{'priority':'low'}),_0x574e85['on']('insertRows',(_0x1604de,_0x3d88ea)=>{const [_0x5f39cd,_0x3bfe74={}]=_0x3d88ea;if(!_0x4ea661)return;const _0x37c402=_0x3bfe74['at']||0x0,_0x3530a6=_0x3bfe74['rows']||0x1;_0x4ea661['rowInsertionIndexes']=new Array(_0x3530a6)['fill'](_0x37c402)['map']((_0x5d2959,_0x739aa1)=>_0x5d2959+_0x739aa1);for(const {cell:_0x199dce}of _0x574e85['createTableWalker'](_0x5f39cd,{'startRow':_0x37c402,'endRow':_0x37c402+_0x3530a6-0x1}))_0x4ea661['rowInsertionRanges']['push'](_0x20fdb1['model']['createRangeOn'](_0x199dce));},{'priority':'low'}),_0x3f9826['descriptionFactory']['registerDescriptionCallback'](_0x20f531=>{if(_0x20f531['subType']&&_0x20f531['subType']['startsWith']('tablePaste'))return _0x20f531['previous']?{}:{'type':'insertion','content':c(_0x20fdb1['locale'],'*Replace\x20table\x20cells*')};});const _0x14e0fd=()=>!0x1;for(const _0x5f4811 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3f9826['_suggestionFactory']['registerCustomCallback']('insertion',_0x5f4811,'join',_0x14e0fd),_0x3f9826['_suggestionFactory']['registerCustomCallback']('deletion',_0x5f4811,'join',_0x14e0fd),_0x3f9826['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5f4811,'join',_0x14e0fd);_0x3f9826['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x14e0fd),_0x3f9826['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4c35e4,_0x401d06,_0x3c6b4e)=>{const _0xe55283=_0x4c35e4['map'](_0x21c3c2=>_0x21c3c2['getContainedElement']())['filter'](_0x5c3e92=>_0x5c3e92),_0x8c26bf=new Map(_0xe55283['map'](_0x506c4c=>[_0x506c4c,null]));if(_0x4ea661){for(const {element:_0x3ebe3f,attributes:_0x5129bc}of _0x4ea661['cells'])_0x5129bc&&_0x8c26bf['set'](_0x3ebe3f,_0x5129bc);}else{if(_0x3c6b4e&&_0x3c6b4e['markerAttributes'])for(const [_0x416158,_0x265e35]of Object['entries'](_0x3c6b4e['markerAttributes'])){const _0x46ce20=_0x20fdb1['model']['markers']['get'](_0x416158),_0x1b18ef=_0x46ce20?_0x46ce20['getRange']()['getContainedElement']():null;_0x1b18ef&&_0x8c26bf['set'](_0x1b18ef,_0x265e35);}}_0x20fdb1['model']['change'](_0x25df89=>{for(const [_0x104a7d,_0x5e56d0]of _0x8c26bf)_0x25df89['setAttributes']({...Oe,..._0x5e56d0},_0x104a7d);});});const _0xabd47c=(_0x3c5b50,_0x3b7887)=>{_0x3f9826['_suggestionFactory']['registerCustomCallback'](_0x3c5b50,'tablePaste',_0x3b7887,(_0x4f55e2,_0x21d1f7,_0xbd7902)=>{_0x20fdb1['model']['change'](_0x277568=>{const _0x2624b9=[];for(const _0x354442 of _0x4f55e2){const _0x5eda2b=_0x354442['start']['nodeAfter'];_0x5eda2b['is']('element','tableCellSuggestion')&&_0x2624b9['push'](_0x5eda2b);}_0x3f9826['_suggestionFactory']['getSuggestionCallback'](_0x3c5b50,null,_0x3b7887)(_0x4f55e2,_0x21d1f7,_0xbd7902);for(const _0x42290f of _0x2624b9)'$graveyard'!=_0x42290f['root']['rootName']&&_0x277568['unwrap'](_0x42290f);});});};_0xabd47c('insertion','accept'),_0xabd47c('insertion','discard'),_0xabd47c('deletion','accept'),_0xabd47c('deletion','discard'),_0x3f9826['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x40093d=>{const _0x2b41c9=_0x40093d['map'](_0x572ac3=>_0x572ac3['getContainedElement']()),_0x5a8cf7=_0x2b41c9[0x0]['findAncestor']('table'),{minRow:_0x57d852,maxRow:_0xe7c302}=_0x14da41['_getCoordsForCells'](_0x2b41c9);_0x574e85['removeRows'](_0x5a8cf7,{'at':_0x57d852,'rows':_0xe7c302-_0x57d852+0x1});}),_0x3f9826['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x122850=>{const _0xb86b20=_0x122850['map'](_0x35bc6a=>_0x35bc6a['getContainedElement']()),_0x2ab459=_0xb86b20[0x0]['findAncestor']('table'),{minColumn:_0x523ec3,maxColumn:_0x2c0a4f}=_0x14da41['_getCoordsForCells'](_0xb86b20);_0x574e85['removeColumns'](_0x2ab459,{'at':_0x523ec3,'columns':_0x2c0a4f-_0x523ec3+0x1});});const _0x5a822b=(_0x4862d8,_0x3501bb)=>{if(!_0x3501bb['subType']||!_0x3501bb['subType']['startsWith']('tablePaste'))return;const _0x92eabc=_0x3501bb['attributes']['tablePasteChainId'],_0x4cb3de=_0x3f9826['getSuggestions']()['filter'](_0x271e1e=>_0x271e1e['isInContent']&&_0x271e1e['attributes']&&_0x271e1e['attributes']['tablePasteChainId']==_0x92eabc);_0x4cb3de['length']&&_0x3501bb['getAllAdjacentSuggestions']()['length']!=_0x4cb3de['length']&&_0x4cb3de['reduce']((_0x1b5b85,_0x384c2d)=>(_0x1b5b85['next']=_0x384c2d,_0x384c2d['previous']=_0x1b5b85,_0x384c2d));};function _0x19227d(_0x3a993a,_0x333da3=!0x0){const {id:_0x3360ef,authorId:_0x52a5a6}=_0x3f9826['_splitMarkerName'](_0x3a993a['markerName']),_0x2e50f2=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x37b7b6=_0x3f9826['activeMarkers']['includes'](_0x3a993a['markerName']);return _0x37b7b6&&_0x2e50f2['push']('ck-suggestion-marker--active'),{'classes':_0x2e50f2,'attributes':{'data-suggestion':_0x3360ef,'data-author-id':_0x52a5a6},'priority':_0x37b7b6&&_0x333da3?0xbc2:0xbb8};}_0x3f9826['on']('suggestionLoaded',_0x5a822b,{'priority':'high'}),_0x3f9826['on']('suggestionUnloaded',_0x5a822b,{'priority':'high'}),_0x20fdb1['model']['document']['registerPostFixer'](()=>{let _0x3302ac=!0x1;const _0x3d98a2=Array['from'](_0x20fdb1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xfaf791,data:_0x39c2ec}of _0x3d98a2){const {group:_0x3cd685,type:_0x5d2f1f,id:_0x3a7a5a}=_0x3f9826['_splitMarkerName'](_0xfaf791);if('suggestion'!=_0x3cd685||'deletion'!=_0x5d2f1f||_0x39c2ec['oldRange'])continue;if(!_0x3f9826['hasSuggestion'](_0x3a7a5a))continue;const _0x5c6f8f=_0x3f9826['getSuggestion'](_0x3a7a5a)['getRanges'](),_0x11a277=_0x20fdb1['plugins']['get']('Users')['me'];for(const _0x3c0aa0 of _0x3f9826['getSuggestions']()){if(!_0x3c0aa0['isInContent']||_0x3c0aa0['author']!=_0x11a277)continue;if('formatBlock'!=_0x3c0aa0['type']||'tablePasteCell'!=_0x3c0aa0['subType'])continue;if(_0x3c0aa0['getRanges']()['every'](_0x24a1cb=>_0x5c6f8f['some'](_0x43391a=>_0x43391a['containsRange'](_0x24a1cb,!0x0)))){for(const _0x257cd9 of _0x3c0aa0['getAllAdjacentSuggestions']())_0x257cd9['isInContent']&&(_0x257cd9['discard'](),_0x3302ac=!0x0);}}}return _0x3302ac;}),_0x20fdb1['model']['document']['registerPostFixer'](_0x155c69=>{const _0x40cb9c=_0x20fdb1['commands']['get']('redo');if(!_0x40cb9c||!_0x40cb9c['_createdBatches']['has'](_0x155c69['batch']))return!0x1;let _0x21d0c5=!0x1;const _0x17941e=_0x20fdb1['plugins']['get']('Users')['me'],_0x49f85c=_0x20fdb1['model']['document']['differ']['getChanges'](),_0x518b5f=Array['from'](_0x20fdb1['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4489be,data:_0x6d0f72})=>{const {group:_0xaa363a,subType:_0x4d225f,authorId:_0x3aaf2a}=_0x3f9826['_splitMarkerName'](_0x4489be);return'suggestion'==_0xaa363a&&'tablePaste'==_0x4d225f&&_0x3aaf2a==_0x17941e['id']&&!_0x6d0f72['oldRange'];});for(const _0x308d82 of _0x49f85c){if('insert'!=_0x308d82['type']||'tableCellSuggestion'!=_0x308d82['name']||0x1!=_0x308d82['length'])continue;const _0x544619=_0x155c69['createRange'](_0x308d82['position'],_0x308d82['position']['getShiftedBy'](0x1));if(!_0x518b5f['find'](({data:_0x1dd60f})=>_0x1dd60f['newRange']['isEqual'](_0x544619))){for(const {name:_0x20e631,data:_0x1ae972}of _0x518b5f)if(_0x544619['containsRange'](_0x1ae972['newRange'])){_0x155c69['updateMarker'](_0x20e631,{'range':_0x544619}),_0x21d0c5=!0x0;break;}}}return _0x21d0c5;}),_0x20fdb1['model']['document']['registerPostFixer'](_0x5f0996=>{let _0x4ef09f=!0x1;const _0x2a750a=_0x20fdb1['plugins']['get']('Users')['me'],_0x445810=_0x3f9826['getSuggestions']()['filter'](_0x1994ff=>_0x1994ff['isInContent']&&_0x1994ff['author']==_0x2a750a),_0x26e5e5=new Set(),_0x4221fd=new Set();for(const _0x53fd62 of _0x445810)if('tablePaste'==_0x53fd62['subType'])for(const _0x454953 of _0x53fd62['getMarkers']()){const _0x3f18b7=_0x454953['getRange']()['getContainedElement']();if(_0x3f18b7){if(_0x3f18b7['is']('element','tableCellSuggestion')&&Ue(_0x3f18b7)){_0x53fd62['removeMarker'](_0x454953['name']),_0x26e5e5['add'](_0x3f18b7),_0x4ef09f=!0x0;const _0x5035df=_0x3f18b7['nextSibling'],_0x251ea8=_0x3f18b7['previousSibling'],_0x11fcb5=_0x5035df&&_0x5035df['is']('element','tableCellSuggestion'),_0x4e9510=_0x251ea8&&_0x251ea8['is']('element','tableCellSuggestion');_0x11fcb5&&!_0x26e5e5['has'](_0x5035df)&&_0x4221fd['add'](_0x5035df),_0x4e9510&&!_0x26e5e5['has'](_0x251ea8)&&_0x4221fd['add'](_0x251ea8);}else _0x3f18b7['is']('element','paragraph')&&_0x3f18b7['isEmpty']&&(_0x53fd62['removeMarker'](_0x454953['name']),_0x4ef09f=!0x0);}}else{if('tablePasteCell'==_0x53fd62['subType']){if(!_0x53fd62['attributes']||!_0x53fd62['attributes']['tablePasteChainId'])continue;const _0x3ed605=_0x53fd62['attributes']['markerAttributes'];if(_0x3ed605&&Object['keys'](_0x3ed605)['length'])continue;const _0x1d9341=_0x53fd62['attributes']['tablePasteChainId'];let _0x424b32=!0x0,_0x4fde28=!0x0;for(const _0x3ec453 of _0x445810)if(_0x3ec453['subType']&&_0x3ec453['subType']['startsWith']('tablePaste')){if(!_0x3ec453['attributes']['tablePasteChainId']){_0x4fde28=!0x1;break;}if(_0x3ec453['id']!=_0x53fd62['id']&&_0x3ec453['attributes']['tablePasteChainId']==_0x1d9341){_0x424b32=!0x1;break;}}_0x4fde28&&_0x424b32&&(_0x53fd62['removeMarkers'](),_0x4ef09f=!0x0);}}for(const _0xd66e17 of _0x26e5e5)_0x5f0996['remove'](_0xd66e17);for(const _0x5ccc1e of _0x4221fd)_0x5f0996['unwrap'](_0x5ccc1e);return _0x4ef09f;}),_0x20fdb1['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1b7696=>_0x19227d(_0x1b7696),'converterPriority':'high'}),_0x20fdb1['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x24de73,_0x40e8da)=>_0x40e8da['options']['showSuggestionHighlights']?_0x19227d(_0x24de73,!0x1):null,'converterPriority':'high'});const _0x3a2773=_0x20fdb1['editing']['view'];this['listenTo'](_0x3a2773['document'],'clipboardOutput',(_0x155991,_0x38d2c5)=>{const _0x287b9b=[];for(const _0x138975 of _0x3a2773['createRangeIn'](_0x38d2c5['content'])['getItems']())_0x138975['is']('element','suggestion-td')&&_0x287b9b['push'](_0x138975);_0x3a2773['change'](_0x202bba=>{for(const _0x35121f of _0x287b9b)_0x202bba['move'](_0x202bba['createRangeIn'](_0x35121f),_0x202bba['createPositionBefore'](_0x35121f)),_0x202bba['remove'](_0x35121f);});});}}function Ue(_0x1f8b33){if(_0x1f8b33['isEmpty'])return!0x0;const _0x189f87=_0x1f8b33['getChild'](0x0);return _0x189f87['is']('element','paragraph')&&_0x189f87['isEmpty'];}function De(_0x48ec53,_0x1d20d9={},_0x6cbca){for(const {isAnchor:_0x539fad,cellHeight:_0x58fa21,cellWidth:_0x25e117}of _0x6cbca['createTableWalker'](_0x48ec53,{'includeAllSlots':!0x0,..._0x1d20d9}))if(!_0x539fad||0x1!=_0x58fa21||0x1!=_0x25e117)return!0x1;return!0x0;}class Bt extends _0x2bb590{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x15d940=this['editor']['plugins']['get']('TrackChangesEditing');_0x15d940['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x15d940['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x15d940['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x15d940['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x15d940['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x15d940['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x27d6ef,_0x2ef9ab){const _0x30e5d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x108652=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x55c64c=_0x2ef9ab['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5d9cc9=_0x108652['getColumnGroupElement'](_0x55c64c);let _0x3a199f=_0x5d9cc9?_0x108652['getTableColumnsWidths'](_0x5d9cc9):null,_0x5a62a8=_0x55c64c['getAttribute']('tableWidth')||null;const _0x5d20c5=_0x2ef9ab['tableWidth']||_0x5a62a8,_0x567c93=_0x2ef9ab['columnWidths']||_0x3a199f,_0x51f4b2=this['editor']['plugins']['get']('Users')['me'];for(const _0x5d1f10 of _0x30e5d8['getSuggestions']()){const _0x3cde61=_0x5d1f10['getContainedElement']();if('resizeTable'===_0x5d1f10['subType']&&_0x3cde61===_0x55c64c){_0x5d1f10['author']!==_0x51f4b2&&_0x5d1f10['discard']();const _0x6a995a=_0x5d1f10['data']['commandParams'];_0x5a62a8=_0x6a995a[0x0]['tableWidth'],_0x3a199f=_0x6a995a[0x0]['columnWidths'];break;}}_0x27d6ef({'table':_0x55c64c,'tableWidth':_0x5d20c5,'columnWidths':_0x567c93}),_0x30e5d8['markBlockFormat'](_0x55c64c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5a62a8,'columnWidths':_0x3a199f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4d2403){if('formatBlock'!=_0x4d2403['type']&&'formatInline'!=_0x4d2403['type'])return;const {data:_0x8f64ec}=_0x4d2403;if(_0x8f64ec&&'resizeTable'===_0x8f64ec['formatGroupId']){const _0x39b9d1='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x39b9d1)};}}}class Ot extends _0x2bb590{['afterInit'](){const _0x5ab29f=this['editor'];_0x5ab29f['plugins']['has']('Template')&&_0x5ab29f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x2bb590{['afterInit'](){const _0x213cbd=this['editor'];if(!_0x213cbd['commands']['get']('insertTableOfContents'))return;_0x213cbd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x447c85=_0x213cbd['plugins']['get']('TrackChangesEditing'),_0x36fbd3=_0x213cbd['locale'];_0x447c85['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3de19e=>c(_0x36fbd3,'ELEMENT_TABLE_OF_CONTENTS',_0x3de19e));}}class xt extends _0x2bb590{['afterInit'](){const _0x51df05=this['editor'];if(!_0x51df05['plugins']['has']('Title'))return;const _0x5d4933=_0x51df05['plugins']['get']('TrackChangesEditing');_0x5d4933['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x51df05['locale'],'ELEMENT_TITLE')),_0x51df05['model']['document']['registerPostFixer'](_0xd34596=>{let _0x5a0eaa=!0x1;const _0x13adcb=Array['from'](_0x51df05['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1d2907,data:_0x1d95ea}of _0x13adcb){const {group:_0x2f99b8}=_0x5d4933['_splitMarkerName'](_0x1d2907);if('suggestion'!==_0x2f99b8||!_0x1d95ea['newRange'])continue;const _0x555b53=_0x1d95ea['newRange'],_0x3cec7d=_0x555b53['end']['nodeBefore'];if(!_0x3cec7d||!_0x3cec7d['is']('element','title-content'))continue;if(!_0x555b53['start']['isTouching'](_0x555b53['end']))continue;const _0x84ba61=_0x51df05['model']['schema']['getNearestSelectionRange'](_0x555b53['end'],'forward');if(_0x84ba61&&_0x84ba61['isCollapsed']){const _0x288398=_0xd34596['createRange'](_0x555b53['start'],_0x84ba61['start']);_0x288398['isEqual'](_0x555b53)||(_0xd34596['updateMarker'](_0x1d2907,{'range':_0x288398}),_0x5a0eaa=!0x0);}_0x5a0eaa||(_0xd34596['removeMarker'](_0x1d2907),_0x5a0eaa=!0x0);}return _0x5a0eaa;});}}class Tt extends _0x2bb590{['afterInit'](){const _0x2f4de0=this['editor'],_0x25a202=_0x2f4de0['plugins']['get']('TrackChangesEditing');_0x2f4de0['plugins']['has']('Uploadcare')&&(_0x25a202['enableCommand']('uploadcare'),_0x2f4de0['plugins']['has']('UploadcareImageEdit')&&(_0x25a202['enableCommand']('uploadcareImageEdit'),_0x25a202['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x25a202['registerBlockAttribute']('uploadcareImageId'),_0x25a202['descriptionFactory']['registerDescriptionCallback'](_0x36f496=>{if('attribute'!=_0x36f496['type'])return;const {data:_0x307b14}=_0x36f496;return _0x307b14&&'uploadcareImageId'==_0x307b14['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x2bb590{['afterInit'](){const _0x36e797=this['editor'],_0x505c6d=_0x36e797['plugins']['get']('TrackChangesEditing');_0x36e797['plugins']['has']('UndoEditing')&&(_0x505c6d['enableCommand']('undo'),_0x505c6d['enableCommand']('redo'));}}class Ut extends _0x2bb590{static get['requires'](){return[Ct];}['afterInit'](){const _0x1c2751=this['editor'];if(!_0x1c2751['plugins']['has']('TableCaptionEditing'))return;_0x1c2751['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x2bb590{['tableProperties'];['tableCellProperties'];constructor(_0x6ba4cc){super(_0x6ba4cc),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 _0x1c3f5a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x6b4e4b of this['tableProperties'])_0x1c3f5a['enableCommand'](_0x6b4e4b,(_0x5cbd56,_0x4be583)=>{const _0xd89f96=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x6b4e4b,[_0xd89f96],this['tableProperties'],'tableProperties',_0x5cbd56,_0x4be583);});_0x1c3f5a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1c3f5a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1c3f5a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x47f3be,_0x41f7f2)=>this['handleDiscardAction'](this['tableProperties'],_0x47f3be,_0x41f7f2)),_0x1c3f5a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x147cbf of this['tableCellProperties'])_0x1c3f5a['enableCommand'](_0x147cbf,(_0x55d8d7,_0x452cb9)=>{const _0x43460d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x147cbf,_0x43460d,this['tableCellProperties'],'tableCellProperties',_0x55d8d7,_0x452cb9);});_0x1c3f5a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1c3f5a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1c3f5a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4e66df,_0x138490)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4e66df,_0x138490)),_0x1c3f5a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1c3f5a['descriptionFactory']['registerDescriptionCallback'](_0x16a93f=>this['handleSuggestionDescription'](_0x16a93f));}['_handlePropertyChange'](_0x2cfc3c,_0x39c54c,_0x5c9f86,_0x354b0e,_0x24f166,_0x200558){const _0x4ce8a2=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x200558['batch'],()=>{for(const _0xbc47e8 of _0x39c54c){if(this['_getSuggestion'](_0xbc47e8,_0x354b0e))_0x24f166(_0x200558);else{const _0xe16039={};for(const _0x5a109f of _0x5c9f86){const _0x4fb126=_0xbc47e8['getAttribute'](_0x5a109f);void 0x0!==_0x4fb126&&(_0xe16039[_0x5a109f]=_0x4fb126);}_0x24f166(_0x200558),_0x4ce8a2['markBlockFormat'](_0xbc47e8,{'commandParams':[_0xe16039]},[],_0x354b0e);}}});}['handleDiscardAction'](_0x2206b8,_0x5bed22,_0xa49d15){const _0x5296f1=_0x5bed22[0x0]['start']['nodeAfter'],_0x2b79cc=_0xa49d15['commandParams'][0x0];this['editor']['model']['change'](_0x3961a1=>{for(const _0x3ec600 of _0x2206b8)void 0x0!==_0x2b79cc[_0x3ec600]?_0x3961a1['setAttribute'](_0x3ec600,_0x2b79cc[_0x3ec600],_0x5296f1):_0x3961a1['removeAttribute'](_0x3ec600,_0x5296f1);});}['handleSuggestionDescription'](_0x2a1d05){if(_0x2a1d05['data'])switch(_0x2a1d05['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x1ead9c,_0x2fdad9){const _0x1e0349=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x351fee of _0x1e0349['getSuggestions']({'skipNotAttached':!0x0})){const _0x211fdc=_0x351fee['getContainedElement']();if(_0x351fee['subType']===_0x2fdad9&&_0x211fdc===_0x1ead9c)return _0x351fee;}return null;}}const u='$elementName';class p extends _0x2bb590{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x75af00,_0x47b17f,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a5da2){super(_0x2a5da2),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5b1384,_0x3d376b,_0x4edd3a,_0x32b39b)=>{this['_model']['change'](()=>{for(const _0x3af580 of[..._0x32b39b,..._0x4edd3a])this['_model']['markers']['has'](_0x3af580)&&_0x2a5da2['editing']['reconvertMarker'](_0x3af580);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2a5da2['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x2a5da2['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2a5da2['config']['get']('trackChanges.trackFormatChanges'),_0x2a5da2['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2a5da2['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2a5da2,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x6095ae=this['editor'],_0x4f470c=(_0x39c894,_0x24fe19)=>{if('attribute'!=_0x39c894)return'ck-suggestion-marker-'+_0x39c894;const _0x3dcefa=_0x24fe19['split']('|')[0x0];return this['_isBlockAttribute'](_0x3dcefa)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x6095ae['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xecef83=>{const {id:_0x19fefd,authorId:_0x4764fc,type:_0x52d0af,subType:_0x1d5317}=this['_splitMarkerName'](_0xecef83['markerName']),_0x488e63=['ck-suggestion-marker',_0x4f470c(_0x52d0af,_0x1d5317)];let _0x4483e0=0xbb8;return this['activeMarkers']['includes'](_0xecef83['markerName'])&&(_0x488e63['push']('ck-suggestion-marker--active'),_0x4483e0=0xbc2),'deletion'==_0x52d0af&&(_0x4483e0+=0x5),{'classes':_0x488e63,'attributes':{'data-suggestion':_0x19fefd,'data-author-id':_0x4764fc},'priority':_0x4483e0};}}),_0x6095ae['conversion']['for']('dataDowncast')['add'](_0x17fcb0=>{_0x17fcb0['on']('addMarker:suggestion',(_0x3c8ef7,_0x432db9,_0x2dd2eb)=>{if(!_0x2dd2eb['options']['showSuggestionHighlights'])return;const _0x2ee1ed=_0x432db9['item'];if(!_0x2ee1ed)return;const _0x1e193d=_0x2dd2eb['mapper']['toViewElement'](_0x2ee1ed);_0x6095ae['model']['schema']['isObject'](_0x2ee1ed)&&_0x1e193d&&!_0x1e193d['getCustomProperty']('widget')&&_0x1e193d['is']('containerElement')&&_0x300646(_0x1e193d,_0x2dd2eb['writer']);},{'priority':'high'});}),_0x6095ae['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3bd867,_0x320b33)=>{if(!_0x320b33['options']['showSuggestionHighlights'])return null;const {type:_0x37a267,subType:_0x360f25}=this['_splitMarkerName'](_0x3bd867['markerName']);return{'classes':['ck-suggestion-marker',_0x4f470c(_0x37a267,_0x360f25)],'priority':0xbb8};}});const _0x4b2e32=({showActiveMarkers:_0x35bec5=!0x0,isAttributeSuggestion:_0x1960d0=!0x1}={})=>(_0x50927d,_0x5c117a,_0x30ed90)=>{if(!_0x5c117a['item'])return;const {id:_0x208c59,authorId:_0x39cf25}=this['_splitMarkerName'](_0x5c117a['markerName']);if(_0x1960d0){const _0x428cf2=this['_suggestions']['get'](_0x208c59),_0x19ba8d=this['_getAttributeKey'](_0x428cf2);if(!this['_isBlockAttribute'](_0x19ba8d))return;}if(_0x5c117a['item']['is']('selection'))return void _0x30ed90['consumable']['consume'](_0x5c117a['item'],_0x50927d['name']);const _0x2643e7=_0x30ed90['mapper']['toViewElement'](_0x5c117a['item']);if(_0x5c117a['item']['is']('element')&&_0x6095ae['model']['schema']['isBlock'](_0x5c117a['item'])&&!_0x2643e7['getCustomProperty']('addHighlight')){_0x30ed90['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2643e7),_0x30ed90['writer']['setAttribute']('data-suggestion',_0x208c59,_0x2643e7),_0x30ed90['writer']['setAttribute']('data-author-id',_0x39cf25,_0x2643e7),_0x30ed90['mapper']['bindElementToMarker'](_0x2643e7,_0x5c117a['markerName']),_0x35bec5&&(this['activeMarkers']['includes'](_0x5c117a['markerName'])?_0x30ed90['writer']['addClass']('ck-suggestion-marker--active',_0x2643e7):_0x30ed90['writer']['removeClass']('ck-suggestion-marker--active',_0x2643e7));for(const _0x4d5576 of _0x6095ae['model']['createRangeIn'](_0x5c117a['item'])['getItems']())_0x30ed90['consumable']['consume'](_0x4d5576,_0x50927d['name']);_0x30ed90['consumable']['consume'](_0x5c117a['item'],_0x50927d['name']);}};_0x6095ae['conversion']['for']('dataDowncast')['add'](_0x391b16=>{_0x391b16['on']('addMarker:suggestion:formatBlock',(_0x4a1f8a,_0x5485c4,_0x5402bf)=>{_0x5402bf['options']['showSuggestionHighlights']&&_0x4b2e32({'showActiveMarkers':!0x1})(_0x4a1f8a,_0x5485c4,_0x5402bf);},{'priority':'highest'});}),_0x6095ae['conversion']['for']('dataDowncast')['add'](_0x1b24a0=>{_0x1b24a0['on']('addMarker:suggestion:attribute',(_0x14b59e,_0x476c5a,_0x2fa983)=>{_0x2fa983['options']['showSuggestionHighlights']&&_0x4b2e32({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x14b59e,_0x476c5a,_0x2fa983);},{'priority':'highest'});}),_0x6095ae['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1f95d4,_0x240d62)=>_0x240d62['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1f95d4['substr'](0xb)}}),_0x6095ae['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x13eda1,{writer:_0x5323c4})=>{let _0x2a69e0='suggestion:'+_0x13eda1['getAttribute']('suggestion-type')+':'+_0x13eda1['getAttribute']('id');return _0x13eda1['getAttribute']('marker-count')&&(_0x2a69e0+=':'+_0x13eda1['getAttribute']('marker-count')),_0x5323c4['createElement']('$marker',{'data-name':_0x2a69e0});}}),_0x6095ae['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x6095ae['conversion']['for']('editingDowncast')['add'](_0x3cb496=>{_0x3cb496['on']('addMarker:suggestion:formatBlock',_0x4b2e32(),{'priority':'high'});}),_0x6095ae['conversion']['for']('editingDowncast')['add'](_0x286c2a=>{_0x286c2a['on']('addMarker:suggestion:attribute',_0x4b2e32({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x6095ae['conversion']['for']('editingDowncast')['add'](_0x4f513c=>{_0x4f513c['on']('removeMarker:suggestion:formatBlock',(_0x2422ef,_0x114df7,_0x297047)=>{const _0x4b8942=_0x297047['mapper']['markerNameToElements'](_0x114df7['markerName']);if(_0x4b8942){for(const _0x537abd of _0x4b8942)_0x537abd['getCustomProperty']('addHighlight')||(_0x297047['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x537abd),_0x297047['writer']['removeAttribute']('data-suggestion',_0x537abd),_0x297047['writer']['removeAttribute']('data-author-id',_0x537abd),_0x297047['mapper']['unbindElementFromMarkerName'](_0x537abd,_0x114df7['markerName']));}},{'priority':'high'});}),_0x6095ae['conversion']['for']('editingDowncast')['add'](_0x5ff2f4=>{_0x5ff2f4['on']('removeMarker:suggestion:attribute',(_0xe33f23,_0x297609,_0x15500d)=>{const _0xa7eea8=_0x15500d['mapper']['markerNameToElements'](_0x297609['markerName']);if(!_0xa7eea8)return;const {id:_0x21f93c}=this['_splitMarkerName'](_0x297609['markerName']),_0x530ced=this['_suggestions']['get'](_0x21f93c),_0x2e4d60=this['_getAttributeKey'](_0x530ced);if(this['_isBlockAttribute'](_0x2e4d60)){for(const _0x4989b9 of _0xa7eea8)_0x4989b9['getCustomProperty']('addHighlight')||(_0x15500d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4989b9),_0x15500d['writer']['removeAttribute']('data-suggestion',_0x4989b9),_0x15500d['writer']['removeAttribute']('data-author-id',_0x4989b9),_0x15500d['mapper']['unbindElementFromMarkerName'](_0x4989b9,_0x297609['markerName']));}},{'priority':'high'});}),_0x6095ae['model']['document']['registerPostFixer'](_0x4f6544=>{let _0x2ede9f=!0x1;const _0x6fe926=Array['from'](_0x6095ae['model']['document']['differ']['getChangedMarkers']()),_0x12357b=new Set();for(const {name:_0x1500e7,data:_0x1cee07}of _0x6fe926){const {group:_0x279c01,type:_0x12d1fe,subType:_0x269d17,id:_0x115ffa}=this['_splitMarkerName'](_0x1500e7);if('suggestion'!==_0x279c01)continue;const _0x2826f7=this['_suggestions']['get'](_0x115ffa);if(null!=_0x1cee07['newRange']){'formatInline'==_0x12d1fe&&(_0x2ede9f=_0x2ede9f||Jt(_0x1cee07['newRange'],_0x1500e7,_0x4f6544,_0x6095ae['model']['schema']));const _0x55e809='attribute'==_0x12d1fe&&this['_isBlockAttribute'](_0x269d17['split']('|')[0x0]);if(_0x1cee07['newRange']['isCollapsed']||'$graveyard'==_0x1cee07['newRange']['root']['rootName']||'formatBlock'==_0x12d1fe&&!Ht(_0x1cee07['newRange'])||_0x55e809&&!Ht(_0x1cee07['newRange'])||'deletion'==_0x12d1fe&&!(!Lt(_0x2743b2=_0x1cee07['newRange'])&&!function(_0x163d48){return _0x163d48['start']['parent']==_0x163d48['end']['nodeBefore']&&_0x163d48['start']['isAtEnd'];}(_0x2743b2)))_0x4f6544['removeMarker'](_0x1500e7),_0x2ede9f=!0x0;else{if(!_0x2826f7||!_0x2826f7['isInContent'])continue;if(_0x1cee07['newRange']&&_0x1cee07['oldRange']&&_0x1cee07['newRange']['isEqual'](_0x1cee07['oldRange']))continue;_0x12357b['add'](_0x2826f7);}}}var _0x2743b2;return _0x12357b['size']>0x0&&(_0x2ede9f=!!this['_joinWithAdjacentSuggestions'](_0x12357b)||_0x2ede9f),_0x2ede9f;}),_0x6095ae['model']['document']['registerPostFixer'](_0x5589fc=>{let _0x382c1f=!0x1;for(const _0x411624 of _0x6095ae['model']['document']['differ']['getChanges']())if('insert'==_0x411624['type'])for(const _0x33258e of this['_suggestions']['values']()){if(_0x33258e['isMultiRange']||!_0x33258e['isInContent'])continue;const _0x2d633c='formatBlock'==_0x33258e['type'],_0x1ce476=this['_getAttributeKey'](_0x33258e),_0x533d86=_0x1ce476&&this['_isBlockAttribute'](_0x1ce476);if(!_0x2d633c&&!_0x533d86)continue;const _0x599c71=_0x33258e['getFirstRange']();if(_0x599c71['start']['parent']!=_0x599c71['end']['parent']&&!_0x599c71['end']['isAtEnd']){const _0x514014=_0x6095ae['model']['createPositionAt'](_0x599c71['start']['nodeAfter'],'end'),_0x4a1dbc=_0x6095ae['model']['createRange'](_0x599c71['start'],_0x514014);_0x5589fc['updateMarker'](_0x33258e['getFirstMarker'](),{'range':_0x4a1dbc}),_0x382c1f=!0x0;}}return _0x382c1f;}),_0x6095ae['model']['document']['registerPostFixer'](_0x196193=>this['_processAttributeChanges'](_0x196193)),_0x6095ae['model']['document']['registerPostFixer'](_0x5c0379=>!_0x5c0379['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5c0379)),_0x6095ae['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x6095ae['model']['document']['on']('change:data',(_0x37cb15,_0x45c4bd)=>{if(!_0x45c4bd['isLocal']||_0x45c4bd['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x576701=_0x6095ae['model']['document']['differ']['getChanges']();if(0x0==_0x576701['length'])return;const _0x4088e3=[],_0x270e71=_0x576701['filter'](_0x28096e=>'attribute'==_0x28096e['type']),_0x5da6b9=_0x576701['filter'](_0x136e25=>'insert'==_0x136e25['type']&&'$text'!=_0x136e25['name']);for(const _0x4ff1d9 of _0x270e71)this['_isRegisteredAttribute'](_0x4ff1d9['attributeKey'])&&_0x4088e3['push']({'key':_0x4ff1d9['attributeKey'],'newValue':_0x4ff1d9['attributeNewValue'],'oldValue':_0x4ff1d9['attributeOldValue'],'range':qt(_0x4ff1d9['range'],_0x6095ae['model'])});for(const _0x332d4d of _0x5da6b9){if('rename'!=_0x332d4d['action']&&'refresh'!=_0x332d4d['action'])continue;const _0x260aaa=zt(_0x332d4d['position']['nodeAfter'],_0x6095ae['model']),_0x4ed66b=_0x332d4d['before'];'rename'==_0x332d4d['action']&&_0x4088e3['push']({'key':u,'newValue':_0x332d4d['name'],'oldValue':_0x4ed66b['name'],'range':_0x260aaa});for(const [_0x5a3676,_0x154aad]of _0x4ed66b['attributes']){if(!this['_isRegisteredAttribute'](_0x5a3676))continue;const _0x1cb0c4=_0x332d4d['attributes']['get'](_0x5a3676);_0x154aad!==_0x1cb0c4&&_0x4088e3['push']({'key':_0x5a3676,'newValue':_0x1cb0c4,'oldValue':_0x154aad,'range':_0x260aaa});}for(const [_0x1311bf,_0x4df6bc]of _0x332d4d['attributes'])this['_isRegisteredAttribute'](_0x1311bf)&&(_0x4ed66b['attributes']['has'](_0x1311bf)||_0x4088e3['push']({'key':_0x1311bf,'newValue':_0x4df6bc,'oldValue':null,'range':_0x260aaa}));}0x0!=_0x4088e3['length']&&_0x6095ae['model']['enqueueChange'](_0x45c4bd,_0x4b8e29=>{const _0x5c6600=_0xf1d1da();for(const {range:_0xfa2434,key:_0x29ae5c,oldValue:_0x2582cb,newValue:_0x3925e7}of _0x4088e3)this['markAttributeChange'](_0xfa2434,_0x29ae5c,_0x2582cb,_0x3925e7,{'groupId':_0x5c6600});this['_reduceExistingSuggestions'](_0x4b8e29,_0x4088e3);});},{'priority':'lowest'}),_0x6095ae['model']['markers']['on']('update:suggestion',(_0x59bc7c,_0x280d17,_0x3399d0)=>{if(null==_0x3399d0){const {id:_0x18f125}=this['_splitMarkerName'](_0x280d17['name']),_0x4c174b=this['_suggestions']['get'](_0x18f125);_0x4c174b&&_0x4c174b['addMarkerName'](_0x280d17['name']);}}),_0x6095ae['model']['document']['on']('change:data',()=>{const _0x254e8b=Array['from'](_0x6095ae['model']['document']['differ']['getChangedMarkers']())['filter'](_0x295561=>'suggestion'===this['_splitMarkerName'](_0x295561['name'])['group']);if(0x0===_0x254e8b['length'])return;_0x254e8b['sort']((_0x89e60e,_0x3105fd)=>{const _0x30d807=_0x89e60e['data']['oldRange'],_0x41644b=_0x3105fd['data']['oldRange'];return null===_0x30d807&&null===_0x41644b?0x0:null===_0x30d807&&null!==_0x41644b?-0x1:null!==_0x30d807&&null===_0x41644b?0x1:_0x30d807['start']['isBefore'](_0x41644b['start'])?-0x1:0x1;});const _0x40d554=new Set(),_0x2bd1a2=new Set();for(const {name:_0x4d9eaa,data:_0x499666}of _0x254e8b){const {id:_0x42dce9}=this['_splitMarkerName'](_0x4d9eaa);if(null===_0x499666['oldRange']){const _0x47ee71=this['_handleNewSuggestionMarker'](_0x4d9eaa);_0x2bd1a2['add'](_0x47ee71);}else{const _0x5f07a4=this['_suggestions']['get'](_0x42dce9);null!==_0x499666['newRange']||_0x5f07a4['isInContent']?(_0x40d554['add'](_0x5f07a4['head']),_0x2bd1a2['add'](_0x5f07a4)):this['_removeSuggestion'](_0x5f07a4);}}_0x2bd1a2['size']>0x0&&this['_refreshSuggestionsChain'](_0x2bd1a2);for(const _0x408eaf of _0x40d554)this['fire']('suggestionChanged',_0x408eaf);}),_0x6095ae['model']['on']('applyOperation',(_0x212974,_0x11c783)=>{const _0x5838e5=_0x11c783[0x0];if(!this['_suggestions']['size'])return;if(!_0x5838e5['isDocumentOperation'])return;if(_0x5838e5['batch']['isUndo']||!_0x5838e5['batch']['isLocal'])return;let _0x2bd187,_0x3c1de2;switch(_0x5838e5['type']){case'insert':_0x2bd187=_0x6095ae['model']['createPositionAt'](_0x5838e5['position']),_0x3c1de2=_0x2bd187['getShiftedBy'](_0x5838e5['howMany']);break;case'split':_0x2bd187=_0x6095ae['model']['createPositionAt'](_0x5838e5['splitPosition']),_0x3c1de2=_0x6095ae['model']['createPositionAt'](_0x5838e5['moveTargetPosition']);break;case'move':_0x2bd187=_0x6095ae['model']['createPositionAt'](_0x5838e5['targetPosition']),_0x3c1de2=_0x2bd187['getShiftedBy'](_0x5838e5['howMany']);break;default:return;}const _0x4a153f=_0x6095ae['model']['createRange'](_0x2bd187,_0x3c1de2);_0x6095ae['model']['change'](()=>{for(const {suggestion:_0x1aa1ca,meta:_0x444a05}of this['_findSuggestions'](_0x4a153f)){if(_0x1aa1ca['isMultiRange'])continue;if('formatInline'==_0x1aa1ca['type'])continue;const _0x31ee6e=this['_getAttributeKey'](_0x1aa1ca);if(_0x31ee6e&&this['_isBlockAttribute'](_0x31ee6e)&&'split'!=_0x5838e5['type'])continue;const _0x1dee74=_0x1aa1ca['data']&&_0x1aa1ca['data']['multipleBlocks'];('formatBlock'!=_0x1aa1ca['type']||'split'==_0x5838e5['type']&&!_0x1dee74)&&(_0x444a05['containsRangeInObject']||'insertion'==_0x1aa1ca['type']&&_0x444a05['isOwn']||_0x1aa1ca['getFirstRange']()['containsRange'](_0x4a153f)&&this['_breakSuggestionMarker'](_0x1aa1ca,_0x2bd187,_0x3c1de2));}});},{'priority':'lowest'}),_0x6095ae['model']['on']('deleteContent',(_0x1ca196,_0x129f8c)=>{const _0x5ae466=_0x129f8c[0x0],_0x1d8951=_0x129f8c[0x1];if(_0x1d8951&&_0x1d8951['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5ae466['isCollapsed'])return;const _0x472be6=_0x6095ae['model']['schema'],{start:_0x582134,end:_0x185f4d}=_0x5ae466['getFirstRange'](),_0x411bb7=_0x582134['nodeAfter']&&_0x472be6['isLimit'](_0x582134['nodeAfter'])?null:_0x472be6['getNearestSelectionRange'](_0x582134,'forward'),_0x4834ab=_0x185f4d['nodeBefore']&&_0x472be6['isLimit'](_0x185f4d['nodeBefore'])?null:_0x472be6['getNearestSelectionRange'](_0x185f4d,'backward'),_0x1f02c2=_0x6095ae['model']['createRange'](_0x411bb7?_0x411bb7['start']:_0x582134,_0x4834ab?_0x4834ab['end']:_0x185f4d);_0x6095ae['model']['change'](_0x1b2efb=>{this['markDeletion'](_0x1f02c2);const _0xce7758=_0x6095ae['model']['schema']['getNearestSelectionRange'](_0x1f02c2['start']);_0x5ae466['is']('documentSelection')?_0x1b2efb['setSelection'](_0xce7758):_0x5ae466['setTo'](_0xce7758);}),_0x1ca196['stop']();},{'priority':_0x5bb012['normal']+0xa}),_0x6095ae['model']['on']('insertContent',(_0x102ddd,_0x359023)=>{const _0x15294e=_0x359023[_0x359023['length']-0x1];_0x15294e&&_0x15294e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x6095ae['model']['change'](()=>{let _0x53fe8b=_0x6095ae['model']['insertContent'](_0x359023[0x0],_0x359023[0x1],_0x359023[0x2],{'forceDefaultExecution':!0x0});if(!_0x53fe8b)return;_0x102ddd['return']=_0x53fe8b['clone']();const _0xf68968=_0x53fe8b['end']['nodeBefore'],_0x44e927=_0x6095ae['model']['schema'];_0xf68968&&_0x44e927['isBlock'](_0xf68968)&&!_0x44e927['isObject'](_0xf68968)&&(_0x53fe8b=_0x6095ae['model']['createRange'](_0x53fe8b['start'],_0x6095ae['model']['createPositionAt'](_0xf68968,'end'))),this['markInsertion'](_0x53fe8b);}),_0x102ddd['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x45986c=new O(_0x6095ae,this['_suggestions']);_0x6095ae['commands']['add']('acceptSuggestion',_0x45986c),this['enableCommand']('acceptSuggestion');const _0x4ffcdb=new R(_0x6095ae,this['_suggestions']);_0x6095ae['commands']['add']('discardSuggestion',_0x4ffcdb),this['enableCommand']('discardSuggestion'),_0x6095ae['commands']['add']('acceptAllSuggestions',new x(_0x6095ae,_0x45986c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x6095ae['commands']['add']('discardAllSuggestions',new x(_0x6095ae,_0x4ffcdb,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x6095ae['commands']['add']('acceptSelectedSuggestions',new E(_0x6095ae,_0x45986c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x6095ae['commands']['add']('discardSelectedSuggestions',new E(_0x6095ae,_0x4ffcdb,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3efaba=_0x6095ae['plugins']['get']('CommentsRepository');this['listenTo'](_0x3efaba,'addComment',(_0x210f01,{threadId:_0x23af3a})=>{const _0x357dcb=this['_suggestions']['get'](_0x23af3a);_0x357dcb&&_0x357dcb['commentThread']&&0x1===_0x357dcb['commentThread']['length']&&this['_updateSuggestionData'](_0x23af3a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3efaba,'removeComment',(_0x48075e,{threadId:_0x2a7737})=>{const _0x70754a=this['_suggestions']['get'](_0x2a7737);_0x70754a&&_0x70754a['commentThread']&&!_0x70754a['commentThread']['length']&&this['_updateSuggestionData'](_0x2a7737,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xdd0b10){const _0x485ae5=_0x43f50e([0x61,0x70,0x75,0x4e,0x30,0x58,0x74,0x33,0x7a,0x4d,0x44,0x63,0x38,0x42,0x62,0x35,0x45,0x52,0x32,0x5a,0x48,0x36,0x31,0x6a,0x73,0x6d,0x67,0x6c,0x79,0x4f,0x43,0x72,0x53,0x46,0x64,0x69,0x6e,0x49,0x4a,0x78,0x47,0x66,0x56,0x55,0x77,0x59,0x76,0x34,0x4b,0x6b,0x71,0x51,0x50,0x6f,0x57,0x68,0x54,0x4c,0x39,0x37,0x41,0x65]),_0x49f949=0x5cab1adf,_0x493499=0x5cac7e9f^_0x49f949,_0x235259=window[_0x43f50e([0x44,0x61,0x74,0x65])][_0x43f50e([0x6e,0x6f,0x77])](),_0x388fb7=_0xdd0b10[_0x43f50e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x203849=new window[(_0x43f50e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38e089=>{_0x388fb7[_0x43f50e([0x6f,0x6e,0x63,0x65])](_0x43f50e([0x72,0x65,0x61,0x64,0x79]),_0x38e089);}),_0x86ef0d={[_0x43f50e([0x6b,0x74,0x79])]:_0x43f50e([0x45,0x43]),[_0x43f50e([0x75,0x73,0x65])]:_0x43f50e([0x73,0x69,0x67]),[_0x43f50e([0x63,0x72,0x76])]:_0x43f50e([0x50,0x2d,0x32,0x35,0x36]),[_0x43f50e([0x78])]:_0x43f50e([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]),[_0x43f50e([0x79])]:_0x43f50e([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]),[_0x43f50e([0x61,0x6c,0x67])]:_0x43f50e([0x45,0x53,0x32,0x35,0x36])},_0x1db57a=_0x388fb7[_0x43f50e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x43f50e([0x67,0x65,0x74])](_0x43f50e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x270ddc(){let _0x2e5608,_0x2d3997=null,_0x2768a4=null;try{if(_0x1db57a==_0x43f50e([0x47,0x50,0x4c]))return _0x43f50e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2e5608=_0x824216(),!_0x2e5608)return _0x43f50e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2e5608[_0x43f50e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2768a4=_0x5ceff8(_0x2e5608[_0x43f50e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2e5608[_0x43f50e([0x6a,0x74,0x69])])),await _0x4b11a3()?_0x29eb10()?_0x34713f()?_0x43f50e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1a57ab()?(_0x2e5608[_0x43f50e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43f50e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2d3997=_0x3004aa(_0x43f50e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2e5608[_0x43f50e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43f50e([0x74,0x72,0x69,0x61,0x6c])&&(_0x2d3997=_0x3004aa(_0x43f50e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x543328()):_0x43f50e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x43f50e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x43f50e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x210452){return _0x43f50e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x34713f(){const _0xe28923=[_0x43f50e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x43f50e([0x74,0x72,0x69,0x61,0x6c])][_0x43f50e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e5608[_0x43f50e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x235259/0x3e8:0xe10*_0x493499;return _0x2e5608[_0x43f50e([0x65,0x78,0x70])]<_0xe28923;}function _0x29eb10(){const _0x29e6ac=_0x2e5608[_0x43f50e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x29e6ac)return!0x1;if(_0x29e6ac[_0x43f50e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43f50e([0x2a])))return!0x0;if(_0x29e6ac[_0x43f50e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43f50e([0x54,0x43])))return!0x0;if(_0x29e6ac[_0x43f50e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43f50e([0x52,0x54,0x43]))){if(_0x49ba29())return!0x0;if(_0x5223a6()||_0xb1da33())return!0x0;}return!0x1;}function _0x1a57ab(){const _0x2ccb54=_0x2e5608[_0x43f50e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ccb54||0x0==_0x2ccb54[_0x43f50e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2f3089}=new URL(window[_0x43f50e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2ccb54[_0x43f50e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f3089))return!0x0;const _0x2a87b2=_0x2f3089[_0x43f50e([0x73,0x70,0x6c,0x69,0x74])](_0x43f50e([0x2e]));return _0x2ccb54[_0x43f50e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6562fd=>_0x6562fd[_0x43f50e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43f50e([0x2a])))[_0x43f50e([0x6d,0x61,0x70])](_0x6268be=>_0x6268be[_0x43f50e([0x73,0x70,0x6c,0x69,0x74])](_0x43f50e([0x2e])))[_0x43f50e([0x73,0x6f,0x6d,0x65])](_0x4d3014=>_0x2a87b2[_0x43f50e([0x65,0x76,0x65,0x72,0x79])]((_0x2b2c6b,_0x21880a)=>_0x4d3014[_0x21880a]===_0x2b2c6b||_0x4d3014[_0x21880a]===_0x43f50e([0x2a])));}function _0x543328(){return _0x2d3997&&_0x2768a4?new window[(_0x43f50e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d9b79,_0x2c5008)=>{_0x2d3997[_0x43f50e([0x74,0x68,0x65,0x6e])](_0x2d9b79,_0x2c5008),_0x2768a4[_0x43f50e([0x74,0x68,0x65,0x6e])](_0x1b2216=>{_0x1b2216!=_0x43f50e([0x56,0x61,0x6c,0x69,0x64])&&_0x2d9b79(_0x1b2216);},_0x2c5008);}):_0x2d3997||_0x2768a4||_0x43f50e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5ceff8(_0x590edf,_0x1a8995){return new window[(_0x43f50e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dde20=>{if(_0x6f2628())return _0x3dde20(_0x43f50e([0x56,0x61,0x6c,0x69,0x64]));_0x2f1753(),_0x388fb7[_0x43f50e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x43f50e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd205c4=!0x1;const _0x1c8c3a=_0xf1d1da();function _0x36cabb(_0x57b6e5){return!!_0x57b6e5&&(typeof _0x57b6e5===_0x43f50e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x57b6e5===_0x43f50e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x57b6e5[_0x43f50e([0x74,0x68,0x65,0x6e])]===_0x43f50e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x57b6e5[_0x43f50e([0x63,0x61,0x74,0x63,0x68])]===_0x43f50e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x51dc41(_0x441222){_0x2d51b2(_0x441222)[_0x43f50e([0x74,0x68,0x65,0x6e])](_0x1bb969=>{if(!_0x1bb969||_0x1bb969[_0x43f50e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x43f50e([0x6f,0x6b]))return _0x43f50e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x57eb94(_0x3e3879(_0x1c8c3a+_0x1a8995))!=_0x1bb969[_0x43f50e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x43f50e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x43f50e([0x56,0x61,0x6c,0x69,0x64]);})[_0x43f50e([0x74,0x68,0x65,0x6e])](_0x1de6fe=>(_0x2d55c9(),_0x1de6fe),()=>{const _0x2975f2=_0x174b41();return null==_0x2975f2?(_0x2d55c9(),_0x43f50e([0x56,0x61,0x6c,0x69,0x64])):_0x43f50e(_0x235259-_0x2975f2>(0x78a79edf^_0x49f949)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x43f50e([0x74,0x68,0x65,0x6e])](_0x3dde20)[_0x43f50e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3dde20(_0x43f50e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x301c37=0x5c9df45f^_0x49f949;function _0x2d55c9(){const _0x164aee=_0x43f50e([0x6c,0x6c,0x63,0x74,0x2d])+_0x57eb94(_0x3e3879(_0x590edf)),_0x49ab94=_0x1cab47(_0x57eb94(window[_0x43f50e([0x4d,0x61,0x74,0x68])][_0x43f50e([0x63,0x65,0x69,0x6c])](_0x235259/_0x301c37)));window[_0x43f50e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43f50e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x164aee,_0x49ab94);}function _0x174b41(){const _0x546ca3=_0x43f50e([0x6c,0x6c,0x63,0x74,0x2d])+_0x57eb94(_0x3e3879(_0x590edf)),_0x1398a5=window[_0x43f50e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43f50e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x546ca3);return _0x1398a5?window[_0x43f50e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cab47(_0x1398a5),0x10)*_0x301c37:null;}function _0x2d51b2(_0x377132){return new window[(_0x43f50e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e293a,_0x316f79)=>{_0x377132[_0x43f50e([0x74,0x68,0x65,0x6e])](_0x5e293a,_0x316f79),window[_0x43f50e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x316f79,0x5caace1f^_0x49f949);});}}_0x388fb7[_0x43f50e([0x6f,0x6e])](_0x43f50e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51be14,_0x437adc)=>{if(_0x437adc[0x0]!=_0x590edf)return _0x3dde20(_0x43f50e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x437adc[0x1]={..._0x437adc[0x1],[_0x43f50e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1c8c3a};},{[_0x43f50e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43f50e([0x68,0x69,0x67,0x68])}),_0x388fb7[_0x43f50e([0x6f,0x6e])](_0x43f50e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x283198=>{_0x36cabb(_0x283198[_0x43f50e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd205c4=!0x0,_0x51dc41(_0x283198[_0x43f50e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x43f50e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43f50e([0x6c,0x6f,0x77])}),_0x203849[_0x43f50e([0x74,0x68,0x65,0x6e])](()=>{_0xd205c4||_0x3dde20(_0x43f50e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x6f2628(){return _0x388fb7[_0x43f50e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43f50e([0x76,0x69,0x65,0x77])][_0x43f50e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x43f50e([0x61,0x75,0x74,0x6f]);}function _0x2f1753(){_0x388fb7[_0x43f50e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43f50e([0x76,0x69,0x65,0x77])][_0x43f50e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x43f50e([0x61,0x75,0x74,0x6f]);}}function _0x3004aa(_0x580d81){const _0x5ea525=[new window[(_0x43f50e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cbe24=>setTimeout(_0x3cbe24,0x5ca22413^_0x49f949)),_0x203849[_0x43f50e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x43f50e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x454de7=>{let _0x5d8d3e=0x0;_0x388fb7[_0x43f50e([0x6d,0x6f,0x64,0x65,0x6c])][_0x43f50e([0x6f,0x6e])](_0x43f50e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5ea2eb,_0x238ecf)=>{_0x238ecf[0x0][_0x43f50e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5d8d3e++,_0x5d8d3e==(0x5cab1b27^_0x49f949)&&(_0x454de7(),_0x5ea2eb[_0x43f50e([0x6f,0x66,0x66])]());});}))];return window[_0x43f50e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x43f50e([0x72,0x61,0x63,0x65])](_0x5ea525)[_0x43f50e([0x74,0x68,0x65,0x6e])](()=>_0x580d81);}async function _0x437736(){await _0x203849,_0x388fb7[_0x43f50e([0x6d,0x6f,0x64,0x65,0x6c])][_0x43f50e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x8f41e7,_0x388fb7[_0x43f50e([0x6d,0x6f,0x64,0x65,0x6c])][_0x43f50e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x8f41e7,_0x388fb7[_0x43f50e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x43f50e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x49ba29(){return _0x4c2299(_0x43f50e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1d7250(_0x43f50e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x43f50e([0x73,0x74,0x61,0x74,0x65])]==_0x43f50e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5223a6(){return _0x4c2299(_0x43f50e([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 _0xb1da33(){return _0x4c2299(_0x43f50e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4d37da(_0x25b727){const _0x41b5ea=_0x4f263a();_0x388fb7[_0x41b5ea]=_0x43f50e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x25b727,_0x25b727!=_0x43f50e([0x56,0x61,0x6c,0x69,0x64])&&_0x437736();}function _0x4f263a(){const _0x232996=window[_0x43f50e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x43f50e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x43f50e([0x6e,0x6f,0x77])]())[_0x43f50e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x43f50e([0x2e]),'');let _0xde7f93=_0x43f50e([0x61]);for(let _0x231d52=0x0;_0x231d52<_0x232996[_0x43f50e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x231d52+=0x2){let _0x42e55b=window[_0x43f50e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x232996[_0x43f50e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x231d52,_0x231d52+0x2));_0x42e55b>=_0x485ae5[_0x43f50e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x42e55b-=_0x485ae5[_0x43f50e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xde7f93+=_0x485ae5[_0x42e55b];}return _0xde7f93;}function _0x824216(){const _0x591dbd=_0x1db57a[_0x43f50e([0x73,0x70,0x6c,0x69,0x74])](_0x43f50e([0x2e]));if(0x3!=_0x591dbd[_0x43f50e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5a7ee1(_0x591dbd[0x1]);function _0x5a7ee1(_0x2765b2){const _0x34fc8e=_0x267a6f(_0x2765b2);return _0x34fc8e&&_0xfa0cc2()?_0x34fc8e:null;function _0xfa0cc2(){const _0x2b1dcb=_0x34fc8e[_0x43f50e([0x6a,0x74,0x69])],_0x46c6cb=window[_0x43f50e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b1dcb[_0x43f50e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b1dcb[_0x43f50e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f0a55={..._0x34fc8e,[_0x43f50e([0x6a,0x74,0x69])]:_0x2b1dcb[_0x43f50e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b1dcb[_0x43f50e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f0a55[_0x43f50e([0x76,0x63])],_0x3e3879(_0x4f0a55)==_0x46c6cb;}}}async function _0x4b11a3(){let _0x594ab7=!0x0;try{const _0x3aa485=_0x1db57a[_0x43f50e([0x73,0x70,0x6c,0x69,0x74])](_0x43f50e([0x2e])),[_0x254df2,_0x2cdb17,_0xbe4a96]=_0x3aa485;return _0x498e18(_0x254df2),await _0x2b0aff(_0x254df2,_0x2cdb17,_0xbe4a96),_0x594ab7;}catch(_0x2ef2e8){return!0x1;}function _0x498e18(_0x2e31b1){const _0x34ca75=_0x267a6f(_0x2e31b1);_0x34ca75&&_0x34ca75[_0x43f50e([0x61,0x6c,0x67])]==_0x43f50e([0x45,0x53,0x32,0x35,0x36])||(_0x594ab7=!0x1);}async function _0x2b0aff(_0x5905be,_0x50851e,_0x1d6b5e){const _0x36a3ab=window[_0x43f50e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x43f50e([0x66,0x72,0x6f,0x6d])](_0xc0b2af(_0x1d6b5e),_0x4b346b=>_0x4b346b[_0x43f50e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x408b5f=new window[(_0x43f50e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x43f50e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5905be+_0x43f50e([0x2e])+_0x50851e),_0x53c984=window[_0x43f50e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x43f50e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x53c984)return;const _0x5e045a=await _0x53c984[_0x43f50e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x43f50e([0x6a,0x77,0x6b]),_0x86ef0d,{[_0x43f50e([0x6e,0x61,0x6d,0x65])]:_0x43f50e([0x45,0x43,0x44,0x53,0x41]),[_0x43f50e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x43f50e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x43f50e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x53c984[_0x43f50e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x43f50e([0x6e,0x61,0x6d,0x65])]:_0x43f50e([0x45,0x43,0x44,0x53,0x41]),[_0x43f50e([0x68,0x61,0x73,0x68])]:{[_0x43f50e([0x6e,0x61,0x6d,0x65])]:_0x43f50e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5e045a,_0x36a3ab,_0x408b5f)||(_0x594ab7=!0x1);}}function _0x267a6f(_0x1a1cae){return _0x1a1cae[_0x43f50e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x43f50e([0x65,0x79]))?JSON[_0x43f50e([0x70,0x61,0x72,0x73,0x65])](_0xc0b2af(_0x1a1cae)):null;}function _0xc0b2af(_0x4668e8){return window[_0x43f50e([0x61,0x74,0x6f,0x62])](_0x4668e8[_0x43f50e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x43f50e([0x2b]))[_0x43f50e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x43f50e([0x2f])));}function _0x3e3879(_0x1bb6ae){let _0x5419df=0x1505;function _0x3636a2(_0x56c5e7){for(let _0x4da4ec=0x0;_0x4da4ec<_0x56c5e7[_0x43f50e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4da4ec++){const _0x1f2001=_0x56c5e7[_0x43f50e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4da4ec);_0x5419df=(_0x5419df<<0x5)+_0x5419df+_0x1f2001,_0x5419df&=_0x5419df;}}function _0x20fd44(_0x3a1a99){Array[_0x43f50e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a1a99)?_0x3a1a99[_0x43f50e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x20fd44):_0x3a1a99&&typeof _0x3a1a99==_0x43f50e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x43f50e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a1a99)[_0x43f50e([0x73,0x6f,0x72,0x74])]()[_0x43f50e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x17f5cc,_0x33b93a])=>{_0x3636a2(_0x17f5cc),_0x20fd44(_0x33b93a);}):_0x3636a2(window[_0x43f50e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a1a99));}return _0x20fd44(_0x1bb6ae),_0x5419df>>>0x0;}function _0x57eb94(_0x4c7be9){return _0x4c7be9[_0x43f50e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x43f50e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x43f50e([0x30]));}function _0x1cab47(_0x51d799){return _0x51d799[_0x43f50e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x43f50e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x43f50e([0x6a,0x6f,0x69,0x6e])]('');}function _0x4c2299(_0x1b3472){return _0x388fb7[_0x43f50e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x43f50e([0x68,0x61,0x73])](_0x1b3472);}function _0x1d7250(_0x2c5511){return _0x388fb7[_0x43f50e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x43f50e([0x67,0x65,0x74])](_0x2c5511);}function _0x8f41e7(){}function _0x43f50e(_0x52bd22){return _0x52bd22['map'](_0x1e7b25=>String['fromCharCode'](_0x1e7b25))['join']('');}_0x4d37da(await _0x270ddc());}(this);}set['adapter'](_0x18a56c){if(this['_adapter'])throw new _0x5240f6('track-changes-adapter-already-set',this);this['_adapter']=_0x18a56c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3009d9=!0x1,toJSON:_0x57e394=!0x1}={}){const _0x4b72c9=[];for(const _0x253efa of this['_suggestions']['values']())_0x3009d9&&!_0x253efa['isInContent']||_0x4b72c9['push'](_0x253efa);return _0x57e394?_0x4b72c9['map'](_0x477860=>_0x477860['toJSON']()):_0x4b72c9;}['getSuggestion'](_0x1d447c){const _0x2ad9ee=this['_suggestions']['get'](_0x1d447c);if(!_0x2ad9ee)throw new _0x5240f6('track-changes-suggestion-not-found',this);return _0x2ad9ee;}['hasSuggestion'](_0x568a92){return this['_suggestions']['has'](_0x568a92);}['addSuggestionData'](_0x5aad54){const {authorId:_0x3e54f1,id:_0x215ad7,attributes:_0x80c68d}=_0x5aad54,[_0x1544bf,_0x483441]=_0x5aad54['type']['split'](':'),_0x3c8f7c=this['_suggestions']['get'](_0x215ad7)||this['_createSuggestion'](_0x1544bf,_0x483441,_0x215ad7,_0x3e54f1,_0x80c68d);if(this['_addThreadToSuggestion'](_0x3c8f7c),this['_checkSuggestionCorrectness'](_0x3c8f7c,_0x1544bf,_0x483441||null,_0x3e54f1),_0x3c8f7c['createdAt']=_0x5aad54['createdAt'],_0x3c8f7c['_isDataLoaded']=!0x0,_0x80c68d&&_0x80c68d['@external']){const _0xf8053a=_0x80c68d['@external'],_0x74b9c3=this['_getExternalAuthor'](_0xf8053a['authorName']);_0x3c8f7c['authoredAt']=_0xf8053a['createdAt'],_0x3c8f7c['author']=_0x74b9c3,_0x3c8f7c['isExternal']=!0x0;}else _0x3c8f7c['authoredAt']=_0x5aad54['createdAt'];switch(_0x5aad54['data']&&(_0x3c8f7c['data']=_0x5aad54['data']),_0x5aad54['attributes']&&(_0x3c8f7c['attributes']=_0x5aad54['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3c8f7c['_saved']=!0x0),this['_suggestionState']['get'](_0x3c8f7c)){case'notReady':this['_suggestionState']['set'](_0x3c8f7c,'dataReady');break;case'markerReady':_0x3c8f7c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3c8f7c])),this['_refreshSuggestionsChain'](new Set([_0x3c8f7c])),this['_suggestionState']['set'](_0x3c8f7c,'ready'),this['fire']('suggestionLoaded',_0x3c8f7c)):this['_suggestionState']['set'](_0x3c8f7c,'removed');}return _0x3c8f7c;}['acceptSuggestion'](_0x19ad09){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x39deb4 of _0x19ad09['getAllAdjacentSuggestions']())_0x39deb4['accept']();});});}['discardSuggestion'](_0x52b9f5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x35a1bf of _0x52b9f5['getAllAdjacentSuggestions']())_0x35a1bf['discard']();});});}['enableCommand'](_0x2d0ad1,_0x437998){const _0x5714ae=this['editor']['commands']['get'](_0x2d0ad1);if(!_0x5714ae)throw new _0x5240f6('track-changes-command-not-found',this,{'commandName':_0x2d0ad1});if(this['_enabledCommands']['has'](_0x5714ae))throw new _0x5240f6('track-changes-enable-command-twice',this,{'commandName':_0x2d0ad1});this['_enabledCommands']['add'](_0x5714ae),_0x437998&&_0x5714ae['on']('execute',(_0x6d5723,_0x385024)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x385024['length']>0x0&&_0x385024[_0x385024['length']-0x1]&&_0x385024[_0x385024['length']-0x1]['forceDefaultExecution']?_0x385024['pop']():(_0x6d5723['return']=_0x437998((..._0x55e762)=>_0x5714ae['execute'](..._0x55e762,{'forceDefaultExecution':!0x0}),..._0x385024),_0x6d5723['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4293c0){let _0x461126,_0x647ef;const _0x139879=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x461126=_0x4293c0();}catch(_0x1439c3){_0x647ef=_0x1439c3;}return _0x139879||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x647ef&&_0x5240f6['rethrowUnexpectedError'](_0x647ef,this),_0x461126;}['markInsertion'](_0x4ecdd1,_0x3a877c=null,_0x8df20={}){if(_0x4ecdd1['isCollapsed'])return null;const _0x235e3a=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x52775f,meta:_0x4915cc}of this['_findSuggestions'](_0x4ecdd1,'insertion'))if(_0x4915cc['isOwn']){if(!_0x4915cc['isNextTo']){if(_0x4915cc['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x52775f,_0x8df20))continue;return _0x52775f;}if(Xt(_0x52775f,_0x8df20))return _0x52775f;this['_breakSuggestionMarker'](_0x52775f,_0x4ecdd1['start'],_0x4ecdd1['end']);break;}if(_0x3a877c==_0x52775f['subType']&&Xt(_0x52775f,_0x8df20)){const _0x271179=_0x52775f['getFirstRange']();return _0x271179['start']['isEqual'](_0x4ecdd1['end'])?this['_setSuggestionRange'](_0x52775f,this['_model']['createRange'](_0x4ecdd1['start'],_0x271179['end'])):this['_setSuggestionRange'](_0x52775f,this['_model']['createRange'](_0x271179['start'],_0x4ecdd1['end'])),_0x52775f;}}const _0x26e7ee=_0xf1d1da(),_0x209170=_0x235e3a['id'],_0x146957=_0x3a877c?'insertion:'+_0x3a877c:'insertion',_0x5222b1=this['_setSuggestionData']({'id':_0x26e7ee,'type':_0x146957,'createdAt':new Date(),'authorId':_0x209170,'attributes':_0x8df20});return this['_addSuggestionMarker'](_0x146957,_0x26e7ee,_0x209170,_0x4ecdd1),_0x5222b1;}['markMultiRangeInsertion'](_0x1d4581,_0x2d465e='multi',_0x1629a3={}){const _0xb7e41c=this['editor']['plugins']['get']('Users')['me'],_0x5e33de=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2d465e,'join');for(const _0x497857 of this['getSuggestions']())if(_0x497857['author']['id']==_0xb7e41c['id']&&'insertion'==_0x497857['type']&&_0x497857['subType']==_0x2d465e&&Xt(_0x497857,_0x1629a3)&&(_0x5e33de(_0x497857['getRanges'](),_0x1d4581)||_0x5e33de(_0x1d4581,_0x497857['getRanges']()))){for(const _0x40db7b of _0x1d4581)_0x497857['addRange'](_0x40db7b);return _0x497857;}for(const {suggestion:_0x54643a,meta:_0x58fc96}of this['_findSuggestions'](_0x1d4581,'insertion')){if(!_0x58fc96['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x58fc96['containsRangeInObject'])continue;if(!Xt(_0x54643a,_0x1629a3))continue;let _0x2aa11a=!0x0;for(const _0x1639ad of _0x54643a['getRanges']())for(const _0x2666c6 of _0x1d4581)if(!_0x1639ad['containsRange'](_0x2666c6)){_0x2aa11a=!0x1;break;}if(_0x2aa11a)return _0x54643a;}const _0x322e4f=_0xf1d1da(),_0x428d4e=_0xb7e41c['id'],_0x43ab2a='insertion:'+_0x2d465e,_0x11476b=this['_setSuggestionData']({'id':_0x322e4f,'type':_0x43ab2a,'createdAt':new Date(),'authorId':_0x428d4e,'attributes':_0x1629a3});for(const _0x4e1c2a of _0x1d4581)this['_addSuggestionMarker'](_0x43ab2a,_0x322e4f,_0x428d4e,_0x4e1c2a,o['getMultiRangeId']());return _0x11476b;}['markInlineFormat'](_0x1666f0,_0xe8850e,_0x130db7=null,_0x3b477e={}){if(_0x130db7=_0x130db7||Kt(_0xe8850e),_0x1666f0['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1f308=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x130db7,'accept');return this['forceDefaultExecution'](()=>_0x1f308([_0x1666f0],_0xe8850e,_0x3b477e)),null;}const _0x50c561=this['editor']['plugins']['get']('Users')['me'],_0x2b8755=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5ab6cc,meta:_0x48b678}of this['_findSuggestions'](_0x1666f0,'insertion'))_0x48b678['isOwn']&&!_0x48b678['isInsideObject']&&_0x2b8755['push'](..._0x5ab6cc['getRanges']());}const _0x320004=function(_0x3bbcb6,_0x2ef1b0){const _0x1fc610=[];for(const _0x3b0d0f of _0x2ef1b0){const _0x3de3dc=_0x3bbcb6['getIntersection'](_0x3b0d0f);_0x3de3dc&&_0x1fc610['push'](_0x3de3dc);}return _0x1fc610;}(_0x1666f0,_0x2b8755),_0x3fd737=function(_0xe38573,_0x3e1d6c){const _0x1d9bd3=[_0xe38573];for(const _0x5e5bcb of _0x3e1d6c){let _0x3c78d9=0x0;for(;_0x3c78d9<_0x1d9bd3['length'];){const _0x5accc6=_0x1d9bd3[_0x3c78d9]['getDifference'](_0x5e5bcb);_0x1d9bd3['splice'](_0x3c78d9,0x1,..._0x5accc6),_0x3c78d9+=_0x5accc6['length'];}}return _0x1d9bd3;}(_0x1666f0,_0x2b8755);_0x320004['length']&&this['_model']['change'](()=>{for(const _0x45a7c0 of _0x320004){const _0x32620e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x130db7,'accept');this['forceDefaultExecution'](()=>_0x32620e([_0x45a7c0],_0xe8850e,_0x3b477e));}});for(const _0x28ab10 of _0x3fd737){let _0xd03085=null,_0x334529=_0x28ab10['start'],_0x447c5e=_0x28ab10['end'];for(const {suggestion:_0x3df24a,meta:_0x35cf78}of this['_findSuggestions'](_0x28ab10,'formatInline')){if(!_0x35cf78['isOwn'])continue;if(_0x3df24a['subType']!=_0x130db7)continue;if(!Xt(_0x3df24a,_0x3b477e))continue;const _0x11257d=_0x3df24a['getFirstRange']();if(_0x11257d['containsRange'](_0x28ab10,!0x0))return null;_0x334529=_0x334529['isBefore'](_0x11257d['start'])?_0x334529:_0x11257d['start'],_0x447c5e=_0x447c5e['isAfter'](_0x11257d['end'])?_0x447c5e:_0x11257d['end'],_0xd03085?_0x11257d['start']['isBefore'](_0xd03085['getFirstRange']()['start'])?(_0xd03085['removeMarkers'](),_0xd03085=_0x3df24a):_0x3df24a['removeMarkers']():_0xd03085=_0x3df24a;}const _0x554e6b=this['_model']['createRange'](_0x334529,_0x447c5e);if(_0xd03085)this['_setSuggestionRange'](_0xd03085,_0x554e6b);else{const _0x468865=_0xf1d1da(),_0x33c39c=_0x50c561['id'];this['_setSuggestionData']({'id':_0x468865,'type':'formatInline:'+_0x130db7,'data':_0xe8850e,'createdAt':new Date(),'authorId':_0x33c39c,'attributes':_0x3b477e}),this['_addSuggestionMarker']('formatInline:'+_0x130db7,_0x468865,_0x33c39c,_0x554e6b);}}return null;}['markBlockFormat'](_0x2c521a,_0x18b9e4,_0x2613eb=[],_0x1310ce=null,_0x28cf9d={}){_0x18b9e4['formatGroupId']||(_0x18b9e4['formatGroupId']=_0x18b9e4['commandName']),_0x18b9e4['multipleBlocks']=_0x2c521a['is']('range'),_0x1310ce=_0x1310ce||Kt(_0x18b9e4);const _0x2609d0=_0x2613eb['map'](_0x1a2091=>zt(_0x1a2091,this['_model'])),_0x30d3c0=_0x2c521a['is']('range')?_0x2c521a:zt(_0x2c521a,this['_model']);if('never'===this['_trackFormatChanges']){const _0x23478d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1310ce,'accept');return this['forceDefaultExecution'](()=>_0x23478d([_0x30d3c0],_0x18b9e4,_0x28cf9d)),null;}_0x2609d0['push'](_0x30d3c0);let _0x31ef43=!0x0;for(const _0x4d9d9a of _0x2609d0)if(!this['_rangeIsInLocalUserInsertion'](_0x4d9d9a)){_0x31ef43=!0x1;break;}if(_0x31ef43&&'always'!==this['_trackFormatChanges']){const _0x20d3a7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1310ce,'accept');return this['forceDefaultExecution'](()=>_0x20d3a7([_0x30d3c0],_0x18b9e4,_0x28cf9d)),null;}let _0x492a52=null,_0xe06b5c=_0x30d3c0['start'],_0x26b5ce=_0x30d3c0['end'];for(const {suggestion:_0x5aae6e,meta:_0x10842b}of this['_findSuggestions'](_0x30d3c0,'formatBlock')){if(!_0x10842b['isOwn'])continue;if(_0x10842b['isNextTo']||_0x10842b['containsRangeInObject']||_0x10842b['isInsideObject'])continue;if(_0x5aae6e['data']['formatGroupId']!=_0x18b9e4['formatGroupId'])continue;if(!Xt(_0x5aae6e,_0x28cf9d))continue;const _0x1c08bd=_0x5aae6e['getFirstRange']();if(_0x5aae6e['subType']==_0x1310ce){if(_0x1c08bd['containsRange'](_0x30d3c0,!0x0))return null;_0xe06b5c=_0xe06b5c['isBefore'](_0x1c08bd['start'])?_0xe06b5c:_0x1c08bd['start'],_0x26b5ce=_0x26b5ce['isAfter'](_0x1c08bd['end'])?_0x26b5ce:_0x1c08bd['end'],_0x492a52?_0x1c08bd['start']['isBefore'](_0x492a52['getFirstRange']()['start'])?(_0x492a52['removeMarkers'](),_0x492a52=_0x5aae6e):_0x5aae6e['removeMarkers']():_0x492a52=_0x5aae6e;}else{const _0x19d69d=_0x30d3c0['getIntersection'](_0x1c08bd);this['_cutOutSuggestionMarker'](_0x5aae6e,_0x19d69d);}}const _0x27389b=this['editor']['plugins']['get']('Users')['me'],_0x116216=_0xf1d1da(),_0x440784=_0x27389b['id'];if(_0x492a52)return this['_setSuggestionRange'](_0x492a52,this['_model']['createRange'](_0xe06b5c,_0x26b5ce)),_0x492a52;{const _0x4f906b=this['_setSuggestionData']({'id':_0x116216,'type':'formatBlock:'+_0x1310ce,'data':_0x18b9e4,'createdAt':new Date(),'authorId':_0x440784,'attributes':_0x28cf9d});return this['_addSuggestionMarker']('formatBlock:'+_0x1310ce,_0x116216,_0x440784,this['_model']['createRange'](_0xe06b5c,_0x26b5ce)),_0x4f906b;}}['markMultiRangeBlockFormat'](_0x12680f,_0x2f7ef3,_0x3c7d66=[],_0x11d981=null,_0x1ba9fd={}){_0x2f7ef3['formatGroupId']||(_0x2f7ef3['formatGroupId']=_0x2f7ef3['commandName']);const _0x116c2b=_0x12680f[0x0];_0x2f7ef3['multipleBlocks']=_0x116c2b['is']('range'),_0x11d981=_0x11d981||Kt(_0x2f7ef3);const _0x3b6deb=_0x3c7d66['map'](_0x1614f3=>zt(_0x1614f3,this['_model'])),_0x317c5b=_0x116c2b['is']('range')?_0x12680f:_0x12680f['map'](_0x433488=>zt(_0x433488,this['_model']));if('never'===this['_trackFormatChanges']){const _0x426fa3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11d981,'accept');return this['forceDefaultExecution'](()=>_0x426fa3(_0x317c5b,_0x2f7ef3,_0x1ba9fd)),null;}_0x3b6deb['push'](..._0x317c5b);let _0x52eb01=!0x0;for(const _0x4537f7 of _0x3b6deb)if(!this['_rangeIsInLocalUserInsertion'](_0x4537f7)){_0x52eb01=!0x1;break;}if(_0x52eb01&&'always'!==this['_trackFormatChanges']){const _0x5a191b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11d981,'accept');return this['forceDefaultExecution'](()=>_0x5a191b(_0x317c5b,_0x2f7ef3,_0x1ba9fd)),null;}const _0x5dfb56=this['editor']['plugins']['get']('Users')['me'];for(const _0x4513f4 of this['getSuggestions']()){if(_0x4513f4['author']['id']!=_0x5dfb56['id'])continue;if('formatBlock'!=_0x4513f4['type']||_0x4513f4['data']['formatGroupId']!=_0x2f7ef3['formatGroupId'])continue;if(!Xt(_0x4513f4,_0x1ba9fd))continue;const _0x3895fb=_0x4513f4['subType']==_0x11d981;for(let _0x3014be=0x0;_0x3014be<_0x317c5b['length'];_0x3014be++){const _0xee7090=_0x317c5b[_0x3014be];for(const _0x3d0ce0 of _0x4513f4['getMarkers']()){const _0x48f0f2=_0x3d0ce0['getRange']();if(_0xee7090['isEqual'](_0x48f0f2)){_0x3895fb?(_0x317c5b['splice'](_0x3014be,0x1),_0x3014be--):_0x4513f4['removeMarker'](_0x3d0ce0['name']);break;}}}}if(0x0==_0x317c5b['length'])return null;const _0x114a3a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11d981,'join');for(const _0x50e9b9 of this['getSuggestions']())if(_0x50e9b9['author']['id']==_0x5dfb56['id']&&'formatBlock'==_0x50e9b9['type']&&_0x50e9b9['data']['formatGroupId']==_0x2f7ef3['formatGroupId']&&_0x50e9b9['subType']==_0x11d981&&Xt(_0x50e9b9,_0x1ba9fd)&&(_0x114a3a(_0x50e9b9['getRanges'](),_0x317c5b)||_0x114a3a(_0x317c5b,_0x50e9b9['getRanges']()))){for(const _0x4499e1 of _0x317c5b)_0x50e9b9['addRange'](_0x4499e1);return _0x50e9b9;}const _0x3d6a88=_0xf1d1da(),_0x5a3525=_0x5dfb56['id'],_0x1f12d1='formatBlock:'+_0x11d981,_0x1b6902=this['_setSuggestionData']({'id':_0x3d6a88,'type':_0x1f12d1,'data':_0x2f7ef3,'createdAt':new Date(),'authorId':_0x5a3525,'attributes':_0x1ba9fd});for(const _0x2ac965 of _0x317c5b)this['_addSuggestionMarker'](_0x1f12d1,_0x3d6a88,_0x5a3525,_0x2ac965,o['getMultiRangeId']());return _0x1b6902;}['markDeletion'](_0x1d9fb1,_0x12344b=null,_0x471115={}){if(_0x1d9fb1['isCollapsed'])return null;const _0x40c15f=this['editor']['plugins']['get']('Users')['me'],_0x5e4153=new _0x1ffa61(_0x1d9fb1['start'],_0x1d9fb1['end']);for(const {suggestion:_0x25880d,meta:_0x3bc0dc}of this['_findSuggestions'](_0x5e4153,'insertion'))if(_0x3bc0dc['isOwn']&&!_0x3bc0dc['isNextTo']){if(_0x25880d['isMultiRange']){const _0xb542c9=_0x25880d['getRanges']()['filter'](_0x20b6a6=>'$graveyard'!=_0x20b6a6['root']['rootName']);_0xb542c9['every'](_0x37c3da=>_0x5e4153['containsRange'](_0x37c3da,!0x0))&&_0x25880d['discard']();if(_0xb542c9['some'](_0x24fc7a=>_0x24fc7a['containsRange'](_0x5e4153,!0x0))){const _0x55b2bc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x12344b,'accept');return this['forceDefaultExecution'](()=>_0x55b2bc([_0x5e4153],null,_0x471115)),null;}}else{const _0x44a2f1=_0x5e4153['getIntersection'](_0x25880d['getFirstRange']());null!==_0x44a2f1&&_0x25880d['_onDiscard']([_0x44a2f1],null,_0x471115);}}if(_0x5e4153['detach'](),_0x5e4153['isCollapsed']||'$graveyard'==_0x5e4153['root']['rootName'])return null;let _0x1a731e=null,_0x5cb880=_0x5e4153['start'],_0x6af797=_0x5e4153['end'];const _0x5df735=this['_findSuggestions'](_0x5e4153,'deletion');for(const {suggestion:_0x389eeb,meta:_0x1995f1}of _0x5df735){const _0x93ccab=this['_model']['createRange'](_0x5cb880,_0x6af797);if(_0x1995f1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1995f1['containsRangeInObject']&&!_0x1995f1['isInsideObject'])){if(_0x389eeb['isMultiRange']){if(!Xt(_0x389eeb,_0x471115))continue;let _0x222218=!0x0;for(const _0x24de34 of _0x389eeb['getRanges']()){if(_0x24de34['containsRange'](_0x93ccab,!0x0))return _0x389eeb;_0x93ccab['containsRange'](_0x24de34)||(_0x222218=!0x1);}_0x222218&&_0x389eeb['discard']();}else{const _0x571c56=_0x389eeb['getFirstRange']();if(_0x571c56['containsRange'](_0x93ccab,!0x0))return _0x389eeb;if(!Xt(_0x389eeb,_0x471115)){_0x93ccab['containsRange'](_0x571c56)?_0x389eeb['removeMarkers']():_0x571c56['containsPosition'](_0x5cb880)?_0x5cb880=_0x571c56['end']:_0x571c56['containsPosition'](_0x6af797)&&(_0x6af797=_0x571c56['start']);continue;}_0x5cb880=_0x5cb880['isBefore'](_0x571c56['start'])?_0x5cb880:_0x571c56['start'],_0x6af797=_0x6af797['isAfter'](_0x571c56['end'])?_0x6af797:_0x571c56['end'],_0x471115=Object['assign']({},_0x389eeb['attributes']),_0x1a731e?_0x571c56['start']['isBefore'](_0x1a731e['getFirstRange']()['start'])?(_0x1a731e['removeMarkers'](),_0x1a731e=_0x389eeb):_0x389eeb['removeMarkers']():_0x1a731e=_0x389eeb;}}}if(_0x1a731e)return this['_setSuggestionRange'](_0x1a731e,this['_model']['createRange'](_0x5cb880,_0x6af797)),_0x1a731e;{const _0x539ca8=_0xf1d1da(),_0x2c8ef8=this['_model']['createRange'](_0x5cb880,_0x6af797),_0x10c687=_0x40c15f['id'],_0x2c955f=_0x12344b?'deletion:'+_0x12344b:'deletion',_0x13cc9f=this['_setSuggestionData']({'id':_0x539ca8,'type':_0x2c955f,'createdAt':new Date(),'authorId':_0x10c687,'attributes':_0x471115});return this['_addSuggestionMarker'](_0x2c955f,_0x539ca8,_0x10c687,_0x2c8ef8),_0x13cc9f;}}['markMultiRangeDeletion'](_0x2fe096,_0x4240ec='multi',_0x1a5714={}){const _0x58f0ac=this['editor']['plugins']['get']('Users')['me'],_0xbbadb0=_0x2fe096['map'](_0x1f14ff=>new _0x1ffa61(_0x1f14ff['start'],_0x1f14ff['end'])),_0x452a49=new Set();for(const {suggestion:_0x39b6d6,meta:_0x4b469b}of this['_findSuggestions'](_0xbbadb0,'insertion'))_0x4b469b['isOwn']&&!_0x4b469b['isNextTo']&&_0x452a49['add'](_0x39b6d6);for(const _0x5a6b07 of _0x452a49)if(_0x5a6b07['isMultiRange']){const _0xc15b5a=_0x5a6b07['getRanges']();(!_0x5a6b07['attributes']||!_0x5a6b07['attributes']['skipNestingCheck'])&&(_0xc15b5a['every'](_0x4423aa=>_0xbbadb0['some'](_0x2b0fc2=>_0x2b0fc2['containsRange'](_0x4423aa,!0x0)))&&_0x5a6b07['discard']());if(_0xbbadb0['every'](_0x5cdb37=>_0xc15b5a['some'](_0x24f8cf=>_0x24f8cf['containsRange'](_0x5cdb37,!0x0)))){const _0x3b8037=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4240ec,'accept');return this['forceDefaultExecution'](()=>_0x3b8037(_0x2fe096,null,_0x1a5714)),null;}}else{const _0x2442e1=_0x5a6b07['getFirstRange']();_0xbbadb0['some'](_0x455573=>_0x455573['containsRange'](_0x2442e1,!0x0))&&_0x5a6b07['discard']();if(_0xbbadb0['every'](_0x4b8537=>_0x2442e1['containsRange'](_0x4b8537,!0x0))){const _0x34beb8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4240ec,'accept');return this['forceDefaultExecution'](()=>_0x34beb8(_0xbbadb0,null,_0x1a5714)),null;}}const _0x257c97=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4240ec,'join');let _0x51ea57=null;for(const _0x28a33c of this['getSuggestions']())if(_0x28a33c['author']['id']==_0x58f0ac['id']&&_0x28a33c['isInContent']&&'deletion'==_0x28a33c['type']&&_0x28a33c['subType']==_0x4240ec&&Xt(_0x28a33c,_0x1a5714)&&(_0x257c97(_0x28a33c['getRanges'](),_0xbbadb0)||_0x257c97(_0xbbadb0,_0x28a33c['getRanges']()))){if(_0x51ea57){if(_0x28a33c['commentThread']&&_0x28a33c['commentThread']['length'])continue;for(const _0x2bf364 of _0x28a33c['getRanges']())_0x51ea57['isIntersectingWithRange'](_0x2bf364)||_0x51ea57['addRange'](_0x2bf364);_0x28a33c['removeMarkers']();}else{_0x51ea57=_0x28a33c;for(const _0x55716a of _0xbbadb0)_0x28a33c['isIntersectingWithRange'](_0x55716a)||_0x28a33c['addRange'](_0x55716a);}}if(_0x51ea57)return _0x51ea57;_0x452a49['clear']();for(const {suggestion:_0x116137,meta:_0xfd09b7}of this['_findSuggestions'](_0xbbadb0,'deletion'))_0xfd09b7['isOwn']&&(this['_mergeNestedSuggestions']||!_0xfd09b7['containsRangeInObject']&&!_0xfd09b7['isInsideObject'])&&Xt(_0x116137,_0x1a5714)&&_0x452a49['add'](_0x116137);for(const _0x4b488d of _0x452a49){const _0x2788eb=_0x4b488d['getRanges']();if(!_0x1a5714||!_0x1a5714['skipNestingCheck']){if(_0xbbadb0['every'](_0xec7613=>_0x2788eb['some'](_0x1c4b8d=>_0x1c4b8d['containsRange'](_0xec7613,!0x0))))return _0x4b488d;}(!_0x4b488d['attributes']||!_0x4b488d['attributes']['skipNestingCheck'])&&(_0x2788eb['every'](_0x3bc271=>_0xbbadb0['some'](_0x3243c8=>_0x3243c8['containsRange'](_0x3bc271,!0x0)))&&_0x4b488d['discard']());}const _0x4ffb12=_0xf1d1da(),_0x91d58f=_0x58f0ac['id'],_0x436eb4='deletion:'+_0x4240ec,_0x3e3347=this['_setSuggestionData']({'id':_0x4ffb12,'type':_0x436eb4,'createdAt':new Date(),'authorId':_0x91d58f,'attributes':_0x1a5714});for(const _0x570678 of _0xbbadb0)_0x570678['detach'](),_0x570678['isCollapsed']||'$graveyard'==_0x570678['root']['rootName']||this['_addSuggestionMarker'](_0x436eb4,_0x4ffb12,_0x91d58f,_0x570678,o['getMultiRangeId']());return _0x3e3347;}['markAttributeChange'](_0x3addad,_0x2ff42f,_0x423562,_0x506d42,_0x68765a){if(_0x3addad['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x18fb3c=this['editor']['plugins']['get']('Users')['me']['id'],_0x43d39e=Array['from'](this['_suggestions']['values']())['filter'](_0x40d931=>'attribute'==_0x40d931['type']&&_0x40d931['data']['key']==_0x2ff42f&&_0x40d931['isIntersectingWithRange'](_0x3addad));if('default'===this['_trackFormatChanges']){const _0x4365a0=this['_findSuggestions'](_0x3addad,'insertion')['filter'](({meta:_0x224876})=>_0x224876['isOwn']&&!_0x224876['isInsideObject']&&!_0x224876['isNextTo'])['map'](({suggestion:_0x24b5d8})=>_0x24b5d8);_0x43d39e['unshift'](..._0x4365a0);}const _0x4f7339=new Map([[_0x3addad,_0x423562]]);for(const _0x4293cc of _0x43d39e){const _0x313d3e='attribute'==_0x4293cc['type']?_0x4293cc['data']['oldValue']:void 0x0,_0x26ab2c=_0x4293cc['getFirstRange'](),_0xc7f9e1=Array['from'](_0x4f7339['keys']())['find'](_0x18830c=>_0x18830c['isIntersecting'](_0x26ab2c));if(!_0xc7f9e1)continue;const _0x5cddb1=_0xc7f9e1['getDifference'](_0x26ab2c);this['_isBlockAttribute'](_0x2ff42f)&&'insertion'==_0x4293cc['type']&&0x0!=_0x5cddb1['length']||(_0x4f7339['delete'](_0xc7f9e1),_0x5cddb1['forEach'](_0x5110b5=>{_0x4f7339['set'](_0x5110b5,_0x423562);}),'insertion'!=_0x4293cc['type']&&_0x313d3e!=_0x506d42&&_0x4f7339['set'](_0xc7f9e1['getIntersection'](_0x26ab2c),_0x313d3e));}const _0x1890e8=[];for(const [_0x5bd54f,_0x4d9b38]of _0x4f7339){const _0x2fae6b=_0xf1d1da(),_0x253871={'key':_0x2ff42f,'oldValue':_0x4d9b38,'newValue':_0x506d42};_0x2ff42f['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':_0x2ff42f});const _0x59761c=('attribute:'+(_0x2ff42f+'|'+Kt({'newValue':_0x506d42})))['substring'](0x0,0x3c),_0x2f6f5d=this['_setSuggestionData']({'id':_0x2fae6b,'type':_0x59761c,'data':_0x253871,'createdAt':new Date(),'authorId':_0x18fb3c,'attributes':_0x68765a});_0x1890e8['push'](_0x2f6f5d),this['_addSuggestionMarker'](_0x59761c,_0x2fae6b,_0x18fb3c,_0x5bd54f);}return _0x1890e8;}['enableDefaultAttributesIntegration'](_0x550690){this['enableCommand'](_0x550690,(_0x52573f,..._0x404882)=>{this['_recordAttributeChanges'](()=>{_0x52573f(..._0x404882);});});}['registerBlockAttribute'](_0x1b292f){this['_blockAttributeKeys']['add'](_0x1b292f);}['registerInlineAttribute'](_0x92b12e){this['_inlineAttributeKeys']['add'](_0x92b12e);}['_getAttributeKey'](_0x2fb4ad){return'attribute'==_0x2fb4ad['type']?_0x2fb4ad['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x15ee23,_0x56c077){const _0x171850=_0x15ee23['getFirstMarker']();this['_model']['change'](_0x52192e=>{_0x52192e['updateMarker'](_0x171850,{'range':_0x56c077});});}['_addThreadToSuggestion'](_0x3603e6){const _0x55eaa5=_0x3603e6['id'],_0x4015e9=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x55eaa5)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4015e9,'threadId':_0x55eaa5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2b5329=this['_commentsRepository']['getCommentThread'](_0x55eaa5);_0x2b5329['unbind']('isRemovable'),_0x2b5329['isRemovable']=!0x1,_0x3603e6['commentThread']=_0x2b5329;}['_checkSuggestionCorrectness'](_0x5e2a69,_0x3f8a07,_0x353100,_0x39d00f){if(_0x5e2a69['type']!=_0x3f8a07||_0x5e2a69['subType']!=_0x353100||_0x5e2a69['creator']['id']!=_0x39d00f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5240f6('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xbecb32,_0x5437fd){const _0x5ee246=_0xbecb32['getFirstRange']();if(_0x5437fd['isEqual'](_0x5ee246))_0xbecb32['removeMarkers']();else{if(_0x5ee246['containsRange'](_0x5437fd)){const _0x1b038c=this['_model']['createPositionAt'](_0x5437fd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xbecb32,this['_model']['createRange'](_0x5ee246['start'],_0x1b038c));const _0x443625=_0xf1d1da(),_0x505a44=_0xbecb32['creator']['id'],_0x232949=_0xbecb32['type']+':'+_0xbecb32['subType'];this['_setSuggestionData']({'id':_0x443625,'type':_0x232949,'createdAt':new Date(),'authorId':_0x505a44,'data':_0xbecb32['data'],'attributes':_0xbecb32['attributes']});const _0x4f412b=this['_model']['createPositionAt'](_0x5437fd['end']['parent'],'after'),_0x46932b=this['_model']['createRange'](_0x4f412b,_0x5ee246['end']);this['_addSuggestionMarker'](_0x232949,_0x443625,_0x505a44,_0x46932b);}else{if(_0x5ee246['containsPosition'](_0x5437fd['start'])){const _0x3d5a95=this['_model']['createPositionAt'](_0x5437fd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xbecb32,this['_model']['createRange'](_0x5ee246['start'],_0x3d5a95));}else{const _0x1f4b75=this['_model']['createPositionAt'](_0x5437fd['end']['parent'],'after');this['_setSuggestionRange'](_0xbecb32,this['_model']['createRange'](_0x1f4b75,_0x5ee246['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5363c9){for(const {suggestion:_0xa636aa,meta:_0x31a9a9}of this['_findSuggestions'](_0x5363c9,'insertion')){if(!_0x31a9a9['isOwn'])continue;const _0x14482e=_0xa636aa['getRanges']();for(const _0x323b14 of _0x14482e)if(!_0x5363c9['getDifference'](_0x323b14)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3871b1){const _0x4ec554=this['editor']['plugins']['get']('Users')['getUser'](_0x3871b1);if(!_0x4ec554)throw new _0x5240f6('track-changes-user-not-found',this);return _0x4ec554;}['_getExternalAuthor'](_0x226228){const _0x4c30c4=this['editor']['plugins']['get']('Users'),_0x500a49=_0x583c01('external:'+_0x226228),_0x1433ba=_0x4c30c4['getUser'](_0x500a49);return _0x1433ba||_0x4c30c4['addUser']({'id':_0x500a49,'name':_0x226228});}['_createSuggestion'](_0x1fa0f8,_0x469e34,_0x58ecf4,_0x217716,_0x3682ee){const _0x192833=this['_getAuthorFromId'](_0x217716),_0x50d5b0=this['_suggestionFactory']['buildSuggestion'](_0x1fa0f8,_0x469e34,_0x58ecf4,_0x192833,_0x3682ee,_0x13094a=>{this['_updateSuggestionData'](_0x58ecf4,{'attributes':_0x13094a});const _0xca9844=this['getSuggestion'](_0x58ecf4);this['_joinWithAdjacentSuggestions'](new Set([_0xca9844])),this['_refreshSuggestionsChain'](new Set([_0xca9844]));});return this['listenTo'](_0x50d5b0,'accept',()=>{this['_updateSuggestionData'](_0x58ecf4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x50d5b0,'discard',()=>{this['_updateSuggestionData'](_0x58ecf4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x58ecf4,_0x50d5b0),this['_suggestionState']['set'](_0x50d5b0,'notReady'),_0x50d5b0;}['_splitMarkerName'](_0xacb9a2){const _0xc5fb10=_0xacb9a2['split'](':');return{'group':_0xc5fb10[0x0],'type':_0xc5fb10[0x1],'subType':_0xc5fb10['length']>=0x5?_0xc5fb10[0x2]:null,'id':_0xc5fb10['length']<0x5?_0xc5fb10[0x2]:_0xc5fb10[0x3],'authorId':_0xc5fb10['length']<0x5?_0xc5fb10[0x3]:_0xc5fb10[0x4],'markerCount':0x6==_0xc5fb10['length']?_0xc5fb10[0x5]:null};}['_breakSuggestionMarker'](_0x456d3b,_0x45307b,_0x15015a){const _0x29236d=_0x456d3b['getFirstRange'](),_0x4cbbd8=_0x29236d['start'],_0xed9c2f=_0x29236d['end'];this['_setSuggestionRange'](_0x456d3b,this['_model']['createRange'](_0x4cbbd8,_0x45307b));const _0x972158=_0xf1d1da(),_0x2b3c6c=_0x456d3b['creator']['id'],_0x1dd0b3=_0x456d3b['type']+(_0x456d3b['subType']?':'+_0x456d3b['subType']:'');this['_setSuggestionData']({'id':_0x972158,'type':_0x1dd0b3,'createdAt':new Date(),'authorId':_0x2b3c6c,'originalSuggestionId':_0x456d3b['id'],'attributes':_0x456d3b['attributes'],'data':_0x456d3b['data']});const _0x41f70b=this['_getAttributeKey'](_0x456d3b);('formatBlock'==_0x456d3b['type']||_0x41f70b&&this['_isBlockAttribute'](_0x41f70b))&&(_0x15015a=this['_model']['createPositionBefore'](_0x15015a['parent'])),this['_addSuggestionMarker'](_0x1dd0b3,_0x972158,_0x2b3c6c,this['_model']['createRange'](_0x15015a,_0xed9c2f));}['_findSuggestions'](_0x27d08c,_0x29c3aa=null){const _0xff94d2=[],_0x134bf5=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x27d08c)||(_0x27d08c=[_0x27d08c]);for(const _0x266f00 of this['getSuggestions']()){if(!_0x266f00['isInContent'])continue;if(_0x29c3aa&&_0x266f00['type']!=_0x29c3aa)continue;let _0xf5611a=!0x1;for(const _0x3f0e0d of _0x266f00['getRanges']()){for(const _0x3b7715 of _0x27d08c){const _0x1dca2f=_0x3b7715['start']['isEqual'](_0x3f0e0d['end'])||_0x3b7715['end']['isEqual'](_0x3f0e0d['start']);if(_0x1dca2f||_0x3b7715['getIntersection'](_0x3f0e0d)){const _0xdfafa9=_0x3b7715['containsRange'](_0x3f0e0d)&&Gt(this['_model']['schema'],_0x3f0e0d['start'],_0x3b7715),_0x1be09a=_0x3f0e0d['containsRange'](_0x3b7715)&&Gt(this['_model']['schema'],_0x3b7715['start'],_0x3f0e0d);_0xff94d2['push']({'suggestion':_0x266f00,'meta':{'isOwn':_0x134bf5==_0x266f00['author'],'isNextTo':_0x1dca2f,'isInsideObject':_0xdfafa9,'containsRangeInObject':_0x1be09a}}),_0xf5611a=!0x0;break;}}if(_0xf5611a)break;}}return _0xff94d2;}['_addSuggestionMarker'](_0x350d0e,_0x42d0b9,_0x4337df,_0x425a33,_0x47adb7){this['_model']['change'](_0x31572b=>{let _0x356965='suggestion:'+_0x350d0e+':'+_0x42d0b9+':'+_0x4337df;_0x47adb7&&(_0x356965=_0x356965+':'+_0x47adb7),_0x31572b['addMarker'](_0x356965,{'range':_0x425a33,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x523bbe){const _0x4bbe03=_0x523bbe['previous'],_0x29d480=_0x523bbe['next'];_0x523bbe['previous']=null,_0x523bbe['next']=null,null!=_0x4bbe03&&_0x4bbe03['next']==_0x523bbe&&(_0x4bbe03['next']=_0x29d480),null!=_0x29d480&&_0x29d480['previous']==_0x523bbe&&(_0x29d480['previous']=_0x4bbe03),'ready'==this['_suggestionState']['get'](_0x523bbe)&&(this['_suggestionState']['set'](_0x523bbe,'removed'),this['fire']('suggestionUnloaded',_0x523bbe,_0x4bbe03,_0x29d480));}['_setSuggestionData'](_0x39cd10){const _0x3db4bd=_0x39cd10['id'],_0x205d03=this['addSuggestionData'](_0x39cd10);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x10432e=this['editor']['plugins']['get']('PendingActions'),_0x43b884=_0x205d03['hasComments'],_0x3ef9f0=_0x205d03['subType']?_0x205d03['type']+':'+_0x205d03['subType']:_0x205d03['type'],_0x5f01f5=this['editor']['locale'],_0x1464ac=_0x10432e['add'](c(_0x5f01f5,'PENDING_ACTION_SUGGESTION')),_0x2febb8={'id':_0x3db4bd,'type':_0x3ef9f0,'hasComments':_0x43b884,'data':_0x39cd10['data']||null,'originalSuggestionId':_0x39cd10['originalSuggestionId']||null,'attributes':_0x205d03['attributes']};this['_adapter']['addSuggestion'](_0x2febb8)['then'](_0x106df5=>{_0x205d03['_saved']=!0x0,_0x10432e['remove'](_0x1464ac),_0x106df5&&_0x106df5['createdAt']&&(this['_suggestions']['get'](_0x3db4bd)['createdAt']=_0x106df5['createdAt']);})['catch'](_0x547fb8=>{throw _0x57d13b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x205d03['discard']();}),_0x205d03['stopListening'](),this['_suggestions']['delete'](_0x205d03['id']),this['_suggestionState']['delete'](_0x205d03),_0x547fb8;});}return _0x205d03;}['_isBlockAttribute'](_0x167f23){return this['_blockAttributeKeys']['has'](_0x167f23);}['_updateSuggestionData'](_0x3a61cf,_0xeecdc5){const _0x50192d=this['editor']['plugins']['get']('PendingActions'),_0x2f1d88=this['getSuggestion'](_0x3a61cf);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2f1d88['_saved']){const _0x473069=_0x50192d['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3a61cf,_0xeecdc5)['then'](()=>{_0x50192d['remove'](_0x473069);});}else _0x2f1d88['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3a61cf,_0xeecdc5);});}}['_getSuggestionData'](_0x5e378a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5240f6('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5e378a);}['_handleNewSuggestionMarker'](_0x5cec49){const {id:_0x4feef2,type:_0x8c84f2,subType:_0x3674fc,authorId:_0x16d8ce}=this['_splitMarkerName'](_0x5cec49),_0x41c1a6=this['_suggestions']['get'](_0x4feef2)||this['_createSuggestion'](_0x8c84f2,_0x3674fc,_0x4feef2,_0x16d8ce,{});switch(this['_checkSuggestionCorrectness'](_0x41c1a6,_0x8c84f2,_0x3674fc,_0x16d8ce),this['_suggestionState']['get'](_0x41c1a6)){case'notReady':this['_getSuggestionData'](_0x4feef2)['then'](_0x2abc2f=>{let _0x732e95=Promise['resolve']();_0x2abc2f['hasComments']&&(_0x732e95=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4feef2})),_0x732e95['then'](()=>{this['addSuggestionData'](_0x2abc2f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x41c1a6,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4feef2,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x41c1a6,'ready'),this['fire']('suggestionLoaded',_0x41c1a6);break;case'ready':this['fire']('suggestionChanged',_0x41c1a6);}return _0x41c1a6['addMarkerName'](_0x5cec49),_0x41c1a6;}['_refreshSuggestionsChain'](_0x5a8802){const _0x5b9e8c=Array['from'](_0x5a8802),_0x344bdc=_0x5b9e8c['filter'](_0x1f90ea=>'attribute'==_0x1f90ea['type']);this['_refreshAttributeSuggestionsChain'](_0x344bdc);const _0x3f8a6b=_0x5b9e8c['filter'](_0x46dd1f=>!_0x46dd1f['isMultiRange']&&'attribute'!=_0x46dd1f['type']),_0x107948=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49ea60=>!_0x49ea60['isMultiRange']&&'attribute'!=_0x49ea60['type']),_0x2c140c=_0x107948['filter'](_0x320fd8=>!_0x5a8802['has'](_0x320fd8)),_0x54734f=new Map(_0x107948['map'](_0x2881a3=>[_0x2881a3,this['_suggestionFactory']['getSuggestionCallback'](_0x2881a3['type'],_0x2881a3['subType'],'chain')])),_0x10927b=new Map(_0x107948['map'](_0x5e348d=>[_0x5e348d,_0x5e348d['getFirstRange']()])),_0x17c954=new Set(),_0x4c0c36=new Set();for(let _0x11937a=0x0;_0x11937a<_0x3f8a6b['length'];_0x11937a++)_0x4dba98(_0x3f8a6b[_0x11937a],_0x3f8a6b,_0x11937a+0x1);for(let _0x588c3c=0x0;_0x588c3c<_0x3f8a6b['length'];_0x588c3c++)_0x4dba98(_0x3f8a6b[_0x588c3c],_0x2c140c,0x0);const _0x16b848=new Set();for(let _0xc455b1=0x0;_0xc455b1<_0x3f8a6b['length'];_0xc455b1++){const _0x56260e=_0x3f8a6b[_0xc455b1];!_0x4c0c36['has'](_0x56260e)&&_0x56260e['previous']&&(_0x16b848['add'](_0x56260e['previous']),_0x56260e['previous']['next']===_0x56260e&&(_0x56260e['previous']['next']=null),_0x56260e['previous']=null),!_0x17c954['has'](_0x56260e)&&_0x56260e['next']&&(_0x16b848['add'](_0x56260e['next']),_0x56260e['next']['previous']===_0x56260e&&(_0x56260e['next']['previous']=null),_0x56260e['next']=null);}function _0x4dba98(_0x49a2c9,_0x1764ce,_0x5a083){for(let _0x225e6e=_0x5a083;_0x225e6e<_0x1764ce['length'];_0x225e6e++){const _0x4c01a6=_0x294c13(_0x49a2c9,_0x1764ce[_0x225e6e]);_0x4c01a6&&(_0x4c01a6[0x0]['next']=_0x4c01a6[0x1],_0x4c01a6[0x1]['previous']=_0x4c01a6[0x0],_0x17c954['add'](_0x4c01a6[0x0]),_0x4c0c36['add'](_0x4c01a6[0x1]));}}function _0x294c13(_0x2dee1f,_0x46d96c){if(_0x2dee1f['author']['id']!==_0x46d96c['author']['id'])return null;const _0x7c1e11=_0x54734f['get'](_0x2dee1f)(_0x2dee1f,_0x46d96c,_0x10927b['get'](_0x2dee1f),_0x10927b['get'](_0x46d96c));if(!_0x7c1e11)return null;return _0x54734f['get'](_0x46d96c)(_0x2dee1f,_0x46d96c,_0x10927b['get'](_0x2dee1f),_0x10927b['get'](_0x46d96c))?_0x7c1e11[0x1]['commentThread']&&_0x7c1e11[0x1]['commentThread']['length']?null:_0x7c1e11:null;}_0x16b848['size']&&this['_refreshSuggestionsChain'](_0x16b848);}['_refreshAttributeSuggestionsChain'](_0x32e053){if(0x0==_0x32e053['length'])return;const _0x37c4e4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d1b4e=>'attribute'==_0x5d1b4e['type']&&_0x5d1b4e['_isDataLoaded']),_0x26df21=[],_0x3d0448=new Map();for(const _0x4107b1 of _0x37c4e4){const _0x234fe3=_0x583c01(_0x4107b1['attributes']);_0x3d0448['has'](_0x234fe3)||(_0x3d0448['set'](_0x234fe3,_0x26df21['length']),_0x26df21['push']([]));const _0x4aa3e6=_0x3d0448['get'](_0x234fe3);_0x26df21[_0x4aa3e6]['push'](_0x4107b1);}!(function(){_0x26df21['sort']((_0x93d018,_0x5d94f5)=>{const _0x390fad=_0x93d018[0x0]['createdAt'],_0x1f9d02=_0x5d94f5[0x0]['createdAt'];return _0x390fad==_0x1f9d02?_0x93d018[0x0]['attributes']['groupId']<_0x5d94f5[0x0]['attributes']['groupId']?-0x1:0x1:_0x390fad<_0x1f9d02?-0x1:0x1;});for(const _0x2b3738 of _0x26df21)_0x2b3738['sort']((_0x3f2559,_0x25a593)=>_0x3f2559['id']<_0x25a593['id']?-0x1:0x1);}());for(let _0x496421=0x0;_0x496421<_0x26df21['length'];_0x496421++){if(0x0==_0x26df21[_0x496421]['length'])continue;const _0x52a9c0=[];for(let _0x15e9dc=_0x496421+0x1;_0x15e9dc<_0x26df21['length'];_0x15e9dc++)0x0!=_0x26df21[_0x15e9dc]['length']&&_0x8fdba9(_0x26df21[_0x496421],_0x26df21[_0x15e9dc])&&_0x52a9c0['push'](_0x15e9dc);for(const _0x2bc53e of _0x52a9c0)_0x26df21[_0x496421]=_0x26df21[_0x496421]['concat'](_0x26df21[_0x2bc53e]),_0x26df21[_0x2bc53e]=[];}for(const _0x120be3 of _0x26df21)for(let _0x1d4905=0x0;_0x1d4905<_0x120be3['length'];_0x1d4905++){const _0x58dcf0=_0x120be3[_0x1d4905+0x1]||null;_0x120be3[_0x1d4905]['next']!==_0x58dcf0&&(_0x120be3[_0x1d4905]['next']=_0x58dcf0);}for(const _0x3f662b of _0x26df21)for(let _0x547fab=0x0;_0x547fab<_0x3f662b['length'];_0x547fab++){const _0x417006=_0x3f662b[_0x547fab-0x1]||null;_0x3f662b[_0x547fab]['previous']!==_0x417006&&(_0x3f662b[_0x547fab]['previous']=_0x417006);}function _0x8fdba9(_0x55461f,_0x1109a8){if(_0x55461f[0x0]['attributes']['groupId']!==_0x1109a8[0x0]['attributes']['groupId']&&_0x55461f[0x0]['author']!==_0x1109a8[0x0]['author'])return!0x1;if(!function(_0x337bcc,_0x2af085){if(!_0x337bcc['hasComments']&&!_0x2af085['hasComments'])return!0x0;if(_0x337bcc['hasComments']&&_0x2af085['hasComments'])return!0x1;if(_0x337bcc['hasComments']&&_0x2af085['createdAt']<_0x337bcc['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2af085['hasComments']&&_0x337bcc['createdAt']<_0x2af085['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x55461f[0x0],_0x1109a8[0x0]))return!0x1;const _0x536ff3=Ft(_0x55461f[0x0]['attributes'],'groupId'),_0x4569a3=Ft(_0x1109a8[0x0]['attributes'],'groupId');if(!_0x3595e6(_0x536ff3,_0x4569a3))return!0x1;return!!_0x55461f['every'](_0x40a86f=>_0x1109a8['some'](_0x283506=>_0x40a86f['getFirstRange']()['isEqual'](_0x283506['getFirstRange']())))&&_0x1109a8['every'](_0x4772f9=>_0x55461f['some'](_0x29d0c1=>_0x4772f9['getFirstRange']()['isEqual'](_0x29d0c1['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x12ee10){const _0x5e049d=Array['from'](_0x12ee10),_0x325be9=this['getSuggestions']({'skipNotAttached':!0x0}),_0xff817=_0x325be9['filter'](_0x59d338=>!_0x12ee10['has'](_0x59d338)),_0x5d7a60=new Map(_0x5e049d['map'](_0x4b881f=>[_0x4b881f,this['_suggestionFactory']['getSuggestionCallback'](_0x4b881f['type'],_0x4b881f['subType'],'join')])),_0x211a82=new Map(_0x325be9['map'](_0x4c75b6=>[_0x4c75b6,_0x4c75b6['getRanges']()]));for(let _0x29b423=0x0;_0x29b423<_0x5e049d['length'];_0x29b423++){if(_0x2c42c8(this,_0x5e049d[_0x29b423],_0x5e049d,_0x29b423+0x1))return!0x0;}for(let _0x1052c6=0x0;_0x1052c6<_0x5e049d['length'];_0x1052c6++){if(_0x2c42c8(this,_0x5e049d[_0x1052c6],_0xff817,0x0))return!0x0;}return!0x1;function _0x2c42c8(_0x5405c4,_0x569d57,_0xc7fc2f,_0x25bac0){for(let _0x480f24=_0x25bac0;_0x480f24<_0xc7fc2f['length'];_0x480f24++){const _0x459d04=_0xc7fc2f[_0x480f24];if(_0x459d04['type']!==_0x569d57['type']||_0x459d04['author']['id']!==_0x569d57['author']['id']||_0x459d04['subType']!==_0x569d57['subType'])continue;if(!Qt(_0x569d57,_0x459d04))continue;if('attribute'==_0x569d57['type']&&_0x569d57['data']['oldValue']!=_0x459d04['data']['oldValue'])continue;if('attribute'==_0x569d57['type']&&_0x5405c4['_isBlockAttribute'](_0x569d57['data']['key']))continue;if('formatBlock'==_0x569d57['type']){const _0x47e2a2=_0x5405c4['editor']['model'],_0x8e4125=_0x569d57['getContainedElement']();if(_0x8e4125&&(_0x47e2a2['schema']['isObject'](_0x8e4125)||_0x47e2a2['schema']['isLimit'](_0x8e4125)))continue;}const _0x25dc17=_0x5d7a60['get'](_0x569d57),_0xf107fe=_0x211a82['get'](_0x569d57),_0x378487=_0x211a82['get'](_0x459d04),_0x29d8ba=_0x569d57['commentThread']&&_0x569d57['commentThread']['length'],_0x18ba80=_0x459d04['commentThread']&&_0x459d04['commentThread']['length'];if(!_0x29d8ba&&_0x25dc17(_0x378487,_0xf107fe))return _0x5405c4['_joinSuggestions'](_0x459d04,_0x569d57),_0x211a82['delete'](_0x569d57),!0x0;if(!_0x18ba80&&_0x25dc17(_0xf107fe,_0x378487))return _0x5405c4['_joinSuggestions'](_0x569d57,_0x459d04),_0x211a82['delete'](_0x459d04),!0x0;}return!0x1;}}['_joinSuggestions'](_0x578c84,_0x161cd9){if(_0x578c84['isMultiRange']){for(const _0x64be99 of _0x161cd9['getRanges']())_0x578c84['addRange'](_0x64be99);}else{const _0x2efca4=_0x161cd9['getFirstRange']()['end'];this['_setSuggestionRange'](_0x578c84,this['_model']['createRange'](_0x578c84['getFirstRange']()['start'],_0x2efca4));}_0x161cd9['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2192ec,_0x361c71,_0x21dbf5){const _0x4cc90d=_0x2192ec['startsWith']('format')||_0x2192ec['startsWith']('attribute')?'FORMATTING':_0x2192ec['toUpperCase']();return c(this['editor']['locale'],_0x361c71+'_'+_0x4cc90d+'_SUGGESTION_ANNOUNCEMENT',_0x21dbf5);}['_initAriaMarkerChangeAnnouncements'](){const _0x117429=this['editor'];if(!_0x117429['ui'])return;const {ariaLiveAnnouncer:_0x4cd528}=_0x117429['ui'];_0xe0f4f3(this['_model'],({left:_0xf52f36,entered:_0x47ac95})=>{for(const _0x490db7 of _0xf52f36){const {group:_0x2665bb,type:_0x4c8f5b}=this['_splitMarkerName'](_0x490db7['name']);if('suggestion'===_0x2665bb){_0x4cd528['announce'](this['_getMarkerAnnouncementText'](_0x4c8f5b,'LEAVE'));break;}}for(const _0x12dde6 of _0x47ac95){const {group:_0xd65bf,type:_0x342ad0}=this['_splitMarkerName'](_0x12dde6['name']);if('suggestion'===_0xd65bf){_0x4cd528['announce'](this['_getMarkerAnnouncementText'](_0x342ad0,'ENTER',_0x132da3(_0x422745)));break;}}});}['_processAttributeChanges'](_0x1a6b97){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3f54e6=this['editor'],_0x4e190b=_0x3f54e6['model']['document']['differ']['getChanges']();if(0x0==_0x4e190b['length'])return!0x1;const _0xdf0879=[],_0x3b0eb6=_0x4e190b['filter'](_0x1aa24a=>'attribute'==_0x1aa24a['type']),_0x324938=_0x4e190b['filter'](_0x1af63d=>'insert'==_0x1af63d['type']&&'$text'!=_0x1af63d['name']),_0xecb653=_0x4e190b['filter'](_0x1ff070=>'remove'==_0x1ff070['type']&&'$text'!=_0x1ff070['name']);for(const _0x4b84c5 of _0x3b0eb6)_0xdf0879['push']({'key':_0x4b84c5['attributeKey'],'newValue':_0x4b84c5['attributeNewValue'],'oldValue':_0x4b84c5['attributeOldValue'],'range':qt(_0x4b84c5['range'],_0x3f54e6['model'])});for(const _0x29c9c7 of _0x324938){const _0x1a08b8=_0xecb653['find'](_0x3938e3=>_0x3938e3['position']['isEqual'](_0x29c9c7['position']));_0x1a08b8&&_0xdf0879['push']({'key':u,'newValue':_0x29c9c7['name'],'oldValue':_0x1a08b8['name'],'range':_0x3f54e6['model']['createRangeOn'](_0x29c9c7['position']['nodeAfter'])});}return 0x0!=_0xdf0879['length']&&this['_reduceExistingSuggestions'](_0x1a6b97,_0xdf0879);}['_processAttributeSuggestions'](_0x573f0e){let _0x50868e=!0x1;const _0x59aa34=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5e4f2a=>_0x5e4f2a['data']['newRange']&&_0x5e4f2a['name']['startsWith']('suggestion:attribute:'));for(const _0x4e4eb9 of _0x59aa34){const {subType:_0x32d392,id:_0x2b772a}=this['_splitMarkerName'](_0x4e4eb9['name']),_0x52fe91=_0x32d392['split']('|')[0x0];for(const _0x20f641 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x20f641['id']!=_0x2b772a&&'attribute'==_0x20f641['type']&&_0x20f641['data']&&_0x20f641['data']['key']==_0x52fe91&&_0x20f641['getFirstRange']()['isIntersecting'](_0x4e4eb9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x20f641,_0x4e4eb9['data']['newRange'],_0x573f0e),_0x50868e=!0x0);}return _0x50868e;}['_recordAttributeChanges'](_0x29a8e0){this['_recordAttributeSuggestions']=!0x0,_0x29a8e0();}['_isRegisteredAttribute'](_0x439a29){const _0x1da11b=this['_isBlockAttribute'](_0x439a29),_0x25f343=this['_inlineAttributeKeys']['has'](_0x439a29);return _0x1da11b||_0x25f343;}['_reduceExistingSuggestions'](_0xf8909f,_0x5796a4){if(0x0==_0x5796a4['length'])return!0x1;let _0x528658=!0x1;for(const _0x50ce31 of _0x5796a4){const _0x407b7a=this['_findSuggestions'](_0x50ce31['range'],'attribute')['filter'](_0x20cfc2=>!_0x20cfc2['meta']['isNextTo'])['map'](_0x1434fe=>_0x1434fe['suggestion']),_0x343d96=_0x583c01({'newValue':_0x50ce31['newValue']});_0x407b7a['filter'](_0x55518e=>{const [_0x2e1d14,_0x5375b0]=_0x55518e['subType']['split']('|');return _0x2e1d14==_0x50ce31['key']&&_0x5375b0!=_0x343d96;})['forEach'](_0x28a26d=>{this['_reduceSuggestionAttributeRange'](_0x28a26d,_0x50ce31['range'],_0xf8909f),_0x528658=!0x0;});}return _0x528658;}['_reduceSuggestionAttributeRange'](_0x1c088a,_0x4e08ec,_0x5f3998){const _0x2d545c=_0x1c088a['getFirstRange']()['getDifference'](_0x4e08ec);0x0!==_0x2d545c['length']?0x1!==_0x2d545c['length']?this['_breakSuggestionMarker'](_0x1c088a,_0x4e08ec['start'],_0x4e08ec['end']):this['_setSuggestionRange'](_0x1c088a,_0x2d545c[0x0]):_0x5f3998['removeMarker'](_0x1c088a['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4b3155){this['_editor']=_0x4b3155,this['_model']=_0x4b3155['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2d9ab8,_0x8605a0,_0x904e8d,_0x5a5a11,_0x3b8d14,_0x10ee85){return new o(this['_model'],{'type':_0x2d9ab8,'subType':_0x8605a0,'id':_0x904e8d,'author':_0x5a5a11,'creator':_0x5a5a11,'attributes':_0x3b8d14,'onAttributesChange':_0x10ee85,'onAccept':(..._0x1d7d7f)=>this['getSuggestionCallback'](_0x2d9ab8,_0x8605a0,'accept')(..._0x1d7d7f),'onDiscard':(..._0x451e25)=>this['getSuggestionCallback'](_0x2d9ab8,_0x8605a0,'discard')(..._0x451e25)});}['registerCustomCallback'](_0x31643f,_0x295edc,_0x300d40,_0x3b4148){const _0xfd8f63=_0x31643f+':'+_0x295edc+':'+_0x300d40;this['_customCallbacks']['set'](_0xfd8f63,_0x3b4148);}['getSuggestionCallback'](_0x13a4f0,_0x361553,_0x33e108){const _0x217170=_0x13a4f0+':'+_0x361553+':'+_0x33e108;return this['_customCallbacks']['get'](_0x217170)||this['_defaultCallbacks']['get'](_0x13a4f0+':'+_0x33e108);}['_registerDefaultCallbacks'](){const _0x546f1a=()=>!0x1,_0x25c361=_0x269db2=>{_0x269db2['sort']((_0x23a948,_0x2a1ef3)=>_0x23a948['start']['isBefore'](_0x2a1ef3['start'])?0x1:-0x1),this['_model']['change'](_0x233adc=>{for(const _0x420cf8 of _0x269db2){let _0x53293b;_0x53293b=_0x420cf8['end']['isAtEnd']&&_0x420cf8['end']['parent']==_0x420cf8['start']['nodeAfter']?_0x233adc['createSelection'](_0x420cf8['start']['nodeAfter'],'on'):_0x233adc['createSelection'](_0x420cf8),this['_model']['deleteContent'](_0x53293b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x23ca87=(_0x2ad4f4,_0x548954)=>{_0x548954&&this['_model']['change'](_0x46fe52=>{const {commandName:_0x491f11,commandParams:_0x470239=[]}=_0x548954,_0x1a29bc=_0x2ad4f4['map'](_0x483181=>(Lt(_0x483181)&&(_0x483181=this['_model']['createRange'](_0x483181['end'])),_0x483181))['filter'](_0x9d92b9=>'$graveyard'!==_0x9d92b9['root']['rootName']);if(_0x1a29bc['length']<0x1)return;const _0x57320a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x95f5e2=>_0x1ffa61['fromRange'](_0x95f5e2));_0x46fe52['setSelection'](_0x1a29bc);for(const _0x47e668 of this['_editor']['commands']['commands']())_0x47e668['refresh']();_0x470239['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x491f11,..._0x470239);const _0x31be26=_0x57320a['filter'](_0x2b9e1a=>'$graveyard'!=_0x2b9e1a['root']['rootName']);_0x31be26['length']>0x0&&_0x46fe52['setSelection'](_0x31be26);for(const _0x3f4f01 of _0x57320a)_0x3f4f01['detach']();});},_0x514ef1=(_0x56208d,_0x34c338)=>0x1==_0x56208d['length']&&0x1==_0x34c338['length']&&_0x56208d[0x0]['end']['isEqual'](_0x34c338[0x0]['start']),_0xcf2aa5=(_0x22107b,_0x5334c8,_0x2199da,_0x13a66c)=>Wt(_0x22107b,_0x5334c8,_0x2199da,_0x13a66c)?[_0x22107b,_0x5334c8]:Wt(_0x5334c8,_0x22107b,_0x13a66c,_0x2199da)?[_0x5334c8,_0x22107b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x546f1a),this['_defaultCallbacks']['set']('insertion:discard',_0x25c361),this['_defaultCallbacks']['set']('insertion:join',_0x514ef1),this['_defaultCallbacks']['set']('insertion:chain',_0xcf2aa5),this['_defaultCallbacks']['set']('deletion:accept',_0x25c361),this['_defaultCallbacks']['set']('deletion:discard',_0x546f1a),this['_defaultCallbacks']['set']('deletion:join',_0x514ef1),this['_defaultCallbacks']['set']('deletion:chain',_0xcf2aa5),this['_defaultCallbacks']['set']('formatInline:accept',_0x23ca87),this['_defaultCallbacks']['set']('formatInline:discard',_0x546f1a),this['_defaultCallbacks']['set']('formatInline:join',_0x514ef1),this['_defaultCallbacks']['set']('formatInline:chain',_0x546f1a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x23ca87),this['_defaultCallbacks']['set']('formatBlock:discard',_0x546f1a),this['_defaultCallbacks']['set']('formatBlock:join',_0x514ef1),this['_defaultCallbacks']['set']('formatBlock:chain',_0x546f1a),this['_defaultCallbacks']['set']('attribute:accept',_0x546f1a),this['_defaultCallbacks']['set']('attribute:discard',(_0x496fe0,_0x1c56ed)=>{if(!_0x1c56ed)return;const _0x1579cb=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5977b=>{if(_0x1c56ed['key']==u)for(const _0x355ba1 of _0x496fe0){const _0x14bd46=_0x355ba1['start']['nodeAfter'],_0x261e58=_0x1c56ed['oldValue'];_0x5977b['rename'](_0x14bd46,_0x261e58);}else{if(_0x1579cb['_isBlockAttribute'](_0x1c56ed['key'])){for(const _0x27487f of _0x496fe0)void 0x0!==_0x1c56ed['oldValue']?_0x5977b['setAttribute'](_0x1c56ed['key'],_0x1c56ed['oldValue'],_0x27487f['start']['nodeAfter']):_0x5977b['removeAttribute'](_0x1c56ed['key'],_0x27487f['start']['nodeAfter']);}else{for(const _0x17d9d7 of _0x496fe0)_0x1c56ed['oldValue']?_0x5977b['setAttribute'](_0x1c56ed['key'],_0x1c56ed['oldValue'],_0x17d9d7):_0x5977b['removeAttribute'](_0x1c56ed['key'],_0x17d9d7);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x514ef1);}}function Gt(_0x3c3470,_0x53acf0,_0x513dd0){for(const _0x44c1f9 of _0x53acf0['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x44c1f9['root']==_0x44c1f9)return!0x1;if(!_0x513dd0['containsItem'](_0x44c1f9))return!0x1;if(_0x3c3470['isObject'](_0x44c1f9)||_0x3c3470['isLimit'](_0x44c1f9))return!0x0;}return!0x1;}function Lt(_0x58e758){return _0x58e758['end']['parent']==_0x58e758['start']['nodeAfter']&&_0x58e758['end']['isAtStart'];}function Jt(_0x257ce1,_0x232e2c,_0x37a616,_0x302088){const _0x428fd6=_0x8520ad=>!_0x8520ad['item']['is']('$textProxy')&&!_0x302088['isObject'](_0x8520ad['item']),_0x3edc29=_0x257ce1['start']['getLastMatchingPosition'](_0x428fd6),_0x2c7bed=_0x257ce1['end']['getLastMatchingPosition'](_0x428fd6,{'direction':'backward'});return(!_0x257ce1['start']['isEqual'](_0x3edc29)||!_0x257ce1['end']['isEqual'](_0x2c7bed))&&(_0x3edc29['isBefore'](_0x2c7bed)?_0x37a616['updateMarker'](_0x232e2c,{'range':_0x37a616['createRange'](_0x3edc29,_0x2c7bed)}):_0x37a616['removeMarker'](_0x232e2c),!0x0);}function Kt(_0xec6c95){return _0x583c01(_0xec6c95);}function Ht(_0x1e3020){const _0x1ce7f0=_0x1e3020['start']['nodeAfter'];return _0x1ce7f0&&_0x1ce7f0['is']('element');}function qt(_0x5ab007,_0x2442d3){return null==_0x5ab007['end']['nodeBefore']&&_0x5ab007['end']['parent']==_0x5ab007['start']['nodeAfter']?zt(_0x5ab007['start']['nodeAfter'],_0x2442d3):_0x5ab007;}function zt(_0x270633,_0x532b4a){const _0x4bd49b=_0x532b4a['schema']['isObject'](_0x270633)||_0x532b4a['schema']['isSelectable'](_0x270633);return _0x532b4a['createRange'](_0x532b4a['createPositionAt'](_0x270633,'before'),_0x4bd49b?_0x532b4a['createPositionAfter'](_0x270633):_0x532b4a['createPositionAt'](_0x270633,'end'));}function Wt(_0x55fdad,_0x48fb64,_0x3e8c43,_0xf2b21){return!!Qt(_0x55fdad,_0x48fb64)&&_0x3e8c43['end']['isEqual'](_0xf2b21['start']);}function Qt(_0x307626,_0x29463f){if(!_0x307626['_isDataLoaded']||!_0x29463f['_isDataLoaded'])return!0x1;const _0x515967=new Set(Object['keys'](_0x307626['attributes'])),_0x27564f=new Set(Object['keys'](_0x29463f['attributes']));if(_0x515967['delete']('groupId'),_0x27564f['delete']('groupId'),0x0==_0x515967['size']&&0x0==_0x27564f['size'])return!0x0;if(_0x515967['size']!=_0x27564f['size'])return!0x1;const _0x98ca44={..._0x307626['attributes']},_0x4089fd={..._0x29463f['attributes']};return delete _0x98ca44['groupId'],delete _0x4089fd['groupId'],JSON['stringify'](_0x98ca44)==JSON['stringify'](_0x4089fd);}function Xt(_0x450f2d,_0xc47d96){const _0x4ceb7d=Yt(_0x450f2d['attributes']),_0x41daf7=Yt(_0xc47d96);if(!_0x450f2d['_isDataLoaded'])return!0x1;for(const _0xe145f7 of Object['keys'](_0x41daf7))if(!_0x3595e6(_0x4ceb7d[_0xe145f7],_0x41daf7[_0xe145f7]))return!0x1;return!0x0;}function Yt(_0x54e078){const _0x2e5e55=Object['assign']({},_0x54e078);return delete _0x2e5e55['skipNestingCheck'],delete _0x2e5e55['tablePasteChainId'],_0x2e5e55;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3306e3(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3a95be,_0x1cdd32,_0x494db8,_0x5bea8b){super(),this['model']=_0x1cdd32,this['view']=_0x494db8,this['commentThreadController']=_0x5bea8b,this['_editor']=_0x3a95be,this['_acceptCommand']=_0x3a95be['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3a95be['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1c324c,_0x8ea5f9)=>_0x1c324c||_0x8ea5f9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x6de691=>_0x6de691&&this['_editor']['model']['canEditAt'](_0x1cdd32['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3d2a14=>_0x3d2a14&&this['_editor']['model']['canEditAt'](_0x1cdd32['getRanges']())),this['_pendingAction']=null,_0x494db8['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x494db8,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x494db8,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x494db8,'change:isDirty',()=>{_0x494db8['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 _0x2f7d3b=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2f7d3b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x41197b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3bcc74,_0x1f74e0,_0x331a82,_0x173a0c){super(_0x3bcc74),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x132c82(_0x3bcc74,c(_0x3bcc74,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1f74e0['authoredAt']),this['bind']('authoredAt')['to'](_0x1f74e0),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',_0x1f74e0,'authoredAt',this,'descriptionParts',(_0x1308e3,_0x501120,_0x771b11)=>{const _0x1c6cbe=_0x771b11['map'](_0x1d5833=>ls(_0x1d5833['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1308e3-0x1,_0x1f74e0['author']['name'],_0x501120?_0x173a0c['formatDateTime'](_0x501120):'',new DOMParser()['parseFromString'](_0x1c6cbe,'text/html')['body']['textContent']]);}),this['focusables']=new _0x31f9e7(),this['focusTracker']=new _0x3b022f(),this['keystrokes']=new _0x258157(),this['focusCycler']=new _0x38f6e2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1a1640=>_0x1a1640['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1f74e0,this['_localUser']=_0x331a82,this['_config']=_0x173a0c,_0x173a0c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x120934(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x49b193}=this['_config'];this['commentsListView']=new _0x49b193(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',_0x4c1e73=>_0x4c1e73+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x620b2a,_0x75707d)=>_0x620b2a||!!_0x75707d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x56552a}=this['_config'],_0x443f50=new _0x56552a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x449dda=_0x443f50['commentInputView'];return _0x443f50['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x449dda,'value',(_0x4dace8,_0x1f48a4,_0x38381b)=>!!_0x38381b||_0x4dace8&&!_0x1f48a4),_0x449dda['on']('submit',(_0x23463d,_0x28b2d4)=>{this['fire']('addComment',_0x28b2d4),_0x449dda['editor']['setData']('');}),_0x449dda['on']('cancel',()=>this['focus']()),_0x449dda['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x443f50;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x366794,_0x4db3b1,_0xa982db,_0x2ede0b){super(_0x366794,_0x4db3b1,_0xa982db,_0x2ede0b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4e3706=>_0x4e3706&&_0x4e3706[0x0]?_0x4e3706[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3a7232,_0x12f616)=>{let _0x2de81e='';for(const _0x350910 of _0x3a7232)_0x2de81e+='<p>'+ls(_0x350910['content'],_0x350910['color'])+'</p>';return _0x12f616?_0x2de81e:ti(_0x2de81e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2ede0b['SuggestionView'](_0x366794,_0x4db3b1,{'formatDateTime':_0x2ede0b['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 _0xad4b73=this['bindTemplate'],_0x190d19=[this['suggestionView']];return this['commentsListView']&&_0x190d19['push'](this['commentsListView']),this['commentThreadInputView']&&_0x190d19['push'](this['commentThreadInputView']),_0x190d19['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xad4b73['if']('isActive','ck-suggestion-wrapper--active'),_0xad4b73['to']('type',_0x58b853=>'ck-suggestion-'+_0x58b853),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':_0xad4b73['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x190d19};}['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 _0x41197b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x8d29d,_0x1618e8,_0x213753){super(_0x8d29d),this['_model']=_0x1618e8,this['_config']=_0x213753,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1618e8),this['acceptButton']=this['_createButton'](c(_0x8d29d,'Accept\x20suggestion'),_0x389e43,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x8d29d,'Discard\x20suggestion'),_0x3297e3,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1e3926(_0x8d29d,_0x1618e8['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x31f9e7([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3b022f(),this['keystrokes']=new _0x258157(),this['focusCycler']=new _0x38f6e2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4334b9=>_0x4334b9['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x533765=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x533765['innerHTML']=this['description'],this['on']('change:description',(_0x53af44,_0x1a6469,_0x19b2cc)=>{_0x533765['innerHTML']=_0x19b2cc;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x42dd6e=this['bindTemplate'],_0x3ff6e7=[{'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':_0x42dd6e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x42dd6e['to']('authoredAt',_0x2d5135=>this['_config']['formatDateTime'](_0x2d5135))}]}]},{'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']&&_0x3ff6e7['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':_0x3ff6e7}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3c14b6,_0x2d496a,_0x4cbee7,_0x419be1,_0x401a70){const _0x4f0731=new _0x14e86c(this['locale']);return _0x4f0731['set']({'label':_0x3c14b6,'icon':_0x2d496a,'tooltip':!0x0,'tooltipPosition':_0x401a70}),_0x4f0731['extendTemplate']({'attributes':{'class':_0x4cbee7}}),_0x4f0731['on']('execute',()=>{this['fire'](_0x419be1,this['_model']['id']);}),_0x4f0731;}['_setupKeyboardNavigation'](){const _0x26c6c2=this['element'];this['keystrokes']['listenTo'](_0x26c6c2);for(const _0x12948c of this['focusables'])this['focusTracker']['add'](_0x12948c['element']),this['keystrokes']['listenTo'](_0x12948c['element']);this['keystrokes']['set']('enter',(_0x9d4349,_0xc10b97)=>{_0x26c6c2===_0x9d4349['target']&&(this['focusCycler']['focusFirst'](),_0xc10b97());}),this['keystrokes']['set']('esc',(_0x3e2dfe,_0x2851a4)=>{_0x26c6c2!==_0x3e2dfe['target']&&(this['focus'](),_0x2851a4());});}}class d extends _0x2bb590{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x75af00,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x251c62){super(_0x251c62),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xbee52a=this['editor']['config'];_0xbee52a['define']('trackChanges.SuggestionThreadView',fe),_0xbee52a['define']('trackChanges.SuggestionView',we),_0xbee52a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xbee52a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4d2e4b,_0x321445){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3ef7a1,_0x3b1a13]of this['_handleControllerBuffer']){const _0x47d785=this['_suggestionToController']['has'](_0x3ef7a1);_0x47d785||_0x3b1a13?_0x47d785&&_0x3b1a13&&this['_destroyController'](_0x3ef7a1):this['_initializeController'](_0x3ef7a1);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4d2e4b,_0x321445);}['init'](){const _0x35ff17=this['editor'],_0xa22dec=_0x35ff17['plugins']['get']('TrackChangesEditing'),_0x4ffddd=_0x35ff17['plugins']['get']('Annotations'),_0x29a220=_0x35ff17['plugins']['get']('EditorAnnotations'),_0x5b8b23=_0x35ff17['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x29a220['addSourceCollector'](()=>{const _0x22c188=[];for(const [_0x4f8740,_0x344246]of Array['from'](this['_suggestionToController'])){const _0x608564=_0x4f8740['getAllAdjacentSuggestions'](),_0xf98d7a=[];for(const _0x4fa088 of _0x608564){if(!_0x4fa088['isInContent'])continue;if(_0x4fa088['isMultiRange']){_0xf98d7a['push'](..._0x4fa088['getRanges']());continue;}const _0x592b3c=_0x4fa088['getFirstRange']();if(_0xf98d7a['length']>0x0){const _0x3acd5f=_0xf98d7a[0x0]['getJoined'](_0x592b3c);if(_0x3acd5f){_0xf98d7a[0x0]=_0x3acd5f;continue;}}_0xf98d7a['push'](_0x592b3c);}_0x22c188['push']([_0x344246['view'],_0xf98d7a]);}return _0x22c188;}),this['listenTo'](_0xa22dec,'suggestionLoaded',(_0x1d1fd7,_0x3833a9)=>{this['listenTo'](_0x3833a9,'change:previous',(_0x5952e1,_0xf4696f,_0x5cec30,_0x3144ab)=>{_0x3833a9['isInContent']&&(null==_0x5cec30?(this['_updateController'](_0x3144ab['head']),this['_handleSuggestionControllerDelayed'](_0x3833a9,!0x1)):(this['_updateController'](_0x5cec30['head']),null==_0x3144ab&&this['_handleSuggestionControllerDelayed'](_0x3833a9,!0x0)));}),null!==_0x3833a9['previous']?this['_updateController'](_0x3833a9['head']):this['_handleSuggestionControllerDelayed'](_0x3833a9,!0x1);}),this['listenTo'](_0xa22dec,'suggestionUnloaded',(_0x4c8b42,_0x113963,_0x3ab9aa)=>{this['stopListening'](_0x113963,'change:previous'),this['_handleControllerBuffer']['delete'](_0x113963),this['_suggestionToController']['has'](_0x113963)&&this['_destroyController'](_0x113963),_0x3ab9aa&&this['_updateController'](_0x3ab9aa['head']);}),this['listenTo'](_0xa22dec,'suggestionChanged',(_0x21dac6,_0x201579)=>{this['_updateController'](_0x201579);}),this['listenTo'](_0x4ffddd,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5b8b23,'addComment',(_0x53f79f,{threadId:_0x54f7c4,isFromAdapter:_0x1f50c0})=>{if(_0x1f50c0||!_0xa22dec['hasSuggestion'](_0x54f7c4))return;const _0x267026=_0xa22dec['getSuggestion'](_0x54f7c4);this['_suggestionToController']['get'](_0x267026)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x25ae85=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5b9e65;for(const _0x55dcc9 in _0x25ae85){const _0x21d0ee=_0x55dcc9,_0x362f19=_0x25ae85[_0x21d0ee];if('trackChangesLicenseKeyValid'==_0x362f19||'trackChangesLicenseKeyInvalid'==_0x362f19||'trackChangesLicenseKeyExpired'==_0x362f19||'trackChangesLicenseKeyDomainLimit'==_0x362f19||'trackChangesLicenseKeyNotAllowed'==_0x362f19||'trackChangesLicenseKeyEvaluationLimit'==_0x362f19||'trackChangesLicenseKeyTrialLimit'==_0x362f19||'trackChangesLicenseKeyUsageLimit'==_0x362f19){delete _0x25ae85[_0x21d0ee],_0x5b9e65=_0x362f19,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5b9e65&&_0x25ae85['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5b9e65&&_0x25ae85['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5b9e65&&_0x25ae85['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5b9e65&&_0x25ae85['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5b9e65&&_0x25ae85['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5b9e65&&_0x25ae85['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5b9e65&&_0x25ae85['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x2a5ec8=this['editor']['plugins']['get']('Annotations'),_0x2a12ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x63d188=Array['from'](_0x2a5ec8['activeAnnotations'],_0x35fcd2=>_0x35fcd2['innerView'])['filter'](_0x20fca8=>this['_viewToController']['has'](_0x20fca8)),_0x31afd6=[];for(const _0x3c2184 of _0x63d188){const _0x2e81b8=this['_viewToController']['get'](_0x3c2184)['model']['getAllAdjacentSuggestions']();_0x31afd6['push'](..._0x2e81b8['reduce']((_0x733a8b,_0x1c0527)=>[..._0x733a8b,..._0x1c0527['getMarkerNames']()],[]));}_0x2a12ea['activeMarkers']=_0x31afd6;}['_addUIComponentsToFactory'](){const _0x51adce=this['editor'],_0x112ab2=_0x51adce['locale'],_0x2b1da2=c(_0x112ab2,'Track\x20changes'),_0x5ead97=new _0x460b9d([{'type':'switchbutton','model':new _0x9558c3({'withText':!0x0,'isToggleable':!0x0,'label':_0x2b1da2,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x9558c3({'withText':!0x0,'label':c(_0x112ab2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x9558c3({'withText':!0x0,'label':c(_0x112ab2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x9558c3({'withText':!0x0,'label':c(_0x112ab2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x9558c3({'withText':!0x0,'label':c(_0x112ab2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x51adce['plugins']['has']('TrackChangesPreview')&&_0x5ead97['addMany']([{'type':'separator'},{'type':'button','model':new _0x9558c3({'withText':!0x0,'label':c(_0x112ab2,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x479966 of _0x5ead97)if(ke(_0x479966)){const _0x3ceb3c=_0x51adce['commands']['get'](_0x479966['model']['commandName']);_0x479966['model']['bind']('isOn','isEnabled')['to'](_0x3ceb3c,'value','isEnabled');}_0x51adce['ui']['componentFactory']['add']('trackChanges',_0xf2d2eb=>this['_createToolbarButton'](_0xf2d2eb,_0x5ead97,_0x2b1da2)),_0x51adce['ui']['componentFactory']['add']('menuBar:trackChanges',_0x422e31=>this['_createMenuBarMenu'](_0x422e31,_0x5ead97,_0x2b1da2));}['_createToolbarButton'](_0x881e60,_0x23f5a0,_0x52eea6){const _0x2f8e6b=_0x1516b7(_0x881e60,_0x1d75c1),_0x2a19b0=this['editor']['commands']['get']('trackChanges');_0x2f8e6b['buttonView']['set']({'tooltip':_0x52eea6,'label':_0x52eea6,'icon':_0x54e32c}),_0x2f8e6b['buttonView']['bind']('isOn')['to'](_0x2a19b0,'value'),_0x2f8e6b['buttonView']['on']('execute',()=>{_0x2a19b0['execute'](),this['editor']['editing']['view']['focus']();}),_0x41a8eb(_0x2f8e6b,_0x23f5a0,{'role':'menu'});const _0x1f1899=[];for(const _0x49b44d of _0x23f5a0)ke(_0x49b44d)&&_0x1f1899['push'](this['editor']['commands']['get'](_0x49b44d['model']['commandName']));const _0x31e2d2=_0x2f8e6b['buttonView'];return _0x31e2d2['actionView']['unbind']('isEnabled'),_0x31e2d2['arrowView']['unbind']('isEnabled'),_0x31e2d2['actionView']['bind']('isEnabled')['to'](_0x2a19b0,'isEnabled'),_0x31e2d2['arrowView']['bind']('isEnabled')['toMany'](_0x1f1899,'isEnabled',(..._0x16d41f)=>_0x16d41f['some'](_0x2a17ca=>_0x2a17ca)),_0x2f8e6b['on']('execute',_0x514cba=>{this['editor']['execute'](_0x514cba['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2f8e6b;}['_createMenuBarMenu'](_0x507ae7,_0x16b104,_0x13dae1){const _0x485598=new _0x1ad69d(_0x507ae7),_0x3b9d55=this['editor']['commands']['get']('trackChanges');_0x485598['buttonView']['set']({'label':_0x13dae1,'icon':_0x54e32c});const _0x19cc26=new _0x232bed(_0x507ae7);for(const _0x3c3ae9 of _0x16b104){if('separator'==_0x3c3ae9['type']){_0x19cc26['items']['add'](new _0xd89dd3(_0x507ae7));continue;}const _0x1fc330=new _0x5370ba(_0x507ae7,_0x485598),_0x1b21c5=new _0x1c2694(_0x507ae7),_0x694796=_0x3c3ae9['model'];_0x1b21c5['bind'](...Object['keys'](_0x694796))['to'](_0x694796),_0x1b21c5['delegate']('execute')['to'](_0x485598),_0x1b21c5['on']('execute',()=>{this['editor']['execute'](_0x694796['commandName']),this['editor']['editing']['view']['focus']();}),_0x1fc330['children']['add'](_0x1b21c5),_0x19cc26['items']['add'](_0x1fc330);}return _0x485598['bind']('isEnabled')['to'](_0x3b9d55,'isEnabled'),_0x485598['panelView']['children']['add'](_0x19cc26),_0x485598;}['_initializeController'](_0x1d9b0c){const _0x5cfb03=this['editor'],_0x46a1d5=_0x5cfb03['config'],_0x3550fe=_0x5cfb03['plugins']['get']('Annotations'),_0x543d3c=_0x5cfb03['plugins']['get']('CommentsRepository'),_0x3977c1=_0x5cfb03['plugins']['get']('EditorAnnotations'),_0x361fd7=_0x5cfb03['plugins']['get'](_0x75af00)['me'],_0x34f130=_0x46a1d5['get']('trackChanges')['SuggestionThreadView'],_0x1424dd=_0x46a1d5['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x28e86e,CommentThreadInputView:_0x2f499d}=_0x5cfb03['plugins']['get']('CommentsUI');let _0x1451fa,_0x596fc7,_0x5b1a64;this['_annotationViews']['has'](_0x1d9b0c['id'])?(_0x596fc7=this['_annotationViews']['get'](_0x1d9b0c['id']),_0x1451fa=_0x596fc7['mainView']):(_0x1451fa=new _0x34f130(_0x5cfb03['locale'],_0x1d9b0c,_0x361fd7,{'disableComments':this['_disableComments'],'editorConfig':{..._0x46a1d5['get']('comments.editorConfig'),'licenseKey':_0x46a1d5['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x46a1d5['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x46a1d5['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x46a1d5['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x488bdc(_0x46a1d5['get']('locale'),_0x5cfb03['locale']),'CommentView':_0x46a1d5['get']('comments')['CommentView'],'CommentsListView':_0x28e86e,'CommentThreadInputView':_0x2f499d,'SuggestionView':_0x1424dd}),_0x1451fa['suggestionView']['acceptButton']['on']('execute',()=>{_0x5cfb03['editing']['view']['focus']();}),_0x1451fa['suggestionView']['discardButton']['on']('execute',()=>{_0x5cfb03['editing']['view']['focus']();}),_0x596fc7=_0x3550fe['createAnnotationView'](this['editor']['locale'],_0x1451fa),_0x596fc7['bind']('isDirty')['to'](_0x1451fa,'isDirty'),_0x596fc7['bind']('length')['to'](_0x1451fa),_0x596fc7['bind']('type')['to'](_0x1451fa,'type',_0x6cb0ff=>'suggestion-'+_0x6cb0ff),_0x1451fa['on']('escape',()=>{_0x5b1a64['fire']('escape');}),this['_annotationViews']['set'](_0x1d9b0c['id'],_0x596fc7));const _0x26762f=_0x543d3c['createCommentThreadController'](_0x1d9b0c['commentThread'],_0x1451fa),_0x15ccbe=new pe(_0x5cfb03,_0x1d9b0c,_0x1451fa,_0x26762f),_0x4240d1=_0x1d9b0c['getAllAdjacentSuggestions']()['filter'](_0x441ede=>_0x441ede['isInContent']);_0x1451fa['descriptionParts']=_0x5cfb03['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4240d1),this['_suggestionToController']['set'](_0x1d9b0c,_0x15ccbe),this['_viewToController']['set'](_0x1451fa,_0x15ccbe),_0x5b1a64=_0x3550fe['createAnnotation']({'view':_0x596fc7,'target':()=>{const _0x5f160e=[],_0x22412b=_0x1d9b0c['getAllAdjacentSuggestions']()['filter'](_0x434f71=>_0x434f71['isInContent']);for(const _0x407791 of _0x22412b)_0x5f160e['push'](..._0x407791['getMarkers']());return _0x5d309a(_0x5cfb03['editing'],_0x5f160e);},'type':()=>'suggestion-'+_0x15ccbe['view']['type']}),_0x543d3c['_bindAnnotationToEditors'](_0x1451fa,_0x5b1a64),_0x3550fe['add'](_0x5b1a64),_0x3977c1['registerAnnotation'](_0x5b1a64);}['_destroyController'](_0x34f4ce){const _0x19c706=this['editor']['plugins']['get']('CommentsRepository'),_0x70a923=this['editor']['plugins']['get']('Annotations'),_0xb6ebcd=this['_suggestionToController']['get'](_0x34f4ce),_0x56f81d=_0xb6ebcd['view'],_0x5e8768=_0x70a923['getByInnerView'](_0x56f81d);_0x19c706['_unbindEditors'](_0x56f81d),_0x5e8768&&_0x70a923['remove'](_0x5e8768),this['_suggestionToController']['delete'](_0x34f4ce),this['_viewToController']['delete'](_0x56f81d),_0xb6ebcd['destroy']();}['_updateController'](_0x4c3179){if(!_0x4c3179['isInContent']||!this['_suggestionToController']['has'](_0x4c3179))return;const _0x1040f5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x374beb=this['_suggestionToController']['get'](_0x4c3179),_0x5b6cbe=_0x4c3179['getAllAdjacentSuggestions']();_0x374beb['view']['descriptionParts']=_0x1040f5['descriptionFactory']['getDescriptions'](_0x5b6cbe);}['destroy'](){for(const _0x15c949 of this['_suggestionToController']['keys']())this['_destroyController'](_0x15c949);for(const _0x49f1bf of this['_annotationViews']['values']())_0x49f1bf['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3413c5){return'model'in _0x3413c5;}class k extends _0x2bb590{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xde153b){this['editor']['plugins']['get'](p)['adapter']=_0xde153b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x39348c){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x39348c);}['getSuggestions']({skipNotAttached:_0x109c69=!0x1,toJSON:_0x43cba6=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x109c69,'toJSON':_0x43cba6});}['getSuggestion'](_0x2c155a){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2c155a);}}const w=['Pagination'];class T extends _0x2bb590{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4bd2ad=this['editor'];if(_0x4bd2ad['config']['define']('trackChangesData.editorCreator',_0xb787fd=>{const _0x5ea911=_0x4bd2ad['model']['document']['getRootNames']()['reduce']((_0x5207e9,_0x4b9b27)=>(_0x5207e9[_0x4b9b27]='',_0x5207e9),{});return _0x4bd2ad['constructor']['create'](_0x5ea911,_0xb787fd);}),'function'!=typeof _0x4bd2ad['config']['get']('trackChangesData')['editorCreator'])throw new _0x5240f6('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xf5bc36){return N(this['editor'],!0x0,_0xf5bc36);}['getDataWithDiscardedSuggestions'](_0x497244){return N(this['editor'],!0x1,_0x497244);}}class D extends _0x2bb590{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x34e002){function _0x16b667(_0x1a472b){return _0x1a472b['map'](_0x37a83b=>String['fromCharCode'](_0x37a83b))['join']('');}super(_0x34e002),this['result']='end',_0x34e002[_0x16b667([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16b667([0x76,0x69,0x65,0x77])][_0x16b667([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x16b667([0x61,0x75,0x74,0x6f]),_0x34e002[_0x16b667([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x16b667([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x16b667([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x16b667([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x16b667([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 Ge(_0x4215ae){return void 0x0!==_0x4215ae['getRootsAttributes'];}async function N(_0x28ea0b,_0xfe52a1,_0x5af0dc){const _0x8b0039=_0x543b69(_0x28ea0b,w);_0x8b0039['plugins']['push'](p,D),_0x8b0039['rootsAttributes']=Ge(_0x28ea0b)?_0x28ea0b['getRootsAttributes']():void 0x0;const _0x53dc4b=document['createDocumentFragment'](),_0x3d5a3d=_0x28ea0b['config']['get']('trackChangesData')['editorCreator'],_0xa65594=await _0x3d5a3d(_0x8b0039,()=>function(_0x2d2a70){const _0x187028=document['createElement']('div');return _0x2d2a70['appendChild'](_0x187028),_0x187028;}(_0x53dc4b));!function(_0x329961,_0x4707fe){const _0x31f07d=_0x329961['model']['document']['getRootNames']()['reduce']((_0x110c33,_0x438163)=>(_0x110c33[_0x438163]=_0x329961['data']['get']({'rootName':_0x438163}),_0x110c33),{}),_0x5bab56=_0x329961['plugins']['get']('Users')['users']['map'](_0xb38bf8=>({'id':_0xb38bf8['id'],'name':_0xb38bf8['name']})),_0x1799f7=_0x329961['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2bd7c3=_0x329961['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2541bd=_0x4707fe['plugins']['get']('Users'),_0x429000=_0x4707fe['plugins']['get']('TrackChangesEditing'),_0x2dac1b=_0x4707fe['plugins']['get']('CommentsRepository');for(const _0x5ef518 of _0x2dac1b['getCommentThreads']())_0x5ef518['remove']();for(const _0x327a42 of _0x5bab56)_0x2541bd['getUser'](_0x327a42['id'])||_0x2541bd['addUser'](_0x327a42);_0x2541bd['me']||_0x2541bd['useAnonymousUser']();for(const _0x570a63 of _0x2bd7c3)_0x2dac1b['addCommentThread'](_0x570a63);for(const _0x152e4b of _0x1799f7)_0x429000['addSuggestionData'](_0x152e4b);_0x4707fe['data']['set'](_0x31f07d);}(_0x28ea0b,_0xa65594),_0xa65594['execute'](_0xfe52a1?'acceptAllSuggestions':'discardAllSuggestions');const _0x1f8fdc=Ge(_0xa65594)?_0xa65594['getFullData'](_0x5af0dc):_0xa65594['data']['get'](_0x5af0dc);return await _0xa65594['destroy'](),_0x1f8fdc;}class Me extends _0x41197b{['options'];constructor(_0x3d4224,_0x516761){super(_0x3d4224),this['options']=_0x516761,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'](_0x43ae76,_0x371e5f){if(!this['element'])return;const _0x3bfb1e=[];for(const [_0x46447e,_0x131d07]of _0x43ae76){const _0x38bdc2=document['createElement']('div');_0x38bdc2['setAttribute']('data-ck-root-name',_0x46447e),_0x38bdc2['className']=_0x131d07['classes']+'\x20ck-track-changes-preview__root-container',_0x38bdc2['innerHTML']=_0x131d07['content'],_0x3bfb1e['push'](_0x38bdc2);}_0x371e5f(this['element'],_0x3bfb1e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x5567c6{constructor(_0x3a9573){super(_0x3a9573),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x18b404=this['editor'],_0x3bb335=_0x18b404['locale'],_0x367180=_0x18b404['plugins']['get']('Dialog');let _0x4451c8;const _0x5ae06e=function(_0x44890c){const _0x4fc0d8={};if('editables'in _0x44890c['ui']['view']){for(const [_0x3a3719,_0x5e6ac7]of Object['entries'](_0x44890c['ui']['view']['editables']))_0x4fc0d8[_0x3a3719]=_0x5e6ac7['element'];}else _0x4fc0d8[_0x44890c['model']['document']['getRootNames']()[0x0]]=_0x44890c['ui']['view']['editable']['element'];return _0x4fc0d8;}(_0x18b404),_0x4b74b0=function(_0x4f5d0f){let _0x16f0a4=0x0;for(const _0x3b557b of Object['values'](_0x4f5d0f))_0x16f0a4=Math['max'](_0x16f0a4,_0x3b557b['getBoundingClientRect']()['width']);let _0x17c763=0x0;for(const _0x11328b of Object['values'](_0x4f5d0f))_0x17c763+=_0x11328b['getBoundingClientRect']()['height'];const _0xe0895d=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x542765=Math['min'](_0x17c763,_0xe0895d);return{'width':_0x16f0a4,'height':_0x542765};}(_0x5ae06e);_0x367180['show']({'id':'finalContentPreview','title':c(_0x3bb335,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3bb335,{'dialogRects':_0x4b74b0}),'onHide':()=>{_0x4451c8['detachFromDom']();},'onShow':()=>{_0x18b404['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x79047f=>{const _0x41ff70=this['_standarizeRootsData'](_0x79047f,_0x18b404,_0x5ae06e);_0x367180['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x41ff70,_0x18b404['config']['get']('trackChanges.preview.renderFunction'));}),_0x4451c8=new _0x3e3912(_0x3bb335,[_0x367180['view']]),_0x4451c8['attachToDom'](),_0x4451c8['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x18b404['once']('destroy',()=>{_0x4451c8['detachFromDom']();});const _0x7eebc2=_0x367180['view']['headerView']['class'];_0x367180['view']['headerView']['class']=_0x7eebc2?_0x7eebc2+'\x20ck-reset_all':'ck-reset_all',_0x367180['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x367180['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3d08f7=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x42f300=_0x3d08f7['previewMode'],_0x256bd4={};if('$labels'===_0x42f300){for(const _0x181ff0 of _0x3d08f7['getMergeFieldsIds']())_0x256bd4[_0x181ff0]=_0x3d08f7['getLabel'](_0x181ff0)||_0x181ff0;}else{const _0x4ef488='$defaultValues'===_0x42f300?_0x3d08f7['getDefaultValues']():_0x3d08f7['getDataSetValues'](_0x42f300,!0x0);for(const _0x32f0b3 of Object['entries'](_0x4ef488)){const [_0xb1226d,_0x97ea40]=_0x32f0b3;_0x256bd4[_0xb1226d]=null!==_0x97ea40?_0x97ea40:_0x3d08f7['getLabel'](_0xb1226d)||_0xb1226d;}}return{'mergeFieldsData':_0x256bd4};}['_standarizeRootsData'](_0x561f39,_0x21c64b,_0x38ca24){let _0x150734;if('string'==typeof _0x561f39){const _0x111b40=_0x21c64b['model']['document']['getRootNames']()[0x0];_0x150734={[_0x111b40]:_0x561f39};}else _0x150734=_0x561f39;const _0x2f0504=this['_fixMediaEmbeds'](_0x150734,_0x21c64b),_0x457e31=function(_0x1d79ed,_0x52b465){for(const [_0x3de45c,_0xfa4daa]of _0x1d79ed)_0xfa4daa['classes']=_0x52b465[_0x3de45c]['classList']['value']['replace']('ck-focused','');return _0x1d79ed;}(this['_sortRoots'](_0x21c64b)['reduce']((_0x1450de,_0x56e7a9)=>(_0x1450de['push']([_0x56e7a9,{'content':_0x2f0504[_0x56e7a9],'classes':''}]),_0x1450de),[]),_0x38ca24);return _0x457e31;}['_fixMediaEmbeds'](_0x350a6b,_0x206b03){if(!_0x206b03['plugins']['has']('MediaEmbedEditing'))return _0x350a6b;const _0x3a77f6=_0x206b03['plugins']['get']('MediaEmbedEditing');for(const [_0x119671,_0x58f495]of Object['entries'](_0x350a6b)){const _0x47666c=document['createElement']('div');_0x47666c['innerHTML']=_0x58f495,(_0x47666c['querySelectorAll']('figure.media')['forEach'](_0x5df9a7=>{const _0x1430ca=_0x5df9a7['querySelector']('oembed');if(_0x1430ca){const _0x544c3c=_0x1430ca['getAttribute']('url');if(_0x544c3c){const _0x42458d=_0x3a77f6['registry']['getMediaViewElement'](new _0x2956df(_0x206b03['editing']['view']['document']),_0x544c3c,{'elementName':'','renderForEditingView':!0x0}),_0xfe9823=document['createElement']('div');_0xfe9823['classList']['add']('ck-media__wrapper'),_0x42458d['render'](_0xfe9823,_0x206b03['editing']['view']['domConverter']),_0x1430ca['replaceWith'](_0xfe9823);}}}),_0x350a6b[_0x119671]=_0x47666c['innerHTML']);}return _0x350a6b;}['_sortRoots'](_0x2808ed){if(!function(_0x6f889d){return void 0x0!==_0x6f889d['getRootsAttributes'];}(_0x2808ed))return _0x2808ed['model']['document']['getRootNames']();const _0x4aba4a=[],_0x3ad91d=new Map();for(const _0x56aa85 of _0x2808ed['model']['document']['getRootNames']()){const _0x5b0e0f=_0x2808ed['editing']['view']['getDomRoot'](_0x56aa85)['getClientRects']()['item'](0x0);_0x4aba4a['push'](_0x56aa85),_0x3ad91d['set'](_0x56aa85,_0x5b0e0f);}return _0x4aba4a['sort']((_0x5df94d,_0xad47f3)=>{const _0x277bd9=_0x3ad91d['get'](_0x5df94d),_0x12a2e4=_0x3ad91d['get'](_0xad47f3);return _0x277bd9['y']-_0x12a2e4['y']||_0x277bd9['x']-_0x12a2e4['x'];}),_0x4aba4a;}}class te extends _0x2bb590{static get['requires'](){return[T,_0x5be8af];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1a095f){super(_0x1a095f),_0x1a095f['commands']['add']('previewFinalContent',new re(this['editor'])),_0x1a095f['config']['define']('trackChanges.preview.renderFunction',(_0x20b86a,_0x4b93e7)=>{for(const _0x5ca686 of _0x4b93e7)_0x20b86a['appendChild'](_0x5ca686);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as _0x32be09,Plugin as _0x10f0de,PendingActions as _0xb380ee}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x56438b,ObservableMixin as _0x19b8be,uid as _0x22ea39,priorities as _0x48516f,insertToPriorityArray as _0x5f361c,logWarning as _0x193419,getEnvKeystrokeText as _0x160828,FocusTracker as _0x18b0ca,KeystrokeHandler as _0x36c848,Collection as _0x2cc4a5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x3e5d18,IconCancel as _0x349dc3,IconTrackChanges as _0x4cc824}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x48bcc7,View as _0x5c9254,ViewCollection as _0x4fdc45,FocusCycler as _0x45dea6,ViewModel as _0x30de4d,createDropdown as _0x18f190,SplitButtonView as _0x5a016b,addListToDropdown as _0x236911,MenuBarMenuView as _0x45a8f7,MenuBarMenuListView as _0x1d4c0b,ListSeparatorView as _0x69d281,MenuBarMenuListItemView as _0x188b18,MenuBarMenuListItemButtonView as _0x23b42d,BodyCollection as _0x3212a7,Dialog as _0x26c454}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4dac70,hashObject as _0xac2877,surroundingMarkersDetector as _0x1a44ef,FOCUS_ANNOTATION_KEYSTROKE as _0x2b34ae,AriaDescriptionView as _0x2c4bda,setupThreadKeyboardNavigation as _0x107856,trimHtml as ti,UserView as _0x51f139,LateFocusButtonView as _0x708719,getDateTimeFormatter as _0x438cb0,getAllMarkersDomElementsSorted as _0x1e02a5,sanitizeEditorConfig as _0x6484b0}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3925a3,LiveRange as _0x272be6,LivePosition as _0x5d7b3b,DowncastWriter as _0x43239e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x108084,toWidget as _0x5498e0}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x44083b,set as _0x471dcf,isEqual as _0x4e5b3f,unset as _0x3e1c27,omit as Ft}from'es-toolkit/compat';import{Delete as _0x56e609,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x22f469}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0xa81ecc}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x32be09{['_enabledCommands'];constructor(_0x3c6077,_0x39263a){super(_0x3c6077),this['_enabledCommands']=_0x39263a,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 _0x4fd9fb of this['editor']['commands']['commands']())_0x4fd9fb['affectsData']&&!this['_enabledCommands']['has'](_0x4fd9fb)&&_0x4fd9fb['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x354db9 of this['editor']['commands']['commands']())_0x354db9['affectsData']&&!this['_enabledCommands']['has'](_0x354db9)&&_0x354db9['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x32be09{['_suggestions'];constructor(_0x542e47,_0x462a1e){super(_0x542e47),this['_suggestions']=_0x462a1e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5bd3cd){const _0x36f7e6=this['_suggestions']['get'](_0x5bd3cd);if(!_0x36f7e6)throw new _0x56438b('track-changes-accept-suggestion-not-found',this);const _0x1fbd76=_0x36f7e6['getRanges']();this['editor']['model']['canEditAt'](_0x1fbd76)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x36f7e6);}}class R extends _0x32be09{['_suggestions'];constructor(_0x21d02c,_0x592a39){super(_0x21d02c),this['_suggestions']=_0x592a39,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x123015){const _0x169527=this['_suggestions']['get'](_0x123015);if(!_0x169527)throw new _0x56438b('track-changes-discard-suggestion-not-found',this);const _0x89eaab=_0x169527['getRanges']();this['editor']['model']['canEditAt'](_0x89eaab)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x169527);}}function ls(_0x54fe74,_0x30b065){let _0x2d27b0='';return _0x2d27b0+=_0x54fe74['split']('*')['map']((_0x2cea74,_0x3eddab)=>_0x3eddab%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x2cea74)+'</span>':nn(_0x2cea74))['join'](''),_0x30b065&&(_0x2d27b0+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x30b065['value']+'\x22\x20title=\x22'+_0x30b065['title']+'\x22></span>'),_0x2d27b0;}function nn(_0x406626){const _0xa8162=document['createElement']('span');return _0xa8162['innerText']=_0x406626,_0xa8162['innerHTML'];}function ts(_0x4e4079){return _0x4e4079['sort']((_0x5843b4,_0x44bdb9)=>'deletion'==_0x5843b4['type']&&'deletion'!=_0x44bdb9['type']?-0x1:'deletion'!=_0x5843b4['type']&&'deletion'==_0x44bdb9['type']?0x1:0x0);}function to(_0x153928,_0xec03b){let _0x525093,_0x394198=0x0;const _0x6d1887=[],_0x94362=_0xec03b['schema'];for(;_0x394198<_0x153928['length'];){const _0x5b32b0=_0x153928[_0x394198],_0x530fbd=_0x153928[_0x394198+0x1];_0x525093||(_0x525093=_0xec03b['createPositionBefore'](_0x5b32b0)),on(_0xec03b,_0x5b32b0,_0x530fbd)||(_0x6d1887['push'](_0xec03b['createRange'](_0x525093,_0x94362['isObject'](_0x5b32b0)?_0xec03b['createPositionAfter'](_0x5b32b0):_0xec03b['createPositionAt'](_0x5b32b0,'end'))),_0x525093=null),_0x394198++;}return _0x6d1887;}function on(_0x2108df,_0x5aa542,_0x12632d){if(!_0x12632d)return!0x1;const _0xd6c27b=_0x2108df['createPositionAfter'](_0x5aa542),_0x2b9d4a=_0x2108df['createPositionBefore'](_0x12632d);return _0xd6c27b['isTouching'](_0x2b9d4a);}function rs(_0x1227d6,_0x12d800,_0x4b7b89){for(;_0x4b7b89['length'];){const _0x47088a=_0x4b7b89['splice'](0x0,0x64);_0x1227d6['change'](()=>{for(const _0x11f74c of _0x47088a)_0x11f74c['isInContent']&&_0x12d800['execute'](_0x11f74c['id']);});}}class x extends _0x32be09{['_command'];['_suggestions'];constructor(_0x3dcfcc,_0x4a4bb4,_0x9c5a7b){super(_0x3dcfcc),this['_command']=_0x4a4bb4,this['_suggestions']=_0x9c5a7b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1aad63=Array['from'](this['_suggestions']['values']())['some'](_0x146a32=>_0x146a32['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1aad63;}['execute'](){const _0x5b7314=ts(Array['from'](this['_suggestions']['values']()));for(const _0xf81fd4 of _0x5b7314){const _0x3870e1=_0xf81fd4['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3870e1))return;}rs(this['editor']['model'],this['_command'],_0x5b7314);}}class E extends _0x32be09{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4b7c65,_0x1da9a0,_0x8fba8c){super(_0x4b7c65),this['_command']=_0x1da9a0,this['_suggestions']=_0x8fba8c,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x352ff7=this['editor']['model']['document']['selection'],_0x5daa01=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x12c18d,_0xb0a05e){const _0x459e3e=Array['from'](_0x12c18d['getRanges']()),_0xc11ca0=new Set();for(const _0x4043c7 of _0xb0a05e)if(_0x4043c7['isInContent']){for(const _0x320bf7 of _0x459e3e)for(const _0x2727b5 of _0x4043c7['getRanges']())(_0x320bf7['isIntersecting'](_0x2727b5)||_0x12c18d['isCollapsed']&&!_0x4043c7['isMultiRange']&&_0x4043c7['next']&&_0x2727b5['end']['isTouching'](_0x320bf7['start']))&&_0xc11ca0['add'](_0x4043c7);}return _0xc11ca0;}(_0x352ff7,_0x5daa01),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x218b02=ts(Array['from'](this['_selectedSuggestions']));for(const _0x54c76b of _0x218b02){const _0x2bb8c0=_0x54c76b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2bb8c0))return;}rs(this['editor']['model'],this['_command'],_0x218b02);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x19b8be(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x14fe6f,_0x15305c){super(),this['id']=_0x15305c['id'],this['type']=_0x15305c['type'],this['subType']=_0x15305c['subType']||null,this['author']=_0x15305c['author'],this['creator']=_0x15305c['creator']||_0x15305c['author'],this['isExternal']=Boolean(_0x15305c['attributes']&&_0x15305c['attributes']['@external']),this['data']=null,this['_model']=_0x14fe6f,this['_onAccept']=_0x15305c['onAccept'],this['_onDiscard']=_0x15305c['onDiscard'],this['_onAttributesChange']=_0x15305c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x15305c['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 _0x53ca5c=this;for(;_0x53ca5c['previous'];)_0x53ca5c=_0x53ca5c['previous'];return _0x53ca5c;}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'](_0x217aea){this['_markerNames']['add'](_0x217aea);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1ff553=>this['_model']['markers']['get'](_0x1ff553))['filter'](_0x5c575b=>_0x5c575b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xa4537a=>{for(const _0x1181ea of this['getMarkers']())_0xa4537a['removeMarker'](_0x1181ea);}),this['_markerNames']['clear']();}['removeMarker'](_0xf94365){this['_model']['change'](_0x58349b=>{_0x58349b['removeMarker'](_0xf94365);}),this['_markerNames']['delete'](_0xf94365);}['addRange'](_0x12e90c){const _0x442dac='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x442dac),this['_model']['change'](_0x1d55d5=>{_0x1d55d5['addMarker'](_0x442dac,{'range':_0x12e90c,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x442ea9){for(const _0x245a29 of this['getRanges']())if(_0x245a29['isIntersecting'](_0x442ea9))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4cbe64=>_0x4cbe64['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x57fbfb,_0x528108)=>[..._0x57fbfb,..._0x528108['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3b8967=this['getRanges']();if(0x1!=_0x3b8967['length'])return null;const _0xeb5969=_0x3b8967[0x0],_0x3c9784=_0xeb5969['start']['nodeAfter'],_0xd50cfd=_0xeb5969['end']['nodeBefore'];return _0x3c9784 instanceof _0x3925a3?_0x3c9784!=_0xd50cfd?null:_0x3c9784: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 _0x56295a=[];let _0x8ee11=this['head'];for(;_0x8ee11;)_0x56295a['push'](_0x8ee11),_0x8ee11=_0x8ee11['next'];return _0x56295a;}['setAttribute'](_0x11c0d8,_0x103910){const _0x36fd8c=_0x44083b(this['attributes']);_0x471dcf(_0x36fd8c,_0x11c0d8,_0x103910),_0x4e5b3f(_0x36fd8c,this['attributes'])||(this['attributes']=_0x36fd8c,this['_onAttributesChange'](_0x36fd8c));}['removeAttribute'](_0x48329a){const _0x511826=_0x44083b(this['attributes']);_0x3e1c27(_0x511826,_0x48329a),_0x4e5b3f(_0x511826,this['attributes'])||(this['attributes']=_0x511826,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 _0x22ea39()['substr'](0x1,0x5);}}function c(_0x431566,_0xe142df,_0x46d6df){const _0x5f5b83=_0x431566['t'],t=_0x431566['t'];switch(_0xe142df){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',_0x46d6df);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x46d6df);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x46d6df);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x46d6df);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x46d6df);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',_0x46d6df);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x46d6df);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',_0x46d6df);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x46d6df);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x46d6df);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x46d6df);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x46d6df);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x46d6df);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x46d6df);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x46d6df);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x46d6df);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x46d6df);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x46d6df);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x46d6df);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x46d6df);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x46d6df);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x46d6df);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x46d6df);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x46d6df);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x46d6df);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'},_0x46d6df);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x46d6df);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x46d6df);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x46d6df);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x46d6df);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x46d6df);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x46d6df);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x46d6df);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'},_0x46d6df);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x46d6df);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x46d6df);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x46d6df);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x46d6df);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'},_0x46d6df);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x46d6df);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'},_0x46d6df);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'},_0x46d6df);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x46d6df);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'},_0x46d6df);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x46d6df);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'},_0x46d6df);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x46d6df);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x46d6df);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'},_0x46d6df);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x46d6df);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 _0x5f5b83({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x46d6df);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5f5b83({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x46d6df);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x46d6df);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'},_0x46d6df);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'},_0x46d6df);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'},_0x46d6df);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xe142df;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x545fa8,_0x213ebb){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x545fa8,this['_locale']=_0x213ebb;}['getDescriptions'](_0x25f1a0){const _0x8bc82d=[],_0x592e2a=new Set(),_0x53d7ab=new Set();for(let _0x7e7ba=0x0;_0x7e7ba<_0x25f1a0['length'];_0x7e7ba++){const _0x1399c1=_0x25f1a0[_0x7e7ba];if(!_0x1399c1['isInContent'])continue;const _0x258220=this['_handleCustomCallbackDescription'](_0x1399c1);if(_0x258220){if(null!=_0x1399c1['subType']){if(_0x592e2a['has'](_0x1399c1['subType']))continue;_0x592e2a['add'](_0x1399c1['subType']);}_0x8bc82d['push'](_0x258220);}else{if('attribute'!=_0x1399c1['type'])'insertion'!=_0x1399c1['type']&&'deletion'!=_0x1399c1['type']||this['_handleInsertRemoveSuggestionDescription'](_0x8bc82d,_0x1399c1,_0x25f1a0[_0x7e7ba+0x1]);else{const _0x2268a4=_0x1399c1['data']['key'];if(_0x53d7ab['has'](_0x2268a4))continue;_0x53d7ab['add'](_0x1399c1['data']['key']),_0x2268a4==u?this['_handleRenameSuggestionDescription'](_0x8bc82d,_0x1399c1):this['_handleAttributeSuggestionDescription'](_0x8bc82d,_0x1399c1);}}}return this['_resolveDescriptionItems'](_0x8bc82d);}['registerDescriptionCallback'](_0x1c1946){this['_customCallbacks']['push'](_0x1c1946);}['registerElementLabel'](_0x5b38ba,_0x42d6c7,_0x31ec68=_0x48516f['normal']){'function'==typeof _0x5b38ba?_0x5f361c(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5b38ba,'label':_0x42d6c7,'priority':_0x31ec68}):this['_itemLabels']['set'](_0x5b38ba,_0x42d6c7);}['registerAttributeLabel'](_0x30432d,_0x260f0d){this['_attributeLabels']['set'](_0x30432d,_0x260f0d);}['getItemLabel'](_0xfed8a6,_0x576704=0x1){let _0x377919;for(const _0x4036b7 of this['_itemLabelsCallbacks'])if(_0x4036b7['matchingCallback'](_0xfed8a6)){_0x377919=_0x4036b7['label'];break;}return _0x377919||(_0x377919=this['_itemLabels']['get'](_0xfed8a6['name'])),_0x377919?_0x377919(_0x576704):0x1!==_0x576704?_0x576704+'\x20'+_0xfed8a6['name']+'s':''+_0xfed8a6['name'];}['_addDescriptionItems'](_0x4c3384,_0x23e578){const _0xc2fe60=_0x23e578['getFirstRange']()['getWalker'](),_0x3d28cb='insertion'==_0x23e578['type']?'add':'remove';for(const _0xae958b of _0xc2fe60){const _0x1bd47c=_0xae958b['item'],_0x3ee687=_0x4c3384[_0x4c3384['length']-0x1];if(_0x1bd47c['is']('$textProxy'))_0x3ee687&&_0x3ee687['type']['indexOf']('Container')>-0x1&&_0x4c3384['pop'](),_0x3ee687&&'text'==_0x3ee687['type']?_0x3ee687[_0x3d28cb]+=_0x1bd47c['data']:_0x4c3384['push']({'type':'text','add':'add'==_0x3d28cb?_0x1bd47c['data']:'','remove':'remove'==_0x3d28cb?_0x1bd47c['data']:''});else{if(this['_schema']['isObject'](_0x1bd47c)){const _0x1eeb04=_0x1bd47c;if(_0x3ee687&&_0x3ee687['type']['indexOf']('Container')>-0x1&&_0x4c3384['pop'](),'elementEnd'==_0xae958b['type'])continue;_0x3ee687&&_0x3ee687['type']==_0x3d28cb+'Object'&&_0x3ee687['element']['name']==_0x1eeb04['name']?_0x3ee687['quantity']++:_0x4c3384['push']({'type':_0x3d28cb+'Object','element':_0x1eeb04,'quantity':0x1}),_0xc2fe60['skip'](_0x202dac=>!('elementEnd'==_0x202dac['type']&&_0x202dac['item']==_0x1bd47c));}else{if(this['_schema']['checkChild'](_0x1bd47c,'$text')||_0x1bd47c['is']('element','softBreak')){const _0x5af912=_0x1bd47c;if('add'==_0x3d28cb&&'elementStart'==_0xae958b['type']||'remove'==_0x3d28cb&&'elementEnd'==_0xae958b['type'])continue;if(_0x3ee687&&-0x1==_0x3ee687['type']['indexOf']('Container')){'text'==_0x3ee687['type']&&(_0x3ee687[_0x3d28cb]+='\x0a');continue;}let _0x1f69b3;if(_0x1f69b3='add'==_0x3d28cb?_0x5af912['nextSibling']&&!this['_schema']['isObject'](_0x5af912['nextSibling'])?_0x5af912['nextSibling']:null:_0x5af912['previousSibling']&&!this['_schema']['isObject'](_0x5af912['previousSibling'])?_0x5af912['previousSibling']:null,_0x5af912['isEmpty']||_0x1f69b3&&_0x1f69b3['isEmpty']){const _0x479ea0=_0x1f69b3&&_0x1f69b3['isEmpty']?_0x1f69b3:_0x5af912;_0x3ee687&&_0x3ee687['type']==_0x3d28cb+'EmptyContainer'&&_0x3ee687['element']['name']==_0x479ea0['name']?_0x3ee687['quantity']++:_0x4c3384['push']({'type':_0x3d28cb+'EmptyContainer','element':_0x479ea0,'quantity':0x1});}else _0x4c3384['push']({'type':_0x3d28cb+'Container','element':_0x5af912});}}}}}['_resolveDescriptionItems'](_0x53a04d){const _0xc96ca9=this['_locale'],_0x150298=[],_0x4c130a=[],_0x2ecde6=[];for(const _0x1e7db0 of _0x53a04d)switch(_0x1e7db0['type']){case'text':if(_0x1e7db0['add']=_0x1e7db0['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1e7db0['remove']=_0x1e7db0['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1e7db0['add']&&''!=_0x1e7db0['remove']){_0x150298['push']({'type':'replace','content':c(_0xc96ca9,'REPLACE_TEXT',['\x22'+_0x1e7db0['remove']+'\x22','\x22'+_0x1e7db0['add']+'\x22'])});continue;}if(null!=_0x1e7db0['add']['match'](/^ +$/)){_0x150298['push']({'type':'insertion','content':c(_0xc96ca9,'*Insert:*\x20%0',c(_0xc96ca9,'ELEMENT_SPACE',_0x1e7db0['add']['length']))});continue;}if(null!=_0x1e7db0['remove']['match'](/^ +$/)){_0x150298['push']({'type':'deletion','content':c(_0xc96ca9,'*Remove:*\x20%0',c(_0xc96ca9,'ELEMENT_SPACE',_0x1e7db0['remove']['length']))});continue;}if(''!=_0x1e7db0['add']){_0x150298['push']({'type':'insertion','content':c(_0xc96ca9,'*Insert:*\x20%0','\x22'+_0x1e7db0['add']+'\x22')});continue;}_0x150298['push']({'type':'deletion','content':c(_0xc96ca9,'*Remove:*\x20%0','\x22'+_0x1e7db0['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x150298['push']({'type':'insertion','content':c(_0xc96ca9,'*Insert:*\x20%0',this['getItemLabel'](_0x1e7db0['element'],_0x1e7db0['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x150298['push']({'type':'deletion','content':c(_0xc96ca9,'*Remove:*\x20%0',this['getItemLabel'](_0x1e7db0['element'],_0x1e7db0['quantity']))});continue;case'addContainer':_0x150298['push']({'type':'insertion','content':c(_0xc96ca9,'*Split:*\x20%0',this['getItemLabel'](_0x1e7db0['element'],_0x1e7db0['quantity']))});continue;case'removeContainer':_0x150298['push']({'type':'deletion','content':c(_0xc96ca9,'*Merge:*\x20%0',this['getItemLabel'](_0x1e7db0['element'],_0x1e7db0['quantity']))});continue;case'addFormat':_0x4c130a['push'](_0x1e7db0['key']);continue;case'removeFormat':_0x2ecde6['push'](_0x1e7db0['key']);continue;default:_0x150298['push'](_0x1e7db0);}if(_0x4c130a['length']){const _0x18db51=_0x4c130a['map'](_0x1a0ec1=>this['_attributeLabels']['has'](_0x1a0ec1)?this['_attributeLabels']['get'](_0x1a0ec1):_0x1a0ec1)['join'](',\x20');_0x150298['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x18db51)});}if(_0x2ecde6['length']){const _0x4dc821=_0x2ecde6['map'](_0x4609e8=>this['_attributeLabels']['has'](_0x4609e8)?this['_attributeLabels']['get'](_0x4609e8):_0x4609e8)['join'](',\x20');_0x150298['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x4dc821)});}return _0x150298;}['_handleCustomCallbackDescription'](_0x4f96a2){for(const _0x538968 of this['_customCallbacks']){const _0x3d2e77=_0x538968(_0x4f96a2);if(_0x3d2e77&&'type'in _0x3d2e77)return _0x3d2e77;}}['_handleAttributeSuggestionDescription'](_0x1bc126,_0x3bb797){const _0x1217eb=_0x3bb797['data'],_0x1963ca=void 0x0===_0x1217eb['newValue']?'removeFormat':'addFormat';_0x1bc126['push']({'type':_0x1963ca,'key':_0x1217eb['key']});}['_handleRenameSuggestionDescription'](_0x19b584,_0xdd45f7){_0x19b584['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xdd45f7['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2c74ed,_0x23f6c5,_0x15388e){if(this['_addDescriptionItems'](_0x2c74ed,_0x23f6c5),_0x15388e&&_0x15388e['getFirstRange']()&&!_0x23f6c5['getFirstRange']()['end']['isEqual'](_0x15388e['getFirstRange']()['start'])){const _0x4ef327=_0x2c74ed[_0x2c74ed['length']-0x1],_0x4b0d65='insertion'==_0x23f6c5['type']?'add':'remove';_0x4ef327&&'text'==_0x4ef327['type']&&(_0x4ef327[_0x4b0d65]+='\x0a');}}}class U extends _0x10f0de{['afterInit'](){const _0x1ea453=this['editor'],_0x2b619a=_0x1ea453['plugins']['get']('TrackChangesEditing');_0x1ea453['commands']['get']('showAIAssistant')&&_0x2b619a['enableCommand']('showAIAssistant');}}class V extends _0x10f0de{['afterInit'](){const _0xcd109=this['editor'],_0x43f0c7=_0xcd109['locale'];if(!_0xcd109['plugins']['has']('AlignmentEditing'))return;const _0x3bbfb9=_0xcd109['plugins']['get']('TrackChangesEditing');_0x3bbfb9['enableDefaultAttributesIntegration']('alignment'),_0x3bbfb9['registerBlockAttribute']('alignment'),_0x3bbfb9['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x43f0c7,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bf4e0=this['editor'],_0x509b11=_0x4bf4e0['locale'];_0x4bf4e0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42e5e4=>{if('formatBlock'!=_0x42e5e4['type'])return;const {data:_0x1ac42b}=_0x42e5e4;if(_0x1ac42b&&'alignment'==_0x1ac42b['commandName']){const _0x5d4221=_0x1ac42b['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x509b11,'*Format:*\x20%0',function(_0x20e1a3){switch(_0x20e1a3){case'left':return c(_0x509b11,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x509b11,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x509b11,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x509b11,'FORMAT_JUSTIFY_TEXT');}}(_0x5d4221))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x10f0de{['afterInit'](){const _0x38f93d=this['editor'],_0x36999a=_0x38f93d['plugins']['get']('TrackChangesEditing'),_0x29f0c8=_0x38f93d['locale'];for(const _0x303acd of Zt){if(!_0x38f93d['plugins']['has'](_0x303acd))continue;const _0x14a57e=_0x303acd['slice'](0x0,-0x7)['toLowerCase'](),_0x2268f7='FORMAT_'+_0x14a57e['toUpperCase']();_0x36999a['enableDefaultAttributesIntegration'](_0x14a57e),_0x36999a['registerInlineAttribute'](_0x14a57e),_0x36999a['descriptionFactory']['registerAttributeLabel'](_0x14a57e,c(_0x29f0c8,_0x2268f7));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x298c04=this['editor'],_0xa77c00=_0x298c04['locale'],_0x26473b=_0x298c04['plugins']['get']('TrackChangesEditing');function _0x33a16b(_0x32f469,_0x1d7174){_0x26473b['descriptionFactory']['registerDescriptionCallback'](_0xe00393=>{if('formatInline'!=_0xe00393['type'])return;const {data:_0x1abac2}=_0xe00393;return _0x1abac2&&_0x1abac2['commandName']===_0x32f469?_0x1abac2['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xa77c00,'*Format:*\x20%0',_0x1d7174)}:{'type':'format','content':c(_0xa77c00,'*Remove\x20format:*\x20%0',_0x1d7174)}:void 0x0;});}_0x33a16b('bold',c(_0xa77c00,'FORMAT_BOLD')),_0x33a16b('italic',c(_0xa77c00,'FORMAT_ITALIC')),_0x33a16b('underline',c(_0xa77c00,'FORMAT_UNDERLINE')),_0x33a16b('code',c(_0xa77c00,'FORMAT_CODE')),_0x33a16b('strikethrough',c(_0xa77c00,'FORMAT_STRIKETHROUGH')),_0x33a16b('subscript',c(_0xa77c00,'FORMAT_SUBSCRIPT')),_0x33a16b('superscript',c(_0xa77c00,'FORMAT_SUPERSCRIPT'));}}class G extends _0x10f0de{['afterInit'](){const _0x37869f=this['editor'],_0x2b889f=_0x37869f['locale'];if(!_0x37869f['plugins']['has']('BlockQuoteEditing'))return;const _0x22e0f9=_0x37869f['plugins']['get']('TrackChangesEditing'),_0x1d2a8c=this['editor']['commands']['get']('blockQuote');_0x22e0f9['enableCommand']('blockQuote',(_0x52b406,_0x3bdeaf={})=>{const _0x33c9d8=this['editor']['model']['document']['selection'],_0x571654=_0x3bdeaf&&void 0x0!==_0x3bdeaf['forceValue']?_0x3bdeaf['forceValue']:!_0x1d2a8c['value'];let _0x3ed3e8=[];if(_0x571654){const _0x11577c=Array['from'](_0x33c9d8['getSelectedBlocks']())['filter'](_0xa5c9a6=>oo(_0xa5c9a6)||function(_0x38bfc0,_0x4f3ccd){const _0x1d0a75=_0x4f3ccd['checkChild'](_0x38bfc0['parent'],'blockQuote'),_0x46df71=_0x4f3ccd['checkChild'](['$root','blockQuote'],_0x38bfc0);return _0x1d0a75&&_0x46df71;}(_0xa5c9a6,this['editor']['model']['schema']));_0x3ed3e8=to(_0x11577c,_0x37869f['model']);}else{const _0x34d933=Array['from'](_0x33c9d8['getSelectedBlocks']())['filter'](_0xf2fe0d=>oo(_0xf2fe0d));_0x3ed3e8=to(_0x34d933,_0x37869f['model']);}_0x37869f['model']['change'](()=>{for(const _0x1356ec of _0x3ed3e8)_0x22e0f9['markBlockFormat'](_0x1356ec,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x571654}]});});}),_0x22e0f9['descriptionFactory']['registerDescriptionCallback'](_0x380a1a=>{const {data:_0x2deb66}=_0x380a1a;if(_0x2deb66&&'blockQuote'==_0x2deb66['commandName']){const _0x1ab4e0=c(_0x2b889f,'ELEMENT_BLOCK_QUOTE');return _0x2deb66['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2b889f,'*Set\x20format:*\x20%0',_0x1ab4e0)}:{'type':'format','content':c(_0x2b889f,'*Remove\x20format:*\x20%0',_0x1ab4e0)};}});}}function oo(_0x9b9f2b){return'blockQuote'==_0x9b9f2b['parent']['name'];}class L extends _0x10f0de{['afterInit'](){const _0x54f5ff=this['editor'],_0x5310e3=_0x54f5ff['locale'],_0xfdff62=_0x54f5ff['plugins']['get']('TrackChangesEditing');_0x54f5ff['plugins']['has']('BookmarkEditing')&&(_0xfdff62['enableCommand']('insertBookmark'),_0xfdff62['enableDefaultAttributesIntegration']('updateBookmark'),_0xfdff62['registerBlockAttribute']('bookmarkId'),_0xfdff62['descriptionFactory']['registerDescriptionCallback'](_0x5a2e32=>{if('insertion'!=_0x5a2e32['type']&&'deletion'!=_0x5a2e32['type']&&'attribute'!=_0x5a2e32['type'])return;const _0x32cb35=_0x5a2e32['getContainedElement']();if(null==_0x32cb35)return;if(!_0x32cb35['is']('element','bookmark'))return;const _0x4e8934=_0x32cb35['getAttribute']('bookmarkId');if('insertion'==_0x5a2e32['type'])return{'type':'insertion','content':c(_0x5310e3,'*Insert:*\x20%0','\x22'+_0x4e8934+'\x22\x20'+c(_0x5310e3,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5a2e32['type'])return{'type':'deletion','content':c(_0x5310e3,'*Remove:*\x20%0','\x22'+_0x4e8934+'\x22\x20'+c(_0x5310e3,'ELEMENT_BOOKMARK'))};const {data:_0x3f00f1}=_0x5a2e32;if(!_0x3f00f1||'bookmarkId'!=_0x3f00f1['key'])return;return{'type':'format','content':c(_0x5310e3,'*Set\x20bookmark:*\x20%0','\x22'+_0x3f00f1['newValue']+'\x22')};}));}}class J extends _0x10f0de{['afterInit'](){const _0xe55646=this['editor'];_0xe55646['plugins']['has']('CaseChange')&&(_0xe55646['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xe55646['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xe55646['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x10f0de{['afterInit'](){const _0x26ecd7=this['editor'];_0x26ecd7['commands']['get']('ckbox')&&_0x26ecd7['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x10f0de{['afterInit'](){const _0x3441fb=this['editor'];if(!_0x3441fb['plugins']['has']('CodeBlock'))return;const _0x27c617=_0x3441fb['plugins']['get']('TrackChangesEditing'),_0x2f0935=_0x3441fb['locale'],_0x50478d=_0x3441fb['config']['get']('codeBlock')['languages'],_0x4ac880=_0x3441fb['commands']['get']('codeBlock');_0x27c617['enableCommand']('indentCodeBlock'),_0x27c617['enableCommand']('outdentCodeBlock'),_0x27c617['enableCommand']('codeBlock',(_0x59130c,_0x48e1ee={})=>{const _0x58301b=_0x3441fb['model'],_0x322ff2=_0x3441fb['model']['document']['selection'],_0x4ab99c=_0x48e1ee&&void 0x0!==_0x48e1ee['forceValue']?_0x48e1ee['forceValue']:!_0x4ac880['value'];let _0x342e78;_0x48e1ee['language']||(_0x48e1ee['language']=_0x50478d[0x0]['language']),_0x342e78=_0x4ab99c?Array['from'](_0x322ff2['getSelectedBlocks']())['filter'](_0x4c57d9=>eo(_0x4c57d9)||function(_0x36369e,_0x1a9fd4){if(_0x36369e['is']('rootElement')||_0x1a9fd4['isLimit'](_0x36369e))return!0x1;return _0x1a9fd4['checkChild'](_0x36369e['parent'],'codeBlock');}(_0x4c57d9,_0x58301b['schema'])):Array['from'](_0x322ff2['getSelectedBlocks']())['filter'](_0x34ce5b=>eo(_0x34ce5b));const _0x3bf285=to(_0x342e78,_0x58301b);_0x58301b['change'](()=>{for(const _0x3da846 of _0x3bf285)_0x27c617['markBlockFormat'](_0x3da846,{'commandName':'codeBlock','commandParams':[{..._0x48e1ee,'forceValue':_0x4ab99c}],'formatGroupId':'blockName'});});}),(_0x27c617['descriptionFactory']['registerElementLabel']('codeBlock',_0x5c748e=>c(_0x2f0935,'ELEMENT_CODE_BLOCK',_0x5c748e)),_0x27c617['descriptionFactory']['registerDescriptionCallback'](_0x215731=>{if('formatBlock'!=_0x215731['type'])return;const _0x41ee8c=_0x2f0935['t'],{data:_0x13d7cb}=_0x215731;if(!_0x13d7cb||'codeBlock'!=_0x13d7cb['commandName'])return;const _0xf3bf14=_0x13d7cb['commandParams'][0x0]['language'],_0x880672=_0x41ee8c(_0x50478d['find'](_0x367122=>_0x367122['language']===_0xf3bf14)['label'])['toLowerCase']();return _0x13d7cb['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2f0935,'*Set\x20format:*\x20%0',c(_0x2f0935,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x880672+')')}:{'type':'format','content':c(_0x2f0935,'*Remove\x20format:*\x20%0',c(_0x2f0935,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1528ec){return'codeBlock'==_0x1528ec['name'];}class q extends _0x10f0de{['afterInit'](){const _0x543f90=this['editor'];if(!_0x543f90['plugins']['has']('CommentsEditing'))return;_0x543f90['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5ac0c3,_0x57198d,_0x588059){const _0x7177ec=[];for(const _0x10307a of _0x57198d['getItems']())_0x10307a['hasAttribute'](_0x5ac0c3)&&_0x7177ec['push'](_0x588059['createRangeOn'](_0x10307a));return _0x7177ec;}function Fe(_0x188f86,_0x33f7f4,{showActiveMarker:_0x19b7ee=!0x0}={}){const _0x18359d=_0x188f86['plugins']['get']('TrackChangesEditing');return(_0x2fda38,_0x27baae,_0x437141)=>{if(!_0x437141['consumable']['test'](_0x27baae['markerRange'],_0x2fda38['name']))return;const _0x165880=_0x27baae['markerRange']['getWalker'](),_0xa843e6=_0x27baae['markerRange']['start'],_0x48e61b=_0x188f86['model']['schema'];let _0x7e1287=null,_0x3ba262=null,_0x35393d=!0x1,_0x2a6524=!0x1;for(const _0xdc71d2 of _0x165880){const _0x3e15ee=_0xdc71d2['item'];_0x35393d=_0x35393d||_0x48e61b['isContent'](_0x3e15ee);const _0x573d6c=_0x437141['mapper']['toViewElement'](_0x3e15ee);if(_0x573d6c&&_0x573d6c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xdc71d2['type']&&(_0x48e61b['isBlock'](_0x3e15ee)&&!_0x48e61b['isLimit'](_0x3e15ee)&&(_0x3e15ee['nextSibling']||_0xa843e6['isAtEnd']?_0x7e1287&&_0x7e1287['parent']==_0x3e15ee||(_0x7e1287=_0x3e15ee,_0x5283e1(_0xdc71d2['previousPosition']),_0x2a6524=!0x0):_0x3ba262=_0x3ba262||_0xdc71d2['previousPosition']));}function _0x5283e1(_0xf775c){const {authorId:_0x247ff6}=_0x18359d['_splitMarkerName'](_0x27baae['markerName']),_0x3ce6ed=_0x437141['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x33f7f4,'data-author-id':_0x247ff6}),_0x2c1528=_0x437141['mapper']['toViewPosition'](_0xf775c);_0x19b7ee&&_0x18359d['activeMarkers']['includes'](_0x27baae['markerName'])&&_0x437141['writer']['addClass']('ck-suggestion-marker--active',_0x3ce6ed),_0x437141['writer']['insert'](_0x2c1528,_0x3ce6ed),_0x437141['mapper']['bindElementToMarker'](_0x3ce6ed,_0x27baae['markerName']);}_0x35393d||_0x2a6524||!_0x3ba262||_0x5283e1(_0x3ba262);};}class z extends _0x10f0de{static get['requires'](){return[_0x56e609];}['init'](){const _0x5a6698=this['editor'],_0x176155=_0x5a6698['plugins']['get']('TrackChangesEditing');_0x176155['enableCommand']('delete');const _0x59c393=_0x5a6698['commands']['get']('deleteForward');_0x176155['enableCommand']('deleteForward',(_0x58399c,_0xa43e1c={})=>{const _0x1a9819=_0x5a6698['model']['createSelection'](_0x5a6698['model']['document']['selection']);_0x1a9819['isCollapsed']&&_0x5a6698['model']['modifySelection'](_0x1a9819,{'direction':'forward','unit':_0xa43e1c['unit']});const _0x29da5f=_0x1a9819['getFirstRange'](),_0xb60894=_0x272be6['fromRange'](_0x29da5f);let _0x598652;_0x58399c(_0xa43e1c),_0x598652='$graveyard'==_0xb60894['root']['rootName']?_0x5a6698['model']['createRange'](_0x29da5f['start']):_0x5a6698['model']['createRange'](_0xb60894['start'],_0xb60894['end']),_0xb60894['detach'](),_0x5a6698['model']['enqueueChange'](_0x59c393['buffer']['batch'],_0x41fb7a=>{_0x59c393['buffer']['lock'](),_0x41fb7a['setSelection'](_0x41fb7a['createRange'](_0x598652['end'])),_0x59c393['buffer']['unlock']();});}),_0x5a6698['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x5a6698,'merge'),{'priority':'high'}),_0x5a6698['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3f33d6,_0x426fa9,_0x3cf164)=>{_0x3cf164['options']['showSuggestionHighlights']&&Fe(_0x5a6698,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3f33d6,_0x426fa9,_0x3cf164);},{'priority':'high'}),_0x5a6698['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4f15fa,_0x3945a4,_0x59826e)=>{const _0x1dd794=_0x59826e['mapper']['markerNameToElements'](_0x3945a4['markerName']);if(_0x1dd794){for(const _0x5cf5ac of _0x1dd794)_0x5cf5ac['is']('uiElement')&&(_0x59826e['mapper']['unbindElementFromMarkerName'](_0x5cf5ac,_0x3945a4['markerName']),_0x59826e['writer']['remove'](_0x5cf5ac));}},{'priority':'high'});}}class W extends _0x10f0de{['afterInit'](){const _0x1b228b=this['editor'];if(!_0x1b228b['plugins']['has']('ListEditing'))return;const _0x65560f=_0x1b228b['locale'],_0x5decc2=_0x1b228b['plugins']['get']('TrackChangesEditing'),_0x370030=_0x1b228b['plugins']['has']('TodoListEditing'),_0x6fd3b2=!!_0x1b228b['config']['get']('list.multiBlock');function _0x535e35(_0x5db2bd){return{'type':'format','content':''+c(_0x65560f,'*Set\x20format:*\x20%0',_0x5db2bd)};}function _0x35b26f(_0x169f9b){return{'type':'format','content':''+c(_0x65560f,'*Remove\x20format:*\x20%0',_0x169f9b)};}_0x5decc2['enableDefaultAttributesIntegration']('numberedList'),_0x5decc2['enableDefaultAttributesIntegration']('bulletedList'),_0x5decc2['enableDefaultAttributesIntegration']('customNumberedList'),_0x5decc2['enableDefaultAttributesIntegration']('customBulletedList'),_0x5decc2['enableDefaultAttributesIntegration']('indentList'),_0x5decc2['enableDefaultAttributesIntegration']('outdentList'),_0x5decc2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5decc2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5decc2['registerBlockAttribute']('listItemId'),_0x5decc2['registerBlockAttribute']('listType'),_0x5decc2['registerBlockAttribute']('listIndent'),_0x6fd3b2&&(_0x5decc2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5decc2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x370030&&(_0x5decc2['enableDefaultAttributesIntegration']('todoList'),_0x5decc2['enableDefaultAttributesIntegration']('checkTodoList'),_0x5decc2['registerBlockAttribute']('todoListChecked'),_0x5decc2['descriptionFactory']['registerDescriptionCallback'](_0x3c3a2e=>{const {data:_0x376615}=_0x3c3a2e;if(_0x376615&&'todoListChecked'==_0x376615['key'])return{'type':'format','content':_0x376615['newValue']?c(_0x65560f,'*Check\x20item*'):c(_0x65560f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x345377=>{if(_0x345377['batch']['isUndo'])return!0x1;let _0x250c28=!0x1;const _0x31f620=_0x5decc2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xcc42b8=>'todoListChecked'===_0x5decc2['_getAttributeKey'](_0xcc42b8));for(const _0x200277 of _0x31f620){'todo'!=_0x200277['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5decc2['_findSuggestions'](_0x200277['getFirstRange'](),'attribute')['find'](_0x3ab844=>'listType'===_0x5decc2['_getAttributeKey'](_0x3ab844['suggestion']))||(_0x345377['removeMarker'](_0x200277['getFirstMarker']()),_0x250c28=!0x0));}return _0x250c28;})),_0x5decc2['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x65560f,'FORMAT_INDENT'));const _0x46b136={'type':'format','content':''};_0x5decc2['descriptionFactory']['registerDescriptionCallback'](_0x5632f7=>{const {data:_0x52faa5}=_0x5632f7;if(!_0x52faa5||'listType'!=_0x52faa5['key'])return;let _0x27708e=_0x5632f7['head'];for(;_0x27708e;){if(_0x27708e['data']&&(('listStyle'==_0x27708e['data']['key']||'listMarkerStyle'==_0x27708e['data']['key'])&&(_0x27708e['data']['newValue']&&'default'!=_0x27708e['data']['newValue']||'default'!=_0x27708e['data']['oldValue']&&!_0x52faa5['newValue'])||!_0x6fd3b2&&_0x27708e['data']['key']==u))return _0x46b136;_0x27708e=_0x27708e['next'];}if(null==_0x52faa5['newValue'])switch(_0x52faa5['oldValue']){case'bulleted':return _0x35b26f(c(_0x65560f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x35b26f(c(_0x65560f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x35b26f(c(_0x65560f,'ELEMENT_TODO_LIST'));}switch(_0x52faa5['newValue']){case'bulleted':return _0x535e35(c(_0x65560f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x535e35(c(_0x65560f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x535e35(c(_0x65560f,'ELEMENT_TODO_LIST'));}}),_0x5decc2['descriptionFactory']['registerDescriptionCallback'](_0xd47b09=>{const {data:_0x520d7c}=_0xd47b09;if(_0x520d7c&&'listIndent'==_0x520d7c['key'])return null==_0x520d7c['newValue']||null==_0x520d7c['oldValue']&&0x0==_0x520d7c['newValue']?_0x46b136:void 0x0;}),_0x5decc2['descriptionFactory']['registerDescriptionCallback'](_0x435757=>{if('attribute'!=_0x435757['type'])return;const {data:_0x4b28c1}=_0x435757;if(!_0x4b28c1||'listItemId'!=_0x4b28c1['key'])return;const _0x361f35=Te(_0x435757);return'newValue'==_0x361f35?{'type':'format','content':c(_0x65560f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x361f35?{'type':'format','content':c(_0x65560f,'*Split:*\x20list\x20item')}:_0x46b136;}),_0x1b228b['model']['document']['registerPostFixer'](_0x5e8709=>this['listItemIdFixer'](_0x5e8709)),_0x1b228b['model']['document']['registerPostFixer'](_0x53d561=>this['noTrackChangesFixer'](_0x53d561)),_0x1b228b['model']['document']['on']('change:data',(_0x4af59e,_0x3206de)=>{if(_0x3206de['isUndo']||!_0x3206de['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x413f01){if(_0x413f01['batch']['isUndo']||!_0x413f01['batch']['isLocal'])return!0x1;let _0x1950f6=!0x1;const _0x58c62e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55f493=>_0x55f493['data']&&'listItemId'==_0x55f493['data']['key'])['filter'](_0x38abcf=>_0x38abcf['data']['newValue']&&_0x38abcf['data']['oldValue']);for(const _0x5be468 of _0x58c62e)Te(_0x5be468)||(_0x413f01['removeMarker'](_0x5be468['getFirstMarker']()),_0x1950f6=!0x0);return _0x1950f6;}['noTrackChangesFixer'](_0x33cdaf){if(_0x33cdaf['batch']['isUndo']||!_0x33cdaf['batch']['isLocal'])return!0x1;const _0x4af910=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4af910['trackChangesCommand']['value'])return!0x1;let _0x8d701c=!0x1;const _0x16e535=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5571fb=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3f4b99=>'attribute'==_0x3f4b99['type'])['filter'](_0x1d72b1=>_0x16e535['includes'](_0x1d72b1['attributeKey']));if(0x0==_0x5571fb['length'])return _0x8d701c;for(const _0x428cf6 of _0x5571fb){const _0x5f0f38=_0x4af910['_findSuggestions'](_0x428cf6['range'],'attribute')['filter'](_0x4ce194=>!_0x4ce194['meta']['isNextTo'])['map'](_0x1e562c=>_0x1e562c['suggestion'])['filter'](_0x46ce32=>{const _0x5bcbfd=_0x4af910['_getAttributeKey'](_0x46ce32);return _0x16e535['includes'](_0x5bcbfd);});if(_0x5f0f38['length']){for(const _0x179bef of _0x5f0f38)_0x33cdaf['removeMarker'](_0x179bef['getFirstMarker']());_0x8d701c=!0x0;}}return _0x8d701c;}['assureChains'](){const _0x301aaa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52dcad=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2ac986;const _0x351916=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x21a22e=>{if(_0x21a22e['data']['oldRange']||!_0x21a22e['data']['newRange'])return null;if(!_0x21a22e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x51ed9c}=_0x301aaa['_splitMarkerName'](_0x21a22e['name']);if(!_0x301aaa['hasSuggestion'](_0x51ed9c))return null;const _0x5615fd=_0x301aaa['getSuggestion'](_0x51ed9c);return _0x52dcad['includes'](_0x5615fd['data']['key']);})['map'](_0x117d98=>{const {id:_0x4c5054}=_0x301aaa['_splitMarkerName'](_0x117d98['name']),_0x9c94d9=_0x301aaa['getSuggestion'](_0x4c5054);return _0x2ac986=_0x9c94d9['attributes']['groupId'],_0x9c94d9['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x351916['size'])return;const _0x3d9d8a=_0x301aaa['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x446404=>'attribute'==_0x446404['type']&&_0x446404['data']&&_0x52dcad['includes'](_0x446404['data']['key'])&&_0x446404['attributes']['groupId']!=_0x2ac986)['map'](_0x7f83e8=>({'listItem':_0x7f83e8['getFirstRange']()['start']['nodeAfter'],'groupId':_0x7f83e8['attributes']['groupId']})),_0x3d2454=new Set();for(const {groupId:_0x38f27f,listItem:_0x4bb20a}of _0x3d9d8a)_0x351916['has'](_0x4bb20a)&&_0x3d2454['add'](_0x38f27f);for(const _0x15071a of _0x301aaa['getSuggestions']())_0x3d2454['has'](_0x15071a['attributes']['groupId'])&&_0x15071a['setAttribute']('groupId',_0x2ac986);}['_supportLegacySuggestions'](){const _0x320151=this['editor'],_0x21fb49=_0x320151['locale'],_0x357f1a=_0x320151['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x357f1a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3f1339,_0x276bfa){const _0x44bc4c=[];for(let _0xdb214f of _0x3f1339)_0xdb214f['start']['nodeAfter']===_0xdb214f['end']['parent']&&(_0xdb214f=_0x320151['model']['createRange'](_0x320151['model']['createPositionAt'](_0xdb214f['start']['nodeAfter'],0x0))),_0x44bc4c['push'](_0xdb214f);_0x320151['model']['change'](_0x1ba1d1=>{const _0x124ed8=_0x320151['model']['document']['selection'],_0x306979=Array['from'](_0x124ed8['getRanges']())['map'](_0x135f74=>_0x272be6['fromRange'](_0x135f74));_0x1ba1d1['setSelection'](_0x44bc4c),_0x320151['commands']['get'](_0x276bfa['commandName'])['refresh'](),_0x276bfa['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x320151['execute'](_0x276bfa['commandName'],..._0x276bfa['commandParams']),_0x1ba1d1['setSelection'](_0x306979);for(const _0x105b9f of _0x306979)_0x105b9f['detach']();});}),_0x357f1a['descriptionFactory']['registerElementLabel'](function(_0x3f22ba){const _0x45505e=!_0x320151['model']['schema']['isObject'](_0x3f22ba),_0x17b855=_0x3f22ba['previousSibling'],_0xc61445=_0x3f22ba['nextSibling'],_0x4e5a7d=_0x3f22ba['getAttribute']('listItemId'),_0x52e6d2=!_0x17b855||_0x17b855['getAttribute']('listItemId')!==_0x4e5a7d,_0x1f6be8=!_0xc61445||_0xc61445['getAttribute']('listItemId')!==_0x4e5a7d;return _0x45505e&&Boolean(_0x4e5a7d)&&_0x52e6d2&&_0x1f6be8;},_0x59cdeb=>c(_0x21fb49,'ELEMENT_LIST_ITEM',_0x59cdeb));}['_registerLegacyDescription'](){const _0x350cf7=this['editor'],_0x1beb66=_0x350cf7['locale'];function _0x3db527(_0x16f28d){const _0xa7c7e5=_0x350cf7['commands']['get']('bulletedList')['value'],_0x21cc0c=_0x350cf7['commands']['get']('numberedList')['value'];return'numberedList'===_0x16f28d?_0xa7c7e5:_0x21cc0c;}_0x350cf7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x33adac){if('formatBlock'!=_0x33adac['type'])return;const {data:_0x14e7a0}=_0x33adac;if(!_0x14e7a0)return;let _0x3a5f2a,_0x24fce7,_0x91bb3c,_0x23491f;switch(_0x14e7a0['commandName']){case'bulletedList':_0x91bb3c=_0x14e7a0['commandParams'][0x0]['forceValue'],_0x23491f=_0x3db527(_0x14e7a0['commandName']),_0x3a5f2a=_0x91bb3c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x23491f&&_0x350cf7['config']['get']('list.multiBlock')||(_0x3a5f2a='*Change\x20to:*\x20%0'),_0x24fce7={'type':'format','content':c(_0x1beb66,_0x3a5f2a,c(_0x1beb66,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x91bb3c=_0x14e7a0['commandParams'][0x0]['forceValue'],_0x23491f=_0x3db527(_0x14e7a0['commandName']),_0x3a5f2a=_0x91bb3c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x23491f&&_0x350cf7['config']['get']('list.multiBlock')||(_0x3a5f2a='*Change\x20to:*\x20%0'),_0x24fce7={'type':'format','content':c(_0x1beb66,_0x3a5f2a,c(_0x1beb66,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3a5f2a='*Indent:*\x20%0',_0x24fce7={'type':'format','content':c(_0x1beb66,_0x3a5f2a,c(_0x1beb66,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3a5f2a=function(_0x5c64e6){const _0x4bac54=_0x5c64e6['getFirstRange']();let _0x3fdfe0=_0x4bac54['start']['nodeAfter'];for(;_0x3fdfe0&&_0x4bac54['containsItem'](_0x3fdfe0);){if(_0x3fdfe0['getAttribute']('listIndent')>0x0)return!0x1;_0x3fdfe0=_0x3fdfe0['nextSibling'];}return!0x0;}(_0x33adac)?c(_0x1beb66,'*Format:*\x20remove\x20from\x20%0',c(_0x1beb66,function(_0x51180c){return'ELEMENT_'+_0x51180c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x33adac))):c(_0x1beb66,'*Outdent:*\x20%0',c(_0x1beb66,'ELEMENT_LIST_ITEM')),_0x24fce7={'type':'format','content':_0x3a5f2a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x14e7a0['multipleBlocks']&&(_0x3a5f2a='*Merge:*\x20%0',_0x24fce7={'type':'deletion','content':c(_0x1beb66,_0x3a5f2a,c(_0x1beb66,'ELEMENT_LIST_ITEM'))});}return _0x24fce7;});}}function Te(_0x432003){let _0x316446=_0x432003['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x316446;){const _0x21d181=_0x316446['getAttribute']('listItemId');if(!_0x21d181)return!0x1;if(_0x21d181==_0x432003['data']['newValue'])return'newValue';if(_0x21d181==_0x432003['data']['oldValue'])return'oldValue';_0x316446=_0x316446['previousSibling'];}return!0x1;}class Se extends _0x10f0de{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x31eff0=this['editor']['config']['get']('list.properties'),_0x1fd522=this['editor']['plugins']['get']('TrackChangesEditing');_0x31eff0['styles']&&(_0x1fd522['enableDefaultAttributesIntegration']('listStyle'),_0x1fd522['registerBlockAttribute']('listStyle')),_0x31eff0['reversed']&&(_0x1fd522['enableDefaultAttributesIntegration']('listReversed'),_0x1fd522['registerBlockAttribute']('listReversed')),_0x31eff0['startIndex']&&(_0x1fd522['enableDefaultAttributesIntegration']('listStart'),_0x1fd522['registerBlockAttribute']('listStart'));const _0x27a48f={'type':'format','content':''};_0x1fd522['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3ff128=this['editor']['locale'];_0x1fd522['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x3ff128,'FORMAT_LIST_REVERSED')),_0x1fd522['descriptionFactory']['registerDescriptionCallback'](_0x5ebe68=>{const {data:_0x1ce719}=_0x5ebe68;if(_0x1ce719&&'listReversed'==_0x1ce719['key'])return null==_0x1ce719['newValue']||0x0==_0x1ce719['newValue']&&null==_0x1ce719['oldValue']?_0x27a48f:void 0x0;}),_0x1fd522['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x3ff128,'FORMAT_LIST_START')),_0x1fd522['descriptionFactory']['registerDescriptionCallback'](_0x59cc16=>{const {data:_0x52be7e}=_0x59cc16;if(_0x52be7e&&'listStart'==_0x52be7e['key'])return null==_0x52be7e['newValue']||0x1==_0x52be7e['newValue']&&null==_0x52be7e['oldValue']?_0x27a48f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xd55189=>{if(_0xd55189['batch']['isUndo'])return!0x1;let _0x5d254b=!0x1;const _0x27c244=_0x1fd522['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x592c52=>{const _0x4b6682=_0x1fd522['_getAttributeKey'](_0x592c52);return'listStart'==_0x4b6682||'listReversed'==_0x4b6682;});for(const _0x45d018 of _0x27c244){const _0x3837d4=_0x45d018['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3837d4||'customNumbered'==_0x3837d4)continue;_0x1fd522['_findSuggestions'](_0x45d018['getFirstRange'](),'attribute')['find'](_0x56997f=>'listType'==_0x1fd522['_getAttributeKey'](_0x56997f['suggestion']))||(_0xd55189['removeMarker'](_0x45d018['getFirstMarker']()),_0x5d254b=!0x0);}return _0x5d254b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4a2e9c){const _0x401044=this['editor']['locale'],{data:_0x14061d}=_0x4a2e9c,_0x249f3c={'type':'format','content':''};if(!_0x14061d||'listStyle'!=_0x14061d['key'])return;if(!_0x14061d['oldValue'])return'default'==_0x14061d['newValue']?_0x249f3c:{'type':'format','content':''+c(_0x401044,'*Set\x20format:*\x20%0',c(_0x401044,this['_getTranslationKeyForListStyle'](_0x14061d['newValue'])))};if(!_0x14061d['newValue']){if('default'==_0x14061d['oldValue'])return _0x249f3c;let _0x3727f3=_0x4a2e9c['head'];for(;_0x3727f3;){if(_0x3727f3['data']&&'listType'==_0x3727f3['data']['key']&&_0x3727f3['data']['newValue'])return _0x249f3c;_0x3727f3=_0x3727f3['next'];}return{'type':'format','content':''+c(_0x401044,'*Remove\x20format:*\x20%0',c(_0x401044,this['_getTranslationKeyForListStyle'](_0x14061d['oldValue'])))};}if('default'!=_0x14061d['newValue'])return{'type':'format','content':''+c(_0x401044,'*Set\x20format:*\x20%0',c(_0x401044,this['_getTranslationKeyForListStyle'](_0x14061d['newValue'])))};let _0x2e2833=_0x4a2e9c['head'];for(;_0x2e2833;){if(_0x2e2833['data']&&'listType'==_0x2e2833['data']['key']&&_0x2e2833['data']['newValue']&&_0x2e2833['data']['oldValue'])return _0x249f3c;_0x2e2833=_0x2e2833['next'];}return{'type':'format','content':c(_0x401044,'*Set\x20format:*\x20%0',c(_0x401044,'ELEMENT_'+_0x4a2e9c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3ccb91=this['editor'],_0x15bc4a=_0x3ccb91['locale'];_0x3ccb91['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e6df5=>{if('formatBlock'!=_0x1e6df5['type'])return;const {data:_0x569ec1}=_0x1e6df5;if(!_0x569ec1)return;let _0x480651,_0x3b5eca;switch(_0x569ec1['commandName']){case'listStyle':_0x480651='*Change\x20to:*\x20%0',_0x3b5eca={'type':'format','content':c(_0x15bc4a,_0x480651,c(_0x15bc4a,this['_getTranslationKeyForListStyle'](_0x569ec1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x480651=_0x569ec1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3b5eca={'type':'format','content':c(_0x15bc4a,_0x480651)};break;case'listStart':_0x480651='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3b5eca={'type':'format','content':c(_0x15bc4a,_0x480651,_0x569ec1['commandParams'][0x0]['startIndex'])};}return _0x3b5eca;});}['_getTranslationKeyForListStyle'](_0x35341a){return'ELEMENT_'+function(_0x911406){if(_e['includes'](_0x911406))return'bulleted';if(Re['includes'](_0x911406))return'numbered';return null;}(_0x35341a)['toUpperCase']()+'_LIST_'+_0x35341a['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x10f0de{['afterInit'](){const _0x399dbc=this['editor'];_0x399dbc['commands']['get']('emoji')&&_0x399dbc['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x10f0de{static get['requires'](){return[_0x22f469];}['init'](){const _0x103e08=this['editor'],_0x57596d=_0x103e08['plugins']['get']('TrackChangesEditing'),_0xf75c13=_0x103e08['commands']['get']('enter');_0x57596d['enableCommand']('enter',()=>{_0x103e08['model']['change'](_0x29d95f=>{const _0x48fb91=_0x103e08['model']['document']['selection'],_0x152f02=_0x48fb91['getFirstPosition'](),_0x47a5c7=_0x272be6['fromRange'](_0x48fb91['getFirstRange']());if(_0xf75c13['enterBlock'](_0x29d95f)){const _0x42f0a6=_0x103e08['model']['createPositionAt'](_0x152f02['parent']['nextSibling'],0x0),_0xd8ca50=_0x29d95f['createRange'](_0x152f02,_0x42f0a6);_0x57596d['markInsertion'](_0xd8ca50);}else _0x29d95f['setSelection'](_0x29d95f['createRange'](_0x47a5c7['end']));_0x47a5c7['detach'](),_0xf75c13['fire']('afterExecute',{'writer':_0x29d95f});});}),_0x103e08['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x103e08,'split'),{'priority':'high'}),_0x103e08['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3384b2,_0x28295a,_0x21ee9c)=>{const _0x452d12=_0x21ee9c['mapper']['markerNameToElements'](_0x28295a['markerName']);if(_0x452d12){for(const _0x2546e7 of _0x452d12)_0x2546e7['hasClass']('ck-suggestion-marker-split')&&(_0x21ee9c['mapper']['unbindElementFromMarkerName'](_0x2546e7,_0x28295a['markerName']),_0x21ee9c['writer']['remove'](_0x2546e7));}},{'priority':'high'}),_0x103e08['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2005c2,_0x3aac85,_0x2db66c)=>{_0x2db66c['options']['showSuggestionHighlights']&&Fe(_0x103e08,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2005c2,_0x3aac85,_0x2db66c);},{'priority':'high'});}}class Z extends _0x10f0de{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x190c36=this['editor']['plugins']['get']('TrackChangesEditing');_0x190c36['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x190c36['enableCommand']('findNext'),_0x190c36['enableCommand']('findPrevious'),_0x190c36['enableCommand']('replace'),_0x190c36['enableCommand']('replaceAll');}['handleFindCommand'](_0x318dfc,_0xc1f077,_0x51f608={}){const _0x568ec5=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x318dfc(_0x52a19e=>{let _0x2c6f24=('string'==typeof _0xc1f077?_0x568ec5['findByTextCallback'](_0xc1f077,_0x51f608):_0xc1f077)(_0x52a19e);Array['isArray'](_0x2c6f24)&&(_0x2c6f24={'results':_0x2c6f24,'searchText':'string'==typeof _0xc1f077?_0xc1f077:''});const _0x467c6d=_0x2c6f24['results']['filter'](_0x149aae=>!0x1===this['_isInDeletionRange'](_0x149aae,_0x52a19e['item']));return{..._0x2c6f24,'results':_0x467c6d};},_0x51f608);}['_isInDeletionRange'](_0x1967f6,_0x5a91c8){const _0x4f7bc3=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5a91c8,_0x1967f6['start']),this['editor']['model']['createPositionAt'](_0x5a91c8,_0x1967f6['end']));for(const _0x45c843 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4f7bc3['getIntersection'](_0x45c843['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x10f0de{['afterInit'](){const _0x5c7fa0=this['editor']['locale'],_0xc880=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x56f2d3,commandName:_0x414a76}of ro)this['editor']['plugins']['has'](_0x56f2d3)&&(_0xc880['enableDefaultAttributesIntegration'](_0x414a76),_0xc880['registerInlineAttribute'](_0x414a76));_0xc880['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x5c7fa0,'FORMAT_FONT_SIZE')),_0xc880['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x5c7fa0,'FORMAT_FONT_FAMILY')),_0xc880['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x5c7fa0,'FORMAT_FONT_COLOR')),_0xc880['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x5c7fa0,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dda93=this['editor'],_0x44448a=_0x1dda93['locale'];_0x1dda93['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x643753=>{const _0x449982=_0x44448a['t'];if('formatInline'!=_0x643753['type'])return;const {data:_0x405274}=_0x643753;if(null!=_0x405274){if('fontSize'==_0x405274['commandName']){const _0x2c5d6f=_0x405274['commandParams'][0x0]['value'];if(_0x2c5d6f){const _0x4ae79c=_0x449982(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4a1ef3=>_0x4a1ef3['model']==_0x2c5d6f)['title'])['toLowerCase']();return{'type':'format','content':c(_0x44448a,'*Set\x20font\x20size:*\x20%0',_0x4ae79c)};}return{'type':'format','content':c(_0x44448a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x405274['commandName']){const _0x3dd623=_0x405274['commandParams'][0x0]['value'];return _0x3dd623?{'type':'format','content':c(_0x44448a,'*Set\x20font\x20family:*\x20%0',_0x3dd623)}:{'type':'format','content':c(_0x44448a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x405274['commandName']){const _0x5e5a3f=_0x405274['commandParams'][0x0]['value'];if(_0x5e5a3f){const _0x57eeaa=_0x48bcc7(this['editor']['config']['get']('fontColor.colors'))['find'](_0x265dd6=>_0x265dd6['model']==_0x5e5a3f);let _0x5690df=_0x5e5a3f,_0x4577f0='';return _0x57eeaa&&(_0x5690df=_0x57eeaa['label'],_0x4577f0=_0x449982(_0x5690df)['toLowerCase']()),{'type':'format','content':c(_0x44448a,'*Set\x20font\x20color:*\x20%0',_0x4577f0)['trim'](),'color':{'value':_0x5e5a3f,'title':_0x4577f0||_0x5690df}};}return{'type':'format','content':c(_0x44448a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x405274['commandName']){const _0x1a9bda=_0x405274['commandParams'][0x0]['value'];if(_0x1a9bda){const _0x5a2bc4=_0x48bcc7(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5d30d9=>_0x5d30d9['model']==_0x1a9bda);let _0x22e75a=_0x1a9bda,_0x2d0a49='';return _0x5a2bc4&&(_0x22e75a=_0x5a2bc4['label'],_0x2d0a49=_0x449982(_0x22e75a)['toLowerCase']()),{'type':'format','content':c(_0x44448a,'*Set\x20font\x20background\x20color:*\x20%0',_0x2d0a49)['trim'](),'color':{'value':_0x1a9bda,'title':_0x2d0a49||_0x22e75a}};}return{'type':'format','content':c(_0x44448a,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x10f0de{['afterInit'](){const _0x3b92b3=this['editor'],_0x3cc10c=_0x3b92b3['plugins']['get']('TrackChangesEditing'),_0x48479d=_0x3b92b3['commands']['get']('copyFormat'),_0x40167e=_0x3b92b3['commands']['get']('pasteFormat');_0x48479d&&_0x40167e&&(_0x3cc10c['enableDefaultAttributesIntegration']('pasteFormat'),_0x3cc10c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x70e006=this['editor'],_0x4d70e9=_0x70e006['locale'];_0x70e006['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x461e5b=>{if('formatBlock'!=_0x461e5b['type']&&'formatInline'!=_0x461e5b['type'])return;const {data:_0x4dad40}=_0x461e5b;if(_0x4dad40&&'pasteFormat'===_0x4dad40['commandName']){const _0x3bf410=[],_0x1bbd3d=_0x4dad40['commandParams'][0x0];for(const [_0x1aa218,_0x25e96c]of Object['entries'](_0x1bbd3d))_0x3bf410['push'](so(_0x70e006,_0x1aa218,_0x25e96c));return _0x3bf410['length']?{'type':'format','content':c(_0x4d70e9,'*Set\x20format\x20to:*\x20%0',_0x3bf410['join'](',\x20'))}:{'type':'format','content':c(_0x4d70e9,'*Remove\x20all\x20formatting*')};}});}}function so(_0x44e063,_0x109f74,_0xb9076f){const _0x19b1c5=_0x44e063['locale']['t'],_0x1ea1ed=_0x109f74['split'](/(?=[A-Z])/)['join']('\x20'),_0x6dab19=_0x19b1c5(_0x1ea1ed['charAt'](0x0)['toUpperCase']()+_0x1ea1ed['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xb9076f)return _0x6dab19;if('fontColor'===_0x109f74||'fontBackgroundColor'===_0x109f74){const _0x55bcd5=_0x48bcc7(_0x44e063['config']['get']('fontColor.colors'))['find'](_0x4ddf4d=>_0x4ddf4d['model']==_0xb9076f);return _0x6dab19+'\x20('+(_0x55bcd5?_0x19b1c5(_0x55bcd5['label'])['toLowerCase']():_0xb9076f)+')';}if('fontSize'===_0x109f74&&isNaN(parseFloat(_0xb9076f))){const _0x3ccf9e=_0x44e063['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x44e063['config']['get']('fontSize.options'))['find'](_0x52357d=>_0x52357d['model']==_0xb9076f);return _0x6dab19+'\x20('+(_0x3ccf9e?_0x19b1c5(_0x3ccf9e['title'])['toLowerCase']():_0xb9076f)+')';}return _0x6dab19+'\x20('+_0xb9076f+')';}class nt extends _0x10f0de{['_headingOptions'];['afterInit'](){const _0x45a440=this['editor'];if(!_0x45a440['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x45a440['config']['get']('heading.options');const _0x3cc58b=_0x45a440['locale'],_0xd5d476=_0x45a440['plugins']['get']('TrackChangesEditing');_0xd5d476['enableDefaultAttributesIntegration']('heading');for(const _0x2618b9 of this['_headingOptions'])'paragraph'!=_0x2618b9['model']&&_0xd5d476['descriptionFactory']['registerElementLabel'](_0x2618b9['model'],_0x49b87e=>{const _0x48d38c=this['_getHeadingLevel'](_0x2618b9['model']);return null!==_0x48d38c?_0x50943e(_0x49b87e,_0x48d38c):_0x3262a3(_0x49b87e,_0x2618b9['title']);});function _0x50943e(_0xa81aa9,_0x515be6){return c(_0x3cc58b,'ELEMENT_HEADING',[_0xa81aa9,_0x515be6]);}function _0x3262a3(_0xfeb60a,_0xb43f43){return c(_0x3cc58b,'ELEMENT_HEADING_CUSTOM',[_0xfeb60a,_0xb43f43]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39b71a=this['editor'],_0x33acb1=_0x39b71a['locale'];function _0x3b182b(_0x5023a6,_0x19e881){return c(_0x33acb1,'ELEMENT_HEADING_CUSTOM',[_0x5023a6,_0x19e881]);}_0x39b71a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30df3a=>{if('formatBlock'!=_0x30df3a['type'])return;const {data:_0x3232be}=_0x30df3a;if(_0x3232be&&'heading'==_0x3232be['commandName']){const _0x307885=_0x3232be['commandParams'][0x0]['value'],_0x1b66de=this['_getHeadingLevel'](_0x307885);if(null!==_0x1b66de)return{'type':'format','content':c(_0x33acb1,'*Change\x20to:*\x20%0',(_0x1f0a52=0x1,_0x28a831=_0x1b66de,c(_0x33acb1,'ELEMENT_HEADING',[_0x1f0a52,_0x28a831])))};const _0x2dcc26=this['_headingOptions']['find'](_0x4c1338=>_0x4c1338['model']===_0x307885)['title'];return{'type':'format','content':c(_0x33acb1,'*Change\x20to:*\x20%0',_0x3b182b(0x1,_0x2dcc26))};}var _0x1f0a52,_0x28a831;});}['_getHeadingLevel'](_0x4fe9be){const _0x14518f=_0x4fe9be['match'](/^heading(\d+)/);if(_0x14518f)return _0x14518f[0x1];const _0x271eef=this['_headingOptions']?.['find'](_0x1bdfbd=>_0x1bdfbd['model']==_0x4fe9be);if(_0x271eef&&_0x271eef['view']){const _0x537709=_0x271eef['view'],_0xcca048=(_0x537709['name']??_0x537709)['match'](/^h(\d+)/);if(_0xcca048)return _0xcca048[0x1];}return null;}}class it extends _0x10f0de{['afterInit'](){const _0x516ad1=this['editor'];if(!_0x516ad1['plugins']['has']('HighlightEditing'))return;const _0xe7d823=_0x516ad1['plugins']['get']('TrackChangesEditing'),_0x40b7a4=_0x516ad1['locale'];_0xe7d823['enableDefaultAttributesIntegration']('highlight'),_0xe7d823['registerInlineAttribute']('highlight'),_0xe7d823['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x40b7a4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8d4a35=this['editor'],_0x311434=_0x8d4a35['locale'];_0x8d4a35['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x517cc5=>{if('formatInline'!=_0x517cc5['type'])return;const {data:_0x40388b}=_0x517cc5;if(_0x40388b&&'highlight'==_0x40388b['commandName']){const _0x135980=_0x311434['t'],_0x2d8a0f=_0x40388b['commandParams'][0x0]['value'];if(_0x2d8a0f){const _0x507c9e=_0x8d4a35['config']['get']('highlight.options')['find'](_0x4ee6af=>_0x4ee6af['model']==_0x2d8a0f),_0x3d4324=_0x135980(_0x507c9e['title'])['toLowerCase']();return{'type':'format','content':c(_0x311434,'*Set\x20highlight:*\x20%0',_0x3d4324),'color':{'value':_0x507c9e['color'],'title':_0x507c9e['title']}};}return{'type':'format','content':c(_0x311434,'*Remove\x20highlight*',c(_0x311434,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x10f0de{['afterInit'](){const _0x4d2cc9=this['editor'];if(!_0x4d2cc9['plugins']['has']('HorizontalLineEditing'))return;_0x4d2cc9['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x8c5c9b=_0x4d2cc9['plugins']['get']('TrackChangesEditing'),_0x1d7ed7=_0x4d2cc9['locale'];_0x8c5c9b['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1f2a35=>c(_0x1d7ed7,'ELEMENT_HORIZONTAL_LINE',_0x1f2a35)),_0x4d2cc9['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x495089,{writer:_0x17c47d,options:_0x34c5c8})=>{if(!_0x34c5c8['showSuggestionHighlights'])return null;const _0x4064ec=_0x17c47d['createContainerElement']('div'),_0x32c5f4=_0x17c47d['createEmptyElement']('hr');return _0x17c47d['addClass']('ck-horizontal-line',_0x4064ec),_0x17c47d['insert'](_0x17c47d['createPositionAt'](_0x4064ec,0x0),_0x32c5f4),_0x4064ec;},'converterPriority':'high'});}}class ot extends _0x10f0de{['afterInit'](){const _0x4bf585=this['editor'];if(!_0x4bf585['plugins']['has']('HtmlEmbed'))return;const _0x51580d=_0x4bf585['plugins']['get']('TrackChangesEditing'),_0x3bfc21=_0x4bf585['locale'];_0x51580d['descriptionFactory']['registerElementLabel']('rawHtml',_0x18250d=>c(_0x3bfc21,'ELEMENT_HTML_EMBED',_0x18250d)),_0x51580d['enableDefaultAttributesIntegration']('htmlEmbed'),_0x51580d['registerBlockAttribute']('value'),_0x51580d['descriptionFactory']['registerDescriptionCallback'](_0x1da7c3=>{if('attribute'!=_0x1da7c3['type'])return;const {data:_0x2af6f0}=_0x1da7c3;if(_0x2af6f0&&'value'==_0x2af6f0['key']&&_0x1da7c3['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4aa668=c(_0x3bfc21,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x3bfc21,'*Change\x20%0\x20content*',_0x4aa668)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15bff5=this['editor'],_0x23c0ed=_0x15bff5['locale'];_0x15bff5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29367e=>{if('formatBlock'!=_0x29367e['type'])return;const {data:_0x2d7e64}=_0x29367e;if(_0x2d7e64&&'htmlEmbed'==_0x2d7e64['commandName']){const _0x2d57a7=c(_0x23c0ed,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x23c0ed,'*Change\x20%0\x20content*',_0x2d57a7)};}});}}class rt extends _0x10f0de{['afterInit'](){const _0x211420=this['editor'];if(!_0x211420['plugins']['has']('ImageEditing'))return;const _0x8beeef=_0x211420['plugins']['get']('TrackChangesEditing'),_0x2ffc12=_0x211420['plugins']['get']('ImageUtils'),_0x1fe5e3=_0x211420['locale'];_0x8beeef['enableCommand']('insertImage'),_0x8beeef['descriptionFactory']['registerElementLabel']('imageBlock',_0x5aa736=>c(_0x1fe5e3,'ELEMENT_IMAGE',_0x5aa736)),_0x8beeef['descriptionFactory']['registerElementLabel']('imageInline',_0x2b7fa2=>c(_0x1fe5e3,'ELEMENT_INLINE_IMAGE',_0x2b7fa2)),_0x8beeef['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x1fe5e3,'ELEMENT_CAPTION')),_0x211420['plugins']['has']('ImageUploadEditing')&&_0x8beeef['enableCommand']('uploadImage'),_0x211420['plugins']['has']('ImageBlockEditing')&&_0x211420['plugins']['has']('ImageInlineEditing')&&(_0x8beeef['enableCommand']('imageTypeInline',(_0x5c2484,_0x5df07e)=>{const _0x1a55ea=_0x2ffc12['getClosestSelectedImageElement'](_0x211420['model']['document']['selection']);_0x211420['model']['change'](()=>{_0x8beeef['markBlockFormat'](_0x1a55ea,{'commandName':'imageTypeInline','commandParams':[_0x5df07e]},[],'convertBlockImageToInline');});}),_0x8beeef['enableCommand']('imageTypeBlock',(_0x4f394a,_0x47f717)=>{_0x211420['model']['change'](_0x58d41e=>{let _0x1ae19c=_0x2ffc12['getClosestSelectedImageElement'](_0x211420['model']['document']['selection']),_0x1f99e6=_0x58d41e['createRangeOn'](_0x1ae19c);const _0x2639e9=_0x5d7b3b['fromPosition'](_0x1f99e6['start'],'toPrevious'),_0x57f18b=_0x5d7b3b['fromPosition'](_0x1f99e6['end'],'toNext');_0x8beeef['forceDefaultExecution'](()=>_0x4f394a(_0x47f717)),_0x1ae19c=_0x2ffc12['getClosestSelectedImageElement'](_0x211420['model']['document']['selection']),_0x1f99e6=_0x58d41e['createRangeOn'](_0x1ae19c);const _0x395252=_0x58d41e['createRange'](_0x2639e9,_0x57f18b);_0x2639e9['detach'](),_0x57f18b['detach'](),_0x8beeef['markBlockFormat'](_0x1ae19c,{'commandName':'imageTypeInline','commandParams':[_0x47f717]},[],'convertInlineImageToBlock'),_0x395252['start']['isBefore'](_0x1f99e6['start'])&&_0x8beeef['markInsertion'](_0x58d41e['createRange'](_0x395252['start'],_0x1f99e6['start']),'convertInlineImageToBlock'),_0x1f99e6['end']['isBefore'](_0x395252['end'])&&_0x8beeef['markInsertion'](_0x58d41e['createRange'](_0x1f99e6['end'],_0x395252['end']),'convertInlineImageToBlock');});}),_0x8beeef['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x8beeef['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x8beeef['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x8beeef['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x8beeef['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x8beeef['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1dc8ca])=>{const _0x3500f9=_0x8beeef['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x8a28bf=_0x1dc8ca['start'],_0x594428=_0x1dc8ca['end'];const _0x4680ed=_0x211420['model']['schema']['getNearestSelectionRange'](_0x8a28bf,'backward'),_0x3948d6=_0x211420['model']['schema']['getNearestSelectionRange'](_0x594428,'forward');_0x4680ed['isCollapsed']&&(_0x8a28bf=_0x4680ed['start']),_0x3948d6['isCollapsed']&&(_0x594428=_0x3948d6['end']),_0x3500f9([_0x211420['model']['createRange'](_0x8a28bf,_0x594428)]);}),_0x8beeef['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5cdd93),_0x8beeef['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5cdd93)),_0x211420['plugins']['has']('ImageCaptionEditing')&&(_0x8beeef['enableCommand']('toggleImageCaption',(_0xfdc6e0,_0xe4d95e)=>{const _0x2a877e=_0x211420['plugins']['get']('ImageCaptionUtils');let _0x3cb262=_0x2ffc12['getClosestSelectedImageElement'](_0x211420['model']['document']['selection']),_0x243e35=_0x2a877e['getCaptionFromImageModelElement'](_0x3cb262);_0x211420['model']['change'](()=>{if(_0x243e35)return void _0x8beeef['markDeletion'](_0x211420['model']['createRangeOn'](_0x243e35));const _0x6b82b5=_0x2ffc12['isBlockImage'](_0x3cb262);_0xfdc6e0(_0xe4d95e),_0x3cb262=_0x2ffc12['getClosestSelectedImageElement'](_0x211420['model']['document']['selection']),_0x243e35=_0x2a877e['getCaptionFromImageModelElement'](_0x3cb262),_0x8beeef['markInsertion'](_0x211420['model']['createRangeOn'](_0x243e35),_0x6b82b5?null:'imageCaption');});}),_0x8beeef['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5cdd93));const _0x1009b5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4966ad(_0x42dc64,_0x48038d){const _0x3098a9=_0x1009b5['findIndex'](({type:_0x49a168,subType:_0x557417})=>_0x42dc64['type']==_0x49a168&&_0x42dc64['subType']==_0x557417),_0x3d0434=_0x1009b5['findIndex'](({type:_0x4fdefd,subType:_0x3df23c})=>_0x48038d['type']==_0x4fdefd&&_0x48038d['subType']==_0x3df23c);if(_0x3098a9<0x0||_0x3d0434<0x0)return!0x1;const _0x3261c2=_0x42dc64['getFirstRange'](),_0x42cb70=_0x48038d['getFirstRange']();if((0x0==_0x3098a9||0x1==_0x3098a9)&&0x2==_0x3d0434&&_0x3261c2['isIntersecting'](_0x42cb70))return!0x0;if(0x2==_0x3098a9&&0x3==_0x3d0434){const _0x291f40=_0x8beeef['_findSuggestions'](_0x3261c2,'insertion')['filter'](({suggestion:_0x248e56,meta:_0x3bbef0})=>_0x3bbef0['isOwn']&&'convertInlineImageToBlock'==_0x248e56['subType']);if(_0x291f40['length']>0x1&&_0x42cb70['end']['isEqual'](_0x3261c2['start']))return!0x0;if(0x1==_0x291f40['length']&&(_0x3261c2['start']['isEqual'](_0x42cb70['end'])||_0x3261c2['end']['isEqual'](_0x42cb70['start'])))return!0x0;}if(0x3==_0x3098a9&&0x3==_0x3d0434&&_0x3261c2['start']['isBefore'](_0x42cb70['start'])){const _0x431af0=_0x3261c2['end']['nodeAfter'],_0x2c110c=_0x42cb70['start']['nodeBefore'];return _0x2ffc12['isBlockImage'](_0x431af0)&&_0x431af0===_0x2c110c;}return!0x1;}function _0x5cdd93(_0x1fc2ee,_0x41300e){return _0x4966ad(_0x1fc2ee,_0x41300e)?[_0x1fc2ee,_0x41300e]:_0x4966ad(_0x41300e,_0x1fc2ee)?[_0x41300e,_0x1fc2ee]:null;}_0x211420['plugins']['has']('ImageResize')&&(_0x8beeef['enableDefaultAttributesIntegration']('resizeImage'),_0x8beeef['registerBlockAttribute']('resizedWidth'),_0x8beeef['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x1fe5e3,'FORMAT_IMAGE_SIZE'))),_0x211420['plugins']['has']('ImageTextAlternativeEditing')&&(_0x8beeef['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x8beeef['registerBlockAttribute']('alt')),_0x211420['plugins']['has']('PictureEditing')&&(_0x8beeef['registerBlockAttribute']('sources'),_0x8beeef['descriptionFactory']['registerDescriptionCallback'](_0x537b7d=>{if('attribute'!=_0x537b7d['type'])return;const {data:_0x184893}=_0x537b7d;return _0x184893&&'sources'==_0x184893['key']?{'type':'format','content':''}:void 0x0;})),_0x211420['plugins']['has']('ImageSizeAttributes')&&(_0x8beeef['registerBlockAttribute']('width'),_0x8beeef['registerBlockAttribute']('height'),_0x8beeef['descriptionFactory']['registerDescriptionCallback'](_0x2a229e=>{if('attribute'!=_0x2a229e['type'])return;const {data:_0x102563}=_0x2a229e;return!_0x102563||'width'!=_0x102563['key']&&'height'!=_0x102563['key']?void 0x0:{'type':'format','content':''};})),_0x8beeef['descriptionFactory']['registerDescriptionCallback'](_0x17966d=>{if(!!_0x1009b5['find'](({type:_0x1e78ea,subType:_0x22e820})=>_0x17966d['type']==_0x1e78ea&&_0x17966d['subType']==_0x22e820))return _0x17966d['previous']?{}:void 0x0;}),_0x8beeef['descriptionFactory']['registerDescriptionCallback'](_0x2d94e4=>{if('insertion'==_0x2d94e4['type']||'deletion'==_0x2d94e4['type']){const _0x2d5c14=_0x2d94e4['getContainedElement']();if(_0x2d5c14&&_0x2d5c14['is']('element','caption'))return{'type':'insertion'==_0x2d94e4['type']?'addObject':'removeObject','element':_0x2d5c14,'quantity':0x1};}}),_0x8beeef['descriptionFactory']['registerDescriptionCallback'](_0x3ff35f=>'formatBlock'==_0x3ff35f['type']&&'convertInlineImageToBlock'==_0x3ff35f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3ff35f['type']&&'convertBlockImageToInline'==_0x3ff35f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x8beeef['descriptionFactory']['registerDescriptionCallback'](_0x27b030=>{if('attribute'!=_0x27b030['type'])return;const {data:_0x5ce02b}=_0x27b030;if(!_0x5ce02b||'alt'!=_0x5ce02b['key'])return;const _0x4b33b3=_0x5ce02b['newValue'];return _0x4b33b3?{'type':'format','content':c(_0x1fe5e3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4b33b3+'\x22')}:{'type':'format','content':c(_0x1fe5e3,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19c1e3=this['editor'],_0x1946a0=_0x19c1e3['locale'];_0x19c1e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3942af=>{if('formatBlock'!=_0x3942af['type']&&'formatInline'!=_0x3942af['type'])return;const {data:_0x2d3b2a}=_0x3942af;if(_0x2d3b2a){if('imageTextAlternative'==_0x2d3b2a['commandName']){const _0x2f7519=_0x2d3b2a['commandParams'][0x0]['newValue'];return _0x2f7519?{'type':'format','content':c(_0x1946a0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2f7519+'\x22')}:{'type':'format','content':c(_0x1946a0,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2d3b2a['commandName']){const _0x3634e8=_0x2d3b2a['commandParams'][0x0]['width'];return _0x3634e8?{'type':'format','content':c(_0x1946a0,'*Set\x20image\x20width:*\x20%0',_0x3634e8)}:{'type':'format','content':c(_0x1946a0,'*Reset\x20image\x20width*')};}}});}}class at extends _0x10f0de{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x53e9ac=this['editor']['locale'],_0x411f7c=this['editor']['plugins']['get']('TrackChangesEditing');_0x411f7c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x411f7c['registerBlockAttribute']('src'),_0x411f7c['descriptionFactory']['registerDescriptionCallback'](_0x2e7c65=>{if('attribute'!=_0x2e7c65['type'])return;const {data:_0x1fefa2}=_0x2e7c65;return _0x1fefa2&&'src'==_0x1fefa2['key']?_0x1fefa2['newValue']&&_0x1fefa2['oldValue']?{'type':'format','content':c(_0x53e9ac,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4b320a=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b320a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4b320a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4b320a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4b320a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f1782=this['editor'],_0x3f098a=_0x4f1782['locale'];_0x4f1782['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x504a75=>{if('formatBlock'!=_0x504a75['type']&&'formatInline'!=_0x504a75['type'])return;const {data:_0x45361c}=_0x504a75;if(!_0x45361c||'replaceImageSource'!=_0x45361c['commandName'])return;return{'type':'format','content':c(_0x3f098a,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x10f0de{['afterInit'](){const _0x27ab9a=this['editor'];if(!_0x27ab9a['plugins']['has']('ImageStyleEditing'))return;const _0x322def=_0x27ab9a['plugins']['get']('TrackChangesEditing'),_0x39197e=_0x27ab9a['plugins']['get']('ImageUtils'),_0x5993da={};_0x322def['enableCommand']('imageStyle',(_0x22c700,_0x44cc89)=>{const _0x19eda8=_0x27ab9a['plugins']['get']('Users')['me'],_0xc3998c=_0x27ab9a['commands']['get']('imageStyle');let _0x1c77e0=_0x39197e['getClosestSelectedImageElement'](_0x27ab9a['model']['document']['selection']),_0x2c8d23=_0x27ab9a['model']['createRangeOn'](_0x1c77e0),_0x5de3ff=_0xc3998c['value'];if(_0x5de3ff==_0x44cc89['value'])return;const _0x361367={'commandName':'imageStyle','commandParams':[_0x44cc89],'formatGroupId':_0x22ea39()};_0x27ab9a['model']['change'](()=>{if(_0x322def['getSuggestions']()['filter'](_0x2a36ae=>_0x2a36ae['isInContent']&&_0x19eda8==_0x2a36ae['author']&&('formatBlock'==_0x2a36ae['type']||'formatInline'==_0x2a36ae['type'])&&('imageStylePreApply'==_0x2a36ae['subType']||'imageStylePostApply'==_0x2a36ae['subType'])&&_0x2a36ae['getFirstRange']()['isEqual'](_0x2c8d23))['forEach'](_0x5edc36=>_0x322def['discardSuggestion'](_0x5edc36['head'])),_0x1c77e0=_0x39197e['getClosestSelectedImageElement'](_0x27ab9a['model']['document']['selection']),_0x2c8d23=_0x27ab9a['model']['createRangeOn'](_0x1c77e0),_0xc3998c['refresh'](),_0x27ab9a['commands']['get']('imageTypeInline')['refresh'](),_0x27ab9a['commands']['get']('imageTypeBlock')['refresh'](),_0x5de3ff=_0xc3998c['value'],_0x5de3ff!=_0x44cc89['value'])return _0x39197e['isInlineImage'](_0x1c77e0)&&_0xc3998c['shouldConvertImageType'](_0x44cc89['value'],_0x1c77e0)?(_0x22c700({..._0x44cc89,'setImageSizes':!0x1}),_0x1c77e0=_0x39197e['getClosestSelectedImageElement'](_0x27ab9a['model']['document']['selection']),void _0x322def['markBlockFormat'](_0x1c77e0,{..._0x361367,'commandReversedParams':[{'value':_0x5de3ff||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x39197e['isBlockImage'](_0x1c77e0)?_0x322def['markBlockFormat'](_0x1c77e0,_0x361367,[],'imageStylePostApply'):_0x322def['markInlineFormat'](_0x2c8d23,_0x361367,'imageStylePostApply'));});});for(const _0x153091 of _0x27ab9a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5993da[_0x153091['name']]=_0x153091['title']['toLowerCase']();_0x322def['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x322def['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x322def['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x322def['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x97f9b1])=>{_0x39197e['setImageNaturalSizeAttributes'](_0x97f9b1['getContainedElement']());}),_0x322def['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5e3190,_0x4dfb6b)=>{_0x322def['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5e3190,{'commandName':_0x4dfb6b['commandName'],'commandParams':_0x4dfb6b['commandReversedParams']});}),_0x322def['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x179c4e,_0x2c4b47){if(_0x251e94(_0x179c4e,_0x2c4b47))return[_0x179c4e,_0x2c4b47];if(_0x251e94(_0x2c4b47,_0x179c4e))return[_0x2c4b47,_0x179c4e];return null;});const _0x47da82=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x251e94(_0x5c125b,_0x4bb39b){const _0x3b8909=_0x47da82['findIndex'](({type:_0x1ba609,subType:_0x2d8d00})=>_0x5c125b['type']==_0x1ba609&&_0x5c125b['subType']==_0x2d8d00),_0x8d93a3=_0x47da82['findIndex'](({type:_0x4c05a5,subType:_0xa06abe})=>_0x4bb39b['type']==_0x4c05a5&&_0x4bb39b['subType']==_0xa06abe);if(_0x3b8909<0x0||_0x8d93a3<0x0)return!0x1;const _0x3a9399=_0x5c125b['getFirstRange'](),_0xdcd261=_0x4bb39b['getFirstRange']();if((0x0==_0x3b8909||0x1==_0x3b8909)&&0x2==_0x8d93a3&&_0x3a9399['isIntersecting'](_0xdcd261))return!0x0;if(0x2==_0x3b8909&&0x3==_0x8d93a3){const _0x29e14c=_0x322def['_findSuggestions'](_0x3a9399,'insertion')['filter'](({suggestion:_0x88b48a,meta:_0x4dd708})=>_0x4dd708['isOwn']&&'convertInlineImageToBlock'==_0x88b48a['subType']);if(_0x29e14c['length']>0x1&&_0xdcd261['end']['isEqual'](_0x3a9399['start']))return!0x0;if(0x1==_0x29e14c['length']&&(_0x3a9399['start']['isEqual'](_0xdcd261['end'])||_0x3a9399['end']['isEqual'](_0xdcd261['start'])))return!0x0;}if(0x3==_0x3b8909&&0x3==_0x8d93a3&&_0x3a9399['start']['isBefore'](_0xdcd261['start'])){const _0x34c4c1=_0x3a9399['end']['nodeAfter'],_0x4e2066=_0xdcd261['start']['nodeBefore'];return _0x39197e['isBlockImage'](_0x34c4c1)&&_0x34c4c1===_0x4e2066;}return!0x1;}_0x27ab9a['model']['document']['registerPostFixer'](()=>{let _0x35c4cd=!0x1;const _0x489105=Array['from'](_0x27ab9a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x51fcff,data:_0x28f40f}of _0x489105){const {group:_0x5f1649,type:_0xc7cbd2,subType:_0x273e11,id:_0x2cc281}=_0x322def['_splitMarkerName'](_0x51fcff);if('suggestion'==_0x5f1649&&_0x322def['hasSuggestion'](_0x2cc281)){if('formatBlock'==_0xc7cbd2&&('imageStylePreApply'==_0x273e11||'imageStylePostApply'==_0x273e11)){const _0x5bddea=_0x322def['getSuggestion'](_0x2cc281);if(_0x28f40f['newRange']){const _0x313c98=_0x5bddea['getFirstRange']()['getContainedElement']();if(_0x39197e['isBlockImage'](_0x313c98))continue;_0x322def['discardSuggestion'](_0x5bddea),_0x35c4cd=!0x0;}}if('insertion'==_0xc7cbd2&&'imageCaption'==_0x273e11&&!_0x28f40f['newRange']){const _0x3751da=_0x322def['getSuggestion'](_0x2cc281);_0x3751da['next']&&_0x3751da['next']['isInContent']&&(_0x322def['discardSuggestion'](_0x3751da['next']),_0x35c4cd=!0x0);}}}return _0x35c4cd;}),this['_registerLegacyDescription'](_0x5993da);}['_registerLegacyDescription'](_0x808fcc){const _0xcd20af=this['editor'],_0x523b92=_0xcd20af['locale'];_0xcd20af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24bbef=>{if('formatBlock'!=_0x24bbef['type']&&'formatInline'!=_0x24bbef['type'])return;const {data:_0x340867}=_0x24bbef;if(!_0x340867||'imageStyle'!=_0x340867['commandName'])return;const _0x2da54e=_0x340867['commandParams'][0x0]['value'];return _0x4b212f('side'===_0x2da54e?c(_0x523b92,'FORMAT_SIDE_IMAGE'):_0x808fcc[_0x2da54e]||_0x2da54e);function _0x4b212f(_0x5209ae){return{'type':'format','content':c(_0x523b92,'*Format:*\x20%0',_0x5209ae)};}});}}class ut extends _0x10f0de{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x122155){super(_0x122155),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x242fdc=this['editor'],_0x4c2e4b=_0x242fdc['commands']['get']('importWord'),_0x22a538=_0x242fdc['commands']['get']('trackChanges');_0x4c2e4b&&(_0x4c2e4b['on']('execute',(_0x275a28,[,_0xf75156])=>{this['_trackChangesValueDuringImport']=_0x22a538['value'],_0xf75156['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4c2e4b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4c2e4b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x22a538['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x242fdc['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x16dfc6,_0x28c13b){const {suggestions:_0x3f97af}=_0x28c13b,_0x398562=this['editor']['commands']['get']('trackChanges'),_0x2a0d22=_0x398562['value'];this['_trackChangesValueDuringImport']!==_0x2a0d22&&(_0x398562['execute'](),this['_trackChangesExecuted']=!0x0),_0x3f97af&&_0x3f97af['forEach'](({id:_0x4ead8b,type:_0x19a52f,author:_0x381526,created_at:_0x1b7c54})=>{const _0xa30971={'id':_0x4ead8b,'type':_0x19a52f,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x381526,'createdAt':_0x1b7c54?new Date(_0x1b7c54):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xa30971);});}}class ft extends _0x10f0de{['afterInit'](){const _0x197a62=this['editor'],_0x59a809=_0x197a62['plugins']['get']('TrackChangesEditing');if(_0x197a62['plugins']['has']('IndentEditing')&&(_0x59a809['enableCommand']('indent'),_0x59a809['enableCommand']('outdent')),_0x197a62['plugins']['has']('IndentBlock')){for(const _0x46288b of['indentBlock','outdentBlock'])_0x59a809['enableDefaultAttributesIntegration'](_0x46288b);}const _0x4a8c99=_0x197a62['locale'];_0x59a809['registerBlockAttribute']('blockIndent'),_0x59a809['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x4a8c99,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3462dd=this['editor'],_0x4c05ed=_0x3462dd['locale'],_0x43ce7f=_0x3462dd['plugins']['get']('TrackChangesEditing');_0x43ce7f['descriptionFactory']['registerDescriptionCallback'](_0x3a7456=>{if('formatBlock'!=_0x3a7456['type'])return;const {data:_0x38843f}=_0x3a7456;if(!_0x38843f)return;if('indentBlock'!=_0x38843f['commandName']&&'outdentBlock'!=_0x38843f['commandName'])return;const _0x3489c1=_0x3a7456['getItems']()[0x0],_0x34076b=_0x43ce7f['descriptionFactory']['getItemLabel'](_0x3489c1);return'indentBlock'==_0x38843f['commandName']?{'type':'format','content':c(_0x4c05ed,'*Indent:*\x20%0',_0x34076b)}:'outdentBlock'==_0x38843f['commandName']?{'type':'format','content':c(_0x4c05ed,'*Outdent:*\x20%0',_0x34076b)}:void 0x0;});}}class ht extends _0x10f0de{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x10f0de{['afterInit'](){const _0x6f3c66=this['editor'];if(!_0x6f3c66['plugins']['has']('LinkEditing'))return;const _0x5ed868=_0x6f3c66['plugins']['get']('TrackChangesEditing'),_0x248be8=_0x6f3c66['commands']['get']('link');_0x5ed868['enableDefaultAttributesIntegration']('link'),_0x5ed868['enableDefaultAttributesIntegration']('unlink'),_0x5ed868['registerInlineAttribute']('linkHref');for(const _0x2ac20f of _0x248be8['manualDecorators'])_0x5ed868['registerInlineAttribute'](_0x2ac20f['id']),_0x5ed868['descriptionFactory']['registerAttributeLabel'](_0x2ac20f['id'],'link\x20('+_0x2ac20f['label']['toLowerCase']()+')');_0x5ed868['descriptionFactory']['registerDescriptionCallback'](_0x550eea=>{if('attribute'!=_0x550eea['type'])return;const {data:_0x46742d}=_0x550eea;if(!_0x46742d||'linkHref'!=_0x46742d['key'])return;const _0x57a7c4=_0x46742d['newValue'],_0x18c1cc=_0x6f3c66['locale'];return{'type':'format','content':null==_0x57a7c4?c(_0x18c1cc,'*Remove\x20link*'):c(_0x18c1cc,'*Set\x20link:*\x20%0','\x22'+_0x57a7c4+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50173a=this['editor'],_0x3bd0b3=_0x50173a['locale'];_0x50173a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a065b=>{if('formatInline'!=_0x2a065b['type'])return;const {data:_0x1710e3}=_0x2a065b;if(_0x1710e3){if('link'==_0x1710e3['commandName']){const _0x470e98=_0x1710e3['commandParams'][0x0];return{'type':'format','content':c(_0x3bd0b3,'*Set\x20link:*\x20%0','\x22'+_0x470e98+'\x22')};}return'unlink'==_0x1710e3['commandName']?{'type':'format','content':c(_0x3bd0b3,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x10f0de{['afterInit'](){const _0x58d79e=this['editor'],_0x44c0ae=_0x58d79e['locale'];if(!_0x58d79e['plugins']['has']('LegacyListEditing'))return;const _0x356481=_0x58d79e['plugins']['get']('TrackChangesEditing'),_0x1d8199=_0x58d79e['plugins']['has']('LegacyTodoListEditing');function _0x5282d8(_0x138793){return()=>{const _0x52096a=_0x58d79e['model']['document']['selection'],_0x2d2d38=_0x58d79e['commands']['get'](_0x138793);if(_0x2d2d38['value'])return void _0x58d79e['execute']('paragraph',{});const _0x4b48e0=_0x138793['slice'](0x0,-0x4),_0x2469a8=function(_0xd2dbc,_0x18fbf2,_0x7fd38e){let _0x4fd538=Array['from'](_0xd2dbc)['filter'](_0xafecce=>function(_0x309481,_0x30998b){return _0x30998b['checkChild'](_0x309481['parent'],'listItem')&&!_0x30998b['isObject'](_0x309481);}(_0xafecce,_0x7fd38e));_0x4fd538=_0x4fd538['filter'](_0x4fb7b8=>!_0x4fb7b8['is']('element','listItem')||_0x4fb7b8['getAttribute']('listType')!=_0x18fbf2);const _0x2be618=new Set();for(const _0x68d978 of _0x4fd538)_0x68d978['is']('element','listItem')?_0x2be618['add'](Le(_0x68d978)):_0x2be618['add'](_0x68d978);return Array['from'](_0x2be618);}(_0x52096a['getSelectedBlocks'](),_0x4b48e0,_0x58d79e['model']['schema']);_0x58d79e['model']['change'](()=>{for(const _0x42981e of _0x2469a8)_0x356481['markBlockFormat'](_0x42981e,{'commandName':_0x138793,'commandParams':[{'forceValue':!_0x2d2d38['value']}],'formatGroupId':'blockName'},Ee(_0x42981e));});};}function _0x10e328(_0x36639f){return()=>{const _0x3602ec=function(_0x3adbde){let _0x50412a=Array['from'](_0x3adbde);const _0x4db5e4=_0x50412a['findIndex'](_0x2b6d44=>'listItem'!=_0x2b6d44['name']);return _0x4db5e4>-0x1&&(_0x50412a=_0x50412a['slice'](0x0,_0x4db5e4)),_0x50412a;}(_0x58d79e['model']['document']['selection']['getSelectedBlocks']()),_0x25f927=_0x58d79e['model']['createRange'](_0x58d79e['model']['createPositionAt'](_0x3602ec[0x0],'before'),_0x58d79e['model']['createPositionAt'](_0x3602ec[_0x3602ec['length']-0x1],'end'));_0x58d79e['model']['change'](()=>{_0x356481['markBlockFormat'](_0x25f927,{'commandName':_0x36639f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x49fad1){const _0x38667e=new Set();for(const _0x3cf605 of _0x49fad1){let _0x4cc4c8=_0x3cf605['nextSibling'];for(;_0x4cc4c8&&_0x4cc4c8['getAttribute']('listIndent')>_0x3cf605['getAttribute']('listIndent');)_0x38667e['add'](_0x4cc4c8),_0x4cc4c8=_0x4cc4c8['nextSibling'];}return Array['from'](_0x38667e);}(_0x3602ec));});};}_0x356481['enableCommand']('numberedList',_0x5282d8('numberedList')),_0x356481['enableCommand']('bulletedList',_0x5282d8('bulletedList')),_0x1d8199&&_0x356481['enableCommand']('todoList',_0x5282d8('todoList')),_0x356481['enableCommand']('indentList',_0x10e328('indentList')),_0x356481['enableCommand']('outdentList',_0x10e328('outdentList')),_0x1d8199&&_0x356481['enableCommand']('checkTodoList',()=>{const _0x28f311=_0x58d79e['commands']['get']('checkTodoList'),_0x4386ac=Array['from'](_0x28f311['_selectedElements']);_0x4386ac['filter'](_0x382740=>_0x382740['getAttribute']('todoListChecked')!=_0x28f311['value']),_0x58d79e['model']['change'](()=>{for(const _0x25b68e of _0x4386ac)_0x356481['markBlockFormat'](_0x25b68e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x28f311['value']}]});});}),_0x356481['descriptionFactory']['registerElementLabel']('listItem',_0x409b2e=>c(_0x44c0ae,'ELEMENT_LIST_ITEM',_0x409b2e)),_0x356481['descriptionFactory']['registerDescriptionCallback'](_0x3c4ef0=>{if('formatBlock'!=_0x3c4ef0['type']&&'formatInline'!=_0x3c4ef0['type'])return;const {data:_0x2722b3}=_0x3c4ef0;if(_0x2722b3){if('numberedList'==_0x2722b3['commandName']||'bulletedList'==_0x2722b3['commandName']||'todoList'==_0x2722b3['commandName'])switch(_0x2722b3['commandName']['replace']('List','')){case'bulleted':return _0x58fb8d(c(_0x44c0ae,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x58fb8d(c(_0x44c0ae,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x58fb8d(c(_0x44c0ae,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2722b3['commandName'])return{'type':'format','content':c(_0x44c0ae,'*Indent:*\x20%0',c(_0x44c0ae,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2722b3['commandName'])return{'type':'format','content':c(_0x44c0ae,'*Outdent:*\x20%0',c(_0x44c0ae,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2722b3['commandName'])return _0x2722b3['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x44c0ae,'*Check\x20item*')}:{'type':'format','content':c(_0x44c0ae,'*Uncheck\x20item*')};}function _0x58fb8d(_0x281599){return{'type':'format','content':c(_0x44c0ae,'*Change\x20to:*\x20%0',_0x281599)};}});}}function Le(_0x23c12f){const _0x443085=_0x23c12f['getAttribute']('listIndent');if(0x0==_0x443085)return _0x23c12f;let _0x5d63b5=_0x23c12f;for(;_0x23c12f['previousSibling']&&_0x23c12f['previousSibling']['is']('element','listItem');){const _0x6f076d=_0x23c12f['previousSibling']['getAttribute']('listIndent');if(_0x6f076d==_0x443085)_0x5d63b5=_0x23c12f['previousSibling'];else{if(_0x6f076d<_0x443085)break;}_0x23c12f=_0x23c12f['previousSibling'];}return _0x5d63b5;}function Ee(_0x19c719){const _0x19f548=[];if(_0x19c719['is']('element','listItem')&&_0x19c719['getAttribute']('listIndent')>0x0){let _0x136757=_0x19c719['nextSibling'];for(;_0x136757&&'listItem'==_0x136757['name']&&_0x136757['getAttribute']('listIndent')==_0x19c719['getAttribute']('listIndent');)_0x19f548['push'](_0x136757),_0x136757=_0x136757['nextSibling'];}return _0x19f548;}class Q extends _0x10f0de{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5f2402=this['editor']['config']['get']('list.properties'),_0x428643=this['editor']['plugins']['get']('TrackChangesEditing');_0x5f2402['styles']&&_0x428643['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5f2402['reversed']&&_0x428643['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5f2402['startIndex']&&_0x428643['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x428643['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4c0ce1,_0x336cf5={}){const _0x53b969=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14ccad=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x53b969['markMultiRangeBlockFormat'](_0x14ccad,{'commandName':'listStyle','commandParams':[{'type':_0x336cf5['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3e2aa6,_0x376ed4={}){const _0x3fb813=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fff33=this['_getSuggestionBlocks'](_0x4a4b5b=>_0x4a4b5b['is']('element','listItem')&&'numbered'===_0x4a4b5b['getAttribute']('listType'));if(_0x2fff33['length']<0x1)return;const _0xffa2bf=_0x2fff33['map'](_0x3d4a17=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3d4a17,'before'),this['editor']['model']['createPositionAt'](_0x3d4a17,0x0)));this['editor']['model']['change'](()=>{_0x3fb813['markMultiRangeBlockFormat'](_0xffa2bf,{'commandName':'listReversed','commandParams':[{'reversed':_0x376ed4['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x438d47,_0x3c3995={}){const _0x2a3c9f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x482616=this['_getSuggestionBlocks'](_0x8c8e6c=>_0x8c8e6c['is']('element','listItem')&&'numbered'===_0x8c8e6c['getAttribute']('listType'));if(_0x482616['length']<0x1)return;const _0xf79c9a=_0x482616['map'](_0x3c6e49=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3c6e49,'before'),this['editor']['model']['createPositionAt'](_0x3c6e49,0x0)));this['editor']['model']['change'](()=>{_0x2a3c9f['markMultiRangeBlockFormat'](_0xf79c9a,{'commandName':'listStart','commandParams':[{'startIndex':_0x3c3995['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4b78f6){if('formatBlock'!=_0x4b78f6['type']&&'formatInline'!=_0x4b78f6['type'])return;const _0x3aa2b4=this['editor']['locale'],{data:_0x37f499}=_0x4b78f6;if(!_0x37f499)return;let _0x24929e,_0x1f812d;switch(_0x37f499['commandName']){case'listStyle':_0x24929e='*Change\x20to:*\x20%0',_0x1f812d={'type':'format','content':c(_0x3aa2b4,_0x24929e,c(_0x3aa2b4,this['_getTranslationKeyForListStyle'](_0x37f499['commandParams'][0x0]['type'])))};break;case'listReversed':_0x24929e=_0x37f499['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1f812d={'type':'format','content':c(_0x3aa2b4,_0x24929e)};break;case'listStart':_0x24929e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1f812d={'type':'format','content':c(_0x3aa2b4,_0x24929e,_0x37f499['commandParams'][0x0]['startIndex'])};}return _0x1f812d;}['_getSuggestionBlocksForListStyle'](){const _0x4a43f5=this['editor']['plugins']['get']('LegacyListUtils');let _0x1f5a96=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1f5a96[0x0]?.['is']('element','listItem')&&_0x1f5a96['unshift'](..._0x4a43f5['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1f5a96[_0x1f5a96['length']-0x1]?.['is']('element','listItem')&&_0x1f5a96['push'](..._0x4a43f5['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1f5a96=[...new Set(_0x1f5a96)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1f5a96=_0x1f5a96['filter'](_0x321ac9=>_0x321ac9['is']('element','listItem'))),_0x1f5a96;}['_getSuggestionBlocks'](_0x3dc402){const _0x5690fd=this['editor']['plugins']['get']('LegacyListUtils');let _0xfd3a20=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3dc402)['map'](_0x208cad=>{const _0x5e6591=this['editor']['model']['createPositionAt'](_0x208cad,0x0);return[..._0x5690fd['getSiblingNodes'](_0x5e6591,'backward'),..._0x5690fd['getSiblingNodes'](_0x5e6591,'forward')];})['flat']();return _0xfd3a20=[...new Set(_0xfd3a20)],_0xfd3a20;}['_getTranslationKeyForListStyle'](_0x5952ec){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5952ec)||'default')['toUpperCase']()+'_LIST_'+_0x5952ec['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x10f0de{['afterInit'](){const _0x43d46a=this['editor'];if(!_0x43d46a['plugins']['has']('MediaEmbedEditing'))return;const _0x21c43e=_0x43d46a['plugins']['get']('TrackChangesEditing'),_0x1f1831=_0x43d46a['locale'];_0x21c43e['enableCommand']('mediaEmbed'),_0x21c43e['descriptionFactory']['registerElementLabel']('media',_0x351ae8=>c(_0x1f1831,'ELEMENT_MEDIA',_0x351ae8)),_0x43d46a['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xc2ce85,{writer:_0x29440c,options:_0x50742a})=>{if(_0x50742a['showSuggestionHighlights'])return _0x29440c['createEmptyElement']('div');},'converterPriority':'high'}),_0x43d46a['data']['downcastDispatcher']['on']('attribute:url:media',(_0x45c2be,_0xf8ec9b,_0x35d91e)=>{_0x35d91e['options']['showSuggestionHighlights']&&_0x45c2be['stop']();},{'priority':'high'});}}class pt extends _0x10f0de{['afterInit'](){const _0x5b3259=this['editor'];_0x5b3259['plugins']['has']('MentionEditing')&&_0x5b3259['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x10f0de{['afterInit'](){const _0x54f641=this['editor'];if(!_0x54f641['plugins']['has']('MergeFieldsEditing'))return;const _0x1ae3dd=_0x54f641['plugins']['get']('TrackChangesEditing'),_0x1c1973=_0x54f641['locale'];_0x1ae3dd['enableCommand']('insertMergeField'),_0x1ae3dd['enableCommand']('insertMergeFieldBlock'),_0x1ae3dd['enableCommand']('insertMergeFieldImage'),_0x1ae3dd['descriptionFactory']['registerElementLabel']('mergeField',_0x3114f8=>c(_0x1c1973,'ELEMENT_MERGE_FIELD',_0x3114f8)),_0x1ae3dd['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x53c582=>c(_0x1c1973,'ELEMENT_MERGE_FIELD',_0x53c582)),_0x1ae3dd['descriptionFactory']['registerDescriptionCallback'](_0x5643ff=>{if('insertion'!=_0x5643ff['type']&&'deletion'!=_0x5643ff['type'])return;const _0x17f4bb=_0x5643ff['getContainedElement']();if(null==_0x17f4bb)return;const _0x282020=_0x54f641['plugins']['get']('MergeFieldsEditing');let _0x3575ec;switch(_0x282020['getMergeFieldType'](_0x17f4bb)){case null:return;case'image':{const _0x108dfb=_0x282020['unwrapAffixes'](_0x17f4bb['getAttribute']('src'));_0x3575ec=_0x282020['getLabel'](_0x108dfb)||_0x108dfb;break;}default:{const _0x466e4c=_0x17f4bb['getAttribute']('id');_0x3575ec=_0x282020['getLabel'](_0x466e4c)||_0x466e4c;break;}}return'insertion'==_0x5643ff['type']?{'type':'insertion','content':c(_0x1c1973,'*Insert:*\x20%0','\x22'+_0x3575ec+'\x22\x20'+c(_0x1c1973,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x1c1973,'*Remove:*\x20%0','\x22'+_0x3575ec+'\x22\x20'+c(_0x1c1973,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x10f0de{['afterInit'](){const _0x4631bb=this['editor'],_0x2366ab=_0x4631bb['plugins']['get']('TrackChangesEditing');_0x4631bb['plugins']['has']('MultiLevelList')&&(_0x2366ab['enableDefaultAttributesIntegration']('multiLevelList'),_0x2366ab['registerBlockAttribute']('listMarkerStyle'),_0x2366ab['descriptionFactory']['registerDescriptionCallback'](_0x294cb2=>this['handleDescriptions'](_0x294cb2)));}['handleDescriptions'](_0x406322){const _0x34f7b8=this['editor']['locale'],{data:_0x46f5bd}=_0x406322,_0x38d64f={'type':'format','content':''};if(_0x46f5bd&&'listMarkerStyle'==_0x46f5bd['key']){if(!_0x46f5bd['oldValue'])return{'type':'format','content':c(_0x34f7b8,'*Set\x20format:*\x20%0',c(_0x34f7b8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x46f5bd['newValue']+')'};if(!_0x46f5bd['newValue']){let _0x482258=_0x406322['head'];for(;_0x482258;){if(_0x482258['data']&&'listType'==_0x482258['data']['key']&&_0x482258['data']['newValue'])return _0x38d64f;_0x482258=_0x482258['next'];}return{'type':'format','content':c(_0x34f7b8,'*Remove\x20format:*\x20%0',c(_0x34f7b8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x46f5bd['oldValue']+')'};}}}}class bt extends _0x10f0de{['afterInit'](){const _0x3a1723=this['editor'];if(!_0x3a1723['plugins']['has']('PageBreakEditing'))return;_0x3a1723['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4094d8=_0x3a1723['plugins']['get']('TrackChangesEditing'),_0x1a763f=_0x3a1723['locale'];_0x4094d8['descriptionFactory']['registerElementLabel']('pageBreak',_0x5b9531=>c(_0x1a763f,'ELEMENT_PAGE_BREAK',_0x5b9531));}}class yt extends _0x10f0de{['afterInit'](){const _0x42f889=this['editor'];if(!_0x42f889['plugins']['has']('Paragraph'))return;const _0x4e47e2=_0x42f889['locale'],_0x569296=_0x42f889['plugins']['get']('TrackChangesEditing');_0x569296['descriptionFactory']['registerElementLabel']('paragraph',_0xbc42c0=>c(_0x4e47e2,'ELEMENT_PARAGRAPH',_0xbc42c0)),_0x569296['enableDefaultAttributesIntegration']('paragraph'),_0x569296['enableCommand']('insertParagraph'),_0x42f889['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x42f889),{'priority':'highest'}),_0x42f889['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x41b675,_0x2d2344,_0x21fc57)=>{_0x21fc57['options']['showSuggestionHighlights']&&nr(_0x42f889,{'showActiveMarker':!0x1})(_0x41b675,_0x2d2344,_0x21fc57);},{'priority':'highest'});const _0x55ea07=_0x569296['descriptionFactory'];_0x55ea07['registerDescriptionCallback'](_0x3c58ca=>{if('insertion'!==_0x3c58ca['type'])return;const {start:_0x573511,end:_0x5b8c38}=_0x3c58ca['getFirstRange']();if(!_0x573511['isTouching'](_0x5b8c38)||!_0x573511['nodeAfter'])return;const _0x3f06cc=_0x42f889['model']['schema'],_0x134670=_0x573511['nodeAfter'];return _0x3f06cc['isBlock'](_0x134670)&&!_0x3f06cc['isLimit'](_0x134670)&&_0x3f06cc['checkChild'](_0x134670,'$text')?{'type':'insertion','content':c(_0x4e47e2,'*Insert:*\x20%0',_0x55ea07['getItemLabel'](_0x134670,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47fec7=this['editor'],_0x200b66=_0x47fec7['locale'];_0x47fec7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3301d1=>{if('formatBlock'!=_0x3301d1['type'])return;const {data:_0x4a658c}=_0x3301d1;return _0x4a658c&&'paragraph'==_0x4a658c['commandName']?{'type':'format','content':c(_0x200b66,'*Change\x20to:*\x20%0',c(_0x200b66,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x425a64,{showActiveMarker:_0xf566dd=!0x0}={}){return(_0x57628d,_0xd7ea81,_0x45bdf4)=>{const _0x1b2a1b=_0x425a64['plugins']['get']('TrackChangesEditing'),_0x6d6a77=_0xd7ea81['markerRange']['start'],_0x2a4e79=_0xd7ea81['markerRange']['end'],_0x46341b=_0x425a64['model']['schema'];if(!_0x6d6a77['isTouching'](_0x2a4e79)||!_0x6d6a77['nodeAfter'])return;const _0x480d55=_0x6d6a77['nodeAfter'];if(_0x46341b['isBlock'](_0x480d55)&&!_0x46341b['isLimit'](_0x480d55)&&_0x46341b['checkChild'](_0x480d55,'$text')){if(!_0x45bdf4['consumable']['consume'](_0xd7ea81['markerRange'],_0x57628d['name']))return;const {authorId:_0x596c2b}=_0x1b2a1b['_splitMarkerName'](_0xd7ea81['markerName']),_0x46ea03=_0x45bdf4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x596c2b}),_0x3d8ece=_0x45bdf4['mapper']['toViewPosition'](_0x2a4e79);_0xf566dd&&_0x1b2a1b['activeMarkers']['includes'](_0xd7ea81['markerName'])&&_0x45bdf4['writer']['addClass']('ck-suggestion-marker--active',_0x46ea03),_0x45bdf4['writer']['insert'](_0x3d8ece,_0x46ea03),_0x45bdf4['mapper']['bindElementToMarker'](_0x46ea03,_0xd7ea81['markerName']);}};}class jt extends _0x10f0de{['afterInit'](){const _0x512909=this['editor'];_0x512909['commands']['get']('replaceSource')&&_0x512909['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x10f0de{['afterInit'](){const _0xb01c34=this['editor'];if(!_0xb01c34['plugins']['has']('RemoveFormatEditing'))return;_0xb01c34['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25d490=this['editor'];_0x25d490['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f38b8=>{if('formatBlock'!=_0x2f38b8['type']&&'formatInline'!=_0x2f38b8['type'])return;const {data:_0x4b1ede}=_0x2f38b8;return _0x4b1ede&&'removeFormat'==_0x4b1ede['commandName']?{'type':'format','content':c(_0x25d490['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x10f0de{['afterInit'](){const _0x3258e1=this['editor'];if(!_0x3258e1['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x335e74=_0x3258e1['plugins']['get']('TrackChangesEditing');_0x335e74['enableCommand']('goToPreviousRestrictedEditingException'),_0x335e74['enableCommand']('goToNextRestrictedEditingException');const _0x154980=_0x3258e1['plugins']['get']('RestrictedEditingModeEditing');_0x154980['enableCommand']('trackChanges'),_0x154980['enableCommand']('acceptSuggestion'),_0x154980['enableCommand']('discardSuggestion'),_0x154980['enableCommand']('acceptAllSuggestions'),_0x154980['enableCommand']('discardAllSuggestions'),_0x154980['enableCommand']('acceptSelectedSuggestions'),_0x154980['enableCommand']('discardSelectedSuggestions');}}class It extends _0x10f0de{['afterInit'](){const _0x1f2a5d=this['editor'];if(!_0x1f2a5d['plugins']['has']('ShiftEnter'))return;const _0x14e1b3=_0x1f2a5d['plugins']['get']('TrackChangesEditing');_0x14e1b3['enableCommand']('shiftEnter'),_0x1f2a5d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1f2a5d),{'priority':'high'}),_0x1f2a5d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1f2a5d),{'priority':'high'}),_0x1f2a5d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4354e3,_0x4ce475,_0x2f1e64)=>{_0x2f1e64['options']['showSuggestionHighlights']&&je(_0x1f2a5d,{'showActiveMarker':!0x1})(_0x4354e3,_0x4ce475,_0x2f1e64);}),_0x14e1b3['descriptionFactory']['registerElementLabel']('softBreak',_0x715bd3=>c(_0x1f2a5d['locale'],'ELEMENT_LINE_BREAK',_0x715bd3));}}function je(_0xc248a4,{showActiveMarker:_0x36b098=!0x0}={}){return(_0x136667,_0x2fa522,_0x8c52c9)=>{const _0x898db0=_0xc248a4['plugins']['get']('TrackChangesEditing');if(!_0x8c52c9['consumable']['test'](_0x2fa522['markerRange'],_0x136667['name']))return;const _0xfb49bb=_0xc248a4['model'];for(const _0x3cd2b9 of _0x2fa522['markerRange']['getItems']()){if(!_0x3cd2b9['is']('element','softBreak'))continue;const _0x1e337b='deletion'==_0x2fa522['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x5e06de}=_0x898db0['_splitMarkerName'](_0x2fa522['markerName']),_0x4a15f5=_0x8c52c9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1e337b,'data-author-id':_0x5e06de}),_0x4d2acb=_0x8c52c9['mapper']['toViewPosition'](_0xfb49bb['createPositionBefore'](_0x3cd2b9));_0x36b098&&_0x898db0['activeMarkers']['includes'](_0x2fa522['markerName'])&&_0x8c52c9['writer']['addClass']('ck-suggestion-marker--active',_0x4a15f5),_0x8c52c9['writer']['insert'](_0x4d2acb,_0x4a15f5),_0x8c52c9['mapper']['bindElementToMarker'](_0x4a15f5,_0x2fa522['markerName']);}};}class _t extends _0x10f0de{['afterInit'](){const _0xb8b2da=this['editor'],_0x56a5cd=_0xb8b2da['model'],_0x470b84=_0xb8b2da['locale'];if(!_0xb8b2da['plugins']['has']('StandardEditingModeEditing'))return;const _0x544571=_0xb8b2da['plugins']['get']('TrackChangesEditing'),_0x1edd73='restrictedEditingException',_0x59ed2f=_0xb8b2da['commands']['get'](_0x1edd73);_0x544571['enableCommand'](_0x1edd73,(_0x3a9770,_0x370dce={})=>{const _0x48e880=_0x56a5cd['document']['selection'];if(_0x48e880['isCollapsed'])return void _0x3a9770(_0x370dce);const _0x4fafec=void 0x0!==_0x370dce['forceValue']?_0x370dce['forceValue']:!_0x59ed2f['value'];_0x56a5cd['change'](()=>{const _0xf6afd8=Array['from'](_0x48e880['getRanges']());for(const _0x213157 of _0xf6afd8){const _0xab2f59=_0x4fafec?[_0x213157]:io(_0x1edd73,_0x213157,_0x56a5cd);for(const _0xb0eab7 of _0xab2f59)_0x544571['markInlineFormat'](_0xb0eab7,{'commandName':_0x1edd73,'commandParams':[{'forceValue':_0x4fafec}]});}});}),_0x544571['descriptionFactory']['registerDescriptionCallback'](_0x3a0646=>{if('formatBlock'!=_0x3a0646['type']&&'formatInline'!=_0x3a0646['type'])return;const {data:_0x5718fd}=_0x3a0646;return _0x5718fd&&_0x5718fd['commandName']==_0x1edd73?_0x5718fd['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x470b84,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x470b84,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x10f0de{['afterInit'](){const _0xa5c241=this['editor'];if(!_0xa5c241['plugins']['has']('Style')||!_0xa5c241['plugins']['has']('DataSchema'))return;const _0x795ec9=_0xa5c241['plugins']['get']('TrackChangesEditing'),_0x4f9ceb=_0xa5c241['locale'],_0x55326e=_0xa5c241['config']['get']('style')||{},_0x4abf52=_0xa5c241['plugins']['get']('GeneralHtmlSupport'),_0x58c92d=_0xa5c241['plugins']['get']('StyleUtils')['normalizeConfig'](_0xa5c241['plugins']['get']('DataSchema'),_0x55326e['definitions']);_0x795ec9['enableDefaultAttributesIntegration']('style');const _0x20c251=new Set();for(const _0x1866d6 of _0x58c92d['block']){const _0x21e649=_0x4abf52['getGhsAttributeNameForElement'](_0x1866d6['element']);_0x20c251['add'](_0x21e649);}const _0x5f8ae9=new Set();for(const _0x1f6c21 of _0x58c92d['inline']){const _0x19fc1c=_0x4abf52['getGhsAttributeNameForElement'](_0x1f6c21['element']);_0x5f8ae9['add'](_0x19fc1c);for(const _0x56f96f of _0x1f6c21['ghsAttributes'])_0x5f8ae9['add'](_0x56f96f);}for(const _0x51ce9d of _0x20c251)_0x795ec9['registerBlockAttribute'](_0x51ce9d),_0x795ec9['descriptionFactory']['registerAttributeLabel'](_0x51ce9d,c(_0x4f9ceb,'FORMAT_STYLE'));for(const _0x5b8436 of _0x5f8ae9)_0x795ec9['registerInlineAttribute'](_0x5b8436),_0x795ec9['descriptionFactory']['registerAttributeLabel'](_0x5b8436,c(_0x4f9ceb,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ecf63=this['editor'],_0x48608c=_0x2ecf63['locale'];_0x2ecf63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50b5ba=>{if('formatBlock'!=_0x50b5ba['type']&&'formatInline'!=_0x50b5ba['type'])return;const {data:_0x5219c7}=_0x50b5ba;return _0x5219c7&&'style'===_0x5219c7['commandName']?_0x5219c7['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x48608c,'*Set\x20format:*\x20%0',_0x5219c7['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x48608c,'*Remove\x20format:*\x20%0',_0x5219c7['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x10f0de{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x25b1dc){super(_0x25b1dc),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x42c9db=this['editor'],_0x261acf=_0x42c9db['model']['document']['selection'];if(!_0x42c9db['plugins']['has']('TableEditing'))return;const _0x1fd210=_0x42c9db['locale'],_0x4f71ef=_0x42c9db['plugins']['get']('TrackChangesEditing'),_0xc3dd66=_0x42c9db['plugins']['get']('TableUtils');_0x4f71ef['descriptionFactory']['registerElementLabel']('table',_0x3c4869=>c(_0x1fd210,'ELEMENT_TABLE',_0x3c4869)),this['_setupColumnsRowsFixing'](),_0x4f71ef['enableCommand']('insertTable'),_0x4f71ef['enableCommand']('selectTableRow'),_0x4f71ef['enableCommand']('selectTableColumn');for(const _0x102769 of['insertTableRowAbove','insertTableRowBelow']){const _0x11fe61=_0x42c9db['commands']['get'](_0x102769);_0x4f71ef['enableCommand'](_0x102769,_0x90798f=>{_0x42c9db['model']['change'](_0x3b3d5b=>{_0x90798f();const _0xffd1be='above'===_0x11fe61['order'],_0x162a2e=_0xc3dd66['getSelectionAffectedTableCells'](_0x261acf),_0x5ceab0=_0xc3dd66['getRowIndexes'](_0x162a2e),_0x4f6991=_0xffd1be?_0x5ceab0['first']-0x1:_0x5ceab0['last']+0x1,_0x13b545=_0x162a2e[0x0]['findAncestor']('table'),_0x4a9d33=_0xc3dd66['createTableWalker'](_0x13b545,{'startRow':_0x4f6991,'endRow':_0x4f6991}),_0x36efd5=Array['from'](_0x4a9d33)['map'](_0x16cec1=>_0x3b3d5b['createRangeOn'](_0x16cec1['cell']));_0x4f71ef['markMultiRangeInsertion'](_0x36efd5,'tableRow');});});}for(const _0x2806f3 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5bcfbd=_0x42c9db['commands']['get'](_0x2806f3);_0x4f71ef['enableCommand'](_0x2806f3,_0x4be097=>{_0x42c9db['model']['change'](_0x1816e0=>{_0x4be097();const _0x49a313='left'===_0x5bcfbd['order'],_0x3e47c1=_0xc3dd66['getSelectionAffectedTableCells'](_0x261acf),_0x13a66a=_0xc3dd66['getColumnIndexes'](_0x3e47c1),_0x4985f8=_0x49a313?_0x13a66a['first']-0x1:_0x13a66a['last']+0x1,_0x46269b=_0x3e47c1[0x0]['findAncestor']('table'),_0x2049d5=_0xc3dd66['createTableWalker'](_0x46269b,{'startRow':0x0,'column':_0x4985f8,'includeAllSlots':!0x1}),_0x49adc1=Array['from'](_0x2049d5)['map'](_0x19fbfa=>_0x1816e0['createRangeOn'](_0x19fbfa['cell']));_0x4f71ef['markMultiRangeInsertion'](_0x49adc1,'tableColumn');});});}for(const _0x2f951d of['removeTableRow','removeTableColumn']){const _0x4a9662=_0x2f951d['substr'](0xb),_0x191d2a=_0x4a9662['toLowerCase'](),_0x498141=_0x191d2a['substr'](0x0,0x3)+'span',_0x5f572c='table'+_0x4a9662,_0x4ad4d8='min'+_0x4a9662,_0x191445='max'+_0x4a9662;_0x4f71ef['enableCommand'](_0x2f951d,()=>{_0x42c9db['model']['change'](_0x3c8e86=>{const _0x110bdf=_0xc3dd66['getSelectionAffectedTableCells'](_0x261acf),_0x120041=_0x110bdf[0x0]['findAncestor']('table');let _0x346331;if('removeTableRow'==_0x2f951d){const _0x2575ca=_0xc3dd66['getRowIndexes'](_0x110bdf);_0x346331={'startRow':_0x2575ca['first'],'endRow':_0x2575ca['last'],'includeAllSlots':!0x0};}else{const _0x4e9702=_0xc3dd66['getColumnIndexes'](_0x110bdf);_0x346331={'startColumn':_0x4e9702['first'],'endColumn':_0x4e9702['last'],'includeAllSlots':!0x0};}const _0x4088b7=_0xc3dd66['createTableWalker'](_0x120041,_0x346331),_0x54e62f=Array['from'](_0x4088b7)['map'](({cell:_0x3ebff3})=>_0x3ebff3),_0x3cbe17=Ne(_0x54e62f['filter'](_0x127187=>_0x127187['hasAttribute'](_0x498141))),_0x58fba1=Ne(_0x54e62f['filter'](_0x591253=>!_0x591253['hasAttribute'](_0x498141)))['map'](_0x3fbbe5=>_0x3c8e86['createRangeOn'](_0x3fbbe5)),_0x2c9a18=_0x4f71ef['markMultiRangeDeletion'](_0x58fba1,_0x5f572c);if(_0x2c9a18&&('tableRow'==_0x2c9a18['subType']||'tableColumn'==_0x2c9a18['subType'])){const _0x59cfb6=this['_getSuggestionCoords'](_0x2c9a18);for(const _0x5b73fc of _0x3cbe17){const _0x49c68a=_0x3c8e86['createRangeOn'](_0x5b73fc),_0xc9f70c=_0xc3dd66['getCellLocation'](_0x5b73fc),_0x5db6c3=_0x5b73fc['getAttribute'](_0x498141)-0x1,_0x5e3e80=_0x59cfb6[_0x4ad4d8],_0x10d5d1=_0x59cfb6[_0x191445];_0x5e3e80<=_0xc9f70c[_0x191d2a]&&_0xc9f70c[_0x191d2a]+_0x5db6c3<=_0x10d5d1&&_0x2c9a18['addRange'](_0x49c68a);}}});});}function _0x2bf7c1(_0x5d76c0){const _0x32e1f2=Array['from'](_0x261acf['getRanges']())['map'](_0x24f8c2=>_0x272be6['fromRange'](_0x24f8c2));_0x42c9db['model']['change'](_0x1cf922=>{const _0x180ffc=_0x1cf922['batch'];_0x5d76c0=_0x5d76c0['filter'](_0x378f78=>'$graveyard'!=_0x378f78['root']['rootName']),_0x1cf922['setSelection'](_0x5d76c0),_0x42c9db['commands']['get']('removeTableRow')['refresh'](),_0x42c9db['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x42c9db['model']['enqueueChange'](()=>{_0x42c9db['model']['enqueueChange'](_0x180ffc,_0x531e5a=>{const _0x5a1744=_0x32e1f2['filter'](_0x5d7e7f=>'$graveyard'!=_0x5d7e7f['root']['rootName']);_0x5a1744['length']>0x0&&_0x531e5a['setSelection'](_0x5a1744);for(const _0x51876f of _0x32e1f2)_0x51876f['detach']();});});});}function _0x154c56(_0x5e8cb1){_0x42c9db['model']['change'](_0x34e46f=>{const _0x15d94=Array['from'](_0x261acf['getRanges']())['map'](_0x3c79ca=>_0x272be6['fromRange'](_0x3c79ca)),_0x183924=[];for(const _0x22f93f of _0x5e8cb1)for(const _0x132a30 of _0x22f93f['getItems']({'shallow':!0x0}))_0x183924['push'](_0x132a30);for(const _0x5c2297 of _0x183924)'$graveyard'!=_0x5c2297['root']['rootName']&&(_0x34e46f['setSelection'](_0x34e46f['createPositionAt'](_0x5c2297,0x0)),_0x42c9db['commands']['get']('removeTableColumn')['refresh'](),_0x42c9db['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x44fc80=_0x15d94['filter'](_0x10baa9=>'$graveyard'!=_0x10baa9['root']['rootName']);_0x44fc80['length']>0x0&&_0x34e46f['setSelection'](_0x44fc80);for(const _0xf1bef of _0x15d94)_0xf1bef['detach']();});}function _0x45bd6e(_0x5b96a6,_0x3c669d){return _0x3c669d['every'](_0x5afef5=>_0x5b96a6['some'](_0x579204=>_0x579204['end']['isEqual'](_0x5afef5['start'])||_0x5afef5['end']['isEqual'](_0x579204['start'])));}function _0x2a02f2(_0x36fbac,_0x31add2){return!_0x36fbac['some'](_0x4da4c3=>_0x31add2['some'](_0x55121d=>_0x4da4c3['isIntersecting'](_0x55121d)))&&_0x36fbac['some'](_0x1ffd0b=>_0x31add2['some'](_0x4c7123=>_0x1ffd0b['end']['isTouching'](_0x4c7123['start'])));}_0x42c9db['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x23958e,_0x45353f,_0xd6bba6)=>{if(!_0xd6bba6['options']['showSuggestionHighlights'])return;const _0x5d88a9=_0x45353f['item'];if(!_0x5d88a9)return;const _0xa8a32c=_0xd6bba6['mapper']['toViewElement'](_0x5d88a9);function _0x3c7c79(_0x347a47){return Array['isArray'](_0x347a47)?_0x347a47:[_0x347a47];}_0xa8a32c&&'tableCell'===_0x5d88a9['name']&&_0x108084(_0xa8a32c,_0xd6bba6['writer'],(_0x368c24,_0x18fced,_0x2d4b5c)=>_0x2d4b5c['addClass'](_0x3c7c79(_0x18fced['classes']),_0x368c24),(_0x41b060,_0x2b4451,_0x48c22e)=>_0x48c22e['removeClass'](_0x3c7c79(_0x2b4451['classes']),_0x41b060));},{'priority':'highest'}),_0x4f71ef['descriptionFactory']['registerDescriptionCallback'](_0x50e654=>{if('insertion'!=_0x50e654['type']&&'deletion'!=_0x50e654['type'])return;const _0x1b55c1=_0x50e654['getContainedElement']();if(null!=_0x1b55c1&&_0x1b55c1['is']('element','table')){if('insertion'==_0x50e654['type']){const _0x16a2ae=_0x50e654['getItems']()['filter'](_0x4bc15b=>_0x4bc15b['is']('$textProxy'))['map'](_0x308a12=>_0x308a12['data']);if(_0x16a2ae['length'])return{'type':'insertion','content':c(_0x1fd210,'*Insert:*\x20%0',c(_0x1fd210,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x16a2ae['join']('\x20')+'\x22'))};}if('deletion'==_0x50e654['type']){const _0x501777=_0x50e654['getItems']()['filter'](_0x259308=>_0x259308['is']('$textProxy'))['map'](_0xf78985=>_0xf78985['data']);if(_0x501777['length'])return{'type':'deletion','content':c(_0x1fd210,'*Remove:*\x20%0',c(_0x1fd210,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x501777['join']('\x20')+'\x22'))};}}}),_0x4f71ef['descriptionFactory']['registerDescriptionCallback'](_0x1c715a=>{if('tableRow'==_0x1c715a['subType']){const _0x53fc3e=_0x1c715a['getItems']()['filter'](_0x10e483=>_0x10e483['is']('$textProxy'))['map'](_0x26fdf7=>_0x26fdf7['data']),_0x59efb8=this['_getSuggestionCoords'](_0x1c715a),_0x4e61ff=_0x59efb8['maxRow']-_0x59efb8['minRow']+0x1;if('insertion'==_0x1c715a['type'])return _0x53fc3e['length']?{'type':'insertion','content':c(_0x1fd210,'*Insert:*\x20%0',c(_0x1fd210,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4e61ff,'\x22'+_0x53fc3e['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1fd210,'*Insert:*\x20%0',c(_0x1fd210,'ELEMENT_TABLE_ROW',_0x4e61ff))};if('deletion'==_0x1c715a['type'])return _0x53fc3e['length']?{'type':'deletion','content':c(_0x1fd210,'*Remove:*\x20%0',c(_0x1fd210,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4e61ff,'\x22'+_0x53fc3e['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1fd210,'*Remove:*\x20%0',c(_0x1fd210,'ELEMENT_TABLE_ROW',_0x4e61ff))};}if('tableColumn'==_0x1c715a['subType']){const _0x2ed904=_0x1c715a['getItems']()['filter'](_0x1e114e=>_0x1e114e['is']('$textProxy'))['map'](_0x48f465=>_0x48f465['data']),_0x5d7b36=this['_getSuggestionCoords'](_0x1c715a),_0x2a4732=_0x5d7b36['maxColumn']-_0x5d7b36['minColumn']+0x1;if('insertion'==_0x1c715a['type'])return _0x2ed904['length']?{'type':'insertion','content':c(_0x1fd210,'*Insert:*\x20%0',c(_0x1fd210,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2a4732,'\x22'+_0x2ed904['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1fd210,'*Insert:*\x20%0',c(_0x1fd210,'ELEMENT_TABLE_COLUMN',_0x2a4732))};if('deletion'==_0x1c715a['type'])return _0x2ed904['length']?{'type':'deletion','content':c(_0x1fd210,'*Remove:*\x20%0',c(_0x1fd210,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2a4732,'\x22'+_0x2ed904['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1fd210,'*Remove:*\x20%0',c(_0x1fd210,'ELEMENT_TABLE_COLUMN',_0x2a4732))};}}),_0x4f71ef['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2bf7c1),_0x4f71ef['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2bf7c1),_0x4f71ef['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x154c56),_0x4f71ef['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x154c56),_0x4f71ef['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x45bd6e),_0x4f71ef['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x45bd6e),_0x4f71ef['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2a02f2),_0x4f71ef['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2a02f2);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2c8558=this['editor'],_0x315db1=_0x2c8558['model']['document']['selection'];return(_0x177d18,_0x2cc69f)=>{_0x2c8558['model']['change'](_0x2d97c7=>{const {commandName:_0x41cf01,commandParams:_0x35ce7f}=_0x2cc69f;let _0x12ba72=_0x177d18[0x0]['end']['nodeBefore'];_0x35ce7f&&_0x35ce7f[0x0]&&!0x1===_0x35ce7f[0x0]['forceValue']&&(_0x12ba72=_0x177d18[0x0]['start']['nodeAfter']);const _0x3d876a=_0x2d97c7['createRangeIn'](_0x12ba72);if('$graveyard'==_0x3d876a['root']['rootName'])return;const _0x190824=Array['from'](_0x315db1['getRanges']())['map'](_0x356ef3=>_0x272be6['fromRange'](_0x356ef3));_0x2d97c7['setSelection'](_0x3d876a),_0x2c8558['commands']['get'](_0x41cf01)['refresh'](),_0x35ce7f['push']({'forceDefaultExecution':!0x0}),_0x2c8558['execute'](_0x41cf01,..._0x35ce7f);const _0x4b6f78=_0x190824['filter'](_0x1d06a9=>'$graveyard'!=_0x1d06a9['root']['rootName']);_0x4b6f78['length']>0x0&&_0x2d97c7['setSelection'](_0x4b6f78);for(const _0x3842c4 of _0x190824)_0x3842c4['detach']();});};}['_getCoordsForCells'](_0x30e5e6){const _0x4d96a1=this['editor']['plugins']['get']('TableUtils');let _0x41cf7c=Number['MAX_SAFE_INTEGER'],_0x2950cf=Number['MIN_SAFE_INTEGER'],_0x4ee963=Number['MAX_SAFE_INTEGER'],_0x2df3e9=Number['MIN_SAFE_INTEGER'];for(const _0x11b6f8 of _0x30e5e6){if('$graveyard'==_0x11b6f8['root']['rootName'])continue;const {row:_0x235b37,column:_0x1fbb4d}=_0x4d96a1['getCellLocation'](_0x11b6f8),_0x30baf8=_0x11b6f8['hasAttribute']('rowspan')?_0x11b6f8['getAttribute']('rowspan')-0x1:0x0,_0x1c72e=_0x11b6f8['hasAttribute']('colspan')?_0x11b6f8['getAttribute']('colspan')-0x1:0x0;_0x41cf7c=_0x235b37<_0x41cf7c?_0x235b37:_0x41cf7c,_0x2950cf=_0x235b37+_0x30baf8>_0x2950cf?_0x235b37+_0x30baf8:_0x2950cf,_0x4ee963=_0x1fbb4d<_0x4ee963?_0x1fbb4d:_0x4ee963,_0x2df3e9=_0x1fbb4d+_0x1c72e>_0x2df3e9?_0x1fbb4d+_0x1c72e:_0x2df3e9;}return{'minRow':_0x41cf7c,'maxRow':_0x2950cf,'minColumn':_0x4ee963,'maxColumn':_0x2df3e9};}['_setupColumnsRowsFixing'](){const _0x4d0348=this['editor'],_0x280452=_0x4d0348['plugins']['get']('TrackChangesEditing'),_0x1c8ba0=_0x4d0348['plugins']['get']('TableUtils');_0x4d0348['model']['document']['on']('change:data',()=>{const _0x3dc2e1=Array['from'](_0x4d0348['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x38660a,data:_0x1d9af5}of _0x3dc2e1){const {group:_0x4dc308,id:_0x1a7107,subType:_0x172825}=_0x280452['_splitMarkerName'](_0x38660a);if('suggestion'!=_0x4dc308)continue;if(null!=_0x1d9af5['oldRange'])continue;const _0x5c3a32=_0x280452['getSuggestion'](_0x1a7107);this['_tablePostFixingSubtypes']['includes'](_0x172825)&&this['_tableSuggestions']['add'](_0x5c3a32);}},{'priority':'low'});const _0x4a1a76=(_0x2d198c,_0x3e8c8b)=>{let _0x2ca082=!0x1;const _0x5da94f=_0x3e8c8b['createRangeOn'](_0x2d198c),_0x5e697a=_0x2d198c['findAncestor']('table'),_0x2c7886=_0x1c8ba0['getCellLocation'](_0x2d198c);for(const _0x285a79 of this['_tableSuggestions']){const _0x54c731=_0x285a79['subType'],_0x459620=_0x54c731['startsWith']('tablePaste'),_0x2efb57=_0x54c731['substr'](_0x459620?0xa:0x5),_0x90fd3b=_0x2efb57['toLowerCase'](),_0x474c27=_0x90fd3b['substr'](0x0,0x3)+'span',_0x184395='min'+_0x2efb57,_0x42340c='max'+_0x2efb57;if(!_0x285a79['isInContent'])continue;if(_0x5e697a!=_0x285a79['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x285a79['isIntersectingWithRange'](_0x5da94f))continue;const _0x28452e=_0x2d198c['hasAttribute'](_0x474c27)?_0x2d198c['getAttribute'](_0x474c27)-0x1:0x0,_0x64bf8f=this['_getSuggestionCoords'](_0x285a79),_0x5174d1=_0x64bf8f[_0x184395],_0x378be3=_0x64bf8f[_0x42340c];_0x5174d1<=_0x2c7886[_0x90fd3b]&&_0x2c7886[_0x90fd3b]+_0x28452e<=_0x378be3&&(_0x285a79['addRange'](_0x5da94f),_0x2ca082=!0x0);}return _0x2ca082;};_0x4d0348['model']['document']['registerPostFixer'](_0x58e103=>{let _0x95057d=!0x1;for(const _0x21aa66 of _0x4d0348['model']['document']['differ']['getChanges']())if('insert'==_0x21aa66['type']){if('tableRow'==_0x21aa66['name']){for(const _0x49dd24 of _0x21aa66['position']['nodeAfter']['getChildren']())_0x95057d=_0x95057d||_0x4a1a76(_0x49dd24,_0x58e103);}else'tableCell'==_0x21aa66['name']&&(_0x95057d=_0x95057d||_0x4a1a76(_0x21aa66['position']['nodeAfter'],_0x58e103));}return _0x95057d;});}['_getSuggestionCoords'](_0x55bd68){return this['_getCoordsForCells'](_0x55bd68['getRanges']()['map'](_0x5e2bf9=>_0x5e2bf9['start']['nodeAfter']));}}function Ne(_0x1e46eb){return Array['from'](new Set(_0x1e46eb)['values']());}class Nt extends _0x10f0de{static get['requires'](){return[Ct];}['afterInit'](){const _0x42c013=this['editor'],_0x3cca2a=_0x42c013['model']['document']['selection'],_0x8cc35a=_0x42c013['locale'];if(!_0x42c013['plugins']['has']('TableEditing'))return;const _0x1e8a98=_0x42c013['plugins']['get']('TrackChangesEditing'),_0x5b6b12=_0x42c013['plugins']['get']('TableUtils'),_0x4295eb=_0x42c013['plugins']['get'](Ct);_0x4295eb['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1e8a98['enableCommand']('mergeTableCells',()=>{const _0x54b481=_0x5b6b12['getSelectionAffectedTableCells'](_0x42c013['model']['document']['selection']);_0x42c013['model']['change'](()=>{_0x1e8a98['markMultiRangeBlockFormat'](_0x54b481,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x42c013['commands']['get']('mergeTableCells')['on']('execute',(_0x465061,_0x55bd48)=>{_0x42c013['commands']['get']('trackChanges')['value']&&(_0x55bd48['length']>0x0&&_0x55bd48[_0x55bd48['length']-0x1]&&_0x55bd48[_0x55bd48['length']-0x1]['forceDefaultExecution']||_0x1e8a98['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x465061['stop']());},{'priority':'highest'});for(const _0x27aa2d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2e362f=_0x42c013['commands']['get'](_0x27aa2d);_0x1e8a98['enableCommand'](_0x27aa2d,()=>{const _0x128e2d=_0x42c013['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x40d806=>_0x40d806['is']('element','tableCell')),_0x3fa2f9=_0x2e362f['value'];_0x42c013['model']['change'](()=>{_0x1e8a98['markMultiRangeBlockFormat']([_0x128e2d,_0x3fa2f9],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5daac3 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x10f1ac=_0x42c013['commands']['get'](_0x5daac3);_0x1e8a98['enableCommand'](_0x5daac3,()=>{const _0x5441e1=_0x5b6b12['getSelectionAffectedTableCells'](_0x42c013['model']['document']['selection'])[0x0],_0x53d599=_0x5441e1['findAncestor']('table'),{column:_0x3adf75,row:_0x44079b}=_0x5b6b12['getCellLocation'](_0x5441e1);let _0x85c862=[];if('horizontally'==_0x10f1ac['direction']){const _0x221bb0=_0x5b6b12['createTableWalker'](_0x53d599,{'startRow':_0x44079b,'endRow':_0x44079b,'includeAllSlots':!0x0});_0x85c862=Array['from'](_0x221bb0)['map'](_0x181ef0=>_0x181ef0['cell']);}else{const _0xb364b2=_0x5b6b12['createTableWalker'](_0x53d599,{'column':_0x3adf75,'includeAllSlots':!0x0});_0x85c862=Array['from'](_0xb364b2)['map'](_0x34da78=>_0x34da78['cell']);}_0x42c013['model']['change'](_0x2120f5=>{_0x1e8a98['markBlockFormat'](_0x2120f5['createRangeOn'](_0x5441e1),{'commandName':_0x5daac3,'commandParams':[]},_0x85c862,_0x5daac3);});});}_0x1e8a98['descriptionFactory']['registerDescriptionCallback'](_0x5b4614=>{if('formatBlock'!=_0x5b4614['type']&&'formatInline'!=_0x5b4614['type'])return;const {data:_0x4e5ea2}=_0x5b4614;return _0x4e5ea2&&'mergeTableCells'==_0x4e5ea2['commandName']?{'type':'format','content':c(_0x8cc35a,'*Merge\x20cells*')}:void 0x0;}),_0x1e8a98['descriptionFactory']['registerDescriptionCallback'](_0x4d0434=>{if('formatBlock'!=_0x4d0434['type']&&'formatInline'!=_0x4d0434['type'])return;const {data:_0x48f4d6}=_0x4d0434;return _0x48f4d6?'splitTableCellVertically'==_0x48f4d6['commandName']?{'type':'format','content':c(_0x8cc35a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x48f4d6['commandName']?{'type':'format','content':c(_0x8cc35a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4aee0d=_0x4295eb['_acceptFormatSuggestionCallbackFactory']();for(const _0x47f997 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1e8a98['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x47f997,'accept',_0x4aee0d);for(const _0x4d5a1b of['splitTableCellVertically','splitTableCellHorizontally'])_0x1e8a98['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4d5a1b,'accept',_0x4aee0d);_0x1e8a98['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x49579d=>{_0x42c013['model']['change'](_0x32a731=>{const _0x35e3b3=Array['from'](_0x3cca2a['getRanges']())['map'](_0x2f0160=>_0x272be6['fromRange'](_0x2f0160));_0x32a731['setSelection'](_0x49579d),_0x42c013['commands']['get']('mergeTableCells')['refresh'](),_0x42c013['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5c3c0c=_0x35e3b3['filter'](_0x4889d4=>'$graveyard'!=_0x4889d4['root']['rootName']);_0x5c3c0c['length']>0x0&&_0x32a731['setSelection'](_0x5c3c0c);for(const _0x2b8fec of _0x35e3b3)_0x2b8fec['detach']();});});for(const _0x43ee9e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2078c8=_0x42c013['commands']['get'](_0x43ee9e);_0x2078c8['on']('set:isEnabled',(_0x13d34d,_0x5bd4fc,_0x1ab34f)=>{if(_0x1ab34f){const _0x4c62e7=_0x42c013['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x225c6a=>_0x225c6a['is']('element','tableCell'));this['_areMergableCells'](_0x2078c8['value'],_0x4c62e7)||(_0x13d34d['return']=!0x1,_0x13d34d['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x52aca3=this['editor']['commands']['get']('mergeTableCells'),_0x4328ae=this['editor']['plugins']['get']('TableUtils');if(!_0x52aca3['isEnabled'])return!0x1;const _0x21f146=_0x4328ae['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4c09d9 of _0x21f146)for(const _0x114a40 of _0x21f146)if(_0x4c09d9!=_0x114a40&&!this['_areMergableCells'](_0x4c09d9,_0x114a40))return!0x1;return!0x0;}['_areMergableCells'](_0x143db3,_0x28d74e){const _0xa8a8e9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e7484=this['editor']['model']['createRangeOn'](_0x143db3),_0x2926f3=this['editor']['model']['createRangeOn'](_0x28d74e),_0x314a6c=new Set(),_0x1d1ef5=new Set();for(const _0xd9acde of _0xa8a8e9['getSuggestions']())if(('insertion'==_0xd9acde['type']||'deletion'==_0xd9acde['type']||'mergeTableCells'==_0xd9acde['subType'])&&_0xd9acde['isInContent']){for(const _0x180c95 of _0xd9acde['getRanges']())_0x180c95['containsRange'](_0x2e7484,!0x0)&&_0x314a6c['add'](_0xd9acde['type']+':'+_0xd9acde['author']['id']),_0x180c95['containsRange'](_0x2926f3,!0x0)&&_0x1d1ef5['add'](_0xd9acde['type']+':'+_0xd9acde['author']['id']);}if(_0x314a6c['size']!=_0x1d1ef5['size'])return!0x1;for(const _0x542c8f of _0x314a6c)if(!_0x1d1ef5['has'](_0x542c8f))return!0x1;return!0x0;}}class Dt extends _0x10f0de{static get['requires'](){return[Ct];}['afterInit'](){const _0x4c2f93=this['editor'];if(!_0x4c2f93['plugins']['has']('TableEditing'))return;const _0x2739b1=_0x4c2f93['locale'],_0x170f00=_0x4c2f93['plugins']['get']('TrackChangesEditing');_0x170f00['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x170f00['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x170f00['registerBlockAttribute']('headingRows'),_0x170f00['registerBlockAttribute']('headingColumns'),_0x170f00['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x2739b1,'FORMAT_HEADER_ROW')),_0x170f00['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x2739b1,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x26b795=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ba6d8=this['editor']['plugins']['get']('TableUtils'),_0x11726a=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x5ce148({showActiveMarker:_0x256b3d=!0x0,setDataAttribute:_0xc8ca50=!0x0}={}){return(_0x51ac09,_0xa3a821,_0x2560b9)=>{const {type:_0x275e97,id:_0x93656c}=_0x26b795['_splitMarkerName'](_0xa3a821['markerName']),_0x4e39c0=_0x26b795['getSuggestion'](_0x93656c),_0x5e6294=_0x4e39c0['data'];if('formatBlock'!=_0x4e39c0['type']||!_0x5e6294||'setTableColumnHeader'!=_0x5e6294['commandName'])return;if(_0xa3a821['item'])return void _0x51ac09['stop']();if(!_0x2560b9['consumable']['consume'](_0xa3a821['markerRange'],_0x51ac09['name']))return;const _0x3881b8=_0xa3a821['markerRange']['start']['nodeAfter'],_0x42b45d=_0xa3a821['markerRange']['end']['nodeBefore'],_0xadd8dd=_0x3881b8['parent']['parent'],{column:_0x15cf78}=_0x4ba6d8['getCellLocation'](_0x3881b8),{column:_0x8294ad}=_0x4ba6d8['getCellLocation'](_0x42b45d);for(let _0x308027=_0x15cf78;_0x308027<=_0x8294ad;_0x308027++){const _0x11ce0c=_0x4ba6d8['createTableWalker'](_0xadd8dd,{'column':_0x308027,'includeAllSlots':!0x1});for(const _0x22862b of _0x11ce0c){const _0x1b828d=_0x22862b['cell'],_0x48ce88=_0x2560b9['mapper']['toViewElement'](_0x1b828d);_0x2560b9['writer']['addClass']('ck-suggestion-marker-'+_0x275e97,_0x48ce88),_0xc8ca50&&_0x2560b9['writer']['setAttribute']('data-suggestion',_0x93656c,_0x48ce88),_0x2560b9['mapper']['bindElementToMarker'](_0x48ce88,_0xa3a821['markerName']),_0x256b3d&&(_0x26b795['activeMarkers']['includes'](_0xa3a821['markerName'])?_0x2560b9['writer']['addClass']('ck-suggestion-marker--active',_0x48ce88):_0x2560b9['writer']['removeClass']('ck-suggestion-marker--active',_0x48ce88));}}};}_0x26b795['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x11726a),_0x26b795['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x11726a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5ce148(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x33c40f,_0x2bc21a,_0x58fca0)=>{_0x58fca0['options']['showSuggestionHighlights']&&_0x5ce148({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x33c40f,_0x2bc21a,_0x58fca0);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x49ca3c,_0x1687b9,_0x38b10c)=>{const {type:_0x3894a5,id:_0x4dca20}=_0x26b795['_splitMarkerName'](_0x1687b9['markerName']),_0x4c965a=_0x26b795['getSuggestion'](_0x4dca20),_0x2a39fa=_0x4c965a['data'];if('formatBlock'!=_0x4c965a['type']||!_0x2a39fa||'setTableColumnHeader'!=_0x2a39fa['commandName'])return;const _0x2928e7=_0x38b10c['mapper']['markerNameToElements'](_0x1687b9['markerName']);if(_0x2928e7){for(const _0x3e668c of _0x2928e7)_0x38b10c['writer']['removeClass']('ck-suggestion-marker-'+_0x3894a5,_0x3e668c),_0x38b10c['writer']['removeClass']('ck-suggestion-marker--active',_0x3e668c),_0x38b10c['writer']['removeAttribute']('data-suggestion',_0x3e668c),_0x38b10c['mapper']['unbindElementFromMarkerName'](_0x3e668c,_0x1687b9['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf0434a=this['editor'],_0x2315b6=_0xf0434a['locale'];function _0xba606b(_0x52b7a3){return{'type':'format','content':c(_0x2315b6,'*Format:*\x20%0',_0x52b7a3)};}_0xf0434a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbfbb7=>{if('formatBlock'!=_0xbfbb7['type'])return;const {data:_0x2147ee}=_0xbfbb7;if(_0x2147ee){if('setTableRowHeader'==_0x2147ee['commandName']){const _0x6d078=_0x2147ee['commandParams'][0x0]['forceValue'];return _0xba606b(c(_0x2315b6,_0x6d078?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2147ee['commandName']){const _0x561642=_0x2147ee['commandParams'][0x0]['forceValue'];return _0xba606b(c(_0x2315b6,_0x561642?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x10f0de{['afterInit'](){const _0x440122=this['editor'],_0x1ed5fa=_0x440122['locale'],_0x335d5a=_0x440122['plugins']['get']('TrackChangesEditing');function _0x2935ad(_0x21f021){return{'type':'format','content':''+c(_0x1ed5fa,'*Set\x20table\x20type:*\x20%0',_0x21f021)};}_0x440122['plugins']['has']('TableLayout')&&(_0x335d5a['enableCommand']('insertTableLayout'),_0x335d5a['enableDefaultAttributesIntegration']('tableType'),_0x335d5a['registerBlockAttribute']('tableType'),_0x335d5a['descriptionFactory']['registerElementLabel'](_0x537766=>_0x537766['is']('element','table')&&'layout'===_0x537766['getAttribute']('tableType'),_0x381bba=>c(_0x1ed5fa,'ELEMENT_LAYOUT_TABLE',_0x381bba)),_0x335d5a['descriptionFactory']['registerDescriptionCallback'](_0x56af82=>{const {data:_0x5d4011}=_0x56af82;if(_0x5d4011&&'tableType'==_0x5d4011['key'])switch(_0x5d4011['newValue']){case'layout':return _0x2935ad(c(_0x1ed5fa,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2935ad(c(_0x1ed5fa,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x2fb36d=>[_0x2fb36d,null]));class $t extends _0x10f0de{static get['requires'](){return[Ct];}['afterInit'](){const _0x3e434f=this['editor'];if(!_0x3e434f['plugins']['has']('TableClipboard'))return;const _0x5bc09b=_0x3e434f['plugins']['get']('TrackChangesEditing'),_0x273e99=_0x3e434f['plugins']['get']('TableUtils'),_0x46a443=_0x3e434f['plugins']['get'](Ct),_0x5d8f0a=_0x3e434f['plugins']['get']('TableClipboard'),_0x343f0c=_0x3e434f['plugins']['get']('TableSelection'),_0x12243c=_0x3e434f['plugins']['get'](_0xa81ecc);_0x46a443['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3e434f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3e434f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4a9c0f=null,_0x4f5c61=!0x1;_0x12243c['on']('contentInsertion',(_0x1025ea,_0xb2a205)=>{_0x4f5c61='paste'===_0xb2a205['method'];}),_0x3e434f['model']['on']('insertContent',(_0x1b113f,_0x12489d)=>{if(!_0x4f5c61&&null===_0x343f0c['getSelectedTableCells']())return;const [_0x59195e,_0xb9aac6]=_0x12489d,_0x4f1646=_0x12489d[_0x12489d['length']-0x1];_0x4f1646&&_0x4f1646['forceDefaultExecution']||_0x5bc09b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4a54e1,_0x351a71,_0x215a6c,_0x4001f9,_0x155f59){if(_0x351a71&&!_0x351a71['is']('documentSelection'))return!0x1;const _0xfa3517=_0x155f59['getTableIfOnlyTableInContent'](_0x4a54e1,_0x215a6c);if(!_0xfa3517||!De(_0xfa3517,void 0x0,_0x4001f9))return!0x1;const _0x1a860c=_0x4001f9['getSelectionAffectedTableCells'](_0x215a6c['document']['selection']);if(!_0x1a860c['length'])return!0x1;const _0x2b8759=_0x1a860c[0x0]['findAncestor']('table'),_0x40c005=_0x4001f9['getRowIndexes'](_0x1a860c),_0x5f0c56=_0x4001f9['getColumnIndexes'](_0x1a860c),_0x1ba6fe={'startRow':_0x40c005['first'],'endRow':_0x40c005['last'],'startColumn':_0x5f0c56['first'],'endColumn':_0x5f0c56['last']};return 0x1==_0x1a860c['length']&&(_0x1ba6fe['endRow']+=_0x4001f9['getRows'](_0xfa3517)-0x1,_0x1ba6fe['endColumn']+=_0x4001f9['getColumns'](_0xfa3517)-0x1),De(_0x2b8759,_0x1ba6fe,_0x4001f9);}(_0x59195e,_0xb9aac6,_0x3e434f['model'],_0x273e99,_0x5d8f0a)&&(_0x1b113f['stop'](),_0x4a9c0f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3e434f['model']['change'](()=>{_0x3e434f['model']['insertContent'](_0x12489d[0x0],_0x12489d[0x1],_0x12489d[0x2],{'forceDefaultExecution':!0x0});const _0x290aed=_0x22ea39(),{rowInsertionRanges:_0x504008,columnInsertionRanges:_0x9564c6,insertionRanges:_0x22bba7,deletionRanges:_0x3c481c,cells:_0x397d83}=_0x4a9c0f;_0x504008['length']&&_0x5bc09b['markMultiRangeInsertion'](_0x504008,'tablePasteRow',{'tablePasteChainId':_0x290aed}),_0x9564c6['length']&&_0x5bc09b['markMultiRangeInsertion'](_0x9564c6,'tablePasteColumn',{'tablePasteChainId':_0x290aed}),_0x22bba7['length']&&(_0x5bc09b['markMultiRangeInsertion'](_0x22bba7,'tablePaste',{'tablePasteChainId':_0x290aed,'skipNestingCheck':!0x0}),_0x22bba7['forEach'](_0x1af401=>_0x1af401['detach']?.())),_0x3c481c['length']&&(_0x5bc09b['markMultiRangeDeletion'](_0x3c481c,'tablePaste',{'tablePasteChainId':_0x290aed,'skipNestingCheck':!0x0}),_0x3c481c['forEach'](_0x23dd17=>_0x23dd17['detach']?.()));const _0x3b6bc4=_0x5bc09b['markMultiRangeBlockFormat'](_0x397d83['map'](({element:_0x30d3a0})=>_0x30d3a0),{'formatGroupId':_0x22ea39()},[],'tablePasteCell',{'tablePasteChainId':_0x290aed});if(_0x3b6bc4){const _0x239957=_0x3b6bc4['getMarkers'](),_0xaa83c7=[];for(const {element:_0xd48f87,attributes:_0x619254}of _0x397d83){if(!_0x619254)continue;const _0x863282=_0x3e434f['model']['createRangeOn'](_0xd48f87),_0x4fcaae=_0x239957['find'](_0x52adb0=>_0x52adb0['getRange']()['isEqual'](_0x863282));_0x4fcaae&&_0xaa83c7['push']([_0x4fcaae['name'],_0x619254]);}_0xaa83c7['length']&&_0x3b6bc4['setAttribute']('markerAttributes',Object['fromEntries'](_0xaa83c7));}_0x4a9c0f=null;}));},{'priority':_0x48516f['high']+0xa}),_0x12243c['on']('contentInsertion',()=>{_0x4f5c61=!0x1;},{'priority':'lowest'}),_0x3e434f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4c96ad,_0x573a32)=>{const [_0x50bf47,_0x286b3b,,_0x39f8f8]=_0x573a32;if(!_0x4a9c0f)return;_0x4c96ad['stop']();const _0x3613f2=_0x50bf47['cell'],_0x394516=_0x286b3b,_0x48ed96=Ue(_0x3613f2),_0x5d1a3f=Ue(_0x394516);_0x4c96ad['return']=_0x3613f2;let _0x2e0c1e=null,_0x410cb4=null;if(_0x5d1a3f||_0x48ed96){if(_0x48ed96&&!_0x5d1a3f){_0x39f8f8['remove'](_0x3613f2['getChild'](0x0));for(const _0x5de9b1 of Array['from'](_0x394516['getChildren']()))_0x39f8f8['insert'](_0x5de9b1,_0x3613f2,'end');const _0x57f302=_0x4a9c0f['rowInsertionIndexes']['includes'](_0x50bf47['row']),_0x1847ca=_0x4a9c0f['columnInsertionIndexes']['includes'](_0x50bf47['column']);_0x57f302||_0x1847ca||(_0x2e0c1e=_0x272be6['fromRange'](_0x39f8f8['createRangeIn'](_0x3613f2)));}else _0x5d1a3f&&!_0x48ed96&&(_0x410cb4=_0x39f8f8['createRangeIn'](_0x3613f2));}else{const _0x20f6ae=_0x39f8f8['createElement']('tableCellSuggestion'),_0x334d36=_0x39f8f8['createElement']('tableCellSuggestion');_0x39f8f8['wrap'](_0x39f8f8['createRangeIn'](_0x3613f2),_0x334d36),_0x39f8f8['insert'](_0x20f6ae,_0x3613f2,0x0);for(const _0xe6f461 of Array['from'](_0x394516['getChildren']()))_0x39f8f8['insert'](_0xe6f461,_0x20f6ae,'end');_0x2e0c1e=_0x272be6['fromRange'](_0x39f8f8['createRangeOn'](_0x20f6ae)),_0x410cb4=_0x272be6['fromRange'](_0x39f8f8['createRangeOn'](_0x334d36));}const _0x1cea3f=Array['from'](_0x394516['getAttributes']())['filter'](([_0x6dade8])=>xe['includes'](_0x6dade8));_0x4a9c0f['cells']['push']({'element':_0x3613f2,'attributes':_0x1cea3f['length']?Object['fromEntries'](_0x1cea3f):null}),_0x2e0c1e&&_0x4a9c0f['insertionRanges']['push'](_0x2e0c1e),_0x410cb4&&_0x4a9c0f['deletionRanges']['push'](_0x410cb4);},{'priority':'high'}),_0x273e99['on']('insertColumns',(_0x3027b4,_0x2d7ecc)=>{const [_0x16e610,_0xf37b6d={}]=_0x2d7ecc;if(!_0x4a9c0f)return;const _0x10336e=_0xf37b6d['at']||0x0,_0x3099dd=_0xf37b6d['columns']||0x1;_0x4a9c0f['columnInsertionIndexes']=new Array(_0x3099dd)['fill'](_0x10336e)['map']((_0x132a6b,_0x2028c9)=>_0x132a6b+_0x2028c9);for(const {cell:_0x4c9c2d}of _0x273e99['createTableWalker'](_0x16e610,{'startColumn':_0x10336e,'endColumn':_0x10336e+_0x3099dd-0x1}))_0x4a9c0f['columnInsertionRanges']['push'](_0x3e434f['model']['createRangeOn'](_0x4c9c2d));},{'priority':'low'}),_0x273e99['on']('insertRows',(_0x1088a6,_0x3e6252)=>{const [_0x3bc4ab,_0x19d736={}]=_0x3e6252;if(!_0x4a9c0f)return;const _0x27e02b=_0x19d736['at']||0x0,_0x3ddc02=_0x19d736['rows']||0x1;_0x4a9c0f['rowInsertionIndexes']=new Array(_0x3ddc02)['fill'](_0x27e02b)['map']((_0x2459f2,_0xb38a73)=>_0x2459f2+_0xb38a73);for(const {cell:_0x5c98de}of _0x273e99['createTableWalker'](_0x3bc4ab,{'startRow':_0x27e02b,'endRow':_0x27e02b+_0x3ddc02-0x1}))_0x4a9c0f['rowInsertionRanges']['push'](_0x3e434f['model']['createRangeOn'](_0x5c98de));},{'priority':'low'}),_0x5bc09b['descriptionFactory']['registerDescriptionCallback'](_0x50066e=>{if(_0x50066e['subType']&&_0x50066e['subType']['startsWith']('tablePaste'))return _0x50066e['previous']?{}:{'type':'insertion','content':c(_0x3e434f['locale'],'*Replace\x20table\x20cells*')};});const _0x4a884e=()=>!0x1;for(const _0x44149c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5bc09b['_suggestionFactory']['registerCustomCallback']('insertion',_0x44149c,'join',_0x4a884e),_0x5bc09b['_suggestionFactory']['registerCustomCallback']('deletion',_0x44149c,'join',_0x4a884e),_0x5bc09b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x44149c,'join',_0x4a884e);_0x5bc09b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4a884e),_0x5bc09b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xb8c737,_0x1a7ec1,_0x54db22)=>{const _0xffe9c3=_0xb8c737['map'](_0x2dbd0d=>_0x2dbd0d['getContainedElement']())['filter'](_0x41550a=>_0x41550a),_0x19ee61=new Map(_0xffe9c3['map'](_0xabf9b5=>[_0xabf9b5,null]));if(_0x4a9c0f){for(const {element:_0x445259,attributes:_0x5f120b}of _0x4a9c0f['cells'])_0x5f120b&&_0x19ee61['set'](_0x445259,_0x5f120b);}else{if(_0x54db22&&_0x54db22['markerAttributes'])for(const [_0xbaf6e2,_0x42ac03]of Object['entries'](_0x54db22['markerAttributes'])){const _0x2cbce6=_0x3e434f['model']['markers']['get'](_0xbaf6e2),_0x2e3764=_0x2cbce6?_0x2cbce6['getRange']()['getContainedElement']():null;_0x2e3764&&_0x19ee61['set'](_0x2e3764,_0x42ac03);}}_0x3e434f['model']['change'](_0x3b046f=>{for(const [_0xd1a36b,_0x5b3b08]of _0x19ee61)_0x3b046f['setAttributes']({...Oe,..._0x5b3b08},_0xd1a36b);});});const _0x1b5ca1=(_0x17e9ae,_0x4f89ed)=>{_0x5bc09b['_suggestionFactory']['registerCustomCallback'](_0x17e9ae,'tablePaste',_0x4f89ed,(_0x117f0c,_0x2c75a9,_0x1b0a89)=>{_0x3e434f['model']['change'](_0xc7973e=>{const _0x32e618=[];for(const _0x307497 of _0x117f0c){const _0x5e69b5=_0x307497['start']['nodeAfter'];_0x5e69b5['is']('element','tableCellSuggestion')&&_0x32e618['push'](_0x5e69b5);}_0x5bc09b['_suggestionFactory']['getSuggestionCallback'](_0x17e9ae,null,_0x4f89ed)(_0x117f0c,_0x2c75a9,_0x1b0a89);for(const _0x130587 of _0x32e618)'$graveyard'!=_0x130587['root']['rootName']&&_0xc7973e['unwrap'](_0x130587);});});};_0x1b5ca1('insertion','accept'),_0x1b5ca1('insertion','discard'),_0x1b5ca1('deletion','accept'),_0x1b5ca1('deletion','discard'),_0x5bc09b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xe93978=>{const _0xabfc6=_0xe93978['map'](_0x3b3bdc=>_0x3b3bdc['getContainedElement']()),_0x36ef08=_0xabfc6[0x0]['findAncestor']('table'),{minRow:_0x2b3a51,maxRow:_0x4f2654}=_0x46a443['_getCoordsForCells'](_0xabfc6);_0x273e99['removeRows'](_0x36ef08,{'at':_0x2b3a51,'rows':_0x4f2654-_0x2b3a51+0x1});}),_0x5bc09b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3514b1=>{const _0x4bbd19=_0x3514b1['map'](_0x33351f=>_0x33351f['getContainedElement']()),_0x2d01b5=_0x4bbd19[0x0]['findAncestor']('table'),{minColumn:_0x5471c8,maxColumn:_0x4bf63}=_0x46a443['_getCoordsForCells'](_0x4bbd19);_0x273e99['removeColumns'](_0x2d01b5,{'at':_0x5471c8,'columns':_0x4bf63-_0x5471c8+0x1});});const _0x3781a8=(_0xe07459,_0x224a76)=>{if(!_0x224a76['subType']||!_0x224a76['subType']['startsWith']('tablePaste'))return;const _0x170017=_0x224a76['attributes']['tablePasteChainId'],_0x44c1b8=_0x5bc09b['getSuggestions']()['filter'](_0x2c763e=>_0x2c763e['isInContent']&&_0x2c763e['attributes']&&_0x2c763e['attributes']['tablePasteChainId']==_0x170017);_0x44c1b8['length']&&_0x224a76['getAllAdjacentSuggestions']()['length']!=_0x44c1b8['length']&&_0x44c1b8['reduce']((_0x20e7f4,_0x1e63de)=>(_0x20e7f4['next']=_0x1e63de,_0x1e63de['previous']=_0x20e7f4,_0x1e63de));};function _0x4161a2(_0x3e3f39,_0x49354f=!0x0){const {id:_0x3706f1,authorId:_0x2051f9}=_0x5bc09b['_splitMarkerName'](_0x3e3f39['markerName']),_0x5e3207=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3e58b8=_0x5bc09b['activeMarkers']['includes'](_0x3e3f39['markerName']);return _0x3e58b8&&_0x5e3207['push']('ck-suggestion-marker--active'),{'classes':_0x5e3207,'attributes':{'data-suggestion':_0x3706f1,'data-author-id':_0x2051f9},'priority':_0x3e58b8&&_0x49354f?0xbc2:0xbb8};}_0x5bc09b['on']('suggestionLoaded',_0x3781a8,{'priority':'high'}),_0x5bc09b['on']('suggestionUnloaded',_0x3781a8,{'priority':'high'}),_0x3e434f['model']['document']['registerPostFixer'](()=>{let _0x1bec3b=!0x1;const _0x5bceee=Array['from'](_0x3e434f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4c214a,data:_0x31df61}of _0x5bceee){const {group:_0x453b12,type:_0x44f290,id:_0x5ead86}=_0x5bc09b['_splitMarkerName'](_0x4c214a);if('suggestion'!=_0x453b12||'deletion'!=_0x44f290||_0x31df61['oldRange'])continue;if(!_0x5bc09b['hasSuggestion'](_0x5ead86))continue;const _0xcce674=_0x5bc09b['getSuggestion'](_0x5ead86)['getRanges'](),_0x4d9623=_0x3e434f['plugins']['get']('Users')['me'];for(const _0x197b34 of _0x5bc09b['getSuggestions']()){if(!_0x197b34['isInContent']||_0x197b34['author']!=_0x4d9623)continue;if('formatBlock'!=_0x197b34['type']||'tablePasteCell'!=_0x197b34['subType'])continue;if(_0x197b34['getRanges']()['every'](_0x386ef8=>_0xcce674['some'](_0x18e8f7=>_0x18e8f7['containsRange'](_0x386ef8,!0x0)))){for(const _0x5c464e of _0x197b34['getAllAdjacentSuggestions']())_0x5c464e['isInContent']&&(_0x5c464e['discard'](),_0x1bec3b=!0x0);}}}return _0x1bec3b;}),_0x3e434f['model']['document']['registerPostFixer'](_0xe44a1e=>{const _0x43a0d9=_0x3e434f['commands']['get']('redo');if(!_0x43a0d9||!_0x43a0d9['_createdBatches']['has'](_0xe44a1e['batch']))return!0x1;let _0x473e23=!0x1;const _0x568151=_0x3e434f['plugins']['get']('Users')['me'],_0x1b107a=_0x3e434f['model']['document']['differ']['getChanges'](),_0x3c68ab=Array['from'](_0x3e434f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x53d7fc,data:_0x401ff0})=>{const {group:_0xff37b,subType:_0x5c5e00,authorId:_0x19c788}=_0x5bc09b['_splitMarkerName'](_0x53d7fc);return'suggestion'==_0xff37b&&'tablePaste'==_0x5c5e00&&_0x19c788==_0x568151['id']&&!_0x401ff0['oldRange'];});for(const _0x4e711d of _0x1b107a){if('insert'!=_0x4e711d['type']||'tableCellSuggestion'!=_0x4e711d['name']||0x1!=_0x4e711d['length'])continue;const _0x2e0dda=_0xe44a1e['createRange'](_0x4e711d['position'],_0x4e711d['position']['getShiftedBy'](0x1));if(!_0x3c68ab['find'](({data:_0x1a1b28})=>_0x1a1b28['newRange']['isEqual'](_0x2e0dda))){for(const {name:_0x3df43e,data:_0x42b7b0}of _0x3c68ab)if(_0x2e0dda['containsRange'](_0x42b7b0['newRange'])){_0xe44a1e['updateMarker'](_0x3df43e,{'range':_0x2e0dda}),_0x473e23=!0x0;break;}}}return _0x473e23;}),_0x3e434f['model']['document']['registerPostFixer'](_0x4a952e=>{let _0x501c6f=!0x1;const _0x347b73=_0x3e434f['plugins']['get']('Users')['me'],_0x397be3=_0x5bc09b['getSuggestions']()['filter'](_0x172061=>_0x172061['isInContent']&&_0x172061['author']==_0x347b73),_0x46a315=new Set(),_0x425141=new Set();for(const _0x1a82d6 of _0x397be3)if('tablePaste'==_0x1a82d6['subType'])for(const _0x5d9eb2 of _0x1a82d6['getMarkers']()){const _0x36f1d7=_0x5d9eb2['getRange']()['getContainedElement']();if(_0x36f1d7){if(_0x36f1d7['is']('element','tableCellSuggestion')&&Ue(_0x36f1d7)){_0x1a82d6['removeMarker'](_0x5d9eb2['name']),_0x46a315['add'](_0x36f1d7),_0x501c6f=!0x0;const _0x3c30b1=_0x36f1d7['nextSibling'],_0x337f2d=_0x36f1d7['previousSibling'],_0x49cae1=_0x3c30b1&&_0x3c30b1['is']('element','tableCellSuggestion'),_0x52b3d5=_0x337f2d&&_0x337f2d['is']('element','tableCellSuggestion');_0x49cae1&&!_0x46a315['has'](_0x3c30b1)&&_0x425141['add'](_0x3c30b1),_0x52b3d5&&!_0x46a315['has'](_0x337f2d)&&_0x425141['add'](_0x337f2d);}else _0x36f1d7['is']('element','paragraph')&&_0x36f1d7['isEmpty']&&(_0x1a82d6['removeMarker'](_0x5d9eb2['name']),_0x501c6f=!0x0);}}else{if('tablePasteCell'==_0x1a82d6['subType']){if(!_0x1a82d6['attributes']||!_0x1a82d6['attributes']['tablePasteChainId'])continue;const _0x44e828=_0x1a82d6['attributes']['markerAttributes'];if(_0x44e828&&Object['keys'](_0x44e828)['length'])continue;const _0x2adb22=_0x1a82d6['attributes']['tablePasteChainId'];let _0x2e2660=!0x0,_0x10afff=!0x0;for(const _0x3d52da of _0x397be3)if(_0x3d52da['subType']&&_0x3d52da['subType']['startsWith']('tablePaste')){if(!_0x3d52da['attributes']['tablePasteChainId']){_0x10afff=!0x1;break;}if(_0x3d52da['id']!=_0x1a82d6['id']&&_0x3d52da['attributes']['tablePasteChainId']==_0x2adb22){_0x2e2660=!0x1;break;}}_0x10afff&&_0x2e2660&&(_0x1a82d6['removeMarkers'](),_0x501c6f=!0x0);}}for(const _0x57a58a of _0x46a315)_0x4a952e['remove'](_0x57a58a);for(const _0x230874 of _0x425141)_0x4a952e['unwrap'](_0x230874);return _0x501c6f;}),_0x3e434f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1df71f=>_0x4161a2(_0x1df71f),'converterPriority':'high'}),_0x3e434f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xdb3a69,_0x246bf5)=>_0x246bf5['options']['showSuggestionHighlights']?_0x4161a2(_0xdb3a69,!0x1):null,'converterPriority':'high'});const _0x2d47d7=_0x3e434f['editing']['view'];this['listenTo'](_0x2d47d7['document'],'clipboardOutput',(_0x5b53e6,_0x5ecad5)=>{const _0x53fda3=[];for(const _0x2f4126 of _0x2d47d7['createRangeIn'](_0x5ecad5['content'])['getItems']())_0x2f4126['is']('element','suggestion-td')&&_0x53fda3['push'](_0x2f4126);_0x2d47d7['change'](_0x43eff2=>{for(const _0x555ee7 of _0x53fda3)_0x43eff2['move'](_0x43eff2['createRangeIn'](_0x555ee7),_0x43eff2['createPositionBefore'](_0x555ee7)),_0x43eff2['remove'](_0x555ee7);});});}}function Ue(_0x203f42){if(_0x203f42['isEmpty'])return!0x0;const _0x59e387=_0x203f42['getChild'](0x0);return _0x59e387['is']('element','paragraph')&&_0x59e387['isEmpty'];}function De(_0x734e73,_0xcf29be={},_0x43fc02){for(const {isAnchor:_0x513ea9,cellHeight:_0x22598d,cellWidth:_0x3293dd}of _0x43fc02['createTableWalker'](_0x734e73,{'includeAllSlots':!0x0,..._0xcf29be}))if(!_0x513ea9||0x1!=_0x22598d||0x1!=_0x3293dd)return!0x1;return!0x0;}class Bt extends _0x10f0de{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x26041e=this['editor']['plugins']['get']('TrackChangesEditing');_0x26041e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x26041e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x26041e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x26041e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x26041e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x26041e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x33e56c,_0x5838cf){const _0x6be9a6=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd149f1=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1134d1=_0x5838cf['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x40c8ac=_0xd149f1['getColumnGroupElement'](_0x1134d1);let _0x4d0068=_0x40c8ac?_0xd149f1['getTableColumnsWidths'](_0x40c8ac):null,_0x54e075=_0x1134d1['getAttribute']('tableWidth')||null;const _0x31863=_0x5838cf['tableWidth']||_0x54e075,_0x1f2871=_0x5838cf['columnWidths']||_0x4d0068,_0x3e380a=this['editor']['plugins']['get']('Users')['me'];for(const _0x216d91 of _0x6be9a6['getSuggestions']()){const _0x1fc4d1=_0x216d91['getContainedElement']();if('resizeTable'===_0x216d91['subType']&&_0x1fc4d1===_0x1134d1){_0x216d91['author']!==_0x3e380a&&_0x216d91['discard']();const _0x1418e6=_0x216d91['data']['commandParams'];_0x54e075=_0x1418e6[0x0]['tableWidth'],_0x4d0068=_0x1418e6[0x0]['columnWidths'];break;}}_0x33e56c({'table':_0x1134d1,'tableWidth':_0x31863,'columnWidths':_0x1f2871}),_0x6be9a6['markBlockFormat'](_0x1134d1,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x54e075,'columnWidths':_0x4d0068}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x53e781){if('formatBlock'!=_0x53e781['type']&&'formatInline'!=_0x53e781['type'])return;const {data:_0x400df0}=_0x53e781;if(_0x400df0&&'resizeTable'===_0x400df0['formatGroupId']){const _0x32848d='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x32848d)};}}}class Ot extends _0x10f0de{['afterInit'](){const _0x496902=this['editor'];_0x496902['plugins']['has']('Template')&&_0x496902['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x10f0de{['afterInit'](){const _0x4dcb12=this['editor'];if(!_0x4dcb12['commands']['get']('insertTableOfContents'))return;_0x4dcb12['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x456b35=_0x4dcb12['plugins']['get']('TrackChangesEditing'),_0x2a318a=_0x4dcb12['locale'];_0x456b35['descriptionFactory']['registerElementLabel']('tableOfContents',_0x7678af=>c(_0x2a318a,'ELEMENT_TABLE_OF_CONTENTS',_0x7678af));}}class xt extends _0x10f0de{['afterInit'](){const _0x631b23=this['editor'];if(!_0x631b23['plugins']['has']('Title'))return;const _0x4ceab2=_0x631b23['plugins']['get']('TrackChangesEditing');_0x4ceab2['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x631b23['locale'],'ELEMENT_TITLE')),_0x631b23['model']['document']['registerPostFixer'](_0x5a7824=>{let _0x3d6b3a=!0x1;const _0x2dc58f=Array['from'](_0x631b23['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x12477c,data:_0x364b89}of _0x2dc58f){const {group:_0x7fe062}=_0x4ceab2['_splitMarkerName'](_0x12477c);if('suggestion'!==_0x7fe062||!_0x364b89['newRange'])continue;const _0x420136=_0x364b89['newRange'],_0x2cc197=_0x420136['end']['nodeBefore'];if(!_0x2cc197||!_0x2cc197['is']('element','title-content'))continue;if(!_0x420136['start']['isTouching'](_0x420136['end']))continue;const _0x438966=_0x631b23['model']['schema']['getNearestSelectionRange'](_0x420136['end'],'forward');if(_0x438966&&_0x438966['isCollapsed']){const _0x51433c=_0x5a7824['createRange'](_0x420136['start'],_0x438966['start']);_0x51433c['isEqual'](_0x420136)||(_0x5a7824['updateMarker'](_0x12477c,{'range':_0x51433c}),_0x3d6b3a=!0x0);}_0x3d6b3a||(_0x5a7824['removeMarker'](_0x12477c),_0x3d6b3a=!0x0);}return _0x3d6b3a;});}}class Tt extends _0x10f0de{['afterInit'](){const _0x308f7c=this['editor'],_0x1f019e=_0x308f7c['plugins']['get']('TrackChangesEditing');_0x308f7c['plugins']['has']('Uploadcare')&&(_0x1f019e['enableCommand']('uploadcare'),_0x308f7c['plugins']['has']('UploadcareImageEdit')&&(_0x1f019e['enableCommand']('uploadcareImageEdit'),_0x1f019e['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1f019e['registerBlockAttribute']('uploadcareImageId'),_0x1f019e['descriptionFactory']['registerDescriptionCallback'](_0x38b939=>{if('attribute'!=_0x38b939['type'])return;const {data:_0x19f494}=_0x38b939;return _0x19f494&&'uploadcareImageId'==_0x19f494['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x10f0de{['afterInit'](){const _0x211a22=this['editor'],_0x3440b4=_0x211a22['plugins']['get']('TrackChangesEditing');_0x211a22['plugins']['has']('UndoEditing')&&(_0x3440b4['enableCommand']('undo'),_0x3440b4['enableCommand']('redo'));}}class Ut extends _0x10f0de{static get['requires'](){return[Ct];}['afterInit'](){const _0x315246=this['editor'];if(!_0x315246['plugins']['has']('TableCaptionEditing'))return;_0x315246['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x10f0de{['tableProperties'];['tableCellProperties'];constructor(_0x4206d2){super(_0x4206d2),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 _0x52d7b1=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x494514 of this['tableProperties'])_0x52d7b1['enableCommand'](_0x494514,(_0x3f977b,_0x39b6de)=>{const _0x4c6f11=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x494514,[_0x4c6f11],this['tableProperties'],'tableProperties',_0x3f977b,_0x39b6de);});_0x52d7b1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x52d7b1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x52d7b1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x32e091,_0xc72136)=>this['handleDiscardAction'](this['tableProperties'],_0x32e091,_0xc72136)),_0x52d7b1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x64145f of this['tableCellProperties'])_0x52d7b1['enableCommand'](_0x64145f,(_0xef5dd6,_0x5ceac6)=>{const _0x4f6241=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x64145f,_0x4f6241,this['tableCellProperties'],'tableCellProperties',_0xef5dd6,_0x5ceac6);});_0x52d7b1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x52d7b1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x52d7b1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5dfd2e,_0x3067b6)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5dfd2e,_0x3067b6)),_0x52d7b1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x52d7b1['descriptionFactory']['registerDescriptionCallback'](_0x4e17f2=>this['handleSuggestionDescription'](_0x4e17f2));}['_handlePropertyChange'](_0x28cc9e,_0x463ef1,_0x37ba17,_0x344f0e,_0x4db453,_0x3cb799){const _0x89927=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3cb799['batch'],()=>{for(const _0x338ff9 of _0x463ef1){if(this['_getSuggestion'](_0x338ff9,_0x344f0e))_0x4db453(_0x3cb799);else{const _0x4c789a={};for(const _0x70a64a of _0x37ba17){const _0x718233=_0x338ff9['getAttribute'](_0x70a64a);void 0x0!==_0x718233&&(_0x4c789a[_0x70a64a]=_0x718233);}_0x4db453(_0x3cb799),_0x89927['markBlockFormat'](_0x338ff9,{'commandParams':[_0x4c789a]},[],_0x344f0e);}}});}['handleDiscardAction'](_0x1217df,_0x4cb589,_0x25f7ba){const _0x550e2c=_0x4cb589[0x0]['start']['nodeAfter'],_0x13373f=_0x25f7ba['commandParams'][0x0];this['editor']['model']['change'](_0x5204aa=>{for(const _0x8292d4 of _0x1217df)void 0x0!==_0x13373f[_0x8292d4]?_0x5204aa['setAttribute'](_0x8292d4,_0x13373f[_0x8292d4],_0x550e2c):_0x5204aa['removeAttribute'](_0x8292d4,_0x550e2c);});}['handleSuggestionDescription'](_0x2682ef){if(_0x2682ef['data'])switch(_0x2682ef['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x501bbb,_0x128b69){const _0x2c0a8e=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x7d1686 of _0x2c0a8e['getSuggestions']({'skipNotAttached':!0x0})){const _0x56c1d3=_0x7d1686['getContainedElement']();if(_0x7d1686['subType']===_0x128b69&&_0x56c1d3===_0x501bbb)return _0x7d1686;}return null;}}const u='$elementName';class p extends _0x10f0de{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4dac70,_0xb380ee,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3bf0d0){super(_0x3bf0d0),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1e71cf,_0x3cf2f2,_0x52d0d1,_0x22663c)=>{this['_model']['change'](()=>{for(const _0x4a3c08 of[..._0x22663c,..._0x52d0d1])this['_model']['markers']['has'](_0x4a3c08)&&_0x3bf0d0['editing']['reconvertMarker'](_0x4a3c08);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3bf0d0['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x3bf0d0['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3bf0d0['config']['get']('trackChanges.trackFormatChanges'),_0x3bf0d0['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3bf0d0['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3bf0d0,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x219fe7=this['editor'],_0x400c5f=(_0x1ea998,_0x50ea9b)=>{if('attribute'!=_0x1ea998)return'ck-suggestion-marker-'+_0x1ea998;const _0x2fa134=_0x50ea9b['split']('|')[0x0];return this['_isBlockAttribute'](_0x2fa134)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x219fe7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x597aa0=>{const {id:_0x5e5d1a,authorId:_0xee1dee,type:_0x3b1deb,subType:_0x4b21e8}=this['_splitMarkerName'](_0x597aa0['markerName']),_0x2d4838=['ck-suggestion-marker',_0x400c5f(_0x3b1deb,_0x4b21e8)];let _0x4c02fc=0xbb8;return this['activeMarkers']['includes'](_0x597aa0['markerName'])&&(_0x2d4838['push']('ck-suggestion-marker--active'),_0x4c02fc=0xbc2),'deletion'==_0x3b1deb&&(_0x4c02fc+=0x5),{'classes':_0x2d4838,'attributes':{'data-suggestion':_0x5e5d1a,'data-author-id':_0xee1dee},'priority':_0x4c02fc};}}),_0x219fe7['conversion']['for']('dataDowncast')['add'](_0x210cd4=>{_0x210cd4['on']('addMarker:suggestion',(_0x36bedb,_0x23c2ff,_0xe1d1a1)=>{if(!_0xe1d1a1['options']['showSuggestionHighlights'])return;const _0x48cfd7=_0x23c2ff['item'];if(!_0x48cfd7)return;const _0x2e8ecb=_0xe1d1a1['mapper']['toViewElement'](_0x48cfd7);_0x219fe7['model']['schema']['isObject'](_0x48cfd7)&&_0x2e8ecb&&!_0x2e8ecb['getCustomProperty']('widget')&&_0x2e8ecb['is']('containerElement')&&_0x5498e0(_0x2e8ecb,_0xe1d1a1['writer']);},{'priority':'high'});}),_0x219fe7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1e4012,_0x57d312)=>{if(!_0x57d312['options']['showSuggestionHighlights'])return null;const {type:_0x14d086,subType:_0x184b8d}=this['_splitMarkerName'](_0x1e4012['markerName']);return{'classes':['ck-suggestion-marker',_0x400c5f(_0x14d086,_0x184b8d)],'priority':0xbb8};}});const _0x3fd232=({showActiveMarkers:_0x2e9a28=!0x0,isAttributeSuggestion:_0x153201=!0x1}={})=>(_0x6d2d6b,_0x48c40b,_0x2f06ec)=>{if(!_0x48c40b['item'])return;const {id:_0x54f04f,authorId:_0x3fbea2}=this['_splitMarkerName'](_0x48c40b['markerName']);if(_0x153201){const _0x331971=this['_suggestions']['get'](_0x54f04f),_0x35b3ef=this['_getAttributeKey'](_0x331971);if(!this['_isBlockAttribute'](_0x35b3ef))return;}if(_0x48c40b['item']['is']('selection'))return void _0x2f06ec['consumable']['consume'](_0x48c40b['item'],_0x6d2d6b['name']);const _0x5943fa=_0x2f06ec['mapper']['toViewElement'](_0x48c40b['item']);if(_0x48c40b['item']['is']('element')&&_0x219fe7['model']['schema']['isBlock'](_0x48c40b['item'])&&!_0x5943fa['getCustomProperty']('addHighlight')){_0x2f06ec['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5943fa),_0x2f06ec['writer']['setAttribute']('data-suggestion',_0x54f04f,_0x5943fa),_0x2f06ec['writer']['setAttribute']('data-author-id',_0x3fbea2,_0x5943fa),_0x2f06ec['mapper']['bindElementToMarker'](_0x5943fa,_0x48c40b['markerName']),_0x2e9a28&&(this['activeMarkers']['includes'](_0x48c40b['markerName'])?_0x2f06ec['writer']['addClass']('ck-suggestion-marker--active',_0x5943fa):_0x2f06ec['writer']['removeClass']('ck-suggestion-marker--active',_0x5943fa));for(const _0x1a7eab of _0x219fe7['model']['createRangeIn'](_0x48c40b['item'])['getItems']())_0x2f06ec['consumable']['consume'](_0x1a7eab,_0x6d2d6b['name']);_0x2f06ec['consumable']['consume'](_0x48c40b['item'],_0x6d2d6b['name']);}};_0x219fe7['conversion']['for']('dataDowncast')['add'](_0x47c67a=>{_0x47c67a['on']('addMarker:suggestion:formatBlock',(_0x20f05c,_0x27e666,_0x37d1a5)=>{_0x37d1a5['options']['showSuggestionHighlights']&&_0x3fd232({'showActiveMarkers':!0x1})(_0x20f05c,_0x27e666,_0x37d1a5);},{'priority':'highest'});}),_0x219fe7['conversion']['for']('dataDowncast')['add'](_0xe4bfb=>{_0xe4bfb['on']('addMarker:suggestion:attribute',(_0x1c7eab,_0x1d983d,_0x3179bf)=>{_0x3179bf['options']['showSuggestionHighlights']&&_0x3fd232({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1c7eab,_0x1d983d,_0x3179bf);},{'priority':'highest'});}),_0x219fe7['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xa08341,_0x13705f)=>_0x13705f['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xa08341['substr'](0xb)}}),_0x219fe7['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xe66f83,{writer:_0x32588a})=>{let _0x3ceacf='suggestion:'+_0xe66f83['getAttribute']('suggestion-type')+':'+_0xe66f83['getAttribute']('id');return _0xe66f83['getAttribute']('marker-count')&&(_0x3ceacf+=':'+_0xe66f83['getAttribute']('marker-count')),_0x32588a['createElement']('$marker',{'data-name':_0x3ceacf});}}),_0x219fe7['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x219fe7['conversion']['for']('editingDowncast')['add'](_0x246489=>{_0x246489['on']('addMarker:suggestion:formatBlock',_0x3fd232(),{'priority':'high'});}),_0x219fe7['conversion']['for']('editingDowncast')['add'](_0x4698e2=>{_0x4698e2['on']('addMarker:suggestion:attribute',_0x3fd232({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x219fe7['conversion']['for']('editingDowncast')['add'](_0x394db8=>{_0x394db8['on']('removeMarker:suggestion:formatBlock',(_0x4983ea,_0x4df4d6,_0x353c98)=>{const _0x562eef=_0x353c98['mapper']['markerNameToElements'](_0x4df4d6['markerName']);if(_0x562eef){for(const _0x499d3b of _0x562eef)_0x499d3b['getCustomProperty']('addHighlight')||(_0x353c98['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x499d3b),_0x353c98['writer']['removeAttribute']('data-suggestion',_0x499d3b),_0x353c98['writer']['removeAttribute']('data-author-id',_0x499d3b),_0x353c98['mapper']['unbindElementFromMarkerName'](_0x499d3b,_0x4df4d6['markerName']));}},{'priority':'high'});}),_0x219fe7['conversion']['for']('editingDowncast')['add'](_0x57e120=>{_0x57e120['on']('removeMarker:suggestion:attribute',(_0x37dd05,_0xd168f3,_0x1bceb9)=>{const _0x1310b0=_0x1bceb9['mapper']['markerNameToElements'](_0xd168f3['markerName']);if(!_0x1310b0)return;const {id:_0x57047d}=this['_splitMarkerName'](_0xd168f3['markerName']),_0x1d3c68=this['_suggestions']['get'](_0x57047d),_0x55414d=this['_getAttributeKey'](_0x1d3c68);if(this['_isBlockAttribute'](_0x55414d)){for(const _0x923b7e of _0x1310b0)_0x923b7e['getCustomProperty']('addHighlight')||(_0x1bceb9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x923b7e),_0x1bceb9['writer']['removeAttribute']('data-suggestion',_0x923b7e),_0x1bceb9['writer']['removeAttribute']('data-author-id',_0x923b7e),_0x1bceb9['mapper']['unbindElementFromMarkerName'](_0x923b7e,_0xd168f3['markerName']));}},{'priority':'high'});}),_0x219fe7['model']['document']['registerPostFixer'](_0x22e387=>{let _0x391797=!0x1;const _0xa7e4fc=Array['from'](_0x219fe7['model']['document']['differ']['getChangedMarkers']()),_0x39f53f=new Set();for(const {name:_0x43c33b,data:_0x1dfb8c}of _0xa7e4fc){const {group:_0x32250d,type:_0x208280,subType:_0x1b7db6,id:_0xdc3f76}=this['_splitMarkerName'](_0x43c33b);if('suggestion'!==_0x32250d)continue;const _0x2f3404=this['_suggestions']['get'](_0xdc3f76);if(null!=_0x1dfb8c['newRange']){'formatInline'==_0x208280&&(_0x391797=_0x391797||Jt(_0x1dfb8c['newRange'],_0x43c33b,_0x22e387,_0x219fe7['model']['schema']));const _0x481973='attribute'==_0x208280&&this['_isBlockAttribute'](_0x1b7db6['split']('|')[0x0]);if(_0x1dfb8c['newRange']['isCollapsed']||'$graveyard'==_0x1dfb8c['newRange']['root']['rootName']||'formatBlock'==_0x208280&&!Ht(_0x1dfb8c['newRange'])||_0x481973&&!Ht(_0x1dfb8c['newRange'])||'deletion'==_0x208280&&!(!Lt(_0x4b3540=_0x1dfb8c['newRange'])&&!function(_0x55c1a7){return _0x55c1a7['start']['parent']==_0x55c1a7['end']['nodeBefore']&&_0x55c1a7['start']['isAtEnd'];}(_0x4b3540)))_0x22e387['removeMarker'](_0x43c33b),_0x391797=!0x0;else{if(!_0x2f3404||!_0x2f3404['isInContent'])continue;if(_0x1dfb8c['newRange']&&_0x1dfb8c['oldRange']&&_0x1dfb8c['newRange']['isEqual'](_0x1dfb8c['oldRange']))continue;_0x39f53f['add'](_0x2f3404);}}}var _0x4b3540;return _0x39f53f['size']>0x0&&(_0x391797=!!this['_joinWithAdjacentSuggestions'](_0x39f53f)||_0x391797),_0x391797;}),_0x219fe7['model']['document']['registerPostFixer'](_0x1d9d75=>{let _0x204157=!0x1;for(const _0xecae1 of _0x219fe7['model']['document']['differ']['getChanges']())if('insert'==_0xecae1['type'])for(const _0x43cba6 of this['_suggestions']['values']()){if(_0x43cba6['isMultiRange']||!_0x43cba6['isInContent'])continue;const _0x295fe4='formatBlock'==_0x43cba6['type'],_0x27a023=this['_getAttributeKey'](_0x43cba6),_0x1aef1f=_0x27a023&&this['_isBlockAttribute'](_0x27a023);if(!_0x295fe4&&!_0x1aef1f)continue;const _0x1307fe=_0x43cba6['getFirstRange']();if(_0x1307fe['start']['parent']!=_0x1307fe['end']['parent']&&!_0x1307fe['end']['isAtEnd']){const _0x3362a8=_0x219fe7['model']['createPositionAt'](_0x1307fe['start']['nodeAfter'],'end'),_0x2716b3=_0x219fe7['model']['createRange'](_0x1307fe['start'],_0x3362a8);_0x1d9d75['updateMarker'](_0x43cba6['getFirstMarker'](),{'range':_0x2716b3}),_0x204157=!0x0;}}return _0x204157;}),_0x219fe7['model']['document']['registerPostFixer'](_0x478339=>this['_processAttributeChanges'](_0x478339)),_0x219fe7['model']['document']['registerPostFixer'](_0x324af9=>!_0x324af9['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x324af9)),_0x219fe7['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x219fe7['model']['document']['on']('change:data',(_0x215950,_0x4ea44c)=>{if(!_0x4ea44c['isLocal']||_0x4ea44c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4c1614=_0x219fe7['model']['document']['differ']['getChanges']();if(0x0==_0x4c1614['length'])return;const _0x556a8b=[],_0x3b28d3=_0x4c1614['filter'](_0x172c46=>'attribute'==_0x172c46['type']),_0x59a001=_0x4c1614['filter'](_0x4839c9=>'insert'==_0x4839c9['type']&&'$text'!=_0x4839c9['name']);for(const _0x371b46 of _0x3b28d3)this['_isRegisteredAttribute'](_0x371b46['attributeKey'])&&_0x556a8b['push']({'key':_0x371b46['attributeKey'],'newValue':_0x371b46['attributeNewValue'],'oldValue':_0x371b46['attributeOldValue'],'range':qt(_0x371b46['range'],_0x219fe7['model'])});for(const _0x2c0299 of _0x59a001){if('rename'!=_0x2c0299['action']&&'refresh'!=_0x2c0299['action'])continue;const _0x31f90c=zt(_0x2c0299['position']['nodeAfter'],_0x219fe7['model']),_0x376e74=_0x2c0299['before'];'rename'==_0x2c0299['action']&&_0x556a8b['push']({'key':u,'newValue':_0x2c0299['name'],'oldValue':_0x376e74['name'],'range':_0x31f90c});for(const [_0x14e78e,_0x3f74e3]of _0x376e74['attributes']){if(!this['_isRegisteredAttribute'](_0x14e78e))continue;const _0xf7669b=_0x2c0299['attributes']['get'](_0x14e78e);_0x3f74e3!==_0xf7669b&&_0x556a8b['push']({'key':_0x14e78e,'newValue':_0xf7669b,'oldValue':_0x3f74e3,'range':_0x31f90c});}for(const [_0x5b4b44,_0x20ece1]of _0x2c0299['attributes'])this['_isRegisteredAttribute'](_0x5b4b44)&&(_0x376e74['attributes']['has'](_0x5b4b44)||_0x556a8b['push']({'key':_0x5b4b44,'newValue':_0x20ece1,'oldValue':null,'range':_0x31f90c}));}0x0!=_0x556a8b['length']&&_0x219fe7['model']['enqueueChange'](_0x4ea44c,_0x4ad8de=>{const _0x43af21=_0x22ea39();for(const {range:_0x2c5121,key:_0xe77522,oldValue:_0x6f4ad2,newValue:_0x39f6a6}of _0x556a8b)this['markAttributeChange'](_0x2c5121,_0xe77522,_0x6f4ad2,_0x39f6a6,{'groupId':_0x43af21});this['_reduceExistingSuggestions'](_0x4ad8de,_0x556a8b);});},{'priority':'lowest'}),_0x219fe7['model']['markers']['on']('update:suggestion',(_0x5bddb7,_0x146fe2,_0x2a3541)=>{if(null==_0x2a3541){const {id:_0x69f0c9}=this['_splitMarkerName'](_0x146fe2['name']),_0x50006e=this['_suggestions']['get'](_0x69f0c9);_0x50006e&&_0x50006e['addMarkerName'](_0x146fe2['name']);}}),_0x219fe7['model']['document']['on']('change:data',()=>{const _0x43d16d=Array['from'](_0x219fe7['model']['document']['differ']['getChangedMarkers']())['filter'](_0x234b83=>'suggestion'===this['_splitMarkerName'](_0x234b83['name'])['group']);if(0x0===_0x43d16d['length'])return;_0x43d16d['sort']((_0x58f72b,_0x386953)=>{const _0x3acd64=_0x58f72b['data']['oldRange'],_0x3c842e=_0x386953['data']['oldRange'];return null===_0x3acd64&&null===_0x3c842e?0x0:null===_0x3acd64&&null!==_0x3c842e?-0x1:null!==_0x3acd64&&null===_0x3c842e?0x1:_0x3acd64['start']['isBefore'](_0x3c842e['start'])?-0x1:0x1;});const _0x1300f8=new Set(),_0x1d96bb=new Set();for(const {name:_0x1db7a7,data:_0x365e78}of _0x43d16d){const {id:_0x5629c5}=this['_splitMarkerName'](_0x1db7a7);if(null===_0x365e78['oldRange']){const _0x20538f=this['_handleNewSuggestionMarker'](_0x1db7a7);_0x1d96bb['add'](_0x20538f);}else{const _0x246e09=this['_suggestions']['get'](_0x5629c5);null!==_0x365e78['newRange']||_0x246e09['isInContent']?(_0x1300f8['add'](_0x246e09['head']),_0x1d96bb['add'](_0x246e09)):this['_removeSuggestion'](_0x246e09);}}_0x1d96bb['size']>0x0&&this['_refreshSuggestionsChain'](_0x1d96bb);for(const _0x226178 of _0x1300f8)this['fire']('suggestionChanged',_0x226178);}),_0x219fe7['model']['on']('applyOperation',(_0x24ddef,_0xa32c95)=>{const _0x1bd50d=_0xa32c95[0x0];if(!this['_suggestions']['size'])return;if(!_0x1bd50d['isDocumentOperation'])return;if(_0x1bd50d['batch']['isUndo']||!_0x1bd50d['batch']['isLocal'])return;let _0x2e71d0,_0xb2e8c2;switch(_0x1bd50d['type']){case'insert':_0x2e71d0=_0x219fe7['model']['createPositionAt'](_0x1bd50d['position']),_0xb2e8c2=_0x2e71d0['getShiftedBy'](_0x1bd50d['howMany']);break;case'split':_0x2e71d0=_0x219fe7['model']['createPositionAt'](_0x1bd50d['splitPosition']),_0xb2e8c2=_0x219fe7['model']['createPositionAt'](_0x1bd50d['moveTargetPosition']);break;case'move':_0x2e71d0=_0x219fe7['model']['createPositionAt'](_0x1bd50d['targetPosition']),_0xb2e8c2=_0x2e71d0['getShiftedBy'](_0x1bd50d['howMany']);break;default:return;}const _0xff8672=_0x219fe7['model']['createRange'](_0x2e71d0,_0xb2e8c2);_0x219fe7['model']['change'](()=>{for(const {suggestion:_0x4f3756,meta:_0x3f5dc2}of this['_findSuggestions'](_0xff8672)){if(_0x4f3756['isMultiRange'])continue;if('formatInline'==_0x4f3756['type'])continue;const _0x18d9d3=this['_getAttributeKey'](_0x4f3756);if(_0x18d9d3&&this['_isBlockAttribute'](_0x18d9d3)&&'split'!=_0x1bd50d['type'])continue;const _0xe5b311=_0x4f3756['data']&&_0x4f3756['data']['multipleBlocks'];('formatBlock'!=_0x4f3756['type']||'split'==_0x1bd50d['type']&&!_0xe5b311)&&(_0x3f5dc2['containsRangeInObject']||'insertion'==_0x4f3756['type']&&_0x3f5dc2['isOwn']||_0x4f3756['getFirstRange']()['containsRange'](_0xff8672)&&this['_breakSuggestionMarker'](_0x4f3756,_0x2e71d0,_0xb2e8c2));}});},{'priority':'lowest'}),_0x219fe7['model']['on']('deleteContent',(_0x3b74a5,_0x3fa030)=>{const _0x116ca6=_0x3fa030[0x0],_0x1b8039=_0x3fa030[0x1];if(_0x1b8039&&_0x1b8039['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x116ca6['isCollapsed'])return;const _0x2e1aa9=_0x219fe7['model']['schema'],{start:_0x222635,end:_0x4df239}=_0x116ca6['getFirstRange'](),_0x3ff785=_0x222635['nodeAfter']&&_0x2e1aa9['isLimit'](_0x222635['nodeAfter'])?null:_0x2e1aa9['getNearestSelectionRange'](_0x222635,'forward'),_0x4e14ad=_0x4df239['nodeBefore']&&_0x2e1aa9['isLimit'](_0x4df239['nodeBefore'])?null:_0x2e1aa9['getNearestSelectionRange'](_0x4df239,'backward'),_0x4c14d1=_0x219fe7['model']['createRange'](_0x3ff785?_0x3ff785['start']:_0x222635,_0x4e14ad?_0x4e14ad['end']:_0x4df239);_0x219fe7['model']['change'](_0x1cee9f=>{this['markDeletion'](_0x4c14d1);const _0x2f3f53=_0x219fe7['model']['schema']['getNearestSelectionRange'](_0x4c14d1['start']);_0x116ca6['is']('documentSelection')?_0x1cee9f['setSelection'](_0x2f3f53):_0x116ca6['setTo'](_0x2f3f53);}),_0x3b74a5['stop']();},{'priority':_0x48516f['normal']+0xa}),_0x219fe7['model']['on']('insertContent',(_0x4ca654,_0x5c16a1)=>{const _0x54c677=_0x5c16a1[_0x5c16a1['length']-0x1];_0x54c677&&_0x54c677['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x219fe7['model']['change'](()=>{let _0x370c68=_0x219fe7['model']['insertContent'](_0x5c16a1[0x0],_0x5c16a1[0x1],_0x5c16a1[0x2],{'forceDefaultExecution':!0x0});if(!_0x370c68)return;_0x4ca654['return']=_0x370c68['clone']();const _0x273c88=_0x370c68['end']['nodeBefore'],_0x4120a3=_0x219fe7['model']['schema'];_0x273c88&&_0x4120a3['isBlock'](_0x273c88)&&!_0x4120a3['isObject'](_0x273c88)&&(_0x370c68=_0x219fe7['model']['createRange'](_0x370c68['start'],_0x219fe7['model']['createPositionAt'](_0x273c88,'end'))),this['markInsertion'](_0x370c68);}),_0x4ca654['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x371b84=new O(_0x219fe7,this['_suggestions']);_0x219fe7['commands']['add']('acceptSuggestion',_0x371b84),this['enableCommand']('acceptSuggestion');const _0x2fdc3d=new R(_0x219fe7,this['_suggestions']);_0x219fe7['commands']['add']('discardSuggestion',_0x2fdc3d),this['enableCommand']('discardSuggestion'),_0x219fe7['commands']['add']('acceptAllSuggestions',new x(_0x219fe7,_0x371b84,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x219fe7['commands']['add']('discardAllSuggestions',new x(_0x219fe7,_0x2fdc3d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x219fe7['commands']['add']('acceptSelectedSuggestions',new E(_0x219fe7,_0x371b84,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x219fe7['commands']['add']('discardSelectedSuggestions',new E(_0x219fe7,_0x2fdc3d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x45fb1f=_0x219fe7['plugins']['get']('CommentsRepository');this['listenTo'](_0x45fb1f,'addComment',(_0x3ea75d,{threadId:_0xe8da7f})=>{const _0x128fa3=this['_suggestions']['get'](_0xe8da7f);_0x128fa3&&_0x128fa3['commentThread']&&0x1===_0x128fa3['commentThread']['length']&&this['_updateSuggestionData'](_0xe8da7f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x45fb1f,'removeComment',(_0x24e3a0,{threadId:_0x5a0f1d})=>{const _0x57a411=this['_suggestions']['get'](_0x5a0f1d);_0x57a411&&_0x57a411['commentThread']&&!_0x57a411['commentThread']['length']&&this['_updateSuggestionData'](_0x5a0f1d,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x51a6a6){const _0x573336=_0x4f5fc2([0x6d,0x76,0x33,0x57,0x51,0x4f,0x43,0x53,0x6f,0x32,0x49,0x64,0x67,0x79,0x47,0x62,0x38,0x66,0x7a,0x30,0x42,0x6e,0x31,0x58,0x56,0x63,0x6b,0x34,0x54,0x74,0x65,0x35,0x78,0x50,0x70,0x52,0x48,0x37,0x41,0x59,0x4b,0x61,0x36,0x72,0x69,0x4a,0x45,0x46,0x55,0x6a,0x39,0x4d,0x71,0x75,0x4e,0x6c,0x4c,0x77,0x44,0x5a,0x73,0x68]),_0x44ad7b=0x778c3054,_0x4d1ab6=0x778b540c^_0x44ad7b,_0x4ff5c2=window[_0x4f5fc2([0x44,0x61,0x74,0x65])][_0x4f5fc2([0x6e,0x6f,0x77])](),_0x2596eb=_0x51a6a6[_0x4f5fc2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2c168f=new window[(_0x4f5fc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3da0be=>{_0x2596eb[_0x4f5fc2([0x6f,0x6e,0x63,0x65])](_0x4f5fc2([0x72,0x65,0x61,0x64,0x79]),_0x3da0be);}),_0x73f5b1={[_0x4f5fc2([0x6b,0x74,0x79])]:_0x4f5fc2([0x45,0x43]),[_0x4f5fc2([0x75,0x73,0x65])]:_0x4f5fc2([0x73,0x69,0x67]),[_0x4f5fc2([0x63,0x72,0x76])]:_0x4f5fc2([0x50,0x2d,0x32,0x35,0x36]),[_0x4f5fc2([0x78])]:_0x4f5fc2([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]),[_0x4f5fc2([0x79])]:_0x4f5fc2([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]),[_0x4f5fc2([0x61,0x6c,0x67])]:_0x4f5fc2([0x45,0x53,0x32,0x35,0x36])},_0x598b10=_0x2596eb[_0x4f5fc2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f5fc2([0x67,0x65,0x74])](_0x4f5fc2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xce8b3c(){let _0x50d72,_0x568322=null,_0x35b841=null;try{if(_0x598b10==_0x4f5fc2([0x47,0x50,0x4c]))return _0x4f5fc2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x50d72=_0x2d6a35(),!_0x50d72)return _0x4f5fc2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x50d72[_0x4f5fc2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x35b841=_0x5ab33e(_0x50d72[_0x4f5fc2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x50d72[_0x4f5fc2([0x6a,0x74,0x69])])),await _0x423f8b()?_0x5cdd0b()?_0x1085cf()?_0x4f5fc2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5098bc()?(_0x50d72[_0x4f5fc2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f5fc2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x568322=_0x4ae21b(_0x4f5fc2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x50d72[_0x4f5fc2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f5fc2([0x74,0x72,0x69,0x61,0x6c])&&(_0x568322=_0x4ae21b(_0x4f5fc2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x10082a()):_0x4f5fc2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f5fc2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f5fc2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x104845){return _0x4f5fc2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1085cf(){const _0x3dc07c=[_0x4f5fc2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f5fc2([0x74,0x72,0x69,0x61,0x6c])][_0x4f5fc2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50d72[_0x4f5fc2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4ff5c2/0x3e8:0xe10*_0x4d1ab6;return _0x50d72[_0x4f5fc2([0x65,0x78,0x70])]<_0x3dc07c;}function _0x5cdd0b(){const _0x14651a=_0x50d72[_0x4f5fc2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x14651a)return!0x1;if(_0x14651a[_0x4f5fc2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f5fc2([0x2a])))return!0x0;if(_0x14651a[_0x4f5fc2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f5fc2([0x54,0x43])))return!0x0;if(_0x14651a[_0x4f5fc2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f5fc2([0x52,0x54,0x43]))){if(_0x135f22())return!0x0;if(_0x441485()||_0x44b541())return!0x0;}return!0x1;}function _0x5098bc(){const _0x3a9ded=_0x50d72[_0x4f5fc2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3a9ded||0x0==_0x3a9ded[_0x4f5fc2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x232d67}=new URL(window[_0x4f5fc2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3a9ded[_0x4f5fc2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x232d67))return!0x0;const _0x3386ca=_0x232d67[_0x4f5fc2([0x73,0x70,0x6c,0x69,0x74])](_0x4f5fc2([0x2e]));return _0x3a9ded[_0x4f5fc2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49381f=>_0x49381f[_0x4f5fc2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f5fc2([0x2a])))[_0x4f5fc2([0x6d,0x61,0x70])](_0xcb020d=>_0xcb020d[_0x4f5fc2([0x73,0x70,0x6c,0x69,0x74])](_0x4f5fc2([0x2e])))[_0x4f5fc2([0x73,0x6f,0x6d,0x65])](_0x3e14c4=>_0x3386ca[_0x4f5fc2([0x65,0x76,0x65,0x72,0x79])]((_0xa40a7f,_0x4c959e)=>_0x3e14c4[_0x4c959e]===_0xa40a7f||_0x3e14c4[_0x4c959e]===_0x4f5fc2([0x2a])));}function _0x10082a(){return _0x568322&&_0x35b841?new window[(_0x4f5fc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c15f8,_0x4783a4)=>{_0x568322[_0x4f5fc2([0x74,0x68,0x65,0x6e])](_0x5c15f8,_0x4783a4),_0x35b841[_0x4f5fc2([0x74,0x68,0x65,0x6e])](_0x2576bd=>{_0x2576bd!=_0x4f5fc2([0x56,0x61,0x6c,0x69,0x64])&&_0x5c15f8(_0x2576bd);},_0x4783a4);}):_0x568322||_0x35b841||_0x4f5fc2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5ab33e(_0x5a4aea,_0x495e3d){return new window[(_0x4f5fc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x513a88=>{if(_0x162c2d())return _0x513a88(_0x4f5fc2([0x56,0x61,0x6c,0x69,0x64]));_0x3bcb6f(),_0x2596eb[_0x4f5fc2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f5fc2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x58484c=!0x1;const _0x215e5b=_0x22ea39();function _0x47fdea(_0x2b7983){return!!_0x2b7983&&(typeof _0x2b7983===_0x4f5fc2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2b7983===_0x4f5fc2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2b7983[_0x4f5fc2([0x74,0x68,0x65,0x6e])]===_0x4f5fc2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2b7983[_0x4f5fc2([0x63,0x61,0x74,0x63,0x68])]===_0x4f5fc2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x6aadde(_0xa8a66d){_0x14c0b6(_0xa8a66d)[_0x4f5fc2([0x74,0x68,0x65,0x6e])](_0x31b55e=>{if(!_0x31b55e||_0x31b55e[_0x4f5fc2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f5fc2([0x6f,0x6b]))return _0x4f5fc2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x44dca9(_0x342438(_0x215e5b+_0x495e3d))!=_0x31b55e[_0x4f5fc2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f5fc2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f5fc2([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f5fc2([0x74,0x68,0x65,0x6e])](_0x49ca76=>(_0x2b1881(),_0x49ca76),()=>{const _0x185616=_0x1c72fe();return null==_0x185616?(_0x2b1881(),_0x4f5fc2([0x56,0x61,0x6c,0x69,0x64])):_0x4f5fc2(_0x4ff5c2-_0x185616>(0x5380b454^_0x44ad7b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f5fc2([0x74,0x68,0x65,0x6e])](_0x513a88)[_0x4f5fc2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x513a88(_0x4f5fc2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x46bf06=0x77baded4^_0x44ad7b;function _0x2b1881(){const _0x4a8b80=_0x4f5fc2([0x6c,0x6c,0x63,0x74,0x2d])+_0x44dca9(_0x342438(_0x5a4aea)),_0x3e09da=_0x218540(_0x44dca9(window[_0x4f5fc2([0x4d,0x61,0x74,0x68])][_0x4f5fc2([0x63,0x65,0x69,0x6c])](_0x4ff5c2/_0x46bf06)));window[_0x4f5fc2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f5fc2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a8b80,_0x3e09da);}function _0x1c72fe(){const _0x21fbbf=_0x4f5fc2([0x6c,0x6c,0x63,0x74,0x2d])+_0x44dca9(_0x342438(_0x5a4aea)),_0x5542c8=window[_0x4f5fc2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f5fc2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21fbbf);return _0x5542c8?window[_0x4f5fc2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x218540(_0x5542c8),0x10)*_0x46bf06:null;}function _0x14c0b6(_0x2397f6){return new window[(_0x4f5fc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33cc8a,_0x418ff0)=>{_0x2397f6[_0x4f5fc2([0x74,0x68,0x65,0x6e])](_0x33cc8a,_0x418ff0),window[_0x4f5fc2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x418ff0,0x778de494^_0x44ad7b);});}}_0x2596eb[_0x4f5fc2([0x6f,0x6e])](_0x4f5fc2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2f14d4,_0x4e860f)=>{if(_0x4e860f[0x0]!=_0x5a4aea)return _0x513a88(_0x4f5fc2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e860f[0x1]={..._0x4e860f[0x1],[_0x4f5fc2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x215e5b};},{[_0x4f5fc2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f5fc2([0x68,0x69,0x67,0x68])}),_0x2596eb[_0x4f5fc2([0x6f,0x6e])](_0x4f5fc2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x258885=>{_0x47fdea(_0x258885[_0x4f5fc2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x58484c=!0x0,_0x6aadde(_0x258885[_0x4f5fc2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f5fc2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f5fc2([0x6c,0x6f,0x77])}),_0x2c168f[_0x4f5fc2([0x74,0x68,0x65,0x6e])](()=>{_0x58484c||_0x513a88(_0x4f5fc2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x162c2d(){return _0x2596eb[_0x4f5fc2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f5fc2([0x76,0x69,0x65,0x77])][_0x4f5fc2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f5fc2([0x61,0x75,0x74,0x6f]);}function _0x3bcb6f(){_0x2596eb[_0x4f5fc2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f5fc2([0x76,0x69,0x65,0x77])][_0x4f5fc2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f5fc2([0x61,0x75,0x74,0x6f]);}}function _0x4ae21b(_0xafa1b8){const _0x3a3d9c=[new window[(_0x4f5fc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a597c=>setTimeout(_0x5a597c,0x77850e98^_0x44ad7b)),_0x2c168f[_0x4f5fc2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f5fc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14aba2=>{let _0x530d09=0x0;_0x2596eb[_0x4f5fc2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f5fc2([0x6f,0x6e])](_0x4f5fc2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4c9471,_0xb37c1f)=>{_0xb37c1f[0x0][_0x4f5fc2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x530d09++,_0x530d09==(0x778c31ac^_0x44ad7b)&&(_0x14aba2(),_0x4c9471[_0x4f5fc2([0x6f,0x66,0x66])]());});}))];return window[_0x4f5fc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f5fc2([0x72,0x61,0x63,0x65])](_0x3a3d9c)[_0x4f5fc2([0x74,0x68,0x65,0x6e])](()=>_0xafa1b8);}async function _0x299ee0(){await _0x2c168f,_0x2596eb[_0x4f5fc2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f5fc2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x58c82f,_0x2596eb[_0x4f5fc2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f5fc2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x58c82f,_0x2596eb[_0x4f5fc2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f5fc2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x135f22(){return _0x49d9aa(_0x4f5fc2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5635c9(_0x4f5fc2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4f5fc2([0x73,0x74,0x61,0x74,0x65])]==_0x4f5fc2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x441485(){return _0x49d9aa(_0x4f5fc2([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 _0x44b541(){return _0x49d9aa(_0x4f5fc2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x283f08(_0x412656){const _0x5e0b0e=_0x3be3c9();_0x2596eb[_0x5e0b0e]=_0x4f5fc2([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x412656,_0x412656!=_0x4f5fc2([0x56,0x61,0x6c,0x69,0x64])&&_0x299ee0();}function _0x3be3c9(){const _0x14d819=window[_0x4f5fc2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f5fc2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f5fc2([0x6e,0x6f,0x77])]())[_0x4f5fc2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f5fc2([0x2e]),'');let _0x5ec331=_0x4f5fc2([0x6d]);for(let _0x50e736=0x0;_0x50e736<_0x14d819[_0x4f5fc2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50e736+=0x2){let _0x1e2087=window[_0x4f5fc2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14d819[_0x4f5fc2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50e736,_0x50e736+0x2));_0x1e2087>=_0x573336[_0x4f5fc2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1e2087-=_0x573336[_0x4f5fc2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5ec331+=_0x573336[_0x1e2087];}return _0x5ec331;}function _0x2d6a35(){const _0x168332=_0x598b10[_0x4f5fc2([0x73,0x70,0x6c,0x69,0x74])](_0x4f5fc2([0x2e]));if(0x3!=_0x168332[_0x4f5fc2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x32b561(_0x168332[0x1]);function _0x32b561(_0x80d90){const _0x2bc23d=_0x20b0f6(_0x80d90);return _0x2bc23d&&_0xd1a125()?_0x2bc23d:null;function _0xd1a125(){const _0x58097e=_0x2bc23d[_0x4f5fc2([0x6a,0x74,0x69])],_0x1349a7=window[_0x4f5fc2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58097e[_0x4f5fc2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x58097e[_0x4f5fc2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x62302c={..._0x2bc23d,[_0x4f5fc2([0x6a,0x74,0x69])]:_0x58097e[_0x4f5fc2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x58097e[_0x4f5fc2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x62302c[_0x4f5fc2([0x76,0x63])],_0x342438(_0x62302c)==_0x1349a7;}}}async function _0x423f8b(){let _0x17ac71=!0x0;try{const _0x14368d=_0x598b10[_0x4f5fc2([0x73,0x70,0x6c,0x69,0x74])](_0x4f5fc2([0x2e])),[_0x407527,_0x2042dc,_0x5afeab]=_0x14368d;return _0x4537ab(_0x407527),await _0x369357(_0x407527,_0x2042dc,_0x5afeab),_0x17ac71;}catch(_0x38e545){return!0x1;}function _0x4537ab(_0x319680){const _0x55d2df=_0x20b0f6(_0x319680);_0x55d2df&&_0x55d2df[_0x4f5fc2([0x61,0x6c,0x67])]==_0x4f5fc2([0x45,0x53,0x32,0x35,0x36])||(_0x17ac71=!0x1);}async function _0x369357(_0x5bafd1,_0x14b103,_0x118c9c){const _0x3a88e0=window[_0x4f5fc2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f5fc2([0x66,0x72,0x6f,0x6d])](_0x3dda44(_0x118c9c),_0x538be5=>_0x538be5[_0x4f5fc2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5a14e9=new window[(_0x4f5fc2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f5fc2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5bafd1+_0x4f5fc2([0x2e])+_0x14b103),_0x400f8c=window[_0x4f5fc2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f5fc2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x400f8c)return;const _0x613153=await _0x400f8c[_0x4f5fc2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f5fc2([0x6a,0x77,0x6b]),_0x73f5b1,{[_0x4f5fc2([0x6e,0x61,0x6d,0x65])]:_0x4f5fc2([0x45,0x43,0x44,0x53,0x41]),[_0x4f5fc2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f5fc2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f5fc2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x400f8c[_0x4f5fc2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f5fc2([0x6e,0x61,0x6d,0x65])]:_0x4f5fc2([0x45,0x43,0x44,0x53,0x41]),[_0x4f5fc2([0x68,0x61,0x73,0x68])]:{[_0x4f5fc2([0x6e,0x61,0x6d,0x65])]:_0x4f5fc2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x613153,_0x3a88e0,_0x5a14e9)||(_0x17ac71=!0x1);}}function _0x20b0f6(_0x8dd2be){return _0x8dd2be[_0x4f5fc2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f5fc2([0x65,0x79]))?JSON[_0x4f5fc2([0x70,0x61,0x72,0x73,0x65])](_0x3dda44(_0x8dd2be)):null;}function _0x3dda44(_0x4e5fa4){return window[_0x4f5fc2([0x61,0x74,0x6f,0x62])](_0x4e5fa4[_0x4f5fc2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f5fc2([0x2b]))[_0x4f5fc2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f5fc2([0x2f])));}function _0x342438(_0x3e99e1){let _0x24f926=0x1505;function _0x1f5d21(_0x8f730d){for(let _0x1b9abc=0x0;_0x1b9abc<_0x8f730d[_0x4f5fc2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b9abc++){const _0x41d310=_0x8f730d[_0x4f5fc2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1b9abc);_0x24f926=(_0x24f926<<0x5)+_0x24f926+_0x41d310,_0x24f926&=_0x24f926;}}function _0x190e8a(_0x2d6b7e){Array[_0x4f5fc2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d6b7e)?_0x2d6b7e[_0x4f5fc2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x190e8a):_0x2d6b7e&&typeof _0x2d6b7e==_0x4f5fc2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f5fc2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d6b7e)[_0x4f5fc2([0x73,0x6f,0x72,0x74])]()[_0x4f5fc2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x34bebc,_0x271bc7])=>{_0x1f5d21(_0x34bebc),_0x190e8a(_0x271bc7);}):_0x1f5d21(window[_0x4f5fc2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d6b7e));}return _0x190e8a(_0x3e99e1),_0x24f926>>>0x0;}function _0x44dca9(_0x1f3e4e){return _0x1f3e4e[_0x4f5fc2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f5fc2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f5fc2([0x30]));}function _0x218540(_0x555c1c){return _0x555c1c[_0x4f5fc2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f5fc2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f5fc2([0x6a,0x6f,0x69,0x6e])]('');}function _0x49d9aa(_0x37890e){return _0x2596eb[_0x4f5fc2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f5fc2([0x68,0x61,0x73])](_0x37890e);}function _0x5635c9(_0x3bed0c){return _0x2596eb[_0x4f5fc2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f5fc2([0x67,0x65,0x74])](_0x3bed0c);}function _0x58c82f(){}function _0x4f5fc2(_0x5c687f){return _0x5c687f['map'](_0x4a4271=>String['fromCharCode'](_0x4a4271))['join']('');}_0x283f08(await _0xce8b3c());}(this);}set['adapter'](_0x2de98b){if(this['_adapter'])throw new _0x56438b('track-changes-adapter-already-set',this);this['_adapter']=_0x2de98b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x129f36=!0x1,toJSON:_0x241d9d=!0x1}={}){const _0x289eaa=[];for(const _0xa12a87 of this['_suggestions']['values']())_0x129f36&&!_0xa12a87['isInContent']||_0x289eaa['push'](_0xa12a87);return _0x241d9d?_0x289eaa['map'](_0x3e17c5=>_0x3e17c5['toJSON']()):_0x289eaa;}['getSuggestion'](_0x4c2bc1){const _0x3a51f8=this['_suggestions']['get'](_0x4c2bc1);if(!_0x3a51f8)throw new _0x56438b('track-changes-suggestion-not-found',this);return _0x3a51f8;}['hasSuggestion'](_0xd2f629){return this['_suggestions']['has'](_0xd2f629);}['addSuggestionData'](_0x54005e){const {authorId:_0x1274dd,id:_0x515106,attributes:_0x3611c5}=_0x54005e,[_0x957e05,_0x3b5658]=_0x54005e['type']['split'](':'),_0x506841=this['_suggestions']['get'](_0x515106)||this['_createSuggestion'](_0x957e05,_0x3b5658,_0x515106,_0x1274dd,_0x3611c5);if(this['_addThreadToSuggestion'](_0x506841),this['_checkSuggestionCorrectness'](_0x506841,_0x957e05,_0x3b5658||null,_0x1274dd),_0x506841['createdAt']=_0x54005e['createdAt'],_0x506841['_isDataLoaded']=!0x0,_0x3611c5&&_0x3611c5['@external']){const _0x39e870=_0x3611c5['@external'],_0xe45efb=this['_getExternalAuthor'](_0x39e870['authorName']);_0x506841['authoredAt']=_0x39e870['createdAt'],_0x506841['author']=_0xe45efb,_0x506841['isExternal']=!0x0;}else _0x506841['authoredAt']=_0x54005e['createdAt'];switch(_0x54005e['data']&&(_0x506841['data']=_0x54005e['data']),_0x54005e['attributes']&&(_0x506841['attributes']=_0x54005e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x506841['_saved']=!0x0),this['_suggestionState']['get'](_0x506841)){case'notReady':this['_suggestionState']['set'](_0x506841,'dataReady');break;case'markerReady':_0x506841['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x506841])),this['_refreshSuggestionsChain'](new Set([_0x506841])),this['_suggestionState']['set'](_0x506841,'ready'),this['fire']('suggestionLoaded',_0x506841)):this['_suggestionState']['set'](_0x506841,'removed');}return _0x506841;}['acceptSuggestion'](_0x23f75c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x23f0ed of _0x23f75c['getAllAdjacentSuggestions']())_0x23f0ed['accept']();});});}['discardSuggestion'](_0x26203c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x24e87e of _0x26203c['getAllAdjacentSuggestions']())_0x24e87e['discard']();});});}['enableCommand'](_0x12cb78,_0x42642b){const _0xddc0cb=this['editor']['commands']['get'](_0x12cb78);if(!_0xddc0cb)throw new _0x56438b('track-changes-command-not-found',this,{'commandName':_0x12cb78});if(this['_enabledCommands']['has'](_0xddc0cb))throw new _0x56438b('track-changes-enable-command-twice',this,{'commandName':_0x12cb78});this['_enabledCommands']['add'](_0xddc0cb),_0x42642b&&_0xddc0cb['on']('execute',(_0x2e584f,_0x1ea34b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1ea34b['length']>0x0&&_0x1ea34b[_0x1ea34b['length']-0x1]&&_0x1ea34b[_0x1ea34b['length']-0x1]['forceDefaultExecution']?_0x1ea34b['pop']():(_0x2e584f['return']=_0x42642b((..._0x578508)=>_0xddc0cb['execute'](..._0x578508,{'forceDefaultExecution':!0x0}),..._0x1ea34b),_0x2e584f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5dcdf3){let _0xb9d73b,_0x4be064;const _0x3d876d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xb9d73b=_0x5dcdf3();}catch(_0x1345c2){_0x4be064=_0x1345c2;}return _0x3d876d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4be064&&_0x56438b['rethrowUnexpectedError'](_0x4be064,this),_0xb9d73b;}['markInsertion'](_0x3707e5,_0x16c034=null,_0x3274bc={}){if(_0x3707e5['isCollapsed'])return null;const _0x302457=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x30fa59,meta:_0x3c6a55}of this['_findSuggestions'](_0x3707e5,'insertion'))if(_0x3c6a55['isOwn']){if(!_0x3c6a55['isNextTo']){if(_0x3c6a55['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x30fa59,_0x3274bc))continue;return _0x30fa59;}if(Xt(_0x30fa59,_0x3274bc))return _0x30fa59;this['_breakSuggestionMarker'](_0x30fa59,_0x3707e5['start'],_0x3707e5['end']);break;}if(_0x16c034==_0x30fa59['subType']&&Xt(_0x30fa59,_0x3274bc)){const _0x6193f5=_0x30fa59['getFirstRange']();return _0x6193f5['start']['isEqual'](_0x3707e5['end'])?this['_setSuggestionRange'](_0x30fa59,this['_model']['createRange'](_0x3707e5['start'],_0x6193f5['end'])):this['_setSuggestionRange'](_0x30fa59,this['_model']['createRange'](_0x6193f5['start'],_0x3707e5['end'])),_0x30fa59;}}const _0x47e19b=_0x22ea39(),_0x1a2e01=_0x302457['id'],_0xe988a3=_0x16c034?'insertion:'+_0x16c034:'insertion',_0x4295b9=this['_setSuggestionData']({'id':_0x47e19b,'type':_0xe988a3,'createdAt':new Date(),'authorId':_0x1a2e01,'attributes':_0x3274bc});return this['_addSuggestionMarker'](_0xe988a3,_0x47e19b,_0x1a2e01,_0x3707e5),_0x4295b9;}['markMultiRangeInsertion'](_0x46df7f,_0x1c8129='multi',_0x3f0e2e={}){const _0x70b0b3=this['editor']['plugins']['get']('Users')['me'],_0x143232=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1c8129,'join');for(const _0x5ed8fd of this['getSuggestions']())if(_0x5ed8fd['author']['id']==_0x70b0b3['id']&&'insertion'==_0x5ed8fd['type']&&_0x5ed8fd['subType']==_0x1c8129&&Xt(_0x5ed8fd,_0x3f0e2e)&&(_0x143232(_0x5ed8fd['getRanges'](),_0x46df7f)||_0x143232(_0x46df7f,_0x5ed8fd['getRanges']()))){for(const _0x219327 of _0x46df7f)_0x5ed8fd['addRange'](_0x219327);return _0x5ed8fd;}for(const {suggestion:_0x280437,meta:_0x298393}of this['_findSuggestions'](_0x46df7f,'insertion')){if(!_0x298393['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x298393['containsRangeInObject'])continue;if(!Xt(_0x280437,_0x3f0e2e))continue;let _0x286b17=!0x0;for(const _0x522f3f of _0x280437['getRanges']())for(const _0x26b124 of _0x46df7f)if(!_0x522f3f['containsRange'](_0x26b124)){_0x286b17=!0x1;break;}if(_0x286b17)return _0x280437;}const _0x172b47=_0x22ea39(),_0xff1be3=_0x70b0b3['id'],_0x43035e='insertion:'+_0x1c8129,_0x4e0d3d=this['_setSuggestionData']({'id':_0x172b47,'type':_0x43035e,'createdAt':new Date(),'authorId':_0xff1be3,'attributes':_0x3f0e2e});for(const _0x2c9ec4 of _0x46df7f)this['_addSuggestionMarker'](_0x43035e,_0x172b47,_0xff1be3,_0x2c9ec4,o['getMultiRangeId']());return _0x4e0d3d;}['markInlineFormat'](_0x544d25,_0x3952bc,_0x1e135e=null,_0x55024b={}){if(_0x1e135e=_0x1e135e||Kt(_0x3952bc),_0x544d25['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x53370a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1e135e,'accept');return this['forceDefaultExecution'](()=>_0x53370a([_0x544d25],_0x3952bc,_0x55024b)),null;}const _0x53120a=this['editor']['plugins']['get']('Users')['me'],_0x35f197=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5482b0,meta:_0x5bd14e}of this['_findSuggestions'](_0x544d25,'insertion'))_0x5bd14e['isOwn']&&!_0x5bd14e['isInsideObject']&&_0x35f197['push'](..._0x5482b0['getRanges']());}const _0x40f989=function(_0x15c32e,_0x109ec5){const _0x53c78e=[];for(const _0x418bb3 of _0x109ec5){const _0x3c4628=_0x15c32e['getIntersection'](_0x418bb3);_0x3c4628&&_0x53c78e['push'](_0x3c4628);}return _0x53c78e;}(_0x544d25,_0x35f197),_0x1eb788=function(_0x2c9f07,_0x3aa9db){const _0x235441=[_0x2c9f07];for(const _0x306b8b of _0x3aa9db){let _0x422e39=0x0;for(;_0x422e39<_0x235441['length'];){const _0x1f9795=_0x235441[_0x422e39]['getDifference'](_0x306b8b);_0x235441['splice'](_0x422e39,0x1,..._0x1f9795),_0x422e39+=_0x1f9795['length'];}}return _0x235441;}(_0x544d25,_0x35f197);_0x40f989['length']&&this['_model']['change'](()=>{for(const _0x2cd230 of _0x40f989){const _0xb4b79c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1e135e,'accept');this['forceDefaultExecution'](()=>_0xb4b79c([_0x2cd230],_0x3952bc,_0x55024b));}});for(const _0x3f4f07 of _0x1eb788){let _0xd5092d=null,_0x59d9ca=_0x3f4f07['start'],_0x3fd776=_0x3f4f07['end'];for(const {suggestion:_0x24b82c,meta:_0xc5fe6f}of this['_findSuggestions'](_0x3f4f07,'formatInline')){if(!_0xc5fe6f['isOwn'])continue;if(_0x24b82c['subType']!=_0x1e135e)continue;if(!Xt(_0x24b82c,_0x55024b))continue;const _0x51849f=_0x24b82c['getFirstRange']();if(_0x51849f['containsRange'](_0x3f4f07,!0x0))return null;_0x59d9ca=_0x59d9ca['isBefore'](_0x51849f['start'])?_0x59d9ca:_0x51849f['start'],_0x3fd776=_0x3fd776['isAfter'](_0x51849f['end'])?_0x3fd776:_0x51849f['end'],_0xd5092d?_0x51849f['start']['isBefore'](_0xd5092d['getFirstRange']()['start'])?(_0xd5092d['removeMarkers'](),_0xd5092d=_0x24b82c):_0x24b82c['removeMarkers']():_0xd5092d=_0x24b82c;}const _0x1ce9c5=this['_model']['createRange'](_0x59d9ca,_0x3fd776);if(_0xd5092d)this['_setSuggestionRange'](_0xd5092d,_0x1ce9c5);else{const _0x153e3a=_0x22ea39(),_0x16c723=_0x53120a['id'];this['_setSuggestionData']({'id':_0x153e3a,'type':'formatInline:'+_0x1e135e,'data':_0x3952bc,'createdAt':new Date(),'authorId':_0x16c723,'attributes':_0x55024b}),this['_addSuggestionMarker']('formatInline:'+_0x1e135e,_0x153e3a,_0x16c723,_0x1ce9c5);}}return null;}['markBlockFormat'](_0x31f9be,_0x5d319b,_0x209f98=[],_0x70d3b6=null,_0x4cd076={}){_0x5d319b['formatGroupId']||(_0x5d319b['formatGroupId']=_0x5d319b['commandName']),_0x5d319b['multipleBlocks']=_0x31f9be['is']('range'),_0x70d3b6=_0x70d3b6||Kt(_0x5d319b);const _0x28cfc9=_0x209f98['map'](_0x4338cc=>zt(_0x4338cc,this['_model'])),_0x3d5f0a=_0x31f9be['is']('range')?_0x31f9be:zt(_0x31f9be,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4f5f73=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x70d3b6,'accept');return this['forceDefaultExecution'](()=>_0x4f5f73([_0x3d5f0a],_0x5d319b,_0x4cd076)),null;}_0x28cfc9['push'](_0x3d5f0a);let _0x1513ad=!0x0;for(const _0x4bab2a of _0x28cfc9)if(!this['_rangeIsInLocalUserInsertion'](_0x4bab2a)){_0x1513ad=!0x1;break;}if(_0x1513ad&&'always'!==this['_trackFormatChanges']){const _0x41a873=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x70d3b6,'accept');return this['forceDefaultExecution'](()=>_0x41a873([_0x3d5f0a],_0x5d319b,_0x4cd076)),null;}let _0x507b40=null,_0x5c88c2=_0x3d5f0a['start'],_0x41f9ac=_0x3d5f0a['end'];for(const {suggestion:_0x8187fa,meta:_0x471494}of this['_findSuggestions'](_0x3d5f0a,'formatBlock')){if(!_0x471494['isOwn'])continue;if(_0x471494['isNextTo']||_0x471494['containsRangeInObject']||_0x471494['isInsideObject'])continue;if(_0x8187fa['data']['formatGroupId']!=_0x5d319b['formatGroupId'])continue;if(!Xt(_0x8187fa,_0x4cd076))continue;const _0xc06196=_0x8187fa['getFirstRange']();if(_0x8187fa['subType']==_0x70d3b6){if(_0xc06196['containsRange'](_0x3d5f0a,!0x0))return null;_0x5c88c2=_0x5c88c2['isBefore'](_0xc06196['start'])?_0x5c88c2:_0xc06196['start'],_0x41f9ac=_0x41f9ac['isAfter'](_0xc06196['end'])?_0x41f9ac:_0xc06196['end'],_0x507b40?_0xc06196['start']['isBefore'](_0x507b40['getFirstRange']()['start'])?(_0x507b40['removeMarkers'](),_0x507b40=_0x8187fa):_0x8187fa['removeMarkers']():_0x507b40=_0x8187fa;}else{const _0x376955=_0x3d5f0a['getIntersection'](_0xc06196);this['_cutOutSuggestionMarker'](_0x8187fa,_0x376955);}}const _0x302cdb=this['editor']['plugins']['get']('Users')['me'],_0x571bf8=_0x22ea39(),_0x5e89c4=_0x302cdb['id'];if(_0x507b40)return this['_setSuggestionRange'](_0x507b40,this['_model']['createRange'](_0x5c88c2,_0x41f9ac)),_0x507b40;{const _0x51b97e=this['_setSuggestionData']({'id':_0x571bf8,'type':'formatBlock:'+_0x70d3b6,'data':_0x5d319b,'createdAt':new Date(),'authorId':_0x5e89c4,'attributes':_0x4cd076});return this['_addSuggestionMarker']('formatBlock:'+_0x70d3b6,_0x571bf8,_0x5e89c4,this['_model']['createRange'](_0x5c88c2,_0x41f9ac)),_0x51b97e;}}['markMultiRangeBlockFormat'](_0x4357d7,_0xf481ff,_0x15c3d1=[],_0xa9ed3c=null,_0x186d01={}){_0xf481ff['formatGroupId']||(_0xf481ff['formatGroupId']=_0xf481ff['commandName']);const _0x1abcc3=_0x4357d7[0x0];_0xf481ff['multipleBlocks']=_0x1abcc3['is']('range'),_0xa9ed3c=_0xa9ed3c||Kt(_0xf481ff);const _0x4af8c3=_0x15c3d1['map'](_0x4bb7cf=>zt(_0x4bb7cf,this['_model'])),_0x58bb3c=_0x1abcc3['is']('range')?_0x4357d7:_0x4357d7['map'](_0x33f264=>zt(_0x33f264,this['_model']));if('never'===this['_trackFormatChanges']){const _0x520c21=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xa9ed3c,'accept');return this['forceDefaultExecution'](()=>_0x520c21(_0x58bb3c,_0xf481ff,_0x186d01)),null;}_0x4af8c3['push'](..._0x58bb3c);let _0x11ff87=!0x0;for(const _0x5c69f5 of _0x4af8c3)if(!this['_rangeIsInLocalUserInsertion'](_0x5c69f5)){_0x11ff87=!0x1;break;}if(_0x11ff87&&'always'!==this['_trackFormatChanges']){const _0x1b27fb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xa9ed3c,'accept');return this['forceDefaultExecution'](()=>_0x1b27fb(_0x58bb3c,_0xf481ff,_0x186d01)),null;}const _0x2b565a=this['editor']['plugins']['get']('Users')['me'];for(const _0x159f5a of this['getSuggestions']()){if(_0x159f5a['author']['id']!=_0x2b565a['id'])continue;if('formatBlock'!=_0x159f5a['type']||_0x159f5a['data']['formatGroupId']!=_0xf481ff['formatGroupId'])continue;if(!Xt(_0x159f5a,_0x186d01))continue;const _0x40d5b3=_0x159f5a['subType']==_0xa9ed3c;for(let _0x374f7c=0x0;_0x374f7c<_0x58bb3c['length'];_0x374f7c++){const _0x4ae9d5=_0x58bb3c[_0x374f7c];for(const _0x229cd0 of _0x159f5a['getMarkers']()){const _0x13fcd1=_0x229cd0['getRange']();if(_0x4ae9d5['isEqual'](_0x13fcd1)){_0x40d5b3?(_0x58bb3c['splice'](_0x374f7c,0x1),_0x374f7c--):_0x159f5a['removeMarker'](_0x229cd0['name']);break;}}}}if(0x0==_0x58bb3c['length'])return null;const _0x3bcdde=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xa9ed3c,'join');for(const _0x127253 of this['getSuggestions']())if(_0x127253['author']['id']==_0x2b565a['id']&&'formatBlock'==_0x127253['type']&&_0x127253['data']['formatGroupId']==_0xf481ff['formatGroupId']&&_0x127253['subType']==_0xa9ed3c&&Xt(_0x127253,_0x186d01)&&(_0x3bcdde(_0x127253['getRanges'](),_0x58bb3c)||_0x3bcdde(_0x58bb3c,_0x127253['getRanges']()))){for(const _0x47d95f of _0x58bb3c)_0x127253['addRange'](_0x47d95f);return _0x127253;}const _0x272d08=_0x22ea39(),_0x4ab46d=_0x2b565a['id'],_0x4e77d9='formatBlock:'+_0xa9ed3c,_0x4ac01e=this['_setSuggestionData']({'id':_0x272d08,'type':_0x4e77d9,'data':_0xf481ff,'createdAt':new Date(),'authorId':_0x4ab46d,'attributes':_0x186d01});for(const _0x2bc1a3 of _0x58bb3c)this['_addSuggestionMarker'](_0x4e77d9,_0x272d08,_0x4ab46d,_0x2bc1a3,o['getMultiRangeId']());return _0x4ac01e;}['markDeletion'](_0x1823d7,_0x12e61d=null,_0x49bb0d={}){if(_0x1823d7['isCollapsed'])return null;const _0x323c01=this['editor']['plugins']['get']('Users')['me'],_0x499aa5=new _0x272be6(_0x1823d7['start'],_0x1823d7['end']);for(const {suggestion:_0x137262,meta:_0x6cb989}of this['_findSuggestions'](_0x499aa5,'insertion'))if(_0x6cb989['isOwn']&&!_0x6cb989['isNextTo']){if(_0x137262['isMultiRange']){const _0xf0cecd=_0x137262['getRanges']()['filter'](_0x2f69e1=>'$graveyard'!=_0x2f69e1['root']['rootName']);_0xf0cecd['every'](_0x55bb66=>_0x499aa5['containsRange'](_0x55bb66,!0x0))&&_0x137262['discard']();if(_0xf0cecd['some'](_0x1aa9bd=>_0x1aa9bd['containsRange'](_0x499aa5,!0x0))){const _0x2676b1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x12e61d,'accept');return this['forceDefaultExecution'](()=>_0x2676b1([_0x499aa5],null,_0x49bb0d)),null;}}else{const _0x17928a=_0x499aa5['getIntersection'](_0x137262['getFirstRange']());null!==_0x17928a&&_0x137262['_onDiscard']([_0x17928a],null,_0x49bb0d);}}if(_0x499aa5['detach'](),_0x499aa5['isCollapsed']||'$graveyard'==_0x499aa5['root']['rootName'])return null;let _0x782f85=null,_0x4ddbe1=_0x499aa5['start'],_0x19ee47=_0x499aa5['end'];const _0x1bd802=this['_findSuggestions'](_0x499aa5,'deletion');for(const {suggestion:_0x4ef73a,meta:_0x3dc020}of _0x1bd802){const _0x42e997=this['_model']['createRange'](_0x4ddbe1,_0x19ee47);if(_0x3dc020['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3dc020['containsRangeInObject']&&!_0x3dc020['isInsideObject'])){if(_0x4ef73a['isMultiRange']){if(!Xt(_0x4ef73a,_0x49bb0d))continue;let _0x5a6214=!0x0;for(const _0x111c3c of _0x4ef73a['getRanges']()){if(_0x111c3c['containsRange'](_0x42e997,!0x0))return _0x4ef73a;_0x42e997['containsRange'](_0x111c3c)||(_0x5a6214=!0x1);}_0x5a6214&&_0x4ef73a['discard']();}else{const _0x1addec=_0x4ef73a['getFirstRange']();if(_0x1addec['containsRange'](_0x42e997,!0x0))return _0x4ef73a;if(!Xt(_0x4ef73a,_0x49bb0d)){_0x42e997['containsRange'](_0x1addec)?_0x4ef73a['removeMarkers']():_0x1addec['containsPosition'](_0x4ddbe1)?_0x4ddbe1=_0x1addec['end']:_0x1addec['containsPosition'](_0x19ee47)&&(_0x19ee47=_0x1addec['start']);continue;}_0x4ddbe1=_0x4ddbe1['isBefore'](_0x1addec['start'])?_0x4ddbe1:_0x1addec['start'],_0x19ee47=_0x19ee47['isAfter'](_0x1addec['end'])?_0x19ee47:_0x1addec['end'],_0x49bb0d=Object['assign']({},_0x4ef73a['attributes']),_0x782f85?_0x1addec['start']['isBefore'](_0x782f85['getFirstRange']()['start'])?(_0x782f85['removeMarkers'](),_0x782f85=_0x4ef73a):_0x4ef73a['removeMarkers']():_0x782f85=_0x4ef73a;}}}if(_0x782f85)return this['_setSuggestionRange'](_0x782f85,this['_model']['createRange'](_0x4ddbe1,_0x19ee47)),_0x782f85;{const _0x1aaf2a=_0x22ea39(),_0x1bddb9=this['_model']['createRange'](_0x4ddbe1,_0x19ee47),_0x5ddbf2=_0x323c01['id'],_0x5f39ad=_0x12e61d?'deletion:'+_0x12e61d:'deletion',_0x294e2f=this['_setSuggestionData']({'id':_0x1aaf2a,'type':_0x5f39ad,'createdAt':new Date(),'authorId':_0x5ddbf2,'attributes':_0x49bb0d});return this['_addSuggestionMarker'](_0x5f39ad,_0x1aaf2a,_0x5ddbf2,_0x1bddb9),_0x294e2f;}}['markMultiRangeDeletion'](_0x9f47d8,_0x572634='multi',_0x3d4680={}){const _0x2d1a67=this['editor']['plugins']['get']('Users')['me'],_0x31ee99=_0x9f47d8['map'](_0xbc733c=>new _0x272be6(_0xbc733c['start'],_0xbc733c['end'])),_0x5c9b93=new Set();for(const {suggestion:_0x211757,meta:_0x106997}of this['_findSuggestions'](_0x31ee99,'insertion'))_0x106997['isOwn']&&!_0x106997['isNextTo']&&_0x5c9b93['add'](_0x211757);for(const _0x22ea6e of _0x5c9b93)if(_0x22ea6e['isMultiRange']){const _0x4b76d0=_0x22ea6e['getRanges']();(!_0x22ea6e['attributes']||!_0x22ea6e['attributes']['skipNestingCheck'])&&(_0x4b76d0['every'](_0xfc82cd=>_0x31ee99['some'](_0x4c09b1=>_0x4c09b1['containsRange'](_0xfc82cd,!0x0)))&&_0x22ea6e['discard']());if(_0x31ee99['every'](_0x5dbba4=>_0x4b76d0['some'](_0x3d2213=>_0x3d2213['containsRange'](_0x5dbba4,!0x0)))){const _0x1ec80f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x572634,'accept');return this['forceDefaultExecution'](()=>_0x1ec80f(_0x9f47d8,null,_0x3d4680)),null;}}else{const _0x29fd70=_0x22ea6e['getFirstRange']();_0x31ee99['some'](_0x5bbda4=>_0x5bbda4['containsRange'](_0x29fd70,!0x0))&&_0x22ea6e['discard']();if(_0x31ee99['every'](_0x5e9f6f=>_0x29fd70['containsRange'](_0x5e9f6f,!0x0))){const _0x8f75b4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x572634,'accept');return this['forceDefaultExecution'](()=>_0x8f75b4(_0x31ee99,null,_0x3d4680)),null;}}const _0x125884=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x572634,'join');let _0x52674f=null;for(const _0x4e963c of this['getSuggestions']())if(_0x4e963c['author']['id']==_0x2d1a67['id']&&_0x4e963c['isInContent']&&'deletion'==_0x4e963c['type']&&_0x4e963c['subType']==_0x572634&&Xt(_0x4e963c,_0x3d4680)&&(_0x125884(_0x4e963c['getRanges'](),_0x31ee99)||_0x125884(_0x31ee99,_0x4e963c['getRanges']()))){if(_0x52674f){if(_0x4e963c['commentThread']&&_0x4e963c['commentThread']['length'])continue;for(const _0x2892fa of _0x4e963c['getRanges']())_0x52674f['isIntersectingWithRange'](_0x2892fa)||_0x52674f['addRange'](_0x2892fa);_0x4e963c['removeMarkers']();}else{_0x52674f=_0x4e963c;for(const _0x1a98e7 of _0x31ee99)_0x4e963c['isIntersectingWithRange'](_0x1a98e7)||_0x4e963c['addRange'](_0x1a98e7);}}if(_0x52674f)return _0x52674f;_0x5c9b93['clear']();for(const {suggestion:_0x4bbb30,meta:_0x303419}of this['_findSuggestions'](_0x31ee99,'deletion'))_0x303419['isOwn']&&(this['_mergeNestedSuggestions']||!_0x303419['containsRangeInObject']&&!_0x303419['isInsideObject'])&&Xt(_0x4bbb30,_0x3d4680)&&_0x5c9b93['add'](_0x4bbb30);for(const _0x227b7c of _0x5c9b93){const _0x2e088a=_0x227b7c['getRanges']();if(!_0x3d4680||!_0x3d4680['skipNestingCheck']){if(_0x31ee99['every'](_0x495461=>_0x2e088a['some'](_0x5eea46=>_0x5eea46['containsRange'](_0x495461,!0x0))))return _0x227b7c;}(!_0x227b7c['attributes']||!_0x227b7c['attributes']['skipNestingCheck'])&&(_0x2e088a['every'](_0x2796fd=>_0x31ee99['some'](_0x28f22a=>_0x28f22a['containsRange'](_0x2796fd,!0x0)))&&_0x227b7c['discard']());}const _0x5d1134=_0x22ea39(),_0x29d3d6=_0x2d1a67['id'],_0x36d98b='deletion:'+_0x572634,_0x24b28c=this['_setSuggestionData']({'id':_0x5d1134,'type':_0x36d98b,'createdAt':new Date(),'authorId':_0x29d3d6,'attributes':_0x3d4680});for(const _0x148aa9 of _0x31ee99)_0x148aa9['detach'](),_0x148aa9['isCollapsed']||'$graveyard'==_0x148aa9['root']['rootName']||this['_addSuggestionMarker'](_0x36d98b,_0x5d1134,_0x29d3d6,_0x148aa9,o['getMultiRangeId']());return _0x24b28c;}['markAttributeChange'](_0x18d8da,_0x40bf9c,_0x2d70e1,_0x560e80,_0x28b9a7){if(_0x18d8da['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2edd00=this['editor']['plugins']['get']('Users')['me']['id'],_0x34dac6=Array['from'](this['_suggestions']['values']())['filter'](_0xaf65b5=>'attribute'==_0xaf65b5['type']&&_0xaf65b5['data']['key']==_0x40bf9c&&_0xaf65b5['isIntersectingWithRange'](_0x18d8da));if('default'===this['_trackFormatChanges']){const _0x454699=this['_findSuggestions'](_0x18d8da,'insertion')['filter'](({meta:_0x567a1f})=>_0x567a1f['isOwn']&&!_0x567a1f['isInsideObject']&&!_0x567a1f['isNextTo'])['map'](({suggestion:_0x160c9e})=>_0x160c9e);_0x34dac6['unshift'](..._0x454699);}const _0x543533=new Map([[_0x18d8da,_0x2d70e1]]);for(const _0x3d7756 of _0x34dac6){const _0x3b65d9='attribute'==_0x3d7756['type']?_0x3d7756['data']['oldValue']:void 0x0,_0x150bdc=_0x3d7756['getFirstRange'](),_0x3ed609=Array['from'](_0x543533['keys']())['find'](_0x3abe23=>_0x3abe23['isIntersecting'](_0x150bdc));if(!_0x3ed609)continue;const _0x4bc072=_0x3ed609['getDifference'](_0x150bdc);this['_isBlockAttribute'](_0x40bf9c)&&'insertion'==_0x3d7756['type']&&0x0!=_0x4bc072['length']||(_0x543533['delete'](_0x3ed609),_0x4bc072['forEach'](_0x284721=>{_0x543533['set'](_0x284721,_0x2d70e1);}),'insertion'!=_0x3d7756['type']&&_0x3b65d9!=_0x560e80&&_0x543533['set'](_0x3ed609['getIntersection'](_0x150bdc),_0x3b65d9));}const _0x2f79ee=[];for(const [_0x2044d6,_0x2310f1]of _0x543533){const _0x4b54d9=_0x22ea39(),_0x5a4c1c={'key':_0x40bf9c,'oldValue':_0x2310f1,'newValue':_0x560e80};_0x40bf9c['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':_0x40bf9c});const _0x67668=('attribute:'+(_0x40bf9c+'|'+Kt({'newValue':_0x560e80})))['substring'](0x0,0x3c),_0x2b9b3c=this['_setSuggestionData']({'id':_0x4b54d9,'type':_0x67668,'data':_0x5a4c1c,'createdAt':new Date(),'authorId':_0x2edd00,'attributes':_0x28b9a7});_0x2f79ee['push'](_0x2b9b3c),this['_addSuggestionMarker'](_0x67668,_0x4b54d9,_0x2edd00,_0x2044d6);}return _0x2f79ee;}['enableDefaultAttributesIntegration'](_0x41fc10){this['enableCommand'](_0x41fc10,(_0x53e7c1,..._0x41d236)=>{this['_recordAttributeChanges'](()=>{_0x53e7c1(..._0x41d236);});});}['registerBlockAttribute'](_0x19e329){this['_blockAttributeKeys']['add'](_0x19e329);}['registerInlineAttribute'](_0x4d4cbb){this['_inlineAttributeKeys']['add'](_0x4d4cbb);}['_getAttributeKey'](_0x27401b){return'attribute'==_0x27401b['type']?_0x27401b['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x46d480,_0x5ad58b){const _0x1cbcd0=_0x46d480['getFirstMarker']();this['_model']['change'](_0x1680b2=>{_0x1680b2['updateMarker'](_0x1cbcd0,{'range':_0x5ad58b});});}['_addThreadToSuggestion'](_0x44560e){const _0x408f11=_0x44560e['id'],_0x5cf981=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x408f11)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5cf981,'threadId':_0x408f11,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x51b9f1=this['_commentsRepository']['getCommentThread'](_0x408f11);_0x51b9f1['unbind']('isRemovable'),_0x51b9f1['isRemovable']=!0x1,_0x44560e['commentThread']=_0x51b9f1;}['_checkSuggestionCorrectness'](_0xb22a8,_0x2ebf7c,_0x55b948,_0x27163d){if(_0xb22a8['type']!=_0x2ebf7c||_0xb22a8['subType']!=_0x55b948||_0xb22a8['creator']['id']!=_0x27163d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x56438b('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x20a3c6,_0xd17e0b){const _0x2cbd73=_0x20a3c6['getFirstRange']();if(_0xd17e0b['isEqual'](_0x2cbd73))_0x20a3c6['removeMarkers']();else{if(_0x2cbd73['containsRange'](_0xd17e0b)){const _0x7d4d00=this['_model']['createPositionAt'](_0xd17e0b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x20a3c6,this['_model']['createRange'](_0x2cbd73['start'],_0x7d4d00));const _0x511231=_0x22ea39(),_0x4391f5=_0x20a3c6['creator']['id'],_0x252138=_0x20a3c6['type']+':'+_0x20a3c6['subType'];this['_setSuggestionData']({'id':_0x511231,'type':_0x252138,'createdAt':new Date(),'authorId':_0x4391f5,'data':_0x20a3c6['data'],'attributes':_0x20a3c6['attributes']});const _0x4da55a=this['_model']['createPositionAt'](_0xd17e0b['end']['parent'],'after'),_0x55704e=this['_model']['createRange'](_0x4da55a,_0x2cbd73['end']);this['_addSuggestionMarker'](_0x252138,_0x511231,_0x4391f5,_0x55704e);}else{if(_0x2cbd73['containsPosition'](_0xd17e0b['start'])){const _0x1808a7=this['_model']['createPositionAt'](_0xd17e0b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x20a3c6,this['_model']['createRange'](_0x2cbd73['start'],_0x1808a7));}else{const _0x1e28ab=this['_model']['createPositionAt'](_0xd17e0b['end']['parent'],'after');this['_setSuggestionRange'](_0x20a3c6,this['_model']['createRange'](_0x1e28ab,_0x2cbd73['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x597fc9){for(const {suggestion:_0x2c9554,meta:_0x345220}of this['_findSuggestions'](_0x597fc9,'insertion')){if(!_0x345220['isOwn'])continue;const _0x4e61df=_0x2c9554['getRanges']();for(const _0x4b2141 of _0x4e61df)if(!_0x597fc9['getDifference'](_0x4b2141)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x59a8c8){const _0x31bb4c=this['editor']['plugins']['get']('Users')['getUser'](_0x59a8c8);if(!_0x31bb4c)throw new _0x56438b('track-changes-user-not-found',this);return _0x31bb4c;}['_getExternalAuthor'](_0x173fc0){const _0x4b8641=this['editor']['plugins']['get']('Users'),_0xfd21e0=_0xac2877('external:'+_0x173fc0),_0x32b4ef=_0x4b8641['getUser'](_0xfd21e0);return _0x32b4ef||_0x4b8641['addUser']({'id':_0xfd21e0,'name':_0x173fc0});}['_createSuggestion'](_0x39c477,_0x76e1eb,_0x34931f,_0x5d6247,_0xbd623b){const _0x57163c=this['_getAuthorFromId'](_0x5d6247),_0x2965ac=this['_suggestionFactory']['buildSuggestion'](_0x39c477,_0x76e1eb,_0x34931f,_0x57163c,_0xbd623b,_0x51341e=>{this['_updateSuggestionData'](_0x34931f,{'attributes':_0x51341e});const _0x42a369=this['getSuggestion'](_0x34931f);this['_joinWithAdjacentSuggestions'](new Set([_0x42a369])),this['_refreshSuggestionsChain'](new Set([_0x42a369]));});return this['listenTo'](_0x2965ac,'accept',()=>{this['_updateSuggestionData'](_0x34931f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2965ac,'discard',()=>{this['_updateSuggestionData'](_0x34931f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x34931f,_0x2965ac),this['_suggestionState']['set'](_0x2965ac,'notReady'),_0x2965ac;}['_splitMarkerName'](_0x2d32d4){const _0x11c2e3=_0x2d32d4['split'](':');return{'group':_0x11c2e3[0x0],'type':_0x11c2e3[0x1],'subType':_0x11c2e3['length']>=0x5?_0x11c2e3[0x2]:null,'id':_0x11c2e3['length']<0x5?_0x11c2e3[0x2]:_0x11c2e3[0x3],'authorId':_0x11c2e3['length']<0x5?_0x11c2e3[0x3]:_0x11c2e3[0x4],'markerCount':0x6==_0x11c2e3['length']?_0x11c2e3[0x5]:null};}['_breakSuggestionMarker'](_0x11bcd8,_0x164df7,_0x1851c6){const _0x56d30d=_0x11bcd8['getFirstRange'](),_0x7d2f87=_0x56d30d['start'],_0x10a5a3=_0x56d30d['end'];this['_setSuggestionRange'](_0x11bcd8,this['_model']['createRange'](_0x7d2f87,_0x164df7));const _0x2ad95a=_0x22ea39(),_0x450cc8=_0x11bcd8['creator']['id'],_0x14e607=_0x11bcd8['type']+(_0x11bcd8['subType']?':'+_0x11bcd8['subType']:'');this['_setSuggestionData']({'id':_0x2ad95a,'type':_0x14e607,'createdAt':new Date(),'authorId':_0x450cc8,'originalSuggestionId':_0x11bcd8['id'],'attributes':_0x11bcd8['attributes'],'data':_0x11bcd8['data']});const _0x125a62=this['_getAttributeKey'](_0x11bcd8);('formatBlock'==_0x11bcd8['type']||_0x125a62&&this['_isBlockAttribute'](_0x125a62))&&(_0x1851c6=this['_model']['createPositionBefore'](_0x1851c6['parent'])),this['_addSuggestionMarker'](_0x14e607,_0x2ad95a,_0x450cc8,this['_model']['createRange'](_0x1851c6,_0x10a5a3));}['_findSuggestions'](_0x49df71,_0x4d7438=null){const _0x44e41a=[],_0x10691a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x49df71)||(_0x49df71=[_0x49df71]);for(const _0x552ffd of this['getSuggestions']()){if(!_0x552ffd['isInContent'])continue;if(_0x4d7438&&_0x552ffd['type']!=_0x4d7438)continue;let _0x122f08=!0x1;for(const _0x1a952e of _0x552ffd['getRanges']()){for(const _0x5940ee of _0x49df71){const _0x3c4c92=_0x5940ee['start']['isEqual'](_0x1a952e['end'])||_0x5940ee['end']['isEqual'](_0x1a952e['start']);if(_0x3c4c92||_0x5940ee['getIntersection'](_0x1a952e)){const _0x5afd14=_0x5940ee['containsRange'](_0x1a952e)&&Gt(this['_model']['schema'],_0x1a952e['start'],_0x5940ee),_0x1c3b5a=_0x1a952e['containsRange'](_0x5940ee)&&Gt(this['_model']['schema'],_0x5940ee['start'],_0x1a952e);_0x44e41a['push']({'suggestion':_0x552ffd,'meta':{'isOwn':_0x10691a==_0x552ffd['author'],'isNextTo':_0x3c4c92,'isInsideObject':_0x5afd14,'containsRangeInObject':_0x1c3b5a}}),_0x122f08=!0x0;break;}}if(_0x122f08)break;}}return _0x44e41a;}['_addSuggestionMarker'](_0x40312f,_0x2a55cb,_0x2d1387,_0x38c7ad,_0x3cc9bd){this['_model']['change'](_0x5a5a45=>{let _0x579010='suggestion:'+_0x40312f+':'+_0x2a55cb+':'+_0x2d1387;_0x3cc9bd&&(_0x579010=_0x579010+':'+_0x3cc9bd),_0x5a5a45['addMarker'](_0x579010,{'range':_0x38c7ad,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x95482c){const _0x3c5ca4=_0x95482c['previous'],_0x418059=_0x95482c['next'];_0x95482c['previous']=null,_0x95482c['next']=null,null!=_0x3c5ca4&&_0x3c5ca4['next']==_0x95482c&&(_0x3c5ca4['next']=_0x418059),null!=_0x418059&&_0x418059['previous']==_0x95482c&&(_0x418059['previous']=_0x3c5ca4),'ready'==this['_suggestionState']['get'](_0x95482c)&&(this['_suggestionState']['set'](_0x95482c,'removed'),this['fire']('suggestionUnloaded',_0x95482c,_0x3c5ca4,_0x418059));}['_setSuggestionData'](_0x213414){const _0xaa72fa=_0x213414['id'],_0x3672b0=this['addSuggestionData'](_0x213414);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x31aeae=this['editor']['plugins']['get']('PendingActions'),_0x38a9af=_0x3672b0['hasComments'],_0x5307b4=_0x3672b0['subType']?_0x3672b0['type']+':'+_0x3672b0['subType']:_0x3672b0['type'],_0x144d76=this['editor']['locale'],_0x45ae3f=_0x31aeae['add'](c(_0x144d76,'PENDING_ACTION_SUGGESTION')),_0xe3e907={'id':_0xaa72fa,'type':_0x5307b4,'hasComments':_0x38a9af,'data':_0x213414['data']||null,'originalSuggestionId':_0x213414['originalSuggestionId']||null,'attributes':_0x3672b0['attributes']};this['_adapter']['addSuggestion'](_0xe3e907)['then'](_0x38940f=>{_0x3672b0['_saved']=!0x0,_0x31aeae['remove'](_0x45ae3f),_0x38940f&&_0x38940f['createdAt']&&(this['_suggestions']['get'](_0xaa72fa)['createdAt']=_0x38940f['createdAt']);})['catch'](_0x56958f=>{throw _0x193419('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3672b0['discard']();}),_0x3672b0['stopListening'](),this['_suggestions']['delete'](_0x3672b0['id']),this['_suggestionState']['delete'](_0x3672b0),_0x56958f;});}return _0x3672b0;}['_isBlockAttribute'](_0xaa46c1){return this['_blockAttributeKeys']['has'](_0xaa46c1);}['_updateSuggestionData'](_0x3b0540,_0x538061){const _0x2eb185=this['editor']['plugins']['get']('PendingActions'),_0x504163=this['getSuggestion'](_0x3b0540);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x504163['_saved']){const _0x4b837e=_0x2eb185['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3b0540,_0x538061)['then'](()=>{_0x2eb185['remove'](_0x4b837e);});}else _0x504163['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3b0540,_0x538061);});}}['_getSuggestionData'](_0xb30f7d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x56438b('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xb30f7d);}['_handleNewSuggestionMarker'](_0x668551){const {id:_0x2b5d02,type:_0x2de49f,subType:_0x24815b,authorId:_0x346f25}=this['_splitMarkerName'](_0x668551),_0x4e10d1=this['_suggestions']['get'](_0x2b5d02)||this['_createSuggestion'](_0x2de49f,_0x24815b,_0x2b5d02,_0x346f25,{});switch(this['_checkSuggestionCorrectness'](_0x4e10d1,_0x2de49f,_0x24815b,_0x346f25),this['_suggestionState']['get'](_0x4e10d1)){case'notReady':this['_getSuggestionData'](_0x2b5d02)['then'](_0x1a62d5=>{let _0x442201=Promise['resolve']();_0x1a62d5['hasComments']&&(_0x442201=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2b5d02})),_0x442201['then'](()=>{this['addSuggestionData'](_0x1a62d5)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4e10d1,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2b5d02,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4e10d1,'ready'),this['fire']('suggestionLoaded',_0x4e10d1);break;case'ready':this['fire']('suggestionChanged',_0x4e10d1);}return _0x4e10d1['addMarkerName'](_0x668551),_0x4e10d1;}['_refreshSuggestionsChain'](_0x171275){const _0x49ab18=Array['from'](_0x171275),_0x58d33a=_0x49ab18['filter'](_0x22fa38=>'attribute'==_0x22fa38['type']);this['_refreshAttributeSuggestionsChain'](_0x58d33a);const _0x2378b0=_0x49ab18['filter'](_0x422662=>!_0x422662['isMultiRange']&&'attribute'!=_0x422662['type']),_0x192d76=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x203169=>!_0x203169['isMultiRange']&&'attribute'!=_0x203169['type']),_0x23aeed=_0x192d76['filter'](_0x50b5e2=>!_0x171275['has'](_0x50b5e2)),_0x460a76=new Map(_0x192d76['map'](_0x1c9be2=>[_0x1c9be2,this['_suggestionFactory']['getSuggestionCallback'](_0x1c9be2['type'],_0x1c9be2['subType'],'chain')])),_0xcb810c=new Map(_0x192d76['map'](_0xb5632e=>[_0xb5632e,_0xb5632e['getFirstRange']()])),_0xc84647=new Set(),_0x34a47a=new Set();for(let _0x1ae043=0x0;_0x1ae043<_0x2378b0['length'];_0x1ae043++)_0x4aa854(_0x2378b0[_0x1ae043],_0x2378b0,_0x1ae043+0x1);for(let _0x79c911=0x0;_0x79c911<_0x2378b0['length'];_0x79c911++)_0x4aa854(_0x2378b0[_0x79c911],_0x23aeed,0x0);const _0x18223c=new Set();for(let _0x1e0cbe=0x0;_0x1e0cbe<_0x2378b0['length'];_0x1e0cbe++){const _0x5d90f2=_0x2378b0[_0x1e0cbe];!_0x34a47a['has'](_0x5d90f2)&&_0x5d90f2['previous']&&(_0x18223c['add'](_0x5d90f2['previous']),_0x5d90f2['previous']['next']===_0x5d90f2&&(_0x5d90f2['previous']['next']=null),_0x5d90f2['previous']=null),!_0xc84647['has'](_0x5d90f2)&&_0x5d90f2['next']&&(_0x18223c['add'](_0x5d90f2['next']),_0x5d90f2['next']['previous']===_0x5d90f2&&(_0x5d90f2['next']['previous']=null),_0x5d90f2['next']=null);}function _0x4aa854(_0x5c5133,_0x3a1d1e,_0xb87cb6){for(let _0x2c2ce9=_0xb87cb6;_0x2c2ce9<_0x3a1d1e['length'];_0x2c2ce9++){const _0x32be03=_0x289129(_0x5c5133,_0x3a1d1e[_0x2c2ce9]);_0x32be03&&(_0x32be03[0x0]['next']=_0x32be03[0x1],_0x32be03[0x1]['previous']=_0x32be03[0x0],_0xc84647['add'](_0x32be03[0x0]),_0x34a47a['add'](_0x32be03[0x1]));}}function _0x289129(_0x4dcd93,_0x47dba9){if(_0x4dcd93['author']['id']!==_0x47dba9['author']['id'])return null;const _0x2095d5=_0x460a76['get'](_0x4dcd93)(_0x4dcd93,_0x47dba9,_0xcb810c['get'](_0x4dcd93),_0xcb810c['get'](_0x47dba9));if(!_0x2095d5)return null;return _0x460a76['get'](_0x47dba9)(_0x4dcd93,_0x47dba9,_0xcb810c['get'](_0x4dcd93),_0xcb810c['get'](_0x47dba9))?_0x2095d5[0x1]['commentThread']&&_0x2095d5[0x1]['commentThread']['length']?null:_0x2095d5:null;}_0x18223c['size']&&this['_refreshSuggestionsChain'](_0x18223c);}['_refreshAttributeSuggestionsChain'](_0x176b4e){if(0x0==_0x176b4e['length'])return;const _0x52496d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1695a2=>'attribute'==_0x1695a2['type']&&_0x1695a2['_isDataLoaded']),_0xdcc52c=[],_0x3e5215=new Map();for(const _0x5b3441 of _0x52496d){const _0x491648=_0xac2877(_0x5b3441['attributes']);_0x3e5215['has'](_0x491648)||(_0x3e5215['set'](_0x491648,_0xdcc52c['length']),_0xdcc52c['push']([]));const _0x10b583=_0x3e5215['get'](_0x491648);_0xdcc52c[_0x10b583]['push'](_0x5b3441);}!(function(){_0xdcc52c['sort']((_0x5f5815,_0x45d255)=>{const _0x346880=_0x5f5815[0x0]['createdAt'],_0x212d44=_0x45d255[0x0]['createdAt'];return _0x346880==_0x212d44?_0x5f5815[0x0]['attributes']['groupId']<_0x45d255[0x0]['attributes']['groupId']?-0x1:0x1:_0x346880<_0x212d44?-0x1:0x1;});for(const _0x2024a7 of _0xdcc52c)_0x2024a7['sort']((_0x1f2a4e,_0x22f95b)=>_0x1f2a4e['id']<_0x22f95b['id']?-0x1:0x1);}());for(let _0x542e3b=0x0;_0x542e3b<_0xdcc52c['length'];_0x542e3b++){if(0x0==_0xdcc52c[_0x542e3b]['length'])continue;const _0xad2afb=[];for(let _0x519114=_0x542e3b+0x1;_0x519114<_0xdcc52c['length'];_0x519114++)0x0!=_0xdcc52c[_0x519114]['length']&&_0x21b0e4(_0xdcc52c[_0x542e3b],_0xdcc52c[_0x519114])&&_0xad2afb['push'](_0x519114);for(const _0x27ae8f of _0xad2afb)_0xdcc52c[_0x542e3b]=_0xdcc52c[_0x542e3b]['concat'](_0xdcc52c[_0x27ae8f]),_0xdcc52c[_0x27ae8f]=[];}for(const _0x3d1865 of _0xdcc52c)for(let _0xce2640=0x0;_0xce2640<_0x3d1865['length'];_0xce2640++){const _0x4ebd07=_0x3d1865[_0xce2640+0x1]||null;_0x3d1865[_0xce2640]['next']!==_0x4ebd07&&(_0x3d1865[_0xce2640]['next']=_0x4ebd07);}for(const _0x5a276b of _0xdcc52c)for(let _0x106ea8=0x0;_0x106ea8<_0x5a276b['length'];_0x106ea8++){const _0x53dc49=_0x5a276b[_0x106ea8-0x1]||null;_0x5a276b[_0x106ea8]['previous']!==_0x53dc49&&(_0x5a276b[_0x106ea8]['previous']=_0x53dc49);}function _0x21b0e4(_0x46b919,_0x4142f3){if(_0x46b919[0x0]['attributes']['groupId']!==_0x4142f3[0x0]['attributes']['groupId']&&_0x46b919[0x0]['author']!==_0x4142f3[0x0]['author'])return!0x1;if(!function(_0x427b79,_0x2da680){if(!_0x427b79['hasComments']&&!_0x2da680['hasComments'])return!0x0;if(_0x427b79['hasComments']&&_0x2da680['hasComments'])return!0x1;if(_0x427b79['hasComments']&&_0x2da680['createdAt']<_0x427b79['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2da680['hasComments']&&_0x427b79['createdAt']<_0x2da680['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x46b919[0x0],_0x4142f3[0x0]))return!0x1;const _0x5f1657=Ft(_0x46b919[0x0]['attributes'],'groupId'),_0x38679b=Ft(_0x4142f3[0x0]['attributes'],'groupId');if(!_0x4e5b3f(_0x5f1657,_0x38679b))return!0x1;return!!_0x46b919['every'](_0xfc0387=>_0x4142f3['some'](_0x12c875=>_0xfc0387['getFirstRange']()['isEqual'](_0x12c875['getFirstRange']())))&&_0x4142f3['every'](_0x27a917=>_0x46b919['some'](_0x341c7e=>_0x27a917['getFirstRange']()['isEqual'](_0x341c7e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3130be){const _0x2de15f=Array['from'](_0x3130be),_0x4452d8=this['getSuggestions']({'skipNotAttached':!0x0}),_0x645f59=_0x4452d8['filter'](_0x245e45=>!_0x3130be['has'](_0x245e45)),_0x7e8018=new Map(_0x2de15f['map'](_0x5019da=>[_0x5019da,this['_suggestionFactory']['getSuggestionCallback'](_0x5019da['type'],_0x5019da['subType'],'join')])),_0x128d41=new Map(_0x4452d8['map'](_0x41dd7f=>[_0x41dd7f,_0x41dd7f['getRanges']()]));for(let _0x43e3bc=0x0;_0x43e3bc<_0x2de15f['length'];_0x43e3bc++){if(_0x1f3480(this,_0x2de15f[_0x43e3bc],_0x2de15f,_0x43e3bc+0x1))return!0x0;}for(let _0x4ba756=0x0;_0x4ba756<_0x2de15f['length'];_0x4ba756++){if(_0x1f3480(this,_0x2de15f[_0x4ba756],_0x645f59,0x0))return!0x0;}return!0x1;function _0x1f3480(_0x3f2705,_0x2f4a8c,_0x46a9d8,_0x1f76c6){for(let _0x15a3fd=_0x1f76c6;_0x15a3fd<_0x46a9d8['length'];_0x15a3fd++){const _0x1c4036=_0x46a9d8[_0x15a3fd];if(_0x1c4036['type']!==_0x2f4a8c['type']||_0x1c4036['author']['id']!==_0x2f4a8c['author']['id']||_0x1c4036['subType']!==_0x2f4a8c['subType'])continue;if(!Qt(_0x2f4a8c,_0x1c4036))continue;if('attribute'==_0x2f4a8c['type']&&_0x2f4a8c['data']['oldValue']!=_0x1c4036['data']['oldValue'])continue;if('attribute'==_0x2f4a8c['type']&&_0x3f2705['_isBlockAttribute'](_0x2f4a8c['data']['key']))continue;if('formatBlock'==_0x2f4a8c['type']){const _0x59cdee=_0x3f2705['editor']['model'],_0x3c9791=_0x2f4a8c['getContainedElement']();if(_0x3c9791&&(_0x59cdee['schema']['isObject'](_0x3c9791)||_0x59cdee['schema']['isLimit'](_0x3c9791)))continue;}const _0x1928cd=_0x7e8018['get'](_0x2f4a8c),_0x15621c=_0x128d41['get'](_0x2f4a8c),_0x5ceea0=_0x128d41['get'](_0x1c4036),_0x45c99c=_0x2f4a8c['commentThread']&&_0x2f4a8c['commentThread']['length'],_0x19db95=_0x1c4036['commentThread']&&_0x1c4036['commentThread']['length'];if(!_0x45c99c&&_0x1928cd(_0x5ceea0,_0x15621c))return _0x3f2705['_joinSuggestions'](_0x1c4036,_0x2f4a8c),_0x128d41['delete'](_0x2f4a8c),!0x0;if(!_0x19db95&&_0x1928cd(_0x15621c,_0x5ceea0))return _0x3f2705['_joinSuggestions'](_0x2f4a8c,_0x1c4036),_0x128d41['delete'](_0x1c4036),!0x0;}return!0x1;}}['_joinSuggestions'](_0x32ee62,_0x21f7b4){if(_0x32ee62['isMultiRange']){for(const _0x10af46 of _0x21f7b4['getRanges']())_0x32ee62['addRange'](_0x10af46);}else{const _0x196b10=_0x21f7b4['getFirstRange']()['end'];this['_setSuggestionRange'](_0x32ee62,this['_model']['createRange'](_0x32ee62['getFirstRange']()['start'],_0x196b10));}_0x21f7b4['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4c72a4,_0x3deb58,_0x101045){const _0x6e5bbd=_0x4c72a4['startsWith']('format')||_0x4c72a4['startsWith']('attribute')?'FORMATTING':_0x4c72a4['toUpperCase']();return c(this['editor']['locale'],_0x3deb58+'_'+_0x6e5bbd+'_SUGGESTION_ANNOUNCEMENT',_0x101045);}['_initAriaMarkerChangeAnnouncements'](){const _0x793880=this['editor'];if(!_0x793880['ui'])return;const {ariaLiveAnnouncer:_0x27eafe}=_0x793880['ui'];_0x1a44ef(this['_model'],({left:_0x52006a,entered:_0x3005b2})=>{for(const _0x5a8f8e of _0x52006a){const {group:_0x3687f6,type:_0x3db0d}=this['_splitMarkerName'](_0x5a8f8e['name']);if('suggestion'===_0x3687f6){_0x27eafe['announce'](this['_getMarkerAnnouncementText'](_0x3db0d,'LEAVE'));break;}}for(const _0x1ae819 of _0x3005b2){const {group:_0x6369d2,type:_0x315901}=this['_splitMarkerName'](_0x1ae819['name']);if('suggestion'===_0x6369d2){_0x27eafe['announce'](this['_getMarkerAnnouncementText'](_0x315901,'ENTER',_0x160828(_0x2b34ae)));break;}}});}['_processAttributeChanges'](_0x1a0722){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2a1eae=this['editor'],_0x7b829a=_0x2a1eae['model']['document']['differ']['getChanges']();if(0x0==_0x7b829a['length'])return!0x1;const _0x110bf3=[],_0x35a557=_0x7b829a['filter'](_0x43b1c8=>'attribute'==_0x43b1c8['type']),_0x5253e2=_0x7b829a['filter'](_0x3a1a38=>'insert'==_0x3a1a38['type']&&'$text'!=_0x3a1a38['name']),_0x35efc4=_0x7b829a['filter'](_0x2bbb40=>'remove'==_0x2bbb40['type']&&'$text'!=_0x2bbb40['name']);for(const _0x1abafa of _0x35a557)_0x110bf3['push']({'key':_0x1abafa['attributeKey'],'newValue':_0x1abafa['attributeNewValue'],'oldValue':_0x1abafa['attributeOldValue'],'range':qt(_0x1abafa['range'],_0x2a1eae['model'])});for(const _0x214ae7 of _0x5253e2){const _0x5c652a=_0x35efc4['find'](_0x431489=>_0x431489['position']['isEqual'](_0x214ae7['position']));_0x5c652a&&_0x110bf3['push']({'key':u,'newValue':_0x214ae7['name'],'oldValue':_0x5c652a['name'],'range':_0x2a1eae['model']['createRangeOn'](_0x214ae7['position']['nodeAfter'])});}return 0x0!=_0x110bf3['length']&&this['_reduceExistingSuggestions'](_0x1a0722,_0x110bf3);}['_processAttributeSuggestions'](_0x2abfff){let _0x5504c6=!0x1;const _0x1748b6=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1096cb=>_0x1096cb['data']['newRange']&&_0x1096cb['name']['startsWith']('suggestion:attribute:'));for(const _0x2ae1b9 of _0x1748b6){const {subType:_0x2ca65e,id:_0x525542}=this['_splitMarkerName'](_0x2ae1b9['name']),_0x21ef98=_0x2ca65e['split']('|')[0x0];for(const _0x31ff3e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x31ff3e['id']!=_0x525542&&'attribute'==_0x31ff3e['type']&&_0x31ff3e['data']&&_0x31ff3e['data']['key']==_0x21ef98&&_0x31ff3e['getFirstRange']()['isIntersecting'](_0x2ae1b9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x31ff3e,_0x2ae1b9['data']['newRange'],_0x2abfff),_0x5504c6=!0x0);}return _0x5504c6;}['_recordAttributeChanges'](_0x1e07d0){this['_recordAttributeSuggestions']=!0x0,_0x1e07d0();}['_isRegisteredAttribute'](_0x210634){const _0x5346b3=this['_isBlockAttribute'](_0x210634),_0x2f0c8b=this['_inlineAttributeKeys']['has'](_0x210634);return _0x5346b3||_0x2f0c8b;}['_reduceExistingSuggestions'](_0x596b60,_0xfa984d){if(0x0==_0xfa984d['length'])return!0x1;let _0x11b503=!0x1;for(const _0x104b96 of _0xfa984d){const _0x11fcd8=this['_findSuggestions'](_0x104b96['range'],'attribute')['filter'](_0x2a24c7=>!_0x2a24c7['meta']['isNextTo'])['map'](_0x190be2=>_0x190be2['suggestion']),_0x31cbdc=_0xac2877({'newValue':_0x104b96['newValue']});_0x11fcd8['filter'](_0x3d4ddd=>{const [_0xc5daf2,_0x30068a]=_0x3d4ddd['subType']['split']('|');return _0xc5daf2==_0x104b96['key']&&_0x30068a!=_0x31cbdc;})['forEach'](_0x350cfb=>{this['_reduceSuggestionAttributeRange'](_0x350cfb,_0x104b96['range'],_0x596b60),_0x11b503=!0x0;});}return _0x11b503;}['_reduceSuggestionAttributeRange'](_0x3345b3,_0x50a608,_0x3b8229){const _0x5e5343=_0x3345b3['getFirstRange']()['getDifference'](_0x50a608);0x0!==_0x5e5343['length']?0x1!==_0x5e5343['length']?this['_breakSuggestionMarker'](_0x3345b3,_0x50a608['start'],_0x50a608['end']):this['_setSuggestionRange'](_0x3345b3,_0x5e5343[0x0]):_0x3b8229['removeMarker'](_0x3345b3['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4347f7){this['_editor']=_0x4347f7,this['_model']=_0x4347f7['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x323fe8,_0x30fe34,_0x4f1463,_0x41823b,_0x5d8231,_0x17c24b){return new o(this['_model'],{'type':_0x323fe8,'subType':_0x30fe34,'id':_0x4f1463,'author':_0x41823b,'creator':_0x41823b,'attributes':_0x5d8231,'onAttributesChange':_0x17c24b,'onAccept':(..._0x353be9)=>this['getSuggestionCallback'](_0x323fe8,_0x30fe34,'accept')(..._0x353be9),'onDiscard':(..._0x4ce758)=>this['getSuggestionCallback'](_0x323fe8,_0x30fe34,'discard')(..._0x4ce758)});}['registerCustomCallback'](_0x569b96,_0x40f3ba,_0x3391f9,_0x50e42b){const _0x1cbb6b=_0x569b96+':'+_0x40f3ba+':'+_0x3391f9;this['_customCallbacks']['set'](_0x1cbb6b,_0x50e42b);}['getSuggestionCallback'](_0x2575d2,_0x4483f2,_0x5a586a){const _0x194496=_0x2575d2+':'+_0x4483f2+':'+_0x5a586a;return this['_customCallbacks']['get'](_0x194496)||this['_defaultCallbacks']['get'](_0x2575d2+':'+_0x5a586a);}['_registerDefaultCallbacks'](){const _0x3ab70f=()=>!0x1,_0x1a213c=_0x4ef883=>{_0x4ef883['sort']((_0x2ee7ba,_0x34af4e)=>_0x2ee7ba['start']['isBefore'](_0x34af4e['start'])?0x1:-0x1),this['_model']['change'](_0x35443b=>{for(const _0x218bf0 of _0x4ef883){let _0x4b1833;_0x4b1833=_0x218bf0['end']['isAtEnd']&&_0x218bf0['end']['parent']==_0x218bf0['start']['nodeAfter']?_0x35443b['createSelection'](_0x218bf0['start']['nodeAfter'],'on'):_0x35443b['createSelection'](_0x218bf0),this['_model']['deleteContent'](_0x4b1833,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x37db82=(_0x587dc8,_0x476f97)=>{_0x476f97&&this['_model']['change'](_0x362b64=>{const {commandName:_0xa6c764,commandParams:_0x5e9891=[]}=_0x476f97,_0x247429=_0x587dc8['map'](_0x15c747=>(Lt(_0x15c747)&&(_0x15c747=this['_model']['createRange'](_0x15c747['end'])),_0x15c747))['filter'](_0x59ed5f=>'$graveyard'!==_0x59ed5f['root']['rootName']);if(_0x247429['length']<0x1)return;const _0x1e78f5=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5bbe67=>_0x272be6['fromRange'](_0x5bbe67));_0x362b64['setSelection'](_0x247429);for(const _0x134e91 of this['_editor']['commands']['commands']())_0x134e91['refresh']();_0x5e9891['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xa6c764,..._0x5e9891);const _0x3efb08=_0x1e78f5['filter'](_0x4561fe=>'$graveyard'!=_0x4561fe['root']['rootName']);_0x3efb08['length']>0x0&&_0x362b64['setSelection'](_0x3efb08);for(const _0x3f9630 of _0x1e78f5)_0x3f9630['detach']();});},_0xbdaa2c=(_0x51d5a4,_0x16fb65)=>0x1==_0x51d5a4['length']&&0x1==_0x16fb65['length']&&_0x51d5a4[0x0]['end']['isEqual'](_0x16fb65[0x0]['start']),_0x332079=(_0xf5871b,_0x27c9de,_0x232496,_0x43b904)=>Wt(_0xf5871b,_0x27c9de,_0x232496,_0x43b904)?[_0xf5871b,_0x27c9de]:Wt(_0x27c9de,_0xf5871b,_0x43b904,_0x232496)?[_0x27c9de,_0xf5871b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3ab70f),this['_defaultCallbacks']['set']('insertion:discard',_0x1a213c),this['_defaultCallbacks']['set']('insertion:join',_0xbdaa2c),this['_defaultCallbacks']['set']('insertion:chain',_0x332079),this['_defaultCallbacks']['set']('deletion:accept',_0x1a213c),this['_defaultCallbacks']['set']('deletion:discard',_0x3ab70f),this['_defaultCallbacks']['set']('deletion:join',_0xbdaa2c),this['_defaultCallbacks']['set']('deletion:chain',_0x332079),this['_defaultCallbacks']['set']('formatInline:accept',_0x37db82),this['_defaultCallbacks']['set']('formatInline:discard',_0x3ab70f),this['_defaultCallbacks']['set']('formatInline:join',_0xbdaa2c),this['_defaultCallbacks']['set']('formatInline:chain',_0x3ab70f),this['_defaultCallbacks']['set']('formatBlock:accept',_0x37db82),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3ab70f),this['_defaultCallbacks']['set']('formatBlock:join',_0xbdaa2c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3ab70f),this['_defaultCallbacks']['set']('attribute:accept',_0x3ab70f),this['_defaultCallbacks']['set']('attribute:discard',(_0x7ad4e1,_0x15e513)=>{if(!_0x15e513)return;const _0x2cbbfc=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x32fda2=>{if(_0x15e513['key']==u)for(const _0x4c8b27 of _0x7ad4e1){const _0x430e99=_0x4c8b27['start']['nodeAfter'],_0x222978=_0x15e513['oldValue'];_0x32fda2['rename'](_0x430e99,_0x222978);}else{if(_0x2cbbfc['_isBlockAttribute'](_0x15e513['key'])){for(const _0x3bb795 of _0x7ad4e1)void 0x0!==_0x15e513['oldValue']?_0x32fda2['setAttribute'](_0x15e513['key'],_0x15e513['oldValue'],_0x3bb795['start']['nodeAfter']):_0x32fda2['removeAttribute'](_0x15e513['key'],_0x3bb795['start']['nodeAfter']);}else{for(const _0x384841 of _0x7ad4e1)_0x15e513['oldValue']?_0x32fda2['setAttribute'](_0x15e513['key'],_0x15e513['oldValue'],_0x384841):_0x32fda2['removeAttribute'](_0x15e513['key'],_0x384841);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xbdaa2c);}}function Gt(_0x2819b9,_0x473615,_0x4d9a22){for(const _0x183d78 of _0x473615['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x183d78['root']==_0x183d78)return!0x1;if(!_0x4d9a22['containsItem'](_0x183d78))return!0x1;if(_0x2819b9['isObject'](_0x183d78)||_0x2819b9['isLimit'](_0x183d78))return!0x0;}return!0x1;}function Lt(_0x34c92b){return _0x34c92b['end']['parent']==_0x34c92b['start']['nodeAfter']&&_0x34c92b['end']['isAtStart'];}function Jt(_0x2560ba,_0x4af37e,_0x58713a,_0x73e31d){const _0x50e8d9=_0x5ed29c=>!_0x5ed29c['item']['is']('$textProxy')&&!_0x73e31d['isObject'](_0x5ed29c['item']),_0x1aa5dd=_0x2560ba['start']['getLastMatchingPosition'](_0x50e8d9),_0x4d1e74=_0x2560ba['end']['getLastMatchingPosition'](_0x50e8d9,{'direction':'backward'});return(!_0x2560ba['start']['isEqual'](_0x1aa5dd)||!_0x2560ba['end']['isEqual'](_0x4d1e74))&&(_0x1aa5dd['isBefore'](_0x4d1e74)?_0x58713a['updateMarker'](_0x4af37e,{'range':_0x58713a['createRange'](_0x1aa5dd,_0x4d1e74)}):_0x58713a['removeMarker'](_0x4af37e),!0x0);}function Kt(_0x10a511){return _0xac2877(_0x10a511);}function Ht(_0x43261d){const _0x6c05a3=_0x43261d['start']['nodeAfter'];return _0x6c05a3&&_0x6c05a3['is']('element');}function qt(_0xa998fe,_0x2a1adc){return null==_0xa998fe['end']['nodeBefore']&&_0xa998fe['end']['parent']==_0xa998fe['start']['nodeAfter']?zt(_0xa998fe['start']['nodeAfter'],_0x2a1adc):_0xa998fe;}function zt(_0x4477f3,_0x594ffa){const _0x3fe23f=_0x594ffa['schema']['isObject'](_0x4477f3)||_0x594ffa['schema']['isSelectable'](_0x4477f3);return _0x594ffa['createRange'](_0x594ffa['createPositionAt'](_0x4477f3,'before'),_0x3fe23f?_0x594ffa['createPositionAfter'](_0x4477f3):_0x594ffa['createPositionAt'](_0x4477f3,'end'));}function Wt(_0x4e8b30,_0x507da0,_0x30451d,_0x435e83){return!!Qt(_0x4e8b30,_0x507da0)&&_0x30451d['end']['isEqual'](_0x435e83['start']);}function Qt(_0x1d1284,_0x3536b3){if(!_0x1d1284['_isDataLoaded']||!_0x3536b3['_isDataLoaded'])return!0x1;const _0x40ad2a=new Set(Object['keys'](_0x1d1284['attributes'])),_0x177a68=new Set(Object['keys'](_0x3536b3['attributes']));if(_0x40ad2a['delete']('groupId'),_0x177a68['delete']('groupId'),0x0==_0x40ad2a['size']&&0x0==_0x177a68['size'])return!0x0;if(_0x40ad2a['size']!=_0x177a68['size'])return!0x1;const _0x4388da={..._0x1d1284['attributes']},_0x48fa8a={..._0x3536b3['attributes']};return delete _0x4388da['groupId'],delete _0x48fa8a['groupId'],JSON['stringify'](_0x4388da)==JSON['stringify'](_0x48fa8a);}function Xt(_0x34aaff,_0x266918){const _0x3ec984=Yt(_0x34aaff['attributes']),_0x1d9bb8=Yt(_0x266918);if(!_0x34aaff['_isDataLoaded'])return!0x1;for(const _0x305746 of Object['keys'](_0x1d9bb8))if(!_0x4e5b3f(_0x3ec984[_0x305746],_0x1d9bb8[_0x305746]))return!0x1;return!0x0;}function Yt(_0x4138a1){const _0x21c05d=Object['assign']({},_0x4138a1);return delete _0x21c05d['skipNestingCheck'],delete _0x21c05d['tablePasteChainId'],_0x21c05d;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x19b8be(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1ac24b,_0x4ddb20,_0x135867,_0x287531){super(),this['model']=_0x4ddb20,this['view']=_0x135867,this['commentThreadController']=_0x287531,this['_editor']=_0x1ac24b,this['_acceptCommand']=_0x1ac24b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1ac24b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2952dc,_0x26f5bc)=>_0x2952dc||_0x26f5bc),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2d04da=>_0x2d04da&&this['_editor']['model']['canEditAt'](_0x4ddb20['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2acf7d=>_0x2acf7d&&this['_editor']['model']['canEditAt'](_0x4ddb20['getRanges']())),this['_pendingAction']=null,_0x135867['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x135867,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x135867,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x135867,'change:isDirty',()=>{_0x135867['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 _0x2e6513=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2e6513);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x5c9254{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4015b1,_0x3c379,_0x224842,_0x893cb){super(_0x4015b1),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2c4bda(_0x4015b1,c(_0x4015b1,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3c379['authoredAt']),this['bind']('authoredAt')['to'](_0x3c379),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',_0x3c379,'authoredAt',this,'descriptionParts',(_0x1658e3,_0x57c759,_0x40a75e)=>{const _0xefa9ca=_0x40a75e['map'](_0x2f8c70=>ls(_0x2f8c70['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1658e3-0x1,_0x3c379['author']['name'],_0x57c759?_0x893cb['formatDateTime'](_0x57c759):'',new DOMParser()['parseFromString'](_0xefa9ca,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4fdc45(),this['focusTracker']=new _0x18b0ca(),this['keystrokes']=new _0x36c848(),this['focusCycler']=new _0x45dea6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x42c7a2=>_0x42c7a2['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3c379,this['_localUser']=_0x224842,this['_config']=_0x893cb,_0x893cb['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x107856(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x30e89d}=this['_config'];this['commentsListView']=new _0x30e89d(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',_0x5ba2da=>_0x5ba2da+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x9276d0,_0x5f3919)=>_0x9276d0||!!_0x5f3919);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3251e2}=this['_config'],_0x23d68d=new _0x3251e2(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x217977=_0x23d68d['commentInputView'];return _0x23d68d['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x217977,'value',(_0x575447,_0x5aeb23,_0x2201d1)=>!!_0x2201d1||_0x575447&&!_0x5aeb23),_0x217977['on']('submit',(_0x196b4a,_0x2c526e)=>{this['fire']('addComment',_0x2c526e),_0x217977['editor']['setData']('');}),_0x217977['on']('cancel',()=>this['focus']()),_0x217977['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x23d68d;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x2cfdbd,_0x5572ff,_0x4a93af,_0x355c3e){super(_0x2cfdbd,_0x5572ff,_0x4a93af,_0x355c3e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x230da6=>_0x230da6&&_0x230da6[0x0]?_0x230da6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1ec678,_0x431d75)=>{let _0xda7a07='';for(const _0x4e8b35 of _0x1ec678)_0xda7a07+='<p>'+ls(_0x4e8b35['content'],_0x4e8b35['color'])+'</p>';return _0x431d75?_0xda7a07:ti(_0xda7a07,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x355c3e['SuggestionView'](_0x2cfdbd,_0x5572ff,{'formatDateTime':_0x355c3e['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 _0x50d3e1=this['bindTemplate'],_0x430b67=[this['suggestionView']];return this['commentsListView']&&_0x430b67['push'](this['commentsListView']),this['commentThreadInputView']&&_0x430b67['push'](this['commentThreadInputView']),_0x430b67['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x50d3e1['if']('isActive','ck-suggestion-wrapper--active'),_0x50d3e1['to']('type',_0x2eed42=>'ck-suggestion-'+_0x2eed42),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':_0x50d3e1['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x430b67};}['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 _0x5c9254{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x447f78,_0x5adda1,_0x446b82){super(_0x447f78),this['_model']=_0x5adda1,this['_config']=_0x446b82,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5adda1),this['acceptButton']=this['_createButton'](c(_0x447f78,'Accept\x20suggestion'),_0x3e5d18,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x447f78,'Discard\x20suggestion'),_0x349dc3,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x51f139(_0x447f78,_0x5adda1['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4fdc45([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x18b0ca(),this['keystrokes']=new _0x36c848(),this['focusCycler']=new _0x45dea6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xd9e0f1=>_0xd9e0f1['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2d0b6f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2d0b6f['innerHTML']=this['description'],this['on']('change:description',(_0x1b1212,_0x56b57e,_0x391e25)=>{_0x2d0b6f['innerHTML']=_0x391e25;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4d095f=this['bindTemplate'],_0x4d131c=[{'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':_0x4d095f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4d095f['to']('authoredAt',_0x3572ea=>this['_config']['formatDateTime'](_0x3572ea))}]}]},{'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']&&_0x4d131c['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':_0x4d131c}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x19d25e,_0x1691de,_0x9aef04,_0x57d390,_0x5dd88e){const _0xcfc94f=new _0x708719(this['locale']);return _0xcfc94f['set']({'label':_0x19d25e,'icon':_0x1691de,'tooltip':!0x0,'tooltipPosition':_0x5dd88e}),_0xcfc94f['extendTemplate']({'attributes':{'class':_0x9aef04}}),_0xcfc94f['on']('execute',()=>{this['fire'](_0x57d390,this['_model']['id']);}),_0xcfc94f;}['_setupKeyboardNavigation'](){const _0x15c39f=this['element'];this['keystrokes']['listenTo'](_0x15c39f);for(const _0x97583f of this['focusables'])this['focusTracker']['add'](_0x97583f['element']),this['keystrokes']['listenTo'](_0x97583f['element']);this['keystrokes']['set']('enter',(_0x2bde2f,_0x496bb6)=>{_0x15c39f===_0x2bde2f['target']&&(this['focusCycler']['focusFirst'](),_0x496bb6());}),this['keystrokes']['set']('esc',(_0x5179ee,_0x370dcf)=>{_0x15c39f!==_0x5179ee['target']&&(this['focus'](),_0x370dcf());});}}class d extends _0x10f0de{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4dac70,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x380d20){super(_0x380d20),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4e6e06=this['editor']['config'];_0x4e6e06['define']('trackChanges.SuggestionThreadView',fe),_0x4e6e06['define']('trackChanges.SuggestionView',we),_0x4e6e06['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4e6e06['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3b2214,_0x48c936){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4c56f8,_0x38fa78]of this['_handleControllerBuffer']){const _0x1a5dc7=this['_suggestionToController']['has'](_0x4c56f8);_0x1a5dc7||_0x38fa78?_0x1a5dc7&&_0x38fa78&&this['_destroyController'](_0x4c56f8):this['_initializeController'](_0x4c56f8);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3b2214,_0x48c936);}['init'](){const _0x3cea73=this['editor'],_0x4de173=_0x3cea73['plugins']['get']('TrackChangesEditing'),_0x5a266d=_0x3cea73['plugins']['get']('Annotations'),_0x3372e1=_0x3cea73['plugins']['get']('EditorAnnotations'),_0x459ed9=_0x3cea73['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3372e1['addSourceCollector'](()=>{const _0x1cd36c=[];for(const [_0x45ed8e,_0x3fb8c0]of Array['from'](this['_suggestionToController'])){const _0x108e30=_0x45ed8e['getAllAdjacentSuggestions'](),_0x4f6b47=[];for(const _0x350093 of _0x108e30){if(!_0x350093['isInContent'])continue;if(_0x350093['isMultiRange']){_0x4f6b47['push'](..._0x350093['getRanges']());continue;}const _0xf3e3f5=_0x350093['getFirstRange']();if(_0x4f6b47['length']>0x0){const _0x2b795c=_0x4f6b47[0x0]['getJoined'](_0xf3e3f5);if(_0x2b795c){_0x4f6b47[0x0]=_0x2b795c;continue;}}_0x4f6b47['push'](_0xf3e3f5);}_0x1cd36c['push']([_0x3fb8c0['view'],_0x4f6b47]);}return _0x1cd36c;}),this['listenTo'](_0x4de173,'suggestionLoaded',(_0x188222,_0x150908)=>{this['listenTo'](_0x150908,'change:previous',(_0x2e3907,_0x373f13,_0x3acfdc,_0x3b7667)=>{_0x150908['isInContent']&&(null==_0x3acfdc?(this['_updateController'](_0x3b7667['head']),this['_handleSuggestionControllerDelayed'](_0x150908,!0x1)):(this['_updateController'](_0x3acfdc['head']),null==_0x3b7667&&this['_handleSuggestionControllerDelayed'](_0x150908,!0x0)));}),null!==_0x150908['previous']?this['_updateController'](_0x150908['head']):this['_handleSuggestionControllerDelayed'](_0x150908,!0x1);}),this['listenTo'](_0x4de173,'suggestionUnloaded',(_0x66872a,_0x366547,_0x1f3351)=>{this['stopListening'](_0x366547,'change:previous'),this['_handleControllerBuffer']['delete'](_0x366547),this['_suggestionToController']['has'](_0x366547)&&this['_destroyController'](_0x366547),_0x1f3351&&this['_updateController'](_0x1f3351['head']);}),this['listenTo'](_0x4de173,'suggestionChanged',(_0x5c76f4,_0x9cda2a)=>{this['_updateController'](_0x9cda2a);}),this['listenTo'](_0x5a266d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x459ed9,'addComment',(_0x4a089f,{threadId:_0x546e21,isFromAdapter:_0x3649d5})=>{if(_0x3649d5||!_0x4de173['hasSuggestion'](_0x546e21))return;const _0x38ae41=_0x4de173['getSuggestion'](_0x546e21);this['_suggestionToController']['get'](_0x38ae41)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3be5b6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x225ce1;for(const _0x4402f6 in _0x3be5b6){const _0x190a8f=_0x4402f6,_0xb7f0c0=_0x3be5b6[_0x190a8f];if('trackChangesLicenseKeyValid'==_0xb7f0c0||'trackChangesLicenseKeyInvalid'==_0xb7f0c0||'trackChangesLicenseKeyExpired'==_0xb7f0c0||'trackChangesLicenseKeyDomainLimit'==_0xb7f0c0||'trackChangesLicenseKeyNotAllowed'==_0xb7f0c0||'trackChangesLicenseKeyEvaluationLimit'==_0xb7f0c0||'trackChangesLicenseKeyTrialLimit'==_0xb7f0c0||'trackChangesLicenseKeyUsageLimit'==_0xb7f0c0){delete _0x3be5b6[_0x190a8f],_0x225ce1=_0xb7f0c0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x225ce1&&_0x3be5b6['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x225ce1&&_0x3be5b6['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x225ce1&&_0x3be5b6['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x225ce1&&_0x3be5b6['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x225ce1&&_0x3be5b6['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x225ce1&&_0x3be5b6['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x225ce1&&_0x3be5b6['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x2decb9=this['editor']['plugins']['get']('Annotations'),_0x4640d3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x206f14=Array['from'](_0x2decb9['activeAnnotations'],_0x325a6f=>_0x325a6f['innerView'])['filter'](_0x3e722e=>this['_viewToController']['has'](_0x3e722e)),_0x1e07db=[];for(const _0xe87eb0 of _0x206f14){const _0x66d934=this['_viewToController']['get'](_0xe87eb0)['model']['getAllAdjacentSuggestions']();_0x1e07db['push'](..._0x66d934['reduce']((_0x3e8ef5,_0x28f257)=>[..._0x3e8ef5,..._0x28f257['getMarkerNames']()],[]));}_0x4640d3['activeMarkers']=_0x1e07db;}['_addUIComponentsToFactory'](){const _0x27bb27=this['editor'],_0x18af7b=_0x27bb27['locale'],_0x3282ce=c(_0x18af7b,'Track\x20changes'),_0x49711b=new _0x2cc4a5([{'type':'switchbutton','model':new _0x30de4d({'withText':!0x0,'isToggleable':!0x0,'label':_0x3282ce,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x30de4d({'withText':!0x0,'label':c(_0x18af7b,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x30de4d({'withText':!0x0,'label':c(_0x18af7b,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x30de4d({'withText':!0x0,'label':c(_0x18af7b,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x30de4d({'withText':!0x0,'label':c(_0x18af7b,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x27bb27['plugins']['has']('TrackChangesPreview')&&_0x49711b['addMany']([{'type':'separator'},{'type':'button','model':new _0x30de4d({'withText':!0x0,'label':c(_0x18af7b,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x31856f of _0x49711b)if(ke(_0x31856f)){const _0x535e43=_0x27bb27['commands']['get'](_0x31856f['model']['commandName']);_0x31856f['model']['bind']('isOn','isEnabled')['to'](_0x535e43,'value','isEnabled');}_0x27bb27['ui']['componentFactory']['add']('trackChanges',_0x41bb6e=>this['_createToolbarButton'](_0x41bb6e,_0x49711b,_0x3282ce)),_0x27bb27['ui']['componentFactory']['add']('menuBar:trackChanges',_0x88025=>this['_createMenuBarMenu'](_0x88025,_0x49711b,_0x3282ce));}['_createToolbarButton'](_0x4fceac,_0xaf0b6e,_0x212d3e){const _0x21e74b=_0x18f190(_0x4fceac,_0x5a016b),_0x4ff4da=this['editor']['commands']['get']('trackChanges');_0x21e74b['buttonView']['set']({'tooltip':_0x212d3e,'label':_0x212d3e,'icon':_0x4cc824}),_0x21e74b['buttonView']['bind']('isOn')['to'](_0x4ff4da,'value'),_0x21e74b['buttonView']['on']('execute',()=>{_0x4ff4da['execute'](),this['editor']['editing']['view']['focus']();}),_0x236911(_0x21e74b,_0xaf0b6e,{'role':'menu'});const _0xa0626d=[];for(const _0x5e64ed of _0xaf0b6e)ke(_0x5e64ed)&&_0xa0626d['push'](this['editor']['commands']['get'](_0x5e64ed['model']['commandName']));const _0x257ad5=_0x21e74b['buttonView'];return _0x257ad5['actionView']['unbind']('isEnabled'),_0x257ad5['arrowView']['unbind']('isEnabled'),_0x257ad5['actionView']['bind']('isEnabled')['to'](_0x4ff4da,'isEnabled'),_0x257ad5['arrowView']['bind']('isEnabled')['toMany'](_0xa0626d,'isEnabled',(..._0x595ac1)=>_0x595ac1['some'](_0x15b3a3=>_0x15b3a3)),_0x21e74b['on']('execute',_0x29cf21=>{this['editor']['execute'](_0x29cf21['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x21e74b;}['_createMenuBarMenu'](_0x5791cf,_0x5424e1,_0x3f6374){const _0x12967e=new _0x45a8f7(_0x5791cf),_0x49b86e=this['editor']['commands']['get']('trackChanges');_0x12967e['buttonView']['set']({'label':_0x3f6374,'icon':_0x4cc824});const _0x198e48=new _0x1d4c0b(_0x5791cf);for(const _0x28ff09 of _0x5424e1){if('separator'==_0x28ff09['type']){_0x198e48['items']['add'](new _0x69d281(_0x5791cf));continue;}const _0x173fbc=new _0x188b18(_0x5791cf,_0x12967e),_0x2bc794=new _0x23b42d(_0x5791cf),_0x487acc=_0x28ff09['model'];_0x2bc794['bind'](...Object['keys'](_0x487acc))['to'](_0x487acc),_0x2bc794['delegate']('execute')['to'](_0x12967e),_0x2bc794['on']('execute',()=>{this['editor']['execute'](_0x487acc['commandName']),this['editor']['editing']['view']['focus']();}),_0x173fbc['children']['add'](_0x2bc794),_0x198e48['items']['add'](_0x173fbc);}return _0x12967e['bind']('isEnabled')['to'](_0x49b86e,'isEnabled'),_0x12967e['panelView']['children']['add'](_0x198e48),_0x12967e;}['_initializeController'](_0x32423e){const _0x5c8204=this['editor'],_0x4e77c8=_0x5c8204['config'],_0x15863c=_0x5c8204['plugins']['get']('Annotations'),_0xa850b4=_0x5c8204['plugins']['get']('CommentsRepository'),_0x3855bb=_0x5c8204['plugins']['get']('EditorAnnotations'),_0x54cbb0=_0x5c8204['plugins']['get'](_0x4dac70)['me'],_0x12bea1=_0x4e77c8['get']('trackChanges')['SuggestionThreadView'],_0x43ca42=_0x4e77c8['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x532e1e,CommentThreadInputView:_0x336c4c}=_0x5c8204['plugins']['get']('CommentsUI');let _0x334fdb,_0x4bdd7a,_0x1ea56a;this['_annotationViews']['has'](_0x32423e['id'])?(_0x4bdd7a=this['_annotationViews']['get'](_0x32423e['id']),_0x334fdb=_0x4bdd7a['mainView']):(_0x334fdb=new _0x12bea1(_0x5c8204['locale'],_0x32423e,_0x54cbb0,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4e77c8['get']('comments.editorConfig'),'licenseKey':_0x4e77c8['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4e77c8['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4e77c8['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4e77c8['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x438cb0(_0x4e77c8['get']('locale'),_0x5c8204['locale']),'CommentView':_0x4e77c8['get']('comments')['CommentView'],'CommentsListView':_0x532e1e,'CommentThreadInputView':_0x336c4c,'SuggestionView':_0x43ca42}),_0x334fdb['suggestionView']['acceptButton']['on']('execute',()=>{_0x5c8204['editing']['view']['focus']();}),_0x334fdb['suggestionView']['discardButton']['on']('execute',()=>{_0x5c8204['editing']['view']['focus']();}),_0x4bdd7a=_0x15863c['createAnnotationView'](this['editor']['locale'],_0x334fdb),_0x4bdd7a['bind']('isDirty')['to'](_0x334fdb,'isDirty'),_0x4bdd7a['bind']('length')['to'](_0x334fdb),_0x4bdd7a['bind']('type')['to'](_0x334fdb,'type',_0x3ee2b7=>'suggestion-'+_0x3ee2b7),_0x334fdb['on']('escape',()=>{_0x1ea56a['fire']('escape');}),this['_annotationViews']['set'](_0x32423e['id'],_0x4bdd7a));const _0x54dc40=_0xa850b4['createCommentThreadController'](_0x32423e['commentThread'],_0x334fdb),_0x4a86e0=new pe(_0x5c8204,_0x32423e,_0x334fdb,_0x54dc40),_0x391ec9=_0x32423e['getAllAdjacentSuggestions']()['filter'](_0x561c66=>_0x561c66['isInContent']);_0x334fdb['descriptionParts']=_0x5c8204['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x391ec9),this['_suggestionToController']['set'](_0x32423e,_0x4a86e0),this['_viewToController']['set'](_0x334fdb,_0x4a86e0),_0x1ea56a=_0x15863c['createAnnotation']({'view':_0x4bdd7a,'target':()=>{const _0x11b236=[],_0xaf4a36=_0x32423e['getAllAdjacentSuggestions']()['filter'](_0x3942eb=>_0x3942eb['isInContent']);for(const _0x1257ea of _0xaf4a36)_0x11b236['push'](..._0x1257ea['getMarkers']());return _0x1e02a5(_0x5c8204['editing'],_0x11b236);},'type':()=>'suggestion-'+_0x4a86e0['view']['type']}),_0xa850b4['_bindAnnotationToEditors'](_0x334fdb,_0x1ea56a),_0x15863c['add'](_0x1ea56a),_0x3855bb['registerAnnotation'](_0x1ea56a);}['_destroyController'](_0x207308){const _0x5763ce=this['editor']['plugins']['get']('CommentsRepository'),_0x3ba53f=this['editor']['plugins']['get']('Annotations'),_0x4d2b1=this['_suggestionToController']['get'](_0x207308),_0x5526d2=_0x4d2b1['view'],_0x5ae947=_0x3ba53f['getByInnerView'](_0x5526d2);_0x5763ce['_unbindEditors'](_0x5526d2),_0x5ae947&&_0x3ba53f['remove'](_0x5ae947),this['_suggestionToController']['delete'](_0x207308),this['_viewToController']['delete'](_0x5526d2),_0x4d2b1['destroy']();}['_updateController'](_0x368f82){if(!_0x368f82['isInContent']||!this['_suggestionToController']['has'](_0x368f82))return;const _0x2a03f2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50c0c6=this['_suggestionToController']['get'](_0x368f82),_0x44dbcd=_0x368f82['getAllAdjacentSuggestions']();_0x50c0c6['view']['descriptionParts']=_0x2a03f2['descriptionFactory']['getDescriptions'](_0x44dbcd);}['destroy'](){for(const _0x525810 of this['_suggestionToController']['keys']())this['_destroyController'](_0x525810);for(const _0x4ff8a4 of this['_annotationViews']['values']())_0x4ff8a4['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2cb868){return'model'in _0x2cb868;}class k extends _0x10f0de{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x51daf7){this['editor']['plugins']['get'](p)['adapter']=_0x51daf7;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x84409b){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x84409b);}['getSuggestions']({skipNotAttached:_0x11cb20=!0x1,toJSON:_0x4390e4=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x11cb20,'toJSON':_0x4390e4});}['getSuggestion'](_0xf8db72){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xf8db72);}}const w=['Pagination'];class T extends _0x10f0de{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1d0496=this['editor'];if(_0x1d0496['config']['define']('trackChangesData.editorCreator',_0x29d877=>{const _0x51f999=_0x1d0496['model']['document']['getRootNames']()['reduce']((_0x441959,_0x5b511a)=>(_0x441959[_0x5b511a]='',_0x441959),{});return _0x1d0496['constructor']['create'](_0x51f999,_0x29d877);}),'function'!=typeof _0x1d0496['config']['get']('trackChangesData')['editorCreator'])throw new _0x56438b('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x10dd82){return N(this['editor'],!0x0,_0x10dd82);}['getDataWithDiscardedSuggestions'](_0x111009){return N(this['editor'],!0x1,_0x111009);}}class D extends _0x10f0de{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x379ff7){function _0x47f58d(_0x53da3f){return _0x53da3f['map'](_0x2539fe=>String['fromCharCode'](_0x2539fe))['join']('');}super(_0x379ff7),this['result']='end',_0x379ff7[_0x47f58d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47f58d([0x76,0x69,0x65,0x77])][_0x47f58d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x47f58d([0x61,0x75,0x74,0x6f]),_0x379ff7[_0x47f58d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x47f58d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x47f58d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x47f58d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x47f58d([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 Ge(_0x32b16f){return void 0x0!==_0x32b16f['getRootsAttributes'];}async function N(_0x5532e2,_0x53850e,_0x455ad4){const _0x2a96a6=_0x6484b0(_0x5532e2,w);_0x2a96a6['plugins']['push'](p,D),_0x2a96a6['rootsAttributes']=Ge(_0x5532e2)?_0x5532e2['getRootsAttributes']():void 0x0;const _0x3645a6=document['createDocumentFragment'](),_0x2059d0=_0x5532e2['config']['get']('trackChangesData')['editorCreator'],_0xbc3d6c=await _0x2059d0(_0x2a96a6,()=>function(_0x1a836b){const _0x5357f8=document['createElement']('div');return _0x1a836b['appendChild'](_0x5357f8),_0x5357f8;}(_0x3645a6));!function(_0x304e10,_0x17f548){const _0x46723d=_0x304e10['model']['document']['getRootNames']()['reduce']((_0x2773d9,_0x397e04)=>(_0x2773d9[_0x397e04]=_0x304e10['data']['get']({'rootName':_0x397e04}),_0x2773d9),{}),_0x2ed83d=_0x304e10['plugins']['get']('Users')['users']['map'](_0x3911a0=>({'id':_0x3911a0['id'],'name':_0x3911a0['name']})),_0x12e42a=_0x304e10['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x178023=_0x304e10['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x20e30f=_0x17f548['plugins']['get']('Users'),_0x31f018=_0x17f548['plugins']['get']('TrackChangesEditing'),_0x36d2b8=_0x17f548['plugins']['get']('CommentsRepository');for(const _0x596778 of _0x36d2b8['getCommentThreads']())_0x596778['remove']();for(const _0x224ad6 of _0x2ed83d)_0x20e30f['getUser'](_0x224ad6['id'])||_0x20e30f['addUser'](_0x224ad6);_0x20e30f['me']||_0x20e30f['useAnonymousUser']();for(const _0x13ef26 of _0x178023)_0x36d2b8['addCommentThread'](_0x13ef26);for(const _0x44f97b of _0x12e42a)_0x31f018['addSuggestionData'](_0x44f97b);_0x17f548['data']['set'](_0x46723d);}(_0x5532e2,_0xbc3d6c),_0xbc3d6c['execute'](_0x53850e?'acceptAllSuggestions':'discardAllSuggestions');const _0x4d3358=Ge(_0xbc3d6c)?_0xbc3d6c['getFullData'](_0x455ad4):_0xbc3d6c['data']['get'](_0x455ad4);return await _0xbc3d6c['destroy'](),_0x4d3358;}class Me extends _0x5c9254{['options'];constructor(_0x3730c2,_0x526f4c){super(_0x3730c2),this['options']=_0x526f4c,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'](_0x677b33,_0x602fa3){if(!this['element'])return;const _0x18dbaa=[];for(const [_0x35a801,_0x50b148]of _0x677b33){const _0x10a6a3=document['createElement']('div');_0x10a6a3['setAttribute']('data-ck-root-name',_0x35a801),_0x10a6a3['className']=_0x50b148['classes']+'\x20ck-track-changes-preview__root-container',_0x10a6a3['innerHTML']=_0x50b148['content'],_0x18dbaa['push'](_0x10a6a3);}_0x602fa3(this['element'],_0x18dbaa),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x32be09{constructor(_0x5b8f6b){super(_0x5b8f6b),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x49b4d1=this['editor'],_0x1e8ce3=_0x49b4d1['locale'],_0x2e8d67=_0x49b4d1['plugins']['get']('Dialog');let _0x10f885;const _0x4bcbd9=function(_0x1aef4d){const _0x20ed26={};if('editables'in _0x1aef4d['ui']['view']){for(const [_0xf4f811,_0x4d96d8]of Object['entries'](_0x1aef4d['ui']['view']['editables']))_0x20ed26[_0xf4f811]=_0x4d96d8['element'];}else _0x20ed26[_0x1aef4d['model']['document']['getRootNames']()[0x0]]=_0x1aef4d['ui']['view']['editable']['element'];return _0x20ed26;}(_0x49b4d1),_0x2a89c0=function(_0x21eb50){let _0x25544c=0x0;for(const _0x229db3 of Object['values'](_0x21eb50))_0x25544c=Math['max'](_0x25544c,_0x229db3['getBoundingClientRect']()['width']);let _0x4a0c81=0x0;for(const _0x46be23 of Object['values'](_0x21eb50))_0x4a0c81+=_0x46be23['getBoundingClientRect']()['height'];const _0xb8a802=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1d2fe3=Math['min'](_0x4a0c81,_0xb8a802);return{'width':_0x25544c,'height':_0x1d2fe3};}(_0x4bcbd9);_0x2e8d67['show']({'id':'finalContentPreview','title':c(_0x1e8ce3,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1e8ce3,{'dialogRects':_0x2a89c0}),'onHide':()=>{_0x10f885['detachFromDom']();},'onShow':()=>{_0x49b4d1['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x6250ce=>{const _0x4b67ea=this['_standarizeRootsData'](_0x6250ce,_0x49b4d1,_0x4bcbd9);_0x2e8d67['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4b67ea,_0x49b4d1['config']['get']('trackChanges.preview.renderFunction'));}),_0x10f885=new _0x3212a7(_0x1e8ce3,[_0x2e8d67['view']]),_0x10f885['attachToDom'](),_0x10f885['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x49b4d1['once']('destroy',()=>{_0x10f885['detachFromDom']();});const _0x2cca71=_0x2e8d67['view']['headerView']['class'];_0x2e8d67['view']['headerView']['class']=_0x2cca71?_0x2cca71+'\x20ck-reset_all':'ck-reset_all',_0x2e8d67['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2e8d67['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x18f062=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x529f17=_0x18f062['previewMode'],_0x4bdda5={};if('$labels'===_0x529f17){for(const _0xbd796f of _0x18f062['getMergeFieldsIds']())_0x4bdda5[_0xbd796f]=_0x18f062['getLabel'](_0xbd796f)||_0xbd796f;}else{const _0x4d2b30='$defaultValues'===_0x529f17?_0x18f062['getDefaultValues']():_0x18f062['getDataSetValues'](_0x529f17,!0x0);for(const _0x8ba1e0 of Object['entries'](_0x4d2b30)){const [_0x358bd8,_0x4413a2]=_0x8ba1e0;_0x4bdda5[_0x358bd8]=null!==_0x4413a2?_0x4413a2:_0x18f062['getLabel'](_0x358bd8)||_0x358bd8;}}return{'mergeFieldsData':_0x4bdda5};}['_standarizeRootsData'](_0x29453d,_0x4d529b,_0x1475d3){let _0x436140;if('string'==typeof _0x29453d){const _0x4f3fa5=_0x4d529b['model']['document']['getRootNames']()[0x0];_0x436140={[_0x4f3fa5]:_0x29453d};}else _0x436140=_0x29453d;const _0x4be721=this['_fixMediaEmbeds'](_0x436140,_0x4d529b),_0x11a471=function(_0x4f92b4,_0x38b1f6){for(const [_0xdb37d2,_0x4c14d2]of _0x4f92b4)_0x4c14d2['classes']=_0x38b1f6[_0xdb37d2]['classList']['value']['replace']('ck-focused','');return _0x4f92b4;}(this['_sortRoots'](_0x4d529b)['reduce']((_0x384891,_0x19bc23)=>(_0x384891['push']([_0x19bc23,{'content':_0x4be721[_0x19bc23],'classes':''}]),_0x384891),[]),_0x1475d3);return _0x11a471;}['_fixMediaEmbeds'](_0x234f64,_0x51bb98){if(!_0x51bb98['plugins']['has']('MediaEmbedEditing'))return _0x234f64;const _0x5e986c=_0x51bb98['plugins']['get']('MediaEmbedEditing');for(const [_0x6f7453,_0x26ee74]of Object['entries'](_0x234f64)){const _0x417852=document['createElement']('div');_0x417852['innerHTML']=_0x26ee74,(_0x417852['querySelectorAll']('figure.media')['forEach'](_0x575912=>{const _0x5702a0=_0x575912['querySelector']('oembed');if(_0x5702a0){const _0x37aed3=_0x5702a0['getAttribute']('url');if(_0x37aed3){const _0x4c30a2=_0x5e986c['registry']['getMediaViewElement'](new _0x43239e(_0x51bb98['editing']['view']['document']),_0x37aed3,{'elementName':'','renderForEditingView':!0x0}),_0x17778f=document['createElement']('div');_0x17778f['classList']['add']('ck-media__wrapper'),_0x4c30a2['render'](_0x17778f,_0x51bb98['editing']['view']['domConverter']),_0x5702a0['replaceWith'](_0x17778f);}}}),_0x234f64[_0x6f7453]=_0x417852['innerHTML']);}return _0x234f64;}['_sortRoots'](_0x183489){if(!function(_0x3035d0){return void 0x0!==_0x3035d0['getRootsAttributes'];}(_0x183489))return _0x183489['model']['document']['getRootNames']();const _0x3de752=[],_0x7698c2=new Map();for(const _0x58fe00 of _0x183489['model']['document']['getRootNames']()){const _0x295b4f=_0x183489['editing']['view']['getDomRoot'](_0x58fe00)['getClientRects']()['item'](0x0);_0x3de752['push'](_0x58fe00),_0x7698c2['set'](_0x58fe00,_0x295b4f);}return _0x3de752['sort']((_0x4ac7bd,_0x497534)=>{const _0x5c843c=_0x7698c2['get'](_0x4ac7bd),_0x104b3f=_0x7698c2['get'](_0x497534);return _0x5c843c['y']-_0x104b3f['y']||_0x5c843c['x']-_0x104b3f['x'];}),_0x3de752;}}class te extends _0x10f0de{static get['requires'](){return[T,_0x26c454];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x9527cf){super(_0x9527cf),_0x9527cf['commands']['add']('previewFinalContent',new re(this['editor'])),_0x9527cf['config']['define']('trackChanges.preview.renderFunction',(_0x1a2561,_0x7e8f5)=>{for(const _0x1e1875 of _0x7e8f5)_0x1a2561['appendChild'](_0x1e1875);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|