@ckeditor/ckeditor5-track-changes 45.0.0-alpha.10 → 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
|
-
_0x39691b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xb4513e,_0x4b4111){super(),this['id']=_0x4b4111['id'],this['type']=_0x4b4111['type'],this['subType']=_0x4b4111['subType']||null,this['author']=_0x4b4111['author'],this['creator']=_0x4b4111['creator']||_0x4b4111['author'],this['isExternal']=Boolean(_0x4b4111['attributes']&&_0x4b4111['attributes']['@external']),this['data']=null,this['_model']=_0xb4513e,this['_onAccept']=_0x4b4111['onAccept'],this['_onDiscard']=_0x4b4111['onDiscard'],this['_onAttributesChange']=_0x4b4111['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4b4111['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 _0x563ab9=this;for(;_0x563ab9['previous'];)_0x563ab9=_0x563ab9['previous'];return _0x563ab9;}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'](_0x5d87c1){this['_markerNames']['add'](_0x5d87c1);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4b3943=>this['_model']['markers']['get'](_0x4b3943))['filter'](_0x5e5fe2=>_0x5e5fe2);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5a058e=>{for(const _0x5a982c of this['getMarkers']())_0x5a058e['removeMarker'](_0x5a982c);}),this['_markerNames']['clear']();}['removeMarker'](_0x56af9d){this['_model']['change'](_0x35373f=>{_0x35373f['removeMarker'](_0x56af9d);}),this['_markerNames']['delete'](_0x56af9d);}['addRange'](_0x4e5cc5){const _0x3a49b5='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x3a49b5),this['_model']['change'](_0x36221c=>{_0x36221c['addMarker'](_0x3a49b5,{'range':_0x4e5cc5,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3c9372){for(const _0x350bdf of this['getRanges']())if(_0x350bdf['isIntersecting'](_0x3c9372))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x221397=>_0x221397['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4095b2,_0x3ebcff)=>[..._0x4095b2,..._0x3ebcff['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x931ac7=this['getRanges']();if(0x1!=_0x931ac7['length'])return null;const _0x1a5d16=_0x931ac7[0x0],_0x1caf0a=_0x1a5d16['start']['nodeAfter'],_0x1c343b=_0x1a5d16['end']['nodeBefore'];return _0x1caf0a instanceof _0x511b83?_0x1caf0a!=_0x1c343b?null:_0x1caf0a: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 _0x3af6b5=[];let _0x9cad70=this['head'];for(;_0x9cad70;)_0x3af6b5['push'](_0x9cad70),_0x9cad70=_0x9cad70['next'];return _0x3af6b5;}['setAttribute'](_0x20bd7f,_0x2a46ef){const _0x179700=_0xf3a4cd(this['attributes']);_0x50f569(_0x179700,_0x20bd7f,_0x2a46ef),_0xd04f79(_0x179700,this['attributes'])||(this['attributes']=_0x179700,this['_onAttributesChange'](_0x179700));}['removeAttribute'](_0x5cd893){const _0x2a0454=_0xf3a4cd(this['attributes']);_0x55dbd8(_0x2a0454,_0x5cd893),_0xd04f79(_0x2a0454,this['attributes'])||(this['attributes']=_0x2a0454,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 _0x28fc1d()['substr'](0x1,0x5);}}function c(_0x1e114f,_0x1a98a8,_0x4ff36b){const _0x47e60f=_0x1e114f['t'],t=_0x1e114f['t'];switch(_0x1a98a8){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',_0x4ff36b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4ff36b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4ff36b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4ff36b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4ff36b);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',_0x4ff36b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4ff36b);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',_0x4ff36b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4ff36b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4ff36b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4ff36b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4ff36b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4ff36b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4ff36b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4ff36b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4ff36b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4ff36b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4ff36b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4ff36b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4ff36b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4ff36b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4ff36b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4ff36b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4ff36b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4ff36b);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'},_0x4ff36b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4ff36b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4ff36b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4ff36b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4ff36b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4ff36b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4ff36b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4ff36b);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'},_0x4ff36b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4ff36b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4ff36b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4ff36b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4ff36b);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'},_0x4ff36b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4ff36b);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'},_0x4ff36b);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'},_0x4ff36b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4ff36b);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'},_0x4ff36b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4ff36b);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'},_0x4ff36b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4ff36b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4ff36b);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'},_0x4ff36b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4ff36b);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 _0x47e60f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4ff36b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x47e60f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4ff36b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4ff36b);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'},_0x4ff36b);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'},_0x4ff36b);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'},_0x4ff36b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1a98a8;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x42d7c8,_0x34d850){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x42d7c8,this['_locale']=_0x34d850;}['getDescriptions'](_0xd11586){const _0x224220=[],_0x3f5e73=new Set(),_0x299815=new Set();for(let _0x4a07a1=0x0;_0x4a07a1<_0xd11586['length'];_0x4a07a1++){const _0x5ef5d3=_0xd11586[_0x4a07a1];if(!_0x5ef5d3['isInContent'])continue;const _0x5ef287=this['_handleCustomCallbackDescription'](_0x5ef5d3);if(_0x5ef287){if(null!=_0x5ef5d3['subType']){if(_0x3f5e73['has'](_0x5ef5d3['subType']))continue;_0x3f5e73['add'](_0x5ef5d3['subType']);}_0x224220['push'](_0x5ef287);}else{if('attribute'!=_0x5ef5d3['type'])'insertion'!=_0x5ef5d3['type']&&'deletion'!=_0x5ef5d3['type']||this['_handleInsertRemoveSuggestionDescription'](_0x224220,_0x5ef5d3,_0xd11586[_0x4a07a1+0x1]);else{const _0x3578e7=_0x5ef5d3['data']['key'];if(_0x299815['has'](_0x3578e7))continue;_0x299815['add'](_0x5ef5d3['data']['key']),_0x3578e7==u?this['_handleRenameSuggestionDescription'](_0x224220,_0x5ef5d3):this['_handleAttributeSuggestionDescription'](_0x224220,_0x5ef5d3);}}}return this['_resolveDescriptionItems'](_0x224220);}['registerDescriptionCallback'](_0x1b2be1){this['_customCallbacks']['push'](_0x1b2be1);}['registerElementLabel'](_0x148065,_0x54effc,_0x142589=_0x2fc864['normal']){'function'==typeof _0x148065?_0x5d2d4e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x148065,'label':_0x54effc,'priority':_0x142589}):this['_itemLabels']['set'](_0x148065,_0x54effc);}['registerAttributeLabel'](_0x4aa6b0,_0x1bfcc7){this['_attributeLabels']['set'](_0x4aa6b0,_0x1bfcc7);}['getItemLabel'](_0x4464a8,_0x5524aa=0x1){let _0x3e0c92;for(const _0x3137d5 of this['_itemLabelsCallbacks'])if(_0x3137d5['matchingCallback'](_0x4464a8)){_0x3e0c92=_0x3137d5['label'];break;}return _0x3e0c92||(_0x3e0c92=this['_itemLabels']['get'](_0x4464a8['name'])),_0x3e0c92?_0x3e0c92(_0x5524aa):0x1!==_0x5524aa?_0x5524aa+'\x20'+_0x4464a8['name']+'s':''+_0x4464a8['name'];}['_addDescriptionItems'](_0x4f9f31,_0x33237f){const _0x577b42=_0x33237f['getFirstRange']()['getWalker'](),_0x4a9d7c='insertion'==_0x33237f['type']?'add':'remove';for(const _0x45f4c4 of _0x577b42){const _0x41ed4e=_0x45f4c4['item'],_0x244422=_0x4f9f31[_0x4f9f31['length']-0x1];if(_0x41ed4e['is']('$textProxy'))_0x244422&&_0x244422['type']['indexOf']('Container')>-0x1&&_0x4f9f31['pop'](),_0x244422&&'text'==_0x244422['type']?_0x244422[_0x4a9d7c]+=_0x41ed4e['data']:_0x4f9f31['push']({'type':'text','add':'add'==_0x4a9d7c?_0x41ed4e['data']:'','remove':'remove'==_0x4a9d7c?_0x41ed4e['data']:''});else{if(this['_schema']['isObject'](_0x41ed4e)){const _0x243451=_0x41ed4e;if(_0x244422&&_0x244422['type']['indexOf']('Container')>-0x1&&_0x4f9f31['pop'](),'elementEnd'==_0x45f4c4['type'])continue;_0x244422&&_0x244422['type']==_0x4a9d7c+'Object'&&_0x244422['element']['name']==_0x243451['name']?_0x244422['quantity']++:_0x4f9f31['push']({'type':_0x4a9d7c+'Object','element':_0x243451,'quantity':0x1}),_0x577b42['skip'](_0x4383d2=>!('elementEnd'==_0x4383d2['type']&&_0x4383d2['item']==_0x41ed4e));}else{if(this['_schema']['checkChild'](_0x41ed4e,'$text')||_0x41ed4e['is']('element','softBreak')){const _0x3039a9=_0x41ed4e;if('add'==_0x4a9d7c&&'elementStart'==_0x45f4c4['type']||'remove'==_0x4a9d7c&&'elementEnd'==_0x45f4c4['type'])continue;if(_0x244422&&-0x1==_0x244422['type']['indexOf']('Container')){'text'==_0x244422['type']&&(_0x244422[_0x4a9d7c]+='\x0a');continue;}let _0x28b198;if(_0x28b198='add'==_0x4a9d7c?_0x3039a9['nextSibling']&&!this['_schema']['isObject'](_0x3039a9['nextSibling'])?_0x3039a9['nextSibling']:null:_0x3039a9['previousSibling']&&!this['_schema']['isObject'](_0x3039a9['previousSibling'])?_0x3039a9['previousSibling']:null,_0x3039a9['isEmpty']||_0x28b198&&_0x28b198['isEmpty']){const _0x41b81f=_0x28b198&&_0x28b198['isEmpty']?_0x28b198:_0x3039a9;_0x244422&&_0x244422['type']==_0x4a9d7c+'EmptyContainer'&&_0x244422['element']['name']==_0x41b81f['name']?_0x244422['quantity']++:_0x4f9f31['push']({'type':_0x4a9d7c+'EmptyContainer','element':_0x41b81f,'quantity':0x1});}else _0x4f9f31['push']({'type':_0x4a9d7c+'Container','element':_0x3039a9});}}}}}['_resolveDescriptionItems'](_0x3cb75f){const _0x562480=this['_locale'],_0x441f57=[],_0x3b37a9=[],_0x2cc0e1=[];for(const _0x1ff373 of _0x3cb75f)switch(_0x1ff373['type']){case'text':if(_0x1ff373['add']=_0x1ff373['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1ff373['remove']=_0x1ff373['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1ff373['add']&&''!=_0x1ff373['remove']){_0x441f57['push']({'type':'replace','content':c(_0x562480,'REPLACE_TEXT',['\x22'+_0x1ff373['remove']+'\x22','\x22'+_0x1ff373['add']+'\x22'])});continue;}if(null!=_0x1ff373['add']['match'](/^ +$/)){_0x441f57['push']({'type':'insertion','content':c(_0x562480,'*Insert:*\x20%0',c(_0x562480,'ELEMENT_SPACE',_0x1ff373['add']['length']))});continue;}if(null!=_0x1ff373['remove']['match'](/^ +$/)){_0x441f57['push']({'type':'deletion','content':c(_0x562480,'*Remove:*\x20%0',c(_0x562480,'ELEMENT_SPACE',_0x1ff373['remove']['length']))});continue;}if(''!=_0x1ff373['add']){_0x441f57['push']({'type':'insertion','content':c(_0x562480,'*Insert:*\x20%0','\x22'+_0x1ff373['add']+'\x22')});continue;}_0x441f57['push']({'type':'deletion','content':c(_0x562480,'*Remove:*\x20%0','\x22'+_0x1ff373['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x441f57['push']({'type':'insertion','content':c(_0x562480,'*Insert:*\x20%0',this['getItemLabel'](_0x1ff373['element'],_0x1ff373['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x441f57['push']({'type':'deletion','content':c(_0x562480,'*Remove:*\x20%0',this['getItemLabel'](_0x1ff373['element'],_0x1ff373['quantity']))});continue;case'addContainer':_0x441f57['push']({'type':'insertion','content':c(_0x562480,'*Split:*\x20%0',this['getItemLabel'](_0x1ff373['element'],_0x1ff373['quantity']))});continue;case'removeContainer':_0x441f57['push']({'type':'deletion','content':c(_0x562480,'*Merge:*\x20%0',this['getItemLabel'](_0x1ff373['element'],_0x1ff373['quantity']))});continue;case'addFormat':_0x3b37a9['push'](_0x1ff373['key']);continue;case'removeFormat':_0x2cc0e1['push'](_0x1ff373['key']);continue;default:_0x441f57['push'](_0x1ff373);}if(_0x3b37a9['length']){const _0x2811e7=_0x3b37a9['map'](_0x31344d=>this['_attributeLabels']['has'](_0x31344d)?this['_attributeLabels']['get'](_0x31344d):_0x31344d)['join'](',\x20');_0x441f57['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x2811e7)});}if(_0x2cc0e1['length']){const _0x22638a=_0x2cc0e1['map'](_0x481dd6=>this['_attributeLabels']['has'](_0x481dd6)?this['_attributeLabels']['get'](_0x481dd6):_0x481dd6)['join'](',\x20');_0x441f57['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x22638a)});}return _0x441f57;}['_handleCustomCallbackDescription'](_0x41d320){for(const _0x1a442f of this['_customCallbacks']){const _0x4e5826=_0x1a442f(_0x41d320);if(_0x4e5826&&'type'in _0x4e5826)return _0x4e5826;}}['_handleAttributeSuggestionDescription'](_0x203d11,_0x46da5e){const _0x292e0f=_0x46da5e['data'],_0x39e252=void 0x0===_0x292e0f['newValue']?'removeFormat':'addFormat';_0x203d11['push']({'type':_0x39e252,'key':_0x292e0f['key']});}['_handleRenameSuggestionDescription'](_0x52ac68,_0x46c320){_0x52ac68['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x46c320['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1b9388,_0x2aa319,_0x17bb70){if(this['_addDescriptionItems'](_0x1b9388,_0x2aa319),_0x17bb70&&_0x17bb70['getFirstRange']()&&!_0x2aa319['getFirstRange']()['end']['isEqual'](_0x17bb70['getFirstRange']()['start'])){const _0x1e402d=_0x1b9388[_0x1b9388['length']-0x1],_0x88f82b='insertion'==_0x2aa319['type']?'add':'remove';_0x1e402d&&'text'==_0x1e402d['type']&&(_0x1e402d[_0x88f82b]+='\x0a');}}}class U extends _0x51821d{['afterInit'](){const _0x18bbb4=this['editor'],_0x2feede=_0x18bbb4['plugins']['get']('TrackChangesEditing');_0x18bbb4['commands']['get']('showAIAssistant')&&_0x2feede['enableCommand']('showAIAssistant');}}class V extends _0x51821d{['afterInit'](){const _0x2bcc00=this['editor'],_0x1a28ee=_0x2bcc00['locale'];if(!_0x2bcc00['plugins']['has']('AlignmentEditing'))return;const _0x23ba4d=_0x2bcc00['plugins']['get']('TrackChangesEditing');_0x23ba4d['enableDefaultAttributesIntegration']('alignment'),_0x23ba4d['registerBlockAttribute']('alignment'),_0x23ba4d['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x1a28ee,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2056f7=this['editor'],_0x748c56=_0x2056f7['locale'];_0x2056f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41bde8=>{if('formatBlock'!=_0x41bde8['type'])return;const {data:_0x61e7bb}=_0x41bde8;if(_0x61e7bb&&'alignment'==_0x61e7bb['commandName']){const _0x47765b=_0x61e7bb['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x748c56,'*Format:*\x20%0',function(_0x1a4c1b){switch(_0x1a4c1b){case'left':return c(_0x748c56,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x748c56,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x748c56,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x748c56,'FORMAT_JUSTIFY_TEXT');}}(_0x47765b))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x51821d{['afterInit'](){const _0x5d839c=this['editor'],_0x2c3654=_0x5d839c['plugins']['get']('TrackChangesEditing'),_0xb1f83e=_0x5d839c['locale'];for(const _0x28c3e7 of Zt){if(!_0x5d839c['plugins']['has'](_0x28c3e7))continue;const _0x5f560f=_0x28c3e7['slice'](0x0,-0x7)['toLowerCase'](),_0x4aa26c='FORMAT_'+_0x5f560f['toUpperCase']();_0x2c3654['enableDefaultAttributesIntegration'](_0x5f560f),_0x2c3654['registerInlineAttribute'](_0x5f560f),_0x2c3654['descriptionFactory']['registerAttributeLabel'](_0x5f560f,c(_0xb1f83e,_0x4aa26c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x474b5a=this['editor'],_0x54ac48=_0x474b5a['locale'],_0x292cad=_0x474b5a['plugins']['get']('TrackChangesEditing');function _0x1aa9d4(_0x54ed4d,_0x30d2a1){_0x292cad['descriptionFactory']['registerDescriptionCallback'](_0x344e35=>{if('formatInline'!=_0x344e35['type'])return;const {data:_0x1b0581}=_0x344e35;return _0x1b0581&&_0x1b0581['commandName']===_0x54ed4d?_0x1b0581['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x54ac48,'*Format:*\x20%0',_0x30d2a1)}:{'type':'format','content':c(_0x54ac48,'*Remove\x20format:*\x20%0',_0x30d2a1)}:void 0x0;});}_0x1aa9d4('bold',c(_0x54ac48,'FORMAT_BOLD')),_0x1aa9d4('italic',c(_0x54ac48,'FORMAT_ITALIC')),_0x1aa9d4('underline',c(_0x54ac48,'FORMAT_UNDERLINE')),_0x1aa9d4('code',c(_0x54ac48,'FORMAT_CODE')),_0x1aa9d4('strikethrough',c(_0x54ac48,'FORMAT_STRIKETHROUGH')),_0x1aa9d4('subscript',c(_0x54ac48,'FORMAT_SUBSCRIPT')),_0x1aa9d4('superscript',c(_0x54ac48,'FORMAT_SUPERSCRIPT'));}}class G extends _0x51821d{['afterInit'](){const _0x43abad=this['editor'],_0x55261c=_0x43abad['locale'];if(!_0x43abad['plugins']['has']('BlockQuoteEditing'))return;const _0x2e92dd=_0x43abad['plugins']['get']('TrackChangesEditing'),_0x455c7e=this['editor']['commands']['get']('blockQuote');_0x2e92dd['enableCommand']('blockQuote',(_0x478a90,_0x3b37a7={})=>{const _0xbe4a85=this['editor']['model']['document']['selection'],_0x500e7c=_0x3b37a7&&void 0x0!==_0x3b37a7['forceValue']?_0x3b37a7['forceValue']:!_0x455c7e['value'];let _0x1f9188=[];if(_0x500e7c){const _0x2765cf=Array['from'](_0xbe4a85['getSelectedBlocks']())['filter'](_0x5ac696=>oo(_0x5ac696)||function(_0x48a2c9,_0x430e16){const _0x57f4fa=_0x430e16['checkChild'](_0x48a2c9['parent'],'blockQuote'),_0x4f7542=_0x430e16['checkChild'](['$root','blockQuote'],_0x48a2c9);return _0x57f4fa&&_0x4f7542;}(_0x5ac696,this['editor']['model']['schema']));_0x1f9188=to(_0x2765cf,_0x43abad['model']);}else{const _0x52cf90=Array['from'](_0xbe4a85['getSelectedBlocks']())['filter'](_0x1f93e6=>oo(_0x1f93e6));_0x1f9188=to(_0x52cf90,_0x43abad['model']);}_0x43abad['model']['change'](()=>{for(const _0x144146 of _0x1f9188)_0x2e92dd['markBlockFormat'](_0x144146,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x500e7c}]});});}),_0x2e92dd['descriptionFactory']['registerDescriptionCallback'](_0x1669a0=>{const {data:_0x2bfc89}=_0x1669a0;if(_0x2bfc89&&'blockQuote'==_0x2bfc89['commandName']){const _0x76555b=c(_0x55261c,'ELEMENT_BLOCK_QUOTE');return _0x2bfc89['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x55261c,'*Set\x20format:*\x20%0',_0x76555b)}:{'type':'format','content':c(_0x55261c,'*Remove\x20format:*\x20%0',_0x76555b)};}});}}function oo(_0x1c85be){return'blockQuote'==_0x1c85be['parent']['name'];}class L extends _0x51821d{['afterInit'](){const _0x279c26=this['editor'],_0x301dc5=_0x279c26['locale'],_0x25c4fc=_0x279c26['plugins']['get']('TrackChangesEditing');_0x279c26['plugins']['has']('BookmarkEditing')&&(_0x25c4fc['enableCommand']('insertBookmark'),_0x25c4fc['enableDefaultAttributesIntegration']('updateBookmark'),_0x25c4fc['registerBlockAttribute']('bookmarkId'),_0x25c4fc['descriptionFactory']['registerDescriptionCallback'](_0x20e6d4=>{if('insertion'!=_0x20e6d4['type']&&'deletion'!=_0x20e6d4['type']&&'attribute'!=_0x20e6d4['type'])return;const _0x4846ea=_0x20e6d4['getContainedElement']();if(null==_0x4846ea)return;if(!_0x4846ea['is']('element','bookmark'))return;const _0xd8d0a3=_0x4846ea['getAttribute']('bookmarkId');if('insertion'==_0x20e6d4['type'])return{'type':'insertion','content':c(_0x301dc5,'*Insert:*\x20%0','\x22'+_0xd8d0a3+'\x22\x20'+c(_0x301dc5,'ELEMENT_BOOKMARK'))};if('deletion'==_0x20e6d4['type'])return{'type':'deletion','content':c(_0x301dc5,'*Remove:*\x20%0','\x22'+_0xd8d0a3+'\x22\x20'+c(_0x301dc5,'ELEMENT_BOOKMARK'))};const {data:_0x44d072}=_0x20e6d4;if(!_0x44d072||'bookmarkId'!=_0x44d072['key'])return;return{'type':'format','content':c(_0x301dc5,'*Set\x20bookmark:*\x20%0','\x22'+_0x44d072['newValue']+'\x22')};}));}}class J extends _0x51821d{['afterInit'](){const _0x5556d1=this['editor'];_0x5556d1['plugins']['has']('CaseChange')&&(_0x5556d1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5556d1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5556d1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x51821d{['afterInit'](){const _0x66f335=this['editor'];_0x66f335['commands']['get']('ckbox')&&_0x66f335['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x51821d{['afterInit'](){const _0x48f080=this['editor'];if(!_0x48f080['plugins']['has']('CodeBlock'))return;const _0x356f83=_0x48f080['plugins']['get']('TrackChangesEditing'),_0x59eb98=_0x48f080['locale'],_0x50310b=_0x48f080['config']['get']('codeBlock')['languages'],_0xfa1f7f=_0x48f080['commands']['get']('codeBlock');_0x356f83['enableCommand']('indentCodeBlock'),_0x356f83['enableCommand']('outdentCodeBlock'),_0x356f83['enableCommand']('codeBlock',(_0x10fb0a,_0xd1de1d={})=>{const _0x2d3396=_0x48f080['model'],_0x325462=_0x48f080['model']['document']['selection'],_0x4d5317=_0xd1de1d&&void 0x0!==_0xd1de1d['forceValue']?_0xd1de1d['forceValue']:!_0xfa1f7f['value'];let _0x22b5f6;_0xd1de1d['language']||(_0xd1de1d['language']=_0x50310b[0x0]['language']),_0x22b5f6=_0x4d5317?Array['from'](_0x325462['getSelectedBlocks']())['filter'](_0x46bf4d=>eo(_0x46bf4d)||function(_0x3abd10,_0x1baae0){if(_0x3abd10['is']('rootElement')||_0x1baae0['isLimit'](_0x3abd10))return!0x1;return _0x1baae0['checkChild'](_0x3abd10['parent'],'codeBlock');}(_0x46bf4d,_0x2d3396['schema'])):Array['from'](_0x325462['getSelectedBlocks']())['filter'](_0x24e3a4=>eo(_0x24e3a4));const _0x140f39=to(_0x22b5f6,_0x2d3396);_0x2d3396['change'](()=>{for(const _0x579c15 of _0x140f39)_0x356f83['markBlockFormat'](_0x579c15,{'commandName':'codeBlock','commandParams':[{..._0xd1de1d,'forceValue':_0x4d5317}],'formatGroupId':'blockName'});});}),(_0x356f83['descriptionFactory']['registerElementLabel']('codeBlock',_0x3262f9=>c(_0x59eb98,'ELEMENT_CODE_BLOCK',_0x3262f9)),_0x356f83['descriptionFactory']['registerDescriptionCallback'](_0x136c75=>{if('formatBlock'!=_0x136c75['type'])return;const _0x327ae2=_0x59eb98['t'],{data:_0xb1cec2}=_0x136c75;if(!_0xb1cec2||'codeBlock'!=_0xb1cec2['commandName'])return;const _0x3e19ec=_0xb1cec2['commandParams'][0x0]['language'],_0x366efd=_0x327ae2(_0x50310b['find'](_0x2aa9de=>_0x2aa9de['language']===_0x3e19ec)['label'])['toLowerCase']();return _0xb1cec2['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x59eb98,'*Set\x20format:*\x20%0',c(_0x59eb98,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x366efd+')')}:{'type':'format','content':c(_0x59eb98,'*Remove\x20format:*\x20%0',c(_0x59eb98,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x17f295){return'codeBlock'==_0x17f295['name'];}class q extends _0x51821d{['afterInit'](){const _0x5edcdb=this['editor'];if(!_0x5edcdb['plugins']['has']('CommentsEditing'))return;_0x5edcdb['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x42bf66,_0x176ad7,_0x1f7dfe){const _0x29a8c9=[];for(const _0x4a7a71 of _0x176ad7['getItems']())_0x4a7a71['hasAttribute'](_0x42bf66)&&_0x29a8c9['push'](_0x1f7dfe['createRangeOn'](_0x4a7a71));return _0x29a8c9;}function Fe(_0x4f9de9,_0x341a30,{showActiveMarker:_0x5132ef=!0x0}={}){const _0x18036d=_0x4f9de9['plugins']['get']('TrackChangesEditing');return(_0xa280a4,_0x3febc7,_0x4a1b77)=>{if(!_0x4a1b77['consumable']['test'](_0x3febc7['markerRange'],_0xa280a4['name']))return;const _0x339a93=_0x3febc7['markerRange']['getWalker'](),_0x4cbfe8=_0x3febc7['markerRange']['start'],_0x63dac1=_0x4f9de9['model']['schema'];let _0x17eb88=null,_0x492bb7=null,_0x5d12a5=!0x1,_0x82e41e=!0x1;for(const _0x2415c6 of _0x339a93){const _0x17fb40=_0x2415c6['item'];_0x5d12a5=_0x5d12a5||_0x63dac1['isContent'](_0x17fb40);const _0x355db4=_0x4a1b77['mapper']['toViewElement'](_0x17fb40);if(_0x355db4&&_0x355db4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2415c6['type']&&(_0x63dac1['isBlock'](_0x17fb40)&&!_0x63dac1['isLimit'](_0x17fb40)&&(_0x17fb40['nextSibling']||_0x4cbfe8['isAtEnd']?_0x17eb88&&_0x17eb88['parent']==_0x17fb40||(_0x17eb88=_0x17fb40,_0x48384a(_0x2415c6['previousPosition']),_0x82e41e=!0x0):_0x492bb7=_0x492bb7||_0x2415c6['previousPosition']));}function _0x48384a(_0xf82362){const {authorId:_0x1aa29c}=_0x18036d['_splitMarkerName'](_0x3febc7['markerName']),_0x47830f=_0x4a1b77['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x341a30,'data-author-id':_0x1aa29c}),_0x122e94=_0x4a1b77['mapper']['toViewPosition'](_0xf82362);_0x5132ef&&_0x18036d['activeMarkers']['includes'](_0x3febc7['markerName'])&&_0x4a1b77['writer']['addClass']('ck-suggestion-marker--active',_0x47830f),_0x4a1b77['writer']['insert'](_0x122e94,_0x47830f),_0x4a1b77['mapper']['bindElementToMarker'](_0x47830f,_0x3febc7['markerName']);}_0x5d12a5||_0x82e41e||!_0x492bb7||_0x48384a(_0x492bb7);};}class z extends _0x51821d{static get['requires'](){return[_0x34e06b];}['init'](){const _0x53ab0e=this['editor'],_0x523752=_0x53ab0e['plugins']['get']('TrackChangesEditing');_0x523752['enableCommand']('delete');const _0x3c9d19=_0x53ab0e['commands']['get']('deleteForward');_0x523752['enableCommand']('deleteForward',(_0x3f4750,_0x581a47={})=>{const _0xaade45=_0x53ab0e['model']['createSelection'](_0x53ab0e['model']['document']['selection']);_0xaade45['isCollapsed']&&_0x53ab0e['model']['modifySelection'](_0xaade45,{'direction':'forward','unit':_0x581a47['unit']});const _0x135bfb=_0xaade45['getFirstRange'](),_0x39f2d4=_0x32c262['fromRange'](_0x135bfb);let _0x4c5950;_0x3f4750(_0x581a47),_0x4c5950='$graveyard'==_0x39f2d4['root']['rootName']?_0x53ab0e['model']['createRange'](_0x135bfb['start']):_0x53ab0e['model']['createRange'](_0x39f2d4['start'],_0x39f2d4['end']),_0x39f2d4['detach'](),_0x53ab0e['model']['enqueueChange'](_0x3c9d19['buffer']['batch'],_0xb96a51=>{_0x3c9d19['buffer']['lock'](),_0xb96a51['setSelection'](_0xb96a51['createRange'](_0x4c5950['end'])),_0x3c9d19['buffer']['unlock']();});}),_0x53ab0e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x53ab0e,'merge'),{'priority':'high'}),_0x53ab0e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4f9f76,_0x372ed8,_0x6bdb0c)=>{_0x6bdb0c['options']['showSuggestionHighlights']&&Fe(_0x53ab0e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4f9f76,_0x372ed8,_0x6bdb0c);},{'priority':'high'}),_0x53ab0e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5e446f,_0x3e2246,_0x1432a5)=>{const _0x1626af=_0x1432a5['mapper']['markerNameToElements'](_0x3e2246['markerName']);if(_0x1626af){for(const _0x4a4fdf of _0x1626af)_0x4a4fdf['is']('uiElement')&&(_0x1432a5['mapper']['unbindElementFromMarkerName'](_0x4a4fdf,_0x3e2246['markerName']),_0x1432a5['writer']['remove'](_0x4a4fdf));}},{'priority':'high'});}}class W extends _0x51821d{['afterInit'](){const _0x165870=this['editor'];if(!_0x165870['plugins']['has']('ListEditing'))return;const _0x1c4972=_0x165870['locale'],_0x225804=_0x165870['plugins']['get']('TrackChangesEditing'),_0x2ac509=_0x165870['plugins']['has']('TodoListEditing'),_0x2e0bdc=!!_0x165870['config']['get']('list.multiBlock');function _0x543324(_0x2268a5){return{'type':'format','content':''+c(_0x1c4972,'*Set\x20format:*\x20%0',_0x2268a5)};}function _0x169950(_0x4d17d9){return{'type':'format','content':''+c(_0x1c4972,'*Remove\x20format:*\x20%0',_0x4d17d9)};}_0x225804['enableDefaultAttributesIntegration']('numberedList'),_0x225804['enableDefaultAttributesIntegration']('bulletedList'),_0x225804['enableDefaultAttributesIntegration']('customNumberedList'),_0x225804['enableDefaultAttributesIntegration']('customBulletedList'),_0x225804['enableDefaultAttributesIntegration']('indentList'),_0x225804['enableDefaultAttributesIntegration']('outdentList'),_0x225804['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x225804['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x225804['registerBlockAttribute']('listItemId'),_0x225804['registerBlockAttribute']('listType'),_0x225804['registerBlockAttribute']('listIndent'),_0x2e0bdc&&(_0x225804['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x225804['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2ac509&&(_0x225804['enableDefaultAttributesIntegration']('todoList'),_0x225804['enableDefaultAttributesIntegration']('checkTodoList'),_0x225804['registerBlockAttribute']('todoListChecked'),_0x225804['descriptionFactory']['registerDescriptionCallback'](_0x18dbd0=>{const {data:_0x5b0d89}=_0x18dbd0;if(_0x5b0d89&&'todoListChecked'==_0x5b0d89['key'])return{'type':'format','content':_0x5b0d89['newValue']?c(_0x1c4972,'*Check\x20item*'):c(_0x1c4972,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xb2693d=>{if(_0xb2693d['batch']['isUndo'])return!0x1;let _0xcf6721=!0x1;const _0x40cf43=_0x225804['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x35fc1b=>'todoListChecked'===_0x225804['_getAttributeKey'](_0x35fc1b));for(const _0x228789 of _0x40cf43){'todo'!=_0x228789['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x225804['_findSuggestions'](_0x228789['getFirstRange'](),'attribute')['find'](_0x3227a6=>'listType'===_0x225804['_getAttributeKey'](_0x3227a6['suggestion']))||(_0xb2693d['removeMarker'](_0x228789['getFirstMarker']()),_0xcf6721=!0x0));}return _0xcf6721;})),_0x225804['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x1c4972,'FORMAT_INDENT'));const _0x37576f={'type':'format','content':''};_0x225804['descriptionFactory']['registerDescriptionCallback'](_0x35021b=>{const {data:_0x3fed3e}=_0x35021b;if(!_0x3fed3e||'listType'!=_0x3fed3e['key'])return;let _0x7a0d89=_0x35021b['head'];for(;_0x7a0d89;){if(_0x7a0d89['data']&&(('listStyle'==_0x7a0d89['data']['key']||'listMarkerStyle'==_0x7a0d89['data']['key'])&&(_0x7a0d89['data']['newValue']&&'default'!=_0x7a0d89['data']['newValue']||'default'!=_0x7a0d89['data']['oldValue']&&!_0x3fed3e['newValue'])||!_0x2e0bdc&&_0x7a0d89['data']['key']==u))return _0x37576f;_0x7a0d89=_0x7a0d89['next'];}if(null==_0x3fed3e['newValue'])switch(_0x3fed3e['oldValue']){case'bulleted':return _0x169950(c(_0x1c4972,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x169950(c(_0x1c4972,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x169950(c(_0x1c4972,'ELEMENT_TODO_LIST'));}switch(_0x3fed3e['newValue']){case'bulleted':return _0x543324(c(_0x1c4972,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x543324(c(_0x1c4972,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x543324(c(_0x1c4972,'ELEMENT_TODO_LIST'));}}),_0x225804['descriptionFactory']['registerDescriptionCallback'](_0x534736=>{const {data:_0x3c2f49}=_0x534736;if(_0x3c2f49&&'listIndent'==_0x3c2f49['key'])return null==_0x3c2f49['newValue']||null==_0x3c2f49['oldValue']&&0x0==_0x3c2f49['newValue']?_0x37576f:void 0x0;}),_0x225804['descriptionFactory']['registerDescriptionCallback'](_0x5c86a4=>{if('attribute'!=_0x5c86a4['type'])return;const {data:_0x49f048}=_0x5c86a4;if(!_0x49f048||'listItemId'!=_0x49f048['key'])return;const _0xd867f3=Te(_0x5c86a4);return'newValue'==_0xd867f3?{'type':'format','content':c(_0x1c4972,'*Merge:*\x20list\x20item')}:'oldValue'==_0xd867f3?{'type':'format','content':c(_0x1c4972,'*Split:*\x20list\x20item')}:_0x37576f;}),_0x165870['model']['document']['registerPostFixer'](_0x17cb46=>this['listItemIdFixer'](_0x17cb46)),_0x165870['model']['document']['registerPostFixer'](_0x3d78bd=>this['noTrackChangesFixer'](_0x3d78bd)),_0x165870['model']['document']['on']('change:data',(_0x1fa9e6,_0x1888e1)=>{if(_0x1888e1['isUndo']||!_0x1888e1['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x249cee){if(_0x249cee['batch']['isUndo']||!_0x249cee['batch']['isLocal'])return!0x1;let _0x11f472=!0x1;const _0x1464a6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ffed7=>_0x4ffed7['data']&&'listItemId'==_0x4ffed7['data']['key'])['filter'](_0x194052=>_0x194052['data']['newValue']&&_0x194052['data']['oldValue']);for(const _0x1c3c1b of _0x1464a6)Te(_0x1c3c1b)||(_0x249cee['removeMarker'](_0x1c3c1b['getFirstMarker']()),_0x11f472=!0x0);return _0x11f472;}['noTrackChangesFixer'](_0x178d2c){if(_0x178d2c['batch']['isUndo']||!_0x178d2c['batch']['isLocal'])return!0x1;const _0x173b9b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x173b9b['trackChangesCommand']['value'])return!0x1;let _0x46c202=!0x1;const _0x1e5ba5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5f0d0c=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3a8009=>'attribute'==_0x3a8009['type'])['filter'](_0x5386d3=>_0x1e5ba5['includes'](_0x5386d3['attributeKey']));if(0x0==_0x5f0d0c['length'])return _0x46c202;for(const _0x42e473 of _0x5f0d0c){const _0x1f0af3=_0x173b9b['_findSuggestions'](_0x42e473['range'],'attribute')['filter'](_0x3b6f1a=>!_0x3b6f1a['meta']['isNextTo'])['map'](_0x187535=>_0x187535['suggestion'])['filter'](_0x412ce5=>{const _0x336f45=_0x173b9b['_getAttributeKey'](_0x412ce5);return _0x1e5ba5['includes'](_0x336f45);});if(_0x1f0af3['length']){for(const _0x1c01b9 of _0x1f0af3)_0x178d2c['removeMarker'](_0x1c01b9['getFirstMarker']());_0x46c202=!0x0;}}return _0x46c202;}['assureChains'](){const _0xb6a9bf=this['editor']['plugins']['get']('TrackChangesEditing'),_0xdbc55e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x46fbe7;const _0x54888c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2c1b4b=>{if(_0x2c1b4b['data']['oldRange']||!_0x2c1b4b['data']['newRange'])return null;if(!_0x2c1b4b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3251ff}=_0xb6a9bf['_splitMarkerName'](_0x2c1b4b['name']);if(!_0xb6a9bf['hasSuggestion'](_0x3251ff))return null;const _0x19a463=_0xb6a9bf['getSuggestion'](_0x3251ff);return _0xdbc55e['includes'](_0x19a463['data']['key']);})['map'](_0x542e8d=>{const {id:_0x398b5f}=_0xb6a9bf['_splitMarkerName'](_0x542e8d['name']),_0x596479=_0xb6a9bf['getSuggestion'](_0x398b5f);return _0x46fbe7=_0x596479['attributes']['groupId'],_0x596479['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x54888c['size'])return;const _0x5c6fc3=_0xb6a9bf['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x99ea8=>'attribute'==_0x99ea8['type']&&_0x99ea8['data']&&_0xdbc55e['includes'](_0x99ea8['data']['key'])&&_0x99ea8['attributes']['groupId']!=_0x46fbe7)['map'](_0x259279=>({'listItem':_0x259279['getFirstRange']()['start']['nodeAfter'],'groupId':_0x259279['attributes']['groupId']})),_0x4756d6=new Set();for(const {groupId:_0x2dd2ce,listItem:_0xb5e578}of _0x5c6fc3)_0x54888c['has'](_0xb5e578)&&_0x4756d6['add'](_0x2dd2ce);for(const _0x40dc0d of _0xb6a9bf['getSuggestions']())_0x4756d6['has'](_0x40dc0d['attributes']['groupId'])&&_0x40dc0d['setAttribute']('groupId',_0x46fbe7);}['_supportLegacySuggestions'](){const _0x4323d4=this['editor'],_0x79a36f=_0x4323d4['locale'],_0x41d617=_0x4323d4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x41d617['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x252402,_0x35b59f){const _0x59d9d4=[];for(let _0xe7d44f of _0x252402)_0xe7d44f['start']['nodeAfter']===_0xe7d44f['end']['parent']&&(_0xe7d44f=_0x4323d4['model']['createRange'](_0x4323d4['model']['createPositionAt'](_0xe7d44f['start']['nodeAfter'],0x0))),_0x59d9d4['push'](_0xe7d44f);_0x4323d4['model']['change'](_0x367a78=>{const _0x5b79d6=_0x4323d4['model']['document']['selection'],_0x55cf60=Array['from'](_0x5b79d6['getRanges']())['map'](_0xab2c92=>_0x32c262['fromRange'](_0xab2c92));_0x367a78['setSelection'](_0x59d9d4),_0x4323d4['commands']['get'](_0x35b59f['commandName'])['refresh'](),_0x35b59f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4323d4['execute'](_0x35b59f['commandName'],..._0x35b59f['commandParams']),_0x367a78['setSelection'](_0x55cf60);for(const _0x4b4c66 of _0x55cf60)_0x4b4c66['detach']();});}),_0x41d617['descriptionFactory']['registerElementLabel'](function(_0x1edf8d){const _0x2f2532=!_0x4323d4['model']['schema']['isObject'](_0x1edf8d),_0xac8764=_0x1edf8d['previousSibling'],_0xdeb344=_0x1edf8d['nextSibling'],_0x55784a=_0x1edf8d['getAttribute']('listItemId'),_0x1c5bc6=!_0xac8764||_0xac8764['getAttribute']('listItemId')!==_0x55784a,_0x25f729=!_0xdeb344||_0xdeb344['getAttribute']('listItemId')!==_0x55784a;return _0x2f2532&&Boolean(_0x55784a)&&_0x1c5bc6&&_0x25f729;},_0x4031af=>c(_0x79a36f,'ELEMENT_LIST_ITEM',_0x4031af));}['_registerLegacyDescription'](){const _0x53b8dc=this['editor'],_0x14d2f5=_0x53b8dc['locale'];function _0x3155ff(_0x3f3053){const _0x3dda10=_0x53b8dc['commands']['get']('bulletedList')['value'],_0x645dc2=_0x53b8dc['commands']['get']('numberedList')['value'];return'numberedList'===_0x3f3053?_0x3dda10:_0x645dc2;}_0x53b8dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x25acfe){if('formatBlock'!=_0x25acfe['type'])return;const {data:_0x5395cc}=_0x25acfe;if(!_0x5395cc)return;let _0x2db957,_0x152947,_0x5f5dd8,_0x367cdb;switch(_0x5395cc['commandName']){case'bulletedList':_0x5f5dd8=_0x5395cc['commandParams'][0x0]['forceValue'],_0x367cdb=_0x3155ff(_0x5395cc['commandName']),_0x2db957=_0x5f5dd8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x367cdb&&_0x53b8dc['config']['get']('list.multiBlock')||(_0x2db957='*Change\x20to:*\x20%0'),_0x152947={'type':'format','content':c(_0x14d2f5,_0x2db957,c(_0x14d2f5,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5f5dd8=_0x5395cc['commandParams'][0x0]['forceValue'],_0x367cdb=_0x3155ff(_0x5395cc['commandName']),_0x2db957=_0x5f5dd8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x367cdb&&_0x53b8dc['config']['get']('list.multiBlock')||(_0x2db957='*Change\x20to:*\x20%0'),_0x152947={'type':'format','content':c(_0x14d2f5,_0x2db957,c(_0x14d2f5,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2db957='*Indent:*\x20%0',_0x152947={'type':'format','content':c(_0x14d2f5,_0x2db957,c(_0x14d2f5,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2db957=function(_0x461996){const _0x3f8c4e=_0x461996['getFirstRange']();let _0x44a0f2=_0x3f8c4e['start']['nodeAfter'];for(;_0x44a0f2&&_0x3f8c4e['containsItem'](_0x44a0f2);){if(_0x44a0f2['getAttribute']('listIndent')>0x0)return!0x1;_0x44a0f2=_0x44a0f2['nextSibling'];}return!0x0;}(_0x25acfe)?c(_0x14d2f5,'*Format:*\x20remove\x20from\x20%0',c(_0x14d2f5,function(_0x275c07){return'ELEMENT_'+_0x275c07['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x25acfe))):c(_0x14d2f5,'*Outdent:*\x20%0',c(_0x14d2f5,'ELEMENT_LIST_ITEM')),_0x152947={'type':'format','content':_0x2db957};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5395cc['multipleBlocks']&&(_0x2db957='*Merge:*\x20%0',_0x152947={'type':'deletion','content':c(_0x14d2f5,_0x2db957,c(_0x14d2f5,'ELEMENT_LIST_ITEM'))});}return _0x152947;});}}function Te(_0x59ed32){let _0x434e87=_0x59ed32['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x434e87;){const _0x28c2a8=_0x434e87['getAttribute']('listItemId');if(!_0x28c2a8)return!0x1;if(_0x28c2a8==_0x59ed32['data']['newValue'])return'newValue';if(_0x28c2a8==_0x59ed32['data']['oldValue'])return'oldValue';_0x434e87=_0x434e87['previousSibling'];}return!0x1;}class Se extends _0x51821d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x12af69=this['editor']['config']['get']('list.properties'),_0x28ac8f=this['editor']['plugins']['get']('TrackChangesEditing');_0x12af69['styles']&&(_0x28ac8f['enableDefaultAttributesIntegration']('listStyle'),_0x28ac8f['registerBlockAttribute']('listStyle')),_0x12af69['reversed']&&(_0x28ac8f['enableDefaultAttributesIntegration']('listReversed'),_0x28ac8f['registerBlockAttribute']('listReversed')),_0x12af69['startIndex']&&(_0x28ac8f['enableDefaultAttributesIntegration']('listStart'),_0x28ac8f['registerBlockAttribute']('listStart'));const _0x30de1c={'type':'format','content':''};_0x28ac8f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x340ef7=this['editor']['locale'];_0x28ac8f['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x340ef7,'FORMAT_LIST_REVERSED')),_0x28ac8f['descriptionFactory']['registerDescriptionCallback'](_0x84fc08=>{const {data:_0x37db4b}=_0x84fc08;if(_0x37db4b&&'listReversed'==_0x37db4b['key'])return null==_0x37db4b['newValue']||0x0==_0x37db4b['newValue']&&null==_0x37db4b['oldValue']?_0x30de1c:void 0x0;}),_0x28ac8f['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x340ef7,'FORMAT_LIST_START')),_0x28ac8f['descriptionFactory']['registerDescriptionCallback'](_0x189803=>{const {data:_0x304609}=_0x189803;if(_0x304609&&'listStart'==_0x304609['key'])return null==_0x304609['newValue']||0x1==_0x304609['newValue']&&null==_0x304609['oldValue']?_0x30de1c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1febc8=>{if(_0x1febc8['batch']['isUndo'])return!0x1;let _0x30d147=!0x1;const _0x186d19=_0x28ac8f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49a645=>{const _0x428dc5=_0x28ac8f['_getAttributeKey'](_0x49a645);return'listStart'==_0x428dc5||'listReversed'==_0x428dc5;});for(const _0x5c8a26 of _0x186d19){const _0x166f27=_0x5c8a26['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x166f27||'customNumbered'==_0x166f27)continue;_0x28ac8f['_findSuggestions'](_0x5c8a26['getFirstRange'](),'attribute')['find'](_0x5d0ec3=>'listType'==_0x28ac8f['_getAttributeKey'](_0x5d0ec3['suggestion']))||(_0x1febc8['removeMarker'](_0x5c8a26['getFirstMarker']()),_0x30d147=!0x0);}return _0x30d147;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x13d29b){const _0x4e527f=this['editor']['locale'],{data:_0x1a0883}=_0x13d29b,_0x2001d2={'type':'format','content':''};if(!_0x1a0883||'listStyle'!=_0x1a0883['key'])return;if(!_0x1a0883['oldValue'])return'default'==_0x1a0883['newValue']?_0x2001d2:{'type':'format','content':''+c(_0x4e527f,'*Set\x20format:*\x20%0',c(_0x4e527f,this['_getTranslationKeyForListStyle'](_0x1a0883['newValue'])))};if(!_0x1a0883['newValue']){if('default'==_0x1a0883['oldValue'])return _0x2001d2;let _0x3faf00=_0x13d29b['head'];for(;_0x3faf00;){if(_0x3faf00['data']&&'listType'==_0x3faf00['data']['key']&&_0x3faf00['data']['newValue'])return _0x2001d2;_0x3faf00=_0x3faf00['next'];}return{'type':'format','content':''+c(_0x4e527f,'*Remove\x20format:*\x20%0',c(_0x4e527f,this['_getTranslationKeyForListStyle'](_0x1a0883['oldValue'])))};}if('default'!=_0x1a0883['newValue'])return{'type':'format','content':''+c(_0x4e527f,'*Set\x20format:*\x20%0',c(_0x4e527f,this['_getTranslationKeyForListStyle'](_0x1a0883['newValue'])))};let _0x20bf1d=_0x13d29b['head'];for(;_0x20bf1d;){if(_0x20bf1d['data']&&'listType'==_0x20bf1d['data']['key']&&_0x20bf1d['data']['newValue']&&_0x20bf1d['data']['oldValue'])return _0x2001d2;_0x20bf1d=_0x20bf1d['next'];}return{'type':'format','content':c(_0x4e527f,'*Set\x20format:*\x20%0',c(_0x4e527f,'ELEMENT_'+_0x13d29b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1a814c=this['editor'],_0x3be880=_0x1a814c['locale'];_0x1a814c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ea2e2=>{if('formatBlock'!=_0x5ea2e2['type'])return;const {data:_0x1aacef}=_0x5ea2e2;if(!_0x1aacef)return;let _0x226bf0,_0xd914;switch(_0x1aacef['commandName']){case'listStyle':_0x226bf0='*Change\x20to:*\x20%0',_0xd914={'type':'format','content':c(_0x3be880,_0x226bf0,c(_0x3be880,this['_getTranslationKeyForListStyle'](_0x1aacef['commandParams'][0x0]['type'])))};break;case'listReversed':_0x226bf0=_0x1aacef['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xd914={'type':'format','content':c(_0x3be880,_0x226bf0)};break;case'listStart':_0x226bf0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xd914={'type':'format','content':c(_0x3be880,_0x226bf0,_0x1aacef['commandParams'][0x0]['startIndex'])};}return _0xd914;});}['_getTranslationKeyForListStyle'](_0x4d382c){return'ELEMENT_'+function(_0x32e6b4){if(_e['includes'](_0x32e6b4))return'bulleted';if(Re['includes'](_0x32e6b4))return'numbered';return null;}(_0x4d382c)['toUpperCase']()+'_LIST_'+_0x4d382c['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x51821d{['afterInit'](){const _0x2c8191=this['editor'];_0x2c8191['commands']['get']('emoji')&&_0x2c8191['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x51821d{static get['requires'](){return[_0x40723b];}['init'](){const _0x37a277=this['editor'],_0x20a417=_0x37a277['plugins']['get']('TrackChangesEditing'),_0x1128c1=_0x37a277['commands']['get']('enter');_0x20a417['enableCommand']('enter',()=>{_0x37a277['model']['change'](_0x4814d1=>{const _0x5e55f8=_0x37a277['model']['document']['selection'],_0x1a023d=_0x5e55f8['getFirstPosition'](),_0x4732f4=_0x32c262['fromRange'](_0x5e55f8['getFirstRange']());if(_0x1128c1['enterBlock'](_0x4814d1)){const _0x114d0b=_0x37a277['model']['createPositionAt'](_0x1a023d['parent']['nextSibling'],0x0),_0x5e3709=_0x4814d1['createRange'](_0x1a023d,_0x114d0b);_0x20a417['markInsertion'](_0x5e3709);}else _0x4814d1['setSelection'](_0x4814d1['createRange'](_0x4732f4['end']));_0x4732f4['detach'](),_0x1128c1['fire']('afterExecute',{'writer':_0x4814d1});});}),_0x37a277['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x37a277,'split'),{'priority':'high'}),_0x37a277['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2bf7c8,_0x3e1235,_0xad073f)=>{const _0x53d74c=_0xad073f['mapper']['markerNameToElements'](_0x3e1235['markerName']);if(_0x53d74c){for(const _0x5becf3 of _0x53d74c)_0x5becf3['hasClass']('ck-suggestion-marker-split')&&(_0xad073f['mapper']['unbindElementFromMarkerName'](_0x5becf3,_0x3e1235['markerName']),_0xad073f['writer']['remove'](_0x5becf3));}},{'priority':'high'}),_0x37a277['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x8beb3f,_0x1acab4,_0x49dea6)=>{_0x49dea6['options']['showSuggestionHighlights']&&Fe(_0x37a277,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x8beb3f,_0x1acab4,_0x49dea6);},{'priority':'high'});}}class Z extends _0x51821d{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x567466=this['editor']['plugins']['get']('TrackChangesEditing');_0x567466['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x567466['enableCommand']('findNext'),_0x567466['enableCommand']('findPrevious'),_0x567466['enableCommand']('replace'),_0x567466['enableCommand']('replaceAll');}['handleFindCommand'](_0xfde7b3,_0x575afd,_0x202656={}){const _0x2360c4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xfde7b3(_0x1d1e80=>{let _0x46099e=('string'==typeof _0x575afd?_0x2360c4['findByTextCallback'](_0x575afd,_0x202656):_0x575afd)(_0x1d1e80);Array['isArray'](_0x46099e)&&(_0x46099e={'results':_0x46099e,'searchText':'string'==typeof _0x575afd?_0x575afd:''});const _0x147a81=_0x46099e['results']['filter'](_0x5ec82d=>!0x1===this['_isInDeletionRange'](_0x5ec82d,_0x1d1e80['item']));return{..._0x46099e,'results':_0x147a81};},_0x202656);}['_isInDeletionRange'](_0x2d5fd5,_0xba2031){const _0x5edecc=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xba2031,_0x2d5fd5['start']),this['editor']['model']['createPositionAt'](_0xba2031,_0x2d5fd5['end']));for(const _0xfb82be of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5edecc['getIntersection'](_0xfb82be['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 _0x51821d{['afterInit'](){const _0x6a444e=this['editor']['locale'],_0x3126fb=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x16d53d,commandName:_0x15dc0c}of ro)this['editor']['plugins']['has'](_0x16d53d)&&(_0x3126fb['enableDefaultAttributesIntegration'](_0x15dc0c),_0x3126fb['registerInlineAttribute'](_0x15dc0c));_0x3126fb['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x6a444e,'FORMAT_FONT_SIZE')),_0x3126fb['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x6a444e,'FORMAT_FONT_FAMILY')),_0x3126fb['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x6a444e,'FORMAT_FONT_COLOR')),_0x3126fb['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x6a444e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x419d68=this['editor'],_0x476b62=_0x419d68['locale'];_0x419d68['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47396c=>{const _0x50f22f=_0x476b62['t'];if('formatInline'!=_0x47396c['type'])return;const {data:_0x8c6478}=_0x47396c;if(null!=_0x8c6478){if('fontSize'==_0x8c6478['commandName']){const _0x421dc8=_0x8c6478['commandParams'][0x0]['value'];if(_0x421dc8){const _0x2a85ff=_0x50f22f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x325c46=>_0x325c46['model']==_0x421dc8)['title'])['toLowerCase']();return{'type':'format','content':c(_0x476b62,'*Set\x20font\x20size:*\x20%0',_0x2a85ff)};}return{'type':'format','content':c(_0x476b62,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x8c6478['commandName']){const _0x86878e=_0x8c6478['commandParams'][0x0]['value'];return _0x86878e?{'type':'format','content':c(_0x476b62,'*Set\x20font\x20family:*\x20%0',_0x86878e)}:{'type':'format','content':c(_0x476b62,'*Reset\x20font\x20family*')};}if('fontColor'==_0x8c6478['commandName']){const _0x547670=_0x8c6478['commandParams'][0x0]['value'];if(_0x547670){const _0x37c09f=_0x74db61(this['editor']['config']['get']('fontColor.colors'))['find'](_0x263c53=>_0x263c53['model']==_0x547670);let _0xb5cbd5=_0x547670,_0x484f83='';return _0x37c09f&&(_0xb5cbd5=_0x37c09f['label'],_0x484f83=_0x50f22f(_0xb5cbd5)['toLowerCase']()),{'type':'format','content':c(_0x476b62,'*Set\x20font\x20color:*\x20%0',_0x484f83)['trim'](),'color':{'value':_0x547670,'title':_0x484f83||_0xb5cbd5}};}return{'type':'format','content':c(_0x476b62,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x8c6478['commandName']){const _0x578d5e=_0x8c6478['commandParams'][0x0]['value'];if(_0x578d5e){const _0x55aac2=_0x74db61(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4a35a5=>_0x4a35a5['model']==_0x578d5e);let _0x29486b=_0x578d5e,_0x44474c='';return _0x55aac2&&(_0x29486b=_0x55aac2['label'],_0x44474c=_0x50f22f(_0x29486b)['toLowerCase']()),{'type':'format','content':c(_0x476b62,'*Set\x20font\x20background\x20color:*\x20%0',_0x44474c)['trim'](),'color':{'value':_0x578d5e,'title':_0x44474c||_0x29486b}};}return{'type':'format','content':c(_0x476b62,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x51821d{['afterInit'](){const _0x206d13=this['editor'],_0x486224=_0x206d13['plugins']['get']('TrackChangesEditing'),_0x43dad2=_0x206d13['commands']['get']('copyFormat'),_0x125a12=_0x206d13['commands']['get']('pasteFormat');_0x43dad2&&_0x125a12&&(_0x486224['enableDefaultAttributesIntegration']('pasteFormat'),_0x486224['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xbbb23c=this['editor'],_0x4c090e=_0xbbb23c['locale'];_0xbbb23c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x374de6=>{if('formatBlock'!=_0x374de6['type']&&'formatInline'!=_0x374de6['type'])return;const {data:_0x4b130e}=_0x374de6;if(_0x4b130e&&'pasteFormat'===_0x4b130e['commandName']){const _0x3e1955=[],_0x1863e9=_0x4b130e['commandParams'][0x0];for(const [_0xdd96cd,_0x1cf4e8]of Object['entries'](_0x1863e9))_0x3e1955['push'](so(_0xbbb23c,_0xdd96cd,_0x1cf4e8));return _0x3e1955['length']?{'type':'format','content':c(_0x4c090e,'*Set\x20format\x20to:*\x20%0',_0x3e1955['join'](',\x20'))}:{'type':'format','content':c(_0x4c090e,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4dbbcf,_0x2c4a57,_0x4e2988){const _0x15e4dc=_0x4dbbcf['locale']['t'],_0xbee900=_0x2c4a57['split'](/(?=[A-Z])/)['join']('\x20'),_0x189046=_0x15e4dc(_0xbee900['charAt'](0x0)['toUpperCase']()+_0xbee900['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4e2988)return _0x189046;if('fontColor'===_0x2c4a57||'fontBackgroundColor'===_0x2c4a57){const _0x46a4ee=_0x74db61(_0x4dbbcf['config']['get']('fontColor.colors'))['find'](_0x2f0d55=>_0x2f0d55['model']==_0x4e2988);return _0x189046+'\x20('+(_0x46a4ee?_0x15e4dc(_0x46a4ee['label'])['toLowerCase']():_0x4e2988)+')';}if('fontSize'===_0x2c4a57&&isNaN(parseFloat(_0x4e2988))){const _0x167500=_0x4dbbcf['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4dbbcf['config']['get']('fontSize.options'))['find'](_0x375660=>_0x375660['model']==_0x4e2988);return _0x189046+'\x20('+(_0x167500?_0x15e4dc(_0x167500['title'])['toLowerCase']():_0x4e2988)+')';}return _0x189046+'\x20('+_0x4e2988+')';}class nt extends _0x51821d{['_headingOptions'];['afterInit'](){const _0x2e07f0=this['editor'];if(!_0x2e07f0['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2e07f0['config']['get']('heading.options');const _0x3f96d1=_0x2e07f0['locale'],_0xecd926=_0x2e07f0['plugins']['get']('TrackChangesEditing');_0xecd926['enableDefaultAttributesIntegration']('heading');for(const _0x221bff of this['_headingOptions'])'paragraph'!=_0x221bff['model']&&_0xecd926['descriptionFactory']['registerElementLabel'](_0x221bff['model'],_0x291870=>{const _0x4252d0=this['_getHeadingLevel'](_0x221bff['model']);return null!==_0x4252d0?_0x101908(_0x291870,_0x4252d0):_0x3ec5f5(_0x291870,_0x221bff['title']);});function _0x101908(_0x599502,_0x4b9f69){return c(_0x3f96d1,'ELEMENT_HEADING',[_0x599502,_0x4b9f69]);}function _0x3ec5f5(_0x1fc00e,_0x550456){return c(_0x3f96d1,'ELEMENT_HEADING_CUSTOM',[_0x1fc00e,_0x550456]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50cfa4=this['editor'],_0x13761d=_0x50cfa4['locale'];function _0x4fcafd(_0x4ab758,_0x268dcc){return c(_0x13761d,'ELEMENT_HEADING_CUSTOM',[_0x4ab758,_0x268dcc]);}_0x50cfa4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf2a115=>{if('formatBlock'!=_0xf2a115['type'])return;const {data:_0x309de8}=_0xf2a115;if(_0x309de8&&'heading'==_0x309de8['commandName']){const _0x1c1d69=_0x309de8['commandParams'][0x0]['value'],_0xa739b2=this['_getHeadingLevel'](_0x1c1d69);if(null!==_0xa739b2)return{'type':'format','content':c(_0x13761d,'*Change\x20to:*\x20%0',(_0x381b6a=0x1,_0x3f973f=_0xa739b2,c(_0x13761d,'ELEMENT_HEADING',[_0x381b6a,_0x3f973f])))};const _0x21055e=this['_headingOptions']['find'](_0x2f082b=>_0x2f082b['model']===_0x1c1d69)['title'];return{'type':'format','content':c(_0x13761d,'*Change\x20to:*\x20%0',_0x4fcafd(0x1,_0x21055e))};}var _0x381b6a,_0x3f973f;});}['_getHeadingLevel'](_0x25a5dd){const _0x543b44=_0x25a5dd['match'](/^heading(\d+)/);if(_0x543b44)return _0x543b44[0x1];const _0x22c57e=this['_headingOptions']?.['find'](_0x2b3a52=>_0x2b3a52['model']==_0x25a5dd);if(_0x22c57e&&_0x22c57e['view']){const _0x39b897=_0x22c57e['view'],_0x468a47=(_0x39b897['name']??_0x39b897)['match'](/^h(\d+)/);if(_0x468a47)return _0x468a47[0x1];}return null;}}class it extends _0x51821d{['afterInit'](){const _0x1011bd=this['editor'];if(!_0x1011bd['plugins']['has']('HighlightEditing'))return;const _0x2a8b30=_0x1011bd['plugins']['get']('TrackChangesEditing'),_0xf54bab=_0x1011bd['locale'];_0x2a8b30['enableDefaultAttributesIntegration']('highlight'),_0x2a8b30['registerInlineAttribute']('highlight'),_0x2a8b30['descriptionFactory']['registerAttributeLabel']('highlight',c(_0xf54bab,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57f7cc=this['editor'],_0x2c2edb=_0x57f7cc['locale'];_0x57f7cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x96dfc4=>{if('formatInline'!=_0x96dfc4['type'])return;const {data:_0x597375}=_0x96dfc4;if(_0x597375&&'highlight'==_0x597375['commandName']){const _0x372bad=_0x2c2edb['t'],_0x2c9064=_0x597375['commandParams'][0x0]['value'];if(_0x2c9064){const _0x503260=_0x57f7cc['config']['get']('highlight.options')['find'](_0x957d8c=>_0x957d8c['model']==_0x2c9064),_0x361324=_0x372bad(_0x503260['title'])['toLowerCase']();return{'type':'format','content':c(_0x2c2edb,'*Set\x20highlight:*\x20%0',_0x361324),'color':{'value':_0x503260['color'],'title':_0x503260['title']}};}return{'type':'format','content':c(_0x2c2edb,'*Remove\x20highlight*',c(_0x2c2edb,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x51821d{['afterInit'](){const _0x427680=this['editor'];if(!_0x427680['plugins']['has']('HorizontalLineEditing'))return;_0x427680['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3ef51b=_0x427680['plugins']['get']('TrackChangesEditing'),_0x43627a=_0x427680['locale'];_0x3ef51b['descriptionFactory']['registerElementLabel']('horizontalLine',_0x478161=>c(_0x43627a,'ELEMENT_HORIZONTAL_LINE',_0x478161)),_0x427680['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x189f2c,{writer:_0x421892,options:_0x5d677a})=>{if(!_0x5d677a['showSuggestionHighlights'])return null;const _0xf788db=_0x421892['createContainerElement']('div'),_0x212db5=_0x421892['createEmptyElement']('hr');return _0x421892['addClass']('ck-horizontal-line',_0xf788db),_0x421892['insert'](_0x421892['createPositionAt'](_0xf788db,0x0),_0x212db5),_0xf788db;},'converterPriority':'high'});}}class ot extends _0x51821d{['afterInit'](){const _0x4c5035=this['editor'];if(!_0x4c5035['plugins']['has']('HtmlEmbed'))return;const _0x41f884=_0x4c5035['plugins']['get']('TrackChangesEditing'),_0x1fb13a=_0x4c5035['locale'];_0x41f884['descriptionFactory']['registerElementLabel']('rawHtml',_0x1d1466=>c(_0x1fb13a,'ELEMENT_HTML_EMBED',_0x1d1466)),_0x41f884['enableDefaultAttributesIntegration']('htmlEmbed'),_0x41f884['registerBlockAttribute']('value'),_0x41f884['descriptionFactory']['registerDescriptionCallback'](_0x7a1ac7=>{if('attribute'!=_0x7a1ac7['type'])return;const {data:_0x221fc4}=_0x7a1ac7;if(_0x221fc4&&'value'==_0x221fc4['key']&&_0x7a1ac7['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x380159=c(_0x1fb13a,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1fb13a,'*Change\x20%0\x20content*',_0x380159)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2072ea=this['editor'],_0x1a5bbc=_0x2072ea['locale'];_0x2072ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b2f67=>{if('formatBlock'!=_0x3b2f67['type'])return;const {data:_0x528a7e}=_0x3b2f67;if(_0x528a7e&&'htmlEmbed'==_0x528a7e['commandName']){const _0x77a070=c(_0x1a5bbc,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1a5bbc,'*Change\x20%0\x20content*',_0x77a070)};}});}}class rt extends _0x51821d{['afterInit'](){const _0x1529c8=this['editor'];if(!_0x1529c8['plugins']['has']('ImageEditing'))return;const _0x5aa452=_0x1529c8['plugins']['get']('TrackChangesEditing'),_0xb318f7=_0x1529c8['plugins']['get']('ImageUtils'),_0x591c1f=_0x1529c8['locale'];_0x5aa452['enableCommand']('insertImage'),_0x5aa452['descriptionFactory']['registerElementLabel']('imageBlock',_0x50a774=>c(_0x591c1f,'ELEMENT_IMAGE',_0x50a774)),_0x5aa452['descriptionFactory']['registerElementLabel']('imageInline',_0x239402=>c(_0x591c1f,'ELEMENT_INLINE_IMAGE',_0x239402)),_0x5aa452['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x591c1f,'ELEMENT_CAPTION')),_0x1529c8['plugins']['has']('ImageUploadEditing')&&_0x5aa452['enableCommand']('uploadImage'),_0x1529c8['plugins']['has']('ImageBlockEditing')&&_0x1529c8['plugins']['has']('ImageInlineEditing')&&(_0x5aa452['enableCommand']('imageTypeInline',(_0x320fa5,_0x30e36c)=>{const _0x5c9999=_0xb318f7['getClosestSelectedImageElement'](_0x1529c8['model']['document']['selection']);_0x1529c8['model']['change'](()=>{_0x5aa452['markBlockFormat'](_0x5c9999,{'commandName':'imageTypeInline','commandParams':[_0x30e36c]},[],'convertBlockImageToInline');});}),_0x5aa452['enableCommand']('imageTypeBlock',(_0x1ca0de,_0x39c56c)=>{_0x1529c8['model']['change'](_0x4ba6dc=>{let _0x98a88f=_0xb318f7['getClosestSelectedImageElement'](_0x1529c8['model']['document']['selection']),_0x4a5c10=_0x4ba6dc['createRangeOn'](_0x98a88f);const _0x2e67ad=_0x2650f9['fromPosition'](_0x4a5c10['start'],'toPrevious'),_0xd1143=_0x2650f9['fromPosition'](_0x4a5c10['end'],'toNext');_0x5aa452['forceDefaultExecution'](()=>_0x1ca0de(_0x39c56c)),_0x98a88f=_0xb318f7['getClosestSelectedImageElement'](_0x1529c8['model']['document']['selection']),_0x4a5c10=_0x4ba6dc['createRangeOn'](_0x98a88f);const _0x4e05a4=_0x4ba6dc['createRange'](_0x2e67ad,_0xd1143);_0x2e67ad['detach'](),_0xd1143['detach'](),_0x5aa452['markBlockFormat'](_0x98a88f,{'commandName':'imageTypeInline','commandParams':[_0x39c56c]},[],'convertInlineImageToBlock'),_0x4e05a4['start']['isBefore'](_0x4a5c10['start'])&&_0x5aa452['markInsertion'](_0x4ba6dc['createRange'](_0x4e05a4['start'],_0x4a5c10['start']),'convertInlineImageToBlock'),_0x4a5c10['end']['isBefore'](_0x4e05a4['end'])&&_0x5aa452['markInsertion'](_0x4ba6dc['createRange'](_0x4a5c10['end'],_0x4e05a4['end']),'convertInlineImageToBlock');});}),_0x5aa452['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5aa452['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5aa452['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5aa452['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5aa452['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5aa452['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2e9e92])=>{const _0x7e6e0b=_0x5aa452['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x220c45=_0x2e9e92['start'],_0x1ecec3=_0x2e9e92['end'];const _0x2dcfe5=_0x1529c8['model']['schema']['getNearestSelectionRange'](_0x220c45,'backward'),_0x118397=_0x1529c8['model']['schema']['getNearestSelectionRange'](_0x1ecec3,'forward');_0x2dcfe5['isCollapsed']&&(_0x220c45=_0x2dcfe5['start']),_0x118397['isCollapsed']&&(_0x1ecec3=_0x118397['end']),_0x7e6e0b([_0x1529c8['model']['createRange'](_0x220c45,_0x1ecec3)]);}),_0x5aa452['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x362259),_0x5aa452['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x362259)),_0x1529c8['plugins']['has']('ImageCaptionEditing')&&(_0x5aa452['enableCommand']('toggleImageCaption',(_0x450b19,_0x30fb77)=>{const _0x504b87=_0x1529c8['plugins']['get']('ImageCaptionUtils');let _0x2dbc13=_0xb318f7['getClosestSelectedImageElement'](_0x1529c8['model']['document']['selection']),_0x487c33=_0x504b87['getCaptionFromImageModelElement'](_0x2dbc13);_0x1529c8['model']['change'](()=>{if(_0x487c33)return void _0x5aa452['markDeletion'](_0x1529c8['model']['createRangeOn'](_0x487c33));const _0x1d1c66=_0xb318f7['isBlockImage'](_0x2dbc13);_0x450b19(_0x30fb77),_0x2dbc13=_0xb318f7['getClosestSelectedImageElement'](_0x1529c8['model']['document']['selection']),_0x487c33=_0x504b87['getCaptionFromImageModelElement'](_0x2dbc13),_0x5aa452['markInsertion'](_0x1529c8['model']['createRangeOn'](_0x487c33),_0x1d1c66?null:'imageCaption');});}),_0x5aa452['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x362259));const _0x2b3a3a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xa6d5ea(_0x43dfab,_0x259234){const _0x1156f4=_0x2b3a3a['findIndex'](({type:_0x559c40,subType:_0x3b6711})=>_0x43dfab['type']==_0x559c40&&_0x43dfab['subType']==_0x3b6711),_0x4147d6=_0x2b3a3a['findIndex'](({type:_0xce3f1b,subType:_0x3da861})=>_0x259234['type']==_0xce3f1b&&_0x259234['subType']==_0x3da861);if(_0x1156f4<0x0||_0x4147d6<0x0)return!0x1;const _0x18db8a=_0x43dfab['getFirstRange'](),_0x4762e5=_0x259234['getFirstRange']();if((0x0==_0x1156f4||0x1==_0x1156f4)&&0x2==_0x4147d6&&_0x18db8a['isIntersecting'](_0x4762e5))return!0x0;if(0x2==_0x1156f4&&0x3==_0x4147d6){const _0x2389ea=_0x5aa452['_findSuggestions'](_0x18db8a,'insertion')['filter'](({suggestion:_0x54a0ff,meta:_0x173e87})=>_0x173e87['isOwn']&&'convertInlineImageToBlock'==_0x54a0ff['subType']);if(_0x2389ea['length']>0x1&&_0x4762e5['end']['isEqual'](_0x18db8a['start']))return!0x0;if(0x1==_0x2389ea['length']&&(_0x18db8a['start']['isEqual'](_0x4762e5['end'])||_0x18db8a['end']['isEqual'](_0x4762e5['start'])))return!0x0;}if(0x3==_0x1156f4&&0x3==_0x4147d6&&_0x18db8a['start']['isBefore'](_0x4762e5['start'])){const _0x3952b2=_0x18db8a['end']['nodeAfter'],_0x2409cc=_0x4762e5['start']['nodeBefore'];return _0xb318f7['isBlockImage'](_0x3952b2)&&_0x3952b2===_0x2409cc;}return!0x1;}function _0x362259(_0x2d264b,_0x44cb80){return _0xa6d5ea(_0x2d264b,_0x44cb80)?[_0x2d264b,_0x44cb80]:_0xa6d5ea(_0x44cb80,_0x2d264b)?[_0x44cb80,_0x2d264b]:null;}_0x1529c8['plugins']['has']('ImageResize')&&(_0x5aa452['enableDefaultAttributesIntegration']('resizeImage'),_0x5aa452['registerBlockAttribute']('resizedWidth'),_0x5aa452['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x591c1f,'FORMAT_IMAGE_SIZE'))),_0x1529c8['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5aa452['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5aa452['registerBlockAttribute']('alt')),_0x1529c8['plugins']['has']('PictureEditing')&&(_0x5aa452['registerBlockAttribute']('sources'),_0x5aa452['descriptionFactory']['registerDescriptionCallback'](_0x1e2246=>{if('attribute'!=_0x1e2246['type'])return;const {data:_0x111a73}=_0x1e2246;return _0x111a73&&'sources'==_0x111a73['key']?{'type':'format','content':''}:void 0x0;})),_0x1529c8['plugins']['has']('ImageSizeAttributes')&&(_0x5aa452['registerBlockAttribute']('width'),_0x5aa452['registerBlockAttribute']('height'),_0x5aa452['descriptionFactory']['registerDescriptionCallback'](_0x1db72c=>{if('attribute'!=_0x1db72c['type'])return;const {data:_0xa06fd3}=_0x1db72c;return!_0xa06fd3||'width'!=_0xa06fd3['key']&&'height'!=_0xa06fd3['key']?void 0x0:{'type':'format','content':''};})),_0x5aa452['descriptionFactory']['registerDescriptionCallback'](_0x1aed9a=>{if(!!_0x2b3a3a['find'](({type:_0x4a2183,subType:_0x3d28bc})=>_0x1aed9a['type']==_0x4a2183&&_0x1aed9a['subType']==_0x3d28bc))return _0x1aed9a['previous']?{}:void 0x0;}),_0x5aa452['descriptionFactory']['registerDescriptionCallback'](_0x51a36a=>{if('insertion'==_0x51a36a['type']||'deletion'==_0x51a36a['type']){const _0x1e97c9=_0x51a36a['getContainedElement']();if(_0x1e97c9&&_0x1e97c9['is']('element','caption'))return{'type':'insertion'==_0x51a36a['type']?'addObject':'removeObject','element':_0x1e97c9,'quantity':0x1};}}),_0x5aa452['descriptionFactory']['registerDescriptionCallback'](_0x1f6d7d=>'formatBlock'==_0x1f6d7d['type']&&'convertInlineImageToBlock'==_0x1f6d7d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1f6d7d['type']&&'convertBlockImageToInline'==_0x1f6d7d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5aa452['descriptionFactory']['registerDescriptionCallback'](_0x4fbdba=>{if('attribute'!=_0x4fbdba['type'])return;const {data:_0x5567f1}=_0x4fbdba;if(!_0x5567f1||'alt'!=_0x5567f1['key'])return;const _0x39d54b=_0x5567f1['newValue'];return _0x39d54b?{'type':'format','content':c(_0x591c1f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x39d54b+'\x22')}:{'type':'format','content':c(_0x591c1f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15e140=this['editor'],_0x1a1be7=_0x15e140['locale'];_0x15e140['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33de78=>{if('formatBlock'!=_0x33de78['type']&&'formatInline'!=_0x33de78['type'])return;const {data:_0x5292ac}=_0x33de78;if(_0x5292ac){if('imageTextAlternative'==_0x5292ac['commandName']){const _0x296c0b=_0x5292ac['commandParams'][0x0]['newValue'];return _0x296c0b?{'type':'format','content':c(_0x1a1be7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x296c0b+'\x22')}:{'type':'format','content':c(_0x1a1be7,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5292ac['commandName']){const _0x4cd5d8=_0x5292ac['commandParams'][0x0]['width'];return _0x4cd5d8?{'type':'format','content':c(_0x1a1be7,'*Set\x20image\x20width:*\x20%0',_0x4cd5d8)}:{'type':'format','content':c(_0x1a1be7,'*Reset\x20image\x20width*')};}}});}}class at extends _0x51821d{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x13a5f4=this['editor']['locale'],_0x38bdd5=this['editor']['plugins']['get']('TrackChangesEditing');_0x38bdd5['enableDefaultAttributesIntegration']('replaceImageSource'),_0x38bdd5['registerBlockAttribute']('src'),_0x38bdd5['descriptionFactory']['registerDescriptionCallback'](_0x373f79=>{if('attribute'!=_0x373f79['type'])return;const {data:_0x634c00}=_0x373f79;return _0x634c00&&'src'==_0x634c00['key']?_0x634c00['newValue']&&_0x634c00['oldValue']?{'type':'format','content':c(_0x13a5f4,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x24f812=this['editor']['plugins']['get']('TrackChangesEditing');_0x24f812['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x24f812['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x24f812['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x24f812['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39d243=this['editor'],_0x5931fd=_0x39d243['locale'];_0x39d243['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55a603=>{if('formatBlock'!=_0x55a603['type']&&'formatInline'!=_0x55a603['type'])return;const {data:_0x4b3f7a}=_0x55a603;if(!_0x4b3f7a||'replaceImageSource'!=_0x4b3f7a['commandName'])return;return{'type':'format','content':c(_0x5931fd,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x51821d{['afterInit'](){const _0x46412c=this['editor'];if(!_0x46412c['plugins']['has']('ImageStyleEditing'))return;const _0x2688a0=_0x46412c['plugins']['get']('TrackChangesEditing'),_0x395cba=_0x46412c['plugins']['get']('ImageUtils'),_0x291faa={};_0x2688a0['enableCommand']('imageStyle',(_0x58c584,_0x3b88e5)=>{const _0xb005cf=_0x46412c['plugins']['get']('Users')['me'],_0x4bb3a7=_0x46412c['commands']['get']('imageStyle');let _0x5a2462=_0x395cba['getClosestSelectedImageElement'](_0x46412c['model']['document']['selection']),_0x36f86a=_0x46412c['model']['createRangeOn'](_0x5a2462),_0x11eb5d=_0x4bb3a7['value'];if(_0x11eb5d==_0x3b88e5['value'])return;const _0x58677e={'commandName':'imageStyle','commandParams':[_0x3b88e5],'formatGroupId':_0x28fc1d()};_0x46412c['model']['change'](()=>{if(_0x2688a0['getSuggestions']()['filter'](_0x57ba18=>_0x57ba18['isInContent']&&_0xb005cf==_0x57ba18['author']&&('formatBlock'==_0x57ba18['type']||'formatInline'==_0x57ba18['type'])&&('imageStylePreApply'==_0x57ba18['subType']||'imageStylePostApply'==_0x57ba18['subType'])&&_0x57ba18['getFirstRange']()['isEqual'](_0x36f86a))['forEach'](_0x27c7a1=>_0x2688a0['discardSuggestion'](_0x27c7a1['head'])),_0x5a2462=_0x395cba['getClosestSelectedImageElement'](_0x46412c['model']['document']['selection']),_0x36f86a=_0x46412c['model']['createRangeOn'](_0x5a2462),_0x4bb3a7['refresh'](),_0x46412c['commands']['get']('imageTypeInline')['refresh'](),_0x46412c['commands']['get']('imageTypeBlock')['refresh'](),_0x11eb5d=_0x4bb3a7['value'],_0x11eb5d!=_0x3b88e5['value'])return _0x395cba['isInlineImage'](_0x5a2462)&&_0x4bb3a7['shouldConvertImageType'](_0x3b88e5['value'],_0x5a2462)?(_0x58c584({..._0x3b88e5,'setImageSizes':!0x1}),_0x5a2462=_0x395cba['getClosestSelectedImageElement'](_0x46412c['model']['document']['selection']),void _0x2688a0['markBlockFormat'](_0x5a2462,{..._0x58677e,'commandReversedParams':[{'value':_0x11eb5d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x395cba['isBlockImage'](_0x5a2462)?_0x2688a0['markBlockFormat'](_0x5a2462,_0x58677e,[],'imageStylePostApply'):_0x2688a0['markInlineFormat'](_0x36f86a,_0x58677e,'imageStylePostApply'));});});for(const _0x4595bf of _0x46412c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x291faa[_0x4595bf['name']]=_0x4595bf['title']['toLowerCase']();_0x2688a0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2688a0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2688a0['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2688a0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3e90f2])=>{_0x395cba['setImageNaturalSizeAttributes'](_0x3e90f2['getContainedElement']());}),_0x2688a0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x560807,_0x3eb2f5)=>{_0x2688a0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x560807,{'commandName':_0x3eb2f5['commandName'],'commandParams':_0x3eb2f5['commandReversedParams']});}),_0x2688a0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x14f1ef,_0x5f2841){if(_0x1f1018(_0x14f1ef,_0x5f2841))return[_0x14f1ef,_0x5f2841];if(_0x1f1018(_0x5f2841,_0x14f1ef))return[_0x5f2841,_0x14f1ef];return null;});const _0x46d172=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1f1018(_0x1342d6,_0x670aa){const _0x2f0a73=_0x46d172['findIndex'](({type:_0x53dec0,subType:_0x501d93})=>_0x1342d6['type']==_0x53dec0&&_0x1342d6['subType']==_0x501d93),_0x5baa1a=_0x46d172['findIndex'](({type:_0x3941e1,subType:_0x3b3f65})=>_0x670aa['type']==_0x3941e1&&_0x670aa['subType']==_0x3b3f65);if(_0x2f0a73<0x0||_0x5baa1a<0x0)return!0x1;const _0x34ae41=_0x1342d6['getFirstRange'](),_0x18745b=_0x670aa['getFirstRange']();if((0x0==_0x2f0a73||0x1==_0x2f0a73)&&0x2==_0x5baa1a&&_0x34ae41['isIntersecting'](_0x18745b))return!0x0;if(0x2==_0x2f0a73&&0x3==_0x5baa1a){const _0x1d6378=_0x2688a0['_findSuggestions'](_0x34ae41,'insertion')['filter'](({suggestion:_0x5dd2fa,meta:_0x27fb90})=>_0x27fb90['isOwn']&&'convertInlineImageToBlock'==_0x5dd2fa['subType']);if(_0x1d6378['length']>0x1&&_0x18745b['end']['isEqual'](_0x34ae41['start']))return!0x0;if(0x1==_0x1d6378['length']&&(_0x34ae41['start']['isEqual'](_0x18745b['end'])||_0x34ae41['end']['isEqual'](_0x18745b['start'])))return!0x0;}if(0x3==_0x2f0a73&&0x3==_0x5baa1a&&_0x34ae41['start']['isBefore'](_0x18745b['start'])){const _0x25fb6e=_0x34ae41['end']['nodeAfter'],_0x1c3b6e=_0x18745b['start']['nodeBefore'];return _0x395cba['isBlockImage'](_0x25fb6e)&&_0x25fb6e===_0x1c3b6e;}return!0x1;}_0x46412c['model']['document']['registerPostFixer'](()=>{let _0x35caa2=!0x1;const _0xf1ee5f=Array['from'](_0x46412c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x65c9c,data:_0x487582}of _0xf1ee5f){const {group:_0x40bdb0,type:_0x10c52b,subType:_0x4ce44b,id:_0x49ee97}=_0x2688a0['_splitMarkerName'](_0x65c9c);if('suggestion'==_0x40bdb0&&_0x2688a0['hasSuggestion'](_0x49ee97)){if('formatBlock'==_0x10c52b&&('imageStylePreApply'==_0x4ce44b||'imageStylePostApply'==_0x4ce44b)){const _0x5cc69d=_0x2688a0['getSuggestion'](_0x49ee97);if(_0x487582['newRange']){const _0x5eb42a=_0x5cc69d['getFirstRange']()['getContainedElement']();if(_0x395cba['isBlockImage'](_0x5eb42a))continue;_0x2688a0['discardSuggestion'](_0x5cc69d),_0x35caa2=!0x0;}}if('insertion'==_0x10c52b&&'imageCaption'==_0x4ce44b&&!_0x487582['newRange']){const _0x3027ed=_0x2688a0['getSuggestion'](_0x49ee97);_0x3027ed['next']&&_0x3027ed['next']['isInContent']&&(_0x2688a0['discardSuggestion'](_0x3027ed['next']),_0x35caa2=!0x0);}}}return _0x35caa2;}),this['_registerLegacyDescription'](_0x291faa);}['_registerLegacyDescription'](_0x35ab2f){const _0x5dd6ab=this['editor'],_0x447753=_0x5dd6ab['locale'];_0x5dd6ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28a057=>{if('formatBlock'!=_0x28a057['type']&&'formatInline'!=_0x28a057['type'])return;const {data:_0x1b0d9c}=_0x28a057;if(!_0x1b0d9c||'imageStyle'!=_0x1b0d9c['commandName'])return;const _0x52012a=_0x1b0d9c['commandParams'][0x0]['value'];return _0x55def9('side'===_0x52012a?c(_0x447753,'FORMAT_SIDE_IMAGE'):_0x35ab2f[_0x52012a]||_0x52012a);function _0x55def9(_0xcdb82b){return{'type':'format','content':c(_0x447753,'*Format:*\x20%0',_0xcdb82b)};}});}}class ut extends _0x51821d{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4ccd06){super(_0x4ccd06),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3bd3ba=this['editor'],_0x17a218=_0x3bd3ba['commands']['get']('importWord'),_0x7c8202=_0x3bd3ba['commands']['get']('trackChanges');_0x17a218&&(_0x17a218['on']('execute',(_0x2d94c3,[,_0x305bc6])=>{this['_trackChangesValueDuringImport']=_0x7c8202['value'],_0x305bc6['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x17a218,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x17a218,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x7c8202['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3bd3ba['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x226112,_0x4f7408){const {suggestions:_0x142038}=_0x4f7408,_0x3b7e52=this['editor']['commands']['get']('trackChanges'),_0x497fdc=_0x3b7e52['value'];this['_trackChangesValueDuringImport']!==_0x497fdc&&(_0x3b7e52['execute'](),this['_trackChangesExecuted']=!0x0),_0x142038&&_0x142038['forEach'](({id:_0xb98e94,type:_0x1db5f0,author:_0x2a771b,created_at:_0x2eb70a})=>{const _0x557781={'id':_0xb98e94,'type':_0x1db5f0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2a771b,'createdAt':_0x2eb70a?new Date(_0x2eb70a):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x557781);});}}class ft extends _0x51821d{['afterInit'](){const _0xc41a80=this['editor'],_0x4d4249=_0xc41a80['plugins']['get']('TrackChangesEditing');if(_0xc41a80['plugins']['has']('IndentEditing')&&(_0x4d4249['enableCommand']('indent'),_0x4d4249['enableCommand']('outdent')),_0xc41a80['plugins']['has']('IndentBlock')){for(const _0x32e666 of['indentBlock','outdentBlock'])_0x4d4249['enableDefaultAttributesIntegration'](_0x32e666);}const _0x5b7cf7=_0xc41a80['locale'];_0x4d4249['registerBlockAttribute']('blockIndent'),_0x4d4249['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x5b7cf7,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5be503=this['editor'],_0x552a66=_0x5be503['locale'],_0x525ef1=_0x5be503['plugins']['get']('TrackChangesEditing');_0x525ef1['descriptionFactory']['registerDescriptionCallback'](_0x55a776=>{if('formatBlock'!=_0x55a776['type'])return;const {data:_0x131605}=_0x55a776;if(!_0x131605)return;if('indentBlock'!=_0x131605['commandName']&&'outdentBlock'!=_0x131605['commandName'])return;const _0x1eea13=_0x55a776['getItems']()[0x0],_0x1bde3c=_0x525ef1['descriptionFactory']['getItemLabel'](_0x1eea13);return'indentBlock'==_0x131605['commandName']?{'type':'format','content':c(_0x552a66,'*Indent:*\x20%0',_0x1bde3c)}:'outdentBlock'==_0x131605['commandName']?{'type':'format','content':c(_0x552a66,'*Outdent:*\x20%0',_0x1bde3c)}:void 0x0;});}}class ht extends _0x51821d{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x51821d{['afterInit'](){const _0x4c9d35=this['editor'];if(!_0x4c9d35['plugins']['has']('LinkEditing'))return;const _0x28d728=_0x4c9d35['plugins']['get']('TrackChangesEditing'),_0x3fd27b=_0x4c9d35['commands']['get']('link');_0x28d728['enableDefaultAttributesIntegration']('link'),_0x28d728['enableDefaultAttributesIntegration']('unlink'),_0x28d728['registerInlineAttribute']('linkHref');for(const _0x12e8d7 of _0x3fd27b['manualDecorators'])_0x28d728['registerInlineAttribute'](_0x12e8d7['id']),_0x28d728['descriptionFactory']['registerAttributeLabel'](_0x12e8d7['id'],'link\x20('+_0x12e8d7['label']['toLowerCase']()+')');_0x28d728['descriptionFactory']['registerDescriptionCallback'](_0x5b9494=>{if('attribute'!=_0x5b9494['type'])return;const {data:_0x3a0941}=_0x5b9494;if(!_0x3a0941||'linkHref'!=_0x3a0941['key'])return;const _0x459f00=_0x3a0941['newValue'],_0x31f4f9=_0x4c9d35['locale'];return{'type':'format','content':null==_0x459f00?c(_0x31f4f9,'*Remove\x20link*'):c(_0x31f4f9,'*Set\x20link:*\x20%0','\x22'+_0x459f00+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58e69a=this['editor'],_0x5e9fac=_0x58e69a['locale'];_0x58e69a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ac053=>{if('formatInline'!=_0x2ac053['type'])return;const {data:_0x15deca}=_0x2ac053;if(_0x15deca){if('link'==_0x15deca['commandName']){const _0x3ea911=_0x15deca['commandParams'][0x0];return{'type':'format','content':c(_0x5e9fac,'*Set\x20link:*\x20%0','\x22'+_0x3ea911+'\x22')};}return'unlink'==_0x15deca['commandName']?{'type':'format','content':c(_0x5e9fac,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x51821d{['afterInit'](){const _0x122f72=this['editor'],_0x9d1e9e=_0x122f72['locale'];if(!_0x122f72['plugins']['has']('LegacyListEditing'))return;const _0x532e3e=_0x122f72['plugins']['get']('TrackChangesEditing'),_0x4950e4=_0x122f72['plugins']['has']('LegacyTodoListEditing');function _0x5cde01(_0x15267b){return()=>{const _0x3d07b8=_0x122f72['model']['document']['selection'],_0x337915=_0x122f72['commands']['get'](_0x15267b);if(_0x337915['value'])return void _0x122f72['execute']('paragraph',{});const _0x10821a=_0x15267b['slice'](0x0,-0x4),_0x27509f=function(_0x48c004,_0x391321,_0xbb5c93){let _0x437571=Array['from'](_0x48c004)['filter'](_0x23d140=>function(_0x57655d,_0x394b53){return _0x394b53['checkChild'](_0x57655d['parent'],'listItem')&&!_0x394b53['isObject'](_0x57655d);}(_0x23d140,_0xbb5c93));_0x437571=_0x437571['filter'](_0x694c1b=>!_0x694c1b['is']('element','listItem')||_0x694c1b['getAttribute']('listType')!=_0x391321);const _0x335039=new Set();for(const _0x3698d9 of _0x437571)_0x3698d9['is']('element','listItem')?_0x335039['add'](Le(_0x3698d9)):_0x335039['add'](_0x3698d9);return Array['from'](_0x335039);}(_0x3d07b8['getSelectedBlocks'](),_0x10821a,_0x122f72['model']['schema']);_0x122f72['model']['change'](()=>{for(const _0x450fb1 of _0x27509f)_0x532e3e['markBlockFormat'](_0x450fb1,{'commandName':_0x15267b,'commandParams':[{'forceValue':!_0x337915['value']}],'formatGroupId':'blockName'},Ee(_0x450fb1));});};}function _0x286c07(_0x34ec31){return()=>{const _0x24cbfe=function(_0x25b64c){let _0x420b6b=Array['from'](_0x25b64c);const _0x442e8c=_0x420b6b['findIndex'](_0x62fc8e=>'listItem'!=_0x62fc8e['name']);return _0x442e8c>-0x1&&(_0x420b6b=_0x420b6b['slice'](0x0,_0x442e8c)),_0x420b6b;}(_0x122f72['model']['document']['selection']['getSelectedBlocks']()),_0x1c2142=_0x122f72['model']['createRange'](_0x122f72['model']['createPositionAt'](_0x24cbfe[0x0],'before'),_0x122f72['model']['createPositionAt'](_0x24cbfe[_0x24cbfe['length']-0x1],'end'));_0x122f72['model']['change'](()=>{_0x532e3e['markBlockFormat'](_0x1c2142,{'commandName':_0x34ec31,'commandParams':[],'formatGroupId':'listIndent'},function(_0x30333a){const _0x3945ae=new Set();for(const _0x5127d7 of _0x30333a){let _0x2d1a77=_0x5127d7['nextSibling'];for(;_0x2d1a77&&_0x2d1a77['getAttribute']('listIndent')>_0x5127d7['getAttribute']('listIndent');)_0x3945ae['add'](_0x2d1a77),_0x2d1a77=_0x2d1a77['nextSibling'];}return Array['from'](_0x3945ae);}(_0x24cbfe));});};}_0x532e3e['enableCommand']('numberedList',_0x5cde01('numberedList')),_0x532e3e['enableCommand']('bulletedList',_0x5cde01('bulletedList')),_0x4950e4&&_0x532e3e['enableCommand']('todoList',_0x5cde01('todoList')),_0x532e3e['enableCommand']('indentList',_0x286c07('indentList')),_0x532e3e['enableCommand']('outdentList',_0x286c07('outdentList')),_0x4950e4&&_0x532e3e['enableCommand']('checkTodoList',()=>{const _0x3d3202=_0x122f72['commands']['get']('checkTodoList'),_0x59c640=Array['from'](_0x3d3202['_selectedElements']);_0x59c640['filter'](_0x3989ec=>_0x3989ec['getAttribute']('todoListChecked')!=_0x3d3202['value']),_0x122f72['model']['change'](()=>{for(const _0x5c67d5 of _0x59c640)_0x532e3e['markBlockFormat'](_0x5c67d5,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3d3202['value']}]});});}),_0x532e3e['descriptionFactory']['registerElementLabel']('listItem',_0x15824a=>c(_0x9d1e9e,'ELEMENT_LIST_ITEM',_0x15824a)),_0x532e3e['descriptionFactory']['registerDescriptionCallback'](_0x27d811=>{if('formatBlock'!=_0x27d811['type']&&'formatInline'!=_0x27d811['type'])return;const {data:_0x89e70f}=_0x27d811;if(_0x89e70f){if('numberedList'==_0x89e70f['commandName']||'bulletedList'==_0x89e70f['commandName']||'todoList'==_0x89e70f['commandName'])switch(_0x89e70f['commandName']['replace']('List','')){case'bulleted':return _0x4183ed(c(_0x9d1e9e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4183ed(c(_0x9d1e9e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4183ed(c(_0x9d1e9e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x89e70f['commandName'])return{'type':'format','content':c(_0x9d1e9e,'*Indent:*\x20%0',c(_0x9d1e9e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x89e70f['commandName'])return{'type':'format','content':c(_0x9d1e9e,'*Outdent:*\x20%0',c(_0x9d1e9e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x89e70f['commandName'])return _0x89e70f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x9d1e9e,'*Check\x20item*')}:{'type':'format','content':c(_0x9d1e9e,'*Uncheck\x20item*')};}function _0x4183ed(_0x58644b){return{'type':'format','content':c(_0x9d1e9e,'*Change\x20to:*\x20%0',_0x58644b)};}});}}function Le(_0x5f3dff){const _0x4dbb1f=_0x5f3dff['getAttribute']('listIndent');if(0x0==_0x4dbb1f)return _0x5f3dff;let _0x51aea6=_0x5f3dff;for(;_0x5f3dff['previousSibling']&&_0x5f3dff['previousSibling']['is']('element','listItem');){const _0x251119=_0x5f3dff['previousSibling']['getAttribute']('listIndent');if(_0x251119==_0x4dbb1f)_0x51aea6=_0x5f3dff['previousSibling'];else{if(_0x251119<_0x4dbb1f)break;}_0x5f3dff=_0x5f3dff['previousSibling'];}return _0x51aea6;}function Ee(_0x5d6c56){const _0x1f1bc1=[];if(_0x5d6c56['is']('element','listItem')&&_0x5d6c56['getAttribute']('listIndent')>0x0){let _0x16c2ed=_0x5d6c56['nextSibling'];for(;_0x16c2ed&&'listItem'==_0x16c2ed['name']&&_0x16c2ed['getAttribute']('listIndent')==_0x5d6c56['getAttribute']('listIndent');)_0x1f1bc1['push'](_0x16c2ed),_0x16c2ed=_0x16c2ed['nextSibling'];}return _0x1f1bc1;}class Q extends _0x51821d{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x554a7d=this['editor']['config']['get']('list.properties'),_0x413ab8=this['editor']['plugins']['get']('TrackChangesEditing');_0x554a7d['styles']&&_0x413ab8['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x554a7d['reversed']&&_0x413ab8['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x554a7d['startIndex']&&_0x413ab8['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x413ab8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4e4d48,_0x578dee={}){const _0x1e5f0b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x153ecd=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1e5f0b['markMultiRangeBlockFormat'](_0x153ecd,{'commandName':'listStyle','commandParams':[{'type':_0x578dee['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3be1cb,_0x3797b1={}){const _0x58f19f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x494dc9=this['_getSuggestionBlocks'](_0x3874f9=>_0x3874f9['is']('element','listItem')&&'numbered'===_0x3874f9['getAttribute']('listType'));if(_0x494dc9['length']<0x1)return;const _0x78db71=_0x494dc9['map'](_0x54986a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x54986a,'before'),this['editor']['model']['createPositionAt'](_0x54986a,0x0)));this['editor']['model']['change'](()=>{_0x58f19f['markMultiRangeBlockFormat'](_0x78db71,{'commandName':'listReversed','commandParams':[{'reversed':_0x3797b1['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x27f7ee,_0x4d2cd4={}){const _0x4b8dba=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5231f1=this['_getSuggestionBlocks'](_0xa097e5=>_0xa097e5['is']('element','listItem')&&'numbered'===_0xa097e5['getAttribute']('listType'));if(_0x5231f1['length']<0x1)return;const _0x26cfb7=_0x5231f1['map'](_0x24926a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x24926a,'before'),this['editor']['model']['createPositionAt'](_0x24926a,0x0)));this['editor']['model']['change'](()=>{_0x4b8dba['markMultiRangeBlockFormat'](_0x26cfb7,{'commandName':'listStart','commandParams':[{'startIndex':_0x4d2cd4['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xea779){if('formatBlock'!=_0xea779['type']&&'formatInline'!=_0xea779['type'])return;const _0x1b560a=this['editor']['locale'],{data:_0x44107d}=_0xea779;if(!_0x44107d)return;let _0x4bad3a,_0x5c6f00;switch(_0x44107d['commandName']){case'listStyle':_0x4bad3a='*Change\x20to:*\x20%0',_0x5c6f00={'type':'format','content':c(_0x1b560a,_0x4bad3a,c(_0x1b560a,this['_getTranslationKeyForListStyle'](_0x44107d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4bad3a=_0x44107d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5c6f00={'type':'format','content':c(_0x1b560a,_0x4bad3a)};break;case'listStart':_0x4bad3a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5c6f00={'type':'format','content':c(_0x1b560a,_0x4bad3a,_0x44107d['commandParams'][0x0]['startIndex'])};}return _0x5c6f00;}['_getSuggestionBlocksForListStyle'](){const _0x31d8a6=this['editor']['plugins']['get']('LegacyListUtils');let _0x45fb9c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x45fb9c[0x0]?.['is']('element','listItem')&&_0x45fb9c['unshift'](..._0x31d8a6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x45fb9c[_0x45fb9c['length']-0x1]?.['is']('element','listItem')&&_0x45fb9c['push'](..._0x31d8a6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x45fb9c=[...new Set(_0x45fb9c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x45fb9c=_0x45fb9c['filter'](_0x5af3e0=>_0x5af3e0['is']('element','listItem'))),_0x45fb9c;}['_getSuggestionBlocks'](_0x519fcc){const _0x36472a=this['editor']['plugins']['get']('LegacyListUtils');let _0x7554b3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x519fcc)['map'](_0x22217d=>{const _0x2f21e3=this['editor']['model']['createPositionAt'](_0x22217d,0x0);return[..._0x36472a['getSiblingNodes'](_0x2f21e3,'backward'),..._0x36472a['getSiblingNodes'](_0x2f21e3,'forward')];})['flat']();return _0x7554b3=[...new Set(_0x7554b3)],_0x7554b3;}['_getTranslationKeyForListStyle'](_0x2f454e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2f454e)||'default')['toUpperCase']()+'_LIST_'+_0x2f454e['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x51821d{['afterInit'](){const _0x56bba5=this['editor'];if(!_0x56bba5['plugins']['has']('MediaEmbedEditing'))return;const _0x557fcb=_0x56bba5['plugins']['get']('TrackChangesEditing'),_0x524940=_0x56bba5['locale'];_0x557fcb['enableCommand']('mediaEmbed'),_0x557fcb['descriptionFactory']['registerElementLabel']('media',_0x37b396=>c(_0x524940,'ELEMENT_MEDIA',_0x37b396)),_0x56bba5['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1775fc,{writer:_0x30982b,options:_0x255ab8})=>{if(_0x255ab8['showSuggestionHighlights'])return _0x30982b['createEmptyElement']('div');},'converterPriority':'high'}),_0x56bba5['data']['downcastDispatcher']['on']('attribute:url:media',(_0x185d83,_0x40872e,_0x5be1c2)=>{_0x5be1c2['options']['showSuggestionHighlights']&&_0x185d83['stop']();},{'priority':'high'});}}class pt extends _0x51821d{['afterInit'](){const _0x5ba7d2=this['editor'];_0x5ba7d2['plugins']['has']('MentionEditing')&&_0x5ba7d2['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x51821d{['afterInit'](){const _0x4e7f55=this['editor'];if(!_0x4e7f55['plugins']['has']('MergeFieldsEditing'))return;const _0x218eb8=_0x4e7f55['plugins']['get']('TrackChangesEditing'),_0x466d67=_0x4e7f55['locale'];_0x218eb8['enableCommand']('insertMergeField'),_0x218eb8['enableCommand']('insertMergeFieldBlock'),_0x218eb8['enableCommand']('insertMergeFieldImage'),_0x218eb8['descriptionFactory']['registerElementLabel']('mergeField',_0x22d549=>c(_0x466d67,'ELEMENT_MERGE_FIELD',_0x22d549)),_0x218eb8['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x29dad6=>c(_0x466d67,'ELEMENT_MERGE_FIELD',_0x29dad6)),_0x218eb8['descriptionFactory']['registerDescriptionCallback'](_0xf1356d=>{if('insertion'!=_0xf1356d['type']&&'deletion'!=_0xf1356d['type'])return;const _0x3b162d=_0xf1356d['getContainedElement']();if(null==_0x3b162d)return;const _0x5b72d9=_0x4e7f55['plugins']['get']('MergeFieldsEditing');let _0x54e796;switch(_0x5b72d9['getMergeFieldType'](_0x3b162d)){case null:return;case'image':{const _0x11db97=_0x5b72d9['unwrapAffixes'](_0x3b162d['getAttribute']('src'));_0x54e796=_0x5b72d9['getLabel'](_0x11db97)||_0x11db97;break;}default:{const _0x117f6f=_0x3b162d['getAttribute']('id');_0x54e796=_0x5b72d9['getLabel'](_0x117f6f)||_0x117f6f;break;}}return'insertion'==_0xf1356d['type']?{'type':'insertion','content':c(_0x466d67,'*Insert:*\x20%0','\x22'+_0x54e796+'\x22\x20'+c(_0x466d67,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x466d67,'*Remove:*\x20%0','\x22'+_0x54e796+'\x22\x20'+c(_0x466d67,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x51821d{['afterInit'](){const _0x46ad6b=this['editor'],_0x46d425=_0x46ad6b['plugins']['get']('TrackChangesEditing');_0x46ad6b['plugins']['has']('MultiLevelList')&&(_0x46d425['enableDefaultAttributesIntegration']('multiLevelList'),_0x46d425['registerBlockAttribute']('listMarkerStyle'),_0x46d425['descriptionFactory']['registerDescriptionCallback'](_0x3ed462=>this['handleDescriptions'](_0x3ed462)));}['handleDescriptions'](_0x19bf4f){const _0x8ec946=this['editor']['locale'],{data:_0x26f053}=_0x19bf4f,_0x4dbbd0={'type':'format','content':''};if(_0x26f053&&'listMarkerStyle'==_0x26f053['key']){if(!_0x26f053['oldValue'])return{'type':'format','content':c(_0x8ec946,'*Set\x20format:*\x20%0',c(_0x8ec946,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x26f053['newValue']+')'};if(!_0x26f053['newValue']){let _0x2eded5=_0x19bf4f['head'];for(;_0x2eded5;){if(_0x2eded5['data']&&'listType'==_0x2eded5['data']['key']&&_0x2eded5['data']['newValue'])return _0x4dbbd0;_0x2eded5=_0x2eded5['next'];}return{'type':'format','content':c(_0x8ec946,'*Remove\x20format:*\x20%0',c(_0x8ec946,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x26f053['oldValue']+')'};}}}}class bt extends _0x51821d{['afterInit'](){const _0x344530=this['editor'];if(!_0x344530['plugins']['has']('PageBreakEditing'))return;_0x344530['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x25f54d=_0x344530['plugins']['get']('TrackChangesEditing'),_0x554a48=_0x344530['locale'];_0x25f54d['descriptionFactory']['registerElementLabel']('pageBreak',_0x6ff258=>c(_0x554a48,'ELEMENT_PAGE_BREAK',_0x6ff258));}}class yt extends _0x51821d{['afterInit'](){const _0x3bace7=this['editor'];if(!_0x3bace7['plugins']['has']('Paragraph'))return;const _0x3c3674=_0x3bace7['locale'],_0x2b661b=_0x3bace7['plugins']['get']('TrackChangesEditing');_0x2b661b['descriptionFactory']['registerElementLabel']('paragraph',_0x56f049=>c(_0x3c3674,'ELEMENT_PARAGRAPH',_0x56f049)),_0x2b661b['enableDefaultAttributesIntegration']('paragraph'),_0x2b661b['enableCommand']('insertParagraph'),_0x3bace7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3bace7),{'priority':'highest'}),_0x3bace7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5996e9,_0x3a9d8b,_0x202890)=>{_0x202890['options']['showSuggestionHighlights']&&nr(_0x3bace7,{'showActiveMarker':!0x1})(_0x5996e9,_0x3a9d8b,_0x202890);},{'priority':'highest'});const _0x449df0=_0x2b661b['descriptionFactory'];_0x449df0['registerDescriptionCallback'](_0x813d80=>{if('insertion'!==_0x813d80['type'])return;const {start:_0x118fef,end:_0x1be2bf}=_0x813d80['getFirstRange']();if(!_0x118fef['isTouching'](_0x1be2bf)||!_0x118fef['nodeAfter'])return;const _0x56c57d=_0x3bace7['model']['schema'],_0x31f682=_0x118fef['nodeAfter'];return _0x56c57d['isBlock'](_0x31f682)&&!_0x56c57d['isLimit'](_0x31f682)&&_0x56c57d['checkChild'](_0x31f682,'$text')?{'type':'insertion','content':c(_0x3c3674,'*Insert:*\x20%0',_0x449df0['getItemLabel'](_0x31f682,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xac9256=this['editor'],_0x4a900a=_0xac9256['locale'];_0xac9256['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x200afc=>{if('formatBlock'!=_0x200afc['type'])return;const {data:_0x474bf3}=_0x200afc;return _0x474bf3&&'paragraph'==_0x474bf3['commandName']?{'type':'format','content':c(_0x4a900a,'*Change\x20to:*\x20%0',c(_0x4a900a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x364a03,{showActiveMarker:_0x934e2b=!0x0}={}){return(_0x174016,_0x1c6a17,_0x5962fd)=>{const _0x164a41=_0x364a03['plugins']['get']('TrackChangesEditing'),_0x5ee93f=_0x1c6a17['markerRange']['start'],_0x2dc66f=_0x1c6a17['markerRange']['end'],_0x453265=_0x364a03['model']['schema'];if(!_0x5ee93f['isTouching'](_0x2dc66f)||!_0x5ee93f['nodeAfter'])return;const _0x2f0eaa=_0x5ee93f['nodeAfter'];if(_0x453265['isBlock'](_0x2f0eaa)&&!_0x453265['isLimit'](_0x2f0eaa)&&_0x453265['checkChild'](_0x2f0eaa,'$text')){if(!_0x5962fd['consumable']['consume'](_0x1c6a17['markerRange'],_0x174016['name']))return;const {authorId:_0xaa0b67}=_0x164a41['_splitMarkerName'](_0x1c6a17['markerName']),_0x30f5fc=_0x5962fd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0xaa0b67}),_0x5b77e2=_0x5962fd['mapper']['toViewPosition'](_0x2dc66f);_0x934e2b&&_0x164a41['activeMarkers']['includes'](_0x1c6a17['markerName'])&&_0x5962fd['writer']['addClass']('ck-suggestion-marker--active',_0x30f5fc),_0x5962fd['writer']['insert'](_0x5b77e2,_0x30f5fc),_0x5962fd['mapper']['bindElementToMarker'](_0x30f5fc,_0x1c6a17['markerName']);}};}class jt extends _0x51821d{['afterInit'](){const _0xc786b2=this['editor'];_0xc786b2['commands']['get']('replaceSource')&&_0xc786b2['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x51821d{['afterInit'](){const _0x43f021=this['editor'];if(!_0x43f021['plugins']['has']('RemoveFormatEditing'))return;_0x43f021['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x239e84=this['editor'];_0x239e84['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x87a971=>{if('formatBlock'!=_0x87a971['type']&&'formatInline'!=_0x87a971['type'])return;const {data:_0x356b34}=_0x87a971;return _0x356b34&&'removeFormat'==_0x356b34['commandName']?{'type':'format','content':c(_0x239e84['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x51821d{['afterInit'](){const _0x12fba8=this['editor'];if(!_0x12fba8['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x29a651=_0x12fba8['plugins']['get']('TrackChangesEditing');_0x29a651['enableCommand']('goToPreviousRestrictedEditingException'),_0x29a651['enableCommand']('goToNextRestrictedEditingException');const _0x3aac3b=_0x12fba8['plugins']['get']('RestrictedEditingModeEditing');_0x3aac3b['enableCommand']('trackChanges'),_0x3aac3b['enableCommand']('acceptSuggestion'),_0x3aac3b['enableCommand']('discardSuggestion'),_0x3aac3b['enableCommand']('acceptAllSuggestions'),_0x3aac3b['enableCommand']('discardAllSuggestions'),_0x3aac3b['enableCommand']('acceptSelectedSuggestions'),_0x3aac3b['enableCommand']('discardSelectedSuggestions');}}class It extends _0x51821d{['afterInit'](){const _0x36f1f5=this['editor'];if(!_0x36f1f5['plugins']['has']('ShiftEnter'))return;const _0x44602b=_0x36f1f5['plugins']['get']('TrackChangesEditing');_0x44602b['enableCommand']('shiftEnter'),_0x36f1f5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x36f1f5),{'priority':'high'}),_0x36f1f5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x36f1f5),{'priority':'high'}),_0x36f1f5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1326a0,_0x524134,_0x2bee09)=>{_0x2bee09['options']['showSuggestionHighlights']&&je(_0x36f1f5,{'showActiveMarker':!0x1})(_0x1326a0,_0x524134,_0x2bee09);}),_0x44602b['descriptionFactory']['registerElementLabel']('softBreak',_0x2ba07c=>c(_0x36f1f5['locale'],'ELEMENT_LINE_BREAK',_0x2ba07c));}}function je(_0x109a7e,{showActiveMarker:_0x15409e=!0x0}={}){return(_0x5f3686,_0x354bfc,_0x7b58bb)=>{const _0xdfe739=_0x109a7e['plugins']['get']('TrackChangesEditing');if(!_0x7b58bb['consumable']['test'](_0x354bfc['markerRange'],_0x5f3686['name']))return;const _0x56159d=_0x109a7e['model'];for(const _0x3c63fe of _0x354bfc['markerRange']['getItems']()){if(!_0x3c63fe['is']('element','softBreak'))continue;const _0xcf0b66='deletion'==_0x354bfc['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0xc8be8d}=_0xdfe739['_splitMarkerName'](_0x354bfc['markerName']),_0x494430=_0x7b58bb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xcf0b66,'data-author-id':_0xc8be8d}),_0x3c8da6=_0x7b58bb['mapper']['toViewPosition'](_0x56159d['createPositionBefore'](_0x3c63fe));_0x15409e&&_0xdfe739['activeMarkers']['includes'](_0x354bfc['markerName'])&&_0x7b58bb['writer']['addClass']('ck-suggestion-marker--active',_0x494430),_0x7b58bb['writer']['insert'](_0x3c8da6,_0x494430),_0x7b58bb['mapper']['bindElementToMarker'](_0x494430,_0x354bfc['markerName']);}};}class _t extends _0x51821d{['afterInit'](){const _0x16f1ef=this['editor'],_0x49990e=_0x16f1ef['model'],_0x3a11ae=_0x16f1ef['locale'];if(!_0x16f1ef['plugins']['has']('StandardEditingModeEditing'))return;const _0x24c5f6=_0x16f1ef['plugins']['get']('TrackChangesEditing'),_0x23c490='restrictedEditingException',_0x1b2f2c=_0x16f1ef['commands']['get'](_0x23c490);_0x24c5f6['enableCommand'](_0x23c490,(_0x1cf705,_0x33067b={})=>{const _0x2a1b1a=_0x49990e['document']['selection'];if(_0x2a1b1a['isCollapsed'])return void _0x1cf705(_0x33067b);const _0x34090c=void 0x0!==_0x33067b['forceValue']?_0x33067b['forceValue']:!_0x1b2f2c['value'];_0x49990e['change'](()=>{const _0x4fafc7=Array['from'](_0x2a1b1a['getRanges']());for(const _0x36b0be of _0x4fafc7){const _0x2d797c=_0x34090c?[_0x36b0be]:io(_0x23c490,_0x36b0be,_0x49990e);for(const _0x74fe9c of _0x2d797c)_0x24c5f6['markInlineFormat'](_0x74fe9c,{'commandName':_0x23c490,'commandParams':[{'forceValue':_0x34090c}]});}});}),_0x24c5f6['descriptionFactory']['registerDescriptionCallback'](_0x2eb417=>{if('formatBlock'!=_0x2eb417['type']&&'formatInline'!=_0x2eb417['type'])return;const {data:_0x12025d}=_0x2eb417;return _0x12025d&&_0x12025d['commandName']==_0x23c490?_0x12025d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3a11ae,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x3a11ae,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x51821d{['afterInit'](){const _0x855629=this['editor'];if(!_0x855629['plugins']['has']('Style')||!_0x855629['plugins']['has']('DataSchema'))return;const _0x4e41b4=_0x855629['plugins']['get']('TrackChangesEditing'),_0x380ecb=_0x855629['locale'],_0x53a89f=_0x855629['config']['get']('style')||{},_0x3f9324=_0x855629['plugins']['get']('GeneralHtmlSupport'),_0x656262=_0x855629['plugins']['get']('StyleUtils')['normalizeConfig'](_0x855629['plugins']['get']('DataSchema'),_0x53a89f['definitions']);_0x4e41b4['enableDefaultAttributesIntegration']('style');const _0x242541=new Set();for(const _0x49a4d5 of _0x656262['block']){const _0x367dfc=_0x3f9324['getGhsAttributeNameForElement'](_0x49a4d5['element']);_0x242541['add'](_0x367dfc);}const _0x1ecdc3=new Set();for(const _0x2a19e9 of _0x656262['inline']){const _0x52c1ea=_0x3f9324['getGhsAttributeNameForElement'](_0x2a19e9['element']);_0x1ecdc3['add'](_0x52c1ea);for(const _0x15572c of _0x2a19e9['ghsAttributes'])_0x1ecdc3['add'](_0x15572c);}for(const _0xc64c8a of _0x242541)_0x4e41b4['registerBlockAttribute'](_0xc64c8a),_0x4e41b4['descriptionFactory']['registerAttributeLabel'](_0xc64c8a,c(_0x380ecb,'FORMAT_STYLE'));for(const _0x3734dc of _0x1ecdc3)_0x4e41b4['registerInlineAttribute'](_0x3734dc),_0x4e41b4['descriptionFactory']['registerAttributeLabel'](_0x3734dc,c(_0x380ecb,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bdfcc=this['editor'],_0x39d8d9=_0x5bdfcc['locale'];_0x5bdfcc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5fb72=>{if('formatBlock'!=_0x5fb72['type']&&'formatInline'!=_0x5fb72['type'])return;const {data:_0x38ab25}=_0x5fb72;return _0x38ab25&&'style'===_0x38ab25['commandName']?_0x38ab25['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x39d8d9,'*Set\x20format:*\x20%0',_0x38ab25['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x39d8d9,'*Remove\x20format:*\x20%0',_0x38ab25['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x51821d{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1fcf64){super(_0x1fcf64),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x64fbb0=this['editor'],_0x2ff4bc=_0x64fbb0['model']['document']['selection'];if(!_0x64fbb0['plugins']['has']('TableEditing'))return;const _0xa496bb=_0x64fbb0['locale'],_0x299481=_0x64fbb0['plugins']['get']('TrackChangesEditing'),_0x5d8cab=_0x64fbb0['plugins']['get']('TableUtils');_0x299481['descriptionFactory']['registerElementLabel']('table',_0x553d5f=>c(_0xa496bb,'ELEMENT_TABLE',_0x553d5f)),this['_setupColumnsRowsFixing'](),_0x299481['enableCommand']('insertTable'),_0x299481['enableCommand']('selectTableRow'),_0x299481['enableCommand']('selectTableColumn');for(const _0x5f2b62 of['insertTableRowAbove','insertTableRowBelow']){const _0x1bb469=_0x64fbb0['commands']['get'](_0x5f2b62);_0x299481['enableCommand'](_0x5f2b62,_0x418c98=>{_0x64fbb0['model']['change'](_0x5907a8=>{_0x418c98();const _0x55fb29='above'===_0x1bb469['order'],_0x1eefe7=_0x5d8cab['getSelectionAffectedTableCells'](_0x2ff4bc),_0x50e2c1=_0x5d8cab['getRowIndexes'](_0x1eefe7),_0x527806=_0x55fb29?_0x50e2c1['first']-0x1:_0x50e2c1['last']+0x1,_0x134959=_0x1eefe7[0x0]['findAncestor']('table'),_0x383a2a=_0x5d8cab['createTableWalker'](_0x134959,{'startRow':_0x527806,'endRow':_0x527806}),_0xa70a1d=Array['from'](_0x383a2a)['map'](_0x475910=>_0x5907a8['createRangeOn'](_0x475910['cell']));_0x299481['markMultiRangeInsertion'](_0xa70a1d,'tableRow');});});}for(const _0xac00e4 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5e04dd=_0x64fbb0['commands']['get'](_0xac00e4);_0x299481['enableCommand'](_0xac00e4,_0x4f3a40=>{_0x64fbb0['model']['change'](_0x2393a7=>{_0x4f3a40();const _0x41c781='left'===_0x5e04dd['order'],_0x14d52c=_0x5d8cab['getSelectionAffectedTableCells'](_0x2ff4bc),_0xaf4f42=_0x5d8cab['getColumnIndexes'](_0x14d52c),_0x46f195=_0x41c781?_0xaf4f42['first']-0x1:_0xaf4f42['last']+0x1,_0x1b74a4=_0x14d52c[0x0]['findAncestor']('table'),_0x3a28a7=_0x5d8cab['createTableWalker'](_0x1b74a4,{'startRow':0x0,'column':_0x46f195,'includeAllSlots':!0x1}),_0x2afaa4=Array['from'](_0x3a28a7)['map'](_0x4bfae5=>_0x2393a7['createRangeOn'](_0x4bfae5['cell']));_0x299481['markMultiRangeInsertion'](_0x2afaa4,'tableColumn');});});}for(const _0x10d8ba of['removeTableRow','removeTableColumn']){const _0x39f068=_0x10d8ba['substr'](0xb),_0xc56d6=_0x39f068['toLowerCase'](),_0x5f4d93=_0xc56d6['substr'](0x0,0x3)+'span',_0x59beeb='table'+_0x39f068,_0x5226f4='min'+_0x39f068,_0x26f785='max'+_0x39f068;_0x299481['enableCommand'](_0x10d8ba,()=>{_0x64fbb0['model']['change'](_0x529c58=>{const _0x20bc9b=_0x5d8cab['getSelectionAffectedTableCells'](_0x2ff4bc),_0x3c829d=_0x20bc9b[0x0]['findAncestor']('table');let _0x4bdb87;if('removeTableRow'==_0x10d8ba){const _0x568937=_0x5d8cab['getRowIndexes'](_0x20bc9b);_0x4bdb87={'startRow':_0x568937['first'],'endRow':_0x568937['last'],'includeAllSlots':!0x0};}else{const _0x3c8dd5=_0x5d8cab['getColumnIndexes'](_0x20bc9b);_0x4bdb87={'startColumn':_0x3c8dd5['first'],'endColumn':_0x3c8dd5['last'],'includeAllSlots':!0x0};}const _0x3524c1=_0x5d8cab['createTableWalker'](_0x3c829d,_0x4bdb87),_0x7f948=Array['from'](_0x3524c1)['map'](({cell:_0x2caf13})=>_0x2caf13),_0x445b3e=Ne(_0x7f948['filter'](_0x5827cb=>_0x5827cb['hasAttribute'](_0x5f4d93))),_0x163e09=Ne(_0x7f948['filter'](_0x4e4498=>!_0x4e4498['hasAttribute'](_0x5f4d93)))['map'](_0x2f47a0=>_0x529c58['createRangeOn'](_0x2f47a0)),_0x2e3930=_0x299481['markMultiRangeDeletion'](_0x163e09,_0x59beeb);if(_0x2e3930&&('tableRow'==_0x2e3930['subType']||'tableColumn'==_0x2e3930['subType'])){const _0x147c85=this['_getSuggestionCoords'](_0x2e3930);for(const _0x56cd2e of _0x445b3e){const _0x3d4519=_0x529c58['createRangeOn'](_0x56cd2e),_0xc25a10=_0x5d8cab['getCellLocation'](_0x56cd2e),_0x2a9f22=_0x56cd2e['getAttribute'](_0x5f4d93)-0x1,_0x15732b=_0x147c85[_0x5226f4],_0x23656f=_0x147c85[_0x26f785];_0x15732b<=_0xc25a10[_0xc56d6]&&_0xc25a10[_0xc56d6]+_0x2a9f22<=_0x23656f&&_0x2e3930['addRange'](_0x3d4519);}}});});}function _0x4ae348(_0x3cecca){const _0x186ac3=Array['from'](_0x2ff4bc['getRanges']())['map'](_0x2bb40d=>_0x32c262['fromRange'](_0x2bb40d));_0x64fbb0['model']['change'](_0x369485=>{const _0x3b69e1=_0x369485['batch'];_0x3cecca=_0x3cecca['filter'](_0x28c3b7=>'$graveyard'!=_0x28c3b7['root']['rootName']),_0x369485['setSelection'](_0x3cecca),_0x64fbb0['commands']['get']('removeTableRow')['refresh'](),_0x64fbb0['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x64fbb0['model']['enqueueChange'](()=>{_0x64fbb0['model']['enqueueChange'](_0x3b69e1,_0x299c29=>{const _0x5c2e7d=_0x186ac3['filter'](_0x52a58e=>'$graveyard'!=_0x52a58e['root']['rootName']);_0x5c2e7d['length']>0x0&&_0x299c29['setSelection'](_0x5c2e7d);for(const _0x51cea4 of _0x186ac3)_0x51cea4['detach']();});});});}function _0x4499c8(_0x28744a){_0x64fbb0['model']['change'](_0x4af7eb=>{const _0x5e094e=Array['from'](_0x2ff4bc['getRanges']())['map'](_0x104486=>_0x32c262['fromRange'](_0x104486)),_0x562513=[];for(const _0xce4142 of _0x28744a)for(const _0x3d0da0 of _0xce4142['getItems']({'shallow':!0x0}))_0x562513['push'](_0x3d0da0);for(const _0x27aaaf of _0x562513)'$graveyard'!=_0x27aaaf['root']['rootName']&&(_0x4af7eb['setSelection'](_0x4af7eb['createPositionAt'](_0x27aaaf,0x0)),_0x64fbb0['commands']['get']('removeTableColumn')['refresh'](),_0x64fbb0['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x165de2=_0x5e094e['filter'](_0x3955c8=>'$graveyard'!=_0x3955c8['root']['rootName']);_0x165de2['length']>0x0&&_0x4af7eb['setSelection'](_0x165de2);for(const _0x446a59 of _0x5e094e)_0x446a59['detach']();});}function _0x7337e8(_0x4c75b1,_0xa2088e){return _0xa2088e['every'](_0x3cf7f0=>_0x4c75b1['some'](_0x2cef3e=>_0x2cef3e['end']['isEqual'](_0x3cf7f0['start'])||_0x3cf7f0['end']['isEqual'](_0x2cef3e['start'])));}function _0x5ec437(_0x308d1f,_0x4f07bf){return!_0x308d1f['some'](_0x591e3d=>_0x4f07bf['some'](_0x131bf5=>_0x591e3d['isIntersecting'](_0x131bf5)))&&_0x308d1f['some'](_0x3e044d=>_0x4f07bf['some'](_0x22da23=>_0x3e044d['end']['isTouching'](_0x22da23['start'])));}_0x64fbb0['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x79fb79,_0x37fe9e,_0x495342)=>{if(!_0x495342['options']['showSuggestionHighlights'])return;const _0x39d495=_0x37fe9e['item'];if(!_0x39d495)return;const _0x22f703=_0x495342['mapper']['toViewElement'](_0x39d495);function _0x29be75(_0x38d1fe){return Array['isArray'](_0x38d1fe)?_0x38d1fe:[_0x38d1fe];}_0x22f703&&'tableCell'===_0x39d495['name']&&_0x96eb99(_0x22f703,_0x495342['writer'],(_0x49914a,_0x463d70,_0x3f5d8c)=>_0x3f5d8c['addClass'](_0x29be75(_0x463d70['classes']),_0x49914a),(_0x11357a,_0xc25ff2,_0x3d1b0e)=>_0x3d1b0e['removeClass'](_0x29be75(_0xc25ff2['classes']),_0x11357a));},{'priority':'highest'}),_0x299481['descriptionFactory']['registerDescriptionCallback'](_0x211a97=>{if('insertion'!=_0x211a97['type']&&'deletion'!=_0x211a97['type'])return;const _0x1942aa=_0x211a97['getContainedElement']();if(null!=_0x1942aa&&_0x1942aa['is']('element','table')){if('insertion'==_0x211a97['type']){const _0x3b3bd4=_0x211a97['getItems']()['filter'](_0x49b6da=>_0x49b6da['is']('$textProxy'))['map'](_0x452eff=>_0x452eff['data']);if(_0x3b3bd4['length'])return{'type':'insertion','content':c(_0xa496bb,'*Insert:*\x20%0',c(_0xa496bb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3b3bd4['join']('\x20')+'\x22'))};}if('deletion'==_0x211a97['type']){const _0x2d35ff=_0x211a97['getItems']()['filter'](_0x36e59a=>_0x36e59a['is']('$textProxy'))['map'](_0x587b4c=>_0x587b4c['data']);if(_0x2d35ff['length'])return{'type':'deletion','content':c(_0xa496bb,'*Remove:*\x20%0',c(_0xa496bb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2d35ff['join']('\x20')+'\x22'))};}}}),_0x299481['descriptionFactory']['registerDescriptionCallback'](_0x159644=>{if('tableRow'==_0x159644['subType']){const _0x5d7e39=_0x159644['getItems']()['filter'](_0x452954=>_0x452954['is']('$textProxy'))['map'](_0x5b8365=>_0x5b8365['data']),_0x381129=this['_getSuggestionCoords'](_0x159644),_0x3bbfaf=_0x381129['maxRow']-_0x381129['minRow']+0x1;if('insertion'==_0x159644['type'])return _0x5d7e39['length']?{'type':'insertion','content':c(_0xa496bb,'*Insert:*\x20%0',c(_0xa496bb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3bbfaf,'\x22'+_0x5d7e39['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0xa496bb,'*Insert:*\x20%0',c(_0xa496bb,'ELEMENT_TABLE_ROW',_0x3bbfaf))};if('deletion'==_0x159644['type'])return _0x5d7e39['length']?{'type':'deletion','content':c(_0xa496bb,'*Remove:*\x20%0',c(_0xa496bb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3bbfaf,'\x22'+_0x5d7e39['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0xa496bb,'*Remove:*\x20%0',c(_0xa496bb,'ELEMENT_TABLE_ROW',_0x3bbfaf))};}if('tableColumn'==_0x159644['subType']){const _0x5d93ab=_0x159644['getItems']()['filter'](_0x813fd8=>_0x813fd8['is']('$textProxy'))['map'](_0x323299=>_0x323299['data']),_0x106b9f=this['_getSuggestionCoords'](_0x159644),_0x2ef2e0=_0x106b9f['maxColumn']-_0x106b9f['minColumn']+0x1;if('insertion'==_0x159644['type'])return _0x5d93ab['length']?{'type':'insertion','content':c(_0xa496bb,'*Insert:*\x20%0',c(_0xa496bb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2ef2e0,'\x22'+_0x5d93ab['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0xa496bb,'*Insert:*\x20%0',c(_0xa496bb,'ELEMENT_TABLE_COLUMN',_0x2ef2e0))};if('deletion'==_0x159644['type'])return _0x5d93ab['length']?{'type':'deletion','content':c(_0xa496bb,'*Remove:*\x20%0',c(_0xa496bb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2ef2e0,'\x22'+_0x5d93ab['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0xa496bb,'*Remove:*\x20%0',c(_0xa496bb,'ELEMENT_TABLE_COLUMN',_0x2ef2e0))};}}),_0x299481['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4ae348),_0x299481['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4ae348),_0x299481['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4499c8),_0x299481['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4499c8),_0x299481['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x7337e8),_0x299481['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x7337e8),_0x299481['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5ec437),_0x299481['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5ec437);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1cf9cb=this['editor'],_0x4de1a8=_0x1cf9cb['model']['document']['selection'];return(_0x4be3d8,_0x11750c)=>{_0x1cf9cb['model']['change'](_0x156d01=>{const {commandName:_0x395986,commandParams:_0x57eace}=_0x11750c;let _0x340e27=_0x4be3d8[0x0]['end']['nodeBefore'];_0x57eace&&_0x57eace[0x0]&&!0x1===_0x57eace[0x0]['forceValue']&&(_0x340e27=_0x4be3d8[0x0]['start']['nodeAfter']);const _0x3a3a9d=_0x156d01['createRangeIn'](_0x340e27);if('$graveyard'==_0x3a3a9d['root']['rootName'])return;const _0x36e7b0=Array['from'](_0x4de1a8['getRanges']())['map'](_0x290b5e=>_0x32c262['fromRange'](_0x290b5e));_0x156d01['setSelection'](_0x3a3a9d),_0x1cf9cb['commands']['get'](_0x395986)['refresh'](),_0x57eace['push']({'forceDefaultExecution':!0x0}),_0x1cf9cb['execute'](_0x395986,..._0x57eace);const _0x3bfa0c=_0x36e7b0['filter'](_0x138d5d=>'$graveyard'!=_0x138d5d['root']['rootName']);_0x3bfa0c['length']>0x0&&_0x156d01['setSelection'](_0x3bfa0c);for(const _0x5f22bb of _0x36e7b0)_0x5f22bb['detach']();});};}['_getCoordsForCells'](_0xf6abbf){const _0x44c82b=this['editor']['plugins']['get']('TableUtils');let _0x299ffd=Number['MAX_SAFE_INTEGER'],_0xad55d8=Number['MIN_SAFE_INTEGER'],_0x3894c5=Number['MAX_SAFE_INTEGER'],_0x4022ed=Number['MIN_SAFE_INTEGER'];for(const _0x221995 of _0xf6abbf){if('$graveyard'==_0x221995['root']['rootName'])continue;const {row:_0x3f35c8,column:_0x3168bb}=_0x44c82b['getCellLocation'](_0x221995),_0x23307a=_0x221995['hasAttribute']('rowspan')?_0x221995['getAttribute']('rowspan')-0x1:0x0,_0x354575=_0x221995['hasAttribute']('colspan')?_0x221995['getAttribute']('colspan')-0x1:0x0;_0x299ffd=_0x3f35c8<_0x299ffd?_0x3f35c8:_0x299ffd,_0xad55d8=_0x3f35c8+_0x23307a>_0xad55d8?_0x3f35c8+_0x23307a:_0xad55d8,_0x3894c5=_0x3168bb<_0x3894c5?_0x3168bb:_0x3894c5,_0x4022ed=_0x3168bb+_0x354575>_0x4022ed?_0x3168bb+_0x354575:_0x4022ed;}return{'minRow':_0x299ffd,'maxRow':_0xad55d8,'minColumn':_0x3894c5,'maxColumn':_0x4022ed};}['_setupColumnsRowsFixing'](){const _0x3331f6=this['editor'],_0x3f29f4=_0x3331f6['plugins']['get']('TrackChangesEditing'),_0xc4681d=_0x3331f6['plugins']['get']('TableUtils');_0x3331f6['model']['document']['on']('change:data',()=>{const _0x48ee4e=Array['from'](_0x3331f6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x49fed7,data:_0x5d03b0}of _0x48ee4e){const {group:_0x4c6fd4,id:_0x3d2ac4,subType:_0x5a8e88}=_0x3f29f4['_splitMarkerName'](_0x49fed7);if('suggestion'!=_0x4c6fd4)continue;if(null!=_0x5d03b0['oldRange'])continue;const _0x34452c=_0x3f29f4['getSuggestion'](_0x3d2ac4);this['_tablePostFixingSubtypes']['includes'](_0x5a8e88)&&this['_tableSuggestions']['add'](_0x34452c);}},{'priority':'low'});const _0x17fa3d=(_0x3fab86,_0x549de0)=>{let _0x53b02d=!0x1;const _0x394865=_0x549de0['createRangeOn'](_0x3fab86),_0x522de5=_0x3fab86['findAncestor']('table'),_0x33a195=_0xc4681d['getCellLocation'](_0x3fab86);for(const _0x4dff44 of this['_tableSuggestions']){const _0x3f07d9=_0x4dff44['subType'],_0x5b279e=_0x3f07d9['startsWith']('tablePaste'),_0x1a70ed=_0x3f07d9['substr'](_0x5b279e?0xa:0x5),_0x31e8c8=_0x1a70ed['toLowerCase'](),_0x3a7e54=_0x31e8c8['substr'](0x0,0x3)+'span',_0x5e7d87='min'+_0x1a70ed,_0x1a6ff5='max'+_0x1a70ed;if(!_0x4dff44['isInContent'])continue;if(_0x522de5!=_0x4dff44['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4dff44['isIntersectingWithRange'](_0x394865))continue;const _0x1add1b=_0x3fab86['hasAttribute'](_0x3a7e54)?_0x3fab86['getAttribute'](_0x3a7e54)-0x1:0x0,_0x5e962b=this['_getSuggestionCoords'](_0x4dff44),_0x5d787a=_0x5e962b[_0x5e7d87],_0x568b05=_0x5e962b[_0x1a6ff5];_0x5d787a<=_0x33a195[_0x31e8c8]&&_0x33a195[_0x31e8c8]+_0x1add1b<=_0x568b05&&(_0x4dff44['addRange'](_0x394865),_0x53b02d=!0x0);}return _0x53b02d;};_0x3331f6['model']['document']['registerPostFixer'](_0x5e5807=>{let _0x2a3113=!0x1;for(const _0x5a0354 of _0x3331f6['model']['document']['differ']['getChanges']())if('insert'==_0x5a0354['type']){if('tableRow'==_0x5a0354['name']){for(const _0x1e0f45 of _0x5a0354['position']['nodeAfter']['getChildren']())_0x2a3113=_0x2a3113||_0x17fa3d(_0x1e0f45,_0x5e5807);}else'tableCell'==_0x5a0354['name']&&(_0x2a3113=_0x2a3113||_0x17fa3d(_0x5a0354['position']['nodeAfter'],_0x5e5807));}return _0x2a3113;});}['_getSuggestionCoords'](_0x1f6766){return this['_getCoordsForCells'](_0x1f6766['getRanges']()['map'](_0x2d59f8=>_0x2d59f8['start']['nodeAfter']));}}function Ne(_0x4cab12){return Array['from'](new Set(_0x4cab12)['values']());}class Nt extends _0x51821d{static get['requires'](){return[Ct];}['afterInit'](){const _0x20ebdc=this['editor'],_0x3fc174=_0x20ebdc['model']['document']['selection'],_0x41f443=_0x20ebdc['locale'];if(!_0x20ebdc['plugins']['has']('TableEditing'))return;const _0x54c024=_0x20ebdc['plugins']['get']('TrackChangesEditing'),_0x3dc19e=_0x20ebdc['plugins']['get']('TableUtils'),_0x42da07=_0x20ebdc['plugins']['get'](Ct);_0x42da07['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x54c024['enableCommand']('mergeTableCells',()=>{const _0x1de9c6=_0x3dc19e['getSelectionAffectedTableCells'](_0x20ebdc['model']['document']['selection']);_0x20ebdc['model']['change'](()=>{_0x54c024['markMultiRangeBlockFormat'](_0x1de9c6,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x20ebdc['commands']['get']('mergeTableCells')['on']('execute',(_0x18f27c,_0xac264d)=>{_0x20ebdc['commands']['get']('trackChanges')['value']&&(_0xac264d['length']>0x0&&_0xac264d[_0xac264d['length']-0x1]&&_0xac264d[_0xac264d['length']-0x1]['forceDefaultExecution']||_0x54c024['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x18f27c['stop']());},{'priority':'highest'});for(const _0x53acc7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x284383=_0x20ebdc['commands']['get'](_0x53acc7);_0x54c024['enableCommand'](_0x53acc7,()=>{const _0x4ec750=_0x20ebdc['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x239c34=>_0x239c34['is']('element','tableCell')),_0x45d9e8=_0x284383['value'];_0x20ebdc['model']['change'](()=>{_0x54c024['markMultiRangeBlockFormat']([_0x4ec750,_0x45d9e8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4ce152 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x332ab4=_0x20ebdc['commands']['get'](_0x4ce152);_0x54c024['enableCommand'](_0x4ce152,()=>{const _0x58bc3f=_0x3dc19e['getSelectionAffectedTableCells'](_0x20ebdc['model']['document']['selection'])[0x0],_0x46eda8=_0x58bc3f['findAncestor']('table'),{column:_0x8ce52a,row:_0x56f4f6}=_0x3dc19e['getCellLocation'](_0x58bc3f);let _0x2ca185=[];if('horizontally'==_0x332ab4['direction']){const _0x309eac=_0x3dc19e['createTableWalker'](_0x46eda8,{'startRow':_0x56f4f6,'endRow':_0x56f4f6,'includeAllSlots':!0x0});_0x2ca185=Array['from'](_0x309eac)['map'](_0x49790d=>_0x49790d['cell']);}else{const _0xe3fb43=_0x3dc19e['createTableWalker'](_0x46eda8,{'column':_0x8ce52a,'includeAllSlots':!0x0});_0x2ca185=Array['from'](_0xe3fb43)['map'](_0x4b32e6=>_0x4b32e6['cell']);}_0x20ebdc['model']['change'](_0x132df6=>{_0x54c024['markBlockFormat'](_0x132df6['createRangeOn'](_0x58bc3f),{'commandName':_0x4ce152,'commandParams':[]},_0x2ca185,_0x4ce152);});});}_0x54c024['descriptionFactory']['registerDescriptionCallback'](_0x229661=>{if('formatBlock'!=_0x229661['type']&&'formatInline'!=_0x229661['type'])return;const {data:_0x31d5e5}=_0x229661;return _0x31d5e5&&'mergeTableCells'==_0x31d5e5['commandName']?{'type':'format','content':c(_0x41f443,'*Merge\x20cells*')}:void 0x0;}),_0x54c024['descriptionFactory']['registerDescriptionCallback'](_0x2aff08=>{if('formatBlock'!=_0x2aff08['type']&&'formatInline'!=_0x2aff08['type'])return;const {data:_0x435766}=_0x2aff08;return _0x435766?'splitTableCellVertically'==_0x435766['commandName']?{'type':'format','content':c(_0x41f443,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x435766['commandName']?{'type':'format','content':c(_0x41f443,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x6b2cba=_0x42da07['_acceptFormatSuggestionCallbackFactory']();for(const _0x58f1a1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x54c024['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x58f1a1,'accept',_0x6b2cba);for(const _0x7f9779 of['splitTableCellVertically','splitTableCellHorizontally'])_0x54c024['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x7f9779,'accept',_0x6b2cba);_0x54c024['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x327476=>{_0x20ebdc['model']['change'](_0x441396=>{const _0x518065=Array['from'](_0x3fc174['getRanges']())['map'](_0x31ff9a=>_0x32c262['fromRange'](_0x31ff9a));_0x441396['setSelection'](_0x327476),_0x20ebdc['commands']['get']('mergeTableCells')['refresh'](),_0x20ebdc['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4faa51=_0x518065['filter'](_0x1214d9=>'$graveyard'!=_0x1214d9['root']['rootName']);_0x4faa51['length']>0x0&&_0x441396['setSelection'](_0x4faa51);for(const _0x101a47 of _0x518065)_0x101a47['detach']();});});for(const _0x43dcc9 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2055df=_0x20ebdc['commands']['get'](_0x43dcc9);_0x2055df['on']('set:isEnabled',(_0x5eb123,_0x541394,_0x173f13)=>{if(_0x173f13){const _0x5ba949=_0x20ebdc['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x597c49=>_0x597c49['is']('element','tableCell'));this['_areMergableCells'](_0x2055df['value'],_0x5ba949)||(_0x5eb123['return']=!0x1,_0x5eb123['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x33b346=this['editor']['commands']['get']('mergeTableCells'),_0x224c8d=this['editor']['plugins']['get']('TableUtils');if(!_0x33b346['isEnabled'])return!0x1;const _0xdc97f9=_0x224c8d['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5406f4 of _0xdc97f9)for(const _0x999fb of _0xdc97f9)if(_0x5406f4!=_0x999fb&&!this['_areMergableCells'](_0x5406f4,_0x999fb))return!0x1;return!0x0;}['_areMergableCells'](_0x1ac6bd,_0x339f43){const _0x1a3e9d=this['editor']['plugins']['get']('TrackChangesEditing'),_0xce91a4=this['editor']['model']['createRangeOn'](_0x1ac6bd),_0xa4d2ef=this['editor']['model']['createRangeOn'](_0x339f43),_0x75595a=new Set(),_0x4f89a9=new Set();for(const _0x11286f of _0x1a3e9d['getSuggestions']())if(('insertion'==_0x11286f['type']||'deletion'==_0x11286f['type']||'mergeTableCells'==_0x11286f['subType'])&&_0x11286f['isInContent']){for(const _0x4f2b4d of _0x11286f['getRanges']())_0x4f2b4d['containsRange'](_0xce91a4,!0x0)&&_0x75595a['add'](_0x11286f['type']+':'+_0x11286f['author']['id']),_0x4f2b4d['containsRange'](_0xa4d2ef,!0x0)&&_0x4f89a9['add'](_0x11286f['type']+':'+_0x11286f['author']['id']);}if(_0x75595a['size']!=_0x4f89a9['size'])return!0x1;for(const _0x57e44 of _0x75595a)if(!_0x4f89a9['has'](_0x57e44))return!0x1;return!0x0;}}class Dt extends _0x51821d{static get['requires'](){return[Ct];}['afterInit'](){const _0x44505f=this['editor'];if(!_0x44505f['plugins']['has']('TableEditing'))return;const _0xede646=_0x44505f['locale'],_0x3a4201=_0x44505f['plugins']['get']('TrackChangesEditing');_0x3a4201['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3a4201['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3a4201['registerBlockAttribute']('headingRows'),_0x3a4201['registerBlockAttribute']('headingColumns'),_0x3a4201['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0xede646,'FORMAT_HEADER_ROW')),_0x3a4201['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0xede646,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x56af7b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bfdc3=this['editor']['plugins']['get']('TableUtils'),_0xff02c4=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x30555c({showActiveMarker:_0x226911=!0x0,setDataAttribute:_0x74c914=!0x0}={}){return(_0x2035d7,_0x3ae6f8,_0x3568b4)=>{const {type:_0x5c1eef,id:_0x4ffbee}=_0x56af7b['_splitMarkerName'](_0x3ae6f8['markerName']),_0x36949c=_0x56af7b['getSuggestion'](_0x4ffbee),_0x1851e2=_0x36949c['data'];if('formatBlock'!=_0x36949c['type']||!_0x1851e2||'setTableColumnHeader'!=_0x1851e2['commandName'])return;if(_0x3ae6f8['item'])return void _0x2035d7['stop']();if(!_0x3568b4['consumable']['consume'](_0x3ae6f8['markerRange'],_0x2035d7['name']))return;const _0x299d00=_0x3ae6f8['markerRange']['start']['nodeAfter'],_0x394783=_0x3ae6f8['markerRange']['end']['nodeBefore'],_0x18418c=_0x299d00['parent']['parent'],{column:_0x3dac76}=_0x5bfdc3['getCellLocation'](_0x299d00),{column:_0x54b442}=_0x5bfdc3['getCellLocation'](_0x394783);for(let _0x162d9a=_0x3dac76;_0x162d9a<=_0x54b442;_0x162d9a++){const _0x3c4b9e=_0x5bfdc3['createTableWalker'](_0x18418c,{'column':_0x162d9a,'includeAllSlots':!0x1});for(const _0x16af62 of _0x3c4b9e){const _0x5d0c68=_0x16af62['cell'],_0x6d900c=_0x3568b4['mapper']['toViewElement'](_0x5d0c68);_0x3568b4['writer']['addClass']('ck-suggestion-marker-'+_0x5c1eef,_0x6d900c),_0x74c914&&_0x3568b4['writer']['setAttribute']('data-suggestion',_0x4ffbee,_0x6d900c),_0x3568b4['mapper']['bindElementToMarker'](_0x6d900c,_0x3ae6f8['markerName']),_0x226911&&(_0x56af7b['activeMarkers']['includes'](_0x3ae6f8['markerName'])?_0x3568b4['writer']['addClass']('ck-suggestion-marker--active',_0x6d900c):_0x3568b4['writer']['removeClass']('ck-suggestion-marker--active',_0x6d900c));}}};}_0x56af7b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xff02c4),_0x56af7b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xff02c4),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x30555c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x209962,_0x4bdb50,_0x1a923e)=>{_0x1a923e['options']['showSuggestionHighlights']&&_0x30555c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x209962,_0x4bdb50,_0x1a923e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1d03b7,_0x3c8482,_0x4fae59)=>{const {type:_0x1c4377,id:_0x5d46f7}=_0x56af7b['_splitMarkerName'](_0x3c8482['markerName']),_0x4575ae=_0x56af7b['getSuggestion'](_0x5d46f7),_0x5a41fa=_0x4575ae['data'];if('formatBlock'!=_0x4575ae['type']||!_0x5a41fa||'setTableColumnHeader'!=_0x5a41fa['commandName'])return;const _0x50169d=_0x4fae59['mapper']['markerNameToElements'](_0x3c8482['markerName']);if(_0x50169d){for(const _0x10e3e2 of _0x50169d)_0x4fae59['writer']['removeClass']('ck-suggestion-marker-'+_0x1c4377,_0x10e3e2),_0x4fae59['writer']['removeClass']('ck-suggestion-marker--active',_0x10e3e2),_0x4fae59['writer']['removeAttribute']('data-suggestion',_0x10e3e2),_0x4fae59['mapper']['unbindElementFromMarkerName'](_0x10e3e2,_0x3c8482['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x234b91=this['editor'],_0x1d97a7=_0x234b91['locale'];function _0x1da55b(_0x36c0a7){return{'type':'format','content':c(_0x1d97a7,'*Format:*\x20%0',_0x36c0a7)};}_0x234b91['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dc15e=>{if('formatBlock'!=_0x5dc15e['type'])return;const {data:_0x4a0c6d}=_0x5dc15e;if(_0x4a0c6d){if('setTableRowHeader'==_0x4a0c6d['commandName']){const _0x2b00c0=_0x4a0c6d['commandParams'][0x0]['forceValue'];return _0x1da55b(c(_0x1d97a7,_0x2b00c0?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4a0c6d['commandName']){const _0x18a060=_0x4a0c6d['commandParams'][0x0]['forceValue'];return _0x1da55b(c(_0x1d97a7,_0x18a060?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x51821d{['afterInit'](){const _0x5d638d=this['editor'],_0x6b4440=_0x5d638d['locale'],_0x49a546=_0x5d638d['plugins']['get']('TrackChangesEditing');function _0x3d29e2(_0x5c5fc2){return{'type':'format','content':''+c(_0x6b4440,'*Set\x20table\x20type:*\x20%0',_0x5c5fc2)};}_0x5d638d['plugins']['has']('TableLayout')&&(_0x49a546['enableCommand']('insertTableLayout'),_0x49a546['enableDefaultAttributesIntegration']('tableType'),_0x49a546['registerBlockAttribute']('tableType'),_0x49a546['descriptionFactory']['registerElementLabel'](_0xe2cec3=>_0xe2cec3['is']('element','table')&&'layout'===_0xe2cec3['getAttribute']('tableType'),_0x57153f=>c(_0x6b4440,'ELEMENT_LAYOUT_TABLE',_0x57153f)),_0x49a546['descriptionFactory']['registerDescriptionCallback'](_0x9bb6c2=>{const {data:_0x490233}=_0x9bb6c2;if(_0x490233&&'tableType'==_0x490233['key'])switch(_0x490233['newValue']){case'layout':return _0x3d29e2(c(_0x6b4440,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3d29e2(c(_0x6b4440,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x2ad92a=>[_0x2ad92a,null]));class $t extends _0x51821d{static get['requires'](){return[Ct];}['afterInit'](){const _0x2f45b3=this['editor'];if(!_0x2f45b3['plugins']['has']('TableClipboard'))return;const _0x391e03=_0x2f45b3['plugins']['get']('TrackChangesEditing'),_0x3e6a5e=_0x2f45b3['plugins']['get']('TableUtils'),_0x2f8d09=_0x2f45b3['plugins']['get'](Ct),_0x3672db=_0x2f45b3['plugins']['get']('TableClipboard'),_0x18c0f9=_0x2f45b3['plugins']['get']('TableSelection'),_0x5e1eb0=_0x2f45b3['plugins']['get'](_0x2d79c0);_0x2f8d09['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2f45b3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2f45b3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x522ad3=null,_0x105be9=!0x1;_0x5e1eb0['on']('contentInsertion',(_0x554eb6,_0x3b948c)=>{_0x105be9='paste'===_0x3b948c['method'];}),_0x2f45b3['model']['on']('insertContent',(_0x3dbaaf,_0x33477f)=>{if(!_0x105be9&&null===_0x18c0f9['getSelectedTableCells']())return;const [_0xff4263,_0xc53288]=_0x33477f,_0x3ab160=_0x33477f[_0x33477f['length']-0x1];_0x3ab160&&_0x3ab160['forceDefaultExecution']||_0x391e03['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x144f4e,_0x4df2f4,_0xefc3d2,_0x29cb8a,_0x3498ab){if(_0x4df2f4&&!_0x4df2f4['is']('documentSelection'))return!0x1;const _0x5a5a5d=_0x3498ab['getTableIfOnlyTableInContent'](_0x144f4e,_0xefc3d2);if(!_0x5a5a5d||!De(_0x5a5a5d,void 0x0,_0x29cb8a))return!0x1;const _0x3ca9d7=_0x29cb8a['getSelectionAffectedTableCells'](_0xefc3d2['document']['selection']);if(!_0x3ca9d7['length'])return!0x1;const _0x3386ae=_0x3ca9d7[0x0]['findAncestor']('table'),_0x46dbd1=_0x29cb8a['getRowIndexes'](_0x3ca9d7),_0x109405=_0x29cb8a['getColumnIndexes'](_0x3ca9d7),_0x28bd58={'startRow':_0x46dbd1['first'],'endRow':_0x46dbd1['last'],'startColumn':_0x109405['first'],'endColumn':_0x109405['last']};return 0x1==_0x3ca9d7['length']&&(_0x28bd58['endRow']+=_0x29cb8a['getRows'](_0x5a5a5d)-0x1,_0x28bd58['endColumn']+=_0x29cb8a['getColumns'](_0x5a5a5d)-0x1),De(_0x3386ae,_0x28bd58,_0x29cb8a);}(_0xff4263,_0xc53288,_0x2f45b3['model'],_0x3e6a5e,_0x3672db)&&(_0x3dbaaf['stop'](),_0x522ad3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2f45b3['model']['change'](()=>{_0x2f45b3['model']['insertContent'](_0x33477f[0x0],_0x33477f[0x1],_0x33477f[0x2],{'forceDefaultExecution':!0x0});const _0x516adb=_0x28fc1d(),{rowInsertionRanges:_0x944161,columnInsertionRanges:_0x21a7d7,insertionRanges:_0x4474b3,deletionRanges:_0x4988f4,cells:_0x3bec74}=_0x522ad3;_0x944161['length']&&_0x391e03['markMultiRangeInsertion'](_0x944161,'tablePasteRow',{'tablePasteChainId':_0x516adb}),_0x21a7d7['length']&&_0x391e03['markMultiRangeInsertion'](_0x21a7d7,'tablePasteColumn',{'tablePasteChainId':_0x516adb}),_0x4474b3['length']&&(_0x391e03['markMultiRangeInsertion'](_0x4474b3,'tablePaste',{'tablePasteChainId':_0x516adb,'skipNestingCheck':!0x0}),_0x4474b3['forEach'](_0x553cfe=>_0x553cfe['detach']?.())),_0x4988f4['length']&&(_0x391e03['markMultiRangeDeletion'](_0x4988f4,'tablePaste',{'tablePasteChainId':_0x516adb,'skipNestingCheck':!0x0}),_0x4988f4['forEach'](_0x46de93=>_0x46de93['detach']?.()));const _0x234561=_0x391e03['markMultiRangeBlockFormat'](_0x3bec74['map'](({element:_0x2f9388})=>_0x2f9388),{'formatGroupId':_0x28fc1d()},[],'tablePasteCell',{'tablePasteChainId':_0x516adb});if(_0x234561){const _0x2fd0e1=_0x234561['getMarkers'](),_0x5afbb7=[];for(const {element:_0x40c583,attributes:_0x254ab7}of _0x3bec74){if(!_0x254ab7)continue;const _0xf6d046=_0x2f45b3['model']['createRangeOn'](_0x40c583),_0x16f5b7=_0x2fd0e1['find'](_0x188a4e=>_0x188a4e['getRange']()['isEqual'](_0xf6d046));_0x16f5b7&&_0x5afbb7['push']([_0x16f5b7['name'],_0x254ab7]);}_0x5afbb7['length']&&_0x234561['setAttribute']('markerAttributes',Object['fromEntries'](_0x5afbb7));}_0x522ad3=null;}));},{'priority':_0x2fc864['high']+0xa}),_0x5e1eb0['on']('contentInsertion',()=>{_0x105be9=!0x1;},{'priority':'lowest'}),_0x2f45b3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1b6f03,_0x3469d7)=>{const [_0x5981ad,_0x571be9,,_0x1df94f]=_0x3469d7;if(!_0x522ad3)return;_0x1b6f03['stop']();const _0x463c7c=_0x5981ad['cell'],_0x30addc=_0x571be9,_0x23b8fd=Ue(_0x463c7c),_0x4707f0=Ue(_0x30addc);_0x1b6f03['return']=_0x463c7c;let _0xb15280=null,_0x94e4b7=null;if(_0x4707f0||_0x23b8fd){if(_0x23b8fd&&!_0x4707f0){_0x1df94f['remove'](_0x463c7c['getChild'](0x0));for(const _0x1f606d of Array['from'](_0x30addc['getChildren']()))_0x1df94f['insert'](_0x1f606d,_0x463c7c,'end');const _0xb54792=_0x522ad3['rowInsertionIndexes']['includes'](_0x5981ad['row']),_0x9ba453=_0x522ad3['columnInsertionIndexes']['includes'](_0x5981ad['column']);_0xb54792||_0x9ba453||(_0xb15280=_0x32c262['fromRange'](_0x1df94f['createRangeIn'](_0x463c7c)));}else _0x4707f0&&!_0x23b8fd&&(_0x94e4b7=_0x1df94f['createRangeIn'](_0x463c7c));}else{const _0x1cedd4=_0x1df94f['createElement']('tableCellSuggestion'),_0x3b7594=_0x1df94f['createElement']('tableCellSuggestion');_0x1df94f['wrap'](_0x1df94f['createRangeIn'](_0x463c7c),_0x3b7594),_0x1df94f['insert'](_0x1cedd4,_0x463c7c,0x0);for(const _0x584965 of Array['from'](_0x30addc['getChildren']()))_0x1df94f['insert'](_0x584965,_0x1cedd4,'end');_0xb15280=_0x32c262['fromRange'](_0x1df94f['createRangeOn'](_0x1cedd4)),_0x94e4b7=_0x32c262['fromRange'](_0x1df94f['createRangeOn'](_0x3b7594));}const _0xcb0b06=Array['from'](_0x30addc['getAttributes']())['filter'](([_0x35c21a])=>xe['includes'](_0x35c21a));_0x522ad3['cells']['push']({'element':_0x463c7c,'attributes':_0xcb0b06['length']?Object['fromEntries'](_0xcb0b06):null}),_0xb15280&&_0x522ad3['insertionRanges']['push'](_0xb15280),_0x94e4b7&&_0x522ad3['deletionRanges']['push'](_0x94e4b7);},{'priority':'high'}),_0x3e6a5e['on']('insertColumns',(_0x5be766,_0x2e8bfb)=>{const [_0x18559b,_0x32533f={}]=_0x2e8bfb;if(!_0x522ad3)return;const _0x389aee=_0x32533f['at']||0x0,_0x5d95df=_0x32533f['columns']||0x1;_0x522ad3['columnInsertionIndexes']=new Array(_0x5d95df)['fill'](_0x389aee)['map']((_0x4cf757,_0x6e3f10)=>_0x4cf757+_0x6e3f10);for(const {cell:_0x363cc4}of _0x3e6a5e['createTableWalker'](_0x18559b,{'startColumn':_0x389aee,'endColumn':_0x389aee+_0x5d95df-0x1}))_0x522ad3['columnInsertionRanges']['push'](_0x2f45b3['model']['createRangeOn'](_0x363cc4));},{'priority':'low'}),_0x3e6a5e['on']('insertRows',(_0x1c6e54,_0x295b0e)=>{const [_0x4ad49d,_0xcbdc1a={}]=_0x295b0e;if(!_0x522ad3)return;const _0x16c3c4=_0xcbdc1a['at']||0x0,_0xa199ba=_0xcbdc1a['rows']||0x1;_0x522ad3['rowInsertionIndexes']=new Array(_0xa199ba)['fill'](_0x16c3c4)['map']((_0x4ff7b5,_0x807019)=>_0x4ff7b5+_0x807019);for(const {cell:_0x118b5b}of _0x3e6a5e['createTableWalker'](_0x4ad49d,{'startRow':_0x16c3c4,'endRow':_0x16c3c4+_0xa199ba-0x1}))_0x522ad3['rowInsertionRanges']['push'](_0x2f45b3['model']['createRangeOn'](_0x118b5b));},{'priority':'low'}),_0x391e03['descriptionFactory']['registerDescriptionCallback'](_0x2f14bb=>{if(_0x2f14bb['subType']&&_0x2f14bb['subType']['startsWith']('tablePaste'))return _0x2f14bb['previous']?{}:{'type':'insertion','content':c(_0x2f45b3['locale'],'*Replace\x20table\x20cells*')};});const _0x8eb5c0=()=>!0x1;for(const _0x4d4293 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x391e03['_suggestionFactory']['registerCustomCallback']('insertion',_0x4d4293,'join',_0x8eb5c0),_0x391e03['_suggestionFactory']['registerCustomCallback']('deletion',_0x4d4293,'join',_0x8eb5c0),_0x391e03['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4d4293,'join',_0x8eb5c0);_0x391e03['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x8eb5c0),_0x391e03['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x256ff3,_0x1b82e4,_0x2c5f7e)=>{const _0x2dcb5b=_0x256ff3['map'](_0xb5a432=>_0xb5a432['getContainedElement']())['filter'](_0x119546=>_0x119546),_0x4e6ec8=new Map(_0x2dcb5b['map'](_0x3cd69c=>[_0x3cd69c,null]));if(_0x522ad3){for(const {element:_0x2761e9,attributes:_0x5efe85}of _0x522ad3['cells'])_0x5efe85&&_0x4e6ec8['set'](_0x2761e9,_0x5efe85);}else{if(_0x2c5f7e&&_0x2c5f7e['markerAttributes'])for(const [_0x583f54,_0x938f4a]of Object['entries'](_0x2c5f7e['markerAttributes'])){const _0x19c208=_0x2f45b3['model']['markers']['get'](_0x583f54),_0xd3640e=_0x19c208?_0x19c208['getRange']()['getContainedElement']():null;_0xd3640e&&_0x4e6ec8['set'](_0xd3640e,_0x938f4a);}}_0x2f45b3['model']['change'](_0x455158=>{for(const [_0x255aec,_0x449ec1]of _0x4e6ec8)_0x455158['setAttributes']({...Oe,..._0x449ec1},_0x255aec);});});const _0x40c15d=(_0x1b2a00,_0x15fb98)=>{_0x391e03['_suggestionFactory']['registerCustomCallback'](_0x1b2a00,'tablePaste',_0x15fb98,(_0xba1edf,_0x3595bc,_0x2c22b6)=>{_0x2f45b3['model']['change'](_0x234d47=>{const _0x3e4899=[];for(const _0x4acea4 of _0xba1edf){const _0x4cda51=_0x4acea4['start']['nodeAfter'];_0x4cda51['is']('element','tableCellSuggestion')&&_0x3e4899['push'](_0x4cda51);}_0x391e03['_suggestionFactory']['getSuggestionCallback'](_0x1b2a00,null,_0x15fb98)(_0xba1edf,_0x3595bc,_0x2c22b6);for(const _0xde638f of _0x3e4899)'$graveyard'!=_0xde638f['root']['rootName']&&_0x234d47['unwrap'](_0xde638f);});});};_0x40c15d('insertion','accept'),_0x40c15d('insertion','discard'),_0x40c15d('deletion','accept'),_0x40c15d('deletion','discard'),_0x391e03['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4b6b9b=>{const _0x2125fc=_0x4b6b9b['map'](_0x13ce09=>_0x13ce09['getContainedElement']()),_0x25ccaa=_0x2125fc[0x0]['findAncestor']('table'),{minRow:_0x342a4d,maxRow:_0x4c369a}=_0x2f8d09['_getCoordsForCells'](_0x2125fc);_0x3e6a5e['removeRows'](_0x25ccaa,{'at':_0x342a4d,'rows':_0x4c369a-_0x342a4d+0x1});}),_0x391e03['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2d88a2=>{const _0x576f4f=_0x2d88a2['map'](_0x13fc89=>_0x13fc89['getContainedElement']()),_0x4680a7=_0x576f4f[0x0]['findAncestor']('table'),{minColumn:_0x18afe3,maxColumn:_0xb5cb8a}=_0x2f8d09['_getCoordsForCells'](_0x576f4f);_0x3e6a5e['removeColumns'](_0x4680a7,{'at':_0x18afe3,'columns':_0xb5cb8a-_0x18afe3+0x1});});const _0x54cc0c=(_0x1e133f,_0x4c5b03)=>{if(!_0x4c5b03['subType']||!_0x4c5b03['subType']['startsWith']('tablePaste'))return;const _0x45433b=_0x4c5b03['attributes']['tablePasteChainId'],_0x49a34f=_0x391e03['getSuggestions']()['filter'](_0x33dbd4=>_0x33dbd4['isInContent']&&_0x33dbd4['attributes']&&_0x33dbd4['attributes']['tablePasteChainId']==_0x45433b);_0x49a34f['length']&&_0x4c5b03['getAllAdjacentSuggestions']()['length']!=_0x49a34f['length']&&_0x49a34f['reduce']((_0x2237f4,_0x480ceb)=>(_0x2237f4['next']=_0x480ceb,_0x480ceb['previous']=_0x2237f4,_0x480ceb));};function _0xd22986(_0x56b802,_0x35a15a=!0x0){const {id:_0x2af6e8,authorId:_0x1ddcb4}=_0x391e03['_splitMarkerName'](_0x56b802['markerName']),_0x2d6850=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x448109=_0x391e03['activeMarkers']['includes'](_0x56b802['markerName']);return _0x448109&&_0x2d6850['push']('ck-suggestion-marker--active'),{'classes':_0x2d6850,'attributes':{'data-suggestion':_0x2af6e8,'data-author-id':_0x1ddcb4},'priority':_0x448109&&_0x35a15a?0xbc2:0xbb8};}_0x391e03['on']('suggestionLoaded',_0x54cc0c,{'priority':'high'}),_0x391e03['on']('suggestionUnloaded',_0x54cc0c,{'priority':'high'}),_0x2f45b3['model']['document']['registerPostFixer'](()=>{let _0x56f647=!0x1;const _0x5c2e20=Array['from'](_0x2f45b3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x200ebc,data:_0x2c1ae0}of _0x5c2e20){const {group:_0x2bb903,type:_0x37b0ba,id:_0x17f6ef}=_0x391e03['_splitMarkerName'](_0x200ebc);if('suggestion'!=_0x2bb903||'deletion'!=_0x37b0ba||_0x2c1ae0['oldRange'])continue;if(!_0x391e03['hasSuggestion'](_0x17f6ef))continue;const _0x31c445=_0x391e03['getSuggestion'](_0x17f6ef)['getRanges'](),_0x10cf86=_0x2f45b3['plugins']['get']('Users')['me'];for(const _0xa03a84 of _0x391e03['getSuggestions']()){if(!_0xa03a84['isInContent']||_0xa03a84['author']!=_0x10cf86)continue;if('formatBlock'!=_0xa03a84['type']||'tablePasteCell'!=_0xa03a84['subType'])continue;if(_0xa03a84['getRanges']()['every'](_0x4d97f7=>_0x31c445['some'](_0x44014f=>_0x44014f['containsRange'](_0x4d97f7,!0x0)))){for(const _0x335208 of _0xa03a84['getAllAdjacentSuggestions']())_0x335208['isInContent']&&(_0x335208['discard'](),_0x56f647=!0x0);}}}return _0x56f647;}),_0x2f45b3['model']['document']['registerPostFixer'](_0x167824=>{const _0x27474b=_0x2f45b3['commands']['get']('redo');if(!_0x27474b||!_0x27474b['_createdBatches']['has'](_0x167824['batch']))return!0x1;let _0x3c5a0f=!0x1;const _0x47a1e8=_0x2f45b3['plugins']['get']('Users')['me'],_0x15ae0f=_0x2f45b3['model']['document']['differ']['getChanges'](),_0x25ab99=Array['from'](_0x2f45b3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x294344,data:_0x561d2e})=>{const {group:_0x41e881,subType:_0x144723,authorId:_0x1eed0a}=_0x391e03['_splitMarkerName'](_0x294344);return'suggestion'==_0x41e881&&'tablePaste'==_0x144723&&_0x1eed0a==_0x47a1e8['id']&&!_0x561d2e['oldRange'];});for(const _0x4496b8 of _0x15ae0f){if('insert'!=_0x4496b8['type']||'tableCellSuggestion'!=_0x4496b8['name']||0x1!=_0x4496b8['length'])continue;const _0x341ff7=_0x167824['createRange'](_0x4496b8['position'],_0x4496b8['position']['getShiftedBy'](0x1));if(!_0x25ab99['find'](({data:_0x3be8b0})=>_0x3be8b0['newRange']['isEqual'](_0x341ff7))){for(const {name:_0x1aabea,data:_0x39ff51}of _0x25ab99)if(_0x341ff7['containsRange'](_0x39ff51['newRange'])){_0x167824['updateMarker'](_0x1aabea,{'range':_0x341ff7}),_0x3c5a0f=!0x0;break;}}}return _0x3c5a0f;}),_0x2f45b3['model']['document']['registerPostFixer'](_0x2b6de6=>{let _0x1a6cf8=!0x1;const _0x94b875=_0x2f45b3['plugins']['get']('Users')['me'],_0x251965=_0x391e03['getSuggestions']()['filter'](_0x3ee494=>_0x3ee494['isInContent']&&_0x3ee494['author']==_0x94b875),_0x2dec73=new Set(),_0x1d362a=new Set();for(const _0x19c365 of _0x251965)if('tablePaste'==_0x19c365['subType'])for(const _0x4c7ed2 of _0x19c365['getMarkers']()){const _0x5344d5=_0x4c7ed2['getRange']()['getContainedElement']();if(_0x5344d5){if(_0x5344d5['is']('element','tableCellSuggestion')&&Ue(_0x5344d5)){_0x19c365['removeMarker'](_0x4c7ed2['name']),_0x2dec73['add'](_0x5344d5),_0x1a6cf8=!0x0;const _0x43befd=_0x5344d5['nextSibling'],_0x213309=_0x5344d5['previousSibling'],_0x5c8dd8=_0x43befd&&_0x43befd['is']('element','tableCellSuggestion'),_0x264cb1=_0x213309&&_0x213309['is']('element','tableCellSuggestion');_0x5c8dd8&&!_0x2dec73['has'](_0x43befd)&&_0x1d362a['add'](_0x43befd),_0x264cb1&&!_0x2dec73['has'](_0x213309)&&_0x1d362a['add'](_0x213309);}else _0x5344d5['is']('element','paragraph')&&_0x5344d5['isEmpty']&&(_0x19c365['removeMarker'](_0x4c7ed2['name']),_0x1a6cf8=!0x0);}}else{if('tablePasteCell'==_0x19c365['subType']){if(!_0x19c365['attributes']||!_0x19c365['attributes']['tablePasteChainId'])continue;const _0x2a010d=_0x19c365['attributes']['markerAttributes'];if(_0x2a010d&&Object['keys'](_0x2a010d)['length'])continue;const _0xaa293f=_0x19c365['attributes']['tablePasteChainId'];let _0x4c15a5=!0x0,_0x1912cd=!0x0;for(const _0x106f13 of _0x251965)if(_0x106f13['subType']&&_0x106f13['subType']['startsWith']('tablePaste')){if(!_0x106f13['attributes']['tablePasteChainId']){_0x1912cd=!0x1;break;}if(_0x106f13['id']!=_0x19c365['id']&&_0x106f13['attributes']['tablePasteChainId']==_0xaa293f){_0x4c15a5=!0x1;break;}}_0x1912cd&&_0x4c15a5&&(_0x19c365['removeMarkers'](),_0x1a6cf8=!0x0);}}for(const _0x38862f of _0x2dec73)_0x2b6de6['remove'](_0x38862f);for(const _0x2f5b98 of _0x1d362a)_0x2b6de6['unwrap'](_0x2f5b98);return _0x1a6cf8;}),_0x2f45b3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x29042a=>_0xd22986(_0x29042a),'converterPriority':'high'}),_0x2f45b3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4666e4,_0x2bb3d4)=>_0x2bb3d4['options']['showSuggestionHighlights']?_0xd22986(_0x4666e4,!0x1):null,'converterPriority':'high'});const _0x21ca2f=_0x2f45b3['editing']['view'];this['listenTo'](_0x21ca2f['document'],'clipboardOutput',(_0x286127,_0x324381)=>{const _0x1b5707=[];for(const _0x2c5ec4 of _0x21ca2f['createRangeIn'](_0x324381['content'])['getItems']())_0x2c5ec4['is']('element','suggestion-td')&&_0x1b5707['push'](_0x2c5ec4);_0x21ca2f['change'](_0x28dba9=>{for(const _0x2d0b22 of _0x1b5707)_0x28dba9['move'](_0x28dba9['createRangeIn'](_0x2d0b22),_0x28dba9['createPositionBefore'](_0x2d0b22)),_0x28dba9['remove'](_0x2d0b22);});});}}function Ue(_0x112bd8){if(_0x112bd8['isEmpty'])return!0x0;const _0x53c03e=_0x112bd8['getChild'](0x0);return _0x53c03e['is']('element','paragraph')&&_0x53c03e['isEmpty'];}function De(_0x213e2e,_0x1bd090={},_0x1b5f1c){for(const {isAnchor:_0x46c8e8,cellHeight:_0x3bc210,cellWidth:_0x526567}of _0x1b5f1c['createTableWalker'](_0x213e2e,{'includeAllSlots':!0x0,..._0x1bd090}))if(!_0x46c8e8||0x1!=_0x3bc210||0x1!=_0x526567)return!0x1;return!0x0;}class Bt extends _0x51821d{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2f0b26=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f0b26['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2f0b26['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2f0b26['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2f0b26['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2f0b26['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2f0b26['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x59f088,_0x232f60){const _0x563447=this['editor']['plugins']['get']('TrackChangesEditing'),_0xdcddb6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2970c9=_0x232f60['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x898723=_0xdcddb6['getColumnGroupElement'](_0x2970c9);let _0x251d9f=_0x898723?_0xdcddb6['getTableColumnsWidths'](_0x898723):null,_0x39c8e0=_0x2970c9['getAttribute']('tableWidth')||null;const _0x474537=_0x232f60['tableWidth']||_0x39c8e0,_0x3a83be=_0x232f60['columnWidths']||_0x251d9f,_0x599b4f=this['editor']['plugins']['get']('Users')['me'];for(const _0x4b543e of _0x563447['getSuggestions']()){const _0x307b77=_0x4b543e['getContainedElement']();if('resizeTable'===_0x4b543e['subType']&&_0x307b77===_0x2970c9){_0x4b543e['author']!==_0x599b4f&&_0x4b543e['discard']();const _0xc43697=_0x4b543e['data']['commandParams'];_0x39c8e0=_0xc43697[0x0]['tableWidth'],_0x251d9f=_0xc43697[0x0]['columnWidths'];break;}}_0x59f088({'table':_0x2970c9,'tableWidth':_0x474537,'columnWidths':_0x3a83be}),_0x563447['markBlockFormat'](_0x2970c9,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x39c8e0,'columnWidths':_0x251d9f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x19ad07){if('formatBlock'!=_0x19ad07['type']&&'formatInline'!=_0x19ad07['type'])return;const {data:_0x1b12fd}=_0x19ad07;if(_0x1b12fd&&'resizeTable'===_0x1b12fd['formatGroupId']){const _0x50b2d5='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x50b2d5)};}}}class Ot extends _0x51821d{['afterInit'](){const _0x2700e4=this['editor'];_0x2700e4['plugins']['has']('Template')&&_0x2700e4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x51821d{['afterInit'](){const _0x1ac4d9=this['editor'];if(!_0x1ac4d9['commands']['get']('insertTableOfContents'))return;_0x1ac4d9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x36b9a6=_0x1ac4d9['plugins']['get']('TrackChangesEditing'),_0x5080af=_0x1ac4d9['locale'];_0x36b9a6['descriptionFactory']['registerElementLabel']('tableOfContents',_0x31cd81=>c(_0x5080af,'ELEMENT_TABLE_OF_CONTENTS',_0x31cd81));}}class xt extends _0x51821d{['afterInit'](){const _0x2b8661=this['editor'];if(!_0x2b8661['plugins']['has']('Title'))return;const _0x1c75b5=_0x2b8661['plugins']['get']('TrackChangesEditing');_0x1c75b5['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x2b8661['locale'],'ELEMENT_TITLE')),_0x2b8661['model']['document']['registerPostFixer'](_0x3297d4=>{let _0x4cb383=!0x1;const _0x78026d=Array['from'](_0x2b8661['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x9dabde,data:_0x4c51f5}of _0x78026d){const {group:_0x4ef246}=_0x1c75b5['_splitMarkerName'](_0x9dabde);if('suggestion'!==_0x4ef246||!_0x4c51f5['newRange'])continue;const _0x36fb3f=_0x4c51f5['newRange'],_0x45d8f5=_0x36fb3f['end']['nodeBefore'];if(!_0x45d8f5||!_0x45d8f5['is']('element','title-content'))continue;if(!_0x36fb3f['start']['isTouching'](_0x36fb3f['end']))continue;const _0x2178c8=_0x2b8661['model']['schema']['getNearestSelectionRange'](_0x36fb3f['end'],'forward');if(_0x2178c8&&_0x2178c8['isCollapsed']){const _0x56be0d=_0x3297d4['createRange'](_0x36fb3f['start'],_0x2178c8['start']);_0x56be0d['isEqual'](_0x36fb3f)||(_0x3297d4['updateMarker'](_0x9dabde,{'range':_0x56be0d}),_0x4cb383=!0x0);}_0x4cb383||(_0x3297d4['removeMarker'](_0x9dabde),_0x4cb383=!0x0);}return _0x4cb383;});}}class Tt extends _0x51821d{['afterInit'](){const _0x4e15d4=this['editor'],_0x95f600=_0x4e15d4['plugins']['get']('TrackChangesEditing');_0x4e15d4['plugins']['has']('Uploadcare')&&(_0x95f600['enableCommand']('uploadcare'),_0x4e15d4['plugins']['has']('UploadcareImageEdit')&&(_0x95f600['enableCommand']('uploadcareImageEdit'),_0x95f600['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x95f600['registerBlockAttribute']('uploadcareImageId'),_0x95f600['descriptionFactory']['registerDescriptionCallback'](_0x21fb0b=>{if('attribute'!=_0x21fb0b['type'])return;const {data:_0x22a060}=_0x21fb0b;return _0x22a060&&'uploadcareImageId'==_0x22a060['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x51821d{['afterInit'](){const _0x447c0e=this['editor'],_0x275906=_0x447c0e['plugins']['get']('TrackChangesEditing');_0x447c0e['plugins']['has']('UndoEditing')&&(_0x275906['enableCommand']('undo'),_0x275906['enableCommand']('redo'));}}class Ut extends _0x51821d{static get['requires'](){return[Ct];}['afterInit'](){const _0x4fd7fe=this['editor'];if(!_0x4fd7fe['plugins']['has']('TableCaptionEditing'))return;_0x4fd7fe['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x51821d{['tableProperties'];['tableCellProperties'];constructor(_0x2e6ec4){super(_0x2e6ec4),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 _0x5bdc62=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xa5b44a of this['tableProperties'])_0x5bdc62['enableCommand'](_0xa5b44a,(_0x8140c9,_0x421f54)=>{const _0x59d9d0=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xa5b44a,[_0x59d9d0],this['tableProperties'],'tableProperties',_0x8140c9,_0x421f54);});_0x5bdc62['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5bdc62['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5bdc62['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x46beea,_0x32f89b)=>this['handleDiscardAction'](this['tableProperties'],_0x46beea,_0x32f89b)),_0x5bdc62['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x36137e of this['tableCellProperties'])_0x5bdc62['enableCommand'](_0x36137e,(_0x524b88,_0x530c1b)=>{const _0x5eccee=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x36137e,_0x5eccee,this['tableCellProperties'],'tableCellProperties',_0x524b88,_0x530c1b);});_0x5bdc62['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5bdc62['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5bdc62['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xf1a601,_0x3d7623)=>this['handleDiscardAction'](this['tableCellProperties'],_0xf1a601,_0x3d7623)),_0x5bdc62['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5bdc62['descriptionFactory']['registerDescriptionCallback'](_0x107100=>this['handleSuggestionDescription'](_0x107100));}['_handlePropertyChange'](_0x4876ad,_0x5e8a1d,_0x2c6a5a,_0x19518f,_0xff9333,_0x65d80e){const _0x4ea770=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x65d80e['batch'],()=>{for(const _0x44f41f of _0x5e8a1d){if(this['_getSuggestion'](_0x44f41f,_0x19518f))_0xff9333(_0x65d80e);else{const _0x22cbce={};for(const _0x16283a of _0x2c6a5a){const _0xecb365=_0x44f41f['getAttribute'](_0x16283a);void 0x0!==_0xecb365&&(_0x22cbce[_0x16283a]=_0xecb365);}_0xff9333(_0x65d80e),_0x4ea770['markBlockFormat'](_0x44f41f,{'commandParams':[_0x22cbce]},[],_0x19518f);}}});}['handleDiscardAction'](_0x57257f,_0x25b66e,_0x51e392){const _0x7f7148=_0x25b66e[0x0]['start']['nodeAfter'],_0x317eb6=_0x51e392['commandParams'][0x0];this['editor']['model']['change'](_0x282013=>{for(const _0x3e97bd of _0x57257f)void 0x0!==_0x317eb6[_0x3e97bd]?_0x282013['setAttribute'](_0x3e97bd,_0x317eb6[_0x3e97bd],_0x7f7148):_0x282013['removeAttribute'](_0x3e97bd,_0x7f7148);});}['handleSuggestionDescription'](_0x59917c){if(_0x59917c['data'])switch(_0x59917c['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'](_0x53b3e1,_0x2e67f4){const _0x229172=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2ea4d3 of _0x229172['getSuggestions']({'skipNotAttached':!0x0})){const _0x2be17c=_0x2ea4d3['getContainedElement']();if(_0x2ea4d3['subType']===_0x2e67f4&&_0x2be17c===_0x53b3e1)return _0x2ea4d3;}return null;}}const u='$elementName';class p extends _0x51821d{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x87033f,_0x49b3b8,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(_0x861f50){super(_0x861f50),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x17f97c,_0x30ed1a,_0x45454e,_0x512045)=>{this['_model']['change'](()=>{for(const _0x3bf73d of[..._0x512045,..._0x45454e])this['_model']['markers']['has'](_0x3bf73d)&&_0x861f50['editing']['reconvertMarker'](_0x3bf73d);});}),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']=_0x861f50['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(),_0x861f50['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x861f50['config']['get']('trackChanges.trackFormatChanges'),_0x861f50['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x861f50['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x861f50,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4a3f7c=this['editor'],_0x332782=(_0x1f0b17,_0x3983c1)=>{if('attribute'!=_0x1f0b17)return'ck-suggestion-marker-'+_0x1f0b17;const _0x3832ef=_0x3983c1['split']('|')[0x0];return this['_isBlockAttribute'](_0x3832ef)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4a3f7c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x25f2a0=>{const {id:_0x357484,authorId:_0x596827,type:_0x561a6e,subType:_0x4074f1}=this['_splitMarkerName'](_0x25f2a0['markerName']),_0x154198=['ck-suggestion-marker',_0x332782(_0x561a6e,_0x4074f1)];let _0x121929=0xbb8;return this['activeMarkers']['includes'](_0x25f2a0['markerName'])&&(_0x154198['push']('ck-suggestion-marker--active'),_0x121929=0xbc2),'deletion'==_0x561a6e&&(_0x121929+=0x5),{'classes':_0x154198,'attributes':{'data-suggestion':_0x357484,'data-author-id':_0x596827},'priority':_0x121929};}}),_0x4a3f7c['conversion']['for']('dataDowncast')['add'](_0x47b9cb=>{_0x47b9cb['on']('addMarker:suggestion',(_0x4fb4e7,_0x64f555,_0x5eb7f9)=>{if(!_0x5eb7f9['options']['showSuggestionHighlights'])return;const _0x9b3b1a=_0x64f555['item'];if(!_0x9b3b1a)return;const _0x409ba9=_0x5eb7f9['mapper']['toViewElement'](_0x9b3b1a);_0x4a3f7c['model']['schema']['isObject'](_0x9b3b1a)&&_0x409ba9&&!_0x409ba9['getCustomProperty']('widget')&&_0x409ba9['is']('containerElement')&&_0x31fc42(_0x409ba9,_0x5eb7f9['writer']);},{'priority':'high'});}),_0x4a3f7c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2169f9,_0x48f5d7)=>{if(!_0x48f5d7['options']['showSuggestionHighlights'])return null;const {type:_0x194e61,subType:_0x753a7c}=this['_splitMarkerName'](_0x2169f9['markerName']);return{'classes':['ck-suggestion-marker',_0x332782(_0x194e61,_0x753a7c)],'priority':0xbb8};}});const _0xa8571d=({showActiveMarkers:_0x2f2b8d=!0x0,isAttributeSuggestion:_0x2349a2=!0x1}={})=>(_0x11db07,_0x2c143e,_0x3d178d)=>{if(!_0x2c143e['item'])return;const {id:_0x22a8ab,authorId:_0x2bb512}=this['_splitMarkerName'](_0x2c143e['markerName']);if(_0x2349a2){const _0x31f27a=this['_suggestions']['get'](_0x22a8ab),_0x53e766=this['_getAttributeKey'](_0x31f27a);if(!this['_isBlockAttribute'](_0x53e766))return;}if(_0x2c143e['item']['is']('selection'))return void _0x3d178d['consumable']['consume'](_0x2c143e['item'],_0x11db07['name']);const _0x5bacee=_0x3d178d['mapper']['toViewElement'](_0x2c143e['item']);if(_0x2c143e['item']['is']('element')&&_0x4a3f7c['model']['schema']['isBlock'](_0x2c143e['item'])&&!_0x5bacee['getCustomProperty']('addHighlight')){_0x3d178d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5bacee),_0x3d178d['writer']['setAttribute']('data-suggestion',_0x22a8ab,_0x5bacee),_0x3d178d['writer']['setAttribute']('data-author-id',_0x2bb512,_0x5bacee),_0x3d178d['mapper']['bindElementToMarker'](_0x5bacee,_0x2c143e['markerName']),_0x2f2b8d&&(this['activeMarkers']['includes'](_0x2c143e['markerName'])?_0x3d178d['writer']['addClass']('ck-suggestion-marker--active',_0x5bacee):_0x3d178d['writer']['removeClass']('ck-suggestion-marker--active',_0x5bacee));for(const _0x29115d of _0x4a3f7c['model']['createRangeIn'](_0x2c143e['item'])['getItems']())_0x3d178d['consumable']['consume'](_0x29115d,_0x11db07['name']);_0x3d178d['consumable']['consume'](_0x2c143e['item'],_0x11db07['name']);}};_0x4a3f7c['conversion']['for']('dataDowncast')['add'](_0x17a585=>{_0x17a585['on']('addMarker:suggestion:formatBlock',(_0x490580,_0xc2d6aa,_0x3533c3)=>{_0x3533c3['options']['showSuggestionHighlights']&&_0xa8571d({'showActiveMarkers':!0x1})(_0x490580,_0xc2d6aa,_0x3533c3);},{'priority':'highest'});}),_0x4a3f7c['conversion']['for']('dataDowncast')['add'](_0x17698a=>{_0x17698a['on']('addMarker:suggestion:attribute',(_0x5b4fca,_0x3b4e6c,_0x30f028)=>{_0x30f028['options']['showSuggestionHighlights']&&_0xa8571d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5b4fca,_0x3b4e6c,_0x30f028);},{'priority':'highest'});}),_0x4a3f7c['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x35cbd9,_0x423178)=>_0x423178['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x35cbd9['substr'](0xb)}}),_0x4a3f7c['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xb9bacb,{writer:_0x47bb24})=>{let _0x53d4a8='suggestion:'+_0xb9bacb['getAttribute']('suggestion-type')+':'+_0xb9bacb['getAttribute']('id');return _0xb9bacb['getAttribute']('marker-count')&&(_0x53d4a8+=':'+_0xb9bacb['getAttribute']('marker-count')),_0x47bb24['createElement']('$marker',{'data-name':_0x53d4a8});}}),_0x4a3f7c['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4a3f7c['conversion']['for']('editingDowncast')['add'](_0x536dc4=>{_0x536dc4['on']('addMarker:suggestion:formatBlock',_0xa8571d(),{'priority':'high'});}),_0x4a3f7c['conversion']['for']('editingDowncast')['add'](_0x280c6d=>{_0x280c6d['on']('addMarker:suggestion:attribute',_0xa8571d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4a3f7c['conversion']['for']('editingDowncast')['add'](_0x5e1860=>{_0x5e1860['on']('removeMarker:suggestion:formatBlock',(_0x171374,_0x3f7a99,_0x542409)=>{const _0x3fb7e3=_0x542409['mapper']['markerNameToElements'](_0x3f7a99['markerName']);if(_0x3fb7e3){for(const _0x3dc1be of _0x3fb7e3)_0x3dc1be['getCustomProperty']('addHighlight')||(_0x542409['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3dc1be),_0x542409['writer']['removeAttribute']('data-suggestion',_0x3dc1be),_0x542409['writer']['removeAttribute']('data-author-id',_0x3dc1be),_0x542409['mapper']['unbindElementFromMarkerName'](_0x3dc1be,_0x3f7a99['markerName']));}},{'priority':'high'});}),_0x4a3f7c['conversion']['for']('editingDowncast')['add'](_0x2c21bf=>{_0x2c21bf['on']('removeMarker:suggestion:attribute',(_0x275463,_0x5edf94,_0x865fc5)=>{const _0x5537b6=_0x865fc5['mapper']['markerNameToElements'](_0x5edf94['markerName']);if(!_0x5537b6)return;const {id:_0x42f042}=this['_splitMarkerName'](_0x5edf94['markerName']),_0x70466d=this['_suggestions']['get'](_0x42f042),_0x1e916b=this['_getAttributeKey'](_0x70466d);if(this['_isBlockAttribute'](_0x1e916b)){for(const _0x6c37f of _0x5537b6)_0x6c37f['getCustomProperty']('addHighlight')||(_0x865fc5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x6c37f),_0x865fc5['writer']['removeAttribute']('data-suggestion',_0x6c37f),_0x865fc5['writer']['removeAttribute']('data-author-id',_0x6c37f),_0x865fc5['mapper']['unbindElementFromMarkerName'](_0x6c37f,_0x5edf94['markerName']));}},{'priority':'high'});}),_0x4a3f7c['model']['document']['registerPostFixer'](_0x5e62f1=>{let _0x4aa957=!0x1;const _0x2cf184=Array['from'](_0x4a3f7c['model']['document']['differ']['getChangedMarkers']()),_0x32a451=new Set();for(const {name:_0x17a279,data:_0x5eaf38}of _0x2cf184){const {group:_0x48372a,type:_0x55a41,subType:_0x1e8368,id:_0x2c6612}=this['_splitMarkerName'](_0x17a279);if('suggestion'!==_0x48372a)continue;const _0x5549bc=this['_suggestions']['get'](_0x2c6612);if(null!=_0x5eaf38['newRange']){'formatInline'==_0x55a41&&(_0x4aa957=_0x4aa957||Jt(_0x5eaf38['newRange'],_0x17a279,_0x5e62f1,_0x4a3f7c['model']['schema']));const _0x370dae='attribute'==_0x55a41&&this['_isBlockAttribute'](_0x1e8368['split']('|')[0x0]);if(_0x5eaf38['newRange']['isCollapsed']||'$graveyard'==_0x5eaf38['newRange']['root']['rootName']||'formatBlock'==_0x55a41&&!Ht(_0x5eaf38['newRange'])||_0x370dae&&!Ht(_0x5eaf38['newRange'])||'deletion'==_0x55a41&&!(!Lt(_0x15c41e=_0x5eaf38['newRange'])&&!function(_0x51be36){return _0x51be36['start']['parent']==_0x51be36['end']['nodeBefore']&&_0x51be36['start']['isAtEnd'];}(_0x15c41e)))_0x5e62f1['removeMarker'](_0x17a279),_0x4aa957=!0x0;else{if(!_0x5549bc||!_0x5549bc['isInContent'])continue;if(_0x5eaf38['newRange']&&_0x5eaf38['oldRange']&&_0x5eaf38['newRange']['isEqual'](_0x5eaf38['oldRange']))continue;_0x32a451['add'](_0x5549bc);}}}var _0x15c41e;return _0x32a451['size']>0x0&&(_0x4aa957=!!this['_joinWithAdjacentSuggestions'](_0x32a451)||_0x4aa957),_0x4aa957;}),_0x4a3f7c['model']['document']['registerPostFixer'](_0x4b82f1=>{let _0x2ec4df=!0x1;for(const _0x450fe1 of _0x4a3f7c['model']['document']['differ']['getChanges']())if('insert'==_0x450fe1['type'])for(const _0x162e42 of this['_suggestions']['values']()){if(_0x162e42['isMultiRange']||!_0x162e42['isInContent'])continue;const _0xc2a96c='formatBlock'==_0x162e42['type'],_0xde7a7c=this['_getAttributeKey'](_0x162e42),_0x42b14c=_0xde7a7c&&this['_isBlockAttribute'](_0xde7a7c);if(!_0xc2a96c&&!_0x42b14c)continue;const _0x1a5d6a=_0x162e42['getFirstRange']();if(_0x1a5d6a['start']['parent']!=_0x1a5d6a['end']['parent']&&!_0x1a5d6a['end']['isAtEnd']){const _0x5607e3=_0x4a3f7c['model']['createPositionAt'](_0x1a5d6a['start']['nodeAfter'],'end'),_0x51a0a4=_0x4a3f7c['model']['createRange'](_0x1a5d6a['start'],_0x5607e3);_0x4b82f1['updateMarker'](_0x162e42['getFirstMarker'](),{'range':_0x51a0a4}),_0x2ec4df=!0x0;}}return _0x2ec4df;}),_0x4a3f7c['model']['document']['registerPostFixer'](_0x4b3897=>this['_processAttributeChanges'](_0x4b3897)),_0x4a3f7c['model']['document']['registerPostFixer'](_0x53ae2b=>!_0x53ae2b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x53ae2b)),_0x4a3f7c['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4a3f7c['model']['document']['on']('change:data',(_0x1fc79a,_0x22e902)=>{if(!_0x22e902['isLocal']||_0x22e902['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xf422f2=_0x4a3f7c['model']['document']['differ']['getChanges']();if(0x0==_0xf422f2['length'])return;const _0x345c54=[],_0x29b73a=_0xf422f2['filter'](_0x57f604=>'attribute'==_0x57f604['type']),_0x1e5e0a=_0xf422f2['filter'](_0x3f9a14=>'insert'==_0x3f9a14['type']&&'$text'!=_0x3f9a14['name']);for(const _0x4f027f of _0x29b73a)this['_isRegisteredAttribute'](_0x4f027f['attributeKey'])&&_0x345c54['push']({'key':_0x4f027f['attributeKey'],'newValue':_0x4f027f['attributeNewValue'],'oldValue':_0x4f027f['attributeOldValue'],'range':qt(_0x4f027f['range'],_0x4a3f7c['model'])});for(const _0x439273 of _0x1e5e0a){if('rename'!=_0x439273['action']&&'refresh'!=_0x439273['action'])continue;const _0xa7a8e1=zt(_0x439273['position']['nodeAfter'],_0x4a3f7c['model']),_0x28627f=_0x439273['before'];'rename'==_0x439273['action']&&_0x345c54['push']({'key':u,'newValue':_0x439273['name'],'oldValue':_0x28627f['name'],'range':_0xa7a8e1});for(const [_0x359756,_0x5d13bc]of _0x28627f['attributes']){if(!this['_isRegisteredAttribute'](_0x359756))continue;const _0x2defcd=_0x439273['attributes']['get'](_0x359756);_0x5d13bc!==_0x2defcd&&_0x345c54['push']({'key':_0x359756,'newValue':_0x2defcd,'oldValue':_0x5d13bc,'range':_0xa7a8e1});}for(const [_0x5ada9f,_0xa6efcd]of _0x439273['attributes'])this['_isRegisteredAttribute'](_0x5ada9f)&&(_0x28627f['attributes']['has'](_0x5ada9f)||_0x345c54['push']({'key':_0x5ada9f,'newValue':_0xa6efcd,'oldValue':null,'range':_0xa7a8e1}));}0x0!=_0x345c54['length']&&_0x4a3f7c['model']['enqueueChange'](_0x22e902,_0x3a64c1=>{const _0x520f6e=_0x28fc1d();for(const {range:_0x25c4ff,key:_0x444201,oldValue:_0x22d1b2,newValue:_0x1a5fba}of _0x345c54)this['markAttributeChange'](_0x25c4ff,_0x444201,_0x22d1b2,_0x1a5fba,{'groupId':_0x520f6e});this['_reduceExistingSuggestions'](_0x3a64c1,_0x345c54);});},{'priority':'lowest'}),_0x4a3f7c['model']['markers']['on']('update:suggestion',(_0x4d23ad,_0x2736ea,_0x419b41)=>{if(null==_0x419b41){const {id:_0x3804f4}=this['_splitMarkerName'](_0x2736ea['name']),_0x3ac1e3=this['_suggestions']['get'](_0x3804f4);_0x3ac1e3&&_0x3ac1e3['addMarkerName'](_0x2736ea['name']);}}),_0x4a3f7c['model']['document']['on']('change:data',()=>{const _0xb52247=Array['from'](_0x4a3f7c['model']['document']['differ']['getChangedMarkers']())['filter'](_0x14ebd2=>'suggestion'===this['_splitMarkerName'](_0x14ebd2['name'])['group']);if(0x0===_0xb52247['length'])return;_0xb52247['sort']((_0x40a5af,_0x403b1e)=>{const _0x3cdad2=_0x40a5af['data']['oldRange'],_0x58ef35=_0x403b1e['data']['oldRange'];return null===_0x3cdad2&&null===_0x58ef35?0x0:null===_0x3cdad2&&null!==_0x58ef35?-0x1:null!==_0x3cdad2&&null===_0x58ef35?0x1:_0x3cdad2['start']['isBefore'](_0x58ef35['start'])?-0x1:0x1;});const _0x55a9ce=new Set(),_0x402b0c=new Set();for(const {name:_0x42dc10,data:_0x16dd0b}of _0xb52247){const {id:_0x2ba909}=this['_splitMarkerName'](_0x42dc10);if(null===_0x16dd0b['oldRange']){const _0x21f9bb=this['_handleNewSuggestionMarker'](_0x42dc10);_0x402b0c['add'](_0x21f9bb);}else{const _0x357759=this['_suggestions']['get'](_0x2ba909);null!==_0x16dd0b['newRange']||_0x357759['isInContent']?(_0x55a9ce['add'](_0x357759['head']),_0x402b0c['add'](_0x357759)):this['_removeSuggestion'](_0x357759);}}_0x402b0c['size']>0x0&&this['_refreshSuggestionsChain'](_0x402b0c);for(const _0x5aa275 of _0x55a9ce)this['fire']('suggestionChanged',_0x5aa275);}),_0x4a3f7c['model']['on']('applyOperation',(_0x58635e,_0x3b2a28)=>{const _0x378db2=_0x3b2a28[0x0];if(!this['_suggestions']['size'])return;if(!_0x378db2['isDocumentOperation'])return;if(_0x378db2['batch']['isUndo']||!_0x378db2['batch']['isLocal'])return;let _0x14d4ba,_0x46c13a;switch(_0x378db2['type']){case'insert':_0x14d4ba=_0x4a3f7c['model']['createPositionAt'](_0x378db2['position']),_0x46c13a=_0x14d4ba['getShiftedBy'](_0x378db2['howMany']);break;case'split':_0x14d4ba=_0x4a3f7c['model']['createPositionAt'](_0x378db2['splitPosition']),_0x46c13a=_0x4a3f7c['model']['createPositionAt'](_0x378db2['moveTargetPosition']);break;case'move':_0x14d4ba=_0x4a3f7c['model']['createPositionAt'](_0x378db2['targetPosition']),_0x46c13a=_0x14d4ba['getShiftedBy'](_0x378db2['howMany']);break;default:return;}const _0x2164f9=_0x4a3f7c['model']['createRange'](_0x14d4ba,_0x46c13a);_0x4a3f7c['model']['change'](()=>{for(const {suggestion:_0x5c7514,meta:_0x26e2a1}of this['_findSuggestions'](_0x2164f9)){if(_0x5c7514['isMultiRange'])continue;if('formatInline'==_0x5c7514['type'])continue;const _0x2fb1e9=this['_getAttributeKey'](_0x5c7514);if(_0x2fb1e9&&this['_isBlockAttribute'](_0x2fb1e9)&&'split'!=_0x378db2['type'])continue;const _0x3d4f77=_0x5c7514['data']&&_0x5c7514['data']['multipleBlocks'];('formatBlock'!=_0x5c7514['type']||'split'==_0x378db2['type']&&!_0x3d4f77)&&(_0x26e2a1['containsRangeInObject']||'insertion'==_0x5c7514['type']&&_0x26e2a1['isOwn']||_0x5c7514['getFirstRange']()['containsRange'](_0x2164f9)&&this['_breakSuggestionMarker'](_0x5c7514,_0x14d4ba,_0x46c13a));}});},{'priority':'lowest'}),_0x4a3f7c['model']['on']('deleteContent',(_0x443b36,_0xd8bde9)=>{const _0x4574bd=_0xd8bde9[0x0],_0x45f854=_0xd8bde9[0x1];if(_0x45f854&&_0x45f854['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4574bd['isCollapsed'])return;const _0x2ae540=_0x4a3f7c['model']['schema'],{start:_0x3aa72d,end:_0xa6ab36}=_0x4574bd['getFirstRange'](),_0x4d6210=_0x3aa72d['nodeAfter']&&_0x2ae540['isLimit'](_0x3aa72d['nodeAfter'])?null:_0x2ae540['getNearestSelectionRange'](_0x3aa72d,'forward'),_0x43cf0a=_0xa6ab36['nodeBefore']&&_0x2ae540['isLimit'](_0xa6ab36['nodeBefore'])?null:_0x2ae540['getNearestSelectionRange'](_0xa6ab36,'backward'),_0x128bf3=_0x4a3f7c['model']['createRange'](_0x4d6210?_0x4d6210['start']:_0x3aa72d,_0x43cf0a?_0x43cf0a['end']:_0xa6ab36);_0x4a3f7c['model']['change'](_0x33e5db=>{this['markDeletion'](_0x128bf3);const _0xaf549f=_0x4a3f7c['model']['schema']['getNearestSelectionRange'](_0x128bf3['start']);_0x4574bd['is']('documentSelection')?_0x33e5db['setSelection'](_0xaf549f):_0x4574bd['setTo'](_0xaf549f);}),_0x443b36['stop']();},{'priority':_0x2fc864['normal']+0xa}),_0x4a3f7c['model']['on']('insertContent',(_0x3040f7,_0x4d3f64)=>{const _0x213511=_0x4d3f64[_0x4d3f64['length']-0x1];_0x213511&&_0x213511['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4a3f7c['model']['change'](()=>{let _0x539913=_0x4a3f7c['model']['insertContent'](_0x4d3f64[0x0],_0x4d3f64[0x1],_0x4d3f64[0x2],{'forceDefaultExecution':!0x0});if(!_0x539913)return;_0x3040f7['return']=_0x539913['clone']();const _0x1b9743=_0x539913['end']['nodeBefore'],_0x39dcde=_0x4a3f7c['model']['schema'];_0x1b9743&&_0x39dcde['isBlock'](_0x1b9743)&&!_0x39dcde['isObject'](_0x1b9743)&&(_0x539913=_0x4a3f7c['model']['createRange'](_0x539913['start'],_0x4a3f7c['model']['createPositionAt'](_0x1b9743,'end'))),this['markInsertion'](_0x539913);}),_0x3040f7['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1153d9=new O(_0x4a3f7c,this['_suggestions']);_0x4a3f7c['commands']['add']('acceptSuggestion',_0x1153d9),this['enableCommand']('acceptSuggestion');const _0x151518=new R(_0x4a3f7c,this['_suggestions']);_0x4a3f7c['commands']['add']('discardSuggestion',_0x151518),this['enableCommand']('discardSuggestion'),_0x4a3f7c['commands']['add']('acceptAllSuggestions',new x(_0x4a3f7c,_0x1153d9,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4a3f7c['commands']['add']('discardAllSuggestions',new x(_0x4a3f7c,_0x151518,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4a3f7c['commands']['add']('acceptSelectedSuggestions',new E(_0x4a3f7c,_0x1153d9,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4a3f7c['commands']['add']('discardSelectedSuggestions',new E(_0x4a3f7c,_0x151518,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1efe95=_0x4a3f7c['plugins']['get']('CommentsRepository');this['listenTo'](_0x1efe95,'addComment',(_0x564436,{threadId:_0x58606b})=>{const _0x2c1758=this['_suggestions']['get'](_0x58606b);_0x2c1758&&_0x2c1758['commentThread']&&0x1===_0x2c1758['commentThread']['length']&&this['_updateSuggestionData'](_0x58606b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1efe95,'removeComment',(_0x4b286f,{threadId:_0x2a377a})=>{const _0x1864a7=this['_suggestions']['get'](_0x2a377a);_0x1864a7&&_0x1864a7['commentThread']&&!_0x1864a7['commentThread']['length']&&this['_updateSuggestionData'](_0x2a377a,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xd6ae04){const _0x1bf8d=_0xe0a063([0x59,0x79,0x4a,0x43,0x65,0x35,0x36,0x64,0x62,0x6d,0x72,0x39,0x57,0x41,0x58,0x73,0x67,0x53,0x63,0x31,0x49,0x44,0x6b,0x4f,0x71,0x4b,0x6c,0x77,0x52,0x30,0x76,0x75,0x4e,0x68,0x61,0x48,0x66,0x4c,0x32,0x34,0x55,0x37,0x69,0x78,0x51,0x42,0x45,0x38,0x6e,0x47,0x70,0x5a,0x50,0x6a,0x4d,0x6f,0x46,0x7a,0x54,0x74,0x56,0x33]),_0xa516c=0x2e01f40d,_0x11f926=0x2e069025^_0xa516c,_0x424794=window[_0xe0a063([0x44,0x61,0x74,0x65])][_0xe0a063([0x6e,0x6f,0x77])](),_0x31d74e=_0xd6ae04[_0xe0a063([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5bceb6=new window[(_0xe0a063([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1274b5=>{_0x31d74e[_0xe0a063([0x6f,0x6e,0x63,0x65])](_0xe0a063([0x72,0x65,0x61,0x64,0x79]),_0x1274b5);}),_0x247ccc={[_0xe0a063([0x6b,0x74,0x79])]:_0xe0a063([0x45,0x43]),[_0xe0a063([0x75,0x73,0x65])]:_0xe0a063([0x73,0x69,0x67]),[_0xe0a063([0x63,0x72,0x76])]:_0xe0a063([0x50,0x2d,0x32,0x35,0x36]),[_0xe0a063([0x78])]:_0xe0a063([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]),[_0xe0a063([0x79])]:_0xe0a063([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]),[_0xe0a063([0x61,0x6c,0x67])]:_0xe0a063([0x45,0x53,0x32,0x35,0x36])},_0x27562d=_0x31d74e[_0xe0a063([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe0a063([0x67,0x65,0x74])](_0xe0a063([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6a7151(){let _0x1117bf,_0x30b842=null,_0x4af2ab=null;try{if(_0x27562d==_0xe0a063([0x47,0x50,0x4c]))return _0xe0a063([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1117bf=_0x52071a(),!_0x1117bf)return _0xe0a063([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1117bf[_0xe0a063([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4af2ab=_0x4b26c8(_0x1117bf[_0xe0a063([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1117bf[_0xe0a063([0x6a,0x74,0x69])])),await _0x2a5fb2()?_0xbd1b20()?_0x1dbf61()?_0xe0a063([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xf05114()?(_0x1117bf[_0xe0a063([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe0a063([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x30b842=_0x275d7f(_0xe0a063([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1117bf[_0xe0a063([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe0a063([0x74,0x72,0x69,0x61,0x6c])&&(_0x30b842=_0x275d7f(_0xe0a063([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b6903()):_0xe0a063([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe0a063([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe0a063([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x358414){return _0xe0a063([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1dbf61(){const _0x321279=[_0xe0a063([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe0a063([0x74,0x72,0x69,0x61,0x6c])][_0xe0a063([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1117bf[_0xe0a063([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x424794/0x3e8:0xe10*_0x11f926;return _0x1117bf[_0xe0a063([0x65,0x78,0x70])]<_0x321279;}function _0xbd1b20(){const _0x9a0fef=_0x1117bf[_0xe0a063([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x9a0fef)return!0x1;if(_0x9a0fef[_0xe0a063([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe0a063([0x2a])))return!0x0;if(_0x9a0fef[_0xe0a063([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe0a063([0x54,0x43])))return!0x0;if(_0x9a0fef[_0xe0a063([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe0a063([0x52,0x54,0x43]))){if(_0x404d54())return!0x0;if(_0x36dec7()||_0x4d00ea())return!0x0;}return!0x1;}function _0xf05114(){const _0xceb6f5=_0x1117bf[_0xe0a063([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xceb6f5||0x0==_0xceb6f5[_0xe0a063([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x706b01}=new URL(window[_0xe0a063([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xceb6f5[_0xe0a063([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x706b01))return!0x0;const _0x2b22cc=_0x706b01[_0xe0a063([0x73,0x70,0x6c,0x69,0x74])](_0xe0a063([0x2e]));return _0xceb6f5[_0xe0a063([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a7784=>_0x3a7784[_0xe0a063([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe0a063([0x2a])))[_0xe0a063([0x6d,0x61,0x70])](_0x3260f1=>_0x3260f1[_0xe0a063([0x73,0x70,0x6c,0x69,0x74])](_0xe0a063([0x2e])))[_0xe0a063([0x73,0x6f,0x6d,0x65])](_0x28a499=>_0x2b22cc[_0xe0a063([0x65,0x76,0x65,0x72,0x79])]((_0x129687,_0x4d467e)=>_0x28a499[_0x4d467e]===_0x129687||_0x28a499[_0x4d467e]===_0xe0a063([0x2a])));}function _0x3b6903(){return _0x30b842&&_0x4af2ab?new window[(_0xe0a063([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44ec15,_0x2f9a26)=>{_0x30b842[_0xe0a063([0x74,0x68,0x65,0x6e])](_0x44ec15,_0x2f9a26),_0x4af2ab[_0xe0a063([0x74,0x68,0x65,0x6e])](_0x637f67=>{_0x637f67!=_0xe0a063([0x56,0x61,0x6c,0x69,0x64])&&_0x44ec15(_0x637f67);},_0x2f9a26);}):_0x30b842||_0x4af2ab||_0xe0a063([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4b26c8(_0xe142b6,_0x2dde17){return new window[(_0xe0a063([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e1ef0=>{if(_0x10360c())return _0x4e1ef0(_0xe0a063([0x56,0x61,0x6c,0x69,0x64]));_0x1fe594(),_0x31d74e[_0xe0a063([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe0a063([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5203bc=!0x1;const _0x4d92b8=_0x28fc1d();function _0x4a7064(_0x1f365a){return!!_0x1f365a&&(typeof _0x1f365a===_0xe0a063([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1f365a===_0xe0a063([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1f365a[_0xe0a063([0x74,0x68,0x65,0x6e])]===_0xe0a063([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1f365a[_0xe0a063([0x63,0x61,0x74,0x63,0x68])]===_0xe0a063([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x512fdb(_0x4a32dd){_0x46fdcd(_0x4a32dd)[_0xe0a063([0x74,0x68,0x65,0x6e])](_0x2dc1fb=>{if(!_0x2dc1fb||_0x2dc1fb[_0xe0a063([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe0a063([0x6f,0x6b]))return _0xe0a063([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4a546c(_0x1089a2(_0x4d92b8+_0x2dde17))!=_0x2dc1fb[_0xe0a063([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe0a063([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe0a063([0x56,0x61,0x6c,0x69,0x64]);})[_0xe0a063([0x74,0x68,0x65,0x6e])](_0x59c7c1=>(_0x27c46d(),_0x59c7c1),()=>{const _0x121006=_0x4fd9e9();return null==_0x121006?(_0x27c46d(),_0xe0a063([0x56,0x61,0x6c,0x69,0x64])):_0xe0a063(_0x424794-_0x121006>(0xa0d700d^_0xa516c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe0a063([0x74,0x68,0x65,0x6e])](_0x4e1ef0)[_0xe0a063([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e1ef0(_0xe0a063([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x15762a=0x2e371a8d^_0xa516c;function _0x27c46d(){const _0x432446=_0xe0a063([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a546c(_0x1089a2(_0xe142b6)),_0x26c94c=_0x5b5337(_0x4a546c(window[_0xe0a063([0x4d,0x61,0x74,0x68])][_0xe0a063([0x63,0x65,0x69,0x6c])](_0x424794/_0x15762a)));window[_0xe0a063([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe0a063([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x432446,_0x26c94c);}function _0x4fd9e9(){const _0x4ca6cd=_0xe0a063([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a546c(_0x1089a2(_0xe142b6)),_0x471a1e=window[_0xe0a063([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe0a063([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ca6cd);return _0x471a1e?window[_0xe0a063([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b5337(_0x471a1e),0x10)*_0x15762a:null;}function _0x46fdcd(_0x524794){return new window[(_0xe0a063([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b0221,_0xb5776d)=>{_0x524794[_0xe0a063([0x74,0x68,0x65,0x6e])](_0x5b0221,_0xb5776d),window[_0xe0a063([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xb5776d,0x2e0020cd^_0xa516c);});}}_0x31d74e[_0xe0a063([0x6f,0x6e])](_0xe0a063([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5a23b8,_0x333fbd)=>{if(_0x333fbd[0x0]!=_0xe142b6)return _0x4e1ef0(_0xe0a063([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x333fbd[0x1]={..._0x333fbd[0x1],[_0xe0a063([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4d92b8};},{[_0xe0a063([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe0a063([0x68,0x69,0x67,0x68])}),_0x31d74e[_0xe0a063([0x6f,0x6e])](_0xe0a063([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x589b46=>{_0x4a7064(_0x589b46[_0xe0a063([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5203bc=!0x0,_0x512fdb(_0x589b46[_0xe0a063([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe0a063([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe0a063([0x6c,0x6f,0x77])}),_0x5bceb6[_0xe0a063([0x74,0x68,0x65,0x6e])](()=>{_0x5203bc||_0x4e1ef0(_0xe0a063([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x10360c(){return _0x31d74e[_0xe0a063([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe0a063([0x76,0x69,0x65,0x77])][_0xe0a063([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe0a063([0x61,0x75,0x74,0x6f]);}function _0x1fe594(){_0x31d74e[_0xe0a063([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe0a063([0x76,0x69,0x65,0x77])][_0xe0a063([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe0a063([0x61,0x75,0x74,0x6f]);}}function _0x275d7f(_0x5ca450){const _0x451468=[new window[(_0xe0a063([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f4f3e=>setTimeout(_0x2f4f3e,0x2e08cac1^_0xa516c)),_0x5bceb6[_0xe0a063([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe0a063([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39b9b6=>{let _0x2ced99=0x0;_0x31d74e[_0xe0a063([0x6d,0x6f,0x64,0x65,0x6c])][_0xe0a063([0x6f,0x6e])](_0xe0a063([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3bb770,_0x51d984)=>{_0x51d984[0x0][_0xe0a063([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2ced99++,_0x2ced99==(0x2e01f5f5^_0xa516c)&&(_0x39b9b6(),_0x3bb770[_0xe0a063([0x6f,0x66,0x66])]());});}))];return window[_0xe0a063([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe0a063([0x72,0x61,0x63,0x65])](_0x451468)[_0xe0a063([0x74,0x68,0x65,0x6e])](()=>_0x5ca450);}async function _0x2dc773(){await _0x5bceb6,_0x31d74e[_0xe0a063([0x6d,0x6f,0x64,0x65,0x6c])][_0xe0a063([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x21a9f8,_0x31d74e[_0xe0a063([0x6d,0x6f,0x64,0x65,0x6c])][_0xe0a063([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x21a9f8,_0x31d74e[_0xe0a063([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe0a063([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x404d54(){return _0x5f0bf9(_0xe0a063([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3af569(_0xe0a063([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xe0a063([0x73,0x74,0x61,0x74,0x65])]==_0xe0a063([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x36dec7(){return _0x5f0bf9(_0xe0a063([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 _0x4d00ea(){return _0x5f0bf9(_0xe0a063([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x136cf1(_0x115114){const _0x1327d8=_0x339316();_0x31d74e[_0x1327d8]=_0xe0a063([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x115114,_0x115114!=_0xe0a063([0x56,0x61,0x6c,0x69,0x64])&&_0x2dc773();}function _0x339316(){const _0x36d45a=window[_0xe0a063([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe0a063([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe0a063([0x6e,0x6f,0x77])]())[_0xe0a063([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe0a063([0x2e]),'');let _0xb4a9bf=_0xe0a063([0x59]);for(let _0x377a12=0x0;_0x377a12<_0x36d45a[_0xe0a063([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x377a12+=0x2){let _0x3422a3=window[_0xe0a063([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36d45a[_0xe0a063([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x377a12,_0x377a12+0x2));_0x3422a3>=_0x1bf8d[_0xe0a063([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3422a3-=_0x1bf8d[_0xe0a063([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xb4a9bf+=_0x1bf8d[_0x3422a3];}return _0xb4a9bf;}function _0x52071a(){const _0x2a30c2=_0x27562d[_0xe0a063([0x73,0x70,0x6c,0x69,0x74])](_0xe0a063([0x2e]));if(0x3!=_0x2a30c2[_0xe0a063([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5f3772(_0x2a30c2[0x1]);function _0x5f3772(_0x5f45cb){const _0x1eb521=_0x24de0d(_0x5f45cb);return _0x1eb521&&_0x422fd0()?_0x1eb521:null;function _0x422fd0(){const _0x8f0f3b=_0x1eb521[_0xe0a063([0x6a,0x74,0x69])],_0x1c0533=window[_0xe0a063([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8f0f3b[_0xe0a063([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8f0f3b[_0xe0a063([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3c1d21={..._0x1eb521,[_0xe0a063([0x6a,0x74,0x69])]:_0x8f0f3b[_0xe0a063([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x8f0f3b[_0xe0a063([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3c1d21[_0xe0a063([0x76,0x63])],_0x1089a2(_0x3c1d21)==_0x1c0533;}}}async function _0x2a5fb2(){let _0x542898=!0x0;try{const _0x3084a1=_0x27562d[_0xe0a063([0x73,0x70,0x6c,0x69,0x74])](_0xe0a063([0x2e])),[_0x5d2f2d,_0x313343,_0x2ccc85]=_0x3084a1;return _0xdcdccb(_0x5d2f2d),await _0x175297(_0x5d2f2d,_0x313343,_0x2ccc85),_0x542898;}catch(_0x1da083){return!0x1;}function _0xdcdccb(_0xadca84){const _0x33f0bd=_0x24de0d(_0xadca84);_0x33f0bd&&_0x33f0bd[_0xe0a063([0x61,0x6c,0x67])]==_0xe0a063([0x45,0x53,0x32,0x35,0x36])||(_0x542898=!0x1);}async function _0x175297(_0x153c6d,_0xb8d79f,_0x3db6a7){const _0xc3d22f=window[_0xe0a063([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe0a063([0x66,0x72,0x6f,0x6d])](_0x50831a(_0x3db6a7),_0x24949a=>_0x24949a[_0xe0a063([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x240d59=new window[(_0xe0a063([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe0a063([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x153c6d+_0xe0a063([0x2e])+_0xb8d79f),_0x55ac45=window[_0xe0a063([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe0a063([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x55ac45)return;const _0x539667=await _0x55ac45[_0xe0a063([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe0a063([0x6a,0x77,0x6b]),_0x247ccc,{[_0xe0a063([0x6e,0x61,0x6d,0x65])]:_0xe0a063([0x45,0x43,0x44,0x53,0x41]),[_0xe0a063([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe0a063([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe0a063([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x55ac45[_0xe0a063([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe0a063([0x6e,0x61,0x6d,0x65])]:_0xe0a063([0x45,0x43,0x44,0x53,0x41]),[_0xe0a063([0x68,0x61,0x73,0x68])]:{[_0xe0a063([0x6e,0x61,0x6d,0x65])]:_0xe0a063([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x539667,_0xc3d22f,_0x240d59)||(_0x542898=!0x1);}}function _0x24de0d(_0x40518c){return _0x40518c[_0xe0a063([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe0a063([0x65,0x79]))?JSON[_0xe0a063([0x70,0x61,0x72,0x73,0x65])](_0x50831a(_0x40518c)):null;}function _0x50831a(_0x131cf7){return window[_0xe0a063([0x61,0x74,0x6f,0x62])](_0x131cf7[_0xe0a063([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe0a063([0x2b]))[_0xe0a063([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe0a063([0x2f])));}function _0x1089a2(_0x1dca7e){let _0x316d10=0x1505;function _0x4b2a9e(_0x39ecd5){for(let _0x575ac3=0x0;_0x575ac3<_0x39ecd5[_0xe0a063([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x575ac3++){const _0x1bda45=_0x39ecd5[_0xe0a063([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x575ac3);_0x316d10=(_0x316d10<<0x5)+_0x316d10+_0x1bda45,_0x316d10&=_0x316d10;}}function _0x38c405(_0x3c05db){Array[_0xe0a063([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3c05db)?_0x3c05db[_0xe0a063([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x38c405):_0x3c05db&&typeof _0x3c05db==_0xe0a063([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe0a063([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3c05db)[_0xe0a063([0x73,0x6f,0x72,0x74])]()[_0xe0a063([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x30efe3,_0x1f20e1])=>{_0x4b2a9e(_0x30efe3),_0x38c405(_0x1f20e1);}):_0x4b2a9e(window[_0xe0a063([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3c05db));}return _0x38c405(_0x1dca7e),_0x316d10>>>0x0;}function _0x4a546c(_0x3e3618){return _0x3e3618[_0xe0a063([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe0a063([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe0a063([0x30]));}function _0x5b5337(_0x2fcaa3){return _0x2fcaa3[_0xe0a063([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe0a063([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe0a063([0x6a,0x6f,0x69,0x6e])]('');}function _0x5f0bf9(_0x13bd6c){return _0x31d74e[_0xe0a063([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xe0a063([0x68,0x61,0x73])](_0x13bd6c);}function _0x3af569(_0x4684fa){return _0x31d74e[_0xe0a063([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xe0a063([0x67,0x65,0x74])](_0x4684fa);}function _0x21a9f8(){}function _0xe0a063(_0x25fb09){return _0x25fb09['map'](_0x485d96=>String['fromCharCode'](_0x485d96))['join']('');}_0x136cf1(await _0x6a7151());}(this);}set['adapter'](_0x390b05){if(this['_adapter'])throw new _0x8ca9b4('track-changes-adapter-already-set',this);this['_adapter']=_0x390b05;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3baf88=!0x1,toJSON:_0x5ea3c7=!0x1}={}){const _0x55cdb3=[];for(const _0x3e9af5 of this['_suggestions']['values']())_0x3baf88&&!_0x3e9af5['isInContent']||_0x55cdb3['push'](_0x3e9af5);return _0x5ea3c7?_0x55cdb3['map'](_0x54da71=>_0x54da71['toJSON']()):_0x55cdb3;}['getSuggestion'](_0x496b83){const _0x307903=this['_suggestions']['get'](_0x496b83);if(!_0x307903)throw new _0x8ca9b4('track-changes-suggestion-not-found',this);return _0x307903;}['hasSuggestion'](_0x2a7b8c){return this['_suggestions']['has'](_0x2a7b8c);}['addSuggestionData'](_0x5046c2){const {authorId:_0x58cd6d,id:_0x34e9d1,attributes:_0x91b7f5}=_0x5046c2,[_0x1de11f,_0x5e17f3]=_0x5046c2['type']['split'](':'),_0x14ebd8=this['_suggestions']['get'](_0x34e9d1)||this['_createSuggestion'](_0x1de11f,_0x5e17f3,_0x34e9d1,_0x58cd6d,_0x91b7f5);if(this['_addThreadToSuggestion'](_0x14ebd8),this['_checkSuggestionCorrectness'](_0x14ebd8,_0x1de11f,_0x5e17f3||null,_0x58cd6d),_0x14ebd8['createdAt']=_0x5046c2['createdAt'],_0x14ebd8['_isDataLoaded']=!0x0,_0x91b7f5&&_0x91b7f5['@external']){const _0x156843=_0x91b7f5['@external'],_0x29fb16=this['_getExternalAuthor'](_0x156843['authorName']);_0x14ebd8['authoredAt']=_0x156843['createdAt'],_0x14ebd8['author']=_0x29fb16,_0x14ebd8['isExternal']=!0x0;}else _0x14ebd8['authoredAt']=_0x5046c2['createdAt'];switch(_0x5046c2['data']&&(_0x14ebd8['data']=_0x5046c2['data']),_0x5046c2['attributes']&&(_0x14ebd8['attributes']=_0x5046c2['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x14ebd8['_saved']=!0x0),this['_suggestionState']['get'](_0x14ebd8)){case'notReady':this['_suggestionState']['set'](_0x14ebd8,'dataReady');break;case'markerReady':_0x14ebd8['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x14ebd8])),this['_refreshSuggestionsChain'](new Set([_0x14ebd8])),this['_suggestionState']['set'](_0x14ebd8,'ready'),this['fire']('suggestionLoaded',_0x14ebd8)):this['_suggestionState']['set'](_0x14ebd8,'removed');}return _0x14ebd8;}['acceptSuggestion'](_0x105e20){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3515aa of _0x105e20['getAllAdjacentSuggestions']())_0x3515aa['accept']();});});}['discardSuggestion'](_0x989f67){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xf2a8ab of _0x989f67['getAllAdjacentSuggestions']())_0xf2a8ab['discard']();});});}['enableCommand'](_0x1c599d,_0x3a8cdf){const _0x286543=this['editor']['commands']['get'](_0x1c599d);if(!_0x286543)throw new _0x8ca9b4('track-changes-command-not-found',this,{'commandName':_0x1c599d});if(this['_enabledCommands']['has'](_0x286543))throw new _0x8ca9b4('track-changes-enable-command-twice',this,{'commandName':_0x1c599d});this['_enabledCommands']['add'](_0x286543),_0x3a8cdf&&_0x286543['on']('execute',(_0x1c5a1a,_0x11f41c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x11f41c['length']>0x0&&_0x11f41c[_0x11f41c['length']-0x1]&&_0x11f41c[_0x11f41c['length']-0x1]['forceDefaultExecution']?_0x11f41c['pop']():(_0x1c5a1a['return']=_0x3a8cdf((..._0x2dbbe1)=>_0x286543['execute'](..._0x2dbbe1,{'forceDefaultExecution':!0x0}),..._0x11f41c),_0x1c5a1a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5056fc){let _0x5a0e1b,_0x1696f7;const _0x51b97d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5a0e1b=_0x5056fc();}catch(_0x27bda8){_0x1696f7=_0x27bda8;}return _0x51b97d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1696f7&&_0x8ca9b4['rethrowUnexpectedError'](_0x1696f7,this),_0x5a0e1b;}['markInsertion'](_0x4e0770,_0x2df1b6=null,_0x184edf={}){if(_0x4e0770['isCollapsed'])return null;const _0x2a92b=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2a7f3c,meta:_0x156bbf}of this['_findSuggestions'](_0x4e0770,'insertion'))if(_0x156bbf['isOwn']){if(!_0x156bbf['isNextTo']){if(_0x156bbf['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x2a7f3c,_0x184edf))continue;return _0x2a7f3c;}if(Xt(_0x2a7f3c,_0x184edf))return _0x2a7f3c;this['_breakSuggestionMarker'](_0x2a7f3c,_0x4e0770['start'],_0x4e0770['end']);break;}if(_0x2df1b6==_0x2a7f3c['subType']&&Xt(_0x2a7f3c,_0x184edf)){const _0x12cbd3=_0x2a7f3c['getFirstRange']();return _0x12cbd3['start']['isEqual'](_0x4e0770['end'])?this['_setSuggestionRange'](_0x2a7f3c,this['_model']['createRange'](_0x4e0770['start'],_0x12cbd3['end'])):this['_setSuggestionRange'](_0x2a7f3c,this['_model']['createRange'](_0x12cbd3['start'],_0x4e0770['end'])),_0x2a7f3c;}}const _0x2e5efa=_0x28fc1d(),_0x307338=_0x2a92b['id'],_0x4d73fe=_0x2df1b6?'insertion:'+_0x2df1b6:'insertion',_0x311328=this['_setSuggestionData']({'id':_0x2e5efa,'type':_0x4d73fe,'createdAt':new Date(),'authorId':_0x307338,'attributes':_0x184edf});return this['_addSuggestionMarker'](_0x4d73fe,_0x2e5efa,_0x307338,_0x4e0770),_0x311328;}['markMultiRangeInsertion'](_0x3b14bb,_0x2b495e='multi',_0x1b837c={}){const _0x389c7e=this['editor']['plugins']['get']('Users')['me'],_0x144305=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2b495e,'join');for(const _0x2c4a20 of this['getSuggestions']())if(_0x2c4a20['author']['id']==_0x389c7e['id']&&'insertion'==_0x2c4a20['type']&&_0x2c4a20['subType']==_0x2b495e&&Xt(_0x2c4a20,_0x1b837c)&&(_0x144305(_0x2c4a20['getRanges'](),_0x3b14bb)||_0x144305(_0x3b14bb,_0x2c4a20['getRanges']()))){for(const _0x295d56 of _0x3b14bb)_0x2c4a20['addRange'](_0x295d56);return _0x2c4a20;}for(const {suggestion:_0x32695e,meta:_0x5a3d37}of this['_findSuggestions'](_0x3b14bb,'insertion')){if(!_0x5a3d37['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5a3d37['containsRangeInObject'])continue;if(!Xt(_0x32695e,_0x1b837c))continue;let _0x1a0362=!0x0;for(const _0x27e27c of _0x32695e['getRanges']())for(const _0x185488 of _0x3b14bb)if(!_0x27e27c['containsRange'](_0x185488)){_0x1a0362=!0x1;break;}if(_0x1a0362)return _0x32695e;}const _0x4ab599=_0x28fc1d(),_0x4e448c=_0x389c7e['id'],_0x26d6c5='insertion:'+_0x2b495e,_0x475fec=this['_setSuggestionData']({'id':_0x4ab599,'type':_0x26d6c5,'createdAt':new Date(),'authorId':_0x4e448c,'attributes':_0x1b837c});for(const _0x585495 of _0x3b14bb)this['_addSuggestionMarker'](_0x26d6c5,_0x4ab599,_0x4e448c,_0x585495,o['getMultiRangeId']());return _0x475fec;}['markInlineFormat'](_0x40932a,_0x1cdf92,_0x504df3=null,_0x2fdf6f={}){if(_0x504df3=_0x504df3||Kt(_0x1cdf92),_0x40932a['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x324ac3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x504df3,'accept');return this['forceDefaultExecution'](()=>_0x324ac3([_0x40932a],_0x1cdf92,_0x2fdf6f)),null;}const _0x35c509=this['editor']['plugins']['get']('Users')['me'],_0x5875e0=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x44a4a5,meta:_0x318f73}of this['_findSuggestions'](_0x40932a,'insertion'))_0x318f73['isOwn']&&!_0x318f73['isInsideObject']&&_0x5875e0['push'](..._0x44a4a5['getRanges']());}const _0x13f44c=function(_0x4fe406,_0x560e22){const _0x2fef81=[];for(const _0x1dfdf7 of _0x560e22){const _0x2434ce=_0x4fe406['getIntersection'](_0x1dfdf7);_0x2434ce&&_0x2fef81['push'](_0x2434ce);}return _0x2fef81;}(_0x40932a,_0x5875e0),_0x1fc4ba=function(_0xa0c844,_0x322cdd){const _0x4e966b=[_0xa0c844];for(const _0x3c6624 of _0x322cdd){let _0x2e07e5=0x0;for(;_0x2e07e5<_0x4e966b['length'];){const _0x41f003=_0x4e966b[_0x2e07e5]['getDifference'](_0x3c6624);_0x4e966b['splice'](_0x2e07e5,0x1,..._0x41f003),_0x2e07e5+=_0x41f003['length'];}}return _0x4e966b;}(_0x40932a,_0x5875e0);_0x13f44c['length']&&this['_model']['change'](()=>{for(const _0x520309 of _0x13f44c){const _0x261df5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x504df3,'accept');this['forceDefaultExecution'](()=>_0x261df5([_0x520309],_0x1cdf92,_0x2fdf6f));}});for(const _0xa8cbc1 of _0x1fc4ba){let _0x4fcae4=null,_0xd04d73=_0xa8cbc1['start'],_0x17b8bc=_0xa8cbc1['end'];for(const {suggestion:_0x3da363,meta:_0x407718}of this['_findSuggestions'](_0xa8cbc1,'formatInline')){if(!_0x407718['isOwn'])continue;if(_0x3da363['subType']!=_0x504df3)continue;if(!Xt(_0x3da363,_0x2fdf6f))continue;const _0x52aa3c=_0x3da363['getFirstRange']();if(_0x52aa3c['containsRange'](_0xa8cbc1,!0x0))return null;_0xd04d73=_0xd04d73['isBefore'](_0x52aa3c['start'])?_0xd04d73:_0x52aa3c['start'],_0x17b8bc=_0x17b8bc['isAfter'](_0x52aa3c['end'])?_0x17b8bc:_0x52aa3c['end'],_0x4fcae4?_0x52aa3c['start']['isBefore'](_0x4fcae4['getFirstRange']()['start'])?(_0x4fcae4['removeMarkers'](),_0x4fcae4=_0x3da363):_0x3da363['removeMarkers']():_0x4fcae4=_0x3da363;}const _0x5eb7a4=this['_model']['createRange'](_0xd04d73,_0x17b8bc);if(_0x4fcae4)this['_setSuggestionRange'](_0x4fcae4,_0x5eb7a4);else{const _0x390465=_0x28fc1d(),_0x5db22a=_0x35c509['id'];this['_setSuggestionData']({'id':_0x390465,'type':'formatInline:'+_0x504df3,'data':_0x1cdf92,'createdAt':new Date(),'authorId':_0x5db22a,'attributes':_0x2fdf6f}),this['_addSuggestionMarker']('formatInline:'+_0x504df3,_0x390465,_0x5db22a,_0x5eb7a4);}}return null;}['markBlockFormat'](_0x524bc6,_0x562b9e,_0x2f210d=[],_0x4c2686=null,_0xed5df4={}){_0x562b9e['formatGroupId']||(_0x562b9e['formatGroupId']=_0x562b9e['commandName']),_0x562b9e['multipleBlocks']=_0x524bc6['is']('range'),_0x4c2686=_0x4c2686||Kt(_0x562b9e);const _0x419920=_0x2f210d['map'](_0x5ccd4a=>zt(_0x5ccd4a,this['_model'])),_0x41e233=_0x524bc6['is']('range')?_0x524bc6:zt(_0x524bc6,this['_model']);if('never'===this['_trackFormatChanges']){const _0x43e2d3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c2686,'accept');return this['forceDefaultExecution'](()=>_0x43e2d3([_0x41e233],_0x562b9e,_0xed5df4)),null;}_0x419920['push'](_0x41e233);let _0x5658ce=!0x0;for(const _0x21085f of _0x419920)if(!this['_rangeIsInLocalUserInsertion'](_0x21085f)){_0x5658ce=!0x1;break;}if(_0x5658ce&&'always'!==this['_trackFormatChanges']){const _0x15166b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c2686,'accept');return this['forceDefaultExecution'](()=>_0x15166b([_0x41e233],_0x562b9e,_0xed5df4)),null;}let _0x2a9a63=null,_0x290928=_0x41e233['start'],_0x31f5f8=_0x41e233['end'];for(const {suggestion:_0x3f306b,meta:_0x4e49f6}of this['_findSuggestions'](_0x41e233,'formatBlock')){if(!_0x4e49f6['isOwn'])continue;if(_0x4e49f6['isNextTo']||_0x4e49f6['containsRangeInObject']||_0x4e49f6['isInsideObject'])continue;if(_0x3f306b['data']['formatGroupId']!=_0x562b9e['formatGroupId'])continue;if(!Xt(_0x3f306b,_0xed5df4))continue;const _0x4e4cd4=_0x3f306b['getFirstRange']();if(_0x3f306b['subType']==_0x4c2686){if(_0x4e4cd4['containsRange'](_0x41e233,!0x0))return null;_0x290928=_0x290928['isBefore'](_0x4e4cd4['start'])?_0x290928:_0x4e4cd4['start'],_0x31f5f8=_0x31f5f8['isAfter'](_0x4e4cd4['end'])?_0x31f5f8:_0x4e4cd4['end'],_0x2a9a63?_0x4e4cd4['start']['isBefore'](_0x2a9a63['getFirstRange']()['start'])?(_0x2a9a63['removeMarkers'](),_0x2a9a63=_0x3f306b):_0x3f306b['removeMarkers']():_0x2a9a63=_0x3f306b;}else{const _0x3a618a=_0x41e233['getIntersection'](_0x4e4cd4);this['_cutOutSuggestionMarker'](_0x3f306b,_0x3a618a);}}const _0x1208b1=this['editor']['plugins']['get']('Users')['me'],_0x4805c2=_0x28fc1d(),_0x54adf4=_0x1208b1['id'];if(_0x2a9a63)return this['_setSuggestionRange'](_0x2a9a63,this['_model']['createRange'](_0x290928,_0x31f5f8)),_0x2a9a63;{const _0x1584aa=this['_setSuggestionData']({'id':_0x4805c2,'type':'formatBlock:'+_0x4c2686,'data':_0x562b9e,'createdAt':new Date(),'authorId':_0x54adf4,'attributes':_0xed5df4});return this['_addSuggestionMarker']('formatBlock:'+_0x4c2686,_0x4805c2,_0x54adf4,this['_model']['createRange'](_0x290928,_0x31f5f8)),_0x1584aa;}}['markMultiRangeBlockFormat'](_0x87fd53,_0x3d07ee,_0x4b1fb0=[],_0x37ee88=null,_0x40379d={}){_0x3d07ee['formatGroupId']||(_0x3d07ee['formatGroupId']=_0x3d07ee['commandName']);const _0x21ddd7=_0x87fd53[0x0];_0x3d07ee['multipleBlocks']=_0x21ddd7['is']('range'),_0x37ee88=_0x37ee88||Kt(_0x3d07ee);const _0x4e6d00=_0x4b1fb0['map'](_0xecaf3f=>zt(_0xecaf3f,this['_model'])),_0x598d8b=_0x21ddd7['is']('range')?_0x87fd53:_0x87fd53['map'](_0x4381fc=>zt(_0x4381fc,this['_model']));if('never'===this['_trackFormatChanges']){const _0x43116e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37ee88,'accept');return this['forceDefaultExecution'](()=>_0x43116e(_0x598d8b,_0x3d07ee,_0x40379d)),null;}_0x4e6d00['push'](..._0x598d8b);let _0x1ac6ec=!0x0;for(const _0x26cfda of _0x4e6d00)if(!this['_rangeIsInLocalUserInsertion'](_0x26cfda)){_0x1ac6ec=!0x1;break;}if(_0x1ac6ec&&'always'!==this['_trackFormatChanges']){const _0x1eac38=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37ee88,'accept');return this['forceDefaultExecution'](()=>_0x1eac38(_0x598d8b,_0x3d07ee,_0x40379d)),null;}const _0x559e55=this['editor']['plugins']['get']('Users')['me'];for(const _0x2943d1 of this['getSuggestions']()){if(_0x2943d1['author']['id']!=_0x559e55['id'])continue;if('formatBlock'!=_0x2943d1['type']||_0x2943d1['data']['formatGroupId']!=_0x3d07ee['formatGroupId'])continue;if(!Xt(_0x2943d1,_0x40379d))continue;const _0x14b0a9=_0x2943d1['subType']==_0x37ee88;for(let _0x3f8f5a=0x0;_0x3f8f5a<_0x598d8b['length'];_0x3f8f5a++){const _0x3b3bea=_0x598d8b[_0x3f8f5a];for(const _0x1511ec of _0x2943d1['getMarkers']()){const _0x3eace5=_0x1511ec['getRange']();if(_0x3b3bea['isEqual'](_0x3eace5)){_0x14b0a9?(_0x598d8b['splice'](_0x3f8f5a,0x1),_0x3f8f5a--):_0x2943d1['removeMarker'](_0x1511ec['name']);break;}}}}if(0x0==_0x598d8b['length'])return null;const _0x168cf1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37ee88,'join');for(const _0x2bea44 of this['getSuggestions']())if(_0x2bea44['author']['id']==_0x559e55['id']&&'formatBlock'==_0x2bea44['type']&&_0x2bea44['data']['formatGroupId']==_0x3d07ee['formatGroupId']&&_0x2bea44['subType']==_0x37ee88&&Xt(_0x2bea44,_0x40379d)&&(_0x168cf1(_0x2bea44['getRanges'](),_0x598d8b)||_0x168cf1(_0x598d8b,_0x2bea44['getRanges']()))){for(const _0x10484f of _0x598d8b)_0x2bea44['addRange'](_0x10484f);return _0x2bea44;}const _0x4cf3fa=_0x28fc1d(),_0x14b0f7=_0x559e55['id'],_0xe005c9='formatBlock:'+_0x37ee88,_0x4e07d7=this['_setSuggestionData']({'id':_0x4cf3fa,'type':_0xe005c9,'data':_0x3d07ee,'createdAt':new Date(),'authorId':_0x14b0f7,'attributes':_0x40379d});for(const _0x5f5179 of _0x598d8b)this['_addSuggestionMarker'](_0xe005c9,_0x4cf3fa,_0x14b0f7,_0x5f5179,o['getMultiRangeId']());return _0x4e07d7;}['markDeletion'](_0x5f365d,_0x5638e9=null,_0x46224c={}){if(_0x5f365d['isCollapsed'])return null;const _0x483d67=this['editor']['plugins']['get']('Users')['me'],_0x4c8b49=new _0x32c262(_0x5f365d['start'],_0x5f365d['end']);for(const {suggestion:_0x507116,meta:_0x1526ad}of this['_findSuggestions'](_0x4c8b49,'insertion'))if(_0x1526ad['isOwn']&&!_0x1526ad['isNextTo']){if(_0x507116['isMultiRange']){const _0x14f0e5=_0x507116['getRanges']()['filter'](_0x545f1d=>'$graveyard'!=_0x545f1d['root']['rootName']);_0x14f0e5['every'](_0x1f0db7=>_0x4c8b49['containsRange'](_0x1f0db7,!0x0))&&_0x507116['discard']();if(_0x14f0e5['some'](_0x32d6ed=>_0x32d6ed['containsRange'](_0x4c8b49,!0x0))){const _0x2e3d5c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5638e9,'accept');return this['forceDefaultExecution'](()=>_0x2e3d5c([_0x4c8b49],null,_0x46224c)),null;}}else{const _0x5476a7=_0x4c8b49['getIntersection'](_0x507116['getFirstRange']());null!==_0x5476a7&&_0x507116['_onDiscard']([_0x5476a7],null,_0x46224c);}}if(_0x4c8b49['detach'](),_0x4c8b49['isCollapsed']||'$graveyard'==_0x4c8b49['root']['rootName'])return null;let _0x487a34=null,_0x5e858d=_0x4c8b49['start'],_0x1f3fec=_0x4c8b49['end'];const _0x1f4b5b=this['_findSuggestions'](_0x4c8b49,'deletion');for(const {suggestion:_0x1bb670,meta:_0x24682d}of _0x1f4b5b){const _0x55bd1f=this['_model']['createRange'](_0x5e858d,_0x1f3fec);if(_0x24682d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x24682d['containsRangeInObject']&&!_0x24682d['isInsideObject'])){if(_0x1bb670['isMultiRange']){if(!Xt(_0x1bb670,_0x46224c))continue;let _0x5da947=!0x0;for(const _0x32fc1d of _0x1bb670['getRanges']()){if(_0x32fc1d['containsRange'](_0x55bd1f,!0x0))return _0x1bb670;_0x55bd1f['containsRange'](_0x32fc1d)||(_0x5da947=!0x1);}_0x5da947&&_0x1bb670['discard']();}else{const _0x209283=_0x1bb670['getFirstRange']();if(_0x209283['containsRange'](_0x55bd1f,!0x0))return _0x1bb670;if(!Xt(_0x1bb670,_0x46224c)){_0x55bd1f['containsRange'](_0x209283)?_0x1bb670['removeMarkers']():_0x209283['containsPosition'](_0x5e858d)?_0x5e858d=_0x209283['end']:_0x209283['containsPosition'](_0x1f3fec)&&(_0x1f3fec=_0x209283['start']);continue;}_0x5e858d=_0x5e858d['isBefore'](_0x209283['start'])?_0x5e858d:_0x209283['start'],_0x1f3fec=_0x1f3fec['isAfter'](_0x209283['end'])?_0x1f3fec:_0x209283['end'],_0x46224c=Object['assign']({},_0x1bb670['attributes']),_0x487a34?_0x209283['start']['isBefore'](_0x487a34['getFirstRange']()['start'])?(_0x487a34['removeMarkers'](),_0x487a34=_0x1bb670):_0x1bb670['removeMarkers']():_0x487a34=_0x1bb670;}}}if(_0x487a34)return this['_setSuggestionRange'](_0x487a34,this['_model']['createRange'](_0x5e858d,_0x1f3fec)),_0x487a34;{const _0x39a647=_0x28fc1d(),_0x2725ac=this['_model']['createRange'](_0x5e858d,_0x1f3fec),_0x175039=_0x483d67['id'],_0x1291f3=_0x5638e9?'deletion:'+_0x5638e9:'deletion',_0x22cf8f=this['_setSuggestionData']({'id':_0x39a647,'type':_0x1291f3,'createdAt':new Date(),'authorId':_0x175039,'attributes':_0x46224c});return this['_addSuggestionMarker'](_0x1291f3,_0x39a647,_0x175039,_0x2725ac),_0x22cf8f;}}['markMultiRangeDeletion'](_0x4a038a,_0x90936a='multi',_0x5e42f6={}){const _0xa1ffd8=this['editor']['plugins']['get']('Users')['me'],_0x55983f=_0x4a038a['map'](_0x548588=>new _0x32c262(_0x548588['start'],_0x548588['end'])),_0x5eec32=new Set();for(const {suggestion:_0x2d321a,meta:_0xabd6ca}of this['_findSuggestions'](_0x55983f,'insertion'))_0xabd6ca['isOwn']&&!_0xabd6ca['isNextTo']&&_0x5eec32['add'](_0x2d321a);for(const _0x2e4ef9 of _0x5eec32)if(_0x2e4ef9['isMultiRange']){const _0x49e700=_0x2e4ef9['getRanges']();(!_0x2e4ef9['attributes']||!_0x2e4ef9['attributes']['skipNestingCheck'])&&(_0x49e700['every'](_0x670067=>_0x55983f['some'](_0xd59e91=>_0xd59e91['containsRange'](_0x670067,!0x0)))&&_0x2e4ef9['discard']());if(_0x55983f['every'](_0x33228a=>_0x49e700['some'](_0x33302b=>_0x33302b['containsRange'](_0x33228a,!0x0)))){const _0x259c1c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x90936a,'accept');return this['forceDefaultExecution'](()=>_0x259c1c(_0x4a038a,null,_0x5e42f6)),null;}}else{const _0x40e670=_0x2e4ef9['getFirstRange']();_0x55983f['some'](_0x3cbc8c=>_0x3cbc8c['containsRange'](_0x40e670,!0x0))&&_0x2e4ef9['discard']();if(_0x55983f['every'](_0x5a6252=>_0x40e670['containsRange'](_0x5a6252,!0x0))){const _0x3c7293=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x90936a,'accept');return this['forceDefaultExecution'](()=>_0x3c7293(_0x55983f,null,_0x5e42f6)),null;}}const _0x38271b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x90936a,'join');let _0x166412=null;for(const _0x17add9 of this['getSuggestions']())if(_0x17add9['author']['id']==_0xa1ffd8['id']&&_0x17add9['isInContent']&&'deletion'==_0x17add9['type']&&_0x17add9['subType']==_0x90936a&&Xt(_0x17add9,_0x5e42f6)&&(_0x38271b(_0x17add9['getRanges'](),_0x55983f)||_0x38271b(_0x55983f,_0x17add9['getRanges']()))){if(_0x166412){if(_0x17add9['commentThread']&&_0x17add9['commentThread']['length'])continue;for(const _0x1787fb of _0x17add9['getRanges']())_0x166412['isIntersectingWithRange'](_0x1787fb)||_0x166412['addRange'](_0x1787fb);_0x17add9['removeMarkers']();}else{_0x166412=_0x17add9;for(const _0x1a1c29 of _0x55983f)_0x17add9['isIntersectingWithRange'](_0x1a1c29)||_0x17add9['addRange'](_0x1a1c29);}}if(_0x166412)return _0x166412;_0x5eec32['clear']();for(const {suggestion:_0x495196,meta:_0x4e0be7}of this['_findSuggestions'](_0x55983f,'deletion'))_0x4e0be7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4e0be7['containsRangeInObject']&&!_0x4e0be7['isInsideObject'])&&Xt(_0x495196,_0x5e42f6)&&_0x5eec32['add'](_0x495196);for(const _0x2e5e1 of _0x5eec32){const _0x2ec936=_0x2e5e1['getRanges']();if(!_0x5e42f6||!_0x5e42f6['skipNestingCheck']){if(_0x55983f['every'](_0x22e891=>_0x2ec936['some'](_0x4cb90e=>_0x4cb90e['containsRange'](_0x22e891,!0x0))))return _0x2e5e1;}(!_0x2e5e1['attributes']||!_0x2e5e1['attributes']['skipNestingCheck'])&&(_0x2ec936['every'](_0x1c1fe4=>_0x55983f['some'](_0x3127a9=>_0x3127a9['containsRange'](_0x1c1fe4,!0x0)))&&_0x2e5e1['discard']());}const _0x4a5ff1=_0x28fc1d(),_0xaea0ba=_0xa1ffd8['id'],_0xd0a7f9='deletion:'+_0x90936a,_0x15d4ee=this['_setSuggestionData']({'id':_0x4a5ff1,'type':_0xd0a7f9,'createdAt':new Date(),'authorId':_0xaea0ba,'attributes':_0x5e42f6});for(const _0x207929 of _0x55983f)_0x207929['detach'](),_0x207929['isCollapsed']||'$graveyard'==_0x207929['root']['rootName']||this['_addSuggestionMarker'](_0xd0a7f9,_0x4a5ff1,_0xaea0ba,_0x207929,o['getMultiRangeId']());return _0x15d4ee;}['markAttributeChange'](_0x58a0d4,_0x478828,_0x2e21b0,_0x287976,_0xdfce0b){if(_0x58a0d4['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3e95b8=this['editor']['plugins']['get']('Users')['me']['id'],_0x5bf13d=Array['from'](this['_suggestions']['values']())['filter'](_0x4e3146=>'attribute'==_0x4e3146['type']&&_0x4e3146['data']['key']==_0x478828&&_0x4e3146['isIntersectingWithRange'](_0x58a0d4));if('default'===this['_trackFormatChanges']){const _0x566e1f=this['_findSuggestions'](_0x58a0d4,'insertion')['filter'](({meta:_0x5ba579})=>_0x5ba579['isOwn']&&!_0x5ba579['isInsideObject']&&!_0x5ba579['isNextTo'])['map'](({suggestion:_0x12a2dc})=>_0x12a2dc);_0x5bf13d['unshift'](..._0x566e1f);}const _0x2ac626=new Map([[_0x58a0d4,_0x2e21b0]]);for(const _0x5c9318 of _0x5bf13d){const _0x1b3724='attribute'==_0x5c9318['type']?_0x5c9318['data']['oldValue']:void 0x0,_0x5dae37=_0x5c9318['getFirstRange'](),_0x4de66c=Array['from'](_0x2ac626['keys']())['find'](_0x10bcb6=>_0x10bcb6['isIntersecting'](_0x5dae37));if(!_0x4de66c)continue;const _0x2a1538=_0x4de66c['getDifference'](_0x5dae37);this['_isBlockAttribute'](_0x478828)&&'insertion'==_0x5c9318['type']&&0x0!=_0x2a1538['length']||(_0x2ac626['delete'](_0x4de66c),_0x2a1538['forEach'](_0x2728f0=>{_0x2ac626['set'](_0x2728f0,_0x2e21b0);}),'insertion'!=_0x5c9318['type']&&_0x1b3724!=_0x287976&&_0x2ac626['set'](_0x4de66c['getIntersection'](_0x5dae37),_0x1b3724));}const _0x36e34f=[];for(const [_0x2e3323,_0x16399a]of _0x2ac626){const _0x2042be=_0x28fc1d(),_0x406169={'key':_0x478828,'oldValue':_0x16399a,'newValue':_0x287976};_0x478828['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':_0x478828});const _0x312a03=('attribute:'+(_0x478828+'|'+Kt({'newValue':_0x287976})))['substring'](0x0,0x3c),_0x2be778=this['_setSuggestionData']({'id':_0x2042be,'type':_0x312a03,'data':_0x406169,'createdAt':new Date(),'authorId':_0x3e95b8,'attributes':_0xdfce0b});_0x36e34f['push'](_0x2be778),this['_addSuggestionMarker'](_0x312a03,_0x2042be,_0x3e95b8,_0x2e3323);}return _0x36e34f;}['enableDefaultAttributesIntegration'](_0x483896){this['enableCommand'](_0x483896,(_0x3b5e3e,..._0x1a3758)=>{this['_recordAttributeChanges'](()=>{_0x3b5e3e(..._0x1a3758);});});}['registerBlockAttribute'](_0x39c641){this['_blockAttributeKeys']['add'](_0x39c641);}['registerInlineAttribute'](_0x460019){this['_inlineAttributeKeys']['add'](_0x460019);}['_getAttributeKey'](_0x5b1ae1){return'attribute'==_0x5b1ae1['type']?_0x5b1ae1['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x193ee2,_0xd9497c){const _0x2e3afb=_0x193ee2['getFirstMarker']();this['_model']['change'](_0x2c4910=>{_0x2c4910['updateMarker'](_0x2e3afb,{'range':_0xd9497c});});}['_addThreadToSuggestion'](_0x74b5ec){const _0x2aa26b=_0x74b5ec['id'],_0x2f6971=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2aa26b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2f6971,'threadId':_0x2aa26b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x537988=this['_commentsRepository']['getCommentThread'](_0x2aa26b);_0x537988['unbind']('isRemovable'),_0x537988['isRemovable']=!0x1,_0x74b5ec['commentThread']=_0x537988;}['_checkSuggestionCorrectness'](_0x5b3b05,_0x5b0555,_0x1f0dc0,_0x599686){if(_0x5b3b05['type']!=_0x5b0555||_0x5b3b05['subType']!=_0x1f0dc0||_0x5b3b05['creator']['id']!=_0x599686)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x8ca9b4('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x59a4d6,_0x1ec2d7){const _0x7d2c11=_0x59a4d6['getFirstRange']();if(_0x1ec2d7['isEqual'](_0x7d2c11))_0x59a4d6['removeMarkers']();else{if(_0x7d2c11['containsRange'](_0x1ec2d7)){const _0x29a81b=this['_model']['createPositionAt'](_0x1ec2d7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x59a4d6,this['_model']['createRange'](_0x7d2c11['start'],_0x29a81b));const _0x44a38e=_0x28fc1d(),_0x4b22c3=_0x59a4d6['creator']['id'],_0x2f5725=_0x59a4d6['type']+':'+_0x59a4d6['subType'];this['_setSuggestionData']({'id':_0x44a38e,'type':_0x2f5725,'createdAt':new Date(),'authorId':_0x4b22c3,'data':_0x59a4d6['data'],'attributes':_0x59a4d6['attributes']});const _0x58ca55=this['_model']['createPositionAt'](_0x1ec2d7['end']['parent'],'after'),_0x1caddb=this['_model']['createRange'](_0x58ca55,_0x7d2c11['end']);this['_addSuggestionMarker'](_0x2f5725,_0x44a38e,_0x4b22c3,_0x1caddb);}else{if(_0x7d2c11['containsPosition'](_0x1ec2d7['start'])){const _0xb73087=this['_model']['createPositionAt'](_0x1ec2d7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x59a4d6,this['_model']['createRange'](_0x7d2c11['start'],_0xb73087));}else{const _0x1b36f4=this['_model']['createPositionAt'](_0x1ec2d7['end']['parent'],'after');this['_setSuggestionRange'](_0x59a4d6,this['_model']['createRange'](_0x1b36f4,_0x7d2c11['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4f55a4){for(const {suggestion:_0x2707a2,meta:_0x26b7a5}of this['_findSuggestions'](_0x4f55a4,'insertion')){if(!_0x26b7a5['isOwn'])continue;const _0x5d518a=_0x2707a2['getRanges']();for(const _0x498e3b of _0x5d518a)if(!_0x4f55a4['getDifference'](_0x498e3b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1ec101){const _0x415601=this['editor']['plugins']['get']('Users')['getUser'](_0x1ec101);if(!_0x415601)throw new _0x8ca9b4('track-changes-user-not-found',this);return _0x415601;}['_getExternalAuthor'](_0x340403){const _0x206340=this['editor']['plugins']['get']('Users'),_0x410d45=_0xe5c1cf('external:'+_0x340403),_0x439dcc=_0x206340['getUser'](_0x410d45);return _0x439dcc||_0x206340['addUser']({'id':_0x410d45,'name':_0x340403});}['_createSuggestion'](_0x1562cc,_0x27a3e4,_0x52430c,_0x1a4caf,_0x2a3f3b){const _0x5c8a18=this['_getAuthorFromId'](_0x1a4caf),_0x58d7e9=this['_suggestionFactory']['buildSuggestion'](_0x1562cc,_0x27a3e4,_0x52430c,_0x5c8a18,_0x2a3f3b,_0x125301=>{this['_updateSuggestionData'](_0x52430c,{'attributes':_0x125301});const _0x58b94b=this['getSuggestion'](_0x52430c);this['_joinWithAdjacentSuggestions'](new Set([_0x58b94b])),this['_refreshSuggestionsChain'](new Set([_0x58b94b]));});return this['listenTo'](_0x58d7e9,'accept',()=>{this['_updateSuggestionData'](_0x52430c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x58d7e9,'discard',()=>{this['_updateSuggestionData'](_0x52430c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x52430c,_0x58d7e9),this['_suggestionState']['set'](_0x58d7e9,'notReady'),_0x58d7e9;}['_splitMarkerName'](_0x2a1895){const _0x58b1fa=_0x2a1895['split'](':');return{'group':_0x58b1fa[0x0],'type':_0x58b1fa[0x1],'subType':_0x58b1fa['length']>=0x5?_0x58b1fa[0x2]:null,'id':_0x58b1fa['length']<0x5?_0x58b1fa[0x2]:_0x58b1fa[0x3],'authorId':_0x58b1fa['length']<0x5?_0x58b1fa[0x3]:_0x58b1fa[0x4],'markerCount':0x6==_0x58b1fa['length']?_0x58b1fa[0x5]:null};}['_breakSuggestionMarker'](_0x10aee1,_0xb5bb7d,_0x26075a){const _0x3e76f5=_0x10aee1['getFirstRange'](),_0x49031b=_0x3e76f5['start'],_0x4793b6=_0x3e76f5['end'];this['_setSuggestionRange'](_0x10aee1,this['_model']['createRange'](_0x49031b,_0xb5bb7d));const _0x1afc89=_0x28fc1d(),_0xce0bb9=_0x10aee1['creator']['id'],_0x16a32c=_0x10aee1['type']+(_0x10aee1['subType']?':'+_0x10aee1['subType']:'');this['_setSuggestionData']({'id':_0x1afc89,'type':_0x16a32c,'createdAt':new Date(),'authorId':_0xce0bb9,'originalSuggestionId':_0x10aee1['id'],'attributes':_0x10aee1['attributes'],'data':_0x10aee1['data']});const _0x21e47e=this['_getAttributeKey'](_0x10aee1);('formatBlock'==_0x10aee1['type']||_0x21e47e&&this['_isBlockAttribute'](_0x21e47e))&&(_0x26075a=this['_model']['createPositionBefore'](_0x26075a['parent'])),this['_addSuggestionMarker'](_0x16a32c,_0x1afc89,_0xce0bb9,this['_model']['createRange'](_0x26075a,_0x4793b6));}['_findSuggestions'](_0x38c3d4,_0x1c0b36=null){const _0x1fcef5=[],_0x3324f1=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x38c3d4)||(_0x38c3d4=[_0x38c3d4]);for(const _0x275e9d of this['getSuggestions']()){if(!_0x275e9d['isInContent'])continue;if(_0x1c0b36&&_0x275e9d['type']!=_0x1c0b36)continue;let _0x56af28=!0x1;for(const _0x45f5c4 of _0x275e9d['getRanges']()){for(const _0x5bc960 of _0x38c3d4){const _0x521392=_0x5bc960['start']['isEqual'](_0x45f5c4['end'])||_0x5bc960['end']['isEqual'](_0x45f5c4['start']);if(_0x521392||_0x5bc960['getIntersection'](_0x45f5c4)){const _0x392900=_0x5bc960['containsRange'](_0x45f5c4)&&Gt(this['_model']['schema'],_0x45f5c4['start'],_0x5bc960),_0x31c88f=_0x45f5c4['containsRange'](_0x5bc960)&&Gt(this['_model']['schema'],_0x5bc960['start'],_0x45f5c4);_0x1fcef5['push']({'suggestion':_0x275e9d,'meta':{'isOwn':_0x3324f1==_0x275e9d['author'],'isNextTo':_0x521392,'isInsideObject':_0x392900,'containsRangeInObject':_0x31c88f}}),_0x56af28=!0x0;break;}}if(_0x56af28)break;}}return _0x1fcef5;}['_addSuggestionMarker'](_0xf0f94d,_0x59c20c,_0x50eae9,_0x13199b,_0xfb01aa){this['_model']['change'](_0x2242f5=>{let _0x4f1856='suggestion:'+_0xf0f94d+':'+_0x59c20c+':'+_0x50eae9;_0xfb01aa&&(_0x4f1856=_0x4f1856+':'+_0xfb01aa),_0x2242f5['addMarker'](_0x4f1856,{'range':_0x13199b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1a906c){const _0x583b92=_0x1a906c['previous'],_0x6e8648=_0x1a906c['next'];_0x1a906c['previous']=null,_0x1a906c['next']=null,null!=_0x583b92&&_0x583b92['next']==_0x1a906c&&(_0x583b92['next']=_0x6e8648),null!=_0x6e8648&&_0x6e8648['previous']==_0x1a906c&&(_0x6e8648['previous']=_0x583b92),'ready'==this['_suggestionState']['get'](_0x1a906c)&&(this['_suggestionState']['set'](_0x1a906c,'removed'),this['fire']('suggestionUnloaded',_0x1a906c,_0x583b92,_0x6e8648));}['_setSuggestionData'](_0x3f75cf){const _0x29c871=_0x3f75cf['id'],_0x330945=this['addSuggestionData'](_0x3f75cf);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x494789=this['editor']['plugins']['get']('PendingActions'),_0xd5b370=_0x330945['hasComments'],_0xa4d2be=_0x330945['subType']?_0x330945['type']+':'+_0x330945['subType']:_0x330945['type'],_0xf4c11a=this['editor']['locale'],_0x106976=_0x494789['add'](c(_0xf4c11a,'PENDING_ACTION_SUGGESTION')),_0x1bc31a={'id':_0x29c871,'type':_0xa4d2be,'hasComments':_0xd5b370,'data':_0x3f75cf['data']||null,'originalSuggestionId':_0x3f75cf['originalSuggestionId']||null,'attributes':_0x330945['attributes']};this['_adapter']['addSuggestion'](_0x1bc31a)['then'](_0x3e48f8=>{_0x330945['_saved']=!0x0,_0x494789['remove'](_0x106976),_0x3e48f8&&_0x3e48f8['createdAt']&&(this['_suggestions']['get'](_0x29c871)['createdAt']=_0x3e48f8['createdAt']);})['catch'](_0x12b049=>{throw _0x50b90e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x330945['discard']();}),_0x330945['stopListening'](),this['_suggestions']['delete'](_0x330945['id']),this['_suggestionState']['delete'](_0x330945),_0x12b049;});}return _0x330945;}['_isBlockAttribute'](_0x1ba450){return this['_blockAttributeKeys']['has'](_0x1ba450);}['_updateSuggestionData'](_0x4f7274,_0xeb9266){const _0x443050=this['editor']['plugins']['get']('PendingActions'),_0x3a6f5d=this['getSuggestion'](_0x4f7274);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3a6f5d['_saved']){const _0x244bd3=_0x443050['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4f7274,_0xeb9266)['then'](()=>{_0x443050['remove'](_0x244bd3);});}else _0x3a6f5d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4f7274,_0xeb9266);});}}['_getSuggestionData'](_0x481ced){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x8ca9b4('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x481ced);}['_handleNewSuggestionMarker'](_0x199785){const {id:_0x1f2abc,type:_0xdce588,subType:_0x459b05,authorId:_0x40ee1c}=this['_splitMarkerName'](_0x199785),_0x3dea4e=this['_suggestions']['get'](_0x1f2abc)||this['_createSuggestion'](_0xdce588,_0x459b05,_0x1f2abc,_0x40ee1c,{});switch(this['_checkSuggestionCorrectness'](_0x3dea4e,_0xdce588,_0x459b05,_0x40ee1c),this['_suggestionState']['get'](_0x3dea4e)){case'notReady':this['_getSuggestionData'](_0x1f2abc)['then'](_0x2b3e21=>{let _0x1ce620=Promise['resolve']();_0x2b3e21['hasComments']&&(_0x1ce620=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1f2abc})),_0x1ce620['then'](()=>{this['addSuggestionData'](_0x2b3e21)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3dea4e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1f2abc,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3dea4e,'ready'),this['fire']('suggestionLoaded',_0x3dea4e);break;case'ready':this['fire']('suggestionChanged',_0x3dea4e);}return _0x3dea4e['addMarkerName'](_0x199785),_0x3dea4e;}['_refreshSuggestionsChain'](_0x2d95f2){const _0x2e7b3d=Array['from'](_0x2d95f2),_0xf15002=_0x2e7b3d['filter'](_0x2c97c6=>'attribute'==_0x2c97c6['type']);this['_refreshAttributeSuggestionsChain'](_0xf15002);const _0x5e5641=_0x2e7b3d['filter'](_0x451fef=>!_0x451fef['isMultiRange']&&'attribute'!=_0x451fef['type']),_0x3ed482=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d172b=>!_0x2d172b['isMultiRange']&&'attribute'!=_0x2d172b['type']),_0x37e90f=_0x3ed482['filter'](_0x300a2d=>!_0x2d95f2['has'](_0x300a2d)),_0xb1b3af=new Map(_0x3ed482['map'](_0x1d8efd=>[_0x1d8efd,this['_suggestionFactory']['getSuggestionCallback'](_0x1d8efd['type'],_0x1d8efd['subType'],'chain')])),_0x433dcb=new Map(_0x3ed482['map'](_0x1a3116=>[_0x1a3116,_0x1a3116['getFirstRange']()])),_0xf47884=new Set(),_0x3fcc88=new Set();for(let _0x3a8ce9=0x0;_0x3a8ce9<_0x5e5641['length'];_0x3a8ce9++)_0x5d962b(_0x5e5641[_0x3a8ce9],_0x5e5641,_0x3a8ce9+0x1);for(let _0x24ee4a=0x0;_0x24ee4a<_0x5e5641['length'];_0x24ee4a++)_0x5d962b(_0x5e5641[_0x24ee4a],_0x37e90f,0x0);const _0x462c40=new Set();for(let _0x87a039=0x0;_0x87a039<_0x5e5641['length'];_0x87a039++){const _0x1aa27e=_0x5e5641[_0x87a039];!_0x3fcc88['has'](_0x1aa27e)&&_0x1aa27e['previous']&&(_0x462c40['add'](_0x1aa27e['previous']),_0x1aa27e['previous']['next']===_0x1aa27e&&(_0x1aa27e['previous']['next']=null),_0x1aa27e['previous']=null),!_0xf47884['has'](_0x1aa27e)&&_0x1aa27e['next']&&(_0x462c40['add'](_0x1aa27e['next']),_0x1aa27e['next']['previous']===_0x1aa27e&&(_0x1aa27e['next']['previous']=null),_0x1aa27e['next']=null);}function _0x5d962b(_0x5fa7df,_0x31b768,_0x454be6){for(let _0x357808=_0x454be6;_0x357808<_0x31b768['length'];_0x357808++){const _0x3d2aa5=_0x3e942b(_0x5fa7df,_0x31b768[_0x357808]);_0x3d2aa5&&(_0x3d2aa5[0x0]['next']=_0x3d2aa5[0x1],_0x3d2aa5[0x1]['previous']=_0x3d2aa5[0x0],_0xf47884['add'](_0x3d2aa5[0x0]),_0x3fcc88['add'](_0x3d2aa5[0x1]));}}function _0x3e942b(_0x373746,_0x5eef3e){if(_0x373746['author']['id']!==_0x5eef3e['author']['id'])return null;const _0x9e20db=_0xb1b3af['get'](_0x373746)(_0x373746,_0x5eef3e,_0x433dcb['get'](_0x373746),_0x433dcb['get'](_0x5eef3e));if(!_0x9e20db)return null;return _0xb1b3af['get'](_0x5eef3e)(_0x373746,_0x5eef3e,_0x433dcb['get'](_0x373746),_0x433dcb['get'](_0x5eef3e))?_0x9e20db[0x1]['commentThread']&&_0x9e20db[0x1]['commentThread']['length']?null:_0x9e20db:null;}_0x462c40['size']&&this['_refreshSuggestionsChain'](_0x462c40);}['_refreshAttributeSuggestionsChain'](_0x1420a3){if(0x0==_0x1420a3['length'])return;const _0x34fff5=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x121b12=>'attribute'==_0x121b12['type']&&_0x121b12['_isDataLoaded']),_0x6d99ba=[],_0x5789ba=new Map();for(const _0x2a4c2b of _0x34fff5){const _0xa360f2=_0xe5c1cf(_0x2a4c2b['attributes']);_0x5789ba['has'](_0xa360f2)||(_0x5789ba['set'](_0xa360f2,_0x6d99ba['length']),_0x6d99ba['push']([]));const _0x10c5a5=_0x5789ba['get'](_0xa360f2);_0x6d99ba[_0x10c5a5]['push'](_0x2a4c2b);}!(function(){_0x6d99ba['sort']((_0x77fcc,_0x246273)=>{const _0xd0c7b2=_0x77fcc[0x0]['createdAt'],_0x143f30=_0x246273[0x0]['createdAt'];return _0xd0c7b2==_0x143f30?_0x77fcc[0x0]['attributes']['groupId']<_0x246273[0x0]['attributes']['groupId']?-0x1:0x1:_0xd0c7b2<_0x143f30?-0x1:0x1;});for(const _0x339c4b of _0x6d99ba)_0x339c4b['sort']((_0x2d47c7,_0x22687c)=>_0x2d47c7['id']<_0x22687c['id']?-0x1:0x1);}());for(let _0x1ee4bd=0x0;_0x1ee4bd<_0x6d99ba['length'];_0x1ee4bd++){if(0x0==_0x6d99ba[_0x1ee4bd]['length'])continue;const _0x598501=[];for(let _0x4cf40e=_0x1ee4bd+0x1;_0x4cf40e<_0x6d99ba['length'];_0x4cf40e++)0x0!=_0x6d99ba[_0x4cf40e]['length']&&_0x1bbfb8(_0x6d99ba[_0x1ee4bd],_0x6d99ba[_0x4cf40e])&&_0x598501['push'](_0x4cf40e);for(const _0x525f5d of _0x598501)_0x6d99ba[_0x1ee4bd]=_0x6d99ba[_0x1ee4bd]['concat'](_0x6d99ba[_0x525f5d]),_0x6d99ba[_0x525f5d]=[];}for(const _0x483c8d of _0x6d99ba)for(let _0x114b99=0x0;_0x114b99<_0x483c8d['length'];_0x114b99++){const _0x4f933c=_0x483c8d[_0x114b99+0x1]||null;_0x483c8d[_0x114b99]['next']!==_0x4f933c&&(_0x483c8d[_0x114b99]['next']=_0x4f933c);}for(const _0x2240b5 of _0x6d99ba)for(let _0x13ca5d=0x0;_0x13ca5d<_0x2240b5['length'];_0x13ca5d++){const _0x5cac7b=_0x2240b5[_0x13ca5d-0x1]||null;_0x2240b5[_0x13ca5d]['previous']!==_0x5cac7b&&(_0x2240b5[_0x13ca5d]['previous']=_0x5cac7b);}function _0x1bbfb8(_0x571e14,_0x4cc13a){if(_0x571e14[0x0]['attributes']['groupId']!==_0x4cc13a[0x0]['attributes']['groupId']&&_0x571e14[0x0]['author']!==_0x4cc13a[0x0]['author'])return!0x1;if(!function(_0x1a6ea6,_0x2d1fc2){if(!_0x1a6ea6['hasComments']&&!_0x2d1fc2['hasComments'])return!0x0;if(_0x1a6ea6['hasComments']&&_0x2d1fc2['hasComments'])return!0x1;if(_0x1a6ea6['hasComments']&&_0x2d1fc2['createdAt']<_0x1a6ea6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2d1fc2['hasComments']&&_0x1a6ea6['createdAt']<_0x2d1fc2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x571e14[0x0],_0x4cc13a[0x0]))return!0x1;const _0x21a6b4=Ft(_0x571e14[0x0]['attributes'],'groupId'),_0x40e823=Ft(_0x4cc13a[0x0]['attributes'],'groupId');if(!_0xd04f79(_0x21a6b4,_0x40e823))return!0x1;return!!_0x571e14['every'](_0xfa79d1=>_0x4cc13a['some'](_0x3e9323=>_0xfa79d1['getFirstRange']()['isEqual'](_0x3e9323['getFirstRange']())))&&_0x4cc13a['every'](_0x47b2a7=>_0x571e14['some'](_0x49519a=>_0x47b2a7['getFirstRange']()['isEqual'](_0x49519a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3c5417){const _0x33648b=Array['from'](_0x3c5417),_0x10ccf7=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3bfc43=_0x10ccf7['filter'](_0x912930=>!_0x3c5417['has'](_0x912930)),_0x30309f=new Map(_0x33648b['map'](_0x34605e=>[_0x34605e,this['_suggestionFactory']['getSuggestionCallback'](_0x34605e['type'],_0x34605e['subType'],'join')])),_0x383d60=new Map(_0x10ccf7['map'](_0x58ab81=>[_0x58ab81,_0x58ab81['getRanges']()]));for(let _0x1b024c=0x0;_0x1b024c<_0x33648b['length'];_0x1b024c++){if(_0x1bedf6(this,_0x33648b[_0x1b024c],_0x33648b,_0x1b024c+0x1))return!0x0;}for(let _0x31f12e=0x0;_0x31f12e<_0x33648b['length'];_0x31f12e++){if(_0x1bedf6(this,_0x33648b[_0x31f12e],_0x3bfc43,0x0))return!0x0;}return!0x1;function _0x1bedf6(_0x23a181,_0x4ebc8e,_0x2da4be,_0x5e6c7c){for(let _0x4f514d=_0x5e6c7c;_0x4f514d<_0x2da4be['length'];_0x4f514d++){const _0x4e7fff=_0x2da4be[_0x4f514d];if(_0x4e7fff['type']!==_0x4ebc8e['type']||_0x4e7fff['author']['id']!==_0x4ebc8e['author']['id']||_0x4e7fff['subType']!==_0x4ebc8e['subType'])continue;if(!Qt(_0x4ebc8e,_0x4e7fff))continue;if('attribute'==_0x4ebc8e['type']&&_0x4ebc8e['data']['oldValue']!=_0x4e7fff['data']['oldValue'])continue;if('attribute'==_0x4ebc8e['type']&&_0x23a181['_isBlockAttribute'](_0x4ebc8e['data']['key']))continue;if('formatBlock'==_0x4ebc8e['type']){const _0x382f3e=_0x23a181['editor']['model'],_0x2b5d7c=_0x4ebc8e['getContainedElement']();if(_0x2b5d7c&&(_0x382f3e['schema']['isObject'](_0x2b5d7c)||_0x382f3e['schema']['isLimit'](_0x2b5d7c)))continue;}const _0x1eeb1e=_0x30309f['get'](_0x4ebc8e),_0x1af91e=_0x383d60['get'](_0x4ebc8e),_0x87a9c3=_0x383d60['get'](_0x4e7fff),_0x341b2a=_0x4ebc8e['commentThread']&&_0x4ebc8e['commentThread']['length'],_0x389dd9=_0x4e7fff['commentThread']&&_0x4e7fff['commentThread']['length'];if(!_0x341b2a&&_0x1eeb1e(_0x87a9c3,_0x1af91e))return _0x23a181['_joinSuggestions'](_0x4e7fff,_0x4ebc8e),_0x383d60['delete'](_0x4ebc8e),!0x0;if(!_0x389dd9&&_0x1eeb1e(_0x1af91e,_0x87a9c3))return _0x23a181['_joinSuggestions'](_0x4ebc8e,_0x4e7fff),_0x383d60['delete'](_0x4e7fff),!0x0;}return!0x1;}}['_joinSuggestions'](_0x508c93,_0x26a736){if(_0x508c93['isMultiRange']){for(const _0x699cd4 of _0x26a736['getRanges']())_0x508c93['addRange'](_0x699cd4);}else{const _0x1db2ca=_0x26a736['getFirstRange']()['end'];this['_setSuggestionRange'](_0x508c93,this['_model']['createRange'](_0x508c93['getFirstRange']()['start'],_0x1db2ca));}_0x26a736['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3b736e,_0x2624af,_0x57b83d){const _0x9c5463=_0x3b736e['startsWith']('format')||_0x3b736e['startsWith']('attribute')?'FORMATTING':_0x3b736e['toUpperCase']();return c(this['editor']['locale'],_0x2624af+'_'+_0x9c5463+'_SUGGESTION_ANNOUNCEMENT',_0x57b83d);}['_initAriaMarkerChangeAnnouncements'](){const _0x2aea7b=this['editor'];if(!_0x2aea7b['ui'])return;const {ariaLiveAnnouncer:_0x36c503}=_0x2aea7b['ui'];_0x3e7fe4(this['_model'],({left:_0x393b1e,entered:_0x5600ef})=>{for(const _0x438ef0 of _0x393b1e){const {group:_0x3f4319,type:_0x22137c}=this['_splitMarkerName'](_0x438ef0['name']);if('suggestion'===_0x3f4319){_0x36c503['announce'](this['_getMarkerAnnouncementText'](_0x22137c,'LEAVE'));break;}}for(const _0x5de4a2 of _0x5600ef){const {group:_0x4c17a9,type:_0x701ea4}=this['_splitMarkerName'](_0x5de4a2['name']);if('suggestion'===_0x4c17a9){_0x36c503['announce'](this['_getMarkerAnnouncementText'](_0x701ea4,'ENTER',_0xb31a9c(_0x3fed91)));break;}}});}['_processAttributeChanges'](_0x40a165){if(this['_recordAttributeSuggestions'])return!0x1;const _0x28c2de=this['editor'],_0x58e498=_0x28c2de['model']['document']['differ']['getChanges']();if(0x0==_0x58e498['length'])return!0x1;const _0x1bf15a=[],_0x206155=_0x58e498['filter'](_0x2cbe9e=>'attribute'==_0x2cbe9e['type']),_0x2e0f4f=_0x58e498['filter'](_0x366c71=>'insert'==_0x366c71['type']&&'$text'!=_0x366c71['name']),_0x34fc2b=_0x58e498['filter'](_0x320c62=>'remove'==_0x320c62['type']&&'$text'!=_0x320c62['name']);for(const _0x1fce35 of _0x206155)_0x1bf15a['push']({'key':_0x1fce35['attributeKey'],'newValue':_0x1fce35['attributeNewValue'],'oldValue':_0x1fce35['attributeOldValue'],'range':qt(_0x1fce35['range'],_0x28c2de['model'])});for(const _0x3c68b0 of _0x2e0f4f){const _0x9a79a7=_0x34fc2b['find'](_0x418383=>_0x418383['position']['isEqual'](_0x3c68b0['position']));_0x9a79a7&&_0x1bf15a['push']({'key':u,'newValue':_0x3c68b0['name'],'oldValue':_0x9a79a7['name'],'range':_0x28c2de['model']['createRangeOn'](_0x3c68b0['position']['nodeAfter'])});}return 0x0!=_0x1bf15a['length']&&this['_reduceExistingSuggestions'](_0x40a165,_0x1bf15a);}['_processAttributeSuggestions'](_0x496e12){let _0x10dc3c=!0x1;const _0x312277=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x771145=>_0x771145['data']['newRange']&&_0x771145['name']['startsWith']('suggestion:attribute:'));for(const _0x28f804 of _0x312277){const {subType:_0x16e8e2,id:_0x12adf1}=this['_splitMarkerName'](_0x28f804['name']),_0x209eda=_0x16e8e2['split']('|')[0x0];for(const _0x3d38ad of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3d38ad['id']!=_0x12adf1&&'attribute'==_0x3d38ad['type']&&_0x3d38ad['data']&&_0x3d38ad['data']['key']==_0x209eda&&_0x3d38ad['getFirstRange']()['isIntersecting'](_0x28f804['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3d38ad,_0x28f804['data']['newRange'],_0x496e12),_0x10dc3c=!0x0);}return _0x10dc3c;}['_recordAttributeChanges'](_0x409724){this['_recordAttributeSuggestions']=!0x0,_0x409724();}['_isRegisteredAttribute'](_0x2d6e9f){const _0x49f949=this['_isBlockAttribute'](_0x2d6e9f),_0x507acf=this['_inlineAttributeKeys']['has'](_0x2d6e9f);return _0x49f949||_0x507acf;}['_reduceExistingSuggestions'](_0x333ea3,_0x4779b2){if(0x0==_0x4779b2['length'])return!0x1;let _0xc32f05=!0x1;for(const _0x2d4e08 of _0x4779b2){const _0x39a16e=this['_findSuggestions'](_0x2d4e08['range'],'attribute')['filter'](_0x3b8fc1=>!_0x3b8fc1['meta']['isNextTo'])['map'](_0x3ffafe=>_0x3ffafe['suggestion']),_0x3482dc=_0xe5c1cf({'newValue':_0x2d4e08['newValue']});_0x39a16e['filter'](_0x18840a=>{const [_0x231fe1,_0x5db983]=_0x18840a['subType']['split']('|');return _0x231fe1==_0x2d4e08['key']&&_0x5db983!=_0x3482dc;})['forEach'](_0xd90a6c=>{this['_reduceSuggestionAttributeRange'](_0xd90a6c,_0x2d4e08['range'],_0x333ea3),_0xc32f05=!0x0;});}return _0xc32f05;}['_reduceSuggestionAttributeRange'](_0x1b0bc3,_0x192003,_0x207809){const _0x2887b4=_0x1b0bc3['getFirstRange']()['getDifference'](_0x192003);0x0!==_0x2887b4['length']?0x1!==_0x2887b4['length']?this['_breakSuggestionMarker'](_0x1b0bc3,_0x192003['start'],_0x192003['end']):this['_setSuggestionRange'](_0x1b0bc3,_0x2887b4[0x0]):_0x207809['removeMarker'](_0x1b0bc3['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x29aa99){this['_editor']=_0x29aa99,this['_model']=_0x29aa99['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4e17f3,_0x48a846,_0x5562ad,_0x11f53d,_0x7c6ced,_0x326619){return new o(this['_model'],{'type':_0x4e17f3,'subType':_0x48a846,'id':_0x5562ad,'author':_0x11f53d,'creator':_0x11f53d,'attributes':_0x7c6ced,'onAttributesChange':_0x326619,'onAccept':(..._0x367ddd)=>this['getSuggestionCallback'](_0x4e17f3,_0x48a846,'accept')(..._0x367ddd),'onDiscard':(..._0x133b49)=>this['getSuggestionCallback'](_0x4e17f3,_0x48a846,'discard')(..._0x133b49)});}['registerCustomCallback'](_0x20be14,_0x157186,_0x49e1d9,_0x7d9b28){const _0x456e51=_0x20be14+':'+_0x157186+':'+_0x49e1d9;this['_customCallbacks']['set'](_0x456e51,_0x7d9b28);}['getSuggestionCallback'](_0x5a125f,_0x1b355,_0x44a90f){const _0x578884=_0x5a125f+':'+_0x1b355+':'+_0x44a90f;return this['_customCallbacks']['get'](_0x578884)||this['_defaultCallbacks']['get'](_0x5a125f+':'+_0x44a90f);}['_registerDefaultCallbacks'](){const _0x25e870=()=>!0x1,_0x3236c4=_0x6bb9d6=>{_0x6bb9d6['sort']((_0x2942e0,_0x667340)=>_0x2942e0['start']['isBefore'](_0x667340['start'])?0x1:-0x1),this['_model']['change'](_0x4bb118=>{for(const _0x45af2d of _0x6bb9d6){let _0x5577af;_0x5577af=_0x45af2d['end']['isAtEnd']&&_0x45af2d['end']['parent']==_0x45af2d['start']['nodeAfter']?_0x4bb118['createSelection'](_0x45af2d['start']['nodeAfter'],'on'):_0x4bb118['createSelection'](_0x45af2d),this['_model']['deleteContent'](_0x5577af,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4a35f7=(_0x3bbada,_0x1681f5)=>{_0x1681f5&&this['_model']['change'](_0x5e7d37=>{const {commandName:_0x347ddb,commandParams:_0x4cf580=[]}=_0x1681f5,_0x1ee41f=_0x3bbada['map'](_0x5480df=>(Lt(_0x5480df)&&(_0x5480df=this['_model']['createRange'](_0x5480df['end'])),_0x5480df))['filter'](_0x3bb6f2=>'$graveyard'!==_0x3bb6f2['root']['rootName']);if(_0x1ee41f['length']<0x1)return;const _0x43d799=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x516124=>_0x32c262['fromRange'](_0x516124));_0x5e7d37['setSelection'](_0x1ee41f);for(const _0x54ca50 of this['_editor']['commands']['commands']())_0x54ca50['refresh']();_0x4cf580['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x347ddb,..._0x4cf580);const _0x202c14=_0x43d799['filter'](_0x1d22b5=>'$graveyard'!=_0x1d22b5['root']['rootName']);_0x202c14['length']>0x0&&_0x5e7d37['setSelection'](_0x202c14);for(const _0x9c8aed of _0x43d799)_0x9c8aed['detach']();});},_0x3b86bf=(_0x589fa3,_0x4ccfc3)=>0x1==_0x589fa3['length']&&0x1==_0x4ccfc3['length']&&_0x589fa3[0x0]['end']['isEqual'](_0x4ccfc3[0x0]['start']),_0x3ed36c=(_0xb63545,_0x2ac1dd,_0x54d072,_0x30b139)=>Wt(_0xb63545,_0x2ac1dd,_0x54d072,_0x30b139)?[_0xb63545,_0x2ac1dd]:Wt(_0x2ac1dd,_0xb63545,_0x30b139,_0x54d072)?[_0x2ac1dd,_0xb63545]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x25e870),this['_defaultCallbacks']['set']('insertion:discard',_0x3236c4),this['_defaultCallbacks']['set']('insertion:join',_0x3b86bf),this['_defaultCallbacks']['set']('insertion:chain',_0x3ed36c),this['_defaultCallbacks']['set']('deletion:accept',_0x3236c4),this['_defaultCallbacks']['set']('deletion:discard',_0x25e870),this['_defaultCallbacks']['set']('deletion:join',_0x3b86bf),this['_defaultCallbacks']['set']('deletion:chain',_0x3ed36c),this['_defaultCallbacks']['set']('formatInline:accept',_0x4a35f7),this['_defaultCallbacks']['set']('formatInline:discard',_0x25e870),this['_defaultCallbacks']['set']('formatInline:join',_0x3b86bf),this['_defaultCallbacks']['set']('formatInline:chain',_0x25e870),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4a35f7),this['_defaultCallbacks']['set']('formatBlock:discard',_0x25e870),this['_defaultCallbacks']['set']('formatBlock:join',_0x3b86bf),this['_defaultCallbacks']['set']('formatBlock:chain',_0x25e870),this['_defaultCallbacks']['set']('attribute:accept',_0x25e870),this['_defaultCallbacks']['set']('attribute:discard',(_0x27ad4c,_0x157ddd)=>{if(!_0x157ddd)return;const _0x589d1e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x42048a=>{if(_0x157ddd['key']==u)for(const _0x275d87 of _0x27ad4c){const _0xf4ba12=_0x275d87['start']['nodeAfter'],_0x34ce64=_0x157ddd['oldValue'];_0x42048a['rename'](_0xf4ba12,_0x34ce64);}else{if(_0x589d1e['_isBlockAttribute'](_0x157ddd['key'])){for(const _0x1fa22a of _0x27ad4c)void 0x0!==_0x157ddd['oldValue']?_0x42048a['setAttribute'](_0x157ddd['key'],_0x157ddd['oldValue'],_0x1fa22a['start']['nodeAfter']):_0x42048a['removeAttribute'](_0x157ddd['key'],_0x1fa22a['start']['nodeAfter']);}else{for(const _0x74c8b8 of _0x27ad4c)_0x157ddd['oldValue']?_0x42048a['setAttribute'](_0x157ddd['key'],_0x157ddd['oldValue'],_0x74c8b8):_0x42048a['removeAttribute'](_0x157ddd['key'],_0x74c8b8);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3b86bf);}}function Gt(_0x325008,_0x2d3ff4,_0x17cf25){for(const _0x51600e of _0x2d3ff4['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x51600e['root']==_0x51600e)return!0x1;if(!_0x17cf25['containsItem'](_0x51600e))return!0x1;if(_0x325008['isObject'](_0x51600e)||_0x325008['isLimit'](_0x51600e))return!0x0;}return!0x1;}function Lt(_0x2bb348){return _0x2bb348['end']['parent']==_0x2bb348['start']['nodeAfter']&&_0x2bb348['end']['isAtStart'];}function Jt(_0x1ace1f,_0x3c8357,_0xeab2ce,_0x3e75d8){const _0x691ce7=_0x1390f7=>!_0x1390f7['item']['is']('$textProxy')&&!_0x3e75d8['isObject'](_0x1390f7['item']),_0x4ee1cf=_0x1ace1f['start']['getLastMatchingPosition'](_0x691ce7),_0x94c18b=_0x1ace1f['end']['getLastMatchingPosition'](_0x691ce7,{'direction':'backward'});return(!_0x1ace1f['start']['isEqual'](_0x4ee1cf)||!_0x1ace1f['end']['isEqual'](_0x94c18b))&&(_0x4ee1cf['isBefore'](_0x94c18b)?_0xeab2ce['updateMarker'](_0x3c8357,{'range':_0xeab2ce['createRange'](_0x4ee1cf,_0x94c18b)}):_0xeab2ce['removeMarker'](_0x3c8357),!0x0);}function Kt(_0x1c471f){return _0xe5c1cf(_0x1c471f);}function Ht(_0x18ce38){const _0x26c1b6=_0x18ce38['start']['nodeAfter'];return _0x26c1b6&&_0x26c1b6['is']('element');}function qt(_0x4df7b4,_0x516a9b){return null==_0x4df7b4['end']['nodeBefore']&&_0x4df7b4['end']['parent']==_0x4df7b4['start']['nodeAfter']?zt(_0x4df7b4['start']['nodeAfter'],_0x516a9b):_0x4df7b4;}function zt(_0x31a735,_0x3f2668){const _0x16ec0d=_0x3f2668['schema']['isObject'](_0x31a735)||_0x3f2668['schema']['isSelectable'](_0x31a735);return _0x3f2668['createRange'](_0x3f2668['createPositionAt'](_0x31a735,'before'),_0x16ec0d?_0x3f2668['createPositionAfter'](_0x31a735):_0x3f2668['createPositionAt'](_0x31a735,'end'));}function Wt(_0x1e1fa7,_0x5d9c98,_0x539f3e,_0x3392e5){return!!Qt(_0x1e1fa7,_0x5d9c98)&&_0x539f3e['end']['isEqual'](_0x3392e5['start']);}function Qt(_0x3bb576,_0x1fe670){if(!_0x3bb576['_isDataLoaded']||!_0x1fe670['_isDataLoaded'])return!0x1;const _0x174a84=new Set(Object['keys'](_0x3bb576['attributes'])),_0x3bfbb4=new Set(Object['keys'](_0x1fe670['attributes']));if(_0x174a84['delete']('groupId'),_0x3bfbb4['delete']('groupId'),0x0==_0x174a84['size']&&0x0==_0x3bfbb4['size'])return!0x0;if(_0x174a84['size']!=_0x3bfbb4['size'])return!0x1;const _0x48facf={..._0x3bb576['attributes']},_0x529766={..._0x1fe670['attributes']};return delete _0x48facf['groupId'],delete _0x529766['groupId'],JSON['stringify'](_0x48facf)==JSON['stringify'](_0x529766);}function Xt(_0x1e8ead,_0x48cfd0){const _0x7549af=Yt(_0x1e8ead['attributes']),_0x1239aa=Yt(_0x48cfd0);if(!_0x1e8ead['_isDataLoaded'])return!0x1;for(const _0x26e105 of Object['keys'](_0x1239aa))if(!_0xd04f79(_0x7549af[_0x26e105],_0x1239aa[_0x26e105]))return!0x1;return!0x0;}function Yt(_0x42e581){const _0x52e255=Object['assign']({},_0x42e581);return delete _0x52e255['skipNestingCheck'],delete _0x52e255['tablePasteChainId'],_0x52e255;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x39691b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x563774,_0x4ca396,_0x378df4,_0x247fab){super(),this['model']=_0x4ca396,this['view']=_0x378df4,this['commentThreadController']=_0x247fab,this['_editor']=_0x563774,this['_acceptCommand']=_0x563774['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x563774['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x581513,_0x5e4b5a)=>_0x581513||_0x5e4b5a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x12c22e=>_0x12c22e&&this['_editor']['model']['canEditAt'](_0x4ca396['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x264f0d=>_0x264f0d&&this['_editor']['model']['canEditAt'](_0x4ca396['getRanges']())),this['_pendingAction']=null,_0x378df4['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x378df4,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x378df4,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x378df4,'change:isDirty',()=>{_0x378df4['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 _0x2cd8b5=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2cd8b5);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x414788{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2f87d5,_0x5daf7a,_0x4f340e,_0x409c57){super(_0x2f87d5),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x22b82e(_0x2f87d5,c(_0x2f87d5,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5daf7a['authoredAt']),this['bind']('authoredAt')['to'](_0x5daf7a),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',_0x5daf7a,'authoredAt',this,'descriptionParts',(_0x4294be,_0x369261,_0x5cca63)=>{const _0x28610b=_0x5cca63['map'](_0xc6c8b=>ls(_0xc6c8b['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4294be-0x1,_0x5daf7a['author']['name'],_0x369261?_0x409c57['formatDateTime'](_0x369261):'',new DOMParser()['parseFromString'](_0x28610b,'text/html')['body']['textContent']]);}),this['focusables']=new _0x47ce2c(),this['focusTracker']=new _0x5e2866(),this['keystrokes']=new _0x74400f(),this['focusCycler']=new _0x46df1d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x14011d=>_0x14011d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5daf7a,this['_localUser']=_0x4f340e,this['_config']=_0x409c57,_0x409c57['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5e809d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5f0e51}=this['_config'];this['commentsListView']=new _0x5f0e51(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',_0x199b31=>_0x199b31+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x38ad03,_0x1c14c1)=>_0x38ad03||!!_0x1c14c1);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xdae8a3}=this['_config'],_0x3872ae=new _0xdae8a3(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x462b58=_0x3872ae['commentInputView'];return _0x3872ae['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x462b58,'value',(_0x32b1e3,_0x17845a,_0x47c196)=>!!_0x47c196||_0x32b1e3&&!_0x17845a),_0x462b58['on']('submit',(_0x4d1603,_0x21094d)=>{this['fire']('addComment',_0x21094d),_0x462b58['editor']['setData']('');}),_0x462b58['on']('cancel',()=>this['focus']()),_0x462b58['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3872ae;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0xde9d08,_0x985e7f,_0x5db6f3,_0x37fcd9){super(_0xde9d08,_0x985e7f,_0x5db6f3,_0x37fcd9),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x507d05=>_0x507d05&&_0x507d05[0x0]?_0x507d05[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2136a1,_0x18f25f)=>{let _0x1c60b6='';for(const _0x13fdad of _0x2136a1)_0x1c60b6+='<p>'+ls(_0x13fdad['content'],_0x13fdad['color'])+'</p>';return _0x18f25f?_0x1c60b6:ti(_0x1c60b6,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x37fcd9['SuggestionView'](_0xde9d08,_0x985e7f,{'formatDateTime':_0x37fcd9['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 _0xb41b45=this['bindTemplate'],_0x1a1502=[this['suggestionView']];return this['commentsListView']&&_0x1a1502['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1a1502['push'](this['commentThreadInputView']),_0x1a1502['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xb41b45['if']('isActive','ck-suggestion-wrapper--active'),_0xb41b45['to']('type',_0x23531f=>'ck-suggestion-'+_0x23531f),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':_0xb41b45['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1a1502};}['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 _0x414788{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x205268,_0x1e4c73,_0x33d3fa){super(_0x205268),this['_model']=_0x1e4c73,this['_config']=_0x33d3fa,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1e4c73),this['acceptButton']=this['_createButton'](c(_0x205268,'Accept\x20suggestion'),_0x1316bd,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x205268,'Discard\x20suggestion'),_0x3e0d6b,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x556284(_0x205268,_0x1e4c73['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x47ce2c([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5e2866(),this['keystrokes']=new _0x74400f(),this['focusCycler']=new _0x46df1d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xa7974e=>_0xa7974e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3ae8cb=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3ae8cb['innerHTML']=this['description'],this['on']('change:description',(_0xe6bf40,_0x5b069e,_0x523e33)=>{_0x3ae8cb['innerHTML']=_0x523e33;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5544ac=this['bindTemplate'],_0x323c56=[{'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':_0x5544ac['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5544ac['to']('authoredAt',_0x47f6ad=>this['_config']['formatDateTime'](_0x47f6ad))}]}]},{'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']&&_0x323c56['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':_0x323c56}]};}['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'](_0x558d22,_0x5e3035,_0x2119b7,_0x1ec0c1,_0x5d299a){const _0x3982dc=new _0xa25662(this['locale']);return _0x3982dc['set']({'label':_0x558d22,'icon':_0x5e3035,'tooltip':!0x0,'tooltipPosition':_0x5d299a}),_0x3982dc['extendTemplate']({'attributes':{'class':_0x2119b7}}),_0x3982dc['on']('execute',()=>{this['fire'](_0x1ec0c1,this['_model']['id']);}),_0x3982dc;}['_setupKeyboardNavigation'](){const _0x105551=this['element'];this['keystrokes']['listenTo'](_0x105551);for(const _0x11fe20 of this['focusables'])this['focusTracker']['add'](_0x11fe20['element']),this['keystrokes']['listenTo'](_0x11fe20['element']);this['keystrokes']['set']('enter',(_0x46d692,_0x4ff726)=>{_0x105551===_0x46d692['target']&&(this['focusCycler']['focusFirst'](),_0x4ff726());}),this['keystrokes']['set']('esc',(_0x57092c,_0x1cebb3)=>{_0x105551!==_0x57092c['target']&&(this['focus'](),_0x1cebb3());});}}class d extends _0x51821d{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x87033f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d53ec){super(_0x4d53ec),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x32ae56=this['editor']['config'];_0x32ae56['define']('trackChanges.SuggestionThreadView',fe),_0x32ae56['define']('trackChanges.SuggestionView',we),_0x32ae56['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x32ae56['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1be0e7,_0x2381e1){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x25709d,_0x551d7c]of this['_handleControllerBuffer']){const _0x226f93=this['_suggestionToController']['has'](_0x25709d);_0x226f93||_0x551d7c?_0x226f93&&_0x551d7c&&this['_destroyController'](_0x25709d):this['_initializeController'](_0x25709d);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1be0e7,_0x2381e1);}['init'](){const _0x2149f8=this['editor'],_0x42bea3=_0x2149f8['plugins']['get']('TrackChangesEditing'),_0xd5f4d8=_0x2149f8['plugins']['get']('Annotations'),_0x69ae56=_0x2149f8['plugins']['get']('EditorAnnotations'),_0x50ea79=_0x2149f8['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x69ae56['addSourceCollector'](()=>{const _0x5f546f=[];for(const [_0x678f82,_0x345f4d]of Array['from'](this['_suggestionToController'])){const _0x51a4e4=_0x678f82['getAllAdjacentSuggestions'](),_0x80681b=[];for(const _0x5b296f of _0x51a4e4){if(!_0x5b296f['isInContent'])continue;if(_0x5b296f['isMultiRange']){_0x80681b['push'](..._0x5b296f['getRanges']());continue;}const _0xa670d4=_0x5b296f['getFirstRange']();if(_0x80681b['length']>0x0){const _0x4dff2a=_0x80681b[0x0]['getJoined'](_0xa670d4);if(_0x4dff2a){_0x80681b[0x0]=_0x4dff2a;continue;}}_0x80681b['push'](_0xa670d4);}_0x5f546f['push']([_0x345f4d['view'],_0x80681b]);}return _0x5f546f;}),this['listenTo'](_0x42bea3,'suggestionLoaded',(_0x14362a,_0x50a043)=>{this['listenTo'](_0x50a043,'change:previous',(_0x42e929,_0x36a5d0,_0x524510,_0x3258fc)=>{_0x50a043['isInContent']&&(null==_0x524510?(this['_updateController'](_0x3258fc['head']),this['_handleSuggestionControllerDelayed'](_0x50a043,!0x1)):(this['_updateController'](_0x524510['head']),null==_0x3258fc&&this['_handleSuggestionControllerDelayed'](_0x50a043,!0x0)));}),null!==_0x50a043['previous']?this['_updateController'](_0x50a043['head']):this['_handleSuggestionControllerDelayed'](_0x50a043,!0x1);}),this['listenTo'](_0x42bea3,'suggestionUnloaded',(_0x47f9eb,_0x2b156f,_0x153928)=>{this['stopListening'](_0x2b156f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2b156f),this['_suggestionToController']['has'](_0x2b156f)&&this['_destroyController'](_0x2b156f),_0x153928&&this['_updateController'](_0x153928['head']);}),this['listenTo'](_0x42bea3,'suggestionChanged',(_0x1f21f9,_0xe06e5c)=>{this['_updateController'](_0xe06e5c);}),this['listenTo'](_0xd5f4d8,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x50ea79,'addComment',(_0x12f257,{threadId:_0x58b654,isFromAdapter:_0x2c34aa})=>{if(_0x2c34aa||!_0x42bea3['hasSuggestion'](_0x58b654))return;const _0x18c557=_0x42bea3['getSuggestion'](_0x58b654);this['_suggestionToController']['get'](_0x18c557)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1c51e6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2f81d9;for(const _0x1b1a73 in _0x1c51e6){const _0x5325f2=_0x1b1a73,_0x108f69=_0x1c51e6[_0x5325f2];if('trackChangesLicenseKeyValid'==_0x108f69||'trackChangesLicenseKeyInvalid'==_0x108f69||'trackChangesLicenseKeyExpired'==_0x108f69||'trackChangesLicenseKeyDomainLimit'==_0x108f69||'trackChangesLicenseKeyNotAllowed'==_0x108f69||'trackChangesLicenseKeyEvaluationLimit'==_0x108f69||'trackChangesLicenseKeyTrialLimit'==_0x108f69||'trackChangesLicenseKeyUsageLimit'==_0x108f69){delete _0x1c51e6[_0x5325f2],_0x2f81d9=_0x108f69,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2f81d9&&_0x1c51e6['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2f81d9&&_0x1c51e6['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2f81d9&&_0x1c51e6['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2f81d9&&_0x1c51e6['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2f81d9&&_0x1c51e6['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2f81d9&&_0x1c51e6['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2f81d9&&_0x1c51e6['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x32bb96=this['editor']['plugins']['get']('Annotations'),_0xa552bd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32031b=Array['from'](_0x32bb96['activeAnnotations'],_0x451d1a=>_0x451d1a['innerView'])['filter'](_0x4a295c=>this['_viewToController']['has'](_0x4a295c)),_0x3c11e9=[];for(const _0x1f1c00 of _0x32031b){const _0x1dfd12=this['_viewToController']['get'](_0x1f1c00)['model']['getAllAdjacentSuggestions']();_0x3c11e9['push'](..._0x1dfd12['reduce']((_0x4d5eeb,_0x4add84)=>[..._0x4d5eeb,..._0x4add84['getMarkerNames']()],[]));}_0xa552bd['activeMarkers']=_0x3c11e9;}['_addUIComponentsToFactory'](){const _0x420be0=this['editor'],_0x1860fd=_0x420be0['locale'],_0xc7b35b=c(_0x1860fd,'Track\x20changes'),_0x89b372=new _0x1d884a([{'type':'switchbutton','model':new _0x2e1f11({'withText':!0x0,'isToggleable':!0x0,'label':_0xc7b35b,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2e1f11({'withText':!0x0,'label':c(_0x1860fd,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e1f11({'withText':!0x0,'label':c(_0x1860fd,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e1f11({'withText':!0x0,'label':c(_0x1860fd,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e1f11({'withText':!0x0,'label':c(_0x1860fd,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x420be0['plugins']['has']('TrackChangesPreview')&&_0x89b372['addMany']([{'type':'separator'},{'type':'button','model':new _0x2e1f11({'withText':!0x0,'label':c(_0x1860fd,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x240ecb of _0x89b372)if(ke(_0x240ecb)){const _0x58c8d6=_0x420be0['commands']['get'](_0x240ecb['model']['commandName']);_0x240ecb['model']['bind']('isOn','isEnabled')['to'](_0x58c8d6,'value','isEnabled');}_0x420be0['ui']['componentFactory']['add']('trackChanges',_0xb96285=>this['_createToolbarButton'](_0xb96285,_0x89b372,_0xc7b35b)),_0x420be0['ui']['componentFactory']['add']('menuBar:trackChanges',_0x437f09=>this['_createMenuBarMenu'](_0x437f09,_0x89b372,_0xc7b35b));}['_createToolbarButton'](_0x8c1a97,_0x93e799,_0x281a5a){const _0x12c05c=_0x36e88b(_0x8c1a97,_0x356563),_0x4752f9=this['editor']['commands']['get']('trackChanges');_0x12c05c['buttonView']['set']({'tooltip':_0x281a5a,'label':_0x281a5a,'icon':_0x5bd8f3}),_0x12c05c['buttonView']['bind']('isOn')['to'](_0x4752f9,'value'),_0x12c05c['buttonView']['on']('execute',()=>{_0x4752f9['execute'](),this['editor']['editing']['view']['focus']();}),_0x4426af(_0x12c05c,_0x93e799,{'role':'menu'});const _0x432414=[];for(const _0x275394 of _0x93e799)ke(_0x275394)&&_0x432414['push'](this['editor']['commands']['get'](_0x275394['model']['commandName']));const _0x3aaedc=_0x12c05c['buttonView'];return _0x3aaedc['actionView']['unbind']('isEnabled'),_0x3aaedc['arrowView']['unbind']('isEnabled'),_0x3aaedc['actionView']['bind']('isEnabled')['to'](_0x4752f9,'isEnabled'),_0x3aaedc['arrowView']['bind']('isEnabled')['toMany'](_0x432414,'isEnabled',(..._0x19f1f9)=>_0x19f1f9['some'](_0x4b0e2c=>_0x4b0e2c)),_0x12c05c['on']('execute',_0x4cafe9=>{this['editor']['execute'](_0x4cafe9['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x12c05c;}['_createMenuBarMenu'](_0x3cd6f8,_0x51acfe,_0x59583e){const _0x507b4d=new _0x5450e5(_0x3cd6f8),_0x3d3ba8=this['editor']['commands']['get']('trackChanges');_0x507b4d['buttonView']['set']({'label':_0x59583e,'icon':_0x5bd8f3});const _0x5775bf=new _0x45bd9c(_0x3cd6f8);for(const _0x1a1048 of _0x51acfe){if('separator'==_0x1a1048['type']){_0x5775bf['items']['add'](new _0x50542e(_0x3cd6f8));continue;}const _0x5e772e=new _0x4c14ca(_0x3cd6f8,_0x507b4d),_0x52c72e=new _0xbd703b(_0x3cd6f8),_0x1c5034=_0x1a1048['model'];_0x52c72e['bind'](...Object['keys'](_0x1c5034))['to'](_0x1c5034),_0x52c72e['delegate']('execute')['to'](_0x507b4d),_0x52c72e['on']('execute',()=>{this['editor']['execute'](_0x1c5034['commandName']),this['editor']['editing']['view']['focus']();}),_0x5e772e['children']['add'](_0x52c72e),_0x5775bf['items']['add'](_0x5e772e);}return _0x507b4d['bind']('isEnabled')['to'](_0x3d3ba8,'isEnabled'),_0x507b4d['panelView']['children']['add'](_0x5775bf),_0x507b4d;}['_initializeController'](_0x1a1655){const _0x440e31=this['editor'],_0x205e00=_0x440e31['config'],_0x1fb1ab=_0x440e31['plugins']['get']('Annotations'),_0x28d1de=_0x440e31['plugins']['get']('CommentsRepository'),_0x296084=_0x440e31['plugins']['get']('EditorAnnotations'),_0x4d3efc=_0x440e31['plugins']['get'](_0x87033f)['me'],_0x19afa0=_0x205e00['get']('trackChanges')['SuggestionThreadView'],_0x26fdb3=_0x205e00['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x489aaa,CommentThreadInputView:_0x5b4c41}=_0x440e31['plugins']['get']('CommentsUI');let _0x2d5805,_0x1eb0ba,_0x3daa07;this['_annotationViews']['has'](_0x1a1655['id'])?(_0x1eb0ba=this['_annotationViews']['get'](_0x1a1655['id']),_0x2d5805=_0x1eb0ba['mainView']):(_0x2d5805=new _0x19afa0(_0x440e31['locale'],_0x1a1655,_0x4d3efc,{'disableComments':this['_disableComments'],'editorConfig':{..._0x205e00['get']('comments.editorConfig'),'licenseKey':_0x205e00['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x205e00['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x205e00['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x205e00['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1fcb93(_0x205e00['get']('locale'),_0x440e31['locale']),'CommentView':_0x205e00['get']('comments')['CommentView'],'CommentsListView':_0x489aaa,'CommentThreadInputView':_0x5b4c41,'SuggestionView':_0x26fdb3}),_0x2d5805['suggestionView']['acceptButton']['on']('execute',()=>{_0x440e31['editing']['view']['focus']();}),_0x2d5805['suggestionView']['discardButton']['on']('execute',()=>{_0x440e31['editing']['view']['focus']();}),_0x1eb0ba=_0x1fb1ab['createAnnotationView'](this['editor']['locale'],_0x2d5805),_0x1eb0ba['bind']('isDirty')['to'](_0x2d5805,'isDirty'),_0x1eb0ba['bind']('length')['to'](_0x2d5805),_0x1eb0ba['bind']('type')['to'](_0x2d5805,'type',_0x53bb24=>'suggestion-'+_0x53bb24),_0x2d5805['on']('escape',()=>{_0x3daa07['fire']('escape');}),this['_annotationViews']['set'](_0x1a1655['id'],_0x1eb0ba));const _0x5bd20c=_0x28d1de['createCommentThreadController'](_0x1a1655['commentThread'],_0x2d5805),_0x44e719=new pe(_0x440e31,_0x1a1655,_0x2d5805,_0x5bd20c),_0x1cc95f=_0x1a1655['getAllAdjacentSuggestions']()['filter'](_0x27b46c=>_0x27b46c['isInContent']);_0x2d5805['descriptionParts']=_0x440e31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1cc95f),this['_suggestionToController']['set'](_0x1a1655,_0x44e719),this['_viewToController']['set'](_0x2d5805,_0x44e719),_0x3daa07=_0x1fb1ab['createAnnotation']({'view':_0x1eb0ba,'target':()=>{const _0x526469=[],_0x3d8bd8=_0x1a1655['getAllAdjacentSuggestions']()['filter'](_0x5642d5=>_0x5642d5['isInContent']);for(const _0xf7de5 of _0x3d8bd8)_0x526469['push'](..._0xf7de5['getMarkers']());return _0x45a5ac(_0x440e31['editing'],_0x526469);},'type':()=>'suggestion-'+_0x44e719['view']['type']}),_0x28d1de['_bindAnnotationToEditors'](_0x2d5805,_0x3daa07),_0x1fb1ab['add'](_0x3daa07),_0x296084['registerAnnotation'](_0x3daa07);}['_destroyController'](_0xd67bf9){const _0x3468c1=this['editor']['plugins']['get']('CommentsRepository'),_0x4b8570=this['editor']['plugins']['get']('Annotations'),_0x551d1e=this['_suggestionToController']['get'](_0xd67bf9),_0x2c0ca3=_0x551d1e['view'],_0x5a23b6=_0x4b8570['getByInnerView'](_0x2c0ca3);_0x3468c1['_unbindEditors'](_0x2c0ca3),_0x5a23b6&&_0x4b8570['remove'](_0x5a23b6),this['_suggestionToController']['delete'](_0xd67bf9),this['_viewToController']['delete'](_0x2c0ca3),_0x551d1e['destroy']();}['_updateController'](_0x1f5749){if(!_0x1f5749['isInContent']||!this['_suggestionToController']['has'](_0x1f5749))return;const _0x5ed91d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f0cbb=this['_suggestionToController']['get'](_0x1f5749),_0x3d380e=_0x1f5749['getAllAdjacentSuggestions']();_0x3f0cbb['view']['descriptionParts']=_0x5ed91d['descriptionFactory']['getDescriptions'](_0x3d380e);}['destroy'](){for(const _0x32d715 of this['_suggestionToController']['keys']())this['_destroyController'](_0x32d715);for(const _0xc2ecd8 of this['_annotationViews']['values']())_0xc2ecd8['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x44ca4c){return'model'in _0x44ca4c;}class k extends _0x51821d{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1b103b){this['editor']['plugins']['get'](p)['adapter']=_0x1b103b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x32a8ab){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x32a8ab);}['getSuggestions']({skipNotAttached:_0x28f44e=!0x1,toJSON:_0xbe7ab9=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x28f44e,'toJSON':_0xbe7ab9});}['getSuggestion'](_0x2fccce){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2fccce);}}const w=['Pagination'];class T extends _0x51821d{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xb5fe09=this['editor'];if(_0xb5fe09['config']['define']('trackChangesData.editorCreator',_0x73a9af=>{const _0x49d507=_0xb5fe09['model']['document']['getRootNames']()['reduce']((_0x4b680e,_0x5c12ca)=>(_0x4b680e[_0x5c12ca]='',_0x4b680e),{});return _0xb5fe09['constructor']['create'](_0x49d507,_0x73a9af);}),'function'!=typeof _0xb5fe09['config']['get']('trackChangesData')['editorCreator'])throw new _0x8ca9b4('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x351789){return N(this['editor'],!0x0,_0x351789);}['getDataWithDiscardedSuggestions'](_0xe48827){return N(this['editor'],!0x1,_0xe48827);}}class D extends _0x51821d{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xeca466){function _0x1cdeae(_0x112573){return _0x112573['map'](_0x42430a=>String['fromCharCode'](_0x42430a))['join']('');}super(_0xeca466),this['result']='end',_0xeca466[_0x1cdeae([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1cdeae([0x76,0x69,0x65,0x77])][_0x1cdeae([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1cdeae([0x61,0x75,0x74,0x6f]),_0xeca466[_0x1cdeae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1cdeae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1cdeae([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1cdeae([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1cdeae([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(_0x45f88b){return void 0x0!==_0x45f88b['getRootsAttributes'];}async function N(_0x4a3faf,_0x3e26d8,_0x2566d9){const _0x20fed1=_0x4d1040(_0x4a3faf,w);_0x20fed1['plugins']['push'](p,D),_0x20fed1['rootsAttributes']=Ge(_0x4a3faf)?_0x4a3faf['getRootsAttributes']():void 0x0;const _0x49710f=document['createDocumentFragment'](),_0x250e07=_0x4a3faf['config']['get']('trackChangesData')['editorCreator'],_0x2303ca=await _0x250e07(_0x20fed1,()=>function(_0x1e3cec){const _0x2f5c10=document['createElement']('div');return _0x1e3cec['appendChild'](_0x2f5c10),_0x2f5c10;}(_0x49710f));!function(_0x426f71,_0x1fada7){const _0x3c74ea=_0x426f71['model']['document']['getRootNames']()['reduce']((_0x143b2b,_0x119408)=>(_0x143b2b[_0x119408]=_0x426f71['data']['get']({'rootName':_0x119408}),_0x143b2b),{}),_0x3d1a5e=_0x426f71['plugins']['get']('Users')['users']['map'](_0x6efd26=>({'id':_0x6efd26['id'],'name':_0x6efd26['name']})),_0x4bfaa1=_0x426f71['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x424bc4=_0x426f71['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2bb787=_0x1fada7['plugins']['get']('Users'),_0x58f5fd=_0x1fada7['plugins']['get']('TrackChangesEditing'),_0x3e5142=_0x1fada7['plugins']['get']('CommentsRepository');for(const _0x51b897 of _0x3e5142['getCommentThreads']())_0x51b897['remove']();for(const _0x656170 of _0x3d1a5e)_0x2bb787['getUser'](_0x656170['id'])||_0x2bb787['addUser'](_0x656170);_0x2bb787['me']||_0x2bb787['useAnonymousUser']();for(const _0x7fa7ef of _0x424bc4)_0x3e5142['addCommentThread'](_0x7fa7ef);for(const _0x37e024 of _0x4bfaa1)_0x58f5fd['addSuggestionData'](_0x37e024);_0x1fada7['data']['set'](_0x3c74ea);}(_0x4a3faf,_0x2303ca),_0x2303ca['execute'](_0x3e26d8?'acceptAllSuggestions':'discardAllSuggestions');const _0x4000dd=Ge(_0x2303ca)?_0x2303ca['getFullData'](_0x2566d9):_0x2303ca['data']['get'](_0x2566d9);return await _0x2303ca['destroy'](),_0x4000dd;}class Me extends _0x414788{['options'];constructor(_0x2caa66,_0x5cced3){super(_0x2caa66),this['options']=_0x5cced3,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'](_0x22f690,_0x3b6e02){if(!this['element'])return;const _0x56f77d=[];for(const [_0x18de02,_0x242586]of _0x22f690){const _0x46e204=document['createElement']('div');_0x46e204['setAttribute']('data-ck-root-name',_0x18de02),_0x46e204['className']=_0x242586['classes']+'\x20ck-track-changes-preview__root-container',_0x46e204['innerHTML']=_0x242586['content'],_0x56f77d['push'](_0x46e204);}_0x3b6e02(this['element'],_0x56f77d),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x2da07f{constructor(_0x5bd19f){super(_0x5bd19f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3ac068=this['editor'],_0x5c0f70=_0x3ac068['locale'],_0x233bf=_0x3ac068['plugins']['get']('Dialog');let _0x37dbed;const _0x165588=function(_0x329643){const _0x1f0452={};if('editables'in _0x329643['ui']['view']){for(const [_0x56b498,_0x4fa7c4]of Object['entries'](_0x329643['ui']['view']['editables']))_0x1f0452[_0x56b498]=_0x4fa7c4['element'];}else _0x1f0452[_0x329643['model']['document']['getRootNames']()[0x0]]=_0x329643['ui']['view']['editable']['element'];return _0x1f0452;}(_0x3ac068),_0x2c1cb0=function(_0x11fb93){let _0x1a60b5=0x0;for(const _0x366e75 of Object['values'](_0x11fb93))_0x1a60b5=Math['max'](_0x1a60b5,_0x366e75['getBoundingClientRect']()['width']);let _0x105a9c=0x0;for(const _0x236e95 of Object['values'](_0x11fb93))_0x105a9c+=_0x236e95['getBoundingClientRect']()['height'];const _0x536569=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x30fccc=Math['min'](_0x105a9c,_0x536569);return{'width':_0x1a60b5,'height':_0x30fccc};}(_0x165588);_0x233bf['show']({'id':'finalContentPreview','title':c(_0x5c0f70,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5c0f70,{'dialogRects':_0x2c1cb0}),'onHide':()=>{_0x37dbed['detachFromDom']();},'onShow':()=>{_0x3ac068['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x38bbb2=>{const _0x246c38=this['_standarizeRootsData'](_0x38bbb2,_0x3ac068,_0x165588);_0x233bf['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x246c38,_0x3ac068['config']['get']('trackChanges.preview.renderFunction'));}),_0x37dbed=new _0x156b41(_0x5c0f70,[_0x233bf['view']]),_0x37dbed['attachToDom'](),_0x37dbed['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3ac068['once']('destroy',()=>{_0x37dbed['detachFromDom']();});const _0x2f88c3=_0x233bf['view']['headerView']['class'];_0x233bf['view']['headerView']['class']=_0x2f88c3?_0x2f88c3+'\x20ck-reset_all':'ck-reset_all',_0x233bf['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x233bf['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4de833=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3e8b55=_0x4de833['previewMode'],_0x507260={};if('$labels'===_0x3e8b55){for(const _0x1e50f6 of _0x4de833['getMergeFieldsIds']())_0x507260[_0x1e50f6]=_0x4de833['getLabel'](_0x1e50f6)||_0x1e50f6;}else{const _0x26c04d='$defaultValues'===_0x3e8b55?_0x4de833['getDefaultValues']():_0x4de833['getDataSetValues'](_0x3e8b55,!0x0);for(const _0x31eefc of Object['entries'](_0x26c04d)){const [_0x104ce9,_0x282543]=_0x31eefc;_0x507260[_0x104ce9]=null!==_0x282543?_0x282543:_0x4de833['getLabel'](_0x104ce9)||_0x104ce9;}}return{'mergeFieldsData':_0x507260};}['_standarizeRootsData'](_0x4e4912,_0x4c846b,_0x112d0c){let _0x4ca3e0;if('string'==typeof _0x4e4912){const _0x3aae41=_0x4c846b['model']['document']['getRootNames']()[0x0];_0x4ca3e0={[_0x3aae41]:_0x4e4912};}else _0x4ca3e0=_0x4e4912;const _0x37f9d8=this['_fixMediaEmbeds'](_0x4ca3e0,_0x4c846b),_0x32588b=function(_0x1805f3,_0x47d0ff){for(const [_0x4ba3a8,_0x4f0be3]of _0x1805f3)_0x4f0be3['classes']=_0x47d0ff[_0x4ba3a8]['classList']['value']['replace']('ck-focused','');return _0x1805f3;}(this['_sortRoots'](_0x4c846b)['reduce']((_0x539956,_0xc16598)=>(_0x539956['push']([_0xc16598,{'content':_0x37f9d8[_0xc16598],'classes':''}]),_0x539956),[]),_0x112d0c);return _0x32588b;}['_fixMediaEmbeds'](_0x24c201,_0x420bcc){if(!_0x420bcc['plugins']['has']('MediaEmbedEditing'))return _0x24c201;const _0xb4529c=_0x420bcc['plugins']['get']('MediaEmbedEditing');for(const [_0x404573,_0x49db9d]of Object['entries'](_0x24c201)){const _0x5001ac=document['createElement']('div');_0x5001ac['innerHTML']=_0x49db9d,(_0x5001ac['querySelectorAll']('figure.media')['forEach'](_0x38f435=>{const _0x56755f=_0x38f435['querySelector']('oembed');if(_0x56755f){const _0xfde9d4=_0x56755f['getAttribute']('url');if(_0xfde9d4){const _0x36a2a7=_0xb4529c['registry']['getMediaViewElement'](new _0x403d13(_0x420bcc['editing']['view']['document']),_0xfde9d4,{'elementName':'','renderForEditingView':!0x0}),_0x161933=document['createElement']('div');_0x161933['classList']['add']('ck-media__wrapper'),_0x36a2a7['render'](_0x161933,_0x420bcc['editing']['view']['domConverter']),_0x56755f['replaceWith'](_0x161933);}}}),_0x24c201[_0x404573]=_0x5001ac['innerHTML']);}return _0x24c201;}['_sortRoots'](_0xe037fd){if(!function(_0x4c5d13){return void 0x0!==_0x4c5d13['getRootsAttributes'];}(_0xe037fd))return _0xe037fd['model']['document']['getRootNames']();const _0xee41d4=[],_0x101a86=new Map();for(const _0x39d8a7 of _0xe037fd['model']['document']['getRootNames']()){const _0x4c899d=_0xe037fd['editing']['view']['getDomRoot'](_0x39d8a7)['getClientRects']()['item'](0x0);_0xee41d4['push'](_0x39d8a7),_0x101a86['set'](_0x39d8a7,_0x4c899d);}return _0xee41d4['sort']((_0xf2eb23,_0x4ff5f0)=>{const _0x160373=_0x101a86['get'](_0xf2eb23),_0x415a1e=_0x101a86['get'](_0x4ff5f0);return _0x160373['y']-_0x415a1e['y']||_0x160373['x']-_0x415a1e['x'];}),_0xee41d4;}}class te extends _0x51821d{static get['requires'](){return[T,_0x5b4889];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x480e0b){super(_0x480e0b),_0x480e0b['commands']['add']('previewFinalContent',new re(this['editor'])),_0x480e0b['config']['define']('trackChanges.preview.renderFunction',(_0x6dd7a2,_0x2addba)=>{for(const _0x59bd7f of _0x2addba)_0x6dd7a2['appendChild'](_0x59bd7f);});}}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};
|