@ckeditor/ckeditor5-track-changes 45.2.0-alpha.4 → 45.2.0-alpha.6
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
|
-
_0xc1a90b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1df10e,_0x6fdc18){super(),this['id']=_0x6fdc18['id'],this['type']=_0x6fdc18['type'],this['subType']=_0x6fdc18['subType']||null,this['author']=_0x6fdc18['author'],this['creator']=_0x6fdc18['creator']||_0x6fdc18['author'],this['isExternal']=Boolean(_0x6fdc18['attributes']&&_0x6fdc18['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x6fdc18['originalSuggestionId']||null,this['_model']=_0x1df10e,this['_onAccept']=_0x6fdc18['onAccept'],this['_onDiscard']=_0x6fdc18['onDiscard'],this['_onAttributesChange']=_0x6fdc18['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x6fdc18['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 _0x4bd736=this;for(;_0x4bd736['previous'];)_0x4bd736=_0x4bd736['previous'];return _0x4bd736;}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'](_0x9cafa2){this['_markerNames']['add'](_0x9cafa2);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1c4e4d=>this['_model']['markers']['get'](_0x1c4e4d))['filter'](_0x1a0b12=>_0x1a0b12);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4cb516=>{for(const _0x2a39b4 of this['getMarkers']())_0x4cb516['removeMarker'](_0x2a39b4);}),this['_markerNames']['clear']();}['removeMarker'](_0x56c964){this['_model']['change'](_0x416284=>{_0x416284['removeMarker'](_0x56c964);}),this['_markerNames']['delete'](_0x56c964);}['addRange'](_0x232aab){const _0x4f43e4='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x4f43e4),this['_model']['change'](_0x43710d=>{_0x43710d['addMarker'](_0x4f43e4,{'range':_0x232aab,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2978b8){for(const _0x4eb730 of this['getRanges']())if(_0x4eb730['isIntersecting'](_0x2978b8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x430f47=>_0x430f47['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1ca7f4,_0x1b0642)=>[..._0x1ca7f4,..._0x1b0642['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2c217a=this['getRanges']();if(0x1!=_0x2c217a['length'])return null;const _0x5d0969=_0x2c217a[0x0],_0x4f468f=_0x5d0969['start']['nodeAfter'],_0x3ac609=_0x5d0969['end']['nodeBefore'];return _0x4f468f instanceof _0x323e08?_0x4f468f!=_0x3ac609?null:_0x4f468f: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 _0x329d04=[];let _0x1f3758=this['head'];for(;_0x1f3758;)_0x329d04['push'](_0x1f3758),_0x1f3758=_0x1f3758['next'];return _0x329d04;}['setAttribute'](_0x582dfc,_0x4da1f1){const _0x41a5b8=_0x3928a0(this['attributes']);_0x5c561e(_0x41a5b8,_0x582dfc,_0x4da1f1),_0x550687(_0x41a5b8,this['attributes'])||(this['attributes']=_0x41a5b8,this['_onAttributesChange'](_0x41a5b8));}['removeAttribute'](_0x3cb663){const _0x25d8c4=_0x3928a0(this['attributes']);_0x3d6d6f(_0x25d8c4,_0x3cb663),_0x550687(_0x25d8c4,this['attributes'])||(this['attributes']=_0x25d8c4,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 _0x1526c3()['substr'](0x1,0x5);}}function c(_0x2d6fb3,_0x426b56,_0x48d368){const _0xae7ac2=_0x2d6fb3['t'],t=_0x2d6fb3['t'];switch(_0x426b56){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',_0x48d368);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x48d368);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x48d368);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x48d368);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x48d368);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',_0x48d368);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x48d368);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',_0x48d368);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x48d368);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x48d368);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x48d368);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x48d368);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x48d368);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x48d368);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x48d368);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x48d368);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x48d368);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x48d368);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x48d368);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x48d368);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x48d368);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x48d368);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x48d368);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x48d368);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x48d368);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'},_0x48d368);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x48d368);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x48d368);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x48d368);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x48d368);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x48d368);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x48d368);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x48d368);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'},_0x48d368);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x48d368);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x48d368);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x48d368);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x48d368);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'},_0x48d368);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x48d368);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'},_0x48d368);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'},_0x48d368);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x48d368);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'},_0x48d368);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x48d368);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'},_0x48d368);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x48d368);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x48d368);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'},_0x48d368);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x48d368);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 _0xae7ac2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x48d368);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xae7ac2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x48d368);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x48d368);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'},_0x48d368);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'},_0x48d368);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'},_0x48d368);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x426b56;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3bc5fd,_0x4851d2){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3bc5fd,this['_locale']=_0x4851d2;}['getDescriptions'](_0x56e9c3){const _0x602f1e=[],_0x2c8c52=new Set(),_0x5eb433=new Set();for(let _0x4eeb4d=0x0;_0x4eeb4d<_0x56e9c3['length'];_0x4eeb4d++){const _0x19b0ed=_0x56e9c3[_0x4eeb4d];if(!_0x19b0ed['isInContent'])continue;const _0x487d5e=this['_handleCustomCallbackDescription'](_0x19b0ed);if(_0x487d5e){if(null!=_0x19b0ed['subType']){if(_0x2c8c52['has'](_0x19b0ed['subType']))continue;_0x2c8c52['add'](_0x19b0ed['subType']);}_0x602f1e['push'](_0x487d5e);}else{if('attribute'!=_0x19b0ed['type'])'insertion'!=_0x19b0ed['type']&&'deletion'!=_0x19b0ed['type']||this['_handleInsertRemoveSuggestionDescription'](_0x602f1e,_0x19b0ed,_0x56e9c3[_0x4eeb4d+0x1]);else{const _0x5cd5af=_0x19b0ed['data']['key'];if(_0x5eb433['has'](_0x5cd5af))continue;_0x5eb433['add'](_0x19b0ed['data']['key']),_0x5cd5af==u?this['_handleRenameSuggestionDescription'](_0x602f1e,_0x19b0ed):this['_handleAttributeSuggestionDescription'](_0x602f1e,_0x19b0ed);}}}return this['_resolveDescriptionItems'](_0x602f1e);}['registerDescriptionCallback'](_0x16af2b){this['_customCallbacks']['push'](_0x16af2b);}['registerElementLabel'](_0x5cfd9b,_0x1c1c24,_0x5415d8=_0x2dda8a['normal']){'function'==typeof _0x5cfd9b?_0x35266b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5cfd9b,'label':_0x1c1c24,'priority':_0x5415d8}):this['_itemLabels']['set'](_0x5cfd9b,_0x1c1c24);}['registerAttributeLabel'](_0x1c81c6,_0x431ceb){this['_attributeLabels']['set'](_0x1c81c6,_0x431ceb);}['getItemLabel'](_0x55079c,_0x30b934=0x1){let _0x41b29f;for(const _0x400de5 of this['_itemLabelsCallbacks'])if(_0x400de5['matchingCallback'](_0x55079c)){_0x41b29f=_0x400de5['label'];break;}return _0x41b29f||(_0x41b29f=this['_itemLabels']['get'](_0x55079c['name'])),_0x41b29f?_0x41b29f(_0x30b934):0x1!==_0x30b934?_0x30b934+'\x20'+_0x55079c['name']+'s':''+_0x55079c['name'];}['_addDescriptionItems'](_0x5f42e6,_0x18d4e7){const _0x2d6651=_0x18d4e7['getFirstRange']()['getWalker'](),_0x52d336='insertion'==_0x18d4e7['type']?'add':'remove';for(const _0x3bd25e of _0x2d6651){const _0x2b753d=_0x3bd25e['item'],_0x3fae57=_0x5f42e6[_0x5f42e6['length']-0x1];if(_0x2b753d['is']('$textProxy'))_0x3fae57&&_0x3fae57['type']['indexOf']('Container')>-0x1&&_0x5f42e6['pop'](),_0x3fae57&&'text'==_0x3fae57['type']?_0x3fae57[_0x52d336]+=_0x2b753d['data']:_0x5f42e6['push']({'type':'text','add':'add'==_0x52d336?_0x2b753d['data']:'','remove':'remove'==_0x52d336?_0x2b753d['data']:''});else{if(this['_schema']['isObject'](_0x2b753d)){const _0x572163=_0x2b753d;if(_0x3fae57&&_0x3fae57['type']['indexOf']('Container')>-0x1&&_0x5f42e6['pop'](),'elementEnd'==_0x3bd25e['type'])continue;_0x3fae57&&_0x3fae57['type']==_0x52d336+'Object'&&_0x3fae57['element']['name']==_0x572163['name']?_0x3fae57['quantity']++:_0x5f42e6['push']({'type':_0x52d336+'Object','element':_0x572163,'quantity':0x1}),_0x2d6651['skip'](_0x18721d=>!('elementEnd'==_0x18721d['type']&&_0x18721d['item']==_0x2b753d));}else{if(this['_schema']['checkChild'](_0x2b753d,'$text')||_0x2b753d['is']('element','softBreak')){const _0x3a1eec=_0x2b753d;if('add'==_0x52d336&&'elementStart'==_0x3bd25e['type']||'remove'==_0x52d336&&'elementEnd'==_0x3bd25e['type'])continue;if(_0x3fae57&&-0x1==_0x3fae57['type']['indexOf']('Container')){'text'==_0x3fae57['type']&&(_0x3fae57[_0x52d336]+='\x0a');continue;}let _0x3dd992;if(_0x3dd992='add'==_0x52d336?_0x3a1eec['nextSibling']&&!this['_schema']['isObject'](_0x3a1eec['nextSibling'])?_0x3a1eec['nextSibling']:null:_0x3a1eec['previousSibling']&&!this['_schema']['isObject'](_0x3a1eec['previousSibling'])?_0x3a1eec['previousSibling']:null,_0x3a1eec['isEmpty']||_0x3dd992&&_0x3dd992['isEmpty']){const _0x4e6560=_0x3dd992&&_0x3dd992['isEmpty']?_0x3dd992:_0x3a1eec;_0x3fae57&&_0x3fae57['type']==_0x52d336+'EmptyContainer'&&_0x3fae57['element']['name']==_0x4e6560['name']?_0x3fae57['quantity']++:_0x5f42e6['push']({'type':_0x52d336+'EmptyContainer','element':_0x4e6560,'quantity':0x1});}else _0x5f42e6['push']({'type':_0x52d336+'Container','element':_0x3a1eec});}}}}}['_resolveDescriptionItems'](_0x56804b){const _0x48d8a3=this['_locale'],_0x4ff245=[],_0x4b6a05=[],_0x4f2979=[];for(const _0x146f92 of _0x56804b)switch(_0x146f92['type']){case'text':if(_0x146f92['add']=_0x146f92['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x146f92['remove']=_0x146f92['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x146f92['add']&&''!=_0x146f92['remove']){_0x4ff245['push']({'type':'replace','content':c(_0x48d8a3,'REPLACE_TEXT',['\x22'+_0x146f92['remove']+'\x22','\x22'+_0x146f92['add']+'\x22'])});continue;}if(null!=_0x146f92['add']['match'](/^ +$/)){_0x4ff245['push']({'type':'insertion','content':c(_0x48d8a3,'*Insert:*\x20%0',c(_0x48d8a3,'ELEMENT_SPACE',_0x146f92['add']['length']))});continue;}if(null!=_0x146f92['remove']['match'](/^ +$/)){_0x4ff245['push']({'type':'deletion','content':c(_0x48d8a3,'*Remove:*\x20%0',c(_0x48d8a3,'ELEMENT_SPACE',_0x146f92['remove']['length']))});continue;}if(''!=_0x146f92['add']){_0x4ff245['push']({'type':'insertion','content':c(_0x48d8a3,'*Insert:*\x20%0','\x22'+_0x146f92['add']+'\x22')});continue;}_0x4ff245['push']({'type':'deletion','content':c(_0x48d8a3,'*Remove:*\x20%0','\x22'+_0x146f92['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4ff245['push']({'type':'insertion','content':c(_0x48d8a3,'*Insert:*\x20%0',this['getItemLabel'](_0x146f92['element'],_0x146f92['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4ff245['push']({'type':'deletion','content':c(_0x48d8a3,'*Remove:*\x20%0',this['getItemLabel'](_0x146f92['element'],_0x146f92['quantity']))});continue;case'addContainer':_0x4ff245['push']({'type':'insertion','content':c(_0x48d8a3,'*Split:*\x20%0',this['getItemLabel'](_0x146f92['element'],_0x146f92['quantity']))});continue;case'removeContainer':_0x4ff245['push']({'type':'deletion','content':c(_0x48d8a3,'*Merge:*\x20%0',this['getItemLabel'](_0x146f92['element'],_0x146f92['quantity']))});continue;case'addFormat':_0x4b6a05['push'](_0x146f92['key']);continue;case'removeFormat':_0x4f2979['push'](_0x146f92['key']);continue;default:_0x4ff245['push'](_0x146f92);}if(_0x4b6a05['length']){const _0x123637=_0x4b6a05['map'](_0x367783=>this['_attributeLabels']['has'](_0x367783)?this['_attributeLabels']['get'](_0x367783):_0x367783)['join'](',\x20');_0x4ff245['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x123637)});}if(_0x4f2979['length']){const _0x4cff58=_0x4f2979['map'](_0x5c8e84=>this['_attributeLabels']['has'](_0x5c8e84)?this['_attributeLabels']['get'](_0x5c8e84):_0x5c8e84)['join'](',\x20');_0x4ff245['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x4cff58)});}return _0x4ff245;}['_handleCustomCallbackDescription'](_0x4877c6){for(const _0x1a888e of this['_customCallbacks']){const _0x1fb66b=_0x1a888e(_0x4877c6);if(_0x1fb66b&&'type'in _0x1fb66b)return _0x1fb66b;}}['_handleAttributeSuggestionDescription'](_0x422470,_0x199335){const _0x5cc142=_0x199335['data'],_0x32b642=void 0x0===_0x5cc142['newValue']?'removeFormat':'addFormat';_0x422470['push']({'type':_0x32b642,'key':_0x5cc142['key']});}['_handleRenameSuggestionDescription'](_0x3901e1,_0x94f96a){_0x3901e1['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x94f96a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3d8ab4,_0x42d916,_0x3110f9){if(this['_addDescriptionItems'](_0x3d8ab4,_0x42d916),_0x3110f9&&_0x3110f9['getFirstRange']()&&!_0x42d916['getFirstRange']()['end']['isEqual'](_0x3110f9['getFirstRange']()['start'])){const _0x864b54=_0x3d8ab4[_0x3d8ab4['length']-0x1],_0x19ed2b='insertion'==_0x42d916['type']?'add':'remove';_0x864b54&&'text'==_0x864b54['type']&&(_0x864b54[_0x19ed2b]+='\x0a');}}}class U extends _0x5575fe{['afterInit'](){const _0x14e0f8=this['editor'],_0x57bbc6=_0x14e0f8['plugins']['get']('TrackChangesEditing');_0x14e0f8['commands']['get']('showAIAssistant')&&_0x57bbc6['enableCommand']('showAIAssistant');}}class V extends _0x5575fe{['afterInit'](){const _0x103be9=this['editor'],_0x42da73=_0x103be9['locale'];if(!_0x103be9['plugins']['has']('AlignmentEditing'))return;const _0x3572fb=_0x103be9['plugins']['get']('TrackChangesEditing');_0x3572fb['enableDefaultAttributesIntegration']('alignment'),_0x3572fb['registerBlockAttribute']('alignment'),_0x3572fb['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x42da73,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25e80d=this['editor'],_0x35275c=_0x25e80d['locale'];_0x25e80d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x419ffa=>{if('formatBlock'!=_0x419ffa['type'])return;const {data:_0x2e9cc1}=_0x419ffa;if(_0x2e9cc1&&'alignment'==_0x2e9cc1['commandName']){const _0x3ab68b=_0x2e9cc1['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x35275c,'*Format:*\x20%0',function(_0x360343){switch(_0x360343){case'left':return c(_0x35275c,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x35275c,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x35275c,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x35275c,'FORMAT_JUSTIFY_TEXT');}}(_0x3ab68b))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x5575fe{['afterInit'](){const _0x2129af=this['editor'],_0x5cc9ab=_0x2129af['plugins']['get']('TrackChangesEditing'),_0x484e30=_0x2129af['locale'];for(const _0x29c53a of Zt){if(!_0x2129af['plugins']['has'](_0x29c53a))continue;const _0x102965=_0x29c53a['slice'](0x0,-0x7)['toLowerCase'](),_0x590fff='FORMAT_'+_0x102965['toUpperCase']();_0x5cc9ab['enableDefaultAttributesIntegration'](_0x102965),_0x5cc9ab['registerInlineAttribute'](_0x102965),_0x5cc9ab['descriptionFactory']['registerAttributeLabel'](_0x102965,c(_0x484e30,_0x590fff));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24ed95=this['editor'],_0x564ba4=_0x24ed95['locale'],_0x525fc2=_0x24ed95['plugins']['get']('TrackChangesEditing');function _0x46b6a8(_0x5b2fff,_0x1ac41e){_0x525fc2['descriptionFactory']['registerDescriptionCallback'](_0x39d464=>{if('formatInline'!=_0x39d464['type'])return;const {data:_0xb4ea3f}=_0x39d464;return _0xb4ea3f&&_0xb4ea3f['commandName']===_0x5b2fff?_0xb4ea3f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x564ba4,'*Format:*\x20%0',_0x1ac41e)}:{'type':'format','content':c(_0x564ba4,'*Remove\x20format:*\x20%0',_0x1ac41e)}:void 0x0;});}_0x46b6a8('bold',c(_0x564ba4,'FORMAT_BOLD')),_0x46b6a8('italic',c(_0x564ba4,'FORMAT_ITALIC')),_0x46b6a8('underline',c(_0x564ba4,'FORMAT_UNDERLINE')),_0x46b6a8('code',c(_0x564ba4,'FORMAT_CODE')),_0x46b6a8('strikethrough',c(_0x564ba4,'FORMAT_STRIKETHROUGH')),_0x46b6a8('subscript',c(_0x564ba4,'FORMAT_SUBSCRIPT')),_0x46b6a8('superscript',c(_0x564ba4,'FORMAT_SUPERSCRIPT'));}}class G extends _0x5575fe{['afterInit'](){const _0x3a4eea=this['editor'],_0x2e263e=_0x3a4eea['locale'];if(!_0x3a4eea['plugins']['has']('BlockQuoteEditing'))return;const _0x44bab=_0x3a4eea['plugins']['get']('TrackChangesEditing'),_0x18bc20=this['editor']['commands']['get']('blockQuote');_0x44bab['enableCommand']('blockQuote',(_0x7991a4,_0x254a0b={})=>{const _0x1848c7=this['editor']['model']['document']['selection'],_0x5ce5f2=_0x254a0b&&void 0x0!==_0x254a0b['forceValue']?_0x254a0b['forceValue']:!_0x18bc20['value'];let _0x4879d2=[];if(_0x5ce5f2){const _0x410114=Array['from'](_0x1848c7['getSelectedBlocks']())['filter'](_0x28e7a7=>oo(_0x28e7a7)||function(_0x4acd86,_0x2f00e7){const _0x6a5371=_0x2f00e7['checkChild'](_0x4acd86['parent'],'blockQuote'),_0x5dfe78=_0x2f00e7['checkChild'](['$root','blockQuote'],_0x4acd86);return _0x6a5371&&_0x5dfe78;}(_0x28e7a7,this['editor']['model']['schema']));_0x4879d2=to(_0x410114,_0x3a4eea['model']);}else{const _0x2d32c6=Array['from'](_0x1848c7['getSelectedBlocks']())['filter'](_0x43e451=>oo(_0x43e451));_0x4879d2=to(_0x2d32c6,_0x3a4eea['model']);}_0x3a4eea['model']['change'](()=>{for(const _0x4e1b3c of _0x4879d2)_0x44bab['markBlockFormat'](_0x4e1b3c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5ce5f2}]});});}),_0x44bab['descriptionFactory']['registerDescriptionCallback'](_0xb2e6e5=>{const {data:_0x3a6e10}=_0xb2e6e5;if(_0x3a6e10&&'blockQuote'==_0x3a6e10['commandName']){const _0x56b123=c(_0x2e263e,'ELEMENT_BLOCK_QUOTE');return _0x3a6e10['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2e263e,'*Set\x20format:*\x20%0',_0x56b123)}:{'type':'format','content':c(_0x2e263e,'*Remove\x20format:*\x20%0',_0x56b123)};}});}}function oo(_0x2c79f4){return'blockQuote'==_0x2c79f4['parent']['name'];}class L extends _0x5575fe{['afterInit'](){const _0x2c8343=this['editor'],_0x5b2c00=_0x2c8343['locale'],_0x14ad30=_0x2c8343['plugins']['get']('TrackChangesEditing');_0x2c8343['plugins']['has']('BookmarkEditing')&&(_0x14ad30['enableCommand']('insertBookmark'),_0x14ad30['enableDefaultAttributesIntegration']('updateBookmark'),_0x14ad30['registerBlockAttribute']('bookmarkId'),_0x14ad30['descriptionFactory']['registerDescriptionCallback'](_0x143beb=>{if('insertion'!=_0x143beb['type']&&'deletion'!=_0x143beb['type']&&'attribute'!=_0x143beb['type'])return;const _0x36f6a6=_0x143beb['getContainedElement']();if(null==_0x36f6a6)return;if(!_0x36f6a6['is']('element','bookmark'))return;const _0x18eec7=_0x36f6a6['getAttribute']('bookmarkId');if('insertion'==_0x143beb['type'])return{'type':'insertion','content':c(_0x5b2c00,'*Insert:*\x20%0','\x22'+_0x18eec7+'\x22\x20'+c(_0x5b2c00,'ELEMENT_BOOKMARK'))};if('deletion'==_0x143beb['type'])return{'type':'deletion','content':c(_0x5b2c00,'*Remove:*\x20%0','\x22'+_0x18eec7+'\x22\x20'+c(_0x5b2c00,'ELEMENT_BOOKMARK'))};const {data:_0x50934b}=_0x143beb;if(!_0x50934b||'bookmarkId'!=_0x50934b['key'])return;return{'type':'format','content':c(_0x5b2c00,'*Set\x20bookmark:*\x20%0','\x22'+_0x50934b['newValue']+'\x22')};}));}}class J extends _0x5575fe{['afterInit'](){const _0x4b2eeb=this['editor'];_0x4b2eeb['plugins']['has']('CaseChange')&&(_0x4b2eeb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4b2eeb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4b2eeb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x5575fe{['afterInit'](){const _0x53cc25=this['editor'];_0x53cc25['commands']['get']('ckbox')&&_0x53cc25['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x5575fe{['afterInit'](){const _0x8e129e=this['editor'];if(!_0x8e129e['plugins']['has']('CodeBlock'))return;const _0x3a6e38=_0x8e129e['plugins']['get']('TrackChangesEditing'),_0x43739b=_0x8e129e['locale'],_0x459cee=_0x8e129e['config']['get']('codeBlock')['languages'],_0x5a8eba=_0x8e129e['commands']['get']('codeBlock');_0x3a6e38['enableCommand']('indentCodeBlock'),_0x3a6e38['enableCommand']('outdentCodeBlock'),_0x3a6e38['enableCommand']('codeBlock',(_0xfad771,_0x20ced4={})=>{const _0x3adaec=_0x8e129e['model'],_0x1c1312=_0x8e129e['model']['document']['selection'],_0x145927=_0x20ced4&&void 0x0!==_0x20ced4['forceValue']?_0x20ced4['forceValue']:!_0x5a8eba['value'];let _0x12ea17;_0x20ced4['language']||(_0x20ced4['language']=_0x459cee[0x0]['language']),_0x12ea17=_0x145927?Array['from'](_0x1c1312['getSelectedBlocks']())['filter'](_0x3ee369=>eo(_0x3ee369)||function(_0x4f544a,_0x22613d){if(_0x4f544a['is']('rootElement')||_0x22613d['isLimit'](_0x4f544a))return!0x1;return _0x22613d['checkChild'](_0x4f544a['parent'],'codeBlock');}(_0x3ee369,_0x3adaec['schema'])):Array['from'](_0x1c1312['getSelectedBlocks']())['filter'](_0x12468b=>eo(_0x12468b));const _0x5ad3b1=to(_0x12ea17,_0x3adaec);_0x3adaec['change'](()=>{for(const _0x5609e8 of _0x5ad3b1)_0x3a6e38['markBlockFormat'](_0x5609e8,{'commandName':'codeBlock','commandParams':[{..._0x20ced4,'forceValue':_0x145927}],'formatGroupId':'blockName'});});}),(_0x3a6e38['descriptionFactory']['registerElementLabel']('codeBlock',_0xa2b8c1=>c(_0x43739b,'ELEMENT_CODE_BLOCK',_0xa2b8c1)),_0x3a6e38['descriptionFactory']['registerDescriptionCallback'](_0x3923b3=>{if('formatBlock'!=_0x3923b3['type'])return;const _0x492651=_0x43739b['t'],{data:_0x1e8a3a}=_0x3923b3;if(!_0x1e8a3a||'codeBlock'!=_0x1e8a3a['commandName'])return;const _0x4dd3e6=_0x1e8a3a['commandParams'][0x0]['language'],_0x5e87fb=_0x492651(_0x459cee['find'](_0x3fa490=>_0x3fa490['language']===_0x4dd3e6)['label'])['toLowerCase']();return _0x1e8a3a['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x43739b,'*Set\x20format:*\x20%0',c(_0x43739b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5e87fb+')')}:{'type':'format','content':c(_0x43739b,'*Remove\x20format:*\x20%0',c(_0x43739b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4729e1){return'codeBlock'==_0x4729e1['name'];}class q extends _0x5575fe{['afterInit'](){const _0x2c5a92=this['editor'];if(!_0x2c5a92['plugins']['has']('CommentsEditing'))return;_0x2c5a92['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1d69ac,_0x8d3bdc,_0x271af1){const _0x2072e6=[];for(const _0x110904 of _0x8d3bdc['getItems']())_0x110904['hasAttribute'](_0x1d69ac)&&_0x2072e6['push'](_0x271af1['createRangeOn'](_0x110904));return _0x2072e6;}function Fe(_0x940613,_0x2447d4,{showActiveMarker:_0x1c43aa=!0x0}={}){const _0x2d3c47=_0x940613['plugins']['get']('TrackChangesEditing');return(_0x44ec3d,_0x29dd14,_0x3e7833)=>{if(!_0x3e7833['consumable']['test'](_0x29dd14['markerRange'],_0x44ec3d['name']))return;const _0x5481bc=_0x29dd14['markerRange']['getWalker'](),_0x515c37=_0x29dd14['markerRange']['start'],_0x3f4d64=_0x940613['model']['schema'];let _0x441adf=null,_0x2bb934=null,_0x349056=!0x1,_0xe2fd8=!0x1;for(const _0x25f837 of _0x5481bc){const _0x25d747=_0x25f837['item'];_0x349056=_0x349056||_0x3f4d64['isContent'](_0x25d747);const _0x388ad4=_0x3e7833['mapper']['toViewElement'](_0x25d747);if(_0x388ad4&&_0x388ad4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x25f837['type']&&(_0x3f4d64['isBlock'](_0x25d747)&&!_0x3f4d64['isLimit'](_0x25d747)&&(_0x25d747['nextSibling']||_0x515c37['isAtEnd']?_0x441adf&&_0x441adf['parent']==_0x25d747||(_0x441adf=_0x25d747,_0xf05fe3(_0x25f837['previousPosition']),_0xe2fd8=!0x0):_0x2bb934=_0x2bb934||_0x25f837['previousPosition']));}function _0xf05fe3(_0x10a397){const {id:_0x4adc41,authorId:_0x536f3e}=_0x2d3c47['_splitMarkerName'](_0x29dd14['markerName']),_0xbf21ff=_0x3e7833['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2447d4,'data-suggestion':_0x4adc41,'data-author-id':_0x536f3e}),_0x64bb6=_0x3e7833['mapper']['toViewPosition'](_0x10a397);_0x1c43aa&&_0x2d3c47['activeMarkers']['includes'](_0x29dd14['markerName'])&&_0x3e7833['writer']['addClass']('ck-suggestion-marker--active',_0xbf21ff),_0x3e7833['writer']['insert'](_0x64bb6,_0xbf21ff),_0x3e7833['mapper']['bindElementToMarker'](_0xbf21ff,_0x29dd14['markerName']);}_0x349056||_0xe2fd8||!_0x2bb934||_0xf05fe3(_0x2bb934);};}class z extends _0x5575fe{static get['requires'](){return[_0x2fb98e];}['init'](){const _0x413ab8=this['editor'],_0xac7981=_0x413ab8['plugins']['get']('TrackChangesEditing');_0xac7981['enableCommand']('delete');const _0x434e0a=_0x413ab8['commands']['get']('deleteForward');_0xac7981['enableCommand']('deleteForward',(_0x243f4d,_0x25c2db={})=>{const _0x56e26b=_0x413ab8['model']['createSelection'](_0x413ab8['model']['document']['selection']);_0x56e26b['isCollapsed']&&_0x413ab8['model']['modifySelection'](_0x56e26b,{'direction':'forward','unit':_0x25c2db['unit']});const _0x235b48=_0x56e26b['getFirstRange'](),_0x3fbfd7=_0x34c04c['fromRange'](_0x235b48);let _0x3a337f;_0x243f4d(_0x25c2db),_0x3a337f='$graveyard'==_0x3fbfd7['root']['rootName']?_0x413ab8['model']['createRange'](_0x235b48['start']):_0x413ab8['model']['createRange'](_0x3fbfd7['start'],_0x3fbfd7['end']),_0x3fbfd7['detach'](),_0x413ab8['model']['enqueueChange'](_0x434e0a['buffer']['batch'],_0x3b9a04=>{_0x434e0a['buffer']['lock'](),_0x3b9a04['setSelection'](_0x3b9a04['createRange'](_0x3a337f['end'])),_0x434e0a['buffer']['unlock']();});}),_0x413ab8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x413ab8,'merge'),{'priority':'high'}),_0x413ab8['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4507dc,_0x535442,_0x56d29f)=>{_0x56d29f['options']['showSuggestionHighlights']&&Fe(_0x413ab8,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4507dc,_0x535442,_0x56d29f);},{'priority':'high'}),_0x413ab8['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x109f64,_0x2f2124,_0x40955e)=>{const _0x90c951=_0x40955e['mapper']['markerNameToElements'](_0x2f2124['markerName']);if(_0x90c951){for(const _0x32f540 of _0x90c951)_0x32f540['is']('uiElement')&&(_0x40955e['mapper']['unbindElementFromMarkerName'](_0x32f540,_0x2f2124['markerName']),_0x40955e['writer']['remove'](_0x32f540));}},{'priority':'high'});}}class W extends _0x5575fe{['afterInit'](){const _0x3f2b49=this['editor'];if(!_0x3f2b49['plugins']['has']('ListEditing'))return;const _0x3a3277=_0x3f2b49['locale'],_0x5017e1=_0x3f2b49['plugins']['get']('TrackChangesEditing'),_0x522f23=_0x3f2b49['plugins']['has']('TodoListEditing'),_0x3b72f0=!!_0x3f2b49['config']['get']('list.multiBlock');function _0x3df84e(_0xd5fc0d){return{'type':'format','content':''+c(_0x3a3277,'*Set\x20format:*\x20%0',_0xd5fc0d)};}function _0x5aab72(_0xcbdb39){return{'type':'format','content':''+c(_0x3a3277,'*Remove\x20format:*\x20%0',_0xcbdb39)};}_0x5017e1['enableDefaultAttributesIntegration']('numberedList'),_0x5017e1['enableDefaultAttributesIntegration']('bulletedList'),_0x5017e1['enableDefaultAttributesIntegration']('customNumberedList'),_0x5017e1['enableDefaultAttributesIntegration']('customBulletedList'),_0x5017e1['enableDefaultAttributesIntegration']('indentList'),_0x5017e1['enableDefaultAttributesIntegration']('outdentList'),_0x5017e1['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5017e1['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5017e1['registerBlockAttribute']('listItemId'),_0x5017e1['registerBlockAttribute']('listType'),_0x5017e1['registerBlockAttribute']('listIndent'),_0x3b72f0&&(_0x5017e1['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5017e1['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x522f23&&(_0x5017e1['enableDefaultAttributesIntegration']('todoList'),_0x5017e1['enableDefaultAttributesIntegration']('checkTodoList'),_0x5017e1['registerBlockAttribute']('todoListChecked'),_0x5017e1['descriptionFactory']['registerDescriptionCallback'](_0x915b6b=>{const {data:_0x255533}=_0x915b6b;if(_0x255533&&'todoListChecked'==_0x255533['key'])return{'type':'format','content':_0x255533['newValue']?c(_0x3a3277,'*Check\x20item*'):c(_0x3a3277,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3a4944=>{if(_0x3a4944['batch']['isUndo'])return!0x1;let _0xe7e262=!0x1;const _0x28fba5=_0x5017e1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6d9b8e=>'todoListChecked'===_0x5017e1['_getAttributeKey'](_0x6d9b8e));for(const _0xaa796b of _0x28fba5){'todo'!=_0xaa796b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5017e1['_findSuggestions'](_0xaa796b['getFirstRange'](),'attribute')['find'](_0x4447b6=>'listType'===_0x5017e1['_getAttributeKey'](_0x4447b6['suggestion']))||(_0x3a4944['removeMarker'](_0xaa796b['getFirstMarker']()),_0xe7e262=!0x0));}return _0xe7e262;})),_0x5017e1['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x3a3277,'FORMAT_INDENT'));const _0x2244df={'type':'format','content':''};_0x5017e1['descriptionFactory']['registerDescriptionCallback'](_0x190f59=>{const {data:_0x33a5ef}=_0x190f59;if(!_0x33a5ef||'listType'!=_0x33a5ef['key'])return;let _0x1ab189=_0x190f59['head'];for(;_0x1ab189;){if(_0x1ab189['data']&&(('listStyle'==_0x1ab189['data']['key']||'listMarkerStyle'==_0x1ab189['data']['key'])&&(_0x1ab189['data']['newValue']&&'default'!=_0x1ab189['data']['newValue']||'default'!=_0x1ab189['data']['oldValue']&&!_0x33a5ef['newValue'])||!_0x3b72f0&&_0x1ab189['data']['key']==u))return _0x2244df;_0x1ab189=_0x1ab189['next'];}if(null==_0x33a5ef['newValue'])switch(_0x33a5ef['oldValue']){case'bulleted':return _0x5aab72(c(_0x3a3277,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5aab72(c(_0x3a3277,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5aab72(c(_0x3a3277,'ELEMENT_TODO_LIST'));}switch(_0x33a5ef['newValue']){case'bulleted':return _0x3df84e(c(_0x3a3277,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3df84e(c(_0x3a3277,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3df84e(c(_0x3a3277,'ELEMENT_TODO_LIST'));}}),_0x5017e1['descriptionFactory']['registerDescriptionCallback'](_0xa2999=>{const {data:_0x5c1d03}=_0xa2999;if(_0x5c1d03&&'listIndent'==_0x5c1d03['key'])return null==_0x5c1d03['newValue']||null==_0x5c1d03['oldValue']&&0x0==_0x5c1d03['newValue']?_0x2244df:void 0x0;}),_0x5017e1['descriptionFactory']['registerDescriptionCallback'](_0x1ad403=>{if('attribute'!=_0x1ad403['type'])return;const {data:_0x542e93}=_0x1ad403;if(!_0x542e93||'listItemId'!=_0x542e93['key'])return;const _0x1232d1=Te(_0x1ad403);return'newValue'==_0x1232d1?{'type':'format','content':c(_0x3a3277,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1232d1?{'type':'format','content':c(_0x3a3277,'*Split:*\x20list\x20item')}:_0x2244df;}),_0x3f2b49['model']['document']['registerPostFixer'](_0x448fe0=>this['listItemIdFixer'](_0x448fe0)),_0x3f2b49['model']['document']['registerPostFixer'](_0x22d9dc=>this['noTrackChangesFixer'](_0x22d9dc)),_0x3f2b49['model']['document']['on']('change:data',(_0x2843a2,_0x468b22)=>{if(_0x468b22['isUndo']||!_0x468b22['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4ca477){if(_0x4ca477['batch']['isUndo']||!_0x4ca477['batch']['isLocal'])return!0x1;let _0x129b47=!0x1;const _0x278761=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15314e=>_0x15314e['data']&&'listItemId'==_0x15314e['data']['key'])['filter'](_0x3f9258=>_0x3f9258['data']['newValue']&&_0x3f9258['data']['oldValue']);for(const _0x544f9a of _0x278761)Te(_0x544f9a)||(_0x4ca477['removeMarker'](_0x544f9a['getFirstMarker']()),_0x129b47=!0x0);return _0x129b47;}['noTrackChangesFixer'](_0x579cac){if(_0x579cac['batch']['isUndo']||!_0x579cac['batch']['isLocal'])return!0x1;const _0x468188=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x468188['trackChangesCommand']['value'])return!0x1;let _0x570e6a=!0x1;const _0x183841=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xf60125=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x44f5a7=>'attribute'==_0x44f5a7['type'])['filter'](_0x34d833=>_0x183841['includes'](_0x34d833['attributeKey']));if(0x0==_0xf60125['length'])return _0x570e6a;for(const _0x22233d of _0xf60125){const _0xf305fb=_0x468188['_findSuggestions'](_0x22233d['range'],'attribute')['filter'](_0x54ed1b=>!_0x54ed1b['meta']['isNextTo'])['map'](_0x2b5582=>_0x2b5582['suggestion'])['filter'](_0x16b27b=>{const _0x14522e=_0x468188['_getAttributeKey'](_0x16b27b);return _0x183841['includes'](_0x14522e);});if(_0xf305fb['length']){for(const _0x37f176 of _0xf305fb)_0x579cac['removeMarker'](_0x37f176['getFirstMarker']());_0x570e6a=!0x0;}}return _0x570e6a;}['assureChains'](){const _0x4bb0aa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x347f2c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xe0046a;const _0x3f3352=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x43899d=>{if(_0x43899d['data']['oldRange']||!_0x43899d['data']['newRange'])return null;if(!_0x43899d['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1c7dc5}=_0x4bb0aa['_splitMarkerName'](_0x43899d['name']);if(!_0x4bb0aa['hasSuggestion'](_0x1c7dc5))return null;const _0x12545d=_0x4bb0aa['getSuggestion'](_0x1c7dc5);return _0x347f2c['includes'](_0x12545d['data']['key']);})['map'](_0x5f0903=>{const {id:_0x169eee}=_0x4bb0aa['_splitMarkerName'](_0x5f0903['name']),_0x16c69b=_0x4bb0aa['getSuggestion'](_0x169eee);return _0xe0046a=_0x16c69b['attributes']['groupId'],_0x16c69b['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3f3352['size'])return;const _0x3b13c5=_0x4bb0aa['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x51c418=>'attribute'==_0x51c418['type']&&_0x51c418['data']&&_0x347f2c['includes'](_0x51c418['data']['key'])&&_0x51c418['attributes']['groupId']!=_0xe0046a)['map'](_0x190142=>({'listItem':_0x190142['getFirstRange']()['start']['nodeAfter'],'groupId':_0x190142['attributes']['groupId']})),_0x24f353=new Set();for(const {groupId:_0x447e59,listItem:_0xc805fd}of _0x3b13c5)_0x3f3352['has'](_0xc805fd)&&_0x24f353['add'](_0x447e59);for(const _0x1bca98 of _0x4bb0aa['getSuggestions']())_0x24f353['has'](_0x1bca98['attributes']['groupId'])&&_0x1bca98['setAttribute']('groupId',_0xe0046a);}['_supportLegacySuggestions'](){const _0x1d88a1=this['editor'],_0x3a6ec0=_0x1d88a1['locale'],_0x49d0d9=_0x1d88a1['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x49d0d9['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3b0d50,_0x49b187){const _0x3fa845=[];for(let _0x16f168 of _0x3b0d50)_0x16f168['start']['nodeAfter']===_0x16f168['end']['parent']&&(_0x16f168=_0x1d88a1['model']['createRange'](_0x1d88a1['model']['createPositionAt'](_0x16f168['start']['nodeAfter'],0x0))),_0x3fa845['push'](_0x16f168);_0x1d88a1['model']['change'](_0x4e6521=>{const _0x138851=_0x1d88a1['model']['document']['selection'],_0x5836cf=Array['from'](_0x138851['getRanges']())['map'](_0x1a475d=>_0x34c04c['fromRange'](_0x1a475d));_0x4e6521['setSelection'](_0x3fa845),_0x1d88a1['commands']['get'](_0x49b187['commandName'])['refresh'](),_0x49b187['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1d88a1['execute'](_0x49b187['commandName'],..._0x49b187['commandParams']),_0x4e6521['setSelection'](_0x5836cf);for(const _0x44aaf2 of _0x5836cf)_0x44aaf2['detach']();});}),_0x49d0d9['descriptionFactory']['registerElementLabel'](function(_0x527ce0){const _0x2bea1d=!_0x1d88a1['model']['schema']['isObject'](_0x527ce0),_0x28c8d4=_0x527ce0['previousSibling'],_0x15162c=_0x527ce0['nextSibling'],_0x22e436=_0x527ce0['getAttribute']('listItemId'),_0x1120e6=!_0x28c8d4||_0x28c8d4['getAttribute']('listItemId')!==_0x22e436,_0x4fbdb=!_0x15162c||_0x15162c['getAttribute']('listItemId')!==_0x22e436;return _0x2bea1d&&Boolean(_0x22e436)&&_0x1120e6&&_0x4fbdb;},_0x4f6a5c=>c(_0x3a6ec0,'ELEMENT_LIST_ITEM',_0x4f6a5c));}['_registerLegacyDescription'](){const _0x2be4ff=this['editor'],_0x518730=_0x2be4ff['locale'];function _0x1c8b08(_0x309514){const _0x2043d7=_0x2be4ff['commands']['get']('bulletedList')['value'],_0x21e367=_0x2be4ff['commands']['get']('numberedList')['value'];return'numberedList'===_0x309514?_0x2043d7:_0x21e367;}_0x2be4ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5b97fa){if('formatBlock'!=_0x5b97fa['type'])return;const {data:_0x5149d1}=_0x5b97fa;if(!_0x5149d1)return;let _0x168b30,_0x5a7234,_0x4a328d,_0x3b3f88;switch(_0x5149d1['commandName']){case'bulletedList':_0x4a328d=_0x5149d1['commandParams'][0x0]['forceValue'],_0x3b3f88=_0x1c8b08(_0x5149d1['commandName']),_0x168b30=_0x4a328d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3b3f88&&_0x2be4ff['config']['get']('list.multiBlock')||(_0x168b30='*Change\x20to:*\x20%0'),_0x5a7234={'type':'format','content':c(_0x518730,_0x168b30,c(_0x518730,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4a328d=_0x5149d1['commandParams'][0x0]['forceValue'],_0x3b3f88=_0x1c8b08(_0x5149d1['commandName']),_0x168b30=_0x4a328d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3b3f88&&_0x2be4ff['config']['get']('list.multiBlock')||(_0x168b30='*Change\x20to:*\x20%0'),_0x5a7234={'type':'format','content':c(_0x518730,_0x168b30,c(_0x518730,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x168b30='*Indent:*\x20%0',_0x5a7234={'type':'format','content':c(_0x518730,_0x168b30,c(_0x518730,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x168b30=function(_0x56e65d){const _0x8b1396=_0x56e65d['getFirstRange']();let _0x1c4e29=_0x8b1396['start']['nodeAfter'];for(;_0x1c4e29&&_0x8b1396['containsItem'](_0x1c4e29);){if(_0x1c4e29['getAttribute']('listIndent')>0x0)return!0x1;_0x1c4e29=_0x1c4e29['nextSibling'];}return!0x0;}(_0x5b97fa)?c(_0x518730,'*Format:*\x20remove\x20from\x20%0',c(_0x518730,function(_0x4eb1e5){return'ELEMENT_'+_0x4eb1e5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5b97fa))):c(_0x518730,'*Outdent:*\x20%0',c(_0x518730,'ELEMENT_LIST_ITEM')),_0x5a7234={'type':'format','content':_0x168b30};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5149d1['multipleBlocks']&&(_0x168b30='*Merge:*\x20%0',_0x5a7234={'type':'deletion','content':c(_0x518730,_0x168b30,c(_0x518730,'ELEMENT_LIST_ITEM'))});}return _0x5a7234;});}}function Te(_0x32aa8f){let _0x5cfbee=_0x32aa8f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5cfbee;){const _0x183c02=_0x5cfbee['getAttribute']('listItemId');if(!_0x183c02)return!0x1;if(_0x183c02==_0x32aa8f['data']['newValue'])return'newValue';if(_0x183c02==_0x32aa8f['data']['oldValue'])return'oldValue';_0x5cfbee=_0x5cfbee['previousSibling'];}return!0x1;}class Se extends _0x5575fe{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xe2f6ab=this['editor']['config']['get']('list.properties'),_0x5cafd4=this['editor']['plugins']['get']('TrackChangesEditing');_0xe2f6ab['styles']&&(_0x5cafd4['enableDefaultAttributesIntegration']('listStyle'),_0x5cafd4['registerBlockAttribute']('listStyle')),_0xe2f6ab['reversed']&&(_0x5cafd4['enableDefaultAttributesIntegration']('listReversed'),_0x5cafd4['registerBlockAttribute']('listReversed')),_0xe2f6ab['startIndex']&&(_0x5cafd4['enableDefaultAttributesIntegration']('listStart'),_0x5cafd4['registerBlockAttribute']('listStart'));const _0x4b0a82={'type':'format','content':''};_0x5cafd4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5623b9=this['editor']['locale'];_0x5cafd4['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x5623b9,'FORMAT_LIST_REVERSED')),_0x5cafd4['descriptionFactory']['registerDescriptionCallback'](_0x2a7d73=>{const {data:_0x477b66}=_0x2a7d73;if(_0x477b66&&'listReversed'==_0x477b66['key'])return null==_0x477b66['newValue']||0x0==_0x477b66['newValue']&&null==_0x477b66['oldValue']?_0x4b0a82:void 0x0;}),_0x5cafd4['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x5623b9,'FORMAT_LIST_START')),_0x5cafd4['descriptionFactory']['registerDescriptionCallback'](_0x5a63dc=>{const {data:_0x134d49}=_0x5a63dc;if(_0x134d49&&'listStart'==_0x134d49['key'])return null==_0x134d49['newValue']||0x1==_0x134d49['newValue']&&null==_0x134d49['oldValue']?_0x4b0a82:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x25cfed=>{if(_0x25cfed['batch']['isUndo'])return!0x1;let _0x4c4eec=!0x1;const _0x2a437a=_0x5cafd4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x287755=>{const _0x2ae341=_0x5cafd4['_getAttributeKey'](_0x287755);return'listStart'==_0x2ae341||'listReversed'==_0x2ae341;});for(const _0x4ea95f of _0x2a437a){const _0x559cbb=_0x4ea95f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x559cbb||'customNumbered'==_0x559cbb)continue;_0x5cafd4['_findSuggestions'](_0x4ea95f['getFirstRange'](),'attribute')['find'](_0x1356ae=>'listType'==_0x5cafd4['_getAttributeKey'](_0x1356ae['suggestion']))||(_0x25cfed['removeMarker'](_0x4ea95f['getFirstMarker']()),_0x4c4eec=!0x0);}return _0x4c4eec;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x539d5e){const _0x25faec=this['editor']['locale'],{data:_0x4a042e}=_0x539d5e,_0x561a01={'type':'format','content':''};if(!_0x4a042e||'listStyle'!=_0x4a042e['key'])return;if(!_0x4a042e['oldValue'])return'default'==_0x4a042e['newValue']?_0x561a01:{'type':'format','content':''+c(_0x25faec,'*Set\x20format:*\x20%0',c(_0x25faec,this['_getTranslationKeyForListStyle'](_0x4a042e['newValue'])))};if(!_0x4a042e['newValue']){if('default'==_0x4a042e['oldValue'])return _0x561a01;let _0x30640b=_0x539d5e['head'];for(;_0x30640b;){if(_0x30640b['data']&&'listType'==_0x30640b['data']['key']&&_0x30640b['data']['newValue'])return _0x561a01;_0x30640b=_0x30640b['next'];}return{'type':'format','content':''+c(_0x25faec,'*Remove\x20format:*\x20%0',c(_0x25faec,this['_getTranslationKeyForListStyle'](_0x4a042e['oldValue'])))};}if('default'!=_0x4a042e['newValue'])return{'type':'format','content':''+c(_0x25faec,'*Set\x20format:*\x20%0',c(_0x25faec,this['_getTranslationKeyForListStyle'](_0x4a042e['newValue'])))};let _0x4f404c=_0x539d5e['head'];for(;_0x4f404c;){if(_0x4f404c['data']&&'listType'==_0x4f404c['data']['key']&&_0x4f404c['data']['newValue']&&_0x4f404c['data']['oldValue'])return _0x561a01;_0x4f404c=_0x4f404c['next'];}return{'type':'format','content':c(_0x25faec,'*Set\x20format:*\x20%0',c(_0x25faec,'ELEMENT_'+_0x539d5e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x192986=this['editor'],_0x584b44=_0x192986['locale'];_0x192986['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24ad57=>{if('formatBlock'!=_0x24ad57['type'])return;const {data:_0x36008f}=_0x24ad57;if(!_0x36008f)return;let _0x5599fb,_0x27e943;switch(_0x36008f['commandName']){case'listStyle':_0x5599fb='*Change\x20to:*\x20%0',_0x27e943={'type':'format','content':c(_0x584b44,_0x5599fb,c(_0x584b44,this['_getTranslationKeyForListStyle'](_0x36008f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5599fb=_0x36008f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x27e943={'type':'format','content':c(_0x584b44,_0x5599fb)};break;case'listStart':_0x5599fb='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x27e943={'type':'format','content':c(_0x584b44,_0x5599fb,_0x36008f['commandParams'][0x0]['startIndex'])};}return _0x27e943;});}['_getTranslationKeyForListStyle'](_0x482505){return'ELEMENT_'+function(_0x3c74c0){if(_e['includes'](_0x3c74c0))return'bulleted';if(Re['includes'](_0x3c74c0))return'numbered';return null;}(_0x482505)['toUpperCase']()+'_LIST_'+_0x482505['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x5575fe{['afterInit'](){const _0x5abf04=this['editor'];_0x5abf04['commands']['get']('emoji')&&_0x5abf04['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x5575fe{static get['requires'](){return[_0x182741];}['init'](){const _0x336c97=this['editor'],_0x54fa1b=_0x336c97['plugins']['get']('TrackChangesEditing'),_0x5b8832=_0x336c97['commands']['get']('enter');_0x54fa1b['enableCommand']('enter',()=>{_0x336c97['model']['change'](_0x533800=>{const _0x234e6d=_0x336c97['model']['document']['selection'],_0x422189=_0x234e6d['getFirstPosition'](),_0x515bbb=_0x34c04c['fromRange'](_0x234e6d['getFirstRange']());if(_0x5b8832['enterBlock'](_0x533800)){const _0x142706=_0x336c97['model']['createPositionAt'](_0x422189['parent']['nextSibling'],0x0),_0x237281=_0x533800['createRange'](_0x422189,_0x142706);_0x54fa1b['markInsertion'](_0x237281);}else _0x533800['setSelection'](_0x533800['createRange'](_0x515bbb['end']));_0x515bbb['detach'](),_0x5b8832['fire']('afterExecute',{'writer':_0x533800});});}),_0x336c97['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x336c97,'split'),{'priority':'high'}),_0x336c97['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3e4b2b,_0x2ad9a6,_0x2025e1)=>{const _0x3fb4cc=_0x2025e1['mapper']['markerNameToElements'](_0x2ad9a6['markerName']);if(_0x3fb4cc){for(const _0x197a84 of _0x3fb4cc)_0x197a84['hasClass']('ck-suggestion-marker-split')&&(_0x2025e1['mapper']['unbindElementFromMarkerName'](_0x197a84,_0x2ad9a6['markerName']),_0x2025e1['writer']['remove'](_0x197a84));}},{'priority':'high'}),_0x336c97['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4b8b33,_0x5ceea8,_0x490a05)=>{_0x490a05['options']['showSuggestionHighlights']&&Fe(_0x336c97,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4b8b33,_0x5ceea8,_0x490a05);},{'priority':'high'});}}class Z extends _0x5575fe{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x209817=this['editor']['plugins']['get']('TrackChangesEditing');_0x209817['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x209817['enableCommand']('findNext'),_0x209817['enableCommand']('findPrevious'),_0x209817['enableCommand']('replace'),_0x209817['enableCommand']('replaceAll');}['handleFindCommand'](_0x3cb2c9,_0x7ace93,_0x35c7a5={}){const _0x3e99d6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3cb2c9(_0x5f1547=>{let _0x4088a5=('string'==typeof _0x7ace93?_0x3e99d6['findByTextCallback'](_0x7ace93,_0x35c7a5):_0x7ace93)(_0x5f1547);Array['isArray'](_0x4088a5)&&(_0x4088a5={'results':_0x4088a5,'searchText':'string'==typeof _0x7ace93?_0x7ace93:''});const _0x30e9f4=_0x4088a5['results']['filter'](_0x21ceb7=>!0x1===this['_isInDeletionRange'](_0x21ceb7,_0x5f1547['item']));return{..._0x4088a5,'results':_0x30e9f4};},_0x35c7a5);}['_isInDeletionRange'](_0x4f9785,_0x104828){const _0x8c1620=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x104828,_0x4f9785['start']),this['editor']['model']['createPositionAt'](_0x104828,_0x4f9785['end']));for(const _0x391f70 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x8c1620['getIntersection'](_0x391f70['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 _0x5575fe{['afterInit'](){const _0x313cd5=this['editor']['locale'],_0x4170a2=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1b168e,commandName:_0x1d793b}of ro)this['editor']['plugins']['has'](_0x1b168e)&&(_0x4170a2['enableDefaultAttributesIntegration'](_0x1d793b),_0x4170a2['registerInlineAttribute'](_0x1d793b));_0x4170a2['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x313cd5,'FORMAT_FONT_SIZE')),_0x4170a2['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x313cd5,'FORMAT_FONT_FAMILY')),_0x4170a2['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x313cd5,'FORMAT_FONT_COLOR')),_0x4170a2['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x313cd5,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x511a4b=this['editor'],_0x212f53=_0x511a4b['locale'];_0x511a4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f7ae0=>{const _0x361fe6=_0x212f53['t'];if('formatInline'!=_0x4f7ae0['type'])return;const {data:_0x364766}=_0x4f7ae0;if(null!=_0x364766){if('fontSize'==_0x364766['commandName']){const _0x1a0d93=_0x364766['commandParams'][0x0]['value'];if(_0x1a0d93){const _0x29eb44=_0x361fe6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x49301b=>_0x49301b['model']==_0x1a0d93)['title'])['toLowerCase']();return{'type':'format','content':c(_0x212f53,'*Set\x20font\x20size:*\x20%0',_0x29eb44)};}return{'type':'format','content':c(_0x212f53,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x364766['commandName']){const _0x5bf071=_0x364766['commandParams'][0x0]['value'];return _0x5bf071?{'type':'format','content':c(_0x212f53,'*Set\x20font\x20family:*\x20%0',_0x5bf071)}:{'type':'format','content':c(_0x212f53,'*Reset\x20font\x20family*')};}if('fontColor'==_0x364766['commandName']){const _0x166e64=_0x364766['commandParams'][0x0]['value'];if(_0x166e64){const _0x9c3096=_0x288e8f(this['editor']['config']['get']('fontColor.colors'))['find'](_0x40aae0=>_0x40aae0['model']==_0x166e64);let _0x183f68=_0x166e64,_0x16137c='';return _0x9c3096&&(_0x183f68=_0x9c3096['label'],_0x16137c=_0x361fe6(_0x183f68)['toLowerCase']()),{'type':'format','content':c(_0x212f53,'*Set\x20font\x20color:*\x20%0',_0x16137c)['trim'](),'color':{'value':_0x166e64,'title':_0x16137c||_0x183f68}};}return{'type':'format','content':c(_0x212f53,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x364766['commandName']){const _0x29d1c7=_0x364766['commandParams'][0x0]['value'];if(_0x29d1c7){const _0x391519=_0x288e8f(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x519a90=>_0x519a90['model']==_0x29d1c7);let _0x5c15be=_0x29d1c7,_0x228de0='';return _0x391519&&(_0x5c15be=_0x391519['label'],_0x228de0=_0x361fe6(_0x5c15be)['toLowerCase']()),{'type':'format','content':c(_0x212f53,'*Set\x20font\x20background\x20color:*\x20%0',_0x228de0)['trim'](),'color':{'value':_0x29d1c7,'title':_0x228de0||_0x5c15be}};}return{'type':'format','content':c(_0x212f53,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x5575fe{['afterInit'](){const _0x249797=this['editor'],_0x49f7fe=_0x249797['plugins']['get']('TrackChangesEditing'),_0x7ac45e=_0x249797['commands']['get']('copyFormat'),_0x48a77a=_0x249797['commands']['get']('pasteFormat');_0x7ac45e&&_0x48a77a&&(_0x49f7fe['enableDefaultAttributesIntegration']('pasteFormat'),_0x49f7fe['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xc19503=this['editor'],_0x573df0=_0xc19503['locale'];_0xc19503['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36d2b2=>{if('formatBlock'!=_0x36d2b2['type']&&'formatInline'!=_0x36d2b2['type'])return;const {data:_0x64cebe}=_0x36d2b2;if(_0x64cebe&&'pasteFormat'===_0x64cebe['commandName']){const _0x149f03=[],_0x556bca=_0x64cebe['commandParams'][0x0];for(const [_0x87453,_0x3c1e78]of Object['entries'](_0x556bca))_0x149f03['push'](so(_0xc19503,_0x87453,_0x3c1e78));return _0x149f03['length']?{'type':'format','content':c(_0x573df0,'*Set\x20format\x20to:*\x20%0',_0x149f03['join'](',\x20'))}:{'type':'format','content':c(_0x573df0,'*Remove\x20all\x20formatting*')};}});}}function so(_0x547cd3,_0x410e9e,_0xdd75dd){const _0x4af46c=_0x547cd3['locale']['t'],_0x305451=_0x410e9e['split'](/(?=[A-Z])/)['join']('\x20'),_0x2b82ca=_0x4af46c(_0x305451['charAt'](0x0)['toUpperCase']()+_0x305451['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xdd75dd)return _0x2b82ca;if('fontColor'===_0x410e9e||'fontBackgroundColor'===_0x410e9e){const _0x4654dc=_0x288e8f(_0x547cd3['config']['get']('fontColor.colors'))['find'](_0x537a38=>_0x537a38['model']==_0xdd75dd);return _0x2b82ca+'\x20('+(_0x4654dc?_0x4af46c(_0x4654dc['label'])['toLowerCase']():_0xdd75dd)+')';}if('fontSize'===_0x410e9e&&isNaN(parseFloat(_0xdd75dd))){const _0x2460c7=_0x547cd3['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x547cd3['config']['get']('fontSize.options'))['find'](_0x1f9ec8=>_0x1f9ec8['model']==_0xdd75dd);return _0x2b82ca+'\x20('+(_0x2460c7?_0x4af46c(_0x2460c7['title'])['toLowerCase']():_0xdd75dd)+')';}return _0x2b82ca+'\x20('+_0xdd75dd+')';}class et extends _0x5575fe{['_headingOptions'];['afterInit'](){const _0x5e0c9a=this['editor'];if(!_0x5e0c9a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5e0c9a['config']['get']('heading.options');const _0x1c5877=_0x5e0c9a['locale'],_0x1ee8d7=_0x5e0c9a['plugins']['get']('TrackChangesEditing');_0x1ee8d7['enableDefaultAttributesIntegration']('heading');for(const _0x136293 of this['_headingOptions'])'paragraph'!=_0x136293['model']&&_0x1ee8d7['descriptionFactory']['registerElementLabel'](_0x136293['model'],_0x419216=>{const _0x26c56e=this['_getHeadingLevel'](_0x136293['model']);return null!==_0x26c56e?_0x3021d4(_0x419216,_0x26c56e):_0x359d27(_0x419216,_0x136293['title']);});function _0x3021d4(_0xe6007b,_0x202da3){return c(_0x1c5877,'ELEMENT_HEADING',[_0xe6007b,_0x202da3]);}function _0x359d27(_0x5a811f,_0x459a5c){return c(_0x1c5877,'ELEMENT_HEADING_CUSTOM',[_0x5a811f,_0x459a5c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x595470=this['editor'],_0x535bb1=_0x595470['locale'];function _0x4bc3cd(_0x467904,_0x7effc){return c(_0x535bb1,'ELEMENT_HEADING_CUSTOM',[_0x467904,_0x7effc]);}_0x595470['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ff36c=>{if('formatBlock'!=_0x4ff36c['type'])return;const {data:_0x503148}=_0x4ff36c;if(_0x503148&&'heading'==_0x503148['commandName']){const _0x899373=_0x503148['commandParams'][0x0]['value'],_0x1e0a2b=this['_getHeadingLevel'](_0x899373);if(null!==_0x1e0a2b)return{'type':'format','content':c(_0x535bb1,'*Change\x20to:*\x20%0',(_0x4cdc9c=0x1,_0x54660c=_0x1e0a2b,c(_0x535bb1,'ELEMENT_HEADING',[_0x4cdc9c,_0x54660c])))};const _0x363458=this['_headingOptions']['find'](_0x1606cc=>_0x1606cc['model']===_0x899373)['title'];return{'type':'format','content':c(_0x535bb1,'*Change\x20to:*\x20%0',_0x4bc3cd(0x1,_0x363458))};}var _0x4cdc9c,_0x54660c;});}['_getHeadingLevel'](_0x442d32){const _0x33d7e1=_0x442d32['match'](/^heading(\d+)/);if(_0x33d7e1)return _0x33d7e1[0x1];const _0x573698=this['_headingOptions']?.['find'](_0x31e6b7=>_0x31e6b7['model']==_0x442d32);if(_0x573698&&_0x573698['view']){const _0x4bb1f6=_0x573698['view'],_0x5066eb=(_0x4bb1f6['name']??_0x4bb1f6)['match'](/^h(\d+)/);if(_0x5066eb)return _0x5066eb[0x1];}return null;}}class nt extends _0x5575fe{['afterInit'](){const _0x40f72e=this['editor'];if(!_0x40f72e['plugins']['has']('HighlightEditing'))return;const _0x1b2344=_0x40f72e['plugins']['get']('TrackChangesEditing'),_0x4307fa=_0x40f72e['locale'];_0x1b2344['enableDefaultAttributesIntegration']('highlight'),_0x1b2344['registerInlineAttribute']('highlight'),_0x1b2344['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x4307fa,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a937a=this['editor'],_0x5dc1e2=_0x2a937a['locale'];_0x2a937a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x197cb8=>{if('formatInline'!=_0x197cb8['type'])return;const {data:_0x43695f}=_0x197cb8;if(_0x43695f&&'highlight'==_0x43695f['commandName']){const _0x3143b1=_0x5dc1e2['t'],_0x42283b=_0x43695f['commandParams'][0x0]['value'];if(_0x42283b){const _0x413e6a=_0x2a937a['config']['get']('highlight.options')['find'](_0x1f5835=>_0x1f5835['model']==_0x42283b),_0x2812a5=_0x3143b1(_0x413e6a['title'])['toLowerCase']();return{'type':'format','content':c(_0x5dc1e2,'*Set\x20highlight:*\x20%0',_0x2812a5),'color':{'value':_0x413e6a['color'],'title':_0x413e6a['title']}};}return{'type':'format','content':c(_0x5dc1e2,'*Remove\x20highlight*',c(_0x5dc1e2,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x5575fe{['afterInit'](){const _0x5c55d2=this['editor'];if(!_0x5c55d2['plugins']['has']('HorizontalLineEditing'))return;_0x5c55d2['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x425f42=_0x5c55d2['plugins']['get']('TrackChangesEditing'),_0xe06d50=_0x5c55d2['locale'];_0x425f42['descriptionFactory']['registerElementLabel']('horizontalLine',_0x127392=>c(_0xe06d50,'ELEMENT_HORIZONTAL_LINE',_0x127392)),_0x5c55d2['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1b46e9,{writer:_0x1a8d25,options:_0x41aee4})=>{if(!_0x41aee4['showSuggestionHighlights'])return null;const _0x18fdd1=_0x1a8d25['createContainerElement']('div'),_0x11b2c2=_0x1a8d25['createEmptyElement']('hr');return _0x1a8d25['addClass']('ck-horizontal-line',_0x18fdd1),_0x1a8d25['insert'](_0x1a8d25['createPositionAt'](_0x18fdd1,0x0),_0x11b2c2),_0x18fdd1;},'converterPriority':'high'});}}class ot extends _0x5575fe{['afterInit'](){const _0x41022e=this['editor'];if(!_0x41022e['plugins']['has']('HtmlEmbed'))return;const _0x59d1f9=_0x41022e['plugins']['get']('TrackChangesEditing'),_0x365489=_0x41022e['locale'];_0x59d1f9['descriptionFactory']['registerElementLabel']('rawHtml',_0x17d26b=>c(_0x365489,'ELEMENT_HTML_EMBED',_0x17d26b)),_0x59d1f9['enableDefaultAttributesIntegration']('htmlEmbed'),_0x59d1f9['registerBlockAttribute']('value'),_0x59d1f9['descriptionFactory']['registerDescriptionCallback'](_0x4fc090=>{if('attribute'!=_0x4fc090['type'])return;const {data:_0x418caf}=_0x4fc090;if(_0x418caf&&'value'==_0x418caf['key']&&_0x4fc090['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x8292d9=c(_0x365489,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x365489,'*Change\x20%0\x20content*',_0x8292d9)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e4c9b=this['editor'],_0x1258f6=_0x4e4c9b['locale'];_0x4e4c9b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20f9f4=>{if('formatBlock'!=_0x20f9f4['type'])return;const {data:_0x35d144}=_0x20f9f4;if(_0x35d144&&'htmlEmbed'==_0x35d144['commandName']){const _0x11520c=c(_0x1258f6,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1258f6,'*Change\x20%0\x20content*',_0x11520c)};}});}}class rt extends _0x5575fe{['afterInit'](){const _0x363de5=this['editor'];if(!_0x363de5['plugins']['has']('ImageEditing'))return;const _0x412303=_0x363de5['plugins']['get']('TrackChangesEditing'),_0x3d32ea=_0x363de5['plugins']['get']('ImageUtils'),_0x151d27=_0x363de5['locale'];_0x412303['enableCommand']('insertImage'),_0x412303['descriptionFactory']['registerElementLabel']('imageBlock',_0x59b30b=>c(_0x151d27,'ELEMENT_IMAGE',_0x59b30b)),_0x412303['descriptionFactory']['registerElementLabel']('imageInline',_0x155df5=>c(_0x151d27,'ELEMENT_INLINE_IMAGE',_0x155df5)),_0x412303['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x151d27,'ELEMENT_CAPTION')),_0x363de5['plugins']['has']('ImageUploadEditing')&&_0x412303['enableCommand']('uploadImage'),_0x363de5['plugins']['has']('ImageBlockEditing')&&_0x363de5['plugins']['has']('ImageInlineEditing')&&(_0x412303['enableCommand']('imageTypeInline',(_0x487b16,_0x23853f)=>{const _0x2482a9=_0x3d32ea['getClosestSelectedImageElement'](_0x363de5['model']['document']['selection']);_0x363de5['model']['change'](()=>{_0x412303['markBlockFormat'](_0x2482a9,{'commandName':'imageTypeInline','commandParams':[_0x23853f]},[],'convertBlockImageToInline');});}),_0x412303['enableCommand']('imageTypeBlock',(_0x4b9356,_0x3acb12)=>{_0x363de5['model']['change'](_0x26b665=>{let _0x5e964d=_0x3d32ea['getClosestSelectedImageElement'](_0x363de5['model']['document']['selection']),_0x156518=_0x26b665['createRangeOn'](_0x5e964d);const _0x3cd47a=_0x12b057['fromPosition'](_0x156518['start'],'toPrevious'),_0x51f988=_0x12b057['fromPosition'](_0x156518['end'],'toNext');_0x412303['forceDefaultExecution'](()=>_0x4b9356(_0x3acb12)),_0x5e964d=_0x3d32ea['getClosestSelectedImageElement'](_0x363de5['model']['document']['selection']),_0x156518=_0x26b665['createRangeOn'](_0x5e964d);const _0x43c080=_0x26b665['createRange'](_0x3cd47a,_0x51f988);_0x3cd47a['detach'](),_0x51f988['detach'](),_0x412303['markBlockFormat'](_0x5e964d,{'commandName':'imageTypeInline','commandParams':[_0x3acb12]},[],'convertInlineImageToBlock'),_0x43c080['start']['isBefore'](_0x156518['start'])&&_0x412303['markInsertion'](_0x26b665['createRange'](_0x43c080['start'],_0x156518['start']),'convertInlineImageToBlock'),_0x156518['end']['isBefore'](_0x43c080['end'])&&_0x412303['markInsertion'](_0x26b665['createRange'](_0x156518['end'],_0x43c080['end']),'convertInlineImageToBlock');});}),_0x412303['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x412303['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x412303['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x412303['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x412303['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x412303['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xe0fdf5])=>{const _0x20812f=_0x412303['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2e7480=_0xe0fdf5['start'],_0x240523=_0xe0fdf5['end'];const _0x53b808=_0x363de5['model']['schema']['getNearestSelectionRange'](_0x2e7480,'backward'),_0x170a14=_0x363de5['model']['schema']['getNearestSelectionRange'](_0x240523,'forward');_0x53b808['isCollapsed']&&(_0x2e7480=_0x53b808['start']),_0x170a14['isCollapsed']&&(_0x240523=_0x170a14['end']),_0x20812f([_0x363de5['model']['createRange'](_0x2e7480,_0x240523)]);}),_0x412303['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4186d9),_0x412303['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4186d9)),_0x363de5['plugins']['has']('ImageCaptionEditing')&&(_0x412303['enableCommand']('toggleImageCaption',(_0x1a3c72,_0x4270b7)=>{const _0x317a61=_0x363de5['plugins']['get']('ImageCaptionUtils');let _0x2aeca3=_0x3d32ea['getClosestSelectedImageElement'](_0x363de5['model']['document']['selection']),_0x3d6efa=_0x317a61['getCaptionFromImageModelElement'](_0x2aeca3);_0x363de5['model']['change'](()=>{if(_0x3d6efa)return void _0x412303['markDeletion'](_0x363de5['model']['createRangeOn'](_0x3d6efa));const _0x38a687=_0x3d32ea['isBlockImage'](_0x2aeca3);_0x1a3c72(_0x4270b7),_0x2aeca3=_0x3d32ea['getClosestSelectedImageElement'](_0x363de5['model']['document']['selection']),_0x3d6efa=_0x317a61['getCaptionFromImageModelElement'](_0x2aeca3),_0x412303['markInsertion'](_0x363de5['model']['createRangeOn'](_0x3d6efa),_0x38a687?null:'imageCaption');});}),_0x412303['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4186d9));const _0x3a166b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4ca3f5(_0x25c232,_0x39b9a0){const _0x5e1909=_0x3a166b['findIndex'](({type:_0x336170,subType:_0x4ea2f4})=>_0x25c232['type']==_0x336170&&_0x25c232['subType']==_0x4ea2f4),_0x1d89dc=_0x3a166b['findIndex'](({type:_0x2c15a5,subType:_0x4c95cd})=>_0x39b9a0['type']==_0x2c15a5&&_0x39b9a0['subType']==_0x4c95cd);if(_0x5e1909<0x0||_0x1d89dc<0x0)return!0x1;const _0x4c03ac=_0x25c232['getFirstRange'](),_0x3f4187=_0x39b9a0['getFirstRange']();if((0x0==_0x5e1909||0x1==_0x5e1909)&&0x2==_0x1d89dc&&_0x4c03ac['isIntersecting'](_0x3f4187))return!0x0;if(0x2==_0x5e1909&&0x3==_0x1d89dc){const _0x839247=_0x412303['_findSuggestions'](_0x4c03ac,'insertion')['filter'](({suggestion:_0x5f2884,meta:_0xb8f12f})=>_0xb8f12f['isOwn']&&'convertInlineImageToBlock'==_0x5f2884['subType']);if(_0x839247['length']>0x1&&_0x3f4187['end']['isEqual'](_0x4c03ac['start']))return!0x0;if(0x1==_0x839247['length']&&(_0x4c03ac['start']['isEqual'](_0x3f4187['end'])||_0x4c03ac['end']['isEqual'](_0x3f4187['start'])))return!0x0;}if(0x3==_0x5e1909&&0x3==_0x1d89dc&&_0x4c03ac['start']['isBefore'](_0x3f4187['start'])){const _0x527651=_0x4c03ac['end']['nodeAfter'],_0x21c114=_0x3f4187['start']['nodeBefore'];return _0x3d32ea['isBlockImage'](_0x527651)&&_0x527651===_0x21c114;}return!0x1;}function _0x4186d9(_0x144897,_0x167859){return _0x4ca3f5(_0x144897,_0x167859)?[_0x144897,_0x167859]:_0x4ca3f5(_0x167859,_0x144897)?[_0x167859,_0x144897]:null;}_0x363de5['plugins']['has']('ImageResize')&&(_0x412303['enableDefaultAttributesIntegration']('resizeImage'),_0x412303['registerBlockAttribute']('resizedWidth'),_0x412303['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x151d27,'FORMAT_IMAGE_SIZE'))),_0x363de5['plugins']['has']('ImageTextAlternativeEditing')&&(_0x412303['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x412303['registerBlockAttribute']('alt')),_0x363de5['plugins']['has']('PictureEditing')&&(_0x412303['registerBlockAttribute']('sources'),_0x412303['descriptionFactory']['registerDescriptionCallback'](_0x350033=>{if('attribute'!=_0x350033['type'])return;const {data:_0x111eab}=_0x350033;return _0x111eab&&'sources'==_0x111eab['key']?{'type':'format','content':''}:void 0x0;})),_0x363de5['plugins']['has']('ImageSizeAttributes')&&(_0x412303['registerBlockAttribute']('width'),_0x412303['registerBlockAttribute']('height'),_0x412303['descriptionFactory']['registerDescriptionCallback'](_0x3b3ec8=>{if('attribute'!=_0x3b3ec8['type'])return;const {data:_0x41f576}=_0x3b3ec8;return!_0x41f576||'width'!=_0x41f576['key']&&'height'!=_0x41f576['key']?void 0x0:{'type':'format','content':''};})),_0x412303['descriptionFactory']['registerDescriptionCallback'](_0x5e93b5=>{if(!!_0x3a166b['find'](({type:_0x1b8a88,subType:_0x4c59a5})=>_0x5e93b5['type']==_0x1b8a88&&_0x5e93b5['subType']==_0x4c59a5))return _0x5e93b5['previous']?{}:void 0x0;}),_0x412303['descriptionFactory']['registerDescriptionCallback'](_0x53b8b6=>{if('insertion'==_0x53b8b6['type']||'deletion'==_0x53b8b6['type']){const _0x27019b=_0x53b8b6['getContainedElement']();if(_0x27019b&&_0x27019b['is']('element','caption'))return{'type':'insertion'==_0x53b8b6['type']?'addObject':'removeObject','element':_0x27019b,'quantity':0x1};}}),_0x412303['descriptionFactory']['registerDescriptionCallback'](_0xbc6de1=>'formatBlock'==_0xbc6de1['type']&&'convertInlineImageToBlock'==_0xbc6de1['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xbc6de1['type']&&'convertBlockImageToInline'==_0xbc6de1['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x412303['descriptionFactory']['registerDescriptionCallback'](_0x4fb863=>{if('attribute'!=_0x4fb863['type'])return;const {data:_0x47113b}=_0x4fb863;if(!_0x47113b||'alt'!=_0x47113b['key'])return;const _0x18185a=_0x47113b['newValue'];return _0x18185a?{'type':'format','content':c(_0x151d27,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x18185a+'\x22')}:{'type':'format','content':c(_0x151d27,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29fbb9=this['editor'],_0x4e912d=_0x29fbb9['locale'];_0x29fbb9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45705e=>{if('formatBlock'!=_0x45705e['type']&&'formatInline'!=_0x45705e['type'])return;const {data:_0x438ca1}=_0x45705e;if(_0x438ca1){if('imageTextAlternative'==_0x438ca1['commandName']){const _0x4d42cb=_0x438ca1['commandParams'][0x0]['newValue'];return _0x4d42cb?{'type':'format','content':c(_0x4e912d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4d42cb+'\x22')}:{'type':'format','content':c(_0x4e912d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x438ca1['commandName']){const _0x34a65f=_0x438ca1['commandParams'][0x0]['width'];return _0x34a65f?{'type':'format','content':c(_0x4e912d,'*Set\x20image\x20width:*\x20%0',_0x34a65f)}:{'type':'format','content':c(_0x4e912d,'*Reset\x20image\x20width*')};}}});}}class at extends _0x5575fe{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5ceba0=this['editor']['locale'],_0x22326f=this['editor']['plugins']['get']('TrackChangesEditing');_0x22326f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x22326f['registerBlockAttribute']('src'),_0x22326f['descriptionFactory']['registerDescriptionCallback'](_0x47b756=>{if('attribute'!=_0x47b756['type'])return;const {data:_0x66b39e}=_0x47b756;return _0x66b39e&&'src'==_0x66b39e['key']?_0x66b39e['newValue']&&_0x66b39e['oldValue']?{'type':'format','content':c(_0x5ceba0,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x76573e=this['editor']['plugins']['get']('TrackChangesEditing');_0x76573e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x76573e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x76573e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x76573e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10ed00=this['editor'],_0x6b4230=_0x10ed00['locale'];_0x10ed00['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2286bc=>{if('formatBlock'!=_0x2286bc['type']&&'formatInline'!=_0x2286bc['type'])return;const {data:_0x37c901}=_0x2286bc;if(!_0x37c901||'replaceImageSource'!=_0x37c901['commandName'])return;return{'type':'format','content':c(_0x6b4230,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x5575fe{['afterInit'](){const _0x3a58ff=this['editor'];if(!_0x3a58ff['plugins']['has']('ImageStyleEditing'))return;const _0x5a2b82=_0x3a58ff['plugins']['get']('TrackChangesEditing'),_0x5e920f=_0x3a58ff['plugins']['get']('ImageUtils'),_0x1df184={};_0x5a2b82['enableCommand']('imageStyle',(_0x2e05ad,_0x508ddd)=>{const _0x30c33c=_0x3a58ff['plugins']['get']('Users')['me'],_0x4d5314=_0x3a58ff['commands']['get']('imageStyle');let _0x111823=_0x5e920f['getClosestSelectedImageElement'](_0x3a58ff['model']['document']['selection']),_0x31f629=_0x3a58ff['model']['createRangeOn'](_0x111823),_0x38ade6=_0x4d5314['value'];if(_0x38ade6==_0x508ddd['value'])return;const _0x333c10={'commandName':'imageStyle','commandParams':[_0x508ddd],'formatGroupId':_0x1526c3()};_0x3a58ff['model']['change'](()=>{if(_0x5a2b82['getSuggestions']()['filter'](_0x40d169=>_0x40d169['isInContent']&&_0x30c33c==_0x40d169['author']&&('formatBlock'==_0x40d169['type']||'formatInline'==_0x40d169['type'])&&('imageStylePreApply'==_0x40d169['subType']||'imageStylePostApply'==_0x40d169['subType'])&&_0x40d169['getFirstRange']()['isEqual'](_0x31f629))['forEach'](_0x39475b=>_0x5a2b82['discardSuggestion'](_0x39475b['head'])),_0x111823=_0x5e920f['getClosestSelectedImageElement'](_0x3a58ff['model']['document']['selection']),_0x31f629=_0x3a58ff['model']['createRangeOn'](_0x111823),_0x4d5314['refresh'](),_0x3a58ff['commands']['get']('imageTypeInline')['refresh'](),_0x3a58ff['commands']['get']('imageTypeBlock')['refresh'](),_0x38ade6=_0x4d5314['value'],_0x38ade6!=_0x508ddd['value'])return _0x5e920f['isInlineImage'](_0x111823)&&_0x4d5314['shouldConvertImageType'](_0x508ddd['value'],_0x111823)?(_0x2e05ad({..._0x508ddd,'setImageSizes':!0x1}),_0x111823=_0x5e920f['getClosestSelectedImageElement'](_0x3a58ff['model']['document']['selection']),void _0x5a2b82['markBlockFormat'](_0x111823,{..._0x333c10,'commandReversedParams':[{'value':_0x38ade6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5e920f['isBlockImage'](_0x111823)?_0x5a2b82['markBlockFormat'](_0x111823,_0x333c10,[],'imageStylePostApply'):_0x5a2b82['markInlineFormat'](_0x31f629,_0x333c10,'imageStylePostApply'));});});for(const _0x59b6bd of _0x3a58ff['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1df184[_0x59b6bd['name']]=_0x59b6bd['title']['toLowerCase']();_0x5a2b82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5a2b82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5a2b82['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5a2b82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1a915c])=>{_0x5e920f['setImageNaturalSizeAttributes'](_0x1a915c['getContainedElement']());}),_0x5a2b82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4220cb,_0x10d42c)=>{_0x5a2b82['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4220cb,{'commandName':_0x10d42c['commandName'],'commandParams':_0x10d42c['commandReversedParams']});}),_0x5a2b82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5702ce,_0x488f81){if(_0x557989(_0x5702ce,_0x488f81))return[_0x5702ce,_0x488f81];if(_0x557989(_0x488f81,_0x5702ce))return[_0x488f81,_0x5702ce];return null;});const _0x399b7b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x557989(_0x35a183,_0x39ae24){const _0x103290=_0x399b7b['findIndex'](({type:_0x12eb22,subType:_0x4383f9})=>_0x35a183['type']==_0x12eb22&&_0x35a183['subType']==_0x4383f9),_0x8e0f34=_0x399b7b['findIndex'](({type:_0x300294,subType:_0x9c89f})=>_0x39ae24['type']==_0x300294&&_0x39ae24['subType']==_0x9c89f);if(_0x103290<0x0||_0x8e0f34<0x0)return!0x1;const _0x553452=_0x35a183['getFirstRange'](),_0x2acaea=_0x39ae24['getFirstRange']();if((0x0==_0x103290||0x1==_0x103290)&&0x2==_0x8e0f34&&_0x553452['isIntersecting'](_0x2acaea))return!0x0;if(0x2==_0x103290&&0x3==_0x8e0f34){const _0x32480d=_0x5a2b82['_findSuggestions'](_0x553452,'insertion')['filter'](({suggestion:_0x1bc5ee,meta:_0x358f00})=>_0x358f00['isOwn']&&'convertInlineImageToBlock'==_0x1bc5ee['subType']);if(_0x32480d['length']>0x1&&_0x2acaea['end']['isEqual'](_0x553452['start']))return!0x0;if(0x1==_0x32480d['length']&&(_0x553452['start']['isEqual'](_0x2acaea['end'])||_0x553452['end']['isEqual'](_0x2acaea['start'])))return!0x0;}if(0x3==_0x103290&&0x3==_0x8e0f34&&_0x553452['start']['isBefore'](_0x2acaea['start'])){const _0x1f4aa4=_0x553452['end']['nodeAfter'],_0x15ff6b=_0x2acaea['start']['nodeBefore'];return _0x5e920f['isBlockImage'](_0x1f4aa4)&&_0x1f4aa4===_0x15ff6b;}return!0x1;}_0x3a58ff['model']['document']['registerPostFixer'](()=>{let _0x43d135=!0x1;const _0x43403e=Array['from'](_0x3a58ff['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x48fb64,data:_0x402e3b}of _0x43403e){const {group:_0x296a35,type:_0x50ae4f,subType:_0x69617,id:_0x165461}=_0x5a2b82['_splitMarkerName'](_0x48fb64);if('suggestion'==_0x296a35&&_0x5a2b82['hasSuggestion'](_0x165461)){if('formatBlock'==_0x50ae4f&&('imageStylePreApply'==_0x69617||'imageStylePostApply'==_0x69617)){const _0x4f0aa4=_0x5a2b82['getSuggestion'](_0x165461);if(_0x402e3b['newRange']){const _0x55f829=_0x4f0aa4['getFirstRange']()['getContainedElement']();if(_0x5e920f['isBlockImage'](_0x55f829))continue;_0x5a2b82['discardSuggestion'](_0x4f0aa4),_0x43d135=!0x0;}}if('insertion'==_0x50ae4f&&'imageCaption'==_0x69617&&!_0x402e3b['newRange']){const _0x2b2e71=_0x5a2b82['getSuggestion'](_0x165461);_0x2b2e71['next']&&_0x2b2e71['next']['isInContent']&&(_0x5a2b82['discardSuggestion'](_0x2b2e71['next']),_0x43d135=!0x0);}}}return _0x43d135;}),this['_registerLegacyDescription'](_0x1df184);}['_registerLegacyDescription'](_0x1a09c8){const _0x5a42d7=this['editor'],_0xf5400f=_0x5a42d7['locale'];_0x5a42d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38f659=>{if('formatBlock'!=_0x38f659['type']&&'formatInline'!=_0x38f659['type'])return;const {data:_0x572c46}=_0x38f659;if(!_0x572c46||'imageStyle'!=_0x572c46['commandName'])return;const _0x3f9f9e=_0x572c46['commandParams'][0x0]['value'];return _0x35825b('side'===_0x3f9f9e?c(_0xf5400f,'FORMAT_SIDE_IMAGE'):_0x1a09c8[_0x3f9f9e]||_0x3f9f9e);function _0x35825b(_0x120984){return{'type':'format','content':c(_0xf5400f,'*Format:*\x20%0',_0x120984)};}});}}class ut extends _0x5575fe{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x314ebb){super(_0x314ebb),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x15baa3=this['editor'],_0x3c1e3e=_0x15baa3['commands']['get']('importWord'),_0x397934=_0x15baa3['commands']['get']('trackChanges');_0x3c1e3e&&(_0x3c1e3e['on']('execute',(_0x13bd54,[,_0x30765a])=>{this['_trackChangesValueDuringImport']=_0x397934['value'],_0x30765a['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3c1e3e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3c1e3e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x397934['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x15baa3['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x30d54f,_0x181c53){const {suggestions:_0x666112}=_0x181c53,_0x4d512f=this['editor']['commands']['get']('trackChanges'),_0x390cc4=_0x4d512f['value'];this['_trackChangesValueDuringImport']!==_0x390cc4&&(_0x4d512f['execute'](),this['_trackChangesExecuted']=!0x0),_0x666112&&_0x666112['forEach'](({id:_0xf819e7,type:_0x21d734,author:_0x538811,created_at:_0x44b064})=>{const _0x40c0f2={'id':_0xf819e7,'type':_0x21d734,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x538811,'createdAt':_0x44b064?new Date(_0x44b064):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x40c0f2);});}}class ft extends _0x5575fe{['afterInit'](){const _0x3ff23c=this['editor'],_0xf361d3=_0x3ff23c['plugins']['get']('TrackChangesEditing');if(_0x3ff23c['plugins']['has']('IndentEditing')&&(_0xf361d3['enableCommand']('indent'),_0xf361d3['enableCommand']('outdent')),_0x3ff23c['plugins']['has']('IndentBlock')){for(const _0x5e10e2 of['indentBlock','outdentBlock'])_0xf361d3['enableDefaultAttributesIntegration'](_0x5e10e2);}const _0x5d53ed=_0x3ff23c['locale'];_0xf361d3['registerBlockAttribute']('blockIndent'),_0xf361d3['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x5d53ed,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x147cb0=this['editor'],_0xdf3b75=_0x147cb0['locale'],_0x2455a8=_0x147cb0['plugins']['get']('TrackChangesEditing');_0x2455a8['descriptionFactory']['registerDescriptionCallback'](_0x59a28a=>{if('formatBlock'!=_0x59a28a['type'])return;const {data:_0x401b8c}=_0x59a28a;if(!_0x401b8c)return;if('indentBlock'!=_0x401b8c['commandName']&&'outdentBlock'!=_0x401b8c['commandName'])return;const _0x1d9f9f=_0x59a28a['getItems']()[0x0],_0x18d827=_0x2455a8['descriptionFactory']['getItemLabel'](_0x1d9f9f);return'indentBlock'==_0x401b8c['commandName']?{'type':'format','content':c(_0xdf3b75,'*Indent:*\x20%0',_0x18d827)}:'outdentBlock'==_0x401b8c['commandName']?{'type':'format','content':c(_0xdf3b75,'*Outdent:*\x20%0',_0x18d827)}:void 0x0;});}}class ht extends _0x5575fe{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x5575fe{['afterInit'](){const _0x161d45=this['editor'];if(!_0x161d45['plugins']['has']('LinkEditing'))return;const _0xd87849=_0x161d45['plugins']['get']('TrackChangesEditing'),_0x13e408=_0x161d45['commands']['get']('link');_0xd87849['enableDefaultAttributesIntegration']('link'),_0xd87849['enableDefaultAttributesIntegration']('unlink'),_0xd87849['registerInlineAttribute']('linkHref');for(const _0x12d2df of _0x13e408['manualDecorators'])_0xd87849['registerInlineAttribute'](_0x12d2df['id']),_0xd87849['descriptionFactory']['registerAttributeLabel'](_0x12d2df['id'],'link\x20('+_0x12d2df['label']['toLowerCase']()+')');_0xd87849['descriptionFactory']['registerDescriptionCallback'](_0x15acf1=>{if('attribute'!=_0x15acf1['type'])return;const {data:_0x526481}=_0x15acf1;if(!_0x526481||'linkHref'!=_0x526481['key'])return;const _0x2f9c3b=_0x526481['newValue'],_0x5ebc39=_0x161d45['locale'];return{'type':'format','content':null==_0x2f9c3b?c(_0x5ebc39,'*Remove\x20link*'):c(_0x5ebc39,'*Set\x20link:*\x20%0','\x22'+_0x2f9c3b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x159f19=this['editor'],_0x3507bb=_0x159f19['locale'];_0x159f19['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11a8a0=>{if('formatInline'!=_0x11a8a0['type'])return;const {data:_0x147b65}=_0x11a8a0;if(_0x147b65){if('link'==_0x147b65['commandName']){const _0xa6eafd=_0x147b65['commandParams'][0x0];return{'type':'format','content':c(_0x3507bb,'*Set\x20link:*\x20%0','\x22'+_0xa6eafd+'\x22')};}return'unlink'==_0x147b65['commandName']?{'type':'format','content':c(_0x3507bb,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x5575fe{['afterInit'](){const _0x343448=this['editor'],_0x2a0847=_0x343448['locale'];if(!_0x343448['plugins']['has']('LegacyListEditing'))return;const _0x1487b0=_0x343448['plugins']['get']('TrackChangesEditing'),_0xaf07b1=_0x343448['plugins']['has']('LegacyTodoListEditing');function _0x417094(_0x1d3222){return()=>{const _0x2a27ab=_0x343448['model']['document']['selection'],_0x1b99c0=_0x343448['commands']['get'](_0x1d3222);if(_0x1b99c0['value'])return void _0x343448['execute']('paragraph',{});const _0x25acd0=_0x1d3222['slice'](0x0,-0x4),_0xd87376=function(_0x18c08e,_0x36ac9f,_0x1ffdde){let _0x5aa539=Array['from'](_0x18c08e)['filter'](_0x8b1a03=>function(_0x116d68,_0x469808){return _0x469808['checkChild'](_0x116d68['parent'],'listItem')&&!_0x469808['isObject'](_0x116d68);}(_0x8b1a03,_0x1ffdde));_0x5aa539=_0x5aa539['filter'](_0x1d5fe3=>!_0x1d5fe3['is']('element','listItem')||_0x1d5fe3['getAttribute']('listType')!=_0x36ac9f);const _0x596d08=new Set();for(const _0x373796 of _0x5aa539)_0x373796['is']('element','listItem')?_0x596d08['add'](Le(_0x373796)):_0x596d08['add'](_0x373796);return Array['from'](_0x596d08);}(_0x2a27ab['getSelectedBlocks'](),_0x25acd0,_0x343448['model']['schema']);_0x343448['model']['change'](()=>{for(const _0x3c3293 of _0xd87376)_0x1487b0['markBlockFormat'](_0x3c3293,{'commandName':_0x1d3222,'commandParams':[{'forceValue':!_0x1b99c0['value']}],'formatGroupId':'blockName'},Ee(_0x3c3293));});};}function _0x37b00c(_0xd6913d){return()=>{const _0x177fb2=function(_0x5b5845){let _0x119752=Array['from'](_0x5b5845);const _0x5a7ec5=_0x119752['findIndex'](_0x186dc8=>'listItem'!=_0x186dc8['name']);return _0x5a7ec5>-0x1&&(_0x119752=_0x119752['slice'](0x0,_0x5a7ec5)),_0x119752;}(_0x343448['model']['document']['selection']['getSelectedBlocks']()),_0x1ec738=_0x343448['model']['createRange'](_0x343448['model']['createPositionAt'](_0x177fb2[0x0],'before'),_0x343448['model']['createPositionAt'](_0x177fb2[_0x177fb2['length']-0x1],'end'));_0x343448['model']['change'](()=>{_0x1487b0['markBlockFormat'](_0x1ec738,{'commandName':_0xd6913d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1a2f30){const _0x44a09c=new Set();for(const _0x2f1549 of _0x1a2f30){let _0x5e6661=_0x2f1549['nextSibling'];for(;_0x5e6661&&_0x5e6661['getAttribute']('listIndent')>_0x2f1549['getAttribute']('listIndent');)_0x44a09c['add'](_0x5e6661),_0x5e6661=_0x5e6661['nextSibling'];}return Array['from'](_0x44a09c);}(_0x177fb2));});};}_0x1487b0['enableCommand']('numberedList',_0x417094('numberedList')),_0x1487b0['enableCommand']('bulletedList',_0x417094('bulletedList')),_0xaf07b1&&_0x1487b0['enableCommand']('todoList',_0x417094('todoList')),_0x1487b0['enableCommand']('indentList',_0x37b00c('indentList')),_0x1487b0['enableCommand']('outdentList',_0x37b00c('outdentList')),_0xaf07b1&&_0x1487b0['enableCommand']('checkTodoList',()=>{const _0x3ecf69=_0x343448['commands']['get']('checkTodoList'),_0x1dfaba=Array['from'](_0x3ecf69['_selectedElements']);_0x1dfaba['filter'](_0x37cac1=>_0x37cac1['getAttribute']('todoListChecked')!=_0x3ecf69['value']),_0x343448['model']['change'](()=>{for(const _0x2a11ef of _0x1dfaba)_0x1487b0['markBlockFormat'](_0x2a11ef,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3ecf69['value']}]});});}),_0x1487b0['descriptionFactory']['registerElementLabel']('listItem',_0x19dc75=>c(_0x2a0847,'ELEMENT_LIST_ITEM',_0x19dc75)),_0x1487b0['descriptionFactory']['registerDescriptionCallback'](_0x37a8ac=>{if('formatBlock'!=_0x37a8ac['type']&&'formatInline'!=_0x37a8ac['type'])return;const {data:_0xd194a6}=_0x37a8ac;if(_0xd194a6){if('numberedList'==_0xd194a6['commandName']||'bulletedList'==_0xd194a6['commandName']||'todoList'==_0xd194a6['commandName'])switch(_0xd194a6['commandName']['replace']('List','')){case'bulleted':return _0x1b2667(c(_0x2a0847,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1b2667(c(_0x2a0847,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1b2667(c(_0x2a0847,'ELEMENT_TODO_LIST'));}if('indentList'==_0xd194a6['commandName'])return{'type':'format','content':c(_0x2a0847,'*Indent:*\x20%0',c(_0x2a0847,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xd194a6['commandName'])return{'type':'format','content':c(_0x2a0847,'*Outdent:*\x20%0',c(_0x2a0847,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xd194a6['commandName'])return _0xd194a6['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2a0847,'*Check\x20item*')}:{'type':'format','content':c(_0x2a0847,'*Uncheck\x20item*')};}function _0x1b2667(_0x48cdf4){return{'type':'format','content':c(_0x2a0847,'*Change\x20to:*\x20%0',_0x48cdf4)};}});}}function Le(_0x31b53a){const _0x3fc437=_0x31b53a['getAttribute']('listIndent');if(0x0==_0x3fc437)return _0x31b53a;let _0x72bd6a=_0x31b53a;for(;_0x31b53a['previousSibling']&&_0x31b53a['previousSibling']['is']('element','listItem');){const _0x4fe4db=_0x31b53a['previousSibling']['getAttribute']('listIndent');if(_0x4fe4db==_0x3fc437)_0x72bd6a=_0x31b53a['previousSibling'];else{if(_0x4fe4db<_0x3fc437)break;}_0x31b53a=_0x31b53a['previousSibling'];}return _0x72bd6a;}function Ee(_0x2dc732){const _0x5c1e29=[];if(_0x2dc732['is']('element','listItem')&&_0x2dc732['getAttribute']('listIndent')>0x0){let _0x6fcb46=_0x2dc732['nextSibling'];for(;_0x6fcb46&&'listItem'==_0x6fcb46['name']&&_0x6fcb46['getAttribute']('listIndent')==_0x2dc732['getAttribute']('listIndent');)_0x5c1e29['push'](_0x6fcb46),_0x6fcb46=_0x6fcb46['nextSibling'];}return _0x5c1e29;}class Q extends _0x5575fe{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x18a284=this['editor']['config']['get']('list.properties'),_0x524805=this['editor']['plugins']['get']('TrackChangesEditing');_0x18a284['styles']&&_0x524805['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x18a284['reversed']&&_0x524805['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x18a284['startIndex']&&_0x524805['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x524805['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1696b4,_0x39281c={}){const _0xb91ffd=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa6f011=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xb91ffd['markMultiRangeBlockFormat'](_0xa6f011,{'commandName':'listStyle','commandParams':[{'type':_0x39281c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x397619,_0xfd24d1={}){const _0x3cc0ae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4696e5=this['_getSuggestionBlocks'](_0x36962f=>_0x36962f['is']('element','listItem')&&'numbered'===_0x36962f['getAttribute']('listType'));if(_0x4696e5['length']<0x1)return;const _0x2c7f47=_0x4696e5['map'](_0x1d2c28=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1d2c28,'before'),this['editor']['model']['createPositionAt'](_0x1d2c28,0x0)));this['editor']['model']['change'](()=>{_0x3cc0ae['markMultiRangeBlockFormat'](_0x2c7f47,{'commandName':'listReversed','commandParams':[{'reversed':_0xfd24d1['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3f552c,_0x7caa15={}){const _0xbcd029=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49c1a6=this['_getSuggestionBlocks'](_0x54e35f=>_0x54e35f['is']('element','listItem')&&'numbered'===_0x54e35f['getAttribute']('listType'));if(_0x49c1a6['length']<0x1)return;const _0xaf9736=_0x49c1a6['map'](_0x8337c2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x8337c2,'before'),this['editor']['model']['createPositionAt'](_0x8337c2,0x0)));this['editor']['model']['change'](()=>{_0xbcd029['markMultiRangeBlockFormat'](_0xaf9736,{'commandName':'listStart','commandParams':[{'startIndex':_0x7caa15['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x14f67e){if('formatBlock'!=_0x14f67e['type']&&'formatInline'!=_0x14f67e['type'])return;const _0x1e33bc=this['editor']['locale'],{data:_0x32701a}=_0x14f67e;if(!_0x32701a)return;let _0x5846f7,_0x1318fe;switch(_0x32701a['commandName']){case'listStyle':_0x5846f7='*Change\x20to:*\x20%0',_0x1318fe={'type':'format','content':c(_0x1e33bc,_0x5846f7,c(_0x1e33bc,this['_getTranslationKeyForListStyle'](_0x32701a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5846f7=_0x32701a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1318fe={'type':'format','content':c(_0x1e33bc,_0x5846f7)};break;case'listStart':_0x5846f7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1318fe={'type':'format','content':c(_0x1e33bc,_0x5846f7,_0x32701a['commandParams'][0x0]['startIndex'])};}return _0x1318fe;}['_getSuggestionBlocksForListStyle'](){const _0xe1c922=this['editor']['plugins']['get']('LegacyListUtils');let _0x4701e9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4701e9[0x0]?.['is']('element','listItem')&&_0x4701e9['unshift'](..._0xe1c922['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4701e9[_0x4701e9['length']-0x1]?.['is']('element','listItem')&&_0x4701e9['push'](..._0xe1c922['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4701e9=[...new Set(_0x4701e9)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4701e9=_0x4701e9['filter'](_0x429be3=>_0x429be3['is']('element','listItem'))),_0x4701e9;}['_getSuggestionBlocks'](_0x19d9be){const _0x5e8761=this['editor']['plugins']['get']('LegacyListUtils');let _0x5bec5e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x19d9be)['map'](_0x28d598=>{const _0x55e335=this['editor']['model']['createPositionAt'](_0x28d598,0x0);return[..._0x5e8761['getSiblingNodes'](_0x55e335,'backward'),..._0x5e8761['getSiblingNodes'](_0x55e335,'forward')];})['flat']();return _0x5bec5e=[...new Set(_0x5bec5e)],_0x5bec5e;}['_getTranslationKeyForListStyle'](_0x1ed095){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1ed095)||'default')['toUpperCase']()+'_LIST_'+_0x1ed095['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x5575fe{['afterInit'](){const _0x5a501b=this['editor'];if(!_0x5a501b['plugins']['has']('MediaEmbedEditing'))return;const _0x25887a=_0x5a501b['plugins']['get']('TrackChangesEditing'),_0x4d789a=_0x5a501b['locale'];_0x25887a['enableCommand']('mediaEmbed'),_0x25887a['descriptionFactory']['registerElementLabel']('media',_0x947f2f=>c(_0x4d789a,'ELEMENT_MEDIA',_0x947f2f)),_0x5a501b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2e5897,{writer:_0x1127ba,options:_0x8ad2a0})=>{if(_0x8ad2a0['showSuggestionHighlights'])return _0x1127ba['createEmptyElement']('div');},'converterPriority':'high'}),_0x5a501b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4064e8,_0x5d03d9,_0x44c605)=>{_0x44c605['options']['showSuggestionHighlights']&&_0x4064e8['stop']();},{'priority':'high'});}}class pt extends _0x5575fe{['afterInit'](){const _0xb030a9=this['editor'];_0xb030a9['plugins']['has']('MentionEditing')&&_0xb030a9['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x5575fe{['afterInit'](){const _0x6580dc=this['editor'];if(!_0x6580dc['plugins']['has']('MergeFieldsEditing'))return;const _0x554024=_0x6580dc['plugins']['get']('TrackChangesEditing'),_0x3b897e=_0x6580dc['locale'];_0x554024['enableCommand']('insertMergeField'),_0x554024['enableCommand']('insertMergeFieldBlock'),_0x554024['enableCommand']('insertMergeFieldImage'),_0x554024['descriptionFactory']['registerElementLabel']('mergeField',_0x597a16=>c(_0x3b897e,'ELEMENT_MERGE_FIELD',_0x597a16)),_0x554024['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x31be7d=>c(_0x3b897e,'ELEMENT_MERGE_FIELD',_0x31be7d)),_0x554024['descriptionFactory']['registerDescriptionCallback'](_0x28c764=>{if('insertion'!=_0x28c764['type']&&'deletion'!=_0x28c764['type'])return;const _0xab471a=_0x28c764['getContainedElement']();if(null==_0xab471a)return;const _0x42a358=_0x6580dc['plugins']['get']('MergeFieldsEditing');let _0x4d5d4b;switch(_0x42a358['getMergeFieldType'](_0xab471a)){case null:return;case'image':{const _0x25625e=_0x42a358['unwrapAffixes'](_0xab471a['getAttribute']('src'));_0x4d5d4b=_0x42a358['getLabel'](_0x25625e)||_0x25625e;break;}default:{const _0x24c05d=_0xab471a['getAttribute']('id');_0x4d5d4b=_0x42a358['getLabel'](_0x24c05d)||_0x24c05d;break;}}return'insertion'==_0x28c764['type']?{'type':'insertion','content':c(_0x3b897e,'*Insert:*\x20%0','\x22'+_0x4d5d4b+'\x22\x20'+c(_0x3b897e,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x3b897e,'*Remove:*\x20%0','\x22'+_0x4d5d4b+'\x22\x20'+c(_0x3b897e,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x5575fe{['afterInit'](){const _0x23c7b5=this['editor'],_0x3bc026=_0x23c7b5['plugins']['get']('TrackChangesEditing');_0x23c7b5['plugins']['has']('MultiLevelList')&&(_0x3bc026['enableDefaultAttributesIntegration']('multiLevelList'),_0x3bc026['registerBlockAttribute']('listMarkerStyle'),_0x3bc026['descriptionFactory']['registerDescriptionCallback'](_0x16adcd=>this['handleDescriptions'](_0x16adcd)));}['handleDescriptions'](_0x1d0865){const _0x11c60d=this['editor']['locale'],{data:_0x2df04d}=_0x1d0865,_0x3eb945={'type':'format','content':''};if(_0x2df04d&&'listMarkerStyle'==_0x2df04d['key']){if(!_0x2df04d['oldValue'])return{'type':'format','content':c(_0x11c60d,'*Set\x20format:*\x20%0',c(_0x11c60d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2df04d['newValue']+')'};if(!_0x2df04d['newValue']){let _0xf095cb=_0x1d0865['head'];for(;_0xf095cb;){if(_0xf095cb['data']&&'listType'==_0xf095cb['data']['key']&&_0xf095cb['data']['newValue'])return _0x3eb945;_0xf095cb=_0xf095cb['next'];}return{'type':'format','content':c(_0x11c60d,'*Remove\x20format:*\x20%0',c(_0x11c60d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2df04d['oldValue']+')'};}}}}class bt extends _0x5575fe{['afterInit'](){const _0x1ba987=this['editor'];if(!_0x1ba987['plugins']['has']('PageBreakEditing'))return;_0x1ba987['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5a9985=_0x1ba987['plugins']['get']('TrackChangesEditing'),_0x351f5d=_0x1ba987['locale'];_0x5a9985['descriptionFactory']['registerElementLabel']('pageBreak',_0x1f39b7=>c(_0x351f5d,'ELEMENT_PAGE_BREAK',_0x1f39b7));}}class yt extends _0x5575fe{['afterInit'](){const _0x3619f3=this['editor'];if(!_0x3619f3['plugins']['has']('Paragraph'))return;const _0x3a0cd7=_0x3619f3['locale'],_0x4bc70d=_0x3619f3['plugins']['get']('TrackChangesEditing');_0x4bc70d['descriptionFactory']['registerElementLabel']('paragraph',_0x470085=>c(_0x3a0cd7,'ELEMENT_PARAGRAPH',_0x470085)),_0x4bc70d['enableDefaultAttributesIntegration']('paragraph'),_0x4bc70d['enableCommand']('insertParagraph'),_0x3619f3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3619f3),{'priority':'highest'}),_0x3619f3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x12a055,_0x360168,_0x164ea5)=>{_0x164ea5['options']['showSuggestionHighlights']&&nr(_0x3619f3,{'showActiveMarker':!0x1})(_0x12a055,_0x360168,_0x164ea5);},{'priority':'highest'});const _0x322126=_0x4bc70d['descriptionFactory'];_0x322126['registerDescriptionCallback'](_0x56daf4=>{if('insertion'!==_0x56daf4['type'])return;const {start:_0x2826a4,end:_0x57434a}=_0x56daf4['getFirstRange']();if(!_0x2826a4['isTouching'](_0x57434a)||!_0x2826a4['nodeAfter'])return;const _0x3e3870=_0x3619f3['model']['schema'],_0x2a2580=_0x2826a4['nodeAfter'];return _0x3e3870['isBlock'](_0x2a2580)&&!_0x3e3870['isLimit'](_0x2a2580)&&_0x3e3870['checkChild'](_0x2a2580,'$text')?{'type':'insertion','content':c(_0x3a0cd7,'*Insert:*\x20%0',_0x322126['getItemLabel'](_0x2a2580,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe84392=this['editor'],_0x379dba=_0xe84392['locale'];_0xe84392['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25ca22=>{if('formatBlock'!=_0x25ca22['type'])return;const {data:_0x32af30}=_0x25ca22;return _0x32af30&&'paragraph'==_0x32af30['commandName']?{'type':'format','content':c(_0x379dba,'*Change\x20to:*\x20%0',c(_0x379dba,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x310ac7,{showActiveMarker:_0x3a8f8a=!0x0}={}){return(_0x2479d4,_0x270e7b,_0x3af8a9)=>{const _0x289f00=_0x310ac7['plugins']['get']('TrackChangesEditing'),_0x3900b2=_0x270e7b['markerRange']['start'],_0x38d864=_0x270e7b['markerRange']['end'],_0x262872=_0x310ac7['model']['schema'];if(!_0x3900b2['isTouching'](_0x38d864)||!_0x3900b2['nodeAfter'])return;const _0x8ad195=_0x3900b2['nodeAfter'];if(_0x262872['isBlock'](_0x8ad195)&&!_0x262872['isLimit'](_0x8ad195)&&_0x262872['checkChild'](_0x8ad195,'$text')){if(!_0x3af8a9['consumable']['consume'](_0x270e7b['markerRange'],_0x2479d4['name']))return;const {id:_0x59f78d,authorId:_0x3f6752}=_0x289f00['_splitMarkerName'](_0x270e7b['markerName']),_0x1d8e6c=_0x3af8a9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x59f78d,'data-author-id':_0x3f6752}),_0x4a75f1=_0x3af8a9['mapper']['toViewPosition'](_0x38d864);_0x3a8f8a&&_0x289f00['activeMarkers']['includes'](_0x270e7b['markerName'])&&_0x3af8a9['writer']['addClass']('ck-suggestion-marker--active',_0x1d8e6c),_0x3af8a9['writer']['insert'](_0x4a75f1,_0x1d8e6c),_0x3af8a9['mapper']['bindElementToMarker'](_0x1d8e6c,_0x270e7b['markerName']);}};}class St extends _0x5575fe{['afterInit'](){const _0x509363=this['editor'];_0x509363['commands']['get']('replaceSource')&&_0x509363['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x5575fe{['afterInit'](){const _0x25aa0c=this['editor'];if(!_0x25aa0c['plugins']['has']('RemoveFormatEditing'))return;_0x25aa0c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2764bb=this['editor'];_0x2764bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40335d=>{if('formatBlock'!=_0x40335d['type']&&'formatInline'!=_0x40335d['type'])return;const {data:_0x40ccc3}=_0x40335d;return _0x40ccc3&&'removeFormat'==_0x40ccc3['commandName']?{'type':'format','content':c(_0x2764bb['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x5575fe{['afterInit'](){const _0x505102=this['editor'];if(!_0x505102['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3f0717=_0x505102['plugins']['get']('TrackChangesEditing');_0x3f0717['enableCommand']('goToPreviousRestrictedEditingException'),_0x3f0717['enableCommand']('goToNextRestrictedEditingException');const _0x153d1d=_0x505102['plugins']['get']('RestrictedEditingModeEditing');_0x153d1d['enableCommand']('trackChanges'),_0x153d1d['enableCommand']('acceptSuggestion'),_0x153d1d['enableCommand']('discardSuggestion'),_0x153d1d['enableCommand']('acceptAllSuggestions'),_0x153d1d['enableCommand']('discardAllSuggestions'),_0x153d1d['enableCommand']('acceptSelectedSuggestions'),_0x153d1d['enableCommand']('discardSelectedSuggestions');}}class At extends _0x5575fe{['afterInit'](){const _0x49eea1=this['editor'];if(!_0x49eea1['plugins']['has']('ShiftEnter'))return;const _0x4b82a2=_0x49eea1['plugins']['get']('TrackChangesEditing');_0x4b82a2['enableCommand']('shiftEnter'),_0x49eea1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x49eea1),{'priority':'high'}),_0x49eea1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x49eea1),{'priority':'high'}),_0x49eea1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5550ef,_0x4333d5,_0xdde1a4)=>{_0xdde1a4['options']['showSuggestionHighlights']&&je(_0x49eea1,{'showActiveMarker':!0x1})(_0x5550ef,_0x4333d5,_0xdde1a4);}),_0x4b82a2['descriptionFactory']['registerElementLabel']('softBreak',_0xf5b36=>c(_0x49eea1['locale'],'ELEMENT_LINE_BREAK',_0xf5b36));}}function je(_0x18188f,{showActiveMarker:_0x3f403c=!0x0}={}){return(_0x41f9e5,_0x459447,_0x21c048)=>{const _0x58b02b=_0x18188f['plugins']['get']('TrackChangesEditing');if(!_0x21c048['consumable']['test'](_0x459447['markerRange'],_0x41f9e5['name']))return;const _0x14d62f=_0x18188f['model'];for(const _0x112553 of _0x459447['markerRange']['getItems']()){if(!_0x112553['is']('element','softBreak'))continue;const _0x25e8c0='deletion'==_0x459447['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x25a41a,authorId:_0xb02685}=_0x58b02b['_splitMarkerName'](_0x459447['markerName']),_0x31d5da=_0x21c048['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x25e8c0,'data-suggestion':_0x25a41a,'data-author-id':_0xb02685}),_0x244524=_0x21c048['mapper']['toViewPosition'](_0x14d62f['createPositionBefore'](_0x112553));_0x3f403c&&_0x58b02b['activeMarkers']['includes'](_0x459447['markerName'])&&_0x21c048['writer']['addClass']('ck-suggestion-marker--active',_0x31d5da),_0x21c048['writer']['insert'](_0x244524,_0x31d5da),_0x21c048['mapper']['bindElementToMarker'](_0x31d5da,_0x459447['markerName']);}};}class _t extends _0x5575fe{['afterInit'](){const _0x193ea8=this['editor'],_0x52c589=_0x193ea8['model'],_0x47331b=_0x193ea8['locale'];if(!_0x193ea8['plugins']['has']('StandardEditingModeEditing'))return;const _0x10c175=_0x193ea8['plugins']['get']('TrackChangesEditing'),_0xa43a00='restrictedEditingException',_0x4b33f7=_0x193ea8['commands']['get'](_0xa43a00);_0x10c175['enableCommand'](_0xa43a00,(_0x542ecb,_0x4c72dd={})=>{const _0x3da471=_0x52c589['document']['selection'];if(_0x3da471['isCollapsed'])return void _0x542ecb(_0x4c72dd);const _0x459f93=void 0x0!==_0x4c72dd['forceValue']?_0x4c72dd['forceValue']:!_0x4b33f7['value'];_0x52c589['change'](()=>{const _0x5bdd7e=Array['from'](_0x3da471['getRanges']());for(const _0xcebf02 of _0x5bdd7e){const _0x3de6d3=_0x459f93?[_0xcebf02]:io(_0xa43a00,_0xcebf02,_0x52c589);for(const _0x49522b of _0x3de6d3)_0x10c175['markInlineFormat'](_0x49522b,{'commandName':_0xa43a00,'commandParams':[{'forceValue':_0x459f93}]});}});}),_0x10c175['descriptionFactory']['registerDescriptionCallback'](_0x5e7fc0=>{if('formatBlock'!=_0x5e7fc0['type']&&'formatInline'!=_0x5e7fc0['type'])return;const {data:_0x342560}=_0x5e7fc0;return _0x342560&&_0x342560['commandName']==_0xa43a00?_0x342560['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x47331b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x47331b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x5575fe{['afterInit'](){const _0x158815=this['editor'];if(!_0x158815['plugins']['has']('Style')||!_0x158815['plugins']['has']('DataSchema'))return;const _0x3bc837=_0x158815['plugins']['get']('TrackChangesEditing'),_0x38f8be=_0x158815['locale'],_0x18ebcf=_0x158815['config']['get']('style')||{},_0x21ebd7=_0x158815['plugins']['get']('GeneralHtmlSupport'),_0x58dc6d=_0x158815['plugins']['get']('StyleUtils')['normalizeConfig'](_0x158815['plugins']['get']('DataSchema'),_0x18ebcf['definitions']);_0x3bc837['enableDefaultAttributesIntegration']('style');const _0x47050d=new Set();for(const _0x3526c8 of _0x58dc6d['block']){const _0x54c7c4=_0x21ebd7['getGhsAttributeNameForElement'](_0x3526c8['element']);_0x47050d['add'](_0x54c7c4);}const _0x31abac=new Set();for(const _0x1ff06b of _0x58dc6d['inline']){const _0x38e475=_0x21ebd7['getGhsAttributeNameForElement'](_0x1ff06b['element']);_0x31abac['add'](_0x38e475);for(const _0xc0b757 of _0x1ff06b['ghsAttributes'])_0x31abac['add'](_0xc0b757);}for(const _0x1b25dc of _0x47050d)_0x3bc837['registerBlockAttribute'](_0x1b25dc),_0x3bc837['descriptionFactory']['registerAttributeLabel'](_0x1b25dc,c(_0x38f8be,'FORMAT_STYLE'));for(const _0x7243fb of _0x31abac)_0x3bc837['registerInlineAttribute'](_0x7243fb),_0x3bc837['descriptionFactory']['registerAttributeLabel'](_0x7243fb,c(_0x38f8be,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49b029=this['editor'],_0x5e6c6a=_0x49b029['locale'];_0x49b029['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bc93a=>{if('formatBlock'!=_0x4bc93a['type']&&'formatInline'!=_0x4bc93a['type'])return;const {data:_0x4996b3}=_0x4bc93a;return _0x4996b3&&'style'===_0x4996b3['commandName']?_0x4996b3['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5e6c6a,'*Set\x20format:*\x20%0',_0x4996b3['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x5e6c6a,'*Remove\x20format:*\x20%0',_0x4996b3['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x5575fe{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x25fe20){super(_0x25fe20),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4d6c08=this['editor'],_0x2308ab=_0x4d6c08['model']['document']['selection'];if(!_0x4d6c08['plugins']['has']('TableEditing'))return;const _0x28c53d=_0x4d6c08['locale'],_0x842dc3=_0x4d6c08['plugins']['get']('TrackChangesEditing'),_0x43c820=_0x4d6c08['plugins']['get']('TableUtils');_0x842dc3['descriptionFactory']['registerElementLabel']('table',_0x3fef2b=>c(_0x28c53d,'ELEMENT_TABLE',_0x3fef2b)),this['_setupColumnsRowsFixing'](),_0x842dc3['enableCommand']('insertTable'),_0x842dc3['enableCommand']('selectTableRow'),_0x842dc3['enableCommand']('selectTableColumn');for(const _0x4e3025 of['insertTableRowAbove','insertTableRowBelow']){const _0x1d1441=_0x4d6c08['commands']['get'](_0x4e3025);_0x842dc3['enableCommand'](_0x4e3025,_0x167a9f=>{_0x4d6c08['model']['change'](_0x2ed41a=>{_0x167a9f();const _0xcb6bfb='above'===_0x1d1441['order'],_0x1840a5=_0x43c820['getSelectionAffectedTableCells'](_0x2308ab),_0x232fa0=_0x43c820['getRowIndexes'](_0x1840a5),_0x37fc30=_0xcb6bfb?_0x232fa0['first']-0x1:_0x232fa0['last']+0x1,_0x267175=_0x1840a5[0x0]['findAncestor']('table'),_0x1e76d5=_0x43c820['createTableWalker'](_0x267175,{'startRow':_0x37fc30,'endRow':_0x37fc30}),_0x5550c1=Array['from'](_0x1e76d5)['map'](_0x982a17=>_0x2ed41a['createRangeOn'](_0x982a17['cell']));_0x842dc3['markMultiRangeInsertion'](_0x5550c1,'tableRow');});});}for(const _0x2d62e8 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1d1598=_0x4d6c08['commands']['get'](_0x2d62e8);_0x842dc3['enableCommand'](_0x2d62e8,_0x240386=>{_0x4d6c08['model']['change'](_0x450b77=>{_0x240386();const _0x3a95cb='left'===_0x1d1598['order'],_0x36cd58=_0x43c820['getSelectionAffectedTableCells'](_0x2308ab),_0x5a8945=_0x43c820['getColumnIndexes'](_0x36cd58),_0x4df789=_0x3a95cb?_0x5a8945['first']-0x1:_0x5a8945['last']+0x1,_0x17181b=_0x36cd58[0x0]['findAncestor']('table'),_0x3f407e=_0x43c820['createTableWalker'](_0x17181b,{'startRow':0x0,'column':_0x4df789,'includeAllSlots':!0x1}),_0x2c89c2=Array['from'](_0x3f407e)['map'](_0x1cf2f1=>_0x450b77['createRangeOn'](_0x1cf2f1['cell']));_0x842dc3['markMultiRangeInsertion'](_0x2c89c2,'tableColumn');});});}for(const _0x2ff5ef of['removeTableRow','removeTableColumn']){const _0x304739=_0x2ff5ef['substr'](0xb),_0x3fcbd4=_0x304739['toLowerCase'](),_0x3e8a0a=_0x3fcbd4['substr'](0x0,0x3)+'span',_0x5c7211='table'+_0x304739,_0x4726ff='min'+_0x304739,_0x509c4b='max'+_0x304739;_0x842dc3['enableCommand'](_0x2ff5ef,()=>{_0x4d6c08['model']['change'](_0xb36e65=>{const _0x279512=_0x43c820['getSelectionAffectedTableCells'](_0x2308ab),_0x302110=_0x279512[0x0]['findAncestor']('table');let _0x5d7544;if('removeTableRow'==_0x2ff5ef){const _0x24a8b8=_0x43c820['getRowIndexes'](_0x279512);_0x5d7544={'startRow':_0x24a8b8['first'],'endRow':_0x24a8b8['last'],'includeAllSlots':!0x0};}else{const _0x27547d=_0x43c820['getColumnIndexes'](_0x279512);_0x5d7544={'startColumn':_0x27547d['first'],'endColumn':_0x27547d['last'],'includeAllSlots':!0x0};}const _0x16f556=_0x43c820['createTableWalker'](_0x302110,_0x5d7544),_0x15dd71=Array['from'](_0x16f556)['map'](({cell:_0x5146b3})=>_0x5146b3),_0x56d794=xe(_0x15dd71['filter'](_0x1c6939=>_0x1c6939['hasAttribute'](_0x3e8a0a))),_0x41f1da=xe(_0x15dd71['filter'](_0x3125f2=>!_0x3125f2['hasAttribute'](_0x3e8a0a)))['map'](_0x4eaeec=>_0xb36e65['createRangeOn'](_0x4eaeec)),_0x52ec30=_0x842dc3['markMultiRangeDeletion'](_0x41f1da,_0x5c7211);if(_0x52ec30&&('tableRow'==_0x52ec30['subType']||'tableColumn'==_0x52ec30['subType'])){const _0x351fce=this['_getSuggestionCoords'](_0x52ec30);for(const _0x552916 of _0x56d794){const _0x49b325=_0xb36e65['createRangeOn'](_0x552916),_0x300d36=_0x43c820['getCellLocation'](_0x552916),_0x570bc1=_0x552916['getAttribute'](_0x3e8a0a)-0x1,_0x6abcae=_0x351fce[_0x4726ff],_0x3210a7=_0x351fce[_0x509c4b];_0x6abcae<=_0x300d36[_0x3fcbd4]&&_0x300d36[_0x3fcbd4]+_0x570bc1<=_0x3210a7&&_0x52ec30['addRange'](_0x49b325);}}});});}function _0x2b475a(_0x36b097){const _0x1070ac=Array['from'](_0x2308ab['getRanges']())['map'](_0x2fc81d=>_0x34c04c['fromRange'](_0x2fc81d));_0x4d6c08['model']['change'](_0x1b6945=>{const _0x309462=_0x1b6945['batch'];_0x36b097=_0x36b097['filter'](_0x3a71c4=>'$graveyard'!=_0x3a71c4['root']['rootName']),_0x1b6945['setSelection'](_0x36b097),_0x4d6c08['commands']['get']('removeTableRow')['refresh'](),_0x4d6c08['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4d6c08['model']['enqueueChange'](()=>{_0x4d6c08['model']['enqueueChange'](_0x309462,_0x6e4426=>{const _0x35c0df=_0x1070ac['filter'](_0x54c892=>'$graveyard'!=_0x54c892['root']['rootName']);_0x35c0df['length']>0x0&&_0x6e4426['setSelection'](_0x35c0df);for(const _0x1bfd60 of _0x1070ac)_0x1bfd60['detach']();});});});}function _0x5ad008(_0x43f618){_0x4d6c08['model']['change'](_0x18bbde=>{const _0x368eae=Array['from'](_0x2308ab['getRanges']())['map'](_0x143960=>_0x34c04c['fromRange'](_0x143960)),_0x467933=[];for(const _0x37da40 of _0x43f618)for(const _0x24d490 of _0x37da40['getItems']({'shallow':!0x0}))_0x467933['push'](_0x24d490);for(const _0xa15db5 of _0x467933)'$graveyard'!=_0xa15db5['root']['rootName']&&(_0x18bbde['setSelection'](_0x18bbde['createPositionAt'](_0xa15db5,0x0)),_0x4d6c08['commands']['get']('removeTableColumn')['refresh'](),_0x4d6c08['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x9b5483=_0x368eae['filter'](_0xdf4972=>'$graveyard'!=_0xdf4972['root']['rootName']);_0x9b5483['length']>0x0&&_0x18bbde['setSelection'](_0x9b5483);for(const _0x142485 of _0x368eae)_0x142485['detach']();});}function _0xe88f90(_0xea120c,_0xf5b0bd){return _0xf5b0bd['every'](_0x55c98e=>_0xea120c['some'](_0x3ff374=>_0x3ff374['end']['isEqual'](_0x55c98e['start'])||_0x55c98e['end']['isEqual'](_0x3ff374['start'])));}function _0x39444e(_0xbff0b8,_0x52bbb5){return!_0xbff0b8['some'](_0x217597=>_0x52bbb5['some'](_0x30245b=>_0x217597['isIntersecting'](_0x30245b)))&&_0xbff0b8['some'](_0x34855c=>_0x52bbb5['some'](_0x2e3fad=>_0x34855c['end']['isTouching'](_0x2e3fad['start'])));}_0x4d6c08['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x43f642,_0x37acc4,_0x45f858)=>{if(!_0x45f858['options']['showSuggestionHighlights'])return;const _0x40c2d5=_0x37acc4['item'];if(!_0x40c2d5||!_0x40c2d5['is']('element','tableCell'))return;const _0x2b4c33=_0x45f858['mapper']['toViewElement'](_0x40c2d5);if(_0x2b4c33){const {id:_0x251325,authorId:_0x1d0bd9}=_0x842dc3['_splitMarkerName'](_0x37acc4['markerName']);_0x327007(_0x2b4c33,_0x45f858['writer'],(_0x1eb269,_0x3c4af1,_0x4bb04e)=>{_0x4bb04e['addClass'](_0x4eacd5(_0x3c4af1['classes']),_0x1eb269),_0x4bb04e['setAttribute']('data-suggestion-id',_0x251325,_0x1eb269),_0x4bb04e['setAttribute']('data-author-id',_0x1d0bd9,_0x1eb269);},(_0x205917,_0x57f5e2,_0xb48600)=>{_0xb48600['removeClass'](_0x4eacd5(_0x57f5e2['classes']),_0x205917),_0xb48600['removeAttribute']('data-suggestion-id',_0x205917),_0xb48600['removeAttribute']('data-author-id',_0x205917);});}},{'priority':'highest'}),_0x842dc3['descriptionFactory']['registerDescriptionCallback'](_0x40b97c=>{if('insertion'!=_0x40b97c['type']&&'deletion'!=_0x40b97c['type'])return;const _0x273780=_0x40b97c['getContainedElement']();if(null!=_0x273780&&_0x273780['is']('element','table')){if('insertion'==_0x40b97c['type']){const _0x4246bb=_0x40b97c['getItems']()['filter'](_0x11640e=>_0x11640e['is']('$textProxy'))['map'](_0x1ee3a1=>_0x1ee3a1['data']);if(_0x4246bb['length'])return{'type':'insertion','content':c(_0x28c53d,'*Insert:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4246bb['join']('\x20')+'\x22'))};}if('deletion'==_0x40b97c['type']){const _0x22a27f=_0x40b97c['getItems']()['filter'](_0x1b0580=>_0x1b0580['is']('$textProxy'))['map'](_0x496bf0=>_0x496bf0['data']);if(_0x22a27f['length'])return{'type':'deletion','content':c(_0x28c53d,'*Remove:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x22a27f['join']('\x20')+'\x22'))};}}}),_0x842dc3['descriptionFactory']['registerDescriptionCallback'](_0x58a94a=>{if('tableRow'==_0x58a94a['subType']){const _0x4745ed=_0x58a94a['getItems']()['filter'](_0x3d459e=>_0x3d459e['is']('$textProxy'))['map'](_0x31ed97=>_0x31ed97['data']),_0x392c18=this['_getSuggestionCoords'](_0x58a94a),_0x468543=_0x392c18['maxRow']-_0x392c18['minRow']+0x1;if('insertion'==_0x58a94a['type'])return _0x4745ed['length']?{'type':'insertion','content':c(_0x28c53d,'*Insert:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x468543,'\x22'+_0x4745ed['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x28c53d,'*Insert:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_ROW',_0x468543))};if('deletion'==_0x58a94a['type'])return _0x4745ed['length']?{'type':'deletion','content':c(_0x28c53d,'*Remove:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x468543,'\x22'+_0x4745ed['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x28c53d,'*Remove:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_ROW',_0x468543))};}if('tableColumn'==_0x58a94a['subType']){const _0x52cdee=_0x58a94a['getItems']()['filter'](_0x19959d=>_0x19959d['is']('$textProxy'))['map'](_0x2905a3=>_0x2905a3['data']),_0x494a74=this['_getSuggestionCoords'](_0x58a94a),_0x18b110=_0x494a74['maxColumn']-_0x494a74['minColumn']+0x1;if('insertion'==_0x58a94a['type'])return _0x52cdee['length']?{'type':'insertion','content':c(_0x28c53d,'*Insert:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x18b110,'\x22'+_0x52cdee['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x28c53d,'*Insert:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_COLUMN',_0x18b110))};if('deletion'==_0x58a94a['type'])return _0x52cdee['length']?{'type':'deletion','content':c(_0x28c53d,'*Remove:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x18b110,'\x22'+_0x52cdee['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x28c53d,'*Remove:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_COLUMN',_0x18b110))};}}),_0x842dc3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2b475a),_0x842dc3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2b475a),_0x842dc3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5ad008),_0x842dc3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5ad008),_0x842dc3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xe88f90),_0x842dc3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xe88f90),_0x842dc3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x39444e),_0x842dc3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x39444e);}['_acceptFormatSuggestionCallbackFactory'](){const _0xab19c4=this['editor'],_0xc06528=_0xab19c4['model']['document']['selection'];return(_0x218f9c,_0x47ab37)=>{_0xab19c4['model']['change'](_0x483f24=>{const {commandName:_0x41b8ca,commandParams:_0x1a49c3}=_0x47ab37;let _0x2ec68b=_0x218f9c[0x0]['end']['nodeBefore'];_0x1a49c3&&_0x1a49c3[0x0]&&!0x1===_0x1a49c3[0x0]['forceValue']&&(_0x2ec68b=_0x218f9c[0x0]['start']['nodeAfter']);const _0x3491b2=_0x483f24['createRangeIn'](_0x2ec68b);if('$graveyard'==_0x3491b2['root']['rootName'])return;const _0x355fbf=Array['from'](_0xc06528['getRanges']())['map'](_0x5e6221=>_0x34c04c['fromRange'](_0x5e6221));_0x483f24['setSelection'](_0x3491b2),_0xab19c4['commands']['get'](_0x41b8ca)['refresh'](),_0x1a49c3['push']({'forceDefaultExecution':!0x0}),_0xab19c4['execute'](_0x41b8ca,..._0x1a49c3);const _0x41399b=_0x355fbf['filter'](_0x41f0d9=>'$graveyard'!=_0x41f0d9['root']['rootName']);_0x41399b['length']>0x0&&_0x483f24['setSelection'](_0x41399b);for(const _0x52dc6e of _0x355fbf)_0x52dc6e['detach']();});};}['_getCoordsForCells'](_0x1935e7){const _0x58f912=this['editor']['plugins']['get']('TableUtils');let _0x41e51d=Number['MAX_SAFE_INTEGER'],_0x5f031d=Number['MIN_SAFE_INTEGER'],_0x48c3a3=Number['MAX_SAFE_INTEGER'],_0x1ec546=Number['MIN_SAFE_INTEGER'];for(const _0x381ffa of _0x1935e7){if('$graveyard'==_0x381ffa['root']['rootName'])continue;const {row:_0x38e203,column:_0x36af23}=_0x58f912['getCellLocation'](_0x381ffa),_0x471df1=_0x381ffa['hasAttribute']('rowspan')?_0x381ffa['getAttribute']('rowspan')-0x1:0x0,_0x74f143=_0x381ffa['hasAttribute']('colspan')?_0x381ffa['getAttribute']('colspan')-0x1:0x0;_0x41e51d=_0x38e203<_0x41e51d?_0x38e203:_0x41e51d,_0x5f031d=_0x38e203+_0x471df1>_0x5f031d?_0x38e203+_0x471df1:_0x5f031d,_0x48c3a3=_0x36af23<_0x48c3a3?_0x36af23:_0x48c3a3,_0x1ec546=_0x36af23+_0x74f143>_0x1ec546?_0x36af23+_0x74f143:_0x1ec546;}return{'minRow':_0x41e51d,'maxRow':_0x5f031d,'minColumn':_0x48c3a3,'maxColumn':_0x1ec546};}['_setupColumnsRowsFixing'](){const _0x5e12bc=this['editor'],_0x4d03d8=_0x5e12bc['plugins']['get']('TrackChangesEditing'),_0x59f01d=_0x5e12bc['plugins']['get']('TableUtils');_0x5e12bc['model']['document']['on']('change:data',()=>{const _0x478286=Array['from'](_0x5e12bc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x15e764,data:_0x12b0c1}of _0x478286){const {group:_0x29de4a,id:_0x318e76,subType:_0x3f5e18}=_0x4d03d8['_splitMarkerName'](_0x15e764);if('suggestion'!=_0x29de4a)continue;if(null!=_0x12b0c1['oldRange'])continue;const _0x107e72=_0x4d03d8['getSuggestion'](_0x318e76);this['_tablePostFixingSubtypes']['includes'](_0x3f5e18)&&this['_tableSuggestions']['add'](_0x107e72);}},{'priority':'low'});const _0x5ac15c=(_0x5046d0,_0x40be4f)=>{let _0x4e4c58=!0x1;const _0x49256f=_0x40be4f['createRangeOn'](_0x5046d0),_0x5b4815=_0x5046d0['findAncestor']('table'),_0x169b7e=_0x59f01d['getCellLocation'](_0x5046d0);for(const _0x16cce4 of this['_tableSuggestions']){const _0x10abcc=_0x16cce4['subType'],_0x195d38=_0x10abcc['startsWith']('tablePaste'),_0x2324af=_0x10abcc['substr'](_0x195d38?0xa:0x5),_0x22abf7=_0x2324af['toLowerCase'](),_0x338761=_0x22abf7['substr'](0x0,0x3)+'span',_0x381526='min'+_0x2324af,_0x25dead='max'+_0x2324af;if(!_0x16cce4['isInContent'])continue;if(_0x5b4815!=_0x16cce4['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x16cce4['isIntersectingWithRange'](_0x49256f))continue;const _0x28255e=_0x5046d0['hasAttribute'](_0x338761)?_0x5046d0['getAttribute'](_0x338761)-0x1:0x0,_0x52e266=this['_getSuggestionCoords'](_0x16cce4),_0x275e37=_0x52e266[_0x381526],_0x2e4dcc=_0x52e266[_0x25dead];_0x275e37<=_0x169b7e[_0x22abf7]&&_0x169b7e[_0x22abf7]+_0x28255e<=_0x2e4dcc&&(_0x16cce4['addRange'](_0x49256f),_0x4e4c58=!0x0);}return _0x4e4c58;};_0x5e12bc['model']['document']['registerPostFixer'](_0x10c2f0=>{let _0x25c72e=!0x1;for(const _0x3963d8 of _0x5e12bc['model']['document']['differ']['getChanges']())if('insert'==_0x3963d8['type']){if('tableRow'==_0x3963d8['name']){for(const _0x236cc7 of _0x3963d8['position']['nodeAfter']['getChildren']())_0x25c72e=_0x25c72e||_0x5ac15c(_0x236cc7,_0x10c2f0);}else'tableCell'==_0x3963d8['name']&&(_0x25c72e=_0x25c72e||_0x5ac15c(_0x3963d8['position']['nodeAfter'],_0x10c2f0));}return _0x25c72e;});}['_getSuggestionCoords'](_0x19cf82){return this['_getCoordsForCells'](_0x19cf82['getRanges']()['map'](_0x4747af=>_0x4747af['start']['nodeAfter']));}}function xe(_0x5f3a81){return Array['from'](new Set(_0x5f3a81)['values']());}class Nt extends _0x5575fe{static get['requires'](){return[Ct];}['afterInit'](){const _0x3ff2f0=this['editor'],_0xa18365=_0x3ff2f0['model']['document']['selection'],_0x4cb285=_0x3ff2f0['locale'];if(!_0x3ff2f0['plugins']['has']('TableEditing'))return;const _0x379d75=_0x3ff2f0['plugins']['get']('TrackChangesEditing'),_0x470a21=_0x3ff2f0['plugins']['get']('TableUtils'),_0x28df5f=_0x3ff2f0['plugins']['get'](Ct);_0x28df5f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x379d75['enableCommand']('mergeTableCells',()=>{const _0x63dc43=_0x470a21['getSelectionAffectedTableCells'](_0x3ff2f0['model']['document']['selection']);_0x3ff2f0['model']['change'](()=>{_0x379d75['markMultiRangeBlockFormat'](_0x63dc43,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3ff2f0['commands']['get']('mergeTableCells')['on']('execute',(_0x5c89ec,_0x43cf82)=>{_0x3ff2f0['commands']['get']('trackChanges')['value']&&(_0x43cf82['length']>0x0&&_0x43cf82[_0x43cf82['length']-0x1]&&_0x43cf82[_0x43cf82['length']-0x1]['forceDefaultExecution']||_0x379d75['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5c89ec['stop']());},{'priority':'highest'});for(const _0x4751b2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4e20e7=_0x3ff2f0['commands']['get'](_0x4751b2);_0x379d75['enableCommand'](_0x4751b2,()=>{const _0x2bec2d=_0x3ff2f0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3d2c8c=>_0x3d2c8c['is']('element','tableCell')),_0x121ab9=_0x4e20e7['value'];_0x3ff2f0['model']['change'](()=>{_0x379d75['markMultiRangeBlockFormat']([_0x2bec2d,_0x121ab9],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3ed46e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x230f48=_0x3ff2f0['commands']['get'](_0x3ed46e);_0x379d75['enableCommand'](_0x3ed46e,()=>{const _0x1b7feb=_0x470a21['getSelectionAffectedTableCells'](_0x3ff2f0['model']['document']['selection'])[0x0],_0x2cad96=_0x1b7feb['findAncestor']('table'),{column:_0x83c844,row:_0x54ad96}=_0x470a21['getCellLocation'](_0x1b7feb);let _0x56cfcf=[];if('horizontally'==_0x230f48['direction']){const _0x30c8cf=_0x470a21['createTableWalker'](_0x2cad96,{'startRow':_0x54ad96,'endRow':_0x54ad96,'includeAllSlots':!0x0});_0x56cfcf=Array['from'](_0x30c8cf)['map'](_0x5de9bd=>_0x5de9bd['cell']);}else{const _0x3dfe09=_0x470a21['createTableWalker'](_0x2cad96,{'column':_0x83c844,'includeAllSlots':!0x0});_0x56cfcf=Array['from'](_0x3dfe09)['map'](_0x42b707=>_0x42b707['cell']);}_0x3ff2f0['model']['change'](_0x112ba7=>{_0x379d75['markBlockFormat'](_0x112ba7['createRangeOn'](_0x1b7feb),{'commandName':_0x3ed46e,'commandParams':[]},_0x56cfcf,_0x3ed46e);});});}_0x379d75['descriptionFactory']['registerDescriptionCallback'](_0x51c779=>{if('formatBlock'!=_0x51c779['type']&&'formatInline'!=_0x51c779['type'])return;const {data:_0x85c42e}=_0x51c779;return _0x85c42e&&'mergeTableCells'==_0x85c42e['commandName']?{'type':'format','content':c(_0x4cb285,'*Merge\x20cells*')}:void 0x0;}),_0x379d75['descriptionFactory']['registerDescriptionCallback'](_0x427dfd=>{if('formatBlock'!=_0x427dfd['type']&&'formatInline'!=_0x427dfd['type'])return;const {data:_0x34d922}=_0x427dfd;return _0x34d922?'splitTableCellVertically'==_0x34d922['commandName']?{'type':'format','content':c(_0x4cb285,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x34d922['commandName']?{'type':'format','content':c(_0x4cb285,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x38052e=_0x28df5f['_acceptFormatSuggestionCallbackFactory']();for(const _0x3ead21 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x379d75['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3ead21,'accept',_0x38052e);for(const _0x5a93d8 of['splitTableCellVertically','splitTableCellHorizontally'])_0x379d75['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5a93d8,'accept',_0x38052e);_0x379d75['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1107a0=>{_0x3ff2f0['model']['change'](_0x5af44b=>{const _0x16bab3=Array['from'](_0xa18365['getRanges']())['map'](_0x53694a=>_0x34c04c['fromRange'](_0x53694a));_0x5af44b['setSelection'](_0x1107a0),_0x3ff2f0['commands']['get']('mergeTableCells')['refresh'](),_0x3ff2f0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2c6f70=_0x16bab3['filter'](_0x2da3bb=>'$graveyard'!=_0x2da3bb['root']['rootName']);_0x2c6f70['length']>0x0&&_0x5af44b['setSelection'](_0x2c6f70);for(const _0x2daac2 of _0x16bab3)_0x2daac2['detach']();});});for(const _0x3b2a13 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x28ae02=_0x3ff2f0['commands']['get'](_0x3b2a13);_0x28ae02['on']('set:isEnabled',(_0x374656,_0x1f6b7a,_0x2c6ee3)=>{if(_0x2c6ee3){const _0x578127=_0x3ff2f0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x18422e=>_0x18422e['is']('element','tableCell'));this['_areMergableCells'](_0x28ae02['value'],_0x578127)||(_0x374656['return']=!0x1,_0x374656['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x396382=this['editor']['commands']['get']('mergeTableCells'),_0x350797=this['editor']['plugins']['get']('TableUtils');if(!_0x396382['isEnabled'])return!0x1;const _0x32abdc=_0x350797['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x432745 of _0x32abdc)for(const _0x12fce0 of _0x32abdc)if(_0x432745!=_0x12fce0&&!this['_areMergableCells'](_0x432745,_0x12fce0))return!0x1;return!0x0;}['_areMergableCells'](_0x361524,_0x5128ab){const _0x34f96c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44d5e1=this['editor']['model']['createRangeOn'](_0x361524),_0x4a9baa=this['editor']['model']['createRangeOn'](_0x5128ab),_0x51034d=new Set(),_0x37e316=new Set();for(const _0xc66770 of _0x34f96c['getSuggestions']())if(('insertion'==_0xc66770['type']||'deletion'==_0xc66770['type']||'mergeTableCells'==_0xc66770['subType'])&&_0xc66770['isInContent']){for(const _0x3b441d of _0xc66770['getRanges']())_0x3b441d['containsRange'](_0x44d5e1,!0x0)&&_0x51034d['add'](_0xc66770['type']+':'+_0xc66770['author']['id']),_0x3b441d['containsRange'](_0x4a9baa,!0x0)&&_0x37e316['add'](_0xc66770['type']+':'+_0xc66770['author']['id']);}if(_0x51034d['size']!=_0x37e316['size'])return!0x1;for(const _0x43ae0b of _0x51034d)if(!_0x37e316['has'](_0x43ae0b))return!0x1;return!0x0;}}class Dt extends _0x5575fe{static get['requires'](){return[Ct];}['afterInit'](){const _0x1de52d=this['editor'];if(!_0x1de52d['plugins']['has']('TableEditing'))return;const _0x15f982=_0x1de52d['locale'],_0x8bbe00=_0x1de52d['plugins']['get']('TrackChangesEditing');_0x8bbe00['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x8bbe00['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x8bbe00['registerBlockAttribute']('headingRows'),_0x8bbe00['registerBlockAttribute']('headingColumns'),_0x8bbe00['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x15f982,'FORMAT_HEADER_ROW')),_0x8bbe00['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x15f982,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xc76a4a=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb049c1=this['editor']['plugins']['get']('TableUtils'),_0x1a0866=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0xb9ede5({showActiveMarker:_0x3fa273=!0x0,setDataAttribute:_0xd1f99c=!0x0}={}){return(_0x1947ba,_0xcc416b,_0x5c287c)=>{const {type:_0x51bb06,id:_0x389a9b}=_0xc76a4a['_splitMarkerName'](_0xcc416b['markerName']),_0x237744=_0xc76a4a['getSuggestion'](_0x389a9b),_0x34b274=_0x237744['data'];if('formatBlock'!=_0x237744['type']||!_0x34b274||'setTableColumnHeader'!=_0x34b274['commandName'])return;if(_0xcc416b['item'])return void _0x1947ba['stop']();if(!_0x5c287c['consumable']['consume'](_0xcc416b['markerRange'],_0x1947ba['name']))return;const _0x1aa78e=_0xcc416b['markerRange']['start']['nodeAfter'],_0x20dffd=_0xcc416b['markerRange']['end']['nodeBefore'],_0x5d32e8=_0x1aa78e['parent']['parent'],{column:_0x31b877}=_0xb049c1['getCellLocation'](_0x1aa78e),{column:_0x305466}=_0xb049c1['getCellLocation'](_0x20dffd);for(let _0x3c30c3=_0x31b877;_0x3c30c3<=_0x305466;_0x3c30c3++){const _0x529dfb=_0xb049c1['createTableWalker'](_0x5d32e8,{'column':_0x3c30c3,'includeAllSlots':!0x1});for(const _0x1f57f5 of _0x529dfb){const _0x306983=_0x1f57f5['cell'],_0x4c1d3e=_0x5c287c['mapper']['toViewElement'](_0x306983);_0x5c287c['writer']['addClass']('ck-suggestion-marker-'+_0x51bb06,_0x4c1d3e),_0xd1f99c&&_0x5c287c['writer']['setAttribute']('data-suggestion',_0x389a9b,_0x4c1d3e),_0x5c287c['mapper']['bindElementToMarker'](_0x4c1d3e,_0xcc416b['markerName']),_0x3fa273&&(_0xc76a4a['activeMarkers']['includes'](_0xcc416b['markerName'])?_0x5c287c['writer']['addClass']('ck-suggestion-marker--active',_0x4c1d3e):_0x5c287c['writer']['removeClass']('ck-suggestion-marker--active',_0x4c1d3e));}}};}_0xc76a4a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1a0866),_0xc76a4a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1a0866),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xb9ede5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x34e9e8,_0x1dbec4,_0x27cadf)=>{_0x27cadf['options']['showSuggestionHighlights']&&_0xb9ede5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x34e9e8,_0x1dbec4,_0x27cadf);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5a65ee,_0x4e6e63,_0x4c22d3)=>{const {type:_0x297ebd,id:_0x4d87cc}=_0xc76a4a['_splitMarkerName'](_0x4e6e63['markerName']),_0x1154d7=_0xc76a4a['getSuggestion'](_0x4d87cc),_0x48bce0=_0x1154d7['data'];if('formatBlock'!=_0x1154d7['type']||!_0x48bce0||'setTableColumnHeader'!=_0x48bce0['commandName'])return;const _0x38fbae=_0x4c22d3['mapper']['markerNameToElements'](_0x4e6e63['markerName']);if(_0x38fbae){for(const _0x1f025c of _0x38fbae)_0x4c22d3['writer']['removeClass']('ck-suggestion-marker-'+_0x297ebd,_0x1f025c),_0x4c22d3['writer']['removeClass']('ck-suggestion-marker--active',_0x1f025c),_0x4c22d3['writer']['removeAttribute']('data-suggestion',_0x1f025c),_0x4c22d3['mapper']['unbindElementFromMarkerName'](_0x1f025c,_0x4e6e63['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d166d=this['editor'],_0x4846ba=_0x5d166d['locale'];function _0x258f05(_0x20887f){return{'type':'format','content':c(_0x4846ba,'*Format:*\x20%0',_0x20887f)};}_0x5d166d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48f4f8=>{if('formatBlock'!=_0x48f4f8['type'])return;const {data:_0x1c90fb}=_0x48f4f8;if(_0x1c90fb){if('setTableRowHeader'==_0x1c90fb['commandName']){const _0x1cc09d=_0x1c90fb['commandParams'][0x0]['forceValue'];return _0x258f05(c(_0x4846ba,_0x1cc09d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1c90fb['commandName']){const _0x1c7f2a=_0x1c90fb['commandParams'][0x0]['forceValue'];return _0x258f05(c(_0x4846ba,_0x1c7f2a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x5575fe{['afterInit'](){const _0x45bbc0=this['editor'],_0x52aa6d=_0x45bbc0['locale'],_0x15a6df=_0x45bbc0['plugins']['get']('TrackChangesEditing');function _0x2cdc0c(_0x1d4977){return{'type':'format','content':''+c(_0x52aa6d,'*Set\x20table\x20type:*\x20%0',_0x1d4977)};}_0x45bbc0['plugins']['has']('TableLayout')&&(_0x15a6df['enableCommand']('insertTableLayout'),_0x15a6df['enableDefaultAttributesIntegration']('tableType'),_0x15a6df['registerBlockAttribute']('tableType'),_0x15a6df['descriptionFactory']['registerElementLabel'](_0x16624d=>_0x16624d['is']('element','table')&&'layout'===_0x16624d['getAttribute']('tableType'),_0x4532a7=>c(_0x52aa6d,'ELEMENT_LAYOUT_TABLE',_0x4532a7)),_0x15a6df['descriptionFactory']['registerDescriptionCallback'](_0x2a1387=>{const {data:_0x3e3ba1}=_0x2a1387;if(_0x3e3ba1&&'tableType'==_0x3e3ba1['key'])switch(_0x3e3ba1['newValue']){case'layout':return _0x2cdc0c(c(_0x52aa6d,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2cdc0c(c(_0x52aa6d,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0xa7cc47=>[_0xa7cc47,null]));class $t extends _0x5575fe{static get['requires'](){return[Ct];}['afterInit'](){const _0x166766=this['editor'];if(!_0x166766['plugins']['has']('TableClipboard'))return;const _0x55b53d=_0x166766['plugins']['get']('TrackChangesEditing'),_0x262ffc=_0x166766['plugins']['get']('TableUtils'),_0x4f5fc0=_0x166766['plugins']['get'](Ct),_0x1b141a=_0x166766['plugins']['get']('TableClipboard'),_0xdcb16b=_0x166766['plugins']['get']('TableSelection'),_0x59e247=_0x166766['plugins']['get'](_0x3243fa);_0x4f5fc0['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x166766['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x166766['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1b065e=null,_0x5e1145=!0x1;_0x59e247['on']('contentInsertion',(_0xf948fe,_0x1a7fda)=>{_0x5e1145='paste'===_0x1a7fda['method'];}),_0x166766['model']['on']('insertContent',(_0x60e9ab,_0x5b62ca)=>{if(!_0x5e1145&&null===_0xdcb16b['getSelectedTableCells']())return;const [_0x55d146,_0x12af87]=_0x5b62ca,_0xf056ae=_0x5b62ca[_0x5b62ca['length']-0x1];_0xf056ae&&_0xf056ae['forceDefaultExecution']||_0x55b53d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1e6236,_0x1c2864,_0x36431a,_0x5473bb,_0x4ec53a){if(_0x1c2864&&!_0x1c2864['is']('documentSelection'))return!0x1;const _0x457bc8=_0x4ec53a['getTableIfOnlyTableInContent'](_0x1e6236,_0x36431a);if(!_0x457bc8||!He(_0x457bc8,void 0x0,_0x5473bb))return!0x1;const _0x5e84f2=_0x5473bb['getSelectionAffectedTableCells'](_0x36431a['document']['selection']);if(!_0x5e84f2['length'])return!0x1;const _0x57be27=_0x5e84f2[0x0]['findAncestor']('table'),_0x536c8e=_0x5473bb['getRowIndexes'](_0x5e84f2),_0x2d890a=_0x5473bb['getColumnIndexes'](_0x5e84f2),_0x120028={'startRow':_0x536c8e['first'],'endRow':_0x536c8e['last'],'startColumn':_0x2d890a['first'],'endColumn':_0x2d890a['last']};return 0x1==_0x5e84f2['length']&&(_0x120028['endRow']+=_0x5473bb['getRows'](_0x457bc8)-0x1,_0x120028['endColumn']+=_0x5473bb['getColumns'](_0x457bc8)-0x1),He(_0x57be27,_0x120028,_0x5473bb);}(_0x55d146,_0x12af87,_0x166766['model'],_0x262ffc,_0x1b141a)&&(_0x60e9ab['stop'](),_0x1b065e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x166766['model']['change'](()=>{_0x166766['model']['insertContent'](_0x5b62ca[0x0],_0x5b62ca[0x1],_0x5b62ca[0x2],{'forceDefaultExecution':!0x0});const _0x309842=_0x1526c3(),{rowInsertionRanges:_0x18b361,columnInsertionRanges:_0x1ed870,insertionRanges:_0x7bdfda,deletionRanges:_0x47695c,cells:_0x21b7ad}=_0x1b065e;_0x18b361['length']&&_0x55b53d['markMultiRangeInsertion'](_0x18b361,'tablePasteRow',{'tablePasteChainId':_0x309842}),_0x1ed870['length']&&_0x55b53d['markMultiRangeInsertion'](_0x1ed870,'tablePasteColumn',{'tablePasteChainId':_0x309842}),_0x7bdfda['length']&&(_0x55b53d['markMultiRangeInsertion'](_0x7bdfda,'tablePaste',{'tablePasteChainId':_0x309842,'skipNestingCheck':!0x0}),_0x7bdfda['forEach'](_0x52d44c=>_0x52d44c['detach']?.())),_0x47695c['length']&&(_0x55b53d['markMultiRangeDeletion'](_0x47695c,'tablePaste',{'tablePasteChainId':_0x309842,'skipNestingCheck':!0x0}),_0x47695c['forEach'](_0x4a644f=>_0x4a644f['detach']?.()));const _0x4332de=_0x55b53d['markMultiRangeBlockFormat'](_0x21b7ad['map'](({element:_0x5cc752})=>_0x5cc752),{'formatGroupId':_0x1526c3()},[],'tablePasteCell',{'tablePasteChainId':_0x309842});if(_0x4332de){const _0x4afa78=_0x4332de['getMarkers'](),_0x567789=[];for(const {element:_0x1a5a4e,attributes:_0x30fa37}of _0x21b7ad){if(!_0x30fa37)continue;const _0x183cc3=_0x166766['model']['createRangeOn'](_0x1a5a4e),_0x7c1c60=_0x4afa78['find'](_0x523187=>_0x523187['getRange']()['isEqual'](_0x183cc3));_0x7c1c60&&_0x567789['push']([_0x7c1c60['name'],_0x30fa37]);}_0x567789['length']&&_0x4332de['setAttribute']('markerAttributes',Object['fromEntries'](_0x567789));}_0x1b065e=null;}));},{'priority':_0x2dda8a['high']+0xa}),_0x59e247['on']('contentInsertion',()=>{_0x5e1145=!0x1;},{'priority':'lowest'}),_0x166766['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x19d8af,_0x28b634)=>{const [_0x54e86a,_0x25d7be,,_0x1f359d]=_0x28b634;if(!_0x1b065e)return;_0x19d8af['stop']();const _0x850b91=_0x54e86a['cell'],_0x24901d=_0x25d7be,_0x4fd871=De(_0x850b91),_0x3d8c0f=De(_0x24901d);_0x19d8af['return']=_0x850b91;let _0x21c3b7=null,_0x42b4b8=null;if(_0x3d8c0f||_0x4fd871){if(_0x4fd871&&!_0x3d8c0f){_0x1f359d['remove'](_0x850b91['getChild'](0x0));for(const _0x3b0acb of Array['from'](_0x24901d['getChildren']()))_0x1f359d['insert'](_0x3b0acb,_0x850b91,'end');const _0x5a2164=_0x1b065e['rowInsertionIndexes']['includes'](_0x54e86a['row']),_0x455137=_0x1b065e['columnInsertionIndexes']['includes'](_0x54e86a['column']);_0x5a2164||_0x455137||(_0x21c3b7=_0x34c04c['fromRange'](_0x1f359d['createRangeIn'](_0x850b91)));}else _0x3d8c0f&&!_0x4fd871&&(_0x42b4b8=_0x1f359d['createRangeIn'](_0x850b91));}else{const _0x2d5d5b=_0x1f359d['createElement']('tableCellSuggestion'),_0x3f3d15=_0x1f359d['createElement']('tableCellSuggestion');_0x1f359d['wrap'](_0x1f359d['createRangeIn'](_0x850b91),_0x3f3d15),_0x1f359d['insert'](_0x2d5d5b,_0x850b91,0x0);for(const _0x239b5e of Array['from'](_0x24901d['getChildren']()))_0x1f359d['insert'](_0x239b5e,_0x2d5d5b,'end');_0x21c3b7=_0x34c04c['fromRange'](_0x1f359d['createRangeOn'](_0x2d5d5b)),_0x42b4b8=_0x34c04c['fromRange'](_0x1f359d['createRangeOn'](_0x3f3d15));}const _0x2e607e=Array['from'](_0x24901d['getAttributes']())['filter'](([_0x557ca4])=>Oe['includes'](_0x557ca4));_0x1b065e['cells']['push']({'element':_0x850b91,'attributes':_0x2e607e['length']?Object['fromEntries'](_0x2e607e):null}),_0x21c3b7&&_0x1b065e['insertionRanges']['push'](_0x21c3b7),_0x42b4b8&&_0x1b065e['deletionRanges']['push'](_0x42b4b8);},{'priority':'high'}),_0x262ffc['on']('insertColumns',(_0x50cd20,_0x15bb68)=>{const [_0x449e8d,_0x385011={}]=_0x15bb68;if(!_0x1b065e)return;const _0x1dbcc5=_0x385011['at']||0x0,_0x482160=_0x385011['columns']||0x1;_0x1b065e['columnInsertionIndexes']=new Array(_0x482160)['fill'](_0x1dbcc5)['map']((_0x4d5512,_0x2a63e6)=>_0x4d5512+_0x2a63e6);for(const {cell:_0x4cecfc}of _0x262ffc['createTableWalker'](_0x449e8d,{'startColumn':_0x1dbcc5,'endColumn':_0x1dbcc5+_0x482160-0x1}))_0x1b065e['columnInsertionRanges']['push'](_0x166766['model']['createRangeOn'](_0x4cecfc));},{'priority':'low'}),_0x262ffc['on']('insertRows',(_0x472e47,_0x1ca9a6)=>{const [_0x224bf0,_0x16af0b={}]=_0x1ca9a6;if(!_0x1b065e)return;const _0x234b03=_0x16af0b['at']||0x0,_0x41b0c3=_0x16af0b['rows']||0x1;_0x1b065e['rowInsertionIndexes']=new Array(_0x41b0c3)['fill'](_0x234b03)['map']((_0x57afbc,_0x2c5933)=>_0x57afbc+_0x2c5933);for(const {cell:_0x168e89}of _0x262ffc['createTableWalker'](_0x224bf0,{'startRow':_0x234b03,'endRow':_0x234b03+_0x41b0c3-0x1}))_0x1b065e['rowInsertionRanges']['push'](_0x166766['model']['createRangeOn'](_0x168e89));},{'priority':'low'}),_0x55b53d['descriptionFactory']['registerDescriptionCallback'](_0x482919=>{if(_0x482919['subType']&&_0x482919['subType']['startsWith']('tablePaste'))return _0x482919['previous']?{}:{'type':'insertion','content':c(_0x166766['locale'],'*Replace\x20table\x20cells*')};});const _0x51e950=()=>!0x1;for(const _0xe9e880 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x55b53d['_suggestionFactory']['registerCustomCallback']('insertion',_0xe9e880,'join',_0x51e950),_0x55b53d['_suggestionFactory']['registerCustomCallback']('deletion',_0xe9e880,'join',_0x51e950),_0x55b53d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xe9e880,'join',_0x51e950);_0x55b53d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x51e950),_0x55b53d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xa1ecae,_0x5596fd,_0x5d56a1)=>{const _0x4c057d=_0xa1ecae['map'](_0x2afba7=>_0x2afba7['getContainedElement']())['filter'](_0x1bfc4c=>_0x1bfc4c),_0x3fd59e=new Map(_0x4c057d['map'](_0xf5f043=>[_0xf5f043,null]));if(_0x1b065e){for(const {element:_0x4fc942,attributes:_0x25f4dd}of _0x1b065e['cells'])_0x25f4dd&&_0x3fd59e['set'](_0x4fc942,_0x25f4dd);}else{if(_0x5d56a1&&_0x5d56a1['markerAttributes'])for(const [_0x3cfba8,_0x12365e]of Object['entries'](_0x5d56a1['markerAttributes'])){const _0x21c29b=_0x166766['model']['markers']['get'](_0x3cfba8),_0x8b0a03=_0x21c29b?_0x21c29b['getRange']()['getContainedElement']():null;_0x8b0a03&&_0x3fd59e['set'](_0x8b0a03,_0x12365e);}}_0x166766['model']['change'](_0x3fa579=>{for(const [_0x3b6f05,_0x34f2c5]of _0x3fd59e)_0x3fa579['setAttributes']({...Ue,..._0x34f2c5},_0x3b6f05);});});const _0x130920=(_0x388d72,_0x4a1e93)=>{_0x55b53d['_suggestionFactory']['registerCustomCallback'](_0x388d72,'tablePaste',_0x4a1e93,(_0x1d5664,_0x46d005,_0x51917f)=>{_0x166766['model']['change'](_0xef3054=>{const _0x530470=[];for(const _0x37e5ab of _0x1d5664){const _0x31650e=_0x37e5ab['start']['nodeAfter'];_0x31650e['is']('element','tableCellSuggestion')&&_0x530470['push'](_0x31650e);}_0x55b53d['_suggestionFactory']['getSuggestionCallback'](_0x388d72,null,_0x4a1e93)(_0x1d5664,_0x46d005,_0x51917f);for(const _0x36b73b of _0x530470)'$graveyard'!=_0x36b73b['root']['rootName']&&_0xef3054['unwrap'](_0x36b73b);});});};_0x130920('insertion','accept'),_0x130920('insertion','discard'),_0x130920('deletion','accept'),_0x130920('deletion','discard'),_0x55b53d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x278f07=>{const _0x5183c9=_0x278f07['map'](_0x53405a=>_0x53405a['getContainedElement']()),_0x520731=_0x5183c9[0x0]['findAncestor']('table'),{minRow:_0xe22c91,maxRow:_0x322f91}=_0x4f5fc0['_getCoordsForCells'](_0x5183c9);_0x262ffc['removeRows'](_0x520731,{'at':_0xe22c91,'rows':_0x322f91-_0xe22c91+0x1});}),_0x55b53d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x275a9c=>{const _0x51627e=_0x275a9c['map'](_0x3d16fd=>_0x3d16fd['getContainedElement']()),_0x610b61=_0x51627e[0x0]['findAncestor']('table'),{minColumn:_0x3314fb,maxColumn:_0x3f742d}=_0x4f5fc0['_getCoordsForCells'](_0x51627e);_0x262ffc['removeColumns'](_0x610b61,{'at':_0x3314fb,'columns':_0x3f742d-_0x3314fb+0x1});});const _0x53b5f6=(_0x13cd22,_0x4d94cd)=>{if(!_0x4d94cd['subType']||!_0x4d94cd['subType']['startsWith']('tablePaste'))return;const _0x2fb251=_0x4d94cd['attributes']['tablePasteChainId'],_0x275ec1=_0x55b53d['getSuggestions']()['filter'](_0x34ae05=>_0x34ae05['isInContent']&&_0x34ae05['attributes']&&_0x34ae05['attributes']['tablePasteChainId']==_0x2fb251);_0x275ec1['length']&&_0x4d94cd['getAllAdjacentSuggestions']()['length']!=_0x275ec1['length']&&_0x275ec1['reduce']((_0x55f64c,_0x17e1b8)=>(_0x55f64c['next']=_0x17e1b8,_0x17e1b8['previous']=_0x55f64c,_0x17e1b8));};function _0x376b39(_0x2477e6,_0x236493=!0x0){const {id:_0x439943,authorId:_0x4ee001}=_0x55b53d['_splitMarkerName'](_0x2477e6['markerName']),_0x533fbc=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1b1eaa=_0x55b53d['activeMarkers']['includes'](_0x2477e6['markerName']);return _0x1b1eaa&&_0x533fbc['push']('ck-suggestion-marker--active'),{'classes':_0x533fbc,'attributes':{'data-suggestion':_0x439943,'data-author-id':_0x4ee001},'priority':_0x1b1eaa&&_0x236493?0xbc2:0xbb8};}_0x55b53d['on']('suggestionLoaded',_0x53b5f6,{'priority':'high'}),_0x55b53d['on']('suggestionUnloaded',_0x53b5f6,{'priority':'high'}),_0x166766['model']['document']['registerPostFixer'](()=>{let _0x347736=!0x1;const _0x13ad23=Array['from'](_0x166766['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4227b2,data:_0x17e842}of _0x13ad23){const {group:_0x3b40b3,type:_0x586a17,id:_0x143798}=_0x55b53d['_splitMarkerName'](_0x4227b2);if('suggestion'!=_0x3b40b3||'deletion'!=_0x586a17||_0x17e842['oldRange'])continue;if(!_0x55b53d['hasSuggestion'](_0x143798))continue;const _0xbecd4a=_0x55b53d['getSuggestion'](_0x143798)['getRanges'](),_0x1edb19=_0x166766['plugins']['get']('Users')['me'];for(const _0x1e66b5 of _0x55b53d['getSuggestions']()){if(!_0x1e66b5['isInContent']||_0x1e66b5['author']!=_0x1edb19)continue;if('formatBlock'!=_0x1e66b5['type']||'tablePasteCell'!=_0x1e66b5['subType'])continue;if(_0x1e66b5['getRanges']()['every'](_0xcdba6b=>_0xbecd4a['some'](_0x467a2f=>_0x467a2f['containsRange'](_0xcdba6b,!0x0)))){for(const _0x5410b7 of _0x1e66b5['getAllAdjacentSuggestions']())_0x5410b7['isInContent']&&(_0x5410b7['discard'](),_0x347736=!0x0);}}}return _0x347736;}),_0x166766['model']['document']['registerPostFixer'](_0x501a80=>{const _0xe94221=_0x166766['commands']['get']('redo');if(!_0xe94221||!_0xe94221['_createdBatches']['has'](_0x501a80['batch']))return!0x1;let _0x624ae0=!0x1;const _0x494ee4=_0x166766['plugins']['get']('Users')['me'],_0x5b5487=_0x166766['model']['document']['differ']['getChanges'](),_0x121ec7=Array['from'](_0x166766['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x54624f,data:_0x293242})=>{const {group:_0x896303,subType:_0x446db4,authorId:_0x4b7281}=_0x55b53d['_splitMarkerName'](_0x54624f);return'suggestion'==_0x896303&&'tablePaste'==_0x446db4&&_0x4b7281==_0x494ee4['id']&&!_0x293242['oldRange'];});for(const _0x33e4ce of _0x5b5487){if('insert'!=_0x33e4ce['type']||'tableCellSuggestion'!=_0x33e4ce['name']||0x1!=_0x33e4ce['length'])continue;const _0x3388fe=_0x501a80['createRange'](_0x33e4ce['position'],_0x33e4ce['position']['getShiftedBy'](0x1));if(!_0x121ec7['find'](({data:_0x5d8ad6})=>_0x5d8ad6['newRange']['isEqual'](_0x3388fe))){for(const {name:_0x409b6f,data:_0x4d90bc}of _0x121ec7)if(_0x3388fe['containsRange'](_0x4d90bc['newRange'])){_0x501a80['updateMarker'](_0x409b6f,{'range':_0x3388fe}),_0x624ae0=!0x0;break;}}}return _0x624ae0;}),_0x166766['model']['document']['registerPostFixer'](_0xef5386=>{let _0x359c5d=!0x1;const _0x1ed13a=_0x166766['plugins']['get']('Users')['me'],_0x223287=_0x55b53d['getSuggestions']()['filter'](_0x5a6bd6=>_0x5a6bd6['isInContent']&&_0x5a6bd6['author']==_0x1ed13a),_0x386d1c=new Set(),_0x4253e8=new Set();for(const _0x52948b of _0x223287)if('tablePaste'==_0x52948b['subType'])for(const _0x400e30 of _0x52948b['getMarkers']()){const _0x5b855a=_0x400e30['getRange']()['getContainedElement']();if(_0x5b855a){if(_0x5b855a['is']('element','tableCellSuggestion')&&De(_0x5b855a)){_0x52948b['removeMarker'](_0x400e30['name']),_0x386d1c['add'](_0x5b855a),_0x359c5d=!0x0;const _0x2c9225=_0x5b855a['nextSibling'],_0x5d9d41=_0x5b855a['previousSibling'],_0x3790bf=_0x2c9225&&_0x2c9225['is']('element','tableCellSuggestion'),_0x26d52c=_0x5d9d41&&_0x5d9d41['is']('element','tableCellSuggestion');_0x3790bf&&!_0x386d1c['has'](_0x2c9225)&&_0x4253e8['add'](_0x2c9225),_0x26d52c&&!_0x386d1c['has'](_0x5d9d41)&&_0x4253e8['add'](_0x5d9d41);}else _0x5b855a['is']('element','paragraph')&&_0x5b855a['isEmpty']&&(_0x52948b['removeMarker'](_0x400e30['name']),_0x359c5d=!0x0);}}else{if('tablePasteCell'==_0x52948b['subType']){if(!_0x52948b['attributes']||!_0x52948b['attributes']['tablePasteChainId'])continue;const _0x2f747f=_0x52948b['attributes']['markerAttributes'];if(_0x2f747f&&Object['keys'](_0x2f747f)['length'])continue;const _0x367be5=_0x52948b['attributes']['tablePasteChainId'];let _0x329035=!0x0,_0x264618=!0x0;for(const _0x2e810d of _0x223287)if(_0x2e810d['subType']&&_0x2e810d['subType']['startsWith']('tablePaste')){if(!_0x2e810d['attributes']['tablePasteChainId']){_0x264618=!0x1;break;}if(_0x2e810d['id']!=_0x52948b['id']&&_0x2e810d['attributes']['tablePasteChainId']==_0x367be5){_0x329035=!0x1;break;}}_0x264618&&_0x329035&&(_0x52948b['removeMarkers'](),_0x359c5d=!0x0);}}for(const _0x24d2c5 of _0x386d1c)_0xef5386['remove'](_0x24d2c5);for(const _0x5781a4 of _0x4253e8)_0xef5386['unwrap'](_0x5781a4);return _0x359c5d;}),_0x166766['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4b8a6a=>_0x376b39(_0x4b8a6a),'converterPriority':'high'}),_0x166766['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xfc91ec,_0x7944de)=>_0x7944de['options']['showSuggestionHighlights']?_0x376b39(_0xfc91ec,!0x1):null,'converterPriority':'high'});const _0x50fb60=_0x166766['editing']['view'];this['listenTo'](_0x50fb60['document'],'clipboardOutput',(_0x1ce2ad,_0x5d321b)=>{const _0x78923b=[];for(const _0x57ac63 of _0x50fb60['createRangeIn'](_0x5d321b['content'])['getItems']())_0x57ac63['is']('element','suggestion-td')&&_0x78923b['push'](_0x57ac63);_0x50fb60['change'](_0x113083=>{for(const _0x455576 of _0x78923b)_0x113083['move'](_0x113083['createRangeIn'](_0x455576),_0x113083['createPositionBefore'](_0x455576)),_0x113083['remove'](_0x455576);});});}}function De(_0x2d12b6){if(_0x2d12b6['isEmpty'])return!0x0;const _0x24cbff=_0x2d12b6['getChild'](0x0);return _0x24cbff['is']('element','paragraph')&&_0x24cbff['isEmpty'];}function He(_0x38125c,_0x1dc519={},_0x5c3d05){for(const {isAnchor:_0x1998a5,cellHeight:_0xf0c18d,cellWidth:_0x3499b0}of _0x5c3d05['createTableWalker'](_0x38125c,{'includeAllSlots':!0x0,..._0x1dc519}))if(!_0x1998a5||0x1!=_0xf0c18d||0x1!=_0x3499b0)return!0x1;return!0x0;}class Bt extends _0x5575fe{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x110fc5=this['editor']['plugins']['get']('TrackChangesEditing');_0x110fc5['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x110fc5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x110fc5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x110fc5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x110fc5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x110fc5['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3a7d5a,_0x2d7fcb){const _0x46c53d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1dafdc=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1229da=_0x2d7fcb['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x361b6a=_0x1dafdc['getColumnGroupElement'](_0x1229da);let _0x17dfa4=_0x361b6a?_0x1dafdc['getTableColumnsWidths'](_0x361b6a):null,_0x1f954e=_0x1229da['getAttribute']('tableWidth')||null;const _0x116b51=_0x2d7fcb['tableWidth']||_0x1f954e,_0x105057=_0x2d7fcb['columnWidths']||_0x17dfa4,_0x2238e0=this['editor']['plugins']['get']('Users')['me'];for(const _0x4cd945 of _0x46c53d['getSuggestions']()){const _0x1ecef5=_0x4cd945['getContainedElement']();if('resizeTable'===_0x4cd945['subType']&&_0x1ecef5===_0x1229da){_0x4cd945['author']!==_0x2238e0&&_0x4cd945['discard']();const _0x133b76=_0x4cd945['data']['commandParams'];_0x1f954e=_0x133b76[0x0]['tableWidth'],_0x17dfa4=_0x133b76[0x0]['columnWidths'];break;}}_0x3a7d5a({'table':_0x1229da,'tableWidth':_0x116b51,'columnWidths':_0x105057}),_0x46c53d['markBlockFormat'](_0x1229da,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1f954e,'columnWidths':_0x17dfa4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4b159c){if('formatBlock'!=_0x4b159c['type']&&'formatInline'!=_0x4b159c['type'])return;const {data:_0x3295d5}=_0x4b159c;if(_0x3295d5&&'resizeTable'===_0x3295d5['formatGroupId']){const _0x3e38a1='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x3e38a1)};}}}class xt extends _0x5575fe{['afterInit'](){const _0x46d033=this['editor'];_0x46d033['plugins']['has']('Template')&&_0x46d033['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x5575fe{['afterInit'](){const _0x508924=this['editor'];if(!_0x508924['commands']['get']('insertTableOfContents'))return;_0x508924['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3005e1=_0x508924['plugins']['get']('TrackChangesEditing'),_0x21ce66=_0x508924['locale'];_0x3005e1['descriptionFactory']['registerElementLabel']('tableOfContents',_0x245b80=>c(_0x21ce66,'ELEMENT_TABLE_OF_CONTENTS',_0x245b80));}}class Rt extends _0x5575fe{['afterInit'](){const _0x231677=this['editor'];if(!_0x231677['plugins']['has']('Title'))return;const _0x5f59c2=_0x231677['plugins']['get']('TrackChangesEditing');_0x5f59c2['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x231677['locale'],'ELEMENT_TITLE')),_0x231677['model']['document']['registerPostFixer'](_0x5cad2e=>{let _0x3fcc16=!0x1;const _0x1bc5ca=Array['from'](_0x231677['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x34ede3,data:_0x1396f4}of _0x1bc5ca){const {group:_0x75bbe2}=_0x5f59c2['_splitMarkerName'](_0x34ede3);if('suggestion'!==_0x75bbe2||!_0x1396f4['newRange'])continue;const _0x3edae4=_0x1396f4['newRange'],_0x5d1313=_0x3edae4['end']['nodeBefore'];if(!_0x5d1313||!_0x5d1313['is']('element','title-content'))continue;if(!_0x3edae4['start']['isTouching'](_0x3edae4['end']))continue;const _0x3c35a5=_0x231677['model']['schema']['getNearestSelectionRange'](_0x3edae4['end'],'forward');if(_0x3c35a5&&_0x3c35a5['isCollapsed']){const _0x323226=_0x5cad2e['createRange'](_0x3edae4['start'],_0x3c35a5['start']);_0x323226['isEqual'](_0x3edae4)||(_0x5cad2e['updateMarker'](_0x34ede3,{'range':_0x323226}),_0x3fcc16=!0x0);}_0x3fcc16||(_0x5cad2e['removeMarker'](_0x34ede3),_0x3fcc16=!0x0);}return _0x3fcc16;});}}class Tt extends _0x5575fe{['afterInit'](){const _0x1713dd=this['editor'],_0x4a8694=_0x1713dd['plugins']['get']('TrackChangesEditing');_0x1713dd['plugins']['has']('Uploadcare')&&(_0x4a8694['enableCommand']('uploadcare'),_0x1713dd['plugins']['has']('UploadcareImageEdit')&&(_0x4a8694['enableCommand']('uploadcareImageEdit'),_0x4a8694['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4a8694['registerBlockAttribute']('uploadcareImageId'),_0x4a8694['descriptionFactory']['registerDescriptionCallback'](_0x4c20f6=>{if('attribute'!=_0x4c20f6['type'])return;const {data:_0x5eafca}=_0x4c20f6;return _0x5eafca&&'uploadcareImageId'==_0x5eafca['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x5575fe{['afterInit'](){const _0x24bd9c=this['editor'],_0x272a8b=_0x24bd9c['plugins']['get']('TrackChangesEditing');_0x24bd9c['plugins']['has']('UndoEditing')&&(_0x272a8b['enableCommand']('undo'),_0x272a8b['enableCommand']('redo'));}}class Ut extends _0x5575fe{static get['requires'](){return[Ct];}['afterInit'](){const _0x1b96b5=this['editor'];if(!_0x1b96b5['plugins']['has']('TableCaptionEditing'))return;_0x1b96b5['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x5575fe{['tableProperties'];['tableCellProperties'];constructor(_0x4e8186){super(_0x4e8186),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 _0x3fc366=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3e240b of this['tableProperties'])_0x3fc366['enableCommand'](_0x3e240b,(_0x54ee71,_0x3ae1f7)=>{const _0x5e076f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3e240b,[_0x5e076f],this['tableProperties'],'tableProperties',_0x54ee71,_0x3ae1f7);});_0x3fc366['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3fc366['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3fc366['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5792dd,_0xf9db0a)=>this['handleDiscardAction'](this['tableProperties'],_0x5792dd,_0xf9db0a)),_0x3fc366['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x497850 of this['tableCellProperties'])_0x3fc366['enableCommand'](_0x497850,(_0x52a1c6,_0x36e621)=>{const _0x47f4e0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x497850,_0x47f4e0,this['tableCellProperties'],'tableCellProperties',_0x52a1c6,_0x36e621);});_0x3fc366['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3fc366['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3fc366['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x326fca,_0x52c1c9)=>this['handleDiscardAction'](this['tableCellProperties'],_0x326fca,_0x52c1c9)),_0x3fc366['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3fc366['descriptionFactory']['registerDescriptionCallback'](_0x57fdf1=>this['handleSuggestionDescription'](_0x57fdf1));}['_handlePropertyChange'](_0x1253ea,_0x1d14e3,_0x54fa5f,_0x5c6ed0,_0x17be81,_0xb37b63){const _0x1062dd=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xb37b63['batch'],()=>{for(const _0x3e0da7 of _0x1d14e3){if(this['_getSuggestion'](_0x3e0da7,_0x5c6ed0))_0x17be81(_0xb37b63);else{const _0x2ed4b1={};for(const _0x264d41 of _0x54fa5f){const _0x3a0dd8=_0x3e0da7['getAttribute'](_0x264d41);void 0x0!==_0x3a0dd8&&(_0x2ed4b1[_0x264d41]=_0x3a0dd8);}_0x17be81(_0xb37b63),_0x1062dd['markBlockFormat'](_0x3e0da7,{'commandParams':[_0x2ed4b1]},[],_0x5c6ed0);}}});}['handleDiscardAction'](_0x36ebe3,_0x41f62a,_0x35ec6e){const _0x3ecc0a=_0x41f62a[0x0]['start']['nodeAfter'],_0x1b0d88=_0x35ec6e['commandParams'][0x0];this['editor']['model']['change'](_0x285186=>{for(const _0x1eb8f0 of _0x36ebe3)void 0x0!==_0x1b0d88[_0x1eb8f0]?_0x285186['setAttribute'](_0x1eb8f0,_0x1b0d88[_0x1eb8f0],_0x3ecc0a):_0x285186['removeAttribute'](_0x1eb8f0,_0x3ecc0a);});}['handleSuggestionDescription'](_0x21664a){if(_0x21664a['data'])switch(_0x21664a['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'](_0x2bfa81,_0x57d675){const _0x307f94=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5da03f of _0x307f94['getSuggestions']({'skipNotAttached':!0x0})){const _0x901db3=_0x5da03f['getContainedElement']();if(_0x5da03f['subType']===_0x57d675&&_0x901db3===_0x2bfa81)return _0x5da03f;}return null;}}const u='$elementName';class p extends _0x5575fe{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x39fba1,_0x1e5ef8,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2cb934){super(_0x2cb934),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x453638,_0x287bc5,_0x544bef,_0xb370b5)=>{this['_model']['change'](()=>{for(const _0x193978 of[..._0xb370b5,..._0x544bef])this['_model']['markers']['has'](_0x193978)&&_0x2cb934['editing']['reconvertMarker'](_0x193978);});}),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']=_0x2cb934['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(),_0x2cb934['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2cb934['config']['get']('trackChanges.trackFormatChanges'),_0x2cb934['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2cb934['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2cb934,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1c38de=this['editor'],_0x3f3492=(_0x3d8091,_0x2671b9)=>{if('attribute'!=_0x3d8091)return'ck-suggestion-marker-'+_0x3d8091;const _0x31b37f=_0x2671b9['split']('|')[0x0];return this['_isBlockAttribute'](_0x31b37f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1c38de['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4aaeb3=>{const {id:_0x5729f6,authorId:_0x55380e,type:_0xaffb94,subType:_0x3dc68e}=this['_splitMarkerName'](_0x4aaeb3['markerName']),_0x32ce3a=['ck-suggestion-marker',_0x3f3492(_0xaffb94,_0x3dc68e)];let _0x2cdf15=0xbb8;return this['activeMarkers']['includes'](_0x4aaeb3['markerName'])&&(_0x32ce3a['push']('ck-suggestion-marker--active'),_0x2cdf15=0xbc2),'deletion'==_0xaffb94&&(_0x2cdf15+=0x5),{'classes':_0x32ce3a,'attributes':{'data-suggestion':_0x5729f6,'data-author-id':_0x55380e},'priority':_0x2cdf15};}}),_0x1c38de['conversion']['for']('dataDowncast')['add'](_0x55eb5c=>{_0x55eb5c['on']('addMarker:suggestion',(_0x43e38a,_0x144625,_0x2a6a84)=>{if(!_0x2a6a84['options']['showSuggestionHighlights'])return;const _0x11ee27=_0x144625['item'];if(!_0x11ee27)return;const _0x2c5ab8=_0x2a6a84['mapper']['toViewElement'](_0x11ee27);_0x1c38de['model']['schema']['isObject'](_0x11ee27)&&_0x2c5ab8&&!_0x2c5ab8['getCustomProperty']('widget')&&_0x2c5ab8['is']('containerElement')&&_0x32bc39(_0x2c5ab8,_0x2a6a84['writer']);},{'priority':'high'});}),_0x1c38de['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x525d7a,_0x1b5f66)=>{if(!_0x1b5f66['options']['showSuggestionHighlights'])return null;const {id:_0x35cfc8,authorId:_0x50f985,type:_0x21e625,subType:_0x5f5be7}=this['_splitMarkerName'](_0x525d7a['markerName']);return{'classes':['ck-suggestion-marker',_0x3f3492(_0x21e625,_0x5f5be7)],'priority':0xbb8,'attributes':{'data-suggestion':_0x35cfc8,'data-author-id':_0x50f985}};}});const _0x459360=({showActiveMarkers:_0x1a7775=!0x0,isAttributeSuggestion:_0x31b40c=!0x1}={})=>(_0x591021,_0x53c7f6,_0x43ea08)=>{if(!_0x53c7f6['item'])return;const {id:_0x1df3a4,authorId:_0x10575f}=this['_splitMarkerName'](_0x53c7f6['markerName']);if(_0x31b40c){const _0x46b974=this['_suggestions']['get'](_0x1df3a4),_0x2528cc=this['_getAttributeKey'](_0x46b974);if(!this['_isBlockAttribute'](_0x2528cc))return;}if(_0x53c7f6['item']['is']('selection'))return void _0x43ea08['consumable']['consume'](_0x53c7f6['item'],_0x591021['name']);const _0x4b7299=_0x43ea08['mapper']['toViewElement'](_0x53c7f6['item']);if(_0x53c7f6['item']['is']('element')&&_0x1c38de['model']['schema']['isBlock'](_0x53c7f6['item'])&&!_0x4b7299['getCustomProperty']('addHighlight')){_0x43ea08['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4b7299),_0x43ea08['writer']['setAttribute']('data-suggestion',_0x1df3a4,_0x4b7299),_0x43ea08['writer']['setAttribute']('data-author-id',_0x10575f,_0x4b7299),_0x43ea08['mapper']['bindElementToMarker'](_0x4b7299,_0x53c7f6['markerName']),_0x1a7775&&(this['activeMarkers']['includes'](_0x53c7f6['markerName'])?_0x43ea08['writer']['addClass']('ck-suggestion-marker--active',_0x4b7299):_0x43ea08['writer']['removeClass']('ck-suggestion-marker--active',_0x4b7299));for(const _0x845ed0 of _0x1c38de['model']['createRangeIn'](_0x53c7f6['item'])['getItems']())_0x43ea08['consumable']['consume'](_0x845ed0,_0x591021['name']);_0x43ea08['consumable']['consume'](_0x53c7f6['item'],_0x591021['name']);}};_0x1c38de['conversion']['for']('dataDowncast')['add'](_0x3a52e6=>{_0x3a52e6['on']('addMarker:suggestion:formatBlock',(_0x3c9da3,_0x176f3f,_0x3d3141)=>{_0x3d3141['options']['showSuggestionHighlights']&&_0x459360({'showActiveMarkers':!0x1})(_0x3c9da3,_0x176f3f,_0x3d3141);},{'priority':'highest'});}),_0x1c38de['conversion']['for']('dataDowncast')['add'](_0x113486=>{_0x113486['on']('addMarker:suggestion:attribute',(_0x3bf38c,_0x1bc621,_0x56caf8)=>{_0x56caf8['options']['showSuggestionHighlights']&&_0x459360({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3bf38c,_0x1bc621,_0x56caf8);},{'priority':'highest'});}),_0x1c38de['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xb474c9,_0x51cd13)=>{if(_0x51cd13['options']['showSuggestionHighlights']){const {id:_0x39cbd5,authorId:_0x4d2c4b}=this['_splitMarkerName'](_0xb474c9);return _0xb474c9['includes'](':split')||_0xb474c9['includes'](':merge')?{'group':'suggestion','name':_0xb474c9['substr'](0xb),'attributes':{'data-suggestion':_0x39cbd5,'data-author-id':_0x4d2c4b}}:null;}return{'group':'suggestion','name':_0xb474c9['substr'](0xb)};}}),_0x1c38de['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x250ced,{writer:_0x3ade51})=>{let _0x1e1e66='suggestion:'+_0x250ced['getAttribute']('suggestion-type')+':'+_0x250ced['getAttribute']('id');return _0x250ced['getAttribute']('marker-count')&&(_0x1e1e66+=':'+_0x250ced['getAttribute']('marker-count')),_0x3ade51['createElement']('$marker',{'data-name':_0x1e1e66});}}),_0x1c38de['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1c38de['conversion']['for']('editingDowncast')['add'](_0x35fd5d=>{_0x35fd5d['on']('addMarker:suggestion:formatBlock',_0x459360(),{'priority':'high'});}),_0x1c38de['conversion']['for']('editingDowncast')['add'](_0x1047ce=>{_0x1047ce['on']('addMarker:suggestion:attribute',_0x459360({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1c38de['conversion']['for']('editingDowncast')['add'](_0x19fa14=>{_0x19fa14['on']('removeMarker:suggestion:formatBlock',(_0x3a0a87,_0x55bdf8,_0x52235c)=>{const _0x599fba=_0x52235c['mapper']['markerNameToElements'](_0x55bdf8['markerName']);if(_0x599fba){for(const _0x214244 of _0x599fba)_0x214244['getCustomProperty']('addHighlight')||(_0x52235c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x214244),_0x52235c['writer']['removeAttribute']('data-suggestion',_0x214244),_0x52235c['writer']['removeAttribute']('data-author-id',_0x214244),_0x52235c['mapper']['unbindElementFromMarkerName'](_0x214244,_0x55bdf8['markerName']));}},{'priority':'high'});}),_0x1c38de['conversion']['for']('editingDowncast')['add'](_0x174394=>{_0x174394['on']('removeMarker:suggestion:attribute',(_0x5e8361,_0x8e1992,_0x2f93f1)=>{const _0x4d6c6b=_0x2f93f1['mapper']['markerNameToElements'](_0x8e1992['markerName']);if(!_0x4d6c6b)return;const {id:_0x343a57}=this['_splitMarkerName'](_0x8e1992['markerName']),_0x1b3f88=this['_suggestions']['get'](_0x343a57),_0xb89e32=this['_getAttributeKey'](_0x1b3f88);if(this['_isBlockAttribute'](_0xb89e32)){for(const _0x1605bc of _0x4d6c6b)_0x1605bc['getCustomProperty']('addHighlight')||(_0x2f93f1['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1605bc),_0x2f93f1['writer']['removeAttribute']('data-suggestion',_0x1605bc),_0x2f93f1['writer']['removeAttribute']('data-author-id',_0x1605bc),_0x2f93f1['mapper']['unbindElementFromMarkerName'](_0x1605bc,_0x8e1992['markerName']));}},{'priority':'high'});}),_0x1c38de['model']['document']['registerPostFixer'](_0x2344cb=>{let _0x34280d=!0x1;const _0x5c75f7=Array['from'](_0x1c38de['model']['document']['differ']['getChangedMarkers']()),_0x4d395a=new Set();for(const {name:_0x1be0f9,data:_0x870138}of _0x5c75f7){const {group:_0x43597e,type:_0x4f3242,subType:_0x183573,id:_0x2f8aef}=this['_splitMarkerName'](_0x1be0f9);if('suggestion'!==_0x43597e)continue;const _0x30d152=this['_suggestions']['get'](_0x2f8aef);if(null!=_0x870138['newRange']){'formatInline'==_0x4f3242&&(_0x34280d=_0x34280d||Jt(_0x870138['newRange'],_0x1be0f9,_0x2344cb,_0x1c38de['model']['schema']));const _0x288321='attribute'==_0x4f3242&&this['_isBlockAttribute'](_0x183573['split']('|')[0x0]);if(_0x870138['newRange']['isCollapsed']||'$graveyard'==_0x870138['newRange']['root']['rootName']||'formatBlock'==_0x4f3242&&!Ht(_0x870138['newRange'])||_0x288321&&!Ht(_0x870138['newRange'])||'deletion'==_0x4f3242&&!(!Lt(_0x592980=_0x870138['newRange'])&&!function(_0x298297){return _0x298297['start']['parent']==_0x298297['end']['nodeBefore']&&_0x298297['start']['isAtEnd'];}(_0x592980)))_0x2344cb['removeMarker'](_0x1be0f9),_0x34280d=!0x0;else{if(!_0x30d152||!_0x30d152['isInContent'])continue;if(_0x870138['newRange']&&_0x870138['oldRange']&&_0x870138['newRange']['isEqual'](_0x870138['oldRange']))continue;_0x4d395a['add'](_0x30d152);}}}var _0x592980;return _0x4d395a['size']>0x0&&(_0x34280d=!!this['_joinWithAdjacentSuggestions'](_0x4d395a)||_0x34280d),_0x34280d;}),_0x1c38de['model']['document']['registerPostFixer'](_0x5bcee0=>{let _0x18a164=!0x1;for(const _0x81b154 of _0x1c38de['model']['document']['differ']['getChanges']())if('insert'==_0x81b154['type'])for(const _0x2f49b5 of this['_suggestions']['values']()){if(_0x2f49b5['isMultiRange']||!_0x2f49b5['isInContent'])continue;const _0x2b5a72='formatBlock'==_0x2f49b5['type'],_0x1640c3=this['_getAttributeKey'](_0x2f49b5),_0x21466f=_0x1640c3&&this['_isBlockAttribute'](_0x1640c3);if(!_0x2b5a72&&!_0x21466f)continue;const _0x507047=_0x2f49b5['getFirstRange']();if(_0x507047['start']['parent']!=_0x507047['end']['parent']&&!_0x507047['end']['isAtEnd']){const _0xe4f6a6=_0x1c38de['model']['createPositionAt'](_0x507047['start']['nodeAfter'],'end'),_0x378ba8=_0x1c38de['model']['createRange'](_0x507047['start'],_0xe4f6a6);_0x5bcee0['updateMarker'](_0x2f49b5['getFirstMarker'](),{'range':_0x378ba8}),_0x18a164=!0x0;}}return _0x18a164;}),_0x1c38de['model']['document']['registerPostFixer'](_0x3815dd=>this['_processAttributeChanges'](_0x3815dd)),_0x1c38de['model']['document']['registerPostFixer'](_0x54d462=>!_0x54d462['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x54d462)),_0x1c38de['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1c38de['model']['document']['on']('change:data',(_0x54e65c,_0x1ce905)=>{if(!_0x1ce905['isLocal']||_0x1ce905['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x336cb0=_0x1c38de['model']['document']['differ']['getChanges']();if(0x0==_0x336cb0['length'])return;const _0x43e5f2=[],_0xc7cca9=_0x336cb0['filter'](_0x2482c5=>'attribute'==_0x2482c5['type']),_0x271eea=_0x336cb0['filter'](_0x11be4b=>'insert'==_0x11be4b['type']&&'$text'!=_0x11be4b['name']);for(const _0x533547 of _0xc7cca9)this['_isRegisteredAttribute'](_0x533547['attributeKey'])&&_0x43e5f2['push']({'key':_0x533547['attributeKey'],'newValue':_0x533547['attributeNewValue'],'oldValue':_0x533547['attributeOldValue'],'range':qt(_0x533547['range'],_0x1c38de['model'])});for(const _0x539b74 of _0x271eea){if('rename'!=_0x539b74['action']&&'refresh'!=_0x539b74['action'])continue;const _0x43881c=zt(_0x539b74['position']['nodeAfter'],_0x1c38de['model']),_0x41847f=_0x539b74['before'];'rename'==_0x539b74['action']&&_0x43e5f2['push']({'key':u,'newValue':_0x539b74['name'],'oldValue':_0x41847f['name'],'range':_0x43881c});for(const [_0x1c4bf5,_0x4f6927]of _0x41847f['attributes']){if(!this['_isRegisteredAttribute'](_0x1c4bf5))continue;const _0x1bced6=_0x539b74['attributes']['get'](_0x1c4bf5);_0x4f6927!==_0x1bced6&&_0x43e5f2['push']({'key':_0x1c4bf5,'newValue':_0x1bced6,'oldValue':_0x4f6927,'range':_0x43881c});}for(const [_0x17bdb3,_0x2f6b08]of _0x539b74['attributes'])this['_isRegisteredAttribute'](_0x17bdb3)&&(_0x41847f['attributes']['has'](_0x17bdb3)||_0x43e5f2['push']({'key':_0x17bdb3,'newValue':_0x2f6b08,'oldValue':null,'range':_0x43881c}));}0x0!=_0x43e5f2['length']&&_0x1c38de['model']['enqueueChange'](_0x1ce905,_0xbce79b=>{const _0x87c8ae=_0x1526c3();for(const {range:_0x434ec7,key:_0x196a1c,oldValue:_0x56d902,newValue:_0x32b7a2}of _0x43e5f2)this['markAttributeChange'](_0x434ec7,_0x196a1c,_0x56d902,_0x32b7a2,{'groupId':_0x87c8ae});this['_reduceExistingSuggestions'](_0xbce79b,_0x43e5f2);});},{'priority':'lowest'}),_0x1c38de['model']['markers']['on']('update:suggestion',(_0x34510e,_0x1b9a0b,_0x1a02c7)=>{if(null==_0x1a02c7){const {id:_0x5a7c87}=this['_splitMarkerName'](_0x1b9a0b['name']),_0x3a4783=this['_suggestions']['get'](_0x5a7c87);_0x3a4783&&_0x3a4783['addMarkerName'](_0x1b9a0b['name']);}}),_0x1c38de['model']['document']['on']('change:data',()=>{const _0x778cea=Array['from'](_0x1c38de['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1a6f4d=>'suggestion'===this['_splitMarkerName'](_0x1a6f4d['name'])['group']);if(0x0===_0x778cea['length'])return;_0x778cea['sort']((_0x259456,_0x4f4338)=>{const _0x352658=_0x259456['data']['oldRange'],_0xeaa8e1=_0x4f4338['data']['oldRange'];return null===_0x352658&&null===_0xeaa8e1?0x0:null===_0x352658&&null!==_0xeaa8e1?-0x1:null!==_0x352658&&null===_0xeaa8e1?0x1:_0x352658['start']['isBefore'](_0xeaa8e1['start'])?-0x1:0x1;});const _0x5c6ed4=new Set(),_0x52fed4=new Set();for(const {name:_0x4a91be,data:_0x4f4986}of _0x778cea){const {id:_0x2ea65b}=this['_splitMarkerName'](_0x4a91be);if(null===_0x4f4986['oldRange']){const _0x3e860f=this['_handleNewSuggestionMarker'](_0x4a91be);_0x52fed4['add'](_0x3e860f);}else{const _0x4037f0=this['_suggestions']['get'](_0x2ea65b);null!==_0x4f4986['newRange']||_0x4037f0['isInContent']?(_0x5c6ed4['add'](_0x4037f0['head']),_0x52fed4['add'](_0x4037f0)):this['_removeSuggestion'](_0x4037f0);}}_0x52fed4['size']>0x0&&this['_refreshSuggestionsChain'](_0x52fed4);for(const _0x39846e of _0x5c6ed4)this['fire']('suggestionChanged',_0x39846e);}),_0x1c38de['model']['on']('applyOperation',(_0x9ae535,_0x5d216c)=>{const _0x5ce879=_0x5d216c[0x0];if(!this['_suggestions']['size'])return;if(!_0x5ce879['isDocumentOperation'])return;if(_0x5ce879['batch']['isUndo']||!_0x5ce879['batch']['isLocal'])return;let _0x5b03c6,_0x3d12f1;switch(_0x5ce879['type']){case'insert':_0x5b03c6=_0x1c38de['model']['createPositionAt'](_0x5ce879['position']),_0x3d12f1=_0x5b03c6['getShiftedBy'](_0x5ce879['howMany']);break;case'split':_0x5b03c6=_0x1c38de['model']['createPositionAt'](_0x5ce879['splitPosition']),_0x3d12f1=_0x1c38de['model']['createPositionAt'](_0x5ce879['moveTargetPosition']);break;case'move':_0x5b03c6=_0x1c38de['model']['createPositionAt'](_0x5ce879['targetPosition']),_0x3d12f1=_0x5b03c6['getShiftedBy'](_0x5ce879['howMany']);break;default:return;}const _0xdf2259=_0x1c38de['model']['createRange'](_0x5b03c6,_0x3d12f1);_0x1c38de['model']['change'](()=>{for(const {suggestion:_0x114f3d,meta:_0x549599}of this['_findSuggestions'](_0xdf2259)){if(_0x114f3d['isMultiRange'])continue;if('formatInline'==_0x114f3d['type'])continue;const _0x3f7fb4=this['_getAttributeKey'](_0x114f3d);if(_0x3f7fb4&&this['_isBlockAttribute'](_0x3f7fb4)&&'split'!=_0x5ce879['type'])continue;const _0x36c36a=_0x114f3d['data']&&_0x114f3d['data']['multipleBlocks'];('formatBlock'!=_0x114f3d['type']||'split'==_0x5ce879['type']&&!_0x36c36a)&&(_0x549599['containsRangeInObject']||'insertion'==_0x114f3d['type']&&_0x549599['isOwn']||_0x114f3d['getFirstRange']()['containsRange'](_0xdf2259)&&this['_breakSuggestionMarker'](_0x114f3d,_0x5b03c6,_0x3d12f1));}});},{'priority':'lowest'}),_0x1c38de['model']['on']('deleteContent',(_0x17d3b9,_0x20fec3)=>{const _0x2d26b2=_0x20fec3[0x0],_0x358b21=_0x20fec3[0x1];if(_0x358b21&&_0x358b21['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2d26b2['isCollapsed'])return;const _0x450447=_0x1c38de['model']['schema'],{start:_0x52010a,end:_0x1c5e66}=_0x2d26b2['getFirstRange'](),_0x16ea5b=_0x52010a['nodeAfter']&&_0x450447['isLimit'](_0x52010a['nodeAfter'])?null:_0x450447['getNearestSelectionRange'](_0x52010a,'forward'),_0xff77f6=_0x1c5e66['nodeBefore']&&_0x450447['isLimit'](_0x1c5e66['nodeBefore'])?null:_0x450447['getNearestSelectionRange'](_0x1c5e66,'backward'),_0x348ed3=_0x1c38de['model']['createRange'](_0x16ea5b?_0x16ea5b['start']:_0x52010a,_0xff77f6?_0xff77f6['end']:_0x1c5e66);_0x1c38de['model']['change'](_0x159e6b=>{this['markDeletion'](_0x348ed3);const _0x4d8b68=_0x1c38de['model']['schema']['getNearestSelectionRange'](_0x348ed3['start']);_0x2d26b2['is']('documentSelection')?_0x159e6b['setSelection'](_0x4d8b68):_0x2d26b2['setTo'](_0x4d8b68);}),_0x17d3b9['stop']();},{'priority':_0x2dda8a['normal']+0xa}),_0x1c38de['model']['on']('insertContent',(_0x272c77,_0x26165e)=>{const _0x2c8f6f=_0x26165e[_0x26165e['length']-0x1];_0x2c8f6f&&_0x2c8f6f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1c38de['model']['change'](()=>{let _0x1768d2=_0x1c38de['model']['insertContent'](_0x26165e[0x0],_0x26165e[0x1],_0x26165e[0x2],{'forceDefaultExecution':!0x0});if(!_0x1768d2)return;_0x272c77['return']=_0x1768d2['clone']();const _0x49ff4c=_0x1768d2['end']['nodeBefore'],_0x388810=_0x1c38de['model']['schema'];_0x49ff4c&&_0x388810['isBlock'](_0x49ff4c)&&!_0x388810['isObject'](_0x49ff4c)&&(_0x1768d2=_0x1c38de['model']['createRange'](_0x1768d2['start'],_0x1c38de['model']['createPositionAt'](_0x49ff4c,'end'))),this['markInsertion'](_0x1768d2);}),_0x272c77['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5ccc21=new x(_0x1c38de,this['_suggestions']);_0x1c38de['commands']['add']('acceptSuggestion',_0x5ccc21),this['enableCommand']('acceptSuggestion');const _0x4525eb=new O(_0x1c38de,this['_suggestions']);_0x1c38de['commands']['add']('discardSuggestion',_0x4525eb),this['enableCommand']('discardSuggestion'),_0x1c38de['commands']['add']('acceptAllSuggestions',new R(_0x1c38de,_0x5ccc21,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1c38de['commands']['add']('discardAllSuggestions',new R(_0x1c38de,_0x4525eb,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1c38de['commands']['add']('acceptSelectedSuggestions',new E(_0x1c38de,_0x5ccc21,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1c38de['commands']['add']('discardSelectedSuggestions',new E(_0x1c38de,_0x4525eb,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x23e776=_0x1c38de['plugins']['get']('CommentsRepository');this['listenTo'](_0x23e776,'addComment',(_0x1681e1,{threadId:_0x5f0e90})=>{const _0x414e6a=this['_suggestions']['get'](_0x5f0e90);_0x414e6a&&_0x414e6a['commentThread']&&0x1===_0x414e6a['commentThread']['length']&&this['_updateSuggestionData'](_0x5f0e90,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x23e776,'removeComment',(_0x51279d,{threadId:_0x1d3d34})=>{const _0x44eeee=this['_suggestions']['get'](_0x1d3d34);_0x44eeee&&_0x44eeee['commentThread']&&!_0x44eeee['commentThread']['length']&&this['_updateSuggestionData'](_0x1d3d34,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3c4ce5){const _0x9c4cb6=_0x42ceec([0x49,0x58,0x51,0x69,0x45,0x33,0x73,0x44,0x6d,0x5a,0x4c,0x74,0x35,0x68,0x39,0x4a,0x4e,0x76,0x47,0x56,0x71,0x79,0x42,0x61,0x78,0x48,0x31,0x65,0x59,0x7a,0x4b,0x52,0x67,0x43,0x38,0x46,0x75,0x77,0x30,0x62,0x72,0x6a,0x70,0x6c,0x54,0x6b,0x41,0x63,0x64,0x6e,0x66,0x34,0x4f,0x57,0x50,0x6f,0x37,0x32,0x36,0x4d,0x55,0x53]),_0x11c329=0x689215ba,_0x7d0cc5=0x68957c3a^_0x11c329,_0x2309f7=window[_0x42ceec([0x44,0x61,0x74,0x65])][_0x42ceec([0x6e,0x6f,0x77])](),_0x586245=_0x3c4ce5[_0x42ceec([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x120145=new window[(_0x42ceec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x521e22=>{_0x586245[_0x42ceec([0x6f,0x6e,0x63,0x65])](_0x42ceec([0x72,0x65,0x61,0x64,0x79]),_0x521e22);}),_0x390183={[_0x42ceec([0x6b,0x74,0x79])]:_0x42ceec([0x45,0x43]),[_0x42ceec([0x75,0x73,0x65])]:_0x42ceec([0x73,0x69,0x67]),[_0x42ceec([0x63,0x72,0x76])]:_0x42ceec([0x50,0x2d,0x32,0x35,0x36]),[_0x42ceec([0x78])]:_0x42ceec([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]),[_0x42ceec([0x79])]:_0x42ceec([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]),[_0x42ceec([0x61,0x6c,0x67])]:_0x42ceec([0x45,0x53,0x32,0x35,0x36])},_0x3fd898=_0x586245[_0x42ceec([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x42ceec([0x67,0x65,0x74])](_0x42ceec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x40169d(){let _0x178e13,_0x1efd1f=null,_0x454e3a=null;try{if(_0x3fd898==_0x42ceec([0x47,0x50,0x4c]))return _0x42ceec([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x178e13=_0x454fa4(),!_0x178e13)return _0x42ceec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x178e13[_0x42ceec([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x454e3a=_0x5763fa(_0x178e13[_0x42ceec([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x178e13[_0x42ceec([0x6a,0x74,0x69])])),await _0x1b6216()?_0x31212a()?_0x10377e()?_0x42ceec([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4b0588()?(_0x178e13[_0x42ceec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42ceec([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1efd1f=_0x359daf(_0x42ceec([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x178e13[_0x42ceec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42ceec([0x74,0x72,0x69,0x61,0x6c])&&(_0x1efd1f=_0x359daf(_0x42ceec([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22754d()):_0x42ceec([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x42ceec([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x42ceec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x42ceec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x10377e(){const _0x433f9a=[_0x42ceec([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x42ceec([0x74,0x72,0x69,0x61,0x6c])][_0x42ceec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x178e13[_0x42ceec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2309f7/0x3e8:0xe10*_0x7d0cc5;return _0x178e13[_0x42ceec([0x65,0x78,0x70])]<_0x433f9a;}function _0x31212a(){const _0x48d3c2=_0x178e13[_0x42ceec([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x48d3c2)return!0x1;if(_0x48d3c2[_0x42ceec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42ceec([0x2a])))return!0x0;if(_0x48d3c2[_0x42ceec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42ceec([0x54,0x43])))return!0x0;if(_0x48d3c2[_0x42ceec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42ceec([0x52,0x54,0x43]))){if(_0x129a2e())return!0x0;if(_0x2f429c()||_0xb9373())return!0x0;}return!0x1;}function _0x4b0588(){const _0x329e32=_0x178e13[_0x42ceec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x329e32||0x0==_0x329e32[_0x42ceec([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3fc003}=new URL(window[_0x42ceec([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x329e32[_0x42ceec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fc003))return!0x0;const _0x4410fd=_0x3fc003[_0x42ceec([0x73,0x70,0x6c,0x69,0x74])](_0x42ceec([0x2e]));return _0x329e32[_0x42ceec([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43cda9=>_0x43cda9[_0x42ceec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42ceec([0x2a])))[_0x42ceec([0x6d,0x61,0x70])](_0xd383cc=>_0xd383cc[_0x42ceec([0x73,0x70,0x6c,0x69,0x74])](_0x42ceec([0x2e])))[_0x42ceec([0x73,0x6f,0x6d,0x65])](_0x56c4e2=>_0x4410fd[_0x42ceec([0x65,0x76,0x65,0x72,0x79])]((_0x1cb095,_0x174f46)=>_0x56c4e2[_0x174f46]===_0x1cb095||_0x56c4e2[_0x174f46]===_0x42ceec([0x2a])));}function _0x22754d(){return _0x1efd1f&&_0x454e3a?new window[(_0x42ceec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3bce31,_0x2fb972)=>{_0x1efd1f[_0x42ceec([0x74,0x68,0x65,0x6e])](_0x3bce31,_0x2fb972),_0x454e3a[_0x42ceec([0x74,0x68,0x65,0x6e])](_0x5bd541=>{_0x5bd541!=_0x42ceec([0x56,0x61,0x6c,0x69,0x64])&&_0x3bce31(_0x5bd541);},_0x2fb972);}):_0x1efd1f||_0x454e3a||_0x42ceec([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5763fa(_0x165ddf,_0x4cc7a1){return new window[(_0x42ceec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x308498=>{if(_0x440266())return _0x308498(_0x42ceec([0x56,0x61,0x6c,0x69,0x64]));_0x5558be(),_0x586245[_0x42ceec([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x42ceec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2527eb=!0x1;const _0x657add=_0x1526c3();function _0x4eee01(_0x1f3a50){return!!_0x1f3a50&&(typeof _0x1f3a50===_0x42ceec([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1f3a50===_0x42ceec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1f3a50[_0x42ceec([0x74,0x68,0x65,0x6e])]===_0x42ceec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1f3a50[_0x42ceec([0x63,0x61,0x74,0x63,0x68])]===_0x42ceec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2c9632(_0x467c7d){_0x4d63e2(_0x467c7d)[_0x42ceec([0x74,0x68,0x65,0x6e])](_0x5a1426=>{if(!_0x5a1426||_0x5a1426[_0x42ceec([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x42ceec([0x6f,0x6b]))return _0x42ceec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xe92941(_0x3a14f7(_0x657add+_0x4cc7a1))!=_0x5a1426[_0x42ceec([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x42ceec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x42ceec([0x56,0x61,0x6c,0x69,0x64]);})[_0x42ceec([0x74,0x68,0x65,0x6e])](_0x4a94b9=>(_0x11e2e0(),_0x4a94b9),()=>{const _0xb93ee5=_0x4acc10();return null==_0xb93ee5?(_0x11e2e0(),_0x42ceec([0x56,0x61,0x6c,0x69,0x64])):_0x42ceec(_0x2309f7-_0xb93ee5>(0x4c9e91ba^_0x11c329)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x42ceec([0x74,0x68,0x65,0x6e])](_0x308498)[_0x42ceec([0x63,0x61,0x74,0x63,0x68])](()=>{_0x308498(_0x42ceec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x405dc8=0x68a4fb3a^_0x11c329;function _0x11e2e0(){const _0x483b6a=_0x42ceec([0x6c,0x6c,0x63,0x74,0x2d])+_0xe92941(_0x3a14f7(_0x165ddf)),_0x53c90e=_0x5ce67a(_0xe92941(window[_0x42ceec([0x4d,0x61,0x74,0x68])][_0x42ceec([0x63,0x65,0x69,0x6c])](_0x2309f7/_0x405dc8)));window[_0x42ceec([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42ceec([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x483b6a,_0x53c90e);}function _0x4acc10(){const _0x6c8a71=_0x42ceec([0x6c,0x6c,0x63,0x74,0x2d])+_0xe92941(_0x3a14f7(_0x165ddf)),_0x465dad=window[_0x42ceec([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42ceec([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6c8a71);return _0x465dad?window[_0x42ceec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ce67a(_0x465dad),0x10)*_0x405dc8:null;}function _0x4d63e2(_0x35da3e){return new window[(_0x42ceec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x49b733,_0x197b2f)=>{_0x35da3e[_0x42ceec([0x74,0x68,0x65,0x6e])](_0x49b733,_0x197b2f),window[_0x42ceec([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x197b2f,0x6893c17a^_0x11c329);});}}_0x586245[_0x42ceec([0x6f,0x6e])](_0x42ceec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x201004,_0x551453)=>{if(_0x551453[0x0]!=_0x165ddf)return _0x308498(_0x42ceec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x551453[0x1]={..._0x551453[0x1],[_0x42ceec([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x657add};},{[_0x42ceec([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42ceec([0x68,0x69,0x67,0x68])}),_0x586245[_0x42ceec([0x6f,0x6e])](_0x42ceec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x108537=>{_0x4eee01(_0x108537[_0x42ceec([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2527eb=!0x0,_0x2c9632(_0x108537[_0x42ceec([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x42ceec([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42ceec([0x6c,0x6f,0x77])}),_0x120145[_0x42ceec([0x74,0x68,0x65,0x6e])](()=>{_0x2527eb||_0x308498(_0x42ceec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x440266(){return _0x586245[_0x42ceec([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42ceec([0x76,0x69,0x65,0x77])][_0x42ceec([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x42ceec([0x61,0x75,0x74,0x6f]);}function _0x5558be(){_0x586245[_0x42ceec([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42ceec([0x76,0x69,0x65,0x77])][_0x42ceec([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42ceec([0x61,0x75,0x74,0x6f]);}}function _0x359daf(_0x69bcc8){const _0x2e0a50=[new window[(_0x42ceec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fb830=>setTimeout(_0x3fb830,0x689b2b76^_0x11c329)),_0x120145[_0x42ceec([0x74,0x68,0x65,0x6e])](()=>new window[(_0x42ceec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3445d1=>{let _0x4c1e04=0x0;_0x586245[_0x42ceec([0x6d,0x6f,0x64,0x65,0x6c])][_0x42ceec([0x6f,0x6e])](_0x42ceec([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x691fea,_0x579091)=>{_0x579091[0x0][_0x42ceec([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4c1e04++,_0x4c1e04==(0x68921442^_0x11c329)&&(_0x3445d1(),_0x691fea[_0x42ceec([0x6f,0x66,0x66])]());});}))];return window[_0x42ceec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42ceec([0x72,0x61,0x63,0x65])](_0x2e0a50)[_0x42ceec([0x74,0x68,0x65,0x6e])](()=>_0x69bcc8);}async function _0x5479a2(){await _0x120145,_0x586245[_0x42ceec([0x6d,0x6f,0x64,0x65,0x6c])][_0x42ceec([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d7225,_0x586245[_0x42ceec([0x6d,0x6f,0x64,0x65,0x6c])][_0x42ceec([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d7225,_0x586245[_0x42ceec([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x42ceec([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x129a2e(){return _0x3d947a(_0x42ceec([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4e4dec(_0x42ceec([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x42ceec([0x73,0x74,0x61,0x74,0x65])]==_0x42ceec([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2f429c(){return _0x3d947a(_0x42ceec([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 _0xb9373(){return _0x3d947a(_0x42ceec([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x54fadf(_0x4ed0df){const _0x48b43a=_0xc25a();_0x586245[_0x48b43a]=_0x42ceec([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ed0df,_0x4ed0df!=_0x42ceec([0x56,0x61,0x6c,0x69,0x64])&&_0x5479a2();}function _0xc25a(){const _0x1933e7=window[_0x42ceec([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x42ceec([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x42ceec([0x6e,0x6f,0x77])]())[_0x42ceec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x42ceec([0x2e]),'');let _0x3ce2e3=_0x42ceec([0x49]);for(let _0x2b403e=0x0;_0x2b403e<_0x1933e7[_0x42ceec([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b403e+=0x2){let _0xc266ce=window[_0x42ceec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1933e7[_0x42ceec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b403e,_0x2b403e+0x2));_0xc266ce>=_0x9c4cb6[_0x42ceec([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xc266ce-=_0x9c4cb6[_0x42ceec([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ce2e3+=_0x9c4cb6[_0xc266ce];}return _0x3ce2e3;}function _0x454fa4(){const _0x390ed2=_0x3fd898[_0x42ceec([0x73,0x70,0x6c,0x69,0x74])](_0x42ceec([0x2e]));if(0x3!=_0x390ed2[_0x42ceec([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2403b0(_0x390ed2[0x1]);function _0x2403b0(_0x3aa93f){const _0x42e24a=_0x16c556(_0x3aa93f);return _0x42e24a&&_0x274cb1()?_0x42e24a:null;function _0x274cb1(){const _0x3992e3=_0x42e24a[_0x42ceec([0x6a,0x74,0x69])],_0x56f455=window[_0x42ceec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3992e3[_0x42ceec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3992e3[_0x42ceec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x170f21={..._0x42e24a,[_0x42ceec([0x6a,0x74,0x69])]:_0x3992e3[_0x42ceec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3992e3[_0x42ceec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x170f21[_0x42ceec([0x76,0x63])],_0x3a14f7(_0x170f21)==_0x56f455;}}}async function _0x1b6216(){let _0x3704d2=!0x0;try{const _0x4dd036=_0x3fd898[_0x42ceec([0x73,0x70,0x6c,0x69,0x74])](_0x42ceec([0x2e])),[_0x2e73f1,_0x3c3473,_0xf4d7bb]=_0x4dd036;return _0x512e99(_0x2e73f1),await _0x131c0c(_0x2e73f1,_0x3c3473,_0xf4d7bb),_0x3704d2;}catch{return!0x1;}function _0x512e99(_0x290f44){const _0x506333=_0x16c556(_0x290f44);_0x506333&&_0x506333[_0x42ceec([0x61,0x6c,0x67])]==_0x42ceec([0x45,0x53,0x32,0x35,0x36])||(_0x3704d2=!0x1);}async function _0x131c0c(_0x59918f,_0xb261e8,_0x45f42d){const _0xaa23e8=window[_0x42ceec([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x42ceec([0x66,0x72,0x6f,0x6d])](_0x1daca9(_0x45f42d),_0x2fc713=>_0x2fc713[_0x42ceec([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3e8a43=new window[(_0x42ceec([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x42ceec([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x59918f+_0x42ceec([0x2e])+_0xb261e8),_0x7cef94=window[_0x42ceec([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x42ceec([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x7cef94)return;const _0x4cdbe9=await _0x7cef94[_0x42ceec([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x42ceec([0x6a,0x77,0x6b]),_0x390183,{[_0x42ceec([0x6e,0x61,0x6d,0x65])]:_0x42ceec([0x45,0x43,0x44,0x53,0x41]),[_0x42ceec([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x42ceec([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x42ceec([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x7cef94[_0x42ceec([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x42ceec([0x6e,0x61,0x6d,0x65])]:_0x42ceec([0x45,0x43,0x44,0x53,0x41]),[_0x42ceec([0x68,0x61,0x73,0x68])]:{[_0x42ceec([0x6e,0x61,0x6d,0x65])]:_0x42ceec([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4cdbe9,_0xaa23e8,_0x3e8a43)||(_0x3704d2=!0x1);}}function _0x16c556(_0x5eaac1){return _0x5eaac1[_0x42ceec([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x42ceec([0x65,0x79]))?JSON[_0x42ceec([0x70,0x61,0x72,0x73,0x65])](_0x1daca9(_0x5eaac1)):null;}function _0x1daca9(_0x3670c9){return window[_0x42ceec([0x61,0x74,0x6f,0x62])](_0x3670c9[_0x42ceec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x42ceec([0x2b]))[_0x42ceec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x42ceec([0x2f])));}function _0x3a14f7(_0x3f55d4){let _0x86ebb7=0x1505;function _0x4b3119(_0x22db2b){for(let _0x283500=0x0;_0x283500<_0x22db2b[_0x42ceec([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x283500++){const _0x357578=_0x22db2b[_0x42ceec([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x283500);_0x86ebb7=(_0x86ebb7<<0x5)+_0x86ebb7+_0x357578,_0x86ebb7&=_0x86ebb7;}}function _0x2dfd63(_0x58183a){Array[_0x42ceec([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x58183a)?_0x58183a[_0x42ceec([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2dfd63):_0x58183a&&typeof _0x58183a==_0x42ceec([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x42ceec([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x58183a)[_0x42ceec([0x73,0x6f,0x72,0x74])]()[_0x42ceec([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x232b9b,_0x55da90])=>{_0x4b3119(_0x232b9b),_0x2dfd63(_0x55da90);}):_0x4b3119(window[_0x42ceec([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x58183a));}return _0x2dfd63(_0x3f55d4),_0x86ebb7>>>0x0;}function _0xe92941(_0x1a79ce){return _0x1a79ce[_0x42ceec([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x42ceec([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x42ceec([0x30]));}function _0x5ce67a(_0x11ec50){return _0x11ec50[_0x42ceec([0x73,0x70,0x6c,0x69,0x74])]('')[_0x42ceec([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x42ceec([0x6a,0x6f,0x69,0x6e])]('');}function _0x3d947a(_0x26bb06){return _0x586245[_0x42ceec([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x42ceec([0x68,0x61,0x73])](_0x26bb06);}function _0x4e4dec(_0xc34ebe){return _0x586245[_0x42ceec([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x42ceec([0x67,0x65,0x74])](_0xc34ebe);}function _0x5d7225(){}function _0x42ceec(_0xd01e46){return _0xd01e46['map'](_0x16dc7b=>String['fromCharCode'](_0x16dc7b))['join']('');}_0x54fadf(await _0x40169d());}(this);}set['adapter'](_0x26b562){if(this['_adapter'])throw new _0x840840('track-changes-adapter-already-set',this);this['_adapter']=_0x26b562;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3cc5eb=!0x1,toJSON:_0x44e0bb=!0x1}={}){const _0x2251fa=[];for(const _0x4d9631 of this['_suggestions']['values']())_0x3cc5eb&&!_0x4d9631['isInContent']||_0x2251fa['push'](_0x4d9631);return _0x44e0bb?_0x2251fa['map'](_0x346e81=>_0x346e81['toJSON']()):_0x2251fa;}['getSuggestion'](_0xdb1645){const _0x2fc52f=this['_suggestions']['get'](_0xdb1645);if(!_0x2fc52f)throw new _0x840840('track-changes-suggestion-not-found',this);return _0x2fc52f;}['hasSuggestion'](_0x1040de){return this['_suggestions']['has'](_0x1040de);}['addSuggestionData'](_0x422bf0){const {authorId:_0x5b1639,id:_0x482d04,originalSuggestionId:_0xe3fd45,attributes:_0x3aa408}=_0x422bf0,[_0x3674c7,_0x5266f8]=_0x422bf0['type']['split'](':'),_0x5fe1e3=this['_suggestions']['get'](_0x482d04)||this['_createSuggestion'](_0x3674c7,_0x5266f8,_0x482d04,_0x5b1639,_0x3aa408,_0xe3fd45);if(this['_addThreadToSuggestion'](_0x5fe1e3),this['_checkSuggestionCorrectness'](_0x5fe1e3,_0x3674c7,_0x5266f8||null,_0x5b1639),_0x5fe1e3['createdAt']=_0x422bf0['createdAt'],_0x5fe1e3['_isDataLoaded']=!0x0,_0x3aa408&&_0x3aa408['@external']){const _0x26372b=_0x3aa408['@external'],_0x5d2365=this['_getExternalAuthor'](_0x26372b['authorName']);_0x5fe1e3['authoredAt']=_0x26372b['createdAt'],_0x5fe1e3['author']=_0x5d2365,_0x5fe1e3['isExternal']=!0x0;}else _0x5fe1e3['authoredAt']=_0x422bf0['createdAt'];switch(_0x422bf0['data']&&(_0x5fe1e3['data']=_0x422bf0['data']),_0x422bf0['attributes']&&(_0x5fe1e3['attributes']=_0x422bf0['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5fe1e3['_saved']=!0x0),this['_suggestionState']['get'](_0x5fe1e3)){case'notReady':this['_suggestionState']['set'](_0x5fe1e3,'dataReady');break;case'markerReady':_0x5fe1e3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5fe1e3])),this['_refreshSuggestionsChain'](new Set([_0x5fe1e3])),this['_suggestionState']['set'](_0x5fe1e3,'ready'),this['fire']('suggestionLoaded',_0x5fe1e3)):this['_suggestionState']['set'](_0x5fe1e3,'removed');}return _0x5fe1e3;}['acceptSuggestion'](_0x2c2951){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5b148a of _0x2c2951['getAllAdjacentSuggestions']())_0x5b148a['accept']();});});}['discardSuggestion'](_0x23835d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x30d6b9 of _0x23835d['getAllAdjacentSuggestions']())_0x30d6b9['discard']();});});}['enableCommand'](_0x58a8de,_0x73c6){const _0x4ccbc7=this['editor']['commands']['get'](_0x58a8de);if(!_0x4ccbc7)throw new _0x840840('track-changes-command-not-found',this,{'commandName':_0x58a8de});if(this['_enabledCommands']['has'](_0x4ccbc7))throw new _0x840840('track-changes-enable-command-twice',this,{'commandName':_0x58a8de});this['_enabledCommands']['add'](_0x4ccbc7),_0x73c6&&_0x4ccbc7['on']('execute',(_0xb0dce8,_0x46a38e)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x46a38e['length']>0x0&&_0x46a38e[_0x46a38e['length']-0x1]&&_0x46a38e[_0x46a38e['length']-0x1]['forceDefaultExecution']?_0x46a38e['pop']():(_0xb0dce8['return']=_0x73c6((..._0xdb9cdf)=>_0x4ccbc7['execute'](..._0xdb9cdf,{'forceDefaultExecution':!0x0}),..._0x46a38e),_0xb0dce8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3869fd){let _0x474a93,_0x251546;const _0x175109=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x474a93=_0x3869fd();}catch(_0x49bf94){_0x251546=_0x49bf94;}return _0x175109||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x251546&&_0x840840['rethrowUnexpectedError'](_0x251546,this),_0x474a93;}['markInsertion'](_0x5b8b6a,_0xe25219=null,_0x533314={}){if(_0x5b8b6a['isCollapsed'])return null;const _0x3b910b=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x533314['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x12da31,meta:_0x1a46f2}of this['_findSuggestions'](_0x5b8b6a,'insertion'))if(_0x1a46f2['isOwn']){if(!_0x1a46f2['isNextTo']){if(_0x1a46f2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x12da31,_0x533314))continue;return _0x12da31;}if(Xt(_0x12da31,_0x533314))return _0x12da31;this['_breakSuggestionMarker'](_0x12da31,_0x5b8b6a['start'],_0x5b8b6a['end']);break;}if(_0xe25219==_0x12da31['subType']&&Xt(_0x12da31,_0x533314)){const _0x58cb06=_0x12da31['getFirstRange']();return _0x58cb06['start']['isEqual'](_0x5b8b6a['end'])?this['_setSuggestionRange'](_0x12da31,this['_model']['createRange'](_0x5b8b6a['start'],_0x58cb06['end'])):this['_setSuggestionRange'](_0x12da31,this['_model']['createRange'](_0x58cb06['start'],_0x5b8b6a['end'])),_0x12da31;}}const _0x3669d5=_0x1526c3(),_0x3ceaee=_0x3b910b['id'],_0x449813=_0xe25219?'insertion:'+_0xe25219:'insertion',_0x20dd02=this['_setSuggestionData']({'id':_0x3669d5,'type':_0x449813,'createdAt':new Date(),'authorId':_0x3ceaee,'attributes':_0x533314});return this['_addSuggestionMarker'](_0x449813,_0x3669d5,_0x3ceaee,_0x5b8b6a),_0x20dd02;}['markMultiRangeInsertion'](_0x4c9cbe,_0x44d428='multi',_0x5f2848={}){const _0x422823=this['editor']['plugins']['get']('Users')['me'],_0x5241b5=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x44d428,'join');this['_trackingSessionId']&&(_0x5f2848['trackingSessionId']=this['_trackingSessionId']);for(const _0x5f1d19 of this['getSuggestions']())if(_0x5f1d19['author']['id']==_0x422823['id']&&'insertion'==_0x5f1d19['type']&&_0x5f1d19['subType']==_0x44d428&&Xt(_0x5f1d19,_0x5f2848)&&(_0x5241b5(_0x5f1d19['getRanges'](),_0x4c9cbe)||_0x5241b5(_0x4c9cbe,_0x5f1d19['getRanges']()))){for(const _0x2c74f1 of _0x4c9cbe)_0x5f1d19['addRange'](_0x2c74f1);return _0x5f1d19;}for(const {suggestion:_0x24c977,meta:_0x16dadb}of this['_findSuggestions'](_0x4c9cbe,'insertion')){if(!_0x16dadb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x16dadb['containsRangeInObject'])continue;if(!Xt(_0x24c977,_0x5f2848))continue;let _0x37a8ee=!0x0;for(const _0x53ef5e of _0x24c977['getRanges']())for(const _0xfd2c9f of _0x4c9cbe)if(!_0x53ef5e['containsRange'](_0xfd2c9f)){_0x37a8ee=!0x1;break;}if(_0x37a8ee)return _0x24c977;}const _0x2d380f=_0x1526c3(),_0x483978=_0x422823['id'],_0xc9e078='insertion:'+_0x44d428,_0x372af7=this['_setSuggestionData']({'id':_0x2d380f,'type':_0xc9e078,'createdAt':new Date(),'authorId':_0x483978,'attributes':_0x5f2848});for(const _0x261596 of _0x4c9cbe)this['_addSuggestionMarker'](_0xc9e078,_0x2d380f,_0x483978,_0x261596,o['getMultiRangeId']());return _0x372af7;}['markInlineFormat'](_0x447434,_0xa843fd,_0x29e97b=null,_0x169bb8={}){if(_0x29e97b=_0x29e97b||Kt(_0xa843fd),_0x447434['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x169bb8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5d80a2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x29e97b,'accept');return this['forceDefaultExecution'](()=>_0x5d80a2([_0x447434],_0xa843fd,_0x169bb8)),null;}const _0x459eb4=this['editor']['plugins']['get']('Users')['me'],_0xc795ea=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1fe680,meta:_0x2be6fd}of this['_findSuggestions'](_0x447434,'insertion'))_0x2be6fd['isOwn']&&!_0x2be6fd['isInsideObject']&&_0xc795ea['push'](..._0x1fe680['getRanges']());}const _0x319c9d=function(_0x503af6,_0x279eb7){const _0x474b9b=[];for(const _0x5d8930 of _0x279eb7){const _0x215d72=_0x503af6['getIntersection'](_0x5d8930);_0x215d72&&_0x474b9b['push'](_0x215d72);}return _0x474b9b;}(_0x447434,_0xc795ea),_0x50fbfb=function(_0x34bed2,_0x4030ee){const _0x522537=[_0x34bed2];for(const _0x38b7b1 of _0x4030ee){let _0x10ab5d=0x0;for(;_0x10ab5d<_0x522537['length'];){const _0x1df3b0=_0x522537[_0x10ab5d]['getDifference'](_0x38b7b1);_0x522537['splice'](_0x10ab5d,0x1,..._0x1df3b0),_0x10ab5d+=_0x1df3b0['length'];}}return _0x522537;}(_0x447434,_0xc795ea);_0x319c9d['length']&&this['_model']['change'](()=>{for(const _0x5c9907 of _0x319c9d){const _0x3042f0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x29e97b,'accept');this['forceDefaultExecution'](()=>_0x3042f0([_0x5c9907],_0xa843fd,_0x169bb8));}});for(const _0x4def8d of _0x50fbfb){let _0x103a94=null,_0x3603d2=_0x4def8d['start'],_0x5e97de=_0x4def8d['end'];for(const {suggestion:_0x53e37b,meta:_0xc4e7bd}of this['_findSuggestions'](_0x4def8d,'formatInline')){if(!_0xc4e7bd['isOwn'])continue;if(_0x53e37b['subType']!=_0x29e97b)continue;if(!Xt(_0x53e37b,_0x169bb8))continue;const _0x3eac12=_0x53e37b['getFirstRange']();if(_0x3eac12['containsRange'](_0x4def8d,!0x0))return null;_0x3603d2=_0x3603d2['isBefore'](_0x3eac12['start'])?_0x3603d2:_0x3eac12['start'],_0x5e97de=_0x5e97de['isAfter'](_0x3eac12['end'])?_0x5e97de:_0x3eac12['end'],_0x103a94?_0x3eac12['start']['isBefore'](_0x103a94['getFirstRange']()['start'])?(_0x103a94['removeMarkers'](),_0x103a94=_0x53e37b):_0x53e37b['removeMarkers']():_0x103a94=_0x53e37b;}const _0x3eb5e8=this['_model']['createRange'](_0x3603d2,_0x5e97de);if(_0x103a94)this['_setSuggestionRange'](_0x103a94,_0x3eb5e8);else{const _0x360c47=_0x1526c3(),_0x900fac=_0x459eb4['id'];this['_setSuggestionData']({'id':_0x360c47,'type':'formatInline:'+_0x29e97b,'data':_0xa843fd,'createdAt':new Date(),'authorId':_0x900fac,'attributes':_0x169bb8}),this['_addSuggestionMarker']('formatInline:'+_0x29e97b,_0x360c47,_0x900fac,_0x3eb5e8);}}return null;}['markBlockFormat'](_0x2de10c,_0x434f31,_0x507914=[],_0x1d66e3=null,_0x1f7b66={}){_0x434f31['formatGroupId']||(_0x434f31['formatGroupId']=_0x434f31['commandName']),_0x434f31['multipleBlocks']=_0x2de10c['is']('range'),_0x1d66e3=_0x1d66e3||Kt(_0x434f31);const _0x137751=_0x507914['map'](_0x1d7954=>zt(_0x1d7954,this['_model'])),_0x20f788=_0x2de10c['is']('range')?_0x2de10c:zt(_0x2de10c,this['_model']);if(this['_trackingSessionId']&&(_0x1f7b66['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x245973=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d66e3,'accept');return this['forceDefaultExecution'](()=>_0x245973([_0x20f788],_0x434f31,_0x1f7b66)),null;}_0x137751['push'](_0x20f788);let _0x3b7ecf=!0x0;for(const _0x2b502b of _0x137751)if(!this['_rangeIsInLocalUserInsertion'](_0x2b502b)){_0x3b7ecf=!0x1;break;}if(_0x3b7ecf&&'always'!==this['_trackFormatChanges']){const _0x2feaf6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d66e3,'accept');return this['forceDefaultExecution'](()=>_0x2feaf6([_0x20f788],_0x434f31,_0x1f7b66)),null;}let _0x1e88cf=null,_0x2f9822=_0x20f788['start'],_0x3f99b6=_0x20f788['end'];for(const {suggestion:_0x1d4e68,meta:_0x2fbbba}of this['_findSuggestions'](_0x20f788,'formatBlock')){if(!_0x2fbbba['isOwn'])continue;if(_0x2fbbba['isNextTo']||_0x2fbbba['containsRangeInObject']||_0x2fbbba['isInsideObject'])continue;if(_0x1d4e68['data']['formatGroupId']!=_0x434f31['formatGroupId'])continue;if(!Xt(_0x1d4e68,_0x1f7b66))continue;const _0x1647e1=_0x1d4e68['getFirstRange']();if(_0x1d4e68['subType']==_0x1d66e3){if(_0x1647e1['containsRange'](_0x20f788,!0x0))return null;_0x2f9822=_0x2f9822['isBefore'](_0x1647e1['start'])?_0x2f9822:_0x1647e1['start'],_0x3f99b6=_0x3f99b6['isAfter'](_0x1647e1['end'])?_0x3f99b6:_0x1647e1['end'],_0x1e88cf?_0x1647e1['start']['isBefore'](_0x1e88cf['getFirstRange']()['start'])?(_0x1e88cf['removeMarkers'](),_0x1e88cf=_0x1d4e68):_0x1d4e68['removeMarkers']():_0x1e88cf=_0x1d4e68;}else{const _0x10d66b=_0x20f788['getIntersection'](_0x1647e1);this['_cutOutSuggestionMarker'](_0x1d4e68,_0x10d66b);}}const _0x4cb935=this['editor']['plugins']['get']('Users')['me'],_0x27ef64=_0x1526c3(),_0xe5bb92=_0x4cb935['id'];if(_0x1e88cf)return this['_setSuggestionRange'](_0x1e88cf,this['_model']['createRange'](_0x2f9822,_0x3f99b6)),_0x1e88cf;{const _0x172e07=this['_setSuggestionData']({'id':_0x27ef64,'type':'formatBlock:'+_0x1d66e3,'data':_0x434f31,'createdAt':new Date(),'authorId':_0xe5bb92,'attributes':_0x1f7b66});return this['_addSuggestionMarker']('formatBlock:'+_0x1d66e3,_0x27ef64,_0xe5bb92,this['_model']['createRange'](_0x2f9822,_0x3f99b6)),_0x172e07;}}['markMultiRangeBlockFormat'](_0x9dbb01,_0x2bd024,_0x4c8982=[],_0x521cf5=null,_0x3817db={}){_0x2bd024['formatGroupId']||(_0x2bd024['formatGroupId']=_0x2bd024['commandName']);const _0x185de1=_0x9dbb01[0x0];_0x2bd024['multipleBlocks']=_0x185de1['is']('range'),_0x521cf5=_0x521cf5||Kt(_0x2bd024);const _0x39d277=_0x4c8982['map'](_0x451da2=>zt(_0x451da2,this['_model'])),_0xc49b59=_0x185de1['is']('range')?_0x9dbb01:_0x9dbb01['map'](_0x4fcf61=>zt(_0x4fcf61,this['_model']));if(this['_trackingSessionId']&&(_0x3817db['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1b8ce5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x521cf5,'accept');return this['forceDefaultExecution'](()=>_0x1b8ce5(_0xc49b59,_0x2bd024,_0x3817db)),null;}_0x39d277['push'](..._0xc49b59);let _0x58349c=!0x0;for(const _0x217364 of _0x39d277)if(!this['_rangeIsInLocalUserInsertion'](_0x217364)){_0x58349c=!0x1;break;}if(_0x58349c&&'always'!==this['_trackFormatChanges']){const _0x2f81f7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x521cf5,'accept');return this['forceDefaultExecution'](()=>_0x2f81f7(_0xc49b59,_0x2bd024,_0x3817db)),null;}const _0x23edfa=this['editor']['plugins']['get']('Users')['me'];for(const _0x7f10b3 of this['getSuggestions']()){if(_0x7f10b3['author']['id']!=_0x23edfa['id'])continue;if('formatBlock'!=_0x7f10b3['type']||_0x7f10b3['data']['formatGroupId']!=_0x2bd024['formatGroupId'])continue;if(!Xt(_0x7f10b3,_0x3817db))continue;const _0xd2e32a=_0x7f10b3['subType']==_0x521cf5;for(let _0x252810=0x0;_0x252810<_0xc49b59['length'];_0x252810++){const _0x1c3e98=_0xc49b59[_0x252810];for(const _0x4096a7 of _0x7f10b3['getMarkers']()){const _0x198d95=_0x4096a7['getRange']();if(_0x1c3e98['isEqual'](_0x198d95)){_0xd2e32a?(_0xc49b59['splice'](_0x252810,0x1),_0x252810--):_0x7f10b3['removeMarker'](_0x4096a7['name']);break;}}}}if(0x0==_0xc49b59['length'])return null;const _0x3186ec=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x521cf5,'join');for(const _0x11f557 of this['getSuggestions']())if(_0x11f557['author']['id']==_0x23edfa['id']&&'formatBlock'==_0x11f557['type']&&_0x11f557['data']['formatGroupId']==_0x2bd024['formatGroupId']&&_0x11f557['subType']==_0x521cf5&&Xt(_0x11f557,_0x3817db)&&(_0x3186ec(_0x11f557['getRanges'](),_0xc49b59)||_0x3186ec(_0xc49b59,_0x11f557['getRanges']()))){for(const _0x386839 of _0xc49b59)_0x11f557['addRange'](_0x386839);return _0x11f557;}const _0x433de9=_0x1526c3(),_0x1e3b52=_0x23edfa['id'],_0xbe0226='formatBlock:'+_0x521cf5,_0x2b4d2b=this['_setSuggestionData']({'id':_0x433de9,'type':_0xbe0226,'data':_0x2bd024,'createdAt':new Date(),'authorId':_0x1e3b52,'attributes':_0x3817db});for(const _0x27698d of _0xc49b59)this['_addSuggestionMarker'](_0xbe0226,_0x433de9,_0x1e3b52,_0x27698d,o['getMultiRangeId']());return _0x2b4d2b;}['markDeletion'](_0x565518,_0x12a037=null,_0x31a007={}){if(_0x565518['isCollapsed'])return null;const _0x1de17f=this['editor']['plugins']['get']('Users')['me'],_0x34526c=new _0x34c04c(_0x565518['start'],_0x565518['end']);this['_trackingSessionId']&&(_0x31a007['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x438a5e,meta:_0x5eea78}of this['_findSuggestions'](_0x34526c,'insertion'))if(_0x5eea78['isOwn']&&!_0x5eea78['isNextTo']){if(_0x438a5e['isMultiRange']){const _0x14816c=_0x438a5e['getRanges']()['filter'](_0x13875b=>'$graveyard'!=_0x13875b['root']['rootName']);_0x14816c['every'](_0x42eded=>_0x34526c['containsRange'](_0x42eded,!0x0))&&_0x438a5e['discard']();if(_0x14816c['some'](_0x54d803=>_0x54d803['containsRange'](_0x34526c,!0x0))){const _0x1a4723=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x12a037,'accept');return this['forceDefaultExecution'](()=>_0x1a4723([_0x34526c],null,_0x31a007)),null;}}else{const _0x53ff94=_0x34526c['getIntersection'](_0x438a5e['getFirstRange']());null!==_0x53ff94&&_0x438a5e['_onDiscard']([_0x53ff94],null,_0x31a007);}}if(_0x34526c['detach'](),_0x34526c['isCollapsed']||'$graveyard'==_0x34526c['root']['rootName'])return null;let _0x28e8a2=null,_0x509e5a=_0x34526c['start'],_0x4f0e79=_0x34526c['end'];const _0x5211d2=this['_findSuggestions'](_0x34526c,'deletion');for(const {suggestion:_0x10803c,meta:_0x1859ca}of _0x5211d2){const _0xae0d5c=this['_model']['createRange'](_0x509e5a,_0x4f0e79);if(_0x1859ca['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1859ca['containsRangeInObject']&&!_0x1859ca['isInsideObject'])){if(_0x10803c['isMultiRange']){if(!Xt(_0x10803c,_0x31a007))continue;let _0x19307b=!0x0;for(const _0x3730df of _0x10803c['getRanges']()){if(_0x3730df['containsRange'](_0xae0d5c,!0x0))return _0x10803c;_0xae0d5c['containsRange'](_0x3730df)||(_0x19307b=!0x1);}_0x19307b&&_0x10803c['discard']();}else{const _0x1b534b=_0x10803c['getFirstRange']();if(_0x1b534b['containsRange'](_0xae0d5c,!0x0))return _0x10803c;if(!Xt(_0x10803c,_0x31a007)){_0xae0d5c['containsRange'](_0x1b534b)?_0x10803c['removeMarkers']():_0x1b534b['containsPosition'](_0x509e5a)?_0x509e5a=_0x1b534b['end']:_0x1b534b['containsPosition'](_0x4f0e79)&&(_0x4f0e79=_0x1b534b['start']);continue;}_0x509e5a=_0x509e5a['isBefore'](_0x1b534b['start'])?_0x509e5a:_0x1b534b['start'],_0x4f0e79=_0x4f0e79['isAfter'](_0x1b534b['end'])?_0x4f0e79:_0x1b534b['end'],_0x31a007=Object['assign']({},_0x10803c['attributes']),_0x28e8a2?_0x1b534b['start']['isBefore'](_0x28e8a2['getFirstRange']()['start'])?(_0x28e8a2['removeMarkers'](),_0x28e8a2=_0x10803c):_0x10803c['removeMarkers']():_0x28e8a2=_0x10803c;}}}if(_0x28e8a2)return this['_setSuggestionRange'](_0x28e8a2,this['_model']['createRange'](_0x509e5a,_0x4f0e79)),_0x28e8a2;{const _0x5a45b2=_0x1526c3(),_0x471ecd=this['_model']['createRange'](_0x509e5a,_0x4f0e79),_0x5a4f96=_0x1de17f['id'],_0x4c3a39=_0x12a037?'deletion:'+_0x12a037:'deletion',_0x535f24=this['_setSuggestionData']({'id':_0x5a45b2,'type':_0x4c3a39,'createdAt':new Date(),'authorId':_0x5a4f96,'attributes':_0x31a007});return this['_addSuggestionMarker'](_0x4c3a39,_0x5a45b2,_0x5a4f96,_0x471ecd),_0x535f24;}}['markMultiRangeDeletion'](_0x29f5da,_0xc4f966='multi',_0x2c2aac={}){const _0x6c39ba=this['editor']['plugins']['get']('Users')['me'],_0x2d498f=_0x29f5da['map'](_0x27c290=>new _0x34c04c(_0x27c290['start'],_0x27c290['end'])),_0x508f41=new Set();this['_trackingSessionId']&&(_0x2c2aac['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x290570,meta:_0x1ab9c7}of this['_findSuggestions'](_0x2d498f,'insertion'))_0x1ab9c7['isOwn']&&!_0x1ab9c7['isNextTo']&&_0x508f41['add'](_0x290570);for(const _0x4897d2 of _0x508f41)if(_0x4897d2['isMultiRange']){const _0x2a3824=_0x4897d2['getRanges']();(!_0x4897d2['attributes']||!_0x4897d2['attributes']['skipNestingCheck'])&&(_0x2a3824['every'](_0x27c6cf=>_0x2d498f['some'](_0x4f334a=>_0x4f334a['containsRange'](_0x27c6cf,!0x0)))&&_0x4897d2['discard']());if(_0x2d498f['every'](_0x5517ad=>_0x2a3824['some'](_0x540225=>_0x540225['containsRange'](_0x5517ad,!0x0)))){const _0x1c8298=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc4f966,'accept');return this['forceDefaultExecution'](()=>_0x1c8298(_0x29f5da,null,_0x2c2aac)),null;}}else{const _0x19956e=_0x4897d2['getFirstRange']();_0x2d498f['some'](_0x3c019e=>_0x3c019e['containsRange'](_0x19956e,!0x0))&&_0x4897d2['discard']();if(_0x2d498f['every'](_0x356cd9=>_0x19956e['containsRange'](_0x356cd9,!0x0))){const _0x1e981d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc4f966,'accept');return this['forceDefaultExecution'](()=>_0x1e981d(_0x2d498f,null,_0x2c2aac)),null;}}const _0x59ae1f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc4f966,'join');let _0x1fe9a8=null;for(const _0x170b03 of this['getSuggestions']())if(_0x170b03['author']['id']==_0x6c39ba['id']&&_0x170b03['isInContent']&&'deletion'==_0x170b03['type']&&_0x170b03['subType']==_0xc4f966&&Xt(_0x170b03,_0x2c2aac)&&(_0x59ae1f(_0x170b03['getRanges'](),_0x2d498f)||_0x59ae1f(_0x2d498f,_0x170b03['getRanges']()))){if(_0x1fe9a8){if(_0x170b03['commentThread']&&_0x170b03['commentThread']['length'])continue;for(const _0x586b63 of _0x170b03['getRanges']())_0x1fe9a8['isIntersectingWithRange'](_0x586b63)||_0x1fe9a8['addRange'](_0x586b63);_0x170b03['removeMarkers']();}else{_0x1fe9a8=_0x170b03;for(const _0x349d04 of _0x2d498f)_0x170b03['isIntersectingWithRange'](_0x349d04)||_0x170b03['addRange'](_0x349d04);}}if(_0x1fe9a8)return _0x1fe9a8;_0x508f41['clear']();for(const {suggestion:_0x12aa1e,meta:_0x34534c}of this['_findSuggestions'](_0x2d498f,'deletion'))_0x34534c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x34534c['containsRangeInObject']&&!_0x34534c['isInsideObject'])&&Xt(_0x12aa1e,_0x2c2aac)&&_0x508f41['add'](_0x12aa1e);for(const _0x300506 of _0x508f41){const _0x470d62=_0x300506['getRanges']();if(!_0x2c2aac||!_0x2c2aac['skipNestingCheck']){if(_0x2d498f['every'](_0x523a78=>_0x470d62['some'](_0x4f1caf=>_0x4f1caf['containsRange'](_0x523a78,!0x0))))return _0x300506;}(!_0x300506['attributes']||!_0x300506['attributes']['skipNestingCheck'])&&(_0x470d62['every'](_0x55aa55=>_0x2d498f['some'](_0x484a4f=>_0x484a4f['containsRange'](_0x55aa55,!0x0)))&&_0x300506['discard']());}const _0x1a95aa=_0x1526c3(),_0x37dc8e=_0x6c39ba['id'],_0x437f21='deletion:'+_0xc4f966,_0x307c38=this['_setSuggestionData']({'id':_0x1a95aa,'type':_0x437f21,'createdAt':new Date(),'authorId':_0x37dc8e,'attributes':_0x2c2aac});for(const _0x39e738 of _0x2d498f)_0x39e738['detach'](),_0x39e738['isCollapsed']||'$graveyard'==_0x39e738['root']['rootName']||this['_addSuggestionMarker'](_0x437f21,_0x1a95aa,_0x37dc8e,_0x39e738,o['getMultiRangeId']());return _0x307c38;}['markAttributeChange'](_0x1e7b81,_0x40b2fd,_0x3b6047,_0x111f04,_0x19fe48){if(_0x1e7b81['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x566dd5=this['editor']['plugins']['get']('Users')['me']['id'],_0x5ce86f=Array['from'](this['_suggestions']['values']())['filter'](_0x2f4f6a=>'attribute'==_0x2f4f6a['type']&&_0x2f4f6a['data']['key']==_0x40b2fd&&_0x2f4f6a['isIntersectingWithRange'](_0x1e7b81));if(this['_trackingSessionId']&&(_0x19fe48['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x51b2e1=this['_findSuggestions'](_0x1e7b81,'insertion')['filter'](({meta:_0x4b1a91})=>_0x4b1a91['isOwn']&&!_0x4b1a91['isInsideObject']&&!_0x4b1a91['isNextTo'])['map'](({suggestion:_0x288b96})=>_0x288b96);_0x5ce86f['unshift'](..._0x51b2e1);}const _0x5c4156=new Map([[_0x1e7b81,_0x3b6047]]);for(const _0x1c546e of _0x5ce86f){const _0xf00b2d='attribute'==_0x1c546e['type']?_0x1c546e['data']['oldValue']:void 0x0,_0x5ccaa7=_0x1c546e['getFirstRange'](),_0x4a07c2=Array['from'](_0x5c4156['keys']())['find'](_0x53b13b=>_0x53b13b['isIntersecting'](_0x5ccaa7));if(!_0x4a07c2)continue;const _0x3991e6=_0x4a07c2['getDifference'](_0x5ccaa7);this['_isBlockAttribute'](_0x40b2fd)&&'insertion'==_0x1c546e['type']&&0x0!=_0x3991e6['length']||(_0x5c4156['delete'](_0x4a07c2),_0x3991e6['forEach'](_0x2a7b95=>{_0x5c4156['set'](_0x2a7b95,_0x3b6047);}),'insertion'!=_0x1c546e['type']&&_0xf00b2d!=_0x111f04&&_0x5c4156['set'](_0x4a07c2['getIntersection'](_0x5ccaa7),_0xf00b2d));}const _0x46a355=[];for(const [_0x3e0938,_0x58508d]of _0x5c4156){const _0x544b25=_0x1526c3(),_0x1f165b={'key':_0x40b2fd,'oldValue':_0x58508d,'newValue':_0x111f04};_0x40b2fd['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':_0x40b2fd});const _0x385df6=('attribute:'+(_0x40b2fd+'|'+Kt({'newValue':_0x111f04})))['substring'](0x0,0x3c),_0x433c79=this['_setSuggestionData']({'id':_0x544b25,'type':_0x385df6,'data':_0x1f165b,'createdAt':new Date(),'authorId':_0x566dd5,'attributes':_0x19fe48});_0x46a355['push'](_0x433c79),this['_addSuggestionMarker'](_0x385df6,_0x544b25,_0x566dd5,_0x3e0938);}return _0x46a355;}['enableDefaultAttributesIntegration'](_0x49fa09){this['enableCommand'](_0x49fa09,(_0x19d03b,..._0x16b803)=>{this['_recordAttributeChanges'](()=>{_0x19d03b(..._0x16b803);});});}['registerBlockAttribute'](_0x239b37){this['_blockAttributeKeys']['add'](_0x239b37);}['registerInlineAttribute'](_0xe0a7c2){this['_inlineAttributeKeys']['add'](_0xe0a7c2);}['startTrackingSession'](_0x1b2351){return this['_trackingSessionId']=void 0x0!==_0x1b2351?_0x1b2351:_0x1526c3(),this['_trackingSessionId'];}['_getAttributeKey'](_0x27ea96){return'attribute'==_0x27ea96['type']?_0x27ea96['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1b8530,_0x1053f6){const _0x43ffba=_0x1b8530['getFirstMarker']();this['_model']['change'](_0x3a49fa=>{_0x3a49fa['updateMarker'](_0x43ffba,{'range':_0x1053f6});});}['_addThreadToSuggestion'](_0x123f24){const _0xa4ae6a=_0x123f24['id'],_0x150616=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xa4ae6a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x150616,'threadId':_0xa4ae6a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x547bfa=this['_commentsRepository']['getCommentThread'](_0xa4ae6a);_0x547bfa['unbind']('isRemovable'),_0x547bfa['isRemovable']=!0x1,_0x123f24['commentThread']=_0x547bfa;}['_checkSuggestionCorrectness'](_0xbb5aed,_0x5bc7c8,_0x3c6ebb,_0xaf380a){if(_0xbb5aed['type']!=_0x5bc7c8||_0xbb5aed['subType']!=_0x3c6ebb||_0xbb5aed['creator']['id']!=_0xaf380a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x840840('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x524c6b,_0x4f79d5){const _0x14192e=_0x524c6b['getFirstRange']();if(_0x4f79d5['isEqual'](_0x14192e))_0x524c6b['removeMarkers']();else{if(_0x14192e['containsRange'](_0x4f79d5)){const _0x3514c1=this['_model']['createPositionAt'](_0x4f79d5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x524c6b,this['_model']['createRange'](_0x14192e['start'],_0x3514c1));const _0x1597d9=_0x1526c3(),_0x52722a=_0x524c6b['creator']['id'],_0x341bed=_0x524c6b['type']+':'+_0x524c6b['subType'];this['_setSuggestionData']({'id':_0x1597d9,'type':_0x341bed,'createdAt':new Date(),'authorId':_0x52722a,'data':_0x524c6b['data'],'attributes':_0x524c6b['attributes']});const _0x42ef02=this['_model']['createPositionAt'](_0x4f79d5['end']['parent'],'after'),_0x5a51d7=this['_model']['createRange'](_0x42ef02,_0x14192e['end']);this['_addSuggestionMarker'](_0x341bed,_0x1597d9,_0x52722a,_0x5a51d7);}else{if(_0x14192e['containsPosition'](_0x4f79d5['start'])){const _0x3da54c=this['_model']['createPositionAt'](_0x4f79d5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x524c6b,this['_model']['createRange'](_0x14192e['start'],_0x3da54c));}else{const _0x4c72ff=this['_model']['createPositionAt'](_0x4f79d5['end']['parent'],'after');this['_setSuggestionRange'](_0x524c6b,this['_model']['createRange'](_0x4c72ff,_0x14192e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x346ea2){for(const {suggestion:_0x4aa38a,meta:_0x39eaf4}of this['_findSuggestions'](_0x346ea2,'insertion')){if(!_0x39eaf4['isOwn'])continue;const _0x4f1130=_0x4aa38a['getRanges']();for(const _0x1caf12 of _0x4f1130)if(!_0x346ea2['getDifference'](_0x1caf12)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x55de52){const _0x486f7c=this['editor']['plugins']['get']('Users')['getUser'](_0x55de52);if(!_0x486f7c)throw new _0x840840('track-changes-user-not-found',this);return _0x486f7c;}['_getExternalAuthor'](_0x383b65){const _0x56b4de=this['editor']['plugins']['get']('Users'),_0x33cff3=_0x3429f2('external:'+_0x383b65),_0x7cd74=_0x56b4de['getUser'](_0x33cff3);return _0x7cd74||_0x56b4de['addUser']({'id':_0x33cff3,'name':_0x383b65});}['_createSuggestion'](_0x4f207b,_0x405a28,_0x13d9c8,_0x4847e7,_0x4c3e33,_0x186cec){const _0x2ed397=this['_getAuthorFromId'](_0x4847e7),_0x45e4a8=this['_suggestionFactory']['buildSuggestion'](_0x4f207b,_0x405a28,_0x13d9c8,_0x2ed397,_0x4c3e33,_0x3883ab=>{this['_updateSuggestionData'](_0x13d9c8,{'attributes':_0x3883ab});const _0x59a4b0=this['getSuggestion'](_0x13d9c8);this['_joinWithAdjacentSuggestions'](new Set([_0x59a4b0])),this['_refreshSuggestionsChain'](new Set([_0x59a4b0]));},_0x186cec);return this['listenTo'](_0x45e4a8,'accept',()=>{this['_updateSuggestionData'](_0x13d9c8,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x45e4a8,'discard',()=>{this['_updateSuggestionData'](_0x13d9c8,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x13d9c8,_0x45e4a8),this['_suggestionState']['set'](_0x45e4a8,'notReady'),_0x45e4a8;}['_splitMarkerName'](_0x5137c0){const _0x4eae54=_0x5137c0['split'](':');return{'group':_0x4eae54[0x0],'type':_0x4eae54[0x1],'subType':_0x4eae54['length']>=0x5?_0x4eae54[0x2]:null,'id':_0x4eae54['length']<0x5?_0x4eae54[0x2]:_0x4eae54[0x3],'authorId':_0x4eae54['length']<0x5?_0x4eae54[0x3]:_0x4eae54[0x4],'markerCount':0x6==_0x4eae54['length']?_0x4eae54[0x5]:null};}['_breakSuggestionMarker'](_0x5308c8,_0x2c3cb2,_0xaf4aec){const _0x4170b4=_0x5308c8['getFirstRange'](),_0x3234cc=_0x4170b4['start'],_0x449872=_0x4170b4['end'];this['_setSuggestionRange'](_0x5308c8,this['_model']['createRange'](_0x3234cc,_0x2c3cb2));const _0xaf7269=_0x1526c3(),_0xa27ab8=_0x5308c8['creator']['id'],_0x54e8ed=_0x5308c8['type']+(_0x5308c8['subType']?':'+_0x5308c8['subType']:'');this['_setSuggestionData']({'id':_0xaf7269,'type':_0x54e8ed,'createdAt':new Date(),'authorId':_0xa27ab8,'originalSuggestionId':_0x5308c8['_originalSuggestionId']||_0x5308c8['id'],'attributes':_0x5308c8['attributes'],'data':_0x5308c8['data']});const _0x3d603d=this['_getAttributeKey'](_0x5308c8);('formatBlock'==_0x5308c8['type']||_0x3d603d&&this['_isBlockAttribute'](_0x3d603d))&&(_0xaf4aec=this['_model']['createPositionBefore'](_0xaf4aec['parent'])),this['_addSuggestionMarker'](_0x54e8ed,_0xaf7269,_0xa27ab8,this['_model']['createRange'](_0xaf4aec,_0x449872));}['_findSuggestions'](_0x3712e7,_0x324e13=null){const _0x431c02=[],_0x413df4=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3712e7)||(_0x3712e7=[_0x3712e7]);for(const _0x1c0078 of this['getSuggestions']()){if(!_0x1c0078['isInContent'])continue;if(_0x324e13&&_0x1c0078['type']!=_0x324e13)continue;let _0x422a88=!0x1;for(const _0x57383c of _0x1c0078['getRanges']()){for(const _0x3bf4e1 of _0x3712e7){const _0x30d32a=_0x3bf4e1['start']['isEqual'](_0x57383c['end'])||_0x3bf4e1['end']['isEqual'](_0x57383c['start']);if(_0x30d32a||_0x3bf4e1['getIntersection'](_0x57383c)){const _0x25d045=_0x3bf4e1['containsRange'](_0x57383c)&&Gt(this['_model']['schema'],_0x57383c['start'],_0x3bf4e1),_0x581792=_0x57383c['containsRange'](_0x3bf4e1)&&Gt(this['_model']['schema'],_0x3bf4e1['start'],_0x57383c);_0x431c02['push']({'suggestion':_0x1c0078,'meta':{'isOwn':_0x413df4==_0x1c0078['author'],'isNextTo':_0x30d32a,'isInsideObject':_0x25d045,'containsRangeInObject':_0x581792}}),_0x422a88=!0x0;break;}}if(_0x422a88)break;}}return _0x431c02;}['_addSuggestionMarker'](_0x40fe3f,_0x5157fe,_0x16b9c6,_0xe07ce7,_0xc3cb91){this['_model']['change'](_0x1a06d5=>{let _0x2092e8='suggestion:'+_0x40fe3f+':'+_0x5157fe+':'+_0x16b9c6;_0xc3cb91&&(_0x2092e8=_0x2092e8+':'+_0xc3cb91),_0x1a06d5['addMarker'](_0x2092e8,{'range':_0xe07ce7,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xd95503){const _0x411d29=_0xd95503['previous'],_0x2b410b=_0xd95503['next'];_0xd95503['previous']=null,_0xd95503['next']=null,null!=_0x411d29&&_0x411d29['next']==_0xd95503&&(_0x411d29['next']=_0x2b410b),null!=_0x2b410b&&_0x2b410b['previous']==_0xd95503&&(_0x2b410b['previous']=_0x411d29),'ready'==this['_suggestionState']['get'](_0xd95503)&&(this['_suggestionState']['set'](_0xd95503,'removed'),this['fire']('suggestionUnloaded',_0xd95503,_0x411d29,_0x2b410b));}['_setSuggestionData'](_0x1fb463){const _0x1cd43d=_0x1fb463['id'],_0xc5fd9b=this['addSuggestionData'](_0x1fb463);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x248a5e=this['editor']['plugins']['get']('PendingActions'),_0x3f6fcb=_0xc5fd9b['hasComments'],_0x4bcdf9=_0xc5fd9b['subType']?_0xc5fd9b['type']+':'+_0xc5fd9b['subType']:_0xc5fd9b['type'],_0x1c2c03=this['editor']['locale'],_0x4d2b50=_0x248a5e['add'](c(_0x1c2c03,'PENDING_ACTION_SUGGESTION')),_0x2ba95f={'id':_0x1cd43d,'type':_0x4bcdf9,'hasComments':_0x3f6fcb,'data':_0x1fb463['data']||null,'originalSuggestionId':_0x1fb463['originalSuggestionId']||null,'attributes':_0xc5fd9b['attributes']};this['_adapter']['addSuggestion'](_0x2ba95f)['then'](_0x24a07f=>{_0xc5fd9b['_saved']=!0x0,_0x248a5e['remove'](_0x4d2b50),_0x24a07f&&_0x24a07f['createdAt']&&(this['_suggestions']['get'](_0x1cd43d)['createdAt']=_0x24a07f['createdAt']);})['catch'](_0x352cce=>{throw _0x7bbe75('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xc5fd9b['discard']();}),_0xc5fd9b['stopListening'](),this['_suggestions']['delete'](_0xc5fd9b['id']),this['_suggestionState']['delete'](_0xc5fd9b),_0x352cce;});}return _0xc5fd9b;}['_isBlockAttribute'](_0x3190c3){return this['_blockAttributeKeys']['has'](_0x3190c3);}['_updateSuggestionData'](_0x2ffc43,_0x39d80d){const _0x17423b=this['editor']['plugins']['get']('PendingActions'),_0x1249c3=this['getSuggestion'](_0x2ffc43);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1249c3['_saved']){const _0x264e6b=_0x17423b['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2ffc43,_0x39d80d)['then'](()=>{_0x17423b['remove'](_0x264e6b);});}else _0x1249c3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2ffc43,_0x39d80d);});}}['_getSuggestionData'](_0x3a6707){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x840840('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3a6707);}['_handleNewSuggestionMarker'](_0x1c73c8){const {id:_0x5525c6,type:_0x13667b,subType:_0x21acad,authorId:_0x5c1c78}=this['_splitMarkerName'](_0x1c73c8),_0x3f0761=this['_suggestions']['get'](_0x5525c6)||this['_createSuggestion'](_0x13667b,_0x21acad,_0x5525c6,_0x5c1c78,{});switch(this['_checkSuggestionCorrectness'](_0x3f0761,_0x13667b,_0x21acad,_0x5c1c78),this['_suggestionState']['get'](_0x3f0761)){case'notReady':this['_getSuggestionData'](_0x5525c6)['then'](_0x239775=>{let _0x4b0d67=Promise['resolve']();_0x239775['hasComments']&&(_0x4b0d67=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5525c6})),_0x4b0d67['then'](()=>{this['addSuggestionData'](_0x239775)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3f0761,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5525c6,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3f0761,'ready'),this['fire']('suggestionLoaded',_0x3f0761);break;case'ready':this['fire']('suggestionChanged',_0x3f0761);}return _0x3f0761['addMarkerName'](_0x1c73c8),_0x3f0761;}['_refreshSuggestionsChain'](_0xc2d73b){const _0x4f9a05=Array['from'](_0xc2d73b),_0x464b0e=_0x4f9a05['filter'](_0x516a21=>'attribute'==_0x516a21['type']);this['_refreshAttributeSuggestionsChain'](_0x464b0e);const _0x1efc6b=_0x4f9a05['filter'](_0x25c30a=>!_0x25c30a['isMultiRange']&&'attribute'!=_0x25c30a['type']),_0x3da19b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49e836=>!_0x49e836['isMultiRange']&&'attribute'!=_0x49e836['type']),_0x517ec8=_0x3da19b['filter'](_0xc55539=>!_0xc2d73b['has'](_0xc55539)),_0x2d06f1=new Map(_0x3da19b['map'](_0x4717c5=>[_0x4717c5,this['_suggestionFactory']['getSuggestionCallback'](_0x4717c5['type'],_0x4717c5['subType'],'chain')])),_0x27dc30=new Map(_0x3da19b['map'](_0x170e9b=>[_0x170e9b,_0x170e9b['getFirstRange']()])),_0x5ca8eb=new Set(),_0x53147e=new Set();for(let _0x180b92=0x0;_0x180b92<_0x1efc6b['length'];_0x180b92++)_0xdde84d(_0x1efc6b[_0x180b92],_0x1efc6b,_0x180b92+0x1);for(let _0x461854=0x0;_0x461854<_0x1efc6b['length'];_0x461854++)_0xdde84d(_0x1efc6b[_0x461854],_0x517ec8,0x0);const _0x488b53=new Set();for(let _0x3c4a32=0x0;_0x3c4a32<_0x1efc6b['length'];_0x3c4a32++){const _0x2812bf=_0x1efc6b[_0x3c4a32];!_0x53147e['has'](_0x2812bf)&&_0x2812bf['previous']&&(_0x488b53['add'](_0x2812bf['previous']),_0x2812bf['previous']['next']===_0x2812bf&&(_0x2812bf['previous']['next']=null),_0x2812bf['previous']=null),!_0x5ca8eb['has'](_0x2812bf)&&_0x2812bf['next']&&(_0x488b53['add'](_0x2812bf['next']),_0x2812bf['next']['previous']===_0x2812bf&&(_0x2812bf['next']['previous']=null),_0x2812bf['next']=null);}function _0xdde84d(_0x53b936,_0x8aa61e,_0x316757){for(let _0x51e15c=_0x316757;_0x51e15c<_0x8aa61e['length'];_0x51e15c++){const _0x3866b5=_0x16f6ed(_0x53b936,_0x8aa61e[_0x51e15c]);_0x3866b5&&(_0x3866b5[0x0]['next']=_0x3866b5[0x1],_0x3866b5[0x1]['previous']=_0x3866b5[0x0],_0x5ca8eb['add'](_0x3866b5[0x0]),_0x53147e['add'](_0x3866b5[0x1]));}}function _0x16f6ed(_0x1b6469,_0x4fc3d2){if(_0x1b6469['author']['id']!==_0x4fc3d2['author']['id'])return null;const _0x3eb7b8=_0x2d06f1['get'](_0x1b6469)(_0x1b6469,_0x4fc3d2,_0x27dc30['get'](_0x1b6469),_0x27dc30['get'](_0x4fc3d2));if(!_0x3eb7b8)return null;return _0x2d06f1['get'](_0x4fc3d2)(_0x1b6469,_0x4fc3d2,_0x27dc30['get'](_0x1b6469),_0x27dc30['get'](_0x4fc3d2))?_0x3eb7b8[0x1]['commentThread']&&_0x3eb7b8[0x1]['commentThread']['length']?null:_0x3eb7b8:null;}_0x488b53['size']&&this['_refreshSuggestionsChain'](_0x488b53);}['_refreshAttributeSuggestionsChain'](_0x6fb0dd){if(0x0==_0x6fb0dd['length'])return;const _0x27de76=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x306975=>'attribute'==_0x306975['type']&&_0x306975['_isDataLoaded']),_0x23432f=[],_0x414f3a=new Map();for(const _0x57b342 of _0x27de76){const _0x1acf9b=_0x3429f2(_0x57b342['attributes']);_0x414f3a['has'](_0x1acf9b)||(_0x414f3a['set'](_0x1acf9b,_0x23432f['length']),_0x23432f['push']([]));const _0x19ce06=_0x414f3a['get'](_0x1acf9b);_0x23432f[_0x19ce06]['push'](_0x57b342);}!(function(){_0x23432f['sort']((_0x2aeec6,_0x57670e)=>{const _0x5ce381=_0x2aeec6[0x0]['createdAt'],_0x40a48a=_0x57670e[0x0]['createdAt'];return _0x5ce381==_0x40a48a?_0x2aeec6[0x0]['attributes']['groupId']<_0x57670e[0x0]['attributes']['groupId']?-0x1:0x1:_0x5ce381<_0x40a48a?-0x1:0x1;});for(const _0x455919 of _0x23432f)_0x455919['sort']((_0x57e488,_0x2154a6)=>_0x57e488['id']<_0x2154a6['id']?-0x1:0x1);}());for(let _0x58fa42=0x0;_0x58fa42<_0x23432f['length'];_0x58fa42++){if(0x0==_0x23432f[_0x58fa42]['length'])continue;const _0xb9ece1=[];for(let _0x4907b3=_0x58fa42+0x1;_0x4907b3<_0x23432f['length'];_0x4907b3++)0x0!=_0x23432f[_0x4907b3]['length']&&_0x358630(_0x23432f[_0x58fa42],_0x23432f[_0x4907b3])&&_0xb9ece1['push'](_0x4907b3);for(const _0x5d8efa of _0xb9ece1)_0x23432f[_0x58fa42]=_0x23432f[_0x58fa42]['concat'](_0x23432f[_0x5d8efa]),_0x23432f[_0x5d8efa]=[];}for(const _0x4c5302 of _0x23432f)for(let _0x10bfa6=0x0;_0x10bfa6<_0x4c5302['length'];_0x10bfa6++){const _0x3be1b0=_0x4c5302[_0x10bfa6+0x1]||null;_0x4c5302[_0x10bfa6]['next']!==_0x3be1b0&&(_0x4c5302[_0x10bfa6]['next']=_0x3be1b0);}for(const _0x2d442f of _0x23432f)for(let _0x34e0e6=0x0;_0x34e0e6<_0x2d442f['length'];_0x34e0e6++){const _0x5816c9=_0x2d442f[_0x34e0e6-0x1]||null;_0x2d442f[_0x34e0e6]['previous']!==_0x5816c9&&(_0x2d442f[_0x34e0e6]['previous']=_0x5816c9);}function _0x358630(_0x549647,_0x3809ce){if(_0x549647[0x0]['attributes']['groupId']!==_0x3809ce[0x0]['attributes']['groupId']&&_0x549647[0x0]['author']!==_0x3809ce[0x0]['author'])return!0x1;if(!function(_0x2fe011,_0x2a36ee){if(!_0x2fe011['hasComments']&&!_0x2a36ee['hasComments'])return!0x0;if(_0x2fe011['hasComments']&&_0x2a36ee['hasComments'])return!0x1;if(_0x2fe011['hasComments']&&_0x2a36ee['createdAt']<_0x2fe011['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2a36ee['hasComments']&&_0x2fe011['createdAt']<_0x2a36ee['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x549647[0x0],_0x3809ce[0x0]))return!0x1;const _0x1ed499=Ft(_0x549647[0x0]['attributes'],['groupId','trackingSessionId']),_0x5f1a9b=Ft(_0x3809ce[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x550687(_0x1ed499,_0x5f1a9b))return!0x1;if(_0x549647[0x0]['attributes']['groupId']==_0x3809ce[0x0]['attributes']['groupId'])return!0x0;if(_0x549647[0x0]['attributes']['trackingSessionId']!==_0x3809ce[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x549647['every'](_0x5ea6db=>_0x3809ce['some'](_0x3b8d46=>_0x5ea6db['getFirstRange']()['isEqual'](_0x3b8d46['getFirstRange']())))&&_0x3809ce['every'](_0x1a2fd3=>_0x549647['some'](_0x2c84b8=>_0x1a2fd3['getFirstRange']()['isEqual'](_0x2c84b8['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x46ecf4){const _0x5661c5=Array['from'](_0x46ecf4),_0x120c5c=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4697aa=_0x120c5c['filter'](_0x2fed1c=>!_0x46ecf4['has'](_0x2fed1c)),_0x1ca1ca=new Map(_0x5661c5['map'](_0x2d4aae=>[_0x2d4aae,this['_suggestionFactory']['getSuggestionCallback'](_0x2d4aae['type'],_0x2d4aae['subType'],'join')])),_0xb12ed6=new Map(_0x120c5c['map'](_0x2a69a2=>[_0x2a69a2,_0x2a69a2['getRanges']()]));for(let _0x33f8ef=0x0;_0x33f8ef<_0x5661c5['length'];_0x33f8ef++){if(_0x4670d8(this,_0x5661c5[_0x33f8ef],_0x5661c5,_0x33f8ef+0x1))return!0x0;}for(let _0x5a84fa=0x0;_0x5a84fa<_0x5661c5['length'];_0x5a84fa++){if(_0x4670d8(this,_0x5661c5[_0x5a84fa],_0x4697aa,0x0))return!0x0;}return!0x1;function _0x4670d8(_0x21edd2,_0x4bd2b3,_0x4d9fb5,_0x574802){for(let _0x86dcc6=_0x574802;_0x86dcc6<_0x4d9fb5['length'];_0x86dcc6++){const _0x56437f=_0x4d9fb5[_0x86dcc6];if(_0x56437f['type']!==_0x4bd2b3['type']||_0x56437f['author']['id']!==_0x4bd2b3['author']['id']||_0x56437f['subType']!==_0x4bd2b3['subType'])continue;if(!Qt(_0x4bd2b3,_0x56437f))continue;if('attribute'==_0x4bd2b3['type']&&_0x4bd2b3['data']['oldValue']!=_0x56437f['data']['oldValue'])continue;if('attribute'==_0x4bd2b3['type']&&_0x21edd2['_isBlockAttribute'](_0x4bd2b3['data']['key']))continue;if('formatBlock'==_0x4bd2b3['type']){const _0x55c9d3=_0x21edd2['editor']['model'],_0x29ad66=_0x4bd2b3['getContainedElement']();if(_0x29ad66&&(_0x55c9d3['schema']['isObject'](_0x29ad66)||_0x55c9d3['schema']['isLimit'](_0x29ad66)))continue;}const _0x365848=_0x1ca1ca['get'](_0x4bd2b3),_0x40e41b=_0xb12ed6['get'](_0x4bd2b3),_0x233839=_0xb12ed6['get'](_0x56437f),_0x514b42=_0x4bd2b3['commentThread']&&_0x4bd2b3['commentThread']['length'],_0x4f951f=_0x56437f['commentThread']&&_0x56437f['commentThread']['length'];if(!_0x514b42&&_0x365848(_0x233839,_0x40e41b))return _0x21edd2['_joinSuggestions'](_0x56437f,_0x4bd2b3),_0xb12ed6['delete'](_0x4bd2b3),!0x0;if(!_0x4f951f&&_0x365848(_0x40e41b,_0x233839))return _0x21edd2['_joinSuggestions'](_0x4bd2b3,_0x56437f),_0xb12ed6['delete'](_0x56437f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x495832,_0x359ee9){if(_0x495832['isMultiRange']){for(const _0x387516 of _0x359ee9['getRanges']())_0x495832['addRange'](_0x387516);}else{const _0x1e36be=_0x359ee9['getFirstRange']()['end'];this['_setSuggestionRange'](_0x495832,this['_model']['createRange'](_0x495832['getFirstRange']()['start'],_0x1e36be));}_0x359ee9['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4103ce,_0x52b13c,_0x39043a){const _0x489342=_0x4103ce['startsWith']('format')||_0x4103ce['startsWith']('attribute')?'FORMATTING':_0x4103ce['toUpperCase']();return c(this['editor']['locale'],_0x52b13c+'_'+_0x489342+'_SUGGESTION_ANNOUNCEMENT',_0x39043a);}['_initAriaMarkerChangeAnnouncements'](){const _0x2402b3=this['editor'];if(!_0x2402b3['ui'])return;const {ariaLiveAnnouncer:_0x23e306}=_0x2402b3['ui'];_0x5da952(this['_model'],({left:_0x5b9d7f,entered:_0x1e87c8})=>{for(const _0x206e93 of _0x5b9d7f){const {group:_0x475553,type:_0x4d4d21}=this['_splitMarkerName'](_0x206e93['name']);if('suggestion'===_0x475553){_0x23e306['announce'](this['_getMarkerAnnouncementText'](_0x4d4d21,'LEAVE'));break;}}for(const _0x1d61dc of _0x1e87c8){const {group:_0x32a647,type:_0x3879a3}=this['_splitMarkerName'](_0x1d61dc['name']);if('suggestion'===_0x32a647){_0x23e306['announce'](this['_getMarkerAnnouncementText'](_0x3879a3,'ENTER',_0x2ee9fd(_0x2a94e6)));break;}}});}['_processAttributeChanges'](_0x1d34fb){if(this['_recordAttributeSuggestions'])return!0x1;const _0x124143=this['editor'],_0x381542=_0x124143['model']['document']['differ']['getChanges']();if(0x0==_0x381542['length'])return!0x1;const _0x3ad134=[],_0x2bdfe6=_0x381542['filter'](_0x535a72=>'attribute'==_0x535a72['type']),_0x3a4181=_0x381542['filter'](_0x2d624a=>'insert'==_0x2d624a['type']&&'$text'!=_0x2d624a['name']),_0x1b1508=_0x381542['filter'](_0x37f2d5=>'remove'==_0x37f2d5['type']&&'$text'!=_0x37f2d5['name']);for(const _0x4c5045 of _0x2bdfe6)_0x3ad134['push']({'key':_0x4c5045['attributeKey'],'newValue':_0x4c5045['attributeNewValue'],'oldValue':_0x4c5045['attributeOldValue'],'range':qt(_0x4c5045['range'],_0x124143['model'])});for(const _0x3734a3 of _0x3a4181){const _0x320435=_0x1b1508['find'](_0x1fb655=>_0x1fb655['position']['isEqual'](_0x3734a3['position']));_0x320435&&_0x3ad134['push']({'key':u,'newValue':_0x3734a3['name'],'oldValue':_0x320435['name'],'range':_0x124143['model']['createRangeOn'](_0x3734a3['position']['nodeAfter'])});}return 0x0!=_0x3ad134['length']&&this['_reduceExistingSuggestions'](_0x1d34fb,_0x3ad134);}['_processAttributeSuggestions'](_0x1841fa){let _0x31a719=!0x1;const _0x27b5f4=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x55d215=>_0x55d215['data']['newRange']&&_0x55d215['name']['startsWith']('suggestion:attribute:'));for(const _0x3c31e5 of _0x27b5f4){const {subType:_0x24b1ec,id:_0x165cdb}=this['_splitMarkerName'](_0x3c31e5['name']),_0x21461d=_0x24b1ec['split']('|')[0x0];for(const _0x175506 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x175506['id']!=_0x165cdb&&'attribute'==_0x175506['type']&&_0x175506['data']&&_0x175506['data']['key']==_0x21461d&&_0x175506['getFirstRange']()['isIntersecting'](_0x3c31e5['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x175506,_0x3c31e5['data']['newRange'],_0x1841fa),_0x31a719=!0x0);}return _0x31a719;}['_recordAttributeChanges'](_0x3eafec){this['_recordAttributeSuggestions']=!0x0,_0x3eafec();}['_isRegisteredAttribute'](_0xf7384b){const _0x3a2752=this['_isBlockAttribute'](_0xf7384b),_0x40b709=this['_inlineAttributeKeys']['has'](_0xf7384b);return _0x3a2752||_0x40b709;}['_reduceExistingSuggestions'](_0x2f5f91,_0xd231fd){if(0x0==_0xd231fd['length'])return!0x1;let _0x5135d5=!0x1;for(const _0x5975ca of _0xd231fd){const _0x1cfb0a=this['_findSuggestions'](_0x5975ca['range'],'attribute')['filter'](_0x169d5b=>!_0x169d5b['meta']['isNextTo'])['map'](_0x58f33f=>_0x58f33f['suggestion']),_0x1e0b30=_0x3429f2({'newValue':_0x5975ca['newValue']});_0x1cfb0a['filter'](_0x437c09=>{const [_0x3878b9,_0x2f323f]=_0x437c09['subType']['split']('|');return _0x3878b9==_0x5975ca['key']&&_0x2f323f!=_0x1e0b30;})['forEach'](_0x356287=>{this['_reduceSuggestionAttributeRange'](_0x356287,_0x5975ca['range'],_0x2f5f91),_0x5135d5=!0x0;});}return _0x5135d5;}['_reduceSuggestionAttributeRange'](_0x2a9b74,_0x3191eb,_0x3ddac6){const _0x204570=_0x2a9b74['getFirstRange']()['getDifference'](_0x3191eb);0x0!==_0x204570['length']?0x1!==_0x204570['length']?this['_breakSuggestionMarker'](_0x2a9b74,_0x3191eb['start'],_0x3191eb['end']):this['_setSuggestionRange'](_0x2a9b74,_0x204570[0x0]):_0x3ddac6['removeMarker'](_0x2a9b74['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x353855){this['_editor']=_0x353855,this['_model']=_0x353855['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x46968e,_0x274373,_0x192a22,_0x49dec1,_0x49f10e,_0x49383c,_0x1bcea7){return new o(this['_model'],{'type':_0x46968e,'subType':_0x274373,'id':_0x192a22,'originalSuggestionId':_0x1bcea7,'author':_0x49dec1,'creator':_0x49dec1,'attributes':_0x49f10e,'onAttributesChange':_0x49383c,'onAccept':(..._0xe80dd4)=>this['getSuggestionCallback'](_0x46968e,_0x274373,'accept')(..._0xe80dd4),'onDiscard':(..._0x5191a0)=>this['getSuggestionCallback'](_0x46968e,_0x274373,'discard')(..._0x5191a0)});}['registerCustomCallback'](_0x5a9324,_0x588ff5,_0x5c509a,_0x8ba503){const _0x308b63=_0x5a9324+':'+_0x588ff5+':'+_0x5c509a;this['_customCallbacks']['set'](_0x308b63,_0x8ba503);}['getSuggestionCallback'](_0x13dda5,_0x46423d,_0x1ee3ce){const _0x3e07cc=_0x13dda5+':'+_0x46423d+':'+_0x1ee3ce;return this['_customCallbacks']['get'](_0x3e07cc)||this['_defaultCallbacks']['get'](_0x13dda5+':'+_0x1ee3ce);}['_registerDefaultCallbacks'](){const _0x5a1fa5=()=>!0x1,_0xa68c19=_0x46088e=>{_0x46088e['sort']((_0x5b56c7,_0xffc8bf)=>_0x5b56c7['start']['isBefore'](_0xffc8bf['start'])?0x1:-0x1),this['_model']['change'](_0x30f763=>{for(const _0x4fd32f of _0x46088e){let _0x557927;_0x557927=_0x4fd32f['end']['isAtEnd']&&_0x4fd32f['end']['parent']==_0x4fd32f['start']['nodeAfter']?_0x30f763['createSelection'](_0x4fd32f['start']['nodeAfter'],'on'):_0x30f763['createSelection'](_0x4fd32f),this['_model']['deleteContent'](_0x557927,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4fa5ae=(_0x5bad93,_0x8a68e2)=>{_0x8a68e2&&this['_model']['change'](_0x246894=>{const {commandName:_0x1cef90,commandParams:_0x49d168=[]}=_0x8a68e2,_0x243def=_0x5bad93['map'](_0x53b33f=>(Lt(_0x53b33f)&&(_0x53b33f=this['_model']['createRange'](_0x53b33f['end'])),_0x53b33f))['filter'](_0x4e943b=>'$graveyard'!==_0x4e943b['root']['rootName']);if(_0x243def['length']<0x1)return;const _0x4a3820=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4b4684=>_0x34c04c['fromRange'](_0x4b4684));_0x246894['setSelection'](_0x243def);for(const _0x70ec77 of this['_editor']['commands']['commands']())_0x70ec77['refresh']();_0x49d168['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1cef90,..._0x49d168);const _0x26ca77=_0x4a3820['filter'](_0x288cd7=>'$graveyard'!=_0x288cd7['root']['rootName']);_0x26ca77['length']>0x0&&_0x246894['setSelection'](_0x26ca77);for(const _0x1cde13 of _0x4a3820)_0x1cde13['detach']();});},_0x1b3a7f=(_0x31bc8a,_0x3478e8)=>0x1==_0x31bc8a['length']&&0x1==_0x3478e8['length']&&_0x31bc8a[0x0]['end']['isEqual'](_0x3478e8[0x0]['start']),_0x5dadab=(_0x4872c2,_0x4d5335,_0x4bbd74,_0x46d0be)=>Wt(_0x4872c2,_0x4d5335,_0x4bbd74,_0x46d0be)?[_0x4872c2,_0x4d5335]:Wt(_0x4d5335,_0x4872c2,_0x46d0be,_0x4bbd74)?[_0x4d5335,_0x4872c2]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5a1fa5),this['_defaultCallbacks']['set']('insertion:discard',_0xa68c19),this['_defaultCallbacks']['set']('insertion:join',_0x1b3a7f),this['_defaultCallbacks']['set']('insertion:chain',_0x5dadab),this['_defaultCallbacks']['set']('deletion:accept',_0xa68c19),this['_defaultCallbacks']['set']('deletion:discard',_0x5a1fa5),this['_defaultCallbacks']['set']('deletion:join',_0x1b3a7f),this['_defaultCallbacks']['set']('deletion:chain',_0x5dadab),this['_defaultCallbacks']['set']('formatInline:accept',_0x4fa5ae),this['_defaultCallbacks']['set']('formatInline:discard',_0x5a1fa5),this['_defaultCallbacks']['set']('formatInline:join',_0x1b3a7f),this['_defaultCallbacks']['set']('formatInline:chain',_0x5a1fa5),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4fa5ae),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5a1fa5),this['_defaultCallbacks']['set']('formatBlock:join',_0x1b3a7f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5a1fa5),this['_defaultCallbacks']['set']('attribute:accept',_0x5a1fa5),this['_defaultCallbacks']['set']('attribute:discard',(_0x44dfb8,_0x57f851)=>{if(!_0x57f851)return;const _0x487dcc=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3c9cab=>{if(_0x57f851['key']==u)for(const _0x466330 of _0x44dfb8){const _0x4be675=_0x466330['start']['nodeAfter'],_0xa7fd6d=_0x57f851['oldValue'];_0x3c9cab['rename'](_0x4be675,_0xa7fd6d);}else{if(_0x487dcc['_isBlockAttribute'](_0x57f851['key'])){for(const _0x39cf1f of _0x44dfb8)void 0x0!==_0x57f851['oldValue']?_0x3c9cab['setAttribute'](_0x57f851['key'],_0x57f851['oldValue'],_0x39cf1f['start']['nodeAfter']):_0x3c9cab['removeAttribute'](_0x57f851['key'],_0x39cf1f['start']['nodeAfter']);}else{for(const _0x52f30e of _0x44dfb8)_0x57f851['oldValue']?_0x3c9cab['setAttribute'](_0x57f851['key'],_0x57f851['oldValue'],_0x52f30e):_0x3c9cab['removeAttribute'](_0x57f851['key'],_0x52f30e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1b3a7f);}}function Gt(_0x581743,_0x22db0c,_0x1bbfcc){for(const _0x548c9b of _0x22db0c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x548c9b['root']==_0x548c9b)return!0x1;if(!_0x1bbfcc['containsItem'](_0x548c9b))return!0x1;if(_0x581743['isObject'](_0x548c9b)||_0x581743['isLimit'](_0x548c9b))return!0x0;}return!0x1;}function Lt(_0x566bcc){return _0x566bcc['end']['parent']==_0x566bcc['start']['nodeAfter']&&_0x566bcc['end']['isAtStart'];}function Jt(_0x2bc2ce,_0x3013c8,_0x32daf9,_0x1651bd){const _0x3cbf1c=_0x48d192=>!_0x48d192['item']['is']('$textProxy')&&!_0x1651bd['isObject'](_0x48d192['item']),_0x549403=_0x2bc2ce['start']['getLastMatchingPosition'](_0x3cbf1c),_0x4ac72e=_0x2bc2ce['end']['getLastMatchingPosition'](_0x3cbf1c,{'direction':'backward'});return(!_0x2bc2ce['start']['isEqual'](_0x549403)||!_0x2bc2ce['end']['isEqual'](_0x4ac72e))&&(_0x549403['isBefore'](_0x4ac72e)?_0x32daf9['updateMarker'](_0x3013c8,{'range':_0x32daf9['createRange'](_0x549403,_0x4ac72e)}):_0x32daf9['removeMarker'](_0x3013c8),!0x0);}function Kt(_0x2b021f){return _0x3429f2(_0x2b021f);}function Ht(_0x825bba){const _0x514c94=_0x825bba['start']['nodeAfter'];return _0x514c94&&_0x514c94['is']('element');}function qt(_0x4bcfd6,_0x18029d){return null==_0x4bcfd6['end']['nodeBefore']&&_0x4bcfd6['end']['parent']==_0x4bcfd6['start']['nodeAfter']?zt(_0x4bcfd6['start']['nodeAfter'],_0x18029d):_0x4bcfd6;}function zt(_0x3458af,_0x4f0ca4){const _0x539e34=_0x4f0ca4['schema']['isObject'](_0x3458af)||_0x4f0ca4['schema']['isSelectable'](_0x3458af);return _0x4f0ca4['createRange'](_0x4f0ca4['createPositionAt'](_0x3458af,'before'),_0x539e34?_0x4f0ca4['createPositionAfter'](_0x3458af):_0x4f0ca4['createPositionAt'](_0x3458af,'end'));}function Wt(_0x2c7069,_0x49c1a1,_0x912003,_0x57e249){return!!Qt(_0x2c7069,_0x49c1a1)&&_0x912003['end']['isEqual'](_0x57e249['start']);}function Qt(_0x3d163b,_0x285b4d){if(!_0x3d163b['_isDataLoaded']||!_0x285b4d['_isDataLoaded'])return!0x1;const _0x2cb15f=new Set(Object['keys'](_0x3d163b['attributes'])),_0x32fe1d=new Set(Object['keys'](_0x285b4d['attributes']));if(_0x2cb15f['delete']('groupId'),_0x32fe1d['delete']('groupId'),0x0==_0x2cb15f['size']&&0x0==_0x32fe1d['size'])return!0x0;if(_0x2cb15f['size']!=_0x32fe1d['size'])return!0x1;const _0x16227e={..._0x3d163b['attributes']},_0xf9af2f={..._0x285b4d['attributes']};return delete _0x16227e['groupId'],delete _0xf9af2f['groupId'],JSON['stringify'](_0x16227e)==JSON['stringify'](_0xf9af2f);}function Xt(_0xcd32b7,_0x2900c2){const _0x3b1c2b=Yt(_0xcd32b7['attributes']),_0x24404c=Yt(_0x2900c2);if(!_0xcd32b7['_isDataLoaded'])return!0x1;for(const _0x1d222d of Object['keys'](_0x24404c))if(!_0x550687(_0x3b1c2b[_0x1d222d],_0x24404c[_0x1d222d]))return!0x1;return!0x0;}function Yt(_0x3b0d07){const _0x4c9cb2=Object['assign']({},_0x3b0d07);return delete _0x4c9cb2['skipNestingCheck'],delete _0x4c9cb2['tablePasteChainId'],_0x4c9cb2;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xc1a90b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5423ad,_0x4199f2,_0x3cb89d,_0x1a8a93){super(),this['model']=_0x4199f2,this['view']=_0x3cb89d,this['commentThreadController']=_0x1a8a93,this['_editor']=_0x5423ad,this['_acceptCommand']=_0x5423ad['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5423ad['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x56f09d,_0x40a879)=>_0x56f09d||_0x40a879),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x465b5c=>_0x465b5c&&this['_editor']['model']['canEditAt'](_0x4199f2['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x300491=>_0x300491&&this['_editor']['model']['canEditAt'](_0x4199f2['getRanges']())),this['_pendingAction']=null,_0x3cb89d['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3cb89d,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3cb89d,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3cb89d,'change:isDirty',()=>{_0x3cb89d['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 _0x5dd51f=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5dd51f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x2922bf{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1f6bad,_0x74741a,_0x2bd84a,_0x5ed239){super(_0x1f6bad),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x402f1e(_0x1f6bad,c(_0x1f6bad,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x74741a['authoredAt']),this['bind']('authoredAt')['to'](_0x74741a),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',_0x74741a,'authoredAt',this,'descriptionParts',(_0x1ec989,_0xa4a29c,_0xf1d38)=>{const _0x783f70=_0xf1d38['map'](_0xe8928c=>ls(_0xe8928c['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1ec989-0x1,_0x74741a['author']['name'],_0xa4a29c?_0x5ed239['formatDateTime'](_0xa4a29c):'',new DOMParser()['parseFromString'](_0x783f70,'text/html')['body']['textContent']]);}),this['focusables']=new _0x377fd0(),this['focusTracker']=new _0x203964(),this['keystrokes']=new _0x24e332(),this['focusCycler']=new _0x4b9246({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xb5bd4d=>_0xb5bd4d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x74741a,this['_localUser']=_0x2bd84a,this['_config']=_0x5ed239,_0x5ed239['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x39dc9a(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xdf69ec}=this['_config'];this['commentsListView']=new _0xdf69ec(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',_0xe4d3a2=>_0xe4d3a2+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x47ab48,_0x306e24)=>_0x47ab48||!!_0x306e24);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x218262}=this['_config'],_0x4c2295=new _0x218262(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5cb7a2=_0x4c2295['commentInputView'];return _0x4c2295['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5cb7a2,'value',(_0x3abeb1,_0x458893,_0xa776af)=>!!_0xa776af||_0x3abeb1&&!_0x458893),_0x5cb7a2['on']('submit',(_0x2552d1,_0x354b33)=>{this['fire']('addComment',_0x354b33),_0x5cb7a2['editor']['setData']('');}),_0x5cb7a2['on']('cancel',()=>this['focus']()),_0x5cb7a2['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4c2295;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0xc1f79a,_0x15a5e6,_0x1feb82,_0x418a4e){super(_0xc1f79a,_0x15a5e6,_0x1feb82,_0x418a4e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x41645a=>_0x41645a&&_0x41645a[0x0]?_0x41645a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x593cbd,_0x584d3a)=>{let _0x95b3a5='';for(const _0x52f2a0 of _0x593cbd)_0x95b3a5+='<p>'+ls(_0x52f2a0['content'],_0x52f2a0['color'])+'</p>';return _0x584d3a?_0x95b3a5:ti(_0x95b3a5,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x418a4e['SuggestionView'](_0xc1f79a,_0x15a5e6,{'formatDateTime':_0x418a4e['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 _0x4d6591=this['bindTemplate'],_0x3a2e46=[this['suggestionView']];return this['commentsListView']&&_0x3a2e46['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3a2e46['push'](this['commentThreadInputView']),_0x3a2e46['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4d6591['if']('isActive','ck-suggestion-wrapper--active'),_0x4d6591['to']('type',_0x17ac6b=>'ck-suggestion-'+_0x17ac6b),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':_0x4d6591['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3a2e46};}['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 _0x2922bf{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x40cafd,_0x451023,_0x40e870){super(_0x40cafd),this['_model']=_0x451023,this['_config']=_0x40e870,this['set']('description',''),this['bind']('authoredAt')['to'](_0x451023),this['acceptButton']=this['_createButton'](c(_0x40cafd,'Accept\x20suggestion'),_0x3b1a58,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x40cafd,'Discard\x20suggestion'),_0x774a8b,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x48854b(_0x40cafd,_0x451023['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x377fd0([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x203964(),this['keystrokes']=new _0x24e332(),this['focusCycler']=new _0x4b9246({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x15d3f1=>_0x15d3f1['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1d7a9a=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1d7a9a['innerHTML']=this['description'],this['on']('change:description',(_0x5c2fbc,_0x31cd1c,_0x509190)=>{_0x1d7a9a['innerHTML']=_0x509190;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x21ef24=this['bindTemplate'],_0x4f2f4e=[{'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':_0x21ef24['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x21ef24['to']('authoredAt',_0x33dce2=>this['_config']['formatDateTime'](_0x33dce2))}]}]},{'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']&&_0x4f2f4e['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':_0x4f2f4e}]};}['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'](_0x27c61c,_0x42ecd6,_0x110680,_0x2a4b20,_0x46a0f2){const _0x1df8ad=new _0x2214e7(this['locale']);return _0x1df8ad['set']({'label':_0x27c61c,'icon':_0x42ecd6,'tooltip':!0x0,'tooltipPosition':_0x46a0f2}),_0x1df8ad['extendTemplate']({'attributes':{'class':_0x110680}}),_0x1df8ad['on']('execute',()=>{this['fire'](_0x2a4b20,this['_model']['id']);}),_0x1df8ad;}['_setupKeyboardNavigation'](){const _0x8726f6=this['element'];this['keystrokes']['listenTo'](_0x8726f6);for(const _0x31633f of this['focusables'])this['focusTracker']['add'](_0x31633f['element']),this['keystrokes']['listenTo'](_0x31633f['element']);this['keystrokes']['set']('enter',(_0x11393d,_0x4e65ec)=>{_0x8726f6===_0x11393d['target']&&(this['focusCycler']['focusFirst'](),_0x4e65ec());}),this['keystrokes']['set']('esc',(_0x3a19fd,_0x211c1b)=>{_0x8726f6!==_0x3a19fd['target']&&(this['focus'](),_0x211c1b());});}}class d extends _0x5575fe{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x39fba1,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59fab5){super(_0x59fab5),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x48a357=this['editor']['config'];_0x48a357['define']('trackChanges.SuggestionThreadView',fe),_0x48a357['define']('trackChanges.SuggestionView',we),_0x48a357['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x48a357['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5736ad,_0x13d9ba){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x233a0c,_0x249834]of this['_handleControllerBuffer']){const _0x2526d1=this['_suggestionToController']['has'](_0x233a0c);_0x2526d1||_0x249834?_0x2526d1&&_0x249834&&this['_destroyController'](_0x233a0c):this['_initializeController'](_0x233a0c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5736ad,_0x13d9ba);}['init'](){const _0x2a1c75=this['editor'],_0x2856e1=_0x2a1c75['plugins']['get']('TrackChangesEditing'),_0x27c757=_0x2a1c75['plugins']['get']('Annotations'),_0x162f1a=_0x2a1c75['plugins']['get']('EditorAnnotations'),_0x58226a=_0x2a1c75['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x162f1a['addSourceCollector'](()=>{const _0x1dd2cb=[];for(const [_0x17fedf,_0x5ecb3d]of Array['from'](this['_suggestionToController'])){const _0x5b64de=_0x17fedf['getAllAdjacentSuggestions'](),_0x2e366a=[];for(const _0x5571c5 of _0x5b64de){if(!_0x5571c5['isInContent'])continue;if(_0x5571c5['isMultiRange']){_0x2e366a['push'](..._0x5571c5['getRanges']());continue;}const _0xb780fc=_0x5571c5['getFirstRange']();if(_0x2e366a['length']>0x0){const _0xee56e3=_0x2e366a[0x0]['getJoined'](_0xb780fc);if(_0xee56e3){_0x2e366a[0x0]=_0xee56e3;continue;}}_0x2e366a['push'](_0xb780fc);}_0x1dd2cb['push']([_0x5ecb3d['view'],_0x2e366a]);}return _0x1dd2cb;}),this['listenTo'](_0x2856e1,'suggestionLoaded',(_0x436faa,_0x5b7cba)=>{this['listenTo'](_0x5b7cba,'change:previous',(_0x39b2a4,_0x549d94,_0x4748aa,_0x22af0c)=>{_0x5b7cba['isInContent']&&(null==_0x4748aa?(this['_updateController'](_0x22af0c['head']),this['_handleSuggestionControllerDelayed'](_0x5b7cba,!0x1)):(this['_updateController'](_0x4748aa['head']),null==_0x22af0c&&this['_handleSuggestionControllerDelayed'](_0x5b7cba,!0x0)));}),null!==_0x5b7cba['previous']?this['_updateController'](_0x5b7cba['head']):this['_handleSuggestionControllerDelayed'](_0x5b7cba,!0x1);}),this['listenTo'](_0x2856e1,'suggestionUnloaded',(_0x2ba042,_0x19f064,_0x166987)=>{this['stopListening'](_0x19f064,'change:previous'),this['_handleControllerBuffer']['delete'](_0x19f064),this['_suggestionToController']['has'](_0x19f064)&&this['_destroyController'](_0x19f064),_0x166987&&this['_updateController'](_0x166987['head']);}),this['listenTo'](_0x2856e1,'suggestionChanged',(_0x4c0d05,_0xd90d8b)=>{this['_updateController'](_0xd90d8b);}),this['listenTo'](_0x27c757,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x58226a,'addComment',(_0x2ee01c,{threadId:_0x21c091,isFromAdapter:_0x1bfb96})=>{if(_0x1bfb96||!_0x2856e1['hasSuggestion'](_0x21c091))return;const _0x15e3ca=_0x2856e1['getSuggestion'](_0x21c091);this['_suggestionToController']['get'](_0x15e3ca)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4ebdb9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1b3ed4;for(const _0x2bfb06 in _0x4ebdb9){const _0xa2b3e1=_0x2bfb06,_0x515812=_0x4ebdb9[_0xa2b3e1];if('trackChangesLicenseKeyValid'==_0x515812||'trackChangesLicenseKeyInvalid'==_0x515812||'trackChangesLicenseKeyExpired'==_0x515812||'trackChangesLicenseKeyDomainLimit'==_0x515812||'trackChangesLicenseKeyNotAllowed'==_0x515812||'trackChangesLicenseKeyEvaluationLimit'==_0x515812||'trackChangesLicenseKeyTrialLimit'==_0x515812||'trackChangesLicenseKeyUsageLimit'==_0x515812){delete _0x4ebdb9[_0xa2b3e1],_0x1b3ed4=_0x515812,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1b3ed4&&_0x4ebdb9['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1b3ed4&&_0x4ebdb9['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1b3ed4&&_0x4ebdb9['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1b3ed4&&_0x4ebdb9['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1b3ed4&&_0x4ebdb9['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1b3ed4&&_0x4ebdb9['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1b3ed4&&_0x4ebdb9['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0xc7897a=this['editor']['plugins']['get']('Annotations'),_0x28540f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55c712=Array['from'](_0xc7897a['activeAnnotations'],_0x350a4f=>_0x350a4f['innerView'])['filter'](_0x496f07=>this['_viewToController']['has'](_0x496f07)),_0x142de0=[];for(const _0x2f3a2c of _0x55c712){const _0x43c9b6=this['_viewToController']['get'](_0x2f3a2c)['model']['getAllAdjacentSuggestions']();_0x142de0['push'](..._0x43c9b6['reduce']((_0x433837,_0x5e40fb)=>[..._0x433837,..._0x5e40fb['getMarkerNames']()],[]));}_0x28540f['activeMarkers']=_0x142de0;}['_addUIComponentsToFactory'](){const _0x42b189=this['editor'],_0xc8c936=_0x42b189['locale'],_0x473d11=c(_0xc8c936,'Track\x20changes'),_0x139173=new _0x412f5d([{'type':'switchbutton','model':new _0x14e505({'withText':!0x0,'isToggleable':!0x0,'label':_0x473d11,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x14e505({'withText':!0x0,'label':c(_0xc8c936,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x14e505({'withText':!0x0,'label':c(_0xc8c936,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x14e505({'withText':!0x0,'label':c(_0xc8c936,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x14e505({'withText':!0x0,'label':c(_0xc8c936,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x42b189['plugins']['has']('TrackChangesPreview')&&_0x139173['addMany']([{'type':'separator'},{'type':'button','model':new _0x14e505({'withText':!0x0,'label':c(_0xc8c936,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x397ac2 of _0x139173)if(ke(_0x397ac2)){const _0x2ef312=_0x42b189['commands']['get'](_0x397ac2['model']['commandName']);_0x397ac2['model']['bind']('isOn','isEnabled')['to'](_0x2ef312,'value','isEnabled');}_0x42b189['ui']['componentFactory']['add']('trackChanges',_0x4e34b7=>this['_createToolbarButton'](_0x4e34b7,_0x139173,_0x473d11)),_0x42b189['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2c0772=>this['_createMenuBarMenu'](_0x2c0772,_0x139173,_0x473d11));}['_createToolbarButton'](_0x27d0fc,_0x9638f8,_0x12ae91){const _0x539b01=_0x24b707(_0x27d0fc,_0x5f2e56),_0x18926d=this['editor']['commands']['get']('trackChanges');_0x539b01['buttonView']['set']({'tooltip':_0x12ae91,'label':_0x12ae91,'icon':_0x3ccc1d}),_0x539b01['buttonView']['bind']('isOn')['to'](_0x18926d,'value'),_0x539b01['buttonView']['on']('execute',()=>{_0x18926d['execute'](),this['editor']['editing']['view']['focus']();}),_0x2dd363(_0x539b01,_0x9638f8,{'role':'menu'});const _0x39200e=[];for(const _0x267c9a of _0x9638f8)ke(_0x267c9a)&&_0x39200e['push'](this['editor']['commands']['get'](_0x267c9a['model']['commandName']));const _0x74da21=_0x539b01['buttonView'];return _0x74da21['actionView']['unbind']('isEnabled'),_0x74da21['arrowView']['unbind']('isEnabled'),_0x74da21['actionView']['bind']('isEnabled')['to'](_0x18926d,'isEnabled'),_0x74da21['arrowView']['bind']('isEnabled')['toMany'](_0x39200e,'isEnabled',(..._0x15f633)=>_0x15f633['some'](_0x4762c2=>_0x4762c2)),_0x539b01['on']('execute',_0x24d372=>{this['editor']['execute'](_0x24d372['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x539b01;}['_createMenuBarMenu'](_0x4d90a5,_0x10ad03,_0x1b3be3){const _0x41417e=new _0x45eb33(_0x4d90a5),_0x1fe91d=this['editor']['commands']['get']('trackChanges');_0x41417e['buttonView']['set']({'label':_0x1b3be3,'icon':_0x3ccc1d});const _0x51165c=new _0x24e4b9(_0x4d90a5);for(const _0x3219c2 of _0x10ad03){if('separator'==_0x3219c2['type']){_0x51165c['items']['add'](new _0x1f7a58(_0x4d90a5));continue;}const _0x4ea4e0=new _0x207990(_0x4d90a5,_0x41417e),_0x53187=new _0x502a3d(_0x4d90a5),_0x5ca434=_0x3219c2['model'];_0x53187['bind'](...Object['keys'](_0x5ca434))['to'](_0x5ca434),_0x53187['delegate']('execute')['to'](_0x41417e),_0x53187['on']('execute',()=>{this['editor']['execute'](_0x5ca434['commandName']),this['editor']['editing']['view']['focus']();}),_0x4ea4e0['children']['add'](_0x53187),_0x51165c['items']['add'](_0x4ea4e0);}return _0x41417e['bind']('isEnabled')['to'](_0x1fe91d,'isEnabled'),_0x41417e['panelView']['children']['add'](_0x51165c),_0x41417e;}['_initializeController'](_0x7fb344){const _0x3ea762=this['editor'],_0x12de5a=_0x3ea762['config'],_0x507305=_0x3ea762['plugins']['get']('Annotations'),_0x2d0eb4=_0x3ea762['plugins']['get']('CommentsRepository'),_0x4ae2a0=_0x3ea762['plugins']['get']('EditorAnnotations'),_0x180c3e=_0x3ea762['plugins']['get'](_0x39fba1)['me'],_0x26a543=_0x12de5a['get']('trackChanges')['SuggestionThreadView'],_0x14d413=_0x12de5a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5773b4,CommentThreadInputView:_0x3aca65}=_0x3ea762['plugins']['get']('CommentsUI');let _0x1f0e86,_0x48ac57,_0x5d461e;this['_annotationViews']['has'](_0x7fb344['id'])?(_0x48ac57=this['_annotationViews']['get'](_0x7fb344['id']),_0x1f0e86=_0x48ac57['mainView']):(_0x1f0e86=new _0x26a543(_0x3ea762['locale'],_0x7fb344,_0x180c3e,{'disableComments':this['_disableComments'],'editorConfig':{..._0x12de5a['get']('comments.editorConfig'),'licenseKey':_0x12de5a['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x12de5a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x12de5a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x12de5a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5f5751(_0x12de5a['get']('locale'),_0x3ea762['locale']),'CommentView':_0x12de5a['get']('comments')['CommentView'],'CommentsListView':_0x5773b4,'CommentThreadInputView':_0x3aca65,'SuggestionView':_0x14d413}),_0x1f0e86['suggestionView']['acceptButton']['on']('execute',()=>{_0x3ea762['editing']['view']['focus']();}),_0x1f0e86['suggestionView']['discardButton']['on']('execute',()=>{_0x3ea762['editing']['view']['focus']();}),_0x48ac57=_0x507305['createAnnotationView'](this['editor']['locale'],_0x1f0e86),_0x48ac57['bind']('isDirty')['to'](_0x1f0e86,'isDirty'),_0x48ac57['bind']('length')['to'](_0x1f0e86),_0x48ac57['bind']('type')['to'](_0x1f0e86,'type',_0x14411e=>'suggestion-'+_0x14411e),_0x1f0e86['on']('escape',()=>{_0x5d461e['fire']('escape');}),this['_annotationViews']['set'](_0x7fb344['id'],_0x48ac57));const _0x5f1e9c=_0x2d0eb4['createCommentThreadController'](_0x7fb344['commentThread'],_0x1f0e86),_0x39c1ed=new pe(_0x3ea762,_0x7fb344,_0x1f0e86,_0x5f1e9c),_0x5c2fee=_0x7fb344['getAllAdjacentSuggestions']()['filter'](_0x282eb3=>_0x282eb3['isInContent']);_0x1f0e86['descriptionParts']=_0x3ea762['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5c2fee),this['_suggestionToController']['set'](_0x7fb344,_0x39c1ed),this['_viewToController']['set'](_0x1f0e86,_0x39c1ed),_0x5d461e=_0x507305['createAnnotation']({'view':_0x48ac57,'target':()=>{const _0x1d22e4=[],_0x38fee4=_0x7fb344['getAllAdjacentSuggestions']()['filter'](_0x196ef1=>_0x196ef1['isInContent']);for(const _0x56bfc2 of _0x38fee4)_0x1d22e4['push'](..._0x56bfc2['getMarkers']());return _0x385d59(_0x3ea762['editing'],_0x1d22e4);},'type':()=>'suggestion-'+_0x39c1ed['view']['type']}),_0x2d0eb4['_bindAnnotationToEditors'](_0x1f0e86,_0x5d461e),_0x507305['add'](_0x5d461e),_0x4ae2a0['registerAnnotation'](_0x5d461e);}['_destroyController'](_0x29d3fd){const _0x15e7b0=this['editor']['plugins']['get']('CommentsRepository'),_0x40ece1=this['editor']['plugins']['get']('Annotations'),_0x3bb165=this['_suggestionToController']['get'](_0x29d3fd),_0x40c375=_0x3bb165['view'],_0x4237a7=_0x40ece1['getByInnerView'](_0x40c375);_0x15e7b0['_unbindEditors'](_0x40c375),_0x4237a7&&_0x40ece1['remove'](_0x4237a7),this['_suggestionToController']['delete'](_0x29d3fd),this['_viewToController']['delete'](_0x40c375),_0x3bb165['destroy']();}['_updateController'](_0x2449a9){if(!_0x2449a9['isInContent']||!this['_suggestionToController']['has'](_0x2449a9))return;const _0x152fab=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fe1be=this['_suggestionToController']['get'](_0x2449a9),_0xa6af54=_0x2449a9['getAllAdjacentSuggestions']();_0x1fe1be['view']['descriptionParts']=_0x152fab['descriptionFactory']['getDescriptions'](_0xa6af54);}['destroy'](){for(const _0x328670 of this['_suggestionToController']['keys']())this['_destroyController'](_0x328670);for(const _0x1309aa of this['_annotationViews']['values']())_0x1309aa['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x242190){return'model'in _0x242190;}class k extends _0x5575fe{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x27a852){this['editor']['plugins']['get'](p)['adapter']=_0x27a852;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x121dd7){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x121dd7);}['getSuggestions']({skipNotAttached:_0x1c5c5d=!0x1,toJSON:_0x15a700=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1c5c5d,'toJSON':_0x15a700});}['getSuggestion'](_0x141341){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x141341);}}const w=['Pagination'];class T extends _0x5575fe{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4fb323=this['editor'];if(_0x4fb323['config']['define']('trackChangesData.editorCreator',_0x1aec88=>{const _0x4f823f=_0x4fb323['model']['document']['getRootNames']()['reduce']((_0x4116e4,_0x2ec2bf)=>(_0x4116e4[_0x2ec2bf]='',_0x4116e4),{});return _0x4fb323['constructor']['create'](_0x4f823f,_0x1aec88);}),'function'!=typeof _0x4fb323['config']['get']('trackChangesData')['editorCreator'])throw new _0x840840('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x10a9f5){return N(this['editor'],!0x0,_0x10a9f5);}['getDataWithDiscardedSuggestions'](_0x1d87d6){return N(this['editor'],!0x1,_0x1d87d6);}}class D extends _0x5575fe{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e71ae){function _0x3d023c(_0x1bb31f){return _0x1bb31f['map'](_0x4514df=>String['fromCharCode'](_0x4514df))['join']('');}super(_0x3e71ae),this['result']='end',_0x3e71ae[_0x3d023c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d023c([0x76,0x69,0x65,0x77])][_0x3d023c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d023c([0x61,0x75,0x74,0x6f]),_0x3e71ae[_0x3d023c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3d023c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d023c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3d023c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3d023c([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(_0x5cc8bc){return void 0x0!==_0x5cc8bc['getRootsAttributes'];}async function N(_0x443091,_0x5058a4,_0x3b4f01){const _0x548c25=_0xd65147(_0x443091,w);_0x548c25['plugins']['push'](p,D),_0x548c25['rootsAttributes']=Ge(_0x443091)?_0x443091['getRootsAttributes']():void 0x0;const _0x311768=document['createDocumentFragment'](),_0x3a8d6a=_0x443091['config']['get']('trackChangesData')['editorCreator'],_0x2fda6f=await _0x3a8d6a(_0x548c25,()=>function(_0x45368c){const _0x116123=document['createElement']('div');return _0x45368c['appendChild'](_0x116123),_0x116123;}(_0x311768));!function(_0x53dfdd,_0xb770ff){const _0x591f86=_0x53dfdd['model']['document']['getRootNames']()['reduce']((_0x405425,_0x2305c8)=>(_0x405425[_0x2305c8]=_0x53dfdd['data']['get']({'rootName':_0x2305c8}),_0x405425),{}),_0x46ef8f=_0x53dfdd['plugins']['get']('Users')['users']['map'](_0x56a97c=>({'id':_0x56a97c['id'],'name':_0x56a97c['name']})),_0x294f6e=_0x53dfdd['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2d6874=_0x53dfdd['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x638bf9=_0xb770ff['plugins']['get']('Users'),_0x39116b=_0xb770ff['plugins']['get']('TrackChangesEditing'),_0x3346aa=_0xb770ff['plugins']['get']('CommentsRepository');for(const _0x36ba0c of _0x3346aa['getCommentThreads']())_0x36ba0c['remove']();for(const _0x46a429 of _0x46ef8f)_0x638bf9['getUser'](_0x46a429['id'])||_0x638bf9['addUser'](_0x46a429);_0x638bf9['me']||_0x638bf9['useAnonymousUser']();for(const _0x91b6f7 of _0x2d6874)_0x3346aa['addCommentThread'](_0x91b6f7);for(const _0x4d663d of _0x294f6e)_0x39116b['addSuggestionData'](_0x4d663d);_0xb770ff['data']['set'](_0x591f86);}(_0x443091,_0x2fda6f),_0x2fda6f['execute'](_0x5058a4?'acceptAllSuggestions':'discardAllSuggestions');const _0x16208c=Ge(_0x2fda6f)?_0x2fda6f['getFullData'](_0x3b4f01):_0x2fda6f['data']['get'](_0x3b4f01);return await _0x2fda6f['destroy'](),_0x16208c;}class Me extends _0x2922bf{['options'];constructor(_0x2854c0,_0x442623){super(_0x2854c0),this['options']=_0x442623,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'](_0x34dbef,_0xf12e15){if(!this['element'])return;const _0xfa18b7=[];for(const [_0x226408,_0x13099c]of _0x34dbef){const _0xffc73e=document['createElement']('div');_0xffc73e['setAttribute']('data-ck-root-name',_0x226408),_0xffc73e['className']=_0x13099c['classes']+'\x20ck-track-changes-preview__root-container',_0xffc73e['innerHTML']=_0x13099c['content'],_0xfa18b7['push'](_0xffc73e);}_0xf12e15(this['element'],_0xfa18b7),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x334ec3{constructor(_0x1af7df){super(_0x1af7df),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3908f9=this['editor'],_0x1c3062=_0x3908f9['locale'],_0x37a6ab=_0x3908f9['plugins']['get']('Dialog');let _0x4ce191;const _0x490c1e=function(_0x5ab233){const _0x251d2e={};if('editables'in _0x5ab233['ui']['view']){for(const [_0x51bcd3,_0xa9a42b]of Object['entries'](_0x5ab233['ui']['view']['editables']))_0x251d2e[_0x51bcd3]=_0xa9a42b['element'];}else _0x251d2e[_0x5ab233['model']['document']['getRootNames']()[0x0]]=_0x5ab233['ui']['view']['editable']['element'];return _0x251d2e;}(_0x3908f9),_0x80f954=function(_0x202e23){let _0x4cc586=0x0;for(const _0x1e6a2b of Object['values'](_0x202e23))_0x4cc586=Math['max'](_0x4cc586,_0x1e6a2b['getBoundingClientRect']()['width']);let _0x4f1d1f=0x0;for(const _0x6aed66 of Object['values'](_0x202e23))_0x4f1d1f+=_0x6aed66['getBoundingClientRect']()['height'];const _0x407d4e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x229353=Math['min'](_0x4f1d1f,_0x407d4e);return{'width':_0x4cc586,'height':_0x229353};}(_0x490c1e);_0x37a6ab['show']({'id':'finalContentPreview','title':c(_0x1c3062,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1c3062,{'dialogRects':_0x80f954}),'onHide':()=>{_0x4ce191['detachFromDom']();},'onShow':()=>{_0x3908f9['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0xce9393=>{const _0x3cfad2=this['_standarizeRootsData'](_0xce9393,_0x3908f9,_0x490c1e);_0x37a6ab['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3cfad2,_0x3908f9['config']['get']('trackChanges.preview.renderFunction'));}),_0x4ce191=new _0x36d5ab(_0x1c3062,[_0x37a6ab['view']]),_0x4ce191['attachToDom'](),_0x4ce191['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3908f9['once']('destroy',()=>{_0x4ce191['detachFromDom']();});const _0xfda2bd=_0x37a6ab['view']['headerView']['class'];_0x37a6ab['view']['headerView']['class']=_0xfda2bd?_0xfda2bd+'\x20ck-reset_all':'ck-reset_all',_0x37a6ab['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x37a6ab['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x568fac=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x8a3f19=_0x568fac['previewMode'],_0x302cf7={};if('$labels'===_0x8a3f19){for(const _0x2882b6 of _0x568fac['getMergeFieldsIds']())_0x302cf7[_0x2882b6]=_0x568fac['getLabel'](_0x2882b6)||_0x2882b6;}else{const _0x1ddc46='$defaultValues'===_0x8a3f19?_0x568fac['getDefaultValues']():_0x568fac['getDataSetValues'](_0x8a3f19,!0x0);for(const _0x6143b6 of Object['entries'](_0x1ddc46)){const [_0x50da03,_0x5ab34]=_0x6143b6;_0x302cf7[_0x50da03]=null!==_0x5ab34?_0x5ab34:_0x568fac['getLabel'](_0x50da03)||_0x50da03;}}return{'mergeFieldsData':_0x302cf7};}['_standarizeRootsData'](_0x2ed9da,_0x2cc1a8,_0x4b4280){let _0x5bb9eb;if('string'==typeof _0x2ed9da){const _0x674af4=_0x2cc1a8['model']['document']['getRootNames']()[0x0];_0x5bb9eb={[_0x674af4]:_0x2ed9da};}else _0x5bb9eb=_0x2ed9da;const _0x38e6eb=this['_fixMediaEmbeds'](_0x5bb9eb,_0x2cc1a8),_0x14cfc0=function(_0x2fad5e,_0x4d1509){for(const [_0x2be0f1,_0x278c42]of _0x2fad5e)_0x278c42['classes']=_0x4d1509[_0x2be0f1]['classList']['value']['replace']('ck-focused','');return _0x2fad5e;}(this['_sortRoots'](_0x2cc1a8)['reduce']((_0x12901f,_0x4e348b)=>(_0x12901f['push']([_0x4e348b,{'content':_0x38e6eb[_0x4e348b],'classes':''}]),_0x12901f),[]),_0x4b4280);return _0x14cfc0;}['_fixMediaEmbeds'](_0x453878,_0x183deb){if(!_0x183deb['plugins']['has']('MediaEmbedEditing'))return _0x453878;const _0x5955a4=_0x183deb['plugins']['get']('MediaEmbedEditing');for(const [_0x35196c,_0x469a88]of Object['entries'](_0x453878)){const _0x116b34=document['createElement']('div');_0x116b34['innerHTML']=_0x469a88,(_0x116b34['querySelectorAll']('figure.media')['forEach'](_0x3d5c7e=>{const _0xf1eef2=_0x3d5c7e['querySelector']('oembed');if(_0xf1eef2){const _0x5323df=_0xf1eef2['getAttribute']('url');if(_0x5323df){const _0x1056f2=_0x5955a4['registry']['getMediaViewElement'](new _0x1b7cf1(_0x183deb['editing']['view']['document']),_0x5323df,{'elementName':'','renderForEditingView':!0x0}),_0x55c78a=document['createElement']('div');_0x55c78a['classList']['add']('ck-media__wrapper'),_0x1056f2['render'](_0x55c78a,_0x183deb['editing']['view']['domConverter']),_0xf1eef2['replaceWith'](_0x55c78a);}}}),_0x453878[_0x35196c]=_0x116b34['innerHTML']);}return _0x453878;}['_sortRoots'](_0x45ee57){if(!function(_0x377cbb){return void 0x0!==_0x377cbb['getRootsAttributes'];}(_0x45ee57))return _0x45ee57['model']['document']['getRootNames']();const _0x557bf9=[],_0x562688=new Map();for(const _0xe01e23 of _0x45ee57['model']['document']['getRootNames']()){const _0x388abe=_0x45ee57['editing']['view']['getDomRoot'](_0xe01e23)['getClientRects']()['item'](0x0);_0x557bf9['push'](_0xe01e23),_0x562688['set'](_0xe01e23,_0x388abe);}return _0x557bf9['sort']((_0x1a2f72,_0x277ff2)=>{const _0x11613a=_0x562688['get'](_0x1a2f72),_0x5ad148=_0x562688['get'](_0x277ff2);return _0x11613a['y']-_0x5ad148['y']||_0x11613a['x']-_0x5ad148['x'];}),_0x557bf9;}}class te extends _0x5575fe{static get['requires'](){return[T,_0x1b10b8];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x40b45d){super(_0x40b45d),_0x40b45d['commands']['add']('previewFinalContent',new re(this['editor'])),_0x40b45d['config']['define']('trackChanges.preview.renderFunction',(_0x588b48,_0x38bd2f)=>{for(const _0x20902a of _0x38bd2f)_0x588b48['appendChild'](_0x20902a);});}}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 _0xb8ee90,Plugin as _0x3953b7,PendingActions as _0x5a4bb9}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x445a81,ObservableMixin as _0x3e790a,uid as _0x524fb1,priorities as _0x2ab9b9,insertToPriorityArray as _0x50c834,toArray as _0x4e0548,logWarning as _0x2d9cbe,getEnvKeystrokeText as _0x24010f,FocusTracker as _0x54fb7e,KeystrokeHandler as _0x242ec4,Collection as _0x39c9e2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x13fbe8,IconCancel as _0x4f5a20,IconTrackChanges as _0x149199}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x60b02b,View as _0x4eff8d,ViewCollection as _0x1c7024,FocusCycler as _0x15fc30,ViewModel as _0xbf88d3,createDropdown as _0x5e9696,SplitButtonView as _0x881f8,addListToDropdown as _0x2e601e,MenuBarMenuView as _0x262cec,MenuBarMenuListView as _0x54e796,ListSeparatorView as _0x8cf7a6,MenuBarMenuListItemView as _0x289202,MenuBarMenuListItemButtonView as _0xcb61eb,BodyCollection as _0x27f01f,Dialog as _0x14c57e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x58f2c4,hashObject as _0x419ded,surroundingMarkersDetector as _0x4cacd4,FOCUS_ANNOTATION_KEYSTROKE as _0x1b8fee,AriaDescriptionView as _0x473e7c,setupThreadKeyboardNavigation as _0x3a8cc9,trimHtml as ti,UserView as _0x5604b1,LateFocusButtonView as _0x590555,getDateTimeFormatter as _0x25d804,getAllMarkersDomElementsSorted as _0x52d4fd,sanitizeEditorConfig as _0x3ba5cf}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x148d33,LiveRange as _0x34ca76,LivePosition as _0x15578e,DowncastWriter as _0x4481d1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x16b302,toWidget as _0x2cd5b7}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x45dc80,set as _0x5bbb5e,isEqual as _0x8ce2d0,unset as _0x110115,omit as Ft}from'es-toolkit/compat';import{Delete as _0x3e9cd0,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x34f239}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x2a45ef}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0xb8ee90{['_enabledCommands'];constructor(_0x58fddf,_0x354a20){super(_0x58fddf),this['_enabledCommands']=_0x354a20,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 _0x423478 of this['editor']['commands']['commands']())_0x423478['affectsData']&&!this['_enabledCommands']['has'](_0x423478)&&_0x423478['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5429c6 of this['editor']['commands']['commands']())_0x5429c6['affectsData']&&!this['_enabledCommands']['has'](_0x5429c6)&&_0x5429c6['clearForceDisabled']('TrackChangesCommand');}}class x extends _0xb8ee90{['_suggestions'];constructor(_0x27db30,_0x3ca287){super(_0x27db30),this['_suggestions']=_0x3ca287,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5b33b5){const _0x3108e5=this['_suggestions']['get'](_0x5b33b5);if(!_0x3108e5)throw new _0x445a81('track-changes-accept-suggestion-not-found',this);const _0x1fd4ec=_0x3108e5['getRanges']();this['editor']['model']['canEditAt'](_0x1fd4ec)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3108e5);}}class O extends _0xb8ee90{['_suggestions'];constructor(_0x395e5,_0x476867){super(_0x395e5),this['_suggestions']=_0x476867,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x232084){const _0x109b0c=this['_suggestions']['get'](_0x232084);if(!_0x109b0c)throw new _0x445a81('track-changes-discard-suggestion-not-found',this);const _0x519555=_0x109b0c['getRanges']();this['editor']['model']['canEditAt'](_0x519555)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x109b0c);}}function ls(_0x173413,_0xbbab9b){let _0x331c7f='';return _0x331c7f+=_0x173413['split']('*')['map']((_0x1b113c,_0x4ee803)=>_0x4ee803%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x1b113c)+'</span>':nn(_0x1b113c))['join'](''),_0xbbab9b&&(_0x331c7f+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xbbab9b['value']+'\x22\x20title=\x22'+_0xbbab9b['title']+'\x22></span>'),_0x331c7f;}function nn(_0x6fe741){const _0x4951d1=document['createElement']('span');return _0x4951d1['innerText']=_0x6fe741,_0x4951d1['innerHTML'];}function ts(_0x406bc0){return _0x406bc0['sort']((_0x2876f0,_0x4e79cc)=>'deletion'==_0x2876f0['type']&&'deletion'!=_0x4e79cc['type']?-0x1:'deletion'!=_0x2876f0['type']&&'deletion'==_0x4e79cc['type']?0x1:0x0);}function to(_0x5c29ec,_0x3dccc2){let _0x4e981d,_0x8f64d=0x0;const _0x1e0209=[],_0x21a436=_0x3dccc2['schema'];for(;_0x8f64d<_0x5c29ec['length'];){const _0x29dcb3=_0x5c29ec[_0x8f64d],_0xac73dd=_0x5c29ec[_0x8f64d+0x1];_0x4e981d||(_0x4e981d=_0x3dccc2['createPositionBefore'](_0x29dcb3)),on(_0x3dccc2,_0x29dcb3,_0xac73dd)||(_0x1e0209['push'](_0x3dccc2['createRange'](_0x4e981d,_0x21a436['isObject'](_0x29dcb3)?_0x3dccc2['createPositionAfter'](_0x29dcb3):_0x3dccc2['createPositionAt'](_0x29dcb3,'end'))),_0x4e981d=null),_0x8f64d++;}return _0x1e0209;}function on(_0x37a406,_0x4325ce,_0x51ef19){if(!_0x51ef19)return!0x1;const _0x489bf1=_0x37a406['createPositionAfter'](_0x4325ce),_0x41d7a5=_0x37a406['createPositionBefore'](_0x51ef19);return _0x489bf1['isTouching'](_0x41d7a5);}function rs(_0x5745ea,_0x4d6d17,_0x2d1a1f){for(;_0x2d1a1f['length'];){const _0x5b0c3d=_0x2d1a1f['splice'](0x0,0x64);_0x5745ea['change'](()=>{for(const _0x3a63ef of _0x5b0c3d)_0x3a63ef['isInContent']&&_0x4d6d17['execute'](_0x3a63ef['id']);});}}class R extends _0xb8ee90{['_command'];['_suggestions'];constructor(_0x569101,_0x33587f,_0x2aedbf){super(_0x569101),this['_command']=_0x33587f,this['_suggestions']=_0x2aedbf,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x57f682=Array['from'](this['_suggestions']['values']())['some'](_0x1919bb=>_0x1919bb['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x57f682;}['execute'](){const _0x481aae=ts(Array['from'](this['_suggestions']['values']()));for(const _0x1d0d71 of _0x481aae){const _0x4914a3=_0x1d0d71['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4914a3))return;}rs(this['editor']['model'],this['_command'],_0x481aae);}}class E extends _0xb8ee90{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x49ad08,_0x5c3757,_0x262f3d){super(_0x49ad08),this['_command']=_0x5c3757,this['_suggestions']=_0x262f3d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x78ee36=this['editor']['model']['document']['selection'],_0x159737=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x40622f,_0x393122){const _0x40b7dc=Array['from'](_0x40622f['getRanges']()),_0x163859=new Set();for(const _0x120b21 of _0x393122)if(_0x120b21['isInContent']){for(const _0x48762a of _0x40b7dc)for(const _0x198fd9 of _0x120b21['getRanges']())(_0x48762a['isIntersecting'](_0x198fd9)||_0x40622f['isCollapsed']&&!_0x120b21['isMultiRange']&&_0x120b21['next']&&_0x198fd9['end']['isTouching'](_0x48762a['start']))&&_0x163859['add'](_0x120b21);}return _0x163859;}(_0x78ee36,_0x159737),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1365c4=ts(Array['from'](this['_selectedSuggestions']));for(const _0x2d16bc of _0x1365c4){const _0x1e77d6=_0x2d16bc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1e77d6))return;}rs(this['editor']['model'],this['_command'],_0x1365c4);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3e790a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x447537,_0x257a8e){super(),this['id']=_0x257a8e['id'],this['type']=_0x257a8e['type'],this['subType']=_0x257a8e['subType']||null,this['author']=_0x257a8e['author'],this['creator']=_0x257a8e['creator']||_0x257a8e['author'],this['isExternal']=Boolean(_0x257a8e['attributes']&&_0x257a8e['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x257a8e['originalSuggestionId']||null,this['_model']=_0x447537,this['_onAccept']=_0x257a8e['onAccept'],this['_onDiscard']=_0x257a8e['onDiscard'],this['_onAttributesChange']=_0x257a8e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x257a8e['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 _0x31f2f8=this;for(;_0x31f2f8['previous'];)_0x31f2f8=_0x31f2f8['previous'];return _0x31f2f8;}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'](_0x348106){this['_markerNames']['add'](_0x348106);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5676a3=>this['_model']['markers']['get'](_0x5676a3))['filter'](_0x115f3c=>_0x115f3c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2f066a=>{for(const _0x5e6768 of this['getMarkers']())_0x2f066a['removeMarker'](_0x5e6768);}),this['_markerNames']['clear']();}['removeMarker'](_0x13b009){this['_model']['change'](_0x27f6c2=>{_0x27f6c2['removeMarker'](_0x13b009);}),this['_markerNames']['delete'](_0x13b009);}['addRange'](_0xe6443){const _0x410cf6='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x410cf6),this['_model']['change'](_0x4abeee=>{_0x4abeee['addMarker'](_0x410cf6,{'range':_0xe6443,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5c63dc){for(const _0x2d7ad8 of this['getRanges']())if(_0x2d7ad8['isIntersecting'](_0x5c63dc))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x177c39=>_0x177c39['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x36ff83,_0x4b49dc)=>[..._0x36ff83,..._0x4b49dc['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2f2038=this['getRanges']();if(0x1!=_0x2f2038['length'])return null;const _0x214e5e=_0x2f2038[0x0],_0xb36962=_0x214e5e['start']['nodeAfter'],_0xb93498=_0x214e5e['end']['nodeBefore'];return _0xb36962 instanceof _0x148d33?_0xb36962!=_0xb93498?null:_0xb36962: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 _0x57aa6b=[];let _0x3ccfcf=this['head'];for(;_0x3ccfcf;)_0x57aa6b['push'](_0x3ccfcf),_0x3ccfcf=_0x3ccfcf['next'];return _0x57aa6b;}['setAttribute'](_0x5d5485,_0xb03585){const _0x4f2c43=_0x45dc80(this['attributes']);_0x5bbb5e(_0x4f2c43,_0x5d5485,_0xb03585),_0x8ce2d0(_0x4f2c43,this['attributes'])||(this['attributes']=_0x4f2c43,this['_onAttributesChange'](_0x4f2c43));}['removeAttribute'](_0x55fb69){const _0x4cb0c3=_0x45dc80(this['attributes']);_0x110115(_0x4cb0c3,_0x55fb69),_0x8ce2d0(_0x4cb0c3,this['attributes'])||(this['attributes']=_0x4cb0c3,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 _0x524fb1()['substr'](0x1,0x5);}}function c(_0x3341c1,_0x3c13ca,_0x41a5d3){const _0x33f020=_0x3341c1['t'],t=_0x3341c1['t'];switch(_0x3c13ca){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',_0x41a5d3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x41a5d3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x41a5d3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x41a5d3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x41a5d3);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',_0x41a5d3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x41a5d3);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',_0x41a5d3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x41a5d3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x41a5d3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x41a5d3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x41a5d3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x41a5d3);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x41a5d3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x41a5d3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x41a5d3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x41a5d3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x41a5d3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x41a5d3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x41a5d3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x41a5d3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x41a5d3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x41a5d3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x41a5d3);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x41a5d3);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'},_0x41a5d3);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x41a5d3);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x41a5d3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x41a5d3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x41a5d3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x41a5d3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x41a5d3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x41a5d3);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'},_0x41a5d3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x41a5d3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x41a5d3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x41a5d3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x41a5d3);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'},_0x41a5d3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x41a5d3);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'},_0x41a5d3);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'},_0x41a5d3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x41a5d3);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'},_0x41a5d3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x41a5d3);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'},_0x41a5d3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x41a5d3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x41a5d3);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'},_0x41a5d3);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x41a5d3);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 _0x33f020({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x41a5d3);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x33f020({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x41a5d3);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x41a5d3);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'},_0x41a5d3);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'},_0x41a5d3);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'},_0x41a5d3);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3c13ca;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x32e894,_0x211b92){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x32e894,this['_locale']=_0x211b92;}['getDescriptions'](_0x573a27){const _0x333c29=[],_0x470f59=new Set(),_0x299487=new Set();for(let _0x566349=0x0;_0x566349<_0x573a27['length'];_0x566349++){const _0x42aac1=_0x573a27[_0x566349];if(!_0x42aac1['isInContent'])continue;const _0x3ed56d=this['_handleCustomCallbackDescription'](_0x42aac1);if(_0x3ed56d){if(null!=_0x42aac1['subType']){if(_0x470f59['has'](_0x42aac1['subType']))continue;_0x470f59['add'](_0x42aac1['subType']);}_0x333c29['push'](_0x3ed56d);}else{if('attribute'!=_0x42aac1['type'])'insertion'!=_0x42aac1['type']&&'deletion'!=_0x42aac1['type']||this['_handleInsertRemoveSuggestionDescription'](_0x333c29,_0x42aac1,_0x573a27[_0x566349+0x1]);else{const _0x44f5f4=_0x42aac1['data']['key'];if(_0x299487['has'](_0x44f5f4))continue;_0x299487['add'](_0x42aac1['data']['key']),_0x44f5f4==u?this['_handleRenameSuggestionDescription'](_0x333c29,_0x42aac1):this['_handleAttributeSuggestionDescription'](_0x333c29,_0x42aac1);}}}return this['_resolveDescriptionItems'](_0x333c29);}['registerDescriptionCallback'](_0x3d5cdd){this['_customCallbacks']['push'](_0x3d5cdd);}['registerElementLabel'](_0x474fa9,_0x1235e4,_0x1e57b8=_0x2ab9b9['normal']){'function'==typeof _0x474fa9?_0x50c834(this['_itemLabelsCallbacks'],{'matchingCallback':_0x474fa9,'label':_0x1235e4,'priority':_0x1e57b8}):this['_itemLabels']['set'](_0x474fa9,_0x1235e4);}['registerAttributeLabel'](_0x16ec3b,_0x39be45){this['_attributeLabels']['set'](_0x16ec3b,_0x39be45);}['getItemLabel'](_0x5d6f70,_0x355bc0=0x1){let _0x565eed;for(const _0x209113 of this['_itemLabelsCallbacks'])if(_0x209113['matchingCallback'](_0x5d6f70)){_0x565eed=_0x209113['label'];break;}return _0x565eed||(_0x565eed=this['_itemLabels']['get'](_0x5d6f70['name'])),_0x565eed?_0x565eed(_0x355bc0):0x1!==_0x355bc0?_0x355bc0+'\x20'+_0x5d6f70['name']+'s':''+_0x5d6f70['name'];}['_addDescriptionItems'](_0x146909,_0x4ae1d1){const _0x4768ff=_0x4ae1d1['getFirstRange']()['getWalker'](),_0x1f394a='insertion'==_0x4ae1d1['type']?'add':'remove';for(const _0x56b906 of _0x4768ff){const _0x447538=_0x56b906['item'],_0x93ec1d=_0x146909[_0x146909['length']-0x1];if(_0x447538['is']('$textProxy'))_0x93ec1d&&_0x93ec1d['type']['indexOf']('Container')>-0x1&&_0x146909['pop'](),_0x93ec1d&&'text'==_0x93ec1d['type']?_0x93ec1d[_0x1f394a]+=_0x447538['data']:_0x146909['push']({'type':'text','add':'add'==_0x1f394a?_0x447538['data']:'','remove':'remove'==_0x1f394a?_0x447538['data']:''});else{if(this['_schema']['isObject'](_0x447538)){const _0x5d4299=_0x447538;if(_0x93ec1d&&_0x93ec1d['type']['indexOf']('Container')>-0x1&&_0x146909['pop'](),'elementEnd'==_0x56b906['type'])continue;_0x93ec1d&&_0x93ec1d['type']==_0x1f394a+'Object'&&_0x93ec1d['element']['name']==_0x5d4299['name']?_0x93ec1d['quantity']++:_0x146909['push']({'type':_0x1f394a+'Object','element':_0x5d4299,'quantity':0x1}),_0x4768ff['skip'](_0x53f742=>!('elementEnd'==_0x53f742['type']&&_0x53f742['item']==_0x447538));}else{if(this['_schema']['checkChild'](_0x447538,'$text')||_0x447538['is']('element','softBreak')){const _0x50de9d=_0x447538;if('add'==_0x1f394a&&'elementStart'==_0x56b906['type']||'remove'==_0x1f394a&&'elementEnd'==_0x56b906['type'])continue;if(_0x93ec1d&&-0x1==_0x93ec1d['type']['indexOf']('Container')){'text'==_0x93ec1d['type']&&(_0x93ec1d[_0x1f394a]+='\x0a');continue;}let _0x3a9b2e;if(_0x3a9b2e='add'==_0x1f394a?_0x50de9d['nextSibling']&&!this['_schema']['isObject'](_0x50de9d['nextSibling'])?_0x50de9d['nextSibling']:null:_0x50de9d['previousSibling']&&!this['_schema']['isObject'](_0x50de9d['previousSibling'])?_0x50de9d['previousSibling']:null,_0x50de9d['isEmpty']||_0x3a9b2e&&_0x3a9b2e['isEmpty']){const _0x362dcb=_0x3a9b2e&&_0x3a9b2e['isEmpty']?_0x3a9b2e:_0x50de9d;_0x93ec1d&&_0x93ec1d['type']==_0x1f394a+'EmptyContainer'&&_0x93ec1d['element']['name']==_0x362dcb['name']?_0x93ec1d['quantity']++:_0x146909['push']({'type':_0x1f394a+'EmptyContainer','element':_0x362dcb,'quantity':0x1});}else _0x146909['push']({'type':_0x1f394a+'Container','element':_0x50de9d});}}}}}['_resolveDescriptionItems'](_0x3b95a8){const _0xf93cad=this['_locale'],_0x5407fb=[],_0x4d7155=[],_0x1e05b3=[];for(const _0x1f170b of _0x3b95a8)switch(_0x1f170b['type']){case'text':if(_0x1f170b['add']=_0x1f170b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1f170b['remove']=_0x1f170b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1f170b['add']&&''!=_0x1f170b['remove']){_0x5407fb['push']({'type':'replace','content':c(_0xf93cad,'REPLACE_TEXT',['\x22'+_0x1f170b['remove']+'\x22','\x22'+_0x1f170b['add']+'\x22'])});continue;}if(null!=_0x1f170b['add']['match'](/^ +$/)){_0x5407fb['push']({'type':'insertion','content':c(_0xf93cad,'*Insert:*\x20%0',c(_0xf93cad,'ELEMENT_SPACE',_0x1f170b['add']['length']))});continue;}if(null!=_0x1f170b['remove']['match'](/^ +$/)){_0x5407fb['push']({'type':'deletion','content':c(_0xf93cad,'*Remove:*\x20%0',c(_0xf93cad,'ELEMENT_SPACE',_0x1f170b['remove']['length']))});continue;}if(''!=_0x1f170b['add']){_0x5407fb['push']({'type':'insertion','content':c(_0xf93cad,'*Insert:*\x20%0','\x22'+_0x1f170b['add']+'\x22')});continue;}_0x5407fb['push']({'type':'deletion','content':c(_0xf93cad,'*Remove:*\x20%0','\x22'+_0x1f170b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5407fb['push']({'type':'insertion','content':c(_0xf93cad,'*Insert:*\x20%0',this['getItemLabel'](_0x1f170b['element'],_0x1f170b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5407fb['push']({'type':'deletion','content':c(_0xf93cad,'*Remove:*\x20%0',this['getItemLabel'](_0x1f170b['element'],_0x1f170b['quantity']))});continue;case'addContainer':_0x5407fb['push']({'type':'insertion','content':c(_0xf93cad,'*Split:*\x20%0',this['getItemLabel'](_0x1f170b['element'],_0x1f170b['quantity']))});continue;case'removeContainer':_0x5407fb['push']({'type':'deletion','content':c(_0xf93cad,'*Merge:*\x20%0',this['getItemLabel'](_0x1f170b['element'],_0x1f170b['quantity']))});continue;case'addFormat':_0x4d7155['push'](_0x1f170b['key']);continue;case'removeFormat':_0x1e05b3['push'](_0x1f170b['key']);continue;default:_0x5407fb['push'](_0x1f170b);}if(_0x4d7155['length']){const _0x3ebe3e=_0x4d7155['map'](_0x1576e4=>this['_attributeLabels']['has'](_0x1576e4)?this['_attributeLabels']['get'](_0x1576e4):_0x1576e4)['join'](',\x20');_0x5407fb['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x3ebe3e)});}if(_0x1e05b3['length']){const _0x18aebc=_0x1e05b3['map'](_0x2eb850=>this['_attributeLabels']['has'](_0x2eb850)?this['_attributeLabels']['get'](_0x2eb850):_0x2eb850)['join'](',\x20');_0x5407fb['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x18aebc)});}return _0x5407fb;}['_handleCustomCallbackDescription'](_0x5493d3){for(const _0x555e5c of this['_customCallbacks']){const _0x2d69d0=_0x555e5c(_0x5493d3);if(_0x2d69d0&&'type'in _0x2d69d0)return _0x2d69d0;}}['_handleAttributeSuggestionDescription'](_0x299a1d,_0x40dd3d){const _0x2e60da=_0x40dd3d['data'],_0x5b5360=void 0x0===_0x2e60da['newValue']?'removeFormat':'addFormat';_0x299a1d['push']({'type':_0x5b5360,'key':_0x2e60da['key']});}['_handleRenameSuggestionDescription'](_0x198f52,_0x160fc5){_0x198f52['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x160fc5['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5ea04b,_0x3f8900,_0xebd642){if(this['_addDescriptionItems'](_0x5ea04b,_0x3f8900),_0xebd642&&_0xebd642['getFirstRange']()&&!_0x3f8900['getFirstRange']()['end']['isEqual'](_0xebd642['getFirstRange']()['start'])){const _0x2c36df=_0x5ea04b[_0x5ea04b['length']-0x1],_0x3db6f7='insertion'==_0x3f8900['type']?'add':'remove';_0x2c36df&&'text'==_0x2c36df['type']&&(_0x2c36df[_0x3db6f7]+='\x0a');}}}class U extends _0x3953b7{['afterInit'](){const _0x22d8b3=this['editor'],_0x11ea3f=_0x22d8b3['plugins']['get']('TrackChangesEditing');_0x22d8b3['commands']['get']('showAIAssistant')&&_0x11ea3f['enableCommand']('showAIAssistant');}}class V extends _0x3953b7{['afterInit'](){const _0x34c7df=this['editor'],_0x39cf6=_0x34c7df['locale'];if(!_0x34c7df['plugins']['has']('AlignmentEditing'))return;const _0xc0d346=_0x34c7df['plugins']['get']('TrackChangesEditing');_0xc0d346['enableDefaultAttributesIntegration']('alignment'),_0xc0d346['registerBlockAttribute']('alignment'),_0xc0d346['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x39cf6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45227c=this['editor'],_0x2f6922=_0x45227c['locale'];_0x45227c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e5cca=>{if('formatBlock'!=_0x2e5cca['type'])return;const {data:_0x53be3f}=_0x2e5cca;if(_0x53be3f&&'alignment'==_0x53be3f['commandName']){const _0x16638a=_0x53be3f['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x2f6922,'*Format:*\x20%0',function(_0x336f48){switch(_0x336f48){case'left':return c(_0x2f6922,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x2f6922,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x2f6922,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x2f6922,'FORMAT_JUSTIFY_TEXT');}}(_0x16638a))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x3953b7{['afterInit'](){const _0x1c6119=this['editor'],_0x5712ad=_0x1c6119['plugins']['get']('TrackChangesEditing'),_0x4fcfcb=_0x1c6119['locale'];for(const _0x417b2f of Zt){if(!_0x1c6119['plugins']['has'](_0x417b2f))continue;const _0x37c3ce=_0x417b2f['slice'](0x0,-0x7)['toLowerCase'](),_0x5afa86='FORMAT_'+_0x37c3ce['toUpperCase']();_0x5712ad['enableDefaultAttributesIntegration'](_0x37c3ce),_0x5712ad['registerInlineAttribute'](_0x37c3ce),_0x5712ad['descriptionFactory']['registerAttributeLabel'](_0x37c3ce,c(_0x4fcfcb,_0x5afa86));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x185981=this['editor'],_0x5f522f=_0x185981['locale'],_0x239bf5=_0x185981['plugins']['get']('TrackChangesEditing');function _0x2c2917(_0x1b7a21,_0x39e600){_0x239bf5['descriptionFactory']['registerDescriptionCallback'](_0x530344=>{if('formatInline'!=_0x530344['type'])return;const {data:_0x56cff0}=_0x530344;return _0x56cff0&&_0x56cff0['commandName']===_0x1b7a21?_0x56cff0['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5f522f,'*Format:*\x20%0',_0x39e600)}:{'type':'format','content':c(_0x5f522f,'*Remove\x20format:*\x20%0',_0x39e600)}:void 0x0;});}_0x2c2917('bold',c(_0x5f522f,'FORMAT_BOLD')),_0x2c2917('italic',c(_0x5f522f,'FORMAT_ITALIC')),_0x2c2917('underline',c(_0x5f522f,'FORMAT_UNDERLINE')),_0x2c2917('code',c(_0x5f522f,'FORMAT_CODE')),_0x2c2917('strikethrough',c(_0x5f522f,'FORMAT_STRIKETHROUGH')),_0x2c2917('subscript',c(_0x5f522f,'FORMAT_SUBSCRIPT')),_0x2c2917('superscript',c(_0x5f522f,'FORMAT_SUPERSCRIPT'));}}class G extends _0x3953b7{['afterInit'](){const _0x16a265=this['editor'],_0x59e9e9=_0x16a265['locale'];if(!_0x16a265['plugins']['has']('BlockQuoteEditing'))return;const _0x553262=_0x16a265['plugins']['get']('TrackChangesEditing'),_0x64d004=this['editor']['commands']['get']('blockQuote');_0x553262['enableCommand']('blockQuote',(_0x5cc2f0,_0x5af59b={})=>{const _0x5a3d12=this['editor']['model']['document']['selection'],_0x95418a=_0x5af59b&&void 0x0!==_0x5af59b['forceValue']?_0x5af59b['forceValue']:!_0x64d004['value'];let _0x561da9=[];if(_0x95418a){const _0x1d5b49=Array['from'](_0x5a3d12['getSelectedBlocks']())['filter'](_0x351cab=>oo(_0x351cab)||function(_0x346bee,_0x1219d8){const _0x5b23ea=_0x1219d8['checkChild'](_0x346bee['parent'],'blockQuote'),_0x8aeae1=_0x1219d8['checkChild'](['$root','blockQuote'],_0x346bee);return _0x5b23ea&&_0x8aeae1;}(_0x351cab,this['editor']['model']['schema']));_0x561da9=to(_0x1d5b49,_0x16a265['model']);}else{const _0x12f6ba=Array['from'](_0x5a3d12['getSelectedBlocks']())['filter'](_0x56cb79=>oo(_0x56cb79));_0x561da9=to(_0x12f6ba,_0x16a265['model']);}_0x16a265['model']['change'](()=>{for(const _0x1ad4ed of _0x561da9)_0x553262['markBlockFormat'](_0x1ad4ed,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x95418a}]});});}),_0x553262['descriptionFactory']['registerDescriptionCallback'](_0x20bdd1=>{const {data:_0x4a4d71}=_0x20bdd1;if(_0x4a4d71&&'blockQuote'==_0x4a4d71['commandName']){const _0xd4471a=c(_0x59e9e9,'ELEMENT_BLOCK_QUOTE');return _0x4a4d71['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x59e9e9,'*Set\x20format:*\x20%0',_0xd4471a)}:{'type':'format','content':c(_0x59e9e9,'*Remove\x20format:*\x20%0',_0xd4471a)};}});}}function oo(_0x41298c){return'blockQuote'==_0x41298c['parent']['name'];}class L extends _0x3953b7{['afterInit'](){const _0x1f76c4=this['editor'],_0x208507=_0x1f76c4['locale'],_0x35b7c1=_0x1f76c4['plugins']['get']('TrackChangesEditing');_0x1f76c4['plugins']['has']('BookmarkEditing')&&(_0x35b7c1['enableCommand']('insertBookmark'),_0x35b7c1['enableDefaultAttributesIntegration']('updateBookmark'),_0x35b7c1['registerBlockAttribute']('bookmarkId'),_0x35b7c1['descriptionFactory']['registerDescriptionCallback'](_0x485a53=>{if('insertion'!=_0x485a53['type']&&'deletion'!=_0x485a53['type']&&'attribute'!=_0x485a53['type'])return;const _0x5ad1f1=_0x485a53['getContainedElement']();if(null==_0x5ad1f1)return;if(!_0x5ad1f1['is']('element','bookmark'))return;const _0x29a23b=_0x5ad1f1['getAttribute']('bookmarkId');if('insertion'==_0x485a53['type'])return{'type':'insertion','content':c(_0x208507,'*Insert:*\x20%0','\x22'+_0x29a23b+'\x22\x20'+c(_0x208507,'ELEMENT_BOOKMARK'))};if('deletion'==_0x485a53['type'])return{'type':'deletion','content':c(_0x208507,'*Remove:*\x20%0','\x22'+_0x29a23b+'\x22\x20'+c(_0x208507,'ELEMENT_BOOKMARK'))};const {data:_0x24dea6}=_0x485a53;if(!_0x24dea6||'bookmarkId'!=_0x24dea6['key'])return;return{'type':'format','content':c(_0x208507,'*Set\x20bookmark:*\x20%0','\x22'+_0x24dea6['newValue']+'\x22')};}));}}class J extends _0x3953b7{['afterInit'](){const _0x18a203=this['editor'];_0x18a203['plugins']['has']('CaseChange')&&(_0x18a203['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x18a203['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x18a203['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x3953b7{['afterInit'](){const _0xaf9eab=this['editor'];_0xaf9eab['commands']['get']('ckbox')&&_0xaf9eab['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x3953b7{['afterInit'](){const _0x573558=this['editor'];if(!_0x573558['plugins']['has']('CodeBlock'))return;const _0x48d39a=_0x573558['plugins']['get']('TrackChangesEditing'),_0x3291ab=_0x573558['locale'],_0x57c2b1=_0x573558['config']['get']('codeBlock')['languages'],_0x252932=_0x573558['commands']['get']('codeBlock');_0x48d39a['enableCommand']('indentCodeBlock'),_0x48d39a['enableCommand']('outdentCodeBlock'),_0x48d39a['enableCommand']('codeBlock',(_0x2c50b7,_0x3f98c9={})=>{const _0x4a0c3d=_0x573558['model'],_0x1b37a3=_0x573558['model']['document']['selection'],_0x11049e=_0x3f98c9&&void 0x0!==_0x3f98c9['forceValue']?_0x3f98c9['forceValue']:!_0x252932['value'];let _0x235a2e;_0x3f98c9['language']||(_0x3f98c9['language']=_0x57c2b1[0x0]['language']),_0x235a2e=_0x11049e?Array['from'](_0x1b37a3['getSelectedBlocks']())['filter'](_0x34b0ea=>eo(_0x34b0ea)||function(_0xa18a6b,_0x43e268){if(_0xa18a6b['is']('rootElement')||_0x43e268['isLimit'](_0xa18a6b))return!0x1;return _0x43e268['checkChild'](_0xa18a6b['parent'],'codeBlock');}(_0x34b0ea,_0x4a0c3d['schema'])):Array['from'](_0x1b37a3['getSelectedBlocks']())['filter'](_0x54f8d6=>eo(_0x54f8d6));const _0x20394a=to(_0x235a2e,_0x4a0c3d);_0x4a0c3d['change'](()=>{for(const _0x24680d of _0x20394a)_0x48d39a['markBlockFormat'](_0x24680d,{'commandName':'codeBlock','commandParams':[{..._0x3f98c9,'forceValue':_0x11049e}],'formatGroupId':'blockName'});});}),(_0x48d39a['descriptionFactory']['registerElementLabel']('codeBlock',_0x501a42=>c(_0x3291ab,'ELEMENT_CODE_BLOCK',_0x501a42)),_0x48d39a['descriptionFactory']['registerDescriptionCallback'](_0xb7874c=>{if('formatBlock'!=_0xb7874c['type'])return;const _0xd6a5c9=_0x3291ab['t'],{data:_0x2bf80e}=_0xb7874c;if(!_0x2bf80e||'codeBlock'!=_0x2bf80e['commandName'])return;const _0x533ea5=_0x2bf80e['commandParams'][0x0]['language'],_0x5e1777=_0xd6a5c9(_0x57c2b1['find'](_0x51447c=>_0x51447c['language']===_0x533ea5)['label'])['toLowerCase']();return _0x2bf80e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3291ab,'*Set\x20format:*\x20%0',c(_0x3291ab,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5e1777+')')}:{'type':'format','content':c(_0x3291ab,'*Remove\x20format:*\x20%0',c(_0x3291ab,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x29491d){return'codeBlock'==_0x29491d['name'];}class q extends _0x3953b7{['afterInit'](){const _0x4be3e3=this['editor'];if(!_0x4be3e3['plugins']['has']('CommentsEditing'))return;_0x4be3e3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x48547e,_0x2fa16e,_0x1177dc){const _0xccb16=[];for(const _0x36cf24 of _0x2fa16e['getItems']())_0x36cf24['hasAttribute'](_0x48547e)&&_0xccb16['push'](_0x1177dc['createRangeOn'](_0x36cf24));return _0xccb16;}function Fe(_0x52a845,_0x3455da,{showActiveMarker:_0x186762=!0x0}={}){const _0xc42dd3=_0x52a845['plugins']['get']('TrackChangesEditing');return(_0x48ae6a,_0x581ad8,_0x66c4e)=>{if(!_0x66c4e['consumable']['test'](_0x581ad8['markerRange'],_0x48ae6a['name']))return;const _0x3ca31c=_0x581ad8['markerRange']['getWalker'](),_0x130bff=_0x581ad8['markerRange']['start'],_0x37f363=_0x52a845['model']['schema'];let _0x1b53f5=null,_0x15970d=null,_0x1cb576=!0x1,_0xebf4=!0x1;for(const _0x404212 of _0x3ca31c){const _0x2a8a5b=_0x404212['item'];_0x1cb576=_0x1cb576||_0x37f363['isContent'](_0x2a8a5b);const _0x59815f=_0x66c4e['mapper']['toViewElement'](_0x2a8a5b);if(_0x59815f&&_0x59815f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x404212['type']&&(_0x37f363['isBlock'](_0x2a8a5b)&&!_0x37f363['isLimit'](_0x2a8a5b)&&(_0x2a8a5b['nextSibling']||_0x130bff['isAtEnd']?_0x1b53f5&&_0x1b53f5['parent']==_0x2a8a5b||(_0x1b53f5=_0x2a8a5b,_0x4994b4(_0x404212['previousPosition']),_0xebf4=!0x0):_0x15970d=_0x15970d||_0x404212['previousPosition']));}function _0x4994b4(_0x45126c){const {id:_0x5c5e7f,authorId:_0x5587d4}=_0xc42dd3['_splitMarkerName'](_0x581ad8['markerName']),_0x1707d6=_0x66c4e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3455da,'data-suggestion':_0x5c5e7f,'data-author-id':_0x5587d4}),_0x41fceb=_0x66c4e['mapper']['toViewPosition'](_0x45126c);_0x186762&&_0xc42dd3['activeMarkers']['includes'](_0x581ad8['markerName'])&&_0x66c4e['writer']['addClass']('ck-suggestion-marker--active',_0x1707d6),_0x66c4e['writer']['insert'](_0x41fceb,_0x1707d6),_0x66c4e['mapper']['bindElementToMarker'](_0x1707d6,_0x581ad8['markerName']);}_0x1cb576||_0xebf4||!_0x15970d||_0x4994b4(_0x15970d);};}class z extends _0x3953b7{static get['requires'](){return[_0x3e9cd0];}['init'](){const _0x229a4e=this['editor'],_0x11e9e4=_0x229a4e['plugins']['get']('TrackChangesEditing');_0x11e9e4['enableCommand']('delete');const _0x5e98a5=_0x229a4e['commands']['get']('deleteForward');_0x11e9e4['enableCommand']('deleteForward',(_0x1b6441,_0x1a277b={})=>{const _0x347e3e=_0x229a4e['model']['createSelection'](_0x229a4e['model']['document']['selection']);_0x347e3e['isCollapsed']&&_0x229a4e['model']['modifySelection'](_0x347e3e,{'direction':'forward','unit':_0x1a277b['unit']});const _0x1514c1=_0x347e3e['getFirstRange'](),_0x48fdce=_0x34ca76['fromRange'](_0x1514c1);let _0x6dada3;_0x1b6441(_0x1a277b),_0x6dada3='$graveyard'==_0x48fdce['root']['rootName']?_0x229a4e['model']['createRange'](_0x1514c1['start']):_0x229a4e['model']['createRange'](_0x48fdce['start'],_0x48fdce['end']),_0x48fdce['detach'](),_0x229a4e['model']['enqueueChange'](_0x5e98a5['buffer']['batch'],_0x280b97=>{_0x5e98a5['buffer']['lock'](),_0x280b97['setSelection'](_0x280b97['createRange'](_0x6dada3['end'])),_0x5e98a5['buffer']['unlock']();});}),_0x229a4e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x229a4e,'merge'),{'priority':'high'}),_0x229a4e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x33938c,_0x203cf2,_0xcfce60)=>{_0xcfce60['options']['showSuggestionHighlights']&&Fe(_0x229a4e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x33938c,_0x203cf2,_0xcfce60);},{'priority':'high'}),_0x229a4e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4da7e1,_0xddf7e0,_0x5d3e44)=>{const _0x1ce21d=_0x5d3e44['mapper']['markerNameToElements'](_0xddf7e0['markerName']);if(_0x1ce21d){for(const _0x57d23 of _0x1ce21d)_0x57d23['is']('uiElement')&&(_0x5d3e44['mapper']['unbindElementFromMarkerName'](_0x57d23,_0xddf7e0['markerName']),_0x5d3e44['writer']['remove'](_0x57d23));}},{'priority':'high'});}}class W extends _0x3953b7{['afterInit'](){const _0x13daaf=this['editor'];if(!_0x13daaf['plugins']['has']('ListEditing'))return;const _0xe1f257=_0x13daaf['locale'],_0xd315b6=_0x13daaf['plugins']['get']('TrackChangesEditing'),_0x396cb3=_0x13daaf['plugins']['has']('TodoListEditing'),_0xaa203c=!!_0x13daaf['config']['get']('list.multiBlock');function _0x3073e5(_0x5bbbca){return{'type':'format','content':''+c(_0xe1f257,'*Set\x20format:*\x20%0',_0x5bbbca)};}function _0x31f5ba(_0x87f592){return{'type':'format','content':''+c(_0xe1f257,'*Remove\x20format:*\x20%0',_0x87f592)};}_0xd315b6['enableDefaultAttributesIntegration']('numberedList'),_0xd315b6['enableDefaultAttributesIntegration']('bulletedList'),_0xd315b6['enableDefaultAttributesIntegration']('customNumberedList'),_0xd315b6['enableDefaultAttributesIntegration']('customBulletedList'),_0xd315b6['enableDefaultAttributesIntegration']('indentList'),_0xd315b6['enableDefaultAttributesIntegration']('outdentList'),_0xd315b6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xd315b6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xd315b6['registerBlockAttribute']('listItemId'),_0xd315b6['registerBlockAttribute']('listType'),_0xd315b6['registerBlockAttribute']('listIndent'),_0xaa203c&&(_0xd315b6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xd315b6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x396cb3&&(_0xd315b6['enableDefaultAttributesIntegration']('todoList'),_0xd315b6['enableDefaultAttributesIntegration']('checkTodoList'),_0xd315b6['registerBlockAttribute']('todoListChecked'),_0xd315b6['descriptionFactory']['registerDescriptionCallback'](_0x428844=>{const {data:_0x13ddd9}=_0x428844;if(_0x13ddd9&&'todoListChecked'==_0x13ddd9['key'])return{'type':'format','content':_0x13ddd9['newValue']?c(_0xe1f257,'*Check\x20item*'):c(_0xe1f257,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3b6aff=>{if(_0x3b6aff['batch']['isUndo'])return!0x1;let _0x74e3fc=!0x1;const _0x2624a8=_0xd315b6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2faffe=>'todoListChecked'===_0xd315b6['_getAttributeKey'](_0x2faffe));for(const _0x73d99d of _0x2624a8){'todo'!=_0x73d99d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xd315b6['_findSuggestions'](_0x73d99d['getFirstRange'](),'attribute')['find'](_0x124853=>'listType'===_0xd315b6['_getAttributeKey'](_0x124853['suggestion']))||(_0x3b6aff['removeMarker'](_0x73d99d['getFirstMarker']()),_0x74e3fc=!0x0));}return _0x74e3fc;})),_0xd315b6['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0xe1f257,'FORMAT_INDENT'));const _0x31677b={'type':'format','content':''};_0xd315b6['descriptionFactory']['registerDescriptionCallback'](_0x490591=>{const {data:_0x1a88f6}=_0x490591;if(!_0x1a88f6||'listType'!=_0x1a88f6['key'])return;let _0x3ef2f6=_0x490591['head'];for(;_0x3ef2f6;){if(_0x3ef2f6['data']&&(('listStyle'==_0x3ef2f6['data']['key']||'listMarkerStyle'==_0x3ef2f6['data']['key'])&&(_0x3ef2f6['data']['newValue']&&'default'!=_0x3ef2f6['data']['newValue']||'default'!=_0x3ef2f6['data']['oldValue']&&!_0x1a88f6['newValue'])||!_0xaa203c&&_0x3ef2f6['data']['key']==u))return _0x31677b;_0x3ef2f6=_0x3ef2f6['next'];}if(null==_0x1a88f6['newValue'])switch(_0x1a88f6['oldValue']){case'bulleted':return _0x31f5ba(c(_0xe1f257,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x31f5ba(c(_0xe1f257,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x31f5ba(c(_0xe1f257,'ELEMENT_TODO_LIST'));}switch(_0x1a88f6['newValue']){case'bulleted':return _0x3073e5(c(_0xe1f257,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3073e5(c(_0xe1f257,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3073e5(c(_0xe1f257,'ELEMENT_TODO_LIST'));}}),_0xd315b6['descriptionFactory']['registerDescriptionCallback'](_0x59dd3a=>{const {data:_0x336e3e}=_0x59dd3a;if(_0x336e3e&&'listIndent'==_0x336e3e['key'])return null==_0x336e3e['newValue']||null==_0x336e3e['oldValue']&&0x0==_0x336e3e['newValue']?_0x31677b:void 0x0;}),_0xd315b6['descriptionFactory']['registerDescriptionCallback'](_0x4cad1b=>{if('attribute'!=_0x4cad1b['type'])return;const {data:_0x447a7f}=_0x4cad1b;if(!_0x447a7f||'listItemId'!=_0x447a7f['key'])return;const _0x2b98ad=Te(_0x4cad1b);return'newValue'==_0x2b98ad?{'type':'format','content':c(_0xe1f257,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2b98ad?{'type':'format','content':c(_0xe1f257,'*Split:*\x20list\x20item')}:_0x31677b;}),_0x13daaf['model']['document']['registerPostFixer'](_0x1ad639=>this['listItemIdFixer'](_0x1ad639)),_0x13daaf['model']['document']['registerPostFixer'](_0x228055=>this['noTrackChangesFixer'](_0x228055)),_0x13daaf['model']['document']['on']('change:data',(_0x9ecb49,_0x59b47c)=>{if(_0x59b47c['isUndo']||!_0x59b47c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3db5b0){if(_0x3db5b0['batch']['isUndo']||!_0x3db5b0['batch']['isLocal'])return!0x1;let _0x2c8b18=!0x1;const _0x3b1f1b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x110ade=>_0x110ade['data']&&'listItemId'==_0x110ade['data']['key'])['filter'](_0x544367=>_0x544367['data']['newValue']&&_0x544367['data']['oldValue']);for(const _0x4e276d of _0x3b1f1b)Te(_0x4e276d)||(_0x3db5b0['removeMarker'](_0x4e276d['getFirstMarker']()),_0x2c8b18=!0x0);return _0x2c8b18;}['noTrackChangesFixer'](_0xe37521){if(_0xe37521['batch']['isUndo']||!_0xe37521['batch']['isLocal'])return!0x1;const _0x15ad01=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x15ad01['trackChangesCommand']['value'])return!0x1;let _0x4986fb=!0x1;const _0x2d1a66=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x569011=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x301781=>'attribute'==_0x301781['type'])['filter'](_0x199173=>_0x2d1a66['includes'](_0x199173['attributeKey']));if(0x0==_0x569011['length'])return _0x4986fb;for(const _0x4477c1 of _0x569011){const _0x3accda=_0x15ad01['_findSuggestions'](_0x4477c1['range'],'attribute')['filter'](_0x22ebd0=>!_0x22ebd0['meta']['isNextTo'])['map'](_0x179e09=>_0x179e09['suggestion'])['filter'](_0x3ebd36=>{const _0x396930=_0x15ad01['_getAttributeKey'](_0x3ebd36);return _0x2d1a66['includes'](_0x396930);});if(_0x3accda['length']){for(const _0x1110fd of _0x3accda)_0xe37521['removeMarker'](_0x1110fd['getFirstMarker']());_0x4986fb=!0x0;}}return _0x4986fb;}['assureChains'](){const _0x3537b5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x498a79=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x173536;const _0x255740=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x40bff6=>{if(_0x40bff6['data']['oldRange']||!_0x40bff6['data']['newRange'])return null;if(!_0x40bff6['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x10c5de}=_0x3537b5['_splitMarkerName'](_0x40bff6['name']);if(!_0x3537b5['hasSuggestion'](_0x10c5de))return null;const _0x54655b=_0x3537b5['getSuggestion'](_0x10c5de);return _0x498a79['includes'](_0x54655b['data']['key']);})['map'](_0x2b43fe=>{const {id:_0x3032bd}=_0x3537b5['_splitMarkerName'](_0x2b43fe['name']),_0x3d894c=_0x3537b5['getSuggestion'](_0x3032bd);return _0x173536=_0x3d894c['attributes']['groupId'],_0x3d894c['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x255740['size'])return;const _0x3d5b71=_0x3537b5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42ddf2=>'attribute'==_0x42ddf2['type']&&_0x42ddf2['data']&&_0x498a79['includes'](_0x42ddf2['data']['key'])&&_0x42ddf2['attributes']['groupId']!=_0x173536)['map'](_0x7d53d=>({'listItem':_0x7d53d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x7d53d['attributes']['groupId']})),_0x339fc0=new Set();for(const {groupId:_0x5a7e04,listItem:_0x33ff98}of _0x3d5b71)_0x255740['has'](_0x33ff98)&&_0x339fc0['add'](_0x5a7e04);for(const _0x591f54 of _0x3537b5['getSuggestions']())_0x339fc0['has'](_0x591f54['attributes']['groupId'])&&_0x591f54['setAttribute']('groupId',_0x173536);}['_supportLegacySuggestions'](){const _0x2573a9=this['editor'],_0x1d0698=_0x2573a9['locale'],_0x435761=_0x2573a9['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x435761['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x260be4,_0x3d0bca){const _0x4c1b2e=[];for(let _0x334278 of _0x260be4)_0x334278['start']['nodeAfter']===_0x334278['end']['parent']&&(_0x334278=_0x2573a9['model']['createRange'](_0x2573a9['model']['createPositionAt'](_0x334278['start']['nodeAfter'],0x0))),_0x4c1b2e['push'](_0x334278);_0x2573a9['model']['change'](_0x15c8f9=>{const _0xb4341f=_0x2573a9['model']['document']['selection'],_0x4eaa30=Array['from'](_0xb4341f['getRanges']())['map'](_0x5cf485=>_0x34ca76['fromRange'](_0x5cf485));_0x15c8f9['setSelection'](_0x4c1b2e),_0x2573a9['commands']['get'](_0x3d0bca['commandName'])['refresh'](),_0x3d0bca['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2573a9['execute'](_0x3d0bca['commandName'],..._0x3d0bca['commandParams']),_0x15c8f9['setSelection'](_0x4eaa30);for(const _0x79dbb0 of _0x4eaa30)_0x79dbb0['detach']();});}),_0x435761['descriptionFactory']['registerElementLabel'](function(_0x318fa7){const _0x54eae9=!_0x2573a9['model']['schema']['isObject'](_0x318fa7),_0x2aaf73=_0x318fa7['previousSibling'],_0x3e6b5f=_0x318fa7['nextSibling'],_0x7b49ea=_0x318fa7['getAttribute']('listItemId'),_0x54079d=!_0x2aaf73||_0x2aaf73['getAttribute']('listItemId')!==_0x7b49ea,_0x2b0645=!_0x3e6b5f||_0x3e6b5f['getAttribute']('listItemId')!==_0x7b49ea;return _0x54eae9&&Boolean(_0x7b49ea)&&_0x54079d&&_0x2b0645;},_0x5a8c05=>c(_0x1d0698,'ELEMENT_LIST_ITEM',_0x5a8c05));}['_registerLegacyDescription'](){const _0x6543d9=this['editor'],_0x4708e7=_0x6543d9['locale'];function _0x3569ee(_0x3648af){const _0x3e6cf6=_0x6543d9['commands']['get']('bulletedList')['value'],_0x30c4c8=_0x6543d9['commands']['get']('numberedList')['value'];return'numberedList'===_0x3648af?_0x3e6cf6:_0x30c4c8;}_0x6543d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1e308c){if('formatBlock'!=_0x1e308c['type'])return;const {data:_0x1a2e1c}=_0x1e308c;if(!_0x1a2e1c)return;let _0x464e61,_0x868b65,_0x5d7f85,_0x3a7a79;switch(_0x1a2e1c['commandName']){case'bulletedList':_0x5d7f85=_0x1a2e1c['commandParams'][0x0]['forceValue'],_0x3a7a79=_0x3569ee(_0x1a2e1c['commandName']),_0x464e61=_0x5d7f85?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3a7a79&&_0x6543d9['config']['get']('list.multiBlock')||(_0x464e61='*Change\x20to:*\x20%0'),_0x868b65={'type':'format','content':c(_0x4708e7,_0x464e61,c(_0x4708e7,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5d7f85=_0x1a2e1c['commandParams'][0x0]['forceValue'],_0x3a7a79=_0x3569ee(_0x1a2e1c['commandName']),_0x464e61=_0x5d7f85?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3a7a79&&_0x6543d9['config']['get']('list.multiBlock')||(_0x464e61='*Change\x20to:*\x20%0'),_0x868b65={'type':'format','content':c(_0x4708e7,_0x464e61,c(_0x4708e7,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x464e61='*Indent:*\x20%0',_0x868b65={'type':'format','content':c(_0x4708e7,_0x464e61,c(_0x4708e7,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x464e61=function(_0x1ed92e){const _0x4fd0df=_0x1ed92e['getFirstRange']();let _0x5059a0=_0x4fd0df['start']['nodeAfter'];for(;_0x5059a0&&_0x4fd0df['containsItem'](_0x5059a0);){if(_0x5059a0['getAttribute']('listIndent')>0x0)return!0x1;_0x5059a0=_0x5059a0['nextSibling'];}return!0x0;}(_0x1e308c)?c(_0x4708e7,'*Format:*\x20remove\x20from\x20%0',c(_0x4708e7,function(_0x5453c2){return'ELEMENT_'+_0x5453c2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1e308c))):c(_0x4708e7,'*Outdent:*\x20%0',c(_0x4708e7,'ELEMENT_LIST_ITEM')),_0x868b65={'type':'format','content':_0x464e61};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1a2e1c['multipleBlocks']&&(_0x464e61='*Merge:*\x20%0',_0x868b65={'type':'deletion','content':c(_0x4708e7,_0x464e61,c(_0x4708e7,'ELEMENT_LIST_ITEM'))});}return _0x868b65;});}}function Te(_0x3ef2f1){let _0x53d69b=_0x3ef2f1['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x53d69b;){const _0x2476c7=_0x53d69b['getAttribute']('listItemId');if(!_0x2476c7)return!0x1;if(_0x2476c7==_0x3ef2f1['data']['newValue'])return'newValue';if(_0x2476c7==_0x3ef2f1['data']['oldValue'])return'oldValue';_0x53d69b=_0x53d69b['previousSibling'];}return!0x1;}class Se extends _0x3953b7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x39b053=this['editor']['config']['get']('list.properties'),_0x1f7cf6=this['editor']['plugins']['get']('TrackChangesEditing');_0x39b053['styles']&&(_0x1f7cf6['enableDefaultAttributesIntegration']('listStyle'),_0x1f7cf6['registerBlockAttribute']('listStyle')),_0x39b053['reversed']&&(_0x1f7cf6['enableDefaultAttributesIntegration']('listReversed'),_0x1f7cf6['registerBlockAttribute']('listReversed')),_0x39b053['startIndex']&&(_0x1f7cf6['enableDefaultAttributesIntegration']('listStart'),_0x1f7cf6['registerBlockAttribute']('listStart'));const _0x342134={'type':'format','content':''};_0x1f7cf6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5e3264=this['editor']['locale'];_0x1f7cf6['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x5e3264,'FORMAT_LIST_REVERSED')),_0x1f7cf6['descriptionFactory']['registerDescriptionCallback'](_0xb88041=>{const {data:_0x2aa6ae}=_0xb88041;if(_0x2aa6ae&&'listReversed'==_0x2aa6ae['key'])return null==_0x2aa6ae['newValue']||0x0==_0x2aa6ae['newValue']&&null==_0x2aa6ae['oldValue']?_0x342134:void 0x0;}),_0x1f7cf6['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x5e3264,'FORMAT_LIST_START')),_0x1f7cf6['descriptionFactory']['registerDescriptionCallback'](_0x2222ea=>{const {data:_0x1a8dce}=_0x2222ea;if(_0x1a8dce&&'listStart'==_0x1a8dce['key'])return null==_0x1a8dce['newValue']||0x1==_0x1a8dce['newValue']&&null==_0x1a8dce['oldValue']?_0x342134:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x29077f=>{if(_0x29077f['batch']['isUndo'])return!0x1;let _0x240a81=!0x1;const _0x17dd0d=_0x1f7cf6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4eb10e=>{const _0x4cd39e=_0x1f7cf6['_getAttributeKey'](_0x4eb10e);return'listStart'==_0x4cd39e||'listReversed'==_0x4cd39e;});for(const _0x2d1c01 of _0x17dd0d){const _0x470719=_0x2d1c01['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x470719||'customNumbered'==_0x470719)continue;_0x1f7cf6['_findSuggestions'](_0x2d1c01['getFirstRange'](),'attribute')['find'](_0x6b9947=>'listType'==_0x1f7cf6['_getAttributeKey'](_0x6b9947['suggestion']))||(_0x29077f['removeMarker'](_0x2d1c01['getFirstMarker']()),_0x240a81=!0x0);}return _0x240a81;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2fd994){const _0x314c45=this['editor']['locale'],{data:_0x41eafc}=_0x2fd994,_0x5ce104={'type':'format','content':''};if(!_0x41eafc||'listStyle'!=_0x41eafc['key'])return;if(!_0x41eafc['oldValue'])return'default'==_0x41eafc['newValue']?_0x5ce104:{'type':'format','content':''+c(_0x314c45,'*Set\x20format:*\x20%0',c(_0x314c45,this['_getTranslationKeyForListStyle'](_0x41eafc['newValue'])))};if(!_0x41eafc['newValue']){if('default'==_0x41eafc['oldValue'])return _0x5ce104;let _0x43233e=_0x2fd994['head'];for(;_0x43233e;){if(_0x43233e['data']&&'listType'==_0x43233e['data']['key']&&_0x43233e['data']['newValue'])return _0x5ce104;_0x43233e=_0x43233e['next'];}return{'type':'format','content':''+c(_0x314c45,'*Remove\x20format:*\x20%0',c(_0x314c45,this['_getTranslationKeyForListStyle'](_0x41eafc['oldValue'])))};}if('default'!=_0x41eafc['newValue'])return{'type':'format','content':''+c(_0x314c45,'*Set\x20format:*\x20%0',c(_0x314c45,this['_getTranslationKeyForListStyle'](_0x41eafc['newValue'])))};let _0x264eae=_0x2fd994['head'];for(;_0x264eae;){if(_0x264eae['data']&&'listType'==_0x264eae['data']['key']&&_0x264eae['data']['newValue']&&_0x264eae['data']['oldValue'])return _0x5ce104;_0x264eae=_0x264eae['next'];}return{'type':'format','content':c(_0x314c45,'*Set\x20format:*\x20%0',c(_0x314c45,'ELEMENT_'+_0x2fd994['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1fcd47=this['editor'],_0x5e824b=_0x1fcd47['locale'];_0x1fcd47['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x352a5c=>{if('formatBlock'!=_0x352a5c['type'])return;const {data:_0x2d2667}=_0x352a5c;if(!_0x2d2667)return;let _0x2d4b1f,_0x35a246;switch(_0x2d2667['commandName']){case'listStyle':_0x2d4b1f='*Change\x20to:*\x20%0',_0x35a246={'type':'format','content':c(_0x5e824b,_0x2d4b1f,c(_0x5e824b,this['_getTranslationKeyForListStyle'](_0x2d2667['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2d4b1f=_0x2d2667['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x35a246={'type':'format','content':c(_0x5e824b,_0x2d4b1f)};break;case'listStart':_0x2d4b1f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x35a246={'type':'format','content':c(_0x5e824b,_0x2d4b1f,_0x2d2667['commandParams'][0x0]['startIndex'])};}return _0x35a246;});}['_getTranslationKeyForListStyle'](_0x3db420){return'ELEMENT_'+function(_0x5163d3){if(_e['includes'](_0x5163d3))return'bulleted';if(Re['includes'](_0x5163d3))return'numbered';return null;}(_0x3db420)['toUpperCase']()+'_LIST_'+_0x3db420['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x3953b7{['afterInit'](){const _0x48dedc=this['editor'];_0x48dedc['commands']['get']('emoji')&&_0x48dedc['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x3953b7{static get['requires'](){return[_0x34f239];}['init'](){const _0x21a1a4=this['editor'],_0x1ed3f2=_0x21a1a4['plugins']['get']('TrackChangesEditing'),_0x463eef=_0x21a1a4['commands']['get']('enter');_0x1ed3f2['enableCommand']('enter',()=>{_0x21a1a4['model']['change'](_0x2b771d=>{const _0x462582=_0x21a1a4['model']['document']['selection'],_0x4f3f04=_0x462582['getFirstPosition'](),_0x14874d=_0x34ca76['fromRange'](_0x462582['getFirstRange']());if(_0x463eef['enterBlock'](_0x2b771d)){const _0x135e3e=_0x21a1a4['model']['createPositionAt'](_0x4f3f04['parent']['nextSibling'],0x0),_0x5a51e=_0x2b771d['createRange'](_0x4f3f04,_0x135e3e);_0x1ed3f2['markInsertion'](_0x5a51e);}else _0x2b771d['setSelection'](_0x2b771d['createRange'](_0x14874d['end']));_0x14874d['detach'](),_0x463eef['fire']('afterExecute',{'writer':_0x2b771d});});}),_0x21a1a4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x21a1a4,'split'),{'priority':'high'}),_0x21a1a4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5e41d8,_0xe2edea,_0x2834b6)=>{const _0xa05977=_0x2834b6['mapper']['markerNameToElements'](_0xe2edea['markerName']);if(_0xa05977){for(const _0x219e54 of _0xa05977)_0x219e54['hasClass']('ck-suggestion-marker-split')&&(_0x2834b6['mapper']['unbindElementFromMarkerName'](_0x219e54,_0xe2edea['markerName']),_0x2834b6['writer']['remove'](_0x219e54));}},{'priority':'high'}),_0x21a1a4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x15f7ea,_0xaa7512,_0x4d7324)=>{_0x4d7324['options']['showSuggestionHighlights']&&Fe(_0x21a1a4,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x15f7ea,_0xaa7512,_0x4d7324);},{'priority':'high'});}}class Z extends _0x3953b7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x48ea79=this['editor']['plugins']['get']('TrackChangesEditing');_0x48ea79['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x48ea79['enableCommand']('findNext'),_0x48ea79['enableCommand']('findPrevious'),_0x48ea79['enableCommand']('replace'),_0x48ea79['enableCommand']('replaceAll');}['handleFindCommand'](_0x50d70e,_0x39065f,_0x526d84={}){const _0x68da15=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x50d70e(_0x484be1=>{let _0x1a0fbf=('string'==typeof _0x39065f?_0x68da15['findByTextCallback'](_0x39065f,_0x526d84):_0x39065f)(_0x484be1);Array['isArray'](_0x1a0fbf)&&(_0x1a0fbf={'results':_0x1a0fbf,'searchText':'string'==typeof _0x39065f?_0x39065f:''});const _0x48d55d=_0x1a0fbf['results']['filter'](_0xd47bad=>!0x1===this['_isInDeletionRange'](_0xd47bad,_0x484be1['item']));return{..._0x1a0fbf,'results':_0x48d55d};},_0x526d84);}['_isInDeletionRange'](_0x1bceeb,_0x53c222){const _0x9cbd85=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x53c222,_0x1bceeb['start']),this['editor']['model']['createPositionAt'](_0x53c222,_0x1bceeb['end']));for(const _0x59e64e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x9cbd85['getIntersection'](_0x59e64e['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 _0x3953b7{['afterInit'](){const _0x462b5a=this['editor']['locale'],_0x43c630=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x41b350,commandName:_0xd22c08}of ro)this['editor']['plugins']['has'](_0x41b350)&&(_0x43c630['enableDefaultAttributesIntegration'](_0xd22c08),_0x43c630['registerInlineAttribute'](_0xd22c08));_0x43c630['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x462b5a,'FORMAT_FONT_SIZE')),_0x43c630['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x462b5a,'FORMAT_FONT_FAMILY')),_0x43c630['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x462b5a,'FORMAT_FONT_COLOR')),_0x43c630['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x462b5a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3aa6c5=this['editor'],_0x2fe457=_0x3aa6c5['locale'];_0x3aa6c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14cb5b=>{const _0x502bb1=_0x2fe457['t'];if('formatInline'!=_0x14cb5b['type'])return;const {data:_0x15610e}=_0x14cb5b;if(null!=_0x15610e){if('fontSize'==_0x15610e['commandName']){const _0x29aa72=_0x15610e['commandParams'][0x0]['value'];if(_0x29aa72){const _0x58cd4a=_0x502bb1(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x43dc59=>_0x43dc59['model']==_0x29aa72)['title'])['toLowerCase']();return{'type':'format','content':c(_0x2fe457,'*Set\x20font\x20size:*\x20%0',_0x58cd4a)};}return{'type':'format','content':c(_0x2fe457,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x15610e['commandName']){const _0x33b0b8=_0x15610e['commandParams'][0x0]['value'];return _0x33b0b8?{'type':'format','content':c(_0x2fe457,'*Set\x20font\x20family:*\x20%0',_0x33b0b8)}:{'type':'format','content':c(_0x2fe457,'*Reset\x20font\x20family*')};}if('fontColor'==_0x15610e['commandName']){const _0x5b59c3=_0x15610e['commandParams'][0x0]['value'];if(_0x5b59c3){const _0x75f764=_0x60b02b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2ca463=>_0x2ca463['model']==_0x5b59c3);let _0x462e62=_0x5b59c3,_0x5340ce='';return _0x75f764&&(_0x462e62=_0x75f764['label'],_0x5340ce=_0x502bb1(_0x462e62)['toLowerCase']()),{'type':'format','content':c(_0x2fe457,'*Set\x20font\x20color:*\x20%0',_0x5340ce)['trim'](),'color':{'value':_0x5b59c3,'title':_0x5340ce||_0x462e62}};}return{'type':'format','content':c(_0x2fe457,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x15610e['commandName']){const _0x537065=_0x15610e['commandParams'][0x0]['value'];if(_0x537065){const _0x407969=_0x60b02b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2ead88=>_0x2ead88['model']==_0x537065);let _0x1793bf=_0x537065,_0x3de2ee='';return _0x407969&&(_0x1793bf=_0x407969['label'],_0x3de2ee=_0x502bb1(_0x1793bf)['toLowerCase']()),{'type':'format','content':c(_0x2fe457,'*Set\x20font\x20background\x20color:*\x20%0',_0x3de2ee)['trim'](),'color':{'value':_0x537065,'title':_0x3de2ee||_0x1793bf}};}return{'type':'format','content':c(_0x2fe457,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x3953b7{['afterInit'](){const _0xb0491a=this['editor'],_0x804b1=_0xb0491a['plugins']['get']('TrackChangesEditing'),_0x5a29e3=_0xb0491a['commands']['get']('copyFormat'),_0x23e135=_0xb0491a['commands']['get']('pasteFormat');_0x5a29e3&&_0x23e135&&(_0x804b1['enableDefaultAttributesIntegration']('pasteFormat'),_0x804b1['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x20be50=this['editor'],_0x561a70=_0x20be50['locale'];_0x20be50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58bfe2=>{if('formatBlock'!=_0x58bfe2['type']&&'formatInline'!=_0x58bfe2['type'])return;const {data:_0xf1ad1f}=_0x58bfe2;if(_0xf1ad1f&&'pasteFormat'===_0xf1ad1f['commandName']){const _0x50043c=[],_0x564215=_0xf1ad1f['commandParams'][0x0];for(const [_0x38e0fb,_0x363b0b]of Object['entries'](_0x564215))_0x50043c['push'](so(_0x20be50,_0x38e0fb,_0x363b0b));return _0x50043c['length']?{'type':'format','content':c(_0x561a70,'*Set\x20format\x20to:*\x20%0',_0x50043c['join'](',\x20'))}:{'type':'format','content':c(_0x561a70,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4d82fe,_0x1f0b32,_0x551112){const _0x155e6b=_0x4d82fe['locale']['t'],_0x2b530a=_0x1f0b32['split'](/(?=[A-Z])/)['join']('\x20'),_0x1b8560=_0x155e6b(_0x2b530a['charAt'](0x0)['toUpperCase']()+_0x2b530a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x551112)return _0x1b8560;if('fontColor'===_0x1f0b32||'fontBackgroundColor'===_0x1f0b32){const _0xda3dd9=_0x60b02b(_0x4d82fe['config']['get']('fontColor.colors'))['find'](_0x23f43d=>_0x23f43d['model']==_0x551112);return _0x1b8560+'\x20('+(_0xda3dd9?_0x155e6b(_0xda3dd9['label'])['toLowerCase']():_0x551112)+')';}if('fontSize'===_0x1f0b32&&isNaN(parseFloat(_0x551112))){const _0x4dd1c0=_0x4d82fe['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4d82fe['config']['get']('fontSize.options'))['find'](_0xa68d1d=>_0xa68d1d['model']==_0x551112);return _0x1b8560+'\x20('+(_0x4dd1c0?_0x155e6b(_0x4dd1c0['title'])['toLowerCase']():_0x551112)+')';}return _0x1b8560+'\x20('+_0x551112+')';}class et extends _0x3953b7{['_headingOptions'];['afterInit'](){const _0x24786d=this['editor'];if(!_0x24786d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x24786d['config']['get']('heading.options');const _0x2755bc=_0x24786d['locale'],_0xee80f6=_0x24786d['plugins']['get']('TrackChangesEditing');_0xee80f6['enableDefaultAttributesIntegration']('heading');for(const _0xbeb9c1 of this['_headingOptions'])'paragraph'!=_0xbeb9c1['model']&&_0xee80f6['descriptionFactory']['registerElementLabel'](_0xbeb9c1['model'],_0x321222=>{const _0x6ad84a=this['_getHeadingLevel'](_0xbeb9c1['model']);return null!==_0x6ad84a?_0x502436(_0x321222,_0x6ad84a):_0x32a492(_0x321222,_0xbeb9c1['title']);});function _0x502436(_0x22f509,_0x269e7f){return c(_0x2755bc,'ELEMENT_HEADING',[_0x22f509,_0x269e7f]);}function _0x32a492(_0x4a0884,_0x24bfb4){return c(_0x2755bc,'ELEMENT_HEADING_CUSTOM',[_0x4a0884,_0x24bfb4]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cb42a=this['editor'],_0x5dddc6=_0x4cb42a['locale'];function _0xef2970(_0x54fbd9,_0x355f43){return c(_0x5dddc6,'ELEMENT_HEADING_CUSTOM',[_0x54fbd9,_0x355f43]);}_0x4cb42a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fe6c7=>{if('formatBlock'!=_0x3fe6c7['type'])return;const {data:_0x15a7d9}=_0x3fe6c7;if(_0x15a7d9&&'heading'==_0x15a7d9['commandName']){const _0x5b423e=_0x15a7d9['commandParams'][0x0]['value'],_0x491af0=this['_getHeadingLevel'](_0x5b423e);if(null!==_0x491af0)return{'type':'format','content':c(_0x5dddc6,'*Change\x20to:*\x20%0',(_0xa23eb3=0x1,_0x3d53dd=_0x491af0,c(_0x5dddc6,'ELEMENT_HEADING',[_0xa23eb3,_0x3d53dd])))};const _0x37b1c1=this['_headingOptions']['find'](_0x33ee74=>_0x33ee74['model']===_0x5b423e)['title'];return{'type':'format','content':c(_0x5dddc6,'*Change\x20to:*\x20%0',_0xef2970(0x1,_0x37b1c1))};}var _0xa23eb3,_0x3d53dd;});}['_getHeadingLevel'](_0x23c915){const _0x535bcb=_0x23c915['match'](/^heading(\d+)/);if(_0x535bcb)return _0x535bcb[0x1];const _0x2acef9=this['_headingOptions']?.['find'](_0x156ec4=>_0x156ec4['model']==_0x23c915);if(_0x2acef9&&_0x2acef9['view']){const _0x191be2=_0x2acef9['view'],_0x344eb5=(_0x191be2['name']??_0x191be2)['match'](/^h(\d+)/);if(_0x344eb5)return _0x344eb5[0x1];}return null;}}class nt extends _0x3953b7{['afterInit'](){const _0x51d347=this['editor'];if(!_0x51d347['plugins']['has']('HighlightEditing'))return;const _0x40ca59=_0x51d347['plugins']['get']('TrackChangesEditing'),_0x9cb591=_0x51d347['locale'];_0x40ca59['enableDefaultAttributesIntegration']('highlight'),_0x40ca59['registerInlineAttribute']('highlight'),_0x40ca59['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x9cb591,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9b486d=this['editor'],_0x28735b=_0x9b486d['locale'];_0x9b486d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cd5d1=>{if('formatInline'!=_0x1cd5d1['type'])return;const {data:_0x5dba2c}=_0x1cd5d1;if(_0x5dba2c&&'highlight'==_0x5dba2c['commandName']){const _0x164677=_0x28735b['t'],_0x1f97c1=_0x5dba2c['commandParams'][0x0]['value'];if(_0x1f97c1){const _0x5d7daa=_0x9b486d['config']['get']('highlight.options')['find'](_0x4e91f3=>_0x4e91f3['model']==_0x1f97c1),_0x2699a6=_0x164677(_0x5d7daa['title'])['toLowerCase']();return{'type':'format','content':c(_0x28735b,'*Set\x20highlight:*\x20%0',_0x2699a6),'color':{'value':_0x5d7daa['color'],'title':_0x5d7daa['title']}};}return{'type':'format','content':c(_0x28735b,'*Remove\x20highlight*',c(_0x28735b,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x3953b7{['afterInit'](){const _0x1b5f5f=this['editor'];if(!_0x1b5f5f['plugins']['has']('HorizontalLineEditing'))return;_0x1b5f5f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x421348=_0x1b5f5f['plugins']['get']('TrackChangesEditing'),_0x3fdbfc=_0x1b5f5f['locale'];_0x421348['descriptionFactory']['registerElementLabel']('horizontalLine',_0x398210=>c(_0x3fdbfc,'ELEMENT_HORIZONTAL_LINE',_0x398210)),_0x1b5f5f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x24fe7f,{writer:_0x18ccdd,options:_0x8ca225})=>{if(!_0x8ca225['showSuggestionHighlights'])return null;const _0x120baf=_0x18ccdd['createContainerElement']('div'),_0x4840ae=_0x18ccdd['createEmptyElement']('hr');return _0x18ccdd['addClass']('ck-horizontal-line',_0x120baf),_0x18ccdd['insert'](_0x18ccdd['createPositionAt'](_0x120baf,0x0),_0x4840ae),_0x120baf;},'converterPriority':'high'});}}class ot extends _0x3953b7{['afterInit'](){const _0x29c5bc=this['editor'];if(!_0x29c5bc['plugins']['has']('HtmlEmbed'))return;const _0xbae537=_0x29c5bc['plugins']['get']('TrackChangesEditing'),_0x2f65d0=_0x29c5bc['locale'];_0xbae537['descriptionFactory']['registerElementLabel']('rawHtml',_0x51111c=>c(_0x2f65d0,'ELEMENT_HTML_EMBED',_0x51111c)),_0xbae537['enableDefaultAttributesIntegration']('htmlEmbed'),_0xbae537['registerBlockAttribute']('value'),_0xbae537['descriptionFactory']['registerDescriptionCallback'](_0x3f9bf1=>{if('attribute'!=_0x3f9bf1['type'])return;const {data:_0x141a75}=_0x3f9bf1;if(_0x141a75&&'value'==_0x141a75['key']&&_0x3f9bf1['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x166257=c(_0x2f65d0,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x2f65d0,'*Change\x20%0\x20content*',_0x166257)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30837f=this['editor'],_0x7c30c4=_0x30837f['locale'];_0x30837f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x314307=>{if('formatBlock'!=_0x314307['type'])return;const {data:_0x23b24d}=_0x314307;if(_0x23b24d&&'htmlEmbed'==_0x23b24d['commandName']){const _0x5f2bab=c(_0x7c30c4,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x7c30c4,'*Change\x20%0\x20content*',_0x5f2bab)};}});}}class rt extends _0x3953b7{['afterInit'](){const _0x4ff951=this['editor'];if(!_0x4ff951['plugins']['has']('ImageEditing'))return;const _0x42e22c=_0x4ff951['plugins']['get']('TrackChangesEditing'),_0x1e3f17=_0x4ff951['plugins']['get']('ImageUtils'),_0xe3793b=_0x4ff951['locale'];_0x42e22c['enableCommand']('insertImage'),_0x42e22c['descriptionFactory']['registerElementLabel']('imageBlock',_0x5edfff=>c(_0xe3793b,'ELEMENT_IMAGE',_0x5edfff)),_0x42e22c['descriptionFactory']['registerElementLabel']('imageInline',_0x45ab5d=>c(_0xe3793b,'ELEMENT_INLINE_IMAGE',_0x45ab5d)),_0x42e22c['descriptionFactory']['registerElementLabel']('caption',()=>c(_0xe3793b,'ELEMENT_CAPTION')),_0x4ff951['plugins']['has']('ImageUploadEditing')&&_0x42e22c['enableCommand']('uploadImage'),_0x4ff951['plugins']['has']('ImageBlockEditing')&&_0x4ff951['plugins']['has']('ImageInlineEditing')&&(_0x42e22c['enableCommand']('imageTypeInline',(_0x33c38b,_0x54926b)=>{const _0x38283b=_0x1e3f17['getClosestSelectedImageElement'](_0x4ff951['model']['document']['selection']);_0x4ff951['model']['change'](()=>{_0x42e22c['markBlockFormat'](_0x38283b,{'commandName':'imageTypeInline','commandParams':[_0x54926b]},[],'convertBlockImageToInline');});}),_0x42e22c['enableCommand']('imageTypeBlock',(_0x52a9c2,_0x1cfa92)=>{_0x4ff951['model']['change'](_0x1a8a62=>{let _0x527e64=_0x1e3f17['getClosestSelectedImageElement'](_0x4ff951['model']['document']['selection']),_0x3020ad=_0x1a8a62['createRangeOn'](_0x527e64);const _0x57f49f=_0x15578e['fromPosition'](_0x3020ad['start'],'toPrevious'),_0x5e65eb=_0x15578e['fromPosition'](_0x3020ad['end'],'toNext');_0x42e22c['forceDefaultExecution'](()=>_0x52a9c2(_0x1cfa92)),_0x527e64=_0x1e3f17['getClosestSelectedImageElement'](_0x4ff951['model']['document']['selection']),_0x3020ad=_0x1a8a62['createRangeOn'](_0x527e64);const _0x249729=_0x1a8a62['createRange'](_0x57f49f,_0x5e65eb);_0x57f49f['detach'](),_0x5e65eb['detach'](),_0x42e22c['markBlockFormat'](_0x527e64,{'commandName':'imageTypeInline','commandParams':[_0x1cfa92]},[],'convertInlineImageToBlock'),_0x249729['start']['isBefore'](_0x3020ad['start'])&&_0x42e22c['markInsertion'](_0x1a8a62['createRange'](_0x249729['start'],_0x3020ad['start']),'convertInlineImageToBlock'),_0x3020ad['end']['isBefore'](_0x249729['end'])&&_0x42e22c['markInsertion'](_0x1a8a62['createRange'](_0x3020ad['end'],_0x249729['end']),'convertInlineImageToBlock');});}),_0x42e22c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x42e22c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x42e22c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x42e22c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x42e22c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x42e22c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4b4ee7])=>{const _0x3b1e54=_0x42e22c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5a672e=_0x4b4ee7['start'],_0x2dc0a4=_0x4b4ee7['end'];const _0x5b7607=_0x4ff951['model']['schema']['getNearestSelectionRange'](_0x5a672e,'backward'),_0x5ae850=_0x4ff951['model']['schema']['getNearestSelectionRange'](_0x2dc0a4,'forward');_0x5b7607['isCollapsed']&&(_0x5a672e=_0x5b7607['start']),_0x5ae850['isCollapsed']&&(_0x2dc0a4=_0x5ae850['end']),_0x3b1e54([_0x4ff951['model']['createRange'](_0x5a672e,_0x2dc0a4)]);}),_0x42e22c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x57838b),_0x42e22c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x57838b)),_0x4ff951['plugins']['has']('ImageCaptionEditing')&&(_0x42e22c['enableCommand']('toggleImageCaption',(_0x1efbb4,_0x5a278b)=>{const _0x14a64d=_0x4ff951['plugins']['get']('ImageCaptionUtils');let _0x4900e9=_0x1e3f17['getClosestSelectedImageElement'](_0x4ff951['model']['document']['selection']),_0x2fc832=_0x14a64d['getCaptionFromImageModelElement'](_0x4900e9);_0x4ff951['model']['change'](()=>{if(_0x2fc832)return void _0x42e22c['markDeletion'](_0x4ff951['model']['createRangeOn'](_0x2fc832));const _0x372498=_0x1e3f17['isBlockImage'](_0x4900e9);_0x1efbb4(_0x5a278b),_0x4900e9=_0x1e3f17['getClosestSelectedImageElement'](_0x4ff951['model']['document']['selection']),_0x2fc832=_0x14a64d['getCaptionFromImageModelElement'](_0x4900e9),_0x42e22c['markInsertion'](_0x4ff951['model']['createRangeOn'](_0x2fc832),_0x372498?null:'imageCaption');});}),_0x42e22c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x57838b));const _0x5e57cc=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3e393d(_0x51a1c4,_0x953aab){const _0x2f3589=_0x5e57cc['findIndex'](({type:_0x410723,subType:_0x35b287})=>_0x51a1c4['type']==_0x410723&&_0x51a1c4['subType']==_0x35b287),_0x4f8e9d=_0x5e57cc['findIndex'](({type:_0x54eeea,subType:_0xf5d791})=>_0x953aab['type']==_0x54eeea&&_0x953aab['subType']==_0xf5d791);if(_0x2f3589<0x0||_0x4f8e9d<0x0)return!0x1;const _0x2dc6cb=_0x51a1c4['getFirstRange'](),_0x550131=_0x953aab['getFirstRange']();if((0x0==_0x2f3589||0x1==_0x2f3589)&&0x2==_0x4f8e9d&&_0x2dc6cb['isIntersecting'](_0x550131))return!0x0;if(0x2==_0x2f3589&&0x3==_0x4f8e9d){const _0x5458e0=_0x42e22c['_findSuggestions'](_0x2dc6cb,'insertion')['filter'](({suggestion:_0x48fa32,meta:_0xeb87bc})=>_0xeb87bc['isOwn']&&'convertInlineImageToBlock'==_0x48fa32['subType']);if(_0x5458e0['length']>0x1&&_0x550131['end']['isEqual'](_0x2dc6cb['start']))return!0x0;if(0x1==_0x5458e0['length']&&(_0x2dc6cb['start']['isEqual'](_0x550131['end'])||_0x2dc6cb['end']['isEqual'](_0x550131['start'])))return!0x0;}if(0x3==_0x2f3589&&0x3==_0x4f8e9d&&_0x2dc6cb['start']['isBefore'](_0x550131['start'])){const _0x416f8d=_0x2dc6cb['end']['nodeAfter'],_0x345144=_0x550131['start']['nodeBefore'];return _0x1e3f17['isBlockImage'](_0x416f8d)&&_0x416f8d===_0x345144;}return!0x1;}function _0x57838b(_0x4e1efd,_0x45c35a){return _0x3e393d(_0x4e1efd,_0x45c35a)?[_0x4e1efd,_0x45c35a]:_0x3e393d(_0x45c35a,_0x4e1efd)?[_0x45c35a,_0x4e1efd]:null;}_0x4ff951['plugins']['has']('ImageResize')&&(_0x42e22c['enableDefaultAttributesIntegration']('resizeImage'),_0x42e22c['registerBlockAttribute']('resizedWidth'),_0x42e22c['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0xe3793b,'FORMAT_IMAGE_SIZE'))),_0x4ff951['plugins']['has']('ImageTextAlternativeEditing')&&(_0x42e22c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x42e22c['registerBlockAttribute']('alt')),_0x4ff951['plugins']['has']('PictureEditing')&&(_0x42e22c['registerBlockAttribute']('sources'),_0x42e22c['descriptionFactory']['registerDescriptionCallback'](_0x1f8519=>{if('attribute'!=_0x1f8519['type'])return;const {data:_0x5e874e}=_0x1f8519;return _0x5e874e&&'sources'==_0x5e874e['key']?{'type':'format','content':''}:void 0x0;})),_0x4ff951['plugins']['has']('ImageSizeAttributes')&&(_0x42e22c['registerBlockAttribute']('width'),_0x42e22c['registerBlockAttribute']('height'),_0x42e22c['descriptionFactory']['registerDescriptionCallback'](_0x571ce9=>{if('attribute'!=_0x571ce9['type'])return;const {data:_0x1a0182}=_0x571ce9;return!_0x1a0182||'width'!=_0x1a0182['key']&&'height'!=_0x1a0182['key']?void 0x0:{'type':'format','content':''};})),_0x42e22c['descriptionFactory']['registerDescriptionCallback'](_0x4f63db=>{if(!!_0x5e57cc['find'](({type:_0x22f40a,subType:_0x3bc908})=>_0x4f63db['type']==_0x22f40a&&_0x4f63db['subType']==_0x3bc908))return _0x4f63db['previous']?{}:void 0x0;}),_0x42e22c['descriptionFactory']['registerDescriptionCallback'](_0x24da56=>{if('insertion'==_0x24da56['type']||'deletion'==_0x24da56['type']){const _0x5497f6=_0x24da56['getContainedElement']();if(_0x5497f6&&_0x5497f6['is']('element','caption'))return{'type':'insertion'==_0x24da56['type']?'addObject':'removeObject','element':_0x5497f6,'quantity':0x1};}}),_0x42e22c['descriptionFactory']['registerDescriptionCallback'](_0x169ba8=>'formatBlock'==_0x169ba8['type']&&'convertInlineImageToBlock'==_0x169ba8['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x169ba8['type']&&'convertBlockImageToInline'==_0x169ba8['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x42e22c['descriptionFactory']['registerDescriptionCallback'](_0x4fdead=>{if('attribute'!=_0x4fdead['type'])return;const {data:_0x4e5761}=_0x4fdead;if(!_0x4e5761||'alt'!=_0x4e5761['key'])return;const _0x5cf346=_0x4e5761['newValue'];return _0x5cf346?{'type':'format','content':c(_0xe3793b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5cf346+'\x22')}:{'type':'format','content':c(_0xe3793b,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56f371=this['editor'],_0x251b19=_0x56f371['locale'];_0x56f371['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d934c=>{if('formatBlock'!=_0x3d934c['type']&&'formatInline'!=_0x3d934c['type'])return;const {data:_0x21024c}=_0x3d934c;if(_0x21024c){if('imageTextAlternative'==_0x21024c['commandName']){const _0x4e65fd=_0x21024c['commandParams'][0x0]['newValue'];return _0x4e65fd?{'type':'format','content':c(_0x251b19,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4e65fd+'\x22')}:{'type':'format','content':c(_0x251b19,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x21024c['commandName']){const _0x4e9f41=_0x21024c['commandParams'][0x0]['width'];return _0x4e9f41?{'type':'format','content':c(_0x251b19,'*Set\x20image\x20width:*\x20%0',_0x4e9f41)}:{'type':'format','content':c(_0x251b19,'*Reset\x20image\x20width*')};}}});}}class at extends _0x3953b7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4aa5bc=this['editor']['locale'],_0x496e85=this['editor']['plugins']['get']('TrackChangesEditing');_0x496e85['enableDefaultAttributesIntegration']('replaceImageSource'),_0x496e85['registerBlockAttribute']('src'),_0x496e85['descriptionFactory']['registerDescriptionCallback'](_0x10fe36=>{if('attribute'!=_0x10fe36['type'])return;const {data:_0x5f37a6}=_0x10fe36;return _0x5f37a6&&'src'==_0x5f37a6['key']?_0x5f37a6['newValue']&&_0x5f37a6['oldValue']?{'type':'format','content':c(_0x4aa5bc,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5c782d=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c782d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5c782d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c782d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5c782d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12272e=this['editor'],_0x1d136b=_0x12272e['locale'];_0x12272e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cedb3=>{if('formatBlock'!=_0x5cedb3['type']&&'formatInline'!=_0x5cedb3['type'])return;const {data:_0x4eedd6}=_0x5cedb3;if(!_0x4eedd6||'replaceImageSource'!=_0x4eedd6['commandName'])return;return{'type':'format','content':c(_0x1d136b,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x3953b7{['afterInit'](){const _0xb6299a=this['editor'];if(!_0xb6299a['plugins']['has']('ImageStyleEditing'))return;const _0x129110=_0xb6299a['plugins']['get']('TrackChangesEditing'),_0x309b86=_0xb6299a['plugins']['get']('ImageUtils'),_0x248105={};_0x129110['enableCommand']('imageStyle',(_0x3b6143,_0x24d9b0)=>{const _0x2a5921=_0xb6299a['plugins']['get']('Users')['me'],_0x2c4fde=_0xb6299a['commands']['get']('imageStyle');let _0x287dba=_0x309b86['getClosestSelectedImageElement'](_0xb6299a['model']['document']['selection']),_0x170e1a=_0xb6299a['model']['createRangeOn'](_0x287dba),_0x41348d=_0x2c4fde['value'];if(_0x41348d==_0x24d9b0['value'])return;const _0x1037ee={'commandName':'imageStyle','commandParams':[_0x24d9b0],'formatGroupId':_0x524fb1()};_0xb6299a['model']['change'](()=>{if(_0x129110['getSuggestions']()['filter'](_0x412793=>_0x412793['isInContent']&&_0x2a5921==_0x412793['author']&&('formatBlock'==_0x412793['type']||'formatInline'==_0x412793['type'])&&('imageStylePreApply'==_0x412793['subType']||'imageStylePostApply'==_0x412793['subType'])&&_0x412793['getFirstRange']()['isEqual'](_0x170e1a))['forEach'](_0x59066f=>_0x129110['discardSuggestion'](_0x59066f['head'])),_0x287dba=_0x309b86['getClosestSelectedImageElement'](_0xb6299a['model']['document']['selection']),_0x170e1a=_0xb6299a['model']['createRangeOn'](_0x287dba),_0x2c4fde['refresh'](),_0xb6299a['commands']['get']('imageTypeInline')['refresh'](),_0xb6299a['commands']['get']('imageTypeBlock')['refresh'](),_0x41348d=_0x2c4fde['value'],_0x41348d!=_0x24d9b0['value'])return _0x309b86['isInlineImage'](_0x287dba)&&_0x2c4fde['shouldConvertImageType'](_0x24d9b0['value'],_0x287dba)?(_0x3b6143({..._0x24d9b0,'setImageSizes':!0x1}),_0x287dba=_0x309b86['getClosestSelectedImageElement'](_0xb6299a['model']['document']['selection']),void _0x129110['markBlockFormat'](_0x287dba,{..._0x1037ee,'commandReversedParams':[{'value':_0x41348d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x309b86['isBlockImage'](_0x287dba)?_0x129110['markBlockFormat'](_0x287dba,_0x1037ee,[],'imageStylePostApply'):_0x129110['markInlineFormat'](_0x170e1a,_0x1037ee,'imageStylePostApply'));});});for(const _0x5e35f4 of _0xb6299a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x248105[_0x5e35f4['name']]=_0x5e35f4['title']['toLowerCase']();_0x129110['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x129110['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x129110['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x129110['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x362157])=>{_0x309b86['setImageNaturalSizeAttributes'](_0x362157['getContainedElement']());}),_0x129110['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2fcd2e,_0x54ccfb)=>{_0x129110['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2fcd2e,{'commandName':_0x54ccfb['commandName'],'commandParams':_0x54ccfb['commandReversedParams']});}),_0x129110['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x26b034,_0x22ef52){if(_0x218bb1(_0x26b034,_0x22ef52))return[_0x26b034,_0x22ef52];if(_0x218bb1(_0x22ef52,_0x26b034))return[_0x22ef52,_0x26b034];return null;});const _0x593cca=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x218bb1(_0x135cea,_0x5d567c){const _0x161112=_0x593cca['findIndex'](({type:_0x1c7b00,subType:_0x1c8d98})=>_0x135cea['type']==_0x1c7b00&&_0x135cea['subType']==_0x1c8d98),_0x2fd31c=_0x593cca['findIndex'](({type:_0x139536,subType:_0x420bc9})=>_0x5d567c['type']==_0x139536&&_0x5d567c['subType']==_0x420bc9);if(_0x161112<0x0||_0x2fd31c<0x0)return!0x1;const _0x51ec98=_0x135cea['getFirstRange'](),_0xbc99cc=_0x5d567c['getFirstRange']();if((0x0==_0x161112||0x1==_0x161112)&&0x2==_0x2fd31c&&_0x51ec98['isIntersecting'](_0xbc99cc))return!0x0;if(0x2==_0x161112&&0x3==_0x2fd31c){const _0x53d326=_0x129110['_findSuggestions'](_0x51ec98,'insertion')['filter'](({suggestion:_0x3d24f8,meta:_0x3141c5})=>_0x3141c5['isOwn']&&'convertInlineImageToBlock'==_0x3d24f8['subType']);if(_0x53d326['length']>0x1&&_0xbc99cc['end']['isEqual'](_0x51ec98['start']))return!0x0;if(0x1==_0x53d326['length']&&(_0x51ec98['start']['isEqual'](_0xbc99cc['end'])||_0x51ec98['end']['isEqual'](_0xbc99cc['start'])))return!0x0;}if(0x3==_0x161112&&0x3==_0x2fd31c&&_0x51ec98['start']['isBefore'](_0xbc99cc['start'])){const _0x1d9104=_0x51ec98['end']['nodeAfter'],_0x21865d=_0xbc99cc['start']['nodeBefore'];return _0x309b86['isBlockImage'](_0x1d9104)&&_0x1d9104===_0x21865d;}return!0x1;}_0xb6299a['model']['document']['registerPostFixer'](()=>{let _0x3caa8a=!0x1;const _0x393337=Array['from'](_0xb6299a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x292117,data:_0x5b5d7a}of _0x393337){const {group:_0xb09eab,type:_0x2a039d,subType:_0x2d2537,id:_0x4570e2}=_0x129110['_splitMarkerName'](_0x292117);if('suggestion'==_0xb09eab&&_0x129110['hasSuggestion'](_0x4570e2)){if('formatBlock'==_0x2a039d&&('imageStylePreApply'==_0x2d2537||'imageStylePostApply'==_0x2d2537)){const _0x2dd726=_0x129110['getSuggestion'](_0x4570e2);if(_0x5b5d7a['newRange']){const _0x57a6b1=_0x2dd726['getFirstRange']()['getContainedElement']();if(_0x309b86['isBlockImage'](_0x57a6b1))continue;_0x129110['discardSuggestion'](_0x2dd726),_0x3caa8a=!0x0;}}if('insertion'==_0x2a039d&&'imageCaption'==_0x2d2537&&!_0x5b5d7a['newRange']){const _0xe27769=_0x129110['getSuggestion'](_0x4570e2);_0xe27769['next']&&_0xe27769['next']['isInContent']&&(_0x129110['discardSuggestion'](_0xe27769['next']),_0x3caa8a=!0x0);}}}return _0x3caa8a;}),this['_registerLegacyDescription'](_0x248105);}['_registerLegacyDescription'](_0x551ae8){const _0x4879e4=this['editor'],_0x69d769=_0x4879e4['locale'];_0x4879e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28d765=>{if('formatBlock'!=_0x28d765['type']&&'formatInline'!=_0x28d765['type'])return;const {data:_0x3bd2f5}=_0x28d765;if(!_0x3bd2f5||'imageStyle'!=_0x3bd2f5['commandName'])return;const _0x57d3e6=_0x3bd2f5['commandParams'][0x0]['value'];return _0x18d994('side'===_0x57d3e6?c(_0x69d769,'FORMAT_SIDE_IMAGE'):_0x551ae8[_0x57d3e6]||_0x57d3e6);function _0x18d994(_0x2db2b9){return{'type':'format','content':c(_0x69d769,'*Format:*\x20%0',_0x2db2b9)};}});}}class ut extends _0x3953b7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3e0bb5){super(_0x3e0bb5),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x53f0ed=this['editor'],_0x1dcb95=_0x53f0ed['commands']['get']('importWord'),_0x5bb57c=_0x53f0ed['commands']['get']('trackChanges');_0x1dcb95&&(_0x1dcb95['on']('execute',(_0x27da4f,[,_0xed00b9])=>{this['_trackChangesValueDuringImport']=_0x5bb57c['value'],_0xed00b9['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1dcb95,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1dcb95,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5bb57c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x53f0ed['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x114bc9,_0x2d807f){const {suggestions:_0x3d6ec7}=_0x2d807f,_0x160af3=this['editor']['commands']['get']('trackChanges'),_0x2c7cd3=_0x160af3['value'];this['_trackChangesValueDuringImport']!==_0x2c7cd3&&(_0x160af3['execute'](),this['_trackChangesExecuted']=!0x0),_0x3d6ec7&&_0x3d6ec7['forEach'](({id:_0x322cfd,type:_0x1f24a3,author:_0x902ea6,created_at:_0x545430})=>{const _0x1bfeb7={'id':_0x322cfd,'type':_0x1f24a3,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x902ea6,'createdAt':_0x545430?new Date(_0x545430):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1bfeb7);});}}class ft extends _0x3953b7{['afterInit'](){const _0x1c60d8=this['editor'],_0x33ad79=_0x1c60d8['plugins']['get']('TrackChangesEditing');if(_0x1c60d8['plugins']['has']('IndentEditing')&&(_0x33ad79['enableCommand']('indent'),_0x33ad79['enableCommand']('outdent')),_0x1c60d8['plugins']['has']('IndentBlock')){for(const _0x64dec5 of['indentBlock','outdentBlock'])_0x33ad79['enableDefaultAttributesIntegration'](_0x64dec5);}const _0x2704cd=_0x1c60d8['locale'];_0x33ad79['registerBlockAttribute']('blockIndent'),_0x33ad79['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x2704cd,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e952a=this['editor'],_0x39006b=_0x3e952a['locale'],_0x358f6b=_0x3e952a['plugins']['get']('TrackChangesEditing');_0x358f6b['descriptionFactory']['registerDescriptionCallback'](_0x4db59c=>{if('formatBlock'!=_0x4db59c['type'])return;const {data:_0x4d981b}=_0x4db59c;if(!_0x4d981b)return;if('indentBlock'!=_0x4d981b['commandName']&&'outdentBlock'!=_0x4d981b['commandName'])return;const _0x3d722c=_0x4db59c['getItems']()[0x0],_0x3b4351=_0x358f6b['descriptionFactory']['getItemLabel'](_0x3d722c);return'indentBlock'==_0x4d981b['commandName']?{'type':'format','content':c(_0x39006b,'*Indent:*\x20%0',_0x3b4351)}:'outdentBlock'==_0x4d981b['commandName']?{'type':'format','content':c(_0x39006b,'*Outdent:*\x20%0',_0x3b4351)}:void 0x0;});}}class ht extends _0x3953b7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x3953b7{['afterInit'](){const _0x47bb36=this['editor'];if(!_0x47bb36['plugins']['has']('LinkEditing'))return;const _0x138e1e=_0x47bb36['plugins']['get']('TrackChangesEditing'),_0xc3de38=_0x47bb36['commands']['get']('link');_0x138e1e['enableDefaultAttributesIntegration']('link'),_0x138e1e['enableDefaultAttributesIntegration']('unlink'),_0x138e1e['registerInlineAttribute']('linkHref');for(const _0x181fbe of _0xc3de38['manualDecorators'])_0x138e1e['registerInlineAttribute'](_0x181fbe['id']),_0x138e1e['descriptionFactory']['registerAttributeLabel'](_0x181fbe['id'],'link\x20('+_0x181fbe['label']['toLowerCase']()+')');_0x138e1e['descriptionFactory']['registerDescriptionCallback'](_0x32308e=>{if('attribute'!=_0x32308e['type'])return;const {data:_0x2a8f06}=_0x32308e;if(!_0x2a8f06||'linkHref'!=_0x2a8f06['key'])return;const _0x4bcfc8=_0x2a8f06['newValue'],_0x5f57a2=_0x47bb36['locale'];return{'type':'format','content':null==_0x4bcfc8?c(_0x5f57a2,'*Remove\x20link*'):c(_0x5f57a2,'*Set\x20link:*\x20%0','\x22'+_0x4bcfc8+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23d2aa=this['editor'],_0x3eb318=_0x23d2aa['locale'];_0x23d2aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x543634=>{if('formatInline'!=_0x543634['type'])return;const {data:_0x9a8f6e}=_0x543634;if(_0x9a8f6e){if('link'==_0x9a8f6e['commandName']){const _0x1f3a69=_0x9a8f6e['commandParams'][0x0];return{'type':'format','content':c(_0x3eb318,'*Set\x20link:*\x20%0','\x22'+_0x1f3a69+'\x22')};}return'unlink'==_0x9a8f6e['commandName']?{'type':'format','content':c(_0x3eb318,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x3953b7{['afterInit'](){const _0x2541fd=this['editor'],_0x476f00=_0x2541fd['locale'];if(!_0x2541fd['plugins']['has']('LegacyListEditing'))return;const _0x5dd766=_0x2541fd['plugins']['get']('TrackChangesEditing'),_0xa55af9=_0x2541fd['plugins']['has']('LegacyTodoListEditing');function _0xda926c(_0x317109){return()=>{const _0xad1b5=_0x2541fd['model']['document']['selection'],_0x4eef75=_0x2541fd['commands']['get'](_0x317109);if(_0x4eef75['value'])return void _0x2541fd['execute']('paragraph',{});const _0x3e6689=_0x317109['slice'](0x0,-0x4),_0x1cf122=function(_0x336e42,_0x55a722,_0x51e2b0){let _0x1d23fe=Array['from'](_0x336e42)['filter'](_0x36543f=>function(_0x11e05c,_0xf02293){return _0xf02293['checkChild'](_0x11e05c['parent'],'listItem')&&!_0xf02293['isObject'](_0x11e05c);}(_0x36543f,_0x51e2b0));_0x1d23fe=_0x1d23fe['filter'](_0x5eb3ed=>!_0x5eb3ed['is']('element','listItem')||_0x5eb3ed['getAttribute']('listType')!=_0x55a722);const _0x4ede8a=new Set();for(const _0x226d4e of _0x1d23fe)_0x226d4e['is']('element','listItem')?_0x4ede8a['add'](Le(_0x226d4e)):_0x4ede8a['add'](_0x226d4e);return Array['from'](_0x4ede8a);}(_0xad1b5['getSelectedBlocks'](),_0x3e6689,_0x2541fd['model']['schema']);_0x2541fd['model']['change'](()=>{for(const _0x12abf1 of _0x1cf122)_0x5dd766['markBlockFormat'](_0x12abf1,{'commandName':_0x317109,'commandParams':[{'forceValue':!_0x4eef75['value']}],'formatGroupId':'blockName'},Ee(_0x12abf1));});};}function _0x4adb6b(_0x17b3e6){return()=>{const _0x514a45=function(_0x599e01){let _0x4b4d1f=Array['from'](_0x599e01);const _0x4457aa=_0x4b4d1f['findIndex'](_0x26f99f=>'listItem'!=_0x26f99f['name']);return _0x4457aa>-0x1&&(_0x4b4d1f=_0x4b4d1f['slice'](0x0,_0x4457aa)),_0x4b4d1f;}(_0x2541fd['model']['document']['selection']['getSelectedBlocks']()),_0x243754=_0x2541fd['model']['createRange'](_0x2541fd['model']['createPositionAt'](_0x514a45[0x0],'before'),_0x2541fd['model']['createPositionAt'](_0x514a45[_0x514a45['length']-0x1],'end'));_0x2541fd['model']['change'](()=>{_0x5dd766['markBlockFormat'](_0x243754,{'commandName':_0x17b3e6,'commandParams':[],'formatGroupId':'listIndent'},function(_0x437b39){const _0x3a1794=new Set();for(const _0x44709e of _0x437b39){let _0x4ee7c3=_0x44709e['nextSibling'];for(;_0x4ee7c3&&_0x4ee7c3['getAttribute']('listIndent')>_0x44709e['getAttribute']('listIndent');)_0x3a1794['add'](_0x4ee7c3),_0x4ee7c3=_0x4ee7c3['nextSibling'];}return Array['from'](_0x3a1794);}(_0x514a45));});};}_0x5dd766['enableCommand']('numberedList',_0xda926c('numberedList')),_0x5dd766['enableCommand']('bulletedList',_0xda926c('bulletedList')),_0xa55af9&&_0x5dd766['enableCommand']('todoList',_0xda926c('todoList')),_0x5dd766['enableCommand']('indentList',_0x4adb6b('indentList')),_0x5dd766['enableCommand']('outdentList',_0x4adb6b('outdentList')),_0xa55af9&&_0x5dd766['enableCommand']('checkTodoList',()=>{const _0x1f8c7f=_0x2541fd['commands']['get']('checkTodoList'),_0x45d851=Array['from'](_0x1f8c7f['_selectedElements']);_0x45d851['filter'](_0x1f4ed7=>_0x1f4ed7['getAttribute']('todoListChecked')!=_0x1f8c7f['value']),_0x2541fd['model']['change'](()=>{for(const _0x419b19 of _0x45d851)_0x5dd766['markBlockFormat'](_0x419b19,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1f8c7f['value']}]});});}),_0x5dd766['descriptionFactory']['registerElementLabel']('listItem',_0x198456=>c(_0x476f00,'ELEMENT_LIST_ITEM',_0x198456)),_0x5dd766['descriptionFactory']['registerDescriptionCallback'](_0x267497=>{if('formatBlock'!=_0x267497['type']&&'formatInline'!=_0x267497['type'])return;const {data:_0x230380}=_0x267497;if(_0x230380){if('numberedList'==_0x230380['commandName']||'bulletedList'==_0x230380['commandName']||'todoList'==_0x230380['commandName'])switch(_0x230380['commandName']['replace']('List','')){case'bulleted':return _0x3027da(c(_0x476f00,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3027da(c(_0x476f00,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3027da(c(_0x476f00,'ELEMENT_TODO_LIST'));}if('indentList'==_0x230380['commandName'])return{'type':'format','content':c(_0x476f00,'*Indent:*\x20%0',c(_0x476f00,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x230380['commandName'])return{'type':'format','content':c(_0x476f00,'*Outdent:*\x20%0',c(_0x476f00,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x230380['commandName'])return _0x230380['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x476f00,'*Check\x20item*')}:{'type':'format','content':c(_0x476f00,'*Uncheck\x20item*')};}function _0x3027da(_0x56a54c){return{'type':'format','content':c(_0x476f00,'*Change\x20to:*\x20%0',_0x56a54c)};}});}}function Le(_0x45c58d){const _0x137ece=_0x45c58d['getAttribute']('listIndent');if(0x0==_0x137ece)return _0x45c58d;let _0x8c603c=_0x45c58d;for(;_0x45c58d['previousSibling']&&_0x45c58d['previousSibling']['is']('element','listItem');){const _0x38c5ff=_0x45c58d['previousSibling']['getAttribute']('listIndent');if(_0x38c5ff==_0x137ece)_0x8c603c=_0x45c58d['previousSibling'];else{if(_0x38c5ff<_0x137ece)break;}_0x45c58d=_0x45c58d['previousSibling'];}return _0x8c603c;}function Ee(_0x3d0d84){const _0x402d46=[];if(_0x3d0d84['is']('element','listItem')&&_0x3d0d84['getAttribute']('listIndent')>0x0){let _0x27049d=_0x3d0d84['nextSibling'];for(;_0x27049d&&'listItem'==_0x27049d['name']&&_0x27049d['getAttribute']('listIndent')==_0x3d0d84['getAttribute']('listIndent');)_0x402d46['push'](_0x27049d),_0x27049d=_0x27049d['nextSibling'];}return _0x402d46;}class Q extends _0x3953b7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x588cd3=this['editor']['config']['get']('list.properties'),_0x2efb47=this['editor']['plugins']['get']('TrackChangesEditing');_0x588cd3['styles']&&_0x2efb47['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x588cd3['reversed']&&_0x2efb47['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x588cd3['startIndex']&&_0x2efb47['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2efb47['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x209ee1,_0x251f62={}){const _0x338b49=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d5017=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x338b49['markMultiRangeBlockFormat'](_0x3d5017,{'commandName':'listStyle','commandParams':[{'type':_0x251f62['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4a66f9,_0x3e1467={}){const _0x505223=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35b9b9=this['_getSuggestionBlocks'](_0x329dd1=>_0x329dd1['is']('element','listItem')&&'numbered'===_0x329dd1['getAttribute']('listType'));if(_0x35b9b9['length']<0x1)return;const _0x1cf24a=_0x35b9b9['map'](_0x32e9f4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x32e9f4,'before'),this['editor']['model']['createPositionAt'](_0x32e9f4,0x0)));this['editor']['model']['change'](()=>{_0x505223['markMultiRangeBlockFormat'](_0x1cf24a,{'commandName':'listReversed','commandParams':[{'reversed':_0x3e1467['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x30334b,_0x155a1d={}){const _0x5bce00=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfaf30b=this['_getSuggestionBlocks'](_0x1b63ea=>_0x1b63ea['is']('element','listItem')&&'numbered'===_0x1b63ea['getAttribute']('listType'));if(_0xfaf30b['length']<0x1)return;const _0x127d72=_0xfaf30b['map'](_0x428415=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x428415,'before'),this['editor']['model']['createPositionAt'](_0x428415,0x0)));this['editor']['model']['change'](()=>{_0x5bce00['markMultiRangeBlockFormat'](_0x127d72,{'commandName':'listStart','commandParams':[{'startIndex':_0x155a1d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x172a96){if('formatBlock'!=_0x172a96['type']&&'formatInline'!=_0x172a96['type'])return;const _0x44fab1=this['editor']['locale'],{data:_0x4fb62b}=_0x172a96;if(!_0x4fb62b)return;let _0x952770,_0x535265;switch(_0x4fb62b['commandName']){case'listStyle':_0x952770='*Change\x20to:*\x20%0',_0x535265={'type':'format','content':c(_0x44fab1,_0x952770,c(_0x44fab1,this['_getTranslationKeyForListStyle'](_0x4fb62b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x952770=_0x4fb62b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x535265={'type':'format','content':c(_0x44fab1,_0x952770)};break;case'listStart':_0x952770='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x535265={'type':'format','content':c(_0x44fab1,_0x952770,_0x4fb62b['commandParams'][0x0]['startIndex'])};}return _0x535265;}['_getSuggestionBlocksForListStyle'](){const _0x16c25c=this['editor']['plugins']['get']('LegacyListUtils');let _0x436c7f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x436c7f[0x0]?.['is']('element','listItem')&&_0x436c7f['unshift'](..._0x16c25c['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x436c7f[_0x436c7f['length']-0x1]?.['is']('element','listItem')&&_0x436c7f['push'](..._0x16c25c['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x436c7f=[...new Set(_0x436c7f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x436c7f=_0x436c7f['filter'](_0x166c02=>_0x166c02['is']('element','listItem'))),_0x436c7f;}['_getSuggestionBlocks'](_0x37f628){const _0x2cea7a=this['editor']['plugins']['get']('LegacyListUtils');let _0x2aee28=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x37f628)['map'](_0x2428d9=>{const _0x343bf2=this['editor']['model']['createPositionAt'](_0x2428d9,0x0);return[..._0x2cea7a['getSiblingNodes'](_0x343bf2,'backward'),..._0x2cea7a['getSiblingNodes'](_0x343bf2,'forward')];})['flat']();return _0x2aee28=[...new Set(_0x2aee28)],_0x2aee28;}['_getTranslationKeyForListStyle'](_0xa3a13c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xa3a13c)||'default')['toUpperCase']()+'_LIST_'+_0xa3a13c['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x3953b7{['afterInit'](){const _0x30046e=this['editor'];if(!_0x30046e['plugins']['has']('MediaEmbedEditing'))return;const _0x24c87b=_0x30046e['plugins']['get']('TrackChangesEditing'),_0x40a231=_0x30046e['locale'];_0x24c87b['enableCommand']('mediaEmbed'),_0x24c87b['descriptionFactory']['registerElementLabel']('media',_0x4a7101=>c(_0x40a231,'ELEMENT_MEDIA',_0x4a7101)),_0x30046e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5d33bf,{writer:_0x410a55,options:_0x3f8edc})=>{if(_0x3f8edc['showSuggestionHighlights'])return _0x410a55['createEmptyElement']('div');},'converterPriority':'high'}),_0x30046e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x138f6a,_0x4ff56e,_0x2f98d9)=>{_0x2f98d9['options']['showSuggestionHighlights']&&_0x138f6a['stop']();},{'priority':'high'});}}class pt extends _0x3953b7{['afterInit'](){const _0x2d1c36=this['editor'];_0x2d1c36['plugins']['has']('MentionEditing')&&_0x2d1c36['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x3953b7{['afterInit'](){const _0x763880=this['editor'];if(!_0x763880['plugins']['has']('MergeFieldsEditing'))return;const _0x24bc63=_0x763880['plugins']['get']('TrackChangesEditing'),_0x2ca272=_0x763880['locale'];_0x24bc63['enableCommand']('insertMergeField'),_0x24bc63['enableCommand']('insertMergeFieldBlock'),_0x24bc63['enableCommand']('insertMergeFieldImage'),_0x24bc63['descriptionFactory']['registerElementLabel']('mergeField',_0x1fad2f=>c(_0x2ca272,'ELEMENT_MERGE_FIELD',_0x1fad2f)),_0x24bc63['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x59b392=>c(_0x2ca272,'ELEMENT_MERGE_FIELD',_0x59b392)),_0x24bc63['descriptionFactory']['registerDescriptionCallback'](_0x1a5251=>{if('insertion'!=_0x1a5251['type']&&'deletion'!=_0x1a5251['type'])return;const _0x51d65e=_0x1a5251['getContainedElement']();if(null==_0x51d65e)return;const _0x429f49=_0x763880['plugins']['get']('MergeFieldsEditing');let _0x2873ba;switch(_0x429f49['getMergeFieldType'](_0x51d65e)){case null:return;case'image':{const _0x2dfe9a=_0x429f49['unwrapAffixes'](_0x51d65e['getAttribute']('src'));_0x2873ba=_0x429f49['getLabel'](_0x2dfe9a)||_0x2dfe9a;break;}default:{const _0x419ee1=_0x51d65e['getAttribute']('id');_0x2873ba=_0x429f49['getLabel'](_0x419ee1)||_0x419ee1;break;}}return'insertion'==_0x1a5251['type']?{'type':'insertion','content':c(_0x2ca272,'*Insert:*\x20%0','\x22'+_0x2873ba+'\x22\x20'+c(_0x2ca272,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x2ca272,'*Remove:*\x20%0','\x22'+_0x2873ba+'\x22\x20'+c(_0x2ca272,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x3953b7{['afterInit'](){const _0x4374cf=this['editor'],_0x3ce089=_0x4374cf['plugins']['get']('TrackChangesEditing');_0x4374cf['plugins']['has']('MultiLevelList')&&(_0x3ce089['enableDefaultAttributesIntegration']('multiLevelList'),_0x3ce089['registerBlockAttribute']('listMarkerStyle'),_0x3ce089['descriptionFactory']['registerDescriptionCallback'](_0x5f404d=>this['handleDescriptions'](_0x5f404d)));}['handleDescriptions'](_0x294de1){const _0x52886e=this['editor']['locale'],{data:_0xf9dd11}=_0x294de1,_0x552317={'type':'format','content':''};if(_0xf9dd11&&'listMarkerStyle'==_0xf9dd11['key']){if(!_0xf9dd11['oldValue'])return{'type':'format','content':c(_0x52886e,'*Set\x20format:*\x20%0',c(_0x52886e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xf9dd11['newValue']+')'};if(!_0xf9dd11['newValue']){let _0x558662=_0x294de1['head'];for(;_0x558662;){if(_0x558662['data']&&'listType'==_0x558662['data']['key']&&_0x558662['data']['newValue'])return _0x552317;_0x558662=_0x558662['next'];}return{'type':'format','content':c(_0x52886e,'*Remove\x20format:*\x20%0',c(_0x52886e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xf9dd11['oldValue']+')'};}}}}class bt extends _0x3953b7{['afterInit'](){const _0xe8fdcd=this['editor'];if(!_0xe8fdcd['plugins']['has']('PageBreakEditing'))return;_0xe8fdcd['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2b327e=_0xe8fdcd['plugins']['get']('TrackChangesEditing'),_0x1f4043=_0xe8fdcd['locale'];_0x2b327e['descriptionFactory']['registerElementLabel']('pageBreak',_0x18880f=>c(_0x1f4043,'ELEMENT_PAGE_BREAK',_0x18880f));}}class yt extends _0x3953b7{['afterInit'](){const _0x374d22=this['editor'];if(!_0x374d22['plugins']['has']('Paragraph'))return;const _0x439bef=_0x374d22['locale'],_0x18ce7f=_0x374d22['plugins']['get']('TrackChangesEditing');_0x18ce7f['descriptionFactory']['registerElementLabel']('paragraph',_0x514dd0=>c(_0x439bef,'ELEMENT_PARAGRAPH',_0x514dd0)),_0x18ce7f['enableDefaultAttributesIntegration']('paragraph'),_0x18ce7f['enableCommand']('insertParagraph'),_0x374d22['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x374d22),{'priority':'highest'}),_0x374d22['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xff0ebf,_0x3677ef,_0x34d4b8)=>{_0x34d4b8['options']['showSuggestionHighlights']&&nr(_0x374d22,{'showActiveMarker':!0x1})(_0xff0ebf,_0x3677ef,_0x34d4b8);},{'priority':'highest'});const _0x71c6f6=_0x18ce7f['descriptionFactory'];_0x71c6f6['registerDescriptionCallback'](_0x26e3b4=>{if('insertion'!==_0x26e3b4['type'])return;const {start:_0x130657,end:_0x2fc15b}=_0x26e3b4['getFirstRange']();if(!_0x130657['isTouching'](_0x2fc15b)||!_0x130657['nodeAfter'])return;const _0x2c7323=_0x374d22['model']['schema'],_0x2a6c76=_0x130657['nodeAfter'];return _0x2c7323['isBlock'](_0x2a6c76)&&!_0x2c7323['isLimit'](_0x2a6c76)&&_0x2c7323['checkChild'](_0x2a6c76,'$text')?{'type':'insertion','content':c(_0x439bef,'*Insert:*\x20%0',_0x71c6f6['getItemLabel'](_0x2a6c76,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19a933=this['editor'],_0x1e3420=_0x19a933['locale'];_0x19a933['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x372799=>{if('formatBlock'!=_0x372799['type'])return;const {data:_0x49e4df}=_0x372799;return _0x49e4df&&'paragraph'==_0x49e4df['commandName']?{'type':'format','content':c(_0x1e3420,'*Change\x20to:*\x20%0',c(_0x1e3420,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x59e9b2,{showActiveMarker:_0x1d695d=!0x0}={}){return(_0x3029be,_0x3696fc,_0x401184)=>{const _0xa32b21=_0x59e9b2['plugins']['get']('TrackChangesEditing'),_0x4ab57c=_0x3696fc['markerRange']['start'],_0x410ff5=_0x3696fc['markerRange']['end'],_0x5c2d59=_0x59e9b2['model']['schema'];if(!_0x4ab57c['isTouching'](_0x410ff5)||!_0x4ab57c['nodeAfter'])return;const _0x95e977=_0x4ab57c['nodeAfter'];if(_0x5c2d59['isBlock'](_0x95e977)&&!_0x5c2d59['isLimit'](_0x95e977)&&_0x5c2d59['checkChild'](_0x95e977,'$text')){if(!_0x401184['consumable']['consume'](_0x3696fc['markerRange'],_0x3029be['name']))return;const {id:_0x2dc490,authorId:_0x2aa979}=_0xa32b21['_splitMarkerName'](_0x3696fc['markerName']),_0x4751fa=_0x401184['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x2dc490,'data-author-id':_0x2aa979}),_0x481c4e=_0x401184['mapper']['toViewPosition'](_0x410ff5);_0x1d695d&&_0xa32b21['activeMarkers']['includes'](_0x3696fc['markerName'])&&_0x401184['writer']['addClass']('ck-suggestion-marker--active',_0x4751fa),_0x401184['writer']['insert'](_0x481c4e,_0x4751fa),_0x401184['mapper']['bindElementToMarker'](_0x4751fa,_0x3696fc['markerName']);}};}class St extends _0x3953b7{['afterInit'](){const _0x488584=this['editor'];_0x488584['commands']['get']('replaceSource')&&_0x488584['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x3953b7{['afterInit'](){const _0x328877=this['editor'];if(!_0x328877['plugins']['has']('RemoveFormatEditing'))return;_0x328877['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x313d8a=this['editor'];_0x313d8a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12e012=>{if('formatBlock'!=_0x12e012['type']&&'formatInline'!=_0x12e012['type'])return;const {data:_0x3527c4}=_0x12e012;return _0x3527c4&&'removeFormat'==_0x3527c4['commandName']?{'type':'format','content':c(_0x313d8a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x3953b7{['afterInit'](){const _0x5030e9=this['editor'];if(!_0x5030e9['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3d43ec=_0x5030e9['plugins']['get']('TrackChangesEditing');_0x3d43ec['enableCommand']('goToPreviousRestrictedEditingException'),_0x3d43ec['enableCommand']('goToNextRestrictedEditingException');const _0xa93aad=_0x5030e9['plugins']['get']('RestrictedEditingModeEditing');_0xa93aad['enableCommand']('trackChanges'),_0xa93aad['enableCommand']('acceptSuggestion'),_0xa93aad['enableCommand']('discardSuggestion'),_0xa93aad['enableCommand']('acceptAllSuggestions'),_0xa93aad['enableCommand']('discardAllSuggestions'),_0xa93aad['enableCommand']('acceptSelectedSuggestions'),_0xa93aad['enableCommand']('discardSelectedSuggestions');}}class At extends _0x3953b7{['afterInit'](){const _0x4b9a55=this['editor'];if(!_0x4b9a55['plugins']['has']('ShiftEnter'))return;const _0x4665de=_0x4b9a55['plugins']['get']('TrackChangesEditing');_0x4665de['enableCommand']('shiftEnter'),_0x4b9a55['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4b9a55),{'priority':'high'}),_0x4b9a55['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4b9a55),{'priority':'high'}),_0x4b9a55['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4d7ff6,_0x3e51cf,_0x2b5ab5)=>{_0x2b5ab5['options']['showSuggestionHighlights']&&je(_0x4b9a55,{'showActiveMarker':!0x1})(_0x4d7ff6,_0x3e51cf,_0x2b5ab5);}),_0x4665de['descriptionFactory']['registerElementLabel']('softBreak',_0x2a3585=>c(_0x4b9a55['locale'],'ELEMENT_LINE_BREAK',_0x2a3585));}}function je(_0x1eacb3,{showActiveMarker:_0x48de0a=!0x0}={}){return(_0x3f8356,_0x2f67c6,_0x4df324)=>{const _0xfeda1c=_0x1eacb3['plugins']['get']('TrackChangesEditing');if(!_0x4df324['consumable']['test'](_0x2f67c6['markerRange'],_0x3f8356['name']))return;const _0xc1c1f=_0x1eacb3['model'];for(const _0x3c97e0 of _0x2f67c6['markerRange']['getItems']()){if(!_0x3c97e0['is']('element','softBreak'))continue;const _0xde57d4='deletion'==_0x2f67c6['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2b8785,authorId:_0x43a9bb}=_0xfeda1c['_splitMarkerName'](_0x2f67c6['markerName']),_0x5889c0=_0x4df324['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xde57d4,'data-suggestion':_0x2b8785,'data-author-id':_0x43a9bb}),_0x13311a=_0x4df324['mapper']['toViewPosition'](_0xc1c1f['createPositionBefore'](_0x3c97e0));_0x48de0a&&_0xfeda1c['activeMarkers']['includes'](_0x2f67c6['markerName'])&&_0x4df324['writer']['addClass']('ck-suggestion-marker--active',_0x5889c0),_0x4df324['writer']['insert'](_0x13311a,_0x5889c0),_0x4df324['mapper']['bindElementToMarker'](_0x5889c0,_0x2f67c6['markerName']);}};}class _t extends _0x3953b7{['afterInit'](){const _0x17cd8b=this['editor'],_0x4b5cb1=_0x17cd8b['model'],_0x418c5d=_0x17cd8b['locale'];if(!_0x17cd8b['plugins']['has']('StandardEditingModeEditing'))return;const _0x314b95=_0x17cd8b['plugins']['get']('TrackChangesEditing'),_0x5ebca4='restrictedEditingException',_0x56dfcf=_0x17cd8b['commands']['get'](_0x5ebca4);_0x314b95['enableCommand'](_0x5ebca4,(_0x4ad6eb,_0x254104={})=>{const _0xc8b633=_0x4b5cb1['document']['selection'];if(_0xc8b633['isCollapsed'])return void _0x4ad6eb(_0x254104);const _0x5defac=void 0x0!==_0x254104['forceValue']?_0x254104['forceValue']:!_0x56dfcf['value'];_0x4b5cb1['change'](()=>{const _0x4d85c1=Array['from'](_0xc8b633['getRanges']());for(const _0x4925b8 of _0x4d85c1){const _0x232a8b=_0x5defac?[_0x4925b8]:io(_0x5ebca4,_0x4925b8,_0x4b5cb1);for(const _0x152c39 of _0x232a8b)_0x314b95['markInlineFormat'](_0x152c39,{'commandName':_0x5ebca4,'commandParams':[{'forceValue':_0x5defac}]});}});}),_0x314b95['descriptionFactory']['registerDescriptionCallback'](_0x23746b=>{if('formatBlock'!=_0x23746b['type']&&'formatInline'!=_0x23746b['type'])return;const {data:_0x41e326}=_0x23746b;return _0x41e326&&_0x41e326['commandName']==_0x5ebca4?_0x41e326['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x418c5d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x418c5d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x3953b7{['afterInit'](){const _0x532060=this['editor'];if(!_0x532060['plugins']['has']('Style')||!_0x532060['plugins']['has']('DataSchema'))return;const _0x49e169=_0x532060['plugins']['get']('TrackChangesEditing'),_0x46de92=_0x532060['locale'],_0x59f34d=_0x532060['config']['get']('style')||{},_0x293cef=_0x532060['plugins']['get']('GeneralHtmlSupport'),_0x3846fa=_0x532060['plugins']['get']('StyleUtils')['normalizeConfig'](_0x532060['plugins']['get']('DataSchema'),_0x59f34d['definitions']);_0x49e169['enableDefaultAttributesIntegration']('style');const _0x5735ad=new Set();for(const _0x427ddb of _0x3846fa['block']){const _0x550470=_0x293cef['getGhsAttributeNameForElement'](_0x427ddb['element']);_0x5735ad['add'](_0x550470);}const _0x5bb839=new Set();for(const _0x1c5bb2 of _0x3846fa['inline']){const _0x4a6d41=_0x293cef['getGhsAttributeNameForElement'](_0x1c5bb2['element']);_0x5bb839['add'](_0x4a6d41);for(const _0x2e502a of _0x1c5bb2['ghsAttributes'])_0x5bb839['add'](_0x2e502a);}for(const _0x52b2cb of _0x5735ad)_0x49e169['registerBlockAttribute'](_0x52b2cb),_0x49e169['descriptionFactory']['registerAttributeLabel'](_0x52b2cb,c(_0x46de92,'FORMAT_STYLE'));for(const _0x548fea of _0x5bb839)_0x49e169['registerInlineAttribute'](_0x548fea),_0x49e169['descriptionFactory']['registerAttributeLabel'](_0x548fea,c(_0x46de92,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc4b40e=this['editor'],_0x171098=_0xc4b40e['locale'];_0xc4b40e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f457c=>{if('formatBlock'!=_0x2f457c['type']&&'formatInline'!=_0x2f457c['type'])return;const {data:_0x5ab4c9}=_0x2f457c;return _0x5ab4c9&&'style'===_0x5ab4c9['commandName']?_0x5ab4c9['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x171098,'*Set\x20format:*\x20%0',_0x5ab4c9['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x171098,'*Remove\x20format:*\x20%0',_0x5ab4c9['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x3953b7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4bf097){super(_0x4bf097),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2ebc38=this['editor'],_0x4940f7=_0x2ebc38['model']['document']['selection'];if(!_0x2ebc38['plugins']['has']('TableEditing'))return;const _0x2c2242=_0x2ebc38['locale'],_0x3cffbc=_0x2ebc38['plugins']['get']('TrackChangesEditing'),_0x432d67=_0x2ebc38['plugins']['get']('TableUtils');_0x3cffbc['descriptionFactory']['registerElementLabel']('table',_0x2887dd=>c(_0x2c2242,'ELEMENT_TABLE',_0x2887dd)),this['_setupColumnsRowsFixing'](),_0x3cffbc['enableCommand']('insertTable'),_0x3cffbc['enableCommand']('selectTableRow'),_0x3cffbc['enableCommand']('selectTableColumn');for(const _0x1933f8 of['insertTableRowAbove','insertTableRowBelow']){const _0x596b3e=_0x2ebc38['commands']['get'](_0x1933f8);_0x3cffbc['enableCommand'](_0x1933f8,_0x550fb1=>{_0x2ebc38['model']['change'](_0x2b98f1=>{_0x550fb1();const _0x1be6f7='above'===_0x596b3e['order'],_0x1cc09a=_0x432d67['getSelectionAffectedTableCells'](_0x4940f7),_0x346fd1=_0x432d67['getRowIndexes'](_0x1cc09a),_0x34199b=_0x1be6f7?_0x346fd1['first']-0x1:_0x346fd1['last']+0x1,_0x9d19e0=_0x1cc09a[0x0]['findAncestor']('table'),_0x4e4f55=_0x432d67['createTableWalker'](_0x9d19e0,{'startRow':_0x34199b,'endRow':_0x34199b}),_0x37d2fd=Array['from'](_0x4e4f55)['map'](_0x296c99=>_0x2b98f1['createRangeOn'](_0x296c99['cell']));_0x3cffbc['markMultiRangeInsertion'](_0x37d2fd,'tableRow');});});}for(const _0x424311 of['insertTableColumnLeft','insertTableColumnRight']){const _0x7ea6fc=_0x2ebc38['commands']['get'](_0x424311);_0x3cffbc['enableCommand'](_0x424311,_0x472636=>{_0x2ebc38['model']['change'](_0x3c19ee=>{_0x472636();const _0x217cba='left'===_0x7ea6fc['order'],_0x14f5b6=_0x432d67['getSelectionAffectedTableCells'](_0x4940f7),_0x28b4b4=_0x432d67['getColumnIndexes'](_0x14f5b6),_0xab4823=_0x217cba?_0x28b4b4['first']-0x1:_0x28b4b4['last']+0x1,_0x1b0514=_0x14f5b6[0x0]['findAncestor']('table'),_0x201d3c=_0x432d67['createTableWalker'](_0x1b0514,{'startRow':0x0,'column':_0xab4823,'includeAllSlots':!0x1}),_0x36a229=Array['from'](_0x201d3c)['map'](_0x27e6c8=>_0x3c19ee['createRangeOn'](_0x27e6c8['cell']));_0x3cffbc['markMultiRangeInsertion'](_0x36a229,'tableColumn');});});}for(const _0x59121b of['removeTableRow','removeTableColumn']){const _0x2f88d5=_0x59121b['substr'](0xb),_0x5e02c1=_0x2f88d5['toLowerCase'](),_0x258f38=_0x5e02c1['substr'](0x0,0x3)+'span',_0xa9c92e='table'+_0x2f88d5,_0x44701a='min'+_0x2f88d5,_0x3c00b9='max'+_0x2f88d5;_0x3cffbc['enableCommand'](_0x59121b,()=>{_0x2ebc38['model']['change'](_0x2937e6=>{const _0x3178b2=_0x432d67['getSelectionAffectedTableCells'](_0x4940f7),_0x2252cf=_0x3178b2[0x0]['findAncestor']('table');let _0x10db0d;if('removeTableRow'==_0x59121b){const _0x90ddf0=_0x432d67['getRowIndexes'](_0x3178b2);_0x10db0d={'startRow':_0x90ddf0['first'],'endRow':_0x90ddf0['last'],'includeAllSlots':!0x0};}else{const _0x2d67dd=_0x432d67['getColumnIndexes'](_0x3178b2);_0x10db0d={'startColumn':_0x2d67dd['first'],'endColumn':_0x2d67dd['last'],'includeAllSlots':!0x0};}const _0x4476a4=_0x432d67['createTableWalker'](_0x2252cf,_0x10db0d),_0x5c1c8d=Array['from'](_0x4476a4)['map'](({cell:_0x24cd47})=>_0x24cd47),_0x2748bc=xe(_0x5c1c8d['filter'](_0x20d79f=>_0x20d79f['hasAttribute'](_0x258f38))),_0x5b253c=xe(_0x5c1c8d['filter'](_0x10072f=>!_0x10072f['hasAttribute'](_0x258f38)))['map'](_0x19dc25=>_0x2937e6['createRangeOn'](_0x19dc25)),_0x295dbb=_0x3cffbc['markMultiRangeDeletion'](_0x5b253c,_0xa9c92e);if(_0x295dbb&&('tableRow'==_0x295dbb['subType']||'tableColumn'==_0x295dbb['subType'])){const _0x1ccc33=this['_getSuggestionCoords'](_0x295dbb);for(const _0x3b4d6e of _0x2748bc){const _0x18c8df=_0x2937e6['createRangeOn'](_0x3b4d6e),_0x3dd36d=_0x432d67['getCellLocation'](_0x3b4d6e),_0x33dc1b=_0x3b4d6e['getAttribute'](_0x258f38)-0x1,_0x12d39b=_0x1ccc33[_0x44701a],_0xaee1ba=_0x1ccc33[_0x3c00b9];_0x12d39b<=_0x3dd36d[_0x5e02c1]&&_0x3dd36d[_0x5e02c1]+_0x33dc1b<=_0xaee1ba&&_0x295dbb['addRange'](_0x18c8df);}}});});}function _0x2ecb45(_0x4fe8ad){const _0xa384bd=Array['from'](_0x4940f7['getRanges']())['map'](_0x8c8d5b=>_0x34ca76['fromRange'](_0x8c8d5b));_0x2ebc38['model']['change'](_0x2bd521=>{const _0x42ab34=_0x2bd521['batch'];_0x4fe8ad=_0x4fe8ad['filter'](_0x4d20b4=>'$graveyard'!=_0x4d20b4['root']['rootName']),_0x2bd521['setSelection'](_0x4fe8ad),_0x2ebc38['commands']['get']('removeTableRow')['refresh'](),_0x2ebc38['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2ebc38['model']['enqueueChange'](()=>{_0x2ebc38['model']['enqueueChange'](_0x42ab34,_0x1e4565=>{const _0x5b10d9=_0xa384bd['filter'](_0x2baa5f=>'$graveyard'!=_0x2baa5f['root']['rootName']);_0x5b10d9['length']>0x0&&_0x1e4565['setSelection'](_0x5b10d9);for(const _0x266883 of _0xa384bd)_0x266883['detach']();});});});}function _0x53f18d(_0x6be0a){_0x2ebc38['model']['change'](_0x464931=>{const _0xdc35be=Array['from'](_0x4940f7['getRanges']())['map'](_0x21d627=>_0x34ca76['fromRange'](_0x21d627)),_0x397c2d=[];for(const _0x28eaa9 of _0x6be0a)for(const _0x3a6255 of _0x28eaa9['getItems']({'shallow':!0x0}))_0x397c2d['push'](_0x3a6255);for(const _0x3a5b57 of _0x397c2d)'$graveyard'!=_0x3a5b57['root']['rootName']&&(_0x464931['setSelection'](_0x464931['createPositionAt'](_0x3a5b57,0x0)),_0x2ebc38['commands']['get']('removeTableColumn')['refresh'](),_0x2ebc38['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x37dc13=_0xdc35be['filter'](_0x2fc980=>'$graveyard'!=_0x2fc980['root']['rootName']);_0x37dc13['length']>0x0&&_0x464931['setSelection'](_0x37dc13);for(const _0x208e73 of _0xdc35be)_0x208e73['detach']();});}function _0x24693e(_0x269b0b,_0x18914){return _0x18914['every'](_0x3ea327=>_0x269b0b['some'](_0x5e211a=>_0x5e211a['end']['isEqual'](_0x3ea327['start'])||_0x3ea327['end']['isEqual'](_0x5e211a['start'])));}function _0x316b16(_0x5f06a9,_0x4a35b2){return!_0x5f06a9['some'](_0x57f0c7=>_0x4a35b2['some'](_0x592fab=>_0x57f0c7['isIntersecting'](_0x592fab)))&&_0x5f06a9['some'](_0x5211f2=>_0x4a35b2['some'](_0xfe37c6=>_0x5211f2['end']['isTouching'](_0xfe37c6['start'])));}_0x2ebc38['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2bac83,_0x58865a,_0x1b3e4b)=>{if(!_0x1b3e4b['options']['showSuggestionHighlights'])return;const _0x442b36=_0x58865a['item'];if(!_0x442b36||!_0x442b36['is']('element','tableCell'))return;const _0x59d763=_0x1b3e4b['mapper']['toViewElement'](_0x442b36);if(_0x59d763){const {id:_0x561fa1,authorId:_0x5cbc53}=_0x3cffbc['_splitMarkerName'](_0x58865a['markerName']);_0x16b302(_0x59d763,_0x1b3e4b['writer'],(_0xc715a1,_0x8118f2,_0x11c402)=>{_0x11c402['addClass'](_0x4e0548(_0x8118f2['classes']),_0xc715a1),_0x11c402['setAttribute']('data-suggestion-id',_0x561fa1,_0xc715a1),_0x11c402['setAttribute']('data-author-id',_0x5cbc53,_0xc715a1);},(_0x543071,_0x4c69a2,_0x441d20)=>{_0x441d20['removeClass'](_0x4e0548(_0x4c69a2['classes']),_0x543071),_0x441d20['removeAttribute']('data-suggestion-id',_0x543071),_0x441d20['removeAttribute']('data-author-id',_0x543071);});}},{'priority':'highest'}),_0x3cffbc['descriptionFactory']['registerDescriptionCallback'](_0x3755ee=>{if('insertion'!=_0x3755ee['type']&&'deletion'!=_0x3755ee['type'])return;const _0x5d7872=_0x3755ee['getContainedElement']();if(null!=_0x5d7872&&_0x5d7872['is']('element','table')){if('insertion'==_0x3755ee['type']){const _0x43894f=_0x3755ee['getItems']()['filter'](_0xad4deb=>_0xad4deb['is']('$textProxy'))['map'](_0x4824f5=>_0x4824f5['data']);if(_0x43894f['length'])return{'type':'insertion','content':c(_0x2c2242,'*Insert:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x43894f['join']('\x20')+'\x22'))};}if('deletion'==_0x3755ee['type']){const _0x579d67=_0x3755ee['getItems']()['filter'](_0x16d215=>_0x16d215['is']('$textProxy'))['map'](_0x383b81=>_0x383b81['data']);if(_0x579d67['length'])return{'type':'deletion','content':c(_0x2c2242,'*Remove:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x579d67['join']('\x20')+'\x22'))};}}}),_0x3cffbc['descriptionFactory']['registerDescriptionCallback'](_0x32cbd5=>{if('tableRow'==_0x32cbd5['subType']){const _0x5c1004=_0x32cbd5['getItems']()['filter'](_0x10a8b8=>_0x10a8b8['is']('$textProxy'))['map'](_0x3f7551=>_0x3f7551['data']),_0x384c23=this['_getSuggestionCoords'](_0x32cbd5),_0x48a853=_0x384c23['maxRow']-_0x384c23['minRow']+0x1;if('insertion'==_0x32cbd5['type'])return _0x5c1004['length']?{'type':'insertion','content':c(_0x2c2242,'*Insert:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x48a853,'\x22'+_0x5c1004['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2c2242,'*Insert:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_ROW',_0x48a853))};if('deletion'==_0x32cbd5['type'])return _0x5c1004['length']?{'type':'deletion','content':c(_0x2c2242,'*Remove:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x48a853,'\x22'+_0x5c1004['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2c2242,'*Remove:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_ROW',_0x48a853))};}if('tableColumn'==_0x32cbd5['subType']){const _0x54c1e1=_0x32cbd5['getItems']()['filter'](_0x388aac=>_0x388aac['is']('$textProxy'))['map'](_0x49ed21=>_0x49ed21['data']),_0x336a7a=this['_getSuggestionCoords'](_0x32cbd5),_0x4ad386=_0x336a7a['maxColumn']-_0x336a7a['minColumn']+0x1;if('insertion'==_0x32cbd5['type'])return _0x54c1e1['length']?{'type':'insertion','content':c(_0x2c2242,'*Insert:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4ad386,'\x22'+_0x54c1e1['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2c2242,'*Insert:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_COLUMN',_0x4ad386))};if('deletion'==_0x32cbd5['type'])return _0x54c1e1['length']?{'type':'deletion','content':c(_0x2c2242,'*Remove:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4ad386,'\x22'+_0x54c1e1['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2c2242,'*Remove:*\x20%0',c(_0x2c2242,'ELEMENT_TABLE_COLUMN',_0x4ad386))};}}),_0x3cffbc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2ecb45),_0x3cffbc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2ecb45),_0x3cffbc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x53f18d),_0x3cffbc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x53f18d),_0x3cffbc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x24693e),_0x3cffbc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x24693e),_0x3cffbc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x316b16),_0x3cffbc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x316b16);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1e225e=this['editor'],_0x5e3523=_0x1e225e['model']['document']['selection'];return(_0x16e3b3,_0x473fae)=>{_0x1e225e['model']['change'](_0x1251ae=>{const {commandName:_0x40f110,commandParams:_0x498893}=_0x473fae;let _0x334a61=_0x16e3b3[0x0]['end']['nodeBefore'];_0x498893&&_0x498893[0x0]&&!0x1===_0x498893[0x0]['forceValue']&&(_0x334a61=_0x16e3b3[0x0]['start']['nodeAfter']);const _0x3ce29e=_0x1251ae['createRangeIn'](_0x334a61);if('$graveyard'==_0x3ce29e['root']['rootName'])return;const _0x336ae7=Array['from'](_0x5e3523['getRanges']())['map'](_0x1060ea=>_0x34ca76['fromRange'](_0x1060ea));_0x1251ae['setSelection'](_0x3ce29e),_0x1e225e['commands']['get'](_0x40f110)['refresh'](),_0x498893['push']({'forceDefaultExecution':!0x0}),_0x1e225e['execute'](_0x40f110,..._0x498893);const _0x1db4ff=_0x336ae7['filter'](_0x5ec0c7=>'$graveyard'!=_0x5ec0c7['root']['rootName']);_0x1db4ff['length']>0x0&&_0x1251ae['setSelection'](_0x1db4ff);for(const _0x46fe02 of _0x336ae7)_0x46fe02['detach']();});};}['_getCoordsForCells'](_0xe6147f){const _0x1fe6d3=this['editor']['plugins']['get']('TableUtils');let _0x3d6609=Number['MAX_SAFE_INTEGER'],_0x1710dd=Number['MIN_SAFE_INTEGER'],_0x1d5f59=Number['MAX_SAFE_INTEGER'],_0x2107e4=Number['MIN_SAFE_INTEGER'];for(const _0x3d3c1d of _0xe6147f){if('$graveyard'==_0x3d3c1d['root']['rootName'])continue;const {row:_0x1cd6ff,column:_0x4ad503}=_0x1fe6d3['getCellLocation'](_0x3d3c1d),_0x234b0d=_0x3d3c1d['hasAttribute']('rowspan')?_0x3d3c1d['getAttribute']('rowspan')-0x1:0x0,_0x53862a=_0x3d3c1d['hasAttribute']('colspan')?_0x3d3c1d['getAttribute']('colspan')-0x1:0x0;_0x3d6609=_0x1cd6ff<_0x3d6609?_0x1cd6ff:_0x3d6609,_0x1710dd=_0x1cd6ff+_0x234b0d>_0x1710dd?_0x1cd6ff+_0x234b0d:_0x1710dd,_0x1d5f59=_0x4ad503<_0x1d5f59?_0x4ad503:_0x1d5f59,_0x2107e4=_0x4ad503+_0x53862a>_0x2107e4?_0x4ad503+_0x53862a:_0x2107e4;}return{'minRow':_0x3d6609,'maxRow':_0x1710dd,'minColumn':_0x1d5f59,'maxColumn':_0x2107e4};}['_setupColumnsRowsFixing'](){const _0x36f420=this['editor'],_0x553d06=_0x36f420['plugins']['get']('TrackChangesEditing'),_0x34248f=_0x36f420['plugins']['get']('TableUtils');_0x36f420['model']['document']['on']('change:data',()=>{const _0x58ee71=Array['from'](_0x36f420['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2efaae,data:_0x200de9}of _0x58ee71){const {group:_0x37ac47,id:_0x3f76a4,subType:_0x48368c}=_0x553d06['_splitMarkerName'](_0x2efaae);if('suggestion'!=_0x37ac47)continue;if(null!=_0x200de9['oldRange'])continue;const _0x2da423=_0x553d06['getSuggestion'](_0x3f76a4);this['_tablePostFixingSubtypes']['includes'](_0x48368c)&&this['_tableSuggestions']['add'](_0x2da423);}},{'priority':'low'});const _0x1c784e=(_0x5c33f7,_0x50b914)=>{let _0x96fc96=!0x1;const _0x576c20=_0x50b914['createRangeOn'](_0x5c33f7),_0x2a2062=_0x5c33f7['findAncestor']('table'),_0xedcd0c=_0x34248f['getCellLocation'](_0x5c33f7);for(const _0x4e4eac of this['_tableSuggestions']){const _0x1b800c=_0x4e4eac['subType'],_0x3a2afd=_0x1b800c['startsWith']('tablePaste'),_0x2cbad1=_0x1b800c['substr'](_0x3a2afd?0xa:0x5),_0xc71d26=_0x2cbad1['toLowerCase'](),_0x258eec=_0xc71d26['substr'](0x0,0x3)+'span',_0x52a0a1='min'+_0x2cbad1,_0x56925e='max'+_0x2cbad1;if(!_0x4e4eac['isInContent'])continue;if(_0x2a2062!=_0x4e4eac['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4e4eac['isIntersectingWithRange'](_0x576c20))continue;const _0x20f5ec=_0x5c33f7['hasAttribute'](_0x258eec)?_0x5c33f7['getAttribute'](_0x258eec)-0x1:0x0,_0x223a9d=this['_getSuggestionCoords'](_0x4e4eac),_0x3d57ed=_0x223a9d[_0x52a0a1],_0xa5732=_0x223a9d[_0x56925e];_0x3d57ed<=_0xedcd0c[_0xc71d26]&&_0xedcd0c[_0xc71d26]+_0x20f5ec<=_0xa5732&&(_0x4e4eac['addRange'](_0x576c20),_0x96fc96=!0x0);}return _0x96fc96;};_0x36f420['model']['document']['registerPostFixer'](_0xbf83bc=>{let _0x32e483=!0x1;for(const _0x3a105e of _0x36f420['model']['document']['differ']['getChanges']())if('insert'==_0x3a105e['type']){if('tableRow'==_0x3a105e['name']){for(const _0x3053f2 of _0x3a105e['position']['nodeAfter']['getChildren']())_0x32e483=_0x32e483||_0x1c784e(_0x3053f2,_0xbf83bc);}else'tableCell'==_0x3a105e['name']&&(_0x32e483=_0x32e483||_0x1c784e(_0x3a105e['position']['nodeAfter'],_0xbf83bc));}return _0x32e483;});}['_getSuggestionCoords'](_0x49d866){return this['_getCoordsForCells'](_0x49d866['getRanges']()['map'](_0x4c2e3a=>_0x4c2e3a['start']['nodeAfter']));}}function xe(_0xde480d){return Array['from'](new Set(_0xde480d)['values']());}class Nt extends _0x3953b7{static get['requires'](){return[Ct];}['afterInit'](){const _0xce40a7=this['editor'],_0x3200f7=_0xce40a7['model']['document']['selection'],_0x552419=_0xce40a7['locale'];if(!_0xce40a7['plugins']['has']('TableEditing'))return;const _0xdfb73d=_0xce40a7['plugins']['get']('TrackChangesEditing'),_0x41ac90=_0xce40a7['plugins']['get']('TableUtils'),_0x1a8eb8=_0xce40a7['plugins']['get'](Ct);_0x1a8eb8['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xdfb73d['enableCommand']('mergeTableCells',()=>{const _0x3d633e=_0x41ac90['getSelectionAffectedTableCells'](_0xce40a7['model']['document']['selection']);_0xce40a7['model']['change'](()=>{_0xdfb73d['markMultiRangeBlockFormat'](_0x3d633e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xce40a7['commands']['get']('mergeTableCells')['on']('execute',(_0x3bac3d,_0x24b9ed)=>{_0xce40a7['commands']['get']('trackChanges')['value']&&(_0x24b9ed['length']>0x0&&_0x24b9ed[_0x24b9ed['length']-0x1]&&_0x24b9ed[_0x24b9ed['length']-0x1]['forceDefaultExecution']||_0xdfb73d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3bac3d['stop']());},{'priority':'highest'});for(const _0x383f8a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2b633b=_0xce40a7['commands']['get'](_0x383f8a);_0xdfb73d['enableCommand'](_0x383f8a,()=>{const _0x470e97=_0xce40a7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x216f74=>_0x216f74['is']('element','tableCell')),_0x5a6e23=_0x2b633b['value'];_0xce40a7['model']['change'](()=>{_0xdfb73d['markMultiRangeBlockFormat']([_0x470e97,_0x5a6e23],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4a4201 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5220ee=_0xce40a7['commands']['get'](_0x4a4201);_0xdfb73d['enableCommand'](_0x4a4201,()=>{const _0x72fb92=_0x41ac90['getSelectionAffectedTableCells'](_0xce40a7['model']['document']['selection'])[0x0],_0x55a6ed=_0x72fb92['findAncestor']('table'),{column:_0x11320c,row:_0x11fb7d}=_0x41ac90['getCellLocation'](_0x72fb92);let _0xd5dacf=[];if('horizontally'==_0x5220ee['direction']){const _0x29b3c6=_0x41ac90['createTableWalker'](_0x55a6ed,{'startRow':_0x11fb7d,'endRow':_0x11fb7d,'includeAllSlots':!0x0});_0xd5dacf=Array['from'](_0x29b3c6)['map'](_0x3427fb=>_0x3427fb['cell']);}else{const _0x39d079=_0x41ac90['createTableWalker'](_0x55a6ed,{'column':_0x11320c,'includeAllSlots':!0x0});_0xd5dacf=Array['from'](_0x39d079)['map'](_0x49d17f=>_0x49d17f['cell']);}_0xce40a7['model']['change'](_0x3252e1=>{_0xdfb73d['markBlockFormat'](_0x3252e1['createRangeOn'](_0x72fb92),{'commandName':_0x4a4201,'commandParams':[]},_0xd5dacf,_0x4a4201);});});}_0xdfb73d['descriptionFactory']['registerDescriptionCallback'](_0x4eb71d=>{if('formatBlock'!=_0x4eb71d['type']&&'formatInline'!=_0x4eb71d['type'])return;const {data:_0x81c5a8}=_0x4eb71d;return _0x81c5a8&&'mergeTableCells'==_0x81c5a8['commandName']?{'type':'format','content':c(_0x552419,'*Merge\x20cells*')}:void 0x0;}),_0xdfb73d['descriptionFactory']['registerDescriptionCallback'](_0x5821eb=>{if('formatBlock'!=_0x5821eb['type']&&'formatInline'!=_0x5821eb['type'])return;const {data:_0x5c42d5}=_0x5821eb;return _0x5c42d5?'splitTableCellVertically'==_0x5c42d5['commandName']?{'type':'format','content':c(_0x552419,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5c42d5['commandName']?{'type':'format','content':c(_0x552419,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x41db90=_0x1a8eb8['_acceptFormatSuggestionCallbackFactory']();for(const _0x16f720 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xdfb73d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x16f720,'accept',_0x41db90);for(const _0x27291c of['splitTableCellVertically','splitTableCellHorizontally'])_0xdfb73d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x27291c,'accept',_0x41db90);_0xdfb73d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x42f712=>{_0xce40a7['model']['change'](_0x37fa22=>{const _0x4fd0e5=Array['from'](_0x3200f7['getRanges']())['map'](_0x525a63=>_0x34ca76['fromRange'](_0x525a63));_0x37fa22['setSelection'](_0x42f712),_0xce40a7['commands']['get']('mergeTableCells')['refresh'](),_0xce40a7['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5706c8=_0x4fd0e5['filter'](_0x406620=>'$graveyard'!=_0x406620['root']['rootName']);_0x5706c8['length']>0x0&&_0x37fa22['setSelection'](_0x5706c8);for(const _0x413e9a of _0x4fd0e5)_0x413e9a['detach']();});});for(const _0x4aea6b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4bfb5d=_0xce40a7['commands']['get'](_0x4aea6b);_0x4bfb5d['on']('set:isEnabled',(_0x2e6d90,_0x5233d7,_0x3d4460)=>{if(_0x3d4460){const _0x15bd1b=_0xce40a7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x363d15=>_0x363d15['is']('element','tableCell'));this['_areMergableCells'](_0x4bfb5d['value'],_0x15bd1b)||(_0x2e6d90['return']=!0x1,_0x2e6d90['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x22a66a=this['editor']['commands']['get']('mergeTableCells'),_0x20750d=this['editor']['plugins']['get']('TableUtils');if(!_0x22a66a['isEnabled'])return!0x1;const _0x434547=_0x20750d['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4429c6 of _0x434547)for(const _0x1768d4 of _0x434547)if(_0x4429c6!=_0x1768d4&&!this['_areMergableCells'](_0x4429c6,_0x1768d4))return!0x1;return!0x0;}['_areMergableCells'](_0x15046d,_0x197e81){const _0x1ab098=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37dd11=this['editor']['model']['createRangeOn'](_0x15046d),_0x2329a4=this['editor']['model']['createRangeOn'](_0x197e81),_0x5b1342=new Set(),_0x3923f8=new Set();for(const _0x1db2b4 of _0x1ab098['getSuggestions']())if(('insertion'==_0x1db2b4['type']||'deletion'==_0x1db2b4['type']||'mergeTableCells'==_0x1db2b4['subType'])&&_0x1db2b4['isInContent']){for(const _0x4a67fc of _0x1db2b4['getRanges']())_0x4a67fc['containsRange'](_0x37dd11,!0x0)&&_0x5b1342['add'](_0x1db2b4['type']+':'+_0x1db2b4['author']['id']),_0x4a67fc['containsRange'](_0x2329a4,!0x0)&&_0x3923f8['add'](_0x1db2b4['type']+':'+_0x1db2b4['author']['id']);}if(_0x5b1342['size']!=_0x3923f8['size'])return!0x1;for(const _0x3adcbe of _0x5b1342)if(!_0x3923f8['has'](_0x3adcbe))return!0x1;return!0x0;}}class Dt extends _0x3953b7{static get['requires'](){return[Ct];}['afterInit'](){const _0x540027=this['editor'];if(!_0x540027['plugins']['has']('TableEditing'))return;const _0x5da675=_0x540027['locale'],_0x268271=_0x540027['plugins']['get']('TrackChangesEditing');_0x268271['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x268271['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x268271['registerBlockAttribute']('headingRows'),_0x268271['registerBlockAttribute']('headingColumns'),_0x268271['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x5da675,'FORMAT_HEADER_ROW')),_0x268271['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x5da675,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1a6c4b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d0928=this['editor']['plugins']['get']('TableUtils'),_0x4c8290=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x8d224a({showActiveMarker:_0x34d4bb=!0x0,setDataAttribute:_0x22fc15=!0x0}={}){return(_0x503f14,_0xfbfb67,_0x38af61)=>{const {type:_0x579a04,id:_0x179131}=_0x1a6c4b['_splitMarkerName'](_0xfbfb67['markerName']),_0x521248=_0x1a6c4b['getSuggestion'](_0x179131),_0x1a84dd=_0x521248['data'];if('formatBlock'!=_0x521248['type']||!_0x1a84dd||'setTableColumnHeader'!=_0x1a84dd['commandName'])return;if(_0xfbfb67['item'])return void _0x503f14['stop']();if(!_0x38af61['consumable']['consume'](_0xfbfb67['markerRange'],_0x503f14['name']))return;const _0x2bccb5=_0xfbfb67['markerRange']['start']['nodeAfter'],_0x3ec357=_0xfbfb67['markerRange']['end']['nodeBefore'],_0x17a124=_0x2bccb5['parent']['parent'],{column:_0x4aa25e}=_0x4d0928['getCellLocation'](_0x2bccb5),{column:_0x15086c}=_0x4d0928['getCellLocation'](_0x3ec357);for(let _0x35692b=_0x4aa25e;_0x35692b<=_0x15086c;_0x35692b++){const _0x546eb7=_0x4d0928['createTableWalker'](_0x17a124,{'column':_0x35692b,'includeAllSlots':!0x1});for(const _0x21a242 of _0x546eb7){const _0x4be507=_0x21a242['cell'],_0x6ad4f5=_0x38af61['mapper']['toViewElement'](_0x4be507);_0x38af61['writer']['addClass']('ck-suggestion-marker-'+_0x579a04,_0x6ad4f5),_0x22fc15&&_0x38af61['writer']['setAttribute']('data-suggestion',_0x179131,_0x6ad4f5),_0x38af61['mapper']['bindElementToMarker'](_0x6ad4f5,_0xfbfb67['markerName']),_0x34d4bb&&(_0x1a6c4b['activeMarkers']['includes'](_0xfbfb67['markerName'])?_0x38af61['writer']['addClass']('ck-suggestion-marker--active',_0x6ad4f5):_0x38af61['writer']['removeClass']('ck-suggestion-marker--active',_0x6ad4f5));}}};}_0x1a6c4b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4c8290),_0x1a6c4b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4c8290),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x8d224a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5adea2,_0x5b944e,_0x1ba193)=>{_0x1ba193['options']['showSuggestionHighlights']&&_0x8d224a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5adea2,_0x5b944e,_0x1ba193);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x58718d,_0x33b9d5,_0x4555c8)=>{const {type:_0x5b76ef,id:_0x1516bb}=_0x1a6c4b['_splitMarkerName'](_0x33b9d5['markerName']),_0x128be5=_0x1a6c4b['getSuggestion'](_0x1516bb),_0x31d44c=_0x128be5['data'];if('formatBlock'!=_0x128be5['type']||!_0x31d44c||'setTableColumnHeader'!=_0x31d44c['commandName'])return;const _0x5b11d5=_0x4555c8['mapper']['markerNameToElements'](_0x33b9d5['markerName']);if(_0x5b11d5){for(const _0x1c53e2 of _0x5b11d5)_0x4555c8['writer']['removeClass']('ck-suggestion-marker-'+_0x5b76ef,_0x1c53e2),_0x4555c8['writer']['removeClass']('ck-suggestion-marker--active',_0x1c53e2),_0x4555c8['writer']['removeAttribute']('data-suggestion',_0x1c53e2),_0x4555c8['mapper']['unbindElementFromMarkerName'](_0x1c53e2,_0x33b9d5['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x484dcf=this['editor'],_0x1fe843=_0x484dcf['locale'];function _0x1ed380(_0x406715){return{'type':'format','content':c(_0x1fe843,'*Format:*\x20%0',_0x406715)};}_0x484dcf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b7b87=>{if('formatBlock'!=_0x1b7b87['type'])return;const {data:_0x5ab0f1}=_0x1b7b87;if(_0x5ab0f1){if('setTableRowHeader'==_0x5ab0f1['commandName']){const _0x320dc4=_0x5ab0f1['commandParams'][0x0]['forceValue'];return _0x1ed380(c(_0x1fe843,_0x320dc4?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5ab0f1['commandName']){const _0xe05354=_0x5ab0f1['commandParams'][0x0]['forceValue'];return _0x1ed380(c(_0x1fe843,_0xe05354?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x3953b7{['afterInit'](){const _0x36a993=this['editor'],_0x35e178=_0x36a993['locale'],_0x16a8fb=_0x36a993['plugins']['get']('TrackChangesEditing');function _0x5e6a09(_0x219352){return{'type':'format','content':''+c(_0x35e178,'*Set\x20table\x20type:*\x20%0',_0x219352)};}_0x36a993['plugins']['has']('TableLayout')&&(_0x16a8fb['enableCommand']('insertTableLayout'),_0x16a8fb['enableDefaultAttributesIntegration']('tableType'),_0x16a8fb['registerBlockAttribute']('tableType'),_0x16a8fb['descriptionFactory']['registerElementLabel'](_0x41e892=>_0x41e892['is']('element','table')&&'layout'===_0x41e892['getAttribute']('tableType'),_0x4c1d83=>c(_0x35e178,'ELEMENT_LAYOUT_TABLE',_0x4c1d83)),_0x16a8fb['descriptionFactory']['registerDescriptionCallback'](_0x4528e3=>{const {data:_0x2d03f2}=_0x4528e3;if(_0x2d03f2&&'tableType'==_0x2d03f2['key'])switch(_0x2d03f2['newValue']){case'layout':return _0x5e6a09(c(_0x35e178,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5e6a09(c(_0x35e178,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x3cea32=>[_0x3cea32,null]));class $t extends _0x3953b7{static get['requires'](){return[Ct];}['afterInit'](){const _0x42e92b=this['editor'];if(!_0x42e92b['plugins']['has']('TableClipboard'))return;const _0x59f9cb=_0x42e92b['plugins']['get']('TrackChangesEditing'),_0x3993d2=_0x42e92b['plugins']['get']('TableUtils'),_0x313e3=_0x42e92b['plugins']['get'](Ct),_0x1c36ec=_0x42e92b['plugins']['get']('TableClipboard'),_0x397705=_0x42e92b['plugins']['get']('TableSelection'),_0x8753d9=_0x42e92b['plugins']['get'](_0x2a45ef);_0x313e3['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x42e92b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x42e92b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x458a04=null,_0x5dbf8e=!0x1;_0x8753d9['on']('contentInsertion',(_0x49a5d5,_0x3e93de)=>{_0x5dbf8e='paste'===_0x3e93de['method'];}),_0x42e92b['model']['on']('insertContent',(_0x23b193,_0x441df7)=>{if(!_0x5dbf8e&&null===_0x397705['getSelectedTableCells']())return;const [_0x45c9a3,_0x4546ae]=_0x441df7,_0x850a25=_0x441df7[_0x441df7['length']-0x1];_0x850a25&&_0x850a25['forceDefaultExecution']||_0x59f9cb['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x41407b,_0x51b385,_0x50ccd0,_0x542865,_0x8a6d2d){if(_0x51b385&&!_0x51b385['is']('documentSelection'))return!0x1;const _0x35811f=_0x8a6d2d['getTableIfOnlyTableInContent'](_0x41407b,_0x50ccd0);if(!_0x35811f||!He(_0x35811f,void 0x0,_0x542865))return!0x1;const _0x36b909=_0x542865['getSelectionAffectedTableCells'](_0x50ccd0['document']['selection']);if(!_0x36b909['length'])return!0x1;const _0x17fbe9=_0x36b909[0x0]['findAncestor']('table'),_0x462227=_0x542865['getRowIndexes'](_0x36b909),_0x25f22c=_0x542865['getColumnIndexes'](_0x36b909),_0x204568={'startRow':_0x462227['first'],'endRow':_0x462227['last'],'startColumn':_0x25f22c['first'],'endColumn':_0x25f22c['last']};return 0x1==_0x36b909['length']&&(_0x204568['endRow']+=_0x542865['getRows'](_0x35811f)-0x1,_0x204568['endColumn']+=_0x542865['getColumns'](_0x35811f)-0x1),He(_0x17fbe9,_0x204568,_0x542865);}(_0x45c9a3,_0x4546ae,_0x42e92b['model'],_0x3993d2,_0x1c36ec)&&(_0x23b193['stop'](),_0x458a04={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x42e92b['model']['change'](()=>{_0x42e92b['model']['insertContent'](_0x441df7[0x0],_0x441df7[0x1],_0x441df7[0x2],{'forceDefaultExecution':!0x0});const _0x5eb903=_0x524fb1(),{rowInsertionRanges:_0x27001e,columnInsertionRanges:_0x577ba5,insertionRanges:_0x1945c9,deletionRanges:_0x209a13,cells:_0x2c88f3}=_0x458a04;_0x27001e['length']&&_0x59f9cb['markMultiRangeInsertion'](_0x27001e,'tablePasteRow',{'tablePasteChainId':_0x5eb903}),_0x577ba5['length']&&_0x59f9cb['markMultiRangeInsertion'](_0x577ba5,'tablePasteColumn',{'tablePasteChainId':_0x5eb903}),_0x1945c9['length']&&(_0x59f9cb['markMultiRangeInsertion'](_0x1945c9,'tablePaste',{'tablePasteChainId':_0x5eb903,'skipNestingCheck':!0x0}),_0x1945c9['forEach'](_0x550bda=>_0x550bda['detach']?.())),_0x209a13['length']&&(_0x59f9cb['markMultiRangeDeletion'](_0x209a13,'tablePaste',{'tablePasteChainId':_0x5eb903,'skipNestingCheck':!0x0}),_0x209a13['forEach'](_0x2b2416=>_0x2b2416['detach']?.()));const _0x224f74=_0x59f9cb['markMultiRangeBlockFormat'](_0x2c88f3['map'](({element:_0x50f279})=>_0x50f279),{'formatGroupId':_0x524fb1()},[],'tablePasteCell',{'tablePasteChainId':_0x5eb903});if(_0x224f74){const _0x3ae3b4=_0x224f74['getMarkers'](),_0x2c4009=[];for(const {element:_0x1b98da,attributes:_0x327f90}of _0x2c88f3){if(!_0x327f90)continue;const _0x2e0db4=_0x42e92b['model']['createRangeOn'](_0x1b98da),_0x2c69db=_0x3ae3b4['find'](_0x176333=>_0x176333['getRange']()['isEqual'](_0x2e0db4));_0x2c69db&&_0x2c4009['push']([_0x2c69db['name'],_0x327f90]);}_0x2c4009['length']&&_0x224f74['setAttribute']('markerAttributes',Object['fromEntries'](_0x2c4009));}_0x458a04=null;}));},{'priority':_0x2ab9b9['high']+0xa}),_0x8753d9['on']('contentInsertion',()=>{_0x5dbf8e=!0x1;},{'priority':'lowest'}),_0x42e92b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x41144e,_0x537246)=>{const [_0x1d0e57,_0x1998e1,,_0x3e1665]=_0x537246;if(!_0x458a04)return;_0x41144e['stop']();const _0x2af41f=_0x1d0e57['cell'],_0x5ded86=_0x1998e1,_0x72ecf1=De(_0x2af41f),_0x4b4af5=De(_0x5ded86);_0x41144e['return']=_0x2af41f;let _0x562b8c=null,_0xe67601=null;if(_0x4b4af5||_0x72ecf1){if(_0x72ecf1&&!_0x4b4af5){_0x3e1665['remove'](_0x2af41f['getChild'](0x0));for(const _0x37734e of Array['from'](_0x5ded86['getChildren']()))_0x3e1665['insert'](_0x37734e,_0x2af41f,'end');const _0x53ee7a=_0x458a04['rowInsertionIndexes']['includes'](_0x1d0e57['row']),_0x3ad07e=_0x458a04['columnInsertionIndexes']['includes'](_0x1d0e57['column']);_0x53ee7a||_0x3ad07e||(_0x562b8c=_0x34ca76['fromRange'](_0x3e1665['createRangeIn'](_0x2af41f)));}else _0x4b4af5&&!_0x72ecf1&&(_0xe67601=_0x3e1665['createRangeIn'](_0x2af41f));}else{const _0x371562=_0x3e1665['createElement']('tableCellSuggestion'),_0x5d7952=_0x3e1665['createElement']('tableCellSuggestion');_0x3e1665['wrap'](_0x3e1665['createRangeIn'](_0x2af41f),_0x5d7952),_0x3e1665['insert'](_0x371562,_0x2af41f,0x0);for(const _0x4fa452 of Array['from'](_0x5ded86['getChildren']()))_0x3e1665['insert'](_0x4fa452,_0x371562,'end');_0x562b8c=_0x34ca76['fromRange'](_0x3e1665['createRangeOn'](_0x371562)),_0xe67601=_0x34ca76['fromRange'](_0x3e1665['createRangeOn'](_0x5d7952));}const _0x2e92e4=Array['from'](_0x5ded86['getAttributes']())['filter'](([_0x2d1793])=>Oe['includes'](_0x2d1793));_0x458a04['cells']['push']({'element':_0x2af41f,'attributes':_0x2e92e4['length']?Object['fromEntries'](_0x2e92e4):null}),_0x562b8c&&_0x458a04['insertionRanges']['push'](_0x562b8c),_0xe67601&&_0x458a04['deletionRanges']['push'](_0xe67601);},{'priority':'high'}),_0x3993d2['on']('insertColumns',(_0x42af83,_0x5c546a)=>{const [_0x329a85,_0x4a5595={}]=_0x5c546a;if(!_0x458a04)return;const _0x2c1d7c=_0x4a5595['at']||0x0,_0x36e808=_0x4a5595['columns']||0x1;_0x458a04['columnInsertionIndexes']=new Array(_0x36e808)['fill'](_0x2c1d7c)['map']((_0x503429,_0x1c8253)=>_0x503429+_0x1c8253);for(const {cell:_0x428c48}of _0x3993d2['createTableWalker'](_0x329a85,{'startColumn':_0x2c1d7c,'endColumn':_0x2c1d7c+_0x36e808-0x1}))_0x458a04['columnInsertionRanges']['push'](_0x42e92b['model']['createRangeOn'](_0x428c48));},{'priority':'low'}),_0x3993d2['on']('insertRows',(_0x21b875,_0x3a70f6)=>{const [_0x4fdd06,_0x32cdf8={}]=_0x3a70f6;if(!_0x458a04)return;const _0x5909ce=_0x32cdf8['at']||0x0,_0x2436e8=_0x32cdf8['rows']||0x1;_0x458a04['rowInsertionIndexes']=new Array(_0x2436e8)['fill'](_0x5909ce)['map']((_0x725f6a,_0x1e827f)=>_0x725f6a+_0x1e827f);for(const {cell:_0x196bd9}of _0x3993d2['createTableWalker'](_0x4fdd06,{'startRow':_0x5909ce,'endRow':_0x5909ce+_0x2436e8-0x1}))_0x458a04['rowInsertionRanges']['push'](_0x42e92b['model']['createRangeOn'](_0x196bd9));},{'priority':'low'}),_0x59f9cb['descriptionFactory']['registerDescriptionCallback'](_0x2443d9=>{if(_0x2443d9['subType']&&_0x2443d9['subType']['startsWith']('tablePaste'))return _0x2443d9['previous']?{}:{'type':'insertion','content':c(_0x42e92b['locale'],'*Replace\x20table\x20cells*')};});const _0x4217ec=()=>!0x1;for(const _0x3f950f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x59f9cb['_suggestionFactory']['registerCustomCallback']('insertion',_0x3f950f,'join',_0x4217ec),_0x59f9cb['_suggestionFactory']['registerCustomCallback']('deletion',_0x3f950f,'join',_0x4217ec),_0x59f9cb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3f950f,'join',_0x4217ec);_0x59f9cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4217ec),_0x59f9cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3a1c2,_0x4d6339,_0x2b57a2)=>{const _0x1e9665=_0x3a1c2['map'](_0x4a3b81=>_0x4a3b81['getContainedElement']())['filter'](_0x378991=>_0x378991),_0x5e7475=new Map(_0x1e9665['map'](_0x180f1a=>[_0x180f1a,null]));if(_0x458a04){for(const {element:_0x5c753b,attributes:_0x15f72e}of _0x458a04['cells'])_0x15f72e&&_0x5e7475['set'](_0x5c753b,_0x15f72e);}else{if(_0x2b57a2&&_0x2b57a2['markerAttributes'])for(const [_0x1c9d61,_0x59896a]of Object['entries'](_0x2b57a2['markerAttributes'])){const _0xa2e086=_0x42e92b['model']['markers']['get'](_0x1c9d61),_0x221ea1=_0xa2e086?_0xa2e086['getRange']()['getContainedElement']():null;_0x221ea1&&_0x5e7475['set'](_0x221ea1,_0x59896a);}}_0x42e92b['model']['change'](_0x2e106e=>{for(const [_0x37ea49,_0x3ad380]of _0x5e7475)_0x2e106e['setAttributes']({...Ue,..._0x3ad380},_0x37ea49);});});const _0x4f4369=(_0x1e558b,_0x590ad8)=>{_0x59f9cb['_suggestionFactory']['registerCustomCallback'](_0x1e558b,'tablePaste',_0x590ad8,(_0x21ec48,_0x4b4d39,_0x191232)=>{_0x42e92b['model']['change'](_0x5c9d6c=>{const _0x50aaf2=[];for(const _0x2f6d45 of _0x21ec48){const _0x10f8a2=_0x2f6d45['start']['nodeAfter'];_0x10f8a2['is']('element','tableCellSuggestion')&&_0x50aaf2['push'](_0x10f8a2);}_0x59f9cb['_suggestionFactory']['getSuggestionCallback'](_0x1e558b,null,_0x590ad8)(_0x21ec48,_0x4b4d39,_0x191232);for(const _0x275dce of _0x50aaf2)'$graveyard'!=_0x275dce['root']['rootName']&&_0x5c9d6c['unwrap'](_0x275dce);});});};_0x4f4369('insertion','accept'),_0x4f4369('insertion','discard'),_0x4f4369('deletion','accept'),_0x4f4369('deletion','discard'),_0x59f9cb['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x34eba6=>{const _0x353daf=_0x34eba6['map'](_0x175931=>_0x175931['getContainedElement']()),_0x1e63af=_0x353daf[0x0]['findAncestor']('table'),{minRow:_0x42df53,maxRow:_0x109ff3}=_0x313e3['_getCoordsForCells'](_0x353daf);_0x3993d2['removeRows'](_0x1e63af,{'at':_0x42df53,'rows':_0x109ff3-_0x42df53+0x1});}),_0x59f9cb['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x848aac=>{const _0x327828=_0x848aac['map'](_0xb05b1b=>_0xb05b1b['getContainedElement']()),_0x52778c=_0x327828[0x0]['findAncestor']('table'),{minColumn:_0x3967f3,maxColumn:_0x33595c}=_0x313e3['_getCoordsForCells'](_0x327828);_0x3993d2['removeColumns'](_0x52778c,{'at':_0x3967f3,'columns':_0x33595c-_0x3967f3+0x1});});const _0x446140=(_0xe915dc,_0x599484)=>{if(!_0x599484['subType']||!_0x599484['subType']['startsWith']('tablePaste'))return;const _0x3ce88a=_0x599484['attributes']['tablePasteChainId'],_0x4d6de7=_0x59f9cb['getSuggestions']()['filter'](_0xfa06e7=>_0xfa06e7['isInContent']&&_0xfa06e7['attributes']&&_0xfa06e7['attributes']['tablePasteChainId']==_0x3ce88a);_0x4d6de7['length']&&_0x599484['getAllAdjacentSuggestions']()['length']!=_0x4d6de7['length']&&_0x4d6de7['reduce']((_0x292102,_0x114a05)=>(_0x292102['next']=_0x114a05,_0x114a05['previous']=_0x292102,_0x114a05));};function _0x3e81bd(_0x5134f5,_0x1eaba8=!0x0){const {id:_0x42fa0a,authorId:_0x45419c}=_0x59f9cb['_splitMarkerName'](_0x5134f5['markerName']),_0x5a74e1=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x190c83=_0x59f9cb['activeMarkers']['includes'](_0x5134f5['markerName']);return _0x190c83&&_0x5a74e1['push']('ck-suggestion-marker--active'),{'classes':_0x5a74e1,'attributes':{'data-suggestion':_0x42fa0a,'data-author-id':_0x45419c},'priority':_0x190c83&&_0x1eaba8?0xbc2:0xbb8};}_0x59f9cb['on']('suggestionLoaded',_0x446140,{'priority':'high'}),_0x59f9cb['on']('suggestionUnloaded',_0x446140,{'priority':'high'}),_0x42e92b['model']['document']['registerPostFixer'](()=>{let _0x42c6f9=!0x1;const _0x31aa6f=Array['from'](_0x42e92b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5bf6c4,data:_0x3d7b72}of _0x31aa6f){const {group:_0x46288b,type:_0x26264e,id:_0x4ae4b0}=_0x59f9cb['_splitMarkerName'](_0x5bf6c4);if('suggestion'!=_0x46288b||'deletion'!=_0x26264e||_0x3d7b72['oldRange'])continue;if(!_0x59f9cb['hasSuggestion'](_0x4ae4b0))continue;const _0x49a3bc=_0x59f9cb['getSuggestion'](_0x4ae4b0)['getRanges'](),_0x1d72d2=_0x42e92b['plugins']['get']('Users')['me'];for(const _0x5a1843 of _0x59f9cb['getSuggestions']()){if(!_0x5a1843['isInContent']||_0x5a1843['author']!=_0x1d72d2)continue;if('formatBlock'!=_0x5a1843['type']||'tablePasteCell'!=_0x5a1843['subType'])continue;if(_0x5a1843['getRanges']()['every'](_0x4cdb2e=>_0x49a3bc['some'](_0x46370d=>_0x46370d['containsRange'](_0x4cdb2e,!0x0)))){for(const _0x4576da of _0x5a1843['getAllAdjacentSuggestions']())_0x4576da['isInContent']&&(_0x4576da['discard'](),_0x42c6f9=!0x0);}}}return _0x42c6f9;}),_0x42e92b['model']['document']['registerPostFixer'](_0xcfdf09=>{const _0x1f321d=_0x42e92b['commands']['get']('redo');if(!_0x1f321d||!_0x1f321d['_createdBatches']['has'](_0xcfdf09['batch']))return!0x1;let _0x4b12b3=!0x1;const _0x377e58=_0x42e92b['plugins']['get']('Users')['me'],_0x1053ff=_0x42e92b['model']['document']['differ']['getChanges'](),_0x586a66=Array['from'](_0x42e92b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5f1acc,data:_0x30ed95})=>{const {group:_0x41c3cc,subType:_0x17a11c,authorId:_0x85233b}=_0x59f9cb['_splitMarkerName'](_0x5f1acc);return'suggestion'==_0x41c3cc&&'tablePaste'==_0x17a11c&&_0x85233b==_0x377e58['id']&&!_0x30ed95['oldRange'];});for(const _0x1733b0 of _0x1053ff){if('insert'!=_0x1733b0['type']||'tableCellSuggestion'!=_0x1733b0['name']||0x1!=_0x1733b0['length'])continue;const _0x22ff7d=_0xcfdf09['createRange'](_0x1733b0['position'],_0x1733b0['position']['getShiftedBy'](0x1));if(!_0x586a66['find'](({data:_0x89df9})=>_0x89df9['newRange']['isEqual'](_0x22ff7d))){for(const {name:_0x86d576,data:_0x4d2af5}of _0x586a66)if(_0x22ff7d['containsRange'](_0x4d2af5['newRange'])){_0xcfdf09['updateMarker'](_0x86d576,{'range':_0x22ff7d}),_0x4b12b3=!0x0;break;}}}return _0x4b12b3;}),_0x42e92b['model']['document']['registerPostFixer'](_0x19388a=>{let _0x576bbd=!0x1;const _0x3446b1=_0x42e92b['plugins']['get']('Users')['me'],_0x12f164=_0x59f9cb['getSuggestions']()['filter'](_0x39d5a2=>_0x39d5a2['isInContent']&&_0x39d5a2['author']==_0x3446b1),_0x595d1d=new Set(),_0x476382=new Set();for(const _0x1ab586 of _0x12f164)if('tablePaste'==_0x1ab586['subType'])for(const _0x5e8ebc of _0x1ab586['getMarkers']()){const _0x43d4c2=_0x5e8ebc['getRange']()['getContainedElement']();if(_0x43d4c2){if(_0x43d4c2['is']('element','tableCellSuggestion')&&De(_0x43d4c2)){_0x1ab586['removeMarker'](_0x5e8ebc['name']),_0x595d1d['add'](_0x43d4c2),_0x576bbd=!0x0;const _0x26426a=_0x43d4c2['nextSibling'],_0x28207b=_0x43d4c2['previousSibling'],_0x40c55d=_0x26426a&&_0x26426a['is']('element','tableCellSuggestion'),_0x5d75b3=_0x28207b&&_0x28207b['is']('element','tableCellSuggestion');_0x40c55d&&!_0x595d1d['has'](_0x26426a)&&_0x476382['add'](_0x26426a),_0x5d75b3&&!_0x595d1d['has'](_0x28207b)&&_0x476382['add'](_0x28207b);}else _0x43d4c2['is']('element','paragraph')&&_0x43d4c2['isEmpty']&&(_0x1ab586['removeMarker'](_0x5e8ebc['name']),_0x576bbd=!0x0);}}else{if('tablePasteCell'==_0x1ab586['subType']){if(!_0x1ab586['attributes']||!_0x1ab586['attributes']['tablePasteChainId'])continue;const _0x518ced=_0x1ab586['attributes']['markerAttributes'];if(_0x518ced&&Object['keys'](_0x518ced)['length'])continue;const _0x4266af=_0x1ab586['attributes']['tablePasteChainId'];let _0x4c7fdc=!0x0,_0x1b80cf=!0x0;for(const _0x875bca of _0x12f164)if(_0x875bca['subType']&&_0x875bca['subType']['startsWith']('tablePaste')){if(!_0x875bca['attributes']['tablePasteChainId']){_0x1b80cf=!0x1;break;}if(_0x875bca['id']!=_0x1ab586['id']&&_0x875bca['attributes']['tablePasteChainId']==_0x4266af){_0x4c7fdc=!0x1;break;}}_0x1b80cf&&_0x4c7fdc&&(_0x1ab586['removeMarkers'](),_0x576bbd=!0x0);}}for(const _0x2884dd of _0x595d1d)_0x19388a['remove'](_0x2884dd);for(const _0x4852f5 of _0x476382)_0x19388a['unwrap'](_0x4852f5);return _0x576bbd;}),_0x42e92b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3b88c8=>_0x3e81bd(_0x3b88c8),'converterPriority':'high'}),_0x42e92b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xd1ebd6,_0x4b0ec8)=>_0x4b0ec8['options']['showSuggestionHighlights']?_0x3e81bd(_0xd1ebd6,!0x1):null,'converterPriority':'high'});const _0x286b7e=_0x42e92b['editing']['view'];this['listenTo'](_0x286b7e['document'],'clipboardOutput',(_0x45ae87,_0xc13dc6)=>{const _0x237cf0=[];for(const _0x3739c7 of _0x286b7e['createRangeIn'](_0xc13dc6['content'])['getItems']())_0x3739c7['is']('element','suggestion-td')&&_0x237cf0['push'](_0x3739c7);_0x286b7e['change'](_0x383fd4=>{for(const _0x50109f of _0x237cf0)_0x383fd4['move'](_0x383fd4['createRangeIn'](_0x50109f),_0x383fd4['createPositionBefore'](_0x50109f)),_0x383fd4['remove'](_0x50109f);});});}}function De(_0x525f65){if(_0x525f65['isEmpty'])return!0x0;const _0xd19a1b=_0x525f65['getChild'](0x0);return _0xd19a1b['is']('element','paragraph')&&_0xd19a1b['isEmpty'];}function He(_0x188d01,_0x5aa785={},_0x509e91){for(const {isAnchor:_0x3ad162,cellHeight:_0x598372,cellWidth:_0x4283b6}of _0x509e91['createTableWalker'](_0x188d01,{'includeAllSlots':!0x0,..._0x5aa785}))if(!_0x3ad162||0x1!=_0x598372||0x1!=_0x4283b6)return!0x1;return!0x0;}class Bt extends _0x3953b7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x310af5=this['editor']['plugins']['get']('TrackChangesEditing');_0x310af5['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x310af5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x310af5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x310af5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x310af5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x310af5['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x8c3115,_0x1f6e58){const _0x42985d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x395109=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x126766=_0x1f6e58['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2ef990=_0x395109['getColumnGroupElement'](_0x126766);let _0x5df962=_0x2ef990?_0x395109['getTableColumnsWidths'](_0x2ef990):null,_0x5d0cb6=_0x126766['getAttribute']('tableWidth')||null;const _0x46d89f=_0x1f6e58['tableWidth']||_0x5d0cb6,_0x59494b=_0x1f6e58['columnWidths']||_0x5df962,_0x1c1dd9=this['editor']['plugins']['get']('Users')['me'];for(const _0xf41ef7 of _0x42985d['getSuggestions']()){const _0x4490c1=_0xf41ef7['getContainedElement']();if('resizeTable'===_0xf41ef7['subType']&&_0x4490c1===_0x126766){_0xf41ef7['author']!==_0x1c1dd9&&_0xf41ef7['discard']();const _0x108911=_0xf41ef7['data']['commandParams'];_0x5d0cb6=_0x108911[0x0]['tableWidth'],_0x5df962=_0x108911[0x0]['columnWidths'];break;}}_0x8c3115({'table':_0x126766,'tableWidth':_0x46d89f,'columnWidths':_0x59494b}),_0x42985d['markBlockFormat'](_0x126766,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5d0cb6,'columnWidths':_0x5df962}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xc01d7b){if('formatBlock'!=_0xc01d7b['type']&&'formatInline'!=_0xc01d7b['type'])return;const {data:_0xb52e42}=_0xc01d7b;if(_0xb52e42&&'resizeTable'===_0xb52e42['formatGroupId']){const _0x58f1a0='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x58f1a0)};}}}class xt extends _0x3953b7{['afterInit'](){const _0x4aff4c=this['editor'];_0x4aff4c['plugins']['has']('Template')&&_0x4aff4c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x3953b7{['afterInit'](){const _0x55a871=this['editor'];if(!_0x55a871['commands']['get']('insertTableOfContents'))return;_0x55a871['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5e55cb=_0x55a871['plugins']['get']('TrackChangesEditing'),_0x2be939=_0x55a871['locale'];_0x5e55cb['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5817a2=>c(_0x2be939,'ELEMENT_TABLE_OF_CONTENTS',_0x5817a2));}}class Rt extends _0x3953b7{['afterInit'](){const _0x47c0ae=this['editor'];if(!_0x47c0ae['plugins']['has']('Title'))return;const _0x33d2b3=_0x47c0ae['plugins']['get']('TrackChangesEditing');_0x33d2b3['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x47c0ae['locale'],'ELEMENT_TITLE')),_0x47c0ae['model']['document']['registerPostFixer'](_0x57b577=>{let _0x2d662a=!0x1;const _0x1df106=Array['from'](_0x47c0ae['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x289e45,data:_0x20c034}of _0x1df106){const {group:_0x33ed4d}=_0x33d2b3['_splitMarkerName'](_0x289e45);if('suggestion'!==_0x33ed4d||!_0x20c034['newRange'])continue;const _0x5e9883=_0x20c034['newRange'],_0x1a970e=_0x5e9883['end']['nodeBefore'];if(!_0x1a970e||!_0x1a970e['is']('element','title-content'))continue;if(!_0x5e9883['start']['isTouching'](_0x5e9883['end']))continue;const _0x4902f7=_0x47c0ae['model']['schema']['getNearestSelectionRange'](_0x5e9883['end'],'forward');if(_0x4902f7&&_0x4902f7['isCollapsed']){const _0x146d58=_0x57b577['createRange'](_0x5e9883['start'],_0x4902f7['start']);_0x146d58['isEqual'](_0x5e9883)||(_0x57b577['updateMarker'](_0x289e45,{'range':_0x146d58}),_0x2d662a=!0x0);}_0x2d662a||(_0x57b577['removeMarker'](_0x289e45),_0x2d662a=!0x0);}return _0x2d662a;});}}class Tt extends _0x3953b7{['afterInit'](){const _0x5248ac=this['editor'],_0x2c2ae8=_0x5248ac['plugins']['get']('TrackChangesEditing');_0x5248ac['plugins']['has']('Uploadcare')&&(_0x2c2ae8['enableCommand']('uploadcare'),_0x5248ac['plugins']['has']('UploadcareImageEdit')&&(_0x2c2ae8['enableCommand']('uploadcareImageEdit'),_0x2c2ae8['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2c2ae8['registerBlockAttribute']('uploadcareImageId'),_0x2c2ae8['descriptionFactory']['registerDescriptionCallback'](_0xc9d453=>{if('attribute'!=_0xc9d453['type'])return;const {data:_0x13faab}=_0xc9d453;return _0x13faab&&'uploadcareImageId'==_0x13faab['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x3953b7{['afterInit'](){const _0x12a1b0=this['editor'],_0xc0ee1b=_0x12a1b0['plugins']['get']('TrackChangesEditing');_0x12a1b0['plugins']['has']('UndoEditing')&&(_0xc0ee1b['enableCommand']('undo'),_0xc0ee1b['enableCommand']('redo'));}}class Ut extends _0x3953b7{static get['requires'](){return[Ct];}['afterInit'](){const _0x410393=this['editor'];if(!_0x410393['plugins']['has']('TableCaptionEditing'))return;_0x410393['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x3953b7{['tableProperties'];['tableCellProperties'];constructor(_0x35e88f){super(_0x35e88f),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 _0xda7f98=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x35a7b7 of this['tableProperties'])_0xda7f98['enableCommand'](_0x35a7b7,(_0x3527b5,_0x1e4cd1)=>{const _0x2abbb5=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x35a7b7,[_0x2abbb5],this['tableProperties'],'tableProperties',_0x3527b5,_0x1e4cd1);});_0xda7f98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xda7f98['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xda7f98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x41d165,_0x42d257)=>this['handleDiscardAction'](this['tableProperties'],_0x41d165,_0x42d257)),_0xda7f98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x39cb25 of this['tableCellProperties'])_0xda7f98['enableCommand'](_0x39cb25,(_0x322fb7,_0x812ff2)=>{const _0x458785=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x39cb25,_0x458785,this['tableCellProperties'],'tableCellProperties',_0x322fb7,_0x812ff2);});_0xda7f98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xda7f98['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xda7f98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x319a94,_0x39c07c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x319a94,_0x39c07c)),_0xda7f98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xda7f98['descriptionFactory']['registerDescriptionCallback'](_0x3700cf=>this['handleSuggestionDescription'](_0x3700cf));}['_handlePropertyChange'](_0x42347a,_0x5e079c,_0x162056,_0x2c9f97,_0x3b9c98,_0x9d6864){const _0x54294b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x9d6864['batch'],()=>{for(const _0x3dae9a of _0x5e079c){if(this['_getSuggestion'](_0x3dae9a,_0x2c9f97))_0x3b9c98(_0x9d6864);else{const _0x11c28f={};for(const _0x491fc3 of _0x162056){const _0xe6d56b=_0x3dae9a['getAttribute'](_0x491fc3);void 0x0!==_0xe6d56b&&(_0x11c28f[_0x491fc3]=_0xe6d56b);}_0x3b9c98(_0x9d6864),_0x54294b['markBlockFormat'](_0x3dae9a,{'commandParams':[_0x11c28f]},[],_0x2c9f97);}}});}['handleDiscardAction'](_0x46c759,_0x2af9ba,_0xdc87f){const _0xe2023c=_0x2af9ba[0x0]['start']['nodeAfter'],_0x4cdfc1=_0xdc87f['commandParams'][0x0];this['editor']['model']['change'](_0x336616=>{for(const _0x3f7e0f of _0x46c759)void 0x0!==_0x4cdfc1[_0x3f7e0f]?_0x336616['setAttribute'](_0x3f7e0f,_0x4cdfc1[_0x3f7e0f],_0xe2023c):_0x336616['removeAttribute'](_0x3f7e0f,_0xe2023c);});}['handleSuggestionDescription'](_0x50dd98){if(_0x50dd98['data'])switch(_0x50dd98['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'](_0x57905f,_0x494917){const _0x11ffa3=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3e6ab4 of _0x11ffa3['getSuggestions']({'skipNotAttached':!0x0})){const _0x1d1aa8=_0x3e6ab4['getContainedElement']();if(_0x3e6ab4['subType']===_0x494917&&_0x1d1aa8===_0x57905f)return _0x3e6ab4;}return null;}}const u='$elementName';class p extends _0x3953b7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x58f2c4,_0x5a4bb9,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c6548){super(_0x5c6548),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5680dd,_0x502132,_0xfff8b8,_0x334064)=>{this['_model']['change'](()=>{for(const _0x144fd9 of[..._0x334064,..._0xfff8b8])this['_model']['markers']['has'](_0x144fd9)&&_0x5c6548['editing']['reconvertMarker'](_0x144fd9);});}),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']=_0x5c6548['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(),_0x5c6548['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5c6548['config']['get']('trackChanges.trackFormatChanges'),_0x5c6548['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5c6548['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5c6548,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x49ef70=this['editor'],_0x12a39e=(_0x30a1ad,_0x433042)=>{if('attribute'!=_0x30a1ad)return'ck-suggestion-marker-'+_0x30a1ad;const _0x4e96eb=_0x433042['split']('|')[0x0];return this['_isBlockAttribute'](_0x4e96eb)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x49ef70['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x542e61=>{const {id:_0x34c9ab,authorId:_0x59eb6b,type:_0x123df3,subType:_0x1ae858}=this['_splitMarkerName'](_0x542e61['markerName']),_0x5ac56a=['ck-suggestion-marker',_0x12a39e(_0x123df3,_0x1ae858)];let _0x48598f=0xbb8;return this['activeMarkers']['includes'](_0x542e61['markerName'])&&(_0x5ac56a['push']('ck-suggestion-marker--active'),_0x48598f=0xbc2),'deletion'==_0x123df3&&(_0x48598f+=0x5),{'classes':_0x5ac56a,'attributes':{'data-suggestion':_0x34c9ab,'data-author-id':_0x59eb6b},'priority':_0x48598f};}}),_0x49ef70['conversion']['for']('dataDowncast')['add'](_0x231837=>{_0x231837['on']('addMarker:suggestion',(_0x318b2c,_0x51c1be,_0x5f5488)=>{if(!_0x5f5488['options']['showSuggestionHighlights'])return;const _0x428105=_0x51c1be['item'];if(!_0x428105)return;const _0x359818=_0x5f5488['mapper']['toViewElement'](_0x428105);_0x49ef70['model']['schema']['isObject'](_0x428105)&&_0x359818&&!_0x359818['getCustomProperty']('widget')&&_0x359818['is']('containerElement')&&_0x2cd5b7(_0x359818,_0x5f5488['writer']);},{'priority':'high'});}),_0x49ef70['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1cf8b6,_0x3f0106)=>{if(!_0x3f0106['options']['showSuggestionHighlights'])return null;const {id:_0x637e56,authorId:_0x5a0ee4,type:_0x338171,subType:_0x4fe53d}=this['_splitMarkerName'](_0x1cf8b6['markerName']);return{'classes':['ck-suggestion-marker',_0x12a39e(_0x338171,_0x4fe53d)],'priority':0xbb8,'attributes':{'data-suggestion':_0x637e56,'data-author-id':_0x5a0ee4}};}});const _0x3c46ef=({showActiveMarkers:_0x522188=!0x0,isAttributeSuggestion:_0x1ed241=!0x1}={})=>(_0x34fa41,_0x3749a1,_0x53a611)=>{if(!_0x3749a1['item'])return;const {id:_0x1321ae,authorId:_0x32bfa1}=this['_splitMarkerName'](_0x3749a1['markerName']);if(_0x1ed241){const _0x4f29fb=this['_suggestions']['get'](_0x1321ae),_0x4849fe=this['_getAttributeKey'](_0x4f29fb);if(!this['_isBlockAttribute'](_0x4849fe))return;}if(_0x3749a1['item']['is']('selection'))return void _0x53a611['consumable']['consume'](_0x3749a1['item'],_0x34fa41['name']);const _0x4f9dbf=_0x53a611['mapper']['toViewElement'](_0x3749a1['item']);if(_0x3749a1['item']['is']('element')&&_0x49ef70['model']['schema']['isBlock'](_0x3749a1['item'])&&!_0x4f9dbf['getCustomProperty']('addHighlight')){_0x53a611['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4f9dbf),_0x53a611['writer']['setAttribute']('data-suggestion',_0x1321ae,_0x4f9dbf),_0x53a611['writer']['setAttribute']('data-author-id',_0x32bfa1,_0x4f9dbf),_0x53a611['mapper']['bindElementToMarker'](_0x4f9dbf,_0x3749a1['markerName']),_0x522188&&(this['activeMarkers']['includes'](_0x3749a1['markerName'])?_0x53a611['writer']['addClass']('ck-suggestion-marker--active',_0x4f9dbf):_0x53a611['writer']['removeClass']('ck-suggestion-marker--active',_0x4f9dbf));for(const _0x5d5df3 of _0x49ef70['model']['createRangeIn'](_0x3749a1['item'])['getItems']())_0x53a611['consumable']['consume'](_0x5d5df3,_0x34fa41['name']);_0x53a611['consumable']['consume'](_0x3749a1['item'],_0x34fa41['name']);}};_0x49ef70['conversion']['for']('dataDowncast')['add'](_0x23f80e=>{_0x23f80e['on']('addMarker:suggestion:formatBlock',(_0x403a5d,_0x583603,_0x165fd2)=>{_0x165fd2['options']['showSuggestionHighlights']&&_0x3c46ef({'showActiveMarkers':!0x1})(_0x403a5d,_0x583603,_0x165fd2);},{'priority':'highest'});}),_0x49ef70['conversion']['for']('dataDowncast')['add'](_0x54287c=>{_0x54287c['on']('addMarker:suggestion:attribute',(_0xc7c33a,_0x413641,_0x22f8cc)=>{_0x22f8cc['options']['showSuggestionHighlights']&&_0x3c46ef({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xc7c33a,_0x413641,_0x22f8cc);},{'priority':'highest'});}),_0x49ef70['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1a2e82,_0x14f70c)=>{if(_0x14f70c['options']['showSuggestionHighlights']){const {id:_0x116c7b,authorId:_0x362f7f}=this['_splitMarkerName'](_0x1a2e82);return _0x1a2e82['includes'](':split')||_0x1a2e82['includes'](':merge')?{'group':'suggestion','name':_0x1a2e82['substr'](0xb),'attributes':{'data-suggestion':_0x116c7b,'data-author-id':_0x362f7f}}:null;}return{'group':'suggestion','name':_0x1a2e82['substr'](0xb)};}}),_0x49ef70['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x18e028,{writer:_0x396383})=>{let _0x286231='suggestion:'+_0x18e028['getAttribute']('suggestion-type')+':'+_0x18e028['getAttribute']('id');return _0x18e028['getAttribute']('marker-count')&&(_0x286231+=':'+_0x18e028['getAttribute']('marker-count')),_0x396383['createElement']('$marker',{'data-name':_0x286231});}}),_0x49ef70['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x49ef70['conversion']['for']('editingDowncast')['add'](_0x48734e=>{_0x48734e['on']('addMarker:suggestion:formatBlock',_0x3c46ef(),{'priority':'high'});}),_0x49ef70['conversion']['for']('editingDowncast')['add'](_0x5b801e=>{_0x5b801e['on']('addMarker:suggestion:attribute',_0x3c46ef({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x49ef70['conversion']['for']('editingDowncast')['add'](_0x19eecf=>{_0x19eecf['on']('removeMarker:suggestion:formatBlock',(_0x2b6d0f,_0x284227,_0xb15d67)=>{const _0x3102bd=_0xb15d67['mapper']['markerNameToElements'](_0x284227['markerName']);if(_0x3102bd){for(const _0x13dd83 of _0x3102bd)_0x13dd83['getCustomProperty']('addHighlight')||(_0xb15d67['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x13dd83),_0xb15d67['writer']['removeAttribute']('data-suggestion',_0x13dd83),_0xb15d67['writer']['removeAttribute']('data-author-id',_0x13dd83),_0xb15d67['mapper']['unbindElementFromMarkerName'](_0x13dd83,_0x284227['markerName']));}},{'priority':'high'});}),_0x49ef70['conversion']['for']('editingDowncast')['add'](_0x2d7c5e=>{_0x2d7c5e['on']('removeMarker:suggestion:attribute',(_0x3f72ea,_0x2cfa88,_0x4bd72a)=>{const _0xaba1fb=_0x4bd72a['mapper']['markerNameToElements'](_0x2cfa88['markerName']);if(!_0xaba1fb)return;const {id:_0x238039}=this['_splitMarkerName'](_0x2cfa88['markerName']),_0x4a5ef3=this['_suggestions']['get'](_0x238039),_0x548d18=this['_getAttributeKey'](_0x4a5ef3);if(this['_isBlockAttribute'](_0x548d18)){for(const _0x5a2fa5 of _0xaba1fb)_0x5a2fa5['getCustomProperty']('addHighlight')||(_0x4bd72a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5a2fa5),_0x4bd72a['writer']['removeAttribute']('data-suggestion',_0x5a2fa5),_0x4bd72a['writer']['removeAttribute']('data-author-id',_0x5a2fa5),_0x4bd72a['mapper']['unbindElementFromMarkerName'](_0x5a2fa5,_0x2cfa88['markerName']));}},{'priority':'high'});}),_0x49ef70['model']['document']['registerPostFixer'](_0x270b02=>{let _0x352fde=!0x1;const _0x95c9cc=Array['from'](_0x49ef70['model']['document']['differ']['getChangedMarkers']()),_0x209377=new Set();for(const {name:_0x3b8d1d,data:_0xf8a10b}of _0x95c9cc){const {group:_0x102b32,type:_0x86192e,subType:_0x5d2d4b,id:_0x2abff2}=this['_splitMarkerName'](_0x3b8d1d);if('suggestion'!==_0x102b32)continue;const _0x595266=this['_suggestions']['get'](_0x2abff2);if(null!=_0xf8a10b['newRange']){'formatInline'==_0x86192e&&(_0x352fde=_0x352fde||Jt(_0xf8a10b['newRange'],_0x3b8d1d,_0x270b02,_0x49ef70['model']['schema']));const _0x261aae='attribute'==_0x86192e&&this['_isBlockAttribute'](_0x5d2d4b['split']('|')[0x0]);if(_0xf8a10b['newRange']['isCollapsed']||'$graveyard'==_0xf8a10b['newRange']['root']['rootName']||'formatBlock'==_0x86192e&&!Ht(_0xf8a10b['newRange'])||_0x261aae&&!Ht(_0xf8a10b['newRange'])||'deletion'==_0x86192e&&!(!Lt(_0x2b1bad=_0xf8a10b['newRange'])&&!function(_0x56c57e){return _0x56c57e['start']['parent']==_0x56c57e['end']['nodeBefore']&&_0x56c57e['start']['isAtEnd'];}(_0x2b1bad)))_0x270b02['removeMarker'](_0x3b8d1d),_0x352fde=!0x0;else{if(!_0x595266||!_0x595266['isInContent'])continue;if(_0xf8a10b['newRange']&&_0xf8a10b['oldRange']&&_0xf8a10b['newRange']['isEqual'](_0xf8a10b['oldRange']))continue;_0x209377['add'](_0x595266);}}}var _0x2b1bad;return _0x209377['size']>0x0&&(_0x352fde=!!this['_joinWithAdjacentSuggestions'](_0x209377)||_0x352fde),_0x352fde;}),_0x49ef70['model']['document']['registerPostFixer'](_0x2ac7e7=>{let _0x466a59=!0x1;for(const _0x1531b7 of _0x49ef70['model']['document']['differ']['getChanges']())if('insert'==_0x1531b7['type'])for(const _0x51e317 of this['_suggestions']['values']()){if(_0x51e317['isMultiRange']||!_0x51e317['isInContent'])continue;const _0x3fa8b9='formatBlock'==_0x51e317['type'],_0x3afdb7=this['_getAttributeKey'](_0x51e317),_0x2b7625=_0x3afdb7&&this['_isBlockAttribute'](_0x3afdb7);if(!_0x3fa8b9&&!_0x2b7625)continue;const _0x4eecf2=_0x51e317['getFirstRange']();if(_0x4eecf2['start']['parent']!=_0x4eecf2['end']['parent']&&!_0x4eecf2['end']['isAtEnd']){const _0x241842=_0x49ef70['model']['createPositionAt'](_0x4eecf2['start']['nodeAfter'],'end'),_0x3536bf=_0x49ef70['model']['createRange'](_0x4eecf2['start'],_0x241842);_0x2ac7e7['updateMarker'](_0x51e317['getFirstMarker'](),{'range':_0x3536bf}),_0x466a59=!0x0;}}return _0x466a59;}),_0x49ef70['model']['document']['registerPostFixer'](_0xab4539=>this['_processAttributeChanges'](_0xab4539)),_0x49ef70['model']['document']['registerPostFixer'](_0x341d90=>!_0x341d90['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x341d90)),_0x49ef70['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x49ef70['model']['document']['on']('change:data',(_0x329ee6,_0x4e4d9e)=>{if(!_0x4e4d9e['isLocal']||_0x4e4d9e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x358e90=_0x49ef70['model']['document']['differ']['getChanges']();if(0x0==_0x358e90['length'])return;const _0x434728=[],_0x2c5490=_0x358e90['filter'](_0x295a5b=>'attribute'==_0x295a5b['type']),_0x3cd6f8=_0x358e90['filter'](_0x4db842=>'insert'==_0x4db842['type']&&'$text'!=_0x4db842['name']);for(const _0x431527 of _0x2c5490)this['_isRegisteredAttribute'](_0x431527['attributeKey'])&&_0x434728['push']({'key':_0x431527['attributeKey'],'newValue':_0x431527['attributeNewValue'],'oldValue':_0x431527['attributeOldValue'],'range':qt(_0x431527['range'],_0x49ef70['model'])});for(const _0x4b6baf of _0x3cd6f8){if('rename'!=_0x4b6baf['action']&&'refresh'!=_0x4b6baf['action'])continue;const _0x9b599f=zt(_0x4b6baf['position']['nodeAfter'],_0x49ef70['model']),_0x429db8=_0x4b6baf['before'];'rename'==_0x4b6baf['action']&&_0x434728['push']({'key':u,'newValue':_0x4b6baf['name'],'oldValue':_0x429db8['name'],'range':_0x9b599f});for(const [_0x783101,_0x21e798]of _0x429db8['attributes']){if(!this['_isRegisteredAttribute'](_0x783101))continue;const _0x2cef94=_0x4b6baf['attributes']['get'](_0x783101);_0x21e798!==_0x2cef94&&_0x434728['push']({'key':_0x783101,'newValue':_0x2cef94,'oldValue':_0x21e798,'range':_0x9b599f});}for(const [_0x4c945b,_0x3d763e]of _0x4b6baf['attributes'])this['_isRegisteredAttribute'](_0x4c945b)&&(_0x429db8['attributes']['has'](_0x4c945b)||_0x434728['push']({'key':_0x4c945b,'newValue':_0x3d763e,'oldValue':null,'range':_0x9b599f}));}0x0!=_0x434728['length']&&_0x49ef70['model']['enqueueChange'](_0x4e4d9e,_0x56bc1c=>{const _0x4a815a=_0x524fb1();for(const {range:_0x13ddea,key:_0x1e6b78,oldValue:_0xfb2c74,newValue:_0x30ec64}of _0x434728)this['markAttributeChange'](_0x13ddea,_0x1e6b78,_0xfb2c74,_0x30ec64,{'groupId':_0x4a815a});this['_reduceExistingSuggestions'](_0x56bc1c,_0x434728);});},{'priority':'lowest'}),_0x49ef70['model']['markers']['on']('update:suggestion',(_0x1e169f,_0x398493,_0xf488fb)=>{if(null==_0xf488fb){const {id:_0xab459b}=this['_splitMarkerName'](_0x398493['name']),_0x1c4fba=this['_suggestions']['get'](_0xab459b);_0x1c4fba&&_0x1c4fba['addMarkerName'](_0x398493['name']);}}),_0x49ef70['model']['document']['on']('change:data',()=>{const _0x3e5f2b=Array['from'](_0x49ef70['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5dbf79=>'suggestion'===this['_splitMarkerName'](_0x5dbf79['name'])['group']);if(0x0===_0x3e5f2b['length'])return;_0x3e5f2b['sort']((_0x2e3aa8,_0x28867a)=>{const _0x3898c2=_0x2e3aa8['data']['oldRange'],_0x2e284b=_0x28867a['data']['oldRange'];return null===_0x3898c2&&null===_0x2e284b?0x0:null===_0x3898c2&&null!==_0x2e284b?-0x1:null!==_0x3898c2&&null===_0x2e284b?0x1:_0x3898c2['start']['isBefore'](_0x2e284b['start'])?-0x1:0x1;});const _0x543cae=new Set(),_0x2daadf=new Set();for(const {name:_0x354ed5,data:_0x3775cd}of _0x3e5f2b){const {id:_0x32af42}=this['_splitMarkerName'](_0x354ed5);if(null===_0x3775cd['oldRange']){const _0x5f28de=this['_handleNewSuggestionMarker'](_0x354ed5);_0x2daadf['add'](_0x5f28de);}else{const _0x4cf726=this['_suggestions']['get'](_0x32af42);null!==_0x3775cd['newRange']||_0x4cf726['isInContent']?(_0x543cae['add'](_0x4cf726['head']),_0x2daadf['add'](_0x4cf726)):this['_removeSuggestion'](_0x4cf726);}}_0x2daadf['size']>0x0&&this['_refreshSuggestionsChain'](_0x2daadf);for(const _0x324820 of _0x543cae)this['fire']('suggestionChanged',_0x324820);}),_0x49ef70['model']['on']('applyOperation',(_0x52915d,_0xfcec6d)=>{const _0xf63952=_0xfcec6d[0x0];if(!this['_suggestions']['size'])return;if(!_0xf63952['isDocumentOperation'])return;if(_0xf63952['batch']['isUndo']||!_0xf63952['batch']['isLocal'])return;let _0x3c35e2,_0x4ecaad;switch(_0xf63952['type']){case'insert':_0x3c35e2=_0x49ef70['model']['createPositionAt'](_0xf63952['position']),_0x4ecaad=_0x3c35e2['getShiftedBy'](_0xf63952['howMany']);break;case'split':_0x3c35e2=_0x49ef70['model']['createPositionAt'](_0xf63952['splitPosition']),_0x4ecaad=_0x49ef70['model']['createPositionAt'](_0xf63952['moveTargetPosition']);break;case'move':_0x3c35e2=_0x49ef70['model']['createPositionAt'](_0xf63952['targetPosition']),_0x4ecaad=_0x3c35e2['getShiftedBy'](_0xf63952['howMany']);break;default:return;}const _0x4cd215=_0x49ef70['model']['createRange'](_0x3c35e2,_0x4ecaad);_0x49ef70['model']['change'](()=>{for(const {suggestion:_0x5dd3cb,meta:_0x33bf06}of this['_findSuggestions'](_0x4cd215)){if(_0x5dd3cb['isMultiRange'])continue;if('formatInline'==_0x5dd3cb['type'])continue;const _0x87cfae=this['_getAttributeKey'](_0x5dd3cb);if(_0x87cfae&&this['_isBlockAttribute'](_0x87cfae)&&'split'!=_0xf63952['type'])continue;const _0x5a5e65=_0x5dd3cb['data']&&_0x5dd3cb['data']['multipleBlocks'];('formatBlock'!=_0x5dd3cb['type']||'split'==_0xf63952['type']&&!_0x5a5e65)&&(_0x33bf06['containsRangeInObject']||'insertion'==_0x5dd3cb['type']&&_0x33bf06['isOwn']||_0x5dd3cb['getFirstRange']()['containsRange'](_0x4cd215)&&this['_breakSuggestionMarker'](_0x5dd3cb,_0x3c35e2,_0x4ecaad));}});},{'priority':'lowest'}),_0x49ef70['model']['on']('deleteContent',(_0x814f44,_0x5c8886)=>{const _0x545944=_0x5c8886[0x0],_0x2ae2ba=_0x5c8886[0x1];if(_0x2ae2ba&&_0x2ae2ba['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x545944['isCollapsed'])return;const _0x42cef7=_0x49ef70['model']['schema'],{start:_0x1f2622,end:_0x54a301}=_0x545944['getFirstRange'](),_0x4c0247=_0x1f2622['nodeAfter']&&_0x42cef7['isLimit'](_0x1f2622['nodeAfter'])?null:_0x42cef7['getNearestSelectionRange'](_0x1f2622,'forward'),_0x32b6d5=_0x54a301['nodeBefore']&&_0x42cef7['isLimit'](_0x54a301['nodeBefore'])?null:_0x42cef7['getNearestSelectionRange'](_0x54a301,'backward'),_0x2470d8=_0x49ef70['model']['createRange'](_0x4c0247?_0x4c0247['start']:_0x1f2622,_0x32b6d5?_0x32b6d5['end']:_0x54a301);_0x49ef70['model']['change'](_0x571334=>{this['markDeletion'](_0x2470d8);const _0x3d89df=_0x49ef70['model']['schema']['getNearestSelectionRange'](_0x2470d8['start']);_0x545944['is']('documentSelection')?_0x571334['setSelection'](_0x3d89df):_0x545944['setTo'](_0x3d89df);}),_0x814f44['stop']();},{'priority':_0x2ab9b9['normal']+0xa}),_0x49ef70['model']['on']('insertContent',(_0x1fbd23,_0x3d31f8)=>{const _0x5de7ad=_0x3d31f8[_0x3d31f8['length']-0x1];_0x5de7ad&&_0x5de7ad['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x49ef70['model']['change'](()=>{let _0x301b12=_0x49ef70['model']['insertContent'](_0x3d31f8[0x0],_0x3d31f8[0x1],_0x3d31f8[0x2],{'forceDefaultExecution':!0x0});if(!_0x301b12)return;_0x1fbd23['return']=_0x301b12['clone']();const _0x2a8e6f=_0x301b12['end']['nodeBefore'],_0x151cf3=_0x49ef70['model']['schema'];_0x2a8e6f&&_0x151cf3['isBlock'](_0x2a8e6f)&&!_0x151cf3['isObject'](_0x2a8e6f)&&(_0x301b12=_0x49ef70['model']['createRange'](_0x301b12['start'],_0x49ef70['model']['createPositionAt'](_0x2a8e6f,'end'))),this['markInsertion'](_0x301b12);}),_0x1fbd23['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5470bb=new x(_0x49ef70,this['_suggestions']);_0x49ef70['commands']['add']('acceptSuggestion',_0x5470bb),this['enableCommand']('acceptSuggestion');const _0x581fd3=new O(_0x49ef70,this['_suggestions']);_0x49ef70['commands']['add']('discardSuggestion',_0x581fd3),this['enableCommand']('discardSuggestion'),_0x49ef70['commands']['add']('acceptAllSuggestions',new R(_0x49ef70,_0x5470bb,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x49ef70['commands']['add']('discardAllSuggestions',new R(_0x49ef70,_0x581fd3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x49ef70['commands']['add']('acceptSelectedSuggestions',new E(_0x49ef70,_0x5470bb,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x49ef70['commands']['add']('discardSelectedSuggestions',new E(_0x49ef70,_0x581fd3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x15c406=_0x49ef70['plugins']['get']('CommentsRepository');this['listenTo'](_0x15c406,'addComment',(_0x379d5a,{threadId:_0x22cdcf})=>{const _0xf1a18e=this['_suggestions']['get'](_0x22cdcf);_0xf1a18e&&_0xf1a18e['commentThread']&&0x1===_0xf1a18e['commentThread']['length']&&this['_updateSuggestionData'](_0x22cdcf,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x15c406,'removeComment',(_0x38787c,{threadId:_0x513687})=>{const _0x1a5f9d=this['_suggestions']['get'](_0x513687);_0x1a5f9d&&_0x1a5f9d['commentThread']&&!_0x1a5f9d['commentThread']['length']&&this['_updateSuggestionData'](_0x513687,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x589e82){const _0x4ae7ac=_0x32360e([0x49,0x34,0x50,0x42,0x6d,0x66,0x4d,0x72,0x73,0x4a,0x33,0x4e,0x31,0x75,0x5a,0x37,0x35,0x58,0x51,0x30,0x61,0x54,0x65,0x53,0x6b,0x46,0x48,0x47,0x56,0x74,0x67,0x68,0x69,0x44,0x70,0x52,0x6a,0x6f,0x4f,0x45,0x32,0x62,0x76,0x39,0x36,0x7a,0x57,0x38,0x79,0x71,0x43,0x55,0x6c,0x78,0x59,0x41,0x63,0x6e,0x64,0x77,0x4b,0x4c]),_0x260317=0x4635f8c9,_0x3a0544=0x46329179^_0x260317,_0x2fe808=window[_0x32360e([0x44,0x61,0x74,0x65])][_0x32360e([0x6e,0x6f,0x77])](),_0xfe2df8=_0x589e82[_0x32360e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x297476=new window[(_0x32360e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x368c24=>{_0xfe2df8[_0x32360e([0x6f,0x6e,0x63,0x65])](_0x32360e([0x72,0x65,0x61,0x64,0x79]),_0x368c24);}),_0x53f2fc={[_0x32360e([0x6b,0x74,0x79])]:_0x32360e([0x45,0x43]),[_0x32360e([0x75,0x73,0x65])]:_0x32360e([0x73,0x69,0x67]),[_0x32360e([0x63,0x72,0x76])]:_0x32360e([0x50,0x2d,0x32,0x35,0x36]),[_0x32360e([0x78])]:_0x32360e([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]),[_0x32360e([0x79])]:_0x32360e([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]),[_0x32360e([0x61,0x6c,0x67])]:_0x32360e([0x45,0x53,0x32,0x35,0x36])},_0x23cbe0=_0xfe2df8[_0x32360e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x32360e([0x67,0x65,0x74])](_0x32360e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5bb33f(){let _0x7f9cd4,_0xc3ce03=null,_0x3599a0=null;try{if(_0x23cbe0==_0x32360e([0x47,0x50,0x4c]))return _0x32360e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x7f9cd4=_0x163cb1(),!_0x7f9cd4)return _0x32360e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x7f9cd4[_0x32360e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3599a0=_0xb65b3e(_0x7f9cd4[_0x32360e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x7f9cd4[_0x32360e([0x6a,0x74,0x69])])),await _0x5e5729()?_0x4e44db()?_0x376386()?_0x32360e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2b238e()?(_0x7f9cd4[_0x32360e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32360e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc3ce03=_0x551a74(_0x32360e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x7f9cd4[_0x32360e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32360e([0x74,0x72,0x69,0x61,0x6c])&&(_0xc3ce03=_0x551a74(_0x32360e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5729dd()):_0x32360e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x32360e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x32360e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x32360e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x376386(){const _0x25f29b=[_0x32360e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x32360e([0x74,0x72,0x69,0x61,0x6c])][_0x32360e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7f9cd4[_0x32360e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2fe808/0x3e8:0xe10*_0x3a0544;return _0x7f9cd4[_0x32360e([0x65,0x78,0x70])]<_0x25f29b;}function _0x4e44db(){const _0x589ab8=_0x7f9cd4[_0x32360e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x589ab8)return!0x1;if(_0x589ab8[_0x32360e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32360e([0x2a])))return!0x0;if(_0x589ab8[_0x32360e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32360e([0x54,0x43])))return!0x0;if(_0x589ab8[_0x32360e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32360e([0x52,0x54,0x43]))){if(_0x28c369())return!0x0;if(_0x5ba489()||_0x7829c())return!0x0;}return!0x1;}function _0x2b238e(){const _0x5efa28=_0x7f9cd4[_0x32360e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5efa28||0x0==_0x5efa28[_0x32360e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3870ef}=new URL(window[_0x32360e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5efa28[_0x32360e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3870ef))return!0x0;const _0x369ce9=_0x3870ef[_0x32360e([0x73,0x70,0x6c,0x69,0x74])](_0x32360e([0x2e]));return _0x5efa28[_0x32360e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x26bca3=>_0x26bca3[_0x32360e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32360e([0x2a])))[_0x32360e([0x6d,0x61,0x70])](_0x578e1e=>_0x578e1e[_0x32360e([0x73,0x70,0x6c,0x69,0x74])](_0x32360e([0x2e])))[_0x32360e([0x73,0x6f,0x6d,0x65])](_0x442019=>_0x369ce9[_0x32360e([0x65,0x76,0x65,0x72,0x79])]((_0x21cb5c,_0x3827f2)=>_0x442019[_0x3827f2]===_0x21cb5c||_0x442019[_0x3827f2]===_0x32360e([0x2a])));}function _0x5729dd(){return _0xc3ce03&&_0x3599a0?new window[(_0x32360e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc510b9,_0x68c9e1)=>{_0xc3ce03[_0x32360e([0x74,0x68,0x65,0x6e])](_0xc510b9,_0x68c9e1),_0x3599a0[_0x32360e([0x74,0x68,0x65,0x6e])](_0x5912d4=>{_0x5912d4!=_0x32360e([0x56,0x61,0x6c,0x69,0x64])&&_0xc510b9(_0x5912d4);},_0x68c9e1);}):_0xc3ce03||_0x3599a0||_0x32360e([0x56,0x61,0x6c,0x69,0x64]);}}function _0xb65b3e(_0x448d64,_0x9a12f1){return new window[(_0x32360e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcc81d4=>{if(_0x5e21db())return _0xcc81d4(_0x32360e([0x56,0x61,0x6c,0x69,0x64]));_0x4a1581(),_0xfe2df8[_0x32360e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x32360e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x47273b=!0x1;const _0x58039e=_0x524fb1();function _0x39c1d4(_0x381431){return!!_0x381431&&(typeof _0x381431===_0x32360e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x381431===_0x32360e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x381431[_0x32360e([0x74,0x68,0x65,0x6e])]===_0x32360e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x381431[_0x32360e([0x63,0x61,0x74,0x63,0x68])]===_0x32360e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f3190(_0x1f6797){_0x574e71(_0x1f6797)[_0x32360e([0x74,0x68,0x65,0x6e])](_0x2f7db4=>{if(!_0x2f7db4||_0x2f7db4[_0x32360e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x32360e([0x6f,0x6b]))return _0x32360e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c43e3(_0x174560(_0x58039e+_0x9a12f1))!=_0x2f7db4[_0x32360e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x32360e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x32360e([0x56,0x61,0x6c,0x69,0x64]);})[_0x32360e([0x74,0x68,0x65,0x6e])](_0x3d80aa=>(_0x10f6a7(),_0x3d80aa),()=>{const _0x56d113=_0x42500e();return null==_0x56d113?(_0x10f6a7(),_0x32360e([0x56,0x61,0x6c,0x69,0x64])):_0x32360e(_0x2fe808-_0x56d113>(0x62397cc9^_0x260317)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x32360e([0x74,0x68,0x65,0x6e])](_0xcc81d4)[_0x32360e([0x63,0x61,0x74,0x63,0x68])](()=>{_0xcc81d4(_0x32360e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4289ef=0x46031649^_0x260317;function _0x10f6a7(){const _0x5423ab=_0x32360e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c43e3(_0x174560(_0x448d64)),_0x4cbf00=_0x2d333c(_0x2c43e3(window[_0x32360e([0x4d,0x61,0x74,0x68])][_0x32360e([0x63,0x65,0x69,0x6c])](_0x2fe808/_0x4289ef)));window[_0x32360e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32360e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5423ab,_0x4cbf00);}function _0x42500e(){const _0x1e7404=_0x32360e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c43e3(_0x174560(_0x448d64)),_0x362f67=window[_0x32360e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32360e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e7404);return _0x362f67?window[_0x32360e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d333c(_0x362f67),0x10)*_0x4289ef:null;}function _0x574e71(_0x1380ec){return new window[(_0x32360e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52beaf,_0x41c7ac)=>{_0x1380ec[_0x32360e([0x74,0x68,0x65,0x6e])](_0x52beaf,_0x41c7ac),window[_0x32360e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x41c7ac,0x46342c09^_0x260317);});}}_0xfe2df8[_0x32360e([0x6f,0x6e])](_0x32360e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x19776b,_0x4ab60a)=>{if(_0x4ab60a[0x0]!=_0x448d64)return _0xcc81d4(_0x32360e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ab60a[0x1]={..._0x4ab60a[0x1],[_0x32360e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58039e};},{[_0x32360e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32360e([0x68,0x69,0x67,0x68])}),_0xfe2df8[_0x32360e([0x6f,0x6e])](_0x32360e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f57f3=>{_0x39c1d4(_0x4f57f3[_0x32360e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x47273b=!0x0,_0x3f3190(_0x4f57f3[_0x32360e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x32360e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32360e([0x6c,0x6f,0x77])}),_0x297476[_0x32360e([0x74,0x68,0x65,0x6e])](()=>{_0x47273b||_0xcc81d4(_0x32360e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5e21db(){return _0xfe2df8[_0x32360e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32360e([0x76,0x69,0x65,0x77])][_0x32360e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x32360e([0x61,0x75,0x74,0x6f]);}function _0x4a1581(){_0xfe2df8[_0x32360e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32360e([0x76,0x69,0x65,0x77])][_0x32360e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x32360e([0x61,0x75,0x74,0x6f]);}}function _0x551a74(_0x4d585c){const _0x4293c8=[new window[(_0x32360e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25d2ca=>setTimeout(_0x25d2ca,0x463cc605^_0x260317)),_0x297476[_0x32360e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x32360e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x145632=>{let _0x5bc1a6=0x0;_0xfe2df8[_0x32360e([0x6d,0x6f,0x64,0x65,0x6c])][_0x32360e([0x6f,0x6e])](_0x32360e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2dcc89,_0x3f028f)=>{_0x3f028f[0x0][_0x32360e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5bc1a6++,_0x5bc1a6==(0x4635f931^_0x260317)&&(_0x145632(),_0x2dcc89[_0x32360e([0x6f,0x66,0x66])]());});}))];return window[_0x32360e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x32360e([0x72,0x61,0x63,0x65])](_0x4293c8)[_0x32360e([0x74,0x68,0x65,0x6e])](()=>_0x4d585c);}async function _0x17951d(){await _0x297476,_0xfe2df8[_0x32360e([0x6d,0x6f,0x64,0x65,0x6c])][_0x32360e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x356e41,_0xfe2df8[_0x32360e([0x6d,0x6f,0x64,0x65,0x6c])][_0x32360e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x356e41,_0xfe2df8[_0x32360e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x32360e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x28c369(){return _0x2f43d9(_0x32360e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5790ee(_0x32360e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x32360e([0x73,0x74,0x61,0x74,0x65])]==_0x32360e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5ba489(){return _0x2f43d9(_0x32360e([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 _0x7829c(){return _0x2f43d9(_0x32360e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3d8083(_0x2a3cc0){const _0x377300=_0x4c3105();_0xfe2df8[_0x377300]=_0x32360e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2a3cc0,_0x2a3cc0!=_0x32360e([0x56,0x61,0x6c,0x69,0x64])&&_0x17951d();}function _0x4c3105(){const _0xb261f5=window[_0x32360e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x32360e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x32360e([0x6e,0x6f,0x77])]())[_0x32360e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x32360e([0x2e]),'');let _0x24c1f8=_0x32360e([0x49]);for(let _0x122e9a=0x0;_0x122e9a<_0xb261f5[_0x32360e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x122e9a+=0x2){let _0x3b7b3e=window[_0x32360e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb261f5[_0x32360e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x122e9a,_0x122e9a+0x2));_0x3b7b3e>=_0x4ae7ac[_0x32360e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3b7b3e-=_0x4ae7ac[_0x32360e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x24c1f8+=_0x4ae7ac[_0x3b7b3e];}return _0x24c1f8;}function _0x163cb1(){const _0xd14761=_0x23cbe0[_0x32360e([0x73,0x70,0x6c,0x69,0x74])](_0x32360e([0x2e]));if(0x3!=_0xd14761[_0x32360e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x34bd11(_0xd14761[0x1]);function _0x34bd11(_0x1ed6c2){const _0x36e12b=_0x315e33(_0x1ed6c2);return _0x36e12b&&_0x2f381f()?_0x36e12b:null;function _0x2f381f(){const _0x190327=_0x36e12b[_0x32360e([0x6a,0x74,0x69])],_0x68440d=window[_0x32360e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x190327[_0x32360e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x190327[_0x32360e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x466f8c={..._0x36e12b,[_0x32360e([0x6a,0x74,0x69])]:_0x190327[_0x32360e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x190327[_0x32360e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x466f8c[_0x32360e([0x76,0x63])],_0x174560(_0x466f8c)==_0x68440d;}}}async function _0x5e5729(){let _0x58dae1=!0x0;try{const _0x40bb3f=_0x23cbe0[_0x32360e([0x73,0x70,0x6c,0x69,0x74])](_0x32360e([0x2e])),[_0x52ab96,_0x337bb9,_0x2d7f95]=_0x40bb3f;return _0x11efd4(_0x52ab96),await _0x4d2a0d(_0x52ab96,_0x337bb9,_0x2d7f95),_0x58dae1;}catch{return!0x1;}function _0x11efd4(_0x4c2238){const _0x5b1632=_0x315e33(_0x4c2238);_0x5b1632&&_0x5b1632[_0x32360e([0x61,0x6c,0x67])]==_0x32360e([0x45,0x53,0x32,0x35,0x36])||(_0x58dae1=!0x1);}async function _0x4d2a0d(_0x2ce0ea,_0x12d90f,_0x42a02c){const _0x25cb05=window[_0x32360e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x32360e([0x66,0x72,0x6f,0x6d])](_0x4c6a50(_0x42a02c),_0x50d29b=>_0x50d29b[_0x32360e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2143bb=new window[(_0x32360e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x32360e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2ce0ea+_0x32360e([0x2e])+_0x12d90f),_0x23d7da=window[_0x32360e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x32360e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x23d7da)return;const _0x3fbeee=await _0x23d7da[_0x32360e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x32360e([0x6a,0x77,0x6b]),_0x53f2fc,{[_0x32360e([0x6e,0x61,0x6d,0x65])]:_0x32360e([0x45,0x43,0x44,0x53,0x41]),[_0x32360e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x32360e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x32360e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x23d7da[_0x32360e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x32360e([0x6e,0x61,0x6d,0x65])]:_0x32360e([0x45,0x43,0x44,0x53,0x41]),[_0x32360e([0x68,0x61,0x73,0x68])]:{[_0x32360e([0x6e,0x61,0x6d,0x65])]:_0x32360e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3fbeee,_0x25cb05,_0x2143bb)||(_0x58dae1=!0x1);}}function _0x315e33(_0x42117a){return _0x42117a[_0x32360e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x32360e([0x65,0x79]))?JSON[_0x32360e([0x70,0x61,0x72,0x73,0x65])](_0x4c6a50(_0x42117a)):null;}function _0x4c6a50(_0x427125){return window[_0x32360e([0x61,0x74,0x6f,0x62])](_0x427125[_0x32360e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x32360e([0x2b]))[_0x32360e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x32360e([0x2f])));}function _0x174560(_0x5dea07){let _0x10211a=0x1505;function _0x5c9685(_0x3fd8cc){for(let _0x41853f=0x0;_0x41853f<_0x3fd8cc[_0x32360e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x41853f++){const _0x2d5b=_0x3fd8cc[_0x32360e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x41853f);_0x10211a=(_0x10211a<<0x5)+_0x10211a+_0x2d5b,_0x10211a&=_0x10211a;}}function _0x5bbc7e(_0x20ede8){Array[_0x32360e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x20ede8)?_0x20ede8[_0x32360e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5bbc7e):_0x20ede8&&typeof _0x20ede8==_0x32360e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x32360e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x20ede8)[_0x32360e([0x73,0x6f,0x72,0x74])]()[_0x32360e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40e65a,_0x51cfae])=>{_0x5c9685(_0x40e65a),_0x5bbc7e(_0x51cfae);}):_0x5c9685(window[_0x32360e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x20ede8));}return _0x5bbc7e(_0x5dea07),_0x10211a>>>0x0;}function _0x2c43e3(_0x4cfde9){return _0x4cfde9[_0x32360e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x32360e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x32360e([0x30]));}function _0x2d333c(_0x1119e8){return _0x1119e8[_0x32360e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x32360e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x32360e([0x6a,0x6f,0x69,0x6e])]('');}function _0x2f43d9(_0x18c4aa){return _0xfe2df8[_0x32360e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x32360e([0x68,0x61,0x73])](_0x18c4aa);}function _0x5790ee(_0x50d936){return _0xfe2df8[_0x32360e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x32360e([0x67,0x65,0x74])](_0x50d936);}function _0x356e41(){}function _0x32360e(_0x375ab0){return _0x375ab0['map'](_0x51a49d=>String['fromCharCode'](_0x51a49d))['join']('');}_0x3d8083(await _0x5bb33f());}(this);}set['adapter'](_0x57a3ed){if(this['_adapter'])throw new _0x445a81('track-changes-adapter-already-set',this);this['_adapter']=_0x57a3ed;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x13ac09=!0x1,toJSON:_0x17e19c=!0x1}={}){const _0x27b1e0=[];for(const _0x1a0629 of this['_suggestions']['values']())_0x13ac09&&!_0x1a0629['isInContent']||_0x27b1e0['push'](_0x1a0629);return _0x17e19c?_0x27b1e0['map'](_0x56030f=>_0x56030f['toJSON']()):_0x27b1e0;}['getSuggestion'](_0x5ac50f){const _0x3d9405=this['_suggestions']['get'](_0x5ac50f);if(!_0x3d9405)throw new _0x445a81('track-changes-suggestion-not-found',this);return _0x3d9405;}['hasSuggestion'](_0x21d47b){return this['_suggestions']['has'](_0x21d47b);}['addSuggestionData'](_0x43b49e){const {authorId:_0x4a84af,id:_0x4ca8cd,originalSuggestionId:_0x492d89,attributes:_0x387489}=_0x43b49e,[_0xbe46e7,_0x14b91]=_0x43b49e['type']['split'](':'),_0x32b83e=this['_suggestions']['get'](_0x4ca8cd)||this['_createSuggestion'](_0xbe46e7,_0x14b91,_0x4ca8cd,_0x4a84af,_0x387489,_0x492d89);if(this['_addThreadToSuggestion'](_0x32b83e),this['_checkSuggestionCorrectness'](_0x32b83e,_0xbe46e7,_0x14b91||null,_0x4a84af),_0x32b83e['createdAt']=_0x43b49e['createdAt'],_0x32b83e['_isDataLoaded']=!0x0,_0x387489&&_0x387489['@external']){const _0x352c1d=_0x387489['@external'],_0x5ef5aa=this['_getExternalAuthor'](_0x352c1d['authorName']);_0x32b83e['authoredAt']=_0x352c1d['createdAt'],_0x32b83e['author']=_0x5ef5aa,_0x32b83e['isExternal']=!0x0;}else _0x32b83e['authoredAt']=_0x43b49e['createdAt'];switch(_0x43b49e['data']&&(_0x32b83e['data']=_0x43b49e['data']),_0x43b49e['attributes']&&(_0x32b83e['attributes']=_0x43b49e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x32b83e['_saved']=!0x0),this['_suggestionState']['get'](_0x32b83e)){case'notReady':this['_suggestionState']['set'](_0x32b83e,'dataReady');break;case'markerReady':_0x32b83e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x32b83e])),this['_refreshSuggestionsChain'](new Set([_0x32b83e])),this['_suggestionState']['set'](_0x32b83e,'ready'),this['fire']('suggestionLoaded',_0x32b83e)):this['_suggestionState']['set'](_0x32b83e,'removed');}return _0x32b83e;}['acceptSuggestion'](_0x54d529){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x25b105 of _0x54d529['getAllAdjacentSuggestions']())_0x25b105['accept']();});});}['discardSuggestion'](_0x1ae35b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2adc07 of _0x1ae35b['getAllAdjacentSuggestions']())_0x2adc07['discard']();});});}['enableCommand'](_0x3ed321,_0x160328){const _0x2bae7e=this['editor']['commands']['get'](_0x3ed321);if(!_0x2bae7e)throw new _0x445a81('track-changes-command-not-found',this,{'commandName':_0x3ed321});if(this['_enabledCommands']['has'](_0x2bae7e))throw new _0x445a81('track-changes-enable-command-twice',this,{'commandName':_0x3ed321});this['_enabledCommands']['add'](_0x2bae7e),_0x160328&&_0x2bae7e['on']('execute',(_0x37c6fe,_0x595755)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x595755['length']>0x0&&_0x595755[_0x595755['length']-0x1]&&_0x595755[_0x595755['length']-0x1]['forceDefaultExecution']?_0x595755['pop']():(_0x37c6fe['return']=_0x160328((..._0x2d604b)=>_0x2bae7e['execute'](..._0x2d604b,{'forceDefaultExecution':!0x0}),..._0x595755),_0x37c6fe['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x39042c){let _0x3545ed,_0x10e38f;const _0x50dea6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3545ed=_0x39042c();}catch(_0x5190fe){_0x10e38f=_0x5190fe;}return _0x50dea6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x10e38f&&_0x445a81['rethrowUnexpectedError'](_0x10e38f,this),_0x3545ed;}['markInsertion'](_0x120478,_0x572f76=null,_0x36b01a={}){if(_0x120478['isCollapsed'])return null;const _0x4bea46=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x36b01a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x8a7e97,meta:_0x11b409}of this['_findSuggestions'](_0x120478,'insertion'))if(_0x11b409['isOwn']){if(!_0x11b409['isNextTo']){if(_0x11b409['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x8a7e97,_0x36b01a))continue;return _0x8a7e97;}if(Xt(_0x8a7e97,_0x36b01a))return _0x8a7e97;this['_breakSuggestionMarker'](_0x8a7e97,_0x120478['start'],_0x120478['end']);break;}if(_0x572f76==_0x8a7e97['subType']&&Xt(_0x8a7e97,_0x36b01a)){const _0x56f720=_0x8a7e97['getFirstRange']();return _0x56f720['start']['isEqual'](_0x120478['end'])?this['_setSuggestionRange'](_0x8a7e97,this['_model']['createRange'](_0x120478['start'],_0x56f720['end'])):this['_setSuggestionRange'](_0x8a7e97,this['_model']['createRange'](_0x56f720['start'],_0x120478['end'])),_0x8a7e97;}}const _0x22f4b6=_0x524fb1(),_0x32930b=_0x4bea46['id'],_0x129ee0=_0x572f76?'insertion:'+_0x572f76:'insertion',_0xe713a=this['_setSuggestionData']({'id':_0x22f4b6,'type':_0x129ee0,'createdAt':new Date(),'authorId':_0x32930b,'attributes':_0x36b01a});return this['_addSuggestionMarker'](_0x129ee0,_0x22f4b6,_0x32930b,_0x120478),_0xe713a;}['markMultiRangeInsertion'](_0x1840ad,_0x4cb90e='multi',_0x44cc99={}){const _0xc90fd6=this['editor']['plugins']['get']('Users')['me'],_0x32f9d3=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4cb90e,'join');this['_trackingSessionId']&&(_0x44cc99['trackingSessionId']=this['_trackingSessionId']);for(const _0x55392b of this['getSuggestions']())if(_0x55392b['author']['id']==_0xc90fd6['id']&&'insertion'==_0x55392b['type']&&_0x55392b['subType']==_0x4cb90e&&Xt(_0x55392b,_0x44cc99)&&(_0x32f9d3(_0x55392b['getRanges'](),_0x1840ad)||_0x32f9d3(_0x1840ad,_0x55392b['getRanges']()))){for(const _0x5cf5a7 of _0x1840ad)_0x55392b['addRange'](_0x5cf5a7);return _0x55392b;}for(const {suggestion:_0x3db680,meta:_0x20f775}of this['_findSuggestions'](_0x1840ad,'insertion')){if(!_0x20f775['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x20f775['containsRangeInObject'])continue;if(!Xt(_0x3db680,_0x44cc99))continue;let _0xa6c49a=!0x0;for(const _0x4c696c of _0x3db680['getRanges']())for(const _0x5bb13c of _0x1840ad)if(!_0x4c696c['containsRange'](_0x5bb13c)){_0xa6c49a=!0x1;break;}if(_0xa6c49a)return _0x3db680;}const _0x389afd=_0x524fb1(),_0x1fa08f=_0xc90fd6['id'],_0xc0810='insertion:'+_0x4cb90e,_0x2ef4c7=this['_setSuggestionData']({'id':_0x389afd,'type':_0xc0810,'createdAt':new Date(),'authorId':_0x1fa08f,'attributes':_0x44cc99});for(const _0x138185 of _0x1840ad)this['_addSuggestionMarker'](_0xc0810,_0x389afd,_0x1fa08f,_0x138185,o['getMultiRangeId']());return _0x2ef4c7;}['markInlineFormat'](_0x47805c,_0x2e379d,_0x595f06=null,_0x5294f7={}){if(_0x595f06=_0x595f06||Kt(_0x2e379d),_0x47805c['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5294f7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xfc5f5c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x595f06,'accept');return this['forceDefaultExecution'](()=>_0xfc5f5c([_0x47805c],_0x2e379d,_0x5294f7)),null;}const _0x2165e1=this['editor']['plugins']['get']('Users')['me'],_0x3a8b0f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x35db96,meta:_0xe9b420}of this['_findSuggestions'](_0x47805c,'insertion'))_0xe9b420['isOwn']&&!_0xe9b420['isInsideObject']&&_0x3a8b0f['push'](..._0x35db96['getRanges']());}const _0x5e7c13=function(_0x4b3c26,_0x51dbe8){const _0x309d38=[];for(const _0x4a44c6 of _0x51dbe8){const _0x309ff0=_0x4b3c26['getIntersection'](_0x4a44c6);_0x309ff0&&_0x309d38['push'](_0x309ff0);}return _0x309d38;}(_0x47805c,_0x3a8b0f),_0x146746=function(_0x4b2169,_0x1673c2){const _0x15e98e=[_0x4b2169];for(const _0x100d4e of _0x1673c2){let _0x297932=0x0;for(;_0x297932<_0x15e98e['length'];){const _0x5db5b7=_0x15e98e[_0x297932]['getDifference'](_0x100d4e);_0x15e98e['splice'](_0x297932,0x1,..._0x5db5b7),_0x297932+=_0x5db5b7['length'];}}return _0x15e98e;}(_0x47805c,_0x3a8b0f);_0x5e7c13['length']&&this['_model']['change'](()=>{for(const _0xb4db02 of _0x5e7c13){const _0x435897=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x595f06,'accept');this['forceDefaultExecution'](()=>_0x435897([_0xb4db02],_0x2e379d,_0x5294f7));}});for(const _0x1ea2f8 of _0x146746){let _0x18cff6=null,_0x272704=_0x1ea2f8['start'],_0x384a15=_0x1ea2f8['end'];for(const {suggestion:_0x55ce4a,meta:_0x2040a8}of this['_findSuggestions'](_0x1ea2f8,'formatInline')){if(!_0x2040a8['isOwn'])continue;if(_0x55ce4a['subType']!=_0x595f06)continue;if(!Xt(_0x55ce4a,_0x5294f7))continue;const _0x558b96=_0x55ce4a['getFirstRange']();if(_0x558b96['containsRange'](_0x1ea2f8,!0x0))return null;_0x272704=_0x272704['isBefore'](_0x558b96['start'])?_0x272704:_0x558b96['start'],_0x384a15=_0x384a15['isAfter'](_0x558b96['end'])?_0x384a15:_0x558b96['end'],_0x18cff6?_0x558b96['start']['isBefore'](_0x18cff6['getFirstRange']()['start'])?(_0x18cff6['removeMarkers'](),_0x18cff6=_0x55ce4a):_0x55ce4a['removeMarkers']():_0x18cff6=_0x55ce4a;}const _0x19acd8=this['_model']['createRange'](_0x272704,_0x384a15);if(_0x18cff6)this['_setSuggestionRange'](_0x18cff6,_0x19acd8);else{const _0x557f2e=_0x524fb1(),_0x58eda7=_0x2165e1['id'];this['_setSuggestionData']({'id':_0x557f2e,'type':'formatInline:'+_0x595f06,'data':_0x2e379d,'createdAt':new Date(),'authorId':_0x58eda7,'attributes':_0x5294f7}),this['_addSuggestionMarker']('formatInline:'+_0x595f06,_0x557f2e,_0x58eda7,_0x19acd8);}}return null;}['markBlockFormat'](_0x46933c,_0x34beac,_0x32127a=[],_0x3fcc59=null,_0x281db6={}){_0x34beac['formatGroupId']||(_0x34beac['formatGroupId']=_0x34beac['commandName']),_0x34beac['multipleBlocks']=_0x46933c['is']('range'),_0x3fcc59=_0x3fcc59||Kt(_0x34beac);const _0x269914=_0x32127a['map'](_0x5b36ed=>zt(_0x5b36ed,this['_model'])),_0x20ad12=_0x46933c['is']('range')?_0x46933c:zt(_0x46933c,this['_model']);if(this['_trackingSessionId']&&(_0x281db6['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x405cf8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fcc59,'accept');return this['forceDefaultExecution'](()=>_0x405cf8([_0x20ad12],_0x34beac,_0x281db6)),null;}_0x269914['push'](_0x20ad12);let _0x448baf=!0x0;for(const _0x4818e0 of _0x269914)if(!this['_rangeIsInLocalUserInsertion'](_0x4818e0)){_0x448baf=!0x1;break;}if(_0x448baf&&'always'!==this['_trackFormatChanges']){const _0x2bac17=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fcc59,'accept');return this['forceDefaultExecution'](()=>_0x2bac17([_0x20ad12],_0x34beac,_0x281db6)),null;}let _0x357589=null,_0x485801=_0x20ad12['start'],_0x23bae6=_0x20ad12['end'];for(const {suggestion:_0x457c61,meta:_0x1b5a30}of this['_findSuggestions'](_0x20ad12,'formatBlock')){if(!_0x1b5a30['isOwn'])continue;if(_0x1b5a30['isNextTo']||_0x1b5a30['containsRangeInObject']||_0x1b5a30['isInsideObject'])continue;if(_0x457c61['data']['formatGroupId']!=_0x34beac['formatGroupId'])continue;if(!Xt(_0x457c61,_0x281db6))continue;const _0x57fefe=_0x457c61['getFirstRange']();if(_0x457c61['subType']==_0x3fcc59){if(_0x57fefe['containsRange'](_0x20ad12,!0x0))return null;_0x485801=_0x485801['isBefore'](_0x57fefe['start'])?_0x485801:_0x57fefe['start'],_0x23bae6=_0x23bae6['isAfter'](_0x57fefe['end'])?_0x23bae6:_0x57fefe['end'],_0x357589?_0x57fefe['start']['isBefore'](_0x357589['getFirstRange']()['start'])?(_0x357589['removeMarkers'](),_0x357589=_0x457c61):_0x457c61['removeMarkers']():_0x357589=_0x457c61;}else{const _0x5bb219=_0x20ad12['getIntersection'](_0x57fefe);this['_cutOutSuggestionMarker'](_0x457c61,_0x5bb219);}}const _0x4a8670=this['editor']['plugins']['get']('Users')['me'],_0x2dd28b=_0x524fb1(),_0x3cf85e=_0x4a8670['id'];if(_0x357589)return this['_setSuggestionRange'](_0x357589,this['_model']['createRange'](_0x485801,_0x23bae6)),_0x357589;{const _0x5e6bf1=this['_setSuggestionData']({'id':_0x2dd28b,'type':'formatBlock:'+_0x3fcc59,'data':_0x34beac,'createdAt':new Date(),'authorId':_0x3cf85e,'attributes':_0x281db6});return this['_addSuggestionMarker']('formatBlock:'+_0x3fcc59,_0x2dd28b,_0x3cf85e,this['_model']['createRange'](_0x485801,_0x23bae6)),_0x5e6bf1;}}['markMultiRangeBlockFormat'](_0xdca5ee,_0x5a05df,_0x21d357=[],_0x33e255=null,_0x350dec={}){_0x5a05df['formatGroupId']||(_0x5a05df['formatGroupId']=_0x5a05df['commandName']);const _0x124725=_0xdca5ee[0x0];_0x5a05df['multipleBlocks']=_0x124725['is']('range'),_0x33e255=_0x33e255||Kt(_0x5a05df);const _0x34b654=_0x21d357['map'](_0x11da0d=>zt(_0x11da0d,this['_model'])),_0x5246c8=_0x124725['is']('range')?_0xdca5ee:_0xdca5ee['map'](_0x54862b=>zt(_0x54862b,this['_model']));if(this['_trackingSessionId']&&(_0x350dec['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2adfad=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33e255,'accept');return this['forceDefaultExecution'](()=>_0x2adfad(_0x5246c8,_0x5a05df,_0x350dec)),null;}_0x34b654['push'](..._0x5246c8);let _0xfcba8=!0x0;for(const _0x503875 of _0x34b654)if(!this['_rangeIsInLocalUserInsertion'](_0x503875)){_0xfcba8=!0x1;break;}if(_0xfcba8&&'always'!==this['_trackFormatChanges']){const _0x251c62=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33e255,'accept');return this['forceDefaultExecution'](()=>_0x251c62(_0x5246c8,_0x5a05df,_0x350dec)),null;}const _0x3427d5=this['editor']['plugins']['get']('Users')['me'];for(const _0x1b2b05 of this['getSuggestions']()){if(_0x1b2b05['author']['id']!=_0x3427d5['id'])continue;if('formatBlock'!=_0x1b2b05['type']||_0x1b2b05['data']['formatGroupId']!=_0x5a05df['formatGroupId'])continue;if(!Xt(_0x1b2b05,_0x350dec))continue;const _0x6ec4b=_0x1b2b05['subType']==_0x33e255;for(let _0xb6746f=0x0;_0xb6746f<_0x5246c8['length'];_0xb6746f++){const _0x4f6794=_0x5246c8[_0xb6746f];for(const _0x4d83af of _0x1b2b05['getMarkers']()){const _0x20c881=_0x4d83af['getRange']();if(_0x4f6794['isEqual'](_0x20c881)){_0x6ec4b?(_0x5246c8['splice'](_0xb6746f,0x1),_0xb6746f--):_0x1b2b05['removeMarker'](_0x4d83af['name']);break;}}}}if(0x0==_0x5246c8['length'])return null;const _0x47f37a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33e255,'join');for(const _0x37b3c7 of this['getSuggestions']())if(_0x37b3c7['author']['id']==_0x3427d5['id']&&'formatBlock'==_0x37b3c7['type']&&_0x37b3c7['data']['formatGroupId']==_0x5a05df['formatGroupId']&&_0x37b3c7['subType']==_0x33e255&&Xt(_0x37b3c7,_0x350dec)&&(_0x47f37a(_0x37b3c7['getRanges'](),_0x5246c8)||_0x47f37a(_0x5246c8,_0x37b3c7['getRanges']()))){for(const _0x10527d of _0x5246c8)_0x37b3c7['addRange'](_0x10527d);return _0x37b3c7;}const _0x5ccf70=_0x524fb1(),_0x3da651=_0x3427d5['id'],_0x565ab6='formatBlock:'+_0x33e255,_0x46276f=this['_setSuggestionData']({'id':_0x5ccf70,'type':_0x565ab6,'data':_0x5a05df,'createdAt':new Date(),'authorId':_0x3da651,'attributes':_0x350dec});for(const _0x5f2df8 of _0x5246c8)this['_addSuggestionMarker'](_0x565ab6,_0x5ccf70,_0x3da651,_0x5f2df8,o['getMultiRangeId']());return _0x46276f;}['markDeletion'](_0x2fe810,_0x422dcf=null,_0x279b86={}){if(_0x2fe810['isCollapsed'])return null;const _0x54c555=this['editor']['plugins']['get']('Users')['me'],_0x2a6860=new _0x34ca76(_0x2fe810['start'],_0x2fe810['end']);this['_trackingSessionId']&&(_0x279b86['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x93da5a,meta:_0x182fd4}of this['_findSuggestions'](_0x2a6860,'insertion'))if(_0x182fd4['isOwn']&&!_0x182fd4['isNextTo']){if(_0x93da5a['isMultiRange']){const _0x389da1=_0x93da5a['getRanges']()['filter'](_0x47fd3e=>'$graveyard'!=_0x47fd3e['root']['rootName']);_0x389da1['every'](_0x18c854=>_0x2a6860['containsRange'](_0x18c854,!0x0))&&_0x93da5a['discard']();if(_0x389da1['some'](_0x4be7ad=>_0x4be7ad['containsRange'](_0x2a6860,!0x0))){const _0x210afe=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x422dcf,'accept');return this['forceDefaultExecution'](()=>_0x210afe([_0x2a6860],null,_0x279b86)),null;}}else{const _0x58f6d0=_0x2a6860['getIntersection'](_0x93da5a['getFirstRange']());null!==_0x58f6d0&&_0x93da5a['_onDiscard']([_0x58f6d0],null,_0x279b86);}}if(_0x2a6860['detach'](),_0x2a6860['isCollapsed']||'$graveyard'==_0x2a6860['root']['rootName'])return null;let _0x4c486b=null,_0x668f28=_0x2a6860['start'],_0xc6b70b=_0x2a6860['end'];const _0x3271a3=this['_findSuggestions'](_0x2a6860,'deletion');for(const {suggestion:_0x213906,meta:_0x2ebb9e}of _0x3271a3){const _0x2eff6f=this['_model']['createRange'](_0x668f28,_0xc6b70b);if(_0x2ebb9e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2ebb9e['containsRangeInObject']&&!_0x2ebb9e['isInsideObject'])){if(_0x213906['isMultiRange']){if(!Xt(_0x213906,_0x279b86))continue;let _0x59c154=!0x0;for(const _0x9cf7b5 of _0x213906['getRanges']()){if(_0x9cf7b5['containsRange'](_0x2eff6f,!0x0))return _0x213906;_0x2eff6f['containsRange'](_0x9cf7b5)||(_0x59c154=!0x1);}_0x59c154&&_0x213906['discard']();}else{const _0x7f4a61=_0x213906['getFirstRange']();if(_0x7f4a61['containsRange'](_0x2eff6f,!0x0))return _0x213906;if(!Xt(_0x213906,_0x279b86)){_0x2eff6f['containsRange'](_0x7f4a61)?_0x213906['removeMarkers']():_0x7f4a61['containsPosition'](_0x668f28)?_0x668f28=_0x7f4a61['end']:_0x7f4a61['containsPosition'](_0xc6b70b)&&(_0xc6b70b=_0x7f4a61['start']);continue;}_0x668f28=_0x668f28['isBefore'](_0x7f4a61['start'])?_0x668f28:_0x7f4a61['start'],_0xc6b70b=_0xc6b70b['isAfter'](_0x7f4a61['end'])?_0xc6b70b:_0x7f4a61['end'],_0x279b86=Object['assign']({},_0x213906['attributes']),_0x4c486b?_0x7f4a61['start']['isBefore'](_0x4c486b['getFirstRange']()['start'])?(_0x4c486b['removeMarkers'](),_0x4c486b=_0x213906):_0x213906['removeMarkers']():_0x4c486b=_0x213906;}}}if(_0x4c486b)return this['_setSuggestionRange'](_0x4c486b,this['_model']['createRange'](_0x668f28,_0xc6b70b)),_0x4c486b;{const _0x8e66a3=_0x524fb1(),_0x56a73e=this['_model']['createRange'](_0x668f28,_0xc6b70b),_0x52528f=_0x54c555['id'],_0x50e309=_0x422dcf?'deletion:'+_0x422dcf:'deletion',_0x4e166a=this['_setSuggestionData']({'id':_0x8e66a3,'type':_0x50e309,'createdAt':new Date(),'authorId':_0x52528f,'attributes':_0x279b86});return this['_addSuggestionMarker'](_0x50e309,_0x8e66a3,_0x52528f,_0x56a73e),_0x4e166a;}}['markMultiRangeDeletion'](_0x225b16,_0x33572d='multi',_0x2bf531={}){const _0x90e718=this['editor']['plugins']['get']('Users')['me'],_0x3c916a=_0x225b16['map'](_0x377618=>new _0x34ca76(_0x377618['start'],_0x377618['end'])),_0x532d33=new Set();this['_trackingSessionId']&&(_0x2bf531['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x166b5a,meta:_0x558160}of this['_findSuggestions'](_0x3c916a,'insertion'))_0x558160['isOwn']&&!_0x558160['isNextTo']&&_0x532d33['add'](_0x166b5a);for(const _0xe0284d of _0x532d33)if(_0xe0284d['isMultiRange']){const _0x5df5cc=_0xe0284d['getRanges']();(!_0xe0284d['attributes']||!_0xe0284d['attributes']['skipNestingCheck'])&&(_0x5df5cc['every'](_0xba4e0f=>_0x3c916a['some'](_0x127d97=>_0x127d97['containsRange'](_0xba4e0f,!0x0)))&&_0xe0284d['discard']());if(_0x3c916a['every'](_0x5c4328=>_0x5df5cc['some'](_0x9fbeac=>_0x9fbeac['containsRange'](_0x5c4328,!0x0)))){const _0x99e8db=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x33572d,'accept');return this['forceDefaultExecution'](()=>_0x99e8db(_0x225b16,null,_0x2bf531)),null;}}else{const _0x30c095=_0xe0284d['getFirstRange']();_0x3c916a['some'](_0xa9ad14=>_0xa9ad14['containsRange'](_0x30c095,!0x0))&&_0xe0284d['discard']();if(_0x3c916a['every'](_0x1c3aa7=>_0x30c095['containsRange'](_0x1c3aa7,!0x0))){const _0x3b0fb6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x33572d,'accept');return this['forceDefaultExecution'](()=>_0x3b0fb6(_0x3c916a,null,_0x2bf531)),null;}}const _0x1ea442=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x33572d,'join');let _0x4fba41=null;for(const _0x5b0901 of this['getSuggestions']())if(_0x5b0901['author']['id']==_0x90e718['id']&&_0x5b0901['isInContent']&&'deletion'==_0x5b0901['type']&&_0x5b0901['subType']==_0x33572d&&Xt(_0x5b0901,_0x2bf531)&&(_0x1ea442(_0x5b0901['getRanges'](),_0x3c916a)||_0x1ea442(_0x3c916a,_0x5b0901['getRanges']()))){if(_0x4fba41){if(_0x5b0901['commentThread']&&_0x5b0901['commentThread']['length'])continue;for(const _0x26a1a1 of _0x5b0901['getRanges']())_0x4fba41['isIntersectingWithRange'](_0x26a1a1)||_0x4fba41['addRange'](_0x26a1a1);_0x5b0901['removeMarkers']();}else{_0x4fba41=_0x5b0901;for(const _0x3c5994 of _0x3c916a)_0x5b0901['isIntersectingWithRange'](_0x3c5994)||_0x5b0901['addRange'](_0x3c5994);}}if(_0x4fba41)return _0x4fba41;_0x532d33['clear']();for(const {suggestion:_0x206d07,meta:_0x507e81}of this['_findSuggestions'](_0x3c916a,'deletion'))_0x507e81['isOwn']&&(this['_mergeNestedSuggestions']||!_0x507e81['containsRangeInObject']&&!_0x507e81['isInsideObject'])&&Xt(_0x206d07,_0x2bf531)&&_0x532d33['add'](_0x206d07);for(const _0x13fac2 of _0x532d33){const _0x11a141=_0x13fac2['getRanges']();if(!_0x2bf531||!_0x2bf531['skipNestingCheck']){if(_0x3c916a['every'](_0x4683c8=>_0x11a141['some'](_0x34d51c=>_0x34d51c['containsRange'](_0x4683c8,!0x0))))return _0x13fac2;}(!_0x13fac2['attributes']||!_0x13fac2['attributes']['skipNestingCheck'])&&(_0x11a141['every'](_0x32a272=>_0x3c916a['some'](_0x1782d9=>_0x1782d9['containsRange'](_0x32a272,!0x0)))&&_0x13fac2['discard']());}const _0x19bbf6=_0x524fb1(),_0x501dfd=_0x90e718['id'],_0x9bc4d7='deletion:'+_0x33572d,_0x57ed2b=this['_setSuggestionData']({'id':_0x19bbf6,'type':_0x9bc4d7,'createdAt':new Date(),'authorId':_0x501dfd,'attributes':_0x2bf531});for(const _0x1567ad of _0x3c916a)_0x1567ad['detach'](),_0x1567ad['isCollapsed']||'$graveyard'==_0x1567ad['root']['rootName']||this['_addSuggestionMarker'](_0x9bc4d7,_0x19bbf6,_0x501dfd,_0x1567ad,o['getMultiRangeId']());return _0x57ed2b;}['markAttributeChange'](_0x4adf02,_0x13113a,_0xd0e9d3,_0x3998a9,_0x5c29c6){if(_0x4adf02['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3fca96=this['editor']['plugins']['get']('Users')['me']['id'],_0xa6af58=Array['from'](this['_suggestions']['values']())['filter'](_0x549322=>'attribute'==_0x549322['type']&&_0x549322['data']['key']==_0x13113a&&_0x549322['isIntersectingWithRange'](_0x4adf02));if(this['_trackingSessionId']&&(_0x5c29c6['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4e203c=this['_findSuggestions'](_0x4adf02,'insertion')['filter'](({meta:_0x1386ab})=>_0x1386ab['isOwn']&&!_0x1386ab['isInsideObject']&&!_0x1386ab['isNextTo'])['map'](({suggestion:_0x10b156})=>_0x10b156);_0xa6af58['unshift'](..._0x4e203c);}const _0x4cef1c=new Map([[_0x4adf02,_0xd0e9d3]]);for(const _0x4e3ac2 of _0xa6af58){const _0x41ef4a='attribute'==_0x4e3ac2['type']?_0x4e3ac2['data']['oldValue']:void 0x0,_0x2c8d6d=_0x4e3ac2['getFirstRange'](),_0x63b130=Array['from'](_0x4cef1c['keys']())['find'](_0x21e439=>_0x21e439['isIntersecting'](_0x2c8d6d));if(!_0x63b130)continue;const _0x4886d5=_0x63b130['getDifference'](_0x2c8d6d);this['_isBlockAttribute'](_0x13113a)&&'insertion'==_0x4e3ac2['type']&&0x0!=_0x4886d5['length']||(_0x4cef1c['delete'](_0x63b130),_0x4886d5['forEach'](_0x15ed4d=>{_0x4cef1c['set'](_0x15ed4d,_0xd0e9d3);}),'insertion'!=_0x4e3ac2['type']&&_0x41ef4a!=_0x3998a9&&_0x4cef1c['set'](_0x63b130['getIntersection'](_0x2c8d6d),_0x41ef4a));}const _0x4b7c4b=[];for(const [_0x54746c,_0x263caa]of _0x4cef1c){const _0x19bbb7=_0x524fb1(),_0x46bfe4={'key':_0x13113a,'oldValue':_0x263caa,'newValue':_0x3998a9};_0x13113a['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':_0x13113a});const _0x45fbdb=('attribute:'+(_0x13113a+'|'+Kt({'newValue':_0x3998a9})))['substring'](0x0,0x3c),_0x48a1d8=this['_setSuggestionData']({'id':_0x19bbb7,'type':_0x45fbdb,'data':_0x46bfe4,'createdAt':new Date(),'authorId':_0x3fca96,'attributes':_0x5c29c6});_0x4b7c4b['push'](_0x48a1d8),this['_addSuggestionMarker'](_0x45fbdb,_0x19bbb7,_0x3fca96,_0x54746c);}return _0x4b7c4b;}['enableDefaultAttributesIntegration'](_0x1b5b2f){this['enableCommand'](_0x1b5b2f,(_0x3dd647,..._0x593937)=>{this['_recordAttributeChanges'](()=>{_0x3dd647(..._0x593937);});});}['registerBlockAttribute'](_0x365a61){this['_blockAttributeKeys']['add'](_0x365a61);}['registerInlineAttribute'](_0xb9c28c){this['_inlineAttributeKeys']['add'](_0xb9c28c);}['startTrackingSession'](_0x41fe46){return this['_trackingSessionId']=void 0x0!==_0x41fe46?_0x41fe46:_0x524fb1(),this['_trackingSessionId'];}['_getAttributeKey'](_0xc54e4e){return'attribute'==_0xc54e4e['type']?_0xc54e4e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xd05119,_0x16e14b){const _0x103ee4=_0xd05119['getFirstMarker']();this['_model']['change'](_0x51fc30=>{_0x51fc30['updateMarker'](_0x103ee4,{'range':_0x16e14b});});}['_addThreadToSuggestion'](_0x3cf764){const _0x2f9467=_0x3cf764['id'],_0x14fee0=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2f9467)||this['_commentsRepository']['addCommentThread']({'channelId':_0x14fee0,'threadId':_0x2f9467,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x44f452=this['_commentsRepository']['getCommentThread'](_0x2f9467);_0x44f452['unbind']('isRemovable'),_0x44f452['isRemovable']=!0x1,_0x3cf764['commentThread']=_0x44f452;}['_checkSuggestionCorrectness'](_0x425ec6,_0x3b5014,_0x647c6b,_0x116d2d){if(_0x425ec6['type']!=_0x3b5014||_0x425ec6['subType']!=_0x647c6b||_0x425ec6['creator']['id']!=_0x116d2d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x445a81('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4451c9,_0x386ff1){const _0x461043=_0x4451c9['getFirstRange']();if(_0x386ff1['isEqual'](_0x461043))_0x4451c9['removeMarkers']();else{if(_0x461043['containsRange'](_0x386ff1)){const _0x290cab=this['_model']['createPositionAt'](_0x386ff1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4451c9,this['_model']['createRange'](_0x461043['start'],_0x290cab));const _0x323286=_0x524fb1(),_0x5f0a19=_0x4451c9['creator']['id'],_0x236219=_0x4451c9['type']+':'+_0x4451c9['subType'];this['_setSuggestionData']({'id':_0x323286,'type':_0x236219,'createdAt':new Date(),'authorId':_0x5f0a19,'data':_0x4451c9['data'],'attributes':_0x4451c9['attributes']});const _0xad0092=this['_model']['createPositionAt'](_0x386ff1['end']['parent'],'after'),_0x88365d=this['_model']['createRange'](_0xad0092,_0x461043['end']);this['_addSuggestionMarker'](_0x236219,_0x323286,_0x5f0a19,_0x88365d);}else{if(_0x461043['containsPosition'](_0x386ff1['start'])){const _0x163a64=this['_model']['createPositionAt'](_0x386ff1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4451c9,this['_model']['createRange'](_0x461043['start'],_0x163a64));}else{const _0x45b8a1=this['_model']['createPositionAt'](_0x386ff1['end']['parent'],'after');this['_setSuggestionRange'](_0x4451c9,this['_model']['createRange'](_0x45b8a1,_0x461043['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x15b72f){for(const {suggestion:_0x3d75e2,meta:_0xcb0476}of this['_findSuggestions'](_0x15b72f,'insertion')){if(!_0xcb0476['isOwn'])continue;const _0x428d08=_0x3d75e2['getRanges']();for(const _0x14c472 of _0x428d08)if(!_0x15b72f['getDifference'](_0x14c472)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x134a9f){const _0x2a4ab1=this['editor']['plugins']['get']('Users')['getUser'](_0x134a9f);if(!_0x2a4ab1)throw new _0x445a81('track-changes-user-not-found',this);return _0x2a4ab1;}['_getExternalAuthor'](_0x9022bc){const _0x3807dc=this['editor']['plugins']['get']('Users'),_0x799188=_0x419ded('external:'+_0x9022bc),_0x29ecf9=_0x3807dc['getUser'](_0x799188);return _0x29ecf9||_0x3807dc['addUser']({'id':_0x799188,'name':_0x9022bc});}['_createSuggestion'](_0x4127b3,_0x5263e9,_0x5b1d32,_0x110032,_0x25d05f,_0x326fe7){const _0x8482cc=this['_getAuthorFromId'](_0x110032),_0x3ead7e=this['_suggestionFactory']['buildSuggestion'](_0x4127b3,_0x5263e9,_0x5b1d32,_0x8482cc,_0x25d05f,_0x642f4f=>{this['_updateSuggestionData'](_0x5b1d32,{'attributes':_0x642f4f});const _0xfe47ba=this['getSuggestion'](_0x5b1d32);this['_joinWithAdjacentSuggestions'](new Set([_0xfe47ba])),this['_refreshSuggestionsChain'](new Set([_0xfe47ba]));},_0x326fe7);return this['listenTo'](_0x3ead7e,'accept',()=>{this['_updateSuggestionData'](_0x5b1d32,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3ead7e,'discard',()=>{this['_updateSuggestionData'](_0x5b1d32,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5b1d32,_0x3ead7e),this['_suggestionState']['set'](_0x3ead7e,'notReady'),_0x3ead7e;}['_splitMarkerName'](_0x284518){const _0x2c5682=_0x284518['split'](':');return{'group':_0x2c5682[0x0],'type':_0x2c5682[0x1],'subType':_0x2c5682['length']>=0x5?_0x2c5682[0x2]:null,'id':_0x2c5682['length']<0x5?_0x2c5682[0x2]:_0x2c5682[0x3],'authorId':_0x2c5682['length']<0x5?_0x2c5682[0x3]:_0x2c5682[0x4],'markerCount':0x6==_0x2c5682['length']?_0x2c5682[0x5]:null};}['_breakSuggestionMarker'](_0x120967,_0x8d89bc,_0x5ef2e9){const _0x2e4cef=_0x120967['getFirstRange'](),_0x1cb67e=_0x2e4cef['start'],_0x314daa=_0x2e4cef['end'];this['_setSuggestionRange'](_0x120967,this['_model']['createRange'](_0x1cb67e,_0x8d89bc));const _0xa3cb44=_0x524fb1(),_0xc81026=_0x120967['creator']['id'],_0x36db49=_0x120967['type']+(_0x120967['subType']?':'+_0x120967['subType']:'');this['_setSuggestionData']({'id':_0xa3cb44,'type':_0x36db49,'createdAt':new Date(),'authorId':_0xc81026,'originalSuggestionId':_0x120967['_originalSuggestionId']||_0x120967['id'],'attributes':_0x120967['attributes'],'data':_0x120967['data']});const _0x2b22ef=this['_getAttributeKey'](_0x120967);('formatBlock'==_0x120967['type']||_0x2b22ef&&this['_isBlockAttribute'](_0x2b22ef))&&(_0x5ef2e9=this['_model']['createPositionBefore'](_0x5ef2e9['parent'])),this['_addSuggestionMarker'](_0x36db49,_0xa3cb44,_0xc81026,this['_model']['createRange'](_0x5ef2e9,_0x314daa));}['_findSuggestions'](_0x374ba6,_0x2f512d=null){const _0x54ccaf=[],_0x7a03b4=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x374ba6)||(_0x374ba6=[_0x374ba6]);for(const _0x44ff29 of this['getSuggestions']()){if(!_0x44ff29['isInContent'])continue;if(_0x2f512d&&_0x44ff29['type']!=_0x2f512d)continue;let _0x316753=!0x1;for(const _0x46fa5f of _0x44ff29['getRanges']()){for(const _0x295d64 of _0x374ba6){const _0x3d7194=_0x295d64['start']['isEqual'](_0x46fa5f['end'])||_0x295d64['end']['isEqual'](_0x46fa5f['start']);if(_0x3d7194||_0x295d64['getIntersection'](_0x46fa5f)){const _0x3c8c83=_0x295d64['containsRange'](_0x46fa5f)&&Gt(this['_model']['schema'],_0x46fa5f['start'],_0x295d64),_0x29f153=_0x46fa5f['containsRange'](_0x295d64)&&Gt(this['_model']['schema'],_0x295d64['start'],_0x46fa5f);_0x54ccaf['push']({'suggestion':_0x44ff29,'meta':{'isOwn':_0x7a03b4==_0x44ff29['author'],'isNextTo':_0x3d7194,'isInsideObject':_0x3c8c83,'containsRangeInObject':_0x29f153}}),_0x316753=!0x0;break;}}if(_0x316753)break;}}return _0x54ccaf;}['_addSuggestionMarker'](_0x444647,_0x4e6fdc,_0x141f6f,_0x506e18,_0x2c0e3c){this['_model']['change'](_0x1fc18b=>{let _0x53d8ab='suggestion:'+_0x444647+':'+_0x4e6fdc+':'+_0x141f6f;_0x2c0e3c&&(_0x53d8ab=_0x53d8ab+':'+_0x2c0e3c),_0x1fc18b['addMarker'](_0x53d8ab,{'range':_0x506e18,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2c058c){const _0x5478bb=_0x2c058c['previous'],_0x11867b=_0x2c058c['next'];_0x2c058c['previous']=null,_0x2c058c['next']=null,null!=_0x5478bb&&_0x5478bb['next']==_0x2c058c&&(_0x5478bb['next']=_0x11867b),null!=_0x11867b&&_0x11867b['previous']==_0x2c058c&&(_0x11867b['previous']=_0x5478bb),'ready'==this['_suggestionState']['get'](_0x2c058c)&&(this['_suggestionState']['set'](_0x2c058c,'removed'),this['fire']('suggestionUnloaded',_0x2c058c,_0x5478bb,_0x11867b));}['_setSuggestionData'](_0x1882ce){const _0x1c876b=_0x1882ce['id'],_0x294b83=this['addSuggestionData'](_0x1882ce);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x13b61a=this['editor']['plugins']['get']('PendingActions'),_0x15cc56=_0x294b83['hasComments'],_0x471a70=_0x294b83['subType']?_0x294b83['type']+':'+_0x294b83['subType']:_0x294b83['type'],_0x1bbcf1=this['editor']['locale'],_0x11b6a4=_0x13b61a['add'](c(_0x1bbcf1,'PENDING_ACTION_SUGGESTION')),_0x2ebe78={'id':_0x1c876b,'type':_0x471a70,'hasComments':_0x15cc56,'data':_0x1882ce['data']||null,'originalSuggestionId':_0x1882ce['originalSuggestionId']||null,'attributes':_0x294b83['attributes']};this['_adapter']['addSuggestion'](_0x2ebe78)['then'](_0x1b50a3=>{_0x294b83['_saved']=!0x0,_0x13b61a['remove'](_0x11b6a4),_0x1b50a3&&_0x1b50a3['createdAt']&&(this['_suggestions']['get'](_0x1c876b)['createdAt']=_0x1b50a3['createdAt']);})['catch'](_0x5916f5=>{throw _0x2d9cbe('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x294b83['discard']();}),_0x294b83['stopListening'](),this['_suggestions']['delete'](_0x294b83['id']),this['_suggestionState']['delete'](_0x294b83),_0x5916f5;});}return _0x294b83;}['_isBlockAttribute'](_0x611f11){return this['_blockAttributeKeys']['has'](_0x611f11);}['_updateSuggestionData'](_0x524624,_0x284f6f){const _0x115c83=this['editor']['plugins']['get']('PendingActions'),_0xacb1e1=this['getSuggestion'](_0x524624);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xacb1e1['_saved']){const _0x5e34f8=_0x115c83['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x524624,_0x284f6f)['then'](()=>{_0x115c83['remove'](_0x5e34f8);});}else _0xacb1e1['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x524624,_0x284f6f);});}}['_getSuggestionData'](_0xc35e3d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x445a81('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xc35e3d);}['_handleNewSuggestionMarker'](_0x16979d){const {id:_0xe60c70,type:_0x4aede0,subType:_0x335365,authorId:_0x1ef210}=this['_splitMarkerName'](_0x16979d),_0x50f5fb=this['_suggestions']['get'](_0xe60c70)||this['_createSuggestion'](_0x4aede0,_0x335365,_0xe60c70,_0x1ef210,{});switch(this['_checkSuggestionCorrectness'](_0x50f5fb,_0x4aede0,_0x335365,_0x1ef210),this['_suggestionState']['get'](_0x50f5fb)){case'notReady':this['_getSuggestionData'](_0xe60c70)['then'](_0x39ee2b=>{let _0x47117a=Promise['resolve']();_0x39ee2b['hasComments']&&(_0x47117a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xe60c70})),_0x47117a['then'](()=>{this['addSuggestionData'](_0x39ee2b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x50f5fb,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xe60c70,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x50f5fb,'ready'),this['fire']('suggestionLoaded',_0x50f5fb);break;case'ready':this['fire']('suggestionChanged',_0x50f5fb);}return _0x50f5fb['addMarkerName'](_0x16979d),_0x50f5fb;}['_refreshSuggestionsChain'](_0x4578b3){const _0x37c2bf=Array['from'](_0x4578b3),_0x29e54e=_0x37c2bf['filter'](_0x33eb99=>'attribute'==_0x33eb99['type']);this['_refreshAttributeSuggestionsChain'](_0x29e54e);const _0x5cf74b=_0x37c2bf['filter'](_0x427609=>!_0x427609['isMultiRange']&&'attribute'!=_0x427609['type']),_0x58c1d2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x58c63c=>!_0x58c63c['isMultiRange']&&'attribute'!=_0x58c63c['type']),_0x307c59=_0x58c1d2['filter'](_0x40ee6a=>!_0x4578b3['has'](_0x40ee6a)),_0x3fa382=new Map(_0x58c1d2['map'](_0x3eef69=>[_0x3eef69,this['_suggestionFactory']['getSuggestionCallback'](_0x3eef69['type'],_0x3eef69['subType'],'chain')])),_0x2f5e63=new Map(_0x58c1d2['map'](_0x41109b=>[_0x41109b,_0x41109b['getFirstRange']()])),_0x324f6c=new Set(),_0x8de32d=new Set();for(let _0x1a832b=0x0;_0x1a832b<_0x5cf74b['length'];_0x1a832b++)_0x1eb9c7(_0x5cf74b[_0x1a832b],_0x5cf74b,_0x1a832b+0x1);for(let _0xc78abc=0x0;_0xc78abc<_0x5cf74b['length'];_0xc78abc++)_0x1eb9c7(_0x5cf74b[_0xc78abc],_0x307c59,0x0);const _0x5865d3=new Set();for(let _0x39bd8b=0x0;_0x39bd8b<_0x5cf74b['length'];_0x39bd8b++){const _0x40980d=_0x5cf74b[_0x39bd8b];!_0x8de32d['has'](_0x40980d)&&_0x40980d['previous']&&(_0x5865d3['add'](_0x40980d['previous']),_0x40980d['previous']['next']===_0x40980d&&(_0x40980d['previous']['next']=null),_0x40980d['previous']=null),!_0x324f6c['has'](_0x40980d)&&_0x40980d['next']&&(_0x5865d3['add'](_0x40980d['next']),_0x40980d['next']['previous']===_0x40980d&&(_0x40980d['next']['previous']=null),_0x40980d['next']=null);}function _0x1eb9c7(_0x301442,_0x2d48fb,_0x1d9707){for(let _0x5a654e=_0x1d9707;_0x5a654e<_0x2d48fb['length'];_0x5a654e++){const _0xeb9a70=_0x3b7e6b(_0x301442,_0x2d48fb[_0x5a654e]);_0xeb9a70&&(_0xeb9a70[0x0]['next']=_0xeb9a70[0x1],_0xeb9a70[0x1]['previous']=_0xeb9a70[0x0],_0x324f6c['add'](_0xeb9a70[0x0]),_0x8de32d['add'](_0xeb9a70[0x1]));}}function _0x3b7e6b(_0x13bb79,_0x2d2cb2){if(_0x13bb79['author']['id']!==_0x2d2cb2['author']['id'])return null;const _0x2e7223=_0x3fa382['get'](_0x13bb79)(_0x13bb79,_0x2d2cb2,_0x2f5e63['get'](_0x13bb79),_0x2f5e63['get'](_0x2d2cb2));if(!_0x2e7223)return null;return _0x3fa382['get'](_0x2d2cb2)(_0x13bb79,_0x2d2cb2,_0x2f5e63['get'](_0x13bb79),_0x2f5e63['get'](_0x2d2cb2))?_0x2e7223[0x1]['commentThread']&&_0x2e7223[0x1]['commentThread']['length']?null:_0x2e7223:null;}_0x5865d3['size']&&this['_refreshSuggestionsChain'](_0x5865d3);}['_refreshAttributeSuggestionsChain'](_0x3bfc9e){if(0x0==_0x3bfc9e['length'])return;const _0x1de65b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1223d0=>'attribute'==_0x1223d0['type']&&_0x1223d0['_isDataLoaded']),_0x55407f=[],_0x383ba0=new Map();for(const _0x459bdb of _0x1de65b){const _0x5a601d=_0x419ded(_0x459bdb['attributes']);_0x383ba0['has'](_0x5a601d)||(_0x383ba0['set'](_0x5a601d,_0x55407f['length']),_0x55407f['push']([]));const _0xb7e622=_0x383ba0['get'](_0x5a601d);_0x55407f[_0xb7e622]['push'](_0x459bdb);}!(function(){_0x55407f['sort']((_0x242296,_0xc1e3f5)=>{const _0x12d1bb=_0x242296[0x0]['createdAt'],_0x16874a=_0xc1e3f5[0x0]['createdAt'];return _0x12d1bb==_0x16874a?_0x242296[0x0]['attributes']['groupId']<_0xc1e3f5[0x0]['attributes']['groupId']?-0x1:0x1:_0x12d1bb<_0x16874a?-0x1:0x1;});for(const _0x4c9a62 of _0x55407f)_0x4c9a62['sort']((_0x4b35a9,_0x1cf1c1)=>_0x4b35a9['id']<_0x1cf1c1['id']?-0x1:0x1);}());for(let _0x4b3594=0x0;_0x4b3594<_0x55407f['length'];_0x4b3594++){if(0x0==_0x55407f[_0x4b3594]['length'])continue;const _0x598f56=[];for(let _0x1b8dfd=_0x4b3594+0x1;_0x1b8dfd<_0x55407f['length'];_0x1b8dfd++)0x0!=_0x55407f[_0x1b8dfd]['length']&&_0x48bcce(_0x55407f[_0x4b3594],_0x55407f[_0x1b8dfd])&&_0x598f56['push'](_0x1b8dfd);for(const _0x4252ca of _0x598f56)_0x55407f[_0x4b3594]=_0x55407f[_0x4b3594]['concat'](_0x55407f[_0x4252ca]),_0x55407f[_0x4252ca]=[];}for(const _0x334fba of _0x55407f)for(let _0x14aef9=0x0;_0x14aef9<_0x334fba['length'];_0x14aef9++){const _0x3356a1=_0x334fba[_0x14aef9+0x1]||null;_0x334fba[_0x14aef9]['next']!==_0x3356a1&&(_0x334fba[_0x14aef9]['next']=_0x3356a1);}for(const _0x3b0f58 of _0x55407f)for(let _0x342a55=0x0;_0x342a55<_0x3b0f58['length'];_0x342a55++){const _0x22212a=_0x3b0f58[_0x342a55-0x1]||null;_0x3b0f58[_0x342a55]['previous']!==_0x22212a&&(_0x3b0f58[_0x342a55]['previous']=_0x22212a);}function _0x48bcce(_0x286fd3,_0x2bec17){if(_0x286fd3[0x0]['attributes']['groupId']!==_0x2bec17[0x0]['attributes']['groupId']&&_0x286fd3[0x0]['author']!==_0x2bec17[0x0]['author'])return!0x1;if(!function(_0x4ecbe3,_0x160c98){if(!_0x4ecbe3['hasComments']&&!_0x160c98['hasComments'])return!0x0;if(_0x4ecbe3['hasComments']&&_0x160c98['hasComments'])return!0x1;if(_0x4ecbe3['hasComments']&&_0x160c98['createdAt']<_0x4ecbe3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x160c98['hasComments']&&_0x4ecbe3['createdAt']<_0x160c98['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x286fd3[0x0],_0x2bec17[0x0]))return!0x1;const _0x274dbb=Ft(_0x286fd3[0x0]['attributes'],['groupId','trackingSessionId']),_0x168466=Ft(_0x2bec17[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x8ce2d0(_0x274dbb,_0x168466))return!0x1;if(_0x286fd3[0x0]['attributes']['groupId']==_0x2bec17[0x0]['attributes']['groupId'])return!0x0;if(_0x286fd3[0x0]['attributes']['trackingSessionId']!==_0x2bec17[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x286fd3['every'](_0x4d7e53=>_0x2bec17['some'](_0x26e91c=>_0x4d7e53['getFirstRange']()['isEqual'](_0x26e91c['getFirstRange']())))&&_0x2bec17['every'](_0x2307c0=>_0x286fd3['some'](_0x4eadf9=>_0x2307c0['getFirstRange']()['isEqual'](_0x4eadf9['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1a7cee){const _0x45eff4=Array['from'](_0x1a7cee),_0x594486=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3e75f3=_0x594486['filter'](_0x4c01f7=>!_0x1a7cee['has'](_0x4c01f7)),_0x47fc0e=new Map(_0x45eff4['map'](_0x191c23=>[_0x191c23,this['_suggestionFactory']['getSuggestionCallback'](_0x191c23['type'],_0x191c23['subType'],'join')])),_0x2f6b05=new Map(_0x594486['map'](_0x52567c=>[_0x52567c,_0x52567c['getRanges']()]));for(let _0xbb6a44=0x0;_0xbb6a44<_0x45eff4['length'];_0xbb6a44++){if(_0x46d483(this,_0x45eff4[_0xbb6a44],_0x45eff4,_0xbb6a44+0x1))return!0x0;}for(let _0x2263cc=0x0;_0x2263cc<_0x45eff4['length'];_0x2263cc++){if(_0x46d483(this,_0x45eff4[_0x2263cc],_0x3e75f3,0x0))return!0x0;}return!0x1;function _0x46d483(_0x2a69f3,_0x33d099,_0x325529,_0x4abfb2){for(let _0xc978b4=_0x4abfb2;_0xc978b4<_0x325529['length'];_0xc978b4++){const _0x226397=_0x325529[_0xc978b4];if(_0x226397['type']!==_0x33d099['type']||_0x226397['author']['id']!==_0x33d099['author']['id']||_0x226397['subType']!==_0x33d099['subType'])continue;if(!Qt(_0x33d099,_0x226397))continue;if('attribute'==_0x33d099['type']&&_0x33d099['data']['oldValue']!=_0x226397['data']['oldValue'])continue;if('attribute'==_0x33d099['type']&&_0x2a69f3['_isBlockAttribute'](_0x33d099['data']['key']))continue;if('formatBlock'==_0x33d099['type']){const _0x4e25cd=_0x2a69f3['editor']['model'],_0x547896=_0x33d099['getContainedElement']();if(_0x547896&&(_0x4e25cd['schema']['isObject'](_0x547896)||_0x4e25cd['schema']['isLimit'](_0x547896)))continue;}const _0x18b719=_0x47fc0e['get'](_0x33d099),_0x1e8959=_0x2f6b05['get'](_0x33d099),_0x291325=_0x2f6b05['get'](_0x226397),_0x14ceca=_0x33d099['commentThread']&&_0x33d099['commentThread']['length'],_0x50e13a=_0x226397['commentThread']&&_0x226397['commentThread']['length'];if(!_0x14ceca&&_0x18b719(_0x291325,_0x1e8959))return _0x2a69f3['_joinSuggestions'](_0x226397,_0x33d099),_0x2f6b05['delete'](_0x33d099),!0x0;if(!_0x50e13a&&_0x18b719(_0x1e8959,_0x291325))return _0x2a69f3['_joinSuggestions'](_0x33d099,_0x226397),_0x2f6b05['delete'](_0x226397),!0x0;}return!0x1;}}['_joinSuggestions'](_0x329bbb,_0x5485dd){if(_0x329bbb['isMultiRange']){for(const _0x89a5a7 of _0x5485dd['getRanges']())_0x329bbb['addRange'](_0x89a5a7);}else{const _0x4b8a19=_0x5485dd['getFirstRange']()['end'];this['_setSuggestionRange'](_0x329bbb,this['_model']['createRange'](_0x329bbb['getFirstRange']()['start'],_0x4b8a19));}_0x5485dd['removeMarkers']();}['_getMarkerAnnouncementText'](_0x29f53f,_0x2d06b5,_0x49f87f){const _0x2b9ab2=_0x29f53f['startsWith']('format')||_0x29f53f['startsWith']('attribute')?'FORMATTING':_0x29f53f['toUpperCase']();return c(this['editor']['locale'],_0x2d06b5+'_'+_0x2b9ab2+'_SUGGESTION_ANNOUNCEMENT',_0x49f87f);}['_initAriaMarkerChangeAnnouncements'](){const _0x4807d0=this['editor'];if(!_0x4807d0['ui'])return;const {ariaLiveAnnouncer:_0x5557b0}=_0x4807d0['ui'];_0x4cacd4(this['_model'],({left:_0x35f7a8,entered:_0x13db3b})=>{for(const _0x39b487 of _0x35f7a8){const {group:_0x478d0f,type:_0x53d3d2}=this['_splitMarkerName'](_0x39b487['name']);if('suggestion'===_0x478d0f){_0x5557b0['announce'](this['_getMarkerAnnouncementText'](_0x53d3d2,'LEAVE'));break;}}for(const _0x2d3c4d of _0x13db3b){const {group:_0x5b97f7,type:_0x5f2837}=this['_splitMarkerName'](_0x2d3c4d['name']);if('suggestion'===_0x5b97f7){_0x5557b0['announce'](this['_getMarkerAnnouncementText'](_0x5f2837,'ENTER',_0x24010f(_0x1b8fee)));break;}}});}['_processAttributeChanges'](_0x3d5392){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3ec308=this['editor'],_0x3ecbdb=_0x3ec308['model']['document']['differ']['getChanges']();if(0x0==_0x3ecbdb['length'])return!0x1;const _0x1eadca=[],_0x5ac9eb=_0x3ecbdb['filter'](_0x200830=>'attribute'==_0x200830['type']),_0x113e15=_0x3ecbdb['filter'](_0x54fd45=>'insert'==_0x54fd45['type']&&'$text'!=_0x54fd45['name']),_0x1e46bc=_0x3ecbdb['filter'](_0x514a30=>'remove'==_0x514a30['type']&&'$text'!=_0x514a30['name']);for(const _0x3db637 of _0x5ac9eb)_0x1eadca['push']({'key':_0x3db637['attributeKey'],'newValue':_0x3db637['attributeNewValue'],'oldValue':_0x3db637['attributeOldValue'],'range':qt(_0x3db637['range'],_0x3ec308['model'])});for(const _0x168e48 of _0x113e15){const _0x221bfd=_0x1e46bc['find'](_0x4c7b75=>_0x4c7b75['position']['isEqual'](_0x168e48['position']));_0x221bfd&&_0x1eadca['push']({'key':u,'newValue':_0x168e48['name'],'oldValue':_0x221bfd['name'],'range':_0x3ec308['model']['createRangeOn'](_0x168e48['position']['nodeAfter'])});}return 0x0!=_0x1eadca['length']&&this['_reduceExistingSuggestions'](_0x3d5392,_0x1eadca);}['_processAttributeSuggestions'](_0xccf91d){let _0x3167d9=!0x1;const _0x2b9026=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1bf9f0=>_0x1bf9f0['data']['newRange']&&_0x1bf9f0['name']['startsWith']('suggestion:attribute:'));for(const _0x3cf1e3 of _0x2b9026){const {subType:_0x56119b,id:_0x5c1d71}=this['_splitMarkerName'](_0x3cf1e3['name']),_0xcee170=_0x56119b['split']('|')[0x0];for(const _0x176b39 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x176b39['id']!=_0x5c1d71&&'attribute'==_0x176b39['type']&&_0x176b39['data']&&_0x176b39['data']['key']==_0xcee170&&_0x176b39['getFirstRange']()['isIntersecting'](_0x3cf1e3['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x176b39,_0x3cf1e3['data']['newRange'],_0xccf91d),_0x3167d9=!0x0);}return _0x3167d9;}['_recordAttributeChanges'](_0x1c4496){this['_recordAttributeSuggestions']=!0x0,_0x1c4496();}['_isRegisteredAttribute'](_0x4628a1){const _0x4edbe9=this['_isBlockAttribute'](_0x4628a1),_0x20c85e=this['_inlineAttributeKeys']['has'](_0x4628a1);return _0x4edbe9||_0x20c85e;}['_reduceExistingSuggestions'](_0x5b0c5d,_0x924dc0){if(0x0==_0x924dc0['length'])return!0x1;let _0x3d46b2=!0x1;for(const _0x90c7da of _0x924dc0){const _0x265d83=this['_findSuggestions'](_0x90c7da['range'],'attribute')['filter'](_0x387cab=>!_0x387cab['meta']['isNextTo'])['map'](_0x53869f=>_0x53869f['suggestion']),_0x105c02=_0x419ded({'newValue':_0x90c7da['newValue']});_0x265d83['filter'](_0xa1d8df=>{const [_0x564261,_0x6183a7]=_0xa1d8df['subType']['split']('|');return _0x564261==_0x90c7da['key']&&_0x6183a7!=_0x105c02;})['forEach'](_0x345548=>{this['_reduceSuggestionAttributeRange'](_0x345548,_0x90c7da['range'],_0x5b0c5d),_0x3d46b2=!0x0;});}return _0x3d46b2;}['_reduceSuggestionAttributeRange'](_0x3ea06d,_0x459b0d,_0x1f086c){const _0x2910f5=_0x3ea06d['getFirstRange']()['getDifference'](_0x459b0d);0x0!==_0x2910f5['length']?0x1!==_0x2910f5['length']?this['_breakSuggestionMarker'](_0x3ea06d,_0x459b0d['start'],_0x459b0d['end']):this['_setSuggestionRange'](_0x3ea06d,_0x2910f5[0x0]):_0x1f086c['removeMarker'](_0x3ea06d['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x287462){this['_editor']=_0x287462,this['_model']=_0x287462['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xf9463e,_0x22be91,_0x966dd0,_0x1b3303,_0x2ad033,_0x1bb1cc,_0x3bd869){return new o(this['_model'],{'type':_0xf9463e,'subType':_0x22be91,'id':_0x966dd0,'originalSuggestionId':_0x3bd869,'author':_0x1b3303,'creator':_0x1b3303,'attributes':_0x2ad033,'onAttributesChange':_0x1bb1cc,'onAccept':(..._0x3c8672)=>this['getSuggestionCallback'](_0xf9463e,_0x22be91,'accept')(..._0x3c8672),'onDiscard':(..._0x43456d)=>this['getSuggestionCallback'](_0xf9463e,_0x22be91,'discard')(..._0x43456d)});}['registerCustomCallback'](_0x3e6bae,_0x4c896f,_0x527764,_0x5ca2b7){const _0x52b8ad=_0x3e6bae+':'+_0x4c896f+':'+_0x527764;this['_customCallbacks']['set'](_0x52b8ad,_0x5ca2b7);}['getSuggestionCallback'](_0x2bcc40,_0x391947,_0x39df09){const _0xd9a276=_0x2bcc40+':'+_0x391947+':'+_0x39df09;return this['_customCallbacks']['get'](_0xd9a276)||this['_defaultCallbacks']['get'](_0x2bcc40+':'+_0x39df09);}['_registerDefaultCallbacks'](){const _0x11120b=()=>!0x1,_0x1b7f26=_0x2b3435=>{_0x2b3435['sort']((_0x30052b,_0x5c8552)=>_0x30052b['start']['isBefore'](_0x5c8552['start'])?0x1:-0x1),this['_model']['change'](_0x5b0371=>{for(const _0x52c44c of _0x2b3435){let _0x6a5abf;_0x6a5abf=_0x52c44c['end']['isAtEnd']&&_0x52c44c['end']['parent']==_0x52c44c['start']['nodeAfter']?_0x5b0371['createSelection'](_0x52c44c['start']['nodeAfter'],'on'):_0x5b0371['createSelection'](_0x52c44c),this['_model']['deleteContent'](_0x6a5abf,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2ebc24=(_0x1eb342,_0x1abe2c)=>{_0x1abe2c&&this['_model']['change'](_0xd9ac72=>{const {commandName:_0x1bfe85,commandParams:_0x49b6d2=[]}=_0x1abe2c,_0x463229=_0x1eb342['map'](_0x1922af=>(Lt(_0x1922af)&&(_0x1922af=this['_model']['createRange'](_0x1922af['end'])),_0x1922af))['filter'](_0x68a3c6=>'$graveyard'!==_0x68a3c6['root']['rootName']);if(_0x463229['length']<0x1)return;const _0x24b8af=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x11d86a=>_0x34ca76['fromRange'](_0x11d86a));_0xd9ac72['setSelection'](_0x463229);for(const _0x40cf56 of this['_editor']['commands']['commands']())_0x40cf56['refresh']();_0x49b6d2['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1bfe85,..._0x49b6d2);const _0x44accd=_0x24b8af['filter'](_0x4d8321=>'$graveyard'!=_0x4d8321['root']['rootName']);_0x44accd['length']>0x0&&_0xd9ac72['setSelection'](_0x44accd);for(const _0x17676d of _0x24b8af)_0x17676d['detach']();});},_0x33884c=(_0x46d599,_0x3b1751)=>0x1==_0x46d599['length']&&0x1==_0x3b1751['length']&&_0x46d599[0x0]['end']['isEqual'](_0x3b1751[0x0]['start']),_0xd97133=(_0x405cd6,_0x1695c1,_0x2c9e18,_0x484d58)=>Wt(_0x405cd6,_0x1695c1,_0x2c9e18,_0x484d58)?[_0x405cd6,_0x1695c1]:Wt(_0x1695c1,_0x405cd6,_0x484d58,_0x2c9e18)?[_0x1695c1,_0x405cd6]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x11120b),this['_defaultCallbacks']['set']('insertion:discard',_0x1b7f26),this['_defaultCallbacks']['set']('insertion:join',_0x33884c),this['_defaultCallbacks']['set']('insertion:chain',_0xd97133),this['_defaultCallbacks']['set']('deletion:accept',_0x1b7f26),this['_defaultCallbacks']['set']('deletion:discard',_0x11120b),this['_defaultCallbacks']['set']('deletion:join',_0x33884c),this['_defaultCallbacks']['set']('deletion:chain',_0xd97133),this['_defaultCallbacks']['set']('formatInline:accept',_0x2ebc24),this['_defaultCallbacks']['set']('formatInline:discard',_0x11120b),this['_defaultCallbacks']['set']('formatInline:join',_0x33884c),this['_defaultCallbacks']['set']('formatInline:chain',_0x11120b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2ebc24),this['_defaultCallbacks']['set']('formatBlock:discard',_0x11120b),this['_defaultCallbacks']['set']('formatBlock:join',_0x33884c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x11120b),this['_defaultCallbacks']['set']('attribute:accept',_0x11120b),this['_defaultCallbacks']['set']('attribute:discard',(_0x313a6d,_0xa64c7)=>{if(!_0xa64c7)return;const _0x1b94ca=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x221648=>{if(_0xa64c7['key']==u)for(const _0x4ea033 of _0x313a6d){const _0x4e1750=_0x4ea033['start']['nodeAfter'],_0x3b6a06=_0xa64c7['oldValue'];_0x221648['rename'](_0x4e1750,_0x3b6a06);}else{if(_0x1b94ca['_isBlockAttribute'](_0xa64c7['key'])){for(const _0x3e6a44 of _0x313a6d)void 0x0!==_0xa64c7['oldValue']?_0x221648['setAttribute'](_0xa64c7['key'],_0xa64c7['oldValue'],_0x3e6a44['start']['nodeAfter']):_0x221648['removeAttribute'](_0xa64c7['key'],_0x3e6a44['start']['nodeAfter']);}else{for(const _0x33d81b of _0x313a6d)_0xa64c7['oldValue']?_0x221648['setAttribute'](_0xa64c7['key'],_0xa64c7['oldValue'],_0x33d81b):_0x221648['removeAttribute'](_0xa64c7['key'],_0x33d81b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x33884c);}}function Gt(_0x4ef3df,_0x18b822,_0x1617cf){for(const _0x35e622 of _0x18b822['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x35e622['root']==_0x35e622)return!0x1;if(!_0x1617cf['containsItem'](_0x35e622))return!0x1;if(_0x4ef3df['isObject'](_0x35e622)||_0x4ef3df['isLimit'](_0x35e622))return!0x0;}return!0x1;}function Lt(_0x4bec7b){return _0x4bec7b['end']['parent']==_0x4bec7b['start']['nodeAfter']&&_0x4bec7b['end']['isAtStart'];}function Jt(_0x8e3681,_0x4b711c,_0x3c082f,_0x275520){const _0xa5a15e=_0x73ceb9=>!_0x73ceb9['item']['is']('$textProxy')&&!_0x275520['isObject'](_0x73ceb9['item']),_0x22fb48=_0x8e3681['start']['getLastMatchingPosition'](_0xa5a15e),_0x1bde16=_0x8e3681['end']['getLastMatchingPosition'](_0xa5a15e,{'direction':'backward'});return(!_0x8e3681['start']['isEqual'](_0x22fb48)||!_0x8e3681['end']['isEqual'](_0x1bde16))&&(_0x22fb48['isBefore'](_0x1bde16)?_0x3c082f['updateMarker'](_0x4b711c,{'range':_0x3c082f['createRange'](_0x22fb48,_0x1bde16)}):_0x3c082f['removeMarker'](_0x4b711c),!0x0);}function Kt(_0x2ec05b){return _0x419ded(_0x2ec05b);}function Ht(_0x12bd54){const _0x54db9f=_0x12bd54['start']['nodeAfter'];return _0x54db9f&&_0x54db9f['is']('element');}function qt(_0x1b5afc,_0x3e2479){return null==_0x1b5afc['end']['nodeBefore']&&_0x1b5afc['end']['parent']==_0x1b5afc['start']['nodeAfter']?zt(_0x1b5afc['start']['nodeAfter'],_0x3e2479):_0x1b5afc;}function zt(_0x59733d,_0x196dd9){const _0x568336=_0x196dd9['schema']['isObject'](_0x59733d)||_0x196dd9['schema']['isSelectable'](_0x59733d);return _0x196dd9['createRange'](_0x196dd9['createPositionAt'](_0x59733d,'before'),_0x568336?_0x196dd9['createPositionAfter'](_0x59733d):_0x196dd9['createPositionAt'](_0x59733d,'end'));}function Wt(_0x3acee5,_0x5b1712,_0x5dfdb7,_0x5aea5e){return!!Qt(_0x3acee5,_0x5b1712)&&_0x5dfdb7['end']['isEqual'](_0x5aea5e['start']);}function Qt(_0x3e87c8,_0x5901cc){if(!_0x3e87c8['_isDataLoaded']||!_0x5901cc['_isDataLoaded'])return!0x1;const _0x5e2ae8=new Set(Object['keys'](_0x3e87c8['attributes'])),_0x409263=new Set(Object['keys'](_0x5901cc['attributes']));if(_0x5e2ae8['delete']('groupId'),_0x409263['delete']('groupId'),0x0==_0x5e2ae8['size']&&0x0==_0x409263['size'])return!0x0;if(_0x5e2ae8['size']!=_0x409263['size'])return!0x1;const _0x6a122b={..._0x3e87c8['attributes']},_0x1d8b86={..._0x5901cc['attributes']};return delete _0x6a122b['groupId'],delete _0x1d8b86['groupId'],JSON['stringify'](_0x6a122b)==JSON['stringify'](_0x1d8b86);}function Xt(_0x55318c,_0x31ed71){const _0x4252e4=Yt(_0x55318c['attributes']),_0x39c5d0=Yt(_0x31ed71);if(!_0x55318c['_isDataLoaded'])return!0x1;for(const _0x38d0a3 of Object['keys'](_0x39c5d0))if(!_0x8ce2d0(_0x4252e4[_0x38d0a3],_0x39c5d0[_0x38d0a3]))return!0x1;return!0x0;}function Yt(_0x3fc531){const _0x115551=Object['assign']({},_0x3fc531);return delete _0x115551['skipNestingCheck'],delete _0x115551['tablePasteChainId'],_0x115551;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3e790a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x476568,_0x386f36,_0x3457cd,_0x3c8323){super(),this['model']=_0x386f36,this['view']=_0x3457cd,this['commentThreadController']=_0x3c8323,this['_editor']=_0x476568,this['_acceptCommand']=_0x476568['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x476568['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x17c214,_0x5d8efb)=>_0x17c214||_0x5d8efb),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1aa9b5=>_0x1aa9b5&&this['_editor']['model']['canEditAt'](_0x386f36['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4f0a54=>_0x4f0a54&&this['_editor']['model']['canEditAt'](_0x386f36['getRanges']())),this['_pendingAction']=null,_0x3457cd['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3457cd,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3457cd,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3457cd,'change:isDirty',()=>{_0x3457cd['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 _0x2274e1=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2274e1);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x4eff8d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x21e604,_0x4c2f2,_0x3dffea,_0xf1f871){super(_0x21e604),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x473e7c(_0x21e604,c(_0x21e604,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4c2f2['authoredAt']),this['bind']('authoredAt')['to'](_0x4c2f2),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',_0x4c2f2,'authoredAt',this,'descriptionParts',(_0x13744b,_0x1aa486,_0x46ee00)=>{const _0x1422a0=_0x46ee00['map'](_0x1f3254=>ls(_0x1f3254['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x13744b-0x1,_0x4c2f2['author']['name'],_0x1aa486?_0xf1f871['formatDateTime'](_0x1aa486):'',new DOMParser()['parseFromString'](_0x1422a0,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1c7024(),this['focusTracker']=new _0x54fb7e(),this['keystrokes']=new _0x242ec4(),this['focusCycler']=new _0x15fc30({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4531a2=>_0x4531a2['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4c2f2,this['_localUser']=_0x3dffea,this['_config']=_0xf1f871,_0xf1f871['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3a8cc9(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x28e077}=this['_config'];this['commentsListView']=new _0x28e077(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',_0x244041=>_0x244041+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x263fca,_0x52ad8d)=>_0x263fca||!!_0x52ad8d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x45ca82}=this['_config'],_0xfaaebd=new _0x45ca82(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4251bb=_0xfaaebd['commentInputView'];return _0xfaaebd['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4251bb,'value',(_0xfd4cc8,_0x4892f4,_0x3bb1a0)=>!!_0x3bb1a0||_0xfd4cc8&&!_0x4892f4),_0x4251bb['on']('submit',(_0xb78896,_0x31a4b6)=>{this['fire']('addComment',_0x31a4b6),_0x4251bb['editor']['setData']('');}),_0x4251bb['on']('cancel',()=>this['focus']()),_0x4251bb['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xfaaebd;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x2c137a,_0x2d212d,_0xac515c,_0x4d19f8){super(_0x2c137a,_0x2d212d,_0xac515c,_0x4d19f8),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x38bde1=>_0x38bde1&&_0x38bde1[0x0]?_0x38bde1[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x57a85b,_0x147cfe)=>{let _0x33da97='';for(const _0x539a85 of _0x57a85b)_0x33da97+='<p>'+ls(_0x539a85['content'],_0x539a85['color'])+'</p>';return _0x147cfe?_0x33da97:ti(_0x33da97,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4d19f8['SuggestionView'](_0x2c137a,_0x2d212d,{'formatDateTime':_0x4d19f8['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 _0x12c552=this['bindTemplate'],_0x1bab89=[this['suggestionView']];return this['commentsListView']&&_0x1bab89['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1bab89['push'](this['commentThreadInputView']),_0x1bab89['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x12c552['if']('isActive','ck-suggestion-wrapper--active'),_0x12c552['to']('type',_0x4526f1=>'ck-suggestion-'+_0x4526f1),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':_0x12c552['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1bab89};}['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 _0x4eff8d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xf3923a,_0x2b91e7,_0x1a825b){super(_0xf3923a),this['_model']=_0x2b91e7,this['_config']=_0x1a825b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2b91e7),this['acceptButton']=this['_createButton'](c(_0xf3923a,'Accept\x20suggestion'),_0x13fbe8,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0xf3923a,'Discard\x20suggestion'),_0x4f5a20,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5604b1(_0xf3923a,_0x2b91e7['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1c7024([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x54fb7e(),this['keystrokes']=new _0x242ec4(),this['focusCycler']=new _0x15fc30({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3c41dc=>_0x3c41dc['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1f2d07=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1f2d07['innerHTML']=this['description'],this['on']('change:description',(_0x16cb9f,_0x2686e0,_0x1d4409)=>{_0x1f2d07['innerHTML']=_0x1d4409;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xb23cba=this['bindTemplate'],_0x40f52e=[{'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':_0xb23cba['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xb23cba['to']('authoredAt',_0x522a79=>this['_config']['formatDateTime'](_0x522a79))}]}]},{'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']&&_0x40f52e['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':_0x40f52e}]};}['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'](_0x48b564,_0x2a9ab8,_0x5a276d,_0x9a2fe,_0x55d29c){const _0x89fd63=new _0x590555(this['locale']);return _0x89fd63['set']({'label':_0x48b564,'icon':_0x2a9ab8,'tooltip':!0x0,'tooltipPosition':_0x55d29c}),_0x89fd63['extendTemplate']({'attributes':{'class':_0x5a276d}}),_0x89fd63['on']('execute',()=>{this['fire'](_0x9a2fe,this['_model']['id']);}),_0x89fd63;}['_setupKeyboardNavigation'](){const _0x4a51b0=this['element'];this['keystrokes']['listenTo'](_0x4a51b0);for(const _0x36a647 of this['focusables'])this['focusTracker']['add'](_0x36a647['element']),this['keystrokes']['listenTo'](_0x36a647['element']);this['keystrokes']['set']('enter',(_0x45b566,_0x419442)=>{_0x4a51b0===_0x45b566['target']&&(this['focusCycler']['focusFirst'](),_0x419442());}),this['keystrokes']['set']('esc',(_0x52f785,_0x3ae4e6)=>{_0x4a51b0!==_0x52f785['target']&&(this['focus'](),_0x3ae4e6());});}}class d extends _0x3953b7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x58f2c4,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x80302b){super(_0x80302b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x912c52=this['editor']['config'];_0x912c52['define']('trackChanges.SuggestionThreadView',fe),_0x912c52['define']('trackChanges.SuggestionView',we),_0x912c52['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x912c52['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2ee424,_0x4afb34){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x443c48,_0x230fa5]of this['_handleControllerBuffer']){const _0x4aae7b=this['_suggestionToController']['has'](_0x443c48);_0x4aae7b||_0x230fa5?_0x4aae7b&&_0x230fa5&&this['_destroyController'](_0x443c48):this['_initializeController'](_0x443c48);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2ee424,_0x4afb34);}['init'](){const _0x1b91f4=this['editor'],_0x569d7e=_0x1b91f4['plugins']['get']('TrackChangesEditing'),_0x4bb404=_0x1b91f4['plugins']['get']('Annotations'),_0x5099c3=_0x1b91f4['plugins']['get']('EditorAnnotations'),_0x21d2a0=_0x1b91f4['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5099c3['addSourceCollector'](()=>{const _0x3ab2a6=[];for(const [_0x9243ff,_0x104842]of Array['from'](this['_suggestionToController'])){const _0xee1431=_0x9243ff['getAllAdjacentSuggestions'](),_0x59b66f=[];for(const _0x4d25d0 of _0xee1431){if(!_0x4d25d0['isInContent'])continue;if(_0x4d25d0['isMultiRange']){_0x59b66f['push'](..._0x4d25d0['getRanges']());continue;}const _0x4e0706=_0x4d25d0['getFirstRange']();if(_0x59b66f['length']>0x0){const _0x1be15a=_0x59b66f[0x0]['getJoined'](_0x4e0706);if(_0x1be15a){_0x59b66f[0x0]=_0x1be15a;continue;}}_0x59b66f['push'](_0x4e0706);}_0x3ab2a6['push']([_0x104842['view'],_0x59b66f]);}return _0x3ab2a6;}),this['listenTo'](_0x569d7e,'suggestionLoaded',(_0x680d2b,_0x556801)=>{this['listenTo'](_0x556801,'change:previous',(_0x56b1aa,_0x1c5a5d,_0x194cc9,_0x3ff352)=>{_0x556801['isInContent']&&(null==_0x194cc9?(this['_updateController'](_0x3ff352['head']),this['_handleSuggestionControllerDelayed'](_0x556801,!0x1)):(this['_updateController'](_0x194cc9['head']),null==_0x3ff352&&this['_handleSuggestionControllerDelayed'](_0x556801,!0x0)));}),null!==_0x556801['previous']?this['_updateController'](_0x556801['head']):this['_handleSuggestionControllerDelayed'](_0x556801,!0x1);}),this['listenTo'](_0x569d7e,'suggestionUnloaded',(_0x31f009,_0x3c497d,_0xe35c3a)=>{this['stopListening'](_0x3c497d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3c497d),this['_suggestionToController']['has'](_0x3c497d)&&this['_destroyController'](_0x3c497d),_0xe35c3a&&this['_updateController'](_0xe35c3a['head']);}),this['listenTo'](_0x569d7e,'suggestionChanged',(_0x2a0062,_0x4386b9)=>{this['_updateController'](_0x4386b9);}),this['listenTo'](_0x4bb404,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x21d2a0,'addComment',(_0x2fa284,{threadId:_0x595928,isFromAdapter:_0x2c63b6})=>{if(_0x2c63b6||!_0x569d7e['hasSuggestion'](_0x595928))return;const _0x1cf67f=_0x569d7e['getSuggestion'](_0x595928);this['_suggestionToController']['get'](_0x1cf67f)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x456be7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5c3d59;for(const _0x17c2d5 in _0x456be7){const _0x19a56b=_0x17c2d5,_0x52da2d=_0x456be7[_0x19a56b];if('trackChangesLicenseKeyValid'==_0x52da2d||'trackChangesLicenseKeyInvalid'==_0x52da2d||'trackChangesLicenseKeyExpired'==_0x52da2d||'trackChangesLicenseKeyDomainLimit'==_0x52da2d||'trackChangesLicenseKeyNotAllowed'==_0x52da2d||'trackChangesLicenseKeyEvaluationLimit'==_0x52da2d||'trackChangesLicenseKeyTrialLimit'==_0x52da2d||'trackChangesLicenseKeyUsageLimit'==_0x52da2d){delete _0x456be7[_0x19a56b],_0x5c3d59=_0x52da2d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5c3d59&&_0x456be7['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5c3d59&&_0x456be7['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5c3d59&&_0x456be7['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5c3d59&&_0x456be7['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5c3d59&&_0x456be7['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5c3d59&&_0x456be7['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5c3d59&&_0x456be7['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x3eff9a=this['editor']['plugins']['get']('Annotations'),_0x1cdbed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e3930=Array['from'](_0x3eff9a['activeAnnotations'],_0x1d770f=>_0x1d770f['innerView'])['filter'](_0x36ee71=>this['_viewToController']['has'](_0x36ee71)),_0xde1bc=[];for(const _0x486dd9 of _0x3e3930){const _0x166d28=this['_viewToController']['get'](_0x486dd9)['model']['getAllAdjacentSuggestions']();_0xde1bc['push'](..._0x166d28['reduce']((_0x43fdae,_0x426a12)=>[..._0x43fdae,..._0x426a12['getMarkerNames']()],[]));}_0x1cdbed['activeMarkers']=_0xde1bc;}['_addUIComponentsToFactory'](){const _0x1ae4be=this['editor'],_0x78699e=_0x1ae4be['locale'],_0x4bd9ff=c(_0x78699e,'Track\x20changes'),_0xede360=new _0x39c9e2([{'type':'switchbutton','model':new _0xbf88d3({'withText':!0x0,'isToggleable':!0x0,'label':_0x4bd9ff,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xbf88d3({'withText':!0x0,'label':c(_0x78699e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xbf88d3({'withText':!0x0,'label':c(_0x78699e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xbf88d3({'withText':!0x0,'label':c(_0x78699e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xbf88d3({'withText':!0x0,'label':c(_0x78699e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1ae4be['plugins']['has']('TrackChangesPreview')&&_0xede360['addMany']([{'type':'separator'},{'type':'button','model':new _0xbf88d3({'withText':!0x0,'label':c(_0x78699e,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x157272 of _0xede360)if(ke(_0x157272)){const _0x3229d2=_0x1ae4be['commands']['get'](_0x157272['model']['commandName']);_0x157272['model']['bind']('isOn','isEnabled')['to'](_0x3229d2,'value','isEnabled');}_0x1ae4be['ui']['componentFactory']['add']('trackChanges',_0x46d7ad=>this['_createToolbarButton'](_0x46d7ad,_0xede360,_0x4bd9ff)),_0x1ae4be['ui']['componentFactory']['add']('menuBar:trackChanges',_0x682c60=>this['_createMenuBarMenu'](_0x682c60,_0xede360,_0x4bd9ff));}['_createToolbarButton'](_0x34dc90,_0x3a2a34,_0x3d3ddc){const _0xf70599=_0x5e9696(_0x34dc90,_0x881f8),_0x40eb76=this['editor']['commands']['get']('trackChanges');_0xf70599['buttonView']['set']({'tooltip':_0x3d3ddc,'label':_0x3d3ddc,'icon':_0x149199}),_0xf70599['buttonView']['bind']('isOn')['to'](_0x40eb76,'value'),_0xf70599['buttonView']['on']('execute',()=>{_0x40eb76['execute'](),this['editor']['editing']['view']['focus']();}),_0x2e601e(_0xf70599,_0x3a2a34,{'role':'menu'});const _0x1be56d=[];for(const _0x487b2a of _0x3a2a34)ke(_0x487b2a)&&_0x1be56d['push'](this['editor']['commands']['get'](_0x487b2a['model']['commandName']));const _0x5d1329=_0xf70599['buttonView'];return _0x5d1329['actionView']['unbind']('isEnabled'),_0x5d1329['arrowView']['unbind']('isEnabled'),_0x5d1329['actionView']['bind']('isEnabled')['to'](_0x40eb76,'isEnabled'),_0x5d1329['arrowView']['bind']('isEnabled')['toMany'](_0x1be56d,'isEnabled',(..._0x550771)=>_0x550771['some'](_0x343798=>_0x343798)),_0xf70599['on']('execute',_0x4ea9fc=>{this['editor']['execute'](_0x4ea9fc['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xf70599;}['_createMenuBarMenu'](_0x38431d,_0x14f721,_0x2654f8){const _0x45e546=new _0x262cec(_0x38431d),_0x2fc7cb=this['editor']['commands']['get']('trackChanges');_0x45e546['buttonView']['set']({'label':_0x2654f8,'icon':_0x149199});const _0x152420=new _0x54e796(_0x38431d);for(const _0x3c5eae of _0x14f721){if('separator'==_0x3c5eae['type']){_0x152420['items']['add'](new _0x8cf7a6(_0x38431d));continue;}const _0x656d25=new _0x289202(_0x38431d,_0x45e546),_0x50603d=new _0xcb61eb(_0x38431d),_0x2d0585=_0x3c5eae['model'];_0x50603d['bind'](...Object['keys'](_0x2d0585))['to'](_0x2d0585),_0x50603d['delegate']('execute')['to'](_0x45e546),_0x50603d['on']('execute',()=>{this['editor']['execute'](_0x2d0585['commandName']),this['editor']['editing']['view']['focus']();}),_0x656d25['children']['add'](_0x50603d),_0x152420['items']['add'](_0x656d25);}return _0x45e546['bind']('isEnabled')['to'](_0x2fc7cb,'isEnabled'),_0x45e546['panelView']['children']['add'](_0x152420),_0x45e546;}['_initializeController'](_0x4d474c){const _0x3130af=this['editor'],_0x3acaca=_0x3130af['config'],_0x1f52e6=_0x3130af['plugins']['get']('Annotations'),_0x408f56=_0x3130af['plugins']['get']('CommentsRepository'),_0x235246=_0x3130af['plugins']['get']('EditorAnnotations'),_0x104b71=_0x3130af['plugins']['get'](_0x58f2c4)['me'],_0x5e692d=_0x3acaca['get']('trackChanges')['SuggestionThreadView'],_0x15819c=_0x3acaca['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x598ccb,CommentThreadInputView:_0x1a81fe}=_0x3130af['plugins']['get']('CommentsUI');let _0xcf6d58,_0x382963,_0x435a6f;this['_annotationViews']['has'](_0x4d474c['id'])?(_0x382963=this['_annotationViews']['get'](_0x4d474c['id']),_0xcf6d58=_0x382963['mainView']):(_0xcf6d58=new _0x5e692d(_0x3130af['locale'],_0x4d474c,_0x104b71,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3acaca['get']('comments.editorConfig'),'licenseKey':_0x3acaca['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3acaca['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3acaca['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3acaca['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x25d804(_0x3acaca['get']('locale'),_0x3130af['locale']),'CommentView':_0x3acaca['get']('comments')['CommentView'],'CommentsListView':_0x598ccb,'CommentThreadInputView':_0x1a81fe,'SuggestionView':_0x15819c}),_0xcf6d58['suggestionView']['acceptButton']['on']('execute',()=>{_0x3130af['editing']['view']['focus']();}),_0xcf6d58['suggestionView']['discardButton']['on']('execute',()=>{_0x3130af['editing']['view']['focus']();}),_0x382963=_0x1f52e6['createAnnotationView'](this['editor']['locale'],_0xcf6d58),_0x382963['bind']('isDirty')['to'](_0xcf6d58,'isDirty'),_0x382963['bind']('length')['to'](_0xcf6d58),_0x382963['bind']('type')['to'](_0xcf6d58,'type',_0x5559f6=>'suggestion-'+_0x5559f6),_0xcf6d58['on']('escape',()=>{_0x435a6f['fire']('escape');}),this['_annotationViews']['set'](_0x4d474c['id'],_0x382963));const _0x5de0fd=_0x408f56['createCommentThreadController'](_0x4d474c['commentThread'],_0xcf6d58),_0x2194e3=new pe(_0x3130af,_0x4d474c,_0xcf6d58,_0x5de0fd),_0x20c371=_0x4d474c['getAllAdjacentSuggestions']()['filter'](_0x5affc0=>_0x5affc0['isInContent']);_0xcf6d58['descriptionParts']=_0x3130af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x20c371),this['_suggestionToController']['set'](_0x4d474c,_0x2194e3),this['_viewToController']['set'](_0xcf6d58,_0x2194e3),_0x435a6f=_0x1f52e6['createAnnotation']({'view':_0x382963,'target':()=>{const _0x5750d4=[],_0x3bfa67=_0x4d474c['getAllAdjacentSuggestions']()['filter'](_0x529620=>_0x529620['isInContent']);for(const _0x5e65dd of _0x3bfa67)_0x5750d4['push'](..._0x5e65dd['getMarkers']());return _0x52d4fd(_0x3130af['editing'],_0x5750d4);},'type':()=>'suggestion-'+_0x2194e3['view']['type']}),_0x408f56['_bindAnnotationToEditors'](_0xcf6d58,_0x435a6f),_0x1f52e6['add'](_0x435a6f),_0x235246['registerAnnotation'](_0x435a6f);}['_destroyController'](_0x231841){const _0x4f1ac2=this['editor']['plugins']['get']('CommentsRepository'),_0x44ce04=this['editor']['plugins']['get']('Annotations'),_0x4e63cb=this['_suggestionToController']['get'](_0x231841),_0x4f89fb=_0x4e63cb['view'],_0x510144=_0x44ce04['getByInnerView'](_0x4f89fb);_0x4f1ac2['_unbindEditors'](_0x4f89fb),_0x510144&&_0x44ce04['remove'](_0x510144),this['_suggestionToController']['delete'](_0x231841),this['_viewToController']['delete'](_0x4f89fb),_0x4e63cb['destroy']();}['_updateController'](_0x1c06eb){if(!_0x1c06eb['isInContent']||!this['_suggestionToController']['has'](_0x1c06eb))return;const _0x354681=this['editor']['plugins']['get']('TrackChangesEditing'),_0x293a63=this['_suggestionToController']['get'](_0x1c06eb),_0x45d991=_0x1c06eb['getAllAdjacentSuggestions']();_0x293a63['view']['descriptionParts']=_0x354681['descriptionFactory']['getDescriptions'](_0x45d991);}['destroy'](){for(const _0x203885 of this['_suggestionToController']['keys']())this['_destroyController'](_0x203885);for(const _0xbe0d6f of this['_annotationViews']['values']())_0xbe0d6f['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x868b2f){return'model'in _0x868b2f;}class k extends _0x3953b7{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x213a6d){this['editor']['plugins']['get'](p)['adapter']=_0x213a6d;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2cb2ef){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2cb2ef);}['getSuggestions']({skipNotAttached:_0x3a14e3=!0x1,toJSON:_0x4f6b68=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3a14e3,'toJSON':_0x4f6b68});}['getSuggestion'](_0x114f44){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x114f44);}}const w=['Pagination'];class T extends _0x3953b7{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x43138=this['editor'];if(_0x43138['config']['define']('trackChangesData.editorCreator',_0x21100a=>{const _0x54a068=_0x43138['model']['document']['getRootNames']()['reduce']((_0x5856d0,_0x330200)=>(_0x5856d0[_0x330200]='',_0x5856d0),{});return _0x43138['constructor']['create'](_0x54a068,_0x21100a);}),'function'!=typeof _0x43138['config']['get']('trackChangesData')['editorCreator'])throw new _0x445a81('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4bb5a7){return N(this['editor'],!0x0,_0x4bb5a7);}['getDataWithDiscardedSuggestions'](_0x2a4371){return N(this['editor'],!0x1,_0x2a4371);}}class D extends _0x3953b7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10cf8a){function _0x4453aa(_0x2c727d){return _0x2c727d['map'](_0x697600=>String['fromCharCode'](_0x697600))['join']('');}super(_0x10cf8a),this['result']='end',_0x10cf8a[_0x4453aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4453aa([0x76,0x69,0x65,0x77])][_0x4453aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4453aa([0x61,0x75,0x74,0x6f]),_0x10cf8a[_0x4453aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4453aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4453aa([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4453aa([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4453aa([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(_0x458440){return void 0x0!==_0x458440['getRootsAttributes'];}async function N(_0x5ca952,_0x1bdeff,_0x2ce29e){const _0x56b316=_0x3ba5cf(_0x5ca952,w);_0x56b316['plugins']['push'](p,D),_0x56b316['rootsAttributes']=Ge(_0x5ca952)?_0x5ca952['getRootsAttributes']():void 0x0;const _0x11c04f=document['createDocumentFragment'](),_0x4cc917=_0x5ca952['config']['get']('trackChangesData')['editorCreator'],_0x9ceb65=await _0x4cc917(_0x56b316,()=>function(_0x47973e){const _0x4ae9ca=document['createElement']('div');return _0x47973e['appendChild'](_0x4ae9ca),_0x4ae9ca;}(_0x11c04f));!function(_0x5cc72e,_0x2e582a){const _0x2ab9aa=_0x5cc72e['model']['document']['getRootNames']()['reduce']((_0x49739e,_0x34a1a3)=>(_0x49739e[_0x34a1a3]=_0x5cc72e['data']['get']({'rootName':_0x34a1a3}),_0x49739e),{}),_0x300d5c=_0x5cc72e['plugins']['get']('Users')['users']['map'](_0x4ff85e=>({'id':_0x4ff85e['id'],'name':_0x4ff85e['name']})),_0x3eac04=_0x5cc72e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5c33c8=_0x5cc72e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5b4d28=_0x2e582a['plugins']['get']('Users'),_0x34c020=_0x2e582a['plugins']['get']('TrackChangesEditing'),_0x4c2177=_0x2e582a['plugins']['get']('CommentsRepository');for(const _0xe354 of _0x4c2177['getCommentThreads']())_0xe354['remove']();for(const _0x11a8fb of _0x300d5c)_0x5b4d28['getUser'](_0x11a8fb['id'])||_0x5b4d28['addUser'](_0x11a8fb);_0x5b4d28['me']||_0x5b4d28['useAnonymousUser']();for(const _0x550944 of _0x5c33c8)_0x4c2177['addCommentThread'](_0x550944);for(const _0x4c3dc6 of _0x3eac04)_0x34c020['addSuggestionData'](_0x4c3dc6);_0x2e582a['data']['set'](_0x2ab9aa);}(_0x5ca952,_0x9ceb65),_0x9ceb65['execute'](_0x1bdeff?'acceptAllSuggestions':'discardAllSuggestions');const _0x1a547d=Ge(_0x9ceb65)?_0x9ceb65['getFullData'](_0x2ce29e):_0x9ceb65['data']['get'](_0x2ce29e);return await _0x9ceb65['destroy'](),_0x1a547d;}class Me extends _0x4eff8d{['options'];constructor(_0x5e0aee,_0x14b5aa){super(_0x5e0aee),this['options']=_0x14b5aa,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'](_0xf98a80,_0x4e0048){if(!this['element'])return;const _0x2b4125=[];for(const [_0x21c128,_0x33d097]of _0xf98a80){const _0xb201ce=document['createElement']('div');_0xb201ce['setAttribute']('data-ck-root-name',_0x21c128),_0xb201ce['className']=_0x33d097['classes']+'\x20ck-track-changes-preview__root-container',_0xb201ce['innerHTML']=_0x33d097['content'],_0x2b4125['push'](_0xb201ce);}_0x4e0048(this['element'],_0x2b4125),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0xb8ee90{constructor(_0x85f450){super(_0x85f450),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3db9b7=this['editor'],_0x5394a2=_0x3db9b7['locale'],_0x3703e2=_0x3db9b7['plugins']['get']('Dialog');let _0x508b60;const _0xbb4dbc=function(_0x452363){const _0x3b0c8e={};if('editables'in _0x452363['ui']['view']){for(const [_0x4f0c9e,_0x1b6425]of Object['entries'](_0x452363['ui']['view']['editables']))_0x3b0c8e[_0x4f0c9e]=_0x1b6425['element'];}else _0x3b0c8e[_0x452363['model']['document']['getRootNames']()[0x0]]=_0x452363['ui']['view']['editable']['element'];return _0x3b0c8e;}(_0x3db9b7),_0x266164=function(_0x358b96){let _0x151bda=0x0;for(const _0x3a24aa of Object['values'](_0x358b96))_0x151bda=Math['max'](_0x151bda,_0x3a24aa['getBoundingClientRect']()['width']);let _0x390e61=0x0;for(const _0x243653 of Object['values'](_0x358b96))_0x390e61+=_0x243653['getBoundingClientRect']()['height'];const _0x2a1cb5=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x16d578=Math['min'](_0x390e61,_0x2a1cb5);return{'width':_0x151bda,'height':_0x16d578};}(_0xbb4dbc);_0x3703e2['show']({'id':'finalContentPreview','title':c(_0x5394a2,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5394a2,{'dialogRects':_0x266164}),'onHide':()=>{_0x508b60['detachFromDom']();},'onShow':()=>{_0x3db9b7['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x31f003=>{const _0x44a40d=this['_standarizeRootsData'](_0x31f003,_0x3db9b7,_0xbb4dbc);_0x3703e2['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x44a40d,_0x3db9b7['config']['get']('trackChanges.preview.renderFunction'));}),_0x508b60=new _0x27f01f(_0x5394a2,[_0x3703e2['view']]),_0x508b60['attachToDom'](),_0x508b60['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3db9b7['once']('destroy',()=>{_0x508b60['detachFromDom']();});const _0x5b863d=_0x3703e2['view']['headerView']['class'];_0x3703e2['view']['headerView']['class']=_0x5b863d?_0x5b863d+'\x20ck-reset_all':'ck-reset_all',_0x3703e2['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3703e2['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3335e7=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x7b259d=_0x3335e7['previewMode'],_0x14f7f9={};if('$labels'===_0x7b259d){for(const _0x239b73 of _0x3335e7['getMergeFieldsIds']())_0x14f7f9[_0x239b73]=_0x3335e7['getLabel'](_0x239b73)||_0x239b73;}else{const _0x590781='$defaultValues'===_0x7b259d?_0x3335e7['getDefaultValues']():_0x3335e7['getDataSetValues'](_0x7b259d,!0x0);for(const _0x1f113d of Object['entries'](_0x590781)){const [_0x555161,_0x270ab1]=_0x1f113d;_0x14f7f9[_0x555161]=null!==_0x270ab1?_0x270ab1:_0x3335e7['getLabel'](_0x555161)||_0x555161;}}return{'mergeFieldsData':_0x14f7f9};}['_standarizeRootsData'](_0x2d226f,_0x111b1f,_0xe14a75){let _0x5c9d82;if('string'==typeof _0x2d226f){const _0x56da54=_0x111b1f['model']['document']['getRootNames']()[0x0];_0x5c9d82={[_0x56da54]:_0x2d226f};}else _0x5c9d82=_0x2d226f;const _0x4a083e=this['_fixMediaEmbeds'](_0x5c9d82,_0x111b1f),_0x4f530=function(_0x6f944b,_0x2686d1){for(const [_0x4bb052,_0x7c08f4]of _0x6f944b)_0x7c08f4['classes']=_0x2686d1[_0x4bb052]['classList']['value']['replace']('ck-focused','');return _0x6f944b;}(this['_sortRoots'](_0x111b1f)['reduce']((_0x3165d5,_0x532c59)=>(_0x3165d5['push']([_0x532c59,{'content':_0x4a083e[_0x532c59],'classes':''}]),_0x3165d5),[]),_0xe14a75);return _0x4f530;}['_fixMediaEmbeds'](_0xeed717,_0x1a65a0){if(!_0x1a65a0['plugins']['has']('MediaEmbedEditing'))return _0xeed717;const _0x12299d=_0x1a65a0['plugins']['get']('MediaEmbedEditing');for(const [_0x12f9a6,_0x1de5c3]of Object['entries'](_0xeed717)){const _0x54b9d5=document['createElement']('div');_0x54b9d5['innerHTML']=_0x1de5c3,(_0x54b9d5['querySelectorAll']('figure.media')['forEach'](_0x32c139=>{const _0x1098de=_0x32c139['querySelector']('oembed');if(_0x1098de){const _0x1dac3b=_0x1098de['getAttribute']('url');if(_0x1dac3b){const _0x1090f6=_0x12299d['registry']['getMediaViewElement'](new _0x4481d1(_0x1a65a0['editing']['view']['document']),_0x1dac3b,{'elementName':'','renderForEditingView':!0x0}),_0x11bcd9=document['createElement']('div');_0x11bcd9['classList']['add']('ck-media__wrapper'),_0x1090f6['render'](_0x11bcd9,_0x1a65a0['editing']['view']['domConverter']),_0x1098de['replaceWith'](_0x11bcd9);}}}),_0xeed717[_0x12f9a6]=_0x54b9d5['innerHTML']);}return _0xeed717;}['_sortRoots'](_0x19c85b){if(!function(_0x3f1698){return void 0x0!==_0x3f1698['getRootsAttributes'];}(_0x19c85b))return _0x19c85b['model']['document']['getRootNames']();const _0x2fe04f=[],_0x2c3585=new Map();for(const _0x9ac097 of _0x19c85b['model']['document']['getRootNames']()){const _0x213f8d=_0x19c85b['editing']['view']['getDomRoot'](_0x9ac097)['getClientRects']()['item'](0x0);_0x2fe04f['push'](_0x9ac097),_0x2c3585['set'](_0x9ac097,_0x213f8d);}return _0x2fe04f['sort']((_0x1fc302,_0x115282)=>{const _0x5e5d1e=_0x2c3585['get'](_0x1fc302),_0x5665e8=_0x2c3585['get'](_0x115282);return _0x5e5d1e['y']-_0x5665e8['y']||_0x5e5d1e['x']-_0x5665e8['x'];}),_0x2fe04f;}}class te extends _0x3953b7{static get['requires'](){return[T,_0x14c57e];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2490af){super(_0x2490af),_0x2490af['commands']['add']('previewFinalContent',new re(this['editor'])),_0x2490af['config']['define']('trackChanges.preview.renderFunction',(_0x4e2353,_0x33f66d)=>{for(const _0x35f48e of _0x33f66d)_0x4e2353['appendChild'](_0x35f48e);});}}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};
|